* doc/install.texi: Update Solaris information.
[official-gcc.git] / libstdc++-v3 / configure
blob59273aebf4d592a96d60fbaa026f6c97f75fb140
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
54 g++ [default=c_std]"
55 ac_help="$ac_help
56 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
57 [default=none]"
58 ac_help="$ac_help
59 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
60 ac_help="$ac_help
61 --with-gxx-include-dir the installation directory for include files"
62 ac_help="$ac_help
63 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
65 # Initialize some variables set by options.
66 # The variables have the same names as the options, with
67 # dashes changed to underlines.
68 build=NONE
69 cache_file=./config.cache
70 exec_prefix=NONE
71 host=NONE
72 no_create=
73 nonopt=NONE
74 no_recursion=
75 prefix=NONE
76 program_prefix=NONE
77 program_suffix=NONE
78 program_transform_name=s,x,x,
79 silent=
80 site=
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 --version print the version of autoconf that created configure
196 Directory and file names:
197 --prefix=PREFIX install architecture-independent files in PREFIX
198 [$ac_default_prefix]
199 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
200 [same as prefix]
201 --bindir=DIR user executables in DIR [EPREFIX/bin]
202 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
203 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
204 --datadir=DIR read-only architecture-independent data in DIR
205 [PREFIX/share]
206 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
207 --sharedstatedir=DIR modifiable architecture-independent data in DIR
208 [PREFIX/com]
209 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
210 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
211 --includedir=DIR C header files in DIR [PREFIX/include]
212 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
213 --infodir=DIR info documentation in DIR [PREFIX/info]
214 --mandir=DIR man documentation in DIR [PREFIX/man]
215 --srcdir=DIR find the sources in DIR [configure dir or ..]
216 --program-prefix=PREFIX prepend PREFIX to installed program names
217 --program-suffix=SUFFIX append SUFFIX to installed program names
218 --program-transform-name=PROGRAM
219 run sed PROGRAM on installed program names
221 cat << EOF
222 Host type:
223 --build=BUILD configure for building on BUILD [BUILD=HOST]
224 --host=HOST configure for HOST [guessed]
225 --target=TARGET configure for TARGET [TARGET=HOST]
226 Features and packages:
227 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
228 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
229 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
230 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
231 --x-includes=DIR X include files are in DIR
232 --x-libraries=DIR X library files are in DIR
234 if test -n "$ac_help"; then
235 echo "--enable and --with options recognized:$ac_help"
237 exit 0 ;;
239 -host | --host | --hos | --ho)
240 ac_prev=host ;;
241 -host=* | --host=* | --hos=* | --ho=*)
242 host="$ac_optarg" ;;
244 -includedir | --includedir | --includedi | --included | --include \
245 | --includ | --inclu | --incl | --inc)
246 ac_prev=includedir ;;
247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248 | --includ=* | --inclu=* | --incl=* | --inc=*)
249 includedir="$ac_optarg" ;;
251 -infodir | --infodir | --infodi | --infod | --info | --inf)
252 ac_prev=infodir ;;
253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254 infodir="$ac_optarg" ;;
256 -libdir | --libdir | --libdi | --libd)
257 ac_prev=libdir ;;
258 -libdir=* | --libdir=* | --libdi=* | --libd=*)
259 libdir="$ac_optarg" ;;
261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262 | --libexe | --libex | --libe)
263 ac_prev=libexecdir ;;
264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265 | --libexe=* | --libex=* | --libe=*)
266 libexecdir="$ac_optarg" ;;
268 -localstatedir | --localstatedir | --localstatedi | --localstated \
269 | --localstate | --localstat | --localsta | --localst \
270 | --locals | --local | --loca | --loc | --lo)
271 ac_prev=localstatedir ;;
272 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275 localstatedir="$ac_optarg" ;;
277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
278 ac_prev=mandir ;;
279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
280 mandir="$ac_optarg" ;;
282 -nfp | --nfp | --nf)
283 # Obsolete; use --without-fp.
284 with_fp=no ;;
286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
287 | --no-cr | --no-c)
288 no_create=yes ;;
290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
292 no_recursion=yes ;;
294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296 | --oldin | --oldi | --old | --ol | --o)
297 ac_prev=oldincludedir ;;
298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301 oldincludedir="$ac_optarg" ;;
303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
304 ac_prev=prefix ;;
305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
306 prefix="$ac_optarg" ;;
308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
309 | --program-pre | --program-pr | --program-p)
310 ac_prev=program_prefix ;;
311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313 program_prefix="$ac_optarg" ;;
315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
316 | --program-suf | --program-su | --program-s)
317 ac_prev=program_suffix ;;
318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320 program_suffix="$ac_optarg" ;;
322 -program-transform-name | --program-transform-name \
323 | --program-transform-nam | --program-transform-na \
324 | --program-transform-n | --program-transform- \
325 | --program-transform | --program-transfor \
326 | --program-transfo | --program-transf \
327 | --program-trans | --program-tran \
328 | --progr-tra | --program-tr | --program-t)
329 ac_prev=program_transform_name ;;
330 -program-transform-name=* | --program-transform-name=* \
331 | --program-transform-nam=* | --program-transform-na=* \
332 | --program-transform-n=* | --program-transform-=* \
333 | --program-transform=* | --program-transfor=* \
334 | --program-transfo=* | --program-transf=* \
335 | --program-trans=* | --program-tran=* \
336 | --progr-tra=* | --program-tr=* | --program-t=*)
337 program_transform_name="$ac_optarg" ;;
339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340 | -silent | --silent | --silen | --sile | --sil)
341 silent=yes ;;
343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
344 ac_prev=sbindir ;;
345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
346 | --sbi=* | --sb=*)
347 sbindir="$ac_optarg" ;;
349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351 | --sharedst | --shareds | --shared | --share | --shar \
352 | --sha | --sh)
353 ac_prev=sharedstatedir ;;
354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
357 | --sha=* | --sh=*)
358 sharedstatedir="$ac_optarg" ;;
360 -site | --site | --sit)
361 ac_prev=site ;;
362 -site=* | --site=* | --sit=*)
363 site="$ac_optarg" ;;
365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
366 ac_prev=srcdir ;;
367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
368 srcdir="$ac_optarg" ;;
370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371 | --syscon | --sysco | --sysc | --sys | --sy)
372 ac_prev=sysconfdir ;;
373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375 sysconfdir="$ac_optarg" ;;
377 -target | --target | --targe | --targ | --tar | --ta | --t)
378 ac_prev=target ;;
379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380 target="$ac_optarg" ;;
382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
383 verbose=yes ;;
385 -version | --version | --versio | --versi | --vers)
386 echo "configure generated by autoconf version 2.13"
387 exit 0 ;;
389 -with-* | --with-*)
390 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
391 # Reject names that are not valid shell variable names.
392 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
393 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 case "$ac_option" in
397 *=*) ;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "with_${ac_package}='$ac_optarg'" ;;
402 -without-* | --without-*)
403 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
406 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408 ac_package=`echo $ac_package| sed 's/-/_/g'`
409 eval "with_${ac_package}=no" ;;
411 --x)
412 # Obsolete; use --with-x.
413 with_x=yes ;;
415 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
416 | --x-incl | --x-inc | --x-in | --x-i)
417 ac_prev=x_includes ;;
418 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
419 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
420 x_includes="$ac_optarg" ;;
422 -x-libraries | --x-libraries | --x-librarie | --x-librari \
423 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
424 ac_prev=x_libraries ;;
425 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
426 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
427 x_libraries="$ac_optarg" ;;
429 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
433 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
434 echo "configure: warning: $ac_option: invalid host type" 1>&2
436 if test "x$nonopt" != xNONE; then
437 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
439 nonopt="$ac_option"
442 esac
443 done
445 if test -n "$ac_prev"; then
446 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
449 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
451 # File descriptor usage:
452 # 0 standard input
453 # 1 file creation
454 # 2 errors and warnings
455 # 3 some systems may open it to /dev/tty
456 # 4 used on the Kubota Titan
457 # 6 checking for... messages and results
458 # 5 compiler messages saved in config.log
459 if test "$silent" = yes; then
460 exec 6>/dev/null
461 else
462 exec 6>&1
464 exec 5>./config.log
466 echo "\
467 This file contains any messages produced by compilers while
468 running configure, to aid debugging if configure makes a mistake.
469 " 1>&5
471 # Strip out --no-create and --no-recursion so they do not pile up.
472 # Also quote any args containing shell metacharacters.
473 ac_configure_args=
474 for ac_arg
476 case "$ac_arg" in
477 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
478 | --no-cr | --no-c) ;;
479 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
480 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
482 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
483 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
484 esac
485 done
487 # NLS nuisances.
488 # Only set these to C if already set. These must not be set unconditionally
489 # because not all systems understand e.g. LANG=C (notably SCO).
490 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
491 # Non-C LC_CTYPE values break the ctype check.
492 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
493 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
494 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
495 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
497 # confdefs.h avoids OS command line length limits that DEFS can exceed.
498 rm -rf conftest* confdefs.h
499 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
500 echo > confdefs.h
502 # A filename unique to this package, relative to the directory that
503 # configure is in, which we can look for to find out if srcdir is correct.
504 ac_unique_file=src/ios.cc
506 # Find the source files, if location was not specified.
507 if test -z "$srcdir"; then
508 ac_srcdir_defaulted=yes
509 # Try the directory containing this script, then its parent.
510 ac_prog=$0
511 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
512 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513 srcdir=$ac_confdir
514 if test ! -r $srcdir/$ac_unique_file; then
515 srcdir=..
517 else
518 ac_srcdir_defaulted=no
520 if test ! -r $srcdir/$ac_unique_file; then
521 if test "$ac_srcdir_defaulted" = yes; then
522 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
523 else
524 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
527 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
529 # Prefer explicitly selected file to automatically selected ones.
530 if test -z "$CONFIG_SITE"; then
531 if test "x$prefix" != xNONE; then
532 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
533 else
534 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
537 for ac_site_file in $CONFIG_SITE; do
538 if test -r "$ac_site_file"; then
539 echo "loading site script $ac_site_file"
540 . "$ac_site_file"
542 done
544 if test -r "$cache_file"; then
545 echo "loading cache $cache_file"
546 . $cache_file
547 else
548 echo "creating cache $cache_file"
549 > $cache_file
552 ac_ext=c
553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
554 ac_cpp='$CPP $CPPFLAGS'
555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
557 cross_compiling=$ac_cv_prog_cc_cross
559 ac_exeext=
560 ac_objext=o
561 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
564 ac_n= ac_c='
565 ' ac_t=' '
566 else
567 ac_n=-n ac_c= ac_t=
569 else
570 ac_n= ac_c='\c' ac_t=
575 # When building with srcdir == objdir, links to the source files will
576 # be created in directories within the target_subdir. We have to
577 # adjust toplevel_srcdir accordingly, so that configure finds
578 # install-sh and other auxiliary files that live in the top-level
579 # source directory.
580 if test "${srcdir}" = "."; then
581 if test -z "${with_target_subdir}"; then
582 toplevel_srcdir="\${top_srcdir}/.."
583 auxdir="${srcdir}/.."
584 else
585 if test "${with_target_subdir}" != "."; then
586 toplevel_srcdir="\${top_srcdir}/${with_multisrctop}../.."
587 auxdir="${srcdir}/${with_multisrctop}../.."
588 else
589 toplevel_srcdir="\${top_srcdir}/${with_multisrctop}.."
590 auxdir="${srcdir}/${with_multisrctop}.."
593 else
594 toplevel_srcdir="\${top_srcdir}/.."
595 auxdir="${srcdir}/.."
597 ac_aux_dir=
598 for ac_dir in $auxdir $srcdir/$auxdir; do
599 if test -f $ac_dir/install-sh; then
600 ac_aux_dir=$ac_dir
601 ac_install_sh="$ac_aux_dir/install-sh -c"
602 break
603 elif test -f $ac_dir/install.sh; then
604 ac_aux_dir=$ac_dir
605 ac_install_sh="$ac_aux_dir/install.sh -c"
606 break
608 done
609 if test -z "$ac_aux_dir"; then
610 { echo "configure: error: can not find install-sh or install.sh in $auxdir $srcdir/$auxdir" 1>&2; exit 1; }
612 ac_config_guess=$ac_aux_dir/config.guess
613 ac_config_sub=$ac_aux_dir/config.sub
614 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
620 # Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc.
622 # Do some error checking and defaulting for the host and target type.
623 # The inputs are:
624 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
626 # The rules are:
627 # 1. You are not allowed to specify --host, --target, and nonopt at the
628 # same time.
629 # 2. Host defaults to nonopt.
630 # 3. If nonopt is not specified, then host defaults to the current host,
631 # as determined by config.guess.
632 # 4. Target and build default to nonopt.
633 # 5. If nonopt is not specified, then target and build default to host.
635 # The aliases save the names the user supplied, while $host etc.
636 # will get canonicalized.
637 case $host---$target---$nonopt in
638 NONE---*---* | *---NONE---* | *---*---NONE) ;;
639 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
640 esac
643 # Make sure we can run config.sub.
644 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
645 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
648 echo $ac_n "checking host system type""... $ac_c" 1>&6
649 echo "configure:650: checking host system type" >&5
651 host_alias=$host
652 case "$host_alias" in
653 NONE)
654 case $nonopt in
655 NONE)
656 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
657 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
658 fi ;;
659 *) host_alias=$nonopt ;;
660 esac ;;
661 esac
663 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
664 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
665 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
666 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
667 echo "$ac_t""$host" 1>&6
669 echo $ac_n "checking target system type""... $ac_c" 1>&6
670 echo "configure:671: checking target system type" >&5
672 target_alias=$target
673 case "$target_alias" in
674 NONE)
675 case $nonopt in
676 NONE) target_alias=$host_alias ;;
677 *) target_alias=$nonopt ;;
678 esac ;;
679 esac
681 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
682 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
683 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
684 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
685 echo "$ac_t""$target" 1>&6
687 echo $ac_n "checking build system type""... $ac_c" 1>&6
688 echo "configure:689: checking build system type" >&5
690 build_alias=$build
691 case "$build_alias" in
692 NONE)
693 case $nonopt in
694 NONE) build_alias=$host_alias ;;
695 *) build_alias=$nonopt ;;
696 esac ;;
697 esac
699 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
700 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
701 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
702 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
703 echo "$ac_t""$build" 1>&6
705 test "$host_alias" != "$target_alias" &&
706 test "$program_prefix$program_suffix$program_transform_name" = \
707 NONENONEs,x,x, &&
708 program_prefix=${target_alias}-
711 # We use these options to decide which functions to include.
712 # Check whether --with-target-subdir or --without-target-subdir was given.
713 if test "${with_target_subdir+set}" = set; then
714 withval="$with_target_subdir"
718 # Check whether --with-cross-host or --without-cross-host was given.
719 if test "${with_cross_host+set}" = set; then
720 withval="$with_cross_host"
725 # Runs configure.host and configure.target. Have to run this before
726 # the GLIBCPP_ENABLE_* macros below.
727 # Find a good install program. We prefer a C program (faster),
728 # so one script is as good as another. But avoid the broken or
729 # incompatible versions:
730 # SysV /etc/install, /usr/sbin/install
731 # SunOS /usr/etc/install
732 # IRIX /sbin/install
733 # AIX /bin/install
734 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
735 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
736 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
737 # ./install, which can be erroneously created by make from ./install.sh.
738 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
739 echo "configure:740: checking for a BSD compatible install" >&5
740 if test -z "$INSTALL"; then
741 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
743 else
744 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
745 for ac_dir in $PATH; do
746 # Account for people who put trailing slashes in PATH elements.
747 case "$ac_dir/" in
748 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
750 # OSF1 and SCO ODT 3.0 have their own names for install.
751 # Don't use installbsd from OSF since it installs stuff as root
752 # by default.
753 for ac_prog in ginstall scoinst install; do
754 if test -f $ac_dir/$ac_prog; then
755 if test $ac_prog = install &&
756 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
757 # AIX install. It has an incompatible calling convention.
759 else
760 ac_cv_path_install="$ac_dir/$ac_prog -c"
761 break 2
764 done
766 esac
767 done
768 IFS="$ac_save_IFS"
771 if test "${ac_cv_path_install+set}" = set; then
772 INSTALL="$ac_cv_path_install"
773 else
774 # As a last resort, use the slow shell script. We don't cache a
775 # path for INSTALL within a source directory, because that will
776 # break other packages using the cache if that directory is
777 # removed, or if the path is relative.
778 INSTALL="$ac_install_sh"
781 echo "$ac_t""$INSTALL" 1>&6
783 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
784 # It thinks the first close brace ends the variable substitution.
785 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
787 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
789 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
791 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
792 echo "configure:793: checking whether build environment is sane" >&5
793 # Just in case
794 sleep 1
795 echo timestamp > conftestfile
796 # Do `set' in a subshell so we don't clobber the current shell's
797 # arguments. Must try -L first in case configure is actually a
798 # symlink; some systems play weird games with the mod time of symlinks
799 # (eg FreeBSD returns the mod time of the symlink's containing
800 # directory).
801 if (
802 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
803 if test "$*" = "X"; then
804 # -L didn't work.
805 set X `ls -t $srcdir/configure conftestfile`
807 if test "$*" != "X $srcdir/configure conftestfile" \
808 && test "$*" != "X conftestfile $srcdir/configure"; then
810 # If neither matched, then we have a broken ls. This can happen
811 # if, for instance, CONFIG_SHELL is bash and it inherits a
812 # broken ls alias from the environment. This has actually
813 # happened. Such a system could not be considered "sane".
814 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
815 alias in your environment" 1>&2; exit 1; }
818 test "$2" = conftestfile
820 then
821 # Ok.
823 else
824 { echo "configure: error: newly created file is older than distributed files!
825 Check your system clock" 1>&2; exit 1; }
827 rm -f conftest*
828 echo "$ac_t""yes" 1>&6
829 if test "$program_transform_name" = s,x,x,; then
830 program_transform_name=
831 else
832 # Double any \ or $. echo might interpret backslashes.
833 cat <<\EOF_SED > conftestsed
834 s,\\,\\\\,g; s,\$,$$,g
835 EOF_SED
836 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
837 rm -f conftestsed
839 test "$program_prefix" != NONE &&
840 program_transform_name="s,^,${program_prefix},; $program_transform_name"
841 # Use a double $ so make ignores it.
842 test "$program_suffix" != NONE &&
843 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
845 # sed with no file args requires a program.
846 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
848 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
849 echo "configure:850: checking whether ${MAKE-make} sets \${MAKE}" >&5
850 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
851 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
853 else
854 cat > conftestmake <<\EOF
855 all:
856 @echo 'ac_maketemp="${MAKE}"'
858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
859 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
860 if test -n "$ac_maketemp"; then
861 eval ac_cv_prog_make_${ac_make}_set=yes
862 else
863 eval ac_cv_prog_make_${ac_make}_set=no
865 rm -f conftestmake
867 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
868 echo "$ac_t""yes" 1>&6
869 SET_MAKE=
870 else
871 echo "$ac_t""no" 1>&6
872 SET_MAKE="MAKE=${MAKE-make}"
875 if test $host != $build; then
876 ac_tool_prefix=${host_alias}-
877 else
878 ac_tool_prefix=
881 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
882 echo "configure:883: checking for Cygwin environment" >&5
883 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
885 else
886 cat > conftest.$ac_ext <<EOF
887 #line 888 "configure"
888 #include "confdefs.h"
890 int main() {
892 #ifndef __CYGWIN__
893 #define __CYGWIN__ __CYGWIN32__
894 #endif
895 return __CYGWIN__;
896 ; return 0; }
898 if { (eval echo configure:899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
899 rm -rf conftest*
900 ac_cv_cygwin=yes
901 else
902 echo "configure: failed program was:" >&5
903 cat conftest.$ac_ext >&5
904 rm -rf conftest*
905 ac_cv_cygwin=no
907 rm -f conftest*
908 rm -f conftest*
911 echo "$ac_t""$ac_cv_cygwin" 1>&6
912 CYGWIN=
913 test "$ac_cv_cygwin" = yes && CYGWIN=yes
914 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
915 echo "configure:916: checking for mingw32 environment" >&5
916 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
917 echo $ac_n "(cached) $ac_c" 1>&6
918 else
919 cat > conftest.$ac_ext <<EOF
920 #line 921 "configure"
921 #include "confdefs.h"
923 int main() {
924 return __MINGW32__;
925 ; return 0; }
927 if { (eval echo configure:928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
928 rm -rf conftest*
929 ac_cv_mingw32=yes
930 else
931 echo "configure: failed program was:" >&5
932 cat conftest.$ac_ext >&5
933 rm -rf conftest*
934 ac_cv_mingw32=no
936 rm -f conftest*
937 rm -f conftest*
940 echo "$ac_t""$ac_cv_mingw32" 1>&6
941 MINGW32=
942 test "$ac_cv_mingw32" = yes && MINGW32=yes
944 # Check whether --enable-multilib or --disable-multilib was given.
945 if test "${enable_multilib+set}" = set; then
946 enableval="$enable_multilib"
947 case "${enableval}" in
948 yes) multilib=yes ;;
949 no) multilib=no ;;
950 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
951 esac
952 else
953 multilib=yes
956 glibcpp_basedir=$auxdir/./libstdc++-v3
960 PACKAGE=libstdc++
962 VERSION=2.91
964 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
965 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
967 cat >> confdefs.h <<EOF
968 #define PACKAGE "$PACKAGE"
971 cat >> confdefs.h <<EOF
972 #define VERSION "$VERSION"
977 missing_dir=`cd $ac_aux_dir && pwd`
978 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
979 echo "configure:980: checking for working aclocal" >&5
980 # Run test in a subshell; some versions of sh will print an error if
981 # an executable is not found, even if stderr is redirected.
982 # Redirect stdin to placate older versions of autoconf. Sigh.
983 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
984 ACLOCAL=aclocal
985 echo "$ac_t""found" 1>&6
986 else
987 ACLOCAL="$missing_dir/missing aclocal"
988 echo "$ac_t""missing" 1>&6
991 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
992 echo "configure:993: checking for working autoconf" >&5
993 # Run test in a subshell; some versions of sh will print an error if
994 # an executable is not found, even if stderr is redirected.
995 # Redirect stdin to placate older versions of autoconf. Sigh.
996 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
997 AUTOCONF=autoconf
998 echo "$ac_t""found" 1>&6
999 else
1000 AUTOCONF="$missing_dir/missing autoconf"
1001 echo "$ac_t""missing" 1>&6
1004 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1005 echo "configure:1006: checking for working automake" >&5
1006 # Run test in a subshell; some versions of sh will print an error if
1007 # an executable is not found, even if stderr is redirected.
1008 # Redirect stdin to placate older versions of autoconf. Sigh.
1009 if (automake --version) < /dev/null > /dev/null 2>&1; then
1010 AUTOMAKE=automake
1011 echo "$ac_t""found" 1>&6
1012 else
1013 AUTOMAKE="$missing_dir/missing automake"
1014 echo "$ac_t""missing" 1>&6
1017 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1018 echo "configure:1019: checking for working autoheader" >&5
1019 # Run test in a subshell; some versions of sh will print an error if
1020 # an executable is not found, even if stderr is redirected.
1021 # Redirect stdin to placate older versions of autoconf. Sigh.
1022 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1023 AUTOHEADER=autoheader
1024 echo "$ac_t""found" 1>&6
1025 else
1026 AUTOHEADER="$missing_dir/missing autoheader"
1027 echo "$ac_t""missing" 1>&6
1030 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1031 echo "configure:1032: checking for working makeinfo" >&5
1032 # Run test in a subshell; some versions of sh will print an error if
1033 # an executable is not found, even if stderr is redirected.
1034 # Redirect stdin to placate older versions of autoconf. Sigh.
1035 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1036 MAKEINFO=makeinfo
1037 echo "$ac_t""found" 1>&6
1038 else
1039 MAKEINFO="$missing_dir/missing makeinfo"
1040 echo "$ac_t""missing" 1>&6
1045 # Never versions of autoconf add an underscore to these functions.
1046 # Prevent future problems ...
1052 # AC_PROG_CC
1054 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1055 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1056 # are probably using a cross compiler, which will not be able to fully
1057 # link an executable. This should really be fixed in autoconf
1058 # itself.
1063 # Extract the first word of "gcc", so it can be a program name with args.
1064 set dummy gcc; ac_word=$2
1065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1066 echo "configure:1067: checking for $ac_word" >&5
1067 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1068 echo $ac_n "(cached) $ac_c" 1>&6
1069 else
1070 if test -n "$CC"; then
1071 ac_cv_prog_CC="$CC" # Let the user override the test.
1072 else
1073 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1074 ac_dummy="$PATH"
1075 for ac_dir in $ac_dummy; do
1076 test -z "$ac_dir" && ac_dir=.
1077 if test -f $ac_dir/$ac_word; then
1078 ac_cv_prog_CC="gcc"
1079 break
1081 done
1082 IFS="$ac_save_ifs"
1085 CC="$ac_cv_prog_CC"
1086 if test -n "$CC"; then
1087 echo "$ac_t""$CC" 1>&6
1088 else
1089 echo "$ac_t""no" 1>&6
1092 if test -z "$CC"; then
1093 # Extract the first word of "cc", so it can be a program name with args.
1094 set dummy cc; ac_word=$2
1095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1096 echo "configure:1097: checking for $ac_word" >&5
1097 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1099 else
1100 if test -n "$CC"; then
1101 ac_cv_prog_CC="$CC" # Let the user override the test.
1102 else
1103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1104 ac_prog_rejected=no
1105 ac_dummy="$PATH"
1106 for ac_dir in $ac_dummy; do
1107 test -z "$ac_dir" && ac_dir=.
1108 if test -f $ac_dir/$ac_word; then
1109 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1110 ac_prog_rejected=yes
1111 continue
1113 ac_cv_prog_CC="cc"
1114 break
1116 done
1117 IFS="$ac_save_ifs"
1118 if test $ac_prog_rejected = yes; then
1119 # We found a bogon in the path, so make sure we never use it.
1120 set dummy $ac_cv_prog_CC
1121 shift
1122 if test $# -gt 0; then
1123 # We chose a different compiler from the bogus one.
1124 # However, it has the same basename, so the bogon will be chosen
1125 # first if we set CC to just the basename; use the full file name.
1126 shift
1127 set dummy "$ac_dir/$ac_word" "$@"
1128 shift
1129 ac_cv_prog_CC="$@"
1134 CC="$ac_cv_prog_CC"
1135 if test -n "$CC"; then
1136 echo "$ac_t""$CC" 1>&6
1137 else
1138 echo "$ac_t""no" 1>&6
1141 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1144 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether we are using GNU C" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1148 else
1149 cat > conftest.c <<EOF
1150 #ifdef __GNUC__
1151 yes;
1152 #endif
1154 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1155 ac_cv_prog_gcc=yes
1156 else
1157 ac_cv_prog_gcc=no
1161 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1163 if test $ac_cv_prog_gcc = yes; then
1164 GCC=yes
1165 ac_test_CFLAGS="${CFLAGS+set}"
1166 ac_save_CFLAGS="$CFLAGS"
1167 CFLAGS=
1168 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1169 echo "configure:1170: checking whether ${CC-cc} accepts -g" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1172 else
1173 echo 'void f(){}' > conftest.c
1174 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1175 ac_cv_prog_cc_g=yes
1176 else
1177 ac_cv_prog_cc_g=no
1179 rm -f conftest*
1183 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1184 if test "$ac_test_CFLAGS" = set; then
1185 CFLAGS="$ac_save_CFLAGS"
1186 elif test $ac_cv_prog_cc_g = yes; then
1187 CFLAGS="-g -O2"
1188 else
1189 CFLAGS="-O2"
1191 else
1192 GCC=
1193 test "${CFLAGS+set}" = set || CFLAGS="-g"
1197 # Can't just call these here as g++ requires libstc++ to be built....
1198 # AC_PROG_CXX
1200 # Likewise for AC_PROG_CXX.
1204 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1205 # flags that come in CXX while configuring libstdc++. They're different
1206 # from those used for all other target libraries. If CXX is set in
1207 # the environment, respect that here.
1208 glibcpp_CXX=$CXX
1209 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1211 # Extract the first word of "$ac_prog", so it can be a program name with args.
1212 set dummy $ac_prog; ac_word=$2
1213 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1214 echo "configure:1215: checking for $ac_word" >&5
1215 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218 if test -n "$glibcpp_CXX"; then
1219 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1220 else
1221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1222 ac_dummy="$PATH"
1223 for ac_dir in $ac_dummy; do
1224 test -z "$ac_dir" && ac_dir=.
1225 if test -f $ac_dir/$ac_word; then
1226 ac_cv_prog_glibcpp_CXX="$ac_prog"
1227 break
1229 done
1230 IFS="$ac_save_ifs"
1233 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1234 if test -n "$glibcpp_CXX"; then
1235 echo "$ac_t""$glibcpp_CXX" 1>&6
1236 else
1237 echo "$ac_t""no" 1>&6
1240 test -n "$glibcpp_CXX" && break
1241 done
1242 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1245 CXX=$glibcpp_CXX
1246 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1248 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1249 echo "configure:1250: checking whether we are using GNU C++" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1252 else
1253 cat > conftest.C <<EOF
1254 #ifdef __GNUC__
1255 yes;
1256 #endif
1258 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1259 ac_cv_prog_gxx=yes
1260 else
1261 ac_cv_prog_gxx=no
1265 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1267 if test $ac_cv_prog_gxx = yes; then
1268 GXX=yes
1269 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1270 ac_save_CXXFLAGS="$CXXFLAGS"
1271 CXXFLAGS=
1272 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1273 echo "configure:1274: checking whether ${CXX-g++} accepts -g" >&5
1274 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1276 else
1277 echo 'void f(){}' > conftest.cc
1278 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1279 ac_cv_prog_cxx_g=yes
1280 else
1281 ac_cv_prog_cxx_g=no
1283 rm -f conftest*
1287 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1288 if test "$ac_test_CXXFLAGS" = set; then
1289 CXXFLAGS="$ac_save_CXXFLAGS"
1290 elif test $ac_cv_prog_cxx_g = yes; then
1291 CXXFLAGS="-g -O2"
1292 else
1293 CXXFLAGS="-O2"
1295 else
1296 GXX=
1297 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1301 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1302 set dummy ${ac_tool_prefix}as; ac_word=$2
1303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1304 echo "configure:1305: checking for $ac_word" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308 if test -n "$AS"; then
1309 ac_cv_prog_AS="$AS" # Let the user override the test.
1310 else
1311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1312 ac_dummy="$PATH"
1313 for ac_dir in $ac_dummy; do
1314 test -z "$ac_dir" && ac_dir=.
1315 if test -f $ac_dir/$ac_word; then
1316 ac_cv_prog_AS="${ac_tool_prefix}as"
1317 break
1319 done
1320 IFS="$ac_save_ifs"
1321 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1324 AS="$ac_cv_prog_AS"
1325 if test -n "$AS"; then
1326 echo "$ac_t""$AS" 1>&6
1327 else
1328 echo "$ac_t""no" 1>&6
1333 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1334 set dummy ${ac_tool_prefix}ar; ac_word=$2
1335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1336 echo "configure:1337: checking for $ac_word" >&5
1337 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1339 else
1340 if test -n "$AR"; then
1341 ac_cv_prog_AR="$AR" # Let the user override the test.
1342 else
1343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1344 ac_dummy="$PATH"
1345 for ac_dir in $ac_dummy; do
1346 test -z "$ac_dir" && ac_dir=.
1347 if test -f $ac_dir/$ac_word; then
1348 ac_cv_prog_AR="${ac_tool_prefix}ar"
1349 break
1351 done
1352 IFS="$ac_save_ifs"
1353 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1356 AR="$ac_cv_prog_AR"
1357 if test -n "$AR"; then
1358 echo "$ac_t""$AR" 1>&6
1359 else
1360 echo "$ac_t""no" 1>&6
1365 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1366 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1368 echo "configure:1369: checking for $ac_word" >&5
1369 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1371 else
1372 if test -n "$RANLIB"; then
1373 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1374 else
1375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1376 ac_dummy="$PATH"
1377 for ac_dir in $ac_dummy; do
1378 test -z "$ac_dir" && ac_dir=.
1379 if test -f $ac_dir/$ac_word; then
1380 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1381 break
1383 done
1384 IFS="$ac_save_ifs"
1387 RANLIB="$ac_cv_prog_RANLIB"
1388 if test -n "$RANLIB"; then
1389 echo "$ac_t""$RANLIB" 1>&6
1390 else
1391 echo "$ac_t""no" 1>&6
1395 if test -z "$ac_cv_prog_RANLIB"; then
1396 if test -n "$ac_tool_prefix"; then
1397 # Extract the first word of "ranlib", so it can be a program name with args.
1398 set dummy ranlib; ac_word=$2
1399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1400 echo "configure:1401: checking for $ac_word" >&5
1401 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1403 else
1404 if test -n "$RANLIB"; then
1405 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1406 else
1407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1408 ac_dummy="$PATH"
1409 for ac_dir in $ac_dummy; do
1410 test -z "$ac_dir" && ac_dir=.
1411 if test -f $ac_dir/$ac_word; then
1412 ac_cv_prog_RANLIB="ranlib"
1413 break
1415 done
1416 IFS="$ac_save_ifs"
1417 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1420 RANLIB="$ac_cv_prog_RANLIB"
1421 if test -n "$RANLIB"; then
1422 echo "$ac_t""$RANLIB" 1>&6
1423 else
1424 echo "$ac_t""no" 1>&6
1427 else
1428 RANLIB="ranlib-not-found-in-path-error"
1432 # Find a good install program. We prefer a C program (faster),
1433 # so one script is as good as another. But avoid the broken or
1434 # incompatible versions:
1435 # SysV /etc/install, /usr/sbin/install
1436 # SunOS /usr/etc/install
1437 # IRIX /sbin/install
1438 # AIX /bin/install
1439 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1440 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1441 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1442 # ./install, which can be erroneously created by make from ./install.sh.
1443 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1444 echo "configure:1445: checking for a BSD compatible install" >&5
1445 if test -z "$INSTALL"; then
1446 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1448 else
1449 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1450 for ac_dir in $PATH; do
1451 # Account for people who put trailing slashes in PATH elements.
1452 case "$ac_dir/" in
1453 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1455 # OSF1 and SCO ODT 3.0 have their own names for install.
1456 # Don't use installbsd from OSF since it installs stuff as root
1457 # by default.
1458 for ac_prog in ginstall scoinst install; do
1459 if test -f $ac_dir/$ac_prog; then
1460 if test $ac_prog = install &&
1461 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1462 # AIX install. It has an incompatible calling convention.
1464 else
1465 ac_cv_path_install="$ac_dir/$ac_prog -c"
1466 break 2
1469 done
1471 esac
1472 done
1473 IFS="$ac_save_IFS"
1476 if test "${ac_cv_path_install+set}" = set; then
1477 INSTALL="$ac_cv_path_install"
1478 else
1479 # As a last resort, use the slow shell script. We don't cache a
1480 # path for INSTALL within a source directory, because that will
1481 # break other packages using the cache if that directory is
1482 # removed, or if the path is relative.
1483 INSTALL="$ac_install_sh"
1486 echo "$ac_t""$INSTALL" 1>&6
1488 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1489 # It thinks the first close brace ends the variable substitution.
1490 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1492 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1494 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1497 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1498 echo "configure:1499: checking whether to enable maintainer-specific portions of Makefiles" >&5
1499 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1500 if test "${enable_maintainer_mode+set}" = set; then
1501 enableval="$enable_maintainer_mode"
1502 USE_MAINTAINER_MODE=$enableval
1503 else
1504 USE_MAINTAINER_MODE=no
1507 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1510 if test $USE_MAINTAINER_MODE = yes; then
1511 MAINTAINER_MODE_TRUE=
1512 MAINTAINER_MODE_FALSE='#'
1513 else
1514 MAINTAINER_MODE_TRUE='#'
1515 MAINTAINER_MODE_FALSE=
1517 MAINT=$MAINTAINER_MODE_TRUE
1521 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1522 # at least currently, we never actually build a program, so we never
1523 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1524 # fails, because we are probably configuring with a cross compiler
1525 # which cant create executables. So we include AC_EXEEXT to keep
1526 # automake happy, but we dont execute it, since we dont care about
1527 # the result.
1528 if false; then
1531 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1532 echo "configure:1533: checking for executable suffix" >&5
1533 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1534 echo $ac_n "(cached) $ac_c" 1>&6
1535 else
1536 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1537 ac_cv_exeext=.exe
1538 else
1539 rm -f conftest*
1540 echo 'int main () { return 0; }' > conftest.$ac_ext
1541 ac_cv_exeext=
1542 if { (eval echo configure:1543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1543 for file in conftest.*; do
1544 case $file in
1545 *.c | *.o | *.obj) ;;
1546 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1547 esac
1548 done
1549 else
1550 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1552 rm -f conftest*
1553 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1557 EXEEXT=""
1558 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1559 echo "$ac_t""${ac_cv_exeext}" 1>&6
1560 ac_exeext=$EXEEXT
1564 . ${glibcpp_basedir}/configure.host
1566 case ${glibcpp_basedir} in
1567 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1568 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1569 esac
1571 # This does for the target what configure.host does for the host. In
1572 # addition to possibly modifying the same flags, it also sets up symlinks.
1574 . ${glibcpp_basedir}/configure.target
1575 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1576 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1582 # Check whether --enable-shared or --disable-shared was given.
1583 if test "${enable_shared+set}" = set; then
1584 enableval="$enable_shared"
1585 p=${PACKAGE-default}
1586 case $enableval in
1587 yes) enable_shared=yes ;;
1588 no) enable_shared=no ;;
1590 enable_shared=no
1591 # Look at the argument we got. We use all the common list separators.
1592 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1593 for pkg in $enableval; do
1594 if test "X$pkg" = "X$p"; then
1595 enable_shared=yes
1597 done
1598 IFS="$ac_save_ifs"
1600 esac
1601 else
1602 enable_shared=yes
1605 # Check whether --enable-static or --disable-static was given.
1606 if test "${enable_static+set}" = set; then
1607 enableval="$enable_static"
1608 p=${PACKAGE-default}
1609 case $enableval in
1610 yes) enable_static=yes ;;
1611 no) enable_static=no ;;
1613 enable_static=no
1614 # Look at the argument we got. We use all the common list separators.
1615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1616 for pkg in $enableval; do
1617 if test "X$pkg" = "X$p"; then
1618 enable_static=yes
1620 done
1621 IFS="$ac_save_ifs"
1623 esac
1624 else
1625 enable_static=yes
1628 # Check whether --enable-fast-install or --disable-fast-install was given.
1629 if test "${enable_fast_install+set}" = set; then
1630 enableval="$enable_fast_install"
1631 p=${PACKAGE-default}
1632 case $enableval in
1633 yes) enable_fast_install=yes ;;
1634 no) enable_fast_install=no ;;
1636 enable_fast_install=no
1637 # Look at the argument we got. We use all the common list separators.
1638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1639 for pkg in $enableval; do
1640 if test "X$pkg" = "X$p"; then
1641 enable_fast_install=yes
1643 done
1644 IFS="$ac_save_ifs"
1646 esac
1647 else
1648 enable_fast_install=yes
1651 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1652 if test "${with_gnu_ld+set}" = set; then
1653 withval="$with_gnu_ld"
1654 test "$withval" = no || with_gnu_ld=yes
1655 else
1656 with_gnu_ld=no
1659 ac_prog=ld
1660 if test "$GCC" = yes; then
1661 # Check if gcc -print-prog-name=ld gives a path.
1662 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1663 echo "configure:1664: checking for ld used by GCC" >&5
1664 case $host in
1665 *-*-mingw*)
1666 # gcc leaves a trailing carriage return which upsets mingw
1667 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1669 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1670 esac
1671 case $ac_prog in
1672 # Accept absolute paths.
1673 [\\/]* | [A-Za-z]:[\\/]*)
1674 re_direlt='/[^/][^/]*/\.\./'
1675 # Canonicalize the path of ld
1676 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1677 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1678 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1679 done
1680 test -z "$LD" && LD="$ac_prog"
1683 # If it fails, then pretend we aren't using GCC.
1684 ac_prog=ld
1687 # If it is relative, then search for the first ld in PATH.
1688 with_gnu_ld=unknown
1690 esac
1691 elif test "$with_gnu_ld" = yes; then
1692 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1693 echo "configure:1694: checking for GNU ld" >&5
1694 else
1695 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1696 echo "configure:1697: checking for non-GNU ld" >&5
1698 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1699 echo $ac_n "(cached) $ac_c" 1>&6
1700 else
1701 if test -z "$LD"; then
1702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1703 for ac_dir in $PATH; do
1704 test -z "$ac_dir" && ac_dir=.
1705 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1706 lt_cv_path_LD="$ac_dir/$ac_prog"
1707 # Check to see if the program is GNU ld. I'd rather use --version,
1708 # but apparently some GNU ld's only accept -v.
1709 # Break only if it was the GNU/non-GNU ld that we prefer.
1710 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1711 test "$with_gnu_ld" != no && break
1712 else
1713 test "$with_gnu_ld" != yes && break
1716 done
1717 IFS="$ac_save_ifs"
1718 else
1719 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1723 LD="$lt_cv_path_LD"
1724 if test -n "$LD"; then
1725 echo "$ac_t""$LD" 1>&6
1726 else
1727 echo "$ac_t""no" 1>&6
1729 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1730 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1731 echo "configure:1732: checking if the linker ($LD) is GNU ld" >&5
1732 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1734 else
1735 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1736 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1737 lt_cv_prog_gnu_ld=yes
1738 else
1739 lt_cv_prog_gnu_ld=no
1743 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1744 with_gnu_ld=$lt_cv_prog_gnu_ld
1747 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1748 echo "configure:1749: checking for $LD option to reload object files" >&5
1749 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1751 else
1752 lt_cv_ld_reload_flag='-r'
1755 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1756 reload_flag=$lt_cv_ld_reload_flag
1757 test -n "$reload_flag" && reload_flag=" $reload_flag"
1759 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1760 echo "configure:1761: checking for BSD-compatible nm" >&5
1761 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1763 else
1764 if test -n "$NM"; then
1765 # Let the user override the test.
1766 lt_cv_path_NM="$NM"
1767 else
1768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1769 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1770 test -z "$ac_dir" && ac_dir=.
1771 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1772 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1773 # Check to see if the nm accepts a BSD-compat flag.
1774 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1775 # nm: unknown option "B" ignored
1776 # Tru64's nm complains that /dev/null is an invalid object file
1777 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1778 lt_cv_path_NM="$tmp_nm -B"
1779 break
1780 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1781 lt_cv_path_NM="$tmp_nm -p"
1782 break
1783 else
1784 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1785 continue # so that we can try to find one that supports BSD flags
1788 done
1789 IFS="$ac_save_ifs"
1790 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1794 NM="$lt_cv_path_NM"
1795 echo "$ac_t""$NM" 1>&6
1797 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1798 echo "configure:1799: checking whether ln -s works" >&5
1799 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1800 echo $ac_n "(cached) $ac_c" 1>&6
1801 else
1802 rm -f conftestdata
1803 if ln -s X conftestdata 2>/dev/null
1804 then
1805 rm -f conftestdata
1806 ac_cv_prog_LN_S="ln -s"
1807 else
1808 ac_cv_prog_LN_S=ln
1811 LN_S="$ac_cv_prog_LN_S"
1812 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1813 echo "$ac_t""yes" 1>&6
1814 else
1815 echo "$ac_t""no" 1>&6
1818 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1819 echo "configure:1820: checking how to recognise dependant libraries" >&5
1820 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1822 else
1823 lt_cv_file_magic_cmd='$MAGIC_CMD'
1824 lt_cv_file_magic_test_file=
1825 lt_cv_deplibs_check_method='unknown'
1826 # Need to set the preceding variable on all platforms that support
1827 # interlibrary dependencies.
1828 # 'none' -- dependencies not supported.
1829 # `unknown' -- same as none, but documents that we really don't know.
1830 # 'pass_all' -- all dependencies passed with no checks.
1831 # 'test_compile' -- check by making test program.
1832 # 'file_magic [regex]' -- check by looking for files in library path
1833 # which responds to the $file_magic_cmd with a given egrep regex.
1834 # If you have `file' or equivalent on your system and you're not sure
1835 # whether `pass_all' will *always* work, you probably want this one.
1837 case $host_os in
1838 aix*)
1839 lt_cv_deplibs_check_method=pass_all
1842 beos*)
1843 lt_cv_deplibs_check_method=pass_all
1846 bsdi4*)
1847 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1848 lt_cv_file_magic_cmd='/usr/bin/file -L'
1849 lt_cv_file_magic_test_file=/shlib/libc.so
1852 cygwin* | mingw* |pw32*)
1853 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1854 lt_cv_file_magic_cmd='$OBJDUMP -f'
1857 darwin* | rhapsody*)
1858 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1859 lt_cv_file_magic_cmd='/usr/bin/file -L'
1860 case "$host_os" in
1861 rhapsody* | darwin1.012)
1862 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1864 *) # Darwin 1.3 on
1865 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1867 esac
1870 freebsd* )
1871 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1872 case $host_cpu in
1873 i*86 )
1874 # Not sure whether the presence of OpenBSD here was a mistake.
1875 # Let's accept both of them until this is cleared up.
1876 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1877 lt_cv_file_magic_cmd=/usr/bin/file
1878 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1880 esac
1881 else
1882 lt_cv_deplibs_check_method=pass_all
1886 gnu*)
1887 lt_cv_deplibs_check_method=pass_all
1890 hpux10.20*|hpux11*)
1891 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1892 lt_cv_file_magic_cmd=/usr/bin/file
1893 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1896 irix5* | irix6*)
1897 case $host_os in
1898 irix5*)
1899 # this will be overridden with pass_all, but let us keep it just in case
1900 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1903 case $LD in
1904 *-32|*"-32 ") libmagic=32-bit;;
1905 *-n32|*"-n32 ") libmagic=N32;;
1906 *-64|*"-64 ") libmagic=64-bit;;
1907 *) libmagic=never-match;;
1908 esac
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 ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1912 esac
1913 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1914 lt_cv_deplibs_check_method=pass_all
1917 # This must be Linux ELF.
1918 linux-gnu*)
1919 case $host_cpu in
1920 alpha* | i*86 | powerpc* | sparc* | ia64* )
1921 lt_cv_deplibs_check_method=pass_all ;;
1923 # glibc up to 2.1.1 does not perform some relocations on ARM
1924 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1925 esac
1926 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1929 netbsd*)
1930 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1931 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1932 else
1933 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1937 newsos6)
1938 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1939 lt_cv_file_magic_cmd=/usr/bin/file
1940 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1943 osf3* | osf4* | osf5*)
1944 # this will be overridden with pass_all, but let us keep it just in case
1945 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1946 lt_cv_file_magic_test_file=/shlib/libc.so
1947 lt_cv_deplibs_check_method=pass_all
1950 sco3.2v5*)
1951 lt_cv_deplibs_check_method=pass_all
1954 solaris*)
1955 lt_cv_deplibs_check_method=pass_all
1956 lt_cv_file_magic_test_file=/lib/libc.so
1959 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1960 case $host_vendor in
1961 ncr)
1962 lt_cv_deplibs_check_method=pass_all
1964 motorola)
1965 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]'
1966 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1968 esac
1970 esac
1974 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1975 file_magic_cmd=$lt_cv_file_magic_cmd
1976 deplibs_check_method=$lt_cv_deplibs_check_method
1978 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1979 echo "configure:1980: checking for object suffix" >&5
1980 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1982 else
1983 rm -f conftest*
1984 echo 'int i = 1;' > conftest.$ac_ext
1985 if { (eval echo configure:1986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1986 for ac_file in conftest.*; do
1987 case $ac_file in
1988 *.c) ;;
1989 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1990 esac
1991 done
1992 else
1993 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1995 rm -f conftest*
1998 echo "$ac_t""$ac_cv_objext" 1>&6
1999 OBJEXT=$ac_cv_objext
2000 ac_objext=$ac_cv_objext
2002 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2004 # Only perform the check for file, if the check method requires it
2005 case $deplibs_check_method in
2006 file_magic*)
2007 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2008 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2009 echo "configure:2010: checking for ${ac_tool_prefix}file" >&5
2010 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2012 else
2013 case $MAGIC_CMD in
2015 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2017 ?:/*)
2018 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2021 ac_save_MAGIC_CMD="$MAGIC_CMD"
2022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2023 ac_dummy="/usr/bin:$PATH"
2024 for ac_dir in $ac_dummy; do
2025 test -z "$ac_dir" && ac_dir=.
2026 if test -f $ac_dir/${ac_tool_prefix}file; then
2027 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2028 if test -n "$file_magic_test_file"; then
2029 case $deplibs_check_method in
2030 "file_magic "*)
2031 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2032 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2033 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2034 egrep "$file_magic_regex" > /dev/null; then
2036 else
2037 cat <<EOF 1>&2
2039 *** Warning: the command libtool uses to detect shared libraries,
2040 *** $file_magic_cmd, produces output that libtool cannot recognize.
2041 *** The result is that libtool may fail to recognize shared libraries
2042 *** as such. This will affect the creation of libtool libraries that
2043 *** depend on shared libraries, but programs linked with such libtool
2044 *** libraries will work regardless of this problem. Nevertheless, you
2045 *** may want to report the problem to your system manager and/or to
2046 *** bug-libtool@gnu.org
2049 fi ;;
2050 esac
2052 break
2054 done
2055 IFS="$ac_save_ifs"
2056 MAGIC_CMD="$ac_save_MAGIC_CMD"
2058 esac
2061 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2062 if test -n "$MAGIC_CMD"; then
2063 echo "$ac_t""$MAGIC_CMD" 1>&6
2064 else
2065 echo "$ac_t""no" 1>&6
2068 if test -z "$lt_cv_path_MAGIC_CMD"; then
2069 if test -n "$ac_tool_prefix"; then
2070 echo $ac_n "checking for file""... $ac_c" 1>&6
2071 echo "configure:2072: checking for file" >&5
2072 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2074 else
2075 case $MAGIC_CMD in
2077 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2079 ?:/*)
2080 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2083 ac_save_MAGIC_CMD="$MAGIC_CMD"
2084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2085 ac_dummy="/usr/bin:$PATH"
2086 for ac_dir in $ac_dummy; do
2087 test -z "$ac_dir" && ac_dir=.
2088 if test -f $ac_dir/file; then
2089 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2090 if test -n "$file_magic_test_file"; then
2091 case $deplibs_check_method in
2092 "file_magic "*)
2093 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2095 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2096 egrep "$file_magic_regex" > /dev/null; then
2098 else
2099 cat <<EOF 1>&2
2101 *** Warning: the command libtool uses to detect shared libraries,
2102 *** $file_magic_cmd, produces output that libtool cannot recognize.
2103 *** The result is that libtool may fail to recognize shared libraries
2104 *** as such. This will affect the creation of libtool libraries that
2105 *** depend on shared libraries, but programs linked with such libtool
2106 *** libraries will work regardless of this problem. Nevertheless, you
2107 *** may want to report the problem to your system manager and/or to
2108 *** bug-libtool@gnu.org
2111 fi ;;
2112 esac
2114 break
2116 done
2117 IFS="$ac_save_ifs"
2118 MAGIC_CMD="$ac_save_MAGIC_CMD"
2120 esac
2123 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2124 if test -n "$MAGIC_CMD"; then
2125 echo "$ac_t""$MAGIC_CMD" 1>&6
2126 else
2127 echo "$ac_t""no" 1>&6
2130 else
2131 MAGIC_CMD=:
2137 esac
2139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2140 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2142 echo "configure:2143: checking for $ac_word" >&5
2143 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2145 else
2146 if test -n "$RANLIB"; then
2147 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2148 else
2149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2150 ac_dummy="$PATH"
2151 for ac_dir in $ac_dummy; do
2152 test -z "$ac_dir" && ac_dir=.
2153 if test -f $ac_dir/$ac_word; then
2154 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2155 break
2157 done
2158 IFS="$ac_save_ifs"
2161 RANLIB="$ac_cv_prog_RANLIB"
2162 if test -n "$RANLIB"; then
2163 echo "$ac_t""$RANLIB" 1>&6
2164 else
2165 echo "$ac_t""no" 1>&6
2169 if test -z "$ac_cv_prog_RANLIB"; then
2170 if test -n "$ac_tool_prefix"; then
2171 # Extract the first word of "ranlib", so it can be a program name with args.
2172 set dummy ranlib; ac_word=$2
2173 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2174 echo "configure:2175: checking for $ac_word" >&5
2175 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2176 echo $ac_n "(cached) $ac_c" 1>&6
2177 else
2178 if test -n "$RANLIB"; then
2179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2180 else
2181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2182 ac_dummy="$PATH"
2183 for ac_dir in $ac_dummy; do
2184 test -z "$ac_dir" && ac_dir=.
2185 if test -f $ac_dir/$ac_word; then
2186 ac_cv_prog_RANLIB="ranlib"
2187 break
2189 done
2190 IFS="$ac_save_ifs"
2191 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2194 RANLIB="$ac_cv_prog_RANLIB"
2195 if test -n "$RANLIB"; then
2196 echo "$ac_t""$RANLIB" 1>&6
2197 else
2198 echo "$ac_t""no" 1>&6
2201 else
2202 RANLIB=":"
2206 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2207 set dummy ${ac_tool_prefix}strip; ac_word=$2
2208 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2209 echo "configure:2210: checking for $ac_word" >&5
2210 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2212 else
2213 if test -n "$STRIP"; then
2214 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2215 else
2216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2217 ac_dummy="$PATH"
2218 for ac_dir in $ac_dummy; do
2219 test -z "$ac_dir" && ac_dir=.
2220 if test -f $ac_dir/$ac_word; then
2221 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2222 break
2224 done
2225 IFS="$ac_save_ifs"
2228 STRIP="$ac_cv_prog_STRIP"
2229 if test -n "$STRIP"; then
2230 echo "$ac_t""$STRIP" 1>&6
2231 else
2232 echo "$ac_t""no" 1>&6
2236 if test -z "$ac_cv_prog_STRIP"; then
2237 if test -n "$ac_tool_prefix"; then
2238 # Extract the first word of "strip", so it can be a program name with args.
2239 set dummy strip; ac_word=$2
2240 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2241 echo "configure:2242: checking for $ac_word" >&5
2242 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2243 echo $ac_n "(cached) $ac_c" 1>&6
2244 else
2245 if test -n "$STRIP"; then
2246 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2247 else
2248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2249 ac_dummy="$PATH"
2250 for ac_dir in $ac_dummy; do
2251 test -z "$ac_dir" && ac_dir=.
2252 if test -f $ac_dir/$ac_word; then
2253 ac_cv_prog_STRIP="strip"
2254 break
2256 done
2257 IFS="$ac_save_ifs"
2258 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2261 STRIP="$ac_cv_prog_STRIP"
2262 if test -n "$STRIP"; then
2263 echo "$ac_t""$STRIP" 1>&6
2264 else
2265 echo "$ac_t""no" 1>&6
2268 else
2269 STRIP=":"
2274 # Check for any special flags to pass to ltconfig.
2275 libtool_flags="--cache-file=$cache_file"
2276 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2277 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2278 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2279 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2280 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2281 libtool_flags="$libtool_flags --enable-dlopen"
2283 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2284 if test "${enable_libtool_lock+set}" = set; then
2285 enableval="$enable_libtool_lock"
2289 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2290 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2292 # Check whether --with-pic or --without-pic was given.
2293 if test "${with_pic+set}" = set; then
2294 withval="$with_pic"
2295 pic_mode="$withval"
2296 else
2297 pic_mode=default
2300 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2301 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2303 # Some flags need to be propagated to the compiler or linker for good
2304 # libtool support.
2305 case $host in
2306 *-*-irix6*)
2307 # Find out which ABI we are using.
2308 echo '#line 2309 "configure"' > conftest.$ac_ext
2309 if { (eval echo configure:2310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2310 case `/usr/bin/file conftest.$ac_objext` in
2311 *32-bit*)
2312 LD="${LD-ld} -32"
2314 *N32*)
2315 LD="${LD-ld} -n32"
2317 *64-bit*)
2318 LD="${LD-ld} -64"
2320 esac
2322 rm -rf conftest*
2325 *-*-sco3.2v5*)
2326 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2327 SAVE_CFLAGS="$CFLAGS"
2328 CFLAGS="$CFLAGS -belf"
2329 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2330 echo "configure:2331: checking whether the C compiler needs -belf" >&5
2331 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2333 else
2335 ac_ext=c
2336 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2337 ac_cpp='$CPP $CPPFLAGS'
2338 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2339 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2340 cross_compiling=$ac_cv_prog_cc_cross
2342 cat > conftest.$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2346 int main() {
2348 ; return 0; }
2350 if { (eval echo configure:2351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2351 rm -rf conftest*
2352 lt_cv_cc_needs_belf=yes
2353 else
2354 echo "configure: failed program was:" >&5
2355 cat conftest.$ac_ext >&5
2356 rm -rf conftest*
2357 lt_cv_cc_needs_belf=no
2359 rm -f conftest*
2360 ac_ext=c
2361 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2362 ac_cpp='$CPP $CPPFLAGS'
2363 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2364 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2365 cross_compiling=$ac_cv_prog_cc_cross
2369 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2370 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2371 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2372 CFLAGS="$SAVE_CFLAGS"
2377 esac
2379 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2380 echo "configure:2381: checking how to run the C++ preprocessor" >&5
2381 if test -z "$CXXCPP"; then
2382 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2384 else
2385 ac_ext=C
2386 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2387 ac_cpp='$CXXCPP $CPPFLAGS'
2388 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2389 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2390 cross_compiling=$ac_cv_prog_cxx_cross
2391 CXXCPP="${CXX-g++} -E"
2392 cat > conftest.$ac_ext <<EOF
2393 #line 2394 "configure"
2394 #include "confdefs.h"
2395 #include <stdlib.h>
2397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2398 { (eval echo configure:2399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2400 if test -z "$ac_err"; then
2402 else
2403 echo "$ac_err" >&5
2404 echo "configure: failed program was:" >&5
2405 cat conftest.$ac_ext >&5
2406 rm -rf conftest*
2407 CXXCPP=/lib/cpp
2409 rm -f conftest*
2410 ac_cv_prog_CXXCPP="$CXXCPP"
2411 ac_ext=c
2412 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2413 ac_cpp='$CPP $CPPFLAGS'
2414 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2415 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2416 cross_compiling=$ac_cv_prog_cc_cross
2419 CXXCPP="$ac_cv_prog_CXXCPP"
2420 echo "$ac_t""$CXXCPP" 1>&6
2423 # Save cache, so that ltconfig can load it
2424 cat > confcache <<\EOF
2425 # This file is a shell script that caches the results of configure
2426 # tests run on this system so they can be shared between configure
2427 # scripts and configure runs. It is not useful on other systems.
2428 # If it contains results you don't want to keep, you may remove or edit it.
2430 # By default, configure uses ./config.cache as the cache file,
2431 # creating it if it does not exist already. You can give configure
2432 # the --cache-file=FILE option to use a different cache file; that is
2433 # what configure does when it calls configure scripts in
2434 # subdirectories, so they share the cache.
2435 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2436 # config.status only pays attention to the cache file if you give it the
2437 # --recheck option to rerun configure.
2440 # The following way of writing the cache mishandles newlines in values,
2441 # but we know of no workaround that is simple, portable, and efficient.
2442 # So, don't put newlines in cache variables' values.
2443 # Ultrix sh set writes to stderr and can't be redirected directly,
2444 # and sets the high bit in the cache file unless we assign to the vars.
2445 (set) 2>&1 |
2446 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2447 *ac_space=\ *)
2448 # `set' does not quote correctly, so add quotes (double-quote substitution
2449 # turns \\\\ into \\, and sed turns \\ into \).
2450 sed -n \
2451 -e "s/'/'\\\\''/g" \
2452 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2455 # `set' quotes correctly as required by POSIX, so do not add quotes.
2456 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2458 esac >> confcache
2459 if cmp -s $cache_file confcache; then
2461 else
2462 if test -w $cache_file; then
2463 echo "updating cache $cache_file"
2464 cat confcache > $cache_file
2465 else
2466 echo "not updating unwritable cache $cache_file"
2469 rm -f confcache
2472 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2473 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2474 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2475 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2476 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2477 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2478 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2479 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2480 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2481 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2483 # Reload cache, that may have been modified by ltconfig
2484 if test -r "$cache_file"; then
2485 echo "loading cache $cache_file"
2486 . $cache_file
2487 else
2488 echo "creating cache $cache_file"
2489 > $cache_file
2493 # This can be used to rebuild libtool when needed
2494 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2496 # Always use our own libtool.
2497 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2499 # Redirect the config.log output again, so that the ltconfig log is not
2500 # clobbered by the next message.
2501 exec 5>>./config.log
2505 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2506 lt_save_CC="$CC"
2507 lt_save_CFLAGS="$CFLAGS"
2508 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2509 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2510 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2511 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2512 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2513 deplibs_check_method="$deplibs_check_method" \
2514 file_magic_cmd="$file_magic_cmd" \
2515 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2516 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2517 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2518 CC="$lt_save_CC"
2519 CFLAGS="$lt_save_CFLAGS"
2521 # Redirect the config.log output again, so that the ltconfig log is not
2522 # clobbered by the next message.
2523 exec 5>>./config.log
2532 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2533 echo "configure:2534: checking for GNU make" >&5
2534 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2536 else
2537 _cv_gnu_make_command='' ;
2538 for a in "${MAKE-make}" make gmake gnumake ; do
2539 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2540 then
2541 _cv_gnu_make_command=$a ;
2542 break;
2544 done ;
2548 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2549 if test "x$_cv_gnu_make_command" != "x" ; then
2550 ifGNUmake='' ;
2551 else
2552 ifGNUmake='#' ;
2556 if test "x$_cv_gnu_make_command" = "x"; then
2557 { echo "configure: error: GNU make not found. Please install it or correct your path." 1>&2; exit 1; }
2563 # Check for c++ or library specific bits that don't require linking.
2565 if test ! -f stamp-sanity-compiler; then
2566 echo $ac_n "checking for g++ that will successfully compile libstdc++-v3""... $ac_c" 1>&6
2567 echo "configure:2568: checking for g++ that will successfully compile libstdc++-v3" >&5
2569 ac_ext=C
2570 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2571 ac_cpp='$CXXCPP $CPPFLAGS'
2572 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2573 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2574 cross_compiling=$ac_cv_prog_cxx_cross
2576 cat > conftest.$ac_ext <<EOF
2577 #line 2578 "configure"
2578 #include "confdefs.h"
2580 #if __GNUC__ >= 3
2582 #endif
2585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2586 egrep "ok" >/dev/null 2>&1; then
2587 rm -rf conftest*
2588 gpp_satisfactory=yes
2589 else
2590 rm -rf conftest*
2591 { echo "configure: error: please upgrade to GCC 3.0 or above" 1>&2; exit 1; }
2593 rm -f conftest*
2595 ac_ext=c
2596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2597 ac_cpp='$CPP $CPPFLAGS'
2598 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2599 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2600 cross_compiling=$ac_cv_prog_cc_cross
2602 echo "$ac_t""$gpp_satisfactory" 1>&6
2603 touch stamp-sanity-compiler
2607 # Enable all the crazy c++ stuff. C_MBCHAR must come early.
2608 # Check whether --enable-debug or --disable-debug was given.
2609 if test "${enable_debug+set}" = set; then
2610 enableval="$enable_debug"
2611 case "${enableval}" in
2612 yes) enable_debug=yes ;;
2613 no) enable_debug=no ;;
2614 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2615 esac
2616 else
2617 enable_debug=no
2620 case "${enable_debug}" in
2621 yes)
2622 DEBUG_FLAGS='-O0 -ggdb3'
2624 no)
2625 DEBUG_FLAGS='-g'
2627 esac
2630 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2631 echo "configure:2632: checking how to run the C preprocessor" >&5
2632 # On Suns, sometimes $CPP names a directory.
2633 if test -n "$CPP" && test -d "$CPP"; then
2634 CPP=
2636 if test -z "$CPP"; then
2637 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2639 else
2640 # This must be in double quotes, not single quotes, because CPP may get
2641 # substituted into the Makefile and "${CC-cc}" will confuse make.
2642 CPP="${CC-cc} -E"
2643 # On the NeXT, cc -E runs the code through the compiler's parser,
2644 # not just through cpp.
2645 cat > conftest.$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2648 #include <assert.h>
2649 Syntax Error
2651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2652 { (eval echo configure:2653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2653 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2654 if test -z "$ac_err"; then
2656 else
2657 echo "$ac_err" >&5
2658 echo "configure: failed program was:" >&5
2659 cat conftest.$ac_ext >&5
2660 rm -rf conftest*
2661 CPP="${CC-cc} -E -traditional-cpp"
2662 cat > conftest.$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2665 #include <assert.h>
2666 Syntax Error
2668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2669 { (eval echo configure:2670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2671 if test -z "$ac_err"; then
2673 else
2674 echo "$ac_err" >&5
2675 echo "configure: failed program was:" >&5
2676 cat conftest.$ac_ext >&5
2677 rm -rf conftest*
2678 CPP="${CC-cc} -nologo -E"
2679 cat > conftest.$ac_ext <<EOF
2680 #line 2681 "configure"
2681 #include "confdefs.h"
2682 #include <assert.h>
2683 Syntax Error
2685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2686 { (eval echo configure:2687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2688 if test -z "$ac_err"; then
2690 else
2691 echo "$ac_err" >&5
2692 echo "configure: failed program was:" >&5
2693 cat conftest.$ac_ext >&5
2694 rm -rf conftest*
2695 CPP=/lib/cpp
2697 rm -f conftest*
2699 rm -f conftest*
2701 rm -f conftest*
2702 ac_cv_prog_CPP="$CPP"
2704 CPP="$ac_cv_prog_CPP"
2705 else
2706 ac_cv_prog_CPP="$CPP"
2708 echo "$ac_t""$CPP" 1>&6
2711 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2712 echo "configure:2713: checking for cstdio to use" >&5
2713 # Check whether --enable-cstdio or --disable-cstdio was given.
2714 if test "${enable_cstdio+set}" = set; then
2715 enableval="$enable_cstdio"
2716 if test x$enable_cstdio = xno; then
2717 enable_cstdio=stdio
2719 else
2720 enable_cstdio=stdio
2724 enable_cstdio_flag=$enable_cstdio
2726 case x${enable_cstdio_flag} in
2727 xlibio)
2728 CSTDIO_H=config/c_io_libio.h
2729 BASIC_FILE_H=config/basic_file_libio.h
2730 BASIC_FILE_CC=config/basic_file_libio.cc
2731 echo "$ac_t""libio" 1>&6
2733 # see if we are on a system with libio native (ie, linux)
2734 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2735 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2736 echo "configure:2737: checking for libio.h" >&5
2737 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2739 else
2740 cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2743 #include <libio.h>
2745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2746 { (eval echo configure:2747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2748 if test -z "$ac_err"; then
2749 rm -rf conftest*
2750 eval "ac_cv_header_$ac_safe=yes"
2751 else
2752 echo "$ac_err" >&5
2753 echo "configure: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2755 rm -rf conftest*
2756 eval "ac_cv_header_$ac_safe=no"
2758 rm -f conftest*
2760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2761 echo "$ac_t""yes" 1>&6
2762 has_libio=yes
2763 else
2764 echo "$ac_t""no" 1>&6
2765 has_libio=no
2769 # Need to check and see what version of glibc is being used. If
2770 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2771 # compile most of libio for linux systems.
2772 if test x$has_libio = x"yes"; then
2773 case "$target" in
2774 *-*-linux*)
2775 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2776 echo "configure:2777: checking for glibc version >= 2.2" >&5
2777 cat > conftest.$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2781 #include <features.h>
2782 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2784 #endif
2787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2788 egrep "ok" >/dev/null 2>&1; then
2789 rm -rf conftest*
2790 glibc_satisfactory=yes
2791 else
2792 rm -rf conftest*
2793 glibc_satisfactory=no
2795 rm -f conftest*
2797 echo "$ac_t""$glibc_satisfactory" 1>&6
2799 esac
2801 # XXX at the moment, admit defeat and force the recompilation
2802 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2803 glibc_satisfactory=no
2805 if test x$glibc_satisfactory = x"yes"; then
2806 need_libio=no
2807 need_wlibio=no
2808 else
2809 need_libio=yes
2810 # bkoz XXX need to add checks to enable this
2811 # pme XXX here's a first pass at such a check
2812 if test x$enable_c_mbchar != xno; then
2813 need_wlibio=yes
2814 else
2815 need_wlibio=no
2819 else
2820 # Using libio, but <libio.h> doesn't exist on the target system. . .
2821 need_libio=yes
2822 # bkoz XXX need to add checks to enable this
2823 # pme XXX here's a first pass at such a check
2824 if test x$enable_c_mbchar != xno; then
2825 need_wlibio=yes
2826 else
2827 need_wlibio=no
2831 xstdio | x | xno | xnone | xyes)
2832 # default
2833 CSTDIO_H=config/c_io_stdio.h
2834 BASIC_FILE_H=config/basic_file_stdio.h
2835 BASIC_FILE_CC=config/basic_file_stdio.cc
2836 echo "$ac_t""stdio" 1>&6
2838 # We're not using stdio.
2839 need_libio=no
2840 need_wlibio=no
2843 echo "$enable_cstdio is an unknown io package" 1>&2
2844 exit 1
2846 esac
2851 # 2000-08-04 bkoz hack
2852 CCODECVT_C=config/c_io_libio_codecvt.c
2854 # 2000-08-04 bkoz hack
2858 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2859 GLIBCPP_BUILD_LIBIO_TRUE=
2860 GLIBCPP_BUILD_LIBIO_FALSE='#'
2861 else
2862 GLIBCPP_BUILD_LIBIO_TRUE='#'
2863 GLIBCPP_BUILD_LIBIO_FALSE=
2867 if test "$need_libio" = yes; then
2868 GLIBCPP_NEED_LIBIO_TRUE=
2869 GLIBCPP_NEED_LIBIO_FALSE='#'
2870 else
2871 GLIBCPP_NEED_LIBIO_TRUE='#'
2872 GLIBCPP_NEED_LIBIO_FALSE=
2876 if test "$need_wlibio" = yes; then
2877 GLIBCPP_NEED_WLIBIO_TRUE=
2878 GLIBCPP_NEED_WLIBIO_FALSE='#'
2879 else
2880 GLIBCPP_NEED_WLIBIO_TRUE='#'
2881 GLIBCPP_NEED_WLIBIO_FALSE=
2883 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2884 libio_la=../libio/libio.la
2885 else
2886 libio_la=
2891 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2892 echo "configure:2893: checking for clocale to use" >&5
2893 # Check whether --enable-clocale or --disable-clocale was given.
2894 if test "${enable_clocale+set}" = set; then
2895 enableval="$enable_clocale"
2896 if test x$enable_clocale = xno; then
2897 enable_clocale=generic
2899 else
2900 enable_clocale=generic
2904 enable_clocale_flag=$enable_clocale
2906 case x${enable_clocale_flag} in
2907 xgnu)
2908 CLOCALE_H=config/c_locale_gnu.h
2909 CLOCALE_CC=config/c_locale_gnu.cc
2910 echo "$ac_t""gnu" 1>&6
2912 xgeneric)
2913 CLOCALE_H=config/c_locale_generic.h
2914 CLOCALE_CC=config/c_locale_generic.cc
2915 echo "$ac_t""generic" 1>&6
2918 echo "$enable_clocale is an unknown locale package" 1>&2
2919 exit 1
2921 esac
2926 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
2927 if test "${enable_c_mbchar+set}" = set; then
2928 enableval="$enable_c_mbchar"
2929 case "$enableval" in
2930 yes) enable_c_mbchar=yes ;;
2931 no) enable_c_mbchar=no ;;
2932 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
2933 esac
2934 else
2935 enable_c_mbchar=yes
2939 # Check whether --enable-c99 or --disable-c99 was given.
2940 if test "${enable_c99+set}" = set; then
2941 enableval="$enable_c99"
2942 case "$enableval" in
2943 yes) enable_c99=yes ;;
2944 no) enable_c99=no ;;
2945 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
2946 esac
2947 else
2948 enable_c99=yes
2952 ac_ext=C
2953 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2954 ac_cpp='$CXXCPP $CPPFLAGS'
2955 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2956 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2957 cross_compiling=$ac_cv_prog_cxx_cross
2960 # Check for the existence of <math.h> functions used if C99 is enabled.
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2964 #include <math.h>
2965 int main() {
2966 fpclassify(0.0);
2967 ; return 0; }
2969 if { (eval echo configure:2970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2971 else
2972 echo "configure: failed program was:" >&5
2973 cat conftest.$ac_ext >&5
2974 rm -rf conftest*
2975 ac_c99_math=no
2977 rm -f conftest*
2978 cat > conftest.$ac_ext <<EOF
2979 #line 2980 "configure"
2980 #include "confdefs.h"
2981 #include <math.h>
2982 int main() {
2983 isfinite(0.0);
2984 ; return 0; }
2986 if { (eval echo configure:2987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2988 else
2989 echo "configure: failed program was:" >&5
2990 cat conftest.$ac_ext >&5
2991 rm -rf conftest*
2992 ac_c99_math=no
2994 rm -f conftest*
2995 cat > conftest.$ac_ext <<EOF
2996 #line 2997 "configure"
2997 #include "confdefs.h"
2998 #include <math.h>
2999 int main() {
3000 isinf(0.0);
3001 ; return 0; }
3003 if { (eval echo configure:3004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3005 else
3006 echo "configure: failed program was:" >&5
3007 cat conftest.$ac_ext >&5
3008 rm -rf conftest*
3009 ac_c99_math=no
3011 rm -f conftest*
3012 cat > conftest.$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3015 #include <math.h>
3016 int main() {
3017 isnan(0.0);
3018 ; return 0; }
3020 if { (eval echo configure:3021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3022 else
3023 echo "configure: failed program was:" >&5
3024 cat conftest.$ac_ext >&5
3025 rm -rf conftest*
3026 ac_c99_math=no
3028 rm -f conftest*
3029 cat > conftest.$ac_ext <<EOF
3030 #line 3031 "configure"
3031 #include "confdefs.h"
3032 #include <math.h>
3033 int main() {
3034 isnormal(0.0);
3035 ; return 0; }
3037 if { (eval echo configure:3038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3039 else
3040 echo "configure: failed program was:" >&5
3041 cat conftest.$ac_ext >&5
3042 rm -rf conftest*
3043 ac_c99_math=no
3045 rm -f conftest*
3046 cat > conftest.$ac_ext <<EOF
3047 #line 3048 "configure"
3048 #include "confdefs.h"
3049 #include <math.h>
3050 int main() {
3051 signbit(0.0);
3052 ; return 0; }
3054 if { (eval echo configure:3055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3056 else
3057 echo "configure: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3059 rm -rf conftest*
3060 ac_c99_math=no
3062 rm -f conftest*
3063 cat > conftest.$ac_ext <<EOF
3064 #line 3065 "configure"
3065 #include "confdefs.h"
3066 #include <math.h>
3067 int main() {
3068 isgreater(0.0,0.0);
3069 ; return 0; }
3071 if { (eval echo configure:3072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3073 else
3074 echo "configure: failed program was:" >&5
3075 cat conftest.$ac_ext >&5
3076 rm -rf conftest*
3077 ac_c99_math=no
3079 rm -f conftest*
3080 cat > conftest.$ac_ext <<EOF
3081 #line 3082 "configure"
3082 #include "confdefs.h"
3083 #include <math.h>
3084 int main() {
3085 isgreaterequal(0.0,0.0);
3086 ; return 0; }
3088 if { (eval echo configure:3089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3090 else
3091 echo "configure: failed program was:" >&5
3092 cat conftest.$ac_ext >&5
3093 rm -rf conftest*
3094 ac_c99_math=no
3096 rm -f conftest*
3097 cat > conftest.$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3100 #include <math.h>
3101 int main() {
3102 isless(0.0,0.0);
3103 ; return 0; }
3105 if { (eval echo configure:3106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3107 else
3108 echo "configure: failed program was:" >&5
3109 cat conftest.$ac_ext >&5
3110 rm -rf conftest*
3111 ac_c99_math=no
3113 rm -f conftest*
3114 cat > conftest.$ac_ext <<EOF
3115 #line 3116 "configure"
3116 #include "confdefs.h"
3117 #include <math.h>
3118 int main() {
3119 islessequal(0.0,0.0);
3120 ; return 0; }
3122 if { (eval echo configure:3123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3124 else
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3127 rm -rf conftest*
3128 ac_c99_math=no
3130 rm -f conftest*
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 #include <math.h>
3135 int main() {
3136 islessgreater(0.0,0.0);
3137 ; return 0; }
3139 if { (eval echo configure:3140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3141 else
3142 echo "configure: failed program was:" >&5
3143 cat conftest.$ac_ext >&5
3144 rm -rf conftest*
3145 ac_c99_math=no
3147 rm -f conftest*
3148 cat > conftest.$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3151 #include <math.h>
3152 int main() {
3153 isunordered(0.0,0.0);
3154 ; return 0; }
3156 if { (eval echo configure:3157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3158 else
3159 echo "configure: failed program was:" >&5
3160 cat conftest.$ac_ext >&5
3161 rm -rf conftest*
3162 ac_c99_math=no
3164 rm -f conftest*
3166 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3167 echo $ac_n "checking for strtoll""... $ac_c" 1>&6
3168 echo "configure:3169: checking for strtoll" >&5
3169 if eval "test \"`echo '$''{'ac_cv_func_strtoll'+set}'`\" = set"; then
3170 echo $ac_n "(cached) $ac_c" 1>&6
3171 else
3172 cat > conftest.$ac_ext <<EOF
3173 #line 3174 "configure"
3174 #include "confdefs.h"
3175 /* System header to define __stub macros and hopefully few prototypes,
3176 which can conflict with char strtoll(); below. */
3177 #include <assert.h>
3178 /* Override any gcc2 internal prototype to avoid an error. */
3179 #ifdef __cplusplus
3180 extern "C"
3181 #endif
3182 /* We use char because int might match the return type of a gcc2
3183 builtin and then its argument prototype would still apply. */
3184 char strtoll();
3186 int main() {
3188 /* The GNU C library defines this for functions which it implements
3189 to always fail with ENOSYS. Some functions are actually named
3190 something starting with __ and the normal name is an alias. */
3191 #if defined (__stub_strtoll) || defined (__stub___strtoll)
3192 choke me
3193 #else
3194 strtoll();
3195 #endif
3197 ; return 0; }
3199 if { (eval echo configure:3200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3200 rm -rf conftest*
3201 eval "ac_cv_func_strtoll=yes"
3202 else
3203 echo "configure: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3205 rm -rf conftest*
3206 eval "ac_cv_func_strtoll=no"
3208 rm -f conftest*
3211 if eval "test \"`echo '$ac_cv_func_'strtoll`\" = yes"; then
3212 echo "$ac_t""yes" 1>&6
3214 else
3215 echo "$ac_t""no" 1>&6
3216 ac_c99_stdlib=no
3219 echo $ac_n "checking for strtoull""... $ac_c" 1>&6
3220 echo "configure:3221: checking for strtoull" >&5
3221 if eval "test \"`echo '$''{'ac_cv_func_strtoull'+set}'`\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3223 else
3224 cat > conftest.$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3227 /* System header to define __stub macros and hopefully few prototypes,
3228 which can conflict with char strtoull(); below. */
3229 #include <assert.h>
3230 /* Override any gcc2 internal prototype to avoid an error. */
3231 #ifdef __cplusplus
3232 extern "C"
3233 #endif
3234 /* We use char because int might match the return type of a gcc2
3235 builtin and then its argument prototype would still apply. */
3236 char strtoull();
3238 int main() {
3240 /* The GNU C library defines this for functions which it implements
3241 to always fail with ENOSYS. Some functions are actually named
3242 something starting with __ and the normal name is an alias. */
3243 #if defined (__stub_strtoull) || defined (__stub___strtoull)
3244 choke me
3245 #else
3246 strtoull();
3247 #endif
3249 ; return 0; }
3251 if { (eval echo configure:3252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3252 rm -rf conftest*
3253 eval "ac_cv_func_strtoull=yes"
3254 else
3255 echo "configure: failed program was:" >&5
3256 cat conftest.$ac_ext >&5
3257 rm -rf conftest*
3258 eval "ac_cv_func_strtoull=no"
3260 rm -f conftest*
3263 if eval "test \"`echo '$ac_cv_func_'strtoull`\" = yes"; then
3264 echo "$ac_t""yes" 1>&6
3266 else
3267 echo "$ac_t""no" 1>&6
3268 ac_c99_stdlib=no
3271 echo $ac_n "checking for llabs""... $ac_c" 1>&6
3272 echo "configure:3273: checking for llabs" >&5
3273 if eval "test \"`echo '$''{'ac_cv_func_llabs'+set}'`\" = set"; then
3274 echo $ac_n "(cached) $ac_c" 1>&6
3275 else
3276 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3279 /* System header to define __stub macros and hopefully few prototypes,
3280 which can conflict with char llabs(); below. */
3281 #include <assert.h>
3282 /* Override any gcc2 internal prototype to avoid an error. */
3283 #ifdef __cplusplus
3284 extern "C"
3285 #endif
3286 /* We use char because int might match the return type of a gcc2
3287 builtin and then its argument prototype would still apply. */
3288 char llabs();
3290 int main() {
3292 /* The GNU C library defines this for functions which it implements
3293 to always fail with ENOSYS. Some functions are actually named
3294 something starting with __ and the normal name is an alias. */
3295 #if defined (__stub_llabs) || defined (__stub___llabs)
3296 choke me
3297 #else
3298 llabs();
3299 #endif
3301 ; return 0; }
3303 if { (eval echo configure:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3304 rm -rf conftest*
3305 eval "ac_cv_func_llabs=yes"
3306 else
3307 echo "configure: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3309 rm -rf conftest*
3310 eval "ac_cv_func_llabs=no"
3312 rm -f conftest*
3315 if eval "test \"`echo '$ac_cv_func_'llabs`\" = yes"; then
3316 echo "$ac_t""yes" 1>&6
3318 else
3319 echo "$ac_t""no" 1>&6
3320 ac_c99_stdlib=no
3323 echo $ac_n "checking for lldiv""... $ac_c" 1>&6
3324 echo "configure:3325: checking for lldiv" >&5
3325 if eval "test \"`echo '$''{'ac_cv_func_lldiv'+set}'`\" = set"; then
3326 echo $ac_n "(cached) $ac_c" 1>&6
3327 else
3328 cat > conftest.$ac_ext <<EOF
3329 #line 3330 "configure"
3330 #include "confdefs.h"
3331 /* System header to define __stub macros and hopefully few prototypes,
3332 which can conflict with char lldiv(); below. */
3333 #include <assert.h>
3334 /* Override any gcc2 internal prototype to avoid an error. */
3335 #ifdef __cplusplus
3336 extern "C"
3337 #endif
3338 /* We use char because int might match the return type of a gcc2
3339 builtin and then its argument prototype would still apply. */
3340 char lldiv();
3342 int main() {
3344 /* The GNU C library defines this for functions which it implements
3345 to always fail with ENOSYS. Some functions are actually named
3346 something starting with __ and the normal name is an alias. */
3347 #if defined (__stub_lldiv) || defined (__stub___lldiv)
3348 choke me
3349 #else
3350 lldiv();
3351 #endif
3353 ; return 0; }
3355 if { (eval echo configure:3356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3356 rm -rf conftest*
3357 eval "ac_cv_func_lldiv=yes"
3358 else
3359 echo "configure: failed program was:" >&5
3360 cat conftest.$ac_ext >&5
3361 rm -rf conftest*
3362 eval "ac_cv_func_lldiv=no"
3364 rm -f conftest*
3367 if eval "test \"`echo '$ac_cv_func_'lldiv`\" = yes"; then
3368 echo "$ac_t""yes" 1>&6
3370 else
3371 echo "$ac_t""no" 1>&6
3372 ac_c99_stdlib=no
3375 echo $ac_n "checking for atoll""... $ac_c" 1>&6
3376 echo "configure:3377: checking for atoll" >&5
3377 if eval "test \"`echo '$''{'ac_cv_func_atoll'+set}'`\" = set"; then
3378 echo $ac_n "(cached) $ac_c" 1>&6
3379 else
3380 cat > conftest.$ac_ext <<EOF
3381 #line 3382 "configure"
3382 #include "confdefs.h"
3383 /* System header to define __stub macros and hopefully few prototypes,
3384 which can conflict with char atoll(); below. */
3385 #include <assert.h>
3386 /* Override any gcc2 internal prototype to avoid an error. */
3387 #ifdef __cplusplus
3388 extern "C"
3389 #endif
3390 /* We use char because int might match the return type of a gcc2
3391 builtin and then its argument prototype would still apply. */
3392 char atoll();
3394 int main() {
3396 /* The GNU C library defines this for functions which it implements
3397 to always fail with ENOSYS. Some functions are actually named
3398 something starting with __ and the normal name is an alias. */
3399 #if defined (__stub_atoll) || defined (__stub___atoll)
3400 choke me
3401 #else
3402 atoll();
3403 #endif
3405 ; return 0; }
3407 if { (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3408 rm -rf conftest*
3409 eval "ac_cv_func_atoll=yes"
3410 else
3411 echo "configure: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3413 rm -rf conftest*
3414 eval "ac_cv_func_atoll=no"
3416 rm -f conftest*
3419 if eval "test \"`echo '$ac_cv_func_'atoll`\" = yes"; then
3420 echo "$ac_t""yes" 1>&6
3422 else
3423 echo "$ac_t""no" 1>&6
3424 ac_c99_stdlib=no
3428 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3429 echo "configure:3430: checking for lldiv_t declaration" >&5
3430 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3432 else
3434 cat > conftest.$ac_ext <<EOF
3435 #line 3436 "configure"
3436 #include "confdefs.h"
3437 #include <stdlib.h>
3438 int main() {
3439 lldiv_t mydivt;
3440 ; return 0; }
3442 if { (eval echo configure:3443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3443 rm -rf conftest*
3444 ac_c99_lldiv_t=yes
3445 else
3446 echo "configure: failed program was:" >&5
3447 cat conftest.$ac_ext >&5
3448 rm -rf conftest*
3449 ac_c99_lldiv_t=no
3451 rm -f conftest*
3455 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3456 if test x"$ac_c99_lldiv_t" = x"no"; then
3457 ac_c99_stdlib=no;
3458 fi;
3460 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3461 echo $ac_n "checking for wcstold""... $ac_c" 1>&6
3462 echo "configure:3463: checking for wcstold" >&5
3463 if eval "test \"`echo '$''{'ac_cv_func_wcstold'+set}'`\" = set"; then
3464 echo $ac_n "(cached) $ac_c" 1>&6
3465 else
3466 cat > conftest.$ac_ext <<EOF
3467 #line 3468 "configure"
3468 #include "confdefs.h"
3469 /* System header to define __stub macros and hopefully few prototypes,
3470 which can conflict with char wcstold(); below. */
3471 #include <assert.h>
3472 /* Override any gcc2 internal prototype to avoid an error. */
3473 #ifdef __cplusplus
3474 extern "C"
3475 #endif
3476 /* We use char because int might match the return type of a gcc2
3477 builtin and then its argument prototype would still apply. */
3478 char wcstold();
3480 int main() {
3482 /* The GNU C library defines this for functions which it implements
3483 to always fail with ENOSYS. Some functions are actually named
3484 something starting with __ and the normal name is an alias. */
3485 #if defined (__stub_wcstold) || defined (__stub___wcstold)
3486 choke me
3487 #else
3488 wcstold();
3489 #endif
3491 ; return 0; }
3493 if { (eval echo configure:3494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3494 rm -rf conftest*
3495 eval "ac_cv_func_wcstold=yes"
3496 else
3497 echo "configure: failed program was:" >&5
3498 cat conftest.$ac_ext >&5
3499 rm -rf conftest*
3500 eval "ac_cv_func_wcstold=no"
3502 rm -f conftest*
3505 if eval "test \"`echo '$ac_cv_func_'wcstold`\" = yes"; then
3506 echo "$ac_t""yes" 1>&6
3508 else
3509 echo "$ac_t""no" 1>&6
3510 ac_c99_wchar=no
3513 echo $ac_n "checking for wcstoll""... $ac_c" 1>&6
3514 echo "configure:3515: checking for wcstoll" >&5
3515 if eval "test \"`echo '$''{'ac_cv_func_wcstoll'+set}'`\" = set"; then
3516 echo $ac_n "(cached) $ac_c" 1>&6
3517 else
3518 cat > conftest.$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 /* System header to define __stub macros and hopefully few prototypes,
3522 which can conflict with char wcstoll(); below. */
3523 #include <assert.h>
3524 /* Override any gcc2 internal prototype to avoid an error. */
3525 #ifdef __cplusplus
3526 extern "C"
3527 #endif
3528 /* We use char because int might match the return type of a gcc2
3529 builtin and then its argument prototype would still apply. */
3530 char wcstoll();
3532 int main() {
3534 /* The GNU C library defines this for functions which it implements
3535 to always fail with ENOSYS. Some functions are actually named
3536 something starting with __ and the normal name is an alias. */
3537 #if defined (__stub_wcstoll) || defined (__stub___wcstoll)
3538 choke me
3539 #else
3540 wcstoll();
3541 #endif
3543 ; return 0; }
3545 if { (eval echo configure:3546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3546 rm -rf conftest*
3547 eval "ac_cv_func_wcstoll=yes"
3548 else
3549 echo "configure: failed program was:" >&5
3550 cat conftest.$ac_ext >&5
3551 rm -rf conftest*
3552 eval "ac_cv_func_wcstoll=no"
3554 rm -f conftest*
3557 if eval "test \"`echo '$ac_cv_func_'wcstoll`\" = yes"; then
3558 echo "$ac_t""yes" 1>&6
3560 else
3561 echo "$ac_t""no" 1>&6
3562 ac_c99_wchar=no
3565 echo $ac_n "checking for wcstoull""... $ac_c" 1>&6
3566 echo "configure:3567: checking for wcstoull" >&5
3567 if eval "test \"`echo '$''{'ac_cv_func_wcstoull'+set}'`\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3569 else
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3573 /* System header to define __stub macros and hopefully few prototypes,
3574 which can conflict with char wcstoull(); below. */
3575 #include <assert.h>
3576 /* Override any gcc2 internal prototype to avoid an error. */
3577 #ifdef __cplusplus
3578 extern "C"
3579 #endif
3580 /* We use char because int might match the return type of a gcc2
3581 builtin and then its argument prototype would still apply. */
3582 char wcstoull();
3584 int main() {
3586 /* The GNU C library defines this for functions which it implements
3587 to always fail with ENOSYS. Some functions are actually named
3588 something starting with __ and the normal name is an alias. */
3589 #if defined (__stub_wcstoull) || defined (__stub___wcstoull)
3590 choke me
3591 #else
3592 wcstoull();
3593 #endif
3595 ; return 0; }
3597 if { (eval echo configure:3598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3598 rm -rf conftest*
3599 eval "ac_cv_func_wcstoull=yes"
3600 else
3601 echo "configure: failed program was:" >&5
3602 cat conftest.$ac_ext >&5
3603 rm -rf conftest*
3604 eval "ac_cv_func_wcstoull=no"
3606 rm -f conftest*
3609 if eval "test \"`echo '$ac_cv_func_'wcstoull`\" = yes"; then
3610 echo "$ac_t""yes" 1>&6
3612 else
3613 echo "$ac_t""no" 1>&6
3614 ac_c99_wchar=no
3618 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3619 echo "configure:3620: checking for enabled ISO C99 support" >&5
3620 if test x"$ac_c99_math" = x"no" || test x"$ac_c99_wchar" = x"no" \
3621 || test x"$ac_c99_stdlib" = x"no"; then
3622 enable_c99=no;
3623 fi;
3624 echo "$ac_t""$enable_c99" 1>&6
3626 # Option parsed, now set things appropriately
3627 if test x"$enable_c99" = x"yes"; then
3628 cat >> confdefs.h <<\EOF
3629 #define _GLIBCPP_USE_C99 1
3634 ac_ext=c
3635 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3636 ac_cpp='$CPP $CPPFLAGS'
3637 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3638 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3639 cross_compiling=$ac_cv_prog_cc_cross
3643 # Check whether --enable-long-long or --disable-long-long was given.
3644 if test "${enable_long_long+set}" = set; then
3645 enableval="$enable_long_long"
3646 case "$enableval" in
3647 yes) enable_long_long=yes ;;
3648 no) enable_long_long=no ;;
3649 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3650 esac
3651 else
3652 enable_long_long=yes
3655 # iostreams require strtoll, strtoull to compile. If the
3656 # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
3657 # go ahead and allow long long to be used.
3658 if test x"$enable_c99" = x"no"; then
3659 enable_long_long=no;
3662 # Option parsed, now set things appropriately
3663 echo $ac_n "checking for enabled long long support""... $ac_c" 1>&6
3664 echo "configure:3665: checking for enabled long long support" >&5
3665 if test x"$enable_long_long" = xyes; then
3666 cat >> confdefs.h <<\EOF
3667 #define _GLIBCPP_USE_LONG_LONG 1
3671 echo "$ac_t""$enable_long_long" 1>&6
3673 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3674 echo "configure:3675: checking for c header strategy to use" >&5
3675 # Check whether --enable-cheaders or --disable-cheaders was given.
3676 if test "${enable_cheaders+set}" = set; then
3677 enableval="$enable_cheaders"
3679 case "$enableval" in
3681 enable_cheaders=c
3683 c_std)
3684 enable_cheaders=c_std
3686 c_shadow)
3687 enable_cheaders=c_shadow
3689 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3691 esac
3692 else
3693 enable_cheaders=c_std
3696 echo "$ac_t""$enable_cheaders" 1>&6
3698 case "$enable_cheaders" in
3699 c_shadow)
3700 CSHADOW_FLAGS="-fno-builtin"
3701 C_INCLUDE_DIR='${top_srcdir}/include/c_shadow'
3702 cat >> confdefs.h <<\EOF
3703 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3707 c_std)
3708 CSHADOW_FLAGS=""
3709 C_INCLUDE_DIR='${top_srcdir}/include/c_std'
3712 CSHADOW_FLAGS=""
3713 C_INCLUDE_DIR='${top_srcdir}/include/c'
3715 esac
3721 if test "$enable_cheaders" = c_shadow; then
3722 GLIBCPP_USE_CSHADOW_TRUE=
3723 GLIBCPP_USE_CSHADOW_FALSE='#'
3724 else
3725 GLIBCPP_USE_CSHADOW_TRUE='#'
3726 GLIBCPP_USE_CSHADOW_FALSE=
3730 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3731 echo "configure:3732: checking for thread model used by GCC" >&5
3732 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3733 echo "$ac_t""$target_thread_file" 1>&6
3735 THREADH=
3736 case "$target_thread_file" in
3737 no | none | single)
3738 THREADH=threads-no.h
3740 posix | pthreads)
3741 THREADH=threads-posix.h
3743 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3744 echo "configure: warning: disabling unsupported thread package $target_thread_file" 1>&2
3745 THREADH=threads-no.h
3748 { echo "configure: error: $target_thread_file: unsupported/unknown thread package" 1>&2; exit 1; }
3750 esac
3753 if test $THREADH != threads-no.h; then
3754 cat >> confdefs.h <<\EOF
3755 #define _GLIBCPP_USE_THREADS 1
3760 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3761 if test "${enable_cxx_flags+set}" = set; then
3762 enableval="$enable_cxx_flags"
3763 case "x$enableval" in
3764 xyes)
3765 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3766 xno|x)
3767 enable_cxx_flags='' ;;
3769 enable_cxx_flags="$enableval" ;;
3770 esac
3771 else
3772 enable_cxx_flags='none'
3776 if test "$enable_cxx_flags" = "none"; then
3777 enable_cxx_flags='';
3780 if test -n "$enable_cxx_flags"; then
3781 for f in $enable_cxx_flags; do
3782 case "$f" in
3783 -fhonor-std) ;;
3784 -*) ;;
3785 *) # and we're trying to pass /what/ exactly?
3786 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3787 esac
3788 done
3790 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3794 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3795 echo "configure:3796: checking for exception model to use" >&5
3797 ac_ext=C
3798 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3799 ac_cpp='$CXXCPP $CPPFLAGS'
3800 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3801 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3802 cross_compiling=$ac_cv_prog_cxx_cross
3804 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3805 if test "${enable_sjlj_exceptions+set}" = set; then
3806 enableval="$enable_sjlj_exceptions"
3808 else
3809 cat > conftest.$ac_ext << EOF
3810 #line 3811 "configure"
3811 struct S { ~S(); };
3812 void bar();
3813 void foo()
3815 S s;
3816 bar();
3819 old_CXXFLAGS="$CXXFLAGS"
3820 CXXFLAGS=-S
3821 if { (eval echo configure:3822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3822 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3823 enable_sjlj_exceptions=yes
3824 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3825 enable_sjlj_exceptions=no
3828 CXXFLAGS="$old_CXXFLAGS"
3829 rm -f conftest*
3832 if test x$enable_sjlj_exceptions = xyes; then
3833 cat >> confdefs.h <<\EOF
3834 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3837 ac_exception_model_name=sjlj
3838 elif test x$enable_sjlj_exceptions = xno; then
3839 ac_exception_model_name="call frame"
3840 else
3841 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3843 ac_ext=c
3844 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3845 ac_cpp='$CPP $CPPFLAGS'
3846 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3847 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3848 cross_compiling=$ac_cv_prog_cc_cross
3850 echo "$ac_t""$ac_exception_model_name" 1>&6
3853 if test -n "$with_cross_host"; then
3855 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3856 # may not work correctly, because the compiler may not be able to
3857 # link executables.
3858 xcompiling=1
3859 NATIVE=no
3861 # If Canadian cross, then don't pick up tools from the build
3862 # directory.
3863 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3864 CANADIAN=yes
3865 NULL_TARGET=yes
3866 else
3867 CANADIAN=no
3868 NULL_TARGET=no
3871 case "$target_alias" in
3872 *-linux*)
3873 # Construct linux crosses by hand, eliminating bits that need ld...
3874 # Check for available headers.
3875 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3876 machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
3877 float.h inttypes.h
3879 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3880 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3881 echo "configure:3882: checking for $ac_hdr" >&5
3882 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3883 echo $ac_n "(cached) $ac_c" 1>&6
3884 else
3885 cat > conftest.$ac_ext <<EOF
3886 #line 3887 "configure"
3887 #include "confdefs.h"
3888 #include <$ac_hdr>
3890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3891 { (eval echo configure:3892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3893 if test -z "$ac_err"; then
3894 rm -rf conftest*
3895 eval "ac_cv_header_$ac_safe=yes"
3896 else
3897 echo "$ac_err" >&5
3898 echo "configure: failed program was:" >&5
3899 cat conftest.$ac_ext >&5
3900 rm -rf conftest*
3901 eval "ac_cv_header_$ac_safe=no"
3903 rm -f conftest*
3905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3906 echo "$ac_t""yes" 1>&6
3907 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3908 cat >> confdefs.h <<EOF
3909 #define $ac_tr_hdr 1
3912 else
3913 echo "$ac_t""no" 1>&6
3915 done
3918 # GLIBCPP_CHECK_COMPILER_FEATURES
3919 SECTION_FLAGS='-ffunction-sections -fdata-sections'
3922 # If we're not using GNU ld, then there's no point in even trying these
3923 # tests. Check for that first. We should have already tested for gld
3924 # by now (in libtool), but require it now just to be safe...
3925 SECTION_LDFLAGS=''
3926 OPT_LDFLAGS=''
3929 # Set --gc-sections.
3930 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3931 # GNU ld it is! Joy and bunny rabbits!
3933 # All these tests are for C++; save the language and the compiler flags.
3934 # Need to do this so that g++ won't try to link in libstdc++
3935 ac_test_CFLAGS="${CFLAGS+set}"
3936 ac_save_CFLAGS="$CFLAGS"
3937 CFLAGS='-x c++ -Wl,--gc-sections'
3939 # Check for -Wl,--gc-sections
3940 # XXX This test is broken at the moment, as symbols required for
3941 # linking are now in libsupc++ (not built yet.....). In addition,
3942 # this test has cored on solaris in the past. In addition,
3943 # --gc-sections doesn't really work at the moment (keeps on discarding
3944 # used sections, first .eh_frame and now some of the glibc sections for
3945 # iconv). Bzzzzt. Thanks for playing, maybe next time.
3946 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3947 echo "configure:3948: checking for ld that supports -Wl,--gc-sections" >&5
3948 if test "$cross_compiling" = yes; then
3949 ac_sectionLDflags=yes
3950 else
3951 cat > conftest.$ac_ext <<EOF
3952 #line 3953 "configure"
3953 #include "confdefs.h"
3955 int main(void)
3957 try { throw 1; }
3958 catch (...) { };
3959 return 0;
3963 if { (eval echo configure:3964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3964 then
3965 ac_sectionLDflags=yes
3966 else
3967 echo "configure: failed program was:" >&5
3968 cat conftest.$ac_ext >&5
3969 rm -fr conftest*
3970 ac_sectionLFflags=no
3972 rm -fr conftest*
3975 if test "$ac_test_CFLAGS" = set; then
3976 CFLAGS="$ac_save_CFLAGS"
3977 else
3978 # this is the suspicious part
3979 CFLAGS=''
3981 if test "$ac_sectionLDflags" = "yes"; then
3982 SECTION_LDFLAGS='-Wl,--gc-sections'
3984 echo "$ac_t""$ac_sectionLDflags" 1>&6
3987 # Set linker optimization flags.
3988 if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
3989 OPT_LDFLAGS='-Wl,-O1'
3995 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3996 # GLIBCPP_CHECK_MATH_SUPPORT
3997 cat >> confdefs.h <<\EOF
3998 #define HAVE_ACOSF 1
4001 cat >> confdefs.h <<\EOF
4002 #define HAVE_ASINF 1
4005 cat >> confdefs.h <<\EOF
4006 #define HAVE_ATAN2F 1
4009 cat >> confdefs.h <<\EOF
4010 #define HAVE_ATANF 1
4013 cat >> confdefs.h <<\EOF
4014 #define HAVE_CEILF 1
4017 cat >> confdefs.h <<\EOF
4018 #define HAVE_COPYSIGN 1
4021 cat >> confdefs.h <<\EOF
4022 #define HAVE_COPYSIGNF 1
4025 cat >> confdefs.h <<\EOF
4026 #define HAVE_COSF 1
4029 cat >> confdefs.h <<\EOF
4030 #define HAVE_COSHF 1
4033 cat >> confdefs.h <<\EOF
4034 #define HAVE_EXPF 1
4037 cat >> confdefs.h <<\EOF
4038 #define HAVE_FABSF 1
4041 cat >> confdefs.h <<\EOF
4042 #define HAVE_FINITE 1
4045 cat >> confdefs.h <<\EOF
4046 #define HAVE_FINITEF 1
4049 cat >> confdefs.h <<\EOF
4050 #define HAVE_FLOORF 1
4053 cat >> confdefs.h <<\EOF
4054 #define HAVE_FMODF 1
4057 cat >> confdefs.h <<\EOF
4058 #define HAVE_FREXPF 1
4061 cat >> confdefs.h <<\EOF
4062 #define HAVE_ISINF 1
4065 cat >> confdefs.h <<\EOF
4066 #define HAVE_ISINFF 1
4069 cat >> confdefs.h <<\EOF
4070 #define HAVE_ISNAN 1
4073 cat >> confdefs.h <<\EOF
4074 #define HAVE_ISNANF 1
4077 cat >> confdefs.h <<\EOF
4078 #define HAVE_LDEXPF 1
4081 cat >> confdefs.h <<\EOF
4082 #define HAVE_LOG10F 1
4085 cat >> confdefs.h <<\EOF
4086 #define HAVE_LOGF 1
4089 cat >> confdefs.h <<\EOF
4090 #define HAVE_MODFF 1
4093 cat >> confdefs.h <<\EOF
4094 #define HAVE_POWF 1
4097 cat >> confdefs.h <<\EOF
4098 #define HAVE_SINCOS 1
4101 cat >> confdefs.h <<\EOF
4102 #define HAVE_SINCOSF 1
4105 cat >> confdefs.h <<\EOF
4106 #define HAVE_SINF 1
4109 cat >> confdefs.h <<\EOF
4110 #define HAVE_SINHF 1
4113 cat >> confdefs.h <<\EOF
4114 #define HAVE_SQRTF 1
4117 cat >> confdefs.h <<\EOF
4118 #define HAVE_TANF 1
4121 cat >> confdefs.h <<\EOF
4122 #define HAVE_TANHF 1
4126 # At some point, we should differentiate between architectures
4127 # like x86, which have long double versions, and alpha/powerpc/etc.,
4128 # which don't. For the time being, punt.
4129 if test x"long_double_math_on_this_cpu" = x"yes"; then
4130 cat >> confdefs.h <<\EOF
4131 #define HAVE_ACOSL 1
4134 cat >> confdefs.h <<\EOF
4135 #define HAVE_ASINL 1
4138 cat >> confdefs.h <<\EOF
4139 #define HAVE_ATAN2L 1
4142 cat >> confdefs.h <<\EOF
4143 #define HAVE_ATANL 1
4146 cat >> confdefs.h <<\EOF
4147 #define HAVE_CEILL 1
4150 cat >> confdefs.h <<\EOF
4151 #define HAVE_COPYSIGNL 1
4154 cat >> confdefs.h <<\EOF
4155 #define HAVE_COSL 1
4158 cat >> confdefs.h <<\EOF
4159 #define HAVE_COSHL 1
4162 cat >> confdefs.h <<\EOF
4163 #define HAVE_EXPL 1
4166 cat >> confdefs.h <<\EOF
4167 #define HAVE_FABSL 1
4170 cat >> confdefs.h <<\EOF
4171 #define HAVE_FINITEL 1
4174 cat >> confdefs.h <<\EOF
4175 #define HAVE_FLOORL 1
4178 cat >> confdefs.h <<\EOF
4179 #define HAVE_FMODL 1
4182 cat >> confdefs.h <<\EOF
4183 #define HAVE_FREXPL 1
4186 cat >> confdefs.h <<\EOF
4187 #define HAVE_ISINFL 1
4190 cat >> confdefs.h <<\EOF
4191 #define HAVE_ISNANL 1
4194 cat >> confdefs.h <<\EOF
4195 #define HAVE_LDEXPL 1
4198 cat >> confdefs.h <<\EOF
4199 #define HAVE_LOG10L 1
4202 cat >> confdefs.h <<\EOF
4203 #define HAVE_LOGL 1
4206 cat >> confdefs.h <<\EOF
4207 #define HAVE_MODFL 1
4210 cat >> confdefs.h <<\EOF
4211 #define HAVE_POWL 1
4214 cat >> confdefs.h <<\EOF
4215 #define HAVE_SINCOSL 1
4218 cat >> confdefs.h <<\EOF
4219 #define HAVE_SINL 1
4222 cat >> confdefs.h <<\EOF
4223 #define HAVE_SINHL 1
4226 cat >> confdefs.h <<\EOF
4227 #define HAVE_SQRTL 1
4230 cat >> confdefs.h <<\EOF
4231 #define HAVE_TANL 1
4234 cat >> confdefs.h <<\EOF
4235 #define HAVE_TANHL 1
4240 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4241 echo "configure:4242: checking for main in -lm" >&5
4242 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4243 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4244 echo $ac_n "(cached) $ac_c" 1>&6
4245 else
4246 ac_save_LIBS="$LIBS"
4247 LIBS="-lm $LIBS"
4248 cat > conftest.$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4252 int main() {
4253 main()
4254 ; return 0; }
4256 if { (eval echo configure:4257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4257 rm -rf conftest*
4258 eval "ac_cv_lib_$ac_lib_var=yes"
4259 else
4260 echo "configure: failed program was:" >&5
4261 cat conftest.$ac_ext >&5
4262 rm -rf conftest*
4263 eval "ac_cv_lib_$ac_lib_var=no"
4265 rm -f conftest*
4266 LIBS="$ac_save_LIBS"
4269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4270 echo "$ac_t""yes" 1>&6
4271 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4272 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4273 cat >> confdefs.h <<EOF
4274 #define $ac_tr_lib 1
4277 LIBS="-lm $LIBS"
4279 else
4280 echo "$ac_t""no" 1>&6
4283 for ac_func in nan hypot hypotf atan2f expf copysignf
4285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4286 echo "configure:4287: checking for $ac_func" >&5
4287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4288 echo $ac_n "(cached) $ac_c" 1>&6
4289 else
4290 cat > conftest.$ac_ext <<EOF
4291 #line 4292 "configure"
4292 #include "confdefs.h"
4293 /* System header to define __stub macros and hopefully few prototypes,
4294 which can conflict with char $ac_func(); below. */
4295 #include <assert.h>
4296 /* Override any gcc2 internal prototype to avoid an error. */
4297 /* We use char because int might match the return type of a gcc2
4298 builtin and then its argument prototype would still apply. */
4299 char $ac_func();
4301 int main() {
4303 /* The GNU C library defines this for functions which it implements
4304 to always fail with ENOSYS. Some functions are actually named
4305 something starting with __ and the normal name is an alias. */
4306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4307 choke me
4308 #else
4309 $ac_func();
4310 #endif
4312 ; return 0; }
4314 if { (eval echo configure:4315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4315 rm -rf conftest*
4316 eval "ac_cv_func_$ac_func=yes"
4317 else
4318 echo "configure: failed program was:" >&5
4319 cat conftest.$ac_ext >&5
4320 rm -rf conftest*
4321 eval "ac_cv_func_$ac_func=no"
4323 rm -f conftest*
4326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4327 echo "$ac_t""yes" 1>&6
4328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4329 cat >> confdefs.h <<EOF
4330 #define $ac_tr_func 1
4333 else
4334 echo "$ac_t""no" 1>&6
4335 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4337 done
4341 USE_COMPLEX_LONG_DOUBLE=no
4342 if test x$ac_cv_func_atan2l = x"yes" \
4343 && test x$ac_cv_func_copysignl = x"yes"; then
4344 USE_COMPLEX_LONG_DOUBLE=yes
4345 for ac_func in hypotl signbitl
4347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4348 echo "configure:4349: checking for $ac_func" >&5
4349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4350 echo $ac_n "(cached) $ac_c" 1>&6
4351 else
4352 cat > conftest.$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4355 /* System header to define __stub macros and hopefully few prototypes,
4356 which can conflict with char $ac_func(); below. */
4357 #include <assert.h>
4358 /* Override any gcc2 internal prototype to avoid an error. */
4359 /* We use char because int might match the return type of a gcc2
4360 builtin and then its argument prototype would still apply. */
4361 char $ac_func();
4363 int main() {
4365 /* The GNU C library defines this for functions which it implements
4366 to always fail with ENOSYS. Some functions are actually named
4367 something starting with __ and the normal name is an alias. */
4368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4369 choke me
4370 #else
4371 $ac_func();
4372 #endif
4374 ; return 0; }
4376 if { (eval echo configure:4377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4377 rm -rf conftest*
4378 eval "ac_cv_func_$ac_func=yes"
4379 else
4380 echo "configure: failed program was:" >&5
4381 cat conftest.$ac_ext >&5
4382 rm -rf conftest*
4383 eval "ac_cv_func_$ac_func=no"
4385 rm -f conftest*
4388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4389 echo "$ac_t""yes" 1>&6
4390 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4391 cat >> confdefs.h <<EOF
4392 #define $ac_tr_func 1
4395 else
4396 echo "$ac_t""no" 1>&6
4397 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4399 done
4409 echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
4410 echo "configure:4411: checking for GNU C++ __complex__ support" >&5
4411 if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
4412 echo $ac_n "(cached) $ac_c" 1>&6
4413 else
4416 ac_ext=C
4417 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4418 ac_cpp='$CXXCPP $CPPFLAGS'
4419 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4420 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4421 cross_compiling=$ac_cv_prog_cxx_cross
4423 cat > conftest.$ac_ext <<EOF
4424 #line 4425 "configure"
4425 #include "confdefs.h"
4426 struct dcomplex { __complex__ double x; }; \
4427 dcomplex f(const dcomplex& x) { return dcomplex(x); }
4428 int main() {
4430 dcomplex x; f(x);
4431 ; return 0; }
4433 if { (eval echo configure:4434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4434 rm -rf conftest*
4435 glibcpp_cv_complex=ok
4436 else
4437 echo "configure: failed program was:" >&5
4438 cat conftest.$ac_ext >&5
4439 rm -rf conftest*
4440 glibcpp_cv_complex=buggy
4443 rm -f conftest*
4444 ac_ext=c
4445 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4446 ac_cpp='$CPP $CPPFLAGS'
4447 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4448 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4449 cross_compiling=$ac_cv_prog_cc_cross
4454 echo "$ac_t""$glibcpp_cv_complex" 1>&6
4455 if test $glibcpp_cv_complex = buggy; then
4456 cat >> confdefs.h <<\EOF
4457 #define _GLIBCPP_BUGGY_COMPLEX 1
4462 echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
4463 echo "configure:4464: checking for GNU C++ __complex__ float support" >&5
4464 if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
4465 echo $ac_n "(cached) $ac_c" 1>&6
4466 else
4469 ac_ext=C
4470 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4471 ac_cpp='$CXXCPP $CPPFLAGS'
4472 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4473 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4474 cross_compiling=$ac_cv_prog_cxx_cross
4476 rm -f conftest.h
4477 cat > conftest.h <<EOB
4479 // Check for buggy __complex__ that causes ICE in most versions of egcs
4480 // and gcc-2.95.x on certain platforms (eg., x86-win32).
4482 // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
4483 // more info on the bug itself.
4485 struct
4486 float_complex
4488 __complex__ float m_value;
4489 float_complex (float = 0.0f, float = 0.0f);
4490 float_complex (__complex__ float val) : m_value (val) {}
4491 float_complex foo (const float_complex &val)
4492 { return float_complex (~val.m_value); }
4495 cat > conftest.$ac_ext <<EOF
4496 #line 4497 "configure"
4497 #include "confdefs.h"
4498 #include "conftest.h"
4499 int main() {
4501 ; return 0; }
4503 if { (eval echo configure:4504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4504 rm -rf conftest*
4505 glibcpp_cv_float_complex=ok
4506 else
4507 echo "configure: failed program was:" >&5
4508 cat conftest.$ac_ext >&5
4509 rm -rf conftest*
4510 glibcpp_cv_float_complex=buggy
4513 rm -f conftest*
4514 ac_ext=c
4515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4519 cross_compiling=$ac_cv_prog_cc_cross
4524 echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
4525 if test $glibcpp_cv_float_complex = buggy; then
4526 cat >> confdefs.h <<\EOF
4527 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
4534 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4535 echo "configure:4536: checking for mbstate_t" >&5
4536 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4539 #include <wchar.h>
4540 int main() {
4541 mbstate_t teststate;
4542 ; return 0; }
4544 if { (eval echo configure:4545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4545 rm -rf conftest*
4546 have_mbstate_t=yes
4547 else
4548 echo "configure: failed program was:" >&5
4549 cat conftest.$ac_ext >&5
4550 rm -rf conftest*
4551 have_mbstate_t=no
4553 rm -f conftest*
4554 echo "$ac_t""$have_mbstate_t" 1>&6
4555 if test x"$have_mbstate_t" = xyes; then
4556 cat >> confdefs.h <<\EOF
4557 #define HAVE_MBSTATE_T 1
4562 for ac_hdr in wchar.h
4564 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4565 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4566 echo "configure:4567: checking for $ac_hdr" >&5
4567 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4569 else
4570 cat > conftest.$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4573 #include <$ac_hdr>
4575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4576 { (eval echo configure:4577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4578 if test -z "$ac_err"; then
4579 rm -rf conftest*
4580 eval "ac_cv_header_$ac_safe=yes"
4581 else
4582 echo "$ac_err" >&5
4583 echo "configure: failed program was:" >&5
4584 cat conftest.$ac_ext >&5
4585 rm -rf conftest*
4586 eval "ac_cv_header_$ac_safe=no"
4588 rm -f conftest*
4590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4591 echo "$ac_t""yes" 1>&6
4592 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4593 cat >> confdefs.h <<EOF
4594 #define $ac_tr_hdr 1
4596 ac_has_wchar_h=yes
4597 else
4598 echo "$ac_t""no" 1>&6
4599 ac_has_wchar_h=no
4601 done
4603 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4604 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4605 echo "configure:4606: checking for wctype.h" >&5
4606 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4607 echo $ac_n "(cached) $ac_c" 1>&6
4608 else
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 #include <wctype.h>
4614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4615 { (eval echo configure:4616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4617 if test -z "$ac_err"; then
4618 rm -rf conftest*
4619 eval "ac_cv_header_$ac_safe=yes"
4620 else
4621 echo "$ac_err" >&5
4622 echo "configure: failed program was:" >&5
4623 cat conftest.$ac_ext >&5
4624 rm -rf conftest*
4625 eval "ac_cv_header_$ac_safe=no"
4627 rm -f conftest*
4629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4630 echo "$ac_t""yes" 1>&6
4631 ac_has_wctype_h=yes
4632 else
4633 echo "$ac_t""no" 1>&6
4634 ac_has_wctype_h=no
4638 if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
4639 && test x"$enable_c_mbchar" != xno; then
4641 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4642 echo "configure:4643: checking for WCHAR_MIN and WCHAR_MAX" >&5
4643 cat > conftest.$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4646 #include <wchar.h>
4647 int main() {
4648 int i = WCHAR_MIN; int j = WCHAR_MAX;
4649 ; return 0; }
4651 if { (eval echo configure:4652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4652 rm -rf conftest*
4653 has_wchar_minmax=yes
4654 else
4655 echo "configure: failed program was:" >&5
4656 cat conftest.$ac_ext >&5
4657 rm -rf conftest*
4658 has_wchar_minmax=no
4660 rm -f conftest*
4661 echo "$ac_t""$has_wchar_minmax" 1>&6
4663 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4664 echo "configure:4665: checking for WEOF" >&5
4665 cat > conftest.$ac_ext <<EOF
4666 #line 4667 "configure"
4667 #include "confdefs.h"
4669 #include <wchar.h>
4670 #include <stddef.h>
4671 int main() {
4672 wint_t i = WEOF;
4673 ; return 0; }
4675 if { (eval echo configure:4676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4676 rm -rf conftest*
4677 has_weof=yes
4678 else
4679 echo "configure: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4681 rm -rf conftest*
4682 has_weof=no
4684 rm -f conftest*
4685 echo "$ac_t""$has_weof" 1>&6
4687 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
4688 wcsrtombs mbsrtowcs
4690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4691 echo "configure:4692: checking for $ac_func" >&5
4692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4693 echo $ac_n "(cached) $ac_c" 1>&6
4694 else
4695 cat > conftest.$ac_ext <<EOF
4696 #line 4697 "configure"
4697 #include "confdefs.h"
4698 /* System header to define __stub macros and hopefully few prototypes,
4699 which can conflict with char $ac_func(); below. */
4700 #include <assert.h>
4701 /* Override any gcc2 internal prototype to avoid an error. */
4702 /* We use char because int might match the return type of a gcc2
4703 builtin and then its argument prototype would still apply. */
4704 char $ac_func();
4706 int main() {
4708 /* The GNU C library defines this for functions which it implements
4709 to always fail with ENOSYS. Some functions are actually named
4710 something starting with __ and the normal name is an alias. */
4711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4712 choke me
4713 #else
4714 $ac_func();
4715 #endif
4717 ; return 0; }
4719 if { (eval echo configure:4720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4720 rm -rf conftest*
4721 eval "ac_cv_func_$ac_func=yes"
4722 else
4723 echo "configure: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4725 rm -rf conftest*
4726 eval "ac_cv_func_$ac_func=no"
4728 rm -f conftest*
4731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4732 echo "$ac_t""yes" 1>&6
4733 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4734 cat >> confdefs.h <<EOF
4735 #define $ac_tr_func 1
4737 ac_wfuncs=yes
4738 else
4739 echo "$ac_t""no" 1>&6
4740 ac_wfuncs=no
4742 done
4745 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4746 echo "configure:4747: checking for ISO C99 wchar_t support" >&5
4747 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
4748 && test x"$ac_wfuncs" = xyes; then
4749 ac_isoC99_wchar_t=yes
4750 else
4751 ac_isoC99_wchar_t=no
4753 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4755 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4756 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4757 echo "configure:4758: checking for iconv.h" >&5
4758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4759 echo $ac_n "(cached) $ac_c" 1>&6
4760 else
4761 cat > conftest.$ac_ext <<EOF
4762 #line 4763 "configure"
4763 #include "confdefs.h"
4764 #include <iconv.h>
4766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4767 { (eval echo configure:4768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4769 if test -z "$ac_err"; then
4770 rm -rf conftest*
4771 eval "ac_cv_header_$ac_safe=yes"
4772 else
4773 echo "$ac_err" >&5
4774 echo "configure: failed program was:" >&5
4775 cat conftest.$ac_ext >&5
4776 rm -rf conftest*
4777 eval "ac_cv_header_$ac_safe=no"
4779 rm -f conftest*
4781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4782 echo "$ac_t""yes" 1>&6
4783 ac_has_iconv_h=yes
4784 else
4785 echo "$ac_t""no" 1>&6
4786 ac_has_iconv_h=no
4789 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4790 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4791 echo "configure:4792: checking for langinfo.h" >&5
4792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4794 else
4795 cat > conftest.$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4798 #include <langinfo.h>
4800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4801 { (eval echo configure:4802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4803 if test -z "$ac_err"; then
4804 rm -rf conftest*
4805 eval "ac_cv_header_$ac_safe=yes"
4806 else
4807 echo "$ac_err" >&5
4808 echo "configure: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4810 rm -rf conftest*
4811 eval "ac_cv_header_$ac_safe=no"
4813 rm -f conftest*
4815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4816 echo "$ac_t""yes" 1>&6
4817 ac_has_langinfo_h=yes
4818 else
4819 echo "$ac_t""no" 1>&6
4820 ac_has_langinfo_h=no
4824 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4825 echo "configure:4826: checking for iconv in -liconv" >&5
4826 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4829 else
4830 ac_save_LIBS="$LIBS"
4831 LIBS="-liconv $LIBS"
4832 cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4835 /* Override any gcc2 internal prototype to avoid an error. */
4836 /* We use char because int might match the return type of a gcc2
4837 builtin and then its argument prototype would still apply. */
4838 char iconv();
4840 int main() {
4841 iconv()
4842 ; return 0; }
4844 if { (eval echo configure:4845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4845 rm -rf conftest*
4846 eval "ac_cv_lib_$ac_lib_var=yes"
4847 else
4848 echo "configure: failed program was:" >&5
4849 cat conftest.$ac_ext >&5
4850 rm -rf conftest*
4851 eval "ac_cv_lib_$ac_lib_var=no"
4853 rm -f conftest*
4854 LIBS="$ac_save_LIBS"
4857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4858 echo "$ac_t""yes" 1>&6
4859 libiconv="-liconv"
4860 else
4861 echo "$ac_t""no" 1>&6
4864 ac_save_LIBS="$LIBS"
4865 LIBS="$LIBS $libiconv"
4867 for ac_func in iconv_open iconv_close iconv nl_langinfo
4869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4870 echo "configure:4871: checking for $ac_func" >&5
4871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6
4873 else
4874 cat > conftest.$ac_ext <<EOF
4875 #line 4876 "configure"
4876 #include "confdefs.h"
4877 /* System header to define __stub macros and hopefully few prototypes,
4878 which can conflict with char $ac_func(); below. */
4879 #include <assert.h>
4880 /* Override any gcc2 internal prototype to avoid an error. */
4881 /* We use char because int might match the return type of a gcc2
4882 builtin and then its argument prototype would still apply. */
4883 char $ac_func();
4885 int main() {
4887 /* The GNU C library defines this for functions which it implements
4888 to always fail with ENOSYS. Some functions are actually named
4889 something starting with __ and the normal name is an alias. */
4890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4891 choke me
4892 #else
4893 $ac_func();
4894 #endif
4896 ; return 0; }
4898 if { (eval echo configure:4899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4899 rm -rf conftest*
4900 eval "ac_cv_func_$ac_func=yes"
4901 else
4902 echo "configure: failed program was:" >&5
4903 cat conftest.$ac_ext >&5
4904 rm -rf conftest*
4905 eval "ac_cv_func_$ac_func=no"
4907 rm -f conftest*
4910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4911 echo "$ac_t""yes" 1>&6
4912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4913 cat >> confdefs.h <<EOF
4914 #define $ac_tr_func 1
4917 ac_XPG2funcs=yes
4918 else
4919 echo "$ac_t""no" 1>&6
4920 ac_XPG2funcs=no
4922 done
4925 LIBS="$ac_save_LIBS"
4927 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4928 echo "configure:4929: checking for XPG2 wchar_t support" >&5
4929 if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
4930 && test x"$ac_XPG2funcs" = xyes; then
4931 ac_XPG2_wchar_t=yes
4932 else
4933 ac_XPG2_wchar_t=no
4935 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4937 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4938 echo "configure:4939: checking for enabled wchar_t specializations" >&5
4939 if test x"$ac_isoC99_wchar_t" = xyes \
4940 && test x"$ac_XPG2_wchar_t" = xyes; then
4941 cat >> confdefs.h <<\EOF
4942 #define _GLIBCPP_USE_WCHAR_T 1
4945 echo "$ac_t"""yes"" 1>&6
4946 else
4947 echo "$ac_t"""no"" 1>&6
4949 else
4950 echo "configure: warning: wchar_t support disabled." 1>&2
4953 os_include_dir="config/os/gnu-linux"
4954 # GLIBCPP_CHECK_STDLIB_SUPPORT
4955 cat >> confdefs.h <<\EOF
4956 #define HAVE_STRTOF 1
4959 cat >> confdefs.h <<\EOF
4960 #define HAVE_STRTOLD 1
4963 # AC_FUNC_MMAP
4964 cat >> confdefs.h <<\EOF
4965 #define HAVE_MMAP 1
4970 # We assume newlib. This lets us hard-code the functions we know
4971 # we'll have.
4972 cat >> confdefs.h <<\EOF
4973 #define HAVE_FINITE 1
4976 cat >> confdefs.h <<\EOF
4977 #define HAVE_ISNAN 1
4980 cat >> confdefs.h <<\EOF
4981 #define HAVE_ISNANF 1
4984 cat >> confdefs.h <<\EOF
4985 #define HAVE_ISINF 1
4988 cat >> confdefs.h <<\EOF
4989 #define HAVE_ISINFF 1
4993 os_include_dir="config/os/newlib"
4995 cat >> confdefs.h <<\EOF
4996 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
4999 cat >> confdefs.h <<\EOF
5000 #define _GLIBCPP_BUGGY_COMPLEX 1
5003 # need to check for faster f versions of math functions, ie sinf?
5005 esac
5006 else
5008 # We are being configured natively. We can do more elaborate tests
5009 # that include AC_TRY_COMPILE now, as the linker is assumed to be
5010 # working.
5011 xcompiling=0
5012 NATIVE=yes
5013 CANADIAN=no
5014 NULL_TARGET=no
5016 # Check for available headers.
5017 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
5018 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
5020 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5021 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5022 echo "configure:5023: checking for $ac_hdr" >&5
5023 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5024 echo $ac_n "(cached) $ac_c" 1>&6
5025 else
5026 cat > conftest.$ac_ext <<EOF
5027 #line 5028 "configure"
5028 #include "confdefs.h"
5029 #include <$ac_hdr>
5031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5032 { (eval echo configure:5033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5034 if test -z "$ac_err"; then
5035 rm -rf conftest*
5036 eval "ac_cv_header_$ac_safe=yes"
5037 else
5038 echo "$ac_err" >&5
5039 echo "configure: failed program was:" >&5
5040 cat conftest.$ac_ext >&5
5041 rm -rf conftest*
5042 eval "ac_cv_header_$ac_safe=no"
5044 rm -f conftest*
5046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5047 echo "$ac_t""yes" 1>&6
5048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5049 cat >> confdefs.h <<EOF
5050 #define $ac_tr_hdr 1
5053 else
5054 echo "$ac_t""no" 1>&6
5056 done
5060 # All these tests are for C++; save the language and the compiler flags.
5061 # The CXXFLAGS thing is suspicious, but based on similar bits
5062 # found in GLIBCPP_CONFIGURE.
5064 ac_ext=C
5065 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5066 ac_cpp='$CXXCPP $CPPFLAGS'
5067 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5068 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5069 cross_compiling=$ac_cv_prog_cxx_cross
5071 ac_test_CXXFLAGS="${CXXFLAGS+set}"
5072 ac_save_CXXFLAGS="$CXXFLAGS"
5074 # Check for maintainer-mode bits.
5075 if test x"$USE_MAINTAINER_MODE" = xno; then
5076 WERROR=''
5077 else
5078 WERROR='-Werror'
5081 # Check for -ffunction-sections -fdata-sections
5082 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
5083 echo "configure:5084: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
5084 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
5085 cat > conftest.$ac_ext <<EOF
5086 #line 5087 "configure"
5087 #include "confdefs.h"
5089 int main() {
5090 int foo;
5092 ; return 0; }
5094 if { (eval echo configure:5095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5095 rm -rf conftest*
5096 ac_fdsections=yes
5097 else
5098 echo "configure: failed program was:" >&5
5099 cat conftest.$ac_ext >&5
5100 rm -rf conftest*
5101 ac_fdsections=no
5103 rm -f conftest*
5104 if test "$ac_test_CXXFLAGS" = set; then
5105 CXXFLAGS="$ac_save_CXXFLAGS"
5106 else
5107 # this is the suspicious part
5108 CXXFLAGS=''
5110 if test x"$ac_fdsections" = x"yes" && test x"$enable_debug" = x"no"; then
5111 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5113 echo "$ac_t""$ac_fdsections" 1>&6
5115 ac_ext=c
5116 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5117 ac_cpp='$CPP $CPPFLAGS'
5118 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5119 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5120 cross_compiling=$ac_cv_prog_cc_cross
5126 # If we're not using GNU ld, then there's no point in even trying these
5127 # tests. Check for that first. We should have already tested for gld
5128 # by now (in libtool), but require it now just to be safe...
5129 SECTION_LDFLAGS=''
5130 OPT_LDFLAGS=''
5133 # Set --gc-sections.
5134 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
5135 # GNU ld it is! Joy and bunny rabbits!
5137 # All these tests are for C++; save the language and the compiler flags.
5138 # Need to do this so that g++ won't try to link in libstdc++
5139 ac_test_CFLAGS="${CFLAGS+set}"
5140 ac_save_CFLAGS="$CFLAGS"
5141 CFLAGS='-x c++ -Wl,--gc-sections'
5143 # Check for -Wl,--gc-sections
5144 # XXX This test is broken at the moment, as symbols required for
5145 # linking are now in libsupc++ (not built yet.....). In addition,
5146 # this test has cored on solaris in the past. In addition,
5147 # --gc-sections doesn't really work at the moment (keeps on discarding
5148 # used sections, first .eh_frame and now some of the glibc sections for
5149 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5150 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5151 echo "configure:5152: checking for ld that supports -Wl,--gc-sections" >&5
5152 if test "$cross_compiling" = yes; then
5153 ac_sectionLDflags=yes
5154 else
5155 cat > conftest.$ac_ext <<EOF
5156 #line 5157 "configure"
5157 #include "confdefs.h"
5159 int main(void)
5161 try { throw 1; }
5162 catch (...) { };
5163 return 0;
5167 if { (eval echo configure:5168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5168 then
5169 ac_sectionLDflags=yes
5170 else
5171 echo "configure: failed program was:" >&5
5172 cat conftest.$ac_ext >&5
5173 rm -fr conftest*
5174 ac_sectionLFflags=no
5176 rm -fr conftest*
5179 if test "$ac_test_CFLAGS" = set; then
5180 CFLAGS="$ac_save_CFLAGS"
5181 else
5182 # this is the suspicious part
5183 CFLAGS=''
5185 if test "$ac_sectionLDflags" = "yes"; then
5186 SECTION_LDFLAGS='-Wl,--gc-sections'
5188 echo "$ac_t""$ac_sectionLDflags" 1>&6
5191 # Set linker optimization flags.
5192 if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5193 OPT_LDFLAGS='-Wl,-O1'
5201 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5202 echo "configure:5203: checking for __builtin_abs declaration" >&5
5203 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5204 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5205 echo $ac_n "(cached) $ac_c" 1>&6
5206 else
5209 ac_ext=C
5210 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5211 ac_cpp='$CXXCPP $CPPFLAGS'
5212 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5213 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5214 cross_compiling=$ac_cv_prog_cxx_cross
5216 cat > conftest.$ac_ext <<EOF
5217 #line 5218 "configure"
5218 #include "confdefs.h"
5219 #include <math.h>
5220 int main() {
5221 __builtin_abs(0);
5222 ; return 0; }
5224 if { (eval echo configure:5225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5225 rm -rf conftest*
5226 glibcpp_cv_func___builtin_abs_use=yes
5227 else
5228 echo "configure: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5230 rm -rf conftest*
5231 glibcpp_cv_func___builtin_abs_use=no
5233 rm -f conftest*
5234 ac_ext=c
5235 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5236 ac_cpp='$CPP $CPPFLAGS'
5237 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5238 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5239 cross_compiling=$ac_cv_prog_cc_cross
5245 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5246 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5247 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5248 echo "configure:5249: checking for __builtin_abs linkage" >&5
5249 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5250 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5251 echo $ac_n "(cached) $ac_c" 1>&6
5252 else
5254 cat > conftest.$ac_ext <<EOF
5255 #line 5256 "configure"
5256 #include "confdefs.h"
5257 #include <math.h>
5258 int main() {
5259 __builtin_abs(0);
5260 ; return 0; }
5262 if { (eval echo configure:5263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5263 rm -rf conftest*
5264 glibcpp_cv_func___builtin_abs_link=yes
5265 else
5266 echo "configure: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5268 rm -rf conftest*
5269 glibcpp_cv_func___builtin_abs_link=no
5271 rm -f conftest*
5276 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5277 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5278 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5279 cat >> confdefs.h <<EOF
5280 #define ${ac_tr_func} 1
5287 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5288 echo "configure:5289: checking for __builtin_fabsf declaration" >&5
5289 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5290 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5291 echo $ac_n "(cached) $ac_c" 1>&6
5292 else
5295 ac_ext=C
5296 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5297 ac_cpp='$CXXCPP $CPPFLAGS'
5298 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5299 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5300 cross_compiling=$ac_cv_prog_cxx_cross
5302 cat > conftest.$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5305 #include <math.h>
5306 int main() {
5307 __builtin_fabsf(0);
5308 ; return 0; }
5310 if { (eval echo configure:5311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5311 rm -rf conftest*
5312 glibcpp_cv_func___builtin_fabsf_use=yes
5313 else
5314 echo "configure: failed program was:" >&5
5315 cat conftest.$ac_ext >&5
5316 rm -rf conftest*
5317 glibcpp_cv_func___builtin_fabsf_use=no
5319 rm -f conftest*
5320 ac_ext=c
5321 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5322 ac_cpp='$CPP $CPPFLAGS'
5323 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5324 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5325 cross_compiling=$ac_cv_prog_cc_cross
5331 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5332 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5333 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5334 echo "configure:5335: checking for __builtin_fabsf linkage" >&5
5335 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5336 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5337 echo $ac_n "(cached) $ac_c" 1>&6
5338 else
5340 cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5343 #include <math.h>
5344 int main() {
5345 __builtin_fabsf(0);
5346 ; return 0; }
5348 if { (eval echo configure:5349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5349 rm -rf conftest*
5350 glibcpp_cv_func___builtin_fabsf_link=yes
5351 else
5352 echo "configure: failed program was:" >&5
5353 cat conftest.$ac_ext >&5
5354 rm -rf conftest*
5355 glibcpp_cv_func___builtin_fabsf_link=no
5357 rm -f conftest*
5362 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5363 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5364 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5365 cat >> confdefs.h <<EOF
5366 #define ${ac_tr_func} 1
5373 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5374 echo "configure:5375: checking for __builtin_fabs declaration" >&5
5375 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5376 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5378 else
5381 ac_ext=C
5382 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5383 ac_cpp='$CXXCPP $CPPFLAGS'
5384 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5385 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5386 cross_compiling=$ac_cv_prog_cxx_cross
5388 cat > conftest.$ac_ext <<EOF
5389 #line 5390 "configure"
5390 #include "confdefs.h"
5391 #include <math.h>
5392 int main() {
5393 __builtin_fabs(0);
5394 ; return 0; }
5396 if { (eval echo configure:5397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5397 rm -rf conftest*
5398 glibcpp_cv_func___builtin_fabs_use=yes
5399 else
5400 echo "configure: failed program was:" >&5
5401 cat conftest.$ac_ext >&5
5402 rm -rf conftest*
5403 glibcpp_cv_func___builtin_fabs_use=no
5405 rm -f conftest*
5406 ac_ext=c
5407 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5408 ac_cpp='$CPP $CPPFLAGS'
5409 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5410 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5411 cross_compiling=$ac_cv_prog_cc_cross
5417 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5418 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5419 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5420 echo "configure:5421: checking for __builtin_fabs linkage" >&5
5421 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5422 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5423 echo $ac_n "(cached) $ac_c" 1>&6
5424 else
5426 cat > conftest.$ac_ext <<EOF
5427 #line 5428 "configure"
5428 #include "confdefs.h"
5429 #include <math.h>
5430 int main() {
5431 __builtin_fabs(0);
5432 ; return 0; }
5434 if { (eval echo configure:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5435 rm -rf conftest*
5436 glibcpp_cv_func___builtin_fabs_link=yes
5437 else
5438 echo "configure: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5440 rm -rf conftest*
5441 glibcpp_cv_func___builtin_fabs_link=no
5443 rm -f conftest*
5448 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5449 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5450 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5451 cat >> confdefs.h <<EOF
5452 #define ${ac_tr_func} 1
5459 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5460 echo "configure:5461: checking for __builtin_fabsl declaration" >&5
5461 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5462 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5463 echo $ac_n "(cached) $ac_c" 1>&6
5464 else
5467 ac_ext=C
5468 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5469 ac_cpp='$CXXCPP $CPPFLAGS'
5470 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5471 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5472 cross_compiling=$ac_cv_prog_cxx_cross
5474 cat > conftest.$ac_ext <<EOF
5475 #line 5476 "configure"
5476 #include "confdefs.h"
5477 #include <math.h>
5478 int main() {
5479 __builtin_fabsl(0);
5480 ; return 0; }
5482 if { (eval echo configure:5483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5483 rm -rf conftest*
5484 glibcpp_cv_func___builtin_fabsl_use=yes
5485 else
5486 echo "configure: failed program was:" >&5
5487 cat conftest.$ac_ext >&5
5488 rm -rf conftest*
5489 glibcpp_cv_func___builtin_fabsl_use=no
5491 rm -f conftest*
5492 ac_ext=c
5493 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5494 ac_cpp='$CPP $CPPFLAGS'
5495 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5496 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5497 cross_compiling=$ac_cv_prog_cc_cross
5503 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5504 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5505 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5506 echo "configure:5507: checking for __builtin_fabsl linkage" >&5
5507 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5508 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5509 echo $ac_n "(cached) $ac_c" 1>&6
5510 else
5512 cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure"
5514 #include "confdefs.h"
5515 #include <math.h>
5516 int main() {
5517 __builtin_fabsl(0);
5518 ; return 0; }
5520 if { (eval echo configure:5521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5521 rm -rf conftest*
5522 glibcpp_cv_func___builtin_fabsl_link=yes
5523 else
5524 echo "configure: failed program was:" >&5
5525 cat conftest.$ac_ext >&5
5526 rm -rf conftest*
5527 glibcpp_cv_func___builtin_fabsl_link=no
5529 rm -f conftest*
5534 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5535 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5536 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5537 cat >> confdefs.h <<EOF
5538 #define ${ac_tr_func} 1
5545 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5546 echo "configure:5547: checking for __builtin_labs declaration" >&5
5547 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5548 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5549 echo $ac_n "(cached) $ac_c" 1>&6
5550 else
5553 ac_ext=C
5554 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5555 ac_cpp='$CXXCPP $CPPFLAGS'
5556 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5557 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5558 cross_compiling=$ac_cv_prog_cxx_cross
5560 cat > conftest.$ac_ext <<EOF
5561 #line 5562 "configure"
5562 #include "confdefs.h"
5563 #include <math.h>
5564 int main() {
5565 __builtin_labs(0);
5566 ; return 0; }
5568 if { (eval echo configure:5569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5569 rm -rf conftest*
5570 glibcpp_cv_func___builtin_labs_use=yes
5571 else
5572 echo "configure: failed program was:" >&5
5573 cat conftest.$ac_ext >&5
5574 rm -rf conftest*
5575 glibcpp_cv_func___builtin_labs_use=no
5577 rm -f conftest*
5578 ac_ext=c
5579 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5580 ac_cpp='$CPP $CPPFLAGS'
5581 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5582 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5583 cross_compiling=$ac_cv_prog_cc_cross
5589 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5590 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5591 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5592 echo "configure:5593: checking for __builtin_labs linkage" >&5
5593 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5594 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5595 echo $ac_n "(cached) $ac_c" 1>&6
5596 else
5598 cat > conftest.$ac_ext <<EOF
5599 #line 5600 "configure"
5600 #include "confdefs.h"
5601 #include <math.h>
5602 int main() {
5603 __builtin_labs(0);
5604 ; return 0; }
5606 if { (eval echo configure:5607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5607 rm -rf conftest*
5608 glibcpp_cv_func___builtin_labs_link=yes
5609 else
5610 echo "configure: failed program was:" >&5
5611 cat conftest.$ac_ext >&5
5612 rm -rf conftest*
5613 glibcpp_cv_func___builtin_labs_link=no
5615 rm -f conftest*
5620 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5621 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5622 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5623 cat >> confdefs.h <<EOF
5624 #define ${ac_tr_func} 1
5632 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5633 echo "configure:5634: checking for __builtin_sqrtf declaration" >&5
5634 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5635 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5636 echo $ac_n "(cached) $ac_c" 1>&6
5637 else
5640 ac_ext=C
5641 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5642 ac_cpp='$CXXCPP $CPPFLAGS'
5643 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5644 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5645 cross_compiling=$ac_cv_prog_cxx_cross
5647 cat > conftest.$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5650 #include <math.h>
5651 int main() {
5652 __builtin_sqrtf(0);
5653 ; return 0; }
5655 if { (eval echo configure:5656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5656 rm -rf conftest*
5657 glibcpp_cv_func___builtin_sqrtf_use=yes
5658 else
5659 echo "configure: failed program was:" >&5
5660 cat conftest.$ac_ext >&5
5661 rm -rf conftest*
5662 glibcpp_cv_func___builtin_sqrtf_use=no
5664 rm -f conftest*
5665 ac_ext=c
5666 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5667 ac_cpp='$CPP $CPPFLAGS'
5668 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5669 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5670 cross_compiling=$ac_cv_prog_cc_cross
5676 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5677 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5678 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5679 echo "configure:5680: checking for __builtin_sqrtf linkage" >&5
5680 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5681 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5682 echo $ac_n "(cached) $ac_c" 1>&6
5683 else
5685 cat > conftest.$ac_ext <<EOF
5686 #line 5687 "configure"
5687 #include "confdefs.h"
5688 #include <math.h>
5689 int main() {
5690 __builtin_sqrtf(0);
5691 ; return 0; }
5693 if { (eval echo configure:5694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5694 rm -rf conftest*
5695 glibcpp_cv_func___builtin_sqrtf_link=yes
5696 else
5697 echo "configure: failed program was:" >&5
5698 cat conftest.$ac_ext >&5
5699 rm -rf conftest*
5700 glibcpp_cv_func___builtin_sqrtf_link=no
5702 rm -f conftest*
5707 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5708 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5709 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5710 cat >> confdefs.h <<EOF
5711 #define ${ac_tr_func} 1
5718 echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5719 echo "configure:5720: checking for __builtin_fsqrt declaration" >&5
5720 if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5721 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5722 echo $ac_n "(cached) $ac_c" 1>&6
5723 else
5726 ac_ext=C
5727 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5728 ac_cpp='$CXXCPP $CPPFLAGS'
5729 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5730 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5731 cross_compiling=$ac_cv_prog_cxx_cross
5733 cat > conftest.$ac_ext <<EOF
5734 #line 5735 "configure"
5735 #include "confdefs.h"
5736 #include <math.h>
5737 int main() {
5738 __builtin_fsqrt(0);
5739 ; return 0; }
5741 if { (eval echo configure:5742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5742 rm -rf conftest*
5743 glibcpp_cv_func___builtin_fsqrt_use=yes
5744 else
5745 echo "configure: failed program was:" >&5
5746 cat conftest.$ac_ext >&5
5747 rm -rf conftest*
5748 glibcpp_cv_func___builtin_fsqrt_use=no
5750 rm -f conftest*
5751 ac_ext=c
5752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5753 ac_cpp='$CPP $CPPFLAGS'
5754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5755 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5756 cross_compiling=$ac_cv_prog_cc_cross
5762 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5763 if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5764 echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5765 echo "configure:5766: checking for __builtin_fsqrt linkage" >&5
5766 if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5767 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5768 echo $ac_n "(cached) $ac_c" 1>&6
5769 else
5771 cat > conftest.$ac_ext <<EOF
5772 #line 5773 "configure"
5773 #include "confdefs.h"
5774 #include <math.h>
5775 int main() {
5776 __builtin_fsqrt(0);
5777 ; return 0; }
5779 if { (eval echo configure:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5780 rm -rf conftest*
5781 glibcpp_cv_func___builtin_fsqrt_link=yes
5782 else
5783 echo "configure: failed program was:" >&5
5784 cat conftest.$ac_ext >&5
5785 rm -rf conftest*
5786 glibcpp_cv_func___builtin_fsqrt_link=no
5788 rm -f conftest*
5793 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5794 if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5795 ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5796 cat >> confdefs.h <<EOF
5797 #define ${ac_tr_func} 1
5804 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5805 echo "configure:5806: checking for __builtin_sqrtl declaration" >&5
5806 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5807 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5808 echo $ac_n "(cached) $ac_c" 1>&6
5809 else
5812 ac_ext=C
5813 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5814 ac_cpp='$CXXCPP $CPPFLAGS'
5815 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5816 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5817 cross_compiling=$ac_cv_prog_cxx_cross
5819 cat > conftest.$ac_ext <<EOF
5820 #line 5821 "configure"
5821 #include "confdefs.h"
5822 #include <math.h>
5823 int main() {
5824 __builtin_sqrtl(0);
5825 ; return 0; }
5827 if { (eval echo configure:5828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5828 rm -rf conftest*
5829 glibcpp_cv_func___builtin_sqrtl_use=yes
5830 else
5831 echo "configure: failed program was:" >&5
5832 cat conftest.$ac_ext >&5
5833 rm -rf conftest*
5834 glibcpp_cv_func___builtin_sqrtl_use=no
5836 rm -f conftest*
5837 ac_ext=c
5838 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5839 ac_cpp='$CPP $CPPFLAGS'
5840 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5841 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5842 cross_compiling=$ac_cv_prog_cc_cross
5848 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5849 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5850 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5851 echo "configure:5852: checking for __builtin_sqrtl linkage" >&5
5852 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5853 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5854 echo $ac_n "(cached) $ac_c" 1>&6
5855 else
5857 cat > conftest.$ac_ext <<EOF
5858 #line 5859 "configure"
5859 #include "confdefs.h"
5860 #include <math.h>
5861 int main() {
5862 __builtin_sqrtl(0);
5863 ; return 0; }
5865 if { (eval echo configure:5866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5866 rm -rf conftest*
5867 glibcpp_cv_func___builtin_sqrtl_link=yes
5868 else
5869 echo "configure: failed program was:" >&5
5870 cat conftest.$ac_ext >&5
5871 rm -rf conftest*
5872 glibcpp_cv_func___builtin_sqrtl_link=no
5874 rm -f conftest*
5879 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5880 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5881 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5882 cat >> confdefs.h <<EOF
5883 #define ${ac_tr_func} 1
5891 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5892 echo "configure:5893: checking for __builtin_sinf declaration" >&5
5893 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5894 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5895 echo $ac_n "(cached) $ac_c" 1>&6
5896 else
5899 ac_ext=C
5900 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5901 ac_cpp='$CXXCPP $CPPFLAGS'
5902 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5903 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5904 cross_compiling=$ac_cv_prog_cxx_cross
5906 cat > conftest.$ac_ext <<EOF
5907 #line 5908 "configure"
5908 #include "confdefs.h"
5909 #include <math.h>
5910 int main() {
5911 __builtin_sinf(0);
5912 ; return 0; }
5914 if { (eval echo configure:5915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5915 rm -rf conftest*
5916 glibcpp_cv_func___builtin_sinf_use=yes
5917 else
5918 echo "configure: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5920 rm -rf conftest*
5921 glibcpp_cv_func___builtin_sinf_use=no
5923 rm -f conftest*
5924 ac_ext=c
5925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5926 ac_cpp='$CPP $CPPFLAGS'
5927 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5928 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5929 cross_compiling=$ac_cv_prog_cc_cross
5935 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5936 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5937 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5938 echo "configure:5939: checking for __builtin_sinf linkage" >&5
5939 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5940 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5941 echo $ac_n "(cached) $ac_c" 1>&6
5942 else
5944 cat > conftest.$ac_ext <<EOF
5945 #line 5946 "configure"
5946 #include "confdefs.h"
5947 #include <math.h>
5948 int main() {
5949 __builtin_sinf(0);
5950 ; return 0; }
5952 if { (eval echo configure:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5953 rm -rf conftest*
5954 glibcpp_cv_func___builtin_sinf_link=yes
5955 else
5956 echo "configure: failed program was:" >&5
5957 cat conftest.$ac_ext >&5
5958 rm -rf conftest*
5959 glibcpp_cv_func___builtin_sinf_link=no
5961 rm -f conftest*
5966 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5967 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5968 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5969 cat >> confdefs.h <<EOF
5970 #define ${ac_tr_func} 1
5977 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5978 echo "configure:5979: checking for __builtin_sin declaration" >&5
5979 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5980 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
5981 echo $ac_n "(cached) $ac_c" 1>&6
5982 else
5985 ac_ext=C
5986 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5987 ac_cpp='$CXXCPP $CPPFLAGS'
5988 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5989 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5990 cross_compiling=$ac_cv_prog_cxx_cross
5992 cat > conftest.$ac_ext <<EOF
5993 #line 5994 "configure"
5994 #include "confdefs.h"
5995 #include <math.h>
5996 int main() {
5997 __builtin_sin(0);
5998 ; return 0; }
6000 if { (eval echo configure:6001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6001 rm -rf conftest*
6002 glibcpp_cv_func___builtin_sin_use=yes
6003 else
6004 echo "configure: failed program was:" >&5
6005 cat conftest.$ac_ext >&5
6006 rm -rf conftest*
6007 glibcpp_cv_func___builtin_sin_use=no
6009 rm -f conftest*
6010 ac_ext=c
6011 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6012 ac_cpp='$CPP $CPPFLAGS'
6013 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6014 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6015 cross_compiling=$ac_cv_prog_cc_cross
6021 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
6022 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
6023 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
6024 echo "configure:6025: checking for __builtin_sin linkage" >&5
6025 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
6026 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
6027 echo $ac_n "(cached) $ac_c" 1>&6
6028 else
6030 cat > conftest.$ac_ext <<EOF
6031 #line 6032 "configure"
6032 #include "confdefs.h"
6033 #include <math.h>
6034 int main() {
6035 __builtin_sin(0);
6036 ; return 0; }
6038 if { (eval echo configure:6039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6039 rm -rf conftest*
6040 glibcpp_cv_func___builtin_sin_link=yes
6041 else
6042 echo "configure: failed program was:" >&5
6043 cat conftest.$ac_ext >&5
6044 rm -rf conftest*
6045 glibcpp_cv_func___builtin_sin_link=no
6047 rm -f conftest*
6052 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
6053 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
6054 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6055 cat >> confdefs.h <<EOF
6056 #define ${ac_tr_func} 1
6063 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
6064 echo "configure:6065: checking for __builtin_sinl declaration" >&5
6065 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
6066 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
6067 echo $ac_n "(cached) $ac_c" 1>&6
6068 else
6071 ac_ext=C
6072 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6073 ac_cpp='$CXXCPP $CPPFLAGS'
6074 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6075 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6076 cross_compiling=$ac_cv_prog_cxx_cross
6078 cat > conftest.$ac_ext <<EOF
6079 #line 6080 "configure"
6080 #include "confdefs.h"
6081 #include <math.h>
6082 int main() {
6083 __builtin_sinl(0);
6084 ; return 0; }
6086 if { (eval echo configure:6087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6087 rm -rf conftest*
6088 glibcpp_cv_func___builtin_sinl_use=yes
6089 else
6090 echo "configure: failed program was:" >&5
6091 cat conftest.$ac_ext >&5
6092 rm -rf conftest*
6093 glibcpp_cv_func___builtin_sinl_use=no
6095 rm -f conftest*
6096 ac_ext=c
6097 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098 ac_cpp='$CPP $CPPFLAGS'
6099 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6100 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6101 cross_compiling=$ac_cv_prog_cc_cross
6107 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
6108 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
6109 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
6110 echo "configure:6111: checking for __builtin_sinl linkage" >&5
6111 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
6112 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
6113 echo $ac_n "(cached) $ac_c" 1>&6
6114 else
6116 cat > conftest.$ac_ext <<EOF
6117 #line 6118 "configure"
6118 #include "confdefs.h"
6119 #include <math.h>
6120 int main() {
6121 __builtin_sinl(0);
6122 ; return 0; }
6124 if { (eval echo configure:6125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6125 rm -rf conftest*
6126 glibcpp_cv_func___builtin_sinl_link=yes
6127 else
6128 echo "configure: failed program was:" >&5
6129 cat conftest.$ac_ext >&5
6130 rm -rf conftest*
6131 glibcpp_cv_func___builtin_sinl_link=no
6133 rm -f conftest*
6138 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
6139 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
6140 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6141 cat >> confdefs.h <<EOF
6142 #define ${ac_tr_func} 1
6150 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
6151 echo "configure:6152: checking for __builtin_cosf declaration" >&5
6152 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
6153 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
6154 echo $ac_n "(cached) $ac_c" 1>&6
6155 else
6158 ac_ext=C
6159 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6160 ac_cpp='$CXXCPP $CPPFLAGS'
6161 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6162 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6163 cross_compiling=$ac_cv_prog_cxx_cross
6165 cat > conftest.$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6168 #include <math.h>
6169 int main() {
6170 __builtin_cosf(0);
6171 ; return 0; }
6173 if { (eval echo configure:6174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6174 rm -rf conftest*
6175 glibcpp_cv_func___builtin_cosf_use=yes
6176 else
6177 echo "configure: failed program was:" >&5
6178 cat conftest.$ac_ext >&5
6179 rm -rf conftest*
6180 glibcpp_cv_func___builtin_cosf_use=no
6182 rm -f conftest*
6183 ac_ext=c
6184 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6185 ac_cpp='$CPP $CPPFLAGS'
6186 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6187 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6188 cross_compiling=$ac_cv_prog_cc_cross
6194 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6195 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6196 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6197 echo "configure:6198: checking for __builtin_cosf linkage" >&5
6198 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6199 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6200 echo $ac_n "(cached) $ac_c" 1>&6
6201 else
6203 cat > conftest.$ac_ext <<EOF
6204 #line 6205 "configure"
6205 #include "confdefs.h"
6206 #include <math.h>
6207 int main() {
6208 __builtin_cosf(0);
6209 ; return 0; }
6211 if { (eval echo configure:6212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6212 rm -rf conftest*
6213 glibcpp_cv_func___builtin_cosf_link=yes
6214 else
6215 echo "configure: failed program was:" >&5
6216 cat conftest.$ac_ext >&5
6217 rm -rf conftest*
6218 glibcpp_cv_func___builtin_cosf_link=no
6220 rm -f conftest*
6225 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6226 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6227 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6228 cat >> confdefs.h <<EOF
6229 #define ${ac_tr_func} 1
6236 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
6237 echo "configure:6238: checking for __builtin_cos declaration" >&5
6238 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6239 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
6240 echo $ac_n "(cached) $ac_c" 1>&6
6241 else
6244 ac_ext=C
6245 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6246 ac_cpp='$CXXCPP $CPPFLAGS'
6247 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6248 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6249 cross_compiling=$ac_cv_prog_cxx_cross
6251 cat > conftest.$ac_ext <<EOF
6252 #line 6253 "configure"
6253 #include "confdefs.h"
6254 #include <math.h>
6255 int main() {
6256 __builtin_cos(0);
6257 ; return 0; }
6259 if { (eval echo configure:6260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6260 rm -rf conftest*
6261 glibcpp_cv_func___builtin_cos_use=yes
6262 else
6263 echo "configure: failed program was:" >&5
6264 cat conftest.$ac_ext >&5
6265 rm -rf conftest*
6266 glibcpp_cv_func___builtin_cos_use=no
6268 rm -f conftest*
6269 ac_ext=c
6270 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6271 ac_cpp='$CPP $CPPFLAGS'
6272 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6273 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6274 cross_compiling=$ac_cv_prog_cc_cross
6280 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
6281 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6282 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6283 echo "configure:6284: checking for __builtin_cos linkage" >&5
6284 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6285 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
6286 echo $ac_n "(cached) $ac_c" 1>&6
6287 else
6289 cat > conftest.$ac_ext <<EOF
6290 #line 6291 "configure"
6291 #include "confdefs.h"
6292 #include <math.h>
6293 int main() {
6294 __builtin_cos(0);
6295 ; return 0; }
6297 if { (eval echo configure:6298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6298 rm -rf conftest*
6299 glibcpp_cv_func___builtin_cos_link=yes
6300 else
6301 echo "configure: failed program was:" >&5
6302 cat conftest.$ac_ext >&5
6303 rm -rf conftest*
6304 glibcpp_cv_func___builtin_cos_link=no
6306 rm -f conftest*
6311 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6312 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6313 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6314 cat >> confdefs.h <<EOF
6315 #define ${ac_tr_func} 1
6322 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6323 echo "configure:6324: checking for __builtin_cosl declaration" >&5
6324 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6325 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
6326 echo $ac_n "(cached) $ac_c" 1>&6
6327 else
6330 ac_ext=C
6331 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6332 ac_cpp='$CXXCPP $CPPFLAGS'
6333 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6334 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6335 cross_compiling=$ac_cv_prog_cxx_cross
6337 cat > conftest.$ac_ext <<EOF
6338 #line 6339 "configure"
6339 #include "confdefs.h"
6340 #include <math.h>
6341 int main() {
6342 __builtin_cosl(0);
6343 ; return 0; }
6345 if { (eval echo configure:6346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6346 rm -rf conftest*
6347 glibcpp_cv_func___builtin_cosl_use=yes
6348 else
6349 echo "configure: failed program was:" >&5
6350 cat conftest.$ac_ext >&5
6351 rm -rf conftest*
6352 glibcpp_cv_func___builtin_cosl_use=no
6354 rm -f conftest*
6355 ac_ext=c
6356 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6357 ac_cpp='$CPP $CPPFLAGS'
6358 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6359 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6360 cross_compiling=$ac_cv_prog_cc_cross
6366 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
6367 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6368 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6369 echo "configure:6370: checking for __builtin_cosl linkage" >&5
6370 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6371 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
6372 echo $ac_n "(cached) $ac_c" 1>&6
6373 else
6375 cat > conftest.$ac_ext <<EOF
6376 #line 6377 "configure"
6377 #include "confdefs.h"
6378 #include <math.h>
6379 int main() {
6380 __builtin_cosl(0);
6381 ; return 0; }
6383 if { (eval echo configure:6384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6384 rm -rf conftest*
6385 glibcpp_cv_func___builtin_cosl_link=yes
6386 else
6387 echo "configure: failed program was:" >&5
6388 cat conftest.$ac_ext >&5
6389 rm -rf conftest*
6390 glibcpp_cv_func___builtin_cosl_link=no
6392 rm -f conftest*
6397 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6398 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6399 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6400 cat >> confdefs.h <<EOF
6401 #define ${ac_tr_func} 1
6408 dummyvar=no
6409 if test x$dummyvar = x"yes"; then
6410 cat >> confdefs.h <<\EOF
6411 #define HAVE___BUILTIN_ABS 1
6414 cat >> confdefs.h <<\EOF
6415 #define HAVE___BUILTIN_LABS 1
6418 cat >> confdefs.h <<\EOF
6419 #define HAVE___BUILTIN_COS 1
6422 cat >> confdefs.h <<\EOF
6423 #define HAVE___BUILTIN_COSF 1
6426 cat >> confdefs.h <<\EOF
6427 #define HAVE___BUILTIN_COSL 1
6430 cat >> confdefs.h <<\EOF
6431 #define HAVE___BUILTIN_FABS 1
6434 cat >> confdefs.h <<\EOF
6435 #define HAVE___BUILTIN_FABSF 1
6438 cat >> confdefs.h <<\EOF
6439 #define HAVE___BUILTIN_FABSL 1
6442 cat >> confdefs.h <<\EOF
6443 #define HAVE___BUILTIN_SIN 1
6446 cat >> confdefs.h <<\EOF
6447 #define HAVE___BUILTIN_SINF 1
6450 cat >> confdefs.h <<\EOF
6451 #define HAVE___BUILTIN_SINL 1
6454 cat >> confdefs.h <<\EOF
6455 #define HAVE___BUILTIN_FSQRT 1
6458 cat >> confdefs.h <<\EOF
6459 #define HAVE___BUILTIN_SQRTF 1
6462 cat >> confdefs.h <<\EOF
6463 #define HAVE___BUILTIN_SQRTL 1
6469 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6470 ac_save_CXXFLAGS="$CXXFLAGS"
6471 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6473 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6474 echo "configure:6475: checking for sin in -lm" >&5
6475 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6476 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6477 echo $ac_n "(cached) $ac_c" 1>&6
6478 else
6479 ac_save_LIBS="$LIBS"
6480 LIBS="-lm $LIBS"
6481 cat > conftest.$ac_ext <<EOF
6482 #line 6483 "configure"
6483 #include "confdefs.h"
6484 /* Override any gcc2 internal prototype to avoid an error. */
6485 /* We use char because int might match the return type of a gcc2
6486 builtin and then its argument prototype would still apply. */
6487 char sin();
6489 int main() {
6490 sin()
6491 ; return 0; }
6493 if { (eval echo configure:6494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6494 rm -rf conftest*
6495 eval "ac_cv_lib_$ac_lib_var=yes"
6496 else
6497 echo "configure: failed program was:" >&5
6498 cat conftest.$ac_ext >&5
6499 rm -rf conftest*
6500 eval "ac_cv_lib_$ac_lib_var=no"
6502 rm -f conftest*
6503 LIBS="$ac_save_LIBS"
6506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6507 echo "$ac_t""yes" 1>&6
6508 libm="-lm"
6509 else
6510 echo "$ac_t""no" 1>&6
6513 ac_save_LIBS="$LIBS"
6514 LIBS="$LIBS $libm"
6518 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6519 echo "configure:6520: checking for isinf declaration" >&5
6520 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6521 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6522 echo $ac_n "(cached) $ac_c" 1>&6
6523 else
6526 ac_ext=C
6527 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6528 ac_cpp='$CXXCPP $CPPFLAGS'
6529 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6530 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6531 cross_compiling=$ac_cv_prog_cxx_cross
6533 cat > conftest.$ac_ext <<EOF
6534 #line 6535 "configure"
6535 #include "confdefs.h"
6536 #include <math.h>
6537 #ifdef HAVE_IEEEFP_H
6538 #include <ieeefp.h>
6539 #endif
6541 int main() {
6542 isinf(0);
6543 ; return 0; }
6545 if { (eval echo configure:6546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6546 rm -rf conftest*
6547 glibcpp_cv_func_isinf_use=yes
6548 else
6549 echo "configure: failed program was:" >&5
6550 cat conftest.$ac_ext >&5
6551 rm -rf conftest*
6552 glibcpp_cv_func_isinf_use=no
6554 rm -f conftest*
6555 ac_ext=c
6556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6557 ac_cpp='$CPP $CPPFLAGS'
6558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6559 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6560 cross_compiling=$ac_cv_prog_cc_cross
6566 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6568 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6569 for ac_func in isinf
6571 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6572 echo "configure:6573: checking for $ac_func" >&5
6573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6574 echo $ac_n "(cached) $ac_c" 1>&6
6575 else
6576 cat > conftest.$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6579 /* System header to define __stub macros and hopefully few prototypes,
6580 which can conflict with char $ac_func(); below. */
6581 #include <assert.h>
6582 /* Override any gcc2 internal prototype to avoid an error. */
6583 /* We use char because int might match the return type of a gcc2
6584 builtin and then its argument prototype would still apply. */
6585 char $ac_func();
6587 int main() {
6589 /* The GNU C library defines this for functions which it implements
6590 to always fail with ENOSYS. Some functions are actually named
6591 something starting with __ and the normal name is an alias. */
6592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6593 choke me
6594 #else
6595 $ac_func();
6596 #endif
6598 ; return 0; }
6600 if { (eval echo configure:6601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6601 rm -rf conftest*
6602 eval "ac_cv_func_$ac_func=yes"
6603 else
6604 echo "configure: failed program was:" >&5
6605 cat conftest.$ac_ext >&5
6606 rm -rf conftest*
6607 eval "ac_cv_func_$ac_func=no"
6609 rm -f conftest*
6612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6613 echo "$ac_t""yes" 1>&6
6614 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6615 cat >> confdefs.h <<EOF
6616 #define $ac_tr_func 1
6619 else
6620 echo "$ac_t""no" 1>&6
6622 done
6624 else
6626 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6627 echo "configure:6628: checking for _isinf declaration" >&5
6628 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6629 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6630 echo $ac_n "(cached) $ac_c" 1>&6
6631 else
6634 ac_ext=C
6635 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6636 ac_cpp='$CXXCPP $CPPFLAGS'
6637 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6638 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6639 cross_compiling=$ac_cv_prog_cxx_cross
6641 cat > conftest.$ac_ext <<EOF
6642 #line 6643 "configure"
6643 #include "confdefs.h"
6644 #include <math.h>
6645 #ifdef HAVE_IEEEFP_H
6646 #include <ieeefp.h>
6647 #endif
6649 int main() {
6650 _isinf(0);
6651 ; return 0; }
6653 if { (eval echo configure:6654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6654 rm -rf conftest*
6655 glibcpp_cv_func__isinf_use=yes
6656 else
6657 echo "configure: failed program was:" >&5
6658 cat conftest.$ac_ext >&5
6659 rm -rf conftest*
6660 glibcpp_cv_func__isinf_use=no
6662 rm -f conftest*
6663 ac_ext=c
6664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6665 ac_cpp='$CPP $CPPFLAGS'
6666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6668 cross_compiling=$ac_cv_prog_cc_cross
6674 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6676 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6677 for ac_func in _isinf
6679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6680 echo "configure:6681: checking for $ac_func" >&5
6681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6682 echo $ac_n "(cached) $ac_c" 1>&6
6683 else
6684 cat > conftest.$ac_ext <<EOF
6685 #line 6686 "configure"
6686 #include "confdefs.h"
6687 /* System header to define __stub macros and hopefully few prototypes,
6688 which can conflict with char $ac_func(); below. */
6689 #include <assert.h>
6690 /* Override any gcc2 internal prototype to avoid an error. */
6691 /* We use char because int might match the return type of a gcc2
6692 builtin and then its argument prototype would still apply. */
6693 char $ac_func();
6695 int main() {
6697 /* The GNU C library defines this for functions which it implements
6698 to always fail with ENOSYS. Some functions are actually named
6699 something starting with __ and the normal name is an alias. */
6700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6701 choke me
6702 #else
6703 $ac_func();
6704 #endif
6706 ; return 0; }
6708 if { (eval echo configure:6709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6709 rm -rf conftest*
6710 eval "ac_cv_func_$ac_func=yes"
6711 else
6712 echo "configure: failed program was:" >&5
6713 cat conftest.$ac_ext >&5
6714 rm -rf conftest*
6715 eval "ac_cv_func_$ac_func=no"
6717 rm -f conftest*
6720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6721 echo "$ac_t""yes" 1>&6
6722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6723 cat >> confdefs.h <<EOF
6724 #define $ac_tr_func 1
6727 else
6728 echo "$ac_t""no" 1>&6
6730 done
6737 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6738 echo "configure:6739: checking for isnan declaration" >&5
6739 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6740 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6741 echo $ac_n "(cached) $ac_c" 1>&6
6742 else
6745 ac_ext=C
6746 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6747 ac_cpp='$CXXCPP $CPPFLAGS'
6748 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6749 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6750 cross_compiling=$ac_cv_prog_cxx_cross
6752 cat > conftest.$ac_ext <<EOF
6753 #line 6754 "configure"
6754 #include "confdefs.h"
6755 #include <math.h>
6756 #ifdef HAVE_IEEEFP_H
6757 #include <ieeefp.h>
6758 #endif
6760 int main() {
6761 isnan(0);
6762 ; return 0; }
6764 if { (eval echo configure:6765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6765 rm -rf conftest*
6766 glibcpp_cv_func_isnan_use=yes
6767 else
6768 echo "configure: failed program was:" >&5
6769 cat conftest.$ac_ext >&5
6770 rm -rf conftest*
6771 glibcpp_cv_func_isnan_use=no
6773 rm -f conftest*
6774 ac_ext=c
6775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6776 ac_cpp='$CPP $CPPFLAGS'
6777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6779 cross_compiling=$ac_cv_prog_cc_cross
6785 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6787 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6788 for ac_func in isnan
6790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6791 echo "configure:6792: checking for $ac_func" >&5
6792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6793 echo $ac_n "(cached) $ac_c" 1>&6
6794 else
6795 cat > conftest.$ac_ext <<EOF
6796 #line 6797 "configure"
6797 #include "confdefs.h"
6798 /* System header to define __stub macros and hopefully few prototypes,
6799 which can conflict with char $ac_func(); below. */
6800 #include <assert.h>
6801 /* Override any gcc2 internal prototype to avoid an error. */
6802 /* We use char because int might match the return type of a gcc2
6803 builtin and then its argument prototype would still apply. */
6804 char $ac_func();
6806 int main() {
6808 /* The GNU C library defines this for functions which it implements
6809 to always fail with ENOSYS. Some functions are actually named
6810 something starting with __ and the normal name is an alias. */
6811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6812 choke me
6813 #else
6814 $ac_func();
6815 #endif
6817 ; return 0; }
6819 if { (eval echo configure:6820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6820 rm -rf conftest*
6821 eval "ac_cv_func_$ac_func=yes"
6822 else
6823 echo "configure: failed program was:" >&5
6824 cat conftest.$ac_ext >&5
6825 rm -rf conftest*
6826 eval "ac_cv_func_$ac_func=no"
6828 rm -f conftest*
6831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6832 echo "$ac_t""yes" 1>&6
6833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6834 cat >> confdefs.h <<EOF
6835 #define $ac_tr_func 1
6838 else
6839 echo "$ac_t""no" 1>&6
6841 done
6843 else
6845 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6846 echo "configure:6847: checking for _isnan declaration" >&5
6847 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6848 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6849 echo $ac_n "(cached) $ac_c" 1>&6
6850 else
6853 ac_ext=C
6854 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6855 ac_cpp='$CXXCPP $CPPFLAGS'
6856 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6857 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6858 cross_compiling=$ac_cv_prog_cxx_cross
6860 cat > conftest.$ac_ext <<EOF
6861 #line 6862 "configure"
6862 #include "confdefs.h"
6863 #include <math.h>
6864 #ifdef HAVE_IEEEFP_H
6865 #include <ieeefp.h>
6866 #endif
6868 int main() {
6869 _isnan(0);
6870 ; return 0; }
6872 if { (eval echo configure:6873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6873 rm -rf conftest*
6874 glibcpp_cv_func__isnan_use=yes
6875 else
6876 echo "configure: failed program was:" >&5
6877 cat conftest.$ac_ext >&5
6878 rm -rf conftest*
6879 glibcpp_cv_func__isnan_use=no
6881 rm -f conftest*
6882 ac_ext=c
6883 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6884 ac_cpp='$CPP $CPPFLAGS'
6885 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6886 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6887 cross_compiling=$ac_cv_prog_cc_cross
6893 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6895 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6896 for ac_func in _isnan
6898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6899 echo "configure:6900: checking for $ac_func" >&5
6900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6901 echo $ac_n "(cached) $ac_c" 1>&6
6902 else
6903 cat > conftest.$ac_ext <<EOF
6904 #line 6905 "configure"
6905 #include "confdefs.h"
6906 /* System header to define __stub macros and hopefully few prototypes,
6907 which can conflict with char $ac_func(); below. */
6908 #include <assert.h>
6909 /* Override any gcc2 internal prototype to avoid an error. */
6910 /* We use char because int might match the return type of a gcc2
6911 builtin and then its argument prototype would still apply. */
6912 char $ac_func();
6914 int main() {
6916 /* The GNU C library defines this for functions which it implements
6917 to always fail with ENOSYS. Some functions are actually named
6918 something starting with __ and the normal name is an alias. */
6919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6920 choke me
6921 #else
6922 $ac_func();
6923 #endif
6925 ; return 0; }
6927 if { (eval echo configure:6928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6928 rm -rf conftest*
6929 eval "ac_cv_func_$ac_func=yes"
6930 else
6931 echo "configure: failed program was:" >&5
6932 cat conftest.$ac_ext >&5
6933 rm -rf conftest*
6934 eval "ac_cv_func_$ac_func=no"
6936 rm -f conftest*
6939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6940 echo "$ac_t""yes" 1>&6
6941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6942 cat >> confdefs.h <<EOF
6943 #define $ac_tr_func 1
6946 else
6947 echo "$ac_t""no" 1>&6
6949 done
6956 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6957 echo "configure:6958: checking for finite declaration" >&5
6958 if test x${glibcpp_cv_func_finite_use+set} != xset; then
6959 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6960 echo $ac_n "(cached) $ac_c" 1>&6
6961 else
6964 ac_ext=C
6965 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6966 ac_cpp='$CXXCPP $CPPFLAGS'
6967 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6968 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6969 cross_compiling=$ac_cv_prog_cxx_cross
6971 cat > conftest.$ac_ext <<EOF
6972 #line 6973 "configure"
6973 #include "confdefs.h"
6974 #include <math.h>
6975 #ifdef HAVE_IEEEFP_H
6976 #include <ieeefp.h>
6977 #endif
6979 int main() {
6980 finite(0);
6981 ; return 0; }
6983 if { (eval echo configure:6984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6984 rm -rf conftest*
6985 glibcpp_cv_func_finite_use=yes
6986 else
6987 echo "configure: failed program was:" >&5
6988 cat conftest.$ac_ext >&5
6989 rm -rf conftest*
6990 glibcpp_cv_func_finite_use=no
6992 rm -f conftest*
6993 ac_ext=c
6994 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6995 ac_cpp='$CPP $CPPFLAGS'
6996 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6997 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6998 cross_compiling=$ac_cv_prog_cc_cross
7004 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
7006 if test x$glibcpp_cv_func_finite_use = x"yes"; then
7007 for ac_func in finite
7009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7010 echo "configure:7011: checking for $ac_func" >&5
7011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7012 echo $ac_n "(cached) $ac_c" 1>&6
7013 else
7014 cat > conftest.$ac_ext <<EOF
7015 #line 7016 "configure"
7016 #include "confdefs.h"
7017 /* System header to define __stub macros and hopefully few prototypes,
7018 which can conflict with char $ac_func(); below. */
7019 #include <assert.h>
7020 /* Override any gcc2 internal prototype to avoid an error. */
7021 /* We use char because int might match the return type of a gcc2
7022 builtin and then its argument prototype would still apply. */
7023 char $ac_func();
7025 int main() {
7027 /* The GNU C library defines this for functions which it implements
7028 to always fail with ENOSYS. Some functions are actually named
7029 something starting with __ and the normal name is an alias. */
7030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7031 choke me
7032 #else
7033 $ac_func();
7034 #endif
7036 ; return 0; }
7038 if { (eval echo configure:7039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7039 rm -rf conftest*
7040 eval "ac_cv_func_$ac_func=yes"
7041 else
7042 echo "configure: failed program was:" >&5
7043 cat conftest.$ac_ext >&5
7044 rm -rf conftest*
7045 eval "ac_cv_func_$ac_func=no"
7047 rm -f conftest*
7050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7051 echo "$ac_t""yes" 1>&6
7052 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7053 cat >> confdefs.h <<EOF
7054 #define $ac_tr_func 1
7057 else
7058 echo "$ac_t""no" 1>&6
7060 done
7062 else
7064 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
7065 echo "configure:7066: checking for _finite declaration" >&5
7066 if test x${glibcpp_cv_func__finite_use+set} != xset; then
7067 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
7068 echo $ac_n "(cached) $ac_c" 1>&6
7069 else
7072 ac_ext=C
7073 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7074 ac_cpp='$CXXCPP $CPPFLAGS'
7075 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7076 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7077 cross_compiling=$ac_cv_prog_cxx_cross
7079 cat > conftest.$ac_ext <<EOF
7080 #line 7081 "configure"
7081 #include "confdefs.h"
7082 #include <math.h>
7083 #ifdef HAVE_IEEEFP_H
7084 #include <ieeefp.h>
7085 #endif
7087 int main() {
7088 _finite(0);
7089 ; return 0; }
7091 if { (eval echo configure:7092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7092 rm -rf conftest*
7093 glibcpp_cv_func__finite_use=yes
7094 else
7095 echo "configure: failed program was:" >&5
7096 cat conftest.$ac_ext >&5
7097 rm -rf conftest*
7098 glibcpp_cv_func__finite_use=no
7100 rm -f conftest*
7101 ac_ext=c
7102 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7103 ac_cpp='$CPP $CPPFLAGS'
7104 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7105 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7106 cross_compiling=$ac_cv_prog_cc_cross
7112 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
7114 if test x$glibcpp_cv_func__finite_use = x"yes"; then
7115 for ac_func in _finite
7117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7118 echo "configure:7119: checking for $ac_func" >&5
7119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7120 echo $ac_n "(cached) $ac_c" 1>&6
7121 else
7122 cat > conftest.$ac_ext <<EOF
7123 #line 7124 "configure"
7124 #include "confdefs.h"
7125 /* System header to define __stub macros and hopefully few prototypes,
7126 which can conflict with char $ac_func(); below. */
7127 #include <assert.h>
7128 /* Override any gcc2 internal prototype to avoid an error. */
7129 /* We use char because int might match the return type of a gcc2
7130 builtin and then its argument prototype would still apply. */
7131 char $ac_func();
7133 int main() {
7135 /* The GNU C library defines this for functions which it implements
7136 to always fail with ENOSYS. Some functions are actually named
7137 something starting with __ and the normal name is an alias. */
7138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7139 choke me
7140 #else
7141 $ac_func();
7142 #endif
7144 ; return 0; }
7146 if { (eval echo configure:7147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7147 rm -rf conftest*
7148 eval "ac_cv_func_$ac_func=yes"
7149 else
7150 echo "configure: failed program was:" >&5
7151 cat conftest.$ac_ext >&5
7152 rm -rf conftest*
7153 eval "ac_cv_func_$ac_func=no"
7155 rm -f conftest*
7158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7159 echo "$ac_t""yes" 1>&6
7160 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7161 cat >> confdefs.h <<EOF
7162 #define $ac_tr_func 1
7165 else
7166 echo "$ac_t""no" 1>&6
7168 done
7175 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7176 echo "configure:7177: checking for copysign declaration" >&5
7177 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7178 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7179 echo $ac_n "(cached) $ac_c" 1>&6
7180 else
7183 ac_ext=C
7184 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7185 ac_cpp='$CXXCPP $CPPFLAGS'
7186 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7187 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7188 cross_compiling=$ac_cv_prog_cxx_cross
7190 cat > conftest.$ac_ext <<EOF
7191 #line 7192 "configure"
7192 #include "confdefs.h"
7193 #include <math.h>
7194 int main() {
7195 copysign(0, 0);
7196 ; return 0; }
7198 if { (eval echo configure:7199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7199 rm -rf conftest*
7200 glibcpp_cv_func_copysign_use=yes
7201 else
7202 echo "configure: failed program was:" >&5
7203 cat conftest.$ac_ext >&5
7204 rm -rf conftest*
7205 glibcpp_cv_func_copysign_use=no
7207 rm -f conftest*
7208 ac_ext=c
7209 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7210 ac_cpp='$CPP $CPPFLAGS'
7211 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7212 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7213 cross_compiling=$ac_cv_prog_cc_cross
7219 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7221 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7222 for ac_func in copysign
7224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7225 echo "configure:7226: checking for $ac_func" >&5
7226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7227 echo $ac_n "(cached) $ac_c" 1>&6
7228 else
7229 cat > conftest.$ac_ext <<EOF
7230 #line 7231 "configure"
7231 #include "confdefs.h"
7232 /* System header to define __stub macros and hopefully few prototypes,
7233 which can conflict with char $ac_func(); below. */
7234 #include <assert.h>
7235 /* Override any gcc2 internal prototype to avoid an error. */
7236 /* We use char because int might match the return type of a gcc2
7237 builtin and then its argument prototype would still apply. */
7238 char $ac_func();
7240 int main() {
7242 /* The GNU C library defines this for functions which it implements
7243 to always fail with ENOSYS. Some functions are actually named
7244 something starting with __ and the normal name is an alias. */
7245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7246 choke me
7247 #else
7248 $ac_func();
7249 #endif
7251 ; return 0; }
7253 if { (eval echo configure:7254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7254 rm -rf conftest*
7255 eval "ac_cv_func_$ac_func=yes"
7256 else
7257 echo "configure: failed program was:" >&5
7258 cat conftest.$ac_ext >&5
7259 rm -rf conftest*
7260 eval "ac_cv_func_$ac_func=no"
7262 rm -f conftest*
7265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7266 echo "$ac_t""yes" 1>&6
7267 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7268 cat >> confdefs.h <<EOF
7269 #define $ac_tr_func 1
7272 else
7273 echo "$ac_t""no" 1>&6
7275 done
7277 else
7279 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7280 echo "configure:7281: checking for _copysign declaration" >&5
7281 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7282 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7283 echo $ac_n "(cached) $ac_c" 1>&6
7284 else
7287 ac_ext=C
7288 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7289 ac_cpp='$CXXCPP $CPPFLAGS'
7290 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7291 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7292 cross_compiling=$ac_cv_prog_cxx_cross
7294 cat > conftest.$ac_ext <<EOF
7295 #line 7296 "configure"
7296 #include "confdefs.h"
7297 #include <math.h>
7298 int main() {
7299 _copysign(0, 0);
7300 ; return 0; }
7302 if { (eval echo configure:7303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7303 rm -rf conftest*
7304 glibcpp_cv_func__copysign_use=yes
7305 else
7306 echo "configure: failed program was:" >&5
7307 cat conftest.$ac_ext >&5
7308 rm -rf conftest*
7309 glibcpp_cv_func__copysign_use=no
7311 rm -f conftest*
7312 ac_ext=c
7313 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7314 ac_cpp='$CPP $CPPFLAGS'
7315 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7316 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7317 cross_compiling=$ac_cv_prog_cc_cross
7323 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7325 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7326 for ac_func in _copysign
7328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7329 echo "configure:7330: checking for $ac_func" >&5
7330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7331 echo $ac_n "(cached) $ac_c" 1>&6
7332 else
7333 cat > conftest.$ac_ext <<EOF
7334 #line 7335 "configure"
7335 #include "confdefs.h"
7336 /* System header to define __stub macros and hopefully few prototypes,
7337 which can conflict with char $ac_func(); below. */
7338 #include <assert.h>
7339 /* Override any gcc2 internal prototype to avoid an error. */
7340 /* We use char because int might match the return type of a gcc2
7341 builtin and then its argument prototype would still apply. */
7342 char $ac_func();
7344 int main() {
7346 /* The GNU C library defines this for functions which it implements
7347 to always fail with ENOSYS. Some functions are actually named
7348 something starting with __ and the normal name is an alias. */
7349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7350 choke me
7351 #else
7352 $ac_func();
7353 #endif
7355 ; return 0; }
7357 if { (eval echo configure:7358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7358 rm -rf conftest*
7359 eval "ac_cv_func_$ac_func=yes"
7360 else
7361 echo "configure: failed program was:" >&5
7362 cat conftest.$ac_ext >&5
7363 rm -rf conftest*
7364 eval "ac_cv_func_$ac_func=no"
7366 rm -f conftest*
7369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7370 echo "$ac_t""yes" 1>&6
7371 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7372 cat >> confdefs.h <<EOF
7373 #define $ac_tr_func 1
7376 else
7377 echo "$ac_t""no" 1>&6
7379 done
7386 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7387 echo "configure:7388: checking for sincos declaration" >&5
7388 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7389 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7390 echo $ac_n "(cached) $ac_c" 1>&6
7391 else
7394 ac_ext=C
7395 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7396 ac_cpp='$CXXCPP $CPPFLAGS'
7397 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7398 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7399 cross_compiling=$ac_cv_prog_cxx_cross
7401 cat > conftest.$ac_ext <<EOF
7402 #line 7403 "configure"
7403 #include "confdefs.h"
7404 #include <math.h>
7405 int main() {
7406 sincos(0, 0, 0);
7407 ; return 0; }
7409 if { (eval echo configure:7410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7410 rm -rf conftest*
7411 glibcpp_cv_func_sincos_use=yes
7412 else
7413 echo "configure: failed program was:" >&5
7414 cat conftest.$ac_ext >&5
7415 rm -rf conftest*
7416 glibcpp_cv_func_sincos_use=no
7418 rm -f conftest*
7419 ac_ext=c
7420 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7421 ac_cpp='$CPP $CPPFLAGS'
7422 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7423 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7424 cross_compiling=$ac_cv_prog_cc_cross
7430 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7432 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7433 for ac_func in sincos
7435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7436 echo "configure:7437: checking for $ac_func" >&5
7437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7438 echo $ac_n "(cached) $ac_c" 1>&6
7439 else
7440 cat > conftest.$ac_ext <<EOF
7441 #line 7442 "configure"
7442 #include "confdefs.h"
7443 /* System header to define __stub macros and hopefully few prototypes,
7444 which can conflict with char $ac_func(); below. */
7445 #include <assert.h>
7446 /* Override any gcc2 internal prototype to avoid an error. */
7447 /* We use char because int might match the return type of a gcc2
7448 builtin and then its argument prototype would still apply. */
7449 char $ac_func();
7451 int main() {
7453 /* The GNU C library defines this for functions which it implements
7454 to always fail with ENOSYS. Some functions are actually named
7455 something starting with __ and the normal name is an alias. */
7456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7457 choke me
7458 #else
7459 $ac_func();
7460 #endif
7462 ; return 0; }
7464 if { (eval echo configure:7465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7465 rm -rf conftest*
7466 eval "ac_cv_func_$ac_func=yes"
7467 else
7468 echo "configure: failed program was:" >&5
7469 cat conftest.$ac_ext >&5
7470 rm -rf conftest*
7471 eval "ac_cv_func_$ac_func=no"
7473 rm -f conftest*
7476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7477 echo "$ac_t""yes" 1>&6
7478 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7479 cat >> confdefs.h <<EOF
7480 #define $ac_tr_func 1
7483 else
7484 echo "$ac_t""no" 1>&6
7486 done
7488 else
7490 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7491 echo "configure:7492: checking for _sincos declaration" >&5
7492 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7493 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7494 echo $ac_n "(cached) $ac_c" 1>&6
7495 else
7498 ac_ext=C
7499 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7500 ac_cpp='$CXXCPP $CPPFLAGS'
7501 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7502 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7503 cross_compiling=$ac_cv_prog_cxx_cross
7505 cat > conftest.$ac_ext <<EOF
7506 #line 7507 "configure"
7507 #include "confdefs.h"
7508 #include <math.h>
7509 int main() {
7510 _sincos(0, 0, 0);
7511 ; return 0; }
7513 if { (eval echo configure:7514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7514 rm -rf conftest*
7515 glibcpp_cv_func__sincos_use=yes
7516 else
7517 echo "configure: failed program was:" >&5
7518 cat conftest.$ac_ext >&5
7519 rm -rf conftest*
7520 glibcpp_cv_func__sincos_use=no
7522 rm -f conftest*
7523 ac_ext=c
7524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7525 ac_cpp='$CPP $CPPFLAGS'
7526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7528 cross_compiling=$ac_cv_prog_cc_cross
7534 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7536 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7537 for ac_func in _sincos
7539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7540 echo "configure:7541: checking for $ac_func" >&5
7541 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7542 echo $ac_n "(cached) $ac_c" 1>&6
7543 else
7544 cat > conftest.$ac_ext <<EOF
7545 #line 7546 "configure"
7546 #include "confdefs.h"
7547 /* System header to define __stub macros and hopefully few prototypes,
7548 which can conflict with char $ac_func(); below. */
7549 #include <assert.h>
7550 /* Override any gcc2 internal prototype to avoid an error. */
7551 /* We use char because int might match the return type of a gcc2
7552 builtin and then its argument prototype would still apply. */
7553 char $ac_func();
7555 int main() {
7557 /* The GNU C library defines this for functions which it implements
7558 to always fail with ENOSYS. Some functions are actually named
7559 something starting with __ and the normal name is an alias. */
7560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7561 choke me
7562 #else
7563 $ac_func();
7564 #endif
7566 ; return 0; }
7568 if { (eval echo configure:7569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7569 rm -rf conftest*
7570 eval "ac_cv_func_$ac_func=yes"
7571 else
7572 echo "configure: failed program was:" >&5
7573 cat conftest.$ac_ext >&5
7574 rm -rf conftest*
7575 eval "ac_cv_func_$ac_func=no"
7577 rm -f conftest*
7580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7581 echo "$ac_t""yes" 1>&6
7582 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7583 cat >> confdefs.h <<EOF
7584 #define $ac_tr_func 1
7587 else
7588 echo "$ac_t""no" 1>&6
7590 done
7597 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7598 echo "configure:7599: checking for fpclass declaration" >&5
7599 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7600 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7601 echo $ac_n "(cached) $ac_c" 1>&6
7602 else
7605 ac_ext=C
7606 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7607 ac_cpp='$CXXCPP $CPPFLAGS'
7608 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7609 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7610 cross_compiling=$ac_cv_prog_cxx_cross
7612 cat > conftest.$ac_ext <<EOF
7613 #line 7614 "configure"
7614 #include "confdefs.h"
7615 #include <math.h>
7616 #ifdef HAVE_IEEEFP_H
7617 #include <ieeefp.h>
7618 #endif
7620 int main() {
7621 fpclass(0);
7622 ; return 0; }
7624 if { (eval echo configure:7625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7625 rm -rf conftest*
7626 glibcpp_cv_func_fpclass_use=yes
7627 else
7628 echo "configure: failed program was:" >&5
7629 cat conftest.$ac_ext >&5
7630 rm -rf conftest*
7631 glibcpp_cv_func_fpclass_use=no
7633 rm -f conftest*
7634 ac_ext=c
7635 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7636 ac_cpp='$CPP $CPPFLAGS'
7637 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7638 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7639 cross_compiling=$ac_cv_prog_cc_cross
7645 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7647 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7648 for ac_func in fpclass
7650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7651 echo "configure:7652: checking for $ac_func" >&5
7652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7653 echo $ac_n "(cached) $ac_c" 1>&6
7654 else
7655 cat > conftest.$ac_ext <<EOF
7656 #line 7657 "configure"
7657 #include "confdefs.h"
7658 /* System header to define __stub macros and hopefully few prototypes,
7659 which can conflict with char $ac_func(); below. */
7660 #include <assert.h>
7661 /* Override any gcc2 internal prototype to avoid an error. */
7662 /* We use char because int might match the return type of a gcc2
7663 builtin and then its argument prototype would still apply. */
7664 char $ac_func();
7666 int main() {
7668 /* The GNU C library defines this for functions which it implements
7669 to always fail with ENOSYS. Some functions are actually named
7670 something starting with __ and the normal name is an alias. */
7671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7672 choke me
7673 #else
7674 $ac_func();
7675 #endif
7677 ; return 0; }
7679 if { (eval echo configure:7680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7680 rm -rf conftest*
7681 eval "ac_cv_func_$ac_func=yes"
7682 else
7683 echo "configure: failed program was:" >&5
7684 cat conftest.$ac_ext >&5
7685 rm -rf conftest*
7686 eval "ac_cv_func_$ac_func=no"
7688 rm -f conftest*
7691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7692 echo "$ac_t""yes" 1>&6
7693 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7694 cat >> confdefs.h <<EOF
7695 #define $ac_tr_func 1
7698 else
7699 echo "$ac_t""no" 1>&6
7701 done
7703 else
7705 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7706 echo "configure:7707: checking for _fpclass declaration" >&5
7707 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7708 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7709 echo $ac_n "(cached) $ac_c" 1>&6
7710 else
7713 ac_ext=C
7714 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7715 ac_cpp='$CXXCPP $CPPFLAGS'
7716 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7717 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7718 cross_compiling=$ac_cv_prog_cxx_cross
7720 cat > conftest.$ac_ext <<EOF
7721 #line 7722 "configure"
7722 #include "confdefs.h"
7723 #include <math.h>
7724 #ifdef HAVE_IEEEFP_H
7725 #include <ieeefp.h>
7726 #endif
7728 int main() {
7729 _fpclass(0);
7730 ; return 0; }
7732 if { (eval echo configure:7733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7733 rm -rf conftest*
7734 glibcpp_cv_func__fpclass_use=yes
7735 else
7736 echo "configure: failed program was:" >&5
7737 cat conftest.$ac_ext >&5
7738 rm -rf conftest*
7739 glibcpp_cv_func__fpclass_use=no
7741 rm -f conftest*
7742 ac_ext=c
7743 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7744 ac_cpp='$CPP $CPPFLAGS'
7745 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7746 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7747 cross_compiling=$ac_cv_prog_cc_cross
7753 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7755 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7756 for ac_func in _fpclass
7758 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7759 echo "configure:7760: checking for $ac_func" >&5
7760 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7761 echo $ac_n "(cached) $ac_c" 1>&6
7762 else
7763 cat > conftest.$ac_ext <<EOF
7764 #line 7765 "configure"
7765 #include "confdefs.h"
7766 /* System header to define __stub macros and hopefully few prototypes,
7767 which can conflict with char $ac_func(); below. */
7768 #include <assert.h>
7769 /* Override any gcc2 internal prototype to avoid an error. */
7770 /* We use char because int might match the return type of a gcc2
7771 builtin and then its argument prototype would still apply. */
7772 char $ac_func();
7774 int main() {
7776 /* The GNU C library defines this for functions which it implements
7777 to always fail with ENOSYS. Some functions are actually named
7778 something starting with __ and the normal name is an alias. */
7779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7780 choke me
7781 #else
7782 $ac_func();
7783 #endif
7785 ; return 0; }
7787 if { (eval echo configure:7788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7788 rm -rf conftest*
7789 eval "ac_cv_func_$ac_func=yes"
7790 else
7791 echo "configure: failed program was:" >&5
7792 cat conftest.$ac_ext >&5
7793 rm -rf conftest*
7794 eval "ac_cv_func_$ac_func=no"
7796 rm -f conftest*
7799 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7800 echo "$ac_t""yes" 1>&6
7801 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7802 cat >> confdefs.h <<EOF
7803 #define $ac_tr_func 1
7806 else
7807 echo "$ac_t""no" 1>&6
7809 done
7816 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7817 echo "configure:7818: checking for qfpclass declaration" >&5
7818 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7819 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7820 echo $ac_n "(cached) $ac_c" 1>&6
7821 else
7824 ac_ext=C
7825 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7826 ac_cpp='$CXXCPP $CPPFLAGS'
7827 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7828 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7829 cross_compiling=$ac_cv_prog_cxx_cross
7831 cat > conftest.$ac_ext <<EOF
7832 #line 7833 "configure"
7833 #include "confdefs.h"
7834 #include <math.h>
7835 #ifdef HAVE_IEEEFP_H
7836 #include <ieeefp.h>
7837 #endif
7839 int main() {
7840 qfpclass(0);
7841 ; return 0; }
7843 if { (eval echo configure:7844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7844 rm -rf conftest*
7845 glibcpp_cv_func_qfpclass_use=yes
7846 else
7847 echo "configure: failed program was:" >&5
7848 cat conftest.$ac_ext >&5
7849 rm -rf conftest*
7850 glibcpp_cv_func_qfpclass_use=no
7852 rm -f conftest*
7853 ac_ext=c
7854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7855 ac_cpp='$CPP $CPPFLAGS'
7856 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7857 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7858 cross_compiling=$ac_cv_prog_cc_cross
7864 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7866 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7867 for ac_func in qfpclass
7869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7870 echo "configure:7871: checking for $ac_func" >&5
7871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7872 echo $ac_n "(cached) $ac_c" 1>&6
7873 else
7874 cat > conftest.$ac_ext <<EOF
7875 #line 7876 "configure"
7876 #include "confdefs.h"
7877 /* System header to define __stub macros and hopefully few prototypes,
7878 which can conflict with char $ac_func(); below. */
7879 #include <assert.h>
7880 /* Override any gcc2 internal prototype to avoid an error. */
7881 /* We use char because int might match the return type of a gcc2
7882 builtin and then its argument prototype would still apply. */
7883 char $ac_func();
7885 int main() {
7887 /* The GNU C library defines this for functions which it implements
7888 to always fail with ENOSYS. Some functions are actually named
7889 something starting with __ and the normal name is an alias. */
7890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7891 choke me
7892 #else
7893 $ac_func();
7894 #endif
7896 ; return 0; }
7898 if { (eval echo configure:7899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7899 rm -rf conftest*
7900 eval "ac_cv_func_$ac_func=yes"
7901 else
7902 echo "configure: failed program was:" >&5
7903 cat conftest.$ac_ext >&5
7904 rm -rf conftest*
7905 eval "ac_cv_func_$ac_func=no"
7907 rm -f conftest*
7910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7911 echo "$ac_t""yes" 1>&6
7912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7913 cat >> confdefs.h <<EOF
7914 #define $ac_tr_func 1
7917 else
7918 echo "$ac_t""no" 1>&6
7920 done
7922 else
7924 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7925 echo "configure:7926: checking for _qfpclass declaration" >&5
7926 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7927 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7928 echo $ac_n "(cached) $ac_c" 1>&6
7929 else
7932 ac_ext=C
7933 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7934 ac_cpp='$CXXCPP $CPPFLAGS'
7935 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7936 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7937 cross_compiling=$ac_cv_prog_cxx_cross
7939 cat > conftest.$ac_ext <<EOF
7940 #line 7941 "configure"
7941 #include "confdefs.h"
7942 #include <math.h>
7943 #ifdef HAVE_IEEEFP_H
7944 #include <ieeefp.h>
7945 #endif
7947 int main() {
7948 _qfpclass(0);
7949 ; return 0; }
7951 if { (eval echo configure:7952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7952 rm -rf conftest*
7953 glibcpp_cv_func__qfpclass_use=yes
7954 else
7955 echo "configure: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7957 rm -rf conftest*
7958 glibcpp_cv_func__qfpclass_use=no
7960 rm -f conftest*
7961 ac_ext=c
7962 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7963 ac_cpp='$CPP $CPPFLAGS'
7964 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7965 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7966 cross_compiling=$ac_cv_prog_cc_cross
7972 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7974 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7975 for ac_func in _qfpclass
7977 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7978 echo "configure:7979: checking for $ac_func" >&5
7979 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7980 echo $ac_n "(cached) $ac_c" 1>&6
7981 else
7982 cat > conftest.$ac_ext <<EOF
7983 #line 7984 "configure"
7984 #include "confdefs.h"
7985 /* System header to define __stub macros and hopefully few prototypes,
7986 which can conflict with char $ac_func(); below. */
7987 #include <assert.h>
7988 /* Override any gcc2 internal prototype to avoid an error. */
7989 /* We use char because int might match the return type of a gcc2
7990 builtin and then its argument prototype would still apply. */
7991 char $ac_func();
7993 int main() {
7995 /* The GNU C library defines this for functions which it implements
7996 to always fail with ENOSYS. Some functions are actually named
7997 something starting with __ and the normal name is an alias. */
7998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7999 choke me
8000 #else
8001 $ac_func();
8002 #endif
8004 ; return 0; }
8006 if { (eval echo configure:8007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8007 rm -rf conftest*
8008 eval "ac_cv_func_$ac_func=yes"
8009 else
8010 echo "configure: failed program was:" >&5
8011 cat conftest.$ac_ext >&5
8012 rm -rf conftest*
8013 eval "ac_cv_func_$ac_func=no"
8015 rm -f conftest*
8018 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8019 echo "$ac_t""yes" 1>&6
8020 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8021 cat >> confdefs.h <<EOF
8022 #define $ac_tr_func 1
8025 else
8026 echo "$ac_t""no" 1>&6
8028 done
8035 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
8036 echo "configure:8037: checking for float trig functions" >&5
8037 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
8038 echo $ac_n "(cached) $ac_c" 1>&6
8039 else
8042 ac_ext=C
8043 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8044 ac_cpp='$CXXCPP $CPPFLAGS'
8045 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8046 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8047 cross_compiling=$ac_cv_prog_cxx_cross
8049 cat > conftest.$ac_ext <<EOF
8050 #line 8051 "configure"
8051 #include "confdefs.h"
8052 #include <math.h>
8053 int main() {
8054 `for x in acosf asinf atanf \
8055 cosf sinf tanf \
8056 coshf sinhf tanhf; do echo "$x (0);"; done`
8057 ; return 0; }
8059 if { (eval echo configure:8060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8060 rm -rf conftest*
8061 glibcpp_cv_func_float_trig_use=yes
8062 else
8063 echo "configure: failed program was:" >&5
8064 cat conftest.$ac_ext >&5
8065 rm -rf conftest*
8066 glibcpp_cv_func_float_trig_use=no
8068 rm -f conftest*
8069 ac_ext=c
8070 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8071 ac_cpp='$CPP $CPPFLAGS'
8072 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8073 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8074 cross_compiling=$ac_cv_prog_cc_cross
8078 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
8079 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
8080 for ac_func in acosf asinf atanf \
8081 cosf sinf tanf \
8082 coshf sinhf tanhf
8084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8085 echo "configure:8086: checking for $ac_func" >&5
8086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8087 echo $ac_n "(cached) $ac_c" 1>&6
8088 else
8089 cat > conftest.$ac_ext <<EOF
8090 #line 8091 "configure"
8091 #include "confdefs.h"
8092 /* System header to define __stub macros and hopefully few prototypes,
8093 which can conflict with char $ac_func(); below. */
8094 #include <assert.h>
8095 /* Override any gcc2 internal prototype to avoid an error. */
8096 /* We use char because int might match the return type of a gcc2
8097 builtin and then its argument prototype would still apply. */
8098 char $ac_func();
8100 int main() {
8102 /* The GNU C library defines this for functions which it implements
8103 to always fail with ENOSYS. Some functions are actually named
8104 something starting with __ and the normal name is an alias. */
8105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8106 choke me
8107 #else
8108 $ac_func();
8109 #endif
8111 ; return 0; }
8113 if { (eval echo configure:8114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8114 rm -rf conftest*
8115 eval "ac_cv_func_$ac_func=yes"
8116 else
8117 echo "configure: failed program was:" >&5
8118 cat conftest.$ac_ext >&5
8119 rm -rf conftest*
8120 eval "ac_cv_func_$ac_func=no"
8122 rm -f conftest*
8125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8126 echo "$ac_t""yes" 1>&6
8127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8128 cat >> confdefs.h <<EOF
8129 #define $ac_tr_func 1
8132 else
8133 echo "$ac_t""no" 1>&6
8135 done
8140 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
8141 echo "configure:8142: checking for float round functions" >&5
8142 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
8143 echo $ac_n "(cached) $ac_c" 1>&6
8144 else
8147 ac_ext=C
8148 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8149 ac_cpp='$CXXCPP $CPPFLAGS'
8150 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8151 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8152 cross_compiling=$ac_cv_prog_cxx_cross
8154 cat > conftest.$ac_ext <<EOF
8155 #line 8156 "configure"
8156 #include "confdefs.h"
8157 #include <math.h>
8158 int main() {
8159 `for x in ceilf floorf; do echo "$x (0);"; done`
8160 ; return 0; }
8162 if { (eval echo configure:8163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8163 rm -rf conftest*
8164 glibcpp_cv_func_float_round_use=yes
8165 else
8166 echo "configure: failed program was:" >&5
8167 cat conftest.$ac_ext >&5
8168 rm -rf conftest*
8169 glibcpp_cv_func_float_round_use=no
8171 rm -f conftest*
8172 ac_ext=c
8173 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8174 ac_cpp='$CPP $CPPFLAGS'
8175 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8176 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8177 cross_compiling=$ac_cv_prog_cc_cross
8181 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8182 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8183 for ac_func in ceilf floorf
8185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8186 echo "configure:8187: checking for $ac_func" >&5
8187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8188 echo $ac_n "(cached) $ac_c" 1>&6
8189 else
8190 cat > conftest.$ac_ext <<EOF
8191 #line 8192 "configure"
8192 #include "confdefs.h"
8193 /* System header to define __stub macros and hopefully few prototypes,
8194 which can conflict with char $ac_func(); below. */
8195 #include <assert.h>
8196 /* Override any gcc2 internal prototype to avoid an error. */
8197 /* We use char because int might match the return type of a gcc2
8198 builtin and then its argument prototype would still apply. */
8199 char $ac_func();
8201 int main() {
8203 /* The GNU C library defines this for functions which it implements
8204 to always fail with ENOSYS. Some functions are actually named
8205 something starting with __ and the normal name is an alias. */
8206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8207 choke me
8208 #else
8209 $ac_func();
8210 #endif
8212 ; return 0; }
8214 if { (eval echo configure:8215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8215 rm -rf conftest*
8216 eval "ac_cv_func_$ac_func=yes"
8217 else
8218 echo "configure: failed program was:" >&5
8219 cat conftest.$ac_ext >&5
8220 rm -rf conftest*
8221 eval "ac_cv_func_$ac_func=no"
8223 rm -f conftest*
8226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8227 echo "$ac_t""yes" 1>&6
8228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8229 cat >> confdefs.h <<EOF
8230 #define $ac_tr_func 1
8233 else
8234 echo "$ac_t""no" 1>&6
8236 done
8242 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8243 echo "configure:8244: checking for isnanf declaration" >&5
8244 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8245 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
8246 echo $ac_n "(cached) $ac_c" 1>&6
8247 else
8250 ac_ext=C
8251 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8252 ac_cpp='$CXXCPP $CPPFLAGS'
8253 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8254 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8255 cross_compiling=$ac_cv_prog_cxx_cross
8257 cat > conftest.$ac_ext <<EOF
8258 #line 8259 "configure"
8259 #include "confdefs.h"
8260 #include <math.h>
8261 #ifdef HAVE_IEEEFP_H
8262 #include <ieeefp.h>
8263 #endif
8265 int main() {
8266 isnanf(0);
8267 ; return 0; }
8269 if { (eval echo configure:8270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8270 rm -rf conftest*
8271 glibcpp_cv_func_isnanf_use=yes
8272 else
8273 echo "configure: failed program was:" >&5
8274 cat conftest.$ac_ext >&5
8275 rm -rf conftest*
8276 glibcpp_cv_func_isnanf_use=no
8278 rm -f conftest*
8279 ac_ext=c
8280 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8281 ac_cpp='$CPP $CPPFLAGS'
8282 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8283 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8284 cross_compiling=$ac_cv_prog_cc_cross
8290 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8292 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8293 for ac_func in isnanf
8295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8296 echo "configure:8297: checking for $ac_func" >&5
8297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8298 echo $ac_n "(cached) $ac_c" 1>&6
8299 else
8300 cat > conftest.$ac_ext <<EOF
8301 #line 8302 "configure"
8302 #include "confdefs.h"
8303 /* System header to define __stub macros and hopefully few prototypes,
8304 which can conflict with char $ac_func(); below. */
8305 #include <assert.h>
8306 /* Override any gcc2 internal prototype to avoid an error. */
8307 /* We use char because int might match the return type of a gcc2
8308 builtin and then its argument prototype would still apply. */
8309 char $ac_func();
8311 int main() {
8313 /* The GNU C library defines this for functions which it implements
8314 to always fail with ENOSYS. Some functions are actually named
8315 something starting with __ and the normal name is an alias. */
8316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8317 choke me
8318 #else
8319 $ac_func();
8320 #endif
8322 ; return 0; }
8324 if { (eval echo configure:8325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8325 rm -rf conftest*
8326 eval "ac_cv_func_$ac_func=yes"
8327 else
8328 echo "configure: failed program was:" >&5
8329 cat conftest.$ac_ext >&5
8330 rm -rf conftest*
8331 eval "ac_cv_func_$ac_func=no"
8333 rm -f conftest*
8336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8337 echo "$ac_t""yes" 1>&6
8338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8339 cat >> confdefs.h <<EOF
8340 #define $ac_tr_func 1
8343 else
8344 echo "$ac_t""no" 1>&6
8346 done
8348 else
8350 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8351 echo "configure:8352: checking for _isnanf declaration" >&5
8352 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8353 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8354 echo $ac_n "(cached) $ac_c" 1>&6
8355 else
8358 ac_ext=C
8359 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8360 ac_cpp='$CXXCPP $CPPFLAGS'
8361 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8362 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8363 cross_compiling=$ac_cv_prog_cxx_cross
8365 cat > conftest.$ac_ext <<EOF
8366 #line 8367 "configure"
8367 #include "confdefs.h"
8368 #include <math.h>
8369 #ifdef HAVE_IEEEFP_H
8370 #include <ieeefp.h>
8371 #endif
8373 int main() {
8374 _isnanf(0);
8375 ; return 0; }
8377 if { (eval echo configure:8378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8378 rm -rf conftest*
8379 glibcpp_cv_func__isnanf_use=yes
8380 else
8381 echo "configure: failed program was:" >&5
8382 cat conftest.$ac_ext >&5
8383 rm -rf conftest*
8384 glibcpp_cv_func__isnanf_use=no
8386 rm -f conftest*
8387 ac_ext=c
8388 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8389 ac_cpp='$CPP $CPPFLAGS'
8390 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8391 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8392 cross_compiling=$ac_cv_prog_cc_cross
8398 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8400 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8401 for ac_func in _isnanf
8403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8404 echo "configure:8405: checking for $ac_func" >&5
8405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8406 echo $ac_n "(cached) $ac_c" 1>&6
8407 else
8408 cat > conftest.$ac_ext <<EOF
8409 #line 8410 "configure"
8410 #include "confdefs.h"
8411 /* System header to define __stub macros and hopefully few prototypes,
8412 which can conflict with char $ac_func(); below. */
8413 #include <assert.h>
8414 /* Override any gcc2 internal prototype to avoid an error. */
8415 /* We use char because int might match the return type of a gcc2
8416 builtin and then its argument prototype would still apply. */
8417 char $ac_func();
8419 int main() {
8421 /* The GNU C library defines this for functions which it implements
8422 to always fail with ENOSYS. Some functions are actually named
8423 something starting with __ and the normal name is an alias. */
8424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8425 choke me
8426 #else
8427 $ac_func();
8428 #endif
8430 ; return 0; }
8432 if { (eval echo configure:8433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8433 rm -rf conftest*
8434 eval "ac_cv_func_$ac_func=yes"
8435 else
8436 echo "configure: failed program was:" >&5
8437 cat conftest.$ac_ext >&5
8438 rm -rf conftest*
8439 eval "ac_cv_func_$ac_func=no"
8441 rm -f conftest*
8444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8445 echo "$ac_t""yes" 1>&6
8446 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8447 cat >> confdefs.h <<EOF
8448 #define $ac_tr_func 1
8451 else
8452 echo "$ac_t""no" 1>&6
8454 done
8461 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8462 echo "configure:8463: checking for isinff declaration" >&5
8463 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8464 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8465 echo $ac_n "(cached) $ac_c" 1>&6
8466 else
8469 ac_ext=C
8470 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8471 ac_cpp='$CXXCPP $CPPFLAGS'
8472 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8473 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8474 cross_compiling=$ac_cv_prog_cxx_cross
8476 cat > conftest.$ac_ext <<EOF
8477 #line 8478 "configure"
8478 #include "confdefs.h"
8479 #include <math.h>
8480 #ifdef HAVE_IEEEFP_H
8481 #include <ieeefp.h>
8482 #endif
8484 int main() {
8485 isinff(0);
8486 ; return 0; }
8488 if { (eval echo configure:8489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8489 rm -rf conftest*
8490 glibcpp_cv_func_isinff_use=yes
8491 else
8492 echo "configure: failed program was:" >&5
8493 cat conftest.$ac_ext >&5
8494 rm -rf conftest*
8495 glibcpp_cv_func_isinff_use=no
8497 rm -f conftest*
8498 ac_ext=c
8499 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8500 ac_cpp='$CPP $CPPFLAGS'
8501 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8502 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8503 cross_compiling=$ac_cv_prog_cc_cross
8509 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8511 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8512 for ac_func in isinff
8514 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8515 echo "configure:8516: checking for $ac_func" >&5
8516 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8517 echo $ac_n "(cached) $ac_c" 1>&6
8518 else
8519 cat > conftest.$ac_ext <<EOF
8520 #line 8521 "configure"
8521 #include "confdefs.h"
8522 /* System header to define __stub macros and hopefully few prototypes,
8523 which can conflict with char $ac_func(); below. */
8524 #include <assert.h>
8525 /* Override any gcc2 internal prototype to avoid an error. */
8526 /* We use char because int might match the return type of a gcc2
8527 builtin and then its argument prototype would still apply. */
8528 char $ac_func();
8530 int main() {
8532 /* The GNU C library defines this for functions which it implements
8533 to always fail with ENOSYS. Some functions are actually named
8534 something starting with __ and the normal name is an alias. */
8535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8536 choke me
8537 #else
8538 $ac_func();
8539 #endif
8541 ; return 0; }
8543 if { (eval echo configure:8544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8544 rm -rf conftest*
8545 eval "ac_cv_func_$ac_func=yes"
8546 else
8547 echo "configure: failed program was:" >&5
8548 cat conftest.$ac_ext >&5
8549 rm -rf conftest*
8550 eval "ac_cv_func_$ac_func=no"
8552 rm -f conftest*
8555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8556 echo "$ac_t""yes" 1>&6
8557 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8558 cat >> confdefs.h <<EOF
8559 #define $ac_tr_func 1
8562 else
8563 echo "$ac_t""no" 1>&6
8565 done
8567 else
8569 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8570 echo "configure:8571: checking for _isinff declaration" >&5
8571 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8572 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8573 echo $ac_n "(cached) $ac_c" 1>&6
8574 else
8577 ac_ext=C
8578 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8579 ac_cpp='$CXXCPP $CPPFLAGS'
8580 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8581 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8582 cross_compiling=$ac_cv_prog_cxx_cross
8584 cat > conftest.$ac_ext <<EOF
8585 #line 8586 "configure"
8586 #include "confdefs.h"
8587 #include <math.h>
8588 #ifdef HAVE_IEEEFP_H
8589 #include <ieeefp.h>
8590 #endif
8592 int main() {
8593 _isinff(0);
8594 ; return 0; }
8596 if { (eval echo configure:8597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8597 rm -rf conftest*
8598 glibcpp_cv_func__isinff_use=yes
8599 else
8600 echo "configure: failed program was:" >&5
8601 cat conftest.$ac_ext >&5
8602 rm -rf conftest*
8603 glibcpp_cv_func__isinff_use=no
8605 rm -f conftest*
8606 ac_ext=c
8607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8608 ac_cpp='$CPP $CPPFLAGS'
8609 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8610 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8611 cross_compiling=$ac_cv_prog_cc_cross
8617 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8619 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8620 for ac_func in _isinff
8622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8623 echo "configure:8624: checking for $ac_func" >&5
8624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8625 echo $ac_n "(cached) $ac_c" 1>&6
8626 else
8627 cat > conftest.$ac_ext <<EOF
8628 #line 8629 "configure"
8629 #include "confdefs.h"
8630 /* System header to define __stub macros and hopefully few prototypes,
8631 which can conflict with char $ac_func(); below. */
8632 #include <assert.h>
8633 /* Override any gcc2 internal prototype to avoid an error. */
8634 /* We use char because int might match the return type of a gcc2
8635 builtin and then its argument prototype would still apply. */
8636 char $ac_func();
8638 int main() {
8640 /* The GNU C library defines this for functions which it implements
8641 to always fail with ENOSYS. Some functions are actually named
8642 something starting with __ and the normal name is an alias. */
8643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8644 choke me
8645 #else
8646 $ac_func();
8647 #endif
8649 ; return 0; }
8651 if { (eval echo configure:8652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8652 rm -rf conftest*
8653 eval "ac_cv_func_$ac_func=yes"
8654 else
8655 echo "configure: failed program was:" >&5
8656 cat conftest.$ac_ext >&5
8657 rm -rf conftest*
8658 eval "ac_cv_func_$ac_func=no"
8660 rm -f conftest*
8663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8664 echo "$ac_t""yes" 1>&6
8665 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8666 cat >> confdefs.h <<EOF
8667 #define $ac_tr_func 1
8670 else
8671 echo "$ac_t""no" 1>&6
8673 done
8680 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
8681 echo "configure:8682: checking for fabsf declaration" >&5
8682 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
8683 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
8684 echo $ac_n "(cached) $ac_c" 1>&6
8685 else
8688 ac_ext=C
8689 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8690 ac_cpp='$CXXCPP $CPPFLAGS'
8691 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8692 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8693 cross_compiling=$ac_cv_prog_cxx_cross
8695 cat > conftest.$ac_ext <<EOF
8696 #line 8697 "configure"
8697 #include "confdefs.h"
8698 #include <math.h>
8699 #ifdef HAVE_IEEEFP_H
8700 #include <ieeefp.h>
8701 #endif
8703 int main() {
8704 fabsf(0);
8705 ; return 0; }
8707 if { (eval echo configure:8708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8708 rm -rf conftest*
8709 glibcpp_cv_func_fabsf_use=yes
8710 else
8711 echo "configure: failed program was:" >&5
8712 cat conftest.$ac_ext >&5
8713 rm -rf conftest*
8714 glibcpp_cv_func_fabsf_use=no
8716 rm -f conftest*
8717 ac_ext=c
8718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8719 ac_cpp='$CPP $CPPFLAGS'
8720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8722 cross_compiling=$ac_cv_prog_cc_cross
8728 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
8730 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
8731 for ac_func in fabsf
8733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8734 echo "configure:8735: checking for $ac_func" >&5
8735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8736 echo $ac_n "(cached) $ac_c" 1>&6
8737 else
8738 cat > conftest.$ac_ext <<EOF
8739 #line 8740 "configure"
8740 #include "confdefs.h"
8741 /* System header to define __stub macros and hopefully few prototypes,
8742 which can conflict with char $ac_func(); below. */
8743 #include <assert.h>
8744 /* Override any gcc2 internal prototype to avoid an error. */
8745 /* We use char because int might match the return type of a gcc2
8746 builtin and then its argument prototype would still apply. */
8747 char $ac_func();
8749 int main() {
8751 /* The GNU C library defines this for functions which it implements
8752 to always fail with ENOSYS. Some functions are actually named
8753 something starting with __ and the normal name is an alias. */
8754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8755 choke me
8756 #else
8757 $ac_func();
8758 #endif
8760 ; return 0; }
8762 if { (eval echo configure:8763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8763 rm -rf conftest*
8764 eval "ac_cv_func_$ac_func=yes"
8765 else
8766 echo "configure: failed program was:" >&5
8767 cat conftest.$ac_ext >&5
8768 rm -rf conftest*
8769 eval "ac_cv_func_$ac_func=no"
8771 rm -f conftest*
8774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8775 echo "$ac_t""yes" 1>&6
8776 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8777 cat >> confdefs.h <<EOF
8778 #define $ac_tr_func 1
8781 else
8782 echo "$ac_t""no" 1>&6
8784 done
8786 else
8788 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
8789 echo "configure:8790: checking for _fabsf declaration" >&5
8790 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
8791 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
8792 echo $ac_n "(cached) $ac_c" 1>&6
8793 else
8796 ac_ext=C
8797 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8798 ac_cpp='$CXXCPP $CPPFLAGS'
8799 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8800 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8801 cross_compiling=$ac_cv_prog_cxx_cross
8803 cat > conftest.$ac_ext <<EOF
8804 #line 8805 "configure"
8805 #include "confdefs.h"
8806 #include <math.h>
8807 #ifdef HAVE_IEEEFP_H
8808 #include <ieeefp.h>
8809 #endif
8811 int main() {
8812 _fabsf(0);
8813 ; return 0; }
8815 if { (eval echo configure:8816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8816 rm -rf conftest*
8817 glibcpp_cv_func__fabsf_use=yes
8818 else
8819 echo "configure: failed program was:" >&5
8820 cat conftest.$ac_ext >&5
8821 rm -rf conftest*
8822 glibcpp_cv_func__fabsf_use=no
8824 rm -f conftest*
8825 ac_ext=c
8826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8827 ac_cpp='$CPP $CPPFLAGS'
8828 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8829 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8830 cross_compiling=$ac_cv_prog_cc_cross
8836 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
8838 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
8839 for ac_func in _fabsf
8841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8842 echo "configure:8843: checking for $ac_func" >&5
8843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8844 echo $ac_n "(cached) $ac_c" 1>&6
8845 else
8846 cat > conftest.$ac_ext <<EOF
8847 #line 8848 "configure"
8848 #include "confdefs.h"
8849 /* System header to define __stub macros and hopefully few prototypes,
8850 which can conflict with char $ac_func(); below. */
8851 #include <assert.h>
8852 /* Override any gcc2 internal prototype to avoid an error. */
8853 /* We use char because int might match the return type of a gcc2
8854 builtin and then its argument prototype would still apply. */
8855 char $ac_func();
8857 int main() {
8859 /* The GNU C library defines this for functions which it implements
8860 to always fail with ENOSYS. Some functions are actually named
8861 something starting with __ and the normal name is an alias. */
8862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8863 choke me
8864 #else
8865 $ac_func();
8866 #endif
8868 ; return 0; }
8870 if { (eval echo configure:8871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8871 rm -rf conftest*
8872 eval "ac_cv_func_$ac_func=yes"
8873 else
8874 echo "configure: failed program was:" >&5
8875 cat conftest.$ac_ext >&5
8876 rm -rf conftest*
8877 eval "ac_cv_func_$ac_func=no"
8879 rm -f conftest*
8882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8883 echo "$ac_t""yes" 1>&6
8884 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8885 cat >> confdefs.h <<EOF
8886 #define $ac_tr_func 1
8889 else
8890 echo "$ac_t""no" 1>&6
8892 done
8899 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
8900 echo "configure:8901: checking for fmodf declaration" >&5
8901 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
8902 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
8903 echo $ac_n "(cached) $ac_c" 1>&6
8904 else
8907 ac_ext=C
8908 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8909 ac_cpp='$CXXCPP $CPPFLAGS'
8910 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8911 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8912 cross_compiling=$ac_cv_prog_cxx_cross
8914 cat > conftest.$ac_ext <<EOF
8915 #line 8916 "configure"
8916 #include "confdefs.h"
8917 #include <math.h>
8918 int main() {
8919 fmodf(0, 0);
8920 ; return 0; }
8922 if { (eval echo configure:8923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8923 rm -rf conftest*
8924 glibcpp_cv_func_fmodf_use=yes
8925 else
8926 echo "configure: failed program was:" >&5
8927 cat conftest.$ac_ext >&5
8928 rm -rf conftest*
8929 glibcpp_cv_func_fmodf_use=no
8931 rm -f conftest*
8932 ac_ext=c
8933 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8934 ac_cpp='$CPP $CPPFLAGS'
8935 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8936 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8937 cross_compiling=$ac_cv_prog_cc_cross
8943 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
8945 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
8946 for ac_func in fmodf
8948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8949 echo "configure:8950: checking for $ac_func" >&5
8950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8951 echo $ac_n "(cached) $ac_c" 1>&6
8952 else
8953 cat > conftest.$ac_ext <<EOF
8954 #line 8955 "configure"
8955 #include "confdefs.h"
8956 /* System header to define __stub macros and hopefully few prototypes,
8957 which can conflict with char $ac_func(); below. */
8958 #include <assert.h>
8959 /* Override any gcc2 internal prototype to avoid an error. */
8960 /* We use char because int might match the return type of a gcc2
8961 builtin and then its argument prototype would still apply. */
8962 char $ac_func();
8964 int main() {
8966 /* The GNU C library defines this for functions which it implements
8967 to always fail with ENOSYS. Some functions are actually named
8968 something starting with __ and the normal name is an alias. */
8969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8970 choke me
8971 #else
8972 $ac_func();
8973 #endif
8975 ; return 0; }
8977 if { (eval echo configure:8978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8978 rm -rf conftest*
8979 eval "ac_cv_func_$ac_func=yes"
8980 else
8981 echo "configure: failed program was:" >&5
8982 cat conftest.$ac_ext >&5
8983 rm -rf conftest*
8984 eval "ac_cv_func_$ac_func=no"
8986 rm -f conftest*
8989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8990 echo "$ac_t""yes" 1>&6
8991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8992 cat >> confdefs.h <<EOF
8993 #define $ac_tr_func 1
8996 else
8997 echo "$ac_t""no" 1>&6
8999 done
9001 else
9003 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
9004 echo "configure:9005: checking for _fmodf declaration" >&5
9005 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
9006 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
9007 echo $ac_n "(cached) $ac_c" 1>&6
9008 else
9011 ac_ext=C
9012 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9013 ac_cpp='$CXXCPP $CPPFLAGS'
9014 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9015 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9016 cross_compiling=$ac_cv_prog_cxx_cross
9018 cat > conftest.$ac_ext <<EOF
9019 #line 9020 "configure"
9020 #include "confdefs.h"
9021 #include <math.h>
9022 int main() {
9023 _fmodf(0, 0);
9024 ; return 0; }
9026 if { (eval echo configure:9027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9027 rm -rf conftest*
9028 glibcpp_cv_func__fmodf_use=yes
9029 else
9030 echo "configure: failed program was:" >&5
9031 cat conftest.$ac_ext >&5
9032 rm -rf conftest*
9033 glibcpp_cv_func__fmodf_use=no
9035 rm -f conftest*
9036 ac_ext=c
9037 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9038 ac_cpp='$CPP $CPPFLAGS'
9039 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9040 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9041 cross_compiling=$ac_cv_prog_cc_cross
9047 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
9049 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
9050 for ac_func in _fmodf
9052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9053 echo "configure:9054: checking for $ac_func" >&5
9054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9055 echo $ac_n "(cached) $ac_c" 1>&6
9056 else
9057 cat > conftest.$ac_ext <<EOF
9058 #line 9059 "configure"
9059 #include "confdefs.h"
9060 /* System header to define __stub macros and hopefully few prototypes,
9061 which can conflict with char $ac_func(); below. */
9062 #include <assert.h>
9063 /* Override any gcc2 internal prototype to avoid an error. */
9064 /* We use char because int might match the return type of a gcc2
9065 builtin and then its argument prototype would still apply. */
9066 char $ac_func();
9068 int main() {
9070 /* The GNU C library defines this for functions which it implements
9071 to always fail with ENOSYS. Some functions are actually named
9072 something starting with __ and the normal name is an alias. */
9073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9074 choke me
9075 #else
9076 $ac_func();
9077 #endif
9079 ; return 0; }
9081 if { (eval echo configure:9082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9082 rm -rf conftest*
9083 eval "ac_cv_func_$ac_func=yes"
9084 else
9085 echo "configure: failed program was:" >&5
9086 cat conftest.$ac_ext >&5
9087 rm -rf conftest*
9088 eval "ac_cv_func_$ac_func=no"
9090 rm -f conftest*
9093 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9094 echo "$ac_t""yes" 1>&6
9095 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9096 cat >> confdefs.h <<EOF
9097 #define $ac_tr_func 1
9100 else
9101 echo "$ac_t""no" 1>&6
9103 done
9110 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
9111 echo "configure:9112: checking for frexpf declaration" >&5
9112 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
9113 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
9114 echo $ac_n "(cached) $ac_c" 1>&6
9115 else
9118 ac_ext=C
9119 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9120 ac_cpp='$CXXCPP $CPPFLAGS'
9121 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9122 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9123 cross_compiling=$ac_cv_prog_cxx_cross
9125 cat > conftest.$ac_ext <<EOF
9126 #line 9127 "configure"
9127 #include "confdefs.h"
9128 #include <math.h>
9129 int main() {
9130 frexpf(0, 0);
9131 ; return 0; }
9133 if { (eval echo configure:9134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9134 rm -rf conftest*
9135 glibcpp_cv_func_frexpf_use=yes
9136 else
9137 echo "configure: failed program was:" >&5
9138 cat conftest.$ac_ext >&5
9139 rm -rf conftest*
9140 glibcpp_cv_func_frexpf_use=no
9142 rm -f conftest*
9143 ac_ext=c
9144 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9145 ac_cpp='$CPP $CPPFLAGS'
9146 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9147 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9148 cross_compiling=$ac_cv_prog_cc_cross
9154 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
9156 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
9157 for ac_func in frexpf
9159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9160 echo "configure:9161: checking for $ac_func" >&5
9161 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9162 echo $ac_n "(cached) $ac_c" 1>&6
9163 else
9164 cat > conftest.$ac_ext <<EOF
9165 #line 9166 "configure"
9166 #include "confdefs.h"
9167 /* System header to define __stub macros and hopefully few prototypes,
9168 which can conflict with char $ac_func(); below. */
9169 #include <assert.h>
9170 /* Override any gcc2 internal prototype to avoid an error. */
9171 /* We use char because int might match the return type of a gcc2
9172 builtin and then its argument prototype would still apply. */
9173 char $ac_func();
9175 int main() {
9177 /* The GNU C library defines this for functions which it implements
9178 to always fail with ENOSYS. Some functions are actually named
9179 something starting with __ and the normal name is an alias. */
9180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9181 choke me
9182 #else
9183 $ac_func();
9184 #endif
9186 ; return 0; }
9188 if { (eval echo configure:9189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9189 rm -rf conftest*
9190 eval "ac_cv_func_$ac_func=yes"
9191 else
9192 echo "configure: failed program was:" >&5
9193 cat conftest.$ac_ext >&5
9194 rm -rf conftest*
9195 eval "ac_cv_func_$ac_func=no"
9197 rm -f conftest*
9200 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9201 echo "$ac_t""yes" 1>&6
9202 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9203 cat >> confdefs.h <<EOF
9204 #define $ac_tr_func 1
9207 else
9208 echo "$ac_t""no" 1>&6
9210 done
9212 else
9214 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9215 echo "configure:9216: checking for _frexpf declaration" >&5
9216 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9217 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9218 echo $ac_n "(cached) $ac_c" 1>&6
9219 else
9222 ac_ext=C
9223 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9224 ac_cpp='$CXXCPP $CPPFLAGS'
9225 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9226 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9227 cross_compiling=$ac_cv_prog_cxx_cross
9229 cat > conftest.$ac_ext <<EOF
9230 #line 9231 "configure"
9231 #include "confdefs.h"
9232 #include <math.h>
9233 int main() {
9234 _frexpf(0, 0);
9235 ; return 0; }
9237 if { (eval echo configure:9238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9238 rm -rf conftest*
9239 glibcpp_cv_func__frexpf_use=yes
9240 else
9241 echo "configure: failed program was:" >&5
9242 cat conftest.$ac_ext >&5
9243 rm -rf conftest*
9244 glibcpp_cv_func__frexpf_use=no
9246 rm -f conftest*
9247 ac_ext=c
9248 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9249 ac_cpp='$CPP $CPPFLAGS'
9250 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9251 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9252 cross_compiling=$ac_cv_prog_cc_cross
9258 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9260 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9261 for ac_func in _frexpf
9263 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9264 echo "configure:9265: checking for $ac_func" >&5
9265 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9266 echo $ac_n "(cached) $ac_c" 1>&6
9267 else
9268 cat > conftest.$ac_ext <<EOF
9269 #line 9270 "configure"
9270 #include "confdefs.h"
9271 /* System header to define __stub macros and hopefully few prototypes,
9272 which can conflict with char $ac_func(); below. */
9273 #include <assert.h>
9274 /* Override any gcc2 internal prototype to avoid an error. */
9275 /* We use char because int might match the return type of a gcc2
9276 builtin and then its argument prototype would still apply. */
9277 char $ac_func();
9279 int main() {
9281 /* The GNU C library defines this for functions which it implements
9282 to always fail with ENOSYS. Some functions are actually named
9283 something starting with __ and the normal name is an alias. */
9284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9285 choke me
9286 #else
9287 $ac_func();
9288 #endif
9290 ; return 0; }
9292 if { (eval echo configure:9293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9293 rm -rf conftest*
9294 eval "ac_cv_func_$ac_func=yes"
9295 else
9296 echo "configure: failed program was:" >&5
9297 cat conftest.$ac_ext >&5
9298 rm -rf conftest*
9299 eval "ac_cv_func_$ac_func=no"
9301 rm -f conftest*
9304 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9305 echo "$ac_t""yes" 1>&6
9306 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9307 cat >> confdefs.h <<EOF
9308 #define $ac_tr_func 1
9311 else
9312 echo "$ac_t""no" 1>&6
9314 done
9321 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
9322 echo "configure:9323: checking for ldexpf declaration" >&5
9323 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
9324 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
9325 echo $ac_n "(cached) $ac_c" 1>&6
9326 else
9329 ac_ext=C
9330 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9331 ac_cpp='$CXXCPP $CPPFLAGS'
9332 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9333 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9334 cross_compiling=$ac_cv_prog_cxx_cross
9336 cat > conftest.$ac_ext <<EOF
9337 #line 9338 "configure"
9338 #include "confdefs.h"
9339 #include <math.h>
9340 int main() {
9341 ldexpf(0, 0);
9342 ; return 0; }
9344 if { (eval echo configure:9345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9345 rm -rf conftest*
9346 glibcpp_cv_func_ldexpf_use=yes
9347 else
9348 echo "configure: failed program was:" >&5
9349 cat conftest.$ac_ext >&5
9350 rm -rf conftest*
9351 glibcpp_cv_func_ldexpf_use=no
9353 rm -f conftest*
9354 ac_ext=c
9355 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9356 ac_cpp='$CPP $CPPFLAGS'
9357 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9358 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9359 cross_compiling=$ac_cv_prog_cc_cross
9365 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
9367 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
9368 for ac_func in ldexpf
9370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9371 echo "configure:9372: checking for $ac_func" >&5
9372 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9373 echo $ac_n "(cached) $ac_c" 1>&6
9374 else
9375 cat > conftest.$ac_ext <<EOF
9376 #line 9377 "configure"
9377 #include "confdefs.h"
9378 /* System header to define __stub macros and hopefully few prototypes,
9379 which can conflict with char $ac_func(); below. */
9380 #include <assert.h>
9381 /* Override any gcc2 internal prototype to avoid an error. */
9382 /* We use char because int might match the return type of a gcc2
9383 builtin and then its argument prototype would still apply. */
9384 char $ac_func();
9386 int main() {
9388 /* The GNU C library defines this for functions which it implements
9389 to always fail with ENOSYS. Some functions are actually named
9390 something starting with __ and the normal name is an alias. */
9391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9392 choke me
9393 #else
9394 $ac_func();
9395 #endif
9397 ; return 0; }
9399 if { (eval echo configure:9400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9400 rm -rf conftest*
9401 eval "ac_cv_func_$ac_func=yes"
9402 else
9403 echo "configure: failed program was:" >&5
9404 cat conftest.$ac_ext >&5
9405 rm -rf conftest*
9406 eval "ac_cv_func_$ac_func=no"
9408 rm -f conftest*
9411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9412 echo "$ac_t""yes" 1>&6
9413 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9414 cat >> confdefs.h <<EOF
9415 #define $ac_tr_func 1
9418 else
9419 echo "$ac_t""no" 1>&6
9421 done
9423 else
9425 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
9426 echo "configure:9427: checking for _ldexpf declaration" >&5
9427 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
9428 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
9429 echo $ac_n "(cached) $ac_c" 1>&6
9430 else
9433 ac_ext=C
9434 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9435 ac_cpp='$CXXCPP $CPPFLAGS'
9436 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9437 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9438 cross_compiling=$ac_cv_prog_cxx_cross
9440 cat > conftest.$ac_ext <<EOF
9441 #line 9442 "configure"
9442 #include "confdefs.h"
9443 #include <math.h>
9444 int main() {
9445 _ldexpf(0, 0);
9446 ; return 0; }
9448 if { (eval echo configure:9449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9449 rm -rf conftest*
9450 glibcpp_cv_func__ldexpf_use=yes
9451 else
9452 echo "configure: failed program was:" >&5
9453 cat conftest.$ac_ext >&5
9454 rm -rf conftest*
9455 glibcpp_cv_func__ldexpf_use=no
9457 rm -f conftest*
9458 ac_ext=c
9459 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9460 ac_cpp='$CPP $CPPFLAGS'
9461 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9462 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9463 cross_compiling=$ac_cv_prog_cc_cross
9469 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
9471 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
9472 for ac_func in _ldexpf
9474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9475 echo "configure:9476: checking for $ac_func" >&5
9476 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9477 echo $ac_n "(cached) $ac_c" 1>&6
9478 else
9479 cat > conftest.$ac_ext <<EOF
9480 #line 9481 "configure"
9481 #include "confdefs.h"
9482 /* System header to define __stub macros and hopefully few prototypes,
9483 which can conflict with char $ac_func(); below. */
9484 #include <assert.h>
9485 /* Override any gcc2 internal prototype to avoid an error. */
9486 /* We use char because int might match the return type of a gcc2
9487 builtin and then its argument prototype would still apply. */
9488 char $ac_func();
9490 int main() {
9492 /* The GNU C library defines this for functions which it implements
9493 to always fail with ENOSYS. Some functions are actually named
9494 something starting with __ and the normal name is an alias. */
9495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9496 choke me
9497 #else
9498 $ac_func();
9499 #endif
9501 ; return 0; }
9503 if { (eval echo configure:9504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9504 rm -rf conftest*
9505 eval "ac_cv_func_$ac_func=yes"
9506 else
9507 echo "configure: failed program was:" >&5
9508 cat conftest.$ac_ext >&5
9509 rm -rf conftest*
9510 eval "ac_cv_func_$ac_func=no"
9512 rm -f conftest*
9515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9516 echo "$ac_t""yes" 1>&6
9517 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9518 cat >> confdefs.h <<EOF
9519 #define $ac_tr_func 1
9522 else
9523 echo "$ac_t""no" 1>&6
9525 done
9532 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
9533 echo "configure:9534: checking for logf declaration" >&5
9534 if test x${glibcpp_cv_func_logf_use+set} != xset; then
9535 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
9536 echo $ac_n "(cached) $ac_c" 1>&6
9537 else
9540 ac_ext=C
9541 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9542 ac_cpp='$CXXCPP $CPPFLAGS'
9543 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9544 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9545 cross_compiling=$ac_cv_prog_cxx_cross
9547 cat > conftest.$ac_ext <<EOF
9548 #line 9549 "configure"
9549 #include "confdefs.h"
9550 #include <math.h>
9551 #ifdef HAVE_IEEEFP_H
9552 #include <ieeefp.h>
9553 #endif
9555 int main() {
9556 logf(0);
9557 ; return 0; }
9559 if { (eval echo configure:9560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9560 rm -rf conftest*
9561 glibcpp_cv_func_logf_use=yes
9562 else
9563 echo "configure: failed program was:" >&5
9564 cat conftest.$ac_ext >&5
9565 rm -rf conftest*
9566 glibcpp_cv_func_logf_use=no
9568 rm -f conftest*
9569 ac_ext=c
9570 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9571 ac_cpp='$CPP $CPPFLAGS'
9572 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9573 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9574 cross_compiling=$ac_cv_prog_cc_cross
9580 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
9582 if test x$glibcpp_cv_func_logf_use = x"yes"; then
9583 for ac_func in logf
9585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9586 echo "configure:9587: checking for $ac_func" >&5
9587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9588 echo $ac_n "(cached) $ac_c" 1>&6
9589 else
9590 cat > conftest.$ac_ext <<EOF
9591 #line 9592 "configure"
9592 #include "confdefs.h"
9593 /* System header to define __stub macros and hopefully few prototypes,
9594 which can conflict with char $ac_func(); below. */
9595 #include <assert.h>
9596 /* Override any gcc2 internal prototype to avoid an error. */
9597 /* We use char because int might match the return type of a gcc2
9598 builtin and then its argument prototype would still apply. */
9599 char $ac_func();
9601 int main() {
9603 /* The GNU C library defines this for functions which it implements
9604 to always fail with ENOSYS. Some functions are actually named
9605 something starting with __ and the normal name is an alias. */
9606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9607 choke me
9608 #else
9609 $ac_func();
9610 #endif
9612 ; return 0; }
9614 if { (eval echo configure:9615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9615 rm -rf conftest*
9616 eval "ac_cv_func_$ac_func=yes"
9617 else
9618 echo "configure: failed program was:" >&5
9619 cat conftest.$ac_ext >&5
9620 rm -rf conftest*
9621 eval "ac_cv_func_$ac_func=no"
9623 rm -f conftest*
9626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9627 echo "$ac_t""yes" 1>&6
9628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9629 cat >> confdefs.h <<EOF
9630 #define $ac_tr_func 1
9633 else
9634 echo "$ac_t""no" 1>&6
9636 done
9638 else
9640 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
9641 echo "configure:9642: checking for _logf declaration" >&5
9642 if test x${glibcpp_cv_func__logf_use+set} != xset; then
9643 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
9644 echo $ac_n "(cached) $ac_c" 1>&6
9645 else
9648 ac_ext=C
9649 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9650 ac_cpp='$CXXCPP $CPPFLAGS'
9651 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9652 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9653 cross_compiling=$ac_cv_prog_cxx_cross
9655 cat > conftest.$ac_ext <<EOF
9656 #line 9657 "configure"
9657 #include "confdefs.h"
9658 #include <math.h>
9659 #ifdef HAVE_IEEEFP_H
9660 #include <ieeefp.h>
9661 #endif
9663 int main() {
9664 _logf(0);
9665 ; return 0; }
9667 if { (eval echo configure:9668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9668 rm -rf conftest*
9669 glibcpp_cv_func__logf_use=yes
9670 else
9671 echo "configure: failed program was:" >&5
9672 cat conftest.$ac_ext >&5
9673 rm -rf conftest*
9674 glibcpp_cv_func__logf_use=no
9676 rm -f conftest*
9677 ac_ext=c
9678 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9679 ac_cpp='$CPP $CPPFLAGS'
9680 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9681 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9682 cross_compiling=$ac_cv_prog_cc_cross
9688 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
9690 if test x$glibcpp_cv_func__logf_use = x"yes"; then
9691 for ac_func in _logf
9693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9694 echo "configure:9695: checking for $ac_func" >&5
9695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9696 echo $ac_n "(cached) $ac_c" 1>&6
9697 else
9698 cat > conftest.$ac_ext <<EOF
9699 #line 9700 "configure"
9700 #include "confdefs.h"
9701 /* System header to define __stub macros and hopefully few prototypes,
9702 which can conflict with char $ac_func(); below. */
9703 #include <assert.h>
9704 /* Override any gcc2 internal prototype to avoid an error. */
9705 /* We use char because int might match the return type of a gcc2
9706 builtin and then its argument prototype would still apply. */
9707 char $ac_func();
9709 int main() {
9711 /* The GNU C library defines this for functions which it implements
9712 to always fail with ENOSYS. Some functions are actually named
9713 something starting with __ and the normal name is an alias. */
9714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9715 choke me
9716 #else
9717 $ac_func();
9718 #endif
9720 ; return 0; }
9722 if { (eval echo configure:9723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9723 rm -rf conftest*
9724 eval "ac_cv_func_$ac_func=yes"
9725 else
9726 echo "configure: failed program was:" >&5
9727 cat conftest.$ac_ext >&5
9728 rm -rf conftest*
9729 eval "ac_cv_func_$ac_func=no"
9731 rm -f conftest*
9734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9735 echo "$ac_t""yes" 1>&6
9736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9737 cat >> confdefs.h <<EOF
9738 #define $ac_tr_func 1
9741 else
9742 echo "$ac_t""no" 1>&6
9744 done
9751 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
9752 echo "configure:9753: checking for log10f declaration" >&5
9753 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
9754 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
9755 echo $ac_n "(cached) $ac_c" 1>&6
9756 else
9759 ac_ext=C
9760 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9761 ac_cpp='$CXXCPP $CPPFLAGS'
9762 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9763 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9764 cross_compiling=$ac_cv_prog_cxx_cross
9766 cat > conftest.$ac_ext <<EOF
9767 #line 9768 "configure"
9768 #include "confdefs.h"
9769 #include <math.h>
9770 #ifdef HAVE_IEEEFP_H
9771 #include <ieeefp.h>
9772 #endif
9774 int main() {
9775 log10f(0);
9776 ; return 0; }
9778 if { (eval echo configure:9779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9779 rm -rf conftest*
9780 glibcpp_cv_func_log10f_use=yes
9781 else
9782 echo "configure: failed program was:" >&5
9783 cat conftest.$ac_ext >&5
9784 rm -rf conftest*
9785 glibcpp_cv_func_log10f_use=no
9787 rm -f conftest*
9788 ac_ext=c
9789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9790 ac_cpp='$CPP $CPPFLAGS'
9791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9793 cross_compiling=$ac_cv_prog_cc_cross
9799 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
9801 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
9802 for ac_func in log10f
9804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9805 echo "configure:9806: checking for $ac_func" >&5
9806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9807 echo $ac_n "(cached) $ac_c" 1>&6
9808 else
9809 cat > conftest.$ac_ext <<EOF
9810 #line 9811 "configure"
9811 #include "confdefs.h"
9812 /* System header to define __stub macros and hopefully few prototypes,
9813 which can conflict with char $ac_func(); below. */
9814 #include <assert.h>
9815 /* Override any gcc2 internal prototype to avoid an error. */
9816 /* We use char because int might match the return type of a gcc2
9817 builtin and then its argument prototype would still apply. */
9818 char $ac_func();
9820 int main() {
9822 /* The GNU C library defines this for functions which it implements
9823 to always fail with ENOSYS. Some functions are actually named
9824 something starting with __ and the normal name is an alias. */
9825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9826 choke me
9827 #else
9828 $ac_func();
9829 #endif
9831 ; return 0; }
9833 if { (eval echo configure:9834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9834 rm -rf conftest*
9835 eval "ac_cv_func_$ac_func=yes"
9836 else
9837 echo "configure: failed program was:" >&5
9838 cat conftest.$ac_ext >&5
9839 rm -rf conftest*
9840 eval "ac_cv_func_$ac_func=no"
9842 rm -f conftest*
9845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9846 echo "$ac_t""yes" 1>&6
9847 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9848 cat >> confdefs.h <<EOF
9849 #define $ac_tr_func 1
9852 else
9853 echo "$ac_t""no" 1>&6
9855 done
9857 else
9859 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
9860 echo "configure:9861: checking for _log10f declaration" >&5
9861 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
9862 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
9863 echo $ac_n "(cached) $ac_c" 1>&6
9864 else
9867 ac_ext=C
9868 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9869 ac_cpp='$CXXCPP $CPPFLAGS'
9870 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9871 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9872 cross_compiling=$ac_cv_prog_cxx_cross
9874 cat > conftest.$ac_ext <<EOF
9875 #line 9876 "configure"
9876 #include "confdefs.h"
9877 #include <math.h>
9878 #ifdef HAVE_IEEEFP_H
9879 #include <ieeefp.h>
9880 #endif
9882 int main() {
9883 _log10f(0);
9884 ; return 0; }
9886 if { (eval echo configure:9887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9887 rm -rf conftest*
9888 glibcpp_cv_func__log10f_use=yes
9889 else
9890 echo "configure: failed program was:" >&5
9891 cat conftest.$ac_ext >&5
9892 rm -rf conftest*
9893 glibcpp_cv_func__log10f_use=no
9895 rm -f conftest*
9896 ac_ext=c
9897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9898 ac_cpp='$CPP $CPPFLAGS'
9899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9901 cross_compiling=$ac_cv_prog_cc_cross
9907 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
9909 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
9910 for ac_func in _log10f
9912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9913 echo "configure:9914: checking for $ac_func" >&5
9914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9915 echo $ac_n "(cached) $ac_c" 1>&6
9916 else
9917 cat > conftest.$ac_ext <<EOF
9918 #line 9919 "configure"
9919 #include "confdefs.h"
9920 /* System header to define __stub macros and hopefully few prototypes,
9921 which can conflict with char $ac_func(); below. */
9922 #include <assert.h>
9923 /* Override any gcc2 internal prototype to avoid an error. */
9924 /* We use char because int might match the return type of a gcc2
9925 builtin and then its argument prototype would still apply. */
9926 char $ac_func();
9928 int main() {
9930 /* The GNU C library defines this for functions which it implements
9931 to always fail with ENOSYS. Some functions are actually named
9932 something starting with __ and the normal name is an alias. */
9933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9934 choke me
9935 #else
9936 $ac_func();
9937 #endif
9939 ; return 0; }
9941 if { (eval echo configure:9942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9942 rm -rf conftest*
9943 eval "ac_cv_func_$ac_func=yes"
9944 else
9945 echo "configure: failed program was:" >&5
9946 cat conftest.$ac_ext >&5
9947 rm -rf conftest*
9948 eval "ac_cv_func_$ac_func=no"
9950 rm -f conftest*
9953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9954 echo "$ac_t""yes" 1>&6
9955 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9956 cat >> confdefs.h <<EOF
9957 #define $ac_tr_func 1
9960 else
9961 echo "$ac_t""no" 1>&6
9963 done
9970 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
9971 echo "configure:9972: checking for modff declaration" >&5
9972 if test x${glibcpp_cv_func_modff_use+set} != xset; then
9973 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
9974 echo $ac_n "(cached) $ac_c" 1>&6
9975 else
9978 ac_ext=C
9979 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9980 ac_cpp='$CXXCPP $CPPFLAGS'
9981 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9982 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9983 cross_compiling=$ac_cv_prog_cxx_cross
9985 cat > conftest.$ac_ext <<EOF
9986 #line 9987 "configure"
9987 #include "confdefs.h"
9988 #include <math.h>
9989 int main() {
9990 modff(0, 0);
9991 ; return 0; }
9993 if { (eval echo configure:9994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9994 rm -rf conftest*
9995 glibcpp_cv_func_modff_use=yes
9996 else
9997 echo "configure: failed program was:" >&5
9998 cat conftest.$ac_ext >&5
9999 rm -rf conftest*
10000 glibcpp_cv_func_modff_use=no
10002 rm -f conftest*
10003 ac_ext=c
10004 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10005 ac_cpp='$CPP $CPPFLAGS'
10006 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10007 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10008 cross_compiling=$ac_cv_prog_cc_cross
10014 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
10016 if test x$glibcpp_cv_func_modff_use = x"yes"; then
10017 for ac_func in modff
10019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10020 echo "configure:10021: checking for $ac_func" >&5
10021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10022 echo $ac_n "(cached) $ac_c" 1>&6
10023 else
10024 cat > conftest.$ac_ext <<EOF
10025 #line 10026 "configure"
10026 #include "confdefs.h"
10027 /* System header to define __stub macros and hopefully few prototypes,
10028 which can conflict with char $ac_func(); below. */
10029 #include <assert.h>
10030 /* Override any gcc2 internal prototype to avoid an error. */
10031 /* We use char because int might match the return type of a gcc2
10032 builtin and then its argument prototype would still apply. */
10033 char $ac_func();
10035 int main() {
10037 /* The GNU C library defines this for functions which it implements
10038 to always fail with ENOSYS. Some functions are actually named
10039 something starting with __ and the normal name is an alias. */
10040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10041 choke me
10042 #else
10043 $ac_func();
10044 #endif
10046 ; return 0; }
10048 if { (eval echo configure:10049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10049 rm -rf conftest*
10050 eval "ac_cv_func_$ac_func=yes"
10051 else
10052 echo "configure: failed program was:" >&5
10053 cat conftest.$ac_ext >&5
10054 rm -rf conftest*
10055 eval "ac_cv_func_$ac_func=no"
10057 rm -f conftest*
10060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10061 echo "$ac_t""yes" 1>&6
10062 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10063 cat >> confdefs.h <<EOF
10064 #define $ac_tr_func 1
10067 else
10068 echo "$ac_t""no" 1>&6
10070 done
10072 else
10074 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
10075 echo "configure:10076: checking for _modff declaration" >&5
10076 if test x${glibcpp_cv_func__modff_use+set} != xset; then
10077 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
10078 echo $ac_n "(cached) $ac_c" 1>&6
10079 else
10082 ac_ext=C
10083 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10084 ac_cpp='$CXXCPP $CPPFLAGS'
10085 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10086 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10087 cross_compiling=$ac_cv_prog_cxx_cross
10089 cat > conftest.$ac_ext <<EOF
10090 #line 10091 "configure"
10091 #include "confdefs.h"
10092 #include <math.h>
10093 int main() {
10094 _modff(0, 0);
10095 ; return 0; }
10097 if { (eval echo configure:10098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10098 rm -rf conftest*
10099 glibcpp_cv_func__modff_use=yes
10100 else
10101 echo "configure: failed program was:" >&5
10102 cat conftest.$ac_ext >&5
10103 rm -rf conftest*
10104 glibcpp_cv_func__modff_use=no
10106 rm -f conftest*
10107 ac_ext=c
10108 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10109 ac_cpp='$CPP $CPPFLAGS'
10110 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10111 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10112 cross_compiling=$ac_cv_prog_cc_cross
10118 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
10120 if test x$glibcpp_cv_func__modff_use = x"yes"; then
10121 for ac_func in _modff
10123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10124 echo "configure:10125: checking for $ac_func" >&5
10125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10126 echo $ac_n "(cached) $ac_c" 1>&6
10127 else
10128 cat > conftest.$ac_ext <<EOF
10129 #line 10130 "configure"
10130 #include "confdefs.h"
10131 /* System header to define __stub macros and hopefully few prototypes,
10132 which can conflict with char $ac_func(); below. */
10133 #include <assert.h>
10134 /* Override any gcc2 internal prototype to avoid an error. */
10135 /* We use char because int might match the return type of a gcc2
10136 builtin and then its argument prototype would still apply. */
10137 char $ac_func();
10139 int main() {
10141 /* The GNU C library defines this for functions which it implements
10142 to always fail with ENOSYS. Some functions are actually named
10143 something starting with __ and the normal name is an alias. */
10144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10145 choke me
10146 #else
10147 $ac_func();
10148 #endif
10150 ; return 0; }
10152 if { (eval echo configure:10153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10153 rm -rf conftest*
10154 eval "ac_cv_func_$ac_func=yes"
10155 else
10156 echo "configure: failed program was:" >&5
10157 cat conftest.$ac_ext >&5
10158 rm -rf conftest*
10159 eval "ac_cv_func_$ac_func=no"
10161 rm -f conftest*
10164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10165 echo "$ac_t""yes" 1>&6
10166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10167 cat >> confdefs.h <<EOF
10168 #define $ac_tr_func 1
10171 else
10172 echo "$ac_t""no" 1>&6
10174 done
10181 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10182 echo "configure:10183: checking for powf declaration" >&5
10183 if test x${glibcpp_cv_func_powf_use+set} != xset; then
10184 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10185 echo $ac_n "(cached) $ac_c" 1>&6
10186 else
10189 ac_ext=C
10190 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10191 ac_cpp='$CXXCPP $CPPFLAGS'
10192 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10193 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10194 cross_compiling=$ac_cv_prog_cxx_cross
10196 cat > conftest.$ac_ext <<EOF
10197 #line 10198 "configure"
10198 #include "confdefs.h"
10199 #include <math.h>
10200 int main() {
10201 powf(0, 0);
10202 ; return 0; }
10204 if { (eval echo configure:10205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10205 rm -rf conftest*
10206 glibcpp_cv_func_powf_use=yes
10207 else
10208 echo "configure: failed program was:" >&5
10209 cat conftest.$ac_ext >&5
10210 rm -rf conftest*
10211 glibcpp_cv_func_powf_use=no
10213 rm -f conftest*
10214 ac_ext=c
10215 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10216 ac_cpp='$CPP $CPPFLAGS'
10217 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10218 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10219 cross_compiling=$ac_cv_prog_cc_cross
10225 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10227 if test x$glibcpp_cv_func_powf_use = x"yes"; then
10228 for ac_func in powf
10230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10231 echo "configure:10232: checking for $ac_func" >&5
10232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10233 echo $ac_n "(cached) $ac_c" 1>&6
10234 else
10235 cat > conftest.$ac_ext <<EOF
10236 #line 10237 "configure"
10237 #include "confdefs.h"
10238 /* System header to define __stub macros and hopefully few prototypes,
10239 which can conflict with char $ac_func(); below. */
10240 #include <assert.h>
10241 /* Override any gcc2 internal prototype to avoid an error. */
10242 /* We use char because int might match the return type of a gcc2
10243 builtin and then its argument prototype would still apply. */
10244 char $ac_func();
10246 int main() {
10248 /* The GNU C library defines this for functions which it implements
10249 to always fail with ENOSYS. Some functions are actually named
10250 something starting with __ and the normal name is an alias. */
10251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10252 choke me
10253 #else
10254 $ac_func();
10255 #endif
10257 ; return 0; }
10259 if { (eval echo configure:10260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10260 rm -rf conftest*
10261 eval "ac_cv_func_$ac_func=yes"
10262 else
10263 echo "configure: failed program was:" >&5
10264 cat conftest.$ac_ext >&5
10265 rm -rf conftest*
10266 eval "ac_cv_func_$ac_func=no"
10268 rm -f conftest*
10271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10272 echo "$ac_t""yes" 1>&6
10273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10274 cat >> confdefs.h <<EOF
10275 #define $ac_tr_func 1
10278 else
10279 echo "$ac_t""no" 1>&6
10281 done
10283 else
10285 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10286 echo "configure:10287: checking for _powf declaration" >&5
10287 if test x${glibcpp_cv_func__powf_use+set} != xset; then
10288 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10289 echo $ac_n "(cached) $ac_c" 1>&6
10290 else
10293 ac_ext=C
10294 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10295 ac_cpp='$CXXCPP $CPPFLAGS'
10296 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10297 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10298 cross_compiling=$ac_cv_prog_cxx_cross
10300 cat > conftest.$ac_ext <<EOF
10301 #line 10302 "configure"
10302 #include "confdefs.h"
10303 #include <math.h>
10304 int main() {
10305 _powf(0, 0);
10306 ; return 0; }
10308 if { (eval echo configure:10309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10309 rm -rf conftest*
10310 glibcpp_cv_func__powf_use=yes
10311 else
10312 echo "configure: failed program was:" >&5
10313 cat conftest.$ac_ext >&5
10314 rm -rf conftest*
10315 glibcpp_cv_func__powf_use=no
10317 rm -f conftest*
10318 ac_ext=c
10319 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10320 ac_cpp='$CPP $CPPFLAGS'
10321 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10322 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10323 cross_compiling=$ac_cv_prog_cc_cross
10329 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
10331 if test x$glibcpp_cv_func__powf_use = x"yes"; then
10332 for ac_func in _powf
10334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10335 echo "configure:10336: checking for $ac_func" >&5
10336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10337 echo $ac_n "(cached) $ac_c" 1>&6
10338 else
10339 cat > conftest.$ac_ext <<EOF
10340 #line 10341 "configure"
10341 #include "confdefs.h"
10342 /* System header to define __stub macros and hopefully few prototypes,
10343 which can conflict with char $ac_func(); below. */
10344 #include <assert.h>
10345 /* Override any gcc2 internal prototype to avoid an error. */
10346 /* We use char because int might match the return type of a gcc2
10347 builtin and then its argument prototype would still apply. */
10348 char $ac_func();
10350 int main() {
10352 /* The GNU C library defines this for functions which it implements
10353 to always fail with ENOSYS. Some functions are actually named
10354 something starting with __ and the normal name is an alias. */
10355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10356 choke me
10357 #else
10358 $ac_func();
10359 #endif
10361 ; return 0; }
10363 if { (eval echo configure:10364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10364 rm -rf conftest*
10365 eval "ac_cv_func_$ac_func=yes"
10366 else
10367 echo "configure: failed program was:" >&5
10368 cat conftest.$ac_ext >&5
10369 rm -rf conftest*
10370 eval "ac_cv_func_$ac_func=no"
10372 rm -f conftest*
10375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10376 echo "$ac_t""yes" 1>&6
10377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10378 cat >> confdefs.h <<EOF
10379 #define $ac_tr_func 1
10382 else
10383 echo "$ac_t""no" 1>&6
10385 done
10392 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
10393 echo "configure:10394: checking for sqrtf declaration" >&5
10394 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
10395 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
10396 echo $ac_n "(cached) $ac_c" 1>&6
10397 else
10400 ac_ext=C
10401 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10402 ac_cpp='$CXXCPP $CPPFLAGS'
10403 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10404 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10405 cross_compiling=$ac_cv_prog_cxx_cross
10407 cat > conftest.$ac_ext <<EOF
10408 #line 10409 "configure"
10409 #include "confdefs.h"
10410 #include <math.h>
10411 #ifdef HAVE_IEEEFP_H
10412 #include <ieeefp.h>
10413 #endif
10415 int main() {
10416 sqrtf(0);
10417 ; return 0; }
10419 if { (eval echo configure:10420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10420 rm -rf conftest*
10421 glibcpp_cv_func_sqrtf_use=yes
10422 else
10423 echo "configure: failed program was:" >&5
10424 cat conftest.$ac_ext >&5
10425 rm -rf conftest*
10426 glibcpp_cv_func_sqrtf_use=no
10428 rm -f conftest*
10429 ac_ext=c
10430 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10431 ac_cpp='$CPP $CPPFLAGS'
10432 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10433 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10434 cross_compiling=$ac_cv_prog_cc_cross
10440 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
10442 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
10443 for ac_func in sqrtf
10445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10446 echo "configure:10447: checking for $ac_func" >&5
10447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10448 echo $ac_n "(cached) $ac_c" 1>&6
10449 else
10450 cat > conftest.$ac_ext <<EOF
10451 #line 10452 "configure"
10452 #include "confdefs.h"
10453 /* System header to define __stub macros and hopefully few prototypes,
10454 which can conflict with char $ac_func(); below. */
10455 #include <assert.h>
10456 /* Override any gcc2 internal prototype to avoid an error. */
10457 /* We use char because int might match the return type of a gcc2
10458 builtin and then its argument prototype would still apply. */
10459 char $ac_func();
10461 int main() {
10463 /* The GNU C library defines this for functions which it implements
10464 to always fail with ENOSYS. Some functions are actually named
10465 something starting with __ and the normal name is an alias. */
10466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10467 choke me
10468 #else
10469 $ac_func();
10470 #endif
10472 ; return 0; }
10474 if { (eval echo configure:10475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10475 rm -rf conftest*
10476 eval "ac_cv_func_$ac_func=yes"
10477 else
10478 echo "configure: failed program was:" >&5
10479 cat conftest.$ac_ext >&5
10480 rm -rf conftest*
10481 eval "ac_cv_func_$ac_func=no"
10483 rm -f conftest*
10486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10487 echo "$ac_t""yes" 1>&6
10488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10489 cat >> confdefs.h <<EOF
10490 #define $ac_tr_func 1
10493 else
10494 echo "$ac_t""no" 1>&6
10496 done
10498 else
10500 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
10501 echo "configure:10502: checking for _sqrtf declaration" >&5
10502 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
10503 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
10504 echo $ac_n "(cached) $ac_c" 1>&6
10505 else
10508 ac_ext=C
10509 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10510 ac_cpp='$CXXCPP $CPPFLAGS'
10511 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10512 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10513 cross_compiling=$ac_cv_prog_cxx_cross
10515 cat > conftest.$ac_ext <<EOF
10516 #line 10517 "configure"
10517 #include "confdefs.h"
10518 #include <math.h>
10519 #ifdef HAVE_IEEEFP_H
10520 #include <ieeefp.h>
10521 #endif
10523 int main() {
10524 _sqrtf(0);
10525 ; return 0; }
10527 if { (eval echo configure:10528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10528 rm -rf conftest*
10529 glibcpp_cv_func__sqrtf_use=yes
10530 else
10531 echo "configure: failed program was:" >&5
10532 cat conftest.$ac_ext >&5
10533 rm -rf conftest*
10534 glibcpp_cv_func__sqrtf_use=no
10536 rm -f conftest*
10537 ac_ext=c
10538 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10539 ac_cpp='$CPP $CPPFLAGS'
10540 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10541 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10542 cross_compiling=$ac_cv_prog_cc_cross
10548 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
10550 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
10551 for ac_func in _sqrtf
10553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10554 echo "configure:10555: checking for $ac_func" >&5
10555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10556 echo $ac_n "(cached) $ac_c" 1>&6
10557 else
10558 cat > conftest.$ac_ext <<EOF
10559 #line 10560 "configure"
10560 #include "confdefs.h"
10561 /* System header to define __stub macros and hopefully few prototypes,
10562 which can conflict with char $ac_func(); below. */
10563 #include <assert.h>
10564 /* Override any gcc2 internal prototype to avoid an error. */
10565 /* We use char because int might match the return type of a gcc2
10566 builtin and then its argument prototype would still apply. */
10567 char $ac_func();
10569 int main() {
10571 /* The GNU C library defines this for functions which it implements
10572 to always fail with ENOSYS. Some functions are actually named
10573 something starting with __ and the normal name is an alias. */
10574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10575 choke me
10576 #else
10577 $ac_func();
10578 #endif
10580 ; return 0; }
10582 if { (eval echo configure:10583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10583 rm -rf conftest*
10584 eval "ac_cv_func_$ac_func=yes"
10585 else
10586 echo "configure: failed program was:" >&5
10587 cat conftest.$ac_ext >&5
10588 rm -rf conftest*
10589 eval "ac_cv_func_$ac_func=no"
10591 rm -f conftest*
10594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10595 echo "$ac_t""yes" 1>&6
10596 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10597 cat >> confdefs.h <<EOF
10598 #define $ac_tr_func 1
10601 else
10602 echo "$ac_t""no" 1>&6
10604 done
10611 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
10612 echo "configure:10613: checking for sincosf declaration" >&5
10613 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
10614 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
10615 echo $ac_n "(cached) $ac_c" 1>&6
10616 else
10619 ac_ext=C
10620 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10621 ac_cpp='$CXXCPP $CPPFLAGS'
10622 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10623 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10624 cross_compiling=$ac_cv_prog_cxx_cross
10626 cat > conftest.$ac_ext <<EOF
10627 #line 10628 "configure"
10628 #include "confdefs.h"
10629 #include <math.h>
10630 int main() {
10631 sincosf(0, 0, 0);
10632 ; return 0; }
10634 if { (eval echo configure:10635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10635 rm -rf conftest*
10636 glibcpp_cv_func_sincosf_use=yes
10637 else
10638 echo "configure: failed program was:" >&5
10639 cat conftest.$ac_ext >&5
10640 rm -rf conftest*
10641 glibcpp_cv_func_sincosf_use=no
10643 rm -f conftest*
10644 ac_ext=c
10645 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10646 ac_cpp='$CPP $CPPFLAGS'
10647 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10648 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10649 cross_compiling=$ac_cv_prog_cc_cross
10655 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
10657 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
10658 for ac_func in sincosf
10660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10661 echo "configure:10662: checking for $ac_func" >&5
10662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10663 echo $ac_n "(cached) $ac_c" 1>&6
10664 else
10665 cat > conftest.$ac_ext <<EOF
10666 #line 10667 "configure"
10667 #include "confdefs.h"
10668 /* System header to define __stub macros and hopefully few prototypes,
10669 which can conflict with char $ac_func(); below. */
10670 #include <assert.h>
10671 /* Override any gcc2 internal prototype to avoid an error. */
10672 /* We use char because int might match the return type of a gcc2
10673 builtin and then its argument prototype would still apply. */
10674 char $ac_func();
10676 int main() {
10678 /* The GNU C library defines this for functions which it implements
10679 to always fail with ENOSYS. Some functions are actually named
10680 something starting with __ and the normal name is an alias. */
10681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10682 choke me
10683 #else
10684 $ac_func();
10685 #endif
10687 ; return 0; }
10689 if { (eval echo configure:10690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10690 rm -rf conftest*
10691 eval "ac_cv_func_$ac_func=yes"
10692 else
10693 echo "configure: failed program was:" >&5
10694 cat conftest.$ac_ext >&5
10695 rm -rf conftest*
10696 eval "ac_cv_func_$ac_func=no"
10698 rm -f conftest*
10701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10702 echo "$ac_t""yes" 1>&6
10703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10704 cat >> confdefs.h <<EOF
10705 #define $ac_tr_func 1
10708 else
10709 echo "$ac_t""no" 1>&6
10711 done
10713 else
10715 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
10716 echo "configure:10717: checking for _sincosf declaration" >&5
10717 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
10718 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
10719 echo $ac_n "(cached) $ac_c" 1>&6
10720 else
10723 ac_ext=C
10724 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10725 ac_cpp='$CXXCPP $CPPFLAGS'
10726 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10727 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10728 cross_compiling=$ac_cv_prog_cxx_cross
10730 cat > conftest.$ac_ext <<EOF
10731 #line 10732 "configure"
10732 #include "confdefs.h"
10733 #include <math.h>
10734 int main() {
10735 _sincosf(0, 0, 0);
10736 ; return 0; }
10738 if { (eval echo configure:10739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10739 rm -rf conftest*
10740 glibcpp_cv_func__sincosf_use=yes
10741 else
10742 echo "configure: failed program was:" >&5
10743 cat conftest.$ac_ext >&5
10744 rm -rf conftest*
10745 glibcpp_cv_func__sincosf_use=no
10747 rm -f conftest*
10748 ac_ext=c
10749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10750 ac_cpp='$CPP $CPPFLAGS'
10751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10752 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10753 cross_compiling=$ac_cv_prog_cc_cross
10759 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
10761 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
10762 for ac_func in _sincosf
10764 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10765 echo "configure:10766: checking for $ac_func" >&5
10766 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10767 echo $ac_n "(cached) $ac_c" 1>&6
10768 else
10769 cat > conftest.$ac_ext <<EOF
10770 #line 10771 "configure"
10771 #include "confdefs.h"
10772 /* System header to define __stub macros and hopefully few prototypes,
10773 which can conflict with char $ac_func(); below. */
10774 #include <assert.h>
10775 /* Override any gcc2 internal prototype to avoid an error. */
10776 /* We use char because int might match the return type of a gcc2
10777 builtin and then its argument prototype would still apply. */
10778 char $ac_func();
10780 int main() {
10782 /* The GNU C library defines this for functions which it implements
10783 to always fail with ENOSYS. Some functions are actually named
10784 something starting with __ and the normal name is an alias. */
10785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10786 choke me
10787 #else
10788 $ac_func();
10789 #endif
10791 ; return 0; }
10793 if { (eval echo configure:10794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10794 rm -rf conftest*
10795 eval "ac_cv_func_$ac_func=yes"
10796 else
10797 echo "configure: failed program was:" >&5
10798 cat conftest.$ac_ext >&5
10799 rm -rf conftest*
10800 eval "ac_cv_func_$ac_func=no"
10802 rm -f conftest*
10805 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10806 echo "$ac_t""yes" 1>&6
10807 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10808 cat >> confdefs.h <<EOF
10809 #define $ac_tr_func 1
10812 else
10813 echo "$ac_t""no" 1>&6
10815 done
10822 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
10823 echo "configure:10824: checking for finitef declaration" >&5
10824 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
10825 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
10826 echo $ac_n "(cached) $ac_c" 1>&6
10827 else
10830 ac_ext=C
10831 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10832 ac_cpp='$CXXCPP $CPPFLAGS'
10833 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10834 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10835 cross_compiling=$ac_cv_prog_cxx_cross
10837 cat > conftest.$ac_ext <<EOF
10838 #line 10839 "configure"
10839 #include "confdefs.h"
10840 #include <math.h>
10841 #ifdef HAVE_IEEEFP_H
10842 #include <ieeefp.h>
10843 #endif
10845 int main() {
10846 finitef(0);
10847 ; return 0; }
10849 if { (eval echo configure:10850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10850 rm -rf conftest*
10851 glibcpp_cv_func_finitef_use=yes
10852 else
10853 echo "configure: failed program was:" >&5
10854 cat conftest.$ac_ext >&5
10855 rm -rf conftest*
10856 glibcpp_cv_func_finitef_use=no
10858 rm -f conftest*
10859 ac_ext=c
10860 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10861 ac_cpp='$CPP $CPPFLAGS'
10862 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10863 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10864 cross_compiling=$ac_cv_prog_cc_cross
10870 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
10872 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
10873 for ac_func in finitef
10875 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10876 echo "configure:10877: checking for $ac_func" >&5
10877 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10878 echo $ac_n "(cached) $ac_c" 1>&6
10879 else
10880 cat > conftest.$ac_ext <<EOF
10881 #line 10882 "configure"
10882 #include "confdefs.h"
10883 /* System header to define __stub macros and hopefully few prototypes,
10884 which can conflict with char $ac_func(); below. */
10885 #include <assert.h>
10886 /* Override any gcc2 internal prototype to avoid an error. */
10887 /* We use char because int might match the return type of a gcc2
10888 builtin and then its argument prototype would still apply. */
10889 char $ac_func();
10891 int main() {
10893 /* The GNU C library defines this for functions which it implements
10894 to always fail with ENOSYS. Some functions are actually named
10895 something starting with __ and the normal name is an alias. */
10896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10897 choke me
10898 #else
10899 $ac_func();
10900 #endif
10902 ; return 0; }
10904 if { (eval echo configure:10905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10905 rm -rf conftest*
10906 eval "ac_cv_func_$ac_func=yes"
10907 else
10908 echo "configure: failed program was:" >&5
10909 cat conftest.$ac_ext >&5
10910 rm -rf conftest*
10911 eval "ac_cv_func_$ac_func=no"
10913 rm -f conftest*
10916 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10917 echo "$ac_t""yes" 1>&6
10918 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10919 cat >> confdefs.h <<EOF
10920 #define $ac_tr_func 1
10923 else
10924 echo "$ac_t""no" 1>&6
10926 done
10928 else
10930 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
10931 echo "configure:10932: checking for _finitef declaration" >&5
10932 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
10933 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
10934 echo $ac_n "(cached) $ac_c" 1>&6
10935 else
10938 ac_ext=C
10939 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10940 ac_cpp='$CXXCPP $CPPFLAGS'
10941 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10942 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10943 cross_compiling=$ac_cv_prog_cxx_cross
10945 cat > conftest.$ac_ext <<EOF
10946 #line 10947 "configure"
10947 #include "confdefs.h"
10948 #include <math.h>
10949 #ifdef HAVE_IEEEFP_H
10950 #include <ieeefp.h>
10951 #endif
10953 int main() {
10954 _finitef(0);
10955 ; return 0; }
10957 if { (eval echo configure:10958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10958 rm -rf conftest*
10959 glibcpp_cv_func__finitef_use=yes
10960 else
10961 echo "configure: failed program was:" >&5
10962 cat conftest.$ac_ext >&5
10963 rm -rf conftest*
10964 glibcpp_cv_func__finitef_use=no
10966 rm -f conftest*
10967 ac_ext=c
10968 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10969 ac_cpp='$CPP $CPPFLAGS'
10970 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10971 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10972 cross_compiling=$ac_cv_prog_cc_cross
10978 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
10980 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
10981 for ac_func in _finitef
10983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10984 echo "configure:10985: checking for $ac_func" >&5
10985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10986 echo $ac_n "(cached) $ac_c" 1>&6
10987 else
10988 cat > conftest.$ac_ext <<EOF
10989 #line 10990 "configure"
10990 #include "confdefs.h"
10991 /* System header to define __stub macros and hopefully few prototypes,
10992 which can conflict with char $ac_func(); below. */
10993 #include <assert.h>
10994 /* Override any gcc2 internal prototype to avoid an error. */
10995 /* We use char because int might match the return type of a gcc2
10996 builtin and then its argument prototype would still apply. */
10997 char $ac_func();
10999 int main() {
11001 /* The GNU C library defines this for functions which it implements
11002 to always fail with ENOSYS. Some functions are actually named
11003 something starting with __ and the normal name is an alias. */
11004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11005 choke me
11006 #else
11007 $ac_func();
11008 #endif
11010 ; return 0; }
11012 if { (eval echo configure:11013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11013 rm -rf conftest*
11014 eval "ac_cv_func_$ac_func=yes"
11015 else
11016 echo "configure: failed program was:" >&5
11017 cat conftest.$ac_ext >&5
11018 rm -rf conftest*
11019 eval "ac_cv_func_$ac_func=no"
11021 rm -f conftest*
11024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11025 echo "$ac_t""yes" 1>&6
11026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11027 cat >> confdefs.h <<EOF
11028 #define $ac_tr_func 1
11031 else
11032 echo "$ac_t""no" 1>&6
11034 done
11041 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
11042 echo "configure:11043: checking for long double trig functions" >&5
11043 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
11044 echo $ac_n "(cached) $ac_c" 1>&6
11045 else
11048 ac_ext=C
11049 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11050 ac_cpp='$CXXCPP $CPPFLAGS'
11051 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11052 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11053 cross_compiling=$ac_cv_prog_cxx_cross
11055 cat > conftest.$ac_ext <<EOF
11056 #line 11057 "configure"
11057 #include "confdefs.h"
11058 #include <math.h>
11059 int main() {
11060 `for x in acosl asinl atanl \
11061 cosl sinl tanl \
11062 coshl sinhl tanhl; do echo "$x (0);"; done`
11063 ; return 0; }
11065 if { (eval echo configure:11066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11066 rm -rf conftest*
11067 glibcpp_cv_func_long_double_trig_use=yes
11068 else
11069 echo "configure: failed program was:" >&5
11070 cat conftest.$ac_ext >&5
11071 rm -rf conftest*
11072 glibcpp_cv_func_long_double_trig_use=no
11074 rm -f conftest*
11075 ac_ext=c
11076 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11077 ac_cpp='$CPP $CPPFLAGS'
11078 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11079 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11080 cross_compiling=$ac_cv_prog_cc_cross
11084 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
11085 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
11086 for ac_func in acosl asinl atanl \
11087 cosl sinl tanl \
11088 coshl sinhl tanhl
11090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11091 echo "configure:11092: checking for $ac_func" >&5
11092 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11093 echo $ac_n "(cached) $ac_c" 1>&6
11094 else
11095 cat > conftest.$ac_ext <<EOF
11096 #line 11097 "configure"
11097 #include "confdefs.h"
11098 /* System header to define __stub macros and hopefully few prototypes,
11099 which can conflict with char $ac_func(); below. */
11100 #include <assert.h>
11101 /* Override any gcc2 internal prototype to avoid an error. */
11102 /* We use char because int might match the return type of a gcc2
11103 builtin and then its argument prototype would still apply. */
11104 char $ac_func();
11106 int main() {
11108 /* The GNU C library defines this for functions which it implements
11109 to always fail with ENOSYS. Some functions are actually named
11110 something starting with __ and the normal name is an alias. */
11111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11112 choke me
11113 #else
11114 $ac_func();
11115 #endif
11117 ; return 0; }
11119 if { (eval echo configure:11120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11120 rm -rf conftest*
11121 eval "ac_cv_func_$ac_func=yes"
11122 else
11123 echo "configure: failed program was:" >&5
11124 cat conftest.$ac_ext >&5
11125 rm -rf conftest*
11126 eval "ac_cv_func_$ac_func=no"
11128 rm -f conftest*
11131 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11132 echo "$ac_t""yes" 1>&6
11133 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11134 cat >> confdefs.h <<EOF
11135 #define $ac_tr_func 1
11138 else
11139 echo "$ac_t""no" 1>&6
11141 done
11146 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
11147 echo "configure:11148: checking for long double round functions" >&5
11148 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
11149 echo $ac_n "(cached) $ac_c" 1>&6
11150 else
11153 ac_ext=C
11154 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11155 ac_cpp='$CXXCPP $CPPFLAGS'
11156 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11157 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11158 cross_compiling=$ac_cv_prog_cxx_cross
11160 cat > conftest.$ac_ext <<EOF
11161 #line 11162 "configure"
11162 #include "confdefs.h"
11163 #include <math.h>
11164 int main() {
11165 `for x in ceill floorl; do echo "$x (0);"; done`
11166 ; return 0; }
11168 if { (eval echo configure:11169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11169 rm -rf conftest*
11170 glibcpp_cv_func_long_double_round_use=yes
11171 else
11172 echo "configure: failed program was:" >&5
11173 cat conftest.$ac_ext >&5
11174 rm -rf conftest*
11175 glibcpp_cv_func_long_double_round_use=no
11177 rm -f conftest*
11178 ac_ext=c
11179 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11180 ac_cpp='$CPP $CPPFLAGS'
11181 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11182 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11183 cross_compiling=$ac_cv_prog_cc_cross
11187 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11188 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11189 for ac_func in ceill floorl
11191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11192 echo "configure:11193: checking for $ac_func" >&5
11193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11194 echo $ac_n "(cached) $ac_c" 1>&6
11195 else
11196 cat > conftest.$ac_ext <<EOF
11197 #line 11198 "configure"
11198 #include "confdefs.h"
11199 /* System header to define __stub macros and hopefully few prototypes,
11200 which can conflict with char $ac_func(); below. */
11201 #include <assert.h>
11202 /* Override any gcc2 internal prototype to avoid an error. */
11203 /* We use char because int might match the return type of a gcc2
11204 builtin and then its argument prototype would still apply. */
11205 char $ac_func();
11207 int main() {
11209 /* The GNU C library defines this for functions which it implements
11210 to always fail with ENOSYS. Some functions are actually named
11211 something starting with __ and the normal name is an alias. */
11212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11213 choke me
11214 #else
11215 $ac_func();
11216 #endif
11218 ; return 0; }
11220 if { (eval echo configure:11221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11221 rm -rf conftest*
11222 eval "ac_cv_func_$ac_func=yes"
11223 else
11224 echo "configure: failed program was:" >&5
11225 cat conftest.$ac_ext >&5
11226 rm -rf conftest*
11227 eval "ac_cv_func_$ac_func=no"
11229 rm -f conftest*
11232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11233 echo "$ac_t""yes" 1>&6
11234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11235 cat >> confdefs.h <<EOF
11236 #define $ac_tr_func 1
11239 else
11240 echo "$ac_t""no" 1>&6
11242 done
11248 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11249 echo "configure:11250: checking for isnanl declaration" >&5
11250 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11251 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11252 echo $ac_n "(cached) $ac_c" 1>&6
11253 else
11256 ac_ext=C
11257 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11258 ac_cpp='$CXXCPP $CPPFLAGS'
11259 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11260 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11261 cross_compiling=$ac_cv_prog_cxx_cross
11263 cat > conftest.$ac_ext <<EOF
11264 #line 11265 "configure"
11265 #include "confdefs.h"
11266 #include <math.h>
11267 #ifdef HAVE_IEEEFP_H
11268 #include <ieeefp.h>
11269 #endif
11271 int main() {
11272 isnanl(0);
11273 ; return 0; }
11275 if { (eval echo configure:11276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11276 rm -rf conftest*
11277 glibcpp_cv_func_isnanl_use=yes
11278 else
11279 echo "configure: failed program was:" >&5
11280 cat conftest.$ac_ext >&5
11281 rm -rf conftest*
11282 glibcpp_cv_func_isnanl_use=no
11284 rm -f conftest*
11285 ac_ext=c
11286 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11287 ac_cpp='$CPP $CPPFLAGS'
11288 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11289 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11290 cross_compiling=$ac_cv_prog_cc_cross
11296 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11298 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11299 for ac_func in isnanl
11301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11302 echo "configure:11303: checking for $ac_func" >&5
11303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11304 echo $ac_n "(cached) $ac_c" 1>&6
11305 else
11306 cat > conftest.$ac_ext <<EOF
11307 #line 11308 "configure"
11308 #include "confdefs.h"
11309 /* System header to define __stub macros and hopefully few prototypes,
11310 which can conflict with char $ac_func(); below. */
11311 #include <assert.h>
11312 /* Override any gcc2 internal prototype to avoid an error. */
11313 /* We use char because int might match the return type of a gcc2
11314 builtin and then its argument prototype would still apply. */
11315 char $ac_func();
11317 int main() {
11319 /* The GNU C library defines this for functions which it implements
11320 to always fail with ENOSYS. Some functions are actually named
11321 something starting with __ and the normal name is an alias. */
11322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11323 choke me
11324 #else
11325 $ac_func();
11326 #endif
11328 ; return 0; }
11330 if { (eval echo configure:11331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11331 rm -rf conftest*
11332 eval "ac_cv_func_$ac_func=yes"
11333 else
11334 echo "configure: failed program was:" >&5
11335 cat conftest.$ac_ext >&5
11336 rm -rf conftest*
11337 eval "ac_cv_func_$ac_func=no"
11339 rm -f conftest*
11342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11343 echo "$ac_t""yes" 1>&6
11344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11345 cat >> confdefs.h <<EOF
11346 #define $ac_tr_func 1
11349 else
11350 echo "$ac_t""no" 1>&6
11352 done
11354 else
11356 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
11357 echo "configure:11358: checking for _isnanl declaration" >&5
11358 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
11359 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
11360 echo $ac_n "(cached) $ac_c" 1>&6
11361 else
11364 ac_ext=C
11365 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11366 ac_cpp='$CXXCPP $CPPFLAGS'
11367 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11368 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11369 cross_compiling=$ac_cv_prog_cxx_cross
11371 cat > conftest.$ac_ext <<EOF
11372 #line 11373 "configure"
11373 #include "confdefs.h"
11374 #include <math.h>
11375 #ifdef HAVE_IEEEFP_H
11376 #include <ieeefp.h>
11377 #endif
11379 int main() {
11380 _isnanl(0);
11381 ; return 0; }
11383 if { (eval echo configure:11384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11384 rm -rf conftest*
11385 glibcpp_cv_func__isnanl_use=yes
11386 else
11387 echo "configure: failed program was:" >&5
11388 cat conftest.$ac_ext >&5
11389 rm -rf conftest*
11390 glibcpp_cv_func__isnanl_use=no
11392 rm -f conftest*
11393 ac_ext=c
11394 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11395 ac_cpp='$CPP $CPPFLAGS'
11396 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11397 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11398 cross_compiling=$ac_cv_prog_cc_cross
11404 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
11406 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
11407 for ac_func in _isnanl
11409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11410 echo "configure:11411: checking for $ac_func" >&5
11411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11412 echo $ac_n "(cached) $ac_c" 1>&6
11413 else
11414 cat > conftest.$ac_ext <<EOF
11415 #line 11416 "configure"
11416 #include "confdefs.h"
11417 /* System header to define __stub macros and hopefully few prototypes,
11418 which can conflict with char $ac_func(); below. */
11419 #include <assert.h>
11420 /* Override any gcc2 internal prototype to avoid an error. */
11421 /* We use char because int might match the return type of a gcc2
11422 builtin and then its argument prototype would still apply. */
11423 char $ac_func();
11425 int main() {
11427 /* The GNU C library defines this for functions which it implements
11428 to always fail with ENOSYS. Some functions are actually named
11429 something starting with __ and the normal name is an alias. */
11430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11431 choke me
11432 #else
11433 $ac_func();
11434 #endif
11436 ; return 0; }
11438 if { (eval echo configure:11439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11439 rm -rf conftest*
11440 eval "ac_cv_func_$ac_func=yes"
11441 else
11442 echo "configure: failed program was:" >&5
11443 cat conftest.$ac_ext >&5
11444 rm -rf conftest*
11445 eval "ac_cv_func_$ac_func=no"
11447 rm -f conftest*
11450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11451 echo "$ac_t""yes" 1>&6
11452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11453 cat >> confdefs.h <<EOF
11454 #define $ac_tr_func 1
11457 else
11458 echo "$ac_t""no" 1>&6
11460 done
11467 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
11468 echo "configure:11469: checking for isinfl declaration" >&5
11469 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
11470 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
11471 echo $ac_n "(cached) $ac_c" 1>&6
11472 else
11475 ac_ext=C
11476 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11477 ac_cpp='$CXXCPP $CPPFLAGS'
11478 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11479 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11480 cross_compiling=$ac_cv_prog_cxx_cross
11482 cat > conftest.$ac_ext <<EOF
11483 #line 11484 "configure"
11484 #include "confdefs.h"
11485 #include <math.h>
11486 #ifdef HAVE_IEEEFP_H
11487 #include <ieeefp.h>
11488 #endif
11490 int main() {
11491 isinfl(0);
11492 ; return 0; }
11494 if { (eval echo configure:11495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11495 rm -rf conftest*
11496 glibcpp_cv_func_isinfl_use=yes
11497 else
11498 echo "configure: failed program was:" >&5
11499 cat conftest.$ac_ext >&5
11500 rm -rf conftest*
11501 glibcpp_cv_func_isinfl_use=no
11503 rm -f conftest*
11504 ac_ext=c
11505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11506 ac_cpp='$CPP $CPPFLAGS'
11507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11509 cross_compiling=$ac_cv_prog_cc_cross
11515 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
11517 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
11518 for ac_func in isinfl
11520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11521 echo "configure:11522: checking for $ac_func" >&5
11522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11523 echo $ac_n "(cached) $ac_c" 1>&6
11524 else
11525 cat > conftest.$ac_ext <<EOF
11526 #line 11527 "configure"
11527 #include "confdefs.h"
11528 /* System header to define __stub macros and hopefully few prototypes,
11529 which can conflict with char $ac_func(); below. */
11530 #include <assert.h>
11531 /* Override any gcc2 internal prototype to avoid an error. */
11532 /* We use char because int might match the return type of a gcc2
11533 builtin and then its argument prototype would still apply. */
11534 char $ac_func();
11536 int main() {
11538 /* The GNU C library defines this for functions which it implements
11539 to always fail with ENOSYS. Some functions are actually named
11540 something starting with __ and the normal name is an alias. */
11541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11542 choke me
11543 #else
11544 $ac_func();
11545 #endif
11547 ; return 0; }
11549 if { (eval echo configure:11550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11550 rm -rf conftest*
11551 eval "ac_cv_func_$ac_func=yes"
11552 else
11553 echo "configure: failed program was:" >&5
11554 cat conftest.$ac_ext >&5
11555 rm -rf conftest*
11556 eval "ac_cv_func_$ac_func=no"
11558 rm -f conftest*
11561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11562 echo "$ac_t""yes" 1>&6
11563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11564 cat >> confdefs.h <<EOF
11565 #define $ac_tr_func 1
11568 else
11569 echo "$ac_t""no" 1>&6
11571 done
11573 else
11575 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
11576 echo "configure:11577: checking for _isinfl declaration" >&5
11577 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
11578 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
11579 echo $ac_n "(cached) $ac_c" 1>&6
11580 else
11583 ac_ext=C
11584 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11585 ac_cpp='$CXXCPP $CPPFLAGS'
11586 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11587 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11588 cross_compiling=$ac_cv_prog_cxx_cross
11590 cat > conftest.$ac_ext <<EOF
11591 #line 11592 "configure"
11592 #include "confdefs.h"
11593 #include <math.h>
11594 #ifdef HAVE_IEEEFP_H
11595 #include <ieeefp.h>
11596 #endif
11598 int main() {
11599 _isinfl(0);
11600 ; return 0; }
11602 if { (eval echo configure:11603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11603 rm -rf conftest*
11604 glibcpp_cv_func__isinfl_use=yes
11605 else
11606 echo "configure: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11608 rm -rf conftest*
11609 glibcpp_cv_func__isinfl_use=no
11611 rm -f conftest*
11612 ac_ext=c
11613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11614 ac_cpp='$CPP $CPPFLAGS'
11615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11617 cross_compiling=$ac_cv_prog_cc_cross
11623 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
11625 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
11626 for ac_func in _isinfl
11628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11629 echo "configure:11630: checking for $ac_func" >&5
11630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11631 echo $ac_n "(cached) $ac_c" 1>&6
11632 else
11633 cat > conftest.$ac_ext <<EOF
11634 #line 11635 "configure"
11635 #include "confdefs.h"
11636 /* System header to define __stub macros and hopefully few prototypes,
11637 which can conflict with char $ac_func(); below. */
11638 #include <assert.h>
11639 /* Override any gcc2 internal prototype to avoid an error. */
11640 /* We use char because int might match the return type of a gcc2
11641 builtin and then its argument prototype would still apply. */
11642 char $ac_func();
11644 int main() {
11646 /* The GNU C library defines this for functions which it implements
11647 to always fail with ENOSYS. Some functions are actually named
11648 something starting with __ and the normal name is an alias. */
11649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11650 choke me
11651 #else
11652 $ac_func();
11653 #endif
11655 ; return 0; }
11657 if { (eval echo configure:11658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11658 rm -rf conftest*
11659 eval "ac_cv_func_$ac_func=yes"
11660 else
11661 echo "configure: failed program was:" >&5
11662 cat conftest.$ac_ext >&5
11663 rm -rf conftest*
11664 eval "ac_cv_func_$ac_func=no"
11666 rm -f conftest*
11669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11670 echo "$ac_t""yes" 1>&6
11671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11672 cat >> confdefs.h <<EOF
11673 #define $ac_tr_func 1
11676 else
11677 echo "$ac_t""no" 1>&6
11679 done
11686 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
11687 echo "configure:11688: checking for copysignl declaration" >&5
11688 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
11689 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
11690 echo $ac_n "(cached) $ac_c" 1>&6
11691 else
11694 ac_ext=C
11695 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11696 ac_cpp='$CXXCPP $CPPFLAGS'
11697 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11698 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11699 cross_compiling=$ac_cv_prog_cxx_cross
11701 cat > conftest.$ac_ext <<EOF
11702 #line 11703 "configure"
11703 #include "confdefs.h"
11704 #include <math.h>
11705 int main() {
11706 copysignl(0, 0);
11707 ; return 0; }
11709 if { (eval echo configure:11710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11710 rm -rf conftest*
11711 glibcpp_cv_func_copysignl_use=yes
11712 else
11713 echo "configure: failed program was:" >&5
11714 cat conftest.$ac_ext >&5
11715 rm -rf conftest*
11716 glibcpp_cv_func_copysignl_use=no
11718 rm -f conftest*
11719 ac_ext=c
11720 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11721 ac_cpp='$CPP $CPPFLAGS'
11722 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11723 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11724 cross_compiling=$ac_cv_prog_cc_cross
11730 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
11732 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
11733 for ac_func in copysignl
11735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11736 echo "configure:11737: checking for $ac_func" >&5
11737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11738 echo $ac_n "(cached) $ac_c" 1>&6
11739 else
11740 cat > conftest.$ac_ext <<EOF
11741 #line 11742 "configure"
11742 #include "confdefs.h"
11743 /* System header to define __stub macros and hopefully few prototypes,
11744 which can conflict with char $ac_func(); below. */
11745 #include <assert.h>
11746 /* Override any gcc2 internal prototype to avoid an error. */
11747 /* We use char because int might match the return type of a gcc2
11748 builtin and then its argument prototype would still apply. */
11749 char $ac_func();
11751 int main() {
11753 /* The GNU C library defines this for functions which it implements
11754 to always fail with ENOSYS. Some functions are actually named
11755 something starting with __ and the normal name is an alias. */
11756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11757 choke me
11758 #else
11759 $ac_func();
11760 #endif
11762 ; return 0; }
11764 if { (eval echo configure:11765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11765 rm -rf conftest*
11766 eval "ac_cv_func_$ac_func=yes"
11767 else
11768 echo "configure: failed program was:" >&5
11769 cat conftest.$ac_ext >&5
11770 rm -rf conftest*
11771 eval "ac_cv_func_$ac_func=no"
11773 rm -f conftest*
11776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11777 echo "$ac_t""yes" 1>&6
11778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11779 cat >> confdefs.h <<EOF
11780 #define $ac_tr_func 1
11783 else
11784 echo "$ac_t""no" 1>&6
11786 done
11788 else
11790 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
11791 echo "configure:11792: checking for _copysignl declaration" >&5
11792 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
11793 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
11794 echo $ac_n "(cached) $ac_c" 1>&6
11795 else
11798 ac_ext=C
11799 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11800 ac_cpp='$CXXCPP $CPPFLAGS'
11801 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11802 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11803 cross_compiling=$ac_cv_prog_cxx_cross
11805 cat > conftest.$ac_ext <<EOF
11806 #line 11807 "configure"
11807 #include "confdefs.h"
11808 #include <math.h>
11809 int main() {
11810 _copysignl(0, 0);
11811 ; return 0; }
11813 if { (eval echo configure:11814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11814 rm -rf conftest*
11815 glibcpp_cv_func__copysignl_use=yes
11816 else
11817 echo "configure: failed program was:" >&5
11818 cat conftest.$ac_ext >&5
11819 rm -rf conftest*
11820 glibcpp_cv_func__copysignl_use=no
11822 rm -f conftest*
11823 ac_ext=c
11824 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11825 ac_cpp='$CPP $CPPFLAGS'
11826 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11827 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11828 cross_compiling=$ac_cv_prog_cc_cross
11834 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
11836 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
11837 for ac_func in _copysignl
11839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11840 echo "configure:11841: checking for $ac_func" >&5
11841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11842 echo $ac_n "(cached) $ac_c" 1>&6
11843 else
11844 cat > conftest.$ac_ext <<EOF
11845 #line 11846 "configure"
11846 #include "confdefs.h"
11847 /* System header to define __stub macros and hopefully few prototypes,
11848 which can conflict with char $ac_func(); below. */
11849 #include <assert.h>
11850 /* Override any gcc2 internal prototype to avoid an error. */
11851 /* We use char because int might match the return type of a gcc2
11852 builtin and then its argument prototype would still apply. */
11853 char $ac_func();
11855 int main() {
11857 /* The GNU C library defines this for functions which it implements
11858 to always fail with ENOSYS. Some functions are actually named
11859 something starting with __ and the normal name is an alias. */
11860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11861 choke me
11862 #else
11863 $ac_func();
11864 #endif
11866 ; return 0; }
11868 if { (eval echo configure:11869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11869 rm -rf conftest*
11870 eval "ac_cv_func_$ac_func=yes"
11871 else
11872 echo "configure: failed program was:" >&5
11873 cat conftest.$ac_ext >&5
11874 rm -rf conftest*
11875 eval "ac_cv_func_$ac_func=no"
11877 rm -f conftest*
11880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11881 echo "$ac_t""yes" 1>&6
11882 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11883 cat >> confdefs.h <<EOF
11884 #define $ac_tr_func 1
11887 else
11888 echo "$ac_t""no" 1>&6
11890 done
11897 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
11898 echo "configure:11899: checking for atan2l declaration" >&5
11899 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
11900 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
11901 echo $ac_n "(cached) $ac_c" 1>&6
11902 else
11905 ac_ext=C
11906 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11907 ac_cpp='$CXXCPP $CPPFLAGS'
11908 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11909 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11910 cross_compiling=$ac_cv_prog_cxx_cross
11912 cat > conftest.$ac_ext <<EOF
11913 #line 11914 "configure"
11914 #include "confdefs.h"
11915 #include <math.h>
11916 int main() {
11917 atan2l(0, 0);
11918 ; return 0; }
11920 if { (eval echo configure:11921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11921 rm -rf conftest*
11922 glibcpp_cv_func_atan2l_use=yes
11923 else
11924 echo "configure: failed program was:" >&5
11925 cat conftest.$ac_ext >&5
11926 rm -rf conftest*
11927 glibcpp_cv_func_atan2l_use=no
11929 rm -f conftest*
11930 ac_ext=c
11931 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11932 ac_cpp='$CPP $CPPFLAGS'
11933 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11934 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11935 cross_compiling=$ac_cv_prog_cc_cross
11941 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
11943 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
11944 for ac_func in atan2l
11946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11947 echo "configure:11948: checking for $ac_func" >&5
11948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11949 echo $ac_n "(cached) $ac_c" 1>&6
11950 else
11951 cat > conftest.$ac_ext <<EOF
11952 #line 11953 "configure"
11953 #include "confdefs.h"
11954 /* System header to define __stub macros and hopefully few prototypes,
11955 which can conflict with char $ac_func(); below. */
11956 #include <assert.h>
11957 /* Override any gcc2 internal prototype to avoid an error. */
11958 /* We use char because int might match the return type of a gcc2
11959 builtin and then its argument prototype would still apply. */
11960 char $ac_func();
11962 int main() {
11964 /* The GNU C library defines this for functions which it implements
11965 to always fail with ENOSYS. Some functions are actually named
11966 something starting with __ and the normal name is an alias. */
11967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11968 choke me
11969 #else
11970 $ac_func();
11971 #endif
11973 ; return 0; }
11975 if { (eval echo configure:11976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11976 rm -rf conftest*
11977 eval "ac_cv_func_$ac_func=yes"
11978 else
11979 echo "configure: failed program was:" >&5
11980 cat conftest.$ac_ext >&5
11981 rm -rf conftest*
11982 eval "ac_cv_func_$ac_func=no"
11984 rm -f conftest*
11987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11988 echo "$ac_t""yes" 1>&6
11989 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11990 cat >> confdefs.h <<EOF
11991 #define $ac_tr_func 1
11994 else
11995 echo "$ac_t""no" 1>&6
11997 done
11999 else
12001 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
12002 echo "configure:12003: checking for _atan2l declaration" >&5
12003 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
12004 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
12005 echo $ac_n "(cached) $ac_c" 1>&6
12006 else
12009 ac_ext=C
12010 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12011 ac_cpp='$CXXCPP $CPPFLAGS'
12012 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12013 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12014 cross_compiling=$ac_cv_prog_cxx_cross
12016 cat > conftest.$ac_ext <<EOF
12017 #line 12018 "configure"
12018 #include "confdefs.h"
12019 #include <math.h>
12020 int main() {
12021 _atan2l(0, 0);
12022 ; return 0; }
12024 if { (eval echo configure:12025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12025 rm -rf conftest*
12026 glibcpp_cv_func__atan2l_use=yes
12027 else
12028 echo "configure: failed program was:" >&5
12029 cat conftest.$ac_ext >&5
12030 rm -rf conftest*
12031 glibcpp_cv_func__atan2l_use=no
12033 rm -f conftest*
12034 ac_ext=c
12035 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12036 ac_cpp='$CPP $CPPFLAGS'
12037 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12038 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12039 cross_compiling=$ac_cv_prog_cc_cross
12045 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
12047 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
12048 for ac_func in _atan2l
12050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12051 echo "configure:12052: checking for $ac_func" >&5
12052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12053 echo $ac_n "(cached) $ac_c" 1>&6
12054 else
12055 cat > conftest.$ac_ext <<EOF
12056 #line 12057 "configure"
12057 #include "confdefs.h"
12058 /* System header to define __stub macros and hopefully few prototypes,
12059 which can conflict with char $ac_func(); below. */
12060 #include <assert.h>
12061 /* Override any gcc2 internal prototype to avoid an error. */
12062 /* We use char because int might match the return type of a gcc2
12063 builtin and then its argument prototype would still apply. */
12064 char $ac_func();
12066 int main() {
12068 /* The GNU C library defines this for functions which it implements
12069 to always fail with ENOSYS. Some functions are actually named
12070 something starting with __ and the normal name is an alias. */
12071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12072 choke me
12073 #else
12074 $ac_func();
12075 #endif
12077 ; return 0; }
12079 if { (eval echo configure:12080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12080 rm -rf conftest*
12081 eval "ac_cv_func_$ac_func=yes"
12082 else
12083 echo "configure: failed program was:" >&5
12084 cat conftest.$ac_ext >&5
12085 rm -rf conftest*
12086 eval "ac_cv_func_$ac_func=no"
12088 rm -f conftest*
12091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12092 echo "$ac_t""yes" 1>&6
12093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12094 cat >> confdefs.h <<EOF
12095 #define $ac_tr_func 1
12098 else
12099 echo "$ac_t""no" 1>&6
12101 done
12108 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
12109 echo "configure:12110: checking for expl declaration" >&5
12110 if test x${glibcpp_cv_func_expl_use+set} != xset; then
12111 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
12112 echo $ac_n "(cached) $ac_c" 1>&6
12113 else
12116 ac_ext=C
12117 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12118 ac_cpp='$CXXCPP $CPPFLAGS'
12119 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12120 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12121 cross_compiling=$ac_cv_prog_cxx_cross
12123 cat > conftest.$ac_ext <<EOF
12124 #line 12125 "configure"
12125 #include "confdefs.h"
12126 #include <math.h>
12127 #ifdef HAVE_IEEEFP_H
12128 #include <ieeefp.h>
12129 #endif
12131 int main() {
12132 expl(0);
12133 ; return 0; }
12135 if { (eval echo configure:12136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12136 rm -rf conftest*
12137 glibcpp_cv_func_expl_use=yes
12138 else
12139 echo "configure: failed program was:" >&5
12140 cat conftest.$ac_ext >&5
12141 rm -rf conftest*
12142 glibcpp_cv_func_expl_use=no
12144 rm -f conftest*
12145 ac_ext=c
12146 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12147 ac_cpp='$CPP $CPPFLAGS'
12148 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12149 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12150 cross_compiling=$ac_cv_prog_cc_cross
12156 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
12158 if test x$glibcpp_cv_func_expl_use = x"yes"; then
12159 for ac_func in expl
12161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12162 echo "configure:12163: checking for $ac_func" >&5
12163 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12164 echo $ac_n "(cached) $ac_c" 1>&6
12165 else
12166 cat > conftest.$ac_ext <<EOF
12167 #line 12168 "configure"
12168 #include "confdefs.h"
12169 /* System header to define __stub macros and hopefully few prototypes,
12170 which can conflict with char $ac_func(); below. */
12171 #include <assert.h>
12172 /* Override any gcc2 internal prototype to avoid an error. */
12173 /* We use char because int might match the return type of a gcc2
12174 builtin and then its argument prototype would still apply. */
12175 char $ac_func();
12177 int main() {
12179 /* The GNU C library defines this for functions which it implements
12180 to always fail with ENOSYS. Some functions are actually named
12181 something starting with __ and the normal name is an alias. */
12182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12183 choke me
12184 #else
12185 $ac_func();
12186 #endif
12188 ; return 0; }
12190 if { (eval echo configure:12191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12191 rm -rf conftest*
12192 eval "ac_cv_func_$ac_func=yes"
12193 else
12194 echo "configure: failed program was:" >&5
12195 cat conftest.$ac_ext >&5
12196 rm -rf conftest*
12197 eval "ac_cv_func_$ac_func=no"
12199 rm -f conftest*
12202 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12203 echo "$ac_t""yes" 1>&6
12204 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12205 cat >> confdefs.h <<EOF
12206 #define $ac_tr_func 1
12209 else
12210 echo "$ac_t""no" 1>&6
12212 done
12214 else
12216 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12217 echo "configure:12218: checking for _expl declaration" >&5
12218 if test x${glibcpp_cv_func__expl_use+set} != xset; then
12219 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12220 echo $ac_n "(cached) $ac_c" 1>&6
12221 else
12224 ac_ext=C
12225 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12226 ac_cpp='$CXXCPP $CPPFLAGS'
12227 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12228 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12229 cross_compiling=$ac_cv_prog_cxx_cross
12231 cat > conftest.$ac_ext <<EOF
12232 #line 12233 "configure"
12233 #include "confdefs.h"
12234 #include <math.h>
12235 #ifdef HAVE_IEEEFP_H
12236 #include <ieeefp.h>
12237 #endif
12239 int main() {
12240 _expl(0);
12241 ; return 0; }
12243 if { (eval echo configure:12244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12244 rm -rf conftest*
12245 glibcpp_cv_func__expl_use=yes
12246 else
12247 echo "configure: failed program was:" >&5
12248 cat conftest.$ac_ext >&5
12249 rm -rf conftest*
12250 glibcpp_cv_func__expl_use=no
12252 rm -f conftest*
12253 ac_ext=c
12254 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12255 ac_cpp='$CPP $CPPFLAGS'
12256 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12257 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12258 cross_compiling=$ac_cv_prog_cc_cross
12264 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12266 if test x$glibcpp_cv_func__expl_use = x"yes"; then
12267 for ac_func in _expl
12269 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12270 echo "configure:12271: checking for $ac_func" >&5
12271 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12272 echo $ac_n "(cached) $ac_c" 1>&6
12273 else
12274 cat > conftest.$ac_ext <<EOF
12275 #line 12276 "configure"
12276 #include "confdefs.h"
12277 /* System header to define __stub macros and hopefully few prototypes,
12278 which can conflict with char $ac_func(); below. */
12279 #include <assert.h>
12280 /* Override any gcc2 internal prototype to avoid an error. */
12281 /* We use char because int might match the return type of a gcc2
12282 builtin and then its argument prototype would still apply. */
12283 char $ac_func();
12285 int main() {
12287 /* The GNU C library defines this for functions which it implements
12288 to always fail with ENOSYS. Some functions are actually named
12289 something starting with __ and the normal name is an alias. */
12290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12291 choke me
12292 #else
12293 $ac_func();
12294 #endif
12296 ; return 0; }
12298 if { (eval echo configure:12299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12299 rm -rf conftest*
12300 eval "ac_cv_func_$ac_func=yes"
12301 else
12302 echo "configure: failed program was:" >&5
12303 cat conftest.$ac_ext >&5
12304 rm -rf conftest*
12305 eval "ac_cv_func_$ac_func=no"
12307 rm -f conftest*
12310 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12311 echo "$ac_t""yes" 1>&6
12312 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12313 cat >> confdefs.h <<EOF
12314 #define $ac_tr_func 1
12317 else
12318 echo "$ac_t""no" 1>&6
12320 done
12327 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
12328 echo "configure:12329: checking for fabsl declaration" >&5
12329 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
12330 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
12331 echo $ac_n "(cached) $ac_c" 1>&6
12332 else
12335 ac_ext=C
12336 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12337 ac_cpp='$CXXCPP $CPPFLAGS'
12338 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12339 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12340 cross_compiling=$ac_cv_prog_cxx_cross
12342 cat > conftest.$ac_ext <<EOF
12343 #line 12344 "configure"
12344 #include "confdefs.h"
12345 #include <math.h>
12346 #ifdef HAVE_IEEEFP_H
12347 #include <ieeefp.h>
12348 #endif
12350 int main() {
12351 fabsl(0);
12352 ; return 0; }
12354 if { (eval echo configure:12355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12355 rm -rf conftest*
12356 glibcpp_cv_func_fabsl_use=yes
12357 else
12358 echo "configure: failed program was:" >&5
12359 cat conftest.$ac_ext >&5
12360 rm -rf conftest*
12361 glibcpp_cv_func_fabsl_use=no
12363 rm -f conftest*
12364 ac_ext=c
12365 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12366 ac_cpp='$CPP $CPPFLAGS'
12367 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12368 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12369 cross_compiling=$ac_cv_prog_cc_cross
12375 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
12377 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
12378 for ac_func in fabsl
12380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12381 echo "configure:12382: checking for $ac_func" >&5
12382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12383 echo $ac_n "(cached) $ac_c" 1>&6
12384 else
12385 cat > conftest.$ac_ext <<EOF
12386 #line 12387 "configure"
12387 #include "confdefs.h"
12388 /* System header to define __stub macros and hopefully few prototypes,
12389 which can conflict with char $ac_func(); below. */
12390 #include <assert.h>
12391 /* Override any gcc2 internal prototype to avoid an error. */
12392 /* We use char because int might match the return type of a gcc2
12393 builtin and then its argument prototype would still apply. */
12394 char $ac_func();
12396 int main() {
12398 /* The GNU C library defines this for functions which it implements
12399 to always fail with ENOSYS. Some functions are actually named
12400 something starting with __ and the normal name is an alias. */
12401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12402 choke me
12403 #else
12404 $ac_func();
12405 #endif
12407 ; return 0; }
12409 if { (eval echo configure:12410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12410 rm -rf conftest*
12411 eval "ac_cv_func_$ac_func=yes"
12412 else
12413 echo "configure: failed program was:" >&5
12414 cat conftest.$ac_ext >&5
12415 rm -rf conftest*
12416 eval "ac_cv_func_$ac_func=no"
12418 rm -f conftest*
12421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12422 echo "$ac_t""yes" 1>&6
12423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12424 cat >> confdefs.h <<EOF
12425 #define $ac_tr_func 1
12428 else
12429 echo "$ac_t""no" 1>&6
12431 done
12433 else
12435 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
12436 echo "configure:12437: checking for _fabsl declaration" >&5
12437 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
12438 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
12439 echo $ac_n "(cached) $ac_c" 1>&6
12440 else
12443 ac_ext=C
12444 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12445 ac_cpp='$CXXCPP $CPPFLAGS'
12446 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12447 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12448 cross_compiling=$ac_cv_prog_cxx_cross
12450 cat > conftest.$ac_ext <<EOF
12451 #line 12452 "configure"
12452 #include "confdefs.h"
12453 #include <math.h>
12454 #ifdef HAVE_IEEEFP_H
12455 #include <ieeefp.h>
12456 #endif
12458 int main() {
12459 _fabsl(0);
12460 ; return 0; }
12462 if { (eval echo configure:12463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12463 rm -rf conftest*
12464 glibcpp_cv_func__fabsl_use=yes
12465 else
12466 echo "configure: failed program was:" >&5
12467 cat conftest.$ac_ext >&5
12468 rm -rf conftest*
12469 glibcpp_cv_func__fabsl_use=no
12471 rm -f conftest*
12472 ac_ext=c
12473 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12474 ac_cpp='$CPP $CPPFLAGS'
12475 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12476 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12477 cross_compiling=$ac_cv_prog_cc_cross
12483 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
12485 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
12486 for ac_func in _fabsl
12488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12489 echo "configure:12490: checking for $ac_func" >&5
12490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12491 echo $ac_n "(cached) $ac_c" 1>&6
12492 else
12493 cat > conftest.$ac_ext <<EOF
12494 #line 12495 "configure"
12495 #include "confdefs.h"
12496 /* System header to define __stub macros and hopefully few prototypes,
12497 which can conflict with char $ac_func(); below. */
12498 #include <assert.h>
12499 /* Override any gcc2 internal prototype to avoid an error. */
12500 /* We use char because int might match the return type of a gcc2
12501 builtin and then its argument prototype would still apply. */
12502 char $ac_func();
12504 int main() {
12506 /* The GNU C library defines this for functions which it implements
12507 to always fail with ENOSYS. Some functions are actually named
12508 something starting with __ and the normal name is an alias. */
12509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12510 choke me
12511 #else
12512 $ac_func();
12513 #endif
12515 ; return 0; }
12517 if { (eval echo configure:12518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12518 rm -rf conftest*
12519 eval "ac_cv_func_$ac_func=yes"
12520 else
12521 echo "configure: failed program was:" >&5
12522 cat conftest.$ac_ext >&5
12523 rm -rf conftest*
12524 eval "ac_cv_func_$ac_func=no"
12526 rm -f conftest*
12529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12530 echo "$ac_t""yes" 1>&6
12531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12532 cat >> confdefs.h <<EOF
12533 #define $ac_tr_func 1
12536 else
12537 echo "$ac_t""no" 1>&6
12539 done
12546 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
12547 echo "configure:12548: checking for fmodl declaration" >&5
12548 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
12549 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
12550 echo $ac_n "(cached) $ac_c" 1>&6
12551 else
12554 ac_ext=C
12555 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12556 ac_cpp='$CXXCPP $CPPFLAGS'
12557 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12558 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12559 cross_compiling=$ac_cv_prog_cxx_cross
12561 cat > conftest.$ac_ext <<EOF
12562 #line 12563 "configure"
12563 #include "confdefs.h"
12564 #include <math.h>
12565 int main() {
12566 fmodl(0, 0);
12567 ; return 0; }
12569 if { (eval echo configure:12570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12570 rm -rf conftest*
12571 glibcpp_cv_func_fmodl_use=yes
12572 else
12573 echo "configure: failed program was:" >&5
12574 cat conftest.$ac_ext >&5
12575 rm -rf conftest*
12576 glibcpp_cv_func_fmodl_use=no
12578 rm -f conftest*
12579 ac_ext=c
12580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12581 ac_cpp='$CPP $CPPFLAGS'
12582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12584 cross_compiling=$ac_cv_prog_cc_cross
12590 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
12592 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
12593 for ac_func in fmodl
12595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12596 echo "configure:12597: checking for $ac_func" >&5
12597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12598 echo $ac_n "(cached) $ac_c" 1>&6
12599 else
12600 cat > conftest.$ac_ext <<EOF
12601 #line 12602 "configure"
12602 #include "confdefs.h"
12603 /* System header to define __stub macros and hopefully few prototypes,
12604 which can conflict with char $ac_func(); below. */
12605 #include <assert.h>
12606 /* Override any gcc2 internal prototype to avoid an error. */
12607 /* We use char because int might match the return type of a gcc2
12608 builtin and then its argument prototype would still apply. */
12609 char $ac_func();
12611 int main() {
12613 /* The GNU C library defines this for functions which it implements
12614 to always fail with ENOSYS. Some functions are actually named
12615 something starting with __ and the normal name is an alias. */
12616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12617 choke me
12618 #else
12619 $ac_func();
12620 #endif
12622 ; return 0; }
12624 if { (eval echo configure:12625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12625 rm -rf conftest*
12626 eval "ac_cv_func_$ac_func=yes"
12627 else
12628 echo "configure: failed program was:" >&5
12629 cat conftest.$ac_ext >&5
12630 rm -rf conftest*
12631 eval "ac_cv_func_$ac_func=no"
12633 rm -f conftest*
12636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12637 echo "$ac_t""yes" 1>&6
12638 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12639 cat >> confdefs.h <<EOF
12640 #define $ac_tr_func 1
12643 else
12644 echo "$ac_t""no" 1>&6
12646 done
12648 else
12650 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
12651 echo "configure:12652: checking for _fmodl declaration" >&5
12652 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
12653 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
12654 echo $ac_n "(cached) $ac_c" 1>&6
12655 else
12658 ac_ext=C
12659 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12660 ac_cpp='$CXXCPP $CPPFLAGS'
12661 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12662 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12663 cross_compiling=$ac_cv_prog_cxx_cross
12665 cat > conftest.$ac_ext <<EOF
12666 #line 12667 "configure"
12667 #include "confdefs.h"
12668 #include <math.h>
12669 int main() {
12670 _fmodl(0, 0);
12671 ; return 0; }
12673 if { (eval echo configure:12674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12674 rm -rf conftest*
12675 glibcpp_cv_func__fmodl_use=yes
12676 else
12677 echo "configure: failed program was:" >&5
12678 cat conftest.$ac_ext >&5
12679 rm -rf conftest*
12680 glibcpp_cv_func__fmodl_use=no
12682 rm -f conftest*
12683 ac_ext=c
12684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12685 ac_cpp='$CPP $CPPFLAGS'
12686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12688 cross_compiling=$ac_cv_prog_cc_cross
12694 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
12696 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
12697 for ac_func in _fmodl
12699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12700 echo "configure:12701: checking for $ac_func" >&5
12701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12702 echo $ac_n "(cached) $ac_c" 1>&6
12703 else
12704 cat > conftest.$ac_ext <<EOF
12705 #line 12706 "configure"
12706 #include "confdefs.h"
12707 /* System header to define __stub macros and hopefully few prototypes,
12708 which can conflict with char $ac_func(); below. */
12709 #include <assert.h>
12710 /* Override any gcc2 internal prototype to avoid an error. */
12711 /* We use char because int might match the return type of a gcc2
12712 builtin and then its argument prototype would still apply. */
12713 char $ac_func();
12715 int main() {
12717 /* The GNU C library defines this for functions which it implements
12718 to always fail with ENOSYS. Some functions are actually named
12719 something starting with __ and the normal name is an alias. */
12720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12721 choke me
12722 #else
12723 $ac_func();
12724 #endif
12726 ; return 0; }
12728 if { (eval echo configure:12729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12729 rm -rf conftest*
12730 eval "ac_cv_func_$ac_func=yes"
12731 else
12732 echo "configure: failed program was:" >&5
12733 cat conftest.$ac_ext >&5
12734 rm -rf conftest*
12735 eval "ac_cv_func_$ac_func=no"
12737 rm -f conftest*
12740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12741 echo "$ac_t""yes" 1>&6
12742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12743 cat >> confdefs.h <<EOF
12744 #define $ac_tr_func 1
12747 else
12748 echo "$ac_t""no" 1>&6
12750 done
12757 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
12758 echo "configure:12759: checking for frexpl declaration" >&5
12759 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
12760 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
12761 echo $ac_n "(cached) $ac_c" 1>&6
12762 else
12765 ac_ext=C
12766 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12767 ac_cpp='$CXXCPP $CPPFLAGS'
12768 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12769 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12770 cross_compiling=$ac_cv_prog_cxx_cross
12772 cat > conftest.$ac_ext <<EOF
12773 #line 12774 "configure"
12774 #include "confdefs.h"
12775 #include <math.h>
12776 int main() {
12777 frexpl(0, 0);
12778 ; return 0; }
12780 if { (eval echo configure:12781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12781 rm -rf conftest*
12782 glibcpp_cv_func_frexpl_use=yes
12783 else
12784 echo "configure: failed program was:" >&5
12785 cat conftest.$ac_ext >&5
12786 rm -rf conftest*
12787 glibcpp_cv_func_frexpl_use=no
12789 rm -f conftest*
12790 ac_ext=c
12791 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12792 ac_cpp='$CPP $CPPFLAGS'
12793 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12794 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12795 cross_compiling=$ac_cv_prog_cc_cross
12801 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
12803 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
12804 for ac_func in frexpl
12806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12807 echo "configure:12808: checking for $ac_func" >&5
12808 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12809 echo $ac_n "(cached) $ac_c" 1>&6
12810 else
12811 cat > conftest.$ac_ext <<EOF
12812 #line 12813 "configure"
12813 #include "confdefs.h"
12814 /* System header to define __stub macros and hopefully few prototypes,
12815 which can conflict with char $ac_func(); below. */
12816 #include <assert.h>
12817 /* Override any gcc2 internal prototype to avoid an error. */
12818 /* We use char because int might match the return type of a gcc2
12819 builtin and then its argument prototype would still apply. */
12820 char $ac_func();
12822 int main() {
12824 /* The GNU C library defines this for functions which it implements
12825 to always fail with ENOSYS. Some functions are actually named
12826 something starting with __ and the normal name is an alias. */
12827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12828 choke me
12829 #else
12830 $ac_func();
12831 #endif
12833 ; return 0; }
12835 if { (eval echo configure:12836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12836 rm -rf conftest*
12837 eval "ac_cv_func_$ac_func=yes"
12838 else
12839 echo "configure: failed program was:" >&5
12840 cat conftest.$ac_ext >&5
12841 rm -rf conftest*
12842 eval "ac_cv_func_$ac_func=no"
12844 rm -f conftest*
12847 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12848 echo "$ac_t""yes" 1>&6
12849 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12850 cat >> confdefs.h <<EOF
12851 #define $ac_tr_func 1
12854 else
12855 echo "$ac_t""no" 1>&6
12857 done
12859 else
12861 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
12862 echo "configure:12863: checking for _frexpl declaration" >&5
12863 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
12864 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
12865 echo $ac_n "(cached) $ac_c" 1>&6
12866 else
12869 ac_ext=C
12870 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12871 ac_cpp='$CXXCPP $CPPFLAGS'
12872 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12873 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12874 cross_compiling=$ac_cv_prog_cxx_cross
12876 cat > conftest.$ac_ext <<EOF
12877 #line 12878 "configure"
12878 #include "confdefs.h"
12879 #include <math.h>
12880 int main() {
12881 _frexpl(0, 0);
12882 ; return 0; }
12884 if { (eval echo configure:12885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12885 rm -rf conftest*
12886 glibcpp_cv_func__frexpl_use=yes
12887 else
12888 echo "configure: failed program was:" >&5
12889 cat conftest.$ac_ext >&5
12890 rm -rf conftest*
12891 glibcpp_cv_func__frexpl_use=no
12893 rm -f conftest*
12894 ac_ext=c
12895 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12896 ac_cpp='$CPP $CPPFLAGS'
12897 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12898 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12899 cross_compiling=$ac_cv_prog_cc_cross
12905 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
12907 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
12908 for ac_func in _frexpl
12910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12911 echo "configure:12912: checking for $ac_func" >&5
12912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12913 echo $ac_n "(cached) $ac_c" 1>&6
12914 else
12915 cat > conftest.$ac_ext <<EOF
12916 #line 12917 "configure"
12917 #include "confdefs.h"
12918 /* System header to define __stub macros and hopefully few prototypes,
12919 which can conflict with char $ac_func(); below. */
12920 #include <assert.h>
12921 /* Override any gcc2 internal prototype to avoid an error. */
12922 /* We use char because int might match the return type of a gcc2
12923 builtin and then its argument prototype would still apply. */
12924 char $ac_func();
12926 int main() {
12928 /* The GNU C library defines this for functions which it implements
12929 to always fail with ENOSYS. Some functions are actually named
12930 something starting with __ and the normal name is an alias. */
12931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12932 choke me
12933 #else
12934 $ac_func();
12935 #endif
12937 ; return 0; }
12939 if { (eval echo configure:12940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12940 rm -rf conftest*
12941 eval "ac_cv_func_$ac_func=yes"
12942 else
12943 echo "configure: failed program was:" >&5
12944 cat conftest.$ac_ext >&5
12945 rm -rf conftest*
12946 eval "ac_cv_func_$ac_func=no"
12948 rm -f conftest*
12951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12952 echo "$ac_t""yes" 1>&6
12953 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12954 cat >> confdefs.h <<EOF
12955 #define $ac_tr_func 1
12958 else
12959 echo "$ac_t""no" 1>&6
12961 done
12968 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
12969 echo "configure:12970: checking for ldexpl declaration" >&5
12970 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
12971 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
12972 echo $ac_n "(cached) $ac_c" 1>&6
12973 else
12976 ac_ext=C
12977 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12978 ac_cpp='$CXXCPP $CPPFLAGS'
12979 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12980 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12981 cross_compiling=$ac_cv_prog_cxx_cross
12983 cat > conftest.$ac_ext <<EOF
12984 #line 12985 "configure"
12985 #include "confdefs.h"
12986 #include <math.h>
12987 int main() {
12988 ldexpl(0, 0);
12989 ; return 0; }
12991 if { (eval echo configure:12992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12992 rm -rf conftest*
12993 glibcpp_cv_func_ldexpl_use=yes
12994 else
12995 echo "configure: failed program was:" >&5
12996 cat conftest.$ac_ext >&5
12997 rm -rf conftest*
12998 glibcpp_cv_func_ldexpl_use=no
13000 rm -f conftest*
13001 ac_ext=c
13002 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13003 ac_cpp='$CPP $CPPFLAGS'
13004 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13005 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13006 cross_compiling=$ac_cv_prog_cc_cross
13012 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
13014 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
13015 for ac_func in ldexpl
13017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13018 echo "configure:13019: checking for $ac_func" >&5
13019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13020 echo $ac_n "(cached) $ac_c" 1>&6
13021 else
13022 cat > conftest.$ac_ext <<EOF
13023 #line 13024 "configure"
13024 #include "confdefs.h"
13025 /* System header to define __stub macros and hopefully few prototypes,
13026 which can conflict with char $ac_func(); below. */
13027 #include <assert.h>
13028 /* Override any gcc2 internal prototype to avoid an error. */
13029 /* We use char because int might match the return type of a gcc2
13030 builtin and then its argument prototype would still apply. */
13031 char $ac_func();
13033 int main() {
13035 /* The GNU C library defines this for functions which it implements
13036 to always fail with ENOSYS. Some functions are actually named
13037 something starting with __ and the normal name is an alias. */
13038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13039 choke me
13040 #else
13041 $ac_func();
13042 #endif
13044 ; return 0; }
13046 if { (eval echo configure:13047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13047 rm -rf conftest*
13048 eval "ac_cv_func_$ac_func=yes"
13049 else
13050 echo "configure: failed program was:" >&5
13051 cat conftest.$ac_ext >&5
13052 rm -rf conftest*
13053 eval "ac_cv_func_$ac_func=no"
13055 rm -f conftest*
13058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13059 echo "$ac_t""yes" 1>&6
13060 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13061 cat >> confdefs.h <<EOF
13062 #define $ac_tr_func 1
13065 else
13066 echo "$ac_t""no" 1>&6
13068 done
13070 else
13072 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
13073 echo "configure:13074: checking for _ldexpl declaration" >&5
13074 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
13075 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
13076 echo $ac_n "(cached) $ac_c" 1>&6
13077 else
13080 ac_ext=C
13081 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13082 ac_cpp='$CXXCPP $CPPFLAGS'
13083 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13084 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13085 cross_compiling=$ac_cv_prog_cxx_cross
13087 cat > conftest.$ac_ext <<EOF
13088 #line 13089 "configure"
13089 #include "confdefs.h"
13090 #include <math.h>
13091 int main() {
13092 _ldexpl(0, 0);
13093 ; return 0; }
13095 if { (eval echo configure:13096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13096 rm -rf conftest*
13097 glibcpp_cv_func__ldexpl_use=yes
13098 else
13099 echo "configure: failed program was:" >&5
13100 cat conftest.$ac_ext >&5
13101 rm -rf conftest*
13102 glibcpp_cv_func__ldexpl_use=no
13104 rm -f conftest*
13105 ac_ext=c
13106 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13107 ac_cpp='$CPP $CPPFLAGS'
13108 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13109 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13110 cross_compiling=$ac_cv_prog_cc_cross
13116 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
13118 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
13119 for ac_func in _ldexpl
13121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13122 echo "configure:13123: checking for $ac_func" >&5
13123 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13124 echo $ac_n "(cached) $ac_c" 1>&6
13125 else
13126 cat > conftest.$ac_ext <<EOF
13127 #line 13128 "configure"
13128 #include "confdefs.h"
13129 /* System header to define __stub macros and hopefully few prototypes,
13130 which can conflict with char $ac_func(); below. */
13131 #include <assert.h>
13132 /* Override any gcc2 internal prototype to avoid an error. */
13133 /* We use char because int might match the return type of a gcc2
13134 builtin and then its argument prototype would still apply. */
13135 char $ac_func();
13137 int main() {
13139 /* The GNU C library defines this for functions which it implements
13140 to always fail with ENOSYS. Some functions are actually named
13141 something starting with __ and the normal name is an alias. */
13142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13143 choke me
13144 #else
13145 $ac_func();
13146 #endif
13148 ; return 0; }
13150 if { (eval echo configure:13151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13151 rm -rf conftest*
13152 eval "ac_cv_func_$ac_func=yes"
13153 else
13154 echo "configure: failed program was:" >&5
13155 cat conftest.$ac_ext >&5
13156 rm -rf conftest*
13157 eval "ac_cv_func_$ac_func=no"
13159 rm -f conftest*
13162 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13163 echo "$ac_t""yes" 1>&6
13164 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13165 cat >> confdefs.h <<EOF
13166 #define $ac_tr_func 1
13169 else
13170 echo "$ac_t""no" 1>&6
13172 done
13179 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
13180 echo "configure:13181: checking for logl declaration" >&5
13181 if test x${glibcpp_cv_func_logl_use+set} != xset; then
13182 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
13183 echo $ac_n "(cached) $ac_c" 1>&6
13184 else
13187 ac_ext=C
13188 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13189 ac_cpp='$CXXCPP $CPPFLAGS'
13190 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13191 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13192 cross_compiling=$ac_cv_prog_cxx_cross
13194 cat > conftest.$ac_ext <<EOF
13195 #line 13196 "configure"
13196 #include "confdefs.h"
13197 #include <math.h>
13198 #ifdef HAVE_IEEEFP_H
13199 #include <ieeefp.h>
13200 #endif
13202 int main() {
13203 logl(0);
13204 ; return 0; }
13206 if { (eval echo configure:13207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13207 rm -rf conftest*
13208 glibcpp_cv_func_logl_use=yes
13209 else
13210 echo "configure: failed program was:" >&5
13211 cat conftest.$ac_ext >&5
13212 rm -rf conftest*
13213 glibcpp_cv_func_logl_use=no
13215 rm -f conftest*
13216 ac_ext=c
13217 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13218 ac_cpp='$CPP $CPPFLAGS'
13219 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13220 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13221 cross_compiling=$ac_cv_prog_cc_cross
13227 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
13229 if test x$glibcpp_cv_func_logl_use = x"yes"; then
13230 for ac_func in logl
13232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13233 echo "configure:13234: checking for $ac_func" >&5
13234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13235 echo $ac_n "(cached) $ac_c" 1>&6
13236 else
13237 cat > conftest.$ac_ext <<EOF
13238 #line 13239 "configure"
13239 #include "confdefs.h"
13240 /* System header to define __stub macros and hopefully few prototypes,
13241 which can conflict with char $ac_func(); below. */
13242 #include <assert.h>
13243 /* Override any gcc2 internal prototype to avoid an error. */
13244 /* We use char because int might match the return type of a gcc2
13245 builtin and then its argument prototype would still apply. */
13246 char $ac_func();
13248 int main() {
13250 /* The GNU C library defines this for functions which it implements
13251 to always fail with ENOSYS. Some functions are actually named
13252 something starting with __ and the normal name is an alias. */
13253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13254 choke me
13255 #else
13256 $ac_func();
13257 #endif
13259 ; return 0; }
13261 if { (eval echo configure:13262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13262 rm -rf conftest*
13263 eval "ac_cv_func_$ac_func=yes"
13264 else
13265 echo "configure: failed program was:" >&5
13266 cat conftest.$ac_ext >&5
13267 rm -rf conftest*
13268 eval "ac_cv_func_$ac_func=no"
13270 rm -f conftest*
13273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13274 echo "$ac_t""yes" 1>&6
13275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13276 cat >> confdefs.h <<EOF
13277 #define $ac_tr_func 1
13280 else
13281 echo "$ac_t""no" 1>&6
13283 done
13285 else
13287 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
13288 echo "configure:13289: checking for _logl declaration" >&5
13289 if test x${glibcpp_cv_func__logl_use+set} != xset; then
13290 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
13291 echo $ac_n "(cached) $ac_c" 1>&6
13292 else
13295 ac_ext=C
13296 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13297 ac_cpp='$CXXCPP $CPPFLAGS'
13298 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13299 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13300 cross_compiling=$ac_cv_prog_cxx_cross
13302 cat > conftest.$ac_ext <<EOF
13303 #line 13304 "configure"
13304 #include "confdefs.h"
13305 #include <math.h>
13306 #ifdef HAVE_IEEEFP_H
13307 #include <ieeefp.h>
13308 #endif
13310 int main() {
13311 _logl(0);
13312 ; return 0; }
13314 if { (eval echo configure:13315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13315 rm -rf conftest*
13316 glibcpp_cv_func__logl_use=yes
13317 else
13318 echo "configure: failed program was:" >&5
13319 cat conftest.$ac_ext >&5
13320 rm -rf conftest*
13321 glibcpp_cv_func__logl_use=no
13323 rm -f conftest*
13324 ac_ext=c
13325 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13326 ac_cpp='$CPP $CPPFLAGS'
13327 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13328 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13329 cross_compiling=$ac_cv_prog_cc_cross
13335 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
13337 if test x$glibcpp_cv_func__logl_use = x"yes"; then
13338 for ac_func in _logl
13340 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13341 echo "configure:13342: checking for $ac_func" >&5
13342 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13343 echo $ac_n "(cached) $ac_c" 1>&6
13344 else
13345 cat > conftest.$ac_ext <<EOF
13346 #line 13347 "configure"
13347 #include "confdefs.h"
13348 /* System header to define __stub macros and hopefully few prototypes,
13349 which can conflict with char $ac_func(); below. */
13350 #include <assert.h>
13351 /* Override any gcc2 internal prototype to avoid an error. */
13352 /* We use char because int might match the return type of a gcc2
13353 builtin and then its argument prototype would still apply. */
13354 char $ac_func();
13356 int main() {
13358 /* The GNU C library defines this for functions which it implements
13359 to always fail with ENOSYS. Some functions are actually named
13360 something starting with __ and the normal name is an alias. */
13361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13362 choke me
13363 #else
13364 $ac_func();
13365 #endif
13367 ; return 0; }
13369 if { (eval echo configure:13370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13370 rm -rf conftest*
13371 eval "ac_cv_func_$ac_func=yes"
13372 else
13373 echo "configure: failed program was:" >&5
13374 cat conftest.$ac_ext >&5
13375 rm -rf conftest*
13376 eval "ac_cv_func_$ac_func=no"
13378 rm -f conftest*
13381 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13382 echo "$ac_t""yes" 1>&6
13383 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13384 cat >> confdefs.h <<EOF
13385 #define $ac_tr_func 1
13388 else
13389 echo "$ac_t""no" 1>&6
13391 done
13398 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
13399 echo "configure:13400: checking for log10l declaration" >&5
13400 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
13401 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
13402 echo $ac_n "(cached) $ac_c" 1>&6
13403 else
13406 ac_ext=C
13407 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13408 ac_cpp='$CXXCPP $CPPFLAGS'
13409 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13410 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13411 cross_compiling=$ac_cv_prog_cxx_cross
13413 cat > conftest.$ac_ext <<EOF
13414 #line 13415 "configure"
13415 #include "confdefs.h"
13416 #include <math.h>
13417 #ifdef HAVE_IEEEFP_H
13418 #include <ieeefp.h>
13419 #endif
13421 int main() {
13422 log10l(0);
13423 ; return 0; }
13425 if { (eval echo configure:13426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13426 rm -rf conftest*
13427 glibcpp_cv_func_log10l_use=yes
13428 else
13429 echo "configure: failed program was:" >&5
13430 cat conftest.$ac_ext >&5
13431 rm -rf conftest*
13432 glibcpp_cv_func_log10l_use=no
13434 rm -f conftest*
13435 ac_ext=c
13436 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13437 ac_cpp='$CPP $CPPFLAGS'
13438 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13439 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13440 cross_compiling=$ac_cv_prog_cc_cross
13446 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
13448 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
13449 for ac_func in log10l
13451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13452 echo "configure:13453: checking for $ac_func" >&5
13453 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13454 echo $ac_n "(cached) $ac_c" 1>&6
13455 else
13456 cat > conftest.$ac_ext <<EOF
13457 #line 13458 "configure"
13458 #include "confdefs.h"
13459 /* System header to define __stub macros and hopefully few prototypes,
13460 which can conflict with char $ac_func(); below. */
13461 #include <assert.h>
13462 /* Override any gcc2 internal prototype to avoid an error. */
13463 /* We use char because int might match the return type of a gcc2
13464 builtin and then its argument prototype would still apply. */
13465 char $ac_func();
13467 int main() {
13469 /* The GNU C library defines this for functions which it implements
13470 to always fail with ENOSYS. Some functions are actually named
13471 something starting with __ and the normal name is an alias. */
13472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13473 choke me
13474 #else
13475 $ac_func();
13476 #endif
13478 ; return 0; }
13480 if { (eval echo configure:13481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13481 rm -rf conftest*
13482 eval "ac_cv_func_$ac_func=yes"
13483 else
13484 echo "configure: failed program was:" >&5
13485 cat conftest.$ac_ext >&5
13486 rm -rf conftest*
13487 eval "ac_cv_func_$ac_func=no"
13489 rm -f conftest*
13492 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13493 echo "$ac_t""yes" 1>&6
13494 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13495 cat >> confdefs.h <<EOF
13496 #define $ac_tr_func 1
13499 else
13500 echo "$ac_t""no" 1>&6
13502 done
13504 else
13506 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
13507 echo "configure:13508: checking for _log10l declaration" >&5
13508 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
13509 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
13510 echo $ac_n "(cached) $ac_c" 1>&6
13511 else
13514 ac_ext=C
13515 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13516 ac_cpp='$CXXCPP $CPPFLAGS'
13517 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13518 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13519 cross_compiling=$ac_cv_prog_cxx_cross
13521 cat > conftest.$ac_ext <<EOF
13522 #line 13523 "configure"
13523 #include "confdefs.h"
13524 #include <math.h>
13525 #ifdef HAVE_IEEEFP_H
13526 #include <ieeefp.h>
13527 #endif
13529 int main() {
13530 _log10l(0);
13531 ; return 0; }
13533 if { (eval echo configure:13534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13534 rm -rf conftest*
13535 glibcpp_cv_func__log10l_use=yes
13536 else
13537 echo "configure: failed program was:" >&5
13538 cat conftest.$ac_ext >&5
13539 rm -rf conftest*
13540 glibcpp_cv_func__log10l_use=no
13542 rm -f conftest*
13543 ac_ext=c
13544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13545 ac_cpp='$CPP $CPPFLAGS'
13546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13548 cross_compiling=$ac_cv_prog_cc_cross
13554 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
13556 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
13557 for ac_func in _log10l
13559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13560 echo "configure:13561: checking for $ac_func" >&5
13561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13562 echo $ac_n "(cached) $ac_c" 1>&6
13563 else
13564 cat > conftest.$ac_ext <<EOF
13565 #line 13566 "configure"
13566 #include "confdefs.h"
13567 /* System header to define __stub macros and hopefully few prototypes,
13568 which can conflict with char $ac_func(); below. */
13569 #include <assert.h>
13570 /* Override any gcc2 internal prototype to avoid an error. */
13571 /* We use char because int might match the return type of a gcc2
13572 builtin and then its argument prototype would still apply. */
13573 char $ac_func();
13575 int main() {
13577 /* The GNU C library defines this for functions which it implements
13578 to always fail with ENOSYS. Some functions are actually named
13579 something starting with __ and the normal name is an alias. */
13580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13581 choke me
13582 #else
13583 $ac_func();
13584 #endif
13586 ; return 0; }
13588 if { (eval echo configure:13589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13589 rm -rf conftest*
13590 eval "ac_cv_func_$ac_func=yes"
13591 else
13592 echo "configure: failed program was:" >&5
13593 cat conftest.$ac_ext >&5
13594 rm -rf conftest*
13595 eval "ac_cv_func_$ac_func=no"
13597 rm -f conftest*
13600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13601 echo "$ac_t""yes" 1>&6
13602 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13603 cat >> confdefs.h <<EOF
13604 #define $ac_tr_func 1
13607 else
13608 echo "$ac_t""no" 1>&6
13610 done
13617 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
13618 echo "configure:13619: checking for modfl declaration" >&5
13619 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
13620 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
13621 echo $ac_n "(cached) $ac_c" 1>&6
13622 else
13625 ac_ext=C
13626 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13627 ac_cpp='$CXXCPP $CPPFLAGS'
13628 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13629 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13630 cross_compiling=$ac_cv_prog_cxx_cross
13632 cat > conftest.$ac_ext <<EOF
13633 #line 13634 "configure"
13634 #include "confdefs.h"
13635 #include <math.h>
13636 int main() {
13637 modfl(0, 0);
13638 ; return 0; }
13640 if { (eval echo configure:13641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13641 rm -rf conftest*
13642 glibcpp_cv_func_modfl_use=yes
13643 else
13644 echo "configure: failed program was:" >&5
13645 cat conftest.$ac_ext >&5
13646 rm -rf conftest*
13647 glibcpp_cv_func_modfl_use=no
13649 rm -f conftest*
13650 ac_ext=c
13651 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13652 ac_cpp='$CPP $CPPFLAGS'
13653 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13654 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13655 cross_compiling=$ac_cv_prog_cc_cross
13661 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
13663 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
13664 for ac_func in modfl
13666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13667 echo "configure:13668: checking for $ac_func" >&5
13668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13669 echo $ac_n "(cached) $ac_c" 1>&6
13670 else
13671 cat > conftest.$ac_ext <<EOF
13672 #line 13673 "configure"
13673 #include "confdefs.h"
13674 /* System header to define __stub macros and hopefully few prototypes,
13675 which can conflict with char $ac_func(); below. */
13676 #include <assert.h>
13677 /* Override any gcc2 internal prototype to avoid an error. */
13678 /* We use char because int might match the return type of a gcc2
13679 builtin and then its argument prototype would still apply. */
13680 char $ac_func();
13682 int main() {
13684 /* The GNU C library defines this for functions which it implements
13685 to always fail with ENOSYS. Some functions are actually named
13686 something starting with __ and the normal name is an alias. */
13687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13688 choke me
13689 #else
13690 $ac_func();
13691 #endif
13693 ; return 0; }
13695 if { (eval echo configure:13696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13696 rm -rf conftest*
13697 eval "ac_cv_func_$ac_func=yes"
13698 else
13699 echo "configure: failed program was:" >&5
13700 cat conftest.$ac_ext >&5
13701 rm -rf conftest*
13702 eval "ac_cv_func_$ac_func=no"
13704 rm -f conftest*
13707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13708 echo "$ac_t""yes" 1>&6
13709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13710 cat >> confdefs.h <<EOF
13711 #define $ac_tr_func 1
13714 else
13715 echo "$ac_t""no" 1>&6
13717 done
13719 else
13721 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
13722 echo "configure:13723: checking for _modfl declaration" >&5
13723 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
13724 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
13725 echo $ac_n "(cached) $ac_c" 1>&6
13726 else
13729 ac_ext=C
13730 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13731 ac_cpp='$CXXCPP $CPPFLAGS'
13732 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13733 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13734 cross_compiling=$ac_cv_prog_cxx_cross
13736 cat > conftest.$ac_ext <<EOF
13737 #line 13738 "configure"
13738 #include "confdefs.h"
13739 #include <math.h>
13740 int main() {
13741 _modfl(0, 0);
13742 ; return 0; }
13744 if { (eval echo configure:13745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13745 rm -rf conftest*
13746 glibcpp_cv_func__modfl_use=yes
13747 else
13748 echo "configure: failed program was:" >&5
13749 cat conftest.$ac_ext >&5
13750 rm -rf conftest*
13751 glibcpp_cv_func__modfl_use=no
13753 rm -f conftest*
13754 ac_ext=c
13755 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13756 ac_cpp='$CPP $CPPFLAGS'
13757 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13758 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13759 cross_compiling=$ac_cv_prog_cc_cross
13765 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
13767 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
13768 for ac_func in _modfl
13770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13771 echo "configure:13772: checking for $ac_func" >&5
13772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13773 echo $ac_n "(cached) $ac_c" 1>&6
13774 else
13775 cat > conftest.$ac_ext <<EOF
13776 #line 13777 "configure"
13777 #include "confdefs.h"
13778 /* System header to define __stub macros and hopefully few prototypes,
13779 which can conflict with char $ac_func(); below. */
13780 #include <assert.h>
13781 /* Override any gcc2 internal prototype to avoid an error. */
13782 /* We use char because int might match the return type of a gcc2
13783 builtin and then its argument prototype would still apply. */
13784 char $ac_func();
13786 int main() {
13788 /* The GNU C library defines this for functions which it implements
13789 to always fail with ENOSYS. Some functions are actually named
13790 something starting with __ and the normal name is an alias. */
13791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13792 choke me
13793 #else
13794 $ac_func();
13795 #endif
13797 ; return 0; }
13799 if { (eval echo configure:13800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13800 rm -rf conftest*
13801 eval "ac_cv_func_$ac_func=yes"
13802 else
13803 echo "configure: failed program was:" >&5
13804 cat conftest.$ac_ext >&5
13805 rm -rf conftest*
13806 eval "ac_cv_func_$ac_func=no"
13808 rm -f conftest*
13811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13812 echo "$ac_t""yes" 1>&6
13813 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13814 cat >> confdefs.h <<EOF
13815 #define $ac_tr_func 1
13818 else
13819 echo "$ac_t""no" 1>&6
13821 done
13828 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
13829 echo "configure:13830: checking for powl declaration" >&5
13830 if test x${glibcpp_cv_func_powl_use+set} != xset; then
13831 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
13832 echo $ac_n "(cached) $ac_c" 1>&6
13833 else
13836 ac_ext=C
13837 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13838 ac_cpp='$CXXCPP $CPPFLAGS'
13839 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13840 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13841 cross_compiling=$ac_cv_prog_cxx_cross
13843 cat > conftest.$ac_ext <<EOF
13844 #line 13845 "configure"
13845 #include "confdefs.h"
13846 #include <math.h>
13847 int main() {
13848 powl(0, 0);
13849 ; return 0; }
13851 if { (eval echo configure:13852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13852 rm -rf conftest*
13853 glibcpp_cv_func_powl_use=yes
13854 else
13855 echo "configure: failed program was:" >&5
13856 cat conftest.$ac_ext >&5
13857 rm -rf conftest*
13858 glibcpp_cv_func_powl_use=no
13860 rm -f conftest*
13861 ac_ext=c
13862 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13863 ac_cpp='$CPP $CPPFLAGS'
13864 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13865 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13866 cross_compiling=$ac_cv_prog_cc_cross
13872 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
13874 if test x$glibcpp_cv_func_powl_use = x"yes"; then
13875 for ac_func in powl
13877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13878 echo "configure:13879: checking for $ac_func" >&5
13879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13880 echo $ac_n "(cached) $ac_c" 1>&6
13881 else
13882 cat > conftest.$ac_ext <<EOF
13883 #line 13884 "configure"
13884 #include "confdefs.h"
13885 /* System header to define __stub macros and hopefully few prototypes,
13886 which can conflict with char $ac_func(); below. */
13887 #include <assert.h>
13888 /* Override any gcc2 internal prototype to avoid an error. */
13889 /* We use char because int might match the return type of a gcc2
13890 builtin and then its argument prototype would still apply. */
13891 char $ac_func();
13893 int main() {
13895 /* The GNU C library defines this for functions which it implements
13896 to always fail with ENOSYS. Some functions are actually named
13897 something starting with __ and the normal name is an alias. */
13898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13899 choke me
13900 #else
13901 $ac_func();
13902 #endif
13904 ; return 0; }
13906 if { (eval echo configure:13907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13907 rm -rf conftest*
13908 eval "ac_cv_func_$ac_func=yes"
13909 else
13910 echo "configure: failed program was:" >&5
13911 cat conftest.$ac_ext >&5
13912 rm -rf conftest*
13913 eval "ac_cv_func_$ac_func=no"
13915 rm -f conftest*
13918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13919 echo "$ac_t""yes" 1>&6
13920 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13921 cat >> confdefs.h <<EOF
13922 #define $ac_tr_func 1
13925 else
13926 echo "$ac_t""no" 1>&6
13928 done
13930 else
13932 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
13933 echo "configure:13934: checking for _powl declaration" >&5
13934 if test x${glibcpp_cv_func__powl_use+set} != xset; then
13935 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
13936 echo $ac_n "(cached) $ac_c" 1>&6
13937 else
13940 ac_ext=C
13941 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13942 ac_cpp='$CXXCPP $CPPFLAGS'
13943 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13944 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13945 cross_compiling=$ac_cv_prog_cxx_cross
13947 cat > conftest.$ac_ext <<EOF
13948 #line 13949 "configure"
13949 #include "confdefs.h"
13950 #include <math.h>
13951 int main() {
13952 _powl(0, 0);
13953 ; return 0; }
13955 if { (eval echo configure:13956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13956 rm -rf conftest*
13957 glibcpp_cv_func__powl_use=yes
13958 else
13959 echo "configure: failed program was:" >&5
13960 cat conftest.$ac_ext >&5
13961 rm -rf conftest*
13962 glibcpp_cv_func__powl_use=no
13964 rm -f conftest*
13965 ac_ext=c
13966 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13967 ac_cpp='$CPP $CPPFLAGS'
13968 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13969 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13970 cross_compiling=$ac_cv_prog_cc_cross
13976 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
13978 if test x$glibcpp_cv_func__powl_use = x"yes"; then
13979 for ac_func in _powl
13981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13982 echo "configure:13983: checking for $ac_func" >&5
13983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13984 echo $ac_n "(cached) $ac_c" 1>&6
13985 else
13986 cat > conftest.$ac_ext <<EOF
13987 #line 13988 "configure"
13988 #include "confdefs.h"
13989 /* System header to define __stub macros and hopefully few prototypes,
13990 which can conflict with char $ac_func(); below. */
13991 #include <assert.h>
13992 /* Override any gcc2 internal prototype to avoid an error. */
13993 /* We use char because int might match the return type of a gcc2
13994 builtin and then its argument prototype would still apply. */
13995 char $ac_func();
13997 int main() {
13999 /* The GNU C library defines this for functions which it implements
14000 to always fail with ENOSYS. Some functions are actually named
14001 something starting with __ and the normal name is an alias. */
14002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14003 choke me
14004 #else
14005 $ac_func();
14006 #endif
14008 ; return 0; }
14010 if { (eval echo configure:14011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14011 rm -rf conftest*
14012 eval "ac_cv_func_$ac_func=yes"
14013 else
14014 echo "configure: failed program was:" >&5
14015 cat conftest.$ac_ext >&5
14016 rm -rf conftest*
14017 eval "ac_cv_func_$ac_func=no"
14019 rm -f conftest*
14022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14023 echo "$ac_t""yes" 1>&6
14024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14025 cat >> confdefs.h <<EOF
14026 #define $ac_tr_func 1
14029 else
14030 echo "$ac_t""no" 1>&6
14032 done
14039 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
14040 echo "configure:14041: checking for sqrtl declaration" >&5
14041 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
14042 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
14043 echo $ac_n "(cached) $ac_c" 1>&6
14044 else
14047 ac_ext=C
14048 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14049 ac_cpp='$CXXCPP $CPPFLAGS'
14050 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14051 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14052 cross_compiling=$ac_cv_prog_cxx_cross
14054 cat > conftest.$ac_ext <<EOF
14055 #line 14056 "configure"
14056 #include "confdefs.h"
14057 #include <math.h>
14058 #ifdef HAVE_IEEEFP_H
14059 #include <ieeefp.h>
14060 #endif
14062 int main() {
14063 sqrtl(0);
14064 ; return 0; }
14066 if { (eval echo configure:14067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14067 rm -rf conftest*
14068 glibcpp_cv_func_sqrtl_use=yes
14069 else
14070 echo "configure: failed program was:" >&5
14071 cat conftest.$ac_ext >&5
14072 rm -rf conftest*
14073 glibcpp_cv_func_sqrtl_use=no
14075 rm -f conftest*
14076 ac_ext=c
14077 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14078 ac_cpp='$CPP $CPPFLAGS'
14079 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14080 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14081 cross_compiling=$ac_cv_prog_cc_cross
14087 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
14089 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
14090 for ac_func in sqrtl
14092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14093 echo "configure:14094: checking for $ac_func" >&5
14094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14095 echo $ac_n "(cached) $ac_c" 1>&6
14096 else
14097 cat > conftest.$ac_ext <<EOF
14098 #line 14099 "configure"
14099 #include "confdefs.h"
14100 /* System header to define __stub macros and hopefully few prototypes,
14101 which can conflict with char $ac_func(); below. */
14102 #include <assert.h>
14103 /* Override any gcc2 internal prototype to avoid an error. */
14104 /* We use char because int might match the return type of a gcc2
14105 builtin and then its argument prototype would still apply. */
14106 char $ac_func();
14108 int main() {
14110 /* The GNU C library defines this for functions which it implements
14111 to always fail with ENOSYS. Some functions are actually named
14112 something starting with __ and the normal name is an alias. */
14113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14114 choke me
14115 #else
14116 $ac_func();
14117 #endif
14119 ; return 0; }
14121 if { (eval echo configure:14122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14122 rm -rf conftest*
14123 eval "ac_cv_func_$ac_func=yes"
14124 else
14125 echo "configure: failed program was:" >&5
14126 cat conftest.$ac_ext >&5
14127 rm -rf conftest*
14128 eval "ac_cv_func_$ac_func=no"
14130 rm -f conftest*
14133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14134 echo "$ac_t""yes" 1>&6
14135 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14136 cat >> confdefs.h <<EOF
14137 #define $ac_tr_func 1
14140 else
14141 echo "$ac_t""no" 1>&6
14143 done
14145 else
14147 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
14148 echo "configure:14149: checking for _sqrtl declaration" >&5
14149 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
14150 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
14151 echo $ac_n "(cached) $ac_c" 1>&6
14152 else
14155 ac_ext=C
14156 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14157 ac_cpp='$CXXCPP $CPPFLAGS'
14158 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14159 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14160 cross_compiling=$ac_cv_prog_cxx_cross
14162 cat > conftest.$ac_ext <<EOF
14163 #line 14164 "configure"
14164 #include "confdefs.h"
14165 #include <math.h>
14166 #ifdef HAVE_IEEEFP_H
14167 #include <ieeefp.h>
14168 #endif
14170 int main() {
14171 _sqrtl(0);
14172 ; return 0; }
14174 if { (eval echo configure:14175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14175 rm -rf conftest*
14176 glibcpp_cv_func__sqrtl_use=yes
14177 else
14178 echo "configure: failed program was:" >&5
14179 cat conftest.$ac_ext >&5
14180 rm -rf conftest*
14181 glibcpp_cv_func__sqrtl_use=no
14183 rm -f conftest*
14184 ac_ext=c
14185 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14186 ac_cpp='$CPP $CPPFLAGS'
14187 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14188 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14189 cross_compiling=$ac_cv_prog_cc_cross
14195 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
14197 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
14198 for ac_func in _sqrtl
14200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14201 echo "configure:14202: checking for $ac_func" >&5
14202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14203 echo $ac_n "(cached) $ac_c" 1>&6
14204 else
14205 cat > conftest.$ac_ext <<EOF
14206 #line 14207 "configure"
14207 #include "confdefs.h"
14208 /* System header to define __stub macros and hopefully few prototypes,
14209 which can conflict with char $ac_func(); below. */
14210 #include <assert.h>
14211 /* Override any gcc2 internal prototype to avoid an error. */
14212 /* We use char because int might match the return type of a gcc2
14213 builtin and then its argument prototype would still apply. */
14214 char $ac_func();
14216 int main() {
14218 /* The GNU C library defines this for functions which it implements
14219 to always fail with ENOSYS. Some functions are actually named
14220 something starting with __ and the normal name is an alias. */
14221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14222 choke me
14223 #else
14224 $ac_func();
14225 #endif
14227 ; return 0; }
14229 if { (eval echo configure:14230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14230 rm -rf conftest*
14231 eval "ac_cv_func_$ac_func=yes"
14232 else
14233 echo "configure: failed program was:" >&5
14234 cat conftest.$ac_ext >&5
14235 rm -rf conftest*
14236 eval "ac_cv_func_$ac_func=no"
14238 rm -f conftest*
14241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14242 echo "$ac_t""yes" 1>&6
14243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14244 cat >> confdefs.h <<EOF
14245 #define $ac_tr_func 1
14248 else
14249 echo "$ac_t""no" 1>&6
14251 done
14258 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
14259 echo "configure:14260: checking for sincosl declaration" >&5
14260 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
14261 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
14262 echo $ac_n "(cached) $ac_c" 1>&6
14263 else
14266 ac_ext=C
14267 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14268 ac_cpp='$CXXCPP $CPPFLAGS'
14269 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14270 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14271 cross_compiling=$ac_cv_prog_cxx_cross
14273 cat > conftest.$ac_ext <<EOF
14274 #line 14275 "configure"
14275 #include "confdefs.h"
14276 #include <math.h>
14277 int main() {
14278 sincosl(0, 0, 0);
14279 ; return 0; }
14281 if { (eval echo configure:14282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14282 rm -rf conftest*
14283 glibcpp_cv_func_sincosl_use=yes
14284 else
14285 echo "configure: failed program was:" >&5
14286 cat conftest.$ac_ext >&5
14287 rm -rf conftest*
14288 glibcpp_cv_func_sincosl_use=no
14290 rm -f conftest*
14291 ac_ext=c
14292 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14293 ac_cpp='$CPP $CPPFLAGS'
14294 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14295 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14296 cross_compiling=$ac_cv_prog_cc_cross
14302 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
14304 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
14305 for ac_func in sincosl
14307 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14308 echo "configure:14309: checking for $ac_func" >&5
14309 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14310 echo $ac_n "(cached) $ac_c" 1>&6
14311 else
14312 cat > conftest.$ac_ext <<EOF
14313 #line 14314 "configure"
14314 #include "confdefs.h"
14315 /* System header to define __stub macros and hopefully few prototypes,
14316 which can conflict with char $ac_func(); below. */
14317 #include <assert.h>
14318 /* Override any gcc2 internal prototype to avoid an error. */
14319 /* We use char because int might match the return type of a gcc2
14320 builtin and then its argument prototype would still apply. */
14321 char $ac_func();
14323 int main() {
14325 /* The GNU C library defines this for functions which it implements
14326 to always fail with ENOSYS. Some functions are actually named
14327 something starting with __ and the normal name is an alias. */
14328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14329 choke me
14330 #else
14331 $ac_func();
14332 #endif
14334 ; return 0; }
14336 if { (eval echo configure:14337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14337 rm -rf conftest*
14338 eval "ac_cv_func_$ac_func=yes"
14339 else
14340 echo "configure: failed program was:" >&5
14341 cat conftest.$ac_ext >&5
14342 rm -rf conftest*
14343 eval "ac_cv_func_$ac_func=no"
14345 rm -f conftest*
14348 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14349 echo "$ac_t""yes" 1>&6
14350 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14351 cat >> confdefs.h <<EOF
14352 #define $ac_tr_func 1
14355 else
14356 echo "$ac_t""no" 1>&6
14358 done
14360 else
14362 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
14363 echo "configure:14364: checking for _sincosl declaration" >&5
14364 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
14365 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
14366 echo $ac_n "(cached) $ac_c" 1>&6
14367 else
14370 ac_ext=C
14371 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14372 ac_cpp='$CXXCPP $CPPFLAGS'
14373 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14374 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14375 cross_compiling=$ac_cv_prog_cxx_cross
14377 cat > conftest.$ac_ext <<EOF
14378 #line 14379 "configure"
14379 #include "confdefs.h"
14380 #include <math.h>
14381 int main() {
14382 _sincosl(0, 0, 0);
14383 ; return 0; }
14385 if { (eval echo configure:14386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14386 rm -rf conftest*
14387 glibcpp_cv_func__sincosl_use=yes
14388 else
14389 echo "configure: failed program was:" >&5
14390 cat conftest.$ac_ext >&5
14391 rm -rf conftest*
14392 glibcpp_cv_func__sincosl_use=no
14394 rm -f conftest*
14395 ac_ext=c
14396 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14397 ac_cpp='$CPP $CPPFLAGS'
14398 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14399 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14400 cross_compiling=$ac_cv_prog_cc_cross
14406 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
14408 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
14409 for ac_func in _sincosl
14411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14412 echo "configure:14413: checking for $ac_func" >&5
14413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14414 echo $ac_n "(cached) $ac_c" 1>&6
14415 else
14416 cat > conftest.$ac_ext <<EOF
14417 #line 14418 "configure"
14418 #include "confdefs.h"
14419 /* System header to define __stub macros and hopefully few prototypes,
14420 which can conflict with char $ac_func(); below. */
14421 #include <assert.h>
14422 /* Override any gcc2 internal prototype to avoid an error. */
14423 /* We use char because int might match the return type of a gcc2
14424 builtin and then its argument prototype would still apply. */
14425 char $ac_func();
14427 int main() {
14429 /* The GNU C library defines this for functions which it implements
14430 to always fail with ENOSYS. Some functions are actually named
14431 something starting with __ and the normal name is an alias. */
14432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14433 choke me
14434 #else
14435 $ac_func();
14436 #endif
14438 ; return 0; }
14440 if { (eval echo configure:14441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14441 rm -rf conftest*
14442 eval "ac_cv_func_$ac_func=yes"
14443 else
14444 echo "configure: failed program was:" >&5
14445 cat conftest.$ac_ext >&5
14446 rm -rf conftest*
14447 eval "ac_cv_func_$ac_func=no"
14449 rm -f conftest*
14452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14453 echo "$ac_t""yes" 1>&6
14454 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14455 cat >> confdefs.h <<EOF
14456 #define $ac_tr_func 1
14459 else
14460 echo "$ac_t""no" 1>&6
14462 done
14469 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
14470 echo "configure:14471: checking for finitel declaration" >&5
14471 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
14472 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
14473 echo $ac_n "(cached) $ac_c" 1>&6
14474 else
14477 ac_ext=C
14478 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14479 ac_cpp='$CXXCPP $CPPFLAGS'
14480 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14481 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14482 cross_compiling=$ac_cv_prog_cxx_cross
14484 cat > conftest.$ac_ext <<EOF
14485 #line 14486 "configure"
14486 #include "confdefs.h"
14487 #include <math.h>
14488 #ifdef HAVE_IEEEFP_H
14489 #include <ieeefp.h>
14490 #endif
14492 int main() {
14493 finitel(0);
14494 ; return 0; }
14496 if { (eval echo configure:14497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14497 rm -rf conftest*
14498 glibcpp_cv_func_finitel_use=yes
14499 else
14500 echo "configure: failed program was:" >&5
14501 cat conftest.$ac_ext >&5
14502 rm -rf conftest*
14503 glibcpp_cv_func_finitel_use=no
14505 rm -f conftest*
14506 ac_ext=c
14507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14508 ac_cpp='$CPP $CPPFLAGS'
14509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14511 cross_compiling=$ac_cv_prog_cc_cross
14517 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
14519 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
14520 for ac_func in finitel
14522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14523 echo "configure:14524: checking for $ac_func" >&5
14524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14525 echo $ac_n "(cached) $ac_c" 1>&6
14526 else
14527 cat > conftest.$ac_ext <<EOF
14528 #line 14529 "configure"
14529 #include "confdefs.h"
14530 /* System header to define __stub macros and hopefully few prototypes,
14531 which can conflict with char $ac_func(); below. */
14532 #include <assert.h>
14533 /* Override any gcc2 internal prototype to avoid an error. */
14534 /* We use char because int might match the return type of a gcc2
14535 builtin and then its argument prototype would still apply. */
14536 char $ac_func();
14538 int main() {
14540 /* The GNU C library defines this for functions which it implements
14541 to always fail with ENOSYS. Some functions are actually named
14542 something starting with __ and the normal name is an alias. */
14543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14544 choke me
14545 #else
14546 $ac_func();
14547 #endif
14549 ; return 0; }
14551 if { (eval echo configure:14552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14552 rm -rf conftest*
14553 eval "ac_cv_func_$ac_func=yes"
14554 else
14555 echo "configure: failed program was:" >&5
14556 cat conftest.$ac_ext >&5
14557 rm -rf conftest*
14558 eval "ac_cv_func_$ac_func=no"
14560 rm -f conftest*
14563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14564 echo "$ac_t""yes" 1>&6
14565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14566 cat >> confdefs.h <<EOF
14567 #define $ac_tr_func 1
14570 else
14571 echo "$ac_t""no" 1>&6
14573 done
14575 else
14577 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
14578 echo "configure:14579: checking for _finitel declaration" >&5
14579 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
14580 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
14581 echo $ac_n "(cached) $ac_c" 1>&6
14582 else
14585 ac_ext=C
14586 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14587 ac_cpp='$CXXCPP $CPPFLAGS'
14588 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14589 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14590 cross_compiling=$ac_cv_prog_cxx_cross
14592 cat > conftest.$ac_ext <<EOF
14593 #line 14594 "configure"
14594 #include "confdefs.h"
14595 #include <math.h>
14596 #ifdef HAVE_IEEEFP_H
14597 #include <ieeefp.h>
14598 #endif
14600 int main() {
14601 _finitel(0);
14602 ; return 0; }
14604 if { (eval echo configure:14605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14605 rm -rf conftest*
14606 glibcpp_cv_func__finitel_use=yes
14607 else
14608 echo "configure: failed program was:" >&5
14609 cat conftest.$ac_ext >&5
14610 rm -rf conftest*
14611 glibcpp_cv_func__finitel_use=no
14613 rm -f conftest*
14614 ac_ext=c
14615 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14616 ac_cpp='$CPP $CPPFLAGS'
14617 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14618 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14619 cross_compiling=$ac_cv_prog_cc_cross
14625 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
14627 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
14628 for ac_func in _finitel
14630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14631 echo "configure:14632: checking for $ac_func" >&5
14632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14633 echo $ac_n "(cached) $ac_c" 1>&6
14634 else
14635 cat > conftest.$ac_ext <<EOF
14636 #line 14637 "configure"
14637 #include "confdefs.h"
14638 /* System header to define __stub macros and hopefully few prototypes,
14639 which can conflict with char $ac_func(); below. */
14640 #include <assert.h>
14641 /* Override any gcc2 internal prototype to avoid an error. */
14642 /* We use char because int might match the return type of a gcc2
14643 builtin and then its argument prototype would still apply. */
14644 char $ac_func();
14646 int main() {
14648 /* The GNU C library defines this for functions which it implements
14649 to always fail with ENOSYS. Some functions are actually named
14650 something starting with __ and the normal name is an alias. */
14651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14652 choke me
14653 #else
14654 $ac_func();
14655 #endif
14657 ; return 0; }
14659 if { (eval echo configure:14660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14660 rm -rf conftest*
14661 eval "ac_cv_func_$ac_func=yes"
14662 else
14663 echo "configure: failed program was:" >&5
14664 cat conftest.$ac_ext >&5
14665 rm -rf conftest*
14666 eval "ac_cv_func_$ac_func=no"
14668 rm -f conftest*
14671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14672 echo "$ac_t""yes" 1>&6
14673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14674 cat >> confdefs.h <<EOF
14675 #define $ac_tr_func 1
14678 else
14679 echo "$ac_t""no" 1>&6
14681 done
14689 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
14690 echo "configure:14691: checking for _float trig functions" >&5
14691 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
14692 echo $ac_n "(cached) $ac_c" 1>&6
14693 else
14696 ac_ext=C
14697 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14698 ac_cpp='$CXXCPP $CPPFLAGS'
14699 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14700 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14701 cross_compiling=$ac_cv_prog_cxx_cross
14703 cat > conftest.$ac_ext <<EOF
14704 #line 14705 "configure"
14705 #include "confdefs.h"
14706 #include <math.h>
14707 int main() {
14708 `for x in _acosf _asinf _atanf \
14709 _cosf _sinf _tanf \
14710 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
14711 ; return 0; }
14713 if { (eval echo configure:14714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14714 rm -rf conftest*
14715 glibcpp_cv_func__float_trig_use=yes
14716 else
14717 echo "configure: failed program was:" >&5
14718 cat conftest.$ac_ext >&5
14719 rm -rf conftest*
14720 glibcpp_cv_func__float_trig_use=no
14722 rm -f conftest*
14723 ac_ext=c
14724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14725 ac_cpp='$CPP $CPPFLAGS'
14726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14728 cross_compiling=$ac_cv_prog_cc_cross
14732 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
14733 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
14734 for ac_func in _acosf _asinf _atanf \
14735 _cosf _sinf _tanf \
14736 _coshf _sinhf _tanhf
14738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14739 echo "configure:14740: checking for $ac_func" >&5
14740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14741 echo $ac_n "(cached) $ac_c" 1>&6
14742 else
14743 cat > conftest.$ac_ext <<EOF
14744 #line 14745 "configure"
14745 #include "confdefs.h"
14746 /* System header to define __stub macros and hopefully few prototypes,
14747 which can conflict with char $ac_func(); below. */
14748 #include <assert.h>
14749 /* Override any gcc2 internal prototype to avoid an error. */
14750 /* We use char because int might match the return type of a gcc2
14751 builtin and then its argument prototype would still apply. */
14752 char $ac_func();
14754 int main() {
14756 /* The GNU C library defines this for functions which it implements
14757 to always fail with ENOSYS. Some functions are actually named
14758 something starting with __ and the normal name is an alias. */
14759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14760 choke me
14761 #else
14762 $ac_func();
14763 #endif
14765 ; return 0; }
14767 if { (eval echo configure:14768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14768 rm -rf conftest*
14769 eval "ac_cv_func_$ac_func=yes"
14770 else
14771 echo "configure: failed program was:" >&5
14772 cat conftest.$ac_ext >&5
14773 rm -rf conftest*
14774 eval "ac_cv_func_$ac_func=no"
14776 rm -f conftest*
14779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14780 echo "$ac_t""yes" 1>&6
14781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14782 cat >> confdefs.h <<EOF
14783 #define $ac_tr_func 1
14786 else
14787 echo "$ac_t""no" 1>&6
14789 done
14794 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
14795 echo "configure:14796: checking for _float round functions" >&5
14796 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
14797 echo $ac_n "(cached) $ac_c" 1>&6
14798 else
14801 ac_ext=C
14802 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14803 ac_cpp='$CXXCPP $CPPFLAGS'
14804 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14805 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14806 cross_compiling=$ac_cv_prog_cxx_cross
14808 cat > conftest.$ac_ext <<EOF
14809 #line 14810 "configure"
14810 #include "confdefs.h"
14811 #include <math.h>
14812 int main() {
14813 `for x in _ceilf _floorf; do echo "$x (0);"; done`
14814 ; return 0; }
14816 if { (eval echo configure:14817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14817 rm -rf conftest*
14818 glibcpp_cv_func__float_round_use=yes
14819 else
14820 echo "configure: failed program was:" >&5
14821 cat conftest.$ac_ext >&5
14822 rm -rf conftest*
14823 glibcpp_cv_func__float_round_use=no
14825 rm -f conftest*
14826 ac_ext=c
14827 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14828 ac_cpp='$CPP $CPPFLAGS'
14829 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14830 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14831 cross_compiling=$ac_cv_prog_cc_cross
14835 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
14836 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
14837 for ac_func in _ceilf _floorf
14839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14840 echo "configure:14841: checking for $ac_func" >&5
14841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14842 echo $ac_n "(cached) $ac_c" 1>&6
14843 else
14844 cat > conftest.$ac_ext <<EOF
14845 #line 14846 "configure"
14846 #include "confdefs.h"
14847 /* System header to define __stub macros and hopefully few prototypes,
14848 which can conflict with char $ac_func(); below. */
14849 #include <assert.h>
14850 /* Override any gcc2 internal prototype to avoid an error. */
14851 /* We use char because int might match the return type of a gcc2
14852 builtin and then its argument prototype would still apply. */
14853 char $ac_func();
14855 int main() {
14857 /* The GNU C library defines this for functions which it implements
14858 to always fail with ENOSYS. Some functions are actually named
14859 something starting with __ and the normal name is an alias. */
14860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14861 choke me
14862 #else
14863 $ac_func();
14864 #endif
14866 ; return 0; }
14868 if { (eval echo configure:14869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14869 rm -rf conftest*
14870 eval "ac_cv_func_$ac_func=yes"
14871 else
14872 echo "configure: failed program was:" >&5
14873 cat conftest.$ac_ext >&5
14874 rm -rf conftest*
14875 eval "ac_cv_func_$ac_func=no"
14877 rm -f conftest*
14880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14881 echo "$ac_t""yes" 1>&6
14882 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14883 cat >> confdefs.h <<EOF
14884 #define $ac_tr_func 1
14887 else
14888 echo "$ac_t""no" 1>&6
14890 done
14896 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
14897 echo "configure:14898: checking for _long double trig functions" >&5
14898 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
14899 echo $ac_n "(cached) $ac_c" 1>&6
14900 else
14903 ac_ext=C
14904 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14905 ac_cpp='$CXXCPP $CPPFLAGS'
14906 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14907 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14908 cross_compiling=$ac_cv_prog_cxx_cross
14910 cat > conftest.$ac_ext <<EOF
14911 #line 14912 "configure"
14912 #include "confdefs.h"
14913 #include <math.h>
14914 int main() {
14915 `for x in _acosl _asinl _atanl \
14916 _cosl _sinl _tanl \
14917 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
14918 ; return 0; }
14920 if { (eval echo configure:14921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14921 rm -rf conftest*
14922 glibcpp_cv_func__long_double_trig_use=yes
14923 else
14924 echo "configure: failed program was:" >&5
14925 cat conftest.$ac_ext >&5
14926 rm -rf conftest*
14927 glibcpp_cv_func__long_double_trig_use=no
14929 rm -f conftest*
14930 ac_ext=c
14931 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14932 ac_cpp='$CPP $CPPFLAGS'
14933 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14934 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14935 cross_compiling=$ac_cv_prog_cc_cross
14939 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
14940 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
14941 for ac_func in _acosl _asinl _atanl \
14942 _cosl _sinl _tanl \
14943 _coshl _sinhl _tanhl
14945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14946 echo "configure:14947: checking for $ac_func" >&5
14947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14948 echo $ac_n "(cached) $ac_c" 1>&6
14949 else
14950 cat > conftest.$ac_ext <<EOF
14951 #line 14952 "configure"
14952 #include "confdefs.h"
14953 /* System header to define __stub macros and hopefully few prototypes,
14954 which can conflict with char $ac_func(); below. */
14955 #include <assert.h>
14956 /* Override any gcc2 internal prototype to avoid an error. */
14957 /* We use char because int might match the return type of a gcc2
14958 builtin and then its argument prototype would still apply. */
14959 char $ac_func();
14961 int main() {
14963 /* The GNU C library defines this for functions which it implements
14964 to always fail with ENOSYS. Some functions are actually named
14965 something starting with __ and the normal name is an alias. */
14966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14967 choke me
14968 #else
14969 $ac_func();
14970 #endif
14972 ; return 0; }
14974 if { (eval echo configure:14975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14975 rm -rf conftest*
14976 eval "ac_cv_func_$ac_func=yes"
14977 else
14978 echo "configure: failed program was:" >&5
14979 cat conftest.$ac_ext >&5
14980 rm -rf conftest*
14981 eval "ac_cv_func_$ac_func=no"
14983 rm -f conftest*
14986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14987 echo "$ac_t""yes" 1>&6
14988 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14989 cat >> confdefs.h <<EOF
14990 #define $ac_tr_func 1
14993 else
14994 echo "$ac_t""no" 1>&6
14996 done
15001 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
15002 echo "configure:15003: checking for _long double round functions" >&5
15003 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
15004 echo $ac_n "(cached) $ac_c" 1>&6
15005 else
15008 ac_ext=C
15009 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15010 ac_cpp='$CXXCPP $CPPFLAGS'
15011 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15012 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15013 cross_compiling=$ac_cv_prog_cxx_cross
15015 cat > conftest.$ac_ext <<EOF
15016 #line 15017 "configure"
15017 #include "confdefs.h"
15018 #include <math.h>
15019 int main() {
15020 `for x in _ceill _floorl; do echo "$x (0);"; done`
15021 ; return 0; }
15023 if { (eval echo configure:15024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15024 rm -rf conftest*
15025 glibcpp_cv_func__long_double_round_use=yes
15026 else
15027 echo "configure: failed program was:" >&5
15028 cat conftest.$ac_ext >&5
15029 rm -rf conftest*
15030 glibcpp_cv_func__long_double_round_use=no
15032 rm -f conftest*
15033 ac_ext=c
15034 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15035 ac_cpp='$CPP $CPPFLAGS'
15036 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15037 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15038 cross_compiling=$ac_cv_prog_cc_cross
15042 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
15043 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
15044 for ac_func in _ceill _floorl
15046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15047 echo "configure:15048: checking for $ac_func" >&5
15048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15049 echo $ac_n "(cached) $ac_c" 1>&6
15050 else
15051 cat > conftest.$ac_ext <<EOF
15052 #line 15053 "configure"
15053 #include "confdefs.h"
15054 /* System header to define __stub macros and hopefully few prototypes,
15055 which can conflict with char $ac_func(); below. */
15056 #include <assert.h>
15057 /* Override any gcc2 internal prototype to avoid an error. */
15058 /* We use char because int might match the return type of a gcc2
15059 builtin and then its argument prototype would still apply. */
15060 char $ac_func();
15062 int main() {
15064 /* The GNU C library defines this for functions which it implements
15065 to always fail with ENOSYS. Some functions are actually named
15066 something starting with __ and the normal name is an alias. */
15067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15068 choke me
15069 #else
15070 $ac_func();
15071 #endif
15073 ; return 0; }
15075 if { (eval echo configure:15076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15076 rm -rf conftest*
15077 eval "ac_cv_func_$ac_func=yes"
15078 else
15079 echo "configure: failed program was:" >&5
15080 cat conftest.$ac_ext >&5
15081 rm -rf conftest*
15082 eval "ac_cv_func_$ac_func=no"
15084 rm -f conftest*
15087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15088 echo "$ac_t""yes" 1>&6
15089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15090 cat >> confdefs.h <<EOF
15091 #define $ac_tr_func 1
15094 else
15095 echo "$ac_t""no" 1>&6
15097 done
15102 LIBS="$ac_save_LIBS"
15103 CXXFLAGS="$ac_save_CXXFLAGS"
15106 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
15107 echo "configure:15108: checking for main in -lm" >&5
15108 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
15109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15110 echo $ac_n "(cached) $ac_c" 1>&6
15111 else
15112 ac_save_LIBS="$LIBS"
15113 LIBS="-lm $LIBS"
15114 cat > conftest.$ac_ext <<EOF
15115 #line 15116 "configure"
15116 #include "confdefs.h"
15118 int main() {
15119 main()
15120 ; return 0; }
15122 if { (eval echo configure:15123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15123 rm -rf conftest*
15124 eval "ac_cv_lib_$ac_lib_var=yes"
15125 else
15126 echo "configure: failed program was:" >&5
15127 cat conftest.$ac_ext >&5
15128 rm -rf conftest*
15129 eval "ac_cv_lib_$ac_lib_var=no"
15131 rm -f conftest*
15132 LIBS="$ac_save_LIBS"
15135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15136 echo "$ac_t""yes" 1>&6
15137 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
15138 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
15139 cat >> confdefs.h <<EOF
15140 #define $ac_tr_lib 1
15143 LIBS="-lm $LIBS"
15145 else
15146 echo "$ac_t""no" 1>&6
15149 for ac_func in nan hypot hypotf atan2f expf copysignf
15151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15152 echo "configure:15153: checking for $ac_func" >&5
15153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15154 echo $ac_n "(cached) $ac_c" 1>&6
15155 else
15156 cat > conftest.$ac_ext <<EOF
15157 #line 15158 "configure"
15158 #include "confdefs.h"
15159 /* System header to define __stub macros and hopefully few prototypes,
15160 which can conflict with char $ac_func(); below. */
15161 #include <assert.h>
15162 /* Override any gcc2 internal prototype to avoid an error. */
15163 /* We use char because int might match the return type of a gcc2
15164 builtin and then its argument prototype would still apply. */
15165 char $ac_func();
15167 int main() {
15169 /* The GNU C library defines this for functions which it implements
15170 to always fail with ENOSYS. Some functions are actually named
15171 something starting with __ and the normal name is an alias. */
15172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15173 choke me
15174 #else
15175 $ac_func();
15176 #endif
15178 ; return 0; }
15180 if { (eval echo configure:15181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15181 rm -rf conftest*
15182 eval "ac_cv_func_$ac_func=yes"
15183 else
15184 echo "configure: failed program was:" >&5
15185 cat conftest.$ac_ext >&5
15186 rm -rf conftest*
15187 eval "ac_cv_func_$ac_func=no"
15189 rm -f conftest*
15192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15193 echo "$ac_t""yes" 1>&6
15194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15195 cat >> confdefs.h <<EOF
15196 #define $ac_tr_func 1
15199 else
15200 echo "$ac_t""no" 1>&6
15201 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15203 done
15207 USE_COMPLEX_LONG_DOUBLE=no
15208 if test x$ac_cv_func_atan2l = x"yes" \
15209 && test x$ac_cv_func_copysignl = x"yes"; then
15210 USE_COMPLEX_LONG_DOUBLE=yes
15211 for ac_func in hypotl signbitl
15213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15214 echo "configure:15215: checking for $ac_func" >&5
15215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15216 echo $ac_n "(cached) $ac_c" 1>&6
15217 else
15218 cat > conftest.$ac_ext <<EOF
15219 #line 15220 "configure"
15220 #include "confdefs.h"
15221 /* System header to define __stub macros and hopefully few prototypes,
15222 which can conflict with char $ac_func(); below. */
15223 #include <assert.h>
15224 /* Override any gcc2 internal prototype to avoid an error. */
15225 /* We use char because int might match the return type of a gcc2
15226 builtin and then its argument prototype would still apply. */
15227 char $ac_func();
15229 int main() {
15231 /* The GNU C library defines this for functions which it implements
15232 to always fail with ENOSYS. Some functions are actually named
15233 something starting with __ and the normal name is an alias. */
15234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15235 choke me
15236 #else
15237 $ac_func();
15238 #endif
15240 ; return 0; }
15242 if { (eval echo configure:15243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15243 rm -rf conftest*
15244 eval "ac_cv_func_$ac_func=yes"
15245 else
15246 echo "configure: failed program was:" >&5
15247 cat conftest.$ac_ext >&5
15248 rm -rf conftest*
15249 eval "ac_cv_func_$ac_func=no"
15251 rm -f conftest*
15254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15255 echo "$ac_t""yes" 1>&6
15256 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15257 cat >> confdefs.h <<EOF
15258 #define $ac_tr_func 1
15261 else
15262 echo "$ac_t""no" 1>&6
15263 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15265 done
15275 echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
15276 echo "configure:15277: checking for GNU C++ __complex__ support" >&5
15277 if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
15278 echo $ac_n "(cached) $ac_c" 1>&6
15279 else
15282 ac_ext=C
15283 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15284 ac_cpp='$CXXCPP $CPPFLAGS'
15285 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15286 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15287 cross_compiling=$ac_cv_prog_cxx_cross
15289 cat > conftest.$ac_ext <<EOF
15290 #line 15291 "configure"
15291 #include "confdefs.h"
15292 struct dcomplex { __complex__ double x; }; \
15293 dcomplex f(const dcomplex& x) { return dcomplex(x); }
15294 int main() {
15296 dcomplex x; f(x);
15297 ; return 0; }
15299 if { (eval echo configure:15300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15300 rm -rf conftest*
15301 glibcpp_cv_complex=ok
15302 else
15303 echo "configure: failed program was:" >&5
15304 cat conftest.$ac_ext >&5
15305 rm -rf conftest*
15306 glibcpp_cv_complex=buggy
15309 rm -f conftest*
15310 ac_ext=c
15311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15312 ac_cpp='$CPP $CPPFLAGS'
15313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15315 cross_compiling=$ac_cv_prog_cc_cross
15320 echo "$ac_t""$glibcpp_cv_complex" 1>&6
15321 if test $glibcpp_cv_complex = buggy; then
15322 cat >> confdefs.h <<\EOF
15323 #define _GLIBCPP_BUGGY_COMPLEX 1
15328 echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
15329 echo "configure:15330: checking for GNU C++ __complex__ float support" >&5
15330 if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
15331 echo $ac_n "(cached) $ac_c" 1>&6
15332 else
15335 ac_ext=C
15336 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15337 ac_cpp='$CXXCPP $CPPFLAGS'
15338 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15339 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15340 cross_compiling=$ac_cv_prog_cxx_cross
15342 rm -f conftest.h
15343 cat > conftest.h <<EOB
15345 // Check for buggy __complex__ that causes ICE in most versions of egcs
15346 // and gcc-2.95.x on certain platforms (eg., x86-win32).
15348 // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
15349 // more info on the bug itself.
15351 struct
15352 float_complex
15354 __complex__ float m_value;
15355 float_complex (float = 0.0f, float = 0.0f);
15356 float_complex (__complex__ float val) : m_value (val) {}
15357 float_complex foo (const float_complex &val)
15358 { return float_complex (~val.m_value); }
15361 cat > conftest.$ac_ext <<EOF
15362 #line 15363 "configure"
15363 #include "confdefs.h"
15364 #include "conftest.h"
15365 int main() {
15367 ; return 0; }
15369 if { (eval echo configure:15370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15370 rm -rf conftest*
15371 glibcpp_cv_float_complex=ok
15372 else
15373 echo "configure: failed program was:" >&5
15374 cat conftest.$ac_ext >&5
15375 rm -rf conftest*
15376 glibcpp_cv_float_complex=buggy
15379 rm -f conftest*
15380 ac_ext=c
15381 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15382 ac_cpp='$CPP $CPPFLAGS'
15383 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15384 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15385 cross_compiling=$ac_cv_prog_cc_cross
15390 echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
15391 if test $glibcpp_cv_float_complex = buggy; then
15392 cat >> confdefs.h <<\EOF
15393 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
15400 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
15401 echo "configure:15402: checking for mbstate_t" >&5
15402 cat > conftest.$ac_ext <<EOF
15403 #line 15404 "configure"
15404 #include "confdefs.h"
15405 #include <wchar.h>
15406 int main() {
15407 mbstate_t teststate;
15408 ; return 0; }
15410 if { (eval echo configure:15411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15411 rm -rf conftest*
15412 have_mbstate_t=yes
15413 else
15414 echo "configure: failed program was:" >&5
15415 cat conftest.$ac_ext >&5
15416 rm -rf conftest*
15417 have_mbstate_t=no
15419 rm -f conftest*
15420 echo "$ac_t""$have_mbstate_t" 1>&6
15421 if test x"$have_mbstate_t" = xyes; then
15422 cat >> confdefs.h <<\EOF
15423 #define HAVE_MBSTATE_T 1
15428 for ac_hdr in wchar.h
15430 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15431 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15432 echo "configure:15433: checking for $ac_hdr" >&5
15433 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15434 echo $ac_n "(cached) $ac_c" 1>&6
15435 else
15436 cat > conftest.$ac_ext <<EOF
15437 #line 15438 "configure"
15438 #include "confdefs.h"
15439 #include <$ac_hdr>
15441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15442 { (eval echo configure:15443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15444 if test -z "$ac_err"; then
15445 rm -rf conftest*
15446 eval "ac_cv_header_$ac_safe=yes"
15447 else
15448 echo "$ac_err" >&5
15449 echo "configure: failed program was:" >&5
15450 cat conftest.$ac_ext >&5
15451 rm -rf conftest*
15452 eval "ac_cv_header_$ac_safe=no"
15454 rm -f conftest*
15456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15457 echo "$ac_t""yes" 1>&6
15458 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15459 cat >> confdefs.h <<EOF
15460 #define $ac_tr_hdr 1
15462 ac_has_wchar_h=yes
15463 else
15464 echo "$ac_t""no" 1>&6
15465 ac_has_wchar_h=no
15467 done
15469 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
15470 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
15471 echo "configure:15472: checking for wctype.h" >&5
15472 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15473 echo $ac_n "(cached) $ac_c" 1>&6
15474 else
15475 cat > conftest.$ac_ext <<EOF
15476 #line 15477 "configure"
15477 #include "confdefs.h"
15478 #include <wctype.h>
15480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15481 { (eval echo configure:15482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15483 if test -z "$ac_err"; then
15484 rm -rf conftest*
15485 eval "ac_cv_header_$ac_safe=yes"
15486 else
15487 echo "$ac_err" >&5
15488 echo "configure: failed program was:" >&5
15489 cat conftest.$ac_ext >&5
15490 rm -rf conftest*
15491 eval "ac_cv_header_$ac_safe=no"
15493 rm -f conftest*
15495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15496 echo "$ac_t""yes" 1>&6
15497 ac_has_wctype_h=yes
15498 else
15499 echo "$ac_t""no" 1>&6
15500 ac_has_wctype_h=no
15504 if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
15505 && test x"$enable_c_mbchar" != xno; then
15507 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
15508 echo "configure:15509: checking for WCHAR_MIN and WCHAR_MAX" >&5
15509 cat > conftest.$ac_ext <<EOF
15510 #line 15511 "configure"
15511 #include "confdefs.h"
15512 #include <wchar.h>
15513 int main() {
15514 int i = WCHAR_MIN; int j = WCHAR_MAX;
15515 ; return 0; }
15517 if { (eval echo configure:15518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15518 rm -rf conftest*
15519 has_wchar_minmax=yes
15520 else
15521 echo "configure: failed program was:" >&5
15522 cat conftest.$ac_ext >&5
15523 rm -rf conftest*
15524 has_wchar_minmax=no
15526 rm -f conftest*
15527 echo "$ac_t""$has_wchar_minmax" 1>&6
15529 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
15530 echo "configure:15531: checking for WEOF" >&5
15531 cat > conftest.$ac_ext <<EOF
15532 #line 15533 "configure"
15533 #include "confdefs.h"
15535 #include <wchar.h>
15536 #include <stddef.h>
15537 int main() {
15538 wint_t i = WEOF;
15539 ; return 0; }
15541 if { (eval echo configure:15542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15542 rm -rf conftest*
15543 has_weof=yes
15544 else
15545 echo "configure: failed program was:" >&5
15546 cat conftest.$ac_ext >&5
15547 rm -rf conftest*
15548 has_weof=no
15550 rm -f conftest*
15551 echo "$ac_t""$has_weof" 1>&6
15553 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
15554 wcsrtombs mbsrtowcs
15556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15557 echo "configure:15558: checking for $ac_func" >&5
15558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15559 echo $ac_n "(cached) $ac_c" 1>&6
15560 else
15561 cat > conftest.$ac_ext <<EOF
15562 #line 15563 "configure"
15563 #include "confdefs.h"
15564 /* System header to define __stub macros and hopefully few prototypes,
15565 which can conflict with char $ac_func(); below. */
15566 #include <assert.h>
15567 /* Override any gcc2 internal prototype to avoid an error. */
15568 /* We use char because int might match the return type of a gcc2
15569 builtin and then its argument prototype would still apply. */
15570 char $ac_func();
15572 int main() {
15574 /* The GNU C library defines this for functions which it implements
15575 to always fail with ENOSYS. Some functions are actually named
15576 something starting with __ and the normal name is an alias. */
15577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15578 choke me
15579 #else
15580 $ac_func();
15581 #endif
15583 ; return 0; }
15585 if { (eval echo configure:15586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15586 rm -rf conftest*
15587 eval "ac_cv_func_$ac_func=yes"
15588 else
15589 echo "configure: failed program was:" >&5
15590 cat conftest.$ac_ext >&5
15591 rm -rf conftest*
15592 eval "ac_cv_func_$ac_func=no"
15594 rm -f conftest*
15597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15598 echo "$ac_t""yes" 1>&6
15599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15600 cat >> confdefs.h <<EOF
15601 #define $ac_tr_func 1
15603 ac_wfuncs=yes
15604 else
15605 echo "$ac_t""no" 1>&6
15606 ac_wfuncs=no
15608 done
15611 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
15612 echo "configure:15613: checking for ISO C99 wchar_t support" >&5
15613 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
15614 && test x"$ac_wfuncs" = xyes; then
15615 ac_isoC99_wchar_t=yes
15616 else
15617 ac_isoC99_wchar_t=no
15619 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
15621 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
15622 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
15623 echo "configure:15624: checking for iconv.h" >&5
15624 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15625 echo $ac_n "(cached) $ac_c" 1>&6
15626 else
15627 cat > conftest.$ac_ext <<EOF
15628 #line 15629 "configure"
15629 #include "confdefs.h"
15630 #include <iconv.h>
15632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15633 { (eval echo configure:15634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15635 if test -z "$ac_err"; then
15636 rm -rf conftest*
15637 eval "ac_cv_header_$ac_safe=yes"
15638 else
15639 echo "$ac_err" >&5
15640 echo "configure: failed program was:" >&5
15641 cat conftest.$ac_ext >&5
15642 rm -rf conftest*
15643 eval "ac_cv_header_$ac_safe=no"
15645 rm -f conftest*
15647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15648 echo "$ac_t""yes" 1>&6
15649 ac_has_iconv_h=yes
15650 else
15651 echo "$ac_t""no" 1>&6
15652 ac_has_iconv_h=no
15655 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
15656 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
15657 echo "configure:15658: checking for langinfo.h" >&5
15658 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15659 echo $ac_n "(cached) $ac_c" 1>&6
15660 else
15661 cat > conftest.$ac_ext <<EOF
15662 #line 15663 "configure"
15663 #include "confdefs.h"
15664 #include <langinfo.h>
15666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15667 { (eval echo configure:15668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15668 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15669 if test -z "$ac_err"; then
15670 rm -rf conftest*
15671 eval "ac_cv_header_$ac_safe=yes"
15672 else
15673 echo "$ac_err" >&5
15674 echo "configure: failed program was:" >&5
15675 cat conftest.$ac_ext >&5
15676 rm -rf conftest*
15677 eval "ac_cv_header_$ac_safe=no"
15679 rm -f conftest*
15681 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15682 echo "$ac_t""yes" 1>&6
15683 ac_has_langinfo_h=yes
15684 else
15685 echo "$ac_t""no" 1>&6
15686 ac_has_langinfo_h=no
15690 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
15691 echo "configure:15692: checking for iconv in -liconv" >&5
15692 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
15693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15694 echo $ac_n "(cached) $ac_c" 1>&6
15695 else
15696 ac_save_LIBS="$LIBS"
15697 LIBS="-liconv $LIBS"
15698 cat > conftest.$ac_ext <<EOF
15699 #line 15700 "configure"
15700 #include "confdefs.h"
15701 /* Override any gcc2 internal prototype to avoid an error. */
15702 /* We use char because int might match the return type of a gcc2
15703 builtin and then its argument prototype would still apply. */
15704 char iconv();
15706 int main() {
15707 iconv()
15708 ; return 0; }
15710 if { (eval echo configure:15711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15711 rm -rf conftest*
15712 eval "ac_cv_lib_$ac_lib_var=yes"
15713 else
15714 echo "configure: failed program was:" >&5
15715 cat conftest.$ac_ext >&5
15716 rm -rf conftest*
15717 eval "ac_cv_lib_$ac_lib_var=no"
15719 rm -f conftest*
15720 LIBS="$ac_save_LIBS"
15723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15724 echo "$ac_t""yes" 1>&6
15725 libiconv="-liconv"
15726 else
15727 echo "$ac_t""no" 1>&6
15730 ac_save_LIBS="$LIBS"
15731 LIBS="$LIBS $libiconv"
15733 for ac_func in iconv_open iconv_close iconv nl_langinfo
15735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15736 echo "configure:15737: checking for $ac_func" >&5
15737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15738 echo $ac_n "(cached) $ac_c" 1>&6
15739 else
15740 cat > conftest.$ac_ext <<EOF
15741 #line 15742 "configure"
15742 #include "confdefs.h"
15743 /* System header to define __stub macros and hopefully few prototypes,
15744 which can conflict with char $ac_func(); below. */
15745 #include <assert.h>
15746 /* Override any gcc2 internal prototype to avoid an error. */
15747 /* We use char because int might match the return type of a gcc2
15748 builtin and then its argument prototype would still apply. */
15749 char $ac_func();
15751 int main() {
15753 /* The GNU C library defines this for functions which it implements
15754 to always fail with ENOSYS. Some functions are actually named
15755 something starting with __ and the normal name is an alias. */
15756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15757 choke me
15758 #else
15759 $ac_func();
15760 #endif
15762 ; return 0; }
15764 if { (eval echo configure:15765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15765 rm -rf conftest*
15766 eval "ac_cv_func_$ac_func=yes"
15767 else
15768 echo "configure: failed program was:" >&5
15769 cat conftest.$ac_ext >&5
15770 rm -rf conftest*
15771 eval "ac_cv_func_$ac_func=no"
15773 rm -f conftest*
15776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15777 echo "$ac_t""yes" 1>&6
15778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15779 cat >> confdefs.h <<EOF
15780 #define $ac_tr_func 1
15783 ac_XPG2funcs=yes
15784 else
15785 echo "$ac_t""no" 1>&6
15786 ac_XPG2funcs=no
15788 done
15791 LIBS="$ac_save_LIBS"
15793 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
15794 echo "configure:15795: checking for XPG2 wchar_t support" >&5
15795 if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
15796 && test x"$ac_XPG2funcs" = xyes; then
15797 ac_XPG2_wchar_t=yes
15798 else
15799 ac_XPG2_wchar_t=no
15801 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
15803 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
15804 echo "configure:15805: checking for enabled wchar_t specializations" >&5
15805 if test x"$ac_isoC99_wchar_t" = xyes \
15806 && test x"$ac_XPG2_wchar_t" = xyes; then
15807 cat >> confdefs.h <<\EOF
15808 #define _GLIBCPP_USE_WCHAR_T 1
15811 echo "$ac_t"""yes"" 1>&6
15812 else
15813 echo "$ac_t"""no"" 1>&6
15815 else
15816 echo "configure: warning: wchar_t support disabled." 1>&2
15820 ac_test_CXXFLAGS="${CXXFLAGS+set}"
15821 ac_save_CXXFLAGS="$CXXFLAGS"
15822 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
15824 for ac_func in strtof
15826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15827 echo "configure:15828: checking for $ac_func" >&5
15828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15829 echo $ac_n "(cached) $ac_c" 1>&6
15830 else
15831 cat > conftest.$ac_ext <<EOF
15832 #line 15833 "configure"
15833 #include "confdefs.h"
15834 /* System header to define __stub macros and hopefully few prototypes,
15835 which can conflict with char $ac_func(); below. */
15836 #include <assert.h>
15837 /* Override any gcc2 internal prototype to avoid an error. */
15838 /* We use char because int might match the return type of a gcc2
15839 builtin and then its argument prototype would still apply. */
15840 char $ac_func();
15842 int main() {
15844 /* The GNU C library defines this for functions which it implements
15845 to always fail with ENOSYS. Some functions are actually named
15846 something starting with __ and the normal name is an alias. */
15847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15848 choke me
15849 #else
15850 $ac_func();
15851 #endif
15853 ; return 0; }
15855 if { (eval echo configure:15856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15856 rm -rf conftest*
15857 eval "ac_cv_func_$ac_func=yes"
15858 else
15859 echo "configure: failed program was:" >&5
15860 cat conftest.$ac_ext >&5
15861 rm -rf conftest*
15862 eval "ac_cv_func_$ac_func=no"
15864 rm -f conftest*
15867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15868 echo "$ac_t""yes" 1>&6
15869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15870 cat >> confdefs.h <<EOF
15871 #define $ac_tr_func 1
15874 else
15875 echo "$ac_t""no" 1>&6
15877 done
15880 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
15881 echo "configure:15882: checking for strtold declaration" >&5
15882 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
15883 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
15884 echo $ac_n "(cached) $ac_c" 1>&6
15885 else
15888 ac_ext=C
15889 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15890 ac_cpp='$CXXCPP $CPPFLAGS'
15891 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15892 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15893 cross_compiling=$ac_cv_prog_cxx_cross
15895 cat > conftest.$ac_ext <<EOF
15896 #line 15897 "configure"
15897 #include "confdefs.h"
15898 #include <stdlib.h>
15899 int main() {
15900 strtold(0, 0);
15901 ; return 0; }
15903 if { (eval echo configure:15904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15904 rm -rf conftest*
15905 glibcpp_cv_func_strtold_use=yes
15906 else
15907 echo "configure: failed program was:" >&5
15908 cat conftest.$ac_ext >&5
15909 rm -rf conftest*
15910 glibcpp_cv_func_strtold_use=no
15912 rm -f conftest*
15913 ac_ext=c
15914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15915 ac_cpp='$CPP $CPPFLAGS'
15916 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15917 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15918 cross_compiling=$ac_cv_prog_cc_cross
15924 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
15925 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
15926 for ac_func in strtold
15928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15929 echo "configure:15930: checking for $ac_func" >&5
15930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15931 echo $ac_n "(cached) $ac_c" 1>&6
15932 else
15933 cat > conftest.$ac_ext <<EOF
15934 #line 15935 "configure"
15935 #include "confdefs.h"
15936 /* System header to define __stub macros and hopefully few prototypes,
15937 which can conflict with char $ac_func(); below. */
15938 #include <assert.h>
15939 /* Override any gcc2 internal prototype to avoid an error. */
15940 /* We use char because int might match the return type of a gcc2
15941 builtin and then its argument prototype would still apply. */
15942 char $ac_func();
15944 int main() {
15946 /* The GNU C library defines this for functions which it implements
15947 to always fail with ENOSYS. Some functions are actually named
15948 something starting with __ and the normal name is an alias. */
15949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15950 choke me
15951 #else
15952 $ac_func();
15953 #endif
15955 ; return 0; }
15957 if { (eval echo configure:15958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15958 rm -rf conftest*
15959 eval "ac_cv_func_$ac_func=yes"
15960 else
15961 echo "configure: failed program was:" >&5
15962 cat conftest.$ac_ext >&5
15963 rm -rf conftest*
15964 eval "ac_cv_func_$ac_func=no"
15966 rm -f conftest*
15969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15970 echo "$ac_t""yes" 1>&6
15971 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15972 cat >> confdefs.h <<EOF
15973 #define $ac_tr_func 1
15976 else
15977 echo "$ac_t""no" 1>&6
15979 done
15983 for ac_func in drand48
15985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15986 echo "configure:15987: checking for $ac_func" >&5
15987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15988 echo $ac_n "(cached) $ac_c" 1>&6
15989 else
15990 cat > conftest.$ac_ext <<EOF
15991 #line 15992 "configure"
15992 #include "confdefs.h"
15993 /* System header to define __stub macros and hopefully few prototypes,
15994 which can conflict with char $ac_func(); below. */
15995 #include <assert.h>
15996 /* Override any gcc2 internal prototype to avoid an error. */
15997 /* We use char because int might match the return type of a gcc2
15998 builtin and then its argument prototype would still apply. */
15999 char $ac_func();
16001 int main() {
16003 /* The GNU C library defines this for functions which it implements
16004 to always fail with ENOSYS. Some functions are actually named
16005 something starting with __ and the normal name is an alias. */
16006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16007 choke me
16008 #else
16009 $ac_func();
16010 #endif
16012 ; return 0; }
16014 if { (eval echo configure:16015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16015 rm -rf conftest*
16016 eval "ac_cv_func_$ac_func=yes"
16017 else
16018 echo "configure: failed program was:" >&5
16019 cat conftest.$ac_ext >&5
16020 rm -rf conftest*
16021 eval "ac_cv_func_$ac_func=no"
16023 rm -f conftest*
16026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16027 echo "$ac_t""yes" 1>&6
16028 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16029 cat >> confdefs.h <<EOF
16030 #define $ac_tr_func 1
16033 else
16034 echo "$ac_t""no" 1>&6
16036 done
16039 CXXFLAGS="$ac_save_CXXFLAGS"
16042 cat > conftest.$ac_ext <<EOF
16043 #line 16044 "configure"
16044 #include "confdefs.h"
16046 #include <setjmp.h>
16048 int main() {
16049 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16050 ; return 0; }
16052 if { (eval echo configure:16053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16053 rm -rf conftest*
16054 cat >> confdefs.h <<\EOF
16055 #define HAVE_SIGSETJMP 1
16058 else
16059 echo "configure: failed program was:" >&5
16060 cat conftest.$ac_ext >&5
16062 rm -f conftest*
16064 for ac_hdr in unistd.h
16066 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16068 echo "configure:16069: checking for $ac_hdr" >&5
16069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16070 echo $ac_n "(cached) $ac_c" 1>&6
16071 else
16072 cat > conftest.$ac_ext <<EOF
16073 #line 16074 "configure"
16074 #include "confdefs.h"
16075 #include <$ac_hdr>
16077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16078 { (eval echo configure:16079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16080 if test -z "$ac_err"; then
16081 rm -rf conftest*
16082 eval "ac_cv_header_$ac_safe=yes"
16083 else
16084 echo "$ac_err" >&5
16085 echo "configure: failed program was:" >&5
16086 cat conftest.$ac_ext >&5
16087 rm -rf conftest*
16088 eval "ac_cv_header_$ac_safe=no"
16090 rm -f conftest*
16092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16093 echo "$ac_t""yes" 1>&6
16094 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16095 cat >> confdefs.h <<EOF
16096 #define $ac_tr_hdr 1
16099 else
16100 echo "$ac_t""no" 1>&6
16102 done
16104 for ac_func in getpagesize
16106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16107 echo "configure:16108: checking for $ac_func" >&5
16108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16109 echo $ac_n "(cached) $ac_c" 1>&6
16110 else
16111 cat > conftest.$ac_ext <<EOF
16112 #line 16113 "configure"
16113 #include "confdefs.h"
16114 /* System header to define __stub macros and hopefully few prototypes,
16115 which can conflict with char $ac_func(); below. */
16116 #include <assert.h>
16117 /* Override any gcc2 internal prototype to avoid an error. */
16118 /* We use char because int might match the return type of a gcc2
16119 builtin and then its argument prototype would still apply. */
16120 char $ac_func();
16122 int main() {
16124 /* The GNU C library defines this for functions which it implements
16125 to always fail with ENOSYS. Some functions are actually named
16126 something starting with __ and the normal name is an alias. */
16127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16128 choke me
16129 #else
16130 $ac_func();
16131 #endif
16133 ; return 0; }
16135 if { (eval echo configure:16136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16136 rm -rf conftest*
16137 eval "ac_cv_func_$ac_func=yes"
16138 else
16139 echo "configure: failed program was:" >&5
16140 cat conftest.$ac_ext >&5
16141 rm -rf conftest*
16142 eval "ac_cv_func_$ac_func=no"
16144 rm -f conftest*
16147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16148 echo "$ac_t""yes" 1>&6
16149 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16150 cat >> confdefs.h <<EOF
16151 #define $ac_tr_func 1
16154 else
16155 echo "$ac_t""no" 1>&6
16157 done
16159 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
16160 echo "configure:16161: checking for working mmap" >&5
16161 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
16162 echo $ac_n "(cached) $ac_c" 1>&6
16163 else
16164 if test "$cross_compiling" = yes; then
16165 ac_cv_func_mmap_fixed_mapped=no
16166 else
16167 cat > conftest.$ac_ext <<EOF
16168 #line 16169 "configure"
16169 #include "confdefs.h"
16171 /* Thanks to Mike Haertel and Jim Avera for this test.
16172 Here is a matrix of mmap possibilities:
16173 mmap private not fixed
16174 mmap private fixed at somewhere currently unmapped
16175 mmap private fixed at somewhere already mapped
16176 mmap shared not fixed
16177 mmap shared fixed at somewhere currently unmapped
16178 mmap shared fixed at somewhere already mapped
16179 For private mappings, we should verify that changes cannot be read()
16180 back from the file, nor mmap's back from the file at a different
16181 address. (There have been systems where private was not correctly
16182 implemented like the infamous i386 svr4.0, and systems where the
16183 VM page cache was not coherent with the filesystem buffer cache
16184 like early versions of FreeBSD and possibly contemporary NetBSD.)
16185 For shared mappings, we should conversely verify that changes get
16186 propogated back to all the places they're supposed to be.
16188 Grep wants private fixed already mapped.
16189 The main things grep needs to know about mmap are:
16190 * does it exist and is it safe to write into the mmap'd area
16191 * how to use it (BSD variants) */
16192 #include <sys/types.h>
16193 #include <fcntl.h>
16194 #include <sys/mman.h>
16196 /* This mess was copied from the GNU getpagesize.h. */
16197 #ifndef HAVE_GETPAGESIZE
16198 # ifdef HAVE_UNISTD_H
16199 # include <unistd.h>
16200 # endif
16202 /* Assume that all systems that can run configure have sys/param.h. */
16203 # ifndef HAVE_SYS_PARAM_H
16204 # define HAVE_SYS_PARAM_H 1
16205 # endif
16207 # ifdef _SC_PAGESIZE
16208 # define getpagesize() sysconf(_SC_PAGESIZE)
16209 # else /* no _SC_PAGESIZE */
16210 # ifdef HAVE_SYS_PARAM_H
16211 # include <sys/param.h>
16212 # ifdef EXEC_PAGESIZE
16213 # define getpagesize() EXEC_PAGESIZE
16214 # else /* no EXEC_PAGESIZE */
16215 # ifdef NBPG
16216 # define getpagesize() NBPG * CLSIZE
16217 # ifndef CLSIZE
16218 # define CLSIZE 1
16219 # endif /* no CLSIZE */
16220 # else /* no NBPG */
16221 # ifdef NBPC
16222 # define getpagesize() NBPC
16223 # else /* no NBPC */
16224 # ifdef PAGESIZE
16225 # define getpagesize() PAGESIZE
16226 # endif /* PAGESIZE */
16227 # endif /* no NBPC */
16228 # endif /* no NBPG */
16229 # endif /* no EXEC_PAGESIZE */
16230 # else /* no HAVE_SYS_PARAM_H */
16231 # define getpagesize() 8192 /* punt totally */
16232 # endif /* no HAVE_SYS_PARAM_H */
16233 # endif /* no _SC_PAGESIZE */
16235 #endif /* no HAVE_GETPAGESIZE */
16237 #ifdef __cplusplus
16238 extern "C" { void *malloc(unsigned); }
16239 #else
16240 char *malloc();
16241 #endif
16244 main()
16246 char *data, *data2, *data3;
16247 int i, pagesize;
16248 int fd;
16250 pagesize = getpagesize();
16253 * First, make a file with some known garbage in it.
16255 data = malloc(pagesize);
16256 if (!data)
16257 exit(1);
16258 for (i = 0; i < pagesize; ++i)
16259 *(data + i) = rand();
16260 umask(0);
16261 fd = creat("conftestmmap", 0600);
16262 if (fd < 0)
16263 exit(1);
16264 if (write(fd, data, pagesize) != pagesize)
16265 exit(1);
16266 close(fd);
16269 * Next, try to mmap the file at a fixed address which
16270 * already has something else allocated at it. If we can,
16271 * also make sure that we see the same garbage.
16273 fd = open("conftestmmap", O_RDWR);
16274 if (fd < 0)
16275 exit(1);
16276 data2 = malloc(2 * pagesize);
16277 if (!data2)
16278 exit(1);
16279 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16280 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
16281 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16282 exit(1);
16283 for (i = 0; i < pagesize; ++i)
16284 if (*(data + i) != *(data2 + i))
16285 exit(1);
16288 * Finally, make sure that changes to the mapped area
16289 * do not percolate back to the file as seen by read().
16290 * (This is a bug on some variants of i386 svr4.0.)
16292 for (i = 0; i < pagesize; ++i)
16293 *(data2 + i) = *(data2 + i) + 1;
16294 data3 = malloc(pagesize);
16295 if (!data3)
16296 exit(1);
16297 if (read(fd, data3, pagesize) != pagesize)
16298 exit(1);
16299 for (i = 0; i < pagesize; ++i)
16300 if (*(data + i) != *(data3 + i))
16301 exit(1);
16302 close(fd);
16303 unlink("conftestmmap");
16304 exit(0);
16308 if { (eval echo configure:16309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16309 then
16310 ac_cv_func_mmap_fixed_mapped=yes
16311 else
16312 echo "configure: failed program was:" >&5
16313 cat conftest.$ac_ext >&5
16314 rm -fr conftest*
16315 ac_cv_func_mmap_fixed_mapped=no
16317 rm -fr conftest*
16322 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
16323 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16324 cat >> confdefs.h <<\EOF
16325 #define HAVE_MMAP 1
16332 # Now that ctype is determined for all possible targets, we can do this...
16340 if test "$NULL_TARGET" = yes; then
16341 NULL_TARGET_TRUE=
16342 NULL_TARGET_FALSE='#'
16343 else
16344 NULL_TARGET_TRUE='#'
16345 NULL_TARGET_FALSE=
16349 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
16350 NATIVE_TRUE=
16351 NATIVE_FALSE='#'
16352 else
16353 NATIVE_TRUE='#'
16354 NATIVE_FALSE=
16358 if test "$CANADIAN" = yes; then
16359 CANADIAN_TRUE=
16360 CANADIAN_FALSE='#'
16361 else
16362 CANADIAN_TRUE='#'
16363 CANADIAN_FALSE=
16366 cat > confcache <<\EOF
16367 # This file is a shell script that caches the results of configure
16368 # tests run on this system so they can be shared between configure
16369 # scripts and configure runs. It is not useful on other systems.
16370 # If it contains results you don't want to keep, you may remove or edit it.
16372 # By default, configure uses ./config.cache as the cache file,
16373 # creating it if it does not exist already. You can give configure
16374 # the --cache-file=FILE option to use a different cache file; that is
16375 # what configure does when it calls configure scripts in
16376 # subdirectories, so they share the cache.
16377 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16378 # config.status only pays attention to the cache file if you give it the
16379 # --recheck option to rerun configure.
16382 # The following way of writing the cache mishandles newlines in values,
16383 # but we know of no workaround that is simple, portable, and efficient.
16384 # So, don't put newlines in cache variables' values.
16385 # Ultrix sh set writes to stderr and can't be redirected directly,
16386 # and sets the high bit in the cache file unless we assign to the vars.
16387 (set) 2>&1 |
16388 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16389 *ac_space=\ *)
16390 # `set' does not quote correctly, so add quotes (double-quote substitution
16391 # turns \\\\ into \\, and sed turns \\ into \).
16392 sed -n \
16393 -e "s/'/'\\\\''/g" \
16394 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16397 # `set' quotes correctly as required by POSIX, so do not add quotes.
16398 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16400 esac >> confcache
16401 if cmp -s $cache_file confcache; then
16403 else
16404 if test -w $cache_file; then
16405 echo "updating cache $cache_file"
16406 cat confcache > $cache_file
16407 else
16408 echo "not updating unwritable cache $cache_file"
16411 rm -f confcache
16414 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
16415 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
16416 echo "configure:16417: checking for locale.h" >&5
16417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16418 echo $ac_n "(cached) $ac_c" 1>&6
16419 else
16420 cat > conftest.$ac_ext <<EOF
16421 #line 16422 "configure"
16422 #include "confdefs.h"
16423 #include <locale.h>
16425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16426 { (eval echo configure:16427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16428 if test -z "$ac_err"; then
16429 rm -rf conftest*
16430 eval "ac_cv_header_$ac_safe=yes"
16431 else
16432 echo "$ac_err" >&5
16433 echo "configure: failed program was:" >&5
16434 cat conftest.$ac_ext >&5
16435 rm -rf conftest*
16436 eval "ac_cv_header_$ac_safe=no"
16438 rm -f conftest*
16440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16441 echo "$ac_t""yes" 1>&6
16443 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16444 echo "configure:16445: checking for LC_MESSAGES" >&5
16445 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16446 echo $ac_n "(cached) $ac_c" 1>&6
16447 else
16448 cat > conftest.$ac_ext <<EOF
16449 #line 16450 "configure"
16450 #include "confdefs.h"
16451 #include <locale.h>
16452 int main() {
16453 return LC_MESSAGES
16454 ; return 0; }
16456 if { (eval echo configure:16457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16457 rm -rf conftest*
16458 ac_cv_val_LC_MESSAGES=yes
16459 else
16460 echo "configure: failed program was:" >&5
16461 cat conftest.$ac_ext >&5
16462 rm -rf conftest*
16463 ac_cv_val_LC_MESSAGES=no
16465 rm -f conftest*
16468 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16469 if test $ac_cv_val_LC_MESSAGES = yes; then
16470 cat >> confdefs.h <<\EOF
16471 #define HAVE_LC_MESSAGES 1
16476 else
16477 echo "$ac_t""no" 1>&6
16482 if test "${multilib}" = "yes"; then
16483 multilib_arg="--enable-multilib"
16484 else
16485 multilib_arg=
16489 # Generate the various Makefiles, include files, and scripts.
16491 # Needed so that g++ can find the correct include subdir automatically.
16492 INTERFACE=v3
16494 # Export all the install information
16497 glibcpp_toolexecdir=no
16498 glibcpp_toolexeclibdir=no
16500 # Export build and source directories.
16501 tmp_builddir=`pwd`
16502 glibcpp_builddir=$tmp_builddir
16503 glibcpp_srcdir=${srcdir}
16504 glibcpp_prefixdir=${prefix}
16506 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
16507 echo "configure:16508: checking for interface version number" >&5
16508 libstdcxx_interface=$INTERFACE
16509 echo "$ac_t""$libstdcxx_interface" 1>&6
16511 # Process the option --with-gxx-include-dir=<path to include-files directory>
16512 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
16513 echo "configure:16514: checking for --with-gxx-include-dir" >&5
16514 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
16515 if test "${with_gxx_include_dir+set}" = set; then
16516 withval="$with_gxx_include_dir"
16517 case "${withval}" in
16518 yes)
16519 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
16520 gxx_include_dir=no
16523 gxx_include_dir=no
16526 gxx_include_dir=${withval}
16528 esac
16529 else
16530 gxx_include_dir=no
16533 echo "$ac_t""$gxx_include_dir" 1>&6
16535 # Process the option "--enable-version-specific-runtime-libs"
16536 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
16537 echo "configure:16538: checking for --enable-version-specific-runtime-libs" >&5
16538 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16539 if test "${enable_version_specific_runtime_libs+set}" = set; then
16540 enableval="$enable_version_specific_runtime_libs"
16541 version_specific_libs=yes
16542 # Need the gcc compiler version to know where to install libraries
16543 # and header files if --enable-version-specific-runtime-libs option
16544 # is selected.
16545 gcc_version_trigger=${srcdir}/../gcc/version.c
16546 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
16547 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
16548 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
16549 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16550 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}
16552 else
16553 version_specific_libs=no
16556 echo "$ac_t""$version_specific_libs" 1>&6
16558 # Default case for install directory for include files.
16559 if test x"$version_specific_libs" = x"no" \
16560 && test x"$gxx_include_dir" = x"no"; then
16561 gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
16564 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
16565 # Install a library built with a cross compiler in tooldir, not libdir.
16566 if test x"$glibcpp_toolexecdir" = x"no"; then
16567 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
16568 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
16569 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
16570 else
16571 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16572 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
16576 echo $ac_n "checking for install location""... $ac_c" 1>&6
16577 echo "configure:16578: checking for install location" >&5
16578 echo "$ac_t""$gxx_include_dir" 1>&6
16588 # Export all the include and flag information to makefiles.
16590 # Root level of the include sources.
16591 GLIBCPP_INCLUDE_DIR='$(top_srcdir)/include'
16593 # Can either use include/c or include/c_std to grab "C" headers. This
16594 # variable is set to the include directory currently in use.
16595 # set with C_INCLUDE_DIR in GLIBCPP_ENABLE_CHEADERS
16597 # Passed down for canadian crosses.
16598 if test x"$CANADIAN" = xyes; then
16599 TOPLEVEL_INCLUDES='-I$(includedir)'
16602 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
16604 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
16606 #if GLIBCPP_NEED_LIBIO
16607 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
16608 #else
16609 #LIBIO_INCLUDES='-I$(top_srcdir)/libio'
16610 #endif
16612 #if GLIBCPP_USE_CSHADOW
16613 # CSHADOW_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR) \
16614 # -I$(top_blddir)/cshadow'
16615 #else
16616 CSTD_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR)'
16617 #endif
16619 # Now, export this to all the little Makefiles....
16628 # Optimization flags that are probably a good idea for thrill-seekers. Just
16629 # uncomment the lines below and make, everything else is ready to go...
16630 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
16631 OPTIMIZE_CXXFLAGS=
16634 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
16638 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
16639 grep "enable shared" > /dev/null; then
16640 LIBSUPCXX_PICFLAGS=-prefer-pic
16641 else
16642 LIBSUPCXX_PICFLAGS=
16646 # This should be done by mkincludedir, but hack around it now.
16647 blddir=`pwd`
16648 echo "checking for $blddir/include"
16650 if test ! -d "$blddir/include"; then
16651 mkdir "$blddir/include"
16654 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
16655 # and libsupc++/Makefile.am so that multilib installs will end up
16656 # installed in the correct place. To work around this not being passed
16657 # down from config-ml.in -> top_srcdir/Makefile.am ->
16658 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
16659 trap '' 1 2 15
16660 cat > confcache <<\EOF
16661 # This file is a shell script that caches the results of configure
16662 # tests run on this system so they can be shared between configure
16663 # scripts and configure runs. It is not useful on other systems.
16664 # If it contains results you don't want to keep, you may remove or edit it.
16666 # By default, configure uses ./config.cache as the cache file,
16667 # creating it if it does not exist already. You can give configure
16668 # the --cache-file=FILE option to use a different cache file; that is
16669 # what configure does when it calls configure scripts in
16670 # subdirectories, so they share the cache.
16671 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16672 # config.status only pays attention to the cache file if you give it the
16673 # --recheck option to rerun configure.
16676 # The following way of writing the cache mishandles newlines in values,
16677 # but we know of no workaround that is simple, portable, and efficient.
16678 # So, don't put newlines in cache variables' values.
16679 # Ultrix sh set writes to stderr and can't be redirected directly,
16680 # and sets the high bit in the cache file unless we assign to the vars.
16681 (set) 2>&1 |
16682 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16683 *ac_space=\ *)
16684 # `set' does not quote correctly, so add quotes (double-quote substitution
16685 # turns \\\\ into \\, and sed turns \\ into \).
16686 sed -n \
16687 -e "s/'/'\\\\''/g" \
16688 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16691 # `set' quotes correctly as required by POSIX, so do not add quotes.
16692 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16694 esac >> confcache
16695 if cmp -s $cache_file confcache; then
16697 else
16698 if test -w $cache_file; then
16699 echo "updating cache $cache_file"
16700 cat confcache > $cache_file
16701 else
16702 echo "not updating unwritable cache $cache_file"
16705 rm -f confcache
16707 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16709 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16710 # Let make expand exec_prefix.
16711 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16713 # Any assignment to VPATH causes Sun make to only execute
16714 # the first set of double-colon rules, so remove it if not needed.
16715 # If there is a colon in the path, we need to keep it.
16716 if test "x$srcdir" = x.; then
16717 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16720 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16722 DEFS=-DHAVE_CONFIG_H
16724 # Without the "./", some shells look in PATH for config.status.
16725 : ${CONFIG_STATUS=./config.status}
16727 echo creating $CONFIG_STATUS
16728 rm -f $CONFIG_STATUS
16729 cat > $CONFIG_STATUS <<EOF
16730 #! /bin/sh
16731 # Generated automatically by configure.
16732 # Run this file to recreate the current configuration.
16733 # This directory was configured as follows,
16734 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16736 # $0 $ac_configure_args
16738 # Compiler output produced by configure, useful for debugging
16739 # configure, is in ./config.log if it exists.
16741 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16742 for ac_option
16744 case "\$ac_option" in
16745 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16746 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16747 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16748 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16749 echo "$CONFIG_STATUS generated by autoconf version 2.13"
16750 exit 0 ;;
16751 -help | --help | --hel | --he | --h)
16752 echo "\$ac_cs_usage"; exit 0 ;;
16753 *) echo "\$ac_cs_usage"; exit 1 ;;
16754 esac
16755 done
16757 ac_given_srcdir=$srcdir
16758 ac_given_INSTALL="$INSTALL"
16760 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
16762 cat >> $CONFIG_STATUS <<EOF
16764 # Protect against being on the right side of a sed subst in config.status.
16765 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16766 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16767 $ac_vpsub
16768 $extrasub
16769 s%@SHELL@%$SHELL%g
16770 s%@CFLAGS@%$CFLAGS%g
16771 s%@CPPFLAGS@%$CPPFLAGS%g
16772 s%@CXXFLAGS@%$CXXFLAGS%g
16773 s%@FFLAGS@%$FFLAGS%g
16774 s%@DEFS@%$DEFS%g
16775 s%@LDFLAGS@%$LDFLAGS%g
16776 s%@LIBS@%$LIBS%g
16777 s%@exec_prefix@%$exec_prefix%g
16778 s%@prefix@%$prefix%g
16779 s%@program_transform_name@%$program_transform_name%g
16780 s%@bindir@%$bindir%g
16781 s%@sbindir@%$sbindir%g
16782 s%@libexecdir@%$libexecdir%g
16783 s%@datadir@%$datadir%g
16784 s%@sysconfdir@%$sysconfdir%g
16785 s%@sharedstatedir@%$sharedstatedir%g
16786 s%@localstatedir@%$localstatedir%g
16787 s%@libdir@%$libdir%g
16788 s%@includedir@%$includedir%g
16789 s%@oldincludedir@%$oldincludedir%g
16790 s%@infodir@%$infodir%g
16791 s%@mandir@%$mandir%g
16792 s%@toplevel_srcdir@%$toplevel_srcdir%g
16793 s%@host@%$host%g
16794 s%@host_alias@%$host_alias%g
16795 s%@host_cpu@%$host_cpu%g
16796 s%@host_vendor@%$host_vendor%g
16797 s%@host_os@%$host_os%g
16798 s%@target@%$target%g
16799 s%@target_alias@%$target_alias%g
16800 s%@target_cpu@%$target_cpu%g
16801 s%@target_vendor@%$target_vendor%g
16802 s%@target_os@%$target_os%g
16803 s%@build@%$build%g
16804 s%@build_alias@%$build_alias%g
16805 s%@build_cpu@%$build_cpu%g
16806 s%@build_vendor@%$build_vendor%g
16807 s%@build_os@%$build_os%g
16808 s%@glibcpp_basedir@%$glibcpp_basedir%g
16809 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16810 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16811 s%@INSTALL_DATA@%$INSTALL_DATA%g
16812 s%@PACKAGE@%$PACKAGE%g
16813 s%@VERSION@%$VERSION%g
16814 s%@ACLOCAL@%$ACLOCAL%g
16815 s%@AUTOCONF@%$AUTOCONF%g
16816 s%@AUTOMAKE@%$AUTOMAKE%g
16817 s%@AUTOHEADER@%$AUTOHEADER%g
16818 s%@MAKEINFO@%$MAKEINFO%g
16819 s%@SET_MAKE@%$SET_MAKE%g
16820 s%@CC@%$CC%g
16821 s%@glibcpp_CXX@%$glibcpp_CXX%g
16822 s%@AS@%$AS%g
16823 s%@AR@%$AR%g
16824 s%@RANLIB@%$RANLIB%g
16825 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
16826 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
16827 s%@MAINT@%$MAINT%g
16828 s%@EXEEXT@%$EXEEXT%g
16829 s%@LN_S@%$LN_S%g
16830 s%@OBJEXT@%$OBJEXT%g
16831 s%@STRIP@%$STRIP%g
16832 s%@LIBTOOL@%$LIBTOOL%g
16833 s%@CXXCPP@%$CXXCPP%g
16834 s%@enable_shared@%$enable_shared%g
16835 s%@enable_static@%$enable_static%g
16836 s%@ifGNUmake@%$ifGNUmake%g
16837 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
16838 s%@CPP@%$CPP%g
16839 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
16840 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
16841 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
16842 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
16843 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
16844 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
16845 s%@libio_la@%$libio_la%g
16846 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
16847 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
16848 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
16849 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
16850 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
16851 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
16852 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
16853 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
16854 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
16855 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
16856 s%@WERROR@%$WERROR%g
16857 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
16858 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
16859 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
16860 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
16861 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
16862 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
16863 s%@glibcpp_builddir@%$glibcpp_builddir%g
16864 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
16865 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
16866 s%@gxx_include_dir@%$gxx_include_dir%g
16867 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
16868 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
16869 s%@GLIBCPP_INCLUDE_DIR@%$GLIBCPP_INCLUDE_DIR%g
16870 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
16871 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
16872 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
16873 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
16874 s%@CSTD_INCLUDES@%$CSTD_INCLUDES%g
16875 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
16876 s%@WARN_FLAGS@%$WARN_FLAGS%g
16877 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
16879 CEOF
16882 cat >> $CONFIG_STATUS <<\EOF
16884 # Split the substitutions into bite-sized pieces for seds with
16885 # small command number limits, like on Digital OSF/1 and HP-UX.
16886 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16887 ac_file=1 # Number of current file.
16888 ac_beg=1 # First line for current file.
16889 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16890 ac_more_lines=:
16891 ac_sed_cmds=""
16892 while $ac_more_lines; do
16893 if test $ac_beg -gt 1; then
16894 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16895 else
16896 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16898 if test ! -s conftest.s$ac_file; then
16899 ac_more_lines=false
16900 rm -f conftest.s$ac_file
16901 else
16902 if test -z "$ac_sed_cmds"; then
16903 ac_sed_cmds="sed -f conftest.s$ac_file"
16904 else
16905 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16907 ac_file=`expr $ac_file + 1`
16908 ac_beg=$ac_end
16909 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16911 done
16912 if test -z "$ac_sed_cmds"; then
16913 ac_sed_cmds=cat
16917 cat >> $CONFIG_STATUS <<EOF
16919 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile mkcheck testsuite_flags"}
16921 cat >> $CONFIG_STATUS <<\EOF
16922 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16923 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16924 case "$ac_file" in
16925 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16926 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16927 *) ac_file_in="${ac_file}.in" ;;
16928 esac
16930 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16932 # Remove last slash and all that follows it. Not all systems have dirname.
16933 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16934 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16935 # The file is in a subdirectory.
16936 test ! -d "$ac_dir" && mkdir "$ac_dir"
16937 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16938 # A "../" for each directory in $ac_dir_suffix.
16939 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16940 else
16941 ac_dir_suffix= ac_dots=
16944 case "$ac_given_srcdir" in
16945 .) srcdir=.
16946 if test -z "$ac_dots"; then top_srcdir=.
16947 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16948 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16949 *) # Relative path.
16950 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16951 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16952 esac
16954 case "$ac_given_INSTALL" in
16955 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16956 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16957 esac
16959 echo creating "$ac_file"
16960 rm -f "$ac_file"
16961 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16962 case "$ac_file" in
16963 *Makefile*) ac_comsub="1i\\
16964 # $configure_input" ;;
16965 *) ac_comsub= ;;
16966 esac
16968 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16969 sed -e "$ac_comsub
16970 s%@configure_input@%$configure_input%g
16971 s%@srcdir@%$srcdir%g
16972 s%@top_srcdir@%$top_srcdir%g
16973 s%@INSTALL@%$INSTALL%g
16974 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16975 fi; done
16976 rm -f conftest.s*
16978 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16979 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16981 # ac_d sets the value in "#define NAME VALUE" lines.
16982 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16983 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16984 ac_dC='\3'
16985 ac_dD='%g'
16986 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16987 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16988 ac_uB='\([ ]\)%\1#\2define\3'
16989 ac_uC=' '
16990 ac_uD='\4%g'
16991 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16992 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16993 ac_eB='$%\1#\2define\3'
16994 ac_eC=' '
16995 ac_eD='%g'
16997 if test "${CONFIG_HEADERS+set}" != set; then
16999 cat >> $CONFIG_STATUS <<EOF
17000 CONFIG_HEADERS="config.h"
17002 cat >> $CONFIG_STATUS <<\EOF
17004 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17005 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17006 case "$ac_file" in
17007 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17008 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17009 *) ac_file_in="${ac_file}.in" ;;
17010 esac
17012 echo creating $ac_file
17014 rm -f conftest.frag conftest.in conftest.out
17015 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17016 cat $ac_file_inputs > conftest.in
17020 # Transform confdefs.h into a sed script conftest.vals that substitutes
17021 # the proper values into config.h.in to produce config.h. And first:
17022 # Protect against being on the right side of a sed subst in config.status.
17023 # Protect against being in an unquoted here document in config.status.
17024 rm -f conftest.vals
17025 cat > conftest.hdr <<\EOF
17026 s/[\\&%]/\\&/g
17027 s%[\\$`]%\\&%g
17028 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17029 s%ac_d%ac_u%gp
17030 s%ac_u%ac_e%gp
17032 sed -n -f conftest.hdr confdefs.h > conftest.vals
17033 rm -f conftest.hdr
17035 # This sed command replaces #undef with comments. This is necessary, for
17036 # example, in the case of _POSIX_SOURCE, which is predefined and required
17037 # on some systems where configure will not decide to define it.
17038 cat >> conftest.vals <<\EOF
17039 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17042 # Break up conftest.vals because some shells have a limit on
17043 # the size of here documents, and old seds have small limits too.
17045 rm -f conftest.tail
17046 while :
17048 ac_lines=`grep -c . conftest.vals`
17049 # grep -c gives empty output for an empty file on some AIX systems.
17050 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17051 # Write a limited-size here document to conftest.frag.
17052 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17053 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17054 echo 'CEOF
17055 sed -f conftest.frag conftest.in > conftest.out
17056 rm -f conftest.in
17057 mv conftest.out conftest.in
17058 ' >> $CONFIG_STATUS
17059 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17060 rm -f conftest.vals
17061 mv conftest.tail conftest.vals
17062 done
17063 rm -f conftest.vals
17065 cat >> $CONFIG_STATUS <<\EOF
17066 rm -f conftest.frag conftest.h
17067 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17068 cat conftest.in >> conftest.h
17069 rm -f conftest.in
17070 if cmp -s $ac_file conftest.h 2>/dev/null; then
17071 echo "$ac_file is unchanged"
17072 rm -f conftest.h
17073 else
17074 # Remove last slash and all that follows it. Not all systems have dirname.
17075 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17076 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17077 # The file is in a subdirectory.
17078 test ! -d "$ac_dir" && mkdir "$ac_dir"
17080 rm -f $ac_file
17081 mv conftest.h $ac_file
17083 fi; done
17087 cat >> $CONFIG_STATUS <<EOF
17088 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"
17089 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 \
17090 include/bits/ctype_base.h \
17091 include/bits/ctype_inline.h \
17092 include/bits/ctype_noninline.h include/bits/atomicity.h"
17095 cat >> $CONFIG_STATUS <<\EOF
17096 srcdir=$ac_given_srcdir
17097 while test -n "$ac_sources"; do
17098 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
17099 set $ac_sources; ac_source=$1; shift; ac_sources=$*
17101 echo "linking $srcdir/$ac_source to $ac_dest"
17103 if test ! -r $srcdir/$ac_source; then
17104 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
17106 rm -f $ac_dest
17108 # Make relative symlinks.
17109 # Remove last slash and all that follows it. Not all systems have dirname.
17110 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
17111 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
17112 # The dest file is in a subdirectory.
17113 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
17114 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
17115 # A "../" for each directory in $ac_dest_dir_suffix.
17116 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
17117 else
17118 ac_dest_dir_suffix= ac_dots=
17121 case "$srcdir" in
17122 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
17123 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
17124 esac
17126 # Make a symlink if possible; otherwise try a hard link.
17127 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17128 ln $srcdir/$ac_source $ac_dest; then :
17129 else
17130 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
17132 done
17134 cat >> $CONFIG_STATUS <<EOF
17136 srcdir=${srcdir}
17137 host=${host}
17138 target=${target}
17139 with_multisubdir=${with_multisubdir}
17140 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17141 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17142 glibcpp_basedir=${glibcpp_basedir}
17143 CC="${CC}"
17144 CXX="${CXX}"
17147 cat >> $CONFIG_STATUS <<\EOF
17148 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
17149 if test -n "$CONFIG_FILES"; then
17150 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
17151 grep '^MULTISUBDIR =' Makefile >> src/Makefile
17152 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
17154 chmod +x mkcheck
17155 chmod +x testsuite_flags
17157 exit 0
17159 chmod +x $CONFIG_STATUS
17160 rm -fr confdefs* $ac_clean_files
17161 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
17165 # Generate bits/c++config.h
17166 # NB: This must be the first generated file as others include it. . .
17167 $srcdir/mkc++config $blddir $srcdir
17169 # Generate bits/std_limits.h and src/limitsMEMBERS.cc
17170 if test ! -f stamp-limits; then
17171 $srcdir/mknumeric_limits $blddir $srcdir $xcompiling
17172 if test ! -f include/bits/std_limits.h; then
17173 echo "mknumeric_limits failed to execute properly: exiting"
17174 exit 1
17175 else
17176 touch stamp-limits
17181 # Sanity checking & User-visible messages.
17182 # Checks down here, otherwise they get scrolled off before
17183 # the user will notice.
17185 # Trying to get more people to read documentation. Possibly remove
17186 # check and warn all the time. There is no "informational" AC_MSG_
17187 # macro, so these are going to be printed even when --quiet/--silent
17188 # is given.
17189 if test ! -f stamp-sanity-warned; then
17190 touch stamp-sanity-warned
17191 echo ""
17192 echo "Please make certain that you read the installation information here:"
17193 echo " faster => ${srcdir}/docs/install.html"
17194 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
17195 echo ""
17196 echo "and the configuration information here:"
17197 echo " faster => ${srcdir}/docs/configopts.html"
17198 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
17199 echo ""
17200 echo "before proceeding with ${_cv_gnu_make_command}."
17201 echo ""