* config/xtensa/xtensa.c: Formatting.
[official-gcc.git] / libstdc++-v3 / configure
blob98af86162da713c65d95cf9569f7feafdc9e0e9f
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-multilib build hella library versions (default)"
16 ac_help="$ac_help
17 --with-target-subdir=SUBDIR
18 configuring in a subdirectory"
19 ac_help="$ac_help
20 --with-cross-host=HOST configuring with a cross compiler"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --enable-cstdio enable stdio for target io package.
38 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
40 ac_help="$ac_help
41 --enable-clocale enable model for target locale package.
42 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
44 ac_help="$ac_help
45 --enable-nls use Native Language Support (default)"
46 ac_help="$ac_help
47 --enable-cheaders=MODEL construct "C" header files for g++ [default=c_std]"
48 ac_help="$ac_help
49 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
50 ac_help="$ac_help
51 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
52 ac_help="$ac_help
53 --enable-long-long turns on 'long long' [default=yes]"
54 ac_help="$ac_help
55 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
56 ac_help="$ac_help
57 --enable-libunwind-exceptions force use of libunwind for exceptions"
58 ac_help="$ac_help
59 --enable-concept-checks use Boost-derived template checks [default=no]"
60 ac_help="$ac_help
61 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
62 [default=]"
63 ac_help="$ac_help
64 --enable-debug build extra debug library [default=no]"
65 ac_help="$ac_help
66 --enable-debug-flags=FLAGS pass compiler FLAGS when building debug
67 library;[default=none]"
68 ac_help="$ac_help
69 --enable-symvers=style enables symbol versioning of the shared library [default=yes]"
70 ac_help="$ac_help
71 --with-gxx-include-dir the installation directory for include files"
72 ac_help="$ac_help
73 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
78 build=NONE
79 cache_file=./config.cache
80 exec_prefix=NONE
81 host=NONE
82 no_create=
83 nonopt=NONE
84 no_recursion=
85 prefix=NONE
86 program_prefix=NONE
87 program_suffix=NONE
88 program_transform_name=s,x,x,
89 silent=
90 site=
91 srcdir=
92 target=NONE
93 verbose=
94 x_includes=NONE
95 x_libraries=NONE
96 bindir='${exec_prefix}/bin'
97 sbindir='${exec_prefix}/sbin'
98 libexecdir='${exec_prefix}/libexec'
99 datadir='${prefix}/share'
100 sysconfdir='${prefix}/etc'
101 sharedstatedir='${prefix}/com'
102 localstatedir='${prefix}/var'
103 libdir='${exec_prefix}/lib'
104 includedir='${prefix}/include'
105 oldincludedir='/usr/include'
106 infodir='${prefix}/info'
107 mandir='${prefix}/man'
109 # Initialize some other variables.
110 subdirs=
111 MFLAGS= MAKEFLAGS=
112 SHELL=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
114 ac_max_here_lines=12
116 ac_prev=
117 for ac_option
120 # If the previous option needs an argument, assign it.
121 if test -n "$ac_prev"; then
122 eval "$ac_prev=\$ac_option"
123 ac_prev=
124 continue
127 case "$ac_option" in
128 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129 *) ac_optarg= ;;
130 esac
132 # Accept the important Cygnus configure options, so we can diagnose typos.
134 case "$ac_option" in
136 -bindir | --bindir | --bindi | --bind | --bin | --bi)
137 ac_prev=bindir ;;
138 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
139 bindir="$ac_optarg" ;;
141 -build | --build | --buil | --bui | --bu)
142 ac_prev=build ;;
143 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
144 build="$ac_optarg" ;;
146 -cache-file | --cache-file | --cache-fil | --cache-fi \
147 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
148 ac_prev=cache_file ;;
149 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
150 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
151 cache_file="$ac_optarg" ;;
153 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
154 ac_prev=datadir ;;
155 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
156 | --da=*)
157 datadir="$ac_optarg" ;;
159 -disable-* | --disable-*)
160 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}=no" ;;
168 -enable-* | --enable-*)
169 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175 case "$ac_option" in
176 *=*) ;;
177 *) ac_optarg=yes ;;
178 esac
179 eval "enable_${ac_feature}='$ac_optarg'" ;;
181 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
182 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
183 | --exec | --exe | --ex)
184 ac_prev=exec_prefix ;;
185 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
186 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
187 | --exec=* | --exe=* | --ex=*)
188 exec_prefix="$ac_optarg" ;;
190 -gas | --gas | --ga | --g)
191 # Obsolete; use --with-gas.
192 with_gas=yes ;;
194 -help | --help | --hel | --he)
195 # Omit some internal or obsolete options to make the list less imposing.
196 # This message is too long to be a string in the A/UX 3.1 sh.
197 cat << EOF
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
200 Configuration:
201 --cache-file=FILE cache test results in FILE
202 --help print this message
203 --no-create do not create output files
204 --quiet, --silent do not print \`checking...' messages
205 --version print the version of autoconf that created configure
206 Directory and file names:
207 --prefix=PREFIX install architecture-independent files in PREFIX
208 [$ac_default_prefix]
209 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
210 [same as prefix]
211 --bindir=DIR user executables in DIR [EPREFIX/bin]
212 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
213 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
214 --datadir=DIR read-only architecture-independent data in DIR
215 [PREFIX/share]
216 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
217 --sharedstatedir=DIR modifiable architecture-independent data in DIR
218 [PREFIX/com]
219 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
220 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
221 --includedir=DIR C header files in DIR [PREFIX/include]
222 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
223 --infodir=DIR info documentation in DIR [PREFIX/info]
224 --mandir=DIR man documentation in DIR [PREFIX/man]
225 --srcdir=DIR find the sources in DIR [configure dir or ..]
226 --program-prefix=PREFIX prepend PREFIX to installed program names
227 --program-suffix=SUFFIX append SUFFIX to installed program names
228 --program-transform-name=PROGRAM
229 run sed PROGRAM on installed program names
231 cat << EOF
232 Host type:
233 --build=BUILD configure for building on BUILD [BUILD=HOST]
234 --host=HOST configure for HOST [guessed]
235 --target=TARGET configure for TARGET [TARGET=HOST]
236 Features and packages:
237 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
238 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
239 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
240 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
241 --x-includes=DIR X include files are in DIR
242 --x-libraries=DIR X library files are in DIR
244 if test -n "$ac_help"; then
245 echo "--enable and --with options recognized:$ac_help"
247 exit 0 ;;
249 -host | --host | --hos | --ho)
250 ac_prev=host ;;
251 -host=* | --host=* | --hos=* | --ho=*)
252 host="$ac_optarg" ;;
254 -includedir | --includedir | --includedi | --included | --include \
255 | --includ | --inclu | --incl | --inc)
256 ac_prev=includedir ;;
257 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
258 | --includ=* | --inclu=* | --incl=* | --inc=*)
259 includedir="$ac_optarg" ;;
261 -infodir | --infodir | --infodi | --infod | --info | --inf)
262 ac_prev=infodir ;;
263 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
264 infodir="$ac_optarg" ;;
266 -libdir | --libdir | --libdi | --libd)
267 ac_prev=libdir ;;
268 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 libdir="$ac_optarg" ;;
271 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
272 | --libexe | --libex | --libe)
273 ac_prev=libexecdir ;;
274 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
275 | --libexe=* | --libex=* | --libe=*)
276 libexecdir="$ac_optarg" ;;
278 -localstatedir | --localstatedir | --localstatedi | --localstated \
279 | --localstate | --localstat | --localsta | --localst \
280 | --locals | --local | --loca | --loc | --lo)
281 ac_prev=localstatedir ;;
282 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
283 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
284 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
285 localstatedir="$ac_optarg" ;;
287 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
288 ac_prev=mandir ;;
289 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 mandir="$ac_optarg" ;;
292 -nfp | --nfp | --nf)
293 # Obsolete; use --without-fp.
294 with_fp=no ;;
296 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297 | --no-cr | --no-c)
298 no_create=yes ;;
300 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
301 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
302 no_recursion=yes ;;
304 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
305 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
306 | --oldin | --oldi | --old | --ol | --o)
307 ac_prev=oldincludedir ;;
308 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
309 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
310 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
311 oldincludedir="$ac_optarg" ;;
313 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
314 ac_prev=prefix ;;
315 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
316 prefix="$ac_optarg" ;;
318 -program-prefix | --program-prefix | --program-prefi | --program-pref \
319 | --program-pre | --program-pr | --program-p)
320 ac_prev=program_prefix ;;
321 -program-prefix=* | --program-prefix=* | --program-prefi=* \
322 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
323 program_prefix="$ac_optarg" ;;
325 -program-suffix | --program-suffix | --program-suffi | --program-suff \
326 | --program-suf | --program-su | --program-s)
327 ac_prev=program_suffix ;;
328 -program-suffix=* | --program-suffix=* | --program-suffi=* \
329 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
330 program_suffix="$ac_optarg" ;;
332 -program-transform-name | --program-transform-name \
333 | --program-transform-nam | --program-transform-na \
334 | --program-transform-n | --program-transform- \
335 | --program-transform | --program-transfor \
336 | --program-transfo | --program-transf \
337 | --program-trans | --program-tran \
338 | --progr-tra | --program-tr | --program-t)
339 ac_prev=program_transform_name ;;
340 -program-transform-name=* | --program-transform-name=* \
341 | --program-transform-nam=* | --program-transform-na=* \
342 | --program-transform-n=* | --program-transform-=* \
343 | --program-transform=* | --program-transfor=* \
344 | --program-transfo=* | --program-transf=* \
345 | --program-trans=* | --program-tran=* \
346 | --progr-tra=* | --program-tr=* | --program-t=*)
347 program_transform_name="$ac_optarg" ;;
349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
350 | -silent | --silent | --silen | --sile | --sil)
351 silent=yes ;;
353 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
354 ac_prev=sbindir ;;
355 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
356 | --sbi=* | --sb=*)
357 sbindir="$ac_optarg" ;;
359 -sharedstatedir | --sharedstatedir | --sharedstatedi \
360 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
361 | --sharedst | --shareds | --shared | --share | --shar \
362 | --sha | --sh)
363 ac_prev=sharedstatedir ;;
364 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
365 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
366 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
367 | --sha=* | --sh=*)
368 sharedstatedir="$ac_optarg" ;;
370 -site | --site | --sit)
371 ac_prev=site ;;
372 -site=* | --site=* | --sit=*)
373 site="$ac_optarg" ;;
375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
376 ac_prev=srcdir ;;
377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378 srcdir="$ac_optarg" ;;
380 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
381 | --syscon | --sysco | --sysc | --sys | --sy)
382 ac_prev=sysconfdir ;;
383 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
384 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
385 sysconfdir="$ac_optarg" ;;
387 -target | --target | --targe | --targ | --tar | --ta | --t)
388 ac_prev=target ;;
389 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
390 target="$ac_optarg" ;;
392 -v | -verbose | --verbose | --verbos | --verbo | --verb)
393 verbose=yes ;;
395 -version | --version | --versio | --versi | --vers)
396 echo "configure generated by autoconf version 2.13"
397 exit 0 ;;
399 -with-* | --with-*)
400 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package=`echo $ac_package| sed 's/-/_/g'`
406 case "$ac_option" in
407 *=*) ;;
408 *) ac_optarg=yes ;;
409 esac
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* | --without-*)
413 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
421 --x)
422 # Obsolete; use --with-x.
423 with_x=yes ;;
425 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
426 | --x-incl | --x-inc | --x-in | --x-i)
427 ac_prev=x_includes ;;
428 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
429 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
430 x_includes="$ac_optarg" ;;
432 -x-libraries | --x-libraries | --x-librarie | --x-librari \
433 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
434 ac_prev=x_libraries ;;
435 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
436 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
437 x_libraries="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 nonopt="$ac_option"
452 esac
453 done
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
462 # 0 standard input
463 # 1 file creation
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
470 exec 6>/dev/null
471 else
472 exec 6>&1
474 exec 5>./config.log
476 echo "\
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
479 " 1>&5
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
483 ac_configure_args=
484 for ac_arg
486 case "$ac_arg" in
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c) ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
494 esac
495 done
497 # NLS nuisances.
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 echo > confdefs.h
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file=src/ios.cc
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted=yes
519 # Try the directory containing this script, then its parent.
520 ac_prog=$0
521 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
523 srcdir=$ac_confdir
524 if test ! -r $srcdir/$ac_unique_file; then
525 srcdir=..
527 else
528 ac_srcdir_defaulted=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
533 else
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE; then
542 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
543 else
544 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 for ac_site_file in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
549 echo "loading site script $ac_site_file"
550 . "$ac_site_file"
552 done
554 if test -r "$cache_file"; then
555 echo "loading cache $cache_file"
556 . $cache_file
557 else
558 echo "creating cache $cache_file"
559 > $cache_file
562 ac_ext=c
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp='$CPP $CPPFLAGS'
565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling=$ac_cv_prog_cc_cross
569 ac_exeext=
570 ac_objext=o
571 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574 ac_n= ac_c='
575 ' ac_t=' '
576 else
577 ac_n=-n ac_c= ac_t=
579 else
580 ac_n= ac_c='\c' ac_t=
585 # This works around the fact that libtool configuration may change LD
586 # for this particular configuration, but some shells, instead of
587 # keeping the changes in LD private, export them just because LD is
588 # exported. Only used at the end of this file.
589 ORIGINAL_LD_FOR_MULTILIBS=$LD
591 PACKAGE=libstdc++
593 # For libtool versioning info, format is CURRENT:REVISION:AGE
594 libtool_VERSION=6:0:0
598 # Check whether --enable-multilib or --disable-multilib was given.
599 if test "${enable_multilib+set}" = set; then
600 enableval="$enable_multilib"
601 case "${enableval}" in
602 yes) multilib=yes ;;
603 no) multilib=no ;;
604 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
605 esac
606 else
607 multilib=yes
610 # When building with srcdir == objdir, links to the source files will
611 # be created in directories within the target_subdir. We have to
612 # adjust toplevel_srcdir accordingly, so that configure finds
613 # install-sh and other auxiliary files that live in the top-level
614 # source directory.
615 if test "${srcdir}" = "."; then
616 if test -z "${with_target_subdir}"; then
617 toprel=".."
618 else
619 if test "${with_target_subdir}" != "."; then
620 toprel="${with_multisrctop}../.."
621 else
622 toprel="${with_multisrctop}.."
625 else
626 toprel=".."
628 ac_aux_dir=
629 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
630 if test -f $ac_dir/install-sh; then
631 ac_aux_dir=$ac_dir
632 ac_install_sh="$ac_aux_dir/install-sh -c"
633 break
634 elif test -f $ac_dir/install.sh; then
635 ac_aux_dir=$ac_dir
636 ac_install_sh="$ac_aux_dir/install.sh -c"
637 break
639 done
640 if test -z "$ac_aux_dir"; then
641 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
643 ac_config_guess=$ac_aux_dir/config.guess
644 ac_config_sub=$ac_aux_dir/config.sub
645 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
647 toplevel_srcdir=\${top_srcdir}/$toprel
651 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
653 # You will slowly go insane if you do not grok the following fact: when
654 # building v3 as part of the compiler, the top-level /target/ becomes the
655 # library's /host/. `configure' then causes --target to default to --host,
656 # exactly like any other package using autoconf. Therefore, 'target' and
657 # 'host' will always be the same. This makes sense both for native and
658 # cross compilers, just think about it for a little while. :-)
660 # Also, if v3 is being configured as part of a cross compiler, the top-level
661 # configure script will pass the "real" host as $with_cross_host.
663 # AC 2.5x sets target_alias iff the user specified --target, but we use it
664 # everywhere, so we set it here just to be sure. In AC 2.13
665 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
667 # Do some error checking and defaulting for the host and target type.
668 # The inputs are:
669 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
671 # The rules are:
672 # 1. You are not allowed to specify --host, --target, and nonopt at the
673 # same time.
674 # 2. Host defaults to nonopt.
675 # 3. If nonopt is not specified, then host defaults to the current host,
676 # as determined by config.guess.
677 # 4. Target and build default to nonopt.
678 # 5. If nonopt is not specified, then target and build default to host.
680 # The aliases save the names the user supplied, while $host etc.
681 # will get canonicalized.
682 case $host---$target---$nonopt in
683 NONE---*---* | *---NONE---* | *---*---NONE) ;;
684 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
685 esac
688 # Make sure we can run config.sub.
689 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
690 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
693 echo $ac_n "checking host system type""... $ac_c" 1>&6
694 echo "configure:695: checking host system type" >&5
696 host_alias=$host
697 case "$host_alias" in
698 NONE)
699 case $nonopt in
700 NONE)
701 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
702 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
703 fi ;;
704 *) host_alias=$nonopt ;;
705 esac ;;
706 esac
708 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
709 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
710 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
711 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo "$ac_t""$host" 1>&6
714 echo $ac_n "checking target system type""... $ac_c" 1>&6
715 echo "configure:716: checking target system type" >&5
717 target_alias=$target
718 case "$target_alias" in
719 NONE)
720 case $nonopt in
721 NONE) target_alias=$host_alias ;;
722 *) target_alias=$nonopt ;;
723 esac ;;
724 esac
726 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
727 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
728 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
729 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
730 echo "$ac_t""$target" 1>&6
732 echo $ac_n "checking build system type""... $ac_c" 1>&6
733 echo "configure:734: checking build system type" >&5
735 build_alias=$build
736 case "$build_alias" in
737 NONE)
738 case $nonopt in
739 NONE) build_alias=$host_alias ;;
740 *) build_alias=$nonopt ;;
741 esac ;;
742 esac
744 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
745 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
746 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
747 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
748 echo "$ac_t""$build" 1>&6
750 test "$host_alias" != "$target_alias" &&
751 test "$program_prefix$program_suffix$program_transform_name" = \
752 NONENONEs,x,x, &&
753 program_prefix=${target_alias}-
755 target_alias=${target_alias-$target}
758 # Runs configure.target, finds CC, CXX and assorted other critical bits.
759 # Must run this before the GLIBCPP_ENABLE_* macros below.
760 if test $host != $build; then
761 ac_tool_prefix=${host_alias}-
762 else
763 ac_tool_prefix=
766 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
767 echo "configure:768: checking for Cygwin environment" >&5
768 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
769 echo $ac_n "(cached) $ac_c" 1>&6
770 else
771 cat > conftest.$ac_ext <<EOF
772 #line 773 "configure"
773 #include "confdefs.h"
775 int main() {
777 #ifndef __CYGWIN__
778 #define __CYGWIN__ __CYGWIN32__
779 #endif
780 return __CYGWIN__;
781 ; return 0; }
783 if { (eval echo configure:784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
784 rm -rf conftest*
785 ac_cv_cygwin=yes
786 else
787 echo "configure: failed program was:" >&5
788 cat conftest.$ac_ext >&5
789 rm -rf conftest*
790 ac_cv_cygwin=no
792 rm -f conftest*
793 rm -f conftest*
796 echo "$ac_t""$ac_cv_cygwin" 1>&6
797 CYGWIN=
798 test "$ac_cv_cygwin" = yes && CYGWIN=yes
799 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
800 echo "configure:801: checking for mingw32 environment" >&5
801 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
803 else
804 cat > conftest.$ac_ext <<EOF
805 #line 806 "configure"
806 #include "confdefs.h"
808 int main() {
809 return __MINGW32__;
810 ; return 0; }
812 if { (eval echo configure:813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
813 rm -rf conftest*
814 ac_cv_mingw32=yes
815 else
816 echo "configure: failed program was:" >&5
817 cat conftest.$ac_ext >&5
818 rm -rf conftest*
819 ac_cv_mingw32=no
821 rm -f conftest*
822 rm -f conftest*
825 echo "$ac_t""$ac_cv_mingw32" 1>&6
826 MINGW32=
827 test "$ac_cv_mingw32" = yes && MINGW32=yes
829 # Export build and source directories.
830 # These need to be absolute paths, yet at the same time need to
831 # canonicalize only relative paths, because then amd will not unmount
832 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
833 glibcpp_builddir=`${PWDCMD-pwd}`
834 case $srcdir in
835 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
836 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
837 esac
843 for ac_prog in mawk gawk 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 *.$ac_ext | *.c | *.o | *.obj) ;;
1472 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1473 esac
1474 done
1475 else
1476 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1478 rm -f conftest*
1479 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1483 EXEEXT=""
1484 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1485 echo "$ac_t""${ac_cv_exeext}" 1>&6
1486 ac_exeext=$EXEEXT
1490 case ${glibcpp_basedir} in
1491 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1492 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1493 esac
1495 # Find platform-specific directories containing configuration info. In
1496 # addition to possibly modifying the same flags, it also sets up symlinks.
1498 . ${glibcpp_basedir}/configure.target
1499 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1500 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1504 am__api_version="1.4"
1505 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1506 echo "configure:1507: checking whether build environment is sane" >&5
1507 # Just in case
1508 sleep 1
1509 echo timestamp > conftestfile
1510 # Do `set' in a subshell so we don't clobber the current shell's
1511 # arguments. Must try -L first in case configure is actually a
1512 # symlink; some systems play weird games with the mod time of symlinks
1513 # (eg FreeBSD returns the mod time of the symlink's containing
1514 # directory).
1515 if (
1516 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1517 if test "$*" = "X"; then
1518 # -L didn't work.
1519 set X `ls -t $srcdir/configure conftestfile`
1521 if test "$*" != "X $srcdir/configure conftestfile" \
1522 && test "$*" != "X conftestfile $srcdir/configure"; then
1524 # If neither matched, then we have a broken ls. This can happen
1525 # if, for instance, CONFIG_SHELL is bash and it inherits a
1526 # broken ls alias from the environment. This has actually
1527 # happened. Such a system could not be considered "sane".
1528 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1529 alias in your environment" 1>&2; exit 1; }
1532 test "$2" = conftestfile
1534 then
1535 # Ok.
1537 else
1538 { echo "configure: error: newly created file is older than distributed files!
1539 Check your system clock" 1>&2; exit 1; }
1541 rm -f conftest*
1542 echo "$ac_t""yes" 1>&6
1543 if test "$program_transform_name" = s,x,x,; then
1544 program_transform_name=
1545 else
1546 # Double any \ or $. echo might interpret backslashes.
1547 cat <<\EOF_SED > conftestsed
1548 s,\\,\\\\,g; s,\$,$$,g
1549 EOF_SED
1550 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1551 rm -f conftestsed
1553 test "$program_prefix" != NONE &&
1554 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1555 # Use a double $ so make ignores it.
1556 test "$program_suffix" != NONE &&
1557 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1559 # sed with no file args requires a program.
1560 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1562 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1563 echo "configure:1564: checking whether ${MAKE-make} sets \${MAKE}" >&5
1564 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1565 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1567 else
1568 cat > conftestmake <<\EOF
1569 all:
1570 @echo 'ac_maketemp="${MAKE}"'
1572 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1573 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1574 if test -n "$ac_maketemp"; then
1575 eval ac_cv_prog_make_${ac_make}_set=yes
1576 else
1577 eval ac_cv_prog_make_${ac_make}_set=no
1579 rm -f conftestmake
1581 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1582 echo "$ac_t""yes" 1>&6
1583 SET_MAKE=
1584 else
1585 echo "$ac_t""no" 1>&6
1586 SET_MAKE="MAKE=${MAKE-make}"
1590 PACKAGE=$PACKAGE
1592 VERSION=$gcc_version
1594 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1595 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1597 cat >> confdefs.h <<EOF
1598 #define PACKAGE "$PACKAGE"
1601 cat >> confdefs.h <<EOF
1602 #define VERSION "$VERSION"
1607 missing_dir=`cd $ac_aux_dir && pwd`
1608 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1609 echo "configure:1610: checking for working aclocal-${am__api_version}" >&5
1610 # Run test in a subshell; some versions of sh will print an error if
1611 # an executable is not found, even if stderr is redirected.
1612 # Redirect stdin to placate older versions of autoconf. Sigh.
1613 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1614 ACLOCAL=aclocal-${am__api_version}
1615 echo "$ac_t""found" 1>&6
1616 else
1617 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1618 echo "$ac_t""missing" 1>&6
1621 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1622 echo "configure:1623: checking for working autoconf" >&5
1623 # Run test in a subshell; some versions of sh will print an error if
1624 # an executable is not found, even if stderr is redirected.
1625 # Redirect stdin to placate older versions of autoconf. Sigh.
1626 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1627 AUTOCONF=autoconf
1628 echo "$ac_t""found" 1>&6
1629 else
1630 AUTOCONF="$missing_dir/missing autoconf"
1631 echo "$ac_t""missing" 1>&6
1634 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1635 echo "configure:1636: checking for working automake-${am__api_version}" >&5
1636 # Run test in a subshell; some versions of sh will print an error if
1637 # an executable is not found, even if stderr is redirected.
1638 # Redirect stdin to placate older versions of autoconf. Sigh.
1639 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1640 AUTOMAKE=automake-${am__api_version}
1641 echo "$ac_t""found" 1>&6
1642 else
1643 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1644 echo "$ac_t""missing" 1>&6
1647 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1648 echo "configure:1649: checking for working autoheader" >&5
1649 # Run test in a subshell; some versions of sh will print an error if
1650 # an executable is not found, even if stderr is redirected.
1651 # Redirect stdin to placate older versions of autoconf. Sigh.
1652 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1653 AUTOHEADER=autoheader
1654 echo "$ac_t""found" 1>&6
1655 else
1656 AUTOHEADER="$missing_dir/missing autoheader"
1657 echo "$ac_t""missing" 1>&6
1660 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1661 echo "configure:1662: checking for working makeinfo" >&5
1662 # Run test in a subshell; some versions of sh will print an error if
1663 # an executable is not found, even if stderr is redirected.
1664 # Redirect stdin to placate older versions of autoconf. Sigh.
1665 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1666 MAKEINFO=makeinfo
1667 echo "$ac_t""found" 1>&6
1668 else
1669 MAKEINFO="$missing_dir/missing makeinfo"
1670 echo "$ac_t""missing" 1>&6
1679 # Check whether --enable-shared or --disable-shared was given.
1680 if test "${enable_shared+set}" = set; then
1681 enableval="$enable_shared"
1682 p=${PACKAGE-default}
1683 case $enableval in
1684 yes) enable_shared=yes ;;
1685 no) enable_shared=no ;;
1687 enable_shared=no
1688 # Look at the argument we got. We use all the common list separators.
1689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1690 for pkg in $enableval; do
1691 if test "X$pkg" = "X$p"; then
1692 enable_shared=yes
1694 done
1695 IFS="$ac_save_ifs"
1697 esac
1698 else
1699 enable_shared=yes
1702 # Check whether --enable-static or --disable-static was given.
1703 if test "${enable_static+set}" = set; then
1704 enableval="$enable_static"
1705 p=${PACKAGE-default}
1706 case $enableval in
1707 yes) enable_static=yes ;;
1708 no) enable_static=no ;;
1710 enable_static=no
1711 # Look at the argument we got. We use all the common list separators.
1712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1713 for pkg in $enableval; do
1714 if test "X$pkg" = "X$p"; then
1715 enable_static=yes
1717 done
1718 IFS="$ac_save_ifs"
1720 esac
1721 else
1722 enable_static=yes
1725 # Check whether --enable-fast-install or --disable-fast-install was given.
1726 if test "${enable_fast_install+set}" = set; then
1727 enableval="$enable_fast_install"
1728 p=${PACKAGE-default}
1729 case $enableval in
1730 yes) enable_fast_install=yes ;;
1731 no) enable_fast_install=no ;;
1733 enable_fast_install=no
1734 # Look at the argument we got. We use all the common list separators.
1735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1736 for pkg in $enableval; do
1737 if test "X$pkg" = "X$p"; then
1738 enable_fast_install=yes
1740 done
1741 IFS="$ac_save_ifs"
1743 esac
1744 else
1745 enable_fast_install=yes
1748 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1749 if test "${with_gnu_ld+set}" = set; then
1750 withval="$with_gnu_ld"
1751 test "$withval" = no || with_gnu_ld=yes
1752 else
1753 with_gnu_ld=no
1756 ac_prog=ld
1757 if test "$GCC" = yes; then
1758 # Check if gcc -print-prog-name=ld gives a path.
1759 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1760 echo "configure:1761: checking for ld used by GCC" >&5
1761 case $host in
1762 *-*-mingw*)
1763 # gcc leaves a trailing carriage return which upsets mingw
1764 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1766 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1767 esac
1768 case $ac_prog in
1769 # Accept absolute paths.
1770 [\\/]* | [A-Za-z]:[\\/]*)
1771 re_direlt='/[^/][^/]*/\.\./'
1772 # Canonicalize the path of ld
1773 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1774 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1775 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1776 done
1777 test -z "$LD" && LD="$ac_prog"
1780 # If it fails, then pretend we aren't using GCC.
1781 ac_prog=ld
1784 # If it is relative, then search for the first ld in PATH.
1785 with_gnu_ld=unknown
1787 esac
1788 elif test "$with_gnu_ld" = yes; then
1789 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1790 echo "configure:1791: checking for GNU ld" >&5
1791 else
1792 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1793 echo "configure:1794: checking for non-GNU ld" >&5
1795 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1797 else
1798 if test -z "$LD"; then
1799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1800 for ac_dir in $PATH; do
1801 test -z "$ac_dir" && ac_dir=.
1802 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1803 lt_cv_path_LD="$ac_dir/$ac_prog"
1804 # Check to see if the program is GNU ld. I'd rather use --version,
1805 # but apparently some GNU ld's only accept -v.
1806 # Break only if it was the GNU/non-GNU ld that we prefer.
1807 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1808 test "$with_gnu_ld" != no && break
1809 else
1810 test "$with_gnu_ld" != yes && break
1813 done
1814 IFS="$ac_save_ifs"
1815 else
1816 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1820 LD="$lt_cv_path_LD"
1821 if test -n "$LD"; then
1822 echo "$ac_t""$LD" 1>&6
1823 else
1824 echo "$ac_t""no" 1>&6
1826 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1827 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1828 echo "configure:1829: checking if the linker ($LD) is GNU ld" >&5
1829 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1831 else
1832 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1833 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1834 lt_cv_prog_gnu_ld=yes
1835 else
1836 lt_cv_prog_gnu_ld=no
1840 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1841 with_gnu_ld=$lt_cv_prog_gnu_ld
1844 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1845 echo "configure:1846: checking for $LD option to reload object files" >&5
1846 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1848 else
1849 lt_cv_ld_reload_flag='-r'
1852 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1853 reload_flag=$lt_cv_ld_reload_flag
1854 test -n "$reload_flag" && reload_flag=" $reload_flag"
1856 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1857 echo "configure:1858: checking for BSD-compatible nm" >&5
1858 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1860 else
1861 if test -n "$NM"; then
1862 # Let the user override the test.
1863 lt_cv_path_NM="$NM"
1864 else
1865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1866 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1867 test -z "$ac_dir" && ac_dir=.
1868 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1869 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1870 # Check to see if the nm accepts a BSD-compat flag.
1871 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1872 # nm: unknown option "B" ignored
1873 # Tru64's nm complains that /dev/null is an invalid object file
1874 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1875 lt_cv_path_NM="$tmp_nm -B"
1876 break
1877 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1878 lt_cv_path_NM="$tmp_nm -p"
1879 break
1880 else
1881 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1882 continue # so that we can try to find one that supports BSD flags
1885 done
1886 IFS="$ac_save_ifs"
1887 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1891 NM="$lt_cv_path_NM"
1892 echo "$ac_t""$NM" 1>&6
1894 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1895 echo "configure:1896: checking how to recognise dependant libraries" >&5
1896 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1898 else
1899 lt_cv_file_magic_cmd='$MAGIC_CMD'
1900 lt_cv_file_magic_test_file=
1901 lt_cv_deplibs_check_method='unknown'
1902 # Need to set the preceding variable on all platforms that support
1903 # interlibrary dependencies.
1904 # 'none' -- dependencies not supported.
1905 # `unknown' -- same as none, but documents that we really don't know.
1906 # 'pass_all' -- all dependencies passed with no checks.
1907 # 'test_compile' -- check by making test program.
1908 # 'file_magic [regex]' -- check by looking for files in library path
1909 # which responds to the $file_magic_cmd with a given egrep regex.
1910 # If you have `file' or equivalent on your system and you're not sure
1911 # whether `pass_all' will *always* work, you probably want this one.
1913 case $host_os in
1914 aix*)
1915 lt_cv_deplibs_check_method=pass_all
1918 beos*)
1919 lt_cv_deplibs_check_method=pass_all
1922 bsdi4*)
1923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1924 lt_cv_file_magic_cmd='/usr/bin/file -L'
1925 lt_cv_file_magic_test_file=/shlib/libc.so
1928 cygwin* | mingw* |pw32*)
1929 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1930 lt_cv_file_magic_cmd='$OBJDUMP -f'
1933 darwin* | rhapsody*)
1934 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1935 lt_cv_file_magic_cmd='/usr/bin/file -L'
1936 case "$host_os" in
1937 rhapsody* | darwin1.012)
1938 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1940 *) # Darwin 1.3 on
1941 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1943 esac
1946 freebsd* )
1947 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1948 case $host_cpu in
1949 i*86 )
1950 # Not sure whether the presence of OpenBSD here was a mistake.
1951 # Let's accept both of them until this is cleared up.
1952 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1953 lt_cv_file_magic_cmd=/usr/bin/file
1954 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1956 esac
1957 else
1958 lt_cv_deplibs_check_method=pass_all
1962 gnu*)
1963 lt_cv_deplibs_check_method=pass_all
1966 hpux10.20*|hpux11*)
1967 case $host_cpu in
1968 hppa*)
1969 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1970 lt_cv_file_magic_cmd=/usr/bin/file
1971 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1973 ia64*)
1974 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1975 lt_cv_file_magic_cmd=/usr/bin/file
1976 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1978 esac
1981 irix5* | irix6*)
1982 case $host_os in
1983 irix5*)
1984 # this will be overridden with pass_all, but let us keep it just in case
1985 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1988 case $LD in
1989 *-32|*"-32 ") libmagic=32-bit;;
1990 *-n32|*"-n32 ") libmagic=N32;;
1991 *-64|*"-64 ") libmagic=64-bit;;
1992 *) libmagic=never-match;;
1993 esac
1994 # this will be overridden with pass_all, but let us keep it just in case
1995 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1997 esac
1998 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1999 lt_cv_deplibs_check_method=pass_all
2002 # This must be Linux ELF.
2003 linux-gnu*)
2004 case $host_cpu in
2005 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2006 lt_cv_deplibs_check_method=pass_all ;;
2008 # glibc up to 2.1.1 does not perform some relocations on ARM
2009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2010 esac
2011 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2014 netbsd*)
2015 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2016 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2017 else
2018 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2022 newsos6)
2023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2024 lt_cv_file_magic_cmd=/usr/bin/file
2025 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2028 osf3* | osf4* | osf5*)
2029 # this will be overridden with pass_all, but let us keep it just in case
2030 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2031 lt_cv_file_magic_test_file=/shlib/libc.so
2032 lt_cv_deplibs_check_method=pass_all
2035 sco3.2v5*)
2036 lt_cv_deplibs_check_method=pass_all
2039 solaris*)
2040 lt_cv_deplibs_check_method=pass_all
2041 lt_cv_file_magic_test_file=/lib/libc.so
2044 sysv5uw[78]* | sysv4*uw2*)
2045 lt_cv_deplibs_check_method=pass_all
2048 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2049 case $host_vendor in
2050 ncr)
2051 lt_cv_deplibs_check_method=pass_all
2053 motorola)
2054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2055 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2057 esac
2059 esac
2063 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2064 file_magic_cmd=$lt_cv_file_magic_cmd
2065 deplibs_check_method=$lt_cv_deplibs_check_method
2067 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2068 echo "configure:2069: checking for object suffix" >&5
2069 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2071 else
2072 rm -f conftest*
2073 echo 'int i = 1;' > conftest.$ac_ext
2074 if { (eval echo configure:2075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2075 for ac_file in conftest.*; do
2076 case $ac_file in
2077 *.c) ;;
2078 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2079 esac
2080 done
2081 else
2082 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2084 rm -f conftest*
2087 echo "$ac_t""$ac_cv_objext" 1>&6
2088 OBJEXT=$ac_cv_objext
2089 ac_objext=$ac_cv_objext
2091 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2093 # Only perform the check for file, if the check method requires it
2094 case $deplibs_check_method in
2095 file_magic*)
2096 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2097 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2098 echo "configure:2099: checking for ${ac_tool_prefix}file" >&5
2099 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2100 echo $ac_n "(cached) $ac_c" 1>&6
2101 else
2102 case $MAGIC_CMD in
2104 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2106 ?:/*)
2107 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2110 ac_save_MAGIC_CMD="$MAGIC_CMD"
2111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2112 ac_dummy="/usr/bin:$PATH"
2113 for ac_dir in $ac_dummy; do
2114 test -z "$ac_dir" && ac_dir=.
2115 if test -f $ac_dir/${ac_tool_prefix}file; then
2116 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2117 if test -n "$file_magic_test_file"; then
2118 case $deplibs_check_method in
2119 "file_magic "*)
2120 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2122 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2123 egrep "$file_magic_regex" > /dev/null; then
2125 else
2126 cat <<EOF 1>&2
2128 *** Warning: the command libtool uses to detect shared libraries,
2129 *** $file_magic_cmd, produces output that libtool cannot recognize.
2130 *** The result is that libtool may fail to recognize shared libraries
2131 *** as such. This will affect the creation of libtool libraries that
2132 *** depend on shared libraries, but programs linked with such libtool
2133 *** libraries will work regardless of this problem. Nevertheless, you
2134 *** may want to report the problem to your system manager and/or to
2135 *** bug-libtool@gnu.org
2138 fi ;;
2139 esac
2141 break
2143 done
2144 IFS="$ac_save_ifs"
2145 MAGIC_CMD="$ac_save_MAGIC_CMD"
2147 esac
2150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2151 if test -n "$MAGIC_CMD"; then
2152 echo "$ac_t""$MAGIC_CMD" 1>&6
2153 else
2154 echo "$ac_t""no" 1>&6
2157 if test -z "$lt_cv_path_MAGIC_CMD"; then
2158 if test -n "$ac_tool_prefix"; then
2159 echo $ac_n "checking for file""... $ac_c" 1>&6
2160 echo "configure:2161: checking for file" >&5
2161 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2163 else
2164 case $MAGIC_CMD in
2166 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2168 ?:/*)
2169 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2172 ac_save_MAGIC_CMD="$MAGIC_CMD"
2173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2174 ac_dummy="/usr/bin:$PATH"
2175 for ac_dir in $ac_dummy; do
2176 test -z "$ac_dir" && ac_dir=.
2177 if test -f $ac_dir/file; then
2178 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2179 if test -n "$file_magic_test_file"; then
2180 case $deplibs_check_method in
2181 "file_magic "*)
2182 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2183 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2184 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2185 egrep "$file_magic_regex" > /dev/null; then
2187 else
2188 cat <<EOF 1>&2
2190 *** Warning: the command libtool uses to detect shared libraries,
2191 *** $file_magic_cmd, produces output that libtool cannot recognize.
2192 *** The result is that libtool may fail to recognize shared libraries
2193 *** as such. This will affect the creation of libtool libraries that
2194 *** depend on shared libraries, but programs linked with such libtool
2195 *** libraries will work regardless of this problem. Nevertheless, you
2196 *** may want to report the problem to your system manager and/or to
2197 *** bug-libtool@gnu.org
2200 fi ;;
2201 esac
2203 break
2205 done
2206 IFS="$ac_save_ifs"
2207 MAGIC_CMD="$ac_save_MAGIC_CMD"
2209 esac
2212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2213 if test -n "$MAGIC_CMD"; then
2214 echo "$ac_t""$MAGIC_CMD" 1>&6
2215 else
2216 echo "$ac_t""no" 1>&6
2219 else
2220 MAGIC_CMD=:
2226 esac
2228 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2229 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2231 echo "configure:2232: checking for $ac_word" >&5
2232 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2234 else
2235 if test -n "$RANLIB"; then
2236 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2237 else
2238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2239 ac_dummy="$PATH"
2240 for ac_dir in $ac_dummy; do
2241 test -z "$ac_dir" && ac_dir=.
2242 if test -f $ac_dir/$ac_word; then
2243 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2244 break
2246 done
2247 IFS="$ac_save_ifs"
2250 RANLIB="$ac_cv_prog_RANLIB"
2251 if test -n "$RANLIB"; then
2252 echo "$ac_t""$RANLIB" 1>&6
2253 else
2254 echo "$ac_t""no" 1>&6
2258 if test -z "$ac_cv_prog_RANLIB"; then
2259 if test -n "$ac_tool_prefix"; then
2260 # Extract the first word of "ranlib", so it can be a program name with args.
2261 set dummy ranlib; ac_word=$2
2262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2263 echo "configure:2264: checking for $ac_word" >&5
2264 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2266 else
2267 if test -n "$RANLIB"; then
2268 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2269 else
2270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2271 ac_dummy="$PATH"
2272 for ac_dir in $ac_dummy; do
2273 test -z "$ac_dir" && ac_dir=.
2274 if test -f $ac_dir/$ac_word; then
2275 ac_cv_prog_RANLIB="ranlib"
2276 break
2278 done
2279 IFS="$ac_save_ifs"
2280 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2283 RANLIB="$ac_cv_prog_RANLIB"
2284 if test -n "$RANLIB"; then
2285 echo "$ac_t""$RANLIB" 1>&6
2286 else
2287 echo "$ac_t""no" 1>&6
2290 else
2291 RANLIB=":"
2295 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2296 set dummy ${ac_tool_prefix}strip; ac_word=$2
2297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2298 echo "configure:2299: checking for $ac_word" >&5
2299 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2301 else
2302 if test -n "$STRIP"; then
2303 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2304 else
2305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2306 ac_dummy="$PATH"
2307 for ac_dir in $ac_dummy; do
2308 test -z "$ac_dir" && ac_dir=.
2309 if test -f $ac_dir/$ac_word; then
2310 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2311 break
2313 done
2314 IFS="$ac_save_ifs"
2317 STRIP="$ac_cv_prog_STRIP"
2318 if test -n "$STRIP"; then
2319 echo "$ac_t""$STRIP" 1>&6
2320 else
2321 echo "$ac_t""no" 1>&6
2325 if test -z "$ac_cv_prog_STRIP"; then
2326 if test -n "$ac_tool_prefix"; then
2327 # Extract the first word of "strip", so it can be a program name with args.
2328 set dummy strip; ac_word=$2
2329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_word" >&5
2331 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2333 else
2334 if test -n "$STRIP"; then
2335 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2336 else
2337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2338 ac_dummy="$PATH"
2339 for ac_dir in $ac_dummy; do
2340 test -z "$ac_dir" && ac_dir=.
2341 if test -f $ac_dir/$ac_word; then
2342 ac_cv_prog_STRIP="strip"
2343 break
2345 done
2346 IFS="$ac_save_ifs"
2347 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2350 STRIP="$ac_cv_prog_STRIP"
2351 if test -n "$STRIP"; then
2352 echo "$ac_t""$STRIP" 1>&6
2353 else
2354 echo "$ac_t""no" 1>&6
2357 else
2358 STRIP=":"
2363 # Check for any special flags to pass to ltconfig.
2364 libtool_flags="--cache-file=$cache_file"
2365 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2366 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2367 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2368 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2369 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2370 libtool_flags="$libtool_flags --enable-dlopen"
2372 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2373 if test "${enable_libtool_lock+set}" = set; then
2374 enableval="$enable_libtool_lock"
2378 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2379 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2381 # Check whether --with-pic or --without-pic was given.
2382 if test "${with_pic+set}" = set; then
2383 withval="$with_pic"
2384 pic_mode="$withval"
2385 else
2386 pic_mode=default
2389 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2390 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2392 # Some flags need to be propagated to the compiler or linker for good
2393 # libtool support.
2394 case $host in
2395 *-*-irix6*)
2396 # Find out which ABI we are using.
2397 echo '#line 2398 "configure"' > conftest.$ac_ext
2398 if { (eval echo configure:2399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2399 if test "$lt_cv_prog_gnu_ld" = yes; then
2400 case `/usr/bin/file conftest.$ac_objext` in
2401 *32-bit*)
2402 LD="${LD-ld} -melf32bsmip"
2404 *N32*)
2405 LD="${LD-ld} -melf32bmipn32"
2407 *64-bit*)
2408 LD="${LD-ld} -melf64bmip"
2410 esac
2411 else
2412 case `/usr/bin/file conftest.$ac_objext` in
2413 *32-bit*)
2414 LD="${LD-ld} -32"
2416 *N32*)
2417 LD="${LD-ld} -n32"
2419 *64-bit*)
2420 LD="${LD-ld} -64"
2422 esac
2425 rm -rf conftest*
2428 ia64-*-hpux*)
2429 # Find out which ABI we are using.
2430 echo 'int i;' > conftest.$ac_ext
2431 if { (eval echo configure:2432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2432 case "`/usr/bin/file conftest.o`" in
2433 *ELF-32*)
2434 HPUX_IA64_MODE="32"
2436 *ELF-64*)
2437 HPUX_IA64_MODE="64"
2439 esac
2441 rm -rf conftest*
2444 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2445 # Find out which ABI we are using.
2446 echo 'int i;' > conftest.$ac_ext
2447 if { (eval echo configure:2448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2448 case "`/usr/bin/file conftest.o`" in
2449 *32-bit*)
2450 case $host in
2451 x86_64-*linux*)
2452 LD="${LD-ld} -m elf_i386"
2454 ppc64-*linux*)
2455 LD="${LD-ld} -m elf32ppclinux"
2457 s390x-*linux*)
2458 LD="${LD-ld} -m elf_s390"
2460 sparc64-*linux*)
2461 LD="${LD-ld} -m elf32_sparc"
2463 esac
2465 *64-bit*)
2466 case $host in
2467 x86_64-*linux*)
2468 LD="${LD-ld} -m elf_x86_64"
2470 ppc*-*linux*|powerpc*-*linux*)
2471 LD="${LD-ld} -m elf64ppc"
2473 s390*-*linux*)
2474 LD="${LD-ld} -m elf64_s390"
2476 sparc*-*linux*)
2477 LD="${LD-ld} -m elf64_sparc"
2479 esac
2481 esac
2483 rm -rf conftest*
2486 *-*-sco3.2v5*)
2487 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2488 SAVE_CFLAGS="$CFLAGS"
2489 CFLAGS="$CFLAGS -belf"
2490 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2491 echo "configure:2492: checking whether the C compiler needs -belf" >&5
2492 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2494 else
2496 ac_ext=c
2497 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2498 ac_cpp='$CPP $CPPFLAGS'
2499 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2500 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2501 cross_compiling=$ac_cv_prog_cc_cross
2503 cat > conftest.$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2507 int main() {
2509 ; return 0; }
2511 if { (eval echo configure:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2512 rm -rf conftest*
2513 lt_cv_cc_needs_belf=yes
2514 else
2515 echo "configure: failed program was:" >&5
2516 cat conftest.$ac_ext >&5
2517 rm -rf conftest*
2518 lt_cv_cc_needs_belf=no
2520 rm -f conftest*
2521 ac_ext=c
2522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2523 ac_cpp='$CPP $CPPFLAGS'
2524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2526 cross_compiling=$ac_cv_prog_cc_cross
2530 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2531 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2532 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2533 CFLAGS="$SAVE_CFLAGS"
2538 esac
2540 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2541 echo "configure:2542: checking how to run the C++ preprocessor" >&5
2542 if test -z "$CXXCPP"; then
2543 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2545 else
2546 ac_ext=C
2547 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2548 ac_cpp='$CXXCPP $CPPFLAGS'
2549 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2550 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2551 cross_compiling=$ac_cv_prog_cxx_cross
2552 CXXCPP="${CXX-g++} -E"
2553 cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2556 #include <stdlib.h>
2558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2559 { (eval echo configure:2560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2561 if test -z "$ac_err"; then
2563 else
2564 echo "$ac_err" >&5
2565 echo "configure: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2567 rm -rf conftest*
2568 CXXCPP=/lib/cpp
2570 rm -f conftest*
2571 ac_cv_prog_CXXCPP="$CXXCPP"
2572 ac_ext=c
2573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2574 ac_cpp='$CPP $CPPFLAGS'
2575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2576 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2577 cross_compiling=$ac_cv_prog_cc_cross
2580 CXXCPP="$ac_cv_prog_CXXCPP"
2581 echo "$ac_t""$CXXCPP" 1>&6
2584 # Save cache, so that ltconfig can load it
2585 cat > confcache <<\EOF
2586 # This file is a shell script that caches the results of configure
2587 # tests run on this system so they can be shared between configure
2588 # scripts and configure runs. It is not useful on other systems.
2589 # If it contains results you don't want to keep, you may remove or edit it.
2591 # By default, configure uses ./config.cache as the cache file,
2592 # creating it if it does not exist already. You can give configure
2593 # the --cache-file=FILE option to use a different cache file; that is
2594 # what configure does when it calls configure scripts in
2595 # subdirectories, so they share the cache.
2596 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2597 # config.status only pays attention to the cache file if you give it the
2598 # --recheck option to rerun configure.
2601 # The following way of writing the cache mishandles newlines in values,
2602 # but we know of no workaround that is simple, portable, and efficient.
2603 # So, don't put newlines in cache variables' values.
2604 # Ultrix sh set writes to stderr and can't be redirected directly,
2605 # and sets the high bit in the cache file unless we assign to the vars.
2606 (set) 2>&1 |
2607 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2608 *ac_space=\ *)
2609 # `set' does not quote correctly, so add quotes (double-quote substitution
2610 # turns \\\\ into \\, and sed turns \\ into \).
2611 sed -n \
2612 -e "s/'/'\\\\''/g" \
2613 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2616 # `set' quotes correctly as required by POSIX, so do not add quotes.
2617 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2619 esac >> confcache
2620 if cmp -s $cache_file confcache; then
2622 else
2623 if test -w $cache_file; then
2624 echo "updating cache $cache_file"
2625 cat confcache > $cache_file
2626 else
2627 echo "not updating unwritable cache $cache_file"
2630 rm -f confcache
2633 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2634 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2635 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2636 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2637 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2638 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2639 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2640 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2641 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2642 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2644 # Reload cache, that may have been modified by ltconfig
2645 if test -r "$cache_file"; then
2646 echo "loading cache $cache_file"
2647 . $cache_file
2648 else
2649 echo "creating cache $cache_file"
2650 > $cache_file
2654 # This can be used to rebuild libtool when needed
2655 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2657 # Always use our own libtool.
2658 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2660 # Redirect the config.log output again, so that the ltconfig log is not
2661 # clobbered by the next message.
2662 exec 5>>./config.log
2666 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2667 lt_save_CC="$CC"
2668 lt_save_CFLAGS="$CFLAGS"
2669 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2670 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2671 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2672 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2673 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2674 deplibs_check_method="$deplibs_check_method" \
2675 file_magic_cmd="$file_magic_cmd" \
2676 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2677 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2678 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2679 CC="$lt_save_CC"
2680 CFLAGS="$lt_save_CFLAGS"
2682 # Redirect the config.log output again, so that the ltconfig log is not
2683 # clobbered by the next message.
2684 exec 5>>./config.log
2694 # Check for c++ or library specific bits that don't require linking.
2695 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2696 echo "configure:2697: checking for GNU make" >&5
2697 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2699 else
2700 _cv_gnu_make_command='' ;
2701 for a in "${MAKE-make}" make gmake gnumake ; do
2702 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2703 then
2704 _cv_gnu_make_command=$a ;
2705 break;
2707 done ;
2711 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2712 if test "x$_cv_gnu_make_command" != "x" ; then
2713 ifGNUmake='' ;
2714 else
2715 ifGNUmake='#' ;
2719 #GLIBCPP_CHECK_COMPILER_VERSION
2721 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2722 ac_save_CXXFLAGS="$CXXFLAGS"
2723 CXXFLAGS='-Werror -Winvalid-pch -Wno-deprecated -x c++-header'
2725 echo $ac_n "checking for compiler that seems to compile .gch files""... $ac_c" 1>&6
2726 echo "configure:2727: checking for compiler that seems to compile .gch files" >&5
2727 if test x${glibcpp_pch_comp+set} != xset; then
2728 if eval "test \"`echo '$''{'glibcpp_pch_comp'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2730 else
2733 ac_ext=C
2734 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2735 ac_cpp='$CXXCPP $CPPFLAGS'
2736 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2737 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2738 cross_compiling=$ac_cv_prog_cxx_cross
2740 cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2743 #include <math.h>
2745 int main() {
2746 (0);
2747 ; return 0; }
2749 if { (eval echo configure:2750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2750 rm -rf conftest*
2751 glibcpp_pch_comp=yes
2752 else
2753 echo "configure: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2755 rm -rf conftest*
2756 glibcpp_pch_comp=no
2758 rm -f conftest*
2759 ac_ext=c
2760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2763 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2764 cross_compiling=$ac_cv_prog_cc_cross
2770 echo "$ac_t""$glibcpp_pch_comp" 1>&6
2772 CXXFLAGS="$ac_save_CXXFLAGS"
2775 if test "$glibcpp_pch_comp" = yes; then
2776 GLIBCPP_BUILD_PCH_TRUE=
2777 GLIBCPP_BUILD_PCH_FALSE='#'
2778 else
2779 GLIBCPP_BUILD_PCH_TRUE='#'
2780 GLIBCPP_BUILD_PCH_FALSE=
2784 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2785 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2786 echo "configure:2787: checking how to run the C preprocessor" >&5
2787 # On Suns, sometimes $CPP names a directory.
2788 if test -n "$CPP" && test -d "$CPP"; then
2789 CPP=
2791 if test -z "$CPP"; then
2792 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2794 else
2795 # This must be in double quotes, not single quotes, because CPP may get
2796 # substituted into the Makefile and "${CC-cc}" will confuse make.
2797 CPP="${CC-cc} -E"
2798 # On the NeXT, cc -E runs the code through the compiler's parser,
2799 # not just through cpp.
2800 cat > conftest.$ac_ext <<EOF
2801 #line 2802 "configure"
2802 #include "confdefs.h"
2803 #include <assert.h>
2804 Syntax Error
2806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2807 { (eval echo configure:2808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2809 if test -z "$ac_err"; then
2811 else
2812 echo "$ac_err" >&5
2813 echo "configure: failed program was:" >&5
2814 cat conftest.$ac_ext >&5
2815 rm -rf conftest*
2816 CPP="${CC-cc} -E -traditional-cpp"
2817 cat > conftest.$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2820 #include <assert.h>
2821 Syntax Error
2823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2824 { (eval echo configure:2825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2826 if test -z "$ac_err"; then
2828 else
2829 echo "$ac_err" >&5
2830 echo "configure: failed program was:" >&5
2831 cat conftest.$ac_ext >&5
2832 rm -rf conftest*
2833 CPP="${CC-cc} -nologo -E"
2834 cat > conftest.$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2837 #include <assert.h>
2838 Syntax Error
2840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2841 { (eval echo configure:2842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2843 if test -z "$ac_err"; then
2845 else
2846 echo "$ac_err" >&5
2847 echo "configure: failed program was:" >&5
2848 cat conftest.$ac_ext >&5
2849 rm -rf conftest*
2850 CPP=/lib/cpp
2852 rm -f conftest*
2854 rm -f conftest*
2856 rm -f conftest*
2857 ac_cv_prog_CPP="$CPP"
2859 CPP="$ac_cv_prog_CPP"
2860 else
2861 ac_cv_prog_CPP="$CPP"
2863 echo "$ac_t""$CPP" 1>&6
2866 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2867 echo "configure:2868: checking for cstdio to use" >&5
2868 # Check whether --enable-cstdio or --disable-cstdio was given.
2869 if test "${enable_cstdio+set}" = set; then
2870 enableval="$enable_cstdio"
2871 if test x$enable_cstdio = xno; then
2872 enable_cstdio=stdio
2874 else
2875 enable_cstdio=stdio
2879 enable_cstdio_flag=$enable_cstdio
2881 case x${enable_cstdio_flag} in
2882 xlibio)
2883 CSTDIO_H=config/io/c_io_libio.h
2884 BASIC_FILE_H=config/io/basic_file_libio.h
2885 BASIC_FILE_CC=config/io/basic_file_libio.cc
2886 echo "$ac_t""libio" 1>&6
2888 # see if we are on a system with libio native (ie, linux)
2889 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2890 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2891 echo "configure:2892: checking for libio.h" >&5
2892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2894 else
2895 cat > conftest.$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2898 #include <libio.h>
2900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2901 { (eval echo configure:2902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2903 if test -z "$ac_err"; then
2904 rm -rf conftest*
2905 eval "ac_cv_header_$ac_safe=yes"
2906 else
2907 echo "$ac_err" >&5
2908 echo "configure: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2910 rm -rf conftest*
2911 eval "ac_cv_header_$ac_safe=no"
2913 rm -f conftest*
2915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2916 echo "$ac_t""yes" 1>&6
2917 has_libio=yes
2918 else
2919 echo "$ac_t""no" 1>&6
2920 has_libio=no
2924 # Need to check and see what version of glibc is being used. If
2925 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2926 # compile most of libio for linux systems.
2927 if test x$has_libio = x"yes"; then
2928 case "$target" in
2929 *-*-linux*)
2930 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2931 echo "configure:2932: checking for glibc version >= 2.2" >&5
2932 cat > conftest.$ac_ext <<EOF
2933 #line 2934 "configure"
2934 #include "confdefs.h"
2936 #include <features.h>
2937 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2939 #endif
2942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2943 egrep "ok" >/dev/null 2>&1; then
2944 rm -rf conftest*
2945 glibc_satisfactory=yes
2946 else
2947 rm -rf conftest*
2948 glibc_satisfactory=no
2950 rm -f conftest*
2952 echo "$ac_t""$glibc_satisfactory" 1>&6
2954 esac
2956 # XXX at the moment, admit defeat and force the recompilation
2957 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2958 glibc_satisfactory=no
2960 if test x$glibc_satisfactory = x"yes"; then
2961 need_libio=no
2962 need_wlibio=no
2963 else
2964 need_libio=yes
2965 # bkoz XXX need to add checks to enable this
2966 # pme XXX here's a first pass at such a check
2967 if test x$enable_c_mbchar != xno; then
2968 need_wlibio=yes
2969 else
2970 need_wlibio=no
2974 else
2975 # Using libio, but <libio.h> doesn't exist on the target system. . .
2976 need_libio=yes
2977 # bkoz XXX need to add checks to enable this
2978 # pme XXX here's a first pass at such a check
2979 if test x$enable_c_mbchar != xno; then
2980 need_wlibio=yes
2981 else
2982 need_wlibio=no
2986 xstdio | x | xno | xnone | xyes)
2987 # default
2988 CSTDIO_H=config/io/c_io_stdio.h
2989 BASIC_FILE_H=config/io/basic_file_stdio.h
2990 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2991 echo "$ac_t""stdio" 1>&6
2993 # We're not using stdio.
2994 need_libio=no
2995 need_wlibio=no
2998 echo "$enable_cstdio is an unknown io package" 1>&2
2999 exit 1
3001 esac
3006 # 2000-08-04 bkoz hack
3007 CCODECVT_C=config/io/c_io_libio_codecvt.c
3009 # 2000-08-04 bkoz hack
3013 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3014 GLIBCPP_BUILD_LIBIO_TRUE=
3015 GLIBCPP_BUILD_LIBIO_FALSE='#'
3016 else
3017 GLIBCPP_BUILD_LIBIO_TRUE='#'
3018 GLIBCPP_BUILD_LIBIO_FALSE=
3022 if test "$need_libio" = yes; then
3023 GLIBCPP_NEED_LIBIO_TRUE=
3024 GLIBCPP_NEED_LIBIO_FALSE='#'
3025 else
3026 GLIBCPP_NEED_LIBIO_TRUE='#'
3027 GLIBCPP_NEED_LIBIO_FALSE=
3031 if test "$need_wlibio" = yes; then
3032 GLIBCPP_NEED_WLIBIO_TRUE=
3033 GLIBCPP_NEED_WLIBIO_FALSE='#'
3034 else
3035 GLIBCPP_NEED_WLIBIO_TRUE='#'
3036 GLIBCPP_NEED_WLIBIO_FALSE=
3038 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3039 libio_la=../libio/libio.la
3040 else
3041 libio_la=
3046 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3047 echo "configure:3048: checking for clocale to use" >&5
3048 # Check whether --enable-clocale or --disable-clocale was given.
3049 if test "${enable_clocale+set}" = set; then
3050 enableval="$enable_clocale"
3051 if test x$enable_clocale = xno; then
3052 enable_clocale=no
3054 else
3055 enable_clocale=no
3059 enable_clocale_flag=$enable_clocale
3061 if test x$enable_clocale_flag = xno; then
3062 case x${target_os} in
3063 xlinux* | xgnu*)
3064 cat > conftest.$ac_ext <<EOF
3065 #line 3066 "configure"
3066 #include "confdefs.h"
3068 #include <features.h>
3069 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3070 _GLIBCPP_ok
3071 #endif
3074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3075 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3076 rm -rf conftest*
3077 enable_clocale_flag=gnu
3078 else
3079 rm -rf conftest*
3080 enable_clocale_flag=generic
3082 rm -f conftest*
3085 # Test for bugs early in glibc-2.2.x series
3086 if test x$enable_clocale_flag = xgnu; then
3087 if test "$cross_compiling" = yes; then
3088 enable_clocale_flag=generic
3089 else
3090 cat > conftest.$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3094 #define _GNU_SOURCE 1
3095 #include <locale.h>
3096 #include <string.h>
3097 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3098 extern __typeof(newlocale) __newlocale;
3099 extern __typeof(duplocale) __duplocale;
3100 extern __typeof(strcoll_l) __strcoll_l;
3101 #endif
3102 int main()
3104 const char __one[] = "Äuglein Augmen";
3105 const char __two[] = "Äuglein";
3106 int i;
3107 int j;
3108 __locale_t loc;
3109 __locale_t loc_dup;
3110 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3111 loc_dup = __duplocale(loc);
3112 i = __strcoll_l(__one, __two, loc);
3113 j = __strcoll_l(__one, __two, loc_dup);
3114 return 0;
3118 if { (eval echo configure:3119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3119 then
3120 enable_clocale_flag=gnu
3121 else
3122 echo "configure: failed program was:" >&5
3123 cat conftest.$ac_ext >&5
3124 rm -fr conftest*
3125 enable_clocale_flag=generic
3127 rm -fr conftest*
3132 # ... at some point put __strxfrm_l tests in as well.
3135 enable_clocale_flag=generic
3137 esac
3140 # Check whether --enable-nls or --disable-nls was given.
3141 if test "${enable_nls+set}" = set; then
3142 enableval="$enable_nls"
3144 else
3145 enable_nls=yes
3148 USE_NLS=no
3150 case x${enable_clocale_flag} in
3151 xgeneric)
3152 echo "$ac_t""generic" 1>&6
3154 CLOCALE_H=config/locale/generic/c_locale.h
3155 CLOCALE_CC=config/locale/generic/c_locale.cc
3156 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3157 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3158 CCOLLATE_CC=config/locale/generic/collate_members.cc
3159 CCTYPE_CC=config/locale/generic/ctype_members.cc
3160 CMESSAGES_H=config/locale/generic/messages_members.h
3161 CMESSAGES_CC=config/locale/generic/messages_members.cc
3162 CMONEY_CC=config/locale/generic/monetary_members.cc
3163 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3164 CTIME_H=config/locale/generic/time_members.h
3165 CTIME_CC=config/locale/generic/time_members.cc
3166 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3168 xgnu)
3169 echo "$ac_t""gnu" 1>&6
3171 # Declare intention to use gettext, and add support for specific
3172 # languages.
3173 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3174 ALL_LINGUAS="de fr"
3176 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3177 # Extract the first word of "msgfmt", so it can be a program name with args.
3178 set dummy msgfmt; ac_word=$2
3179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3180 echo "configure:3181: checking for $ac_word" >&5
3181 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3182 echo $ac_n "(cached) $ac_c" 1>&6
3183 else
3184 if test -n "$check_msgfmt"; then
3185 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3186 else
3187 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3188 ac_dummy="$PATH"
3189 for ac_dir in $ac_dummy; do
3190 test -z "$ac_dir" && ac_dir=.
3191 if test -f $ac_dir/$ac_word; then
3192 ac_cv_prog_check_msgfmt="yes"
3193 break
3195 done
3196 IFS="$ac_save_ifs"
3197 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3200 check_msgfmt="$ac_cv_prog_check_msgfmt"
3201 if test -n "$check_msgfmt"; then
3202 echo "$ac_t""$check_msgfmt" 1>&6
3203 else
3204 echo "$ac_t""no" 1>&6
3207 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3208 USE_NLS=yes
3210 # Export the build objects.
3211 for ling in $ALL_LINGUAS; do \
3212 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3213 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3214 done
3218 CLOCALE_H=config/locale/gnu/c_locale.h
3219 CLOCALE_CC=config/locale/gnu/c_locale.cc
3220 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3221 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3222 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3223 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3224 CMESSAGES_H=config/locale/gnu/messages_members.h
3225 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3226 CMONEY_CC=config/locale/gnu/monetary_members.cc
3227 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3228 CTIME_H=config/locale/gnu/time_members.h
3229 CTIME_CC=config/locale/gnu/time_members.cc
3230 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3232 xieee_1003.1-2001)
3233 echo "$ac_t""IEEE 1003.1" 1>&6
3235 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3236 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3237 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3238 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3239 CCOLLATE_CC=config/locale/generic/collate_members.cc
3240 CCTYPE_CC=config/locale/generic/ctype_members.cc
3241 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3242 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3243 CMONEY_CC=config/locale/generic/monetary_members.cc
3244 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3245 CTIME_H=config/locale/generic/time_members.h
3246 CTIME_CC=config/locale/generic/time_members.cc
3247 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3250 echo "$enable_clocale is an unknown locale package" 1>&2
3251 exit 1
3253 esac
3255 # This is where the testsuite looks for locale catalogs, using the
3256 # -DLOCALEDIR define during testsuite compilation.
3257 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3260 # A standalone libintl (e.g., GNU libintl) may be in use.
3261 if test $USE_NLS = yes; then
3262 for ac_hdr in libintl.h
3264 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3265 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3266 echo "configure:3267: checking for $ac_hdr" >&5
3267 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3269 else
3270 cat > conftest.$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3273 #include <$ac_hdr>
3275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3276 { (eval echo configure:3277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3278 if test -z "$ac_err"; then
3279 rm -rf conftest*
3280 eval "ac_cv_header_$ac_safe=yes"
3281 else
3282 echo "$ac_err" >&5
3283 echo "configure: failed program was:" >&5
3284 cat conftest.$ac_ext >&5
3285 rm -rf conftest*
3286 eval "ac_cv_header_$ac_safe=no"
3288 rm -f conftest*
3290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3291 echo "$ac_t""yes" 1>&6
3292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3293 cat >> confdefs.h <<EOF
3294 #define $ac_tr_hdr 1
3297 else
3298 echo "$ac_t""no" 1>&6
3299 USE_NLS=no
3301 done
3304 echo $ac_n "checking for library containing gettext""... $ac_c" 1>&6
3305 echo "configure:3306: checking for library containing gettext" >&5
3306 if eval "test \"`echo '$''{'ac_cv_search_gettext'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3308 else
3309 ac_func_search_save_LIBS="$LIBS"
3310 ac_cv_search_gettext="no"
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3314 /* Override any gcc2 internal prototype to avoid an error. */
3315 /* We use char because int might match the return type of a gcc2
3316 builtin and then its argument prototype would still apply. */
3317 char gettext();
3319 int main() {
3320 gettext()
3321 ; return 0; }
3323 if { (eval echo configure:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3324 rm -rf conftest*
3325 ac_cv_search_gettext="none required"
3326 else
3327 echo "configure: failed program was:" >&5
3328 cat conftest.$ac_ext >&5
3330 rm -f conftest*
3331 test "$ac_cv_search_gettext" = "no" && for i in intl; do
3332 LIBS="-l$i $ac_func_search_save_LIBS"
3333 cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 /* Override any gcc2 internal prototype to avoid an error. */
3337 /* We use char because int might match the return type of a gcc2
3338 builtin and then its argument prototype would still apply. */
3339 char gettext();
3341 int main() {
3342 gettext()
3343 ; return 0; }
3345 if { (eval echo configure:3346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3346 rm -rf conftest*
3347 ac_cv_search_gettext="-l$i"
3348 break
3349 else
3350 echo "configure: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3353 rm -f conftest*
3354 done
3355 LIBS="$ac_func_search_save_LIBS"
3358 echo "$ac_t""$ac_cv_search_gettext" 1>&6
3359 if test "$ac_cv_search_gettext" != "no"; then
3360 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
3362 else :
3363 USE_NLS=no
3366 if test $USE_NLS = yes; then
3367 cat >> confdefs.h <<\EOF
3368 #define _GLIBCPP_USE_NLS 1
3388 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3389 echo "configure:3390: checking for c header strategy to use" >&5
3390 # Check whether --enable-cheaders or --disable-cheaders was given.
3391 if test "${enable_cheaders+set}" = set; then
3392 enableval="$enable_cheaders"
3394 case "$enableval" in
3396 enable_cheaders=c
3398 c_std)
3399 enable_cheaders=c_std
3401 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3403 esac
3404 else
3405 enable_cheaders=c_std
3408 echo "$ac_t""$enable_cheaders" 1>&6
3410 case "$enable_cheaders" in
3411 c_std)
3412 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3415 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3417 esac
3422 if test "$enable_cheaders" = c; then
3423 GLIBCPP_C_HEADERS_C_TRUE=
3424 GLIBCPP_C_HEADERS_C_FALSE='#'
3425 else
3426 GLIBCPP_C_HEADERS_C_TRUE='#'
3427 GLIBCPP_C_HEADERS_C_FALSE=
3431 if test "$enable_cheaders" = c_std; then
3432 GLIBCPP_C_HEADERS_C_STD_TRUE=
3433 GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3434 else
3435 GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3436 GLIBCPP_C_HEADERS_C_STD_FALSE=
3440 if test "$c_compatibility" = yes; then
3441 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3442 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3443 else
3444 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3445 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3448 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3449 if test "${enable_c_mbchar+set}" = set; then
3450 enableval="$enable_c_mbchar"
3451 case "$enableval" in
3452 yes) enable_c_mbchar=yes ;;
3453 no) enable_c_mbchar=no ;;
3454 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3455 esac
3456 else
3457 enable_c_mbchar=yes
3461 # Check whether --enable-c99 or --disable-c99 was given.
3462 if test "${enable_c99+set}" = set; then
3463 enableval="$enable_c99"
3464 case "$enableval" in
3465 yes) enable_c99=yes ;;
3466 no) enable_c99=no ;;
3467 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3468 esac
3469 else
3470 enable_c99=yes
3474 ac_ext=C
3475 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3476 ac_cpp='$CXXCPP $CPPFLAGS'
3477 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3478 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3479 cross_compiling=$ac_cv_prog_cxx_cross
3482 # Check for the existence of <math.h> functions used if C99 is enabled.
3483 ac_c99_math=yes;
3484 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3485 echo "configure:3486: checking for ISO C99 support in <math.h>" >&5
3486 cat > conftest.$ac_ext <<EOF
3487 #line 3488 "configure"
3488 #include "confdefs.h"
3489 #include <math.h>
3490 int main() {
3491 fpclassify(0.0);
3492 ; return 0; }
3494 if { (eval echo configure:3495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3496 else
3497 echo "configure: failed program was:" >&5
3498 cat conftest.$ac_ext >&5
3499 rm -rf conftest*
3500 ac_c99_math=no
3502 rm -f conftest*
3503 cat > conftest.$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3506 #include <math.h>
3507 int main() {
3508 isfinite(0.0);
3509 ; return 0; }
3511 if { (eval echo configure:3512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3513 else
3514 echo "configure: failed program was:" >&5
3515 cat conftest.$ac_ext >&5
3516 rm -rf conftest*
3517 ac_c99_math=no
3519 rm -f conftest*
3520 cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 #include <math.h>
3524 int main() {
3525 isinf(0.0);
3526 ; return 0; }
3528 if { (eval echo configure:3529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3530 else
3531 echo "configure: failed program was:" >&5
3532 cat conftest.$ac_ext >&5
3533 rm -rf conftest*
3534 ac_c99_math=no
3536 rm -f conftest*
3537 cat > conftest.$ac_ext <<EOF
3538 #line 3539 "configure"
3539 #include "confdefs.h"
3540 #include <math.h>
3541 int main() {
3542 isnan(0.0);
3543 ; return 0; }
3545 if { (eval echo configure:3546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3547 else
3548 echo "configure: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3550 rm -rf conftest*
3551 ac_c99_math=no
3553 rm -f conftest*
3554 cat > conftest.$ac_ext <<EOF
3555 #line 3556 "configure"
3556 #include "confdefs.h"
3557 #include <math.h>
3558 int main() {
3559 isnormal(0.0);
3560 ; return 0; }
3562 if { (eval echo configure:3563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3564 else
3565 echo "configure: failed program was:" >&5
3566 cat conftest.$ac_ext >&5
3567 rm -rf conftest*
3568 ac_c99_math=no
3570 rm -f conftest*
3571 cat > conftest.$ac_ext <<EOF
3572 #line 3573 "configure"
3573 #include "confdefs.h"
3574 #include <math.h>
3575 int main() {
3576 signbit(0.0);
3577 ; return 0; }
3579 if { (eval echo configure:3580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3581 else
3582 echo "configure: failed program was:" >&5
3583 cat conftest.$ac_ext >&5
3584 rm -rf conftest*
3585 ac_c99_math=no
3587 rm -f conftest*
3588 cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3591 #include <math.h>
3592 int main() {
3593 isgreater(0.0,0.0);
3594 ; return 0; }
3596 if { (eval echo configure:3597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3598 else
3599 echo "configure: failed program was:" >&5
3600 cat conftest.$ac_ext >&5
3601 rm -rf conftest*
3602 ac_c99_math=no
3604 rm -f conftest*
3605 cat > conftest.$ac_ext <<EOF
3606 #line 3607 "configure"
3607 #include "confdefs.h"
3608 #include <math.h>
3609 int main() {
3610 isgreaterequal(0.0,0.0);
3611 ; return 0; }
3613 if { (eval echo configure:3614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3615 else
3616 echo "configure: failed program was:" >&5
3617 cat conftest.$ac_ext >&5
3618 rm -rf conftest*
3619 ac_c99_math=no
3621 rm -f conftest*
3622 cat > conftest.$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3625 #include <math.h>
3626 int main() {
3627 isless(0.0,0.0);
3628 ; return 0; }
3630 if { (eval echo configure:3631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3632 else
3633 echo "configure: failed program was:" >&5
3634 cat conftest.$ac_ext >&5
3635 rm -rf conftest*
3636 ac_c99_math=no
3638 rm -f conftest*
3639 cat > conftest.$ac_ext <<EOF
3640 #line 3641 "configure"
3641 #include "confdefs.h"
3642 #include <math.h>
3643 int main() {
3644 islessequal(0.0,0.0);
3645 ; return 0; }
3647 if { (eval echo configure:3648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3649 else
3650 echo "configure: failed program was:" >&5
3651 cat conftest.$ac_ext >&5
3652 rm -rf conftest*
3653 ac_c99_math=no
3655 rm -f conftest*
3656 cat > conftest.$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3659 #include <math.h>
3660 int main() {
3661 islessgreater(0.0,0.0);
3662 ; return 0; }
3664 if { (eval echo configure:3665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3666 else
3667 echo "configure: failed program was:" >&5
3668 cat conftest.$ac_ext >&5
3669 rm -rf conftest*
3670 ac_c99_math=no
3672 rm -f conftest*
3673 cat > conftest.$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3676 #include <math.h>
3677 int main() {
3678 isunordered(0.0,0.0);
3679 ; return 0; }
3681 if { (eval echo configure:3682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3683 else
3684 echo "configure: failed program was:" >&5
3685 cat conftest.$ac_ext >&5
3686 rm -rf conftest*
3687 ac_c99_math=no
3689 rm -f conftest*
3690 echo "$ac_t""$ac_c99_math" 1>&6
3692 # Check for the existence in <stdio.h> of vscanf, et. al.
3693 ac_c99_stdio=yes;
3694 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3695 echo "configure:3696: checking for ISO C99 support in <stdio.h>" >&5
3696 cat > conftest.$ac_ext <<EOF
3697 #line 3698 "configure"
3698 #include "confdefs.h"
3699 #include <stdio.h>
3700 int main() {
3701 snprintf("12", 0, "%i");
3702 ; return 0; }
3704 if { (eval echo configure:3705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3706 else
3707 echo "configure: failed program was:" >&5
3708 cat conftest.$ac_ext >&5
3709 rm -rf conftest*
3710 ac_c99_stdio=no
3712 rm -f conftest*
3713 cat > conftest.$ac_ext <<EOF
3714 #line 3715 "configure"
3715 #include "confdefs.h"
3716 #include <stdio.h>
3717 #include <stdarg.h>
3718 void foo(char* fmt, ...)
3719 {va_list args; va_start(args, fmt);
3720 vfscanf(stderr, "%i", args);}
3721 int main() {
3723 ; return 0; }
3725 if { (eval echo configure:3726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3727 else
3728 echo "configure: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3730 rm -rf conftest*
3731 ac_c99_stdio=no
3733 rm -f conftest*
3734 cat > conftest.$ac_ext <<EOF
3735 #line 3736 "configure"
3736 #include "confdefs.h"
3737 #include <stdio.h>
3738 #include <stdarg.h>
3739 void foo(char* fmt, ...)
3740 {va_list args; va_start(args, fmt);
3741 vscanf("%i", args);}
3742 int main() {
3744 ; return 0; }
3746 if { (eval echo configure:3747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3748 else
3749 echo "configure: failed program was:" >&5
3750 cat conftest.$ac_ext >&5
3751 rm -rf conftest*
3752 ac_c99_stdio=no
3754 rm -f conftest*
3755 cat > conftest.$ac_ext <<EOF
3756 #line 3757 "configure"
3757 #include "confdefs.h"
3758 #include <stdio.h>
3759 #include <stdarg.h>
3760 void foo(char* fmt, ...)
3761 {va_list args; va_start(args, fmt);
3762 vsnprintf(fmt, 0, "%i", args);}
3763 int main() {
3765 ; return 0; }
3767 if { (eval echo configure:3768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3769 else
3770 echo "configure: failed program was:" >&5
3771 cat conftest.$ac_ext >&5
3772 rm -rf conftest*
3773 ac_c99_stdio=no
3775 rm -f conftest*
3776 cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3779 #include <stdio.h>
3780 #include <stdarg.h>
3781 void foo(char* fmt, ...)
3782 {va_list args; va_start(args, fmt);
3783 vsscanf(fmt, "%i", args);}
3784 int main() {
3786 ; return 0; }
3788 if { (eval echo configure:3789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3790 else
3791 echo "configure: failed program was:" >&5
3792 cat conftest.$ac_ext >&5
3793 rm -rf conftest*
3794 ac_c99_stdio=no
3796 rm -f conftest*
3797 echo "$ac_t""$ac_c99_stdio" 1>&6
3799 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3800 ac_c99_stdlib=yes;
3801 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3802 echo "configure:3803: checking for lldiv_t declaration" >&5
3803 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3805 else
3807 cat > conftest.$ac_ext <<EOF
3808 #line 3809 "configure"
3809 #include "confdefs.h"
3810 #include <stdlib.h>
3811 int main() {
3812 lldiv_t mydivt;
3813 ; return 0; }
3815 if { (eval echo configure:3816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3816 rm -rf conftest*
3817 ac_c99_lldiv_t=yes
3818 else
3819 echo "configure: failed program was:" >&5
3820 cat conftest.$ac_ext >&5
3821 rm -rf conftest*
3822 ac_c99_lldiv_t=no
3824 rm -f conftest*
3828 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3830 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3831 echo "configure:3832: checking for ISO C99 support in <stdlib.h>" >&5
3832 cat > conftest.$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3835 #include <stdlib.h>
3836 int main() {
3837 char* tmp; strtof("gnu", &tmp);
3838 ; return 0; }
3840 if { (eval echo configure:3841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3842 else
3843 echo "configure: failed program was:" >&5
3844 cat conftest.$ac_ext >&5
3845 rm -rf conftest*
3846 ac_c99_stdlib=no
3848 rm -f conftest*
3849 cat > conftest.$ac_ext <<EOF
3850 #line 3851 "configure"
3851 #include "confdefs.h"
3852 #include <stdlib.h>
3853 int main() {
3854 char* tmp; strtold("gnu", &tmp);
3855 ; return 0; }
3857 if { (eval echo configure:3858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3859 else
3860 echo "configure: failed program was:" >&5
3861 cat conftest.$ac_ext >&5
3862 rm -rf conftest*
3863 ac_c99_stdlib=no
3865 rm -f conftest*
3866 cat > conftest.$ac_ext <<EOF
3867 #line 3868 "configure"
3868 #include "confdefs.h"
3869 #include <stdlib.h>
3870 int main() {
3871 llabs(10);
3872 ; return 0; }
3874 if { (eval echo configure:3875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3876 else
3877 echo "configure: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
3879 rm -rf conftest*
3880 ac_c99_stdlib=no
3882 rm -f conftest*
3883 cat > conftest.$ac_ext <<EOF
3884 #line 3885 "configure"
3885 #include "confdefs.h"
3886 #include <stdlib.h>
3887 int main() {
3888 lldiv(10,1);
3889 ; return 0; }
3891 if { (eval echo configure:3892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3893 else
3894 echo "configure: failed program was:" >&5
3895 cat conftest.$ac_ext >&5
3896 rm -rf conftest*
3897 ac_c99_stdlib=no
3899 rm -f conftest*
3900 cat > conftest.$ac_ext <<EOF
3901 #line 3902 "configure"
3902 #include "confdefs.h"
3903 #include <stdlib.h>
3904 int main() {
3905 atoll("10");
3906 ; return 0; }
3908 if { (eval echo configure:3909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3910 else
3911 echo "configure: failed program was:" >&5
3912 cat conftest.$ac_ext >&5
3913 rm -rf conftest*
3914 ac_c99_stdlib=no
3916 rm -f conftest*
3917 cat > conftest.$ac_ext <<EOF
3918 #line 3919 "configure"
3919 #include "confdefs.h"
3920 #include <stdlib.h>
3921 int main() {
3922 _Exit(0);
3923 ; return 0; }
3925 if { (eval echo configure:3926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3927 else
3928 echo "configure: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3930 rm -rf conftest*
3931 ac_c99_stdlib=no
3933 rm -f conftest*
3934 if test x"$ac_c99_lldiv_t" = x"no"; then
3935 ac_c99_stdlib=no;
3937 echo "$ac_t""$ac_c99_stdlib" 1>&6
3939 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3940 # XXX the wchar.h checks should be rolled into the general C99 bits.
3941 ac_c99_wchar=yes;
3942 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3943 echo "configure:3944: checking for additional ISO C99 support in <wchar.h>" >&5
3944 cat > conftest.$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3947 #include <wchar.h>
3948 int main() {
3949 wcstold(L"10.0", NULL);
3950 ; return 0; }
3952 if { (eval echo configure:3953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3954 else
3955 echo "configure: failed program was:" >&5
3956 cat conftest.$ac_ext >&5
3957 rm -rf conftest*
3958 ac_c99_wchar=no
3960 rm -f conftest*
3961 cat > conftest.$ac_ext <<EOF
3962 #line 3963 "configure"
3963 #include "confdefs.h"
3964 #include <wchar.h>
3965 int main() {
3966 wcstoll(L"10", NULL, 10);
3967 ; return 0; }
3969 if { (eval echo configure:3970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3971 else
3972 echo "configure: failed program was:" >&5
3973 cat conftest.$ac_ext >&5
3974 rm -rf conftest*
3975 ac_c99_wchar=no
3977 rm -f conftest*
3978 cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3981 #include <wchar.h>
3982 int main() {
3983 wcstoull(L"10", NULL, 10);
3984 ; return 0; }
3986 if { (eval echo configure:3987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3988 else
3989 echo "configure: failed program was:" >&5
3990 cat conftest.$ac_ext >&5
3991 rm -rf conftest*
3992 ac_c99_wchar=no
3994 rm -f conftest*
3995 echo "$ac_t""$ac_c99_wchar" 1>&6
3997 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3998 echo "configure:3999: checking for enabled ISO C99 support" >&5
3999 if test x"$ac_c99_math" = x"no" ||
4000 test x"$ac_c99_stdio" = x"no" ||
4001 test x"$ac_c99_stdlib" = x"no" ||
4002 test x"$ac_c99_wchar" = x"no"; then
4003 enable_c99=no;
4005 echo "$ac_t""$enable_c99" 1>&6
4007 # Option parsed, now set things appropriately
4008 if test x"$enable_c99" = x"yes"; then
4009 cat >> confdefs.h <<\EOF
4010 #define _GLIBCPP_USE_C99 1
4015 ac_ext=c
4016 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4019 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4020 cross_compiling=$ac_cv_prog_cc_cross
4024 # Check whether --enable-long-long or --disable-long-long was given.
4025 if test "${enable_long_long+set}" = set; then
4026 enableval="$enable_long_long"
4027 case "$enableval" in
4028 yes) enable_long_long=yes ;;
4029 no) enable_long_long=no ;;
4030 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
4031 esac
4032 else
4033 enable_long_long=yes
4037 ac_ext=C
4038 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4039 ac_cpp='$CXXCPP $CPPFLAGS'
4040 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4041 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4042 cross_compiling=$ac_cv_prog_cxx_cross
4045 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
4046 echo "configure:4047: checking for enabled long long I/O support" >&5
4047 # iostreams require strtoll, strtoull to compile
4048 cat > conftest.$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4051 #include <stdlib.h>
4052 int main() {
4053 char* tmp; strtoll("gnu", &tmp, 10);
4054 ; return 0; }
4056 if { (eval echo configure:4057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4058 else
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4061 rm -rf conftest*
4062 enable_long_long=no
4064 rm -f conftest*
4065 cat > conftest.$ac_ext <<EOF
4066 #line 4067 "configure"
4067 #include "confdefs.h"
4068 #include <stdlib.h>
4069 int main() {
4070 char* tmp; strtoull("gnu", &tmp, 10);
4071 ; return 0; }
4073 if { (eval echo configure:4074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4075 else
4076 echo "configure: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4078 rm -rf conftest*
4079 enable_long_long=no
4081 rm -f conftest*
4083 # Option parsed, now set things appropriately
4084 if test x"$enable_long_long" = xyes; then
4085 cat >> confdefs.h <<\EOF
4086 #define _GLIBCPP_USE_LONG_LONG 1
4090 echo "$ac_t""$enable_long_long" 1>&6
4092 ac_ext=c
4093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4094 ac_cpp='$CPP $CPPFLAGS'
4095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4096 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4097 cross_compiling=$ac_cv_prog_cc_cross
4101 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
4102 echo "configure:4103: checking for thread model used by GCC" >&5
4103 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4104 echo "$ac_t""$target_thread_file" 1>&6
4106 if test $target_thread_file != single; then
4107 cat >> confdefs.h <<\EOF
4108 #define HAVE_GTHR_DEFAULT 1
4111 cat >> confdefs.h <<\EOF
4112 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
4117 glibcpp_thread_h=gthr-$target_thread_file.h
4121 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
4122 echo "configure:4123: checking for exception model to use" >&5
4124 ac_ext=C
4125 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4126 ac_cpp='$CXXCPP $CPPFLAGS'
4127 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4128 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4129 cross_compiling=$ac_cv_prog_cxx_cross
4131 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4132 if test "${enable_sjlj_exceptions+set}" = set; then
4133 enableval="$enable_sjlj_exceptions"
4135 else
4136 cat > conftest.$ac_ext << EOF
4137 #line 4138 "configure"
4138 struct S { ~S(); };
4139 void bar();
4140 void foo()
4142 S s;
4143 bar();
4146 old_CXXFLAGS="$CXXFLAGS"
4147 CXXFLAGS=-S
4148 if { (eval echo configure:4149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4149 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4150 enable_sjlj_exceptions=yes
4151 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4152 enable_sjlj_exceptions=no
4155 CXXFLAGS="$old_CXXFLAGS"
4156 rm -f conftest*
4159 if test x$enable_sjlj_exceptions = xyes; then
4160 cat >> confdefs.h <<\EOF
4161 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4164 ac_exception_model_name=sjlj
4165 elif test x$enable_sjlj_exceptions = xno; then
4166 ac_exception_model_name="call frame"
4167 else
4168 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4170 ac_ext=c
4171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4172 ac_cpp='$CPP $CPPFLAGS'
4173 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4174 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4175 cross_compiling=$ac_cv_prog_cc_cross
4177 echo "$ac_t""$ac_exception_model_name" 1>&6
4180 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4181 echo "configure:4182: checking for use of libunwind" >&5
4182 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4183 if test "${enable_libunwind_exceptions+set}" = set; then
4184 enableval="$enable_libunwind_exceptions"
4185 use_libunwind_exceptions=$enableval
4186 else
4187 use_libunwind_exceptions=no
4190 echo "$ac_t""$use_libunwind_exceptions" 1>&6
4191 if test x"$use_libunwind_exceptions" = xyes; then
4192 LIBUNWIND_FLAG="-lunwind"
4193 else
4194 LIBUNWIND_FLAG=""
4198 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4199 if test "${enable_concept_checks+set}" = set; then
4200 enableval="$enable_concept_checks"
4201 case "$enableval" in
4202 yes) enable_concept_checks=yes ;;
4203 no) enable_concept_checks=no ;;
4204 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4205 esac
4206 else
4207 enable_concept_checks=no
4209 if test x"$enable_concept_checks" = xyes; then
4210 cat >> confdefs.h <<\EOF
4211 #define _GLIBCPP_CONCEPT_CHECKS 1
4216 echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4217 echo "configure:4218: checking for extra compiler flags for building" >&5
4218 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4219 if test "${enable_cxx_flags+set}" = set; then
4220 enableval="$enable_cxx_flags"
4221 case "x$enable_cxx_flags" in
4222 xyes)
4223 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4224 xno | xnone | x)
4225 enable_cxx_flags='' ;;
4227 enable_cxx_flags="$enableval" ;;
4228 esac
4229 else
4230 enable_cxx_flags=
4234 if test -n "$enable_cxx_flags"; then
4235 for f in $enable_cxx_flags; do
4236 case "$f" in
4237 -fhonor-std) ;;
4238 -*) ;;
4239 *) # and we're trying to pass /what/ exactly?
4240 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4241 esac
4242 done
4244 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4245 echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4248 # Check whether --enable-debug or --disable-debug was given.
4249 if test "${enable_debug+set}" = set; then
4250 enableval="$enable_debug"
4251 case "${enableval}" in
4252 yes) enable_debug=yes ;;
4253 no) enable_debug=no ;;
4254 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4255 esac
4256 else
4257 enable_debug=no
4259 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4260 echo "configure:4261: checking for additional debug build" >&5
4261 echo "$ac_t""$enable_debug" 1>&6
4264 if test "$enable_debug" = yes; then
4265 GLIBCPP_BUILD_DEBUG_TRUE=
4266 GLIBCPP_BUILD_DEBUG_FALSE='#'
4267 else
4268 GLIBCPP_BUILD_DEBUG_TRUE='#'
4269 GLIBCPP_BUILD_DEBUG_FALSE=
4272 # Check whether --enable-debug_flags or --disable-debug_flags was given.
4273 if test "${enable_debug_flags+set}" = set; then
4274 enableval="$enable_debug_flags"
4275 case "${enableval}" in
4276 none) ;;
4277 -*) enable_debug_flags="${enableval}" ;;
4278 *) { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4279 esac
4280 else
4281 enable_debug_flags=none
4284 case x"$enable_debug" in
4285 xyes)
4286 case "$enable_debug_flags" in
4287 none)
4288 DEBUG_FLAGS="-g3 -O0";;
4289 -*) #valid input
4290 DEBUG_FLAGS="${enableval}"
4291 esac
4293 xno)
4294 DEBUG_FLAGS=""
4296 esac
4299 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4300 echo "configure:4301: checking for debug build flags" >&5
4301 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4304 # No surprises, no surprises...
4305 if test $ATOMICITYH = cpu/generic ; then
4306 echo "configure: warning: No native atomic operations are provided for this platform." 1>&2
4307 if test $target_thread_file = single; then
4308 echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4309 echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4310 else
4311 echo "configure: warning: They will be faked using a mutex." 1>&2
4312 echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4317 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4319 # We are being configured with some form of cross compiler.
4320 GLIBCPP_IS_CROSS_COMPILING=1
4322 # This lets us hard-code the functionality we know we'll have in the cross
4323 # target environment. "Let" is a sugar-coated word placed on an especially
4324 # dull and tedious hack, actually.
4326 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4327 # that involve linking, can't be used:
4328 # "cannot open sim-crt0.o"
4329 # "cannot open crt0.o"
4330 # etc. All this is because there currently exists no unified, consistent
4331 # way for top level CC information to be passed down to target directories:
4332 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4333 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4334 # crosses can be removed.
4336 # If Canadian cross, then don't pick up tools from the build directory.
4337 # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4338 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4339 CANADIAN=yes
4340 else
4341 CANADIAN=no
4344 # Construct crosses by hand, eliminating bits that need ld...
4345 # GLIBCPP_CHECK_COMPILER_FEATURES
4346 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4347 # GLIBCPP_CHECK_MATH_SUPPORT
4349 case "$target" in
4350 *-linux*)
4351 os_include_dir="os/gnu-linux"
4352 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4353 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4354 fp.h locale.h float.h inttypes.h
4356 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4357 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4358 echo "configure:4359: checking for $ac_hdr" >&5
4359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4360 echo $ac_n "(cached) $ac_c" 1>&6
4361 else
4362 cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4365 #include <$ac_hdr>
4367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4368 { (eval echo configure:4369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4370 if test -z "$ac_err"; then
4371 rm -rf conftest*
4372 eval "ac_cv_header_$ac_safe=yes"
4373 else
4374 echo "$ac_err" >&5
4375 echo "configure: failed program was:" >&5
4376 cat conftest.$ac_ext >&5
4377 rm -rf conftest*
4378 eval "ac_cv_header_$ac_safe=no"
4380 rm -f conftest*
4382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4383 echo "$ac_t""yes" 1>&6
4384 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4385 cat >> confdefs.h <<EOF
4386 #define $ac_tr_hdr 1
4389 else
4390 echo "$ac_t""no" 1>&6
4392 done
4394 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4397 # If we're not using GNU ld, then there's no point in even trying these
4398 # tests. Check for that first. We should have already tested for gld
4399 # by now (in libtool), but require it now just to be safe...
4400 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4401 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4404 # The name set by libtool depends on the version of libtool. Shame on us
4405 # for depending on an impl detail, but c'est la vie. Older versions used
4406 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4407 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4408 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4409 # set (hence we're using an older libtool), then set it.
4410 if test x${with_gnu_ld+set} != xset; then
4411 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4412 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4413 with_gnu_ld=no
4414 else
4415 with_gnu_ld=$ac_cv_prog_gnu_ld
4419 # Start by getting the version number. I think the libtool test already
4420 # does some of this, but throws away the result.
4422 ldver=`$LD --version 2>/dev/null | head -1 | \
4423 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4425 glibcpp_gnu_ld_version=`echo $ldver | \
4426 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4428 # Set --gc-sections.
4429 if test "$with_gnu_ld" = "notbroken"; then
4430 # GNU ld it is! Joy and bunny rabbits!
4432 # All these tests are for C++; save the language and the compiler flags.
4433 # Need to do this so that g++ won't try to link in libstdc++
4434 ac_test_CFLAGS="${CFLAGS+set}"
4435 ac_save_CFLAGS="$CFLAGS"
4436 CFLAGS='-x c++ -Wl,--gc-sections'
4438 # Check for -Wl,--gc-sections
4439 # XXX This test is broken at the moment, as symbols required for
4440 # linking are now in libsupc++ (not built yet.....). In addition,
4441 # this test has cored on solaris in the past. In addition,
4442 # --gc-sections doesn't really work at the moment (keeps on discarding
4443 # used sections, first .eh_frame and now some of the glibc sections for
4444 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4445 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4446 echo "configure:4447: checking for ld that supports -Wl,--gc-sections" >&5
4447 if test "$cross_compiling" = yes; then
4448 ac_sectionLDflags=yes
4449 else
4450 cat > conftest.$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4454 int main(void)
4456 try { throw 1; }
4457 catch (...) { };
4458 return 0;
4462 if { (eval echo configure:4463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4463 then
4464 ac_sectionLDflags=yes
4465 else
4466 echo "configure: failed program was:" >&5
4467 cat conftest.$ac_ext >&5
4468 rm -fr conftest*
4469 ac_sectionLDflags=no
4471 rm -fr conftest*
4474 if test "$ac_test_CFLAGS" = set; then
4475 CFLAGS="$ac_save_CFLAGS"
4476 else
4477 # this is the suspicious part
4478 CFLAGS=''
4480 if test "$ac_sectionLDflags" = "yes"; then
4481 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4483 echo "$ac_t""$ac_sectionLDflags" 1>&6
4486 # Set linker optimization flags.
4487 if test x"$with_gnu_ld" = x"yes"; then
4488 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4495 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4496 echo "configure:4497: checking for main in -lm" >&5
4497 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4499 echo $ac_n "(cached) $ac_c" 1>&6
4500 else
4501 ac_save_LIBS="$LIBS"
4502 LIBS="-lm $LIBS"
4503 cat > conftest.$ac_ext <<EOF
4504 #line 4505 "configure"
4505 #include "confdefs.h"
4507 int main() {
4508 main()
4509 ; return 0; }
4511 if { (eval echo configure:4512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4512 rm -rf conftest*
4513 eval "ac_cv_lib_$ac_lib_var=yes"
4514 else
4515 echo "configure: failed program was:" >&5
4516 cat conftest.$ac_ext >&5
4517 rm -rf conftest*
4518 eval "ac_cv_lib_$ac_lib_var=no"
4520 rm -f conftest*
4521 LIBS="$ac_save_LIBS"
4524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4525 echo "$ac_t""yes" 1>&6
4526 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4527 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4528 cat >> confdefs.h <<EOF
4529 #define $ac_tr_lib 1
4532 LIBS="-lm $LIBS"
4534 else
4535 echo "$ac_t""no" 1>&6
4538 for ac_func in nan copysignf
4540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4541 echo "configure:4542: checking for $ac_func" >&5
4542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4543 echo $ac_n "(cached) $ac_c" 1>&6
4544 else
4545 cat > conftest.$ac_ext <<EOF
4546 #line 4547 "configure"
4547 #include "confdefs.h"
4548 /* System header to define __stub macros and hopefully few prototypes,
4549 which can conflict with char $ac_func(); below. */
4550 #include <assert.h>
4551 /* Override any gcc2 internal prototype to avoid an error. */
4552 /* We use char because int might match the return type of a gcc2
4553 builtin and then its argument prototype would still apply. */
4554 char $ac_func();
4556 int main() {
4558 /* The GNU C library defines this for functions which it implements
4559 to always fail with ENOSYS. Some functions are actually named
4560 something starting with __ and the normal name is an alias. */
4561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4562 choke me
4563 #else
4564 $ac_func();
4565 #endif
4567 ; return 0; }
4569 if { (eval echo configure:4570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4570 rm -rf conftest*
4571 eval "ac_cv_func_$ac_func=yes"
4572 else
4573 echo "configure: failed program was:" >&5
4574 cat conftest.$ac_ext >&5
4575 rm -rf conftest*
4576 eval "ac_cv_func_$ac_func=no"
4578 rm -f conftest*
4581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4582 echo "$ac_t""yes" 1>&6
4583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4584 cat >> confdefs.h <<EOF
4585 #define $ac_tr_func 1
4588 else
4589 echo "$ac_t""no" 1>&6
4590 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4592 done
4595 for ac_func in __signbit
4597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4598 echo "configure:4599: checking for $ac_func" >&5
4599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4600 echo $ac_n "(cached) $ac_c" 1>&6
4601 else
4602 cat > conftest.$ac_ext <<EOF
4603 #line 4604 "configure"
4604 #include "confdefs.h"
4605 /* System header to define __stub macros and hopefully few prototypes,
4606 which can conflict with char $ac_func(); below. */
4607 #include <assert.h>
4608 /* Override any gcc2 internal prototype to avoid an error. */
4609 /* We use char because int might match the return type of a gcc2
4610 builtin and then its argument prototype would still apply. */
4611 char $ac_func();
4613 int main() {
4615 /* The GNU C library defines this for functions which it implements
4616 to always fail with ENOSYS. Some functions are actually named
4617 something starting with __ and the normal name is an alias. */
4618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4619 choke me
4620 #else
4621 $ac_func();
4622 #endif
4624 ; return 0; }
4626 if { (eval echo configure:4627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4627 rm -rf conftest*
4628 eval "ac_cv_func_$ac_func=yes"
4629 else
4630 echo "configure: failed program was:" >&5
4631 cat conftest.$ac_ext >&5
4632 rm -rf conftest*
4633 eval "ac_cv_func_$ac_func=no"
4635 rm -f conftest*
4638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4639 echo "$ac_t""yes" 1>&6
4640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4641 cat >> confdefs.h <<EOF
4642 #define $ac_tr_func 1
4645 else
4646 echo "$ac_t""no" 1>&6
4647 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4649 done
4651 for ac_func in __signbitf
4653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4654 echo "configure:4655: checking for $ac_func" >&5
4655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4656 echo $ac_n "(cached) $ac_c" 1>&6
4657 else
4658 cat > conftest.$ac_ext <<EOF
4659 #line 4660 "configure"
4660 #include "confdefs.h"
4661 /* System header to define __stub macros and hopefully few prototypes,
4662 which can conflict with char $ac_func(); below. */
4663 #include <assert.h>
4664 /* Override any gcc2 internal prototype to avoid an error. */
4665 /* We use char because int might match the return type of a gcc2
4666 builtin and then its argument prototype would still apply. */
4667 char $ac_func();
4669 int main() {
4671 /* The GNU C library defines this for functions which it implements
4672 to always fail with ENOSYS. Some functions are actually named
4673 something starting with __ and the normal name is an alias. */
4674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4675 choke me
4676 #else
4677 $ac_func();
4678 #endif
4680 ; return 0; }
4682 if { (eval echo configure:4683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4683 rm -rf conftest*
4684 eval "ac_cv_func_$ac_func=yes"
4685 else
4686 echo "configure: failed program was:" >&5
4687 cat conftest.$ac_ext >&5
4688 rm -rf conftest*
4689 eval "ac_cv_func_$ac_func=no"
4691 rm -f conftest*
4694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4695 echo "$ac_t""yes" 1>&6
4696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4697 cat >> confdefs.h <<EOF
4698 #define $ac_tr_func 1
4701 else
4702 echo "$ac_t""no" 1>&6
4703 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4705 done
4708 if test x$ac_cv_func_copysignl = x"yes"; then
4709 for ac_func in __signbitl
4711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4712 echo "configure:4713: checking for $ac_func" >&5
4713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4714 echo $ac_n "(cached) $ac_c" 1>&6
4715 else
4716 cat > conftest.$ac_ext <<EOF
4717 #line 4718 "configure"
4718 #include "confdefs.h"
4719 /* System header to define __stub macros and hopefully few prototypes,
4720 which can conflict with char $ac_func(); below. */
4721 #include <assert.h>
4722 /* Override any gcc2 internal prototype to avoid an error. */
4723 /* We use char because int might match the return type of a gcc2
4724 builtin and then its argument prototype would still apply. */
4725 char $ac_func();
4727 int main() {
4729 /* The GNU C library defines this for functions which it implements
4730 to always fail with ENOSYS. Some functions are actually named
4731 something starting with __ and the normal name is an alias. */
4732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4733 choke me
4734 #else
4735 $ac_func();
4736 #endif
4738 ; return 0; }
4740 if { (eval echo configure:4741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4741 rm -rf conftest*
4742 eval "ac_cv_func_$ac_func=yes"
4743 else
4744 echo "configure: failed program was:" >&5
4745 cat conftest.$ac_ext >&5
4746 rm -rf conftest*
4747 eval "ac_cv_func_$ac_func=no"
4749 rm -f conftest*
4752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4753 echo "$ac_t""yes" 1>&6
4754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4755 cat >> confdefs.h <<EOF
4756 #define $ac_tr_func 1
4759 else
4760 echo "$ac_t""no" 1>&6
4761 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4763 done
4767 if test -n "$LIBMATHOBJS"; then
4768 need_libmath=yes
4773 if test "$need_libmath" = yes; then
4774 GLIBCPP_BUILD_LIBMATH_TRUE=
4775 GLIBCPP_BUILD_LIBMATH_FALSE='#'
4776 else
4777 GLIBCPP_BUILD_LIBMATH_TRUE='#'
4778 GLIBCPP_BUILD_LIBMATH_FALSE=
4782 enable_wchar_t=no
4784 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4785 echo "configure:4786: checking for mbstate_t" >&5
4786 cat > conftest.$ac_ext <<EOF
4787 #line 4788 "configure"
4788 #include "confdefs.h"
4789 #include <wchar.h>
4790 int main() {
4791 mbstate_t teststate;
4792 ; return 0; }
4794 if { (eval echo configure:4795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4795 rm -rf conftest*
4796 have_mbstate_t=yes
4797 else
4798 echo "configure: failed program was:" >&5
4799 cat conftest.$ac_ext >&5
4800 rm -rf conftest*
4801 have_mbstate_t=no
4803 rm -f conftest*
4804 echo "$ac_t""$have_mbstate_t" 1>&6
4805 if test x"$have_mbstate_t" = xyes; then
4806 cat >> confdefs.h <<\EOF
4807 #define HAVE_MBSTATE_T 1
4812 for ac_hdr in wchar.h
4814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4816 echo "configure:4817: checking for $ac_hdr" >&5
4817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4818 echo $ac_n "(cached) $ac_c" 1>&6
4819 else
4820 cat > conftest.$ac_ext <<EOF
4821 #line 4822 "configure"
4822 #include "confdefs.h"
4823 #include <$ac_hdr>
4825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4826 { (eval echo configure:4827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4828 if test -z "$ac_err"; then
4829 rm -rf conftest*
4830 eval "ac_cv_header_$ac_safe=yes"
4831 else
4832 echo "$ac_err" >&5
4833 echo "configure: failed program was:" >&5
4834 cat conftest.$ac_ext >&5
4835 rm -rf conftest*
4836 eval "ac_cv_header_$ac_safe=no"
4838 rm -f conftest*
4840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4841 echo "$ac_t""yes" 1>&6
4842 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4843 cat >> confdefs.h <<EOF
4844 #define $ac_tr_hdr 1
4846 ac_has_wchar_h=yes
4847 else
4848 echo "$ac_t""no" 1>&6
4849 ac_has_wchar_h=no
4851 done
4853 for ac_hdr in wctype.h
4855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4857 echo "configure:4858: checking for $ac_hdr" >&5
4858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4860 else
4861 cat > conftest.$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4864 #include <$ac_hdr>
4866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4867 { (eval echo configure:4868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4869 if test -z "$ac_err"; then
4870 rm -rf conftest*
4871 eval "ac_cv_header_$ac_safe=yes"
4872 else
4873 echo "$ac_err" >&5
4874 echo "configure: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4876 rm -rf conftest*
4877 eval "ac_cv_header_$ac_safe=no"
4879 rm -f conftest*
4881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4882 echo "$ac_t""yes" 1>&6
4883 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4884 cat >> confdefs.h <<EOF
4885 #define $ac_tr_hdr 1
4887 ac_has_wctype_h=yes
4888 else
4889 echo "$ac_t""no" 1>&6
4890 ac_has_wctype_h=no
4892 done
4895 if test x"$ac_has_wchar_h" = xyes &&
4896 test x"$ac_has_wctype_h" = xyes &&
4897 test x"$enable_c_mbchar" != xno; then
4899 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4900 echo "configure:4901: checking for WCHAR_MIN and WCHAR_MAX" >&5
4901 cat > conftest.$ac_ext <<EOF
4902 #line 4903 "configure"
4903 #include "confdefs.h"
4904 #include <wchar.h>
4905 int main() {
4906 int i = WCHAR_MIN; int j = WCHAR_MAX;
4907 ; return 0; }
4909 if { (eval echo configure:4910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4910 rm -rf conftest*
4911 has_wchar_minmax=yes
4912 else
4913 echo "configure: failed program was:" >&5
4914 cat conftest.$ac_ext >&5
4915 rm -rf conftest*
4916 has_wchar_minmax=no
4918 rm -f conftest*
4919 echo "$ac_t""$has_wchar_minmax" 1>&6
4921 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4922 echo "configure:4923: checking for WEOF" >&5
4923 cat > conftest.$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4927 #include <wchar.h>
4928 #include <stddef.h>
4929 int main() {
4930 wint_t i = WEOF;
4931 ; return 0; }
4933 if { (eval echo configure:4934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4934 rm -rf conftest*
4935 has_weof=yes
4936 else
4937 echo "configure: failed program was:" >&5
4938 cat conftest.$ac_ext >&5
4939 rm -rf conftest*
4940 has_weof=no
4942 rm -f conftest*
4943 echo "$ac_t""$has_weof" 1>&6
4945 ac_wfuncs=yes
4946 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4949 echo "configure:4950: checking for $ac_func" >&5
4950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4951 echo $ac_n "(cached) $ac_c" 1>&6
4952 else
4953 cat > conftest.$ac_ext <<EOF
4954 #line 4955 "configure"
4955 #include "confdefs.h"
4956 /* System header to define __stub macros and hopefully few prototypes,
4957 which can conflict with char $ac_func(); below. */
4958 #include <assert.h>
4959 /* Override any gcc2 internal prototype to avoid an error. */
4960 /* We use char because int might match the return type of a gcc2
4961 builtin and then its argument prototype would still apply. */
4962 char $ac_func();
4964 int main() {
4966 /* The GNU C library defines this for functions which it implements
4967 to always fail with ENOSYS. Some functions are actually named
4968 something starting with __ and the normal name is an alias. */
4969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4970 choke me
4971 #else
4972 $ac_func();
4973 #endif
4975 ; return 0; }
4977 if { (eval echo configure:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4978 rm -rf conftest*
4979 eval "ac_cv_func_$ac_func=yes"
4980 else
4981 echo "configure: failed program was:" >&5
4982 cat conftest.$ac_ext >&5
4983 rm -rf conftest*
4984 eval "ac_cv_func_$ac_func=no"
4986 rm -f conftest*
4989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4990 echo "$ac_t""yes" 1>&6
4991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4992 cat >> confdefs.h <<EOF
4993 #define $ac_tr_func 1
4996 else
4997 echo "$ac_t""no" 1>&6
4999 ac_wfuncs=no
5001 done
5004 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
5005 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5006 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5007 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5008 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5009 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5012 echo "configure:5013: checking for $ac_func" >&5
5013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5015 else
5016 cat > conftest.$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5019 /* System header to define __stub macros and hopefully few prototypes,
5020 which can conflict with char $ac_func(); below. */
5021 #include <assert.h>
5022 /* Override any gcc2 internal prototype to avoid an error. */
5023 /* We use char because int might match the return type of a gcc2
5024 builtin and then its argument prototype would still apply. */
5025 char $ac_func();
5027 int main() {
5029 /* The GNU C library defines this for functions which it implements
5030 to always fail with ENOSYS. Some functions are actually named
5031 something starting with __ and the normal name is an alias. */
5032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5033 choke me
5034 #else
5035 $ac_func();
5036 #endif
5038 ; return 0; }
5040 if { (eval echo configure:5041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5041 rm -rf conftest*
5042 eval "ac_cv_func_$ac_func=yes"
5043 else
5044 echo "configure: failed program was:" >&5
5045 cat conftest.$ac_ext >&5
5046 rm -rf conftest*
5047 eval "ac_cv_func_$ac_func=no"
5049 rm -f conftest*
5052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5053 echo "$ac_t""yes" 1>&6
5054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5055 cat >> confdefs.h <<EOF
5056 #define $ac_tr_func 1
5059 else
5060 echo "$ac_t""no" 1>&6
5062 ac_wfuncs=no
5064 done
5067 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5068 echo "configure:5069: checking for ISO C99 wchar_t support" >&5
5069 if test x"$has_weof" = xyes &&
5070 test x"$has_wchar_minmax" = xyes &&
5071 test x"$ac_wfuncs" = xyes; then
5072 ac_isoC99_wchar_t=yes
5073 else
5074 ac_isoC99_wchar_t=no
5076 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5078 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5079 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5080 echo "configure:5081: checking for iconv.h" >&5
5081 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5082 echo $ac_n "(cached) $ac_c" 1>&6
5083 else
5084 cat > conftest.$ac_ext <<EOF
5085 #line 5086 "configure"
5086 #include "confdefs.h"
5087 #include <iconv.h>
5089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5090 { (eval echo configure:5091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5092 if test -z "$ac_err"; then
5093 rm -rf conftest*
5094 eval "ac_cv_header_$ac_safe=yes"
5095 else
5096 echo "$ac_err" >&5
5097 echo "configure: failed program was:" >&5
5098 cat conftest.$ac_ext >&5
5099 rm -rf conftest*
5100 eval "ac_cv_header_$ac_safe=no"
5102 rm -f conftest*
5104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5105 echo "$ac_t""yes" 1>&6
5106 ac_has_iconv_h=yes
5107 else
5108 echo "$ac_t""no" 1>&6
5109 ac_has_iconv_h=no
5112 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5113 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5114 echo "configure:5115: checking for langinfo.h" >&5
5115 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5117 else
5118 cat > conftest.$ac_ext <<EOF
5119 #line 5120 "configure"
5120 #include "confdefs.h"
5121 #include <langinfo.h>
5123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5124 { (eval echo configure:5125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5126 if test -z "$ac_err"; then
5127 rm -rf conftest*
5128 eval "ac_cv_header_$ac_safe=yes"
5129 else
5130 echo "$ac_err" >&5
5131 echo "configure: failed program was:" >&5
5132 cat conftest.$ac_ext >&5
5133 rm -rf conftest*
5134 eval "ac_cv_header_$ac_safe=no"
5136 rm -f conftest*
5138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5139 echo "$ac_t""yes" 1>&6
5140 ac_has_langinfo_h=yes
5141 else
5142 echo "$ac_t""no" 1>&6
5143 ac_has_langinfo_h=no
5147 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5148 echo "configure:5149: checking for iconv in -liconv" >&5
5149 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5151 echo $ac_n "(cached) $ac_c" 1>&6
5152 else
5153 ac_save_LIBS="$LIBS"
5154 LIBS="-liconv $LIBS"
5155 cat > conftest.$ac_ext <<EOF
5156 #line 5157 "configure"
5157 #include "confdefs.h"
5158 /* Override any gcc2 internal prototype to avoid an error. */
5159 /* We use char because int might match the return type of a gcc2
5160 builtin and then its argument prototype would still apply. */
5161 char iconv();
5163 int main() {
5164 iconv()
5165 ; return 0; }
5167 if { (eval echo configure:5168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5168 rm -rf conftest*
5169 eval "ac_cv_lib_$ac_lib_var=yes"
5170 else
5171 echo "configure: failed program was:" >&5
5172 cat conftest.$ac_ext >&5
5173 rm -rf conftest*
5174 eval "ac_cv_lib_$ac_lib_var=no"
5176 rm -f conftest*
5177 LIBS="$ac_save_LIBS"
5180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5181 echo "$ac_t""yes" 1>&6
5182 libiconv="-liconv"
5183 else
5184 echo "$ac_t""no" 1>&6
5187 ac_save_LIBS="$LIBS"
5188 LIBS="$LIBS $libiconv"
5190 for ac_func in iconv_open iconv_close iconv nl_langinfo
5192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5193 echo "configure:5194: checking for $ac_func" >&5
5194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5195 echo $ac_n "(cached) $ac_c" 1>&6
5196 else
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5200 /* System header to define __stub macros and hopefully few prototypes,
5201 which can conflict with char $ac_func(); below. */
5202 #include <assert.h>
5203 /* Override any gcc2 internal prototype to avoid an error. */
5204 /* We use char because int might match the return type of a gcc2
5205 builtin and then its argument prototype would still apply. */
5206 char $ac_func();
5208 int main() {
5210 /* The GNU C library defines this for functions which it implements
5211 to always fail with ENOSYS. Some functions are actually named
5212 something starting with __ and the normal name is an alias. */
5213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5214 choke me
5215 #else
5216 $ac_func();
5217 #endif
5219 ; return 0; }
5221 if { (eval echo configure:5222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5222 rm -rf conftest*
5223 eval "ac_cv_func_$ac_func=yes"
5224 else
5225 echo "configure: failed program was:" >&5
5226 cat conftest.$ac_ext >&5
5227 rm -rf conftest*
5228 eval "ac_cv_func_$ac_func=no"
5230 rm -f conftest*
5233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5234 echo "$ac_t""yes" 1>&6
5235 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5236 cat >> confdefs.h <<EOF
5237 #define $ac_tr_func 1
5240 ac_XPG2funcs=yes
5241 else
5242 echo "$ac_t""no" 1>&6
5243 ac_XPG2funcs=no
5245 done
5248 LIBS="$ac_save_LIBS"
5250 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5251 echo "configure:5252: checking for XPG2 wchar_t support" >&5
5252 if test x"$ac_has_iconv_h" = xyes &&
5253 test x"$ac_has_langinfo_h" = xyes &&
5254 test x"$ac_XPG2funcs" = xyes; then
5255 ac_XPG2_wchar_t=yes
5256 else
5257 ac_XPG2_wchar_t=no
5259 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5261 if test x"$ac_isoC99_wchar_t" = xyes &&
5262 test x"$ac_XPG2_wchar_t" = xyes; then
5263 cat >> confdefs.h <<\EOF
5264 #define _GLIBCPP_USE_WCHAR_T 1
5267 enable_wchar_t=yes
5270 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5271 echo "configure:5272: checking for enabled wchar_t specializations" >&5
5272 echo "$ac_t""$enable_wchar_t" 1>&6
5275 if test "$enable_wchar_t" = yes; then
5276 GLIBCPP_TEST_WCHAR_T_TRUE=
5277 GLIBCPP_TEST_WCHAR_T_FALSE='#'
5278 else
5279 GLIBCPP_TEST_WCHAR_T_TRUE='#'
5280 GLIBCPP_TEST_WCHAR_T_FALSE=
5283 cat >> confdefs.h <<\EOF
5284 #define HAVE_COPYSIGN 1
5287 cat >> confdefs.h <<\EOF
5288 #define HAVE_COPYSIGNF 1
5291 cat >> confdefs.h <<\EOF
5292 #define HAVE_FINITE 1
5295 cat >> confdefs.h <<\EOF
5296 #define HAVE_FINITEF 1
5299 cat >> confdefs.h <<\EOF
5300 #define HAVE_FREXPF 1
5303 cat >> confdefs.h <<\EOF
5304 #define HAVE_HYPOTF 1
5307 cat >> confdefs.h <<\EOF
5308 #define HAVE_ISINF 1
5311 cat >> confdefs.h <<\EOF
5312 #define HAVE_ISINFF 1
5315 cat >> confdefs.h <<\EOF
5316 #define HAVE_ISNAN 1
5319 cat >> confdefs.h <<\EOF
5320 #define HAVE_ISNANF 1
5323 cat >> confdefs.h <<\EOF
5324 #define HAVE_SINCOS 1
5327 cat >> confdefs.h <<\EOF
5328 #define HAVE_SINCOSF 1
5331 if test x"long_double_math_on_this_cpu" = x"yes"; then
5332 cat >> confdefs.h <<\EOF
5333 #define HAVE_FINITEL 1
5336 cat >> confdefs.h <<\EOF
5337 #define HAVE_HYPOTL 1
5340 cat >> confdefs.h <<\EOF
5341 #define HAVE_ISINFL 1
5344 cat >> confdefs.h <<\EOF
5345 #define HAVE_ISNANL 1
5350 *-hpux*)
5351 # Check for available headers.
5352 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5353 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5354 fp.h locale.h float.h inttypes.h
5356 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5357 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5358 echo "configure:5359: checking for $ac_hdr" >&5
5359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5360 echo $ac_n "(cached) $ac_c" 1>&6
5361 else
5362 cat > conftest.$ac_ext <<EOF
5363 #line 5364 "configure"
5364 #include "confdefs.h"
5365 #include <$ac_hdr>
5367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5368 { (eval echo configure:5369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5370 if test -z "$ac_err"; then
5371 rm -rf conftest*
5372 eval "ac_cv_header_$ac_safe=yes"
5373 else
5374 echo "$ac_err" >&5
5375 echo "configure: failed program was:" >&5
5376 cat conftest.$ac_ext >&5
5377 rm -rf conftest*
5378 eval "ac_cv_header_$ac_safe=no"
5380 rm -f conftest*
5382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5383 echo "$ac_t""yes" 1>&6
5384 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5385 cat >> confdefs.h <<EOF
5386 #define $ac_tr_hdr 1
5389 else
5390 echo "$ac_t""no" 1>&6
5392 done
5394 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5397 # If we're not using GNU ld, then there's no point in even trying these
5398 # tests. Check for that first. We should have already tested for gld
5399 # by now (in libtool), but require it now just to be safe...
5400 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5401 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5404 # The name set by libtool depends on the version of libtool. Shame on us
5405 # for depending on an impl detail, but c'est la vie. Older versions used
5406 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5407 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5408 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5409 # set (hence we're using an older libtool), then set it.
5410 if test x${with_gnu_ld+set} != xset; then
5411 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5412 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5413 with_gnu_ld=no
5414 else
5415 with_gnu_ld=$ac_cv_prog_gnu_ld
5419 # Start by getting the version number. I think the libtool test already
5420 # does some of this, but throws away the result.
5422 ldver=`$LD --version 2>/dev/null | head -1 | \
5423 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5425 glibcpp_gnu_ld_version=`echo $ldver | \
5426 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5428 # Set --gc-sections.
5429 if test "$with_gnu_ld" = "notbroken"; then
5430 # GNU ld it is! Joy and bunny rabbits!
5432 # All these tests are for C++; save the language and the compiler flags.
5433 # Need to do this so that g++ won't try to link in libstdc++
5434 ac_test_CFLAGS="${CFLAGS+set}"
5435 ac_save_CFLAGS="$CFLAGS"
5436 CFLAGS='-x c++ -Wl,--gc-sections'
5438 # Check for -Wl,--gc-sections
5439 # XXX This test is broken at the moment, as symbols required for
5440 # linking are now in libsupc++ (not built yet.....). In addition,
5441 # this test has cored on solaris in the past. In addition,
5442 # --gc-sections doesn't really work at the moment (keeps on discarding
5443 # used sections, first .eh_frame and now some of the glibc sections for
5444 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5445 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5446 echo "configure:5447: checking for ld that supports -Wl,--gc-sections" >&5
5447 if test "$cross_compiling" = yes; then
5448 ac_sectionLDflags=yes
5449 else
5450 cat > conftest.$ac_ext <<EOF
5451 #line 5452 "configure"
5452 #include "confdefs.h"
5454 int main(void)
5456 try { throw 1; }
5457 catch (...) { };
5458 return 0;
5462 if { (eval echo configure:5463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5463 then
5464 ac_sectionLDflags=yes
5465 else
5466 echo "configure: failed program was:" >&5
5467 cat conftest.$ac_ext >&5
5468 rm -fr conftest*
5469 ac_sectionLDflags=no
5471 rm -fr conftest*
5474 if test "$ac_test_CFLAGS" = set; then
5475 CFLAGS="$ac_save_CFLAGS"
5476 else
5477 # this is the suspicious part
5478 CFLAGS=''
5480 if test "$ac_sectionLDflags" = "yes"; then
5481 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5483 echo "$ac_t""$ac_sectionLDflags" 1>&6
5486 # Set linker optimization flags.
5487 if test x"$with_gnu_ld" = x"yes"; then
5488 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5495 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5496 echo "configure:5497: checking for main in -lm" >&5
5497 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5499 echo $ac_n "(cached) $ac_c" 1>&6
5500 else
5501 ac_save_LIBS="$LIBS"
5502 LIBS="-lm $LIBS"
5503 cat > conftest.$ac_ext <<EOF
5504 #line 5505 "configure"
5505 #include "confdefs.h"
5507 int main() {
5508 main()
5509 ; return 0; }
5511 if { (eval echo configure:5512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5512 rm -rf conftest*
5513 eval "ac_cv_lib_$ac_lib_var=yes"
5514 else
5515 echo "configure: failed program was:" >&5
5516 cat conftest.$ac_ext >&5
5517 rm -rf conftest*
5518 eval "ac_cv_lib_$ac_lib_var=no"
5520 rm -f conftest*
5521 LIBS="$ac_save_LIBS"
5524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5525 echo "$ac_t""yes" 1>&6
5526 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5527 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5528 cat >> confdefs.h <<EOF
5529 #define $ac_tr_lib 1
5532 LIBS="-lm $LIBS"
5534 else
5535 echo "$ac_t""no" 1>&6
5538 for ac_func in nan copysignf
5540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5541 echo "configure:5542: checking for $ac_func" >&5
5542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5543 echo $ac_n "(cached) $ac_c" 1>&6
5544 else
5545 cat > conftest.$ac_ext <<EOF
5546 #line 5547 "configure"
5547 #include "confdefs.h"
5548 /* System header to define __stub macros and hopefully few prototypes,
5549 which can conflict with char $ac_func(); below. */
5550 #include <assert.h>
5551 /* Override any gcc2 internal prototype to avoid an error. */
5552 /* We use char because int might match the return type of a gcc2
5553 builtin and then its argument prototype would still apply. */
5554 char $ac_func();
5556 int main() {
5558 /* The GNU C library defines this for functions which it implements
5559 to always fail with ENOSYS. Some functions are actually named
5560 something starting with __ and the normal name is an alias. */
5561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5562 choke me
5563 #else
5564 $ac_func();
5565 #endif
5567 ; return 0; }
5569 if { (eval echo configure:5570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5570 rm -rf conftest*
5571 eval "ac_cv_func_$ac_func=yes"
5572 else
5573 echo "configure: failed program was:" >&5
5574 cat conftest.$ac_ext >&5
5575 rm -rf conftest*
5576 eval "ac_cv_func_$ac_func=no"
5578 rm -f conftest*
5581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5582 echo "$ac_t""yes" 1>&6
5583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5584 cat >> confdefs.h <<EOF
5585 #define $ac_tr_func 1
5588 else
5589 echo "$ac_t""no" 1>&6
5590 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5592 done
5595 for ac_func in __signbit
5597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5598 echo "configure:5599: checking for $ac_func" >&5
5599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5600 echo $ac_n "(cached) $ac_c" 1>&6
5601 else
5602 cat > conftest.$ac_ext <<EOF
5603 #line 5604 "configure"
5604 #include "confdefs.h"
5605 /* System header to define __stub macros and hopefully few prototypes,
5606 which can conflict with char $ac_func(); below. */
5607 #include <assert.h>
5608 /* Override any gcc2 internal prototype to avoid an error. */
5609 /* We use char because int might match the return type of a gcc2
5610 builtin and then its argument prototype would still apply. */
5611 char $ac_func();
5613 int main() {
5615 /* The GNU C library defines this for functions which it implements
5616 to always fail with ENOSYS. Some functions are actually named
5617 something starting with __ and the normal name is an alias. */
5618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5619 choke me
5620 #else
5621 $ac_func();
5622 #endif
5624 ; return 0; }
5626 if { (eval echo configure:5627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5627 rm -rf conftest*
5628 eval "ac_cv_func_$ac_func=yes"
5629 else
5630 echo "configure: failed program was:" >&5
5631 cat conftest.$ac_ext >&5
5632 rm -rf conftest*
5633 eval "ac_cv_func_$ac_func=no"
5635 rm -f conftest*
5638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5639 echo "$ac_t""yes" 1>&6
5640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5641 cat >> confdefs.h <<EOF
5642 #define $ac_tr_func 1
5645 else
5646 echo "$ac_t""no" 1>&6
5647 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5649 done
5651 for ac_func in __signbitf
5653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5654 echo "configure:5655: checking for $ac_func" >&5
5655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5656 echo $ac_n "(cached) $ac_c" 1>&6
5657 else
5658 cat > conftest.$ac_ext <<EOF
5659 #line 5660 "configure"
5660 #include "confdefs.h"
5661 /* System header to define __stub macros and hopefully few prototypes,
5662 which can conflict with char $ac_func(); below. */
5663 #include <assert.h>
5664 /* Override any gcc2 internal prototype to avoid an error. */
5665 /* We use char because int might match the return type of a gcc2
5666 builtin and then its argument prototype would still apply. */
5667 char $ac_func();
5669 int main() {
5671 /* The GNU C library defines this for functions which it implements
5672 to always fail with ENOSYS. Some functions are actually named
5673 something starting with __ and the normal name is an alias. */
5674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5675 choke me
5676 #else
5677 $ac_func();
5678 #endif
5680 ; return 0; }
5682 if { (eval echo configure:5683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5683 rm -rf conftest*
5684 eval "ac_cv_func_$ac_func=yes"
5685 else
5686 echo "configure: failed program was:" >&5
5687 cat conftest.$ac_ext >&5
5688 rm -rf conftest*
5689 eval "ac_cv_func_$ac_func=no"
5691 rm -f conftest*
5694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5695 echo "$ac_t""yes" 1>&6
5696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5697 cat >> confdefs.h <<EOF
5698 #define $ac_tr_func 1
5701 else
5702 echo "$ac_t""no" 1>&6
5703 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5705 done
5708 if test x$ac_cv_func_copysignl = x"yes"; then
5709 for ac_func in __signbitl
5711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5712 echo "configure:5713: checking for $ac_func" >&5
5713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5714 echo $ac_n "(cached) $ac_c" 1>&6
5715 else
5716 cat > conftest.$ac_ext <<EOF
5717 #line 5718 "configure"
5718 #include "confdefs.h"
5719 /* System header to define __stub macros and hopefully few prototypes,
5720 which can conflict with char $ac_func(); below. */
5721 #include <assert.h>
5722 /* Override any gcc2 internal prototype to avoid an error. */
5723 /* We use char because int might match the return type of a gcc2
5724 builtin and then its argument prototype would still apply. */
5725 char $ac_func();
5727 int main() {
5729 /* The GNU C library defines this for functions which it implements
5730 to always fail with ENOSYS. Some functions are actually named
5731 something starting with __ and the normal name is an alias. */
5732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5733 choke me
5734 #else
5735 $ac_func();
5736 #endif
5738 ; return 0; }
5740 if { (eval echo configure:5741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5741 rm -rf conftest*
5742 eval "ac_cv_func_$ac_func=yes"
5743 else
5744 echo "configure: failed program was:" >&5
5745 cat conftest.$ac_ext >&5
5746 rm -rf conftest*
5747 eval "ac_cv_func_$ac_func=no"
5749 rm -f conftest*
5752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5753 echo "$ac_t""yes" 1>&6
5754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5755 cat >> confdefs.h <<EOF
5756 #define $ac_tr_func 1
5759 else
5760 echo "$ac_t""no" 1>&6
5761 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5763 done
5767 if test -n "$LIBMATHOBJS"; then
5768 need_libmath=yes
5773 if test "$need_libmath" = yes; then
5774 GLIBCPP_BUILD_LIBMATH_TRUE=
5775 GLIBCPP_BUILD_LIBMATH_FALSE='#'
5776 else
5777 GLIBCPP_BUILD_LIBMATH_TRUE='#'
5778 GLIBCPP_BUILD_LIBMATH_FALSE=
5782 enable_wchar_t=no
5784 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5785 echo "configure:5786: checking for mbstate_t" >&5
5786 cat > conftest.$ac_ext <<EOF
5787 #line 5788 "configure"
5788 #include "confdefs.h"
5789 #include <wchar.h>
5790 int main() {
5791 mbstate_t teststate;
5792 ; return 0; }
5794 if { (eval echo configure:5795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5795 rm -rf conftest*
5796 have_mbstate_t=yes
5797 else
5798 echo "configure: failed program was:" >&5
5799 cat conftest.$ac_ext >&5
5800 rm -rf conftest*
5801 have_mbstate_t=no
5803 rm -f conftest*
5804 echo "$ac_t""$have_mbstate_t" 1>&6
5805 if test x"$have_mbstate_t" = xyes; then
5806 cat >> confdefs.h <<\EOF
5807 #define HAVE_MBSTATE_T 1
5812 for ac_hdr in wchar.h
5814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5816 echo "configure:5817: checking for $ac_hdr" >&5
5817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5818 echo $ac_n "(cached) $ac_c" 1>&6
5819 else
5820 cat > conftest.$ac_ext <<EOF
5821 #line 5822 "configure"
5822 #include "confdefs.h"
5823 #include <$ac_hdr>
5825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5826 { (eval echo configure:5827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5828 if test -z "$ac_err"; then
5829 rm -rf conftest*
5830 eval "ac_cv_header_$ac_safe=yes"
5831 else
5832 echo "$ac_err" >&5
5833 echo "configure: failed program was:" >&5
5834 cat conftest.$ac_ext >&5
5835 rm -rf conftest*
5836 eval "ac_cv_header_$ac_safe=no"
5838 rm -f conftest*
5840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5841 echo "$ac_t""yes" 1>&6
5842 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5843 cat >> confdefs.h <<EOF
5844 #define $ac_tr_hdr 1
5846 ac_has_wchar_h=yes
5847 else
5848 echo "$ac_t""no" 1>&6
5849 ac_has_wchar_h=no
5851 done
5853 for ac_hdr in wctype.h
5855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5857 echo "configure:5858: checking for $ac_hdr" >&5
5858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5859 echo $ac_n "(cached) $ac_c" 1>&6
5860 else
5861 cat > conftest.$ac_ext <<EOF
5862 #line 5863 "configure"
5863 #include "confdefs.h"
5864 #include <$ac_hdr>
5866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5867 { (eval echo configure:5868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5869 if test -z "$ac_err"; then
5870 rm -rf conftest*
5871 eval "ac_cv_header_$ac_safe=yes"
5872 else
5873 echo "$ac_err" >&5
5874 echo "configure: failed program was:" >&5
5875 cat conftest.$ac_ext >&5
5876 rm -rf conftest*
5877 eval "ac_cv_header_$ac_safe=no"
5879 rm -f conftest*
5881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5882 echo "$ac_t""yes" 1>&6
5883 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5884 cat >> confdefs.h <<EOF
5885 #define $ac_tr_hdr 1
5887 ac_has_wctype_h=yes
5888 else
5889 echo "$ac_t""no" 1>&6
5890 ac_has_wctype_h=no
5892 done
5895 if test x"$ac_has_wchar_h" = xyes &&
5896 test x"$ac_has_wctype_h" = xyes &&
5897 test x"$enable_c_mbchar" != xno; then
5899 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5900 echo "configure:5901: checking for WCHAR_MIN and WCHAR_MAX" >&5
5901 cat > conftest.$ac_ext <<EOF
5902 #line 5903 "configure"
5903 #include "confdefs.h"
5904 #include <wchar.h>
5905 int main() {
5906 int i = WCHAR_MIN; int j = WCHAR_MAX;
5907 ; return 0; }
5909 if { (eval echo configure:5910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5910 rm -rf conftest*
5911 has_wchar_minmax=yes
5912 else
5913 echo "configure: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5915 rm -rf conftest*
5916 has_wchar_minmax=no
5918 rm -f conftest*
5919 echo "$ac_t""$has_wchar_minmax" 1>&6
5921 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5922 echo "configure:5923: checking for WEOF" >&5
5923 cat > conftest.$ac_ext <<EOF
5924 #line 5925 "configure"
5925 #include "confdefs.h"
5927 #include <wchar.h>
5928 #include <stddef.h>
5929 int main() {
5930 wint_t i = WEOF;
5931 ; return 0; }
5933 if { (eval echo configure:5934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5934 rm -rf conftest*
5935 has_weof=yes
5936 else
5937 echo "configure: failed program was:" >&5
5938 cat conftest.$ac_ext >&5
5939 rm -rf conftest*
5940 has_weof=no
5942 rm -f conftest*
5943 echo "$ac_t""$has_weof" 1>&6
5945 ac_wfuncs=yes
5946 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5949 echo "configure:5950: checking for $ac_func" >&5
5950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5951 echo $ac_n "(cached) $ac_c" 1>&6
5952 else
5953 cat > conftest.$ac_ext <<EOF
5954 #line 5955 "configure"
5955 #include "confdefs.h"
5956 /* System header to define __stub macros and hopefully few prototypes,
5957 which can conflict with char $ac_func(); below. */
5958 #include <assert.h>
5959 /* Override any gcc2 internal prototype to avoid an error. */
5960 /* We use char because int might match the return type of a gcc2
5961 builtin and then its argument prototype would still apply. */
5962 char $ac_func();
5964 int main() {
5966 /* The GNU C library defines this for functions which it implements
5967 to always fail with ENOSYS. Some functions are actually named
5968 something starting with __ and the normal name is an alias. */
5969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5970 choke me
5971 #else
5972 $ac_func();
5973 #endif
5975 ; return 0; }
5977 if { (eval echo configure:5978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5978 rm -rf conftest*
5979 eval "ac_cv_func_$ac_func=yes"
5980 else
5981 echo "configure: failed program was:" >&5
5982 cat conftest.$ac_ext >&5
5983 rm -rf conftest*
5984 eval "ac_cv_func_$ac_func=no"
5986 rm -f conftest*
5989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5990 echo "$ac_t""yes" 1>&6
5991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5992 cat >> confdefs.h <<EOF
5993 #define $ac_tr_func 1
5996 else
5997 echo "$ac_t""no" 1>&6
5999 ac_wfuncs=no
6001 done
6004 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6005 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6006 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6007 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6008 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6009 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6012 echo "configure:6013: checking for $ac_func" >&5
6013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6014 echo $ac_n "(cached) $ac_c" 1>&6
6015 else
6016 cat > conftest.$ac_ext <<EOF
6017 #line 6018 "configure"
6018 #include "confdefs.h"
6019 /* System header to define __stub macros and hopefully few prototypes,
6020 which can conflict with char $ac_func(); below. */
6021 #include <assert.h>
6022 /* Override any gcc2 internal prototype to avoid an error. */
6023 /* We use char because int might match the return type of a gcc2
6024 builtin and then its argument prototype would still apply. */
6025 char $ac_func();
6027 int main() {
6029 /* The GNU C library defines this for functions which it implements
6030 to always fail with ENOSYS. Some functions are actually named
6031 something starting with __ and the normal name is an alias. */
6032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6033 choke me
6034 #else
6035 $ac_func();
6036 #endif
6038 ; return 0; }
6040 if { (eval echo configure:6041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6041 rm -rf conftest*
6042 eval "ac_cv_func_$ac_func=yes"
6043 else
6044 echo "configure: failed program was:" >&5
6045 cat conftest.$ac_ext >&5
6046 rm -rf conftest*
6047 eval "ac_cv_func_$ac_func=no"
6049 rm -f conftest*
6052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6053 echo "$ac_t""yes" 1>&6
6054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6055 cat >> confdefs.h <<EOF
6056 #define $ac_tr_func 1
6059 else
6060 echo "$ac_t""no" 1>&6
6062 ac_wfuncs=no
6064 done
6067 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6068 echo "configure:6069: checking for ISO C99 wchar_t support" >&5
6069 if test x"$has_weof" = xyes &&
6070 test x"$has_wchar_minmax" = xyes &&
6071 test x"$ac_wfuncs" = xyes; then
6072 ac_isoC99_wchar_t=yes
6073 else
6074 ac_isoC99_wchar_t=no
6076 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6078 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6079 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6080 echo "configure:6081: checking for iconv.h" >&5
6081 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6082 echo $ac_n "(cached) $ac_c" 1>&6
6083 else
6084 cat > conftest.$ac_ext <<EOF
6085 #line 6086 "configure"
6086 #include "confdefs.h"
6087 #include <iconv.h>
6089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6090 { (eval echo configure:6091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6092 if test -z "$ac_err"; then
6093 rm -rf conftest*
6094 eval "ac_cv_header_$ac_safe=yes"
6095 else
6096 echo "$ac_err" >&5
6097 echo "configure: failed program was:" >&5
6098 cat conftest.$ac_ext >&5
6099 rm -rf conftest*
6100 eval "ac_cv_header_$ac_safe=no"
6102 rm -f conftest*
6104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6105 echo "$ac_t""yes" 1>&6
6106 ac_has_iconv_h=yes
6107 else
6108 echo "$ac_t""no" 1>&6
6109 ac_has_iconv_h=no
6112 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6113 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6114 echo "configure:6115: checking for langinfo.h" >&5
6115 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6116 echo $ac_n "(cached) $ac_c" 1>&6
6117 else
6118 cat > conftest.$ac_ext <<EOF
6119 #line 6120 "configure"
6120 #include "confdefs.h"
6121 #include <langinfo.h>
6123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6124 { (eval echo configure:6125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6126 if test -z "$ac_err"; then
6127 rm -rf conftest*
6128 eval "ac_cv_header_$ac_safe=yes"
6129 else
6130 echo "$ac_err" >&5
6131 echo "configure: failed program was:" >&5
6132 cat conftest.$ac_ext >&5
6133 rm -rf conftest*
6134 eval "ac_cv_header_$ac_safe=no"
6136 rm -f conftest*
6138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6139 echo "$ac_t""yes" 1>&6
6140 ac_has_langinfo_h=yes
6141 else
6142 echo "$ac_t""no" 1>&6
6143 ac_has_langinfo_h=no
6147 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6148 echo "configure:6149: checking for iconv in -liconv" >&5
6149 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6151 echo $ac_n "(cached) $ac_c" 1>&6
6152 else
6153 ac_save_LIBS="$LIBS"
6154 LIBS="-liconv $LIBS"
6155 cat > conftest.$ac_ext <<EOF
6156 #line 6157 "configure"
6157 #include "confdefs.h"
6158 /* Override any gcc2 internal prototype to avoid an error. */
6159 /* We use char because int might match the return type of a gcc2
6160 builtin and then its argument prototype would still apply. */
6161 char iconv();
6163 int main() {
6164 iconv()
6165 ; return 0; }
6167 if { (eval echo configure:6168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6168 rm -rf conftest*
6169 eval "ac_cv_lib_$ac_lib_var=yes"
6170 else
6171 echo "configure: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6173 rm -rf conftest*
6174 eval "ac_cv_lib_$ac_lib_var=no"
6176 rm -f conftest*
6177 LIBS="$ac_save_LIBS"
6180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6181 echo "$ac_t""yes" 1>&6
6182 libiconv="-liconv"
6183 else
6184 echo "$ac_t""no" 1>&6
6187 ac_save_LIBS="$LIBS"
6188 LIBS="$LIBS $libiconv"
6190 for ac_func in iconv_open iconv_close iconv nl_langinfo
6192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6193 echo "configure:6194: checking for $ac_func" >&5
6194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6195 echo $ac_n "(cached) $ac_c" 1>&6
6196 else
6197 cat > conftest.$ac_ext <<EOF
6198 #line 6199 "configure"
6199 #include "confdefs.h"
6200 /* System header to define __stub macros and hopefully few prototypes,
6201 which can conflict with char $ac_func(); below. */
6202 #include <assert.h>
6203 /* Override any gcc2 internal prototype to avoid an error. */
6204 /* We use char because int might match the return type of a gcc2
6205 builtin and then its argument prototype would still apply. */
6206 char $ac_func();
6208 int main() {
6210 /* The GNU C library defines this for functions which it implements
6211 to always fail with ENOSYS. Some functions are actually named
6212 something starting with __ and the normal name is an alias. */
6213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6214 choke me
6215 #else
6216 $ac_func();
6217 #endif
6219 ; return 0; }
6221 if { (eval echo configure:6222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6222 rm -rf conftest*
6223 eval "ac_cv_func_$ac_func=yes"
6224 else
6225 echo "configure: failed program was:" >&5
6226 cat conftest.$ac_ext >&5
6227 rm -rf conftest*
6228 eval "ac_cv_func_$ac_func=no"
6230 rm -f conftest*
6233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6234 echo "$ac_t""yes" 1>&6
6235 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6236 cat >> confdefs.h <<EOF
6237 #define $ac_tr_func 1
6240 ac_XPG2funcs=yes
6241 else
6242 echo "$ac_t""no" 1>&6
6243 ac_XPG2funcs=no
6245 done
6248 LIBS="$ac_save_LIBS"
6250 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6251 echo "configure:6252: checking for XPG2 wchar_t support" >&5
6252 if test x"$ac_has_iconv_h" = xyes &&
6253 test x"$ac_has_langinfo_h" = xyes &&
6254 test x"$ac_XPG2funcs" = xyes; then
6255 ac_XPG2_wchar_t=yes
6256 else
6257 ac_XPG2_wchar_t=no
6259 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6261 if test x"$ac_isoC99_wchar_t" = xyes &&
6262 test x"$ac_XPG2_wchar_t" = xyes; then
6263 cat >> confdefs.h <<\EOF
6264 #define _GLIBCPP_USE_WCHAR_T 1
6267 enable_wchar_t=yes
6270 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6271 echo "configure:6272: checking for enabled wchar_t specializations" >&5
6272 echo "$ac_t""$enable_wchar_t" 1>&6
6275 if test "$enable_wchar_t" = yes; then
6276 GLIBCPP_TEST_WCHAR_T_TRUE=
6277 GLIBCPP_TEST_WCHAR_T_FALSE='#'
6278 else
6279 GLIBCPP_TEST_WCHAR_T_TRUE='#'
6280 GLIBCPP_TEST_WCHAR_T_FALSE=
6283 os_include_dir="os/hpux"
6284 cat >> confdefs.h <<\EOF
6285 #define HAVE_COPYSIGN 1
6288 cat >> confdefs.h <<\EOF
6289 #define HAVE_COPYSIGNF 1
6292 cat >> confdefs.h <<\EOF
6293 #define HAVE_FREXPF 1
6296 cat >> confdefs.h <<\EOF
6297 #define HAVE_HYPOT 1
6300 case "$target" in
6301 *-hpux10*)
6302 cat >> confdefs.h <<\EOF
6303 #define HAVE_FINITE 1
6306 cat >> confdefs.h <<\EOF
6307 #define HAVE_FINITEF 1
6310 cat >> confdefs.h <<\EOF
6311 #define HAVE_ISINF 1
6314 cat >> confdefs.h <<\EOF
6315 #define HAVE_ISINFF 1
6318 cat >> confdefs.h <<\EOF
6319 #define HAVE_ISNAN 1
6322 cat >> confdefs.h <<\EOF
6323 #define HAVE_ISNANF 1
6327 esac
6330 *-netbsd*)
6331 # Check for available headers.
6332 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6333 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6334 fp.h locale.h float.h inttypes.h
6336 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6337 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6338 echo "configure:6339: checking for $ac_hdr" >&5
6339 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6340 echo $ac_n "(cached) $ac_c" 1>&6
6341 else
6342 cat > conftest.$ac_ext <<EOF
6343 #line 6344 "configure"
6344 #include "confdefs.h"
6345 #include <$ac_hdr>
6347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6348 { (eval echo configure:6349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6350 if test -z "$ac_err"; then
6351 rm -rf conftest*
6352 eval "ac_cv_header_$ac_safe=yes"
6353 else
6354 echo "$ac_err" >&5
6355 echo "configure: failed program was:" >&5
6356 cat conftest.$ac_ext >&5
6357 rm -rf conftest*
6358 eval "ac_cv_header_$ac_safe=no"
6360 rm -f conftest*
6362 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6363 echo "$ac_t""yes" 1>&6
6364 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6365 cat >> confdefs.h <<EOF
6366 #define $ac_tr_hdr 1
6369 else
6370 echo "$ac_t""no" 1>&6
6372 done
6374 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6377 # If we're not using GNU ld, then there's no point in even trying these
6378 # tests. Check for that first. We should have already tested for gld
6379 # by now (in libtool), but require it now just to be safe...
6380 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6381 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6384 # The name set by libtool depends on the version of libtool. Shame on us
6385 # for depending on an impl detail, but c'est la vie. Older versions used
6386 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6387 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6388 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6389 # set (hence we're using an older libtool), then set it.
6390 if test x${with_gnu_ld+set} != xset; then
6391 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6392 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6393 with_gnu_ld=no
6394 else
6395 with_gnu_ld=$ac_cv_prog_gnu_ld
6399 # Start by getting the version number. I think the libtool test already
6400 # does some of this, but throws away the result.
6402 ldver=`$LD --version 2>/dev/null | head -1 | \
6403 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6405 glibcpp_gnu_ld_version=`echo $ldver | \
6406 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6408 # Set --gc-sections.
6409 if test "$with_gnu_ld" = "notbroken"; then
6410 # GNU ld it is! Joy and bunny rabbits!
6412 # All these tests are for C++; save the language and the compiler flags.
6413 # Need to do this so that g++ won't try to link in libstdc++
6414 ac_test_CFLAGS="${CFLAGS+set}"
6415 ac_save_CFLAGS="$CFLAGS"
6416 CFLAGS='-x c++ -Wl,--gc-sections'
6418 # Check for -Wl,--gc-sections
6419 # XXX This test is broken at the moment, as symbols required for
6420 # linking are now in libsupc++ (not built yet.....). In addition,
6421 # this test has cored on solaris in the past. In addition,
6422 # --gc-sections doesn't really work at the moment (keeps on discarding
6423 # used sections, first .eh_frame and now some of the glibc sections for
6424 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6425 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6426 echo "configure:6427: checking for ld that supports -Wl,--gc-sections" >&5
6427 if test "$cross_compiling" = yes; then
6428 ac_sectionLDflags=yes
6429 else
6430 cat > conftest.$ac_ext <<EOF
6431 #line 6432 "configure"
6432 #include "confdefs.h"
6434 int main(void)
6436 try { throw 1; }
6437 catch (...) { };
6438 return 0;
6442 if { (eval echo configure:6443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6443 then
6444 ac_sectionLDflags=yes
6445 else
6446 echo "configure: failed program was:" >&5
6447 cat conftest.$ac_ext >&5
6448 rm -fr conftest*
6449 ac_sectionLDflags=no
6451 rm -fr conftest*
6454 if test "$ac_test_CFLAGS" = set; then
6455 CFLAGS="$ac_save_CFLAGS"
6456 else
6457 # this is the suspicious part
6458 CFLAGS=''
6460 if test "$ac_sectionLDflags" = "yes"; then
6461 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6463 echo "$ac_t""$ac_sectionLDflags" 1>&6
6466 # Set linker optimization flags.
6467 if test x"$with_gnu_ld" = x"yes"; then
6468 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6475 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6476 echo "configure:6477: checking for main in -lm" >&5
6477 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6479 echo $ac_n "(cached) $ac_c" 1>&6
6480 else
6481 ac_save_LIBS="$LIBS"
6482 LIBS="-lm $LIBS"
6483 cat > conftest.$ac_ext <<EOF
6484 #line 6485 "configure"
6485 #include "confdefs.h"
6487 int main() {
6488 main()
6489 ; return 0; }
6491 if { (eval echo configure:6492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6492 rm -rf conftest*
6493 eval "ac_cv_lib_$ac_lib_var=yes"
6494 else
6495 echo "configure: failed program was:" >&5
6496 cat conftest.$ac_ext >&5
6497 rm -rf conftest*
6498 eval "ac_cv_lib_$ac_lib_var=no"
6500 rm -f conftest*
6501 LIBS="$ac_save_LIBS"
6504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6505 echo "$ac_t""yes" 1>&6
6506 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6507 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6508 cat >> confdefs.h <<EOF
6509 #define $ac_tr_lib 1
6512 LIBS="-lm $LIBS"
6514 else
6515 echo "$ac_t""no" 1>&6
6518 for ac_func in nan copysignf
6520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6521 echo "configure:6522: checking for $ac_func" >&5
6522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6523 echo $ac_n "(cached) $ac_c" 1>&6
6524 else
6525 cat > conftest.$ac_ext <<EOF
6526 #line 6527 "configure"
6527 #include "confdefs.h"
6528 /* System header to define __stub macros and hopefully few prototypes,
6529 which can conflict with char $ac_func(); below. */
6530 #include <assert.h>
6531 /* Override any gcc2 internal prototype to avoid an error. */
6532 /* We use char because int might match the return type of a gcc2
6533 builtin and then its argument prototype would still apply. */
6534 char $ac_func();
6536 int main() {
6538 /* The GNU C library defines this for functions which it implements
6539 to always fail with ENOSYS. Some functions are actually named
6540 something starting with __ and the normal name is an alias. */
6541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6542 choke me
6543 #else
6544 $ac_func();
6545 #endif
6547 ; return 0; }
6549 if { (eval echo configure:6550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6550 rm -rf conftest*
6551 eval "ac_cv_func_$ac_func=yes"
6552 else
6553 echo "configure: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6555 rm -rf conftest*
6556 eval "ac_cv_func_$ac_func=no"
6558 rm -f conftest*
6561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6562 echo "$ac_t""yes" 1>&6
6563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6564 cat >> confdefs.h <<EOF
6565 #define $ac_tr_func 1
6568 else
6569 echo "$ac_t""no" 1>&6
6570 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6572 done
6575 for ac_func in __signbit
6577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6578 echo "configure:6579: checking for $ac_func" >&5
6579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6580 echo $ac_n "(cached) $ac_c" 1>&6
6581 else
6582 cat > conftest.$ac_ext <<EOF
6583 #line 6584 "configure"
6584 #include "confdefs.h"
6585 /* System header to define __stub macros and hopefully few prototypes,
6586 which can conflict with char $ac_func(); below. */
6587 #include <assert.h>
6588 /* Override any gcc2 internal prototype to avoid an error. */
6589 /* We use char because int might match the return type of a gcc2
6590 builtin and then its argument prototype would still apply. */
6591 char $ac_func();
6593 int main() {
6595 /* The GNU C library defines this for functions which it implements
6596 to always fail with ENOSYS. Some functions are actually named
6597 something starting with __ and the normal name is an alias. */
6598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6599 choke me
6600 #else
6601 $ac_func();
6602 #endif
6604 ; return 0; }
6606 if { (eval echo configure:6607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6607 rm -rf conftest*
6608 eval "ac_cv_func_$ac_func=yes"
6609 else
6610 echo "configure: failed program was:" >&5
6611 cat conftest.$ac_ext >&5
6612 rm -rf conftest*
6613 eval "ac_cv_func_$ac_func=no"
6615 rm -f conftest*
6618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6619 echo "$ac_t""yes" 1>&6
6620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6621 cat >> confdefs.h <<EOF
6622 #define $ac_tr_func 1
6625 else
6626 echo "$ac_t""no" 1>&6
6627 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6629 done
6631 for ac_func in __signbitf
6633 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6634 echo "configure:6635: checking for $ac_func" >&5
6635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6636 echo $ac_n "(cached) $ac_c" 1>&6
6637 else
6638 cat > conftest.$ac_ext <<EOF
6639 #line 6640 "configure"
6640 #include "confdefs.h"
6641 /* System header to define __stub macros and hopefully few prototypes,
6642 which can conflict with char $ac_func(); below. */
6643 #include <assert.h>
6644 /* Override any gcc2 internal prototype to avoid an error. */
6645 /* We use char because int might match the return type of a gcc2
6646 builtin and then its argument prototype would still apply. */
6647 char $ac_func();
6649 int main() {
6651 /* The GNU C library defines this for functions which it implements
6652 to always fail with ENOSYS. Some functions are actually named
6653 something starting with __ and the normal name is an alias. */
6654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6655 choke me
6656 #else
6657 $ac_func();
6658 #endif
6660 ; return 0; }
6662 if { (eval echo configure:6663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6663 rm -rf conftest*
6664 eval "ac_cv_func_$ac_func=yes"
6665 else
6666 echo "configure: failed program was:" >&5
6667 cat conftest.$ac_ext >&5
6668 rm -rf conftest*
6669 eval "ac_cv_func_$ac_func=no"
6671 rm -f conftest*
6674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6675 echo "$ac_t""yes" 1>&6
6676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6677 cat >> confdefs.h <<EOF
6678 #define $ac_tr_func 1
6681 else
6682 echo "$ac_t""no" 1>&6
6683 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6685 done
6688 if test x$ac_cv_func_copysignl = x"yes"; then
6689 for ac_func in __signbitl
6691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6692 echo "configure:6693: checking for $ac_func" >&5
6693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6694 echo $ac_n "(cached) $ac_c" 1>&6
6695 else
6696 cat > conftest.$ac_ext <<EOF
6697 #line 6698 "configure"
6698 #include "confdefs.h"
6699 /* System header to define __stub macros and hopefully few prototypes,
6700 which can conflict with char $ac_func(); below. */
6701 #include <assert.h>
6702 /* Override any gcc2 internal prototype to avoid an error. */
6703 /* We use char because int might match the return type of a gcc2
6704 builtin and then its argument prototype would still apply. */
6705 char $ac_func();
6707 int main() {
6709 /* The GNU C library defines this for functions which it implements
6710 to always fail with ENOSYS. Some functions are actually named
6711 something starting with __ and the normal name is an alias. */
6712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6713 choke me
6714 #else
6715 $ac_func();
6716 #endif
6718 ; return 0; }
6720 if { (eval echo configure:6721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6721 rm -rf conftest*
6722 eval "ac_cv_func_$ac_func=yes"
6723 else
6724 echo "configure: failed program was:" >&5
6725 cat conftest.$ac_ext >&5
6726 rm -rf conftest*
6727 eval "ac_cv_func_$ac_func=no"
6729 rm -f conftest*
6732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6733 echo "$ac_t""yes" 1>&6
6734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6735 cat >> confdefs.h <<EOF
6736 #define $ac_tr_func 1
6739 else
6740 echo "$ac_t""no" 1>&6
6741 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6743 done
6747 if test -n "$LIBMATHOBJS"; then
6748 need_libmath=yes
6753 if test "$need_libmath" = yes; then
6754 GLIBCPP_BUILD_LIBMATH_TRUE=
6755 GLIBCPP_BUILD_LIBMATH_FALSE='#'
6756 else
6757 GLIBCPP_BUILD_LIBMATH_TRUE='#'
6758 GLIBCPP_BUILD_LIBMATH_FALSE=
6762 enable_wchar_t=no
6764 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6765 echo "configure:6766: checking for mbstate_t" >&5
6766 cat > conftest.$ac_ext <<EOF
6767 #line 6768 "configure"
6768 #include "confdefs.h"
6769 #include <wchar.h>
6770 int main() {
6771 mbstate_t teststate;
6772 ; return 0; }
6774 if { (eval echo configure:6775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6775 rm -rf conftest*
6776 have_mbstate_t=yes
6777 else
6778 echo "configure: failed program was:" >&5
6779 cat conftest.$ac_ext >&5
6780 rm -rf conftest*
6781 have_mbstate_t=no
6783 rm -f conftest*
6784 echo "$ac_t""$have_mbstate_t" 1>&6
6785 if test x"$have_mbstate_t" = xyes; then
6786 cat >> confdefs.h <<\EOF
6787 #define HAVE_MBSTATE_T 1
6792 for ac_hdr in wchar.h
6794 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6795 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6796 echo "configure:6797: checking for $ac_hdr" >&5
6797 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6798 echo $ac_n "(cached) $ac_c" 1>&6
6799 else
6800 cat > conftest.$ac_ext <<EOF
6801 #line 6802 "configure"
6802 #include "confdefs.h"
6803 #include <$ac_hdr>
6805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6806 { (eval echo configure:6807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6808 if test -z "$ac_err"; then
6809 rm -rf conftest*
6810 eval "ac_cv_header_$ac_safe=yes"
6811 else
6812 echo "$ac_err" >&5
6813 echo "configure: failed program was:" >&5
6814 cat conftest.$ac_ext >&5
6815 rm -rf conftest*
6816 eval "ac_cv_header_$ac_safe=no"
6818 rm -f conftest*
6820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6821 echo "$ac_t""yes" 1>&6
6822 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6823 cat >> confdefs.h <<EOF
6824 #define $ac_tr_hdr 1
6826 ac_has_wchar_h=yes
6827 else
6828 echo "$ac_t""no" 1>&6
6829 ac_has_wchar_h=no
6831 done
6833 for ac_hdr in wctype.h
6835 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6836 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6837 echo "configure:6838: checking for $ac_hdr" >&5
6838 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6839 echo $ac_n "(cached) $ac_c" 1>&6
6840 else
6841 cat > conftest.$ac_ext <<EOF
6842 #line 6843 "configure"
6843 #include "confdefs.h"
6844 #include <$ac_hdr>
6846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6847 { (eval echo configure:6848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6849 if test -z "$ac_err"; then
6850 rm -rf conftest*
6851 eval "ac_cv_header_$ac_safe=yes"
6852 else
6853 echo "$ac_err" >&5
6854 echo "configure: failed program was:" >&5
6855 cat conftest.$ac_ext >&5
6856 rm -rf conftest*
6857 eval "ac_cv_header_$ac_safe=no"
6859 rm -f conftest*
6861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6862 echo "$ac_t""yes" 1>&6
6863 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6864 cat >> confdefs.h <<EOF
6865 #define $ac_tr_hdr 1
6867 ac_has_wctype_h=yes
6868 else
6869 echo "$ac_t""no" 1>&6
6870 ac_has_wctype_h=no
6872 done
6875 if test x"$ac_has_wchar_h" = xyes &&
6876 test x"$ac_has_wctype_h" = xyes &&
6877 test x"$enable_c_mbchar" != xno; then
6879 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6880 echo "configure:6881: checking for WCHAR_MIN and WCHAR_MAX" >&5
6881 cat > conftest.$ac_ext <<EOF
6882 #line 6883 "configure"
6883 #include "confdefs.h"
6884 #include <wchar.h>
6885 int main() {
6886 int i = WCHAR_MIN; int j = WCHAR_MAX;
6887 ; return 0; }
6889 if { (eval echo configure:6890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6890 rm -rf conftest*
6891 has_wchar_minmax=yes
6892 else
6893 echo "configure: failed program was:" >&5
6894 cat conftest.$ac_ext >&5
6895 rm -rf conftest*
6896 has_wchar_minmax=no
6898 rm -f conftest*
6899 echo "$ac_t""$has_wchar_minmax" 1>&6
6901 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6902 echo "configure:6903: checking for WEOF" >&5
6903 cat > conftest.$ac_ext <<EOF
6904 #line 6905 "configure"
6905 #include "confdefs.h"
6907 #include <wchar.h>
6908 #include <stddef.h>
6909 int main() {
6910 wint_t i = WEOF;
6911 ; return 0; }
6913 if { (eval echo configure:6914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6914 rm -rf conftest*
6915 has_weof=yes
6916 else
6917 echo "configure: failed program was:" >&5
6918 cat conftest.$ac_ext >&5
6919 rm -rf conftest*
6920 has_weof=no
6922 rm -f conftest*
6923 echo "$ac_t""$has_weof" 1>&6
6925 ac_wfuncs=yes
6926 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6929 echo "configure:6930: checking for $ac_func" >&5
6930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6931 echo $ac_n "(cached) $ac_c" 1>&6
6932 else
6933 cat > conftest.$ac_ext <<EOF
6934 #line 6935 "configure"
6935 #include "confdefs.h"
6936 /* System header to define __stub macros and hopefully few prototypes,
6937 which can conflict with char $ac_func(); below. */
6938 #include <assert.h>
6939 /* Override any gcc2 internal prototype to avoid an error. */
6940 /* We use char because int might match the return type of a gcc2
6941 builtin and then its argument prototype would still apply. */
6942 char $ac_func();
6944 int main() {
6946 /* The GNU C library defines this for functions which it implements
6947 to always fail with ENOSYS. Some functions are actually named
6948 something starting with __ and the normal name is an alias. */
6949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6950 choke me
6951 #else
6952 $ac_func();
6953 #endif
6955 ; return 0; }
6957 if { (eval echo configure:6958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6958 rm -rf conftest*
6959 eval "ac_cv_func_$ac_func=yes"
6960 else
6961 echo "configure: failed program was:" >&5
6962 cat conftest.$ac_ext >&5
6963 rm -rf conftest*
6964 eval "ac_cv_func_$ac_func=no"
6966 rm -f conftest*
6969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6970 echo "$ac_t""yes" 1>&6
6971 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6972 cat >> confdefs.h <<EOF
6973 #define $ac_tr_func 1
6976 else
6977 echo "$ac_t""no" 1>&6
6979 ac_wfuncs=no
6981 done
6984 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6985 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6986 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6987 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6988 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6989 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6992 echo "configure:6993: checking for $ac_func" >&5
6993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6994 echo $ac_n "(cached) $ac_c" 1>&6
6995 else
6996 cat > conftest.$ac_ext <<EOF
6997 #line 6998 "configure"
6998 #include "confdefs.h"
6999 /* System header to define __stub macros and hopefully few prototypes,
7000 which can conflict with char $ac_func(); below. */
7001 #include <assert.h>
7002 /* Override any gcc2 internal prototype to avoid an error. */
7003 /* We use char because int might match the return type of a gcc2
7004 builtin and then its argument prototype would still apply. */
7005 char $ac_func();
7007 int main() {
7009 /* The GNU C library defines this for functions which it implements
7010 to always fail with ENOSYS. Some functions are actually named
7011 something starting with __ and the normal name is an alias. */
7012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7013 choke me
7014 #else
7015 $ac_func();
7016 #endif
7018 ; return 0; }
7020 if { (eval echo configure:7021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7021 rm -rf conftest*
7022 eval "ac_cv_func_$ac_func=yes"
7023 else
7024 echo "configure: failed program was:" >&5
7025 cat conftest.$ac_ext >&5
7026 rm -rf conftest*
7027 eval "ac_cv_func_$ac_func=no"
7029 rm -f conftest*
7032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7033 echo "$ac_t""yes" 1>&6
7034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7035 cat >> confdefs.h <<EOF
7036 #define $ac_tr_func 1
7039 else
7040 echo "$ac_t""no" 1>&6
7042 ac_wfuncs=no
7044 done
7047 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7048 echo "configure:7049: checking for ISO C99 wchar_t support" >&5
7049 if test x"$has_weof" = xyes &&
7050 test x"$has_wchar_minmax" = xyes &&
7051 test x"$ac_wfuncs" = xyes; then
7052 ac_isoC99_wchar_t=yes
7053 else
7054 ac_isoC99_wchar_t=no
7056 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7058 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7059 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7060 echo "configure:7061: checking for iconv.h" >&5
7061 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7062 echo $ac_n "(cached) $ac_c" 1>&6
7063 else
7064 cat > conftest.$ac_ext <<EOF
7065 #line 7066 "configure"
7066 #include "confdefs.h"
7067 #include <iconv.h>
7069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7070 { (eval echo configure:7071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7072 if test -z "$ac_err"; then
7073 rm -rf conftest*
7074 eval "ac_cv_header_$ac_safe=yes"
7075 else
7076 echo "$ac_err" >&5
7077 echo "configure: failed program was:" >&5
7078 cat conftest.$ac_ext >&5
7079 rm -rf conftest*
7080 eval "ac_cv_header_$ac_safe=no"
7082 rm -f conftest*
7084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7085 echo "$ac_t""yes" 1>&6
7086 ac_has_iconv_h=yes
7087 else
7088 echo "$ac_t""no" 1>&6
7089 ac_has_iconv_h=no
7092 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7093 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7094 echo "configure:7095: checking for langinfo.h" >&5
7095 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7096 echo $ac_n "(cached) $ac_c" 1>&6
7097 else
7098 cat > conftest.$ac_ext <<EOF
7099 #line 7100 "configure"
7100 #include "confdefs.h"
7101 #include <langinfo.h>
7103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7104 { (eval echo configure:7105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7106 if test -z "$ac_err"; then
7107 rm -rf conftest*
7108 eval "ac_cv_header_$ac_safe=yes"
7109 else
7110 echo "$ac_err" >&5
7111 echo "configure: failed program was:" >&5
7112 cat conftest.$ac_ext >&5
7113 rm -rf conftest*
7114 eval "ac_cv_header_$ac_safe=no"
7116 rm -f conftest*
7118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7119 echo "$ac_t""yes" 1>&6
7120 ac_has_langinfo_h=yes
7121 else
7122 echo "$ac_t""no" 1>&6
7123 ac_has_langinfo_h=no
7127 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7128 echo "configure:7129: checking for iconv in -liconv" >&5
7129 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7131 echo $ac_n "(cached) $ac_c" 1>&6
7132 else
7133 ac_save_LIBS="$LIBS"
7134 LIBS="-liconv $LIBS"
7135 cat > conftest.$ac_ext <<EOF
7136 #line 7137 "configure"
7137 #include "confdefs.h"
7138 /* Override any gcc2 internal prototype to avoid an error. */
7139 /* We use char because int might match the return type of a gcc2
7140 builtin and then its argument prototype would still apply. */
7141 char iconv();
7143 int main() {
7144 iconv()
7145 ; return 0; }
7147 if { (eval echo configure:7148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7148 rm -rf conftest*
7149 eval "ac_cv_lib_$ac_lib_var=yes"
7150 else
7151 echo "configure: failed program was:" >&5
7152 cat conftest.$ac_ext >&5
7153 rm -rf conftest*
7154 eval "ac_cv_lib_$ac_lib_var=no"
7156 rm -f conftest*
7157 LIBS="$ac_save_LIBS"
7160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7161 echo "$ac_t""yes" 1>&6
7162 libiconv="-liconv"
7163 else
7164 echo "$ac_t""no" 1>&6
7167 ac_save_LIBS="$LIBS"
7168 LIBS="$LIBS $libiconv"
7170 for ac_func in iconv_open iconv_close iconv nl_langinfo
7172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7173 echo "configure:7174: checking for $ac_func" >&5
7174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7175 echo $ac_n "(cached) $ac_c" 1>&6
7176 else
7177 cat > conftest.$ac_ext <<EOF
7178 #line 7179 "configure"
7179 #include "confdefs.h"
7180 /* System header to define __stub macros and hopefully few prototypes,
7181 which can conflict with char $ac_func(); below. */
7182 #include <assert.h>
7183 /* Override any gcc2 internal prototype to avoid an error. */
7184 /* We use char because int might match the return type of a gcc2
7185 builtin and then its argument prototype would still apply. */
7186 char $ac_func();
7188 int main() {
7190 /* The GNU C library defines this for functions which it implements
7191 to always fail with ENOSYS. Some functions are actually named
7192 something starting with __ and the normal name is an alias. */
7193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7194 choke me
7195 #else
7196 $ac_func();
7197 #endif
7199 ; return 0; }
7201 if { (eval echo configure:7202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7202 rm -rf conftest*
7203 eval "ac_cv_func_$ac_func=yes"
7204 else
7205 echo "configure: failed program was:" >&5
7206 cat conftest.$ac_ext >&5
7207 rm -rf conftest*
7208 eval "ac_cv_func_$ac_func=no"
7210 rm -f conftest*
7213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7214 echo "$ac_t""yes" 1>&6
7215 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7216 cat >> confdefs.h <<EOF
7217 #define $ac_tr_func 1
7220 ac_XPG2funcs=yes
7221 else
7222 echo "$ac_t""no" 1>&6
7223 ac_XPG2funcs=no
7225 done
7228 LIBS="$ac_save_LIBS"
7230 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7231 echo "configure:7232: checking for XPG2 wchar_t support" >&5
7232 if test x"$ac_has_iconv_h" = xyes &&
7233 test x"$ac_has_langinfo_h" = xyes &&
7234 test x"$ac_XPG2funcs" = xyes; then
7235 ac_XPG2_wchar_t=yes
7236 else
7237 ac_XPG2_wchar_t=no
7239 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7241 if test x"$ac_isoC99_wchar_t" = xyes &&
7242 test x"$ac_XPG2_wchar_t" = xyes; then
7243 cat >> confdefs.h <<\EOF
7244 #define _GLIBCPP_USE_WCHAR_T 1
7247 enable_wchar_t=yes
7250 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7251 echo "configure:7252: checking for enabled wchar_t specializations" >&5
7252 echo "$ac_t""$enable_wchar_t" 1>&6
7255 if test "$enable_wchar_t" = yes; then
7256 GLIBCPP_TEST_WCHAR_T_TRUE=
7257 GLIBCPP_TEST_WCHAR_T_FALSE='#'
7258 else
7259 GLIBCPP_TEST_WCHAR_T_TRUE='#'
7260 GLIBCPP_TEST_WCHAR_T_FALSE=
7263 os_include_dir="os/bsd/netbsd"
7264 cat >> confdefs.h <<\EOF
7265 #define HAVE_COPYSIGN 1
7268 cat >> confdefs.h <<\EOF
7269 #define HAVE_COPYSIGNF 1
7272 cat >> confdefs.h <<\EOF
7273 #define HAVE_FINITEF 1
7276 cat >> confdefs.h <<\EOF
7277 #define HAVE_FINITE 1
7280 cat >> confdefs.h <<\EOF
7281 #define HAVE_FREXPF 1
7284 cat >> confdefs.h <<\EOF
7285 #define HAVE_HYPOTF 1
7288 cat >> confdefs.h <<\EOF
7289 #define HAVE_ISINF 1
7292 cat >> confdefs.h <<\EOF
7293 #define HAVE_ISINFF 1
7296 cat >> confdefs.h <<\EOF
7297 #define HAVE_ISNAN 1
7300 cat >> confdefs.h <<\EOF
7301 #define HAVE_ISNANF 1
7304 if test x"long_double_math_on_this_cpu" = x"yes"; then
7305 cat >> confdefs.h <<\EOF
7306 #define HAVE_FINITEL 1
7309 cat >> confdefs.h <<\EOF
7310 #define HAVE_ISINFL 1
7313 cat >> confdefs.h <<\EOF
7314 #define HAVE_ISNANL 1
7319 *-freebsd*)
7320 # Check for available headers.
7321 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
7322 machine/endian.h machine/param.h sys/machine.h sys/types.h \
7323 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
7324 sys/time.h unistd.h
7326 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7327 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7328 echo "configure:7329: checking for $ac_hdr" >&5
7329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7330 echo $ac_n "(cached) $ac_c" 1>&6
7331 else
7332 cat > conftest.$ac_ext <<EOF
7333 #line 7334 "configure"
7334 #include "confdefs.h"
7335 #include <$ac_hdr>
7337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7338 { (eval echo configure:7339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7340 if test -z "$ac_err"; then
7341 rm -rf conftest*
7342 eval "ac_cv_header_$ac_safe=yes"
7343 else
7344 echo "$ac_err" >&5
7345 echo "configure: failed program was:" >&5
7346 cat conftest.$ac_ext >&5
7347 rm -rf conftest*
7348 eval "ac_cv_header_$ac_safe=no"
7350 rm -f conftest*
7352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7353 echo "$ac_t""yes" 1>&6
7354 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7355 cat >> confdefs.h <<EOF
7356 #define $ac_tr_hdr 1
7359 else
7360 echo "$ac_t""no" 1>&6
7362 done
7364 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7367 # If we're not using GNU ld, then there's no point in even trying these
7368 # tests. Check for that first. We should have already tested for gld
7369 # by now (in libtool), but require it now just to be safe...
7370 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7371 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7374 # The name set by libtool depends on the version of libtool. Shame on us
7375 # for depending on an impl detail, but c'est la vie. Older versions used
7376 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7377 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7378 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7379 # set (hence we're using an older libtool), then set it.
7380 if test x${with_gnu_ld+set} != xset; then
7381 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7382 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7383 with_gnu_ld=no
7384 else
7385 with_gnu_ld=$ac_cv_prog_gnu_ld
7389 # Start by getting the version number. I think the libtool test already
7390 # does some of this, but throws away the result.
7392 ldver=`$LD --version 2>/dev/null | head -1 | \
7393 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7395 glibcpp_gnu_ld_version=`echo $ldver | \
7396 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7398 # Set --gc-sections.
7399 if test "$with_gnu_ld" = "notbroken"; then
7400 # GNU ld it is! Joy and bunny rabbits!
7402 # All these tests are for C++; save the language and the compiler flags.
7403 # Need to do this so that g++ won't try to link in libstdc++
7404 ac_test_CFLAGS="${CFLAGS+set}"
7405 ac_save_CFLAGS="$CFLAGS"
7406 CFLAGS='-x c++ -Wl,--gc-sections'
7408 # Check for -Wl,--gc-sections
7409 # XXX This test is broken at the moment, as symbols required for
7410 # linking are now in libsupc++ (not built yet.....). In addition,
7411 # this test has cored on solaris in the past. In addition,
7412 # --gc-sections doesn't really work at the moment (keeps on discarding
7413 # used sections, first .eh_frame and now some of the glibc sections for
7414 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7415 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7416 echo "configure:7417: checking for ld that supports -Wl,--gc-sections" >&5
7417 if test "$cross_compiling" = yes; then
7418 ac_sectionLDflags=yes
7419 else
7420 cat > conftest.$ac_ext <<EOF
7421 #line 7422 "configure"
7422 #include "confdefs.h"
7424 int main(void)
7426 try { throw 1; }
7427 catch (...) { };
7428 return 0;
7432 if { (eval echo configure:7433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7433 then
7434 ac_sectionLDflags=yes
7435 else
7436 echo "configure: failed program was:" >&5
7437 cat conftest.$ac_ext >&5
7438 rm -fr conftest*
7439 ac_sectionLDflags=no
7441 rm -fr conftest*
7444 if test "$ac_test_CFLAGS" = set; then
7445 CFLAGS="$ac_save_CFLAGS"
7446 else
7447 # this is the suspicious part
7448 CFLAGS=''
7450 if test "$ac_sectionLDflags" = "yes"; then
7451 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7453 echo "$ac_t""$ac_sectionLDflags" 1>&6
7456 # Set linker optimization flags.
7457 if test x"$with_gnu_ld" = x"yes"; then
7458 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7465 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7466 echo "configure:7467: checking for main in -lm" >&5
7467 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7469 echo $ac_n "(cached) $ac_c" 1>&6
7470 else
7471 ac_save_LIBS="$LIBS"
7472 LIBS="-lm $LIBS"
7473 cat > conftest.$ac_ext <<EOF
7474 #line 7475 "configure"
7475 #include "confdefs.h"
7477 int main() {
7478 main()
7479 ; return 0; }
7481 if { (eval echo configure:7482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7482 rm -rf conftest*
7483 eval "ac_cv_lib_$ac_lib_var=yes"
7484 else
7485 echo "configure: failed program was:" >&5
7486 cat conftest.$ac_ext >&5
7487 rm -rf conftest*
7488 eval "ac_cv_lib_$ac_lib_var=no"
7490 rm -f conftest*
7491 LIBS="$ac_save_LIBS"
7494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7495 echo "$ac_t""yes" 1>&6
7496 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7497 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7498 cat >> confdefs.h <<EOF
7499 #define $ac_tr_lib 1
7502 LIBS="-lm $LIBS"
7504 else
7505 echo "$ac_t""no" 1>&6
7508 for ac_func in nan copysignf
7510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7511 echo "configure:7512: checking for $ac_func" >&5
7512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7513 echo $ac_n "(cached) $ac_c" 1>&6
7514 else
7515 cat > conftest.$ac_ext <<EOF
7516 #line 7517 "configure"
7517 #include "confdefs.h"
7518 /* System header to define __stub macros and hopefully few prototypes,
7519 which can conflict with char $ac_func(); below. */
7520 #include <assert.h>
7521 /* Override any gcc2 internal prototype to avoid an error. */
7522 /* We use char because int might match the return type of a gcc2
7523 builtin and then its argument prototype would still apply. */
7524 char $ac_func();
7526 int main() {
7528 /* The GNU C library defines this for functions which it implements
7529 to always fail with ENOSYS. Some functions are actually named
7530 something starting with __ and the normal name is an alias. */
7531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7532 choke me
7533 #else
7534 $ac_func();
7535 #endif
7537 ; return 0; }
7539 if { (eval echo configure:7540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7540 rm -rf conftest*
7541 eval "ac_cv_func_$ac_func=yes"
7542 else
7543 echo "configure: failed program was:" >&5
7544 cat conftest.$ac_ext >&5
7545 rm -rf conftest*
7546 eval "ac_cv_func_$ac_func=no"
7548 rm -f conftest*
7551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7552 echo "$ac_t""yes" 1>&6
7553 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7554 cat >> confdefs.h <<EOF
7555 #define $ac_tr_func 1
7558 else
7559 echo "$ac_t""no" 1>&6
7560 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7562 done
7565 for ac_func in __signbit
7567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7568 echo "configure:7569: checking for $ac_func" >&5
7569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7570 echo $ac_n "(cached) $ac_c" 1>&6
7571 else
7572 cat > conftest.$ac_ext <<EOF
7573 #line 7574 "configure"
7574 #include "confdefs.h"
7575 /* System header to define __stub macros and hopefully few prototypes,
7576 which can conflict with char $ac_func(); below. */
7577 #include <assert.h>
7578 /* Override any gcc2 internal prototype to avoid an error. */
7579 /* We use char because int might match the return type of a gcc2
7580 builtin and then its argument prototype would still apply. */
7581 char $ac_func();
7583 int main() {
7585 /* The GNU C library defines this for functions which it implements
7586 to always fail with ENOSYS. Some functions are actually named
7587 something starting with __ and the normal name is an alias. */
7588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7589 choke me
7590 #else
7591 $ac_func();
7592 #endif
7594 ; return 0; }
7596 if { (eval echo configure:7597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7597 rm -rf conftest*
7598 eval "ac_cv_func_$ac_func=yes"
7599 else
7600 echo "configure: failed program was:" >&5
7601 cat conftest.$ac_ext >&5
7602 rm -rf conftest*
7603 eval "ac_cv_func_$ac_func=no"
7605 rm -f conftest*
7608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7609 echo "$ac_t""yes" 1>&6
7610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7611 cat >> confdefs.h <<EOF
7612 #define $ac_tr_func 1
7615 else
7616 echo "$ac_t""no" 1>&6
7617 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7619 done
7621 for ac_func in __signbitf
7623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7624 echo "configure:7625: checking for $ac_func" >&5
7625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7626 echo $ac_n "(cached) $ac_c" 1>&6
7627 else
7628 cat > conftest.$ac_ext <<EOF
7629 #line 7630 "configure"
7630 #include "confdefs.h"
7631 /* System header to define __stub macros and hopefully few prototypes,
7632 which can conflict with char $ac_func(); below. */
7633 #include <assert.h>
7634 /* Override any gcc2 internal prototype to avoid an error. */
7635 /* We use char because int might match the return type of a gcc2
7636 builtin and then its argument prototype would still apply. */
7637 char $ac_func();
7639 int main() {
7641 /* The GNU C library defines this for functions which it implements
7642 to always fail with ENOSYS. Some functions are actually named
7643 something starting with __ and the normal name is an alias. */
7644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7645 choke me
7646 #else
7647 $ac_func();
7648 #endif
7650 ; return 0; }
7652 if { (eval echo configure:7653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7653 rm -rf conftest*
7654 eval "ac_cv_func_$ac_func=yes"
7655 else
7656 echo "configure: failed program was:" >&5
7657 cat conftest.$ac_ext >&5
7658 rm -rf conftest*
7659 eval "ac_cv_func_$ac_func=no"
7661 rm -f conftest*
7664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7665 echo "$ac_t""yes" 1>&6
7666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7667 cat >> confdefs.h <<EOF
7668 #define $ac_tr_func 1
7671 else
7672 echo "$ac_t""no" 1>&6
7673 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7675 done
7678 if test x$ac_cv_func_copysignl = x"yes"; then
7679 for ac_func in __signbitl
7681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7682 echo "configure:7683: checking for $ac_func" >&5
7683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7684 echo $ac_n "(cached) $ac_c" 1>&6
7685 else
7686 cat > conftest.$ac_ext <<EOF
7687 #line 7688 "configure"
7688 #include "confdefs.h"
7689 /* System header to define __stub macros and hopefully few prototypes,
7690 which can conflict with char $ac_func(); below. */
7691 #include <assert.h>
7692 /* Override any gcc2 internal prototype to avoid an error. */
7693 /* We use char because int might match the return type of a gcc2
7694 builtin and then its argument prototype would still apply. */
7695 char $ac_func();
7697 int main() {
7699 /* The GNU C library defines this for functions which it implements
7700 to always fail with ENOSYS. Some functions are actually named
7701 something starting with __ and the normal name is an alias. */
7702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7703 choke me
7704 #else
7705 $ac_func();
7706 #endif
7708 ; return 0; }
7710 if { (eval echo configure:7711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7711 rm -rf conftest*
7712 eval "ac_cv_func_$ac_func=yes"
7713 else
7714 echo "configure: failed program was:" >&5
7715 cat conftest.$ac_ext >&5
7716 rm -rf conftest*
7717 eval "ac_cv_func_$ac_func=no"
7719 rm -f conftest*
7722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7723 echo "$ac_t""yes" 1>&6
7724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7725 cat >> confdefs.h <<EOF
7726 #define $ac_tr_func 1
7729 else
7730 echo "$ac_t""no" 1>&6
7731 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7733 done
7737 if test -n "$LIBMATHOBJS"; then
7738 need_libmath=yes
7743 if test "$need_libmath" = yes; then
7744 GLIBCPP_BUILD_LIBMATH_TRUE=
7745 GLIBCPP_BUILD_LIBMATH_FALSE='#'
7746 else
7747 GLIBCPP_BUILD_LIBMATH_TRUE='#'
7748 GLIBCPP_BUILD_LIBMATH_FALSE=
7752 enable_wchar_t=no
7754 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7755 echo "configure:7756: checking for mbstate_t" >&5
7756 cat > conftest.$ac_ext <<EOF
7757 #line 7758 "configure"
7758 #include "confdefs.h"
7759 #include <wchar.h>
7760 int main() {
7761 mbstate_t teststate;
7762 ; return 0; }
7764 if { (eval echo configure:7765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7765 rm -rf conftest*
7766 have_mbstate_t=yes
7767 else
7768 echo "configure: failed program was:" >&5
7769 cat conftest.$ac_ext >&5
7770 rm -rf conftest*
7771 have_mbstate_t=no
7773 rm -f conftest*
7774 echo "$ac_t""$have_mbstate_t" 1>&6
7775 if test x"$have_mbstate_t" = xyes; then
7776 cat >> confdefs.h <<\EOF
7777 #define HAVE_MBSTATE_T 1
7782 for ac_hdr in wchar.h
7784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7786 echo "configure:7787: checking for $ac_hdr" >&5
7787 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7788 echo $ac_n "(cached) $ac_c" 1>&6
7789 else
7790 cat > conftest.$ac_ext <<EOF
7791 #line 7792 "configure"
7792 #include "confdefs.h"
7793 #include <$ac_hdr>
7795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7796 { (eval echo configure:7797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7798 if test -z "$ac_err"; then
7799 rm -rf conftest*
7800 eval "ac_cv_header_$ac_safe=yes"
7801 else
7802 echo "$ac_err" >&5
7803 echo "configure: failed program was:" >&5
7804 cat conftest.$ac_ext >&5
7805 rm -rf conftest*
7806 eval "ac_cv_header_$ac_safe=no"
7808 rm -f conftest*
7810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7811 echo "$ac_t""yes" 1>&6
7812 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7813 cat >> confdefs.h <<EOF
7814 #define $ac_tr_hdr 1
7816 ac_has_wchar_h=yes
7817 else
7818 echo "$ac_t""no" 1>&6
7819 ac_has_wchar_h=no
7821 done
7823 for ac_hdr in wctype.h
7825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7827 echo "configure:7828: checking for $ac_hdr" >&5
7828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7829 echo $ac_n "(cached) $ac_c" 1>&6
7830 else
7831 cat > conftest.$ac_ext <<EOF
7832 #line 7833 "configure"
7833 #include "confdefs.h"
7834 #include <$ac_hdr>
7836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7837 { (eval echo configure:7838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7839 if test -z "$ac_err"; then
7840 rm -rf conftest*
7841 eval "ac_cv_header_$ac_safe=yes"
7842 else
7843 echo "$ac_err" >&5
7844 echo "configure: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7846 rm -rf conftest*
7847 eval "ac_cv_header_$ac_safe=no"
7849 rm -f conftest*
7851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7852 echo "$ac_t""yes" 1>&6
7853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7854 cat >> confdefs.h <<EOF
7855 #define $ac_tr_hdr 1
7857 ac_has_wctype_h=yes
7858 else
7859 echo "$ac_t""no" 1>&6
7860 ac_has_wctype_h=no
7862 done
7865 if test x"$ac_has_wchar_h" = xyes &&
7866 test x"$ac_has_wctype_h" = xyes &&
7867 test x"$enable_c_mbchar" != xno; then
7869 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7870 echo "configure:7871: checking for WCHAR_MIN and WCHAR_MAX" >&5
7871 cat > conftest.$ac_ext <<EOF
7872 #line 7873 "configure"
7873 #include "confdefs.h"
7874 #include <wchar.h>
7875 int main() {
7876 int i = WCHAR_MIN; int j = WCHAR_MAX;
7877 ; return 0; }
7879 if { (eval echo configure:7880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7880 rm -rf conftest*
7881 has_wchar_minmax=yes
7882 else
7883 echo "configure: failed program was:" >&5
7884 cat conftest.$ac_ext >&5
7885 rm -rf conftest*
7886 has_wchar_minmax=no
7888 rm -f conftest*
7889 echo "$ac_t""$has_wchar_minmax" 1>&6
7891 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7892 echo "configure:7893: checking for WEOF" >&5
7893 cat > conftest.$ac_ext <<EOF
7894 #line 7895 "configure"
7895 #include "confdefs.h"
7897 #include <wchar.h>
7898 #include <stddef.h>
7899 int main() {
7900 wint_t i = WEOF;
7901 ; return 0; }
7903 if { (eval echo configure:7904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7904 rm -rf conftest*
7905 has_weof=yes
7906 else
7907 echo "configure: failed program was:" >&5
7908 cat conftest.$ac_ext >&5
7909 rm -rf conftest*
7910 has_weof=no
7912 rm -f conftest*
7913 echo "$ac_t""$has_weof" 1>&6
7915 ac_wfuncs=yes
7916 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7919 echo "configure:7920: checking for $ac_func" >&5
7920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7921 echo $ac_n "(cached) $ac_c" 1>&6
7922 else
7923 cat > conftest.$ac_ext <<EOF
7924 #line 7925 "configure"
7925 #include "confdefs.h"
7926 /* System header to define __stub macros and hopefully few prototypes,
7927 which can conflict with char $ac_func(); below. */
7928 #include <assert.h>
7929 /* Override any gcc2 internal prototype to avoid an error. */
7930 /* We use char because int might match the return type of a gcc2
7931 builtin and then its argument prototype would still apply. */
7932 char $ac_func();
7934 int main() {
7936 /* The GNU C library defines this for functions which it implements
7937 to always fail with ENOSYS. Some functions are actually named
7938 something starting with __ and the normal name is an alias. */
7939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7940 choke me
7941 #else
7942 $ac_func();
7943 #endif
7945 ; return 0; }
7947 if { (eval echo configure:7948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7948 rm -rf conftest*
7949 eval "ac_cv_func_$ac_func=yes"
7950 else
7951 echo "configure: failed program was:" >&5
7952 cat conftest.$ac_ext >&5
7953 rm -rf conftest*
7954 eval "ac_cv_func_$ac_func=no"
7956 rm -f conftest*
7959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7960 echo "$ac_t""yes" 1>&6
7961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7962 cat >> confdefs.h <<EOF
7963 #define $ac_tr_func 1
7966 else
7967 echo "$ac_t""no" 1>&6
7969 ac_wfuncs=no
7971 done
7974 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7975 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7976 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7977 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7978 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7979 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7982 echo "configure:7983: checking for $ac_func" >&5
7983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7984 echo $ac_n "(cached) $ac_c" 1>&6
7985 else
7986 cat > conftest.$ac_ext <<EOF
7987 #line 7988 "configure"
7988 #include "confdefs.h"
7989 /* System header to define __stub macros and hopefully few prototypes,
7990 which can conflict with char $ac_func(); below. */
7991 #include <assert.h>
7992 /* Override any gcc2 internal prototype to avoid an error. */
7993 /* We use char because int might match the return type of a gcc2
7994 builtin and then its argument prototype would still apply. */
7995 char $ac_func();
7997 int main() {
7999 /* The GNU C library defines this for functions which it implements
8000 to always fail with ENOSYS. Some functions are actually named
8001 something starting with __ and the normal name is an alias. */
8002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8003 choke me
8004 #else
8005 $ac_func();
8006 #endif
8008 ; return 0; }
8010 if { (eval echo configure:8011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8011 rm -rf conftest*
8012 eval "ac_cv_func_$ac_func=yes"
8013 else
8014 echo "configure: failed program was:" >&5
8015 cat conftest.$ac_ext >&5
8016 rm -rf conftest*
8017 eval "ac_cv_func_$ac_func=no"
8019 rm -f conftest*
8022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8023 echo "$ac_t""yes" 1>&6
8024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8025 cat >> confdefs.h <<EOF
8026 #define $ac_tr_func 1
8029 else
8030 echo "$ac_t""no" 1>&6
8032 ac_wfuncs=no
8034 done
8037 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8038 echo "configure:8039: checking for ISO C99 wchar_t support" >&5
8039 if test x"$has_weof" = xyes &&
8040 test x"$has_wchar_minmax" = xyes &&
8041 test x"$ac_wfuncs" = xyes; then
8042 ac_isoC99_wchar_t=yes
8043 else
8044 ac_isoC99_wchar_t=no
8046 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8048 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8049 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8050 echo "configure:8051: checking for iconv.h" >&5
8051 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8052 echo $ac_n "(cached) $ac_c" 1>&6
8053 else
8054 cat > conftest.$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 #include <iconv.h>
8059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8060 { (eval echo configure:8061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8062 if test -z "$ac_err"; then
8063 rm -rf conftest*
8064 eval "ac_cv_header_$ac_safe=yes"
8065 else
8066 echo "$ac_err" >&5
8067 echo "configure: failed program was:" >&5
8068 cat conftest.$ac_ext >&5
8069 rm -rf conftest*
8070 eval "ac_cv_header_$ac_safe=no"
8072 rm -f conftest*
8074 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8075 echo "$ac_t""yes" 1>&6
8076 ac_has_iconv_h=yes
8077 else
8078 echo "$ac_t""no" 1>&6
8079 ac_has_iconv_h=no
8082 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8083 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8084 echo "configure:8085: checking for langinfo.h" >&5
8085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8086 echo $ac_n "(cached) $ac_c" 1>&6
8087 else
8088 cat > conftest.$ac_ext <<EOF
8089 #line 8090 "configure"
8090 #include "confdefs.h"
8091 #include <langinfo.h>
8093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8094 { (eval echo configure:8095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8096 if test -z "$ac_err"; then
8097 rm -rf conftest*
8098 eval "ac_cv_header_$ac_safe=yes"
8099 else
8100 echo "$ac_err" >&5
8101 echo "configure: failed program was:" >&5
8102 cat conftest.$ac_ext >&5
8103 rm -rf conftest*
8104 eval "ac_cv_header_$ac_safe=no"
8106 rm -f conftest*
8108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8109 echo "$ac_t""yes" 1>&6
8110 ac_has_langinfo_h=yes
8111 else
8112 echo "$ac_t""no" 1>&6
8113 ac_has_langinfo_h=no
8117 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8118 echo "configure:8119: checking for iconv in -liconv" >&5
8119 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8120 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8121 echo $ac_n "(cached) $ac_c" 1>&6
8122 else
8123 ac_save_LIBS="$LIBS"
8124 LIBS="-liconv $LIBS"
8125 cat > conftest.$ac_ext <<EOF
8126 #line 8127 "configure"
8127 #include "confdefs.h"
8128 /* Override any gcc2 internal prototype to avoid an error. */
8129 /* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8131 char iconv();
8133 int main() {
8134 iconv()
8135 ; return 0; }
8137 if { (eval echo configure:8138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8138 rm -rf conftest*
8139 eval "ac_cv_lib_$ac_lib_var=yes"
8140 else
8141 echo "configure: failed program was:" >&5
8142 cat conftest.$ac_ext >&5
8143 rm -rf conftest*
8144 eval "ac_cv_lib_$ac_lib_var=no"
8146 rm -f conftest*
8147 LIBS="$ac_save_LIBS"
8150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8151 echo "$ac_t""yes" 1>&6
8152 libiconv="-liconv"
8153 else
8154 echo "$ac_t""no" 1>&6
8157 ac_save_LIBS="$LIBS"
8158 LIBS="$LIBS $libiconv"
8160 for ac_func in iconv_open iconv_close iconv nl_langinfo
8162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8163 echo "configure:8164: checking for $ac_func" >&5
8164 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8165 echo $ac_n "(cached) $ac_c" 1>&6
8166 else
8167 cat > conftest.$ac_ext <<EOF
8168 #line 8169 "configure"
8169 #include "confdefs.h"
8170 /* System header to define __stub macros and hopefully few prototypes,
8171 which can conflict with char $ac_func(); below. */
8172 #include <assert.h>
8173 /* Override any gcc2 internal prototype to avoid an error. */
8174 /* We use char because int might match the return type of a gcc2
8175 builtin and then its argument prototype would still apply. */
8176 char $ac_func();
8178 int main() {
8180 /* The GNU C library defines this for functions which it implements
8181 to always fail with ENOSYS. Some functions are actually named
8182 something starting with __ and the normal name is an alias. */
8183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8184 choke me
8185 #else
8186 $ac_func();
8187 #endif
8189 ; return 0; }
8191 if { (eval echo configure:8192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8192 rm -rf conftest*
8193 eval "ac_cv_func_$ac_func=yes"
8194 else
8195 echo "configure: failed program was:" >&5
8196 cat conftest.$ac_ext >&5
8197 rm -rf conftest*
8198 eval "ac_cv_func_$ac_func=no"
8200 rm -f conftest*
8203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8204 echo "$ac_t""yes" 1>&6
8205 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8206 cat >> confdefs.h <<EOF
8207 #define $ac_tr_func 1
8210 ac_XPG2funcs=yes
8211 else
8212 echo "$ac_t""no" 1>&6
8213 ac_XPG2funcs=no
8215 done
8218 LIBS="$ac_save_LIBS"
8220 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8221 echo "configure:8222: checking for XPG2 wchar_t support" >&5
8222 if test x"$ac_has_iconv_h" = xyes &&
8223 test x"$ac_has_langinfo_h" = xyes &&
8224 test x"$ac_XPG2funcs" = xyes; then
8225 ac_XPG2_wchar_t=yes
8226 else
8227 ac_XPG2_wchar_t=no
8229 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8231 if test x"$ac_isoC99_wchar_t" = xyes &&
8232 test x"$ac_XPG2_wchar_t" = xyes; then
8233 cat >> confdefs.h <<\EOF
8234 #define _GLIBCPP_USE_WCHAR_T 1
8237 enable_wchar_t=yes
8240 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8241 echo "configure:8242: checking for enabled wchar_t specializations" >&5
8242 echo "$ac_t""$enable_wchar_t" 1>&6
8245 if test "$enable_wchar_t" = yes; then
8246 GLIBCPP_TEST_WCHAR_T_TRUE=
8247 GLIBCPP_TEST_WCHAR_T_FALSE='#'
8248 else
8249 GLIBCPP_TEST_WCHAR_T_TRUE='#'
8250 GLIBCPP_TEST_WCHAR_T_FALSE=
8253 os_include_dir="os/bsd/freebsd"
8254 cat >> confdefs.h <<\EOF
8255 #define HAVE_LC_MESSAGES 1
8258 cat >> confdefs.h <<\EOF
8259 #define HAVE_DRAND48 1
8262 cat >> confdefs.h <<\EOF
8263 #define HAVE_GETPAGESIZE 1
8266 cat >> confdefs.h <<\EOF
8267 #define HAVE_SETENV 1
8270 cat >> confdefs.h <<\EOF
8271 #define HAVE_SIGSETJMP 1
8274 cat >> confdefs.h <<\EOF
8275 #define HAVE_COPYSIGN 1
8278 cat >> confdefs.h <<\EOF
8279 #define HAVE_COPYSIGNF 1
8282 cat >> confdefs.h <<\EOF
8283 #define HAVE_FINITEF 1
8286 cat >> confdefs.h <<\EOF
8287 #define HAVE_FINITE 1
8290 cat >> confdefs.h <<\EOF
8291 #define HAVE_FREXPF 1
8294 cat >> confdefs.h <<\EOF
8295 #define HAVE_HYPOT 1
8298 cat >> confdefs.h <<\EOF
8299 #define HAVE_HYPOTF 1
8302 cat >> confdefs.h <<\EOF
8303 #define HAVE_ISINF 1
8306 cat >> confdefs.h <<\EOF
8307 #define HAVE_ISNAN 1
8310 cat >> confdefs.h <<\EOF
8311 #define HAVE_ISNANF 1
8314 if test x"long_double_math_on_this_cpu" = x"yes"; then
8315 cat >> confdefs.h <<\EOF
8316 #define HAVE_FINITEL 1
8319 cat >> confdefs.h <<\EOF
8320 #define HAVE_ISINFL 1
8323 cat >> confdefs.h <<\EOF
8324 #define HAVE_ISNANL 1
8329 *-mingw32*)
8330 for ac_hdr in sys/types.h locale.h float.h
8332 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8334 echo "configure:8335: checking for $ac_hdr" >&5
8335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8336 echo $ac_n "(cached) $ac_c" 1>&6
8337 else
8338 cat > conftest.$ac_ext <<EOF
8339 #line 8340 "configure"
8340 #include "confdefs.h"
8341 #include <$ac_hdr>
8343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8344 { (eval echo configure:8345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8346 if test -z "$ac_err"; then
8347 rm -rf conftest*
8348 eval "ac_cv_header_$ac_safe=yes"
8349 else
8350 echo "$ac_err" >&5
8351 echo "configure: failed program was:" >&5
8352 cat conftest.$ac_ext >&5
8353 rm -rf conftest*
8354 eval "ac_cv_header_$ac_safe=no"
8356 rm -f conftest*
8358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8359 echo "$ac_t""yes" 1>&6
8360 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8361 cat >> confdefs.h <<EOF
8362 #define $ac_tr_hdr 1
8365 else
8366 echo "$ac_t""no" 1>&6
8368 done
8371 # If we're not using GNU ld, then there's no point in even trying these
8372 # tests. Check for that first. We should have already tested for gld
8373 # by now (in libtool), but require it now just to be safe...
8374 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8375 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8378 # The name set by libtool depends on the version of libtool. Shame on us
8379 # for depending on an impl detail, but c'est la vie. Older versions used
8380 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8381 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8382 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8383 # set (hence we're using an older libtool), then set it.
8384 if test x${with_gnu_ld+set} != xset; then
8385 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8386 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8387 with_gnu_ld=no
8388 else
8389 with_gnu_ld=$ac_cv_prog_gnu_ld
8393 # Start by getting the version number. I think the libtool test already
8394 # does some of this, but throws away the result.
8396 ldver=`$LD --version 2>/dev/null | head -1 | \
8397 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8399 glibcpp_gnu_ld_version=`echo $ldver | \
8400 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8402 # Set --gc-sections.
8403 if test "$with_gnu_ld" = "notbroken"; then
8404 # GNU ld it is! Joy and bunny rabbits!
8406 # All these tests are for C++; save the language and the compiler flags.
8407 # Need to do this so that g++ won't try to link in libstdc++
8408 ac_test_CFLAGS="${CFLAGS+set}"
8409 ac_save_CFLAGS="$CFLAGS"
8410 CFLAGS='-x c++ -Wl,--gc-sections'
8412 # Check for -Wl,--gc-sections
8413 # XXX This test is broken at the moment, as symbols required for
8414 # linking are now in libsupc++ (not built yet.....). In addition,
8415 # this test has cored on solaris in the past. In addition,
8416 # --gc-sections doesn't really work at the moment (keeps on discarding
8417 # used sections, first .eh_frame and now some of the glibc sections for
8418 # iconv). Bzzzzt. Thanks for playing, maybe next time.
8419 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8420 echo "configure:8421: checking for ld that supports -Wl,--gc-sections" >&5
8421 if test "$cross_compiling" = yes; then
8422 ac_sectionLDflags=yes
8423 else
8424 cat > conftest.$ac_ext <<EOF
8425 #line 8426 "configure"
8426 #include "confdefs.h"
8428 int main(void)
8430 try { throw 1; }
8431 catch (...) { };
8432 return 0;
8436 if { (eval echo configure:8437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8437 then
8438 ac_sectionLDflags=yes
8439 else
8440 echo "configure: failed program was:" >&5
8441 cat conftest.$ac_ext >&5
8442 rm -fr conftest*
8443 ac_sectionLDflags=no
8445 rm -fr conftest*
8448 if test "$ac_test_CFLAGS" = set; then
8449 CFLAGS="$ac_save_CFLAGS"
8450 else
8451 # this is the suspicious part
8452 CFLAGS=''
8454 if test "$ac_sectionLDflags" = "yes"; then
8455 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8457 echo "$ac_t""$ac_sectionLDflags" 1>&6
8460 # Set linker optimization flags.
8461 if test x"$with_gnu_ld" = x"yes"; then
8462 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8469 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8470 echo "configure:8471: checking for main in -lm" >&5
8471 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8472 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8473 echo $ac_n "(cached) $ac_c" 1>&6
8474 else
8475 ac_save_LIBS="$LIBS"
8476 LIBS="-lm $LIBS"
8477 cat > conftest.$ac_ext <<EOF
8478 #line 8479 "configure"
8479 #include "confdefs.h"
8481 int main() {
8482 main()
8483 ; return 0; }
8485 if { (eval echo configure:8486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8486 rm -rf conftest*
8487 eval "ac_cv_lib_$ac_lib_var=yes"
8488 else
8489 echo "configure: failed program was:" >&5
8490 cat conftest.$ac_ext >&5
8491 rm -rf conftest*
8492 eval "ac_cv_lib_$ac_lib_var=no"
8494 rm -f conftest*
8495 LIBS="$ac_save_LIBS"
8498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8499 echo "$ac_t""yes" 1>&6
8500 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8501 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8502 cat >> confdefs.h <<EOF
8503 #define $ac_tr_lib 1
8506 LIBS="-lm $LIBS"
8508 else
8509 echo "$ac_t""no" 1>&6
8512 for ac_func in nan copysignf
8514 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8515 echo "configure:8516: checking for $ac_func" >&5
8516 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8517 echo $ac_n "(cached) $ac_c" 1>&6
8518 else
8519 cat > conftest.$ac_ext <<EOF
8520 #line 8521 "configure"
8521 #include "confdefs.h"
8522 /* System header to define __stub macros and hopefully few prototypes,
8523 which can conflict with char $ac_func(); below. */
8524 #include <assert.h>
8525 /* Override any gcc2 internal prototype to avoid an error. */
8526 /* We use char because int might match the return type of a gcc2
8527 builtin and then its argument prototype would still apply. */
8528 char $ac_func();
8530 int main() {
8532 /* The GNU C library defines this for functions which it implements
8533 to always fail with ENOSYS. Some functions are actually named
8534 something starting with __ and the normal name is an alias. */
8535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8536 choke me
8537 #else
8538 $ac_func();
8539 #endif
8541 ; return 0; }
8543 if { (eval echo configure:8544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8544 rm -rf conftest*
8545 eval "ac_cv_func_$ac_func=yes"
8546 else
8547 echo "configure: failed program was:" >&5
8548 cat conftest.$ac_ext >&5
8549 rm -rf conftest*
8550 eval "ac_cv_func_$ac_func=no"
8552 rm -f conftest*
8555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8556 echo "$ac_t""yes" 1>&6
8557 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8558 cat >> confdefs.h <<EOF
8559 #define $ac_tr_func 1
8562 else
8563 echo "$ac_t""no" 1>&6
8564 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8566 done
8569 for ac_func in __signbit
8571 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8572 echo "configure:8573: checking for $ac_func" >&5
8573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8574 echo $ac_n "(cached) $ac_c" 1>&6
8575 else
8576 cat > conftest.$ac_ext <<EOF
8577 #line 8578 "configure"
8578 #include "confdefs.h"
8579 /* System header to define __stub macros and hopefully few prototypes,
8580 which can conflict with char $ac_func(); below. */
8581 #include <assert.h>
8582 /* Override any gcc2 internal prototype to avoid an error. */
8583 /* We use char because int might match the return type of a gcc2
8584 builtin and then its argument prototype would still apply. */
8585 char $ac_func();
8587 int main() {
8589 /* The GNU C library defines this for functions which it implements
8590 to always fail with ENOSYS. Some functions are actually named
8591 something starting with __ and the normal name is an alias. */
8592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8593 choke me
8594 #else
8595 $ac_func();
8596 #endif
8598 ; return 0; }
8600 if { (eval echo configure:8601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8601 rm -rf conftest*
8602 eval "ac_cv_func_$ac_func=yes"
8603 else
8604 echo "configure: failed program was:" >&5
8605 cat conftest.$ac_ext >&5
8606 rm -rf conftest*
8607 eval "ac_cv_func_$ac_func=no"
8609 rm -f conftest*
8612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8613 echo "$ac_t""yes" 1>&6
8614 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8615 cat >> confdefs.h <<EOF
8616 #define $ac_tr_func 1
8619 else
8620 echo "$ac_t""no" 1>&6
8621 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8623 done
8625 for ac_func in __signbitf
8627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8628 echo "configure:8629: checking for $ac_func" >&5
8629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8630 echo $ac_n "(cached) $ac_c" 1>&6
8631 else
8632 cat > conftest.$ac_ext <<EOF
8633 #line 8634 "configure"
8634 #include "confdefs.h"
8635 /* System header to define __stub macros and hopefully few prototypes,
8636 which can conflict with char $ac_func(); below. */
8637 #include <assert.h>
8638 /* Override any gcc2 internal prototype to avoid an error. */
8639 /* We use char because int might match the return type of a gcc2
8640 builtin and then its argument prototype would still apply. */
8641 char $ac_func();
8643 int main() {
8645 /* The GNU C library defines this for functions which it implements
8646 to always fail with ENOSYS. Some functions are actually named
8647 something starting with __ and the normal name is an alias. */
8648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8649 choke me
8650 #else
8651 $ac_func();
8652 #endif
8654 ; return 0; }
8656 if { (eval echo configure:8657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8657 rm -rf conftest*
8658 eval "ac_cv_func_$ac_func=yes"
8659 else
8660 echo "configure: failed program was:" >&5
8661 cat conftest.$ac_ext >&5
8662 rm -rf conftest*
8663 eval "ac_cv_func_$ac_func=no"
8665 rm -f conftest*
8668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8669 echo "$ac_t""yes" 1>&6
8670 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8671 cat >> confdefs.h <<EOF
8672 #define $ac_tr_func 1
8675 else
8676 echo "$ac_t""no" 1>&6
8677 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8679 done
8682 if test x$ac_cv_func_copysignl = x"yes"; then
8683 for ac_func in __signbitl
8685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8686 echo "configure:8687: checking for $ac_func" >&5
8687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8688 echo $ac_n "(cached) $ac_c" 1>&6
8689 else
8690 cat > conftest.$ac_ext <<EOF
8691 #line 8692 "configure"
8692 #include "confdefs.h"
8693 /* System header to define __stub macros and hopefully few prototypes,
8694 which can conflict with char $ac_func(); below. */
8695 #include <assert.h>
8696 /* Override any gcc2 internal prototype to avoid an error. */
8697 /* We use char because int might match the return type of a gcc2
8698 builtin and then its argument prototype would still apply. */
8699 char $ac_func();
8701 int main() {
8703 /* The GNU C library defines this for functions which it implements
8704 to always fail with ENOSYS. Some functions are actually named
8705 something starting with __ and the normal name is an alias. */
8706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8707 choke me
8708 #else
8709 $ac_func();
8710 #endif
8712 ; return 0; }
8714 if { (eval echo configure:8715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8715 rm -rf conftest*
8716 eval "ac_cv_func_$ac_func=yes"
8717 else
8718 echo "configure: failed program was:" >&5
8719 cat conftest.$ac_ext >&5
8720 rm -rf conftest*
8721 eval "ac_cv_func_$ac_func=no"
8723 rm -f conftest*
8726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8727 echo "$ac_t""yes" 1>&6
8728 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8729 cat >> confdefs.h <<EOF
8730 #define $ac_tr_func 1
8733 else
8734 echo "$ac_t""no" 1>&6
8735 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8737 done
8741 if test -n "$LIBMATHOBJS"; then
8742 need_libmath=yes
8747 if test "$need_libmath" = yes; then
8748 GLIBCPP_BUILD_LIBMATH_TRUE=
8749 GLIBCPP_BUILD_LIBMATH_FALSE='#'
8750 else
8751 GLIBCPP_BUILD_LIBMATH_TRUE='#'
8752 GLIBCPP_BUILD_LIBMATH_FALSE=
8756 enable_wchar_t=no
8758 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8759 echo "configure:8760: checking for mbstate_t" >&5
8760 cat > conftest.$ac_ext <<EOF
8761 #line 8762 "configure"
8762 #include "confdefs.h"
8763 #include <wchar.h>
8764 int main() {
8765 mbstate_t teststate;
8766 ; return 0; }
8768 if { (eval echo configure:8769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8769 rm -rf conftest*
8770 have_mbstate_t=yes
8771 else
8772 echo "configure: failed program was:" >&5
8773 cat conftest.$ac_ext >&5
8774 rm -rf conftest*
8775 have_mbstate_t=no
8777 rm -f conftest*
8778 echo "$ac_t""$have_mbstate_t" 1>&6
8779 if test x"$have_mbstate_t" = xyes; then
8780 cat >> confdefs.h <<\EOF
8781 #define HAVE_MBSTATE_T 1
8786 for ac_hdr in wchar.h
8788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8790 echo "configure:8791: checking for $ac_hdr" >&5
8791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8792 echo $ac_n "(cached) $ac_c" 1>&6
8793 else
8794 cat > conftest.$ac_ext <<EOF
8795 #line 8796 "configure"
8796 #include "confdefs.h"
8797 #include <$ac_hdr>
8799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8800 { (eval echo configure:8801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8802 if test -z "$ac_err"; then
8803 rm -rf conftest*
8804 eval "ac_cv_header_$ac_safe=yes"
8805 else
8806 echo "$ac_err" >&5
8807 echo "configure: failed program was:" >&5
8808 cat conftest.$ac_ext >&5
8809 rm -rf conftest*
8810 eval "ac_cv_header_$ac_safe=no"
8812 rm -f conftest*
8814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8815 echo "$ac_t""yes" 1>&6
8816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8817 cat >> confdefs.h <<EOF
8818 #define $ac_tr_hdr 1
8820 ac_has_wchar_h=yes
8821 else
8822 echo "$ac_t""no" 1>&6
8823 ac_has_wchar_h=no
8825 done
8827 for ac_hdr in wctype.h
8829 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8830 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8831 echo "configure:8832: checking for $ac_hdr" >&5
8832 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8833 echo $ac_n "(cached) $ac_c" 1>&6
8834 else
8835 cat > conftest.$ac_ext <<EOF
8836 #line 8837 "configure"
8837 #include "confdefs.h"
8838 #include <$ac_hdr>
8840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8841 { (eval echo configure:8842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8843 if test -z "$ac_err"; then
8844 rm -rf conftest*
8845 eval "ac_cv_header_$ac_safe=yes"
8846 else
8847 echo "$ac_err" >&5
8848 echo "configure: failed program was:" >&5
8849 cat conftest.$ac_ext >&5
8850 rm -rf conftest*
8851 eval "ac_cv_header_$ac_safe=no"
8853 rm -f conftest*
8855 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8856 echo "$ac_t""yes" 1>&6
8857 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8858 cat >> confdefs.h <<EOF
8859 #define $ac_tr_hdr 1
8861 ac_has_wctype_h=yes
8862 else
8863 echo "$ac_t""no" 1>&6
8864 ac_has_wctype_h=no
8866 done
8869 if test x"$ac_has_wchar_h" = xyes &&
8870 test x"$ac_has_wctype_h" = xyes &&
8871 test x"$enable_c_mbchar" != xno; then
8873 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8874 echo "configure:8875: checking for WCHAR_MIN and WCHAR_MAX" >&5
8875 cat > conftest.$ac_ext <<EOF
8876 #line 8877 "configure"
8877 #include "confdefs.h"
8878 #include <wchar.h>
8879 int main() {
8880 int i = WCHAR_MIN; int j = WCHAR_MAX;
8881 ; return 0; }
8883 if { (eval echo configure:8884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8884 rm -rf conftest*
8885 has_wchar_minmax=yes
8886 else
8887 echo "configure: failed program was:" >&5
8888 cat conftest.$ac_ext >&5
8889 rm -rf conftest*
8890 has_wchar_minmax=no
8892 rm -f conftest*
8893 echo "$ac_t""$has_wchar_minmax" 1>&6
8895 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8896 echo "configure:8897: checking for WEOF" >&5
8897 cat > conftest.$ac_ext <<EOF
8898 #line 8899 "configure"
8899 #include "confdefs.h"
8901 #include <wchar.h>
8902 #include <stddef.h>
8903 int main() {
8904 wint_t i = WEOF;
8905 ; return 0; }
8907 if { (eval echo configure:8908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8908 rm -rf conftest*
8909 has_weof=yes
8910 else
8911 echo "configure: failed program was:" >&5
8912 cat conftest.$ac_ext >&5
8913 rm -rf conftest*
8914 has_weof=no
8916 rm -f conftest*
8917 echo "$ac_t""$has_weof" 1>&6
8919 ac_wfuncs=yes
8920 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8923 echo "configure:8924: checking for $ac_func" >&5
8924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8925 echo $ac_n "(cached) $ac_c" 1>&6
8926 else
8927 cat > conftest.$ac_ext <<EOF
8928 #line 8929 "configure"
8929 #include "confdefs.h"
8930 /* System header to define __stub macros and hopefully few prototypes,
8931 which can conflict with char $ac_func(); below. */
8932 #include <assert.h>
8933 /* Override any gcc2 internal prototype to avoid an error. */
8934 /* We use char because int might match the return type of a gcc2
8935 builtin and then its argument prototype would still apply. */
8936 char $ac_func();
8938 int main() {
8940 /* The GNU C library defines this for functions which it implements
8941 to always fail with ENOSYS. Some functions are actually named
8942 something starting with __ and the normal name is an alias. */
8943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8944 choke me
8945 #else
8946 $ac_func();
8947 #endif
8949 ; return 0; }
8951 if { (eval echo configure:8952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8952 rm -rf conftest*
8953 eval "ac_cv_func_$ac_func=yes"
8954 else
8955 echo "configure: failed program was:" >&5
8956 cat conftest.$ac_ext >&5
8957 rm -rf conftest*
8958 eval "ac_cv_func_$ac_func=no"
8960 rm -f conftest*
8963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8964 echo "$ac_t""yes" 1>&6
8965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8966 cat >> confdefs.h <<EOF
8967 #define $ac_tr_func 1
8970 else
8971 echo "$ac_t""no" 1>&6
8973 ac_wfuncs=no
8975 done
8978 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8979 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8980 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8981 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8982 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8983 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8986 echo "configure:8987: checking for $ac_func" >&5
8987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8988 echo $ac_n "(cached) $ac_c" 1>&6
8989 else
8990 cat > conftest.$ac_ext <<EOF
8991 #line 8992 "configure"
8992 #include "confdefs.h"
8993 /* System header to define __stub macros and hopefully few prototypes,
8994 which can conflict with char $ac_func(); below. */
8995 #include <assert.h>
8996 /* Override any gcc2 internal prototype to avoid an error. */
8997 /* We use char because int might match the return type of a gcc2
8998 builtin and then its argument prototype would still apply. */
8999 char $ac_func();
9001 int main() {
9003 /* The GNU C library defines this for functions which it implements
9004 to always fail with ENOSYS. Some functions are actually named
9005 something starting with __ and the normal name is an alias. */
9006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9007 choke me
9008 #else
9009 $ac_func();
9010 #endif
9012 ; return 0; }
9014 if { (eval echo configure:9015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9015 rm -rf conftest*
9016 eval "ac_cv_func_$ac_func=yes"
9017 else
9018 echo "configure: failed program was:" >&5
9019 cat conftest.$ac_ext >&5
9020 rm -rf conftest*
9021 eval "ac_cv_func_$ac_func=no"
9023 rm -f conftest*
9026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9027 echo "$ac_t""yes" 1>&6
9028 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9029 cat >> confdefs.h <<EOF
9030 #define $ac_tr_func 1
9033 else
9034 echo "$ac_t""no" 1>&6
9036 ac_wfuncs=no
9038 done
9041 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9042 echo "configure:9043: checking for ISO C99 wchar_t support" >&5
9043 if test x"$has_weof" = xyes &&
9044 test x"$has_wchar_minmax" = xyes &&
9045 test x"$ac_wfuncs" = xyes; then
9046 ac_isoC99_wchar_t=yes
9047 else
9048 ac_isoC99_wchar_t=no
9050 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9052 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9053 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9054 echo "configure:9055: checking for iconv.h" >&5
9055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9056 echo $ac_n "(cached) $ac_c" 1>&6
9057 else
9058 cat > conftest.$ac_ext <<EOF
9059 #line 9060 "configure"
9060 #include "confdefs.h"
9061 #include <iconv.h>
9063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9064 { (eval echo configure:9065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9066 if test -z "$ac_err"; then
9067 rm -rf conftest*
9068 eval "ac_cv_header_$ac_safe=yes"
9069 else
9070 echo "$ac_err" >&5
9071 echo "configure: failed program was:" >&5
9072 cat conftest.$ac_ext >&5
9073 rm -rf conftest*
9074 eval "ac_cv_header_$ac_safe=no"
9076 rm -f conftest*
9078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9079 echo "$ac_t""yes" 1>&6
9080 ac_has_iconv_h=yes
9081 else
9082 echo "$ac_t""no" 1>&6
9083 ac_has_iconv_h=no
9086 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9087 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9088 echo "configure:9089: checking for langinfo.h" >&5
9089 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9090 echo $ac_n "(cached) $ac_c" 1>&6
9091 else
9092 cat > conftest.$ac_ext <<EOF
9093 #line 9094 "configure"
9094 #include "confdefs.h"
9095 #include <langinfo.h>
9097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9098 { (eval echo configure:9099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9100 if test -z "$ac_err"; then
9101 rm -rf conftest*
9102 eval "ac_cv_header_$ac_safe=yes"
9103 else
9104 echo "$ac_err" >&5
9105 echo "configure: failed program was:" >&5
9106 cat conftest.$ac_ext >&5
9107 rm -rf conftest*
9108 eval "ac_cv_header_$ac_safe=no"
9110 rm -f conftest*
9112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9113 echo "$ac_t""yes" 1>&6
9114 ac_has_langinfo_h=yes
9115 else
9116 echo "$ac_t""no" 1>&6
9117 ac_has_langinfo_h=no
9121 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9122 echo "configure:9123: checking for iconv in -liconv" >&5
9123 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9125 echo $ac_n "(cached) $ac_c" 1>&6
9126 else
9127 ac_save_LIBS="$LIBS"
9128 LIBS="-liconv $LIBS"
9129 cat > conftest.$ac_ext <<EOF
9130 #line 9131 "configure"
9131 #include "confdefs.h"
9132 /* Override any gcc2 internal prototype to avoid an error. */
9133 /* We use char because int might match the return type of a gcc2
9134 builtin and then its argument prototype would still apply. */
9135 char iconv();
9137 int main() {
9138 iconv()
9139 ; return 0; }
9141 if { (eval echo configure:9142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9142 rm -rf conftest*
9143 eval "ac_cv_lib_$ac_lib_var=yes"
9144 else
9145 echo "configure: failed program was:" >&5
9146 cat conftest.$ac_ext >&5
9147 rm -rf conftest*
9148 eval "ac_cv_lib_$ac_lib_var=no"
9150 rm -f conftest*
9151 LIBS="$ac_save_LIBS"
9154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9155 echo "$ac_t""yes" 1>&6
9156 libiconv="-liconv"
9157 else
9158 echo "$ac_t""no" 1>&6
9161 ac_save_LIBS="$LIBS"
9162 LIBS="$LIBS $libiconv"
9164 for ac_func in iconv_open iconv_close iconv nl_langinfo
9166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9167 echo "configure:9168: checking for $ac_func" >&5
9168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9169 echo $ac_n "(cached) $ac_c" 1>&6
9170 else
9171 cat > conftest.$ac_ext <<EOF
9172 #line 9173 "configure"
9173 #include "confdefs.h"
9174 /* System header to define __stub macros and hopefully few prototypes,
9175 which can conflict with char $ac_func(); below. */
9176 #include <assert.h>
9177 /* Override any gcc2 internal prototype to avoid an error. */
9178 /* We use char because int might match the return type of a gcc2
9179 builtin and then its argument prototype would still apply. */
9180 char $ac_func();
9182 int main() {
9184 /* The GNU C library defines this for functions which it implements
9185 to always fail with ENOSYS. Some functions are actually named
9186 something starting with __ and the normal name is an alias. */
9187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9188 choke me
9189 #else
9190 $ac_func();
9191 #endif
9193 ; return 0; }
9195 if { (eval echo configure:9196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9196 rm -rf conftest*
9197 eval "ac_cv_func_$ac_func=yes"
9198 else
9199 echo "configure: failed program was:" >&5
9200 cat conftest.$ac_ext >&5
9201 rm -rf conftest*
9202 eval "ac_cv_func_$ac_func=no"
9204 rm -f conftest*
9207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9208 echo "$ac_t""yes" 1>&6
9209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9210 cat >> confdefs.h <<EOF
9211 #define $ac_tr_func 1
9214 ac_XPG2funcs=yes
9215 else
9216 echo "$ac_t""no" 1>&6
9217 ac_XPG2funcs=no
9219 done
9222 LIBS="$ac_save_LIBS"
9224 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9225 echo "configure:9226: checking for XPG2 wchar_t support" >&5
9226 if test x"$ac_has_iconv_h" = xyes &&
9227 test x"$ac_has_langinfo_h" = xyes &&
9228 test x"$ac_XPG2funcs" = xyes; then
9229 ac_XPG2_wchar_t=yes
9230 else
9231 ac_XPG2_wchar_t=no
9233 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9235 if test x"$ac_isoC99_wchar_t" = xyes &&
9236 test x"$ac_XPG2_wchar_t" = xyes; then
9237 cat >> confdefs.h <<\EOF
9238 #define _GLIBCPP_USE_WCHAR_T 1
9241 enable_wchar_t=yes
9244 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9245 echo "configure:9246: checking for enabled wchar_t specializations" >&5
9246 echo "$ac_t""$enable_wchar_t" 1>&6
9249 if test "$enable_wchar_t" = yes; then
9250 GLIBCPP_TEST_WCHAR_T_TRUE=
9251 GLIBCPP_TEST_WCHAR_T_FALSE='#'
9252 else
9253 GLIBCPP_TEST_WCHAR_T_TRUE='#'
9254 GLIBCPP_TEST_WCHAR_T_FALSE=
9257 os_include_dir="os/mingw32"
9259 *-windiss*)
9260 os_include_dir="os/windiss"
9262 *-qnx6.[12]*)
9263 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9266 # If we're not using GNU ld, then there's no point in even trying these
9267 # tests. Check for that first. We should have already tested for gld
9268 # by now (in libtool), but require it now just to be safe...
9269 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9270 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9273 # The name set by libtool depends on the version of libtool. Shame on us
9274 # for depending on an impl detail, but c'est la vie. Older versions used
9275 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9276 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9277 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9278 # set (hence we're using an older libtool), then set it.
9279 if test x${with_gnu_ld+set} != xset; then
9280 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9281 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9282 with_gnu_ld=no
9283 else
9284 with_gnu_ld=$ac_cv_prog_gnu_ld
9288 # Start by getting the version number. I think the libtool test already
9289 # does some of this, but throws away the result.
9291 ldver=`$LD --version 2>/dev/null | head -1 | \
9292 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9294 glibcpp_gnu_ld_version=`echo $ldver | \
9295 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9297 # Set --gc-sections.
9298 if test "$with_gnu_ld" = "notbroken"; then
9299 # GNU ld it is! Joy and bunny rabbits!
9301 # All these tests are for C++; save the language and the compiler flags.
9302 # Need to do this so that g++ won't try to link in libstdc++
9303 ac_test_CFLAGS="${CFLAGS+set}"
9304 ac_save_CFLAGS="$CFLAGS"
9305 CFLAGS='-x c++ -Wl,--gc-sections'
9307 # Check for -Wl,--gc-sections
9308 # XXX This test is broken at the moment, as symbols required for
9309 # linking are now in libsupc++ (not built yet.....). In addition,
9310 # this test has cored on solaris in the past. In addition,
9311 # --gc-sections doesn't really work at the moment (keeps on discarding
9312 # used sections, first .eh_frame and now some of the glibc sections for
9313 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9314 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9315 echo "configure:9316: checking for ld that supports -Wl,--gc-sections" >&5
9316 if test "$cross_compiling" = yes; then
9317 ac_sectionLDflags=yes
9318 else
9319 cat > conftest.$ac_ext <<EOF
9320 #line 9321 "configure"
9321 #include "confdefs.h"
9323 int main(void)
9325 try { throw 1; }
9326 catch (...) { };
9327 return 0;
9331 if { (eval echo configure:9332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9332 then
9333 ac_sectionLDflags=yes
9334 else
9335 echo "configure: failed program was:" >&5
9336 cat conftest.$ac_ext >&5
9337 rm -fr conftest*
9338 ac_sectionLDflags=no
9340 rm -fr conftest*
9343 if test "$ac_test_CFLAGS" = set; then
9344 CFLAGS="$ac_save_CFLAGS"
9345 else
9346 # this is the suspicious part
9347 CFLAGS=''
9349 if test "$ac_sectionLDflags" = "yes"; then
9350 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9352 echo "$ac_t""$ac_sectionLDflags" 1>&6
9355 # Set linker optimization flags.
9356 if test x"$with_gnu_ld" = x"yes"; then
9357 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9364 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9365 echo "configure:9366: checking for main in -lm" >&5
9366 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9368 echo $ac_n "(cached) $ac_c" 1>&6
9369 else
9370 ac_save_LIBS="$LIBS"
9371 LIBS="-lm $LIBS"
9372 cat > conftest.$ac_ext <<EOF
9373 #line 9374 "configure"
9374 #include "confdefs.h"
9376 int main() {
9377 main()
9378 ; return 0; }
9380 if { (eval echo configure:9381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9381 rm -rf conftest*
9382 eval "ac_cv_lib_$ac_lib_var=yes"
9383 else
9384 echo "configure: failed program was:" >&5
9385 cat conftest.$ac_ext >&5
9386 rm -rf conftest*
9387 eval "ac_cv_lib_$ac_lib_var=no"
9389 rm -f conftest*
9390 LIBS="$ac_save_LIBS"
9393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9394 echo "$ac_t""yes" 1>&6
9395 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9396 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9397 cat >> confdefs.h <<EOF
9398 #define $ac_tr_lib 1
9401 LIBS="-lm $LIBS"
9403 else
9404 echo "$ac_t""no" 1>&6
9407 for ac_func in nan copysignf
9409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9410 echo "configure:9411: checking for $ac_func" >&5
9411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9412 echo $ac_n "(cached) $ac_c" 1>&6
9413 else
9414 cat > conftest.$ac_ext <<EOF
9415 #line 9416 "configure"
9416 #include "confdefs.h"
9417 /* System header to define __stub macros and hopefully few prototypes,
9418 which can conflict with char $ac_func(); below. */
9419 #include <assert.h>
9420 /* Override any gcc2 internal prototype to avoid an error. */
9421 /* We use char because int might match the return type of a gcc2
9422 builtin and then its argument prototype would still apply. */
9423 char $ac_func();
9425 int main() {
9427 /* The GNU C library defines this for functions which it implements
9428 to always fail with ENOSYS. Some functions are actually named
9429 something starting with __ and the normal name is an alias. */
9430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9431 choke me
9432 #else
9433 $ac_func();
9434 #endif
9436 ; return 0; }
9438 if { (eval echo configure:9439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9439 rm -rf conftest*
9440 eval "ac_cv_func_$ac_func=yes"
9441 else
9442 echo "configure: failed program was:" >&5
9443 cat conftest.$ac_ext >&5
9444 rm -rf conftest*
9445 eval "ac_cv_func_$ac_func=no"
9447 rm -f conftest*
9450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9451 echo "$ac_t""yes" 1>&6
9452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9453 cat >> confdefs.h <<EOF
9454 #define $ac_tr_func 1
9457 else
9458 echo "$ac_t""no" 1>&6
9459 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9461 done
9464 for ac_func in __signbit
9466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9467 echo "configure:9468: checking for $ac_func" >&5
9468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9469 echo $ac_n "(cached) $ac_c" 1>&6
9470 else
9471 cat > conftest.$ac_ext <<EOF
9472 #line 9473 "configure"
9473 #include "confdefs.h"
9474 /* System header to define __stub macros and hopefully few prototypes,
9475 which can conflict with char $ac_func(); below. */
9476 #include <assert.h>
9477 /* Override any gcc2 internal prototype to avoid an error. */
9478 /* We use char because int might match the return type of a gcc2
9479 builtin and then its argument prototype would still apply. */
9480 char $ac_func();
9482 int main() {
9484 /* The GNU C library defines this for functions which it implements
9485 to always fail with ENOSYS. Some functions are actually named
9486 something starting with __ and the normal name is an alias. */
9487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9488 choke me
9489 #else
9490 $ac_func();
9491 #endif
9493 ; return 0; }
9495 if { (eval echo configure:9496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9496 rm -rf conftest*
9497 eval "ac_cv_func_$ac_func=yes"
9498 else
9499 echo "configure: failed program was:" >&5
9500 cat conftest.$ac_ext >&5
9501 rm -rf conftest*
9502 eval "ac_cv_func_$ac_func=no"
9504 rm -f conftest*
9507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9508 echo "$ac_t""yes" 1>&6
9509 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9510 cat >> confdefs.h <<EOF
9511 #define $ac_tr_func 1
9514 else
9515 echo "$ac_t""no" 1>&6
9516 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9518 done
9520 for ac_func in __signbitf
9522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9523 echo "configure:9524: checking for $ac_func" >&5
9524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9525 echo $ac_n "(cached) $ac_c" 1>&6
9526 else
9527 cat > conftest.$ac_ext <<EOF
9528 #line 9529 "configure"
9529 #include "confdefs.h"
9530 /* System header to define __stub macros and hopefully few prototypes,
9531 which can conflict with char $ac_func(); below. */
9532 #include <assert.h>
9533 /* Override any gcc2 internal prototype to avoid an error. */
9534 /* We use char because int might match the return type of a gcc2
9535 builtin and then its argument prototype would still apply. */
9536 char $ac_func();
9538 int main() {
9540 /* The GNU C library defines this for functions which it implements
9541 to always fail with ENOSYS. Some functions are actually named
9542 something starting with __ and the normal name is an alias. */
9543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9544 choke me
9545 #else
9546 $ac_func();
9547 #endif
9549 ; return 0; }
9551 if { (eval echo configure:9552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9552 rm -rf conftest*
9553 eval "ac_cv_func_$ac_func=yes"
9554 else
9555 echo "configure: failed program was:" >&5
9556 cat conftest.$ac_ext >&5
9557 rm -rf conftest*
9558 eval "ac_cv_func_$ac_func=no"
9560 rm -f conftest*
9563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9564 echo "$ac_t""yes" 1>&6
9565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9566 cat >> confdefs.h <<EOF
9567 #define $ac_tr_func 1
9570 else
9571 echo "$ac_t""no" 1>&6
9572 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9574 done
9577 if test x$ac_cv_func_copysignl = x"yes"; then
9578 for ac_func in __signbitl
9580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9581 echo "configure:9582: checking for $ac_func" >&5
9582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9583 echo $ac_n "(cached) $ac_c" 1>&6
9584 else
9585 cat > conftest.$ac_ext <<EOF
9586 #line 9587 "configure"
9587 #include "confdefs.h"
9588 /* System header to define __stub macros and hopefully few prototypes,
9589 which can conflict with char $ac_func(); below. */
9590 #include <assert.h>
9591 /* Override any gcc2 internal prototype to avoid an error. */
9592 /* We use char because int might match the return type of a gcc2
9593 builtin and then its argument prototype would still apply. */
9594 char $ac_func();
9596 int main() {
9598 /* The GNU C library defines this for functions which it implements
9599 to always fail with ENOSYS. Some functions are actually named
9600 something starting with __ and the normal name is an alias. */
9601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9602 choke me
9603 #else
9604 $ac_func();
9605 #endif
9607 ; return 0; }
9609 if { (eval echo configure:9610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9610 rm -rf conftest*
9611 eval "ac_cv_func_$ac_func=yes"
9612 else
9613 echo "configure: failed program was:" >&5
9614 cat conftest.$ac_ext >&5
9615 rm -rf conftest*
9616 eval "ac_cv_func_$ac_func=no"
9618 rm -f conftest*
9621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9622 echo "$ac_t""yes" 1>&6
9623 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9624 cat >> confdefs.h <<EOF
9625 #define $ac_tr_func 1
9628 else
9629 echo "$ac_t""no" 1>&6
9630 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9632 done
9636 if test -n "$LIBMATHOBJS"; then
9637 need_libmath=yes
9642 if test "$need_libmath" = yes; then
9643 GLIBCPP_BUILD_LIBMATH_TRUE=
9644 GLIBCPP_BUILD_LIBMATH_FALSE='#'
9645 else
9646 GLIBCPP_BUILD_LIBMATH_TRUE='#'
9647 GLIBCPP_BUILD_LIBMATH_FALSE=
9651 enable_wchar_t=no
9653 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9654 echo "configure:9655: checking for mbstate_t" >&5
9655 cat > conftest.$ac_ext <<EOF
9656 #line 9657 "configure"
9657 #include "confdefs.h"
9658 #include <wchar.h>
9659 int main() {
9660 mbstate_t teststate;
9661 ; return 0; }
9663 if { (eval echo configure:9664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9664 rm -rf conftest*
9665 have_mbstate_t=yes
9666 else
9667 echo "configure: failed program was:" >&5
9668 cat conftest.$ac_ext >&5
9669 rm -rf conftest*
9670 have_mbstate_t=no
9672 rm -f conftest*
9673 echo "$ac_t""$have_mbstate_t" 1>&6
9674 if test x"$have_mbstate_t" = xyes; then
9675 cat >> confdefs.h <<\EOF
9676 #define HAVE_MBSTATE_T 1
9681 for ac_hdr in wchar.h
9683 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9685 echo "configure:9686: checking for $ac_hdr" >&5
9686 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9687 echo $ac_n "(cached) $ac_c" 1>&6
9688 else
9689 cat > conftest.$ac_ext <<EOF
9690 #line 9691 "configure"
9691 #include "confdefs.h"
9692 #include <$ac_hdr>
9694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9695 { (eval echo configure:9696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9697 if test -z "$ac_err"; then
9698 rm -rf conftest*
9699 eval "ac_cv_header_$ac_safe=yes"
9700 else
9701 echo "$ac_err" >&5
9702 echo "configure: failed program was:" >&5
9703 cat conftest.$ac_ext >&5
9704 rm -rf conftest*
9705 eval "ac_cv_header_$ac_safe=no"
9707 rm -f conftest*
9709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9710 echo "$ac_t""yes" 1>&6
9711 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9712 cat >> confdefs.h <<EOF
9713 #define $ac_tr_hdr 1
9715 ac_has_wchar_h=yes
9716 else
9717 echo "$ac_t""no" 1>&6
9718 ac_has_wchar_h=no
9720 done
9722 for ac_hdr in wctype.h
9724 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9725 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9726 echo "configure:9727: checking for $ac_hdr" >&5
9727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9728 echo $ac_n "(cached) $ac_c" 1>&6
9729 else
9730 cat > conftest.$ac_ext <<EOF
9731 #line 9732 "configure"
9732 #include "confdefs.h"
9733 #include <$ac_hdr>
9735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9736 { (eval echo configure:9737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9738 if test -z "$ac_err"; then
9739 rm -rf conftest*
9740 eval "ac_cv_header_$ac_safe=yes"
9741 else
9742 echo "$ac_err" >&5
9743 echo "configure: failed program was:" >&5
9744 cat conftest.$ac_ext >&5
9745 rm -rf conftest*
9746 eval "ac_cv_header_$ac_safe=no"
9748 rm -f conftest*
9750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9751 echo "$ac_t""yes" 1>&6
9752 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9753 cat >> confdefs.h <<EOF
9754 #define $ac_tr_hdr 1
9756 ac_has_wctype_h=yes
9757 else
9758 echo "$ac_t""no" 1>&6
9759 ac_has_wctype_h=no
9761 done
9764 if test x"$ac_has_wchar_h" = xyes &&
9765 test x"$ac_has_wctype_h" = xyes &&
9766 test x"$enable_c_mbchar" != xno; then
9768 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9769 echo "configure:9770: checking for WCHAR_MIN and WCHAR_MAX" >&5
9770 cat > conftest.$ac_ext <<EOF
9771 #line 9772 "configure"
9772 #include "confdefs.h"
9773 #include <wchar.h>
9774 int main() {
9775 int i = WCHAR_MIN; int j = WCHAR_MAX;
9776 ; return 0; }
9778 if { (eval echo configure:9779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9779 rm -rf conftest*
9780 has_wchar_minmax=yes
9781 else
9782 echo "configure: failed program was:" >&5
9783 cat conftest.$ac_ext >&5
9784 rm -rf conftest*
9785 has_wchar_minmax=no
9787 rm -f conftest*
9788 echo "$ac_t""$has_wchar_minmax" 1>&6
9790 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9791 echo "configure:9792: checking for WEOF" >&5
9792 cat > conftest.$ac_ext <<EOF
9793 #line 9794 "configure"
9794 #include "confdefs.h"
9796 #include <wchar.h>
9797 #include <stddef.h>
9798 int main() {
9799 wint_t i = WEOF;
9800 ; return 0; }
9802 if { (eval echo configure:9803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9803 rm -rf conftest*
9804 has_weof=yes
9805 else
9806 echo "configure: failed program was:" >&5
9807 cat conftest.$ac_ext >&5
9808 rm -rf conftest*
9809 has_weof=no
9811 rm -f conftest*
9812 echo "$ac_t""$has_weof" 1>&6
9814 ac_wfuncs=yes
9815 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9818 echo "configure:9819: checking for $ac_func" >&5
9819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9820 echo $ac_n "(cached) $ac_c" 1>&6
9821 else
9822 cat > conftest.$ac_ext <<EOF
9823 #line 9824 "configure"
9824 #include "confdefs.h"
9825 /* System header to define __stub macros and hopefully few prototypes,
9826 which can conflict with char $ac_func(); below. */
9827 #include <assert.h>
9828 /* Override any gcc2 internal prototype to avoid an error. */
9829 /* We use char because int might match the return type of a gcc2
9830 builtin and then its argument prototype would still apply. */
9831 char $ac_func();
9833 int main() {
9835 /* The GNU C library defines this for functions which it implements
9836 to always fail with ENOSYS. Some functions are actually named
9837 something starting with __ and the normal name is an alias. */
9838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9839 choke me
9840 #else
9841 $ac_func();
9842 #endif
9844 ; return 0; }
9846 if { (eval echo configure:9847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9847 rm -rf conftest*
9848 eval "ac_cv_func_$ac_func=yes"
9849 else
9850 echo "configure: failed program was:" >&5
9851 cat conftest.$ac_ext >&5
9852 rm -rf conftest*
9853 eval "ac_cv_func_$ac_func=no"
9855 rm -f conftest*
9858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9859 echo "$ac_t""yes" 1>&6
9860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9861 cat >> confdefs.h <<EOF
9862 #define $ac_tr_func 1
9865 else
9866 echo "$ac_t""no" 1>&6
9868 ac_wfuncs=no
9870 done
9873 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9874 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9875 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9876 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9877 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9878 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9881 echo "configure:9882: checking for $ac_func" >&5
9882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9883 echo $ac_n "(cached) $ac_c" 1>&6
9884 else
9885 cat > conftest.$ac_ext <<EOF
9886 #line 9887 "configure"
9887 #include "confdefs.h"
9888 /* System header to define __stub macros and hopefully few prototypes,
9889 which can conflict with char $ac_func(); below. */
9890 #include <assert.h>
9891 /* Override any gcc2 internal prototype to avoid an error. */
9892 /* We use char because int might match the return type of a gcc2
9893 builtin and then its argument prototype would still apply. */
9894 char $ac_func();
9896 int main() {
9898 /* The GNU C library defines this for functions which it implements
9899 to always fail with ENOSYS. Some functions are actually named
9900 something starting with __ and the normal name is an alias. */
9901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9902 choke me
9903 #else
9904 $ac_func();
9905 #endif
9907 ; return 0; }
9909 if { (eval echo configure:9910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9910 rm -rf conftest*
9911 eval "ac_cv_func_$ac_func=yes"
9912 else
9913 echo "configure: failed program was:" >&5
9914 cat conftest.$ac_ext >&5
9915 rm -rf conftest*
9916 eval "ac_cv_func_$ac_func=no"
9918 rm -f conftest*
9921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9922 echo "$ac_t""yes" 1>&6
9923 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9924 cat >> confdefs.h <<EOF
9925 #define $ac_tr_func 1
9928 else
9929 echo "$ac_t""no" 1>&6
9931 ac_wfuncs=no
9933 done
9936 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9937 echo "configure:9938: checking for ISO C99 wchar_t support" >&5
9938 if test x"$has_weof" = xyes &&
9939 test x"$has_wchar_minmax" = xyes &&
9940 test x"$ac_wfuncs" = xyes; then
9941 ac_isoC99_wchar_t=yes
9942 else
9943 ac_isoC99_wchar_t=no
9945 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9947 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9948 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9949 echo "configure:9950: checking for iconv.h" >&5
9950 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9951 echo $ac_n "(cached) $ac_c" 1>&6
9952 else
9953 cat > conftest.$ac_ext <<EOF
9954 #line 9955 "configure"
9955 #include "confdefs.h"
9956 #include <iconv.h>
9958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9959 { (eval echo configure:9960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9961 if test -z "$ac_err"; then
9962 rm -rf conftest*
9963 eval "ac_cv_header_$ac_safe=yes"
9964 else
9965 echo "$ac_err" >&5
9966 echo "configure: failed program was:" >&5
9967 cat conftest.$ac_ext >&5
9968 rm -rf conftest*
9969 eval "ac_cv_header_$ac_safe=no"
9971 rm -f conftest*
9973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9974 echo "$ac_t""yes" 1>&6
9975 ac_has_iconv_h=yes
9976 else
9977 echo "$ac_t""no" 1>&6
9978 ac_has_iconv_h=no
9981 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9982 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9983 echo "configure:9984: checking for langinfo.h" >&5
9984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9985 echo $ac_n "(cached) $ac_c" 1>&6
9986 else
9987 cat > conftest.$ac_ext <<EOF
9988 #line 9989 "configure"
9989 #include "confdefs.h"
9990 #include <langinfo.h>
9992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9993 { (eval echo configure:9994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9995 if test -z "$ac_err"; then
9996 rm -rf conftest*
9997 eval "ac_cv_header_$ac_safe=yes"
9998 else
9999 echo "$ac_err" >&5
10000 echo "configure: failed program was:" >&5
10001 cat conftest.$ac_ext >&5
10002 rm -rf conftest*
10003 eval "ac_cv_header_$ac_safe=no"
10005 rm -f conftest*
10007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10008 echo "$ac_t""yes" 1>&6
10009 ac_has_langinfo_h=yes
10010 else
10011 echo "$ac_t""no" 1>&6
10012 ac_has_langinfo_h=no
10016 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
10017 echo "configure:10018: checking for iconv in -liconv" >&5
10018 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
10019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10020 echo $ac_n "(cached) $ac_c" 1>&6
10021 else
10022 ac_save_LIBS="$LIBS"
10023 LIBS="-liconv $LIBS"
10024 cat > conftest.$ac_ext <<EOF
10025 #line 10026 "configure"
10026 #include "confdefs.h"
10027 /* Override any gcc2 internal prototype to avoid an error. */
10028 /* We use char because int might match the return type of a gcc2
10029 builtin and then its argument prototype would still apply. */
10030 char iconv();
10032 int main() {
10033 iconv()
10034 ; return 0; }
10036 if { (eval echo configure:10037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10037 rm -rf conftest*
10038 eval "ac_cv_lib_$ac_lib_var=yes"
10039 else
10040 echo "configure: failed program was:" >&5
10041 cat conftest.$ac_ext >&5
10042 rm -rf conftest*
10043 eval "ac_cv_lib_$ac_lib_var=no"
10045 rm -f conftest*
10046 LIBS="$ac_save_LIBS"
10049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10050 echo "$ac_t""yes" 1>&6
10051 libiconv="-liconv"
10052 else
10053 echo "$ac_t""no" 1>&6
10056 ac_save_LIBS="$LIBS"
10057 LIBS="$LIBS $libiconv"
10059 for ac_func in iconv_open iconv_close iconv nl_langinfo
10061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10062 echo "configure:10063: checking for $ac_func" >&5
10063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10064 echo $ac_n "(cached) $ac_c" 1>&6
10065 else
10066 cat > conftest.$ac_ext <<EOF
10067 #line 10068 "configure"
10068 #include "confdefs.h"
10069 /* System header to define __stub macros and hopefully few prototypes,
10070 which can conflict with char $ac_func(); below. */
10071 #include <assert.h>
10072 /* Override any gcc2 internal prototype to avoid an error. */
10073 /* We use char because int might match the return type of a gcc2
10074 builtin and then its argument prototype would still apply. */
10075 char $ac_func();
10077 int main() {
10079 /* The GNU C library defines this for functions which it implements
10080 to always fail with ENOSYS. Some functions are actually named
10081 something starting with __ and the normal name is an alias. */
10082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10083 choke me
10084 #else
10085 $ac_func();
10086 #endif
10088 ; return 0; }
10090 if { (eval echo configure:10091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10091 rm -rf conftest*
10092 eval "ac_cv_func_$ac_func=yes"
10093 else
10094 echo "configure: failed program was:" >&5
10095 cat conftest.$ac_ext >&5
10096 rm -rf conftest*
10097 eval "ac_cv_func_$ac_func=no"
10099 rm -f conftest*
10102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10103 echo "$ac_t""yes" 1>&6
10104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10105 cat >> confdefs.h <<EOF
10106 #define $ac_tr_func 1
10109 ac_XPG2funcs=yes
10110 else
10111 echo "$ac_t""no" 1>&6
10112 ac_XPG2funcs=no
10114 done
10117 LIBS="$ac_save_LIBS"
10119 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
10120 echo "configure:10121: checking for XPG2 wchar_t support" >&5
10121 if test x"$ac_has_iconv_h" = xyes &&
10122 test x"$ac_has_langinfo_h" = xyes &&
10123 test x"$ac_XPG2funcs" = xyes; then
10124 ac_XPG2_wchar_t=yes
10125 else
10126 ac_XPG2_wchar_t=no
10128 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
10130 if test x"$ac_isoC99_wchar_t" = xyes &&
10131 test x"$ac_XPG2_wchar_t" = xyes; then
10132 cat >> confdefs.h <<\EOF
10133 #define _GLIBCPP_USE_WCHAR_T 1
10136 enable_wchar_t=yes
10139 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
10140 echo "configure:10141: checking for enabled wchar_t specializations" >&5
10141 echo "$ac_t""$enable_wchar_t" 1>&6
10144 if test "$enable_wchar_t" = yes; then
10145 GLIBCPP_TEST_WCHAR_T_TRUE=
10146 GLIBCPP_TEST_WCHAR_T_FALSE='#'
10147 else
10148 GLIBCPP_TEST_WCHAR_T_TRUE='#'
10149 GLIBCPP_TEST_WCHAR_T_FALSE=
10152 os_include_dir="os/qnx/qnx6.1"
10153 cat >> confdefs.h <<\EOF
10154 #define HAVE_COSF 1
10157 cat >> confdefs.h <<\EOF
10158 #define HAVE_COSL 1
10161 cat >> confdefs.h <<\EOF
10162 #define HAVE_COSHF 1
10165 cat >> confdefs.h <<\EOF
10166 #define HAVE_COSHL 1
10169 cat >> confdefs.h <<\EOF
10170 #define HAVE_LOGF 1
10173 cat >> confdefs.h <<\EOF
10174 #define HAVE_LOGL 1
10177 cat >> confdefs.h <<\EOF
10178 #define HAVE_LOG10F 1
10181 cat >> confdefs.h <<\EOF
10182 #define HAVE_LOG10L 1
10185 cat >> confdefs.h <<\EOF
10186 #define HAVE_SINF 1
10189 cat >> confdefs.h <<\EOF
10190 #define HAVE_SINL 1
10193 cat >> confdefs.h <<\EOF
10194 #define HAVE_SINHF 1
10197 cat >> confdefs.h <<\EOF
10198 #define HAVE_SINHL 1
10203 os_include_dir="os/newlib"
10204 cat >> confdefs.h <<\EOF
10205 #define HAVE_HYPOT 1
10209 esac
10211 case "$target" in
10212 *-mingw32*)
10214 *-windiss*)
10215 cat >> confdefs.h <<\EOF
10216 #define HAVE_ACOSF 1
10219 cat >> confdefs.h <<\EOF
10220 #define HAVE_ASINF 1
10223 cat >> confdefs.h <<\EOF
10224 #define HAVE_ATAN2F 1
10227 cat >> confdefs.h <<\EOF
10228 #define HAVE_ATANF 1
10231 cat >> confdefs.h <<\EOF
10232 #define HAVE_CEILF 1
10235 cat >> confdefs.h <<\EOF
10236 #define HAVE_COPYSIGN 1
10239 cat >> confdefs.h <<\EOF
10240 #define HAVE_COPYSIGNF 1
10243 cat >> confdefs.h <<\EOF
10244 #define HAVE_COSF 1
10247 cat >> confdefs.h <<\EOF
10248 #define HAVE_COSHF 1
10251 cat >> confdefs.h <<\EOF
10252 #define HAVE_EXPF 1
10255 cat >> confdefs.h <<\EOF
10256 #define HAVE_FABSF 1
10259 cat >> confdefs.h <<\EOF
10260 #define HAVE_FLOORF 1
10263 cat >> confdefs.h <<\EOF
10264 #define HAVE_FMODF 1
10267 cat >> confdefs.h <<\EOF
10268 #define HAVE_FREXPF 1
10271 cat >> confdefs.h <<\EOF
10272 #define HAVE_LDEXPF 1
10275 cat >> confdefs.h <<\EOF
10276 #define HAVE_LOG10F 1
10279 cat >> confdefs.h <<\EOF
10280 #define HAVE_LOGF 1
10283 cat >> confdefs.h <<\EOF
10284 #define HAVE_MODFF 1
10287 cat >> confdefs.h <<\EOF
10288 #define HAVE_POWF 1
10291 cat >> confdefs.h <<\EOF
10292 #define HAVE_SINF 1
10295 cat >> confdefs.h <<\EOF
10296 #define HAVE_SINHF 1
10299 cat >> confdefs.h <<\EOF
10300 #define HAVE_SQRTF 1
10303 cat >> confdefs.h <<\EOF
10304 #define HAVE_TANF 1
10307 cat >> confdefs.h <<\EOF
10308 #define HAVE_TANHF 1
10312 *-freebsd*)
10313 # Must replicate generic section since we don't have strtof or strtold.
10314 cat >> confdefs.h <<\EOF
10315 #define HAVE_MMAP 1
10318 cat >> confdefs.h <<\EOF
10319 #define HAVE_ACOSF 1
10322 cat >> confdefs.h <<\EOF
10323 #define HAVE_ASINF 1
10326 cat >> confdefs.h <<\EOF
10327 #define HAVE_ATAN2F 1
10330 cat >> confdefs.h <<\EOF
10331 #define HAVE_ATANF 1
10334 cat >> confdefs.h <<\EOF
10335 #define HAVE_CEILF 1
10338 cat >> confdefs.h <<\EOF
10339 #define HAVE_COPYSIGN 1
10342 cat >> confdefs.h <<\EOF
10343 #define HAVE_COPYSIGNF 1
10346 cat >> confdefs.h <<\EOF
10347 #define HAVE_COSF 1
10350 cat >> confdefs.h <<\EOF
10351 #define HAVE_COSHF 1
10354 cat >> confdefs.h <<\EOF
10355 #define HAVE_EXPF 1
10358 cat >> confdefs.h <<\EOF
10359 #define HAVE_FABSF 1
10362 cat >> confdefs.h <<\EOF
10363 #define HAVE_FLOORF 1
10366 cat >> confdefs.h <<\EOF
10367 #define HAVE_FMODF 1
10370 cat >> confdefs.h <<\EOF
10371 #define HAVE_FREXPF 1
10374 cat >> confdefs.h <<\EOF
10375 #define HAVE_LDEXPF 1
10378 cat >> confdefs.h <<\EOF
10379 #define HAVE_LOG10F 1
10382 cat >> confdefs.h <<\EOF
10383 #define HAVE_LOGF 1
10386 cat >> confdefs.h <<\EOF
10387 #define HAVE_MODFF 1
10390 cat >> confdefs.h <<\EOF
10391 #define HAVE_POWF 1
10394 cat >> confdefs.h <<\EOF
10395 #define HAVE_SINF 1
10398 cat >> confdefs.h <<\EOF
10399 #define HAVE_SINHF 1
10402 cat >> confdefs.h <<\EOF
10403 #define HAVE_SQRTF 1
10406 cat >> confdefs.h <<\EOF
10407 #define HAVE_TANF 1
10410 cat >> confdefs.h <<\EOF
10411 #define HAVE_TANHF 1
10416 # GLIBCPP_CHECK_STDLIB_SUPPORT
10417 cat >> confdefs.h <<\EOF
10418 #define HAVE_STRTOF 1
10421 cat >> confdefs.h <<\EOF
10422 #define HAVE_STRTOLD 1
10425 # AC_FUNC_MMAP
10426 cat >> confdefs.h <<\EOF
10427 #define HAVE_MMAP 1
10431 cat >> confdefs.h <<\EOF
10432 #define HAVE_ACOSF 1
10435 cat >> confdefs.h <<\EOF
10436 #define HAVE_ASINF 1
10439 cat >> confdefs.h <<\EOF
10440 #define HAVE_ATAN2F 1
10443 cat >> confdefs.h <<\EOF
10444 #define HAVE_ATANF 1
10447 cat >> confdefs.h <<\EOF
10448 #define HAVE_CEILF 1
10451 cat >> confdefs.h <<\EOF
10452 #define HAVE_COPYSIGN 1
10455 cat >> confdefs.h <<\EOF
10456 #define HAVE_COPYSIGNF 1
10459 cat >> confdefs.h <<\EOF
10460 #define HAVE_COSF 1
10463 cat >> confdefs.h <<\EOF
10464 #define HAVE_COSHF 1
10467 cat >> confdefs.h <<\EOF
10468 #define HAVE_EXPF 1
10471 cat >> confdefs.h <<\EOF
10472 #define HAVE_FABSF 1
10475 cat >> confdefs.h <<\EOF
10476 #define HAVE_FLOORF 1
10479 cat >> confdefs.h <<\EOF
10480 #define HAVE_FMODF 1
10483 cat >> confdefs.h <<\EOF
10484 #define HAVE_FREXPF 1
10487 cat >> confdefs.h <<\EOF
10488 #define HAVE_LDEXPF 1
10491 cat >> confdefs.h <<\EOF
10492 #define HAVE_LOG10F 1
10495 cat >> confdefs.h <<\EOF
10496 #define HAVE_LOGF 1
10499 cat >> confdefs.h <<\EOF
10500 #define HAVE_MODFF 1
10503 cat >> confdefs.h <<\EOF
10504 #define HAVE_POWF 1
10507 cat >> confdefs.h <<\EOF
10508 #define HAVE_SINF 1
10511 cat >> confdefs.h <<\EOF
10512 #define HAVE_SINHF 1
10515 cat >> confdefs.h <<\EOF
10516 #define HAVE_SQRTF 1
10519 cat >> confdefs.h <<\EOF
10520 #define HAVE_TANF 1
10523 cat >> confdefs.h <<\EOF
10524 #define HAVE_TANHF 1
10528 esac
10530 # At some point, we should differentiate between architectures
10531 # like x86, which have long double versions, and alpha/powerpc/etc.,
10532 # which don't. For the time being, punt.
10533 if test x"long_double_math_on_this_cpu" = x"yes"; then
10534 cat >> confdefs.h <<\EOF
10535 #define HAVE_ACOSL 1
10538 cat >> confdefs.h <<\EOF
10539 #define HAVE_ASINL 1
10542 cat >> confdefs.h <<\EOF
10543 #define HAVE_ATAN2L 1
10546 cat >> confdefs.h <<\EOF
10547 #define HAVE_ATANL 1
10550 cat >> confdefs.h <<\EOF
10551 #define HAVE_CEILL 1
10554 cat >> confdefs.h <<\EOF
10555 #define HAVE_COPYSIGNL 1
10558 cat >> confdefs.h <<\EOF
10559 #define HAVE_COSL 1
10562 cat >> confdefs.h <<\EOF
10563 #define HAVE_COSHL 1
10566 cat >> confdefs.h <<\EOF
10567 #define HAVE_EXPL 1
10570 cat >> confdefs.h <<\EOF
10571 #define HAVE_FABSL 1
10574 cat >> confdefs.h <<\EOF
10575 #define HAVE_FLOORL 1
10578 cat >> confdefs.h <<\EOF
10579 #define HAVE_FMODL 1
10582 cat >> confdefs.h <<\EOF
10583 #define HAVE_FREXPL 1
10586 cat >> confdefs.h <<\EOF
10587 #define HAVE_LDEXPL 1
10590 cat >> confdefs.h <<\EOF
10591 #define HAVE_LOG10L 1
10594 cat >> confdefs.h <<\EOF
10595 #define HAVE_LOGL 1
10598 cat >> confdefs.h <<\EOF
10599 #define HAVE_MODFL 1
10602 cat >> confdefs.h <<\EOF
10603 #define HAVE_POWL 1
10606 cat >> confdefs.h <<\EOF
10607 #define HAVE_SINCOSL 1
10610 cat >> confdefs.h <<\EOF
10611 #define HAVE_SINL 1
10614 cat >> confdefs.h <<\EOF
10615 #define HAVE_SINHL 1
10618 cat >> confdefs.h <<\EOF
10619 #define HAVE_SQRTL 1
10622 cat >> confdefs.h <<\EOF
10623 #define HAVE_TANL 1
10626 cat >> confdefs.h <<\EOF
10627 #define HAVE_TANHL 1
10632 else
10634 # We are being configured natively. We can do more elaborate tests
10635 # that include AC_TRY_COMPILE now, as the linker is assumed to be
10636 # working.
10637 GLIBCPP_IS_CROSS_COMPILING=0
10638 CANADIAN=no
10640 # Check for available headers.
10641 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10642 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
10643 sys/types.h
10645 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10646 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10647 echo "configure:10648: checking for $ac_hdr" >&5
10648 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10649 echo $ac_n "(cached) $ac_c" 1>&6
10650 else
10651 cat > conftest.$ac_ext <<EOF
10652 #line 10653 "configure"
10653 #include "confdefs.h"
10654 #include <$ac_hdr>
10656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10657 { (eval echo configure:10658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10659 if test -z "$ac_err"; then
10660 rm -rf conftest*
10661 eval "ac_cv_header_$ac_safe=yes"
10662 else
10663 echo "$ac_err" >&5
10664 echo "configure: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10666 rm -rf conftest*
10667 eval "ac_cv_header_$ac_safe=no"
10669 rm -f conftest*
10671 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10672 echo "$ac_t""yes" 1>&6
10673 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10674 cat >> confdefs.h <<EOF
10675 #define $ac_tr_hdr 1
10678 else
10679 echo "$ac_t""no" 1>&6
10681 done
10685 # All these tests are for C++; save the language and the compiler flags.
10686 # The CXXFLAGS thing is suspicious, but based on similar bits previously
10687 # found in GLIBCPP_CONFIGURE.
10689 ac_ext=C
10690 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10691 ac_cpp='$CXXCPP $CPPFLAGS'
10692 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10693 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10694 cross_compiling=$ac_cv_prog_cxx_cross
10696 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10697 ac_save_CXXFLAGS="$CXXFLAGS"
10699 # Check for maintainer-mode bits.
10700 if test x"$USE_MAINTAINER_MODE" = xno; then
10701 WERROR=''
10702 else
10703 WERROR='-Werror'
10706 # Check for -ffunction-sections -fdata-sections
10707 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10708 echo "configure:10709: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10709 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10710 cat > conftest.$ac_ext <<EOF
10711 #line 10712 "configure"
10712 #include "confdefs.h"
10714 int main() {
10715 int foo;
10717 ; return 0; }
10719 if { (eval echo configure:10720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10720 rm -rf conftest*
10721 ac_fdsections=yes
10722 else
10723 echo "configure: failed program was:" >&5
10724 cat conftest.$ac_ext >&5
10725 rm -rf conftest*
10726 ac_fdsections=no
10728 rm -f conftest*
10729 if test "$ac_test_CXXFLAGS" = set; then
10730 CXXFLAGS="$ac_save_CXXFLAGS"
10731 else
10732 # this is the suspicious part
10733 CXXFLAGS=''
10735 if test x"$ac_fdsections" = x"yes"; then
10736 SECTION_FLAGS='-ffunction-sections -fdata-sections'
10738 echo "$ac_t""$ac_fdsections" 1>&6
10740 ac_ext=c
10741 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10742 ac_cpp='$CPP $CPPFLAGS'
10743 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10744 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10745 cross_compiling=$ac_cv_prog_cc_cross
10751 # If we're not using GNU ld, then there's no point in even trying these
10752 # tests. Check for that first. We should have already tested for gld
10753 # by now (in libtool), but require it now just to be safe...
10754 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10755 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10758 # The name set by libtool depends on the version of libtool. Shame on us
10759 # for depending on an impl detail, but c'est la vie. Older versions used
10760 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10761 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10762 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
10763 # set (hence we're using an older libtool), then set it.
10764 if test x${with_gnu_ld+set} != xset; then
10765 if test x${ac_cv_prog_gnu_ld+set} != xset; then
10766 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
10767 with_gnu_ld=no
10768 else
10769 with_gnu_ld=$ac_cv_prog_gnu_ld
10773 # Start by getting the version number. I think the libtool test already
10774 # does some of this, but throws away the result.
10776 ldver=`$LD --version 2>/dev/null | head -1 | \
10777 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10779 glibcpp_gnu_ld_version=`echo $ldver | \
10780 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10782 # Set --gc-sections.
10783 if test "$with_gnu_ld" = "notbroken"; then
10784 # GNU ld it is! Joy and bunny rabbits!
10786 # All these tests are for C++; save the language and the compiler flags.
10787 # Need to do this so that g++ won't try to link in libstdc++
10788 ac_test_CFLAGS="${CFLAGS+set}"
10789 ac_save_CFLAGS="$CFLAGS"
10790 CFLAGS='-x c++ -Wl,--gc-sections'
10792 # Check for -Wl,--gc-sections
10793 # XXX This test is broken at the moment, as symbols required for
10794 # linking are now in libsupc++ (not built yet.....). In addition,
10795 # this test has cored on solaris in the past. In addition,
10796 # --gc-sections doesn't really work at the moment (keeps on discarding
10797 # used sections, first .eh_frame and now some of the glibc sections for
10798 # iconv). Bzzzzt. Thanks for playing, maybe next time.
10799 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10800 echo "configure:10801: checking for ld that supports -Wl,--gc-sections" >&5
10801 if test "$cross_compiling" = yes; then
10802 ac_sectionLDflags=yes
10803 else
10804 cat > conftest.$ac_ext <<EOF
10805 #line 10806 "configure"
10806 #include "confdefs.h"
10808 int main(void)
10810 try { throw 1; }
10811 catch (...) { };
10812 return 0;
10816 if { (eval echo configure:10817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10817 then
10818 ac_sectionLDflags=yes
10819 else
10820 echo "configure: failed program was:" >&5
10821 cat conftest.$ac_ext >&5
10822 rm -fr conftest*
10823 ac_sectionLDflags=no
10825 rm -fr conftest*
10828 if test "$ac_test_CFLAGS" = set; then
10829 CFLAGS="$ac_save_CFLAGS"
10830 else
10831 # this is the suspicious part
10832 CFLAGS=''
10834 if test "$ac_sectionLDflags" = "yes"; then
10835 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10837 echo "$ac_t""$ac_sectionLDflags" 1>&6
10840 # Set linker optimization flags.
10841 if test x"$with_gnu_ld" = x"yes"; then
10842 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10849 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10850 ac_save_CXXFLAGS="$CXXFLAGS"
10851 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10853 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10854 echo "configure:10855: checking for sin in -lm" >&5
10855 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10857 echo $ac_n "(cached) $ac_c" 1>&6
10858 else
10859 ac_save_LIBS="$LIBS"
10860 LIBS="-lm $LIBS"
10861 cat > conftest.$ac_ext <<EOF
10862 #line 10863 "configure"
10863 #include "confdefs.h"
10864 /* Override any gcc2 internal prototype to avoid an error. */
10865 /* We use char because int might match the return type of a gcc2
10866 builtin and then its argument prototype would still apply. */
10867 char sin();
10869 int main() {
10870 sin()
10871 ; return 0; }
10873 if { (eval echo configure:10874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10874 rm -rf conftest*
10875 eval "ac_cv_lib_$ac_lib_var=yes"
10876 else
10877 echo "configure: failed program was:" >&5
10878 cat conftest.$ac_ext >&5
10879 rm -rf conftest*
10880 eval "ac_cv_lib_$ac_lib_var=no"
10882 rm -f conftest*
10883 LIBS="$ac_save_LIBS"
10886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10887 echo "$ac_t""yes" 1>&6
10888 libm="-lm"
10889 else
10890 echo "$ac_t""no" 1>&6
10893 ac_save_LIBS="$LIBS"
10894 LIBS="$LIBS $libm"
10898 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10899 echo "configure:10900: checking for isinf declaration" >&5
10900 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10901 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10902 echo $ac_n "(cached) $ac_c" 1>&6
10903 else
10906 ac_ext=C
10907 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10908 ac_cpp='$CXXCPP $CPPFLAGS'
10909 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10910 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10911 cross_compiling=$ac_cv_prog_cxx_cross
10913 cat > conftest.$ac_ext <<EOF
10914 #line 10915 "configure"
10915 #include "confdefs.h"
10916 #include <math.h>
10917 #ifdef HAVE_IEEEFP_H
10918 #include <ieeefp.h>
10919 #endif
10921 int main() {
10922 isinf(0);
10923 ; return 0; }
10925 if { (eval echo configure:10926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10926 rm -rf conftest*
10927 glibcpp_cv_func_isinf_use=yes
10928 else
10929 echo "configure: failed program was:" >&5
10930 cat conftest.$ac_ext >&5
10931 rm -rf conftest*
10932 glibcpp_cv_func_isinf_use=no
10934 rm -f conftest*
10935 ac_ext=c
10936 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10937 ac_cpp='$CPP $CPPFLAGS'
10938 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10939 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10940 cross_compiling=$ac_cv_prog_cc_cross
10946 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10948 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10949 for ac_func in isinf
10951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10952 echo "configure:10953: checking for $ac_func" >&5
10953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10954 echo $ac_n "(cached) $ac_c" 1>&6
10955 else
10956 cat > conftest.$ac_ext <<EOF
10957 #line 10958 "configure"
10958 #include "confdefs.h"
10959 /* System header to define __stub macros and hopefully few prototypes,
10960 which can conflict with char $ac_func(); below. */
10961 #include <assert.h>
10962 /* Override any gcc2 internal prototype to avoid an error. */
10963 /* We use char because int might match the return type of a gcc2
10964 builtin and then its argument prototype would still apply. */
10965 char $ac_func();
10967 int main() {
10969 /* The GNU C library defines this for functions which it implements
10970 to always fail with ENOSYS. Some functions are actually named
10971 something starting with __ and the normal name is an alias. */
10972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10973 choke me
10974 #else
10975 $ac_func();
10976 #endif
10978 ; return 0; }
10980 if { (eval echo configure:10981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10981 rm -rf conftest*
10982 eval "ac_cv_func_$ac_func=yes"
10983 else
10984 echo "configure: failed program was:" >&5
10985 cat conftest.$ac_ext >&5
10986 rm -rf conftest*
10987 eval "ac_cv_func_$ac_func=no"
10989 rm -f conftest*
10992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10993 echo "$ac_t""yes" 1>&6
10994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10995 cat >> confdefs.h <<EOF
10996 #define $ac_tr_func 1
10999 else
11000 echo "$ac_t""no" 1>&6
11002 done
11004 else
11006 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
11007 echo "configure:11008: checking for _isinf declaration" >&5
11008 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
11009 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
11010 echo $ac_n "(cached) $ac_c" 1>&6
11011 else
11014 ac_ext=C
11015 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11016 ac_cpp='$CXXCPP $CPPFLAGS'
11017 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11018 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11019 cross_compiling=$ac_cv_prog_cxx_cross
11021 cat > conftest.$ac_ext <<EOF
11022 #line 11023 "configure"
11023 #include "confdefs.h"
11024 #include <math.h>
11025 #ifdef HAVE_IEEEFP_H
11026 #include <ieeefp.h>
11027 #endif
11029 int main() {
11030 _isinf(0);
11031 ; return 0; }
11033 if { (eval echo configure:11034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11034 rm -rf conftest*
11035 glibcpp_cv_func__isinf_use=yes
11036 else
11037 echo "configure: failed program was:" >&5
11038 cat conftest.$ac_ext >&5
11039 rm -rf conftest*
11040 glibcpp_cv_func__isinf_use=no
11042 rm -f conftest*
11043 ac_ext=c
11044 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11045 ac_cpp='$CPP $CPPFLAGS'
11046 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11047 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11048 cross_compiling=$ac_cv_prog_cc_cross
11054 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
11056 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
11057 for ac_func in _isinf
11059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11060 echo "configure:11061: checking for $ac_func" >&5
11061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11062 echo $ac_n "(cached) $ac_c" 1>&6
11063 else
11064 cat > conftest.$ac_ext <<EOF
11065 #line 11066 "configure"
11066 #include "confdefs.h"
11067 /* System header to define __stub macros and hopefully few prototypes,
11068 which can conflict with char $ac_func(); below. */
11069 #include <assert.h>
11070 /* Override any gcc2 internal prototype to avoid an error. */
11071 /* We use char because int might match the return type of a gcc2
11072 builtin and then its argument prototype would still apply. */
11073 char $ac_func();
11075 int main() {
11077 /* The GNU C library defines this for functions which it implements
11078 to always fail with ENOSYS. Some functions are actually named
11079 something starting with __ and the normal name is an alias. */
11080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11081 choke me
11082 #else
11083 $ac_func();
11084 #endif
11086 ; return 0; }
11088 if { (eval echo configure:11089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11089 rm -rf conftest*
11090 eval "ac_cv_func_$ac_func=yes"
11091 else
11092 echo "configure: failed program was:" >&5
11093 cat conftest.$ac_ext >&5
11094 rm -rf conftest*
11095 eval "ac_cv_func_$ac_func=no"
11097 rm -f conftest*
11100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11101 echo "$ac_t""yes" 1>&6
11102 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11103 cat >> confdefs.h <<EOF
11104 #define $ac_tr_func 1
11107 else
11108 echo "$ac_t""no" 1>&6
11110 done
11117 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
11118 echo "configure:11119: checking for isnan declaration" >&5
11119 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
11120 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
11121 echo $ac_n "(cached) $ac_c" 1>&6
11122 else
11125 ac_ext=C
11126 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11127 ac_cpp='$CXXCPP $CPPFLAGS'
11128 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11129 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11130 cross_compiling=$ac_cv_prog_cxx_cross
11132 cat > conftest.$ac_ext <<EOF
11133 #line 11134 "configure"
11134 #include "confdefs.h"
11135 #include <math.h>
11136 #ifdef HAVE_IEEEFP_H
11137 #include <ieeefp.h>
11138 #endif
11140 int main() {
11141 isnan(0);
11142 ; return 0; }
11144 if { (eval echo configure:11145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11145 rm -rf conftest*
11146 glibcpp_cv_func_isnan_use=yes
11147 else
11148 echo "configure: failed program was:" >&5
11149 cat conftest.$ac_ext >&5
11150 rm -rf conftest*
11151 glibcpp_cv_func_isnan_use=no
11153 rm -f conftest*
11154 ac_ext=c
11155 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11156 ac_cpp='$CPP $CPPFLAGS'
11157 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11158 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11159 cross_compiling=$ac_cv_prog_cc_cross
11165 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
11167 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
11168 for ac_func in isnan
11170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11171 echo "configure:11172: checking for $ac_func" >&5
11172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11173 echo $ac_n "(cached) $ac_c" 1>&6
11174 else
11175 cat > conftest.$ac_ext <<EOF
11176 #line 11177 "configure"
11177 #include "confdefs.h"
11178 /* System header to define __stub macros and hopefully few prototypes,
11179 which can conflict with char $ac_func(); below. */
11180 #include <assert.h>
11181 /* Override any gcc2 internal prototype to avoid an error. */
11182 /* We use char because int might match the return type of a gcc2
11183 builtin and then its argument prototype would still apply. */
11184 char $ac_func();
11186 int main() {
11188 /* The GNU C library defines this for functions which it implements
11189 to always fail with ENOSYS. Some functions are actually named
11190 something starting with __ and the normal name is an alias. */
11191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11192 choke me
11193 #else
11194 $ac_func();
11195 #endif
11197 ; return 0; }
11199 if { (eval echo configure:11200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11200 rm -rf conftest*
11201 eval "ac_cv_func_$ac_func=yes"
11202 else
11203 echo "configure: failed program was:" >&5
11204 cat conftest.$ac_ext >&5
11205 rm -rf conftest*
11206 eval "ac_cv_func_$ac_func=no"
11208 rm -f conftest*
11211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11212 echo "$ac_t""yes" 1>&6
11213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11214 cat >> confdefs.h <<EOF
11215 #define $ac_tr_func 1
11218 else
11219 echo "$ac_t""no" 1>&6
11221 done
11223 else
11225 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11226 echo "configure:11227: checking for _isnan declaration" >&5
11227 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11228 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11229 echo $ac_n "(cached) $ac_c" 1>&6
11230 else
11233 ac_ext=C
11234 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11235 ac_cpp='$CXXCPP $CPPFLAGS'
11236 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11237 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11238 cross_compiling=$ac_cv_prog_cxx_cross
11240 cat > conftest.$ac_ext <<EOF
11241 #line 11242 "configure"
11242 #include "confdefs.h"
11243 #include <math.h>
11244 #ifdef HAVE_IEEEFP_H
11245 #include <ieeefp.h>
11246 #endif
11248 int main() {
11249 _isnan(0);
11250 ; return 0; }
11252 if { (eval echo configure:11253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11253 rm -rf conftest*
11254 glibcpp_cv_func__isnan_use=yes
11255 else
11256 echo "configure: failed program was:" >&5
11257 cat conftest.$ac_ext >&5
11258 rm -rf conftest*
11259 glibcpp_cv_func__isnan_use=no
11261 rm -f conftest*
11262 ac_ext=c
11263 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11264 ac_cpp='$CPP $CPPFLAGS'
11265 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11266 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11267 cross_compiling=$ac_cv_prog_cc_cross
11273 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11275 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11276 for ac_func in _isnan
11278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11279 echo "configure:11280: checking for $ac_func" >&5
11280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11281 echo $ac_n "(cached) $ac_c" 1>&6
11282 else
11283 cat > conftest.$ac_ext <<EOF
11284 #line 11285 "configure"
11285 #include "confdefs.h"
11286 /* System header to define __stub macros and hopefully few prototypes,
11287 which can conflict with char $ac_func(); below. */
11288 #include <assert.h>
11289 /* Override any gcc2 internal prototype to avoid an error. */
11290 /* We use char because int might match the return type of a gcc2
11291 builtin and then its argument prototype would still apply. */
11292 char $ac_func();
11294 int main() {
11296 /* The GNU C library defines this for functions which it implements
11297 to always fail with ENOSYS. Some functions are actually named
11298 something starting with __ and the normal name is an alias. */
11299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11300 choke me
11301 #else
11302 $ac_func();
11303 #endif
11305 ; return 0; }
11307 if { (eval echo configure:11308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11308 rm -rf conftest*
11309 eval "ac_cv_func_$ac_func=yes"
11310 else
11311 echo "configure: failed program was:" >&5
11312 cat conftest.$ac_ext >&5
11313 rm -rf conftest*
11314 eval "ac_cv_func_$ac_func=no"
11316 rm -f conftest*
11319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11320 echo "$ac_t""yes" 1>&6
11321 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11322 cat >> confdefs.h <<EOF
11323 #define $ac_tr_func 1
11326 else
11327 echo "$ac_t""no" 1>&6
11329 done
11336 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11337 echo "configure:11338: checking for finite declaration" >&5
11338 if test x${glibcpp_cv_func_finite_use+set} != xset; then
11339 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11340 echo $ac_n "(cached) $ac_c" 1>&6
11341 else
11344 ac_ext=C
11345 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11346 ac_cpp='$CXXCPP $CPPFLAGS'
11347 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11348 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11349 cross_compiling=$ac_cv_prog_cxx_cross
11351 cat > conftest.$ac_ext <<EOF
11352 #line 11353 "configure"
11353 #include "confdefs.h"
11354 #include <math.h>
11355 #ifdef HAVE_IEEEFP_H
11356 #include <ieeefp.h>
11357 #endif
11359 int main() {
11360 finite(0);
11361 ; return 0; }
11363 if { (eval echo configure:11364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11364 rm -rf conftest*
11365 glibcpp_cv_func_finite_use=yes
11366 else
11367 echo "configure: failed program was:" >&5
11368 cat conftest.$ac_ext >&5
11369 rm -rf conftest*
11370 glibcpp_cv_func_finite_use=no
11372 rm -f conftest*
11373 ac_ext=c
11374 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11375 ac_cpp='$CPP $CPPFLAGS'
11376 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11377 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11378 cross_compiling=$ac_cv_prog_cc_cross
11384 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11386 if test x$glibcpp_cv_func_finite_use = x"yes"; then
11387 for ac_func in finite
11389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11390 echo "configure:11391: checking for $ac_func" >&5
11391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11392 echo $ac_n "(cached) $ac_c" 1>&6
11393 else
11394 cat > conftest.$ac_ext <<EOF
11395 #line 11396 "configure"
11396 #include "confdefs.h"
11397 /* System header to define __stub macros and hopefully few prototypes,
11398 which can conflict with char $ac_func(); below. */
11399 #include <assert.h>
11400 /* Override any gcc2 internal prototype to avoid an error. */
11401 /* We use char because int might match the return type of a gcc2
11402 builtin and then its argument prototype would still apply. */
11403 char $ac_func();
11405 int main() {
11407 /* The GNU C library defines this for functions which it implements
11408 to always fail with ENOSYS. Some functions are actually named
11409 something starting with __ and the normal name is an alias. */
11410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11411 choke me
11412 #else
11413 $ac_func();
11414 #endif
11416 ; return 0; }
11418 if { (eval echo configure:11419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11419 rm -rf conftest*
11420 eval "ac_cv_func_$ac_func=yes"
11421 else
11422 echo "configure: failed program was:" >&5
11423 cat conftest.$ac_ext >&5
11424 rm -rf conftest*
11425 eval "ac_cv_func_$ac_func=no"
11427 rm -f conftest*
11430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11431 echo "$ac_t""yes" 1>&6
11432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11433 cat >> confdefs.h <<EOF
11434 #define $ac_tr_func 1
11437 else
11438 echo "$ac_t""no" 1>&6
11440 done
11442 else
11444 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11445 echo "configure:11446: checking for _finite declaration" >&5
11446 if test x${glibcpp_cv_func__finite_use+set} != xset; then
11447 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11448 echo $ac_n "(cached) $ac_c" 1>&6
11449 else
11452 ac_ext=C
11453 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11454 ac_cpp='$CXXCPP $CPPFLAGS'
11455 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11456 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11457 cross_compiling=$ac_cv_prog_cxx_cross
11459 cat > conftest.$ac_ext <<EOF
11460 #line 11461 "configure"
11461 #include "confdefs.h"
11462 #include <math.h>
11463 #ifdef HAVE_IEEEFP_H
11464 #include <ieeefp.h>
11465 #endif
11467 int main() {
11468 _finite(0);
11469 ; return 0; }
11471 if { (eval echo configure:11472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11472 rm -rf conftest*
11473 glibcpp_cv_func__finite_use=yes
11474 else
11475 echo "configure: failed program was:" >&5
11476 cat conftest.$ac_ext >&5
11477 rm -rf conftest*
11478 glibcpp_cv_func__finite_use=no
11480 rm -f conftest*
11481 ac_ext=c
11482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11483 ac_cpp='$CPP $CPPFLAGS'
11484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11486 cross_compiling=$ac_cv_prog_cc_cross
11492 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11494 if test x$glibcpp_cv_func__finite_use = x"yes"; then
11495 for ac_func in _finite
11497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11498 echo "configure:11499: checking for $ac_func" >&5
11499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11500 echo $ac_n "(cached) $ac_c" 1>&6
11501 else
11502 cat > conftest.$ac_ext <<EOF
11503 #line 11504 "configure"
11504 #include "confdefs.h"
11505 /* System header to define __stub macros and hopefully few prototypes,
11506 which can conflict with char $ac_func(); below. */
11507 #include <assert.h>
11508 /* Override any gcc2 internal prototype to avoid an error. */
11509 /* We use char because int might match the return type of a gcc2
11510 builtin and then its argument prototype would still apply. */
11511 char $ac_func();
11513 int main() {
11515 /* The GNU C library defines this for functions which it implements
11516 to always fail with ENOSYS. Some functions are actually named
11517 something starting with __ and the normal name is an alias. */
11518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11519 choke me
11520 #else
11521 $ac_func();
11522 #endif
11524 ; return 0; }
11526 if { (eval echo configure:11527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11527 rm -rf conftest*
11528 eval "ac_cv_func_$ac_func=yes"
11529 else
11530 echo "configure: failed program was:" >&5
11531 cat conftest.$ac_ext >&5
11532 rm -rf conftest*
11533 eval "ac_cv_func_$ac_func=no"
11535 rm -f conftest*
11538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11539 echo "$ac_t""yes" 1>&6
11540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11541 cat >> confdefs.h <<EOF
11542 #define $ac_tr_func 1
11545 else
11546 echo "$ac_t""no" 1>&6
11548 done
11555 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11556 echo "configure:11557: checking for copysign declaration" >&5
11557 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11558 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11559 echo $ac_n "(cached) $ac_c" 1>&6
11560 else
11563 ac_ext=C
11564 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11565 ac_cpp='$CXXCPP $CPPFLAGS'
11566 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11567 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11568 cross_compiling=$ac_cv_prog_cxx_cross
11570 cat > conftest.$ac_ext <<EOF
11571 #line 11572 "configure"
11572 #include "confdefs.h"
11573 #include <math.h>
11574 int main() {
11575 copysign(0, 0);
11576 ; return 0; }
11578 if { (eval echo configure:11579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11579 rm -rf conftest*
11580 glibcpp_cv_func_copysign_use=yes
11581 else
11582 echo "configure: failed program was:" >&5
11583 cat conftest.$ac_ext >&5
11584 rm -rf conftest*
11585 glibcpp_cv_func_copysign_use=no
11587 rm -f conftest*
11588 ac_ext=c
11589 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11590 ac_cpp='$CPP $CPPFLAGS'
11591 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11592 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11593 cross_compiling=$ac_cv_prog_cc_cross
11599 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11601 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11602 for ac_func in copysign
11604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11605 echo "configure:11606: checking for $ac_func" >&5
11606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11607 echo $ac_n "(cached) $ac_c" 1>&6
11608 else
11609 cat > conftest.$ac_ext <<EOF
11610 #line 11611 "configure"
11611 #include "confdefs.h"
11612 /* System header to define __stub macros and hopefully few prototypes,
11613 which can conflict with char $ac_func(); below. */
11614 #include <assert.h>
11615 /* Override any gcc2 internal prototype to avoid an error. */
11616 /* We use char because int might match the return type of a gcc2
11617 builtin and then its argument prototype would still apply. */
11618 char $ac_func();
11620 int main() {
11622 /* The GNU C library defines this for functions which it implements
11623 to always fail with ENOSYS. Some functions are actually named
11624 something starting with __ and the normal name is an alias. */
11625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11626 choke me
11627 #else
11628 $ac_func();
11629 #endif
11631 ; return 0; }
11633 if { (eval echo configure:11634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11634 rm -rf conftest*
11635 eval "ac_cv_func_$ac_func=yes"
11636 else
11637 echo "configure: failed program was:" >&5
11638 cat conftest.$ac_ext >&5
11639 rm -rf conftest*
11640 eval "ac_cv_func_$ac_func=no"
11642 rm -f conftest*
11645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11646 echo "$ac_t""yes" 1>&6
11647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11648 cat >> confdefs.h <<EOF
11649 #define $ac_tr_func 1
11652 else
11653 echo "$ac_t""no" 1>&6
11655 done
11657 else
11659 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11660 echo "configure:11661: checking for _copysign declaration" >&5
11661 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11662 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11663 echo $ac_n "(cached) $ac_c" 1>&6
11664 else
11667 ac_ext=C
11668 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11669 ac_cpp='$CXXCPP $CPPFLAGS'
11670 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11671 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11672 cross_compiling=$ac_cv_prog_cxx_cross
11674 cat > conftest.$ac_ext <<EOF
11675 #line 11676 "configure"
11676 #include "confdefs.h"
11677 #include <math.h>
11678 int main() {
11679 _copysign(0, 0);
11680 ; return 0; }
11682 if { (eval echo configure:11683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11683 rm -rf conftest*
11684 glibcpp_cv_func__copysign_use=yes
11685 else
11686 echo "configure: failed program was:" >&5
11687 cat conftest.$ac_ext >&5
11688 rm -rf conftest*
11689 glibcpp_cv_func__copysign_use=no
11691 rm -f conftest*
11692 ac_ext=c
11693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11694 ac_cpp='$CPP $CPPFLAGS'
11695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11697 cross_compiling=$ac_cv_prog_cc_cross
11703 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11705 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11706 for ac_func in _copysign
11708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11709 echo "configure:11710: checking for $ac_func" >&5
11710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11711 echo $ac_n "(cached) $ac_c" 1>&6
11712 else
11713 cat > conftest.$ac_ext <<EOF
11714 #line 11715 "configure"
11715 #include "confdefs.h"
11716 /* System header to define __stub macros and hopefully few prototypes,
11717 which can conflict with char $ac_func(); below. */
11718 #include <assert.h>
11719 /* Override any gcc2 internal prototype to avoid an error. */
11720 /* We use char because int might match the return type of a gcc2
11721 builtin and then its argument prototype would still apply. */
11722 char $ac_func();
11724 int main() {
11726 /* The GNU C library defines this for functions which it implements
11727 to always fail with ENOSYS. Some functions are actually named
11728 something starting with __ and the normal name is an alias. */
11729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11730 choke me
11731 #else
11732 $ac_func();
11733 #endif
11735 ; return 0; }
11737 if { (eval echo configure:11738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11738 rm -rf conftest*
11739 eval "ac_cv_func_$ac_func=yes"
11740 else
11741 echo "configure: failed program was:" >&5
11742 cat conftest.$ac_ext >&5
11743 rm -rf conftest*
11744 eval "ac_cv_func_$ac_func=no"
11746 rm -f conftest*
11749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11750 echo "$ac_t""yes" 1>&6
11751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11752 cat >> confdefs.h <<EOF
11753 #define $ac_tr_func 1
11756 else
11757 echo "$ac_t""no" 1>&6
11759 done
11766 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11767 echo "configure:11768: checking for sincos declaration" >&5
11768 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11769 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11770 echo $ac_n "(cached) $ac_c" 1>&6
11771 else
11774 ac_ext=C
11775 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11776 ac_cpp='$CXXCPP $CPPFLAGS'
11777 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11778 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11779 cross_compiling=$ac_cv_prog_cxx_cross
11781 cat > conftest.$ac_ext <<EOF
11782 #line 11783 "configure"
11783 #include "confdefs.h"
11784 #include <math.h>
11785 int main() {
11786 sincos(0, 0, 0);
11787 ; return 0; }
11789 if { (eval echo configure:11790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11790 rm -rf conftest*
11791 glibcpp_cv_func_sincos_use=yes
11792 else
11793 echo "configure: failed program was:" >&5
11794 cat conftest.$ac_ext >&5
11795 rm -rf conftest*
11796 glibcpp_cv_func_sincos_use=no
11798 rm -f conftest*
11799 ac_ext=c
11800 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11801 ac_cpp='$CPP $CPPFLAGS'
11802 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11803 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11804 cross_compiling=$ac_cv_prog_cc_cross
11810 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11812 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11813 for ac_func in sincos
11815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11816 echo "configure:11817: checking for $ac_func" >&5
11817 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11818 echo $ac_n "(cached) $ac_c" 1>&6
11819 else
11820 cat > conftest.$ac_ext <<EOF
11821 #line 11822 "configure"
11822 #include "confdefs.h"
11823 /* System header to define __stub macros and hopefully few prototypes,
11824 which can conflict with char $ac_func(); below. */
11825 #include <assert.h>
11826 /* Override any gcc2 internal prototype to avoid an error. */
11827 /* We use char because int might match the return type of a gcc2
11828 builtin and then its argument prototype would still apply. */
11829 char $ac_func();
11831 int main() {
11833 /* The GNU C library defines this for functions which it implements
11834 to always fail with ENOSYS. Some functions are actually named
11835 something starting with __ and the normal name is an alias. */
11836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11837 choke me
11838 #else
11839 $ac_func();
11840 #endif
11842 ; return 0; }
11844 if { (eval echo configure:11845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11845 rm -rf conftest*
11846 eval "ac_cv_func_$ac_func=yes"
11847 else
11848 echo "configure: failed program was:" >&5
11849 cat conftest.$ac_ext >&5
11850 rm -rf conftest*
11851 eval "ac_cv_func_$ac_func=no"
11853 rm -f conftest*
11856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11857 echo "$ac_t""yes" 1>&6
11858 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11859 cat >> confdefs.h <<EOF
11860 #define $ac_tr_func 1
11863 else
11864 echo "$ac_t""no" 1>&6
11866 done
11868 else
11870 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11871 echo "configure:11872: checking for _sincos declaration" >&5
11872 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11873 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11874 echo $ac_n "(cached) $ac_c" 1>&6
11875 else
11878 ac_ext=C
11879 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11880 ac_cpp='$CXXCPP $CPPFLAGS'
11881 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11882 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11883 cross_compiling=$ac_cv_prog_cxx_cross
11885 cat > conftest.$ac_ext <<EOF
11886 #line 11887 "configure"
11887 #include "confdefs.h"
11888 #include <math.h>
11889 int main() {
11890 _sincos(0, 0, 0);
11891 ; return 0; }
11893 if { (eval echo configure:11894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11894 rm -rf conftest*
11895 glibcpp_cv_func__sincos_use=yes
11896 else
11897 echo "configure: failed program was:" >&5
11898 cat conftest.$ac_ext >&5
11899 rm -rf conftest*
11900 glibcpp_cv_func__sincos_use=no
11902 rm -f conftest*
11903 ac_ext=c
11904 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11905 ac_cpp='$CPP $CPPFLAGS'
11906 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11907 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11908 cross_compiling=$ac_cv_prog_cc_cross
11914 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11916 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11917 for ac_func in _sincos
11919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11920 echo "configure:11921: checking for $ac_func" >&5
11921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11922 echo $ac_n "(cached) $ac_c" 1>&6
11923 else
11924 cat > conftest.$ac_ext <<EOF
11925 #line 11926 "configure"
11926 #include "confdefs.h"
11927 /* System header to define __stub macros and hopefully few prototypes,
11928 which can conflict with char $ac_func(); below. */
11929 #include <assert.h>
11930 /* Override any gcc2 internal prototype to avoid an error. */
11931 /* We use char because int might match the return type of a gcc2
11932 builtin and then its argument prototype would still apply. */
11933 char $ac_func();
11935 int main() {
11937 /* The GNU C library defines this for functions which it implements
11938 to always fail with ENOSYS. Some functions are actually named
11939 something starting with __ and the normal name is an alias. */
11940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11941 choke me
11942 #else
11943 $ac_func();
11944 #endif
11946 ; return 0; }
11948 if { (eval echo configure:11949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11949 rm -rf conftest*
11950 eval "ac_cv_func_$ac_func=yes"
11951 else
11952 echo "configure: failed program was:" >&5
11953 cat conftest.$ac_ext >&5
11954 rm -rf conftest*
11955 eval "ac_cv_func_$ac_func=no"
11957 rm -f conftest*
11960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11961 echo "$ac_t""yes" 1>&6
11962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11963 cat >> confdefs.h <<EOF
11964 #define $ac_tr_func 1
11967 else
11968 echo "$ac_t""no" 1>&6
11970 done
11977 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11978 echo "configure:11979: checking for fpclass declaration" >&5
11979 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11980 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11981 echo $ac_n "(cached) $ac_c" 1>&6
11982 else
11985 ac_ext=C
11986 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11987 ac_cpp='$CXXCPP $CPPFLAGS'
11988 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11989 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11990 cross_compiling=$ac_cv_prog_cxx_cross
11992 cat > conftest.$ac_ext <<EOF
11993 #line 11994 "configure"
11994 #include "confdefs.h"
11995 #include <math.h>
11996 #ifdef HAVE_IEEEFP_H
11997 #include <ieeefp.h>
11998 #endif
12000 int main() {
12001 fpclass(0);
12002 ; return 0; }
12004 if { (eval echo configure:12005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12005 rm -rf conftest*
12006 glibcpp_cv_func_fpclass_use=yes
12007 else
12008 echo "configure: failed program was:" >&5
12009 cat conftest.$ac_ext >&5
12010 rm -rf conftest*
12011 glibcpp_cv_func_fpclass_use=no
12013 rm -f conftest*
12014 ac_ext=c
12015 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12016 ac_cpp='$CPP $CPPFLAGS'
12017 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12018 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12019 cross_compiling=$ac_cv_prog_cc_cross
12025 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
12027 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
12028 for ac_func in fpclass
12030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12031 echo "configure:12032: checking for $ac_func" >&5
12032 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12033 echo $ac_n "(cached) $ac_c" 1>&6
12034 else
12035 cat > conftest.$ac_ext <<EOF
12036 #line 12037 "configure"
12037 #include "confdefs.h"
12038 /* System header to define __stub macros and hopefully few prototypes,
12039 which can conflict with char $ac_func(); below. */
12040 #include <assert.h>
12041 /* Override any gcc2 internal prototype to avoid an error. */
12042 /* We use char because int might match the return type of a gcc2
12043 builtin and then its argument prototype would still apply. */
12044 char $ac_func();
12046 int main() {
12048 /* The GNU C library defines this for functions which it implements
12049 to always fail with ENOSYS. Some functions are actually named
12050 something starting with __ and the normal name is an alias. */
12051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12052 choke me
12053 #else
12054 $ac_func();
12055 #endif
12057 ; return 0; }
12059 if { (eval echo configure:12060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12060 rm -rf conftest*
12061 eval "ac_cv_func_$ac_func=yes"
12062 else
12063 echo "configure: failed program was:" >&5
12064 cat conftest.$ac_ext >&5
12065 rm -rf conftest*
12066 eval "ac_cv_func_$ac_func=no"
12068 rm -f conftest*
12071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12072 echo "$ac_t""yes" 1>&6
12073 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12074 cat >> confdefs.h <<EOF
12075 #define $ac_tr_func 1
12078 else
12079 echo "$ac_t""no" 1>&6
12081 done
12083 else
12085 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
12086 echo "configure:12087: checking for _fpclass declaration" >&5
12087 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
12088 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
12089 echo $ac_n "(cached) $ac_c" 1>&6
12090 else
12093 ac_ext=C
12094 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12095 ac_cpp='$CXXCPP $CPPFLAGS'
12096 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12097 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12098 cross_compiling=$ac_cv_prog_cxx_cross
12100 cat > conftest.$ac_ext <<EOF
12101 #line 12102 "configure"
12102 #include "confdefs.h"
12103 #include <math.h>
12104 #ifdef HAVE_IEEEFP_H
12105 #include <ieeefp.h>
12106 #endif
12108 int main() {
12109 _fpclass(0);
12110 ; return 0; }
12112 if { (eval echo configure:12113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12113 rm -rf conftest*
12114 glibcpp_cv_func__fpclass_use=yes
12115 else
12116 echo "configure: failed program was:" >&5
12117 cat conftest.$ac_ext >&5
12118 rm -rf conftest*
12119 glibcpp_cv_func__fpclass_use=no
12121 rm -f conftest*
12122 ac_ext=c
12123 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12124 ac_cpp='$CPP $CPPFLAGS'
12125 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12126 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12127 cross_compiling=$ac_cv_prog_cc_cross
12133 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
12135 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
12136 for ac_func in _fpclass
12138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12139 echo "configure:12140: checking for $ac_func" >&5
12140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12141 echo $ac_n "(cached) $ac_c" 1>&6
12142 else
12143 cat > conftest.$ac_ext <<EOF
12144 #line 12145 "configure"
12145 #include "confdefs.h"
12146 /* System header to define __stub macros and hopefully few prototypes,
12147 which can conflict with char $ac_func(); below. */
12148 #include <assert.h>
12149 /* Override any gcc2 internal prototype to avoid an error. */
12150 /* We use char because int might match the return type of a gcc2
12151 builtin and then its argument prototype would still apply. */
12152 char $ac_func();
12154 int main() {
12156 /* The GNU C library defines this for functions which it implements
12157 to always fail with ENOSYS. Some functions are actually named
12158 something starting with __ and the normal name is an alias. */
12159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12160 choke me
12161 #else
12162 $ac_func();
12163 #endif
12165 ; return 0; }
12167 if { (eval echo configure:12168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12168 rm -rf conftest*
12169 eval "ac_cv_func_$ac_func=yes"
12170 else
12171 echo "configure: failed program was:" >&5
12172 cat conftest.$ac_ext >&5
12173 rm -rf conftest*
12174 eval "ac_cv_func_$ac_func=no"
12176 rm -f conftest*
12179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12180 echo "$ac_t""yes" 1>&6
12181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12182 cat >> confdefs.h <<EOF
12183 #define $ac_tr_func 1
12186 else
12187 echo "$ac_t""no" 1>&6
12189 done
12196 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12197 echo "configure:12198: checking for qfpclass declaration" >&5
12198 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12199 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12200 echo $ac_n "(cached) $ac_c" 1>&6
12201 else
12204 ac_ext=C
12205 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12206 ac_cpp='$CXXCPP $CPPFLAGS'
12207 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12208 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12209 cross_compiling=$ac_cv_prog_cxx_cross
12211 cat > conftest.$ac_ext <<EOF
12212 #line 12213 "configure"
12213 #include "confdefs.h"
12214 #include <math.h>
12215 #ifdef HAVE_IEEEFP_H
12216 #include <ieeefp.h>
12217 #endif
12219 int main() {
12220 qfpclass(0);
12221 ; return 0; }
12223 if { (eval echo configure:12224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12224 rm -rf conftest*
12225 glibcpp_cv_func_qfpclass_use=yes
12226 else
12227 echo "configure: failed program was:" >&5
12228 cat conftest.$ac_ext >&5
12229 rm -rf conftest*
12230 glibcpp_cv_func_qfpclass_use=no
12232 rm -f conftest*
12233 ac_ext=c
12234 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12235 ac_cpp='$CPP $CPPFLAGS'
12236 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12237 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12238 cross_compiling=$ac_cv_prog_cc_cross
12244 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12246 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12247 for ac_func in qfpclass
12249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12250 echo "configure:12251: checking for $ac_func" >&5
12251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12252 echo $ac_n "(cached) $ac_c" 1>&6
12253 else
12254 cat > conftest.$ac_ext <<EOF
12255 #line 12256 "configure"
12256 #include "confdefs.h"
12257 /* System header to define __stub macros and hopefully few prototypes,
12258 which can conflict with char $ac_func(); below. */
12259 #include <assert.h>
12260 /* Override any gcc2 internal prototype to avoid an error. */
12261 /* We use char because int might match the return type of a gcc2
12262 builtin and then its argument prototype would still apply. */
12263 char $ac_func();
12265 int main() {
12267 /* The GNU C library defines this for functions which it implements
12268 to always fail with ENOSYS. Some functions are actually named
12269 something starting with __ and the normal name is an alias. */
12270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12271 choke me
12272 #else
12273 $ac_func();
12274 #endif
12276 ; return 0; }
12278 if { (eval echo configure:12279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12279 rm -rf conftest*
12280 eval "ac_cv_func_$ac_func=yes"
12281 else
12282 echo "configure: failed program was:" >&5
12283 cat conftest.$ac_ext >&5
12284 rm -rf conftest*
12285 eval "ac_cv_func_$ac_func=no"
12287 rm -f conftest*
12290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12291 echo "$ac_t""yes" 1>&6
12292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12293 cat >> confdefs.h <<EOF
12294 #define $ac_tr_func 1
12297 else
12298 echo "$ac_t""no" 1>&6
12300 done
12302 else
12304 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12305 echo "configure:12306: checking for _qfpclass declaration" >&5
12306 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12307 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12308 echo $ac_n "(cached) $ac_c" 1>&6
12309 else
12312 ac_ext=C
12313 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12314 ac_cpp='$CXXCPP $CPPFLAGS'
12315 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12316 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12317 cross_compiling=$ac_cv_prog_cxx_cross
12319 cat > conftest.$ac_ext <<EOF
12320 #line 12321 "configure"
12321 #include "confdefs.h"
12322 #include <math.h>
12323 #ifdef HAVE_IEEEFP_H
12324 #include <ieeefp.h>
12325 #endif
12327 int main() {
12328 _qfpclass(0);
12329 ; return 0; }
12331 if { (eval echo configure:12332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12332 rm -rf conftest*
12333 glibcpp_cv_func__qfpclass_use=yes
12334 else
12335 echo "configure: failed program was:" >&5
12336 cat conftest.$ac_ext >&5
12337 rm -rf conftest*
12338 glibcpp_cv_func__qfpclass_use=no
12340 rm -f conftest*
12341 ac_ext=c
12342 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12343 ac_cpp='$CPP $CPPFLAGS'
12344 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12345 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12346 cross_compiling=$ac_cv_prog_cc_cross
12352 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12354 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12355 for ac_func in _qfpclass
12357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12358 echo "configure:12359: checking for $ac_func" >&5
12359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12360 echo $ac_n "(cached) $ac_c" 1>&6
12361 else
12362 cat > conftest.$ac_ext <<EOF
12363 #line 12364 "configure"
12364 #include "confdefs.h"
12365 /* System header to define __stub macros and hopefully few prototypes,
12366 which can conflict with char $ac_func(); below. */
12367 #include <assert.h>
12368 /* Override any gcc2 internal prototype to avoid an error. */
12369 /* We use char because int might match the return type of a gcc2
12370 builtin and then its argument prototype would still apply. */
12371 char $ac_func();
12373 int main() {
12375 /* The GNU C library defines this for functions which it implements
12376 to always fail with ENOSYS. Some functions are actually named
12377 something starting with __ and the normal name is an alias. */
12378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12379 choke me
12380 #else
12381 $ac_func();
12382 #endif
12384 ; return 0; }
12386 if { (eval echo configure:12387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12387 rm -rf conftest*
12388 eval "ac_cv_func_$ac_func=yes"
12389 else
12390 echo "configure: failed program was:" >&5
12391 cat conftest.$ac_ext >&5
12392 rm -rf conftest*
12393 eval "ac_cv_func_$ac_func=no"
12395 rm -f conftest*
12398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12399 echo "$ac_t""yes" 1>&6
12400 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12401 cat >> confdefs.h <<EOF
12402 #define $ac_tr_func 1
12405 else
12406 echo "$ac_t""no" 1>&6
12408 done
12415 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12416 echo "configure:12417: checking for hypot declaration" >&5
12417 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12418 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12419 echo $ac_n "(cached) $ac_c" 1>&6
12420 else
12423 ac_ext=C
12424 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12425 ac_cpp='$CXXCPP $CPPFLAGS'
12426 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12427 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12428 cross_compiling=$ac_cv_prog_cxx_cross
12430 cat > conftest.$ac_ext <<EOF
12431 #line 12432 "configure"
12432 #include "confdefs.h"
12433 #include <math.h>
12434 int main() {
12435 hypot(0, 0);
12436 ; return 0; }
12438 if { (eval echo configure:12439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12439 rm -rf conftest*
12440 glibcpp_cv_func_hypot_use=yes
12441 else
12442 echo "configure: failed program was:" >&5
12443 cat conftest.$ac_ext >&5
12444 rm -rf conftest*
12445 glibcpp_cv_func_hypot_use=no
12447 rm -f conftest*
12448 ac_ext=c
12449 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12450 ac_cpp='$CPP $CPPFLAGS'
12451 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12452 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12453 cross_compiling=$ac_cv_prog_cc_cross
12459 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12461 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12462 for ac_func in hypot
12464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12465 echo "configure:12466: checking for $ac_func" >&5
12466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12467 echo $ac_n "(cached) $ac_c" 1>&6
12468 else
12469 cat > conftest.$ac_ext <<EOF
12470 #line 12471 "configure"
12471 #include "confdefs.h"
12472 /* System header to define __stub macros and hopefully few prototypes,
12473 which can conflict with char $ac_func(); below. */
12474 #include <assert.h>
12475 /* Override any gcc2 internal prototype to avoid an error. */
12476 /* We use char because int might match the return type of a gcc2
12477 builtin and then its argument prototype would still apply. */
12478 char $ac_func();
12480 int main() {
12482 /* The GNU C library defines this for functions which it implements
12483 to always fail with ENOSYS. Some functions are actually named
12484 something starting with __ and the normal name is an alias. */
12485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12486 choke me
12487 #else
12488 $ac_func();
12489 #endif
12491 ; return 0; }
12493 if { (eval echo configure:12494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12494 rm -rf conftest*
12495 eval "ac_cv_func_$ac_func=yes"
12496 else
12497 echo "configure: failed program was:" >&5
12498 cat conftest.$ac_ext >&5
12499 rm -rf conftest*
12500 eval "ac_cv_func_$ac_func=no"
12502 rm -f conftest*
12505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12506 echo "$ac_t""yes" 1>&6
12507 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12508 cat >> confdefs.h <<EOF
12509 #define $ac_tr_func 1
12512 else
12513 echo "$ac_t""no" 1>&6
12515 done
12517 else
12519 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12520 echo "configure:12521: checking for _hypot declaration" >&5
12521 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12522 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12523 echo $ac_n "(cached) $ac_c" 1>&6
12524 else
12527 ac_ext=C
12528 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12529 ac_cpp='$CXXCPP $CPPFLAGS'
12530 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12531 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12532 cross_compiling=$ac_cv_prog_cxx_cross
12534 cat > conftest.$ac_ext <<EOF
12535 #line 12536 "configure"
12536 #include "confdefs.h"
12537 #include <math.h>
12538 int main() {
12539 _hypot(0, 0);
12540 ; return 0; }
12542 if { (eval echo configure:12543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12543 rm -rf conftest*
12544 glibcpp_cv_func__hypot_use=yes
12545 else
12546 echo "configure: failed program was:" >&5
12547 cat conftest.$ac_ext >&5
12548 rm -rf conftest*
12549 glibcpp_cv_func__hypot_use=no
12551 rm -f conftest*
12552 ac_ext=c
12553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12554 ac_cpp='$CPP $CPPFLAGS'
12555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12557 cross_compiling=$ac_cv_prog_cc_cross
12563 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12565 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12566 for ac_func in _hypot
12568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12569 echo "configure:12570: checking for $ac_func" >&5
12570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12571 echo $ac_n "(cached) $ac_c" 1>&6
12572 else
12573 cat > conftest.$ac_ext <<EOF
12574 #line 12575 "configure"
12575 #include "confdefs.h"
12576 /* System header to define __stub macros and hopefully few prototypes,
12577 which can conflict with char $ac_func(); below. */
12578 #include <assert.h>
12579 /* Override any gcc2 internal prototype to avoid an error. */
12580 /* We use char because int might match the return type of a gcc2
12581 builtin and then its argument prototype would still apply. */
12582 char $ac_func();
12584 int main() {
12586 /* The GNU C library defines this for functions which it implements
12587 to always fail with ENOSYS. Some functions are actually named
12588 something starting with __ and the normal name is an alias. */
12589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12590 choke me
12591 #else
12592 $ac_func();
12593 #endif
12595 ; return 0; }
12597 if { (eval echo configure:12598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12598 rm -rf conftest*
12599 eval "ac_cv_func_$ac_func=yes"
12600 else
12601 echo "configure: failed program was:" >&5
12602 cat conftest.$ac_ext >&5
12603 rm -rf conftest*
12604 eval "ac_cv_func_$ac_func=no"
12606 rm -f conftest*
12609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12610 echo "$ac_t""yes" 1>&6
12611 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12612 cat >> confdefs.h <<EOF
12613 #define $ac_tr_func 1
12616 else
12617 echo "$ac_t""no" 1>&6
12619 done
12626 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12627 echo "configure:12628: checking for float trig functions" >&5
12628 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12629 echo $ac_n "(cached) $ac_c" 1>&6
12630 else
12633 ac_ext=C
12634 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12635 ac_cpp='$CXXCPP $CPPFLAGS'
12636 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12637 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12638 cross_compiling=$ac_cv_prog_cxx_cross
12640 cat > conftest.$ac_ext <<EOF
12641 #line 12642 "configure"
12642 #include "confdefs.h"
12643 #include <math.h>
12644 int main() {
12645 `for x in acosf asinf atanf \
12646 cosf sinf tanf \
12647 coshf sinhf tanhf; do echo "$x (0);"; done`
12648 ; return 0; }
12650 if { (eval echo configure:12651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12651 rm -rf conftest*
12652 glibcpp_cv_func_float_trig_use=yes
12653 else
12654 echo "configure: failed program was:" >&5
12655 cat conftest.$ac_ext >&5
12656 rm -rf conftest*
12657 glibcpp_cv_func_float_trig_use=no
12659 rm -f conftest*
12660 ac_ext=c
12661 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12662 ac_cpp='$CPP $CPPFLAGS'
12663 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12664 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12665 cross_compiling=$ac_cv_prog_cc_cross
12669 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12670 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12671 for ac_func in acosf asinf atanf \
12672 cosf sinf tanf \
12673 coshf sinhf tanhf
12675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12676 echo "configure:12677: checking for $ac_func" >&5
12677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12678 echo $ac_n "(cached) $ac_c" 1>&6
12679 else
12680 cat > conftest.$ac_ext <<EOF
12681 #line 12682 "configure"
12682 #include "confdefs.h"
12683 /* System header to define __stub macros and hopefully few prototypes,
12684 which can conflict with char $ac_func(); below. */
12685 #include <assert.h>
12686 /* Override any gcc2 internal prototype to avoid an error. */
12687 /* We use char because int might match the return type of a gcc2
12688 builtin and then its argument prototype would still apply. */
12689 char $ac_func();
12691 int main() {
12693 /* The GNU C library defines this for functions which it implements
12694 to always fail with ENOSYS. Some functions are actually named
12695 something starting with __ and the normal name is an alias. */
12696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12697 choke me
12698 #else
12699 $ac_func();
12700 #endif
12702 ; return 0; }
12704 if { (eval echo configure:12705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12705 rm -rf conftest*
12706 eval "ac_cv_func_$ac_func=yes"
12707 else
12708 echo "configure: failed program was:" >&5
12709 cat conftest.$ac_ext >&5
12710 rm -rf conftest*
12711 eval "ac_cv_func_$ac_func=no"
12713 rm -f conftest*
12716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12717 echo "$ac_t""yes" 1>&6
12718 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12719 cat >> confdefs.h <<EOF
12720 #define $ac_tr_func 1
12723 else
12724 echo "$ac_t""no" 1>&6
12726 done
12731 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12732 echo "configure:12733: checking for float round functions" >&5
12733 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12734 echo $ac_n "(cached) $ac_c" 1>&6
12735 else
12738 ac_ext=C
12739 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12740 ac_cpp='$CXXCPP $CPPFLAGS'
12741 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12742 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12743 cross_compiling=$ac_cv_prog_cxx_cross
12745 cat > conftest.$ac_ext <<EOF
12746 #line 12747 "configure"
12747 #include "confdefs.h"
12748 #include <math.h>
12749 int main() {
12750 `for x in ceilf floorf; do echo "$x (0);"; done`
12751 ; return 0; }
12753 if { (eval echo configure:12754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12754 rm -rf conftest*
12755 glibcpp_cv_func_float_round_use=yes
12756 else
12757 echo "configure: failed program was:" >&5
12758 cat conftest.$ac_ext >&5
12759 rm -rf conftest*
12760 glibcpp_cv_func_float_round_use=no
12762 rm -f conftest*
12763 ac_ext=c
12764 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12765 ac_cpp='$CPP $CPPFLAGS'
12766 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12767 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12768 cross_compiling=$ac_cv_prog_cc_cross
12772 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12773 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12774 for ac_func in ceilf floorf
12776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12777 echo "configure:12778: checking for $ac_func" >&5
12778 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12779 echo $ac_n "(cached) $ac_c" 1>&6
12780 else
12781 cat > conftest.$ac_ext <<EOF
12782 #line 12783 "configure"
12783 #include "confdefs.h"
12784 /* System header to define __stub macros and hopefully few prototypes,
12785 which can conflict with char $ac_func(); below. */
12786 #include <assert.h>
12787 /* Override any gcc2 internal prototype to avoid an error. */
12788 /* We use char because int might match the return type of a gcc2
12789 builtin and then its argument prototype would still apply. */
12790 char $ac_func();
12792 int main() {
12794 /* The GNU C library defines this for functions which it implements
12795 to always fail with ENOSYS. Some functions are actually named
12796 something starting with __ and the normal name is an alias. */
12797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12798 choke me
12799 #else
12800 $ac_func();
12801 #endif
12803 ; return 0; }
12805 if { (eval echo configure:12806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12806 rm -rf conftest*
12807 eval "ac_cv_func_$ac_func=yes"
12808 else
12809 echo "configure: failed program was:" >&5
12810 cat conftest.$ac_ext >&5
12811 rm -rf conftest*
12812 eval "ac_cv_func_$ac_func=no"
12814 rm -f conftest*
12817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12818 echo "$ac_t""yes" 1>&6
12819 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12820 cat >> confdefs.h <<EOF
12821 #define $ac_tr_func 1
12824 else
12825 echo "$ac_t""no" 1>&6
12827 done
12833 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12834 echo "configure:12835: checking for expf declaration" >&5
12835 if test x${glibcpp_cv_func_expf_use+set} != xset; then
12836 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12837 echo $ac_n "(cached) $ac_c" 1>&6
12838 else
12841 ac_ext=C
12842 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12843 ac_cpp='$CXXCPP $CPPFLAGS'
12844 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12845 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12846 cross_compiling=$ac_cv_prog_cxx_cross
12848 cat > conftest.$ac_ext <<EOF
12849 #line 12850 "configure"
12850 #include "confdefs.h"
12851 #include <math.h>
12852 #ifdef HAVE_IEEEFP_H
12853 #include <ieeefp.h>
12854 #endif
12856 int main() {
12857 expf(0);
12858 ; return 0; }
12860 if { (eval echo configure:12861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12861 rm -rf conftest*
12862 glibcpp_cv_func_expf_use=yes
12863 else
12864 echo "configure: failed program was:" >&5
12865 cat conftest.$ac_ext >&5
12866 rm -rf conftest*
12867 glibcpp_cv_func_expf_use=no
12869 rm -f conftest*
12870 ac_ext=c
12871 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12872 ac_cpp='$CPP $CPPFLAGS'
12873 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12874 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12875 cross_compiling=$ac_cv_prog_cc_cross
12881 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12883 if test x$glibcpp_cv_func_expf_use = x"yes"; then
12884 for ac_func in expf
12886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12887 echo "configure:12888: checking for $ac_func" >&5
12888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12889 echo $ac_n "(cached) $ac_c" 1>&6
12890 else
12891 cat > conftest.$ac_ext <<EOF
12892 #line 12893 "configure"
12893 #include "confdefs.h"
12894 /* System header to define __stub macros and hopefully few prototypes,
12895 which can conflict with char $ac_func(); below. */
12896 #include <assert.h>
12897 /* Override any gcc2 internal prototype to avoid an error. */
12898 /* We use char because int might match the return type of a gcc2
12899 builtin and then its argument prototype would still apply. */
12900 char $ac_func();
12902 int main() {
12904 /* The GNU C library defines this for functions which it implements
12905 to always fail with ENOSYS. Some functions are actually named
12906 something starting with __ and the normal name is an alias. */
12907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12908 choke me
12909 #else
12910 $ac_func();
12911 #endif
12913 ; return 0; }
12915 if { (eval echo configure:12916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12916 rm -rf conftest*
12917 eval "ac_cv_func_$ac_func=yes"
12918 else
12919 echo "configure: failed program was:" >&5
12920 cat conftest.$ac_ext >&5
12921 rm -rf conftest*
12922 eval "ac_cv_func_$ac_func=no"
12924 rm -f conftest*
12927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12928 echo "$ac_t""yes" 1>&6
12929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12930 cat >> confdefs.h <<EOF
12931 #define $ac_tr_func 1
12934 else
12935 echo "$ac_t""no" 1>&6
12937 done
12939 else
12941 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12942 echo "configure:12943: checking for _expf declaration" >&5
12943 if test x${glibcpp_cv_func__expf_use+set} != xset; then
12944 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12945 echo $ac_n "(cached) $ac_c" 1>&6
12946 else
12949 ac_ext=C
12950 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12951 ac_cpp='$CXXCPP $CPPFLAGS'
12952 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12953 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12954 cross_compiling=$ac_cv_prog_cxx_cross
12956 cat > conftest.$ac_ext <<EOF
12957 #line 12958 "configure"
12958 #include "confdefs.h"
12959 #include <math.h>
12960 #ifdef HAVE_IEEEFP_H
12961 #include <ieeefp.h>
12962 #endif
12964 int main() {
12965 _expf(0);
12966 ; return 0; }
12968 if { (eval echo configure:12969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12969 rm -rf conftest*
12970 glibcpp_cv_func__expf_use=yes
12971 else
12972 echo "configure: failed program was:" >&5
12973 cat conftest.$ac_ext >&5
12974 rm -rf conftest*
12975 glibcpp_cv_func__expf_use=no
12977 rm -f conftest*
12978 ac_ext=c
12979 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12980 ac_cpp='$CPP $CPPFLAGS'
12981 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12982 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12983 cross_compiling=$ac_cv_prog_cc_cross
12989 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12991 if test x$glibcpp_cv_func__expf_use = x"yes"; then
12992 for ac_func in _expf
12994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12995 echo "configure:12996: checking for $ac_func" >&5
12996 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12997 echo $ac_n "(cached) $ac_c" 1>&6
12998 else
12999 cat > conftest.$ac_ext <<EOF
13000 #line 13001 "configure"
13001 #include "confdefs.h"
13002 /* System header to define __stub macros and hopefully few prototypes,
13003 which can conflict with char $ac_func(); below. */
13004 #include <assert.h>
13005 /* Override any gcc2 internal prototype to avoid an error. */
13006 /* We use char because int might match the return type of a gcc2
13007 builtin and then its argument prototype would still apply. */
13008 char $ac_func();
13010 int main() {
13012 /* The GNU C library defines this for functions which it implements
13013 to always fail with ENOSYS. Some functions are actually named
13014 something starting with __ and the normal name is an alias. */
13015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13016 choke me
13017 #else
13018 $ac_func();
13019 #endif
13021 ; return 0; }
13023 if { (eval echo configure:13024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13024 rm -rf conftest*
13025 eval "ac_cv_func_$ac_func=yes"
13026 else
13027 echo "configure: failed program was:" >&5
13028 cat conftest.$ac_ext >&5
13029 rm -rf conftest*
13030 eval "ac_cv_func_$ac_func=no"
13032 rm -f conftest*
13035 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13036 echo "$ac_t""yes" 1>&6
13037 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13038 cat >> confdefs.h <<EOF
13039 #define $ac_tr_func 1
13042 else
13043 echo "$ac_t""no" 1>&6
13045 done
13052 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
13053 echo "configure:13054: checking for isnanf declaration" >&5
13054 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
13055 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
13056 echo $ac_n "(cached) $ac_c" 1>&6
13057 else
13060 ac_ext=C
13061 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13062 ac_cpp='$CXXCPP $CPPFLAGS'
13063 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13064 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13065 cross_compiling=$ac_cv_prog_cxx_cross
13067 cat > conftest.$ac_ext <<EOF
13068 #line 13069 "configure"
13069 #include "confdefs.h"
13070 #include <math.h>
13071 #ifdef HAVE_IEEEFP_H
13072 #include <ieeefp.h>
13073 #endif
13075 int main() {
13076 isnanf(0);
13077 ; return 0; }
13079 if { (eval echo configure:13080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13080 rm -rf conftest*
13081 glibcpp_cv_func_isnanf_use=yes
13082 else
13083 echo "configure: failed program was:" >&5
13084 cat conftest.$ac_ext >&5
13085 rm -rf conftest*
13086 glibcpp_cv_func_isnanf_use=no
13088 rm -f conftest*
13089 ac_ext=c
13090 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13091 ac_cpp='$CPP $CPPFLAGS'
13092 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13093 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13094 cross_compiling=$ac_cv_prog_cc_cross
13100 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
13102 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
13103 for ac_func in isnanf
13105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13106 echo "configure:13107: checking for $ac_func" >&5
13107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13108 echo $ac_n "(cached) $ac_c" 1>&6
13109 else
13110 cat > conftest.$ac_ext <<EOF
13111 #line 13112 "configure"
13112 #include "confdefs.h"
13113 /* System header to define __stub macros and hopefully few prototypes,
13114 which can conflict with char $ac_func(); below. */
13115 #include <assert.h>
13116 /* Override any gcc2 internal prototype to avoid an error. */
13117 /* We use char because int might match the return type of a gcc2
13118 builtin and then its argument prototype would still apply. */
13119 char $ac_func();
13121 int main() {
13123 /* The GNU C library defines this for functions which it implements
13124 to always fail with ENOSYS. Some functions are actually named
13125 something starting with __ and the normal name is an alias. */
13126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13127 choke me
13128 #else
13129 $ac_func();
13130 #endif
13132 ; return 0; }
13134 if { (eval echo configure:13135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13135 rm -rf conftest*
13136 eval "ac_cv_func_$ac_func=yes"
13137 else
13138 echo "configure: failed program was:" >&5
13139 cat conftest.$ac_ext >&5
13140 rm -rf conftest*
13141 eval "ac_cv_func_$ac_func=no"
13143 rm -f conftest*
13146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13147 echo "$ac_t""yes" 1>&6
13148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13149 cat >> confdefs.h <<EOF
13150 #define $ac_tr_func 1
13153 else
13154 echo "$ac_t""no" 1>&6
13156 done
13158 else
13160 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
13161 echo "configure:13162: checking for _isnanf declaration" >&5
13162 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
13163 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
13164 echo $ac_n "(cached) $ac_c" 1>&6
13165 else
13168 ac_ext=C
13169 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13170 ac_cpp='$CXXCPP $CPPFLAGS'
13171 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13172 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13173 cross_compiling=$ac_cv_prog_cxx_cross
13175 cat > conftest.$ac_ext <<EOF
13176 #line 13177 "configure"
13177 #include "confdefs.h"
13178 #include <math.h>
13179 #ifdef HAVE_IEEEFP_H
13180 #include <ieeefp.h>
13181 #endif
13183 int main() {
13184 _isnanf(0);
13185 ; return 0; }
13187 if { (eval echo configure:13188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13188 rm -rf conftest*
13189 glibcpp_cv_func__isnanf_use=yes
13190 else
13191 echo "configure: failed program was:" >&5
13192 cat conftest.$ac_ext >&5
13193 rm -rf conftest*
13194 glibcpp_cv_func__isnanf_use=no
13196 rm -f conftest*
13197 ac_ext=c
13198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13199 ac_cpp='$CPP $CPPFLAGS'
13200 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13201 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13202 cross_compiling=$ac_cv_prog_cc_cross
13208 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13210 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13211 for ac_func in _isnanf
13213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13214 echo "configure:13215: checking for $ac_func" >&5
13215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13216 echo $ac_n "(cached) $ac_c" 1>&6
13217 else
13218 cat > conftest.$ac_ext <<EOF
13219 #line 13220 "configure"
13220 #include "confdefs.h"
13221 /* System header to define __stub macros and hopefully few prototypes,
13222 which can conflict with char $ac_func(); below. */
13223 #include <assert.h>
13224 /* Override any gcc2 internal prototype to avoid an error. */
13225 /* We use char because int might match the return type of a gcc2
13226 builtin and then its argument prototype would still apply. */
13227 char $ac_func();
13229 int main() {
13231 /* The GNU C library defines this for functions which it implements
13232 to always fail with ENOSYS. Some functions are actually named
13233 something starting with __ and the normal name is an alias. */
13234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13235 choke me
13236 #else
13237 $ac_func();
13238 #endif
13240 ; return 0; }
13242 if { (eval echo configure:13243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13243 rm -rf conftest*
13244 eval "ac_cv_func_$ac_func=yes"
13245 else
13246 echo "configure: failed program was:" >&5
13247 cat conftest.$ac_ext >&5
13248 rm -rf conftest*
13249 eval "ac_cv_func_$ac_func=no"
13251 rm -f conftest*
13254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13255 echo "$ac_t""yes" 1>&6
13256 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13257 cat >> confdefs.h <<EOF
13258 #define $ac_tr_func 1
13261 else
13262 echo "$ac_t""no" 1>&6
13264 done
13271 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13272 echo "configure:13273: checking for isinff declaration" >&5
13273 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13274 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13275 echo $ac_n "(cached) $ac_c" 1>&6
13276 else
13279 ac_ext=C
13280 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13281 ac_cpp='$CXXCPP $CPPFLAGS'
13282 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13283 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13284 cross_compiling=$ac_cv_prog_cxx_cross
13286 cat > conftest.$ac_ext <<EOF
13287 #line 13288 "configure"
13288 #include "confdefs.h"
13289 #include <math.h>
13290 #ifdef HAVE_IEEEFP_H
13291 #include <ieeefp.h>
13292 #endif
13294 int main() {
13295 isinff(0);
13296 ; return 0; }
13298 if { (eval echo configure:13299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13299 rm -rf conftest*
13300 glibcpp_cv_func_isinff_use=yes
13301 else
13302 echo "configure: failed program was:" >&5
13303 cat conftest.$ac_ext >&5
13304 rm -rf conftest*
13305 glibcpp_cv_func_isinff_use=no
13307 rm -f conftest*
13308 ac_ext=c
13309 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13310 ac_cpp='$CPP $CPPFLAGS'
13311 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13312 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13313 cross_compiling=$ac_cv_prog_cc_cross
13319 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13321 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13322 for ac_func in isinff
13324 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13325 echo "configure:13326: checking for $ac_func" >&5
13326 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13327 echo $ac_n "(cached) $ac_c" 1>&6
13328 else
13329 cat > conftest.$ac_ext <<EOF
13330 #line 13331 "configure"
13331 #include "confdefs.h"
13332 /* System header to define __stub macros and hopefully few prototypes,
13333 which can conflict with char $ac_func(); below. */
13334 #include <assert.h>
13335 /* Override any gcc2 internal prototype to avoid an error. */
13336 /* We use char because int might match the return type of a gcc2
13337 builtin and then its argument prototype would still apply. */
13338 char $ac_func();
13340 int main() {
13342 /* The GNU C library defines this for functions which it implements
13343 to always fail with ENOSYS. Some functions are actually named
13344 something starting with __ and the normal name is an alias. */
13345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13346 choke me
13347 #else
13348 $ac_func();
13349 #endif
13351 ; return 0; }
13353 if { (eval echo configure:13354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13354 rm -rf conftest*
13355 eval "ac_cv_func_$ac_func=yes"
13356 else
13357 echo "configure: failed program was:" >&5
13358 cat conftest.$ac_ext >&5
13359 rm -rf conftest*
13360 eval "ac_cv_func_$ac_func=no"
13362 rm -f conftest*
13365 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13366 echo "$ac_t""yes" 1>&6
13367 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13368 cat >> confdefs.h <<EOF
13369 #define $ac_tr_func 1
13372 else
13373 echo "$ac_t""no" 1>&6
13375 done
13377 else
13379 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13380 echo "configure:13381: checking for _isinff declaration" >&5
13381 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13382 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13383 echo $ac_n "(cached) $ac_c" 1>&6
13384 else
13387 ac_ext=C
13388 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13389 ac_cpp='$CXXCPP $CPPFLAGS'
13390 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13391 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13392 cross_compiling=$ac_cv_prog_cxx_cross
13394 cat > conftest.$ac_ext <<EOF
13395 #line 13396 "configure"
13396 #include "confdefs.h"
13397 #include <math.h>
13398 #ifdef HAVE_IEEEFP_H
13399 #include <ieeefp.h>
13400 #endif
13402 int main() {
13403 _isinff(0);
13404 ; return 0; }
13406 if { (eval echo configure:13407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13407 rm -rf conftest*
13408 glibcpp_cv_func__isinff_use=yes
13409 else
13410 echo "configure: failed program was:" >&5
13411 cat conftest.$ac_ext >&5
13412 rm -rf conftest*
13413 glibcpp_cv_func__isinff_use=no
13415 rm -f conftest*
13416 ac_ext=c
13417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13418 ac_cpp='$CPP $CPPFLAGS'
13419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13421 cross_compiling=$ac_cv_prog_cc_cross
13427 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13429 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13430 for ac_func in _isinff
13432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13433 echo "configure:13434: checking for $ac_func" >&5
13434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13435 echo $ac_n "(cached) $ac_c" 1>&6
13436 else
13437 cat > conftest.$ac_ext <<EOF
13438 #line 13439 "configure"
13439 #include "confdefs.h"
13440 /* System header to define __stub macros and hopefully few prototypes,
13441 which can conflict with char $ac_func(); below. */
13442 #include <assert.h>
13443 /* Override any gcc2 internal prototype to avoid an error. */
13444 /* We use char because int might match the return type of a gcc2
13445 builtin and then its argument prototype would still apply. */
13446 char $ac_func();
13448 int main() {
13450 /* The GNU C library defines this for functions which it implements
13451 to always fail with ENOSYS. Some functions are actually named
13452 something starting with __ and the normal name is an alias. */
13453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13454 choke me
13455 #else
13456 $ac_func();
13457 #endif
13459 ; return 0; }
13461 if { (eval echo configure:13462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13462 rm -rf conftest*
13463 eval "ac_cv_func_$ac_func=yes"
13464 else
13465 echo "configure: failed program was:" >&5
13466 cat conftest.$ac_ext >&5
13467 rm -rf conftest*
13468 eval "ac_cv_func_$ac_func=no"
13470 rm -f conftest*
13473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13474 echo "$ac_t""yes" 1>&6
13475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13476 cat >> confdefs.h <<EOF
13477 #define $ac_tr_func 1
13480 else
13481 echo "$ac_t""no" 1>&6
13483 done
13490 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13491 echo "configure:13492: checking for atan2f declaration" >&5
13492 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13493 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13494 echo $ac_n "(cached) $ac_c" 1>&6
13495 else
13498 ac_ext=C
13499 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13500 ac_cpp='$CXXCPP $CPPFLAGS'
13501 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13502 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13503 cross_compiling=$ac_cv_prog_cxx_cross
13505 cat > conftest.$ac_ext <<EOF
13506 #line 13507 "configure"
13507 #include "confdefs.h"
13508 #include <math.h>
13509 int main() {
13510 atan2f(0, 0);
13511 ; return 0; }
13513 if { (eval echo configure:13514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13514 rm -rf conftest*
13515 glibcpp_cv_func_atan2f_use=yes
13516 else
13517 echo "configure: failed program was:" >&5
13518 cat conftest.$ac_ext >&5
13519 rm -rf conftest*
13520 glibcpp_cv_func_atan2f_use=no
13522 rm -f conftest*
13523 ac_ext=c
13524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13525 ac_cpp='$CPP $CPPFLAGS'
13526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13528 cross_compiling=$ac_cv_prog_cc_cross
13534 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13536 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13537 for ac_func in atan2f
13539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13540 echo "configure:13541: checking for $ac_func" >&5
13541 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13542 echo $ac_n "(cached) $ac_c" 1>&6
13543 else
13544 cat > conftest.$ac_ext <<EOF
13545 #line 13546 "configure"
13546 #include "confdefs.h"
13547 /* System header to define __stub macros and hopefully few prototypes,
13548 which can conflict with char $ac_func(); below. */
13549 #include <assert.h>
13550 /* Override any gcc2 internal prototype to avoid an error. */
13551 /* We use char because int might match the return type of a gcc2
13552 builtin and then its argument prototype would still apply. */
13553 char $ac_func();
13555 int main() {
13557 /* The GNU C library defines this for functions which it implements
13558 to always fail with ENOSYS. Some functions are actually named
13559 something starting with __ and the normal name is an alias. */
13560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13561 choke me
13562 #else
13563 $ac_func();
13564 #endif
13566 ; return 0; }
13568 if { (eval echo configure:13569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13569 rm -rf conftest*
13570 eval "ac_cv_func_$ac_func=yes"
13571 else
13572 echo "configure: failed program was:" >&5
13573 cat conftest.$ac_ext >&5
13574 rm -rf conftest*
13575 eval "ac_cv_func_$ac_func=no"
13577 rm -f conftest*
13580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13581 echo "$ac_t""yes" 1>&6
13582 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13583 cat >> confdefs.h <<EOF
13584 #define $ac_tr_func 1
13587 else
13588 echo "$ac_t""no" 1>&6
13590 done
13592 else
13594 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13595 echo "configure:13596: checking for _atan2f declaration" >&5
13596 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13597 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13598 echo $ac_n "(cached) $ac_c" 1>&6
13599 else
13602 ac_ext=C
13603 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13604 ac_cpp='$CXXCPP $CPPFLAGS'
13605 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13606 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13607 cross_compiling=$ac_cv_prog_cxx_cross
13609 cat > conftest.$ac_ext <<EOF
13610 #line 13611 "configure"
13611 #include "confdefs.h"
13612 #include <math.h>
13613 int main() {
13614 _atan2f(0, 0);
13615 ; return 0; }
13617 if { (eval echo configure:13618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13618 rm -rf conftest*
13619 glibcpp_cv_func__atan2f_use=yes
13620 else
13621 echo "configure: failed program was:" >&5
13622 cat conftest.$ac_ext >&5
13623 rm -rf conftest*
13624 glibcpp_cv_func__atan2f_use=no
13626 rm -f conftest*
13627 ac_ext=c
13628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13629 ac_cpp='$CPP $CPPFLAGS'
13630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13632 cross_compiling=$ac_cv_prog_cc_cross
13638 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13640 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13641 for ac_func in _atan2f
13643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13644 echo "configure:13645: checking for $ac_func" >&5
13645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13646 echo $ac_n "(cached) $ac_c" 1>&6
13647 else
13648 cat > conftest.$ac_ext <<EOF
13649 #line 13650 "configure"
13650 #include "confdefs.h"
13651 /* System header to define __stub macros and hopefully few prototypes,
13652 which can conflict with char $ac_func(); below. */
13653 #include <assert.h>
13654 /* Override any gcc2 internal prototype to avoid an error. */
13655 /* We use char because int might match the return type of a gcc2
13656 builtin and then its argument prototype would still apply. */
13657 char $ac_func();
13659 int main() {
13661 /* The GNU C library defines this for functions which it implements
13662 to always fail with ENOSYS. Some functions are actually named
13663 something starting with __ and the normal name is an alias. */
13664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13665 choke me
13666 #else
13667 $ac_func();
13668 #endif
13670 ; return 0; }
13672 if { (eval echo configure:13673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13673 rm -rf conftest*
13674 eval "ac_cv_func_$ac_func=yes"
13675 else
13676 echo "configure: failed program was:" >&5
13677 cat conftest.$ac_ext >&5
13678 rm -rf conftest*
13679 eval "ac_cv_func_$ac_func=no"
13681 rm -f conftest*
13684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13685 echo "$ac_t""yes" 1>&6
13686 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13687 cat >> confdefs.h <<EOF
13688 #define $ac_tr_func 1
13691 else
13692 echo "$ac_t""no" 1>&6
13694 done
13701 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13702 echo "configure:13703: checking for fabsf declaration" >&5
13703 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13704 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13705 echo $ac_n "(cached) $ac_c" 1>&6
13706 else
13709 ac_ext=C
13710 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13711 ac_cpp='$CXXCPP $CPPFLAGS'
13712 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13713 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13714 cross_compiling=$ac_cv_prog_cxx_cross
13716 cat > conftest.$ac_ext <<EOF
13717 #line 13718 "configure"
13718 #include "confdefs.h"
13719 #include <math.h>
13720 #ifdef HAVE_IEEEFP_H
13721 #include <ieeefp.h>
13722 #endif
13724 int main() {
13725 fabsf(0);
13726 ; return 0; }
13728 if { (eval echo configure:13729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13729 rm -rf conftest*
13730 glibcpp_cv_func_fabsf_use=yes
13731 else
13732 echo "configure: failed program was:" >&5
13733 cat conftest.$ac_ext >&5
13734 rm -rf conftest*
13735 glibcpp_cv_func_fabsf_use=no
13737 rm -f conftest*
13738 ac_ext=c
13739 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13740 ac_cpp='$CPP $CPPFLAGS'
13741 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13742 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13743 cross_compiling=$ac_cv_prog_cc_cross
13749 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13751 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13752 for ac_func in fabsf
13754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13755 echo "configure:13756: checking for $ac_func" >&5
13756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13757 echo $ac_n "(cached) $ac_c" 1>&6
13758 else
13759 cat > conftest.$ac_ext <<EOF
13760 #line 13761 "configure"
13761 #include "confdefs.h"
13762 /* System header to define __stub macros and hopefully few prototypes,
13763 which can conflict with char $ac_func(); below. */
13764 #include <assert.h>
13765 /* Override any gcc2 internal prototype to avoid an error. */
13766 /* We use char because int might match the return type of a gcc2
13767 builtin and then its argument prototype would still apply. */
13768 char $ac_func();
13770 int main() {
13772 /* The GNU C library defines this for functions which it implements
13773 to always fail with ENOSYS. Some functions are actually named
13774 something starting with __ and the normal name is an alias. */
13775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13776 choke me
13777 #else
13778 $ac_func();
13779 #endif
13781 ; return 0; }
13783 if { (eval echo configure:13784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13784 rm -rf conftest*
13785 eval "ac_cv_func_$ac_func=yes"
13786 else
13787 echo "configure: failed program was:" >&5
13788 cat conftest.$ac_ext >&5
13789 rm -rf conftest*
13790 eval "ac_cv_func_$ac_func=no"
13792 rm -f conftest*
13795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13796 echo "$ac_t""yes" 1>&6
13797 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13798 cat >> confdefs.h <<EOF
13799 #define $ac_tr_func 1
13802 else
13803 echo "$ac_t""no" 1>&6
13805 done
13807 else
13809 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13810 echo "configure:13811: checking for _fabsf declaration" >&5
13811 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13812 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13813 echo $ac_n "(cached) $ac_c" 1>&6
13814 else
13817 ac_ext=C
13818 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13819 ac_cpp='$CXXCPP $CPPFLAGS'
13820 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13821 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13822 cross_compiling=$ac_cv_prog_cxx_cross
13824 cat > conftest.$ac_ext <<EOF
13825 #line 13826 "configure"
13826 #include "confdefs.h"
13827 #include <math.h>
13828 #ifdef HAVE_IEEEFP_H
13829 #include <ieeefp.h>
13830 #endif
13832 int main() {
13833 _fabsf(0);
13834 ; return 0; }
13836 if { (eval echo configure:13837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13837 rm -rf conftest*
13838 glibcpp_cv_func__fabsf_use=yes
13839 else
13840 echo "configure: failed program was:" >&5
13841 cat conftest.$ac_ext >&5
13842 rm -rf conftest*
13843 glibcpp_cv_func__fabsf_use=no
13845 rm -f conftest*
13846 ac_ext=c
13847 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13848 ac_cpp='$CPP $CPPFLAGS'
13849 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13850 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13851 cross_compiling=$ac_cv_prog_cc_cross
13857 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13859 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13860 for ac_func in _fabsf
13862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13863 echo "configure:13864: checking for $ac_func" >&5
13864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13865 echo $ac_n "(cached) $ac_c" 1>&6
13866 else
13867 cat > conftest.$ac_ext <<EOF
13868 #line 13869 "configure"
13869 #include "confdefs.h"
13870 /* System header to define __stub macros and hopefully few prototypes,
13871 which can conflict with char $ac_func(); below. */
13872 #include <assert.h>
13873 /* Override any gcc2 internal prototype to avoid an error. */
13874 /* We use char because int might match the return type of a gcc2
13875 builtin and then its argument prototype would still apply. */
13876 char $ac_func();
13878 int main() {
13880 /* The GNU C library defines this for functions which it implements
13881 to always fail with ENOSYS. Some functions are actually named
13882 something starting with __ and the normal name is an alias. */
13883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13884 choke me
13885 #else
13886 $ac_func();
13887 #endif
13889 ; return 0; }
13891 if { (eval echo configure:13892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13892 rm -rf conftest*
13893 eval "ac_cv_func_$ac_func=yes"
13894 else
13895 echo "configure: failed program was:" >&5
13896 cat conftest.$ac_ext >&5
13897 rm -rf conftest*
13898 eval "ac_cv_func_$ac_func=no"
13900 rm -f conftest*
13903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13904 echo "$ac_t""yes" 1>&6
13905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13906 cat >> confdefs.h <<EOF
13907 #define $ac_tr_func 1
13910 else
13911 echo "$ac_t""no" 1>&6
13913 done
13920 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13921 echo "configure:13922: checking for fmodf declaration" >&5
13922 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13923 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13924 echo $ac_n "(cached) $ac_c" 1>&6
13925 else
13928 ac_ext=C
13929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13930 ac_cpp='$CXXCPP $CPPFLAGS'
13931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13933 cross_compiling=$ac_cv_prog_cxx_cross
13935 cat > conftest.$ac_ext <<EOF
13936 #line 13937 "configure"
13937 #include "confdefs.h"
13938 #include <math.h>
13939 int main() {
13940 fmodf(0, 0);
13941 ; return 0; }
13943 if { (eval echo configure:13944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13944 rm -rf conftest*
13945 glibcpp_cv_func_fmodf_use=yes
13946 else
13947 echo "configure: failed program was:" >&5
13948 cat conftest.$ac_ext >&5
13949 rm -rf conftest*
13950 glibcpp_cv_func_fmodf_use=no
13952 rm -f conftest*
13953 ac_ext=c
13954 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13955 ac_cpp='$CPP $CPPFLAGS'
13956 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13957 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13958 cross_compiling=$ac_cv_prog_cc_cross
13964 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13966 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13967 for ac_func in fmodf
13969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13970 echo "configure:13971: checking for $ac_func" >&5
13971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13972 echo $ac_n "(cached) $ac_c" 1>&6
13973 else
13974 cat > conftest.$ac_ext <<EOF
13975 #line 13976 "configure"
13976 #include "confdefs.h"
13977 /* System header to define __stub macros and hopefully few prototypes,
13978 which can conflict with char $ac_func(); below. */
13979 #include <assert.h>
13980 /* Override any gcc2 internal prototype to avoid an error. */
13981 /* We use char because int might match the return type of a gcc2
13982 builtin and then its argument prototype would still apply. */
13983 char $ac_func();
13985 int main() {
13987 /* The GNU C library defines this for functions which it implements
13988 to always fail with ENOSYS. Some functions are actually named
13989 something starting with __ and the normal name is an alias. */
13990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13991 choke me
13992 #else
13993 $ac_func();
13994 #endif
13996 ; return 0; }
13998 if { (eval echo configure:13999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13999 rm -rf conftest*
14000 eval "ac_cv_func_$ac_func=yes"
14001 else
14002 echo "configure: failed program was:" >&5
14003 cat conftest.$ac_ext >&5
14004 rm -rf conftest*
14005 eval "ac_cv_func_$ac_func=no"
14007 rm -f conftest*
14010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14011 echo "$ac_t""yes" 1>&6
14012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14013 cat >> confdefs.h <<EOF
14014 #define $ac_tr_func 1
14017 else
14018 echo "$ac_t""no" 1>&6
14020 done
14022 else
14024 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
14025 echo "configure:14026: checking for _fmodf declaration" >&5
14026 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
14027 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
14028 echo $ac_n "(cached) $ac_c" 1>&6
14029 else
14032 ac_ext=C
14033 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14034 ac_cpp='$CXXCPP $CPPFLAGS'
14035 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14036 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14037 cross_compiling=$ac_cv_prog_cxx_cross
14039 cat > conftest.$ac_ext <<EOF
14040 #line 14041 "configure"
14041 #include "confdefs.h"
14042 #include <math.h>
14043 int main() {
14044 _fmodf(0, 0);
14045 ; return 0; }
14047 if { (eval echo configure:14048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14048 rm -rf conftest*
14049 glibcpp_cv_func__fmodf_use=yes
14050 else
14051 echo "configure: failed program was:" >&5
14052 cat conftest.$ac_ext >&5
14053 rm -rf conftest*
14054 glibcpp_cv_func__fmodf_use=no
14056 rm -f conftest*
14057 ac_ext=c
14058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14059 ac_cpp='$CPP $CPPFLAGS'
14060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14062 cross_compiling=$ac_cv_prog_cc_cross
14068 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
14070 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
14071 for ac_func in _fmodf
14073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14074 echo "configure:14075: checking for $ac_func" >&5
14075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14076 echo $ac_n "(cached) $ac_c" 1>&6
14077 else
14078 cat > conftest.$ac_ext <<EOF
14079 #line 14080 "configure"
14080 #include "confdefs.h"
14081 /* System header to define __stub macros and hopefully few prototypes,
14082 which can conflict with char $ac_func(); below. */
14083 #include <assert.h>
14084 /* Override any gcc2 internal prototype to avoid an error. */
14085 /* We use char because int might match the return type of a gcc2
14086 builtin and then its argument prototype would still apply. */
14087 char $ac_func();
14089 int main() {
14091 /* The GNU C library defines this for functions which it implements
14092 to always fail with ENOSYS. Some functions are actually named
14093 something starting with __ and the normal name is an alias. */
14094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14095 choke me
14096 #else
14097 $ac_func();
14098 #endif
14100 ; return 0; }
14102 if { (eval echo configure:14103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14103 rm -rf conftest*
14104 eval "ac_cv_func_$ac_func=yes"
14105 else
14106 echo "configure: failed program was:" >&5
14107 cat conftest.$ac_ext >&5
14108 rm -rf conftest*
14109 eval "ac_cv_func_$ac_func=no"
14111 rm -f conftest*
14114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14115 echo "$ac_t""yes" 1>&6
14116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14117 cat >> confdefs.h <<EOF
14118 #define $ac_tr_func 1
14121 else
14122 echo "$ac_t""no" 1>&6
14124 done
14131 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
14132 echo "configure:14133: checking for frexpf declaration" >&5
14133 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
14134 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
14135 echo $ac_n "(cached) $ac_c" 1>&6
14136 else
14139 ac_ext=C
14140 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14141 ac_cpp='$CXXCPP $CPPFLAGS'
14142 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14143 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14144 cross_compiling=$ac_cv_prog_cxx_cross
14146 cat > conftest.$ac_ext <<EOF
14147 #line 14148 "configure"
14148 #include "confdefs.h"
14149 #include <math.h>
14150 int main() {
14151 frexpf(0, 0);
14152 ; return 0; }
14154 if { (eval echo configure:14155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14155 rm -rf conftest*
14156 glibcpp_cv_func_frexpf_use=yes
14157 else
14158 echo "configure: failed program was:" >&5
14159 cat conftest.$ac_ext >&5
14160 rm -rf conftest*
14161 glibcpp_cv_func_frexpf_use=no
14163 rm -f conftest*
14164 ac_ext=c
14165 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14166 ac_cpp='$CPP $CPPFLAGS'
14167 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14168 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14169 cross_compiling=$ac_cv_prog_cc_cross
14175 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
14177 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
14178 for ac_func in frexpf
14180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14181 echo "configure:14182: checking for $ac_func" >&5
14182 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14183 echo $ac_n "(cached) $ac_c" 1>&6
14184 else
14185 cat > conftest.$ac_ext <<EOF
14186 #line 14187 "configure"
14187 #include "confdefs.h"
14188 /* System header to define __stub macros and hopefully few prototypes,
14189 which can conflict with char $ac_func(); below. */
14190 #include <assert.h>
14191 /* Override any gcc2 internal prototype to avoid an error. */
14192 /* We use char because int might match the return type of a gcc2
14193 builtin and then its argument prototype would still apply. */
14194 char $ac_func();
14196 int main() {
14198 /* The GNU C library defines this for functions which it implements
14199 to always fail with ENOSYS. Some functions are actually named
14200 something starting with __ and the normal name is an alias. */
14201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14202 choke me
14203 #else
14204 $ac_func();
14205 #endif
14207 ; return 0; }
14209 if { (eval echo configure:14210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14210 rm -rf conftest*
14211 eval "ac_cv_func_$ac_func=yes"
14212 else
14213 echo "configure: failed program was:" >&5
14214 cat conftest.$ac_ext >&5
14215 rm -rf conftest*
14216 eval "ac_cv_func_$ac_func=no"
14218 rm -f conftest*
14221 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14222 echo "$ac_t""yes" 1>&6
14223 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14224 cat >> confdefs.h <<EOF
14225 #define $ac_tr_func 1
14228 else
14229 echo "$ac_t""no" 1>&6
14231 done
14233 else
14235 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14236 echo "configure:14237: checking for _frexpf declaration" >&5
14237 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14238 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14239 echo $ac_n "(cached) $ac_c" 1>&6
14240 else
14243 ac_ext=C
14244 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14245 ac_cpp='$CXXCPP $CPPFLAGS'
14246 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14247 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14248 cross_compiling=$ac_cv_prog_cxx_cross
14250 cat > conftest.$ac_ext <<EOF
14251 #line 14252 "configure"
14252 #include "confdefs.h"
14253 #include <math.h>
14254 int main() {
14255 _frexpf(0, 0);
14256 ; return 0; }
14258 if { (eval echo configure:14259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14259 rm -rf conftest*
14260 glibcpp_cv_func__frexpf_use=yes
14261 else
14262 echo "configure: failed program was:" >&5
14263 cat conftest.$ac_ext >&5
14264 rm -rf conftest*
14265 glibcpp_cv_func__frexpf_use=no
14267 rm -f conftest*
14268 ac_ext=c
14269 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14270 ac_cpp='$CPP $CPPFLAGS'
14271 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14272 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14273 cross_compiling=$ac_cv_prog_cc_cross
14279 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14281 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14282 for ac_func in _frexpf
14284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14285 echo "configure:14286: checking for $ac_func" >&5
14286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14287 echo $ac_n "(cached) $ac_c" 1>&6
14288 else
14289 cat > conftest.$ac_ext <<EOF
14290 #line 14291 "configure"
14291 #include "confdefs.h"
14292 /* System header to define __stub macros and hopefully few prototypes,
14293 which can conflict with char $ac_func(); below. */
14294 #include <assert.h>
14295 /* Override any gcc2 internal prototype to avoid an error. */
14296 /* We use char because int might match the return type of a gcc2
14297 builtin and then its argument prototype would still apply. */
14298 char $ac_func();
14300 int main() {
14302 /* The GNU C library defines this for functions which it implements
14303 to always fail with ENOSYS. Some functions are actually named
14304 something starting with __ and the normal name is an alias. */
14305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14306 choke me
14307 #else
14308 $ac_func();
14309 #endif
14311 ; return 0; }
14313 if { (eval echo configure:14314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14314 rm -rf conftest*
14315 eval "ac_cv_func_$ac_func=yes"
14316 else
14317 echo "configure: failed program was:" >&5
14318 cat conftest.$ac_ext >&5
14319 rm -rf conftest*
14320 eval "ac_cv_func_$ac_func=no"
14322 rm -f conftest*
14325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14326 echo "$ac_t""yes" 1>&6
14327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14328 cat >> confdefs.h <<EOF
14329 #define $ac_tr_func 1
14332 else
14333 echo "$ac_t""no" 1>&6
14335 done
14342 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14343 echo "configure:14344: checking for hypotf declaration" >&5
14344 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14345 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14346 echo $ac_n "(cached) $ac_c" 1>&6
14347 else
14350 ac_ext=C
14351 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14352 ac_cpp='$CXXCPP $CPPFLAGS'
14353 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14354 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14355 cross_compiling=$ac_cv_prog_cxx_cross
14357 cat > conftest.$ac_ext <<EOF
14358 #line 14359 "configure"
14359 #include "confdefs.h"
14360 #include <math.h>
14361 int main() {
14362 hypotf(0, 0);
14363 ; return 0; }
14365 if { (eval echo configure:14366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14366 rm -rf conftest*
14367 glibcpp_cv_func_hypotf_use=yes
14368 else
14369 echo "configure: failed program was:" >&5
14370 cat conftest.$ac_ext >&5
14371 rm -rf conftest*
14372 glibcpp_cv_func_hypotf_use=no
14374 rm -f conftest*
14375 ac_ext=c
14376 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14377 ac_cpp='$CPP $CPPFLAGS'
14378 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14379 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14380 cross_compiling=$ac_cv_prog_cc_cross
14386 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14388 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14389 for ac_func in hypotf
14391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14392 echo "configure:14393: checking for $ac_func" >&5
14393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14394 echo $ac_n "(cached) $ac_c" 1>&6
14395 else
14396 cat > conftest.$ac_ext <<EOF
14397 #line 14398 "configure"
14398 #include "confdefs.h"
14399 /* System header to define __stub macros and hopefully few prototypes,
14400 which can conflict with char $ac_func(); below. */
14401 #include <assert.h>
14402 /* Override any gcc2 internal prototype to avoid an error. */
14403 /* We use char because int might match the return type of a gcc2
14404 builtin and then its argument prototype would still apply. */
14405 char $ac_func();
14407 int main() {
14409 /* The GNU C library defines this for functions which it implements
14410 to always fail with ENOSYS. Some functions are actually named
14411 something starting with __ and the normal name is an alias. */
14412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14413 choke me
14414 #else
14415 $ac_func();
14416 #endif
14418 ; return 0; }
14420 if { (eval echo configure:14421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14421 rm -rf conftest*
14422 eval "ac_cv_func_$ac_func=yes"
14423 else
14424 echo "configure: failed program was:" >&5
14425 cat conftest.$ac_ext >&5
14426 rm -rf conftest*
14427 eval "ac_cv_func_$ac_func=no"
14429 rm -f conftest*
14432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14433 echo "$ac_t""yes" 1>&6
14434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14435 cat >> confdefs.h <<EOF
14436 #define $ac_tr_func 1
14439 else
14440 echo "$ac_t""no" 1>&6
14442 done
14444 else
14446 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14447 echo "configure:14448: checking for _hypotf declaration" >&5
14448 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14449 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14450 echo $ac_n "(cached) $ac_c" 1>&6
14451 else
14454 ac_ext=C
14455 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14456 ac_cpp='$CXXCPP $CPPFLAGS'
14457 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14458 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14459 cross_compiling=$ac_cv_prog_cxx_cross
14461 cat > conftest.$ac_ext <<EOF
14462 #line 14463 "configure"
14463 #include "confdefs.h"
14464 #include <math.h>
14465 int main() {
14466 _hypotf(0, 0);
14467 ; return 0; }
14469 if { (eval echo configure:14470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14470 rm -rf conftest*
14471 glibcpp_cv_func__hypotf_use=yes
14472 else
14473 echo "configure: failed program was:" >&5
14474 cat conftest.$ac_ext >&5
14475 rm -rf conftest*
14476 glibcpp_cv_func__hypotf_use=no
14478 rm -f conftest*
14479 ac_ext=c
14480 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14481 ac_cpp='$CPP $CPPFLAGS'
14482 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14483 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14484 cross_compiling=$ac_cv_prog_cc_cross
14490 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14492 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14493 for ac_func in _hypotf
14495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14496 echo "configure:14497: checking for $ac_func" >&5
14497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14498 echo $ac_n "(cached) $ac_c" 1>&6
14499 else
14500 cat > conftest.$ac_ext <<EOF
14501 #line 14502 "configure"
14502 #include "confdefs.h"
14503 /* System header to define __stub macros and hopefully few prototypes,
14504 which can conflict with char $ac_func(); below. */
14505 #include <assert.h>
14506 /* Override any gcc2 internal prototype to avoid an error. */
14507 /* We use char because int might match the return type of a gcc2
14508 builtin and then its argument prototype would still apply. */
14509 char $ac_func();
14511 int main() {
14513 /* The GNU C library defines this for functions which it implements
14514 to always fail with ENOSYS. Some functions are actually named
14515 something starting with __ and the normal name is an alias. */
14516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14517 choke me
14518 #else
14519 $ac_func();
14520 #endif
14522 ; return 0; }
14524 if { (eval echo configure:14525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14525 rm -rf conftest*
14526 eval "ac_cv_func_$ac_func=yes"
14527 else
14528 echo "configure: failed program was:" >&5
14529 cat conftest.$ac_ext >&5
14530 rm -rf conftest*
14531 eval "ac_cv_func_$ac_func=no"
14533 rm -f conftest*
14536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14537 echo "$ac_t""yes" 1>&6
14538 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14539 cat >> confdefs.h <<EOF
14540 #define $ac_tr_func 1
14543 else
14544 echo "$ac_t""no" 1>&6
14546 done
14553 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14554 echo "configure:14555: checking for ldexpf declaration" >&5
14555 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14556 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14557 echo $ac_n "(cached) $ac_c" 1>&6
14558 else
14561 ac_ext=C
14562 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14563 ac_cpp='$CXXCPP $CPPFLAGS'
14564 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14565 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14566 cross_compiling=$ac_cv_prog_cxx_cross
14568 cat > conftest.$ac_ext <<EOF
14569 #line 14570 "configure"
14570 #include "confdefs.h"
14571 #include <math.h>
14572 int main() {
14573 ldexpf(0, 0);
14574 ; return 0; }
14576 if { (eval echo configure:14577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14577 rm -rf conftest*
14578 glibcpp_cv_func_ldexpf_use=yes
14579 else
14580 echo "configure: failed program was:" >&5
14581 cat conftest.$ac_ext >&5
14582 rm -rf conftest*
14583 glibcpp_cv_func_ldexpf_use=no
14585 rm -f conftest*
14586 ac_ext=c
14587 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14588 ac_cpp='$CPP $CPPFLAGS'
14589 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14590 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14591 cross_compiling=$ac_cv_prog_cc_cross
14597 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14599 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14600 for ac_func in ldexpf
14602 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14603 echo "configure:14604: checking for $ac_func" >&5
14604 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14605 echo $ac_n "(cached) $ac_c" 1>&6
14606 else
14607 cat > conftest.$ac_ext <<EOF
14608 #line 14609 "configure"
14609 #include "confdefs.h"
14610 /* System header to define __stub macros and hopefully few prototypes,
14611 which can conflict with char $ac_func(); below. */
14612 #include <assert.h>
14613 /* Override any gcc2 internal prototype to avoid an error. */
14614 /* We use char because int might match the return type of a gcc2
14615 builtin and then its argument prototype would still apply. */
14616 char $ac_func();
14618 int main() {
14620 /* The GNU C library defines this for functions which it implements
14621 to always fail with ENOSYS. Some functions are actually named
14622 something starting with __ and the normal name is an alias. */
14623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14624 choke me
14625 #else
14626 $ac_func();
14627 #endif
14629 ; return 0; }
14631 if { (eval echo configure:14632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14632 rm -rf conftest*
14633 eval "ac_cv_func_$ac_func=yes"
14634 else
14635 echo "configure: failed program was:" >&5
14636 cat conftest.$ac_ext >&5
14637 rm -rf conftest*
14638 eval "ac_cv_func_$ac_func=no"
14640 rm -f conftest*
14643 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14644 echo "$ac_t""yes" 1>&6
14645 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14646 cat >> confdefs.h <<EOF
14647 #define $ac_tr_func 1
14650 else
14651 echo "$ac_t""no" 1>&6
14653 done
14655 else
14657 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14658 echo "configure:14659: checking for _ldexpf declaration" >&5
14659 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14660 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14661 echo $ac_n "(cached) $ac_c" 1>&6
14662 else
14665 ac_ext=C
14666 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14667 ac_cpp='$CXXCPP $CPPFLAGS'
14668 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14669 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14670 cross_compiling=$ac_cv_prog_cxx_cross
14672 cat > conftest.$ac_ext <<EOF
14673 #line 14674 "configure"
14674 #include "confdefs.h"
14675 #include <math.h>
14676 int main() {
14677 _ldexpf(0, 0);
14678 ; return 0; }
14680 if { (eval echo configure:14681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14681 rm -rf conftest*
14682 glibcpp_cv_func__ldexpf_use=yes
14683 else
14684 echo "configure: failed program was:" >&5
14685 cat conftest.$ac_ext >&5
14686 rm -rf conftest*
14687 glibcpp_cv_func__ldexpf_use=no
14689 rm -f conftest*
14690 ac_ext=c
14691 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14692 ac_cpp='$CPP $CPPFLAGS'
14693 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14694 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14695 cross_compiling=$ac_cv_prog_cc_cross
14701 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14703 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14704 for ac_func in _ldexpf
14706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14707 echo "configure:14708: checking for $ac_func" >&5
14708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14709 echo $ac_n "(cached) $ac_c" 1>&6
14710 else
14711 cat > conftest.$ac_ext <<EOF
14712 #line 14713 "configure"
14713 #include "confdefs.h"
14714 /* System header to define __stub macros and hopefully few prototypes,
14715 which can conflict with char $ac_func(); below. */
14716 #include <assert.h>
14717 /* Override any gcc2 internal prototype to avoid an error. */
14718 /* We use char because int might match the return type of a gcc2
14719 builtin and then its argument prototype would still apply. */
14720 char $ac_func();
14722 int main() {
14724 /* The GNU C library defines this for functions which it implements
14725 to always fail with ENOSYS. Some functions are actually named
14726 something starting with __ and the normal name is an alias. */
14727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14728 choke me
14729 #else
14730 $ac_func();
14731 #endif
14733 ; return 0; }
14735 if { (eval echo configure:14736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14736 rm -rf conftest*
14737 eval "ac_cv_func_$ac_func=yes"
14738 else
14739 echo "configure: failed program was:" >&5
14740 cat conftest.$ac_ext >&5
14741 rm -rf conftest*
14742 eval "ac_cv_func_$ac_func=no"
14744 rm -f conftest*
14747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14748 echo "$ac_t""yes" 1>&6
14749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14750 cat >> confdefs.h <<EOF
14751 #define $ac_tr_func 1
14754 else
14755 echo "$ac_t""no" 1>&6
14757 done
14764 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14765 echo "configure:14766: checking for logf declaration" >&5
14766 if test x${glibcpp_cv_func_logf_use+set} != xset; then
14767 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14768 echo $ac_n "(cached) $ac_c" 1>&6
14769 else
14772 ac_ext=C
14773 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14774 ac_cpp='$CXXCPP $CPPFLAGS'
14775 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14776 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14777 cross_compiling=$ac_cv_prog_cxx_cross
14779 cat > conftest.$ac_ext <<EOF
14780 #line 14781 "configure"
14781 #include "confdefs.h"
14782 #include <math.h>
14783 #ifdef HAVE_IEEEFP_H
14784 #include <ieeefp.h>
14785 #endif
14787 int main() {
14788 logf(0);
14789 ; return 0; }
14791 if { (eval echo configure:14792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14792 rm -rf conftest*
14793 glibcpp_cv_func_logf_use=yes
14794 else
14795 echo "configure: failed program was:" >&5
14796 cat conftest.$ac_ext >&5
14797 rm -rf conftest*
14798 glibcpp_cv_func_logf_use=no
14800 rm -f conftest*
14801 ac_ext=c
14802 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14803 ac_cpp='$CPP $CPPFLAGS'
14804 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14805 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14806 cross_compiling=$ac_cv_prog_cc_cross
14812 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14814 if test x$glibcpp_cv_func_logf_use = x"yes"; then
14815 for ac_func in logf
14817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14818 echo "configure:14819: checking for $ac_func" >&5
14819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14820 echo $ac_n "(cached) $ac_c" 1>&6
14821 else
14822 cat > conftest.$ac_ext <<EOF
14823 #line 14824 "configure"
14824 #include "confdefs.h"
14825 /* System header to define __stub macros and hopefully few prototypes,
14826 which can conflict with char $ac_func(); below. */
14827 #include <assert.h>
14828 /* Override any gcc2 internal prototype to avoid an error. */
14829 /* We use char because int might match the return type of a gcc2
14830 builtin and then its argument prototype would still apply. */
14831 char $ac_func();
14833 int main() {
14835 /* The GNU C library defines this for functions which it implements
14836 to always fail with ENOSYS. Some functions are actually named
14837 something starting with __ and the normal name is an alias. */
14838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14839 choke me
14840 #else
14841 $ac_func();
14842 #endif
14844 ; return 0; }
14846 if { (eval echo configure:14847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14847 rm -rf conftest*
14848 eval "ac_cv_func_$ac_func=yes"
14849 else
14850 echo "configure: failed program was:" >&5
14851 cat conftest.$ac_ext >&5
14852 rm -rf conftest*
14853 eval "ac_cv_func_$ac_func=no"
14855 rm -f conftest*
14858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14859 echo "$ac_t""yes" 1>&6
14860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14861 cat >> confdefs.h <<EOF
14862 #define $ac_tr_func 1
14865 else
14866 echo "$ac_t""no" 1>&6
14868 done
14870 else
14872 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14873 echo "configure:14874: checking for _logf declaration" >&5
14874 if test x${glibcpp_cv_func__logf_use+set} != xset; then
14875 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14876 echo $ac_n "(cached) $ac_c" 1>&6
14877 else
14880 ac_ext=C
14881 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14882 ac_cpp='$CXXCPP $CPPFLAGS'
14883 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14884 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14885 cross_compiling=$ac_cv_prog_cxx_cross
14887 cat > conftest.$ac_ext <<EOF
14888 #line 14889 "configure"
14889 #include "confdefs.h"
14890 #include <math.h>
14891 #ifdef HAVE_IEEEFP_H
14892 #include <ieeefp.h>
14893 #endif
14895 int main() {
14896 _logf(0);
14897 ; return 0; }
14899 if { (eval echo configure:14900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14900 rm -rf conftest*
14901 glibcpp_cv_func__logf_use=yes
14902 else
14903 echo "configure: failed program was:" >&5
14904 cat conftest.$ac_ext >&5
14905 rm -rf conftest*
14906 glibcpp_cv_func__logf_use=no
14908 rm -f conftest*
14909 ac_ext=c
14910 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14911 ac_cpp='$CPP $CPPFLAGS'
14912 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14913 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14914 cross_compiling=$ac_cv_prog_cc_cross
14920 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14922 if test x$glibcpp_cv_func__logf_use = x"yes"; then
14923 for ac_func in _logf
14925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14926 echo "configure:14927: checking for $ac_func" >&5
14927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14928 echo $ac_n "(cached) $ac_c" 1>&6
14929 else
14930 cat > conftest.$ac_ext <<EOF
14931 #line 14932 "configure"
14932 #include "confdefs.h"
14933 /* System header to define __stub macros and hopefully few prototypes,
14934 which can conflict with char $ac_func(); below. */
14935 #include <assert.h>
14936 /* Override any gcc2 internal prototype to avoid an error. */
14937 /* We use char because int might match the return type of a gcc2
14938 builtin and then its argument prototype would still apply. */
14939 char $ac_func();
14941 int main() {
14943 /* The GNU C library defines this for functions which it implements
14944 to always fail with ENOSYS. Some functions are actually named
14945 something starting with __ and the normal name is an alias. */
14946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14947 choke me
14948 #else
14949 $ac_func();
14950 #endif
14952 ; return 0; }
14954 if { (eval echo configure:14955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14955 rm -rf conftest*
14956 eval "ac_cv_func_$ac_func=yes"
14957 else
14958 echo "configure: failed program was:" >&5
14959 cat conftest.$ac_ext >&5
14960 rm -rf conftest*
14961 eval "ac_cv_func_$ac_func=no"
14963 rm -f conftest*
14966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14967 echo "$ac_t""yes" 1>&6
14968 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14969 cat >> confdefs.h <<EOF
14970 #define $ac_tr_func 1
14973 else
14974 echo "$ac_t""no" 1>&6
14976 done
14983 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14984 echo "configure:14985: checking for log10f declaration" >&5
14985 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14986 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14987 echo $ac_n "(cached) $ac_c" 1>&6
14988 else
14991 ac_ext=C
14992 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14993 ac_cpp='$CXXCPP $CPPFLAGS'
14994 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14995 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14996 cross_compiling=$ac_cv_prog_cxx_cross
14998 cat > conftest.$ac_ext <<EOF
14999 #line 15000 "configure"
15000 #include "confdefs.h"
15001 #include <math.h>
15002 #ifdef HAVE_IEEEFP_H
15003 #include <ieeefp.h>
15004 #endif
15006 int main() {
15007 log10f(0);
15008 ; return 0; }
15010 if { (eval echo configure:15011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15011 rm -rf conftest*
15012 glibcpp_cv_func_log10f_use=yes
15013 else
15014 echo "configure: failed program was:" >&5
15015 cat conftest.$ac_ext >&5
15016 rm -rf conftest*
15017 glibcpp_cv_func_log10f_use=no
15019 rm -f conftest*
15020 ac_ext=c
15021 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15022 ac_cpp='$CPP $CPPFLAGS'
15023 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15024 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15025 cross_compiling=$ac_cv_prog_cc_cross
15031 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
15033 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
15034 for ac_func in log10f
15036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15037 echo "configure:15038: checking for $ac_func" >&5
15038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15039 echo $ac_n "(cached) $ac_c" 1>&6
15040 else
15041 cat > conftest.$ac_ext <<EOF
15042 #line 15043 "configure"
15043 #include "confdefs.h"
15044 /* System header to define __stub macros and hopefully few prototypes,
15045 which can conflict with char $ac_func(); below. */
15046 #include <assert.h>
15047 /* Override any gcc2 internal prototype to avoid an error. */
15048 /* We use char because int might match the return type of a gcc2
15049 builtin and then its argument prototype would still apply. */
15050 char $ac_func();
15052 int main() {
15054 /* The GNU C library defines this for functions which it implements
15055 to always fail with ENOSYS. Some functions are actually named
15056 something starting with __ and the normal name is an alias. */
15057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15058 choke me
15059 #else
15060 $ac_func();
15061 #endif
15063 ; return 0; }
15065 if { (eval echo configure:15066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15066 rm -rf conftest*
15067 eval "ac_cv_func_$ac_func=yes"
15068 else
15069 echo "configure: failed program was:" >&5
15070 cat conftest.$ac_ext >&5
15071 rm -rf conftest*
15072 eval "ac_cv_func_$ac_func=no"
15074 rm -f conftest*
15077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15078 echo "$ac_t""yes" 1>&6
15079 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15080 cat >> confdefs.h <<EOF
15081 #define $ac_tr_func 1
15084 else
15085 echo "$ac_t""no" 1>&6
15087 done
15089 else
15091 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
15092 echo "configure:15093: checking for _log10f declaration" >&5
15093 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
15094 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
15095 echo $ac_n "(cached) $ac_c" 1>&6
15096 else
15099 ac_ext=C
15100 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15101 ac_cpp='$CXXCPP $CPPFLAGS'
15102 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15103 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15104 cross_compiling=$ac_cv_prog_cxx_cross
15106 cat > conftest.$ac_ext <<EOF
15107 #line 15108 "configure"
15108 #include "confdefs.h"
15109 #include <math.h>
15110 #ifdef HAVE_IEEEFP_H
15111 #include <ieeefp.h>
15112 #endif
15114 int main() {
15115 _log10f(0);
15116 ; return 0; }
15118 if { (eval echo configure:15119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15119 rm -rf conftest*
15120 glibcpp_cv_func__log10f_use=yes
15121 else
15122 echo "configure: failed program was:" >&5
15123 cat conftest.$ac_ext >&5
15124 rm -rf conftest*
15125 glibcpp_cv_func__log10f_use=no
15127 rm -f conftest*
15128 ac_ext=c
15129 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15130 ac_cpp='$CPP $CPPFLAGS'
15131 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15132 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15133 cross_compiling=$ac_cv_prog_cc_cross
15139 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
15141 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
15142 for ac_func in _log10f
15144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15145 echo "configure:15146: checking for $ac_func" >&5
15146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15147 echo $ac_n "(cached) $ac_c" 1>&6
15148 else
15149 cat > conftest.$ac_ext <<EOF
15150 #line 15151 "configure"
15151 #include "confdefs.h"
15152 /* System header to define __stub macros and hopefully few prototypes,
15153 which can conflict with char $ac_func(); below. */
15154 #include <assert.h>
15155 /* Override any gcc2 internal prototype to avoid an error. */
15156 /* We use char because int might match the return type of a gcc2
15157 builtin and then its argument prototype would still apply. */
15158 char $ac_func();
15160 int main() {
15162 /* The GNU C library defines this for functions which it implements
15163 to always fail with ENOSYS. Some functions are actually named
15164 something starting with __ and the normal name is an alias. */
15165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15166 choke me
15167 #else
15168 $ac_func();
15169 #endif
15171 ; return 0; }
15173 if { (eval echo configure:15174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15174 rm -rf conftest*
15175 eval "ac_cv_func_$ac_func=yes"
15176 else
15177 echo "configure: failed program was:" >&5
15178 cat conftest.$ac_ext >&5
15179 rm -rf conftest*
15180 eval "ac_cv_func_$ac_func=no"
15182 rm -f conftest*
15185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15186 echo "$ac_t""yes" 1>&6
15187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15188 cat >> confdefs.h <<EOF
15189 #define $ac_tr_func 1
15192 else
15193 echo "$ac_t""no" 1>&6
15195 done
15202 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15203 echo "configure:15204: checking for modff declaration" >&5
15204 if test x${glibcpp_cv_func_modff_use+set} != xset; then
15205 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15206 echo $ac_n "(cached) $ac_c" 1>&6
15207 else
15210 ac_ext=C
15211 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15212 ac_cpp='$CXXCPP $CPPFLAGS'
15213 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15214 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15215 cross_compiling=$ac_cv_prog_cxx_cross
15217 cat > conftest.$ac_ext <<EOF
15218 #line 15219 "configure"
15219 #include "confdefs.h"
15220 #include <math.h>
15221 int main() {
15222 modff(0, 0);
15223 ; return 0; }
15225 if { (eval echo configure:15226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15226 rm -rf conftest*
15227 glibcpp_cv_func_modff_use=yes
15228 else
15229 echo "configure: failed program was:" >&5
15230 cat conftest.$ac_ext >&5
15231 rm -rf conftest*
15232 glibcpp_cv_func_modff_use=no
15234 rm -f conftest*
15235 ac_ext=c
15236 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15237 ac_cpp='$CPP $CPPFLAGS'
15238 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15239 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15240 cross_compiling=$ac_cv_prog_cc_cross
15246 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15248 if test x$glibcpp_cv_func_modff_use = x"yes"; then
15249 for ac_func in modff
15251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15252 echo "configure:15253: checking for $ac_func" >&5
15253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15254 echo $ac_n "(cached) $ac_c" 1>&6
15255 else
15256 cat > conftest.$ac_ext <<EOF
15257 #line 15258 "configure"
15258 #include "confdefs.h"
15259 /* System header to define __stub macros and hopefully few prototypes,
15260 which can conflict with char $ac_func(); below. */
15261 #include <assert.h>
15262 /* Override any gcc2 internal prototype to avoid an error. */
15263 /* We use char because int might match the return type of a gcc2
15264 builtin and then its argument prototype would still apply. */
15265 char $ac_func();
15267 int main() {
15269 /* The GNU C library defines this for functions which it implements
15270 to always fail with ENOSYS. Some functions are actually named
15271 something starting with __ and the normal name is an alias. */
15272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15273 choke me
15274 #else
15275 $ac_func();
15276 #endif
15278 ; return 0; }
15280 if { (eval echo configure:15281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15281 rm -rf conftest*
15282 eval "ac_cv_func_$ac_func=yes"
15283 else
15284 echo "configure: failed program was:" >&5
15285 cat conftest.$ac_ext >&5
15286 rm -rf conftest*
15287 eval "ac_cv_func_$ac_func=no"
15289 rm -f conftest*
15292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15293 echo "$ac_t""yes" 1>&6
15294 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15295 cat >> confdefs.h <<EOF
15296 #define $ac_tr_func 1
15299 else
15300 echo "$ac_t""no" 1>&6
15302 done
15304 else
15306 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15307 echo "configure:15308: checking for _modff declaration" >&5
15308 if test x${glibcpp_cv_func__modff_use+set} != xset; then
15309 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15310 echo $ac_n "(cached) $ac_c" 1>&6
15311 else
15314 ac_ext=C
15315 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15316 ac_cpp='$CXXCPP $CPPFLAGS'
15317 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15318 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15319 cross_compiling=$ac_cv_prog_cxx_cross
15321 cat > conftest.$ac_ext <<EOF
15322 #line 15323 "configure"
15323 #include "confdefs.h"
15324 #include <math.h>
15325 int main() {
15326 _modff(0, 0);
15327 ; return 0; }
15329 if { (eval echo configure:15330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15330 rm -rf conftest*
15331 glibcpp_cv_func__modff_use=yes
15332 else
15333 echo "configure: failed program was:" >&5
15334 cat conftest.$ac_ext >&5
15335 rm -rf conftest*
15336 glibcpp_cv_func__modff_use=no
15338 rm -f conftest*
15339 ac_ext=c
15340 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15341 ac_cpp='$CPP $CPPFLAGS'
15342 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15343 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15344 cross_compiling=$ac_cv_prog_cc_cross
15350 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15352 if test x$glibcpp_cv_func__modff_use = x"yes"; then
15353 for ac_func in _modff
15355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15356 echo "configure:15357: checking for $ac_func" >&5
15357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15358 echo $ac_n "(cached) $ac_c" 1>&6
15359 else
15360 cat > conftest.$ac_ext <<EOF
15361 #line 15362 "configure"
15362 #include "confdefs.h"
15363 /* System header to define __stub macros and hopefully few prototypes,
15364 which can conflict with char $ac_func(); below. */
15365 #include <assert.h>
15366 /* Override any gcc2 internal prototype to avoid an error. */
15367 /* We use char because int might match the return type of a gcc2
15368 builtin and then its argument prototype would still apply. */
15369 char $ac_func();
15371 int main() {
15373 /* The GNU C library defines this for functions which it implements
15374 to always fail with ENOSYS. Some functions are actually named
15375 something starting with __ and the normal name is an alias. */
15376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15377 choke me
15378 #else
15379 $ac_func();
15380 #endif
15382 ; return 0; }
15384 if { (eval echo configure:15385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15385 rm -rf conftest*
15386 eval "ac_cv_func_$ac_func=yes"
15387 else
15388 echo "configure: failed program was:" >&5
15389 cat conftest.$ac_ext >&5
15390 rm -rf conftest*
15391 eval "ac_cv_func_$ac_func=no"
15393 rm -f conftest*
15396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15397 echo "$ac_t""yes" 1>&6
15398 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15399 cat >> confdefs.h <<EOF
15400 #define $ac_tr_func 1
15403 else
15404 echo "$ac_t""no" 1>&6
15406 done
15413 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15414 echo "configure:15415: checking for powf declaration" >&5
15415 if test x${glibcpp_cv_func_powf_use+set} != xset; then
15416 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15417 echo $ac_n "(cached) $ac_c" 1>&6
15418 else
15421 ac_ext=C
15422 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15423 ac_cpp='$CXXCPP $CPPFLAGS'
15424 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15425 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15426 cross_compiling=$ac_cv_prog_cxx_cross
15428 cat > conftest.$ac_ext <<EOF
15429 #line 15430 "configure"
15430 #include "confdefs.h"
15431 #include <math.h>
15432 int main() {
15433 powf(0, 0);
15434 ; return 0; }
15436 if { (eval echo configure:15437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15437 rm -rf conftest*
15438 glibcpp_cv_func_powf_use=yes
15439 else
15440 echo "configure: failed program was:" >&5
15441 cat conftest.$ac_ext >&5
15442 rm -rf conftest*
15443 glibcpp_cv_func_powf_use=no
15445 rm -f conftest*
15446 ac_ext=c
15447 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15448 ac_cpp='$CPP $CPPFLAGS'
15449 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15450 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15451 cross_compiling=$ac_cv_prog_cc_cross
15457 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15459 if test x$glibcpp_cv_func_powf_use = x"yes"; then
15460 for ac_func in powf
15462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15463 echo "configure:15464: checking for $ac_func" >&5
15464 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15465 echo $ac_n "(cached) $ac_c" 1>&6
15466 else
15467 cat > conftest.$ac_ext <<EOF
15468 #line 15469 "configure"
15469 #include "confdefs.h"
15470 /* System header to define __stub macros and hopefully few prototypes,
15471 which can conflict with char $ac_func(); below. */
15472 #include <assert.h>
15473 /* Override any gcc2 internal prototype to avoid an error. */
15474 /* We use char because int might match the return type of a gcc2
15475 builtin and then its argument prototype would still apply. */
15476 char $ac_func();
15478 int main() {
15480 /* The GNU C library defines this for functions which it implements
15481 to always fail with ENOSYS. Some functions are actually named
15482 something starting with __ and the normal name is an alias. */
15483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15484 choke me
15485 #else
15486 $ac_func();
15487 #endif
15489 ; return 0; }
15491 if { (eval echo configure:15492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15492 rm -rf conftest*
15493 eval "ac_cv_func_$ac_func=yes"
15494 else
15495 echo "configure: failed program was:" >&5
15496 cat conftest.$ac_ext >&5
15497 rm -rf conftest*
15498 eval "ac_cv_func_$ac_func=no"
15500 rm -f conftest*
15503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15504 echo "$ac_t""yes" 1>&6
15505 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15506 cat >> confdefs.h <<EOF
15507 #define $ac_tr_func 1
15510 else
15511 echo "$ac_t""no" 1>&6
15513 done
15515 else
15517 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15518 echo "configure:15519: checking for _powf declaration" >&5
15519 if test x${glibcpp_cv_func__powf_use+set} != xset; then
15520 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15521 echo $ac_n "(cached) $ac_c" 1>&6
15522 else
15525 ac_ext=C
15526 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15527 ac_cpp='$CXXCPP $CPPFLAGS'
15528 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15529 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15530 cross_compiling=$ac_cv_prog_cxx_cross
15532 cat > conftest.$ac_ext <<EOF
15533 #line 15534 "configure"
15534 #include "confdefs.h"
15535 #include <math.h>
15536 int main() {
15537 _powf(0, 0);
15538 ; return 0; }
15540 if { (eval echo configure:15541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15541 rm -rf conftest*
15542 glibcpp_cv_func__powf_use=yes
15543 else
15544 echo "configure: failed program was:" >&5
15545 cat conftest.$ac_ext >&5
15546 rm -rf conftest*
15547 glibcpp_cv_func__powf_use=no
15549 rm -f conftest*
15550 ac_ext=c
15551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15552 ac_cpp='$CPP $CPPFLAGS'
15553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15554 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15555 cross_compiling=$ac_cv_prog_cc_cross
15561 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15563 if test x$glibcpp_cv_func__powf_use = x"yes"; then
15564 for ac_func in _powf
15566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15567 echo "configure:15568: checking for $ac_func" >&5
15568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15569 echo $ac_n "(cached) $ac_c" 1>&6
15570 else
15571 cat > conftest.$ac_ext <<EOF
15572 #line 15573 "configure"
15573 #include "confdefs.h"
15574 /* System header to define __stub macros and hopefully few prototypes,
15575 which can conflict with char $ac_func(); below. */
15576 #include <assert.h>
15577 /* Override any gcc2 internal prototype to avoid an error. */
15578 /* We use char because int might match the return type of a gcc2
15579 builtin and then its argument prototype would still apply. */
15580 char $ac_func();
15582 int main() {
15584 /* The GNU C library defines this for functions which it implements
15585 to always fail with ENOSYS. Some functions are actually named
15586 something starting with __ and the normal name is an alias. */
15587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15588 choke me
15589 #else
15590 $ac_func();
15591 #endif
15593 ; return 0; }
15595 if { (eval echo configure:15596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15596 rm -rf conftest*
15597 eval "ac_cv_func_$ac_func=yes"
15598 else
15599 echo "configure: failed program was:" >&5
15600 cat conftest.$ac_ext >&5
15601 rm -rf conftest*
15602 eval "ac_cv_func_$ac_func=no"
15604 rm -f conftest*
15607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15608 echo "$ac_t""yes" 1>&6
15609 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15610 cat >> confdefs.h <<EOF
15611 #define $ac_tr_func 1
15614 else
15615 echo "$ac_t""no" 1>&6
15617 done
15624 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15625 echo "configure:15626: checking for sqrtf declaration" >&5
15626 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15627 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15628 echo $ac_n "(cached) $ac_c" 1>&6
15629 else
15632 ac_ext=C
15633 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15634 ac_cpp='$CXXCPP $CPPFLAGS'
15635 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15636 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15637 cross_compiling=$ac_cv_prog_cxx_cross
15639 cat > conftest.$ac_ext <<EOF
15640 #line 15641 "configure"
15641 #include "confdefs.h"
15642 #include <math.h>
15643 #ifdef HAVE_IEEEFP_H
15644 #include <ieeefp.h>
15645 #endif
15647 int main() {
15648 sqrtf(0);
15649 ; return 0; }
15651 if { (eval echo configure:15652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15652 rm -rf conftest*
15653 glibcpp_cv_func_sqrtf_use=yes
15654 else
15655 echo "configure: failed program was:" >&5
15656 cat conftest.$ac_ext >&5
15657 rm -rf conftest*
15658 glibcpp_cv_func_sqrtf_use=no
15660 rm -f conftest*
15661 ac_ext=c
15662 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15663 ac_cpp='$CPP $CPPFLAGS'
15664 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15665 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15666 cross_compiling=$ac_cv_prog_cc_cross
15672 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15674 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15675 for ac_func in sqrtf
15677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15678 echo "configure:15679: checking for $ac_func" >&5
15679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15680 echo $ac_n "(cached) $ac_c" 1>&6
15681 else
15682 cat > conftest.$ac_ext <<EOF
15683 #line 15684 "configure"
15684 #include "confdefs.h"
15685 /* System header to define __stub macros and hopefully few prototypes,
15686 which can conflict with char $ac_func(); below. */
15687 #include <assert.h>
15688 /* Override any gcc2 internal prototype to avoid an error. */
15689 /* We use char because int might match the return type of a gcc2
15690 builtin and then its argument prototype would still apply. */
15691 char $ac_func();
15693 int main() {
15695 /* The GNU C library defines this for functions which it implements
15696 to always fail with ENOSYS. Some functions are actually named
15697 something starting with __ and the normal name is an alias. */
15698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15699 choke me
15700 #else
15701 $ac_func();
15702 #endif
15704 ; return 0; }
15706 if { (eval echo configure:15707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15707 rm -rf conftest*
15708 eval "ac_cv_func_$ac_func=yes"
15709 else
15710 echo "configure: failed program was:" >&5
15711 cat conftest.$ac_ext >&5
15712 rm -rf conftest*
15713 eval "ac_cv_func_$ac_func=no"
15715 rm -f conftest*
15718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15719 echo "$ac_t""yes" 1>&6
15720 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15721 cat >> confdefs.h <<EOF
15722 #define $ac_tr_func 1
15725 else
15726 echo "$ac_t""no" 1>&6
15728 done
15730 else
15732 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15733 echo "configure:15734: checking for _sqrtf declaration" >&5
15734 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15735 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15736 echo $ac_n "(cached) $ac_c" 1>&6
15737 else
15740 ac_ext=C
15741 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15742 ac_cpp='$CXXCPP $CPPFLAGS'
15743 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15744 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15745 cross_compiling=$ac_cv_prog_cxx_cross
15747 cat > conftest.$ac_ext <<EOF
15748 #line 15749 "configure"
15749 #include "confdefs.h"
15750 #include <math.h>
15751 #ifdef HAVE_IEEEFP_H
15752 #include <ieeefp.h>
15753 #endif
15755 int main() {
15756 _sqrtf(0);
15757 ; return 0; }
15759 if { (eval echo configure:15760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15760 rm -rf conftest*
15761 glibcpp_cv_func__sqrtf_use=yes
15762 else
15763 echo "configure: failed program was:" >&5
15764 cat conftest.$ac_ext >&5
15765 rm -rf conftest*
15766 glibcpp_cv_func__sqrtf_use=no
15768 rm -f conftest*
15769 ac_ext=c
15770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15771 ac_cpp='$CPP $CPPFLAGS'
15772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15773 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15774 cross_compiling=$ac_cv_prog_cc_cross
15780 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15782 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15783 for ac_func in _sqrtf
15785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15786 echo "configure:15787: checking for $ac_func" >&5
15787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15788 echo $ac_n "(cached) $ac_c" 1>&6
15789 else
15790 cat > conftest.$ac_ext <<EOF
15791 #line 15792 "configure"
15792 #include "confdefs.h"
15793 /* System header to define __stub macros and hopefully few prototypes,
15794 which can conflict with char $ac_func(); below. */
15795 #include <assert.h>
15796 /* Override any gcc2 internal prototype to avoid an error. */
15797 /* We use char because int might match the return type of a gcc2
15798 builtin and then its argument prototype would still apply. */
15799 char $ac_func();
15801 int main() {
15803 /* The GNU C library defines this for functions which it implements
15804 to always fail with ENOSYS. Some functions are actually named
15805 something starting with __ and the normal name is an alias. */
15806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15807 choke me
15808 #else
15809 $ac_func();
15810 #endif
15812 ; return 0; }
15814 if { (eval echo configure:15815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15815 rm -rf conftest*
15816 eval "ac_cv_func_$ac_func=yes"
15817 else
15818 echo "configure: failed program was:" >&5
15819 cat conftest.$ac_ext >&5
15820 rm -rf conftest*
15821 eval "ac_cv_func_$ac_func=no"
15823 rm -f conftest*
15826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15827 echo "$ac_t""yes" 1>&6
15828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15829 cat >> confdefs.h <<EOF
15830 #define $ac_tr_func 1
15833 else
15834 echo "$ac_t""no" 1>&6
15836 done
15843 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15844 echo "configure:15845: checking for sincosf declaration" >&5
15845 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15846 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15847 echo $ac_n "(cached) $ac_c" 1>&6
15848 else
15851 ac_ext=C
15852 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15853 ac_cpp='$CXXCPP $CPPFLAGS'
15854 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15855 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15856 cross_compiling=$ac_cv_prog_cxx_cross
15858 cat > conftest.$ac_ext <<EOF
15859 #line 15860 "configure"
15860 #include "confdefs.h"
15861 #include <math.h>
15862 int main() {
15863 sincosf(0, 0, 0);
15864 ; return 0; }
15866 if { (eval echo configure:15867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15867 rm -rf conftest*
15868 glibcpp_cv_func_sincosf_use=yes
15869 else
15870 echo "configure: failed program was:" >&5
15871 cat conftest.$ac_ext >&5
15872 rm -rf conftest*
15873 glibcpp_cv_func_sincosf_use=no
15875 rm -f conftest*
15876 ac_ext=c
15877 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15878 ac_cpp='$CPP $CPPFLAGS'
15879 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15880 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15881 cross_compiling=$ac_cv_prog_cc_cross
15887 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15889 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15890 for ac_func in sincosf
15892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15893 echo "configure:15894: checking for $ac_func" >&5
15894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15895 echo $ac_n "(cached) $ac_c" 1>&6
15896 else
15897 cat > conftest.$ac_ext <<EOF
15898 #line 15899 "configure"
15899 #include "confdefs.h"
15900 /* System header to define __stub macros and hopefully few prototypes,
15901 which can conflict with char $ac_func(); below. */
15902 #include <assert.h>
15903 /* Override any gcc2 internal prototype to avoid an error. */
15904 /* We use char because int might match the return type of a gcc2
15905 builtin and then its argument prototype would still apply. */
15906 char $ac_func();
15908 int main() {
15910 /* The GNU C library defines this for functions which it implements
15911 to always fail with ENOSYS. Some functions are actually named
15912 something starting with __ and the normal name is an alias. */
15913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15914 choke me
15915 #else
15916 $ac_func();
15917 #endif
15919 ; return 0; }
15921 if { (eval echo configure:15922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15922 rm -rf conftest*
15923 eval "ac_cv_func_$ac_func=yes"
15924 else
15925 echo "configure: failed program was:" >&5
15926 cat conftest.$ac_ext >&5
15927 rm -rf conftest*
15928 eval "ac_cv_func_$ac_func=no"
15930 rm -f conftest*
15933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15934 echo "$ac_t""yes" 1>&6
15935 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15936 cat >> confdefs.h <<EOF
15937 #define $ac_tr_func 1
15940 else
15941 echo "$ac_t""no" 1>&6
15943 done
15945 else
15947 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15948 echo "configure:15949: checking for _sincosf declaration" >&5
15949 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15950 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15951 echo $ac_n "(cached) $ac_c" 1>&6
15952 else
15955 ac_ext=C
15956 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15957 ac_cpp='$CXXCPP $CPPFLAGS'
15958 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15959 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15960 cross_compiling=$ac_cv_prog_cxx_cross
15962 cat > conftest.$ac_ext <<EOF
15963 #line 15964 "configure"
15964 #include "confdefs.h"
15965 #include <math.h>
15966 int main() {
15967 _sincosf(0, 0, 0);
15968 ; return 0; }
15970 if { (eval echo configure:15971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15971 rm -rf conftest*
15972 glibcpp_cv_func__sincosf_use=yes
15973 else
15974 echo "configure: failed program was:" >&5
15975 cat conftest.$ac_ext >&5
15976 rm -rf conftest*
15977 glibcpp_cv_func__sincosf_use=no
15979 rm -f conftest*
15980 ac_ext=c
15981 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15982 ac_cpp='$CPP $CPPFLAGS'
15983 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15984 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15985 cross_compiling=$ac_cv_prog_cc_cross
15991 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15993 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15994 for ac_func in _sincosf
15996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15997 echo "configure:15998: checking for $ac_func" >&5
15998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15999 echo $ac_n "(cached) $ac_c" 1>&6
16000 else
16001 cat > conftest.$ac_ext <<EOF
16002 #line 16003 "configure"
16003 #include "confdefs.h"
16004 /* System header to define __stub macros and hopefully few prototypes,
16005 which can conflict with char $ac_func(); below. */
16006 #include <assert.h>
16007 /* Override any gcc2 internal prototype to avoid an error. */
16008 /* We use char because int might match the return type of a gcc2
16009 builtin and then its argument prototype would still apply. */
16010 char $ac_func();
16012 int main() {
16014 /* The GNU C library defines this for functions which it implements
16015 to always fail with ENOSYS. Some functions are actually named
16016 something starting with __ and the normal name is an alias. */
16017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16018 choke me
16019 #else
16020 $ac_func();
16021 #endif
16023 ; return 0; }
16025 if { (eval echo configure:16026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16026 rm -rf conftest*
16027 eval "ac_cv_func_$ac_func=yes"
16028 else
16029 echo "configure: failed program was:" >&5
16030 cat conftest.$ac_ext >&5
16031 rm -rf conftest*
16032 eval "ac_cv_func_$ac_func=no"
16034 rm -f conftest*
16037 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16038 echo "$ac_t""yes" 1>&6
16039 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16040 cat >> confdefs.h <<EOF
16041 #define $ac_tr_func 1
16044 else
16045 echo "$ac_t""no" 1>&6
16047 done
16054 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
16055 echo "configure:16056: checking for finitef declaration" >&5
16056 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
16057 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
16058 echo $ac_n "(cached) $ac_c" 1>&6
16059 else
16062 ac_ext=C
16063 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16064 ac_cpp='$CXXCPP $CPPFLAGS'
16065 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16066 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16067 cross_compiling=$ac_cv_prog_cxx_cross
16069 cat > conftest.$ac_ext <<EOF
16070 #line 16071 "configure"
16071 #include "confdefs.h"
16072 #include <math.h>
16073 #ifdef HAVE_IEEEFP_H
16074 #include <ieeefp.h>
16075 #endif
16077 int main() {
16078 finitef(0);
16079 ; return 0; }
16081 if { (eval echo configure:16082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16082 rm -rf conftest*
16083 glibcpp_cv_func_finitef_use=yes
16084 else
16085 echo "configure: failed program was:" >&5
16086 cat conftest.$ac_ext >&5
16087 rm -rf conftest*
16088 glibcpp_cv_func_finitef_use=no
16090 rm -f conftest*
16091 ac_ext=c
16092 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16093 ac_cpp='$CPP $CPPFLAGS'
16094 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16095 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16096 cross_compiling=$ac_cv_prog_cc_cross
16102 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
16104 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
16105 for ac_func in finitef
16107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16108 echo "configure:16109: checking for $ac_func" >&5
16109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16110 echo $ac_n "(cached) $ac_c" 1>&6
16111 else
16112 cat > conftest.$ac_ext <<EOF
16113 #line 16114 "configure"
16114 #include "confdefs.h"
16115 /* System header to define __stub macros and hopefully few prototypes,
16116 which can conflict with char $ac_func(); below. */
16117 #include <assert.h>
16118 /* Override any gcc2 internal prototype to avoid an error. */
16119 /* We use char because int might match the return type of a gcc2
16120 builtin and then its argument prototype would still apply. */
16121 char $ac_func();
16123 int main() {
16125 /* The GNU C library defines this for functions which it implements
16126 to always fail with ENOSYS. Some functions are actually named
16127 something starting with __ and the normal name is an alias. */
16128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16129 choke me
16130 #else
16131 $ac_func();
16132 #endif
16134 ; return 0; }
16136 if { (eval echo configure:16137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16137 rm -rf conftest*
16138 eval "ac_cv_func_$ac_func=yes"
16139 else
16140 echo "configure: failed program was:" >&5
16141 cat conftest.$ac_ext >&5
16142 rm -rf conftest*
16143 eval "ac_cv_func_$ac_func=no"
16145 rm -f conftest*
16148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16149 echo "$ac_t""yes" 1>&6
16150 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16151 cat >> confdefs.h <<EOF
16152 #define $ac_tr_func 1
16155 else
16156 echo "$ac_t""no" 1>&6
16158 done
16160 else
16162 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
16163 echo "configure:16164: checking for _finitef declaration" >&5
16164 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
16165 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
16166 echo $ac_n "(cached) $ac_c" 1>&6
16167 else
16170 ac_ext=C
16171 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16172 ac_cpp='$CXXCPP $CPPFLAGS'
16173 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16174 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16175 cross_compiling=$ac_cv_prog_cxx_cross
16177 cat > conftest.$ac_ext <<EOF
16178 #line 16179 "configure"
16179 #include "confdefs.h"
16180 #include <math.h>
16181 #ifdef HAVE_IEEEFP_H
16182 #include <ieeefp.h>
16183 #endif
16185 int main() {
16186 _finitef(0);
16187 ; return 0; }
16189 if { (eval echo configure:16190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16190 rm -rf conftest*
16191 glibcpp_cv_func__finitef_use=yes
16192 else
16193 echo "configure: failed program was:" >&5
16194 cat conftest.$ac_ext >&5
16195 rm -rf conftest*
16196 glibcpp_cv_func__finitef_use=no
16198 rm -f conftest*
16199 ac_ext=c
16200 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16201 ac_cpp='$CPP $CPPFLAGS'
16202 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16203 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16204 cross_compiling=$ac_cv_prog_cc_cross
16210 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16212 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16213 for ac_func in _finitef
16215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16216 echo "configure:16217: checking for $ac_func" >&5
16217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16218 echo $ac_n "(cached) $ac_c" 1>&6
16219 else
16220 cat > conftest.$ac_ext <<EOF
16221 #line 16222 "configure"
16222 #include "confdefs.h"
16223 /* System header to define __stub macros and hopefully few prototypes,
16224 which can conflict with char $ac_func(); below. */
16225 #include <assert.h>
16226 /* Override any gcc2 internal prototype to avoid an error. */
16227 /* We use char because int might match the return type of a gcc2
16228 builtin and then its argument prototype would still apply. */
16229 char $ac_func();
16231 int main() {
16233 /* The GNU C library defines this for functions which it implements
16234 to always fail with ENOSYS. Some functions are actually named
16235 something starting with __ and the normal name is an alias. */
16236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16237 choke me
16238 #else
16239 $ac_func();
16240 #endif
16242 ; return 0; }
16244 if { (eval echo configure:16245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16245 rm -rf conftest*
16246 eval "ac_cv_func_$ac_func=yes"
16247 else
16248 echo "configure: failed program was:" >&5
16249 cat conftest.$ac_ext >&5
16250 rm -rf conftest*
16251 eval "ac_cv_func_$ac_func=no"
16253 rm -f conftest*
16256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16257 echo "$ac_t""yes" 1>&6
16258 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16259 cat >> confdefs.h <<EOF
16260 #define $ac_tr_func 1
16263 else
16264 echo "$ac_t""no" 1>&6
16266 done
16273 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16274 echo "configure:16275: checking for long double trig functions" >&5
16275 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16276 echo $ac_n "(cached) $ac_c" 1>&6
16277 else
16280 ac_ext=C
16281 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16282 ac_cpp='$CXXCPP $CPPFLAGS'
16283 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16284 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16285 cross_compiling=$ac_cv_prog_cxx_cross
16287 cat > conftest.$ac_ext <<EOF
16288 #line 16289 "configure"
16289 #include "confdefs.h"
16290 #include <math.h>
16291 int main() {
16292 `for x in acosl asinl atanl \
16293 cosl sinl tanl \
16294 coshl sinhl tanhl; do echo "$x (0);"; done`
16295 ; return 0; }
16297 if { (eval echo configure:16298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16298 rm -rf conftest*
16299 glibcpp_cv_func_long_double_trig_use=yes
16300 else
16301 echo "configure: failed program was:" >&5
16302 cat conftest.$ac_ext >&5
16303 rm -rf conftest*
16304 glibcpp_cv_func_long_double_trig_use=no
16306 rm -f conftest*
16307 ac_ext=c
16308 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16309 ac_cpp='$CPP $CPPFLAGS'
16310 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16311 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16312 cross_compiling=$ac_cv_prog_cc_cross
16316 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16317 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16318 for ac_func in acosl asinl atanl \
16319 cosl sinl tanl \
16320 coshl sinhl tanhl
16322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16323 echo "configure:16324: checking for $ac_func" >&5
16324 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16325 echo $ac_n "(cached) $ac_c" 1>&6
16326 else
16327 cat > conftest.$ac_ext <<EOF
16328 #line 16329 "configure"
16329 #include "confdefs.h"
16330 /* System header to define __stub macros and hopefully few prototypes,
16331 which can conflict with char $ac_func(); below. */
16332 #include <assert.h>
16333 /* Override any gcc2 internal prototype to avoid an error. */
16334 /* We use char because int might match the return type of a gcc2
16335 builtin and then its argument prototype would still apply. */
16336 char $ac_func();
16338 int main() {
16340 /* The GNU C library defines this for functions which it implements
16341 to always fail with ENOSYS. Some functions are actually named
16342 something starting with __ and the normal name is an alias. */
16343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16344 choke me
16345 #else
16346 $ac_func();
16347 #endif
16349 ; return 0; }
16351 if { (eval echo configure:16352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16352 rm -rf conftest*
16353 eval "ac_cv_func_$ac_func=yes"
16354 else
16355 echo "configure: failed program was:" >&5
16356 cat conftest.$ac_ext >&5
16357 rm -rf conftest*
16358 eval "ac_cv_func_$ac_func=no"
16360 rm -f conftest*
16363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16364 echo "$ac_t""yes" 1>&6
16365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16366 cat >> confdefs.h <<EOF
16367 #define $ac_tr_func 1
16370 else
16371 echo "$ac_t""no" 1>&6
16373 done
16378 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16379 echo "configure:16380: checking for long double round functions" >&5
16380 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16381 echo $ac_n "(cached) $ac_c" 1>&6
16382 else
16385 ac_ext=C
16386 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16387 ac_cpp='$CXXCPP $CPPFLAGS'
16388 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16389 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16390 cross_compiling=$ac_cv_prog_cxx_cross
16392 cat > conftest.$ac_ext <<EOF
16393 #line 16394 "configure"
16394 #include "confdefs.h"
16395 #include <math.h>
16396 int main() {
16397 `for x in ceill floorl; do echo "$x (0);"; done`
16398 ; return 0; }
16400 if { (eval echo configure:16401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16401 rm -rf conftest*
16402 glibcpp_cv_func_long_double_round_use=yes
16403 else
16404 echo "configure: failed program was:" >&5
16405 cat conftest.$ac_ext >&5
16406 rm -rf conftest*
16407 glibcpp_cv_func_long_double_round_use=no
16409 rm -f conftest*
16410 ac_ext=c
16411 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16412 ac_cpp='$CPP $CPPFLAGS'
16413 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16414 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16415 cross_compiling=$ac_cv_prog_cc_cross
16419 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16420 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16421 for ac_func in ceill floorl
16423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16424 echo "configure:16425: checking for $ac_func" >&5
16425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16426 echo $ac_n "(cached) $ac_c" 1>&6
16427 else
16428 cat > conftest.$ac_ext <<EOF
16429 #line 16430 "configure"
16430 #include "confdefs.h"
16431 /* System header to define __stub macros and hopefully few prototypes,
16432 which can conflict with char $ac_func(); below. */
16433 #include <assert.h>
16434 /* Override any gcc2 internal prototype to avoid an error. */
16435 /* We use char because int might match the return type of a gcc2
16436 builtin and then its argument prototype would still apply. */
16437 char $ac_func();
16439 int main() {
16441 /* The GNU C library defines this for functions which it implements
16442 to always fail with ENOSYS. Some functions are actually named
16443 something starting with __ and the normal name is an alias. */
16444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16445 choke me
16446 #else
16447 $ac_func();
16448 #endif
16450 ; return 0; }
16452 if { (eval echo configure:16453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16453 rm -rf conftest*
16454 eval "ac_cv_func_$ac_func=yes"
16455 else
16456 echo "configure: failed program was:" >&5
16457 cat conftest.$ac_ext >&5
16458 rm -rf conftest*
16459 eval "ac_cv_func_$ac_func=no"
16461 rm -f conftest*
16464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16465 echo "$ac_t""yes" 1>&6
16466 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16467 cat >> confdefs.h <<EOF
16468 #define $ac_tr_func 1
16471 else
16472 echo "$ac_t""no" 1>&6
16474 done
16480 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16481 echo "configure:16482: checking for isnanl declaration" >&5
16482 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16483 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16484 echo $ac_n "(cached) $ac_c" 1>&6
16485 else
16488 ac_ext=C
16489 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16490 ac_cpp='$CXXCPP $CPPFLAGS'
16491 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16492 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16493 cross_compiling=$ac_cv_prog_cxx_cross
16495 cat > conftest.$ac_ext <<EOF
16496 #line 16497 "configure"
16497 #include "confdefs.h"
16498 #include <math.h>
16499 #ifdef HAVE_IEEEFP_H
16500 #include <ieeefp.h>
16501 #endif
16503 int main() {
16504 isnanl(0);
16505 ; return 0; }
16507 if { (eval echo configure:16508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16508 rm -rf conftest*
16509 glibcpp_cv_func_isnanl_use=yes
16510 else
16511 echo "configure: failed program was:" >&5
16512 cat conftest.$ac_ext >&5
16513 rm -rf conftest*
16514 glibcpp_cv_func_isnanl_use=no
16516 rm -f conftest*
16517 ac_ext=c
16518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16519 ac_cpp='$CPP $CPPFLAGS'
16520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16522 cross_compiling=$ac_cv_prog_cc_cross
16528 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16530 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16531 for ac_func in isnanl
16533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16534 echo "configure:16535: checking for $ac_func" >&5
16535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16536 echo $ac_n "(cached) $ac_c" 1>&6
16537 else
16538 cat > conftest.$ac_ext <<EOF
16539 #line 16540 "configure"
16540 #include "confdefs.h"
16541 /* System header to define __stub macros and hopefully few prototypes,
16542 which can conflict with char $ac_func(); below. */
16543 #include <assert.h>
16544 /* Override any gcc2 internal prototype to avoid an error. */
16545 /* We use char because int might match the return type of a gcc2
16546 builtin and then its argument prototype would still apply. */
16547 char $ac_func();
16549 int main() {
16551 /* The GNU C library defines this for functions which it implements
16552 to always fail with ENOSYS. Some functions are actually named
16553 something starting with __ and the normal name is an alias. */
16554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16555 choke me
16556 #else
16557 $ac_func();
16558 #endif
16560 ; return 0; }
16562 if { (eval echo configure:16563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16563 rm -rf conftest*
16564 eval "ac_cv_func_$ac_func=yes"
16565 else
16566 echo "configure: failed program was:" >&5
16567 cat conftest.$ac_ext >&5
16568 rm -rf conftest*
16569 eval "ac_cv_func_$ac_func=no"
16571 rm -f conftest*
16574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16575 echo "$ac_t""yes" 1>&6
16576 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16577 cat >> confdefs.h <<EOF
16578 #define $ac_tr_func 1
16581 else
16582 echo "$ac_t""no" 1>&6
16584 done
16586 else
16588 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16589 echo "configure:16590: checking for _isnanl declaration" >&5
16590 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16591 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16592 echo $ac_n "(cached) $ac_c" 1>&6
16593 else
16596 ac_ext=C
16597 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16598 ac_cpp='$CXXCPP $CPPFLAGS'
16599 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16600 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16601 cross_compiling=$ac_cv_prog_cxx_cross
16603 cat > conftest.$ac_ext <<EOF
16604 #line 16605 "configure"
16605 #include "confdefs.h"
16606 #include <math.h>
16607 #ifdef HAVE_IEEEFP_H
16608 #include <ieeefp.h>
16609 #endif
16611 int main() {
16612 _isnanl(0);
16613 ; return 0; }
16615 if { (eval echo configure:16616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16616 rm -rf conftest*
16617 glibcpp_cv_func__isnanl_use=yes
16618 else
16619 echo "configure: failed program was:" >&5
16620 cat conftest.$ac_ext >&5
16621 rm -rf conftest*
16622 glibcpp_cv_func__isnanl_use=no
16624 rm -f conftest*
16625 ac_ext=c
16626 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16627 ac_cpp='$CPP $CPPFLAGS'
16628 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16629 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16630 cross_compiling=$ac_cv_prog_cc_cross
16636 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16638 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16639 for ac_func in _isnanl
16641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16642 echo "configure:16643: checking for $ac_func" >&5
16643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16644 echo $ac_n "(cached) $ac_c" 1>&6
16645 else
16646 cat > conftest.$ac_ext <<EOF
16647 #line 16648 "configure"
16648 #include "confdefs.h"
16649 /* System header to define __stub macros and hopefully few prototypes,
16650 which can conflict with char $ac_func(); below. */
16651 #include <assert.h>
16652 /* Override any gcc2 internal prototype to avoid an error. */
16653 /* We use char because int might match the return type of a gcc2
16654 builtin and then its argument prototype would still apply. */
16655 char $ac_func();
16657 int main() {
16659 /* The GNU C library defines this for functions which it implements
16660 to always fail with ENOSYS. Some functions are actually named
16661 something starting with __ and the normal name is an alias. */
16662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16663 choke me
16664 #else
16665 $ac_func();
16666 #endif
16668 ; return 0; }
16670 if { (eval echo configure:16671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16671 rm -rf conftest*
16672 eval "ac_cv_func_$ac_func=yes"
16673 else
16674 echo "configure: failed program was:" >&5
16675 cat conftest.$ac_ext >&5
16676 rm -rf conftest*
16677 eval "ac_cv_func_$ac_func=no"
16679 rm -f conftest*
16682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16683 echo "$ac_t""yes" 1>&6
16684 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16685 cat >> confdefs.h <<EOF
16686 #define $ac_tr_func 1
16689 else
16690 echo "$ac_t""no" 1>&6
16692 done
16699 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16700 echo "configure:16701: checking for isinfl declaration" >&5
16701 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16702 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16703 echo $ac_n "(cached) $ac_c" 1>&6
16704 else
16707 ac_ext=C
16708 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16709 ac_cpp='$CXXCPP $CPPFLAGS'
16710 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16711 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16712 cross_compiling=$ac_cv_prog_cxx_cross
16714 cat > conftest.$ac_ext <<EOF
16715 #line 16716 "configure"
16716 #include "confdefs.h"
16717 #include <math.h>
16718 #ifdef HAVE_IEEEFP_H
16719 #include <ieeefp.h>
16720 #endif
16722 int main() {
16723 isinfl(0);
16724 ; return 0; }
16726 if { (eval echo configure:16727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16727 rm -rf conftest*
16728 glibcpp_cv_func_isinfl_use=yes
16729 else
16730 echo "configure: failed program was:" >&5
16731 cat conftest.$ac_ext >&5
16732 rm -rf conftest*
16733 glibcpp_cv_func_isinfl_use=no
16735 rm -f conftest*
16736 ac_ext=c
16737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16738 ac_cpp='$CPP $CPPFLAGS'
16739 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16740 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16741 cross_compiling=$ac_cv_prog_cc_cross
16747 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16749 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16750 for ac_func in isinfl
16752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16753 echo "configure:16754: checking for $ac_func" >&5
16754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16755 echo $ac_n "(cached) $ac_c" 1>&6
16756 else
16757 cat > conftest.$ac_ext <<EOF
16758 #line 16759 "configure"
16759 #include "confdefs.h"
16760 /* System header to define __stub macros and hopefully few prototypes,
16761 which can conflict with char $ac_func(); below. */
16762 #include <assert.h>
16763 /* Override any gcc2 internal prototype to avoid an error. */
16764 /* We use char because int might match the return type of a gcc2
16765 builtin and then its argument prototype would still apply. */
16766 char $ac_func();
16768 int main() {
16770 /* The GNU C library defines this for functions which it implements
16771 to always fail with ENOSYS. Some functions are actually named
16772 something starting with __ and the normal name is an alias. */
16773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16774 choke me
16775 #else
16776 $ac_func();
16777 #endif
16779 ; return 0; }
16781 if { (eval echo configure:16782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16782 rm -rf conftest*
16783 eval "ac_cv_func_$ac_func=yes"
16784 else
16785 echo "configure: failed program was:" >&5
16786 cat conftest.$ac_ext >&5
16787 rm -rf conftest*
16788 eval "ac_cv_func_$ac_func=no"
16790 rm -f conftest*
16793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16794 echo "$ac_t""yes" 1>&6
16795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16796 cat >> confdefs.h <<EOF
16797 #define $ac_tr_func 1
16800 else
16801 echo "$ac_t""no" 1>&6
16803 done
16805 else
16807 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16808 echo "configure:16809: checking for _isinfl declaration" >&5
16809 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16810 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16811 echo $ac_n "(cached) $ac_c" 1>&6
16812 else
16815 ac_ext=C
16816 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16817 ac_cpp='$CXXCPP $CPPFLAGS'
16818 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16819 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16820 cross_compiling=$ac_cv_prog_cxx_cross
16822 cat > conftest.$ac_ext <<EOF
16823 #line 16824 "configure"
16824 #include "confdefs.h"
16825 #include <math.h>
16826 #ifdef HAVE_IEEEFP_H
16827 #include <ieeefp.h>
16828 #endif
16830 int main() {
16831 _isinfl(0);
16832 ; return 0; }
16834 if { (eval echo configure:16835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16835 rm -rf conftest*
16836 glibcpp_cv_func__isinfl_use=yes
16837 else
16838 echo "configure: failed program was:" >&5
16839 cat conftest.$ac_ext >&5
16840 rm -rf conftest*
16841 glibcpp_cv_func__isinfl_use=no
16843 rm -f conftest*
16844 ac_ext=c
16845 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16846 ac_cpp='$CPP $CPPFLAGS'
16847 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16848 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16849 cross_compiling=$ac_cv_prog_cc_cross
16855 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16857 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16858 for ac_func in _isinfl
16860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16861 echo "configure:16862: checking for $ac_func" >&5
16862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16863 echo $ac_n "(cached) $ac_c" 1>&6
16864 else
16865 cat > conftest.$ac_ext <<EOF
16866 #line 16867 "configure"
16867 #include "confdefs.h"
16868 /* System header to define __stub macros and hopefully few prototypes,
16869 which can conflict with char $ac_func(); below. */
16870 #include <assert.h>
16871 /* Override any gcc2 internal prototype to avoid an error. */
16872 /* We use char because int might match the return type of a gcc2
16873 builtin and then its argument prototype would still apply. */
16874 char $ac_func();
16876 int main() {
16878 /* The GNU C library defines this for functions which it implements
16879 to always fail with ENOSYS. Some functions are actually named
16880 something starting with __ and the normal name is an alias. */
16881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16882 choke me
16883 #else
16884 $ac_func();
16885 #endif
16887 ; return 0; }
16889 if { (eval echo configure:16890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16890 rm -rf conftest*
16891 eval "ac_cv_func_$ac_func=yes"
16892 else
16893 echo "configure: failed program was:" >&5
16894 cat conftest.$ac_ext >&5
16895 rm -rf conftest*
16896 eval "ac_cv_func_$ac_func=no"
16898 rm -f conftest*
16901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16902 echo "$ac_t""yes" 1>&6
16903 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16904 cat >> confdefs.h <<EOF
16905 #define $ac_tr_func 1
16908 else
16909 echo "$ac_t""no" 1>&6
16911 done
16918 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16919 echo "configure:16920: checking for copysignl declaration" >&5
16920 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16921 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16922 echo $ac_n "(cached) $ac_c" 1>&6
16923 else
16926 ac_ext=C
16927 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16928 ac_cpp='$CXXCPP $CPPFLAGS'
16929 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16930 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16931 cross_compiling=$ac_cv_prog_cxx_cross
16933 cat > conftest.$ac_ext <<EOF
16934 #line 16935 "configure"
16935 #include "confdefs.h"
16936 #include <math.h>
16937 int main() {
16938 copysignl(0, 0);
16939 ; return 0; }
16941 if { (eval echo configure:16942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16942 rm -rf conftest*
16943 glibcpp_cv_func_copysignl_use=yes
16944 else
16945 echo "configure: failed program was:" >&5
16946 cat conftest.$ac_ext >&5
16947 rm -rf conftest*
16948 glibcpp_cv_func_copysignl_use=no
16950 rm -f conftest*
16951 ac_ext=c
16952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16953 ac_cpp='$CPP $CPPFLAGS'
16954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16956 cross_compiling=$ac_cv_prog_cc_cross
16962 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16964 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16965 for ac_func in copysignl
16967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16968 echo "configure:16969: checking for $ac_func" >&5
16969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16970 echo $ac_n "(cached) $ac_c" 1>&6
16971 else
16972 cat > conftest.$ac_ext <<EOF
16973 #line 16974 "configure"
16974 #include "confdefs.h"
16975 /* System header to define __stub macros and hopefully few prototypes,
16976 which can conflict with char $ac_func(); below. */
16977 #include <assert.h>
16978 /* Override any gcc2 internal prototype to avoid an error. */
16979 /* We use char because int might match the return type of a gcc2
16980 builtin and then its argument prototype would still apply. */
16981 char $ac_func();
16983 int main() {
16985 /* The GNU C library defines this for functions which it implements
16986 to always fail with ENOSYS. Some functions are actually named
16987 something starting with __ and the normal name is an alias. */
16988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16989 choke me
16990 #else
16991 $ac_func();
16992 #endif
16994 ; return 0; }
16996 if { (eval echo configure:16997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16997 rm -rf conftest*
16998 eval "ac_cv_func_$ac_func=yes"
16999 else
17000 echo "configure: failed program was:" >&5
17001 cat conftest.$ac_ext >&5
17002 rm -rf conftest*
17003 eval "ac_cv_func_$ac_func=no"
17005 rm -f conftest*
17008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17009 echo "$ac_t""yes" 1>&6
17010 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17011 cat >> confdefs.h <<EOF
17012 #define $ac_tr_func 1
17015 else
17016 echo "$ac_t""no" 1>&6
17018 done
17020 else
17022 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
17023 echo "configure:17024: checking for _copysignl declaration" >&5
17024 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
17025 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
17026 echo $ac_n "(cached) $ac_c" 1>&6
17027 else
17030 ac_ext=C
17031 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17032 ac_cpp='$CXXCPP $CPPFLAGS'
17033 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17034 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17035 cross_compiling=$ac_cv_prog_cxx_cross
17037 cat > conftest.$ac_ext <<EOF
17038 #line 17039 "configure"
17039 #include "confdefs.h"
17040 #include <math.h>
17041 int main() {
17042 _copysignl(0, 0);
17043 ; return 0; }
17045 if { (eval echo configure:17046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17046 rm -rf conftest*
17047 glibcpp_cv_func__copysignl_use=yes
17048 else
17049 echo "configure: failed program was:" >&5
17050 cat conftest.$ac_ext >&5
17051 rm -rf conftest*
17052 glibcpp_cv_func__copysignl_use=no
17054 rm -f conftest*
17055 ac_ext=c
17056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17057 ac_cpp='$CPP $CPPFLAGS'
17058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17060 cross_compiling=$ac_cv_prog_cc_cross
17066 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
17068 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
17069 for ac_func in _copysignl
17071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17072 echo "configure:17073: checking for $ac_func" >&5
17073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17074 echo $ac_n "(cached) $ac_c" 1>&6
17075 else
17076 cat > conftest.$ac_ext <<EOF
17077 #line 17078 "configure"
17078 #include "confdefs.h"
17079 /* System header to define __stub macros and hopefully few prototypes,
17080 which can conflict with char $ac_func(); below. */
17081 #include <assert.h>
17082 /* Override any gcc2 internal prototype to avoid an error. */
17083 /* We use char because int might match the return type of a gcc2
17084 builtin and then its argument prototype would still apply. */
17085 char $ac_func();
17087 int main() {
17089 /* The GNU C library defines this for functions which it implements
17090 to always fail with ENOSYS. Some functions are actually named
17091 something starting with __ and the normal name is an alias. */
17092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17093 choke me
17094 #else
17095 $ac_func();
17096 #endif
17098 ; return 0; }
17100 if { (eval echo configure:17101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17101 rm -rf conftest*
17102 eval "ac_cv_func_$ac_func=yes"
17103 else
17104 echo "configure: failed program was:" >&5
17105 cat conftest.$ac_ext >&5
17106 rm -rf conftest*
17107 eval "ac_cv_func_$ac_func=no"
17109 rm -f conftest*
17112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17113 echo "$ac_t""yes" 1>&6
17114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17115 cat >> confdefs.h <<EOF
17116 #define $ac_tr_func 1
17119 else
17120 echo "$ac_t""no" 1>&6
17122 done
17129 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
17130 echo "configure:17131: checking for atan2l declaration" >&5
17131 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
17132 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
17133 echo $ac_n "(cached) $ac_c" 1>&6
17134 else
17137 ac_ext=C
17138 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17139 ac_cpp='$CXXCPP $CPPFLAGS'
17140 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17141 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17142 cross_compiling=$ac_cv_prog_cxx_cross
17144 cat > conftest.$ac_ext <<EOF
17145 #line 17146 "configure"
17146 #include "confdefs.h"
17147 #include <math.h>
17148 int main() {
17149 atan2l(0, 0);
17150 ; return 0; }
17152 if { (eval echo configure:17153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17153 rm -rf conftest*
17154 glibcpp_cv_func_atan2l_use=yes
17155 else
17156 echo "configure: failed program was:" >&5
17157 cat conftest.$ac_ext >&5
17158 rm -rf conftest*
17159 glibcpp_cv_func_atan2l_use=no
17161 rm -f conftest*
17162 ac_ext=c
17163 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17164 ac_cpp='$CPP $CPPFLAGS'
17165 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17166 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17167 cross_compiling=$ac_cv_prog_cc_cross
17173 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
17175 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
17176 for ac_func in atan2l
17178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17179 echo "configure:17180: checking for $ac_func" >&5
17180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17181 echo $ac_n "(cached) $ac_c" 1>&6
17182 else
17183 cat > conftest.$ac_ext <<EOF
17184 #line 17185 "configure"
17185 #include "confdefs.h"
17186 /* System header to define __stub macros and hopefully few prototypes,
17187 which can conflict with char $ac_func(); below. */
17188 #include <assert.h>
17189 /* Override any gcc2 internal prototype to avoid an error. */
17190 /* We use char because int might match the return type of a gcc2
17191 builtin and then its argument prototype would still apply. */
17192 char $ac_func();
17194 int main() {
17196 /* The GNU C library defines this for functions which it implements
17197 to always fail with ENOSYS. Some functions are actually named
17198 something starting with __ and the normal name is an alias. */
17199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17200 choke me
17201 #else
17202 $ac_func();
17203 #endif
17205 ; return 0; }
17207 if { (eval echo configure:17208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17208 rm -rf conftest*
17209 eval "ac_cv_func_$ac_func=yes"
17210 else
17211 echo "configure: failed program was:" >&5
17212 cat conftest.$ac_ext >&5
17213 rm -rf conftest*
17214 eval "ac_cv_func_$ac_func=no"
17216 rm -f conftest*
17219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17220 echo "$ac_t""yes" 1>&6
17221 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17222 cat >> confdefs.h <<EOF
17223 #define $ac_tr_func 1
17226 else
17227 echo "$ac_t""no" 1>&6
17229 done
17231 else
17233 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17234 echo "configure:17235: checking for _atan2l declaration" >&5
17235 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17236 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17237 echo $ac_n "(cached) $ac_c" 1>&6
17238 else
17241 ac_ext=C
17242 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17243 ac_cpp='$CXXCPP $CPPFLAGS'
17244 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17245 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17246 cross_compiling=$ac_cv_prog_cxx_cross
17248 cat > conftest.$ac_ext <<EOF
17249 #line 17250 "configure"
17250 #include "confdefs.h"
17251 #include <math.h>
17252 int main() {
17253 _atan2l(0, 0);
17254 ; return 0; }
17256 if { (eval echo configure:17257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17257 rm -rf conftest*
17258 glibcpp_cv_func__atan2l_use=yes
17259 else
17260 echo "configure: failed program was:" >&5
17261 cat conftest.$ac_ext >&5
17262 rm -rf conftest*
17263 glibcpp_cv_func__atan2l_use=no
17265 rm -f conftest*
17266 ac_ext=c
17267 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17268 ac_cpp='$CPP $CPPFLAGS'
17269 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17270 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17271 cross_compiling=$ac_cv_prog_cc_cross
17277 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17279 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17280 for ac_func in _atan2l
17282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17283 echo "configure:17284: checking for $ac_func" >&5
17284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17285 echo $ac_n "(cached) $ac_c" 1>&6
17286 else
17287 cat > conftest.$ac_ext <<EOF
17288 #line 17289 "configure"
17289 #include "confdefs.h"
17290 /* System header to define __stub macros and hopefully few prototypes,
17291 which can conflict with char $ac_func(); below. */
17292 #include <assert.h>
17293 /* Override any gcc2 internal prototype to avoid an error. */
17294 /* We use char because int might match the return type of a gcc2
17295 builtin and then its argument prototype would still apply. */
17296 char $ac_func();
17298 int main() {
17300 /* The GNU C library defines this for functions which it implements
17301 to always fail with ENOSYS. Some functions are actually named
17302 something starting with __ and the normal name is an alias. */
17303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17304 choke me
17305 #else
17306 $ac_func();
17307 #endif
17309 ; return 0; }
17311 if { (eval echo configure:17312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17312 rm -rf conftest*
17313 eval "ac_cv_func_$ac_func=yes"
17314 else
17315 echo "configure: failed program was:" >&5
17316 cat conftest.$ac_ext >&5
17317 rm -rf conftest*
17318 eval "ac_cv_func_$ac_func=no"
17320 rm -f conftest*
17323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17324 echo "$ac_t""yes" 1>&6
17325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17326 cat >> confdefs.h <<EOF
17327 #define $ac_tr_func 1
17330 else
17331 echo "$ac_t""no" 1>&6
17333 done
17340 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17341 echo "configure:17342: checking for expl declaration" >&5
17342 if test x${glibcpp_cv_func_expl_use+set} != xset; then
17343 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17344 echo $ac_n "(cached) $ac_c" 1>&6
17345 else
17348 ac_ext=C
17349 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17350 ac_cpp='$CXXCPP $CPPFLAGS'
17351 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17352 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17353 cross_compiling=$ac_cv_prog_cxx_cross
17355 cat > conftest.$ac_ext <<EOF
17356 #line 17357 "configure"
17357 #include "confdefs.h"
17358 #include <math.h>
17359 #ifdef HAVE_IEEEFP_H
17360 #include <ieeefp.h>
17361 #endif
17363 int main() {
17364 expl(0);
17365 ; return 0; }
17367 if { (eval echo configure:17368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17368 rm -rf conftest*
17369 glibcpp_cv_func_expl_use=yes
17370 else
17371 echo "configure: failed program was:" >&5
17372 cat conftest.$ac_ext >&5
17373 rm -rf conftest*
17374 glibcpp_cv_func_expl_use=no
17376 rm -f conftest*
17377 ac_ext=c
17378 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17379 ac_cpp='$CPP $CPPFLAGS'
17380 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17381 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17382 cross_compiling=$ac_cv_prog_cc_cross
17388 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17390 if test x$glibcpp_cv_func_expl_use = x"yes"; then
17391 for ac_func in expl
17393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17394 echo "configure:17395: checking for $ac_func" >&5
17395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17396 echo $ac_n "(cached) $ac_c" 1>&6
17397 else
17398 cat > conftest.$ac_ext <<EOF
17399 #line 17400 "configure"
17400 #include "confdefs.h"
17401 /* System header to define __stub macros and hopefully few prototypes,
17402 which can conflict with char $ac_func(); below. */
17403 #include <assert.h>
17404 /* Override any gcc2 internal prototype to avoid an error. */
17405 /* We use char because int might match the return type of a gcc2
17406 builtin and then its argument prototype would still apply. */
17407 char $ac_func();
17409 int main() {
17411 /* The GNU C library defines this for functions which it implements
17412 to always fail with ENOSYS. Some functions are actually named
17413 something starting with __ and the normal name is an alias. */
17414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17415 choke me
17416 #else
17417 $ac_func();
17418 #endif
17420 ; return 0; }
17422 if { (eval echo configure:17423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17423 rm -rf conftest*
17424 eval "ac_cv_func_$ac_func=yes"
17425 else
17426 echo "configure: failed program was:" >&5
17427 cat conftest.$ac_ext >&5
17428 rm -rf conftest*
17429 eval "ac_cv_func_$ac_func=no"
17431 rm -f conftest*
17434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17435 echo "$ac_t""yes" 1>&6
17436 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17437 cat >> confdefs.h <<EOF
17438 #define $ac_tr_func 1
17441 else
17442 echo "$ac_t""no" 1>&6
17444 done
17446 else
17448 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17449 echo "configure:17450: checking for _expl declaration" >&5
17450 if test x${glibcpp_cv_func__expl_use+set} != xset; then
17451 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17452 echo $ac_n "(cached) $ac_c" 1>&6
17453 else
17456 ac_ext=C
17457 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17458 ac_cpp='$CXXCPP $CPPFLAGS'
17459 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17460 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17461 cross_compiling=$ac_cv_prog_cxx_cross
17463 cat > conftest.$ac_ext <<EOF
17464 #line 17465 "configure"
17465 #include "confdefs.h"
17466 #include <math.h>
17467 #ifdef HAVE_IEEEFP_H
17468 #include <ieeefp.h>
17469 #endif
17471 int main() {
17472 _expl(0);
17473 ; return 0; }
17475 if { (eval echo configure:17476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17476 rm -rf conftest*
17477 glibcpp_cv_func__expl_use=yes
17478 else
17479 echo "configure: failed program was:" >&5
17480 cat conftest.$ac_ext >&5
17481 rm -rf conftest*
17482 glibcpp_cv_func__expl_use=no
17484 rm -f conftest*
17485 ac_ext=c
17486 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17487 ac_cpp='$CPP $CPPFLAGS'
17488 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17489 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17490 cross_compiling=$ac_cv_prog_cc_cross
17496 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17498 if test x$glibcpp_cv_func__expl_use = x"yes"; then
17499 for ac_func in _expl
17501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17502 echo "configure:17503: checking for $ac_func" >&5
17503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17504 echo $ac_n "(cached) $ac_c" 1>&6
17505 else
17506 cat > conftest.$ac_ext <<EOF
17507 #line 17508 "configure"
17508 #include "confdefs.h"
17509 /* System header to define __stub macros and hopefully few prototypes,
17510 which can conflict with char $ac_func(); below. */
17511 #include <assert.h>
17512 /* Override any gcc2 internal prototype to avoid an error. */
17513 /* We use char because int might match the return type of a gcc2
17514 builtin and then its argument prototype would still apply. */
17515 char $ac_func();
17517 int main() {
17519 /* The GNU C library defines this for functions which it implements
17520 to always fail with ENOSYS. Some functions are actually named
17521 something starting with __ and the normal name is an alias. */
17522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17523 choke me
17524 #else
17525 $ac_func();
17526 #endif
17528 ; return 0; }
17530 if { (eval echo configure:17531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17531 rm -rf conftest*
17532 eval "ac_cv_func_$ac_func=yes"
17533 else
17534 echo "configure: failed program was:" >&5
17535 cat conftest.$ac_ext >&5
17536 rm -rf conftest*
17537 eval "ac_cv_func_$ac_func=no"
17539 rm -f conftest*
17542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17543 echo "$ac_t""yes" 1>&6
17544 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17545 cat >> confdefs.h <<EOF
17546 #define $ac_tr_func 1
17549 else
17550 echo "$ac_t""no" 1>&6
17552 done
17559 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17560 echo "configure:17561: checking for fabsl declaration" >&5
17561 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17562 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17563 echo $ac_n "(cached) $ac_c" 1>&6
17564 else
17567 ac_ext=C
17568 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17569 ac_cpp='$CXXCPP $CPPFLAGS'
17570 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17571 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17572 cross_compiling=$ac_cv_prog_cxx_cross
17574 cat > conftest.$ac_ext <<EOF
17575 #line 17576 "configure"
17576 #include "confdefs.h"
17577 #include <math.h>
17578 #ifdef HAVE_IEEEFP_H
17579 #include <ieeefp.h>
17580 #endif
17582 int main() {
17583 fabsl(0);
17584 ; return 0; }
17586 if { (eval echo configure:17587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17587 rm -rf conftest*
17588 glibcpp_cv_func_fabsl_use=yes
17589 else
17590 echo "configure: failed program was:" >&5
17591 cat conftest.$ac_ext >&5
17592 rm -rf conftest*
17593 glibcpp_cv_func_fabsl_use=no
17595 rm -f conftest*
17596 ac_ext=c
17597 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17598 ac_cpp='$CPP $CPPFLAGS'
17599 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17600 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17601 cross_compiling=$ac_cv_prog_cc_cross
17607 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17609 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17610 for ac_func in fabsl
17612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17613 echo "configure:17614: checking for $ac_func" >&5
17614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17615 echo $ac_n "(cached) $ac_c" 1>&6
17616 else
17617 cat > conftest.$ac_ext <<EOF
17618 #line 17619 "configure"
17619 #include "confdefs.h"
17620 /* System header to define __stub macros and hopefully few prototypes,
17621 which can conflict with char $ac_func(); below. */
17622 #include <assert.h>
17623 /* Override any gcc2 internal prototype to avoid an error. */
17624 /* We use char because int might match the return type of a gcc2
17625 builtin and then its argument prototype would still apply. */
17626 char $ac_func();
17628 int main() {
17630 /* The GNU C library defines this for functions which it implements
17631 to always fail with ENOSYS. Some functions are actually named
17632 something starting with __ and the normal name is an alias. */
17633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17634 choke me
17635 #else
17636 $ac_func();
17637 #endif
17639 ; return 0; }
17641 if { (eval echo configure:17642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17642 rm -rf conftest*
17643 eval "ac_cv_func_$ac_func=yes"
17644 else
17645 echo "configure: failed program was:" >&5
17646 cat conftest.$ac_ext >&5
17647 rm -rf conftest*
17648 eval "ac_cv_func_$ac_func=no"
17650 rm -f conftest*
17653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17654 echo "$ac_t""yes" 1>&6
17655 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17656 cat >> confdefs.h <<EOF
17657 #define $ac_tr_func 1
17660 else
17661 echo "$ac_t""no" 1>&6
17663 done
17665 else
17667 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17668 echo "configure:17669: checking for _fabsl declaration" >&5
17669 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17670 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17671 echo $ac_n "(cached) $ac_c" 1>&6
17672 else
17675 ac_ext=C
17676 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17677 ac_cpp='$CXXCPP $CPPFLAGS'
17678 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17679 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17680 cross_compiling=$ac_cv_prog_cxx_cross
17682 cat > conftest.$ac_ext <<EOF
17683 #line 17684 "configure"
17684 #include "confdefs.h"
17685 #include <math.h>
17686 #ifdef HAVE_IEEEFP_H
17687 #include <ieeefp.h>
17688 #endif
17690 int main() {
17691 _fabsl(0);
17692 ; return 0; }
17694 if { (eval echo configure:17695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17695 rm -rf conftest*
17696 glibcpp_cv_func__fabsl_use=yes
17697 else
17698 echo "configure: failed program was:" >&5
17699 cat conftest.$ac_ext >&5
17700 rm -rf conftest*
17701 glibcpp_cv_func__fabsl_use=no
17703 rm -f conftest*
17704 ac_ext=c
17705 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17706 ac_cpp='$CPP $CPPFLAGS'
17707 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17708 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17709 cross_compiling=$ac_cv_prog_cc_cross
17715 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17717 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17718 for ac_func in _fabsl
17720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17721 echo "configure:17722: checking for $ac_func" >&5
17722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17723 echo $ac_n "(cached) $ac_c" 1>&6
17724 else
17725 cat > conftest.$ac_ext <<EOF
17726 #line 17727 "configure"
17727 #include "confdefs.h"
17728 /* System header to define __stub macros and hopefully few prototypes,
17729 which can conflict with char $ac_func(); below. */
17730 #include <assert.h>
17731 /* Override any gcc2 internal prototype to avoid an error. */
17732 /* We use char because int might match the return type of a gcc2
17733 builtin and then its argument prototype would still apply. */
17734 char $ac_func();
17736 int main() {
17738 /* The GNU C library defines this for functions which it implements
17739 to always fail with ENOSYS. Some functions are actually named
17740 something starting with __ and the normal name is an alias. */
17741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17742 choke me
17743 #else
17744 $ac_func();
17745 #endif
17747 ; return 0; }
17749 if { (eval echo configure:17750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17750 rm -rf conftest*
17751 eval "ac_cv_func_$ac_func=yes"
17752 else
17753 echo "configure: failed program was:" >&5
17754 cat conftest.$ac_ext >&5
17755 rm -rf conftest*
17756 eval "ac_cv_func_$ac_func=no"
17758 rm -f conftest*
17761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17762 echo "$ac_t""yes" 1>&6
17763 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17764 cat >> confdefs.h <<EOF
17765 #define $ac_tr_func 1
17768 else
17769 echo "$ac_t""no" 1>&6
17771 done
17778 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17779 echo "configure:17780: checking for fmodl declaration" >&5
17780 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17781 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17782 echo $ac_n "(cached) $ac_c" 1>&6
17783 else
17786 ac_ext=C
17787 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17788 ac_cpp='$CXXCPP $CPPFLAGS'
17789 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17790 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17791 cross_compiling=$ac_cv_prog_cxx_cross
17793 cat > conftest.$ac_ext <<EOF
17794 #line 17795 "configure"
17795 #include "confdefs.h"
17796 #include <math.h>
17797 int main() {
17798 fmodl(0, 0);
17799 ; return 0; }
17801 if { (eval echo configure:17802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17802 rm -rf conftest*
17803 glibcpp_cv_func_fmodl_use=yes
17804 else
17805 echo "configure: failed program was:" >&5
17806 cat conftest.$ac_ext >&5
17807 rm -rf conftest*
17808 glibcpp_cv_func_fmodl_use=no
17810 rm -f conftest*
17811 ac_ext=c
17812 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17813 ac_cpp='$CPP $CPPFLAGS'
17814 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17815 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17816 cross_compiling=$ac_cv_prog_cc_cross
17822 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17824 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17825 for ac_func in fmodl
17827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17828 echo "configure:17829: checking for $ac_func" >&5
17829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17830 echo $ac_n "(cached) $ac_c" 1>&6
17831 else
17832 cat > conftest.$ac_ext <<EOF
17833 #line 17834 "configure"
17834 #include "confdefs.h"
17835 /* System header to define __stub macros and hopefully few prototypes,
17836 which can conflict with char $ac_func(); below. */
17837 #include <assert.h>
17838 /* Override any gcc2 internal prototype to avoid an error. */
17839 /* We use char because int might match the return type of a gcc2
17840 builtin and then its argument prototype would still apply. */
17841 char $ac_func();
17843 int main() {
17845 /* The GNU C library defines this for functions which it implements
17846 to always fail with ENOSYS. Some functions are actually named
17847 something starting with __ and the normal name is an alias. */
17848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17849 choke me
17850 #else
17851 $ac_func();
17852 #endif
17854 ; return 0; }
17856 if { (eval echo configure:17857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17857 rm -rf conftest*
17858 eval "ac_cv_func_$ac_func=yes"
17859 else
17860 echo "configure: failed program was:" >&5
17861 cat conftest.$ac_ext >&5
17862 rm -rf conftest*
17863 eval "ac_cv_func_$ac_func=no"
17865 rm -f conftest*
17868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17869 echo "$ac_t""yes" 1>&6
17870 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17871 cat >> confdefs.h <<EOF
17872 #define $ac_tr_func 1
17875 else
17876 echo "$ac_t""no" 1>&6
17878 done
17880 else
17882 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17883 echo "configure:17884: checking for _fmodl declaration" >&5
17884 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17885 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17886 echo $ac_n "(cached) $ac_c" 1>&6
17887 else
17890 ac_ext=C
17891 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17892 ac_cpp='$CXXCPP $CPPFLAGS'
17893 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17894 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17895 cross_compiling=$ac_cv_prog_cxx_cross
17897 cat > conftest.$ac_ext <<EOF
17898 #line 17899 "configure"
17899 #include "confdefs.h"
17900 #include <math.h>
17901 int main() {
17902 _fmodl(0, 0);
17903 ; return 0; }
17905 if { (eval echo configure:17906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17906 rm -rf conftest*
17907 glibcpp_cv_func__fmodl_use=yes
17908 else
17909 echo "configure: failed program was:" >&5
17910 cat conftest.$ac_ext >&5
17911 rm -rf conftest*
17912 glibcpp_cv_func__fmodl_use=no
17914 rm -f conftest*
17915 ac_ext=c
17916 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17917 ac_cpp='$CPP $CPPFLAGS'
17918 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17919 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17920 cross_compiling=$ac_cv_prog_cc_cross
17926 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17928 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17929 for ac_func in _fmodl
17931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17932 echo "configure:17933: checking for $ac_func" >&5
17933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17934 echo $ac_n "(cached) $ac_c" 1>&6
17935 else
17936 cat > conftest.$ac_ext <<EOF
17937 #line 17938 "configure"
17938 #include "confdefs.h"
17939 /* System header to define __stub macros and hopefully few prototypes,
17940 which can conflict with char $ac_func(); below. */
17941 #include <assert.h>
17942 /* Override any gcc2 internal prototype to avoid an error. */
17943 /* We use char because int might match the return type of a gcc2
17944 builtin and then its argument prototype would still apply. */
17945 char $ac_func();
17947 int main() {
17949 /* The GNU C library defines this for functions which it implements
17950 to always fail with ENOSYS. Some functions are actually named
17951 something starting with __ and the normal name is an alias. */
17952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17953 choke me
17954 #else
17955 $ac_func();
17956 #endif
17958 ; return 0; }
17960 if { (eval echo configure:17961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17961 rm -rf conftest*
17962 eval "ac_cv_func_$ac_func=yes"
17963 else
17964 echo "configure: failed program was:" >&5
17965 cat conftest.$ac_ext >&5
17966 rm -rf conftest*
17967 eval "ac_cv_func_$ac_func=no"
17969 rm -f conftest*
17972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17973 echo "$ac_t""yes" 1>&6
17974 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17975 cat >> confdefs.h <<EOF
17976 #define $ac_tr_func 1
17979 else
17980 echo "$ac_t""no" 1>&6
17982 done
17989 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17990 echo "configure:17991: checking for frexpl declaration" >&5
17991 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17992 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17993 echo $ac_n "(cached) $ac_c" 1>&6
17994 else
17997 ac_ext=C
17998 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17999 ac_cpp='$CXXCPP $CPPFLAGS'
18000 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18001 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18002 cross_compiling=$ac_cv_prog_cxx_cross
18004 cat > conftest.$ac_ext <<EOF
18005 #line 18006 "configure"
18006 #include "confdefs.h"
18007 #include <math.h>
18008 int main() {
18009 frexpl(0, 0);
18010 ; return 0; }
18012 if { (eval echo configure:18013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18013 rm -rf conftest*
18014 glibcpp_cv_func_frexpl_use=yes
18015 else
18016 echo "configure: failed program was:" >&5
18017 cat conftest.$ac_ext >&5
18018 rm -rf conftest*
18019 glibcpp_cv_func_frexpl_use=no
18021 rm -f conftest*
18022 ac_ext=c
18023 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18024 ac_cpp='$CPP $CPPFLAGS'
18025 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18026 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18027 cross_compiling=$ac_cv_prog_cc_cross
18033 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
18035 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
18036 for ac_func in frexpl
18038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18039 echo "configure:18040: checking for $ac_func" >&5
18040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18041 echo $ac_n "(cached) $ac_c" 1>&6
18042 else
18043 cat > conftest.$ac_ext <<EOF
18044 #line 18045 "configure"
18045 #include "confdefs.h"
18046 /* System header to define __stub macros and hopefully few prototypes,
18047 which can conflict with char $ac_func(); below. */
18048 #include <assert.h>
18049 /* Override any gcc2 internal prototype to avoid an error. */
18050 /* We use char because int might match the return type of a gcc2
18051 builtin and then its argument prototype would still apply. */
18052 char $ac_func();
18054 int main() {
18056 /* The GNU C library defines this for functions which it implements
18057 to always fail with ENOSYS. Some functions are actually named
18058 something starting with __ and the normal name is an alias. */
18059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18060 choke me
18061 #else
18062 $ac_func();
18063 #endif
18065 ; return 0; }
18067 if { (eval echo configure:18068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18068 rm -rf conftest*
18069 eval "ac_cv_func_$ac_func=yes"
18070 else
18071 echo "configure: failed program was:" >&5
18072 cat conftest.$ac_ext >&5
18073 rm -rf conftest*
18074 eval "ac_cv_func_$ac_func=no"
18076 rm -f conftest*
18079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18080 echo "$ac_t""yes" 1>&6
18081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18082 cat >> confdefs.h <<EOF
18083 #define $ac_tr_func 1
18086 else
18087 echo "$ac_t""no" 1>&6
18089 done
18091 else
18093 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
18094 echo "configure:18095: checking for _frexpl declaration" >&5
18095 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
18096 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
18097 echo $ac_n "(cached) $ac_c" 1>&6
18098 else
18101 ac_ext=C
18102 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18103 ac_cpp='$CXXCPP $CPPFLAGS'
18104 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18105 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18106 cross_compiling=$ac_cv_prog_cxx_cross
18108 cat > conftest.$ac_ext <<EOF
18109 #line 18110 "configure"
18110 #include "confdefs.h"
18111 #include <math.h>
18112 int main() {
18113 _frexpl(0, 0);
18114 ; return 0; }
18116 if { (eval echo configure:18117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18117 rm -rf conftest*
18118 glibcpp_cv_func__frexpl_use=yes
18119 else
18120 echo "configure: failed program was:" >&5
18121 cat conftest.$ac_ext >&5
18122 rm -rf conftest*
18123 glibcpp_cv_func__frexpl_use=no
18125 rm -f conftest*
18126 ac_ext=c
18127 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18128 ac_cpp='$CPP $CPPFLAGS'
18129 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18130 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18131 cross_compiling=$ac_cv_prog_cc_cross
18137 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
18139 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
18140 for ac_func in _frexpl
18142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18143 echo "configure:18144: checking for $ac_func" >&5
18144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18145 echo $ac_n "(cached) $ac_c" 1>&6
18146 else
18147 cat > conftest.$ac_ext <<EOF
18148 #line 18149 "configure"
18149 #include "confdefs.h"
18150 /* System header to define __stub macros and hopefully few prototypes,
18151 which can conflict with char $ac_func(); below. */
18152 #include <assert.h>
18153 /* Override any gcc2 internal prototype to avoid an error. */
18154 /* We use char because int might match the return type of a gcc2
18155 builtin and then its argument prototype would still apply. */
18156 char $ac_func();
18158 int main() {
18160 /* The GNU C library defines this for functions which it implements
18161 to always fail with ENOSYS. Some functions are actually named
18162 something starting with __ and the normal name is an alias. */
18163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18164 choke me
18165 #else
18166 $ac_func();
18167 #endif
18169 ; return 0; }
18171 if { (eval echo configure:18172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18172 rm -rf conftest*
18173 eval "ac_cv_func_$ac_func=yes"
18174 else
18175 echo "configure: failed program was:" >&5
18176 cat conftest.$ac_ext >&5
18177 rm -rf conftest*
18178 eval "ac_cv_func_$ac_func=no"
18180 rm -f conftest*
18183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18184 echo "$ac_t""yes" 1>&6
18185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18186 cat >> confdefs.h <<EOF
18187 #define $ac_tr_func 1
18190 else
18191 echo "$ac_t""no" 1>&6
18193 done
18200 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18201 echo "configure:18202: checking for hypotl declaration" >&5
18202 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18203 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18204 echo $ac_n "(cached) $ac_c" 1>&6
18205 else
18208 ac_ext=C
18209 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18210 ac_cpp='$CXXCPP $CPPFLAGS'
18211 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18212 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18213 cross_compiling=$ac_cv_prog_cxx_cross
18215 cat > conftest.$ac_ext <<EOF
18216 #line 18217 "configure"
18217 #include "confdefs.h"
18218 #include <math.h>
18219 int main() {
18220 hypotl(0, 0);
18221 ; return 0; }
18223 if { (eval echo configure:18224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18224 rm -rf conftest*
18225 glibcpp_cv_func_hypotl_use=yes
18226 else
18227 echo "configure: failed program was:" >&5
18228 cat conftest.$ac_ext >&5
18229 rm -rf conftest*
18230 glibcpp_cv_func_hypotl_use=no
18232 rm -f conftest*
18233 ac_ext=c
18234 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18235 ac_cpp='$CPP $CPPFLAGS'
18236 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18237 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18238 cross_compiling=$ac_cv_prog_cc_cross
18244 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18246 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18247 for ac_func in hypotl
18249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18250 echo "configure:18251: checking for $ac_func" >&5
18251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18252 echo $ac_n "(cached) $ac_c" 1>&6
18253 else
18254 cat > conftest.$ac_ext <<EOF
18255 #line 18256 "configure"
18256 #include "confdefs.h"
18257 /* System header to define __stub macros and hopefully few prototypes,
18258 which can conflict with char $ac_func(); below. */
18259 #include <assert.h>
18260 /* Override any gcc2 internal prototype to avoid an error. */
18261 /* We use char because int might match the return type of a gcc2
18262 builtin and then its argument prototype would still apply. */
18263 char $ac_func();
18265 int main() {
18267 /* The GNU C library defines this for functions which it implements
18268 to always fail with ENOSYS. Some functions are actually named
18269 something starting with __ and the normal name is an alias. */
18270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18271 choke me
18272 #else
18273 $ac_func();
18274 #endif
18276 ; return 0; }
18278 if { (eval echo configure:18279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18279 rm -rf conftest*
18280 eval "ac_cv_func_$ac_func=yes"
18281 else
18282 echo "configure: failed program was:" >&5
18283 cat conftest.$ac_ext >&5
18284 rm -rf conftest*
18285 eval "ac_cv_func_$ac_func=no"
18287 rm -f conftest*
18290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18291 echo "$ac_t""yes" 1>&6
18292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18293 cat >> confdefs.h <<EOF
18294 #define $ac_tr_func 1
18297 else
18298 echo "$ac_t""no" 1>&6
18300 done
18302 else
18304 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18305 echo "configure:18306: checking for _hypotl declaration" >&5
18306 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18307 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18308 echo $ac_n "(cached) $ac_c" 1>&6
18309 else
18312 ac_ext=C
18313 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18314 ac_cpp='$CXXCPP $CPPFLAGS'
18315 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18316 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18317 cross_compiling=$ac_cv_prog_cxx_cross
18319 cat > conftest.$ac_ext <<EOF
18320 #line 18321 "configure"
18321 #include "confdefs.h"
18322 #include <math.h>
18323 int main() {
18324 _hypotl(0, 0);
18325 ; return 0; }
18327 if { (eval echo configure:18328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18328 rm -rf conftest*
18329 glibcpp_cv_func__hypotl_use=yes
18330 else
18331 echo "configure: failed program was:" >&5
18332 cat conftest.$ac_ext >&5
18333 rm -rf conftest*
18334 glibcpp_cv_func__hypotl_use=no
18336 rm -f conftest*
18337 ac_ext=c
18338 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18339 ac_cpp='$CPP $CPPFLAGS'
18340 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18341 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18342 cross_compiling=$ac_cv_prog_cc_cross
18348 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18350 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18351 for ac_func in _hypotl
18353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18354 echo "configure:18355: checking for $ac_func" >&5
18355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18356 echo $ac_n "(cached) $ac_c" 1>&6
18357 else
18358 cat > conftest.$ac_ext <<EOF
18359 #line 18360 "configure"
18360 #include "confdefs.h"
18361 /* System header to define __stub macros and hopefully few prototypes,
18362 which can conflict with char $ac_func(); below. */
18363 #include <assert.h>
18364 /* Override any gcc2 internal prototype to avoid an error. */
18365 /* We use char because int might match the return type of a gcc2
18366 builtin and then its argument prototype would still apply. */
18367 char $ac_func();
18369 int main() {
18371 /* The GNU C library defines this for functions which it implements
18372 to always fail with ENOSYS. Some functions are actually named
18373 something starting with __ and the normal name is an alias. */
18374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18375 choke me
18376 #else
18377 $ac_func();
18378 #endif
18380 ; return 0; }
18382 if { (eval echo configure:18383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18383 rm -rf conftest*
18384 eval "ac_cv_func_$ac_func=yes"
18385 else
18386 echo "configure: failed program was:" >&5
18387 cat conftest.$ac_ext >&5
18388 rm -rf conftest*
18389 eval "ac_cv_func_$ac_func=no"
18391 rm -f conftest*
18394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18395 echo "$ac_t""yes" 1>&6
18396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18397 cat >> confdefs.h <<EOF
18398 #define $ac_tr_func 1
18401 else
18402 echo "$ac_t""no" 1>&6
18404 done
18411 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18412 echo "configure:18413: checking for ldexpl declaration" >&5
18413 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18414 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18415 echo $ac_n "(cached) $ac_c" 1>&6
18416 else
18419 ac_ext=C
18420 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18421 ac_cpp='$CXXCPP $CPPFLAGS'
18422 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18423 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18424 cross_compiling=$ac_cv_prog_cxx_cross
18426 cat > conftest.$ac_ext <<EOF
18427 #line 18428 "configure"
18428 #include "confdefs.h"
18429 #include <math.h>
18430 int main() {
18431 ldexpl(0, 0);
18432 ; return 0; }
18434 if { (eval echo configure:18435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18435 rm -rf conftest*
18436 glibcpp_cv_func_ldexpl_use=yes
18437 else
18438 echo "configure: failed program was:" >&5
18439 cat conftest.$ac_ext >&5
18440 rm -rf conftest*
18441 glibcpp_cv_func_ldexpl_use=no
18443 rm -f conftest*
18444 ac_ext=c
18445 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18446 ac_cpp='$CPP $CPPFLAGS'
18447 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18448 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18449 cross_compiling=$ac_cv_prog_cc_cross
18455 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18457 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18458 for ac_func in ldexpl
18460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18461 echo "configure:18462: checking for $ac_func" >&5
18462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18463 echo $ac_n "(cached) $ac_c" 1>&6
18464 else
18465 cat > conftest.$ac_ext <<EOF
18466 #line 18467 "configure"
18467 #include "confdefs.h"
18468 /* System header to define __stub macros and hopefully few prototypes,
18469 which can conflict with char $ac_func(); below. */
18470 #include <assert.h>
18471 /* Override any gcc2 internal prototype to avoid an error. */
18472 /* We use char because int might match the return type of a gcc2
18473 builtin and then its argument prototype would still apply. */
18474 char $ac_func();
18476 int main() {
18478 /* The GNU C library defines this for functions which it implements
18479 to always fail with ENOSYS. Some functions are actually named
18480 something starting with __ and the normal name is an alias. */
18481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18482 choke me
18483 #else
18484 $ac_func();
18485 #endif
18487 ; return 0; }
18489 if { (eval echo configure:18490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18490 rm -rf conftest*
18491 eval "ac_cv_func_$ac_func=yes"
18492 else
18493 echo "configure: failed program was:" >&5
18494 cat conftest.$ac_ext >&5
18495 rm -rf conftest*
18496 eval "ac_cv_func_$ac_func=no"
18498 rm -f conftest*
18501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18502 echo "$ac_t""yes" 1>&6
18503 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18504 cat >> confdefs.h <<EOF
18505 #define $ac_tr_func 1
18508 else
18509 echo "$ac_t""no" 1>&6
18511 done
18513 else
18515 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18516 echo "configure:18517: checking for _ldexpl declaration" >&5
18517 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18518 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18519 echo $ac_n "(cached) $ac_c" 1>&6
18520 else
18523 ac_ext=C
18524 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18525 ac_cpp='$CXXCPP $CPPFLAGS'
18526 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18527 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18528 cross_compiling=$ac_cv_prog_cxx_cross
18530 cat > conftest.$ac_ext <<EOF
18531 #line 18532 "configure"
18532 #include "confdefs.h"
18533 #include <math.h>
18534 int main() {
18535 _ldexpl(0, 0);
18536 ; return 0; }
18538 if { (eval echo configure:18539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18539 rm -rf conftest*
18540 glibcpp_cv_func__ldexpl_use=yes
18541 else
18542 echo "configure: failed program was:" >&5
18543 cat conftest.$ac_ext >&5
18544 rm -rf conftest*
18545 glibcpp_cv_func__ldexpl_use=no
18547 rm -f conftest*
18548 ac_ext=c
18549 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18550 ac_cpp='$CPP $CPPFLAGS'
18551 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18552 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18553 cross_compiling=$ac_cv_prog_cc_cross
18559 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18561 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18562 for ac_func in _ldexpl
18564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18565 echo "configure:18566: checking for $ac_func" >&5
18566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18567 echo $ac_n "(cached) $ac_c" 1>&6
18568 else
18569 cat > conftest.$ac_ext <<EOF
18570 #line 18571 "configure"
18571 #include "confdefs.h"
18572 /* System header to define __stub macros and hopefully few prototypes,
18573 which can conflict with char $ac_func(); below. */
18574 #include <assert.h>
18575 /* Override any gcc2 internal prototype to avoid an error. */
18576 /* We use char because int might match the return type of a gcc2
18577 builtin and then its argument prototype would still apply. */
18578 char $ac_func();
18580 int main() {
18582 /* The GNU C library defines this for functions which it implements
18583 to always fail with ENOSYS. Some functions are actually named
18584 something starting with __ and the normal name is an alias. */
18585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18586 choke me
18587 #else
18588 $ac_func();
18589 #endif
18591 ; return 0; }
18593 if { (eval echo configure:18594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18594 rm -rf conftest*
18595 eval "ac_cv_func_$ac_func=yes"
18596 else
18597 echo "configure: failed program was:" >&5
18598 cat conftest.$ac_ext >&5
18599 rm -rf conftest*
18600 eval "ac_cv_func_$ac_func=no"
18602 rm -f conftest*
18605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18606 echo "$ac_t""yes" 1>&6
18607 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18608 cat >> confdefs.h <<EOF
18609 #define $ac_tr_func 1
18612 else
18613 echo "$ac_t""no" 1>&6
18615 done
18622 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18623 echo "configure:18624: checking for logl declaration" >&5
18624 if test x${glibcpp_cv_func_logl_use+set} != xset; then
18625 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18626 echo $ac_n "(cached) $ac_c" 1>&6
18627 else
18630 ac_ext=C
18631 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18632 ac_cpp='$CXXCPP $CPPFLAGS'
18633 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18634 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18635 cross_compiling=$ac_cv_prog_cxx_cross
18637 cat > conftest.$ac_ext <<EOF
18638 #line 18639 "configure"
18639 #include "confdefs.h"
18640 #include <math.h>
18641 #ifdef HAVE_IEEEFP_H
18642 #include <ieeefp.h>
18643 #endif
18645 int main() {
18646 logl(0);
18647 ; return 0; }
18649 if { (eval echo configure:18650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18650 rm -rf conftest*
18651 glibcpp_cv_func_logl_use=yes
18652 else
18653 echo "configure: failed program was:" >&5
18654 cat conftest.$ac_ext >&5
18655 rm -rf conftest*
18656 glibcpp_cv_func_logl_use=no
18658 rm -f conftest*
18659 ac_ext=c
18660 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18661 ac_cpp='$CPP $CPPFLAGS'
18662 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18663 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18664 cross_compiling=$ac_cv_prog_cc_cross
18670 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18672 if test x$glibcpp_cv_func_logl_use = x"yes"; then
18673 for ac_func in logl
18675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18676 echo "configure:18677: checking for $ac_func" >&5
18677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18678 echo $ac_n "(cached) $ac_c" 1>&6
18679 else
18680 cat > conftest.$ac_ext <<EOF
18681 #line 18682 "configure"
18682 #include "confdefs.h"
18683 /* System header to define __stub macros and hopefully few prototypes,
18684 which can conflict with char $ac_func(); below. */
18685 #include <assert.h>
18686 /* Override any gcc2 internal prototype to avoid an error. */
18687 /* We use char because int might match the return type of a gcc2
18688 builtin and then its argument prototype would still apply. */
18689 char $ac_func();
18691 int main() {
18693 /* The GNU C library defines this for functions which it implements
18694 to always fail with ENOSYS. Some functions are actually named
18695 something starting with __ and the normal name is an alias. */
18696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18697 choke me
18698 #else
18699 $ac_func();
18700 #endif
18702 ; return 0; }
18704 if { (eval echo configure:18705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18705 rm -rf conftest*
18706 eval "ac_cv_func_$ac_func=yes"
18707 else
18708 echo "configure: failed program was:" >&5
18709 cat conftest.$ac_ext >&5
18710 rm -rf conftest*
18711 eval "ac_cv_func_$ac_func=no"
18713 rm -f conftest*
18716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18717 echo "$ac_t""yes" 1>&6
18718 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18719 cat >> confdefs.h <<EOF
18720 #define $ac_tr_func 1
18723 else
18724 echo "$ac_t""no" 1>&6
18726 done
18728 else
18730 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18731 echo "configure:18732: checking for _logl declaration" >&5
18732 if test x${glibcpp_cv_func__logl_use+set} != xset; then
18733 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18734 echo $ac_n "(cached) $ac_c" 1>&6
18735 else
18738 ac_ext=C
18739 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18740 ac_cpp='$CXXCPP $CPPFLAGS'
18741 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18742 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18743 cross_compiling=$ac_cv_prog_cxx_cross
18745 cat > conftest.$ac_ext <<EOF
18746 #line 18747 "configure"
18747 #include "confdefs.h"
18748 #include <math.h>
18749 #ifdef HAVE_IEEEFP_H
18750 #include <ieeefp.h>
18751 #endif
18753 int main() {
18754 _logl(0);
18755 ; return 0; }
18757 if { (eval echo configure:18758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18758 rm -rf conftest*
18759 glibcpp_cv_func__logl_use=yes
18760 else
18761 echo "configure: failed program was:" >&5
18762 cat conftest.$ac_ext >&5
18763 rm -rf conftest*
18764 glibcpp_cv_func__logl_use=no
18766 rm -f conftest*
18767 ac_ext=c
18768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18769 ac_cpp='$CPP $CPPFLAGS'
18770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18772 cross_compiling=$ac_cv_prog_cc_cross
18778 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18780 if test x$glibcpp_cv_func__logl_use = x"yes"; then
18781 for ac_func in _logl
18783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18784 echo "configure:18785: checking for $ac_func" >&5
18785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18786 echo $ac_n "(cached) $ac_c" 1>&6
18787 else
18788 cat > conftest.$ac_ext <<EOF
18789 #line 18790 "configure"
18790 #include "confdefs.h"
18791 /* System header to define __stub macros and hopefully few prototypes,
18792 which can conflict with char $ac_func(); below. */
18793 #include <assert.h>
18794 /* Override any gcc2 internal prototype to avoid an error. */
18795 /* We use char because int might match the return type of a gcc2
18796 builtin and then its argument prototype would still apply. */
18797 char $ac_func();
18799 int main() {
18801 /* The GNU C library defines this for functions which it implements
18802 to always fail with ENOSYS. Some functions are actually named
18803 something starting with __ and the normal name is an alias. */
18804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18805 choke me
18806 #else
18807 $ac_func();
18808 #endif
18810 ; return 0; }
18812 if { (eval echo configure:18813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18813 rm -rf conftest*
18814 eval "ac_cv_func_$ac_func=yes"
18815 else
18816 echo "configure: failed program was:" >&5
18817 cat conftest.$ac_ext >&5
18818 rm -rf conftest*
18819 eval "ac_cv_func_$ac_func=no"
18821 rm -f conftest*
18824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18825 echo "$ac_t""yes" 1>&6
18826 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18827 cat >> confdefs.h <<EOF
18828 #define $ac_tr_func 1
18831 else
18832 echo "$ac_t""no" 1>&6
18834 done
18841 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18842 echo "configure:18843: checking for log10l declaration" >&5
18843 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18844 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18845 echo $ac_n "(cached) $ac_c" 1>&6
18846 else
18849 ac_ext=C
18850 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18851 ac_cpp='$CXXCPP $CPPFLAGS'
18852 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18853 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18854 cross_compiling=$ac_cv_prog_cxx_cross
18856 cat > conftest.$ac_ext <<EOF
18857 #line 18858 "configure"
18858 #include "confdefs.h"
18859 #include <math.h>
18860 #ifdef HAVE_IEEEFP_H
18861 #include <ieeefp.h>
18862 #endif
18864 int main() {
18865 log10l(0);
18866 ; return 0; }
18868 if { (eval echo configure:18869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18869 rm -rf conftest*
18870 glibcpp_cv_func_log10l_use=yes
18871 else
18872 echo "configure: failed program was:" >&5
18873 cat conftest.$ac_ext >&5
18874 rm -rf conftest*
18875 glibcpp_cv_func_log10l_use=no
18877 rm -f conftest*
18878 ac_ext=c
18879 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18880 ac_cpp='$CPP $CPPFLAGS'
18881 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18882 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18883 cross_compiling=$ac_cv_prog_cc_cross
18889 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18891 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18892 for ac_func in log10l
18894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18895 echo "configure:18896: checking for $ac_func" >&5
18896 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18897 echo $ac_n "(cached) $ac_c" 1>&6
18898 else
18899 cat > conftest.$ac_ext <<EOF
18900 #line 18901 "configure"
18901 #include "confdefs.h"
18902 /* System header to define __stub macros and hopefully few prototypes,
18903 which can conflict with char $ac_func(); below. */
18904 #include <assert.h>
18905 /* Override any gcc2 internal prototype to avoid an error. */
18906 /* We use char because int might match the return type of a gcc2
18907 builtin and then its argument prototype would still apply. */
18908 char $ac_func();
18910 int main() {
18912 /* The GNU C library defines this for functions which it implements
18913 to always fail with ENOSYS. Some functions are actually named
18914 something starting with __ and the normal name is an alias. */
18915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18916 choke me
18917 #else
18918 $ac_func();
18919 #endif
18921 ; return 0; }
18923 if { (eval echo configure:18924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18924 rm -rf conftest*
18925 eval "ac_cv_func_$ac_func=yes"
18926 else
18927 echo "configure: failed program was:" >&5
18928 cat conftest.$ac_ext >&5
18929 rm -rf conftest*
18930 eval "ac_cv_func_$ac_func=no"
18932 rm -f conftest*
18935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18936 echo "$ac_t""yes" 1>&6
18937 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18938 cat >> confdefs.h <<EOF
18939 #define $ac_tr_func 1
18942 else
18943 echo "$ac_t""no" 1>&6
18945 done
18947 else
18949 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18950 echo "configure:18951: checking for _log10l declaration" >&5
18951 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18952 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18953 echo $ac_n "(cached) $ac_c" 1>&6
18954 else
18957 ac_ext=C
18958 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18959 ac_cpp='$CXXCPP $CPPFLAGS'
18960 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18961 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18962 cross_compiling=$ac_cv_prog_cxx_cross
18964 cat > conftest.$ac_ext <<EOF
18965 #line 18966 "configure"
18966 #include "confdefs.h"
18967 #include <math.h>
18968 #ifdef HAVE_IEEEFP_H
18969 #include <ieeefp.h>
18970 #endif
18972 int main() {
18973 _log10l(0);
18974 ; return 0; }
18976 if { (eval echo configure:18977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18977 rm -rf conftest*
18978 glibcpp_cv_func__log10l_use=yes
18979 else
18980 echo "configure: failed program was:" >&5
18981 cat conftest.$ac_ext >&5
18982 rm -rf conftest*
18983 glibcpp_cv_func__log10l_use=no
18985 rm -f conftest*
18986 ac_ext=c
18987 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18988 ac_cpp='$CPP $CPPFLAGS'
18989 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18990 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18991 cross_compiling=$ac_cv_prog_cc_cross
18997 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18999 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
19000 for ac_func in _log10l
19002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19003 echo "configure:19004: checking for $ac_func" >&5
19004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19005 echo $ac_n "(cached) $ac_c" 1>&6
19006 else
19007 cat > conftest.$ac_ext <<EOF
19008 #line 19009 "configure"
19009 #include "confdefs.h"
19010 /* System header to define __stub macros and hopefully few prototypes,
19011 which can conflict with char $ac_func(); below. */
19012 #include <assert.h>
19013 /* Override any gcc2 internal prototype to avoid an error. */
19014 /* We use char because int might match the return type of a gcc2
19015 builtin and then its argument prototype would still apply. */
19016 char $ac_func();
19018 int main() {
19020 /* The GNU C library defines this for functions which it implements
19021 to always fail with ENOSYS. Some functions are actually named
19022 something starting with __ and the normal name is an alias. */
19023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19024 choke me
19025 #else
19026 $ac_func();
19027 #endif
19029 ; return 0; }
19031 if { (eval echo configure:19032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19032 rm -rf conftest*
19033 eval "ac_cv_func_$ac_func=yes"
19034 else
19035 echo "configure: failed program was:" >&5
19036 cat conftest.$ac_ext >&5
19037 rm -rf conftest*
19038 eval "ac_cv_func_$ac_func=no"
19040 rm -f conftest*
19043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19044 echo "$ac_t""yes" 1>&6
19045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19046 cat >> confdefs.h <<EOF
19047 #define $ac_tr_func 1
19050 else
19051 echo "$ac_t""no" 1>&6
19053 done
19060 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
19061 echo "configure:19062: checking for modfl declaration" >&5
19062 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
19063 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
19064 echo $ac_n "(cached) $ac_c" 1>&6
19065 else
19068 ac_ext=C
19069 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19070 ac_cpp='$CXXCPP $CPPFLAGS'
19071 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19072 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19073 cross_compiling=$ac_cv_prog_cxx_cross
19075 cat > conftest.$ac_ext <<EOF
19076 #line 19077 "configure"
19077 #include "confdefs.h"
19078 #include <math.h>
19079 int main() {
19080 modfl(0, 0);
19081 ; return 0; }
19083 if { (eval echo configure:19084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19084 rm -rf conftest*
19085 glibcpp_cv_func_modfl_use=yes
19086 else
19087 echo "configure: failed program was:" >&5
19088 cat conftest.$ac_ext >&5
19089 rm -rf conftest*
19090 glibcpp_cv_func_modfl_use=no
19092 rm -f conftest*
19093 ac_ext=c
19094 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19095 ac_cpp='$CPP $CPPFLAGS'
19096 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19097 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19098 cross_compiling=$ac_cv_prog_cc_cross
19104 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
19106 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
19107 for ac_func in modfl
19109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19110 echo "configure:19111: checking for $ac_func" >&5
19111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19112 echo $ac_n "(cached) $ac_c" 1>&6
19113 else
19114 cat > conftest.$ac_ext <<EOF
19115 #line 19116 "configure"
19116 #include "confdefs.h"
19117 /* System header to define __stub macros and hopefully few prototypes,
19118 which can conflict with char $ac_func(); below. */
19119 #include <assert.h>
19120 /* Override any gcc2 internal prototype to avoid an error. */
19121 /* We use char because int might match the return type of a gcc2
19122 builtin and then its argument prototype would still apply. */
19123 char $ac_func();
19125 int main() {
19127 /* The GNU C library defines this for functions which it implements
19128 to always fail with ENOSYS. Some functions are actually named
19129 something starting with __ and the normal name is an alias. */
19130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19131 choke me
19132 #else
19133 $ac_func();
19134 #endif
19136 ; return 0; }
19138 if { (eval echo configure:19139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19139 rm -rf conftest*
19140 eval "ac_cv_func_$ac_func=yes"
19141 else
19142 echo "configure: failed program was:" >&5
19143 cat conftest.$ac_ext >&5
19144 rm -rf conftest*
19145 eval "ac_cv_func_$ac_func=no"
19147 rm -f conftest*
19150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19151 echo "$ac_t""yes" 1>&6
19152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19153 cat >> confdefs.h <<EOF
19154 #define $ac_tr_func 1
19157 else
19158 echo "$ac_t""no" 1>&6
19160 done
19162 else
19164 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
19165 echo "configure:19166: checking for _modfl declaration" >&5
19166 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
19167 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
19168 echo $ac_n "(cached) $ac_c" 1>&6
19169 else
19172 ac_ext=C
19173 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19174 ac_cpp='$CXXCPP $CPPFLAGS'
19175 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19176 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19177 cross_compiling=$ac_cv_prog_cxx_cross
19179 cat > conftest.$ac_ext <<EOF
19180 #line 19181 "configure"
19181 #include "confdefs.h"
19182 #include <math.h>
19183 int main() {
19184 _modfl(0, 0);
19185 ; return 0; }
19187 if { (eval echo configure:19188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19188 rm -rf conftest*
19189 glibcpp_cv_func__modfl_use=yes
19190 else
19191 echo "configure: failed program was:" >&5
19192 cat conftest.$ac_ext >&5
19193 rm -rf conftest*
19194 glibcpp_cv_func__modfl_use=no
19196 rm -f conftest*
19197 ac_ext=c
19198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19199 ac_cpp='$CPP $CPPFLAGS'
19200 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19201 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19202 cross_compiling=$ac_cv_prog_cc_cross
19208 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19210 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19211 for ac_func in _modfl
19213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19214 echo "configure:19215: checking for $ac_func" >&5
19215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19216 echo $ac_n "(cached) $ac_c" 1>&6
19217 else
19218 cat > conftest.$ac_ext <<EOF
19219 #line 19220 "configure"
19220 #include "confdefs.h"
19221 /* System header to define __stub macros and hopefully few prototypes,
19222 which can conflict with char $ac_func(); below. */
19223 #include <assert.h>
19224 /* Override any gcc2 internal prototype to avoid an error. */
19225 /* We use char because int might match the return type of a gcc2
19226 builtin and then its argument prototype would still apply. */
19227 char $ac_func();
19229 int main() {
19231 /* The GNU C library defines this for functions which it implements
19232 to always fail with ENOSYS. Some functions are actually named
19233 something starting with __ and the normal name is an alias. */
19234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19235 choke me
19236 #else
19237 $ac_func();
19238 #endif
19240 ; return 0; }
19242 if { (eval echo configure:19243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19243 rm -rf conftest*
19244 eval "ac_cv_func_$ac_func=yes"
19245 else
19246 echo "configure: failed program was:" >&5
19247 cat conftest.$ac_ext >&5
19248 rm -rf conftest*
19249 eval "ac_cv_func_$ac_func=no"
19251 rm -f conftest*
19254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19255 echo "$ac_t""yes" 1>&6
19256 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19257 cat >> confdefs.h <<EOF
19258 #define $ac_tr_func 1
19261 else
19262 echo "$ac_t""no" 1>&6
19264 done
19271 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19272 echo "configure:19273: checking for powl declaration" >&5
19273 if test x${glibcpp_cv_func_powl_use+set} != xset; then
19274 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19275 echo $ac_n "(cached) $ac_c" 1>&6
19276 else
19279 ac_ext=C
19280 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19281 ac_cpp='$CXXCPP $CPPFLAGS'
19282 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19283 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19284 cross_compiling=$ac_cv_prog_cxx_cross
19286 cat > conftest.$ac_ext <<EOF
19287 #line 19288 "configure"
19288 #include "confdefs.h"
19289 #include <math.h>
19290 int main() {
19291 powl(0, 0);
19292 ; return 0; }
19294 if { (eval echo configure:19295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19295 rm -rf conftest*
19296 glibcpp_cv_func_powl_use=yes
19297 else
19298 echo "configure: failed program was:" >&5
19299 cat conftest.$ac_ext >&5
19300 rm -rf conftest*
19301 glibcpp_cv_func_powl_use=no
19303 rm -f conftest*
19304 ac_ext=c
19305 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19306 ac_cpp='$CPP $CPPFLAGS'
19307 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19308 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19309 cross_compiling=$ac_cv_prog_cc_cross
19315 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19317 if test x$glibcpp_cv_func_powl_use = x"yes"; then
19318 for ac_func in powl
19320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19321 echo "configure:19322: checking for $ac_func" >&5
19322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19323 echo $ac_n "(cached) $ac_c" 1>&6
19324 else
19325 cat > conftest.$ac_ext <<EOF
19326 #line 19327 "configure"
19327 #include "confdefs.h"
19328 /* System header to define __stub macros and hopefully few prototypes,
19329 which can conflict with char $ac_func(); below. */
19330 #include <assert.h>
19331 /* Override any gcc2 internal prototype to avoid an error. */
19332 /* We use char because int might match the return type of a gcc2
19333 builtin and then its argument prototype would still apply. */
19334 char $ac_func();
19336 int main() {
19338 /* The GNU C library defines this for functions which it implements
19339 to always fail with ENOSYS. Some functions are actually named
19340 something starting with __ and the normal name is an alias. */
19341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19342 choke me
19343 #else
19344 $ac_func();
19345 #endif
19347 ; return 0; }
19349 if { (eval echo configure:19350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19350 rm -rf conftest*
19351 eval "ac_cv_func_$ac_func=yes"
19352 else
19353 echo "configure: failed program was:" >&5
19354 cat conftest.$ac_ext >&5
19355 rm -rf conftest*
19356 eval "ac_cv_func_$ac_func=no"
19358 rm -f conftest*
19361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19362 echo "$ac_t""yes" 1>&6
19363 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19364 cat >> confdefs.h <<EOF
19365 #define $ac_tr_func 1
19368 else
19369 echo "$ac_t""no" 1>&6
19371 done
19373 else
19375 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19376 echo "configure:19377: checking for _powl declaration" >&5
19377 if test x${glibcpp_cv_func__powl_use+set} != xset; then
19378 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19379 echo $ac_n "(cached) $ac_c" 1>&6
19380 else
19383 ac_ext=C
19384 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19385 ac_cpp='$CXXCPP $CPPFLAGS'
19386 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19387 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19388 cross_compiling=$ac_cv_prog_cxx_cross
19390 cat > conftest.$ac_ext <<EOF
19391 #line 19392 "configure"
19392 #include "confdefs.h"
19393 #include <math.h>
19394 int main() {
19395 _powl(0, 0);
19396 ; return 0; }
19398 if { (eval echo configure:19399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19399 rm -rf conftest*
19400 glibcpp_cv_func__powl_use=yes
19401 else
19402 echo "configure: failed program was:" >&5
19403 cat conftest.$ac_ext >&5
19404 rm -rf conftest*
19405 glibcpp_cv_func__powl_use=no
19407 rm -f conftest*
19408 ac_ext=c
19409 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19410 ac_cpp='$CPP $CPPFLAGS'
19411 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19412 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19413 cross_compiling=$ac_cv_prog_cc_cross
19419 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19421 if test x$glibcpp_cv_func__powl_use = x"yes"; then
19422 for ac_func in _powl
19424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19425 echo "configure:19426: checking for $ac_func" >&5
19426 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19427 echo $ac_n "(cached) $ac_c" 1>&6
19428 else
19429 cat > conftest.$ac_ext <<EOF
19430 #line 19431 "configure"
19431 #include "confdefs.h"
19432 /* System header to define __stub macros and hopefully few prototypes,
19433 which can conflict with char $ac_func(); below. */
19434 #include <assert.h>
19435 /* Override any gcc2 internal prototype to avoid an error. */
19436 /* We use char because int might match the return type of a gcc2
19437 builtin and then its argument prototype would still apply. */
19438 char $ac_func();
19440 int main() {
19442 /* The GNU C library defines this for functions which it implements
19443 to always fail with ENOSYS. Some functions are actually named
19444 something starting with __ and the normal name is an alias. */
19445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19446 choke me
19447 #else
19448 $ac_func();
19449 #endif
19451 ; return 0; }
19453 if { (eval echo configure:19454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19454 rm -rf conftest*
19455 eval "ac_cv_func_$ac_func=yes"
19456 else
19457 echo "configure: failed program was:" >&5
19458 cat conftest.$ac_ext >&5
19459 rm -rf conftest*
19460 eval "ac_cv_func_$ac_func=no"
19462 rm -f conftest*
19465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19466 echo "$ac_t""yes" 1>&6
19467 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19468 cat >> confdefs.h <<EOF
19469 #define $ac_tr_func 1
19472 else
19473 echo "$ac_t""no" 1>&6
19475 done
19482 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19483 echo "configure:19484: checking for sqrtl declaration" >&5
19484 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19485 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19486 echo $ac_n "(cached) $ac_c" 1>&6
19487 else
19490 ac_ext=C
19491 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19492 ac_cpp='$CXXCPP $CPPFLAGS'
19493 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19494 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19495 cross_compiling=$ac_cv_prog_cxx_cross
19497 cat > conftest.$ac_ext <<EOF
19498 #line 19499 "configure"
19499 #include "confdefs.h"
19500 #include <math.h>
19501 #ifdef HAVE_IEEEFP_H
19502 #include <ieeefp.h>
19503 #endif
19505 int main() {
19506 sqrtl(0);
19507 ; return 0; }
19509 if { (eval echo configure:19510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19510 rm -rf conftest*
19511 glibcpp_cv_func_sqrtl_use=yes
19512 else
19513 echo "configure: failed program was:" >&5
19514 cat conftest.$ac_ext >&5
19515 rm -rf conftest*
19516 glibcpp_cv_func_sqrtl_use=no
19518 rm -f conftest*
19519 ac_ext=c
19520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19521 ac_cpp='$CPP $CPPFLAGS'
19522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19524 cross_compiling=$ac_cv_prog_cc_cross
19530 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19532 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19533 for ac_func in sqrtl
19535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19536 echo "configure:19537: checking for $ac_func" >&5
19537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19538 echo $ac_n "(cached) $ac_c" 1>&6
19539 else
19540 cat > conftest.$ac_ext <<EOF
19541 #line 19542 "configure"
19542 #include "confdefs.h"
19543 /* System header to define __stub macros and hopefully few prototypes,
19544 which can conflict with char $ac_func(); below. */
19545 #include <assert.h>
19546 /* Override any gcc2 internal prototype to avoid an error. */
19547 /* We use char because int might match the return type of a gcc2
19548 builtin and then its argument prototype would still apply. */
19549 char $ac_func();
19551 int main() {
19553 /* The GNU C library defines this for functions which it implements
19554 to always fail with ENOSYS. Some functions are actually named
19555 something starting with __ and the normal name is an alias. */
19556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19557 choke me
19558 #else
19559 $ac_func();
19560 #endif
19562 ; return 0; }
19564 if { (eval echo configure:19565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19565 rm -rf conftest*
19566 eval "ac_cv_func_$ac_func=yes"
19567 else
19568 echo "configure: failed program was:" >&5
19569 cat conftest.$ac_ext >&5
19570 rm -rf conftest*
19571 eval "ac_cv_func_$ac_func=no"
19573 rm -f conftest*
19576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19577 echo "$ac_t""yes" 1>&6
19578 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19579 cat >> confdefs.h <<EOF
19580 #define $ac_tr_func 1
19583 else
19584 echo "$ac_t""no" 1>&6
19586 done
19588 else
19590 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19591 echo "configure:19592: checking for _sqrtl declaration" >&5
19592 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19593 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19594 echo $ac_n "(cached) $ac_c" 1>&6
19595 else
19598 ac_ext=C
19599 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19600 ac_cpp='$CXXCPP $CPPFLAGS'
19601 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19602 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19603 cross_compiling=$ac_cv_prog_cxx_cross
19605 cat > conftest.$ac_ext <<EOF
19606 #line 19607 "configure"
19607 #include "confdefs.h"
19608 #include <math.h>
19609 #ifdef HAVE_IEEEFP_H
19610 #include <ieeefp.h>
19611 #endif
19613 int main() {
19614 _sqrtl(0);
19615 ; return 0; }
19617 if { (eval echo configure:19618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19618 rm -rf conftest*
19619 glibcpp_cv_func__sqrtl_use=yes
19620 else
19621 echo "configure: failed program was:" >&5
19622 cat conftest.$ac_ext >&5
19623 rm -rf conftest*
19624 glibcpp_cv_func__sqrtl_use=no
19626 rm -f conftest*
19627 ac_ext=c
19628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19629 ac_cpp='$CPP $CPPFLAGS'
19630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19632 cross_compiling=$ac_cv_prog_cc_cross
19638 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19640 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19641 for ac_func in _sqrtl
19643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19644 echo "configure:19645: checking for $ac_func" >&5
19645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19646 echo $ac_n "(cached) $ac_c" 1>&6
19647 else
19648 cat > conftest.$ac_ext <<EOF
19649 #line 19650 "configure"
19650 #include "confdefs.h"
19651 /* System header to define __stub macros and hopefully few prototypes,
19652 which can conflict with char $ac_func(); below. */
19653 #include <assert.h>
19654 /* Override any gcc2 internal prototype to avoid an error. */
19655 /* We use char because int might match the return type of a gcc2
19656 builtin and then its argument prototype would still apply. */
19657 char $ac_func();
19659 int main() {
19661 /* The GNU C library defines this for functions which it implements
19662 to always fail with ENOSYS. Some functions are actually named
19663 something starting with __ and the normal name is an alias. */
19664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19665 choke me
19666 #else
19667 $ac_func();
19668 #endif
19670 ; return 0; }
19672 if { (eval echo configure:19673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19673 rm -rf conftest*
19674 eval "ac_cv_func_$ac_func=yes"
19675 else
19676 echo "configure: failed program was:" >&5
19677 cat conftest.$ac_ext >&5
19678 rm -rf conftest*
19679 eval "ac_cv_func_$ac_func=no"
19681 rm -f conftest*
19684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19685 echo "$ac_t""yes" 1>&6
19686 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19687 cat >> confdefs.h <<EOF
19688 #define $ac_tr_func 1
19691 else
19692 echo "$ac_t""no" 1>&6
19694 done
19701 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19702 echo "configure:19703: checking for sincosl declaration" >&5
19703 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19704 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19705 echo $ac_n "(cached) $ac_c" 1>&6
19706 else
19709 ac_ext=C
19710 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19711 ac_cpp='$CXXCPP $CPPFLAGS'
19712 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19713 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19714 cross_compiling=$ac_cv_prog_cxx_cross
19716 cat > conftest.$ac_ext <<EOF
19717 #line 19718 "configure"
19718 #include "confdefs.h"
19719 #include <math.h>
19720 int main() {
19721 sincosl(0, 0, 0);
19722 ; return 0; }
19724 if { (eval echo configure:19725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19725 rm -rf conftest*
19726 glibcpp_cv_func_sincosl_use=yes
19727 else
19728 echo "configure: failed program was:" >&5
19729 cat conftest.$ac_ext >&5
19730 rm -rf conftest*
19731 glibcpp_cv_func_sincosl_use=no
19733 rm -f conftest*
19734 ac_ext=c
19735 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19736 ac_cpp='$CPP $CPPFLAGS'
19737 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19738 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19739 cross_compiling=$ac_cv_prog_cc_cross
19745 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19747 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19748 for ac_func in sincosl
19750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19751 echo "configure:19752: checking for $ac_func" >&5
19752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19753 echo $ac_n "(cached) $ac_c" 1>&6
19754 else
19755 cat > conftest.$ac_ext <<EOF
19756 #line 19757 "configure"
19757 #include "confdefs.h"
19758 /* System header to define __stub macros and hopefully few prototypes,
19759 which can conflict with char $ac_func(); below. */
19760 #include <assert.h>
19761 /* Override any gcc2 internal prototype to avoid an error. */
19762 /* We use char because int might match the return type of a gcc2
19763 builtin and then its argument prototype would still apply. */
19764 char $ac_func();
19766 int main() {
19768 /* The GNU C library defines this for functions which it implements
19769 to always fail with ENOSYS. Some functions are actually named
19770 something starting with __ and the normal name is an alias. */
19771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19772 choke me
19773 #else
19774 $ac_func();
19775 #endif
19777 ; return 0; }
19779 if { (eval echo configure:19780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19780 rm -rf conftest*
19781 eval "ac_cv_func_$ac_func=yes"
19782 else
19783 echo "configure: failed program was:" >&5
19784 cat conftest.$ac_ext >&5
19785 rm -rf conftest*
19786 eval "ac_cv_func_$ac_func=no"
19788 rm -f conftest*
19791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19792 echo "$ac_t""yes" 1>&6
19793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19794 cat >> confdefs.h <<EOF
19795 #define $ac_tr_func 1
19798 else
19799 echo "$ac_t""no" 1>&6
19801 done
19803 else
19805 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19806 echo "configure:19807: checking for _sincosl declaration" >&5
19807 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19808 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19809 echo $ac_n "(cached) $ac_c" 1>&6
19810 else
19813 ac_ext=C
19814 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19815 ac_cpp='$CXXCPP $CPPFLAGS'
19816 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19817 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19818 cross_compiling=$ac_cv_prog_cxx_cross
19820 cat > conftest.$ac_ext <<EOF
19821 #line 19822 "configure"
19822 #include "confdefs.h"
19823 #include <math.h>
19824 int main() {
19825 _sincosl(0, 0, 0);
19826 ; return 0; }
19828 if { (eval echo configure:19829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19829 rm -rf conftest*
19830 glibcpp_cv_func__sincosl_use=yes
19831 else
19832 echo "configure: failed program was:" >&5
19833 cat conftest.$ac_ext >&5
19834 rm -rf conftest*
19835 glibcpp_cv_func__sincosl_use=no
19837 rm -f conftest*
19838 ac_ext=c
19839 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19840 ac_cpp='$CPP $CPPFLAGS'
19841 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19842 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19843 cross_compiling=$ac_cv_prog_cc_cross
19849 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19851 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19852 for ac_func in _sincosl
19854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19855 echo "configure:19856: checking for $ac_func" >&5
19856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19857 echo $ac_n "(cached) $ac_c" 1>&6
19858 else
19859 cat > conftest.$ac_ext <<EOF
19860 #line 19861 "configure"
19861 #include "confdefs.h"
19862 /* System header to define __stub macros and hopefully few prototypes,
19863 which can conflict with char $ac_func(); below. */
19864 #include <assert.h>
19865 /* Override any gcc2 internal prototype to avoid an error. */
19866 /* We use char because int might match the return type of a gcc2
19867 builtin and then its argument prototype would still apply. */
19868 char $ac_func();
19870 int main() {
19872 /* The GNU C library defines this for functions which it implements
19873 to always fail with ENOSYS. Some functions are actually named
19874 something starting with __ and the normal name is an alias. */
19875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19876 choke me
19877 #else
19878 $ac_func();
19879 #endif
19881 ; return 0; }
19883 if { (eval echo configure:19884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19884 rm -rf conftest*
19885 eval "ac_cv_func_$ac_func=yes"
19886 else
19887 echo "configure: failed program was:" >&5
19888 cat conftest.$ac_ext >&5
19889 rm -rf conftest*
19890 eval "ac_cv_func_$ac_func=no"
19892 rm -f conftest*
19895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19896 echo "$ac_t""yes" 1>&6
19897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19898 cat >> confdefs.h <<EOF
19899 #define $ac_tr_func 1
19902 else
19903 echo "$ac_t""no" 1>&6
19905 done
19912 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19913 echo "configure:19914: checking for finitel declaration" >&5
19914 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19915 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19916 echo $ac_n "(cached) $ac_c" 1>&6
19917 else
19920 ac_ext=C
19921 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19922 ac_cpp='$CXXCPP $CPPFLAGS'
19923 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19924 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19925 cross_compiling=$ac_cv_prog_cxx_cross
19927 cat > conftest.$ac_ext <<EOF
19928 #line 19929 "configure"
19929 #include "confdefs.h"
19930 #include <math.h>
19931 #ifdef HAVE_IEEEFP_H
19932 #include <ieeefp.h>
19933 #endif
19935 int main() {
19936 finitel(0);
19937 ; return 0; }
19939 if { (eval echo configure:19940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19940 rm -rf conftest*
19941 glibcpp_cv_func_finitel_use=yes
19942 else
19943 echo "configure: failed program was:" >&5
19944 cat conftest.$ac_ext >&5
19945 rm -rf conftest*
19946 glibcpp_cv_func_finitel_use=no
19948 rm -f conftest*
19949 ac_ext=c
19950 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19951 ac_cpp='$CPP $CPPFLAGS'
19952 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19953 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19954 cross_compiling=$ac_cv_prog_cc_cross
19960 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19962 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19963 for ac_func in finitel
19965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19966 echo "configure:19967: checking for $ac_func" >&5
19967 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19968 echo $ac_n "(cached) $ac_c" 1>&6
19969 else
19970 cat > conftest.$ac_ext <<EOF
19971 #line 19972 "configure"
19972 #include "confdefs.h"
19973 /* System header to define __stub macros and hopefully few prototypes,
19974 which can conflict with char $ac_func(); below. */
19975 #include <assert.h>
19976 /* Override any gcc2 internal prototype to avoid an error. */
19977 /* We use char because int might match the return type of a gcc2
19978 builtin and then its argument prototype would still apply. */
19979 char $ac_func();
19981 int main() {
19983 /* The GNU C library defines this for functions which it implements
19984 to always fail with ENOSYS. Some functions are actually named
19985 something starting with __ and the normal name is an alias. */
19986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19987 choke me
19988 #else
19989 $ac_func();
19990 #endif
19992 ; return 0; }
19994 if { (eval echo configure:19995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19995 rm -rf conftest*
19996 eval "ac_cv_func_$ac_func=yes"
19997 else
19998 echo "configure: failed program was:" >&5
19999 cat conftest.$ac_ext >&5
20000 rm -rf conftest*
20001 eval "ac_cv_func_$ac_func=no"
20003 rm -f conftest*
20006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20007 echo "$ac_t""yes" 1>&6
20008 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20009 cat >> confdefs.h <<EOF
20010 #define $ac_tr_func 1
20013 else
20014 echo "$ac_t""no" 1>&6
20016 done
20018 else
20020 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
20021 echo "configure:20022: checking for _finitel declaration" >&5
20022 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
20023 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
20024 echo $ac_n "(cached) $ac_c" 1>&6
20025 else
20028 ac_ext=C
20029 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20030 ac_cpp='$CXXCPP $CPPFLAGS'
20031 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20032 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20033 cross_compiling=$ac_cv_prog_cxx_cross
20035 cat > conftest.$ac_ext <<EOF
20036 #line 20037 "configure"
20037 #include "confdefs.h"
20038 #include <math.h>
20039 #ifdef HAVE_IEEEFP_H
20040 #include <ieeefp.h>
20041 #endif
20043 int main() {
20044 _finitel(0);
20045 ; return 0; }
20047 if { (eval echo configure:20048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20048 rm -rf conftest*
20049 glibcpp_cv_func__finitel_use=yes
20050 else
20051 echo "configure: failed program was:" >&5
20052 cat conftest.$ac_ext >&5
20053 rm -rf conftest*
20054 glibcpp_cv_func__finitel_use=no
20056 rm -f conftest*
20057 ac_ext=c
20058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20059 ac_cpp='$CPP $CPPFLAGS'
20060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20062 cross_compiling=$ac_cv_prog_cc_cross
20068 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
20070 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
20071 for ac_func in _finitel
20073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20074 echo "configure:20075: checking for $ac_func" >&5
20075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20076 echo $ac_n "(cached) $ac_c" 1>&6
20077 else
20078 cat > conftest.$ac_ext <<EOF
20079 #line 20080 "configure"
20080 #include "confdefs.h"
20081 /* System header to define __stub macros and hopefully few prototypes,
20082 which can conflict with char $ac_func(); below. */
20083 #include <assert.h>
20084 /* Override any gcc2 internal prototype to avoid an error. */
20085 /* We use char because int might match the return type of a gcc2
20086 builtin and then its argument prototype would still apply. */
20087 char $ac_func();
20089 int main() {
20091 /* The GNU C library defines this for functions which it implements
20092 to always fail with ENOSYS. Some functions are actually named
20093 something starting with __ and the normal name is an alias. */
20094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20095 choke me
20096 #else
20097 $ac_func();
20098 #endif
20100 ; return 0; }
20102 if { (eval echo configure:20103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20103 rm -rf conftest*
20104 eval "ac_cv_func_$ac_func=yes"
20105 else
20106 echo "configure: failed program was:" >&5
20107 cat conftest.$ac_ext >&5
20108 rm -rf conftest*
20109 eval "ac_cv_func_$ac_func=no"
20111 rm -f conftest*
20114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20115 echo "$ac_t""yes" 1>&6
20116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20117 cat >> confdefs.h <<EOF
20118 #define $ac_tr_func 1
20121 else
20122 echo "$ac_t""no" 1>&6
20124 done
20132 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
20133 echo "configure:20134: checking for _float trig functions" >&5
20134 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
20135 echo $ac_n "(cached) $ac_c" 1>&6
20136 else
20139 ac_ext=C
20140 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20141 ac_cpp='$CXXCPP $CPPFLAGS'
20142 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20143 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20144 cross_compiling=$ac_cv_prog_cxx_cross
20146 cat > conftest.$ac_ext <<EOF
20147 #line 20148 "configure"
20148 #include "confdefs.h"
20149 #include <math.h>
20150 int main() {
20151 `for x in _acosf _asinf _atanf \
20152 _cosf _sinf _tanf \
20153 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
20154 ; return 0; }
20156 if { (eval echo configure:20157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20157 rm -rf conftest*
20158 glibcpp_cv_func__float_trig_use=yes
20159 else
20160 echo "configure: failed program was:" >&5
20161 cat conftest.$ac_ext >&5
20162 rm -rf conftest*
20163 glibcpp_cv_func__float_trig_use=no
20165 rm -f conftest*
20166 ac_ext=c
20167 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20168 ac_cpp='$CPP $CPPFLAGS'
20169 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20170 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20171 cross_compiling=$ac_cv_prog_cc_cross
20175 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
20176 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
20177 for ac_func in _acosf _asinf _atanf \
20178 _cosf _sinf _tanf \
20179 _coshf _sinhf _tanhf
20181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20182 echo "configure:20183: checking for $ac_func" >&5
20183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20184 echo $ac_n "(cached) $ac_c" 1>&6
20185 else
20186 cat > conftest.$ac_ext <<EOF
20187 #line 20188 "configure"
20188 #include "confdefs.h"
20189 /* System header to define __stub macros and hopefully few prototypes,
20190 which can conflict with char $ac_func(); below. */
20191 #include <assert.h>
20192 /* Override any gcc2 internal prototype to avoid an error. */
20193 /* We use char because int might match the return type of a gcc2
20194 builtin and then its argument prototype would still apply. */
20195 char $ac_func();
20197 int main() {
20199 /* The GNU C library defines this for functions which it implements
20200 to always fail with ENOSYS. Some functions are actually named
20201 something starting with __ and the normal name is an alias. */
20202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20203 choke me
20204 #else
20205 $ac_func();
20206 #endif
20208 ; return 0; }
20210 if { (eval echo configure:20211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20211 rm -rf conftest*
20212 eval "ac_cv_func_$ac_func=yes"
20213 else
20214 echo "configure: failed program was:" >&5
20215 cat conftest.$ac_ext >&5
20216 rm -rf conftest*
20217 eval "ac_cv_func_$ac_func=no"
20219 rm -f conftest*
20222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20223 echo "$ac_t""yes" 1>&6
20224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20225 cat >> confdefs.h <<EOF
20226 #define $ac_tr_func 1
20229 else
20230 echo "$ac_t""no" 1>&6
20232 done
20237 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20238 echo "configure:20239: checking for _float round functions" >&5
20239 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20240 echo $ac_n "(cached) $ac_c" 1>&6
20241 else
20244 ac_ext=C
20245 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20246 ac_cpp='$CXXCPP $CPPFLAGS'
20247 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20248 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20249 cross_compiling=$ac_cv_prog_cxx_cross
20251 cat > conftest.$ac_ext <<EOF
20252 #line 20253 "configure"
20253 #include "confdefs.h"
20254 #include <math.h>
20255 int main() {
20256 `for x in _ceilf _floorf; do echo "$x (0);"; done`
20257 ; return 0; }
20259 if { (eval echo configure:20260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20260 rm -rf conftest*
20261 glibcpp_cv_func__float_round_use=yes
20262 else
20263 echo "configure: failed program was:" >&5
20264 cat conftest.$ac_ext >&5
20265 rm -rf conftest*
20266 glibcpp_cv_func__float_round_use=no
20268 rm -f conftest*
20269 ac_ext=c
20270 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20271 ac_cpp='$CPP $CPPFLAGS'
20272 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20273 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20274 cross_compiling=$ac_cv_prog_cc_cross
20278 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20279 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20280 for ac_func in _ceilf _floorf
20282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20283 echo "configure:20284: checking for $ac_func" >&5
20284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20285 echo $ac_n "(cached) $ac_c" 1>&6
20286 else
20287 cat > conftest.$ac_ext <<EOF
20288 #line 20289 "configure"
20289 #include "confdefs.h"
20290 /* System header to define __stub macros and hopefully few prototypes,
20291 which can conflict with char $ac_func(); below. */
20292 #include <assert.h>
20293 /* Override any gcc2 internal prototype to avoid an error. */
20294 /* We use char because int might match the return type of a gcc2
20295 builtin and then its argument prototype would still apply. */
20296 char $ac_func();
20298 int main() {
20300 /* The GNU C library defines this for functions which it implements
20301 to always fail with ENOSYS. Some functions are actually named
20302 something starting with __ and the normal name is an alias. */
20303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20304 choke me
20305 #else
20306 $ac_func();
20307 #endif
20309 ; return 0; }
20311 if { (eval echo configure:20312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20312 rm -rf conftest*
20313 eval "ac_cv_func_$ac_func=yes"
20314 else
20315 echo "configure: failed program was:" >&5
20316 cat conftest.$ac_ext >&5
20317 rm -rf conftest*
20318 eval "ac_cv_func_$ac_func=no"
20320 rm -f conftest*
20323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20324 echo "$ac_t""yes" 1>&6
20325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20326 cat >> confdefs.h <<EOF
20327 #define $ac_tr_func 1
20330 else
20331 echo "$ac_t""no" 1>&6
20333 done
20339 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20340 echo "configure:20341: checking for _long double trig functions" >&5
20341 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20342 echo $ac_n "(cached) $ac_c" 1>&6
20343 else
20346 ac_ext=C
20347 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20348 ac_cpp='$CXXCPP $CPPFLAGS'
20349 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20350 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20351 cross_compiling=$ac_cv_prog_cxx_cross
20353 cat > conftest.$ac_ext <<EOF
20354 #line 20355 "configure"
20355 #include "confdefs.h"
20356 #include <math.h>
20357 int main() {
20358 `for x in _acosl _asinl _atanl \
20359 _cosl _sinl _tanl \
20360 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
20361 ; return 0; }
20363 if { (eval echo configure:20364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20364 rm -rf conftest*
20365 glibcpp_cv_func__long_double_trig_use=yes
20366 else
20367 echo "configure: failed program was:" >&5
20368 cat conftest.$ac_ext >&5
20369 rm -rf conftest*
20370 glibcpp_cv_func__long_double_trig_use=no
20372 rm -f conftest*
20373 ac_ext=c
20374 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20375 ac_cpp='$CPP $CPPFLAGS'
20376 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20377 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20378 cross_compiling=$ac_cv_prog_cc_cross
20382 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20383 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20384 for ac_func in _acosl _asinl _atanl \
20385 _cosl _sinl _tanl \
20386 _coshl _sinhl _tanhl
20388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20389 echo "configure:20390: checking for $ac_func" >&5
20390 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20391 echo $ac_n "(cached) $ac_c" 1>&6
20392 else
20393 cat > conftest.$ac_ext <<EOF
20394 #line 20395 "configure"
20395 #include "confdefs.h"
20396 /* System header to define __stub macros and hopefully few prototypes,
20397 which can conflict with char $ac_func(); below. */
20398 #include <assert.h>
20399 /* Override any gcc2 internal prototype to avoid an error. */
20400 /* We use char because int might match the return type of a gcc2
20401 builtin and then its argument prototype would still apply. */
20402 char $ac_func();
20404 int main() {
20406 /* The GNU C library defines this for functions which it implements
20407 to always fail with ENOSYS. Some functions are actually named
20408 something starting with __ and the normal name is an alias. */
20409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20410 choke me
20411 #else
20412 $ac_func();
20413 #endif
20415 ; return 0; }
20417 if { (eval echo configure:20418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20418 rm -rf conftest*
20419 eval "ac_cv_func_$ac_func=yes"
20420 else
20421 echo "configure: failed program was:" >&5
20422 cat conftest.$ac_ext >&5
20423 rm -rf conftest*
20424 eval "ac_cv_func_$ac_func=no"
20426 rm -f conftest*
20429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20430 echo "$ac_t""yes" 1>&6
20431 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20432 cat >> confdefs.h <<EOF
20433 #define $ac_tr_func 1
20436 else
20437 echo "$ac_t""no" 1>&6
20439 done
20444 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20445 echo "configure:20446: checking for _long double round functions" >&5
20446 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20447 echo $ac_n "(cached) $ac_c" 1>&6
20448 else
20451 ac_ext=C
20452 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20453 ac_cpp='$CXXCPP $CPPFLAGS'
20454 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20455 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20456 cross_compiling=$ac_cv_prog_cxx_cross
20458 cat > conftest.$ac_ext <<EOF
20459 #line 20460 "configure"
20460 #include "confdefs.h"
20461 #include <math.h>
20462 int main() {
20463 `for x in _ceill _floorl; do echo "$x (0);"; done`
20464 ; return 0; }
20466 if { (eval echo configure:20467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20467 rm -rf conftest*
20468 glibcpp_cv_func__long_double_round_use=yes
20469 else
20470 echo "configure: failed program was:" >&5
20471 cat conftest.$ac_ext >&5
20472 rm -rf conftest*
20473 glibcpp_cv_func__long_double_round_use=no
20475 rm -f conftest*
20476 ac_ext=c
20477 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20478 ac_cpp='$CPP $CPPFLAGS'
20479 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20480 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20481 cross_compiling=$ac_cv_prog_cc_cross
20485 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20486 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20487 for ac_func in _ceill _floorl
20489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20490 echo "configure:20491: checking for $ac_func" >&5
20491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20492 echo $ac_n "(cached) $ac_c" 1>&6
20493 else
20494 cat > conftest.$ac_ext <<EOF
20495 #line 20496 "configure"
20496 #include "confdefs.h"
20497 /* System header to define __stub macros and hopefully few prototypes,
20498 which can conflict with char $ac_func(); below. */
20499 #include <assert.h>
20500 /* Override any gcc2 internal prototype to avoid an error. */
20501 /* We use char because int might match the return type of a gcc2
20502 builtin and then its argument prototype would still apply. */
20503 char $ac_func();
20505 int main() {
20507 /* The GNU C library defines this for functions which it implements
20508 to always fail with ENOSYS. Some functions are actually named
20509 something starting with __ and the normal name is an alias. */
20510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20511 choke me
20512 #else
20513 $ac_func();
20514 #endif
20516 ; return 0; }
20518 if { (eval echo configure:20519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20519 rm -rf conftest*
20520 eval "ac_cv_func_$ac_func=yes"
20521 else
20522 echo "configure: failed program was:" >&5
20523 cat conftest.$ac_ext >&5
20524 rm -rf conftest*
20525 eval "ac_cv_func_$ac_func=no"
20527 rm -f conftest*
20530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20531 echo "$ac_t""yes" 1>&6
20532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20533 cat >> confdefs.h <<EOF
20534 #define $ac_tr_func 1
20537 else
20538 echo "$ac_t""no" 1>&6
20540 done
20545 LIBS="$ac_save_LIBS"
20546 CXXFLAGS="$ac_save_CXXFLAGS"
20550 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
20551 echo "configure:20552: checking for __builtin_abs declaration" >&5
20552 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
20553 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
20554 echo $ac_n "(cached) $ac_c" 1>&6
20555 else
20558 ac_ext=C
20559 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20560 ac_cpp='$CXXCPP $CPPFLAGS'
20561 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20562 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20563 cross_compiling=$ac_cv_prog_cxx_cross
20565 cat > conftest.$ac_ext <<EOF
20566 #line 20567 "configure"
20567 #include "confdefs.h"
20568 #include <math.h>
20569 int main() {
20570 __builtin_abs(0);
20571 ; return 0; }
20573 if { (eval echo configure:20574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20574 rm -rf conftest*
20575 glibcpp_cv_func___builtin_abs_use=yes
20576 else
20577 echo "configure: failed program was:" >&5
20578 cat conftest.$ac_ext >&5
20579 rm -rf conftest*
20580 glibcpp_cv_func___builtin_abs_use=no
20582 rm -f conftest*
20583 ac_ext=c
20584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20585 ac_cpp='$CPP $CPPFLAGS'
20586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20588 cross_compiling=$ac_cv_prog_cc_cross
20594 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
20595 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
20596 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
20597 echo "configure:20598: checking for __builtin_abs linkage" >&5
20598 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
20599 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
20600 echo $ac_n "(cached) $ac_c" 1>&6
20601 else
20603 cat > conftest.$ac_ext <<EOF
20604 #line 20605 "configure"
20605 #include "confdefs.h"
20606 #include <math.h>
20607 int main() {
20608 __builtin_abs(0);
20609 ; return 0; }
20611 if { (eval echo configure:20612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20612 rm -rf conftest*
20613 glibcpp_cv_func___builtin_abs_link=yes
20614 else
20615 echo "configure: failed program was:" >&5
20616 cat conftest.$ac_ext >&5
20617 rm -rf conftest*
20618 glibcpp_cv_func___builtin_abs_link=no
20620 rm -f conftest*
20625 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
20626 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
20627 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20628 cat >> confdefs.h <<EOF
20629 #define ${ac_tr_func} 1
20636 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
20637 echo "configure:20638: checking for __builtin_fabsf declaration" >&5
20638 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
20639 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
20640 echo $ac_n "(cached) $ac_c" 1>&6
20641 else
20644 ac_ext=C
20645 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20646 ac_cpp='$CXXCPP $CPPFLAGS'
20647 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20648 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20649 cross_compiling=$ac_cv_prog_cxx_cross
20651 cat > conftest.$ac_ext <<EOF
20652 #line 20653 "configure"
20653 #include "confdefs.h"
20654 #include <math.h>
20655 int main() {
20656 __builtin_fabsf(0);
20657 ; return 0; }
20659 if { (eval echo configure:20660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20660 rm -rf conftest*
20661 glibcpp_cv_func___builtin_fabsf_use=yes
20662 else
20663 echo "configure: failed program was:" >&5
20664 cat conftest.$ac_ext >&5
20665 rm -rf conftest*
20666 glibcpp_cv_func___builtin_fabsf_use=no
20668 rm -f conftest*
20669 ac_ext=c
20670 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20671 ac_cpp='$CPP $CPPFLAGS'
20672 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20673 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20674 cross_compiling=$ac_cv_prog_cc_cross
20680 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
20681 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
20682 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
20683 echo "configure:20684: checking for __builtin_fabsf linkage" >&5
20684 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
20685 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
20686 echo $ac_n "(cached) $ac_c" 1>&6
20687 else
20689 cat > conftest.$ac_ext <<EOF
20690 #line 20691 "configure"
20691 #include "confdefs.h"
20692 #include <math.h>
20693 int main() {
20694 __builtin_fabsf(0);
20695 ; return 0; }
20697 if { (eval echo configure:20698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20698 rm -rf conftest*
20699 glibcpp_cv_func___builtin_fabsf_link=yes
20700 else
20701 echo "configure: failed program was:" >&5
20702 cat conftest.$ac_ext >&5
20703 rm -rf conftest*
20704 glibcpp_cv_func___builtin_fabsf_link=no
20706 rm -f conftest*
20711 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
20712 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
20713 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20714 cat >> confdefs.h <<EOF
20715 #define ${ac_tr_func} 1
20722 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
20723 echo "configure:20724: checking for __builtin_fabs declaration" >&5
20724 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
20725 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
20726 echo $ac_n "(cached) $ac_c" 1>&6
20727 else
20730 ac_ext=C
20731 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20732 ac_cpp='$CXXCPP $CPPFLAGS'
20733 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20734 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20735 cross_compiling=$ac_cv_prog_cxx_cross
20737 cat > conftest.$ac_ext <<EOF
20738 #line 20739 "configure"
20739 #include "confdefs.h"
20740 #include <math.h>
20741 int main() {
20742 __builtin_fabs(0);
20743 ; return 0; }
20745 if { (eval echo configure:20746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20746 rm -rf conftest*
20747 glibcpp_cv_func___builtin_fabs_use=yes
20748 else
20749 echo "configure: failed program was:" >&5
20750 cat conftest.$ac_ext >&5
20751 rm -rf conftest*
20752 glibcpp_cv_func___builtin_fabs_use=no
20754 rm -f conftest*
20755 ac_ext=c
20756 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20757 ac_cpp='$CPP $CPPFLAGS'
20758 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20759 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20760 cross_compiling=$ac_cv_prog_cc_cross
20766 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
20767 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
20768 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
20769 echo "configure:20770: checking for __builtin_fabs linkage" >&5
20770 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
20771 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
20772 echo $ac_n "(cached) $ac_c" 1>&6
20773 else
20775 cat > conftest.$ac_ext <<EOF
20776 #line 20777 "configure"
20777 #include "confdefs.h"
20778 #include <math.h>
20779 int main() {
20780 __builtin_fabs(0);
20781 ; return 0; }
20783 if { (eval echo configure:20784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20784 rm -rf conftest*
20785 glibcpp_cv_func___builtin_fabs_link=yes
20786 else
20787 echo "configure: failed program was:" >&5
20788 cat conftest.$ac_ext >&5
20789 rm -rf conftest*
20790 glibcpp_cv_func___builtin_fabs_link=no
20792 rm -f conftest*
20797 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
20798 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
20799 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20800 cat >> confdefs.h <<EOF
20801 #define ${ac_tr_func} 1
20808 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
20809 echo "configure:20810: checking for __builtin_fabsl declaration" >&5
20810 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
20811 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
20812 echo $ac_n "(cached) $ac_c" 1>&6
20813 else
20816 ac_ext=C
20817 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20818 ac_cpp='$CXXCPP $CPPFLAGS'
20819 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20820 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20821 cross_compiling=$ac_cv_prog_cxx_cross
20823 cat > conftest.$ac_ext <<EOF
20824 #line 20825 "configure"
20825 #include "confdefs.h"
20826 #include <math.h>
20827 int main() {
20828 __builtin_fabsl(0);
20829 ; return 0; }
20831 if { (eval echo configure:20832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20832 rm -rf conftest*
20833 glibcpp_cv_func___builtin_fabsl_use=yes
20834 else
20835 echo "configure: failed program was:" >&5
20836 cat conftest.$ac_ext >&5
20837 rm -rf conftest*
20838 glibcpp_cv_func___builtin_fabsl_use=no
20840 rm -f conftest*
20841 ac_ext=c
20842 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20843 ac_cpp='$CPP $CPPFLAGS'
20844 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20845 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20846 cross_compiling=$ac_cv_prog_cc_cross
20852 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
20853 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
20854 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
20855 echo "configure:20856: checking for __builtin_fabsl linkage" >&5
20856 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
20857 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
20858 echo $ac_n "(cached) $ac_c" 1>&6
20859 else
20861 cat > conftest.$ac_ext <<EOF
20862 #line 20863 "configure"
20863 #include "confdefs.h"
20864 #include <math.h>
20865 int main() {
20866 __builtin_fabsl(0);
20867 ; return 0; }
20869 if { (eval echo configure:20870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20870 rm -rf conftest*
20871 glibcpp_cv_func___builtin_fabsl_link=yes
20872 else
20873 echo "configure: failed program was:" >&5
20874 cat conftest.$ac_ext >&5
20875 rm -rf conftest*
20876 glibcpp_cv_func___builtin_fabsl_link=no
20878 rm -f conftest*
20883 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
20884 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
20885 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20886 cat >> confdefs.h <<EOF
20887 #define ${ac_tr_func} 1
20894 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
20895 echo "configure:20896: checking for __builtin_labs declaration" >&5
20896 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
20897 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
20898 echo $ac_n "(cached) $ac_c" 1>&6
20899 else
20902 ac_ext=C
20903 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20904 ac_cpp='$CXXCPP $CPPFLAGS'
20905 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20906 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20907 cross_compiling=$ac_cv_prog_cxx_cross
20909 cat > conftest.$ac_ext <<EOF
20910 #line 20911 "configure"
20911 #include "confdefs.h"
20912 #include <math.h>
20913 int main() {
20914 __builtin_labs(0);
20915 ; return 0; }
20917 if { (eval echo configure:20918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20918 rm -rf conftest*
20919 glibcpp_cv_func___builtin_labs_use=yes
20920 else
20921 echo "configure: failed program was:" >&5
20922 cat conftest.$ac_ext >&5
20923 rm -rf conftest*
20924 glibcpp_cv_func___builtin_labs_use=no
20926 rm -f conftest*
20927 ac_ext=c
20928 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20929 ac_cpp='$CPP $CPPFLAGS'
20930 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20931 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20932 cross_compiling=$ac_cv_prog_cc_cross
20938 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
20939 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
20940 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
20941 echo "configure:20942: checking for __builtin_labs linkage" >&5
20942 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
20943 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
20944 echo $ac_n "(cached) $ac_c" 1>&6
20945 else
20947 cat > conftest.$ac_ext <<EOF
20948 #line 20949 "configure"
20949 #include "confdefs.h"
20950 #include <math.h>
20951 int main() {
20952 __builtin_labs(0);
20953 ; return 0; }
20955 if { (eval echo configure:20956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20956 rm -rf conftest*
20957 glibcpp_cv_func___builtin_labs_link=yes
20958 else
20959 echo "configure: failed program was:" >&5
20960 cat conftest.$ac_ext >&5
20961 rm -rf conftest*
20962 glibcpp_cv_func___builtin_labs_link=no
20964 rm -f conftest*
20969 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
20970 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
20971 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20972 cat >> confdefs.h <<EOF
20973 #define ${ac_tr_func} 1
20981 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
20982 echo "configure:20983: checking for __builtin_sqrtf declaration" >&5
20983 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
20984 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
20985 echo $ac_n "(cached) $ac_c" 1>&6
20986 else
20989 ac_ext=C
20990 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20991 ac_cpp='$CXXCPP $CPPFLAGS'
20992 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20993 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20994 cross_compiling=$ac_cv_prog_cxx_cross
20996 cat > conftest.$ac_ext <<EOF
20997 #line 20998 "configure"
20998 #include "confdefs.h"
20999 #include <math.h>
21000 int main() {
21001 __builtin_sqrtf(0);
21002 ; return 0; }
21004 if { (eval echo configure:21005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21005 rm -rf conftest*
21006 glibcpp_cv_func___builtin_sqrtf_use=yes
21007 else
21008 echo "configure: failed program was:" >&5
21009 cat conftest.$ac_ext >&5
21010 rm -rf conftest*
21011 glibcpp_cv_func___builtin_sqrtf_use=no
21013 rm -f conftest*
21014 ac_ext=c
21015 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21016 ac_cpp='$CPP $CPPFLAGS'
21017 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21018 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21019 cross_compiling=$ac_cv_prog_cc_cross
21025 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
21026 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
21027 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
21028 echo "configure:21029: checking for __builtin_sqrtf linkage" >&5
21029 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
21030 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
21031 echo $ac_n "(cached) $ac_c" 1>&6
21032 else
21034 cat > conftest.$ac_ext <<EOF
21035 #line 21036 "configure"
21036 #include "confdefs.h"
21037 #include <math.h>
21038 int main() {
21039 __builtin_sqrtf(0);
21040 ; return 0; }
21042 if { (eval echo configure:21043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21043 rm -rf conftest*
21044 glibcpp_cv_func___builtin_sqrtf_link=yes
21045 else
21046 echo "configure: failed program was:" >&5
21047 cat conftest.$ac_ext >&5
21048 rm -rf conftest*
21049 glibcpp_cv_func___builtin_sqrtf_link=no
21051 rm -f conftest*
21056 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
21057 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
21058 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21059 cat >> confdefs.h <<EOF
21060 #define ${ac_tr_func} 1
21067 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
21068 echo "configure:21069: checking for __builtin_sqrt declaration" >&5
21069 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
21070 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
21071 echo $ac_n "(cached) $ac_c" 1>&6
21072 else
21075 ac_ext=C
21076 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21077 ac_cpp='$CXXCPP $CPPFLAGS'
21078 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21079 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21080 cross_compiling=$ac_cv_prog_cxx_cross
21082 cat > conftest.$ac_ext <<EOF
21083 #line 21084 "configure"
21084 #include "confdefs.h"
21085 #include <math.h>
21086 int main() {
21087 __builtin_sqrt(0);
21088 ; return 0; }
21090 if { (eval echo configure:21091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21091 rm -rf conftest*
21092 glibcpp_cv_func___builtin_sqrt_use=yes
21093 else
21094 echo "configure: failed program was:" >&5
21095 cat conftest.$ac_ext >&5
21096 rm -rf conftest*
21097 glibcpp_cv_func___builtin_sqrt_use=no
21099 rm -f conftest*
21100 ac_ext=c
21101 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21102 ac_cpp='$CPP $CPPFLAGS'
21103 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21104 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21105 cross_compiling=$ac_cv_prog_cc_cross
21111 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
21112 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
21113 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
21114 echo "configure:21115: checking for __builtin_sqrt linkage" >&5
21115 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
21116 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
21117 echo $ac_n "(cached) $ac_c" 1>&6
21118 else
21120 cat > conftest.$ac_ext <<EOF
21121 #line 21122 "configure"
21122 #include "confdefs.h"
21123 #include <math.h>
21124 int main() {
21125 __builtin_sqrt(0);
21126 ; return 0; }
21128 if { (eval echo configure:21129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21129 rm -rf conftest*
21130 glibcpp_cv_func___builtin_sqrt_link=yes
21131 else
21132 echo "configure: failed program was:" >&5
21133 cat conftest.$ac_ext >&5
21134 rm -rf conftest*
21135 glibcpp_cv_func___builtin_sqrt_link=no
21137 rm -f conftest*
21142 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
21143 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
21144 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21145 cat >> confdefs.h <<EOF
21146 #define ${ac_tr_func} 1
21153 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
21154 echo "configure:21155: checking for __builtin_sqrtl declaration" >&5
21155 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
21156 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
21157 echo $ac_n "(cached) $ac_c" 1>&6
21158 else
21161 ac_ext=C
21162 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21163 ac_cpp='$CXXCPP $CPPFLAGS'
21164 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21165 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21166 cross_compiling=$ac_cv_prog_cxx_cross
21168 cat > conftest.$ac_ext <<EOF
21169 #line 21170 "configure"
21170 #include "confdefs.h"
21171 #include <math.h>
21172 int main() {
21173 __builtin_sqrtl(0);
21174 ; return 0; }
21176 if { (eval echo configure:21177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21177 rm -rf conftest*
21178 glibcpp_cv_func___builtin_sqrtl_use=yes
21179 else
21180 echo "configure: failed program was:" >&5
21181 cat conftest.$ac_ext >&5
21182 rm -rf conftest*
21183 glibcpp_cv_func___builtin_sqrtl_use=no
21185 rm -f conftest*
21186 ac_ext=c
21187 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21188 ac_cpp='$CPP $CPPFLAGS'
21189 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21190 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21191 cross_compiling=$ac_cv_prog_cc_cross
21197 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
21198 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
21199 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
21200 echo "configure:21201: checking for __builtin_sqrtl linkage" >&5
21201 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
21202 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
21203 echo $ac_n "(cached) $ac_c" 1>&6
21204 else
21206 cat > conftest.$ac_ext <<EOF
21207 #line 21208 "configure"
21208 #include "confdefs.h"
21209 #include <math.h>
21210 int main() {
21211 __builtin_sqrtl(0);
21212 ; return 0; }
21214 if { (eval echo configure:21215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21215 rm -rf conftest*
21216 glibcpp_cv_func___builtin_sqrtl_link=yes
21217 else
21218 echo "configure: failed program was:" >&5
21219 cat conftest.$ac_ext >&5
21220 rm -rf conftest*
21221 glibcpp_cv_func___builtin_sqrtl_link=no
21223 rm -f conftest*
21228 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
21229 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
21230 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21231 cat >> confdefs.h <<EOF
21232 #define ${ac_tr_func} 1
21240 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
21241 echo "configure:21242: checking for __builtin_sinf declaration" >&5
21242 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
21243 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
21244 echo $ac_n "(cached) $ac_c" 1>&6
21245 else
21248 ac_ext=C
21249 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21250 ac_cpp='$CXXCPP $CPPFLAGS'
21251 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21252 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21253 cross_compiling=$ac_cv_prog_cxx_cross
21255 cat > conftest.$ac_ext <<EOF
21256 #line 21257 "configure"
21257 #include "confdefs.h"
21258 #include <math.h>
21259 int main() {
21260 __builtin_sinf(0);
21261 ; return 0; }
21263 if { (eval echo configure:21264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21264 rm -rf conftest*
21265 glibcpp_cv_func___builtin_sinf_use=yes
21266 else
21267 echo "configure: failed program was:" >&5
21268 cat conftest.$ac_ext >&5
21269 rm -rf conftest*
21270 glibcpp_cv_func___builtin_sinf_use=no
21272 rm -f conftest*
21273 ac_ext=c
21274 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21275 ac_cpp='$CPP $CPPFLAGS'
21276 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21277 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21278 cross_compiling=$ac_cv_prog_cc_cross
21284 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
21285 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
21286 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
21287 echo "configure:21288: checking for __builtin_sinf linkage" >&5
21288 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
21289 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
21290 echo $ac_n "(cached) $ac_c" 1>&6
21291 else
21293 cat > conftest.$ac_ext <<EOF
21294 #line 21295 "configure"
21295 #include "confdefs.h"
21296 #include <math.h>
21297 int main() {
21298 __builtin_sinf(0);
21299 ; return 0; }
21301 if { (eval echo configure:21302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21302 rm -rf conftest*
21303 glibcpp_cv_func___builtin_sinf_link=yes
21304 else
21305 echo "configure: failed program was:" >&5
21306 cat conftest.$ac_ext >&5
21307 rm -rf conftest*
21308 glibcpp_cv_func___builtin_sinf_link=no
21310 rm -f conftest*
21315 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
21316 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
21317 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21318 cat >> confdefs.h <<EOF
21319 #define ${ac_tr_func} 1
21326 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
21327 echo "configure:21328: checking for __builtin_sin declaration" >&5
21328 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
21329 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
21330 echo $ac_n "(cached) $ac_c" 1>&6
21331 else
21334 ac_ext=C
21335 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21336 ac_cpp='$CXXCPP $CPPFLAGS'
21337 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21338 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21339 cross_compiling=$ac_cv_prog_cxx_cross
21341 cat > conftest.$ac_ext <<EOF
21342 #line 21343 "configure"
21343 #include "confdefs.h"
21344 #include <math.h>
21345 int main() {
21346 __builtin_sin(0);
21347 ; return 0; }
21349 if { (eval echo configure:21350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21350 rm -rf conftest*
21351 glibcpp_cv_func___builtin_sin_use=yes
21352 else
21353 echo "configure: failed program was:" >&5
21354 cat conftest.$ac_ext >&5
21355 rm -rf conftest*
21356 glibcpp_cv_func___builtin_sin_use=no
21358 rm -f conftest*
21359 ac_ext=c
21360 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21361 ac_cpp='$CPP $CPPFLAGS'
21362 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21363 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21364 cross_compiling=$ac_cv_prog_cc_cross
21370 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
21371 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
21372 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
21373 echo "configure:21374: checking for __builtin_sin linkage" >&5
21374 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
21375 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
21376 echo $ac_n "(cached) $ac_c" 1>&6
21377 else
21379 cat > conftest.$ac_ext <<EOF
21380 #line 21381 "configure"
21381 #include "confdefs.h"
21382 #include <math.h>
21383 int main() {
21384 __builtin_sin(0);
21385 ; return 0; }
21387 if { (eval echo configure:21388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21388 rm -rf conftest*
21389 glibcpp_cv_func___builtin_sin_link=yes
21390 else
21391 echo "configure: failed program was:" >&5
21392 cat conftest.$ac_ext >&5
21393 rm -rf conftest*
21394 glibcpp_cv_func___builtin_sin_link=no
21396 rm -f conftest*
21401 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
21402 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
21403 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21404 cat >> confdefs.h <<EOF
21405 #define ${ac_tr_func} 1
21412 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
21413 echo "configure:21414: checking for __builtin_sinl declaration" >&5
21414 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
21415 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
21416 echo $ac_n "(cached) $ac_c" 1>&6
21417 else
21420 ac_ext=C
21421 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21422 ac_cpp='$CXXCPP $CPPFLAGS'
21423 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21424 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21425 cross_compiling=$ac_cv_prog_cxx_cross
21427 cat > conftest.$ac_ext <<EOF
21428 #line 21429 "configure"
21429 #include "confdefs.h"
21430 #include <math.h>
21431 int main() {
21432 __builtin_sinl(0);
21433 ; return 0; }
21435 if { (eval echo configure:21436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21436 rm -rf conftest*
21437 glibcpp_cv_func___builtin_sinl_use=yes
21438 else
21439 echo "configure: failed program was:" >&5
21440 cat conftest.$ac_ext >&5
21441 rm -rf conftest*
21442 glibcpp_cv_func___builtin_sinl_use=no
21444 rm -f conftest*
21445 ac_ext=c
21446 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21447 ac_cpp='$CPP $CPPFLAGS'
21448 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21449 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21450 cross_compiling=$ac_cv_prog_cc_cross
21456 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
21457 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
21458 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
21459 echo "configure:21460: checking for __builtin_sinl linkage" >&5
21460 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
21461 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
21462 echo $ac_n "(cached) $ac_c" 1>&6
21463 else
21465 cat > conftest.$ac_ext <<EOF
21466 #line 21467 "configure"
21467 #include "confdefs.h"
21468 #include <math.h>
21469 int main() {
21470 __builtin_sinl(0);
21471 ; return 0; }
21473 if { (eval echo configure:21474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21474 rm -rf conftest*
21475 glibcpp_cv_func___builtin_sinl_link=yes
21476 else
21477 echo "configure: failed program was:" >&5
21478 cat conftest.$ac_ext >&5
21479 rm -rf conftest*
21480 glibcpp_cv_func___builtin_sinl_link=no
21482 rm -f conftest*
21487 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
21488 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
21489 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21490 cat >> confdefs.h <<EOF
21491 #define ${ac_tr_func} 1
21499 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
21500 echo "configure:21501: checking for __builtin_cosf declaration" >&5
21501 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
21502 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
21503 echo $ac_n "(cached) $ac_c" 1>&6
21504 else
21507 ac_ext=C
21508 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21509 ac_cpp='$CXXCPP $CPPFLAGS'
21510 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21511 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21512 cross_compiling=$ac_cv_prog_cxx_cross
21514 cat > conftest.$ac_ext <<EOF
21515 #line 21516 "configure"
21516 #include "confdefs.h"
21517 #include <math.h>
21518 int main() {
21519 __builtin_cosf(0);
21520 ; return 0; }
21522 if { (eval echo configure:21523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21523 rm -rf conftest*
21524 glibcpp_cv_func___builtin_cosf_use=yes
21525 else
21526 echo "configure: failed program was:" >&5
21527 cat conftest.$ac_ext >&5
21528 rm -rf conftest*
21529 glibcpp_cv_func___builtin_cosf_use=no
21531 rm -f conftest*
21532 ac_ext=c
21533 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21534 ac_cpp='$CPP $CPPFLAGS'
21535 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21536 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21537 cross_compiling=$ac_cv_prog_cc_cross
21543 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
21544 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
21545 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
21546 echo "configure:21547: checking for __builtin_cosf linkage" >&5
21547 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
21548 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
21549 echo $ac_n "(cached) $ac_c" 1>&6
21550 else
21552 cat > conftest.$ac_ext <<EOF
21553 #line 21554 "configure"
21554 #include "confdefs.h"
21555 #include <math.h>
21556 int main() {
21557 __builtin_cosf(0);
21558 ; return 0; }
21560 if { (eval echo configure:21561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21561 rm -rf conftest*
21562 glibcpp_cv_func___builtin_cosf_link=yes
21563 else
21564 echo "configure: failed program was:" >&5
21565 cat conftest.$ac_ext >&5
21566 rm -rf conftest*
21567 glibcpp_cv_func___builtin_cosf_link=no
21569 rm -f conftest*
21574 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
21575 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
21576 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21577 cat >> confdefs.h <<EOF
21578 #define ${ac_tr_func} 1
21585 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
21586 echo "configure:21587: checking for __builtin_cos declaration" >&5
21587 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
21588 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
21589 echo $ac_n "(cached) $ac_c" 1>&6
21590 else
21593 ac_ext=C
21594 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21595 ac_cpp='$CXXCPP $CPPFLAGS'
21596 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21597 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21598 cross_compiling=$ac_cv_prog_cxx_cross
21600 cat > conftest.$ac_ext <<EOF
21601 #line 21602 "configure"
21602 #include "confdefs.h"
21603 #include <math.h>
21604 int main() {
21605 __builtin_cos(0);
21606 ; return 0; }
21608 if { (eval echo configure:21609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21609 rm -rf conftest*
21610 glibcpp_cv_func___builtin_cos_use=yes
21611 else
21612 echo "configure: failed program was:" >&5
21613 cat conftest.$ac_ext >&5
21614 rm -rf conftest*
21615 glibcpp_cv_func___builtin_cos_use=no
21617 rm -f conftest*
21618 ac_ext=c
21619 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21620 ac_cpp='$CPP $CPPFLAGS'
21621 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21622 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21623 cross_compiling=$ac_cv_prog_cc_cross
21629 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
21630 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
21631 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
21632 echo "configure:21633: checking for __builtin_cos linkage" >&5
21633 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
21634 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
21635 echo $ac_n "(cached) $ac_c" 1>&6
21636 else
21638 cat > conftest.$ac_ext <<EOF
21639 #line 21640 "configure"
21640 #include "confdefs.h"
21641 #include <math.h>
21642 int main() {
21643 __builtin_cos(0);
21644 ; return 0; }
21646 if { (eval echo configure:21647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21647 rm -rf conftest*
21648 glibcpp_cv_func___builtin_cos_link=yes
21649 else
21650 echo "configure: failed program was:" >&5
21651 cat conftest.$ac_ext >&5
21652 rm -rf conftest*
21653 glibcpp_cv_func___builtin_cos_link=no
21655 rm -f conftest*
21660 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
21661 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
21662 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21663 cat >> confdefs.h <<EOF
21664 #define ${ac_tr_func} 1
21671 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
21672 echo "configure:21673: checking for __builtin_cosl declaration" >&5
21673 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
21674 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
21675 echo $ac_n "(cached) $ac_c" 1>&6
21676 else
21679 ac_ext=C
21680 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21681 ac_cpp='$CXXCPP $CPPFLAGS'
21682 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21683 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21684 cross_compiling=$ac_cv_prog_cxx_cross
21686 cat > conftest.$ac_ext <<EOF
21687 #line 21688 "configure"
21688 #include "confdefs.h"
21689 #include <math.h>
21690 int main() {
21691 __builtin_cosl(0);
21692 ; return 0; }
21694 if { (eval echo configure:21695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21695 rm -rf conftest*
21696 glibcpp_cv_func___builtin_cosl_use=yes
21697 else
21698 echo "configure: failed program was:" >&5
21699 cat conftest.$ac_ext >&5
21700 rm -rf conftest*
21701 glibcpp_cv_func___builtin_cosl_use=no
21703 rm -f conftest*
21704 ac_ext=c
21705 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21706 ac_cpp='$CPP $CPPFLAGS'
21707 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21708 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21709 cross_compiling=$ac_cv_prog_cc_cross
21715 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
21716 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
21717 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
21718 echo "configure:21719: checking for __builtin_cosl linkage" >&5
21719 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
21720 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
21721 echo $ac_n "(cached) $ac_c" 1>&6
21722 else
21724 cat > conftest.$ac_ext <<EOF
21725 #line 21726 "configure"
21726 #include "confdefs.h"
21727 #include <math.h>
21728 int main() {
21729 __builtin_cosl(0);
21730 ; return 0; }
21732 if { (eval echo configure:21733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21733 rm -rf conftest*
21734 glibcpp_cv_func___builtin_cosl_link=yes
21735 else
21736 echo "configure: failed program was:" >&5
21737 cat conftest.$ac_ext >&5
21738 rm -rf conftest*
21739 glibcpp_cv_func___builtin_cosl_link=no
21741 rm -f conftest*
21746 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
21747 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
21748 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21749 cat >> confdefs.h <<EOF
21750 #define ${ac_tr_func} 1
21757 dummyvar=no
21758 if test x$dummyvar = x"yes"; then
21759 cat >> confdefs.h <<\EOF
21760 #define HAVE___BUILTIN_ABS 1
21763 cat >> confdefs.h <<\EOF
21764 #define HAVE___BUILTIN_LABS 1
21767 cat >> confdefs.h <<\EOF
21768 #define HAVE___BUILTIN_COS 1
21771 cat >> confdefs.h <<\EOF
21772 #define HAVE___BUILTIN_COSF 1
21775 cat >> confdefs.h <<\EOF
21776 #define HAVE___BUILTIN_COSL 1
21779 cat >> confdefs.h <<\EOF
21780 #define HAVE___BUILTIN_FABS 1
21783 cat >> confdefs.h <<\EOF
21784 #define HAVE___BUILTIN_FABSF 1
21787 cat >> confdefs.h <<\EOF
21788 #define HAVE___BUILTIN_FABSL 1
21791 cat >> confdefs.h <<\EOF
21792 #define HAVE___BUILTIN_SIN 1
21795 cat >> confdefs.h <<\EOF
21796 #define HAVE___BUILTIN_SINF 1
21799 cat >> confdefs.h <<\EOF
21800 #define HAVE___BUILTIN_SINL 1
21803 cat >> confdefs.h <<\EOF
21804 #define HAVE___BUILTIN_SQRT 1
21807 cat >> confdefs.h <<\EOF
21808 #define HAVE___BUILTIN_SQRTF 1
21811 cat >> confdefs.h <<\EOF
21812 #define HAVE___BUILTIN_SQRTL 1
21818 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21819 echo "configure:21820: checking for main in -lm" >&5
21820 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21821 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21822 echo $ac_n "(cached) $ac_c" 1>&6
21823 else
21824 ac_save_LIBS="$LIBS"
21825 LIBS="-lm $LIBS"
21826 cat > conftest.$ac_ext <<EOF
21827 #line 21828 "configure"
21828 #include "confdefs.h"
21830 int main() {
21831 main()
21832 ; return 0; }
21834 if { (eval echo configure:21835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21835 rm -rf conftest*
21836 eval "ac_cv_lib_$ac_lib_var=yes"
21837 else
21838 echo "configure: failed program was:" >&5
21839 cat conftest.$ac_ext >&5
21840 rm -rf conftest*
21841 eval "ac_cv_lib_$ac_lib_var=no"
21843 rm -f conftest*
21844 LIBS="$ac_save_LIBS"
21847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21848 echo "$ac_t""yes" 1>&6
21849 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21850 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21851 cat >> confdefs.h <<EOF
21852 #define $ac_tr_lib 1
21855 LIBS="-lm $LIBS"
21857 else
21858 echo "$ac_t""no" 1>&6
21861 for ac_func in nan copysignf
21863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21864 echo "configure:21865: checking for $ac_func" >&5
21865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21866 echo $ac_n "(cached) $ac_c" 1>&6
21867 else
21868 cat > conftest.$ac_ext <<EOF
21869 #line 21870 "configure"
21870 #include "confdefs.h"
21871 /* System header to define __stub macros and hopefully few prototypes,
21872 which can conflict with char $ac_func(); below. */
21873 #include <assert.h>
21874 /* Override any gcc2 internal prototype to avoid an error. */
21875 /* We use char because int might match the return type of a gcc2
21876 builtin and then its argument prototype would still apply. */
21877 char $ac_func();
21879 int main() {
21881 /* The GNU C library defines this for functions which it implements
21882 to always fail with ENOSYS. Some functions are actually named
21883 something starting with __ and the normal name is an alias. */
21884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21885 choke me
21886 #else
21887 $ac_func();
21888 #endif
21890 ; return 0; }
21892 if { (eval echo configure:21893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21893 rm -rf conftest*
21894 eval "ac_cv_func_$ac_func=yes"
21895 else
21896 echo "configure: failed program was:" >&5
21897 cat conftest.$ac_ext >&5
21898 rm -rf conftest*
21899 eval "ac_cv_func_$ac_func=no"
21901 rm -f conftest*
21904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21905 echo "$ac_t""yes" 1>&6
21906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21907 cat >> confdefs.h <<EOF
21908 #define $ac_tr_func 1
21911 else
21912 echo "$ac_t""no" 1>&6
21913 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21915 done
21918 for ac_func in __signbit
21920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21921 echo "configure:21922: checking for $ac_func" >&5
21922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21923 echo $ac_n "(cached) $ac_c" 1>&6
21924 else
21925 cat > conftest.$ac_ext <<EOF
21926 #line 21927 "configure"
21927 #include "confdefs.h"
21928 /* System header to define __stub macros and hopefully few prototypes,
21929 which can conflict with char $ac_func(); below. */
21930 #include <assert.h>
21931 /* Override any gcc2 internal prototype to avoid an error. */
21932 /* We use char because int might match the return type of a gcc2
21933 builtin and then its argument prototype would still apply. */
21934 char $ac_func();
21936 int main() {
21938 /* The GNU C library defines this for functions which it implements
21939 to always fail with ENOSYS. Some functions are actually named
21940 something starting with __ and the normal name is an alias. */
21941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21942 choke me
21943 #else
21944 $ac_func();
21945 #endif
21947 ; return 0; }
21949 if { (eval echo configure:21950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21950 rm -rf conftest*
21951 eval "ac_cv_func_$ac_func=yes"
21952 else
21953 echo "configure: failed program was:" >&5
21954 cat conftest.$ac_ext >&5
21955 rm -rf conftest*
21956 eval "ac_cv_func_$ac_func=no"
21958 rm -f conftest*
21961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21962 echo "$ac_t""yes" 1>&6
21963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21964 cat >> confdefs.h <<EOF
21965 #define $ac_tr_func 1
21968 else
21969 echo "$ac_t""no" 1>&6
21970 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21972 done
21974 for ac_func in __signbitf
21976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21977 echo "configure:21978: checking for $ac_func" >&5
21978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21979 echo $ac_n "(cached) $ac_c" 1>&6
21980 else
21981 cat > conftest.$ac_ext <<EOF
21982 #line 21983 "configure"
21983 #include "confdefs.h"
21984 /* System header to define __stub macros and hopefully few prototypes,
21985 which can conflict with char $ac_func(); below. */
21986 #include <assert.h>
21987 /* Override any gcc2 internal prototype to avoid an error. */
21988 /* We use char because int might match the return type of a gcc2
21989 builtin and then its argument prototype would still apply. */
21990 char $ac_func();
21992 int main() {
21994 /* The GNU C library defines this for functions which it implements
21995 to always fail with ENOSYS. Some functions are actually named
21996 something starting with __ and the normal name is an alias. */
21997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21998 choke me
21999 #else
22000 $ac_func();
22001 #endif
22003 ; return 0; }
22005 if { (eval echo configure:22006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22006 rm -rf conftest*
22007 eval "ac_cv_func_$ac_func=yes"
22008 else
22009 echo "configure: failed program was:" >&5
22010 cat conftest.$ac_ext >&5
22011 rm -rf conftest*
22012 eval "ac_cv_func_$ac_func=no"
22014 rm -f conftest*
22017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22018 echo "$ac_t""yes" 1>&6
22019 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22020 cat >> confdefs.h <<EOF
22021 #define $ac_tr_func 1
22024 else
22025 echo "$ac_t""no" 1>&6
22026 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
22028 done
22031 if test x$ac_cv_func_copysignl = x"yes"; then
22032 for ac_func in __signbitl
22034 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22035 echo "configure:22036: checking for $ac_func" >&5
22036 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22037 echo $ac_n "(cached) $ac_c" 1>&6
22038 else
22039 cat > conftest.$ac_ext <<EOF
22040 #line 22041 "configure"
22041 #include "confdefs.h"
22042 /* System header to define __stub macros and hopefully few prototypes,
22043 which can conflict with char $ac_func(); below. */
22044 #include <assert.h>
22045 /* Override any gcc2 internal prototype to avoid an error. */
22046 /* We use char because int might match the return type of a gcc2
22047 builtin and then its argument prototype would still apply. */
22048 char $ac_func();
22050 int main() {
22052 /* The GNU C library defines this for functions which it implements
22053 to always fail with ENOSYS. Some functions are actually named
22054 something starting with __ and the normal name is an alias. */
22055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22056 choke me
22057 #else
22058 $ac_func();
22059 #endif
22061 ; return 0; }
22063 if { (eval echo configure:22064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22064 rm -rf conftest*
22065 eval "ac_cv_func_$ac_func=yes"
22066 else
22067 echo "configure: failed program was:" >&5
22068 cat conftest.$ac_ext >&5
22069 rm -rf conftest*
22070 eval "ac_cv_func_$ac_func=no"
22072 rm -f conftest*
22075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22076 echo "$ac_t""yes" 1>&6
22077 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22078 cat >> confdefs.h <<EOF
22079 #define $ac_tr_func 1
22082 else
22083 echo "$ac_t""no" 1>&6
22084 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
22086 done
22090 if test -n "$LIBMATHOBJS"; then
22091 need_libmath=yes
22096 if test "$need_libmath" = yes; then
22097 GLIBCPP_BUILD_LIBMATH_TRUE=
22098 GLIBCPP_BUILD_LIBMATH_FALSE='#'
22099 else
22100 GLIBCPP_BUILD_LIBMATH_TRUE='#'
22101 GLIBCPP_BUILD_LIBMATH_FALSE=
22105 enable_wchar_t=no
22107 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
22108 echo "configure:22109: checking for mbstate_t" >&5
22109 cat > conftest.$ac_ext <<EOF
22110 #line 22111 "configure"
22111 #include "confdefs.h"
22112 #include <wchar.h>
22113 int main() {
22114 mbstate_t teststate;
22115 ; return 0; }
22117 if { (eval echo configure:22118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22118 rm -rf conftest*
22119 have_mbstate_t=yes
22120 else
22121 echo "configure: failed program was:" >&5
22122 cat conftest.$ac_ext >&5
22123 rm -rf conftest*
22124 have_mbstate_t=no
22126 rm -f conftest*
22127 echo "$ac_t""$have_mbstate_t" 1>&6
22128 if test x"$have_mbstate_t" = xyes; then
22129 cat >> confdefs.h <<\EOF
22130 #define HAVE_MBSTATE_T 1
22135 for ac_hdr in wchar.h
22137 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22138 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22139 echo "configure:22140: checking for $ac_hdr" >&5
22140 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22141 echo $ac_n "(cached) $ac_c" 1>&6
22142 else
22143 cat > conftest.$ac_ext <<EOF
22144 #line 22145 "configure"
22145 #include "confdefs.h"
22146 #include <$ac_hdr>
22148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22149 { (eval echo configure:22150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22150 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22151 if test -z "$ac_err"; then
22152 rm -rf conftest*
22153 eval "ac_cv_header_$ac_safe=yes"
22154 else
22155 echo "$ac_err" >&5
22156 echo "configure: failed program was:" >&5
22157 cat conftest.$ac_ext >&5
22158 rm -rf conftest*
22159 eval "ac_cv_header_$ac_safe=no"
22161 rm -f conftest*
22163 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22164 echo "$ac_t""yes" 1>&6
22165 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22166 cat >> confdefs.h <<EOF
22167 #define $ac_tr_hdr 1
22169 ac_has_wchar_h=yes
22170 else
22171 echo "$ac_t""no" 1>&6
22172 ac_has_wchar_h=no
22174 done
22176 for ac_hdr in wctype.h
22178 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22179 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22180 echo "configure:22181: checking for $ac_hdr" >&5
22181 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22182 echo $ac_n "(cached) $ac_c" 1>&6
22183 else
22184 cat > conftest.$ac_ext <<EOF
22185 #line 22186 "configure"
22186 #include "confdefs.h"
22187 #include <$ac_hdr>
22189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22190 { (eval echo configure:22191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22192 if test -z "$ac_err"; then
22193 rm -rf conftest*
22194 eval "ac_cv_header_$ac_safe=yes"
22195 else
22196 echo "$ac_err" >&5
22197 echo "configure: failed program was:" >&5
22198 cat conftest.$ac_ext >&5
22199 rm -rf conftest*
22200 eval "ac_cv_header_$ac_safe=no"
22202 rm -f conftest*
22204 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22205 echo "$ac_t""yes" 1>&6
22206 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22207 cat >> confdefs.h <<EOF
22208 #define $ac_tr_hdr 1
22210 ac_has_wctype_h=yes
22211 else
22212 echo "$ac_t""no" 1>&6
22213 ac_has_wctype_h=no
22215 done
22218 if test x"$ac_has_wchar_h" = xyes &&
22219 test x"$ac_has_wctype_h" = xyes &&
22220 test x"$enable_c_mbchar" != xno; then
22222 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22223 echo "configure:22224: checking for WCHAR_MIN and WCHAR_MAX" >&5
22224 cat > conftest.$ac_ext <<EOF
22225 #line 22226 "configure"
22226 #include "confdefs.h"
22227 #include <wchar.h>
22228 int main() {
22229 int i = WCHAR_MIN; int j = WCHAR_MAX;
22230 ; return 0; }
22232 if { (eval echo configure:22233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22233 rm -rf conftest*
22234 has_wchar_minmax=yes
22235 else
22236 echo "configure: failed program was:" >&5
22237 cat conftest.$ac_ext >&5
22238 rm -rf conftest*
22239 has_wchar_minmax=no
22241 rm -f conftest*
22242 echo "$ac_t""$has_wchar_minmax" 1>&6
22244 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22245 echo "configure:22246: checking for WEOF" >&5
22246 cat > conftest.$ac_ext <<EOF
22247 #line 22248 "configure"
22248 #include "confdefs.h"
22250 #include <wchar.h>
22251 #include <stddef.h>
22252 int main() {
22253 wint_t i = WEOF;
22254 ; return 0; }
22256 if { (eval echo configure:22257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22257 rm -rf conftest*
22258 has_weof=yes
22259 else
22260 echo "configure: failed program was:" >&5
22261 cat conftest.$ac_ext >&5
22262 rm -rf conftest*
22263 has_weof=no
22265 rm -f conftest*
22266 echo "$ac_t""$has_weof" 1>&6
22268 ac_wfuncs=yes
22269 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22272 echo "configure:22273: checking for $ac_func" >&5
22273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22274 echo $ac_n "(cached) $ac_c" 1>&6
22275 else
22276 cat > conftest.$ac_ext <<EOF
22277 #line 22278 "configure"
22278 #include "confdefs.h"
22279 /* System header to define __stub macros and hopefully few prototypes,
22280 which can conflict with char $ac_func(); below. */
22281 #include <assert.h>
22282 /* Override any gcc2 internal prototype to avoid an error. */
22283 /* We use char because int might match the return type of a gcc2
22284 builtin and then its argument prototype would still apply. */
22285 char $ac_func();
22287 int main() {
22289 /* The GNU C library defines this for functions which it implements
22290 to always fail with ENOSYS. Some functions are actually named
22291 something starting with __ and the normal name is an alias. */
22292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22293 choke me
22294 #else
22295 $ac_func();
22296 #endif
22298 ; return 0; }
22300 if { (eval echo configure:22301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22301 rm -rf conftest*
22302 eval "ac_cv_func_$ac_func=yes"
22303 else
22304 echo "configure: failed program was:" >&5
22305 cat conftest.$ac_ext >&5
22306 rm -rf conftest*
22307 eval "ac_cv_func_$ac_func=no"
22309 rm -f conftest*
22312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22313 echo "$ac_t""yes" 1>&6
22314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22315 cat >> confdefs.h <<EOF
22316 #define $ac_tr_func 1
22319 else
22320 echo "$ac_t""no" 1>&6
22322 ac_wfuncs=no
22324 done
22327 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22328 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22329 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22330 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22331 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22332 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22335 echo "configure:22336: checking for $ac_func" >&5
22336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22337 echo $ac_n "(cached) $ac_c" 1>&6
22338 else
22339 cat > conftest.$ac_ext <<EOF
22340 #line 22341 "configure"
22341 #include "confdefs.h"
22342 /* System header to define __stub macros and hopefully few prototypes,
22343 which can conflict with char $ac_func(); below. */
22344 #include <assert.h>
22345 /* Override any gcc2 internal prototype to avoid an error. */
22346 /* We use char because int might match the return type of a gcc2
22347 builtin and then its argument prototype would still apply. */
22348 char $ac_func();
22350 int main() {
22352 /* The GNU C library defines this for functions which it implements
22353 to always fail with ENOSYS. Some functions are actually named
22354 something starting with __ and the normal name is an alias. */
22355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22356 choke me
22357 #else
22358 $ac_func();
22359 #endif
22361 ; return 0; }
22363 if { (eval echo configure:22364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22364 rm -rf conftest*
22365 eval "ac_cv_func_$ac_func=yes"
22366 else
22367 echo "configure: failed program was:" >&5
22368 cat conftest.$ac_ext >&5
22369 rm -rf conftest*
22370 eval "ac_cv_func_$ac_func=no"
22372 rm -f conftest*
22375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22376 echo "$ac_t""yes" 1>&6
22377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22378 cat >> confdefs.h <<EOF
22379 #define $ac_tr_func 1
22382 else
22383 echo "$ac_t""no" 1>&6
22385 ac_wfuncs=no
22387 done
22390 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22391 echo "configure:22392: checking for ISO C99 wchar_t support" >&5
22392 if test x"$has_weof" = xyes &&
22393 test x"$has_wchar_minmax" = xyes &&
22394 test x"$ac_wfuncs" = xyes; then
22395 ac_isoC99_wchar_t=yes
22396 else
22397 ac_isoC99_wchar_t=no
22399 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22401 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22402 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22403 echo "configure:22404: checking for iconv.h" >&5
22404 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22405 echo $ac_n "(cached) $ac_c" 1>&6
22406 else
22407 cat > conftest.$ac_ext <<EOF
22408 #line 22409 "configure"
22409 #include "confdefs.h"
22410 #include <iconv.h>
22412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22413 { (eval echo configure:22414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22415 if test -z "$ac_err"; then
22416 rm -rf conftest*
22417 eval "ac_cv_header_$ac_safe=yes"
22418 else
22419 echo "$ac_err" >&5
22420 echo "configure: failed program was:" >&5
22421 cat conftest.$ac_ext >&5
22422 rm -rf conftest*
22423 eval "ac_cv_header_$ac_safe=no"
22425 rm -f conftest*
22427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22428 echo "$ac_t""yes" 1>&6
22429 ac_has_iconv_h=yes
22430 else
22431 echo "$ac_t""no" 1>&6
22432 ac_has_iconv_h=no
22435 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22436 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22437 echo "configure:22438: checking for langinfo.h" >&5
22438 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22439 echo $ac_n "(cached) $ac_c" 1>&6
22440 else
22441 cat > conftest.$ac_ext <<EOF
22442 #line 22443 "configure"
22443 #include "confdefs.h"
22444 #include <langinfo.h>
22446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22447 { (eval echo configure:22448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22448 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22449 if test -z "$ac_err"; then
22450 rm -rf conftest*
22451 eval "ac_cv_header_$ac_safe=yes"
22452 else
22453 echo "$ac_err" >&5
22454 echo "configure: failed program was:" >&5
22455 cat conftest.$ac_ext >&5
22456 rm -rf conftest*
22457 eval "ac_cv_header_$ac_safe=no"
22459 rm -f conftest*
22461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22462 echo "$ac_t""yes" 1>&6
22463 ac_has_langinfo_h=yes
22464 else
22465 echo "$ac_t""no" 1>&6
22466 ac_has_langinfo_h=no
22470 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22471 echo "configure:22472: checking for iconv in -liconv" >&5
22472 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22474 echo $ac_n "(cached) $ac_c" 1>&6
22475 else
22476 ac_save_LIBS="$LIBS"
22477 LIBS="-liconv $LIBS"
22478 cat > conftest.$ac_ext <<EOF
22479 #line 22480 "configure"
22480 #include "confdefs.h"
22481 /* Override any gcc2 internal prototype to avoid an error. */
22482 /* We use char because int might match the return type of a gcc2
22483 builtin and then its argument prototype would still apply. */
22484 char iconv();
22486 int main() {
22487 iconv()
22488 ; return 0; }
22490 if { (eval echo configure:22491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22491 rm -rf conftest*
22492 eval "ac_cv_lib_$ac_lib_var=yes"
22493 else
22494 echo "configure: failed program was:" >&5
22495 cat conftest.$ac_ext >&5
22496 rm -rf conftest*
22497 eval "ac_cv_lib_$ac_lib_var=no"
22499 rm -f conftest*
22500 LIBS="$ac_save_LIBS"
22503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22504 echo "$ac_t""yes" 1>&6
22505 libiconv="-liconv"
22506 else
22507 echo "$ac_t""no" 1>&6
22510 ac_save_LIBS="$LIBS"
22511 LIBS="$LIBS $libiconv"
22513 for ac_func in iconv_open iconv_close iconv nl_langinfo
22515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22516 echo "configure:22517: checking for $ac_func" >&5
22517 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22518 echo $ac_n "(cached) $ac_c" 1>&6
22519 else
22520 cat > conftest.$ac_ext <<EOF
22521 #line 22522 "configure"
22522 #include "confdefs.h"
22523 /* System header to define __stub macros and hopefully few prototypes,
22524 which can conflict with char $ac_func(); below. */
22525 #include <assert.h>
22526 /* Override any gcc2 internal prototype to avoid an error. */
22527 /* We use char because int might match the return type of a gcc2
22528 builtin and then its argument prototype would still apply. */
22529 char $ac_func();
22531 int main() {
22533 /* The GNU C library defines this for functions which it implements
22534 to always fail with ENOSYS. Some functions are actually named
22535 something starting with __ and the normal name is an alias. */
22536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22537 choke me
22538 #else
22539 $ac_func();
22540 #endif
22542 ; return 0; }
22544 if { (eval echo configure:22545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22545 rm -rf conftest*
22546 eval "ac_cv_func_$ac_func=yes"
22547 else
22548 echo "configure: failed program was:" >&5
22549 cat conftest.$ac_ext >&5
22550 rm -rf conftest*
22551 eval "ac_cv_func_$ac_func=no"
22553 rm -f conftest*
22556 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22557 echo "$ac_t""yes" 1>&6
22558 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22559 cat >> confdefs.h <<EOF
22560 #define $ac_tr_func 1
22563 ac_XPG2funcs=yes
22564 else
22565 echo "$ac_t""no" 1>&6
22566 ac_XPG2funcs=no
22568 done
22571 LIBS="$ac_save_LIBS"
22573 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22574 echo "configure:22575: checking for XPG2 wchar_t support" >&5
22575 if test x"$ac_has_iconv_h" = xyes &&
22576 test x"$ac_has_langinfo_h" = xyes &&
22577 test x"$ac_XPG2funcs" = xyes; then
22578 ac_XPG2_wchar_t=yes
22579 else
22580 ac_XPG2_wchar_t=no
22582 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22584 if test x"$ac_isoC99_wchar_t" = xyes &&
22585 test x"$ac_XPG2_wchar_t" = xyes; then
22586 cat >> confdefs.h <<\EOF
22587 #define _GLIBCPP_USE_WCHAR_T 1
22590 enable_wchar_t=yes
22593 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22594 echo "configure:22595: checking for enabled wchar_t specializations" >&5
22595 echo "$ac_t""$enable_wchar_t" 1>&6
22598 if test "$enable_wchar_t" = yes; then
22599 GLIBCPP_TEST_WCHAR_T_TRUE=
22600 GLIBCPP_TEST_WCHAR_T_FALSE='#'
22601 else
22602 GLIBCPP_TEST_WCHAR_T_TRUE='#'
22603 GLIBCPP_TEST_WCHAR_T_FALSE=
22607 ac_test_CXXFLAGS="${CXXFLAGS+set}"
22608 ac_save_CXXFLAGS="$CXXFLAGS"
22609 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22612 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22613 echo "configure:22614: checking for strtold declaration" >&5
22614 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22615 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22616 echo $ac_n "(cached) $ac_c" 1>&6
22617 else
22620 ac_ext=C
22621 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22622 ac_cpp='$CXXCPP $CPPFLAGS'
22623 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22624 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22625 cross_compiling=$ac_cv_prog_cxx_cross
22627 cat > conftest.$ac_ext <<EOF
22628 #line 22629 "configure"
22629 #include "confdefs.h"
22630 #include <stdlib.h>
22631 int main() {
22632 strtold(0, 0);
22633 ; return 0; }
22635 if { (eval echo configure:22636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22636 rm -rf conftest*
22637 glibcpp_cv_func_strtold_use=yes
22638 else
22639 echo "configure: failed program was:" >&5
22640 cat conftest.$ac_ext >&5
22641 rm -rf conftest*
22642 glibcpp_cv_func_strtold_use=no
22644 rm -f conftest*
22645 ac_ext=c
22646 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22647 ac_cpp='$CPP $CPPFLAGS'
22648 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22649 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22650 cross_compiling=$ac_cv_prog_cc_cross
22656 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22657 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22658 for ac_func in strtold
22660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22661 echo "configure:22662: checking for $ac_func" >&5
22662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22663 echo $ac_n "(cached) $ac_c" 1>&6
22664 else
22665 cat > conftest.$ac_ext <<EOF
22666 #line 22667 "configure"
22667 #include "confdefs.h"
22668 /* System header to define __stub macros and hopefully few prototypes,
22669 which can conflict with char $ac_func(); below. */
22670 #include <assert.h>
22671 /* Override any gcc2 internal prototype to avoid an error. */
22672 /* We use char because int might match the return type of a gcc2
22673 builtin and then its argument prototype would still apply. */
22674 char $ac_func();
22676 int main() {
22678 /* The GNU C library defines this for functions which it implements
22679 to always fail with ENOSYS. Some functions are actually named
22680 something starting with __ and the normal name is an alias. */
22681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22682 choke me
22683 #else
22684 $ac_func();
22685 #endif
22687 ; return 0; }
22689 if { (eval echo configure:22690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22690 rm -rf conftest*
22691 eval "ac_cv_func_$ac_func=yes"
22692 else
22693 echo "configure: failed program was:" >&5
22694 cat conftest.$ac_ext >&5
22695 rm -rf conftest*
22696 eval "ac_cv_func_$ac_func=no"
22698 rm -f conftest*
22701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22702 echo "$ac_t""yes" 1>&6
22703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22704 cat >> confdefs.h <<EOF
22705 #define $ac_tr_func 1
22708 else
22709 echo "$ac_t""no" 1>&6
22711 done
22716 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22717 echo "configure:22718: checking for strtof declaration" >&5
22718 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22719 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22720 echo $ac_n "(cached) $ac_c" 1>&6
22721 else
22724 ac_ext=C
22725 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22726 ac_cpp='$CXXCPP $CPPFLAGS'
22727 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22728 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22729 cross_compiling=$ac_cv_prog_cxx_cross
22731 cat > conftest.$ac_ext <<EOF
22732 #line 22733 "configure"
22733 #include "confdefs.h"
22734 #include <stdlib.h>
22735 int main() {
22736 strtof(0, 0);
22737 ; return 0; }
22739 if { (eval echo configure:22740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22740 rm -rf conftest*
22741 glibcpp_cv_func_strtof_use=yes
22742 else
22743 echo "configure: failed program was:" >&5
22744 cat conftest.$ac_ext >&5
22745 rm -rf conftest*
22746 glibcpp_cv_func_strtof_use=no
22748 rm -f conftest*
22749 ac_ext=c
22750 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22751 ac_cpp='$CPP $CPPFLAGS'
22752 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22753 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22754 cross_compiling=$ac_cv_prog_cc_cross
22760 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22761 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22762 for ac_func in strtof
22764 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22765 echo "configure:22766: checking for $ac_func" >&5
22766 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22767 echo $ac_n "(cached) $ac_c" 1>&6
22768 else
22769 cat > conftest.$ac_ext <<EOF
22770 #line 22771 "configure"
22771 #include "confdefs.h"
22772 /* System header to define __stub macros and hopefully few prototypes,
22773 which can conflict with char $ac_func(); below. */
22774 #include <assert.h>
22775 /* Override any gcc2 internal prototype to avoid an error. */
22776 /* We use char because int might match the return type of a gcc2
22777 builtin and then its argument prototype would still apply. */
22778 char $ac_func();
22780 int main() {
22782 /* The GNU C library defines this for functions which it implements
22783 to always fail with ENOSYS. Some functions are actually named
22784 something starting with __ and the normal name is an alias. */
22785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22786 choke me
22787 #else
22788 $ac_func();
22789 #endif
22791 ; return 0; }
22793 if { (eval echo configure:22794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22794 rm -rf conftest*
22795 eval "ac_cv_func_$ac_func=yes"
22796 else
22797 echo "configure: failed program was:" >&5
22798 cat conftest.$ac_ext >&5
22799 rm -rf conftest*
22800 eval "ac_cv_func_$ac_func=no"
22802 rm -f conftest*
22805 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22806 echo "$ac_t""yes" 1>&6
22807 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22808 cat >> confdefs.h <<EOF
22809 #define $ac_tr_func 1
22812 else
22813 echo "$ac_t""no" 1>&6
22815 done
22819 for ac_func in drand48
22821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22822 echo "configure:22823: checking for $ac_func" >&5
22823 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22824 echo $ac_n "(cached) $ac_c" 1>&6
22825 else
22826 cat > conftest.$ac_ext <<EOF
22827 #line 22828 "configure"
22828 #include "confdefs.h"
22829 /* System header to define __stub macros and hopefully few prototypes,
22830 which can conflict with char $ac_func(); below. */
22831 #include <assert.h>
22832 /* Override any gcc2 internal prototype to avoid an error. */
22833 /* We use char because int might match the return type of a gcc2
22834 builtin and then its argument prototype would still apply. */
22835 char $ac_func();
22837 int main() {
22839 /* The GNU C library defines this for functions which it implements
22840 to always fail with ENOSYS. Some functions are actually named
22841 something starting with __ and the normal name is an alias. */
22842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22843 choke me
22844 #else
22845 $ac_func();
22846 #endif
22848 ; return 0; }
22850 if { (eval echo configure:22851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22851 rm -rf conftest*
22852 eval "ac_cv_func_$ac_func=yes"
22853 else
22854 echo "configure: failed program was:" >&5
22855 cat conftest.$ac_ext >&5
22856 rm -rf conftest*
22857 eval "ac_cv_func_$ac_func=no"
22859 rm -f conftest*
22862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22863 echo "$ac_t""yes" 1>&6
22864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22865 cat >> confdefs.h <<EOF
22866 #define $ac_tr_func 1
22869 else
22870 echo "$ac_t""no" 1>&6
22872 done
22875 CXXFLAGS="$ac_save_CXXFLAGS"
22878 # For showmanyc_helper().
22879 for ac_hdr in sys/ioctl.h sys/filio.h
22881 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22882 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22883 echo "configure:22884: checking for $ac_hdr" >&5
22884 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22885 echo $ac_n "(cached) $ac_c" 1>&6
22886 else
22887 cat > conftest.$ac_ext <<EOF
22888 #line 22889 "configure"
22889 #include "confdefs.h"
22890 #include <$ac_hdr>
22892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22893 { (eval echo configure:22894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22895 if test -z "$ac_err"; then
22896 rm -rf conftest*
22897 eval "ac_cv_header_$ac_safe=yes"
22898 else
22899 echo "$ac_err" >&5
22900 echo "configure: failed program was:" >&5
22901 cat conftest.$ac_ext >&5
22902 rm -rf conftest*
22903 eval "ac_cv_header_$ac_safe=no"
22905 rm -f conftest*
22907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22908 echo "$ac_t""yes" 1>&6
22909 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22910 cat >> confdefs.h <<EOF
22911 #define $ac_tr_hdr 1
22914 else
22915 echo "$ac_t""no" 1>&6
22917 done
22920 if eval "test \"`echo '$''{'glibcpp_cv_POLL'+set}'`\" = set"; then
22921 echo $ac_n "(cached) $ac_c" 1>&6
22922 else
22924 cat > conftest.$ac_ext <<EOF
22925 #line 22926 "configure"
22926 #include "confdefs.h"
22927 #include <poll.h>
22928 int main() {
22929 struct pollfd pfd[1]; pfd[0].events = POLLIN; poll(pfd, 1, 0);
22930 ; return 0; }
22932 if { (eval echo configure:22933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22933 rm -rf conftest*
22934 glibcpp_cv_POLL=yes
22935 else
22936 echo "configure: failed program was:" >&5
22937 cat conftest.$ac_ext >&5
22938 rm -rf conftest*
22939 glibcpp_cv_POLL=no
22941 rm -f conftest*
22945 if test x$glibcpp_cv_POLL = xyes; then
22946 cat >> confdefs.h <<\EOF
22947 #define HAVE_POLL 1
22953 if eval "test \"`echo '$''{'glibcpp_cv_S_ISREG'+set}'`\" = set"; then
22954 echo $ac_n "(cached) $ac_c" 1>&6
22955 else
22957 cat > conftest.$ac_ext <<EOF
22958 #line 22959 "configure"
22959 #include "confdefs.h"
22960 #include <sys/stat.h>
22961 int main() {
22962 struct stat buffer; fstat(0, &buffer); S_ISREG(buffer.st_mode);
22963 ; return 0; }
22965 if { (eval echo configure:22966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22966 rm -rf conftest*
22967 glibcpp_cv_S_ISREG=yes
22968 else
22969 echo "configure: failed program was:" >&5
22970 cat conftest.$ac_ext >&5
22971 rm -rf conftest*
22972 glibcpp_cv_S_ISREG=no
22974 rm -f conftest*
22978 if eval "test \"`echo '$''{'glibcpp_cv_S_IFREG'+set}'`\" = set"; then
22979 echo $ac_n "(cached) $ac_c" 1>&6
22980 else
22982 cat > conftest.$ac_ext <<EOF
22983 #line 22984 "configure"
22984 #include "confdefs.h"
22985 #include <sys/stat.h>
22986 int main() {
22987 struct stat buffer; fstat(0, &buffer); S_IFREG & buffer.st_mode;
22988 ; return 0; }
22990 if { (eval echo configure:22991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22991 rm -rf conftest*
22992 glibcpp_cv_S_IFREG=yes
22993 else
22994 echo "configure: failed program was:" >&5
22995 cat conftest.$ac_ext >&5
22996 rm -rf conftest*
22997 glibcpp_cv_S_IFREG=no
22999 rm -f conftest*
23003 if test x$glibcpp_cv_S_ISREG = xyes; then
23004 cat >> confdefs.h <<\EOF
23005 #define HAVE_S_ISREG 1
23008 elif test x$glibcpp_cv_S_IFREG = xyes; then
23009 cat >> confdefs.h <<\EOF
23010 #define HAVE_S_IFREG 1
23017 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
23018 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
23019 echo "configure:23020: checking for locale.h" >&5
23020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23021 echo $ac_n "(cached) $ac_c" 1>&6
23022 else
23023 cat > conftest.$ac_ext <<EOF
23024 #line 23025 "configure"
23025 #include "confdefs.h"
23026 #include <locale.h>
23028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23029 { (eval echo configure:23030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23031 if test -z "$ac_err"; then
23032 rm -rf conftest*
23033 eval "ac_cv_header_$ac_safe=yes"
23034 else
23035 echo "$ac_err" >&5
23036 echo "configure: failed program was:" >&5
23037 cat conftest.$ac_ext >&5
23038 rm -rf conftest*
23039 eval "ac_cv_header_$ac_safe=no"
23041 rm -f conftest*
23043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23044 echo "$ac_t""yes" 1>&6
23046 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
23047 echo "configure:23048: checking for LC_MESSAGES" >&5
23048 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
23049 echo $ac_n "(cached) $ac_c" 1>&6
23050 else
23051 cat > conftest.$ac_ext <<EOF
23052 #line 23053 "configure"
23053 #include "confdefs.h"
23054 #include <locale.h>
23055 int main() {
23056 return LC_MESSAGES
23057 ; return 0; }
23059 if { (eval echo configure:23060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23060 rm -rf conftest*
23061 ac_cv_val_LC_MESSAGES=yes
23062 else
23063 echo "configure: failed program was:" >&5
23064 cat conftest.$ac_ext >&5
23065 rm -rf conftest*
23066 ac_cv_val_LC_MESSAGES=no
23068 rm -f conftest*
23071 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
23072 if test $ac_cv_val_LC_MESSAGES = yes; then
23073 cat >> confdefs.h <<\EOF
23074 #define HAVE_LC_MESSAGES 1
23079 else
23080 echo "$ac_t""no" 1>&6
23085 cat > conftest.$ac_ext <<EOF
23086 #line 23087 "configure"
23087 #include "confdefs.h"
23089 #include <setjmp.h>
23091 int main() {
23092 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
23093 ; return 0; }
23095 if { (eval echo configure:23096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23096 rm -rf conftest*
23097 cat >> confdefs.h <<\EOF
23098 #define HAVE_SIGSETJMP 1
23102 else
23103 echo "configure: failed program was:" >&5
23104 cat conftest.$ac_ext >&5
23106 rm -f conftest*
23108 for ac_hdr in unistd.h
23110 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23111 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23112 echo "configure:23113: checking for $ac_hdr" >&5
23113 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23114 echo $ac_n "(cached) $ac_c" 1>&6
23115 else
23116 cat > conftest.$ac_ext <<EOF
23117 #line 23118 "configure"
23118 #include "confdefs.h"
23119 #include <$ac_hdr>
23121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23122 { (eval echo configure:23123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23124 if test -z "$ac_err"; then
23125 rm -rf conftest*
23126 eval "ac_cv_header_$ac_safe=yes"
23127 else
23128 echo "$ac_err" >&5
23129 echo "configure: failed program was:" >&5
23130 cat conftest.$ac_ext >&5
23131 rm -rf conftest*
23132 eval "ac_cv_header_$ac_safe=no"
23134 rm -f conftest*
23136 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23137 echo "$ac_t""yes" 1>&6
23138 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23139 cat >> confdefs.h <<EOF
23140 #define $ac_tr_hdr 1
23143 else
23144 echo "$ac_t""no" 1>&6
23146 done
23148 for ac_func in getpagesize
23150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23151 echo "configure:23152: checking for $ac_func" >&5
23152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23153 echo $ac_n "(cached) $ac_c" 1>&6
23154 else
23155 cat > conftest.$ac_ext <<EOF
23156 #line 23157 "configure"
23157 #include "confdefs.h"
23158 /* System header to define __stub macros and hopefully few prototypes,
23159 which can conflict with char $ac_func(); below. */
23160 #include <assert.h>
23161 /* Override any gcc2 internal prototype to avoid an error. */
23162 /* We use char because int might match the return type of a gcc2
23163 builtin and then its argument prototype would still apply. */
23164 char $ac_func();
23166 int main() {
23168 /* The GNU C library defines this for functions which it implements
23169 to always fail with ENOSYS. Some functions are actually named
23170 something starting with __ and the normal name is an alias. */
23171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23172 choke me
23173 #else
23174 $ac_func();
23175 #endif
23177 ; return 0; }
23179 if { (eval echo configure:23180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23180 rm -rf conftest*
23181 eval "ac_cv_func_$ac_func=yes"
23182 else
23183 echo "configure: failed program was:" >&5
23184 cat conftest.$ac_ext >&5
23185 rm -rf conftest*
23186 eval "ac_cv_func_$ac_func=no"
23188 rm -f conftest*
23191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23192 echo "$ac_t""yes" 1>&6
23193 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23194 cat >> confdefs.h <<EOF
23195 #define $ac_tr_func 1
23198 else
23199 echo "$ac_t""no" 1>&6
23201 done
23203 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
23204 echo "configure:23205: checking for working mmap" >&5
23205 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23206 echo $ac_n "(cached) $ac_c" 1>&6
23207 else
23208 if test "$cross_compiling" = yes; then
23209 ac_cv_func_mmap_fixed_mapped=no
23210 else
23211 cat > conftest.$ac_ext <<EOF
23212 #line 23213 "configure"
23213 #include "confdefs.h"
23215 /* Thanks to Mike Haertel and Jim Avera for this test.
23216 Here is a matrix of mmap possibilities:
23217 mmap private not fixed
23218 mmap private fixed at somewhere currently unmapped
23219 mmap private fixed at somewhere already mapped
23220 mmap shared not fixed
23221 mmap shared fixed at somewhere currently unmapped
23222 mmap shared fixed at somewhere already mapped
23223 For private mappings, we should verify that changes cannot be read()
23224 back from the file, nor mmap's back from the file at a different
23225 address. (There have been systems where private was not correctly
23226 implemented like the infamous i386 svr4.0, and systems where the
23227 VM page cache was not coherent with the filesystem buffer cache
23228 like early versions of FreeBSD and possibly contemporary NetBSD.)
23229 For shared mappings, we should conversely verify that changes get
23230 propogated back to all the places they're supposed to be.
23232 Grep wants private fixed already mapped.
23233 The main things grep needs to know about mmap are:
23234 * does it exist and is it safe to write into the mmap'd area
23235 * how to use it (BSD variants) */
23236 #include <sys/types.h>
23237 #include <fcntl.h>
23238 #include <sys/mman.h>
23240 /* This mess was copied from the GNU getpagesize.h. */
23241 #ifndef HAVE_GETPAGESIZE
23242 # ifdef HAVE_UNISTD_H
23243 # include <unistd.h>
23244 # endif
23246 /* Assume that all systems that can run configure have sys/param.h. */
23247 # ifndef HAVE_SYS_PARAM_H
23248 # define HAVE_SYS_PARAM_H 1
23249 # endif
23251 # ifdef _SC_PAGESIZE
23252 # define getpagesize() sysconf(_SC_PAGESIZE)
23253 # else /* no _SC_PAGESIZE */
23254 # ifdef HAVE_SYS_PARAM_H
23255 # include <sys/param.h>
23256 # ifdef EXEC_PAGESIZE
23257 # define getpagesize() EXEC_PAGESIZE
23258 # else /* no EXEC_PAGESIZE */
23259 # ifdef NBPG
23260 # define getpagesize() NBPG * CLSIZE
23261 # ifndef CLSIZE
23262 # define CLSIZE 1
23263 # endif /* no CLSIZE */
23264 # else /* no NBPG */
23265 # ifdef NBPC
23266 # define getpagesize() NBPC
23267 # else /* no NBPC */
23268 # ifdef PAGESIZE
23269 # define getpagesize() PAGESIZE
23270 # endif /* PAGESIZE */
23271 # endif /* no NBPC */
23272 # endif /* no NBPG */
23273 # endif /* no EXEC_PAGESIZE */
23274 # else /* no HAVE_SYS_PARAM_H */
23275 # define getpagesize() 8192 /* punt totally */
23276 # endif /* no HAVE_SYS_PARAM_H */
23277 # endif /* no _SC_PAGESIZE */
23279 #endif /* no HAVE_GETPAGESIZE */
23281 #ifdef __cplusplus
23282 extern "C" { void *malloc(unsigned); }
23283 #else
23284 char *malloc();
23285 #endif
23288 main()
23290 char *data, *data2, *data3;
23291 int i, pagesize;
23292 int fd;
23294 pagesize = getpagesize();
23297 * First, make a file with some known garbage in it.
23299 data = malloc(pagesize);
23300 if (!data)
23301 exit(1);
23302 for (i = 0; i < pagesize; ++i)
23303 *(data + i) = rand();
23304 umask(0);
23305 fd = creat("conftestmmap", 0600);
23306 if (fd < 0)
23307 exit(1);
23308 if (write(fd, data, pagesize) != pagesize)
23309 exit(1);
23310 close(fd);
23313 * Next, try to mmap the file at a fixed address which
23314 * already has something else allocated at it. If we can,
23315 * also make sure that we see the same garbage.
23317 fd = open("conftestmmap", O_RDWR);
23318 if (fd < 0)
23319 exit(1);
23320 data2 = malloc(2 * pagesize);
23321 if (!data2)
23322 exit(1);
23323 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23324 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23325 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23326 exit(1);
23327 for (i = 0; i < pagesize; ++i)
23328 if (*(data + i) != *(data2 + i))
23329 exit(1);
23332 * Finally, make sure that changes to the mapped area
23333 * do not percolate back to the file as seen by read().
23334 * (This is a bug on some variants of i386 svr4.0.)
23336 for (i = 0; i < pagesize; ++i)
23337 *(data2 + i) = *(data2 + i) + 1;
23338 data3 = malloc(pagesize);
23339 if (!data3)
23340 exit(1);
23341 if (read(fd, data3, pagesize) != pagesize)
23342 exit(1);
23343 for (i = 0; i < pagesize; ++i)
23344 if (*(data + i) != *(data3 + i))
23345 exit(1);
23346 close(fd);
23347 unlink("conftestmmap");
23348 exit(0);
23352 if { (eval echo configure:23353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23353 then
23354 ac_cv_func_mmap_fixed_mapped=yes
23355 else
23356 echo "configure: failed program was:" >&5
23357 cat conftest.$ac_ext >&5
23358 rm -fr conftest*
23359 ac_cv_func_mmap_fixed_mapped=no
23361 rm -fr conftest*
23366 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23367 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23368 cat >> confdefs.h <<\EOF
23369 #define HAVE_MMAP 1
23375 # Establish limits on memory usage during 'make check'
23378 setrlimit_have_headers=yes
23379 for ac_hdr in unistd.h sys/time.h sys/resource.h
23381 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23382 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23383 echo "configure:23384: checking for $ac_hdr" >&5
23384 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23385 echo $ac_n "(cached) $ac_c" 1>&6
23386 else
23387 cat > conftest.$ac_ext <<EOF
23388 #line 23389 "configure"
23389 #include "confdefs.h"
23390 #include <$ac_hdr>
23392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23393 { (eval echo configure:23394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23395 if test -z "$ac_err"; then
23396 rm -rf conftest*
23397 eval "ac_cv_header_$ac_safe=yes"
23398 else
23399 echo "$ac_err" >&5
23400 echo "configure: failed program was:" >&5
23401 cat conftest.$ac_ext >&5
23402 rm -rf conftest*
23403 eval "ac_cv_header_$ac_safe=no"
23405 rm -f conftest*
23407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23408 echo "$ac_t""yes" 1>&6
23409 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23410 cat >> confdefs.h <<EOF
23411 #define $ac_tr_hdr 1
23414 else
23415 echo "$ac_t""no" 1>&6
23416 setrlimit_have_headers=no
23418 done
23420 # If don't have the headers, then we can't run the tests now, and we
23421 # won't be seeing any of these during testsuite compilation.
23422 if test $setrlimit_have_headers = yes; then
23423 # Can't do these in a loop, else the resulting syntax is wrong.
23425 cat > conftest.$ac_ext <<EOF
23426 #line 23427 "configure"
23427 #include "confdefs.h"
23428 #include <unistd.h>
23429 #include <sys/time.h>
23430 #include <sys/resource.h>
23432 int main() {
23433 int f = RLIMIT_DATA ;
23434 ; return 0; }
23436 if { (eval echo configure:23437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23437 rm -rf conftest*
23438 glibcpp_mresult=1
23439 else
23440 echo "configure: failed program was:" >&5
23441 cat conftest.$ac_ext >&5
23442 rm -rf conftest*
23443 glibcpp_mresult=0
23445 rm -f conftest*
23446 cat >> confdefs.h <<EOF
23447 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23452 cat > conftest.$ac_ext <<EOF
23453 #line 23454 "configure"
23454 #include "confdefs.h"
23455 #include <unistd.h>
23456 #include <sys/time.h>
23457 #include <sys/resource.h>
23459 int main() {
23460 int f = RLIMIT_RSS ;
23461 ; return 0; }
23463 if { (eval echo configure:23464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23464 rm -rf conftest*
23465 glibcpp_mresult=1
23466 else
23467 echo "configure: failed program was:" >&5
23468 cat conftest.$ac_ext >&5
23469 rm -rf conftest*
23470 glibcpp_mresult=0
23472 rm -f conftest*
23473 cat >> confdefs.h <<EOF
23474 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23479 cat > conftest.$ac_ext <<EOF
23480 #line 23481 "configure"
23481 #include "confdefs.h"
23482 #include <unistd.h>
23483 #include <sys/time.h>
23484 #include <sys/resource.h>
23486 int main() {
23487 int f = RLIMIT_VMEM ;
23488 ; return 0; }
23490 if { (eval echo configure:23491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23491 rm -rf conftest*
23492 glibcpp_mresult=1
23493 else
23494 echo "configure: failed program was:" >&5
23495 cat conftest.$ac_ext >&5
23496 rm -rf conftest*
23497 glibcpp_mresult=0
23499 rm -f conftest*
23500 cat >> confdefs.h <<EOF
23501 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23506 cat > conftest.$ac_ext <<EOF
23507 #line 23508 "configure"
23508 #include "confdefs.h"
23509 #include <unistd.h>
23510 #include <sys/time.h>
23511 #include <sys/resource.h>
23513 int main() {
23514 int f = RLIMIT_AS ;
23515 ; return 0; }
23517 if { (eval echo configure:23518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23518 rm -rf conftest*
23519 glibcpp_mresult=1
23520 else
23521 echo "configure: failed program was:" >&5
23522 cat conftest.$ac_ext >&5
23523 rm -rf conftest*
23524 glibcpp_mresult=0
23526 rm -f conftest*
23527 cat >> confdefs.h <<EOF
23528 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23533 # Check for rlimit, setrlimit.
23534 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23535 echo $ac_n "(cached) $ac_c" 1>&6
23536 else
23538 cat > conftest.$ac_ext <<EOF
23539 #line 23540 "configure"
23540 #include "confdefs.h"
23541 #include <unistd.h>
23542 #include <sys/time.h>
23543 #include <sys/resource.h>
23545 int main() {
23546 struct rlimit r; setrlimit(0, &r);
23547 ; return 0; }
23549 if { (eval echo configure:23550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23550 rm -rf conftest*
23551 ac_setrlimit=yes
23552 else
23553 echo "configure: failed program was:" >&5
23554 cat conftest.$ac_ext >&5
23555 rm -rf conftest*
23556 ac_setrlimit=no
23558 rm -f conftest*
23564 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23565 echo "configure:23566: checking for testsuite memory limit support" >&5
23566 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23567 ac_mem_limits=yes
23568 cat >> confdefs.h <<\EOF
23569 #define _GLIBCPP_MEM_LIMITS 1
23572 else
23573 ac_mem_limits=no
23575 echo "$ac_t""$ac_mem_limits" 1>&6
23578 # Look for setenv, so that extended locale tests can be performed.
23580 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23581 echo "configure:23582: checking for setenv declaration" >&5
23582 if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23583 if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23584 echo $ac_n "(cached) $ac_c" 1>&6
23585 else
23588 ac_ext=C
23589 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23590 ac_cpp='$CXXCPP $CPPFLAGS'
23591 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23592 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23593 cross_compiling=$ac_cv_prog_cxx_cross
23595 cat > conftest.$ac_ext <<EOF
23596 #line 23597 "configure"
23597 #include "confdefs.h"
23598 #include <stdlib.h>
23599 int main() {
23600 setenv(0, 0, 0);
23601 ; return 0; }
23603 if { (eval echo configure:23604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23604 rm -rf conftest*
23605 glibcpp_cv_func_setenv_use=yes
23606 else
23607 echo "configure: failed program was:" >&5
23608 cat conftest.$ac_ext >&5
23609 rm -rf conftest*
23610 glibcpp_cv_func_setenv_use=no
23612 rm -f conftest*
23613 ac_ext=c
23614 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23615 ac_cpp='$CPP $CPPFLAGS'
23616 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23617 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23618 cross_compiling=$ac_cv_prog_cc_cross
23624 echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23625 if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23626 for ac_func in setenv
23628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23629 echo "configure:23630: checking for $ac_func" >&5
23630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23631 echo $ac_n "(cached) $ac_c" 1>&6
23632 else
23633 cat > conftest.$ac_ext <<EOF
23634 #line 23635 "configure"
23635 #include "confdefs.h"
23636 /* System header to define __stub macros and hopefully few prototypes,
23637 which can conflict with char $ac_func(); below. */
23638 #include <assert.h>
23639 /* Override any gcc2 internal prototype to avoid an error. */
23640 /* We use char because int might match the return type of a gcc2
23641 builtin and then its argument prototype would still apply. */
23642 char $ac_func();
23644 int main() {
23646 /* The GNU C library defines this for functions which it implements
23647 to always fail with ENOSYS. Some functions are actually named
23648 something starting with __ and the normal name is an alias. */
23649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23650 choke me
23651 #else
23652 $ac_func();
23653 #endif
23655 ; return 0; }
23657 if { (eval echo configure:23658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23658 rm -rf conftest*
23659 eval "ac_cv_func_$ac_func=yes"
23660 else
23661 echo "configure: failed program was:" >&5
23662 cat conftest.$ac_ext >&5
23663 rm -rf conftest*
23664 eval "ac_cv_func_$ac_func=no"
23666 rm -f conftest*
23669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23670 echo "$ac_t""yes" 1>&6
23671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23672 cat >> confdefs.h <<EOF
23673 #define $ac_tr_func 1
23676 else
23677 echo "$ac_t""no" 1>&6
23679 done
23684 # Export file names for ABI checking.
23685 baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
23688 case "$target" in
23689 *-*-cygwin* ) enable_abi_check=no ;;
23690 * ) enable_abi_check=yes ;;
23691 esac
23693 # Don't do ABI checking unless native.
23696 if test x"$build" = x"$host" && test -z "$with_cross_host" \
23697 && test "$enable_abi_check" = yes ; then
23698 GLIBCPP_BUILD_ABI_CHECK_TRUE=
23699 GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
23700 else
23701 GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
23702 GLIBCPP_BUILD_ABI_CHECK_FALSE=
23707 # This depends on the possibly-skipped linker test above.
23708 # Check whether --enable-symvers or --disable-symvers was given.
23709 if test "${enable_symvers+set}" = set; then
23710 enableval="$enable_symvers"
23711 case "$enableval" in
23712 yes) enable_symvers=yes ;;
23713 no) enable_symvers=no ;;
23714 # other names here, just as sanity checks
23715 #gnu|sun|etcetera) enable_symvers=$enableval ;;
23716 gnu) enable_symvers=$enableval ;;
23717 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23718 esac
23719 else
23720 enable_symvers=yes
23723 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23724 # don't know enough about $LD to do tricks...
23725 if test x$enable_shared = xno ||
23726 test "x$LD" = x ||
23727 test x$glibcpp_gnu_ld_version = x; then
23728 enable_symvers=no
23731 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23732 if test $enable_symvers != no; then
23733 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23734 echo "configure:23735: checking for shared libgcc" >&5
23735 ac_save_CFLAGS="$CFLAGS"
23736 CFLAGS=' -lgcc_s'
23737 cat > conftest.$ac_ext <<EOF
23738 #line 23739 "configure"
23739 #include "confdefs.h"
23741 int main() {
23742 return 0
23743 ; return 0; }
23745 if { (eval echo configure:23746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23746 rm -rf conftest*
23747 glibcpp_shared_libgcc=yes
23748 else
23749 echo "configure: failed program was:" >&5
23750 cat conftest.$ac_ext >&5
23751 rm -rf conftest*
23752 glibcpp_shared_libgcc=no
23754 rm -f conftest*
23755 CFLAGS="$ac_save_CFLAGS"
23756 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23759 # For GNU ld, we need at least this version. It's 2.12 in the same format
23760 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
23761 glibcpp_min_gnu_ld_version=21200
23763 # Check to see if unspecified "yes" value can win, given results
23764 # above.
23765 if test $enable_symvers = yes ; then
23766 if test $with_gnu_ld = yes &&
23767 test $glibcpp_shared_libgcc = yes ;
23768 then
23769 if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23770 enable_symvers=gnu
23771 else
23772 ac_test_CFLAGS="${CFLAGS+set}"
23773 ac_save_CFLAGS="$CFLAGS"
23774 CFLAGS='-shared -Wl,--version-script,conftest.map'
23775 enable_symvers=no
23777 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23779 cat > conftest.$ac_ext <<EOF
23780 #line 23781 "configure"
23781 #include "confdefs.h"
23782 int foo;
23783 int main() {
23785 ; return 0; }
23787 if { (eval echo configure:23788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23788 rm -rf conftest*
23789 enable_symvers=gnu
23790 else
23791 echo "configure: failed program was:" >&5
23792 cat conftest.$ac_ext >&5
23794 rm -f conftest*
23795 if test "$ac_test_CFLAGS" = set; then
23796 CFLAGS="$ac_save_CFLAGS"
23797 else
23798 # this is the suspicious part
23799 CFLAGS=''
23801 rm -f conftest.map
23803 else
23804 # just fail for now
23805 enable_symvers=no
23809 case $enable_symvers in
23811 SYMVER_MAP=config/linker-map.dummy
23813 gnu)
23814 SYMVER_MAP=config/linker-map.gnu
23815 cat >> confdefs.h <<\EOF
23816 #define _GLIBCPP_SYMVER 1
23820 esac
23825 if test $enable_symvers != no; then
23826 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23827 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23828 else
23829 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23830 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23832 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23833 echo "configure:23834: checking versioning on shared library symbols" >&5
23834 echo "$ac_t""$enable_symvers" 1>&6
23837 # Propagate the target-specific source directories through the build chain.
23838 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH
23839 # uses it, and it only gets used in this file.)
23840 OS_INC_SRCDIR=config/${os_include_dir}
23841 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23845 # Set up cross-compile flags
23848 if test "$CANADIAN" = yes; then
23849 CANADIAN_TRUE=
23850 CANADIAN_FALSE='#'
23851 else
23852 CANADIAN_TRUE='#'
23853 CANADIAN_FALSE=
23856 cat > confcache <<\EOF
23857 # This file is a shell script that caches the results of configure
23858 # tests run on this system so they can be shared between configure
23859 # scripts and configure runs. It is not useful on other systems.
23860 # If it contains results you don't want to keep, you may remove or edit it.
23862 # By default, configure uses ./config.cache as the cache file,
23863 # creating it if it does not exist already. You can give configure
23864 # the --cache-file=FILE option to use a different cache file; that is
23865 # what configure does when it calls configure scripts in
23866 # subdirectories, so they share the cache.
23867 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23868 # config.status only pays attention to the cache file if you give it the
23869 # --recheck option to rerun configure.
23872 # The following way of writing the cache mishandles newlines in values,
23873 # but we know of no workaround that is simple, portable, and efficient.
23874 # So, don't put newlines in cache variables' values.
23875 # Ultrix sh set writes to stderr and can't be redirected directly,
23876 # and sets the high bit in the cache file unless we assign to the vars.
23877 (set) 2>&1 |
23878 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23879 *ac_space=\ *)
23880 # `set' does not quote correctly, so add quotes (double-quote substitution
23881 # turns \\\\ into \\, and sed turns \\ into \).
23882 sed -n \
23883 -e "s/'/'\\\\''/g" \
23884 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23887 # `set' quotes correctly as required by POSIX, so do not add quotes.
23888 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23890 esac >> confcache
23891 if cmp -s $cache_file confcache; then
23893 else
23894 if test -w $cache_file; then
23895 echo "updating cache $cache_file"
23896 cat confcache > $cache_file
23897 else
23898 echo "not updating unwritable cache $cache_file"
23901 rm -f confcache
23904 if test "${multilib}" = "yes"; then
23905 multilib_arg="--enable-multilib"
23906 else
23907 multilib_arg=
23910 # Export all the install information
23912 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23913 # exported correctly in GLIBCPP_CONFIGURE.
23914 glibcpp_toolexecdir=no
23915 glibcpp_toolexeclibdir=no
23916 glibcpp_prefixdir=${prefix}
23918 # Process the option --with-gxx-include-dir=<path to include-files directory>
23919 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23920 echo "configure:23921: checking for --with-gxx-include-dir" >&5
23921 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23922 if test "${with_gxx_include_dir+set}" = set; then
23923 withval="$with_gxx_include_dir"
23924 case "${withval}" in
23925 yes)
23926 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23927 gxx_include_dir=no
23930 gxx_include_dir=no
23933 gxx_include_dir=${withval}
23935 esac
23936 else
23937 gxx_include_dir=no
23940 echo "$ac_t""$gxx_include_dir" 1>&6
23942 # Process the option "--enable-version-specific-runtime-libs"
23943 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23944 echo "configure:23945: checking for --enable-version-specific-runtime-libs" >&5
23945 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23946 if test "${enable_version_specific_runtime_libs+set}" = set; then
23947 enableval="$enable_version_specific_runtime_libs"
23948 case "$enableval" in
23949 yes) version_specific_libs=yes ;;
23950 no) version_specific_libs=no ;;
23951 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23952 esac
23953 else
23954 version_specific_libs=no
23956 # Option set, now we can test it.
23957 echo "$ac_t""$version_specific_libs" 1>&6
23959 # Default case for install directory for include files.
23960 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23961 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23964 # Version-specific runtime libs processing.
23965 if test $version_specific_libs = yes; then
23966 # Need the gcc compiler version to know where to install libraries
23967 # and header files if --enable-version-specific-runtime-libs option
23968 # is selected.
23969 if test x"$gxx_include_dir" = x"no"; then
23970 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23972 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23973 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23976 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
23977 # Install a library built with a cross compiler in tooldir, not libdir.
23978 if test x"$glibcpp_toolexecdir" = x"no"; then
23979 if test -n "$with_cross_host" &&
23980 test x"$with_cross_host" != x"no"; then
23981 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
23982 glibcpp_toolexeclibdir='$(toolexecdir)/lib'
23983 else
23984 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23985 glibcpp_toolexeclibdir='$(libdir)'
23987 multi_os_directory=`$CC -print-multi-os-directory`
23988 case $multi_os_directory in
23989 .) ;; # Avoid trailing /.
23990 *) glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/$multi_os_directory ;;
23991 esac
23994 echo $ac_n "checking for install location""... $ac_c" 1>&6
23995 echo "configure:23996: checking for install location" >&5
23996 echo "$ac_t""$gxx_include_dir" 1>&6
24004 # Export all the include and flag information to Makefiles.
24006 # Root level of the build directory include sources.
24007 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
24009 # Passed down for canadian crosses.
24010 if test x"$CANADIAN" = xyes; then
24011 TOPLEVEL_INCLUDES='-I$(includedir)'
24014 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
24016 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
24018 if test x"$need_libio" = xyes; then
24019 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
24023 # Now, export this to all the little Makefiles....
24030 # Optimization flags that are probably a good idea for thrill-seekers. Just
24031 # uncomment the lines below and make, everything else is ready to go...
24032 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
24033 OPTIMIZE_CXXFLAGS=
24036 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings'
24040 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
24041 grep "enable shared" > /dev/null; then
24042 LIBSUPCXX_PICFLAGS=-prefer-pic
24043 else
24044 LIBSUPCXX_PICFLAGS=
24048 # Generate the various Makefiles, include files, and scripts.
24049 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
24050 # and libsupc++/Makefile.am so that multilib installs will end up
24051 # installed in the correct place. To work around this not being passed
24052 # down from config-ml.in -> top_srcdir/Makefile.am ->
24053 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
24054 trap '' 1 2 15
24055 cat > confcache <<\EOF
24056 # This file is a shell script that caches the results of configure
24057 # tests run on this system so they can be shared between configure
24058 # scripts and configure runs. It is not useful on other systems.
24059 # If it contains results you don't want to keep, you may remove or edit it.
24061 # By default, configure uses ./config.cache as the cache file,
24062 # creating it if it does not exist already. You can give configure
24063 # the --cache-file=FILE option to use a different cache file; that is
24064 # what configure does when it calls configure scripts in
24065 # subdirectories, so they share the cache.
24066 # Giving --cache-file=/dev/null disables caching, for debugging configure.
24067 # config.status only pays attention to the cache file if you give it the
24068 # --recheck option to rerun configure.
24071 # The following way of writing the cache mishandles newlines in values,
24072 # but we know of no workaround that is simple, portable, and efficient.
24073 # So, don't put newlines in cache variables' values.
24074 # Ultrix sh set writes to stderr and can't be redirected directly,
24075 # and sets the high bit in the cache file unless we assign to the vars.
24076 (set) 2>&1 |
24077 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24078 *ac_space=\ *)
24079 # `set' does not quote correctly, so add quotes (double-quote substitution
24080 # turns \\\\ into \\, and sed turns \\ into \).
24081 sed -n \
24082 -e "s/'/'\\\\''/g" \
24083 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
24086 # `set' quotes correctly as required by POSIX, so do not add quotes.
24087 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
24089 esac >> confcache
24090 if cmp -s $cache_file confcache; then
24092 else
24093 if test -w $cache_file; then
24094 echo "updating cache $cache_file"
24095 cat confcache > $cache_file
24096 else
24097 echo "not updating unwritable cache $cache_file"
24100 rm -f confcache
24102 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
24104 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24105 # Let make expand exec_prefix.
24106 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24108 # Any assignment to VPATH causes Sun make to only execute
24109 # the first set of double-colon rules, so remove it if not needed.
24110 # If there is a colon in the path, we need to keep it.
24111 if test "x$srcdir" = x.; then
24112 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
24115 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24117 DEFS=-DHAVE_CONFIG_H
24119 # Without the "./", some shells look in PATH for config.status.
24120 : ${CONFIG_STATUS=./config.status}
24122 echo creating $CONFIG_STATUS
24123 rm -f $CONFIG_STATUS
24124 cat > $CONFIG_STATUS <<EOF
24125 #! /bin/sh
24126 # Generated automatically by configure.
24127 # Run this file to recreate the current configuration.
24128 # This directory was configured as follows,
24129 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24131 # $0 $ac_configure_args
24133 # Compiler output produced by configure, useful for debugging
24134 # configure, is in ./config.log if it exists.
24136 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24137 for ac_option
24139 case "\$ac_option" in
24140 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24141 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24142 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24143 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24144 echo "$CONFIG_STATUS generated by autoconf version 2.13"
24145 exit 0 ;;
24146 -help | --help | --hel | --he | --h)
24147 echo "\$ac_cs_usage"; exit 0 ;;
24148 *) echo "\$ac_cs_usage"; exit 1 ;;
24149 esac
24150 done
24152 ac_given_srcdir=$srcdir
24153 ac_given_INSTALL="$INSTALL"
24155 trap 'rm -fr `echo "Makefile \
24156 include/Makefile src/Makefile \
24157 libmath/Makefile libio/Makefile libsupc++/Makefile \
24158 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24160 cat >> $CONFIG_STATUS <<EOF
24162 # Protect against being on the right side of a sed subst in config.status.
24163 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24164 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24165 $ac_vpsub
24166 $extrasub
24167 s%@SHELL@%$SHELL%g
24168 s%@CFLAGS@%$CFLAGS%g
24169 s%@CPPFLAGS@%$CPPFLAGS%g
24170 s%@CXXFLAGS@%$CXXFLAGS%g
24171 s%@FFLAGS@%$FFLAGS%g
24172 s%@DEFS@%$DEFS%g
24173 s%@LDFLAGS@%$LDFLAGS%g
24174 s%@LIBS@%$LIBS%g
24175 s%@exec_prefix@%$exec_prefix%g
24176 s%@prefix@%$prefix%g
24177 s%@program_transform_name@%$program_transform_name%g
24178 s%@bindir@%$bindir%g
24179 s%@sbindir@%$sbindir%g
24180 s%@libexecdir@%$libexecdir%g
24181 s%@datadir@%$datadir%g
24182 s%@sysconfdir@%$sysconfdir%g
24183 s%@sharedstatedir@%$sharedstatedir%g
24184 s%@localstatedir@%$localstatedir%g
24185 s%@libdir@%$libdir%g
24186 s%@includedir@%$includedir%g
24187 s%@oldincludedir@%$oldincludedir%g
24188 s%@infodir@%$infodir%g
24189 s%@mandir@%$mandir%g
24190 s%@PACKAGE@%$PACKAGE%g
24191 s%@libtool_VERSION@%$libtool_VERSION%g
24192 s%@toplevel_srcdir@%$toplevel_srcdir%g
24193 s%@host@%$host%g
24194 s%@host_alias@%$host_alias%g
24195 s%@host_cpu@%$host_cpu%g
24196 s%@host_vendor@%$host_vendor%g
24197 s%@host_os@%$host_os%g
24198 s%@target@%$target%g
24199 s%@target_alias@%$target_alias%g
24200 s%@target_cpu@%$target_cpu%g
24201 s%@target_vendor@%$target_vendor%g
24202 s%@target_os@%$target_os%g
24203 s%@build@%$build%g
24204 s%@build_alias@%$build_alias%g
24205 s%@build_cpu@%$build_cpu%g
24206 s%@build_vendor@%$build_vendor%g
24207 s%@build_os@%$build_os%g
24208 s%@glibcpp_builddir@%$glibcpp_builddir%g
24209 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
24210 s%@AWK@%$AWK%g
24211 s%@LN_S@%$LN_S%g
24212 s%@glibcpp_basedir@%$glibcpp_basedir%g
24213 s%@CC@%$CC%g
24214 s%@glibcpp_CXX@%$glibcpp_CXX%g
24215 s%@AS@%$AS%g
24216 s%@AR@%$AR%g
24217 s%@RANLIB@%$RANLIB%g
24218 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24219 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24220 s%@INSTALL_DATA@%$INSTALL_DATA%g
24221 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24222 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24223 s%@MAINT@%$MAINT%g
24224 s%@EXEEXT@%$EXEEXT%g
24225 s%@VERSION@%$VERSION%g
24226 s%@ACLOCAL@%$ACLOCAL%g
24227 s%@AUTOCONF@%$AUTOCONF%g
24228 s%@AUTOMAKE@%$AUTOMAKE%g
24229 s%@AUTOHEADER@%$AUTOHEADER%g
24230 s%@MAKEINFO@%$MAKEINFO%g
24231 s%@SET_MAKE@%$SET_MAKE%g
24232 s%@OBJEXT@%$OBJEXT%g
24233 s%@STRIP@%$STRIP%g
24234 s%@LIBTOOL@%$LIBTOOL%g
24235 s%@CXXCPP@%$CXXCPP%g
24236 s%@enable_shared@%$enable_shared%g
24237 s%@enable_static@%$enable_static%g
24238 s%@ifGNUmake@%$ifGNUmake%g
24239 s%@GLIBCPP_BUILD_PCH_TRUE@%$GLIBCPP_BUILD_PCH_TRUE%g
24240 s%@GLIBCPP_BUILD_PCH_FALSE@%$GLIBCPP_BUILD_PCH_FALSE%g
24241 s%@CPP@%$CPP%g
24242 s%@CSTDIO_H@%$CSTDIO_H%g
24243 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24244 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24245 s%@CCODECVT_C@%$CCODECVT_C%g
24246 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
24247 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
24248 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
24249 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
24250 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
24251 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
24252 s%@libio_la@%$libio_la%g
24253 s%@check_msgfmt@%$check_msgfmt%g
24254 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
24255 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
24256 s%@glibcpp_localedir@%$glibcpp_localedir%g
24257 s%@USE_NLS@%$USE_NLS%g
24258 s%@CLOCALE_H@%$CLOCALE_H%g
24259 s%@CCODECVT_H@%$CCODECVT_H%g
24260 s%@CMESSAGES_H@%$CMESSAGES_H%g
24261 s%@CCODECVT_CC@%$CCODECVT_CC%g
24262 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24263 s%@CCTYPE_CC@%$CCTYPE_CC%g
24264 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24265 s%@CMONEY_CC@%$CMONEY_CC%g
24266 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24267 s%@CTIME_H@%$CTIME_H%g
24268 s%@CTIME_CC@%$CTIME_CC%g
24269 s%@CLOCALE_CC@%$CLOCALE_CC%g
24270 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24271 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24272 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
24273 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
24274 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
24275 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
24276 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
24277 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
24278 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
24279 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24280 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24281 s%@GLIBCPP_BUILD_DEBUG_TRUE@%$GLIBCPP_BUILD_DEBUG_TRUE%g
24282 s%@GLIBCPP_BUILD_DEBUG_FALSE@%$GLIBCPP_BUILD_DEBUG_FALSE%g
24283 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24284 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24285 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24286 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24287 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24288 s%@GLIBCPP_BUILD_LIBMATH_TRUE@%$GLIBCPP_BUILD_LIBMATH_TRUE%g
24289 s%@GLIBCPP_BUILD_LIBMATH_FALSE@%$GLIBCPP_BUILD_LIBMATH_FALSE%g
24290 s%@GLIBCPP_TEST_WCHAR_T_TRUE@%$GLIBCPP_TEST_WCHAR_T_TRUE%g
24291 s%@GLIBCPP_TEST_WCHAR_T_FALSE@%$GLIBCPP_TEST_WCHAR_T_FALSE%g
24292 s%@WERROR@%$WERROR%g
24293 s%@baseline_file@%$baseline_file%g
24294 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
24295 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
24296 s%@SYMVER_MAP@%$SYMVER_MAP%g
24297 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
24298 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
24299 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24300 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24301 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
24302 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24303 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24304 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
24305 s%@gxx_include_dir@%$gxx_include_dir%g
24306 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
24307 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
24308 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
24309 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
24310 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24311 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24312 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24313 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24314 s%@WARN_FLAGS@%$WARN_FLAGS%g
24315 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24317 CEOF
24320 cat >> $CONFIG_STATUS <<\EOF
24322 # Split the substitutions into bite-sized pieces for seds with
24323 # small command number limits, like on Digital OSF/1 and HP-UX.
24324 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24325 ac_file=1 # Number of current file.
24326 ac_beg=1 # First line for current file.
24327 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24328 ac_more_lines=:
24329 ac_sed_cmds=""
24330 while $ac_more_lines; do
24331 if test $ac_beg -gt 1; then
24332 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24333 else
24334 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24336 if test ! -s conftest.s$ac_file; then
24337 ac_more_lines=false
24338 rm -f conftest.s$ac_file
24339 else
24340 if test -z "$ac_sed_cmds"; then
24341 ac_sed_cmds="sed -f conftest.s$ac_file"
24342 else
24343 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24345 ac_file=`expr $ac_file + 1`
24346 ac_beg=$ac_end
24347 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24349 done
24350 if test -z "$ac_sed_cmds"; then
24351 ac_sed_cmds=cat
24355 cat >> $CONFIG_STATUS <<EOF
24357 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24358 include/Makefile src/Makefile \
24359 libmath/Makefile libio/Makefile libsupc++/Makefile \
24360 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
24362 cat >> $CONFIG_STATUS <<\EOF
24363 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24364 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24365 case "$ac_file" in
24366 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24367 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24368 *) ac_file_in="${ac_file}.in" ;;
24369 esac
24371 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24373 # Remove last slash and all that follows it. Not all systems have dirname.
24374 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24375 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24376 # The file is in a subdirectory.
24377 test ! -d "$ac_dir" && mkdir "$ac_dir"
24378 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24379 # A "../" for each directory in $ac_dir_suffix.
24380 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24381 else
24382 ac_dir_suffix= ac_dots=
24385 case "$ac_given_srcdir" in
24386 .) srcdir=.
24387 if test -z "$ac_dots"; then top_srcdir=.
24388 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24389 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24390 *) # Relative path.
24391 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24392 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24393 esac
24395 case "$ac_given_INSTALL" in
24396 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24397 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24398 esac
24400 echo creating "$ac_file"
24401 rm -f "$ac_file"
24402 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24403 case "$ac_file" in
24404 *Makefile*) ac_comsub="1i\\
24405 # $configure_input" ;;
24406 *) ac_comsub= ;;
24407 esac
24409 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24410 sed -e "$ac_comsub
24411 s%@configure_input@%$configure_input%g
24412 s%@srcdir@%$srcdir%g
24413 s%@top_srcdir@%$top_srcdir%g
24414 s%@INSTALL@%$INSTALL%g
24415 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24416 fi; done
24417 rm -f conftest.s*
24419 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24420 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24422 # ac_d sets the value in "#define NAME VALUE" lines.
24423 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24424 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24425 ac_dC='\3'
24426 ac_dD='%g'
24427 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24428 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24429 ac_uB='\([ ]\)%\1#\2define\3'
24430 ac_uC=' '
24431 ac_uD='\4%g'
24432 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24433 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24434 ac_eB='$%\1#\2define\3'
24435 ac_eC=' '
24436 ac_eD='%g'
24438 if test "${CONFIG_HEADERS+set}" != set; then
24440 cat >> $CONFIG_STATUS <<EOF
24441 CONFIG_HEADERS="config.h"
24443 cat >> $CONFIG_STATUS <<\EOF
24445 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24446 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24447 case "$ac_file" in
24448 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24449 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24450 *) ac_file_in="${ac_file}.in" ;;
24451 esac
24453 echo creating $ac_file
24455 rm -f conftest.frag conftest.in conftest.out
24456 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24457 cat $ac_file_inputs > conftest.in
24461 # Transform confdefs.h into a sed script conftest.vals that substitutes
24462 # the proper values into config.h.in to produce config.h. And first:
24463 # Protect against being on the right side of a sed subst in config.status.
24464 # Protect against being in an unquoted here document in config.status.
24465 rm -f conftest.vals
24466 cat > conftest.hdr <<\EOF
24467 s/[\\&%]/\\&/g
24468 s%[\\$`]%\\&%g
24469 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24470 s%ac_d%ac_u%gp
24471 s%ac_u%ac_e%gp
24473 sed -n -f conftest.hdr confdefs.h > conftest.vals
24474 rm -f conftest.hdr
24476 # This sed command replaces #undef with comments. This is necessary, for
24477 # example, in the case of _POSIX_SOURCE, which is predefined and required
24478 # on some systems where configure will not decide to define it.
24479 cat >> conftest.vals <<\EOF
24480 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24483 # Break up conftest.vals because some shells have a limit on
24484 # the size of here documents, and old seds have small limits too.
24486 rm -f conftest.tail
24487 while :
24489 ac_lines=`grep -c . conftest.vals`
24490 # grep -c gives empty output for an empty file on some AIX systems.
24491 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24492 # Write a limited-size here document to conftest.frag.
24493 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24494 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24495 echo 'CEOF
24496 sed -f conftest.frag conftest.in > conftest.out
24497 rm -f conftest.in
24498 mv conftest.out conftest.in
24499 ' >> $CONFIG_STATUS
24500 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24501 rm -f conftest.vals
24502 mv conftest.tail conftest.vals
24503 done
24504 rm -f conftest.vals
24506 cat >> $CONFIG_STATUS <<\EOF
24507 rm -f conftest.frag conftest.h
24508 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24509 cat conftest.in >> conftest.h
24510 rm -f conftest.in
24511 if cmp -s $ac_file conftest.h 2>/dev/null; then
24512 echo "$ac_file is unchanged"
24513 rm -f conftest.h
24514 else
24515 # Remove last slash and all that follows it. Not all systems have dirname.
24516 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24517 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24518 # The file is in a subdirectory.
24519 test ! -d "$ac_dir" && mkdir "$ac_dir"
24521 rm -f $ac_file
24522 mv conftest.h $ac_file
24524 fi; done
24527 cat >> $CONFIG_STATUS <<EOF
24529 srcdir=${srcdir}
24530 host=${host}
24531 target=${target}
24532 with_target_subdir=${with_target_subdir}
24533 with_build_subdir=${with_build_subdir}
24534 with_multisubdir=${with_multisubdir}
24535 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24536 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24537 glibcpp_basedir=${glibcpp_basedir}
24538 CC="${CC}"
24539 CXX="${CXX}"
24540 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
24543 cat >> $CONFIG_STATUS <<\EOF
24544 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24545 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24546 if test -n "$CONFIG_FILES"; then
24547 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24548 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24549 # Ony modify Makefiles that are just being created.
24550 case " $CONFIG_FILES" in
24551 *" Makefile"*)
24552 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24554 esac
24555 case $CONFIG_FILES in
24556 *src/Makefile*)
24557 grep '^MULTISUBDIR =' Makefile >> src/Makefile
24559 esac
24560 case $CONFIG_FILES in
24561 *libsupc++/Makefile*)
24562 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24564 esac
24567 chmod +x mkcheck
24568 chmod +x testsuite_flags
24569 exit 0
24571 chmod +x $CONFIG_STATUS
24572 rm -fr confdefs* $ac_clean_files
24573 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24577 # Sanity checking & User-visible messages.
24578 # Checks down here, otherwise they get scrolled off before
24579 # the user will notice.
24581 # Trying to get more people to read documentation. Possibly remove
24582 # check and warn all the time. There is no "informational" AC_MSG_
24583 # macro, so these are going to be printed even when --quiet/--silent
24584 # is given.
24585 if test ! -f stamp-sanity-warned; then
24586 touch stamp-sanity-warned
24587 echo ""
24588 echo "Please make certain that you read the installation information here:"
24589 echo " faster => ${srcdir}/docs/html/install.html"
24590 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24591 echo ""
24592 echo "and the configuration information here:"
24593 echo " faster => ${srcdir}/docs/html/configopts.html"
24594 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24595 echo ""
24596 echo "before proceeding with ${_cv_gnu_make_command}."
24597 echo ""