* ChangeLog.6: Fix misspellings.
[official-gcc.git] / libstdc++-v3 / configure
blob09d492668e47dce399f30f4fc1821027e9896f65
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 --with-newlib Configuring with newlib"
23 ac_help="$ac_help
24 --enable-maintainer-mode enable make rules and dependencies not useful
25 (and sometimes confusing) to the casual installer"
26 ac_help="$ac_help
27 --enable-shared[=PKGS] build shared libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-static[=PKGS] build static libraries [default=yes]"
30 ac_help="$ac_help
31 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
32 ac_help="$ac_help
33 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
34 ac_help="$ac_help
35 --disable-libtool-lock avoid locking (might break parallel builds)"
36 ac_help="$ac_help
37 --with-pic try to use only PIC/non-PIC objects [default=use both]"
38 ac_help="$ac_help
39 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
40 ac_help="$ac_help
41 --enable-libunwind-exceptions force use of libunwind for exceptions"
42 ac_help="$ac_help
43 --enable-pch build pre-compiled libstdc++ includes [default=yes]"
44 ac_help="$ac_help
45 --enable-cstdio enable stdio for target io package.
46 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
48 ac_help="$ac_help
49 --enable-clocale enable model for target locale package.
50 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
52 ac_help="$ac_help
53 --enable-nls use Native Language Support (default)"
54 ac_help="$ac_help
55 --enable-cheaders=MODEL construct "C" header files for g++ [default=c_std]"
56 ac_help="$ac_help
57 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
58 ac_help="$ac_help
59 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
60 ac_help="$ac_help
61 --enable-long-long turns on 'long long' [default=yes]"
62 ac_help="$ac_help
63 --enable-concept-checks use Boost-derived template checks [default=no]"
64 ac_help="$ac_help
65 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
66 [default=]"
67 ac_help="$ac_help
68 --enable-debug build extra debug library [default=no]"
69 ac_help="$ac_help
70 --enable-debug-flags=FLAGS pass compiler FLAGS when building debug
71 library;[default=none]"
72 ac_help="$ac_help
73 --enable-symvers=style enables symbol versioning of the shared library [default=yes]"
74 ac_help="$ac_help
75 --with-gxx-include-dir the installation directory for include files"
76 ac_help="$ac_help
77 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
79 # Initialize some variables set by options.
80 # The variables have the same names as the options, with
81 # dashes changed to underlines.
82 build=NONE
83 cache_file=./config.cache
84 exec_prefix=NONE
85 host=NONE
86 no_create=
87 nonopt=NONE
88 no_recursion=
89 prefix=NONE
90 program_prefix=NONE
91 program_suffix=NONE
92 program_transform_name=s,x,x,
93 silent=
94 site=
95 srcdir=
96 target=NONE
97 verbose=
98 x_includes=NONE
99 x_libraries=NONE
100 bindir='${exec_prefix}/bin'
101 sbindir='${exec_prefix}/sbin'
102 libexecdir='${exec_prefix}/libexec'
103 datadir='${prefix}/share'
104 sysconfdir='${prefix}/etc'
105 sharedstatedir='${prefix}/com'
106 localstatedir='${prefix}/var'
107 libdir='${exec_prefix}/lib'
108 includedir='${prefix}/include'
109 oldincludedir='/usr/include'
110 infodir='${prefix}/info'
111 mandir='${prefix}/man'
113 # Initialize some other variables.
114 subdirs=
115 MFLAGS= MAKEFLAGS=
116 SHELL=${CONFIG_SHELL-/bin/sh}
117 # Maximum number of lines to put in a shell here document.
118 ac_max_here_lines=12
120 ac_prev=
121 for ac_option
124 # If the previous option needs an argument, assign it.
125 if test -n "$ac_prev"; then
126 eval "$ac_prev=\$ac_option"
127 ac_prev=
128 continue
131 case "$ac_option" in
132 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
133 *) ac_optarg= ;;
134 esac
136 # Accept the important Cygnus configure options, so we can diagnose typos.
138 case "$ac_option" in
140 -bindir | --bindir | --bindi | --bind | --bin | --bi)
141 ac_prev=bindir ;;
142 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
143 bindir="$ac_optarg" ;;
145 -build | --build | --buil | --bui | --bu)
146 ac_prev=build ;;
147 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
148 build="$ac_optarg" ;;
150 -cache-file | --cache-file | --cache-fil | --cache-fi \
151 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
152 ac_prev=cache_file ;;
153 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
154 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
155 cache_file="$ac_optarg" ;;
157 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
158 ac_prev=datadir ;;
159 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
160 | --da=*)
161 datadir="$ac_optarg" ;;
163 -disable-* | --disable-*)
164 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
165 # Reject names that are not valid shell variable names.
166 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
167 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
170 eval "enable_${ac_feature}=no" ;;
172 -enable-* | --enable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 case "$ac_option" in
180 *=*) ;;
181 *) ac_optarg=yes ;;
182 esac
183 eval "enable_${ac_feature}='$ac_optarg'" ;;
185 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
186 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
187 | --exec | --exe | --ex)
188 ac_prev=exec_prefix ;;
189 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
190 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
191 | --exec=* | --exe=* | --ex=*)
192 exec_prefix="$ac_optarg" ;;
194 -gas | --gas | --ga | --g)
195 # Obsolete; use --with-gas.
196 with_gas=yes ;;
198 -help | --help | --hel | --he)
199 # Omit some internal or obsolete options to make the list less imposing.
200 # This message is too long to be a string in the A/UX 3.1 sh.
201 cat << EOF
202 Usage: configure [options] [host]
203 Options: [defaults in brackets after descriptions]
204 Configuration:
205 --cache-file=FILE cache test results in FILE
206 --help print this message
207 --no-create do not create output files
208 --quiet, --silent do not print \`checking...' messages
209 --version print the version of autoconf that created configure
210 Directory and file names:
211 --prefix=PREFIX install architecture-independent files in PREFIX
212 [$ac_default_prefix]
213 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
214 [same as prefix]
215 --bindir=DIR user executables in DIR [EPREFIX/bin]
216 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
217 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
218 --datadir=DIR read-only architecture-independent data in DIR
219 [PREFIX/share]
220 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
221 --sharedstatedir=DIR modifiable architecture-independent data in DIR
222 [PREFIX/com]
223 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
224 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
225 --includedir=DIR C header files in DIR [PREFIX/include]
226 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
227 --infodir=DIR info documentation in DIR [PREFIX/info]
228 --mandir=DIR man documentation in DIR [PREFIX/man]
229 --srcdir=DIR find the sources in DIR [configure dir or ..]
230 --program-prefix=PREFIX prepend PREFIX to installed program names
231 --program-suffix=SUFFIX append SUFFIX to installed program names
232 --program-transform-name=PROGRAM
233 run sed PROGRAM on installed program names
235 cat << EOF
236 Host type:
237 --build=BUILD configure for building on BUILD [BUILD=HOST]
238 --host=HOST configure for HOST [guessed]
239 --target=TARGET configure for TARGET [TARGET=HOST]
240 Features and packages:
241 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
242 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
243 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
244 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
245 --x-includes=DIR X include files are in DIR
246 --x-libraries=DIR X library files are in DIR
248 if test -n "$ac_help"; then
249 echo "--enable and --with options recognized:$ac_help"
251 exit 0 ;;
253 -host | --host | --hos | --ho)
254 ac_prev=host ;;
255 -host=* | --host=* | --hos=* | --ho=*)
256 host="$ac_optarg" ;;
258 -includedir | --includedir | --includedi | --included | --include \
259 | --includ | --inclu | --incl | --inc)
260 ac_prev=includedir ;;
261 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
262 | --includ=* | --inclu=* | --incl=* | --inc=*)
263 includedir="$ac_optarg" ;;
265 -infodir | --infodir | --infodi | --infod | --info | --inf)
266 ac_prev=infodir ;;
267 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
268 infodir="$ac_optarg" ;;
270 -libdir | --libdir | --libdi | --libd)
271 ac_prev=libdir ;;
272 -libdir=* | --libdir=* | --libdi=* | --libd=*)
273 libdir="$ac_optarg" ;;
275 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
276 | --libexe | --libex | --libe)
277 ac_prev=libexecdir ;;
278 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
279 | --libexe=* | --libex=* | --libe=*)
280 libexecdir="$ac_optarg" ;;
282 -localstatedir | --localstatedir | --localstatedi | --localstated \
283 | --localstate | --localstat | --localsta | --localst \
284 | --locals | --local | --loca | --loc | --lo)
285 ac_prev=localstatedir ;;
286 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
287 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
288 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
289 localstatedir="$ac_optarg" ;;
291 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
292 ac_prev=mandir ;;
293 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
294 mandir="$ac_optarg" ;;
296 -nfp | --nfp | --nf)
297 # Obsolete; use --without-fp.
298 with_fp=no ;;
300 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
301 | --no-cr | --no-c)
302 no_create=yes ;;
304 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
305 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
306 no_recursion=yes ;;
308 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
309 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
310 | --oldin | --oldi | --old | --ol | --o)
311 ac_prev=oldincludedir ;;
312 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
313 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
314 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
315 oldincludedir="$ac_optarg" ;;
317 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
318 ac_prev=prefix ;;
319 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
320 prefix="$ac_optarg" ;;
322 -program-prefix | --program-prefix | --program-prefi | --program-pref \
323 | --program-pre | --program-pr | --program-p)
324 ac_prev=program_prefix ;;
325 -program-prefix=* | --program-prefix=* | --program-prefi=* \
326 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
327 program_prefix="$ac_optarg" ;;
329 -program-suffix | --program-suffix | --program-suffi | --program-suff \
330 | --program-suf | --program-su | --program-s)
331 ac_prev=program_suffix ;;
332 -program-suffix=* | --program-suffix=* | --program-suffi=* \
333 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
334 program_suffix="$ac_optarg" ;;
336 -program-transform-name | --program-transform-name \
337 | --program-transform-nam | --program-transform-na \
338 | --program-transform-n | --program-transform- \
339 | --program-transform | --program-transfor \
340 | --program-transfo | --program-transf \
341 | --program-trans | --program-tran \
342 | --progr-tra | --program-tr | --program-t)
343 ac_prev=program_transform_name ;;
344 -program-transform-name=* | --program-transform-name=* \
345 | --program-transform-nam=* | --program-transform-na=* \
346 | --program-transform-n=* | --program-transform-=* \
347 | --program-transform=* | --program-transfor=* \
348 | --program-transfo=* | --program-transf=* \
349 | --program-trans=* | --program-tran=* \
350 | --progr-tra=* | --program-tr=* | --program-t=*)
351 program_transform_name="$ac_optarg" ;;
353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
354 | -silent | --silent | --silen | --sile | --sil)
355 silent=yes ;;
357 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
358 ac_prev=sbindir ;;
359 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
360 | --sbi=* | --sb=*)
361 sbindir="$ac_optarg" ;;
363 -sharedstatedir | --sharedstatedir | --sharedstatedi \
364 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
365 | --sharedst | --shareds | --shared | --share | --shar \
366 | --sha | --sh)
367 ac_prev=sharedstatedir ;;
368 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
369 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
370 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
371 | --sha=* | --sh=*)
372 sharedstatedir="$ac_optarg" ;;
374 -site | --site | --sit)
375 ac_prev=site ;;
376 -site=* | --site=* | --sit=*)
377 site="$ac_optarg" ;;
379 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
380 ac_prev=srcdir ;;
381 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
382 srcdir="$ac_optarg" ;;
384 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
385 | --syscon | --sysco | --sysc | --sys | --sy)
386 ac_prev=sysconfdir ;;
387 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
388 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
389 sysconfdir="$ac_optarg" ;;
391 -target | --target | --targe | --targ | --tar | --ta | --t)
392 ac_prev=target ;;
393 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
394 target="$ac_optarg" ;;
396 -v | -verbose | --verbose | --verbos | --verbo | --verb)
397 verbose=yes ;;
399 -version | --version | --versio | --versi | --vers)
400 echo "configure generated by autoconf version 2.13"
401 exit 0 ;;
403 -with-* | --with-*)
404 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 ac_package=`echo $ac_package| sed 's/-/_/g'`
410 case "$ac_option" in
411 *=*) ;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "with_${ac_package}='$ac_optarg'" ;;
416 -without-* | --without-*)
417 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
420 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}=no" ;;
425 --x)
426 # Obsolete; use --with-x.
427 with_x=yes ;;
429 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
430 | --x-incl | --x-inc | --x-in | --x-i)
431 ac_prev=x_includes ;;
432 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
433 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
434 x_includes="$ac_optarg" ;;
436 -x-libraries | --x-libraries | --x-librarie | --x-librari \
437 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
438 ac_prev=x_libraries ;;
439 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
440 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
441 x_libraries="$ac_optarg" ;;
443 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
447 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
448 echo "configure: warning: $ac_option: invalid host type" 1>&2
450 if test "x$nonopt" != xNONE; then
451 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
453 nonopt="$ac_option"
456 esac
457 done
459 if test -n "$ac_prev"; then
460 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
463 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
465 # File descriptor usage:
466 # 0 standard input
467 # 1 file creation
468 # 2 errors and warnings
469 # 3 some systems may open it to /dev/tty
470 # 4 used on the Kubota Titan
471 # 6 checking for... messages and results
472 # 5 compiler messages saved in config.log
473 if test "$silent" = yes; then
474 exec 6>/dev/null
475 else
476 exec 6>&1
478 exec 5>./config.log
480 echo "\
481 This file contains any messages produced by compilers while
482 running configure, to aid debugging if configure makes a mistake.
483 " 1>&5
485 # Strip out --no-create and --no-recursion so they do not pile up.
486 # Also quote any args containing shell metacharacters.
487 ac_configure_args=
488 for ac_arg
490 case "$ac_arg" in
491 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
492 | --no-cr | --no-c) ;;
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
495 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
496 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
497 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
498 esac
499 done
501 # NLS nuisances.
502 # Only set these to C if already set. These must not be set unconditionally
503 # because not all systems understand e.g. LANG=C (notably SCO).
504 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
505 # Non-C LC_CTYPE values break the ctype check.
506 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
507 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
508 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
509 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
511 # confdefs.h avoids OS command line length limits that DEFS can exceed.
512 rm -rf conftest* confdefs.h
513 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
514 echo > confdefs.h
516 # A filename unique to this package, relative to the directory that
517 # configure is in, which we can look for to find out if srcdir is correct.
518 ac_unique_file=src/ios.cc
520 # Find the source files, if location was not specified.
521 if test -z "$srcdir"; then
522 ac_srcdir_defaulted=yes
523 # Try the directory containing this script, then its parent.
524 ac_prog=$0
525 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
526 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
527 srcdir=$ac_confdir
528 if test ! -r $srcdir/$ac_unique_file; then
529 srcdir=..
531 else
532 ac_srcdir_defaulted=no
534 if test ! -r $srcdir/$ac_unique_file; then
535 if test "$ac_srcdir_defaulted" = yes; then
536 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
537 else
538 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
541 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
543 # Prefer explicitly selected file to automatically selected ones.
544 if test -z "$CONFIG_SITE"; then
545 if test "x$prefix" != xNONE; then
546 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
547 else
548 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
551 for ac_site_file in $CONFIG_SITE; do
552 if test -r "$ac_site_file"; then
553 echo "loading site script $ac_site_file"
554 . "$ac_site_file"
556 done
558 if test -r "$cache_file"; then
559 echo "loading cache $cache_file"
560 . $cache_file
561 else
562 echo "creating cache $cache_file"
563 > $cache_file
566 ac_ext=c
567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
568 ac_cpp='$CPP $CPPFLAGS'
569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
571 cross_compiling=$ac_cv_prog_cc_cross
573 ac_exeext=
574 ac_objext=o
575 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
576 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
577 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
578 ac_n= ac_c='
579 ' ac_t=' '
580 else
581 ac_n=-n ac_c= ac_t=
583 else
584 ac_n= ac_c='\c' ac_t=
589 # This works around the fact that libtool configuration may change LD
590 # for this particular configuration, but some shells, instead of
591 # keeping the changes in LD private, export them just because LD is
592 # exported. Only used at the end of this file.
593 ORIGINAL_LD_FOR_MULTILIBS=$LD
595 PACKAGE=libstdc++
597 # For libtool versioning info, format is CURRENT:REVISION:AGE
598 libtool_VERSION=6:0:0
602 # Check whether --enable-multilib or --disable-multilib was given.
603 if test "${enable_multilib+set}" = set; then
604 enableval="$enable_multilib"
605 case "${enableval}" in
606 yes) multilib=yes ;;
607 no) multilib=no ;;
608 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
609 esac
610 else
611 multilib=yes
614 # When building with srcdir == objdir, links to the source files will
615 # be created in directories within the target_subdir. We have to
616 # adjust toplevel_srcdir accordingly, so that configure finds
617 # install-sh and other auxiliary files that live in the top-level
618 # source directory.
619 if test "${srcdir}" = "."; then
620 if test -z "${with_target_subdir}"; then
621 toprel=".."
622 else
623 if test "${with_target_subdir}" != "."; then
624 toprel="${with_multisrctop}../.."
625 else
626 toprel="${with_multisrctop}.."
629 else
630 toprel=".."
632 ac_aux_dir=
633 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
634 if 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
638 elif test -f $ac_dir/install.sh; then
639 ac_aux_dir=$ac_dir
640 ac_install_sh="$ac_aux_dir/install.sh -c"
641 break
643 done
644 if test -z "$ac_aux_dir"; then
645 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
647 ac_config_guess=$ac_aux_dir/config.guess
648 ac_config_sub=$ac_aux_dir/config.sub
649 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
651 toplevel_srcdir=\${top_srcdir}/$toprel
655 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
657 # You will slowly go insane if you do not grok the following fact: when
658 # building v3 as part of the compiler, the top-level /target/ becomes the
659 # library's /host/. `configure' then causes --target to default to --host,
660 # exactly like any other package using autoconf. Therefore, 'target' and
661 # 'host' will always be the same. This makes sense both for native and
662 # cross compilers, just think about it for a little while. :-)
664 # Also, if v3 is being configured as part of a cross compiler, the top-level
665 # configure script will pass the "real" host as $with_cross_host.
667 # In AC 2.13 AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
669 # Do some error checking and defaulting for the host and target type.
670 # The inputs are:
671 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
673 # The rules are:
674 # 1. You are not allowed to specify --host, --target, and nonopt at the
675 # same time.
676 # 2. Host defaults to nonopt.
677 # 3. If nonopt is not specified, then host defaults to the current host,
678 # as determined by config.guess.
679 # 4. Target and build default to nonopt.
680 # 5. If nonopt is not specified, then target and build default to host.
682 # The aliases save the names the user supplied, while $host etc.
683 # will get canonicalized.
684 case $host---$target---$nonopt in
685 NONE---*---* | *---NONE---* | *---*---NONE) ;;
686 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
687 esac
690 # Make sure we can run config.sub.
691 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
692 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
695 echo $ac_n "checking host system type""... $ac_c" 1>&6
696 echo "configure:697: checking host system type" >&5
698 host_alias=$host
699 case "$host_alias" in
700 NONE)
701 case $nonopt in
702 NONE)
703 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
704 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
705 fi ;;
706 *) host_alias=$nonopt ;;
707 esac ;;
708 esac
710 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
711 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
712 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
713 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
714 echo "$ac_t""$host" 1>&6
716 echo $ac_n "checking target system type""... $ac_c" 1>&6
717 echo "configure:718: checking target system type" >&5
719 target_alias=$target
720 case "$target_alias" in
721 NONE)
722 case $nonopt in
723 NONE) target_alias=$host_alias ;;
724 *) target_alias=$nonopt ;;
725 esac ;;
726 esac
728 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
729 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
730 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
731 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
732 echo "$ac_t""$target" 1>&6
734 echo $ac_n "checking build system type""... $ac_c" 1>&6
735 echo "configure:736: checking build system type" >&5
737 build_alias=$build
738 case "$build_alias" in
739 NONE)
740 case $nonopt in
741 NONE) build_alias=$host_alias ;;
742 *) build_alias=$nonopt ;;
743 esac ;;
744 esac
746 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
747 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
748 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
749 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
750 echo "$ac_t""$build" 1>&6
752 test "$host_alias" != "$target_alias" &&
753 test "$program_prefix$program_suffix$program_transform_name" = \
754 NONENONEs,x,x, &&
755 program_prefix=${target_alias}-
758 # Runs configure.host, finds CC, CXX and assorted other critical bits.
759 # Must run this before the GLIBCPP_ENABLE_* macros below.
760 if test $host != $build; then
761 ac_tool_prefix=${host_alias}-
762 else
763 ac_tool_prefix=
766 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
767 echo "configure:768: checking for Cygwin environment" >&5
768 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
769 echo $ac_n "(cached) $ac_c" 1>&6
770 else
771 cat > conftest.$ac_ext <<EOF
772 #line 773 "configure"
773 #include "confdefs.h"
775 int main() {
777 #ifndef __CYGWIN__
778 #define __CYGWIN__ __CYGWIN32__
779 #endif
780 return __CYGWIN__;
781 ; return 0; }
783 if { (eval echo configure:784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
784 rm -rf conftest*
785 ac_cv_cygwin=yes
786 else
787 echo "configure: failed program was:" >&5
788 cat conftest.$ac_ext >&5
789 rm -rf conftest*
790 ac_cv_cygwin=no
792 rm -f conftest*
793 rm -f conftest*
796 echo "$ac_t""$ac_cv_cygwin" 1>&6
797 CYGWIN=
798 test "$ac_cv_cygwin" = yes && CYGWIN=yes
799 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
800 echo "configure:801: checking for mingw32 environment" >&5
801 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
803 else
804 cat > conftest.$ac_ext <<EOF
805 #line 806 "configure"
806 #include "confdefs.h"
808 int main() {
809 return __MINGW32__;
810 ; return 0; }
812 if { (eval echo configure:813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
813 rm -rf conftest*
814 ac_cv_mingw32=yes
815 else
816 echo "configure: failed program was:" >&5
817 cat conftest.$ac_ext >&5
818 rm -rf conftest*
819 ac_cv_mingw32=no
821 rm -f conftest*
822 rm -f conftest*
825 echo "$ac_t""$ac_cv_mingw32" 1>&6
826 MINGW32=
827 test "$ac_cv_mingw32" = yes && MINGW32=yes
829 # Export build and source directories.
830 # These need to be absolute paths, yet at the same time need to
831 # canonicalize only relative paths, because then amd will not unmount
832 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
833 glibcpp_builddir=`${PWDCMD-pwd}`
834 case $srcdir in
835 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
836 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
837 esac
843 for ac_prog in gawk mawk nawk awk
845 # Extract the first word of "$ac_prog", so it can be a program name with args.
846 set dummy $ac_prog; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
851 else
852 if test -n "$AWK"; then
853 ac_cv_prog_AWK="$AWK" # Let the user override the test.
854 else
855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
856 ac_dummy="$PATH"
857 for ac_dir in $ac_dummy; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word; then
860 ac_cv_prog_AWK="$ac_prog"
861 break
863 done
864 IFS="$ac_save_ifs"
867 AWK="$ac_cv_prog_AWK"
868 if test -n "$AWK"; then
869 echo "$ac_t""$AWK" 1>&6
870 else
871 echo "$ac_t""no" 1>&6
874 test -n "$AWK" && break
875 done
877 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also
878 # be 'cp -p' if linking isn't available. Uncomment the next line to
879 # force a particular method.
880 #ac_cv_prog_LN_S='cp -p'
881 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
882 echo "configure:883: checking whether ln -s works" >&5
883 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
885 else
886 rm -f conftestdata
887 if ln -s X conftestdata 2>/dev/null
888 then
889 rm -f conftestdata
890 ac_cv_prog_LN_S="ln -s"
891 else
892 ac_cv_prog_LN_S=ln
895 LN_S="$ac_cv_prog_LN_S"
896 if test "$ac_cv_prog_LN_S" = "ln -s"; then
897 echo "$ac_t""yes" 1>&6
898 else
899 echo "$ac_t""no" 1>&6
903 # We use these options to decide which functions to include.
904 # Check whether --with-target-subdir or --without-target-subdir was given.
905 if test "${with_target_subdir+set}" = set; then
906 withval="$with_target_subdir"
910 # Check whether --with-cross-host or --without-cross-host was given.
911 if test "${with_cross_host+set}" = set; then
912 withval="$with_cross_host"
917 # Check whether --with-newlib or --without-newlib was given.
918 if test "${with_newlib+set}" = set; then
919 withval="$with_newlib"
924 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
927 # Never versions of autoconf add an underscore to these functions.
928 # Prevent future problems ...
934 # AC_PROG_CC
935 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
936 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
937 # are probably using a cross compiler, which will not be able to fully
938 # link an executable. This is addressed in later versions of autoconf.
943 # Extract the first word of "gcc", so it can be a program name with args.
944 set dummy gcc; ac_word=$2
945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
946 echo "configure:947: checking for $ac_word" >&5
947 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
948 echo $ac_n "(cached) $ac_c" 1>&6
949 else
950 if test -n "$CC"; then
951 ac_cv_prog_CC="$CC" # Let the user override the test.
952 else
953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
954 ac_dummy="$PATH"
955 for ac_dir in $ac_dummy; do
956 test -z "$ac_dir" && ac_dir=.
957 if test -f $ac_dir/$ac_word; then
958 ac_cv_prog_CC="gcc"
959 break
961 done
962 IFS="$ac_save_ifs"
965 CC="$ac_cv_prog_CC"
966 if test -n "$CC"; then
967 echo "$ac_t""$CC" 1>&6
968 else
969 echo "$ac_t""no" 1>&6
972 if test -z "$CC"; then
973 # Extract the first word of "cc", so it can be a program name with args.
974 set dummy cc; ac_word=$2
975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
976 echo "configure:977: checking for $ac_word" >&5
977 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
979 else
980 if test -n "$CC"; then
981 ac_cv_prog_CC="$CC" # Let the user override the test.
982 else
983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
984 ac_prog_rejected=no
985 ac_dummy="$PATH"
986 for ac_dir in $ac_dummy; do
987 test -z "$ac_dir" && ac_dir=.
988 if test -f $ac_dir/$ac_word; then
989 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
990 ac_prog_rejected=yes
991 continue
993 ac_cv_prog_CC="cc"
994 break
996 done
997 IFS="$ac_save_ifs"
998 if test $ac_prog_rejected = yes; then
999 # We found a bogon in the path, so make sure we never use it.
1000 set dummy $ac_cv_prog_CC
1001 shift
1002 if test $# -gt 0; then
1003 # We chose a different compiler from the bogus one.
1004 # However, it has the same basename, so the bogon will be chosen
1005 # first if we set CC to just the basename; use the full file name.
1006 shift
1007 set dummy "$ac_dir/$ac_word" "$@"
1008 shift
1009 ac_cv_prog_CC="$@"
1014 CC="$ac_cv_prog_CC"
1015 if test -n "$CC"; then
1016 echo "$ac_t""$CC" 1>&6
1017 else
1018 echo "$ac_t""no" 1>&6
1021 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1024 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1025 echo "configure:1026: checking whether we are using GNU C" >&5
1026 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1027 echo $ac_n "(cached) $ac_c" 1>&6
1028 else
1029 cat > conftest.c <<EOF
1030 #ifdef __GNUC__
1031 yes;
1032 #endif
1034 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1035 ac_cv_prog_gcc=yes
1036 else
1037 ac_cv_prog_gcc=no
1041 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1043 if test $ac_cv_prog_gcc = yes; then
1044 GCC=yes
1045 ac_test_CFLAGS="${CFLAGS+set}"
1046 ac_save_CFLAGS="$CFLAGS"
1047 CFLAGS=
1048 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1049 echo "configure:1050: checking whether ${CC-cc} accepts -g" >&5
1050 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1052 else
1053 echo 'void f(){}' > conftest.c
1054 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1055 ac_cv_prog_cc_g=yes
1056 else
1057 ac_cv_prog_cc_g=no
1059 rm -f conftest*
1063 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1064 if test "$ac_test_CFLAGS" = set; then
1065 CFLAGS="$ac_save_CFLAGS"
1066 elif test $ac_cv_prog_cc_g = yes; then
1067 CFLAGS="-g -O2"
1068 else
1069 CFLAGS="-O2"
1071 else
1072 GCC=
1073 test "${CFLAGS+set}" = set || CFLAGS="-g"
1077 # Likewise for AC_PROG_CXX. We can't just call it directly because g++
1078 # will try to link in libstdc++.
1082 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1083 # flags that come in CXX while configuring libstdc++. They're different
1084 # from those used for all other target libraries. If CXX is set in
1085 # the environment, respect that here.
1086 glibcpp_CXX=$CXX
1087 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1089 # Extract the first word of "$ac_prog", so it can be a program name with args.
1090 set dummy $ac_prog; ac_word=$2
1091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1092 echo "configure:1093: checking for $ac_word" >&5
1093 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1095 else
1096 if test -n "$glibcpp_CXX"; then
1097 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1098 else
1099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1100 ac_dummy="$PATH"
1101 for ac_dir in $ac_dummy; do
1102 test -z "$ac_dir" && ac_dir=.
1103 if test -f $ac_dir/$ac_word; then
1104 ac_cv_prog_glibcpp_CXX="$ac_prog"
1105 break
1107 done
1108 IFS="$ac_save_ifs"
1111 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1112 if test -n "$glibcpp_CXX"; then
1113 echo "$ac_t""$glibcpp_CXX" 1>&6
1114 else
1115 echo "$ac_t""no" 1>&6
1118 test -n "$glibcpp_CXX" && break
1119 done
1120 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1123 CXX=$glibcpp_CXX
1124 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1126 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1127 echo "configure:1128: checking whether we are using GNU C++" >&5
1128 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1130 else
1131 cat > conftest.C <<EOF
1132 #ifdef __GNUC__
1133 yes;
1134 #endif
1136 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1137 ac_cv_prog_gxx=yes
1138 else
1139 ac_cv_prog_gxx=no
1143 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1145 if test $ac_cv_prog_gxx = yes; then
1146 GXX=yes
1147 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1148 ac_save_CXXFLAGS="$CXXFLAGS"
1149 CXXFLAGS=
1150 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1151 echo "configure:1152: checking whether ${CXX-g++} accepts -g" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1154 else
1155 echo 'void f(){}' > conftest.cc
1156 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1157 ac_cv_prog_cxx_g=yes
1158 else
1159 ac_cv_prog_cxx_g=no
1161 rm -f conftest*
1165 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1166 if test "$ac_test_CXXFLAGS" = set; then
1167 CXXFLAGS="$ac_save_CXXFLAGS"
1168 elif test $ac_cv_prog_cxx_g = yes; then
1169 CXXFLAGS="-g -O2"
1170 else
1171 CXXFLAGS="-O2"
1173 else
1174 GXX=
1175 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1179 # For directory versioning (e.g., headers) and other variables.
1180 echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1181 echo "configure:1182: checking for GCC version number" >&5
1182 gcc_version=`$glibcpp_CXX -dumpversion`
1183 echo "$ac_t""$gcc_version" 1>&6
1185 # For some reason, gettext needs this.
1187 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1188 echo "configure:1189: checking for strerror in -lcposix" >&5
1189 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1190 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1192 else
1193 ac_save_LIBS="$LIBS"
1194 LIBS="-lcposix $LIBS"
1195 cat > conftest.$ac_ext <<EOF
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1198 /* Override any gcc2 internal prototype to avoid an error. */
1199 /* We use char because int might match the return type of a gcc2
1200 builtin and then its argument prototype would still apply. */
1201 char strerror();
1203 int main() {
1204 strerror()
1205 ; return 0; }
1207 if { (eval echo configure:1208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1208 rm -rf conftest*
1209 eval "ac_cv_lib_$ac_lib_var=yes"
1210 else
1211 echo "configure: failed program was:" >&5
1212 cat conftest.$ac_ext >&5
1213 rm -rf conftest*
1214 eval "ac_cv_lib_$ac_lib_var=no"
1216 rm -f conftest*
1217 LIBS="$ac_save_LIBS"
1220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1221 echo "$ac_t""yes" 1>&6
1222 LIBS="$LIBS -lcposix"
1223 else
1224 echo "$ac_t""no" 1>&6
1230 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1231 set dummy ${ac_tool_prefix}as; ac_word=$2
1232 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1233 echo "configure:1234: checking for $ac_word" >&5
1234 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1236 else
1237 if test -n "$AS"; then
1238 ac_cv_prog_AS="$AS" # Let the user override the test.
1239 else
1240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1241 ac_dummy="$PATH"
1242 for ac_dir in $ac_dummy; do
1243 test -z "$ac_dir" && ac_dir=.
1244 if test -f $ac_dir/$ac_word; then
1245 ac_cv_prog_AS="${ac_tool_prefix}as"
1246 break
1248 done
1249 IFS="$ac_save_ifs"
1250 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1253 AS="$ac_cv_prog_AS"
1254 if test -n "$AS"; then
1255 echo "$ac_t""$AS" 1>&6
1256 else
1257 echo "$ac_t""no" 1>&6
1262 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1263 set dummy ${ac_tool_prefix}ar; ac_word=$2
1264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1265 echo "configure:1266: checking for $ac_word" >&5
1266 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1268 else
1269 if test -n "$AR"; then
1270 ac_cv_prog_AR="$AR" # Let the user override the test.
1271 else
1272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1273 ac_dummy="$PATH"
1274 for ac_dir in $ac_dummy; do
1275 test -z "$ac_dir" && ac_dir=.
1276 if test -f $ac_dir/$ac_word; then
1277 ac_cv_prog_AR="${ac_tool_prefix}ar"
1278 break
1280 done
1281 IFS="$ac_save_ifs"
1282 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1285 AR="$ac_cv_prog_AR"
1286 if test -n "$AR"; then
1287 echo "$ac_t""$AR" 1>&6
1288 else
1289 echo "$ac_t""no" 1>&6
1294 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1295 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1297 echo "configure:1298: checking for $ac_word" >&5
1298 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1300 else
1301 if test -n "$RANLIB"; then
1302 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1303 else
1304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1305 ac_dummy="$PATH"
1306 for ac_dir in $ac_dummy; do
1307 test -z "$ac_dir" && ac_dir=.
1308 if test -f $ac_dir/$ac_word; then
1309 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1310 break
1312 done
1313 IFS="$ac_save_ifs"
1316 RANLIB="$ac_cv_prog_RANLIB"
1317 if test -n "$RANLIB"; then
1318 echo "$ac_t""$RANLIB" 1>&6
1319 else
1320 echo "$ac_t""no" 1>&6
1324 if test -z "$ac_cv_prog_RANLIB"; then
1325 if test -n "$ac_tool_prefix"; then
1326 # Extract the first word of "ranlib", so it can be a program name with args.
1327 set dummy ranlib; ac_word=$2
1328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1329 echo "configure:1330: checking for $ac_word" >&5
1330 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1332 else
1333 if test -n "$RANLIB"; then
1334 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1335 else
1336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1337 ac_dummy="$PATH"
1338 for ac_dir in $ac_dummy; do
1339 test -z "$ac_dir" && ac_dir=.
1340 if test -f $ac_dir/$ac_word; then
1341 ac_cv_prog_RANLIB="ranlib"
1342 break
1344 done
1345 IFS="$ac_save_ifs"
1346 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1349 RANLIB="$ac_cv_prog_RANLIB"
1350 if test -n "$RANLIB"; then
1351 echo "$ac_t""$RANLIB" 1>&6
1352 else
1353 echo "$ac_t""no" 1>&6
1356 else
1357 RANLIB="ranlib-not-found-in-path-error"
1361 # Find a good install program. We prefer a C program (faster),
1362 # so one script is as good as another. But avoid the broken or
1363 # incompatible versions:
1364 # SysV /etc/install, /usr/sbin/install
1365 # SunOS /usr/etc/install
1366 # IRIX /sbin/install
1367 # AIX /bin/install
1368 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1369 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1370 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1371 # ./install, which can be erroneously created by make from ./install.sh.
1372 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1373 echo "configure:1374: checking for a BSD compatible install" >&5
1374 if test -z "$INSTALL"; then
1375 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1377 else
1378 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1379 for ac_dir in $PATH; do
1380 # Account for people who put trailing slashes in PATH elements.
1381 case "$ac_dir/" in
1382 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1384 # OSF1 and SCO ODT 3.0 have their own names for install.
1385 # Don't use installbsd from OSF since it installs stuff as root
1386 # by default.
1387 for ac_prog in ginstall scoinst install; do
1388 if test -f $ac_dir/$ac_prog; then
1389 if test $ac_prog = install &&
1390 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1391 # AIX install. It has an incompatible calling convention.
1393 else
1394 ac_cv_path_install="$ac_dir/$ac_prog -c"
1395 break 2
1398 done
1400 esac
1401 done
1402 IFS="$ac_save_IFS"
1405 if test "${ac_cv_path_install+set}" = set; then
1406 INSTALL="$ac_cv_path_install"
1407 else
1408 # As a last resort, use the slow shell script. We don't cache a
1409 # path for INSTALL within a source directory, because that will
1410 # break other packages using the cache if that directory is
1411 # removed, or if the path is relative.
1412 INSTALL="$ac_install_sh"
1415 echo "$ac_t""$INSTALL" 1>&6
1417 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1418 # It thinks the first close brace ends the variable substitution.
1419 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1421 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1423 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1426 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1427 echo "configure:1428: checking whether to enable maintainer-specific portions of Makefiles" >&5
1428 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1429 if test "${enable_maintainer_mode+set}" = set; then
1430 enableval="$enable_maintainer_mode"
1431 USE_MAINTAINER_MODE=$enableval
1432 else
1433 USE_MAINTAINER_MODE=no
1436 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1439 if test $USE_MAINTAINER_MODE = yes; then
1440 MAINTAINER_MODE_TRUE=
1441 MAINTAINER_MODE_FALSE='#'
1442 else
1443 MAINTAINER_MODE_TRUE='#'
1444 MAINTAINER_MODE_FALSE=
1446 MAINT=$MAINTAINER_MODE_TRUE
1450 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1451 # at least currently, we never actually build a program, so we never
1452 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1453 # fails, because we are probably configuring with a cross compiler
1454 # which can't create executables. So we include AC_EXEEXT to keep
1455 # automake happy, but we don't execute it, since we don't care about
1456 # the result.
1457 if false; then
1458 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1459 # to nothing, so nothing would remain between `then' and `fi' if it
1460 # were not for the `:' below.
1464 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1465 echo "configure:1466: checking for executable suffix" >&5
1466 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1468 else
1469 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1470 ac_cv_exeext=.exe
1471 else
1472 rm -f conftest*
1473 echo 'int main () { return 0; }' > conftest.$ac_ext
1474 ac_cv_exeext=
1475 if { (eval echo configure:1476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1476 for file in conftest.*; do
1477 case $file in
1478 *.c | *.o | *.obj) ;;
1479 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1480 esac
1481 done
1482 else
1483 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1485 rm -f conftest*
1486 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1490 EXEEXT=""
1491 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1492 echo "$ac_t""${ac_cv_exeext}" 1>&6
1493 ac_exeext=$EXEEXT
1497 case ${glibcpp_basedir} in
1498 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1499 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1500 esac
1502 # Set up safe default values for all subsequent AM_CONDITIONAL tests.
1503 need_libmath=no
1504 enable_wchar_t=no
1505 #enable_debug=no
1506 #glibcpp_pch_comp=no
1507 #enable_cheaders=c
1508 #c_compatibility=no
1509 #enable_abi_check=no
1510 #enable_symvers=no
1512 # Find platform-specific directories containing configuration info. In
1513 # addition to possibly modifying the same flags, it also sets up symlinks.
1515 . ${glibcpp_basedir}/configure.host
1516 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1517 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1521 am__api_version="1.4"
1522 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1523 echo "configure:1524: checking whether build environment is sane" >&5
1524 # Just in case
1525 sleep 1
1526 echo timestamp > conftestfile
1527 # Do `set' in a subshell so we don't clobber the current shell's
1528 # arguments. Must try -L first in case configure is actually a
1529 # symlink; some systems play weird games with the mod time of symlinks
1530 # (eg FreeBSD returns the mod time of the symlink's containing
1531 # directory).
1532 if (
1533 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1534 if test "$*" = "X"; then
1535 # -L didn't work.
1536 set X `ls -t $srcdir/configure conftestfile`
1538 if test "$*" != "X $srcdir/configure conftestfile" \
1539 && test "$*" != "X conftestfile $srcdir/configure"; then
1541 # If neither matched, then we have a broken ls. This can happen
1542 # if, for instance, CONFIG_SHELL is bash and it inherits a
1543 # broken ls alias from the environment. This has actually
1544 # happened. Such a system could not be considered "sane".
1545 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1546 alias in your environment" 1>&2; exit 1; }
1549 test "$2" = conftestfile
1551 then
1552 # Ok.
1554 else
1555 { echo "configure: error: newly created file is older than distributed files!
1556 Check your system clock" 1>&2; exit 1; }
1558 rm -f conftest*
1559 echo "$ac_t""yes" 1>&6
1560 if test "$program_transform_name" = s,x,x,; then
1561 program_transform_name=
1562 else
1563 # Double any \ or $. echo might interpret backslashes.
1564 cat <<\EOF_SED > conftestsed
1565 s,\\,\\\\,g; s,\$,$$,g
1566 EOF_SED
1567 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1568 rm -f conftestsed
1570 test "$program_prefix" != NONE &&
1571 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1572 # Use a double $ so make ignores it.
1573 test "$program_suffix" != NONE &&
1574 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1576 # sed with no file args requires a program.
1577 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1579 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1580 echo "configure:1581: checking whether ${MAKE-make} sets \${MAKE}" >&5
1581 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1582 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1584 else
1585 cat > conftestmake <<\EOF
1586 all:
1587 @echo 'ac_maketemp="${MAKE}"'
1589 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1590 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1591 if test -n "$ac_maketemp"; then
1592 eval ac_cv_prog_make_${ac_make}_set=yes
1593 else
1594 eval ac_cv_prog_make_${ac_make}_set=no
1596 rm -f conftestmake
1598 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1599 echo "$ac_t""yes" 1>&6
1600 SET_MAKE=
1601 else
1602 echo "$ac_t""no" 1>&6
1603 SET_MAKE="MAKE=${MAKE-make}"
1607 PACKAGE=$PACKAGE
1609 VERSION=$gcc_version
1611 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1612 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1614 cat >> confdefs.h <<EOF
1615 #define PACKAGE "$PACKAGE"
1618 cat >> confdefs.h <<EOF
1619 #define VERSION "$VERSION"
1624 missing_dir=`cd $ac_aux_dir && pwd`
1625 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1626 echo "configure:1627: checking for working aclocal-${am__api_version}" >&5
1627 # Run test in a subshell; some versions of sh will print an error if
1628 # an executable is not found, even if stderr is redirected.
1629 # Redirect stdin to placate older versions of autoconf. Sigh.
1630 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1631 ACLOCAL=aclocal-${am__api_version}
1632 echo "$ac_t""found" 1>&6
1633 else
1634 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1635 echo "$ac_t""missing" 1>&6
1638 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1639 echo "configure:1640: checking for working autoconf" >&5
1640 # Run test in a subshell; some versions of sh will print an error if
1641 # an executable is not found, even if stderr is redirected.
1642 # Redirect stdin to placate older versions of autoconf. Sigh.
1643 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1644 AUTOCONF=autoconf
1645 echo "$ac_t""found" 1>&6
1646 else
1647 AUTOCONF="$missing_dir/missing autoconf"
1648 echo "$ac_t""missing" 1>&6
1651 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1652 echo "configure:1653: checking for working automake-${am__api_version}" >&5
1653 # Run test in a subshell; some versions of sh will print an error if
1654 # an executable is not found, even if stderr is redirected.
1655 # Redirect stdin to placate older versions of autoconf. Sigh.
1656 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1657 AUTOMAKE=automake-${am__api_version}
1658 echo "$ac_t""found" 1>&6
1659 else
1660 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1661 echo "$ac_t""missing" 1>&6
1664 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1665 echo "configure:1666: checking for working autoheader" >&5
1666 # Run test in a subshell; some versions of sh will print an error if
1667 # an executable is not found, even if stderr is redirected.
1668 # Redirect stdin to placate older versions of autoconf. Sigh.
1669 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1670 AUTOHEADER=autoheader
1671 echo "$ac_t""found" 1>&6
1672 else
1673 AUTOHEADER="$missing_dir/missing autoheader"
1674 echo "$ac_t""missing" 1>&6
1677 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1678 echo "configure:1679: checking for working makeinfo" >&5
1679 # Run test in a subshell; some versions of sh will print an error if
1680 # an executable is not found, even if stderr is redirected.
1681 # Redirect stdin to placate older versions of autoconf. Sigh.
1682 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1683 MAKEINFO=makeinfo
1684 echo "$ac_t""found" 1>&6
1685 else
1686 MAKEINFO="$missing_dir/missing makeinfo"
1687 echo "$ac_t""missing" 1>&6
1696 # Check whether --enable-shared or --disable-shared was given.
1697 if test "${enable_shared+set}" = set; then
1698 enableval="$enable_shared"
1699 p=${PACKAGE-default}
1700 case $enableval in
1701 yes) enable_shared=yes ;;
1702 no) enable_shared=no ;;
1704 enable_shared=no
1705 # Look at the argument we got. We use all the common list separators.
1706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1707 for pkg in $enableval; do
1708 if test "X$pkg" = "X$p"; then
1709 enable_shared=yes
1711 done
1712 IFS="$ac_save_ifs"
1714 esac
1715 else
1716 enable_shared=yes
1719 # Check whether --enable-static or --disable-static was given.
1720 if test "${enable_static+set}" = set; then
1721 enableval="$enable_static"
1722 p=${PACKAGE-default}
1723 case $enableval in
1724 yes) enable_static=yes ;;
1725 no) enable_static=no ;;
1727 enable_static=no
1728 # Look at the argument we got. We use all the common list separators.
1729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1730 for pkg in $enableval; do
1731 if test "X$pkg" = "X$p"; then
1732 enable_static=yes
1734 done
1735 IFS="$ac_save_ifs"
1737 esac
1738 else
1739 enable_static=yes
1742 # Check whether --enable-fast-install or --disable-fast-install was given.
1743 if test "${enable_fast_install+set}" = set; then
1744 enableval="$enable_fast_install"
1745 p=${PACKAGE-default}
1746 case $enableval in
1747 yes) enable_fast_install=yes ;;
1748 no) enable_fast_install=no ;;
1750 enable_fast_install=no
1751 # Look at the argument we got. We use all the common list separators.
1752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1753 for pkg in $enableval; do
1754 if test "X$pkg" = "X$p"; then
1755 enable_fast_install=yes
1757 done
1758 IFS="$ac_save_ifs"
1760 esac
1761 else
1762 enable_fast_install=yes
1765 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1766 if test "${with_gnu_ld+set}" = set; then
1767 withval="$with_gnu_ld"
1768 test "$withval" = no || with_gnu_ld=yes
1769 else
1770 with_gnu_ld=no
1773 ac_prog=ld
1774 if test "$GCC" = yes; then
1775 # Check if gcc -print-prog-name=ld gives a path.
1776 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1777 echo "configure:1778: checking for ld used by GCC" >&5
1778 case $host in
1779 *-*-mingw*)
1780 # gcc leaves a trailing carriage return which upsets mingw
1781 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1783 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1784 esac
1785 case $ac_prog in
1786 # Accept absolute paths.
1787 [\\/]* | [A-Za-z]:[\\/]*)
1788 re_direlt='/[^/][^/]*/\.\./'
1789 # Canonicalize the path of ld
1790 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1791 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1792 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1793 done
1794 test -z "$LD" && LD="$ac_prog"
1797 # If it fails, then pretend we aren't using GCC.
1798 ac_prog=ld
1801 # If it is relative, then search for the first ld in PATH.
1802 with_gnu_ld=unknown
1804 esac
1805 elif test "$with_gnu_ld" = yes; then
1806 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1807 echo "configure:1808: checking for GNU ld" >&5
1808 else
1809 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1810 echo "configure:1811: checking for non-GNU ld" >&5
1812 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1814 else
1815 if test -z "$LD"; then
1816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1817 for ac_dir in $PATH; do
1818 test -z "$ac_dir" && ac_dir=.
1819 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1820 lt_cv_path_LD="$ac_dir/$ac_prog"
1821 # Check to see if the program is GNU ld. I'd rather use --version,
1822 # but apparently some GNU ld's only accept -v.
1823 # Break only if it was the GNU/non-GNU ld that we prefer.
1824 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1825 test "$with_gnu_ld" != no && break
1826 else
1827 test "$with_gnu_ld" != yes && break
1830 done
1831 IFS="$ac_save_ifs"
1832 else
1833 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1837 LD="$lt_cv_path_LD"
1838 if test -n "$LD"; then
1839 echo "$ac_t""$LD" 1>&6
1840 else
1841 echo "$ac_t""no" 1>&6
1843 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1844 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1845 echo "configure:1846: checking if the linker ($LD) is GNU ld" >&5
1846 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1848 else
1849 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1850 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1851 lt_cv_prog_gnu_ld=yes
1852 else
1853 lt_cv_prog_gnu_ld=no
1857 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1858 with_gnu_ld=$lt_cv_prog_gnu_ld
1861 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1862 echo "configure:1863: checking for $LD option to reload object files" >&5
1863 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1865 else
1866 lt_cv_ld_reload_flag='-r'
1869 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1870 reload_flag=$lt_cv_ld_reload_flag
1871 test -n "$reload_flag" && reload_flag=" $reload_flag"
1873 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1874 echo "configure:1875: checking for BSD-compatible nm" >&5
1875 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1876 echo $ac_n "(cached) $ac_c" 1>&6
1877 else
1878 if test -n "$NM"; then
1879 # Let the user override the test.
1880 lt_cv_path_NM="$NM"
1881 else
1882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1883 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1884 test -z "$ac_dir" && ac_dir=.
1885 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1886 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1887 # Check to see if the nm accepts a BSD-compat flag.
1888 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1889 # nm: unknown option "B" ignored
1890 # Tru64's nm complains that /dev/null is an invalid object file
1891 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1892 lt_cv_path_NM="$tmp_nm -B"
1893 break
1894 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1895 lt_cv_path_NM="$tmp_nm -p"
1896 break
1897 else
1898 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1899 continue # so that we can try to find one that supports BSD flags
1902 done
1903 IFS="$ac_save_ifs"
1904 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1908 NM="$lt_cv_path_NM"
1909 echo "$ac_t""$NM" 1>&6
1911 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1912 echo "configure:1913: checking how to recognise dependant libraries" >&5
1913 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1915 else
1916 lt_cv_file_magic_cmd='$MAGIC_CMD'
1917 lt_cv_file_magic_test_file=
1918 lt_cv_deplibs_check_method='unknown'
1919 # Need to set the preceding variable on all platforms that support
1920 # interlibrary dependencies.
1921 # 'none' -- dependencies not supported.
1922 # `unknown' -- same as none, but documents that we really don't know.
1923 # 'pass_all' -- all dependencies passed with no checks.
1924 # 'test_compile' -- check by making test program.
1925 # 'file_magic [regex]' -- check by looking for files in library path
1926 # which responds to the $file_magic_cmd with a given egrep regex.
1927 # If you have `file' or equivalent on your system and you're not sure
1928 # whether `pass_all' will *always* work, you probably want this one.
1930 case $host_os in
1931 aix*)
1932 lt_cv_deplibs_check_method=pass_all
1935 beos*)
1936 lt_cv_deplibs_check_method=pass_all
1939 bsdi4*)
1940 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1941 lt_cv_file_magic_cmd='/usr/bin/file -L'
1942 lt_cv_file_magic_test_file=/shlib/libc.so
1945 cygwin* | mingw* |pw32*)
1946 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1947 lt_cv_file_magic_cmd='$OBJDUMP -f'
1950 darwin* | rhapsody*)
1951 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1952 lt_cv_file_magic_cmd='/usr/bin/file -L'
1953 case "$host_os" in
1954 rhapsody* | darwin1.012)
1955 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1957 *) # Darwin 1.3 on
1958 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1960 esac
1963 freebsd* )
1964 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1965 case $host_cpu in
1966 i*86 )
1967 # Not sure whether the presence of OpenBSD here was a mistake.
1968 # Let's accept both of them until this is cleared up.
1969 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1970 lt_cv_file_magic_cmd=/usr/bin/file
1971 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1973 esac
1974 else
1975 lt_cv_deplibs_check_method=pass_all
1979 gnu*)
1980 lt_cv_deplibs_check_method=pass_all
1983 hpux10.20*|hpux11*)
1984 case $host_cpu in
1985 hppa*)
1986 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1987 lt_cv_file_magic_cmd=/usr/bin/file
1988 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1990 ia64*)
1991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1992 lt_cv_file_magic_cmd=/usr/bin/file
1993 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1995 esac
1998 irix5* | irix6*)
1999 case $host_os in
2000 irix5*)
2001 # this will be overridden with pass_all, but let us keep it just in case
2002 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2005 case $LD in
2006 *-32|*"-32 ") libmagic=32-bit;;
2007 *-n32|*"-n32 ") libmagic=N32;;
2008 *-64|*"-64 ") libmagic=64-bit;;
2009 *) libmagic=never-match;;
2010 esac
2011 # this will be overridden with pass_all, but let us keep it just in case
2012 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2014 esac
2015 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2016 lt_cv_deplibs_check_method=pass_all
2019 # This must be Linux ELF.
2020 linux-gnu*)
2021 case $host_cpu in
2022 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2023 lt_cv_deplibs_check_method=pass_all ;;
2025 # glibc up to 2.1.1 does not perform some relocations on ARM
2026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2027 esac
2028 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2031 netbsd*)
2032 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2033 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2034 else
2035 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2039 newsos6)
2040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2041 lt_cv_file_magic_cmd=/usr/bin/file
2042 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2045 osf3* | osf4* | osf5*)
2046 # this will be overridden with pass_all, but let us keep it just in case
2047 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2048 lt_cv_file_magic_test_file=/shlib/libc.so
2049 lt_cv_deplibs_check_method=pass_all
2052 sco3.2v5*)
2053 lt_cv_deplibs_check_method=pass_all
2056 solaris*)
2057 lt_cv_deplibs_check_method=pass_all
2058 lt_cv_file_magic_test_file=/lib/libc.so
2061 sysv5uw[78]* | sysv4*uw2*)
2062 lt_cv_deplibs_check_method=pass_all
2065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2066 case $host_vendor in
2067 ncr)
2068 lt_cv_deplibs_check_method=pass_all
2070 motorola)
2071 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]'
2072 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2074 esac
2076 esac
2080 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2081 file_magic_cmd=$lt_cv_file_magic_cmd
2082 deplibs_check_method=$lt_cv_deplibs_check_method
2084 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2085 echo "configure:2086: checking for object suffix" >&5
2086 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2087 echo $ac_n "(cached) $ac_c" 1>&6
2088 else
2089 rm -f conftest*
2090 echo 'int i = 1;' > conftest.$ac_ext
2091 if { (eval echo configure:2092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2092 for ac_file in conftest.*; do
2093 case $ac_file in
2094 *.c) ;;
2095 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2096 esac
2097 done
2098 else
2099 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2101 rm -f conftest*
2104 echo "$ac_t""$ac_cv_objext" 1>&6
2105 OBJEXT=$ac_cv_objext
2106 ac_objext=$ac_cv_objext
2108 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2110 # Only perform the check for file, if the check method requires it
2111 case $deplibs_check_method in
2112 file_magic*)
2113 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2114 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2115 echo "configure:2116: checking for ${ac_tool_prefix}file" >&5
2116 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2118 else
2119 case $MAGIC_CMD in
2121 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2123 ?:/*)
2124 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2127 ac_save_MAGIC_CMD="$MAGIC_CMD"
2128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2129 ac_dummy="/usr/bin:$PATH"
2130 for ac_dir in $ac_dummy; do
2131 test -z "$ac_dir" && ac_dir=.
2132 if test -f $ac_dir/${ac_tool_prefix}file; then
2133 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2134 if test -n "$file_magic_test_file"; then
2135 case $deplibs_check_method in
2136 "file_magic "*)
2137 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2138 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2139 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2140 egrep "$file_magic_regex" > /dev/null; then
2142 else
2143 cat <<EOF 1>&2
2145 *** Warning: the command libtool uses to detect shared libraries,
2146 *** $file_magic_cmd, produces output that libtool cannot recognize.
2147 *** The result is that libtool may fail to recognize shared libraries
2148 *** as such. This will affect the creation of libtool libraries that
2149 *** depend on shared libraries, but programs linked with such libtool
2150 *** libraries will work regardless of this problem. Nevertheless, you
2151 *** may want to report the problem to your system manager and/or to
2152 *** bug-libtool@gnu.org
2155 fi ;;
2156 esac
2158 break
2160 done
2161 IFS="$ac_save_ifs"
2162 MAGIC_CMD="$ac_save_MAGIC_CMD"
2164 esac
2167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2168 if test -n "$MAGIC_CMD"; then
2169 echo "$ac_t""$MAGIC_CMD" 1>&6
2170 else
2171 echo "$ac_t""no" 1>&6
2174 if test -z "$lt_cv_path_MAGIC_CMD"; then
2175 if test -n "$ac_tool_prefix"; then
2176 echo $ac_n "checking for file""... $ac_c" 1>&6
2177 echo "configure:2178: checking for file" >&5
2178 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2180 else
2181 case $MAGIC_CMD in
2183 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2185 ?:/*)
2186 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2189 ac_save_MAGIC_CMD="$MAGIC_CMD"
2190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2191 ac_dummy="/usr/bin:$PATH"
2192 for ac_dir in $ac_dummy; do
2193 test -z "$ac_dir" && ac_dir=.
2194 if test -f $ac_dir/file; then
2195 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2196 if test -n "$file_magic_test_file"; then
2197 case $deplibs_check_method in
2198 "file_magic "*)
2199 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2200 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2201 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2202 egrep "$file_magic_regex" > /dev/null; then
2204 else
2205 cat <<EOF 1>&2
2207 *** Warning: the command libtool uses to detect shared libraries,
2208 *** $file_magic_cmd, produces output that libtool cannot recognize.
2209 *** The result is that libtool may fail to recognize shared libraries
2210 *** as such. This will affect the creation of libtool libraries that
2211 *** depend on shared libraries, but programs linked with such libtool
2212 *** libraries will work regardless of this problem. Nevertheless, you
2213 *** may want to report the problem to your system manager and/or to
2214 *** bug-libtool@gnu.org
2217 fi ;;
2218 esac
2220 break
2222 done
2223 IFS="$ac_save_ifs"
2224 MAGIC_CMD="$ac_save_MAGIC_CMD"
2226 esac
2229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2230 if test -n "$MAGIC_CMD"; then
2231 echo "$ac_t""$MAGIC_CMD" 1>&6
2232 else
2233 echo "$ac_t""no" 1>&6
2236 else
2237 MAGIC_CMD=:
2243 esac
2245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2246 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2247 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2248 echo "configure:2249: checking for $ac_word" >&5
2249 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2250 echo $ac_n "(cached) $ac_c" 1>&6
2251 else
2252 if test -n "$RANLIB"; then
2253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2254 else
2255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2256 ac_dummy="$PATH"
2257 for ac_dir in $ac_dummy; do
2258 test -z "$ac_dir" && ac_dir=.
2259 if test -f $ac_dir/$ac_word; then
2260 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2261 break
2263 done
2264 IFS="$ac_save_ifs"
2267 RANLIB="$ac_cv_prog_RANLIB"
2268 if test -n "$RANLIB"; then
2269 echo "$ac_t""$RANLIB" 1>&6
2270 else
2271 echo "$ac_t""no" 1>&6
2275 if test -z "$ac_cv_prog_RANLIB"; then
2276 if test -n "$ac_tool_prefix"; then
2277 # Extract the first word of "ranlib", so it can be a program name with args.
2278 set dummy ranlib; ac_word=$2
2279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2280 echo "configure:2281: checking for $ac_word" >&5
2281 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2283 else
2284 if test -n "$RANLIB"; then
2285 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2286 else
2287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2288 ac_dummy="$PATH"
2289 for ac_dir in $ac_dummy; do
2290 test -z "$ac_dir" && ac_dir=.
2291 if test -f $ac_dir/$ac_word; then
2292 ac_cv_prog_RANLIB="ranlib"
2293 break
2295 done
2296 IFS="$ac_save_ifs"
2297 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2300 RANLIB="$ac_cv_prog_RANLIB"
2301 if test -n "$RANLIB"; then
2302 echo "$ac_t""$RANLIB" 1>&6
2303 else
2304 echo "$ac_t""no" 1>&6
2307 else
2308 RANLIB=":"
2312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2313 set dummy ${ac_tool_prefix}strip; ac_word=$2
2314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2315 echo "configure:2316: checking for $ac_word" >&5
2316 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2318 else
2319 if test -n "$STRIP"; then
2320 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2321 else
2322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2323 ac_dummy="$PATH"
2324 for ac_dir in $ac_dummy; do
2325 test -z "$ac_dir" && ac_dir=.
2326 if test -f $ac_dir/$ac_word; then
2327 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2328 break
2330 done
2331 IFS="$ac_save_ifs"
2334 STRIP="$ac_cv_prog_STRIP"
2335 if test -n "$STRIP"; then
2336 echo "$ac_t""$STRIP" 1>&6
2337 else
2338 echo "$ac_t""no" 1>&6
2342 if test -z "$ac_cv_prog_STRIP"; then
2343 if test -n "$ac_tool_prefix"; then
2344 # Extract the first word of "strip", so it can be a program name with args.
2345 set dummy strip; ac_word=$2
2346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2347 echo "configure:2348: checking for $ac_word" >&5
2348 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2349 echo $ac_n "(cached) $ac_c" 1>&6
2350 else
2351 if test -n "$STRIP"; then
2352 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2353 else
2354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2355 ac_dummy="$PATH"
2356 for ac_dir in $ac_dummy; do
2357 test -z "$ac_dir" && ac_dir=.
2358 if test -f $ac_dir/$ac_word; then
2359 ac_cv_prog_STRIP="strip"
2360 break
2362 done
2363 IFS="$ac_save_ifs"
2364 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2367 STRIP="$ac_cv_prog_STRIP"
2368 if test -n "$STRIP"; then
2369 echo "$ac_t""$STRIP" 1>&6
2370 else
2371 echo "$ac_t""no" 1>&6
2374 else
2375 STRIP=":"
2380 # Check for any special flags to pass to ltconfig.
2381 libtool_flags="--cache-file=$cache_file"
2382 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2383 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2384 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2385 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2386 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2387 libtool_flags="$libtool_flags --enable-dlopen"
2389 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2390 if test "${enable_libtool_lock+set}" = set; then
2391 enableval="$enable_libtool_lock"
2395 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2396 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2398 # Check whether --with-pic or --without-pic was given.
2399 if test "${with_pic+set}" = set; then
2400 withval="$with_pic"
2401 pic_mode="$withval"
2402 else
2403 pic_mode=default
2406 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2407 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2409 # Some flags need to be propagated to the compiler or linker for good
2410 # libtool support.
2411 case $host in
2412 *-*-irix6*)
2413 # Find out which ABI we are using.
2414 echo '#line 2415 "configure"' > conftest.$ac_ext
2415 if { (eval echo configure:2416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2416 if test "$lt_cv_prog_gnu_ld" = yes; then
2417 case `/usr/bin/file conftest.$ac_objext` in
2418 *32-bit*)
2419 LD="${LD-ld} -melf32bsmip"
2421 *N32*)
2422 LD="${LD-ld} -melf32bmipn32"
2424 *64-bit*)
2425 LD="${LD-ld} -melf64bmip"
2427 esac
2428 else
2429 case `/usr/bin/file conftest.$ac_objext` in
2430 *32-bit*)
2431 LD="${LD-ld} -32"
2433 *N32*)
2434 LD="${LD-ld} -n32"
2436 *64-bit*)
2437 LD="${LD-ld} -64"
2439 esac
2442 rm -rf conftest*
2445 ia64-*-hpux*)
2446 # Find out which ABI we are using.
2447 echo 'int i;' > conftest.$ac_ext
2448 if { (eval echo configure:2449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2449 case "`/usr/bin/file conftest.o`" in
2450 *ELF-32*)
2451 HPUX_IA64_MODE="32"
2453 *ELF-64*)
2454 HPUX_IA64_MODE="64"
2456 esac
2458 rm -rf conftest*
2461 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2462 # Find out which ABI we are using.
2463 echo 'int i;' > conftest.$ac_ext
2464 if { (eval echo configure:2465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2465 case "`/usr/bin/file conftest.o`" in
2466 *32-bit*)
2467 case $host in
2468 x86_64-*linux*)
2469 LD="${LD-ld} -m elf_i386"
2471 ppc64-*linux*)
2472 LD="${LD-ld} -m elf32ppclinux"
2474 s390x-*linux*)
2475 LD="${LD-ld} -m elf_s390"
2477 sparc64-*linux*)
2478 LD="${LD-ld} -m elf32_sparc"
2480 esac
2482 *64-bit*)
2483 case $host in
2484 x86_64-*linux*)
2485 LD="${LD-ld} -m elf_x86_64"
2487 ppc*-*linux*|powerpc*-*linux*)
2488 LD="${LD-ld} -m elf64ppc"
2490 s390*-*linux*)
2491 LD="${LD-ld} -m elf64_s390"
2493 sparc*-*linux*)
2494 LD="${LD-ld} -m elf64_sparc"
2496 esac
2498 esac
2500 rm -rf conftest*
2503 *-*-sco3.2v5*)
2504 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2505 SAVE_CFLAGS="$CFLAGS"
2506 CFLAGS="$CFLAGS -belf"
2507 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2508 echo "configure:2509: checking whether the C compiler needs -belf" >&5
2509 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2511 else
2513 ac_ext=c
2514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2517 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2518 cross_compiling=$ac_cv_prog_cc_cross
2520 cat > conftest.$ac_ext <<EOF
2521 #line 2522 "configure"
2522 #include "confdefs.h"
2524 int main() {
2526 ; return 0; }
2528 if { (eval echo configure:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2529 rm -rf conftest*
2530 lt_cv_cc_needs_belf=yes
2531 else
2532 echo "configure: failed program was:" >&5
2533 cat conftest.$ac_ext >&5
2534 rm -rf conftest*
2535 lt_cv_cc_needs_belf=no
2537 rm -f conftest*
2538 ac_ext=c
2539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2540 ac_cpp='$CPP $CPPFLAGS'
2541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2543 cross_compiling=$ac_cv_prog_cc_cross
2547 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2548 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2549 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2550 CFLAGS="$SAVE_CFLAGS"
2555 esac
2557 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2558 echo "configure:2559: checking how to run the C++ preprocessor" >&5
2559 if test -z "$CXXCPP"; then
2560 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6
2562 else
2563 ac_ext=C
2564 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2565 ac_cpp='$CXXCPP $CPPFLAGS'
2566 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2567 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2568 cross_compiling=$ac_cv_prog_cxx_cross
2569 CXXCPP="${CXX-g++} -E"
2570 cat > conftest.$ac_ext <<EOF
2571 #line 2572 "configure"
2572 #include "confdefs.h"
2573 #include <stdlib.h>
2575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2576 { (eval echo configure:2577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2578 if test -z "$ac_err"; then
2580 else
2581 echo "$ac_err" >&5
2582 echo "configure: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2584 rm -rf conftest*
2585 CXXCPP=/lib/cpp
2587 rm -f conftest*
2588 ac_cv_prog_CXXCPP="$CXXCPP"
2589 ac_ext=c
2590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2591 ac_cpp='$CPP $CPPFLAGS'
2592 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2593 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2594 cross_compiling=$ac_cv_prog_cc_cross
2597 CXXCPP="$ac_cv_prog_CXXCPP"
2598 echo "$ac_t""$CXXCPP" 1>&6
2601 # Save cache, so that ltconfig can load it
2602 cat > confcache <<\EOF
2603 # This file is a shell script that caches the results of configure
2604 # tests run on this system so they can be shared between configure
2605 # scripts and configure runs. It is not useful on other systems.
2606 # If it contains results you don't want to keep, you may remove or edit it.
2608 # By default, configure uses ./config.cache as the cache file,
2609 # creating it if it does not exist already. You can give configure
2610 # the --cache-file=FILE option to use a different cache file; that is
2611 # what configure does when it calls configure scripts in
2612 # subdirectories, so they share the cache.
2613 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2614 # config.status only pays attention to the cache file if you give it the
2615 # --recheck option to rerun configure.
2618 # The following way of writing the cache mishandles newlines in values,
2619 # but we know of no workaround that is simple, portable, and efficient.
2620 # So, don't put newlines in cache variables' values.
2621 # Ultrix sh set writes to stderr and can't be redirected directly,
2622 # and sets the high bit in the cache file unless we assign to the vars.
2623 (set) 2>&1 |
2624 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2625 *ac_space=\ *)
2626 # `set' does not quote correctly, so add quotes (double-quote substitution
2627 # turns \\\\ into \\, and sed turns \\ into \).
2628 sed -n \
2629 -e "s/'/'\\\\''/g" \
2630 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2633 # `set' quotes correctly as required by POSIX, so do not add quotes.
2634 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2636 esac >> confcache
2637 if cmp -s $cache_file confcache; then
2639 else
2640 if test -w $cache_file; then
2641 echo "updating cache $cache_file"
2642 cat confcache > $cache_file
2643 else
2644 echo "not updating unwritable cache $cache_file"
2647 rm -f confcache
2650 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2651 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2652 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2653 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2654 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2655 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2656 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2657 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2658 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2659 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2661 # Reload cache, that may have been modified by ltconfig
2662 if test -r "$cache_file"; then
2663 echo "loading cache $cache_file"
2664 . $cache_file
2665 else
2666 echo "creating cache $cache_file"
2667 > $cache_file
2671 # This can be used to rebuild libtool when needed
2672 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2674 # Always use our own libtool.
2675 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2677 # Redirect the config.log output again, so that the ltconfig log is not
2678 # clobbered by the next message.
2679 exec 5>>./config.log
2683 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2684 lt_save_CC="$CC"
2685 lt_save_CFLAGS="$CFLAGS"
2686 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2687 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2688 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2689 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2690 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2691 deplibs_check_method="$deplibs_check_method" \
2692 file_magic_cmd="$file_magic_cmd" \
2693 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2694 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2695 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2696 CC="$lt_save_CC"
2697 CFLAGS="$lt_save_CFLAGS"
2699 # Redirect the config.log output again, so that the ltconfig log is not
2700 # clobbered by the next message.
2701 exec 5>>./config.log
2711 # Check for support bits and g++ features that don't require linking.
2712 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2713 echo "configure:2714: checking for GNU make" >&5
2714 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2715 echo $ac_n "(cached) $ac_c" 1>&6
2716 else
2717 _cv_gnu_make_command='' ;
2718 for a in "${MAKE-make}" make gmake gnumake ; do
2719 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2720 then
2721 _cv_gnu_make_command=$a ;
2722 break;
2724 done ;
2728 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2729 if test "x$_cv_gnu_make_command" != "x" ; then
2730 ifGNUmake='' ;
2731 else
2732 ifGNUmake='#' ;
2736 #GLIBCPP_CHECK_COMPILER_VERSION
2738 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2739 echo "configure:2740: checking for exception model to use" >&5
2741 ac_ext=C
2742 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2743 ac_cpp='$CXXCPP $CPPFLAGS'
2744 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2745 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2746 cross_compiling=$ac_cv_prog_cxx_cross
2748 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2749 if test "${enable_sjlj_exceptions+set}" = set; then
2750 enableval="$enable_sjlj_exceptions"
2752 else
2753 cat > conftest.$ac_ext << EOF
2754 #line 2755 "configure"
2755 struct S { ~S(); };
2756 void bar();
2757 void foo()
2759 S s;
2760 bar();
2763 old_CXXFLAGS="$CXXFLAGS"
2764 CXXFLAGS=-S
2765 if { (eval echo configure:2766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2766 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2767 enable_sjlj_exceptions=yes
2768 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2769 enable_sjlj_exceptions=no
2772 CXXFLAGS="$old_CXXFLAGS"
2773 rm -f conftest*
2776 if test x$enable_sjlj_exceptions = xyes; then
2777 cat >> confdefs.h <<\EOF
2778 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
2781 ac_exception_model_name=sjlj
2782 elif test x$enable_sjlj_exceptions = xno; then
2783 ac_exception_model_name="call frame"
2784 else
2785 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2787 ac_ext=c
2788 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2789 ac_cpp='$CPP $CPPFLAGS'
2790 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2791 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2792 cross_compiling=$ac_cv_prog_cc_cross
2794 echo "$ac_t""$ac_exception_model_name" 1>&6
2797 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
2798 echo "configure:2799: checking for use of libunwind" >&5
2799 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
2800 if test "${enable_libunwind_exceptions+set}" = set; then
2801 enableval="$enable_libunwind_exceptions"
2802 use_libunwind_exceptions=$enableval
2803 else
2804 use_libunwind_exceptions=no
2807 echo "$ac_t""$use_libunwind_exceptions" 1>&6
2808 if test x"$use_libunwind_exceptions" = xyes; then
2809 LIBUNWIND_FLAG="-lunwind"
2810 else
2811 LIBUNWIND_FLAG=""
2815 # Check whether --enable-pch or --disable-pch was given.
2816 if test "${enable_pch+set}" = set; then
2817 enableval="$enable_pch"
2818 case "${enableval}" in
2819 yes) enable_pch=yes ;;
2820 no) enable_pch=no ;;
2821 *) { echo "configure: error: Unknown argument to enable/disable PCH" 1>&2; exit 1; } ;;
2822 esac
2823 else
2824 enable_pch=yes
2827 if test x$enable_pch = xyes; then
2828 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2829 ac_save_CXXFLAGS="$CXXFLAGS"
2830 CXXFLAGS='-Werror -Winvalid-pch -Wno-deprecated -x c++-header'
2832 echo $ac_n "checking for compiler that seems to compile .gch files""... $ac_c" 1>&6
2833 echo "configure:2834: checking for compiler that seems to compile .gch files" >&5
2834 if test x${glibcpp_pch_comp+set} != xset; then
2835 if eval "test \"`echo '$''{'glibcpp_pch_comp'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2837 else
2840 ac_ext=C
2841 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2842 ac_cpp='$CXXCPP $CPPFLAGS'
2843 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2844 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2845 cross_compiling=$ac_cv_prog_cxx_cross
2847 cat > conftest.$ac_ext <<EOF
2848 #line 2849 "configure"
2849 #include "confdefs.h"
2850 #include <math.h>
2852 int main() {
2853 yes(0);
2854 ; return 0; }
2856 if { (eval echo configure:2857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2857 rm -rf conftest*
2858 glibcpp_pch_comp=yes
2859 else
2860 echo "configure: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2862 rm -rf conftest*
2863 glibcpp_pch_comp=no
2865 rm -f conftest*
2866 ac_ext=c
2867 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2868 ac_cpp='$CPP $CPPFLAGS'
2869 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2870 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2871 cross_compiling=$ac_cv_prog_cc_cross
2877 echo "$ac_t""$glibcpp_pch_comp" 1>&6
2879 CXXFLAGS="$ac_save_CXXFLAGS"
2882 if test x"$enable_pch" = xyes && test x"$glibcpp_pch_comp" = xno; then
2883 enable_pch=no
2886 echo $ac_n "checking for enabled PCH""... $ac_c" 1>&6
2887 echo "configure:2888: checking for enabled PCH" >&5
2888 echo "$ac_t""$enable_pch" 1>&6
2892 if test "$enable_pch" = yes; then
2893 GLIBCPP_BUILD_PCH_TRUE=
2894 GLIBCPP_BUILD_PCH_FALSE='#'
2895 else
2896 GLIBCPP_BUILD_PCH_TRUE='#'
2897 GLIBCPP_BUILD_PCH_FALSE=
2899 if test "$enable_pch" = yes; then
2900 glibcpp_PCHFLAGS="-include bits/stdc++.h"
2901 else
2902 glibcpp_PCHFLAGS=""
2907 # Enable all the variable C++ runtime options.
2908 # NB: C_MBCHAR must come early.
2910 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2911 echo "configure:2912: checking for cstdio to use" >&5
2912 # Check whether --enable-cstdio or --disable-cstdio was given.
2913 if test "${enable_cstdio+set}" = set; then
2914 enableval="$enable_cstdio"
2915 if test x$enable_cstdio = xno; then
2916 enable_cstdio=stdio
2918 else
2919 enable_cstdio=stdio
2923 enable_cstdio_flag=$enable_cstdio
2925 case x${enable_cstdio_flag} in
2926 xstdio | x | xno | xnone | xyes)
2927 # default
2928 CSTDIO_H=config/io/c_io_stdio.h
2929 BASIC_FILE_H=config/io/basic_file_stdio.h
2930 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2931 echo "$ac_t""stdio" 1>&6
2934 echo "$enable_cstdio is an unknown io package" 1>&2
2935 exit 1
2937 esac
2942 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2943 echo "configure:2944: checking how to run the C preprocessor" >&5
2944 # On Suns, sometimes $CPP names a directory.
2945 if test -n "$CPP" && test -d "$CPP"; then
2946 CPP=
2948 if test -z "$CPP"; then
2949 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2951 else
2952 # This must be in double quotes, not single quotes, because CPP may get
2953 # substituted into the Makefile and "${CC-cc}" will confuse make.
2954 CPP="${CC-cc} -E"
2955 # On the NeXT, cc -E runs the code through the compiler's parser,
2956 # not just through cpp.
2957 cat > conftest.$ac_ext <<EOF
2958 #line 2959 "configure"
2959 #include "confdefs.h"
2960 #include <assert.h>
2961 Syntax Error
2963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2964 { (eval echo configure:2965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2966 if test -z "$ac_err"; then
2968 else
2969 echo "$ac_err" >&5
2970 echo "configure: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2972 rm -rf conftest*
2973 CPP="${CC-cc} -E -traditional-cpp"
2974 cat > conftest.$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2977 #include <assert.h>
2978 Syntax Error
2980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2981 { (eval echo configure:2982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2983 if test -z "$ac_err"; then
2985 else
2986 echo "$ac_err" >&5
2987 echo "configure: failed program was:" >&5
2988 cat conftest.$ac_ext >&5
2989 rm -rf conftest*
2990 CPP="${CC-cc} -nologo -E"
2991 cat > conftest.$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2994 #include <assert.h>
2995 Syntax Error
2997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2998 { (eval echo configure:2999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3000 if test -z "$ac_err"; then
3002 else
3003 echo "$ac_err" >&5
3004 echo "configure: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3006 rm -rf conftest*
3007 CPP=/lib/cpp
3009 rm -f conftest*
3011 rm -f conftest*
3013 rm -f conftest*
3014 ac_cv_prog_CPP="$CPP"
3016 CPP="$ac_cv_prog_CPP"
3017 else
3018 ac_cv_prog_CPP="$CPP"
3020 echo "$ac_t""$CPP" 1>&6
3023 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3024 echo "configure:3025: checking for clocale to use" >&5
3025 # Check whether --enable-clocale or --disable-clocale was given.
3026 if test "${enable_clocale+set}" = set; then
3027 enableval="$enable_clocale"
3028 if test x$enable_clocale = xno; then
3029 enable_clocale=no
3031 else
3032 enable_clocale=no
3036 enable_clocale_flag=$enable_clocale
3038 if test x$enable_clocale_flag = xno; then
3039 case x${target_os} in
3040 xlinux* | xgnu*)
3041 cat > conftest.$ac_ext <<EOF
3042 #line 3043 "configure"
3043 #include "confdefs.h"
3045 #include <features.h>
3046 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3047 _GLIBCPP_ok
3048 #endif
3051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3052 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3053 rm -rf conftest*
3054 enable_clocale_flag=gnu
3055 else
3056 rm -rf conftest*
3057 enable_clocale_flag=generic
3059 rm -f conftest*
3062 # Test for bugs early in glibc-2.2.x series
3063 if test x$enable_clocale_flag = xgnu; then
3064 if test "$cross_compiling" = yes; then
3065 enable_clocale_flag=generic
3066 else
3067 cat > conftest.$ac_ext <<EOF
3068 #line 3069 "configure"
3069 #include "confdefs.h"
3071 #define _GNU_SOURCE 1
3072 #include <locale.h>
3073 #include <string.h>
3074 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3075 extern __typeof(newlocale) __newlocale;
3076 extern __typeof(duplocale) __duplocale;
3077 extern __typeof(strcoll_l) __strcoll_l;
3078 #endif
3079 int main()
3081 const char __one[] = "Äuglein Augmen";
3082 const char __two[] = "Äuglein";
3083 int i;
3084 int j;
3085 __locale_t loc;
3086 __locale_t loc_dup;
3087 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3088 loc_dup = __duplocale(loc);
3089 i = __strcoll_l(__one, __two, loc);
3090 j = __strcoll_l(__one, __two, loc_dup);
3091 return 0;
3095 if { (eval echo configure:3096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3096 then
3097 enable_clocale_flag=gnu
3098 else
3099 echo "configure: failed program was:" >&5
3100 cat conftest.$ac_ext >&5
3101 rm -fr conftest*
3102 enable_clocale_flag=generic
3104 rm -fr conftest*
3109 # ... at some point put __strxfrm_l tests in as well.
3112 enable_clocale_flag=generic
3114 esac
3117 # Check whether --enable-nls or --disable-nls was given.
3118 if test "${enable_nls+set}" = set; then
3119 enableval="$enable_nls"
3121 else
3122 enable_nls=yes
3125 USE_NLS=no
3127 case x${enable_clocale_flag} in
3128 xgeneric)
3129 echo "$ac_t""generic" 1>&6
3131 CLOCALE_H=config/locale/generic/c_locale.h
3132 CLOCALE_CC=config/locale/generic/c_locale.cc
3133 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3134 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3135 CCOLLATE_CC=config/locale/generic/collate_members.cc
3136 CCTYPE_CC=config/locale/generic/ctype_members.cc
3137 CMESSAGES_H=config/locale/generic/messages_members.h
3138 CMESSAGES_CC=config/locale/generic/messages_members.cc
3139 CMONEY_CC=config/locale/generic/monetary_members.cc
3140 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3141 CTIME_H=config/locale/generic/time_members.h
3142 CTIME_CC=config/locale/generic/time_members.cc
3143 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3145 xgnu)
3146 echo "$ac_t""gnu" 1>&6
3148 # Declare intention to use gettext, and add support for specific
3149 # languages.
3150 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3151 ALL_LINGUAS="de fr"
3153 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3154 # Extract the first word of "msgfmt", so it can be a program name with args.
3155 set dummy msgfmt; ac_word=$2
3156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3157 echo "configure:3158: checking for $ac_word" >&5
3158 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3159 echo $ac_n "(cached) $ac_c" 1>&6
3160 else
3161 if test -n "$check_msgfmt"; then
3162 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3163 else
3164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3165 ac_dummy="$PATH"
3166 for ac_dir in $ac_dummy; do
3167 test -z "$ac_dir" && ac_dir=.
3168 if test -f $ac_dir/$ac_word; then
3169 ac_cv_prog_check_msgfmt="yes"
3170 break
3172 done
3173 IFS="$ac_save_ifs"
3174 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3177 check_msgfmt="$ac_cv_prog_check_msgfmt"
3178 if test -n "$check_msgfmt"; then
3179 echo "$ac_t""$check_msgfmt" 1>&6
3180 else
3181 echo "$ac_t""no" 1>&6
3184 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3185 USE_NLS=yes
3187 # Export the build objects.
3188 for ling in $ALL_LINGUAS; do \
3189 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3190 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3191 done
3195 CLOCALE_H=config/locale/gnu/c_locale.h
3196 CLOCALE_CC=config/locale/gnu/c_locale.cc
3197 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3198 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3199 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3200 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3201 CMESSAGES_H=config/locale/gnu/messages_members.h
3202 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3203 CMONEY_CC=config/locale/gnu/monetary_members.cc
3204 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3205 CTIME_H=config/locale/gnu/time_members.h
3206 CTIME_CC=config/locale/gnu/time_members.cc
3207 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3209 xieee_1003.1-2001)
3210 echo "$ac_t""IEEE 1003.1" 1>&6
3212 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3213 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3214 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3215 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3216 CCOLLATE_CC=config/locale/generic/collate_members.cc
3217 CCTYPE_CC=config/locale/generic/ctype_members.cc
3218 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3219 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3220 CMONEY_CC=config/locale/generic/monetary_members.cc
3221 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3222 CTIME_H=config/locale/generic/time_members.h
3223 CTIME_CC=config/locale/generic/time_members.cc
3224 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3227 echo "$enable_clocale is an unknown locale package" 1>&2
3228 exit 1
3230 esac
3232 # This is where the testsuite looks for locale catalogs, using the
3233 # -DLOCALEDIR define during testsuite compilation.
3234 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3237 # A standalone libintl (e.g., GNU libintl) may be in use.
3238 if test $USE_NLS = yes; then
3239 for ac_hdr in libintl.h
3241 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3242 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3243 echo "configure:3244: checking for $ac_hdr" >&5
3244 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3245 echo $ac_n "(cached) $ac_c" 1>&6
3246 else
3247 cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3250 #include <$ac_hdr>
3252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3253 { (eval echo configure:3254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3255 if test -z "$ac_err"; then
3256 rm -rf conftest*
3257 eval "ac_cv_header_$ac_safe=yes"
3258 else
3259 echo "$ac_err" >&5
3260 echo "configure: failed program was:" >&5
3261 cat conftest.$ac_ext >&5
3262 rm -rf conftest*
3263 eval "ac_cv_header_$ac_safe=no"
3265 rm -f conftest*
3267 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3268 echo "$ac_t""yes" 1>&6
3269 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3270 cat >> confdefs.h <<EOF
3271 #define $ac_tr_hdr 1
3274 else
3275 echo "$ac_t""no" 1>&6
3276 USE_NLS=no
3278 done
3281 echo $ac_n "checking for library containing gettext""... $ac_c" 1>&6
3282 echo "configure:3283: checking for library containing gettext" >&5
3283 if eval "test \"`echo '$''{'ac_cv_search_gettext'+set}'`\" = set"; then
3284 echo $ac_n "(cached) $ac_c" 1>&6
3285 else
3286 ac_func_search_save_LIBS="$LIBS"
3287 ac_cv_search_gettext="no"
3288 cat > conftest.$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3291 /* Override any gcc2 internal prototype to avoid an error. */
3292 /* We use char because int might match the return type of a gcc2
3293 builtin and then its argument prototype would still apply. */
3294 char gettext();
3296 int main() {
3297 gettext()
3298 ; return 0; }
3300 if { (eval echo configure:3301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3301 rm -rf conftest*
3302 ac_cv_search_gettext="none required"
3303 else
3304 echo "configure: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3307 rm -f conftest*
3308 test "$ac_cv_search_gettext" = "no" && for i in intl; do
3309 LIBS="-l$i $ac_func_search_save_LIBS"
3310 cat > conftest.$ac_ext <<EOF
3311 #line 3312 "configure"
3312 #include "confdefs.h"
3313 /* Override any gcc2 internal prototype to avoid an error. */
3314 /* We use char because int might match the return type of a gcc2
3315 builtin and then its argument prototype would still apply. */
3316 char gettext();
3318 int main() {
3319 gettext()
3320 ; return 0; }
3322 if { (eval echo configure:3323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3323 rm -rf conftest*
3324 ac_cv_search_gettext="-l$i"
3325 break
3326 else
3327 echo "configure: failed program was:" >&5
3328 cat conftest.$ac_ext >&5
3330 rm -f conftest*
3331 done
3332 LIBS="$ac_func_search_save_LIBS"
3335 echo "$ac_t""$ac_cv_search_gettext" 1>&6
3336 if test "$ac_cv_search_gettext" != "no"; then
3337 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
3339 else :
3340 USE_NLS=no
3343 if test $USE_NLS = yes; then
3344 cat >> confdefs.h <<\EOF
3345 #define _GLIBCPP_USE_NLS 1
3365 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3366 echo "configure:3367: checking for c header strategy to use" >&5
3367 # Check whether --enable-cheaders or --disable-cheaders was given.
3368 if test "${enable_cheaders+set}" = set; then
3369 enableval="$enable_cheaders"
3371 case "$enableval" in
3373 enable_cheaders=c
3375 c_std)
3376 enable_cheaders=c_std
3378 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3380 esac
3381 else
3382 enable_cheaders=c_std
3385 echo "$ac_t""$enable_cheaders" 1>&6
3387 case "$enable_cheaders" in
3388 c_std)
3389 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3392 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3394 esac
3399 if test "$enable_cheaders" = c; then
3400 GLIBCPP_C_HEADERS_C_TRUE=
3401 GLIBCPP_C_HEADERS_C_FALSE='#'
3402 else
3403 GLIBCPP_C_HEADERS_C_TRUE='#'
3404 GLIBCPP_C_HEADERS_C_FALSE=
3408 if test "$enable_cheaders" = c_std; then
3409 GLIBCPP_C_HEADERS_C_STD_TRUE=
3410 GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3411 else
3412 GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3413 GLIBCPP_C_HEADERS_C_STD_FALSE=
3417 if test "$c_compatibility" = yes; then
3418 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3419 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3420 else
3421 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3422 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3425 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3426 if test "${enable_c_mbchar+set}" = set; then
3427 enableval="$enable_c_mbchar"
3428 case "$enableval" in
3429 yes) enable_c_mbchar=yes ;;
3430 no) enable_c_mbchar=no ;;
3431 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3432 esac
3433 else
3434 enable_c_mbchar=yes
3438 # Check whether --enable-c99 or --disable-c99 was given.
3439 if test "${enable_c99+set}" = set; then
3440 enableval="$enable_c99"
3441 case "$enableval" in
3442 yes) enable_c99=yes ;;
3443 no) enable_c99=no ;;
3444 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3445 esac
3446 else
3447 enable_c99=yes
3451 ac_ext=C
3452 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3453 ac_cpp='$CXXCPP $CPPFLAGS'
3454 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3455 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3456 cross_compiling=$ac_cv_prog_cxx_cross
3459 # Check for the existence of <math.h> functions used if C99 is enabled.
3460 ac_c99_math=yes;
3461 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3462 echo "configure:3463: checking for ISO C99 support in <math.h>" >&5
3463 cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3466 #include <math.h>
3467 int main() {
3468 fpclassify(0.0);
3469 ; return 0; }
3471 if { (eval echo configure:3472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3473 else
3474 echo "configure: failed program was:" >&5
3475 cat conftest.$ac_ext >&5
3476 rm -rf conftest*
3477 ac_c99_math=no
3479 rm -f conftest*
3480 cat > conftest.$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3483 #include <math.h>
3484 int main() {
3485 isfinite(0.0);
3486 ; return 0; }
3488 if { (eval echo configure:3489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3490 else
3491 echo "configure: failed program was:" >&5
3492 cat conftest.$ac_ext >&5
3493 rm -rf conftest*
3494 ac_c99_math=no
3496 rm -f conftest*
3497 cat > conftest.$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3500 #include <math.h>
3501 int main() {
3502 isinf(0.0);
3503 ; return 0; }
3505 if { (eval echo configure:3506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3507 else
3508 echo "configure: failed program was:" >&5
3509 cat conftest.$ac_ext >&5
3510 rm -rf conftest*
3511 ac_c99_math=no
3513 rm -f conftest*
3514 cat > conftest.$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3517 #include <math.h>
3518 int main() {
3519 isnan(0.0);
3520 ; return 0; }
3522 if { (eval echo configure:3523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3524 else
3525 echo "configure: failed program was:" >&5
3526 cat conftest.$ac_ext >&5
3527 rm -rf conftest*
3528 ac_c99_math=no
3530 rm -f conftest*
3531 cat > conftest.$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 #include <math.h>
3535 int main() {
3536 isnormal(0.0);
3537 ; return 0; }
3539 if { (eval echo configure:3540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3541 else
3542 echo "configure: failed program was:" >&5
3543 cat conftest.$ac_ext >&5
3544 rm -rf conftest*
3545 ac_c99_math=no
3547 rm -f conftest*
3548 cat > conftest.$ac_ext <<EOF
3549 #line 3550 "configure"
3550 #include "confdefs.h"
3551 #include <math.h>
3552 int main() {
3553 signbit(0.0);
3554 ; return 0; }
3556 if { (eval echo configure:3557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3558 else
3559 echo "configure: failed program was:" >&5
3560 cat conftest.$ac_ext >&5
3561 rm -rf conftest*
3562 ac_c99_math=no
3564 rm -f conftest*
3565 cat > conftest.$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3568 #include <math.h>
3569 int main() {
3570 isgreater(0.0,0.0);
3571 ; return 0; }
3573 if { (eval echo configure:3574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3575 else
3576 echo "configure: failed program was:" >&5
3577 cat conftest.$ac_ext >&5
3578 rm -rf conftest*
3579 ac_c99_math=no
3581 rm -f conftest*
3582 cat > conftest.$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3585 #include <math.h>
3586 int main() {
3587 isgreaterequal(0.0,0.0);
3588 ; return 0; }
3590 if { (eval echo configure:3591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3592 else
3593 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3595 rm -rf conftest*
3596 ac_c99_math=no
3598 rm -f conftest*
3599 cat > conftest.$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3602 #include <math.h>
3603 int main() {
3604 isless(0.0,0.0);
3605 ; return 0; }
3607 if { (eval echo configure:3608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3609 else
3610 echo "configure: failed program was:" >&5
3611 cat conftest.$ac_ext >&5
3612 rm -rf conftest*
3613 ac_c99_math=no
3615 rm -f conftest*
3616 cat > conftest.$ac_ext <<EOF
3617 #line 3618 "configure"
3618 #include "confdefs.h"
3619 #include <math.h>
3620 int main() {
3621 islessequal(0.0,0.0);
3622 ; return 0; }
3624 if { (eval echo configure:3625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3626 else
3627 echo "configure: failed program was:" >&5
3628 cat conftest.$ac_ext >&5
3629 rm -rf conftest*
3630 ac_c99_math=no
3632 rm -f conftest*
3633 cat > conftest.$ac_ext <<EOF
3634 #line 3635 "configure"
3635 #include "confdefs.h"
3636 #include <math.h>
3637 int main() {
3638 islessgreater(0.0,0.0);
3639 ; return 0; }
3641 if { (eval echo configure:3642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3643 else
3644 echo "configure: failed program was:" >&5
3645 cat conftest.$ac_ext >&5
3646 rm -rf conftest*
3647 ac_c99_math=no
3649 rm -f conftest*
3650 cat > conftest.$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3653 #include <math.h>
3654 int main() {
3655 isunordered(0.0,0.0);
3656 ; return 0; }
3658 if { (eval echo configure:3659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3660 else
3661 echo "configure: failed program was:" >&5
3662 cat conftest.$ac_ext >&5
3663 rm -rf conftest*
3664 ac_c99_math=no
3666 rm -f conftest*
3667 echo "$ac_t""$ac_c99_math" 1>&6
3669 # Check for the existence in <stdio.h> of vscanf, et. al.
3670 ac_c99_stdio=yes;
3671 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3672 echo "configure:3673: checking for ISO C99 support in <stdio.h>" >&5
3673 cat > conftest.$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3676 #include <stdio.h>
3677 int main() {
3678 snprintf("12", 0, "%i");
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_stdio=no
3689 rm -f conftest*
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 #include <stdio.h>
3694 #include <stdarg.h>
3695 void foo(char* fmt, ...)
3696 {va_list args; va_start(args, fmt);
3697 vfscanf(stderr, "%i", args);}
3698 int main() {
3700 ; return 0; }
3702 if { (eval echo configure:3703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3704 else
3705 echo "configure: failed program was:" >&5
3706 cat conftest.$ac_ext >&5
3707 rm -rf conftest*
3708 ac_c99_stdio=no
3710 rm -f conftest*
3711 cat > conftest.$ac_ext <<EOF
3712 #line 3713 "configure"
3713 #include "confdefs.h"
3714 #include <stdio.h>
3715 #include <stdarg.h>
3716 void foo(char* fmt, ...)
3717 {va_list args; va_start(args, fmt);
3718 vscanf("%i", args);}
3719 int main() {
3721 ; return 0; }
3723 if { (eval echo configure:3724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3725 else
3726 echo "configure: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3728 rm -rf conftest*
3729 ac_c99_stdio=no
3731 rm -f conftest*
3732 cat > conftest.$ac_ext <<EOF
3733 #line 3734 "configure"
3734 #include "confdefs.h"
3735 #include <stdio.h>
3736 #include <stdarg.h>
3737 void foo(char* fmt, ...)
3738 {va_list args; va_start(args, fmt);
3739 vsnprintf(fmt, 0, "%i", args);}
3740 int main() {
3742 ; return 0; }
3744 if { (eval echo configure:3745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3746 else
3747 echo "configure: failed program was:" >&5
3748 cat conftest.$ac_ext >&5
3749 rm -rf conftest*
3750 ac_c99_stdio=no
3752 rm -f conftest*
3753 cat > conftest.$ac_ext <<EOF
3754 #line 3755 "configure"
3755 #include "confdefs.h"
3756 #include <stdio.h>
3757 #include <stdarg.h>
3758 void foo(char* fmt, ...)
3759 {va_list args; va_start(args, fmt);
3760 vsscanf(fmt, "%i", args);}
3761 int main() {
3763 ; return 0; }
3765 if { (eval echo configure:3766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3767 else
3768 echo "configure: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3770 rm -rf conftest*
3771 ac_c99_stdio=no
3773 rm -f conftest*
3774 echo "$ac_t""$ac_c99_stdio" 1>&6
3776 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3777 ac_c99_stdlib=yes;
3778 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3779 echo "configure:3780: checking for lldiv_t declaration" >&5
3780 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3781 echo $ac_n "(cached) $ac_c" 1>&6
3782 else
3784 cat > conftest.$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3787 #include <stdlib.h>
3788 int main() {
3789 lldiv_t mydivt;
3790 ; return 0; }
3792 if { (eval echo configure:3793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3793 rm -rf conftest*
3794 ac_c99_lldiv_t=yes
3795 else
3796 echo "configure: failed program was:" >&5
3797 cat conftest.$ac_ext >&5
3798 rm -rf conftest*
3799 ac_c99_lldiv_t=no
3801 rm -f conftest*
3805 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3807 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3808 echo "configure:3809: checking for ISO C99 support in <stdlib.h>" >&5
3809 cat > conftest.$ac_ext <<EOF
3810 #line 3811 "configure"
3811 #include "confdefs.h"
3812 #include <stdlib.h>
3813 int main() {
3814 char* tmp; strtof("gnu", &tmp);
3815 ; return 0; }
3817 if { (eval echo configure:3818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3819 else
3820 echo "configure: failed program was:" >&5
3821 cat conftest.$ac_ext >&5
3822 rm -rf conftest*
3823 ac_c99_stdlib=no
3825 rm -f conftest*
3826 cat > conftest.$ac_ext <<EOF
3827 #line 3828 "configure"
3828 #include "confdefs.h"
3829 #include <stdlib.h>
3830 int main() {
3831 char* tmp; strtold("gnu", &tmp);
3832 ; return 0; }
3834 if { (eval echo configure:3835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3836 else
3837 echo "configure: failed program was:" >&5
3838 cat conftest.$ac_ext >&5
3839 rm -rf conftest*
3840 ac_c99_stdlib=no
3842 rm -f conftest*
3843 cat > conftest.$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
3846 #include <stdlib.h>
3847 int main() {
3848 llabs(10);
3849 ; return 0; }
3851 if { (eval echo configure:3852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3853 else
3854 echo "configure: failed program was:" >&5
3855 cat conftest.$ac_ext >&5
3856 rm -rf conftest*
3857 ac_c99_stdlib=no
3859 rm -f conftest*
3860 cat > conftest.$ac_ext <<EOF
3861 #line 3862 "configure"
3862 #include "confdefs.h"
3863 #include <stdlib.h>
3864 int main() {
3865 lldiv(10,1);
3866 ; return 0; }
3868 if { (eval echo configure:3869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3870 else
3871 echo "configure: failed program was:" >&5
3872 cat conftest.$ac_ext >&5
3873 rm -rf conftest*
3874 ac_c99_stdlib=no
3876 rm -f conftest*
3877 cat > conftest.$ac_ext <<EOF
3878 #line 3879 "configure"
3879 #include "confdefs.h"
3880 #include <stdlib.h>
3881 int main() {
3882 atoll("10");
3883 ; return 0; }
3885 if { (eval echo configure:3886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3887 else
3888 echo "configure: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3890 rm -rf conftest*
3891 ac_c99_stdlib=no
3893 rm -f conftest*
3894 cat > conftest.$ac_ext <<EOF
3895 #line 3896 "configure"
3896 #include "confdefs.h"
3897 #include <stdlib.h>
3898 int main() {
3899 _Exit(0);
3900 ; return 0; }
3902 if { (eval echo configure:3903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3904 else
3905 echo "configure: failed program was:" >&5
3906 cat conftest.$ac_ext >&5
3907 rm -rf conftest*
3908 ac_c99_stdlib=no
3910 rm -f conftest*
3911 if test x"$ac_c99_lldiv_t" = x"no"; then
3912 ac_c99_stdlib=no;
3914 echo "$ac_t""$ac_c99_stdlib" 1>&6
3916 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3917 # XXX the wchar.h checks should be rolled into the general C99 bits.
3918 ac_c99_wchar=yes;
3919 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3920 echo "configure:3921: checking for additional ISO C99 support in <wchar.h>" >&5
3921 cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3924 #include <wchar.h>
3925 int main() {
3926 wcstold(L"10.0", NULL);
3927 ; return 0; }
3929 if { (eval echo configure:3930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3931 else
3932 echo "configure: failed program was:" >&5
3933 cat conftest.$ac_ext >&5
3934 rm -rf conftest*
3935 ac_c99_wchar=no
3937 rm -f conftest*
3938 cat > conftest.$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3941 #include <wchar.h>
3942 int main() {
3943 wcstoll(L"10", NULL, 10);
3944 ; return 0; }
3946 if { (eval echo configure:3947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3948 else
3949 echo "configure: failed program was:" >&5
3950 cat conftest.$ac_ext >&5
3951 rm -rf conftest*
3952 ac_c99_wchar=no
3954 rm -f conftest*
3955 cat > conftest.$ac_ext <<EOF
3956 #line 3957 "configure"
3957 #include "confdefs.h"
3958 #include <wchar.h>
3959 int main() {
3960 wcstoull(L"10", NULL, 10);
3961 ; return 0; }
3963 if { (eval echo configure:3964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3965 else
3966 echo "configure: failed program was:" >&5
3967 cat conftest.$ac_ext >&5
3968 rm -rf conftest*
3969 ac_c99_wchar=no
3971 rm -f conftest*
3972 echo "$ac_t""$ac_c99_wchar" 1>&6
3974 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3975 echo "configure:3976: checking for enabled ISO C99 support" >&5
3976 if test x"$ac_c99_math" = x"no" ||
3977 test x"$ac_c99_stdio" = x"no" ||
3978 test x"$ac_c99_stdlib" = x"no" ||
3979 test x"$ac_c99_wchar" = x"no"; then
3980 enable_c99=no;
3982 echo "$ac_t""$enable_c99" 1>&6
3984 # Option parsed, now set things appropriately
3985 if test x"$enable_c99" = x"yes"; then
3986 cat >> confdefs.h <<\EOF
3987 #define _GLIBCPP_USE_C99 1
3992 ac_ext=c
3993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3994 ac_cpp='$CPP $CPPFLAGS'
3995 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3996 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3997 cross_compiling=$ac_cv_prog_cc_cross
4001 # Check whether --enable-long-long or --disable-long-long was given.
4002 if test "${enable_long_long+set}" = set; then
4003 enableval="$enable_long_long"
4004 case "$enableval" in
4005 yes) enable_long_long=yes ;;
4006 no) enable_long_long=no ;;
4007 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
4008 esac
4009 else
4010 enable_long_long=yes
4014 ac_ext=C
4015 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4016 ac_cpp='$CXXCPP $CPPFLAGS'
4017 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4018 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4019 cross_compiling=$ac_cv_prog_cxx_cross
4022 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
4023 echo "configure:4024: checking for enabled long long I/O support" >&5
4024 # iostreams require strtoll, strtoull to compile
4025 cat > conftest.$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4028 #include <stdlib.h>
4029 int main() {
4030 char* tmp; strtoll("gnu", &tmp, 10);
4031 ; return 0; }
4033 if { (eval echo configure:4034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4035 else
4036 echo "configure: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4038 rm -rf conftest*
4039 enable_long_long=no
4041 rm -f conftest*
4042 cat > conftest.$ac_ext <<EOF
4043 #line 4044 "configure"
4044 #include "confdefs.h"
4045 #include <stdlib.h>
4046 int main() {
4047 char* tmp; strtoull("gnu", &tmp, 10);
4048 ; return 0; }
4050 if { (eval echo configure:4051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4052 else
4053 echo "configure: failed program was:" >&5
4054 cat conftest.$ac_ext >&5
4055 rm -rf conftest*
4056 enable_long_long=no
4058 rm -f conftest*
4060 # Option parsed, now set things appropriately
4061 if test x"$enable_long_long" = xyes; then
4062 cat >> confdefs.h <<\EOF
4063 #define _GLIBCPP_USE_LONG_LONG 1
4067 echo "$ac_t""$enable_long_long" 1>&6
4069 ac_ext=c
4070 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4073 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4074 cross_compiling=$ac_cv_prog_cc_cross
4078 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
4079 echo "configure:4080: checking for thread model used by GCC" >&5
4080 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4081 echo "$ac_t""$target_thread_file" 1>&6
4083 if test $target_thread_file != single; then
4084 cat >> confdefs.h <<\EOF
4085 #define HAVE_GTHR_DEFAULT 1
4088 cat >> confdefs.h <<\EOF
4089 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
4094 glibcpp_thread_h=gthr-$target_thread_file.h
4097 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4098 if test "${enable_concept_checks+set}" = set; then
4099 enableval="$enable_concept_checks"
4100 case "$enableval" in
4101 yes) enable_concept_checks=yes ;;
4102 no) enable_concept_checks=no ;;
4103 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4104 esac
4105 else
4106 enable_concept_checks=no
4108 if test x"$enable_concept_checks" = xyes; then
4109 cat >> confdefs.h <<\EOF
4110 #define _GLIBCPP_CONCEPT_CHECKS 1
4115 echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4116 echo "configure:4117: checking for extra compiler flags for building" >&5
4117 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4118 if test "${enable_cxx_flags+set}" = set; then
4119 enableval="$enable_cxx_flags"
4120 case "x$enable_cxx_flags" in
4121 xyes)
4122 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4123 xno | xnone | x)
4124 enable_cxx_flags='' ;;
4126 enable_cxx_flags="$enableval" ;;
4127 esac
4128 else
4129 enable_cxx_flags=
4133 if test -n "$enable_cxx_flags"; then
4134 for f in $enable_cxx_flags; do
4135 case "$f" in
4136 -fhonor-std) ;;
4137 -*) ;;
4138 *) # and we're trying to pass /what/ exactly?
4139 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4140 esac
4141 done
4143 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4144 echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4147 # Check whether --enable-debug or --disable-debug was given.
4148 if test "${enable_debug+set}" = set; then
4149 enableval="$enable_debug"
4150 case "${enableval}" in
4151 yes) enable_debug=yes ;;
4152 no) enable_debug=no ;;
4153 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4154 esac
4155 else
4156 enable_debug=no
4158 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4159 echo "configure:4160: checking for additional debug build" >&5
4160 echo "$ac_t""$enable_debug" 1>&6
4163 if test "$enable_debug" = yes; then
4164 GLIBCPP_BUILD_DEBUG_TRUE=
4165 GLIBCPP_BUILD_DEBUG_FALSE='#'
4166 else
4167 GLIBCPP_BUILD_DEBUG_TRUE='#'
4168 GLIBCPP_BUILD_DEBUG_FALSE=
4171 # Check whether --enable-debug_flags or --disable-debug_flags was given.
4172 if test "${enable_debug_flags+set}" = set; then
4173 enableval="$enable_debug_flags"
4174 case "${enableval}" in
4175 none) ;;
4176 -*) enable_debug_flags="${enableval}" ;;
4177 *) { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4178 esac
4179 else
4180 enable_debug_flags=none
4183 case x"$enable_debug" in
4184 xyes)
4185 case "$enable_debug_flags" in
4186 none)
4187 DEBUG_FLAGS="-g3 -O0";;
4188 -*) #valid input
4189 DEBUG_FLAGS="${enableval}"
4190 esac
4192 xno)
4193 DEBUG_FLAGS=""
4195 esac
4198 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4199 echo "configure:4200: checking for debug build flags" >&5
4200 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4203 # No surprises, no surprises...
4204 if test $ATOMICITYH = cpu/generic ; then
4205 echo "configure: warning: No native atomic operations are provided for this platform." 1>&2
4206 if test $target_thread_file = single; then
4207 echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4208 echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4209 else
4210 echo "configure: warning: They will be faked using a mutex." 1>&2
4211 echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4216 if test x"$build" != x"$host"; then
4218 # We are being configured with some form of cross compiler.
4219 GLIBCPP_IS_CROSS_COMPILING=true
4221 # This lets us hard-code the functionality we know we'll have in the cross
4222 # target environment. "Let" is a sugar-coated word placed on an especially
4223 # dull and tedious hack, actually.
4225 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4226 # that involve linking, can't be used:
4227 # "cannot open sim-crt0.o"
4228 # "cannot open crt0.o"
4229 # etc. All this is because there currently exists no unified, consistent
4230 # way for top level CC information to be passed down to target directories:
4231 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4232 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4233 # crosses can be removed.
4235 # If Canadian cross, then don't pick up tools from the build directory.
4236 # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4237 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host" \
4238 && test x"$build" != x"$target"; then
4239 CANADIAN=yes
4240 else
4241 CANADIAN=no
4244 # Construct crosses by hand, eliminating bits that need ld...
4245 # GLIBCPP_CHECK_COMPILER_FEATURES
4246 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4247 # GLIBCPP_CHECK_MATH_SUPPORT
4249 case "${host}" in
4250 *-freebsd*)
4251 os_include_dir="os/bsd/freebsd"
4252 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4253 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4254 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
4255 sys/time.h unistd.h
4257 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4258 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4259 echo "configure:4260: checking for $ac_hdr" >&5
4260 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4261 echo $ac_n "(cached) $ac_c" 1>&6
4262 else
4263 cat > conftest.$ac_ext <<EOF
4264 #line 4265 "configure"
4265 #include "confdefs.h"
4266 #include <$ac_hdr>
4268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4269 { (eval echo configure:4270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4271 if test -z "$ac_err"; then
4272 rm -rf conftest*
4273 eval "ac_cv_header_$ac_safe=yes"
4274 else
4275 echo "$ac_err" >&5
4276 echo "configure: failed program was:" >&5
4277 cat conftest.$ac_ext >&5
4278 rm -rf conftest*
4279 eval "ac_cv_header_$ac_safe=no"
4281 rm -f conftest*
4283 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4284 echo "$ac_t""yes" 1>&6
4285 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4286 cat >> confdefs.h <<EOF
4287 #define $ac_tr_hdr 1
4290 else
4291 echo "$ac_t""no" 1>&6
4293 done
4295 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4298 # If we're not using GNU ld, then there's no point in even trying these
4299 # tests. Check for that first. We should have already tested for gld
4300 # by now (in libtool), but require it now just to be safe...
4301 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4302 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4305 # The name set by libtool depends on the version of libtool. Shame on us
4306 # for depending on an impl detail, but c'est la vie. Older versions used
4307 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4308 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4309 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4310 # set (hence we're using an older libtool), then set it.
4311 if test x${with_gnu_ld+set} != xset; then
4312 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4313 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4314 with_gnu_ld=no
4315 else
4316 with_gnu_ld=$ac_cv_prog_gnu_ld
4320 # Start by getting the version number. I think the libtool test already
4321 # does some of this, but throws away the result.
4323 ldver=`$LD --version 2>/dev/null | head -1 | \
4324 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4326 glibcpp_gnu_ld_version=`echo $ldver | \
4327 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4329 # Set --gc-sections.
4330 if test "$with_gnu_ld" = "notbroken"; then
4331 # GNU ld it is! Joy and bunny rabbits!
4333 # All these tests are for C++; save the language and the compiler flags.
4334 # Need to do this so that g++ won't try to link in libstdc++
4335 ac_test_CFLAGS="${CFLAGS+set}"
4336 ac_save_CFLAGS="$CFLAGS"
4337 CFLAGS='-x c++ -Wl,--gc-sections'
4339 # Check for -Wl,--gc-sections
4340 # XXX This test is broken at the moment, as symbols required for
4341 # linking are now in libsupc++ (not built yet.....). In addition,
4342 # this test has cored on solaris in the past. In addition,
4343 # --gc-sections doesn't really work at the moment (keeps on discarding
4344 # used sections, first .eh_frame and now some of the glibc sections for
4345 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4346 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4347 echo "configure:4348: checking for ld that supports -Wl,--gc-sections" >&5
4348 if test "$cross_compiling" = yes; then
4349 ac_sectionLDflags=yes
4350 else
4351 cat > conftest.$ac_ext <<EOF
4352 #line 4353 "configure"
4353 #include "confdefs.h"
4355 int main(void)
4357 try { throw 1; }
4358 catch (...) { };
4359 return 0;
4363 if { (eval echo configure:4364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4364 then
4365 ac_sectionLDflags=yes
4366 else
4367 echo "configure: failed program was:" >&5
4368 cat conftest.$ac_ext >&5
4369 rm -fr conftest*
4370 ac_sectionLDflags=no
4372 rm -fr conftest*
4375 if test "$ac_test_CFLAGS" = set; then
4376 CFLAGS="$ac_save_CFLAGS"
4377 else
4378 # this is the suspicious part
4379 CFLAGS=''
4381 if test "$ac_sectionLDflags" = "yes"; then
4382 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4384 echo "$ac_t""$ac_sectionLDflags" 1>&6
4387 # Set linker optimization flags.
4388 if test x"$with_gnu_ld" = x"yes"; then
4389 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4396 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4397 echo "configure:4398: checking for main in -lm" >&5
4398 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4399 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4400 echo $ac_n "(cached) $ac_c" 1>&6
4401 else
4402 ac_save_LIBS="$LIBS"
4403 LIBS="-lm $LIBS"
4404 cat > conftest.$ac_ext <<EOF
4405 #line 4406 "configure"
4406 #include "confdefs.h"
4408 int main() {
4409 main()
4410 ; return 0; }
4412 if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4413 rm -rf conftest*
4414 eval "ac_cv_lib_$ac_lib_var=yes"
4415 else
4416 echo "configure: failed program was:" >&5
4417 cat conftest.$ac_ext >&5
4418 rm -rf conftest*
4419 eval "ac_cv_lib_$ac_lib_var=no"
4421 rm -f conftest*
4422 LIBS="$ac_save_LIBS"
4425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4426 echo "$ac_t""yes" 1>&6
4427 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4428 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4429 cat >> confdefs.h <<EOF
4430 #define $ac_tr_lib 1
4433 LIBS="-lm $LIBS"
4435 else
4436 echo "$ac_t""no" 1>&6
4439 for ac_func in nan copysignf
4441 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4442 echo "configure:4443: checking for $ac_func" >&5
4443 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4444 echo $ac_n "(cached) $ac_c" 1>&6
4445 else
4446 cat > conftest.$ac_ext <<EOF
4447 #line 4448 "configure"
4448 #include "confdefs.h"
4449 /* System header to define __stub macros and hopefully few prototypes,
4450 which can conflict with char $ac_func(); below. */
4451 #include <assert.h>
4452 /* Override any gcc2 internal prototype to avoid an error. */
4453 /* We use char because int might match the return type of a gcc2
4454 builtin and then its argument prototype would still apply. */
4455 char $ac_func();
4457 int main() {
4459 /* The GNU C library defines this for functions which it implements
4460 to always fail with ENOSYS. Some functions are actually named
4461 something starting with __ and the normal name is an alias. */
4462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4463 choke me
4464 #else
4465 $ac_func();
4466 #endif
4468 ; return 0; }
4470 if { (eval echo configure:4471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4471 rm -rf conftest*
4472 eval "ac_cv_func_$ac_func=yes"
4473 else
4474 echo "configure: failed program was:" >&5
4475 cat conftest.$ac_ext >&5
4476 rm -rf conftest*
4477 eval "ac_cv_func_$ac_func=no"
4479 rm -f conftest*
4482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4483 echo "$ac_t""yes" 1>&6
4484 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4485 cat >> confdefs.h <<EOF
4486 #define $ac_tr_func 1
4489 else
4490 echo "$ac_t""no" 1>&6
4491 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4493 done
4496 for ac_func in __signbit
4498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4499 echo "configure:4500: checking for $ac_func" >&5
4500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4501 echo $ac_n "(cached) $ac_c" 1>&6
4502 else
4503 cat > conftest.$ac_ext <<EOF
4504 #line 4505 "configure"
4505 #include "confdefs.h"
4506 /* System header to define __stub macros and hopefully few prototypes,
4507 which can conflict with char $ac_func(); below. */
4508 #include <assert.h>
4509 /* Override any gcc2 internal prototype to avoid an error. */
4510 /* We use char because int might match the return type of a gcc2
4511 builtin and then its argument prototype would still apply. */
4512 char $ac_func();
4514 int main() {
4516 /* The GNU C library defines this for functions which it implements
4517 to always fail with ENOSYS. Some functions are actually named
4518 something starting with __ and the normal name is an alias. */
4519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4520 choke me
4521 #else
4522 $ac_func();
4523 #endif
4525 ; return 0; }
4527 if { (eval echo configure:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4528 rm -rf conftest*
4529 eval "ac_cv_func_$ac_func=yes"
4530 else
4531 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4533 rm -rf conftest*
4534 eval "ac_cv_func_$ac_func=no"
4536 rm -f conftest*
4539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4541 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4542 cat >> confdefs.h <<EOF
4543 #define $ac_tr_func 1
4546 else
4547 echo "$ac_t""no" 1>&6
4548 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4550 done
4552 for ac_func in __signbitf
4554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4555 echo "configure:4556: checking for $ac_func" >&5
4556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6
4558 else
4559 cat > conftest.$ac_ext <<EOF
4560 #line 4561 "configure"
4561 #include "confdefs.h"
4562 /* System header to define __stub macros and hopefully few prototypes,
4563 which can conflict with char $ac_func(); below. */
4564 #include <assert.h>
4565 /* Override any gcc2 internal prototype to avoid an error. */
4566 /* We use char because int might match the return type of a gcc2
4567 builtin and then its argument prototype would still apply. */
4568 char $ac_func();
4570 int main() {
4572 /* The GNU C library defines this for functions which it implements
4573 to always fail with ENOSYS. Some functions are actually named
4574 something starting with __ and the normal name is an alias. */
4575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4576 choke me
4577 #else
4578 $ac_func();
4579 #endif
4581 ; return 0; }
4583 if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4584 rm -rf conftest*
4585 eval "ac_cv_func_$ac_func=yes"
4586 else
4587 echo "configure: failed program was:" >&5
4588 cat conftest.$ac_ext >&5
4589 rm -rf conftest*
4590 eval "ac_cv_func_$ac_func=no"
4592 rm -f conftest*
4595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4596 echo "$ac_t""yes" 1>&6
4597 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4598 cat >> confdefs.h <<EOF
4599 #define $ac_tr_func 1
4602 else
4603 echo "$ac_t""no" 1>&6
4604 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4606 done
4609 if test x$ac_cv_func_copysignl = x"yes"; then
4610 for ac_func in __signbitl
4612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4613 echo "configure:4614: checking for $ac_func" >&5
4614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4615 echo $ac_n "(cached) $ac_c" 1>&6
4616 else
4617 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4620 /* System header to define __stub macros and hopefully few prototypes,
4621 which can conflict with char $ac_func(); below. */
4622 #include <assert.h>
4623 /* Override any gcc2 internal prototype to avoid an error. */
4624 /* We use char because int might match the return type of a gcc2
4625 builtin and then its argument prototype would still apply. */
4626 char $ac_func();
4628 int main() {
4630 /* The GNU C library defines this for functions which it implements
4631 to always fail with ENOSYS. Some functions are actually named
4632 something starting with __ and the normal name is an alias. */
4633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4634 choke me
4635 #else
4636 $ac_func();
4637 #endif
4639 ; return 0; }
4641 if { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4642 rm -rf conftest*
4643 eval "ac_cv_func_$ac_func=yes"
4644 else
4645 echo "configure: failed program was:" >&5
4646 cat conftest.$ac_ext >&5
4647 rm -rf conftest*
4648 eval "ac_cv_func_$ac_func=no"
4650 rm -f conftest*
4653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4654 echo "$ac_t""yes" 1>&6
4655 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4656 cat >> confdefs.h <<EOF
4657 #define $ac_tr_func 1
4660 else
4661 echo "$ac_t""no" 1>&6
4662 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4664 done
4668 if test -n "$LIBMATHOBJS"; then
4669 need_libmath=yes
4675 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4676 echo "configure:4677: checking for mbstate_t" >&5
4677 cat > conftest.$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4680 #include <wchar.h>
4681 int main() {
4682 mbstate_t teststate;
4683 ; return 0; }
4685 if { (eval echo configure:4686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4686 rm -rf conftest*
4687 have_mbstate_t=yes
4688 else
4689 echo "configure: failed program was:" >&5
4690 cat conftest.$ac_ext >&5
4691 rm -rf conftest*
4692 have_mbstate_t=no
4694 rm -f conftest*
4695 echo "$ac_t""$have_mbstate_t" 1>&6
4696 if test x"$have_mbstate_t" = xyes; then
4697 cat >> confdefs.h <<\EOF
4698 #define HAVE_MBSTATE_T 1
4703 for ac_hdr in wchar.h
4705 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4707 echo "configure:4708: checking for $ac_hdr" >&5
4708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4709 echo $ac_n "(cached) $ac_c" 1>&6
4710 else
4711 cat > conftest.$ac_ext <<EOF
4712 #line 4713 "configure"
4713 #include "confdefs.h"
4714 #include <$ac_hdr>
4716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4717 { (eval echo configure:4718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4719 if test -z "$ac_err"; then
4720 rm -rf conftest*
4721 eval "ac_cv_header_$ac_safe=yes"
4722 else
4723 echo "$ac_err" >&5
4724 echo "configure: failed program was:" >&5
4725 cat conftest.$ac_ext >&5
4726 rm -rf conftest*
4727 eval "ac_cv_header_$ac_safe=no"
4729 rm -f conftest*
4731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4732 echo "$ac_t""yes" 1>&6
4733 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4734 cat >> confdefs.h <<EOF
4735 #define $ac_tr_hdr 1
4737 ac_has_wchar_h=yes
4738 else
4739 echo "$ac_t""no" 1>&6
4740 ac_has_wchar_h=no
4742 done
4744 for ac_hdr in wctype.h
4746 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4747 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4748 echo "configure:4749: checking for $ac_hdr" >&5
4749 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4750 echo $ac_n "(cached) $ac_c" 1>&6
4751 else
4752 cat > conftest.$ac_ext <<EOF
4753 #line 4754 "configure"
4754 #include "confdefs.h"
4755 #include <$ac_hdr>
4757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4758 { (eval echo configure:4759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4760 if test -z "$ac_err"; then
4761 rm -rf conftest*
4762 eval "ac_cv_header_$ac_safe=yes"
4763 else
4764 echo "$ac_err" >&5
4765 echo "configure: failed program was:" >&5
4766 cat conftest.$ac_ext >&5
4767 rm -rf conftest*
4768 eval "ac_cv_header_$ac_safe=no"
4770 rm -f conftest*
4772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4773 echo "$ac_t""yes" 1>&6
4774 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4775 cat >> confdefs.h <<EOF
4776 #define $ac_tr_hdr 1
4778 ac_has_wctype_h=yes
4779 else
4780 echo "$ac_t""no" 1>&6
4781 ac_has_wctype_h=no
4783 done
4786 if test x"$ac_has_wchar_h" = xyes &&
4787 test x"$ac_has_wctype_h" = xyes &&
4788 test x"$enable_c_mbchar" != xno; then
4790 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4791 echo "configure:4792: checking for WCHAR_MIN and WCHAR_MAX" >&5
4792 cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 #include <wchar.h>
4796 int main() {
4797 int i = WCHAR_MIN; int j = WCHAR_MAX;
4798 ; return 0; }
4800 if { (eval echo configure:4801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4801 rm -rf conftest*
4802 has_wchar_minmax=yes
4803 else
4804 echo "configure: failed program was:" >&5
4805 cat conftest.$ac_ext >&5
4806 rm -rf conftest*
4807 has_wchar_minmax=no
4809 rm -f conftest*
4810 echo "$ac_t""$has_wchar_minmax" 1>&6
4812 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4813 echo "configure:4814: checking for WEOF" >&5
4814 cat > conftest.$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4818 #include <wchar.h>
4819 #include <stddef.h>
4820 int main() {
4821 wint_t i = WEOF;
4822 ; return 0; }
4824 if { (eval echo configure:4825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4825 rm -rf conftest*
4826 has_weof=yes
4827 else
4828 echo "configure: failed program was:" >&5
4829 cat conftest.$ac_ext >&5
4830 rm -rf conftest*
4831 has_weof=no
4833 rm -f conftest*
4834 echo "$ac_t""$has_weof" 1>&6
4836 ac_wfuncs=yes
4837 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4840 echo "configure:4841: checking for $ac_func" >&5
4841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4842 echo $ac_n "(cached) $ac_c" 1>&6
4843 else
4844 cat > conftest.$ac_ext <<EOF
4845 #line 4846 "configure"
4846 #include "confdefs.h"
4847 /* System header to define __stub macros and hopefully few prototypes,
4848 which can conflict with char $ac_func(); below. */
4849 #include <assert.h>
4850 /* Override any gcc2 internal prototype to avoid an error. */
4851 /* We use char because int might match the return type of a gcc2
4852 builtin and then its argument prototype would still apply. */
4853 char $ac_func();
4855 int main() {
4857 /* The GNU C library defines this for functions which it implements
4858 to always fail with ENOSYS. Some functions are actually named
4859 something starting with __ and the normal name is an alias. */
4860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4861 choke me
4862 #else
4863 $ac_func();
4864 #endif
4866 ; return 0; }
4868 if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4869 rm -rf conftest*
4870 eval "ac_cv_func_$ac_func=yes"
4871 else
4872 echo "configure: failed program was:" >&5
4873 cat conftest.$ac_ext >&5
4874 rm -rf conftest*
4875 eval "ac_cv_func_$ac_func=no"
4877 rm -f conftest*
4880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4881 echo "$ac_t""yes" 1>&6
4882 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4883 cat >> confdefs.h <<EOF
4884 #define $ac_tr_func 1
4887 else
4888 echo "$ac_t""no" 1>&6
4890 ac_wfuncs=no
4892 done
4895 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
4896 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4897 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4898 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4899 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4900 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4903 echo "configure:4904: checking for $ac_func" >&5
4904 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4905 echo $ac_n "(cached) $ac_c" 1>&6
4906 else
4907 cat > conftest.$ac_ext <<EOF
4908 #line 4909 "configure"
4909 #include "confdefs.h"
4910 /* System header to define __stub macros and hopefully few prototypes,
4911 which can conflict with char $ac_func(); below. */
4912 #include <assert.h>
4913 /* Override any gcc2 internal prototype to avoid an error. */
4914 /* We use char because int might match the return type of a gcc2
4915 builtin and then its argument prototype would still apply. */
4916 char $ac_func();
4918 int main() {
4920 /* The GNU C library defines this for functions which it implements
4921 to always fail with ENOSYS. Some functions are actually named
4922 something starting with __ and the normal name is an alias. */
4923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4924 choke me
4925 #else
4926 $ac_func();
4927 #endif
4929 ; return 0; }
4931 if { (eval echo configure:4932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4932 rm -rf conftest*
4933 eval "ac_cv_func_$ac_func=yes"
4934 else
4935 echo "configure: failed program was:" >&5
4936 cat conftest.$ac_ext >&5
4937 rm -rf conftest*
4938 eval "ac_cv_func_$ac_func=no"
4940 rm -f conftest*
4943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4944 echo "$ac_t""yes" 1>&6
4945 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4946 cat >> confdefs.h <<EOF
4947 #define $ac_tr_func 1
4950 else
4951 echo "$ac_t""no" 1>&6
4953 ac_wfuncs=no
4955 done
4958 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4959 echo "configure:4960: checking for ISO C99 wchar_t support" >&5
4960 if test x"$has_weof" = xyes &&
4961 test x"$has_wchar_minmax" = xyes &&
4962 test x"$ac_wfuncs" = xyes; then
4963 ac_isoC99_wchar_t=yes
4964 else
4965 ac_isoC99_wchar_t=no
4967 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4969 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4970 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4971 echo "configure:4972: checking for iconv.h" >&5
4972 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4973 echo $ac_n "(cached) $ac_c" 1>&6
4974 else
4975 cat > conftest.$ac_ext <<EOF
4976 #line 4977 "configure"
4977 #include "confdefs.h"
4978 #include <iconv.h>
4980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4981 { (eval echo configure:4982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4983 if test -z "$ac_err"; then
4984 rm -rf conftest*
4985 eval "ac_cv_header_$ac_safe=yes"
4986 else
4987 echo "$ac_err" >&5
4988 echo "configure: failed program was:" >&5
4989 cat conftest.$ac_ext >&5
4990 rm -rf conftest*
4991 eval "ac_cv_header_$ac_safe=no"
4993 rm -f conftest*
4995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4996 echo "$ac_t""yes" 1>&6
4997 ac_has_iconv_h=yes
4998 else
4999 echo "$ac_t""no" 1>&6
5000 ac_has_iconv_h=no
5003 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5004 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5005 echo "configure:5006: checking for langinfo.h" >&5
5006 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5007 echo $ac_n "(cached) $ac_c" 1>&6
5008 else
5009 cat > conftest.$ac_ext <<EOF
5010 #line 5011 "configure"
5011 #include "confdefs.h"
5012 #include <langinfo.h>
5014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5015 { (eval echo configure:5016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5017 if test -z "$ac_err"; then
5018 rm -rf conftest*
5019 eval "ac_cv_header_$ac_safe=yes"
5020 else
5021 echo "$ac_err" >&5
5022 echo "configure: failed program was:" >&5
5023 cat conftest.$ac_ext >&5
5024 rm -rf conftest*
5025 eval "ac_cv_header_$ac_safe=no"
5027 rm -f conftest*
5029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5030 echo "$ac_t""yes" 1>&6
5031 ac_has_langinfo_h=yes
5032 else
5033 echo "$ac_t""no" 1>&6
5034 ac_has_langinfo_h=no
5038 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5039 echo "configure:5040: checking for iconv in -liconv" >&5
5040 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5042 echo $ac_n "(cached) $ac_c" 1>&6
5043 else
5044 ac_save_LIBS="$LIBS"
5045 LIBS="-liconv $LIBS"
5046 cat > conftest.$ac_ext <<EOF
5047 #line 5048 "configure"
5048 #include "confdefs.h"
5049 /* Override any gcc2 internal prototype to avoid an error. */
5050 /* We use char because int might match the return type of a gcc2
5051 builtin and then its argument prototype would still apply. */
5052 char iconv();
5054 int main() {
5055 iconv()
5056 ; return 0; }
5058 if { (eval echo configure:5059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5059 rm -rf conftest*
5060 eval "ac_cv_lib_$ac_lib_var=yes"
5061 else
5062 echo "configure: failed program was:" >&5
5063 cat conftest.$ac_ext >&5
5064 rm -rf conftest*
5065 eval "ac_cv_lib_$ac_lib_var=no"
5067 rm -f conftest*
5068 LIBS="$ac_save_LIBS"
5071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5072 echo "$ac_t""yes" 1>&6
5073 libiconv="-liconv"
5074 else
5075 echo "$ac_t""no" 1>&6
5078 ac_save_LIBS="$LIBS"
5079 LIBS="$LIBS $libiconv"
5081 for ac_func in iconv_open iconv_close iconv nl_langinfo
5083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5084 echo "configure:5085: checking for $ac_func" >&5
5085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6
5087 else
5088 cat > conftest.$ac_ext <<EOF
5089 #line 5090 "configure"
5090 #include "confdefs.h"
5091 /* System header to define __stub macros and hopefully few prototypes,
5092 which can conflict with char $ac_func(); below. */
5093 #include <assert.h>
5094 /* Override any gcc2 internal prototype to avoid an error. */
5095 /* We use char because int might match the return type of a gcc2
5096 builtin and then its argument prototype would still apply. */
5097 char $ac_func();
5099 int main() {
5101 /* The GNU C library defines this for functions which it implements
5102 to always fail with ENOSYS. Some functions are actually named
5103 something starting with __ and the normal name is an alias. */
5104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5105 choke me
5106 #else
5107 $ac_func();
5108 #endif
5110 ; return 0; }
5112 if { (eval echo configure:5113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5113 rm -rf conftest*
5114 eval "ac_cv_func_$ac_func=yes"
5115 else
5116 echo "configure: failed program was:" >&5
5117 cat conftest.$ac_ext >&5
5118 rm -rf conftest*
5119 eval "ac_cv_func_$ac_func=no"
5121 rm -f conftest*
5124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5125 echo "$ac_t""yes" 1>&6
5126 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5127 cat >> confdefs.h <<EOF
5128 #define $ac_tr_func 1
5131 ac_XPG2funcs=yes
5132 else
5133 echo "$ac_t""no" 1>&6
5134 ac_XPG2funcs=no
5136 done
5139 LIBS="$ac_save_LIBS"
5141 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5142 echo "configure:5143: checking for XPG2 wchar_t support" >&5
5143 if test x"$ac_has_iconv_h" = xyes &&
5144 test x"$ac_has_langinfo_h" = xyes &&
5145 test x"$ac_XPG2funcs" = xyes; then
5146 ac_XPG2_wchar_t=yes
5147 else
5148 ac_XPG2_wchar_t=no
5150 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5152 if test x"$ac_isoC99_wchar_t" = xyes &&
5153 test x"$ac_XPG2_wchar_t" = xyes; then
5154 cat >> confdefs.h <<\EOF
5155 #define _GLIBCPP_USE_WCHAR_T 1
5158 enable_wchar_t=yes
5161 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5162 echo "configure:5163: checking for enabled wchar_t specializations" >&5
5163 echo "$ac_t""$enable_wchar_t" 1>&6
5165 cat >> confdefs.h <<\EOF
5166 #define HAVE_LC_MESSAGES 1
5169 cat >> confdefs.h <<\EOF
5170 #define HAVE_DRAND48 1
5173 cat >> confdefs.h <<\EOF
5174 #define HAVE_GETPAGESIZE 1
5177 cat >> confdefs.h <<\EOF
5178 #define HAVE_SETENV 1
5181 cat >> confdefs.h <<\EOF
5182 #define HAVE_SIGSETJMP 1
5185 cat >> confdefs.h <<\EOF
5186 #define HAVE_COPYSIGN 1
5189 cat >> confdefs.h <<\EOF
5190 #define HAVE_COPYSIGNF 1
5193 cat >> confdefs.h <<\EOF
5194 #define HAVE_FINITEF 1
5197 cat >> confdefs.h <<\EOF
5198 #define HAVE_FINITE 1
5201 cat >> confdefs.h <<\EOF
5202 #define HAVE_FREXPF 1
5205 cat >> confdefs.h <<\EOF
5206 #define HAVE_HYPOT 1
5209 cat >> confdefs.h <<\EOF
5210 #define HAVE_HYPOTF 1
5213 cat >> confdefs.h <<\EOF
5214 #define HAVE_ISINF 1
5217 cat >> confdefs.h <<\EOF
5218 #define HAVE_ISNAN 1
5221 cat >> confdefs.h <<\EOF
5222 #define HAVE_ISNANF 1
5226 cat >> confdefs.h <<\EOF
5227 #define HAVE_MMAP 1
5230 cat >> confdefs.h <<\EOF
5231 #define HAVE_ACOSF 1
5234 cat >> confdefs.h <<\EOF
5235 #define HAVE_ASINF 1
5238 cat >> confdefs.h <<\EOF
5239 #define HAVE_ATAN2F 1
5242 cat >> confdefs.h <<\EOF
5243 #define HAVE_ATANF 1
5246 cat >> confdefs.h <<\EOF
5247 #define HAVE_CEILF 1
5250 cat >> confdefs.h <<\EOF
5251 #define HAVE_COPYSIGN 1
5254 cat >> confdefs.h <<\EOF
5255 #define HAVE_COPYSIGNF 1
5258 cat >> confdefs.h <<\EOF
5259 #define HAVE_COSF 1
5262 cat >> confdefs.h <<\EOF
5263 #define HAVE_COSHF 1
5266 cat >> confdefs.h <<\EOF
5267 #define HAVE_EXPF 1
5270 cat >> confdefs.h <<\EOF
5271 #define HAVE_FABSF 1
5274 cat >> confdefs.h <<\EOF
5275 #define HAVE_FLOORF 1
5278 cat >> confdefs.h <<\EOF
5279 #define HAVE_FMODF 1
5282 cat >> confdefs.h <<\EOF
5283 #define HAVE_FREXPF 1
5286 cat >> confdefs.h <<\EOF
5287 #define HAVE_LDEXPF 1
5290 cat >> confdefs.h <<\EOF
5291 #define HAVE_LOG10F 1
5294 cat >> confdefs.h <<\EOF
5295 #define HAVE_LOGF 1
5298 cat >> confdefs.h <<\EOF
5299 #define HAVE_MODFF 1
5302 cat >> confdefs.h <<\EOF
5303 #define HAVE_POWF 1
5306 cat >> confdefs.h <<\EOF
5307 #define HAVE_SINF 1
5310 cat >> confdefs.h <<\EOF
5311 #define HAVE_SINHF 1
5314 cat >> confdefs.h <<\EOF
5315 #define HAVE_SQRTF 1
5318 cat >> confdefs.h <<\EOF
5319 #define HAVE_TANF 1
5322 cat >> confdefs.h <<\EOF
5323 #define HAVE_TANHF 1
5326 if test x"long_double_math_on_this_cpu" = x"yes"; then
5327 cat >> confdefs.h <<\EOF
5328 #define HAVE_FINITEL 1
5331 cat >> confdefs.h <<\EOF
5332 #define HAVE_ISINFL 1
5335 cat >> confdefs.h <<\EOF
5336 #define HAVE_ISNANL 1
5341 *-hpux*)
5342 os_include_dir="os/hpux"
5343 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5344 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5345 fp.h locale.h float.h inttypes.h
5347 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5348 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5349 echo "configure:5350: checking for $ac_hdr" >&5
5350 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6
5352 else
5353 cat > conftest.$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5356 #include <$ac_hdr>
5358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5359 { (eval echo configure:5360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5361 if test -z "$ac_err"; then
5362 rm -rf conftest*
5363 eval "ac_cv_header_$ac_safe=yes"
5364 else
5365 echo "$ac_err" >&5
5366 echo "configure: failed program was:" >&5
5367 cat conftest.$ac_ext >&5
5368 rm -rf conftest*
5369 eval "ac_cv_header_$ac_safe=no"
5371 rm -f conftest*
5373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5374 echo "$ac_t""yes" 1>&6
5375 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5376 cat >> confdefs.h <<EOF
5377 #define $ac_tr_hdr 1
5380 else
5381 echo "$ac_t""no" 1>&6
5383 done
5385 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5388 # If we're not using GNU ld, then there's no point in even trying these
5389 # tests. Check for that first. We should have already tested for gld
5390 # by now (in libtool), but require it now just to be safe...
5391 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5392 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5395 # The name set by libtool depends on the version of libtool. Shame on us
5396 # for depending on an impl detail, but c'est la vie. Older versions used
5397 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5398 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5399 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5400 # set (hence we're using an older libtool), then set it.
5401 if test x${with_gnu_ld+set} != xset; then
5402 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5403 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5404 with_gnu_ld=no
5405 else
5406 with_gnu_ld=$ac_cv_prog_gnu_ld
5410 # Start by getting the version number. I think the libtool test already
5411 # does some of this, but throws away the result.
5413 ldver=`$LD --version 2>/dev/null | head -1 | \
5414 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5416 glibcpp_gnu_ld_version=`echo $ldver | \
5417 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5419 # Set --gc-sections.
5420 if test "$with_gnu_ld" = "notbroken"; then
5421 # GNU ld it is! Joy and bunny rabbits!
5423 # All these tests are for C++; save the language and the compiler flags.
5424 # Need to do this so that g++ won't try to link in libstdc++
5425 ac_test_CFLAGS="${CFLAGS+set}"
5426 ac_save_CFLAGS="$CFLAGS"
5427 CFLAGS='-x c++ -Wl,--gc-sections'
5429 # Check for -Wl,--gc-sections
5430 # XXX This test is broken at the moment, as symbols required for
5431 # linking are now in libsupc++ (not built yet.....). In addition,
5432 # this test has cored on solaris in the past. In addition,
5433 # --gc-sections doesn't really work at the moment (keeps on discarding
5434 # used sections, first .eh_frame and now some of the glibc sections for
5435 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5436 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5437 echo "configure:5438: checking for ld that supports -Wl,--gc-sections" >&5
5438 if test "$cross_compiling" = yes; then
5439 ac_sectionLDflags=yes
5440 else
5441 cat > conftest.$ac_ext <<EOF
5442 #line 5443 "configure"
5443 #include "confdefs.h"
5445 int main(void)
5447 try { throw 1; }
5448 catch (...) { };
5449 return 0;
5453 if { (eval echo configure:5454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5454 then
5455 ac_sectionLDflags=yes
5456 else
5457 echo "configure: failed program was:" >&5
5458 cat conftest.$ac_ext >&5
5459 rm -fr conftest*
5460 ac_sectionLDflags=no
5462 rm -fr conftest*
5465 if test "$ac_test_CFLAGS" = set; then
5466 CFLAGS="$ac_save_CFLAGS"
5467 else
5468 # this is the suspicious part
5469 CFLAGS=''
5471 if test "$ac_sectionLDflags" = "yes"; then
5472 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5474 echo "$ac_t""$ac_sectionLDflags" 1>&6
5477 # Set linker optimization flags.
5478 if test x"$with_gnu_ld" = x"yes"; then
5479 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5486 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5487 echo "configure:5488: checking for main in -lm" >&5
5488 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5489 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5490 echo $ac_n "(cached) $ac_c" 1>&6
5491 else
5492 ac_save_LIBS="$LIBS"
5493 LIBS="-lm $LIBS"
5494 cat > conftest.$ac_ext <<EOF
5495 #line 5496 "configure"
5496 #include "confdefs.h"
5498 int main() {
5499 main()
5500 ; return 0; }
5502 if { (eval echo configure:5503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5503 rm -rf conftest*
5504 eval "ac_cv_lib_$ac_lib_var=yes"
5505 else
5506 echo "configure: failed program was:" >&5
5507 cat conftest.$ac_ext >&5
5508 rm -rf conftest*
5509 eval "ac_cv_lib_$ac_lib_var=no"
5511 rm -f conftest*
5512 LIBS="$ac_save_LIBS"
5515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5516 echo "$ac_t""yes" 1>&6
5517 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5518 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5519 cat >> confdefs.h <<EOF
5520 #define $ac_tr_lib 1
5523 LIBS="-lm $LIBS"
5525 else
5526 echo "$ac_t""no" 1>&6
5529 for ac_func in nan copysignf
5531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5532 echo "configure:5533: checking for $ac_func" >&5
5533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5534 echo $ac_n "(cached) $ac_c" 1>&6
5535 else
5536 cat > conftest.$ac_ext <<EOF
5537 #line 5538 "configure"
5538 #include "confdefs.h"
5539 /* System header to define __stub macros and hopefully few prototypes,
5540 which can conflict with char $ac_func(); below. */
5541 #include <assert.h>
5542 /* Override any gcc2 internal prototype to avoid an error. */
5543 /* We use char because int might match the return type of a gcc2
5544 builtin and then its argument prototype would still apply. */
5545 char $ac_func();
5547 int main() {
5549 /* The GNU C library defines this for functions which it implements
5550 to always fail with ENOSYS. Some functions are actually named
5551 something starting with __ and the normal name is an alias. */
5552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5553 choke me
5554 #else
5555 $ac_func();
5556 #endif
5558 ; return 0; }
5560 if { (eval echo configure:5561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5561 rm -rf conftest*
5562 eval "ac_cv_func_$ac_func=yes"
5563 else
5564 echo "configure: failed program was:" >&5
5565 cat conftest.$ac_ext >&5
5566 rm -rf conftest*
5567 eval "ac_cv_func_$ac_func=no"
5569 rm -f conftest*
5572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5573 echo "$ac_t""yes" 1>&6
5574 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5575 cat >> confdefs.h <<EOF
5576 #define $ac_tr_func 1
5579 else
5580 echo "$ac_t""no" 1>&6
5581 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5583 done
5586 for ac_func in __signbit
5588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5589 echo "configure:5590: checking for $ac_func" >&5
5590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5591 echo $ac_n "(cached) $ac_c" 1>&6
5592 else
5593 cat > conftest.$ac_ext <<EOF
5594 #line 5595 "configure"
5595 #include "confdefs.h"
5596 /* System header to define __stub macros and hopefully few prototypes,
5597 which can conflict with char $ac_func(); below. */
5598 #include <assert.h>
5599 /* Override any gcc2 internal prototype to avoid an error. */
5600 /* We use char because int might match the return type of a gcc2
5601 builtin and then its argument prototype would still apply. */
5602 char $ac_func();
5604 int main() {
5606 /* The GNU C library defines this for functions which it implements
5607 to always fail with ENOSYS. Some functions are actually named
5608 something starting with __ and the normal name is an alias. */
5609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5610 choke me
5611 #else
5612 $ac_func();
5613 #endif
5615 ; return 0; }
5617 if { (eval echo configure:5618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5618 rm -rf conftest*
5619 eval "ac_cv_func_$ac_func=yes"
5620 else
5621 echo "configure: failed program was:" >&5
5622 cat conftest.$ac_ext >&5
5623 rm -rf conftest*
5624 eval "ac_cv_func_$ac_func=no"
5626 rm -f conftest*
5629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5630 echo "$ac_t""yes" 1>&6
5631 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5632 cat >> confdefs.h <<EOF
5633 #define $ac_tr_func 1
5636 else
5637 echo "$ac_t""no" 1>&6
5638 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5640 done
5642 for ac_func in __signbitf
5644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5645 echo "configure:5646: checking for $ac_func" >&5
5646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5647 echo $ac_n "(cached) $ac_c" 1>&6
5648 else
5649 cat > conftest.$ac_ext <<EOF
5650 #line 5651 "configure"
5651 #include "confdefs.h"
5652 /* System header to define __stub macros and hopefully few prototypes,
5653 which can conflict with char $ac_func(); below. */
5654 #include <assert.h>
5655 /* Override any gcc2 internal prototype to avoid an error. */
5656 /* We use char because int might match the return type of a gcc2
5657 builtin and then its argument prototype would still apply. */
5658 char $ac_func();
5660 int main() {
5662 /* The GNU C library defines this for functions which it implements
5663 to always fail with ENOSYS. Some functions are actually named
5664 something starting with __ and the normal name is an alias. */
5665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5666 choke me
5667 #else
5668 $ac_func();
5669 #endif
5671 ; return 0; }
5673 if { (eval echo configure:5674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5674 rm -rf conftest*
5675 eval "ac_cv_func_$ac_func=yes"
5676 else
5677 echo "configure: failed program was:" >&5
5678 cat conftest.$ac_ext >&5
5679 rm -rf conftest*
5680 eval "ac_cv_func_$ac_func=no"
5682 rm -f conftest*
5685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5686 echo "$ac_t""yes" 1>&6
5687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5688 cat >> confdefs.h <<EOF
5689 #define $ac_tr_func 1
5692 else
5693 echo "$ac_t""no" 1>&6
5694 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5696 done
5699 if test x$ac_cv_func_copysignl = x"yes"; then
5700 for ac_func in __signbitl
5702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5703 echo "configure:5704: checking for $ac_func" >&5
5704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5705 echo $ac_n "(cached) $ac_c" 1>&6
5706 else
5707 cat > conftest.$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5710 /* System header to define __stub macros and hopefully few prototypes,
5711 which can conflict with char $ac_func(); below. */
5712 #include <assert.h>
5713 /* Override any gcc2 internal prototype to avoid an error. */
5714 /* We use char because int might match the return type of a gcc2
5715 builtin and then its argument prototype would still apply. */
5716 char $ac_func();
5718 int main() {
5720 /* The GNU C library defines this for functions which it implements
5721 to always fail with ENOSYS. Some functions are actually named
5722 something starting with __ and the normal name is an alias. */
5723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5724 choke me
5725 #else
5726 $ac_func();
5727 #endif
5729 ; return 0; }
5731 if { (eval echo configure:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5732 rm -rf conftest*
5733 eval "ac_cv_func_$ac_func=yes"
5734 else
5735 echo "configure: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5737 rm -rf conftest*
5738 eval "ac_cv_func_$ac_func=no"
5740 rm -f conftest*
5743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5744 echo "$ac_t""yes" 1>&6
5745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5746 cat >> confdefs.h <<EOF
5747 #define $ac_tr_func 1
5750 else
5751 echo "$ac_t""no" 1>&6
5752 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5754 done
5758 if test -n "$LIBMATHOBJS"; then
5759 need_libmath=yes
5765 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5766 echo "configure:5767: checking for mbstate_t" >&5
5767 cat > conftest.$ac_ext <<EOF
5768 #line 5769 "configure"
5769 #include "confdefs.h"
5770 #include <wchar.h>
5771 int main() {
5772 mbstate_t teststate;
5773 ; return 0; }
5775 if { (eval echo configure:5776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5776 rm -rf conftest*
5777 have_mbstate_t=yes
5778 else
5779 echo "configure: failed program was:" >&5
5780 cat conftest.$ac_ext >&5
5781 rm -rf conftest*
5782 have_mbstate_t=no
5784 rm -f conftest*
5785 echo "$ac_t""$have_mbstate_t" 1>&6
5786 if test x"$have_mbstate_t" = xyes; then
5787 cat >> confdefs.h <<\EOF
5788 #define HAVE_MBSTATE_T 1
5793 for ac_hdr in wchar.h
5795 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5797 echo "configure:5798: checking for $ac_hdr" >&5
5798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5799 echo $ac_n "(cached) $ac_c" 1>&6
5800 else
5801 cat > conftest.$ac_ext <<EOF
5802 #line 5803 "configure"
5803 #include "confdefs.h"
5804 #include <$ac_hdr>
5806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5807 { (eval echo configure:5808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5809 if test -z "$ac_err"; then
5810 rm -rf conftest*
5811 eval "ac_cv_header_$ac_safe=yes"
5812 else
5813 echo "$ac_err" >&5
5814 echo "configure: failed program was:" >&5
5815 cat conftest.$ac_ext >&5
5816 rm -rf conftest*
5817 eval "ac_cv_header_$ac_safe=no"
5819 rm -f conftest*
5821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5822 echo "$ac_t""yes" 1>&6
5823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5824 cat >> confdefs.h <<EOF
5825 #define $ac_tr_hdr 1
5827 ac_has_wchar_h=yes
5828 else
5829 echo "$ac_t""no" 1>&6
5830 ac_has_wchar_h=no
5832 done
5834 for ac_hdr in wctype.h
5836 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5837 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5838 echo "configure:5839: checking for $ac_hdr" >&5
5839 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5840 echo $ac_n "(cached) $ac_c" 1>&6
5841 else
5842 cat > conftest.$ac_ext <<EOF
5843 #line 5844 "configure"
5844 #include "confdefs.h"
5845 #include <$ac_hdr>
5847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5848 { (eval echo configure:5849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5850 if test -z "$ac_err"; then
5851 rm -rf conftest*
5852 eval "ac_cv_header_$ac_safe=yes"
5853 else
5854 echo "$ac_err" >&5
5855 echo "configure: failed program was:" >&5
5856 cat conftest.$ac_ext >&5
5857 rm -rf conftest*
5858 eval "ac_cv_header_$ac_safe=no"
5860 rm -f conftest*
5862 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5863 echo "$ac_t""yes" 1>&6
5864 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5865 cat >> confdefs.h <<EOF
5866 #define $ac_tr_hdr 1
5868 ac_has_wctype_h=yes
5869 else
5870 echo "$ac_t""no" 1>&6
5871 ac_has_wctype_h=no
5873 done
5876 if test x"$ac_has_wchar_h" = xyes &&
5877 test x"$ac_has_wctype_h" = xyes &&
5878 test x"$enable_c_mbchar" != xno; then
5880 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5881 echo "configure:5882: checking for WCHAR_MIN and WCHAR_MAX" >&5
5882 cat > conftest.$ac_ext <<EOF
5883 #line 5884 "configure"
5884 #include "confdefs.h"
5885 #include <wchar.h>
5886 int main() {
5887 int i = WCHAR_MIN; int j = WCHAR_MAX;
5888 ; return 0; }
5890 if { (eval echo configure:5891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5891 rm -rf conftest*
5892 has_wchar_minmax=yes
5893 else
5894 echo "configure: failed program was:" >&5
5895 cat conftest.$ac_ext >&5
5896 rm -rf conftest*
5897 has_wchar_minmax=no
5899 rm -f conftest*
5900 echo "$ac_t""$has_wchar_minmax" 1>&6
5902 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5903 echo "configure:5904: checking for WEOF" >&5
5904 cat > conftest.$ac_ext <<EOF
5905 #line 5906 "configure"
5906 #include "confdefs.h"
5908 #include <wchar.h>
5909 #include <stddef.h>
5910 int main() {
5911 wint_t i = WEOF;
5912 ; return 0; }
5914 if { (eval echo configure:5915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5915 rm -rf conftest*
5916 has_weof=yes
5917 else
5918 echo "configure: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5920 rm -rf conftest*
5921 has_weof=no
5923 rm -f conftest*
5924 echo "$ac_t""$has_weof" 1>&6
5926 ac_wfuncs=yes
5927 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5930 echo "configure:5931: checking for $ac_func" >&5
5931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5932 echo $ac_n "(cached) $ac_c" 1>&6
5933 else
5934 cat > conftest.$ac_ext <<EOF
5935 #line 5936 "configure"
5936 #include "confdefs.h"
5937 /* System header to define __stub macros and hopefully few prototypes,
5938 which can conflict with char $ac_func(); below. */
5939 #include <assert.h>
5940 /* Override any gcc2 internal prototype to avoid an error. */
5941 /* We use char because int might match the return type of a gcc2
5942 builtin and then its argument prototype would still apply. */
5943 char $ac_func();
5945 int main() {
5947 /* The GNU C library defines this for functions which it implements
5948 to always fail with ENOSYS. Some functions are actually named
5949 something starting with __ and the normal name is an alias. */
5950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5951 choke me
5952 #else
5953 $ac_func();
5954 #endif
5956 ; return 0; }
5958 if { (eval echo configure:5959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5959 rm -rf conftest*
5960 eval "ac_cv_func_$ac_func=yes"
5961 else
5962 echo "configure: failed program was:" >&5
5963 cat conftest.$ac_ext >&5
5964 rm -rf conftest*
5965 eval "ac_cv_func_$ac_func=no"
5967 rm -f conftest*
5970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5971 echo "$ac_t""yes" 1>&6
5972 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5973 cat >> confdefs.h <<EOF
5974 #define $ac_tr_func 1
5977 else
5978 echo "$ac_t""no" 1>&6
5980 ac_wfuncs=no
5982 done
5985 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
5986 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5987 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5988 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5989 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5990 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5993 echo "configure:5994: checking for $ac_func" >&5
5994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5995 echo $ac_n "(cached) $ac_c" 1>&6
5996 else
5997 cat > conftest.$ac_ext <<EOF
5998 #line 5999 "configure"
5999 #include "confdefs.h"
6000 /* System header to define __stub macros and hopefully few prototypes,
6001 which can conflict with char $ac_func(); below. */
6002 #include <assert.h>
6003 /* Override any gcc2 internal prototype to avoid an error. */
6004 /* We use char because int might match the return type of a gcc2
6005 builtin and then its argument prototype would still apply. */
6006 char $ac_func();
6008 int main() {
6010 /* The GNU C library defines this for functions which it implements
6011 to always fail with ENOSYS. Some functions are actually named
6012 something starting with __ and the normal name is an alias. */
6013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6014 choke me
6015 #else
6016 $ac_func();
6017 #endif
6019 ; return 0; }
6021 if { (eval echo configure:6022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6022 rm -rf conftest*
6023 eval "ac_cv_func_$ac_func=yes"
6024 else
6025 echo "configure: failed program was:" >&5
6026 cat conftest.$ac_ext >&5
6027 rm -rf conftest*
6028 eval "ac_cv_func_$ac_func=no"
6030 rm -f conftest*
6033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6034 echo "$ac_t""yes" 1>&6
6035 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6036 cat >> confdefs.h <<EOF
6037 #define $ac_tr_func 1
6040 else
6041 echo "$ac_t""no" 1>&6
6043 ac_wfuncs=no
6045 done
6048 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6049 echo "configure:6050: checking for ISO C99 wchar_t support" >&5
6050 if test x"$has_weof" = xyes &&
6051 test x"$has_wchar_minmax" = xyes &&
6052 test x"$ac_wfuncs" = xyes; then
6053 ac_isoC99_wchar_t=yes
6054 else
6055 ac_isoC99_wchar_t=no
6057 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6059 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6060 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6061 echo "configure:6062: checking for iconv.h" >&5
6062 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6063 echo $ac_n "(cached) $ac_c" 1>&6
6064 else
6065 cat > conftest.$ac_ext <<EOF
6066 #line 6067 "configure"
6067 #include "confdefs.h"
6068 #include <iconv.h>
6070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6071 { (eval echo configure:6072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6073 if test -z "$ac_err"; then
6074 rm -rf conftest*
6075 eval "ac_cv_header_$ac_safe=yes"
6076 else
6077 echo "$ac_err" >&5
6078 echo "configure: failed program was:" >&5
6079 cat conftest.$ac_ext >&5
6080 rm -rf conftest*
6081 eval "ac_cv_header_$ac_safe=no"
6083 rm -f conftest*
6085 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6086 echo "$ac_t""yes" 1>&6
6087 ac_has_iconv_h=yes
6088 else
6089 echo "$ac_t""no" 1>&6
6090 ac_has_iconv_h=no
6093 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6094 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6095 echo "configure:6096: checking for langinfo.h" >&5
6096 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6097 echo $ac_n "(cached) $ac_c" 1>&6
6098 else
6099 cat > conftest.$ac_ext <<EOF
6100 #line 6101 "configure"
6101 #include "confdefs.h"
6102 #include <langinfo.h>
6104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6105 { (eval echo configure:6106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6107 if test -z "$ac_err"; then
6108 rm -rf conftest*
6109 eval "ac_cv_header_$ac_safe=yes"
6110 else
6111 echo "$ac_err" >&5
6112 echo "configure: failed program was:" >&5
6113 cat conftest.$ac_ext >&5
6114 rm -rf conftest*
6115 eval "ac_cv_header_$ac_safe=no"
6117 rm -f conftest*
6119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6120 echo "$ac_t""yes" 1>&6
6121 ac_has_langinfo_h=yes
6122 else
6123 echo "$ac_t""no" 1>&6
6124 ac_has_langinfo_h=no
6128 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6129 echo "configure:6130: checking for iconv in -liconv" >&5
6130 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6131 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6132 echo $ac_n "(cached) $ac_c" 1>&6
6133 else
6134 ac_save_LIBS="$LIBS"
6135 LIBS="-liconv $LIBS"
6136 cat > conftest.$ac_ext <<EOF
6137 #line 6138 "configure"
6138 #include "confdefs.h"
6139 /* Override any gcc2 internal prototype to avoid an error. */
6140 /* We use char because int might match the return type of a gcc2
6141 builtin and then its argument prototype would still apply. */
6142 char iconv();
6144 int main() {
6145 iconv()
6146 ; return 0; }
6148 if { (eval echo configure:6149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6149 rm -rf conftest*
6150 eval "ac_cv_lib_$ac_lib_var=yes"
6151 else
6152 echo "configure: failed program was:" >&5
6153 cat conftest.$ac_ext >&5
6154 rm -rf conftest*
6155 eval "ac_cv_lib_$ac_lib_var=no"
6157 rm -f conftest*
6158 LIBS="$ac_save_LIBS"
6161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6162 echo "$ac_t""yes" 1>&6
6163 libiconv="-liconv"
6164 else
6165 echo "$ac_t""no" 1>&6
6168 ac_save_LIBS="$LIBS"
6169 LIBS="$LIBS $libiconv"
6171 for ac_func in iconv_open iconv_close iconv nl_langinfo
6173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6174 echo "configure:6175: checking for $ac_func" >&5
6175 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6176 echo $ac_n "(cached) $ac_c" 1>&6
6177 else
6178 cat > conftest.$ac_ext <<EOF
6179 #line 6180 "configure"
6180 #include "confdefs.h"
6181 /* System header to define __stub macros and hopefully few prototypes,
6182 which can conflict with char $ac_func(); below. */
6183 #include <assert.h>
6184 /* Override any gcc2 internal prototype to avoid an error. */
6185 /* We use char because int might match the return type of a gcc2
6186 builtin and then its argument prototype would still apply. */
6187 char $ac_func();
6189 int main() {
6191 /* The GNU C library defines this for functions which it implements
6192 to always fail with ENOSYS. Some functions are actually named
6193 something starting with __ and the normal name is an alias. */
6194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6195 choke me
6196 #else
6197 $ac_func();
6198 #endif
6200 ; return 0; }
6202 if { (eval echo configure:6203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6203 rm -rf conftest*
6204 eval "ac_cv_func_$ac_func=yes"
6205 else
6206 echo "configure: failed program was:" >&5
6207 cat conftest.$ac_ext >&5
6208 rm -rf conftest*
6209 eval "ac_cv_func_$ac_func=no"
6211 rm -f conftest*
6214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6215 echo "$ac_t""yes" 1>&6
6216 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6217 cat >> confdefs.h <<EOF
6218 #define $ac_tr_func 1
6221 ac_XPG2funcs=yes
6222 else
6223 echo "$ac_t""no" 1>&6
6224 ac_XPG2funcs=no
6226 done
6229 LIBS="$ac_save_LIBS"
6231 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6232 echo "configure:6233: checking for XPG2 wchar_t support" >&5
6233 if test x"$ac_has_iconv_h" = xyes &&
6234 test x"$ac_has_langinfo_h" = xyes &&
6235 test x"$ac_XPG2funcs" = xyes; then
6236 ac_XPG2_wchar_t=yes
6237 else
6238 ac_XPG2_wchar_t=no
6240 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6242 if test x"$ac_isoC99_wchar_t" = xyes &&
6243 test x"$ac_XPG2_wchar_t" = xyes; then
6244 cat >> confdefs.h <<\EOF
6245 #define _GLIBCPP_USE_WCHAR_T 1
6248 enable_wchar_t=yes
6251 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6252 echo "configure:6253: checking for enabled wchar_t specializations" >&5
6253 echo "$ac_t""$enable_wchar_t" 1>&6
6255 cat >> confdefs.h <<\EOF
6256 #define HAVE_COPYSIGN 1
6259 cat >> confdefs.h <<\EOF
6260 #define HAVE_COPYSIGNF 1
6263 cat >> confdefs.h <<\EOF
6264 #define HAVE_FREXPF 1
6267 cat >> confdefs.h <<\EOF
6268 #define HAVE_HYPOT 1
6271 case "$target" in
6272 *-hpux10*)
6273 cat >> confdefs.h <<\EOF
6274 #define HAVE_FINITE 1
6277 cat >> confdefs.h <<\EOF
6278 #define HAVE_FINITEF 1
6281 cat >> confdefs.h <<\EOF
6282 #define HAVE_ISINF 1
6285 cat >> confdefs.h <<\EOF
6286 #define HAVE_ISINFF 1
6289 cat >> confdefs.h <<\EOF
6290 #define HAVE_ISNAN 1
6293 cat >> confdefs.h <<\EOF
6294 #define HAVE_ISNANF 1
6298 esac
6300 *-linux*)
6301 os_include_dir="os/gnu-linux"
6302 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6303 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6304 fp.h locale.h float.h inttypes.h
6306 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6307 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6308 echo "configure:6309: checking for $ac_hdr" >&5
6309 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6310 echo $ac_n "(cached) $ac_c" 1>&6
6311 else
6312 cat > conftest.$ac_ext <<EOF
6313 #line 6314 "configure"
6314 #include "confdefs.h"
6315 #include <$ac_hdr>
6317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6318 { (eval echo configure:6319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6320 if test -z "$ac_err"; then
6321 rm -rf conftest*
6322 eval "ac_cv_header_$ac_safe=yes"
6323 else
6324 echo "$ac_err" >&5
6325 echo "configure: failed program was:" >&5
6326 cat conftest.$ac_ext >&5
6327 rm -rf conftest*
6328 eval "ac_cv_header_$ac_safe=no"
6330 rm -f conftest*
6332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6333 echo "$ac_t""yes" 1>&6
6334 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6335 cat >> confdefs.h <<EOF
6336 #define $ac_tr_hdr 1
6339 else
6340 echo "$ac_t""no" 1>&6
6342 done
6344 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6347 # If we're not using GNU ld, then there's no point in even trying these
6348 # tests. Check for that first. We should have already tested for gld
6349 # by now (in libtool), but require it now just to be safe...
6350 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6351 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6354 # The name set by libtool depends on the version of libtool. Shame on us
6355 # for depending on an impl detail, but c'est la vie. Older versions used
6356 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6357 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6358 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6359 # set (hence we're using an older libtool), then set it.
6360 if test x${with_gnu_ld+set} != xset; then
6361 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6362 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6363 with_gnu_ld=no
6364 else
6365 with_gnu_ld=$ac_cv_prog_gnu_ld
6369 # Start by getting the version number. I think the libtool test already
6370 # does some of this, but throws away the result.
6372 ldver=`$LD --version 2>/dev/null | head -1 | \
6373 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6375 glibcpp_gnu_ld_version=`echo $ldver | \
6376 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6378 # Set --gc-sections.
6379 if test "$with_gnu_ld" = "notbroken"; then
6380 # GNU ld it is! Joy and bunny rabbits!
6382 # All these tests are for C++; save the language and the compiler flags.
6383 # Need to do this so that g++ won't try to link in libstdc++
6384 ac_test_CFLAGS="${CFLAGS+set}"
6385 ac_save_CFLAGS="$CFLAGS"
6386 CFLAGS='-x c++ -Wl,--gc-sections'
6388 # Check for -Wl,--gc-sections
6389 # XXX This test is broken at the moment, as symbols required for
6390 # linking are now in libsupc++ (not built yet.....). In addition,
6391 # this test has cored on solaris in the past. In addition,
6392 # --gc-sections doesn't really work at the moment (keeps on discarding
6393 # used sections, first .eh_frame and now some of the glibc sections for
6394 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6395 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6396 echo "configure:6397: checking for ld that supports -Wl,--gc-sections" >&5
6397 if test "$cross_compiling" = yes; then
6398 ac_sectionLDflags=yes
6399 else
6400 cat > conftest.$ac_ext <<EOF
6401 #line 6402 "configure"
6402 #include "confdefs.h"
6404 int main(void)
6406 try { throw 1; }
6407 catch (...) { };
6408 return 0;
6412 if { (eval echo configure:6413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6413 then
6414 ac_sectionLDflags=yes
6415 else
6416 echo "configure: failed program was:" >&5
6417 cat conftest.$ac_ext >&5
6418 rm -fr conftest*
6419 ac_sectionLDflags=no
6421 rm -fr conftest*
6424 if test "$ac_test_CFLAGS" = set; then
6425 CFLAGS="$ac_save_CFLAGS"
6426 else
6427 # this is the suspicious part
6428 CFLAGS=''
6430 if test "$ac_sectionLDflags" = "yes"; then
6431 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6433 echo "$ac_t""$ac_sectionLDflags" 1>&6
6436 # Set linker optimization flags.
6437 if test x"$with_gnu_ld" = x"yes"; then
6438 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6445 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6446 echo "configure:6447: checking for main in -lm" >&5
6447 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6448 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6449 echo $ac_n "(cached) $ac_c" 1>&6
6450 else
6451 ac_save_LIBS="$LIBS"
6452 LIBS="-lm $LIBS"
6453 cat > conftest.$ac_ext <<EOF
6454 #line 6455 "configure"
6455 #include "confdefs.h"
6457 int main() {
6458 main()
6459 ; return 0; }
6461 if { (eval echo configure:6462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6462 rm -rf conftest*
6463 eval "ac_cv_lib_$ac_lib_var=yes"
6464 else
6465 echo "configure: failed program was:" >&5
6466 cat conftest.$ac_ext >&5
6467 rm -rf conftest*
6468 eval "ac_cv_lib_$ac_lib_var=no"
6470 rm -f conftest*
6471 LIBS="$ac_save_LIBS"
6474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6475 echo "$ac_t""yes" 1>&6
6476 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6477 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6478 cat >> confdefs.h <<EOF
6479 #define $ac_tr_lib 1
6482 LIBS="-lm $LIBS"
6484 else
6485 echo "$ac_t""no" 1>&6
6488 for ac_func in nan copysignf
6490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6491 echo "configure:6492: checking for $ac_func" >&5
6492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6493 echo $ac_n "(cached) $ac_c" 1>&6
6494 else
6495 cat > conftest.$ac_ext <<EOF
6496 #line 6497 "configure"
6497 #include "confdefs.h"
6498 /* System header to define __stub macros and hopefully few prototypes,
6499 which can conflict with char $ac_func(); below. */
6500 #include <assert.h>
6501 /* Override any gcc2 internal prototype to avoid an error. */
6502 /* We use char because int might match the return type of a gcc2
6503 builtin and then its argument prototype would still apply. */
6504 char $ac_func();
6506 int main() {
6508 /* The GNU C library defines this for functions which it implements
6509 to always fail with ENOSYS. Some functions are actually named
6510 something starting with __ and the normal name is an alias. */
6511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6512 choke me
6513 #else
6514 $ac_func();
6515 #endif
6517 ; return 0; }
6519 if { (eval echo configure:6520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6520 rm -rf conftest*
6521 eval "ac_cv_func_$ac_func=yes"
6522 else
6523 echo "configure: failed program was:" >&5
6524 cat conftest.$ac_ext >&5
6525 rm -rf conftest*
6526 eval "ac_cv_func_$ac_func=no"
6528 rm -f conftest*
6531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6532 echo "$ac_t""yes" 1>&6
6533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6534 cat >> confdefs.h <<EOF
6535 #define $ac_tr_func 1
6538 else
6539 echo "$ac_t""no" 1>&6
6540 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6542 done
6545 for ac_func in __signbit
6547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6548 echo "configure:6549: checking for $ac_func" >&5
6549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6550 echo $ac_n "(cached) $ac_c" 1>&6
6551 else
6552 cat > conftest.$ac_ext <<EOF
6553 #line 6554 "configure"
6554 #include "confdefs.h"
6555 /* System header to define __stub macros and hopefully few prototypes,
6556 which can conflict with char $ac_func(); below. */
6557 #include <assert.h>
6558 /* Override any gcc2 internal prototype to avoid an error. */
6559 /* We use char because int might match the return type of a gcc2
6560 builtin and then its argument prototype would still apply. */
6561 char $ac_func();
6563 int main() {
6565 /* The GNU C library defines this for functions which it implements
6566 to always fail with ENOSYS. Some functions are actually named
6567 something starting with __ and the normal name is an alias. */
6568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6569 choke me
6570 #else
6571 $ac_func();
6572 #endif
6574 ; return 0; }
6576 if { (eval echo configure:6577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6577 rm -rf conftest*
6578 eval "ac_cv_func_$ac_func=yes"
6579 else
6580 echo "configure: failed program was:" >&5
6581 cat conftest.$ac_ext >&5
6582 rm -rf conftest*
6583 eval "ac_cv_func_$ac_func=no"
6585 rm -f conftest*
6588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6589 echo "$ac_t""yes" 1>&6
6590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6591 cat >> confdefs.h <<EOF
6592 #define $ac_tr_func 1
6595 else
6596 echo "$ac_t""no" 1>&6
6597 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6599 done
6601 for ac_func in __signbitf
6603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6604 echo "configure:6605: checking for $ac_func" >&5
6605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6606 echo $ac_n "(cached) $ac_c" 1>&6
6607 else
6608 cat > conftest.$ac_ext <<EOF
6609 #line 6610 "configure"
6610 #include "confdefs.h"
6611 /* System header to define __stub macros and hopefully few prototypes,
6612 which can conflict with char $ac_func(); below. */
6613 #include <assert.h>
6614 /* Override any gcc2 internal prototype to avoid an error. */
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6617 char $ac_func();
6619 int main() {
6621 /* The GNU C library defines this for functions which it implements
6622 to always fail with ENOSYS. Some functions are actually named
6623 something starting with __ and the normal name is an alias. */
6624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6625 choke me
6626 #else
6627 $ac_func();
6628 #endif
6630 ; return 0; }
6632 if { (eval echo configure:6633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6633 rm -rf conftest*
6634 eval "ac_cv_func_$ac_func=yes"
6635 else
6636 echo "configure: failed program was:" >&5
6637 cat conftest.$ac_ext >&5
6638 rm -rf conftest*
6639 eval "ac_cv_func_$ac_func=no"
6641 rm -f conftest*
6644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6645 echo "$ac_t""yes" 1>&6
6646 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6647 cat >> confdefs.h <<EOF
6648 #define $ac_tr_func 1
6651 else
6652 echo "$ac_t""no" 1>&6
6653 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6655 done
6658 if test x$ac_cv_func_copysignl = x"yes"; then
6659 for ac_func in __signbitl
6661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6662 echo "configure:6663: checking for $ac_func" >&5
6663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6664 echo $ac_n "(cached) $ac_c" 1>&6
6665 else
6666 cat > conftest.$ac_ext <<EOF
6667 #line 6668 "configure"
6668 #include "confdefs.h"
6669 /* System header to define __stub macros and hopefully few prototypes,
6670 which can conflict with char $ac_func(); below. */
6671 #include <assert.h>
6672 /* Override any gcc2 internal prototype to avoid an error. */
6673 /* We use char because int might match the return type of a gcc2
6674 builtin and then its argument prototype would still apply. */
6675 char $ac_func();
6677 int main() {
6679 /* The GNU C library defines this for functions which it implements
6680 to always fail with ENOSYS. Some functions are actually named
6681 something starting with __ and the normal name is an alias. */
6682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6683 choke me
6684 #else
6685 $ac_func();
6686 #endif
6688 ; return 0; }
6690 if { (eval echo configure:6691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6691 rm -rf conftest*
6692 eval "ac_cv_func_$ac_func=yes"
6693 else
6694 echo "configure: failed program was:" >&5
6695 cat conftest.$ac_ext >&5
6696 rm -rf conftest*
6697 eval "ac_cv_func_$ac_func=no"
6699 rm -f conftest*
6702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6703 echo "$ac_t""yes" 1>&6
6704 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6705 cat >> confdefs.h <<EOF
6706 #define $ac_tr_func 1
6709 else
6710 echo "$ac_t""no" 1>&6
6711 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6713 done
6717 if test -n "$LIBMATHOBJS"; then
6718 need_libmath=yes
6724 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6725 echo "configure:6726: checking for mbstate_t" >&5
6726 cat > conftest.$ac_ext <<EOF
6727 #line 6728 "configure"
6728 #include "confdefs.h"
6729 #include <wchar.h>
6730 int main() {
6731 mbstate_t teststate;
6732 ; return 0; }
6734 if { (eval echo configure:6735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6735 rm -rf conftest*
6736 have_mbstate_t=yes
6737 else
6738 echo "configure: failed program was:" >&5
6739 cat conftest.$ac_ext >&5
6740 rm -rf conftest*
6741 have_mbstate_t=no
6743 rm -f conftest*
6744 echo "$ac_t""$have_mbstate_t" 1>&6
6745 if test x"$have_mbstate_t" = xyes; then
6746 cat >> confdefs.h <<\EOF
6747 #define HAVE_MBSTATE_T 1
6752 for ac_hdr in wchar.h
6754 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6755 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6756 echo "configure:6757: checking for $ac_hdr" >&5
6757 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6758 echo $ac_n "(cached) $ac_c" 1>&6
6759 else
6760 cat > conftest.$ac_ext <<EOF
6761 #line 6762 "configure"
6762 #include "confdefs.h"
6763 #include <$ac_hdr>
6765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6766 { (eval echo configure:6767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6768 if test -z "$ac_err"; then
6769 rm -rf conftest*
6770 eval "ac_cv_header_$ac_safe=yes"
6771 else
6772 echo "$ac_err" >&5
6773 echo "configure: failed program was:" >&5
6774 cat conftest.$ac_ext >&5
6775 rm -rf conftest*
6776 eval "ac_cv_header_$ac_safe=no"
6778 rm -f conftest*
6780 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6781 echo "$ac_t""yes" 1>&6
6782 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6783 cat >> confdefs.h <<EOF
6784 #define $ac_tr_hdr 1
6786 ac_has_wchar_h=yes
6787 else
6788 echo "$ac_t""no" 1>&6
6789 ac_has_wchar_h=no
6791 done
6793 for ac_hdr in wctype.h
6795 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6797 echo "configure:6798: checking for $ac_hdr" >&5
6798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6799 echo $ac_n "(cached) $ac_c" 1>&6
6800 else
6801 cat > conftest.$ac_ext <<EOF
6802 #line 6803 "configure"
6803 #include "confdefs.h"
6804 #include <$ac_hdr>
6806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6807 { (eval echo configure:6808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6809 if test -z "$ac_err"; then
6810 rm -rf conftest*
6811 eval "ac_cv_header_$ac_safe=yes"
6812 else
6813 echo "$ac_err" >&5
6814 echo "configure: failed program was:" >&5
6815 cat conftest.$ac_ext >&5
6816 rm -rf conftest*
6817 eval "ac_cv_header_$ac_safe=no"
6819 rm -f conftest*
6821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6822 echo "$ac_t""yes" 1>&6
6823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6824 cat >> confdefs.h <<EOF
6825 #define $ac_tr_hdr 1
6827 ac_has_wctype_h=yes
6828 else
6829 echo "$ac_t""no" 1>&6
6830 ac_has_wctype_h=no
6832 done
6835 if test x"$ac_has_wchar_h" = xyes &&
6836 test x"$ac_has_wctype_h" = xyes &&
6837 test x"$enable_c_mbchar" != xno; then
6839 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6840 echo "configure:6841: checking for WCHAR_MIN and WCHAR_MAX" >&5
6841 cat > conftest.$ac_ext <<EOF
6842 #line 6843 "configure"
6843 #include "confdefs.h"
6844 #include <wchar.h>
6845 int main() {
6846 int i = WCHAR_MIN; int j = WCHAR_MAX;
6847 ; return 0; }
6849 if { (eval echo configure:6850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6850 rm -rf conftest*
6851 has_wchar_minmax=yes
6852 else
6853 echo "configure: failed program was:" >&5
6854 cat conftest.$ac_ext >&5
6855 rm -rf conftest*
6856 has_wchar_minmax=no
6858 rm -f conftest*
6859 echo "$ac_t""$has_wchar_minmax" 1>&6
6861 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6862 echo "configure:6863: checking for WEOF" >&5
6863 cat > conftest.$ac_ext <<EOF
6864 #line 6865 "configure"
6865 #include "confdefs.h"
6867 #include <wchar.h>
6868 #include <stddef.h>
6869 int main() {
6870 wint_t i = WEOF;
6871 ; return 0; }
6873 if { (eval echo configure:6874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6874 rm -rf conftest*
6875 has_weof=yes
6876 else
6877 echo "configure: failed program was:" >&5
6878 cat conftest.$ac_ext >&5
6879 rm -rf conftest*
6880 has_weof=no
6882 rm -f conftest*
6883 echo "$ac_t""$has_weof" 1>&6
6885 ac_wfuncs=yes
6886 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6889 echo "configure:6890: checking for $ac_func" >&5
6890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6891 echo $ac_n "(cached) $ac_c" 1>&6
6892 else
6893 cat > conftest.$ac_ext <<EOF
6894 #line 6895 "configure"
6895 #include "confdefs.h"
6896 /* System header to define __stub macros and hopefully few prototypes,
6897 which can conflict with char $ac_func(); below. */
6898 #include <assert.h>
6899 /* Override any gcc2 internal prototype to avoid an error. */
6900 /* We use char because int might match the return type of a gcc2
6901 builtin and then its argument prototype would still apply. */
6902 char $ac_func();
6904 int main() {
6906 /* The GNU C library defines this for functions which it implements
6907 to always fail with ENOSYS. Some functions are actually named
6908 something starting with __ and the normal name is an alias. */
6909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6910 choke me
6911 #else
6912 $ac_func();
6913 #endif
6915 ; return 0; }
6917 if { (eval echo configure:6918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6918 rm -rf conftest*
6919 eval "ac_cv_func_$ac_func=yes"
6920 else
6921 echo "configure: failed program was:" >&5
6922 cat conftest.$ac_ext >&5
6923 rm -rf conftest*
6924 eval "ac_cv_func_$ac_func=no"
6926 rm -f conftest*
6929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6930 echo "$ac_t""yes" 1>&6
6931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6932 cat >> confdefs.h <<EOF
6933 #define $ac_tr_func 1
6936 else
6937 echo "$ac_t""no" 1>&6
6939 ac_wfuncs=no
6941 done
6944 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6945 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6946 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6947 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6948 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6949 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6952 echo "configure:6953: checking for $ac_func" >&5
6953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6954 echo $ac_n "(cached) $ac_c" 1>&6
6955 else
6956 cat > conftest.$ac_ext <<EOF
6957 #line 6958 "configure"
6958 #include "confdefs.h"
6959 /* System header to define __stub macros and hopefully few prototypes,
6960 which can conflict with char $ac_func(); below. */
6961 #include <assert.h>
6962 /* Override any gcc2 internal prototype to avoid an error. */
6963 /* We use char because int might match the return type of a gcc2
6964 builtin and then its argument prototype would still apply. */
6965 char $ac_func();
6967 int main() {
6969 /* The GNU C library defines this for functions which it implements
6970 to always fail with ENOSYS. Some functions are actually named
6971 something starting with __ and the normal name is an alias. */
6972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6973 choke me
6974 #else
6975 $ac_func();
6976 #endif
6978 ; return 0; }
6980 if { (eval echo configure:6981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6981 rm -rf conftest*
6982 eval "ac_cv_func_$ac_func=yes"
6983 else
6984 echo "configure: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6986 rm -rf conftest*
6987 eval "ac_cv_func_$ac_func=no"
6989 rm -f conftest*
6992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6993 echo "$ac_t""yes" 1>&6
6994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6995 cat >> confdefs.h <<EOF
6996 #define $ac_tr_func 1
6999 else
7000 echo "$ac_t""no" 1>&6
7002 ac_wfuncs=no
7004 done
7007 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7008 echo "configure:7009: checking for ISO C99 wchar_t support" >&5
7009 if test x"$has_weof" = xyes &&
7010 test x"$has_wchar_minmax" = xyes &&
7011 test x"$ac_wfuncs" = xyes; then
7012 ac_isoC99_wchar_t=yes
7013 else
7014 ac_isoC99_wchar_t=no
7016 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7018 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7019 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7020 echo "configure:7021: checking for iconv.h" >&5
7021 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7022 echo $ac_n "(cached) $ac_c" 1>&6
7023 else
7024 cat > conftest.$ac_ext <<EOF
7025 #line 7026 "configure"
7026 #include "confdefs.h"
7027 #include <iconv.h>
7029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7030 { (eval echo configure:7031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7032 if test -z "$ac_err"; then
7033 rm -rf conftest*
7034 eval "ac_cv_header_$ac_safe=yes"
7035 else
7036 echo "$ac_err" >&5
7037 echo "configure: failed program was:" >&5
7038 cat conftest.$ac_ext >&5
7039 rm -rf conftest*
7040 eval "ac_cv_header_$ac_safe=no"
7042 rm -f conftest*
7044 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7045 echo "$ac_t""yes" 1>&6
7046 ac_has_iconv_h=yes
7047 else
7048 echo "$ac_t""no" 1>&6
7049 ac_has_iconv_h=no
7052 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7053 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7054 echo "configure:7055: checking for langinfo.h" >&5
7055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7056 echo $ac_n "(cached) $ac_c" 1>&6
7057 else
7058 cat > conftest.$ac_ext <<EOF
7059 #line 7060 "configure"
7060 #include "confdefs.h"
7061 #include <langinfo.h>
7063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7064 { (eval echo configure:7065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7066 if test -z "$ac_err"; then
7067 rm -rf conftest*
7068 eval "ac_cv_header_$ac_safe=yes"
7069 else
7070 echo "$ac_err" >&5
7071 echo "configure: failed program was:" >&5
7072 cat conftest.$ac_ext >&5
7073 rm -rf conftest*
7074 eval "ac_cv_header_$ac_safe=no"
7076 rm -f conftest*
7078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7079 echo "$ac_t""yes" 1>&6
7080 ac_has_langinfo_h=yes
7081 else
7082 echo "$ac_t""no" 1>&6
7083 ac_has_langinfo_h=no
7087 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7088 echo "configure:7089: checking for iconv in -liconv" >&5
7089 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7090 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7091 echo $ac_n "(cached) $ac_c" 1>&6
7092 else
7093 ac_save_LIBS="$LIBS"
7094 LIBS="-liconv $LIBS"
7095 cat > conftest.$ac_ext <<EOF
7096 #line 7097 "configure"
7097 #include "confdefs.h"
7098 /* Override any gcc2 internal prototype to avoid an error. */
7099 /* We use char because int might match the return type of a gcc2
7100 builtin and then its argument prototype would still apply. */
7101 char iconv();
7103 int main() {
7104 iconv()
7105 ; return 0; }
7107 if { (eval echo configure:7108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7108 rm -rf conftest*
7109 eval "ac_cv_lib_$ac_lib_var=yes"
7110 else
7111 echo "configure: failed program was:" >&5
7112 cat conftest.$ac_ext >&5
7113 rm -rf conftest*
7114 eval "ac_cv_lib_$ac_lib_var=no"
7116 rm -f conftest*
7117 LIBS="$ac_save_LIBS"
7120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7121 echo "$ac_t""yes" 1>&6
7122 libiconv="-liconv"
7123 else
7124 echo "$ac_t""no" 1>&6
7127 ac_save_LIBS="$LIBS"
7128 LIBS="$LIBS $libiconv"
7130 for ac_func in iconv_open iconv_close iconv nl_langinfo
7132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7133 echo "configure:7134: checking for $ac_func" >&5
7134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7135 echo $ac_n "(cached) $ac_c" 1>&6
7136 else
7137 cat > conftest.$ac_ext <<EOF
7138 #line 7139 "configure"
7139 #include "confdefs.h"
7140 /* System header to define __stub macros and hopefully few prototypes,
7141 which can conflict with char $ac_func(); below. */
7142 #include <assert.h>
7143 /* Override any gcc2 internal prototype to avoid an error. */
7144 /* We use char because int might match the return type of a gcc2
7145 builtin and then its argument prototype would still apply. */
7146 char $ac_func();
7148 int main() {
7150 /* The GNU C library defines this for functions which it implements
7151 to always fail with ENOSYS. Some functions are actually named
7152 something starting with __ and the normal name is an alias. */
7153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7154 choke me
7155 #else
7156 $ac_func();
7157 #endif
7159 ; return 0; }
7161 if { (eval echo configure:7162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7162 rm -rf conftest*
7163 eval "ac_cv_func_$ac_func=yes"
7164 else
7165 echo "configure: failed program was:" >&5
7166 cat conftest.$ac_ext >&5
7167 rm -rf conftest*
7168 eval "ac_cv_func_$ac_func=no"
7170 rm -f conftest*
7173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7174 echo "$ac_t""yes" 1>&6
7175 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7176 cat >> confdefs.h <<EOF
7177 #define $ac_tr_func 1
7180 ac_XPG2funcs=yes
7181 else
7182 echo "$ac_t""no" 1>&6
7183 ac_XPG2funcs=no
7185 done
7188 LIBS="$ac_save_LIBS"
7190 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7191 echo "configure:7192: checking for XPG2 wchar_t support" >&5
7192 if test x"$ac_has_iconv_h" = xyes &&
7193 test x"$ac_has_langinfo_h" = xyes &&
7194 test x"$ac_XPG2funcs" = xyes; then
7195 ac_XPG2_wchar_t=yes
7196 else
7197 ac_XPG2_wchar_t=no
7199 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7201 if test x"$ac_isoC99_wchar_t" = xyes &&
7202 test x"$ac_XPG2_wchar_t" = xyes; then
7203 cat >> confdefs.h <<\EOF
7204 #define _GLIBCPP_USE_WCHAR_T 1
7207 enable_wchar_t=yes
7210 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7211 echo "configure:7212: checking for enabled wchar_t specializations" >&5
7212 echo "$ac_t""$enable_wchar_t" 1>&6
7214 cat >> confdefs.h <<\EOF
7215 #define HAVE_COPYSIGN 1
7218 cat >> confdefs.h <<\EOF
7219 #define HAVE_COPYSIGNF 1
7222 cat >> confdefs.h <<\EOF
7223 #define HAVE_FINITE 1
7226 cat >> confdefs.h <<\EOF
7227 #define HAVE_FINITEF 1
7230 cat >> confdefs.h <<\EOF
7231 #define HAVE_FREXPF 1
7234 cat >> confdefs.h <<\EOF
7235 #define HAVE_HYPOTF 1
7238 cat >> confdefs.h <<\EOF
7239 #define HAVE_ISINF 1
7242 cat >> confdefs.h <<\EOF
7243 #define HAVE_ISINFF 1
7246 cat >> confdefs.h <<\EOF
7247 #define HAVE_ISNAN 1
7250 cat >> confdefs.h <<\EOF
7251 #define HAVE_ISNANF 1
7254 cat >> confdefs.h <<\EOF
7255 #define HAVE_SINCOS 1
7258 cat >> confdefs.h <<\EOF
7259 #define HAVE_SINCOSF 1
7262 if test x"long_double_math_on_this_cpu" = x"yes"; then
7263 cat >> confdefs.h <<\EOF
7264 #define HAVE_FINITEL 1
7267 cat >> confdefs.h <<\EOF
7268 #define HAVE_HYPOTL 1
7271 cat >> confdefs.h <<\EOF
7272 #define HAVE_ISINFL 1
7275 cat >> confdefs.h <<\EOF
7276 #define HAVE_ISNANL 1
7281 *-mingw32*)
7282 os_include_dir="os/mingw32"
7283 for ac_hdr in sys/types.h locale.h float.h
7285 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7286 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7287 echo "configure:7288: checking for $ac_hdr" >&5
7288 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7289 echo $ac_n "(cached) $ac_c" 1>&6
7290 else
7291 cat > conftest.$ac_ext <<EOF
7292 #line 7293 "configure"
7293 #include "confdefs.h"
7294 #include <$ac_hdr>
7296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7297 { (eval echo configure:7298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7299 if test -z "$ac_err"; then
7300 rm -rf conftest*
7301 eval "ac_cv_header_$ac_safe=yes"
7302 else
7303 echo "$ac_err" >&5
7304 echo "configure: failed program was:" >&5
7305 cat conftest.$ac_ext >&5
7306 rm -rf conftest*
7307 eval "ac_cv_header_$ac_safe=no"
7309 rm -f conftest*
7311 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7312 echo "$ac_t""yes" 1>&6
7313 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7314 cat >> confdefs.h <<EOF
7315 #define $ac_tr_hdr 1
7318 else
7319 echo "$ac_t""no" 1>&6
7321 done
7324 # If we're not using GNU ld, then there's no point in even trying these
7325 # tests. Check for that first. We should have already tested for gld
7326 # by now (in libtool), but require it now just to be safe...
7327 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7328 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7331 # The name set by libtool depends on the version of libtool. Shame on us
7332 # for depending on an impl detail, but c'est la vie. Older versions used
7333 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7334 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7335 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7336 # set (hence we're using an older libtool), then set it.
7337 if test x${with_gnu_ld+set} != xset; then
7338 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7339 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7340 with_gnu_ld=no
7341 else
7342 with_gnu_ld=$ac_cv_prog_gnu_ld
7346 # Start by getting the version number. I think the libtool test already
7347 # does some of this, but throws away the result.
7349 ldver=`$LD --version 2>/dev/null | head -1 | \
7350 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7352 glibcpp_gnu_ld_version=`echo $ldver | \
7353 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7355 # Set --gc-sections.
7356 if test "$with_gnu_ld" = "notbroken"; then
7357 # GNU ld it is! Joy and bunny rabbits!
7359 # All these tests are for C++; save the language and the compiler flags.
7360 # Need to do this so that g++ won't try to link in libstdc++
7361 ac_test_CFLAGS="${CFLAGS+set}"
7362 ac_save_CFLAGS="$CFLAGS"
7363 CFLAGS='-x c++ -Wl,--gc-sections'
7365 # Check for -Wl,--gc-sections
7366 # XXX This test is broken at the moment, as symbols required for
7367 # linking are now in libsupc++ (not built yet.....). In addition,
7368 # this test has cored on solaris in the past. In addition,
7369 # --gc-sections doesn't really work at the moment (keeps on discarding
7370 # used sections, first .eh_frame and now some of the glibc sections for
7371 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7372 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7373 echo "configure:7374: checking for ld that supports -Wl,--gc-sections" >&5
7374 if test "$cross_compiling" = yes; then
7375 ac_sectionLDflags=yes
7376 else
7377 cat > conftest.$ac_ext <<EOF
7378 #line 7379 "configure"
7379 #include "confdefs.h"
7381 int main(void)
7383 try { throw 1; }
7384 catch (...) { };
7385 return 0;
7389 if { (eval echo configure:7390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7390 then
7391 ac_sectionLDflags=yes
7392 else
7393 echo "configure: failed program was:" >&5
7394 cat conftest.$ac_ext >&5
7395 rm -fr conftest*
7396 ac_sectionLDflags=no
7398 rm -fr conftest*
7401 if test "$ac_test_CFLAGS" = set; then
7402 CFLAGS="$ac_save_CFLAGS"
7403 else
7404 # this is the suspicious part
7405 CFLAGS=''
7407 if test "$ac_sectionLDflags" = "yes"; then
7408 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7410 echo "$ac_t""$ac_sectionLDflags" 1>&6
7413 # Set linker optimization flags.
7414 if test x"$with_gnu_ld" = x"yes"; then
7415 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7422 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7423 echo "configure:7424: checking for main in -lm" >&5
7424 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7426 echo $ac_n "(cached) $ac_c" 1>&6
7427 else
7428 ac_save_LIBS="$LIBS"
7429 LIBS="-lm $LIBS"
7430 cat > conftest.$ac_ext <<EOF
7431 #line 7432 "configure"
7432 #include "confdefs.h"
7434 int main() {
7435 main()
7436 ; return 0; }
7438 if { (eval echo configure:7439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7439 rm -rf conftest*
7440 eval "ac_cv_lib_$ac_lib_var=yes"
7441 else
7442 echo "configure: failed program was:" >&5
7443 cat conftest.$ac_ext >&5
7444 rm -rf conftest*
7445 eval "ac_cv_lib_$ac_lib_var=no"
7447 rm -f conftest*
7448 LIBS="$ac_save_LIBS"
7451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7452 echo "$ac_t""yes" 1>&6
7453 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7454 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7455 cat >> confdefs.h <<EOF
7456 #define $ac_tr_lib 1
7459 LIBS="-lm $LIBS"
7461 else
7462 echo "$ac_t""no" 1>&6
7465 for ac_func in nan copysignf
7467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7468 echo "configure:7469: checking for $ac_func" >&5
7469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7470 echo $ac_n "(cached) $ac_c" 1>&6
7471 else
7472 cat > conftest.$ac_ext <<EOF
7473 #line 7474 "configure"
7474 #include "confdefs.h"
7475 /* System header to define __stub macros and hopefully few prototypes,
7476 which can conflict with char $ac_func(); below. */
7477 #include <assert.h>
7478 /* Override any gcc2 internal prototype to avoid an error. */
7479 /* We use char because int might match the return type of a gcc2
7480 builtin and then its argument prototype would still apply. */
7481 char $ac_func();
7483 int main() {
7485 /* The GNU C library defines this for functions which it implements
7486 to always fail with ENOSYS. Some functions are actually named
7487 something starting with __ and the normal name is an alias. */
7488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7489 choke me
7490 #else
7491 $ac_func();
7492 #endif
7494 ; return 0; }
7496 if { (eval echo configure:7497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7497 rm -rf conftest*
7498 eval "ac_cv_func_$ac_func=yes"
7499 else
7500 echo "configure: failed program was:" >&5
7501 cat conftest.$ac_ext >&5
7502 rm -rf conftest*
7503 eval "ac_cv_func_$ac_func=no"
7505 rm -f conftest*
7508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7509 echo "$ac_t""yes" 1>&6
7510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7511 cat >> confdefs.h <<EOF
7512 #define $ac_tr_func 1
7515 else
7516 echo "$ac_t""no" 1>&6
7517 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7519 done
7522 for ac_func in __signbit
7524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7525 echo "configure:7526: checking for $ac_func" >&5
7526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7527 echo $ac_n "(cached) $ac_c" 1>&6
7528 else
7529 cat > conftest.$ac_ext <<EOF
7530 #line 7531 "configure"
7531 #include "confdefs.h"
7532 /* System header to define __stub macros and hopefully few prototypes,
7533 which can conflict with char $ac_func(); below. */
7534 #include <assert.h>
7535 /* Override any gcc2 internal prototype to avoid an error. */
7536 /* We use char because int might match the return type of a gcc2
7537 builtin and then its argument prototype would still apply. */
7538 char $ac_func();
7540 int main() {
7542 /* The GNU C library defines this for functions which it implements
7543 to always fail with ENOSYS. Some functions are actually named
7544 something starting with __ and the normal name is an alias. */
7545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7546 choke me
7547 #else
7548 $ac_func();
7549 #endif
7551 ; return 0; }
7553 if { (eval echo configure:7554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7554 rm -rf conftest*
7555 eval "ac_cv_func_$ac_func=yes"
7556 else
7557 echo "configure: failed program was:" >&5
7558 cat conftest.$ac_ext >&5
7559 rm -rf conftest*
7560 eval "ac_cv_func_$ac_func=no"
7562 rm -f conftest*
7565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7566 echo "$ac_t""yes" 1>&6
7567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7568 cat >> confdefs.h <<EOF
7569 #define $ac_tr_func 1
7572 else
7573 echo "$ac_t""no" 1>&6
7574 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7576 done
7578 for ac_func in __signbitf
7580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7581 echo "configure:7582: checking for $ac_func" >&5
7582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7583 echo $ac_n "(cached) $ac_c" 1>&6
7584 else
7585 cat > conftest.$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7588 /* System header to define __stub macros and hopefully few prototypes,
7589 which can conflict with char $ac_func(); below. */
7590 #include <assert.h>
7591 /* Override any gcc2 internal prototype to avoid an error. */
7592 /* We use char because int might match the return type of a gcc2
7593 builtin and then its argument prototype would still apply. */
7594 char $ac_func();
7596 int main() {
7598 /* The GNU C library defines this for functions which it implements
7599 to always fail with ENOSYS. Some functions are actually named
7600 something starting with __ and the normal name is an alias. */
7601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7602 choke me
7603 #else
7604 $ac_func();
7605 #endif
7607 ; return 0; }
7609 if { (eval echo configure:7610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7610 rm -rf conftest*
7611 eval "ac_cv_func_$ac_func=yes"
7612 else
7613 echo "configure: failed program was:" >&5
7614 cat conftest.$ac_ext >&5
7615 rm -rf conftest*
7616 eval "ac_cv_func_$ac_func=no"
7618 rm -f conftest*
7621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7622 echo "$ac_t""yes" 1>&6
7623 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7624 cat >> confdefs.h <<EOF
7625 #define $ac_tr_func 1
7628 else
7629 echo "$ac_t""no" 1>&6
7630 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7632 done
7635 if test x$ac_cv_func_copysignl = x"yes"; then
7636 for ac_func in __signbitl
7638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7639 echo "configure:7640: checking for $ac_func" >&5
7640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7641 echo $ac_n "(cached) $ac_c" 1>&6
7642 else
7643 cat > conftest.$ac_ext <<EOF
7644 #line 7645 "configure"
7645 #include "confdefs.h"
7646 /* System header to define __stub macros and hopefully few prototypes,
7647 which can conflict with char $ac_func(); below. */
7648 #include <assert.h>
7649 /* Override any gcc2 internal prototype to avoid an error. */
7650 /* We use char because int might match the return type of a gcc2
7651 builtin and then its argument prototype would still apply. */
7652 char $ac_func();
7654 int main() {
7656 /* The GNU C library defines this for functions which it implements
7657 to always fail with ENOSYS. Some functions are actually named
7658 something starting with __ and the normal name is an alias. */
7659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7660 choke me
7661 #else
7662 $ac_func();
7663 #endif
7665 ; return 0; }
7667 if { (eval echo configure:7668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7668 rm -rf conftest*
7669 eval "ac_cv_func_$ac_func=yes"
7670 else
7671 echo "configure: failed program was:" >&5
7672 cat conftest.$ac_ext >&5
7673 rm -rf conftest*
7674 eval "ac_cv_func_$ac_func=no"
7676 rm -f conftest*
7679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7680 echo "$ac_t""yes" 1>&6
7681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7682 cat >> confdefs.h <<EOF
7683 #define $ac_tr_func 1
7686 else
7687 echo "$ac_t""no" 1>&6
7688 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7690 done
7694 if test -n "$LIBMATHOBJS"; then
7695 need_libmath=yes
7701 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7702 echo "configure:7703: checking for mbstate_t" >&5
7703 cat > conftest.$ac_ext <<EOF
7704 #line 7705 "configure"
7705 #include "confdefs.h"
7706 #include <wchar.h>
7707 int main() {
7708 mbstate_t teststate;
7709 ; return 0; }
7711 if { (eval echo configure:7712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7712 rm -rf conftest*
7713 have_mbstate_t=yes
7714 else
7715 echo "configure: failed program was:" >&5
7716 cat conftest.$ac_ext >&5
7717 rm -rf conftest*
7718 have_mbstate_t=no
7720 rm -f conftest*
7721 echo "$ac_t""$have_mbstate_t" 1>&6
7722 if test x"$have_mbstate_t" = xyes; then
7723 cat >> confdefs.h <<\EOF
7724 #define HAVE_MBSTATE_T 1
7729 for ac_hdr in wchar.h
7731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7733 echo "configure:7734: checking for $ac_hdr" >&5
7734 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7735 echo $ac_n "(cached) $ac_c" 1>&6
7736 else
7737 cat > conftest.$ac_ext <<EOF
7738 #line 7739 "configure"
7739 #include "confdefs.h"
7740 #include <$ac_hdr>
7742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7743 { (eval echo configure:7744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7745 if test -z "$ac_err"; then
7746 rm -rf conftest*
7747 eval "ac_cv_header_$ac_safe=yes"
7748 else
7749 echo "$ac_err" >&5
7750 echo "configure: failed program was:" >&5
7751 cat conftest.$ac_ext >&5
7752 rm -rf conftest*
7753 eval "ac_cv_header_$ac_safe=no"
7755 rm -f conftest*
7757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7758 echo "$ac_t""yes" 1>&6
7759 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7760 cat >> confdefs.h <<EOF
7761 #define $ac_tr_hdr 1
7763 ac_has_wchar_h=yes
7764 else
7765 echo "$ac_t""no" 1>&6
7766 ac_has_wchar_h=no
7768 done
7770 for ac_hdr in wctype.h
7772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7774 echo "configure:7775: checking for $ac_hdr" >&5
7775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7776 echo $ac_n "(cached) $ac_c" 1>&6
7777 else
7778 cat > conftest.$ac_ext <<EOF
7779 #line 7780 "configure"
7780 #include "confdefs.h"
7781 #include <$ac_hdr>
7783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7784 { (eval echo configure:7785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7786 if test -z "$ac_err"; then
7787 rm -rf conftest*
7788 eval "ac_cv_header_$ac_safe=yes"
7789 else
7790 echo "$ac_err" >&5
7791 echo "configure: failed program was:" >&5
7792 cat conftest.$ac_ext >&5
7793 rm -rf conftest*
7794 eval "ac_cv_header_$ac_safe=no"
7796 rm -f conftest*
7798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7799 echo "$ac_t""yes" 1>&6
7800 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7801 cat >> confdefs.h <<EOF
7802 #define $ac_tr_hdr 1
7804 ac_has_wctype_h=yes
7805 else
7806 echo "$ac_t""no" 1>&6
7807 ac_has_wctype_h=no
7809 done
7812 if test x"$ac_has_wchar_h" = xyes &&
7813 test x"$ac_has_wctype_h" = xyes &&
7814 test x"$enable_c_mbchar" != xno; then
7816 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7817 echo "configure:7818: checking for WCHAR_MIN and WCHAR_MAX" >&5
7818 cat > conftest.$ac_ext <<EOF
7819 #line 7820 "configure"
7820 #include "confdefs.h"
7821 #include <wchar.h>
7822 int main() {
7823 int i = WCHAR_MIN; int j = WCHAR_MAX;
7824 ; return 0; }
7826 if { (eval echo configure:7827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7827 rm -rf conftest*
7828 has_wchar_minmax=yes
7829 else
7830 echo "configure: failed program was:" >&5
7831 cat conftest.$ac_ext >&5
7832 rm -rf conftest*
7833 has_wchar_minmax=no
7835 rm -f conftest*
7836 echo "$ac_t""$has_wchar_minmax" 1>&6
7838 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7839 echo "configure:7840: checking for WEOF" >&5
7840 cat > conftest.$ac_ext <<EOF
7841 #line 7842 "configure"
7842 #include "confdefs.h"
7844 #include <wchar.h>
7845 #include <stddef.h>
7846 int main() {
7847 wint_t i = WEOF;
7848 ; return 0; }
7850 if { (eval echo configure:7851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7851 rm -rf conftest*
7852 has_weof=yes
7853 else
7854 echo "configure: failed program was:" >&5
7855 cat conftest.$ac_ext >&5
7856 rm -rf conftest*
7857 has_weof=no
7859 rm -f conftest*
7860 echo "$ac_t""$has_weof" 1>&6
7862 ac_wfuncs=yes
7863 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7866 echo "configure:7867: checking for $ac_func" >&5
7867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7868 echo $ac_n "(cached) $ac_c" 1>&6
7869 else
7870 cat > conftest.$ac_ext <<EOF
7871 #line 7872 "configure"
7872 #include "confdefs.h"
7873 /* System header to define __stub macros and hopefully few prototypes,
7874 which can conflict with char $ac_func(); below. */
7875 #include <assert.h>
7876 /* Override any gcc2 internal prototype to avoid an error. */
7877 /* We use char because int might match the return type of a gcc2
7878 builtin and then its argument prototype would still apply. */
7879 char $ac_func();
7881 int main() {
7883 /* The GNU C library defines this for functions which it implements
7884 to always fail with ENOSYS. Some functions are actually named
7885 something starting with __ and the normal name is an alias. */
7886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7887 choke me
7888 #else
7889 $ac_func();
7890 #endif
7892 ; return 0; }
7894 if { (eval echo configure:7895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7895 rm -rf conftest*
7896 eval "ac_cv_func_$ac_func=yes"
7897 else
7898 echo "configure: failed program was:" >&5
7899 cat conftest.$ac_ext >&5
7900 rm -rf conftest*
7901 eval "ac_cv_func_$ac_func=no"
7903 rm -f conftest*
7906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7907 echo "$ac_t""yes" 1>&6
7908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7909 cat >> confdefs.h <<EOF
7910 #define $ac_tr_func 1
7913 else
7914 echo "$ac_t""no" 1>&6
7916 ac_wfuncs=no
7918 done
7921 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7922 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7923 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7924 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7925 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7926 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7929 echo "configure:7930: checking for $ac_func" >&5
7930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7931 echo $ac_n "(cached) $ac_c" 1>&6
7932 else
7933 cat > conftest.$ac_ext <<EOF
7934 #line 7935 "configure"
7935 #include "confdefs.h"
7936 /* System header to define __stub macros and hopefully few prototypes,
7937 which can conflict with char $ac_func(); below. */
7938 #include <assert.h>
7939 /* Override any gcc2 internal prototype to avoid an error. */
7940 /* We use char because int might match the return type of a gcc2
7941 builtin and then its argument prototype would still apply. */
7942 char $ac_func();
7944 int main() {
7946 /* The GNU C library defines this for functions which it implements
7947 to always fail with ENOSYS. Some functions are actually named
7948 something starting with __ and the normal name is an alias. */
7949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7950 choke me
7951 #else
7952 $ac_func();
7953 #endif
7955 ; return 0; }
7957 if { (eval echo configure:7958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7958 rm -rf conftest*
7959 eval "ac_cv_func_$ac_func=yes"
7960 else
7961 echo "configure: failed program was:" >&5
7962 cat conftest.$ac_ext >&5
7963 rm -rf conftest*
7964 eval "ac_cv_func_$ac_func=no"
7966 rm -f conftest*
7969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7970 echo "$ac_t""yes" 1>&6
7971 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7972 cat >> confdefs.h <<EOF
7973 #define $ac_tr_func 1
7976 else
7977 echo "$ac_t""no" 1>&6
7979 ac_wfuncs=no
7981 done
7984 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7985 echo "configure:7986: checking for ISO C99 wchar_t support" >&5
7986 if test x"$has_weof" = xyes &&
7987 test x"$has_wchar_minmax" = xyes &&
7988 test x"$ac_wfuncs" = xyes; then
7989 ac_isoC99_wchar_t=yes
7990 else
7991 ac_isoC99_wchar_t=no
7993 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7995 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7996 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7997 echo "configure:7998: checking for iconv.h" >&5
7998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7999 echo $ac_n "(cached) $ac_c" 1>&6
8000 else
8001 cat > conftest.$ac_ext <<EOF
8002 #line 8003 "configure"
8003 #include "confdefs.h"
8004 #include <iconv.h>
8006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8007 { (eval echo configure:8008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8009 if test -z "$ac_err"; then
8010 rm -rf conftest*
8011 eval "ac_cv_header_$ac_safe=yes"
8012 else
8013 echo "$ac_err" >&5
8014 echo "configure: failed program was:" >&5
8015 cat conftest.$ac_ext >&5
8016 rm -rf conftest*
8017 eval "ac_cv_header_$ac_safe=no"
8019 rm -f conftest*
8021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8022 echo "$ac_t""yes" 1>&6
8023 ac_has_iconv_h=yes
8024 else
8025 echo "$ac_t""no" 1>&6
8026 ac_has_iconv_h=no
8029 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8030 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8031 echo "configure:8032: checking for langinfo.h" >&5
8032 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8033 echo $ac_n "(cached) $ac_c" 1>&6
8034 else
8035 cat > conftest.$ac_ext <<EOF
8036 #line 8037 "configure"
8037 #include "confdefs.h"
8038 #include <langinfo.h>
8040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8041 { (eval echo configure:8042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8043 if test -z "$ac_err"; then
8044 rm -rf conftest*
8045 eval "ac_cv_header_$ac_safe=yes"
8046 else
8047 echo "$ac_err" >&5
8048 echo "configure: failed program was:" >&5
8049 cat conftest.$ac_ext >&5
8050 rm -rf conftest*
8051 eval "ac_cv_header_$ac_safe=no"
8053 rm -f conftest*
8055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8056 echo "$ac_t""yes" 1>&6
8057 ac_has_langinfo_h=yes
8058 else
8059 echo "$ac_t""no" 1>&6
8060 ac_has_langinfo_h=no
8064 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8065 echo "configure:8066: checking for iconv in -liconv" >&5
8066 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8068 echo $ac_n "(cached) $ac_c" 1>&6
8069 else
8070 ac_save_LIBS="$LIBS"
8071 LIBS="-liconv $LIBS"
8072 cat > conftest.$ac_ext <<EOF
8073 #line 8074 "configure"
8074 #include "confdefs.h"
8075 /* Override any gcc2 internal prototype to avoid an error. */
8076 /* We use char because int might match the return type of a gcc2
8077 builtin and then its argument prototype would still apply. */
8078 char iconv();
8080 int main() {
8081 iconv()
8082 ; return 0; }
8084 if { (eval echo configure:8085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8085 rm -rf conftest*
8086 eval "ac_cv_lib_$ac_lib_var=yes"
8087 else
8088 echo "configure: failed program was:" >&5
8089 cat conftest.$ac_ext >&5
8090 rm -rf conftest*
8091 eval "ac_cv_lib_$ac_lib_var=no"
8093 rm -f conftest*
8094 LIBS="$ac_save_LIBS"
8097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8098 echo "$ac_t""yes" 1>&6
8099 libiconv="-liconv"
8100 else
8101 echo "$ac_t""no" 1>&6
8104 ac_save_LIBS="$LIBS"
8105 LIBS="$LIBS $libiconv"
8107 for ac_func in iconv_open iconv_close iconv nl_langinfo
8109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8110 echo "configure:8111: checking for $ac_func" >&5
8111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8112 echo $ac_n "(cached) $ac_c" 1>&6
8113 else
8114 cat > conftest.$ac_ext <<EOF
8115 #line 8116 "configure"
8116 #include "confdefs.h"
8117 /* System header to define __stub macros and hopefully few prototypes,
8118 which can conflict with char $ac_func(); below. */
8119 #include <assert.h>
8120 /* Override any gcc2 internal prototype to avoid an error. */
8121 /* We use char because int might match the return type of a gcc2
8122 builtin and then its argument prototype would still apply. */
8123 char $ac_func();
8125 int main() {
8127 /* The GNU C library defines this for functions which it implements
8128 to always fail with ENOSYS. Some functions are actually named
8129 something starting with __ and the normal name is an alias. */
8130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8131 choke me
8132 #else
8133 $ac_func();
8134 #endif
8136 ; return 0; }
8138 if { (eval echo configure:8139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8139 rm -rf conftest*
8140 eval "ac_cv_func_$ac_func=yes"
8141 else
8142 echo "configure: failed program was:" >&5
8143 cat conftest.$ac_ext >&5
8144 rm -rf conftest*
8145 eval "ac_cv_func_$ac_func=no"
8147 rm -f conftest*
8150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8151 echo "$ac_t""yes" 1>&6
8152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8153 cat >> confdefs.h <<EOF
8154 #define $ac_tr_func 1
8157 ac_XPG2funcs=yes
8158 else
8159 echo "$ac_t""no" 1>&6
8160 ac_XPG2funcs=no
8162 done
8165 LIBS="$ac_save_LIBS"
8167 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8168 echo "configure:8169: checking for XPG2 wchar_t support" >&5
8169 if test x"$ac_has_iconv_h" = xyes &&
8170 test x"$ac_has_langinfo_h" = xyes &&
8171 test x"$ac_XPG2funcs" = xyes; then
8172 ac_XPG2_wchar_t=yes
8173 else
8174 ac_XPG2_wchar_t=no
8176 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8178 if test x"$ac_isoC99_wchar_t" = xyes &&
8179 test x"$ac_XPG2_wchar_t" = xyes; then
8180 cat >> confdefs.h <<\EOF
8181 #define _GLIBCPP_USE_WCHAR_T 1
8184 enable_wchar_t=yes
8187 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8188 echo "configure:8189: checking for enabled wchar_t specializations" >&5
8189 echo "$ac_t""$enable_wchar_t" 1>&6
8192 *-netbsd*)
8193 os_include_dir="os/bsd/netbsd"
8194 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
8195 machine/endian.h machine/param.h sys/machine.h sys/types.h \
8196 fp.h locale.h float.h inttypes.h
8198 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8199 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8200 echo "configure:8201: checking for $ac_hdr" >&5
8201 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8202 echo $ac_n "(cached) $ac_c" 1>&6
8203 else
8204 cat > conftest.$ac_ext <<EOF
8205 #line 8206 "configure"
8206 #include "confdefs.h"
8207 #include <$ac_hdr>
8209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8210 { (eval echo configure:8211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8212 if test -z "$ac_err"; then
8213 rm -rf conftest*
8214 eval "ac_cv_header_$ac_safe=yes"
8215 else
8216 echo "$ac_err" >&5
8217 echo "configure: failed program was:" >&5
8218 cat conftest.$ac_ext >&5
8219 rm -rf conftest*
8220 eval "ac_cv_header_$ac_safe=no"
8222 rm -f conftest*
8224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8225 echo "$ac_t""yes" 1>&6
8226 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8227 cat >> confdefs.h <<EOF
8228 #define $ac_tr_hdr 1
8231 else
8232 echo "$ac_t""no" 1>&6
8234 done
8236 SECTION_FLAGS='-ffunction-sections -fdata-sections'
8239 # If we're not using GNU ld, then there's no point in even trying these
8240 # tests. Check for that first. We should have already tested for gld
8241 # by now (in libtool), but require it now just to be safe...
8242 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8243 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8246 # The name set by libtool depends on the version of libtool. Shame on us
8247 # for depending on an impl detail, but c'est la vie. Older versions used
8248 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8249 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8250 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8251 # set (hence we're using an older libtool), then set it.
8252 if test x${with_gnu_ld+set} != xset; then
8253 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8254 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8255 with_gnu_ld=no
8256 else
8257 with_gnu_ld=$ac_cv_prog_gnu_ld
8261 # Start by getting the version number. I think the libtool test already
8262 # does some of this, but throws away the result.
8264 ldver=`$LD --version 2>/dev/null | head -1 | \
8265 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8267 glibcpp_gnu_ld_version=`echo $ldver | \
8268 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8270 # Set --gc-sections.
8271 if test "$with_gnu_ld" = "notbroken"; then
8272 # GNU ld it is! Joy and bunny rabbits!
8274 # All these tests are for C++; save the language and the compiler flags.
8275 # Need to do this so that g++ won't try to link in libstdc++
8276 ac_test_CFLAGS="${CFLAGS+set}"
8277 ac_save_CFLAGS="$CFLAGS"
8278 CFLAGS='-x c++ -Wl,--gc-sections'
8280 # Check for -Wl,--gc-sections
8281 # XXX This test is broken at the moment, as symbols required for
8282 # linking are now in libsupc++ (not built yet.....). In addition,
8283 # this test has cored on solaris in the past. In addition,
8284 # --gc-sections doesn't really work at the moment (keeps on discarding
8285 # used sections, first .eh_frame and now some of the glibc sections for
8286 # iconv). Bzzzzt. Thanks for playing, maybe next time.
8287 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8288 echo "configure:8289: checking for ld that supports -Wl,--gc-sections" >&5
8289 if test "$cross_compiling" = yes; then
8290 ac_sectionLDflags=yes
8291 else
8292 cat > conftest.$ac_ext <<EOF
8293 #line 8294 "configure"
8294 #include "confdefs.h"
8296 int main(void)
8298 try { throw 1; }
8299 catch (...) { };
8300 return 0;
8304 if { (eval echo configure:8305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8305 then
8306 ac_sectionLDflags=yes
8307 else
8308 echo "configure: failed program was:" >&5
8309 cat conftest.$ac_ext >&5
8310 rm -fr conftest*
8311 ac_sectionLDflags=no
8313 rm -fr conftest*
8316 if test "$ac_test_CFLAGS" = set; then
8317 CFLAGS="$ac_save_CFLAGS"
8318 else
8319 # this is the suspicious part
8320 CFLAGS=''
8322 if test "$ac_sectionLDflags" = "yes"; then
8323 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8325 echo "$ac_t""$ac_sectionLDflags" 1>&6
8328 # Set linker optimization flags.
8329 if test x"$with_gnu_ld" = x"yes"; then
8330 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8337 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8338 echo "configure:8339: checking for main in -lm" >&5
8339 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8341 echo $ac_n "(cached) $ac_c" 1>&6
8342 else
8343 ac_save_LIBS="$LIBS"
8344 LIBS="-lm $LIBS"
8345 cat > conftest.$ac_ext <<EOF
8346 #line 8347 "configure"
8347 #include "confdefs.h"
8349 int main() {
8350 main()
8351 ; return 0; }
8353 if { (eval echo configure:8354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8354 rm -rf conftest*
8355 eval "ac_cv_lib_$ac_lib_var=yes"
8356 else
8357 echo "configure: failed program was:" >&5
8358 cat conftest.$ac_ext >&5
8359 rm -rf conftest*
8360 eval "ac_cv_lib_$ac_lib_var=no"
8362 rm -f conftest*
8363 LIBS="$ac_save_LIBS"
8366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8367 echo "$ac_t""yes" 1>&6
8368 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8369 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8370 cat >> confdefs.h <<EOF
8371 #define $ac_tr_lib 1
8374 LIBS="-lm $LIBS"
8376 else
8377 echo "$ac_t""no" 1>&6
8380 for ac_func in nan copysignf
8382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8383 echo "configure:8384: checking for $ac_func" >&5
8384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8385 echo $ac_n "(cached) $ac_c" 1>&6
8386 else
8387 cat > conftest.$ac_ext <<EOF
8388 #line 8389 "configure"
8389 #include "confdefs.h"
8390 /* System header to define __stub macros and hopefully few prototypes,
8391 which can conflict with char $ac_func(); below. */
8392 #include <assert.h>
8393 /* Override any gcc2 internal prototype to avoid an error. */
8394 /* We use char because int might match the return type of a gcc2
8395 builtin and then its argument prototype would still apply. */
8396 char $ac_func();
8398 int main() {
8400 /* The GNU C library defines this for functions which it implements
8401 to always fail with ENOSYS. Some functions are actually named
8402 something starting with __ and the normal name is an alias. */
8403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8404 choke me
8405 #else
8406 $ac_func();
8407 #endif
8409 ; return 0; }
8411 if { (eval echo configure:8412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8412 rm -rf conftest*
8413 eval "ac_cv_func_$ac_func=yes"
8414 else
8415 echo "configure: failed program was:" >&5
8416 cat conftest.$ac_ext >&5
8417 rm -rf conftest*
8418 eval "ac_cv_func_$ac_func=no"
8420 rm -f conftest*
8423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8424 echo "$ac_t""yes" 1>&6
8425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8426 cat >> confdefs.h <<EOF
8427 #define $ac_tr_func 1
8430 else
8431 echo "$ac_t""no" 1>&6
8432 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8434 done
8437 for ac_func in __signbit
8439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8440 echo "configure:8441: checking for $ac_func" >&5
8441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8442 echo $ac_n "(cached) $ac_c" 1>&6
8443 else
8444 cat > conftest.$ac_ext <<EOF
8445 #line 8446 "configure"
8446 #include "confdefs.h"
8447 /* System header to define __stub macros and hopefully few prototypes,
8448 which can conflict with char $ac_func(); below. */
8449 #include <assert.h>
8450 /* Override any gcc2 internal prototype to avoid an error. */
8451 /* We use char because int might match the return type of a gcc2
8452 builtin and then its argument prototype would still apply. */
8453 char $ac_func();
8455 int main() {
8457 /* The GNU C library defines this for functions which it implements
8458 to always fail with ENOSYS. Some functions are actually named
8459 something starting with __ and the normal name is an alias. */
8460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8461 choke me
8462 #else
8463 $ac_func();
8464 #endif
8466 ; return 0; }
8468 if { (eval echo configure:8469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8469 rm -rf conftest*
8470 eval "ac_cv_func_$ac_func=yes"
8471 else
8472 echo "configure: failed program was:" >&5
8473 cat conftest.$ac_ext >&5
8474 rm -rf conftest*
8475 eval "ac_cv_func_$ac_func=no"
8477 rm -f conftest*
8480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8481 echo "$ac_t""yes" 1>&6
8482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8483 cat >> confdefs.h <<EOF
8484 #define $ac_tr_func 1
8487 else
8488 echo "$ac_t""no" 1>&6
8489 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8491 done
8493 for ac_func in __signbitf
8495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8496 echo "configure:8497: checking for $ac_func" >&5
8497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8498 echo $ac_n "(cached) $ac_c" 1>&6
8499 else
8500 cat > conftest.$ac_ext <<EOF
8501 #line 8502 "configure"
8502 #include "confdefs.h"
8503 /* System header to define __stub macros and hopefully few prototypes,
8504 which can conflict with char $ac_func(); below. */
8505 #include <assert.h>
8506 /* Override any gcc2 internal prototype to avoid an error. */
8507 /* We use char because int might match the return type of a gcc2
8508 builtin and then its argument prototype would still apply. */
8509 char $ac_func();
8511 int main() {
8513 /* The GNU C library defines this for functions which it implements
8514 to always fail with ENOSYS. Some functions are actually named
8515 something starting with __ and the normal name is an alias. */
8516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8517 choke me
8518 #else
8519 $ac_func();
8520 #endif
8522 ; return 0; }
8524 if { (eval echo configure:8525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8525 rm -rf conftest*
8526 eval "ac_cv_func_$ac_func=yes"
8527 else
8528 echo "configure: failed program was:" >&5
8529 cat conftest.$ac_ext >&5
8530 rm -rf conftest*
8531 eval "ac_cv_func_$ac_func=no"
8533 rm -f conftest*
8536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8537 echo "$ac_t""yes" 1>&6
8538 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8539 cat >> confdefs.h <<EOF
8540 #define $ac_tr_func 1
8543 else
8544 echo "$ac_t""no" 1>&6
8545 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8547 done
8550 if test x$ac_cv_func_copysignl = x"yes"; then
8551 for ac_func in __signbitl
8553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8554 echo "configure:8555: checking for $ac_func" >&5
8555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8556 echo $ac_n "(cached) $ac_c" 1>&6
8557 else
8558 cat > conftest.$ac_ext <<EOF
8559 #line 8560 "configure"
8560 #include "confdefs.h"
8561 /* System header to define __stub macros and hopefully few prototypes,
8562 which can conflict with char $ac_func(); below. */
8563 #include <assert.h>
8564 /* Override any gcc2 internal prototype to avoid an error. */
8565 /* We use char because int might match the return type of a gcc2
8566 builtin and then its argument prototype would still apply. */
8567 char $ac_func();
8569 int main() {
8571 /* The GNU C library defines this for functions which it implements
8572 to always fail with ENOSYS. Some functions are actually named
8573 something starting with __ and the normal name is an alias. */
8574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8575 choke me
8576 #else
8577 $ac_func();
8578 #endif
8580 ; return 0; }
8582 if { (eval echo configure:8583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8583 rm -rf conftest*
8584 eval "ac_cv_func_$ac_func=yes"
8585 else
8586 echo "configure: failed program was:" >&5
8587 cat conftest.$ac_ext >&5
8588 rm -rf conftest*
8589 eval "ac_cv_func_$ac_func=no"
8591 rm -f conftest*
8594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8595 echo "$ac_t""yes" 1>&6
8596 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8597 cat >> confdefs.h <<EOF
8598 #define $ac_tr_func 1
8601 else
8602 echo "$ac_t""no" 1>&6
8603 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8605 done
8609 if test -n "$LIBMATHOBJS"; then
8610 need_libmath=yes
8616 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8617 echo "configure:8618: checking for mbstate_t" >&5
8618 cat > conftest.$ac_ext <<EOF
8619 #line 8620 "configure"
8620 #include "confdefs.h"
8621 #include <wchar.h>
8622 int main() {
8623 mbstate_t teststate;
8624 ; return 0; }
8626 if { (eval echo configure:8627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8627 rm -rf conftest*
8628 have_mbstate_t=yes
8629 else
8630 echo "configure: failed program was:" >&5
8631 cat conftest.$ac_ext >&5
8632 rm -rf conftest*
8633 have_mbstate_t=no
8635 rm -f conftest*
8636 echo "$ac_t""$have_mbstate_t" 1>&6
8637 if test x"$have_mbstate_t" = xyes; then
8638 cat >> confdefs.h <<\EOF
8639 #define HAVE_MBSTATE_T 1
8644 for ac_hdr in wchar.h
8646 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8647 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8648 echo "configure:8649: checking for $ac_hdr" >&5
8649 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8650 echo $ac_n "(cached) $ac_c" 1>&6
8651 else
8652 cat > conftest.$ac_ext <<EOF
8653 #line 8654 "configure"
8654 #include "confdefs.h"
8655 #include <$ac_hdr>
8657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8658 { (eval echo configure:8659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8660 if test -z "$ac_err"; then
8661 rm -rf conftest*
8662 eval "ac_cv_header_$ac_safe=yes"
8663 else
8664 echo "$ac_err" >&5
8665 echo "configure: failed program was:" >&5
8666 cat conftest.$ac_ext >&5
8667 rm -rf conftest*
8668 eval "ac_cv_header_$ac_safe=no"
8670 rm -f conftest*
8672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8673 echo "$ac_t""yes" 1>&6
8674 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8675 cat >> confdefs.h <<EOF
8676 #define $ac_tr_hdr 1
8678 ac_has_wchar_h=yes
8679 else
8680 echo "$ac_t""no" 1>&6
8681 ac_has_wchar_h=no
8683 done
8685 for ac_hdr in wctype.h
8687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8689 echo "configure:8690: checking for $ac_hdr" >&5
8690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8691 echo $ac_n "(cached) $ac_c" 1>&6
8692 else
8693 cat > conftest.$ac_ext <<EOF
8694 #line 8695 "configure"
8695 #include "confdefs.h"
8696 #include <$ac_hdr>
8698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8699 { (eval echo configure:8700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8701 if test -z "$ac_err"; then
8702 rm -rf conftest*
8703 eval "ac_cv_header_$ac_safe=yes"
8704 else
8705 echo "$ac_err" >&5
8706 echo "configure: failed program was:" >&5
8707 cat conftest.$ac_ext >&5
8708 rm -rf conftest*
8709 eval "ac_cv_header_$ac_safe=no"
8711 rm -f conftest*
8713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8714 echo "$ac_t""yes" 1>&6
8715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8716 cat >> confdefs.h <<EOF
8717 #define $ac_tr_hdr 1
8719 ac_has_wctype_h=yes
8720 else
8721 echo "$ac_t""no" 1>&6
8722 ac_has_wctype_h=no
8724 done
8727 if test x"$ac_has_wchar_h" = xyes &&
8728 test x"$ac_has_wctype_h" = xyes &&
8729 test x"$enable_c_mbchar" != xno; then
8731 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8732 echo "configure:8733: checking for WCHAR_MIN and WCHAR_MAX" >&5
8733 cat > conftest.$ac_ext <<EOF
8734 #line 8735 "configure"
8735 #include "confdefs.h"
8736 #include <wchar.h>
8737 int main() {
8738 int i = WCHAR_MIN; int j = WCHAR_MAX;
8739 ; return 0; }
8741 if { (eval echo configure:8742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8742 rm -rf conftest*
8743 has_wchar_minmax=yes
8744 else
8745 echo "configure: failed program was:" >&5
8746 cat conftest.$ac_ext >&5
8747 rm -rf conftest*
8748 has_wchar_minmax=no
8750 rm -f conftest*
8751 echo "$ac_t""$has_wchar_minmax" 1>&6
8753 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8754 echo "configure:8755: checking for WEOF" >&5
8755 cat > conftest.$ac_ext <<EOF
8756 #line 8757 "configure"
8757 #include "confdefs.h"
8759 #include <wchar.h>
8760 #include <stddef.h>
8761 int main() {
8762 wint_t i = WEOF;
8763 ; return 0; }
8765 if { (eval echo configure:8766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8766 rm -rf conftest*
8767 has_weof=yes
8768 else
8769 echo "configure: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8771 rm -rf conftest*
8772 has_weof=no
8774 rm -f conftest*
8775 echo "$ac_t""$has_weof" 1>&6
8777 ac_wfuncs=yes
8778 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8781 echo "configure:8782: checking for $ac_func" >&5
8782 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8783 echo $ac_n "(cached) $ac_c" 1>&6
8784 else
8785 cat > conftest.$ac_ext <<EOF
8786 #line 8787 "configure"
8787 #include "confdefs.h"
8788 /* System header to define __stub macros and hopefully few prototypes,
8789 which can conflict with char $ac_func(); below. */
8790 #include <assert.h>
8791 /* Override any gcc2 internal prototype to avoid an error. */
8792 /* We use char because int might match the return type of a gcc2
8793 builtin and then its argument prototype would still apply. */
8794 char $ac_func();
8796 int main() {
8798 /* The GNU C library defines this for functions which it implements
8799 to always fail with ENOSYS. Some functions are actually named
8800 something starting with __ and the normal name is an alias. */
8801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8802 choke me
8803 #else
8804 $ac_func();
8805 #endif
8807 ; return 0; }
8809 if { (eval echo configure:8810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8810 rm -rf conftest*
8811 eval "ac_cv_func_$ac_func=yes"
8812 else
8813 echo "configure: failed program was:" >&5
8814 cat conftest.$ac_ext >&5
8815 rm -rf conftest*
8816 eval "ac_cv_func_$ac_func=no"
8818 rm -f conftest*
8821 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8822 echo "$ac_t""yes" 1>&6
8823 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8824 cat >> confdefs.h <<EOF
8825 #define $ac_tr_func 1
8828 else
8829 echo "$ac_t""no" 1>&6
8831 ac_wfuncs=no
8833 done
8836 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8837 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8838 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8839 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8840 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8841 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8844 echo "configure:8845: checking for $ac_func" >&5
8845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8846 echo $ac_n "(cached) $ac_c" 1>&6
8847 else
8848 cat > conftest.$ac_ext <<EOF
8849 #line 8850 "configure"
8850 #include "confdefs.h"
8851 /* System header to define __stub macros and hopefully few prototypes,
8852 which can conflict with char $ac_func(); below. */
8853 #include <assert.h>
8854 /* Override any gcc2 internal prototype to avoid an error. */
8855 /* We use char because int might match the return type of a gcc2
8856 builtin and then its argument prototype would still apply. */
8857 char $ac_func();
8859 int main() {
8861 /* The GNU C library defines this for functions which it implements
8862 to always fail with ENOSYS. Some functions are actually named
8863 something starting with __ and the normal name is an alias. */
8864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8865 choke me
8866 #else
8867 $ac_func();
8868 #endif
8870 ; return 0; }
8872 if { (eval echo configure:8873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8873 rm -rf conftest*
8874 eval "ac_cv_func_$ac_func=yes"
8875 else
8876 echo "configure: failed program was:" >&5
8877 cat conftest.$ac_ext >&5
8878 rm -rf conftest*
8879 eval "ac_cv_func_$ac_func=no"
8881 rm -f conftest*
8884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8885 echo "$ac_t""yes" 1>&6
8886 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8887 cat >> confdefs.h <<EOF
8888 #define $ac_tr_func 1
8891 else
8892 echo "$ac_t""no" 1>&6
8894 ac_wfuncs=no
8896 done
8899 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8900 echo "configure:8901: checking for ISO C99 wchar_t support" >&5
8901 if test x"$has_weof" = xyes &&
8902 test x"$has_wchar_minmax" = xyes &&
8903 test x"$ac_wfuncs" = xyes; then
8904 ac_isoC99_wchar_t=yes
8905 else
8906 ac_isoC99_wchar_t=no
8908 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8910 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8911 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8912 echo "configure:8913: checking for iconv.h" >&5
8913 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8914 echo $ac_n "(cached) $ac_c" 1>&6
8915 else
8916 cat > conftest.$ac_ext <<EOF
8917 #line 8918 "configure"
8918 #include "confdefs.h"
8919 #include <iconv.h>
8921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8922 { (eval echo configure:8923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8924 if test -z "$ac_err"; then
8925 rm -rf conftest*
8926 eval "ac_cv_header_$ac_safe=yes"
8927 else
8928 echo "$ac_err" >&5
8929 echo "configure: failed program was:" >&5
8930 cat conftest.$ac_ext >&5
8931 rm -rf conftest*
8932 eval "ac_cv_header_$ac_safe=no"
8934 rm -f conftest*
8936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8937 echo "$ac_t""yes" 1>&6
8938 ac_has_iconv_h=yes
8939 else
8940 echo "$ac_t""no" 1>&6
8941 ac_has_iconv_h=no
8944 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8945 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8946 echo "configure:8947: checking for langinfo.h" >&5
8947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8948 echo $ac_n "(cached) $ac_c" 1>&6
8949 else
8950 cat > conftest.$ac_ext <<EOF
8951 #line 8952 "configure"
8952 #include "confdefs.h"
8953 #include <langinfo.h>
8955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8956 { (eval echo configure:8957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8958 if test -z "$ac_err"; then
8959 rm -rf conftest*
8960 eval "ac_cv_header_$ac_safe=yes"
8961 else
8962 echo "$ac_err" >&5
8963 echo "configure: failed program was:" >&5
8964 cat conftest.$ac_ext >&5
8965 rm -rf conftest*
8966 eval "ac_cv_header_$ac_safe=no"
8968 rm -f conftest*
8970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8971 echo "$ac_t""yes" 1>&6
8972 ac_has_langinfo_h=yes
8973 else
8974 echo "$ac_t""no" 1>&6
8975 ac_has_langinfo_h=no
8979 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8980 echo "configure:8981: checking for iconv in -liconv" >&5
8981 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8983 echo $ac_n "(cached) $ac_c" 1>&6
8984 else
8985 ac_save_LIBS="$LIBS"
8986 LIBS="-liconv $LIBS"
8987 cat > conftest.$ac_ext <<EOF
8988 #line 8989 "configure"
8989 #include "confdefs.h"
8990 /* Override any gcc2 internal prototype to avoid an error. */
8991 /* We use char because int might match the return type of a gcc2
8992 builtin and then its argument prototype would still apply. */
8993 char iconv();
8995 int main() {
8996 iconv()
8997 ; return 0; }
8999 if { (eval echo configure:9000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9000 rm -rf conftest*
9001 eval "ac_cv_lib_$ac_lib_var=yes"
9002 else
9003 echo "configure: failed program was:" >&5
9004 cat conftest.$ac_ext >&5
9005 rm -rf conftest*
9006 eval "ac_cv_lib_$ac_lib_var=no"
9008 rm -f conftest*
9009 LIBS="$ac_save_LIBS"
9012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9013 echo "$ac_t""yes" 1>&6
9014 libiconv="-liconv"
9015 else
9016 echo "$ac_t""no" 1>&6
9019 ac_save_LIBS="$LIBS"
9020 LIBS="$LIBS $libiconv"
9022 for ac_func in iconv_open iconv_close iconv nl_langinfo
9024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9025 echo "configure:9026: checking for $ac_func" >&5
9026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9027 echo $ac_n "(cached) $ac_c" 1>&6
9028 else
9029 cat > conftest.$ac_ext <<EOF
9030 #line 9031 "configure"
9031 #include "confdefs.h"
9032 /* System header to define __stub macros and hopefully few prototypes,
9033 which can conflict with char $ac_func(); below. */
9034 #include <assert.h>
9035 /* Override any gcc2 internal prototype to avoid an error. */
9036 /* We use char because int might match the return type of a gcc2
9037 builtin and then its argument prototype would still apply. */
9038 char $ac_func();
9040 int main() {
9042 /* The GNU C library defines this for functions which it implements
9043 to always fail with ENOSYS. Some functions are actually named
9044 something starting with __ and the normal name is an alias. */
9045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9046 choke me
9047 #else
9048 $ac_func();
9049 #endif
9051 ; return 0; }
9053 if { (eval echo configure:9054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9054 rm -rf conftest*
9055 eval "ac_cv_func_$ac_func=yes"
9056 else
9057 echo "configure: failed program was:" >&5
9058 cat conftest.$ac_ext >&5
9059 rm -rf conftest*
9060 eval "ac_cv_func_$ac_func=no"
9062 rm -f conftest*
9065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9066 echo "$ac_t""yes" 1>&6
9067 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9068 cat >> confdefs.h <<EOF
9069 #define $ac_tr_func 1
9072 ac_XPG2funcs=yes
9073 else
9074 echo "$ac_t""no" 1>&6
9075 ac_XPG2funcs=no
9077 done
9080 LIBS="$ac_save_LIBS"
9082 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9083 echo "configure:9084: checking for XPG2 wchar_t support" >&5
9084 if test x"$ac_has_iconv_h" = xyes &&
9085 test x"$ac_has_langinfo_h" = xyes &&
9086 test x"$ac_XPG2funcs" = xyes; then
9087 ac_XPG2_wchar_t=yes
9088 else
9089 ac_XPG2_wchar_t=no
9091 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9093 if test x"$ac_isoC99_wchar_t" = xyes &&
9094 test x"$ac_XPG2_wchar_t" = xyes; then
9095 cat >> confdefs.h <<\EOF
9096 #define _GLIBCPP_USE_WCHAR_T 1
9099 enable_wchar_t=yes
9102 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9103 echo "configure:9104: checking for enabled wchar_t specializations" >&5
9104 echo "$ac_t""$enable_wchar_t" 1>&6
9106 cat >> confdefs.h <<\EOF
9107 #define HAVE_COPYSIGN 1
9110 cat >> confdefs.h <<\EOF
9111 #define HAVE_COPYSIGNF 1
9114 cat >> confdefs.h <<\EOF
9115 #define HAVE_FINITEF 1
9118 cat >> confdefs.h <<\EOF
9119 #define HAVE_FINITE 1
9122 cat >> confdefs.h <<\EOF
9123 #define HAVE_FREXPF 1
9126 cat >> confdefs.h <<\EOF
9127 #define HAVE_HYPOTF 1
9130 cat >> confdefs.h <<\EOF
9131 #define HAVE_ISINF 1
9134 cat >> confdefs.h <<\EOF
9135 #define HAVE_ISINFF 1
9138 cat >> confdefs.h <<\EOF
9139 #define HAVE_ISNAN 1
9142 cat >> confdefs.h <<\EOF
9143 #define HAVE_ISNANF 1
9146 if test x"long_double_math_on_this_cpu" = x"yes"; then
9147 cat >> confdefs.h <<\EOF
9148 #define HAVE_FINITEL 1
9151 cat >> confdefs.h <<\EOF
9152 #define HAVE_ISINFL 1
9155 cat >> confdefs.h <<\EOF
9156 #define HAVE_ISNANL 1
9161 *-qnx6.1* | *-qnx6.2*)
9162 os_include_dir="os/qnx/qnx6.1"
9163 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9166 # If we're not using GNU ld, then there's no point in even trying these
9167 # tests. Check for that first. We should have already tested for gld
9168 # by now (in libtool), but require it now just to be safe...
9169 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9170 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9173 # The name set by libtool depends on the version of libtool. Shame on us
9174 # for depending on an impl detail, but c'est la vie. Older versions used
9175 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9176 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9177 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9178 # set (hence we're using an older libtool), then set it.
9179 if test x${with_gnu_ld+set} != xset; then
9180 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9181 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9182 with_gnu_ld=no
9183 else
9184 with_gnu_ld=$ac_cv_prog_gnu_ld
9188 # Start by getting the version number. I think the libtool test already
9189 # does some of this, but throws away the result.
9191 ldver=`$LD --version 2>/dev/null | head -1 | \
9192 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9194 glibcpp_gnu_ld_version=`echo $ldver | \
9195 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9197 # Set --gc-sections.
9198 if test "$with_gnu_ld" = "notbroken"; then
9199 # GNU ld it is! Joy and bunny rabbits!
9201 # All these tests are for C++; save the language and the compiler flags.
9202 # Need to do this so that g++ won't try to link in libstdc++
9203 ac_test_CFLAGS="${CFLAGS+set}"
9204 ac_save_CFLAGS="$CFLAGS"
9205 CFLAGS='-x c++ -Wl,--gc-sections'
9207 # Check for -Wl,--gc-sections
9208 # XXX This test is broken at the moment, as symbols required for
9209 # linking are now in libsupc++ (not built yet.....). In addition,
9210 # this test has cored on solaris in the past. In addition,
9211 # --gc-sections doesn't really work at the moment (keeps on discarding
9212 # used sections, first .eh_frame and now some of the glibc sections for
9213 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9214 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9215 echo "configure:9216: checking for ld that supports -Wl,--gc-sections" >&5
9216 if test "$cross_compiling" = yes; then
9217 ac_sectionLDflags=yes
9218 else
9219 cat > conftest.$ac_ext <<EOF
9220 #line 9221 "configure"
9221 #include "confdefs.h"
9223 int main(void)
9225 try { throw 1; }
9226 catch (...) { };
9227 return 0;
9231 if { (eval echo configure:9232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9232 then
9233 ac_sectionLDflags=yes
9234 else
9235 echo "configure: failed program was:" >&5
9236 cat conftest.$ac_ext >&5
9237 rm -fr conftest*
9238 ac_sectionLDflags=no
9240 rm -fr conftest*
9243 if test "$ac_test_CFLAGS" = set; then
9244 CFLAGS="$ac_save_CFLAGS"
9245 else
9246 # this is the suspicious part
9247 CFLAGS=''
9249 if test "$ac_sectionLDflags" = "yes"; then
9250 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9252 echo "$ac_t""$ac_sectionLDflags" 1>&6
9255 # Set linker optimization flags.
9256 if test x"$with_gnu_ld" = x"yes"; then
9257 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9264 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9265 echo "configure:9266: checking for main in -lm" >&5
9266 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9267 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9268 echo $ac_n "(cached) $ac_c" 1>&6
9269 else
9270 ac_save_LIBS="$LIBS"
9271 LIBS="-lm $LIBS"
9272 cat > conftest.$ac_ext <<EOF
9273 #line 9274 "configure"
9274 #include "confdefs.h"
9276 int main() {
9277 main()
9278 ; return 0; }
9280 if { (eval echo configure:9281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9281 rm -rf conftest*
9282 eval "ac_cv_lib_$ac_lib_var=yes"
9283 else
9284 echo "configure: failed program was:" >&5
9285 cat conftest.$ac_ext >&5
9286 rm -rf conftest*
9287 eval "ac_cv_lib_$ac_lib_var=no"
9289 rm -f conftest*
9290 LIBS="$ac_save_LIBS"
9293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9294 echo "$ac_t""yes" 1>&6
9295 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9296 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9297 cat >> confdefs.h <<EOF
9298 #define $ac_tr_lib 1
9301 LIBS="-lm $LIBS"
9303 else
9304 echo "$ac_t""no" 1>&6
9307 for ac_func in nan copysignf
9309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9310 echo "configure:9311: checking for $ac_func" >&5
9311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9312 echo $ac_n "(cached) $ac_c" 1>&6
9313 else
9314 cat > conftest.$ac_ext <<EOF
9315 #line 9316 "configure"
9316 #include "confdefs.h"
9317 /* System header to define __stub macros and hopefully few prototypes,
9318 which can conflict with char $ac_func(); below. */
9319 #include <assert.h>
9320 /* Override any gcc2 internal prototype to avoid an error. */
9321 /* We use char because int might match the return type of a gcc2
9322 builtin and then its argument prototype would still apply. */
9323 char $ac_func();
9325 int main() {
9327 /* The GNU C library defines this for functions which it implements
9328 to always fail with ENOSYS. Some functions are actually named
9329 something starting with __ and the normal name is an alias. */
9330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9331 choke me
9332 #else
9333 $ac_func();
9334 #endif
9336 ; return 0; }
9338 if { (eval echo configure:9339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9339 rm -rf conftest*
9340 eval "ac_cv_func_$ac_func=yes"
9341 else
9342 echo "configure: failed program was:" >&5
9343 cat conftest.$ac_ext >&5
9344 rm -rf conftest*
9345 eval "ac_cv_func_$ac_func=no"
9347 rm -f conftest*
9350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9351 echo "$ac_t""yes" 1>&6
9352 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9353 cat >> confdefs.h <<EOF
9354 #define $ac_tr_func 1
9357 else
9358 echo "$ac_t""no" 1>&6
9359 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9361 done
9364 for ac_func in __signbit
9366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9367 echo "configure:9368: checking for $ac_func" >&5
9368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9369 echo $ac_n "(cached) $ac_c" 1>&6
9370 else
9371 cat > conftest.$ac_ext <<EOF
9372 #line 9373 "configure"
9373 #include "confdefs.h"
9374 /* System header to define __stub macros and hopefully few prototypes,
9375 which can conflict with char $ac_func(); below. */
9376 #include <assert.h>
9377 /* Override any gcc2 internal prototype to avoid an error. */
9378 /* We use char because int might match the return type of a gcc2
9379 builtin and then its argument prototype would still apply. */
9380 char $ac_func();
9382 int main() {
9384 /* The GNU C library defines this for functions which it implements
9385 to always fail with ENOSYS. Some functions are actually named
9386 something starting with __ and the normal name is an alias. */
9387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9388 choke me
9389 #else
9390 $ac_func();
9391 #endif
9393 ; return 0; }
9395 if { (eval echo configure:9396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9396 rm -rf conftest*
9397 eval "ac_cv_func_$ac_func=yes"
9398 else
9399 echo "configure: failed program was:" >&5
9400 cat conftest.$ac_ext >&5
9401 rm -rf conftest*
9402 eval "ac_cv_func_$ac_func=no"
9404 rm -f conftest*
9407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9408 echo "$ac_t""yes" 1>&6
9409 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9410 cat >> confdefs.h <<EOF
9411 #define $ac_tr_func 1
9414 else
9415 echo "$ac_t""no" 1>&6
9416 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9418 done
9420 for ac_func in __signbitf
9422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9423 echo "configure:9424: checking for $ac_func" >&5
9424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9425 echo $ac_n "(cached) $ac_c" 1>&6
9426 else
9427 cat > conftest.$ac_ext <<EOF
9428 #line 9429 "configure"
9429 #include "confdefs.h"
9430 /* System header to define __stub macros and hopefully few prototypes,
9431 which can conflict with char $ac_func(); below. */
9432 #include <assert.h>
9433 /* Override any gcc2 internal prototype to avoid an error. */
9434 /* We use char because int might match the return type of a gcc2
9435 builtin and then its argument prototype would still apply. */
9436 char $ac_func();
9438 int main() {
9440 /* The GNU C library defines this for functions which it implements
9441 to always fail with ENOSYS. Some functions are actually named
9442 something starting with __ and the normal name is an alias. */
9443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9444 choke me
9445 #else
9446 $ac_func();
9447 #endif
9449 ; return 0; }
9451 if { (eval echo configure:9452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9452 rm -rf conftest*
9453 eval "ac_cv_func_$ac_func=yes"
9454 else
9455 echo "configure: failed program was:" >&5
9456 cat conftest.$ac_ext >&5
9457 rm -rf conftest*
9458 eval "ac_cv_func_$ac_func=no"
9460 rm -f conftest*
9463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9464 echo "$ac_t""yes" 1>&6
9465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9466 cat >> confdefs.h <<EOF
9467 #define $ac_tr_func 1
9470 else
9471 echo "$ac_t""no" 1>&6
9472 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9474 done
9477 if test x$ac_cv_func_copysignl = x"yes"; then
9478 for ac_func in __signbitl
9480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9481 echo "configure:9482: checking for $ac_func" >&5
9482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9483 echo $ac_n "(cached) $ac_c" 1>&6
9484 else
9485 cat > conftest.$ac_ext <<EOF
9486 #line 9487 "configure"
9487 #include "confdefs.h"
9488 /* System header to define __stub macros and hopefully few prototypes,
9489 which can conflict with char $ac_func(); below. */
9490 #include <assert.h>
9491 /* Override any gcc2 internal prototype to avoid an error. */
9492 /* We use char because int might match the return type of a gcc2
9493 builtin and then its argument prototype would still apply. */
9494 char $ac_func();
9496 int main() {
9498 /* The GNU C library defines this for functions which it implements
9499 to always fail with ENOSYS. Some functions are actually named
9500 something starting with __ and the normal name is an alias. */
9501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9502 choke me
9503 #else
9504 $ac_func();
9505 #endif
9507 ; return 0; }
9509 if { (eval echo configure:9510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9510 rm -rf conftest*
9511 eval "ac_cv_func_$ac_func=yes"
9512 else
9513 echo "configure: failed program was:" >&5
9514 cat conftest.$ac_ext >&5
9515 rm -rf conftest*
9516 eval "ac_cv_func_$ac_func=no"
9518 rm -f conftest*
9521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9522 echo "$ac_t""yes" 1>&6
9523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9524 cat >> confdefs.h <<EOF
9525 #define $ac_tr_func 1
9528 else
9529 echo "$ac_t""no" 1>&6
9530 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9532 done
9536 if test -n "$LIBMATHOBJS"; then
9537 need_libmath=yes
9543 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9544 echo "configure:9545: checking for mbstate_t" >&5
9545 cat > conftest.$ac_ext <<EOF
9546 #line 9547 "configure"
9547 #include "confdefs.h"
9548 #include <wchar.h>
9549 int main() {
9550 mbstate_t teststate;
9551 ; return 0; }
9553 if { (eval echo configure:9554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9554 rm -rf conftest*
9555 have_mbstate_t=yes
9556 else
9557 echo "configure: failed program was:" >&5
9558 cat conftest.$ac_ext >&5
9559 rm -rf conftest*
9560 have_mbstate_t=no
9562 rm -f conftest*
9563 echo "$ac_t""$have_mbstate_t" 1>&6
9564 if test x"$have_mbstate_t" = xyes; then
9565 cat >> confdefs.h <<\EOF
9566 #define HAVE_MBSTATE_T 1
9571 for ac_hdr in wchar.h
9573 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9574 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9575 echo "configure:9576: checking for $ac_hdr" >&5
9576 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9577 echo $ac_n "(cached) $ac_c" 1>&6
9578 else
9579 cat > conftest.$ac_ext <<EOF
9580 #line 9581 "configure"
9581 #include "confdefs.h"
9582 #include <$ac_hdr>
9584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9585 { (eval echo configure:9586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9587 if test -z "$ac_err"; then
9588 rm -rf conftest*
9589 eval "ac_cv_header_$ac_safe=yes"
9590 else
9591 echo "$ac_err" >&5
9592 echo "configure: failed program was:" >&5
9593 cat conftest.$ac_ext >&5
9594 rm -rf conftest*
9595 eval "ac_cv_header_$ac_safe=no"
9597 rm -f conftest*
9599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9600 echo "$ac_t""yes" 1>&6
9601 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9602 cat >> confdefs.h <<EOF
9603 #define $ac_tr_hdr 1
9605 ac_has_wchar_h=yes
9606 else
9607 echo "$ac_t""no" 1>&6
9608 ac_has_wchar_h=no
9610 done
9612 for ac_hdr in wctype.h
9614 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9616 echo "configure:9617: checking for $ac_hdr" >&5
9617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9618 echo $ac_n "(cached) $ac_c" 1>&6
9619 else
9620 cat > conftest.$ac_ext <<EOF
9621 #line 9622 "configure"
9622 #include "confdefs.h"
9623 #include <$ac_hdr>
9625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9626 { (eval echo configure:9627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9628 if test -z "$ac_err"; then
9629 rm -rf conftest*
9630 eval "ac_cv_header_$ac_safe=yes"
9631 else
9632 echo "$ac_err" >&5
9633 echo "configure: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9635 rm -rf conftest*
9636 eval "ac_cv_header_$ac_safe=no"
9638 rm -f conftest*
9640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9641 echo "$ac_t""yes" 1>&6
9642 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9643 cat >> confdefs.h <<EOF
9644 #define $ac_tr_hdr 1
9646 ac_has_wctype_h=yes
9647 else
9648 echo "$ac_t""no" 1>&6
9649 ac_has_wctype_h=no
9651 done
9654 if test x"$ac_has_wchar_h" = xyes &&
9655 test x"$ac_has_wctype_h" = xyes &&
9656 test x"$enable_c_mbchar" != xno; then
9658 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9659 echo "configure:9660: checking for WCHAR_MIN and WCHAR_MAX" >&5
9660 cat > conftest.$ac_ext <<EOF
9661 #line 9662 "configure"
9662 #include "confdefs.h"
9663 #include <wchar.h>
9664 int main() {
9665 int i = WCHAR_MIN; int j = WCHAR_MAX;
9666 ; return 0; }
9668 if { (eval echo configure:9669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9669 rm -rf conftest*
9670 has_wchar_minmax=yes
9671 else
9672 echo "configure: failed program was:" >&5
9673 cat conftest.$ac_ext >&5
9674 rm -rf conftest*
9675 has_wchar_minmax=no
9677 rm -f conftest*
9678 echo "$ac_t""$has_wchar_minmax" 1>&6
9680 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9681 echo "configure:9682: checking for WEOF" >&5
9682 cat > conftest.$ac_ext <<EOF
9683 #line 9684 "configure"
9684 #include "confdefs.h"
9686 #include <wchar.h>
9687 #include <stddef.h>
9688 int main() {
9689 wint_t i = WEOF;
9690 ; return 0; }
9692 if { (eval echo configure:9693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9693 rm -rf conftest*
9694 has_weof=yes
9695 else
9696 echo "configure: failed program was:" >&5
9697 cat conftest.$ac_ext >&5
9698 rm -rf conftest*
9699 has_weof=no
9701 rm -f conftest*
9702 echo "$ac_t""$has_weof" 1>&6
9704 ac_wfuncs=yes
9705 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9708 echo "configure:9709: checking for $ac_func" >&5
9709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9710 echo $ac_n "(cached) $ac_c" 1>&6
9711 else
9712 cat > conftest.$ac_ext <<EOF
9713 #line 9714 "configure"
9714 #include "confdefs.h"
9715 /* System header to define __stub macros and hopefully few prototypes,
9716 which can conflict with char $ac_func(); below. */
9717 #include <assert.h>
9718 /* Override any gcc2 internal prototype to avoid an error. */
9719 /* We use char because int might match the return type of a gcc2
9720 builtin and then its argument prototype would still apply. */
9721 char $ac_func();
9723 int main() {
9725 /* The GNU C library defines this for functions which it implements
9726 to always fail with ENOSYS. Some functions are actually named
9727 something starting with __ and the normal name is an alias. */
9728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9729 choke me
9730 #else
9731 $ac_func();
9732 #endif
9734 ; return 0; }
9736 if { (eval echo configure:9737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9737 rm -rf conftest*
9738 eval "ac_cv_func_$ac_func=yes"
9739 else
9740 echo "configure: failed program was:" >&5
9741 cat conftest.$ac_ext >&5
9742 rm -rf conftest*
9743 eval "ac_cv_func_$ac_func=no"
9745 rm -f conftest*
9748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9749 echo "$ac_t""yes" 1>&6
9750 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9751 cat >> confdefs.h <<EOF
9752 #define $ac_tr_func 1
9755 else
9756 echo "$ac_t""no" 1>&6
9758 ac_wfuncs=no
9760 done
9763 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9764 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9765 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9766 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9767 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9768 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9771 echo "configure:9772: checking for $ac_func" >&5
9772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9773 echo $ac_n "(cached) $ac_c" 1>&6
9774 else
9775 cat > conftest.$ac_ext <<EOF
9776 #line 9777 "configure"
9777 #include "confdefs.h"
9778 /* System header to define __stub macros and hopefully few prototypes,
9779 which can conflict with char $ac_func(); below. */
9780 #include <assert.h>
9781 /* Override any gcc2 internal prototype to avoid an error. */
9782 /* We use char because int might match the return type of a gcc2
9783 builtin and then its argument prototype would still apply. */
9784 char $ac_func();
9786 int main() {
9788 /* The GNU C library defines this for functions which it implements
9789 to always fail with ENOSYS. Some functions are actually named
9790 something starting with __ and the normal name is an alias. */
9791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9792 choke me
9793 #else
9794 $ac_func();
9795 #endif
9797 ; return 0; }
9799 if { (eval echo configure:9800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9800 rm -rf conftest*
9801 eval "ac_cv_func_$ac_func=yes"
9802 else
9803 echo "configure: failed program was:" >&5
9804 cat conftest.$ac_ext >&5
9805 rm -rf conftest*
9806 eval "ac_cv_func_$ac_func=no"
9808 rm -f conftest*
9811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9812 echo "$ac_t""yes" 1>&6
9813 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9814 cat >> confdefs.h <<EOF
9815 #define $ac_tr_func 1
9818 else
9819 echo "$ac_t""no" 1>&6
9821 ac_wfuncs=no
9823 done
9826 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9827 echo "configure:9828: checking for ISO C99 wchar_t support" >&5
9828 if test x"$has_weof" = xyes &&
9829 test x"$has_wchar_minmax" = xyes &&
9830 test x"$ac_wfuncs" = xyes; then
9831 ac_isoC99_wchar_t=yes
9832 else
9833 ac_isoC99_wchar_t=no
9835 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9837 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9838 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9839 echo "configure:9840: checking for iconv.h" >&5
9840 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9841 echo $ac_n "(cached) $ac_c" 1>&6
9842 else
9843 cat > conftest.$ac_ext <<EOF
9844 #line 9845 "configure"
9845 #include "confdefs.h"
9846 #include <iconv.h>
9848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9849 { (eval echo configure:9850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9851 if test -z "$ac_err"; then
9852 rm -rf conftest*
9853 eval "ac_cv_header_$ac_safe=yes"
9854 else
9855 echo "$ac_err" >&5
9856 echo "configure: failed program was:" >&5
9857 cat conftest.$ac_ext >&5
9858 rm -rf conftest*
9859 eval "ac_cv_header_$ac_safe=no"
9861 rm -f conftest*
9863 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9864 echo "$ac_t""yes" 1>&6
9865 ac_has_iconv_h=yes
9866 else
9867 echo "$ac_t""no" 1>&6
9868 ac_has_iconv_h=no
9871 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9872 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9873 echo "configure:9874: checking for langinfo.h" >&5
9874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9875 echo $ac_n "(cached) $ac_c" 1>&6
9876 else
9877 cat > conftest.$ac_ext <<EOF
9878 #line 9879 "configure"
9879 #include "confdefs.h"
9880 #include <langinfo.h>
9882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9883 { (eval echo configure:9884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9885 if test -z "$ac_err"; then
9886 rm -rf conftest*
9887 eval "ac_cv_header_$ac_safe=yes"
9888 else
9889 echo "$ac_err" >&5
9890 echo "configure: failed program was:" >&5
9891 cat conftest.$ac_ext >&5
9892 rm -rf conftest*
9893 eval "ac_cv_header_$ac_safe=no"
9895 rm -f conftest*
9897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9898 echo "$ac_t""yes" 1>&6
9899 ac_has_langinfo_h=yes
9900 else
9901 echo "$ac_t""no" 1>&6
9902 ac_has_langinfo_h=no
9906 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9907 echo "configure:9908: checking for iconv in -liconv" >&5
9908 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9910 echo $ac_n "(cached) $ac_c" 1>&6
9911 else
9912 ac_save_LIBS="$LIBS"
9913 LIBS="-liconv $LIBS"
9914 cat > conftest.$ac_ext <<EOF
9915 #line 9916 "configure"
9916 #include "confdefs.h"
9917 /* Override any gcc2 internal prototype to avoid an error. */
9918 /* We use char because int might match the return type of a gcc2
9919 builtin and then its argument prototype would still apply. */
9920 char iconv();
9922 int main() {
9923 iconv()
9924 ; return 0; }
9926 if { (eval echo configure:9927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9927 rm -rf conftest*
9928 eval "ac_cv_lib_$ac_lib_var=yes"
9929 else
9930 echo "configure: failed program was:" >&5
9931 cat conftest.$ac_ext >&5
9932 rm -rf conftest*
9933 eval "ac_cv_lib_$ac_lib_var=no"
9935 rm -f conftest*
9936 LIBS="$ac_save_LIBS"
9939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9940 echo "$ac_t""yes" 1>&6
9941 libiconv="-liconv"
9942 else
9943 echo "$ac_t""no" 1>&6
9946 ac_save_LIBS="$LIBS"
9947 LIBS="$LIBS $libiconv"
9949 for ac_func in iconv_open iconv_close iconv nl_langinfo
9951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9952 echo "configure:9953: checking for $ac_func" >&5
9953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9954 echo $ac_n "(cached) $ac_c" 1>&6
9955 else
9956 cat > conftest.$ac_ext <<EOF
9957 #line 9958 "configure"
9958 #include "confdefs.h"
9959 /* System header to define __stub macros and hopefully few prototypes,
9960 which can conflict with char $ac_func(); below. */
9961 #include <assert.h>
9962 /* Override any gcc2 internal prototype to avoid an error. */
9963 /* We use char because int might match the return type of a gcc2
9964 builtin and then its argument prototype would still apply. */
9965 char $ac_func();
9967 int main() {
9969 /* The GNU C library defines this for functions which it implements
9970 to always fail with ENOSYS. Some functions are actually named
9971 something starting with __ and the normal name is an alias. */
9972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9973 choke me
9974 #else
9975 $ac_func();
9976 #endif
9978 ; return 0; }
9980 if { (eval echo configure:9981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9981 rm -rf conftest*
9982 eval "ac_cv_func_$ac_func=yes"
9983 else
9984 echo "configure: failed program was:" >&5
9985 cat conftest.$ac_ext >&5
9986 rm -rf conftest*
9987 eval "ac_cv_func_$ac_func=no"
9989 rm -f conftest*
9992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9993 echo "$ac_t""yes" 1>&6
9994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9995 cat >> confdefs.h <<EOF
9996 #define $ac_tr_func 1
9999 ac_XPG2funcs=yes
10000 else
10001 echo "$ac_t""no" 1>&6
10002 ac_XPG2funcs=no
10004 done
10007 LIBS="$ac_save_LIBS"
10009 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
10010 echo "configure:10011: checking for XPG2 wchar_t support" >&5
10011 if test x"$ac_has_iconv_h" = xyes &&
10012 test x"$ac_has_langinfo_h" = xyes &&
10013 test x"$ac_XPG2funcs" = xyes; then
10014 ac_XPG2_wchar_t=yes
10015 else
10016 ac_XPG2_wchar_t=no
10018 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
10020 if test x"$ac_isoC99_wchar_t" = xyes &&
10021 test x"$ac_XPG2_wchar_t" = xyes; then
10022 cat >> confdefs.h <<\EOF
10023 #define _GLIBCPP_USE_WCHAR_T 1
10026 enable_wchar_t=yes
10029 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
10030 echo "configure:10031: checking for enabled wchar_t specializations" >&5
10031 echo "$ac_t""$enable_wchar_t" 1>&6
10033 cat >> confdefs.h <<\EOF
10034 #define HAVE_COSF 1
10037 cat >> confdefs.h <<\EOF
10038 #define HAVE_COSL 1
10041 cat >> confdefs.h <<\EOF
10042 #define HAVE_COSHF 1
10045 cat >> confdefs.h <<\EOF
10046 #define HAVE_COSHL 1
10049 cat >> confdefs.h <<\EOF
10050 #define HAVE_LOGF 1
10053 cat >> confdefs.h <<\EOF
10054 #define HAVE_LOGL 1
10057 cat >> confdefs.h <<\EOF
10058 #define HAVE_LOG10F 1
10061 cat >> confdefs.h <<\EOF
10062 #define HAVE_LOG10L 1
10065 cat >> confdefs.h <<\EOF
10066 #define HAVE_SINF 1
10069 cat >> confdefs.h <<\EOF
10070 #define HAVE_SINL 1
10073 cat >> confdefs.h <<\EOF
10074 #define HAVE_SINHF 1
10077 cat >> confdefs.h <<\EOF
10078 #define HAVE_SINHL 1
10082 *-solaris*)
10083 case "$target" in
10084 *-solaris2.5)
10085 os_include_dir="os/solaris/solaris2.5"
10087 *-solaris2.6)
10088 os_include_dir="os/solaris/solaris2.6"
10090 *-solaris2.7 | *-solaris2.8 | *-solaris2.9)
10091 os_include_dir="os/solaris/solaris2.7"
10093 esac
10094 cat >> confdefs.h <<\EOF
10095 #define HAVE_STRTOF 1
10098 cat >> confdefs.h <<\EOF
10099 #define HAVE_STRTOLD 1
10102 cat >> confdefs.h <<\EOF
10103 #define HAVE_MMAP 1
10106 cat >> confdefs.h <<\EOF
10107 #define HAVE_COPYSIGN 1
10110 cat >> confdefs.h <<\EOF
10111 #define HAVE_ISNAN 1
10114 cat >> confdefs.h <<\EOF
10115 #define HAVE_ISNANF 1
10118 cat >> confdefs.h <<\EOF
10119 #define HAVE_MODFF 1
10122 cat >> confdefs.h <<\EOF
10123 #define HAVE_HYPOT 1
10127 *-windiss*)
10128 os_include_dir="os/windiss"
10129 cat >> confdefs.h <<\EOF
10130 #define HAVE_ACOSF 1
10133 cat >> confdefs.h <<\EOF
10134 #define HAVE_ASINF 1
10137 cat >> confdefs.h <<\EOF
10138 #define HAVE_ATAN2F 1
10141 cat >> confdefs.h <<\EOF
10142 #define HAVE_ATANF 1
10145 cat >> confdefs.h <<\EOF
10146 #define HAVE_CEILF 1
10149 cat >> confdefs.h <<\EOF
10150 #define HAVE_COPYSIGN 1
10153 cat >> confdefs.h <<\EOF
10154 #define HAVE_COPYSIGNF 1
10157 cat >> confdefs.h <<\EOF
10158 #define HAVE_COSF 1
10161 cat >> confdefs.h <<\EOF
10162 #define HAVE_COSHF 1
10165 cat >> confdefs.h <<\EOF
10166 #define HAVE_EXPF 1
10169 cat >> confdefs.h <<\EOF
10170 #define HAVE_FABSF 1
10173 cat >> confdefs.h <<\EOF
10174 #define HAVE_FLOORF 1
10177 cat >> confdefs.h <<\EOF
10178 #define HAVE_FMODF 1
10181 cat >> confdefs.h <<\EOF
10182 #define HAVE_FREXPF 1
10185 cat >> confdefs.h <<\EOF
10186 #define HAVE_LDEXPF 1
10189 cat >> confdefs.h <<\EOF
10190 #define HAVE_LOG10F 1
10193 cat >> confdefs.h <<\EOF
10194 #define HAVE_LOGF 1
10197 cat >> confdefs.h <<\EOF
10198 #define HAVE_MODFF 1
10201 cat >> confdefs.h <<\EOF
10202 #define HAVE_POWF 1
10205 cat >> confdefs.h <<\EOF
10206 #define HAVE_SINF 1
10209 cat >> confdefs.h <<\EOF
10210 #define HAVE_SINHF 1
10213 cat >> confdefs.h <<\EOF
10214 #define HAVE_SQRTF 1
10217 cat >> confdefs.h <<\EOF
10218 #define HAVE_TANF 1
10221 cat >> confdefs.h <<\EOF
10222 #define HAVE_TANHF 1
10227 if test "x${with_newlib}" = "xyes"; then
10228 os_include_dir="os/newlib"
10229 cat >> confdefs.h <<\EOF
10230 #define HAVE_HYPOT 1
10234 # GLIBCPP_CHECK_STDLIB_SUPPORT
10235 cat >> confdefs.h <<\EOF
10236 #define HAVE_STRTOF 1
10239 cat >> confdefs.h <<\EOF
10240 #define HAVE_STRTOLD 1
10243 # AC_FUNC_MMAP
10244 cat >> confdefs.h <<\EOF
10245 #define HAVE_MMAP 1
10249 cat >> confdefs.h <<\EOF
10250 #define HAVE_ACOSF 1
10253 cat >> confdefs.h <<\EOF
10254 #define HAVE_ASINF 1
10257 cat >> confdefs.h <<\EOF
10258 #define HAVE_ATAN2F 1
10261 cat >> confdefs.h <<\EOF
10262 #define HAVE_ATANF 1
10265 cat >> confdefs.h <<\EOF
10266 #define HAVE_CEILF 1
10269 cat >> confdefs.h <<\EOF
10270 #define HAVE_COPYSIGN 1
10273 cat >> confdefs.h <<\EOF
10274 #define HAVE_COPYSIGNF 1
10277 cat >> confdefs.h <<\EOF
10278 #define HAVE_COSF 1
10281 cat >> confdefs.h <<\EOF
10282 #define HAVE_COSHF 1
10285 cat >> confdefs.h <<\EOF
10286 #define HAVE_EXPF 1
10289 cat >> confdefs.h <<\EOF
10290 #define HAVE_FABSF 1
10293 cat >> confdefs.h <<\EOF
10294 #define HAVE_FLOORF 1
10297 cat >> confdefs.h <<\EOF
10298 #define HAVE_FMODF 1
10301 cat >> confdefs.h <<\EOF
10302 #define HAVE_FREXPF 1
10305 cat >> confdefs.h <<\EOF
10306 #define HAVE_LDEXPF 1
10309 cat >> confdefs.h <<\EOF
10310 #define HAVE_LOG10F 1
10313 cat >> confdefs.h <<\EOF
10314 #define HAVE_LOGF 1
10317 cat >> confdefs.h <<\EOF
10318 #define HAVE_MODFF 1
10321 cat >> confdefs.h <<\EOF
10322 #define HAVE_POWF 1
10325 cat >> confdefs.h <<\EOF
10326 #define HAVE_SINF 1
10329 cat >> confdefs.h <<\EOF
10330 #define HAVE_SINHF 1
10333 cat >> confdefs.h <<\EOF
10334 #define HAVE_SQRTF 1
10337 cat >> confdefs.h <<\EOF
10338 #define HAVE_TANF 1
10341 cat >> confdefs.h <<\EOF
10342 #define HAVE_TANHF 1
10345 else
10346 { echo "configure: error: No support for this host/target combination." 1>&2; exit 1; }
10349 esac
10351 # At some point, we should differentiate between architectures
10352 # like x86, which have long double versions, and alpha/powerpc/etc.,
10353 # which don't. For the time being, punt.
10354 if test x"long_double_math_on_this_cpu" = x"yes"; then
10355 cat >> confdefs.h <<\EOF
10356 #define HAVE_ACOSL 1
10359 cat >> confdefs.h <<\EOF
10360 #define HAVE_ASINL 1
10363 cat >> confdefs.h <<\EOF
10364 #define HAVE_ATAN2L 1
10367 cat >> confdefs.h <<\EOF
10368 #define HAVE_ATANL 1
10371 cat >> confdefs.h <<\EOF
10372 #define HAVE_CEILL 1
10375 cat >> confdefs.h <<\EOF
10376 #define HAVE_COPYSIGNL 1
10379 cat >> confdefs.h <<\EOF
10380 #define HAVE_COSL 1
10383 cat >> confdefs.h <<\EOF
10384 #define HAVE_COSHL 1
10387 cat >> confdefs.h <<\EOF
10388 #define HAVE_EXPL 1
10391 cat >> confdefs.h <<\EOF
10392 #define HAVE_FABSL 1
10395 cat >> confdefs.h <<\EOF
10396 #define HAVE_FLOORL 1
10399 cat >> confdefs.h <<\EOF
10400 #define HAVE_FMODL 1
10403 cat >> confdefs.h <<\EOF
10404 #define HAVE_FREXPL 1
10407 cat >> confdefs.h <<\EOF
10408 #define HAVE_LDEXPL 1
10411 cat >> confdefs.h <<\EOF
10412 #define HAVE_LOG10L 1
10415 cat >> confdefs.h <<\EOF
10416 #define HAVE_LOGL 1
10419 cat >> confdefs.h <<\EOF
10420 #define HAVE_MODFL 1
10423 cat >> confdefs.h <<\EOF
10424 #define HAVE_POWL 1
10427 cat >> confdefs.h <<\EOF
10428 #define HAVE_SINCOSL 1
10431 cat >> confdefs.h <<\EOF
10432 #define HAVE_SINL 1
10435 cat >> confdefs.h <<\EOF
10436 #define HAVE_SINHL 1
10439 cat >> confdefs.h <<\EOF
10440 #define HAVE_SQRTL 1
10443 cat >> confdefs.h <<\EOF
10444 #define HAVE_TANL 1
10447 cat >> confdefs.h <<\EOF
10448 #define HAVE_TANHL 1
10453 else
10455 # We are being configured natively. We can do more elaborate tests
10456 # that include AC_TRY_COMPILE now, as the linker is assumed to be
10457 # working.
10458 GLIBCPP_IS_CROSS_COMPILING=false
10459 CANADIAN=no
10461 # Check for available headers.
10462 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10463 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
10464 sys/types.h
10466 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10467 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10468 echo "configure:10469: checking for $ac_hdr" >&5
10469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10470 echo $ac_n "(cached) $ac_c" 1>&6
10471 else
10472 cat > conftest.$ac_ext <<EOF
10473 #line 10474 "configure"
10474 #include "confdefs.h"
10475 #include <$ac_hdr>
10477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10478 { (eval echo configure:10479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10480 if test -z "$ac_err"; then
10481 rm -rf conftest*
10482 eval "ac_cv_header_$ac_safe=yes"
10483 else
10484 echo "$ac_err" >&5
10485 echo "configure: failed program was:" >&5
10486 cat conftest.$ac_ext >&5
10487 rm -rf conftest*
10488 eval "ac_cv_header_$ac_safe=no"
10490 rm -f conftest*
10492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10493 echo "$ac_t""yes" 1>&6
10494 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10495 cat >> confdefs.h <<EOF
10496 #define $ac_tr_hdr 1
10499 else
10500 echo "$ac_t""no" 1>&6
10502 done
10506 # All these tests are for C++; save the language and the compiler flags.
10507 # The CXXFLAGS thing is suspicious, but based on similar bits previously
10508 # found in GLIBCPP_CONFIGURE.
10510 ac_ext=C
10511 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10512 ac_cpp='$CXXCPP $CPPFLAGS'
10513 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10514 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10515 cross_compiling=$ac_cv_prog_cxx_cross
10517 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10518 ac_save_CXXFLAGS="$CXXFLAGS"
10520 # Check for maintainer-mode bits.
10521 if test x"$USE_MAINTAINER_MODE" = xno; then
10522 WERROR=''
10523 else
10524 WERROR='-Werror'
10527 # Check for -ffunction-sections -fdata-sections
10528 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10529 echo "configure:10530: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10530 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10531 cat > conftest.$ac_ext <<EOF
10532 #line 10533 "configure"
10533 #include "confdefs.h"
10535 int main() {
10536 int foo;
10538 ; return 0; }
10540 if { (eval echo configure:10541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10541 rm -rf conftest*
10542 ac_fdsections=yes
10543 else
10544 echo "configure: failed program was:" >&5
10545 cat conftest.$ac_ext >&5
10546 rm -rf conftest*
10547 ac_fdsections=no
10549 rm -f conftest*
10550 if test "$ac_test_CXXFLAGS" = set; then
10551 CXXFLAGS="$ac_save_CXXFLAGS"
10552 else
10553 # this is the suspicious part
10554 CXXFLAGS=''
10556 if test x"$ac_fdsections" = x"yes"; then
10557 SECTION_FLAGS='-ffunction-sections -fdata-sections'
10559 echo "$ac_t""$ac_fdsections" 1>&6
10561 ac_ext=c
10562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10563 ac_cpp='$CPP $CPPFLAGS'
10564 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10565 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10566 cross_compiling=$ac_cv_prog_cc_cross
10572 # If we're not using GNU ld, then there's no point in even trying these
10573 # tests. Check for that first. We should have already tested for gld
10574 # by now (in libtool), but require it now just to be safe...
10575 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10576 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10579 # The name set by libtool depends on the version of libtool. Shame on us
10580 # for depending on an impl detail, but c'est la vie. Older versions used
10581 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10582 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10583 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
10584 # set (hence we're using an older libtool), then set it.
10585 if test x${with_gnu_ld+set} != xset; then
10586 if test x${ac_cv_prog_gnu_ld+set} != xset; then
10587 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
10588 with_gnu_ld=no
10589 else
10590 with_gnu_ld=$ac_cv_prog_gnu_ld
10594 # Start by getting the version number. I think the libtool test already
10595 # does some of this, but throws away the result.
10597 ldver=`$LD --version 2>/dev/null | head -1 | \
10598 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10600 glibcpp_gnu_ld_version=`echo $ldver | \
10601 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10603 # Set --gc-sections.
10604 if test "$with_gnu_ld" = "notbroken"; then
10605 # GNU ld it is! Joy and bunny rabbits!
10607 # All these tests are for C++; save the language and the compiler flags.
10608 # Need to do this so that g++ won't try to link in libstdc++
10609 ac_test_CFLAGS="${CFLAGS+set}"
10610 ac_save_CFLAGS="$CFLAGS"
10611 CFLAGS='-x c++ -Wl,--gc-sections'
10613 # Check for -Wl,--gc-sections
10614 # XXX This test is broken at the moment, as symbols required for
10615 # linking are now in libsupc++ (not built yet.....). In addition,
10616 # this test has cored on solaris in the past. In addition,
10617 # --gc-sections doesn't really work at the moment (keeps on discarding
10618 # used sections, first .eh_frame and now some of the glibc sections for
10619 # iconv). Bzzzzt. Thanks for playing, maybe next time.
10620 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10621 echo "configure:10622: checking for ld that supports -Wl,--gc-sections" >&5
10622 if test "$cross_compiling" = yes; then
10623 ac_sectionLDflags=yes
10624 else
10625 cat > conftest.$ac_ext <<EOF
10626 #line 10627 "configure"
10627 #include "confdefs.h"
10629 int main(void)
10631 try { throw 1; }
10632 catch (...) { };
10633 return 0;
10637 if { (eval echo configure:10638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10638 then
10639 ac_sectionLDflags=yes
10640 else
10641 echo "configure: failed program was:" >&5
10642 cat conftest.$ac_ext >&5
10643 rm -fr conftest*
10644 ac_sectionLDflags=no
10646 rm -fr conftest*
10649 if test "$ac_test_CFLAGS" = set; then
10650 CFLAGS="$ac_save_CFLAGS"
10651 else
10652 # this is the suspicious part
10653 CFLAGS=''
10655 if test "$ac_sectionLDflags" = "yes"; then
10656 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10658 echo "$ac_t""$ac_sectionLDflags" 1>&6
10661 # Set linker optimization flags.
10662 if test x"$with_gnu_ld" = x"yes"; then
10663 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10670 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10671 ac_save_CXXFLAGS="$CXXFLAGS"
10672 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10674 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10675 echo "configure:10676: checking for sin in -lm" >&5
10676 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10678 echo $ac_n "(cached) $ac_c" 1>&6
10679 else
10680 ac_save_LIBS="$LIBS"
10681 LIBS="-lm $LIBS"
10682 cat > conftest.$ac_ext <<EOF
10683 #line 10684 "configure"
10684 #include "confdefs.h"
10685 /* Override any gcc2 internal prototype to avoid an error. */
10686 /* We use char because int might match the return type of a gcc2
10687 builtin and then its argument prototype would still apply. */
10688 char sin();
10690 int main() {
10691 sin()
10692 ; return 0; }
10694 if { (eval echo configure:10695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10695 rm -rf conftest*
10696 eval "ac_cv_lib_$ac_lib_var=yes"
10697 else
10698 echo "configure: failed program was:" >&5
10699 cat conftest.$ac_ext >&5
10700 rm -rf conftest*
10701 eval "ac_cv_lib_$ac_lib_var=no"
10703 rm -f conftest*
10704 LIBS="$ac_save_LIBS"
10707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10708 echo "$ac_t""yes" 1>&6
10709 libm="-lm"
10710 else
10711 echo "$ac_t""no" 1>&6
10714 ac_save_LIBS="$LIBS"
10715 LIBS="$LIBS $libm"
10719 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10720 echo "configure:10721: checking for isinf declaration" >&5
10721 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10722 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10723 echo $ac_n "(cached) $ac_c" 1>&6
10724 else
10727 ac_ext=C
10728 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10729 ac_cpp='$CXXCPP $CPPFLAGS'
10730 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10731 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10732 cross_compiling=$ac_cv_prog_cxx_cross
10734 cat > conftest.$ac_ext <<EOF
10735 #line 10736 "configure"
10736 #include "confdefs.h"
10737 #include <math.h>
10738 #ifdef HAVE_IEEEFP_H
10739 #include <ieeefp.h>
10740 #endif
10742 int main() {
10743 isinf(0);
10744 ; return 0; }
10746 if { (eval echo configure:10747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10747 rm -rf conftest*
10748 glibcpp_cv_func_isinf_use=yes
10749 else
10750 echo "configure: failed program was:" >&5
10751 cat conftest.$ac_ext >&5
10752 rm -rf conftest*
10753 glibcpp_cv_func_isinf_use=no
10755 rm -f conftest*
10756 ac_ext=c
10757 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10758 ac_cpp='$CPP $CPPFLAGS'
10759 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10760 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10761 cross_compiling=$ac_cv_prog_cc_cross
10767 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10769 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10770 for ac_func in isinf
10772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10773 echo "configure:10774: checking for $ac_func" >&5
10774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10775 echo $ac_n "(cached) $ac_c" 1>&6
10776 else
10777 cat > conftest.$ac_ext <<EOF
10778 #line 10779 "configure"
10779 #include "confdefs.h"
10780 /* System header to define __stub macros and hopefully few prototypes,
10781 which can conflict with char $ac_func(); below. */
10782 #include <assert.h>
10783 /* Override any gcc2 internal prototype to avoid an error. */
10784 /* We use char because int might match the return type of a gcc2
10785 builtin and then its argument prototype would still apply. */
10786 char $ac_func();
10788 int main() {
10790 /* The GNU C library defines this for functions which it implements
10791 to always fail with ENOSYS. Some functions are actually named
10792 something starting with __ and the normal name is an alias. */
10793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10794 choke me
10795 #else
10796 $ac_func();
10797 #endif
10799 ; return 0; }
10801 if { (eval echo configure:10802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10802 rm -rf conftest*
10803 eval "ac_cv_func_$ac_func=yes"
10804 else
10805 echo "configure: failed program was:" >&5
10806 cat conftest.$ac_ext >&5
10807 rm -rf conftest*
10808 eval "ac_cv_func_$ac_func=no"
10810 rm -f conftest*
10813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10814 echo "$ac_t""yes" 1>&6
10815 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10816 cat >> confdefs.h <<EOF
10817 #define $ac_tr_func 1
10820 else
10821 echo "$ac_t""no" 1>&6
10823 done
10825 else
10827 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10828 echo "configure:10829: checking for _isinf declaration" >&5
10829 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10830 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10831 echo $ac_n "(cached) $ac_c" 1>&6
10832 else
10835 ac_ext=C
10836 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10837 ac_cpp='$CXXCPP $CPPFLAGS'
10838 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10839 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10840 cross_compiling=$ac_cv_prog_cxx_cross
10842 cat > conftest.$ac_ext <<EOF
10843 #line 10844 "configure"
10844 #include "confdefs.h"
10845 #include <math.h>
10846 #ifdef HAVE_IEEEFP_H
10847 #include <ieeefp.h>
10848 #endif
10850 int main() {
10851 _isinf(0);
10852 ; return 0; }
10854 if { (eval echo configure:10855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10855 rm -rf conftest*
10856 glibcpp_cv_func__isinf_use=yes
10857 else
10858 echo "configure: failed program was:" >&5
10859 cat conftest.$ac_ext >&5
10860 rm -rf conftest*
10861 glibcpp_cv_func__isinf_use=no
10863 rm -f conftest*
10864 ac_ext=c
10865 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10866 ac_cpp='$CPP $CPPFLAGS'
10867 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10868 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10869 cross_compiling=$ac_cv_prog_cc_cross
10875 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10877 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10878 for ac_func in _isinf
10880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10881 echo "configure:10882: checking for $ac_func" >&5
10882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10883 echo $ac_n "(cached) $ac_c" 1>&6
10884 else
10885 cat > conftest.$ac_ext <<EOF
10886 #line 10887 "configure"
10887 #include "confdefs.h"
10888 /* System header to define __stub macros and hopefully few prototypes,
10889 which can conflict with char $ac_func(); below. */
10890 #include <assert.h>
10891 /* Override any gcc2 internal prototype to avoid an error. */
10892 /* We use char because int might match the return type of a gcc2
10893 builtin and then its argument prototype would still apply. */
10894 char $ac_func();
10896 int main() {
10898 /* The GNU C library defines this for functions which it implements
10899 to always fail with ENOSYS. Some functions are actually named
10900 something starting with __ and the normal name is an alias. */
10901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10902 choke me
10903 #else
10904 $ac_func();
10905 #endif
10907 ; return 0; }
10909 if { (eval echo configure:10910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10910 rm -rf conftest*
10911 eval "ac_cv_func_$ac_func=yes"
10912 else
10913 echo "configure: failed program was:" >&5
10914 cat conftest.$ac_ext >&5
10915 rm -rf conftest*
10916 eval "ac_cv_func_$ac_func=no"
10918 rm -f conftest*
10921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10922 echo "$ac_t""yes" 1>&6
10923 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10924 cat >> confdefs.h <<EOF
10925 #define $ac_tr_func 1
10928 else
10929 echo "$ac_t""no" 1>&6
10931 done
10938 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10939 echo "configure:10940: checking for isnan declaration" >&5
10940 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10941 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10942 echo $ac_n "(cached) $ac_c" 1>&6
10943 else
10946 ac_ext=C
10947 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10948 ac_cpp='$CXXCPP $CPPFLAGS'
10949 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10950 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10951 cross_compiling=$ac_cv_prog_cxx_cross
10953 cat > conftest.$ac_ext <<EOF
10954 #line 10955 "configure"
10955 #include "confdefs.h"
10956 #include <math.h>
10957 #ifdef HAVE_IEEEFP_H
10958 #include <ieeefp.h>
10959 #endif
10961 int main() {
10962 isnan(0);
10963 ; return 0; }
10965 if { (eval echo configure:10966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10966 rm -rf conftest*
10967 glibcpp_cv_func_isnan_use=yes
10968 else
10969 echo "configure: failed program was:" >&5
10970 cat conftest.$ac_ext >&5
10971 rm -rf conftest*
10972 glibcpp_cv_func_isnan_use=no
10974 rm -f conftest*
10975 ac_ext=c
10976 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10977 ac_cpp='$CPP $CPPFLAGS'
10978 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10979 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10980 cross_compiling=$ac_cv_prog_cc_cross
10986 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
10988 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
10989 for ac_func in isnan
10991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10992 echo "configure:10993: checking for $ac_func" >&5
10993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10994 echo $ac_n "(cached) $ac_c" 1>&6
10995 else
10996 cat > conftest.$ac_ext <<EOF
10997 #line 10998 "configure"
10998 #include "confdefs.h"
10999 /* System header to define __stub macros and hopefully few prototypes,
11000 which can conflict with char $ac_func(); below. */
11001 #include <assert.h>
11002 /* Override any gcc2 internal prototype to avoid an error. */
11003 /* We use char because int might match the return type of a gcc2
11004 builtin and then its argument prototype would still apply. */
11005 char $ac_func();
11007 int main() {
11009 /* The GNU C library defines this for functions which it implements
11010 to always fail with ENOSYS. Some functions are actually named
11011 something starting with __ and the normal name is an alias. */
11012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11013 choke me
11014 #else
11015 $ac_func();
11016 #endif
11018 ; return 0; }
11020 if { (eval echo configure:11021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11021 rm -rf conftest*
11022 eval "ac_cv_func_$ac_func=yes"
11023 else
11024 echo "configure: failed program was:" >&5
11025 cat conftest.$ac_ext >&5
11026 rm -rf conftest*
11027 eval "ac_cv_func_$ac_func=no"
11029 rm -f conftest*
11032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11033 echo "$ac_t""yes" 1>&6
11034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11035 cat >> confdefs.h <<EOF
11036 #define $ac_tr_func 1
11039 else
11040 echo "$ac_t""no" 1>&6
11042 done
11044 else
11046 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11047 echo "configure:11048: checking for _isnan declaration" >&5
11048 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11049 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11050 echo $ac_n "(cached) $ac_c" 1>&6
11051 else
11054 ac_ext=C
11055 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11056 ac_cpp='$CXXCPP $CPPFLAGS'
11057 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11058 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11059 cross_compiling=$ac_cv_prog_cxx_cross
11061 cat > conftest.$ac_ext <<EOF
11062 #line 11063 "configure"
11063 #include "confdefs.h"
11064 #include <math.h>
11065 #ifdef HAVE_IEEEFP_H
11066 #include <ieeefp.h>
11067 #endif
11069 int main() {
11070 _isnan(0);
11071 ; return 0; }
11073 if { (eval echo configure:11074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11074 rm -rf conftest*
11075 glibcpp_cv_func__isnan_use=yes
11076 else
11077 echo "configure: failed program was:" >&5
11078 cat conftest.$ac_ext >&5
11079 rm -rf conftest*
11080 glibcpp_cv_func__isnan_use=no
11082 rm -f conftest*
11083 ac_ext=c
11084 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11085 ac_cpp='$CPP $CPPFLAGS'
11086 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11087 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11088 cross_compiling=$ac_cv_prog_cc_cross
11094 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11096 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11097 for ac_func in _isnan
11099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11100 echo "configure:11101: checking for $ac_func" >&5
11101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11102 echo $ac_n "(cached) $ac_c" 1>&6
11103 else
11104 cat > conftest.$ac_ext <<EOF
11105 #line 11106 "configure"
11106 #include "confdefs.h"
11107 /* System header to define __stub macros and hopefully few prototypes,
11108 which can conflict with char $ac_func(); below. */
11109 #include <assert.h>
11110 /* Override any gcc2 internal prototype to avoid an error. */
11111 /* We use char because int might match the return type of a gcc2
11112 builtin and then its argument prototype would still apply. */
11113 char $ac_func();
11115 int main() {
11117 /* The GNU C library defines this for functions which it implements
11118 to always fail with ENOSYS. Some functions are actually named
11119 something starting with __ and the normal name is an alias. */
11120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11121 choke me
11122 #else
11123 $ac_func();
11124 #endif
11126 ; return 0; }
11128 if { (eval echo configure:11129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11129 rm -rf conftest*
11130 eval "ac_cv_func_$ac_func=yes"
11131 else
11132 echo "configure: failed program was:" >&5
11133 cat conftest.$ac_ext >&5
11134 rm -rf conftest*
11135 eval "ac_cv_func_$ac_func=no"
11137 rm -f conftest*
11140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11141 echo "$ac_t""yes" 1>&6
11142 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11143 cat >> confdefs.h <<EOF
11144 #define $ac_tr_func 1
11147 else
11148 echo "$ac_t""no" 1>&6
11150 done
11157 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11158 echo "configure:11159: checking for finite declaration" >&5
11159 if test x${glibcpp_cv_func_finite_use+set} != xset; then
11160 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11161 echo $ac_n "(cached) $ac_c" 1>&6
11162 else
11165 ac_ext=C
11166 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11167 ac_cpp='$CXXCPP $CPPFLAGS'
11168 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11169 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11170 cross_compiling=$ac_cv_prog_cxx_cross
11172 cat > conftest.$ac_ext <<EOF
11173 #line 11174 "configure"
11174 #include "confdefs.h"
11175 #include <math.h>
11176 #ifdef HAVE_IEEEFP_H
11177 #include <ieeefp.h>
11178 #endif
11180 int main() {
11181 finite(0);
11182 ; return 0; }
11184 if { (eval echo configure:11185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11185 rm -rf conftest*
11186 glibcpp_cv_func_finite_use=yes
11187 else
11188 echo "configure: failed program was:" >&5
11189 cat conftest.$ac_ext >&5
11190 rm -rf conftest*
11191 glibcpp_cv_func_finite_use=no
11193 rm -f conftest*
11194 ac_ext=c
11195 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11196 ac_cpp='$CPP $CPPFLAGS'
11197 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11198 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11199 cross_compiling=$ac_cv_prog_cc_cross
11205 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11207 if test x$glibcpp_cv_func_finite_use = x"yes"; then
11208 for ac_func in finite
11210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11211 echo "configure:11212: checking for $ac_func" >&5
11212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11213 echo $ac_n "(cached) $ac_c" 1>&6
11214 else
11215 cat > conftest.$ac_ext <<EOF
11216 #line 11217 "configure"
11217 #include "confdefs.h"
11218 /* System header to define __stub macros and hopefully few prototypes,
11219 which can conflict with char $ac_func(); below. */
11220 #include <assert.h>
11221 /* Override any gcc2 internal prototype to avoid an error. */
11222 /* We use char because int might match the return type of a gcc2
11223 builtin and then its argument prototype would still apply. */
11224 char $ac_func();
11226 int main() {
11228 /* The GNU C library defines this for functions which it implements
11229 to always fail with ENOSYS. Some functions are actually named
11230 something starting with __ and the normal name is an alias. */
11231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11232 choke me
11233 #else
11234 $ac_func();
11235 #endif
11237 ; return 0; }
11239 if { (eval echo configure:11240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11240 rm -rf conftest*
11241 eval "ac_cv_func_$ac_func=yes"
11242 else
11243 echo "configure: failed program was:" >&5
11244 cat conftest.$ac_ext >&5
11245 rm -rf conftest*
11246 eval "ac_cv_func_$ac_func=no"
11248 rm -f conftest*
11251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11252 echo "$ac_t""yes" 1>&6
11253 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11254 cat >> confdefs.h <<EOF
11255 #define $ac_tr_func 1
11258 else
11259 echo "$ac_t""no" 1>&6
11261 done
11263 else
11265 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11266 echo "configure:11267: checking for _finite declaration" >&5
11267 if test x${glibcpp_cv_func__finite_use+set} != xset; then
11268 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11269 echo $ac_n "(cached) $ac_c" 1>&6
11270 else
11273 ac_ext=C
11274 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11275 ac_cpp='$CXXCPP $CPPFLAGS'
11276 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11277 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11278 cross_compiling=$ac_cv_prog_cxx_cross
11280 cat > conftest.$ac_ext <<EOF
11281 #line 11282 "configure"
11282 #include "confdefs.h"
11283 #include <math.h>
11284 #ifdef HAVE_IEEEFP_H
11285 #include <ieeefp.h>
11286 #endif
11288 int main() {
11289 _finite(0);
11290 ; return 0; }
11292 if { (eval echo configure:11293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11293 rm -rf conftest*
11294 glibcpp_cv_func__finite_use=yes
11295 else
11296 echo "configure: failed program was:" >&5
11297 cat conftest.$ac_ext >&5
11298 rm -rf conftest*
11299 glibcpp_cv_func__finite_use=no
11301 rm -f conftest*
11302 ac_ext=c
11303 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11304 ac_cpp='$CPP $CPPFLAGS'
11305 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11306 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11307 cross_compiling=$ac_cv_prog_cc_cross
11313 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11315 if test x$glibcpp_cv_func__finite_use = x"yes"; then
11316 for ac_func in _finite
11318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11319 echo "configure:11320: checking for $ac_func" >&5
11320 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11321 echo $ac_n "(cached) $ac_c" 1>&6
11322 else
11323 cat > conftest.$ac_ext <<EOF
11324 #line 11325 "configure"
11325 #include "confdefs.h"
11326 /* System header to define __stub macros and hopefully few prototypes,
11327 which can conflict with char $ac_func(); below. */
11328 #include <assert.h>
11329 /* Override any gcc2 internal prototype to avoid an error. */
11330 /* We use char because int might match the return type of a gcc2
11331 builtin and then its argument prototype would still apply. */
11332 char $ac_func();
11334 int main() {
11336 /* The GNU C library defines this for functions which it implements
11337 to always fail with ENOSYS. Some functions are actually named
11338 something starting with __ and the normal name is an alias. */
11339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11340 choke me
11341 #else
11342 $ac_func();
11343 #endif
11345 ; return 0; }
11347 if { (eval echo configure:11348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11348 rm -rf conftest*
11349 eval "ac_cv_func_$ac_func=yes"
11350 else
11351 echo "configure: failed program was:" >&5
11352 cat conftest.$ac_ext >&5
11353 rm -rf conftest*
11354 eval "ac_cv_func_$ac_func=no"
11356 rm -f conftest*
11359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11360 echo "$ac_t""yes" 1>&6
11361 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11362 cat >> confdefs.h <<EOF
11363 #define $ac_tr_func 1
11366 else
11367 echo "$ac_t""no" 1>&6
11369 done
11376 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11377 echo "configure:11378: checking for copysign declaration" >&5
11378 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11379 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11380 echo $ac_n "(cached) $ac_c" 1>&6
11381 else
11384 ac_ext=C
11385 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11386 ac_cpp='$CXXCPP $CPPFLAGS'
11387 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11388 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11389 cross_compiling=$ac_cv_prog_cxx_cross
11391 cat > conftest.$ac_ext <<EOF
11392 #line 11393 "configure"
11393 #include "confdefs.h"
11394 #include <math.h>
11395 int main() {
11396 copysign(0, 0);
11397 ; return 0; }
11399 if { (eval echo configure:11400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11400 rm -rf conftest*
11401 glibcpp_cv_func_copysign_use=yes
11402 else
11403 echo "configure: failed program was:" >&5
11404 cat conftest.$ac_ext >&5
11405 rm -rf conftest*
11406 glibcpp_cv_func_copysign_use=no
11408 rm -f conftest*
11409 ac_ext=c
11410 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11411 ac_cpp='$CPP $CPPFLAGS'
11412 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11413 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11414 cross_compiling=$ac_cv_prog_cc_cross
11420 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11422 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11423 for ac_func in copysign
11425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11426 echo "configure:11427: checking for $ac_func" >&5
11427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11428 echo $ac_n "(cached) $ac_c" 1>&6
11429 else
11430 cat > conftest.$ac_ext <<EOF
11431 #line 11432 "configure"
11432 #include "confdefs.h"
11433 /* System header to define __stub macros and hopefully few prototypes,
11434 which can conflict with char $ac_func(); below. */
11435 #include <assert.h>
11436 /* Override any gcc2 internal prototype to avoid an error. */
11437 /* We use char because int might match the return type of a gcc2
11438 builtin and then its argument prototype would still apply. */
11439 char $ac_func();
11441 int main() {
11443 /* The GNU C library defines this for functions which it implements
11444 to always fail with ENOSYS. Some functions are actually named
11445 something starting with __ and the normal name is an alias. */
11446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11447 choke me
11448 #else
11449 $ac_func();
11450 #endif
11452 ; return 0; }
11454 if { (eval echo configure:11455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11455 rm -rf conftest*
11456 eval "ac_cv_func_$ac_func=yes"
11457 else
11458 echo "configure: failed program was:" >&5
11459 cat conftest.$ac_ext >&5
11460 rm -rf conftest*
11461 eval "ac_cv_func_$ac_func=no"
11463 rm -f conftest*
11466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11467 echo "$ac_t""yes" 1>&6
11468 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11469 cat >> confdefs.h <<EOF
11470 #define $ac_tr_func 1
11473 else
11474 echo "$ac_t""no" 1>&6
11476 done
11478 else
11480 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11481 echo "configure:11482: checking for _copysign declaration" >&5
11482 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11483 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11484 echo $ac_n "(cached) $ac_c" 1>&6
11485 else
11488 ac_ext=C
11489 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11490 ac_cpp='$CXXCPP $CPPFLAGS'
11491 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11492 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11493 cross_compiling=$ac_cv_prog_cxx_cross
11495 cat > conftest.$ac_ext <<EOF
11496 #line 11497 "configure"
11497 #include "confdefs.h"
11498 #include <math.h>
11499 int main() {
11500 _copysign(0, 0);
11501 ; return 0; }
11503 if { (eval echo configure:11504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11504 rm -rf conftest*
11505 glibcpp_cv_func__copysign_use=yes
11506 else
11507 echo "configure: failed program was:" >&5
11508 cat conftest.$ac_ext >&5
11509 rm -rf conftest*
11510 glibcpp_cv_func__copysign_use=no
11512 rm -f conftest*
11513 ac_ext=c
11514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11515 ac_cpp='$CPP $CPPFLAGS'
11516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11517 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11518 cross_compiling=$ac_cv_prog_cc_cross
11524 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11526 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11527 for ac_func in _copysign
11529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11530 echo "configure:11531: checking for $ac_func" >&5
11531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11532 echo $ac_n "(cached) $ac_c" 1>&6
11533 else
11534 cat > conftest.$ac_ext <<EOF
11535 #line 11536 "configure"
11536 #include "confdefs.h"
11537 /* System header to define __stub macros and hopefully few prototypes,
11538 which can conflict with char $ac_func(); below. */
11539 #include <assert.h>
11540 /* Override any gcc2 internal prototype to avoid an error. */
11541 /* We use char because int might match the return type of a gcc2
11542 builtin and then its argument prototype would still apply. */
11543 char $ac_func();
11545 int main() {
11547 /* The GNU C library defines this for functions which it implements
11548 to always fail with ENOSYS. Some functions are actually named
11549 something starting with __ and the normal name is an alias. */
11550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11551 choke me
11552 #else
11553 $ac_func();
11554 #endif
11556 ; return 0; }
11558 if { (eval echo configure:11559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11559 rm -rf conftest*
11560 eval "ac_cv_func_$ac_func=yes"
11561 else
11562 echo "configure: failed program was:" >&5
11563 cat conftest.$ac_ext >&5
11564 rm -rf conftest*
11565 eval "ac_cv_func_$ac_func=no"
11567 rm -f conftest*
11570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11571 echo "$ac_t""yes" 1>&6
11572 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11573 cat >> confdefs.h <<EOF
11574 #define $ac_tr_func 1
11577 else
11578 echo "$ac_t""no" 1>&6
11580 done
11587 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11588 echo "configure:11589: checking for sincos declaration" >&5
11589 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11590 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11591 echo $ac_n "(cached) $ac_c" 1>&6
11592 else
11595 ac_ext=C
11596 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11597 ac_cpp='$CXXCPP $CPPFLAGS'
11598 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11599 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11600 cross_compiling=$ac_cv_prog_cxx_cross
11602 cat > conftest.$ac_ext <<EOF
11603 #line 11604 "configure"
11604 #include "confdefs.h"
11605 #include <math.h>
11606 int main() {
11607 sincos(0, 0, 0);
11608 ; return 0; }
11610 if { (eval echo configure:11611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11611 rm -rf conftest*
11612 glibcpp_cv_func_sincos_use=yes
11613 else
11614 echo "configure: failed program was:" >&5
11615 cat conftest.$ac_ext >&5
11616 rm -rf conftest*
11617 glibcpp_cv_func_sincos_use=no
11619 rm -f conftest*
11620 ac_ext=c
11621 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11622 ac_cpp='$CPP $CPPFLAGS'
11623 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11624 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11625 cross_compiling=$ac_cv_prog_cc_cross
11631 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11633 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11634 for ac_func in sincos
11636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11637 echo "configure:11638: checking for $ac_func" >&5
11638 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11639 echo $ac_n "(cached) $ac_c" 1>&6
11640 else
11641 cat > conftest.$ac_ext <<EOF
11642 #line 11643 "configure"
11643 #include "confdefs.h"
11644 /* System header to define __stub macros and hopefully few prototypes,
11645 which can conflict with char $ac_func(); below. */
11646 #include <assert.h>
11647 /* Override any gcc2 internal prototype to avoid an error. */
11648 /* We use char because int might match the return type of a gcc2
11649 builtin and then its argument prototype would still apply. */
11650 char $ac_func();
11652 int main() {
11654 /* The GNU C library defines this for functions which it implements
11655 to always fail with ENOSYS. Some functions are actually named
11656 something starting with __ and the normal name is an alias. */
11657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11658 choke me
11659 #else
11660 $ac_func();
11661 #endif
11663 ; return 0; }
11665 if { (eval echo configure:11666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11666 rm -rf conftest*
11667 eval "ac_cv_func_$ac_func=yes"
11668 else
11669 echo "configure: failed program was:" >&5
11670 cat conftest.$ac_ext >&5
11671 rm -rf conftest*
11672 eval "ac_cv_func_$ac_func=no"
11674 rm -f conftest*
11677 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11678 echo "$ac_t""yes" 1>&6
11679 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11680 cat >> confdefs.h <<EOF
11681 #define $ac_tr_func 1
11684 else
11685 echo "$ac_t""no" 1>&6
11687 done
11689 else
11691 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11692 echo "configure:11693: checking for _sincos declaration" >&5
11693 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11694 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11695 echo $ac_n "(cached) $ac_c" 1>&6
11696 else
11699 ac_ext=C
11700 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11701 ac_cpp='$CXXCPP $CPPFLAGS'
11702 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11703 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11704 cross_compiling=$ac_cv_prog_cxx_cross
11706 cat > conftest.$ac_ext <<EOF
11707 #line 11708 "configure"
11708 #include "confdefs.h"
11709 #include <math.h>
11710 int main() {
11711 _sincos(0, 0, 0);
11712 ; return 0; }
11714 if { (eval echo configure:11715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11715 rm -rf conftest*
11716 glibcpp_cv_func__sincos_use=yes
11717 else
11718 echo "configure: failed program was:" >&5
11719 cat conftest.$ac_ext >&5
11720 rm -rf conftest*
11721 glibcpp_cv_func__sincos_use=no
11723 rm -f conftest*
11724 ac_ext=c
11725 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11726 ac_cpp='$CPP $CPPFLAGS'
11727 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11728 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11729 cross_compiling=$ac_cv_prog_cc_cross
11735 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11737 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11738 for ac_func in _sincos
11740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11741 echo "configure:11742: checking for $ac_func" >&5
11742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11743 echo $ac_n "(cached) $ac_c" 1>&6
11744 else
11745 cat > conftest.$ac_ext <<EOF
11746 #line 11747 "configure"
11747 #include "confdefs.h"
11748 /* System header to define __stub macros and hopefully few prototypes,
11749 which can conflict with char $ac_func(); below. */
11750 #include <assert.h>
11751 /* Override any gcc2 internal prototype to avoid an error. */
11752 /* We use char because int might match the return type of a gcc2
11753 builtin and then its argument prototype would still apply. */
11754 char $ac_func();
11756 int main() {
11758 /* The GNU C library defines this for functions which it implements
11759 to always fail with ENOSYS. Some functions are actually named
11760 something starting with __ and the normal name is an alias. */
11761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11762 choke me
11763 #else
11764 $ac_func();
11765 #endif
11767 ; return 0; }
11769 if { (eval echo configure:11770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11770 rm -rf conftest*
11771 eval "ac_cv_func_$ac_func=yes"
11772 else
11773 echo "configure: failed program was:" >&5
11774 cat conftest.$ac_ext >&5
11775 rm -rf conftest*
11776 eval "ac_cv_func_$ac_func=no"
11778 rm -f conftest*
11781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11782 echo "$ac_t""yes" 1>&6
11783 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11784 cat >> confdefs.h <<EOF
11785 #define $ac_tr_func 1
11788 else
11789 echo "$ac_t""no" 1>&6
11791 done
11798 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11799 echo "configure:11800: checking for fpclass declaration" >&5
11800 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11801 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11802 echo $ac_n "(cached) $ac_c" 1>&6
11803 else
11806 ac_ext=C
11807 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11808 ac_cpp='$CXXCPP $CPPFLAGS'
11809 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11810 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11811 cross_compiling=$ac_cv_prog_cxx_cross
11813 cat > conftest.$ac_ext <<EOF
11814 #line 11815 "configure"
11815 #include "confdefs.h"
11816 #include <math.h>
11817 #ifdef HAVE_IEEEFP_H
11818 #include <ieeefp.h>
11819 #endif
11821 int main() {
11822 fpclass(0);
11823 ; return 0; }
11825 if { (eval echo configure:11826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11826 rm -rf conftest*
11827 glibcpp_cv_func_fpclass_use=yes
11828 else
11829 echo "configure: failed program was:" >&5
11830 cat conftest.$ac_ext >&5
11831 rm -rf conftest*
11832 glibcpp_cv_func_fpclass_use=no
11834 rm -f conftest*
11835 ac_ext=c
11836 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11837 ac_cpp='$CPP $CPPFLAGS'
11838 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11839 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11840 cross_compiling=$ac_cv_prog_cc_cross
11846 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11848 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11849 for ac_func in fpclass
11851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11852 echo "configure:11853: checking for $ac_func" >&5
11853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11854 echo $ac_n "(cached) $ac_c" 1>&6
11855 else
11856 cat > conftest.$ac_ext <<EOF
11857 #line 11858 "configure"
11858 #include "confdefs.h"
11859 /* System header to define __stub macros and hopefully few prototypes,
11860 which can conflict with char $ac_func(); below. */
11861 #include <assert.h>
11862 /* Override any gcc2 internal prototype to avoid an error. */
11863 /* We use char because int might match the return type of a gcc2
11864 builtin and then its argument prototype would still apply. */
11865 char $ac_func();
11867 int main() {
11869 /* The GNU C library defines this for functions which it implements
11870 to always fail with ENOSYS. Some functions are actually named
11871 something starting with __ and the normal name is an alias. */
11872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11873 choke me
11874 #else
11875 $ac_func();
11876 #endif
11878 ; return 0; }
11880 if { (eval echo configure:11881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11881 rm -rf conftest*
11882 eval "ac_cv_func_$ac_func=yes"
11883 else
11884 echo "configure: failed program was:" >&5
11885 cat conftest.$ac_ext >&5
11886 rm -rf conftest*
11887 eval "ac_cv_func_$ac_func=no"
11889 rm -f conftest*
11892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11893 echo "$ac_t""yes" 1>&6
11894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11895 cat >> confdefs.h <<EOF
11896 #define $ac_tr_func 1
11899 else
11900 echo "$ac_t""no" 1>&6
11902 done
11904 else
11906 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11907 echo "configure:11908: checking for _fpclass declaration" >&5
11908 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11909 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11910 echo $ac_n "(cached) $ac_c" 1>&6
11911 else
11914 ac_ext=C
11915 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11916 ac_cpp='$CXXCPP $CPPFLAGS'
11917 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11918 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11919 cross_compiling=$ac_cv_prog_cxx_cross
11921 cat > conftest.$ac_ext <<EOF
11922 #line 11923 "configure"
11923 #include "confdefs.h"
11924 #include <math.h>
11925 #ifdef HAVE_IEEEFP_H
11926 #include <ieeefp.h>
11927 #endif
11929 int main() {
11930 _fpclass(0);
11931 ; return 0; }
11933 if { (eval echo configure:11934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11934 rm -rf conftest*
11935 glibcpp_cv_func__fpclass_use=yes
11936 else
11937 echo "configure: failed program was:" >&5
11938 cat conftest.$ac_ext >&5
11939 rm -rf conftest*
11940 glibcpp_cv_func__fpclass_use=no
11942 rm -f conftest*
11943 ac_ext=c
11944 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11945 ac_cpp='$CPP $CPPFLAGS'
11946 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11947 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11948 cross_compiling=$ac_cv_prog_cc_cross
11954 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
11956 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11957 for ac_func in _fpclass
11959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11960 echo "configure:11961: checking for $ac_func" >&5
11961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11962 echo $ac_n "(cached) $ac_c" 1>&6
11963 else
11964 cat > conftest.$ac_ext <<EOF
11965 #line 11966 "configure"
11966 #include "confdefs.h"
11967 /* System header to define __stub macros and hopefully few prototypes,
11968 which can conflict with char $ac_func(); below. */
11969 #include <assert.h>
11970 /* Override any gcc2 internal prototype to avoid an error. */
11971 /* We use char because int might match the return type of a gcc2
11972 builtin and then its argument prototype would still apply. */
11973 char $ac_func();
11975 int main() {
11977 /* The GNU C library defines this for functions which it implements
11978 to always fail with ENOSYS. Some functions are actually named
11979 something starting with __ and the normal name is an alias. */
11980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11981 choke me
11982 #else
11983 $ac_func();
11984 #endif
11986 ; return 0; }
11988 if { (eval echo configure:11989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11989 rm -rf conftest*
11990 eval "ac_cv_func_$ac_func=yes"
11991 else
11992 echo "configure: failed program was:" >&5
11993 cat conftest.$ac_ext >&5
11994 rm -rf conftest*
11995 eval "ac_cv_func_$ac_func=no"
11997 rm -f conftest*
12000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12001 echo "$ac_t""yes" 1>&6
12002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12003 cat >> confdefs.h <<EOF
12004 #define $ac_tr_func 1
12007 else
12008 echo "$ac_t""no" 1>&6
12010 done
12017 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12018 echo "configure:12019: checking for qfpclass declaration" >&5
12019 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12020 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12021 echo $ac_n "(cached) $ac_c" 1>&6
12022 else
12025 ac_ext=C
12026 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12027 ac_cpp='$CXXCPP $CPPFLAGS'
12028 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12029 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12030 cross_compiling=$ac_cv_prog_cxx_cross
12032 cat > conftest.$ac_ext <<EOF
12033 #line 12034 "configure"
12034 #include "confdefs.h"
12035 #include <math.h>
12036 #ifdef HAVE_IEEEFP_H
12037 #include <ieeefp.h>
12038 #endif
12040 int main() {
12041 qfpclass(0);
12042 ; return 0; }
12044 if { (eval echo configure:12045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12045 rm -rf conftest*
12046 glibcpp_cv_func_qfpclass_use=yes
12047 else
12048 echo "configure: failed program was:" >&5
12049 cat conftest.$ac_ext >&5
12050 rm -rf conftest*
12051 glibcpp_cv_func_qfpclass_use=no
12053 rm -f conftest*
12054 ac_ext=c
12055 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12056 ac_cpp='$CPP $CPPFLAGS'
12057 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12058 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12059 cross_compiling=$ac_cv_prog_cc_cross
12065 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12067 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12068 for ac_func in qfpclass
12070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12071 echo "configure:12072: checking for $ac_func" >&5
12072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12073 echo $ac_n "(cached) $ac_c" 1>&6
12074 else
12075 cat > conftest.$ac_ext <<EOF
12076 #line 12077 "configure"
12077 #include "confdefs.h"
12078 /* System header to define __stub macros and hopefully few prototypes,
12079 which can conflict with char $ac_func(); below. */
12080 #include <assert.h>
12081 /* Override any gcc2 internal prototype to avoid an error. */
12082 /* We use char because int might match the return type of a gcc2
12083 builtin and then its argument prototype would still apply. */
12084 char $ac_func();
12086 int main() {
12088 /* The GNU C library defines this for functions which it implements
12089 to always fail with ENOSYS. Some functions are actually named
12090 something starting with __ and the normal name is an alias. */
12091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12092 choke me
12093 #else
12094 $ac_func();
12095 #endif
12097 ; return 0; }
12099 if { (eval echo configure:12100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12100 rm -rf conftest*
12101 eval "ac_cv_func_$ac_func=yes"
12102 else
12103 echo "configure: failed program was:" >&5
12104 cat conftest.$ac_ext >&5
12105 rm -rf conftest*
12106 eval "ac_cv_func_$ac_func=no"
12108 rm -f conftest*
12111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12112 echo "$ac_t""yes" 1>&6
12113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12114 cat >> confdefs.h <<EOF
12115 #define $ac_tr_func 1
12118 else
12119 echo "$ac_t""no" 1>&6
12121 done
12123 else
12125 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12126 echo "configure:12127: checking for _qfpclass declaration" >&5
12127 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12128 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12129 echo $ac_n "(cached) $ac_c" 1>&6
12130 else
12133 ac_ext=C
12134 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12135 ac_cpp='$CXXCPP $CPPFLAGS'
12136 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12137 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12138 cross_compiling=$ac_cv_prog_cxx_cross
12140 cat > conftest.$ac_ext <<EOF
12141 #line 12142 "configure"
12142 #include "confdefs.h"
12143 #include <math.h>
12144 #ifdef HAVE_IEEEFP_H
12145 #include <ieeefp.h>
12146 #endif
12148 int main() {
12149 _qfpclass(0);
12150 ; return 0; }
12152 if { (eval echo configure:12153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12153 rm -rf conftest*
12154 glibcpp_cv_func__qfpclass_use=yes
12155 else
12156 echo "configure: failed program was:" >&5
12157 cat conftest.$ac_ext >&5
12158 rm -rf conftest*
12159 glibcpp_cv_func__qfpclass_use=no
12161 rm -f conftest*
12162 ac_ext=c
12163 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12164 ac_cpp='$CPP $CPPFLAGS'
12165 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12166 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12167 cross_compiling=$ac_cv_prog_cc_cross
12173 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12175 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12176 for ac_func in _qfpclass
12178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12179 echo "configure:12180: checking for $ac_func" >&5
12180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12181 echo $ac_n "(cached) $ac_c" 1>&6
12182 else
12183 cat > conftest.$ac_ext <<EOF
12184 #line 12185 "configure"
12185 #include "confdefs.h"
12186 /* System header to define __stub macros and hopefully few prototypes,
12187 which can conflict with char $ac_func(); below. */
12188 #include <assert.h>
12189 /* Override any gcc2 internal prototype to avoid an error. */
12190 /* We use char because int might match the return type of a gcc2
12191 builtin and then its argument prototype would still apply. */
12192 char $ac_func();
12194 int main() {
12196 /* The GNU C library defines this for functions which it implements
12197 to always fail with ENOSYS. Some functions are actually named
12198 something starting with __ and the normal name is an alias. */
12199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12200 choke me
12201 #else
12202 $ac_func();
12203 #endif
12205 ; return 0; }
12207 if { (eval echo configure:12208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12208 rm -rf conftest*
12209 eval "ac_cv_func_$ac_func=yes"
12210 else
12211 echo "configure: failed program was:" >&5
12212 cat conftest.$ac_ext >&5
12213 rm -rf conftest*
12214 eval "ac_cv_func_$ac_func=no"
12216 rm -f conftest*
12219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12220 echo "$ac_t""yes" 1>&6
12221 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12222 cat >> confdefs.h <<EOF
12223 #define $ac_tr_func 1
12226 else
12227 echo "$ac_t""no" 1>&6
12229 done
12236 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12237 echo "configure:12238: checking for hypot declaration" >&5
12238 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12239 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12240 echo $ac_n "(cached) $ac_c" 1>&6
12241 else
12244 ac_ext=C
12245 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12246 ac_cpp='$CXXCPP $CPPFLAGS'
12247 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12248 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12249 cross_compiling=$ac_cv_prog_cxx_cross
12251 cat > conftest.$ac_ext <<EOF
12252 #line 12253 "configure"
12253 #include "confdefs.h"
12254 #include <math.h>
12255 int main() {
12256 hypot(0, 0);
12257 ; return 0; }
12259 if { (eval echo configure:12260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12260 rm -rf conftest*
12261 glibcpp_cv_func_hypot_use=yes
12262 else
12263 echo "configure: failed program was:" >&5
12264 cat conftest.$ac_ext >&5
12265 rm -rf conftest*
12266 glibcpp_cv_func_hypot_use=no
12268 rm -f conftest*
12269 ac_ext=c
12270 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12271 ac_cpp='$CPP $CPPFLAGS'
12272 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12273 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12274 cross_compiling=$ac_cv_prog_cc_cross
12280 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12282 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12283 for ac_func in hypot
12285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12286 echo "configure:12287: checking for $ac_func" >&5
12287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12288 echo $ac_n "(cached) $ac_c" 1>&6
12289 else
12290 cat > conftest.$ac_ext <<EOF
12291 #line 12292 "configure"
12292 #include "confdefs.h"
12293 /* System header to define __stub macros and hopefully few prototypes,
12294 which can conflict with char $ac_func(); below. */
12295 #include <assert.h>
12296 /* Override any gcc2 internal prototype to avoid an error. */
12297 /* We use char because int might match the return type of a gcc2
12298 builtin and then its argument prototype would still apply. */
12299 char $ac_func();
12301 int main() {
12303 /* The GNU C library defines this for functions which it implements
12304 to always fail with ENOSYS. Some functions are actually named
12305 something starting with __ and the normal name is an alias. */
12306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12307 choke me
12308 #else
12309 $ac_func();
12310 #endif
12312 ; return 0; }
12314 if { (eval echo configure:12315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12315 rm -rf conftest*
12316 eval "ac_cv_func_$ac_func=yes"
12317 else
12318 echo "configure: failed program was:" >&5
12319 cat conftest.$ac_ext >&5
12320 rm -rf conftest*
12321 eval "ac_cv_func_$ac_func=no"
12323 rm -f conftest*
12326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12327 echo "$ac_t""yes" 1>&6
12328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12329 cat >> confdefs.h <<EOF
12330 #define $ac_tr_func 1
12333 else
12334 echo "$ac_t""no" 1>&6
12336 done
12338 else
12340 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12341 echo "configure:12342: checking for _hypot declaration" >&5
12342 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12343 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12344 echo $ac_n "(cached) $ac_c" 1>&6
12345 else
12348 ac_ext=C
12349 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12350 ac_cpp='$CXXCPP $CPPFLAGS'
12351 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12352 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12353 cross_compiling=$ac_cv_prog_cxx_cross
12355 cat > conftest.$ac_ext <<EOF
12356 #line 12357 "configure"
12357 #include "confdefs.h"
12358 #include <math.h>
12359 int main() {
12360 _hypot(0, 0);
12361 ; return 0; }
12363 if { (eval echo configure:12364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12364 rm -rf conftest*
12365 glibcpp_cv_func__hypot_use=yes
12366 else
12367 echo "configure: failed program was:" >&5
12368 cat conftest.$ac_ext >&5
12369 rm -rf conftest*
12370 glibcpp_cv_func__hypot_use=no
12372 rm -f conftest*
12373 ac_ext=c
12374 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12375 ac_cpp='$CPP $CPPFLAGS'
12376 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12377 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12378 cross_compiling=$ac_cv_prog_cc_cross
12384 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12386 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12387 for ac_func in _hypot
12389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12390 echo "configure:12391: checking for $ac_func" >&5
12391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12392 echo $ac_n "(cached) $ac_c" 1>&6
12393 else
12394 cat > conftest.$ac_ext <<EOF
12395 #line 12396 "configure"
12396 #include "confdefs.h"
12397 /* System header to define __stub macros and hopefully few prototypes,
12398 which can conflict with char $ac_func(); below. */
12399 #include <assert.h>
12400 /* Override any gcc2 internal prototype to avoid an error. */
12401 /* We use char because int might match the return type of a gcc2
12402 builtin and then its argument prototype would still apply. */
12403 char $ac_func();
12405 int main() {
12407 /* The GNU C library defines this for functions which it implements
12408 to always fail with ENOSYS. Some functions are actually named
12409 something starting with __ and the normal name is an alias. */
12410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12411 choke me
12412 #else
12413 $ac_func();
12414 #endif
12416 ; return 0; }
12418 if { (eval echo configure:12419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12419 rm -rf conftest*
12420 eval "ac_cv_func_$ac_func=yes"
12421 else
12422 echo "configure: failed program was:" >&5
12423 cat conftest.$ac_ext >&5
12424 rm -rf conftest*
12425 eval "ac_cv_func_$ac_func=no"
12427 rm -f conftest*
12430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12431 echo "$ac_t""yes" 1>&6
12432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12433 cat >> confdefs.h <<EOF
12434 #define $ac_tr_func 1
12437 else
12438 echo "$ac_t""no" 1>&6
12440 done
12447 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12448 echo "configure:12449: checking for float trig functions" >&5
12449 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12450 echo $ac_n "(cached) $ac_c" 1>&6
12451 else
12454 ac_ext=C
12455 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12456 ac_cpp='$CXXCPP $CPPFLAGS'
12457 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12458 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12459 cross_compiling=$ac_cv_prog_cxx_cross
12461 cat > conftest.$ac_ext <<EOF
12462 #line 12463 "configure"
12463 #include "confdefs.h"
12464 #include <math.h>
12465 int main() {
12466 `for x in acosf asinf atanf \
12467 cosf sinf tanf \
12468 coshf sinhf tanhf; do echo "$x (0);"; done`
12469 ; return 0; }
12471 if { (eval echo configure:12472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12472 rm -rf conftest*
12473 glibcpp_cv_func_float_trig_use=yes
12474 else
12475 echo "configure: failed program was:" >&5
12476 cat conftest.$ac_ext >&5
12477 rm -rf conftest*
12478 glibcpp_cv_func_float_trig_use=no
12480 rm -f conftest*
12481 ac_ext=c
12482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12483 ac_cpp='$CPP $CPPFLAGS'
12484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12486 cross_compiling=$ac_cv_prog_cc_cross
12490 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12491 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12492 for ac_func in acosf asinf atanf \
12493 cosf sinf tanf \
12494 coshf sinhf tanhf
12496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12497 echo "configure:12498: checking for $ac_func" >&5
12498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12499 echo $ac_n "(cached) $ac_c" 1>&6
12500 else
12501 cat > conftest.$ac_ext <<EOF
12502 #line 12503 "configure"
12503 #include "confdefs.h"
12504 /* System header to define __stub macros and hopefully few prototypes,
12505 which can conflict with char $ac_func(); below. */
12506 #include <assert.h>
12507 /* Override any gcc2 internal prototype to avoid an error. */
12508 /* We use char because int might match the return type of a gcc2
12509 builtin and then its argument prototype would still apply. */
12510 char $ac_func();
12512 int main() {
12514 /* The GNU C library defines this for functions which it implements
12515 to always fail with ENOSYS. Some functions are actually named
12516 something starting with __ and the normal name is an alias. */
12517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12518 choke me
12519 #else
12520 $ac_func();
12521 #endif
12523 ; return 0; }
12525 if { (eval echo configure:12526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12526 rm -rf conftest*
12527 eval "ac_cv_func_$ac_func=yes"
12528 else
12529 echo "configure: failed program was:" >&5
12530 cat conftest.$ac_ext >&5
12531 rm -rf conftest*
12532 eval "ac_cv_func_$ac_func=no"
12534 rm -f conftest*
12537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12538 echo "$ac_t""yes" 1>&6
12539 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12540 cat >> confdefs.h <<EOF
12541 #define $ac_tr_func 1
12544 else
12545 echo "$ac_t""no" 1>&6
12547 done
12552 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12553 echo "configure:12554: checking for float round functions" >&5
12554 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12555 echo $ac_n "(cached) $ac_c" 1>&6
12556 else
12559 ac_ext=C
12560 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12561 ac_cpp='$CXXCPP $CPPFLAGS'
12562 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12563 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12564 cross_compiling=$ac_cv_prog_cxx_cross
12566 cat > conftest.$ac_ext <<EOF
12567 #line 12568 "configure"
12568 #include "confdefs.h"
12569 #include <math.h>
12570 int main() {
12571 `for x in ceilf floorf; do echo "$x (0);"; done`
12572 ; return 0; }
12574 if { (eval echo configure:12575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12575 rm -rf conftest*
12576 glibcpp_cv_func_float_round_use=yes
12577 else
12578 echo "configure: failed program was:" >&5
12579 cat conftest.$ac_ext >&5
12580 rm -rf conftest*
12581 glibcpp_cv_func_float_round_use=no
12583 rm -f conftest*
12584 ac_ext=c
12585 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12586 ac_cpp='$CPP $CPPFLAGS'
12587 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12588 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12589 cross_compiling=$ac_cv_prog_cc_cross
12593 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12594 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12595 for ac_func in ceilf floorf
12597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12598 echo "configure:12599: checking for $ac_func" >&5
12599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12600 echo $ac_n "(cached) $ac_c" 1>&6
12601 else
12602 cat > conftest.$ac_ext <<EOF
12603 #line 12604 "configure"
12604 #include "confdefs.h"
12605 /* System header to define __stub macros and hopefully few prototypes,
12606 which can conflict with char $ac_func(); below. */
12607 #include <assert.h>
12608 /* Override any gcc2 internal prototype to avoid an error. */
12609 /* We use char because int might match the return type of a gcc2
12610 builtin and then its argument prototype would still apply. */
12611 char $ac_func();
12613 int main() {
12615 /* The GNU C library defines this for functions which it implements
12616 to always fail with ENOSYS. Some functions are actually named
12617 something starting with __ and the normal name is an alias. */
12618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12619 choke me
12620 #else
12621 $ac_func();
12622 #endif
12624 ; return 0; }
12626 if { (eval echo configure:12627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12627 rm -rf conftest*
12628 eval "ac_cv_func_$ac_func=yes"
12629 else
12630 echo "configure: failed program was:" >&5
12631 cat conftest.$ac_ext >&5
12632 rm -rf conftest*
12633 eval "ac_cv_func_$ac_func=no"
12635 rm -f conftest*
12638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12639 echo "$ac_t""yes" 1>&6
12640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12641 cat >> confdefs.h <<EOF
12642 #define $ac_tr_func 1
12645 else
12646 echo "$ac_t""no" 1>&6
12648 done
12654 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12655 echo "configure:12656: checking for expf declaration" >&5
12656 if test x${glibcpp_cv_func_expf_use+set} != xset; then
12657 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12658 echo $ac_n "(cached) $ac_c" 1>&6
12659 else
12662 ac_ext=C
12663 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12664 ac_cpp='$CXXCPP $CPPFLAGS'
12665 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12666 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12667 cross_compiling=$ac_cv_prog_cxx_cross
12669 cat > conftest.$ac_ext <<EOF
12670 #line 12671 "configure"
12671 #include "confdefs.h"
12672 #include <math.h>
12673 #ifdef HAVE_IEEEFP_H
12674 #include <ieeefp.h>
12675 #endif
12677 int main() {
12678 expf(0);
12679 ; return 0; }
12681 if { (eval echo configure:12682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12682 rm -rf conftest*
12683 glibcpp_cv_func_expf_use=yes
12684 else
12685 echo "configure: failed program was:" >&5
12686 cat conftest.$ac_ext >&5
12687 rm -rf conftest*
12688 glibcpp_cv_func_expf_use=no
12690 rm -f conftest*
12691 ac_ext=c
12692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12693 ac_cpp='$CPP $CPPFLAGS'
12694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12695 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12696 cross_compiling=$ac_cv_prog_cc_cross
12702 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12704 if test x$glibcpp_cv_func_expf_use = x"yes"; then
12705 for ac_func in expf
12707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12708 echo "configure:12709: checking for $ac_func" >&5
12709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12710 echo $ac_n "(cached) $ac_c" 1>&6
12711 else
12712 cat > conftest.$ac_ext <<EOF
12713 #line 12714 "configure"
12714 #include "confdefs.h"
12715 /* System header to define __stub macros and hopefully few prototypes,
12716 which can conflict with char $ac_func(); below. */
12717 #include <assert.h>
12718 /* Override any gcc2 internal prototype to avoid an error. */
12719 /* We use char because int might match the return type of a gcc2
12720 builtin and then its argument prototype would still apply. */
12721 char $ac_func();
12723 int main() {
12725 /* The GNU C library defines this for functions which it implements
12726 to always fail with ENOSYS. Some functions are actually named
12727 something starting with __ and the normal name is an alias. */
12728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12729 choke me
12730 #else
12731 $ac_func();
12732 #endif
12734 ; return 0; }
12736 if { (eval echo configure:12737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12737 rm -rf conftest*
12738 eval "ac_cv_func_$ac_func=yes"
12739 else
12740 echo "configure: failed program was:" >&5
12741 cat conftest.$ac_ext >&5
12742 rm -rf conftest*
12743 eval "ac_cv_func_$ac_func=no"
12745 rm -f conftest*
12748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12749 echo "$ac_t""yes" 1>&6
12750 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12751 cat >> confdefs.h <<EOF
12752 #define $ac_tr_func 1
12755 else
12756 echo "$ac_t""no" 1>&6
12758 done
12760 else
12762 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12763 echo "configure:12764: checking for _expf declaration" >&5
12764 if test x${glibcpp_cv_func__expf_use+set} != xset; then
12765 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12766 echo $ac_n "(cached) $ac_c" 1>&6
12767 else
12770 ac_ext=C
12771 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12772 ac_cpp='$CXXCPP $CPPFLAGS'
12773 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12774 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12775 cross_compiling=$ac_cv_prog_cxx_cross
12777 cat > conftest.$ac_ext <<EOF
12778 #line 12779 "configure"
12779 #include "confdefs.h"
12780 #include <math.h>
12781 #ifdef HAVE_IEEEFP_H
12782 #include <ieeefp.h>
12783 #endif
12785 int main() {
12786 _expf(0);
12787 ; return 0; }
12789 if { (eval echo configure:12790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12790 rm -rf conftest*
12791 glibcpp_cv_func__expf_use=yes
12792 else
12793 echo "configure: failed program was:" >&5
12794 cat conftest.$ac_ext >&5
12795 rm -rf conftest*
12796 glibcpp_cv_func__expf_use=no
12798 rm -f conftest*
12799 ac_ext=c
12800 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12801 ac_cpp='$CPP $CPPFLAGS'
12802 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12803 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12804 cross_compiling=$ac_cv_prog_cc_cross
12810 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12812 if test x$glibcpp_cv_func__expf_use = x"yes"; then
12813 for ac_func in _expf
12815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12816 echo "configure:12817: checking for $ac_func" >&5
12817 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12818 echo $ac_n "(cached) $ac_c" 1>&6
12819 else
12820 cat > conftest.$ac_ext <<EOF
12821 #line 12822 "configure"
12822 #include "confdefs.h"
12823 /* System header to define __stub macros and hopefully few prototypes,
12824 which can conflict with char $ac_func(); below. */
12825 #include <assert.h>
12826 /* Override any gcc2 internal prototype to avoid an error. */
12827 /* We use char because int might match the return type of a gcc2
12828 builtin and then its argument prototype would still apply. */
12829 char $ac_func();
12831 int main() {
12833 /* The GNU C library defines this for functions which it implements
12834 to always fail with ENOSYS. Some functions are actually named
12835 something starting with __ and the normal name is an alias. */
12836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12837 choke me
12838 #else
12839 $ac_func();
12840 #endif
12842 ; return 0; }
12844 if { (eval echo configure:12845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12845 rm -rf conftest*
12846 eval "ac_cv_func_$ac_func=yes"
12847 else
12848 echo "configure: failed program was:" >&5
12849 cat conftest.$ac_ext >&5
12850 rm -rf conftest*
12851 eval "ac_cv_func_$ac_func=no"
12853 rm -f conftest*
12856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12857 echo "$ac_t""yes" 1>&6
12858 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12859 cat >> confdefs.h <<EOF
12860 #define $ac_tr_func 1
12863 else
12864 echo "$ac_t""no" 1>&6
12866 done
12873 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12874 echo "configure:12875: checking for isnanf declaration" >&5
12875 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12876 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12877 echo $ac_n "(cached) $ac_c" 1>&6
12878 else
12881 ac_ext=C
12882 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12883 ac_cpp='$CXXCPP $CPPFLAGS'
12884 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12885 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12886 cross_compiling=$ac_cv_prog_cxx_cross
12888 cat > conftest.$ac_ext <<EOF
12889 #line 12890 "configure"
12890 #include "confdefs.h"
12891 #include <math.h>
12892 #ifdef HAVE_IEEEFP_H
12893 #include <ieeefp.h>
12894 #endif
12896 int main() {
12897 isnanf(0);
12898 ; return 0; }
12900 if { (eval echo configure:12901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12901 rm -rf conftest*
12902 glibcpp_cv_func_isnanf_use=yes
12903 else
12904 echo "configure: failed program was:" >&5
12905 cat conftest.$ac_ext >&5
12906 rm -rf conftest*
12907 glibcpp_cv_func_isnanf_use=no
12909 rm -f conftest*
12910 ac_ext=c
12911 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12912 ac_cpp='$CPP $CPPFLAGS'
12913 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12914 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12915 cross_compiling=$ac_cv_prog_cc_cross
12921 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12923 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12924 for ac_func in isnanf
12926 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12927 echo "configure:12928: checking for $ac_func" >&5
12928 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12929 echo $ac_n "(cached) $ac_c" 1>&6
12930 else
12931 cat > conftest.$ac_ext <<EOF
12932 #line 12933 "configure"
12933 #include "confdefs.h"
12934 /* System header to define __stub macros and hopefully few prototypes,
12935 which can conflict with char $ac_func(); below. */
12936 #include <assert.h>
12937 /* Override any gcc2 internal prototype to avoid an error. */
12938 /* We use char because int might match the return type of a gcc2
12939 builtin and then its argument prototype would still apply. */
12940 char $ac_func();
12942 int main() {
12944 /* The GNU C library defines this for functions which it implements
12945 to always fail with ENOSYS. Some functions are actually named
12946 something starting with __ and the normal name is an alias. */
12947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12948 choke me
12949 #else
12950 $ac_func();
12951 #endif
12953 ; return 0; }
12955 if { (eval echo configure:12956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12956 rm -rf conftest*
12957 eval "ac_cv_func_$ac_func=yes"
12958 else
12959 echo "configure: failed program was:" >&5
12960 cat conftest.$ac_ext >&5
12961 rm -rf conftest*
12962 eval "ac_cv_func_$ac_func=no"
12964 rm -f conftest*
12967 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12968 echo "$ac_t""yes" 1>&6
12969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12970 cat >> confdefs.h <<EOF
12971 #define $ac_tr_func 1
12974 else
12975 echo "$ac_t""no" 1>&6
12977 done
12979 else
12981 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12982 echo "configure:12983: checking for _isnanf declaration" >&5
12983 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
12984 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
12985 echo $ac_n "(cached) $ac_c" 1>&6
12986 else
12989 ac_ext=C
12990 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12991 ac_cpp='$CXXCPP $CPPFLAGS'
12992 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12993 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12994 cross_compiling=$ac_cv_prog_cxx_cross
12996 cat > conftest.$ac_ext <<EOF
12997 #line 12998 "configure"
12998 #include "confdefs.h"
12999 #include <math.h>
13000 #ifdef HAVE_IEEEFP_H
13001 #include <ieeefp.h>
13002 #endif
13004 int main() {
13005 _isnanf(0);
13006 ; return 0; }
13008 if { (eval echo configure:13009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13009 rm -rf conftest*
13010 glibcpp_cv_func__isnanf_use=yes
13011 else
13012 echo "configure: failed program was:" >&5
13013 cat conftest.$ac_ext >&5
13014 rm -rf conftest*
13015 glibcpp_cv_func__isnanf_use=no
13017 rm -f conftest*
13018 ac_ext=c
13019 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13020 ac_cpp='$CPP $CPPFLAGS'
13021 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13022 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13023 cross_compiling=$ac_cv_prog_cc_cross
13029 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13031 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13032 for ac_func in _isnanf
13034 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13035 echo "configure:13036: checking for $ac_func" >&5
13036 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13037 echo $ac_n "(cached) $ac_c" 1>&6
13038 else
13039 cat > conftest.$ac_ext <<EOF
13040 #line 13041 "configure"
13041 #include "confdefs.h"
13042 /* System header to define __stub macros and hopefully few prototypes,
13043 which can conflict with char $ac_func(); below. */
13044 #include <assert.h>
13045 /* Override any gcc2 internal prototype to avoid an error. */
13046 /* We use char because int might match the return type of a gcc2
13047 builtin and then its argument prototype would still apply. */
13048 char $ac_func();
13050 int main() {
13052 /* The GNU C library defines this for functions which it implements
13053 to always fail with ENOSYS. Some functions are actually named
13054 something starting with __ and the normal name is an alias. */
13055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13056 choke me
13057 #else
13058 $ac_func();
13059 #endif
13061 ; return 0; }
13063 if { (eval echo configure:13064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13064 rm -rf conftest*
13065 eval "ac_cv_func_$ac_func=yes"
13066 else
13067 echo "configure: failed program was:" >&5
13068 cat conftest.$ac_ext >&5
13069 rm -rf conftest*
13070 eval "ac_cv_func_$ac_func=no"
13072 rm -f conftest*
13075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13076 echo "$ac_t""yes" 1>&6
13077 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13078 cat >> confdefs.h <<EOF
13079 #define $ac_tr_func 1
13082 else
13083 echo "$ac_t""no" 1>&6
13085 done
13092 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13093 echo "configure:13094: checking for isinff declaration" >&5
13094 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13095 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13096 echo $ac_n "(cached) $ac_c" 1>&6
13097 else
13100 ac_ext=C
13101 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13102 ac_cpp='$CXXCPP $CPPFLAGS'
13103 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13104 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13105 cross_compiling=$ac_cv_prog_cxx_cross
13107 cat > conftest.$ac_ext <<EOF
13108 #line 13109 "configure"
13109 #include "confdefs.h"
13110 #include <math.h>
13111 #ifdef HAVE_IEEEFP_H
13112 #include <ieeefp.h>
13113 #endif
13115 int main() {
13116 isinff(0);
13117 ; return 0; }
13119 if { (eval echo configure:13120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13120 rm -rf conftest*
13121 glibcpp_cv_func_isinff_use=yes
13122 else
13123 echo "configure: failed program was:" >&5
13124 cat conftest.$ac_ext >&5
13125 rm -rf conftest*
13126 glibcpp_cv_func_isinff_use=no
13128 rm -f conftest*
13129 ac_ext=c
13130 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13131 ac_cpp='$CPP $CPPFLAGS'
13132 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13133 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13134 cross_compiling=$ac_cv_prog_cc_cross
13140 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13142 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13143 for ac_func in isinff
13145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13146 echo "configure:13147: checking for $ac_func" >&5
13147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13148 echo $ac_n "(cached) $ac_c" 1>&6
13149 else
13150 cat > conftest.$ac_ext <<EOF
13151 #line 13152 "configure"
13152 #include "confdefs.h"
13153 /* System header to define __stub macros and hopefully few prototypes,
13154 which can conflict with char $ac_func(); below. */
13155 #include <assert.h>
13156 /* Override any gcc2 internal prototype to avoid an error. */
13157 /* We use char because int might match the return type of a gcc2
13158 builtin and then its argument prototype would still apply. */
13159 char $ac_func();
13161 int main() {
13163 /* The GNU C library defines this for functions which it implements
13164 to always fail with ENOSYS. Some functions are actually named
13165 something starting with __ and the normal name is an alias. */
13166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13167 choke me
13168 #else
13169 $ac_func();
13170 #endif
13172 ; return 0; }
13174 if { (eval echo configure:13175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13175 rm -rf conftest*
13176 eval "ac_cv_func_$ac_func=yes"
13177 else
13178 echo "configure: failed program was:" >&5
13179 cat conftest.$ac_ext >&5
13180 rm -rf conftest*
13181 eval "ac_cv_func_$ac_func=no"
13183 rm -f conftest*
13186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13187 echo "$ac_t""yes" 1>&6
13188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13189 cat >> confdefs.h <<EOF
13190 #define $ac_tr_func 1
13193 else
13194 echo "$ac_t""no" 1>&6
13196 done
13198 else
13200 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13201 echo "configure:13202: checking for _isinff declaration" >&5
13202 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13203 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13204 echo $ac_n "(cached) $ac_c" 1>&6
13205 else
13208 ac_ext=C
13209 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13210 ac_cpp='$CXXCPP $CPPFLAGS'
13211 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13212 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13213 cross_compiling=$ac_cv_prog_cxx_cross
13215 cat > conftest.$ac_ext <<EOF
13216 #line 13217 "configure"
13217 #include "confdefs.h"
13218 #include <math.h>
13219 #ifdef HAVE_IEEEFP_H
13220 #include <ieeefp.h>
13221 #endif
13223 int main() {
13224 _isinff(0);
13225 ; return 0; }
13227 if { (eval echo configure:13228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13228 rm -rf conftest*
13229 glibcpp_cv_func__isinff_use=yes
13230 else
13231 echo "configure: failed program was:" >&5
13232 cat conftest.$ac_ext >&5
13233 rm -rf conftest*
13234 glibcpp_cv_func__isinff_use=no
13236 rm -f conftest*
13237 ac_ext=c
13238 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13239 ac_cpp='$CPP $CPPFLAGS'
13240 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13241 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13242 cross_compiling=$ac_cv_prog_cc_cross
13248 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13250 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13251 for ac_func in _isinff
13253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13254 echo "configure:13255: checking for $ac_func" >&5
13255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13256 echo $ac_n "(cached) $ac_c" 1>&6
13257 else
13258 cat > conftest.$ac_ext <<EOF
13259 #line 13260 "configure"
13260 #include "confdefs.h"
13261 /* System header to define __stub macros and hopefully few prototypes,
13262 which can conflict with char $ac_func(); below. */
13263 #include <assert.h>
13264 /* Override any gcc2 internal prototype to avoid an error. */
13265 /* We use char because int might match the return type of a gcc2
13266 builtin and then its argument prototype would still apply. */
13267 char $ac_func();
13269 int main() {
13271 /* The GNU C library defines this for functions which it implements
13272 to always fail with ENOSYS. Some functions are actually named
13273 something starting with __ and the normal name is an alias. */
13274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13275 choke me
13276 #else
13277 $ac_func();
13278 #endif
13280 ; return 0; }
13282 if { (eval echo configure:13283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13283 rm -rf conftest*
13284 eval "ac_cv_func_$ac_func=yes"
13285 else
13286 echo "configure: failed program was:" >&5
13287 cat conftest.$ac_ext >&5
13288 rm -rf conftest*
13289 eval "ac_cv_func_$ac_func=no"
13291 rm -f conftest*
13294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13295 echo "$ac_t""yes" 1>&6
13296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13297 cat >> confdefs.h <<EOF
13298 #define $ac_tr_func 1
13301 else
13302 echo "$ac_t""no" 1>&6
13304 done
13311 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13312 echo "configure:13313: checking for atan2f declaration" >&5
13313 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13314 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13315 echo $ac_n "(cached) $ac_c" 1>&6
13316 else
13319 ac_ext=C
13320 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13321 ac_cpp='$CXXCPP $CPPFLAGS'
13322 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13323 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13324 cross_compiling=$ac_cv_prog_cxx_cross
13326 cat > conftest.$ac_ext <<EOF
13327 #line 13328 "configure"
13328 #include "confdefs.h"
13329 #include <math.h>
13330 int main() {
13331 atan2f(0, 0);
13332 ; return 0; }
13334 if { (eval echo configure:13335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13335 rm -rf conftest*
13336 glibcpp_cv_func_atan2f_use=yes
13337 else
13338 echo "configure: failed program was:" >&5
13339 cat conftest.$ac_ext >&5
13340 rm -rf conftest*
13341 glibcpp_cv_func_atan2f_use=no
13343 rm -f conftest*
13344 ac_ext=c
13345 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13346 ac_cpp='$CPP $CPPFLAGS'
13347 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13348 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13349 cross_compiling=$ac_cv_prog_cc_cross
13355 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13357 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13358 for ac_func in atan2f
13360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13361 echo "configure:13362: checking for $ac_func" >&5
13362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13363 echo $ac_n "(cached) $ac_c" 1>&6
13364 else
13365 cat > conftest.$ac_ext <<EOF
13366 #line 13367 "configure"
13367 #include "confdefs.h"
13368 /* System header to define __stub macros and hopefully few prototypes,
13369 which can conflict with char $ac_func(); below. */
13370 #include <assert.h>
13371 /* Override any gcc2 internal prototype to avoid an error. */
13372 /* We use char because int might match the return type of a gcc2
13373 builtin and then its argument prototype would still apply. */
13374 char $ac_func();
13376 int main() {
13378 /* The GNU C library defines this for functions which it implements
13379 to always fail with ENOSYS. Some functions are actually named
13380 something starting with __ and the normal name is an alias. */
13381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13382 choke me
13383 #else
13384 $ac_func();
13385 #endif
13387 ; return 0; }
13389 if { (eval echo configure:13390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13390 rm -rf conftest*
13391 eval "ac_cv_func_$ac_func=yes"
13392 else
13393 echo "configure: failed program was:" >&5
13394 cat conftest.$ac_ext >&5
13395 rm -rf conftest*
13396 eval "ac_cv_func_$ac_func=no"
13398 rm -f conftest*
13401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13402 echo "$ac_t""yes" 1>&6
13403 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13404 cat >> confdefs.h <<EOF
13405 #define $ac_tr_func 1
13408 else
13409 echo "$ac_t""no" 1>&6
13411 done
13413 else
13415 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13416 echo "configure:13417: checking for _atan2f declaration" >&5
13417 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13418 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13419 echo $ac_n "(cached) $ac_c" 1>&6
13420 else
13423 ac_ext=C
13424 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13425 ac_cpp='$CXXCPP $CPPFLAGS'
13426 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13427 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13428 cross_compiling=$ac_cv_prog_cxx_cross
13430 cat > conftest.$ac_ext <<EOF
13431 #line 13432 "configure"
13432 #include "confdefs.h"
13433 #include <math.h>
13434 int main() {
13435 _atan2f(0, 0);
13436 ; return 0; }
13438 if { (eval echo configure:13439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13439 rm -rf conftest*
13440 glibcpp_cv_func__atan2f_use=yes
13441 else
13442 echo "configure: failed program was:" >&5
13443 cat conftest.$ac_ext >&5
13444 rm -rf conftest*
13445 glibcpp_cv_func__atan2f_use=no
13447 rm -f conftest*
13448 ac_ext=c
13449 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13450 ac_cpp='$CPP $CPPFLAGS'
13451 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13452 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13453 cross_compiling=$ac_cv_prog_cc_cross
13459 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13461 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13462 for ac_func in _atan2f
13464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13465 echo "configure:13466: checking for $ac_func" >&5
13466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13467 echo $ac_n "(cached) $ac_c" 1>&6
13468 else
13469 cat > conftest.$ac_ext <<EOF
13470 #line 13471 "configure"
13471 #include "confdefs.h"
13472 /* System header to define __stub macros and hopefully few prototypes,
13473 which can conflict with char $ac_func(); below. */
13474 #include <assert.h>
13475 /* Override any gcc2 internal prototype to avoid an error. */
13476 /* We use char because int might match the return type of a gcc2
13477 builtin and then its argument prototype would still apply. */
13478 char $ac_func();
13480 int main() {
13482 /* The GNU C library defines this for functions which it implements
13483 to always fail with ENOSYS. Some functions are actually named
13484 something starting with __ and the normal name is an alias. */
13485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13486 choke me
13487 #else
13488 $ac_func();
13489 #endif
13491 ; return 0; }
13493 if { (eval echo configure:13494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13494 rm -rf conftest*
13495 eval "ac_cv_func_$ac_func=yes"
13496 else
13497 echo "configure: failed program was:" >&5
13498 cat conftest.$ac_ext >&5
13499 rm -rf conftest*
13500 eval "ac_cv_func_$ac_func=no"
13502 rm -f conftest*
13505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13506 echo "$ac_t""yes" 1>&6
13507 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13508 cat >> confdefs.h <<EOF
13509 #define $ac_tr_func 1
13512 else
13513 echo "$ac_t""no" 1>&6
13515 done
13522 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13523 echo "configure:13524: checking for fabsf declaration" >&5
13524 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13525 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13526 echo $ac_n "(cached) $ac_c" 1>&6
13527 else
13530 ac_ext=C
13531 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13532 ac_cpp='$CXXCPP $CPPFLAGS'
13533 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13534 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13535 cross_compiling=$ac_cv_prog_cxx_cross
13537 cat > conftest.$ac_ext <<EOF
13538 #line 13539 "configure"
13539 #include "confdefs.h"
13540 #include <math.h>
13541 #ifdef HAVE_IEEEFP_H
13542 #include <ieeefp.h>
13543 #endif
13545 int main() {
13546 fabsf(0);
13547 ; return 0; }
13549 if { (eval echo configure:13550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13550 rm -rf conftest*
13551 glibcpp_cv_func_fabsf_use=yes
13552 else
13553 echo "configure: failed program was:" >&5
13554 cat conftest.$ac_ext >&5
13555 rm -rf conftest*
13556 glibcpp_cv_func_fabsf_use=no
13558 rm -f conftest*
13559 ac_ext=c
13560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13561 ac_cpp='$CPP $CPPFLAGS'
13562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13564 cross_compiling=$ac_cv_prog_cc_cross
13570 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13572 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13573 for ac_func in fabsf
13575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13576 echo "configure:13577: checking for $ac_func" >&5
13577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13578 echo $ac_n "(cached) $ac_c" 1>&6
13579 else
13580 cat > conftest.$ac_ext <<EOF
13581 #line 13582 "configure"
13582 #include "confdefs.h"
13583 /* System header to define __stub macros and hopefully few prototypes,
13584 which can conflict with char $ac_func(); below. */
13585 #include <assert.h>
13586 /* Override any gcc2 internal prototype to avoid an error. */
13587 /* We use char because int might match the return type of a gcc2
13588 builtin and then its argument prototype would still apply. */
13589 char $ac_func();
13591 int main() {
13593 /* The GNU C library defines this for functions which it implements
13594 to always fail with ENOSYS. Some functions are actually named
13595 something starting with __ and the normal name is an alias. */
13596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13597 choke me
13598 #else
13599 $ac_func();
13600 #endif
13602 ; return 0; }
13604 if { (eval echo configure:13605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13605 rm -rf conftest*
13606 eval "ac_cv_func_$ac_func=yes"
13607 else
13608 echo "configure: failed program was:" >&5
13609 cat conftest.$ac_ext >&5
13610 rm -rf conftest*
13611 eval "ac_cv_func_$ac_func=no"
13613 rm -f conftest*
13616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13617 echo "$ac_t""yes" 1>&6
13618 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13619 cat >> confdefs.h <<EOF
13620 #define $ac_tr_func 1
13623 else
13624 echo "$ac_t""no" 1>&6
13626 done
13628 else
13630 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13631 echo "configure:13632: checking for _fabsf declaration" >&5
13632 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13633 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13634 echo $ac_n "(cached) $ac_c" 1>&6
13635 else
13638 ac_ext=C
13639 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13640 ac_cpp='$CXXCPP $CPPFLAGS'
13641 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13642 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13643 cross_compiling=$ac_cv_prog_cxx_cross
13645 cat > conftest.$ac_ext <<EOF
13646 #line 13647 "configure"
13647 #include "confdefs.h"
13648 #include <math.h>
13649 #ifdef HAVE_IEEEFP_H
13650 #include <ieeefp.h>
13651 #endif
13653 int main() {
13654 _fabsf(0);
13655 ; return 0; }
13657 if { (eval echo configure:13658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13658 rm -rf conftest*
13659 glibcpp_cv_func__fabsf_use=yes
13660 else
13661 echo "configure: failed program was:" >&5
13662 cat conftest.$ac_ext >&5
13663 rm -rf conftest*
13664 glibcpp_cv_func__fabsf_use=no
13666 rm -f conftest*
13667 ac_ext=c
13668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13669 ac_cpp='$CPP $CPPFLAGS'
13670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13672 cross_compiling=$ac_cv_prog_cc_cross
13678 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13680 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13681 for ac_func in _fabsf
13683 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13684 echo "configure:13685: checking for $ac_func" >&5
13685 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13686 echo $ac_n "(cached) $ac_c" 1>&6
13687 else
13688 cat > conftest.$ac_ext <<EOF
13689 #line 13690 "configure"
13690 #include "confdefs.h"
13691 /* System header to define __stub macros and hopefully few prototypes,
13692 which can conflict with char $ac_func(); below. */
13693 #include <assert.h>
13694 /* Override any gcc2 internal prototype to avoid an error. */
13695 /* We use char because int might match the return type of a gcc2
13696 builtin and then its argument prototype would still apply. */
13697 char $ac_func();
13699 int main() {
13701 /* The GNU C library defines this for functions which it implements
13702 to always fail with ENOSYS. Some functions are actually named
13703 something starting with __ and the normal name is an alias. */
13704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13705 choke me
13706 #else
13707 $ac_func();
13708 #endif
13710 ; return 0; }
13712 if { (eval echo configure:13713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13713 rm -rf conftest*
13714 eval "ac_cv_func_$ac_func=yes"
13715 else
13716 echo "configure: failed program was:" >&5
13717 cat conftest.$ac_ext >&5
13718 rm -rf conftest*
13719 eval "ac_cv_func_$ac_func=no"
13721 rm -f conftest*
13724 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13725 echo "$ac_t""yes" 1>&6
13726 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13727 cat >> confdefs.h <<EOF
13728 #define $ac_tr_func 1
13731 else
13732 echo "$ac_t""no" 1>&6
13734 done
13741 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13742 echo "configure:13743: checking for fmodf declaration" >&5
13743 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13744 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13745 echo $ac_n "(cached) $ac_c" 1>&6
13746 else
13749 ac_ext=C
13750 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13751 ac_cpp='$CXXCPP $CPPFLAGS'
13752 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13753 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13754 cross_compiling=$ac_cv_prog_cxx_cross
13756 cat > conftest.$ac_ext <<EOF
13757 #line 13758 "configure"
13758 #include "confdefs.h"
13759 #include <math.h>
13760 int main() {
13761 fmodf(0, 0);
13762 ; return 0; }
13764 if { (eval echo configure:13765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13765 rm -rf conftest*
13766 glibcpp_cv_func_fmodf_use=yes
13767 else
13768 echo "configure: failed program was:" >&5
13769 cat conftest.$ac_ext >&5
13770 rm -rf conftest*
13771 glibcpp_cv_func_fmodf_use=no
13773 rm -f conftest*
13774 ac_ext=c
13775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13776 ac_cpp='$CPP $CPPFLAGS'
13777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13779 cross_compiling=$ac_cv_prog_cc_cross
13785 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13787 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13788 for ac_func in fmodf
13790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13791 echo "configure:13792: checking for $ac_func" >&5
13792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13793 echo $ac_n "(cached) $ac_c" 1>&6
13794 else
13795 cat > conftest.$ac_ext <<EOF
13796 #line 13797 "configure"
13797 #include "confdefs.h"
13798 /* System header to define __stub macros and hopefully few prototypes,
13799 which can conflict with char $ac_func(); below. */
13800 #include <assert.h>
13801 /* Override any gcc2 internal prototype to avoid an error. */
13802 /* We use char because int might match the return type of a gcc2
13803 builtin and then its argument prototype would still apply. */
13804 char $ac_func();
13806 int main() {
13808 /* The GNU C library defines this for functions which it implements
13809 to always fail with ENOSYS. Some functions are actually named
13810 something starting with __ and the normal name is an alias. */
13811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13812 choke me
13813 #else
13814 $ac_func();
13815 #endif
13817 ; return 0; }
13819 if { (eval echo configure:13820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13820 rm -rf conftest*
13821 eval "ac_cv_func_$ac_func=yes"
13822 else
13823 echo "configure: failed program was:" >&5
13824 cat conftest.$ac_ext >&5
13825 rm -rf conftest*
13826 eval "ac_cv_func_$ac_func=no"
13828 rm -f conftest*
13831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13832 echo "$ac_t""yes" 1>&6
13833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13834 cat >> confdefs.h <<EOF
13835 #define $ac_tr_func 1
13838 else
13839 echo "$ac_t""no" 1>&6
13841 done
13843 else
13845 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13846 echo "configure:13847: checking for _fmodf declaration" >&5
13847 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13848 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13849 echo $ac_n "(cached) $ac_c" 1>&6
13850 else
13853 ac_ext=C
13854 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13855 ac_cpp='$CXXCPP $CPPFLAGS'
13856 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13857 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13858 cross_compiling=$ac_cv_prog_cxx_cross
13860 cat > conftest.$ac_ext <<EOF
13861 #line 13862 "configure"
13862 #include "confdefs.h"
13863 #include <math.h>
13864 int main() {
13865 _fmodf(0, 0);
13866 ; return 0; }
13868 if { (eval echo configure:13869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13869 rm -rf conftest*
13870 glibcpp_cv_func__fmodf_use=yes
13871 else
13872 echo "configure: failed program was:" >&5
13873 cat conftest.$ac_ext >&5
13874 rm -rf conftest*
13875 glibcpp_cv_func__fmodf_use=no
13877 rm -f conftest*
13878 ac_ext=c
13879 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13880 ac_cpp='$CPP $CPPFLAGS'
13881 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13882 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13883 cross_compiling=$ac_cv_prog_cc_cross
13889 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13891 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13892 for ac_func in _fmodf
13894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13895 echo "configure:13896: checking for $ac_func" >&5
13896 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13897 echo $ac_n "(cached) $ac_c" 1>&6
13898 else
13899 cat > conftest.$ac_ext <<EOF
13900 #line 13901 "configure"
13901 #include "confdefs.h"
13902 /* System header to define __stub macros and hopefully few prototypes,
13903 which can conflict with char $ac_func(); below. */
13904 #include <assert.h>
13905 /* Override any gcc2 internal prototype to avoid an error. */
13906 /* We use char because int might match the return type of a gcc2
13907 builtin and then its argument prototype would still apply. */
13908 char $ac_func();
13910 int main() {
13912 /* The GNU C library defines this for functions which it implements
13913 to always fail with ENOSYS. Some functions are actually named
13914 something starting with __ and the normal name is an alias. */
13915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13916 choke me
13917 #else
13918 $ac_func();
13919 #endif
13921 ; return 0; }
13923 if { (eval echo configure:13924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13924 rm -rf conftest*
13925 eval "ac_cv_func_$ac_func=yes"
13926 else
13927 echo "configure: failed program was:" >&5
13928 cat conftest.$ac_ext >&5
13929 rm -rf conftest*
13930 eval "ac_cv_func_$ac_func=no"
13932 rm -f conftest*
13935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13936 echo "$ac_t""yes" 1>&6
13937 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13938 cat >> confdefs.h <<EOF
13939 #define $ac_tr_func 1
13942 else
13943 echo "$ac_t""no" 1>&6
13945 done
13952 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13953 echo "configure:13954: checking for frexpf declaration" >&5
13954 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13955 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13956 echo $ac_n "(cached) $ac_c" 1>&6
13957 else
13960 ac_ext=C
13961 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13962 ac_cpp='$CXXCPP $CPPFLAGS'
13963 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13964 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13965 cross_compiling=$ac_cv_prog_cxx_cross
13967 cat > conftest.$ac_ext <<EOF
13968 #line 13969 "configure"
13969 #include "confdefs.h"
13970 #include <math.h>
13971 int main() {
13972 frexpf(0, 0);
13973 ; return 0; }
13975 if { (eval echo configure:13976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13976 rm -rf conftest*
13977 glibcpp_cv_func_frexpf_use=yes
13978 else
13979 echo "configure: failed program was:" >&5
13980 cat conftest.$ac_ext >&5
13981 rm -rf conftest*
13982 glibcpp_cv_func_frexpf_use=no
13984 rm -f conftest*
13985 ac_ext=c
13986 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13987 ac_cpp='$CPP $CPPFLAGS'
13988 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13989 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13990 cross_compiling=$ac_cv_prog_cc_cross
13996 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
13998 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
13999 for ac_func in frexpf
14001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14002 echo "configure:14003: checking for $ac_func" >&5
14003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14004 echo $ac_n "(cached) $ac_c" 1>&6
14005 else
14006 cat > conftest.$ac_ext <<EOF
14007 #line 14008 "configure"
14008 #include "confdefs.h"
14009 /* System header to define __stub macros and hopefully few prototypes,
14010 which can conflict with char $ac_func(); below. */
14011 #include <assert.h>
14012 /* Override any gcc2 internal prototype to avoid an error. */
14013 /* We use char because int might match the return type of a gcc2
14014 builtin and then its argument prototype would still apply. */
14015 char $ac_func();
14017 int main() {
14019 /* The GNU C library defines this for functions which it implements
14020 to always fail with ENOSYS. Some functions are actually named
14021 something starting with __ and the normal name is an alias. */
14022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14023 choke me
14024 #else
14025 $ac_func();
14026 #endif
14028 ; return 0; }
14030 if { (eval echo configure:14031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14031 rm -rf conftest*
14032 eval "ac_cv_func_$ac_func=yes"
14033 else
14034 echo "configure: failed program was:" >&5
14035 cat conftest.$ac_ext >&5
14036 rm -rf conftest*
14037 eval "ac_cv_func_$ac_func=no"
14039 rm -f conftest*
14042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14043 echo "$ac_t""yes" 1>&6
14044 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14045 cat >> confdefs.h <<EOF
14046 #define $ac_tr_func 1
14049 else
14050 echo "$ac_t""no" 1>&6
14052 done
14054 else
14056 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14057 echo "configure:14058: checking for _frexpf declaration" >&5
14058 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14059 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14060 echo $ac_n "(cached) $ac_c" 1>&6
14061 else
14064 ac_ext=C
14065 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14066 ac_cpp='$CXXCPP $CPPFLAGS'
14067 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14068 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14069 cross_compiling=$ac_cv_prog_cxx_cross
14071 cat > conftest.$ac_ext <<EOF
14072 #line 14073 "configure"
14073 #include "confdefs.h"
14074 #include <math.h>
14075 int main() {
14076 _frexpf(0, 0);
14077 ; return 0; }
14079 if { (eval echo configure:14080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14080 rm -rf conftest*
14081 glibcpp_cv_func__frexpf_use=yes
14082 else
14083 echo "configure: failed program was:" >&5
14084 cat conftest.$ac_ext >&5
14085 rm -rf conftest*
14086 glibcpp_cv_func__frexpf_use=no
14088 rm -f conftest*
14089 ac_ext=c
14090 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14091 ac_cpp='$CPP $CPPFLAGS'
14092 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14093 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14094 cross_compiling=$ac_cv_prog_cc_cross
14100 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14102 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14103 for ac_func in _frexpf
14105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14106 echo "configure:14107: checking for $ac_func" >&5
14107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14108 echo $ac_n "(cached) $ac_c" 1>&6
14109 else
14110 cat > conftest.$ac_ext <<EOF
14111 #line 14112 "configure"
14112 #include "confdefs.h"
14113 /* System header to define __stub macros and hopefully few prototypes,
14114 which can conflict with char $ac_func(); below. */
14115 #include <assert.h>
14116 /* Override any gcc2 internal prototype to avoid an error. */
14117 /* We use char because int might match the return type of a gcc2
14118 builtin and then its argument prototype would still apply. */
14119 char $ac_func();
14121 int main() {
14123 /* The GNU C library defines this for functions which it implements
14124 to always fail with ENOSYS. Some functions are actually named
14125 something starting with __ and the normal name is an alias. */
14126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14127 choke me
14128 #else
14129 $ac_func();
14130 #endif
14132 ; return 0; }
14134 if { (eval echo configure:14135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14135 rm -rf conftest*
14136 eval "ac_cv_func_$ac_func=yes"
14137 else
14138 echo "configure: failed program was:" >&5
14139 cat conftest.$ac_ext >&5
14140 rm -rf conftest*
14141 eval "ac_cv_func_$ac_func=no"
14143 rm -f conftest*
14146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14147 echo "$ac_t""yes" 1>&6
14148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14149 cat >> confdefs.h <<EOF
14150 #define $ac_tr_func 1
14153 else
14154 echo "$ac_t""no" 1>&6
14156 done
14163 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14164 echo "configure:14165: checking for hypotf declaration" >&5
14165 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14166 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14167 echo $ac_n "(cached) $ac_c" 1>&6
14168 else
14171 ac_ext=C
14172 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14173 ac_cpp='$CXXCPP $CPPFLAGS'
14174 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14175 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14176 cross_compiling=$ac_cv_prog_cxx_cross
14178 cat > conftest.$ac_ext <<EOF
14179 #line 14180 "configure"
14180 #include "confdefs.h"
14181 #include <math.h>
14182 int main() {
14183 hypotf(0, 0);
14184 ; return 0; }
14186 if { (eval echo configure:14187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14187 rm -rf conftest*
14188 glibcpp_cv_func_hypotf_use=yes
14189 else
14190 echo "configure: failed program was:" >&5
14191 cat conftest.$ac_ext >&5
14192 rm -rf conftest*
14193 glibcpp_cv_func_hypotf_use=no
14195 rm -f conftest*
14196 ac_ext=c
14197 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14198 ac_cpp='$CPP $CPPFLAGS'
14199 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14200 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14201 cross_compiling=$ac_cv_prog_cc_cross
14207 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14209 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14210 for ac_func in hypotf
14212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14213 echo "configure:14214: checking for $ac_func" >&5
14214 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14215 echo $ac_n "(cached) $ac_c" 1>&6
14216 else
14217 cat > conftest.$ac_ext <<EOF
14218 #line 14219 "configure"
14219 #include "confdefs.h"
14220 /* System header to define __stub macros and hopefully few prototypes,
14221 which can conflict with char $ac_func(); below. */
14222 #include <assert.h>
14223 /* Override any gcc2 internal prototype to avoid an error. */
14224 /* We use char because int might match the return type of a gcc2
14225 builtin and then its argument prototype would still apply. */
14226 char $ac_func();
14228 int main() {
14230 /* The GNU C library defines this for functions which it implements
14231 to always fail with ENOSYS. Some functions are actually named
14232 something starting with __ and the normal name is an alias. */
14233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14234 choke me
14235 #else
14236 $ac_func();
14237 #endif
14239 ; return 0; }
14241 if { (eval echo configure:14242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14242 rm -rf conftest*
14243 eval "ac_cv_func_$ac_func=yes"
14244 else
14245 echo "configure: failed program was:" >&5
14246 cat conftest.$ac_ext >&5
14247 rm -rf conftest*
14248 eval "ac_cv_func_$ac_func=no"
14250 rm -f conftest*
14253 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14254 echo "$ac_t""yes" 1>&6
14255 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14256 cat >> confdefs.h <<EOF
14257 #define $ac_tr_func 1
14260 else
14261 echo "$ac_t""no" 1>&6
14263 done
14265 else
14267 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14268 echo "configure:14269: checking for _hypotf declaration" >&5
14269 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14270 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14271 echo $ac_n "(cached) $ac_c" 1>&6
14272 else
14275 ac_ext=C
14276 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14277 ac_cpp='$CXXCPP $CPPFLAGS'
14278 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14279 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14280 cross_compiling=$ac_cv_prog_cxx_cross
14282 cat > conftest.$ac_ext <<EOF
14283 #line 14284 "configure"
14284 #include "confdefs.h"
14285 #include <math.h>
14286 int main() {
14287 _hypotf(0, 0);
14288 ; return 0; }
14290 if { (eval echo configure:14291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14291 rm -rf conftest*
14292 glibcpp_cv_func__hypotf_use=yes
14293 else
14294 echo "configure: failed program was:" >&5
14295 cat conftest.$ac_ext >&5
14296 rm -rf conftest*
14297 glibcpp_cv_func__hypotf_use=no
14299 rm -f conftest*
14300 ac_ext=c
14301 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14302 ac_cpp='$CPP $CPPFLAGS'
14303 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14304 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14305 cross_compiling=$ac_cv_prog_cc_cross
14311 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14313 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14314 for ac_func in _hypotf
14316 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14317 echo "configure:14318: checking for $ac_func" >&5
14318 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14319 echo $ac_n "(cached) $ac_c" 1>&6
14320 else
14321 cat > conftest.$ac_ext <<EOF
14322 #line 14323 "configure"
14323 #include "confdefs.h"
14324 /* System header to define __stub macros and hopefully few prototypes,
14325 which can conflict with char $ac_func(); below. */
14326 #include <assert.h>
14327 /* Override any gcc2 internal prototype to avoid an error. */
14328 /* We use char because int might match the return type of a gcc2
14329 builtin and then its argument prototype would still apply. */
14330 char $ac_func();
14332 int main() {
14334 /* The GNU C library defines this for functions which it implements
14335 to always fail with ENOSYS. Some functions are actually named
14336 something starting with __ and the normal name is an alias. */
14337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14338 choke me
14339 #else
14340 $ac_func();
14341 #endif
14343 ; return 0; }
14345 if { (eval echo configure:14346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14346 rm -rf conftest*
14347 eval "ac_cv_func_$ac_func=yes"
14348 else
14349 echo "configure: failed program was:" >&5
14350 cat conftest.$ac_ext >&5
14351 rm -rf conftest*
14352 eval "ac_cv_func_$ac_func=no"
14354 rm -f conftest*
14357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14358 echo "$ac_t""yes" 1>&6
14359 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14360 cat >> confdefs.h <<EOF
14361 #define $ac_tr_func 1
14364 else
14365 echo "$ac_t""no" 1>&6
14367 done
14374 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14375 echo "configure:14376: checking for ldexpf declaration" >&5
14376 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14377 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14378 echo $ac_n "(cached) $ac_c" 1>&6
14379 else
14382 ac_ext=C
14383 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14384 ac_cpp='$CXXCPP $CPPFLAGS'
14385 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14386 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14387 cross_compiling=$ac_cv_prog_cxx_cross
14389 cat > conftest.$ac_ext <<EOF
14390 #line 14391 "configure"
14391 #include "confdefs.h"
14392 #include <math.h>
14393 int main() {
14394 ldexpf(0, 0);
14395 ; return 0; }
14397 if { (eval echo configure:14398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14398 rm -rf conftest*
14399 glibcpp_cv_func_ldexpf_use=yes
14400 else
14401 echo "configure: failed program was:" >&5
14402 cat conftest.$ac_ext >&5
14403 rm -rf conftest*
14404 glibcpp_cv_func_ldexpf_use=no
14406 rm -f conftest*
14407 ac_ext=c
14408 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14409 ac_cpp='$CPP $CPPFLAGS'
14410 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14411 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14412 cross_compiling=$ac_cv_prog_cc_cross
14418 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14420 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14421 for ac_func in ldexpf
14423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14424 echo "configure:14425: checking for $ac_func" >&5
14425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14426 echo $ac_n "(cached) $ac_c" 1>&6
14427 else
14428 cat > conftest.$ac_ext <<EOF
14429 #line 14430 "configure"
14430 #include "confdefs.h"
14431 /* System header to define __stub macros and hopefully few prototypes,
14432 which can conflict with char $ac_func(); below. */
14433 #include <assert.h>
14434 /* Override any gcc2 internal prototype to avoid an error. */
14435 /* We use char because int might match the return type of a gcc2
14436 builtin and then its argument prototype would still apply. */
14437 char $ac_func();
14439 int main() {
14441 /* The GNU C library defines this for functions which it implements
14442 to always fail with ENOSYS. Some functions are actually named
14443 something starting with __ and the normal name is an alias. */
14444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14445 choke me
14446 #else
14447 $ac_func();
14448 #endif
14450 ; return 0; }
14452 if { (eval echo configure:14453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14453 rm -rf conftest*
14454 eval "ac_cv_func_$ac_func=yes"
14455 else
14456 echo "configure: failed program was:" >&5
14457 cat conftest.$ac_ext >&5
14458 rm -rf conftest*
14459 eval "ac_cv_func_$ac_func=no"
14461 rm -f conftest*
14464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14465 echo "$ac_t""yes" 1>&6
14466 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14467 cat >> confdefs.h <<EOF
14468 #define $ac_tr_func 1
14471 else
14472 echo "$ac_t""no" 1>&6
14474 done
14476 else
14478 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14479 echo "configure:14480: checking for _ldexpf declaration" >&5
14480 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14481 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14482 echo $ac_n "(cached) $ac_c" 1>&6
14483 else
14486 ac_ext=C
14487 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14488 ac_cpp='$CXXCPP $CPPFLAGS'
14489 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14490 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14491 cross_compiling=$ac_cv_prog_cxx_cross
14493 cat > conftest.$ac_ext <<EOF
14494 #line 14495 "configure"
14495 #include "confdefs.h"
14496 #include <math.h>
14497 int main() {
14498 _ldexpf(0, 0);
14499 ; return 0; }
14501 if { (eval echo configure:14502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14502 rm -rf conftest*
14503 glibcpp_cv_func__ldexpf_use=yes
14504 else
14505 echo "configure: failed program was:" >&5
14506 cat conftest.$ac_ext >&5
14507 rm -rf conftest*
14508 glibcpp_cv_func__ldexpf_use=no
14510 rm -f conftest*
14511 ac_ext=c
14512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14513 ac_cpp='$CPP $CPPFLAGS'
14514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14515 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14516 cross_compiling=$ac_cv_prog_cc_cross
14522 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14524 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14525 for ac_func in _ldexpf
14527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14528 echo "configure:14529: checking for $ac_func" >&5
14529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14530 echo $ac_n "(cached) $ac_c" 1>&6
14531 else
14532 cat > conftest.$ac_ext <<EOF
14533 #line 14534 "configure"
14534 #include "confdefs.h"
14535 /* System header to define __stub macros and hopefully few prototypes,
14536 which can conflict with char $ac_func(); below. */
14537 #include <assert.h>
14538 /* Override any gcc2 internal prototype to avoid an error. */
14539 /* We use char because int might match the return type of a gcc2
14540 builtin and then its argument prototype would still apply. */
14541 char $ac_func();
14543 int main() {
14545 /* The GNU C library defines this for functions which it implements
14546 to always fail with ENOSYS. Some functions are actually named
14547 something starting with __ and the normal name is an alias. */
14548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14549 choke me
14550 #else
14551 $ac_func();
14552 #endif
14554 ; return 0; }
14556 if { (eval echo configure:14557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14557 rm -rf conftest*
14558 eval "ac_cv_func_$ac_func=yes"
14559 else
14560 echo "configure: failed program was:" >&5
14561 cat conftest.$ac_ext >&5
14562 rm -rf conftest*
14563 eval "ac_cv_func_$ac_func=no"
14565 rm -f conftest*
14568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14569 echo "$ac_t""yes" 1>&6
14570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14571 cat >> confdefs.h <<EOF
14572 #define $ac_tr_func 1
14575 else
14576 echo "$ac_t""no" 1>&6
14578 done
14585 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14586 echo "configure:14587: checking for logf declaration" >&5
14587 if test x${glibcpp_cv_func_logf_use+set} != xset; then
14588 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14589 echo $ac_n "(cached) $ac_c" 1>&6
14590 else
14593 ac_ext=C
14594 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14595 ac_cpp='$CXXCPP $CPPFLAGS'
14596 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14597 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14598 cross_compiling=$ac_cv_prog_cxx_cross
14600 cat > conftest.$ac_ext <<EOF
14601 #line 14602 "configure"
14602 #include "confdefs.h"
14603 #include <math.h>
14604 #ifdef HAVE_IEEEFP_H
14605 #include <ieeefp.h>
14606 #endif
14608 int main() {
14609 logf(0);
14610 ; return 0; }
14612 if { (eval echo configure:14613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14613 rm -rf conftest*
14614 glibcpp_cv_func_logf_use=yes
14615 else
14616 echo "configure: failed program was:" >&5
14617 cat conftest.$ac_ext >&5
14618 rm -rf conftest*
14619 glibcpp_cv_func_logf_use=no
14621 rm -f conftest*
14622 ac_ext=c
14623 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14624 ac_cpp='$CPP $CPPFLAGS'
14625 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14626 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14627 cross_compiling=$ac_cv_prog_cc_cross
14633 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14635 if test x$glibcpp_cv_func_logf_use = x"yes"; then
14636 for ac_func in logf
14638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14639 echo "configure:14640: checking for $ac_func" >&5
14640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14641 echo $ac_n "(cached) $ac_c" 1>&6
14642 else
14643 cat > conftest.$ac_ext <<EOF
14644 #line 14645 "configure"
14645 #include "confdefs.h"
14646 /* System header to define __stub macros and hopefully few prototypes,
14647 which can conflict with char $ac_func(); below. */
14648 #include <assert.h>
14649 /* Override any gcc2 internal prototype to avoid an error. */
14650 /* We use char because int might match the return type of a gcc2
14651 builtin and then its argument prototype would still apply. */
14652 char $ac_func();
14654 int main() {
14656 /* The GNU C library defines this for functions which it implements
14657 to always fail with ENOSYS. Some functions are actually named
14658 something starting with __ and the normal name is an alias. */
14659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14660 choke me
14661 #else
14662 $ac_func();
14663 #endif
14665 ; return 0; }
14667 if { (eval echo configure:14668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14668 rm -rf conftest*
14669 eval "ac_cv_func_$ac_func=yes"
14670 else
14671 echo "configure: failed program was:" >&5
14672 cat conftest.$ac_ext >&5
14673 rm -rf conftest*
14674 eval "ac_cv_func_$ac_func=no"
14676 rm -f conftest*
14679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14680 echo "$ac_t""yes" 1>&6
14681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14682 cat >> confdefs.h <<EOF
14683 #define $ac_tr_func 1
14686 else
14687 echo "$ac_t""no" 1>&6
14689 done
14691 else
14693 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14694 echo "configure:14695: checking for _logf declaration" >&5
14695 if test x${glibcpp_cv_func__logf_use+set} != xset; then
14696 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14697 echo $ac_n "(cached) $ac_c" 1>&6
14698 else
14701 ac_ext=C
14702 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14703 ac_cpp='$CXXCPP $CPPFLAGS'
14704 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14705 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14706 cross_compiling=$ac_cv_prog_cxx_cross
14708 cat > conftest.$ac_ext <<EOF
14709 #line 14710 "configure"
14710 #include "confdefs.h"
14711 #include <math.h>
14712 #ifdef HAVE_IEEEFP_H
14713 #include <ieeefp.h>
14714 #endif
14716 int main() {
14717 _logf(0);
14718 ; return 0; }
14720 if { (eval echo configure:14721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14721 rm -rf conftest*
14722 glibcpp_cv_func__logf_use=yes
14723 else
14724 echo "configure: failed program was:" >&5
14725 cat conftest.$ac_ext >&5
14726 rm -rf conftest*
14727 glibcpp_cv_func__logf_use=no
14729 rm -f conftest*
14730 ac_ext=c
14731 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14732 ac_cpp='$CPP $CPPFLAGS'
14733 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14734 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14735 cross_compiling=$ac_cv_prog_cc_cross
14741 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14743 if test x$glibcpp_cv_func__logf_use = x"yes"; then
14744 for ac_func in _logf
14746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14747 echo "configure:14748: checking for $ac_func" >&5
14748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14749 echo $ac_n "(cached) $ac_c" 1>&6
14750 else
14751 cat > conftest.$ac_ext <<EOF
14752 #line 14753 "configure"
14753 #include "confdefs.h"
14754 /* System header to define __stub macros and hopefully few prototypes,
14755 which can conflict with char $ac_func(); below. */
14756 #include <assert.h>
14757 /* Override any gcc2 internal prototype to avoid an error. */
14758 /* We use char because int might match the return type of a gcc2
14759 builtin and then its argument prototype would still apply. */
14760 char $ac_func();
14762 int main() {
14764 /* The GNU C library defines this for functions which it implements
14765 to always fail with ENOSYS. Some functions are actually named
14766 something starting with __ and the normal name is an alias. */
14767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14768 choke me
14769 #else
14770 $ac_func();
14771 #endif
14773 ; return 0; }
14775 if { (eval echo configure:14776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14776 rm -rf conftest*
14777 eval "ac_cv_func_$ac_func=yes"
14778 else
14779 echo "configure: failed program was:" >&5
14780 cat conftest.$ac_ext >&5
14781 rm -rf conftest*
14782 eval "ac_cv_func_$ac_func=no"
14784 rm -f conftest*
14787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14788 echo "$ac_t""yes" 1>&6
14789 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14790 cat >> confdefs.h <<EOF
14791 #define $ac_tr_func 1
14794 else
14795 echo "$ac_t""no" 1>&6
14797 done
14804 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14805 echo "configure:14806: checking for log10f declaration" >&5
14806 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14807 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14808 echo $ac_n "(cached) $ac_c" 1>&6
14809 else
14812 ac_ext=C
14813 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14814 ac_cpp='$CXXCPP $CPPFLAGS'
14815 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14816 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14817 cross_compiling=$ac_cv_prog_cxx_cross
14819 cat > conftest.$ac_ext <<EOF
14820 #line 14821 "configure"
14821 #include "confdefs.h"
14822 #include <math.h>
14823 #ifdef HAVE_IEEEFP_H
14824 #include <ieeefp.h>
14825 #endif
14827 int main() {
14828 log10f(0);
14829 ; return 0; }
14831 if { (eval echo configure:14832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14832 rm -rf conftest*
14833 glibcpp_cv_func_log10f_use=yes
14834 else
14835 echo "configure: failed program was:" >&5
14836 cat conftest.$ac_ext >&5
14837 rm -rf conftest*
14838 glibcpp_cv_func_log10f_use=no
14840 rm -f conftest*
14841 ac_ext=c
14842 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14843 ac_cpp='$CPP $CPPFLAGS'
14844 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14845 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14846 cross_compiling=$ac_cv_prog_cc_cross
14852 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14854 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14855 for ac_func in log10f
14857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14858 echo "configure:14859: checking for $ac_func" >&5
14859 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14860 echo $ac_n "(cached) $ac_c" 1>&6
14861 else
14862 cat > conftest.$ac_ext <<EOF
14863 #line 14864 "configure"
14864 #include "confdefs.h"
14865 /* System header to define __stub macros and hopefully few prototypes,
14866 which can conflict with char $ac_func(); below. */
14867 #include <assert.h>
14868 /* Override any gcc2 internal prototype to avoid an error. */
14869 /* We use char because int might match the return type of a gcc2
14870 builtin and then its argument prototype would still apply. */
14871 char $ac_func();
14873 int main() {
14875 /* The GNU C library defines this for functions which it implements
14876 to always fail with ENOSYS. Some functions are actually named
14877 something starting with __ and the normal name is an alias. */
14878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14879 choke me
14880 #else
14881 $ac_func();
14882 #endif
14884 ; return 0; }
14886 if { (eval echo configure:14887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14887 rm -rf conftest*
14888 eval "ac_cv_func_$ac_func=yes"
14889 else
14890 echo "configure: failed program was:" >&5
14891 cat conftest.$ac_ext >&5
14892 rm -rf conftest*
14893 eval "ac_cv_func_$ac_func=no"
14895 rm -f conftest*
14898 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14899 echo "$ac_t""yes" 1>&6
14900 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14901 cat >> confdefs.h <<EOF
14902 #define $ac_tr_func 1
14905 else
14906 echo "$ac_t""no" 1>&6
14908 done
14910 else
14912 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14913 echo "configure:14914: checking for _log10f declaration" >&5
14914 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14915 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14916 echo $ac_n "(cached) $ac_c" 1>&6
14917 else
14920 ac_ext=C
14921 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14922 ac_cpp='$CXXCPP $CPPFLAGS'
14923 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14924 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14925 cross_compiling=$ac_cv_prog_cxx_cross
14927 cat > conftest.$ac_ext <<EOF
14928 #line 14929 "configure"
14929 #include "confdefs.h"
14930 #include <math.h>
14931 #ifdef HAVE_IEEEFP_H
14932 #include <ieeefp.h>
14933 #endif
14935 int main() {
14936 _log10f(0);
14937 ; return 0; }
14939 if { (eval echo configure:14940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14940 rm -rf conftest*
14941 glibcpp_cv_func__log10f_use=yes
14942 else
14943 echo "configure: failed program was:" >&5
14944 cat conftest.$ac_ext >&5
14945 rm -rf conftest*
14946 glibcpp_cv_func__log10f_use=no
14948 rm -f conftest*
14949 ac_ext=c
14950 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14951 ac_cpp='$CPP $CPPFLAGS'
14952 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14953 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14954 cross_compiling=$ac_cv_prog_cc_cross
14960 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14962 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14963 for ac_func in _log10f
14965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14966 echo "configure:14967: checking for $ac_func" >&5
14967 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14968 echo $ac_n "(cached) $ac_c" 1>&6
14969 else
14970 cat > conftest.$ac_ext <<EOF
14971 #line 14972 "configure"
14972 #include "confdefs.h"
14973 /* System header to define __stub macros and hopefully few prototypes,
14974 which can conflict with char $ac_func(); below. */
14975 #include <assert.h>
14976 /* Override any gcc2 internal prototype to avoid an error. */
14977 /* We use char because int might match the return type of a gcc2
14978 builtin and then its argument prototype would still apply. */
14979 char $ac_func();
14981 int main() {
14983 /* The GNU C library defines this for functions which it implements
14984 to always fail with ENOSYS. Some functions are actually named
14985 something starting with __ and the normal name is an alias. */
14986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14987 choke me
14988 #else
14989 $ac_func();
14990 #endif
14992 ; return 0; }
14994 if { (eval echo configure:14995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14995 rm -rf conftest*
14996 eval "ac_cv_func_$ac_func=yes"
14997 else
14998 echo "configure: failed program was:" >&5
14999 cat conftest.$ac_ext >&5
15000 rm -rf conftest*
15001 eval "ac_cv_func_$ac_func=no"
15003 rm -f conftest*
15006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15007 echo "$ac_t""yes" 1>&6
15008 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15009 cat >> confdefs.h <<EOF
15010 #define $ac_tr_func 1
15013 else
15014 echo "$ac_t""no" 1>&6
15016 done
15023 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15024 echo "configure:15025: checking for modff declaration" >&5
15025 if test x${glibcpp_cv_func_modff_use+set} != xset; then
15026 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15027 echo $ac_n "(cached) $ac_c" 1>&6
15028 else
15031 ac_ext=C
15032 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15033 ac_cpp='$CXXCPP $CPPFLAGS'
15034 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15035 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15036 cross_compiling=$ac_cv_prog_cxx_cross
15038 cat > conftest.$ac_ext <<EOF
15039 #line 15040 "configure"
15040 #include "confdefs.h"
15041 #include <math.h>
15042 int main() {
15043 modff(0, 0);
15044 ; return 0; }
15046 if { (eval echo configure:15047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15047 rm -rf conftest*
15048 glibcpp_cv_func_modff_use=yes
15049 else
15050 echo "configure: failed program was:" >&5
15051 cat conftest.$ac_ext >&5
15052 rm -rf conftest*
15053 glibcpp_cv_func_modff_use=no
15055 rm -f conftest*
15056 ac_ext=c
15057 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15058 ac_cpp='$CPP $CPPFLAGS'
15059 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15060 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15061 cross_compiling=$ac_cv_prog_cc_cross
15067 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15069 if test x$glibcpp_cv_func_modff_use = x"yes"; then
15070 for ac_func in modff
15072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15073 echo "configure:15074: checking for $ac_func" >&5
15074 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15075 echo $ac_n "(cached) $ac_c" 1>&6
15076 else
15077 cat > conftest.$ac_ext <<EOF
15078 #line 15079 "configure"
15079 #include "confdefs.h"
15080 /* System header to define __stub macros and hopefully few prototypes,
15081 which can conflict with char $ac_func(); below. */
15082 #include <assert.h>
15083 /* Override any gcc2 internal prototype to avoid an error. */
15084 /* We use char because int might match the return type of a gcc2
15085 builtin and then its argument prototype would still apply. */
15086 char $ac_func();
15088 int main() {
15090 /* The GNU C library defines this for functions which it implements
15091 to always fail with ENOSYS. Some functions are actually named
15092 something starting with __ and the normal name is an alias. */
15093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15094 choke me
15095 #else
15096 $ac_func();
15097 #endif
15099 ; return 0; }
15101 if { (eval echo configure:15102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15102 rm -rf conftest*
15103 eval "ac_cv_func_$ac_func=yes"
15104 else
15105 echo "configure: failed program was:" >&5
15106 cat conftest.$ac_ext >&5
15107 rm -rf conftest*
15108 eval "ac_cv_func_$ac_func=no"
15110 rm -f conftest*
15113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15114 echo "$ac_t""yes" 1>&6
15115 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15116 cat >> confdefs.h <<EOF
15117 #define $ac_tr_func 1
15120 else
15121 echo "$ac_t""no" 1>&6
15123 done
15125 else
15127 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15128 echo "configure:15129: checking for _modff declaration" >&5
15129 if test x${glibcpp_cv_func__modff_use+set} != xset; then
15130 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15131 echo $ac_n "(cached) $ac_c" 1>&6
15132 else
15135 ac_ext=C
15136 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15137 ac_cpp='$CXXCPP $CPPFLAGS'
15138 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15139 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15140 cross_compiling=$ac_cv_prog_cxx_cross
15142 cat > conftest.$ac_ext <<EOF
15143 #line 15144 "configure"
15144 #include "confdefs.h"
15145 #include <math.h>
15146 int main() {
15147 _modff(0, 0);
15148 ; return 0; }
15150 if { (eval echo configure:15151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15151 rm -rf conftest*
15152 glibcpp_cv_func__modff_use=yes
15153 else
15154 echo "configure: failed program was:" >&5
15155 cat conftest.$ac_ext >&5
15156 rm -rf conftest*
15157 glibcpp_cv_func__modff_use=no
15159 rm -f conftest*
15160 ac_ext=c
15161 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15162 ac_cpp='$CPP $CPPFLAGS'
15163 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15164 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15165 cross_compiling=$ac_cv_prog_cc_cross
15171 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15173 if test x$glibcpp_cv_func__modff_use = x"yes"; then
15174 for ac_func in _modff
15176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15177 echo "configure:15178: checking for $ac_func" >&5
15178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15179 echo $ac_n "(cached) $ac_c" 1>&6
15180 else
15181 cat > conftest.$ac_ext <<EOF
15182 #line 15183 "configure"
15183 #include "confdefs.h"
15184 /* System header to define __stub macros and hopefully few prototypes,
15185 which can conflict with char $ac_func(); below. */
15186 #include <assert.h>
15187 /* Override any gcc2 internal prototype to avoid an error. */
15188 /* We use char because int might match the return type of a gcc2
15189 builtin and then its argument prototype would still apply. */
15190 char $ac_func();
15192 int main() {
15194 /* The GNU C library defines this for functions which it implements
15195 to always fail with ENOSYS. Some functions are actually named
15196 something starting with __ and the normal name is an alias. */
15197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15198 choke me
15199 #else
15200 $ac_func();
15201 #endif
15203 ; return 0; }
15205 if { (eval echo configure:15206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15206 rm -rf conftest*
15207 eval "ac_cv_func_$ac_func=yes"
15208 else
15209 echo "configure: failed program was:" >&5
15210 cat conftest.$ac_ext >&5
15211 rm -rf conftest*
15212 eval "ac_cv_func_$ac_func=no"
15214 rm -f conftest*
15217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15218 echo "$ac_t""yes" 1>&6
15219 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15220 cat >> confdefs.h <<EOF
15221 #define $ac_tr_func 1
15224 else
15225 echo "$ac_t""no" 1>&6
15227 done
15234 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15235 echo "configure:15236: checking for powf declaration" >&5
15236 if test x${glibcpp_cv_func_powf_use+set} != xset; then
15237 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15238 echo $ac_n "(cached) $ac_c" 1>&6
15239 else
15242 ac_ext=C
15243 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15244 ac_cpp='$CXXCPP $CPPFLAGS'
15245 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15246 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15247 cross_compiling=$ac_cv_prog_cxx_cross
15249 cat > conftest.$ac_ext <<EOF
15250 #line 15251 "configure"
15251 #include "confdefs.h"
15252 #include <math.h>
15253 int main() {
15254 powf(0, 0);
15255 ; return 0; }
15257 if { (eval echo configure:15258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15258 rm -rf conftest*
15259 glibcpp_cv_func_powf_use=yes
15260 else
15261 echo "configure: failed program was:" >&5
15262 cat conftest.$ac_ext >&5
15263 rm -rf conftest*
15264 glibcpp_cv_func_powf_use=no
15266 rm -f conftest*
15267 ac_ext=c
15268 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15269 ac_cpp='$CPP $CPPFLAGS'
15270 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15271 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15272 cross_compiling=$ac_cv_prog_cc_cross
15278 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15280 if test x$glibcpp_cv_func_powf_use = x"yes"; then
15281 for ac_func in powf
15283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15284 echo "configure:15285: checking for $ac_func" >&5
15285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15286 echo $ac_n "(cached) $ac_c" 1>&6
15287 else
15288 cat > conftest.$ac_ext <<EOF
15289 #line 15290 "configure"
15290 #include "confdefs.h"
15291 /* System header to define __stub macros and hopefully few prototypes,
15292 which can conflict with char $ac_func(); below. */
15293 #include <assert.h>
15294 /* Override any gcc2 internal prototype to avoid an error. */
15295 /* We use char because int might match the return type of a gcc2
15296 builtin and then its argument prototype would still apply. */
15297 char $ac_func();
15299 int main() {
15301 /* The GNU C library defines this for functions which it implements
15302 to always fail with ENOSYS. Some functions are actually named
15303 something starting with __ and the normal name is an alias. */
15304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15305 choke me
15306 #else
15307 $ac_func();
15308 #endif
15310 ; return 0; }
15312 if { (eval echo configure:15313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15313 rm -rf conftest*
15314 eval "ac_cv_func_$ac_func=yes"
15315 else
15316 echo "configure: failed program was:" >&5
15317 cat conftest.$ac_ext >&5
15318 rm -rf conftest*
15319 eval "ac_cv_func_$ac_func=no"
15321 rm -f conftest*
15324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15325 echo "$ac_t""yes" 1>&6
15326 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15327 cat >> confdefs.h <<EOF
15328 #define $ac_tr_func 1
15331 else
15332 echo "$ac_t""no" 1>&6
15334 done
15336 else
15338 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15339 echo "configure:15340: checking for _powf declaration" >&5
15340 if test x${glibcpp_cv_func__powf_use+set} != xset; then
15341 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15342 echo $ac_n "(cached) $ac_c" 1>&6
15343 else
15346 ac_ext=C
15347 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15348 ac_cpp='$CXXCPP $CPPFLAGS'
15349 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15350 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15351 cross_compiling=$ac_cv_prog_cxx_cross
15353 cat > conftest.$ac_ext <<EOF
15354 #line 15355 "configure"
15355 #include "confdefs.h"
15356 #include <math.h>
15357 int main() {
15358 _powf(0, 0);
15359 ; return 0; }
15361 if { (eval echo configure:15362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15362 rm -rf conftest*
15363 glibcpp_cv_func__powf_use=yes
15364 else
15365 echo "configure: failed program was:" >&5
15366 cat conftest.$ac_ext >&5
15367 rm -rf conftest*
15368 glibcpp_cv_func__powf_use=no
15370 rm -f conftest*
15371 ac_ext=c
15372 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15373 ac_cpp='$CPP $CPPFLAGS'
15374 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15375 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15376 cross_compiling=$ac_cv_prog_cc_cross
15382 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15384 if test x$glibcpp_cv_func__powf_use = x"yes"; then
15385 for ac_func in _powf
15387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15388 echo "configure:15389: checking for $ac_func" >&5
15389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15390 echo $ac_n "(cached) $ac_c" 1>&6
15391 else
15392 cat > conftest.$ac_ext <<EOF
15393 #line 15394 "configure"
15394 #include "confdefs.h"
15395 /* System header to define __stub macros and hopefully few prototypes,
15396 which can conflict with char $ac_func(); below. */
15397 #include <assert.h>
15398 /* Override any gcc2 internal prototype to avoid an error. */
15399 /* We use char because int might match the return type of a gcc2
15400 builtin and then its argument prototype would still apply. */
15401 char $ac_func();
15403 int main() {
15405 /* The GNU C library defines this for functions which it implements
15406 to always fail with ENOSYS. Some functions are actually named
15407 something starting with __ and the normal name is an alias. */
15408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15409 choke me
15410 #else
15411 $ac_func();
15412 #endif
15414 ; return 0; }
15416 if { (eval echo configure:15417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15417 rm -rf conftest*
15418 eval "ac_cv_func_$ac_func=yes"
15419 else
15420 echo "configure: failed program was:" >&5
15421 cat conftest.$ac_ext >&5
15422 rm -rf conftest*
15423 eval "ac_cv_func_$ac_func=no"
15425 rm -f conftest*
15428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15429 echo "$ac_t""yes" 1>&6
15430 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15431 cat >> confdefs.h <<EOF
15432 #define $ac_tr_func 1
15435 else
15436 echo "$ac_t""no" 1>&6
15438 done
15445 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15446 echo "configure:15447: checking for sqrtf declaration" >&5
15447 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15448 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15449 echo $ac_n "(cached) $ac_c" 1>&6
15450 else
15453 ac_ext=C
15454 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15455 ac_cpp='$CXXCPP $CPPFLAGS'
15456 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15457 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15458 cross_compiling=$ac_cv_prog_cxx_cross
15460 cat > conftest.$ac_ext <<EOF
15461 #line 15462 "configure"
15462 #include "confdefs.h"
15463 #include <math.h>
15464 #ifdef HAVE_IEEEFP_H
15465 #include <ieeefp.h>
15466 #endif
15468 int main() {
15469 sqrtf(0);
15470 ; return 0; }
15472 if { (eval echo configure:15473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15473 rm -rf conftest*
15474 glibcpp_cv_func_sqrtf_use=yes
15475 else
15476 echo "configure: failed program was:" >&5
15477 cat conftest.$ac_ext >&5
15478 rm -rf conftest*
15479 glibcpp_cv_func_sqrtf_use=no
15481 rm -f conftest*
15482 ac_ext=c
15483 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15484 ac_cpp='$CPP $CPPFLAGS'
15485 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15486 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15487 cross_compiling=$ac_cv_prog_cc_cross
15493 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15495 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15496 for ac_func in sqrtf
15498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15499 echo "configure:15500: checking for $ac_func" >&5
15500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15501 echo $ac_n "(cached) $ac_c" 1>&6
15502 else
15503 cat > conftest.$ac_ext <<EOF
15504 #line 15505 "configure"
15505 #include "confdefs.h"
15506 /* System header to define __stub macros and hopefully few prototypes,
15507 which can conflict with char $ac_func(); below. */
15508 #include <assert.h>
15509 /* Override any gcc2 internal prototype to avoid an error. */
15510 /* We use char because int might match the return type of a gcc2
15511 builtin and then its argument prototype would still apply. */
15512 char $ac_func();
15514 int main() {
15516 /* The GNU C library defines this for functions which it implements
15517 to always fail with ENOSYS. Some functions are actually named
15518 something starting with __ and the normal name is an alias. */
15519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15520 choke me
15521 #else
15522 $ac_func();
15523 #endif
15525 ; return 0; }
15527 if { (eval echo configure:15528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15528 rm -rf conftest*
15529 eval "ac_cv_func_$ac_func=yes"
15530 else
15531 echo "configure: failed program was:" >&5
15532 cat conftest.$ac_ext >&5
15533 rm -rf conftest*
15534 eval "ac_cv_func_$ac_func=no"
15536 rm -f conftest*
15539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15540 echo "$ac_t""yes" 1>&6
15541 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15542 cat >> confdefs.h <<EOF
15543 #define $ac_tr_func 1
15546 else
15547 echo "$ac_t""no" 1>&6
15549 done
15551 else
15553 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15554 echo "configure:15555: checking for _sqrtf declaration" >&5
15555 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15556 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15557 echo $ac_n "(cached) $ac_c" 1>&6
15558 else
15561 ac_ext=C
15562 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15563 ac_cpp='$CXXCPP $CPPFLAGS'
15564 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15565 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15566 cross_compiling=$ac_cv_prog_cxx_cross
15568 cat > conftest.$ac_ext <<EOF
15569 #line 15570 "configure"
15570 #include "confdefs.h"
15571 #include <math.h>
15572 #ifdef HAVE_IEEEFP_H
15573 #include <ieeefp.h>
15574 #endif
15576 int main() {
15577 _sqrtf(0);
15578 ; return 0; }
15580 if { (eval echo configure:15581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15581 rm -rf conftest*
15582 glibcpp_cv_func__sqrtf_use=yes
15583 else
15584 echo "configure: failed program was:" >&5
15585 cat conftest.$ac_ext >&5
15586 rm -rf conftest*
15587 glibcpp_cv_func__sqrtf_use=no
15589 rm -f conftest*
15590 ac_ext=c
15591 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15592 ac_cpp='$CPP $CPPFLAGS'
15593 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15594 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15595 cross_compiling=$ac_cv_prog_cc_cross
15601 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15603 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15604 for ac_func in _sqrtf
15606 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15607 echo "configure:15608: checking for $ac_func" >&5
15608 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15609 echo $ac_n "(cached) $ac_c" 1>&6
15610 else
15611 cat > conftest.$ac_ext <<EOF
15612 #line 15613 "configure"
15613 #include "confdefs.h"
15614 /* System header to define __stub macros and hopefully few prototypes,
15615 which can conflict with char $ac_func(); below. */
15616 #include <assert.h>
15617 /* Override any gcc2 internal prototype to avoid an error. */
15618 /* We use char because int might match the return type of a gcc2
15619 builtin and then its argument prototype would still apply. */
15620 char $ac_func();
15622 int main() {
15624 /* The GNU C library defines this for functions which it implements
15625 to always fail with ENOSYS. Some functions are actually named
15626 something starting with __ and the normal name is an alias. */
15627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15628 choke me
15629 #else
15630 $ac_func();
15631 #endif
15633 ; return 0; }
15635 if { (eval echo configure:15636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15636 rm -rf conftest*
15637 eval "ac_cv_func_$ac_func=yes"
15638 else
15639 echo "configure: failed program was:" >&5
15640 cat conftest.$ac_ext >&5
15641 rm -rf conftest*
15642 eval "ac_cv_func_$ac_func=no"
15644 rm -f conftest*
15647 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15648 echo "$ac_t""yes" 1>&6
15649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15650 cat >> confdefs.h <<EOF
15651 #define $ac_tr_func 1
15654 else
15655 echo "$ac_t""no" 1>&6
15657 done
15664 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15665 echo "configure:15666: checking for sincosf declaration" >&5
15666 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15667 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15668 echo $ac_n "(cached) $ac_c" 1>&6
15669 else
15672 ac_ext=C
15673 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15674 ac_cpp='$CXXCPP $CPPFLAGS'
15675 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15676 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15677 cross_compiling=$ac_cv_prog_cxx_cross
15679 cat > conftest.$ac_ext <<EOF
15680 #line 15681 "configure"
15681 #include "confdefs.h"
15682 #include <math.h>
15683 int main() {
15684 sincosf(0, 0, 0);
15685 ; return 0; }
15687 if { (eval echo configure:15688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15688 rm -rf conftest*
15689 glibcpp_cv_func_sincosf_use=yes
15690 else
15691 echo "configure: failed program was:" >&5
15692 cat conftest.$ac_ext >&5
15693 rm -rf conftest*
15694 glibcpp_cv_func_sincosf_use=no
15696 rm -f conftest*
15697 ac_ext=c
15698 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15699 ac_cpp='$CPP $CPPFLAGS'
15700 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15701 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15702 cross_compiling=$ac_cv_prog_cc_cross
15708 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15710 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15711 for ac_func in sincosf
15713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15714 echo "configure:15715: checking for $ac_func" >&5
15715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15716 echo $ac_n "(cached) $ac_c" 1>&6
15717 else
15718 cat > conftest.$ac_ext <<EOF
15719 #line 15720 "configure"
15720 #include "confdefs.h"
15721 /* System header to define __stub macros and hopefully few prototypes,
15722 which can conflict with char $ac_func(); below. */
15723 #include <assert.h>
15724 /* Override any gcc2 internal prototype to avoid an error. */
15725 /* We use char because int might match the return type of a gcc2
15726 builtin and then its argument prototype would still apply. */
15727 char $ac_func();
15729 int main() {
15731 /* The GNU C library defines this for functions which it implements
15732 to always fail with ENOSYS. Some functions are actually named
15733 something starting with __ and the normal name is an alias. */
15734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15735 choke me
15736 #else
15737 $ac_func();
15738 #endif
15740 ; return 0; }
15742 if { (eval echo configure:15743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15743 rm -rf conftest*
15744 eval "ac_cv_func_$ac_func=yes"
15745 else
15746 echo "configure: failed program was:" >&5
15747 cat conftest.$ac_ext >&5
15748 rm -rf conftest*
15749 eval "ac_cv_func_$ac_func=no"
15751 rm -f conftest*
15754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15755 echo "$ac_t""yes" 1>&6
15756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15757 cat >> confdefs.h <<EOF
15758 #define $ac_tr_func 1
15761 else
15762 echo "$ac_t""no" 1>&6
15764 done
15766 else
15768 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15769 echo "configure:15770: checking for _sincosf declaration" >&5
15770 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15771 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15772 echo $ac_n "(cached) $ac_c" 1>&6
15773 else
15776 ac_ext=C
15777 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15778 ac_cpp='$CXXCPP $CPPFLAGS'
15779 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15780 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15781 cross_compiling=$ac_cv_prog_cxx_cross
15783 cat > conftest.$ac_ext <<EOF
15784 #line 15785 "configure"
15785 #include "confdefs.h"
15786 #include <math.h>
15787 int main() {
15788 _sincosf(0, 0, 0);
15789 ; return 0; }
15791 if { (eval echo configure:15792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15792 rm -rf conftest*
15793 glibcpp_cv_func__sincosf_use=yes
15794 else
15795 echo "configure: failed program was:" >&5
15796 cat conftest.$ac_ext >&5
15797 rm -rf conftest*
15798 glibcpp_cv_func__sincosf_use=no
15800 rm -f conftest*
15801 ac_ext=c
15802 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15803 ac_cpp='$CPP $CPPFLAGS'
15804 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15805 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15806 cross_compiling=$ac_cv_prog_cc_cross
15812 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15814 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15815 for ac_func in _sincosf
15817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15818 echo "configure:15819: checking for $ac_func" >&5
15819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15820 echo $ac_n "(cached) $ac_c" 1>&6
15821 else
15822 cat > conftest.$ac_ext <<EOF
15823 #line 15824 "configure"
15824 #include "confdefs.h"
15825 /* System header to define __stub macros and hopefully few prototypes,
15826 which can conflict with char $ac_func(); below. */
15827 #include <assert.h>
15828 /* Override any gcc2 internal prototype to avoid an error. */
15829 /* We use char because int might match the return type of a gcc2
15830 builtin and then its argument prototype would still apply. */
15831 char $ac_func();
15833 int main() {
15835 /* The GNU C library defines this for functions which it implements
15836 to always fail with ENOSYS. Some functions are actually named
15837 something starting with __ and the normal name is an alias. */
15838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15839 choke me
15840 #else
15841 $ac_func();
15842 #endif
15844 ; return 0; }
15846 if { (eval echo configure:15847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15847 rm -rf conftest*
15848 eval "ac_cv_func_$ac_func=yes"
15849 else
15850 echo "configure: failed program was:" >&5
15851 cat conftest.$ac_ext >&5
15852 rm -rf conftest*
15853 eval "ac_cv_func_$ac_func=no"
15855 rm -f conftest*
15858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15859 echo "$ac_t""yes" 1>&6
15860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15861 cat >> confdefs.h <<EOF
15862 #define $ac_tr_func 1
15865 else
15866 echo "$ac_t""no" 1>&6
15868 done
15875 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15876 echo "configure:15877: checking for finitef declaration" >&5
15877 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15878 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15879 echo $ac_n "(cached) $ac_c" 1>&6
15880 else
15883 ac_ext=C
15884 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15885 ac_cpp='$CXXCPP $CPPFLAGS'
15886 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15887 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15888 cross_compiling=$ac_cv_prog_cxx_cross
15890 cat > conftest.$ac_ext <<EOF
15891 #line 15892 "configure"
15892 #include "confdefs.h"
15893 #include <math.h>
15894 #ifdef HAVE_IEEEFP_H
15895 #include <ieeefp.h>
15896 #endif
15898 int main() {
15899 finitef(0);
15900 ; return 0; }
15902 if { (eval echo configure:15903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15903 rm -rf conftest*
15904 glibcpp_cv_func_finitef_use=yes
15905 else
15906 echo "configure: failed program was:" >&5
15907 cat conftest.$ac_ext >&5
15908 rm -rf conftest*
15909 glibcpp_cv_func_finitef_use=no
15911 rm -f conftest*
15912 ac_ext=c
15913 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15914 ac_cpp='$CPP $CPPFLAGS'
15915 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15916 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15917 cross_compiling=$ac_cv_prog_cc_cross
15923 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15925 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15926 for ac_func in finitef
15928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15929 echo "configure:15930: checking for $ac_func" >&5
15930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15931 echo $ac_n "(cached) $ac_c" 1>&6
15932 else
15933 cat > conftest.$ac_ext <<EOF
15934 #line 15935 "configure"
15935 #include "confdefs.h"
15936 /* System header to define __stub macros and hopefully few prototypes,
15937 which can conflict with char $ac_func(); below. */
15938 #include <assert.h>
15939 /* Override any gcc2 internal prototype to avoid an error. */
15940 /* We use char because int might match the return type of a gcc2
15941 builtin and then its argument prototype would still apply. */
15942 char $ac_func();
15944 int main() {
15946 /* The GNU C library defines this for functions which it implements
15947 to always fail with ENOSYS. Some functions are actually named
15948 something starting with __ and the normal name is an alias. */
15949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15950 choke me
15951 #else
15952 $ac_func();
15953 #endif
15955 ; return 0; }
15957 if { (eval echo configure:15958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15958 rm -rf conftest*
15959 eval "ac_cv_func_$ac_func=yes"
15960 else
15961 echo "configure: failed program was:" >&5
15962 cat conftest.$ac_ext >&5
15963 rm -rf conftest*
15964 eval "ac_cv_func_$ac_func=no"
15966 rm -f conftest*
15969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15970 echo "$ac_t""yes" 1>&6
15971 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15972 cat >> confdefs.h <<EOF
15973 #define $ac_tr_func 1
15976 else
15977 echo "$ac_t""no" 1>&6
15979 done
15981 else
15983 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15984 echo "configure:15985: checking for _finitef declaration" >&5
15985 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
15986 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
15987 echo $ac_n "(cached) $ac_c" 1>&6
15988 else
15991 ac_ext=C
15992 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15993 ac_cpp='$CXXCPP $CPPFLAGS'
15994 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15995 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15996 cross_compiling=$ac_cv_prog_cxx_cross
15998 cat > conftest.$ac_ext <<EOF
15999 #line 16000 "configure"
16000 #include "confdefs.h"
16001 #include <math.h>
16002 #ifdef HAVE_IEEEFP_H
16003 #include <ieeefp.h>
16004 #endif
16006 int main() {
16007 _finitef(0);
16008 ; return 0; }
16010 if { (eval echo configure:16011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16011 rm -rf conftest*
16012 glibcpp_cv_func__finitef_use=yes
16013 else
16014 echo "configure: failed program was:" >&5
16015 cat conftest.$ac_ext >&5
16016 rm -rf conftest*
16017 glibcpp_cv_func__finitef_use=no
16019 rm -f conftest*
16020 ac_ext=c
16021 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16022 ac_cpp='$CPP $CPPFLAGS'
16023 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16024 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16025 cross_compiling=$ac_cv_prog_cc_cross
16031 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16033 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16034 for ac_func in _finitef
16036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16037 echo "configure:16038: checking for $ac_func" >&5
16038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16039 echo $ac_n "(cached) $ac_c" 1>&6
16040 else
16041 cat > conftest.$ac_ext <<EOF
16042 #line 16043 "configure"
16043 #include "confdefs.h"
16044 /* System header to define __stub macros and hopefully few prototypes,
16045 which can conflict with char $ac_func(); below. */
16046 #include <assert.h>
16047 /* Override any gcc2 internal prototype to avoid an error. */
16048 /* We use char because int might match the return type of a gcc2
16049 builtin and then its argument prototype would still apply. */
16050 char $ac_func();
16052 int main() {
16054 /* The GNU C library defines this for functions which it implements
16055 to always fail with ENOSYS. Some functions are actually named
16056 something starting with __ and the normal name is an alias. */
16057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16058 choke me
16059 #else
16060 $ac_func();
16061 #endif
16063 ; return 0; }
16065 if { (eval echo configure:16066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16066 rm -rf conftest*
16067 eval "ac_cv_func_$ac_func=yes"
16068 else
16069 echo "configure: failed program was:" >&5
16070 cat conftest.$ac_ext >&5
16071 rm -rf conftest*
16072 eval "ac_cv_func_$ac_func=no"
16074 rm -f conftest*
16077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16078 echo "$ac_t""yes" 1>&6
16079 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16080 cat >> confdefs.h <<EOF
16081 #define $ac_tr_func 1
16084 else
16085 echo "$ac_t""no" 1>&6
16087 done
16094 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16095 echo "configure:16096: checking for long double trig functions" >&5
16096 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16097 echo $ac_n "(cached) $ac_c" 1>&6
16098 else
16101 ac_ext=C
16102 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16103 ac_cpp='$CXXCPP $CPPFLAGS'
16104 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16105 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16106 cross_compiling=$ac_cv_prog_cxx_cross
16108 cat > conftest.$ac_ext <<EOF
16109 #line 16110 "configure"
16110 #include "confdefs.h"
16111 #include <math.h>
16112 int main() {
16113 `for x in acosl asinl atanl \
16114 cosl sinl tanl \
16115 coshl sinhl tanhl; do echo "$x (0);"; done`
16116 ; return 0; }
16118 if { (eval echo configure:16119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16119 rm -rf conftest*
16120 glibcpp_cv_func_long_double_trig_use=yes
16121 else
16122 echo "configure: failed program was:" >&5
16123 cat conftest.$ac_ext >&5
16124 rm -rf conftest*
16125 glibcpp_cv_func_long_double_trig_use=no
16127 rm -f conftest*
16128 ac_ext=c
16129 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16130 ac_cpp='$CPP $CPPFLAGS'
16131 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16132 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16133 cross_compiling=$ac_cv_prog_cc_cross
16137 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16138 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16139 for ac_func in acosl asinl atanl \
16140 cosl sinl tanl \
16141 coshl sinhl tanhl
16143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16144 echo "configure:16145: checking for $ac_func" >&5
16145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16146 echo $ac_n "(cached) $ac_c" 1>&6
16147 else
16148 cat > conftest.$ac_ext <<EOF
16149 #line 16150 "configure"
16150 #include "confdefs.h"
16151 /* System header to define __stub macros and hopefully few prototypes,
16152 which can conflict with char $ac_func(); below. */
16153 #include <assert.h>
16154 /* Override any gcc2 internal prototype to avoid an error. */
16155 /* We use char because int might match the return type of a gcc2
16156 builtin and then its argument prototype would still apply. */
16157 char $ac_func();
16159 int main() {
16161 /* The GNU C library defines this for functions which it implements
16162 to always fail with ENOSYS. Some functions are actually named
16163 something starting with __ and the normal name is an alias. */
16164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16165 choke me
16166 #else
16167 $ac_func();
16168 #endif
16170 ; return 0; }
16172 if { (eval echo configure:16173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16173 rm -rf conftest*
16174 eval "ac_cv_func_$ac_func=yes"
16175 else
16176 echo "configure: failed program was:" >&5
16177 cat conftest.$ac_ext >&5
16178 rm -rf conftest*
16179 eval "ac_cv_func_$ac_func=no"
16181 rm -f conftest*
16184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16185 echo "$ac_t""yes" 1>&6
16186 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16187 cat >> confdefs.h <<EOF
16188 #define $ac_tr_func 1
16191 else
16192 echo "$ac_t""no" 1>&6
16194 done
16199 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16200 echo "configure:16201: checking for long double round functions" >&5
16201 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16202 echo $ac_n "(cached) $ac_c" 1>&6
16203 else
16206 ac_ext=C
16207 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16208 ac_cpp='$CXXCPP $CPPFLAGS'
16209 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16210 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16211 cross_compiling=$ac_cv_prog_cxx_cross
16213 cat > conftest.$ac_ext <<EOF
16214 #line 16215 "configure"
16215 #include "confdefs.h"
16216 #include <math.h>
16217 int main() {
16218 `for x in ceill floorl; do echo "$x (0);"; done`
16219 ; return 0; }
16221 if { (eval echo configure:16222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16222 rm -rf conftest*
16223 glibcpp_cv_func_long_double_round_use=yes
16224 else
16225 echo "configure: failed program was:" >&5
16226 cat conftest.$ac_ext >&5
16227 rm -rf conftest*
16228 glibcpp_cv_func_long_double_round_use=no
16230 rm -f conftest*
16231 ac_ext=c
16232 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16233 ac_cpp='$CPP $CPPFLAGS'
16234 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16235 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16236 cross_compiling=$ac_cv_prog_cc_cross
16240 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16241 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16242 for ac_func in ceill floorl
16244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16245 echo "configure:16246: checking for $ac_func" >&5
16246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16247 echo $ac_n "(cached) $ac_c" 1>&6
16248 else
16249 cat > conftest.$ac_ext <<EOF
16250 #line 16251 "configure"
16251 #include "confdefs.h"
16252 /* System header to define __stub macros and hopefully few prototypes,
16253 which can conflict with char $ac_func(); below. */
16254 #include <assert.h>
16255 /* Override any gcc2 internal prototype to avoid an error. */
16256 /* We use char because int might match the return type of a gcc2
16257 builtin and then its argument prototype would still apply. */
16258 char $ac_func();
16260 int main() {
16262 /* The GNU C library defines this for functions which it implements
16263 to always fail with ENOSYS. Some functions are actually named
16264 something starting with __ and the normal name is an alias. */
16265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16266 choke me
16267 #else
16268 $ac_func();
16269 #endif
16271 ; return 0; }
16273 if { (eval echo configure:16274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16274 rm -rf conftest*
16275 eval "ac_cv_func_$ac_func=yes"
16276 else
16277 echo "configure: failed program was:" >&5
16278 cat conftest.$ac_ext >&5
16279 rm -rf conftest*
16280 eval "ac_cv_func_$ac_func=no"
16282 rm -f conftest*
16285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16286 echo "$ac_t""yes" 1>&6
16287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16288 cat >> confdefs.h <<EOF
16289 #define $ac_tr_func 1
16292 else
16293 echo "$ac_t""no" 1>&6
16295 done
16301 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16302 echo "configure:16303: checking for isnanl declaration" >&5
16303 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16304 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16305 echo $ac_n "(cached) $ac_c" 1>&6
16306 else
16309 ac_ext=C
16310 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16311 ac_cpp='$CXXCPP $CPPFLAGS'
16312 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16313 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16314 cross_compiling=$ac_cv_prog_cxx_cross
16316 cat > conftest.$ac_ext <<EOF
16317 #line 16318 "configure"
16318 #include "confdefs.h"
16319 #include <math.h>
16320 #ifdef HAVE_IEEEFP_H
16321 #include <ieeefp.h>
16322 #endif
16324 int main() {
16325 isnanl(0);
16326 ; return 0; }
16328 if { (eval echo configure:16329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16329 rm -rf conftest*
16330 glibcpp_cv_func_isnanl_use=yes
16331 else
16332 echo "configure: failed program was:" >&5
16333 cat conftest.$ac_ext >&5
16334 rm -rf conftest*
16335 glibcpp_cv_func_isnanl_use=no
16337 rm -f conftest*
16338 ac_ext=c
16339 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16340 ac_cpp='$CPP $CPPFLAGS'
16341 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16342 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16343 cross_compiling=$ac_cv_prog_cc_cross
16349 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16351 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16352 for ac_func in isnanl
16354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16355 echo "configure:16356: checking for $ac_func" >&5
16356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16357 echo $ac_n "(cached) $ac_c" 1>&6
16358 else
16359 cat > conftest.$ac_ext <<EOF
16360 #line 16361 "configure"
16361 #include "confdefs.h"
16362 /* System header to define __stub macros and hopefully few prototypes,
16363 which can conflict with char $ac_func(); below. */
16364 #include <assert.h>
16365 /* Override any gcc2 internal prototype to avoid an error. */
16366 /* We use char because int might match the return type of a gcc2
16367 builtin and then its argument prototype would still apply. */
16368 char $ac_func();
16370 int main() {
16372 /* The GNU C library defines this for functions which it implements
16373 to always fail with ENOSYS. Some functions are actually named
16374 something starting with __ and the normal name is an alias. */
16375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16376 choke me
16377 #else
16378 $ac_func();
16379 #endif
16381 ; return 0; }
16383 if { (eval echo configure:16384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16384 rm -rf conftest*
16385 eval "ac_cv_func_$ac_func=yes"
16386 else
16387 echo "configure: failed program was:" >&5
16388 cat conftest.$ac_ext >&5
16389 rm -rf conftest*
16390 eval "ac_cv_func_$ac_func=no"
16392 rm -f conftest*
16395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16396 echo "$ac_t""yes" 1>&6
16397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16398 cat >> confdefs.h <<EOF
16399 #define $ac_tr_func 1
16402 else
16403 echo "$ac_t""no" 1>&6
16405 done
16407 else
16409 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16410 echo "configure:16411: checking for _isnanl declaration" >&5
16411 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16412 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16413 echo $ac_n "(cached) $ac_c" 1>&6
16414 else
16417 ac_ext=C
16418 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16419 ac_cpp='$CXXCPP $CPPFLAGS'
16420 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16421 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16422 cross_compiling=$ac_cv_prog_cxx_cross
16424 cat > conftest.$ac_ext <<EOF
16425 #line 16426 "configure"
16426 #include "confdefs.h"
16427 #include <math.h>
16428 #ifdef HAVE_IEEEFP_H
16429 #include <ieeefp.h>
16430 #endif
16432 int main() {
16433 _isnanl(0);
16434 ; return 0; }
16436 if { (eval echo configure:16437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16437 rm -rf conftest*
16438 glibcpp_cv_func__isnanl_use=yes
16439 else
16440 echo "configure: failed program was:" >&5
16441 cat conftest.$ac_ext >&5
16442 rm -rf conftest*
16443 glibcpp_cv_func__isnanl_use=no
16445 rm -f conftest*
16446 ac_ext=c
16447 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16448 ac_cpp='$CPP $CPPFLAGS'
16449 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16450 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16451 cross_compiling=$ac_cv_prog_cc_cross
16457 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16459 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16460 for ac_func in _isnanl
16462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16463 echo "configure:16464: checking for $ac_func" >&5
16464 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16465 echo $ac_n "(cached) $ac_c" 1>&6
16466 else
16467 cat > conftest.$ac_ext <<EOF
16468 #line 16469 "configure"
16469 #include "confdefs.h"
16470 /* System header to define __stub macros and hopefully few prototypes,
16471 which can conflict with char $ac_func(); below. */
16472 #include <assert.h>
16473 /* Override any gcc2 internal prototype to avoid an error. */
16474 /* We use char because int might match the return type of a gcc2
16475 builtin and then its argument prototype would still apply. */
16476 char $ac_func();
16478 int main() {
16480 /* The GNU C library defines this for functions which it implements
16481 to always fail with ENOSYS. Some functions are actually named
16482 something starting with __ and the normal name is an alias. */
16483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16484 choke me
16485 #else
16486 $ac_func();
16487 #endif
16489 ; return 0; }
16491 if { (eval echo configure:16492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16492 rm -rf conftest*
16493 eval "ac_cv_func_$ac_func=yes"
16494 else
16495 echo "configure: failed program was:" >&5
16496 cat conftest.$ac_ext >&5
16497 rm -rf conftest*
16498 eval "ac_cv_func_$ac_func=no"
16500 rm -f conftest*
16503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16504 echo "$ac_t""yes" 1>&6
16505 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16506 cat >> confdefs.h <<EOF
16507 #define $ac_tr_func 1
16510 else
16511 echo "$ac_t""no" 1>&6
16513 done
16520 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16521 echo "configure:16522: checking for isinfl declaration" >&5
16522 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16523 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16524 echo $ac_n "(cached) $ac_c" 1>&6
16525 else
16528 ac_ext=C
16529 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16530 ac_cpp='$CXXCPP $CPPFLAGS'
16531 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16532 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16533 cross_compiling=$ac_cv_prog_cxx_cross
16535 cat > conftest.$ac_ext <<EOF
16536 #line 16537 "configure"
16537 #include "confdefs.h"
16538 #include <math.h>
16539 #ifdef HAVE_IEEEFP_H
16540 #include <ieeefp.h>
16541 #endif
16543 int main() {
16544 isinfl(0);
16545 ; return 0; }
16547 if { (eval echo configure:16548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16548 rm -rf conftest*
16549 glibcpp_cv_func_isinfl_use=yes
16550 else
16551 echo "configure: failed program was:" >&5
16552 cat conftest.$ac_ext >&5
16553 rm -rf conftest*
16554 glibcpp_cv_func_isinfl_use=no
16556 rm -f conftest*
16557 ac_ext=c
16558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16559 ac_cpp='$CPP $CPPFLAGS'
16560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16562 cross_compiling=$ac_cv_prog_cc_cross
16568 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16570 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16571 for ac_func in isinfl
16573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16574 echo "configure:16575: checking for $ac_func" >&5
16575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16576 echo $ac_n "(cached) $ac_c" 1>&6
16577 else
16578 cat > conftest.$ac_ext <<EOF
16579 #line 16580 "configure"
16580 #include "confdefs.h"
16581 /* System header to define __stub macros and hopefully few prototypes,
16582 which can conflict with char $ac_func(); below. */
16583 #include <assert.h>
16584 /* Override any gcc2 internal prototype to avoid an error. */
16585 /* We use char because int might match the return type of a gcc2
16586 builtin and then its argument prototype would still apply. */
16587 char $ac_func();
16589 int main() {
16591 /* The GNU C library defines this for functions which it implements
16592 to always fail with ENOSYS. Some functions are actually named
16593 something starting with __ and the normal name is an alias. */
16594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16595 choke me
16596 #else
16597 $ac_func();
16598 #endif
16600 ; return 0; }
16602 if { (eval echo configure:16603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16603 rm -rf conftest*
16604 eval "ac_cv_func_$ac_func=yes"
16605 else
16606 echo "configure: failed program was:" >&5
16607 cat conftest.$ac_ext >&5
16608 rm -rf conftest*
16609 eval "ac_cv_func_$ac_func=no"
16611 rm -f conftest*
16614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16615 echo "$ac_t""yes" 1>&6
16616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16617 cat >> confdefs.h <<EOF
16618 #define $ac_tr_func 1
16621 else
16622 echo "$ac_t""no" 1>&6
16624 done
16626 else
16628 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16629 echo "configure:16630: checking for _isinfl declaration" >&5
16630 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16631 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16632 echo $ac_n "(cached) $ac_c" 1>&6
16633 else
16636 ac_ext=C
16637 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16638 ac_cpp='$CXXCPP $CPPFLAGS'
16639 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16640 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16641 cross_compiling=$ac_cv_prog_cxx_cross
16643 cat > conftest.$ac_ext <<EOF
16644 #line 16645 "configure"
16645 #include "confdefs.h"
16646 #include <math.h>
16647 #ifdef HAVE_IEEEFP_H
16648 #include <ieeefp.h>
16649 #endif
16651 int main() {
16652 _isinfl(0);
16653 ; return 0; }
16655 if { (eval echo configure:16656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16656 rm -rf conftest*
16657 glibcpp_cv_func__isinfl_use=yes
16658 else
16659 echo "configure: failed program was:" >&5
16660 cat conftest.$ac_ext >&5
16661 rm -rf conftest*
16662 glibcpp_cv_func__isinfl_use=no
16664 rm -f conftest*
16665 ac_ext=c
16666 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16667 ac_cpp='$CPP $CPPFLAGS'
16668 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16669 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16670 cross_compiling=$ac_cv_prog_cc_cross
16676 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16678 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16679 for ac_func in _isinfl
16681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16682 echo "configure:16683: checking for $ac_func" >&5
16683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16684 echo $ac_n "(cached) $ac_c" 1>&6
16685 else
16686 cat > conftest.$ac_ext <<EOF
16687 #line 16688 "configure"
16688 #include "confdefs.h"
16689 /* System header to define __stub macros and hopefully few prototypes,
16690 which can conflict with char $ac_func(); below. */
16691 #include <assert.h>
16692 /* Override any gcc2 internal prototype to avoid an error. */
16693 /* We use char because int might match the return type of a gcc2
16694 builtin and then its argument prototype would still apply. */
16695 char $ac_func();
16697 int main() {
16699 /* The GNU C library defines this for functions which it implements
16700 to always fail with ENOSYS. Some functions are actually named
16701 something starting with __ and the normal name is an alias. */
16702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16703 choke me
16704 #else
16705 $ac_func();
16706 #endif
16708 ; return 0; }
16710 if { (eval echo configure:16711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16711 rm -rf conftest*
16712 eval "ac_cv_func_$ac_func=yes"
16713 else
16714 echo "configure: failed program was:" >&5
16715 cat conftest.$ac_ext >&5
16716 rm -rf conftest*
16717 eval "ac_cv_func_$ac_func=no"
16719 rm -f conftest*
16722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16723 echo "$ac_t""yes" 1>&6
16724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16725 cat >> confdefs.h <<EOF
16726 #define $ac_tr_func 1
16729 else
16730 echo "$ac_t""no" 1>&6
16732 done
16739 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16740 echo "configure:16741: checking for copysignl declaration" >&5
16741 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16742 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16743 echo $ac_n "(cached) $ac_c" 1>&6
16744 else
16747 ac_ext=C
16748 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16749 ac_cpp='$CXXCPP $CPPFLAGS'
16750 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16751 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16752 cross_compiling=$ac_cv_prog_cxx_cross
16754 cat > conftest.$ac_ext <<EOF
16755 #line 16756 "configure"
16756 #include "confdefs.h"
16757 #include <math.h>
16758 int main() {
16759 copysignl(0, 0);
16760 ; return 0; }
16762 if { (eval echo configure:16763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16763 rm -rf conftest*
16764 glibcpp_cv_func_copysignl_use=yes
16765 else
16766 echo "configure: failed program was:" >&5
16767 cat conftest.$ac_ext >&5
16768 rm -rf conftest*
16769 glibcpp_cv_func_copysignl_use=no
16771 rm -f conftest*
16772 ac_ext=c
16773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16774 ac_cpp='$CPP $CPPFLAGS'
16775 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16776 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16777 cross_compiling=$ac_cv_prog_cc_cross
16783 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16785 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16786 for ac_func in copysignl
16788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16789 echo "configure:16790: checking for $ac_func" >&5
16790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16791 echo $ac_n "(cached) $ac_c" 1>&6
16792 else
16793 cat > conftest.$ac_ext <<EOF
16794 #line 16795 "configure"
16795 #include "confdefs.h"
16796 /* System header to define __stub macros and hopefully few prototypes,
16797 which can conflict with char $ac_func(); below. */
16798 #include <assert.h>
16799 /* Override any gcc2 internal prototype to avoid an error. */
16800 /* We use char because int might match the return type of a gcc2
16801 builtin and then its argument prototype would still apply. */
16802 char $ac_func();
16804 int main() {
16806 /* The GNU C library defines this for functions which it implements
16807 to always fail with ENOSYS. Some functions are actually named
16808 something starting with __ and the normal name is an alias. */
16809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16810 choke me
16811 #else
16812 $ac_func();
16813 #endif
16815 ; return 0; }
16817 if { (eval echo configure:16818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16818 rm -rf conftest*
16819 eval "ac_cv_func_$ac_func=yes"
16820 else
16821 echo "configure: failed program was:" >&5
16822 cat conftest.$ac_ext >&5
16823 rm -rf conftest*
16824 eval "ac_cv_func_$ac_func=no"
16826 rm -f conftest*
16829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16830 echo "$ac_t""yes" 1>&6
16831 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16832 cat >> confdefs.h <<EOF
16833 #define $ac_tr_func 1
16836 else
16837 echo "$ac_t""no" 1>&6
16839 done
16841 else
16843 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16844 echo "configure:16845: checking for _copysignl declaration" >&5
16845 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16846 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16847 echo $ac_n "(cached) $ac_c" 1>&6
16848 else
16851 ac_ext=C
16852 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16853 ac_cpp='$CXXCPP $CPPFLAGS'
16854 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16855 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16856 cross_compiling=$ac_cv_prog_cxx_cross
16858 cat > conftest.$ac_ext <<EOF
16859 #line 16860 "configure"
16860 #include "confdefs.h"
16861 #include <math.h>
16862 int main() {
16863 _copysignl(0, 0);
16864 ; return 0; }
16866 if { (eval echo configure:16867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16867 rm -rf conftest*
16868 glibcpp_cv_func__copysignl_use=yes
16869 else
16870 echo "configure: failed program was:" >&5
16871 cat conftest.$ac_ext >&5
16872 rm -rf conftest*
16873 glibcpp_cv_func__copysignl_use=no
16875 rm -f conftest*
16876 ac_ext=c
16877 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16878 ac_cpp='$CPP $CPPFLAGS'
16879 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16880 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16881 cross_compiling=$ac_cv_prog_cc_cross
16887 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16889 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16890 for ac_func in _copysignl
16892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16893 echo "configure:16894: checking for $ac_func" >&5
16894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16895 echo $ac_n "(cached) $ac_c" 1>&6
16896 else
16897 cat > conftest.$ac_ext <<EOF
16898 #line 16899 "configure"
16899 #include "confdefs.h"
16900 /* System header to define __stub macros and hopefully few prototypes,
16901 which can conflict with char $ac_func(); below. */
16902 #include <assert.h>
16903 /* Override any gcc2 internal prototype to avoid an error. */
16904 /* We use char because int might match the return type of a gcc2
16905 builtin and then its argument prototype would still apply. */
16906 char $ac_func();
16908 int main() {
16910 /* The GNU C library defines this for functions which it implements
16911 to always fail with ENOSYS. Some functions are actually named
16912 something starting with __ and the normal name is an alias. */
16913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16914 choke me
16915 #else
16916 $ac_func();
16917 #endif
16919 ; return 0; }
16921 if { (eval echo configure:16922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16922 rm -rf conftest*
16923 eval "ac_cv_func_$ac_func=yes"
16924 else
16925 echo "configure: failed program was:" >&5
16926 cat conftest.$ac_ext >&5
16927 rm -rf conftest*
16928 eval "ac_cv_func_$ac_func=no"
16930 rm -f conftest*
16933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16934 echo "$ac_t""yes" 1>&6
16935 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16936 cat >> confdefs.h <<EOF
16937 #define $ac_tr_func 1
16940 else
16941 echo "$ac_t""no" 1>&6
16943 done
16950 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16951 echo "configure:16952: checking for atan2l declaration" >&5
16952 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16953 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16954 echo $ac_n "(cached) $ac_c" 1>&6
16955 else
16958 ac_ext=C
16959 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16960 ac_cpp='$CXXCPP $CPPFLAGS'
16961 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16962 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16963 cross_compiling=$ac_cv_prog_cxx_cross
16965 cat > conftest.$ac_ext <<EOF
16966 #line 16967 "configure"
16967 #include "confdefs.h"
16968 #include <math.h>
16969 int main() {
16970 atan2l(0, 0);
16971 ; return 0; }
16973 if { (eval echo configure:16974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16974 rm -rf conftest*
16975 glibcpp_cv_func_atan2l_use=yes
16976 else
16977 echo "configure: failed program was:" >&5
16978 cat conftest.$ac_ext >&5
16979 rm -rf conftest*
16980 glibcpp_cv_func_atan2l_use=no
16982 rm -f conftest*
16983 ac_ext=c
16984 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16985 ac_cpp='$CPP $CPPFLAGS'
16986 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16987 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16988 cross_compiling=$ac_cv_prog_cc_cross
16994 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
16996 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
16997 for ac_func in atan2l
16999 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17000 echo "configure:17001: checking for $ac_func" >&5
17001 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17002 echo $ac_n "(cached) $ac_c" 1>&6
17003 else
17004 cat > conftest.$ac_ext <<EOF
17005 #line 17006 "configure"
17006 #include "confdefs.h"
17007 /* System header to define __stub macros and hopefully few prototypes,
17008 which can conflict with char $ac_func(); below. */
17009 #include <assert.h>
17010 /* Override any gcc2 internal prototype to avoid an error. */
17011 /* We use char because int might match the return type of a gcc2
17012 builtin and then its argument prototype would still apply. */
17013 char $ac_func();
17015 int main() {
17017 /* The GNU C library defines this for functions which it implements
17018 to always fail with ENOSYS. Some functions are actually named
17019 something starting with __ and the normal name is an alias. */
17020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17021 choke me
17022 #else
17023 $ac_func();
17024 #endif
17026 ; return 0; }
17028 if { (eval echo configure:17029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17029 rm -rf conftest*
17030 eval "ac_cv_func_$ac_func=yes"
17031 else
17032 echo "configure: failed program was:" >&5
17033 cat conftest.$ac_ext >&5
17034 rm -rf conftest*
17035 eval "ac_cv_func_$ac_func=no"
17037 rm -f conftest*
17040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17041 echo "$ac_t""yes" 1>&6
17042 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17043 cat >> confdefs.h <<EOF
17044 #define $ac_tr_func 1
17047 else
17048 echo "$ac_t""no" 1>&6
17050 done
17052 else
17054 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17055 echo "configure:17056: checking for _atan2l declaration" >&5
17056 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17057 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17058 echo $ac_n "(cached) $ac_c" 1>&6
17059 else
17062 ac_ext=C
17063 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17064 ac_cpp='$CXXCPP $CPPFLAGS'
17065 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17066 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17067 cross_compiling=$ac_cv_prog_cxx_cross
17069 cat > conftest.$ac_ext <<EOF
17070 #line 17071 "configure"
17071 #include "confdefs.h"
17072 #include <math.h>
17073 int main() {
17074 _atan2l(0, 0);
17075 ; return 0; }
17077 if { (eval echo configure:17078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17078 rm -rf conftest*
17079 glibcpp_cv_func__atan2l_use=yes
17080 else
17081 echo "configure: failed program was:" >&5
17082 cat conftest.$ac_ext >&5
17083 rm -rf conftest*
17084 glibcpp_cv_func__atan2l_use=no
17086 rm -f conftest*
17087 ac_ext=c
17088 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17089 ac_cpp='$CPP $CPPFLAGS'
17090 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17091 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17092 cross_compiling=$ac_cv_prog_cc_cross
17098 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17100 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17101 for ac_func in _atan2l
17103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17104 echo "configure:17105: checking for $ac_func" >&5
17105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17106 echo $ac_n "(cached) $ac_c" 1>&6
17107 else
17108 cat > conftest.$ac_ext <<EOF
17109 #line 17110 "configure"
17110 #include "confdefs.h"
17111 /* System header to define __stub macros and hopefully few prototypes,
17112 which can conflict with char $ac_func(); below. */
17113 #include <assert.h>
17114 /* Override any gcc2 internal prototype to avoid an error. */
17115 /* We use char because int might match the return type of a gcc2
17116 builtin and then its argument prototype would still apply. */
17117 char $ac_func();
17119 int main() {
17121 /* The GNU C library defines this for functions which it implements
17122 to always fail with ENOSYS. Some functions are actually named
17123 something starting with __ and the normal name is an alias. */
17124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17125 choke me
17126 #else
17127 $ac_func();
17128 #endif
17130 ; return 0; }
17132 if { (eval echo configure:17133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17133 rm -rf conftest*
17134 eval "ac_cv_func_$ac_func=yes"
17135 else
17136 echo "configure: failed program was:" >&5
17137 cat conftest.$ac_ext >&5
17138 rm -rf conftest*
17139 eval "ac_cv_func_$ac_func=no"
17141 rm -f conftest*
17144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17145 echo "$ac_t""yes" 1>&6
17146 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17147 cat >> confdefs.h <<EOF
17148 #define $ac_tr_func 1
17151 else
17152 echo "$ac_t""no" 1>&6
17154 done
17161 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17162 echo "configure:17163: checking for expl declaration" >&5
17163 if test x${glibcpp_cv_func_expl_use+set} != xset; then
17164 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17165 echo $ac_n "(cached) $ac_c" 1>&6
17166 else
17169 ac_ext=C
17170 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17171 ac_cpp='$CXXCPP $CPPFLAGS'
17172 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17173 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17174 cross_compiling=$ac_cv_prog_cxx_cross
17176 cat > conftest.$ac_ext <<EOF
17177 #line 17178 "configure"
17178 #include "confdefs.h"
17179 #include <math.h>
17180 #ifdef HAVE_IEEEFP_H
17181 #include <ieeefp.h>
17182 #endif
17184 int main() {
17185 expl(0);
17186 ; return 0; }
17188 if { (eval echo configure:17189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17189 rm -rf conftest*
17190 glibcpp_cv_func_expl_use=yes
17191 else
17192 echo "configure: failed program was:" >&5
17193 cat conftest.$ac_ext >&5
17194 rm -rf conftest*
17195 glibcpp_cv_func_expl_use=no
17197 rm -f conftest*
17198 ac_ext=c
17199 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17200 ac_cpp='$CPP $CPPFLAGS'
17201 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17202 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17203 cross_compiling=$ac_cv_prog_cc_cross
17209 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17211 if test x$glibcpp_cv_func_expl_use = x"yes"; then
17212 for ac_func in expl
17214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17215 echo "configure:17216: checking for $ac_func" >&5
17216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17217 echo $ac_n "(cached) $ac_c" 1>&6
17218 else
17219 cat > conftest.$ac_ext <<EOF
17220 #line 17221 "configure"
17221 #include "confdefs.h"
17222 /* System header to define __stub macros and hopefully few prototypes,
17223 which can conflict with char $ac_func(); below. */
17224 #include <assert.h>
17225 /* Override any gcc2 internal prototype to avoid an error. */
17226 /* We use char because int might match the return type of a gcc2
17227 builtin and then its argument prototype would still apply. */
17228 char $ac_func();
17230 int main() {
17232 /* The GNU C library defines this for functions which it implements
17233 to always fail with ENOSYS. Some functions are actually named
17234 something starting with __ and the normal name is an alias. */
17235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17236 choke me
17237 #else
17238 $ac_func();
17239 #endif
17241 ; return 0; }
17243 if { (eval echo configure:17244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17244 rm -rf conftest*
17245 eval "ac_cv_func_$ac_func=yes"
17246 else
17247 echo "configure: failed program was:" >&5
17248 cat conftest.$ac_ext >&5
17249 rm -rf conftest*
17250 eval "ac_cv_func_$ac_func=no"
17252 rm -f conftest*
17255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17256 echo "$ac_t""yes" 1>&6
17257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17258 cat >> confdefs.h <<EOF
17259 #define $ac_tr_func 1
17262 else
17263 echo "$ac_t""no" 1>&6
17265 done
17267 else
17269 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17270 echo "configure:17271: checking for _expl declaration" >&5
17271 if test x${glibcpp_cv_func__expl_use+set} != xset; then
17272 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17273 echo $ac_n "(cached) $ac_c" 1>&6
17274 else
17277 ac_ext=C
17278 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17279 ac_cpp='$CXXCPP $CPPFLAGS'
17280 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17281 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17282 cross_compiling=$ac_cv_prog_cxx_cross
17284 cat > conftest.$ac_ext <<EOF
17285 #line 17286 "configure"
17286 #include "confdefs.h"
17287 #include <math.h>
17288 #ifdef HAVE_IEEEFP_H
17289 #include <ieeefp.h>
17290 #endif
17292 int main() {
17293 _expl(0);
17294 ; return 0; }
17296 if { (eval echo configure:17297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17297 rm -rf conftest*
17298 glibcpp_cv_func__expl_use=yes
17299 else
17300 echo "configure: failed program was:" >&5
17301 cat conftest.$ac_ext >&5
17302 rm -rf conftest*
17303 glibcpp_cv_func__expl_use=no
17305 rm -f conftest*
17306 ac_ext=c
17307 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17308 ac_cpp='$CPP $CPPFLAGS'
17309 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17310 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17311 cross_compiling=$ac_cv_prog_cc_cross
17317 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17319 if test x$glibcpp_cv_func__expl_use = x"yes"; then
17320 for ac_func in _expl
17322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17323 echo "configure:17324: checking for $ac_func" >&5
17324 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17325 echo $ac_n "(cached) $ac_c" 1>&6
17326 else
17327 cat > conftest.$ac_ext <<EOF
17328 #line 17329 "configure"
17329 #include "confdefs.h"
17330 /* System header to define __stub macros and hopefully few prototypes,
17331 which can conflict with char $ac_func(); below. */
17332 #include <assert.h>
17333 /* Override any gcc2 internal prototype to avoid an error. */
17334 /* We use char because int might match the return type of a gcc2
17335 builtin and then its argument prototype would still apply. */
17336 char $ac_func();
17338 int main() {
17340 /* The GNU C library defines this for functions which it implements
17341 to always fail with ENOSYS. Some functions are actually named
17342 something starting with __ and the normal name is an alias. */
17343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17344 choke me
17345 #else
17346 $ac_func();
17347 #endif
17349 ; return 0; }
17351 if { (eval echo configure:17352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17352 rm -rf conftest*
17353 eval "ac_cv_func_$ac_func=yes"
17354 else
17355 echo "configure: failed program was:" >&5
17356 cat conftest.$ac_ext >&5
17357 rm -rf conftest*
17358 eval "ac_cv_func_$ac_func=no"
17360 rm -f conftest*
17363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17364 echo "$ac_t""yes" 1>&6
17365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17366 cat >> confdefs.h <<EOF
17367 #define $ac_tr_func 1
17370 else
17371 echo "$ac_t""no" 1>&6
17373 done
17380 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17381 echo "configure:17382: checking for fabsl declaration" >&5
17382 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17383 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17384 echo $ac_n "(cached) $ac_c" 1>&6
17385 else
17388 ac_ext=C
17389 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17390 ac_cpp='$CXXCPP $CPPFLAGS'
17391 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17392 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17393 cross_compiling=$ac_cv_prog_cxx_cross
17395 cat > conftest.$ac_ext <<EOF
17396 #line 17397 "configure"
17397 #include "confdefs.h"
17398 #include <math.h>
17399 #ifdef HAVE_IEEEFP_H
17400 #include <ieeefp.h>
17401 #endif
17403 int main() {
17404 fabsl(0);
17405 ; return 0; }
17407 if { (eval echo configure:17408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17408 rm -rf conftest*
17409 glibcpp_cv_func_fabsl_use=yes
17410 else
17411 echo "configure: failed program was:" >&5
17412 cat conftest.$ac_ext >&5
17413 rm -rf conftest*
17414 glibcpp_cv_func_fabsl_use=no
17416 rm -f conftest*
17417 ac_ext=c
17418 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17419 ac_cpp='$CPP $CPPFLAGS'
17420 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17421 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17422 cross_compiling=$ac_cv_prog_cc_cross
17428 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17430 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17431 for ac_func in fabsl
17433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17434 echo "configure:17435: checking for $ac_func" >&5
17435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17436 echo $ac_n "(cached) $ac_c" 1>&6
17437 else
17438 cat > conftest.$ac_ext <<EOF
17439 #line 17440 "configure"
17440 #include "confdefs.h"
17441 /* System header to define __stub macros and hopefully few prototypes,
17442 which can conflict with char $ac_func(); below. */
17443 #include <assert.h>
17444 /* Override any gcc2 internal prototype to avoid an error. */
17445 /* We use char because int might match the return type of a gcc2
17446 builtin and then its argument prototype would still apply. */
17447 char $ac_func();
17449 int main() {
17451 /* The GNU C library defines this for functions which it implements
17452 to always fail with ENOSYS. Some functions are actually named
17453 something starting with __ and the normal name is an alias. */
17454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17455 choke me
17456 #else
17457 $ac_func();
17458 #endif
17460 ; return 0; }
17462 if { (eval echo configure:17463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17463 rm -rf conftest*
17464 eval "ac_cv_func_$ac_func=yes"
17465 else
17466 echo "configure: failed program was:" >&5
17467 cat conftest.$ac_ext >&5
17468 rm -rf conftest*
17469 eval "ac_cv_func_$ac_func=no"
17471 rm -f conftest*
17474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17475 echo "$ac_t""yes" 1>&6
17476 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17477 cat >> confdefs.h <<EOF
17478 #define $ac_tr_func 1
17481 else
17482 echo "$ac_t""no" 1>&6
17484 done
17486 else
17488 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17489 echo "configure:17490: checking for _fabsl declaration" >&5
17490 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17491 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17492 echo $ac_n "(cached) $ac_c" 1>&6
17493 else
17496 ac_ext=C
17497 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17498 ac_cpp='$CXXCPP $CPPFLAGS'
17499 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17500 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17501 cross_compiling=$ac_cv_prog_cxx_cross
17503 cat > conftest.$ac_ext <<EOF
17504 #line 17505 "configure"
17505 #include "confdefs.h"
17506 #include <math.h>
17507 #ifdef HAVE_IEEEFP_H
17508 #include <ieeefp.h>
17509 #endif
17511 int main() {
17512 _fabsl(0);
17513 ; return 0; }
17515 if { (eval echo configure:17516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17516 rm -rf conftest*
17517 glibcpp_cv_func__fabsl_use=yes
17518 else
17519 echo "configure: failed program was:" >&5
17520 cat conftest.$ac_ext >&5
17521 rm -rf conftest*
17522 glibcpp_cv_func__fabsl_use=no
17524 rm -f conftest*
17525 ac_ext=c
17526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17527 ac_cpp='$CPP $CPPFLAGS'
17528 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17529 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17530 cross_compiling=$ac_cv_prog_cc_cross
17536 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17538 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17539 for ac_func in _fabsl
17541 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17542 echo "configure:17543: checking for $ac_func" >&5
17543 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17544 echo $ac_n "(cached) $ac_c" 1>&6
17545 else
17546 cat > conftest.$ac_ext <<EOF
17547 #line 17548 "configure"
17548 #include "confdefs.h"
17549 /* System header to define __stub macros and hopefully few prototypes,
17550 which can conflict with char $ac_func(); below. */
17551 #include <assert.h>
17552 /* Override any gcc2 internal prototype to avoid an error. */
17553 /* We use char because int might match the return type of a gcc2
17554 builtin and then its argument prototype would still apply. */
17555 char $ac_func();
17557 int main() {
17559 /* The GNU C library defines this for functions which it implements
17560 to always fail with ENOSYS. Some functions are actually named
17561 something starting with __ and the normal name is an alias. */
17562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17563 choke me
17564 #else
17565 $ac_func();
17566 #endif
17568 ; return 0; }
17570 if { (eval echo configure:17571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17571 rm -rf conftest*
17572 eval "ac_cv_func_$ac_func=yes"
17573 else
17574 echo "configure: failed program was:" >&5
17575 cat conftest.$ac_ext >&5
17576 rm -rf conftest*
17577 eval "ac_cv_func_$ac_func=no"
17579 rm -f conftest*
17582 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17583 echo "$ac_t""yes" 1>&6
17584 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17585 cat >> confdefs.h <<EOF
17586 #define $ac_tr_func 1
17589 else
17590 echo "$ac_t""no" 1>&6
17592 done
17599 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17600 echo "configure:17601: checking for fmodl declaration" >&5
17601 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17602 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17603 echo $ac_n "(cached) $ac_c" 1>&6
17604 else
17607 ac_ext=C
17608 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17609 ac_cpp='$CXXCPP $CPPFLAGS'
17610 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17611 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17612 cross_compiling=$ac_cv_prog_cxx_cross
17614 cat > conftest.$ac_ext <<EOF
17615 #line 17616 "configure"
17616 #include "confdefs.h"
17617 #include <math.h>
17618 int main() {
17619 fmodl(0, 0);
17620 ; return 0; }
17622 if { (eval echo configure:17623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17623 rm -rf conftest*
17624 glibcpp_cv_func_fmodl_use=yes
17625 else
17626 echo "configure: failed program was:" >&5
17627 cat conftest.$ac_ext >&5
17628 rm -rf conftest*
17629 glibcpp_cv_func_fmodl_use=no
17631 rm -f conftest*
17632 ac_ext=c
17633 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17634 ac_cpp='$CPP $CPPFLAGS'
17635 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17636 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17637 cross_compiling=$ac_cv_prog_cc_cross
17643 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17645 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17646 for ac_func in fmodl
17648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17649 echo "configure:17650: checking for $ac_func" >&5
17650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17651 echo $ac_n "(cached) $ac_c" 1>&6
17652 else
17653 cat > conftest.$ac_ext <<EOF
17654 #line 17655 "configure"
17655 #include "confdefs.h"
17656 /* System header to define __stub macros and hopefully few prototypes,
17657 which can conflict with char $ac_func(); below. */
17658 #include <assert.h>
17659 /* Override any gcc2 internal prototype to avoid an error. */
17660 /* We use char because int might match the return type of a gcc2
17661 builtin and then its argument prototype would still apply. */
17662 char $ac_func();
17664 int main() {
17666 /* The GNU C library defines this for functions which it implements
17667 to always fail with ENOSYS. Some functions are actually named
17668 something starting with __ and the normal name is an alias. */
17669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17670 choke me
17671 #else
17672 $ac_func();
17673 #endif
17675 ; return 0; }
17677 if { (eval echo configure:17678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17678 rm -rf conftest*
17679 eval "ac_cv_func_$ac_func=yes"
17680 else
17681 echo "configure: failed program was:" >&5
17682 cat conftest.$ac_ext >&5
17683 rm -rf conftest*
17684 eval "ac_cv_func_$ac_func=no"
17686 rm -f conftest*
17689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17690 echo "$ac_t""yes" 1>&6
17691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17692 cat >> confdefs.h <<EOF
17693 #define $ac_tr_func 1
17696 else
17697 echo "$ac_t""no" 1>&6
17699 done
17701 else
17703 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17704 echo "configure:17705: checking for _fmodl declaration" >&5
17705 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17706 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17707 echo $ac_n "(cached) $ac_c" 1>&6
17708 else
17711 ac_ext=C
17712 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17713 ac_cpp='$CXXCPP $CPPFLAGS'
17714 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17715 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17716 cross_compiling=$ac_cv_prog_cxx_cross
17718 cat > conftest.$ac_ext <<EOF
17719 #line 17720 "configure"
17720 #include "confdefs.h"
17721 #include <math.h>
17722 int main() {
17723 _fmodl(0, 0);
17724 ; return 0; }
17726 if { (eval echo configure:17727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17727 rm -rf conftest*
17728 glibcpp_cv_func__fmodl_use=yes
17729 else
17730 echo "configure: failed program was:" >&5
17731 cat conftest.$ac_ext >&5
17732 rm -rf conftest*
17733 glibcpp_cv_func__fmodl_use=no
17735 rm -f conftest*
17736 ac_ext=c
17737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17738 ac_cpp='$CPP $CPPFLAGS'
17739 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17740 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17741 cross_compiling=$ac_cv_prog_cc_cross
17747 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17749 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17750 for ac_func in _fmodl
17752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17753 echo "configure:17754: checking for $ac_func" >&5
17754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17755 echo $ac_n "(cached) $ac_c" 1>&6
17756 else
17757 cat > conftest.$ac_ext <<EOF
17758 #line 17759 "configure"
17759 #include "confdefs.h"
17760 /* System header to define __stub macros and hopefully few prototypes,
17761 which can conflict with char $ac_func(); below. */
17762 #include <assert.h>
17763 /* Override any gcc2 internal prototype to avoid an error. */
17764 /* We use char because int might match the return type of a gcc2
17765 builtin and then its argument prototype would still apply. */
17766 char $ac_func();
17768 int main() {
17770 /* The GNU C library defines this for functions which it implements
17771 to always fail with ENOSYS. Some functions are actually named
17772 something starting with __ and the normal name is an alias. */
17773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17774 choke me
17775 #else
17776 $ac_func();
17777 #endif
17779 ; return 0; }
17781 if { (eval echo configure:17782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17782 rm -rf conftest*
17783 eval "ac_cv_func_$ac_func=yes"
17784 else
17785 echo "configure: failed program was:" >&5
17786 cat conftest.$ac_ext >&5
17787 rm -rf conftest*
17788 eval "ac_cv_func_$ac_func=no"
17790 rm -f conftest*
17793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17794 echo "$ac_t""yes" 1>&6
17795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17796 cat >> confdefs.h <<EOF
17797 #define $ac_tr_func 1
17800 else
17801 echo "$ac_t""no" 1>&6
17803 done
17810 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17811 echo "configure:17812: checking for frexpl declaration" >&5
17812 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17813 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17814 echo $ac_n "(cached) $ac_c" 1>&6
17815 else
17818 ac_ext=C
17819 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17820 ac_cpp='$CXXCPP $CPPFLAGS'
17821 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17822 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17823 cross_compiling=$ac_cv_prog_cxx_cross
17825 cat > conftest.$ac_ext <<EOF
17826 #line 17827 "configure"
17827 #include "confdefs.h"
17828 #include <math.h>
17829 int main() {
17830 frexpl(0, 0);
17831 ; return 0; }
17833 if { (eval echo configure:17834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17834 rm -rf conftest*
17835 glibcpp_cv_func_frexpl_use=yes
17836 else
17837 echo "configure: failed program was:" >&5
17838 cat conftest.$ac_ext >&5
17839 rm -rf conftest*
17840 glibcpp_cv_func_frexpl_use=no
17842 rm -f conftest*
17843 ac_ext=c
17844 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17845 ac_cpp='$CPP $CPPFLAGS'
17846 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17847 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17848 cross_compiling=$ac_cv_prog_cc_cross
17854 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17856 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17857 for ac_func in frexpl
17859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17860 echo "configure:17861: checking for $ac_func" >&5
17861 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17862 echo $ac_n "(cached) $ac_c" 1>&6
17863 else
17864 cat > conftest.$ac_ext <<EOF
17865 #line 17866 "configure"
17866 #include "confdefs.h"
17867 /* System header to define __stub macros and hopefully few prototypes,
17868 which can conflict with char $ac_func(); below. */
17869 #include <assert.h>
17870 /* Override any gcc2 internal prototype to avoid an error. */
17871 /* We use char because int might match the return type of a gcc2
17872 builtin and then its argument prototype would still apply. */
17873 char $ac_func();
17875 int main() {
17877 /* The GNU C library defines this for functions which it implements
17878 to always fail with ENOSYS. Some functions are actually named
17879 something starting with __ and the normal name is an alias. */
17880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17881 choke me
17882 #else
17883 $ac_func();
17884 #endif
17886 ; return 0; }
17888 if { (eval echo configure:17889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17889 rm -rf conftest*
17890 eval "ac_cv_func_$ac_func=yes"
17891 else
17892 echo "configure: failed program was:" >&5
17893 cat conftest.$ac_ext >&5
17894 rm -rf conftest*
17895 eval "ac_cv_func_$ac_func=no"
17897 rm -f conftest*
17900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17901 echo "$ac_t""yes" 1>&6
17902 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17903 cat >> confdefs.h <<EOF
17904 #define $ac_tr_func 1
17907 else
17908 echo "$ac_t""no" 1>&6
17910 done
17912 else
17914 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17915 echo "configure:17916: checking for _frexpl declaration" >&5
17916 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17917 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17918 echo $ac_n "(cached) $ac_c" 1>&6
17919 else
17922 ac_ext=C
17923 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17924 ac_cpp='$CXXCPP $CPPFLAGS'
17925 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17926 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17927 cross_compiling=$ac_cv_prog_cxx_cross
17929 cat > conftest.$ac_ext <<EOF
17930 #line 17931 "configure"
17931 #include "confdefs.h"
17932 #include <math.h>
17933 int main() {
17934 _frexpl(0, 0);
17935 ; return 0; }
17937 if { (eval echo configure:17938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17938 rm -rf conftest*
17939 glibcpp_cv_func__frexpl_use=yes
17940 else
17941 echo "configure: failed program was:" >&5
17942 cat conftest.$ac_ext >&5
17943 rm -rf conftest*
17944 glibcpp_cv_func__frexpl_use=no
17946 rm -f conftest*
17947 ac_ext=c
17948 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17949 ac_cpp='$CPP $CPPFLAGS'
17950 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17951 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17952 cross_compiling=$ac_cv_prog_cc_cross
17958 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17960 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17961 for ac_func in _frexpl
17963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17964 echo "configure:17965: checking for $ac_func" >&5
17965 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17966 echo $ac_n "(cached) $ac_c" 1>&6
17967 else
17968 cat > conftest.$ac_ext <<EOF
17969 #line 17970 "configure"
17970 #include "confdefs.h"
17971 /* System header to define __stub macros and hopefully few prototypes,
17972 which can conflict with char $ac_func(); below. */
17973 #include <assert.h>
17974 /* Override any gcc2 internal prototype to avoid an error. */
17975 /* We use char because int might match the return type of a gcc2
17976 builtin and then its argument prototype would still apply. */
17977 char $ac_func();
17979 int main() {
17981 /* The GNU C library defines this for functions which it implements
17982 to always fail with ENOSYS. Some functions are actually named
17983 something starting with __ and the normal name is an alias. */
17984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17985 choke me
17986 #else
17987 $ac_func();
17988 #endif
17990 ; return 0; }
17992 if { (eval echo configure:17993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17993 rm -rf conftest*
17994 eval "ac_cv_func_$ac_func=yes"
17995 else
17996 echo "configure: failed program was:" >&5
17997 cat conftest.$ac_ext >&5
17998 rm -rf conftest*
17999 eval "ac_cv_func_$ac_func=no"
18001 rm -f conftest*
18004 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18005 echo "$ac_t""yes" 1>&6
18006 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18007 cat >> confdefs.h <<EOF
18008 #define $ac_tr_func 1
18011 else
18012 echo "$ac_t""no" 1>&6
18014 done
18021 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18022 echo "configure:18023: checking for hypotl declaration" >&5
18023 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18024 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18025 echo $ac_n "(cached) $ac_c" 1>&6
18026 else
18029 ac_ext=C
18030 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18031 ac_cpp='$CXXCPP $CPPFLAGS'
18032 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18033 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18034 cross_compiling=$ac_cv_prog_cxx_cross
18036 cat > conftest.$ac_ext <<EOF
18037 #line 18038 "configure"
18038 #include "confdefs.h"
18039 #include <math.h>
18040 int main() {
18041 hypotl(0, 0);
18042 ; return 0; }
18044 if { (eval echo configure:18045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18045 rm -rf conftest*
18046 glibcpp_cv_func_hypotl_use=yes
18047 else
18048 echo "configure: failed program was:" >&5
18049 cat conftest.$ac_ext >&5
18050 rm -rf conftest*
18051 glibcpp_cv_func_hypotl_use=no
18053 rm -f conftest*
18054 ac_ext=c
18055 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18056 ac_cpp='$CPP $CPPFLAGS'
18057 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18058 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18059 cross_compiling=$ac_cv_prog_cc_cross
18065 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18067 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18068 for ac_func in hypotl
18070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18071 echo "configure:18072: checking for $ac_func" >&5
18072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18073 echo $ac_n "(cached) $ac_c" 1>&6
18074 else
18075 cat > conftest.$ac_ext <<EOF
18076 #line 18077 "configure"
18077 #include "confdefs.h"
18078 /* System header to define __stub macros and hopefully few prototypes,
18079 which can conflict with char $ac_func(); below. */
18080 #include <assert.h>
18081 /* Override any gcc2 internal prototype to avoid an error. */
18082 /* We use char because int might match the return type of a gcc2
18083 builtin and then its argument prototype would still apply. */
18084 char $ac_func();
18086 int main() {
18088 /* The GNU C library defines this for functions which it implements
18089 to always fail with ENOSYS. Some functions are actually named
18090 something starting with __ and the normal name is an alias. */
18091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18092 choke me
18093 #else
18094 $ac_func();
18095 #endif
18097 ; return 0; }
18099 if { (eval echo configure:18100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18100 rm -rf conftest*
18101 eval "ac_cv_func_$ac_func=yes"
18102 else
18103 echo "configure: failed program was:" >&5
18104 cat conftest.$ac_ext >&5
18105 rm -rf conftest*
18106 eval "ac_cv_func_$ac_func=no"
18108 rm -f conftest*
18111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18112 echo "$ac_t""yes" 1>&6
18113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18114 cat >> confdefs.h <<EOF
18115 #define $ac_tr_func 1
18118 else
18119 echo "$ac_t""no" 1>&6
18121 done
18123 else
18125 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18126 echo "configure:18127: checking for _hypotl declaration" >&5
18127 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18128 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18129 echo $ac_n "(cached) $ac_c" 1>&6
18130 else
18133 ac_ext=C
18134 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18135 ac_cpp='$CXXCPP $CPPFLAGS'
18136 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18137 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18138 cross_compiling=$ac_cv_prog_cxx_cross
18140 cat > conftest.$ac_ext <<EOF
18141 #line 18142 "configure"
18142 #include "confdefs.h"
18143 #include <math.h>
18144 int main() {
18145 _hypotl(0, 0);
18146 ; return 0; }
18148 if { (eval echo configure:18149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18149 rm -rf conftest*
18150 glibcpp_cv_func__hypotl_use=yes
18151 else
18152 echo "configure: failed program was:" >&5
18153 cat conftest.$ac_ext >&5
18154 rm -rf conftest*
18155 glibcpp_cv_func__hypotl_use=no
18157 rm -f conftest*
18158 ac_ext=c
18159 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18160 ac_cpp='$CPP $CPPFLAGS'
18161 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18162 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18163 cross_compiling=$ac_cv_prog_cc_cross
18169 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18171 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18172 for ac_func in _hypotl
18174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18175 echo "configure:18176: checking for $ac_func" >&5
18176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18177 echo $ac_n "(cached) $ac_c" 1>&6
18178 else
18179 cat > conftest.$ac_ext <<EOF
18180 #line 18181 "configure"
18181 #include "confdefs.h"
18182 /* System header to define __stub macros and hopefully few prototypes,
18183 which can conflict with char $ac_func(); below. */
18184 #include <assert.h>
18185 /* Override any gcc2 internal prototype to avoid an error. */
18186 /* We use char because int might match the return type of a gcc2
18187 builtin and then its argument prototype would still apply. */
18188 char $ac_func();
18190 int main() {
18192 /* The GNU C library defines this for functions which it implements
18193 to always fail with ENOSYS. Some functions are actually named
18194 something starting with __ and the normal name is an alias. */
18195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18196 choke me
18197 #else
18198 $ac_func();
18199 #endif
18201 ; return 0; }
18203 if { (eval echo configure:18204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18204 rm -rf conftest*
18205 eval "ac_cv_func_$ac_func=yes"
18206 else
18207 echo "configure: failed program was:" >&5
18208 cat conftest.$ac_ext >&5
18209 rm -rf conftest*
18210 eval "ac_cv_func_$ac_func=no"
18212 rm -f conftest*
18215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18216 echo "$ac_t""yes" 1>&6
18217 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18218 cat >> confdefs.h <<EOF
18219 #define $ac_tr_func 1
18222 else
18223 echo "$ac_t""no" 1>&6
18225 done
18232 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18233 echo "configure:18234: checking for ldexpl declaration" >&5
18234 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18235 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18236 echo $ac_n "(cached) $ac_c" 1>&6
18237 else
18240 ac_ext=C
18241 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18242 ac_cpp='$CXXCPP $CPPFLAGS'
18243 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18244 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18245 cross_compiling=$ac_cv_prog_cxx_cross
18247 cat > conftest.$ac_ext <<EOF
18248 #line 18249 "configure"
18249 #include "confdefs.h"
18250 #include <math.h>
18251 int main() {
18252 ldexpl(0, 0);
18253 ; return 0; }
18255 if { (eval echo configure:18256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18256 rm -rf conftest*
18257 glibcpp_cv_func_ldexpl_use=yes
18258 else
18259 echo "configure: failed program was:" >&5
18260 cat conftest.$ac_ext >&5
18261 rm -rf conftest*
18262 glibcpp_cv_func_ldexpl_use=no
18264 rm -f conftest*
18265 ac_ext=c
18266 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18267 ac_cpp='$CPP $CPPFLAGS'
18268 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18269 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18270 cross_compiling=$ac_cv_prog_cc_cross
18276 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18278 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18279 for ac_func in ldexpl
18281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18282 echo "configure:18283: checking for $ac_func" >&5
18283 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18284 echo $ac_n "(cached) $ac_c" 1>&6
18285 else
18286 cat > conftest.$ac_ext <<EOF
18287 #line 18288 "configure"
18288 #include "confdefs.h"
18289 /* System header to define __stub macros and hopefully few prototypes,
18290 which can conflict with char $ac_func(); below. */
18291 #include <assert.h>
18292 /* Override any gcc2 internal prototype to avoid an error. */
18293 /* We use char because int might match the return type of a gcc2
18294 builtin and then its argument prototype would still apply. */
18295 char $ac_func();
18297 int main() {
18299 /* The GNU C library defines this for functions which it implements
18300 to always fail with ENOSYS. Some functions are actually named
18301 something starting with __ and the normal name is an alias. */
18302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18303 choke me
18304 #else
18305 $ac_func();
18306 #endif
18308 ; return 0; }
18310 if { (eval echo configure:18311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18311 rm -rf conftest*
18312 eval "ac_cv_func_$ac_func=yes"
18313 else
18314 echo "configure: failed program was:" >&5
18315 cat conftest.$ac_ext >&5
18316 rm -rf conftest*
18317 eval "ac_cv_func_$ac_func=no"
18319 rm -f conftest*
18322 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18323 echo "$ac_t""yes" 1>&6
18324 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18325 cat >> confdefs.h <<EOF
18326 #define $ac_tr_func 1
18329 else
18330 echo "$ac_t""no" 1>&6
18332 done
18334 else
18336 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18337 echo "configure:18338: checking for _ldexpl declaration" >&5
18338 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18339 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18340 echo $ac_n "(cached) $ac_c" 1>&6
18341 else
18344 ac_ext=C
18345 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18346 ac_cpp='$CXXCPP $CPPFLAGS'
18347 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18348 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18349 cross_compiling=$ac_cv_prog_cxx_cross
18351 cat > conftest.$ac_ext <<EOF
18352 #line 18353 "configure"
18353 #include "confdefs.h"
18354 #include <math.h>
18355 int main() {
18356 _ldexpl(0, 0);
18357 ; return 0; }
18359 if { (eval echo configure:18360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18360 rm -rf conftest*
18361 glibcpp_cv_func__ldexpl_use=yes
18362 else
18363 echo "configure: failed program was:" >&5
18364 cat conftest.$ac_ext >&5
18365 rm -rf conftest*
18366 glibcpp_cv_func__ldexpl_use=no
18368 rm -f conftest*
18369 ac_ext=c
18370 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18371 ac_cpp='$CPP $CPPFLAGS'
18372 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18373 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18374 cross_compiling=$ac_cv_prog_cc_cross
18380 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18382 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18383 for ac_func in _ldexpl
18385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18386 echo "configure:18387: checking for $ac_func" >&5
18387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18388 echo $ac_n "(cached) $ac_c" 1>&6
18389 else
18390 cat > conftest.$ac_ext <<EOF
18391 #line 18392 "configure"
18392 #include "confdefs.h"
18393 /* System header to define __stub macros and hopefully few prototypes,
18394 which can conflict with char $ac_func(); below. */
18395 #include <assert.h>
18396 /* Override any gcc2 internal prototype to avoid an error. */
18397 /* We use char because int might match the return type of a gcc2
18398 builtin and then its argument prototype would still apply. */
18399 char $ac_func();
18401 int main() {
18403 /* The GNU C library defines this for functions which it implements
18404 to always fail with ENOSYS. Some functions are actually named
18405 something starting with __ and the normal name is an alias. */
18406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18407 choke me
18408 #else
18409 $ac_func();
18410 #endif
18412 ; return 0; }
18414 if { (eval echo configure:18415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18415 rm -rf conftest*
18416 eval "ac_cv_func_$ac_func=yes"
18417 else
18418 echo "configure: failed program was:" >&5
18419 cat conftest.$ac_ext >&5
18420 rm -rf conftest*
18421 eval "ac_cv_func_$ac_func=no"
18423 rm -f conftest*
18426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18427 echo "$ac_t""yes" 1>&6
18428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18429 cat >> confdefs.h <<EOF
18430 #define $ac_tr_func 1
18433 else
18434 echo "$ac_t""no" 1>&6
18436 done
18443 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18444 echo "configure:18445: checking for logl declaration" >&5
18445 if test x${glibcpp_cv_func_logl_use+set} != xset; then
18446 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18447 echo $ac_n "(cached) $ac_c" 1>&6
18448 else
18451 ac_ext=C
18452 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18453 ac_cpp='$CXXCPP $CPPFLAGS'
18454 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18455 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18456 cross_compiling=$ac_cv_prog_cxx_cross
18458 cat > conftest.$ac_ext <<EOF
18459 #line 18460 "configure"
18460 #include "confdefs.h"
18461 #include <math.h>
18462 #ifdef HAVE_IEEEFP_H
18463 #include <ieeefp.h>
18464 #endif
18466 int main() {
18467 logl(0);
18468 ; return 0; }
18470 if { (eval echo configure:18471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18471 rm -rf conftest*
18472 glibcpp_cv_func_logl_use=yes
18473 else
18474 echo "configure: failed program was:" >&5
18475 cat conftest.$ac_ext >&5
18476 rm -rf conftest*
18477 glibcpp_cv_func_logl_use=no
18479 rm -f conftest*
18480 ac_ext=c
18481 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18482 ac_cpp='$CPP $CPPFLAGS'
18483 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18484 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18485 cross_compiling=$ac_cv_prog_cc_cross
18491 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18493 if test x$glibcpp_cv_func_logl_use = x"yes"; then
18494 for ac_func in logl
18496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18497 echo "configure:18498: checking for $ac_func" >&5
18498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18499 echo $ac_n "(cached) $ac_c" 1>&6
18500 else
18501 cat > conftest.$ac_ext <<EOF
18502 #line 18503 "configure"
18503 #include "confdefs.h"
18504 /* System header to define __stub macros and hopefully few prototypes,
18505 which can conflict with char $ac_func(); below. */
18506 #include <assert.h>
18507 /* Override any gcc2 internal prototype to avoid an error. */
18508 /* We use char because int might match the return type of a gcc2
18509 builtin and then its argument prototype would still apply. */
18510 char $ac_func();
18512 int main() {
18514 /* The GNU C library defines this for functions which it implements
18515 to always fail with ENOSYS. Some functions are actually named
18516 something starting with __ and the normal name is an alias. */
18517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18518 choke me
18519 #else
18520 $ac_func();
18521 #endif
18523 ; return 0; }
18525 if { (eval echo configure:18526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18526 rm -rf conftest*
18527 eval "ac_cv_func_$ac_func=yes"
18528 else
18529 echo "configure: failed program was:" >&5
18530 cat conftest.$ac_ext >&5
18531 rm -rf conftest*
18532 eval "ac_cv_func_$ac_func=no"
18534 rm -f conftest*
18537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18538 echo "$ac_t""yes" 1>&6
18539 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18540 cat >> confdefs.h <<EOF
18541 #define $ac_tr_func 1
18544 else
18545 echo "$ac_t""no" 1>&6
18547 done
18549 else
18551 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18552 echo "configure:18553: checking for _logl declaration" >&5
18553 if test x${glibcpp_cv_func__logl_use+set} != xset; then
18554 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18555 echo $ac_n "(cached) $ac_c" 1>&6
18556 else
18559 ac_ext=C
18560 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18561 ac_cpp='$CXXCPP $CPPFLAGS'
18562 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18563 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18564 cross_compiling=$ac_cv_prog_cxx_cross
18566 cat > conftest.$ac_ext <<EOF
18567 #line 18568 "configure"
18568 #include "confdefs.h"
18569 #include <math.h>
18570 #ifdef HAVE_IEEEFP_H
18571 #include <ieeefp.h>
18572 #endif
18574 int main() {
18575 _logl(0);
18576 ; return 0; }
18578 if { (eval echo configure:18579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18579 rm -rf conftest*
18580 glibcpp_cv_func__logl_use=yes
18581 else
18582 echo "configure: failed program was:" >&5
18583 cat conftest.$ac_ext >&5
18584 rm -rf conftest*
18585 glibcpp_cv_func__logl_use=no
18587 rm -f conftest*
18588 ac_ext=c
18589 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18590 ac_cpp='$CPP $CPPFLAGS'
18591 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18592 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18593 cross_compiling=$ac_cv_prog_cc_cross
18599 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18601 if test x$glibcpp_cv_func__logl_use = x"yes"; then
18602 for ac_func in _logl
18604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18605 echo "configure:18606: checking for $ac_func" >&5
18606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18607 echo $ac_n "(cached) $ac_c" 1>&6
18608 else
18609 cat > conftest.$ac_ext <<EOF
18610 #line 18611 "configure"
18611 #include "confdefs.h"
18612 /* System header to define __stub macros and hopefully few prototypes,
18613 which can conflict with char $ac_func(); below. */
18614 #include <assert.h>
18615 /* Override any gcc2 internal prototype to avoid an error. */
18616 /* We use char because int might match the return type of a gcc2
18617 builtin and then its argument prototype would still apply. */
18618 char $ac_func();
18620 int main() {
18622 /* The GNU C library defines this for functions which it implements
18623 to always fail with ENOSYS. Some functions are actually named
18624 something starting with __ and the normal name is an alias. */
18625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18626 choke me
18627 #else
18628 $ac_func();
18629 #endif
18631 ; return 0; }
18633 if { (eval echo configure:18634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18634 rm -rf conftest*
18635 eval "ac_cv_func_$ac_func=yes"
18636 else
18637 echo "configure: failed program was:" >&5
18638 cat conftest.$ac_ext >&5
18639 rm -rf conftest*
18640 eval "ac_cv_func_$ac_func=no"
18642 rm -f conftest*
18645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18646 echo "$ac_t""yes" 1>&6
18647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18648 cat >> confdefs.h <<EOF
18649 #define $ac_tr_func 1
18652 else
18653 echo "$ac_t""no" 1>&6
18655 done
18662 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18663 echo "configure:18664: checking for log10l declaration" >&5
18664 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18665 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18666 echo $ac_n "(cached) $ac_c" 1>&6
18667 else
18670 ac_ext=C
18671 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18672 ac_cpp='$CXXCPP $CPPFLAGS'
18673 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18674 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18675 cross_compiling=$ac_cv_prog_cxx_cross
18677 cat > conftest.$ac_ext <<EOF
18678 #line 18679 "configure"
18679 #include "confdefs.h"
18680 #include <math.h>
18681 #ifdef HAVE_IEEEFP_H
18682 #include <ieeefp.h>
18683 #endif
18685 int main() {
18686 log10l(0);
18687 ; return 0; }
18689 if { (eval echo configure:18690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18690 rm -rf conftest*
18691 glibcpp_cv_func_log10l_use=yes
18692 else
18693 echo "configure: failed program was:" >&5
18694 cat conftest.$ac_ext >&5
18695 rm -rf conftest*
18696 glibcpp_cv_func_log10l_use=no
18698 rm -f conftest*
18699 ac_ext=c
18700 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18701 ac_cpp='$CPP $CPPFLAGS'
18702 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18703 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18704 cross_compiling=$ac_cv_prog_cc_cross
18710 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18712 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18713 for ac_func in log10l
18715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18716 echo "configure:18717: checking for $ac_func" >&5
18717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18718 echo $ac_n "(cached) $ac_c" 1>&6
18719 else
18720 cat > conftest.$ac_ext <<EOF
18721 #line 18722 "configure"
18722 #include "confdefs.h"
18723 /* System header to define __stub macros and hopefully few prototypes,
18724 which can conflict with char $ac_func(); below. */
18725 #include <assert.h>
18726 /* Override any gcc2 internal prototype to avoid an error. */
18727 /* We use char because int might match the return type of a gcc2
18728 builtin and then its argument prototype would still apply. */
18729 char $ac_func();
18731 int main() {
18733 /* The GNU C library defines this for functions which it implements
18734 to always fail with ENOSYS. Some functions are actually named
18735 something starting with __ and the normal name is an alias. */
18736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18737 choke me
18738 #else
18739 $ac_func();
18740 #endif
18742 ; return 0; }
18744 if { (eval echo configure:18745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18745 rm -rf conftest*
18746 eval "ac_cv_func_$ac_func=yes"
18747 else
18748 echo "configure: failed program was:" >&5
18749 cat conftest.$ac_ext >&5
18750 rm -rf conftest*
18751 eval "ac_cv_func_$ac_func=no"
18753 rm -f conftest*
18756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18757 echo "$ac_t""yes" 1>&6
18758 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18759 cat >> confdefs.h <<EOF
18760 #define $ac_tr_func 1
18763 else
18764 echo "$ac_t""no" 1>&6
18766 done
18768 else
18770 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18771 echo "configure:18772: checking for _log10l declaration" >&5
18772 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18773 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18774 echo $ac_n "(cached) $ac_c" 1>&6
18775 else
18778 ac_ext=C
18779 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18780 ac_cpp='$CXXCPP $CPPFLAGS'
18781 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18782 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18783 cross_compiling=$ac_cv_prog_cxx_cross
18785 cat > conftest.$ac_ext <<EOF
18786 #line 18787 "configure"
18787 #include "confdefs.h"
18788 #include <math.h>
18789 #ifdef HAVE_IEEEFP_H
18790 #include <ieeefp.h>
18791 #endif
18793 int main() {
18794 _log10l(0);
18795 ; return 0; }
18797 if { (eval echo configure:18798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18798 rm -rf conftest*
18799 glibcpp_cv_func__log10l_use=yes
18800 else
18801 echo "configure: failed program was:" >&5
18802 cat conftest.$ac_ext >&5
18803 rm -rf conftest*
18804 glibcpp_cv_func__log10l_use=no
18806 rm -f conftest*
18807 ac_ext=c
18808 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18809 ac_cpp='$CPP $CPPFLAGS'
18810 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18811 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18812 cross_compiling=$ac_cv_prog_cc_cross
18818 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18820 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18821 for ac_func in _log10l
18823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18824 echo "configure:18825: checking for $ac_func" >&5
18825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18826 echo $ac_n "(cached) $ac_c" 1>&6
18827 else
18828 cat > conftest.$ac_ext <<EOF
18829 #line 18830 "configure"
18830 #include "confdefs.h"
18831 /* System header to define __stub macros and hopefully few prototypes,
18832 which can conflict with char $ac_func(); below. */
18833 #include <assert.h>
18834 /* Override any gcc2 internal prototype to avoid an error. */
18835 /* We use char because int might match the return type of a gcc2
18836 builtin and then its argument prototype would still apply. */
18837 char $ac_func();
18839 int main() {
18841 /* The GNU C library defines this for functions which it implements
18842 to always fail with ENOSYS. Some functions are actually named
18843 something starting with __ and the normal name is an alias. */
18844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18845 choke me
18846 #else
18847 $ac_func();
18848 #endif
18850 ; return 0; }
18852 if { (eval echo configure:18853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18853 rm -rf conftest*
18854 eval "ac_cv_func_$ac_func=yes"
18855 else
18856 echo "configure: failed program was:" >&5
18857 cat conftest.$ac_ext >&5
18858 rm -rf conftest*
18859 eval "ac_cv_func_$ac_func=no"
18861 rm -f conftest*
18864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18865 echo "$ac_t""yes" 1>&6
18866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18867 cat >> confdefs.h <<EOF
18868 #define $ac_tr_func 1
18871 else
18872 echo "$ac_t""no" 1>&6
18874 done
18881 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18882 echo "configure:18883: checking for modfl declaration" >&5
18883 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18884 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18885 echo $ac_n "(cached) $ac_c" 1>&6
18886 else
18889 ac_ext=C
18890 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18891 ac_cpp='$CXXCPP $CPPFLAGS'
18892 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18893 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18894 cross_compiling=$ac_cv_prog_cxx_cross
18896 cat > conftest.$ac_ext <<EOF
18897 #line 18898 "configure"
18898 #include "confdefs.h"
18899 #include <math.h>
18900 int main() {
18901 modfl(0, 0);
18902 ; return 0; }
18904 if { (eval echo configure:18905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18905 rm -rf conftest*
18906 glibcpp_cv_func_modfl_use=yes
18907 else
18908 echo "configure: failed program was:" >&5
18909 cat conftest.$ac_ext >&5
18910 rm -rf conftest*
18911 glibcpp_cv_func_modfl_use=no
18913 rm -f conftest*
18914 ac_ext=c
18915 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18916 ac_cpp='$CPP $CPPFLAGS'
18917 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18918 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18919 cross_compiling=$ac_cv_prog_cc_cross
18925 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18927 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18928 for ac_func in modfl
18930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18931 echo "configure:18932: checking for $ac_func" >&5
18932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18933 echo $ac_n "(cached) $ac_c" 1>&6
18934 else
18935 cat > conftest.$ac_ext <<EOF
18936 #line 18937 "configure"
18937 #include "confdefs.h"
18938 /* System header to define __stub macros and hopefully few prototypes,
18939 which can conflict with char $ac_func(); below. */
18940 #include <assert.h>
18941 /* Override any gcc2 internal prototype to avoid an error. */
18942 /* We use char because int might match the return type of a gcc2
18943 builtin and then its argument prototype would still apply. */
18944 char $ac_func();
18946 int main() {
18948 /* The GNU C library defines this for functions which it implements
18949 to always fail with ENOSYS. Some functions are actually named
18950 something starting with __ and the normal name is an alias. */
18951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18952 choke me
18953 #else
18954 $ac_func();
18955 #endif
18957 ; return 0; }
18959 if { (eval echo configure:18960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18960 rm -rf conftest*
18961 eval "ac_cv_func_$ac_func=yes"
18962 else
18963 echo "configure: failed program was:" >&5
18964 cat conftest.$ac_ext >&5
18965 rm -rf conftest*
18966 eval "ac_cv_func_$ac_func=no"
18968 rm -f conftest*
18971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18972 echo "$ac_t""yes" 1>&6
18973 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18974 cat >> confdefs.h <<EOF
18975 #define $ac_tr_func 1
18978 else
18979 echo "$ac_t""no" 1>&6
18981 done
18983 else
18985 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18986 echo "configure:18987: checking for _modfl declaration" >&5
18987 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
18988 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
18989 echo $ac_n "(cached) $ac_c" 1>&6
18990 else
18993 ac_ext=C
18994 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18995 ac_cpp='$CXXCPP $CPPFLAGS'
18996 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18997 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18998 cross_compiling=$ac_cv_prog_cxx_cross
19000 cat > conftest.$ac_ext <<EOF
19001 #line 19002 "configure"
19002 #include "confdefs.h"
19003 #include <math.h>
19004 int main() {
19005 _modfl(0, 0);
19006 ; return 0; }
19008 if { (eval echo configure:19009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19009 rm -rf conftest*
19010 glibcpp_cv_func__modfl_use=yes
19011 else
19012 echo "configure: failed program was:" >&5
19013 cat conftest.$ac_ext >&5
19014 rm -rf conftest*
19015 glibcpp_cv_func__modfl_use=no
19017 rm -f conftest*
19018 ac_ext=c
19019 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19020 ac_cpp='$CPP $CPPFLAGS'
19021 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19022 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19023 cross_compiling=$ac_cv_prog_cc_cross
19029 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19031 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19032 for ac_func in _modfl
19034 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19035 echo "configure:19036: checking for $ac_func" >&5
19036 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19037 echo $ac_n "(cached) $ac_c" 1>&6
19038 else
19039 cat > conftest.$ac_ext <<EOF
19040 #line 19041 "configure"
19041 #include "confdefs.h"
19042 /* System header to define __stub macros and hopefully few prototypes,
19043 which can conflict with char $ac_func(); below. */
19044 #include <assert.h>
19045 /* Override any gcc2 internal prototype to avoid an error. */
19046 /* We use char because int might match the return type of a gcc2
19047 builtin and then its argument prototype would still apply. */
19048 char $ac_func();
19050 int main() {
19052 /* The GNU C library defines this for functions which it implements
19053 to always fail with ENOSYS. Some functions are actually named
19054 something starting with __ and the normal name is an alias. */
19055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19056 choke me
19057 #else
19058 $ac_func();
19059 #endif
19061 ; return 0; }
19063 if { (eval echo configure:19064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19064 rm -rf conftest*
19065 eval "ac_cv_func_$ac_func=yes"
19066 else
19067 echo "configure: failed program was:" >&5
19068 cat conftest.$ac_ext >&5
19069 rm -rf conftest*
19070 eval "ac_cv_func_$ac_func=no"
19072 rm -f conftest*
19075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19076 echo "$ac_t""yes" 1>&6
19077 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19078 cat >> confdefs.h <<EOF
19079 #define $ac_tr_func 1
19082 else
19083 echo "$ac_t""no" 1>&6
19085 done
19092 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19093 echo "configure:19094: checking for powl declaration" >&5
19094 if test x${glibcpp_cv_func_powl_use+set} != xset; then
19095 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19096 echo $ac_n "(cached) $ac_c" 1>&6
19097 else
19100 ac_ext=C
19101 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19102 ac_cpp='$CXXCPP $CPPFLAGS'
19103 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19104 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19105 cross_compiling=$ac_cv_prog_cxx_cross
19107 cat > conftest.$ac_ext <<EOF
19108 #line 19109 "configure"
19109 #include "confdefs.h"
19110 #include <math.h>
19111 int main() {
19112 powl(0, 0);
19113 ; return 0; }
19115 if { (eval echo configure:19116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19116 rm -rf conftest*
19117 glibcpp_cv_func_powl_use=yes
19118 else
19119 echo "configure: failed program was:" >&5
19120 cat conftest.$ac_ext >&5
19121 rm -rf conftest*
19122 glibcpp_cv_func_powl_use=no
19124 rm -f conftest*
19125 ac_ext=c
19126 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19127 ac_cpp='$CPP $CPPFLAGS'
19128 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19129 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19130 cross_compiling=$ac_cv_prog_cc_cross
19136 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19138 if test x$glibcpp_cv_func_powl_use = x"yes"; then
19139 for ac_func in powl
19141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19142 echo "configure:19143: checking for $ac_func" >&5
19143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19144 echo $ac_n "(cached) $ac_c" 1>&6
19145 else
19146 cat > conftest.$ac_ext <<EOF
19147 #line 19148 "configure"
19148 #include "confdefs.h"
19149 /* System header to define __stub macros and hopefully few prototypes,
19150 which can conflict with char $ac_func(); below. */
19151 #include <assert.h>
19152 /* Override any gcc2 internal prototype to avoid an error. */
19153 /* We use char because int might match the return type of a gcc2
19154 builtin and then its argument prototype would still apply. */
19155 char $ac_func();
19157 int main() {
19159 /* The GNU C library defines this for functions which it implements
19160 to always fail with ENOSYS. Some functions are actually named
19161 something starting with __ and the normal name is an alias. */
19162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19163 choke me
19164 #else
19165 $ac_func();
19166 #endif
19168 ; return 0; }
19170 if { (eval echo configure:19171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19171 rm -rf conftest*
19172 eval "ac_cv_func_$ac_func=yes"
19173 else
19174 echo "configure: failed program was:" >&5
19175 cat conftest.$ac_ext >&5
19176 rm -rf conftest*
19177 eval "ac_cv_func_$ac_func=no"
19179 rm -f conftest*
19182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19183 echo "$ac_t""yes" 1>&6
19184 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19185 cat >> confdefs.h <<EOF
19186 #define $ac_tr_func 1
19189 else
19190 echo "$ac_t""no" 1>&6
19192 done
19194 else
19196 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19197 echo "configure:19198: checking for _powl declaration" >&5
19198 if test x${glibcpp_cv_func__powl_use+set} != xset; then
19199 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19200 echo $ac_n "(cached) $ac_c" 1>&6
19201 else
19204 ac_ext=C
19205 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19206 ac_cpp='$CXXCPP $CPPFLAGS'
19207 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19208 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19209 cross_compiling=$ac_cv_prog_cxx_cross
19211 cat > conftest.$ac_ext <<EOF
19212 #line 19213 "configure"
19213 #include "confdefs.h"
19214 #include <math.h>
19215 int main() {
19216 _powl(0, 0);
19217 ; return 0; }
19219 if { (eval echo configure:19220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19220 rm -rf conftest*
19221 glibcpp_cv_func__powl_use=yes
19222 else
19223 echo "configure: failed program was:" >&5
19224 cat conftest.$ac_ext >&5
19225 rm -rf conftest*
19226 glibcpp_cv_func__powl_use=no
19228 rm -f conftest*
19229 ac_ext=c
19230 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19231 ac_cpp='$CPP $CPPFLAGS'
19232 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19233 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19234 cross_compiling=$ac_cv_prog_cc_cross
19240 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19242 if test x$glibcpp_cv_func__powl_use = x"yes"; then
19243 for ac_func in _powl
19245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19246 echo "configure:19247: checking for $ac_func" >&5
19247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19248 echo $ac_n "(cached) $ac_c" 1>&6
19249 else
19250 cat > conftest.$ac_ext <<EOF
19251 #line 19252 "configure"
19252 #include "confdefs.h"
19253 /* System header to define __stub macros and hopefully few prototypes,
19254 which can conflict with char $ac_func(); below. */
19255 #include <assert.h>
19256 /* Override any gcc2 internal prototype to avoid an error. */
19257 /* We use char because int might match the return type of a gcc2
19258 builtin and then its argument prototype would still apply. */
19259 char $ac_func();
19261 int main() {
19263 /* The GNU C library defines this for functions which it implements
19264 to always fail with ENOSYS. Some functions are actually named
19265 something starting with __ and the normal name is an alias. */
19266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19267 choke me
19268 #else
19269 $ac_func();
19270 #endif
19272 ; return 0; }
19274 if { (eval echo configure:19275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19275 rm -rf conftest*
19276 eval "ac_cv_func_$ac_func=yes"
19277 else
19278 echo "configure: failed program was:" >&5
19279 cat conftest.$ac_ext >&5
19280 rm -rf conftest*
19281 eval "ac_cv_func_$ac_func=no"
19283 rm -f conftest*
19286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19287 echo "$ac_t""yes" 1>&6
19288 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19289 cat >> confdefs.h <<EOF
19290 #define $ac_tr_func 1
19293 else
19294 echo "$ac_t""no" 1>&6
19296 done
19303 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19304 echo "configure:19305: checking for sqrtl declaration" >&5
19305 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19306 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19307 echo $ac_n "(cached) $ac_c" 1>&6
19308 else
19311 ac_ext=C
19312 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19313 ac_cpp='$CXXCPP $CPPFLAGS'
19314 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19315 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19316 cross_compiling=$ac_cv_prog_cxx_cross
19318 cat > conftest.$ac_ext <<EOF
19319 #line 19320 "configure"
19320 #include "confdefs.h"
19321 #include <math.h>
19322 #ifdef HAVE_IEEEFP_H
19323 #include <ieeefp.h>
19324 #endif
19326 int main() {
19327 sqrtl(0);
19328 ; return 0; }
19330 if { (eval echo configure:19331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19331 rm -rf conftest*
19332 glibcpp_cv_func_sqrtl_use=yes
19333 else
19334 echo "configure: failed program was:" >&5
19335 cat conftest.$ac_ext >&5
19336 rm -rf conftest*
19337 glibcpp_cv_func_sqrtl_use=no
19339 rm -f conftest*
19340 ac_ext=c
19341 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19342 ac_cpp='$CPP $CPPFLAGS'
19343 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19344 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19345 cross_compiling=$ac_cv_prog_cc_cross
19351 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19353 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19354 for ac_func in sqrtl
19356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19357 echo "configure:19358: checking for $ac_func" >&5
19358 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19359 echo $ac_n "(cached) $ac_c" 1>&6
19360 else
19361 cat > conftest.$ac_ext <<EOF
19362 #line 19363 "configure"
19363 #include "confdefs.h"
19364 /* System header to define __stub macros and hopefully few prototypes,
19365 which can conflict with char $ac_func(); below. */
19366 #include <assert.h>
19367 /* Override any gcc2 internal prototype to avoid an error. */
19368 /* We use char because int might match the return type of a gcc2
19369 builtin and then its argument prototype would still apply. */
19370 char $ac_func();
19372 int main() {
19374 /* The GNU C library defines this for functions which it implements
19375 to always fail with ENOSYS. Some functions are actually named
19376 something starting with __ and the normal name is an alias. */
19377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19378 choke me
19379 #else
19380 $ac_func();
19381 #endif
19383 ; return 0; }
19385 if { (eval echo configure:19386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19386 rm -rf conftest*
19387 eval "ac_cv_func_$ac_func=yes"
19388 else
19389 echo "configure: failed program was:" >&5
19390 cat conftest.$ac_ext >&5
19391 rm -rf conftest*
19392 eval "ac_cv_func_$ac_func=no"
19394 rm -f conftest*
19397 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19398 echo "$ac_t""yes" 1>&6
19399 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19400 cat >> confdefs.h <<EOF
19401 #define $ac_tr_func 1
19404 else
19405 echo "$ac_t""no" 1>&6
19407 done
19409 else
19411 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19412 echo "configure:19413: checking for _sqrtl declaration" >&5
19413 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19414 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19415 echo $ac_n "(cached) $ac_c" 1>&6
19416 else
19419 ac_ext=C
19420 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19421 ac_cpp='$CXXCPP $CPPFLAGS'
19422 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19423 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19424 cross_compiling=$ac_cv_prog_cxx_cross
19426 cat > conftest.$ac_ext <<EOF
19427 #line 19428 "configure"
19428 #include "confdefs.h"
19429 #include <math.h>
19430 #ifdef HAVE_IEEEFP_H
19431 #include <ieeefp.h>
19432 #endif
19434 int main() {
19435 _sqrtl(0);
19436 ; return 0; }
19438 if { (eval echo configure:19439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19439 rm -rf conftest*
19440 glibcpp_cv_func__sqrtl_use=yes
19441 else
19442 echo "configure: failed program was:" >&5
19443 cat conftest.$ac_ext >&5
19444 rm -rf conftest*
19445 glibcpp_cv_func__sqrtl_use=no
19447 rm -f conftest*
19448 ac_ext=c
19449 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19450 ac_cpp='$CPP $CPPFLAGS'
19451 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19452 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19453 cross_compiling=$ac_cv_prog_cc_cross
19459 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19461 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19462 for ac_func in _sqrtl
19464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19465 echo "configure:19466: checking for $ac_func" >&5
19466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19467 echo $ac_n "(cached) $ac_c" 1>&6
19468 else
19469 cat > conftest.$ac_ext <<EOF
19470 #line 19471 "configure"
19471 #include "confdefs.h"
19472 /* System header to define __stub macros and hopefully few prototypes,
19473 which can conflict with char $ac_func(); below. */
19474 #include <assert.h>
19475 /* Override any gcc2 internal prototype to avoid an error. */
19476 /* We use char because int might match the return type of a gcc2
19477 builtin and then its argument prototype would still apply. */
19478 char $ac_func();
19480 int main() {
19482 /* The GNU C library defines this for functions which it implements
19483 to always fail with ENOSYS. Some functions are actually named
19484 something starting with __ and the normal name is an alias. */
19485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19486 choke me
19487 #else
19488 $ac_func();
19489 #endif
19491 ; return 0; }
19493 if { (eval echo configure:19494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19494 rm -rf conftest*
19495 eval "ac_cv_func_$ac_func=yes"
19496 else
19497 echo "configure: failed program was:" >&5
19498 cat conftest.$ac_ext >&5
19499 rm -rf conftest*
19500 eval "ac_cv_func_$ac_func=no"
19502 rm -f conftest*
19505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19506 echo "$ac_t""yes" 1>&6
19507 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19508 cat >> confdefs.h <<EOF
19509 #define $ac_tr_func 1
19512 else
19513 echo "$ac_t""no" 1>&6
19515 done
19522 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19523 echo "configure:19524: checking for sincosl declaration" >&5
19524 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19525 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19526 echo $ac_n "(cached) $ac_c" 1>&6
19527 else
19530 ac_ext=C
19531 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19532 ac_cpp='$CXXCPP $CPPFLAGS'
19533 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19534 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19535 cross_compiling=$ac_cv_prog_cxx_cross
19537 cat > conftest.$ac_ext <<EOF
19538 #line 19539 "configure"
19539 #include "confdefs.h"
19540 #include <math.h>
19541 int main() {
19542 sincosl(0, 0, 0);
19543 ; return 0; }
19545 if { (eval echo configure:19546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19546 rm -rf conftest*
19547 glibcpp_cv_func_sincosl_use=yes
19548 else
19549 echo "configure: failed program was:" >&5
19550 cat conftest.$ac_ext >&5
19551 rm -rf conftest*
19552 glibcpp_cv_func_sincosl_use=no
19554 rm -f conftest*
19555 ac_ext=c
19556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19557 ac_cpp='$CPP $CPPFLAGS'
19558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19559 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19560 cross_compiling=$ac_cv_prog_cc_cross
19566 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19568 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19569 for ac_func in sincosl
19571 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19572 echo "configure:19573: checking for $ac_func" >&5
19573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19574 echo $ac_n "(cached) $ac_c" 1>&6
19575 else
19576 cat > conftest.$ac_ext <<EOF
19577 #line 19578 "configure"
19578 #include "confdefs.h"
19579 /* System header to define __stub macros and hopefully few prototypes,
19580 which can conflict with char $ac_func(); below. */
19581 #include <assert.h>
19582 /* Override any gcc2 internal prototype to avoid an error. */
19583 /* We use char because int might match the return type of a gcc2
19584 builtin and then its argument prototype would still apply. */
19585 char $ac_func();
19587 int main() {
19589 /* The GNU C library defines this for functions which it implements
19590 to always fail with ENOSYS. Some functions are actually named
19591 something starting with __ and the normal name is an alias. */
19592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19593 choke me
19594 #else
19595 $ac_func();
19596 #endif
19598 ; return 0; }
19600 if { (eval echo configure:19601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19601 rm -rf conftest*
19602 eval "ac_cv_func_$ac_func=yes"
19603 else
19604 echo "configure: failed program was:" >&5
19605 cat conftest.$ac_ext >&5
19606 rm -rf conftest*
19607 eval "ac_cv_func_$ac_func=no"
19609 rm -f conftest*
19612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19613 echo "$ac_t""yes" 1>&6
19614 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19615 cat >> confdefs.h <<EOF
19616 #define $ac_tr_func 1
19619 else
19620 echo "$ac_t""no" 1>&6
19622 done
19624 else
19626 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19627 echo "configure:19628: checking for _sincosl declaration" >&5
19628 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19629 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19630 echo $ac_n "(cached) $ac_c" 1>&6
19631 else
19634 ac_ext=C
19635 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19636 ac_cpp='$CXXCPP $CPPFLAGS'
19637 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19638 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19639 cross_compiling=$ac_cv_prog_cxx_cross
19641 cat > conftest.$ac_ext <<EOF
19642 #line 19643 "configure"
19643 #include "confdefs.h"
19644 #include <math.h>
19645 int main() {
19646 _sincosl(0, 0, 0);
19647 ; return 0; }
19649 if { (eval echo configure:19650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19650 rm -rf conftest*
19651 glibcpp_cv_func__sincosl_use=yes
19652 else
19653 echo "configure: failed program was:" >&5
19654 cat conftest.$ac_ext >&5
19655 rm -rf conftest*
19656 glibcpp_cv_func__sincosl_use=no
19658 rm -f conftest*
19659 ac_ext=c
19660 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19661 ac_cpp='$CPP $CPPFLAGS'
19662 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19663 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19664 cross_compiling=$ac_cv_prog_cc_cross
19670 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19672 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19673 for ac_func in _sincosl
19675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19676 echo "configure:19677: checking for $ac_func" >&5
19677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19678 echo $ac_n "(cached) $ac_c" 1>&6
19679 else
19680 cat > conftest.$ac_ext <<EOF
19681 #line 19682 "configure"
19682 #include "confdefs.h"
19683 /* System header to define __stub macros and hopefully few prototypes,
19684 which can conflict with char $ac_func(); below. */
19685 #include <assert.h>
19686 /* Override any gcc2 internal prototype to avoid an error. */
19687 /* We use char because int might match the return type of a gcc2
19688 builtin and then its argument prototype would still apply. */
19689 char $ac_func();
19691 int main() {
19693 /* The GNU C library defines this for functions which it implements
19694 to always fail with ENOSYS. Some functions are actually named
19695 something starting with __ and the normal name is an alias. */
19696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19697 choke me
19698 #else
19699 $ac_func();
19700 #endif
19702 ; return 0; }
19704 if { (eval echo configure:19705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19705 rm -rf conftest*
19706 eval "ac_cv_func_$ac_func=yes"
19707 else
19708 echo "configure: failed program was:" >&5
19709 cat conftest.$ac_ext >&5
19710 rm -rf conftest*
19711 eval "ac_cv_func_$ac_func=no"
19713 rm -f conftest*
19716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19717 echo "$ac_t""yes" 1>&6
19718 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19719 cat >> confdefs.h <<EOF
19720 #define $ac_tr_func 1
19723 else
19724 echo "$ac_t""no" 1>&6
19726 done
19733 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19734 echo "configure:19735: checking for finitel declaration" >&5
19735 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19736 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19737 echo $ac_n "(cached) $ac_c" 1>&6
19738 else
19741 ac_ext=C
19742 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19743 ac_cpp='$CXXCPP $CPPFLAGS'
19744 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19745 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19746 cross_compiling=$ac_cv_prog_cxx_cross
19748 cat > conftest.$ac_ext <<EOF
19749 #line 19750 "configure"
19750 #include "confdefs.h"
19751 #include <math.h>
19752 #ifdef HAVE_IEEEFP_H
19753 #include <ieeefp.h>
19754 #endif
19756 int main() {
19757 finitel(0);
19758 ; return 0; }
19760 if { (eval echo configure:19761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19761 rm -rf conftest*
19762 glibcpp_cv_func_finitel_use=yes
19763 else
19764 echo "configure: failed program was:" >&5
19765 cat conftest.$ac_ext >&5
19766 rm -rf conftest*
19767 glibcpp_cv_func_finitel_use=no
19769 rm -f conftest*
19770 ac_ext=c
19771 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19772 ac_cpp='$CPP $CPPFLAGS'
19773 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19774 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19775 cross_compiling=$ac_cv_prog_cc_cross
19781 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19783 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19784 for ac_func in finitel
19786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19787 echo "configure:19788: checking for $ac_func" >&5
19788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19789 echo $ac_n "(cached) $ac_c" 1>&6
19790 else
19791 cat > conftest.$ac_ext <<EOF
19792 #line 19793 "configure"
19793 #include "confdefs.h"
19794 /* System header to define __stub macros and hopefully few prototypes,
19795 which can conflict with char $ac_func(); below. */
19796 #include <assert.h>
19797 /* Override any gcc2 internal prototype to avoid an error. */
19798 /* We use char because int might match the return type of a gcc2
19799 builtin and then its argument prototype would still apply. */
19800 char $ac_func();
19802 int main() {
19804 /* The GNU C library defines this for functions which it implements
19805 to always fail with ENOSYS. Some functions are actually named
19806 something starting with __ and the normal name is an alias. */
19807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19808 choke me
19809 #else
19810 $ac_func();
19811 #endif
19813 ; return 0; }
19815 if { (eval echo configure:19816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19816 rm -rf conftest*
19817 eval "ac_cv_func_$ac_func=yes"
19818 else
19819 echo "configure: failed program was:" >&5
19820 cat conftest.$ac_ext >&5
19821 rm -rf conftest*
19822 eval "ac_cv_func_$ac_func=no"
19824 rm -f conftest*
19827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19828 echo "$ac_t""yes" 1>&6
19829 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19830 cat >> confdefs.h <<EOF
19831 #define $ac_tr_func 1
19834 else
19835 echo "$ac_t""no" 1>&6
19837 done
19839 else
19841 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19842 echo "configure:19843: checking for _finitel declaration" >&5
19843 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19844 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19845 echo $ac_n "(cached) $ac_c" 1>&6
19846 else
19849 ac_ext=C
19850 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19851 ac_cpp='$CXXCPP $CPPFLAGS'
19852 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19853 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19854 cross_compiling=$ac_cv_prog_cxx_cross
19856 cat > conftest.$ac_ext <<EOF
19857 #line 19858 "configure"
19858 #include "confdefs.h"
19859 #include <math.h>
19860 #ifdef HAVE_IEEEFP_H
19861 #include <ieeefp.h>
19862 #endif
19864 int main() {
19865 _finitel(0);
19866 ; return 0; }
19868 if { (eval echo configure:19869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19869 rm -rf conftest*
19870 glibcpp_cv_func__finitel_use=yes
19871 else
19872 echo "configure: failed program was:" >&5
19873 cat conftest.$ac_ext >&5
19874 rm -rf conftest*
19875 glibcpp_cv_func__finitel_use=no
19877 rm -f conftest*
19878 ac_ext=c
19879 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19880 ac_cpp='$CPP $CPPFLAGS'
19881 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19882 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19883 cross_compiling=$ac_cv_prog_cc_cross
19889 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19891 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19892 for ac_func in _finitel
19894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19895 echo "configure:19896: checking for $ac_func" >&5
19896 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19897 echo $ac_n "(cached) $ac_c" 1>&6
19898 else
19899 cat > conftest.$ac_ext <<EOF
19900 #line 19901 "configure"
19901 #include "confdefs.h"
19902 /* System header to define __stub macros and hopefully few prototypes,
19903 which can conflict with char $ac_func(); below. */
19904 #include <assert.h>
19905 /* Override any gcc2 internal prototype to avoid an error. */
19906 /* We use char because int might match the return type of a gcc2
19907 builtin and then its argument prototype would still apply. */
19908 char $ac_func();
19910 int main() {
19912 /* The GNU C library defines this for functions which it implements
19913 to always fail with ENOSYS. Some functions are actually named
19914 something starting with __ and the normal name is an alias. */
19915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19916 choke me
19917 #else
19918 $ac_func();
19919 #endif
19921 ; return 0; }
19923 if { (eval echo configure:19924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19924 rm -rf conftest*
19925 eval "ac_cv_func_$ac_func=yes"
19926 else
19927 echo "configure: failed program was:" >&5
19928 cat conftest.$ac_ext >&5
19929 rm -rf conftest*
19930 eval "ac_cv_func_$ac_func=no"
19932 rm -f conftest*
19935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19936 echo "$ac_t""yes" 1>&6
19937 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19938 cat >> confdefs.h <<EOF
19939 #define $ac_tr_func 1
19942 else
19943 echo "$ac_t""no" 1>&6
19945 done
19953 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19954 echo "configure:19955: checking for _float trig functions" >&5
19955 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19956 echo $ac_n "(cached) $ac_c" 1>&6
19957 else
19960 ac_ext=C
19961 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19962 ac_cpp='$CXXCPP $CPPFLAGS'
19963 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19964 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19965 cross_compiling=$ac_cv_prog_cxx_cross
19967 cat > conftest.$ac_ext <<EOF
19968 #line 19969 "configure"
19969 #include "confdefs.h"
19970 #include <math.h>
19971 int main() {
19972 `for x in _acosf _asinf _atanf \
19973 _cosf _sinf _tanf \
19974 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
19975 ; return 0; }
19977 if { (eval echo configure:19978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19978 rm -rf conftest*
19979 glibcpp_cv_func__float_trig_use=yes
19980 else
19981 echo "configure: failed program was:" >&5
19982 cat conftest.$ac_ext >&5
19983 rm -rf conftest*
19984 glibcpp_cv_func__float_trig_use=no
19986 rm -f conftest*
19987 ac_ext=c
19988 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19989 ac_cpp='$CPP $CPPFLAGS'
19990 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19991 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19992 cross_compiling=$ac_cv_prog_cc_cross
19996 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
19997 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
19998 for ac_func in _acosf _asinf _atanf \
19999 _cosf _sinf _tanf \
20000 _coshf _sinhf _tanhf
20002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20003 echo "configure:20004: checking for $ac_func" >&5
20004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20005 echo $ac_n "(cached) $ac_c" 1>&6
20006 else
20007 cat > conftest.$ac_ext <<EOF
20008 #line 20009 "configure"
20009 #include "confdefs.h"
20010 /* System header to define __stub macros and hopefully few prototypes,
20011 which can conflict with char $ac_func(); below. */
20012 #include <assert.h>
20013 /* Override any gcc2 internal prototype to avoid an error. */
20014 /* We use char because int might match the return type of a gcc2
20015 builtin and then its argument prototype would still apply. */
20016 char $ac_func();
20018 int main() {
20020 /* The GNU C library defines this for functions which it implements
20021 to always fail with ENOSYS. Some functions are actually named
20022 something starting with __ and the normal name is an alias. */
20023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20024 choke me
20025 #else
20026 $ac_func();
20027 #endif
20029 ; return 0; }
20031 if { (eval echo configure:20032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20032 rm -rf conftest*
20033 eval "ac_cv_func_$ac_func=yes"
20034 else
20035 echo "configure: failed program was:" >&5
20036 cat conftest.$ac_ext >&5
20037 rm -rf conftest*
20038 eval "ac_cv_func_$ac_func=no"
20040 rm -f conftest*
20043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20044 echo "$ac_t""yes" 1>&6
20045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20046 cat >> confdefs.h <<EOF
20047 #define $ac_tr_func 1
20050 else
20051 echo "$ac_t""no" 1>&6
20053 done
20058 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20059 echo "configure:20060: checking for _float round functions" >&5
20060 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20061 echo $ac_n "(cached) $ac_c" 1>&6
20062 else
20065 ac_ext=C
20066 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20067 ac_cpp='$CXXCPP $CPPFLAGS'
20068 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20069 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20070 cross_compiling=$ac_cv_prog_cxx_cross
20072 cat > conftest.$ac_ext <<EOF
20073 #line 20074 "configure"
20074 #include "confdefs.h"
20075 #include <math.h>
20076 int main() {
20077 `for x in _ceilf _floorf; do echo "$x (0);"; done`
20078 ; return 0; }
20080 if { (eval echo configure:20081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20081 rm -rf conftest*
20082 glibcpp_cv_func__float_round_use=yes
20083 else
20084 echo "configure: failed program was:" >&5
20085 cat conftest.$ac_ext >&5
20086 rm -rf conftest*
20087 glibcpp_cv_func__float_round_use=no
20089 rm -f conftest*
20090 ac_ext=c
20091 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20092 ac_cpp='$CPP $CPPFLAGS'
20093 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20094 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20095 cross_compiling=$ac_cv_prog_cc_cross
20099 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20100 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20101 for ac_func in _ceilf _floorf
20103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20104 echo "configure:20105: checking for $ac_func" >&5
20105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20106 echo $ac_n "(cached) $ac_c" 1>&6
20107 else
20108 cat > conftest.$ac_ext <<EOF
20109 #line 20110 "configure"
20110 #include "confdefs.h"
20111 /* System header to define __stub macros and hopefully few prototypes,
20112 which can conflict with char $ac_func(); below. */
20113 #include <assert.h>
20114 /* Override any gcc2 internal prototype to avoid an error. */
20115 /* We use char because int might match the return type of a gcc2
20116 builtin and then its argument prototype would still apply. */
20117 char $ac_func();
20119 int main() {
20121 /* The GNU C library defines this for functions which it implements
20122 to always fail with ENOSYS. Some functions are actually named
20123 something starting with __ and the normal name is an alias. */
20124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20125 choke me
20126 #else
20127 $ac_func();
20128 #endif
20130 ; return 0; }
20132 if { (eval echo configure:20133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20133 rm -rf conftest*
20134 eval "ac_cv_func_$ac_func=yes"
20135 else
20136 echo "configure: failed program was:" >&5
20137 cat conftest.$ac_ext >&5
20138 rm -rf conftest*
20139 eval "ac_cv_func_$ac_func=no"
20141 rm -f conftest*
20144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20145 echo "$ac_t""yes" 1>&6
20146 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20147 cat >> confdefs.h <<EOF
20148 #define $ac_tr_func 1
20151 else
20152 echo "$ac_t""no" 1>&6
20154 done
20160 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20161 echo "configure:20162: checking for _long double trig functions" >&5
20162 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20163 echo $ac_n "(cached) $ac_c" 1>&6
20164 else
20167 ac_ext=C
20168 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20169 ac_cpp='$CXXCPP $CPPFLAGS'
20170 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20171 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20172 cross_compiling=$ac_cv_prog_cxx_cross
20174 cat > conftest.$ac_ext <<EOF
20175 #line 20176 "configure"
20176 #include "confdefs.h"
20177 #include <math.h>
20178 int main() {
20179 `for x in _acosl _asinl _atanl \
20180 _cosl _sinl _tanl \
20181 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
20182 ; return 0; }
20184 if { (eval echo configure:20185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20185 rm -rf conftest*
20186 glibcpp_cv_func__long_double_trig_use=yes
20187 else
20188 echo "configure: failed program was:" >&5
20189 cat conftest.$ac_ext >&5
20190 rm -rf conftest*
20191 glibcpp_cv_func__long_double_trig_use=no
20193 rm -f conftest*
20194 ac_ext=c
20195 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20196 ac_cpp='$CPP $CPPFLAGS'
20197 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20198 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20199 cross_compiling=$ac_cv_prog_cc_cross
20203 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20204 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20205 for ac_func in _acosl _asinl _atanl \
20206 _cosl _sinl _tanl \
20207 _coshl _sinhl _tanhl
20209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20210 echo "configure:20211: checking for $ac_func" >&5
20211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20212 echo $ac_n "(cached) $ac_c" 1>&6
20213 else
20214 cat > conftest.$ac_ext <<EOF
20215 #line 20216 "configure"
20216 #include "confdefs.h"
20217 /* System header to define __stub macros and hopefully few prototypes,
20218 which can conflict with char $ac_func(); below. */
20219 #include <assert.h>
20220 /* Override any gcc2 internal prototype to avoid an error. */
20221 /* We use char because int might match the return type of a gcc2
20222 builtin and then its argument prototype would still apply. */
20223 char $ac_func();
20225 int main() {
20227 /* The GNU C library defines this for functions which it implements
20228 to always fail with ENOSYS. Some functions are actually named
20229 something starting with __ and the normal name is an alias. */
20230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20231 choke me
20232 #else
20233 $ac_func();
20234 #endif
20236 ; return 0; }
20238 if { (eval echo configure:20239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20239 rm -rf conftest*
20240 eval "ac_cv_func_$ac_func=yes"
20241 else
20242 echo "configure: failed program was:" >&5
20243 cat conftest.$ac_ext >&5
20244 rm -rf conftest*
20245 eval "ac_cv_func_$ac_func=no"
20247 rm -f conftest*
20250 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20251 echo "$ac_t""yes" 1>&6
20252 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20253 cat >> confdefs.h <<EOF
20254 #define $ac_tr_func 1
20257 else
20258 echo "$ac_t""no" 1>&6
20260 done
20265 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20266 echo "configure:20267: checking for _long double round functions" >&5
20267 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20268 echo $ac_n "(cached) $ac_c" 1>&6
20269 else
20272 ac_ext=C
20273 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20274 ac_cpp='$CXXCPP $CPPFLAGS'
20275 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20276 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20277 cross_compiling=$ac_cv_prog_cxx_cross
20279 cat > conftest.$ac_ext <<EOF
20280 #line 20281 "configure"
20281 #include "confdefs.h"
20282 #include <math.h>
20283 int main() {
20284 `for x in _ceill _floorl; do echo "$x (0);"; done`
20285 ; return 0; }
20287 if { (eval echo configure:20288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20288 rm -rf conftest*
20289 glibcpp_cv_func__long_double_round_use=yes
20290 else
20291 echo "configure: failed program was:" >&5
20292 cat conftest.$ac_ext >&5
20293 rm -rf conftest*
20294 glibcpp_cv_func__long_double_round_use=no
20296 rm -f conftest*
20297 ac_ext=c
20298 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20299 ac_cpp='$CPP $CPPFLAGS'
20300 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20301 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20302 cross_compiling=$ac_cv_prog_cc_cross
20306 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20307 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20308 for ac_func in _ceill _floorl
20310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20311 echo "configure:20312: checking for $ac_func" >&5
20312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20313 echo $ac_n "(cached) $ac_c" 1>&6
20314 else
20315 cat > conftest.$ac_ext <<EOF
20316 #line 20317 "configure"
20317 #include "confdefs.h"
20318 /* System header to define __stub macros and hopefully few prototypes,
20319 which can conflict with char $ac_func(); below. */
20320 #include <assert.h>
20321 /* Override any gcc2 internal prototype to avoid an error. */
20322 /* We use char because int might match the return type of a gcc2
20323 builtin and then its argument prototype would still apply. */
20324 char $ac_func();
20326 int main() {
20328 /* The GNU C library defines this for functions which it implements
20329 to always fail with ENOSYS. Some functions are actually named
20330 something starting with __ and the normal name is an alias. */
20331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20332 choke me
20333 #else
20334 $ac_func();
20335 #endif
20337 ; return 0; }
20339 if { (eval echo configure:20340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20340 rm -rf conftest*
20341 eval "ac_cv_func_$ac_func=yes"
20342 else
20343 echo "configure: failed program was:" >&5
20344 cat conftest.$ac_ext >&5
20345 rm -rf conftest*
20346 eval "ac_cv_func_$ac_func=no"
20348 rm -f conftest*
20351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20352 echo "$ac_t""yes" 1>&6
20353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20354 cat >> confdefs.h <<EOF
20355 #define $ac_tr_func 1
20358 else
20359 echo "$ac_t""no" 1>&6
20361 done
20366 LIBS="$ac_save_LIBS"
20367 CXXFLAGS="$ac_save_CXXFLAGS"
20371 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
20372 echo "configure:20373: checking for __builtin_abs declaration" >&5
20373 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
20374 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
20375 echo $ac_n "(cached) $ac_c" 1>&6
20376 else
20379 ac_ext=C
20380 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20381 ac_cpp='$CXXCPP $CPPFLAGS'
20382 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20383 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20384 cross_compiling=$ac_cv_prog_cxx_cross
20386 cat > conftest.$ac_ext <<EOF
20387 #line 20388 "configure"
20388 #include "confdefs.h"
20389 #include <math.h>
20390 int main() {
20391 __builtin_abs(0);
20392 ; return 0; }
20394 if { (eval echo configure:20395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20395 rm -rf conftest*
20396 glibcpp_cv_func___builtin_abs_use=yes
20397 else
20398 echo "configure: failed program was:" >&5
20399 cat conftest.$ac_ext >&5
20400 rm -rf conftest*
20401 glibcpp_cv_func___builtin_abs_use=no
20403 rm -f conftest*
20404 ac_ext=c
20405 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20406 ac_cpp='$CPP $CPPFLAGS'
20407 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20408 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20409 cross_compiling=$ac_cv_prog_cc_cross
20415 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
20416 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
20417 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
20418 echo "configure:20419: checking for __builtin_abs linkage" >&5
20419 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
20420 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
20421 echo $ac_n "(cached) $ac_c" 1>&6
20422 else
20424 cat > conftest.$ac_ext <<EOF
20425 #line 20426 "configure"
20426 #include "confdefs.h"
20427 #include <math.h>
20428 int main() {
20429 __builtin_abs(0);
20430 ; return 0; }
20432 if { (eval echo configure:20433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20433 rm -rf conftest*
20434 glibcpp_cv_func___builtin_abs_link=yes
20435 else
20436 echo "configure: failed program was:" >&5
20437 cat conftest.$ac_ext >&5
20438 rm -rf conftest*
20439 glibcpp_cv_func___builtin_abs_link=no
20441 rm -f conftest*
20446 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
20447 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
20448 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20449 cat >> confdefs.h <<EOF
20450 #define ${ac_tr_func} 1
20457 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
20458 echo "configure:20459: checking for __builtin_fabsf declaration" >&5
20459 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
20460 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
20461 echo $ac_n "(cached) $ac_c" 1>&6
20462 else
20465 ac_ext=C
20466 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20467 ac_cpp='$CXXCPP $CPPFLAGS'
20468 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20469 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20470 cross_compiling=$ac_cv_prog_cxx_cross
20472 cat > conftest.$ac_ext <<EOF
20473 #line 20474 "configure"
20474 #include "confdefs.h"
20475 #include <math.h>
20476 int main() {
20477 __builtin_fabsf(0);
20478 ; return 0; }
20480 if { (eval echo configure:20481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20481 rm -rf conftest*
20482 glibcpp_cv_func___builtin_fabsf_use=yes
20483 else
20484 echo "configure: failed program was:" >&5
20485 cat conftest.$ac_ext >&5
20486 rm -rf conftest*
20487 glibcpp_cv_func___builtin_fabsf_use=no
20489 rm -f conftest*
20490 ac_ext=c
20491 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20492 ac_cpp='$CPP $CPPFLAGS'
20493 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20494 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20495 cross_compiling=$ac_cv_prog_cc_cross
20501 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
20502 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
20503 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
20504 echo "configure:20505: checking for __builtin_fabsf linkage" >&5
20505 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
20506 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
20507 echo $ac_n "(cached) $ac_c" 1>&6
20508 else
20510 cat > conftest.$ac_ext <<EOF
20511 #line 20512 "configure"
20512 #include "confdefs.h"
20513 #include <math.h>
20514 int main() {
20515 __builtin_fabsf(0);
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 glibcpp_cv_func___builtin_fabsf_link=yes
20521 else
20522 echo "configure: failed program was:" >&5
20523 cat conftest.$ac_ext >&5
20524 rm -rf conftest*
20525 glibcpp_cv_func___builtin_fabsf_link=no
20527 rm -f conftest*
20532 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
20533 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
20534 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20535 cat >> confdefs.h <<EOF
20536 #define ${ac_tr_func} 1
20543 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
20544 echo "configure:20545: checking for __builtin_fabs declaration" >&5
20545 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
20546 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
20547 echo $ac_n "(cached) $ac_c" 1>&6
20548 else
20551 ac_ext=C
20552 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20553 ac_cpp='$CXXCPP $CPPFLAGS'
20554 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20555 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20556 cross_compiling=$ac_cv_prog_cxx_cross
20558 cat > conftest.$ac_ext <<EOF
20559 #line 20560 "configure"
20560 #include "confdefs.h"
20561 #include <math.h>
20562 int main() {
20563 __builtin_fabs(0);
20564 ; return 0; }
20566 if { (eval echo configure:20567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20567 rm -rf conftest*
20568 glibcpp_cv_func___builtin_fabs_use=yes
20569 else
20570 echo "configure: failed program was:" >&5
20571 cat conftest.$ac_ext >&5
20572 rm -rf conftest*
20573 glibcpp_cv_func___builtin_fabs_use=no
20575 rm -f conftest*
20576 ac_ext=c
20577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20578 ac_cpp='$CPP $CPPFLAGS'
20579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20581 cross_compiling=$ac_cv_prog_cc_cross
20587 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
20588 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
20589 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
20590 echo "configure:20591: checking for __builtin_fabs linkage" >&5
20591 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
20592 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
20593 echo $ac_n "(cached) $ac_c" 1>&6
20594 else
20596 cat > conftest.$ac_ext <<EOF
20597 #line 20598 "configure"
20598 #include "confdefs.h"
20599 #include <math.h>
20600 int main() {
20601 __builtin_fabs(0);
20602 ; return 0; }
20604 if { (eval echo configure:20605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20605 rm -rf conftest*
20606 glibcpp_cv_func___builtin_fabs_link=yes
20607 else
20608 echo "configure: failed program was:" >&5
20609 cat conftest.$ac_ext >&5
20610 rm -rf conftest*
20611 glibcpp_cv_func___builtin_fabs_link=no
20613 rm -f conftest*
20618 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
20619 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
20620 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20621 cat >> confdefs.h <<EOF
20622 #define ${ac_tr_func} 1
20629 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
20630 echo "configure:20631: checking for __builtin_fabsl declaration" >&5
20631 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
20632 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
20633 echo $ac_n "(cached) $ac_c" 1>&6
20634 else
20637 ac_ext=C
20638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20639 ac_cpp='$CXXCPP $CPPFLAGS'
20640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20642 cross_compiling=$ac_cv_prog_cxx_cross
20644 cat > conftest.$ac_ext <<EOF
20645 #line 20646 "configure"
20646 #include "confdefs.h"
20647 #include <math.h>
20648 int main() {
20649 __builtin_fabsl(0);
20650 ; return 0; }
20652 if { (eval echo configure:20653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20653 rm -rf conftest*
20654 glibcpp_cv_func___builtin_fabsl_use=yes
20655 else
20656 echo "configure: failed program was:" >&5
20657 cat conftest.$ac_ext >&5
20658 rm -rf conftest*
20659 glibcpp_cv_func___builtin_fabsl_use=no
20661 rm -f conftest*
20662 ac_ext=c
20663 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20664 ac_cpp='$CPP $CPPFLAGS'
20665 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20666 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20667 cross_compiling=$ac_cv_prog_cc_cross
20673 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
20674 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
20675 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
20676 echo "configure:20677: checking for __builtin_fabsl linkage" >&5
20677 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
20678 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
20679 echo $ac_n "(cached) $ac_c" 1>&6
20680 else
20682 cat > conftest.$ac_ext <<EOF
20683 #line 20684 "configure"
20684 #include "confdefs.h"
20685 #include <math.h>
20686 int main() {
20687 __builtin_fabsl(0);
20688 ; return 0; }
20690 if { (eval echo configure:20691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20691 rm -rf conftest*
20692 glibcpp_cv_func___builtin_fabsl_link=yes
20693 else
20694 echo "configure: failed program was:" >&5
20695 cat conftest.$ac_ext >&5
20696 rm -rf conftest*
20697 glibcpp_cv_func___builtin_fabsl_link=no
20699 rm -f conftest*
20704 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
20705 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
20706 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20707 cat >> confdefs.h <<EOF
20708 #define ${ac_tr_func} 1
20715 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
20716 echo "configure:20717: checking for __builtin_labs declaration" >&5
20717 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
20718 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
20719 echo $ac_n "(cached) $ac_c" 1>&6
20720 else
20723 ac_ext=C
20724 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20725 ac_cpp='$CXXCPP $CPPFLAGS'
20726 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20727 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20728 cross_compiling=$ac_cv_prog_cxx_cross
20730 cat > conftest.$ac_ext <<EOF
20731 #line 20732 "configure"
20732 #include "confdefs.h"
20733 #include <math.h>
20734 int main() {
20735 __builtin_labs(0);
20736 ; return 0; }
20738 if { (eval echo configure:20739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20739 rm -rf conftest*
20740 glibcpp_cv_func___builtin_labs_use=yes
20741 else
20742 echo "configure: failed program was:" >&5
20743 cat conftest.$ac_ext >&5
20744 rm -rf conftest*
20745 glibcpp_cv_func___builtin_labs_use=no
20747 rm -f conftest*
20748 ac_ext=c
20749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20750 ac_cpp='$CPP $CPPFLAGS'
20751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20752 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20753 cross_compiling=$ac_cv_prog_cc_cross
20759 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
20760 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
20761 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
20762 echo "configure:20763: checking for __builtin_labs linkage" >&5
20763 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
20764 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
20765 echo $ac_n "(cached) $ac_c" 1>&6
20766 else
20768 cat > conftest.$ac_ext <<EOF
20769 #line 20770 "configure"
20770 #include "confdefs.h"
20771 #include <math.h>
20772 int main() {
20773 __builtin_labs(0);
20774 ; return 0; }
20776 if { (eval echo configure:20777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20777 rm -rf conftest*
20778 glibcpp_cv_func___builtin_labs_link=yes
20779 else
20780 echo "configure: failed program was:" >&5
20781 cat conftest.$ac_ext >&5
20782 rm -rf conftest*
20783 glibcpp_cv_func___builtin_labs_link=no
20785 rm -f conftest*
20790 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
20791 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
20792 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20793 cat >> confdefs.h <<EOF
20794 #define ${ac_tr_func} 1
20802 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
20803 echo "configure:20804: checking for __builtin_sqrtf declaration" >&5
20804 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
20805 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
20806 echo $ac_n "(cached) $ac_c" 1>&6
20807 else
20810 ac_ext=C
20811 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20812 ac_cpp='$CXXCPP $CPPFLAGS'
20813 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20814 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20815 cross_compiling=$ac_cv_prog_cxx_cross
20817 cat > conftest.$ac_ext <<EOF
20818 #line 20819 "configure"
20819 #include "confdefs.h"
20820 #include <math.h>
20821 int main() {
20822 __builtin_sqrtf(0);
20823 ; return 0; }
20825 if { (eval echo configure:20826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20826 rm -rf conftest*
20827 glibcpp_cv_func___builtin_sqrtf_use=yes
20828 else
20829 echo "configure: failed program was:" >&5
20830 cat conftest.$ac_ext >&5
20831 rm -rf conftest*
20832 glibcpp_cv_func___builtin_sqrtf_use=no
20834 rm -f conftest*
20835 ac_ext=c
20836 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20837 ac_cpp='$CPP $CPPFLAGS'
20838 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20839 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20840 cross_compiling=$ac_cv_prog_cc_cross
20846 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
20847 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
20848 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
20849 echo "configure:20850: checking for __builtin_sqrtf linkage" >&5
20850 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
20851 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
20852 echo $ac_n "(cached) $ac_c" 1>&6
20853 else
20855 cat > conftest.$ac_ext <<EOF
20856 #line 20857 "configure"
20857 #include "confdefs.h"
20858 #include <math.h>
20859 int main() {
20860 __builtin_sqrtf(0);
20861 ; return 0; }
20863 if { (eval echo configure:20864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20864 rm -rf conftest*
20865 glibcpp_cv_func___builtin_sqrtf_link=yes
20866 else
20867 echo "configure: failed program was:" >&5
20868 cat conftest.$ac_ext >&5
20869 rm -rf conftest*
20870 glibcpp_cv_func___builtin_sqrtf_link=no
20872 rm -f conftest*
20877 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
20878 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
20879 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20880 cat >> confdefs.h <<EOF
20881 #define ${ac_tr_func} 1
20888 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
20889 echo "configure:20890: checking for __builtin_sqrt declaration" >&5
20890 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
20891 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
20892 echo $ac_n "(cached) $ac_c" 1>&6
20893 else
20896 ac_ext=C
20897 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20898 ac_cpp='$CXXCPP $CPPFLAGS'
20899 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20900 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20901 cross_compiling=$ac_cv_prog_cxx_cross
20903 cat > conftest.$ac_ext <<EOF
20904 #line 20905 "configure"
20905 #include "confdefs.h"
20906 #include <math.h>
20907 int main() {
20908 __builtin_sqrt(0);
20909 ; return 0; }
20911 if { (eval echo configure:20912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20912 rm -rf conftest*
20913 glibcpp_cv_func___builtin_sqrt_use=yes
20914 else
20915 echo "configure: failed program was:" >&5
20916 cat conftest.$ac_ext >&5
20917 rm -rf conftest*
20918 glibcpp_cv_func___builtin_sqrt_use=no
20920 rm -f conftest*
20921 ac_ext=c
20922 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20923 ac_cpp='$CPP $CPPFLAGS'
20924 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20925 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20926 cross_compiling=$ac_cv_prog_cc_cross
20932 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
20933 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
20934 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
20935 echo "configure:20936: checking for __builtin_sqrt linkage" >&5
20936 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
20937 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
20938 echo $ac_n "(cached) $ac_c" 1>&6
20939 else
20941 cat > conftest.$ac_ext <<EOF
20942 #line 20943 "configure"
20943 #include "confdefs.h"
20944 #include <math.h>
20945 int main() {
20946 __builtin_sqrt(0);
20947 ; return 0; }
20949 if { (eval echo configure:20950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20950 rm -rf conftest*
20951 glibcpp_cv_func___builtin_sqrt_link=yes
20952 else
20953 echo "configure: failed program was:" >&5
20954 cat conftest.$ac_ext >&5
20955 rm -rf conftest*
20956 glibcpp_cv_func___builtin_sqrt_link=no
20958 rm -f conftest*
20963 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
20964 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
20965 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20966 cat >> confdefs.h <<EOF
20967 #define ${ac_tr_func} 1
20974 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
20975 echo "configure:20976: checking for __builtin_sqrtl declaration" >&5
20976 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
20977 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
20978 echo $ac_n "(cached) $ac_c" 1>&6
20979 else
20982 ac_ext=C
20983 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20984 ac_cpp='$CXXCPP $CPPFLAGS'
20985 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20986 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20987 cross_compiling=$ac_cv_prog_cxx_cross
20989 cat > conftest.$ac_ext <<EOF
20990 #line 20991 "configure"
20991 #include "confdefs.h"
20992 #include <math.h>
20993 int main() {
20994 __builtin_sqrtl(0);
20995 ; return 0; }
20997 if { (eval echo configure:20998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20998 rm -rf conftest*
20999 glibcpp_cv_func___builtin_sqrtl_use=yes
21000 else
21001 echo "configure: failed program was:" >&5
21002 cat conftest.$ac_ext >&5
21003 rm -rf conftest*
21004 glibcpp_cv_func___builtin_sqrtl_use=no
21006 rm -f conftest*
21007 ac_ext=c
21008 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21009 ac_cpp='$CPP $CPPFLAGS'
21010 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21011 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21012 cross_compiling=$ac_cv_prog_cc_cross
21018 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
21019 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
21020 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
21021 echo "configure:21022: checking for __builtin_sqrtl linkage" >&5
21022 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
21023 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
21024 echo $ac_n "(cached) $ac_c" 1>&6
21025 else
21027 cat > conftest.$ac_ext <<EOF
21028 #line 21029 "configure"
21029 #include "confdefs.h"
21030 #include <math.h>
21031 int main() {
21032 __builtin_sqrtl(0);
21033 ; return 0; }
21035 if { (eval echo configure:21036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21036 rm -rf conftest*
21037 glibcpp_cv_func___builtin_sqrtl_link=yes
21038 else
21039 echo "configure: failed program was:" >&5
21040 cat conftest.$ac_ext >&5
21041 rm -rf conftest*
21042 glibcpp_cv_func___builtin_sqrtl_link=no
21044 rm -f conftest*
21049 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
21050 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
21051 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21052 cat >> confdefs.h <<EOF
21053 #define ${ac_tr_func} 1
21061 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
21062 echo "configure:21063: checking for __builtin_sinf declaration" >&5
21063 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
21064 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
21065 echo $ac_n "(cached) $ac_c" 1>&6
21066 else
21069 ac_ext=C
21070 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21071 ac_cpp='$CXXCPP $CPPFLAGS'
21072 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21073 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21074 cross_compiling=$ac_cv_prog_cxx_cross
21076 cat > conftest.$ac_ext <<EOF
21077 #line 21078 "configure"
21078 #include "confdefs.h"
21079 #include <math.h>
21080 int main() {
21081 __builtin_sinf(0);
21082 ; return 0; }
21084 if { (eval echo configure:21085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21085 rm -rf conftest*
21086 glibcpp_cv_func___builtin_sinf_use=yes
21087 else
21088 echo "configure: failed program was:" >&5
21089 cat conftest.$ac_ext >&5
21090 rm -rf conftest*
21091 glibcpp_cv_func___builtin_sinf_use=no
21093 rm -f conftest*
21094 ac_ext=c
21095 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21096 ac_cpp='$CPP $CPPFLAGS'
21097 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21098 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21099 cross_compiling=$ac_cv_prog_cc_cross
21105 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
21106 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
21107 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
21108 echo "configure:21109: checking for __builtin_sinf linkage" >&5
21109 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
21110 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
21111 echo $ac_n "(cached) $ac_c" 1>&6
21112 else
21114 cat > conftest.$ac_ext <<EOF
21115 #line 21116 "configure"
21116 #include "confdefs.h"
21117 #include <math.h>
21118 int main() {
21119 __builtin_sinf(0);
21120 ; return 0; }
21122 if { (eval echo configure:21123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21123 rm -rf conftest*
21124 glibcpp_cv_func___builtin_sinf_link=yes
21125 else
21126 echo "configure: failed program was:" >&5
21127 cat conftest.$ac_ext >&5
21128 rm -rf conftest*
21129 glibcpp_cv_func___builtin_sinf_link=no
21131 rm -f conftest*
21136 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
21137 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
21138 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21139 cat >> confdefs.h <<EOF
21140 #define ${ac_tr_func} 1
21147 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
21148 echo "configure:21149: checking for __builtin_sin declaration" >&5
21149 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
21150 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
21151 echo $ac_n "(cached) $ac_c" 1>&6
21152 else
21155 ac_ext=C
21156 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21157 ac_cpp='$CXXCPP $CPPFLAGS'
21158 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21159 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21160 cross_compiling=$ac_cv_prog_cxx_cross
21162 cat > conftest.$ac_ext <<EOF
21163 #line 21164 "configure"
21164 #include "confdefs.h"
21165 #include <math.h>
21166 int main() {
21167 __builtin_sin(0);
21168 ; return 0; }
21170 if { (eval echo configure:21171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21171 rm -rf conftest*
21172 glibcpp_cv_func___builtin_sin_use=yes
21173 else
21174 echo "configure: failed program was:" >&5
21175 cat conftest.$ac_ext >&5
21176 rm -rf conftest*
21177 glibcpp_cv_func___builtin_sin_use=no
21179 rm -f conftest*
21180 ac_ext=c
21181 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21182 ac_cpp='$CPP $CPPFLAGS'
21183 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21184 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21185 cross_compiling=$ac_cv_prog_cc_cross
21191 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
21192 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
21193 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
21194 echo "configure:21195: checking for __builtin_sin linkage" >&5
21195 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
21196 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
21197 echo $ac_n "(cached) $ac_c" 1>&6
21198 else
21200 cat > conftest.$ac_ext <<EOF
21201 #line 21202 "configure"
21202 #include "confdefs.h"
21203 #include <math.h>
21204 int main() {
21205 __builtin_sin(0);
21206 ; return 0; }
21208 if { (eval echo configure:21209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21209 rm -rf conftest*
21210 glibcpp_cv_func___builtin_sin_link=yes
21211 else
21212 echo "configure: failed program was:" >&5
21213 cat conftest.$ac_ext >&5
21214 rm -rf conftest*
21215 glibcpp_cv_func___builtin_sin_link=no
21217 rm -f conftest*
21222 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
21223 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
21224 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21225 cat >> confdefs.h <<EOF
21226 #define ${ac_tr_func} 1
21233 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
21234 echo "configure:21235: checking for __builtin_sinl declaration" >&5
21235 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
21236 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
21237 echo $ac_n "(cached) $ac_c" 1>&6
21238 else
21241 ac_ext=C
21242 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21243 ac_cpp='$CXXCPP $CPPFLAGS'
21244 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21245 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21246 cross_compiling=$ac_cv_prog_cxx_cross
21248 cat > conftest.$ac_ext <<EOF
21249 #line 21250 "configure"
21250 #include "confdefs.h"
21251 #include <math.h>
21252 int main() {
21253 __builtin_sinl(0);
21254 ; return 0; }
21256 if { (eval echo configure:21257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21257 rm -rf conftest*
21258 glibcpp_cv_func___builtin_sinl_use=yes
21259 else
21260 echo "configure: failed program was:" >&5
21261 cat conftest.$ac_ext >&5
21262 rm -rf conftest*
21263 glibcpp_cv_func___builtin_sinl_use=no
21265 rm -f conftest*
21266 ac_ext=c
21267 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21268 ac_cpp='$CPP $CPPFLAGS'
21269 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21270 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21271 cross_compiling=$ac_cv_prog_cc_cross
21277 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
21278 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
21279 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
21280 echo "configure:21281: checking for __builtin_sinl linkage" >&5
21281 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
21282 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
21283 echo $ac_n "(cached) $ac_c" 1>&6
21284 else
21286 cat > conftest.$ac_ext <<EOF
21287 #line 21288 "configure"
21288 #include "confdefs.h"
21289 #include <math.h>
21290 int main() {
21291 __builtin_sinl(0);
21292 ; return 0; }
21294 if { (eval echo configure:21295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21295 rm -rf conftest*
21296 glibcpp_cv_func___builtin_sinl_link=yes
21297 else
21298 echo "configure: failed program was:" >&5
21299 cat conftest.$ac_ext >&5
21300 rm -rf conftest*
21301 glibcpp_cv_func___builtin_sinl_link=no
21303 rm -f conftest*
21308 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
21309 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
21310 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21311 cat >> confdefs.h <<EOF
21312 #define ${ac_tr_func} 1
21320 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
21321 echo "configure:21322: checking for __builtin_cosf declaration" >&5
21322 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
21323 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
21324 echo $ac_n "(cached) $ac_c" 1>&6
21325 else
21328 ac_ext=C
21329 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21330 ac_cpp='$CXXCPP $CPPFLAGS'
21331 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21332 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21333 cross_compiling=$ac_cv_prog_cxx_cross
21335 cat > conftest.$ac_ext <<EOF
21336 #line 21337 "configure"
21337 #include "confdefs.h"
21338 #include <math.h>
21339 int main() {
21340 __builtin_cosf(0);
21341 ; return 0; }
21343 if { (eval echo configure:21344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21344 rm -rf conftest*
21345 glibcpp_cv_func___builtin_cosf_use=yes
21346 else
21347 echo "configure: failed program was:" >&5
21348 cat conftest.$ac_ext >&5
21349 rm -rf conftest*
21350 glibcpp_cv_func___builtin_cosf_use=no
21352 rm -f conftest*
21353 ac_ext=c
21354 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21355 ac_cpp='$CPP $CPPFLAGS'
21356 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21357 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21358 cross_compiling=$ac_cv_prog_cc_cross
21364 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
21365 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
21366 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
21367 echo "configure:21368: checking for __builtin_cosf linkage" >&5
21368 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
21369 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
21370 echo $ac_n "(cached) $ac_c" 1>&6
21371 else
21373 cat > conftest.$ac_ext <<EOF
21374 #line 21375 "configure"
21375 #include "confdefs.h"
21376 #include <math.h>
21377 int main() {
21378 __builtin_cosf(0);
21379 ; return 0; }
21381 if { (eval echo configure:21382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21382 rm -rf conftest*
21383 glibcpp_cv_func___builtin_cosf_link=yes
21384 else
21385 echo "configure: failed program was:" >&5
21386 cat conftest.$ac_ext >&5
21387 rm -rf conftest*
21388 glibcpp_cv_func___builtin_cosf_link=no
21390 rm -f conftest*
21395 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
21396 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
21397 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21398 cat >> confdefs.h <<EOF
21399 #define ${ac_tr_func} 1
21406 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
21407 echo "configure:21408: checking for __builtin_cos declaration" >&5
21408 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
21409 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
21410 echo $ac_n "(cached) $ac_c" 1>&6
21411 else
21414 ac_ext=C
21415 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21416 ac_cpp='$CXXCPP $CPPFLAGS'
21417 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21418 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21419 cross_compiling=$ac_cv_prog_cxx_cross
21421 cat > conftest.$ac_ext <<EOF
21422 #line 21423 "configure"
21423 #include "confdefs.h"
21424 #include <math.h>
21425 int main() {
21426 __builtin_cos(0);
21427 ; return 0; }
21429 if { (eval echo configure:21430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21430 rm -rf conftest*
21431 glibcpp_cv_func___builtin_cos_use=yes
21432 else
21433 echo "configure: failed program was:" >&5
21434 cat conftest.$ac_ext >&5
21435 rm -rf conftest*
21436 glibcpp_cv_func___builtin_cos_use=no
21438 rm -f conftest*
21439 ac_ext=c
21440 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21441 ac_cpp='$CPP $CPPFLAGS'
21442 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21443 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21444 cross_compiling=$ac_cv_prog_cc_cross
21450 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
21451 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
21452 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
21453 echo "configure:21454: checking for __builtin_cos linkage" >&5
21454 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
21455 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
21456 echo $ac_n "(cached) $ac_c" 1>&6
21457 else
21459 cat > conftest.$ac_ext <<EOF
21460 #line 21461 "configure"
21461 #include "confdefs.h"
21462 #include <math.h>
21463 int main() {
21464 __builtin_cos(0);
21465 ; return 0; }
21467 if { (eval echo configure:21468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21468 rm -rf conftest*
21469 glibcpp_cv_func___builtin_cos_link=yes
21470 else
21471 echo "configure: failed program was:" >&5
21472 cat conftest.$ac_ext >&5
21473 rm -rf conftest*
21474 glibcpp_cv_func___builtin_cos_link=no
21476 rm -f conftest*
21481 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
21482 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
21483 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21484 cat >> confdefs.h <<EOF
21485 #define ${ac_tr_func} 1
21492 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
21493 echo "configure:21494: checking for __builtin_cosl declaration" >&5
21494 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
21495 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
21496 echo $ac_n "(cached) $ac_c" 1>&6
21497 else
21500 ac_ext=C
21501 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21502 ac_cpp='$CXXCPP $CPPFLAGS'
21503 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21504 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21505 cross_compiling=$ac_cv_prog_cxx_cross
21507 cat > conftest.$ac_ext <<EOF
21508 #line 21509 "configure"
21509 #include "confdefs.h"
21510 #include <math.h>
21511 int main() {
21512 __builtin_cosl(0);
21513 ; return 0; }
21515 if { (eval echo configure:21516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21516 rm -rf conftest*
21517 glibcpp_cv_func___builtin_cosl_use=yes
21518 else
21519 echo "configure: failed program was:" >&5
21520 cat conftest.$ac_ext >&5
21521 rm -rf conftest*
21522 glibcpp_cv_func___builtin_cosl_use=no
21524 rm -f conftest*
21525 ac_ext=c
21526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21527 ac_cpp='$CPP $CPPFLAGS'
21528 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21529 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21530 cross_compiling=$ac_cv_prog_cc_cross
21536 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
21537 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
21538 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
21539 echo "configure:21540: checking for __builtin_cosl linkage" >&5
21540 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
21541 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
21542 echo $ac_n "(cached) $ac_c" 1>&6
21543 else
21545 cat > conftest.$ac_ext <<EOF
21546 #line 21547 "configure"
21547 #include "confdefs.h"
21548 #include <math.h>
21549 int main() {
21550 __builtin_cosl(0);
21551 ; return 0; }
21553 if { (eval echo configure:21554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21554 rm -rf conftest*
21555 glibcpp_cv_func___builtin_cosl_link=yes
21556 else
21557 echo "configure: failed program was:" >&5
21558 cat conftest.$ac_ext >&5
21559 rm -rf conftest*
21560 glibcpp_cv_func___builtin_cosl_link=no
21562 rm -f conftest*
21567 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
21568 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
21569 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21570 cat >> confdefs.h <<EOF
21571 #define ${ac_tr_func} 1
21578 dummyvar=no
21579 if test x$dummyvar = x"yes"; then
21580 cat >> confdefs.h <<\EOF
21581 #define HAVE___BUILTIN_ABS 1
21584 cat >> confdefs.h <<\EOF
21585 #define HAVE___BUILTIN_LABS 1
21588 cat >> confdefs.h <<\EOF
21589 #define HAVE___BUILTIN_COS 1
21592 cat >> confdefs.h <<\EOF
21593 #define HAVE___BUILTIN_COSF 1
21596 cat >> confdefs.h <<\EOF
21597 #define HAVE___BUILTIN_COSL 1
21600 cat >> confdefs.h <<\EOF
21601 #define HAVE___BUILTIN_FABS 1
21604 cat >> confdefs.h <<\EOF
21605 #define HAVE___BUILTIN_FABSF 1
21608 cat >> confdefs.h <<\EOF
21609 #define HAVE___BUILTIN_FABSL 1
21612 cat >> confdefs.h <<\EOF
21613 #define HAVE___BUILTIN_SIN 1
21616 cat >> confdefs.h <<\EOF
21617 #define HAVE___BUILTIN_SINF 1
21620 cat >> confdefs.h <<\EOF
21621 #define HAVE___BUILTIN_SINL 1
21624 cat >> confdefs.h <<\EOF
21625 #define HAVE___BUILTIN_SQRT 1
21628 cat >> confdefs.h <<\EOF
21629 #define HAVE___BUILTIN_SQRTF 1
21632 cat >> confdefs.h <<\EOF
21633 #define HAVE___BUILTIN_SQRTL 1
21639 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21640 echo "configure:21641: checking for main in -lm" >&5
21641 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21643 echo $ac_n "(cached) $ac_c" 1>&6
21644 else
21645 ac_save_LIBS="$LIBS"
21646 LIBS="-lm $LIBS"
21647 cat > conftest.$ac_ext <<EOF
21648 #line 21649 "configure"
21649 #include "confdefs.h"
21651 int main() {
21652 main()
21653 ; return 0; }
21655 if { (eval echo configure:21656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21656 rm -rf conftest*
21657 eval "ac_cv_lib_$ac_lib_var=yes"
21658 else
21659 echo "configure: failed program was:" >&5
21660 cat conftest.$ac_ext >&5
21661 rm -rf conftest*
21662 eval "ac_cv_lib_$ac_lib_var=no"
21664 rm -f conftest*
21665 LIBS="$ac_save_LIBS"
21668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21669 echo "$ac_t""yes" 1>&6
21670 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21671 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21672 cat >> confdefs.h <<EOF
21673 #define $ac_tr_lib 1
21676 LIBS="-lm $LIBS"
21678 else
21679 echo "$ac_t""no" 1>&6
21682 for ac_func in nan copysignf
21684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21685 echo "configure:21686: checking for $ac_func" >&5
21686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21687 echo $ac_n "(cached) $ac_c" 1>&6
21688 else
21689 cat > conftest.$ac_ext <<EOF
21690 #line 21691 "configure"
21691 #include "confdefs.h"
21692 /* System header to define __stub macros and hopefully few prototypes,
21693 which can conflict with char $ac_func(); below. */
21694 #include <assert.h>
21695 /* Override any gcc2 internal prototype to avoid an error. */
21696 /* We use char because int might match the return type of a gcc2
21697 builtin and then its argument prototype would still apply. */
21698 char $ac_func();
21700 int main() {
21702 /* The GNU C library defines this for functions which it implements
21703 to always fail with ENOSYS. Some functions are actually named
21704 something starting with __ and the normal name is an alias. */
21705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21706 choke me
21707 #else
21708 $ac_func();
21709 #endif
21711 ; return 0; }
21713 if { (eval echo configure:21714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21714 rm -rf conftest*
21715 eval "ac_cv_func_$ac_func=yes"
21716 else
21717 echo "configure: failed program was:" >&5
21718 cat conftest.$ac_ext >&5
21719 rm -rf conftest*
21720 eval "ac_cv_func_$ac_func=no"
21722 rm -f conftest*
21725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21726 echo "$ac_t""yes" 1>&6
21727 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21728 cat >> confdefs.h <<EOF
21729 #define $ac_tr_func 1
21732 else
21733 echo "$ac_t""no" 1>&6
21734 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21736 done
21739 for ac_func in __signbit
21741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21742 echo "configure:21743: checking for $ac_func" >&5
21743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21744 echo $ac_n "(cached) $ac_c" 1>&6
21745 else
21746 cat > conftest.$ac_ext <<EOF
21747 #line 21748 "configure"
21748 #include "confdefs.h"
21749 /* System header to define __stub macros and hopefully few prototypes,
21750 which can conflict with char $ac_func(); below. */
21751 #include <assert.h>
21752 /* Override any gcc2 internal prototype to avoid an error. */
21753 /* We use char because int might match the return type of a gcc2
21754 builtin and then its argument prototype would still apply. */
21755 char $ac_func();
21757 int main() {
21759 /* The GNU C library defines this for functions which it implements
21760 to always fail with ENOSYS. Some functions are actually named
21761 something starting with __ and the normal name is an alias. */
21762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21763 choke me
21764 #else
21765 $ac_func();
21766 #endif
21768 ; return 0; }
21770 if { (eval echo configure:21771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21771 rm -rf conftest*
21772 eval "ac_cv_func_$ac_func=yes"
21773 else
21774 echo "configure: failed program was:" >&5
21775 cat conftest.$ac_ext >&5
21776 rm -rf conftest*
21777 eval "ac_cv_func_$ac_func=no"
21779 rm -f conftest*
21782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21783 echo "$ac_t""yes" 1>&6
21784 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21785 cat >> confdefs.h <<EOF
21786 #define $ac_tr_func 1
21789 else
21790 echo "$ac_t""no" 1>&6
21791 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21793 done
21795 for ac_func in __signbitf
21797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21798 echo "configure:21799: checking for $ac_func" >&5
21799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21800 echo $ac_n "(cached) $ac_c" 1>&6
21801 else
21802 cat > conftest.$ac_ext <<EOF
21803 #line 21804 "configure"
21804 #include "confdefs.h"
21805 /* System header to define __stub macros and hopefully few prototypes,
21806 which can conflict with char $ac_func(); below. */
21807 #include <assert.h>
21808 /* Override any gcc2 internal prototype to avoid an error. */
21809 /* We use char because int might match the return type of a gcc2
21810 builtin and then its argument prototype would still apply. */
21811 char $ac_func();
21813 int main() {
21815 /* The GNU C library defines this for functions which it implements
21816 to always fail with ENOSYS. Some functions are actually named
21817 something starting with __ and the normal name is an alias. */
21818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21819 choke me
21820 #else
21821 $ac_func();
21822 #endif
21824 ; return 0; }
21826 if { (eval echo configure:21827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21827 rm -rf conftest*
21828 eval "ac_cv_func_$ac_func=yes"
21829 else
21830 echo "configure: failed program was:" >&5
21831 cat conftest.$ac_ext >&5
21832 rm -rf conftest*
21833 eval "ac_cv_func_$ac_func=no"
21835 rm -f conftest*
21838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21839 echo "$ac_t""yes" 1>&6
21840 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21841 cat >> confdefs.h <<EOF
21842 #define $ac_tr_func 1
21845 else
21846 echo "$ac_t""no" 1>&6
21847 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
21849 done
21852 if test x$ac_cv_func_copysignl = x"yes"; then
21853 for ac_func in __signbitl
21855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21856 echo "configure:21857: checking for $ac_func" >&5
21857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21858 echo $ac_n "(cached) $ac_c" 1>&6
21859 else
21860 cat > conftest.$ac_ext <<EOF
21861 #line 21862 "configure"
21862 #include "confdefs.h"
21863 /* System header to define __stub macros and hopefully few prototypes,
21864 which can conflict with char $ac_func(); below. */
21865 #include <assert.h>
21866 /* Override any gcc2 internal prototype to avoid an error. */
21867 /* We use char because int might match the return type of a gcc2
21868 builtin and then its argument prototype would still apply. */
21869 char $ac_func();
21871 int main() {
21873 /* The GNU C library defines this for functions which it implements
21874 to always fail with ENOSYS. Some functions are actually named
21875 something starting with __ and the normal name is an alias. */
21876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21877 choke me
21878 #else
21879 $ac_func();
21880 #endif
21882 ; return 0; }
21884 if { (eval echo configure:21885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21885 rm -rf conftest*
21886 eval "ac_cv_func_$ac_func=yes"
21887 else
21888 echo "configure: failed program was:" >&5
21889 cat conftest.$ac_ext >&5
21890 rm -rf conftest*
21891 eval "ac_cv_func_$ac_func=no"
21893 rm -f conftest*
21896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21897 echo "$ac_t""yes" 1>&6
21898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21899 cat >> confdefs.h <<EOF
21900 #define $ac_tr_func 1
21903 else
21904 echo "$ac_t""no" 1>&6
21905 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
21907 done
21911 if test -n "$LIBMATHOBJS"; then
21912 need_libmath=yes
21918 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
21919 echo "configure:21920: checking for mbstate_t" >&5
21920 cat > conftest.$ac_ext <<EOF
21921 #line 21922 "configure"
21922 #include "confdefs.h"
21923 #include <wchar.h>
21924 int main() {
21925 mbstate_t teststate;
21926 ; return 0; }
21928 if { (eval echo configure:21929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21929 rm -rf conftest*
21930 have_mbstate_t=yes
21931 else
21932 echo "configure: failed program was:" >&5
21933 cat conftest.$ac_ext >&5
21934 rm -rf conftest*
21935 have_mbstate_t=no
21937 rm -f conftest*
21938 echo "$ac_t""$have_mbstate_t" 1>&6
21939 if test x"$have_mbstate_t" = xyes; then
21940 cat >> confdefs.h <<\EOF
21941 #define HAVE_MBSTATE_T 1
21946 for ac_hdr in wchar.h
21948 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21949 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21950 echo "configure:21951: checking for $ac_hdr" >&5
21951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21952 echo $ac_n "(cached) $ac_c" 1>&6
21953 else
21954 cat > conftest.$ac_ext <<EOF
21955 #line 21956 "configure"
21956 #include "confdefs.h"
21957 #include <$ac_hdr>
21959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21960 { (eval echo configure:21961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21962 if test -z "$ac_err"; then
21963 rm -rf conftest*
21964 eval "ac_cv_header_$ac_safe=yes"
21965 else
21966 echo "$ac_err" >&5
21967 echo "configure: failed program was:" >&5
21968 cat conftest.$ac_ext >&5
21969 rm -rf conftest*
21970 eval "ac_cv_header_$ac_safe=no"
21972 rm -f conftest*
21974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21975 echo "$ac_t""yes" 1>&6
21976 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21977 cat >> confdefs.h <<EOF
21978 #define $ac_tr_hdr 1
21980 ac_has_wchar_h=yes
21981 else
21982 echo "$ac_t""no" 1>&6
21983 ac_has_wchar_h=no
21985 done
21987 for ac_hdr in wctype.h
21989 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21990 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21991 echo "configure:21992: checking for $ac_hdr" >&5
21992 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21993 echo $ac_n "(cached) $ac_c" 1>&6
21994 else
21995 cat > conftest.$ac_ext <<EOF
21996 #line 21997 "configure"
21997 #include "confdefs.h"
21998 #include <$ac_hdr>
22000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22001 { (eval echo configure:22002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22002 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22003 if test -z "$ac_err"; then
22004 rm -rf conftest*
22005 eval "ac_cv_header_$ac_safe=yes"
22006 else
22007 echo "$ac_err" >&5
22008 echo "configure: failed program was:" >&5
22009 cat conftest.$ac_ext >&5
22010 rm -rf conftest*
22011 eval "ac_cv_header_$ac_safe=no"
22013 rm -f conftest*
22015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22016 echo "$ac_t""yes" 1>&6
22017 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22018 cat >> confdefs.h <<EOF
22019 #define $ac_tr_hdr 1
22021 ac_has_wctype_h=yes
22022 else
22023 echo "$ac_t""no" 1>&6
22024 ac_has_wctype_h=no
22026 done
22029 if test x"$ac_has_wchar_h" = xyes &&
22030 test x"$ac_has_wctype_h" = xyes &&
22031 test x"$enable_c_mbchar" != xno; then
22033 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22034 echo "configure:22035: checking for WCHAR_MIN and WCHAR_MAX" >&5
22035 cat > conftest.$ac_ext <<EOF
22036 #line 22037 "configure"
22037 #include "confdefs.h"
22038 #include <wchar.h>
22039 int main() {
22040 int i = WCHAR_MIN; int j = WCHAR_MAX;
22041 ; return 0; }
22043 if { (eval echo configure:22044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22044 rm -rf conftest*
22045 has_wchar_minmax=yes
22046 else
22047 echo "configure: failed program was:" >&5
22048 cat conftest.$ac_ext >&5
22049 rm -rf conftest*
22050 has_wchar_minmax=no
22052 rm -f conftest*
22053 echo "$ac_t""$has_wchar_minmax" 1>&6
22055 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22056 echo "configure:22057: checking for WEOF" >&5
22057 cat > conftest.$ac_ext <<EOF
22058 #line 22059 "configure"
22059 #include "confdefs.h"
22061 #include <wchar.h>
22062 #include <stddef.h>
22063 int main() {
22064 wint_t i = WEOF;
22065 ; return 0; }
22067 if { (eval echo configure:22068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22068 rm -rf conftest*
22069 has_weof=yes
22070 else
22071 echo "configure: failed program was:" >&5
22072 cat conftest.$ac_ext >&5
22073 rm -rf conftest*
22074 has_weof=no
22076 rm -f conftest*
22077 echo "$ac_t""$has_weof" 1>&6
22079 ac_wfuncs=yes
22080 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22083 echo "configure:22084: checking for $ac_func" >&5
22084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22085 echo $ac_n "(cached) $ac_c" 1>&6
22086 else
22087 cat > conftest.$ac_ext <<EOF
22088 #line 22089 "configure"
22089 #include "confdefs.h"
22090 /* System header to define __stub macros and hopefully few prototypes,
22091 which can conflict with char $ac_func(); below. */
22092 #include <assert.h>
22093 /* Override any gcc2 internal prototype to avoid an error. */
22094 /* We use char because int might match the return type of a gcc2
22095 builtin and then its argument prototype would still apply. */
22096 char $ac_func();
22098 int main() {
22100 /* The GNU C library defines this for functions which it implements
22101 to always fail with ENOSYS. Some functions are actually named
22102 something starting with __ and the normal name is an alias. */
22103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22104 choke me
22105 #else
22106 $ac_func();
22107 #endif
22109 ; return 0; }
22111 if { (eval echo configure:22112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22112 rm -rf conftest*
22113 eval "ac_cv_func_$ac_func=yes"
22114 else
22115 echo "configure: failed program was:" >&5
22116 cat conftest.$ac_ext >&5
22117 rm -rf conftest*
22118 eval "ac_cv_func_$ac_func=no"
22120 rm -f conftest*
22123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22124 echo "$ac_t""yes" 1>&6
22125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22126 cat >> confdefs.h <<EOF
22127 #define $ac_tr_func 1
22130 else
22131 echo "$ac_t""no" 1>&6
22133 ac_wfuncs=no
22135 done
22138 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22139 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22140 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22141 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22142 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22143 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22146 echo "configure:22147: checking for $ac_func" >&5
22147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22148 echo $ac_n "(cached) $ac_c" 1>&6
22149 else
22150 cat > conftest.$ac_ext <<EOF
22151 #line 22152 "configure"
22152 #include "confdefs.h"
22153 /* System header to define __stub macros and hopefully few prototypes,
22154 which can conflict with char $ac_func(); below. */
22155 #include <assert.h>
22156 /* Override any gcc2 internal prototype to avoid an error. */
22157 /* We use char because int might match the return type of a gcc2
22158 builtin and then its argument prototype would still apply. */
22159 char $ac_func();
22161 int main() {
22163 /* The GNU C library defines this for functions which it implements
22164 to always fail with ENOSYS. Some functions are actually named
22165 something starting with __ and the normal name is an alias. */
22166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22167 choke me
22168 #else
22169 $ac_func();
22170 #endif
22172 ; return 0; }
22174 if { (eval echo configure:22175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22175 rm -rf conftest*
22176 eval "ac_cv_func_$ac_func=yes"
22177 else
22178 echo "configure: failed program was:" >&5
22179 cat conftest.$ac_ext >&5
22180 rm -rf conftest*
22181 eval "ac_cv_func_$ac_func=no"
22183 rm -f conftest*
22186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22187 echo "$ac_t""yes" 1>&6
22188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22189 cat >> confdefs.h <<EOF
22190 #define $ac_tr_func 1
22193 else
22194 echo "$ac_t""no" 1>&6
22196 ac_wfuncs=no
22198 done
22201 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22202 echo "configure:22203: checking for ISO C99 wchar_t support" >&5
22203 if test x"$has_weof" = xyes &&
22204 test x"$has_wchar_minmax" = xyes &&
22205 test x"$ac_wfuncs" = xyes; then
22206 ac_isoC99_wchar_t=yes
22207 else
22208 ac_isoC99_wchar_t=no
22210 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22212 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22213 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22214 echo "configure:22215: checking for iconv.h" >&5
22215 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22216 echo $ac_n "(cached) $ac_c" 1>&6
22217 else
22218 cat > conftest.$ac_ext <<EOF
22219 #line 22220 "configure"
22220 #include "confdefs.h"
22221 #include <iconv.h>
22223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22224 { (eval echo configure:22225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22225 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22226 if test -z "$ac_err"; then
22227 rm -rf conftest*
22228 eval "ac_cv_header_$ac_safe=yes"
22229 else
22230 echo "$ac_err" >&5
22231 echo "configure: failed program was:" >&5
22232 cat conftest.$ac_ext >&5
22233 rm -rf conftest*
22234 eval "ac_cv_header_$ac_safe=no"
22236 rm -f conftest*
22238 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22239 echo "$ac_t""yes" 1>&6
22240 ac_has_iconv_h=yes
22241 else
22242 echo "$ac_t""no" 1>&6
22243 ac_has_iconv_h=no
22246 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22247 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22248 echo "configure:22249: checking for langinfo.h" >&5
22249 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22250 echo $ac_n "(cached) $ac_c" 1>&6
22251 else
22252 cat > conftest.$ac_ext <<EOF
22253 #line 22254 "configure"
22254 #include "confdefs.h"
22255 #include <langinfo.h>
22257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22258 { (eval echo configure:22259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22260 if test -z "$ac_err"; then
22261 rm -rf conftest*
22262 eval "ac_cv_header_$ac_safe=yes"
22263 else
22264 echo "$ac_err" >&5
22265 echo "configure: failed program was:" >&5
22266 cat conftest.$ac_ext >&5
22267 rm -rf conftest*
22268 eval "ac_cv_header_$ac_safe=no"
22270 rm -f conftest*
22272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22273 echo "$ac_t""yes" 1>&6
22274 ac_has_langinfo_h=yes
22275 else
22276 echo "$ac_t""no" 1>&6
22277 ac_has_langinfo_h=no
22281 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22282 echo "configure:22283: checking for iconv in -liconv" >&5
22283 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22284 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22285 echo $ac_n "(cached) $ac_c" 1>&6
22286 else
22287 ac_save_LIBS="$LIBS"
22288 LIBS="-liconv $LIBS"
22289 cat > conftest.$ac_ext <<EOF
22290 #line 22291 "configure"
22291 #include "confdefs.h"
22292 /* Override any gcc2 internal prototype to avoid an error. */
22293 /* We use char because int might match the return type of a gcc2
22294 builtin and then its argument prototype would still apply. */
22295 char iconv();
22297 int main() {
22298 iconv()
22299 ; return 0; }
22301 if { (eval echo configure:22302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22302 rm -rf conftest*
22303 eval "ac_cv_lib_$ac_lib_var=yes"
22304 else
22305 echo "configure: failed program was:" >&5
22306 cat conftest.$ac_ext >&5
22307 rm -rf conftest*
22308 eval "ac_cv_lib_$ac_lib_var=no"
22310 rm -f conftest*
22311 LIBS="$ac_save_LIBS"
22314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22315 echo "$ac_t""yes" 1>&6
22316 libiconv="-liconv"
22317 else
22318 echo "$ac_t""no" 1>&6
22321 ac_save_LIBS="$LIBS"
22322 LIBS="$LIBS $libiconv"
22324 for ac_func in iconv_open iconv_close iconv nl_langinfo
22326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22327 echo "configure:22328: checking for $ac_func" >&5
22328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22329 echo $ac_n "(cached) $ac_c" 1>&6
22330 else
22331 cat > conftest.$ac_ext <<EOF
22332 #line 22333 "configure"
22333 #include "confdefs.h"
22334 /* System header to define __stub macros and hopefully few prototypes,
22335 which can conflict with char $ac_func(); below. */
22336 #include <assert.h>
22337 /* Override any gcc2 internal prototype to avoid an error. */
22338 /* We use char because int might match the return type of a gcc2
22339 builtin and then its argument prototype would still apply. */
22340 char $ac_func();
22342 int main() {
22344 /* The GNU C library defines this for functions which it implements
22345 to always fail with ENOSYS. Some functions are actually named
22346 something starting with __ and the normal name is an alias. */
22347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22348 choke me
22349 #else
22350 $ac_func();
22351 #endif
22353 ; return 0; }
22355 if { (eval echo configure:22356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22356 rm -rf conftest*
22357 eval "ac_cv_func_$ac_func=yes"
22358 else
22359 echo "configure: failed program was:" >&5
22360 cat conftest.$ac_ext >&5
22361 rm -rf conftest*
22362 eval "ac_cv_func_$ac_func=no"
22364 rm -f conftest*
22367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22368 echo "$ac_t""yes" 1>&6
22369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22370 cat >> confdefs.h <<EOF
22371 #define $ac_tr_func 1
22374 ac_XPG2funcs=yes
22375 else
22376 echo "$ac_t""no" 1>&6
22377 ac_XPG2funcs=no
22379 done
22382 LIBS="$ac_save_LIBS"
22384 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22385 echo "configure:22386: checking for XPG2 wchar_t support" >&5
22386 if test x"$ac_has_iconv_h" = xyes &&
22387 test x"$ac_has_langinfo_h" = xyes &&
22388 test x"$ac_XPG2funcs" = xyes; then
22389 ac_XPG2_wchar_t=yes
22390 else
22391 ac_XPG2_wchar_t=no
22393 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22395 if test x"$ac_isoC99_wchar_t" = xyes &&
22396 test x"$ac_XPG2_wchar_t" = xyes; then
22397 cat >> confdefs.h <<\EOF
22398 #define _GLIBCPP_USE_WCHAR_T 1
22401 enable_wchar_t=yes
22404 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22405 echo "configure:22406: checking for enabled wchar_t specializations" >&5
22406 echo "$ac_t""$enable_wchar_t" 1>&6
22409 ac_test_CXXFLAGS="${CXXFLAGS+set}"
22410 ac_save_CXXFLAGS="$CXXFLAGS"
22411 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22414 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22415 echo "configure:22416: checking for strtold declaration" >&5
22416 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22417 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22418 echo $ac_n "(cached) $ac_c" 1>&6
22419 else
22422 ac_ext=C
22423 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22424 ac_cpp='$CXXCPP $CPPFLAGS'
22425 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22426 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22427 cross_compiling=$ac_cv_prog_cxx_cross
22429 cat > conftest.$ac_ext <<EOF
22430 #line 22431 "configure"
22431 #include "confdefs.h"
22432 #include <stdlib.h>
22433 int main() {
22434 strtold(0, 0);
22435 ; return 0; }
22437 if { (eval echo configure:22438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22438 rm -rf conftest*
22439 glibcpp_cv_func_strtold_use=yes
22440 else
22441 echo "configure: failed program was:" >&5
22442 cat conftest.$ac_ext >&5
22443 rm -rf conftest*
22444 glibcpp_cv_func_strtold_use=no
22446 rm -f conftest*
22447 ac_ext=c
22448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22449 ac_cpp='$CPP $CPPFLAGS'
22450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22452 cross_compiling=$ac_cv_prog_cc_cross
22458 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22459 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22460 for ac_func in strtold
22462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22463 echo "configure:22464: checking for $ac_func" >&5
22464 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22465 echo $ac_n "(cached) $ac_c" 1>&6
22466 else
22467 cat > conftest.$ac_ext <<EOF
22468 #line 22469 "configure"
22469 #include "confdefs.h"
22470 /* System header to define __stub macros and hopefully few prototypes,
22471 which can conflict with char $ac_func(); below. */
22472 #include <assert.h>
22473 /* Override any gcc2 internal prototype to avoid an error. */
22474 /* We use char because int might match the return type of a gcc2
22475 builtin and then its argument prototype would still apply. */
22476 char $ac_func();
22478 int main() {
22480 /* The GNU C library defines this for functions which it implements
22481 to always fail with ENOSYS. Some functions are actually named
22482 something starting with __ and the normal name is an alias. */
22483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22484 choke me
22485 #else
22486 $ac_func();
22487 #endif
22489 ; return 0; }
22491 if { (eval echo configure:22492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22492 rm -rf conftest*
22493 eval "ac_cv_func_$ac_func=yes"
22494 else
22495 echo "configure: failed program was:" >&5
22496 cat conftest.$ac_ext >&5
22497 rm -rf conftest*
22498 eval "ac_cv_func_$ac_func=no"
22500 rm -f conftest*
22503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22504 echo "$ac_t""yes" 1>&6
22505 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22506 cat >> confdefs.h <<EOF
22507 #define $ac_tr_func 1
22510 else
22511 echo "$ac_t""no" 1>&6
22513 done
22518 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22519 echo "configure:22520: checking for strtof declaration" >&5
22520 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22521 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22522 echo $ac_n "(cached) $ac_c" 1>&6
22523 else
22526 ac_ext=C
22527 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22528 ac_cpp='$CXXCPP $CPPFLAGS'
22529 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22530 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22531 cross_compiling=$ac_cv_prog_cxx_cross
22533 cat > conftest.$ac_ext <<EOF
22534 #line 22535 "configure"
22535 #include "confdefs.h"
22536 #include <stdlib.h>
22537 int main() {
22538 strtof(0, 0);
22539 ; return 0; }
22541 if { (eval echo configure:22542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22542 rm -rf conftest*
22543 glibcpp_cv_func_strtof_use=yes
22544 else
22545 echo "configure: failed program was:" >&5
22546 cat conftest.$ac_ext >&5
22547 rm -rf conftest*
22548 glibcpp_cv_func_strtof_use=no
22550 rm -f conftest*
22551 ac_ext=c
22552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22553 ac_cpp='$CPP $CPPFLAGS'
22554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22556 cross_compiling=$ac_cv_prog_cc_cross
22562 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22563 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22564 for ac_func in strtof
22566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22567 echo "configure:22568: checking for $ac_func" >&5
22568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22569 echo $ac_n "(cached) $ac_c" 1>&6
22570 else
22571 cat > conftest.$ac_ext <<EOF
22572 #line 22573 "configure"
22573 #include "confdefs.h"
22574 /* System header to define __stub macros and hopefully few prototypes,
22575 which can conflict with char $ac_func(); below. */
22576 #include <assert.h>
22577 /* Override any gcc2 internal prototype to avoid an error. */
22578 /* We use char because int might match the return type of a gcc2
22579 builtin and then its argument prototype would still apply. */
22580 char $ac_func();
22582 int main() {
22584 /* The GNU C library defines this for functions which it implements
22585 to always fail with ENOSYS. Some functions are actually named
22586 something starting with __ and the normal name is an alias. */
22587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22588 choke me
22589 #else
22590 $ac_func();
22591 #endif
22593 ; return 0; }
22595 if { (eval echo configure:22596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22596 rm -rf conftest*
22597 eval "ac_cv_func_$ac_func=yes"
22598 else
22599 echo "configure: failed program was:" >&5
22600 cat conftest.$ac_ext >&5
22601 rm -rf conftest*
22602 eval "ac_cv_func_$ac_func=no"
22604 rm -f conftest*
22607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22608 echo "$ac_t""yes" 1>&6
22609 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22610 cat >> confdefs.h <<EOF
22611 #define $ac_tr_func 1
22614 else
22615 echo "$ac_t""no" 1>&6
22617 done
22621 for ac_func in drand48
22623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22624 echo "configure:22625: checking for $ac_func" >&5
22625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22626 echo $ac_n "(cached) $ac_c" 1>&6
22627 else
22628 cat > conftest.$ac_ext <<EOF
22629 #line 22630 "configure"
22630 #include "confdefs.h"
22631 /* System header to define __stub macros and hopefully few prototypes,
22632 which can conflict with char $ac_func(); below. */
22633 #include <assert.h>
22634 /* Override any gcc2 internal prototype to avoid an error. */
22635 /* We use char because int might match the return type of a gcc2
22636 builtin and then its argument prototype would still apply. */
22637 char $ac_func();
22639 int main() {
22641 /* The GNU C library defines this for functions which it implements
22642 to always fail with ENOSYS. Some functions are actually named
22643 something starting with __ and the normal name is an alias. */
22644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22645 choke me
22646 #else
22647 $ac_func();
22648 #endif
22650 ; return 0; }
22652 if { (eval echo configure:22653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22653 rm -rf conftest*
22654 eval "ac_cv_func_$ac_func=yes"
22655 else
22656 echo "configure: failed program was:" >&5
22657 cat conftest.$ac_ext >&5
22658 rm -rf conftest*
22659 eval "ac_cv_func_$ac_func=no"
22661 rm -f conftest*
22664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22665 echo "$ac_t""yes" 1>&6
22666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22667 cat >> confdefs.h <<EOF
22668 #define $ac_tr_func 1
22671 else
22672 echo "$ac_t""no" 1>&6
22674 done
22677 CXXFLAGS="$ac_save_CXXFLAGS"
22680 # For showmanyc_helper().
22681 for ac_hdr in sys/ioctl.h sys/filio.h
22683 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22685 echo "configure:22686: checking for $ac_hdr" >&5
22686 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22687 echo $ac_n "(cached) $ac_c" 1>&6
22688 else
22689 cat > conftest.$ac_ext <<EOF
22690 #line 22691 "configure"
22691 #include "confdefs.h"
22692 #include <$ac_hdr>
22694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22695 { (eval echo configure:22696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22697 if test -z "$ac_err"; then
22698 rm -rf conftest*
22699 eval "ac_cv_header_$ac_safe=yes"
22700 else
22701 echo "$ac_err" >&5
22702 echo "configure: failed program was:" >&5
22703 cat conftest.$ac_ext >&5
22704 rm -rf conftest*
22705 eval "ac_cv_header_$ac_safe=no"
22707 rm -f conftest*
22709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22710 echo "$ac_t""yes" 1>&6
22711 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22712 cat >> confdefs.h <<EOF
22713 #define $ac_tr_hdr 1
22716 else
22717 echo "$ac_t""no" 1>&6
22719 done
22722 if eval "test \"`echo '$''{'glibcpp_cv_POLL'+set}'`\" = set"; then
22723 echo $ac_n "(cached) $ac_c" 1>&6
22724 else
22726 cat > conftest.$ac_ext <<EOF
22727 #line 22728 "configure"
22728 #include "confdefs.h"
22729 #include <poll.h>
22730 int main() {
22731 struct pollfd pfd[1]; pfd[0].events = POLLIN; poll(pfd, 1, 0);
22732 ; return 0; }
22734 if { (eval echo configure:22735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22735 rm -rf conftest*
22736 glibcpp_cv_POLL=yes
22737 else
22738 echo "configure: failed program was:" >&5
22739 cat conftest.$ac_ext >&5
22740 rm -rf conftest*
22741 glibcpp_cv_POLL=no
22743 rm -f conftest*
22747 if test x$glibcpp_cv_POLL = xyes; then
22748 cat >> confdefs.h <<\EOF
22749 #define HAVE_POLL 1
22755 if eval "test \"`echo '$''{'glibcpp_cv_S_ISREG'+set}'`\" = set"; then
22756 echo $ac_n "(cached) $ac_c" 1>&6
22757 else
22759 cat > conftest.$ac_ext <<EOF
22760 #line 22761 "configure"
22761 #include "confdefs.h"
22762 #include <sys/stat.h>
22763 int main() {
22764 struct stat buffer; fstat(0, &buffer); S_ISREG(buffer.st_mode);
22765 ; return 0; }
22767 if { (eval echo configure:22768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22768 rm -rf conftest*
22769 glibcpp_cv_S_ISREG=yes
22770 else
22771 echo "configure: failed program was:" >&5
22772 cat conftest.$ac_ext >&5
22773 rm -rf conftest*
22774 glibcpp_cv_S_ISREG=no
22776 rm -f conftest*
22780 if eval "test \"`echo '$''{'glibcpp_cv_S_IFREG'+set}'`\" = set"; then
22781 echo $ac_n "(cached) $ac_c" 1>&6
22782 else
22784 cat > conftest.$ac_ext <<EOF
22785 #line 22786 "configure"
22786 #include "confdefs.h"
22787 #include <sys/stat.h>
22788 int main() {
22789 struct stat buffer; fstat(0, &buffer); S_IFREG & buffer.st_mode;
22790 ; return 0; }
22792 if { (eval echo configure:22793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22793 rm -rf conftest*
22794 glibcpp_cv_S_IFREG=yes
22795 else
22796 echo "configure: failed program was:" >&5
22797 cat conftest.$ac_ext >&5
22798 rm -rf conftest*
22799 glibcpp_cv_S_IFREG=no
22801 rm -f conftest*
22805 if test x$glibcpp_cv_S_ISREG = xyes; then
22806 cat >> confdefs.h <<\EOF
22807 #define HAVE_S_ISREG 1
22810 elif test x$glibcpp_cv_S_IFREG = xyes; then
22811 cat >> confdefs.h <<\EOF
22812 #define HAVE_S_IFREG 1
22819 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
22820 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
22821 echo "configure:22822: checking for locale.h" >&5
22822 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22823 echo $ac_n "(cached) $ac_c" 1>&6
22824 else
22825 cat > conftest.$ac_ext <<EOF
22826 #line 22827 "configure"
22827 #include "confdefs.h"
22828 #include <locale.h>
22830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22831 { (eval echo configure:22832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22833 if test -z "$ac_err"; then
22834 rm -rf conftest*
22835 eval "ac_cv_header_$ac_safe=yes"
22836 else
22837 echo "$ac_err" >&5
22838 echo "configure: failed program was:" >&5
22839 cat conftest.$ac_ext >&5
22840 rm -rf conftest*
22841 eval "ac_cv_header_$ac_safe=no"
22843 rm -f conftest*
22845 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22846 echo "$ac_t""yes" 1>&6
22848 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
22849 echo "configure:22850: checking for LC_MESSAGES" >&5
22850 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
22851 echo $ac_n "(cached) $ac_c" 1>&6
22852 else
22853 cat > conftest.$ac_ext <<EOF
22854 #line 22855 "configure"
22855 #include "confdefs.h"
22856 #include <locale.h>
22857 int main() {
22858 return LC_MESSAGES
22859 ; return 0; }
22861 if { (eval echo configure:22862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22862 rm -rf conftest*
22863 ac_cv_val_LC_MESSAGES=yes
22864 else
22865 echo "configure: failed program was:" >&5
22866 cat conftest.$ac_ext >&5
22867 rm -rf conftest*
22868 ac_cv_val_LC_MESSAGES=no
22870 rm -f conftest*
22873 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
22874 if test $ac_cv_val_LC_MESSAGES = yes; then
22875 cat >> confdefs.h <<\EOF
22876 #define HAVE_LC_MESSAGES 1
22881 else
22882 echo "$ac_t""no" 1>&6
22887 cat > conftest.$ac_ext <<EOF
22888 #line 22889 "configure"
22889 #include "confdefs.h"
22891 #include <setjmp.h>
22893 int main() {
22894 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
22895 ; return 0; }
22897 if { (eval echo configure:22898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22898 rm -rf conftest*
22899 cat >> confdefs.h <<\EOF
22900 #define HAVE_SIGSETJMP 1
22904 else
22905 echo "configure: failed program was:" >&5
22906 cat conftest.$ac_ext >&5
22908 rm -f conftest*
22910 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
22912 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22913 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22914 echo "configure:22915: checking for $ac_hdr" >&5
22915 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22916 echo $ac_n "(cached) $ac_c" 1>&6
22917 else
22918 cat > conftest.$ac_ext <<EOF
22919 #line 22920 "configure"
22920 #include "confdefs.h"
22921 #include <$ac_hdr>
22923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22924 { (eval echo configure:22925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22926 if test -z "$ac_err"; then
22927 rm -rf conftest*
22928 eval "ac_cv_header_$ac_safe=yes"
22929 else
22930 echo "$ac_err" >&5
22931 echo "configure: failed program was:" >&5
22932 cat conftest.$ac_ext >&5
22933 rm -rf conftest*
22934 eval "ac_cv_header_$ac_safe=no"
22936 rm -f conftest*
22938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22939 echo "$ac_t""yes" 1>&6
22940 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22941 cat >> confdefs.h <<EOF
22942 #define $ac_tr_hdr 1
22945 else
22946 echo "$ac_t""no" 1>&6
22948 done
22950 for ac_func in getpagesize
22952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22953 echo "configure:22954: checking for $ac_func" >&5
22954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22955 echo $ac_n "(cached) $ac_c" 1>&6
22956 else
22957 cat > conftest.$ac_ext <<EOF
22958 #line 22959 "configure"
22959 #include "confdefs.h"
22960 /* System header to define __stub macros and hopefully few prototypes,
22961 which can conflict with char $ac_func(); below. */
22962 #include <assert.h>
22963 /* Override any gcc2 internal prototype to avoid an error. */
22964 /* We use char because int might match the return type of a gcc2
22965 builtin and then its argument prototype would still apply. */
22966 char $ac_func();
22968 int main() {
22970 /* The GNU C library defines this for functions which it implements
22971 to always fail with ENOSYS. Some functions are actually named
22972 something starting with __ and the normal name is an alias. */
22973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22974 choke me
22975 #else
22976 $ac_func();
22977 #endif
22979 ; return 0; }
22981 if { (eval echo configure:22982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22982 rm -rf conftest*
22983 eval "ac_cv_func_$ac_func=yes"
22984 else
22985 echo "configure: failed program was:" >&5
22986 cat conftest.$ac_ext >&5
22987 rm -rf conftest*
22988 eval "ac_cv_func_$ac_func=no"
22990 rm -f conftest*
22993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22994 echo "$ac_t""yes" 1>&6
22995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22996 cat >> confdefs.h <<EOF
22997 #define $ac_tr_func 1
23000 else
23001 echo "$ac_t""no" 1>&6
23003 done
23005 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
23006 echo "configure:23007: checking for working mmap" >&5
23007 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23008 echo $ac_n "(cached) $ac_c" 1>&6
23009 else
23010 if test "$cross_compiling" = yes; then
23011 ac_cv_func_mmap_fixed_mapped=no
23012 else
23013 cat > conftest.$ac_ext <<EOF
23014 #line 23015 "configure"
23015 #include "confdefs.h"
23017 /* Thanks to Mike Haertel and Jim Avera for this test.
23018 Here is a matrix of mmap possibilities:
23019 mmap private not fixed
23020 mmap private fixed at somewhere currently unmapped
23021 mmap private fixed at somewhere already mapped
23022 mmap shared not fixed
23023 mmap shared fixed at somewhere currently unmapped
23024 mmap shared fixed at somewhere already mapped
23025 For private mappings, we should verify that changes cannot be read()
23026 back from the file, nor mmap's back from the file at a different
23027 address. (There have been systems where private was not correctly
23028 implemented like the infamous i386 svr4.0, and systems where the
23029 VM page cache was not coherent with the filesystem buffer cache
23030 like early versions of FreeBSD and possibly contemporary NetBSD.)
23031 For shared mappings, we should conversely verify that changes get
23032 propogated back to all the places they're supposed to be.
23034 Grep wants private fixed already mapped.
23035 The main things grep needs to know about mmap are:
23036 * does it exist and is it safe to write into the mmap'd area
23037 * how to use it (BSD variants) */
23038 #include <sys/types.h>
23039 #include <fcntl.h>
23040 #include <sys/mman.h>
23042 #if HAVE_SYS_TYPES_H
23043 # include <sys/types.h>
23044 #endif
23046 #if HAVE_STDLIB_H
23047 # include <stdlib.h>
23048 #endif
23050 #if HAVE_SYS_STAT_H
23051 # include <sys/stat.h>
23052 #endif
23054 #if HAVE_UNISTD_H
23055 # include <unistd.h>
23056 #endif
23058 /* This mess was copied from the GNU getpagesize.h. */
23059 #ifndef HAVE_GETPAGESIZE
23061 /* Assume that all systems that can run configure have sys/param.h. */
23062 # ifndef HAVE_SYS_PARAM_H
23063 # define HAVE_SYS_PARAM_H 1
23064 # endif
23066 # ifdef _SC_PAGESIZE
23067 # define getpagesize() sysconf(_SC_PAGESIZE)
23068 # else /* no _SC_PAGESIZE */
23069 # ifdef HAVE_SYS_PARAM_H
23070 # include <sys/param.h>
23071 # ifdef EXEC_PAGESIZE
23072 # define getpagesize() EXEC_PAGESIZE
23073 # else /* no EXEC_PAGESIZE */
23074 # ifdef NBPG
23075 # define getpagesize() NBPG * CLSIZE
23076 # ifndef CLSIZE
23077 # define CLSIZE 1
23078 # endif /* no CLSIZE */
23079 # else /* no NBPG */
23080 # ifdef NBPC
23081 # define getpagesize() NBPC
23082 # else /* no NBPC */
23083 # ifdef PAGESIZE
23084 # define getpagesize() PAGESIZE
23085 # endif /* PAGESIZE */
23086 # endif /* no NBPC */
23087 # endif /* no NBPG */
23088 # endif /* no EXEC_PAGESIZE */
23089 # else /* no HAVE_SYS_PARAM_H */
23090 # define getpagesize() 8192 /* punt totally */
23091 # endif /* no HAVE_SYS_PARAM_H */
23092 # endif /* no _SC_PAGESIZE */
23094 #endif /* no HAVE_GETPAGESIZE */
23096 #ifdef __cplusplus
23097 extern "C" { void *malloc(unsigned); }
23098 #else
23099 char *malloc();
23100 #endif
23103 main()
23105 char *data, *data2, *data3;
23106 int i, pagesize;
23107 int fd;
23109 pagesize = getpagesize();
23112 * First, make a file with some known garbage in it.
23114 data = malloc(pagesize);
23115 if (!data)
23116 exit(1);
23117 for (i = 0; i < pagesize; ++i)
23118 *(data + i) = rand();
23119 umask(0);
23120 fd = creat("conftestmmap", 0600);
23121 if (fd < 0)
23122 exit(1);
23123 if (write(fd, data, pagesize) != pagesize)
23124 exit(1);
23125 close(fd);
23128 * Next, try to mmap the file at a fixed address which
23129 * already has something else allocated at it. If we can,
23130 * also make sure that we see the same garbage.
23132 fd = open("conftestmmap", O_RDWR);
23133 if (fd < 0)
23134 exit(1);
23135 data2 = malloc(2 * pagesize);
23136 if (!data2)
23137 exit(1);
23138 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23139 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23140 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23141 exit(1);
23142 for (i = 0; i < pagesize; ++i)
23143 if (*(data + i) != *(data2 + i))
23144 exit(1);
23147 * Finally, make sure that changes to the mapped area
23148 * do not percolate back to the file as seen by read().
23149 * (This is a bug on some variants of i386 svr4.0.)
23151 for (i = 0; i < pagesize; ++i)
23152 *(data2 + i) = *(data2 + i) + 1;
23153 data3 = malloc(pagesize);
23154 if (!data3)
23155 exit(1);
23156 if (read(fd, data3, pagesize) != pagesize)
23157 exit(1);
23158 for (i = 0; i < pagesize; ++i)
23159 if (*(data + i) != *(data3 + i))
23160 exit(1);
23161 close(fd);
23162 unlink("conftestmmap");
23163 exit(0);
23167 if { (eval echo configure:23168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23168 then
23169 ac_cv_func_mmap_fixed_mapped=yes
23170 else
23171 echo "configure: failed program was:" >&5
23172 cat conftest.$ac_ext >&5
23173 rm -fr conftest*
23174 ac_cv_func_mmap_fixed_mapped=no
23176 rm -fr conftest*
23181 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23182 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23183 cat >> confdefs.h <<\EOF
23184 #define HAVE_MMAP 1
23191 # This depends on GLIBCPP_CHECK_LINKER_FEATURES, but without it assumes no.
23192 # Check whether --enable-symvers or --disable-symvers was given.
23193 if test "${enable_symvers+set}" = set; then
23194 enableval="$enable_symvers"
23195 case "$enableval" in
23196 yes) enable_symvers=yes ;;
23197 no) enable_symvers=no ;;
23198 # other names here, just as sanity checks
23199 #gnu|sun|etcetera) enable_symvers=$enableval ;;
23200 gnu) enable_symvers=$enableval ;;
23201 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23202 esac
23203 else
23204 enable_symvers=yes
23207 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23208 # don't know enough about $LD to do tricks...
23209 if test x$enable_shared = xno ||
23210 test "x$LD" = x ||
23211 test x$glibcpp_gnu_ld_version = x; then
23212 enable_symvers=no
23215 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23216 if test $enable_symvers != no; then
23217 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23218 echo "configure:23219: checking for shared libgcc" >&5
23219 ac_save_CFLAGS="$CFLAGS"
23220 CFLAGS=' -lgcc_s'
23221 cat > conftest.$ac_ext <<EOF
23222 #line 23223 "configure"
23223 #include "confdefs.h"
23225 int main() {
23226 return 0
23227 ; return 0; }
23229 if { (eval echo configure:23230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23230 rm -rf conftest*
23231 glibcpp_shared_libgcc=yes
23232 else
23233 echo "configure: failed program was:" >&5
23234 cat conftest.$ac_ext >&5
23235 rm -rf conftest*
23236 glibcpp_shared_libgcc=no
23238 rm -f conftest*
23239 CFLAGS="$ac_save_CFLAGS"
23240 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23243 # For GNU ld, we need at least this version. It's 2.12 in the same format
23244 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
23245 glibcpp_min_gnu_ld_version=21200
23247 # Check to see if unspecified "yes" value can win, given results
23248 # above.
23249 if test $enable_symvers = yes ; then
23250 if test $with_gnu_ld = yes &&
23251 test $glibcpp_shared_libgcc = yes ;
23252 then
23253 if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23254 enable_symvers=gnu
23255 else
23256 ac_test_CFLAGS="${CFLAGS+set}"
23257 ac_save_CFLAGS="$CFLAGS"
23258 CFLAGS='-shared -Wl,--version-script,conftest.map'
23259 enable_symvers=no
23261 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23263 cat > conftest.$ac_ext <<EOF
23264 #line 23265 "configure"
23265 #include "confdefs.h"
23266 int foo;
23267 int main() {
23269 ; return 0; }
23271 if { (eval echo configure:23272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23272 rm -rf conftest*
23273 enable_symvers=gnu
23274 else
23275 echo "configure: failed program was:" >&5
23276 cat conftest.$ac_ext >&5
23278 rm -f conftest*
23279 if test "$ac_test_CFLAGS" = set; then
23280 CFLAGS="$ac_save_CFLAGS"
23281 else
23282 # this is the suspicious part
23283 CFLAGS=''
23285 rm -f conftest.map
23287 else
23288 # just fail for now
23289 enable_symvers=no
23293 case $enable_symvers in
23295 SYMVER_MAP=config/linker-map.dummy
23297 gnu)
23298 SYMVER_MAP=config/linker-map.gnu
23299 cat >> confdefs.h <<\EOF
23300 #define _GLIBCPP_SYMVER 1
23304 esac
23309 if test $enable_symvers != no; then
23310 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23311 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23312 else
23313 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23314 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23316 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23317 echo "configure:23318: checking versioning on shared library symbols" >&5
23318 echo "$ac_t""$enable_symvers" 1>&6
23321 # This depends on GLIBCPP_ENABLE_SYMVERS and GLIBCPP_IS_CROSS_COMPILING.
23324 if test x"$GLIBCPP_IS_CROSS_COMPILING" = xfalse; then
23325 # Do checks for memory limit functions.
23327 setrlimit_have_headers=yes
23328 for ac_hdr in unistd.h sys/time.h sys/resource.h
23330 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23332 echo "configure:23333: checking for $ac_hdr" >&5
23333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23334 echo $ac_n "(cached) $ac_c" 1>&6
23335 else
23336 cat > conftest.$ac_ext <<EOF
23337 #line 23338 "configure"
23338 #include "confdefs.h"
23339 #include <$ac_hdr>
23341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23342 { (eval echo configure:23343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23344 if test -z "$ac_err"; then
23345 rm -rf conftest*
23346 eval "ac_cv_header_$ac_safe=yes"
23347 else
23348 echo "$ac_err" >&5
23349 echo "configure: failed program was:" >&5
23350 cat conftest.$ac_ext >&5
23351 rm -rf conftest*
23352 eval "ac_cv_header_$ac_safe=no"
23354 rm -f conftest*
23356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23357 echo "$ac_t""yes" 1>&6
23358 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23359 cat >> confdefs.h <<EOF
23360 #define $ac_tr_hdr 1
23363 else
23364 echo "$ac_t""no" 1>&6
23365 setrlimit_have_headers=no
23367 done
23369 # If don't have the headers, then we can't run the tests now, and we
23370 # won't be seeing any of these during testsuite compilation.
23371 if test $setrlimit_have_headers = yes; then
23372 # Can't do these in a loop, else the resulting syntax is wrong.
23374 cat > conftest.$ac_ext <<EOF
23375 #line 23376 "configure"
23376 #include "confdefs.h"
23377 #include <unistd.h>
23378 #include <sys/time.h>
23379 #include <sys/resource.h>
23381 int main() {
23382 int f = RLIMIT_DATA ;
23383 ; return 0; }
23385 if { (eval echo configure:23386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23386 rm -rf conftest*
23387 glibcpp_mresult=1
23388 else
23389 echo "configure: failed program was:" >&5
23390 cat conftest.$ac_ext >&5
23391 rm -rf conftest*
23392 glibcpp_mresult=0
23394 rm -f conftest*
23395 cat >> confdefs.h <<EOF
23396 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23401 cat > conftest.$ac_ext <<EOF
23402 #line 23403 "configure"
23403 #include "confdefs.h"
23404 #include <unistd.h>
23405 #include <sys/time.h>
23406 #include <sys/resource.h>
23408 int main() {
23409 int f = RLIMIT_RSS ;
23410 ; return 0; }
23412 if { (eval echo configure:23413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23413 rm -rf conftest*
23414 glibcpp_mresult=1
23415 else
23416 echo "configure: failed program was:" >&5
23417 cat conftest.$ac_ext >&5
23418 rm -rf conftest*
23419 glibcpp_mresult=0
23421 rm -f conftest*
23422 cat >> confdefs.h <<EOF
23423 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23428 cat > conftest.$ac_ext <<EOF
23429 #line 23430 "configure"
23430 #include "confdefs.h"
23431 #include <unistd.h>
23432 #include <sys/time.h>
23433 #include <sys/resource.h>
23435 int main() {
23436 int f = RLIMIT_VMEM ;
23437 ; return 0; }
23439 if { (eval echo configure:23440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23440 rm -rf conftest*
23441 glibcpp_mresult=1
23442 else
23443 echo "configure: failed program was:" >&5
23444 cat conftest.$ac_ext >&5
23445 rm -rf conftest*
23446 glibcpp_mresult=0
23448 rm -f conftest*
23449 cat >> confdefs.h <<EOF
23450 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23455 cat > conftest.$ac_ext <<EOF
23456 #line 23457 "configure"
23457 #include "confdefs.h"
23458 #include <unistd.h>
23459 #include <sys/time.h>
23460 #include <sys/resource.h>
23462 int main() {
23463 int f = RLIMIT_AS ;
23464 ; return 0; }
23466 if { (eval echo configure:23467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23467 rm -rf conftest*
23468 glibcpp_mresult=1
23469 else
23470 echo "configure: failed program was:" >&5
23471 cat conftest.$ac_ext >&5
23472 rm -rf conftest*
23473 glibcpp_mresult=0
23475 rm -f conftest*
23476 cat >> confdefs.h <<EOF
23477 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23482 # Check for rlimit, setrlimit.
23483 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23484 echo $ac_n "(cached) $ac_c" 1>&6
23485 else
23487 cat > conftest.$ac_ext <<EOF
23488 #line 23489 "configure"
23489 #include "confdefs.h"
23490 #include <unistd.h>
23491 #include <sys/time.h>
23492 #include <sys/resource.h>
23494 int main() {
23495 struct rlimit r; setrlimit(0, &r);
23496 ; return 0; }
23498 if { (eval echo configure:23499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23499 rm -rf conftest*
23500 ac_setrlimit=yes
23501 else
23502 echo "configure: failed program was:" >&5
23503 cat conftest.$ac_ext >&5
23504 rm -rf conftest*
23505 ac_setrlimit=no
23507 rm -f conftest*
23513 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23514 echo "configure:23515: checking for testsuite memory limit support" >&5
23515 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23516 ac_mem_limits=yes
23517 cat >> confdefs.h <<\EOF
23518 #define _GLIBCPP_MEM_LIMITS 1
23521 else
23522 ac_mem_limits=no
23524 echo "$ac_t""$ac_mem_limits" 1>&6
23527 # Look for setenv, so that extended locale tests can be performed.
23529 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23530 echo "configure:23531: checking for setenv declaration" >&5
23531 if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23532 if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23533 echo $ac_n "(cached) $ac_c" 1>&6
23534 else
23537 ac_ext=C
23538 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23539 ac_cpp='$CXXCPP $CPPFLAGS'
23540 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23541 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23542 cross_compiling=$ac_cv_prog_cxx_cross
23544 cat > conftest.$ac_ext <<EOF
23545 #line 23546 "configure"
23546 #include "confdefs.h"
23547 #include <stdlib.h>
23548 int main() {
23549 setenv(0, 0, 0);
23550 ; return 0; }
23552 if { (eval echo configure:23553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23553 rm -rf conftest*
23554 glibcpp_cv_func_setenv_use=yes
23555 else
23556 echo "configure: failed program was:" >&5
23557 cat conftest.$ac_ext >&5
23558 rm -rf conftest*
23559 glibcpp_cv_func_setenv_use=no
23561 rm -f conftest*
23562 ac_ext=c
23563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23564 ac_cpp='$CPP $CPPFLAGS'
23565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23567 cross_compiling=$ac_cv_prog_cc_cross
23573 echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23574 if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23575 for ac_func in setenv
23577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23578 echo "configure:23579: checking for $ac_func" >&5
23579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23580 echo $ac_n "(cached) $ac_c" 1>&6
23581 else
23582 cat > conftest.$ac_ext <<EOF
23583 #line 23584 "configure"
23584 #include "confdefs.h"
23585 /* System header to define __stub macros and hopefully few prototypes,
23586 which can conflict with char $ac_func(); below. */
23587 #include <assert.h>
23588 /* Override any gcc2 internal prototype to avoid an error. */
23589 /* We use char because int might match the return type of a gcc2
23590 builtin and then its argument prototype would still apply. */
23591 char $ac_func();
23593 int main() {
23595 /* The GNU C library defines this for functions which it implements
23596 to always fail with ENOSYS. Some functions are actually named
23597 something starting with __ and the normal name is an alias. */
23598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23599 choke me
23600 #else
23601 $ac_func();
23602 #endif
23604 ; return 0; }
23606 if { (eval echo configure:23607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23607 rm -rf conftest*
23608 eval "ac_cv_func_$ac_func=yes"
23609 else
23610 echo "configure: failed program was:" >&5
23611 cat conftest.$ac_ext >&5
23612 rm -rf conftest*
23613 eval "ac_cv_func_$ac_func=no"
23615 rm -f conftest*
23618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23619 echo "$ac_t""yes" 1>&6
23620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23621 cat >> confdefs.h <<EOF
23622 #define $ac_tr_func 1
23625 else
23626 echo "$ac_t""no" 1>&6
23628 done
23634 # Export file names for ABI checking.
23635 baseline_dir="${glibcpp_srcdir}/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
23638 # Determine if checking the ABI is desirable.
23639 if test x$enable_symvers = xno; then
23640 enable_abi_check=no
23641 else
23642 case "$host" in
23643 *-*-cygwin*)
23644 enable_abi_check=no ;;
23646 enable_abi_check=yes ;;
23647 esac
23652 if test "$enable_wchar_t" = yes; then
23653 GLIBCPP_TEST_WCHAR_T_TRUE=
23654 GLIBCPP_TEST_WCHAR_T_FALSE='#'
23655 else
23656 GLIBCPP_TEST_WCHAR_T_TRUE='#'
23657 GLIBCPP_TEST_WCHAR_T_FALSE=
23661 if test "$enable_abi_check" = yes; then
23662 GLIBCPP_TEST_ABI_TRUE=
23663 GLIBCPP_TEST_ABI_FALSE='#'
23664 else
23665 GLIBCPP_TEST_ABI_TRUE='#'
23666 GLIBCPP_TEST_ABI_FALSE=
23670 # Propagate the target-specific source directories through the build chain.
23671 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH
23672 # uses it, and it only gets used in this file.)
23673 OS_INC_SRCDIR=config/${os_include_dir}
23674 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23678 # Determine cross-compile flags and all AM_CONDITIONALs.
23682 if test "$CANADIAN" = yes; then
23683 CANADIAN_TRUE=
23684 CANADIAN_FALSE='#'
23685 else
23686 CANADIAN_TRUE='#'
23687 CANADIAN_FALSE=
23691 if test "$need_libmath" = yes; then
23692 GLIBCPP_BUILD_LIBMATH_TRUE=
23693 GLIBCPP_BUILD_LIBMATH_FALSE='#'
23694 else
23695 GLIBCPP_BUILD_LIBMATH_TRUE='#'
23696 GLIBCPP_BUILD_LIBMATH_FALSE=
23699 cat > confcache <<\EOF
23700 # This file is a shell script that caches the results of configure
23701 # tests run on this system so they can be shared between configure
23702 # scripts and configure runs. It is not useful on other systems.
23703 # If it contains results you don't want to keep, you may remove or edit it.
23705 # By default, configure uses ./config.cache as the cache file,
23706 # creating it if it does not exist already. You can give configure
23707 # the --cache-file=FILE option to use a different cache file; that is
23708 # what configure does when it calls configure scripts in
23709 # subdirectories, so they share the cache.
23710 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23711 # config.status only pays attention to the cache file if you give it the
23712 # --recheck option to rerun configure.
23715 # The following way of writing the cache mishandles newlines in values,
23716 # but we know of no workaround that is simple, portable, and efficient.
23717 # So, don't put newlines in cache variables' values.
23718 # Ultrix sh set writes to stderr and can't be redirected directly,
23719 # and sets the high bit in the cache file unless we assign to the vars.
23720 (set) 2>&1 |
23721 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23722 *ac_space=\ *)
23723 # `set' does not quote correctly, so add quotes (double-quote substitution
23724 # turns \\\\ into \\, and sed turns \\ into \).
23725 sed -n \
23726 -e "s/'/'\\\\''/g" \
23727 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23730 # `set' quotes correctly as required by POSIX, so do not add quotes.
23731 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23733 esac >> confcache
23734 if cmp -s $cache_file confcache; then
23736 else
23737 if test -w $cache_file; then
23738 echo "updating cache $cache_file"
23739 cat confcache > $cache_file
23740 else
23741 echo "not updating unwritable cache $cache_file"
23744 rm -f confcache
23747 if test "${multilib}" = "yes"; then
23748 multilib_arg="--enable-multilib"
23749 else
23750 multilib_arg=
23753 # Export all the install information
23755 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23756 # exported correctly in GLIBCPP_CONFIGURE.
23757 glibcpp_toolexecdir=no
23758 glibcpp_toolexeclibdir=no
23759 glibcpp_prefixdir=${prefix}
23761 # Process the option --with-gxx-include-dir=<path to include-files directory>
23762 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23763 echo "configure:23764: checking for --with-gxx-include-dir" >&5
23764 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23765 if test "${with_gxx_include_dir+set}" = set; then
23766 withval="$with_gxx_include_dir"
23767 case "${withval}" in
23768 yes)
23769 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23770 gxx_include_dir=no
23773 gxx_include_dir=no
23776 gxx_include_dir=${withval}
23778 esac
23779 else
23780 gxx_include_dir=no
23783 echo "$ac_t""$gxx_include_dir" 1>&6
23785 # Process the option "--enable-version-specific-runtime-libs"
23786 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23787 echo "configure:23788: checking for --enable-version-specific-runtime-libs" >&5
23788 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23789 if test "${enable_version_specific_runtime_libs+set}" = set; then
23790 enableval="$enable_version_specific_runtime_libs"
23791 case "$enableval" in
23792 yes) version_specific_libs=yes ;;
23793 no) version_specific_libs=no ;;
23794 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23795 esac
23796 else
23797 version_specific_libs=no
23799 # Option set, now we can test it.
23800 echo "$ac_t""$version_specific_libs" 1>&6
23802 # Default case for install directory for include files.
23803 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23804 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23807 # Version-specific runtime libs processing.
23808 if test $version_specific_libs = yes; then
23809 # Need the gcc compiler version to know where to install libraries
23810 # and header files if --enable-version-specific-runtime-libs option
23811 # is selected.
23812 if test x"$gxx_include_dir" = x"no"; then
23813 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23815 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23816 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23819 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
23820 # Install a library built with a cross compiler in tooldir, not libdir.
23821 if test x"$glibcpp_toolexecdir" = x"no"; then
23822 if test -n "$with_cross_host" &&
23823 test x"$with_cross_host" != x"no"; then
23824 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
23825 glibcpp_toolexeclibdir='$(toolexecdir)/lib'
23826 else
23827 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23828 glibcpp_toolexeclibdir='$(libdir)'
23830 multi_os_directory=`$CC -print-multi-os-directory`
23831 case $multi_os_directory in
23832 .) ;; # Avoid trailing /.
23833 *) glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/$multi_os_directory ;;
23834 esac
23837 echo $ac_n "checking for install location""... $ac_c" 1>&6
23838 echo "configure:23839: checking for install location" >&5
23839 echo "$ac_t""$gxx_include_dir" 1>&6
23847 # Export all the include and flag information to Makefiles.
23849 # Root level of the build directory include sources.
23850 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
23852 # Passed down for canadian crosses.
23853 if test x"$CANADIAN" = xyes; then
23854 TOPLEVEL_INCLUDES='-I$(includedir)'
23857 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
23859 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
23861 # Now, export this to all the little Makefiles....
23868 # Optimization flags that are probably a good idea for thrill-seekers. Just
23869 # uncomment the lines below and make, everything else is ready to go...
23870 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
23871 OPTIMIZE_CXXFLAGS=
23874 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings'
23878 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
23879 grep "enable shared" > /dev/null; then
23880 LIBSUPCXX_PICFLAGS=-prefer-pic
23881 else
23882 LIBSUPCXX_PICFLAGS=
23886 # Generate the various Makefiles, include files, and scripts.
23887 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am,
23888 # libsupc++/Makefile.am and testsuite/Makefile.am so that multilib installs
23889 # will end up installed in the correct place. To work around this not being
23890 # passed # down from config-ml.in -> top_srcdir/Makefile.am ->
23891 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
23892 trap '' 1 2 15
23893 cat > confcache <<\EOF
23894 # This file is a shell script that caches the results of configure
23895 # tests run on this system so they can be shared between configure
23896 # scripts and configure runs. It is not useful on other systems.
23897 # If it contains results you don't want to keep, you may remove or edit it.
23899 # By default, configure uses ./config.cache as the cache file,
23900 # creating it if it does not exist already. You can give configure
23901 # the --cache-file=FILE option to use a different cache file; that is
23902 # what configure does when it calls configure scripts in
23903 # subdirectories, so they share the cache.
23904 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23905 # config.status only pays attention to the cache file if you give it the
23906 # --recheck option to rerun configure.
23909 # The following way of writing the cache mishandles newlines in values,
23910 # but we know of no workaround that is simple, portable, and efficient.
23911 # So, don't put newlines in cache variables' values.
23912 # Ultrix sh set writes to stderr and can't be redirected directly,
23913 # and sets the high bit in the cache file unless we assign to the vars.
23914 (set) 2>&1 |
23915 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23916 *ac_space=\ *)
23917 # `set' does not quote correctly, so add quotes (double-quote substitution
23918 # turns \\\\ into \\, and sed turns \\ into \).
23919 sed -n \
23920 -e "s/'/'\\\\''/g" \
23921 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23924 # `set' quotes correctly as required by POSIX, so do not add quotes.
23925 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23927 esac >> confcache
23928 if cmp -s $cache_file confcache; then
23930 else
23931 if test -w $cache_file; then
23932 echo "updating cache $cache_file"
23933 cat confcache > $cache_file
23934 else
23935 echo "not updating unwritable cache $cache_file"
23938 rm -f confcache
23940 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23942 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23943 # Let make expand exec_prefix.
23944 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23946 # Any assignment to VPATH causes Sun make to only execute
23947 # the first set of double-colon rules, so remove it if not needed.
23948 # If there is a colon in the path, we need to keep it.
23949 if test "x$srcdir" = x.; then
23950 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23953 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23955 DEFS=-DHAVE_CONFIG_H
23957 # Without the "./", some shells look in PATH for config.status.
23958 : ${CONFIG_STATUS=./config.status}
23960 echo creating $CONFIG_STATUS
23961 rm -f $CONFIG_STATUS
23962 cat > $CONFIG_STATUS <<EOF
23963 #! /bin/sh
23964 # Generated automatically by configure.
23965 # Run this file to recreate the current configuration.
23966 # This directory was configured as follows,
23967 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23969 # $0 $ac_configure_args
23971 # Compiler output produced by configure, useful for debugging
23972 # configure, is in ./config.log if it exists.
23974 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23975 for ac_option
23977 case "\$ac_option" in
23978 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23979 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23980 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23981 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23982 echo "$CONFIG_STATUS generated by autoconf version 2.13"
23983 exit 0 ;;
23984 -help | --help | --hel | --he | --h)
23985 echo "\$ac_cs_usage"; exit 0 ;;
23986 *) echo "\$ac_cs_usage"; exit 1 ;;
23987 esac
23988 done
23990 ac_given_srcdir=$srcdir
23991 ac_given_INSTALL="$INSTALL"
23993 trap 'rm -fr `echo "Makefile \
23994 include/Makefile src/Makefile \
23995 libmath/Makefile libsupc++/Makefile \
23996 po/Makefile testsuite/Makefile scripts/check_survey scripts/testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23998 cat >> $CONFIG_STATUS <<EOF
24000 # Protect against being on the right side of a sed subst in config.status.
24001 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24002 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24003 $ac_vpsub
24004 $extrasub
24005 s%@SHELL@%$SHELL%g
24006 s%@CFLAGS@%$CFLAGS%g
24007 s%@CPPFLAGS@%$CPPFLAGS%g
24008 s%@CXXFLAGS@%$CXXFLAGS%g
24009 s%@FFLAGS@%$FFLAGS%g
24010 s%@DEFS@%$DEFS%g
24011 s%@LDFLAGS@%$LDFLAGS%g
24012 s%@LIBS@%$LIBS%g
24013 s%@exec_prefix@%$exec_prefix%g
24014 s%@prefix@%$prefix%g
24015 s%@program_transform_name@%$program_transform_name%g
24016 s%@bindir@%$bindir%g
24017 s%@sbindir@%$sbindir%g
24018 s%@libexecdir@%$libexecdir%g
24019 s%@datadir@%$datadir%g
24020 s%@sysconfdir@%$sysconfdir%g
24021 s%@sharedstatedir@%$sharedstatedir%g
24022 s%@localstatedir@%$localstatedir%g
24023 s%@libdir@%$libdir%g
24024 s%@includedir@%$includedir%g
24025 s%@oldincludedir@%$oldincludedir%g
24026 s%@infodir@%$infodir%g
24027 s%@mandir@%$mandir%g
24028 s%@PACKAGE@%$PACKAGE%g
24029 s%@libtool_VERSION@%$libtool_VERSION%g
24030 s%@toplevel_srcdir@%$toplevel_srcdir%g
24031 s%@host@%$host%g
24032 s%@host_alias@%$host_alias%g
24033 s%@host_cpu@%$host_cpu%g
24034 s%@host_vendor@%$host_vendor%g
24035 s%@host_os@%$host_os%g
24036 s%@target@%$target%g
24037 s%@target_alias@%$target_alias%g
24038 s%@target_cpu@%$target_cpu%g
24039 s%@target_vendor@%$target_vendor%g
24040 s%@target_os@%$target_os%g
24041 s%@build@%$build%g
24042 s%@build_alias@%$build_alias%g
24043 s%@build_cpu@%$build_cpu%g
24044 s%@build_vendor@%$build_vendor%g
24045 s%@build_os@%$build_os%g
24046 s%@glibcpp_builddir@%$glibcpp_builddir%g
24047 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
24048 s%@AWK@%$AWK%g
24049 s%@LN_S@%$LN_S%g
24050 s%@glibcpp_basedir@%$glibcpp_basedir%g
24051 s%@CC@%$CC%g
24052 s%@glibcpp_CXX@%$glibcpp_CXX%g
24053 s%@AS@%$AS%g
24054 s%@AR@%$AR%g
24055 s%@RANLIB@%$RANLIB%g
24056 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24057 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24058 s%@INSTALL_DATA@%$INSTALL_DATA%g
24059 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24060 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24061 s%@MAINT@%$MAINT%g
24062 s%@EXEEXT@%$EXEEXT%g
24063 s%@VERSION@%$VERSION%g
24064 s%@ACLOCAL@%$ACLOCAL%g
24065 s%@AUTOCONF@%$AUTOCONF%g
24066 s%@AUTOMAKE@%$AUTOMAKE%g
24067 s%@AUTOHEADER@%$AUTOHEADER%g
24068 s%@MAKEINFO@%$MAKEINFO%g
24069 s%@SET_MAKE@%$SET_MAKE%g
24070 s%@OBJEXT@%$OBJEXT%g
24071 s%@STRIP@%$STRIP%g
24072 s%@LIBTOOL@%$LIBTOOL%g
24073 s%@CXXCPP@%$CXXCPP%g
24074 s%@enable_shared@%$enable_shared%g
24075 s%@enable_static@%$enable_static%g
24076 s%@ifGNUmake@%$ifGNUmake%g
24077 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24078 s%@GLIBCPP_BUILD_PCH_TRUE@%$GLIBCPP_BUILD_PCH_TRUE%g
24079 s%@GLIBCPP_BUILD_PCH_FALSE@%$GLIBCPP_BUILD_PCH_FALSE%g
24080 s%@glibcpp_PCHFLAGS@%$glibcpp_PCHFLAGS%g
24081 s%@CSTDIO_H@%$CSTDIO_H%g
24082 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24083 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24084 s%@CPP@%$CPP%g
24085 s%@check_msgfmt@%$check_msgfmt%g
24086 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
24087 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
24088 s%@glibcpp_localedir@%$glibcpp_localedir%g
24089 s%@USE_NLS@%$USE_NLS%g
24090 s%@CLOCALE_H@%$CLOCALE_H%g
24091 s%@CCODECVT_H@%$CCODECVT_H%g
24092 s%@CMESSAGES_H@%$CMESSAGES_H%g
24093 s%@CCODECVT_CC@%$CCODECVT_CC%g
24094 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24095 s%@CCTYPE_CC@%$CCTYPE_CC%g
24096 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24097 s%@CMONEY_CC@%$CMONEY_CC%g
24098 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24099 s%@CTIME_H@%$CTIME_H%g
24100 s%@CTIME_CC@%$CTIME_CC%g
24101 s%@CLOCALE_CC@%$CLOCALE_CC%g
24102 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24103 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24104 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
24105 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
24106 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
24107 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
24108 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
24109 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
24110 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
24111 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24112 s%@GLIBCPP_BUILD_DEBUG_TRUE@%$GLIBCPP_BUILD_DEBUG_TRUE%g
24113 s%@GLIBCPP_BUILD_DEBUG_FALSE@%$GLIBCPP_BUILD_DEBUG_FALSE%g
24114 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24115 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24116 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24117 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24118 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24119 s%@WERROR@%$WERROR%g
24120 s%@SYMVER_MAP@%$SYMVER_MAP%g
24121 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
24122 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
24123 s%@baseline_dir@%$baseline_dir%g
24124 s%@GLIBCPP_TEST_WCHAR_T_TRUE@%$GLIBCPP_TEST_WCHAR_T_TRUE%g
24125 s%@GLIBCPP_TEST_WCHAR_T_FALSE@%$GLIBCPP_TEST_WCHAR_T_FALSE%g
24126 s%@GLIBCPP_TEST_ABI_TRUE@%$GLIBCPP_TEST_ABI_TRUE%g
24127 s%@GLIBCPP_TEST_ABI_FALSE@%$GLIBCPP_TEST_ABI_FALSE%g
24128 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24129 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24130 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
24131 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24132 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24133 s%@GLIBCPP_BUILD_LIBMATH_TRUE@%$GLIBCPP_BUILD_LIBMATH_TRUE%g
24134 s%@GLIBCPP_BUILD_LIBMATH_FALSE@%$GLIBCPP_BUILD_LIBMATH_FALSE%g
24135 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
24136 s%@gxx_include_dir@%$gxx_include_dir%g
24137 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
24138 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
24139 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
24140 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24141 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24142 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24143 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24144 s%@WARN_FLAGS@%$WARN_FLAGS%g
24145 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24147 CEOF
24150 cat >> $CONFIG_STATUS <<\EOF
24152 # Split the substitutions into bite-sized pieces for seds with
24153 # small command number limits, like on Digital OSF/1 and HP-UX.
24154 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24155 ac_file=1 # Number of current file.
24156 ac_beg=1 # First line for current file.
24157 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24158 ac_more_lines=:
24159 ac_sed_cmds=""
24160 while $ac_more_lines; do
24161 if test $ac_beg -gt 1; then
24162 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24163 else
24164 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24166 if test ! -s conftest.s$ac_file; then
24167 ac_more_lines=false
24168 rm -f conftest.s$ac_file
24169 else
24170 if test -z "$ac_sed_cmds"; then
24171 ac_sed_cmds="sed -f conftest.s$ac_file"
24172 else
24173 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24175 ac_file=`expr $ac_file + 1`
24176 ac_beg=$ac_end
24177 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24179 done
24180 if test -z "$ac_sed_cmds"; then
24181 ac_sed_cmds=cat
24185 cat >> $CONFIG_STATUS <<EOF
24187 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24188 include/Makefile src/Makefile \
24189 libmath/Makefile libsupc++/Makefile \
24190 po/Makefile testsuite/Makefile scripts/check_survey scripts/testsuite_flags"}
24192 cat >> $CONFIG_STATUS <<\EOF
24193 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24194 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24195 case "$ac_file" in
24196 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24197 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24198 *) ac_file_in="${ac_file}.in" ;;
24199 esac
24201 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24203 # Remove last slash and all that follows it. Not all systems have dirname.
24204 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24205 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24206 # The file is in a subdirectory.
24207 test ! -d "$ac_dir" && mkdir "$ac_dir"
24208 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24209 # A "../" for each directory in $ac_dir_suffix.
24210 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24211 else
24212 ac_dir_suffix= ac_dots=
24215 case "$ac_given_srcdir" in
24216 .) srcdir=.
24217 if test -z "$ac_dots"; then top_srcdir=.
24218 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24219 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24220 *) # Relative path.
24221 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24222 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24223 esac
24225 case "$ac_given_INSTALL" in
24226 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24227 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24228 esac
24230 echo creating "$ac_file"
24231 rm -f "$ac_file"
24232 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24233 case "$ac_file" in
24234 *Makefile*) ac_comsub="1i\\
24235 # $configure_input" ;;
24236 *) ac_comsub= ;;
24237 esac
24239 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24240 sed -e "$ac_comsub
24241 s%@configure_input@%$configure_input%g
24242 s%@srcdir@%$srcdir%g
24243 s%@top_srcdir@%$top_srcdir%g
24244 s%@INSTALL@%$INSTALL%g
24245 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24246 fi; done
24247 rm -f conftest.s*
24249 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24250 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24252 # ac_d sets the value in "#define NAME VALUE" lines.
24253 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24254 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24255 ac_dC='\3'
24256 ac_dD='%g'
24257 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24258 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24259 ac_uB='\([ ]\)%\1#\2define\3'
24260 ac_uC=' '
24261 ac_uD='\4%g'
24262 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24263 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24264 ac_eB='$%\1#\2define\3'
24265 ac_eC=' '
24266 ac_eD='%g'
24268 if test "${CONFIG_HEADERS+set}" != set; then
24270 cat >> $CONFIG_STATUS <<EOF
24271 CONFIG_HEADERS="config.h"
24273 cat >> $CONFIG_STATUS <<\EOF
24275 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24276 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24277 case "$ac_file" in
24278 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24279 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24280 *) ac_file_in="${ac_file}.in" ;;
24281 esac
24283 echo creating $ac_file
24285 rm -f conftest.frag conftest.in conftest.out
24286 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24287 cat $ac_file_inputs > conftest.in
24291 # Transform confdefs.h into a sed script conftest.vals that substitutes
24292 # the proper values into config.h.in to produce config.h. And first:
24293 # Protect against being on the right side of a sed subst in config.status.
24294 # Protect against being in an unquoted here document in config.status.
24295 rm -f conftest.vals
24296 cat > conftest.hdr <<\EOF
24297 s/[\\&%]/\\&/g
24298 s%[\\$`]%\\&%g
24299 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24300 s%ac_d%ac_u%gp
24301 s%ac_u%ac_e%gp
24303 sed -n -f conftest.hdr confdefs.h > conftest.vals
24304 rm -f conftest.hdr
24306 # This sed command replaces #undef with comments. This is necessary, for
24307 # example, in the case of _POSIX_SOURCE, which is predefined and required
24308 # on some systems where configure will not decide to define it.
24309 cat >> conftest.vals <<\EOF
24310 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24313 # Break up conftest.vals because some shells have a limit on
24314 # the size of here documents, and old seds have small limits too.
24316 rm -f conftest.tail
24317 while :
24319 ac_lines=`grep -c . conftest.vals`
24320 # grep -c gives empty output for an empty file on some AIX systems.
24321 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24322 # Write a limited-size here document to conftest.frag.
24323 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24324 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24325 echo 'CEOF
24326 sed -f conftest.frag conftest.in > conftest.out
24327 rm -f conftest.in
24328 mv conftest.out conftest.in
24329 ' >> $CONFIG_STATUS
24330 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24331 rm -f conftest.vals
24332 mv conftest.tail conftest.vals
24333 done
24334 rm -f conftest.vals
24336 cat >> $CONFIG_STATUS <<\EOF
24337 rm -f conftest.frag conftest.h
24338 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24339 cat conftest.in >> conftest.h
24340 rm -f conftest.in
24341 if cmp -s $ac_file conftest.h 2>/dev/null; then
24342 echo "$ac_file is unchanged"
24343 rm -f conftest.h
24344 else
24345 # Remove last slash and all that follows it. Not all systems have dirname.
24346 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24347 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24348 # The file is in a subdirectory.
24349 test ! -d "$ac_dir" && mkdir "$ac_dir"
24351 rm -f $ac_file
24352 mv conftest.h $ac_file
24354 fi; done
24357 cat >> $CONFIG_STATUS <<EOF
24359 srcdir=${srcdir}
24360 host=${host}
24361 target=${target}
24362 with_target_subdir=${with_target_subdir}
24363 with_build_subdir=${with_build_subdir}
24364 with_multisubdir=${with_multisubdir}
24365 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24366 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24367 glibcpp_basedir=${glibcpp_basedir}
24368 CC="${CC}"
24369 CXX="${CXX}"
24370 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
24373 cat >> $CONFIG_STATUS <<\EOF
24374 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24375 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24376 if test -n "$CONFIG_FILES"; then
24377 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24378 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24379 # Ony modify Makefiles that are just being created.
24380 case " $CONFIG_FILES" in
24381 *" Makefile"*)
24382 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24384 esac
24385 case $CONFIG_FILES in
24386 *src/Makefile*)
24387 grep '^MULTISUBDIR =' Makefile >> src/Makefile
24389 esac
24390 case $CONFIG_FILES in
24391 *libsupc++/Makefile*)
24392 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24394 esac
24395 case $CONFIG_FILES in
24396 *testsuite/Makefile*)
24397 grep '^MULTISUBDIR =' Makefile >> testsuite/Makefile
24399 esac
24402 chmod +x scripts/check_survey
24403 chmod +x scripts/testsuite_flags
24404 exit 0
24406 chmod +x $CONFIG_STATUS
24407 rm -fr confdefs* $ac_clean_files
24408 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24412 # Sanity checking & User-visible messages.
24413 # Checks down here, otherwise they get scrolled off before
24414 # the user will notice.
24416 # Trying to get more people to read documentation. Possibly remove
24417 # check and warn all the time. There is no "informational" AC_MSG_
24418 # macro, so these are going to be printed even when --quiet/--silent
24419 # is given.
24420 if test ! -f stamp-sanity-warned; then
24421 touch stamp-sanity-warned
24422 echo ""
24423 echo "Please make certain that you read the installation information here:"
24424 echo " faster => ${srcdir}/docs/html/install.html"
24425 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24426 echo ""
24427 echo "and the configuration information here:"
24428 echo " faster => ${srcdir}/docs/html/configopts.html"
24429 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24430 echo ""
24431 echo "before proceeding with ${_cv_gnu_make_command}."
24432 echo ""