* c-decl.c (finish_decl): Don't set DECL_C_HARD_REGISTER for
[official-gcc.git] / libstdc++-v3 / configure
blobb1a6b0aa01734996aa8f8d5d5fb365d3c3b57734
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 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
17 ac_help="$ac_help
18 --with-cross-host=HOST configuring with a cross compiler"
19 ac_help="$ac_help
20 --enable-multilib build hella library versions (default)"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --enable-debug extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39 --enable-cstdio enable stdio for target io package.
40 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
42 ac_help="$ac_help
43 --enable-clocale enable model for target locale package.
44 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
46 ac_help="$ac_help
47 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
50 ac_help="$ac_help
51 --enable-long-long turns on 'long long' [default=yes]"
52 ac_help="$ac_help
53 --enable-cheaders construct "C" header files for g++ [default=c_std]"
54 ac_help="$ac_help
55 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
56 [default=none]"
57 ac_help="$ac_help
58 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
59 ac_help="$ac_help
60 --with-gxx-include-dir the installation directory for include files"
61 ac_help="$ac_help
62 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
64 # Initialize some variables set by options.
65 # The variables have the same names as the options, with
66 # dashes changed to underlines.
67 build=NONE
68 cache_file=./config.cache
69 exec_prefix=NONE
70 host=NONE
71 no_create=
72 nonopt=NONE
73 no_recursion=
74 prefix=NONE
75 program_prefix=NONE
76 program_suffix=NONE
77 program_transform_name=s,x,x,
78 silent=
79 site=
80 sitefile=
81 srcdir=
82 target=NONE
83 verbose=
84 x_includes=NONE
85 x_libraries=NONE
86 bindir='${exec_prefix}/bin'
87 sbindir='${exec_prefix}/sbin'
88 libexecdir='${exec_prefix}/libexec'
89 datadir='${prefix}/share'
90 sysconfdir='${prefix}/etc'
91 sharedstatedir='${prefix}/com'
92 localstatedir='${prefix}/var'
93 libdir='${exec_prefix}/lib'
94 includedir='${prefix}/include'
95 oldincludedir='/usr/include'
96 infodir='${prefix}/info'
97 mandir='${prefix}/man'
99 # Initialize some other variables.
100 subdirs=
101 MFLAGS= MAKEFLAGS=
102 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 ac_max_here_lines=12
106 ac_prev=
107 for ac_option
110 # If the previous option needs an argument, assign it.
111 if test -n "$ac_prev"; then
112 eval "$ac_prev=\$ac_option"
113 ac_prev=
114 continue
117 case "$ac_option" in
118 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
119 *) ac_optarg= ;;
120 esac
122 # Accept the important Cygnus configure options, so we can diagnose typos.
124 case "$ac_option" in
126 -bindir | --bindir | --bindi | --bind | --bin | --bi)
127 ac_prev=bindir ;;
128 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
129 bindir="$ac_optarg" ;;
131 -build | --build | --buil | --bui | --bu)
132 ac_prev=build ;;
133 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
134 build="$ac_optarg" ;;
136 -cache-file | --cache-file | --cache-fil | --cache-fi \
137 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
138 ac_prev=cache_file ;;
139 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
140 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
141 cache_file="$ac_optarg" ;;
143 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
144 ac_prev=datadir ;;
145 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
146 | --da=*)
147 datadir="$ac_optarg" ;;
149 -disable-* | --disable-*)
150 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156 eval "enable_${ac_feature}=no" ;;
158 -enable-* | --enable-*)
159 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160 # Reject names that are not valid shell variable names.
161 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165 case "$ac_option" in
166 *=*) ;;
167 *) ac_optarg=yes ;;
168 esac
169 eval "enable_${ac_feature}='$ac_optarg'" ;;
171 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
172 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
173 | --exec | --exe | --ex)
174 ac_prev=exec_prefix ;;
175 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
176 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
177 | --exec=* | --exe=* | --ex=*)
178 exec_prefix="$ac_optarg" ;;
180 -gas | --gas | --ga | --g)
181 # Obsolete; use --with-gas.
182 with_gas=yes ;;
184 -help | --help | --hel | --he)
185 # Omit some internal or obsolete options to make the list less imposing.
186 # This message is too long to be a string in the A/UX 3.1 sh.
187 cat << EOF
188 Usage: configure [options] [host]
189 Options: [defaults in brackets after descriptions]
190 Configuration:
191 --cache-file=FILE cache test results in FILE
192 --help print this message
193 --no-create do not create output files
194 --quiet, --silent do not print \`checking...' messages
195 --site-file=FILE use FILE as the site file
196 --version print the version of autoconf that created configure
197 Directory and file names:
198 --prefix=PREFIX install architecture-independent files in PREFIX
199 [$ac_default_prefix]
200 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
201 [same as prefix]
202 --bindir=DIR user executables in DIR [EPREFIX/bin]
203 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
204 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
205 --datadir=DIR read-only architecture-independent data in DIR
206 [PREFIX/share]
207 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
208 --sharedstatedir=DIR modifiable architecture-independent data in DIR
209 [PREFIX/com]
210 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
211 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
212 --includedir=DIR C header files in DIR [PREFIX/include]
213 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
214 --infodir=DIR info documentation in DIR [PREFIX/info]
215 --mandir=DIR man documentation in DIR [PREFIX/man]
216 --srcdir=DIR find the sources in DIR [configure dir or ..]
217 --program-prefix=PREFIX prepend PREFIX to installed program names
218 --program-suffix=SUFFIX append SUFFIX to installed program names
219 --program-transform-name=PROGRAM
220 run sed PROGRAM on installed program names
222 cat << EOF
223 Host type:
224 --build=BUILD configure for building on BUILD [BUILD=HOST]
225 --host=HOST configure for HOST [guessed]
226 --target=TARGET configure for TARGET [TARGET=HOST]
227 Features and packages:
228 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
229 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
230 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
231 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
232 --x-includes=DIR X include files are in DIR
233 --x-libraries=DIR X library files are in DIR
235 if test -n "$ac_help"; then
236 echo "--enable and --with options recognized:$ac_help"
238 exit 0 ;;
240 -host | --host | --hos | --ho)
241 ac_prev=host ;;
242 -host=* | --host=* | --hos=* | --ho=*)
243 host="$ac_optarg" ;;
245 -includedir | --includedir | --includedi | --included | --include \
246 | --includ | --inclu | --incl | --inc)
247 ac_prev=includedir ;;
248 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
249 | --includ=* | --inclu=* | --incl=* | --inc=*)
250 includedir="$ac_optarg" ;;
252 -infodir | --infodir | --infodi | --infod | --info | --inf)
253 ac_prev=infodir ;;
254 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
255 infodir="$ac_optarg" ;;
257 -libdir | --libdir | --libdi | --libd)
258 ac_prev=libdir ;;
259 -libdir=* | --libdir=* | --libdi=* | --libd=*)
260 libdir="$ac_optarg" ;;
262 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
263 | --libexe | --libex | --libe)
264 ac_prev=libexecdir ;;
265 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
266 | --libexe=* | --libex=* | --libe=*)
267 libexecdir="$ac_optarg" ;;
269 -localstatedir | --localstatedir | --localstatedi | --localstated \
270 | --localstate | --localstat | --localsta | --localst \
271 | --locals | --local | --loca | --loc | --lo)
272 ac_prev=localstatedir ;;
273 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
274 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
275 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
276 localstatedir="$ac_optarg" ;;
278 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279 ac_prev=mandir ;;
280 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
281 mandir="$ac_optarg" ;;
283 -nfp | --nfp | --nf)
284 # Obsolete; use --without-fp.
285 with_fp=no ;;
287 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
288 | --no-cr | --no-c)
289 no_create=yes ;;
291 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
292 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293 no_recursion=yes ;;
295 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
296 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
297 | --oldin | --oldi | --old | --ol | --o)
298 ac_prev=oldincludedir ;;
299 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
300 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
301 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
302 oldincludedir="$ac_optarg" ;;
304 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305 ac_prev=prefix ;;
306 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307 prefix="$ac_optarg" ;;
309 -program-prefix | --program-prefix | --program-prefi | --program-pref \
310 | --program-pre | --program-pr | --program-p)
311 ac_prev=program_prefix ;;
312 -program-prefix=* | --program-prefix=* | --program-prefi=* \
313 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
314 program_prefix="$ac_optarg" ;;
316 -program-suffix | --program-suffix | --program-suffi | --program-suff \
317 | --program-suf | --program-su | --program-s)
318 ac_prev=program_suffix ;;
319 -program-suffix=* | --program-suffix=* | --program-suffi=* \
320 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
321 program_suffix="$ac_optarg" ;;
323 -program-transform-name | --program-transform-name \
324 | --program-transform-nam | --program-transform-na \
325 | --program-transform-n | --program-transform- \
326 | --program-transform | --program-transfor \
327 | --program-transfo | --program-transf \
328 | --program-trans | --program-tran \
329 | --progr-tra | --program-tr | --program-t)
330 ac_prev=program_transform_name ;;
331 -program-transform-name=* | --program-transform-name=* \
332 | --program-transform-nam=* | --program-transform-na=* \
333 | --program-transform-n=* | --program-transform-=* \
334 | --program-transform=* | --program-transfor=* \
335 | --program-transfo=* | --program-transf=* \
336 | --program-trans=* | --program-tran=* \
337 | --progr-tra=* | --program-tr=* | --program-t=*)
338 program_transform_name="$ac_optarg" ;;
340 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
341 | -silent | --silent | --silen | --sile | --sil)
342 silent=yes ;;
344 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345 ac_prev=sbindir ;;
346 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347 | --sbi=* | --sb=*)
348 sbindir="$ac_optarg" ;;
350 -sharedstatedir | --sharedstatedir | --sharedstatedi \
351 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
352 | --sharedst | --shareds | --shared | --share | --shar \
353 | --sha | --sh)
354 ac_prev=sharedstatedir ;;
355 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
356 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
357 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358 | --sha=* | --sh=*)
359 sharedstatedir="$ac_optarg" ;;
361 -site | --site | --sit)
362 ac_prev=site ;;
363 -site=* | --site=* | --sit=*)
364 site="$ac_optarg" ;;
366 -site-file | --site-file | --site-fil | --site-fi | --site-f)
367 ac_prev=sitefile ;;
368 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
369 sitefile="$ac_optarg" ;;
371 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
372 ac_prev=srcdir ;;
373 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
374 srcdir="$ac_optarg" ;;
376 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
377 | --syscon | --sysco | --sysc | --sys | --sy)
378 ac_prev=sysconfdir ;;
379 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
380 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
381 sysconfdir="$ac_optarg" ;;
383 -target | --target | --targe | --targ | --tar | --ta | --t)
384 ac_prev=target ;;
385 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
386 target="$ac_optarg" ;;
388 -v | -verbose | --verbose | --verbos | --verbo | --verb)
389 verbose=yes ;;
391 -version | --version | --versio | --versi | --vers)
392 echo "configure generated by autoconf version 2.13"
393 exit 0 ;;
395 -with-* | --with-*)
396 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
397 # Reject names that are not valid shell variable names.
398 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
399 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401 ac_package=`echo $ac_package| sed 's/-/_/g'`
402 case "$ac_option" in
403 *=*) ;;
404 *) ac_optarg=yes ;;
405 esac
406 eval "with_${ac_package}='$ac_optarg'" ;;
408 -without-* | --without-*)
409 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
412 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414 ac_package=`echo $ac_package| sed 's/-/_/g'`
415 eval "with_${ac_package}=no" ;;
417 --x)
418 # Obsolete; use --with-x.
419 with_x=yes ;;
421 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
422 | --x-incl | --x-inc | --x-in | --x-i)
423 ac_prev=x_includes ;;
424 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
425 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
426 x_includes="$ac_optarg" ;;
428 -x-libraries | --x-libraries | --x-librarie | --x-librari \
429 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
430 ac_prev=x_libraries ;;
431 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
432 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
433 x_libraries="$ac_optarg" ;;
435 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
439 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
440 echo "configure: warning: $ac_option: invalid host type" 1>&2
442 if test "x$nonopt" != xNONE; then
443 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
445 nonopt="$ac_option"
448 esac
449 done
451 if test -n "$ac_prev"; then
452 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
455 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
457 # File descriptor usage:
458 # 0 standard input
459 # 1 file creation
460 # 2 errors and warnings
461 # 3 some systems may open it to /dev/tty
462 # 4 used on the Kubota Titan
463 # 6 checking for... messages and results
464 # 5 compiler messages saved in config.log
465 if test "$silent" = yes; then
466 exec 6>/dev/null
467 else
468 exec 6>&1
470 exec 5>./config.log
472 echo "\
473 This file contains any messages produced by compilers while
474 running configure, to aid debugging if configure makes a mistake.
475 " 1>&5
477 # Strip out --no-create and --no-recursion so they do not pile up.
478 # Also quote any args containing shell metacharacters.
479 ac_configure_args=
480 for ac_arg
482 case "$ac_arg" in
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c) ;;
485 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
486 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
487 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
488 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
489 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
490 esac
491 done
493 # NLS nuisances.
494 # Only set these to C if already set. These must not be set unconditionally
495 # because not all systems understand e.g. LANG=C (notably SCO).
496 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
497 # Non-C LC_CTYPE values break the ctype check.
498 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
499 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
500 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
501 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
503 # confdefs.h avoids OS command line length limits that DEFS can exceed.
504 rm -rf conftest* confdefs.h
505 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
506 echo > confdefs.h
508 # A filename unique to this package, relative to the directory that
509 # configure is in, which we can look for to find out if srcdir is correct.
510 ac_unique_file=src/ios.cc
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514 ac_srcdir_defaulted=yes
515 # Try the directory containing this script, then its parent.
516 ac_prog=$0
517 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
518 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
519 srcdir=$ac_confdir
520 if test ! -r $srcdir/$ac_unique_file; then
521 srcdir=..
523 else
524 ac_srcdir_defaulted=no
526 if test ! -r $srcdir/$ac_unique_file; then
527 if test "$ac_srcdir_defaulted" = yes; then
528 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
529 else
530 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
533 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
535 # Prefer explicitly selected file to automatically selected ones.
536 if test -z "$sitefile"; then
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE; then
539 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540 else
541 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 else
545 CONFIG_SITE="$sitefile"
547 for ac_site_file in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
549 echo "loading site script $ac_site_file"
550 . "$ac_site_file"
552 done
554 if test -r "$cache_file"; then
555 echo "loading cache $cache_file"
556 . $cache_file
557 else
558 echo "creating cache $cache_file"
559 > $cache_file
562 ac_ext=c
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp='$CPP $CPPFLAGS'
565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling=$ac_cv_prog_cc_cross
569 ac_exeext=
570 ac_objext=o
571 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574 ac_n= ac_c='
575 ' ac_t=' '
576 else
577 ac_n=-n ac_c= ac_t=
579 else
580 ac_n= ac_c='\c' ac_t=
585 # When building with srcdir == objdir, links to the source files will
586 # be created in directories within the target_subdir. We have to
587 # adjust toplevel_srcdir accordingly, so that configure finds
588 # install-sh and other auxiliary files that live in the top-level
589 # source directory.
590 if test "${srcdir}" = "."; then
591 if test -z "${with_target_subdir}"; then
592 toplevel_srcdir="\${top_srcdir}/.."
593 auxdir="${srcdir}/.."
594 else
595 if test "${with_target_subdir}" != "."; then
596 toplevel_srcdir="\${top_srcdir}/${with_multisrctop}../.."
597 auxdir="${srcdir}/${with_multisrctop}../.."
598 else
599 toplevel_srcdir="\${top_srcdir}/${with_multisrctop}.."
600 auxdir="${srcdir}/${with_multisrctop}.."
603 else
604 toplevel_srcdir="\${top_srcdir}/.."
605 auxdir="${srcdir}/.."
607 ac_aux_dir=
608 for ac_dir in $auxdir $srcdir/$auxdir; do
609 if test -f $ac_dir/install-sh; then
610 ac_aux_dir=$ac_dir
611 ac_install_sh="$ac_aux_dir/install-sh -c"
612 break
613 elif test -f $ac_dir/install.sh; then
614 ac_aux_dir=$ac_dir
615 ac_install_sh="$ac_aux_dir/install.sh -c"
616 break
618 done
619 if test -z "$ac_aux_dir"; then
620 { echo "configure: error: can not find install-sh or install.sh in $auxdir $srcdir/$auxdir" 1>&2; exit 1; }
622 ac_config_guess=$ac_aux_dir/config.guess
623 ac_config_sub=$ac_aux_dir/config.sub
624 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
630 # Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc.
632 # Do some error checking and defaulting for the host and target type.
633 # The inputs are:
634 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
636 # The rules are:
637 # 1. You are not allowed to specify --host, --target, and nonopt at the
638 # same time.
639 # 2. Host defaults to nonopt.
640 # 3. If nonopt is not specified, then host defaults to the current host,
641 # as determined by config.guess.
642 # 4. Target and build default to nonopt.
643 # 5. If nonopt is not specified, then target and build default to host.
645 # The aliases save the names the user supplied, while $host etc.
646 # will get canonicalized.
647 case $host---$target---$nonopt in
648 NONE---*---* | *---NONE---* | *---*---NONE) ;;
649 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
650 esac
653 # Make sure we can run config.sub.
654 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
655 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
658 echo $ac_n "checking host system type""... $ac_c" 1>&6
659 echo "configure:660: checking host system type" >&5
661 host_alias=$host
662 case "$host_alias" in
663 NONE)
664 case $nonopt in
665 NONE)
666 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
667 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
668 fi ;;
669 *) host_alias=$nonopt ;;
670 esac ;;
671 esac
673 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
674 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
677 echo "$ac_t""$host" 1>&6
679 echo $ac_n "checking target system type""... $ac_c" 1>&6
680 echo "configure:681: checking target system type" >&5
682 target_alias=$target
683 case "$target_alias" in
684 NONE)
685 case $nonopt in
686 NONE) target_alias=$host_alias ;;
687 *) target_alias=$nonopt ;;
688 esac ;;
689 esac
691 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
692 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
693 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
694 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
695 echo "$ac_t""$target" 1>&6
697 echo $ac_n "checking build system type""... $ac_c" 1>&6
698 echo "configure:699: checking build system type" >&5
700 build_alias=$build
701 case "$build_alias" in
702 NONE)
703 case $nonopt in
704 NONE) build_alias=$host_alias ;;
705 *) build_alias=$nonopt ;;
706 esac ;;
707 esac
709 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
710 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
711 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
712 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
713 echo "$ac_t""$build" 1>&6
715 test "$host_alias" != "$target_alias" &&
716 test "$program_prefix$program_suffix$program_transform_name" = \
717 NONENONEs,x,x, &&
718 program_prefix=${target_alias}-
721 # We use these options to decide which functions to include.
722 # Check whether --with-target-subdir or --without-target-subdir was given.
723 if test "${with_target_subdir+set}" = set; then
724 withval="$with_target_subdir"
728 # Check whether --with-cross-host or --without-cross-host was given.
729 if test "${with_cross_host+set}" = set; then
730 withval="$with_cross_host"
735 # Runs configure.host and configure.target. Have to run this before
736 # the GLIBCPP_ENABLE_* macros below.
737 # Find a good install program. We prefer a C program (faster),
738 # so one script is as good as another. But avoid the broken or
739 # incompatible versions:
740 # SysV /etc/install, /usr/sbin/install
741 # SunOS /usr/etc/install
742 # IRIX /sbin/install
743 # AIX /bin/install
744 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
745 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
746 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
747 # ./install, which can be erroneously created by make from ./install.sh.
748 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
749 echo "configure:750: checking for a BSD compatible install" >&5
750 if test -z "$INSTALL"; then
751 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
753 else
754 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
755 for ac_dir in $PATH; do
756 # Account for people who put trailing slashes in PATH elements.
757 case "$ac_dir/" in
758 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
760 # OSF1 and SCO ODT 3.0 have their own names for install.
761 # Don't use installbsd from OSF since it installs stuff as root
762 # by default.
763 for ac_prog in ginstall scoinst install; do
764 if test -f $ac_dir/$ac_prog; then
765 if test $ac_prog = install &&
766 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
767 # AIX install. It has an incompatible calling convention.
769 else
770 ac_cv_path_install="$ac_dir/$ac_prog -c"
771 break 2
774 done
776 esac
777 done
778 IFS="$ac_save_IFS"
781 if test "${ac_cv_path_install+set}" = set; then
782 INSTALL="$ac_cv_path_install"
783 else
784 # As a last resort, use the slow shell script. We don't cache a
785 # path for INSTALL within a source directory, because that will
786 # break other packages using the cache if that directory is
787 # removed, or if the path is relative.
788 INSTALL="$ac_install_sh"
791 echo "$ac_t""$INSTALL" 1>&6
793 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
794 # It thinks the first close brace ends the variable substitution.
795 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
797 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
799 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
801 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
802 echo "configure:803: checking whether build environment is sane" >&5
803 # Just in case
804 sleep 1
805 echo timestamp > conftestfile
806 # Do `set' in a subshell so we don't clobber the current shell's
807 # arguments. Must try -L first in case configure is actually a
808 # symlink; some systems play weird games with the mod time of symlinks
809 # (eg FreeBSD returns the mod time of the symlink's containing
810 # directory).
811 if (
812 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
813 if test "$*" = "X"; then
814 # -L didn't work.
815 set X `ls -t $srcdir/configure conftestfile`
817 if test "$*" != "X $srcdir/configure conftestfile" \
818 && test "$*" != "X conftestfile $srcdir/configure"; then
820 # If neither matched, then we have a broken ls. This can happen
821 # if, for instance, CONFIG_SHELL is bash and it inherits a
822 # broken ls alias from the environment. This has actually
823 # happened. Such a system could not be considered "sane".
824 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
825 alias in your environment" 1>&2; exit 1; }
828 test "$2" = conftestfile
830 then
831 # Ok.
833 else
834 { echo "configure: error: newly created file is older than distributed files!
835 Check your system clock" 1>&2; exit 1; }
837 rm -f conftest*
838 echo "$ac_t""yes" 1>&6
839 if test "$program_transform_name" = s,x,x,; then
840 program_transform_name=
841 else
842 # Double any \ or $. echo might interpret backslashes.
843 cat <<\EOF_SED > conftestsed
844 s,\\,\\\\,g; s,\$,$$,g
845 EOF_SED
846 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
847 rm -f conftestsed
849 test "$program_prefix" != NONE &&
850 program_transform_name="s,^,${program_prefix},; $program_transform_name"
851 # Use a double $ so make ignores it.
852 test "$program_suffix" != NONE &&
853 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
855 # sed with no file args requires a program.
856 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
858 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
859 echo "configure:860: checking whether ${MAKE-make} sets \${MAKE}" >&5
860 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
861 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
862 echo $ac_n "(cached) $ac_c" 1>&6
863 else
864 cat > conftestmake <<\EOF
865 all:
866 @echo 'ac_maketemp="${MAKE}"'
868 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
869 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
870 if test -n "$ac_maketemp"; then
871 eval ac_cv_prog_make_${ac_make}_set=yes
872 else
873 eval ac_cv_prog_make_${ac_make}_set=no
875 rm -f conftestmake
877 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
878 echo "$ac_t""yes" 1>&6
879 SET_MAKE=
880 else
881 echo "$ac_t""no" 1>&6
882 SET_MAKE="MAKE=${MAKE-make}"
885 if test $host != $build; then
886 ac_tool_prefix=${host_alias}-
887 else
888 ac_tool_prefix=
891 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
892 echo "configure:893: checking for Cygwin environment" >&5
893 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
895 else
896 cat > conftest.$ac_ext <<EOF
897 #line 898 "configure"
898 #include "confdefs.h"
900 int main() {
902 #ifndef __CYGWIN__
903 #define __CYGWIN__ __CYGWIN32__
904 #endif
905 return __CYGWIN__;
906 ; return 0; }
908 if { (eval echo configure:909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
909 rm -rf conftest*
910 ac_cv_cygwin=yes
911 else
912 echo "configure: failed program was:" >&5
913 cat conftest.$ac_ext >&5
914 rm -rf conftest*
915 ac_cv_cygwin=no
917 rm -f conftest*
918 rm -f conftest*
921 echo "$ac_t""$ac_cv_cygwin" 1>&6
922 CYGWIN=
923 test "$ac_cv_cygwin" = yes && CYGWIN=yes
924 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
925 echo "configure:926: checking for mingw32 environment" >&5
926 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
927 echo $ac_n "(cached) $ac_c" 1>&6
928 else
929 cat > conftest.$ac_ext <<EOF
930 #line 931 "configure"
931 #include "confdefs.h"
933 int main() {
934 return __MINGW32__;
935 ; return 0; }
937 if { (eval echo configure:938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
938 rm -rf conftest*
939 ac_cv_mingw32=yes
940 else
941 echo "configure: failed program was:" >&5
942 cat conftest.$ac_ext >&5
943 rm -rf conftest*
944 ac_cv_mingw32=no
946 rm -f conftest*
947 rm -f conftest*
950 echo "$ac_t""$ac_cv_mingw32" 1>&6
951 MINGW32=
952 test "$ac_cv_mingw32" = yes && MINGW32=yes
954 # Check whether --enable-multilib or --disable-multilib was given.
955 if test "${enable_multilib+set}" = set; then
956 enableval="$enable_multilib"
957 case "${enableval}" in
958 yes) multilib=yes ;;
959 no) multilib=no ;;
960 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
961 esac
962 else
963 multilib=yes
966 glibcpp_basedir=$auxdir/./libstdc++-v3
970 PACKAGE=libstdc++
972 VERSION=2.92
974 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
975 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
977 cat >> confdefs.h <<EOF
978 #define PACKAGE "$PACKAGE"
981 cat >> confdefs.h <<EOF
982 #define VERSION "$VERSION"
987 missing_dir=`cd $ac_aux_dir && pwd`
988 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
989 echo "configure:990: checking for working aclocal" >&5
990 # Run test in a subshell; some versions of sh will print an error if
991 # an executable is not found, even if stderr is redirected.
992 # Redirect stdin to placate older versions of autoconf. Sigh.
993 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
994 ACLOCAL=aclocal
995 echo "$ac_t""found" 1>&6
996 else
997 ACLOCAL="$missing_dir/missing aclocal"
998 echo "$ac_t""missing" 1>&6
1001 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1002 echo "configure:1003: checking for working autoconf" >&5
1003 # Run test in a subshell; some versions of sh will print an error if
1004 # an executable is not found, even if stderr is redirected.
1005 # Redirect stdin to placate older versions of autoconf. Sigh.
1006 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1007 AUTOCONF=autoconf
1008 echo "$ac_t""found" 1>&6
1009 else
1010 AUTOCONF="$missing_dir/missing autoconf"
1011 echo "$ac_t""missing" 1>&6
1014 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1015 echo "configure:1016: checking for working automake" >&5
1016 # Run test in a subshell; some versions of sh will print an error if
1017 # an executable is not found, even if stderr is redirected.
1018 # Redirect stdin to placate older versions of autoconf. Sigh.
1019 if (automake --version) < /dev/null > /dev/null 2>&1; then
1020 AUTOMAKE=automake
1021 echo "$ac_t""found" 1>&6
1022 else
1023 AUTOMAKE="$missing_dir/missing automake"
1024 echo "$ac_t""missing" 1>&6
1027 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1028 echo "configure:1029: checking for working autoheader" >&5
1029 # Run test in a subshell; some versions of sh will print an error if
1030 # an executable is not found, even if stderr is redirected.
1031 # Redirect stdin to placate older versions of autoconf. Sigh.
1032 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1033 AUTOHEADER=autoheader
1034 echo "$ac_t""found" 1>&6
1035 else
1036 AUTOHEADER="$missing_dir/missing autoheader"
1037 echo "$ac_t""missing" 1>&6
1040 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1041 echo "configure:1042: checking for working makeinfo" >&5
1042 # Run test in a subshell; some versions of sh will print an error if
1043 # an executable is not found, even if stderr is redirected.
1044 # Redirect stdin to placate older versions of autoconf. Sigh.
1045 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1046 MAKEINFO=makeinfo
1047 echo "$ac_t""found" 1>&6
1048 else
1049 MAKEINFO="$missing_dir/missing makeinfo"
1050 echo "$ac_t""missing" 1>&6
1055 # Never versions of autoconf add an underscore to these functions.
1056 # Prevent future problems ...
1062 # AC_PROG_CC
1064 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1065 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1066 # are probably using a cross compiler, which will not be able to fully
1067 # link an executable. This should really be fixed in autoconf
1068 # itself.
1073 # Extract the first word of "gcc", so it can be a program name with args.
1074 set dummy gcc; ac_word=$2
1075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1076 echo "configure:1077: checking for $ac_word" >&5
1077 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1079 else
1080 if test -n "$CC"; then
1081 ac_cv_prog_CC="$CC" # Let the user override the test.
1082 else
1083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1084 ac_dummy="$PATH"
1085 for ac_dir in $ac_dummy; do
1086 test -z "$ac_dir" && ac_dir=.
1087 if test -f $ac_dir/$ac_word; then
1088 ac_cv_prog_CC="gcc"
1089 break
1091 done
1092 IFS="$ac_save_ifs"
1095 CC="$ac_cv_prog_CC"
1096 if test -n "$CC"; then
1097 echo "$ac_t""$CC" 1>&6
1098 else
1099 echo "$ac_t""no" 1>&6
1102 if test -z "$CC"; then
1103 # Extract the first word of "cc", so it can be a program name with args.
1104 set dummy cc; ac_word=$2
1105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1106 echo "configure:1107: checking for $ac_word" >&5
1107 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1109 else
1110 if test -n "$CC"; then
1111 ac_cv_prog_CC="$CC" # Let the user override the test.
1112 else
1113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1114 ac_prog_rejected=no
1115 ac_dummy="$PATH"
1116 for ac_dir in $ac_dummy; do
1117 test -z "$ac_dir" && ac_dir=.
1118 if test -f $ac_dir/$ac_word; then
1119 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1120 ac_prog_rejected=yes
1121 continue
1123 ac_cv_prog_CC="cc"
1124 break
1126 done
1127 IFS="$ac_save_ifs"
1128 if test $ac_prog_rejected = yes; then
1129 # We found a bogon in the path, so make sure we never use it.
1130 set dummy $ac_cv_prog_CC
1131 shift
1132 if test $# -gt 0; then
1133 # We chose a different compiler from the bogus one.
1134 # However, it has the same basename, so the bogon will be chosen
1135 # first if we set CC to just the basename; use the full file name.
1136 shift
1137 set dummy "$ac_dir/$ac_word" "$@"
1138 shift
1139 ac_cv_prog_CC="$@"
1144 CC="$ac_cv_prog_CC"
1145 if test -n "$CC"; then
1146 echo "$ac_t""$CC" 1>&6
1147 else
1148 echo "$ac_t""no" 1>&6
1151 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1154 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1155 echo "configure:1156: checking whether we are using GNU C" >&5
1156 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1158 else
1159 cat > conftest.c <<EOF
1160 #ifdef __GNUC__
1161 yes;
1162 #endif
1164 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1165 ac_cv_prog_gcc=yes
1166 else
1167 ac_cv_prog_gcc=no
1171 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1173 if test $ac_cv_prog_gcc = yes; then
1174 GCC=yes
1175 ac_test_CFLAGS="${CFLAGS+set}"
1176 ac_save_CFLAGS="$CFLAGS"
1177 CFLAGS=
1178 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1179 echo "configure:1180: checking whether ${CC-cc} accepts -g" >&5
1180 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1182 else
1183 echo 'void f(){}' > conftest.c
1184 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1185 ac_cv_prog_cc_g=yes
1186 else
1187 ac_cv_prog_cc_g=no
1189 rm -f conftest*
1193 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1194 if test "$ac_test_CFLAGS" = set; then
1195 CFLAGS="$ac_save_CFLAGS"
1196 elif test $ac_cv_prog_cc_g = yes; then
1197 CFLAGS="-g -O2"
1198 else
1199 CFLAGS="-O2"
1201 else
1202 GCC=
1203 test "${CFLAGS+set}" = set || CFLAGS="-g"
1207 # Can't just call these here as g++ requires libstc++ to be built....
1208 # AC_PROG_CXX
1210 # Likewise for AC_PROG_CXX.
1214 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1215 # flags that come in CXX while configuring libstdc++. They're different
1216 # from those used for all other target libraries. If CXX is set in
1217 # the environment, respect that here.
1218 glibcpp_CXX=$CXX
1219 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1221 # Extract the first word of "$ac_prog", so it can be a program name with args.
1222 set dummy $ac_prog; ac_word=$2
1223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1224 echo "configure:1225: checking for $ac_word" >&5
1225 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1227 else
1228 if test -n "$glibcpp_CXX"; then
1229 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1230 else
1231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1232 ac_dummy="$PATH"
1233 for ac_dir in $ac_dummy; do
1234 test -z "$ac_dir" && ac_dir=.
1235 if test -f $ac_dir/$ac_word; then
1236 ac_cv_prog_glibcpp_CXX="$ac_prog"
1237 break
1239 done
1240 IFS="$ac_save_ifs"
1243 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1244 if test -n "$glibcpp_CXX"; then
1245 echo "$ac_t""$glibcpp_CXX" 1>&6
1246 else
1247 echo "$ac_t""no" 1>&6
1250 test -n "$glibcpp_CXX" && break
1251 done
1252 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1255 CXX=$glibcpp_CXX
1256 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1258 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1259 echo "configure:1260: checking whether we are using GNU C++" >&5
1260 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1262 else
1263 cat > conftest.C <<EOF
1264 #ifdef __GNUC__
1265 yes;
1266 #endif
1268 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1269 ac_cv_prog_gxx=yes
1270 else
1271 ac_cv_prog_gxx=no
1275 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1277 if test $ac_cv_prog_gxx = yes; then
1278 GXX=yes
1279 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1280 ac_save_CXXFLAGS="$CXXFLAGS"
1281 CXXFLAGS=
1282 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1283 echo "configure:1284: checking whether ${CXX-g++} accepts -g" >&5
1284 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1286 else
1287 echo 'void f(){}' > conftest.cc
1288 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1289 ac_cv_prog_cxx_g=yes
1290 else
1291 ac_cv_prog_cxx_g=no
1293 rm -f conftest*
1297 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1298 if test "$ac_test_CXXFLAGS" = set; then
1299 CXXFLAGS="$ac_save_CXXFLAGS"
1300 elif test $ac_cv_prog_cxx_g = yes; then
1301 CXXFLAGS="-g -O2"
1302 else
1303 CXXFLAGS="-O2"
1305 else
1306 GXX=
1307 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1311 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1312 set dummy ${ac_tool_prefix}as; ac_word=$2
1313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1314 echo "configure:1315: checking for $ac_word" >&5
1315 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1317 else
1318 if test -n "$AS"; then
1319 ac_cv_prog_AS="$AS" # Let the user override the test.
1320 else
1321 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1322 ac_dummy="$PATH"
1323 for ac_dir in $ac_dummy; do
1324 test -z "$ac_dir" && ac_dir=.
1325 if test -f $ac_dir/$ac_word; then
1326 ac_cv_prog_AS="${ac_tool_prefix}as"
1327 break
1329 done
1330 IFS="$ac_save_ifs"
1331 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1334 AS="$ac_cv_prog_AS"
1335 if test -n "$AS"; then
1336 echo "$ac_t""$AS" 1>&6
1337 else
1338 echo "$ac_t""no" 1>&6
1343 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1344 set dummy ${ac_tool_prefix}ar; ac_word=$2
1345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1346 echo "configure:1347: checking for $ac_word" >&5
1347 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1349 else
1350 if test -n "$AR"; then
1351 ac_cv_prog_AR="$AR" # Let the user override the test.
1352 else
1353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1354 ac_dummy="$PATH"
1355 for ac_dir in $ac_dummy; do
1356 test -z "$ac_dir" && ac_dir=.
1357 if test -f $ac_dir/$ac_word; then
1358 ac_cv_prog_AR="${ac_tool_prefix}ar"
1359 break
1361 done
1362 IFS="$ac_save_ifs"
1363 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1366 AR="$ac_cv_prog_AR"
1367 if test -n "$AR"; then
1368 echo "$ac_t""$AR" 1>&6
1369 else
1370 echo "$ac_t""no" 1>&6
1375 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1376 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1378 echo "configure:1379: checking for $ac_word" >&5
1379 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1380 echo $ac_n "(cached) $ac_c" 1>&6
1381 else
1382 if test -n "$RANLIB"; then
1383 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1384 else
1385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1386 ac_dummy="$PATH"
1387 for ac_dir in $ac_dummy; do
1388 test -z "$ac_dir" && ac_dir=.
1389 if test -f $ac_dir/$ac_word; then
1390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1391 break
1393 done
1394 IFS="$ac_save_ifs"
1397 RANLIB="$ac_cv_prog_RANLIB"
1398 if test -n "$RANLIB"; then
1399 echo "$ac_t""$RANLIB" 1>&6
1400 else
1401 echo "$ac_t""no" 1>&6
1405 if test -z "$ac_cv_prog_RANLIB"; then
1406 if test -n "$ac_tool_prefix"; then
1407 # Extract the first word of "ranlib", so it can be a program name with args.
1408 set dummy ranlib; ac_word=$2
1409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1410 echo "configure:1411: checking for $ac_word" >&5
1411 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1413 else
1414 if test -n "$RANLIB"; then
1415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1416 else
1417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1418 ac_dummy="$PATH"
1419 for ac_dir in $ac_dummy; do
1420 test -z "$ac_dir" && ac_dir=.
1421 if test -f $ac_dir/$ac_word; then
1422 ac_cv_prog_RANLIB="ranlib"
1423 break
1425 done
1426 IFS="$ac_save_ifs"
1427 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1430 RANLIB="$ac_cv_prog_RANLIB"
1431 if test -n "$RANLIB"; then
1432 echo "$ac_t""$RANLIB" 1>&6
1433 else
1434 echo "$ac_t""no" 1>&6
1437 else
1438 RANLIB="ranlib-not-found-in-path-error"
1442 # Find a good install program. We prefer a C program (faster),
1443 # so one script is as good as another. But avoid the broken or
1444 # incompatible versions:
1445 # SysV /etc/install, /usr/sbin/install
1446 # SunOS /usr/etc/install
1447 # IRIX /sbin/install
1448 # AIX /bin/install
1449 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1450 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1451 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1452 # ./install, which can be erroneously created by make from ./install.sh.
1453 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1454 echo "configure:1455: checking for a BSD compatible install" >&5
1455 if test -z "$INSTALL"; then
1456 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1458 else
1459 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1460 for ac_dir in $PATH; do
1461 # Account for people who put trailing slashes in PATH elements.
1462 case "$ac_dir/" in
1463 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1465 # OSF1 and SCO ODT 3.0 have their own names for install.
1466 # Don't use installbsd from OSF since it installs stuff as root
1467 # by default.
1468 for ac_prog in ginstall scoinst install; do
1469 if test -f $ac_dir/$ac_prog; then
1470 if test $ac_prog = install &&
1471 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1472 # AIX install. It has an incompatible calling convention.
1474 else
1475 ac_cv_path_install="$ac_dir/$ac_prog -c"
1476 break 2
1479 done
1481 esac
1482 done
1483 IFS="$ac_save_IFS"
1486 if test "${ac_cv_path_install+set}" = set; then
1487 INSTALL="$ac_cv_path_install"
1488 else
1489 # As a last resort, use the slow shell script. We don't cache a
1490 # path for INSTALL within a source directory, because that will
1491 # break other packages using the cache if that directory is
1492 # removed, or if the path is relative.
1493 INSTALL="$ac_install_sh"
1496 echo "$ac_t""$INSTALL" 1>&6
1498 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1499 # It thinks the first close brace ends the variable substitution.
1500 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1502 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1504 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1507 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1508 echo "configure:1509: checking whether to enable maintainer-specific portions of Makefiles" >&5
1509 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1510 if test "${enable_maintainer_mode+set}" = set; then
1511 enableval="$enable_maintainer_mode"
1512 USE_MAINTAINER_MODE=$enableval
1513 else
1514 USE_MAINTAINER_MODE=no
1517 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1520 if test $USE_MAINTAINER_MODE = yes; then
1521 MAINTAINER_MODE_TRUE=
1522 MAINTAINER_MODE_FALSE='#'
1523 else
1524 MAINTAINER_MODE_TRUE='#'
1525 MAINTAINER_MODE_FALSE=
1527 MAINT=$MAINTAINER_MODE_TRUE
1531 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1532 # at least currently, we never actually build a program, so we never
1533 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1534 # fails, because we are probably configuring with a cross compiler
1535 # which cant create executables. So we include AC_EXEEXT to keep
1536 # automake happy, but we dont execute it, since we dont care about
1537 # the result.
1538 if false; then
1541 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1542 echo "configure:1543: checking for executable suffix" >&5
1543 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1545 else
1546 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1547 ac_cv_exeext=.exe
1548 else
1549 rm -f conftest*
1550 echo 'int main () { return 0; }' > conftest.$ac_ext
1551 ac_cv_exeext=
1552 if { (eval echo configure:1553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1553 for file in conftest.*; do
1554 case $file in
1555 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1556 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1557 esac
1558 done
1559 else
1560 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1562 rm -f conftest*
1563 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1567 EXEEXT=""
1568 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1569 echo "$ac_t""${ac_cv_exeext}" 1>&6
1570 ac_exeext=$EXEEXT
1574 . ${glibcpp_basedir}/configure.host
1576 case ${glibcpp_basedir} in
1577 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1578 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1579 esac
1581 # This does for the target what configure.host does for the host. In
1582 # addition to possibly modifying the same flags, it also sets up symlinks.
1584 . ${glibcpp_basedir}/configure.target
1585 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1586 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1592 # Check whether --enable-shared or --disable-shared was given.
1593 if test "${enable_shared+set}" = set; then
1594 enableval="$enable_shared"
1595 p=${PACKAGE-default}
1596 case $enableval in
1597 yes) enable_shared=yes ;;
1598 no) enable_shared=no ;;
1600 enable_shared=no
1601 # Look at the argument we got. We use all the common list separators.
1602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1603 for pkg in $enableval; do
1604 if test "X$pkg" = "X$p"; then
1605 enable_shared=yes
1607 done
1608 IFS="$ac_save_ifs"
1610 esac
1611 else
1612 enable_shared=yes
1615 # Check whether --enable-static or --disable-static was given.
1616 if test "${enable_static+set}" = set; then
1617 enableval="$enable_static"
1618 p=${PACKAGE-default}
1619 case $enableval in
1620 yes) enable_static=yes ;;
1621 no) enable_static=no ;;
1623 enable_static=no
1624 # Look at the argument we got. We use all the common list separators.
1625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1626 for pkg in $enableval; do
1627 if test "X$pkg" = "X$p"; then
1628 enable_static=yes
1630 done
1631 IFS="$ac_save_ifs"
1633 esac
1634 else
1635 enable_static=yes
1638 # Check whether --enable-fast-install or --disable-fast-install was given.
1639 if test "${enable_fast_install+set}" = set; then
1640 enableval="$enable_fast_install"
1641 p=${PACKAGE-default}
1642 case $enableval in
1643 yes) enable_fast_install=yes ;;
1644 no) enable_fast_install=no ;;
1646 enable_fast_install=no
1647 # Look at the argument we got. We use all the common list separators.
1648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1649 for pkg in $enableval; do
1650 if test "X$pkg" = "X$p"; then
1651 enable_fast_install=yes
1653 done
1654 IFS="$ac_save_ifs"
1656 esac
1657 else
1658 enable_fast_install=yes
1661 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1662 if test "${with_gnu_ld+set}" = set; then
1663 withval="$with_gnu_ld"
1664 test "$withval" = no || with_gnu_ld=yes
1665 else
1666 with_gnu_ld=no
1669 ac_prog=ld
1670 if test "$GCC" = yes; then
1671 # Check if gcc -print-prog-name=ld gives a path.
1672 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1673 echo "configure:1674: checking for ld used by GCC" >&5
1674 case $host in
1675 *-*-mingw*)
1676 # gcc leaves a trailing carriage return which upsets mingw
1677 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1679 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1680 esac
1681 case $ac_prog in
1682 # Accept absolute paths.
1683 [\\/]* | [A-Za-z]:[\\/]*)
1684 re_direlt='/[^/][^/]*/\.\./'
1685 # Canonicalize the path of ld
1686 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1687 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1688 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1689 done
1690 test -z "$LD" && LD="$ac_prog"
1693 # If it fails, then pretend we aren't using GCC.
1694 ac_prog=ld
1697 # If it is relative, then search for the first ld in PATH.
1698 with_gnu_ld=unknown
1700 esac
1701 elif test "$with_gnu_ld" = yes; then
1702 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1703 echo "configure:1704: checking for GNU ld" >&5
1704 else
1705 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1706 echo "configure:1707: checking for non-GNU ld" >&5
1708 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1710 else
1711 if test -z "$LD"; then
1712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1713 for ac_dir in $PATH; do
1714 test -z "$ac_dir" && ac_dir=.
1715 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1716 lt_cv_path_LD="$ac_dir/$ac_prog"
1717 # Check to see if the program is GNU ld. I'd rather use --version,
1718 # but apparently some GNU ld's only accept -v.
1719 # Break only if it was the GNU/non-GNU ld that we prefer.
1720 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1721 test "$with_gnu_ld" != no && break
1722 else
1723 test "$with_gnu_ld" != yes && break
1726 done
1727 IFS="$ac_save_ifs"
1728 else
1729 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1733 LD="$lt_cv_path_LD"
1734 if test -n "$LD"; then
1735 echo "$ac_t""$LD" 1>&6
1736 else
1737 echo "$ac_t""no" 1>&6
1739 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1740 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1741 echo "configure:1742: checking if the linker ($LD) is GNU ld" >&5
1742 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1744 else
1745 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1746 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1747 lt_cv_prog_gnu_ld=yes
1748 else
1749 lt_cv_prog_gnu_ld=no
1753 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1754 with_gnu_ld=$lt_cv_prog_gnu_ld
1757 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1758 echo "configure:1759: checking for $LD option to reload object files" >&5
1759 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1761 else
1762 lt_cv_ld_reload_flag='-r'
1765 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1766 reload_flag=$lt_cv_ld_reload_flag
1767 test -n "$reload_flag" && reload_flag=" $reload_flag"
1769 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1770 echo "configure:1771: checking for BSD-compatible nm" >&5
1771 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1773 else
1774 if test -n "$NM"; then
1775 # Let the user override the test.
1776 lt_cv_path_NM="$NM"
1777 else
1778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1779 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1780 test -z "$ac_dir" && ac_dir=.
1781 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1782 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1783 # Check to see if the nm accepts a BSD-compat flag.
1784 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1785 # nm: unknown option "B" ignored
1786 # Tru64's nm complains that /dev/null is an invalid object file
1787 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1788 lt_cv_path_NM="$tmp_nm -B"
1789 break
1790 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1791 lt_cv_path_NM="$tmp_nm -p"
1792 break
1793 else
1794 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1795 continue # so that we can try to find one that supports BSD flags
1798 done
1799 IFS="$ac_save_ifs"
1800 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1804 NM="$lt_cv_path_NM"
1805 echo "$ac_t""$NM" 1>&6
1807 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1808 echo "configure:1809: checking whether ln -s works" >&5
1809 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1811 else
1812 rm -f conftestdata
1813 if ln -s X conftestdata 2>/dev/null
1814 then
1815 rm -f conftestdata
1816 ac_cv_prog_LN_S="ln -s"
1817 else
1818 ac_cv_prog_LN_S=ln
1821 LN_S="$ac_cv_prog_LN_S"
1822 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1823 echo "$ac_t""yes" 1>&6
1824 else
1825 echo "$ac_t""no" 1>&6
1828 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1829 echo "configure:1830: checking how to recognise dependant libraries" >&5
1830 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1831 echo $ac_n "(cached) $ac_c" 1>&6
1832 else
1833 lt_cv_file_magic_cmd='$MAGIC_CMD'
1834 lt_cv_file_magic_test_file=
1835 lt_cv_deplibs_check_method='unknown'
1836 # Need to set the preceding variable on all platforms that support
1837 # interlibrary dependencies.
1838 # 'none' -- dependencies not supported.
1839 # `unknown' -- same as none, but documents that we really don't know.
1840 # 'pass_all' -- all dependencies passed with no checks.
1841 # 'test_compile' -- check by making test program.
1842 # 'file_magic [regex]' -- check by looking for files in library path
1843 # which responds to the $file_magic_cmd with a given egrep regex.
1844 # If you have `file' or equivalent on your system and you're not sure
1845 # whether `pass_all' will *always* work, you probably want this one.
1847 case $host_os in
1848 aix*)
1849 lt_cv_deplibs_check_method=pass_all
1852 beos*)
1853 lt_cv_deplibs_check_method=pass_all
1856 bsdi4*)
1857 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1858 lt_cv_file_magic_cmd='/usr/bin/file -L'
1859 lt_cv_file_magic_test_file=/shlib/libc.so
1862 cygwin* | mingw* |pw32*)
1863 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1864 lt_cv_file_magic_cmd='$OBJDUMP -f'
1867 darwin* | rhapsody*)
1868 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1869 lt_cv_file_magic_cmd='/usr/bin/file -L'
1870 case "$host_os" in
1871 rhapsody* | darwin1.012)
1872 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1874 *) # Darwin 1.3 on
1875 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1877 esac
1880 freebsd* )
1881 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1882 case $host_cpu in
1883 i*86 )
1884 # Not sure whether the presence of OpenBSD here was a mistake.
1885 # Let's accept both of them until this is cleared up.
1886 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1887 lt_cv_file_magic_cmd=/usr/bin/file
1888 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1890 esac
1891 else
1892 lt_cv_deplibs_check_method=pass_all
1896 gnu*)
1897 lt_cv_deplibs_check_method=pass_all
1900 hpux10.20*|hpux11*)
1901 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1902 lt_cv_file_magic_cmd=/usr/bin/file
1903 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1906 irix5* | irix6*)
1907 case $host_os in
1908 irix5*)
1909 # this will be overridden with pass_all, but let us keep it just in case
1910 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1913 case $LD in
1914 *-32|*"-32 ") libmagic=32-bit;;
1915 *-n32|*"-n32 ") libmagic=N32;;
1916 *-64|*"-64 ") libmagic=64-bit;;
1917 *) libmagic=never-match;;
1918 esac
1919 # this will be overridden with pass_all, but let us keep it just in case
1920 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1922 esac
1923 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1924 lt_cv_deplibs_check_method=pass_all
1927 # This must be Linux ELF.
1928 linux-gnu*)
1929 case $host_cpu in
1930 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1931 lt_cv_deplibs_check_method=pass_all ;;
1933 # glibc up to 2.1.1 does not perform some relocations on ARM
1934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1935 esac
1936 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1939 netbsd*)
1940 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1941 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1942 else
1943 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1947 newsos6)
1948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1949 lt_cv_file_magic_cmd=/usr/bin/file
1950 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1953 osf3* | osf4* | osf5*)
1954 # this will be overridden with pass_all, but let us keep it just in case
1955 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1956 lt_cv_file_magic_test_file=/shlib/libc.so
1957 lt_cv_deplibs_check_method=pass_all
1960 sco3.2v5*)
1961 lt_cv_deplibs_check_method=pass_all
1964 solaris*)
1965 lt_cv_deplibs_check_method=pass_all
1966 lt_cv_file_magic_test_file=/lib/libc.so
1969 sysv5uw[78]* | sysv4*uw2*)
1970 lt_cv_deplibs_check_method=pass_all
1973 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1974 case $host_vendor in
1975 ncr)
1976 lt_cv_deplibs_check_method=pass_all
1978 motorola)
1979 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]'
1980 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1982 esac
1984 esac
1988 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1989 file_magic_cmd=$lt_cv_file_magic_cmd
1990 deplibs_check_method=$lt_cv_deplibs_check_method
1992 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1993 echo "configure:1994: checking for object suffix" >&5
1994 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1996 else
1997 rm -f conftest*
1998 echo 'int i = 1;' > conftest.$ac_ext
1999 if { (eval echo configure:2000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2000 for ac_file in conftest.*; do
2001 case $ac_file in
2002 *.c) ;;
2003 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2004 esac
2005 done
2006 else
2007 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2009 rm -f conftest*
2012 echo "$ac_t""$ac_cv_objext" 1>&6
2013 OBJEXT=$ac_cv_objext
2014 ac_objext=$ac_cv_objext
2016 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2018 # Only perform the check for file, if the check method requires it
2019 case $deplibs_check_method in
2020 file_magic*)
2021 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2022 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2023 echo "configure:2024: checking for ${ac_tool_prefix}file" >&5
2024 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2026 else
2027 case $MAGIC_CMD in
2029 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2031 ?:/*)
2032 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2035 ac_save_MAGIC_CMD="$MAGIC_CMD"
2036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2037 ac_dummy="/usr/bin:$PATH"
2038 for ac_dir in $ac_dummy; do
2039 test -z "$ac_dir" && ac_dir=.
2040 if test -f $ac_dir/${ac_tool_prefix}file; then
2041 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2042 if test -n "$file_magic_test_file"; then
2043 case $deplibs_check_method in
2044 "file_magic "*)
2045 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2047 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2048 egrep "$file_magic_regex" > /dev/null; then
2050 else
2051 cat <<EOF 1>&2
2053 *** Warning: the command libtool uses to detect shared libraries,
2054 *** $file_magic_cmd, produces output that libtool cannot recognize.
2055 *** The result is that libtool may fail to recognize shared libraries
2056 *** as such. This will affect the creation of libtool libraries that
2057 *** depend on shared libraries, but programs linked with such libtool
2058 *** libraries will work regardless of this problem. Nevertheless, you
2059 *** may want to report the problem to your system manager and/or to
2060 *** bug-libtool@gnu.org
2063 fi ;;
2064 esac
2066 break
2068 done
2069 IFS="$ac_save_ifs"
2070 MAGIC_CMD="$ac_save_MAGIC_CMD"
2072 esac
2075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2076 if test -n "$MAGIC_CMD"; then
2077 echo "$ac_t""$MAGIC_CMD" 1>&6
2078 else
2079 echo "$ac_t""no" 1>&6
2082 if test -z "$lt_cv_path_MAGIC_CMD"; then
2083 if test -n "$ac_tool_prefix"; then
2084 echo $ac_n "checking for file""... $ac_c" 1>&6
2085 echo "configure:2086: checking for file" >&5
2086 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2087 echo $ac_n "(cached) $ac_c" 1>&6
2088 else
2089 case $MAGIC_CMD in
2091 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2093 ?:/*)
2094 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2097 ac_save_MAGIC_CMD="$MAGIC_CMD"
2098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2099 ac_dummy="/usr/bin:$PATH"
2100 for ac_dir in $ac_dummy; do
2101 test -z "$ac_dir" && ac_dir=.
2102 if test -f $ac_dir/file; then
2103 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2104 if test -n "$file_magic_test_file"; then
2105 case $deplibs_check_method in
2106 "file_magic "*)
2107 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2109 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2110 egrep "$file_magic_regex" > /dev/null; then
2112 else
2113 cat <<EOF 1>&2
2115 *** Warning: the command libtool uses to detect shared libraries,
2116 *** $file_magic_cmd, produces output that libtool cannot recognize.
2117 *** The result is that libtool may fail to recognize shared libraries
2118 *** as such. This will affect the creation of libtool libraries that
2119 *** depend on shared libraries, but programs linked with such libtool
2120 *** libraries will work regardless of this problem. Nevertheless, you
2121 *** may want to report the problem to your system manager and/or to
2122 *** bug-libtool@gnu.org
2125 fi ;;
2126 esac
2128 break
2130 done
2131 IFS="$ac_save_ifs"
2132 MAGIC_CMD="$ac_save_MAGIC_CMD"
2134 esac
2137 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2138 if test -n "$MAGIC_CMD"; then
2139 echo "$ac_t""$MAGIC_CMD" 1>&6
2140 else
2141 echo "$ac_t""no" 1>&6
2144 else
2145 MAGIC_CMD=:
2151 esac
2153 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2154 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2156 echo "configure:2157: checking for $ac_word" >&5
2157 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2158 echo $ac_n "(cached) $ac_c" 1>&6
2159 else
2160 if test -n "$RANLIB"; then
2161 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2162 else
2163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2164 ac_dummy="$PATH"
2165 for ac_dir in $ac_dummy; do
2166 test -z "$ac_dir" && ac_dir=.
2167 if test -f $ac_dir/$ac_word; then
2168 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2169 break
2171 done
2172 IFS="$ac_save_ifs"
2175 RANLIB="$ac_cv_prog_RANLIB"
2176 if test -n "$RANLIB"; then
2177 echo "$ac_t""$RANLIB" 1>&6
2178 else
2179 echo "$ac_t""no" 1>&6
2183 if test -z "$ac_cv_prog_RANLIB"; then
2184 if test -n "$ac_tool_prefix"; then
2185 # Extract the first word of "ranlib", so it can be a program name with args.
2186 set dummy ranlib; ac_word=$2
2187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2188 echo "configure:2189: checking for $ac_word" >&5
2189 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2191 else
2192 if test -n "$RANLIB"; then
2193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2194 else
2195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2196 ac_dummy="$PATH"
2197 for ac_dir in $ac_dummy; do
2198 test -z "$ac_dir" && ac_dir=.
2199 if test -f $ac_dir/$ac_word; then
2200 ac_cv_prog_RANLIB="ranlib"
2201 break
2203 done
2204 IFS="$ac_save_ifs"
2205 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2208 RANLIB="$ac_cv_prog_RANLIB"
2209 if test -n "$RANLIB"; then
2210 echo "$ac_t""$RANLIB" 1>&6
2211 else
2212 echo "$ac_t""no" 1>&6
2215 else
2216 RANLIB=":"
2220 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2221 set dummy ${ac_tool_prefix}strip; ac_word=$2
2222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2223 echo "configure:2224: checking for $ac_word" >&5
2224 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2226 else
2227 if test -n "$STRIP"; then
2228 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2229 else
2230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2231 ac_dummy="$PATH"
2232 for ac_dir in $ac_dummy; do
2233 test -z "$ac_dir" && ac_dir=.
2234 if test -f $ac_dir/$ac_word; then
2235 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2236 break
2238 done
2239 IFS="$ac_save_ifs"
2242 STRIP="$ac_cv_prog_STRIP"
2243 if test -n "$STRIP"; then
2244 echo "$ac_t""$STRIP" 1>&6
2245 else
2246 echo "$ac_t""no" 1>&6
2250 if test -z "$ac_cv_prog_STRIP"; then
2251 if test -n "$ac_tool_prefix"; then
2252 # Extract the first word of "strip", so it can be a program name with args.
2253 set dummy strip; ac_word=$2
2254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2255 echo "configure:2256: checking for $ac_word" >&5
2256 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2258 else
2259 if test -n "$STRIP"; then
2260 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2261 else
2262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2263 ac_dummy="$PATH"
2264 for ac_dir in $ac_dummy; do
2265 test -z "$ac_dir" && ac_dir=.
2266 if test -f $ac_dir/$ac_word; then
2267 ac_cv_prog_STRIP="strip"
2268 break
2270 done
2271 IFS="$ac_save_ifs"
2272 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2275 STRIP="$ac_cv_prog_STRIP"
2276 if test -n "$STRIP"; then
2277 echo "$ac_t""$STRIP" 1>&6
2278 else
2279 echo "$ac_t""no" 1>&6
2282 else
2283 STRIP=":"
2288 # Check for any special flags to pass to ltconfig.
2289 libtool_flags="--cache-file=$cache_file"
2290 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2291 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2292 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2293 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2294 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2295 libtool_flags="$libtool_flags --enable-dlopen"
2297 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2298 if test "${enable_libtool_lock+set}" = set; then
2299 enableval="$enable_libtool_lock"
2303 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2304 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2306 # Check whether --with-pic or --without-pic was given.
2307 if test "${with_pic+set}" = set; then
2308 withval="$with_pic"
2309 pic_mode="$withval"
2310 else
2311 pic_mode=default
2314 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2315 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2317 # Some flags need to be propagated to the compiler or linker for good
2318 # libtool support.
2319 case $host in
2320 *-*-irix6*)
2321 # Find out which ABI we are using.
2322 echo '#line 2323 "configure"' > conftest.$ac_ext
2323 if { (eval echo configure:2324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2324 case `/usr/bin/file conftest.$ac_objext` in
2325 *32-bit*)
2326 LD="${LD-ld} -32"
2328 *N32*)
2329 LD="${LD-ld} -n32"
2331 *64-bit*)
2332 LD="${LD-ld} -64"
2334 esac
2336 rm -rf conftest*
2339 *-*-sco3.2v5*)
2340 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2341 SAVE_CFLAGS="$CFLAGS"
2342 CFLAGS="$CFLAGS -belf"
2343 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2344 echo "configure:2345: checking whether the C compiler needs -belf" >&5
2345 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2347 else
2349 ac_ext=c
2350 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2353 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2354 cross_compiling=$ac_cv_prog_cc_cross
2356 cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2360 int main() {
2362 ; return 0; }
2364 if { (eval echo configure:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2365 rm -rf conftest*
2366 lt_cv_cc_needs_belf=yes
2367 else
2368 echo "configure: failed program was:" >&5
2369 cat conftest.$ac_ext >&5
2370 rm -rf conftest*
2371 lt_cv_cc_needs_belf=no
2373 rm -f conftest*
2374 ac_ext=c
2375 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2376 ac_cpp='$CPP $CPPFLAGS'
2377 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2378 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2379 cross_compiling=$ac_cv_prog_cc_cross
2383 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2384 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2385 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2386 CFLAGS="$SAVE_CFLAGS"
2391 esac
2393 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2394 echo "configure:2395: checking how to run the C++ preprocessor" >&5
2395 if test -z "$CXXCPP"; then
2396 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2398 else
2399 ac_ext=C
2400 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2401 ac_cpp='$CXXCPP $CPPFLAGS'
2402 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2403 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2404 cross_compiling=$ac_cv_prog_cxx_cross
2405 CXXCPP="${CXX-g++} -E"
2406 cat > conftest.$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2409 #include <stdlib.h>
2411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2412 { (eval echo configure:2413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2414 if test -z "$ac_err"; then
2416 else
2417 echo "$ac_err" >&5
2418 echo "configure: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2420 rm -rf conftest*
2421 CXXCPP=/lib/cpp
2423 rm -f conftest*
2424 ac_cv_prog_CXXCPP="$CXXCPP"
2425 ac_ext=c
2426 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2427 ac_cpp='$CPP $CPPFLAGS'
2428 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2429 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2430 cross_compiling=$ac_cv_prog_cc_cross
2433 CXXCPP="$ac_cv_prog_CXXCPP"
2434 echo "$ac_t""$CXXCPP" 1>&6
2437 # Save cache, so that ltconfig can load it
2438 cat > confcache <<\EOF
2439 # This file is a shell script that caches the results of configure
2440 # tests run on this system so they can be shared between configure
2441 # scripts and configure runs. It is not useful on other systems.
2442 # If it contains results you don't want to keep, you may remove or edit it.
2444 # By default, configure uses ./config.cache as the cache file,
2445 # creating it if it does not exist already. You can give configure
2446 # the --cache-file=FILE option to use a different cache file; that is
2447 # what configure does when it calls configure scripts in
2448 # subdirectories, so they share the cache.
2449 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2450 # config.status only pays attention to the cache file if you give it the
2451 # --recheck option to rerun configure.
2454 # The following way of writing the cache mishandles newlines in values,
2455 # but we know of no workaround that is simple, portable, and efficient.
2456 # So, don't put newlines in cache variables' values.
2457 # Ultrix sh set writes to stderr and can't be redirected directly,
2458 # and sets the high bit in the cache file unless we assign to the vars.
2459 (set) 2>&1 |
2460 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2461 *ac_space=\ *)
2462 # `set' does not quote correctly, so add quotes (double-quote substitution
2463 # turns \\\\ into \\, and sed turns \\ into \).
2464 sed -n \
2465 -e "s/'/'\\\\''/g" \
2466 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2469 # `set' quotes correctly as required by POSIX, so do not add quotes.
2470 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2472 esac >> confcache
2473 if cmp -s $cache_file confcache; then
2475 else
2476 if test -w $cache_file; then
2477 echo "updating cache $cache_file"
2478 cat confcache > $cache_file
2479 else
2480 echo "not updating unwritable cache $cache_file"
2483 rm -f confcache
2486 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2487 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2488 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2489 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2490 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2491 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2492 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2493 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2494 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2495 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2497 # Reload cache, that may have been modified by ltconfig
2498 if test -r "$cache_file"; then
2499 echo "loading cache $cache_file"
2500 . $cache_file
2501 else
2502 echo "creating cache $cache_file"
2503 > $cache_file
2507 # This can be used to rebuild libtool when needed
2508 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2510 # Always use our own libtool.
2511 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2513 # Redirect the config.log output again, so that the ltconfig log is not
2514 # clobbered by the next message.
2515 exec 5>>./config.log
2519 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2520 lt_save_CC="$CC"
2521 lt_save_CFLAGS="$CFLAGS"
2522 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2523 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2524 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2525 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2526 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2527 deplibs_check_method="$deplibs_check_method" \
2528 file_magic_cmd="$file_magic_cmd" \
2529 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2530 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2531 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2532 CC="$lt_save_CC"
2533 CFLAGS="$lt_save_CFLAGS"
2535 # Redirect the config.log output again, so that the ltconfig log is not
2536 # clobbered by the next message.
2537 exec 5>>./config.log
2546 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2547 echo "configure:2548: checking for GNU make" >&5
2548 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2549 echo $ac_n "(cached) $ac_c" 1>&6
2550 else
2551 _cv_gnu_make_command='' ;
2552 for a in "${MAKE-make}" make gmake gnumake ; do
2553 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2554 then
2555 _cv_gnu_make_command=$a ;
2556 break;
2558 done ;
2562 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2563 if test "x$_cv_gnu_make_command" != "x" ; then
2564 ifGNUmake='' ;
2565 else
2566 ifGNUmake='#' ;
2570 if test "x$_cv_gnu_make_command" = "x"; then
2571 { echo "configure: error: GNU make not found. Please install it or correct your path." 1>&2; exit 1; }
2577 # Check for c++ or library specific bits that don't require linking.
2579 if test ! -f stamp-sanity-compiler; then
2580 echo $ac_n "checking for g++ that will successfully compile libstdc++-v3""... $ac_c" 1>&6
2581 echo "configure:2582: checking for g++ that will successfully compile libstdc++-v3" >&5
2583 ac_ext=C
2584 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2585 ac_cpp='$CXXCPP $CPPFLAGS'
2586 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2587 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2588 cross_compiling=$ac_cv_prog_cxx_cross
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2594 #if __GNUC__ >= 3
2596 #endif
2599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2600 egrep "ok" >/dev/null 2>&1; then
2601 rm -rf conftest*
2602 gpp_satisfactory=yes
2603 else
2604 rm -rf conftest*
2605 { echo "configure: error: please upgrade to GCC 3.0 or above" 1>&2; exit 1; }
2607 rm -f conftest*
2609 ac_ext=c
2610 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2611 ac_cpp='$CPP $CPPFLAGS'
2612 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2613 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2614 cross_compiling=$ac_cv_prog_cc_cross
2616 echo "$ac_t""$gpp_satisfactory" 1>&6
2617 touch stamp-sanity-compiler
2621 # Enable all the crazy c++ stuff. C_MBCHAR must come early.
2622 # Check whether --enable-debug or --disable-debug was given.
2623 if test "${enable_debug+set}" = set; then
2624 enableval="$enable_debug"
2625 case "${enableval}" in
2626 yes) enable_debug=yes ;;
2627 no) enable_debug=no ;;
2628 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2629 esac
2630 else
2631 enable_debug=no
2634 case "${enable_debug}" in
2635 yes)
2636 DEBUG_FLAGS='-O0 -ggdb3'
2638 no)
2639 DEBUG_FLAGS='-g'
2641 esac
2644 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2645 echo "configure:2646: checking how to run the C preprocessor" >&5
2646 # On Suns, sometimes $CPP names a directory.
2647 if test -n "$CPP" && test -d "$CPP"; then
2648 CPP=
2650 if test -z "$CPP"; then
2651 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2652 echo $ac_n "(cached) $ac_c" 1>&6
2653 else
2654 # This must be in double quotes, not single quotes, because CPP may get
2655 # substituted into the Makefile and "${CC-cc}" will confuse make.
2656 CPP="${CC-cc} -E"
2657 # On the NeXT, cc -E runs the code through the compiler's parser,
2658 # not just through cpp.
2659 cat > conftest.$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2662 #include <assert.h>
2663 Syntax Error
2665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2666 { (eval echo configure:2667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2668 if test -z "$ac_err"; then
2670 else
2671 echo "$ac_err" >&5
2672 echo "configure: failed program was:" >&5
2673 cat conftest.$ac_ext >&5
2674 rm -rf conftest*
2675 CPP="${CC-cc} -E -traditional-cpp"
2676 cat > conftest.$ac_ext <<EOF
2677 #line 2678 "configure"
2678 #include "confdefs.h"
2679 #include <assert.h>
2680 Syntax Error
2682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2683 { (eval echo configure:2684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2685 if test -z "$ac_err"; then
2687 else
2688 echo "$ac_err" >&5
2689 echo "configure: failed program was:" >&5
2690 cat conftest.$ac_ext >&5
2691 rm -rf conftest*
2692 CPP="${CC-cc} -nologo -E"
2693 cat > conftest.$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2696 #include <assert.h>
2697 Syntax Error
2699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2700 { (eval echo configure:2701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2702 if test -z "$ac_err"; then
2704 else
2705 echo "$ac_err" >&5
2706 echo "configure: failed program was:" >&5
2707 cat conftest.$ac_ext >&5
2708 rm -rf conftest*
2709 CPP=/lib/cpp
2711 rm -f conftest*
2713 rm -f conftest*
2715 rm -f conftest*
2716 ac_cv_prog_CPP="$CPP"
2718 CPP="$ac_cv_prog_CPP"
2719 else
2720 ac_cv_prog_CPP="$CPP"
2722 echo "$ac_t""$CPP" 1>&6
2725 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2726 echo "configure:2727: checking for cstdio to use" >&5
2727 # Check whether --enable-cstdio or --disable-cstdio was given.
2728 if test "${enable_cstdio+set}" = set; then
2729 enableval="$enable_cstdio"
2730 if test x$enable_cstdio = xno; then
2731 enable_cstdio=stdio
2733 else
2734 enable_cstdio=stdio
2738 enable_cstdio_flag=$enable_cstdio
2740 case x${enable_cstdio_flag} in
2741 xlibio)
2742 CSTDIO_H=config/c_io_libio.h
2743 BASIC_FILE_H=config/basic_file_libio.h
2744 BASIC_FILE_CC=config/basic_file_libio.cc
2745 echo "$ac_t""libio" 1>&6
2747 # see if we are on a system with libio native (ie, linux)
2748 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2749 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2750 echo "configure:2751: checking for libio.h" >&5
2751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2753 else
2754 cat > conftest.$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2757 #include <libio.h>
2759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2760 { (eval echo configure:2761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2762 if test -z "$ac_err"; then
2763 rm -rf conftest*
2764 eval "ac_cv_header_$ac_safe=yes"
2765 else
2766 echo "$ac_err" >&5
2767 echo "configure: failed program was:" >&5
2768 cat conftest.$ac_ext >&5
2769 rm -rf conftest*
2770 eval "ac_cv_header_$ac_safe=no"
2772 rm -f conftest*
2774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2775 echo "$ac_t""yes" 1>&6
2776 has_libio=yes
2777 else
2778 echo "$ac_t""no" 1>&6
2779 has_libio=no
2783 # Need to check and see what version of glibc is being used. If
2784 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2785 # compile most of libio for linux systems.
2786 if test x$has_libio = x"yes"; then
2787 case "$target" in
2788 *-*-linux*)
2789 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2790 echo "configure:2791: checking for glibc version >= 2.2" >&5
2791 cat > conftest.$ac_ext <<EOF
2792 #line 2793 "configure"
2793 #include "confdefs.h"
2795 #include <features.h>
2796 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2798 #endif
2801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2802 egrep "ok" >/dev/null 2>&1; then
2803 rm -rf conftest*
2804 glibc_satisfactory=yes
2805 else
2806 rm -rf conftest*
2807 glibc_satisfactory=no
2809 rm -f conftest*
2811 echo "$ac_t""$glibc_satisfactory" 1>&6
2813 esac
2815 # XXX at the moment, admit defeat and force the recompilation
2816 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2817 glibc_satisfactory=no
2819 if test x$glibc_satisfactory = x"yes"; then
2820 need_libio=no
2821 need_wlibio=no
2822 else
2823 need_libio=yes
2824 # bkoz XXX need to add checks to enable this
2825 # pme XXX here's a first pass at such a check
2826 if test x$enable_c_mbchar != xno; then
2827 need_wlibio=yes
2828 else
2829 need_wlibio=no
2833 else
2834 # Using libio, but <libio.h> doesn't exist on the target system. . .
2835 need_libio=yes
2836 # bkoz XXX need to add checks to enable this
2837 # pme XXX here's a first pass at such a check
2838 if test x$enable_c_mbchar != xno; then
2839 need_wlibio=yes
2840 else
2841 need_wlibio=no
2845 xstdio | x | xno | xnone | xyes)
2846 # default
2847 CSTDIO_H=config/c_io_stdio.h
2848 BASIC_FILE_H=config/basic_file_stdio.h
2849 BASIC_FILE_CC=config/basic_file_stdio.cc
2850 echo "$ac_t""stdio" 1>&6
2852 # We're not using stdio.
2853 need_libio=no
2854 need_wlibio=no
2857 echo "$enable_cstdio is an unknown io package" 1>&2
2858 exit 1
2860 esac
2865 # 2000-08-04 bkoz hack
2866 CCODECVT_C=config/c_io_libio_codecvt.c
2868 # 2000-08-04 bkoz hack
2872 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2873 GLIBCPP_BUILD_LIBIO_TRUE=
2874 GLIBCPP_BUILD_LIBIO_FALSE='#'
2875 else
2876 GLIBCPP_BUILD_LIBIO_TRUE='#'
2877 GLIBCPP_BUILD_LIBIO_FALSE=
2881 if test "$need_libio" = yes; then
2882 GLIBCPP_NEED_LIBIO_TRUE=
2883 GLIBCPP_NEED_LIBIO_FALSE='#'
2884 else
2885 GLIBCPP_NEED_LIBIO_TRUE='#'
2886 GLIBCPP_NEED_LIBIO_FALSE=
2890 if test "$need_wlibio" = yes; then
2891 GLIBCPP_NEED_WLIBIO_TRUE=
2892 GLIBCPP_NEED_WLIBIO_FALSE='#'
2893 else
2894 GLIBCPP_NEED_WLIBIO_TRUE='#'
2895 GLIBCPP_NEED_WLIBIO_FALSE=
2897 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2898 libio_la=../libio/libio.la
2899 else
2900 libio_la=
2905 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2906 echo "configure:2907: checking for clocale to use" >&5
2907 # Check whether --enable-clocale or --disable-clocale was given.
2908 if test "${enable_clocale+set}" = set; then
2909 enableval="$enable_clocale"
2910 if test x$enable_clocale = xno; then
2911 enable_clocale=generic
2913 else
2914 enable_clocale=generic
2918 enable_clocale_flag=$enable_clocale
2920 case x${enable_clocale_flag} in
2921 xgnu)
2922 CLOCALE_H=config/c_locale_gnu.h
2923 CLOCALE_CC=config/c_locale_gnu.cc
2924 echo "$ac_t""gnu" 1>&6
2926 xgeneric)
2927 CLOCALE_H=config/c_locale_generic.h
2928 CLOCALE_CC=config/c_locale_generic.cc
2929 echo "$ac_t""generic" 1>&6
2932 echo "$enable_clocale is an unknown locale package" 1>&2
2933 exit 1
2935 esac
2940 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
2941 if test "${enable_c_mbchar+set}" = set; then
2942 enableval="$enable_c_mbchar"
2943 case "$enableval" in
2944 yes) enable_c_mbchar=yes ;;
2945 no) enable_c_mbchar=no ;;
2946 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
2947 esac
2948 else
2949 enable_c_mbchar=yes
2953 # Check whether --enable-c99 or --disable-c99 was given.
2954 if test "${enable_c99+set}" = set; then
2955 enableval="$enable_c99"
2956 case "$enableval" in
2957 yes) enable_c99=yes ;;
2958 no) enable_c99=no ;;
2959 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
2960 esac
2961 else
2962 enable_c99=yes
2966 ac_ext=C
2967 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2968 ac_cpp='$CXXCPP $CPPFLAGS'
2969 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2970 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2971 cross_compiling=$ac_cv_prog_cxx_cross
2974 # Check for the existence of <math.h> functions used if C99 is enabled.
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 #include <math.h>
2979 int main() {
2980 fpclassify(0.0);
2981 ; return 0; }
2983 if { (eval echo configure:2984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2985 else
2986 echo "configure: failed program was:" >&5
2987 cat conftest.$ac_ext >&5
2988 rm -rf conftest*
2989 ac_c99_math=no
2991 rm -f conftest*
2992 cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2995 #include <math.h>
2996 int main() {
2997 isfinite(0.0);
2998 ; return 0; }
3000 if { (eval echo configure:3001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3002 else
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3005 rm -rf conftest*
3006 ac_c99_math=no
3008 rm -f conftest*
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3012 #include <math.h>
3013 int main() {
3014 isinf(0.0);
3015 ; return 0; }
3017 if { (eval echo configure:3018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3019 else
3020 echo "configure: failed program was:" >&5
3021 cat conftest.$ac_ext >&5
3022 rm -rf conftest*
3023 ac_c99_math=no
3025 rm -f conftest*
3026 cat > conftest.$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3029 #include <math.h>
3030 int main() {
3031 isnan(0.0);
3032 ; return 0; }
3034 if { (eval echo configure:3035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3036 else
3037 echo "configure: failed program was:" >&5
3038 cat conftest.$ac_ext >&5
3039 rm -rf conftest*
3040 ac_c99_math=no
3042 rm -f conftest*
3043 cat > conftest.$ac_ext <<EOF
3044 #line 3045 "configure"
3045 #include "confdefs.h"
3046 #include <math.h>
3047 int main() {
3048 isnormal(0.0);
3049 ; return 0; }
3051 if { (eval echo configure:3052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3053 else
3054 echo "configure: failed program was:" >&5
3055 cat conftest.$ac_ext >&5
3056 rm -rf conftest*
3057 ac_c99_math=no
3059 rm -f conftest*
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 #include <math.h>
3064 int main() {
3065 signbit(0.0);
3066 ; return 0; }
3068 if { (eval echo configure:3069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3070 else
3071 echo "configure: failed program was:" >&5
3072 cat conftest.$ac_ext >&5
3073 rm -rf conftest*
3074 ac_c99_math=no
3076 rm -f conftest*
3077 cat > conftest.$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3080 #include <math.h>
3081 int main() {
3082 isgreater(0.0,0.0);
3083 ; return 0; }
3085 if { (eval echo configure:3086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3087 else
3088 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3090 rm -rf conftest*
3091 ac_c99_math=no
3093 rm -f conftest*
3094 cat > conftest.$ac_ext <<EOF
3095 #line 3096 "configure"
3096 #include "confdefs.h"
3097 #include <math.h>
3098 int main() {
3099 isgreaterequal(0.0,0.0);
3100 ; return 0; }
3102 if { (eval echo configure:3103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3104 else
3105 echo "configure: failed program was:" >&5
3106 cat conftest.$ac_ext >&5
3107 rm -rf conftest*
3108 ac_c99_math=no
3110 rm -f conftest*
3111 cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3114 #include <math.h>
3115 int main() {
3116 isless(0.0,0.0);
3117 ; return 0; }
3119 if { (eval echo configure:3120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3121 else
3122 echo "configure: failed program was:" >&5
3123 cat conftest.$ac_ext >&5
3124 rm -rf conftest*
3125 ac_c99_math=no
3127 rm -f conftest*
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 #include <math.h>
3132 int main() {
3133 islessequal(0.0,0.0);
3134 ; return 0; }
3136 if { (eval echo configure:3137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3138 else
3139 echo "configure: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3141 rm -rf conftest*
3142 ac_c99_math=no
3144 rm -f conftest*
3145 cat > conftest.$ac_ext <<EOF
3146 #line 3147 "configure"
3147 #include "confdefs.h"
3148 #include <math.h>
3149 int main() {
3150 islessgreater(0.0,0.0);
3151 ; return 0; }
3153 if { (eval echo configure:3154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3155 else
3156 echo "configure: failed program was:" >&5
3157 cat conftest.$ac_ext >&5
3158 rm -rf conftest*
3159 ac_c99_math=no
3161 rm -f conftest*
3162 cat > conftest.$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3165 #include <math.h>
3166 int main() {
3167 isunordered(0.0,0.0);
3168 ; return 0; }
3170 if { (eval echo configure:3171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3172 else
3173 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3175 rm -rf conftest*
3176 ac_c99_math=no
3178 rm -f conftest*
3180 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3181 echo $ac_n "checking for strtoll""... $ac_c" 1>&6
3182 echo "configure:3183: checking for strtoll" >&5
3183 if eval "test \"`echo '$''{'ac_cv_func_strtoll'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3185 else
3186 cat > conftest.$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3189 /* System header to define __stub macros and hopefully few prototypes,
3190 which can conflict with char strtoll(); below. */
3191 #include <assert.h>
3192 /* Override any gcc2 internal prototype to avoid an error. */
3193 #ifdef __cplusplus
3194 extern "C"
3195 #endif
3196 /* We use char because int might match the return type of a gcc2
3197 builtin and then its argument prototype would still apply. */
3198 char strtoll();
3200 int main() {
3202 /* The GNU C library defines this for functions which it implements
3203 to always fail with ENOSYS. Some functions are actually named
3204 something starting with __ and the normal name is an alias. */
3205 #if defined (__stub_strtoll) || defined (__stub___strtoll)
3206 choke me
3207 #else
3208 strtoll();
3209 #endif
3211 ; return 0; }
3213 if { (eval echo configure:3214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3214 rm -rf conftest*
3215 eval "ac_cv_func_strtoll=yes"
3216 else
3217 echo "configure: failed program was:" >&5
3218 cat conftest.$ac_ext >&5
3219 rm -rf conftest*
3220 eval "ac_cv_func_strtoll=no"
3222 rm -f conftest*
3225 if eval "test \"`echo '$ac_cv_func_'strtoll`\" = yes"; then
3226 echo "$ac_t""yes" 1>&6
3228 else
3229 echo "$ac_t""no" 1>&6
3230 ac_c99_stdlib=no
3233 echo $ac_n "checking for strtoull""... $ac_c" 1>&6
3234 echo "configure:3235: checking for strtoull" >&5
3235 if eval "test \"`echo '$''{'ac_cv_func_strtoull'+set}'`\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3237 else
3238 cat > conftest.$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 /* System header to define __stub macros and hopefully few prototypes,
3242 which can conflict with char strtoull(); below. */
3243 #include <assert.h>
3244 /* Override any gcc2 internal prototype to avoid an error. */
3245 #ifdef __cplusplus
3246 extern "C"
3247 #endif
3248 /* We use char because int might match the return type of a gcc2
3249 builtin and then its argument prototype would still apply. */
3250 char strtoull();
3252 int main() {
3254 /* The GNU C library defines this for functions which it implements
3255 to always fail with ENOSYS. Some functions are actually named
3256 something starting with __ and the normal name is an alias. */
3257 #if defined (__stub_strtoull) || defined (__stub___strtoull)
3258 choke me
3259 #else
3260 strtoull();
3261 #endif
3263 ; return 0; }
3265 if { (eval echo configure:3266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3266 rm -rf conftest*
3267 eval "ac_cv_func_strtoull=yes"
3268 else
3269 echo "configure: failed program was:" >&5
3270 cat conftest.$ac_ext >&5
3271 rm -rf conftest*
3272 eval "ac_cv_func_strtoull=no"
3274 rm -f conftest*
3277 if eval "test \"`echo '$ac_cv_func_'strtoull`\" = yes"; then
3278 echo "$ac_t""yes" 1>&6
3280 else
3281 echo "$ac_t""no" 1>&6
3282 ac_c99_stdlib=no
3285 echo $ac_n "checking for llabs""... $ac_c" 1>&6
3286 echo "configure:3287: checking for llabs" >&5
3287 if eval "test \"`echo '$''{'ac_cv_func_llabs'+set}'`\" = set"; then
3288 echo $ac_n "(cached) $ac_c" 1>&6
3289 else
3290 cat > conftest.$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3293 /* System header to define __stub macros and hopefully few prototypes,
3294 which can conflict with char llabs(); below. */
3295 #include <assert.h>
3296 /* Override any gcc2 internal prototype to avoid an error. */
3297 #ifdef __cplusplus
3298 extern "C"
3299 #endif
3300 /* We use char because int might match the return type of a gcc2
3301 builtin and then its argument prototype would still apply. */
3302 char llabs();
3304 int main() {
3306 /* The GNU C library defines this for functions which it implements
3307 to always fail with ENOSYS. Some functions are actually named
3308 something starting with __ and the normal name is an alias. */
3309 #if defined (__stub_llabs) || defined (__stub___llabs)
3310 choke me
3311 #else
3312 llabs();
3313 #endif
3315 ; return 0; }
3317 if { (eval echo configure:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3318 rm -rf conftest*
3319 eval "ac_cv_func_llabs=yes"
3320 else
3321 echo "configure: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3323 rm -rf conftest*
3324 eval "ac_cv_func_llabs=no"
3326 rm -f conftest*
3329 if eval "test \"`echo '$ac_cv_func_'llabs`\" = yes"; then
3330 echo "$ac_t""yes" 1>&6
3332 else
3333 echo "$ac_t""no" 1>&6
3334 ac_c99_stdlib=no
3337 echo $ac_n "checking for lldiv""... $ac_c" 1>&6
3338 echo "configure:3339: checking for lldiv" >&5
3339 if eval "test \"`echo '$''{'ac_cv_func_lldiv'+set}'`\" = set"; then
3340 echo $ac_n "(cached) $ac_c" 1>&6
3341 else
3342 cat > conftest.$ac_ext <<EOF
3343 #line 3344 "configure"
3344 #include "confdefs.h"
3345 /* System header to define __stub macros and hopefully few prototypes,
3346 which can conflict with char lldiv(); below. */
3347 #include <assert.h>
3348 /* Override any gcc2 internal prototype to avoid an error. */
3349 #ifdef __cplusplus
3350 extern "C"
3351 #endif
3352 /* We use char because int might match the return type of a gcc2
3353 builtin and then its argument prototype would still apply. */
3354 char lldiv();
3356 int main() {
3358 /* The GNU C library defines this for functions which it implements
3359 to always fail with ENOSYS. Some functions are actually named
3360 something starting with __ and the normal name is an alias. */
3361 #if defined (__stub_lldiv) || defined (__stub___lldiv)
3362 choke me
3363 #else
3364 lldiv();
3365 #endif
3367 ; return 0; }
3369 if { (eval echo configure:3370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3370 rm -rf conftest*
3371 eval "ac_cv_func_lldiv=yes"
3372 else
3373 echo "configure: failed program was:" >&5
3374 cat conftest.$ac_ext >&5
3375 rm -rf conftest*
3376 eval "ac_cv_func_lldiv=no"
3378 rm -f conftest*
3381 if eval "test \"`echo '$ac_cv_func_'lldiv`\" = yes"; then
3382 echo "$ac_t""yes" 1>&6
3384 else
3385 echo "$ac_t""no" 1>&6
3386 ac_c99_stdlib=no
3389 echo $ac_n "checking for atoll""... $ac_c" 1>&6
3390 echo "configure:3391: checking for atoll" >&5
3391 if eval "test \"`echo '$''{'ac_cv_func_atoll'+set}'`\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3393 else
3394 cat > conftest.$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3397 /* System header to define __stub macros and hopefully few prototypes,
3398 which can conflict with char atoll(); below. */
3399 #include <assert.h>
3400 /* Override any gcc2 internal prototype to avoid an error. */
3401 #ifdef __cplusplus
3402 extern "C"
3403 #endif
3404 /* We use char because int might match the return type of a gcc2
3405 builtin and then its argument prototype would still apply. */
3406 char atoll();
3408 int main() {
3410 /* The GNU C library defines this for functions which it implements
3411 to always fail with ENOSYS. Some functions are actually named
3412 something starting with __ and the normal name is an alias. */
3413 #if defined (__stub_atoll) || defined (__stub___atoll)
3414 choke me
3415 #else
3416 atoll();
3417 #endif
3419 ; return 0; }
3421 if { (eval echo configure:3422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3422 rm -rf conftest*
3423 eval "ac_cv_func_atoll=yes"
3424 else
3425 echo "configure: failed program was:" >&5
3426 cat conftest.$ac_ext >&5
3427 rm -rf conftest*
3428 eval "ac_cv_func_atoll=no"
3430 rm -f conftest*
3433 if eval "test \"`echo '$ac_cv_func_'atoll`\" = yes"; then
3434 echo "$ac_t""yes" 1>&6
3436 else
3437 echo "$ac_t""no" 1>&6
3438 ac_c99_stdlib=no
3442 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3443 echo "configure:3444: checking for lldiv_t declaration" >&5
3444 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3445 echo $ac_n "(cached) $ac_c" 1>&6
3446 else
3448 cat > conftest.$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3451 #include <stdlib.h>
3452 int main() {
3453 lldiv_t mydivt;
3454 ; return 0; }
3456 if { (eval echo configure:3457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3457 rm -rf conftest*
3458 ac_c99_lldiv_t=yes
3459 else
3460 echo "configure: failed program was:" >&5
3461 cat conftest.$ac_ext >&5
3462 rm -rf conftest*
3463 ac_c99_lldiv_t=no
3465 rm -f conftest*
3469 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3470 if test x"$ac_c99_lldiv_t" = x"no"; then
3471 ac_c99_stdlib=no;
3472 fi;
3474 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3475 echo $ac_n "checking for wcstold""... $ac_c" 1>&6
3476 echo "configure:3477: checking for wcstold" >&5
3477 if eval "test \"`echo '$''{'ac_cv_func_wcstold'+set}'`\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
3479 else
3480 cat > conftest.$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3483 /* System header to define __stub macros and hopefully few prototypes,
3484 which can conflict with char wcstold(); below. */
3485 #include <assert.h>
3486 /* Override any gcc2 internal prototype to avoid an error. */
3487 #ifdef __cplusplus
3488 extern "C"
3489 #endif
3490 /* We use char because int might match the return type of a gcc2
3491 builtin and then its argument prototype would still apply. */
3492 char wcstold();
3494 int main() {
3496 /* The GNU C library defines this for functions which it implements
3497 to always fail with ENOSYS. Some functions are actually named
3498 something starting with __ and the normal name is an alias. */
3499 #if defined (__stub_wcstold) || defined (__stub___wcstold)
3500 choke me
3501 #else
3502 wcstold();
3503 #endif
3505 ; return 0; }
3507 if { (eval echo configure:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3508 rm -rf conftest*
3509 eval "ac_cv_func_wcstold=yes"
3510 else
3511 echo "configure: failed program was:" >&5
3512 cat conftest.$ac_ext >&5
3513 rm -rf conftest*
3514 eval "ac_cv_func_wcstold=no"
3516 rm -f conftest*
3519 if eval "test \"`echo '$ac_cv_func_'wcstold`\" = yes"; then
3520 echo "$ac_t""yes" 1>&6
3522 else
3523 echo "$ac_t""no" 1>&6
3524 ac_c99_wchar=no
3527 echo $ac_n "checking for wcstoll""... $ac_c" 1>&6
3528 echo "configure:3529: checking for wcstoll" >&5
3529 if eval "test \"`echo '$''{'ac_cv_func_wcstoll'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3531 else
3532 cat > conftest.$ac_ext <<EOF
3533 #line 3534 "configure"
3534 #include "confdefs.h"
3535 /* System header to define __stub macros and hopefully few prototypes,
3536 which can conflict with char wcstoll(); below. */
3537 #include <assert.h>
3538 /* Override any gcc2 internal prototype to avoid an error. */
3539 #ifdef __cplusplus
3540 extern "C"
3541 #endif
3542 /* We use char because int might match the return type of a gcc2
3543 builtin and then its argument prototype would still apply. */
3544 char wcstoll();
3546 int main() {
3548 /* The GNU C library defines this for functions which it implements
3549 to always fail with ENOSYS. Some functions are actually named
3550 something starting with __ and the normal name is an alias. */
3551 #if defined (__stub_wcstoll) || defined (__stub___wcstoll)
3552 choke me
3553 #else
3554 wcstoll();
3555 #endif
3557 ; return 0; }
3559 if { (eval echo configure:3560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3560 rm -rf conftest*
3561 eval "ac_cv_func_wcstoll=yes"
3562 else
3563 echo "configure: failed program was:" >&5
3564 cat conftest.$ac_ext >&5
3565 rm -rf conftest*
3566 eval "ac_cv_func_wcstoll=no"
3568 rm -f conftest*
3571 if eval "test \"`echo '$ac_cv_func_'wcstoll`\" = yes"; then
3572 echo "$ac_t""yes" 1>&6
3574 else
3575 echo "$ac_t""no" 1>&6
3576 ac_c99_wchar=no
3579 echo $ac_n "checking for wcstoull""... $ac_c" 1>&6
3580 echo "configure:3581: checking for wcstoull" >&5
3581 if eval "test \"`echo '$''{'ac_cv_func_wcstoull'+set}'`\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3583 else
3584 cat > conftest.$ac_ext <<EOF
3585 #line 3586 "configure"
3586 #include "confdefs.h"
3587 /* System header to define __stub macros and hopefully few prototypes,
3588 which can conflict with char wcstoull(); below. */
3589 #include <assert.h>
3590 /* Override any gcc2 internal prototype to avoid an error. */
3591 #ifdef __cplusplus
3592 extern "C"
3593 #endif
3594 /* We use char because int might match the return type of a gcc2
3595 builtin and then its argument prototype would still apply. */
3596 char wcstoull();
3598 int main() {
3600 /* The GNU C library defines this for functions which it implements
3601 to always fail with ENOSYS. Some functions are actually named
3602 something starting with __ and the normal name is an alias. */
3603 #if defined (__stub_wcstoull) || defined (__stub___wcstoull)
3604 choke me
3605 #else
3606 wcstoull();
3607 #endif
3609 ; return 0; }
3611 if { (eval echo configure:3612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3612 rm -rf conftest*
3613 eval "ac_cv_func_wcstoull=yes"
3614 else
3615 echo "configure: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3617 rm -rf conftest*
3618 eval "ac_cv_func_wcstoull=no"
3620 rm -f conftest*
3623 if eval "test \"`echo '$ac_cv_func_'wcstoull`\" = yes"; then
3624 echo "$ac_t""yes" 1>&6
3626 else
3627 echo "$ac_t""no" 1>&6
3628 ac_c99_wchar=no
3632 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3633 echo "configure:3634: checking for enabled ISO C99 support" >&5
3634 if test x"$ac_c99_math" = x"no" || test x"$ac_c99_wchar" = x"no" \
3635 || test x"$ac_c99_stdlib" = x"no"; then
3636 enable_c99=no;
3637 fi;
3638 echo "$ac_t""$enable_c99" 1>&6
3640 # Option parsed, now set things appropriately
3641 if test x"$enable_c99" = x"yes"; then
3642 cat >> confdefs.h <<\EOF
3643 #define _GLIBCPP_USE_C99 1
3648 ac_ext=c
3649 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3650 ac_cpp='$CPP $CPPFLAGS'
3651 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3652 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3653 cross_compiling=$ac_cv_prog_cc_cross
3657 # Check whether --enable-long-long or --disable-long-long was given.
3658 if test "${enable_long_long+set}" = set; then
3659 enableval="$enable_long_long"
3660 case "$enableval" in
3661 yes) enable_long_long=yes ;;
3662 no) enable_long_long=no ;;
3663 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3664 esac
3665 else
3666 enable_long_long=yes
3669 # iostreams require strtoll, strtoull to compile. If the
3670 # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
3671 # go ahead and allow long long to be used.
3672 if test x"$enable_c99" = x"no"; then
3673 enable_long_long=no;
3676 # Option parsed, now set things appropriately
3677 echo $ac_n "checking for enabled long long support""... $ac_c" 1>&6
3678 echo "configure:3679: checking for enabled long long support" >&5
3679 if test x"$enable_long_long" = xyes; then
3680 cat >> confdefs.h <<\EOF
3681 #define _GLIBCPP_USE_LONG_LONG 1
3685 echo "$ac_t""$enable_long_long" 1>&6
3687 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3688 echo "configure:3689: checking for c header strategy to use" >&5
3689 # Check whether --enable-cheaders or --disable-cheaders was given.
3690 if test "${enable_cheaders+set}" = set; then
3691 enableval="$enable_cheaders"
3693 case "$enableval" in
3695 enable_cheaders=c
3697 c_std)
3698 enable_cheaders=c_std
3700 c_shadow)
3701 enable_cheaders=c_shadow
3703 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3705 esac
3706 else
3707 enable_cheaders=c_std
3710 echo "$ac_t""$enable_cheaders" 1>&6
3712 case "$enable_cheaders" in
3713 c_shadow)
3714 CSHADOW_FLAGS="-fno-builtin"
3715 C_INCLUDE_DIR='${top_srcdir}/include/c_shadow'
3716 cat >> confdefs.h <<\EOF
3717 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3721 c_std)
3722 CSHADOW_FLAGS=""
3723 C_INCLUDE_DIR='${top_srcdir}/include/c_std'
3726 CSHADOW_FLAGS=""
3727 C_INCLUDE_DIR='${top_srcdir}/include/c'
3729 esac
3735 if test "$enable_cheaders" = c_shadow; then
3736 GLIBCPP_USE_CSHADOW_TRUE=
3737 GLIBCPP_USE_CSHADOW_FALSE='#'
3738 else
3739 GLIBCPP_USE_CSHADOW_TRUE='#'
3740 GLIBCPP_USE_CSHADOW_FALSE=
3744 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3745 echo "configure:3746: checking for thread model used by GCC" >&5
3746 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3747 echo "$ac_t""$target_thread_file" 1>&6
3749 THREADH=
3750 case "$target_thread_file" in
3751 no | none | single)
3752 THREADH=threads-no.h
3754 posix | pthreads)
3755 THREADH=threads-posix.h
3757 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3758 echo "configure: warning: disabling unsupported thread package $target_thread_file" 1>&2
3759 THREADH=threads-no.h
3762 { echo "configure: error: $target_thread_file: unsupported/unknown thread package" 1>&2; exit 1; }
3764 esac
3767 if test $THREADH != threads-no.h; then
3768 cat >> confdefs.h <<\EOF
3769 #define _GLIBCPP_USE_THREADS 1
3774 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3775 if test "${enable_cxx_flags+set}" = set; then
3776 enableval="$enable_cxx_flags"
3777 case "x$enableval" in
3778 xyes)
3779 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3780 xno|x)
3781 enable_cxx_flags='' ;;
3783 enable_cxx_flags="$enableval" ;;
3784 esac
3785 else
3786 enable_cxx_flags='none'
3790 if test "$enable_cxx_flags" = "none"; then
3791 enable_cxx_flags='';
3794 if test -n "$enable_cxx_flags"; then
3795 for f in $enable_cxx_flags; do
3796 case "$f" in
3797 -fhonor-std) ;;
3798 -*) ;;
3799 *) # and we're trying to pass /what/ exactly?
3800 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3801 esac
3802 done
3804 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3808 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3809 echo "configure:3810: checking for exception model to use" >&5
3811 ac_ext=C
3812 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3813 ac_cpp='$CXXCPP $CPPFLAGS'
3814 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3815 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3816 cross_compiling=$ac_cv_prog_cxx_cross
3818 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3819 if test "${enable_sjlj_exceptions+set}" = set; then
3820 enableval="$enable_sjlj_exceptions"
3822 else
3823 cat > conftest.$ac_ext << EOF
3824 #line 3825 "configure"
3825 struct S { ~S(); };
3826 void bar();
3827 void foo()
3829 S s;
3830 bar();
3833 old_CXXFLAGS="$CXXFLAGS"
3834 CXXFLAGS=-S
3835 if { (eval echo configure:3836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3836 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3837 enable_sjlj_exceptions=yes
3838 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3839 enable_sjlj_exceptions=no
3842 CXXFLAGS="$old_CXXFLAGS"
3843 rm -f conftest*
3846 if test x$enable_sjlj_exceptions = xyes; then
3847 cat >> confdefs.h <<\EOF
3848 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3851 ac_exception_model_name=sjlj
3852 elif test x$enable_sjlj_exceptions = xno; then
3853 ac_exception_model_name="call frame"
3854 else
3855 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3857 ac_ext=c
3858 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3859 ac_cpp='$CPP $CPPFLAGS'
3860 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3861 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3862 cross_compiling=$ac_cv_prog_cc_cross
3864 echo "$ac_t""$ac_exception_model_name" 1>&6
3867 if test -n "$with_cross_host"; then
3869 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3870 # may not work correctly, because the compiler may not be able to
3871 # link executables.
3872 xcompiling=1
3873 NATIVE=no
3875 # If Canadian cross, then don't pick up tools from the build
3876 # directory.
3877 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3878 CANADIAN=yes
3879 NULL_TARGET=yes
3880 else
3881 CANADIAN=no
3882 NULL_TARGET=no
3885 case "$target_alias" in
3886 *-linux*)
3887 # Construct linux crosses by hand, eliminating bits that need ld...
3888 # Check for available headers.
3889 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3890 machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
3891 float.h inttypes.h
3893 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3894 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3895 echo "configure:3896: checking for $ac_hdr" >&5
3896 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3898 else
3899 cat > conftest.$ac_ext <<EOF
3900 #line 3901 "configure"
3901 #include "confdefs.h"
3902 #include <$ac_hdr>
3904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3905 { (eval echo configure:3906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3907 if test -z "$ac_err"; then
3908 rm -rf conftest*
3909 eval "ac_cv_header_$ac_safe=yes"
3910 else
3911 echo "$ac_err" >&5
3912 echo "configure: failed program was:" >&5
3913 cat conftest.$ac_ext >&5
3914 rm -rf conftest*
3915 eval "ac_cv_header_$ac_safe=no"
3917 rm -f conftest*
3919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3920 echo "$ac_t""yes" 1>&6
3921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3922 cat >> confdefs.h <<EOF
3923 #define $ac_tr_hdr 1
3926 else
3927 echo "$ac_t""no" 1>&6
3929 done
3932 # GLIBCPP_CHECK_COMPILER_FEATURES
3933 SECTION_FLAGS='-ffunction-sections -fdata-sections'
3936 # If we're not using GNU ld, then there's no point in even trying these
3937 # tests. Check for that first. We should have already tested for gld
3938 # by now (in libtool), but require it now just to be safe...
3939 SECTION_LDFLAGS=''
3940 OPT_LDFLAGS=''
3943 # Set --gc-sections.
3944 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3945 # GNU ld it is! Joy and bunny rabbits!
3947 # All these tests are for C++; save the language and the compiler flags.
3948 # Need to do this so that g++ won't try to link in libstdc++
3949 ac_test_CFLAGS="${CFLAGS+set}"
3950 ac_save_CFLAGS="$CFLAGS"
3951 CFLAGS='-x c++ -Wl,--gc-sections'
3953 # Check for -Wl,--gc-sections
3954 # XXX This test is broken at the moment, as symbols required for
3955 # linking are now in libsupc++ (not built yet.....). In addition,
3956 # this test has cored on solaris in the past. In addition,
3957 # --gc-sections doesn't really work at the moment (keeps on discarding
3958 # used sections, first .eh_frame and now some of the glibc sections for
3959 # iconv). Bzzzzt. Thanks for playing, maybe next time.
3960 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3961 echo "configure:3962: checking for ld that supports -Wl,--gc-sections" >&5
3962 if test "$cross_compiling" = yes; then
3963 ac_sectionLDflags=yes
3964 else
3965 cat > conftest.$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3969 int main(void)
3971 try { throw 1; }
3972 catch (...) { };
3973 return 0;
3977 if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3978 then
3979 ac_sectionLDflags=yes
3980 else
3981 echo "configure: failed program was:" >&5
3982 cat conftest.$ac_ext >&5
3983 rm -fr conftest*
3984 ac_sectionLFflags=no
3986 rm -fr conftest*
3989 if test "$ac_test_CFLAGS" = set; then
3990 CFLAGS="$ac_save_CFLAGS"
3991 else
3992 # this is the suspicious part
3993 CFLAGS=''
3995 if test "$ac_sectionLDflags" = "yes"; then
3996 SECTION_LDFLAGS='-Wl,--gc-sections'
3998 echo "$ac_t""$ac_sectionLDflags" 1>&6
4001 # Set linker optimization flags.
4002 if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4003 OPT_LDFLAGS='-Wl,-O1'
4009 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4010 # GLIBCPP_CHECK_MATH_SUPPORT
4011 cat >> confdefs.h <<\EOF
4012 #define HAVE_ACOSF 1
4015 cat >> confdefs.h <<\EOF
4016 #define HAVE_ASINF 1
4019 cat >> confdefs.h <<\EOF
4020 #define HAVE_ATAN2F 1
4023 cat >> confdefs.h <<\EOF
4024 #define HAVE_ATANF 1
4027 cat >> confdefs.h <<\EOF
4028 #define HAVE_CEILF 1
4031 cat >> confdefs.h <<\EOF
4032 #define HAVE_COPYSIGN 1
4035 cat >> confdefs.h <<\EOF
4036 #define HAVE_COPYSIGNF 1
4039 cat >> confdefs.h <<\EOF
4040 #define HAVE_COSF 1
4043 cat >> confdefs.h <<\EOF
4044 #define HAVE_COSHF 1
4047 cat >> confdefs.h <<\EOF
4048 #define HAVE_EXPF 1
4051 cat >> confdefs.h <<\EOF
4052 #define HAVE_FABSF 1
4055 cat >> confdefs.h <<\EOF
4056 #define HAVE_FINITE 1
4059 cat >> confdefs.h <<\EOF
4060 #define HAVE_FINITEF 1
4063 cat >> confdefs.h <<\EOF
4064 #define HAVE_FLOORF 1
4067 cat >> confdefs.h <<\EOF
4068 #define HAVE_FMODF 1
4071 cat >> confdefs.h <<\EOF
4072 #define HAVE_FREXPF 1
4075 cat >> confdefs.h <<\EOF
4076 #define HAVE_ISINF 1
4079 cat >> confdefs.h <<\EOF
4080 #define HAVE_ISINFF 1
4083 cat >> confdefs.h <<\EOF
4084 #define HAVE_ISNAN 1
4087 cat >> confdefs.h <<\EOF
4088 #define HAVE_ISNANF 1
4091 cat >> confdefs.h <<\EOF
4092 #define HAVE_LDEXPF 1
4095 cat >> confdefs.h <<\EOF
4096 #define HAVE_LOG10F 1
4099 cat >> confdefs.h <<\EOF
4100 #define HAVE_LOGF 1
4103 cat >> confdefs.h <<\EOF
4104 #define HAVE_MODFF 1
4107 cat >> confdefs.h <<\EOF
4108 #define HAVE_POWF 1
4111 cat >> confdefs.h <<\EOF
4112 #define HAVE_SINCOS 1
4115 cat >> confdefs.h <<\EOF
4116 #define HAVE_SINCOSF 1
4119 cat >> confdefs.h <<\EOF
4120 #define HAVE_SINF 1
4123 cat >> confdefs.h <<\EOF
4124 #define HAVE_SINHF 1
4127 cat >> confdefs.h <<\EOF
4128 #define HAVE_SQRTF 1
4131 cat >> confdefs.h <<\EOF
4132 #define HAVE_TANF 1
4135 cat >> confdefs.h <<\EOF
4136 #define HAVE_TANHF 1
4140 # At some point, we should differentiate between architectures
4141 # like x86, which have long double versions, and alpha/powerpc/etc.,
4142 # which don't. For the time being, punt.
4143 if test x"long_double_math_on_this_cpu" = x"yes"; then
4144 cat >> confdefs.h <<\EOF
4145 #define HAVE_ACOSL 1
4148 cat >> confdefs.h <<\EOF
4149 #define HAVE_ASINL 1
4152 cat >> confdefs.h <<\EOF
4153 #define HAVE_ATAN2L 1
4156 cat >> confdefs.h <<\EOF
4157 #define HAVE_ATANL 1
4160 cat >> confdefs.h <<\EOF
4161 #define HAVE_CEILL 1
4164 cat >> confdefs.h <<\EOF
4165 #define HAVE_COPYSIGNL 1
4168 cat >> confdefs.h <<\EOF
4169 #define HAVE_COSL 1
4172 cat >> confdefs.h <<\EOF
4173 #define HAVE_COSHL 1
4176 cat >> confdefs.h <<\EOF
4177 #define HAVE_EXPL 1
4180 cat >> confdefs.h <<\EOF
4181 #define HAVE_FABSL 1
4184 cat >> confdefs.h <<\EOF
4185 #define HAVE_FINITEL 1
4188 cat >> confdefs.h <<\EOF
4189 #define HAVE_FLOORL 1
4192 cat >> confdefs.h <<\EOF
4193 #define HAVE_FMODL 1
4196 cat >> confdefs.h <<\EOF
4197 #define HAVE_FREXPL 1
4200 cat >> confdefs.h <<\EOF
4201 #define HAVE_ISINFL 1
4204 cat >> confdefs.h <<\EOF
4205 #define HAVE_ISNANL 1
4208 cat >> confdefs.h <<\EOF
4209 #define HAVE_LDEXPL 1
4212 cat >> confdefs.h <<\EOF
4213 #define HAVE_LOG10L 1
4216 cat >> confdefs.h <<\EOF
4217 #define HAVE_LOGL 1
4220 cat >> confdefs.h <<\EOF
4221 #define HAVE_MODFL 1
4224 cat >> confdefs.h <<\EOF
4225 #define HAVE_POWL 1
4228 cat >> confdefs.h <<\EOF
4229 #define HAVE_SINCOSL 1
4232 cat >> confdefs.h <<\EOF
4233 #define HAVE_SINL 1
4236 cat >> confdefs.h <<\EOF
4237 #define HAVE_SINHL 1
4240 cat >> confdefs.h <<\EOF
4241 #define HAVE_SQRTL 1
4244 cat >> confdefs.h <<\EOF
4245 #define HAVE_TANL 1
4248 cat >> confdefs.h <<\EOF
4249 #define HAVE_TANHL 1
4254 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4255 echo "configure:4256: checking for main in -lm" >&5
4256 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4258 echo $ac_n "(cached) $ac_c" 1>&6
4259 else
4260 ac_save_LIBS="$LIBS"
4261 LIBS="-lm $LIBS"
4262 cat > conftest.$ac_ext <<EOF
4263 #line 4264 "configure"
4264 #include "confdefs.h"
4266 int main() {
4267 main()
4268 ; return 0; }
4270 if { (eval echo configure:4271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4271 rm -rf conftest*
4272 eval "ac_cv_lib_$ac_lib_var=yes"
4273 else
4274 echo "configure: failed program was:" >&5
4275 cat conftest.$ac_ext >&5
4276 rm -rf conftest*
4277 eval "ac_cv_lib_$ac_lib_var=no"
4279 rm -f conftest*
4280 LIBS="$ac_save_LIBS"
4283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4284 echo "$ac_t""yes" 1>&6
4285 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4286 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4287 cat >> confdefs.h <<EOF
4288 #define $ac_tr_lib 1
4291 LIBS="-lm $LIBS"
4293 else
4294 echo "$ac_t""no" 1>&6
4297 for ac_func in nan hypot hypotf atan2f expf copysignf
4299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4300 echo "configure:4301: checking for $ac_func" >&5
4301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4302 echo $ac_n "(cached) $ac_c" 1>&6
4303 else
4304 cat > conftest.$ac_ext <<EOF
4305 #line 4306 "configure"
4306 #include "confdefs.h"
4307 /* System header to define __stub macros and hopefully few prototypes,
4308 which can conflict with char $ac_func(); below. */
4309 #include <assert.h>
4310 /* Override any gcc2 internal prototype to avoid an error. */
4311 /* We use char because int might match the return type of a gcc2
4312 builtin and then its argument prototype would still apply. */
4313 char $ac_func();
4315 int main() {
4317 /* The GNU C library defines this for functions which it implements
4318 to always fail with ENOSYS. Some functions are actually named
4319 something starting with __ and the normal name is an alias. */
4320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4321 choke me
4322 #else
4323 $ac_func();
4324 #endif
4326 ; return 0; }
4328 if { (eval echo configure:4329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4329 rm -rf conftest*
4330 eval "ac_cv_func_$ac_func=yes"
4331 else
4332 echo "configure: failed program was:" >&5
4333 cat conftest.$ac_ext >&5
4334 rm -rf conftest*
4335 eval "ac_cv_func_$ac_func=no"
4337 rm -f conftest*
4340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4341 echo "$ac_t""yes" 1>&6
4342 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4343 cat >> confdefs.h <<EOF
4344 #define $ac_tr_func 1
4347 else
4348 echo "$ac_t""no" 1>&6
4349 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4351 done
4355 USE_COMPLEX_LONG_DOUBLE=no
4356 if test x$ac_cv_func_atan2l = x"yes" \
4357 && test x$ac_cv_func_copysignl = x"yes"; then
4358 USE_COMPLEX_LONG_DOUBLE=yes
4359 for ac_func in hypotl signbitl
4361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4362 echo "configure:4363: checking for $ac_func" >&5
4363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4364 echo $ac_n "(cached) $ac_c" 1>&6
4365 else
4366 cat > conftest.$ac_ext <<EOF
4367 #line 4368 "configure"
4368 #include "confdefs.h"
4369 /* System header to define __stub macros and hopefully few prototypes,
4370 which can conflict with char $ac_func(); below. */
4371 #include <assert.h>
4372 /* Override any gcc2 internal prototype to avoid an error. */
4373 /* We use char because int might match the return type of a gcc2
4374 builtin and then its argument prototype would still apply. */
4375 char $ac_func();
4377 int main() {
4379 /* The GNU C library defines this for functions which it implements
4380 to always fail with ENOSYS. Some functions are actually named
4381 something starting with __ and the normal name is an alias. */
4382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4383 choke me
4384 #else
4385 $ac_func();
4386 #endif
4388 ; return 0; }
4390 if { (eval echo configure:4391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4391 rm -rf conftest*
4392 eval "ac_cv_func_$ac_func=yes"
4393 else
4394 echo "configure: failed program was:" >&5
4395 cat conftest.$ac_ext >&5
4396 rm -rf conftest*
4397 eval "ac_cv_func_$ac_func=no"
4399 rm -f conftest*
4402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4403 echo "$ac_t""yes" 1>&6
4404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4405 cat >> confdefs.h <<EOF
4406 #define $ac_tr_func 1
4409 else
4410 echo "$ac_t""no" 1>&6
4411 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4413 done
4423 echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
4424 echo "configure:4425: checking for GNU C++ __complex__ support" >&5
4425 if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
4426 echo $ac_n "(cached) $ac_c" 1>&6
4427 else
4430 ac_ext=C
4431 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4432 ac_cpp='$CXXCPP $CPPFLAGS'
4433 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4434 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4435 cross_compiling=$ac_cv_prog_cxx_cross
4437 cat > conftest.$ac_ext <<EOF
4438 #line 4439 "configure"
4439 #include "confdefs.h"
4440 struct dcomplex { __complex__ double x; }; \
4441 dcomplex f(const dcomplex& x) { return dcomplex(x); }
4442 int main() {
4444 dcomplex x; f(x);
4445 ; return 0; }
4447 if { (eval echo configure:4448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4448 rm -rf conftest*
4449 glibcpp_cv_complex=ok
4450 else
4451 echo "configure: failed program was:" >&5
4452 cat conftest.$ac_ext >&5
4453 rm -rf conftest*
4454 glibcpp_cv_complex=buggy
4457 rm -f conftest*
4458 ac_ext=c
4459 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4460 ac_cpp='$CPP $CPPFLAGS'
4461 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4462 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4463 cross_compiling=$ac_cv_prog_cc_cross
4468 echo "$ac_t""$glibcpp_cv_complex" 1>&6
4469 if test $glibcpp_cv_complex = buggy; then
4470 cat >> confdefs.h <<\EOF
4471 #define _GLIBCPP_BUGGY_COMPLEX 1
4476 echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
4477 echo "configure:4478: checking for GNU C++ __complex__ float support" >&5
4478 if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
4479 echo $ac_n "(cached) $ac_c" 1>&6
4480 else
4483 ac_ext=C
4484 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4485 ac_cpp='$CXXCPP $CPPFLAGS'
4486 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4487 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4488 cross_compiling=$ac_cv_prog_cxx_cross
4490 rm -f conftest.h
4491 cat > conftest.h <<EOB
4493 // Check for buggy __complex__ that causes ICE in most versions of egcs
4494 // and gcc-2.95.x on certain platforms (eg., x86-win32).
4496 // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
4497 // more info on the bug itself.
4499 struct
4500 float_complex
4502 __complex__ float m_value;
4503 float_complex (float = 0.0f, float = 0.0f);
4504 float_complex (__complex__ float val) : m_value (val) {}
4505 float_complex foo (const float_complex &val)
4506 { return float_complex (~val.m_value); }
4509 cat > conftest.$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4512 #include "conftest.h"
4513 int main() {
4515 ; return 0; }
4517 if { (eval echo configure:4518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4518 rm -rf conftest*
4519 glibcpp_cv_float_complex=ok
4520 else
4521 echo "configure: failed program was:" >&5
4522 cat conftest.$ac_ext >&5
4523 rm -rf conftest*
4524 glibcpp_cv_float_complex=buggy
4527 rm -f conftest*
4528 ac_ext=c
4529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4530 ac_cpp='$CPP $CPPFLAGS'
4531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4532 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4533 cross_compiling=$ac_cv_prog_cc_cross
4538 echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
4539 if test $glibcpp_cv_float_complex = buggy; then
4540 cat >> confdefs.h <<\EOF
4541 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
4548 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4549 echo "configure:4550: checking for mbstate_t" >&5
4550 cat > conftest.$ac_ext <<EOF
4551 #line 4552 "configure"
4552 #include "confdefs.h"
4553 #include <wchar.h>
4554 int main() {
4555 mbstate_t teststate;
4556 ; return 0; }
4558 if { (eval echo configure:4559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4559 rm -rf conftest*
4560 have_mbstate_t=yes
4561 else
4562 echo "configure: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4564 rm -rf conftest*
4565 have_mbstate_t=no
4567 rm -f conftest*
4568 echo "$ac_t""$have_mbstate_t" 1>&6
4569 if test x"$have_mbstate_t" = xyes; then
4570 cat >> confdefs.h <<\EOF
4571 #define HAVE_MBSTATE_T 1
4576 for ac_hdr in wchar.h
4578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4580 echo "configure:4581: checking for $ac_hdr" >&5
4581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4582 echo $ac_n "(cached) $ac_c" 1>&6
4583 else
4584 cat > conftest.$ac_ext <<EOF
4585 #line 4586 "configure"
4586 #include "confdefs.h"
4587 #include <$ac_hdr>
4589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4590 { (eval echo configure:4591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4592 if test -z "$ac_err"; then
4593 rm -rf conftest*
4594 eval "ac_cv_header_$ac_safe=yes"
4595 else
4596 echo "$ac_err" >&5
4597 echo "configure: failed program was:" >&5
4598 cat conftest.$ac_ext >&5
4599 rm -rf conftest*
4600 eval "ac_cv_header_$ac_safe=no"
4602 rm -f conftest*
4604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4605 echo "$ac_t""yes" 1>&6
4606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4607 cat >> confdefs.h <<EOF
4608 #define $ac_tr_hdr 1
4610 ac_has_wchar_h=yes
4611 else
4612 echo "$ac_t""no" 1>&6
4613 ac_has_wchar_h=no
4615 done
4617 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4618 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4619 echo "configure:4620: checking for wctype.h" >&5
4620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4621 echo $ac_n "(cached) $ac_c" 1>&6
4622 else
4623 cat > conftest.$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4626 #include <wctype.h>
4628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4629 { (eval echo configure:4630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4631 if test -z "$ac_err"; then
4632 rm -rf conftest*
4633 eval "ac_cv_header_$ac_safe=yes"
4634 else
4635 echo "$ac_err" >&5
4636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4638 rm -rf conftest*
4639 eval "ac_cv_header_$ac_safe=no"
4641 rm -f conftest*
4643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4644 echo "$ac_t""yes" 1>&6
4645 ac_has_wctype_h=yes
4646 else
4647 echo "$ac_t""no" 1>&6
4648 ac_has_wctype_h=no
4652 if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
4653 && test x"$enable_c_mbchar" != xno; then
4655 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4656 echo "configure:4657: checking for WCHAR_MIN and WCHAR_MAX" >&5
4657 cat > conftest.$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4660 #include <wchar.h>
4661 int main() {
4662 int i = WCHAR_MIN; int j = WCHAR_MAX;
4663 ; return 0; }
4665 if { (eval echo configure:4666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4666 rm -rf conftest*
4667 has_wchar_minmax=yes
4668 else
4669 echo "configure: failed program was:" >&5
4670 cat conftest.$ac_ext >&5
4671 rm -rf conftest*
4672 has_wchar_minmax=no
4674 rm -f conftest*
4675 echo "$ac_t""$has_wchar_minmax" 1>&6
4677 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4678 echo "configure:4679: checking for WEOF" >&5
4679 cat > conftest.$ac_ext <<EOF
4680 #line 4681 "configure"
4681 #include "confdefs.h"
4683 #include <wchar.h>
4684 #include <stddef.h>
4685 int main() {
4686 wint_t i = WEOF;
4687 ; return 0; }
4689 if { (eval echo configure:4690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4690 rm -rf conftest*
4691 has_weof=yes
4692 else
4693 echo "configure: failed program was:" >&5
4694 cat conftest.$ac_ext >&5
4695 rm -rf conftest*
4696 has_weof=no
4698 rm -f conftest*
4699 echo "$ac_t""$has_weof" 1>&6
4701 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
4702 wcsrtombs mbsrtowcs
4704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4705 echo "configure:4706: checking for $ac_func" >&5
4706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4707 echo $ac_n "(cached) $ac_c" 1>&6
4708 else
4709 cat > conftest.$ac_ext <<EOF
4710 #line 4711 "configure"
4711 #include "confdefs.h"
4712 /* System header to define __stub macros and hopefully few prototypes,
4713 which can conflict with char $ac_func(); below. */
4714 #include <assert.h>
4715 /* Override any gcc2 internal prototype to avoid an error. */
4716 /* We use char because int might match the return type of a gcc2
4717 builtin and then its argument prototype would still apply. */
4718 char $ac_func();
4720 int main() {
4722 /* The GNU C library defines this for functions which it implements
4723 to always fail with ENOSYS. Some functions are actually named
4724 something starting with __ and the normal name is an alias. */
4725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4726 choke me
4727 #else
4728 $ac_func();
4729 #endif
4731 ; return 0; }
4733 if { (eval echo configure:4734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4734 rm -rf conftest*
4735 eval "ac_cv_func_$ac_func=yes"
4736 else
4737 echo "configure: failed program was:" >&5
4738 cat conftest.$ac_ext >&5
4739 rm -rf conftest*
4740 eval "ac_cv_func_$ac_func=no"
4742 rm -f conftest*
4745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4746 echo "$ac_t""yes" 1>&6
4747 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4748 cat >> confdefs.h <<EOF
4749 #define $ac_tr_func 1
4751 ac_wfuncs=yes
4752 else
4753 echo "$ac_t""no" 1>&6
4754 ac_wfuncs=no
4756 done
4759 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4760 echo "configure:4761: checking for ISO C99 wchar_t support" >&5
4761 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
4762 && test x"$ac_wfuncs" = xyes; then
4763 ac_isoC99_wchar_t=yes
4764 else
4765 ac_isoC99_wchar_t=no
4767 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4769 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4770 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4771 echo "configure:4772: checking for iconv.h" >&5
4772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4773 echo $ac_n "(cached) $ac_c" 1>&6
4774 else
4775 cat > conftest.$ac_ext <<EOF
4776 #line 4777 "configure"
4777 #include "confdefs.h"
4778 #include <iconv.h>
4780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4781 { (eval echo configure:4782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4783 if test -z "$ac_err"; then
4784 rm -rf conftest*
4785 eval "ac_cv_header_$ac_safe=yes"
4786 else
4787 echo "$ac_err" >&5
4788 echo "configure: failed program was:" >&5
4789 cat conftest.$ac_ext >&5
4790 rm -rf conftest*
4791 eval "ac_cv_header_$ac_safe=no"
4793 rm -f conftest*
4795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4796 echo "$ac_t""yes" 1>&6
4797 ac_has_iconv_h=yes
4798 else
4799 echo "$ac_t""no" 1>&6
4800 ac_has_iconv_h=no
4803 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4804 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4805 echo "configure:4806: checking for langinfo.h" >&5
4806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4807 echo $ac_n "(cached) $ac_c" 1>&6
4808 else
4809 cat > conftest.$ac_ext <<EOF
4810 #line 4811 "configure"
4811 #include "confdefs.h"
4812 #include <langinfo.h>
4814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4815 { (eval echo configure:4816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4817 if test -z "$ac_err"; then
4818 rm -rf conftest*
4819 eval "ac_cv_header_$ac_safe=yes"
4820 else
4821 echo "$ac_err" >&5
4822 echo "configure: failed program was:" >&5
4823 cat conftest.$ac_ext >&5
4824 rm -rf conftest*
4825 eval "ac_cv_header_$ac_safe=no"
4827 rm -f conftest*
4829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4830 echo "$ac_t""yes" 1>&6
4831 ac_has_langinfo_h=yes
4832 else
4833 echo "$ac_t""no" 1>&6
4834 ac_has_langinfo_h=no
4838 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4839 echo "configure:4840: checking for iconv in -liconv" >&5
4840 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4841 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4842 echo $ac_n "(cached) $ac_c" 1>&6
4843 else
4844 ac_save_LIBS="$LIBS"
4845 LIBS="-liconv $LIBS"
4846 cat > conftest.$ac_ext <<EOF
4847 #line 4848 "configure"
4848 #include "confdefs.h"
4849 /* Override any gcc2 internal prototype to avoid an error. */
4850 /* We use char because int might match the return type of a gcc2
4851 builtin and then its argument prototype would still apply. */
4852 char iconv();
4854 int main() {
4855 iconv()
4856 ; return 0; }
4858 if { (eval echo configure:4859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4859 rm -rf conftest*
4860 eval "ac_cv_lib_$ac_lib_var=yes"
4861 else
4862 echo "configure: failed program was:" >&5
4863 cat conftest.$ac_ext >&5
4864 rm -rf conftest*
4865 eval "ac_cv_lib_$ac_lib_var=no"
4867 rm -f conftest*
4868 LIBS="$ac_save_LIBS"
4871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4872 echo "$ac_t""yes" 1>&6
4873 libiconv="-liconv"
4874 else
4875 echo "$ac_t""no" 1>&6
4878 ac_save_LIBS="$LIBS"
4879 LIBS="$LIBS $libiconv"
4881 for ac_func in iconv_open iconv_close iconv nl_langinfo
4883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4884 echo "configure:4885: checking for $ac_func" >&5
4885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4886 echo $ac_n "(cached) $ac_c" 1>&6
4887 else
4888 cat > conftest.$ac_ext <<EOF
4889 #line 4890 "configure"
4890 #include "confdefs.h"
4891 /* System header to define __stub macros and hopefully few prototypes,
4892 which can conflict with char $ac_func(); below. */
4893 #include <assert.h>
4894 /* Override any gcc2 internal prototype to avoid an error. */
4895 /* We use char because int might match the return type of a gcc2
4896 builtin and then its argument prototype would still apply. */
4897 char $ac_func();
4899 int main() {
4901 /* The GNU C library defines this for functions which it implements
4902 to always fail with ENOSYS. Some functions are actually named
4903 something starting with __ and the normal name is an alias. */
4904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4905 choke me
4906 #else
4907 $ac_func();
4908 #endif
4910 ; return 0; }
4912 if { (eval echo configure:4913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4913 rm -rf conftest*
4914 eval "ac_cv_func_$ac_func=yes"
4915 else
4916 echo "configure: failed program was:" >&5
4917 cat conftest.$ac_ext >&5
4918 rm -rf conftest*
4919 eval "ac_cv_func_$ac_func=no"
4921 rm -f conftest*
4924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4925 echo "$ac_t""yes" 1>&6
4926 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4927 cat >> confdefs.h <<EOF
4928 #define $ac_tr_func 1
4931 ac_XPG2funcs=yes
4932 else
4933 echo "$ac_t""no" 1>&6
4934 ac_XPG2funcs=no
4936 done
4939 LIBS="$ac_save_LIBS"
4941 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4942 echo "configure:4943: checking for XPG2 wchar_t support" >&5
4943 if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
4944 && test x"$ac_XPG2funcs" = xyes; then
4945 ac_XPG2_wchar_t=yes
4946 else
4947 ac_XPG2_wchar_t=no
4949 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4951 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4952 echo "configure:4953: checking for enabled wchar_t specializations" >&5
4953 if test x"$ac_isoC99_wchar_t" = xyes \
4954 && test x"$ac_XPG2_wchar_t" = xyes; then
4955 cat >> confdefs.h <<\EOF
4956 #define _GLIBCPP_USE_WCHAR_T 1
4959 echo "$ac_t"""yes"" 1>&6
4960 else
4961 echo "$ac_t"""no"" 1>&6
4963 else
4964 echo "configure: warning: wchar_t support disabled." 1>&2
4967 os_include_dir="config/os/gnu-linux"
4968 # GLIBCPP_CHECK_STDLIB_SUPPORT
4969 cat >> confdefs.h <<\EOF
4970 #define HAVE_STRTOF 1
4973 cat >> confdefs.h <<\EOF
4974 #define HAVE_STRTOLD 1
4977 # AC_FUNC_MMAP
4978 cat >> confdefs.h <<\EOF
4979 #define HAVE_MMAP 1
4984 # We assume newlib. This lets us hard-code the functions we know
4985 # we'll have.
4986 cat >> confdefs.h <<\EOF
4987 #define HAVE_FINITE 1
4990 cat >> confdefs.h <<\EOF
4991 #define HAVE_ISNAN 1
4994 cat >> confdefs.h <<\EOF
4995 #define HAVE_ISNANF 1
4998 cat >> confdefs.h <<\EOF
4999 #define HAVE_ISINF 1
5002 cat >> confdefs.h <<\EOF
5003 #define HAVE_ISINFF 1
5007 os_include_dir="config/os/newlib"
5009 cat >> confdefs.h <<\EOF
5010 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
5013 cat >> confdefs.h <<\EOF
5014 #define _GLIBCPP_BUGGY_COMPLEX 1
5017 # need to check for faster f versions of math functions, ie sinf?
5019 esac
5020 else
5022 # We are being configured natively. We can do more elaborate tests
5023 # that include AC_TRY_COMPILE now, as the linker is assumed to be
5024 # working.
5025 xcompiling=0
5026 NATIVE=yes
5027 CANADIAN=no
5028 NULL_TARGET=no
5030 # Check for available headers.
5031 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
5032 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
5034 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5035 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5036 echo "configure:5037: checking for $ac_hdr" >&5
5037 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5039 else
5040 cat > conftest.$ac_ext <<EOF
5041 #line 5042 "configure"
5042 #include "confdefs.h"
5043 #include <$ac_hdr>
5045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5046 { (eval echo configure:5047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5048 if test -z "$ac_err"; then
5049 rm -rf conftest*
5050 eval "ac_cv_header_$ac_safe=yes"
5051 else
5052 echo "$ac_err" >&5
5053 echo "configure: failed program was:" >&5
5054 cat conftest.$ac_ext >&5
5055 rm -rf conftest*
5056 eval "ac_cv_header_$ac_safe=no"
5058 rm -f conftest*
5060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5061 echo "$ac_t""yes" 1>&6
5062 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5063 cat >> confdefs.h <<EOF
5064 #define $ac_tr_hdr 1
5067 else
5068 echo "$ac_t""no" 1>&6
5070 done
5074 # All these tests are for C++; save the language and the compiler flags.
5075 # The CXXFLAGS thing is suspicious, but based on similar bits
5076 # found in GLIBCPP_CONFIGURE.
5078 ac_ext=C
5079 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5080 ac_cpp='$CXXCPP $CPPFLAGS'
5081 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5082 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5083 cross_compiling=$ac_cv_prog_cxx_cross
5085 ac_test_CXXFLAGS="${CXXFLAGS+set}"
5086 ac_save_CXXFLAGS="$CXXFLAGS"
5088 # Check for maintainer-mode bits.
5089 if test x"$USE_MAINTAINER_MODE" = xno; then
5090 WERROR=''
5091 else
5092 WERROR='-Werror'
5095 # Check for -ffunction-sections -fdata-sections
5096 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
5097 echo "configure:5098: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
5098 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
5099 cat > conftest.$ac_ext <<EOF
5100 #line 5101 "configure"
5101 #include "confdefs.h"
5103 int main() {
5104 int foo;
5106 ; return 0; }
5108 if { (eval echo configure:5109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5109 rm -rf conftest*
5110 ac_fdsections=yes
5111 else
5112 echo "configure: failed program was:" >&5
5113 cat conftest.$ac_ext >&5
5114 rm -rf conftest*
5115 ac_fdsections=no
5117 rm -f conftest*
5118 if test "$ac_test_CXXFLAGS" = set; then
5119 CXXFLAGS="$ac_save_CXXFLAGS"
5120 else
5121 # this is the suspicious part
5122 CXXFLAGS=''
5124 if test x"$ac_fdsections" = x"yes" && test x"$enable_debug" = x"no"; then
5125 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5127 echo "$ac_t""$ac_fdsections" 1>&6
5129 ac_ext=c
5130 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5131 ac_cpp='$CPP $CPPFLAGS'
5132 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5133 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5134 cross_compiling=$ac_cv_prog_cc_cross
5140 # If we're not using GNU ld, then there's no point in even trying these
5141 # tests. Check for that first. We should have already tested for gld
5142 # by now (in libtool), but require it now just to be safe...
5143 SECTION_LDFLAGS=''
5144 OPT_LDFLAGS=''
5147 # Set --gc-sections.
5148 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
5149 # GNU ld it is! Joy and bunny rabbits!
5151 # All these tests are for C++; save the language and the compiler flags.
5152 # Need to do this so that g++ won't try to link in libstdc++
5153 ac_test_CFLAGS="${CFLAGS+set}"
5154 ac_save_CFLAGS="$CFLAGS"
5155 CFLAGS='-x c++ -Wl,--gc-sections'
5157 # Check for -Wl,--gc-sections
5158 # XXX This test is broken at the moment, as symbols required for
5159 # linking are now in libsupc++ (not built yet.....). In addition,
5160 # this test has cored on solaris in the past. In addition,
5161 # --gc-sections doesn't really work at the moment (keeps on discarding
5162 # used sections, first .eh_frame and now some of the glibc sections for
5163 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5164 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5165 echo "configure:5166: checking for ld that supports -Wl,--gc-sections" >&5
5166 if test "$cross_compiling" = yes; then
5167 ac_sectionLDflags=yes
5168 else
5169 cat > conftest.$ac_ext <<EOF
5170 #line 5171 "configure"
5171 #include "confdefs.h"
5173 int main(void)
5175 try { throw 1; }
5176 catch (...) { };
5177 return 0;
5181 if { (eval echo configure:5182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5182 then
5183 ac_sectionLDflags=yes
5184 else
5185 echo "configure: failed program was:" >&5
5186 cat conftest.$ac_ext >&5
5187 rm -fr conftest*
5188 ac_sectionLFflags=no
5190 rm -fr conftest*
5193 if test "$ac_test_CFLAGS" = set; then
5194 CFLAGS="$ac_save_CFLAGS"
5195 else
5196 # this is the suspicious part
5197 CFLAGS=''
5199 if test "$ac_sectionLDflags" = "yes"; then
5200 SECTION_LDFLAGS='-Wl,--gc-sections'
5202 echo "$ac_t""$ac_sectionLDflags" 1>&6
5205 # Set linker optimization flags.
5206 if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5207 OPT_LDFLAGS='-Wl,-O1'
5215 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5216 echo "configure:5217: checking for __builtin_abs declaration" >&5
5217 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5218 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5219 echo $ac_n "(cached) $ac_c" 1>&6
5220 else
5223 ac_ext=C
5224 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5225 ac_cpp='$CXXCPP $CPPFLAGS'
5226 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5227 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5228 cross_compiling=$ac_cv_prog_cxx_cross
5230 cat > conftest.$ac_ext <<EOF
5231 #line 5232 "configure"
5232 #include "confdefs.h"
5233 #include <math.h>
5234 int main() {
5235 __builtin_abs(0);
5236 ; return 0; }
5238 if { (eval echo configure:5239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5239 rm -rf conftest*
5240 glibcpp_cv_func___builtin_abs_use=yes
5241 else
5242 echo "configure: failed program was:" >&5
5243 cat conftest.$ac_ext >&5
5244 rm -rf conftest*
5245 glibcpp_cv_func___builtin_abs_use=no
5247 rm -f conftest*
5248 ac_ext=c
5249 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5250 ac_cpp='$CPP $CPPFLAGS'
5251 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5252 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5253 cross_compiling=$ac_cv_prog_cc_cross
5259 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5260 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5261 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5262 echo "configure:5263: checking for __builtin_abs linkage" >&5
5263 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5264 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5265 echo $ac_n "(cached) $ac_c" 1>&6
5266 else
5268 cat > conftest.$ac_ext <<EOF
5269 #line 5270 "configure"
5270 #include "confdefs.h"
5271 #include <math.h>
5272 int main() {
5273 __builtin_abs(0);
5274 ; return 0; }
5276 if { (eval echo configure:5277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5277 rm -rf conftest*
5278 glibcpp_cv_func___builtin_abs_link=yes
5279 else
5280 echo "configure: failed program was:" >&5
5281 cat conftest.$ac_ext >&5
5282 rm -rf conftest*
5283 glibcpp_cv_func___builtin_abs_link=no
5285 rm -f conftest*
5290 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5291 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5292 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5293 cat >> confdefs.h <<EOF
5294 #define ${ac_tr_func} 1
5301 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5302 echo "configure:5303: checking for __builtin_fabsf declaration" >&5
5303 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5304 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5305 echo $ac_n "(cached) $ac_c" 1>&6
5306 else
5309 ac_ext=C
5310 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5311 ac_cpp='$CXXCPP $CPPFLAGS'
5312 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5313 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5314 cross_compiling=$ac_cv_prog_cxx_cross
5316 cat > conftest.$ac_ext <<EOF
5317 #line 5318 "configure"
5318 #include "confdefs.h"
5319 #include <math.h>
5320 int main() {
5321 __builtin_fabsf(0);
5322 ; return 0; }
5324 if { (eval echo configure:5325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5325 rm -rf conftest*
5326 glibcpp_cv_func___builtin_fabsf_use=yes
5327 else
5328 echo "configure: failed program was:" >&5
5329 cat conftest.$ac_ext >&5
5330 rm -rf conftest*
5331 glibcpp_cv_func___builtin_fabsf_use=no
5333 rm -f conftest*
5334 ac_ext=c
5335 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5336 ac_cpp='$CPP $CPPFLAGS'
5337 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5338 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5339 cross_compiling=$ac_cv_prog_cc_cross
5345 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5346 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5347 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5348 echo "configure:5349: checking for __builtin_fabsf linkage" >&5
5349 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5350 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6
5352 else
5354 cat > conftest.$ac_ext <<EOF
5355 #line 5356 "configure"
5356 #include "confdefs.h"
5357 #include <math.h>
5358 int main() {
5359 __builtin_fabsf(0);
5360 ; return 0; }
5362 if { (eval echo configure:5363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5363 rm -rf conftest*
5364 glibcpp_cv_func___builtin_fabsf_link=yes
5365 else
5366 echo "configure: failed program was:" >&5
5367 cat conftest.$ac_ext >&5
5368 rm -rf conftest*
5369 glibcpp_cv_func___builtin_fabsf_link=no
5371 rm -f conftest*
5376 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5377 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5378 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5379 cat >> confdefs.h <<EOF
5380 #define ${ac_tr_func} 1
5387 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5388 echo "configure:5389: checking for __builtin_fabs declaration" >&5
5389 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5390 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6
5392 else
5395 ac_ext=C
5396 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5397 ac_cpp='$CXXCPP $CPPFLAGS'
5398 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5399 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5400 cross_compiling=$ac_cv_prog_cxx_cross
5402 cat > conftest.$ac_ext <<EOF
5403 #line 5404 "configure"
5404 #include "confdefs.h"
5405 #include <math.h>
5406 int main() {
5407 __builtin_fabs(0);
5408 ; return 0; }
5410 if { (eval echo configure:5411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5411 rm -rf conftest*
5412 glibcpp_cv_func___builtin_fabs_use=yes
5413 else
5414 echo "configure: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5416 rm -rf conftest*
5417 glibcpp_cv_func___builtin_fabs_use=no
5419 rm -f conftest*
5420 ac_ext=c
5421 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5424 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5425 cross_compiling=$ac_cv_prog_cc_cross
5431 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5432 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5433 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5434 echo "configure:5435: checking for __builtin_fabs linkage" >&5
5435 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5436 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5437 echo $ac_n "(cached) $ac_c" 1>&6
5438 else
5440 cat > conftest.$ac_ext <<EOF
5441 #line 5442 "configure"
5442 #include "confdefs.h"
5443 #include <math.h>
5444 int main() {
5445 __builtin_fabs(0);
5446 ; return 0; }
5448 if { (eval echo configure:5449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5449 rm -rf conftest*
5450 glibcpp_cv_func___builtin_fabs_link=yes
5451 else
5452 echo "configure: failed program was:" >&5
5453 cat conftest.$ac_ext >&5
5454 rm -rf conftest*
5455 glibcpp_cv_func___builtin_fabs_link=no
5457 rm -f conftest*
5462 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5463 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5464 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5465 cat >> confdefs.h <<EOF
5466 #define ${ac_tr_func} 1
5473 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5474 echo "configure:5475: checking for __builtin_fabsl declaration" >&5
5475 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5476 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5477 echo $ac_n "(cached) $ac_c" 1>&6
5478 else
5481 ac_ext=C
5482 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5483 ac_cpp='$CXXCPP $CPPFLAGS'
5484 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5485 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5486 cross_compiling=$ac_cv_prog_cxx_cross
5488 cat > conftest.$ac_ext <<EOF
5489 #line 5490 "configure"
5490 #include "confdefs.h"
5491 #include <math.h>
5492 int main() {
5493 __builtin_fabsl(0);
5494 ; return 0; }
5496 if { (eval echo configure:5497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5497 rm -rf conftest*
5498 glibcpp_cv_func___builtin_fabsl_use=yes
5499 else
5500 echo "configure: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5502 rm -rf conftest*
5503 glibcpp_cv_func___builtin_fabsl_use=no
5505 rm -f conftest*
5506 ac_ext=c
5507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5508 ac_cpp='$CPP $CPPFLAGS'
5509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5511 cross_compiling=$ac_cv_prog_cc_cross
5517 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5518 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5519 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5520 echo "configure:5521: checking for __builtin_fabsl linkage" >&5
5521 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5522 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5523 echo $ac_n "(cached) $ac_c" 1>&6
5524 else
5526 cat > conftest.$ac_ext <<EOF
5527 #line 5528 "configure"
5528 #include "confdefs.h"
5529 #include <math.h>
5530 int main() {
5531 __builtin_fabsl(0);
5532 ; return 0; }
5534 if { (eval echo configure:5535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5535 rm -rf conftest*
5536 glibcpp_cv_func___builtin_fabsl_link=yes
5537 else
5538 echo "configure: failed program was:" >&5
5539 cat conftest.$ac_ext >&5
5540 rm -rf conftest*
5541 glibcpp_cv_func___builtin_fabsl_link=no
5543 rm -f conftest*
5548 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5549 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5550 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5551 cat >> confdefs.h <<EOF
5552 #define ${ac_tr_func} 1
5559 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5560 echo "configure:5561: checking for __builtin_labs declaration" >&5
5561 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5562 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5563 echo $ac_n "(cached) $ac_c" 1>&6
5564 else
5567 ac_ext=C
5568 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5569 ac_cpp='$CXXCPP $CPPFLAGS'
5570 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5571 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5572 cross_compiling=$ac_cv_prog_cxx_cross
5574 cat > conftest.$ac_ext <<EOF
5575 #line 5576 "configure"
5576 #include "confdefs.h"
5577 #include <math.h>
5578 int main() {
5579 __builtin_labs(0);
5580 ; return 0; }
5582 if { (eval echo configure:5583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5583 rm -rf conftest*
5584 glibcpp_cv_func___builtin_labs_use=yes
5585 else
5586 echo "configure: failed program was:" >&5
5587 cat conftest.$ac_ext >&5
5588 rm -rf conftest*
5589 glibcpp_cv_func___builtin_labs_use=no
5591 rm -f conftest*
5592 ac_ext=c
5593 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5594 ac_cpp='$CPP $CPPFLAGS'
5595 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5596 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5597 cross_compiling=$ac_cv_prog_cc_cross
5603 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5604 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5605 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5606 echo "configure:5607: checking for __builtin_labs linkage" >&5
5607 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5608 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5609 echo $ac_n "(cached) $ac_c" 1>&6
5610 else
5612 cat > conftest.$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5615 #include <math.h>
5616 int main() {
5617 __builtin_labs(0);
5618 ; return 0; }
5620 if { (eval echo configure:5621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5621 rm -rf conftest*
5622 glibcpp_cv_func___builtin_labs_link=yes
5623 else
5624 echo "configure: failed program was:" >&5
5625 cat conftest.$ac_ext >&5
5626 rm -rf conftest*
5627 glibcpp_cv_func___builtin_labs_link=no
5629 rm -f conftest*
5634 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5635 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5636 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5637 cat >> confdefs.h <<EOF
5638 #define ${ac_tr_func} 1
5646 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5647 echo "configure:5648: checking for __builtin_sqrtf declaration" >&5
5648 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5649 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5650 echo $ac_n "(cached) $ac_c" 1>&6
5651 else
5654 ac_ext=C
5655 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5656 ac_cpp='$CXXCPP $CPPFLAGS'
5657 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5658 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5659 cross_compiling=$ac_cv_prog_cxx_cross
5661 cat > conftest.$ac_ext <<EOF
5662 #line 5663 "configure"
5663 #include "confdefs.h"
5664 #include <math.h>
5665 int main() {
5666 __builtin_sqrtf(0);
5667 ; return 0; }
5669 if { (eval echo configure:5670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5670 rm -rf conftest*
5671 glibcpp_cv_func___builtin_sqrtf_use=yes
5672 else
5673 echo "configure: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5675 rm -rf conftest*
5676 glibcpp_cv_func___builtin_sqrtf_use=no
5678 rm -f conftest*
5679 ac_ext=c
5680 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5681 ac_cpp='$CPP $CPPFLAGS'
5682 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5683 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5684 cross_compiling=$ac_cv_prog_cc_cross
5690 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5691 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5692 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5693 echo "configure:5694: checking for __builtin_sqrtf linkage" >&5
5694 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5695 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5696 echo $ac_n "(cached) $ac_c" 1>&6
5697 else
5699 cat > conftest.$ac_ext <<EOF
5700 #line 5701 "configure"
5701 #include "confdefs.h"
5702 #include <math.h>
5703 int main() {
5704 __builtin_sqrtf(0);
5705 ; return 0; }
5707 if { (eval echo configure:5708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5708 rm -rf conftest*
5709 glibcpp_cv_func___builtin_sqrtf_link=yes
5710 else
5711 echo "configure: failed program was:" >&5
5712 cat conftest.$ac_ext >&5
5713 rm -rf conftest*
5714 glibcpp_cv_func___builtin_sqrtf_link=no
5716 rm -f conftest*
5721 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5722 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5723 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5724 cat >> confdefs.h <<EOF
5725 #define ${ac_tr_func} 1
5732 echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5733 echo "configure:5734: checking for __builtin_fsqrt declaration" >&5
5734 if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5735 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5736 echo $ac_n "(cached) $ac_c" 1>&6
5737 else
5740 ac_ext=C
5741 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5742 ac_cpp='$CXXCPP $CPPFLAGS'
5743 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5744 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5745 cross_compiling=$ac_cv_prog_cxx_cross
5747 cat > conftest.$ac_ext <<EOF
5748 #line 5749 "configure"
5749 #include "confdefs.h"
5750 #include <math.h>
5751 int main() {
5752 __builtin_fsqrt(0);
5753 ; return 0; }
5755 if { (eval echo configure:5756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5756 rm -rf conftest*
5757 glibcpp_cv_func___builtin_fsqrt_use=yes
5758 else
5759 echo "configure: failed program was:" >&5
5760 cat conftest.$ac_ext >&5
5761 rm -rf conftest*
5762 glibcpp_cv_func___builtin_fsqrt_use=no
5764 rm -f conftest*
5765 ac_ext=c
5766 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5767 ac_cpp='$CPP $CPPFLAGS'
5768 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5769 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5770 cross_compiling=$ac_cv_prog_cc_cross
5776 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5777 if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5778 echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5779 echo "configure:5780: checking for __builtin_fsqrt linkage" >&5
5780 if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5781 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5782 echo $ac_n "(cached) $ac_c" 1>&6
5783 else
5785 cat > conftest.$ac_ext <<EOF
5786 #line 5787 "configure"
5787 #include "confdefs.h"
5788 #include <math.h>
5789 int main() {
5790 __builtin_fsqrt(0);
5791 ; return 0; }
5793 if { (eval echo configure:5794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5794 rm -rf conftest*
5795 glibcpp_cv_func___builtin_fsqrt_link=yes
5796 else
5797 echo "configure: failed program was:" >&5
5798 cat conftest.$ac_ext >&5
5799 rm -rf conftest*
5800 glibcpp_cv_func___builtin_fsqrt_link=no
5802 rm -f conftest*
5807 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5808 if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5809 ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5810 cat >> confdefs.h <<EOF
5811 #define ${ac_tr_func} 1
5818 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5819 echo "configure:5820: checking for __builtin_sqrtl declaration" >&5
5820 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5821 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5822 echo $ac_n "(cached) $ac_c" 1>&6
5823 else
5826 ac_ext=C
5827 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5828 ac_cpp='$CXXCPP $CPPFLAGS'
5829 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5830 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5831 cross_compiling=$ac_cv_prog_cxx_cross
5833 cat > conftest.$ac_ext <<EOF
5834 #line 5835 "configure"
5835 #include "confdefs.h"
5836 #include <math.h>
5837 int main() {
5838 __builtin_sqrtl(0);
5839 ; return 0; }
5841 if { (eval echo configure:5842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5842 rm -rf conftest*
5843 glibcpp_cv_func___builtin_sqrtl_use=yes
5844 else
5845 echo "configure: failed program was:" >&5
5846 cat conftest.$ac_ext >&5
5847 rm -rf conftest*
5848 glibcpp_cv_func___builtin_sqrtl_use=no
5850 rm -f conftest*
5851 ac_ext=c
5852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5853 ac_cpp='$CPP $CPPFLAGS'
5854 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5855 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5856 cross_compiling=$ac_cv_prog_cc_cross
5862 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5863 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5864 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5865 echo "configure:5866: checking for __builtin_sqrtl linkage" >&5
5866 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5867 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5868 echo $ac_n "(cached) $ac_c" 1>&6
5869 else
5871 cat > conftest.$ac_ext <<EOF
5872 #line 5873 "configure"
5873 #include "confdefs.h"
5874 #include <math.h>
5875 int main() {
5876 __builtin_sqrtl(0);
5877 ; return 0; }
5879 if { (eval echo configure:5880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5880 rm -rf conftest*
5881 glibcpp_cv_func___builtin_sqrtl_link=yes
5882 else
5883 echo "configure: failed program was:" >&5
5884 cat conftest.$ac_ext >&5
5885 rm -rf conftest*
5886 glibcpp_cv_func___builtin_sqrtl_link=no
5888 rm -f conftest*
5893 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5894 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5895 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5896 cat >> confdefs.h <<EOF
5897 #define ${ac_tr_func} 1
5905 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5906 echo "configure:5907: checking for __builtin_sinf declaration" >&5
5907 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5908 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5909 echo $ac_n "(cached) $ac_c" 1>&6
5910 else
5913 ac_ext=C
5914 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5915 ac_cpp='$CXXCPP $CPPFLAGS'
5916 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5917 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5918 cross_compiling=$ac_cv_prog_cxx_cross
5920 cat > conftest.$ac_ext <<EOF
5921 #line 5922 "configure"
5922 #include "confdefs.h"
5923 #include <math.h>
5924 int main() {
5925 __builtin_sinf(0);
5926 ; return 0; }
5928 if { (eval echo configure:5929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5929 rm -rf conftest*
5930 glibcpp_cv_func___builtin_sinf_use=yes
5931 else
5932 echo "configure: failed program was:" >&5
5933 cat conftest.$ac_ext >&5
5934 rm -rf conftest*
5935 glibcpp_cv_func___builtin_sinf_use=no
5937 rm -f conftest*
5938 ac_ext=c
5939 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5940 ac_cpp='$CPP $CPPFLAGS'
5941 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5942 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5943 cross_compiling=$ac_cv_prog_cc_cross
5949 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5950 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5951 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5952 echo "configure:5953: checking for __builtin_sinf linkage" >&5
5953 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5954 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5955 echo $ac_n "(cached) $ac_c" 1>&6
5956 else
5958 cat > conftest.$ac_ext <<EOF
5959 #line 5960 "configure"
5960 #include "confdefs.h"
5961 #include <math.h>
5962 int main() {
5963 __builtin_sinf(0);
5964 ; return 0; }
5966 if { (eval echo configure:5967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5967 rm -rf conftest*
5968 glibcpp_cv_func___builtin_sinf_link=yes
5969 else
5970 echo "configure: failed program was:" >&5
5971 cat conftest.$ac_ext >&5
5972 rm -rf conftest*
5973 glibcpp_cv_func___builtin_sinf_link=no
5975 rm -f conftest*
5980 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5981 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5982 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5983 cat >> confdefs.h <<EOF
5984 #define ${ac_tr_func} 1
5991 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5992 echo "configure:5993: checking for __builtin_sin declaration" >&5
5993 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5994 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
5995 echo $ac_n "(cached) $ac_c" 1>&6
5996 else
5999 ac_ext=C
6000 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6001 ac_cpp='$CXXCPP $CPPFLAGS'
6002 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6003 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6004 cross_compiling=$ac_cv_prog_cxx_cross
6006 cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6009 #include <math.h>
6010 int main() {
6011 __builtin_sin(0);
6012 ; return 0; }
6014 if { (eval echo configure:6015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6015 rm -rf conftest*
6016 glibcpp_cv_func___builtin_sin_use=yes
6017 else
6018 echo "configure: failed program was:" >&5
6019 cat conftest.$ac_ext >&5
6020 rm -rf conftest*
6021 glibcpp_cv_func___builtin_sin_use=no
6023 rm -f conftest*
6024 ac_ext=c
6025 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6026 ac_cpp='$CPP $CPPFLAGS'
6027 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6028 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6029 cross_compiling=$ac_cv_prog_cc_cross
6035 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
6036 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
6037 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
6038 echo "configure:6039: checking for __builtin_sin linkage" >&5
6039 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
6040 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
6041 echo $ac_n "(cached) $ac_c" 1>&6
6042 else
6044 cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6047 #include <math.h>
6048 int main() {
6049 __builtin_sin(0);
6050 ; return 0; }
6052 if { (eval echo configure:6053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6053 rm -rf conftest*
6054 glibcpp_cv_func___builtin_sin_link=yes
6055 else
6056 echo "configure: failed program was:" >&5
6057 cat conftest.$ac_ext >&5
6058 rm -rf conftest*
6059 glibcpp_cv_func___builtin_sin_link=no
6061 rm -f conftest*
6066 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
6067 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
6068 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6069 cat >> confdefs.h <<EOF
6070 #define ${ac_tr_func} 1
6077 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
6078 echo "configure:6079: checking for __builtin_sinl declaration" >&5
6079 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
6080 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
6081 echo $ac_n "(cached) $ac_c" 1>&6
6082 else
6085 ac_ext=C
6086 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6087 ac_cpp='$CXXCPP $CPPFLAGS'
6088 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6089 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6090 cross_compiling=$ac_cv_prog_cxx_cross
6092 cat > conftest.$ac_ext <<EOF
6093 #line 6094 "configure"
6094 #include "confdefs.h"
6095 #include <math.h>
6096 int main() {
6097 __builtin_sinl(0);
6098 ; return 0; }
6100 if { (eval echo configure:6101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6101 rm -rf conftest*
6102 glibcpp_cv_func___builtin_sinl_use=yes
6103 else
6104 echo "configure: failed program was:" >&5
6105 cat conftest.$ac_ext >&5
6106 rm -rf conftest*
6107 glibcpp_cv_func___builtin_sinl_use=no
6109 rm -f conftest*
6110 ac_ext=c
6111 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6112 ac_cpp='$CPP $CPPFLAGS'
6113 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6114 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6115 cross_compiling=$ac_cv_prog_cc_cross
6121 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
6122 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
6123 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
6124 echo "configure:6125: checking for __builtin_sinl linkage" >&5
6125 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
6126 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
6127 echo $ac_n "(cached) $ac_c" 1>&6
6128 else
6130 cat > conftest.$ac_ext <<EOF
6131 #line 6132 "configure"
6132 #include "confdefs.h"
6133 #include <math.h>
6134 int main() {
6135 __builtin_sinl(0);
6136 ; return 0; }
6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6139 rm -rf conftest*
6140 glibcpp_cv_func___builtin_sinl_link=yes
6141 else
6142 echo "configure: failed program was:" >&5
6143 cat conftest.$ac_ext >&5
6144 rm -rf conftest*
6145 glibcpp_cv_func___builtin_sinl_link=no
6147 rm -f conftest*
6152 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
6153 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
6154 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6155 cat >> confdefs.h <<EOF
6156 #define ${ac_tr_func} 1
6164 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
6165 echo "configure:6166: checking for __builtin_cosf declaration" >&5
6166 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
6167 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
6168 echo $ac_n "(cached) $ac_c" 1>&6
6169 else
6172 ac_ext=C
6173 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6174 ac_cpp='$CXXCPP $CPPFLAGS'
6175 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6176 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6177 cross_compiling=$ac_cv_prog_cxx_cross
6179 cat > conftest.$ac_ext <<EOF
6180 #line 6181 "configure"
6181 #include "confdefs.h"
6182 #include <math.h>
6183 int main() {
6184 __builtin_cosf(0);
6185 ; return 0; }
6187 if { (eval echo configure:6188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6188 rm -rf conftest*
6189 glibcpp_cv_func___builtin_cosf_use=yes
6190 else
6191 echo "configure: failed program was:" >&5
6192 cat conftest.$ac_ext >&5
6193 rm -rf conftest*
6194 glibcpp_cv_func___builtin_cosf_use=no
6196 rm -f conftest*
6197 ac_ext=c
6198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6199 ac_cpp='$CPP $CPPFLAGS'
6200 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6201 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6202 cross_compiling=$ac_cv_prog_cc_cross
6208 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6209 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6210 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6211 echo "configure:6212: checking for __builtin_cosf linkage" >&5
6212 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6213 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6214 echo $ac_n "(cached) $ac_c" 1>&6
6215 else
6217 cat > conftest.$ac_ext <<EOF
6218 #line 6219 "configure"
6219 #include "confdefs.h"
6220 #include <math.h>
6221 int main() {
6222 __builtin_cosf(0);
6223 ; return 0; }
6225 if { (eval echo configure:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6226 rm -rf conftest*
6227 glibcpp_cv_func___builtin_cosf_link=yes
6228 else
6229 echo "configure: failed program was:" >&5
6230 cat conftest.$ac_ext >&5
6231 rm -rf conftest*
6232 glibcpp_cv_func___builtin_cosf_link=no
6234 rm -f conftest*
6239 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6240 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6241 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6242 cat >> confdefs.h <<EOF
6243 #define ${ac_tr_func} 1
6250 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
6251 echo "configure:6252: checking for __builtin_cos declaration" >&5
6252 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6253 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
6254 echo $ac_n "(cached) $ac_c" 1>&6
6255 else
6258 ac_ext=C
6259 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6260 ac_cpp='$CXXCPP $CPPFLAGS'
6261 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6262 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6263 cross_compiling=$ac_cv_prog_cxx_cross
6265 cat > conftest.$ac_ext <<EOF
6266 #line 6267 "configure"
6267 #include "confdefs.h"
6268 #include <math.h>
6269 int main() {
6270 __builtin_cos(0);
6271 ; return 0; }
6273 if { (eval echo configure:6274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6274 rm -rf conftest*
6275 glibcpp_cv_func___builtin_cos_use=yes
6276 else
6277 echo "configure: failed program was:" >&5
6278 cat conftest.$ac_ext >&5
6279 rm -rf conftest*
6280 glibcpp_cv_func___builtin_cos_use=no
6282 rm -f conftest*
6283 ac_ext=c
6284 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6285 ac_cpp='$CPP $CPPFLAGS'
6286 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6287 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6288 cross_compiling=$ac_cv_prog_cc_cross
6294 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
6295 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6296 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6297 echo "configure:6298: checking for __builtin_cos linkage" >&5
6298 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6299 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
6300 echo $ac_n "(cached) $ac_c" 1>&6
6301 else
6303 cat > conftest.$ac_ext <<EOF
6304 #line 6305 "configure"
6305 #include "confdefs.h"
6306 #include <math.h>
6307 int main() {
6308 __builtin_cos(0);
6309 ; return 0; }
6311 if { (eval echo configure:6312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6312 rm -rf conftest*
6313 glibcpp_cv_func___builtin_cos_link=yes
6314 else
6315 echo "configure: failed program was:" >&5
6316 cat conftest.$ac_ext >&5
6317 rm -rf conftest*
6318 glibcpp_cv_func___builtin_cos_link=no
6320 rm -f conftest*
6325 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6326 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6327 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6328 cat >> confdefs.h <<EOF
6329 #define ${ac_tr_func} 1
6336 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6337 echo "configure:6338: checking for __builtin_cosl declaration" >&5
6338 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6339 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
6340 echo $ac_n "(cached) $ac_c" 1>&6
6341 else
6344 ac_ext=C
6345 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6346 ac_cpp='$CXXCPP $CPPFLAGS'
6347 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6348 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6349 cross_compiling=$ac_cv_prog_cxx_cross
6351 cat > conftest.$ac_ext <<EOF
6352 #line 6353 "configure"
6353 #include "confdefs.h"
6354 #include <math.h>
6355 int main() {
6356 __builtin_cosl(0);
6357 ; return 0; }
6359 if { (eval echo configure:6360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6360 rm -rf conftest*
6361 glibcpp_cv_func___builtin_cosl_use=yes
6362 else
6363 echo "configure: failed program was:" >&5
6364 cat conftest.$ac_ext >&5
6365 rm -rf conftest*
6366 glibcpp_cv_func___builtin_cosl_use=no
6368 rm -f conftest*
6369 ac_ext=c
6370 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6371 ac_cpp='$CPP $CPPFLAGS'
6372 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6373 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6374 cross_compiling=$ac_cv_prog_cc_cross
6380 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
6381 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6382 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6383 echo "configure:6384: checking for __builtin_cosl linkage" >&5
6384 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6385 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
6386 echo $ac_n "(cached) $ac_c" 1>&6
6387 else
6389 cat > conftest.$ac_ext <<EOF
6390 #line 6391 "configure"
6391 #include "confdefs.h"
6392 #include <math.h>
6393 int main() {
6394 __builtin_cosl(0);
6395 ; return 0; }
6397 if { (eval echo configure:6398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6398 rm -rf conftest*
6399 glibcpp_cv_func___builtin_cosl_link=yes
6400 else
6401 echo "configure: failed program was:" >&5
6402 cat conftest.$ac_ext >&5
6403 rm -rf conftest*
6404 glibcpp_cv_func___builtin_cosl_link=no
6406 rm -f conftest*
6411 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6412 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6413 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6414 cat >> confdefs.h <<EOF
6415 #define ${ac_tr_func} 1
6422 dummyvar=no
6423 if test x$dummyvar = x"yes"; then
6424 cat >> confdefs.h <<\EOF
6425 #define HAVE___BUILTIN_ABS 1
6428 cat >> confdefs.h <<\EOF
6429 #define HAVE___BUILTIN_LABS 1
6432 cat >> confdefs.h <<\EOF
6433 #define HAVE___BUILTIN_COS 1
6436 cat >> confdefs.h <<\EOF
6437 #define HAVE___BUILTIN_COSF 1
6440 cat >> confdefs.h <<\EOF
6441 #define HAVE___BUILTIN_COSL 1
6444 cat >> confdefs.h <<\EOF
6445 #define HAVE___BUILTIN_FABS 1
6448 cat >> confdefs.h <<\EOF
6449 #define HAVE___BUILTIN_FABSF 1
6452 cat >> confdefs.h <<\EOF
6453 #define HAVE___BUILTIN_FABSL 1
6456 cat >> confdefs.h <<\EOF
6457 #define HAVE___BUILTIN_SIN 1
6460 cat >> confdefs.h <<\EOF
6461 #define HAVE___BUILTIN_SINF 1
6464 cat >> confdefs.h <<\EOF
6465 #define HAVE___BUILTIN_SINL 1
6468 cat >> confdefs.h <<\EOF
6469 #define HAVE___BUILTIN_FSQRT 1
6472 cat >> confdefs.h <<\EOF
6473 #define HAVE___BUILTIN_SQRTF 1
6476 cat >> confdefs.h <<\EOF
6477 #define HAVE___BUILTIN_SQRTL 1
6483 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6484 ac_save_CXXFLAGS="$CXXFLAGS"
6485 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6487 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6488 echo "configure:6489: checking for sin in -lm" >&5
6489 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6491 echo $ac_n "(cached) $ac_c" 1>&6
6492 else
6493 ac_save_LIBS="$LIBS"
6494 LIBS="-lm $LIBS"
6495 cat > conftest.$ac_ext <<EOF
6496 #line 6497 "configure"
6497 #include "confdefs.h"
6498 /* Override any gcc2 internal prototype to avoid an error. */
6499 /* We use char because int might match the return type of a gcc2
6500 builtin and then its argument prototype would still apply. */
6501 char sin();
6503 int main() {
6504 sin()
6505 ; return 0; }
6507 if { (eval echo configure:6508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6508 rm -rf conftest*
6509 eval "ac_cv_lib_$ac_lib_var=yes"
6510 else
6511 echo "configure: failed program was:" >&5
6512 cat conftest.$ac_ext >&5
6513 rm -rf conftest*
6514 eval "ac_cv_lib_$ac_lib_var=no"
6516 rm -f conftest*
6517 LIBS="$ac_save_LIBS"
6520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6521 echo "$ac_t""yes" 1>&6
6522 libm="-lm"
6523 else
6524 echo "$ac_t""no" 1>&6
6527 ac_save_LIBS="$LIBS"
6528 LIBS="$LIBS $libm"
6532 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6533 echo "configure:6534: checking for isinf declaration" >&5
6534 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6535 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6536 echo $ac_n "(cached) $ac_c" 1>&6
6537 else
6540 ac_ext=C
6541 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6542 ac_cpp='$CXXCPP $CPPFLAGS'
6543 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6544 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6545 cross_compiling=$ac_cv_prog_cxx_cross
6547 cat > conftest.$ac_ext <<EOF
6548 #line 6549 "configure"
6549 #include "confdefs.h"
6550 #include <math.h>
6551 #ifdef HAVE_IEEEFP_H
6552 #include <ieeefp.h>
6553 #endif
6555 int main() {
6556 isinf(0);
6557 ; return 0; }
6559 if { (eval echo configure:6560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6560 rm -rf conftest*
6561 glibcpp_cv_func_isinf_use=yes
6562 else
6563 echo "configure: failed program was:" >&5
6564 cat conftest.$ac_ext >&5
6565 rm -rf conftest*
6566 glibcpp_cv_func_isinf_use=no
6568 rm -f conftest*
6569 ac_ext=c
6570 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6571 ac_cpp='$CPP $CPPFLAGS'
6572 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6573 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6574 cross_compiling=$ac_cv_prog_cc_cross
6580 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6582 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6583 for ac_func in isinf
6585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6586 echo "configure:6587: checking for $ac_func" >&5
6587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6588 echo $ac_n "(cached) $ac_c" 1>&6
6589 else
6590 cat > conftest.$ac_ext <<EOF
6591 #line 6592 "configure"
6592 #include "confdefs.h"
6593 /* System header to define __stub macros and hopefully few prototypes,
6594 which can conflict with char $ac_func(); below. */
6595 #include <assert.h>
6596 /* Override any gcc2 internal prototype to avoid an error. */
6597 /* We use char because int might match the return type of a gcc2
6598 builtin and then its argument prototype would still apply. */
6599 char $ac_func();
6601 int main() {
6603 /* The GNU C library defines this for functions which it implements
6604 to always fail with ENOSYS. Some functions are actually named
6605 something starting with __ and the normal name is an alias. */
6606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6607 choke me
6608 #else
6609 $ac_func();
6610 #endif
6612 ; return 0; }
6614 if { (eval echo configure:6615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6615 rm -rf conftest*
6616 eval "ac_cv_func_$ac_func=yes"
6617 else
6618 echo "configure: failed program was:" >&5
6619 cat conftest.$ac_ext >&5
6620 rm -rf conftest*
6621 eval "ac_cv_func_$ac_func=no"
6623 rm -f conftest*
6626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6627 echo "$ac_t""yes" 1>&6
6628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6629 cat >> confdefs.h <<EOF
6630 #define $ac_tr_func 1
6633 else
6634 echo "$ac_t""no" 1>&6
6636 done
6638 else
6640 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6641 echo "configure:6642: checking for _isinf declaration" >&5
6642 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6643 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6644 echo $ac_n "(cached) $ac_c" 1>&6
6645 else
6648 ac_ext=C
6649 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6650 ac_cpp='$CXXCPP $CPPFLAGS'
6651 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6652 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6653 cross_compiling=$ac_cv_prog_cxx_cross
6655 cat > conftest.$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6658 #include <math.h>
6659 #ifdef HAVE_IEEEFP_H
6660 #include <ieeefp.h>
6661 #endif
6663 int main() {
6664 _isinf(0);
6665 ; return 0; }
6667 if { (eval echo configure:6668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6668 rm -rf conftest*
6669 glibcpp_cv_func__isinf_use=yes
6670 else
6671 echo "configure: failed program was:" >&5
6672 cat conftest.$ac_ext >&5
6673 rm -rf conftest*
6674 glibcpp_cv_func__isinf_use=no
6676 rm -f conftest*
6677 ac_ext=c
6678 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6679 ac_cpp='$CPP $CPPFLAGS'
6680 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6681 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6682 cross_compiling=$ac_cv_prog_cc_cross
6688 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6690 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6691 for ac_func in _isinf
6693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6694 echo "configure:6695: checking for $ac_func" >&5
6695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6696 echo $ac_n "(cached) $ac_c" 1>&6
6697 else
6698 cat > conftest.$ac_ext <<EOF
6699 #line 6700 "configure"
6700 #include "confdefs.h"
6701 /* System header to define __stub macros and hopefully few prototypes,
6702 which can conflict with char $ac_func(); below. */
6703 #include <assert.h>
6704 /* Override any gcc2 internal prototype to avoid an error. */
6705 /* We use char because int might match the return type of a gcc2
6706 builtin and then its argument prototype would still apply. */
6707 char $ac_func();
6709 int main() {
6711 /* The GNU C library defines this for functions which it implements
6712 to always fail with ENOSYS. Some functions are actually named
6713 something starting with __ and the normal name is an alias. */
6714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6715 choke me
6716 #else
6717 $ac_func();
6718 #endif
6720 ; return 0; }
6722 if { (eval echo configure:6723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6723 rm -rf conftest*
6724 eval "ac_cv_func_$ac_func=yes"
6725 else
6726 echo "configure: failed program was:" >&5
6727 cat conftest.$ac_ext >&5
6728 rm -rf conftest*
6729 eval "ac_cv_func_$ac_func=no"
6731 rm -f conftest*
6734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6735 echo "$ac_t""yes" 1>&6
6736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6737 cat >> confdefs.h <<EOF
6738 #define $ac_tr_func 1
6741 else
6742 echo "$ac_t""no" 1>&6
6744 done
6751 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6752 echo "configure:6753: checking for isnan declaration" >&5
6753 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6754 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6755 echo $ac_n "(cached) $ac_c" 1>&6
6756 else
6759 ac_ext=C
6760 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6761 ac_cpp='$CXXCPP $CPPFLAGS'
6762 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6763 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6764 cross_compiling=$ac_cv_prog_cxx_cross
6766 cat > conftest.$ac_ext <<EOF
6767 #line 6768 "configure"
6768 #include "confdefs.h"
6769 #include <math.h>
6770 #ifdef HAVE_IEEEFP_H
6771 #include <ieeefp.h>
6772 #endif
6774 int main() {
6775 isnan(0);
6776 ; return 0; }
6778 if { (eval echo configure:6779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6779 rm -rf conftest*
6780 glibcpp_cv_func_isnan_use=yes
6781 else
6782 echo "configure: failed program was:" >&5
6783 cat conftest.$ac_ext >&5
6784 rm -rf conftest*
6785 glibcpp_cv_func_isnan_use=no
6787 rm -f conftest*
6788 ac_ext=c
6789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6790 ac_cpp='$CPP $CPPFLAGS'
6791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6793 cross_compiling=$ac_cv_prog_cc_cross
6799 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6801 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6802 for ac_func in isnan
6804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6805 echo "configure:6806: checking for $ac_func" >&5
6806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6807 echo $ac_n "(cached) $ac_c" 1>&6
6808 else
6809 cat > conftest.$ac_ext <<EOF
6810 #line 6811 "configure"
6811 #include "confdefs.h"
6812 /* System header to define __stub macros and hopefully few prototypes,
6813 which can conflict with char $ac_func(); below. */
6814 #include <assert.h>
6815 /* Override any gcc2 internal prototype to avoid an error. */
6816 /* We use char because int might match the return type of a gcc2
6817 builtin and then its argument prototype would still apply. */
6818 char $ac_func();
6820 int main() {
6822 /* The GNU C library defines this for functions which it implements
6823 to always fail with ENOSYS. Some functions are actually named
6824 something starting with __ and the normal name is an alias. */
6825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6826 choke me
6827 #else
6828 $ac_func();
6829 #endif
6831 ; return 0; }
6833 if { (eval echo configure:6834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6834 rm -rf conftest*
6835 eval "ac_cv_func_$ac_func=yes"
6836 else
6837 echo "configure: failed program was:" >&5
6838 cat conftest.$ac_ext >&5
6839 rm -rf conftest*
6840 eval "ac_cv_func_$ac_func=no"
6842 rm -f conftest*
6845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6846 echo "$ac_t""yes" 1>&6
6847 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6848 cat >> confdefs.h <<EOF
6849 #define $ac_tr_func 1
6852 else
6853 echo "$ac_t""no" 1>&6
6855 done
6857 else
6859 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6860 echo "configure:6861: checking for _isnan declaration" >&5
6861 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6862 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6863 echo $ac_n "(cached) $ac_c" 1>&6
6864 else
6867 ac_ext=C
6868 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6869 ac_cpp='$CXXCPP $CPPFLAGS'
6870 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6871 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6872 cross_compiling=$ac_cv_prog_cxx_cross
6874 cat > conftest.$ac_ext <<EOF
6875 #line 6876 "configure"
6876 #include "confdefs.h"
6877 #include <math.h>
6878 #ifdef HAVE_IEEEFP_H
6879 #include <ieeefp.h>
6880 #endif
6882 int main() {
6883 _isnan(0);
6884 ; return 0; }
6886 if { (eval echo configure:6887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6887 rm -rf conftest*
6888 glibcpp_cv_func__isnan_use=yes
6889 else
6890 echo "configure: failed program was:" >&5
6891 cat conftest.$ac_ext >&5
6892 rm -rf conftest*
6893 glibcpp_cv_func__isnan_use=no
6895 rm -f conftest*
6896 ac_ext=c
6897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6898 ac_cpp='$CPP $CPPFLAGS'
6899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6901 cross_compiling=$ac_cv_prog_cc_cross
6907 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6909 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6910 for ac_func in _isnan
6912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6913 echo "configure:6914: checking for $ac_func" >&5
6914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6915 echo $ac_n "(cached) $ac_c" 1>&6
6916 else
6917 cat > conftest.$ac_ext <<EOF
6918 #line 6919 "configure"
6919 #include "confdefs.h"
6920 /* System header to define __stub macros and hopefully few prototypes,
6921 which can conflict with char $ac_func(); below. */
6922 #include <assert.h>
6923 /* Override any gcc2 internal prototype to avoid an error. */
6924 /* We use char because int might match the return type of a gcc2
6925 builtin and then its argument prototype would still apply. */
6926 char $ac_func();
6928 int main() {
6930 /* The GNU C library defines this for functions which it implements
6931 to always fail with ENOSYS. Some functions are actually named
6932 something starting with __ and the normal name is an alias. */
6933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6934 choke me
6935 #else
6936 $ac_func();
6937 #endif
6939 ; return 0; }
6941 if { (eval echo configure:6942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6942 rm -rf conftest*
6943 eval "ac_cv_func_$ac_func=yes"
6944 else
6945 echo "configure: failed program was:" >&5
6946 cat conftest.$ac_ext >&5
6947 rm -rf conftest*
6948 eval "ac_cv_func_$ac_func=no"
6950 rm -f conftest*
6953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6954 echo "$ac_t""yes" 1>&6
6955 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6956 cat >> confdefs.h <<EOF
6957 #define $ac_tr_func 1
6960 else
6961 echo "$ac_t""no" 1>&6
6963 done
6970 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6971 echo "configure:6972: checking for finite declaration" >&5
6972 if test x${glibcpp_cv_func_finite_use+set} != xset; then
6973 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6974 echo $ac_n "(cached) $ac_c" 1>&6
6975 else
6978 ac_ext=C
6979 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6980 ac_cpp='$CXXCPP $CPPFLAGS'
6981 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6982 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6983 cross_compiling=$ac_cv_prog_cxx_cross
6985 cat > conftest.$ac_ext <<EOF
6986 #line 6987 "configure"
6987 #include "confdefs.h"
6988 #include <math.h>
6989 #ifdef HAVE_IEEEFP_H
6990 #include <ieeefp.h>
6991 #endif
6993 int main() {
6994 finite(0);
6995 ; return 0; }
6997 if { (eval echo configure:6998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6998 rm -rf conftest*
6999 glibcpp_cv_func_finite_use=yes
7000 else
7001 echo "configure: failed program was:" >&5
7002 cat conftest.$ac_ext >&5
7003 rm -rf conftest*
7004 glibcpp_cv_func_finite_use=no
7006 rm -f conftest*
7007 ac_ext=c
7008 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7009 ac_cpp='$CPP $CPPFLAGS'
7010 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7011 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7012 cross_compiling=$ac_cv_prog_cc_cross
7018 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
7020 if test x$glibcpp_cv_func_finite_use = x"yes"; then
7021 for ac_func in finite
7023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7024 echo "configure:7025: checking for $ac_func" >&5
7025 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7026 echo $ac_n "(cached) $ac_c" 1>&6
7027 else
7028 cat > conftest.$ac_ext <<EOF
7029 #line 7030 "configure"
7030 #include "confdefs.h"
7031 /* System header to define __stub macros and hopefully few prototypes,
7032 which can conflict with char $ac_func(); below. */
7033 #include <assert.h>
7034 /* Override any gcc2 internal prototype to avoid an error. */
7035 /* We use char because int might match the return type of a gcc2
7036 builtin and then its argument prototype would still apply. */
7037 char $ac_func();
7039 int main() {
7041 /* The GNU C library defines this for functions which it implements
7042 to always fail with ENOSYS. Some functions are actually named
7043 something starting with __ and the normal name is an alias. */
7044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7045 choke me
7046 #else
7047 $ac_func();
7048 #endif
7050 ; return 0; }
7052 if { (eval echo configure:7053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7053 rm -rf conftest*
7054 eval "ac_cv_func_$ac_func=yes"
7055 else
7056 echo "configure: failed program was:" >&5
7057 cat conftest.$ac_ext >&5
7058 rm -rf conftest*
7059 eval "ac_cv_func_$ac_func=no"
7061 rm -f conftest*
7064 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7065 echo "$ac_t""yes" 1>&6
7066 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7067 cat >> confdefs.h <<EOF
7068 #define $ac_tr_func 1
7071 else
7072 echo "$ac_t""no" 1>&6
7074 done
7076 else
7078 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
7079 echo "configure:7080: checking for _finite declaration" >&5
7080 if test x${glibcpp_cv_func__finite_use+set} != xset; then
7081 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
7082 echo $ac_n "(cached) $ac_c" 1>&6
7083 else
7086 ac_ext=C
7087 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7088 ac_cpp='$CXXCPP $CPPFLAGS'
7089 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7090 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7091 cross_compiling=$ac_cv_prog_cxx_cross
7093 cat > conftest.$ac_ext <<EOF
7094 #line 7095 "configure"
7095 #include "confdefs.h"
7096 #include <math.h>
7097 #ifdef HAVE_IEEEFP_H
7098 #include <ieeefp.h>
7099 #endif
7101 int main() {
7102 _finite(0);
7103 ; return 0; }
7105 if { (eval echo configure:7106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7106 rm -rf conftest*
7107 glibcpp_cv_func__finite_use=yes
7108 else
7109 echo "configure: failed program was:" >&5
7110 cat conftest.$ac_ext >&5
7111 rm -rf conftest*
7112 glibcpp_cv_func__finite_use=no
7114 rm -f conftest*
7115 ac_ext=c
7116 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7117 ac_cpp='$CPP $CPPFLAGS'
7118 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7119 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7120 cross_compiling=$ac_cv_prog_cc_cross
7126 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
7128 if test x$glibcpp_cv_func__finite_use = x"yes"; then
7129 for ac_func in _finite
7131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7132 echo "configure:7133: checking for $ac_func" >&5
7133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7134 echo $ac_n "(cached) $ac_c" 1>&6
7135 else
7136 cat > conftest.$ac_ext <<EOF
7137 #line 7138 "configure"
7138 #include "confdefs.h"
7139 /* System header to define __stub macros and hopefully few prototypes,
7140 which can conflict with char $ac_func(); below. */
7141 #include <assert.h>
7142 /* Override any gcc2 internal prototype to avoid an error. */
7143 /* We use char because int might match the return type of a gcc2
7144 builtin and then its argument prototype would still apply. */
7145 char $ac_func();
7147 int main() {
7149 /* The GNU C library defines this for functions which it implements
7150 to always fail with ENOSYS. Some functions are actually named
7151 something starting with __ and the normal name is an alias. */
7152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7153 choke me
7154 #else
7155 $ac_func();
7156 #endif
7158 ; return 0; }
7160 if { (eval echo configure:7161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7161 rm -rf conftest*
7162 eval "ac_cv_func_$ac_func=yes"
7163 else
7164 echo "configure: failed program was:" >&5
7165 cat conftest.$ac_ext >&5
7166 rm -rf conftest*
7167 eval "ac_cv_func_$ac_func=no"
7169 rm -f conftest*
7172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7173 echo "$ac_t""yes" 1>&6
7174 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7175 cat >> confdefs.h <<EOF
7176 #define $ac_tr_func 1
7179 else
7180 echo "$ac_t""no" 1>&6
7182 done
7189 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7190 echo "configure:7191: checking for copysign declaration" >&5
7191 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7192 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7193 echo $ac_n "(cached) $ac_c" 1>&6
7194 else
7197 ac_ext=C
7198 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7199 ac_cpp='$CXXCPP $CPPFLAGS'
7200 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7201 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7202 cross_compiling=$ac_cv_prog_cxx_cross
7204 cat > conftest.$ac_ext <<EOF
7205 #line 7206 "configure"
7206 #include "confdefs.h"
7207 #include <math.h>
7208 int main() {
7209 copysign(0, 0);
7210 ; return 0; }
7212 if { (eval echo configure:7213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7213 rm -rf conftest*
7214 glibcpp_cv_func_copysign_use=yes
7215 else
7216 echo "configure: failed program was:" >&5
7217 cat conftest.$ac_ext >&5
7218 rm -rf conftest*
7219 glibcpp_cv_func_copysign_use=no
7221 rm -f conftest*
7222 ac_ext=c
7223 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7224 ac_cpp='$CPP $CPPFLAGS'
7225 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7226 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7227 cross_compiling=$ac_cv_prog_cc_cross
7233 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7235 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7236 for ac_func in copysign
7238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7239 echo "configure:7240: checking for $ac_func" >&5
7240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7241 echo $ac_n "(cached) $ac_c" 1>&6
7242 else
7243 cat > conftest.$ac_ext <<EOF
7244 #line 7245 "configure"
7245 #include "confdefs.h"
7246 /* System header to define __stub macros and hopefully few prototypes,
7247 which can conflict with char $ac_func(); below. */
7248 #include <assert.h>
7249 /* Override any gcc2 internal prototype to avoid an error. */
7250 /* We use char because int might match the return type of a gcc2
7251 builtin and then its argument prototype would still apply. */
7252 char $ac_func();
7254 int main() {
7256 /* The GNU C library defines this for functions which it implements
7257 to always fail with ENOSYS. Some functions are actually named
7258 something starting with __ and the normal name is an alias. */
7259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7260 choke me
7261 #else
7262 $ac_func();
7263 #endif
7265 ; return 0; }
7267 if { (eval echo configure:7268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7268 rm -rf conftest*
7269 eval "ac_cv_func_$ac_func=yes"
7270 else
7271 echo "configure: failed program was:" >&5
7272 cat conftest.$ac_ext >&5
7273 rm -rf conftest*
7274 eval "ac_cv_func_$ac_func=no"
7276 rm -f conftest*
7279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7280 echo "$ac_t""yes" 1>&6
7281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7282 cat >> confdefs.h <<EOF
7283 #define $ac_tr_func 1
7286 else
7287 echo "$ac_t""no" 1>&6
7289 done
7291 else
7293 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7294 echo "configure:7295: checking for _copysign declaration" >&5
7295 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7296 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7297 echo $ac_n "(cached) $ac_c" 1>&6
7298 else
7301 ac_ext=C
7302 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7303 ac_cpp='$CXXCPP $CPPFLAGS'
7304 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7305 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7306 cross_compiling=$ac_cv_prog_cxx_cross
7308 cat > conftest.$ac_ext <<EOF
7309 #line 7310 "configure"
7310 #include "confdefs.h"
7311 #include <math.h>
7312 int main() {
7313 _copysign(0, 0);
7314 ; return 0; }
7316 if { (eval echo configure:7317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7317 rm -rf conftest*
7318 glibcpp_cv_func__copysign_use=yes
7319 else
7320 echo "configure: failed program was:" >&5
7321 cat conftest.$ac_ext >&5
7322 rm -rf conftest*
7323 glibcpp_cv_func__copysign_use=no
7325 rm -f conftest*
7326 ac_ext=c
7327 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7328 ac_cpp='$CPP $CPPFLAGS'
7329 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7330 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7331 cross_compiling=$ac_cv_prog_cc_cross
7337 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7339 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7340 for ac_func in _copysign
7342 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7343 echo "configure:7344: checking for $ac_func" >&5
7344 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7345 echo $ac_n "(cached) $ac_c" 1>&6
7346 else
7347 cat > conftest.$ac_ext <<EOF
7348 #line 7349 "configure"
7349 #include "confdefs.h"
7350 /* System header to define __stub macros and hopefully few prototypes,
7351 which can conflict with char $ac_func(); below. */
7352 #include <assert.h>
7353 /* Override any gcc2 internal prototype to avoid an error. */
7354 /* We use char because int might match the return type of a gcc2
7355 builtin and then its argument prototype would still apply. */
7356 char $ac_func();
7358 int main() {
7360 /* The GNU C library defines this for functions which it implements
7361 to always fail with ENOSYS. Some functions are actually named
7362 something starting with __ and the normal name is an alias. */
7363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7364 choke me
7365 #else
7366 $ac_func();
7367 #endif
7369 ; return 0; }
7371 if { (eval echo configure:7372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7372 rm -rf conftest*
7373 eval "ac_cv_func_$ac_func=yes"
7374 else
7375 echo "configure: failed program was:" >&5
7376 cat conftest.$ac_ext >&5
7377 rm -rf conftest*
7378 eval "ac_cv_func_$ac_func=no"
7380 rm -f conftest*
7383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7384 echo "$ac_t""yes" 1>&6
7385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7386 cat >> confdefs.h <<EOF
7387 #define $ac_tr_func 1
7390 else
7391 echo "$ac_t""no" 1>&6
7393 done
7400 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7401 echo "configure:7402: checking for sincos declaration" >&5
7402 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7403 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7404 echo $ac_n "(cached) $ac_c" 1>&6
7405 else
7408 ac_ext=C
7409 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7410 ac_cpp='$CXXCPP $CPPFLAGS'
7411 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7412 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7413 cross_compiling=$ac_cv_prog_cxx_cross
7415 cat > conftest.$ac_ext <<EOF
7416 #line 7417 "configure"
7417 #include "confdefs.h"
7418 #include <math.h>
7419 int main() {
7420 sincos(0, 0, 0);
7421 ; return 0; }
7423 if { (eval echo configure:7424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7424 rm -rf conftest*
7425 glibcpp_cv_func_sincos_use=yes
7426 else
7427 echo "configure: failed program was:" >&5
7428 cat conftest.$ac_ext >&5
7429 rm -rf conftest*
7430 glibcpp_cv_func_sincos_use=no
7432 rm -f conftest*
7433 ac_ext=c
7434 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7435 ac_cpp='$CPP $CPPFLAGS'
7436 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7437 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7438 cross_compiling=$ac_cv_prog_cc_cross
7444 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7446 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7447 for ac_func in sincos
7449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7450 echo "configure:7451: checking for $ac_func" >&5
7451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7452 echo $ac_n "(cached) $ac_c" 1>&6
7453 else
7454 cat > conftest.$ac_ext <<EOF
7455 #line 7456 "configure"
7456 #include "confdefs.h"
7457 /* System header to define __stub macros and hopefully few prototypes,
7458 which can conflict with char $ac_func(); below. */
7459 #include <assert.h>
7460 /* Override any gcc2 internal prototype to avoid an error. */
7461 /* We use char because int might match the return type of a gcc2
7462 builtin and then its argument prototype would still apply. */
7463 char $ac_func();
7465 int main() {
7467 /* The GNU C library defines this for functions which it implements
7468 to always fail with ENOSYS. Some functions are actually named
7469 something starting with __ and the normal name is an alias. */
7470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7471 choke me
7472 #else
7473 $ac_func();
7474 #endif
7476 ; return 0; }
7478 if { (eval echo configure:7479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7479 rm -rf conftest*
7480 eval "ac_cv_func_$ac_func=yes"
7481 else
7482 echo "configure: failed program was:" >&5
7483 cat conftest.$ac_ext >&5
7484 rm -rf conftest*
7485 eval "ac_cv_func_$ac_func=no"
7487 rm -f conftest*
7490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7491 echo "$ac_t""yes" 1>&6
7492 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7493 cat >> confdefs.h <<EOF
7494 #define $ac_tr_func 1
7497 else
7498 echo "$ac_t""no" 1>&6
7500 done
7502 else
7504 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7505 echo "configure:7506: checking for _sincos declaration" >&5
7506 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7507 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7508 echo $ac_n "(cached) $ac_c" 1>&6
7509 else
7512 ac_ext=C
7513 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7514 ac_cpp='$CXXCPP $CPPFLAGS'
7515 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7516 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7517 cross_compiling=$ac_cv_prog_cxx_cross
7519 cat > conftest.$ac_ext <<EOF
7520 #line 7521 "configure"
7521 #include "confdefs.h"
7522 #include <math.h>
7523 int main() {
7524 _sincos(0, 0, 0);
7525 ; return 0; }
7527 if { (eval echo configure:7528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7528 rm -rf conftest*
7529 glibcpp_cv_func__sincos_use=yes
7530 else
7531 echo "configure: failed program was:" >&5
7532 cat conftest.$ac_ext >&5
7533 rm -rf conftest*
7534 glibcpp_cv_func__sincos_use=no
7536 rm -f conftest*
7537 ac_ext=c
7538 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7539 ac_cpp='$CPP $CPPFLAGS'
7540 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7541 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7542 cross_compiling=$ac_cv_prog_cc_cross
7548 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7550 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7551 for ac_func in _sincos
7553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7554 echo "configure:7555: checking for $ac_func" >&5
7555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7556 echo $ac_n "(cached) $ac_c" 1>&6
7557 else
7558 cat > conftest.$ac_ext <<EOF
7559 #line 7560 "configure"
7560 #include "confdefs.h"
7561 /* System header to define __stub macros and hopefully few prototypes,
7562 which can conflict with char $ac_func(); below. */
7563 #include <assert.h>
7564 /* Override any gcc2 internal prototype to avoid an error. */
7565 /* We use char because int might match the return type of a gcc2
7566 builtin and then its argument prototype would still apply. */
7567 char $ac_func();
7569 int main() {
7571 /* The GNU C library defines this for functions which it implements
7572 to always fail with ENOSYS. Some functions are actually named
7573 something starting with __ and the normal name is an alias. */
7574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7575 choke me
7576 #else
7577 $ac_func();
7578 #endif
7580 ; return 0; }
7582 if { (eval echo configure:7583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7583 rm -rf conftest*
7584 eval "ac_cv_func_$ac_func=yes"
7585 else
7586 echo "configure: failed program was:" >&5
7587 cat conftest.$ac_ext >&5
7588 rm -rf conftest*
7589 eval "ac_cv_func_$ac_func=no"
7591 rm -f conftest*
7594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7595 echo "$ac_t""yes" 1>&6
7596 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7597 cat >> confdefs.h <<EOF
7598 #define $ac_tr_func 1
7601 else
7602 echo "$ac_t""no" 1>&6
7604 done
7611 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7612 echo "configure:7613: checking for fpclass declaration" >&5
7613 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7614 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7615 echo $ac_n "(cached) $ac_c" 1>&6
7616 else
7619 ac_ext=C
7620 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7621 ac_cpp='$CXXCPP $CPPFLAGS'
7622 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7623 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7624 cross_compiling=$ac_cv_prog_cxx_cross
7626 cat > conftest.$ac_ext <<EOF
7627 #line 7628 "configure"
7628 #include "confdefs.h"
7629 #include <math.h>
7630 #ifdef HAVE_IEEEFP_H
7631 #include <ieeefp.h>
7632 #endif
7634 int main() {
7635 fpclass(0);
7636 ; return 0; }
7638 if { (eval echo configure:7639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7639 rm -rf conftest*
7640 glibcpp_cv_func_fpclass_use=yes
7641 else
7642 echo "configure: failed program was:" >&5
7643 cat conftest.$ac_ext >&5
7644 rm -rf conftest*
7645 glibcpp_cv_func_fpclass_use=no
7647 rm -f conftest*
7648 ac_ext=c
7649 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7650 ac_cpp='$CPP $CPPFLAGS'
7651 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7652 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7653 cross_compiling=$ac_cv_prog_cc_cross
7659 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7661 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7662 for ac_func in fpclass
7664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7665 echo "configure:7666: checking for $ac_func" >&5
7666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7667 echo $ac_n "(cached) $ac_c" 1>&6
7668 else
7669 cat > conftest.$ac_ext <<EOF
7670 #line 7671 "configure"
7671 #include "confdefs.h"
7672 /* System header to define __stub macros and hopefully few prototypes,
7673 which can conflict with char $ac_func(); below. */
7674 #include <assert.h>
7675 /* Override any gcc2 internal prototype to avoid an error. */
7676 /* We use char because int might match the return type of a gcc2
7677 builtin and then its argument prototype would still apply. */
7678 char $ac_func();
7680 int main() {
7682 /* The GNU C library defines this for functions which it implements
7683 to always fail with ENOSYS. Some functions are actually named
7684 something starting with __ and the normal name is an alias. */
7685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7686 choke me
7687 #else
7688 $ac_func();
7689 #endif
7691 ; return 0; }
7693 if { (eval echo configure:7694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7694 rm -rf conftest*
7695 eval "ac_cv_func_$ac_func=yes"
7696 else
7697 echo "configure: failed program was:" >&5
7698 cat conftest.$ac_ext >&5
7699 rm -rf conftest*
7700 eval "ac_cv_func_$ac_func=no"
7702 rm -f conftest*
7705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7706 echo "$ac_t""yes" 1>&6
7707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7708 cat >> confdefs.h <<EOF
7709 #define $ac_tr_func 1
7712 else
7713 echo "$ac_t""no" 1>&6
7715 done
7717 else
7719 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7720 echo "configure:7721: checking for _fpclass declaration" >&5
7721 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7722 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7723 echo $ac_n "(cached) $ac_c" 1>&6
7724 else
7727 ac_ext=C
7728 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7729 ac_cpp='$CXXCPP $CPPFLAGS'
7730 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7731 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7732 cross_compiling=$ac_cv_prog_cxx_cross
7734 cat > conftest.$ac_ext <<EOF
7735 #line 7736 "configure"
7736 #include "confdefs.h"
7737 #include <math.h>
7738 #ifdef HAVE_IEEEFP_H
7739 #include <ieeefp.h>
7740 #endif
7742 int main() {
7743 _fpclass(0);
7744 ; return 0; }
7746 if { (eval echo configure:7747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7747 rm -rf conftest*
7748 glibcpp_cv_func__fpclass_use=yes
7749 else
7750 echo "configure: failed program was:" >&5
7751 cat conftest.$ac_ext >&5
7752 rm -rf conftest*
7753 glibcpp_cv_func__fpclass_use=no
7755 rm -f conftest*
7756 ac_ext=c
7757 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7760 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7761 cross_compiling=$ac_cv_prog_cc_cross
7767 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7769 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7770 for ac_func in _fpclass
7772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7773 echo "configure:7774: checking for $ac_func" >&5
7774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7775 echo $ac_n "(cached) $ac_c" 1>&6
7776 else
7777 cat > conftest.$ac_ext <<EOF
7778 #line 7779 "configure"
7779 #include "confdefs.h"
7780 /* System header to define __stub macros and hopefully few prototypes,
7781 which can conflict with char $ac_func(); below. */
7782 #include <assert.h>
7783 /* Override any gcc2 internal prototype to avoid an error. */
7784 /* We use char because int might match the return type of a gcc2
7785 builtin and then its argument prototype would still apply. */
7786 char $ac_func();
7788 int main() {
7790 /* The GNU C library defines this for functions which it implements
7791 to always fail with ENOSYS. Some functions are actually named
7792 something starting with __ and the normal name is an alias. */
7793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7794 choke me
7795 #else
7796 $ac_func();
7797 #endif
7799 ; return 0; }
7801 if { (eval echo configure:7802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7802 rm -rf conftest*
7803 eval "ac_cv_func_$ac_func=yes"
7804 else
7805 echo "configure: failed program was:" >&5
7806 cat conftest.$ac_ext >&5
7807 rm -rf conftest*
7808 eval "ac_cv_func_$ac_func=no"
7810 rm -f conftest*
7813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7814 echo "$ac_t""yes" 1>&6
7815 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7816 cat >> confdefs.h <<EOF
7817 #define $ac_tr_func 1
7820 else
7821 echo "$ac_t""no" 1>&6
7823 done
7830 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7831 echo "configure:7832: checking for qfpclass declaration" >&5
7832 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7833 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7834 echo $ac_n "(cached) $ac_c" 1>&6
7835 else
7838 ac_ext=C
7839 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7840 ac_cpp='$CXXCPP $CPPFLAGS'
7841 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7842 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7843 cross_compiling=$ac_cv_prog_cxx_cross
7845 cat > conftest.$ac_ext <<EOF
7846 #line 7847 "configure"
7847 #include "confdefs.h"
7848 #include <math.h>
7849 #ifdef HAVE_IEEEFP_H
7850 #include <ieeefp.h>
7851 #endif
7853 int main() {
7854 qfpclass(0);
7855 ; return 0; }
7857 if { (eval echo configure:7858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7858 rm -rf conftest*
7859 glibcpp_cv_func_qfpclass_use=yes
7860 else
7861 echo "configure: failed program was:" >&5
7862 cat conftest.$ac_ext >&5
7863 rm -rf conftest*
7864 glibcpp_cv_func_qfpclass_use=no
7866 rm -f conftest*
7867 ac_ext=c
7868 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7869 ac_cpp='$CPP $CPPFLAGS'
7870 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7871 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7872 cross_compiling=$ac_cv_prog_cc_cross
7878 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7880 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7881 for ac_func in qfpclass
7883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7884 echo "configure:7885: checking for $ac_func" >&5
7885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7886 echo $ac_n "(cached) $ac_c" 1>&6
7887 else
7888 cat > conftest.$ac_ext <<EOF
7889 #line 7890 "configure"
7890 #include "confdefs.h"
7891 /* System header to define __stub macros and hopefully few prototypes,
7892 which can conflict with char $ac_func(); below. */
7893 #include <assert.h>
7894 /* Override any gcc2 internal prototype to avoid an error. */
7895 /* We use char because int might match the return type of a gcc2
7896 builtin and then its argument prototype would still apply. */
7897 char $ac_func();
7899 int main() {
7901 /* The GNU C library defines this for functions which it implements
7902 to always fail with ENOSYS. Some functions are actually named
7903 something starting with __ and the normal name is an alias. */
7904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7905 choke me
7906 #else
7907 $ac_func();
7908 #endif
7910 ; return 0; }
7912 if { (eval echo configure:7913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7913 rm -rf conftest*
7914 eval "ac_cv_func_$ac_func=yes"
7915 else
7916 echo "configure: failed program was:" >&5
7917 cat conftest.$ac_ext >&5
7918 rm -rf conftest*
7919 eval "ac_cv_func_$ac_func=no"
7921 rm -f conftest*
7924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7925 echo "$ac_t""yes" 1>&6
7926 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7927 cat >> confdefs.h <<EOF
7928 #define $ac_tr_func 1
7931 else
7932 echo "$ac_t""no" 1>&6
7934 done
7936 else
7938 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7939 echo "configure:7940: checking for _qfpclass declaration" >&5
7940 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7941 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7942 echo $ac_n "(cached) $ac_c" 1>&6
7943 else
7946 ac_ext=C
7947 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7948 ac_cpp='$CXXCPP $CPPFLAGS'
7949 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7950 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7951 cross_compiling=$ac_cv_prog_cxx_cross
7953 cat > conftest.$ac_ext <<EOF
7954 #line 7955 "configure"
7955 #include "confdefs.h"
7956 #include <math.h>
7957 #ifdef HAVE_IEEEFP_H
7958 #include <ieeefp.h>
7959 #endif
7961 int main() {
7962 _qfpclass(0);
7963 ; return 0; }
7965 if { (eval echo configure:7966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7966 rm -rf conftest*
7967 glibcpp_cv_func__qfpclass_use=yes
7968 else
7969 echo "configure: failed program was:" >&5
7970 cat conftest.$ac_ext >&5
7971 rm -rf conftest*
7972 glibcpp_cv_func__qfpclass_use=no
7974 rm -f conftest*
7975 ac_ext=c
7976 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7977 ac_cpp='$CPP $CPPFLAGS'
7978 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7979 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7980 cross_compiling=$ac_cv_prog_cc_cross
7986 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7988 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7989 for ac_func in _qfpclass
7991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7992 echo "configure:7993: checking for $ac_func" >&5
7993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7994 echo $ac_n "(cached) $ac_c" 1>&6
7995 else
7996 cat > conftest.$ac_ext <<EOF
7997 #line 7998 "configure"
7998 #include "confdefs.h"
7999 /* System header to define __stub macros and hopefully few prototypes,
8000 which can conflict with char $ac_func(); below. */
8001 #include <assert.h>
8002 /* Override any gcc2 internal prototype to avoid an error. */
8003 /* We use char because int might match the return type of a gcc2
8004 builtin and then its argument prototype would still apply. */
8005 char $ac_func();
8007 int main() {
8009 /* The GNU C library defines this for functions which it implements
8010 to always fail with ENOSYS. Some functions are actually named
8011 something starting with __ and the normal name is an alias. */
8012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8013 choke me
8014 #else
8015 $ac_func();
8016 #endif
8018 ; return 0; }
8020 if { (eval echo configure:8021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8021 rm -rf conftest*
8022 eval "ac_cv_func_$ac_func=yes"
8023 else
8024 echo "configure: failed program was:" >&5
8025 cat conftest.$ac_ext >&5
8026 rm -rf conftest*
8027 eval "ac_cv_func_$ac_func=no"
8029 rm -f conftest*
8032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8033 echo "$ac_t""yes" 1>&6
8034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8035 cat >> confdefs.h <<EOF
8036 #define $ac_tr_func 1
8039 else
8040 echo "$ac_t""no" 1>&6
8042 done
8049 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
8050 echo "configure:8051: checking for float trig functions" >&5
8051 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
8052 echo $ac_n "(cached) $ac_c" 1>&6
8053 else
8056 ac_ext=C
8057 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8058 ac_cpp='$CXXCPP $CPPFLAGS'
8059 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8060 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8061 cross_compiling=$ac_cv_prog_cxx_cross
8063 cat > conftest.$ac_ext <<EOF
8064 #line 8065 "configure"
8065 #include "confdefs.h"
8066 #include <math.h>
8067 int main() {
8068 `for x in acosf asinf atanf \
8069 cosf sinf tanf \
8070 coshf sinhf tanhf; do echo "$x (0);"; done`
8071 ; return 0; }
8073 if { (eval echo configure:8074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8074 rm -rf conftest*
8075 glibcpp_cv_func_float_trig_use=yes
8076 else
8077 echo "configure: failed program was:" >&5
8078 cat conftest.$ac_ext >&5
8079 rm -rf conftest*
8080 glibcpp_cv_func_float_trig_use=no
8082 rm -f conftest*
8083 ac_ext=c
8084 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8085 ac_cpp='$CPP $CPPFLAGS'
8086 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8087 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8088 cross_compiling=$ac_cv_prog_cc_cross
8092 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
8093 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
8094 for ac_func in acosf asinf atanf \
8095 cosf sinf tanf \
8096 coshf sinhf tanhf
8098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8099 echo "configure:8100: checking for $ac_func" >&5
8100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8101 echo $ac_n "(cached) $ac_c" 1>&6
8102 else
8103 cat > conftest.$ac_ext <<EOF
8104 #line 8105 "configure"
8105 #include "confdefs.h"
8106 /* System header to define __stub macros and hopefully few prototypes,
8107 which can conflict with char $ac_func(); below. */
8108 #include <assert.h>
8109 /* Override any gcc2 internal prototype to avoid an error. */
8110 /* We use char because int might match the return type of a gcc2
8111 builtin and then its argument prototype would still apply. */
8112 char $ac_func();
8114 int main() {
8116 /* The GNU C library defines this for functions which it implements
8117 to always fail with ENOSYS. Some functions are actually named
8118 something starting with __ and the normal name is an alias. */
8119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8120 choke me
8121 #else
8122 $ac_func();
8123 #endif
8125 ; return 0; }
8127 if { (eval echo configure:8128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8128 rm -rf conftest*
8129 eval "ac_cv_func_$ac_func=yes"
8130 else
8131 echo "configure: failed program was:" >&5
8132 cat conftest.$ac_ext >&5
8133 rm -rf conftest*
8134 eval "ac_cv_func_$ac_func=no"
8136 rm -f conftest*
8139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8140 echo "$ac_t""yes" 1>&6
8141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8142 cat >> confdefs.h <<EOF
8143 #define $ac_tr_func 1
8146 else
8147 echo "$ac_t""no" 1>&6
8149 done
8154 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
8155 echo "configure:8156: checking for float round functions" >&5
8156 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
8157 echo $ac_n "(cached) $ac_c" 1>&6
8158 else
8161 ac_ext=C
8162 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8163 ac_cpp='$CXXCPP $CPPFLAGS'
8164 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8165 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8166 cross_compiling=$ac_cv_prog_cxx_cross
8168 cat > conftest.$ac_ext <<EOF
8169 #line 8170 "configure"
8170 #include "confdefs.h"
8171 #include <math.h>
8172 int main() {
8173 `for x in ceilf floorf; do echo "$x (0);"; done`
8174 ; return 0; }
8176 if { (eval echo configure:8177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8177 rm -rf conftest*
8178 glibcpp_cv_func_float_round_use=yes
8179 else
8180 echo "configure: failed program was:" >&5
8181 cat conftest.$ac_ext >&5
8182 rm -rf conftest*
8183 glibcpp_cv_func_float_round_use=no
8185 rm -f conftest*
8186 ac_ext=c
8187 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8188 ac_cpp='$CPP $CPPFLAGS'
8189 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8190 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8191 cross_compiling=$ac_cv_prog_cc_cross
8195 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8196 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8197 for ac_func in ceilf floorf
8199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8200 echo "configure:8201: checking for $ac_func" >&5
8201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
8208 which can conflict with char $ac_func(); below. */
8209 #include <assert.h>
8210 /* Override any gcc2 internal prototype to avoid an error. */
8211 /* We use char because int might match the return type of a gcc2
8212 builtin and then its argument prototype would still apply. */
8213 char $ac_func();
8215 int main() {
8217 /* The GNU C library defines this for functions which it implements
8218 to always fail with ENOSYS. Some functions are actually named
8219 something starting with __ and the normal name is an alias. */
8220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8221 choke me
8222 #else
8223 $ac_func();
8224 #endif
8226 ; return 0; }
8228 if { (eval echo configure:8229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8229 rm -rf conftest*
8230 eval "ac_cv_func_$ac_func=yes"
8231 else
8232 echo "configure: failed program was:" >&5
8233 cat conftest.$ac_ext >&5
8234 rm -rf conftest*
8235 eval "ac_cv_func_$ac_func=no"
8237 rm -f conftest*
8240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8241 echo "$ac_t""yes" 1>&6
8242 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8243 cat >> confdefs.h <<EOF
8244 #define $ac_tr_func 1
8247 else
8248 echo "$ac_t""no" 1>&6
8250 done
8256 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8257 echo "configure:8258: checking for isnanf declaration" >&5
8258 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8259 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
8260 echo $ac_n "(cached) $ac_c" 1>&6
8261 else
8264 ac_ext=C
8265 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8266 ac_cpp='$CXXCPP $CPPFLAGS'
8267 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8268 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8269 cross_compiling=$ac_cv_prog_cxx_cross
8271 cat > conftest.$ac_ext <<EOF
8272 #line 8273 "configure"
8273 #include "confdefs.h"
8274 #include <math.h>
8275 #ifdef HAVE_IEEEFP_H
8276 #include <ieeefp.h>
8277 #endif
8279 int main() {
8280 isnanf(0);
8281 ; return 0; }
8283 if { (eval echo configure:8284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8284 rm -rf conftest*
8285 glibcpp_cv_func_isnanf_use=yes
8286 else
8287 echo "configure: failed program was:" >&5
8288 cat conftest.$ac_ext >&5
8289 rm -rf conftest*
8290 glibcpp_cv_func_isnanf_use=no
8292 rm -f conftest*
8293 ac_ext=c
8294 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8295 ac_cpp='$CPP $CPPFLAGS'
8296 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8297 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8298 cross_compiling=$ac_cv_prog_cc_cross
8304 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8306 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8307 for ac_func in isnanf
8309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8310 echo "configure:8311: checking for $ac_func" >&5
8311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8312 echo $ac_n "(cached) $ac_c" 1>&6
8313 else
8314 cat > conftest.$ac_ext <<EOF
8315 #line 8316 "configure"
8316 #include "confdefs.h"
8317 /* System header to define __stub macros and hopefully few prototypes,
8318 which can conflict with char $ac_func(); below. */
8319 #include <assert.h>
8320 /* Override any gcc2 internal prototype to avoid an error. */
8321 /* We use char because int might match the return type of a gcc2
8322 builtin and then its argument prototype would still apply. */
8323 char $ac_func();
8325 int main() {
8327 /* The GNU C library defines this for functions which it implements
8328 to always fail with ENOSYS. Some functions are actually named
8329 something starting with __ and the normal name is an alias. */
8330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8331 choke me
8332 #else
8333 $ac_func();
8334 #endif
8336 ; return 0; }
8338 if { (eval echo configure:8339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8339 rm -rf conftest*
8340 eval "ac_cv_func_$ac_func=yes"
8341 else
8342 echo "configure: failed program was:" >&5
8343 cat conftest.$ac_ext >&5
8344 rm -rf conftest*
8345 eval "ac_cv_func_$ac_func=no"
8347 rm -f conftest*
8350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8351 echo "$ac_t""yes" 1>&6
8352 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8353 cat >> confdefs.h <<EOF
8354 #define $ac_tr_func 1
8357 else
8358 echo "$ac_t""no" 1>&6
8360 done
8362 else
8364 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8365 echo "configure:8366: checking for _isnanf declaration" >&5
8366 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8367 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8368 echo $ac_n "(cached) $ac_c" 1>&6
8369 else
8372 ac_ext=C
8373 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8374 ac_cpp='$CXXCPP $CPPFLAGS'
8375 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8376 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8377 cross_compiling=$ac_cv_prog_cxx_cross
8379 cat > conftest.$ac_ext <<EOF
8380 #line 8381 "configure"
8381 #include "confdefs.h"
8382 #include <math.h>
8383 #ifdef HAVE_IEEEFP_H
8384 #include <ieeefp.h>
8385 #endif
8387 int main() {
8388 _isnanf(0);
8389 ; return 0; }
8391 if { (eval echo configure:8392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8392 rm -rf conftest*
8393 glibcpp_cv_func__isnanf_use=yes
8394 else
8395 echo "configure: failed program was:" >&5
8396 cat conftest.$ac_ext >&5
8397 rm -rf conftest*
8398 glibcpp_cv_func__isnanf_use=no
8400 rm -f conftest*
8401 ac_ext=c
8402 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8403 ac_cpp='$CPP $CPPFLAGS'
8404 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8405 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8406 cross_compiling=$ac_cv_prog_cc_cross
8412 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8414 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8415 for ac_func in _isnanf
8417 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8418 echo "configure:8419: checking for $ac_func" >&5
8419 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8420 echo $ac_n "(cached) $ac_c" 1>&6
8421 else
8422 cat > conftest.$ac_ext <<EOF
8423 #line 8424 "configure"
8424 #include "confdefs.h"
8425 /* System header to define __stub macros and hopefully few prototypes,
8426 which can conflict with char $ac_func(); below. */
8427 #include <assert.h>
8428 /* Override any gcc2 internal prototype to avoid an error. */
8429 /* We use char because int might match the return type of a gcc2
8430 builtin and then its argument prototype would still apply. */
8431 char $ac_func();
8433 int main() {
8435 /* The GNU C library defines this for functions which it implements
8436 to always fail with ENOSYS. Some functions are actually named
8437 something starting with __ and the normal name is an alias. */
8438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8439 choke me
8440 #else
8441 $ac_func();
8442 #endif
8444 ; return 0; }
8446 if { (eval echo configure:8447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8447 rm -rf conftest*
8448 eval "ac_cv_func_$ac_func=yes"
8449 else
8450 echo "configure: failed program was:" >&5
8451 cat conftest.$ac_ext >&5
8452 rm -rf conftest*
8453 eval "ac_cv_func_$ac_func=no"
8455 rm -f conftest*
8458 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8459 echo "$ac_t""yes" 1>&6
8460 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8461 cat >> confdefs.h <<EOF
8462 #define $ac_tr_func 1
8465 else
8466 echo "$ac_t""no" 1>&6
8468 done
8475 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8476 echo "configure:8477: checking for isinff declaration" >&5
8477 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8478 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8479 echo $ac_n "(cached) $ac_c" 1>&6
8480 else
8483 ac_ext=C
8484 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8485 ac_cpp='$CXXCPP $CPPFLAGS'
8486 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8487 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8488 cross_compiling=$ac_cv_prog_cxx_cross
8490 cat > conftest.$ac_ext <<EOF
8491 #line 8492 "configure"
8492 #include "confdefs.h"
8493 #include <math.h>
8494 #ifdef HAVE_IEEEFP_H
8495 #include <ieeefp.h>
8496 #endif
8498 int main() {
8499 isinff(0);
8500 ; return 0; }
8502 if { (eval echo configure:8503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8503 rm -rf conftest*
8504 glibcpp_cv_func_isinff_use=yes
8505 else
8506 echo "configure: failed program was:" >&5
8507 cat conftest.$ac_ext >&5
8508 rm -rf conftest*
8509 glibcpp_cv_func_isinff_use=no
8511 rm -f conftest*
8512 ac_ext=c
8513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8514 ac_cpp='$CPP $CPPFLAGS'
8515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8517 cross_compiling=$ac_cv_prog_cc_cross
8523 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8525 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8526 for ac_func in isinff
8528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8529 echo "configure:8530: checking for $ac_func" >&5
8530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8531 echo $ac_n "(cached) $ac_c" 1>&6
8532 else
8533 cat > conftest.$ac_ext <<EOF
8534 #line 8535 "configure"
8535 #include "confdefs.h"
8536 /* System header to define __stub macros and hopefully few prototypes,
8537 which can conflict with char $ac_func(); below. */
8538 #include <assert.h>
8539 /* Override any gcc2 internal prototype to avoid an error. */
8540 /* We use char because int might match the return type of a gcc2
8541 builtin and then its argument prototype would still apply. */
8542 char $ac_func();
8544 int main() {
8546 /* The GNU C library defines this for functions which it implements
8547 to always fail with ENOSYS. Some functions are actually named
8548 something starting with __ and the normal name is an alias. */
8549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8550 choke me
8551 #else
8552 $ac_func();
8553 #endif
8555 ; return 0; }
8557 if { (eval echo configure:8558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8558 rm -rf conftest*
8559 eval "ac_cv_func_$ac_func=yes"
8560 else
8561 echo "configure: failed program was:" >&5
8562 cat conftest.$ac_ext >&5
8563 rm -rf conftest*
8564 eval "ac_cv_func_$ac_func=no"
8566 rm -f conftest*
8569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8570 echo "$ac_t""yes" 1>&6
8571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8572 cat >> confdefs.h <<EOF
8573 #define $ac_tr_func 1
8576 else
8577 echo "$ac_t""no" 1>&6
8579 done
8581 else
8583 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8584 echo "configure:8585: checking for _isinff declaration" >&5
8585 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8586 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8587 echo $ac_n "(cached) $ac_c" 1>&6
8588 else
8591 ac_ext=C
8592 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8593 ac_cpp='$CXXCPP $CPPFLAGS'
8594 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8595 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8596 cross_compiling=$ac_cv_prog_cxx_cross
8598 cat > conftest.$ac_ext <<EOF
8599 #line 8600 "configure"
8600 #include "confdefs.h"
8601 #include <math.h>
8602 #ifdef HAVE_IEEEFP_H
8603 #include <ieeefp.h>
8604 #endif
8606 int main() {
8607 _isinff(0);
8608 ; return 0; }
8610 if { (eval echo configure:8611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8611 rm -rf conftest*
8612 glibcpp_cv_func__isinff_use=yes
8613 else
8614 echo "configure: failed program was:" >&5
8615 cat conftest.$ac_ext >&5
8616 rm -rf conftest*
8617 glibcpp_cv_func__isinff_use=no
8619 rm -f conftest*
8620 ac_ext=c
8621 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8622 ac_cpp='$CPP $CPPFLAGS'
8623 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8624 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8625 cross_compiling=$ac_cv_prog_cc_cross
8631 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8633 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8634 for ac_func in _isinff
8636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8637 echo "configure:8638: checking for $ac_func" >&5
8638 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8639 echo $ac_n "(cached) $ac_c" 1>&6
8640 else
8641 cat > conftest.$ac_ext <<EOF
8642 #line 8643 "configure"
8643 #include "confdefs.h"
8644 /* System header to define __stub macros and hopefully few prototypes,
8645 which can conflict with char $ac_func(); below. */
8646 #include <assert.h>
8647 /* Override any gcc2 internal prototype to avoid an error. */
8648 /* We use char because int might match the return type of a gcc2
8649 builtin and then its argument prototype would still apply. */
8650 char $ac_func();
8652 int main() {
8654 /* The GNU C library defines this for functions which it implements
8655 to always fail with ENOSYS. Some functions are actually named
8656 something starting with __ and the normal name is an alias. */
8657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8658 choke me
8659 #else
8660 $ac_func();
8661 #endif
8663 ; return 0; }
8665 if { (eval echo configure:8666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8666 rm -rf conftest*
8667 eval "ac_cv_func_$ac_func=yes"
8668 else
8669 echo "configure: failed program was:" >&5
8670 cat conftest.$ac_ext >&5
8671 rm -rf conftest*
8672 eval "ac_cv_func_$ac_func=no"
8674 rm -f conftest*
8677 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8678 echo "$ac_t""yes" 1>&6
8679 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8680 cat >> confdefs.h <<EOF
8681 #define $ac_tr_func 1
8684 else
8685 echo "$ac_t""no" 1>&6
8687 done
8694 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
8695 echo "configure:8696: checking for fabsf declaration" >&5
8696 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
8697 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
8698 echo $ac_n "(cached) $ac_c" 1>&6
8699 else
8702 ac_ext=C
8703 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8704 ac_cpp='$CXXCPP $CPPFLAGS'
8705 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8706 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8707 cross_compiling=$ac_cv_prog_cxx_cross
8709 cat > conftest.$ac_ext <<EOF
8710 #line 8711 "configure"
8711 #include "confdefs.h"
8712 #include <math.h>
8713 #ifdef HAVE_IEEEFP_H
8714 #include <ieeefp.h>
8715 #endif
8717 int main() {
8718 fabsf(0);
8719 ; return 0; }
8721 if { (eval echo configure:8722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8722 rm -rf conftest*
8723 glibcpp_cv_func_fabsf_use=yes
8724 else
8725 echo "configure: failed program was:" >&5
8726 cat conftest.$ac_ext >&5
8727 rm -rf conftest*
8728 glibcpp_cv_func_fabsf_use=no
8730 rm -f conftest*
8731 ac_ext=c
8732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8733 ac_cpp='$CPP $CPPFLAGS'
8734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8736 cross_compiling=$ac_cv_prog_cc_cross
8742 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
8744 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
8745 for ac_func in fabsf
8747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8748 echo "configure:8749: checking for $ac_func" >&5
8749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8750 echo $ac_n "(cached) $ac_c" 1>&6
8751 else
8752 cat > conftest.$ac_ext <<EOF
8753 #line 8754 "configure"
8754 #include "confdefs.h"
8755 /* System header to define __stub macros and hopefully few prototypes,
8756 which can conflict with char $ac_func(); below. */
8757 #include <assert.h>
8758 /* Override any gcc2 internal prototype to avoid an error. */
8759 /* We use char because int might match the return type of a gcc2
8760 builtin and then its argument prototype would still apply. */
8761 char $ac_func();
8763 int main() {
8765 /* The GNU C library defines this for functions which it implements
8766 to always fail with ENOSYS. Some functions are actually named
8767 something starting with __ and the normal name is an alias. */
8768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8769 choke me
8770 #else
8771 $ac_func();
8772 #endif
8774 ; return 0; }
8776 if { (eval echo configure:8777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8777 rm -rf conftest*
8778 eval "ac_cv_func_$ac_func=yes"
8779 else
8780 echo "configure: failed program was:" >&5
8781 cat conftest.$ac_ext >&5
8782 rm -rf conftest*
8783 eval "ac_cv_func_$ac_func=no"
8785 rm -f conftest*
8788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8789 echo "$ac_t""yes" 1>&6
8790 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8791 cat >> confdefs.h <<EOF
8792 #define $ac_tr_func 1
8795 else
8796 echo "$ac_t""no" 1>&6
8798 done
8800 else
8802 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
8803 echo "configure:8804: checking for _fabsf declaration" >&5
8804 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
8805 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
8806 echo $ac_n "(cached) $ac_c" 1>&6
8807 else
8810 ac_ext=C
8811 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8812 ac_cpp='$CXXCPP $CPPFLAGS'
8813 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8814 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8815 cross_compiling=$ac_cv_prog_cxx_cross
8817 cat > conftest.$ac_ext <<EOF
8818 #line 8819 "configure"
8819 #include "confdefs.h"
8820 #include <math.h>
8821 #ifdef HAVE_IEEEFP_H
8822 #include <ieeefp.h>
8823 #endif
8825 int main() {
8826 _fabsf(0);
8827 ; return 0; }
8829 if { (eval echo configure:8830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8830 rm -rf conftest*
8831 glibcpp_cv_func__fabsf_use=yes
8832 else
8833 echo "configure: failed program was:" >&5
8834 cat conftest.$ac_ext >&5
8835 rm -rf conftest*
8836 glibcpp_cv_func__fabsf_use=no
8838 rm -f conftest*
8839 ac_ext=c
8840 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8841 ac_cpp='$CPP $CPPFLAGS'
8842 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8843 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8844 cross_compiling=$ac_cv_prog_cc_cross
8850 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
8852 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
8853 for ac_func in _fabsf
8855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8856 echo "configure:8857: checking for $ac_func" >&5
8857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8858 echo $ac_n "(cached) $ac_c" 1>&6
8859 else
8860 cat > conftest.$ac_ext <<EOF
8861 #line 8862 "configure"
8862 #include "confdefs.h"
8863 /* System header to define __stub macros and hopefully few prototypes,
8864 which can conflict with char $ac_func(); below. */
8865 #include <assert.h>
8866 /* Override any gcc2 internal prototype to avoid an error. */
8867 /* We use char because int might match the return type of a gcc2
8868 builtin and then its argument prototype would still apply. */
8869 char $ac_func();
8871 int main() {
8873 /* The GNU C library defines this for functions which it implements
8874 to always fail with ENOSYS. Some functions are actually named
8875 something starting with __ and the normal name is an alias. */
8876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8877 choke me
8878 #else
8879 $ac_func();
8880 #endif
8882 ; return 0; }
8884 if { (eval echo configure:8885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8885 rm -rf conftest*
8886 eval "ac_cv_func_$ac_func=yes"
8887 else
8888 echo "configure: failed program was:" >&5
8889 cat conftest.$ac_ext >&5
8890 rm -rf conftest*
8891 eval "ac_cv_func_$ac_func=no"
8893 rm -f conftest*
8896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8897 echo "$ac_t""yes" 1>&6
8898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8899 cat >> confdefs.h <<EOF
8900 #define $ac_tr_func 1
8903 else
8904 echo "$ac_t""no" 1>&6
8906 done
8913 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
8914 echo "configure:8915: checking for fmodf declaration" >&5
8915 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
8916 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
8917 echo $ac_n "(cached) $ac_c" 1>&6
8918 else
8921 ac_ext=C
8922 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8923 ac_cpp='$CXXCPP $CPPFLAGS'
8924 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8925 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8926 cross_compiling=$ac_cv_prog_cxx_cross
8928 cat > conftest.$ac_ext <<EOF
8929 #line 8930 "configure"
8930 #include "confdefs.h"
8931 #include <math.h>
8932 int main() {
8933 fmodf(0, 0);
8934 ; return 0; }
8936 if { (eval echo configure:8937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8937 rm -rf conftest*
8938 glibcpp_cv_func_fmodf_use=yes
8939 else
8940 echo "configure: failed program was:" >&5
8941 cat conftest.$ac_ext >&5
8942 rm -rf conftest*
8943 glibcpp_cv_func_fmodf_use=no
8945 rm -f conftest*
8946 ac_ext=c
8947 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8948 ac_cpp='$CPP $CPPFLAGS'
8949 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8950 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8951 cross_compiling=$ac_cv_prog_cc_cross
8957 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
8959 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
8960 for ac_func in fmodf
8962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8963 echo "configure:8964: checking for $ac_func" >&5
8964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8965 echo $ac_n "(cached) $ac_c" 1>&6
8966 else
8967 cat > conftest.$ac_ext <<EOF
8968 #line 8969 "configure"
8969 #include "confdefs.h"
8970 /* System header to define __stub macros and hopefully few prototypes,
8971 which can conflict with char $ac_func(); below. */
8972 #include <assert.h>
8973 /* Override any gcc2 internal prototype to avoid an error. */
8974 /* We use char because int might match the return type of a gcc2
8975 builtin and then its argument prototype would still apply. */
8976 char $ac_func();
8978 int main() {
8980 /* The GNU C library defines this for functions which it implements
8981 to always fail with ENOSYS. Some functions are actually named
8982 something starting with __ and the normal name is an alias. */
8983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8984 choke me
8985 #else
8986 $ac_func();
8987 #endif
8989 ; return 0; }
8991 if { (eval echo configure:8992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8992 rm -rf conftest*
8993 eval "ac_cv_func_$ac_func=yes"
8994 else
8995 echo "configure: failed program was:" >&5
8996 cat conftest.$ac_ext >&5
8997 rm -rf conftest*
8998 eval "ac_cv_func_$ac_func=no"
9000 rm -f conftest*
9003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9004 echo "$ac_t""yes" 1>&6
9005 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9006 cat >> confdefs.h <<EOF
9007 #define $ac_tr_func 1
9010 else
9011 echo "$ac_t""no" 1>&6
9013 done
9015 else
9017 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
9018 echo "configure:9019: checking for _fmodf declaration" >&5
9019 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
9020 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
9021 echo $ac_n "(cached) $ac_c" 1>&6
9022 else
9025 ac_ext=C
9026 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9027 ac_cpp='$CXXCPP $CPPFLAGS'
9028 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9029 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9030 cross_compiling=$ac_cv_prog_cxx_cross
9032 cat > conftest.$ac_ext <<EOF
9033 #line 9034 "configure"
9034 #include "confdefs.h"
9035 #include <math.h>
9036 int main() {
9037 _fmodf(0, 0);
9038 ; return 0; }
9040 if { (eval echo configure:9041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9041 rm -rf conftest*
9042 glibcpp_cv_func__fmodf_use=yes
9043 else
9044 echo "configure: failed program was:" >&5
9045 cat conftest.$ac_ext >&5
9046 rm -rf conftest*
9047 glibcpp_cv_func__fmodf_use=no
9049 rm -f conftest*
9050 ac_ext=c
9051 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9052 ac_cpp='$CPP $CPPFLAGS'
9053 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9054 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9055 cross_compiling=$ac_cv_prog_cc_cross
9061 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
9063 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
9064 for ac_func in _fmodf
9066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9067 echo "configure:9068: checking for $ac_func" >&5
9068 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9069 echo $ac_n "(cached) $ac_c" 1>&6
9070 else
9071 cat > conftest.$ac_ext <<EOF
9072 #line 9073 "configure"
9073 #include "confdefs.h"
9074 /* System header to define __stub macros and hopefully few prototypes,
9075 which can conflict with char $ac_func(); below. */
9076 #include <assert.h>
9077 /* Override any gcc2 internal prototype to avoid an error. */
9078 /* We use char because int might match the return type of a gcc2
9079 builtin and then its argument prototype would still apply. */
9080 char $ac_func();
9082 int main() {
9084 /* The GNU C library defines this for functions which it implements
9085 to always fail with ENOSYS. Some functions are actually named
9086 something starting with __ and the normal name is an alias. */
9087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9088 choke me
9089 #else
9090 $ac_func();
9091 #endif
9093 ; return 0; }
9095 if { (eval echo configure:9096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9096 rm -rf conftest*
9097 eval "ac_cv_func_$ac_func=yes"
9098 else
9099 echo "configure: failed program was:" >&5
9100 cat conftest.$ac_ext >&5
9101 rm -rf conftest*
9102 eval "ac_cv_func_$ac_func=no"
9104 rm -f conftest*
9107 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9108 echo "$ac_t""yes" 1>&6
9109 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9110 cat >> confdefs.h <<EOF
9111 #define $ac_tr_func 1
9114 else
9115 echo "$ac_t""no" 1>&6
9117 done
9124 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
9125 echo "configure:9126: checking for frexpf declaration" >&5
9126 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
9127 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
9128 echo $ac_n "(cached) $ac_c" 1>&6
9129 else
9132 ac_ext=C
9133 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9134 ac_cpp='$CXXCPP $CPPFLAGS'
9135 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9136 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9137 cross_compiling=$ac_cv_prog_cxx_cross
9139 cat > conftest.$ac_ext <<EOF
9140 #line 9141 "configure"
9141 #include "confdefs.h"
9142 #include <math.h>
9143 int main() {
9144 frexpf(0, 0);
9145 ; return 0; }
9147 if { (eval echo configure:9148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9148 rm -rf conftest*
9149 glibcpp_cv_func_frexpf_use=yes
9150 else
9151 echo "configure: failed program was:" >&5
9152 cat conftest.$ac_ext >&5
9153 rm -rf conftest*
9154 glibcpp_cv_func_frexpf_use=no
9156 rm -f conftest*
9157 ac_ext=c
9158 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9159 ac_cpp='$CPP $CPPFLAGS'
9160 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9161 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9162 cross_compiling=$ac_cv_prog_cc_cross
9168 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
9170 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
9171 for ac_func in frexpf
9173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9174 echo "configure:9175: checking for $ac_func" >&5
9175 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9176 echo $ac_n "(cached) $ac_c" 1>&6
9177 else
9178 cat > conftest.$ac_ext <<EOF
9179 #line 9180 "configure"
9180 #include "confdefs.h"
9181 /* System header to define __stub macros and hopefully few prototypes,
9182 which can conflict with char $ac_func(); below. */
9183 #include <assert.h>
9184 /* Override any gcc2 internal prototype to avoid an error. */
9185 /* We use char because int might match the return type of a gcc2
9186 builtin and then its argument prototype would still apply. */
9187 char $ac_func();
9189 int main() {
9191 /* The GNU C library defines this for functions which it implements
9192 to always fail with ENOSYS. Some functions are actually named
9193 something starting with __ and the normal name is an alias. */
9194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9195 choke me
9196 #else
9197 $ac_func();
9198 #endif
9200 ; return 0; }
9202 if { (eval echo configure:9203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9203 rm -rf conftest*
9204 eval "ac_cv_func_$ac_func=yes"
9205 else
9206 echo "configure: failed program was:" >&5
9207 cat conftest.$ac_ext >&5
9208 rm -rf conftest*
9209 eval "ac_cv_func_$ac_func=no"
9211 rm -f conftest*
9214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9215 echo "$ac_t""yes" 1>&6
9216 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9217 cat >> confdefs.h <<EOF
9218 #define $ac_tr_func 1
9221 else
9222 echo "$ac_t""no" 1>&6
9224 done
9226 else
9228 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9229 echo "configure:9230: checking for _frexpf declaration" >&5
9230 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9231 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9232 echo $ac_n "(cached) $ac_c" 1>&6
9233 else
9236 ac_ext=C
9237 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9238 ac_cpp='$CXXCPP $CPPFLAGS'
9239 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9240 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9241 cross_compiling=$ac_cv_prog_cxx_cross
9243 cat > conftest.$ac_ext <<EOF
9244 #line 9245 "configure"
9245 #include "confdefs.h"
9246 #include <math.h>
9247 int main() {
9248 _frexpf(0, 0);
9249 ; return 0; }
9251 if { (eval echo configure:9252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9252 rm -rf conftest*
9253 glibcpp_cv_func__frexpf_use=yes
9254 else
9255 echo "configure: failed program was:" >&5
9256 cat conftest.$ac_ext >&5
9257 rm -rf conftest*
9258 glibcpp_cv_func__frexpf_use=no
9260 rm -f conftest*
9261 ac_ext=c
9262 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9263 ac_cpp='$CPP $CPPFLAGS'
9264 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9265 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9266 cross_compiling=$ac_cv_prog_cc_cross
9272 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9274 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9275 for ac_func in _frexpf
9277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9278 echo "configure:9279: checking for $ac_func" >&5
9279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9281 else
9282 cat > conftest.$ac_ext <<EOF
9283 #line 9284 "configure"
9284 #include "confdefs.h"
9285 /* System header to define __stub macros and hopefully few prototypes,
9286 which can conflict with char $ac_func(); below. */
9287 #include <assert.h>
9288 /* Override any gcc2 internal prototype to avoid an error. */
9289 /* We use char because int might match the return type of a gcc2
9290 builtin and then its argument prototype would still apply. */
9291 char $ac_func();
9293 int main() {
9295 /* The GNU C library defines this for functions which it implements
9296 to always fail with ENOSYS. Some functions are actually named
9297 something starting with __ and the normal name is an alias. */
9298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9299 choke me
9300 #else
9301 $ac_func();
9302 #endif
9304 ; return 0; }
9306 if { (eval echo configure:9307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9307 rm -rf conftest*
9308 eval "ac_cv_func_$ac_func=yes"
9309 else
9310 echo "configure: failed program was:" >&5
9311 cat conftest.$ac_ext >&5
9312 rm -rf conftest*
9313 eval "ac_cv_func_$ac_func=no"
9315 rm -f conftest*
9318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9319 echo "$ac_t""yes" 1>&6
9320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9321 cat >> confdefs.h <<EOF
9322 #define $ac_tr_func 1
9325 else
9326 echo "$ac_t""no" 1>&6
9328 done
9335 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
9336 echo "configure:9337: checking for ldexpf declaration" >&5
9337 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
9338 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
9339 echo $ac_n "(cached) $ac_c" 1>&6
9340 else
9343 ac_ext=C
9344 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9345 ac_cpp='$CXXCPP $CPPFLAGS'
9346 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9347 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9348 cross_compiling=$ac_cv_prog_cxx_cross
9350 cat > conftest.$ac_ext <<EOF
9351 #line 9352 "configure"
9352 #include "confdefs.h"
9353 #include <math.h>
9354 int main() {
9355 ldexpf(0, 0);
9356 ; return 0; }
9358 if { (eval echo configure:9359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9359 rm -rf conftest*
9360 glibcpp_cv_func_ldexpf_use=yes
9361 else
9362 echo "configure: failed program was:" >&5
9363 cat conftest.$ac_ext >&5
9364 rm -rf conftest*
9365 glibcpp_cv_func_ldexpf_use=no
9367 rm -f conftest*
9368 ac_ext=c
9369 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9370 ac_cpp='$CPP $CPPFLAGS'
9371 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9372 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9373 cross_compiling=$ac_cv_prog_cc_cross
9379 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
9381 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
9382 for ac_func in ldexpf
9384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9385 echo "configure:9386: checking for $ac_func" >&5
9386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9387 echo $ac_n "(cached) $ac_c" 1>&6
9388 else
9389 cat > conftest.$ac_ext <<EOF
9390 #line 9391 "configure"
9391 #include "confdefs.h"
9392 /* System header to define __stub macros and hopefully few prototypes,
9393 which can conflict with char $ac_func(); below. */
9394 #include <assert.h>
9395 /* Override any gcc2 internal prototype to avoid an error. */
9396 /* We use char because int might match the return type of a gcc2
9397 builtin and then its argument prototype would still apply. */
9398 char $ac_func();
9400 int main() {
9402 /* The GNU C library defines this for functions which it implements
9403 to always fail with ENOSYS. Some functions are actually named
9404 something starting with __ and the normal name is an alias. */
9405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9406 choke me
9407 #else
9408 $ac_func();
9409 #endif
9411 ; return 0; }
9413 if { (eval echo configure:9414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9414 rm -rf conftest*
9415 eval "ac_cv_func_$ac_func=yes"
9416 else
9417 echo "configure: failed program was:" >&5
9418 cat conftest.$ac_ext >&5
9419 rm -rf conftest*
9420 eval "ac_cv_func_$ac_func=no"
9422 rm -f conftest*
9425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9426 echo "$ac_t""yes" 1>&6
9427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9428 cat >> confdefs.h <<EOF
9429 #define $ac_tr_func 1
9432 else
9433 echo "$ac_t""no" 1>&6
9435 done
9437 else
9439 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
9440 echo "configure:9441: checking for _ldexpf declaration" >&5
9441 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
9442 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
9443 echo $ac_n "(cached) $ac_c" 1>&6
9444 else
9447 ac_ext=C
9448 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9449 ac_cpp='$CXXCPP $CPPFLAGS'
9450 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9451 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9452 cross_compiling=$ac_cv_prog_cxx_cross
9454 cat > conftest.$ac_ext <<EOF
9455 #line 9456 "configure"
9456 #include "confdefs.h"
9457 #include <math.h>
9458 int main() {
9459 _ldexpf(0, 0);
9460 ; return 0; }
9462 if { (eval echo configure:9463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9463 rm -rf conftest*
9464 glibcpp_cv_func__ldexpf_use=yes
9465 else
9466 echo "configure: failed program was:" >&5
9467 cat conftest.$ac_ext >&5
9468 rm -rf conftest*
9469 glibcpp_cv_func__ldexpf_use=no
9471 rm -f conftest*
9472 ac_ext=c
9473 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9474 ac_cpp='$CPP $CPPFLAGS'
9475 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9476 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9477 cross_compiling=$ac_cv_prog_cc_cross
9483 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
9485 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
9486 for ac_func in _ldexpf
9488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9489 echo "configure:9490: checking for $ac_func" >&5
9490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9491 echo $ac_n "(cached) $ac_c" 1>&6
9492 else
9493 cat > conftest.$ac_ext <<EOF
9494 #line 9495 "configure"
9495 #include "confdefs.h"
9496 /* System header to define __stub macros and hopefully few prototypes,
9497 which can conflict with char $ac_func(); below. */
9498 #include <assert.h>
9499 /* Override any gcc2 internal prototype to avoid an error. */
9500 /* We use char because int might match the return type of a gcc2
9501 builtin and then its argument prototype would still apply. */
9502 char $ac_func();
9504 int main() {
9506 /* The GNU C library defines this for functions which it implements
9507 to always fail with ENOSYS. Some functions are actually named
9508 something starting with __ and the normal name is an alias. */
9509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9510 choke me
9511 #else
9512 $ac_func();
9513 #endif
9515 ; return 0; }
9517 if { (eval echo configure:9518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9518 rm -rf conftest*
9519 eval "ac_cv_func_$ac_func=yes"
9520 else
9521 echo "configure: failed program was:" >&5
9522 cat conftest.$ac_ext >&5
9523 rm -rf conftest*
9524 eval "ac_cv_func_$ac_func=no"
9526 rm -f conftest*
9529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9530 echo "$ac_t""yes" 1>&6
9531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9532 cat >> confdefs.h <<EOF
9533 #define $ac_tr_func 1
9536 else
9537 echo "$ac_t""no" 1>&6
9539 done
9546 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
9547 echo "configure:9548: checking for logf declaration" >&5
9548 if test x${glibcpp_cv_func_logf_use+set} != xset; then
9549 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
9550 echo $ac_n "(cached) $ac_c" 1>&6
9551 else
9554 ac_ext=C
9555 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9556 ac_cpp='$CXXCPP $CPPFLAGS'
9557 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9558 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9559 cross_compiling=$ac_cv_prog_cxx_cross
9561 cat > conftest.$ac_ext <<EOF
9562 #line 9563 "configure"
9563 #include "confdefs.h"
9564 #include <math.h>
9565 #ifdef HAVE_IEEEFP_H
9566 #include <ieeefp.h>
9567 #endif
9569 int main() {
9570 logf(0);
9571 ; return 0; }
9573 if { (eval echo configure:9574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9574 rm -rf conftest*
9575 glibcpp_cv_func_logf_use=yes
9576 else
9577 echo "configure: failed program was:" >&5
9578 cat conftest.$ac_ext >&5
9579 rm -rf conftest*
9580 glibcpp_cv_func_logf_use=no
9582 rm -f conftest*
9583 ac_ext=c
9584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9585 ac_cpp='$CPP $CPPFLAGS'
9586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9588 cross_compiling=$ac_cv_prog_cc_cross
9594 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
9596 if test x$glibcpp_cv_func_logf_use = x"yes"; then
9597 for ac_func in logf
9599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9600 echo "configure:9601: checking for $ac_func" >&5
9601 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9602 echo $ac_n "(cached) $ac_c" 1>&6
9603 else
9604 cat > conftest.$ac_ext <<EOF
9605 #line 9606 "configure"
9606 #include "confdefs.h"
9607 /* System header to define __stub macros and hopefully few prototypes,
9608 which can conflict with char $ac_func(); below. */
9609 #include <assert.h>
9610 /* Override any gcc2 internal prototype to avoid an error. */
9611 /* We use char because int might match the return type of a gcc2
9612 builtin and then its argument prototype would still apply. */
9613 char $ac_func();
9615 int main() {
9617 /* The GNU C library defines this for functions which it implements
9618 to always fail with ENOSYS. Some functions are actually named
9619 something starting with __ and the normal name is an alias. */
9620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9621 choke me
9622 #else
9623 $ac_func();
9624 #endif
9626 ; return 0; }
9628 if { (eval echo configure:9629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9629 rm -rf conftest*
9630 eval "ac_cv_func_$ac_func=yes"
9631 else
9632 echo "configure: failed program was:" >&5
9633 cat conftest.$ac_ext >&5
9634 rm -rf conftest*
9635 eval "ac_cv_func_$ac_func=no"
9637 rm -f conftest*
9640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9641 echo "$ac_t""yes" 1>&6
9642 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9643 cat >> confdefs.h <<EOF
9644 #define $ac_tr_func 1
9647 else
9648 echo "$ac_t""no" 1>&6
9650 done
9652 else
9654 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
9655 echo "configure:9656: checking for _logf declaration" >&5
9656 if test x${glibcpp_cv_func__logf_use+set} != xset; then
9657 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
9658 echo $ac_n "(cached) $ac_c" 1>&6
9659 else
9662 ac_ext=C
9663 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9664 ac_cpp='$CXXCPP $CPPFLAGS'
9665 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9666 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9667 cross_compiling=$ac_cv_prog_cxx_cross
9669 cat > conftest.$ac_ext <<EOF
9670 #line 9671 "configure"
9671 #include "confdefs.h"
9672 #include <math.h>
9673 #ifdef HAVE_IEEEFP_H
9674 #include <ieeefp.h>
9675 #endif
9677 int main() {
9678 _logf(0);
9679 ; return 0; }
9681 if { (eval echo configure:9682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9682 rm -rf conftest*
9683 glibcpp_cv_func__logf_use=yes
9684 else
9685 echo "configure: failed program was:" >&5
9686 cat conftest.$ac_ext >&5
9687 rm -rf conftest*
9688 glibcpp_cv_func__logf_use=no
9690 rm -f conftest*
9691 ac_ext=c
9692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9693 ac_cpp='$CPP $CPPFLAGS'
9694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9695 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9696 cross_compiling=$ac_cv_prog_cc_cross
9702 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
9704 if test x$glibcpp_cv_func__logf_use = x"yes"; then
9705 for ac_func in _logf
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 done
9765 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
9766 echo "configure:9767: checking for log10f declaration" >&5
9767 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
9768 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
9769 echo $ac_n "(cached) $ac_c" 1>&6
9770 else
9773 ac_ext=C
9774 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9775 ac_cpp='$CXXCPP $CPPFLAGS'
9776 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9777 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9778 cross_compiling=$ac_cv_prog_cxx_cross
9780 cat > conftest.$ac_ext <<EOF
9781 #line 9782 "configure"
9782 #include "confdefs.h"
9783 #include <math.h>
9784 #ifdef HAVE_IEEEFP_H
9785 #include <ieeefp.h>
9786 #endif
9788 int main() {
9789 log10f(0);
9790 ; return 0; }
9792 if { (eval echo configure:9793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9793 rm -rf conftest*
9794 glibcpp_cv_func_log10f_use=yes
9795 else
9796 echo "configure: failed program was:" >&5
9797 cat conftest.$ac_ext >&5
9798 rm -rf conftest*
9799 glibcpp_cv_func_log10f_use=no
9801 rm -f conftest*
9802 ac_ext=c
9803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9804 ac_cpp='$CPP $CPPFLAGS'
9805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9807 cross_compiling=$ac_cv_prog_cc_cross
9813 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
9815 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
9816 for ac_func in log10f
9818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9819 echo "configure:9820: checking for $ac_func" >&5
9820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9821 echo $ac_n "(cached) $ac_c" 1>&6
9822 else
9823 cat > conftest.$ac_ext <<EOF
9824 #line 9825 "configure"
9825 #include "confdefs.h"
9826 /* System header to define __stub macros and hopefully few prototypes,
9827 which can conflict with char $ac_func(); below. */
9828 #include <assert.h>
9829 /* Override any gcc2 internal prototype to avoid an error. */
9830 /* We use char because int might match the return type of a gcc2
9831 builtin and then its argument prototype would still apply. */
9832 char $ac_func();
9834 int main() {
9836 /* The GNU C library defines this for functions which it implements
9837 to always fail with ENOSYS. Some functions are actually named
9838 something starting with __ and the normal name is an alias. */
9839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9840 choke me
9841 #else
9842 $ac_func();
9843 #endif
9845 ; return 0; }
9847 if { (eval echo configure:9848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9848 rm -rf conftest*
9849 eval "ac_cv_func_$ac_func=yes"
9850 else
9851 echo "configure: failed program was:" >&5
9852 cat conftest.$ac_ext >&5
9853 rm -rf conftest*
9854 eval "ac_cv_func_$ac_func=no"
9856 rm -f conftest*
9859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9860 echo "$ac_t""yes" 1>&6
9861 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9862 cat >> confdefs.h <<EOF
9863 #define $ac_tr_func 1
9866 else
9867 echo "$ac_t""no" 1>&6
9869 done
9871 else
9873 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
9874 echo "configure:9875: checking for _log10f declaration" >&5
9875 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
9876 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
9877 echo $ac_n "(cached) $ac_c" 1>&6
9878 else
9881 ac_ext=C
9882 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9883 ac_cpp='$CXXCPP $CPPFLAGS'
9884 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9885 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9886 cross_compiling=$ac_cv_prog_cxx_cross
9888 cat > conftest.$ac_ext <<EOF
9889 #line 9890 "configure"
9890 #include "confdefs.h"
9891 #include <math.h>
9892 #ifdef HAVE_IEEEFP_H
9893 #include <ieeefp.h>
9894 #endif
9896 int main() {
9897 _log10f(0);
9898 ; return 0; }
9900 if { (eval echo configure:9901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9901 rm -rf conftest*
9902 glibcpp_cv_func__log10f_use=yes
9903 else
9904 echo "configure: failed program was:" >&5
9905 cat conftest.$ac_ext >&5
9906 rm -rf conftest*
9907 glibcpp_cv_func__log10f_use=no
9909 rm -f conftest*
9910 ac_ext=c
9911 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9912 ac_cpp='$CPP $CPPFLAGS'
9913 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9914 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9915 cross_compiling=$ac_cv_prog_cc_cross
9921 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
9923 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
9924 for ac_func in _log10f
9926 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9927 echo "configure:9928: checking for $ac_func" >&5
9928 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9929 echo $ac_n "(cached) $ac_c" 1>&6
9930 else
9931 cat > conftest.$ac_ext <<EOF
9932 #line 9933 "configure"
9933 #include "confdefs.h"
9934 /* System header to define __stub macros and hopefully few prototypes,
9935 which can conflict with char $ac_func(); below. */
9936 #include <assert.h>
9937 /* Override any gcc2 internal prototype to avoid an error. */
9938 /* We use char because int might match the return type of a gcc2
9939 builtin and then its argument prototype would still apply. */
9940 char $ac_func();
9942 int main() {
9944 /* The GNU C library defines this for functions which it implements
9945 to always fail with ENOSYS. Some functions are actually named
9946 something starting with __ and the normal name is an alias. */
9947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9948 choke me
9949 #else
9950 $ac_func();
9951 #endif
9953 ; return 0; }
9955 if { (eval echo configure:9956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9956 rm -rf conftest*
9957 eval "ac_cv_func_$ac_func=yes"
9958 else
9959 echo "configure: failed program was:" >&5
9960 cat conftest.$ac_ext >&5
9961 rm -rf conftest*
9962 eval "ac_cv_func_$ac_func=no"
9964 rm -f conftest*
9967 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9968 echo "$ac_t""yes" 1>&6
9969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9970 cat >> confdefs.h <<EOF
9971 #define $ac_tr_func 1
9974 else
9975 echo "$ac_t""no" 1>&6
9977 done
9984 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
9985 echo "configure:9986: checking for modff declaration" >&5
9986 if test x${glibcpp_cv_func_modff_use+set} != xset; then
9987 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
9988 echo $ac_n "(cached) $ac_c" 1>&6
9989 else
9992 ac_ext=C
9993 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9994 ac_cpp='$CXXCPP $CPPFLAGS'
9995 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9996 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9997 cross_compiling=$ac_cv_prog_cxx_cross
9999 cat > conftest.$ac_ext <<EOF
10000 #line 10001 "configure"
10001 #include "confdefs.h"
10002 #include <math.h>
10003 int main() {
10004 modff(0, 0);
10005 ; return 0; }
10007 if { (eval echo configure:10008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10008 rm -rf conftest*
10009 glibcpp_cv_func_modff_use=yes
10010 else
10011 echo "configure: failed program was:" >&5
10012 cat conftest.$ac_ext >&5
10013 rm -rf conftest*
10014 glibcpp_cv_func_modff_use=no
10016 rm -f conftest*
10017 ac_ext=c
10018 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10019 ac_cpp='$CPP $CPPFLAGS'
10020 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10021 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10022 cross_compiling=$ac_cv_prog_cc_cross
10028 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
10030 if test x$glibcpp_cv_func_modff_use = x"yes"; then
10031 for ac_func in modff
10033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10034 echo "configure:10035: checking for $ac_func" >&5
10035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10036 echo $ac_n "(cached) $ac_c" 1>&6
10037 else
10038 cat > conftest.$ac_ext <<EOF
10039 #line 10040 "configure"
10040 #include "confdefs.h"
10041 /* System header to define __stub macros and hopefully few prototypes,
10042 which can conflict with char $ac_func(); below. */
10043 #include <assert.h>
10044 /* Override any gcc2 internal prototype to avoid an error. */
10045 /* We use char because int might match the return type of a gcc2
10046 builtin and then its argument prototype would still apply. */
10047 char $ac_func();
10049 int main() {
10051 /* The GNU C library defines this for functions which it implements
10052 to always fail with ENOSYS. Some functions are actually named
10053 something starting with __ and the normal name is an alias. */
10054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10055 choke me
10056 #else
10057 $ac_func();
10058 #endif
10060 ; return 0; }
10062 if { (eval echo configure:10063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10063 rm -rf conftest*
10064 eval "ac_cv_func_$ac_func=yes"
10065 else
10066 echo "configure: failed program was:" >&5
10067 cat conftest.$ac_ext >&5
10068 rm -rf conftest*
10069 eval "ac_cv_func_$ac_func=no"
10071 rm -f conftest*
10074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10075 echo "$ac_t""yes" 1>&6
10076 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10077 cat >> confdefs.h <<EOF
10078 #define $ac_tr_func 1
10081 else
10082 echo "$ac_t""no" 1>&6
10084 done
10086 else
10088 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
10089 echo "configure:10090: checking for _modff declaration" >&5
10090 if test x${glibcpp_cv_func__modff_use+set} != xset; then
10091 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
10092 echo $ac_n "(cached) $ac_c" 1>&6
10093 else
10096 ac_ext=C
10097 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10098 ac_cpp='$CXXCPP $CPPFLAGS'
10099 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10100 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10101 cross_compiling=$ac_cv_prog_cxx_cross
10103 cat > conftest.$ac_ext <<EOF
10104 #line 10105 "configure"
10105 #include "confdefs.h"
10106 #include <math.h>
10107 int main() {
10108 _modff(0, 0);
10109 ; return 0; }
10111 if { (eval echo configure:10112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10112 rm -rf conftest*
10113 glibcpp_cv_func__modff_use=yes
10114 else
10115 echo "configure: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10117 rm -rf conftest*
10118 glibcpp_cv_func__modff_use=no
10120 rm -f conftest*
10121 ac_ext=c
10122 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10123 ac_cpp='$CPP $CPPFLAGS'
10124 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10125 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10126 cross_compiling=$ac_cv_prog_cc_cross
10132 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
10134 if test x$glibcpp_cv_func__modff_use = x"yes"; then
10135 for ac_func in _modff
10137 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10138 echo "configure:10139: checking for $ac_func" >&5
10139 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10140 echo $ac_n "(cached) $ac_c" 1>&6
10141 else
10142 cat > conftest.$ac_ext <<EOF
10143 #line 10144 "configure"
10144 #include "confdefs.h"
10145 /* System header to define __stub macros and hopefully few prototypes,
10146 which can conflict with char $ac_func(); below. */
10147 #include <assert.h>
10148 /* Override any gcc2 internal prototype to avoid an error. */
10149 /* We use char because int might match the return type of a gcc2
10150 builtin and then its argument prototype would still apply. */
10151 char $ac_func();
10153 int main() {
10155 /* The GNU C library defines this for functions which it implements
10156 to always fail with ENOSYS. Some functions are actually named
10157 something starting with __ and the normal name is an alias. */
10158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10159 choke me
10160 #else
10161 $ac_func();
10162 #endif
10164 ; return 0; }
10166 if { (eval echo configure:10167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10167 rm -rf conftest*
10168 eval "ac_cv_func_$ac_func=yes"
10169 else
10170 echo "configure: failed program was:" >&5
10171 cat conftest.$ac_ext >&5
10172 rm -rf conftest*
10173 eval "ac_cv_func_$ac_func=no"
10175 rm -f conftest*
10178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10179 echo "$ac_t""yes" 1>&6
10180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10181 cat >> confdefs.h <<EOF
10182 #define $ac_tr_func 1
10185 else
10186 echo "$ac_t""no" 1>&6
10188 done
10195 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10196 echo "configure:10197: checking for powf declaration" >&5
10197 if test x${glibcpp_cv_func_powf_use+set} != xset; then
10198 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10199 echo $ac_n "(cached) $ac_c" 1>&6
10200 else
10203 ac_ext=C
10204 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10205 ac_cpp='$CXXCPP $CPPFLAGS'
10206 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10207 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10208 cross_compiling=$ac_cv_prog_cxx_cross
10210 cat > conftest.$ac_ext <<EOF
10211 #line 10212 "configure"
10212 #include "confdefs.h"
10213 #include <math.h>
10214 int main() {
10215 powf(0, 0);
10216 ; return 0; }
10218 if { (eval echo configure:10219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10219 rm -rf conftest*
10220 glibcpp_cv_func_powf_use=yes
10221 else
10222 echo "configure: failed program was:" >&5
10223 cat conftest.$ac_ext >&5
10224 rm -rf conftest*
10225 glibcpp_cv_func_powf_use=no
10227 rm -f conftest*
10228 ac_ext=c
10229 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10230 ac_cpp='$CPP $CPPFLAGS'
10231 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10232 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10233 cross_compiling=$ac_cv_prog_cc_cross
10239 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10241 if test x$glibcpp_cv_func_powf_use = x"yes"; then
10242 for ac_func in powf
10244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10245 echo "configure:10246: checking for $ac_func" >&5
10246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10247 echo $ac_n "(cached) $ac_c" 1>&6
10248 else
10249 cat > conftest.$ac_ext <<EOF
10250 #line 10251 "configure"
10251 #include "confdefs.h"
10252 /* System header to define __stub macros and hopefully few prototypes,
10253 which can conflict with char $ac_func(); below. */
10254 #include <assert.h>
10255 /* Override any gcc2 internal prototype to avoid an error. */
10256 /* We use char because int might match the return type of a gcc2
10257 builtin and then its argument prototype would still apply. */
10258 char $ac_func();
10260 int main() {
10262 /* The GNU C library defines this for functions which it implements
10263 to always fail with ENOSYS. Some functions are actually named
10264 something starting with __ and the normal name is an alias. */
10265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10266 choke me
10267 #else
10268 $ac_func();
10269 #endif
10271 ; return 0; }
10273 if { (eval echo configure:10274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10274 rm -rf conftest*
10275 eval "ac_cv_func_$ac_func=yes"
10276 else
10277 echo "configure: failed program was:" >&5
10278 cat conftest.$ac_ext >&5
10279 rm -rf conftest*
10280 eval "ac_cv_func_$ac_func=no"
10282 rm -f conftest*
10285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10286 echo "$ac_t""yes" 1>&6
10287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10288 cat >> confdefs.h <<EOF
10289 #define $ac_tr_func 1
10292 else
10293 echo "$ac_t""no" 1>&6
10295 done
10297 else
10299 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10300 echo "configure:10301: checking for _powf declaration" >&5
10301 if test x${glibcpp_cv_func__powf_use+set} != xset; then
10302 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10303 echo $ac_n "(cached) $ac_c" 1>&6
10304 else
10307 ac_ext=C
10308 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10309 ac_cpp='$CXXCPP $CPPFLAGS'
10310 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10311 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10312 cross_compiling=$ac_cv_prog_cxx_cross
10314 cat > conftest.$ac_ext <<EOF
10315 #line 10316 "configure"
10316 #include "confdefs.h"
10317 #include <math.h>
10318 int main() {
10319 _powf(0, 0);
10320 ; return 0; }
10322 if { (eval echo configure:10323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10323 rm -rf conftest*
10324 glibcpp_cv_func__powf_use=yes
10325 else
10326 echo "configure: failed program was:" >&5
10327 cat conftest.$ac_ext >&5
10328 rm -rf conftest*
10329 glibcpp_cv_func__powf_use=no
10331 rm -f conftest*
10332 ac_ext=c
10333 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10334 ac_cpp='$CPP $CPPFLAGS'
10335 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10336 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10337 cross_compiling=$ac_cv_prog_cc_cross
10343 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
10345 if test x$glibcpp_cv_func__powf_use = x"yes"; then
10346 for ac_func in _powf
10348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10349 echo "configure:10350: checking for $ac_func" >&5
10350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10351 echo $ac_n "(cached) $ac_c" 1>&6
10352 else
10353 cat > conftest.$ac_ext <<EOF
10354 #line 10355 "configure"
10355 #include "confdefs.h"
10356 /* System header to define __stub macros and hopefully few prototypes,
10357 which can conflict with char $ac_func(); below. */
10358 #include <assert.h>
10359 /* Override any gcc2 internal prototype to avoid an error. */
10360 /* We use char because int might match the return type of a gcc2
10361 builtin and then its argument prototype would still apply. */
10362 char $ac_func();
10364 int main() {
10366 /* The GNU C library defines this for functions which it implements
10367 to always fail with ENOSYS. Some functions are actually named
10368 something starting with __ and the normal name is an alias. */
10369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10370 choke me
10371 #else
10372 $ac_func();
10373 #endif
10375 ; return 0; }
10377 if { (eval echo configure:10378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10378 rm -rf conftest*
10379 eval "ac_cv_func_$ac_func=yes"
10380 else
10381 echo "configure: failed program was:" >&5
10382 cat conftest.$ac_ext >&5
10383 rm -rf conftest*
10384 eval "ac_cv_func_$ac_func=no"
10386 rm -f conftest*
10389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10390 echo "$ac_t""yes" 1>&6
10391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10392 cat >> confdefs.h <<EOF
10393 #define $ac_tr_func 1
10396 else
10397 echo "$ac_t""no" 1>&6
10399 done
10406 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
10407 echo "configure:10408: checking for sqrtf declaration" >&5
10408 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
10409 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
10410 echo $ac_n "(cached) $ac_c" 1>&6
10411 else
10414 ac_ext=C
10415 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10416 ac_cpp='$CXXCPP $CPPFLAGS'
10417 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10418 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10419 cross_compiling=$ac_cv_prog_cxx_cross
10421 cat > conftest.$ac_ext <<EOF
10422 #line 10423 "configure"
10423 #include "confdefs.h"
10424 #include <math.h>
10425 #ifdef HAVE_IEEEFP_H
10426 #include <ieeefp.h>
10427 #endif
10429 int main() {
10430 sqrtf(0);
10431 ; return 0; }
10433 if { (eval echo configure:10434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10434 rm -rf conftest*
10435 glibcpp_cv_func_sqrtf_use=yes
10436 else
10437 echo "configure: failed program was:" >&5
10438 cat conftest.$ac_ext >&5
10439 rm -rf conftest*
10440 glibcpp_cv_func_sqrtf_use=no
10442 rm -f conftest*
10443 ac_ext=c
10444 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10445 ac_cpp='$CPP $CPPFLAGS'
10446 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10447 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10448 cross_compiling=$ac_cv_prog_cc_cross
10454 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
10456 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
10457 for ac_func in sqrtf
10459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10460 echo "configure:10461: checking for $ac_func" >&5
10461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10462 echo $ac_n "(cached) $ac_c" 1>&6
10463 else
10464 cat > conftest.$ac_ext <<EOF
10465 #line 10466 "configure"
10466 #include "confdefs.h"
10467 /* System header to define __stub macros and hopefully few prototypes,
10468 which can conflict with char $ac_func(); below. */
10469 #include <assert.h>
10470 /* Override any gcc2 internal prototype to avoid an error. */
10471 /* We use char because int might match the return type of a gcc2
10472 builtin and then its argument prototype would still apply. */
10473 char $ac_func();
10475 int main() {
10477 /* The GNU C library defines this for functions which it implements
10478 to always fail with ENOSYS. Some functions are actually named
10479 something starting with __ and the normal name is an alias. */
10480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10481 choke me
10482 #else
10483 $ac_func();
10484 #endif
10486 ; return 0; }
10488 if { (eval echo configure:10489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10489 rm -rf conftest*
10490 eval "ac_cv_func_$ac_func=yes"
10491 else
10492 echo "configure: failed program was:" >&5
10493 cat conftest.$ac_ext >&5
10494 rm -rf conftest*
10495 eval "ac_cv_func_$ac_func=no"
10497 rm -f conftest*
10500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10501 echo "$ac_t""yes" 1>&6
10502 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10503 cat >> confdefs.h <<EOF
10504 #define $ac_tr_func 1
10507 else
10508 echo "$ac_t""no" 1>&6
10510 done
10512 else
10514 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
10515 echo "configure:10516: checking for _sqrtf declaration" >&5
10516 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
10517 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
10518 echo $ac_n "(cached) $ac_c" 1>&6
10519 else
10522 ac_ext=C
10523 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10524 ac_cpp='$CXXCPP $CPPFLAGS'
10525 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10526 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10527 cross_compiling=$ac_cv_prog_cxx_cross
10529 cat > conftest.$ac_ext <<EOF
10530 #line 10531 "configure"
10531 #include "confdefs.h"
10532 #include <math.h>
10533 #ifdef HAVE_IEEEFP_H
10534 #include <ieeefp.h>
10535 #endif
10537 int main() {
10538 _sqrtf(0);
10539 ; return 0; }
10541 if { (eval echo configure:10542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10542 rm -rf conftest*
10543 glibcpp_cv_func__sqrtf_use=yes
10544 else
10545 echo "configure: failed program was:" >&5
10546 cat conftest.$ac_ext >&5
10547 rm -rf conftest*
10548 glibcpp_cv_func__sqrtf_use=no
10550 rm -f conftest*
10551 ac_ext=c
10552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10553 ac_cpp='$CPP $CPPFLAGS'
10554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10556 cross_compiling=$ac_cv_prog_cc_cross
10562 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
10564 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
10565 for ac_func in _sqrtf
10567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10568 echo "configure:10569: checking for $ac_func" >&5
10569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10570 echo $ac_n "(cached) $ac_c" 1>&6
10571 else
10572 cat > conftest.$ac_ext <<EOF
10573 #line 10574 "configure"
10574 #include "confdefs.h"
10575 /* System header to define __stub macros and hopefully few prototypes,
10576 which can conflict with char $ac_func(); below. */
10577 #include <assert.h>
10578 /* Override any gcc2 internal prototype to avoid an error. */
10579 /* We use char because int might match the return type of a gcc2
10580 builtin and then its argument prototype would still apply. */
10581 char $ac_func();
10583 int main() {
10585 /* The GNU C library defines this for functions which it implements
10586 to always fail with ENOSYS. Some functions are actually named
10587 something starting with __ and the normal name is an alias. */
10588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10589 choke me
10590 #else
10591 $ac_func();
10592 #endif
10594 ; return 0; }
10596 if { (eval echo configure:10597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10597 rm -rf conftest*
10598 eval "ac_cv_func_$ac_func=yes"
10599 else
10600 echo "configure: failed program was:" >&5
10601 cat conftest.$ac_ext >&5
10602 rm -rf conftest*
10603 eval "ac_cv_func_$ac_func=no"
10605 rm -f conftest*
10608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10609 echo "$ac_t""yes" 1>&6
10610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10611 cat >> confdefs.h <<EOF
10612 #define $ac_tr_func 1
10615 else
10616 echo "$ac_t""no" 1>&6
10618 done
10625 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
10626 echo "configure:10627: checking for sincosf declaration" >&5
10627 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
10628 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
10629 echo $ac_n "(cached) $ac_c" 1>&6
10630 else
10633 ac_ext=C
10634 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10635 ac_cpp='$CXXCPP $CPPFLAGS'
10636 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10637 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10638 cross_compiling=$ac_cv_prog_cxx_cross
10640 cat > conftest.$ac_ext <<EOF
10641 #line 10642 "configure"
10642 #include "confdefs.h"
10643 #include <math.h>
10644 int main() {
10645 sincosf(0, 0, 0);
10646 ; return 0; }
10648 if { (eval echo configure:10649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10649 rm -rf conftest*
10650 glibcpp_cv_func_sincosf_use=yes
10651 else
10652 echo "configure: failed program was:" >&5
10653 cat conftest.$ac_ext >&5
10654 rm -rf conftest*
10655 glibcpp_cv_func_sincosf_use=no
10657 rm -f conftest*
10658 ac_ext=c
10659 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10660 ac_cpp='$CPP $CPPFLAGS'
10661 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10662 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10663 cross_compiling=$ac_cv_prog_cc_cross
10669 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
10671 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
10672 for ac_func in sincosf
10674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10675 echo "configure:10676: checking for $ac_func" >&5
10676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10677 echo $ac_n "(cached) $ac_c" 1>&6
10678 else
10679 cat > conftest.$ac_ext <<EOF
10680 #line 10681 "configure"
10681 #include "confdefs.h"
10682 /* System header to define __stub macros and hopefully few prototypes,
10683 which can conflict with char $ac_func(); below. */
10684 #include <assert.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 $ac_func();
10690 int main() {
10692 /* The GNU C library defines this for functions which it implements
10693 to always fail with ENOSYS. Some functions are actually named
10694 something starting with __ and the normal name is an alias. */
10695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10696 choke me
10697 #else
10698 $ac_func();
10699 #endif
10701 ; return 0; }
10703 if { (eval echo configure:10704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10704 rm -rf conftest*
10705 eval "ac_cv_func_$ac_func=yes"
10706 else
10707 echo "configure: failed program was:" >&5
10708 cat conftest.$ac_ext >&5
10709 rm -rf conftest*
10710 eval "ac_cv_func_$ac_func=no"
10712 rm -f conftest*
10715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10716 echo "$ac_t""yes" 1>&6
10717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10718 cat >> confdefs.h <<EOF
10719 #define $ac_tr_func 1
10722 else
10723 echo "$ac_t""no" 1>&6
10725 done
10727 else
10729 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
10730 echo "configure:10731: checking for _sincosf declaration" >&5
10731 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
10732 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
10733 echo $ac_n "(cached) $ac_c" 1>&6
10734 else
10737 ac_ext=C
10738 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10739 ac_cpp='$CXXCPP $CPPFLAGS'
10740 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10741 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10742 cross_compiling=$ac_cv_prog_cxx_cross
10744 cat > conftest.$ac_ext <<EOF
10745 #line 10746 "configure"
10746 #include "confdefs.h"
10747 #include <math.h>
10748 int main() {
10749 _sincosf(0, 0, 0);
10750 ; return 0; }
10752 if { (eval echo configure:10753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10753 rm -rf conftest*
10754 glibcpp_cv_func__sincosf_use=yes
10755 else
10756 echo "configure: failed program was:" >&5
10757 cat conftest.$ac_ext >&5
10758 rm -rf conftest*
10759 glibcpp_cv_func__sincosf_use=no
10761 rm -f conftest*
10762 ac_ext=c
10763 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10764 ac_cpp='$CPP $CPPFLAGS'
10765 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10766 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10767 cross_compiling=$ac_cv_prog_cc_cross
10773 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
10775 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
10776 for ac_func in _sincosf
10778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10779 echo "configure:10780: checking for $ac_func" >&5
10780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10781 echo $ac_n "(cached) $ac_c" 1>&6
10782 else
10783 cat > conftest.$ac_ext <<EOF
10784 #line 10785 "configure"
10785 #include "confdefs.h"
10786 /* System header to define __stub macros and hopefully few prototypes,
10787 which can conflict with char $ac_func(); below. */
10788 #include <assert.h>
10789 /* Override any gcc2 internal prototype to avoid an error. */
10790 /* We use char because int might match the return type of a gcc2
10791 builtin and then its argument prototype would still apply. */
10792 char $ac_func();
10794 int main() {
10796 /* The GNU C library defines this for functions which it implements
10797 to always fail with ENOSYS. Some functions are actually named
10798 something starting with __ and the normal name is an alias. */
10799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10800 choke me
10801 #else
10802 $ac_func();
10803 #endif
10805 ; return 0; }
10807 if { (eval echo configure:10808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10808 rm -rf conftest*
10809 eval "ac_cv_func_$ac_func=yes"
10810 else
10811 echo "configure: failed program was:" >&5
10812 cat conftest.$ac_ext >&5
10813 rm -rf conftest*
10814 eval "ac_cv_func_$ac_func=no"
10816 rm -f conftest*
10819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10820 echo "$ac_t""yes" 1>&6
10821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10822 cat >> confdefs.h <<EOF
10823 #define $ac_tr_func 1
10826 else
10827 echo "$ac_t""no" 1>&6
10829 done
10836 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
10837 echo "configure:10838: checking for finitef declaration" >&5
10838 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
10839 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
10840 echo $ac_n "(cached) $ac_c" 1>&6
10841 else
10844 ac_ext=C
10845 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10846 ac_cpp='$CXXCPP $CPPFLAGS'
10847 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10848 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10849 cross_compiling=$ac_cv_prog_cxx_cross
10851 cat > conftest.$ac_ext <<EOF
10852 #line 10853 "configure"
10853 #include "confdefs.h"
10854 #include <math.h>
10855 #ifdef HAVE_IEEEFP_H
10856 #include <ieeefp.h>
10857 #endif
10859 int main() {
10860 finitef(0);
10861 ; return 0; }
10863 if { (eval echo configure:10864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10864 rm -rf conftest*
10865 glibcpp_cv_func_finitef_use=yes
10866 else
10867 echo "configure: failed program was:" >&5
10868 cat conftest.$ac_ext >&5
10869 rm -rf conftest*
10870 glibcpp_cv_func_finitef_use=no
10872 rm -f conftest*
10873 ac_ext=c
10874 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10875 ac_cpp='$CPP $CPPFLAGS'
10876 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10877 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10878 cross_compiling=$ac_cv_prog_cc_cross
10884 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
10886 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
10887 for ac_func in finitef
10889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10890 echo "configure:10891: checking for $ac_func" >&5
10891 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10892 echo $ac_n "(cached) $ac_c" 1>&6
10893 else
10894 cat > conftest.$ac_ext <<EOF
10895 #line 10896 "configure"
10896 #include "confdefs.h"
10897 /* System header to define __stub macros and hopefully few prototypes,
10898 which can conflict with char $ac_func(); below. */
10899 #include <assert.h>
10900 /* Override any gcc2 internal prototype to avoid an error. */
10901 /* We use char because int might match the return type of a gcc2
10902 builtin and then its argument prototype would still apply. */
10903 char $ac_func();
10905 int main() {
10907 /* The GNU C library defines this for functions which it implements
10908 to always fail with ENOSYS. Some functions are actually named
10909 something starting with __ and the normal name is an alias. */
10910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10911 choke me
10912 #else
10913 $ac_func();
10914 #endif
10916 ; return 0; }
10918 if { (eval echo configure:10919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10919 rm -rf conftest*
10920 eval "ac_cv_func_$ac_func=yes"
10921 else
10922 echo "configure: failed program was:" >&5
10923 cat conftest.$ac_ext >&5
10924 rm -rf conftest*
10925 eval "ac_cv_func_$ac_func=no"
10927 rm -f conftest*
10930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10931 echo "$ac_t""yes" 1>&6
10932 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10933 cat >> confdefs.h <<EOF
10934 #define $ac_tr_func 1
10937 else
10938 echo "$ac_t""no" 1>&6
10940 done
10942 else
10944 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
10945 echo "configure:10946: checking for _finitef declaration" >&5
10946 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
10947 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
10948 echo $ac_n "(cached) $ac_c" 1>&6
10949 else
10952 ac_ext=C
10953 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10954 ac_cpp='$CXXCPP $CPPFLAGS'
10955 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10956 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10957 cross_compiling=$ac_cv_prog_cxx_cross
10959 cat > conftest.$ac_ext <<EOF
10960 #line 10961 "configure"
10961 #include "confdefs.h"
10962 #include <math.h>
10963 #ifdef HAVE_IEEEFP_H
10964 #include <ieeefp.h>
10965 #endif
10967 int main() {
10968 _finitef(0);
10969 ; return 0; }
10971 if { (eval echo configure:10972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10972 rm -rf conftest*
10973 glibcpp_cv_func__finitef_use=yes
10974 else
10975 echo "configure: failed program was:" >&5
10976 cat conftest.$ac_ext >&5
10977 rm -rf conftest*
10978 glibcpp_cv_func__finitef_use=no
10980 rm -f conftest*
10981 ac_ext=c
10982 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10983 ac_cpp='$CPP $CPPFLAGS'
10984 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10985 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10986 cross_compiling=$ac_cv_prog_cc_cross
10992 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
10994 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
10995 for ac_func in _finitef
10997 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10998 echo "configure:10999: checking for $ac_func" >&5
10999 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11000 echo $ac_n "(cached) $ac_c" 1>&6
11001 else
11002 cat > conftest.$ac_ext <<EOF
11003 #line 11004 "configure"
11004 #include "confdefs.h"
11005 /* System header to define __stub macros and hopefully few prototypes,
11006 which can conflict with char $ac_func(); below. */
11007 #include <assert.h>
11008 /* Override any gcc2 internal prototype to avoid an error. */
11009 /* We use char because int might match the return type of a gcc2
11010 builtin and then its argument prototype would still apply. */
11011 char $ac_func();
11013 int main() {
11015 /* The GNU C library defines this for functions which it implements
11016 to always fail with ENOSYS. Some functions are actually named
11017 something starting with __ and the normal name is an alias. */
11018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11019 choke me
11020 #else
11021 $ac_func();
11022 #endif
11024 ; return 0; }
11026 if { (eval echo configure:11027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11027 rm -rf conftest*
11028 eval "ac_cv_func_$ac_func=yes"
11029 else
11030 echo "configure: failed program was:" >&5
11031 cat conftest.$ac_ext >&5
11032 rm -rf conftest*
11033 eval "ac_cv_func_$ac_func=no"
11035 rm -f conftest*
11038 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11039 echo "$ac_t""yes" 1>&6
11040 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11041 cat >> confdefs.h <<EOF
11042 #define $ac_tr_func 1
11045 else
11046 echo "$ac_t""no" 1>&6
11048 done
11055 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
11056 echo "configure:11057: checking for long double trig functions" >&5
11057 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
11058 echo $ac_n "(cached) $ac_c" 1>&6
11059 else
11062 ac_ext=C
11063 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11064 ac_cpp='$CXXCPP $CPPFLAGS'
11065 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11066 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11067 cross_compiling=$ac_cv_prog_cxx_cross
11069 cat > conftest.$ac_ext <<EOF
11070 #line 11071 "configure"
11071 #include "confdefs.h"
11072 #include <math.h>
11073 int main() {
11074 `for x in acosl asinl atanl \
11075 cosl sinl tanl \
11076 coshl sinhl tanhl; do echo "$x (0);"; done`
11077 ; return 0; }
11079 if { (eval echo configure:11080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11080 rm -rf conftest*
11081 glibcpp_cv_func_long_double_trig_use=yes
11082 else
11083 echo "configure: failed program was:" >&5
11084 cat conftest.$ac_ext >&5
11085 rm -rf conftest*
11086 glibcpp_cv_func_long_double_trig_use=no
11088 rm -f conftest*
11089 ac_ext=c
11090 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11091 ac_cpp='$CPP $CPPFLAGS'
11092 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11093 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11094 cross_compiling=$ac_cv_prog_cc_cross
11098 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
11099 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
11100 for ac_func in acosl asinl atanl \
11101 cosl sinl tanl \
11102 coshl sinhl tanhl
11104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11105 echo "configure:11106: checking for $ac_func" >&5
11106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11107 echo $ac_n "(cached) $ac_c" 1>&6
11108 else
11109 cat > conftest.$ac_ext <<EOF
11110 #line 11111 "configure"
11111 #include "confdefs.h"
11112 /* System header to define __stub macros and hopefully few prototypes,
11113 which can conflict with char $ac_func(); below. */
11114 #include <assert.h>
11115 /* Override any gcc2 internal prototype to avoid an error. */
11116 /* We use char because int might match the return type of a gcc2
11117 builtin and then its argument prototype would still apply. */
11118 char $ac_func();
11120 int main() {
11122 /* The GNU C library defines this for functions which it implements
11123 to always fail with ENOSYS. Some functions are actually named
11124 something starting with __ and the normal name is an alias. */
11125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11126 choke me
11127 #else
11128 $ac_func();
11129 #endif
11131 ; return 0; }
11133 if { (eval echo configure:11134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11134 rm -rf conftest*
11135 eval "ac_cv_func_$ac_func=yes"
11136 else
11137 echo "configure: failed program was:" >&5
11138 cat conftest.$ac_ext >&5
11139 rm -rf conftest*
11140 eval "ac_cv_func_$ac_func=no"
11142 rm -f conftest*
11145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11146 echo "$ac_t""yes" 1>&6
11147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11148 cat >> confdefs.h <<EOF
11149 #define $ac_tr_func 1
11152 else
11153 echo "$ac_t""no" 1>&6
11155 done
11160 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
11161 echo "configure:11162: checking for long double round functions" >&5
11162 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
11163 echo $ac_n "(cached) $ac_c" 1>&6
11164 else
11167 ac_ext=C
11168 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11169 ac_cpp='$CXXCPP $CPPFLAGS'
11170 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11171 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11172 cross_compiling=$ac_cv_prog_cxx_cross
11174 cat > conftest.$ac_ext <<EOF
11175 #line 11176 "configure"
11176 #include "confdefs.h"
11177 #include <math.h>
11178 int main() {
11179 `for x in ceill floorl; do echo "$x (0);"; done`
11180 ; return 0; }
11182 if { (eval echo configure:11183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11183 rm -rf conftest*
11184 glibcpp_cv_func_long_double_round_use=yes
11185 else
11186 echo "configure: failed program was:" >&5
11187 cat conftest.$ac_ext >&5
11188 rm -rf conftest*
11189 glibcpp_cv_func_long_double_round_use=no
11191 rm -f conftest*
11192 ac_ext=c
11193 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11194 ac_cpp='$CPP $CPPFLAGS'
11195 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11196 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11197 cross_compiling=$ac_cv_prog_cc_cross
11201 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11202 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11203 for ac_func in ceill floorl
11205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11206 echo "configure:11207: checking for $ac_func" >&5
11207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11208 echo $ac_n "(cached) $ac_c" 1>&6
11209 else
11210 cat > conftest.$ac_ext <<EOF
11211 #line 11212 "configure"
11212 #include "confdefs.h"
11213 /* System header to define __stub macros and hopefully few prototypes,
11214 which can conflict with char $ac_func(); below. */
11215 #include <assert.h>
11216 /* Override any gcc2 internal prototype to avoid an error. */
11217 /* We use char because int might match the return type of a gcc2
11218 builtin and then its argument prototype would still apply. */
11219 char $ac_func();
11221 int main() {
11223 /* The GNU C library defines this for functions which it implements
11224 to always fail with ENOSYS. Some functions are actually named
11225 something starting with __ and the normal name is an alias. */
11226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11227 choke me
11228 #else
11229 $ac_func();
11230 #endif
11232 ; return 0; }
11234 if { (eval echo configure:11235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11235 rm -rf conftest*
11236 eval "ac_cv_func_$ac_func=yes"
11237 else
11238 echo "configure: failed program was:" >&5
11239 cat conftest.$ac_ext >&5
11240 rm -rf conftest*
11241 eval "ac_cv_func_$ac_func=no"
11243 rm -f conftest*
11246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11247 echo "$ac_t""yes" 1>&6
11248 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11249 cat >> confdefs.h <<EOF
11250 #define $ac_tr_func 1
11253 else
11254 echo "$ac_t""no" 1>&6
11256 done
11262 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11263 echo "configure:11264: checking for isnanl declaration" >&5
11264 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11265 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11266 echo $ac_n "(cached) $ac_c" 1>&6
11267 else
11270 ac_ext=C
11271 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11272 ac_cpp='$CXXCPP $CPPFLAGS'
11273 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11274 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11275 cross_compiling=$ac_cv_prog_cxx_cross
11277 cat > conftest.$ac_ext <<EOF
11278 #line 11279 "configure"
11279 #include "confdefs.h"
11280 #include <math.h>
11281 #ifdef HAVE_IEEEFP_H
11282 #include <ieeefp.h>
11283 #endif
11285 int main() {
11286 isnanl(0);
11287 ; return 0; }
11289 if { (eval echo configure:11290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11290 rm -rf conftest*
11291 glibcpp_cv_func_isnanl_use=yes
11292 else
11293 echo "configure: failed program was:" >&5
11294 cat conftest.$ac_ext >&5
11295 rm -rf conftest*
11296 glibcpp_cv_func_isnanl_use=no
11298 rm -f conftest*
11299 ac_ext=c
11300 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11301 ac_cpp='$CPP $CPPFLAGS'
11302 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11303 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11304 cross_compiling=$ac_cv_prog_cc_cross
11310 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11312 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11313 for ac_func in isnanl
11315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11316 echo "configure:11317: checking for $ac_func" >&5
11317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11318 echo $ac_n "(cached) $ac_c" 1>&6
11319 else
11320 cat > conftest.$ac_ext <<EOF
11321 #line 11322 "configure"
11322 #include "confdefs.h"
11323 /* System header to define __stub macros and hopefully few prototypes,
11324 which can conflict with char $ac_func(); below. */
11325 #include <assert.h>
11326 /* Override any gcc2 internal prototype to avoid an error. */
11327 /* We use char because int might match the return type of a gcc2
11328 builtin and then its argument prototype would still apply. */
11329 char $ac_func();
11331 int main() {
11333 /* The GNU C library defines this for functions which it implements
11334 to always fail with ENOSYS. Some functions are actually named
11335 something starting with __ and the normal name is an alias. */
11336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11337 choke me
11338 #else
11339 $ac_func();
11340 #endif
11342 ; return 0; }
11344 if { (eval echo configure:11345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11345 rm -rf conftest*
11346 eval "ac_cv_func_$ac_func=yes"
11347 else
11348 echo "configure: failed program was:" >&5
11349 cat conftest.$ac_ext >&5
11350 rm -rf conftest*
11351 eval "ac_cv_func_$ac_func=no"
11353 rm -f conftest*
11356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11357 echo "$ac_t""yes" 1>&6
11358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11359 cat >> confdefs.h <<EOF
11360 #define $ac_tr_func 1
11363 else
11364 echo "$ac_t""no" 1>&6
11366 done
11368 else
11370 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
11371 echo "configure:11372: checking for _isnanl declaration" >&5
11372 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
11373 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
11374 echo $ac_n "(cached) $ac_c" 1>&6
11375 else
11378 ac_ext=C
11379 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11380 ac_cpp='$CXXCPP $CPPFLAGS'
11381 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11382 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11383 cross_compiling=$ac_cv_prog_cxx_cross
11385 cat > conftest.$ac_ext <<EOF
11386 #line 11387 "configure"
11387 #include "confdefs.h"
11388 #include <math.h>
11389 #ifdef HAVE_IEEEFP_H
11390 #include <ieeefp.h>
11391 #endif
11393 int main() {
11394 _isnanl(0);
11395 ; return 0; }
11397 if { (eval echo configure:11398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11398 rm -rf conftest*
11399 glibcpp_cv_func__isnanl_use=yes
11400 else
11401 echo "configure: failed program was:" >&5
11402 cat conftest.$ac_ext >&5
11403 rm -rf conftest*
11404 glibcpp_cv_func__isnanl_use=no
11406 rm -f conftest*
11407 ac_ext=c
11408 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11409 ac_cpp='$CPP $CPPFLAGS'
11410 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11411 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11412 cross_compiling=$ac_cv_prog_cc_cross
11418 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
11420 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
11421 for ac_func in _isnanl
11423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11424 echo "configure:11425: checking for $ac_func" >&5
11425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11426 echo $ac_n "(cached) $ac_c" 1>&6
11427 else
11428 cat > conftest.$ac_ext <<EOF
11429 #line 11430 "configure"
11430 #include "confdefs.h"
11431 /* System header to define __stub macros and hopefully few prototypes,
11432 which can conflict with char $ac_func(); below. */
11433 #include <assert.h>
11434 /* Override any gcc2 internal prototype to avoid an error. */
11435 /* We use char because int might match the return type of a gcc2
11436 builtin and then its argument prototype would still apply. */
11437 char $ac_func();
11439 int main() {
11441 /* The GNU C library defines this for functions which it implements
11442 to always fail with ENOSYS. Some functions are actually named
11443 something starting with __ and the normal name is an alias. */
11444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11445 choke me
11446 #else
11447 $ac_func();
11448 #endif
11450 ; return 0; }
11452 if { (eval echo configure:11453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11453 rm -rf conftest*
11454 eval "ac_cv_func_$ac_func=yes"
11455 else
11456 echo "configure: failed program was:" >&5
11457 cat conftest.$ac_ext >&5
11458 rm -rf conftest*
11459 eval "ac_cv_func_$ac_func=no"
11461 rm -f conftest*
11464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11465 echo "$ac_t""yes" 1>&6
11466 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11467 cat >> confdefs.h <<EOF
11468 #define $ac_tr_func 1
11471 else
11472 echo "$ac_t""no" 1>&6
11474 done
11481 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
11482 echo "configure:11483: checking for isinfl declaration" >&5
11483 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
11484 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
11485 echo $ac_n "(cached) $ac_c" 1>&6
11486 else
11489 ac_ext=C
11490 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11491 ac_cpp='$CXXCPP $CPPFLAGS'
11492 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11493 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11494 cross_compiling=$ac_cv_prog_cxx_cross
11496 cat > conftest.$ac_ext <<EOF
11497 #line 11498 "configure"
11498 #include "confdefs.h"
11499 #include <math.h>
11500 #ifdef HAVE_IEEEFP_H
11501 #include <ieeefp.h>
11502 #endif
11504 int main() {
11505 isinfl(0);
11506 ; return 0; }
11508 if { (eval echo configure:11509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11509 rm -rf conftest*
11510 glibcpp_cv_func_isinfl_use=yes
11511 else
11512 echo "configure: failed program was:" >&5
11513 cat conftest.$ac_ext >&5
11514 rm -rf conftest*
11515 glibcpp_cv_func_isinfl_use=no
11517 rm -f conftest*
11518 ac_ext=c
11519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11520 ac_cpp='$CPP $CPPFLAGS'
11521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11523 cross_compiling=$ac_cv_prog_cc_cross
11529 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
11531 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
11532 for ac_func in isinfl
11534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11535 echo "configure:11536: checking for $ac_func" >&5
11536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11537 echo $ac_n "(cached) $ac_c" 1>&6
11538 else
11539 cat > conftest.$ac_ext <<EOF
11540 #line 11541 "configure"
11541 #include "confdefs.h"
11542 /* System header to define __stub macros and hopefully few prototypes,
11543 which can conflict with char $ac_func(); below. */
11544 #include <assert.h>
11545 /* Override any gcc2 internal prototype to avoid an error. */
11546 /* We use char because int might match the return type of a gcc2
11547 builtin and then its argument prototype would still apply. */
11548 char $ac_func();
11550 int main() {
11552 /* The GNU C library defines this for functions which it implements
11553 to always fail with ENOSYS. Some functions are actually named
11554 something starting with __ and the normal name is an alias. */
11555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11556 choke me
11557 #else
11558 $ac_func();
11559 #endif
11561 ; return 0; }
11563 if { (eval echo configure:11564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11564 rm -rf conftest*
11565 eval "ac_cv_func_$ac_func=yes"
11566 else
11567 echo "configure: failed program was:" >&5
11568 cat conftest.$ac_ext >&5
11569 rm -rf conftest*
11570 eval "ac_cv_func_$ac_func=no"
11572 rm -f conftest*
11575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11576 echo "$ac_t""yes" 1>&6
11577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11578 cat >> confdefs.h <<EOF
11579 #define $ac_tr_func 1
11582 else
11583 echo "$ac_t""no" 1>&6
11585 done
11587 else
11589 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
11590 echo "configure:11591: checking for _isinfl declaration" >&5
11591 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
11592 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
11593 echo $ac_n "(cached) $ac_c" 1>&6
11594 else
11597 ac_ext=C
11598 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11599 ac_cpp='$CXXCPP $CPPFLAGS'
11600 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11601 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11602 cross_compiling=$ac_cv_prog_cxx_cross
11604 cat > conftest.$ac_ext <<EOF
11605 #line 11606 "configure"
11606 #include "confdefs.h"
11607 #include <math.h>
11608 #ifdef HAVE_IEEEFP_H
11609 #include <ieeefp.h>
11610 #endif
11612 int main() {
11613 _isinfl(0);
11614 ; return 0; }
11616 if { (eval echo configure:11617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11617 rm -rf conftest*
11618 glibcpp_cv_func__isinfl_use=yes
11619 else
11620 echo "configure: failed program was:" >&5
11621 cat conftest.$ac_ext >&5
11622 rm -rf conftest*
11623 glibcpp_cv_func__isinfl_use=no
11625 rm -f conftest*
11626 ac_ext=c
11627 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11628 ac_cpp='$CPP $CPPFLAGS'
11629 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11630 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11631 cross_compiling=$ac_cv_prog_cc_cross
11637 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
11639 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
11640 for ac_func in _isinfl
11642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11643 echo "configure:11644: checking for $ac_func" >&5
11644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11645 echo $ac_n "(cached) $ac_c" 1>&6
11646 else
11647 cat > conftest.$ac_ext <<EOF
11648 #line 11649 "configure"
11649 #include "confdefs.h"
11650 /* System header to define __stub macros and hopefully few prototypes,
11651 which can conflict with char $ac_func(); below. */
11652 #include <assert.h>
11653 /* Override any gcc2 internal prototype to avoid an error. */
11654 /* We use char because int might match the return type of a gcc2
11655 builtin and then its argument prototype would still apply. */
11656 char $ac_func();
11658 int main() {
11660 /* The GNU C library defines this for functions which it implements
11661 to always fail with ENOSYS. Some functions are actually named
11662 something starting with __ and the normal name is an alias. */
11663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11664 choke me
11665 #else
11666 $ac_func();
11667 #endif
11669 ; return 0; }
11671 if { (eval echo configure:11672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11672 rm -rf conftest*
11673 eval "ac_cv_func_$ac_func=yes"
11674 else
11675 echo "configure: failed program was:" >&5
11676 cat conftest.$ac_ext >&5
11677 rm -rf conftest*
11678 eval "ac_cv_func_$ac_func=no"
11680 rm -f conftest*
11683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11684 echo "$ac_t""yes" 1>&6
11685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11686 cat >> confdefs.h <<EOF
11687 #define $ac_tr_func 1
11690 else
11691 echo "$ac_t""no" 1>&6
11693 done
11700 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
11701 echo "configure:11702: checking for copysignl declaration" >&5
11702 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
11703 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
11704 echo $ac_n "(cached) $ac_c" 1>&6
11705 else
11708 ac_ext=C
11709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11710 ac_cpp='$CXXCPP $CPPFLAGS'
11711 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11712 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11713 cross_compiling=$ac_cv_prog_cxx_cross
11715 cat > conftest.$ac_ext <<EOF
11716 #line 11717 "configure"
11717 #include "confdefs.h"
11718 #include <math.h>
11719 int main() {
11720 copysignl(0, 0);
11721 ; return 0; }
11723 if { (eval echo configure:11724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11724 rm -rf conftest*
11725 glibcpp_cv_func_copysignl_use=yes
11726 else
11727 echo "configure: failed program was:" >&5
11728 cat conftest.$ac_ext >&5
11729 rm -rf conftest*
11730 glibcpp_cv_func_copysignl_use=no
11732 rm -f conftest*
11733 ac_ext=c
11734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11735 ac_cpp='$CPP $CPPFLAGS'
11736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11738 cross_compiling=$ac_cv_prog_cc_cross
11744 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
11746 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
11747 for ac_func in copysignl
11749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11750 echo "configure:11751: checking for $ac_func" >&5
11751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11752 echo $ac_n "(cached) $ac_c" 1>&6
11753 else
11754 cat > conftest.$ac_ext <<EOF
11755 #line 11756 "configure"
11756 #include "confdefs.h"
11757 /* System header to define __stub macros and hopefully few prototypes,
11758 which can conflict with char $ac_func(); below. */
11759 #include <assert.h>
11760 /* Override any gcc2 internal prototype to avoid an error. */
11761 /* We use char because int might match the return type of a gcc2
11762 builtin and then its argument prototype would still apply. */
11763 char $ac_func();
11765 int main() {
11767 /* The GNU C library defines this for functions which it implements
11768 to always fail with ENOSYS. Some functions are actually named
11769 something starting with __ and the normal name is an alias. */
11770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11771 choke me
11772 #else
11773 $ac_func();
11774 #endif
11776 ; return 0; }
11778 if { (eval echo configure:11779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11779 rm -rf conftest*
11780 eval "ac_cv_func_$ac_func=yes"
11781 else
11782 echo "configure: failed program was:" >&5
11783 cat conftest.$ac_ext >&5
11784 rm -rf conftest*
11785 eval "ac_cv_func_$ac_func=no"
11787 rm -f conftest*
11790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11791 echo "$ac_t""yes" 1>&6
11792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11793 cat >> confdefs.h <<EOF
11794 #define $ac_tr_func 1
11797 else
11798 echo "$ac_t""no" 1>&6
11800 done
11802 else
11804 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
11805 echo "configure:11806: checking for _copysignl declaration" >&5
11806 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
11807 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
11808 echo $ac_n "(cached) $ac_c" 1>&6
11809 else
11812 ac_ext=C
11813 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11814 ac_cpp='$CXXCPP $CPPFLAGS'
11815 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11816 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11817 cross_compiling=$ac_cv_prog_cxx_cross
11819 cat > conftest.$ac_ext <<EOF
11820 #line 11821 "configure"
11821 #include "confdefs.h"
11822 #include <math.h>
11823 int main() {
11824 _copysignl(0, 0);
11825 ; return 0; }
11827 if { (eval echo configure:11828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11828 rm -rf conftest*
11829 glibcpp_cv_func__copysignl_use=yes
11830 else
11831 echo "configure: failed program was:" >&5
11832 cat conftest.$ac_ext >&5
11833 rm -rf conftest*
11834 glibcpp_cv_func__copysignl_use=no
11836 rm -f conftest*
11837 ac_ext=c
11838 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11839 ac_cpp='$CPP $CPPFLAGS'
11840 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11841 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11842 cross_compiling=$ac_cv_prog_cc_cross
11848 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
11850 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
11851 for ac_func in _copysignl
11853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11854 echo "configure:11855: checking for $ac_func" >&5
11855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11856 echo $ac_n "(cached) $ac_c" 1>&6
11857 else
11858 cat > conftest.$ac_ext <<EOF
11859 #line 11860 "configure"
11860 #include "confdefs.h"
11861 /* System header to define __stub macros and hopefully few prototypes,
11862 which can conflict with char $ac_func(); below. */
11863 #include <assert.h>
11864 /* Override any gcc2 internal prototype to avoid an error. */
11865 /* We use char because int might match the return type of a gcc2
11866 builtin and then its argument prototype would still apply. */
11867 char $ac_func();
11869 int main() {
11871 /* The GNU C library defines this for functions which it implements
11872 to always fail with ENOSYS. Some functions are actually named
11873 something starting with __ and the normal name is an alias. */
11874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11875 choke me
11876 #else
11877 $ac_func();
11878 #endif
11880 ; return 0; }
11882 if { (eval echo configure:11883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11883 rm -rf conftest*
11884 eval "ac_cv_func_$ac_func=yes"
11885 else
11886 echo "configure: failed program was:" >&5
11887 cat conftest.$ac_ext >&5
11888 rm -rf conftest*
11889 eval "ac_cv_func_$ac_func=no"
11891 rm -f conftest*
11894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11895 echo "$ac_t""yes" 1>&6
11896 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11897 cat >> confdefs.h <<EOF
11898 #define $ac_tr_func 1
11901 else
11902 echo "$ac_t""no" 1>&6
11904 done
11911 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
11912 echo "configure:11913: checking for atan2l declaration" >&5
11913 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
11914 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
11915 echo $ac_n "(cached) $ac_c" 1>&6
11916 else
11919 ac_ext=C
11920 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11921 ac_cpp='$CXXCPP $CPPFLAGS'
11922 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11923 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11924 cross_compiling=$ac_cv_prog_cxx_cross
11926 cat > conftest.$ac_ext <<EOF
11927 #line 11928 "configure"
11928 #include "confdefs.h"
11929 #include <math.h>
11930 int main() {
11931 atan2l(0, 0);
11932 ; return 0; }
11934 if { (eval echo configure:11935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11935 rm -rf conftest*
11936 glibcpp_cv_func_atan2l_use=yes
11937 else
11938 echo "configure: failed program was:" >&5
11939 cat conftest.$ac_ext >&5
11940 rm -rf conftest*
11941 glibcpp_cv_func_atan2l_use=no
11943 rm -f conftest*
11944 ac_ext=c
11945 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11946 ac_cpp='$CPP $CPPFLAGS'
11947 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11948 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11949 cross_compiling=$ac_cv_prog_cc_cross
11955 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
11957 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
11958 for ac_func in atan2l
11960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11961 echo "configure:11962: checking for $ac_func" >&5
11962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11963 echo $ac_n "(cached) $ac_c" 1>&6
11964 else
11965 cat > conftest.$ac_ext <<EOF
11966 #line 11967 "configure"
11967 #include "confdefs.h"
11968 /* System header to define __stub macros and hopefully few prototypes,
11969 which can conflict with char $ac_func(); below. */
11970 #include <assert.h>
11971 /* Override any gcc2 internal prototype to avoid an error. */
11972 /* We use char because int might match the return type of a gcc2
11973 builtin and then its argument prototype would still apply. */
11974 char $ac_func();
11976 int main() {
11978 /* The GNU C library defines this for functions which it implements
11979 to always fail with ENOSYS. Some functions are actually named
11980 something starting with __ and the normal name is an alias. */
11981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11982 choke me
11983 #else
11984 $ac_func();
11985 #endif
11987 ; return 0; }
11989 if { (eval echo configure:11990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11990 rm -rf conftest*
11991 eval "ac_cv_func_$ac_func=yes"
11992 else
11993 echo "configure: failed program was:" >&5
11994 cat conftest.$ac_ext >&5
11995 rm -rf conftest*
11996 eval "ac_cv_func_$ac_func=no"
11998 rm -f conftest*
12001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12002 echo "$ac_t""yes" 1>&6
12003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12004 cat >> confdefs.h <<EOF
12005 #define $ac_tr_func 1
12008 else
12009 echo "$ac_t""no" 1>&6
12011 done
12013 else
12015 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
12016 echo "configure:12017: checking for _atan2l declaration" >&5
12017 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
12018 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
12019 echo $ac_n "(cached) $ac_c" 1>&6
12020 else
12023 ac_ext=C
12024 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12025 ac_cpp='$CXXCPP $CPPFLAGS'
12026 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12027 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12028 cross_compiling=$ac_cv_prog_cxx_cross
12030 cat > conftest.$ac_ext <<EOF
12031 #line 12032 "configure"
12032 #include "confdefs.h"
12033 #include <math.h>
12034 int main() {
12035 _atan2l(0, 0);
12036 ; return 0; }
12038 if { (eval echo configure:12039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12039 rm -rf conftest*
12040 glibcpp_cv_func__atan2l_use=yes
12041 else
12042 echo "configure: failed program was:" >&5
12043 cat conftest.$ac_ext >&5
12044 rm -rf conftest*
12045 glibcpp_cv_func__atan2l_use=no
12047 rm -f conftest*
12048 ac_ext=c
12049 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12050 ac_cpp='$CPP $CPPFLAGS'
12051 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12052 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12053 cross_compiling=$ac_cv_prog_cc_cross
12059 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
12061 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
12062 for ac_func in _atan2l
12064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12065 echo "configure:12066: checking for $ac_func" >&5
12066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12067 echo $ac_n "(cached) $ac_c" 1>&6
12068 else
12069 cat > conftest.$ac_ext <<EOF
12070 #line 12071 "configure"
12071 #include "confdefs.h"
12072 /* System header to define __stub macros and hopefully few prototypes,
12073 which can conflict with char $ac_func(); below. */
12074 #include <assert.h>
12075 /* Override any gcc2 internal prototype to avoid an error. */
12076 /* We use char because int might match the return type of a gcc2
12077 builtin and then its argument prototype would still apply. */
12078 char $ac_func();
12080 int main() {
12082 /* The GNU C library defines this for functions which it implements
12083 to always fail with ENOSYS. Some functions are actually named
12084 something starting with __ and the normal name is an alias. */
12085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12086 choke me
12087 #else
12088 $ac_func();
12089 #endif
12091 ; return 0; }
12093 if { (eval echo configure:12094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12094 rm -rf conftest*
12095 eval "ac_cv_func_$ac_func=yes"
12096 else
12097 echo "configure: failed program was:" >&5
12098 cat conftest.$ac_ext >&5
12099 rm -rf conftest*
12100 eval "ac_cv_func_$ac_func=no"
12102 rm -f conftest*
12105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12106 echo "$ac_t""yes" 1>&6
12107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12108 cat >> confdefs.h <<EOF
12109 #define $ac_tr_func 1
12112 else
12113 echo "$ac_t""no" 1>&6
12115 done
12122 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
12123 echo "configure:12124: checking for expl declaration" >&5
12124 if test x${glibcpp_cv_func_expl_use+set} != xset; then
12125 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
12126 echo $ac_n "(cached) $ac_c" 1>&6
12127 else
12130 ac_ext=C
12131 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12132 ac_cpp='$CXXCPP $CPPFLAGS'
12133 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12134 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12135 cross_compiling=$ac_cv_prog_cxx_cross
12137 cat > conftest.$ac_ext <<EOF
12138 #line 12139 "configure"
12139 #include "confdefs.h"
12140 #include <math.h>
12141 #ifdef HAVE_IEEEFP_H
12142 #include <ieeefp.h>
12143 #endif
12145 int main() {
12146 expl(0);
12147 ; return 0; }
12149 if { (eval echo configure:12150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12150 rm -rf conftest*
12151 glibcpp_cv_func_expl_use=yes
12152 else
12153 echo "configure: failed program was:" >&5
12154 cat conftest.$ac_ext >&5
12155 rm -rf conftest*
12156 glibcpp_cv_func_expl_use=no
12158 rm -f conftest*
12159 ac_ext=c
12160 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12161 ac_cpp='$CPP $CPPFLAGS'
12162 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12163 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12164 cross_compiling=$ac_cv_prog_cc_cross
12170 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
12172 if test x$glibcpp_cv_func_expl_use = x"yes"; then
12173 for ac_func in expl
12175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12176 echo "configure:12177: checking for $ac_func" >&5
12177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12178 echo $ac_n "(cached) $ac_c" 1>&6
12179 else
12180 cat > conftest.$ac_ext <<EOF
12181 #line 12182 "configure"
12182 #include "confdefs.h"
12183 /* System header to define __stub macros and hopefully few prototypes,
12184 which can conflict with char $ac_func(); below. */
12185 #include <assert.h>
12186 /* Override any gcc2 internal prototype to avoid an error. */
12187 /* We use char because int might match the return type of a gcc2
12188 builtin and then its argument prototype would still apply. */
12189 char $ac_func();
12191 int main() {
12193 /* The GNU C library defines this for functions which it implements
12194 to always fail with ENOSYS. Some functions are actually named
12195 something starting with __ and the normal name is an alias. */
12196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12197 choke me
12198 #else
12199 $ac_func();
12200 #endif
12202 ; return 0; }
12204 if { (eval echo configure:12205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12205 rm -rf conftest*
12206 eval "ac_cv_func_$ac_func=yes"
12207 else
12208 echo "configure: failed program was:" >&5
12209 cat conftest.$ac_ext >&5
12210 rm -rf conftest*
12211 eval "ac_cv_func_$ac_func=no"
12213 rm -f conftest*
12216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12217 echo "$ac_t""yes" 1>&6
12218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12219 cat >> confdefs.h <<EOF
12220 #define $ac_tr_func 1
12223 else
12224 echo "$ac_t""no" 1>&6
12226 done
12228 else
12230 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12231 echo "configure:12232: checking for _expl declaration" >&5
12232 if test x${glibcpp_cv_func__expl_use+set} != xset; then
12233 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12234 echo $ac_n "(cached) $ac_c" 1>&6
12235 else
12238 ac_ext=C
12239 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12240 ac_cpp='$CXXCPP $CPPFLAGS'
12241 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12242 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12243 cross_compiling=$ac_cv_prog_cxx_cross
12245 cat > conftest.$ac_ext <<EOF
12246 #line 12247 "configure"
12247 #include "confdefs.h"
12248 #include <math.h>
12249 #ifdef HAVE_IEEEFP_H
12250 #include <ieeefp.h>
12251 #endif
12253 int main() {
12254 _expl(0);
12255 ; return 0; }
12257 if { (eval echo configure:12258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12258 rm -rf conftest*
12259 glibcpp_cv_func__expl_use=yes
12260 else
12261 echo "configure: failed program was:" >&5
12262 cat conftest.$ac_ext >&5
12263 rm -rf conftest*
12264 glibcpp_cv_func__expl_use=no
12266 rm -f conftest*
12267 ac_ext=c
12268 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12269 ac_cpp='$CPP $CPPFLAGS'
12270 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12271 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12272 cross_compiling=$ac_cv_prog_cc_cross
12278 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12280 if test x$glibcpp_cv_func__expl_use = x"yes"; then
12281 for ac_func in _expl
12283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12284 echo "configure:12285: checking for $ac_func" >&5
12285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12286 echo $ac_n "(cached) $ac_c" 1>&6
12287 else
12288 cat > conftest.$ac_ext <<EOF
12289 #line 12290 "configure"
12290 #include "confdefs.h"
12291 /* System header to define __stub macros and hopefully few prototypes,
12292 which can conflict with char $ac_func(); below. */
12293 #include <assert.h>
12294 /* Override any gcc2 internal prototype to avoid an error. */
12295 /* We use char because int might match the return type of a gcc2
12296 builtin and then its argument prototype would still apply. */
12297 char $ac_func();
12299 int main() {
12301 /* The GNU C library defines this for functions which it implements
12302 to always fail with ENOSYS. Some functions are actually named
12303 something starting with __ and the normal name is an alias. */
12304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12305 choke me
12306 #else
12307 $ac_func();
12308 #endif
12310 ; return 0; }
12312 if { (eval echo configure:12313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12313 rm -rf conftest*
12314 eval "ac_cv_func_$ac_func=yes"
12315 else
12316 echo "configure: failed program was:" >&5
12317 cat conftest.$ac_ext >&5
12318 rm -rf conftest*
12319 eval "ac_cv_func_$ac_func=no"
12321 rm -f conftest*
12324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12325 echo "$ac_t""yes" 1>&6
12326 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12327 cat >> confdefs.h <<EOF
12328 #define $ac_tr_func 1
12331 else
12332 echo "$ac_t""no" 1>&6
12334 done
12341 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
12342 echo "configure:12343: checking for fabsl declaration" >&5
12343 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
12344 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
12345 echo $ac_n "(cached) $ac_c" 1>&6
12346 else
12349 ac_ext=C
12350 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12351 ac_cpp='$CXXCPP $CPPFLAGS'
12352 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12353 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12354 cross_compiling=$ac_cv_prog_cxx_cross
12356 cat > conftest.$ac_ext <<EOF
12357 #line 12358 "configure"
12358 #include "confdefs.h"
12359 #include <math.h>
12360 #ifdef HAVE_IEEEFP_H
12361 #include <ieeefp.h>
12362 #endif
12364 int main() {
12365 fabsl(0);
12366 ; return 0; }
12368 if { (eval echo configure:12369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12369 rm -rf conftest*
12370 glibcpp_cv_func_fabsl_use=yes
12371 else
12372 echo "configure: failed program was:" >&5
12373 cat conftest.$ac_ext >&5
12374 rm -rf conftest*
12375 glibcpp_cv_func_fabsl_use=no
12377 rm -f conftest*
12378 ac_ext=c
12379 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12380 ac_cpp='$CPP $CPPFLAGS'
12381 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12382 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12383 cross_compiling=$ac_cv_prog_cc_cross
12389 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
12391 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
12392 for ac_func in fabsl
12394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12395 echo "configure:12396: checking for $ac_func" >&5
12396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12397 echo $ac_n "(cached) $ac_c" 1>&6
12398 else
12399 cat > conftest.$ac_ext <<EOF
12400 #line 12401 "configure"
12401 #include "confdefs.h"
12402 /* System header to define __stub macros and hopefully few prototypes,
12403 which can conflict with char $ac_func(); below. */
12404 #include <assert.h>
12405 /* Override any gcc2 internal prototype to avoid an error. */
12406 /* We use char because int might match the return type of a gcc2
12407 builtin and then its argument prototype would still apply. */
12408 char $ac_func();
12410 int main() {
12412 /* The GNU C library defines this for functions which it implements
12413 to always fail with ENOSYS. Some functions are actually named
12414 something starting with __ and the normal name is an alias. */
12415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12416 choke me
12417 #else
12418 $ac_func();
12419 #endif
12421 ; return 0; }
12423 if { (eval echo configure:12424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12424 rm -rf conftest*
12425 eval "ac_cv_func_$ac_func=yes"
12426 else
12427 echo "configure: failed program was:" >&5
12428 cat conftest.$ac_ext >&5
12429 rm -rf conftest*
12430 eval "ac_cv_func_$ac_func=no"
12432 rm -f conftest*
12435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12436 echo "$ac_t""yes" 1>&6
12437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12438 cat >> confdefs.h <<EOF
12439 #define $ac_tr_func 1
12442 else
12443 echo "$ac_t""no" 1>&6
12445 done
12447 else
12449 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
12450 echo "configure:12451: checking for _fabsl declaration" >&5
12451 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
12452 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
12453 echo $ac_n "(cached) $ac_c" 1>&6
12454 else
12457 ac_ext=C
12458 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12459 ac_cpp='$CXXCPP $CPPFLAGS'
12460 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12461 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12462 cross_compiling=$ac_cv_prog_cxx_cross
12464 cat > conftest.$ac_ext <<EOF
12465 #line 12466 "configure"
12466 #include "confdefs.h"
12467 #include <math.h>
12468 #ifdef HAVE_IEEEFP_H
12469 #include <ieeefp.h>
12470 #endif
12472 int main() {
12473 _fabsl(0);
12474 ; return 0; }
12476 if { (eval echo configure:12477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12477 rm -rf conftest*
12478 glibcpp_cv_func__fabsl_use=yes
12479 else
12480 echo "configure: failed program was:" >&5
12481 cat conftest.$ac_ext >&5
12482 rm -rf conftest*
12483 glibcpp_cv_func__fabsl_use=no
12485 rm -f conftest*
12486 ac_ext=c
12487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12488 ac_cpp='$CPP $CPPFLAGS'
12489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12491 cross_compiling=$ac_cv_prog_cc_cross
12497 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
12499 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
12500 for ac_func in _fabsl
12502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12503 echo "configure:12504: checking for $ac_func" >&5
12504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12505 echo $ac_n "(cached) $ac_c" 1>&6
12506 else
12507 cat > conftest.$ac_ext <<EOF
12508 #line 12509 "configure"
12509 #include "confdefs.h"
12510 /* System header to define __stub macros and hopefully few prototypes,
12511 which can conflict with char $ac_func(); below. */
12512 #include <assert.h>
12513 /* Override any gcc2 internal prototype to avoid an error. */
12514 /* We use char because int might match the return type of a gcc2
12515 builtin and then its argument prototype would still apply. */
12516 char $ac_func();
12518 int main() {
12520 /* The GNU C library defines this for functions which it implements
12521 to always fail with ENOSYS. Some functions are actually named
12522 something starting with __ and the normal name is an alias. */
12523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12524 choke me
12525 #else
12526 $ac_func();
12527 #endif
12529 ; return 0; }
12531 if { (eval echo configure:12532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12532 rm -rf conftest*
12533 eval "ac_cv_func_$ac_func=yes"
12534 else
12535 echo "configure: failed program was:" >&5
12536 cat conftest.$ac_ext >&5
12537 rm -rf conftest*
12538 eval "ac_cv_func_$ac_func=no"
12540 rm -f conftest*
12543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12544 echo "$ac_t""yes" 1>&6
12545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12546 cat >> confdefs.h <<EOF
12547 #define $ac_tr_func 1
12550 else
12551 echo "$ac_t""no" 1>&6
12553 done
12560 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
12561 echo "configure:12562: checking for fmodl declaration" >&5
12562 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
12563 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
12564 echo $ac_n "(cached) $ac_c" 1>&6
12565 else
12568 ac_ext=C
12569 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12570 ac_cpp='$CXXCPP $CPPFLAGS'
12571 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12572 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12573 cross_compiling=$ac_cv_prog_cxx_cross
12575 cat > conftest.$ac_ext <<EOF
12576 #line 12577 "configure"
12577 #include "confdefs.h"
12578 #include <math.h>
12579 int main() {
12580 fmodl(0, 0);
12581 ; return 0; }
12583 if { (eval echo configure:12584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12584 rm -rf conftest*
12585 glibcpp_cv_func_fmodl_use=yes
12586 else
12587 echo "configure: failed program was:" >&5
12588 cat conftest.$ac_ext >&5
12589 rm -rf conftest*
12590 glibcpp_cv_func_fmodl_use=no
12592 rm -f conftest*
12593 ac_ext=c
12594 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12595 ac_cpp='$CPP $CPPFLAGS'
12596 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12597 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12598 cross_compiling=$ac_cv_prog_cc_cross
12604 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
12606 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
12607 for ac_func in fmodl
12609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12610 echo "configure:12611: checking for $ac_func" >&5
12611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12612 echo $ac_n "(cached) $ac_c" 1>&6
12613 else
12614 cat > conftest.$ac_ext <<EOF
12615 #line 12616 "configure"
12616 #include "confdefs.h"
12617 /* System header to define __stub macros and hopefully few prototypes,
12618 which can conflict with char $ac_func(); below. */
12619 #include <assert.h>
12620 /* Override any gcc2 internal prototype to avoid an error. */
12621 /* We use char because int might match the return type of a gcc2
12622 builtin and then its argument prototype would still apply. */
12623 char $ac_func();
12625 int main() {
12627 /* The GNU C library defines this for functions which it implements
12628 to always fail with ENOSYS. Some functions are actually named
12629 something starting with __ and the normal name is an alias. */
12630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12631 choke me
12632 #else
12633 $ac_func();
12634 #endif
12636 ; return 0; }
12638 if { (eval echo configure:12639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12639 rm -rf conftest*
12640 eval "ac_cv_func_$ac_func=yes"
12641 else
12642 echo "configure: failed program was:" >&5
12643 cat conftest.$ac_ext >&5
12644 rm -rf conftest*
12645 eval "ac_cv_func_$ac_func=no"
12647 rm -f conftest*
12650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12651 echo "$ac_t""yes" 1>&6
12652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12653 cat >> confdefs.h <<EOF
12654 #define $ac_tr_func 1
12657 else
12658 echo "$ac_t""no" 1>&6
12660 done
12662 else
12664 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
12665 echo "configure:12666: checking for _fmodl declaration" >&5
12666 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
12667 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
12668 echo $ac_n "(cached) $ac_c" 1>&6
12669 else
12672 ac_ext=C
12673 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12674 ac_cpp='$CXXCPP $CPPFLAGS'
12675 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12676 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12677 cross_compiling=$ac_cv_prog_cxx_cross
12679 cat > conftest.$ac_ext <<EOF
12680 #line 12681 "configure"
12681 #include "confdefs.h"
12682 #include <math.h>
12683 int main() {
12684 _fmodl(0, 0);
12685 ; return 0; }
12687 if { (eval echo configure:12688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12688 rm -rf conftest*
12689 glibcpp_cv_func__fmodl_use=yes
12690 else
12691 echo "configure: failed program was:" >&5
12692 cat conftest.$ac_ext >&5
12693 rm -rf conftest*
12694 glibcpp_cv_func__fmodl_use=no
12696 rm -f conftest*
12697 ac_ext=c
12698 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12699 ac_cpp='$CPP $CPPFLAGS'
12700 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12701 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12702 cross_compiling=$ac_cv_prog_cc_cross
12708 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
12710 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
12711 for ac_func in _fmodl
12713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12714 echo "configure:12715: checking for $ac_func" >&5
12715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12716 echo $ac_n "(cached) $ac_c" 1>&6
12717 else
12718 cat > conftest.$ac_ext <<EOF
12719 #line 12720 "configure"
12720 #include "confdefs.h"
12721 /* System header to define __stub macros and hopefully few prototypes,
12722 which can conflict with char $ac_func(); below. */
12723 #include <assert.h>
12724 /* Override any gcc2 internal prototype to avoid an error. */
12725 /* We use char because int might match the return type of a gcc2
12726 builtin and then its argument prototype would still apply. */
12727 char $ac_func();
12729 int main() {
12731 /* The GNU C library defines this for functions which it implements
12732 to always fail with ENOSYS. Some functions are actually named
12733 something starting with __ and the normal name is an alias. */
12734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12735 choke me
12736 #else
12737 $ac_func();
12738 #endif
12740 ; return 0; }
12742 if { (eval echo configure:12743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12743 rm -rf conftest*
12744 eval "ac_cv_func_$ac_func=yes"
12745 else
12746 echo "configure: failed program was:" >&5
12747 cat conftest.$ac_ext >&5
12748 rm -rf conftest*
12749 eval "ac_cv_func_$ac_func=no"
12751 rm -f conftest*
12754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12755 echo "$ac_t""yes" 1>&6
12756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12757 cat >> confdefs.h <<EOF
12758 #define $ac_tr_func 1
12761 else
12762 echo "$ac_t""no" 1>&6
12764 done
12771 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
12772 echo "configure:12773: checking for frexpl declaration" >&5
12773 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
12774 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
12775 echo $ac_n "(cached) $ac_c" 1>&6
12776 else
12779 ac_ext=C
12780 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12781 ac_cpp='$CXXCPP $CPPFLAGS'
12782 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12783 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12784 cross_compiling=$ac_cv_prog_cxx_cross
12786 cat > conftest.$ac_ext <<EOF
12787 #line 12788 "configure"
12788 #include "confdefs.h"
12789 #include <math.h>
12790 int main() {
12791 frexpl(0, 0);
12792 ; return 0; }
12794 if { (eval echo configure:12795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12795 rm -rf conftest*
12796 glibcpp_cv_func_frexpl_use=yes
12797 else
12798 echo "configure: failed program was:" >&5
12799 cat conftest.$ac_ext >&5
12800 rm -rf conftest*
12801 glibcpp_cv_func_frexpl_use=no
12803 rm -f conftest*
12804 ac_ext=c
12805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12806 ac_cpp='$CPP $CPPFLAGS'
12807 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12808 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12809 cross_compiling=$ac_cv_prog_cc_cross
12815 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
12817 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
12818 for ac_func in frexpl
12820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12821 echo "configure:12822: checking for $ac_func" >&5
12822 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12823 echo $ac_n "(cached) $ac_c" 1>&6
12824 else
12825 cat > conftest.$ac_ext <<EOF
12826 #line 12827 "configure"
12827 #include "confdefs.h"
12828 /* System header to define __stub macros and hopefully few prototypes,
12829 which can conflict with char $ac_func(); below. */
12830 #include <assert.h>
12831 /* Override any gcc2 internal prototype to avoid an error. */
12832 /* We use char because int might match the return type of a gcc2
12833 builtin and then its argument prototype would still apply. */
12834 char $ac_func();
12836 int main() {
12838 /* The GNU C library defines this for functions which it implements
12839 to always fail with ENOSYS. Some functions are actually named
12840 something starting with __ and the normal name is an alias. */
12841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12842 choke me
12843 #else
12844 $ac_func();
12845 #endif
12847 ; return 0; }
12849 if { (eval echo configure:12850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12850 rm -rf conftest*
12851 eval "ac_cv_func_$ac_func=yes"
12852 else
12853 echo "configure: failed program was:" >&5
12854 cat conftest.$ac_ext >&5
12855 rm -rf conftest*
12856 eval "ac_cv_func_$ac_func=no"
12858 rm -f conftest*
12861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12862 echo "$ac_t""yes" 1>&6
12863 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12864 cat >> confdefs.h <<EOF
12865 #define $ac_tr_func 1
12868 else
12869 echo "$ac_t""no" 1>&6
12871 done
12873 else
12875 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
12876 echo "configure:12877: checking for _frexpl declaration" >&5
12877 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
12878 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
12879 echo $ac_n "(cached) $ac_c" 1>&6
12880 else
12883 ac_ext=C
12884 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12885 ac_cpp='$CXXCPP $CPPFLAGS'
12886 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12887 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12888 cross_compiling=$ac_cv_prog_cxx_cross
12890 cat > conftest.$ac_ext <<EOF
12891 #line 12892 "configure"
12892 #include "confdefs.h"
12893 #include <math.h>
12894 int main() {
12895 _frexpl(0, 0);
12896 ; return 0; }
12898 if { (eval echo configure:12899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12899 rm -rf conftest*
12900 glibcpp_cv_func__frexpl_use=yes
12901 else
12902 echo "configure: failed program was:" >&5
12903 cat conftest.$ac_ext >&5
12904 rm -rf conftest*
12905 glibcpp_cv_func__frexpl_use=no
12907 rm -f conftest*
12908 ac_ext=c
12909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12910 ac_cpp='$CPP $CPPFLAGS'
12911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12913 cross_compiling=$ac_cv_prog_cc_cross
12919 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
12921 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
12922 for ac_func in _frexpl
12924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12925 echo "configure:12926: checking for $ac_func" >&5
12926 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12927 echo $ac_n "(cached) $ac_c" 1>&6
12928 else
12929 cat > conftest.$ac_ext <<EOF
12930 #line 12931 "configure"
12931 #include "confdefs.h"
12932 /* System header to define __stub macros and hopefully few prototypes,
12933 which can conflict with char $ac_func(); below. */
12934 #include <assert.h>
12935 /* Override any gcc2 internal prototype to avoid an error. */
12936 /* We use char because int might match the return type of a gcc2
12937 builtin and then its argument prototype would still apply. */
12938 char $ac_func();
12940 int main() {
12942 /* The GNU C library defines this for functions which it implements
12943 to always fail with ENOSYS. Some functions are actually named
12944 something starting with __ and the normal name is an alias. */
12945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12946 choke me
12947 #else
12948 $ac_func();
12949 #endif
12951 ; return 0; }
12953 if { (eval echo configure:12954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12954 rm -rf conftest*
12955 eval "ac_cv_func_$ac_func=yes"
12956 else
12957 echo "configure: failed program was:" >&5
12958 cat conftest.$ac_ext >&5
12959 rm -rf conftest*
12960 eval "ac_cv_func_$ac_func=no"
12962 rm -f conftest*
12965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12966 echo "$ac_t""yes" 1>&6
12967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12968 cat >> confdefs.h <<EOF
12969 #define $ac_tr_func 1
12972 else
12973 echo "$ac_t""no" 1>&6
12975 done
12982 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
12983 echo "configure:12984: checking for ldexpl declaration" >&5
12984 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
12985 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
12986 echo $ac_n "(cached) $ac_c" 1>&6
12987 else
12990 ac_ext=C
12991 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12992 ac_cpp='$CXXCPP $CPPFLAGS'
12993 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12994 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12995 cross_compiling=$ac_cv_prog_cxx_cross
12997 cat > conftest.$ac_ext <<EOF
12998 #line 12999 "configure"
12999 #include "confdefs.h"
13000 #include <math.h>
13001 int main() {
13002 ldexpl(0, 0);
13003 ; return 0; }
13005 if { (eval echo configure:13006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13006 rm -rf conftest*
13007 glibcpp_cv_func_ldexpl_use=yes
13008 else
13009 echo "configure: failed program was:" >&5
13010 cat conftest.$ac_ext >&5
13011 rm -rf conftest*
13012 glibcpp_cv_func_ldexpl_use=no
13014 rm -f conftest*
13015 ac_ext=c
13016 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13017 ac_cpp='$CPP $CPPFLAGS'
13018 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13019 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13020 cross_compiling=$ac_cv_prog_cc_cross
13026 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
13028 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
13029 for ac_func in ldexpl
13031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13032 echo "configure:13033: checking for $ac_func" >&5
13033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13034 echo $ac_n "(cached) $ac_c" 1>&6
13035 else
13036 cat > conftest.$ac_ext <<EOF
13037 #line 13038 "configure"
13038 #include "confdefs.h"
13039 /* System header to define __stub macros and hopefully few prototypes,
13040 which can conflict with char $ac_func(); below. */
13041 #include <assert.h>
13042 /* Override any gcc2 internal prototype to avoid an error. */
13043 /* We use char because int might match the return type of a gcc2
13044 builtin and then its argument prototype would still apply. */
13045 char $ac_func();
13047 int main() {
13049 /* The GNU C library defines this for functions which it implements
13050 to always fail with ENOSYS. Some functions are actually named
13051 something starting with __ and the normal name is an alias. */
13052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13053 choke me
13054 #else
13055 $ac_func();
13056 #endif
13058 ; return 0; }
13060 if { (eval echo configure:13061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13061 rm -rf conftest*
13062 eval "ac_cv_func_$ac_func=yes"
13063 else
13064 echo "configure: failed program was:" >&5
13065 cat conftest.$ac_ext >&5
13066 rm -rf conftest*
13067 eval "ac_cv_func_$ac_func=no"
13069 rm -f conftest*
13072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13073 echo "$ac_t""yes" 1>&6
13074 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13075 cat >> confdefs.h <<EOF
13076 #define $ac_tr_func 1
13079 else
13080 echo "$ac_t""no" 1>&6
13082 done
13084 else
13086 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
13087 echo "configure:13088: checking for _ldexpl declaration" >&5
13088 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
13089 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
13090 echo $ac_n "(cached) $ac_c" 1>&6
13091 else
13094 ac_ext=C
13095 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13096 ac_cpp='$CXXCPP $CPPFLAGS'
13097 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13098 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13099 cross_compiling=$ac_cv_prog_cxx_cross
13101 cat > conftest.$ac_ext <<EOF
13102 #line 13103 "configure"
13103 #include "confdefs.h"
13104 #include <math.h>
13105 int main() {
13106 _ldexpl(0, 0);
13107 ; return 0; }
13109 if { (eval echo configure:13110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13110 rm -rf conftest*
13111 glibcpp_cv_func__ldexpl_use=yes
13112 else
13113 echo "configure: failed program was:" >&5
13114 cat conftest.$ac_ext >&5
13115 rm -rf conftest*
13116 glibcpp_cv_func__ldexpl_use=no
13118 rm -f conftest*
13119 ac_ext=c
13120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13121 ac_cpp='$CPP $CPPFLAGS'
13122 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13123 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13124 cross_compiling=$ac_cv_prog_cc_cross
13130 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
13132 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
13133 for ac_func in _ldexpl
13135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13136 echo "configure:13137: checking for $ac_func" >&5
13137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13138 echo $ac_n "(cached) $ac_c" 1>&6
13139 else
13140 cat > conftest.$ac_ext <<EOF
13141 #line 13142 "configure"
13142 #include "confdefs.h"
13143 /* System header to define __stub macros and hopefully few prototypes,
13144 which can conflict with char $ac_func(); below. */
13145 #include <assert.h>
13146 /* Override any gcc2 internal prototype to avoid an error. */
13147 /* We use char because int might match the return type of a gcc2
13148 builtin and then its argument prototype would still apply. */
13149 char $ac_func();
13151 int main() {
13153 /* The GNU C library defines this for functions which it implements
13154 to always fail with ENOSYS. Some functions are actually named
13155 something starting with __ and the normal name is an alias. */
13156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13157 choke me
13158 #else
13159 $ac_func();
13160 #endif
13162 ; return 0; }
13164 if { (eval echo configure:13165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13165 rm -rf conftest*
13166 eval "ac_cv_func_$ac_func=yes"
13167 else
13168 echo "configure: failed program was:" >&5
13169 cat conftest.$ac_ext >&5
13170 rm -rf conftest*
13171 eval "ac_cv_func_$ac_func=no"
13173 rm -f conftest*
13176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13177 echo "$ac_t""yes" 1>&6
13178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13179 cat >> confdefs.h <<EOF
13180 #define $ac_tr_func 1
13183 else
13184 echo "$ac_t""no" 1>&6
13186 done
13193 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
13194 echo "configure:13195: checking for logl declaration" >&5
13195 if test x${glibcpp_cv_func_logl_use+set} != xset; then
13196 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
13197 echo $ac_n "(cached) $ac_c" 1>&6
13198 else
13201 ac_ext=C
13202 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13203 ac_cpp='$CXXCPP $CPPFLAGS'
13204 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13205 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13206 cross_compiling=$ac_cv_prog_cxx_cross
13208 cat > conftest.$ac_ext <<EOF
13209 #line 13210 "configure"
13210 #include "confdefs.h"
13211 #include <math.h>
13212 #ifdef HAVE_IEEEFP_H
13213 #include <ieeefp.h>
13214 #endif
13216 int main() {
13217 logl(0);
13218 ; return 0; }
13220 if { (eval echo configure:13221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13221 rm -rf conftest*
13222 glibcpp_cv_func_logl_use=yes
13223 else
13224 echo "configure: failed program was:" >&5
13225 cat conftest.$ac_ext >&5
13226 rm -rf conftest*
13227 glibcpp_cv_func_logl_use=no
13229 rm -f conftest*
13230 ac_ext=c
13231 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13232 ac_cpp='$CPP $CPPFLAGS'
13233 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13234 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13235 cross_compiling=$ac_cv_prog_cc_cross
13241 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
13243 if test x$glibcpp_cv_func_logl_use = x"yes"; then
13244 for ac_func in logl
13246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13247 echo "configure:13248: checking for $ac_func" >&5
13248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13249 echo $ac_n "(cached) $ac_c" 1>&6
13250 else
13251 cat > conftest.$ac_ext <<EOF
13252 #line 13253 "configure"
13253 #include "confdefs.h"
13254 /* System header to define __stub macros and hopefully few prototypes,
13255 which can conflict with char $ac_func(); below. */
13256 #include <assert.h>
13257 /* Override any gcc2 internal prototype to avoid an error. */
13258 /* We use char because int might match the return type of a gcc2
13259 builtin and then its argument prototype would still apply. */
13260 char $ac_func();
13262 int main() {
13264 /* The GNU C library defines this for functions which it implements
13265 to always fail with ENOSYS. Some functions are actually named
13266 something starting with __ and the normal name is an alias. */
13267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13268 choke me
13269 #else
13270 $ac_func();
13271 #endif
13273 ; return 0; }
13275 if { (eval echo configure:13276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13276 rm -rf conftest*
13277 eval "ac_cv_func_$ac_func=yes"
13278 else
13279 echo "configure: failed program was:" >&5
13280 cat conftest.$ac_ext >&5
13281 rm -rf conftest*
13282 eval "ac_cv_func_$ac_func=no"
13284 rm -f conftest*
13287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13288 echo "$ac_t""yes" 1>&6
13289 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13290 cat >> confdefs.h <<EOF
13291 #define $ac_tr_func 1
13294 else
13295 echo "$ac_t""no" 1>&6
13297 done
13299 else
13301 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
13302 echo "configure:13303: checking for _logl declaration" >&5
13303 if test x${glibcpp_cv_func__logl_use+set} != xset; then
13304 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
13305 echo $ac_n "(cached) $ac_c" 1>&6
13306 else
13309 ac_ext=C
13310 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13311 ac_cpp='$CXXCPP $CPPFLAGS'
13312 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13313 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13314 cross_compiling=$ac_cv_prog_cxx_cross
13316 cat > conftest.$ac_ext <<EOF
13317 #line 13318 "configure"
13318 #include "confdefs.h"
13319 #include <math.h>
13320 #ifdef HAVE_IEEEFP_H
13321 #include <ieeefp.h>
13322 #endif
13324 int main() {
13325 _logl(0);
13326 ; return 0; }
13328 if { (eval echo configure:13329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13329 rm -rf conftest*
13330 glibcpp_cv_func__logl_use=yes
13331 else
13332 echo "configure: failed program was:" >&5
13333 cat conftest.$ac_ext >&5
13334 rm -rf conftest*
13335 glibcpp_cv_func__logl_use=no
13337 rm -f conftest*
13338 ac_ext=c
13339 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13340 ac_cpp='$CPP $CPPFLAGS'
13341 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13342 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13343 cross_compiling=$ac_cv_prog_cc_cross
13349 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
13351 if test x$glibcpp_cv_func__logl_use = x"yes"; then
13352 for ac_func in _logl
13354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13355 echo "configure:13356: checking for $ac_func" >&5
13356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13357 echo $ac_n "(cached) $ac_c" 1>&6
13358 else
13359 cat > conftest.$ac_ext <<EOF
13360 #line 13361 "configure"
13361 #include "confdefs.h"
13362 /* System header to define __stub macros and hopefully few prototypes,
13363 which can conflict with char $ac_func(); below. */
13364 #include <assert.h>
13365 /* Override any gcc2 internal prototype to avoid an error. */
13366 /* We use char because int might match the return type of a gcc2
13367 builtin and then its argument prototype would still apply. */
13368 char $ac_func();
13370 int main() {
13372 /* The GNU C library defines this for functions which it implements
13373 to always fail with ENOSYS. Some functions are actually named
13374 something starting with __ and the normal name is an alias. */
13375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13376 choke me
13377 #else
13378 $ac_func();
13379 #endif
13381 ; return 0; }
13383 if { (eval echo configure:13384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13384 rm -rf conftest*
13385 eval "ac_cv_func_$ac_func=yes"
13386 else
13387 echo "configure: failed program was:" >&5
13388 cat conftest.$ac_ext >&5
13389 rm -rf conftest*
13390 eval "ac_cv_func_$ac_func=no"
13392 rm -f conftest*
13395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13396 echo "$ac_t""yes" 1>&6
13397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13398 cat >> confdefs.h <<EOF
13399 #define $ac_tr_func 1
13402 else
13403 echo "$ac_t""no" 1>&6
13405 done
13412 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
13413 echo "configure:13414: checking for log10l declaration" >&5
13414 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
13415 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
13416 echo $ac_n "(cached) $ac_c" 1>&6
13417 else
13420 ac_ext=C
13421 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13422 ac_cpp='$CXXCPP $CPPFLAGS'
13423 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13424 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13425 cross_compiling=$ac_cv_prog_cxx_cross
13427 cat > conftest.$ac_ext <<EOF
13428 #line 13429 "configure"
13429 #include "confdefs.h"
13430 #include <math.h>
13431 #ifdef HAVE_IEEEFP_H
13432 #include <ieeefp.h>
13433 #endif
13435 int main() {
13436 log10l(0);
13437 ; return 0; }
13439 if { (eval echo configure:13440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13440 rm -rf conftest*
13441 glibcpp_cv_func_log10l_use=yes
13442 else
13443 echo "configure: failed program was:" >&5
13444 cat conftest.$ac_ext >&5
13445 rm -rf conftest*
13446 glibcpp_cv_func_log10l_use=no
13448 rm -f conftest*
13449 ac_ext=c
13450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13451 ac_cpp='$CPP $CPPFLAGS'
13452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13454 cross_compiling=$ac_cv_prog_cc_cross
13460 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
13462 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
13463 for ac_func in log10l
13465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13466 echo "configure:13467: checking for $ac_func" >&5
13467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13468 echo $ac_n "(cached) $ac_c" 1>&6
13469 else
13470 cat > conftest.$ac_ext <<EOF
13471 #line 13472 "configure"
13472 #include "confdefs.h"
13473 /* System header to define __stub macros and hopefully few prototypes,
13474 which can conflict with char $ac_func(); below. */
13475 #include <assert.h>
13476 /* Override any gcc2 internal prototype to avoid an error. */
13477 /* We use char because int might match the return type of a gcc2
13478 builtin and then its argument prototype would still apply. */
13479 char $ac_func();
13481 int main() {
13483 /* The GNU C library defines this for functions which it implements
13484 to always fail with ENOSYS. Some functions are actually named
13485 something starting with __ and the normal name is an alias. */
13486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13487 choke me
13488 #else
13489 $ac_func();
13490 #endif
13492 ; return 0; }
13494 if { (eval echo configure:13495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13495 rm -rf conftest*
13496 eval "ac_cv_func_$ac_func=yes"
13497 else
13498 echo "configure: failed program was:" >&5
13499 cat conftest.$ac_ext >&5
13500 rm -rf conftest*
13501 eval "ac_cv_func_$ac_func=no"
13503 rm -f conftest*
13506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13507 echo "$ac_t""yes" 1>&6
13508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13509 cat >> confdefs.h <<EOF
13510 #define $ac_tr_func 1
13513 else
13514 echo "$ac_t""no" 1>&6
13516 done
13518 else
13520 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
13521 echo "configure:13522: checking for _log10l declaration" >&5
13522 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
13523 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
13524 echo $ac_n "(cached) $ac_c" 1>&6
13525 else
13528 ac_ext=C
13529 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13530 ac_cpp='$CXXCPP $CPPFLAGS'
13531 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13532 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13533 cross_compiling=$ac_cv_prog_cxx_cross
13535 cat > conftest.$ac_ext <<EOF
13536 #line 13537 "configure"
13537 #include "confdefs.h"
13538 #include <math.h>
13539 #ifdef HAVE_IEEEFP_H
13540 #include <ieeefp.h>
13541 #endif
13543 int main() {
13544 _log10l(0);
13545 ; return 0; }
13547 if { (eval echo configure:13548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13548 rm -rf conftest*
13549 glibcpp_cv_func__log10l_use=yes
13550 else
13551 echo "configure: failed program was:" >&5
13552 cat conftest.$ac_ext >&5
13553 rm -rf conftest*
13554 glibcpp_cv_func__log10l_use=no
13556 rm -f conftest*
13557 ac_ext=c
13558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13559 ac_cpp='$CPP $CPPFLAGS'
13560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13562 cross_compiling=$ac_cv_prog_cc_cross
13568 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
13570 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
13571 for ac_func in _log10l
13573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13574 echo "configure:13575: checking for $ac_func" >&5
13575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13576 echo $ac_n "(cached) $ac_c" 1>&6
13577 else
13578 cat > conftest.$ac_ext <<EOF
13579 #line 13580 "configure"
13580 #include "confdefs.h"
13581 /* System header to define __stub macros and hopefully few prototypes,
13582 which can conflict with char $ac_func(); below. */
13583 #include <assert.h>
13584 /* Override any gcc2 internal prototype to avoid an error. */
13585 /* We use char because int might match the return type of a gcc2
13586 builtin and then its argument prototype would still apply. */
13587 char $ac_func();
13589 int main() {
13591 /* The GNU C library defines this for functions which it implements
13592 to always fail with ENOSYS. Some functions are actually named
13593 something starting with __ and the normal name is an alias. */
13594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13595 choke me
13596 #else
13597 $ac_func();
13598 #endif
13600 ; return 0; }
13602 if { (eval echo configure:13603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13603 rm -rf conftest*
13604 eval "ac_cv_func_$ac_func=yes"
13605 else
13606 echo "configure: failed program was:" >&5
13607 cat conftest.$ac_ext >&5
13608 rm -rf conftest*
13609 eval "ac_cv_func_$ac_func=no"
13611 rm -f conftest*
13614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13615 echo "$ac_t""yes" 1>&6
13616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13617 cat >> confdefs.h <<EOF
13618 #define $ac_tr_func 1
13621 else
13622 echo "$ac_t""no" 1>&6
13624 done
13631 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
13632 echo "configure:13633: checking for modfl declaration" >&5
13633 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
13634 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
13635 echo $ac_n "(cached) $ac_c" 1>&6
13636 else
13639 ac_ext=C
13640 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13641 ac_cpp='$CXXCPP $CPPFLAGS'
13642 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13643 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13644 cross_compiling=$ac_cv_prog_cxx_cross
13646 cat > conftest.$ac_ext <<EOF
13647 #line 13648 "configure"
13648 #include "confdefs.h"
13649 #include <math.h>
13650 int main() {
13651 modfl(0, 0);
13652 ; return 0; }
13654 if { (eval echo configure:13655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13655 rm -rf conftest*
13656 glibcpp_cv_func_modfl_use=yes
13657 else
13658 echo "configure: failed program was:" >&5
13659 cat conftest.$ac_ext >&5
13660 rm -rf conftest*
13661 glibcpp_cv_func_modfl_use=no
13663 rm -f conftest*
13664 ac_ext=c
13665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13666 ac_cpp='$CPP $CPPFLAGS'
13667 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13668 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13669 cross_compiling=$ac_cv_prog_cc_cross
13675 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
13677 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
13678 for ac_func in modfl
13680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13681 echo "configure:13682: checking for $ac_func" >&5
13682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13683 echo $ac_n "(cached) $ac_c" 1>&6
13684 else
13685 cat > conftest.$ac_ext <<EOF
13686 #line 13687 "configure"
13687 #include "confdefs.h"
13688 /* System header to define __stub macros and hopefully few prototypes,
13689 which can conflict with char $ac_func(); below. */
13690 #include <assert.h>
13691 /* Override any gcc2 internal prototype to avoid an error. */
13692 /* We use char because int might match the return type of a gcc2
13693 builtin and then its argument prototype would still apply. */
13694 char $ac_func();
13696 int main() {
13698 /* The GNU C library defines this for functions which it implements
13699 to always fail with ENOSYS. Some functions are actually named
13700 something starting with __ and the normal name is an alias. */
13701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13702 choke me
13703 #else
13704 $ac_func();
13705 #endif
13707 ; return 0; }
13709 if { (eval echo configure:13710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13710 rm -rf conftest*
13711 eval "ac_cv_func_$ac_func=yes"
13712 else
13713 echo "configure: failed program was:" >&5
13714 cat conftest.$ac_ext >&5
13715 rm -rf conftest*
13716 eval "ac_cv_func_$ac_func=no"
13718 rm -f conftest*
13721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13722 echo "$ac_t""yes" 1>&6
13723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13724 cat >> confdefs.h <<EOF
13725 #define $ac_tr_func 1
13728 else
13729 echo "$ac_t""no" 1>&6
13731 done
13733 else
13735 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
13736 echo "configure:13737: checking for _modfl declaration" >&5
13737 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
13738 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
13739 echo $ac_n "(cached) $ac_c" 1>&6
13740 else
13743 ac_ext=C
13744 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13745 ac_cpp='$CXXCPP $CPPFLAGS'
13746 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13747 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13748 cross_compiling=$ac_cv_prog_cxx_cross
13750 cat > conftest.$ac_ext <<EOF
13751 #line 13752 "configure"
13752 #include "confdefs.h"
13753 #include <math.h>
13754 int main() {
13755 _modfl(0, 0);
13756 ; return 0; }
13758 if { (eval echo configure:13759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13759 rm -rf conftest*
13760 glibcpp_cv_func__modfl_use=yes
13761 else
13762 echo "configure: failed program was:" >&5
13763 cat conftest.$ac_ext >&5
13764 rm -rf conftest*
13765 glibcpp_cv_func__modfl_use=no
13767 rm -f conftest*
13768 ac_ext=c
13769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13770 ac_cpp='$CPP $CPPFLAGS'
13771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13773 cross_compiling=$ac_cv_prog_cc_cross
13779 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
13781 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
13782 for ac_func in _modfl
13784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13785 echo "configure:13786: checking for $ac_func" >&5
13786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13787 echo $ac_n "(cached) $ac_c" 1>&6
13788 else
13789 cat > conftest.$ac_ext <<EOF
13790 #line 13791 "configure"
13791 #include "confdefs.h"
13792 /* System header to define __stub macros and hopefully few prototypes,
13793 which can conflict with char $ac_func(); below. */
13794 #include <assert.h>
13795 /* Override any gcc2 internal prototype to avoid an error. */
13796 /* We use char because int might match the return type of a gcc2
13797 builtin and then its argument prototype would still apply. */
13798 char $ac_func();
13800 int main() {
13802 /* The GNU C library defines this for functions which it implements
13803 to always fail with ENOSYS. Some functions are actually named
13804 something starting with __ and the normal name is an alias. */
13805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13806 choke me
13807 #else
13808 $ac_func();
13809 #endif
13811 ; return 0; }
13813 if { (eval echo configure:13814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13814 rm -rf conftest*
13815 eval "ac_cv_func_$ac_func=yes"
13816 else
13817 echo "configure: failed program was:" >&5
13818 cat conftest.$ac_ext >&5
13819 rm -rf conftest*
13820 eval "ac_cv_func_$ac_func=no"
13822 rm -f conftest*
13825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13826 echo "$ac_t""yes" 1>&6
13827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13828 cat >> confdefs.h <<EOF
13829 #define $ac_tr_func 1
13832 else
13833 echo "$ac_t""no" 1>&6
13835 done
13842 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
13843 echo "configure:13844: checking for powl declaration" >&5
13844 if test x${glibcpp_cv_func_powl_use+set} != xset; then
13845 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
13846 echo $ac_n "(cached) $ac_c" 1>&6
13847 else
13850 ac_ext=C
13851 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13852 ac_cpp='$CXXCPP $CPPFLAGS'
13853 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13854 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13855 cross_compiling=$ac_cv_prog_cxx_cross
13857 cat > conftest.$ac_ext <<EOF
13858 #line 13859 "configure"
13859 #include "confdefs.h"
13860 #include <math.h>
13861 int main() {
13862 powl(0, 0);
13863 ; return 0; }
13865 if { (eval echo configure:13866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13866 rm -rf conftest*
13867 glibcpp_cv_func_powl_use=yes
13868 else
13869 echo "configure: failed program was:" >&5
13870 cat conftest.$ac_ext >&5
13871 rm -rf conftest*
13872 glibcpp_cv_func_powl_use=no
13874 rm -f conftest*
13875 ac_ext=c
13876 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13877 ac_cpp='$CPP $CPPFLAGS'
13878 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13879 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13880 cross_compiling=$ac_cv_prog_cc_cross
13886 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
13888 if test x$glibcpp_cv_func_powl_use = x"yes"; then
13889 for ac_func in powl
13891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13892 echo "configure:13893: checking for $ac_func" >&5
13893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13894 echo $ac_n "(cached) $ac_c" 1>&6
13895 else
13896 cat > conftest.$ac_ext <<EOF
13897 #line 13898 "configure"
13898 #include "confdefs.h"
13899 /* System header to define __stub macros and hopefully few prototypes,
13900 which can conflict with char $ac_func(); below. */
13901 #include <assert.h>
13902 /* Override any gcc2 internal prototype to avoid an error. */
13903 /* We use char because int might match the return type of a gcc2
13904 builtin and then its argument prototype would still apply. */
13905 char $ac_func();
13907 int main() {
13909 /* The GNU C library defines this for functions which it implements
13910 to always fail with ENOSYS. Some functions are actually named
13911 something starting with __ and the normal name is an alias. */
13912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13913 choke me
13914 #else
13915 $ac_func();
13916 #endif
13918 ; return 0; }
13920 if { (eval echo configure:13921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13921 rm -rf conftest*
13922 eval "ac_cv_func_$ac_func=yes"
13923 else
13924 echo "configure: failed program was:" >&5
13925 cat conftest.$ac_ext >&5
13926 rm -rf conftest*
13927 eval "ac_cv_func_$ac_func=no"
13929 rm -f conftest*
13932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13933 echo "$ac_t""yes" 1>&6
13934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13935 cat >> confdefs.h <<EOF
13936 #define $ac_tr_func 1
13939 else
13940 echo "$ac_t""no" 1>&6
13942 done
13944 else
13946 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
13947 echo "configure:13948: checking for _powl declaration" >&5
13948 if test x${glibcpp_cv_func__powl_use+set} != xset; then
13949 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
13950 echo $ac_n "(cached) $ac_c" 1>&6
13951 else
13954 ac_ext=C
13955 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13956 ac_cpp='$CXXCPP $CPPFLAGS'
13957 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13958 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13959 cross_compiling=$ac_cv_prog_cxx_cross
13961 cat > conftest.$ac_ext <<EOF
13962 #line 13963 "configure"
13963 #include "confdefs.h"
13964 #include <math.h>
13965 int main() {
13966 _powl(0, 0);
13967 ; return 0; }
13969 if { (eval echo configure:13970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13970 rm -rf conftest*
13971 glibcpp_cv_func__powl_use=yes
13972 else
13973 echo "configure: failed program was:" >&5
13974 cat conftest.$ac_ext >&5
13975 rm -rf conftest*
13976 glibcpp_cv_func__powl_use=no
13978 rm -f conftest*
13979 ac_ext=c
13980 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13981 ac_cpp='$CPP $CPPFLAGS'
13982 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13983 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13984 cross_compiling=$ac_cv_prog_cc_cross
13990 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
13992 if test x$glibcpp_cv_func__powl_use = x"yes"; then
13993 for ac_func in _powl
13995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13996 echo "configure:13997: checking for $ac_func" >&5
13997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13998 echo $ac_n "(cached) $ac_c" 1>&6
13999 else
14000 cat > conftest.$ac_ext <<EOF
14001 #line 14002 "configure"
14002 #include "confdefs.h"
14003 /* System header to define __stub macros and hopefully few prototypes,
14004 which can conflict with char $ac_func(); below. */
14005 #include <assert.h>
14006 /* Override any gcc2 internal prototype to avoid an error. */
14007 /* We use char because int might match the return type of a gcc2
14008 builtin and then its argument prototype would still apply. */
14009 char $ac_func();
14011 int main() {
14013 /* The GNU C library defines this for functions which it implements
14014 to always fail with ENOSYS. Some functions are actually named
14015 something starting with __ and the normal name is an alias. */
14016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14017 choke me
14018 #else
14019 $ac_func();
14020 #endif
14022 ; return 0; }
14024 if { (eval echo configure:14025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14025 rm -rf conftest*
14026 eval "ac_cv_func_$ac_func=yes"
14027 else
14028 echo "configure: failed program was:" >&5
14029 cat conftest.$ac_ext >&5
14030 rm -rf conftest*
14031 eval "ac_cv_func_$ac_func=no"
14033 rm -f conftest*
14036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14037 echo "$ac_t""yes" 1>&6
14038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14039 cat >> confdefs.h <<EOF
14040 #define $ac_tr_func 1
14043 else
14044 echo "$ac_t""no" 1>&6
14046 done
14053 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
14054 echo "configure:14055: checking for sqrtl declaration" >&5
14055 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
14056 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
14057 echo $ac_n "(cached) $ac_c" 1>&6
14058 else
14061 ac_ext=C
14062 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14063 ac_cpp='$CXXCPP $CPPFLAGS'
14064 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14065 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14066 cross_compiling=$ac_cv_prog_cxx_cross
14068 cat > conftest.$ac_ext <<EOF
14069 #line 14070 "configure"
14070 #include "confdefs.h"
14071 #include <math.h>
14072 #ifdef HAVE_IEEEFP_H
14073 #include <ieeefp.h>
14074 #endif
14076 int main() {
14077 sqrtl(0);
14078 ; return 0; }
14080 if { (eval echo configure:14081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14081 rm -rf conftest*
14082 glibcpp_cv_func_sqrtl_use=yes
14083 else
14084 echo "configure: failed program was:" >&5
14085 cat conftest.$ac_ext >&5
14086 rm -rf conftest*
14087 glibcpp_cv_func_sqrtl_use=no
14089 rm -f conftest*
14090 ac_ext=c
14091 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14092 ac_cpp='$CPP $CPPFLAGS'
14093 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14094 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14095 cross_compiling=$ac_cv_prog_cc_cross
14101 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
14103 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
14104 for ac_func in sqrtl
14106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14107 echo "configure:14108: checking for $ac_func" >&5
14108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14109 echo $ac_n "(cached) $ac_c" 1>&6
14110 else
14111 cat > conftest.$ac_ext <<EOF
14112 #line 14113 "configure"
14113 #include "confdefs.h"
14114 /* System header to define __stub macros and hopefully few prototypes,
14115 which can conflict with char $ac_func(); below. */
14116 #include <assert.h>
14117 /* Override any gcc2 internal prototype to avoid an error. */
14118 /* We use char because int might match the return type of a gcc2
14119 builtin and then its argument prototype would still apply. */
14120 char $ac_func();
14122 int main() {
14124 /* The GNU C library defines this for functions which it implements
14125 to always fail with ENOSYS. Some functions are actually named
14126 something starting with __ and the normal name is an alias. */
14127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14128 choke me
14129 #else
14130 $ac_func();
14131 #endif
14133 ; return 0; }
14135 if { (eval echo configure:14136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14136 rm -rf conftest*
14137 eval "ac_cv_func_$ac_func=yes"
14138 else
14139 echo "configure: failed program was:" >&5
14140 cat conftest.$ac_ext >&5
14141 rm -rf conftest*
14142 eval "ac_cv_func_$ac_func=no"
14144 rm -f conftest*
14147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14148 echo "$ac_t""yes" 1>&6
14149 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14150 cat >> confdefs.h <<EOF
14151 #define $ac_tr_func 1
14154 else
14155 echo "$ac_t""no" 1>&6
14157 done
14159 else
14161 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
14162 echo "configure:14163: checking for _sqrtl declaration" >&5
14163 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
14164 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
14165 echo $ac_n "(cached) $ac_c" 1>&6
14166 else
14169 ac_ext=C
14170 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14171 ac_cpp='$CXXCPP $CPPFLAGS'
14172 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14173 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14174 cross_compiling=$ac_cv_prog_cxx_cross
14176 cat > conftest.$ac_ext <<EOF
14177 #line 14178 "configure"
14178 #include "confdefs.h"
14179 #include <math.h>
14180 #ifdef HAVE_IEEEFP_H
14181 #include <ieeefp.h>
14182 #endif
14184 int main() {
14185 _sqrtl(0);
14186 ; return 0; }
14188 if { (eval echo configure:14189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14189 rm -rf conftest*
14190 glibcpp_cv_func__sqrtl_use=yes
14191 else
14192 echo "configure: failed program was:" >&5
14193 cat conftest.$ac_ext >&5
14194 rm -rf conftest*
14195 glibcpp_cv_func__sqrtl_use=no
14197 rm -f conftest*
14198 ac_ext=c
14199 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14200 ac_cpp='$CPP $CPPFLAGS'
14201 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14202 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14203 cross_compiling=$ac_cv_prog_cc_cross
14209 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
14211 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
14212 for ac_func in _sqrtl
14214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14215 echo "configure:14216: checking for $ac_func" >&5
14216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14217 echo $ac_n "(cached) $ac_c" 1>&6
14218 else
14219 cat > conftest.$ac_ext <<EOF
14220 #line 14221 "configure"
14221 #include "confdefs.h"
14222 /* System header to define __stub macros and hopefully few prototypes,
14223 which can conflict with char $ac_func(); below. */
14224 #include <assert.h>
14225 /* Override any gcc2 internal prototype to avoid an error. */
14226 /* We use char because int might match the return type of a gcc2
14227 builtin and then its argument prototype would still apply. */
14228 char $ac_func();
14230 int main() {
14232 /* The GNU C library defines this for functions which it implements
14233 to always fail with ENOSYS. Some functions are actually named
14234 something starting with __ and the normal name is an alias. */
14235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14236 choke me
14237 #else
14238 $ac_func();
14239 #endif
14241 ; return 0; }
14243 if { (eval echo configure:14244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14244 rm -rf conftest*
14245 eval "ac_cv_func_$ac_func=yes"
14246 else
14247 echo "configure: failed program was:" >&5
14248 cat conftest.$ac_ext >&5
14249 rm -rf conftest*
14250 eval "ac_cv_func_$ac_func=no"
14252 rm -f conftest*
14255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14256 echo "$ac_t""yes" 1>&6
14257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14258 cat >> confdefs.h <<EOF
14259 #define $ac_tr_func 1
14262 else
14263 echo "$ac_t""no" 1>&6
14265 done
14272 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
14273 echo "configure:14274: checking for sincosl declaration" >&5
14274 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
14275 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
14276 echo $ac_n "(cached) $ac_c" 1>&6
14277 else
14280 ac_ext=C
14281 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14282 ac_cpp='$CXXCPP $CPPFLAGS'
14283 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14284 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14285 cross_compiling=$ac_cv_prog_cxx_cross
14287 cat > conftest.$ac_ext <<EOF
14288 #line 14289 "configure"
14289 #include "confdefs.h"
14290 #include <math.h>
14291 int main() {
14292 sincosl(0, 0, 0);
14293 ; return 0; }
14295 if { (eval echo configure:14296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14296 rm -rf conftest*
14297 glibcpp_cv_func_sincosl_use=yes
14298 else
14299 echo "configure: failed program was:" >&5
14300 cat conftest.$ac_ext >&5
14301 rm -rf conftest*
14302 glibcpp_cv_func_sincosl_use=no
14304 rm -f conftest*
14305 ac_ext=c
14306 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14307 ac_cpp='$CPP $CPPFLAGS'
14308 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14309 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14310 cross_compiling=$ac_cv_prog_cc_cross
14316 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
14318 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
14319 for ac_func in sincosl
14321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14322 echo "configure:14323: checking for $ac_func" >&5
14323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14324 echo $ac_n "(cached) $ac_c" 1>&6
14325 else
14326 cat > conftest.$ac_ext <<EOF
14327 #line 14328 "configure"
14328 #include "confdefs.h"
14329 /* System header to define __stub macros and hopefully few prototypes,
14330 which can conflict with char $ac_func(); below. */
14331 #include <assert.h>
14332 /* Override any gcc2 internal prototype to avoid an error. */
14333 /* We use char because int might match the return type of a gcc2
14334 builtin and then its argument prototype would still apply. */
14335 char $ac_func();
14337 int main() {
14339 /* The GNU C library defines this for functions which it implements
14340 to always fail with ENOSYS. Some functions are actually named
14341 something starting with __ and the normal name is an alias. */
14342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14343 choke me
14344 #else
14345 $ac_func();
14346 #endif
14348 ; return 0; }
14350 if { (eval echo configure:14351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14351 rm -rf conftest*
14352 eval "ac_cv_func_$ac_func=yes"
14353 else
14354 echo "configure: failed program was:" >&5
14355 cat conftest.$ac_ext >&5
14356 rm -rf conftest*
14357 eval "ac_cv_func_$ac_func=no"
14359 rm -f conftest*
14362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14363 echo "$ac_t""yes" 1>&6
14364 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14365 cat >> confdefs.h <<EOF
14366 #define $ac_tr_func 1
14369 else
14370 echo "$ac_t""no" 1>&6
14372 done
14374 else
14376 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
14377 echo "configure:14378: checking for _sincosl declaration" >&5
14378 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
14379 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
14380 echo $ac_n "(cached) $ac_c" 1>&6
14381 else
14384 ac_ext=C
14385 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14386 ac_cpp='$CXXCPP $CPPFLAGS'
14387 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14388 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14389 cross_compiling=$ac_cv_prog_cxx_cross
14391 cat > conftest.$ac_ext <<EOF
14392 #line 14393 "configure"
14393 #include "confdefs.h"
14394 #include <math.h>
14395 int main() {
14396 _sincosl(0, 0, 0);
14397 ; return 0; }
14399 if { (eval echo configure:14400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14400 rm -rf conftest*
14401 glibcpp_cv_func__sincosl_use=yes
14402 else
14403 echo "configure: failed program was:" >&5
14404 cat conftest.$ac_ext >&5
14405 rm -rf conftest*
14406 glibcpp_cv_func__sincosl_use=no
14408 rm -f conftest*
14409 ac_ext=c
14410 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14411 ac_cpp='$CPP $CPPFLAGS'
14412 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14413 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14414 cross_compiling=$ac_cv_prog_cc_cross
14420 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
14422 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
14423 for ac_func in _sincosl
14425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14426 echo "configure:14427: checking for $ac_func" >&5
14427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14428 echo $ac_n "(cached) $ac_c" 1>&6
14429 else
14430 cat > conftest.$ac_ext <<EOF
14431 #line 14432 "configure"
14432 #include "confdefs.h"
14433 /* System header to define __stub macros and hopefully few prototypes,
14434 which can conflict with char $ac_func(); below. */
14435 #include <assert.h>
14436 /* Override any gcc2 internal prototype to avoid an error. */
14437 /* We use char because int might match the return type of a gcc2
14438 builtin and then its argument prototype would still apply. */
14439 char $ac_func();
14441 int main() {
14443 /* The GNU C library defines this for functions which it implements
14444 to always fail with ENOSYS. Some functions are actually named
14445 something starting with __ and the normal name is an alias. */
14446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14447 choke me
14448 #else
14449 $ac_func();
14450 #endif
14452 ; return 0; }
14454 if { (eval echo configure:14455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14455 rm -rf conftest*
14456 eval "ac_cv_func_$ac_func=yes"
14457 else
14458 echo "configure: failed program was:" >&5
14459 cat conftest.$ac_ext >&5
14460 rm -rf conftest*
14461 eval "ac_cv_func_$ac_func=no"
14463 rm -f conftest*
14466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14467 echo "$ac_t""yes" 1>&6
14468 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14469 cat >> confdefs.h <<EOF
14470 #define $ac_tr_func 1
14473 else
14474 echo "$ac_t""no" 1>&6
14476 done
14483 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
14484 echo "configure:14485: checking for finitel declaration" >&5
14485 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
14486 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
14487 echo $ac_n "(cached) $ac_c" 1>&6
14488 else
14491 ac_ext=C
14492 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14493 ac_cpp='$CXXCPP $CPPFLAGS'
14494 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14495 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14496 cross_compiling=$ac_cv_prog_cxx_cross
14498 cat > conftest.$ac_ext <<EOF
14499 #line 14500 "configure"
14500 #include "confdefs.h"
14501 #include <math.h>
14502 #ifdef HAVE_IEEEFP_H
14503 #include <ieeefp.h>
14504 #endif
14506 int main() {
14507 finitel(0);
14508 ; return 0; }
14510 if { (eval echo configure:14511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14511 rm -rf conftest*
14512 glibcpp_cv_func_finitel_use=yes
14513 else
14514 echo "configure: failed program was:" >&5
14515 cat conftest.$ac_ext >&5
14516 rm -rf conftest*
14517 glibcpp_cv_func_finitel_use=no
14519 rm -f conftest*
14520 ac_ext=c
14521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14522 ac_cpp='$CPP $CPPFLAGS'
14523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14525 cross_compiling=$ac_cv_prog_cc_cross
14531 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
14533 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
14534 for ac_func in finitel
14536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14537 echo "configure:14538: checking for $ac_func" >&5
14538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14539 echo $ac_n "(cached) $ac_c" 1>&6
14540 else
14541 cat > conftest.$ac_ext <<EOF
14542 #line 14543 "configure"
14543 #include "confdefs.h"
14544 /* System header to define __stub macros and hopefully few prototypes,
14545 which can conflict with char $ac_func(); below. */
14546 #include <assert.h>
14547 /* Override any gcc2 internal prototype to avoid an error. */
14548 /* We use char because int might match the return type of a gcc2
14549 builtin and then its argument prototype would still apply. */
14550 char $ac_func();
14552 int main() {
14554 /* The GNU C library defines this for functions which it implements
14555 to always fail with ENOSYS. Some functions are actually named
14556 something starting with __ and the normal name is an alias. */
14557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14558 choke me
14559 #else
14560 $ac_func();
14561 #endif
14563 ; return 0; }
14565 if { (eval echo configure:14566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14566 rm -rf conftest*
14567 eval "ac_cv_func_$ac_func=yes"
14568 else
14569 echo "configure: failed program was:" >&5
14570 cat conftest.$ac_ext >&5
14571 rm -rf conftest*
14572 eval "ac_cv_func_$ac_func=no"
14574 rm -f conftest*
14577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14578 echo "$ac_t""yes" 1>&6
14579 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14580 cat >> confdefs.h <<EOF
14581 #define $ac_tr_func 1
14584 else
14585 echo "$ac_t""no" 1>&6
14587 done
14589 else
14591 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
14592 echo "configure:14593: checking for _finitel declaration" >&5
14593 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
14594 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
14595 echo $ac_n "(cached) $ac_c" 1>&6
14596 else
14599 ac_ext=C
14600 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14601 ac_cpp='$CXXCPP $CPPFLAGS'
14602 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14603 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14604 cross_compiling=$ac_cv_prog_cxx_cross
14606 cat > conftest.$ac_ext <<EOF
14607 #line 14608 "configure"
14608 #include "confdefs.h"
14609 #include <math.h>
14610 #ifdef HAVE_IEEEFP_H
14611 #include <ieeefp.h>
14612 #endif
14614 int main() {
14615 _finitel(0);
14616 ; return 0; }
14618 if { (eval echo configure:14619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14619 rm -rf conftest*
14620 glibcpp_cv_func__finitel_use=yes
14621 else
14622 echo "configure: failed program was:" >&5
14623 cat conftest.$ac_ext >&5
14624 rm -rf conftest*
14625 glibcpp_cv_func__finitel_use=no
14627 rm -f conftest*
14628 ac_ext=c
14629 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14630 ac_cpp='$CPP $CPPFLAGS'
14631 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14632 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14633 cross_compiling=$ac_cv_prog_cc_cross
14639 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
14641 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
14642 for ac_func in _finitel
14644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14645 echo "configure:14646: checking for $ac_func" >&5
14646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14647 echo $ac_n "(cached) $ac_c" 1>&6
14648 else
14649 cat > conftest.$ac_ext <<EOF
14650 #line 14651 "configure"
14651 #include "confdefs.h"
14652 /* System header to define __stub macros and hopefully few prototypes,
14653 which can conflict with char $ac_func(); below. */
14654 #include <assert.h>
14655 /* Override any gcc2 internal prototype to avoid an error. */
14656 /* We use char because int might match the return type of a gcc2
14657 builtin and then its argument prototype would still apply. */
14658 char $ac_func();
14660 int main() {
14662 /* The GNU C library defines this for functions which it implements
14663 to always fail with ENOSYS. Some functions are actually named
14664 something starting with __ and the normal name is an alias. */
14665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14666 choke me
14667 #else
14668 $ac_func();
14669 #endif
14671 ; return 0; }
14673 if { (eval echo configure:14674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14674 rm -rf conftest*
14675 eval "ac_cv_func_$ac_func=yes"
14676 else
14677 echo "configure: failed program was:" >&5
14678 cat conftest.$ac_ext >&5
14679 rm -rf conftest*
14680 eval "ac_cv_func_$ac_func=no"
14682 rm -f conftest*
14685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14686 echo "$ac_t""yes" 1>&6
14687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14688 cat >> confdefs.h <<EOF
14689 #define $ac_tr_func 1
14692 else
14693 echo "$ac_t""no" 1>&6
14695 done
14703 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
14704 echo "configure:14705: checking for _float trig functions" >&5
14705 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
14706 echo $ac_n "(cached) $ac_c" 1>&6
14707 else
14710 ac_ext=C
14711 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14712 ac_cpp='$CXXCPP $CPPFLAGS'
14713 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14714 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14715 cross_compiling=$ac_cv_prog_cxx_cross
14717 cat > conftest.$ac_ext <<EOF
14718 #line 14719 "configure"
14719 #include "confdefs.h"
14720 #include <math.h>
14721 int main() {
14722 `for x in _acosf _asinf _atanf \
14723 _cosf _sinf _tanf \
14724 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
14725 ; return 0; }
14727 if { (eval echo configure:14728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14728 rm -rf conftest*
14729 glibcpp_cv_func__float_trig_use=yes
14730 else
14731 echo "configure: failed program was:" >&5
14732 cat conftest.$ac_ext >&5
14733 rm -rf conftest*
14734 glibcpp_cv_func__float_trig_use=no
14736 rm -f conftest*
14737 ac_ext=c
14738 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14739 ac_cpp='$CPP $CPPFLAGS'
14740 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14741 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14742 cross_compiling=$ac_cv_prog_cc_cross
14746 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
14747 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
14748 for ac_func in _acosf _asinf _atanf \
14749 _cosf _sinf _tanf \
14750 _coshf _sinhf _tanhf
14752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14753 echo "configure:14754: checking for $ac_func" >&5
14754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14755 echo $ac_n "(cached) $ac_c" 1>&6
14756 else
14757 cat > conftest.$ac_ext <<EOF
14758 #line 14759 "configure"
14759 #include "confdefs.h"
14760 /* System header to define __stub macros and hopefully few prototypes,
14761 which can conflict with char $ac_func(); below. */
14762 #include <assert.h>
14763 /* Override any gcc2 internal prototype to avoid an error. */
14764 /* We use char because int might match the return type of a gcc2
14765 builtin and then its argument prototype would still apply. */
14766 char $ac_func();
14768 int main() {
14770 /* The GNU C library defines this for functions which it implements
14771 to always fail with ENOSYS. Some functions are actually named
14772 something starting with __ and the normal name is an alias. */
14773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14774 choke me
14775 #else
14776 $ac_func();
14777 #endif
14779 ; return 0; }
14781 if { (eval echo configure:14782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14782 rm -rf conftest*
14783 eval "ac_cv_func_$ac_func=yes"
14784 else
14785 echo "configure: failed program was:" >&5
14786 cat conftest.$ac_ext >&5
14787 rm -rf conftest*
14788 eval "ac_cv_func_$ac_func=no"
14790 rm -f conftest*
14793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14794 echo "$ac_t""yes" 1>&6
14795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14796 cat >> confdefs.h <<EOF
14797 #define $ac_tr_func 1
14800 else
14801 echo "$ac_t""no" 1>&6
14803 done
14808 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
14809 echo "configure:14810: checking for _float round functions" >&5
14810 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
14811 echo $ac_n "(cached) $ac_c" 1>&6
14812 else
14815 ac_ext=C
14816 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14817 ac_cpp='$CXXCPP $CPPFLAGS'
14818 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14819 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14820 cross_compiling=$ac_cv_prog_cxx_cross
14822 cat > conftest.$ac_ext <<EOF
14823 #line 14824 "configure"
14824 #include "confdefs.h"
14825 #include <math.h>
14826 int main() {
14827 `for x in _ceilf _floorf; do echo "$x (0);"; done`
14828 ; return 0; }
14830 if { (eval echo configure:14831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14831 rm -rf conftest*
14832 glibcpp_cv_func__float_round_use=yes
14833 else
14834 echo "configure: failed program was:" >&5
14835 cat conftest.$ac_ext >&5
14836 rm -rf conftest*
14837 glibcpp_cv_func__float_round_use=no
14839 rm -f conftest*
14840 ac_ext=c
14841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14842 ac_cpp='$CPP $CPPFLAGS'
14843 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14844 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14845 cross_compiling=$ac_cv_prog_cc_cross
14849 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
14850 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
14851 for ac_func in _ceilf _floorf
14853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14854 echo "configure:14855: checking for $ac_func" >&5
14855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14856 echo $ac_n "(cached) $ac_c" 1>&6
14857 else
14858 cat > conftest.$ac_ext <<EOF
14859 #line 14860 "configure"
14860 #include "confdefs.h"
14861 /* System header to define __stub macros and hopefully few prototypes,
14862 which can conflict with char $ac_func(); below. */
14863 #include <assert.h>
14864 /* Override any gcc2 internal prototype to avoid an error. */
14865 /* We use char because int might match the return type of a gcc2
14866 builtin and then its argument prototype would still apply. */
14867 char $ac_func();
14869 int main() {
14871 /* The GNU C library defines this for functions which it implements
14872 to always fail with ENOSYS. Some functions are actually named
14873 something starting with __ and the normal name is an alias. */
14874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14875 choke me
14876 #else
14877 $ac_func();
14878 #endif
14880 ; return 0; }
14882 if { (eval echo configure:14883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14883 rm -rf conftest*
14884 eval "ac_cv_func_$ac_func=yes"
14885 else
14886 echo "configure: failed program was:" >&5
14887 cat conftest.$ac_ext >&5
14888 rm -rf conftest*
14889 eval "ac_cv_func_$ac_func=no"
14891 rm -f conftest*
14894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14895 echo "$ac_t""yes" 1>&6
14896 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14897 cat >> confdefs.h <<EOF
14898 #define $ac_tr_func 1
14901 else
14902 echo "$ac_t""no" 1>&6
14904 done
14910 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
14911 echo "configure:14912: checking for _long double trig functions" >&5
14912 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
14913 echo $ac_n "(cached) $ac_c" 1>&6
14914 else
14917 ac_ext=C
14918 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14919 ac_cpp='$CXXCPP $CPPFLAGS'
14920 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14921 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14922 cross_compiling=$ac_cv_prog_cxx_cross
14924 cat > conftest.$ac_ext <<EOF
14925 #line 14926 "configure"
14926 #include "confdefs.h"
14927 #include <math.h>
14928 int main() {
14929 `for x in _acosl _asinl _atanl \
14930 _cosl _sinl _tanl \
14931 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
14932 ; return 0; }
14934 if { (eval echo configure:14935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14935 rm -rf conftest*
14936 glibcpp_cv_func__long_double_trig_use=yes
14937 else
14938 echo "configure: failed program was:" >&5
14939 cat conftest.$ac_ext >&5
14940 rm -rf conftest*
14941 glibcpp_cv_func__long_double_trig_use=no
14943 rm -f conftest*
14944 ac_ext=c
14945 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14946 ac_cpp='$CPP $CPPFLAGS'
14947 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14948 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14949 cross_compiling=$ac_cv_prog_cc_cross
14953 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
14954 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
14955 for ac_func in _acosl _asinl _atanl \
14956 _cosl _sinl _tanl \
14957 _coshl _sinhl _tanhl
14959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14960 echo "configure:14961: checking for $ac_func" >&5
14961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14962 echo $ac_n "(cached) $ac_c" 1>&6
14963 else
14964 cat > conftest.$ac_ext <<EOF
14965 #line 14966 "configure"
14966 #include "confdefs.h"
14967 /* System header to define __stub macros and hopefully few prototypes,
14968 which can conflict with char $ac_func(); below. */
14969 #include <assert.h>
14970 /* Override any gcc2 internal prototype to avoid an error. */
14971 /* We use char because int might match the return type of a gcc2
14972 builtin and then its argument prototype would still apply. */
14973 char $ac_func();
14975 int main() {
14977 /* The GNU C library defines this for functions which it implements
14978 to always fail with ENOSYS. Some functions are actually named
14979 something starting with __ and the normal name is an alias. */
14980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14981 choke me
14982 #else
14983 $ac_func();
14984 #endif
14986 ; return 0; }
14988 if { (eval echo configure:14989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14989 rm -rf conftest*
14990 eval "ac_cv_func_$ac_func=yes"
14991 else
14992 echo "configure: failed program was:" >&5
14993 cat conftest.$ac_ext >&5
14994 rm -rf conftest*
14995 eval "ac_cv_func_$ac_func=no"
14997 rm -f conftest*
15000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15001 echo "$ac_t""yes" 1>&6
15002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15003 cat >> confdefs.h <<EOF
15004 #define $ac_tr_func 1
15007 else
15008 echo "$ac_t""no" 1>&6
15010 done
15015 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
15016 echo "configure:15017: checking for _long double round functions" >&5
15017 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
15018 echo $ac_n "(cached) $ac_c" 1>&6
15019 else
15022 ac_ext=C
15023 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15024 ac_cpp='$CXXCPP $CPPFLAGS'
15025 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15026 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15027 cross_compiling=$ac_cv_prog_cxx_cross
15029 cat > conftest.$ac_ext <<EOF
15030 #line 15031 "configure"
15031 #include "confdefs.h"
15032 #include <math.h>
15033 int main() {
15034 `for x in _ceill _floorl; do echo "$x (0);"; done`
15035 ; return 0; }
15037 if { (eval echo configure:15038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15038 rm -rf conftest*
15039 glibcpp_cv_func__long_double_round_use=yes
15040 else
15041 echo "configure: failed program was:" >&5
15042 cat conftest.$ac_ext >&5
15043 rm -rf conftest*
15044 glibcpp_cv_func__long_double_round_use=no
15046 rm -f conftest*
15047 ac_ext=c
15048 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15049 ac_cpp='$CPP $CPPFLAGS'
15050 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15051 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15052 cross_compiling=$ac_cv_prog_cc_cross
15056 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
15057 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
15058 for ac_func in _ceill _floorl
15060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15061 echo "configure:15062: checking for $ac_func" >&5
15062 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15063 echo $ac_n "(cached) $ac_c" 1>&6
15064 else
15065 cat > conftest.$ac_ext <<EOF
15066 #line 15067 "configure"
15067 #include "confdefs.h"
15068 /* System header to define __stub macros and hopefully few prototypes,
15069 which can conflict with char $ac_func(); below. */
15070 #include <assert.h>
15071 /* Override any gcc2 internal prototype to avoid an error. */
15072 /* We use char because int might match the return type of a gcc2
15073 builtin and then its argument prototype would still apply. */
15074 char $ac_func();
15076 int main() {
15078 /* The GNU C library defines this for functions which it implements
15079 to always fail with ENOSYS. Some functions are actually named
15080 something starting with __ and the normal name is an alias. */
15081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15082 choke me
15083 #else
15084 $ac_func();
15085 #endif
15087 ; return 0; }
15089 if { (eval echo configure:15090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15090 rm -rf conftest*
15091 eval "ac_cv_func_$ac_func=yes"
15092 else
15093 echo "configure: failed program was:" >&5
15094 cat conftest.$ac_ext >&5
15095 rm -rf conftest*
15096 eval "ac_cv_func_$ac_func=no"
15098 rm -f conftest*
15101 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15102 echo "$ac_t""yes" 1>&6
15103 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15104 cat >> confdefs.h <<EOF
15105 #define $ac_tr_func 1
15108 else
15109 echo "$ac_t""no" 1>&6
15111 done
15116 LIBS="$ac_save_LIBS"
15117 CXXFLAGS="$ac_save_CXXFLAGS"
15120 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
15121 echo "configure:15122: checking for main in -lm" >&5
15122 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
15123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15124 echo $ac_n "(cached) $ac_c" 1>&6
15125 else
15126 ac_save_LIBS="$LIBS"
15127 LIBS="-lm $LIBS"
15128 cat > conftest.$ac_ext <<EOF
15129 #line 15130 "configure"
15130 #include "confdefs.h"
15132 int main() {
15133 main()
15134 ; return 0; }
15136 if { (eval echo configure:15137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15137 rm -rf conftest*
15138 eval "ac_cv_lib_$ac_lib_var=yes"
15139 else
15140 echo "configure: failed program was:" >&5
15141 cat conftest.$ac_ext >&5
15142 rm -rf conftest*
15143 eval "ac_cv_lib_$ac_lib_var=no"
15145 rm -f conftest*
15146 LIBS="$ac_save_LIBS"
15149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15150 echo "$ac_t""yes" 1>&6
15151 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
15152 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
15153 cat >> confdefs.h <<EOF
15154 #define $ac_tr_lib 1
15157 LIBS="-lm $LIBS"
15159 else
15160 echo "$ac_t""no" 1>&6
15163 for ac_func in nan hypot hypotf atan2f expf copysignf
15165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15166 echo "configure:15167: checking for $ac_func" >&5
15167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15168 echo $ac_n "(cached) $ac_c" 1>&6
15169 else
15170 cat > conftest.$ac_ext <<EOF
15171 #line 15172 "configure"
15172 #include "confdefs.h"
15173 /* System header to define __stub macros and hopefully few prototypes,
15174 which can conflict with char $ac_func(); below. */
15175 #include <assert.h>
15176 /* Override any gcc2 internal prototype to avoid an error. */
15177 /* We use char because int might match the return type of a gcc2
15178 builtin and then its argument prototype would still apply. */
15179 char $ac_func();
15181 int main() {
15183 /* The GNU C library defines this for functions which it implements
15184 to always fail with ENOSYS. Some functions are actually named
15185 something starting with __ and the normal name is an alias. */
15186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15187 choke me
15188 #else
15189 $ac_func();
15190 #endif
15192 ; return 0; }
15194 if { (eval echo configure:15195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15195 rm -rf conftest*
15196 eval "ac_cv_func_$ac_func=yes"
15197 else
15198 echo "configure: failed program was:" >&5
15199 cat conftest.$ac_ext >&5
15200 rm -rf conftest*
15201 eval "ac_cv_func_$ac_func=no"
15203 rm -f conftest*
15206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15207 echo "$ac_t""yes" 1>&6
15208 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15209 cat >> confdefs.h <<EOF
15210 #define $ac_tr_func 1
15213 else
15214 echo "$ac_t""no" 1>&6
15215 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15217 done
15221 USE_COMPLEX_LONG_DOUBLE=no
15222 if test x$ac_cv_func_atan2l = x"yes" \
15223 && test x$ac_cv_func_copysignl = x"yes"; then
15224 USE_COMPLEX_LONG_DOUBLE=yes
15225 for ac_func in hypotl signbitl
15227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15228 echo "configure:15229: checking for $ac_func" >&5
15229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15230 echo $ac_n "(cached) $ac_c" 1>&6
15231 else
15232 cat > conftest.$ac_ext <<EOF
15233 #line 15234 "configure"
15234 #include "confdefs.h"
15235 /* System header to define __stub macros and hopefully few prototypes,
15236 which can conflict with char $ac_func(); below. */
15237 #include <assert.h>
15238 /* Override any gcc2 internal prototype to avoid an error. */
15239 /* We use char because int might match the return type of a gcc2
15240 builtin and then its argument prototype would still apply. */
15241 char $ac_func();
15243 int main() {
15245 /* The GNU C library defines this for functions which it implements
15246 to always fail with ENOSYS. Some functions are actually named
15247 something starting with __ and the normal name is an alias. */
15248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15249 choke me
15250 #else
15251 $ac_func();
15252 #endif
15254 ; return 0; }
15256 if { (eval echo configure:15257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15257 rm -rf conftest*
15258 eval "ac_cv_func_$ac_func=yes"
15259 else
15260 echo "configure: failed program was:" >&5
15261 cat conftest.$ac_ext >&5
15262 rm -rf conftest*
15263 eval "ac_cv_func_$ac_func=no"
15265 rm -f conftest*
15268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15269 echo "$ac_t""yes" 1>&6
15270 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15271 cat >> confdefs.h <<EOF
15272 #define $ac_tr_func 1
15275 else
15276 echo "$ac_t""no" 1>&6
15277 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15279 done
15289 echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
15290 echo "configure:15291: checking for GNU C++ __complex__ support" >&5
15291 if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
15292 echo $ac_n "(cached) $ac_c" 1>&6
15293 else
15296 ac_ext=C
15297 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15298 ac_cpp='$CXXCPP $CPPFLAGS'
15299 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15300 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15301 cross_compiling=$ac_cv_prog_cxx_cross
15303 cat > conftest.$ac_ext <<EOF
15304 #line 15305 "configure"
15305 #include "confdefs.h"
15306 struct dcomplex { __complex__ double x; }; \
15307 dcomplex f(const dcomplex& x) { return dcomplex(x); }
15308 int main() {
15310 dcomplex x; f(x);
15311 ; return 0; }
15313 if { (eval echo configure:15314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15314 rm -rf conftest*
15315 glibcpp_cv_complex=ok
15316 else
15317 echo "configure: failed program was:" >&5
15318 cat conftest.$ac_ext >&5
15319 rm -rf conftest*
15320 glibcpp_cv_complex=buggy
15323 rm -f conftest*
15324 ac_ext=c
15325 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15326 ac_cpp='$CPP $CPPFLAGS'
15327 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15328 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15329 cross_compiling=$ac_cv_prog_cc_cross
15334 echo "$ac_t""$glibcpp_cv_complex" 1>&6
15335 if test $glibcpp_cv_complex = buggy; then
15336 cat >> confdefs.h <<\EOF
15337 #define _GLIBCPP_BUGGY_COMPLEX 1
15342 echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
15343 echo "configure:15344: checking for GNU C++ __complex__ float support" >&5
15344 if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
15345 echo $ac_n "(cached) $ac_c" 1>&6
15346 else
15349 ac_ext=C
15350 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15351 ac_cpp='$CXXCPP $CPPFLAGS'
15352 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15353 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15354 cross_compiling=$ac_cv_prog_cxx_cross
15356 rm -f conftest.h
15357 cat > conftest.h <<EOB
15359 // Check for buggy __complex__ that causes ICE in most versions of egcs
15360 // and gcc-2.95.x on certain platforms (eg., x86-win32).
15362 // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
15363 // more info on the bug itself.
15365 struct
15366 float_complex
15368 __complex__ float m_value;
15369 float_complex (float = 0.0f, float = 0.0f);
15370 float_complex (__complex__ float val) : m_value (val) {}
15371 float_complex foo (const float_complex &val)
15372 { return float_complex (~val.m_value); }
15375 cat > conftest.$ac_ext <<EOF
15376 #line 15377 "configure"
15377 #include "confdefs.h"
15378 #include "conftest.h"
15379 int main() {
15381 ; return 0; }
15383 if { (eval echo configure:15384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15384 rm -rf conftest*
15385 glibcpp_cv_float_complex=ok
15386 else
15387 echo "configure: failed program was:" >&5
15388 cat conftest.$ac_ext >&5
15389 rm -rf conftest*
15390 glibcpp_cv_float_complex=buggy
15393 rm -f conftest*
15394 ac_ext=c
15395 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15396 ac_cpp='$CPP $CPPFLAGS'
15397 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15398 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15399 cross_compiling=$ac_cv_prog_cc_cross
15404 echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
15405 if test $glibcpp_cv_float_complex = buggy; then
15406 cat >> confdefs.h <<\EOF
15407 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
15414 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
15415 echo "configure:15416: checking for mbstate_t" >&5
15416 cat > conftest.$ac_ext <<EOF
15417 #line 15418 "configure"
15418 #include "confdefs.h"
15419 #include <wchar.h>
15420 int main() {
15421 mbstate_t teststate;
15422 ; return 0; }
15424 if { (eval echo configure:15425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15425 rm -rf conftest*
15426 have_mbstate_t=yes
15427 else
15428 echo "configure: failed program was:" >&5
15429 cat conftest.$ac_ext >&5
15430 rm -rf conftest*
15431 have_mbstate_t=no
15433 rm -f conftest*
15434 echo "$ac_t""$have_mbstate_t" 1>&6
15435 if test x"$have_mbstate_t" = xyes; then
15436 cat >> confdefs.h <<\EOF
15437 #define HAVE_MBSTATE_T 1
15442 for ac_hdr in wchar.h
15444 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15445 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15446 echo "configure:15447: checking for $ac_hdr" >&5
15447 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15448 echo $ac_n "(cached) $ac_c" 1>&6
15449 else
15450 cat > conftest.$ac_ext <<EOF
15451 #line 15452 "configure"
15452 #include "confdefs.h"
15453 #include <$ac_hdr>
15455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15456 { (eval echo configure:15457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15458 if test -z "$ac_err"; then
15459 rm -rf conftest*
15460 eval "ac_cv_header_$ac_safe=yes"
15461 else
15462 echo "$ac_err" >&5
15463 echo "configure: failed program was:" >&5
15464 cat conftest.$ac_ext >&5
15465 rm -rf conftest*
15466 eval "ac_cv_header_$ac_safe=no"
15468 rm -f conftest*
15470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15471 echo "$ac_t""yes" 1>&6
15472 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15473 cat >> confdefs.h <<EOF
15474 #define $ac_tr_hdr 1
15476 ac_has_wchar_h=yes
15477 else
15478 echo "$ac_t""no" 1>&6
15479 ac_has_wchar_h=no
15481 done
15483 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
15484 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
15485 echo "configure:15486: checking for wctype.h" >&5
15486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15487 echo $ac_n "(cached) $ac_c" 1>&6
15488 else
15489 cat > conftest.$ac_ext <<EOF
15490 #line 15491 "configure"
15491 #include "confdefs.h"
15492 #include <wctype.h>
15494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15495 { (eval echo configure:15496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15497 if test -z "$ac_err"; then
15498 rm -rf conftest*
15499 eval "ac_cv_header_$ac_safe=yes"
15500 else
15501 echo "$ac_err" >&5
15502 echo "configure: failed program was:" >&5
15503 cat conftest.$ac_ext >&5
15504 rm -rf conftest*
15505 eval "ac_cv_header_$ac_safe=no"
15507 rm -f conftest*
15509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15510 echo "$ac_t""yes" 1>&6
15511 ac_has_wctype_h=yes
15512 else
15513 echo "$ac_t""no" 1>&6
15514 ac_has_wctype_h=no
15518 if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
15519 && test x"$enable_c_mbchar" != xno; then
15521 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
15522 echo "configure:15523: checking for WCHAR_MIN and WCHAR_MAX" >&5
15523 cat > conftest.$ac_ext <<EOF
15524 #line 15525 "configure"
15525 #include "confdefs.h"
15526 #include <wchar.h>
15527 int main() {
15528 int i = WCHAR_MIN; int j = WCHAR_MAX;
15529 ; return 0; }
15531 if { (eval echo configure:15532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15532 rm -rf conftest*
15533 has_wchar_minmax=yes
15534 else
15535 echo "configure: failed program was:" >&5
15536 cat conftest.$ac_ext >&5
15537 rm -rf conftest*
15538 has_wchar_minmax=no
15540 rm -f conftest*
15541 echo "$ac_t""$has_wchar_minmax" 1>&6
15543 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
15544 echo "configure:15545: checking for WEOF" >&5
15545 cat > conftest.$ac_ext <<EOF
15546 #line 15547 "configure"
15547 #include "confdefs.h"
15549 #include <wchar.h>
15550 #include <stddef.h>
15551 int main() {
15552 wint_t i = WEOF;
15553 ; return 0; }
15555 if { (eval echo configure:15556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15556 rm -rf conftest*
15557 has_weof=yes
15558 else
15559 echo "configure: failed program was:" >&5
15560 cat conftest.$ac_ext >&5
15561 rm -rf conftest*
15562 has_weof=no
15564 rm -f conftest*
15565 echo "$ac_t""$has_weof" 1>&6
15567 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
15568 wcsrtombs mbsrtowcs
15570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15571 echo "configure:15572: checking for $ac_func" >&5
15572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15573 echo $ac_n "(cached) $ac_c" 1>&6
15574 else
15575 cat > conftest.$ac_ext <<EOF
15576 #line 15577 "configure"
15577 #include "confdefs.h"
15578 /* System header to define __stub macros and hopefully few prototypes,
15579 which can conflict with char $ac_func(); below. */
15580 #include <assert.h>
15581 /* Override any gcc2 internal prototype to avoid an error. */
15582 /* We use char because int might match the return type of a gcc2
15583 builtin and then its argument prototype would still apply. */
15584 char $ac_func();
15586 int main() {
15588 /* The GNU C library defines this for functions which it implements
15589 to always fail with ENOSYS. Some functions are actually named
15590 something starting with __ and the normal name is an alias. */
15591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15592 choke me
15593 #else
15594 $ac_func();
15595 #endif
15597 ; return 0; }
15599 if { (eval echo configure:15600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15600 rm -rf conftest*
15601 eval "ac_cv_func_$ac_func=yes"
15602 else
15603 echo "configure: failed program was:" >&5
15604 cat conftest.$ac_ext >&5
15605 rm -rf conftest*
15606 eval "ac_cv_func_$ac_func=no"
15608 rm -f conftest*
15611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15612 echo "$ac_t""yes" 1>&6
15613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15614 cat >> confdefs.h <<EOF
15615 #define $ac_tr_func 1
15617 ac_wfuncs=yes
15618 else
15619 echo "$ac_t""no" 1>&6
15620 ac_wfuncs=no
15622 done
15625 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
15626 echo "configure:15627: checking for ISO C99 wchar_t support" >&5
15627 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
15628 && test x"$ac_wfuncs" = xyes; then
15629 ac_isoC99_wchar_t=yes
15630 else
15631 ac_isoC99_wchar_t=no
15633 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
15635 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
15636 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
15637 echo "configure:15638: checking for iconv.h" >&5
15638 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15639 echo $ac_n "(cached) $ac_c" 1>&6
15640 else
15641 cat > conftest.$ac_ext <<EOF
15642 #line 15643 "configure"
15643 #include "confdefs.h"
15644 #include <iconv.h>
15646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15647 { (eval echo configure:15648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15649 if test -z "$ac_err"; then
15650 rm -rf conftest*
15651 eval "ac_cv_header_$ac_safe=yes"
15652 else
15653 echo "$ac_err" >&5
15654 echo "configure: failed program was:" >&5
15655 cat conftest.$ac_ext >&5
15656 rm -rf conftest*
15657 eval "ac_cv_header_$ac_safe=no"
15659 rm -f conftest*
15661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15662 echo "$ac_t""yes" 1>&6
15663 ac_has_iconv_h=yes
15664 else
15665 echo "$ac_t""no" 1>&6
15666 ac_has_iconv_h=no
15669 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
15670 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
15671 echo "configure:15672: checking for langinfo.h" >&5
15672 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15673 echo $ac_n "(cached) $ac_c" 1>&6
15674 else
15675 cat > conftest.$ac_ext <<EOF
15676 #line 15677 "configure"
15677 #include "confdefs.h"
15678 #include <langinfo.h>
15680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15681 { (eval echo configure:15682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15683 if test -z "$ac_err"; then
15684 rm -rf conftest*
15685 eval "ac_cv_header_$ac_safe=yes"
15686 else
15687 echo "$ac_err" >&5
15688 echo "configure: failed program was:" >&5
15689 cat conftest.$ac_ext >&5
15690 rm -rf conftest*
15691 eval "ac_cv_header_$ac_safe=no"
15693 rm -f conftest*
15695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15696 echo "$ac_t""yes" 1>&6
15697 ac_has_langinfo_h=yes
15698 else
15699 echo "$ac_t""no" 1>&6
15700 ac_has_langinfo_h=no
15704 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
15705 echo "configure:15706: checking for iconv in -liconv" >&5
15706 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
15707 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15708 echo $ac_n "(cached) $ac_c" 1>&6
15709 else
15710 ac_save_LIBS="$LIBS"
15711 LIBS="-liconv $LIBS"
15712 cat > conftest.$ac_ext <<EOF
15713 #line 15714 "configure"
15714 #include "confdefs.h"
15715 /* Override any gcc2 internal prototype to avoid an error. */
15716 /* We use char because int might match the return type of a gcc2
15717 builtin and then its argument prototype would still apply. */
15718 char iconv();
15720 int main() {
15721 iconv()
15722 ; return 0; }
15724 if { (eval echo configure:15725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15725 rm -rf conftest*
15726 eval "ac_cv_lib_$ac_lib_var=yes"
15727 else
15728 echo "configure: failed program was:" >&5
15729 cat conftest.$ac_ext >&5
15730 rm -rf conftest*
15731 eval "ac_cv_lib_$ac_lib_var=no"
15733 rm -f conftest*
15734 LIBS="$ac_save_LIBS"
15737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15738 echo "$ac_t""yes" 1>&6
15739 libiconv="-liconv"
15740 else
15741 echo "$ac_t""no" 1>&6
15744 ac_save_LIBS="$LIBS"
15745 LIBS="$LIBS $libiconv"
15747 for ac_func in iconv_open iconv_close iconv nl_langinfo
15749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15750 echo "configure:15751: checking for $ac_func" >&5
15751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15752 echo $ac_n "(cached) $ac_c" 1>&6
15753 else
15754 cat > conftest.$ac_ext <<EOF
15755 #line 15756 "configure"
15756 #include "confdefs.h"
15757 /* System header to define __stub macros and hopefully few prototypes,
15758 which can conflict with char $ac_func(); below. */
15759 #include <assert.h>
15760 /* Override any gcc2 internal prototype to avoid an error. */
15761 /* We use char because int might match the return type of a gcc2
15762 builtin and then its argument prototype would still apply. */
15763 char $ac_func();
15765 int main() {
15767 /* The GNU C library defines this for functions which it implements
15768 to always fail with ENOSYS. Some functions are actually named
15769 something starting with __ and the normal name is an alias. */
15770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15771 choke me
15772 #else
15773 $ac_func();
15774 #endif
15776 ; return 0; }
15778 if { (eval echo configure:15779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15779 rm -rf conftest*
15780 eval "ac_cv_func_$ac_func=yes"
15781 else
15782 echo "configure: failed program was:" >&5
15783 cat conftest.$ac_ext >&5
15784 rm -rf conftest*
15785 eval "ac_cv_func_$ac_func=no"
15787 rm -f conftest*
15790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15791 echo "$ac_t""yes" 1>&6
15792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15793 cat >> confdefs.h <<EOF
15794 #define $ac_tr_func 1
15797 ac_XPG2funcs=yes
15798 else
15799 echo "$ac_t""no" 1>&6
15800 ac_XPG2funcs=no
15802 done
15805 LIBS="$ac_save_LIBS"
15807 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
15808 echo "configure:15809: checking for XPG2 wchar_t support" >&5
15809 if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
15810 && test x"$ac_XPG2funcs" = xyes; then
15811 ac_XPG2_wchar_t=yes
15812 else
15813 ac_XPG2_wchar_t=no
15815 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
15817 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
15818 echo "configure:15819: checking for enabled wchar_t specializations" >&5
15819 if test x"$ac_isoC99_wchar_t" = xyes \
15820 && test x"$ac_XPG2_wchar_t" = xyes; then
15821 cat >> confdefs.h <<\EOF
15822 #define _GLIBCPP_USE_WCHAR_T 1
15825 echo "$ac_t"""yes"" 1>&6
15826 else
15827 echo "$ac_t"""no"" 1>&6
15829 else
15830 echo "configure: warning: wchar_t support disabled." 1>&2
15834 ac_test_CXXFLAGS="${CXXFLAGS+set}"
15835 ac_save_CXXFLAGS="$CXXFLAGS"
15836 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
15838 for ac_func in strtof
15840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15841 echo "configure:15842: checking for $ac_func" >&5
15842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15843 echo $ac_n "(cached) $ac_c" 1>&6
15844 else
15845 cat > conftest.$ac_ext <<EOF
15846 #line 15847 "configure"
15847 #include "confdefs.h"
15848 /* System header to define __stub macros and hopefully few prototypes,
15849 which can conflict with char $ac_func(); below. */
15850 #include <assert.h>
15851 /* Override any gcc2 internal prototype to avoid an error. */
15852 /* We use char because int might match the return type of a gcc2
15853 builtin and then its argument prototype would still apply. */
15854 char $ac_func();
15856 int main() {
15858 /* The GNU C library defines this for functions which it implements
15859 to always fail with ENOSYS. Some functions are actually named
15860 something starting with __ and the normal name is an alias. */
15861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15862 choke me
15863 #else
15864 $ac_func();
15865 #endif
15867 ; return 0; }
15869 if { (eval echo configure:15870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15870 rm -rf conftest*
15871 eval "ac_cv_func_$ac_func=yes"
15872 else
15873 echo "configure: failed program was:" >&5
15874 cat conftest.$ac_ext >&5
15875 rm -rf conftest*
15876 eval "ac_cv_func_$ac_func=no"
15878 rm -f conftest*
15881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15882 echo "$ac_t""yes" 1>&6
15883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15884 cat >> confdefs.h <<EOF
15885 #define $ac_tr_func 1
15888 else
15889 echo "$ac_t""no" 1>&6
15891 done
15894 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
15895 echo "configure:15896: checking for strtold declaration" >&5
15896 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
15897 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
15898 echo $ac_n "(cached) $ac_c" 1>&6
15899 else
15902 ac_ext=C
15903 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15904 ac_cpp='$CXXCPP $CPPFLAGS'
15905 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15906 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15907 cross_compiling=$ac_cv_prog_cxx_cross
15909 cat > conftest.$ac_ext <<EOF
15910 #line 15911 "configure"
15911 #include "confdefs.h"
15912 #include <stdlib.h>
15913 int main() {
15914 strtold(0, 0);
15915 ; return 0; }
15917 if { (eval echo configure:15918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15918 rm -rf conftest*
15919 glibcpp_cv_func_strtold_use=yes
15920 else
15921 echo "configure: failed program was:" >&5
15922 cat conftest.$ac_ext >&5
15923 rm -rf conftest*
15924 glibcpp_cv_func_strtold_use=no
15926 rm -f conftest*
15927 ac_ext=c
15928 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15929 ac_cpp='$CPP $CPPFLAGS'
15930 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15931 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15932 cross_compiling=$ac_cv_prog_cc_cross
15938 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
15939 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
15940 for ac_func in strtold
15942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15943 echo "configure:15944: checking for $ac_func" >&5
15944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15945 echo $ac_n "(cached) $ac_c" 1>&6
15946 else
15947 cat > conftest.$ac_ext <<EOF
15948 #line 15949 "configure"
15949 #include "confdefs.h"
15950 /* System header to define __stub macros and hopefully few prototypes,
15951 which can conflict with char $ac_func(); below. */
15952 #include <assert.h>
15953 /* Override any gcc2 internal prototype to avoid an error. */
15954 /* We use char because int might match the return type of a gcc2
15955 builtin and then its argument prototype would still apply. */
15956 char $ac_func();
15958 int main() {
15960 /* The GNU C library defines this for functions which it implements
15961 to always fail with ENOSYS. Some functions are actually named
15962 something starting with __ and the normal name is an alias. */
15963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15964 choke me
15965 #else
15966 $ac_func();
15967 #endif
15969 ; return 0; }
15971 if { (eval echo configure:15972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15972 rm -rf conftest*
15973 eval "ac_cv_func_$ac_func=yes"
15974 else
15975 echo "configure: failed program was:" >&5
15976 cat conftest.$ac_ext >&5
15977 rm -rf conftest*
15978 eval "ac_cv_func_$ac_func=no"
15980 rm -f conftest*
15983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15984 echo "$ac_t""yes" 1>&6
15985 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15986 cat >> confdefs.h <<EOF
15987 #define $ac_tr_func 1
15990 else
15991 echo "$ac_t""no" 1>&6
15993 done
15997 for ac_func in drand48
15999 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16000 echo "configure:16001: checking for $ac_func" >&5
16001 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16002 echo $ac_n "(cached) $ac_c" 1>&6
16003 else
16004 cat > conftest.$ac_ext <<EOF
16005 #line 16006 "configure"
16006 #include "confdefs.h"
16007 /* System header to define __stub macros and hopefully few prototypes,
16008 which can conflict with char $ac_func(); below. */
16009 #include <assert.h>
16010 /* Override any gcc2 internal prototype to avoid an error. */
16011 /* We use char because int might match the return type of a gcc2
16012 builtin and then its argument prototype would still apply. */
16013 char $ac_func();
16015 int main() {
16017 /* The GNU C library defines this for functions which it implements
16018 to always fail with ENOSYS. Some functions are actually named
16019 something starting with __ and the normal name is an alias. */
16020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16021 choke me
16022 #else
16023 $ac_func();
16024 #endif
16026 ; return 0; }
16028 if { (eval echo configure:16029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16029 rm -rf conftest*
16030 eval "ac_cv_func_$ac_func=yes"
16031 else
16032 echo "configure: failed program was:" >&5
16033 cat conftest.$ac_ext >&5
16034 rm -rf conftest*
16035 eval "ac_cv_func_$ac_func=no"
16037 rm -f conftest*
16040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16041 echo "$ac_t""yes" 1>&6
16042 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16043 cat >> confdefs.h <<EOF
16044 #define $ac_tr_func 1
16047 else
16048 echo "$ac_t""no" 1>&6
16050 done
16053 CXXFLAGS="$ac_save_CXXFLAGS"
16056 cat > conftest.$ac_ext <<EOF
16057 #line 16058 "configure"
16058 #include "confdefs.h"
16060 #include <setjmp.h>
16062 int main() {
16063 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16064 ; return 0; }
16066 if { (eval echo configure:16067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16067 rm -rf conftest*
16068 cat >> confdefs.h <<\EOF
16069 #define HAVE_SIGSETJMP 1
16072 else
16073 echo "configure: failed program was:" >&5
16074 cat conftest.$ac_ext >&5
16076 rm -f conftest*
16078 for ac_hdr in unistd.h
16080 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16081 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16082 echo "configure:16083: checking for $ac_hdr" >&5
16083 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16084 echo $ac_n "(cached) $ac_c" 1>&6
16085 else
16086 cat > conftest.$ac_ext <<EOF
16087 #line 16088 "configure"
16088 #include "confdefs.h"
16089 #include <$ac_hdr>
16091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16092 { (eval echo configure:16093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16094 if test -z "$ac_err"; then
16095 rm -rf conftest*
16096 eval "ac_cv_header_$ac_safe=yes"
16097 else
16098 echo "$ac_err" >&5
16099 echo "configure: failed program was:" >&5
16100 cat conftest.$ac_ext >&5
16101 rm -rf conftest*
16102 eval "ac_cv_header_$ac_safe=no"
16104 rm -f conftest*
16106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16107 echo "$ac_t""yes" 1>&6
16108 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16109 cat >> confdefs.h <<EOF
16110 #define $ac_tr_hdr 1
16113 else
16114 echo "$ac_t""no" 1>&6
16116 done
16118 for ac_func in getpagesize
16120 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16121 echo "configure:16122: checking for $ac_func" >&5
16122 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16123 echo $ac_n "(cached) $ac_c" 1>&6
16124 else
16125 cat > conftest.$ac_ext <<EOF
16126 #line 16127 "configure"
16127 #include "confdefs.h"
16128 /* System header to define __stub macros and hopefully few prototypes,
16129 which can conflict with char $ac_func(); below. */
16130 #include <assert.h>
16131 /* Override any gcc2 internal prototype to avoid an error. */
16132 /* We use char because int might match the return type of a gcc2
16133 builtin and then its argument prototype would still apply. */
16134 char $ac_func();
16136 int main() {
16138 /* The GNU C library defines this for functions which it implements
16139 to always fail with ENOSYS. Some functions are actually named
16140 something starting with __ and the normal name is an alias. */
16141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16142 choke me
16143 #else
16144 $ac_func();
16145 #endif
16147 ; return 0; }
16149 if { (eval echo configure:16150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16150 rm -rf conftest*
16151 eval "ac_cv_func_$ac_func=yes"
16152 else
16153 echo "configure: failed program was:" >&5
16154 cat conftest.$ac_ext >&5
16155 rm -rf conftest*
16156 eval "ac_cv_func_$ac_func=no"
16158 rm -f conftest*
16161 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16162 echo "$ac_t""yes" 1>&6
16163 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16164 cat >> confdefs.h <<EOF
16165 #define $ac_tr_func 1
16168 else
16169 echo "$ac_t""no" 1>&6
16171 done
16173 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
16174 echo "configure:16175: checking for working mmap" >&5
16175 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
16176 echo $ac_n "(cached) $ac_c" 1>&6
16177 else
16178 if test "$cross_compiling" = yes; then
16179 ac_cv_func_mmap_fixed_mapped=no
16180 else
16181 cat > conftest.$ac_ext <<EOF
16182 #line 16183 "configure"
16183 #include "confdefs.h"
16185 /* Thanks to Mike Haertel and Jim Avera for this test.
16186 Here is a matrix of mmap possibilities:
16187 mmap private not fixed
16188 mmap private fixed at somewhere currently unmapped
16189 mmap private fixed at somewhere already mapped
16190 mmap shared not fixed
16191 mmap shared fixed at somewhere currently unmapped
16192 mmap shared fixed at somewhere already mapped
16193 For private mappings, we should verify that changes cannot be read()
16194 back from the file, nor mmap's back from the file at a different
16195 address. (There have been systems where private was not correctly
16196 implemented like the infamous i386 svr4.0, and systems where the
16197 VM page cache was not coherent with the filesystem buffer cache
16198 like early versions of FreeBSD and possibly contemporary NetBSD.)
16199 For shared mappings, we should conversely verify that changes get
16200 propogated back to all the places they're supposed to be.
16202 Grep wants private fixed already mapped.
16203 The main things grep needs to know about mmap are:
16204 * does it exist and is it safe to write into the mmap'd area
16205 * how to use it (BSD variants) */
16206 #include <sys/types.h>
16207 #include <fcntl.h>
16208 #include <sys/mman.h>
16210 /* This mess was copied from the GNU getpagesize.h. */
16211 #ifndef HAVE_GETPAGESIZE
16212 # ifdef HAVE_UNISTD_H
16213 # include <unistd.h>
16214 # endif
16216 /* Assume that all systems that can run configure have sys/param.h. */
16217 # ifndef HAVE_SYS_PARAM_H
16218 # define HAVE_SYS_PARAM_H 1
16219 # endif
16221 # ifdef _SC_PAGESIZE
16222 # define getpagesize() sysconf(_SC_PAGESIZE)
16223 # else /* no _SC_PAGESIZE */
16224 # ifdef HAVE_SYS_PARAM_H
16225 # include <sys/param.h>
16226 # ifdef EXEC_PAGESIZE
16227 # define getpagesize() EXEC_PAGESIZE
16228 # else /* no EXEC_PAGESIZE */
16229 # ifdef NBPG
16230 # define getpagesize() NBPG * CLSIZE
16231 # ifndef CLSIZE
16232 # define CLSIZE 1
16233 # endif /* no CLSIZE */
16234 # else /* no NBPG */
16235 # ifdef NBPC
16236 # define getpagesize() NBPC
16237 # else /* no NBPC */
16238 # ifdef PAGESIZE
16239 # define getpagesize() PAGESIZE
16240 # endif /* PAGESIZE */
16241 # endif /* no NBPC */
16242 # endif /* no NBPG */
16243 # endif /* no EXEC_PAGESIZE */
16244 # else /* no HAVE_SYS_PARAM_H */
16245 # define getpagesize() 8192 /* punt totally */
16246 # endif /* no HAVE_SYS_PARAM_H */
16247 # endif /* no _SC_PAGESIZE */
16249 #endif /* no HAVE_GETPAGESIZE */
16251 #ifdef __cplusplus
16252 extern "C" { void *malloc(unsigned); }
16253 #else
16254 char *malloc();
16255 #endif
16258 main()
16260 char *data, *data2, *data3;
16261 int i, pagesize;
16262 int fd;
16264 pagesize = getpagesize();
16267 * First, make a file with some known garbage in it.
16269 data = malloc(pagesize);
16270 if (!data)
16271 exit(1);
16272 for (i = 0; i < pagesize; ++i)
16273 *(data + i) = rand();
16274 umask(0);
16275 fd = creat("conftestmmap", 0600);
16276 if (fd < 0)
16277 exit(1);
16278 if (write(fd, data, pagesize) != pagesize)
16279 exit(1);
16280 close(fd);
16283 * Next, try to mmap the file at a fixed address which
16284 * already has something else allocated at it. If we can,
16285 * also make sure that we see the same garbage.
16287 fd = open("conftestmmap", O_RDWR);
16288 if (fd < 0)
16289 exit(1);
16290 data2 = malloc(2 * pagesize);
16291 if (!data2)
16292 exit(1);
16293 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16294 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
16295 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16296 exit(1);
16297 for (i = 0; i < pagesize; ++i)
16298 if (*(data + i) != *(data2 + i))
16299 exit(1);
16302 * Finally, make sure that changes to the mapped area
16303 * do not percolate back to the file as seen by read().
16304 * (This is a bug on some variants of i386 svr4.0.)
16306 for (i = 0; i < pagesize; ++i)
16307 *(data2 + i) = *(data2 + i) + 1;
16308 data3 = malloc(pagesize);
16309 if (!data3)
16310 exit(1);
16311 if (read(fd, data3, pagesize) != pagesize)
16312 exit(1);
16313 for (i = 0; i < pagesize; ++i)
16314 if (*(data + i) != *(data3 + i))
16315 exit(1);
16316 close(fd);
16317 unlink("conftestmmap");
16318 exit(0);
16322 if { (eval echo configure:16323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16323 then
16324 ac_cv_func_mmap_fixed_mapped=yes
16325 else
16326 echo "configure: failed program was:" >&5
16327 cat conftest.$ac_ext >&5
16328 rm -fr conftest*
16329 ac_cv_func_mmap_fixed_mapped=no
16331 rm -fr conftest*
16336 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
16337 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16338 cat >> confdefs.h <<\EOF
16339 #define HAVE_MMAP 1
16346 # Now that ctype is determined for all possible targets, we can do this...
16354 if test "$NULL_TARGET" = yes; then
16355 NULL_TARGET_TRUE=
16356 NULL_TARGET_FALSE='#'
16357 else
16358 NULL_TARGET_TRUE='#'
16359 NULL_TARGET_FALSE=
16363 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
16364 NATIVE_TRUE=
16365 NATIVE_FALSE='#'
16366 else
16367 NATIVE_TRUE='#'
16368 NATIVE_FALSE=
16372 if test "$CANADIAN" = yes; then
16373 CANADIAN_TRUE=
16374 CANADIAN_FALSE='#'
16375 else
16376 CANADIAN_TRUE='#'
16377 CANADIAN_FALSE=
16380 cat > confcache <<\EOF
16381 # This file is a shell script that caches the results of configure
16382 # tests run on this system so they can be shared between configure
16383 # scripts and configure runs. It is not useful on other systems.
16384 # If it contains results you don't want to keep, you may remove or edit it.
16386 # By default, configure uses ./config.cache as the cache file,
16387 # creating it if it does not exist already. You can give configure
16388 # the --cache-file=FILE option to use a different cache file; that is
16389 # what configure does when it calls configure scripts in
16390 # subdirectories, so they share the cache.
16391 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16392 # config.status only pays attention to the cache file if you give it the
16393 # --recheck option to rerun configure.
16396 # The following way of writing the cache mishandles newlines in values,
16397 # but we know of no workaround that is simple, portable, and efficient.
16398 # So, don't put newlines in cache variables' values.
16399 # Ultrix sh set writes to stderr and can't be redirected directly,
16400 # and sets the high bit in the cache file unless we assign to the vars.
16401 (set) 2>&1 |
16402 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16403 *ac_space=\ *)
16404 # `set' does not quote correctly, so add quotes (double-quote substitution
16405 # turns \\\\ into \\, and sed turns \\ into \).
16406 sed -n \
16407 -e "s/'/'\\\\''/g" \
16408 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16411 # `set' quotes correctly as required by POSIX, so do not add quotes.
16412 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16414 esac >> confcache
16415 if cmp -s $cache_file confcache; then
16417 else
16418 if test -w $cache_file; then
16419 echo "updating cache $cache_file"
16420 cat confcache > $cache_file
16421 else
16422 echo "not updating unwritable cache $cache_file"
16425 rm -f confcache
16428 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
16429 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
16430 echo "configure:16431: checking for locale.h" >&5
16431 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16432 echo $ac_n "(cached) $ac_c" 1>&6
16433 else
16434 cat > conftest.$ac_ext <<EOF
16435 #line 16436 "configure"
16436 #include "confdefs.h"
16437 #include <locale.h>
16439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16440 { (eval echo configure:16441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16442 if test -z "$ac_err"; then
16443 rm -rf conftest*
16444 eval "ac_cv_header_$ac_safe=yes"
16445 else
16446 echo "$ac_err" >&5
16447 echo "configure: failed program was:" >&5
16448 cat conftest.$ac_ext >&5
16449 rm -rf conftest*
16450 eval "ac_cv_header_$ac_safe=no"
16452 rm -f conftest*
16454 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16455 echo "$ac_t""yes" 1>&6
16457 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16458 echo "configure:16459: checking for LC_MESSAGES" >&5
16459 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16460 echo $ac_n "(cached) $ac_c" 1>&6
16461 else
16462 cat > conftest.$ac_ext <<EOF
16463 #line 16464 "configure"
16464 #include "confdefs.h"
16465 #include <locale.h>
16466 int main() {
16467 return LC_MESSAGES
16468 ; return 0; }
16470 if { (eval echo configure:16471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16471 rm -rf conftest*
16472 ac_cv_val_LC_MESSAGES=yes
16473 else
16474 echo "configure: failed program was:" >&5
16475 cat conftest.$ac_ext >&5
16476 rm -rf conftest*
16477 ac_cv_val_LC_MESSAGES=no
16479 rm -f conftest*
16482 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16483 if test $ac_cv_val_LC_MESSAGES = yes; then
16484 cat >> confdefs.h <<\EOF
16485 #define HAVE_LC_MESSAGES 1
16490 else
16491 echo "$ac_t""no" 1>&6
16496 if test "${multilib}" = "yes"; then
16497 multilib_arg="--enable-multilib"
16498 else
16499 multilib_arg=
16503 # Generate the various Makefiles, include files, and scripts.
16505 # Needed so that g++ can find the correct include subdir automatically.
16506 INTERFACE=v3
16508 # Export all the install information
16511 glibcpp_toolexecdir=no
16512 glibcpp_toolexeclibdir=no
16514 # Export build and source directories.
16515 # These need to be absolute paths, thus the use of pwd.
16516 glibcpp_builddir=`pwd`
16517 glibcpp_srcdir=`cd ${srcdir} && pwd`
16518 glibcpp_prefixdir=`cd ${prefix} && pwd`
16520 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
16521 echo "configure:16522: checking for interface version number" >&5
16522 libstdcxx_interface=$INTERFACE
16523 echo "$ac_t""$libstdcxx_interface" 1>&6
16525 # Process the option --with-gxx-include-dir=<path to include-files directory>
16526 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
16527 echo "configure:16528: checking for --with-gxx-include-dir" >&5
16528 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
16529 if test "${with_gxx_include_dir+set}" = set; then
16530 withval="$with_gxx_include_dir"
16531 case "${withval}" in
16532 yes)
16533 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
16534 gxx_include_dir=no
16537 gxx_include_dir=no
16540 gxx_include_dir=${withval}
16542 esac
16543 else
16544 gxx_include_dir=no
16547 echo "$ac_t""$gxx_include_dir" 1>&6
16549 # Process the option "--enable-version-specific-runtime-libs"
16550 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
16551 echo "configure:16552: checking for --enable-version-specific-runtime-libs" >&5
16552 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16553 if test "${enable_version_specific_runtime_libs+set}" = set; then
16554 enableval="$enable_version_specific_runtime_libs"
16555 version_specific_libs=yes
16556 # Need the gcc compiler version to know where to install libraries
16557 # and header files if --enable-version-specific-runtime-libs option
16558 # is selected.
16559 gcc_version_trigger=${srcdir}/../gcc/version.c
16560 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
16561 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
16562 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
16563 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16564 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}
16566 else
16567 version_specific_libs=no
16570 echo "$ac_t""$version_specific_libs" 1>&6
16572 # Default case for install directory for include files.
16573 if test x"$version_specific_libs" = x"no" \
16574 && test x"$gxx_include_dir" = x"no"; then
16575 gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
16578 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
16579 # Install a library built with a cross compiler in tooldir, not libdir.
16580 if test x"$glibcpp_toolexecdir" = x"no"; then
16581 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
16582 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
16583 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
16584 else
16585 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16586 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
16590 echo $ac_n "checking for install location""... $ac_c" 1>&6
16591 echo "configure:16592: checking for install location" >&5
16592 echo "$ac_t""$gxx_include_dir" 1>&6
16602 # Export all the include and flag information to makefiles.
16604 # Root level of the include sources.
16605 GLIBCPP_INCLUDE_DIR='$(top_srcdir)/include'
16607 # Can either use include/c or include/c_std to grab "C" headers. This
16608 # variable is set to the include directory currently in use.
16609 # set with C_INCLUDE_DIR in GLIBCPP_ENABLE_CHEADERS
16611 # Passed down for canadian crosses.
16612 if test x"$CANADIAN" = xyes; then
16613 TOPLEVEL_INCLUDES='-I$(includedir)'
16616 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
16618 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
16620 #if GLIBCPP_NEED_LIBIO
16621 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
16622 #else
16623 #LIBIO_INCLUDES='-I$(top_srcdir)/libio'
16624 #endif
16626 #if GLIBCPP_USE_CSHADOW
16627 # CSHADOW_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR) \
16628 # -I$(top_blddir)/cshadow'
16629 #else
16630 CSTD_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR)'
16631 #endif
16633 # Now, export this to all the little Makefiles....
16642 # Optimization flags that are probably a good idea for thrill-seekers. Just
16643 # uncomment the lines below and make, everything else is ready to go...
16644 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
16645 OPTIMIZE_CXXFLAGS=
16648 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
16652 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
16653 grep "enable shared" > /dev/null; then
16654 LIBSUPCXX_PICFLAGS=-prefer-pic
16655 else
16656 LIBSUPCXX_PICFLAGS=
16660 # This should be done by mkincludedir, but hack around it now.
16661 blddir=`pwd`
16662 echo "checking for $blddir/include"
16664 if test ! -d "$blddir/include"; then
16665 mkdir "$blddir/include"
16668 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
16669 # and libsupc++/Makefile.am so that multilib installs will end up
16670 # installed in the correct place. To work around this not being passed
16671 # down from config-ml.in -> top_srcdir/Makefile.am ->
16672 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
16673 trap '' 1 2 15
16674 cat > confcache <<\EOF
16675 # This file is a shell script that caches the results of configure
16676 # tests run on this system so they can be shared between configure
16677 # scripts and configure runs. It is not useful on other systems.
16678 # If it contains results you don't want to keep, you may remove or edit it.
16680 # By default, configure uses ./config.cache as the cache file,
16681 # creating it if it does not exist already. You can give configure
16682 # the --cache-file=FILE option to use a different cache file; that is
16683 # what configure does when it calls configure scripts in
16684 # subdirectories, so they share the cache.
16685 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16686 # config.status only pays attention to the cache file if you give it the
16687 # --recheck option to rerun configure.
16690 # The following way of writing the cache mishandles newlines in values,
16691 # but we know of no workaround that is simple, portable, and efficient.
16692 # So, don't put newlines in cache variables' values.
16693 # Ultrix sh set writes to stderr and can't be redirected directly,
16694 # and sets the high bit in the cache file unless we assign to the vars.
16695 (set) 2>&1 |
16696 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16697 *ac_space=\ *)
16698 # `set' does not quote correctly, so add quotes (double-quote substitution
16699 # turns \\\\ into \\, and sed turns \\ into \).
16700 sed -n \
16701 -e "s/'/'\\\\''/g" \
16702 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16705 # `set' quotes correctly as required by POSIX, so do not add quotes.
16706 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16708 esac >> confcache
16709 if cmp -s $cache_file confcache; then
16711 else
16712 if test -w $cache_file; then
16713 echo "updating cache $cache_file"
16714 cat confcache > $cache_file
16715 else
16716 echo "not updating unwritable cache $cache_file"
16719 rm -f confcache
16721 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16723 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16724 # Let make expand exec_prefix.
16725 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16727 # Any assignment to VPATH causes Sun make to only execute
16728 # the first set of double-colon rules, so remove it if not needed.
16729 # If there is a colon in the path, we need to keep it.
16730 if test "x$srcdir" = x.; then
16731 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16734 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16736 DEFS=-DHAVE_CONFIG_H
16738 # Without the "./", some shells look in PATH for config.status.
16739 : ${CONFIG_STATUS=./config.status}
16741 echo creating $CONFIG_STATUS
16742 rm -f $CONFIG_STATUS
16743 cat > $CONFIG_STATUS <<EOF
16744 #! /bin/sh
16745 # Generated automatically by configure.
16746 # Run this file to recreate the current configuration.
16747 # This directory was configured as follows,
16748 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16750 # $0 $ac_configure_args
16752 # Compiler output produced by configure, useful for debugging
16753 # configure, is in ./config.log if it exists.
16755 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16756 for ac_option
16758 case "\$ac_option" in
16759 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16760 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16761 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16762 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16763 echo "$CONFIG_STATUS generated by autoconf version 2.13"
16764 exit 0 ;;
16765 -help | --help | --hel | --he | --h)
16766 echo "\$ac_cs_usage"; exit 0 ;;
16767 *) echo "\$ac_cs_usage"; exit 1 ;;
16768 esac
16769 done
16771 ac_given_srcdir=$srcdir
16772 ac_given_INSTALL="$INSTALL"
16774 trap 'rm -fr `echo "Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16776 cat >> $CONFIG_STATUS <<EOF
16778 # Protect against being on the right side of a sed subst in config.status.
16779 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16780 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16781 $ac_vpsub
16782 $extrasub
16783 s%@SHELL@%$SHELL%g
16784 s%@CFLAGS@%$CFLAGS%g
16785 s%@CPPFLAGS@%$CPPFLAGS%g
16786 s%@CXXFLAGS@%$CXXFLAGS%g
16787 s%@FFLAGS@%$FFLAGS%g
16788 s%@DEFS@%$DEFS%g
16789 s%@LDFLAGS@%$LDFLAGS%g
16790 s%@LIBS@%$LIBS%g
16791 s%@exec_prefix@%$exec_prefix%g
16792 s%@prefix@%$prefix%g
16793 s%@program_transform_name@%$program_transform_name%g
16794 s%@bindir@%$bindir%g
16795 s%@sbindir@%$sbindir%g
16796 s%@libexecdir@%$libexecdir%g
16797 s%@datadir@%$datadir%g
16798 s%@sysconfdir@%$sysconfdir%g
16799 s%@sharedstatedir@%$sharedstatedir%g
16800 s%@localstatedir@%$localstatedir%g
16801 s%@libdir@%$libdir%g
16802 s%@includedir@%$includedir%g
16803 s%@oldincludedir@%$oldincludedir%g
16804 s%@infodir@%$infodir%g
16805 s%@mandir@%$mandir%g
16806 s%@toplevel_srcdir@%$toplevel_srcdir%g
16807 s%@host@%$host%g
16808 s%@host_alias@%$host_alias%g
16809 s%@host_cpu@%$host_cpu%g
16810 s%@host_vendor@%$host_vendor%g
16811 s%@host_os@%$host_os%g
16812 s%@target@%$target%g
16813 s%@target_alias@%$target_alias%g
16814 s%@target_cpu@%$target_cpu%g
16815 s%@target_vendor@%$target_vendor%g
16816 s%@target_os@%$target_os%g
16817 s%@build@%$build%g
16818 s%@build_alias@%$build_alias%g
16819 s%@build_cpu@%$build_cpu%g
16820 s%@build_vendor@%$build_vendor%g
16821 s%@build_os@%$build_os%g
16822 s%@glibcpp_basedir@%$glibcpp_basedir%g
16823 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16824 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16825 s%@INSTALL_DATA@%$INSTALL_DATA%g
16826 s%@PACKAGE@%$PACKAGE%g
16827 s%@VERSION@%$VERSION%g
16828 s%@ACLOCAL@%$ACLOCAL%g
16829 s%@AUTOCONF@%$AUTOCONF%g
16830 s%@AUTOMAKE@%$AUTOMAKE%g
16831 s%@AUTOHEADER@%$AUTOHEADER%g
16832 s%@MAKEINFO@%$MAKEINFO%g
16833 s%@SET_MAKE@%$SET_MAKE%g
16834 s%@CC@%$CC%g
16835 s%@glibcpp_CXX@%$glibcpp_CXX%g
16836 s%@AS@%$AS%g
16837 s%@AR@%$AR%g
16838 s%@RANLIB@%$RANLIB%g
16839 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
16840 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
16841 s%@MAINT@%$MAINT%g
16842 s%@EXEEXT@%$EXEEXT%g
16843 s%@LN_S@%$LN_S%g
16844 s%@OBJEXT@%$OBJEXT%g
16845 s%@STRIP@%$STRIP%g
16846 s%@LIBTOOL@%$LIBTOOL%g
16847 s%@CXXCPP@%$CXXCPP%g
16848 s%@enable_shared@%$enable_shared%g
16849 s%@enable_static@%$enable_static%g
16850 s%@ifGNUmake@%$ifGNUmake%g
16851 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
16852 s%@CPP@%$CPP%g
16853 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
16854 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
16855 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
16856 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
16857 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
16858 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
16859 s%@libio_la@%$libio_la%g
16860 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
16861 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
16862 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
16863 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
16864 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
16865 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
16866 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
16867 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
16868 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
16869 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
16870 s%@WERROR@%$WERROR%g
16871 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
16872 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
16873 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
16874 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
16875 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
16876 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
16877 s%@glibcpp_builddir@%$glibcpp_builddir%g
16878 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
16879 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
16880 s%@gxx_include_dir@%$gxx_include_dir%g
16881 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
16882 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
16883 s%@GLIBCPP_INCLUDE_DIR@%$GLIBCPP_INCLUDE_DIR%g
16884 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
16885 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
16886 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
16887 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
16888 s%@CSTD_INCLUDES@%$CSTD_INCLUDES%g
16889 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
16890 s%@WARN_FLAGS@%$WARN_FLAGS%g
16891 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
16893 CEOF
16896 cat >> $CONFIG_STATUS <<\EOF
16898 # Split the substitutions into bite-sized pieces for seds with
16899 # small command number limits, like on Digital OSF/1 and HP-UX.
16900 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16901 ac_file=1 # Number of current file.
16902 ac_beg=1 # First line for current file.
16903 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16904 ac_more_lines=:
16905 ac_sed_cmds=""
16906 while $ac_more_lines; do
16907 if test $ac_beg -gt 1; then
16908 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16909 else
16910 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16912 if test ! -s conftest.s$ac_file; then
16913 ac_more_lines=false
16914 rm -f conftest.s$ac_file
16915 else
16916 if test -z "$ac_sed_cmds"; then
16917 ac_sed_cmds="sed -f conftest.s$ac_file"
16918 else
16919 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16921 ac_file=`expr $ac_file + 1`
16922 ac_beg=$ac_end
16923 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16925 done
16926 if test -z "$ac_sed_cmds"; then
16927 ac_sed_cmds=cat
16931 cat >> $CONFIG_STATUS <<EOF
16933 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile mkcheck testsuite_flags"}
16935 cat >> $CONFIG_STATUS <<\EOF
16936 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16937 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16938 case "$ac_file" in
16939 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16940 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16941 *) ac_file_in="${ac_file}.in" ;;
16942 esac
16944 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16946 # Remove last slash and all that follows it. Not all systems have dirname.
16947 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16948 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16949 # The file is in a subdirectory.
16950 test ! -d "$ac_dir" && mkdir "$ac_dir"
16951 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16952 # A "../" for each directory in $ac_dir_suffix.
16953 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16954 else
16955 ac_dir_suffix= ac_dots=
16958 case "$ac_given_srcdir" in
16959 .) srcdir=.
16960 if test -z "$ac_dots"; then top_srcdir=.
16961 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16962 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16963 *) # Relative path.
16964 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16965 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16966 esac
16968 case "$ac_given_INSTALL" in
16969 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16970 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16971 esac
16973 echo creating "$ac_file"
16974 rm -f "$ac_file"
16975 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16976 case "$ac_file" in
16977 *Makefile*) ac_comsub="1i\\
16978 # $configure_input" ;;
16979 *) ac_comsub= ;;
16980 esac
16982 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16983 sed -e "$ac_comsub
16984 s%@configure_input@%$configure_input%g
16985 s%@srcdir@%$srcdir%g
16986 s%@top_srcdir@%$top_srcdir%g
16987 s%@INSTALL@%$INSTALL%g
16988 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16989 fi; done
16990 rm -f conftest.s*
16992 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16993 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16995 # ac_d sets the value in "#define NAME VALUE" lines.
16996 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16997 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16998 ac_dC='\3'
16999 ac_dD='%g'
17000 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17001 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17002 ac_uB='\([ ]\)%\1#\2define\3'
17003 ac_uC=' '
17004 ac_uD='\4%g'
17005 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17006 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17007 ac_eB='$%\1#\2define\3'
17008 ac_eC=' '
17009 ac_eD='%g'
17011 if test "${CONFIG_HEADERS+set}" != set; then
17013 cat >> $CONFIG_STATUS <<EOF
17014 CONFIG_HEADERS="config.h"
17016 cat >> $CONFIG_STATUS <<\EOF
17018 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17019 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17020 case "$ac_file" in
17021 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17022 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17023 *) ac_file_in="${ac_file}.in" ;;
17024 esac
17026 echo creating $ac_file
17028 rm -f conftest.frag conftest.in conftest.out
17029 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17030 cat $ac_file_inputs > conftest.in
17034 # Transform confdefs.h into a sed script conftest.vals that substitutes
17035 # the proper values into config.h.in to produce config.h. And first:
17036 # Protect against being on the right side of a sed subst in config.status.
17037 # Protect against being in an unquoted here document in config.status.
17038 rm -f conftest.vals
17039 cat > conftest.hdr <<\EOF
17040 s/[\\&%]/\\&/g
17041 s%[\\$`]%\\&%g
17042 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17043 s%ac_d%ac_u%gp
17044 s%ac_u%ac_e%gp
17046 sed -n -f conftest.hdr confdefs.h > conftest.vals
17047 rm -f conftest.hdr
17049 # This sed command replaces #undef with comments. This is necessary, for
17050 # example, in the case of _POSIX_SOURCE, which is predefined and required
17051 # on some systems where configure will not decide to define it.
17052 cat >> conftest.vals <<\EOF
17053 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17056 # Break up conftest.vals because some shells have a limit on
17057 # the size of here documents, and old seds have small limits too.
17059 rm -f conftest.tail
17060 while :
17062 ac_lines=`grep -c . conftest.vals`
17063 # grep -c gives empty output for an empty file on some AIX systems.
17064 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17065 # Write a limited-size here document to conftest.frag.
17066 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17067 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17068 echo 'CEOF
17069 sed -f conftest.frag conftest.in > conftest.out
17070 rm -f conftest.in
17071 mv conftest.out conftest.in
17072 ' >> $CONFIG_STATUS
17073 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17074 rm -f conftest.vals
17075 mv conftest.tail conftest.vals
17076 done
17077 rm -f conftest.vals
17079 cat >> $CONFIG_STATUS <<\EOF
17080 rm -f conftest.frag conftest.h
17081 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17082 cat conftest.in >> conftest.h
17083 rm -f conftest.in
17084 if cmp -s $ac_file conftest.h 2>/dev/null; then
17085 echo "$ac_file is unchanged"
17086 rm -f conftest.h
17087 else
17088 # Remove last slash and all that follows it. Not all systems have dirname.
17089 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17090 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17091 # The file is in a subdirectory.
17092 test ! -d "$ac_dir" && mkdir "$ac_dir"
17094 rm -f $ac_file
17095 mv conftest.h $ac_file
17097 fi; done
17101 cat >> $CONFIG_STATUS <<EOF
17102 ac_sources="$os_include_dir/bits/os_defines.h $CSTDIO_H $BASIC_FILE_H $BASIC_FILE_CC $CCODECVT_C $CLOCALE_H $CLOCALE_CC config/$THREADH $os_include_dir/bits/ctype_base.h $os_include_dir/bits/ctype_inline.h $os_include_dir/bits/ctype_noninline.h $ATOMICITYH/bits/atomicity.h"
17103 ac_dests="include/bits/os_defines.h include/bits/c++io.h include/bits/basic_file_model.h src/basic_file.cc libio/c_codecvt.c include/bits/c++locale.h src/c++locale.cc include/bits/c++threads.h \
17104 include/bits/ctype_base.h \
17105 include/bits/ctype_inline.h \
17106 include/bits/ctype_noninline.h include/bits/atomicity.h"
17109 cat >> $CONFIG_STATUS <<\EOF
17110 srcdir=$ac_given_srcdir
17111 while test -n "$ac_sources"; do
17112 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
17113 set $ac_sources; ac_source=$1; shift; ac_sources=$*
17115 echo "linking $srcdir/$ac_source to $ac_dest"
17117 if test ! -r $srcdir/$ac_source; then
17118 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
17120 rm -f $ac_dest
17122 # Make relative symlinks.
17123 # Remove last slash and all that follows it. Not all systems have dirname.
17124 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
17125 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
17126 # The dest file is in a subdirectory.
17127 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
17128 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
17129 # A "../" for each directory in $ac_dest_dir_suffix.
17130 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
17131 else
17132 ac_dest_dir_suffix= ac_dots=
17135 case "$srcdir" in
17136 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
17137 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
17138 esac
17140 # Make a symlink if possible; otherwise try a hard link.
17141 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17142 ln $srcdir/$ac_source $ac_dest; then :
17143 else
17144 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
17146 done
17148 cat >> $CONFIG_STATUS <<EOF
17150 srcdir=${srcdir}
17151 host=${host}
17152 target=${target}
17153 with_multisubdir=${with_multisubdir}
17154 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17155 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17156 glibcpp_basedir=${glibcpp_basedir}
17157 CC="${CC}"
17158 CXX="${CXX}"
17161 cat >> $CONFIG_STATUS <<\EOF
17162 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
17163 if test -n "$CONFIG_FILES"; then
17164 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
17165 grep '^MULTISUBDIR =' Makefile >> src/Makefile
17166 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
17168 chmod +x mkcheck
17169 chmod +x testsuite_flags
17171 exit 0
17173 chmod +x $CONFIG_STATUS
17174 rm -fr confdefs* $ac_clean_files
17175 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
17179 # Generate bits/c++config.h
17180 # NB: This must be the first generated file as others include it. . .
17181 $srcdir/mkc++config $blddir $srcdir
17183 # Generate bits/std_limits.h and src/limitsMEMBERS.cc
17184 if test ! -f stamp-limits; then
17185 $srcdir/mknumeric_limits $blddir $srcdir $xcompiling
17186 if test ! -f include/bits/std_limits.h; then
17187 echo "mknumeric_limits failed to execute properly: exiting"
17188 exit 1
17189 else
17190 touch stamp-limits
17195 # Sanity checking & User-visible messages.
17196 # Checks down here, otherwise they get scrolled off before
17197 # the user will notice.
17199 # Trying to get more people to read documentation. Possibly remove
17200 # check and warn all the time. There is no "informational" AC_MSG_
17201 # macro, so these are going to be printed even when --quiet/--silent
17202 # is given.
17203 if test ! -f stamp-sanity-warned; then
17204 touch stamp-sanity-warned
17205 echo ""
17206 echo "Please make certain that you read the installation information here:"
17207 echo " faster => ${srcdir}/docs/install.html"
17208 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
17209 echo ""
17210 echo "and the configuration information here:"
17211 echo " faster => ${srcdir}/docs/configopts.html"
17212 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
17213 echo ""
17214 echo "before proceeding with ${_cv_gnu_make_command}."
17215 echo ""