2001-02-28 Benjamin Kosnik <bkoz@redhat.com>
[official-gcc.git] / libstdc++-v3 / configure
blobd0ac9f4b826b76c454106e6517c5bb1c0b3e07d1
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-long-long turns on 'long long' [default=no]"
50 ac_help="$ac_help
51 --enable-cheaders construct "C" header files for
52 g++ [default=c_std]"
53 ac_help="$ac_help
54 --enable-threads enable thread usage for target GCC.
55 --enable-threads=LIB use LIB thread package for target GCC. [default=no]
57 ac_help="$ac_help
58 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
59 [default=none]"
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 CXX_libstdcxx 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 CXX_libstdcxx=$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_CXX_libstdcxx'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218 if test -n "$CXX_libstdcxx"; then
1219 ac_cv_prog_CXX_libstdcxx="$CXX_libstdcxx" # 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_CXX_libstdcxx="$ac_prog"
1227 break
1229 done
1230 IFS="$ac_save_ifs"
1233 CXX_libstdcxx="$ac_cv_prog_CXX_libstdcxx"
1234 if test -n "$CXX_libstdcxx"; then
1235 echo "$ac_t""$CXX_libstdcxx" 1>&6
1236 else
1237 echo "$ac_t""no" 1>&6
1240 test -n "$CXX_libstdcxx" && break
1241 done
1242 test -n "$CXX_libstdcxx" || CXX_libstdcxx="gcc"
1244 CXX=$CXX_libstdcxx
1246 test -z "$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=":"
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=":"
1433 # Find a good install program. We prefer a C program (faster),
1434 # so one script is as good as another. But avoid the broken or
1435 # incompatible versions:
1436 # SysV /etc/install, /usr/sbin/install
1437 # SunOS /usr/etc/install
1438 # IRIX /sbin/install
1439 # AIX /bin/install
1440 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1441 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1442 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1443 # ./install, which can be erroneously created by make from ./install.sh.
1444 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1445 echo "configure:1446: checking for a BSD compatible install" >&5
1446 if test -z "$INSTALL"; then
1447 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1448 echo $ac_n "(cached) $ac_c" 1>&6
1449 else
1450 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1451 for ac_dir in $PATH; do
1452 # Account for people who put trailing slashes in PATH elements.
1453 case "$ac_dir/" in
1454 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1456 # OSF1 and SCO ODT 3.0 have their own names for install.
1457 # Don't use installbsd from OSF since it installs stuff as root
1458 # by default.
1459 for ac_prog in ginstall scoinst install; do
1460 if test -f $ac_dir/$ac_prog; then
1461 if test $ac_prog = install &&
1462 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1463 # AIX install. It has an incompatible calling convention.
1465 else
1466 ac_cv_path_install="$ac_dir/$ac_prog -c"
1467 break 2
1470 done
1472 esac
1473 done
1474 IFS="$ac_save_IFS"
1477 if test "${ac_cv_path_install+set}" = set; then
1478 INSTALL="$ac_cv_path_install"
1479 else
1480 # As a last resort, use the slow shell script. We don't cache a
1481 # path for INSTALL within a source directory, because that will
1482 # break other packages using the cache if that directory is
1483 # removed, or if the path is relative.
1484 INSTALL="$ac_install_sh"
1487 echo "$ac_t""$INSTALL" 1>&6
1489 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1490 # It thinks the first close brace ends the variable substitution.
1491 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1493 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1495 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1498 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1499 echo "configure:1500: checking whether to enable maintainer-specific portions of Makefiles" >&5
1500 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1501 if test "${enable_maintainer_mode+set}" = set; then
1502 enableval="$enable_maintainer_mode"
1503 USE_MAINTAINER_MODE=$enableval
1504 else
1505 USE_MAINTAINER_MODE=no
1508 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1511 if test $USE_MAINTAINER_MODE = yes; then
1512 MAINTAINER_MODE_TRUE=
1513 MAINTAINER_MODE_FALSE='#'
1514 else
1515 MAINTAINER_MODE_TRUE='#'
1516 MAINTAINER_MODE_FALSE=
1518 MAINT=$MAINTAINER_MODE_TRUE
1522 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1523 # at least currently, we never actually build a program, so we never
1524 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1525 # fails, because we are probably configuring with a cross compiler
1526 # which cant create executables. So we include AC_EXEEXT to keep
1527 # automake happy, but we dont execute it, since we dont care about
1528 # the result.
1529 if false; then
1532 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1533 echo "configure:1534: checking for executable suffix" >&5
1534 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1535 echo $ac_n "(cached) $ac_c" 1>&6
1536 else
1537 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1538 ac_cv_exeext=.exe
1539 else
1540 rm -f conftest*
1541 echo 'int main () { return 0; }' > conftest.$ac_ext
1542 ac_cv_exeext=
1543 if { (eval echo configure:1544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1544 for file in conftest.*; do
1545 case $file in
1546 *.c | *.o | *.obj) ;;
1547 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1548 esac
1549 done
1550 else
1551 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1553 rm -f conftest*
1554 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1558 EXEEXT=""
1559 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1560 echo "$ac_t""${ac_cv_exeext}" 1>&6
1561 ac_exeext=$EXEEXT
1565 . ${glibcpp_basedir}/configure.host
1567 case ${glibcpp_basedir} in
1568 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1569 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1570 esac
1572 # This does for the target what configure.host does for the host. In
1573 # addition to possibly modifying the same flags, it also sets up symlinks.
1575 . ${glibcpp_basedir}/configure.target
1576 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1577 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1583 # Check whether --enable-shared or --disable-shared was given.
1584 if test "${enable_shared+set}" = set; then
1585 enableval="$enable_shared"
1586 p=${PACKAGE-default}
1587 case "$enableval" in
1588 yes) enable_shared=yes ;;
1589 no) enable_shared=no ;;
1591 enable_shared=no
1592 # Look at the argument we got. We use all the common list separators.
1593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1594 for pkg in $enableval; do
1595 if test "X$pkg" = "X$p"; then
1596 enable_shared=yes
1598 done
1599 IFS="$ac_save_ifs"
1601 esac
1602 else
1603 enable_shared=yes
1606 # Check whether --enable-static or --disable-static was given.
1607 if test "${enable_static+set}" = set; then
1608 enableval="$enable_static"
1609 p=${PACKAGE-default}
1610 case "$enableval" in
1611 yes) enable_static=yes ;;
1612 no) enable_static=no ;;
1614 enable_static=no
1615 # Look at the argument we got. We use all the common list separators.
1616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1617 for pkg in $enableval; do
1618 if test "X$pkg" = "X$p"; then
1619 enable_static=yes
1621 done
1622 IFS="$ac_save_ifs"
1624 esac
1625 else
1626 enable_static=yes
1629 # Check whether --enable-fast-install or --disable-fast-install was given.
1630 if test "${enable_fast_install+set}" = set; then
1631 enableval="$enable_fast_install"
1632 p=${PACKAGE-default}
1633 case "$enableval" in
1634 yes) enable_fast_install=yes ;;
1635 no) enable_fast_install=no ;;
1637 enable_fast_install=no
1638 # Look at the argument we got. We use all the common list separators.
1639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1640 for pkg in $enableval; do
1641 if test "X$pkg" = "X$p"; then
1642 enable_fast_install=yes
1644 done
1645 IFS="$ac_save_ifs"
1647 esac
1648 else
1649 enable_fast_install=yes
1652 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1653 if test "${with_gnu_ld+set}" = set; then
1654 withval="$with_gnu_ld"
1655 test "$withval" = no || with_gnu_ld=yes
1656 else
1657 with_gnu_ld=no
1660 ac_prog=ld
1661 if test "$ac_cv_prog_gcc" = yes; then
1662 # Check if gcc -print-prog-name=ld gives a path.
1663 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1664 echo "configure:1665: checking for ld used by GCC" >&5
1665 case $host in
1666 *-*-mingw*)
1667 # gcc leaves a trailing carriage return which upsets mingw
1668 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1670 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1671 esac
1672 case "$ac_prog" in
1673 # Accept absolute paths.
1674 [\\/]* | [A-Za-z]:[\\/]*)
1675 re_direlt='/[^/][^/]*/\.\./'
1676 # Canonicalize the path of ld
1677 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1678 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1679 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1680 done
1681 test -z "$LD" && LD="$ac_prog"
1684 # If it fails, then pretend we aren't using GCC.
1685 ac_prog=ld
1688 # If it is relative, then search for the first ld in PATH.
1689 with_gnu_ld=unknown
1691 esac
1692 elif test "$with_gnu_ld" = yes; then
1693 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1694 echo "configure:1695: checking for GNU ld" >&5
1695 else
1696 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1697 echo "configure:1698: checking for non-GNU ld" >&5
1699 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1701 else
1702 if test -z "$LD"; then
1703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1704 for ac_dir in $PATH; do
1705 test -z "$ac_dir" && ac_dir=.
1706 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1707 ac_cv_path_LD="$ac_dir/$ac_prog"
1708 # Check to see if the program is GNU ld. I'd rather use --version,
1709 # but apparently some GNU ld's only accept -v.
1710 # Break only if it was the GNU/non-GNU ld that we prefer.
1711 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1712 test "$with_gnu_ld" != no && break
1713 else
1714 test "$with_gnu_ld" != yes && break
1717 done
1718 IFS="$ac_save_ifs"
1719 else
1720 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1724 LD="$ac_cv_path_LD"
1725 if test -n "$LD"; then
1726 echo "$ac_t""$LD" 1>&6
1727 else
1728 echo "$ac_t""no" 1>&6
1730 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1731 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1732 echo "configure:1733: checking if the linker ($LD) is GNU ld" >&5
1733 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6
1735 else
1736 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1737 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1738 ac_cv_prog_gnu_ld=yes
1739 else
1740 ac_cv_prog_gnu_ld=no
1744 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1745 with_gnu_ld=$ac_cv_prog_gnu_ld
1748 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1749 echo "configure:1750: checking for $LD option to reload object files" >&5
1750 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1752 else
1753 lt_cv_ld_reload_flag='-r'
1756 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1757 reload_flag=$lt_cv_ld_reload_flag
1758 test -n "$reload_flag" && reload_flag=" $reload_flag"
1760 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1761 echo "configure:1762: checking for BSD-compatible nm" >&5
1762 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1764 else
1765 if test -n "$NM"; then
1766 # Let the user override the test.
1767 ac_cv_path_NM="$NM"
1768 else
1769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1770 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1771 test -z "$ac_dir" && ac_dir=.
1772 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1773 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1774 # Check to see if the nm accepts a BSD-compat flag.
1775 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1776 # nm: unknown option "B" ignored
1777 # Tru64's nm complains that /dev/null is an invalid object file
1778 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1779 ac_cv_path_NM="$tmp_nm -B"
1780 break
1781 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1782 ac_cv_path_NM="$tmp_nm -p"
1783 break
1784 else
1785 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1786 continue # so that we can try to find one that supports BSD flags
1789 done
1790 IFS="$ac_save_ifs"
1791 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1795 NM="$ac_cv_path_NM"
1796 echo "$ac_t""$NM" 1>&6
1798 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1799 echo "configure:1800: checking whether ln -s works" >&5
1800 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1802 else
1803 rm -f conftestdata
1804 if ln -s X conftestdata 2>/dev/null
1805 then
1806 rm -f conftestdata
1807 ac_cv_prog_LN_S="ln -s"
1808 else
1809 ac_cv_prog_LN_S=ln
1812 LN_S="$ac_cv_prog_LN_S"
1813 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1814 echo "$ac_t""yes" 1>&6
1815 else
1816 echo "$ac_t""no" 1>&6
1819 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1820 echo "configure:1821: checking how to recognise dependant libraries" >&5
1821 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1823 else
1824 lt_cv_file_magic_cmd='$MAGIC_CMD'
1825 lt_cv_file_magic_test_file=
1826 lt_cv_deplibs_check_method='unknown'
1827 # Need to set the preceding variable on all platforms that support
1828 # interlibrary dependencies.
1829 # 'none' -- dependencies not supported.
1830 # `unknown' -- same as none, but documents that we really don't know.
1831 # 'pass_all' -- all dependencies passed with no checks.
1832 # 'test_compile' -- check by making test program.
1833 # 'file_magic [regex]' -- check by looking for files in library path
1834 # which responds to the $file_magic_cmd with a given egrep regex.
1835 # If you have `file' or equivalent on your system and you're not sure
1836 # whether `pass_all' will *always* work, you probably want this one.
1838 case "$host_os" in
1839 aix4*)
1840 lt_cv_deplibs_check_method=pass_all
1843 beos*)
1844 lt_cv_deplibs_check_method=pass_all
1847 bsdi4*)
1848 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1849 lt_cv_file_magic_cmd='/usr/bin/file -L'
1850 lt_cv_file_magic_test_file=/shlib/libc.so
1853 cygwin* | mingw* |pw32*)
1854 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1855 lt_cv_file_magic_cmd='$OBJDUMP -f'
1858 freebsd* )
1859 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1860 case "$host_cpu" in
1861 i*86 )
1862 # Not sure whether the presence of OpenBSD here was a mistake.
1863 # Let's accept both of them until this is cleared up.
1864 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1865 lt_cv_file_magic_cmd=/usr/bin/file
1866 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1868 esac
1869 else
1870 lt_cv_deplibs_check_method=pass_all
1874 gnu*)
1875 lt_cv_deplibs_check_method=pass_all
1878 hpux10.20*)
1879 # TODO: Does this work for hpux-11 too?
1880 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1881 lt_cv_file_magic_cmd=/usr/bin/file
1882 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1885 irix5* | irix6*)
1886 case "$host_os" in
1887 irix5*)
1888 # this will be overridden with pass_all, but let us keep it just in case
1889 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1892 case "$LD" in
1893 *-32|*"-32 ") libmagic=32-bit;;
1894 *-n32|*"-n32 ") libmagic=N32;;
1895 *-64|*"-64 ") libmagic=64-bit;;
1896 *) libmagic=never-match;;
1897 esac
1898 # this will be overridden with pass_all, but let us keep it just in case
1899 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1901 esac
1902 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1903 lt_cv_deplibs_check_method=pass_all
1906 # This must be Linux ELF.
1907 linux-gnu*)
1908 case "$host_cpu" in
1909 alpha* | i*86 | powerpc* | sparc* | ia64* )
1910 lt_cv_deplibs_check_method=pass_all ;;
1912 # glibc up to 2.1.1 does not perform some relocations on ARM
1913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1914 esac
1915 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1918 netbsd*)
1919 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
1920 else
1921 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1922 lt_cv_file_magic_cmd='/usr/bin/file -L'
1923 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1927 osf3* | osf4* | osf5*)
1928 # this will be overridden with pass_all, but let us keep it just in case
1929 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1930 lt_cv_file_magic_test_file=/shlib/libc.so
1931 lt_cv_deplibs_check_method=pass_all
1934 sco3.2v5*)
1935 lt_cv_deplibs_check_method=pass_all
1938 solaris*)
1939 lt_cv_deplibs_check_method=pass_all
1940 lt_cv_file_magic_test_file=/lib/libc.so
1943 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1944 case "$host_vendor" in
1945 ncr)
1946 lt_cv_deplibs_check_method=pass_all
1948 motorola)
1949 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]'
1950 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1952 esac
1954 esac
1958 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1959 file_magic_cmd=$lt_cv_file_magic_cmd
1960 deplibs_check_method=$lt_cv_deplibs_check_method
1962 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1963 echo "configure:1964: checking for object suffix" >&5
1964 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1966 else
1967 rm -f conftest*
1968 echo 'int i = 1;' > conftest.$ac_ext
1969 if { (eval echo configure:1970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1970 for ac_file in conftest.*; do
1971 case $ac_file in
1972 *.c) ;;
1973 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1974 esac
1975 done
1976 else
1977 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1979 rm -f conftest*
1982 echo "$ac_t""$ac_cv_objext" 1>&6
1983 OBJEXT=$ac_cv_objext
1984 ac_objext=$ac_cv_objext
1986 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1988 # Only perform the check for file, if the check method requires it
1989 case "$deplibs_check_method" in
1990 file_magic*)
1991 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1992 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1993 echo "configure:1994: checking for ${ac_tool_prefix}file" >&5
1994 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1996 else
1997 case "$MAGIC_CMD" in
1999 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2001 ?:/*)
2002 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2005 ac_save_MAGIC_CMD="$MAGIC_CMD"
2006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2007 ac_dummy="/usr/bin:$PATH"
2008 for ac_dir in $ac_dummy; do
2009 test -z "$ac_dir" && ac_dir=.
2010 if test -f $ac_dir/${ac_tool_prefix}file; then
2011 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2012 if test -n "$file_magic_test_file"; then
2013 case "$deplibs_check_method" in
2014 "file_magic "*)
2015 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2017 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2018 egrep "$file_magic_regex" > /dev/null; then
2020 else
2021 cat <<EOF 1>&2
2023 *** Warning: the command libtool uses to detect shared libraries,
2024 *** $file_magic_cmd, produces output that libtool cannot recognize.
2025 *** The result is that libtool may fail to recognize shared libraries
2026 *** as such. This will affect the creation of libtool libraries that
2027 *** depend on shared libraries, but programs linked with such libtool
2028 *** libraries will work regardless of this problem. Nevertheless, you
2029 *** may want to report the problem to your system manager and/or to
2030 *** bug-libtool@gnu.org
2033 fi ;;
2034 esac
2036 break
2038 done
2039 IFS="$ac_save_ifs"
2040 MAGIC_CMD="$ac_save_MAGIC_CMD"
2042 esac
2045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2046 if test -n "$MAGIC_CMD"; then
2047 echo "$ac_t""$MAGIC_CMD" 1>&6
2048 else
2049 echo "$ac_t""no" 1>&6
2052 if test -z "$lt_cv_path_MAGIC_CMD"; then
2053 if test -n "$ac_tool_prefix"; then
2054 echo $ac_n "checking for file""... $ac_c" 1>&6
2055 echo "configure:2056: checking for file" >&5
2056 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2057 echo $ac_n "(cached) $ac_c" 1>&6
2058 else
2059 case "$MAGIC_CMD" in
2061 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2063 ?:/*)
2064 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2067 ac_save_MAGIC_CMD="$MAGIC_CMD"
2068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2069 ac_dummy="/usr/bin:$PATH"
2070 for ac_dir in $ac_dummy; do
2071 test -z "$ac_dir" && ac_dir=.
2072 if test -f $ac_dir/file; then
2073 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2074 if test -n "$file_magic_test_file"; then
2075 case "$deplibs_check_method" in
2076 "file_magic "*)
2077 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2078 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2079 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2080 egrep "$file_magic_regex" > /dev/null; then
2082 else
2083 cat <<EOF 1>&2
2085 *** Warning: the command libtool uses to detect shared libraries,
2086 *** $file_magic_cmd, produces output that libtool cannot recognize.
2087 *** The result is that libtool may fail to recognize shared libraries
2088 *** as such. This will affect the creation of libtool libraries that
2089 *** depend on shared libraries, but programs linked with such libtool
2090 *** libraries will work regardless of this problem. Nevertheless, you
2091 *** may want to report the problem to your system manager and/or to
2092 *** bug-libtool@gnu.org
2095 fi ;;
2096 esac
2098 break
2100 done
2101 IFS="$ac_save_ifs"
2102 MAGIC_CMD="$ac_save_MAGIC_CMD"
2104 esac
2107 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2108 if test -n "$MAGIC_CMD"; then
2109 echo "$ac_t""$MAGIC_CMD" 1>&6
2110 else
2111 echo "$ac_t""no" 1>&6
2114 else
2115 MAGIC_CMD=:
2121 esac
2123 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2124 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2126 echo "configure:2127: checking for $ac_word" >&5
2127 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2128 echo $ac_n "(cached) $ac_c" 1>&6
2129 else
2130 if test -n "$RANLIB"; then
2131 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2132 else
2133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2134 ac_dummy="$PATH"
2135 for ac_dir in $ac_dummy; do
2136 test -z "$ac_dir" && ac_dir=.
2137 if test -f $ac_dir/$ac_word; then
2138 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2139 break
2141 done
2142 IFS="$ac_save_ifs"
2145 RANLIB="$ac_cv_prog_RANLIB"
2146 if test -n "$RANLIB"; then
2147 echo "$ac_t""$RANLIB" 1>&6
2148 else
2149 echo "$ac_t""no" 1>&6
2153 if test -z "$ac_cv_prog_RANLIB"; then
2154 if test -n "$ac_tool_prefix"; then
2155 # Extract the first word of "ranlib", so it can be a program name with args.
2156 set dummy ranlib; ac_word=$2
2157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2158 echo "configure:2159: checking for $ac_word" >&5
2159 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2160 echo $ac_n "(cached) $ac_c" 1>&6
2161 else
2162 if test -n "$RANLIB"; then
2163 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2164 else
2165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2166 ac_dummy="$PATH"
2167 for ac_dir in $ac_dummy; do
2168 test -z "$ac_dir" && ac_dir=.
2169 if test -f $ac_dir/$ac_word; then
2170 ac_cv_prog_RANLIB="ranlib"
2171 break
2173 done
2174 IFS="$ac_save_ifs"
2175 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2178 RANLIB="$ac_cv_prog_RANLIB"
2179 if test -n "$RANLIB"; then
2180 echo "$ac_t""$RANLIB" 1>&6
2181 else
2182 echo "$ac_t""no" 1>&6
2185 else
2186 RANLIB=":"
2190 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2191 set dummy ${ac_tool_prefix}strip; ac_word=$2
2192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2193 echo "configure:2194: checking for $ac_word" >&5
2194 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2196 else
2197 if test -n "$STRIP"; then
2198 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2199 else
2200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2201 ac_dummy="$PATH"
2202 for ac_dir in $ac_dummy; do
2203 test -z "$ac_dir" && ac_dir=.
2204 if test -f $ac_dir/$ac_word; then
2205 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2206 break
2208 done
2209 IFS="$ac_save_ifs"
2212 STRIP="$ac_cv_prog_STRIP"
2213 if test -n "$STRIP"; then
2214 echo "$ac_t""$STRIP" 1>&6
2215 else
2216 echo "$ac_t""no" 1>&6
2220 if test -z "$ac_cv_prog_STRIP"; then
2221 if test -n "$ac_tool_prefix"; then
2222 # Extract the first word of "strip", so it can be a program name with args.
2223 set dummy strip; ac_word=$2
2224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2225 echo "configure:2226: checking for $ac_word" >&5
2226 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2227 echo $ac_n "(cached) $ac_c" 1>&6
2228 else
2229 if test -n "$STRIP"; then
2230 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2231 else
2232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2233 ac_dummy="$PATH"
2234 for ac_dir in $ac_dummy; do
2235 test -z "$ac_dir" && ac_dir=.
2236 if test -f $ac_dir/$ac_word; then
2237 ac_cv_prog_STRIP="strip"
2238 break
2240 done
2241 IFS="$ac_save_ifs"
2242 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2245 STRIP="$ac_cv_prog_STRIP"
2246 if test -n "$STRIP"; then
2247 echo "$ac_t""$STRIP" 1>&6
2248 else
2249 echo "$ac_t""no" 1>&6
2252 else
2253 STRIP=":"
2258 # Check for any special flags to pass to ltconfig.
2259 libtool_flags="--cache-file=$cache_file"
2260 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2261 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2262 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2263 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2264 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2265 libtool_flags="$libtool_flags --enable-dlopen"
2267 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2268 if test "${enable_libtool_lock+set}" = set; then
2269 enableval="$enable_libtool_lock"
2273 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2274 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2276 # Check whether --with-pic or --without-pic was given.
2277 if test "${with_pic+set}" = set; then
2278 withval="$with_pic"
2279 pic_mode="$withval"
2280 else
2281 pic_mode=default
2284 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2285 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2287 # Some flags need to be propagated to the compiler or linker for good
2288 # libtool support.
2289 case "$host" in
2290 *-*-irix6*)
2291 # Find out which ABI we are using.
2292 echo '#line 2293 "configure"' > conftest.$ac_ext
2293 if { (eval echo configure:2294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2294 case "`/usr/bin/file conftest.o`" in
2295 *32-bit*)
2296 LD="${LD-ld} -32"
2298 *N32*)
2299 LD="${LD-ld} -n32"
2301 *64-bit*)
2302 LD="${LD-ld} -64"
2304 esac
2306 rm -rf conftest*
2309 *-*-sco3.2v5*)
2310 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2311 SAVE_CFLAGS="$CFLAGS"
2312 CFLAGS="$CFLAGS -belf"
2313 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2314 echo "configure:2315: checking whether the C compiler needs -belf" >&5
2315 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2317 else
2319 ac_ext=c
2320 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2321 ac_cpp='$CPP $CPPFLAGS'
2322 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2323 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2324 cross_compiling=$ac_cv_prog_cc_cross
2326 cat > conftest.$ac_ext <<EOF
2327 #line 2328 "configure"
2328 #include "confdefs.h"
2330 int main() {
2332 ; return 0; }
2334 if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2335 rm -rf conftest*
2336 lt_cv_cc_needs_belf=yes
2337 else
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2340 rm -rf conftest*
2341 lt_cv_cc_needs_belf=no
2343 rm -f conftest*
2344 ac_ext=c
2345 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2346 ac_cpp='$CPP $CPPFLAGS'
2347 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2348 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2349 cross_compiling=$ac_cv_prog_cc_cross
2353 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2354 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2355 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2356 CFLAGS="$SAVE_CFLAGS"
2361 esac
2363 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2364 echo "configure:2365: checking how to run the C++ preprocessor" >&5
2365 if test -z "$CXXCPP"; then
2366 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2367 echo $ac_n "(cached) $ac_c" 1>&6
2368 else
2369 ac_ext=C
2370 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2371 ac_cpp='$CXXCPP $CPPFLAGS'
2372 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2373 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2374 cross_compiling=$ac_cv_prog_cxx_cross
2375 CXXCPP="${CXX-g++} -E"
2376 cat > conftest.$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 #include <stdlib.h>
2381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2382 { (eval echo configure:2383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2384 if test -z "$ac_err"; then
2386 else
2387 echo "$ac_err" >&5
2388 echo "configure: failed program was:" >&5
2389 cat conftest.$ac_ext >&5
2390 rm -rf conftest*
2391 CXXCPP=/lib/cpp
2393 rm -f conftest*
2394 ac_cv_prog_CXXCPP="$CXXCPP"
2395 ac_ext=c
2396 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2397 ac_cpp='$CPP $CPPFLAGS'
2398 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2399 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2400 cross_compiling=$ac_cv_prog_cc_cross
2403 CXXCPP="$ac_cv_prog_CXXCPP"
2404 echo "$ac_t""$CXXCPP" 1>&6
2407 # Save cache, so that ltconfig can load it
2408 cat > confcache <<\EOF
2409 # This file is a shell script that caches the results of configure
2410 # tests run on this system so they can be shared between configure
2411 # scripts and configure runs. It is not useful on other systems.
2412 # If it contains results you don't want to keep, you may remove or edit it.
2414 # By default, configure uses ./config.cache as the cache file,
2415 # creating it if it does not exist already. You can give configure
2416 # the --cache-file=FILE option to use a different cache file; that is
2417 # what configure does when it calls configure scripts in
2418 # subdirectories, so they share the cache.
2419 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2420 # config.status only pays attention to the cache file if you give it the
2421 # --recheck option to rerun configure.
2424 # The following way of writing the cache mishandles newlines in values,
2425 # but we know of no workaround that is simple, portable, and efficient.
2426 # So, don't put newlines in cache variables' values.
2427 # Ultrix sh set writes to stderr and can't be redirected directly,
2428 # and sets the high bit in the cache file unless we assign to the vars.
2429 (set) 2>&1 |
2430 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2431 *ac_space=\ *)
2432 # `set' does not quote correctly, so add quotes (double-quote substitution
2433 # turns \\\\ into \\, and sed turns \\ into \).
2434 sed -n \
2435 -e "s/'/'\\\\''/g" \
2436 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2439 # `set' quotes correctly as required by POSIX, so do not add quotes.
2440 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2442 esac >> confcache
2443 if cmp -s $cache_file confcache; then
2445 else
2446 if test -w $cache_file; then
2447 echo "updating cache $cache_file"
2448 cat confcache > $cache_file
2449 else
2450 echo "not updating unwritable cache $cache_file"
2453 rm -f confcache
2456 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2457 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2458 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2459 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2460 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2461 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2462 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2463 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2464 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2465 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2467 # Reload cache, that may have been modified by ltconfig
2468 if test -r "$cache_file"; then
2469 echo "loading cache $cache_file"
2470 . $cache_file
2471 else
2472 echo "creating cache $cache_file"
2473 > $cache_file
2477 # This can be used to rebuild libtool when needed
2478 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2480 # Always use our own libtool.
2481 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2483 # Redirect the config.log output again, so that the ltconfig log is not
2484 # clobbered by the next message.
2485 exec 5>>./config.log
2490 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2491 lt_save_CC="$CC"
2492 lt_save_CFLAGS="$CFLAGS"
2493 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2494 MAGIC_CMD="$MAGIC_CMD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2495 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2496 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2497 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2498 deplibs_check_method="$deplibs_check_method" \
2499 file_magic_cmd="$file_magic_cmd" \
2500 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2501 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2502 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2503 CC="$lt_save_CC"
2504 CFLAGS="$lt_save_CFLAGS"
2506 # Redirect the config.log output again, so that the ltconfig log is not
2507 # clobbered by the next message.
2508 exec 5>>./config.log
2518 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2519 echo "configure:2520: checking for GNU make" >&5
2520 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2522 else
2523 _cv_gnu_make_command='' ;
2524 for a in "${MAKE-make}" make gmake gnumake ; do
2525 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2526 then
2527 _cv_gnu_make_command=$a ;
2528 break;
2530 done ;
2534 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2535 if test "x$_cv_gnu_make_command" != "x" ; then
2536 ifGNUmake='' ;
2537 else
2538 ifGNUmake='#' ;
2542 if test "x$_cv_gnu_make_command" = "x"; then
2543 { echo "configure: error: GNU make not found. Please install it or correct your path." 1>&2; exit 1; }
2549 # Check for c++ or library specific bits that don't require linking.
2551 if test ! -f stamp-sanity-compiler; then
2552 echo $ac_n "checking for g++ that will successfully compile libstdc++-v3""... $ac_c" 1>&6
2553 echo "configure:2554: checking for g++ that will successfully compile libstdc++-v3" >&5
2555 ac_ext=C
2556 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2557 ac_cpp='$CXXCPP $CPPFLAGS'
2558 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2559 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2560 cross_compiling=$ac_cv_prog_cxx_cross
2562 cat > conftest.$ac_ext <<EOF
2563 #line 2564 "configure"
2564 #include "confdefs.h"
2566 #if __GNUC__ >= 3
2568 #endif
2571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2572 egrep "ok" >/dev/null 2>&1; then
2573 rm -rf conftest*
2574 gpp_satisfactory=yes
2575 else
2576 rm -rf conftest*
2577 { echo "configure: error: please upgrade to GCC 3.0 or above" 1>&2; exit 1; }
2579 rm -f conftest*
2581 ac_ext=c
2582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2583 ac_cpp='$CPP $CPPFLAGS'
2584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2586 cross_compiling=$ac_cv_prog_cc_cross
2588 echo "$ac_t""$gpp_satisfactory" 1>&6
2589 touch stamp-sanity-compiler
2593 # Enable all the crazy c++ stuff. C_MBCHAR must come early.
2594 # Check whether --enable-debug or --disable-debug was given.
2595 if test "${enable_debug+set}" = set; then
2596 enableval="$enable_debug"
2597 case "${enableval}" in
2598 yes) enable_debug=yes ;;
2599 no) enable_debug=no ;;
2600 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2601 esac
2602 else
2603 enable_debug=no
2606 case "${enable_debug}" in
2607 yes)
2608 DEBUG_FLAGS='-O0 -ggdb3'
2610 no)
2611 DEBUG_FLAGS='-g'
2613 esac
2616 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2617 echo "configure:2618: checking how to run the C preprocessor" >&5
2618 # On Suns, sometimes $CPP names a directory.
2619 if test -n "$CPP" && test -d "$CPP"; then
2620 CPP=
2622 if test -z "$CPP"; then
2623 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6
2625 else
2626 # This must be in double quotes, not single quotes, because CPP may get
2627 # substituted into the Makefile and "${CC-cc}" will confuse make.
2628 CPP="${CC-cc} -E"
2629 # On the NeXT, cc -E runs the code through the compiler's parser,
2630 # not just through cpp.
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2634 #include <assert.h>
2635 Syntax Error
2637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2638 { (eval echo configure:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2640 if test -z "$ac_err"; then
2642 else
2643 echo "$ac_err" >&5
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2646 rm -rf conftest*
2647 CPP="${CC-cc} -E -traditional-cpp"
2648 cat > conftest.$ac_ext <<EOF
2649 #line 2650 "configure"
2650 #include "confdefs.h"
2651 #include <assert.h>
2652 Syntax Error
2654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2655 { (eval echo configure:2656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2657 if test -z "$ac_err"; then
2659 else
2660 echo "$ac_err" >&5
2661 echo "configure: failed program was:" >&5
2662 cat conftest.$ac_ext >&5
2663 rm -rf conftest*
2664 CPP="${CC-cc} -nologo -E"
2665 cat > conftest.$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2668 #include <assert.h>
2669 Syntax Error
2671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2672 { (eval echo configure:2673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2673 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2674 if test -z "$ac_err"; then
2676 else
2677 echo "$ac_err" >&5
2678 echo "configure: failed program was:" >&5
2679 cat conftest.$ac_ext >&5
2680 rm -rf conftest*
2681 CPP=/lib/cpp
2683 rm -f conftest*
2685 rm -f conftest*
2687 rm -f conftest*
2688 ac_cv_prog_CPP="$CPP"
2690 CPP="$ac_cv_prog_CPP"
2691 else
2692 ac_cv_prog_CPP="$CPP"
2694 echo "$ac_t""$CPP" 1>&6
2697 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2698 echo "configure:2699: checking for cstdio to use" >&5
2699 # Check whether --enable-cstdio or --disable-cstdio was given.
2700 if test "${enable_cstdio+set}" = set; then
2701 enableval="$enable_cstdio"
2702 if test x$enable_cstdio = xno; then
2703 enable_cstdio=stdio
2705 else
2706 enable_cstdio=stdio
2710 enable_cstdio_flag=$enable_cstdio
2712 case x${enable_cstdio_flag} in
2713 xlibio)
2714 CSTDIO_H=config/c_io_libio.h
2715 BASIC_FILE_H=config/basic_file_libio.h
2716 BASIC_FILE_CC=config/basic_file_libio.cc
2717 echo "$ac_t""libio" 1>&6
2719 # see if we are on a system with libio native (ie, linux)
2720 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2721 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2722 echo "configure:2723: checking for libio.h" >&5
2723 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2725 else
2726 cat > conftest.$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2729 #include <libio.h>
2731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2732 { (eval echo configure:2733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2734 if test -z "$ac_err"; then
2735 rm -rf conftest*
2736 eval "ac_cv_header_$ac_safe=yes"
2737 else
2738 echo "$ac_err" >&5
2739 echo "configure: failed program was:" >&5
2740 cat conftest.$ac_ext >&5
2741 rm -rf conftest*
2742 eval "ac_cv_header_$ac_safe=no"
2744 rm -f conftest*
2746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2747 echo "$ac_t""yes" 1>&6
2748 has_libio=yes
2749 else
2750 echo "$ac_t""no" 1>&6
2751 has_libio=no
2755 # Need to check and see what version of glibc is being used. If
2756 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2757 # compile most of libio for linux systems.
2758 if test x$has_libio = x"yes"; then
2759 case "$target" in
2760 *-*-linux*)
2761 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2762 echo "configure:2763: checking for glibc version >= 2.2" >&5
2763 cat > conftest.$ac_ext <<EOF
2764 #line 2765 "configure"
2765 #include "confdefs.h"
2767 #include <features.h>
2768 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2770 #endif
2773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2774 egrep "ok" >/dev/null 2>&1; then
2775 rm -rf conftest*
2776 glibc_satisfactory=yes
2777 else
2778 rm -rf conftest*
2779 glibc_satisfactory=no
2781 rm -f conftest*
2783 echo "$ac_t""$glibc_satisfactory" 1>&6
2785 esac
2787 # XXX at the moment, admit defeat and force the recompilation
2788 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2789 glibc_satisfactory=no
2791 if test x$glibc_satisfactory = x"yes"; then
2792 need_libio=no
2793 need_wlibio=no
2794 else
2795 need_libio=yes
2796 # bkoz XXX need to add checks to enable this
2797 # pme XXX here's a first pass at such a check
2798 if test x$enable_c_mbchar != xno; then
2799 need_wlibio=yes
2800 else
2801 need_wlibio=no
2805 else
2806 # Using libio, but <libio.h> doesn't exist on the target system. . .
2807 need_libio=yes
2808 # bkoz XXX need to add checks to enable this
2809 # pme XXX here's a first pass at such a check
2810 if test x$enable_c_mbchar != xno; then
2811 need_wlibio=yes
2812 else
2813 need_wlibio=no
2817 xstdio | x | xno | xnone | xyes)
2818 # default
2819 CSTDIO_H=config/c_io_stdio.h
2820 BASIC_FILE_H=config/basic_file_stdio.h
2821 BASIC_FILE_CC=config/basic_file_stdio.cc
2822 echo "$ac_t""stdio" 1>&6
2824 # We're not using stdio.
2825 need_libio=no
2826 need_wlibio=no
2829 echo "$enable_cstdio is an unknown io package" 1>&2
2830 exit 1
2832 esac
2837 # 2000-08-04 bkoz hack
2838 CCODECVT_C=config/c_io_libio_codecvt.c
2840 # 2000-08-04 bkoz hack
2844 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2845 GLIBCPP_BUILD_LIBIO_TRUE=
2846 GLIBCPP_BUILD_LIBIO_FALSE='#'
2847 else
2848 GLIBCPP_BUILD_LIBIO_TRUE='#'
2849 GLIBCPP_BUILD_LIBIO_FALSE=
2853 if test "$need_libio" = yes; then
2854 GLIBCPP_NEED_LIBIO_TRUE=
2855 GLIBCPP_NEED_LIBIO_FALSE='#'
2856 else
2857 GLIBCPP_NEED_LIBIO_TRUE='#'
2858 GLIBCPP_NEED_LIBIO_FALSE=
2862 if test "$need_wlibio" = yes; then
2863 GLIBCPP_NEED_WLIBIO_TRUE=
2864 GLIBCPP_NEED_WLIBIO_FALSE='#'
2865 else
2866 GLIBCPP_NEED_WLIBIO_TRUE='#'
2867 GLIBCPP_NEED_WLIBIO_FALSE=
2869 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2870 libio_la=../libio/libio.la
2871 else
2872 libio_la=
2877 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2878 echo "configure:2879: checking for clocale to use" >&5
2879 # Check whether --enable-clocale or --disable-clocale was given.
2880 if test "${enable_clocale+set}" = set; then
2881 enableval="$enable_clocale"
2882 if test x$enable_clocale = xno; then
2883 enable_clocale=generic
2885 else
2886 enable_clocale=generic
2890 enable_clocale_flag=$enable_clocale
2892 case x${enable_clocale_flag} in
2893 xgnu)
2894 CLOCALE_H=config/c_locale_gnu.h
2895 CLOCALE_CC=config/c_locale_gnu.cc
2896 echo "$ac_t""gnu" 1>&6
2898 xgeneric)
2899 CLOCALE_H=config/c_locale_generic.h
2900 CLOCALE_CC=config/c_locale_generic.cc
2901 echo "$ac_t""generic" 1>&6
2904 echo "$enable_clocale is an unknown locale package" 1>&2
2905 exit 1
2907 esac
2912 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
2913 if test "${enable_c_mbchar+set}" = set; then
2914 enableval="$enable_c_mbchar"
2915 case "$enableval" in
2916 yes) enable_c_mbchar=yes ;;
2917 no) enable_c_mbchar=no ;;
2918 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
2919 esac
2920 else
2921 enable_c_mbchar=yes
2925 # Check whether --enable-long-long or --disable-long-long was given.
2926 if test "${enable_long_long+set}" = set; then
2927 enableval="$enable_long_long"
2928 case "$enableval" in
2929 yes) enable_long_long=yes ;;
2930 no) enable_long_long=no ;;
2931 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
2932 esac
2933 else
2934 enable_long_long=no
2937 # Allow use of os-dependent settings, so that macros that turn on
2938 # C99 capabilities can be defined and used in a consistent way.
2939 OS_INC_PATH=${srcdir}/$os_include_dir
2940 ac_test_CFLAGS="${CFLAGS+set}"
2941 ac_save_CFLAGS="$CFLAGS"
2942 CFLAGS="-I$OS_INC_PATH"
2944 # Check for the existence of functions used if long long is enabled.
2945 echo $ac_n "checking for strtoll""... $ac_c" 1>&6
2946 echo "configure:2947: checking for strtoll" >&5
2947 if eval "test \"`echo '$''{'ac_cv_func_strtoll'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2949 else
2950 cat > conftest.$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 /* System header to define __stub macros and hopefully few prototypes,
2954 which can conflict with char strtoll(); below. */
2955 #include <assert.h>
2956 /* Override any gcc2 internal prototype to avoid an error. */
2957 /* We use char because int might match the return type of a gcc2
2958 builtin and then its argument prototype would still apply. */
2959 char strtoll();
2961 int main() {
2963 /* The GNU C library defines this for functions which it implements
2964 to always fail with ENOSYS. Some functions are actually named
2965 something starting with __ and the normal name is an alias. */
2966 #if defined (__stub_strtoll) || defined (__stub___strtoll)
2967 choke me
2968 #else
2969 strtoll();
2970 #endif
2972 ; return 0; }
2974 if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2975 rm -rf conftest*
2976 eval "ac_cv_func_strtoll=yes"
2977 else
2978 echo "configure: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2980 rm -rf conftest*
2981 eval "ac_cv_func_strtoll=no"
2983 rm -f conftest*
2986 if eval "test \"`echo '$ac_cv_func_'strtoll`\" = yes"; then
2987 echo "$ac_t""yes" 1>&6
2989 else
2990 echo "$ac_t""no" 1>&6
2991 ac_strtoll=no
2994 echo $ac_n "checking for strtoull""... $ac_c" 1>&6
2995 echo "configure:2996: checking for strtoull" >&5
2996 if eval "test \"`echo '$''{'ac_cv_func_strtoull'+set}'`\" = set"; then
2997 echo $ac_n "(cached) $ac_c" 1>&6
2998 else
2999 cat > conftest.$ac_ext <<EOF
3000 #line 3001 "configure"
3001 #include "confdefs.h"
3002 /* System header to define __stub macros and hopefully few prototypes,
3003 which can conflict with char strtoull(); below. */
3004 #include <assert.h>
3005 /* Override any gcc2 internal prototype to avoid an error. */
3006 /* We use char because int might match the return type of a gcc2
3007 builtin and then its argument prototype would still apply. */
3008 char strtoull();
3010 int main() {
3012 /* The GNU C library defines this for functions which it implements
3013 to always fail with ENOSYS. Some functions are actually named
3014 something starting with __ and the normal name is an alias. */
3015 #if defined (__stub_strtoull) || defined (__stub___strtoull)
3016 choke me
3017 #else
3018 strtoull();
3019 #endif
3021 ; return 0; }
3023 if { (eval echo configure:3024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3024 rm -rf conftest*
3025 eval "ac_cv_func_strtoull=yes"
3026 else
3027 echo "configure: failed program was:" >&5
3028 cat conftest.$ac_ext >&5
3029 rm -rf conftest*
3030 eval "ac_cv_func_strtoull=no"
3032 rm -f conftest*
3035 if eval "test \"`echo '$ac_cv_func_'strtoull`\" = yes"; then
3036 echo "$ac_t""yes" 1>&6
3038 else
3039 echo "$ac_t""no" 1>&6
3040 ac_strtoull=no
3044 # Check for lldiv_t, et. al.
3045 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3046 echo "configure:3047: checking for lldiv_t declaration" >&5
3047 if eval "test \"`echo '$''{'glibcpp_lldiv_t_use'+set}'`\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3049 else
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 #include <bits/os_defines.h>
3055 #include <stdlib.h>
3056 int main() {
3057 lldiv_t mydivt;
3058 ; return 0; }
3060 if { (eval echo configure:3061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3061 rm -rf conftest*
3062 glibcpp_lldiv_t_use=yes
3063 else
3064 echo "configure: failed program was:" >&5
3065 cat conftest.$ac_ext >&5
3066 rm -rf conftest*
3067 glibcpp_lldiv_t_use=no
3069 rm -f conftest*
3073 echo "$ac_t""$glibcpp_lldiv_t_use" 1>&6
3074 if test x$glibcpp_lldiv_t_use = x"yes"; then
3075 cat >> confdefs.h <<\EOF
3076 #define HAVE_LLDIV_T 1
3081 echo $ac_n "checking for enabled long long""... $ac_c" 1>&6
3082 echo "configure:3083: checking for enabled long long" >&5
3083 if test x"$ac_strtoll" = xno || test x"$ac_strtoull" = xno; then
3084 enable_long_long=no;
3085 fi;
3086 echo "$ac_t""$enable_long_long" 1>&6
3088 # Option parsed, now set things appropriately
3089 if test x"$enable_long_long" = xyes; then
3090 cat >> confdefs.h <<\EOF
3091 #define _GLIBCPP_USE_LONG_LONG 1
3096 # Reset CFLAGS
3097 CFLAGS="$ac_save_CFLAGS"
3099 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3100 echo "configure:3101: checking for c header strategy to use" >&5
3101 # Check whether --enable-cheaders or --disable-cheaders was given.
3102 if test "${enable_cheaders+set}" = set; then
3103 enableval="$enable_cheaders"
3105 case "$enableval" in
3107 enable_cheaders=c
3109 c_std)
3110 enable_cheaders=c_std
3112 c_shadow)
3113 enable_cheaders=c_shadow
3115 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3117 esac
3118 else
3119 enable_cheaders=c_std
3122 echo "$ac_t""$enable_cheaders" 1>&6
3124 case "$enable_cheaders" in
3125 c_shadow)
3126 CSHADOW_FLAGS="-fno-builtin"
3127 C_INCLUDE_DIR='${top_srcdir}/include/c_shadow'
3128 cat >> confdefs.h <<\EOF
3129 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3133 c_std)
3134 CSHADOW_FLAGS=""
3135 C_INCLUDE_DIR='${top_srcdir}/include/c_std'
3138 CSHADOW_FLAGS=""
3139 C_INCLUDE_DIR='${top_srcdir}/include/c'
3141 esac
3147 if test "$enable_cheaders" = c_shadow; then
3148 GLIBCPP_USE_CSHADOW_TRUE=
3149 GLIBCPP_USE_CSHADOW_FALSE='#'
3150 else
3151 GLIBCPP_USE_CSHADOW_TRUE='#'
3152 GLIBCPP_USE_CSHADOW_FALSE=
3156 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
3157 echo "configure:3158: checking for threads package to use" >&5
3158 # Check whether --enable-threads or --disable-threads was given.
3159 if test "${enable_threads+set}" = set; then
3160 enableval="$enable_threads"
3161 if test x$enable_threads = xno; then
3162 enable_threads=''
3164 else
3165 enable_threads=''
3169 enable_threads_flag=$enable_threads
3171 case x${enable_threads_flag} in
3172 x | xno | xnone)
3173 # No threads
3174 target_thread_file='single'
3176 xyes)
3177 # default
3178 target_thread_file='posix'
3180 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
3181 xsolaris | xwin32 | xdce | xvxworks)
3182 target_thread_file=$enable_threads_flag
3185 echo "$enable_threads is an unknown thread package" 1>&2
3186 exit 1
3188 esac
3190 THREADH=
3191 case "$target_thread_file" in
3192 no | none | single)
3193 THREADH=threads-no.h
3195 posix | pthreads)
3196 THREADH=threads-posix.h
3198 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3199 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3202 { echo "configure: error: $THREADS is an unsupported/unknown thread package" 1>&2; exit 1; }
3204 esac
3205 echo "$ac_t""$THREADH" 1>&6
3208 if test $THREADH != threads-no.h; then
3209 cat >> confdefs.h <<\EOF
3210 #define _GLIBCPP_USE_THREADS 1
3215 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3216 if test "${enable_cxx_flags+set}" = set; then
3217 enableval="$enable_cxx_flags"
3218 case "x$enableval" in
3219 xyes)
3220 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3221 xno|x)
3222 enable_cxx_flags='' ;;
3224 enable_cxx_flags="$enableval" ;;
3225 esac
3226 else
3227 enable_cxx_flags='none'
3231 if test "$enable_cxx_flags" = "none"; then
3232 enable_cxx_flags='';
3235 if test -n "$enable_cxx_flags"; then
3236 for f in $enable_cxx_flags; do
3237 case "$f" in
3238 -fhonor-std) ;;
3239 -*) ;;
3240 *) # and we're trying to pass /what/ exactly?
3241 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3242 esac
3243 done
3245 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3249 if test -n "$with_cross_host"; then
3251 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3252 # may not work correctly, because the compiler may not be able to
3253 # link executables.
3254 xcompiling=1
3255 NATIVE=no
3257 # If Canadian cross, then don't pick up tools from the build
3258 # directory.
3259 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3260 CANADIAN=yes
3261 NULL_TARGET=yes
3262 else
3263 CANADIAN=no
3264 NULL_TARGET=no
3267 case "$target_alias" in
3268 *-linux*)
3269 # Construct linux crosses by hand, eliminating bits that need ld...
3270 # Check for available headers.
3271 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3272 machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
3273 float.h inttypes.h
3275 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3276 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3277 echo "configure:3278: checking for $ac_hdr" >&5
3278 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3279 echo $ac_n "(cached) $ac_c" 1>&6
3280 else
3281 cat > conftest.$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
3284 #include <$ac_hdr>
3286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3287 { (eval echo configure:3288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3288 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3289 if test -z "$ac_err"; then
3290 rm -rf conftest*
3291 eval "ac_cv_header_$ac_safe=yes"
3292 else
3293 echo "$ac_err" >&5
3294 echo "configure: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3296 rm -rf conftest*
3297 eval "ac_cv_header_$ac_safe=no"
3299 rm -f conftest*
3301 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3302 echo "$ac_t""yes" 1>&6
3303 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3304 cat >> confdefs.h <<EOF
3305 #define $ac_tr_hdr 1
3308 else
3309 echo "$ac_t""no" 1>&6
3311 done
3314 # GLIBCPP_CHECK_COMPILER_FEATURES
3315 SECTION_FLAGS='-ffunction-sections -fdata-sections'
3318 # If we're not using GNU ld, then there's no point in even trying these
3319 # tests. Check for that first. We should have already tested for gld
3320 # by now (in libtool), but require it now just to be safe...
3321 SECTION_LDFLAGS=''
3322 OPT_LDFLAGS=''
3325 # Set --gc-sections.
3326 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3327 # GNU ld it is! Joy and bunny rabbits!
3329 # All these tests are for C++; save the language and the compiler flags.
3330 # Need to do this so that g++ won't try to link in libstdc++
3331 ac_test_CFLAGS="${CFLAGS+set}"
3332 ac_save_CFLAGS="$CFLAGS"
3333 CFLAGS='-x c++ -Wl,--gc-sections'
3335 # Check for -Wl,--gc-sections
3336 # XXX This test is broken at the moment, as symbols required for
3337 # linking are now in libsupc++ (not built yet.....). In addition,
3338 # this test has cored on solaris in the past. In addition,
3339 # --gc-sections doesn't really work at the moment (keeps on discarding
3340 # used sections, first .eh_frame and now some of the glibc sections for
3341 # iconv). Bzzzzt. Thanks for playing, maybe next time.
3342 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3343 echo "configure:3344: checking for ld that supports -Wl,--gc-sections" >&5
3344 if test "$cross_compiling" = yes; then
3345 ac_sectionLDflags=yes
3346 else
3347 cat > conftest.$ac_ext <<EOF
3348 #line 3349 "configure"
3349 #include "confdefs.h"
3351 int main(void)
3353 try { throw 1; }
3354 catch (...) { };
3355 return 0;
3359 if { (eval echo configure:3360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3360 then
3361 ac_sectionLDflags=yes
3362 else
3363 echo "configure: failed program was:" >&5
3364 cat conftest.$ac_ext >&5
3365 rm -fr conftest*
3366 ac_sectionLFflags=no
3368 rm -fr conftest*
3371 if test "$ac_test_CFLAGS" = set; then
3372 CFLAGS="$ac_save_CFLAGS"
3373 else
3374 # this is the suspicious part
3375 CFLAGS=''
3377 if test "$ac_sectionLDflags" = "yes"; then
3378 SECTION_LDFLAGS='-Wl,--gc-sections'
3380 echo "$ac_t""$ac_sectionLDflags" 1>&6
3383 # Set linker optimization flags.
3384 if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
3385 OPT_LDFLAGS='-Wl,-O1'
3391 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3392 # GLIBCPP_CHECK_MATH_SUPPORT
3393 cat >> confdefs.h <<\EOF
3394 #define HAVE_ACOSF 1
3397 cat >> confdefs.h <<\EOF
3398 #define HAVE_ASINF 1
3401 cat >> confdefs.h <<\EOF
3402 #define HAVE_ATAN2F 1
3405 cat >> confdefs.h <<\EOF
3406 #define HAVE_ATANF 1
3409 cat >> confdefs.h <<\EOF
3410 #define HAVE_CEILF 1
3413 cat >> confdefs.h <<\EOF
3414 #define HAVE_COPYSIGN 1
3417 cat >> confdefs.h <<\EOF
3418 #define HAVE_COPYSIGNF 1
3421 cat >> confdefs.h <<\EOF
3422 #define HAVE_COSF 1
3425 cat >> confdefs.h <<\EOF
3426 #define HAVE_COSHF 1
3429 cat >> confdefs.h <<\EOF
3430 #define HAVE_EXPF 1
3433 cat >> confdefs.h <<\EOF
3434 #define HAVE_FABSF 1
3437 cat >> confdefs.h <<\EOF
3438 #define HAVE_FINITE 1
3441 cat >> confdefs.h <<\EOF
3442 #define HAVE_FINITEF 1
3445 cat >> confdefs.h <<\EOF
3446 #define HAVE_FLOORF 1
3449 cat >> confdefs.h <<\EOF
3450 #define HAVE_FMODF 1
3453 cat >> confdefs.h <<\EOF
3454 #define HAVE_FREXPF 1
3457 cat >> confdefs.h <<\EOF
3458 #define HAVE_ISINF 1
3461 cat >> confdefs.h <<\EOF
3462 #define HAVE_ISINFF 1
3465 cat >> confdefs.h <<\EOF
3466 #define HAVE_ISNAN 1
3469 cat >> confdefs.h <<\EOF
3470 #define HAVE_ISNANF 1
3473 cat >> confdefs.h <<\EOF
3474 #define HAVE_LDEXPF 1
3477 cat >> confdefs.h <<\EOF
3478 #define HAVE_LOG10F 1
3481 cat >> confdefs.h <<\EOF
3482 #define HAVE_LOGF 1
3485 cat >> confdefs.h <<\EOF
3486 #define HAVE_MODFF 1
3489 cat >> confdefs.h <<\EOF
3490 #define HAVE_POWF 1
3493 cat >> confdefs.h <<\EOF
3494 #define HAVE_SINCOS 1
3497 cat >> confdefs.h <<\EOF
3498 #define HAVE_SINCOSF 1
3501 cat >> confdefs.h <<\EOF
3502 #define HAVE_SINF 1
3505 cat >> confdefs.h <<\EOF
3506 #define HAVE_SINHF 1
3509 cat >> confdefs.h <<\EOF
3510 #define HAVE_SQRTF 1
3513 cat >> confdefs.h <<\EOF
3514 #define HAVE_TANF 1
3517 cat >> confdefs.h <<\EOF
3518 #define HAVE_TANHF 1
3522 # At some point, we should differentiate between architectures
3523 # like x86, which have long double versions, and alpha/powerpc/etc.,
3524 # which don't. For the time being, punt.
3525 if test x"long_double_math_on_this_cpu" = x"yes"; then
3526 cat >> confdefs.h <<\EOF
3527 #define HAVE_ACOSL 1
3530 cat >> confdefs.h <<\EOF
3531 #define HAVE_ASINL 1
3534 cat >> confdefs.h <<\EOF
3535 #define HAVE_ATAN2L 1
3538 cat >> confdefs.h <<\EOF
3539 #define HAVE_ATANL 1
3542 cat >> confdefs.h <<\EOF
3543 #define HAVE_CEILL 1
3546 cat >> confdefs.h <<\EOF
3547 #define HAVE_COPYSIGNL 1
3550 cat >> confdefs.h <<\EOF
3551 #define HAVE_COSL 1
3554 cat >> confdefs.h <<\EOF
3555 #define HAVE_COSHL 1
3558 cat >> confdefs.h <<\EOF
3559 #define HAVE_EXPL 1
3562 cat >> confdefs.h <<\EOF
3563 #define HAVE_FABSL 1
3566 cat >> confdefs.h <<\EOF
3567 #define HAVE_FINITEL 1
3570 cat >> confdefs.h <<\EOF
3571 #define HAVE_FLOORL 1
3574 cat >> confdefs.h <<\EOF
3575 #define HAVE_FMODL 1
3578 cat >> confdefs.h <<\EOF
3579 #define HAVE_FREXPL 1
3582 cat >> confdefs.h <<\EOF
3583 #define HAVE_ISINFL 1
3586 cat >> confdefs.h <<\EOF
3587 #define HAVE_ISNANL 1
3590 cat >> confdefs.h <<\EOF
3591 #define HAVE_LDEXPL 1
3594 cat >> confdefs.h <<\EOF
3595 #define HAVE_LOG10L 1
3598 cat >> confdefs.h <<\EOF
3599 #define HAVE_LOGL 1
3602 cat >> confdefs.h <<\EOF
3603 #define HAVE_MODFL 1
3606 cat >> confdefs.h <<\EOF
3607 #define HAVE_POWL 1
3610 cat >> confdefs.h <<\EOF
3611 #define HAVE_SINCOSL 1
3614 cat >> confdefs.h <<\EOF
3615 #define HAVE_SINL 1
3618 cat >> confdefs.h <<\EOF
3619 #define HAVE_SINHL 1
3622 cat >> confdefs.h <<\EOF
3623 #define HAVE_SQRTL 1
3626 cat >> confdefs.h <<\EOF
3627 #define HAVE_TANL 1
3630 cat >> confdefs.h <<\EOF
3631 #define HAVE_TANHL 1
3636 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3637 echo "configure:3638: checking for main in -lm" >&5
3638 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3640 echo $ac_n "(cached) $ac_c" 1>&6
3641 else
3642 ac_save_LIBS="$LIBS"
3643 LIBS="-lm $LIBS"
3644 cat > conftest.$ac_ext <<EOF
3645 #line 3646 "configure"
3646 #include "confdefs.h"
3648 int main() {
3649 main()
3650 ; return 0; }
3652 if { (eval echo configure:3653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3653 rm -rf conftest*
3654 eval "ac_cv_lib_$ac_lib_var=yes"
3655 else
3656 echo "configure: failed program was:" >&5
3657 cat conftest.$ac_ext >&5
3658 rm -rf conftest*
3659 eval "ac_cv_lib_$ac_lib_var=no"
3661 rm -f conftest*
3662 LIBS="$ac_save_LIBS"
3665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3666 echo "$ac_t""yes" 1>&6
3667 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3668 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3669 cat >> confdefs.h <<EOF
3670 #define $ac_tr_lib 1
3673 LIBS="-lm $LIBS"
3675 else
3676 echo "$ac_t""no" 1>&6
3679 for ac_func in nan hypot hypotf atan2f expf copysignf
3681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3682 echo "configure:3683: checking for $ac_func" >&5
3683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3684 echo $ac_n "(cached) $ac_c" 1>&6
3685 else
3686 cat > conftest.$ac_ext <<EOF
3687 #line 3688 "configure"
3688 #include "confdefs.h"
3689 /* System header to define __stub macros and hopefully few prototypes,
3690 which can conflict with char $ac_func(); below. */
3691 #include <assert.h>
3692 /* Override any gcc2 internal prototype to avoid an error. */
3693 /* We use char because int might match the return type of a gcc2
3694 builtin and then its argument prototype would still apply. */
3695 char $ac_func();
3697 int main() {
3699 /* The GNU C library defines this for functions which it implements
3700 to always fail with ENOSYS. Some functions are actually named
3701 something starting with __ and the normal name is an alias. */
3702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3703 choke me
3704 #else
3705 $ac_func();
3706 #endif
3708 ; return 0; }
3710 if { (eval echo configure:3711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3711 rm -rf conftest*
3712 eval "ac_cv_func_$ac_func=yes"
3713 else
3714 echo "configure: failed program was:" >&5
3715 cat conftest.$ac_ext >&5
3716 rm -rf conftest*
3717 eval "ac_cv_func_$ac_func=no"
3719 rm -f conftest*
3722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3723 echo "$ac_t""yes" 1>&6
3724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3725 cat >> confdefs.h <<EOF
3726 #define $ac_tr_func 1
3729 else
3730 echo "$ac_t""no" 1>&6
3731 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
3733 done
3737 USE_COMPLEX_LONG_DOUBLE=no
3738 if test x$ac_cv_func_atan2l = x"yes" \
3739 && test x$ac_cv_func_copysignl = x"yes"; then
3740 USE_COMPLEX_LONG_DOUBLE=yes
3741 for ac_func in hypotl signbitl
3743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3744 echo "configure:3745: checking for $ac_func" >&5
3745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3746 echo $ac_n "(cached) $ac_c" 1>&6
3747 else
3748 cat > conftest.$ac_ext <<EOF
3749 #line 3750 "configure"
3750 #include "confdefs.h"
3751 /* System header to define __stub macros and hopefully few prototypes,
3752 which can conflict with char $ac_func(); below. */
3753 #include <assert.h>
3754 /* Override any gcc2 internal prototype to avoid an error. */
3755 /* We use char because int might match the return type of a gcc2
3756 builtin and then its argument prototype would still apply. */
3757 char $ac_func();
3759 int main() {
3761 /* The GNU C library defines this for functions which it implements
3762 to always fail with ENOSYS. Some functions are actually named
3763 something starting with __ and the normal name is an alias. */
3764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3765 choke me
3766 #else
3767 $ac_func();
3768 #endif
3770 ; return 0; }
3772 if { (eval echo configure:3773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3773 rm -rf conftest*
3774 eval "ac_cv_func_$ac_func=yes"
3775 else
3776 echo "configure: failed program was:" >&5
3777 cat conftest.$ac_ext >&5
3778 rm -rf conftest*
3779 eval "ac_cv_func_$ac_func=no"
3781 rm -f conftest*
3784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3785 echo "$ac_t""yes" 1>&6
3786 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3787 cat >> confdefs.h <<EOF
3788 #define $ac_tr_func 1
3791 else
3792 echo "$ac_t""no" 1>&6
3793 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
3795 done
3805 echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
3806 echo "configure:3807: checking for GNU C++ __complex__ support" >&5
3807 if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
3808 echo $ac_n "(cached) $ac_c" 1>&6
3809 else
3812 ac_ext=C
3813 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3814 ac_cpp='$CXXCPP $CPPFLAGS'
3815 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3816 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3817 cross_compiling=$ac_cv_prog_cxx_cross
3819 cat > conftest.$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3822 struct dcomplex { __complex__ double x; }; \
3823 dcomplex f(const dcomplex& x) { return dcomplex(x); }
3824 int main() {
3826 dcomplex x; f(x);
3827 ; return 0; }
3829 if { (eval echo configure:3830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3830 rm -rf conftest*
3831 glibcpp_cv_complex=ok
3832 else
3833 echo "configure: failed program was:" >&5
3834 cat conftest.$ac_ext >&5
3835 rm -rf conftest*
3836 glibcpp_cv_complex=buggy
3839 rm -f conftest*
3840 ac_ext=c
3841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3842 ac_cpp='$CPP $CPPFLAGS'
3843 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3844 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3845 cross_compiling=$ac_cv_prog_cc_cross
3850 echo "$ac_t""$glibcpp_cv_complex" 1>&6
3851 if test $glibcpp_cv_complex = buggy; then
3852 cat >> confdefs.h <<\EOF
3853 #define _GLIBCPP_BUGGY_COMPLEX 1
3858 echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
3859 echo "configure:3860: checking for GNU C++ __complex__ float support" >&5
3860 if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3862 else
3865 ac_ext=C
3866 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3867 ac_cpp='$CXXCPP $CPPFLAGS'
3868 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3869 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3870 cross_compiling=$ac_cv_prog_cxx_cross
3872 rm -f conftest.h
3873 cat > conftest.h <<EOB
3875 // Check for buggy __complex__ that causes ICE in most versions of egcs
3876 // and gcc-2.95.x on certain platforms (eg., x86-win32).
3878 // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
3879 // more info on the bug itself.
3881 struct
3882 float_complex
3884 __complex__ float m_value;
3885 float_complex (float = 0.0f, float = 0.0f);
3886 float_complex (__complex__ float val) : m_value (val) {}
3887 float_complex foo (const float_complex &val)
3888 { return float_complex (~val.m_value); }
3891 cat > conftest.$ac_ext <<EOF
3892 #line 3893 "configure"
3893 #include "confdefs.h"
3894 #include "conftest.h"
3895 int main() {
3897 ; return 0; }
3899 if { (eval echo configure:3900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3900 rm -rf conftest*
3901 glibcpp_cv_float_complex=ok
3902 else
3903 echo "configure: failed program was:" >&5
3904 cat conftest.$ac_ext >&5
3905 rm -rf conftest*
3906 glibcpp_cv_float_complex=buggy
3909 rm -f conftest*
3910 ac_ext=c
3911 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3912 ac_cpp='$CPP $CPPFLAGS'
3913 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3914 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3915 cross_compiling=$ac_cv_prog_cc_cross
3920 echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
3921 if test $glibcpp_cv_float_complex = buggy; then
3922 cat >> confdefs.h <<\EOF
3923 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
3930 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
3931 echo "configure:3932: checking for mbstate_t" >&5
3932 cat > conftest.$ac_ext <<EOF
3933 #line 3934 "configure"
3934 #include "confdefs.h"
3935 #include <wchar.h>
3936 int main() {
3937 mbstate_t teststate;
3938 ; return 0; }
3940 if { (eval echo configure:3941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3941 rm -rf conftest*
3942 have_mbstate_t=yes
3943 else
3944 echo "configure: failed program was:" >&5
3945 cat conftest.$ac_ext >&5
3946 rm -rf conftest*
3947 have_mbstate_t=no
3949 rm -f conftest*
3950 echo "$ac_t""$have_mbstate_t" 1>&6
3951 if test x"$have_mbstate_t" = xyes; then
3952 cat >> confdefs.h <<\EOF
3953 #define HAVE_MBSTATE_T 1
3958 for ac_hdr in wchar.h
3960 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3962 echo "configure:3963: checking for $ac_hdr" >&5
3963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3964 echo $ac_n "(cached) $ac_c" 1>&6
3965 else
3966 cat > conftest.$ac_ext <<EOF
3967 #line 3968 "configure"
3968 #include "confdefs.h"
3969 #include <$ac_hdr>
3971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3972 { (eval echo configure:3973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3974 if test -z "$ac_err"; then
3975 rm -rf conftest*
3976 eval "ac_cv_header_$ac_safe=yes"
3977 else
3978 echo "$ac_err" >&5
3979 echo "configure: failed program was:" >&5
3980 cat conftest.$ac_ext >&5
3981 rm -rf conftest*
3982 eval "ac_cv_header_$ac_safe=no"
3984 rm -f conftest*
3986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3987 echo "$ac_t""yes" 1>&6
3988 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3989 cat >> confdefs.h <<EOF
3990 #define $ac_tr_hdr 1
3992 ac_has_wchar_h=yes
3993 else
3994 echo "$ac_t""no" 1>&6
3995 ac_has_wchar_h=no
3997 done
3999 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4000 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4001 echo "configure:4002: checking for wctype.h" >&5
4002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4003 echo $ac_n "(cached) $ac_c" 1>&6
4004 else
4005 cat > conftest.$ac_ext <<EOF
4006 #line 4007 "configure"
4007 #include "confdefs.h"
4008 #include <wctype.h>
4010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4011 { (eval echo configure:4012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4013 if test -z "$ac_err"; then
4014 rm -rf conftest*
4015 eval "ac_cv_header_$ac_safe=yes"
4016 else
4017 echo "$ac_err" >&5
4018 echo "configure: failed program was:" >&5
4019 cat conftest.$ac_ext >&5
4020 rm -rf conftest*
4021 eval "ac_cv_header_$ac_safe=no"
4023 rm -f conftest*
4025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4026 echo "$ac_t""yes" 1>&6
4027 ac_has_wctype_h=yes
4028 else
4029 echo "$ac_t""no" 1>&6
4030 ac_has_wctype_h=no
4034 if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
4035 && test x"$enable_c_mbchar" != xno; then
4037 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4038 echo "configure:4039: checking for WCHAR_MIN and WCHAR_MAX" >&5
4039 cat > conftest.$ac_ext <<EOF
4040 #line 4041 "configure"
4041 #include "confdefs.h"
4042 #include <wchar.h>
4043 int main() {
4044 int i = WCHAR_MIN; int j = WCHAR_MAX;
4045 ; return 0; }
4047 if { (eval echo configure:4048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4048 rm -rf conftest*
4049 has_wchar_minmax=yes
4050 else
4051 echo "configure: failed program was:" >&5
4052 cat conftest.$ac_ext >&5
4053 rm -rf conftest*
4054 has_wchar_minmax=no
4056 rm -f conftest*
4057 echo "$ac_t""$has_wchar_minmax" 1>&6
4059 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4060 echo "configure:4061: checking for WEOF" >&5
4061 cat > conftest.$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4065 #include <wchar.h>
4066 #include <stddef.h>
4067 int main() {
4068 wint_t i = WEOF;
4069 ; return 0; }
4071 if { (eval echo configure:4072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4072 rm -rf conftest*
4073 has_weof=yes
4074 else
4075 echo "configure: failed program was:" >&5
4076 cat conftest.$ac_ext >&5
4077 rm -rf conftest*
4078 has_weof=no
4080 rm -f conftest*
4081 echo "$ac_t""$has_weof" 1>&6
4083 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
4084 wcsrtombs mbsrtowcs
4086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4087 echo "configure:4088: checking for $ac_func" >&5
4088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4090 else
4091 cat > conftest.$ac_ext <<EOF
4092 #line 4093 "configure"
4093 #include "confdefs.h"
4094 /* System header to define __stub macros and hopefully few prototypes,
4095 which can conflict with char $ac_func(); below. */
4096 #include <assert.h>
4097 /* Override any gcc2 internal prototype to avoid an error. */
4098 /* We use char because int might match the return type of a gcc2
4099 builtin and then its argument prototype would still apply. */
4100 char $ac_func();
4102 int main() {
4104 /* The GNU C library defines this for functions which it implements
4105 to always fail with ENOSYS. Some functions are actually named
4106 something starting with __ and the normal name is an alias. */
4107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4108 choke me
4109 #else
4110 $ac_func();
4111 #endif
4113 ; return 0; }
4115 if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4116 rm -rf conftest*
4117 eval "ac_cv_func_$ac_func=yes"
4118 else
4119 echo "configure: failed program was:" >&5
4120 cat conftest.$ac_ext >&5
4121 rm -rf conftest*
4122 eval "ac_cv_func_$ac_func=no"
4124 rm -f conftest*
4127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4128 echo "$ac_t""yes" 1>&6
4129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4130 cat >> confdefs.h <<EOF
4131 #define $ac_tr_func 1
4133 ac_wfuncs=yes
4134 else
4135 echo "$ac_t""no" 1>&6
4136 ac_wfuncs=no
4138 done
4141 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4142 echo "configure:4143: checking for ISO C99 wchar_t support" >&5
4143 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
4144 && test x"$ac_wfuncs" = xyes; then
4145 ac_isoC99_wchar_t=yes
4146 else
4147 ac_isoC99_wchar_t=no
4149 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4151 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4152 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4153 echo "configure:4154: checking for iconv.h" >&5
4154 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4156 else
4157 cat > conftest.$ac_ext <<EOF
4158 #line 4159 "configure"
4159 #include "confdefs.h"
4160 #include <iconv.h>
4162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4163 { (eval echo configure:4164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4165 if test -z "$ac_err"; then
4166 rm -rf conftest*
4167 eval "ac_cv_header_$ac_safe=yes"
4168 else
4169 echo "$ac_err" >&5
4170 echo "configure: failed program was:" >&5
4171 cat conftest.$ac_ext >&5
4172 rm -rf conftest*
4173 eval "ac_cv_header_$ac_safe=no"
4175 rm -f conftest*
4177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4178 echo "$ac_t""yes" 1>&6
4179 ac_has_iconv_h=yes
4180 else
4181 echo "$ac_t""no" 1>&6
4182 ac_has_iconv_h=no
4185 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4186 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4187 echo "configure:4188: checking for langinfo.h" >&5
4188 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4189 echo $ac_n "(cached) $ac_c" 1>&6
4190 else
4191 cat > conftest.$ac_ext <<EOF
4192 #line 4193 "configure"
4193 #include "confdefs.h"
4194 #include <langinfo.h>
4196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4197 { (eval echo configure:4198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4199 if test -z "$ac_err"; then
4200 rm -rf conftest*
4201 eval "ac_cv_header_$ac_safe=yes"
4202 else
4203 echo "$ac_err" >&5
4204 echo "configure: failed program was:" >&5
4205 cat conftest.$ac_ext >&5
4206 rm -rf conftest*
4207 eval "ac_cv_header_$ac_safe=no"
4209 rm -f conftest*
4211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4212 echo "$ac_t""yes" 1>&6
4213 ac_has_langinfo_h=yes
4214 else
4215 echo "$ac_t""no" 1>&6
4216 ac_has_langinfo_h=no
4220 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4221 echo "configure:4222: checking for iconv in -liconv" >&5
4222 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4224 echo $ac_n "(cached) $ac_c" 1>&6
4225 else
4226 ac_save_LIBS="$LIBS"
4227 LIBS="-liconv $LIBS"
4228 cat > conftest.$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 /* Override any gcc2 internal prototype to avoid an error. */
4232 /* We use char because int might match the return type of a gcc2
4233 builtin and then its argument prototype would still apply. */
4234 char iconv();
4236 int main() {
4237 iconv()
4238 ; return 0; }
4240 if { (eval echo configure:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4241 rm -rf conftest*
4242 eval "ac_cv_lib_$ac_lib_var=yes"
4243 else
4244 echo "configure: failed program was:" >&5
4245 cat conftest.$ac_ext >&5
4246 rm -rf conftest*
4247 eval "ac_cv_lib_$ac_lib_var=no"
4249 rm -f conftest*
4250 LIBS="$ac_save_LIBS"
4253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4254 echo "$ac_t""yes" 1>&6
4255 libiconv="-liconv"
4256 else
4257 echo "$ac_t""no" 1>&6
4260 ac_save_LIBS="$LIBS"
4261 LIBS="$LIBS $libiconv"
4263 for ac_func in iconv_open iconv_close iconv nl_langinfo
4265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4266 echo "configure:4267: checking for $ac_func" >&5
4267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4268 echo $ac_n "(cached) $ac_c" 1>&6
4269 else
4270 cat > conftest.$ac_ext <<EOF
4271 #line 4272 "configure"
4272 #include "confdefs.h"
4273 /* System header to define __stub macros and hopefully few prototypes,
4274 which can conflict with char $ac_func(); below. */
4275 #include <assert.h>
4276 /* Override any gcc2 internal prototype to avoid an error. */
4277 /* We use char because int might match the return type of a gcc2
4278 builtin and then its argument prototype would still apply. */
4279 char $ac_func();
4281 int main() {
4283 /* The GNU C library defines this for functions which it implements
4284 to always fail with ENOSYS. Some functions are actually named
4285 something starting with __ and the normal name is an alias. */
4286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4287 choke me
4288 #else
4289 $ac_func();
4290 #endif
4292 ; return 0; }
4294 if { (eval echo configure:4295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4295 rm -rf conftest*
4296 eval "ac_cv_func_$ac_func=yes"
4297 else
4298 echo "configure: failed program was:" >&5
4299 cat conftest.$ac_ext >&5
4300 rm -rf conftest*
4301 eval "ac_cv_func_$ac_func=no"
4303 rm -f conftest*
4306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4307 echo "$ac_t""yes" 1>&6
4308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4309 cat >> confdefs.h <<EOF
4310 #define $ac_tr_func 1
4313 ac_XPG2funcs=yes
4314 else
4315 echo "$ac_t""no" 1>&6
4316 ac_XPG2funcs=no
4318 done
4321 LIBS="$ac_save_LIBS"
4323 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4324 echo "configure:4325: checking for XPG2 wchar_t support" >&5
4325 if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
4326 && test x"$ac_XPG2funcs" = xyes; then
4327 ac_XPG2_wchar_t=yes
4328 else
4329 ac_XPG2_wchar_t=no
4331 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4333 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4334 echo "configure:4335: checking for enabled wchar_t specializations" >&5
4335 if test x"$ac_isoC99_wchar_t" = xyes \
4336 && test x"$ac_XPG2_wchar_t" = xyes; then
4337 libinst_wstring_la="libinst-wstring.la"
4338 cat >> confdefs.h <<\EOF
4339 #define _GLIBCPP_USE_WCHAR_T 1
4342 echo "$ac_t"""yes"" 1>&6
4343 else
4344 libinst_wstring_la=""
4345 echo "$ac_t"""no"" 1>&6
4349 else
4350 echo "configure: warning: wchar_t support disabled." 1>&2
4353 os_include_dir="config/os/gnu-linux"
4354 # GLIBCPP_CHECK_STDLIB_SUPPORT
4355 cat >> confdefs.h <<\EOF
4356 #define HAVE_STRTOF 1
4359 cat >> confdefs.h <<\EOF
4360 #define HAVE_STRTOLD 1
4363 # AC_FUNC_MMAP
4364 cat >> confdefs.h <<\EOF
4365 #define HAVE_MMAP 1
4370 # We assume newlib. This lets us hard-code the functions we know
4371 # we'll have.
4372 cat >> confdefs.h <<\EOF
4373 #define HAVE_FINITE 1
4376 cat >> confdefs.h <<\EOF
4377 #define HAVE_ISNAN 1
4380 cat >> confdefs.h <<\EOF
4381 #define HAVE_ISNANF 1
4384 cat >> confdefs.h <<\EOF
4385 #define HAVE_ISINF 1
4388 cat >> confdefs.h <<\EOF
4389 #define HAVE_ISINFF 1
4393 os_include_dir="config/os/newlib"
4395 cat >> confdefs.h <<\EOF
4396 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
4399 cat >> confdefs.h <<\EOF
4400 #define _GLIBCPP_BUGGY_COMPLEX 1
4403 # need to check for faster f versions of math functions, ie sinf?
4405 esac
4406 else
4408 # We are being configured natively. We can do more elaborate tests
4409 # that include AC_TRY_COMPILE now, as the linker is assumed to be
4410 # working.
4411 xcompiling=0
4412 NATIVE=yes
4413 CANADIAN=no
4414 NULL_TARGET=no
4416 # Check for available headers.
4417 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
4418 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
4420 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4422 echo "configure:4423: checking for $ac_hdr" >&5
4423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4424 echo $ac_n "(cached) $ac_c" 1>&6
4425 else
4426 cat > conftest.$ac_ext <<EOF
4427 #line 4428 "configure"
4428 #include "confdefs.h"
4429 #include <$ac_hdr>
4431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4432 { (eval echo configure:4433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4434 if test -z "$ac_err"; then
4435 rm -rf conftest*
4436 eval "ac_cv_header_$ac_safe=yes"
4437 else
4438 echo "$ac_err" >&5
4439 echo "configure: failed program was:" >&5
4440 cat conftest.$ac_ext >&5
4441 rm -rf conftest*
4442 eval "ac_cv_header_$ac_safe=no"
4444 rm -f conftest*
4446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4447 echo "$ac_t""yes" 1>&6
4448 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4449 cat >> confdefs.h <<EOF
4450 #define $ac_tr_hdr 1
4453 else
4454 echo "$ac_t""no" 1>&6
4456 done
4460 # All these tests are for C++; save the language and the compiler flags.
4461 # The CXXFLAGS thing is suspicious, but based on similar bits
4462 # found in GLIBCPP_CONFIGURE.
4464 ac_ext=C
4465 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4466 ac_cpp='$CXXCPP $CPPFLAGS'
4467 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4468 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4469 cross_compiling=$ac_cv_prog_cxx_cross
4471 ac_test_CXXFLAGS="${CXXFLAGS+set}"
4472 ac_save_CXXFLAGS="$CXXFLAGS"
4474 # Check for maintainer-mode bits.
4475 if test x"$USE_MAINTAINER_MODE" = xno; then
4476 WERROR=''
4477 else
4478 WERROR='-Werror'
4481 # Check for -ffunction-sections -fdata-sections
4482 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
4483 echo "configure:4484: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
4484 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
4485 cat > conftest.$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4489 int main() {
4490 int foo;
4492 ; return 0; }
4494 if { (eval echo configure:4495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4495 rm -rf conftest*
4496 ac_fdsections=yes
4497 else
4498 echo "configure: failed program was:" >&5
4499 cat conftest.$ac_ext >&5
4500 rm -rf conftest*
4501 ac_fdsections=no
4503 rm -f conftest*
4504 if test "$ac_test_CXXFLAGS" = set; then
4505 CXXFLAGS="$ac_save_CXXFLAGS"
4506 else
4507 # this is the suspicious part
4508 CXXFLAGS=''
4510 if test x"$ac_fdsections" = x"yes" && test x"$enable_debug" = x"no"; then
4511 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4513 echo "$ac_t""$ac_fdsections" 1>&6
4515 ac_ext=c
4516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4517 ac_cpp='$CPP $CPPFLAGS'
4518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4520 cross_compiling=$ac_cv_prog_cc_cross
4526 # If we're not using GNU ld, then there's no point in even trying these
4527 # tests. Check for that first. We should have already tested for gld
4528 # by now (in libtool), but require it now just to be safe...
4529 SECTION_LDFLAGS=''
4530 OPT_LDFLAGS=''
4533 # Set --gc-sections.
4534 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4535 # GNU ld it is! Joy and bunny rabbits!
4537 # All these tests are for C++; save the language and the compiler flags.
4538 # Need to do this so that g++ won't try to link in libstdc++
4539 ac_test_CFLAGS="${CFLAGS+set}"
4540 ac_save_CFLAGS="$CFLAGS"
4541 CFLAGS='-x c++ -Wl,--gc-sections'
4543 # Check for -Wl,--gc-sections
4544 # XXX This test is broken at the moment, as symbols required for
4545 # linking are now in libsupc++ (not built yet.....). In addition,
4546 # this test has cored on solaris in the past. In addition,
4547 # --gc-sections doesn't really work at the moment (keeps on discarding
4548 # used sections, first .eh_frame and now some of the glibc sections for
4549 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4550 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4551 echo "configure:4552: checking for ld that supports -Wl,--gc-sections" >&5
4552 if test "$cross_compiling" = yes; then
4553 ac_sectionLDflags=yes
4554 else
4555 cat > conftest.$ac_ext <<EOF
4556 #line 4557 "configure"
4557 #include "confdefs.h"
4559 int main(void)
4561 try { throw 1; }
4562 catch (...) { };
4563 return 0;
4567 if { (eval echo configure:4568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4568 then
4569 ac_sectionLDflags=yes
4570 else
4571 echo "configure: failed program was:" >&5
4572 cat conftest.$ac_ext >&5
4573 rm -fr conftest*
4574 ac_sectionLFflags=no
4576 rm -fr conftest*
4579 if test "$ac_test_CFLAGS" = set; then
4580 CFLAGS="$ac_save_CFLAGS"
4581 else
4582 # this is the suspicious part
4583 CFLAGS=''
4585 if test "$ac_sectionLDflags" = "yes"; then
4586 SECTION_LDFLAGS='-Wl,--gc-sections'
4588 echo "$ac_t""$ac_sectionLDflags" 1>&6
4591 # Set linker optimization flags.
4592 if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4593 OPT_LDFLAGS='-Wl,-O1'
4601 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
4602 echo "configure:4603: checking for __builtin_abs declaration" >&5
4603 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
4604 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
4605 echo $ac_n "(cached) $ac_c" 1>&6
4606 else
4609 ac_ext=C
4610 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4611 ac_cpp='$CXXCPP $CPPFLAGS'
4612 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4613 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4614 cross_compiling=$ac_cv_prog_cxx_cross
4616 cat > conftest.$ac_ext <<EOF
4617 #line 4618 "configure"
4618 #include "confdefs.h"
4619 #include <math.h>
4620 int main() {
4621 __builtin_abs(0);
4622 ; return 0; }
4624 if { (eval echo configure:4625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4625 rm -rf conftest*
4626 glibcpp_cv_func___builtin_abs_use=yes
4627 else
4628 echo "configure: failed program was:" >&5
4629 cat conftest.$ac_ext >&5
4630 rm -rf conftest*
4631 glibcpp_cv_func___builtin_abs_use=no
4633 rm -f conftest*
4634 ac_ext=c
4635 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4636 ac_cpp='$CPP $CPPFLAGS'
4637 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4638 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4639 cross_compiling=$ac_cv_prog_cc_cross
4645 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
4646 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
4647 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
4648 echo "configure:4649: checking for __builtin_abs linkage" >&5
4649 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
4650 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4652 else
4654 cat > conftest.$ac_ext <<EOF
4655 #line 4656 "configure"
4656 #include "confdefs.h"
4657 #include <math.h>
4658 int main() {
4659 __builtin_abs(0);
4660 ; return 0; }
4662 if { (eval echo configure:4663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4663 rm -rf conftest*
4664 glibcpp_cv_func___builtin_abs_link=yes
4665 else
4666 echo "configure: failed program was:" >&5
4667 cat conftest.$ac_ext >&5
4668 rm -rf conftest*
4669 glibcpp_cv_func___builtin_abs_link=no
4671 rm -f conftest*
4676 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
4677 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
4678 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4679 cat >> confdefs.h <<EOF
4680 #define ${ac_tr_func} 1
4687 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
4688 echo "configure:4689: checking for __builtin_fabsf declaration" >&5
4689 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
4690 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
4691 echo $ac_n "(cached) $ac_c" 1>&6
4692 else
4695 ac_ext=C
4696 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4697 ac_cpp='$CXXCPP $CPPFLAGS'
4698 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4699 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4700 cross_compiling=$ac_cv_prog_cxx_cross
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 #include <math.h>
4706 int main() {
4707 __builtin_fabsf(0);
4708 ; return 0; }
4710 if { (eval echo configure:4711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4711 rm -rf conftest*
4712 glibcpp_cv_func___builtin_fabsf_use=yes
4713 else
4714 echo "configure: failed program was:" >&5
4715 cat conftest.$ac_ext >&5
4716 rm -rf conftest*
4717 glibcpp_cv_func___builtin_fabsf_use=no
4719 rm -f conftest*
4720 ac_ext=c
4721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4722 ac_cpp='$CPP $CPPFLAGS'
4723 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4724 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4725 cross_compiling=$ac_cv_prog_cc_cross
4731 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
4732 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
4733 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
4734 echo "configure:4735: checking for __builtin_fabsf linkage" >&5
4735 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
4736 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
4737 echo $ac_n "(cached) $ac_c" 1>&6
4738 else
4740 cat > conftest.$ac_ext <<EOF
4741 #line 4742 "configure"
4742 #include "confdefs.h"
4743 #include <math.h>
4744 int main() {
4745 __builtin_fabsf(0);
4746 ; return 0; }
4748 if { (eval echo configure:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4749 rm -rf conftest*
4750 glibcpp_cv_func___builtin_fabsf_link=yes
4751 else
4752 echo "configure: failed program was:" >&5
4753 cat conftest.$ac_ext >&5
4754 rm -rf conftest*
4755 glibcpp_cv_func___builtin_fabsf_link=no
4757 rm -f conftest*
4762 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
4763 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
4764 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4765 cat >> confdefs.h <<EOF
4766 #define ${ac_tr_func} 1
4773 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
4774 echo "configure:4775: checking for __builtin_fabs declaration" >&5
4775 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
4776 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
4777 echo $ac_n "(cached) $ac_c" 1>&6
4778 else
4781 ac_ext=C
4782 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4783 ac_cpp='$CXXCPP $CPPFLAGS'
4784 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4785 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4786 cross_compiling=$ac_cv_prog_cxx_cross
4788 cat > conftest.$ac_ext <<EOF
4789 #line 4790 "configure"
4790 #include "confdefs.h"
4791 #include <math.h>
4792 int main() {
4793 __builtin_fabs(0);
4794 ; return 0; }
4796 if { (eval echo configure:4797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4797 rm -rf conftest*
4798 glibcpp_cv_func___builtin_fabs_use=yes
4799 else
4800 echo "configure: failed program was:" >&5
4801 cat conftest.$ac_ext >&5
4802 rm -rf conftest*
4803 glibcpp_cv_func___builtin_fabs_use=no
4805 rm -f conftest*
4806 ac_ext=c
4807 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4808 ac_cpp='$CPP $CPPFLAGS'
4809 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4810 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4811 cross_compiling=$ac_cv_prog_cc_cross
4817 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
4818 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
4819 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
4820 echo "configure:4821: checking for __builtin_fabs linkage" >&5
4821 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
4822 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
4823 echo $ac_n "(cached) $ac_c" 1>&6
4824 else
4826 cat > conftest.$ac_ext <<EOF
4827 #line 4828 "configure"
4828 #include "confdefs.h"
4829 #include <math.h>
4830 int main() {
4831 __builtin_fabs(0);
4832 ; return 0; }
4834 if { (eval echo configure:4835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4835 rm -rf conftest*
4836 glibcpp_cv_func___builtin_fabs_link=yes
4837 else
4838 echo "configure: failed program was:" >&5
4839 cat conftest.$ac_ext >&5
4840 rm -rf conftest*
4841 glibcpp_cv_func___builtin_fabs_link=no
4843 rm -f conftest*
4848 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
4849 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
4850 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4851 cat >> confdefs.h <<EOF
4852 #define ${ac_tr_func} 1
4859 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
4860 echo "configure:4861: checking for __builtin_fabsl declaration" >&5
4861 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
4862 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
4863 echo $ac_n "(cached) $ac_c" 1>&6
4864 else
4867 ac_ext=C
4868 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4869 ac_cpp='$CXXCPP $CPPFLAGS'
4870 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4871 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4872 cross_compiling=$ac_cv_prog_cxx_cross
4874 cat > conftest.$ac_ext <<EOF
4875 #line 4876 "configure"
4876 #include "confdefs.h"
4877 #include <math.h>
4878 int main() {
4879 __builtin_fabsl(0);
4880 ; return 0; }
4882 if { (eval echo configure:4883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4883 rm -rf conftest*
4884 glibcpp_cv_func___builtin_fabsl_use=yes
4885 else
4886 echo "configure: failed program was:" >&5
4887 cat conftest.$ac_ext >&5
4888 rm -rf conftest*
4889 glibcpp_cv_func___builtin_fabsl_use=no
4891 rm -f conftest*
4892 ac_ext=c
4893 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4894 ac_cpp='$CPP $CPPFLAGS'
4895 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4896 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4897 cross_compiling=$ac_cv_prog_cc_cross
4903 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
4904 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
4905 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
4906 echo "configure:4907: checking for __builtin_fabsl linkage" >&5
4907 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
4908 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
4909 echo $ac_n "(cached) $ac_c" 1>&6
4910 else
4912 cat > conftest.$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4915 #include <math.h>
4916 int main() {
4917 __builtin_fabsl(0);
4918 ; return 0; }
4920 if { (eval echo configure:4921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4921 rm -rf conftest*
4922 glibcpp_cv_func___builtin_fabsl_link=yes
4923 else
4924 echo "configure: failed program was:" >&5
4925 cat conftest.$ac_ext >&5
4926 rm -rf conftest*
4927 glibcpp_cv_func___builtin_fabsl_link=no
4929 rm -f conftest*
4934 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
4935 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
4936 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4937 cat >> confdefs.h <<EOF
4938 #define ${ac_tr_func} 1
4945 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
4946 echo "configure:4947: checking for __builtin_labs declaration" >&5
4947 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
4948 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
4949 echo $ac_n "(cached) $ac_c" 1>&6
4950 else
4953 ac_ext=C
4954 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4955 ac_cpp='$CXXCPP $CPPFLAGS'
4956 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4957 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4958 cross_compiling=$ac_cv_prog_cxx_cross
4960 cat > conftest.$ac_ext <<EOF
4961 #line 4962 "configure"
4962 #include "confdefs.h"
4963 #include <math.h>
4964 int main() {
4965 __builtin_labs(0);
4966 ; return 0; }
4968 if { (eval echo configure:4969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4969 rm -rf conftest*
4970 glibcpp_cv_func___builtin_labs_use=yes
4971 else
4972 echo "configure: failed program was:" >&5
4973 cat conftest.$ac_ext >&5
4974 rm -rf conftest*
4975 glibcpp_cv_func___builtin_labs_use=no
4977 rm -f conftest*
4978 ac_ext=c
4979 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4980 ac_cpp='$CPP $CPPFLAGS'
4981 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4982 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4983 cross_compiling=$ac_cv_prog_cc_cross
4989 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
4990 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
4991 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
4992 echo "configure:4993: checking for __builtin_labs linkage" >&5
4993 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
4994 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
4995 echo $ac_n "(cached) $ac_c" 1>&6
4996 else
4998 cat > conftest.$ac_ext <<EOF
4999 #line 5000 "configure"
5000 #include "confdefs.h"
5001 #include <math.h>
5002 int main() {
5003 __builtin_labs(0);
5004 ; return 0; }
5006 if { (eval echo configure:5007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5007 rm -rf conftest*
5008 glibcpp_cv_func___builtin_labs_link=yes
5009 else
5010 echo "configure: failed program was:" >&5
5011 cat conftest.$ac_ext >&5
5012 rm -rf conftest*
5013 glibcpp_cv_func___builtin_labs_link=no
5015 rm -f conftest*
5020 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5021 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5022 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5023 cat >> confdefs.h <<EOF
5024 #define ${ac_tr_func} 1
5032 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5033 echo "configure:5034: checking for __builtin_sqrtf declaration" >&5
5034 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5035 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5036 echo $ac_n "(cached) $ac_c" 1>&6
5037 else
5040 ac_ext=C
5041 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5042 ac_cpp='$CXXCPP $CPPFLAGS'
5043 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5044 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5045 cross_compiling=$ac_cv_prog_cxx_cross
5047 cat > conftest.$ac_ext <<EOF
5048 #line 5049 "configure"
5049 #include "confdefs.h"
5050 #include <math.h>
5051 int main() {
5052 __builtin_sqrtf(0);
5053 ; return 0; }
5055 if { (eval echo configure:5056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5056 rm -rf conftest*
5057 glibcpp_cv_func___builtin_sqrtf_use=yes
5058 else
5059 echo "configure: failed program was:" >&5
5060 cat conftest.$ac_ext >&5
5061 rm -rf conftest*
5062 glibcpp_cv_func___builtin_sqrtf_use=no
5064 rm -f conftest*
5065 ac_ext=c
5066 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5067 ac_cpp='$CPP $CPPFLAGS'
5068 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5069 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5070 cross_compiling=$ac_cv_prog_cc_cross
5076 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5077 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5078 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5079 echo "configure:5080: checking for __builtin_sqrtf linkage" >&5
5080 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5081 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5082 echo $ac_n "(cached) $ac_c" 1>&6
5083 else
5085 cat > conftest.$ac_ext <<EOF
5086 #line 5087 "configure"
5087 #include "confdefs.h"
5088 #include <math.h>
5089 int main() {
5090 __builtin_sqrtf(0);
5091 ; return 0; }
5093 if { (eval echo configure:5094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5094 rm -rf conftest*
5095 glibcpp_cv_func___builtin_sqrtf_link=yes
5096 else
5097 echo "configure: failed program was:" >&5
5098 cat conftest.$ac_ext >&5
5099 rm -rf conftest*
5100 glibcpp_cv_func___builtin_sqrtf_link=no
5102 rm -f conftest*
5107 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5108 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5109 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5110 cat >> confdefs.h <<EOF
5111 #define ${ac_tr_func} 1
5118 echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5119 echo "configure:5120: checking for __builtin_fsqrt declaration" >&5
5120 if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5121 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5122 echo $ac_n "(cached) $ac_c" 1>&6
5123 else
5126 ac_ext=C
5127 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5128 ac_cpp='$CXXCPP $CPPFLAGS'
5129 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5130 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5131 cross_compiling=$ac_cv_prog_cxx_cross
5133 cat > conftest.$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5136 #include <math.h>
5137 int main() {
5138 __builtin_fsqrt(0);
5139 ; return 0; }
5141 if { (eval echo configure:5142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5142 rm -rf conftest*
5143 glibcpp_cv_func___builtin_fsqrt_use=yes
5144 else
5145 echo "configure: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5147 rm -rf conftest*
5148 glibcpp_cv_func___builtin_fsqrt_use=no
5150 rm -f conftest*
5151 ac_ext=c
5152 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5153 ac_cpp='$CPP $CPPFLAGS'
5154 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5155 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5156 cross_compiling=$ac_cv_prog_cc_cross
5162 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5163 if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5164 echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5165 echo "configure:5166: checking for __builtin_fsqrt linkage" >&5
5166 if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5167 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5168 echo $ac_n "(cached) $ac_c" 1>&6
5169 else
5171 cat > conftest.$ac_ext <<EOF
5172 #line 5173 "configure"
5173 #include "confdefs.h"
5174 #include <math.h>
5175 int main() {
5176 __builtin_fsqrt(0);
5177 ; return 0; }
5179 if { (eval echo configure:5180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5180 rm -rf conftest*
5181 glibcpp_cv_func___builtin_fsqrt_link=yes
5182 else
5183 echo "configure: failed program was:" >&5
5184 cat conftest.$ac_ext >&5
5185 rm -rf conftest*
5186 glibcpp_cv_func___builtin_fsqrt_link=no
5188 rm -f conftest*
5193 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5194 if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5195 ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5196 cat >> confdefs.h <<EOF
5197 #define ${ac_tr_func} 1
5204 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5205 echo "configure:5206: checking for __builtin_sqrtl declaration" >&5
5206 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5207 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5208 echo $ac_n "(cached) $ac_c" 1>&6
5209 else
5212 ac_ext=C
5213 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5214 ac_cpp='$CXXCPP $CPPFLAGS'
5215 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5216 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5217 cross_compiling=$ac_cv_prog_cxx_cross
5219 cat > conftest.$ac_ext <<EOF
5220 #line 5221 "configure"
5221 #include "confdefs.h"
5222 #include <math.h>
5223 int main() {
5224 __builtin_sqrtl(0);
5225 ; return 0; }
5227 if { (eval echo configure:5228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5228 rm -rf conftest*
5229 glibcpp_cv_func___builtin_sqrtl_use=yes
5230 else
5231 echo "configure: failed program was:" >&5
5232 cat conftest.$ac_ext >&5
5233 rm -rf conftest*
5234 glibcpp_cv_func___builtin_sqrtl_use=no
5236 rm -f conftest*
5237 ac_ext=c
5238 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5239 ac_cpp='$CPP $CPPFLAGS'
5240 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5241 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5242 cross_compiling=$ac_cv_prog_cc_cross
5248 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5249 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5250 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5251 echo "configure:5252: checking for __builtin_sqrtl linkage" >&5
5252 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5253 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5254 echo $ac_n "(cached) $ac_c" 1>&6
5255 else
5257 cat > conftest.$ac_ext <<EOF
5258 #line 5259 "configure"
5259 #include "confdefs.h"
5260 #include <math.h>
5261 int main() {
5262 __builtin_sqrtl(0);
5263 ; return 0; }
5265 if { (eval echo configure:5266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5266 rm -rf conftest*
5267 glibcpp_cv_func___builtin_sqrtl_link=yes
5268 else
5269 echo "configure: failed program was:" >&5
5270 cat conftest.$ac_ext >&5
5271 rm -rf conftest*
5272 glibcpp_cv_func___builtin_sqrtl_link=no
5274 rm -f conftest*
5279 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5280 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5281 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5282 cat >> confdefs.h <<EOF
5283 #define ${ac_tr_func} 1
5291 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5292 echo "configure:5293: checking for __builtin_sinf declaration" >&5
5293 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5294 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5295 echo $ac_n "(cached) $ac_c" 1>&6
5296 else
5299 ac_ext=C
5300 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5301 ac_cpp='$CXXCPP $CPPFLAGS'
5302 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5303 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5304 cross_compiling=$ac_cv_prog_cxx_cross
5306 cat > conftest.$ac_ext <<EOF
5307 #line 5308 "configure"
5308 #include "confdefs.h"
5309 #include <math.h>
5310 int main() {
5311 __builtin_sinf(0);
5312 ; return 0; }
5314 if { (eval echo configure:5315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5315 rm -rf conftest*
5316 glibcpp_cv_func___builtin_sinf_use=yes
5317 else
5318 echo "configure: failed program was:" >&5
5319 cat conftest.$ac_ext >&5
5320 rm -rf conftest*
5321 glibcpp_cv_func___builtin_sinf_use=no
5323 rm -f conftest*
5324 ac_ext=c
5325 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5326 ac_cpp='$CPP $CPPFLAGS'
5327 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5328 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5329 cross_compiling=$ac_cv_prog_cc_cross
5335 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5336 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5337 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5338 echo "configure:5339: checking for __builtin_sinf linkage" >&5
5339 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5340 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5341 echo $ac_n "(cached) $ac_c" 1>&6
5342 else
5344 cat > conftest.$ac_ext <<EOF
5345 #line 5346 "configure"
5346 #include "confdefs.h"
5347 #include <math.h>
5348 int main() {
5349 __builtin_sinf(0);
5350 ; return 0; }
5352 if { (eval echo configure:5353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5353 rm -rf conftest*
5354 glibcpp_cv_func___builtin_sinf_link=yes
5355 else
5356 echo "configure: failed program was:" >&5
5357 cat conftest.$ac_ext >&5
5358 rm -rf conftest*
5359 glibcpp_cv_func___builtin_sinf_link=no
5361 rm -f conftest*
5366 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5367 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5368 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5369 cat >> confdefs.h <<EOF
5370 #define ${ac_tr_func} 1
5377 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5378 echo "configure:5379: checking for __builtin_sin declaration" >&5
5379 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5380 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
5381 echo $ac_n "(cached) $ac_c" 1>&6
5382 else
5385 ac_ext=C
5386 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5387 ac_cpp='$CXXCPP $CPPFLAGS'
5388 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5389 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5390 cross_compiling=$ac_cv_prog_cxx_cross
5392 cat > conftest.$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5395 #include <math.h>
5396 int main() {
5397 __builtin_sin(0);
5398 ; return 0; }
5400 if { (eval echo configure:5401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5401 rm -rf conftest*
5402 glibcpp_cv_func___builtin_sin_use=yes
5403 else
5404 echo "configure: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5406 rm -rf conftest*
5407 glibcpp_cv_func___builtin_sin_use=no
5409 rm -f conftest*
5410 ac_ext=c
5411 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5412 ac_cpp='$CPP $CPPFLAGS'
5413 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5414 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5415 cross_compiling=$ac_cv_prog_cc_cross
5421 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
5422 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
5423 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
5424 echo "configure:5425: checking for __builtin_sin linkage" >&5
5425 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
5426 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
5427 echo $ac_n "(cached) $ac_c" 1>&6
5428 else
5430 cat > conftest.$ac_ext <<EOF
5431 #line 5432 "configure"
5432 #include "confdefs.h"
5433 #include <math.h>
5434 int main() {
5435 __builtin_sin(0);
5436 ; return 0; }
5438 if { (eval echo configure:5439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5439 rm -rf conftest*
5440 glibcpp_cv_func___builtin_sin_link=yes
5441 else
5442 echo "configure: failed program was:" >&5
5443 cat conftest.$ac_ext >&5
5444 rm -rf conftest*
5445 glibcpp_cv_func___builtin_sin_link=no
5447 rm -f conftest*
5452 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
5453 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
5454 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5455 cat >> confdefs.h <<EOF
5456 #define ${ac_tr_func} 1
5463 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
5464 echo "configure:5465: checking for __builtin_sinl declaration" >&5
5465 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
5466 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
5467 echo $ac_n "(cached) $ac_c" 1>&6
5468 else
5471 ac_ext=C
5472 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5473 ac_cpp='$CXXCPP $CPPFLAGS'
5474 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5475 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5476 cross_compiling=$ac_cv_prog_cxx_cross
5478 cat > conftest.$ac_ext <<EOF
5479 #line 5480 "configure"
5480 #include "confdefs.h"
5481 #include <math.h>
5482 int main() {
5483 __builtin_sinl(0);
5484 ; return 0; }
5486 if { (eval echo configure:5487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5487 rm -rf conftest*
5488 glibcpp_cv_func___builtin_sinl_use=yes
5489 else
5490 echo "configure: failed program was:" >&5
5491 cat conftest.$ac_ext >&5
5492 rm -rf conftest*
5493 glibcpp_cv_func___builtin_sinl_use=no
5495 rm -f conftest*
5496 ac_ext=c
5497 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5498 ac_cpp='$CPP $CPPFLAGS'
5499 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5500 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5501 cross_compiling=$ac_cv_prog_cc_cross
5507 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
5508 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
5509 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
5510 echo "configure:5511: checking for __builtin_sinl linkage" >&5
5511 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
5512 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
5513 echo $ac_n "(cached) $ac_c" 1>&6
5514 else
5516 cat > conftest.$ac_ext <<EOF
5517 #line 5518 "configure"
5518 #include "confdefs.h"
5519 #include <math.h>
5520 int main() {
5521 __builtin_sinl(0);
5522 ; return 0; }
5524 if { (eval echo configure:5525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5525 rm -rf conftest*
5526 glibcpp_cv_func___builtin_sinl_link=yes
5527 else
5528 echo "configure: failed program was:" >&5
5529 cat conftest.$ac_ext >&5
5530 rm -rf conftest*
5531 glibcpp_cv_func___builtin_sinl_link=no
5533 rm -f conftest*
5538 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
5539 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
5540 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5541 cat >> confdefs.h <<EOF
5542 #define ${ac_tr_func} 1
5550 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
5551 echo "configure:5552: checking for __builtin_cosf declaration" >&5
5552 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
5553 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
5554 echo $ac_n "(cached) $ac_c" 1>&6
5555 else
5558 ac_ext=C
5559 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5560 ac_cpp='$CXXCPP $CPPFLAGS'
5561 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5562 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5563 cross_compiling=$ac_cv_prog_cxx_cross
5565 cat > conftest.$ac_ext <<EOF
5566 #line 5567 "configure"
5567 #include "confdefs.h"
5568 #include <math.h>
5569 int main() {
5570 __builtin_cosf(0);
5571 ; return 0; }
5573 if { (eval echo configure:5574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5574 rm -rf conftest*
5575 glibcpp_cv_func___builtin_cosf_use=yes
5576 else
5577 echo "configure: failed program was:" >&5
5578 cat conftest.$ac_ext >&5
5579 rm -rf conftest*
5580 glibcpp_cv_func___builtin_cosf_use=no
5582 rm -f conftest*
5583 ac_ext=c
5584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5585 ac_cpp='$CPP $CPPFLAGS'
5586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5588 cross_compiling=$ac_cv_prog_cc_cross
5594 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
5595 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
5596 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
5597 echo "configure:5598: checking for __builtin_cosf linkage" >&5
5598 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
5599 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
5600 echo $ac_n "(cached) $ac_c" 1>&6
5601 else
5603 cat > conftest.$ac_ext <<EOF
5604 #line 5605 "configure"
5605 #include "confdefs.h"
5606 #include <math.h>
5607 int main() {
5608 __builtin_cosf(0);
5609 ; return 0; }
5611 if { (eval echo configure:5612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5612 rm -rf conftest*
5613 glibcpp_cv_func___builtin_cosf_link=yes
5614 else
5615 echo "configure: failed program was:" >&5
5616 cat conftest.$ac_ext >&5
5617 rm -rf conftest*
5618 glibcpp_cv_func___builtin_cosf_link=no
5620 rm -f conftest*
5625 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
5626 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
5627 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5628 cat >> confdefs.h <<EOF
5629 #define ${ac_tr_func} 1
5636 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
5637 echo "configure:5638: checking for __builtin_cos declaration" >&5
5638 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
5639 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
5640 echo $ac_n "(cached) $ac_c" 1>&6
5641 else
5644 ac_ext=C
5645 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5646 ac_cpp='$CXXCPP $CPPFLAGS'
5647 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5648 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5649 cross_compiling=$ac_cv_prog_cxx_cross
5651 cat > conftest.$ac_ext <<EOF
5652 #line 5653 "configure"
5653 #include "confdefs.h"
5654 #include <math.h>
5655 int main() {
5656 __builtin_cos(0);
5657 ; return 0; }
5659 if { (eval echo configure:5660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5660 rm -rf conftest*
5661 glibcpp_cv_func___builtin_cos_use=yes
5662 else
5663 echo "configure: failed program was:" >&5
5664 cat conftest.$ac_ext >&5
5665 rm -rf conftest*
5666 glibcpp_cv_func___builtin_cos_use=no
5668 rm -f conftest*
5669 ac_ext=c
5670 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5671 ac_cpp='$CPP $CPPFLAGS'
5672 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5673 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5674 cross_compiling=$ac_cv_prog_cc_cross
5680 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
5681 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
5682 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
5683 echo "configure:5684: checking for __builtin_cos linkage" >&5
5684 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
5685 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
5686 echo $ac_n "(cached) $ac_c" 1>&6
5687 else
5689 cat > conftest.$ac_ext <<EOF
5690 #line 5691 "configure"
5691 #include "confdefs.h"
5692 #include <math.h>
5693 int main() {
5694 __builtin_cos(0);
5695 ; return 0; }
5697 if { (eval echo configure:5698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5698 rm -rf conftest*
5699 glibcpp_cv_func___builtin_cos_link=yes
5700 else
5701 echo "configure: failed program was:" >&5
5702 cat conftest.$ac_ext >&5
5703 rm -rf conftest*
5704 glibcpp_cv_func___builtin_cos_link=no
5706 rm -f conftest*
5711 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
5712 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
5713 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5714 cat >> confdefs.h <<EOF
5715 #define ${ac_tr_func} 1
5722 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
5723 echo "configure:5724: checking for __builtin_cosl declaration" >&5
5724 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
5725 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
5726 echo $ac_n "(cached) $ac_c" 1>&6
5727 else
5730 ac_ext=C
5731 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5732 ac_cpp='$CXXCPP $CPPFLAGS'
5733 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5734 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5735 cross_compiling=$ac_cv_prog_cxx_cross
5737 cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5740 #include <math.h>
5741 int main() {
5742 __builtin_cosl(0);
5743 ; return 0; }
5745 if { (eval echo configure:5746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5746 rm -rf conftest*
5747 glibcpp_cv_func___builtin_cosl_use=yes
5748 else
5749 echo "configure: failed program was:" >&5
5750 cat conftest.$ac_ext >&5
5751 rm -rf conftest*
5752 glibcpp_cv_func___builtin_cosl_use=no
5754 rm -f conftest*
5755 ac_ext=c
5756 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5757 ac_cpp='$CPP $CPPFLAGS'
5758 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5759 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5760 cross_compiling=$ac_cv_prog_cc_cross
5766 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
5767 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
5768 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
5769 echo "configure:5770: checking for __builtin_cosl linkage" >&5
5770 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
5771 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
5772 echo $ac_n "(cached) $ac_c" 1>&6
5773 else
5775 cat > conftest.$ac_ext <<EOF
5776 #line 5777 "configure"
5777 #include "confdefs.h"
5778 #include <math.h>
5779 int main() {
5780 __builtin_cosl(0);
5781 ; return 0; }
5783 if { (eval echo configure:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5784 rm -rf conftest*
5785 glibcpp_cv_func___builtin_cosl_link=yes
5786 else
5787 echo "configure: failed program was:" >&5
5788 cat conftest.$ac_ext >&5
5789 rm -rf conftest*
5790 glibcpp_cv_func___builtin_cosl_link=no
5792 rm -f conftest*
5797 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
5798 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
5799 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5800 cat >> confdefs.h <<EOF
5801 #define ${ac_tr_func} 1
5808 dummyvar=no
5809 if test x$dummyvar = x"yes"; then
5810 cat >> confdefs.h <<\EOF
5811 #define HAVE___BUILTIN_ABS 1
5814 cat >> confdefs.h <<\EOF
5815 #define HAVE___BUILTIN_LABS 1
5818 cat >> confdefs.h <<\EOF
5819 #define HAVE___BUILTIN_COS 1
5822 cat >> confdefs.h <<\EOF
5823 #define HAVE___BUILTIN_COSF 1
5826 cat >> confdefs.h <<\EOF
5827 #define HAVE___BUILTIN_COSL 1
5830 cat >> confdefs.h <<\EOF
5831 #define HAVE___BUILTIN_FABS 1
5834 cat >> confdefs.h <<\EOF
5835 #define HAVE___BUILTIN_FABSF 1
5838 cat >> confdefs.h <<\EOF
5839 #define HAVE___BUILTIN_FABSL 1
5842 cat >> confdefs.h <<\EOF
5843 #define HAVE___BUILTIN_SIN 1
5846 cat >> confdefs.h <<\EOF
5847 #define HAVE___BUILTIN_SINF 1
5850 cat >> confdefs.h <<\EOF
5851 #define HAVE___BUILTIN_SINL 1
5854 cat >> confdefs.h <<\EOF
5855 #define HAVE___BUILTIN_FSQRT 1
5858 cat >> confdefs.h <<\EOF
5859 #define HAVE___BUILTIN_SQRTF 1
5862 cat >> confdefs.h <<\EOF
5863 #define HAVE___BUILTIN_SQRTL 1
5869 ac_test_CXXFLAGS="${CXXFLAGS+set}"
5870 ac_save_CXXFLAGS="$CXXFLAGS"
5871 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
5873 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
5874 echo "configure:5875: checking for sin in -lm" >&5
5875 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
5876 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5877 echo $ac_n "(cached) $ac_c" 1>&6
5878 else
5879 ac_save_LIBS="$LIBS"
5880 LIBS="-lm $LIBS"
5881 cat > conftest.$ac_ext <<EOF
5882 #line 5883 "configure"
5883 #include "confdefs.h"
5884 /* Override any gcc2 internal prototype to avoid an error. */
5885 /* We use char because int might match the return type of a gcc2
5886 builtin and then its argument prototype would still apply. */
5887 char sin();
5889 int main() {
5890 sin()
5891 ; return 0; }
5893 if { (eval echo configure:5894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5894 rm -rf conftest*
5895 eval "ac_cv_lib_$ac_lib_var=yes"
5896 else
5897 echo "configure: failed program was:" >&5
5898 cat conftest.$ac_ext >&5
5899 rm -rf conftest*
5900 eval "ac_cv_lib_$ac_lib_var=no"
5902 rm -f conftest*
5903 LIBS="$ac_save_LIBS"
5906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5907 echo "$ac_t""yes" 1>&6
5908 libm="-lm"
5909 else
5910 echo "$ac_t""no" 1>&6
5913 ac_save_LIBS="$LIBS"
5914 LIBS="$LIBS $libm"
5918 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
5919 echo "configure:5920: checking for isinf declaration" >&5
5920 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
5921 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
5922 echo $ac_n "(cached) $ac_c" 1>&6
5923 else
5926 ac_ext=C
5927 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5928 ac_cpp='$CXXCPP $CPPFLAGS'
5929 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5930 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5931 cross_compiling=$ac_cv_prog_cxx_cross
5933 cat > conftest.$ac_ext <<EOF
5934 #line 5935 "configure"
5935 #include "confdefs.h"
5936 #include <math.h>
5937 #ifdef HAVE_IEEEFP_H
5938 #include <ieeefp.h>
5939 #endif
5941 int main() {
5942 isinf(0);
5943 ; return 0; }
5945 if { (eval echo configure:5946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5946 rm -rf conftest*
5947 glibcpp_cv_func_isinf_use=yes
5948 else
5949 echo "configure: failed program was:" >&5
5950 cat conftest.$ac_ext >&5
5951 rm -rf conftest*
5952 glibcpp_cv_func_isinf_use=no
5954 rm -f conftest*
5955 ac_ext=c
5956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5957 ac_cpp='$CPP $CPPFLAGS'
5958 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5959 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5960 cross_compiling=$ac_cv_prog_cc_cross
5966 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
5968 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
5969 for ac_func in isinf
5971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5972 echo "configure:5973: checking for $ac_func" >&5
5973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5974 echo $ac_n "(cached) $ac_c" 1>&6
5975 else
5976 cat > conftest.$ac_ext <<EOF
5977 #line 5978 "configure"
5978 #include "confdefs.h"
5979 /* System header to define __stub macros and hopefully few prototypes,
5980 which can conflict with char $ac_func(); below. */
5981 #include <assert.h>
5982 /* Override any gcc2 internal prototype to avoid an error. */
5983 /* We use char because int might match the return type of a gcc2
5984 builtin and then its argument prototype would still apply. */
5985 char $ac_func();
5987 int main() {
5989 /* The GNU C library defines this for functions which it implements
5990 to always fail with ENOSYS. Some functions are actually named
5991 something starting with __ and the normal name is an alias. */
5992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5993 choke me
5994 #else
5995 $ac_func();
5996 #endif
5998 ; return 0; }
6000 if { (eval echo configure:6001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6001 rm -rf conftest*
6002 eval "ac_cv_func_$ac_func=yes"
6003 else
6004 echo "configure: failed program was:" >&5
6005 cat conftest.$ac_ext >&5
6006 rm -rf conftest*
6007 eval "ac_cv_func_$ac_func=no"
6009 rm -f conftest*
6012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6013 echo "$ac_t""yes" 1>&6
6014 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6015 cat >> confdefs.h <<EOF
6016 #define $ac_tr_func 1
6019 else
6020 echo "$ac_t""no" 1>&6
6022 done
6024 else
6026 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6027 echo "configure:6028: checking for _isinf declaration" >&5
6028 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6029 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6030 echo $ac_n "(cached) $ac_c" 1>&6
6031 else
6034 ac_ext=C
6035 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6036 ac_cpp='$CXXCPP $CPPFLAGS'
6037 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6038 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6039 cross_compiling=$ac_cv_prog_cxx_cross
6041 cat > conftest.$ac_ext <<EOF
6042 #line 6043 "configure"
6043 #include "confdefs.h"
6044 #include <math.h>
6045 #ifdef HAVE_IEEEFP_H
6046 #include <ieeefp.h>
6047 #endif
6049 int main() {
6050 _isinf(0);
6051 ; return 0; }
6053 if { (eval echo configure:6054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6054 rm -rf conftest*
6055 glibcpp_cv_func__isinf_use=yes
6056 else
6057 echo "configure: failed program was:" >&5
6058 cat conftest.$ac_ext >&5
6059 rm -rf conftest*
6060 glibcpp_cv_func__isinf_use=no
6062 rm -f conftest*
6063 ac_ext=c
6064 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6065 ac_cpp='$CPP $CPPFLAGS'
6066 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6067 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6068 cross_compiling=$ac_cv_prog_cc_cross
6074 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6076 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6077 for ac_func in _isinf
6079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6080 echo "configure:6081: checking for $ac_func" >&5
6081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6082 echo $ac_n "(cached) $ac_c" 1>&6
6083 else
6084 cat > conftest.$ac_ext <<EOF
6085 #line 6086 "configure"
6086 #include "confdefs.h"
6087 /* System header to define __stub macros and hopefully few prototypes,
6088 which can conflict with char $ac_func(); below. */
6089 #include <assert.h>
6090 /* Override any gcc2 internal prototype to avoid an error. */
6091 /* We use char because int might match the return type of a gcc2
6092 builtin and then its argument prototype would still apply. */
6093 char $ac_func();
6095 int main() {
6097 /* The GNU C library defines this for functions which it implements
6098 to always fail with ENOSYS. Some functions are actually named
6099 something starting with __ and the normal name is an alias. */
6100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6101 choke me
6102 #else
6103 $ac_func();
6104 #endif
6106 ; return 0; }
6108 if { (eval echo configure:6109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6109 rm -rf conftest*
6110 eval "ac_cv_func_$ac_func=yes"
6111 else
6112 echo "configure: failed program was:" >&5
6113 cat conftest.$ac_ext >&5
6114 rm -rf conftest*
6115 eval "ac_cv_func_$ac_func=no"
6117 rm -f conftest*
6120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6121 echo "$ac_t""yes" 1>&6
6122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6123 cat >> confdefs.h <<EOF
6124 #define $ac_tr_func 1
6127 else
6128 echo "$ac_t""no" 1>&6
6130 done
6137 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6138 echo "configure:6139: checking for isnan declaration" >&5
6139 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6140 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6141 echo $ac_n "(cached) $ac_c" 1>&6
6142 else
6145 ac_ext=C
6146 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6147 ac_cpp='$CXXCPP $CPPFLAGS'
6148 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6149 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6150 cross_compiling=$ac_cv_prog_cxx_cross
6152 cat > conftest.$ac_ext <<EOF
6153 #line 6154 "configure"
6154 #include "confdefs.h"
6155 #include <math.h>
6156 #ifdef HAVE_IEEEFP_H
6157 #include <ieeefp.h>
6158 #endif
6160 int main() {
6161 isnan(0);
6162 ; return 0; }
6164 if { (eval echo configure:6165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6165 rm -rf conftest*
6166 glibcpp_cv_func_isnan_use=yes
6167 else
6168 echo "configure: failed program was:" >&5
6169 cat conftest.$ac_ext >&5
6170 rm -rf conftest*
6171 glibcpp_cv_func_isnan_use=no
6173 rm -f conftest*
6174 ac_ext=c
6175 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6176 ac_cpp='$CPP $CPPFLAGS'
6177 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6178 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6179 cross_compiling=$ac_cv_prog_cc_cross
6185 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6187 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6188 for ac_func in isnan
6190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6191 echo "configure:6192: checking for $ac_func" >&5
6192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6193 echo $ac_n "(cached) $ac_c" 1>&6
6194 else
6195 cat > conftest.$ac_ext <<EOF
6196 #line 6197 "configure"
6197 #include "confdefs.h"
6198 /* System header to define __stub macros and hopefully few prototypes,
6199 which can conflict with char $ac_func(); below. */
6200 #include <assert.h>
6201 /* Override any gcc2 internal prototype to avoid an error. */
6202 /* We use char because int might match the return type of a gcc2
6203 builtin and then its argument prototype would still apply. */
6204 char $ac_func();
6206 int main() {
6208 /* The GNU C library defines this for functions which it implements
6209 to always fail with ENOSYS. Some functions are actually named
6210 something starting with __ and the normal name is an alias. */
6211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6212 choke me
6213 #else
6214 $ac_func();
6215 #endif
6217 ; return 0; }
6219 if { (eval echo configure:6220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6220 rm -rf conftest*
6221 eval "ac_cv_func_$ac_func=yes"
6222 else
6223 echo "configure: failed program was:" >&5
6224 cat conftest.$ac_ext >&5
6225 rm -rf conftest*
6226 eval "ac_cv_func_$ac_func=no"
6228 rm -f conftest*
6231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6232 echo "$ac_t""yes" 1>&6
6233 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6234 cat >> confdefs.h <<EOF
6235 #define $ac_tr_func 1
6238 else
6239 echo "$ac_t""no" 1>&6
6241 done
6243 else
6245 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6246 echo "configure:6247: checking for _isnan declaration" >&5
6247 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6248 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6249 echo $ac_n "(cached) $ac_c" 1>&6
6250 else
6253 ac_ext=C
6254 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6255 ac_cpp='$CXXCPP $CPPFLAGS'
6256 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6257 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6258 cross_compiling=$ac_cv_prog_cxx_cross
6260 cat > conftest.$ac_ext <<EOF
6261 #line 6262 "configure"
6262 #include "confdefs.h"
6263 #include <math.h>
6264 #ifdef HAVE_IEEEFP_H
6265 #include <ieeefp.h>
6266 #endif
6268 int main() {
6269 _isnan(0);
6270 ; return 0; }
6272 if { (eval echo configure:6273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6273 rm -rf conftest*
6274 glibcpp_cv_func__isnan_use=yes
6275 else
6276 echo "configure: failed program was:" >&5
6277 cat conftest.$ac_ext >&5
6278 rm -rf conftest*
6279 glibcpp_cv_func__isnan_use=no
6281 rm -f conftest*
6282 ac_ext=c
6283 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6284 ac_cpp='$CPP $CPPFLAGS'
6285 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6286 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6287 cross_compiling=$ac_cv_prog_cc_cross
6293 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6295 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6296 for ac_func in _isnan
6298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6299 echo "configure:6300: checking for $ac_func" >&5
6300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6301 echo $ac_n "(cached) $ac_c" 1>&6
6302 else
6303 cat > conftest.$ac_ext <<EOF
6304 #line 6305 "configure"
6305 #include "confdefs.h"
6306 /* System header to define __stub macros and hopefully few prototypes,
6307 which can conflict with char $ac_func(); below. */
6308 #include <assert.h>
6309 /* Override any gcc2 internal prototype to avoid an error. */
6310 /* We use char because int might match the return type of a gcc2
6311 builtin and then its argument prototype would still apply. */
6312 char $ac_func();
6314 int main() {
6316 /* The GNU C library defines this for functions which it implements
6317 to always fail with ENOSYS. Some functions are actually named
6318 something starting with __ and the normal name is an alias. */
6319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6320 choke me
6321 #else
6322 $ac_func();
6323 #endif
6325 ; return 0; }
6327 if { (eval echo configure:6328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6328 rm -rf conftest*
6329 eval "ac_cv_func_$ac_func=yes"
6330 else
6331 echo "configure: failed program was:" >&5
6332 cat conftest.$ac_ext >&5
6333 rm -rf conftest*
6334 eval "ac_cv_func_$ac_func=no"
6336 rm -f conftest*
6339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6340 echo "$ac_t""yes" 1>&6
6341 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6342 cat >> confdefs.h <<EOF
6343 #define $ac_tr_func 1
6346 else
6347 echo "$ac_t""no" 1>&6
6349 done
6356 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6357 echo "configure:6358: checking for finite declaration" >&5
6358 if test x${glibcpp_cv_func_finite_use+set} != xset; then
6359 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6360 echo $ac_n "(cached) $ac_c" 1>&6
6361 else
6364 ac_ext=C
6365 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6366 ac_cpp='$CXXCPP $CPPFLAGS'
6367 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6368 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6369 cross_compiling=$ac_cv_prog_cxx_cross
6371 cat > conftest.$ac_ext <<EOF
6372 #line 6373 "configure"
6373 #include "confdefs.h"
6374 #include <math.h>
6375 #ifdef HAVE_IEEEFP_H
6376 #include <ieeefp.h>
6377 #endif
6379 int main() {
6380 finite(0);
6381 ; return 0; }
6383 if { (eval echo configure:6384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6384 rm -rf conftest*
6385 glibcpp_cv_func_finite_use=yes
6386 else
6387 echo "configure: failed program was:" >&5
6388 cat conftest.$ac_ext >&5
6389 rm -rf conftest*
6390 glibcpp_cv_func_finite_use=no
6392 rm -f conftest*
6393 ac_ext=c
6394 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6395 ac_cpp='$CPP $CPPFLAGS'
6396 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6397 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6398 cross_compiling=$ac_cv_prog_cc_cross
6404 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
6406 if test x$glibcpp_cv_func_finite_use = x"yes"; then
6407 for ac_func in finite
6409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6410 echo "configure:6411: checking for $ac_func" >&5
6411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6412 echo $ac_n "(cached) $ac_c" 1>&6
6413 else
6414 cat > conftest.$ac_ext <<EOF
6415 #line 6416 "configure"
6416 #include "confdefs.h"
6417 /* System header to define __stub macros and hopefully few prototypes,
6418 which can conflict with char $ac_func(); below. */
6419 #include <assert.h>
6420 /* Override any gcc2 internal prototype to avoid an error. */
6421 /* We use char because int might match the return type of a gcc2
6422 builtin and then its argument prototype would still apply. */
6423 char $ac_func();
6425 int main() {
6427 /* The GNU C library defines this for functions which it implements
6428 to always fail with ENOSYS. Some functions are actually named
6429 something starting with __ and the normal name is an alias. */
6430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6431 choke me
6432 #else
6433 $ac_func();
6434 #endif
6436 ; return 0; }
6438 if { (eval echo configure:6439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6439 rm -rf conftest*
6440 eval "ac_cv_func_$ac_func=yes"
6441 else
6442 echo "configure: failed program was:" >&5
6443 cat conftest.$ac_ext >&5
6444 rm -rf conftest*
6445 eval "ac_cv_func_$ac_func=no"
6447 rm -f conftest*
6450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6451 echo "$ac_t""yes" 1>&6
6452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6453 cat >> confdefs.h <<EOF
6454 #define $ac_tr_func 1
6457 else
6458 echo "$ac_t""no" 1>&6
6460 done
6462 else
6464 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
6465 echo "configure:6466: checking for _finite declaration" >&5
6466 if test x${glibcpp_cv_func__finite_use+set} != xset; then
6467 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
6468 echo $ac_n "(cached) $ac_c" 1>&6
6469 else
6472 ac_ext=C
6473 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6474 ac_cpp='$CXXCPP $CPPFLAGS'
6475 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6476 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6477 cross_compiling=$ac_cv_prog_cxx_cross
6479 cat > conftest.$ac_ext <<EOF
6480 #line 6481 "configure"
6481 #include "confdefs.h"
6482 #include <math.h>
6483 #ifdef HAVE_IEEEFP_H
6484 #include <ieeefp.h>
6485 #endif
6487 int main() {
6488 _finite(0);
6489 ; return 0; }
6491 if { (eval echo configure:6492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6492 rm -rf conftest*
6493 glibcpp_cv_func__finite_use=yes
6494 else
6495 echo "configure: failed program was:" >&5
6496 cat conftest.$ac_ext >&5
6497 rm -rf conftest*
6498 glibcpp_cv_func__finite_use=no
6500 rm -f conftest*
6501 ac_ext=c
6502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6503 ac_cpp='$CPP $CPPFLAGS'
6504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6506 cross_compiling=$ac_cv_prog_cc_cross
6512 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
6514 if test x$glibcpp_cv_func__finite_use = x"yes"; then
6515 for ac_func in _finite
6517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6518 echo "configure:6519: checking for $ac_func" >&5
6519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6520 echo $ac_n "(cached) $ac_c" 1>&6
6521 else
6522 cat > conftest.$ac_ext <<EOF
6523 #line 6524 "configure"
6524 #include "confdefs.h"
6525 /* System header to define __stub macros and hopefully few prototypes,
6526 which can conflict with char $ac_func(); below. */
6527 #include <assert.h>
6528 /* Override any gcc2 internal prototype to avoid an error. */
6529 /* We use char because int might match the return type of a gcc2
6530 builtin and then its argument prototype would still apply. */
6531 char $ac_func();
6533 int main() {
6535 /* The GNU C library defines this for functions which it implements
6536 to always fail with ENOSYS. Some functions are actually named
6537 something starting with __ and the normal name is an alias. */
6538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6539 choke me
6540 #else
6541 $ac_func();
6542 #endif
6544 ; return 0; }
6546 if { (eval echo configure:6547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6547 rm -rf conftest*
6548 eval "ac_cv_func_$ac_func=yes"
6549 else
6550 echo "configure: failed program was:" >&5
6551 cat conftest.$ac_ext >&5
6552 rm -rf conftest*
6553 eval "ac_cv_func_$ac_func=no"
6555 rm -f conftest*
6558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6559 echo "$ac_t""yes" 1>&6
6560 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6561 cat >> confdefs.h <<EOF
6562 #define $ac_tr_func 1
6565 else
6566 echo "$ac_t""no" 1>&6
6568 done
6575 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
6576 echo "configure:6577: checking for copysign declaration" >&5
6577 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
6578 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
6579 echo $ac_n "(cached) $ac_c" 1>&6
6580 else
6583 ac_ext=C
6584 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6585 ac_cpp='$CXXCPP $CPPFLAGS'
6586 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6587 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6588 cross_compiling=$ac_cv_prog_cxx_cross
6590 cat > conftest.$ac_ext <<EOF
6591 #line 6592 "configure"
6592 #include "confdefs.h"
6593 #include <math.h>
6594 int main() {
6595 copysign(0, 0);
6596 ; return 0; }
6598 if { (eval echo configure:6599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6599 rm -rf conftest*
6600 glibcpp_cv_func_copysign_use=yes
6601 else
6602 echo "configure: failed program was:" >&5
6603 cat conftest.$ac_ext >&5
6604 rm -rf conftest*
6605 glibcpp_cv_func_copysign_use=no
6607 rm -f conftest*
6608 ac_ext=c
6609 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6610 ac_cpp='$CPP $CPPFLAGS'
6611 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6612 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6613 cross_compiling=$ac_cv_prog_cc_cross
6619 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
6621 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
6622 for ac_func in copysign
6624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6625 echo "configure:6626: checking for $ac_func" >&5
6626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6627 echo $ac_n "(cached) $ac_c" 1>&6
6628 else
6629 cat > conftest.$ac_ext <<EOF
6630 #line 6631 "configure"
6631 #include "confdefs.h"
6632 /* System header to define __stub macros and hopefully few prototypes,
6633 which can conflict with char $ac_func(); below. */
6634 #include <assert.h>
6635 /* Override any gcc2 internal prototype to avoid an error. */
6636 /* We use char because int might match the return type of a gcc2
6637 builtin and then its argument prototype would still apply. */
6638 char $ac_func();
6640 int main() {
6642 /* The GNU C library defines this for functions which it implements
6643 to always fail with ENOSYS. Some functions are actually named
6644 something starting with __ and the normal name is an alias. */
6645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6646 choke me
6647 #else
6648 $ac_func();
6649 #endif
6651 ; return 0; }
6653 if { (eval echo configure:6654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6654 rm -rf conftest*
6655 eval "ac_cv_func_$ac_func=yes"
6656 else
6657 echo "configure: failed program was:" >&5
6658 cat conftest.$ac_ext >&5
6659 rm -rf conftest*
6660 eval "ac_cv_func_$ac_func=no"
6662 rm -f conftest*
6665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6666 echo "$ac_t""yes" 1>&6
6667 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6668 cat >> confdefs.h <<EOF
6669 #define $ac_tr_func 1
6672 else
6673 echo "$ac_t""no" 1>&6
6675 done
6677 else
6679 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
6680 echo "configure:6681: checking for _copysign declaration" >&5
6681 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
6682 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
6683 echo $ac_n "(cached) $ac_c" 1>&6
6684 else
6687 ac_ext=C
6688 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6689 ac_cpp='$CXXCPP $CPPFLAGS'
6690 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6691 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6692 cross_compiling=$ac_cv_prog_cxx_cross
6694 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6697 #include <math.h>
6698 int main() {
6699 _copysign(0, 0);
6700 ; return 0; }
6702 if { (eval echo configure:6703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6703 rm -rf conftest*
6704 glibcpp_cv_func__copysign_use=yes
6705 else
6706 echo "configure: failed program was:" >&5
6707 cat conftest.$ac_ext >&5
6708 rm -rf conftest*
6709 glibcpp_cv_func__copysign_use=no
6711 rm -f conftest*
6712 ac_ext=c
6713 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6714 ac_cpp='$CPP $CPPFLAGS'
6715 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6716 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6717 cross_compiling=$ac_cv_prog_cc_cross
6723 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
6725 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
6726 for ac_func in _copysign
6728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6729 echo "configure:6730: checking for $ac_func" >&5
6730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6731 echo $ac_n "(cached) $ac_c" 1>&6
6732 else
6733 cat > conftest.$ac_ext <<EOF
6734 #line 6735 "configure"
6735 #include "confdefs.h"
6736 /* System header to define __stub macros and hopefully few prototypes,
6737 which can conflict with char $ac_func(); below. */
6738 #include <assert.h>
6739 /* Override any gcc2 internal prototype to avoid an error. */
6740 /* We use char because int might match the return type of a gcc2
6741 builtin and then its argument prototype would still apply. */
6742 char $ac_func();
6744 int main() {
6746 /* The GNU C library defines this for functions which it implements
6747 to always fail with ENOSYS. Some functions are actually named
6748 something starting with __ and the normal name is an alias. */
6749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6750 choke me
6751 #else
6752 $ac_func();
6753 #endif
6755 ; return 0; }
6757 if { (eval echo configure:6758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6758 rm -rf conftest*
6759 eval "ac_cv_func_$ac_func=yes"
6760 else
6761 echo "configure: failed program was:" >&5
6762 cat conftest.$ac_ext >&5
6763 rm -rf conftest*
6764 eval "ac_cv_func_$ac_func=no"
6766 rm -f conftest*
6769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6770 echo "$ac_t""yes" 1>&6
6771 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6772 cat >> confdefs.h <<EOF
6773 #define $ac_tr_func 1
6776 else
6777 echo "$ac_t""no" 1>&6
6779 done
6786 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
6787 echo "configure:6788: checking for sincos declaration" >&5
6788 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
6789 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
6790 echo $ac_n "(cached) $ac_c" 1>&6
6791 else
6794 ac_ext=C
6795 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6796 ac_cpp='$CXXCPP $CPPFLAGS'
6797 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6798 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6799 cross_compiling=$ac_cv_prog_cxx_cross
6801 cat > conftest.$ac_ext <<EOF
6802 #line 6803 "configure"
6803 #include "confdefs.h"
6804 #include <math.h>
6805 int main() {
6806 sincos(0, 0, 0);
6807 ; return 0; }
6809 if { (eval echo configure:6810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6810 rm -rf conftest*
6811 glibcpp_cv_func_sincos_use=yes
6812 else
6813 echo "configure: failed program was:" >&5
6814 cat conftest.$ac_ext >&5
6815 rm -rf conftest*
6816 glibcpp_cv_func_sincos_use=no
6818 rm -f conftest*
6819 ac_ext=c
6820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6821 ac_cpp='$CPP $CPPFLAGS'
6822 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6823 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6824 cross_compiling=$ac_cv_prog_cc_cross
6830 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
6832 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
6833 for ac_func in sincos
6835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6836 echo "configure:6837: checking for $ac_func" >&5
6837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6838 echo $ac_n "(cached) $ac_c" 1>&6
6839 else
6840 cat > conftest.$ac_ext <<EOF
6841 #line 6842 "configure"
6842 #include "confdefs.h"
6843 /* System header to define __stub macros and hopefully few prototypes,
6844 which can conflict with char $ac_func(); below. */
6845 #include <assert.h>
6846 /* Override any gcc2 internal prototype to avoid an error. */
6847 /* We use char because int might match the return type of a gcc2
6848 builtin and then its argument prototype would still apply. */
6849 char $ac_func();
6851 int main() {
6853 /* The GNU C library defines this for functions which it implements
6854 to always fail with ENOSYS. Some functions are actually named
6855 something starting with __ and the normal name is an alias. */
6856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6857 choke me
6858 #else
6859 $ac_func();
6860 #endif
6862 ; return 0; }
6864 if { (eval echo configure:6865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6865 rm -rf conftest*
6866 eval "ac_cv_func_$ac_func=yes"
6867 else
6868 echo "configure: failed program was:" >&5
6869 cat conftest.$ac_ext >&5
6870 rm -rf conftest*
6871 eval "ac_cv_func_$ac_func=no"
6873 rm -f conftest*
6876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6877 echo "$ac_t""yes" 1>&6
6878 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6879 cat >> confdefs.h <<EOF
6880 #define $ac_tr_func 1
6883 else
6884 echo "$ac_t""no" 1>&6
6886 done
6888 else
6890 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
6891 echo "configure:6892: checking for _sincos declaration" >&5
6892 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
6893 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
6894 echo $ac_n "(cached) $ac_c" 1>&6
6895 else
6898 ac_ext=C
6899 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6900 ac_cpp='$CXXCPP $CPPFLAGS'
6901 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6902 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6903 cross_compiling=$ac_cv_prog_cxx_cross
6905 cat > conftest.$ac_ext <<EOF
6906 #line 6907 "configure"
6907 #include "confdefs.h"
6908 #include <math.h>
6909 int main() {
6910 _sincos(0, 0, 0);
6911 ; return 0; }
6913 if { (eval echo configure:6914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6914 rm -rf conftest*
6915 glibcpp_cv_func__sincos_use=yes
6916 else
6917 echo "configure: failed program was:" >&5
6918 cat conftest.$ac_ext >&5
6919 rm -rf conftest*
6920 glibcpp_cv_func__sincos_use=no
6922 rm -f conftest*
6923 ac_ext=c
6924 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6925 ac_cpp='$CPP $CPPFLAGS'
6926 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6927 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6928 cross_compiling=$ac_cv_prog_cc_cross
6934 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
6936 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
6937 for ac_func in _sincos
6939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6940 echo "configure:6941: checking for $ac_func" >&5
6941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6942 echo $ac_n "(cached) $ac_c" 1>&6
6943 else
6944 cat > conftest.$ac_ext <<EOF
6945 #line 6946 "configure"
6946 #include "confdefs.h"
6947 /* System header to define __stub macros and hopefully few prototypes,
6948 which can conflict with char $ac_func(); below. */
6949 #include <assert.h>
6950 /* Override any gcc2 internal prototype to avoid an error. */
6951 /* We use char because int might match the return type of a gcc2
6952 builtin and then its argument prototype would still apply. */
6953 char $ac_func();
6955 int main() {
6957 /* The GNU C library defines this for functions which it implements
6958 to always fail with ENOSYS. Some functions are actually named
6959 something starting with __ and the normal name is an alias. */
6960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6961 choke me
6962 #else
6963 $ac_func();
6964 #endif
6966 ; return 0; }
6968 if { (eval echo configure:6969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6969 rm -rf conftest*
6970 eval "ac_cv_func_$ac_func=yes"
6971 else
6972 echo "configure: failed program was:" >&5
6973 cat conftest.$ac_ext >&5
6974 rm -rf conftest*
6975 eval "ac_cv_func_$ac_func=no"
6977 rm -f conftest*
6980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6981 echo "$ac_t""yes" 1>&6
6982 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6983 cat >> confdefs.h <<EOF
6984 #define $ac_tr_func 1
6987 else
6988 echo "$ac_t""no" 1>&6
6990 done
6997 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
6998 echo "configure:6999: checking for fpclass declaration" >&5
6999 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7000 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7001 echo $ac_n "(cached) $ac_c" 1>&6
7002 else
7005 ac_ext=C
7006 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7007 ac_cpp='$CXXCPP $CPPFLAGS'
7008 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7009 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7010 cross_compiling=$ac_cv_prog_cxx_cross
7012 cat > conftest.$ac_ext <<EOF
7013 #line 7014 "configure"
7014 #include "confdefs.h"
7015 #include <math.h>
7016 #ifdef HAVE_IEEEFP_H
7017 #include <ieeefp.h>
7018 #endif
7020 int main() {
7021 fpclass(0);
7022 ; return 0; }
7024 if { (eval echo configure:7025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7025 rm -rf conftest*
7026 glibcpp_cv_func_fpclass_use=yes
7027 else
7028 echo "configure: failed program was:" >&5
7029 cat conftest.$ac_ext >&5
7030 rm -rf conftest*
7031 glibcpp_cv_func_fpclass_use=no
7033 rm -f conftest*
7034 ac_ext=c
7035 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7036 ac_cpp='$CPP $CPPFLAGS'
7037 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7038 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7039 cross_compiling=$ac_cv_prog_cc_cross
7045 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7047 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7048 for ac_func in fpclass
7050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7051 echo "configure:7052: checking for $ac_func" >&5
7052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7053 echo $ac_n "(cached) $ac_c" 1>&6
7054 else
7055 cat > conftest.$ac_ext <<EOF
7056 #line 7057 "configure"
7057 #include "confdefs.h"
7058 /* System header to define __stub macros and hopefully few prototypes,
7059 which can conflict with char $ac_func(); below. */
7060 #include <assert.h>
7061 /* Override any gcc2 internal prototype to avoid an error. */
7062 /* We use char because int might match the return type of a gcc2
7063 builtin and then its argument prototype would still apply. */
7064 char $ac_func();
7066 int main() {
7068 /* The GNU C library defines this for functions which it implements
7069 to always fail with ENOSYS. Some functions are actually named
7070 something starting with __ and the normal name is an alias. */
7071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7072 choke me
7073 #else
7074 $ac_func();
7075 #endif
7077 ; return 0; }
7079 if { (eval echo configure:7080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7080 rm -rf conftest*
7081 eval "ac_cv_func_$ac_func=yes"
7082 else
7083 echo "configure: failed program was:" >&5
7084 cat conftest.$ac_ext >&5
7085 rm -rf conftest*
7086 eval "ac_cv_func_$ac_func=no"
7088 rm -f conftest*
7091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7092 echo "$ac_t""yes" 1>&6
7093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7094 cat >> confdefs.h <<EOF
7095 #define $ac_tr_func 1
7098 else
7099 echo "$ac_t""no" 1>&6
7101 done
7103 else
7105 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7106 echo "configure:7107: checking for _fpclass declaration" >&5
7107 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7108 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7109 echo $ac_n "(cached) $ac_c" 1>&6
7110 else
7113 ac_ext=C
7114 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7115 ac_cpp='$CXXCPP $CPPFLAGS'
7116 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7117 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7118 cross_compiling=$ac_cv_prog_cxx_cross
7120 cat > conftest.$ac_ext <<EOF
7121 #line 7122 "configure"
7122 #include "confdefs.h"
7123 #include <math.h>
7124 #ifdef HAVE_IEEEFP_H
7125 #include <ieeefp.h>
7126 #endif
7128 int main() {
7129 _fpclass(0);
7130 ; return 0; }
7132 if { (eval echo configure:7133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7133 rm -rf conftest*
7134 glibcpp_cv_func__fpclass_use=yes
7135 else
7136 echo "configure: failed program was:" >&5
7137 cat conftest.$ac_ext >&5
7138 rm -rf conftest*
7139 glibcpp_cv_func__fpclass_use=no
7141 rm -f conftest*
7142 ac_ext=c
7143 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7144 ac_cpp='$CPP $CPPFLAGS'
7145 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7146 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7147 cross_compiling=$ac_cv_prog_cc_cross
7153 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7155 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7156 for ac_func in _fpclass
7158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7159 echo "configure:7160: checking for $ac_func" >&5
7160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7161 echo $ac_n "(cached) $ac_c" 1>&6
7162 else
7163 cat > conftest.$ac_ext <<EOF
7164 #line 7165 "configure"
7165 #include "confdefs.h"
7166 /* System header to define __stub macros and hopefully few prototypes,
7167 which can conflict with char $ac_func(); below. */
7168 #include <assert.h>
7169 /* Override any gcc2 internal prototype to avoid an error. */
7170 /* We use char because int might match the return type of a gcc2
7171 builtin and then its argument prototype would still apply. */
7172 char $ac_func();
7174 int main() {
7176 /* The GNU C library defines this for functions which it implements
7177 to always fail with ENOSYS. Some functions are actually named
7178 something starting with __ and the normal name is an alias. */
7179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7180 choke me
7181 #else
7182 $ac_func();
7183 #endif
7185 ; return 0; }
7187 if { (eval echo configure:7188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7188 rm -rf conftest*
7189 eval "ac_cv_func_$ac_func=yes"
7190 else
7191 echo "configure: failed program was:" >&5
7192 cat conftest.$ac_ext >&5
7193 rm -rf conftest*
7194 eval "ac_cv_func_$ac_func=no"
7196 rm -f conftest*
7199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7200 echo "$ac_t""yes" 1>&6
7201 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7202 cat >> confdefs.h <<EOF
7203 #define $ac_tr_func 1
7206 else
7207 echo "$ac_t""no" 1>&6
7209 done
7216 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7217 echo "configure:7218: checking for qfpclass declaration" >&5
7218 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7219 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7220 echo $ac_n "(cached) $ac_c" 1>&6
7221 else
7224 ac_ext=C
7225 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7226 ac_cpp='$CXXCPP $CPPFLAGS'
7227 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7228 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7229 cross_compiling=$ac_cv_prog_cxx_cross
7231 cat > conftest.$ac_ext <<EOF
7232 #line 7233 "configure"
7233 #include "confdefs.h"
7234 #include <math.h>
7235 #ifdef HAVE_IEEEFP_H
7236 #include <ieeefp.h>
7237 #endif
7239 int main() {
7240 qfpclass(0);
7241 ; return 0; }
7243 if { (eval echo configure:7244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7244 rm -rf conftest*
7245 glibcpp_cv_func_qfpclass_use=yes
7246 else
7247 echo "configure: failed program was:" >&5
7248 cat conftest.$ac_ext >&5
7249 rm -rf conftest*
7250 glibcpp_cv_func_qfpclass_use=no
7252 rm -f conftest*
7253 ac_ext=c
7254 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7255 ac_cpp='$CPP $CPPFLAGS'
7256 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7257 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7258 cross_compiling=$ac_cv_prog_cc_cross
7264 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7266 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7267 for ac_func in qfpclass
7269 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7270 echo "configure:7271: checking for $ac_func" >&5
7271 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7272 echo $ac_n "(cached) $ac_c" 1>&6
7273 else
7274 cat > conftest.$ac_ext <<EOF
7275 #line 7276 "configure"
7276 #include "confdefs.h"
7277 /* System header to define __stub macros and hopefully few prototypes,
7278 which can conflict with char $ac_func(); below. */
7279 #include <assert.h>
7280 /* Override any gcc2 internal prototype to avoid an error. */
7281 /* We use char because int might match the return type of a gcc2
7282 builtin and then its argument prototype would still apply. */
7283 char $ac_func();
7285 int main() {
7287 /* The GNU C library defines this for functions which it implements
7288 to always fail with ENOSYS. Some functions are actually named
7289 something starting with __ and the normal name is an alias. */
7290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7291 choke me
7292 #else
7293 $ac_func();
7294 #endif
7296 ; return 0; }
7298 if { (eval echo configure:7299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7299 rm -rf conftest*
7300 eval "ac_cv_func_$ac_func=yes"
7301 else
7302 echo "configure: failed program was:" >&5
7303 cat conftest.$ac_ext >&5
7304 rm -rf conftest*
7305 eval "ac_cv_func_$ac_func=no"
7307 rm -f conftest*
7310 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7311 echo "$ac_t""yes" 1>&6
7312 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7313 cat >> confdefs.h <<EOF
7314 #define $ac_tr_func 1
7317 else
7318 echo "$ac_t""no" 1>&6
7320 done
7322 else
7324 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7325 echo "configure:7326: checking for _qfpclass declaration" >&5
7326 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7327 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7328 echo $ac_n "(cached) $ac_c" 1>&6
7329 else
7332 ac_ext=C
7333 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7334 ac_cpp='$CXXCPP $CPPFLAGS'
7335 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7336 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7337 cross_compiling=$ac_cv_prog_cxx_cross
7339 cat > conftest.$ac_ext <<EOF
7340 #line 7341 "configure"
7341 #include "confdefs.h"
7342 #include <math.h>
7343 #ifdef HAVE_IEEEFP_H
7344 #include <ieeefp.h>
7345 #endif
7347 int main() {
7348 _qfpclass(0);
7349 ; return 0; }
7351 if { (eval echo configure:7352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7352 rm -rf conftest*
7353 glibcpp_cv_func__qfpclass_use=yes
7354 else
7355 echo "configure: failed program was:" >&5
7356 cat conftest.$ac_ext >&5
7357 rm -rf conftest*
7358 glibcpp_cv_func__qfpclass_use=no
7360 rm -f conftest*
7361 ac_ext=c
7362 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7363 ac_cpp='$CPP $CPPFLAGS'
7364 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7365 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7366 cross_compiling=$ac_cv_prog_cc_cross
7372 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7374 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7375 for ac_func in _qfpclass
7377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7378 echo "configure:7379: checking for $ac_func" >&5
7379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7380 echo $ac_n "(cached) $ac_c" 1>&6
7381 else
7382 cat > conftest.$ac_ext <<EOF
7383 #line 7384 "configure"
7384 #include "confdefs.h"
7385 /* System header to define __stub macros and hopefully few prototypes,
7386 which can conflict with char $ac_func(); below. */
7387 #include <assert.h>
7388 /* Override any gcc2 internal prototype to avoid an error. */
7389 /* We use char because int might match the return type of a gcc2
7390 builtin and then its argument prototype would still apply. */
7391 char $ac_func();
7393 int main() {
7395 /* The GNU C library defines this for functions which it implements
7396 to always fail with ENOSYS. Some functions are actually named
7397 something starting with __ and the normal name is an alias. */
7398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7399 choke me
7400 #else
7401 $ac_func();
7402 #endif
7404 ; return 0; }
7406 if { (eval echo configure:7407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7407 rm -rf conftest*
7408 eval "ac_cv_func_$ac_func=yes"
7409 else
7410 echo "configure: failed program was:" >&5
7411 cat conftest.$ac_ext >&5
7412 rm -rf conftest*
7413 eval "ac_cv_func_$ac_func=no"
7415 rm -f conftest*
7418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7419 echo "$ac_t""yes" 1>&6
7420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7421 cat >> confdefs.h <<EOF
7422 #define $ac_tr_func 1
7425 else
7426 echo "$ac_t""no" 1>&6
7428 done
7435 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
7436 echo "configure:7437: checking for float trig functions" >&5
7437 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
7438 echo $ac_n "(cached) $ac_c" 1>&6
7439 else
7442 ac_ext=C
7443 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7444 ac_cpp='$CXXCPP $CPPFLAGS'
7445 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7446 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7447 cross_compiling=$ac_cv_prog_cxx_cross
7449 cat > conftest.$ac_ext <<EOF
7450 #line 7451 "configure"
7451 #include "confdefs.h"
7452 #include <math.h>
7453 int main() {
7454 `for x in acosf asinf atanf \
7455 cosf sinf tanf \
7456 coshf sinhf tanhf; do echo "$x (0);"; done`
7457 ; return 0; }
7459 if { (eval echo configure:7460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7460 rm -rf conftest*
7461 glibcpp_cv_func_float_trig_use=yes
7462 else
7463 echo "configure: failed program was:" >&5
7464 cat conftest.$ac_ext >&5
7465 rm -rf conftest*
7466 glibcpp_cv_func_float_trig_use=no
7468 rm -f conftest*
7469 ac_ext=c
7470 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7471 ac_cpp='$CPP $CPPFLAGS'
7472 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7473 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7474 cross_compiling=$ac_cv_prog_cc_cross
7478 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
7479 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
7480 for ac_func in acosf asinf atanf \
7481 cosf sinf tanf \
7482 coshf sinhf tanhf
7484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7485 echo "configure:7486: checking for $ac_func" >&5
7486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7487 echo $ac_n "(cached) $ac_c" 1>&6
7488 else
7489 cat > conftest.$ac_ext <<EOF
7490 #line 7491 "configure"
7491 #include "confdefs.h"
7492 /* System header to define __stub macros and hopefully few prototypes,
7493 which can conflict with char $ac_func(); below. */
7494 #include <assert.h>
7495 /* Override any gcc2 internal prototype to avoid an error. */
7496 /* We use char because int might match the return type of a gcc2
7497 builtin and then its argument prototype would still apply. */
7498 char $ac_func();
7500 int main() {
7502 /* The GNU C library defines this for functions which it implements
7503 to always fail with ENOSYS. Some functions are actually named
7504 something starting with __ and the normal name is an alias. */
7505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7506 choke me
7507 #else
7508 $ac_func();
7509 #endif
7511 ; return 0; }
7513 if { (eval echo configure:7514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7514 rm -rf conftest*
7515 eval "ac_cv_func_$ac_func=yes"
7516 else
7517 echo "configure: failed program was:" >&5
7518 cat conftest.$ac_ext >&5
7519 rm -rf conftest*
7520 eval "ac_cv_func_$ac_func=no"
7522 rm -f conftest*
7525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7526 echo "$ac_t""yes" 1>&6
7527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7528 cat >> confdefs.h <<EOF
7529 #define $ac_tr_func 1
7532 else
7533 echo "$ac_t""no" 1>&6
7535 done
7540 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
7541 echo "configure:7542: checking for float round functions" >&5
7542 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
7543 echo $ac_n "(cached) $ac_c" 1>&6
7544 else
7547 ac_ext=C
7548 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7549 ac_cpp='$CXXCPP $CPPFLAGS'
7550 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7551 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7552 cross_compiling=$ac_cv_prog_cxx_cross
7554 cat > conftest.$ac_ext <<EOF
7555 #line 7556 "configure"
7556 #include "confdefs.h"
7557 #include <math.h>
7558 int main() {
7559 `for x in ceilf floorf; do echo "$x (0);"; done`
7560 ; return 0; }
7562 if { (eval echo configure:7563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7563 rm -rf conftest*
7564 glibcpp_cv_func_float_round_use=yes
7565 else
7566 echo "configure: failed program was:" >&5
7567 cat conftest.$ac_ext >&5
7568 rm -rf conftest*
7569 glibcpp_cv_func_float_round_use=no
7571 rm -f conftest*
7572 ac_ext=c
7573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7574 ac_cpp='$CPP $CPPFLAGS'
7575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7576 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7577 cross_compiling=$ac_cv_prog_cc_cross
7581 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
7582 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
7583 for ac_func in ceilf floorf
7585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7586 echo "configure:7587: checking for $ac_func" >&5
7587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7588 echo $ac_n "(cached) $ac_c" 1>&6
7589 else
7590 cat > conftest.$ac_ext <<EOF
7591 #line 7592 "configure"
7592 #include "confdefs.h"
7593 /* System header to define __stub macros and hopefully few prototypes,
7594 which can conflict with char $ac_func(); below. */
7595 #include <assert.h>
7596 /* Override any gcc2 internal prototype to avoid an error. */
7597 /* We use char because int might match the return type of a gcc2
7598 builtin and then its argument prototype would still apply. */
7599 char $ac_func();
7601 int main() {
7603 /* The GNU C library defines this for functions which it implements
7604 to always fail with ENOSYS. Some functions are actually named
7605 something starting with __ and the normal name is an alias. */
7606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7607 choke me
7608 #else
7609 $ac_func();
7610 #endif
7612 ; return 0; }
7614 if { (eval echo configure:7615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7615 rm -rf conftest*
7616 eval "ac_cv_func_$ac_func=yes"
7617 else
7618 echo "configure: failed program was:" >&5
7619 cat conftest.$ac_ext >&5
7620 rm -rf conftest*
7621 eval "ac_cv_func_$ac_func=no"
7623 rm -f conftest*
7626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7627 echo "$ac_t""yes" 1>&6
7628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7629 cat >> confdefs.h <<EOF
7630 #define $ac_tr_func 1
7633 else
7634 echo "$ac_t""no" 1>&6
7636 done
7642 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
7643 echo "configure:7644: checking for isnanf declaration" >&5
7644 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
7645 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
7646 echo $ac_n "(cached) $ac_c" 1>&6
7647 else
7650 ac_ext=C
7651 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7652 ac_cpp='$CXXCPP $CPPFLAGS'
7653 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7654 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7655 cross_compiling=$ac_cv_prog_cxx_cross
7657 cat > conftest.$ac_ext <<EOF
7658 #line 7659 "configure"
7659 #include "confdefs.h"
7660 #include <math.h>
7661 #ifdef HAVE_IEEEFP_H
7662 #include <ieeefp.h>
7663 #endif
7665 int main() {
7666 isnanf(0);
7667 ; return 0; }
7669 if { (eval echo configure:7670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7670 rm -rf conftest*
7671 glibcpp_cv_func_isnanf_use=yes
7672 else
7673 echo "configure: failed program was:" >&5
7674 cat conftest.$ac_ext >&5
7675 rm -rf conftest*
7676 glibcpp_cv_func_isnanf_use=no
7678 rm -f conftest*
7679 ac_ext=c
7680 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7681 ac_cpp='$CPP $CPPFLAGS'
7682 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7683 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7684 cross_compiling=$ac_cv_prog_cc_cross
7690 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
7692 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
7693 for ac_func in isnanf
7695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7696 echo "configure:7697: checking for $ac_func" >&5
7697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7698 echo $ac_n "(cached) $ac_c" 1>&6
7699 else
7700 cat > conftest.$ac_ext <<EOF
7701 #line 7702 "configure"
7702 #include "confdefs.h"
7703 /* System header to define __stub macros and hopefully few prototypes,
7704 which can conflict with char $ac_func(); below. */
7705 #include <assert.h>
7706 /* Override any gcc2 internal prototype to avoid an error. */
7707 /* We use char because int might match the return type of a gcc2
7708 builtin and then its argument prototype would still apply. */
7709 char $ac_func();
7711 int main() {
7713 /* The GNU C library defines this for functions which it implements
7714 to always fail with ENOSYS. Some functions are actually named
7715 something starting with __ and the normal name is an alias. */
7716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7717 choke me
7718 #else
7719 $ac_func();
7720 #endif
7722 ; return 0; }
7724 if { (eval echo configure:7725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7725 rm -rf conftest*
7726 eval "ac_cv_func_$ac_func=yes"
7727 else
7728 echo "configure: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7730 rm -rf conftest*
7731 eval "ac_cv_func_$ac_func=no"
7733 rm -f conftest*
7736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7737 echo "$ac_t""yes" 1>&6
7738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7739 cat >> confdefs.h <<EOF
7740 #define $ac_tr_func 1
7743 else
7744 echo "$ac_t""no" 1>&6
7746 done
7748 else
7750 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
7751 echo "configure:7752: checking for _isnanf declaration" >&5
7752 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
7753 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
7754 echo $ac_n "(cached) $ac_c" 1>&6
7755 else
7758 ac_ext=C
7759 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7760 ac_cpp='$CXXCPP $CPPFLAGS'
7761 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7762 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7763 cross_compiling=$ac_cv_prog_cxx_cross
7765 cat > conftest.$ac_ext <<EOF
7766 #line 7767 "configure"
7767 #include "confdefs.h"
7768 #include <math.h>
7769 #ifdef HAVE_IEEEFP_H
7770 #include <ieeefp.h>
7771 #endif
7773 int main() {
7774 _isnanf(0);
7775 ; return 0; }
7777 if { (eval echo configure:7778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7778 rm -rf conftest*
7779 glibcpp_cv_func__isnanf_use=yes
7780 else
7781 echo "configure: failed program was:" >&5
7782 cat conftest.$ac_ext >&5
7783 rm -rf conftest*
7784 glibcpp_cv_func__isnanf_use=no
7786 rm -f conftest*
7787 ac_ext=c
7788 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7789 ac_cpp='$CPP $CPPFLAGS'
7790 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7791 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7792 cross_compiling=$ac_cv_prog_cc_cross
7798 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
7800 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
7801 for ac_func in _isnanf
7803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7804 echo "configure:7805: checking for $ac_func" >&5
7805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7806 echo $ac_n "(cached) $ac_c" 1>&6
7807 else
7808 cat > conftest.$ac_ext <<EOF
7809 #line 7810 "configure"
7810 #include "confdefs.h"
7811 /* System header to define __stub macros and hopefully few prototypes,
7812 which can conflict with char $ac_func(); below. */
7813 #include <assert.h>
7814 /* Override any gcc2 internal prototype to avoid an error. */
7815 /* We use char because int might match the return type of a gcc2
7816 builtin and then its argument prototype would still apply. */
7817 char $ac_func();
7819 int main() {
7821 /* The GNU C library defines this for functions which it implements
7822 to always fail with ENOSYS. Some functions are actually named
7823 something starting with __ and the normal name is an alias. */
7824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7825 choke me
7826 #else
7827 $ac_func();
7828 #endif
7830 ; return 0; }
7832 if { (eval echo configure:7833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7833 rm -rf conftest*
7834 eval "ac_cv_func_$ac_func=yes"
7835 else
7836 echo "configure: failed program was:" >&5
7837 cat conftest.$ac_ext >&5
7838 rm -rf conftest*
7839 eval "ac_cv_func_$ac_func=no"
7841 rm -f conftest*
7844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7845 echo "$ac_t""yes" 1>&6
7846 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7847 cat >> confdefs.h <<EOF
7848 #define $ac_tr_func 1
7851 else
7852 echo "$ac_t""no" 1>&6
7854 done
7861 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
7862 echo "configure:7863: checking for isinff declaration" >&5
7863 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
7864 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
7865 echo $ac_n "(cached) $ac_c" 1>&6
7866 else
7869 ac_ext=C
7870 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7871 ac_cpp='$CXXCPP $CPPFLAGS'
7872 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7873 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7874 cross_compiling=$ac_cv_prog_cxx_cross
7876 cat > conftest.$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7879 #include <math.h>
7880 #ifdef HAVE_IEEEFP_H
7881 #include <ieeefp.h>
7882 #endif
7884 int main() {
7885 isinff(0);
7886 ; return 0; }
7888 if { (eval echo configure:7889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7889 rm -rf conftest*
7890 glibcpp_cv_func_isinff_use=yes
7891 else
7892 echo "configure: failed program was:" >&5
7893 cat conftest.$ac_ext >&5
7894 rm -rf conftest*
7895 glibcpp_cv_func_isinff_use=no
7897 rm -f conftest*
7898 ac_ext=c
7899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7900 ac_cpp='$CPP $CPPFLAGS'
7901 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7902 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7903 cross_compiling=$ac_cv_prog_cc_cross
7909 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
7911 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
7912 for ac_func in isinff
7914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7915 echo "configure:7916: checking for $ac_func" >&5
7916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7917 echo $ac_n "(cached) $ac_c" 1>&6
7918 else
7919 cat > conftest.$ac_ext <<EOF
7920 #line 7921 "configure"
7921 #include "confdefs.h"
7922 /* System header to define __stub macros and hopefully few prototypes,
7923 which can conflict with char $ac_func(); below. */
7924 #include <assert.h>
7925 /* Override any gcc2 internal prototype to avoid an error. */
7926 /* We use char because int might match the return type of a gcc2
7927 builtin and then its argument prototype would still apply. */
7928 char $ac_func();
7930 int main() {
7932 /* The GNU C library defines this for functions which it implements
7933 to always fail with ENOSYS. Some functions are actually named
7934 something starting with __ and the normal name is an alias. */
7935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7936 choke me
7937 #else
7938 $ac_func();
7939 #endif
7941 ; return 0; }
7943 if { (eval echo configure:7944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7944 rm -rf conftest*
7945 eval "ac_cv_func_$ac_func=yes"
7946 else
7947 echo "configure: failed program was:" >&5
7948 cat conftest.$ac_ext >&5
7949 rm -rf conftest*
7950 eval "ac_cv_func_$ac_func=no"
7952 rm -f conftest*
7955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7956 echo "$ac_t""yes" 1>&6
7957 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7958 cat >> confdefs.h <<EOF
7959 #define $ac_tr_func 1
7962 else
7963 echo "$ac_t""no" 1>&6
7965 done
7967 else
7969 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
7970 echo "configure:7971: checking for _isinff declaration" >&5
7971 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
7972 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
7973 echo $ac_n "(cached) $ac_c" 1>&6
7974 else
7977 ac_ext=C
7978 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7979 ac_cpp='$CXXCPP $CPPFLAGS'
7980 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7981 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7982 cross_compiling=$ac_cv_prog_cxx_cross
7984 cat > conftest.$ac_ext <<EOF
7985 #line 7986 "configure"
7986 #include "confdefs.h"
7987 #include <math.h>
7988 #ifdef HAVE_IEEEFP_H
7989 #include <ieeefp.h>
7990 #endif
7992 int main() {
7993 _isinff(0);
7994 ; return 0; }
7996 if { (eval echo configure:7997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7997 rm -rf conftest*
7998 glibcpp_cv_func__isinff_use=yes
7999 else
8000 echo "configure: failed program was:" >&5
8001 cat conftest.$ac_ext >&5
8002 rm -rf conftest*
8003 glibcpp_cv_func__isinff_use=no
8005 rm -f conftest*
8006 ac_ext=c
8007 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8008 ac_cpp='$CPP $CPPFLAGS'
8009 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8010 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8011 cross_compiling=$ac_cv_prog_cc_cross
8017 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8019 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8020 for ac_func in _isinff
8022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8023 echo "configure:8024: checking for $ac_func" >&5
8024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8025 echo $ac_n "(cached) $ac_c" 1>&6
8026 else
8027 cat > conftest.$ac_ext <<EOF
8028 #line 8029 "configure"
8029 #include "confdefs.h"
8030 /* System header to define __stub macros and hopefully few prototypes,
8031 which can conflict with char $ac_func(); below. */
8032 #include <assert.h>
8033 /* Override any gcc2 internal prototype to avoid an error. */
8034 /* We use char because int might match the return type of a gcc2
8035 builtin and then its argument prototype would still apply. */
8036 char $ac_func();
8038 int main() {
8040 /* The GNU C library defines this for functions which it implements
8041 to always fail with ENOSYS. Some functions are actually named
8042 something starting with __ and the normal name is an alias. */
8043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8044 choke me
8045 #else
8046 $ac_func();
8047 #endif
8049 ; return 0; }
8051 if { (eval echo configure:8052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8052 rm -rf conftest*
8053 eval "ac_cv_func_$ac_func=yes"
8054 else
8055 echo "configure: failed program was:" >&5
8056 cat conftest.$ac_ext >&5
8057 rm -rf conftest*
8058 eval "ac_cv_func_$ac_func=no"
8060 rm -f conftest*
8063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8064 echo "$ac_t""yes" 1>&6
8065 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8066 cat >> confdefs.h <<EOF
8067 #define $ac_tr_func 1
8070 else
8071 echo "$ac_t""no" 1>&6
8073 done
8080 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
8081 echo "configure:8082: checking for fabsf declaration" >&5
8082 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
8083 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
8084 echo $ac_n "(cached) $ac_c" 1>&6
8085 else
8088 ac_ext=C
8089 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8090 ac_cpp='$CXXCPP $CPPFLAGS'
8091 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8092 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8093 cross_compiling=$ac_cv_prog_cxx_cross
8095 cat > conftest.$ac_ext <<EOF
8096 #line 8097 "configure"
8097 #include "confdefs.h"
8098 #include <math.h>
8099 #ifdef HAVE_IEEEFP_H
8100 #include <ieeefp.h>
8101 #endif
8103 int main() {
8104 fabsf(0);
8105 ; return 0; }
8107 if { (eval echo configure:8108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8108 rm -rf conftest*
8109 glibcpp_cv_func_fabsf_use=yes
8110 else
8111 echo "configure: failed program was:" >&5
8112 cat conftest.$ac_ext >&5
8113 rm -rf conftest*
8114 glibcpp_cv_func_fabsf_use=no
8116 rm -f conftest*
8117 ac_ext=c
8118 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8119 ac_cpp='$CPP $CPPFLAGS'
8120 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8121 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8122 cross_compiling=$ac_cv_prog_cc_cross
8128 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
8130 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
8131 for ac_func in fabsf
8133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8134 echo "configure:8135: checking for $ac_func" >&5
8135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8136 echo $ac_n "(cached) $ac_c" 1>&6
8137 else
8138 cat > conftest.$ac_ext <<EOF
8139 #line 8140 "configure"
8140 #include "confdefs.h"
8141 /* System header to define __stub macros and hopefully few prototypes,
8142 which can conflict with char $ac_func(); below. */
8143 #include <assert.h>
8144 /* Override any gcc2 internal prototype to avoid an error. */
8145 /* We use char because int might match the return type of a gcc2
8146 builtin and then its argument prototype would still apply. */
8147 char $ac_func();
8149 int main() {
8151 /* The GNU C library defines this for functions which it implements
8152 to always fail with ENOSYS. Some functions are actually named
8153 something starting with __ and the normal name is an alias. */
8154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8155 choke me
8156 #else
8157 $ac_func();
8158 #endif
8160 ; return 0; }
8162 if { (eval echo configure:8163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8163 rm -rf conftest*
8164 eval "ac_cv_func_$ac_func=yes"
8165 else
8166 echo "configure: failed program was:" >&5
8167 cat conftest.$ac_ext >&5
8168 rm -rf conftest*
8169 eval "ac_cv_func_$ac_func=no"
8171 rm -f conftest*
8174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8175 echo "$ac_t""yes" 1>&6
8176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8177 cat >> confdefs.h <<EOF
8178 #define $ac_tr_func 1
8181 else
8182 echo "$ac_t""no" 1>&6
8184 done
8186 else
8188 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
8189 echo "configure:8190: checking for _fabsf declaration" >&5
8190 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
8191 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
8192 echo $ac_n "(cached) $ac_c" 1>&6
8193 else
8196 ac_ext=C
8197 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8198 ac_cpp='$CXXCPP $CPPFLAGS'
8199 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8200 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8201 cross_compiling=$ac_cv_prog_cxx_cross
8203 cat > conftest.$ac_ext <<EOF
8204 #line 8205 "configure"
8205 #include "confdefs.h"
8206 #include <math.h>
8207 #ifdef HAVE_IEEEFP_H
8208 #include <ieeefp.h>
8209 #endif
8211 int main() {
8212 _fabsf(0);
8213 ; return 0; }
8215 if { (eval echo configure:8216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8216 rm -rf conftest*
8217 glibcpp_cv_func__fabsf_use=yes
8218 else
8219 echo "configure: failed program was:" >&5
8220 cat conftest.$ac_ext >&5
8221 rm -rf conftest*
8222 glibcpp_cv_func__fabsf_use=no
8224 rm -f conftest*
8225 ac_ext=c
8226 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8227 ac_cpp='$CPP $CPPFLAGS'
8228 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8229 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8230 cross_compiling=$ac_cv_prog_cc_cross
8236 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
8238 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
8239 for ac_func in _fabsf
8241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8242 echo "configure:8243: checking for $ac_func" >&5
8243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8244 echo $ac_n "(cached) $ac_c" 1>&6
8245 else
8246 cat > conftest.$ac_ext <<EOF
8247 #line 8248 "configure"
8248 #include "confdefs.h"
8249 /* System header to define __stub macros and hopefully few prototypes,
8250 which can conflict with char $ac_func(); below. */
8251 #include <assert.h>
8252 /* Override any gcc2 internal prototype to avoid an error. */
8253 /* We use char because int might match the return type of a gcc2
8254 builtin and then its argument prototype would still apply. */
8255 char $ac_func();
8257 int main() {
8259 /* The GNU C library defines this for functions which it implements
8260 to always fail with ENOSYS. Some functions are actually named
8261 something starting with __ and the normal name is an alias. */
8262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8263 choke me
8264 #else
8265 $ac_func();
8266 #endif
8268 ; return 0; }
8270 if { (eval echo configure:8271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8271 rm -rf conftest*
8272 eval "ac_cv_func_$ac_func=yes"
8273 else
8274 echo "configure: failed program was:" >&5
8275 cat conftest.$ac_ext >&5
8276 rm -rf conftest*
8277 eval "ac_cv_func_$ac_func=no"
8279 rm -f conftest*
8282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8283 echo "$ac_t""yes" 1>&6
8284 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8285 cat >> confdefs.h <<EOF
8286 #define $ac_tr_func 1
8289 else
8290 echo "$ac_t""no" 1>&6
8292 done
8299 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
8300 echo "configure:8301: checking for fmodf declaration" >&5
8301 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
8302 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
8303 echo $ac_n "(cached) $ac_c" 1>&6
8304 else
8307 ac_ext=C
8308 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8309 ac_cpp='$CXXCPP $CPPFLAGS'
8310 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8311 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8312 cross_compiling=$ac_cv_prog_cxx_cross
8314 cat > conftest.$ac_ext <<EOF
8315 #line 8316 "configure"
8316 #include "confdefs.h"
8317 #include <math.h>
8318 int main() {
8319 fmodf(0, 0);
8320 ; return 0; }
8322 if { (eval echo configure:8323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8323 rm -rf conftest*
8324 glibcpp_cv_func_fmodf_use=yes
8325 else
8326 echo "configure: failed program was:" >&5
8327 cat conftest.$ac_ext >&5
8328 rm -rf conftest*
8329 glibcpp_cv_func_fmodf_use=no
8331 rm -f conftest*
8332 ac_ext=c
8333 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8334 ac_cpp='$CPP $CPPFLAGS'
8335 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8336 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8337 cross_compiling=$ac_cv_prog_cc_cross
8343 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
8345 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
8346 for ac_func in fmodf
8348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8349 echo "configure:8350: checking for $ac_func" >&5
8350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8351 echo $ac_n "(cached) $ac_c" 1>&6
8352 else
8353 cat > conftest.$ac_ext <<EOF
8354 #line 8355 "configure"
8355 #include "confdefs.h"
8356 /* System header to define __stub macros and hopefully few prototypes,
8357 which can conflict with char $ac_func(); below. */
8358 #include <assert.h>
8359 /* Override any gcc2 internal prototype to avoid an error. */
8360 /* We use char because int might match the return type of a gcc2
8361 builtin and then its argument prototype would still apply. */
8362 char $ac_func();
8364 int main() {
8366 /* The GNU C library defines this for functions which it implements
8367 to always fail with ENOSYS. Some functions are actually named
8368 something starting with __ and the normal name is an alias. */
8369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8370 choke me
8371 #else
8372 $ac_func();
8373 #endif
8375 ; return 0; }
8377 if { (eval echo configure:8378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8378 rm -rf conftest*
8379 eval "ac_cv_func_$ac_func=yes"
8380 else
8381 echo "configure: failed program was:" >&5
8382 cat conftest.$ac_ext >&5
8383 rm -rf conftest*
8384 eval "ac_cv_func_$ac_func=no"
8386 rm -f conftest*
8389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8390 echo "$ac_t""yes" 1>&6
8391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8392 cat >> confdefs.h <<EOF
8393 #define $ac_tr_func 1
8396 else
8397 echo "$ac_t""no" 1>&6
8399 done
8401 else
8403 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
8404 echo "configure:8405: checking for _fmodf declaration" >&5
8405 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
8406 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
8407 echo $ac_n "(cached) $ac_c" 1>&6
8408 else
8411 ac_ext=C
8412 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8413 ac_cpp='$CXXCPP $CPPFLAGS'
8414 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8415 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8416 cross_compiling=$ac_cv_prog_cxx_cross
8418 cat > conftest.$ac_ext <<EOF
8419 #line 8420 "configure"
8420 #include "confdefs.h"
8421 #include <math.h>
8422 int main() {
8423 _fmodf(0, 0);
8424 ; return 0; }
8426 if { (eval echo configure:8427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8427 rm -rf conftest*
8428 glibcpp_cv_func__fmodf_use=yes
8429 else
8430 echo "configure: failed program was:" >&5
8431 cat conftest.$ac_ext >&5
8432 rm -rf conftest*
8433 glibcpp_cv_func__fmodf_use=no
8435 rm -f conftest*
8436 ac_ext=c
8437 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8438 ac_cpp='$CPP $CPPFLAGS'
8439 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8440 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8441 cross_compiling=$ac_cv_prog_cc_cross
8447 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
8449 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
8450 for ac_func in _fmodf
8452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8453 echo "configure:8454: checking for $ac_func" >&5
8454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8455 echo $ac_n "(cached) $ac_c" 1>&6
8456 else
8457 cat > conftest.$ac_ext <<EOF
8458 #line 8459 "configure"
8459 #include "confdefs.h"
8460 /* System header to define __stub macros and hopefully few prototypes,
8461 which can conflict with char $ac_func(); below. */
8462 #include <assert.h>
8463 /* Override any gcc2 internal prototype to avoid an error. */
8464 /* We use char because int might match the return type of a gcc2
8465 builtin and then its argument prototype would still apply. */
8466 char $ac_func();
8468 int main() {
8470 /* The GNU C library defines this for functions which it implements
8471 to always fail with ENOSYS. Some functions are actually named
8472 something starting with __ and the normal name is an alias. */
8473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8474 choke me
8475 #else
8476 $ac_func();
8477 #endif
8479 ; return 0; }
8481 if { (eval echo configure:8482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8482 rm -rf conftest*
8483 eval "ac_cv_func_$ac_func=yes"
8484 else
8485 echo "configure: failed program was:" >&5
8486 cat conftest.$ac_ext >&5
8487 rm -rf conftest*
8488 eval "ac_cv_func_$ac_func=no"
8490 rm -f conftest*
8493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8494 echo "$ac_t""yes" 1>&6
8495 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8496 cat >> confdefs.h <<EOF
8497 #define $ac_tr_func 1
8500 else
8501 echo "$ac_t""no" 1>&6
8503 done
8510 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
8511 echo "configure:8512: checking for frexpf declaration" >&5
8512 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
8513 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
8514 echo $ac_n "(cached) $ac_c" 1>&6
8515 else
8518 ac_ext=C
8519 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8520 ac_cpp='$CXXCPP $CPPFLAGS'
8521 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8522 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8523 cross_compiling=$ac_cv_prog_cxx_cross
8525 cat > conftest.$ac_ext <<EOF
8526 #line 8527 "configure"
8527 #include "confdefs.h"
8528 #include <math.h>
8529 int main() {
8530 frexpf(0, 0);
8531 ; return 0; }
8533 if { (eval echo configure:8534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8534 rm -rf conftest*
8535 glibcpp_cv_func_frexpf_use=yes
8536 else
8537 echo "configure: failed program was:" >&5
8538 cat conftest.$ac_ext >&5
8539 rm -rf conftest*
8540 glibcpp_cv_func_frexpf_use=no
8542 rm -f conftest*
8543 ac_ext=c
8544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8545 ac_cpp='$CPP $CPPFLAGS'
8546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8548 cross_compiling=$ac_cv_prog_cc_cross
8554 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
8556 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
8557 for ac_func in frexpf
8559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8560 echo "configure:8561: checking for $ac_func" >&5
8561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8562 echo $ac_n "(cached) $ac_c" 1>&6
8563 else
8564 cat > conftest.$ac_ext <<EOF
8565 #line 8566 "configure"
8566 #include "confdefs.h"
8567 /* System header to define __stub macros and hopefully few prototypes,
8568 which can conflict with char $ac_func(); below. */
8569 #include <assert.h>
8570 /* Override any gcc2 internal prototype to avoid an error. */
8571 /* We use char because int might match the return type of a gcc2
8572 builtin and then its argument prototype would still apply. */
8573 char $ac_func();
8575 int main() {
8577 /* The GNU C library defines this for functions which it implements
8578 to always fail with ENOSYS. Some functions are actually named
8579 something starting with __ and the normal name is an alias. */
8580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8581 choke me
8582 #else
8583 $ac_func();
8584 #endif
8586 ; return 0; }
8588 if { (eval echo configure:8589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8589 rm -rf conftest*
8590 eval "ac_cv_func_$ac_func=yes"
8591 else
8592 echo "configure: failed program was:" >&5
8593 cat conftest.$ac_ext >&5
8594 rm -rf conftest*
8595 eval "ac_cv_func_$ac_func=no"
8597 rm -f conftest*
8600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8601 echo "$ac_t""yes" 1>&6
8602 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8603 cat >> confdefs.h <<EOF
8604 #define $ac_tr_func 1
8607 else
8608 echo "$ac_t""no" 1>&6
8610 done
8612 else
8614 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
8615 echo "configure:8616: checking for _frexpf declaration" >&5
8616 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
8617 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
8618 echo $ac_n "(cached) $ac_c" 1>&6
8619 else
8622 ac_ext=C
8623 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8624 ac_cpp='$CXXCPP $CPPFLAGS'
8625 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8626 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8627 cross_compiling=$ac_cv_prog_cxx_cross
8629 cat > conftest.$ac_ext <<EOF
8630 #line 8631 "configure"
8631 #include "confdefs.h"
8632 #include <math.h>
8633 int main() {
8634 _frexpf(0, 0);
8635 ; return 0; }
8637 if { (eval echo configure:8638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8638 rm -rf conftest*
8639 glibcpp_cv_func__frexpf_use=yes
8640 else
8641 echo "configure: failed program was:" >&5
8642 cat conftest.$ac_ext >&5
8643 rm -rf conftest*
8644 glibcpp_cv_func__frexpf_use=no
8646 rm -f conftest*
8647 ac_ext=c
8648 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8649 ac_cpp='$CPP $CPPFLAGS'
8650 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8651 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8652 cross_compiling=$ac_cv_prog_cc_cross
8658 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
8660 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
8661 for ac_func in _frexpf
8663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8664 echo "configure:8665: checking for $ac_func" >&5
8665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8666 echo $ac_n "(cached) $ac_c" 1>&6
8667 else
8668 cat > conftest.$ac_ext <<EOF
8669 #line 8670 "configure"
8670 #include "confdefs.h"
8671 /* System header to define __stub macros and hopefully few prototypes,
8672 which can conflict with char $ac_func(); below. */
8673 #include <assert.h>
8674 /* Override any gcc2 internal prototype to avoid an error. */
8675 /* We use char because int might match the return type of a gcc2
8676 builtin and then its argument prototype would still apply. */
8677 char $ac_func();
8679 int main() {
8681 /* The GNU C library defines this for functions which it implements
8682 to always fail with ENOSYS. Some functions are actually named
8683 something starting with __ and the normal name is an alias. */
8684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8685 choke me
8686 #else
8687 $ac_func();
8688 #endif
8690 ; return 0; }
8692 if { (eval echo configure:8693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8693 rm -rf conftest*
8694 eval "ac_cv_func_$ac_func=yes"
8695 else
8696 echo "configure: failed program was:" >&5
8697 cat conftest.$ac_ext >&5
8698 rm -rf conftest*
8699 eval "ac_cv_func_$ac_func=no"
8701 rm -f conftest*
8704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8705 echo "$ac_t""yes" 1>&6
8706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8707 cat >> confdefs.h <<EOF
8708 #define $ac_tr_func 1
8711 else
8712 echo "$ac_t""no" 1>&6
8714 done
8721 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
8722 echo "configure:8723: checking for ldexpf declaration" >&5
8723 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
8724 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
8725 echo $ac_n "(cached) $ac_c" 1>&6
8726 else
8729 ac_ext=C
8730 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8731 ac_cpp='$CXXCPP $CPPFLAGS'
8732 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8733 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8734 cross_compiling=$ac_cv_prog_cxx_cross
8736 cat > conftest.$ac_ext <<EOF
8737 #line 8738 "configure"
8738 #include "confdefs.h"
8739 #include <math.h>
8740 int main() {
8741 ldexpf(0, 0);
8742 ; return 0; }
8744 if { (eval echo configure:8745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8745 rm -rf conftest*
8746 glibcpp_cv_func_ldexpf_use=yes
8747 else
8748 echo "configure: failed program was:" >&5
8749 cat conftest.$ac_ext >&5
8750 rm -rf conftest*
8751 glibcpp_cv_func_ldexpf_use=no
8753 rm -f conftest*
8754 ac_ext=c
8755 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8756 ac_cpp='$CPP $CPPFLAGS'
8757 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8758 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8759 cross_compiling=$ac_cv_prog_cc_cross
8765 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
8767 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
8768 for ac_func in ldexpf
8770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8771 echo "configure:8772: checking for $ac_func" >&5
8772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8773 echo $ac_n "(cached) $ac_c" 1>&6
8774 else
8775 cat > conftest.$ac_ext <<EOF
8776 #line 8777 "configure"
8777 #include "confdefs.h"
8778 /* System header to define __stub macros and hopefully few prototypes,
8779 which can conflict with char $ac_func(); below. */
8780 #include <assert.h>
8781 /* Override any gcc2 internal prototype to avoid an error. */
8782 /* We use char because int might match the return type of a gcc2
8783 builtin and then its argument prototype would still apply. */
8784 char $ac_func();
8786 int main() {
8788 /* The GNU C library defines this for functions which it implements
8789 to always fail with ENOSYS. Some functions are actually named
8790 something starting with __ and the normal name is an alias. */
8791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8792 choke me
8793 #else
8794 $ac_func();
8795 #endif
8797 ; return 0; }
8799 if { (eval echo configure:8800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8800 rm -rf conftest*
8801 eval "ac_cv_func_$ac_func=yes"
8802 else
8803 echo "configure: failed program was:" >&5
8804 cat conftest.$ac_ext >&5
8805 rm -rf conftest*
8806 eval "ac_cv_func_$ac_func=no"
8808 rm -f conftest*
8811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8812 echo "$ac_t""yes" 1>&6
8813 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8814 cat >> confdefs.h <<EOF
8815 #define $ac_tr_func 1
8818 else
8819 echo "$ac_t""no" 1>&6
8821 done
8823 else
8825 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
8826 echo "configure:8827: checking for _ldexpf declaration" >&5
8827 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
8828 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
8829 echo $ac_n "(cached) $ac_c" 1>&6
8830 else
8833 ac_ext=C
8834 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8835 ac_cpp='$CXXCPP $CPPFLAGS'
8836 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8837 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8838 cross_compiling=$ac_cv_prog_cxx_cross
8840 cat > conftest.$ac_ext <<EOF
8841 #line 8842 "configure"
8842 #include "confdefs.h"
8843 #include <math.h>
8844 int main() {
8845 _ldexpf(0, 0);
8846 ; return 0; }
8848 if { (eval echo configure:8849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8849 rm -rf conftest*
8850 glibcpp_cv_func__ldexpf_use=yes
8851 else
8852 echo "configure: failed program was:" >&5
8853 cat conftest.$ac_ext >&5
8854 rm -rf conftest*
8855 glibcpp_cv_func__ldexpf_use=no
8857 rm -f conftest*
8858 ac_ext=c
8859 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8860 ac_cpp='$CPP $CPPFLAGS'
8861 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8862 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8863 cross_compiling=$ac_cv_prog_cc_cross
8869 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
8871 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
8872 for ac_func in _ldexpf
8874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8875 echo "configure:8876: checking for $ac_func" >&5
8876 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8877 echo $ac_n "(cached) $ac_c" 1>&6
8878 else
8879 cat > conftest.$ac_ext <<EOF
8880 #line 8881 "configure"
8881 #include "confdefs.h"
8882 /* System header to define __stub macros and hopefully few prototypes,
8883 which can conflict with char $ac_func(); below. */
8884 #include <assert.h>
8885 /* Override any gcc2 internal prototype to avoid an error. */
8886 /* We use char because int might match the return type of a gcc2
8887 builtin and then its argument prototype would still apply. */
8888 char $ac_func();
8890 int main() {
8892 /* The GNU C library defines this for functions which it implements
8893 to always fail with ENOSYS. Some functions are actually named
8894 something starting with __ and the normal name is an alias. */
8895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8896 choke me
8897 #else
8898 $ac_func();
8899 #endif
8901 ; return 0; }
8903 if { (eval echo configure:8904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8904 rm -rf conftest*
8905 eval "ac_cv_func_$ac_func=yes"
8906 else
8907 echo "configure: failed program was:" >&5
8908 cat conftest.$ac_ext >&5
8909 rm -rf conftest*
8910 eval "ac_cv_func_$ac_func=no"
8912 rm -f conftest*
8915 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8916 echo "$ac_t""yes" 1>&6
8917 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8918 cat >> confdefs.h <<EOF
8919 #define $ac_tr_func 1
8922 else
8923 echo "$ac_t""no" 1>&6
8925 done
8932 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
8933 echo "configure:8934: checking for logf declaration" >&5
8934 if test x${glibcpp_cv_func_logf_use+set} != xset; then
8935 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
8936 echo $ac_n "(cached) $ac_c" 1>&6
8937 else
8940 ac_ext=C
8941 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8942 ac_cpp='$CXXCPP $CPPFLAGS'
8943 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8944 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8945 cross_compiling=$ac_cv_prog_cxx_cross
8947 cat > conftest.$ac_ext <<EOF
8948 #line 8949 "configure"
8949 #include "confdefs.h"
8950 #include <math.h>
8951 #ifdef HAVE_IEEEFP_H
8952 #include <ieeefp.h>
8953 #endif
8955 int main() {
8956 logf(0);
8957 ; return 0; }
8959 if { (eval echo configure:8960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8960 rm -rf conftest*
8961 glibcpp_cv_func_logf_use=yes
8962 else
8963 echo "configure: failed program was:" >&5
8964 cat conftest.$ac_ext >&5
8965 rm -rf conftest*
8966 glibcpp_cv_func_logf_use=no
8968 rm -f conftest*
8969 ac_ext=c
8970 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8971 ac_cpp='$CPP $CPPFLAGS'
8972 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8973 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8974 cross_compiling=$ac_cv_prog_cc_cross
8980 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
8982 if test x$glibcpp_cv_func_logf_use = x"yes"; then
8983 for ac_func in logf
8985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8986 echo "configure:8987: checking for $ac_func" >&5
8987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8988 echo $ac_n "(cached) $ac_c" 1>&6
8989 else
8990 cat > conftest.$ac_ext <<EOF
8991 #line 8992 "configure"
8992 #include "confdefs.h"
8993 /* System header to define __stub macros and hopefully few prototypes,
8994 which can conflict with char $ac_func(); below. */
8995 #include <assert.h>
8996 /* Override any gcc2 internal prototype to avoid an error. */
8997 /* We use char because int might match the return type of a gcc2
8998 builtin and then its argument prototype would still apply. */
8999 char $ac_func();
9001 int main() {
9003 /* The GNU C library defines this for functions which it implements
9004 to always fail with ENOSYS. Some functions are actually named
9005 something starting with __ and the normal name is an alias. */
9006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9007 choke me
9008 #else
9009 $ac_func();
9010 #endif
9012 ; return 0; }
9014 if { (eval echo configure:9015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9015 rm -rf conftest*
9016 eval "ac_cv_func_$ac_func=yes"
9017 else
9018 echo "configure: failed program was:" >&5
9019 cat conftest.$ac_ext >&5
9020 rm -rf conftest*
9021 eval "ac_cv_func_$ac_func=no"
9023 rm -f conftest*
9026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9027 echo "$ac_t""yes" 1>&6
9028 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9029 cat >> confdefs.h <<EOF
9030 #define $ac_tr_func 1
9033 else
9034 echo "$ac_t""no" 1>&6
9036 done
9038 else
9040 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
9041 echo "configure:9042: checking for _logf declaration" >&5
9042 if test x${glibcpp_cv_func__logf_use+set} != xset; then
9043 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
9044 echo $ac_n "(cached) $ac_c" 1>&6
9045 else
9048 ac_ext=C
9049 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9050 ac_cpp='$CXXCPP $CPPFLAGS'
9051 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9052 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9053 cross_compiling=$ac_cv_prog_cxx_cross
9055 cat > conftest.$ac_ext <<EOF
9056 #line 9057 "configure"
9057 #include "confdefs.h"
9058 #include <math.h>
9059 #ifdef HAVE_IEEEFP_H
9060 #include <ieeefp.h>
9061 #endif
9063 int main() {
9064 _logf(0);
9065 ; return 0; }
9067 if { (eval echo configure:9068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9068 rm -rf conftest*
9069 glibcpp_cv_func__logf_use=yes
9070 else
9071 echo "configure: failed program was:" >&5
9072 cat conftest.$ac_ext >&5
9073 rm -rf conftest*
9074 glibcpp_cv_func__logf_use=no
9076 rm -f conftest*
9077 ac_ext=c
9078 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9079 ac_cpp='$CPP $CPPFLAGS'
9080 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9081 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9082 cross_compiling=$ac_cv_prog_cc_cross
9088 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
9090 if test x$glibcpp_cv_func__logf_use = x"yes"; then
9091 for ac_func in _logf
9093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9094 echo "configure:9095: checking for $ac_func" >&5
9095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9096 echo $ac_n "(cached) $ac_c" 1>&6
9097 else
9098 cat > conftest.$ac_ext <<EOF
9099 #line 9100 "configure"
9100 #include "confdefs.h"
9101 /* System header to define __stub macros and hopefully few prototypes,
9102 which can conflict with char $ac_func(); below. */
9103 #include <assert.h>
9104 /* Override any gcc2 internal prototype to avoid an error. */
9105 /* We use char because int might match the return type of a gcc2
9106 builtin and then its argument prototype would still apply. */
9107 char $ac_func();
9109 int main() {
9111 /* The GNU C library defines this for functions which it implements
9112 to always fail with ENOSYS. Some functions are actually named
9113 something starting with __ and the normal name is an alias. */
9114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9115 choke me
9116 #else
9117 $ac_func();
9118 #endif
9120 ; return 0; }
9122 if { (eval echo configure:9123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9123 rm -rf conftest*
9124 eval "ac_cv_func_$ac_func=yes"
9125 else
9126 echo "configure: failed program was:" >&5
9127 cat conftest.$ac_ext >&5
9128 rm -rf conftest*
9129 eval "ac_cv_func_$ac_func=no"
9131 rm -f conftest*
9134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9135 echo "$ac_t""yes" 1>&6
9136 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9137 cat >> confdefs.h <<EOF
9138 #define $ac_tr_func 1
9141 else
9142 echo "$ac_t""no" 1>&6
9144 done
9151 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
9152 echo "configure:9153: checking for log10f declaration" >&5
9153 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
9154 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
9155 echo $ac_n "(cached) $ac_c" 1>&6
9156 else
9159 ac_ext=C
9160 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9161 ac_cpp='$CXXCPP $CPPFLAGS'
9162 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9163 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9164 cross_compiling=$ac_cv_prog_cxx_cross
9166 cat > conftest.$ac_ext <<EOF
9167 #line 9168 "configure"
9168 #include "confdefs.h"
9169 #include <math.h>
9170 #ifdef HAVE_IEEEFP_H
9171 #include <ieeefp.h>
9172 #endif
9174 int main() {
9175 log10f(0);
9176 ; return 0; }
9178 if { (eval echo configure:9179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9179 rm -rf conftest*
9180 glibcpp_cv_func_log10f_use=yes
9181 else
9182 echo "configure: failed program was:" >&5
9183 cat conftest.$ac_ext >&5
9184 rm -rf conftest*
9185 glibcpp_cv_func_log10f_use=no
9187 rm -f conftest*
9188 ac_ext=c
9189 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9190 ac_cpp='$CPP $CPPFLAGS'
9191 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9192 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9193 cross_compiling=$ac_cv_prog_cc_cross
9199 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
9201 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
9202 for ac_func in log10f
9204 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9205 echo "configure:9206: checking for $ac_func" >&5
9206 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9207 echo $ac_n "(cached) $ac_c" 1>&6
9208 else
9209 cat > conftest.$ac_ext <<EOF
9210 #line 9211 "configure"
9211 #include "confdefs.h"
9212 /* System header to define __stub macros and hopefully few prototypes,
9213 which can conflict with char $ac_func(); below. */
9214 #include <assert.h>
9215 /* Override any gcc2 internal prototype to avoid an error. */
9216 /* We use char because int might match the return type of a gcc2
9217 builtin and then its argument prototype would still apply. */
9218 char $ac_func();
9220 int main() {
9222 /* The GNU C library defines this for functions which it implements
9223 to always fail with ENOSYS. Some functions are actually named
9224 something starting with __ and the normal name is an alias. */
9225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9226 choke me
9227 #else
9228 $ac_func();
9229 #endif
9231 ; return 0; }
9233 if { (eval echo configure:9234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9234 rm -rf conftest*
9235 eval "ac_cv_func_$ac_func=yes"
9236 else
9237 echo "configure: failed program was:" >&5
9238 cat conftest.$ac_ext >&5
9239 rm -rf conftest*
9240 eval "ac_cv_func_$ac_func=no"
9242 rm -f conftest*
9245 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9246 echo "$ac_t""yes" 1>&6
9247 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9248 cat >> confdefs.h <<EOF
9249 #define $ac_tr_func 1
9252 else
9253 echo "$ac_t""no" 1>&6
9255 done
9257 else
9259 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
9260 echo "configure:9261: checking for _log10f declaration" >&5
9261 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
9262 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
9263 echo $ac_n "(cached) $ac_c" 1>&6
9264 else
9267 ac_ext=C
9268 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9269 ac_cpp='$CXXCPP $CPPFLAGS'
9270 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9271 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9272 cross_compiling=$ac_cv_prog_cxx_cross
9274 cat > conftest.$ac_ext <<EOF
9275 #line 9276 "configure"
9276 #include "confdefs.h"
9277 #include <math.h>
9278 #ifdef HAVE_IEEEFP_H
9279 #include <ieeefp.h>
9280 #endif
9282 int main() {
9283 _log10f(0);
9284 ; return 0; }
9286 if { (eval echo configure:9287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9287 rm -rf conftest*
9288 glibcpp_cv_func__log10f_use=yes
9289 else
9290 echo "configure: failed program was:" >&5
9291 cat conftest.$ac_ext >&5
9292 rm -rf conftest*
9293 glibcpp_cv_func__log10f_use=no
9295 rm -f conftest*
9296 ac_ext=c
9297 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9298 ac_cpp='$CPP $CPPFLAGS'
9299 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9300 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9301 cross_compiling=$ac_cv_prog_cc_cross
9307 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
9309 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
9310 for ac_func in _log10f
9312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9313 echo "configure:9314: checking for $ac_func" >&5
9314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9315 echo $ac_n "(cached) $ac_c" 1>&6
9316 else
9317 cat > conftest.$ac_ext <<EOF
9318 #line 9319 "configure"
9319 #include "confdefs.h"
9320 /* System header to define __stub macros and hopefully few prototypes,
9321 which can conflict with char $ac_func(); below. */
9322 #include <assert.h>
9323 /* Override any gcc2 internal prototype to avoid an error. */
9324 /* We use char because int might match the return type of a gcc2
9325 builtin and then its argument prototype would still apply. */
9326 char $ac_func();
9328 int main() {
9330 /* The GNU C library defines this for functions which it implements
9331 to always fail with ENOSYS. Some functions are actually named
9332 something starting with __ and the normal name is an alias. */
9333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9334 choke me
9335 #else
9336 $ac_func();
9337 #endif
9339 ; return 0; }
9341 if { (eval echo configure:9342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9342 rm -rf conftest*
9343 eval "ac_cv_func_$ac_func=yes"
9344 else
9345 echo "configure: failed program was:" >&5
9346 cat conftest.$ac_ext >&5
9347 rm -rf conftest*
9348 eval "ac_cv_func_$ac_func=no"
9350 rm -f conftest*
9353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9354 echo "$ac_t""yes" 1>&6
9355 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9356 cat >> confdefs.h <<EOF
9357 #define $ac_tr_func 1
9360 else
9361 echo "$ac_t""no" 1>&6
9363 done
9370 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
9371 echo "configure:9372: checking for modff declaration" >&5
9372 if test x${glibcpp_cv_func_modff_use+set} != xset; then
9373 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
9374 echo $ac_n "(cached) $ac_c" 1>&6
9375 else
9378 ac_ext=C
9379 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9380 ac_cpp='$CXXCPP $CPPFLAGS'
9381 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9382 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9383 cross_compiling=$ac_cv_prog_cxx_cross
9385 cat > conftest.$ac_ext <<EOF
9386 #line 9387 "configure"
9387 #include "confdefs.h"
9388 #include <math.h>
9389 int main() {
9390 modff(0, 0);
9391 ; return 0; }
9393 if { (eval echo configure:9394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9394 rm -rf conftest*
9395 glibcpp_cv_func_modff_use=yes
9396 else
9397 echo "configure: failed program was:" >&5
9398 cat conftest.$ac_ext >&5
9399 rm -rf conftest*
9400 glibcpp_cv_func_modff_use=no
9402 rm -f conftest*
9403 ac_ext=c
9404 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9405 ac_cpp='$CPP $CPPFLAGS'
9406 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9407 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9408 cross_compiling=$ac_cv_prog_cc_cross
9414 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
9416 if test x$glibcpp_cv_func_modff_use = x"yes"; then
9417 for ac_func in modff
9419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9420 echo "configure:9421: checking for $ac_func" >&5
9421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9422 echo $ac_n "(cached) $ac_c" 1>&6
9423 else
9424 cat > conftest.$ac_ext <<EOF
9425 #line 9426 "configure"
9426 #include "confdefs.h"
9427 /* System header to define __stub macros and hopefully few prototypes,
9428 which can conflict with char $ac_func(); below. */
9429 #include <assert.h>
9430 /* Override any gcc2 internal prototype to avoid an error. */
9431 /* We use char because int might match the return type of a gcc2
9432 builtin and then its argument prototype would still apply. */
9433 char $ac_func();
9435 int main() {
9437 /* The GNU C library defines this for functions which it implements
9438 to always fail with ENOSYS. Some functions are actually named
9439 something starting with __ and the normal name is an alias. */
9440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9441 choke me
9442 #else
9443 $ac_func();
9444 #endif
9446 ; return 0; }
9448 if { (eval echo configure:9449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9449 rm -rf conftest*
9450 eval "ac_cv_func_$ac_func=yes"
9451 else
9452 echo "configure: failed program was:" >&5
9453 cat conftest.$ac_ext >&5
9454 rm -rf conftest*
9455 eval "ac_cv_func_$ac_func=no"
9457 rm -f conftest*
9460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9461 echo "$ac_t""yes" 1>&6
9462 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9463 cat >> confdefs.h <<EOF
9464 #define $ac_tr_func 1
9467 else
9468 echo "$ac_t""no" 1>&6
9470 done
9472 else
9474 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
9475 echo "configure:9476: checking for _modff declaration" >&5
9476 if test x${glibcpp_cv_func__modff_use+set} != xset; then
9477 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
9478 echo $ac_n "(cached) $ac_c" 1>&6
9479 else
9482 ac_ext=C
9483 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9484 ac_cpp='$CXXCPP $CPPFLAGS'
9485 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9486 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9487 cross_compiling=$ac_cv_prog_cxx_cross
9489 cat > conftest.$ac_ext <<EOF
9490 #line 9491 "configure"
9491 #include "confdefs.h"
9492 #include <math.h>
9493 int main() {
9494 _modff(0, 0);
9495 ; return 0; }
9497 if { (eval echo configure:9498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9498 rm -rf conftest*
9499 glibcpp_cv_func__modff_use=yes
9500 else
9501 echo "configure: failed program was:" >&5
9502 cat conftest.$ac_ext >&5
9503 rm -rf conftest*
9504 glibcpp_cv_func__modff_use=no
9506 rm -f conftest*
9507 ac_ext=c
9508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9509 ac_cpp='$CPP $CPPFLAGS'
9510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9511 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9512 cross_compiling=$ac_cv_prog_cc_cross
9518 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
9520 if test x$glibcpp_cv_func__modff_use = x"yes"; then
9521 for ac_func in _modff
9523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9524 echo "configure:9525: checking for $ac_func" >&5
9525 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9526 echo $ac_n "(cached) $ac_c" 1>&6
9527 else
9528 cat > conftest.$ac_ext <<EOF
9529 #line 9530 "configure"
9530 #include "confdefs.h"
9531 /* System header to define __stub macros and hopefully few prototypes,
9532 which can conflict with char $ac_func(); below. */
9533 #include <assert.h>
9534 /* Override any gcc2 internal prototype to avoid an error. */
9535 /* We use char because int might match the return type of a gcc2
9536 builtin and then its argument prototype would still apply. */
9537 char $ac_func();
9539 int main() {
9541 /* The GNU C library defines this for functions which it implements
9542 to always fail with ENOSYS. Some functions are actually named
9543 something starting with __ and the normal name is an alias. */
9544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9545 choke me
9546 #else
9547 $ac_func();
9548 #endif
9550 ; return 0; }
9552 if { (eval echo configure:9553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9553 rm -rf conftest*
9554 eval "ac_cv_func_$ac_func=yes"
9555 else
9556 echo "configure: failed program was:" >&5
9557 cat conftest.$ac_ext >&5
9558 rm -rf conftest*
9559 eval "ac_cv_func_$ac_func=no"
9561 rm -f conftest*
9564 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9565 echo "$ac_t""yes" 1>&6
9566 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9567 cat >> confdefs.h <<EOF
9568 #define $ac_tr_func 1
9571 else
9572 echo "$ac_t""no" 1>&6
9574 done
9581 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
9582 echo "configure:9583: checking for powf declaration" >&5
9583 if test x${glibcpp_cv_func_powf_use+set} != xset; then
9584 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
9585 echo $ac_n "(cached) $ac_c" 1>&6
9586 else
9589 ac_ext=C
9590 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9591 ac_cpp='$CXXCPP $CPPFLAGS'
9592 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9593 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9594 cross_compiling=$ac_cv_prog_cxx_cross
9596 cat > conftest.$ac_ext <<EOF
9597 #line 9598 "configure"
9598 #include "confdefs.h"
9599 #include <math.h>
9600 int main() {
9601 powf(0, 0);
9602 ; return 0; }
9604 if { (eval echo configure:9605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9605 rm -rf conftest*
9606 glibcpp_cv_func_powf_use=yes
9607 else
9608 echo "configure: failed program was:" >&5
9609 cat conftest.$ac_ext >&5
9610 rm -rf conftest*
9611 glibcpp_cv_func_powf_use=no
9613 rm -f conftest*
9614 ac_ext=c
9615 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9616 ac_cpp='$CPP $CPPFLAGS'
9617 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9618 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9619 cross_compiling=$ac_cv_prog_cc_cross
9625 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
9627 if test x$glibcpp_cv_func_powf_use = x"yes"; then
9628 for ac_func in powf
9630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9631 echo "configure:9632: checking for $ac_func" >&5
9632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9633 echo $ac_n "(cached) $ac_c" 1>&6
9634 else
9635 cat > conftest.$ac_ext <<EOF
9636 #line 9637 "configure"
9637 #include "confdefs.h"
9638 /* System header to define __stub macros and hopefully few prototypes,
9639 which can conflict with char $ac_func(); below. */
9640 #include <assert.h>
9641 /* Override any gcc2 internal prototype to avoid an error. */
9642 /* We use char because int might match the return type of a gcc2
9643 builtin and then its argument prototype would still apply. */
9644 char $ac_func();
9646 int main() {
9648 /* The GNU C library defines this for functions which it implements
9649 to always fail with ENOSYS. Some functions are actually named
9650 something starting with __ and the normal name is an alias. */
9651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9652 choke me
9653 #else
9654 $ac_func();
9655 #endif
9657 ; return 0; }
9659 if { (eval echo configure:9660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9660 rm -rf conftest*
9661 eval "ac_cv_func_$ac_func=yes"
9662 else
9663 echo "configure: failed program was:" >&5
9664 cat conftest.$ac_ext >&5
9665 rm -rf conftest*
9666 eval "ac_cv_func_$ac_func=no"
9668 rm -f conftest*
9671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9672 echo "$ac_t""yes" 1>&6
9673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9674 cat >> confdefs.h <<EOF
9675 #define $ac_tr_func 1
9678 else
9679 echo "$ac_t""no" 1>&6
9681 done
9683 else
9685 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
9686 echo "configure:9687: checking for _powf declaration" >&5
9687 if test x${glibcpp_cv_func__powf_use+set} != xset; then
9688 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
9689 echo $ac_n "(cached) $ac_c" 1>&6
9690 else
9693 ac_ext=C
9694 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9695 ac_cpp='$CXXCPP $CPPFLAGS'
9696 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9697 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9698 cross_compiling=$ac_cv_prog_cxx_cross
9700 cat > conftest.$ac_ext <<EOF
9701 #line 9702 "configure"
9702 #include "confdefs.h"
9703 #include <math.h>
9704 int main() {
9705 _powf(0, 0);
9706 ; return 0; }
9708 if { (eval echo configure:9709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9709 rm -rf conftest*
9710 glibcpp_cv_func__powf_use=yes
9711 else
9712 echo "configure: failed program was:" >&5
9713 cat conftest.$ac_ext >&5
9714 rm -rf conftest*
9715 glibcpp_cv_func__powf_use=no
9717 rm -f conftest*
9718 ac_ext=c
9719 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9720 ac_cpp='$CPP $CPPFLAGS'
9721 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9722 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9723 cross_compiling=$ac_cv_prog_cc_cross
9729 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
9731 if test x$glibcpp_cv_func__powf_use = x"yes"; then
9732 for ac_func in _powf
9734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9735 echo "configure:9736: checking for $ac_func" >&5
9736 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9737 echo $ac_n "(cached) $ac_c" 1>&6
9738 else
9739 cat > conftest.$ac_ext <<EOF
9740 #line 9741 "configure"
9741 #include "confdefs.h"
9742 /* System header to define __stub macros and hopefully few prototypes,
9743 which can conflict with char $ac_func(); below. */
9744 #include <assert.h>
9745 /* Override any gcc2 internal prototype to avoid an error. */
9746 /* We use char because int might match the return type of a gcc2
9747 builtin and then its argument prototype would still apply. */
9748 char $ac_func();
9750 int main() {
9752 /* The GNU C library defines this for functions which it implements
9753 to always fail with ENOSYS. Some functions are actually named
9754 something starting with __ and the normal name is an alias. */
9755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9756 choke me
9757 #else
9758 $ac_func();
9759 #endif
9761 ; return 0; }
9763 if { (eval echo configure:9764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9764 rm -rf conftest*
9765 eval "ac_cv_func_$ac_func=yes"
9766 else
9767 echo "configure: failed program was:" >&5
9768 cat conftest.$ac_ext >&5
9769 rm -rf conftest*
9770 eval "ac_cv_func_$ac_func=no"
9772 rm -f conftest*
9775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9776 echo "$ac_t""yes" 1>&6
9777 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9778 cat >> confdefs.h <<EOF
9779 #define $ac_tr_func 1
9782 else
9783 echo "$ac_t""no" 1>&6
9785 done
9792 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
9793 echo "configure:9794: checking for sqrtf declaration" >&5
9794 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
9795 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
9796 echo $ac_n "(cached) $ac_c" 1>&6
9797 else
9800 ac_ext=C
9801 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9802 ac_cpp='$CXXCPP $CPPFLAGS'
9803 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9804 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9805 cross_compiling=$ac_cv_prog_cxx_cross
9807 cat > conftest.$ac_ext <<EOF
9808 #line 9809 "configure"
9809 #include "confdefs.h"
9810 #include <math.h>
9811 #ifdef HAVE_IEEEFP_H
9812 #include <ieeefp.h>
9813 #endif
9815 int main() {
9816 sqrtf(0);
9817 ; return 0; }
9819 if { (eval echo configure:9820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9820 rm -rf conftest*
9821 glibcpp_cv_func_sqrtf_use=yes
9822 else
9823 echo "configure: failed program was:" >&5
9824 cat conftest.$ac_ext >&5
9825 rm -rf conftest*
9826 glibcpp_cv_func_sqrtf_use=no
9828 rm -f conftest*
9829 ac_ext=c
9830 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9831 ac_cpp='$CPP $CPPFLAGS'
9832 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9833 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9834 cross_compiling=$ac_cv_prog_cc_cross
9840 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
9842 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
9843 for ac_func in sqrtf
9845 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9846 echo "configure:9847: checking for $ac_func" >&5
9847 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9848 echo $ac_n "(cached) $ac_c" 1>&6
9849 else
9850 cat > conftest.$ac_ext <<EOF
9851 #line 9852 "configure"
9852 #include "confdefs.h"
9853 /* System header to define __stub macros and hopefully few prototypes,
9854 which can conflict with char $ac_func(); below. */
9855 #include <assert.h>
9856 /* Override any gcc2 internal prototype to avoid an error. */
9857 /* We use char because int might match the return type of a gcc2
9858 builtin and then its argument prototype would still apply. */
9859 char $ac_func();
9861 int main() {
9863 /* The GNU C library defines this for functions which it implements
9864 to always fail with ENOSYS. Some functions are actually named
9865 something starting with __ and the normal name is an alias. */
9866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9867 choke me
9868 #else
9869 $ac_func();
9870 #endif
9872 ; return 0; }
9874 if { (eval echo configure:9875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9875 rm -rf conftest*
9876 eval "ac_cv_func_$ac_func=yes"
9877 else
9878 echo "configure: failed program was:" >&5
9879 cat conftest.$ac_ext >&5
9880 rm -rf conftest*
9881 eval "ac_cv_func_$ac_func=no"
9883 rm -f conftest*
9886 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9887 echo "$ac_t""yes" 1>&6
9888 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9889 cat >> confdefs.h <<EOF
9890 #define $ac_tr_func 1
9893 else
9894 echo "$ac_t""no" 1>&6
9896 done
9898 else
9900 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
9901 echo "configure:9902: checking for _sqrtf declaration" >&5
9902 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
9903 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
9904 echo $ac_n "(cached) $ac_c" 1>&6
9905 else
9908 ac_ext=C
9909 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9910 ac_cpp='$CXXCPP $CPPFLAGS'
9911 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9912 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9913 cross_compiling=$ac_cv_prog_cxx_cross
9915 cat > conftest.$ac_ext <<EOF
9916 #line 9917 "configure"
9917 #include "confdefs.h"
9918 #include <math.h>
9919 #ifdef HAVE_IEEEFP_H
9920 #include <ieeefp.h>
9921 #endif
9923 int main() {
9924 _sqrtf(0);
9925 ; return 0; }
9927 if { (eval echo configure:9928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9928 rm -rf conftest*
9929 glibcpp_cv_func__sqrtf_use=yes
9930 else
9931 echo "configure: failed program was:" >&5
9932 cat conftest.$ac_ext >&5
9933 rm -rf conftest*
9934 glibcpp_cv_func__sqrtf_use=no
9936 rm -f conftest*
9937 ac_ext=c
9938 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9939 ac_cpp='$CPP $CPPFLAGS'
9940 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9941 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9942 cross_compiling=$ac_cv_prog_cc_cross
9948 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
9950 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
9951 for ac_func in _sqrtf
9953 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9954 echo "configure:9955: checking for $ac_func" >&5
9955 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9956 echo $ac_n "(cached) $ac_c" 1>&6
9957 else
9958 cat > conftest.$ac_ext <<EOF
9959 #line 9960 "configure"
9960 #include "confdefs.h"
9961 /* System header to define __stub macros and hopefully few prototypes,
9962 which can conflict with char $ac_func(); below. */
9963 #include <assert.h>
9964 /* Override any gcc2 internal prototype to avoid an error. */
9965 /* We use char because int might match the return type of a gcc2
9966 builtin and then its argument prototype would still apply. */
9967 char $ac_func();
9969 int main() {
9971 /* The GNU C library defines this for functions which it implements
9972 to always fail with ENOSYS. Some functions are actually named
9973 something starting with __ and the normal name is an alias. */
9974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9975 choke me
9976 #else
9977 $ac_func();
9978 #endif
9980 ; return 0; }
9982 if { (eval echo configure:9983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9983 rm -rf conftest*
9984 eval "ac_cv_func_$ac_func=yes"
9985 else
9986 echo "configure: failed program was:" >&5
9987 cat conftest.$ac_ext >&5
9988 rm -rf conftest*
9989 eval "ac_cv_func_$ac_func=no"
9991 rm -f conftest*
9994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9995 echo "$ac_t""yes" 1>&6
9996 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9997 cat >> confdefs.h <<EOF
9998 #define $ac_tr_func 1
10001 else
10002 echo "$ac_t""no" 1>&6
10004 done
10011 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
10012 echo "configure:10013: checking for sincosf declaration" >&5
10013 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
10014 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
10015 echo $ac_n "(cached) $ac_c" 1>&6
10016 else
10019 ac_ext=C
10020 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10021 ac_cpp='$CXXCPP $CPPFLAGS'
10022 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10023 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10024 cross_compiling=$ac_cv_prog_cxx_cross
10026 cat > conftest.$ac_ext <<EOF
10027 #line 10028 "configure"
10028 #include "confdefs.h"
10029 #include <math.h>
10030 int main() {
10031 sincosf(0, 0, 0);
10032 ; return 0; }
10034 if { (eval echo configure:10035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10035 rm -rf conftest*
10036 glibcpp_cv_func_sincosf_use=yes
10037 else
10038 echo "configure: failed program was:" >&5
10039 cat conftest.$ac_ext >&5
10040 rm -rf conftest*
10041 glibcpp_cv_func_sincosf_use=no
10043 rm -f conftest*
10044 ac_ext=c
10045 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10046 ac_cpp='$CPP $CPPFLAGS'
10047 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10048 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10049 cross_compiling=$ac_cv_prog_cc_cross
10055 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
10057 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
10058 for ac_func in sincosf
10060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10061 echo "configure:10062: checking for $ac_func" >&5
10062 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10063 echo $ac_n "(cached) $ac_c" 1>&6
10064 else
10065 cat > conftest.$ac_ext <<EOF
10066 #line 10067 "configure"
10067 #include "confdefs.h"
10068 /* System header to define __stub macros and hopefully few prototypes,
10069 which can conflict with char $ac_func(); below. */
10070 #include <assert.h>
10071 /* Override any gcc2 internal prototype to avoid an error. */
10072 /* We use char because int might match the return type of a gcc2
10073 builtin and then its argument prototype would still apply. */
10074 char $ac_func();
10076 int main() {
10078 /* The GNU C library defines this for functions which it implements
10079 to always fail with ENOSYS. Some functions are actually named
10080 something starting with __ and the normal name is an alias. */
10081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10082 choke me
10083 #else
10084 $ac_func();
10085 #endif
10087 ; return 0; }
10089 if { (eval echo configure:10090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10090 rm -rf conftest*
10091 eval "ac_cv_func_$ac_func=yes"
10092 else
10093 echo "configure: failed program was:" >&5
10094 cat conftest.$ac_ext >&5
10095 rm -rf conftest*
10096 eval "ac_cv_func_$ac_func=no"
10098 rm -f conftest*
10101 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10102 echo "$ac_t""yes" 1>&6
10103 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10104 cat >> confdefs.h <<EOF
10105 #define $ac_tr_func 1
10108 else
10109 echo "$ac_t""no" 1>&6
10111 done
10113 else
10115 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
10116 echo "configure:10117: checking for _sincosf declaration" >&5
10117 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
10118 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
10119 echo $ac_n "(cached) $ac_c" 1>&6
10120 else
10123 ac_ext=C
10124 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10125 ac_cpp='$CXXCPP $CPPFLAGS'
10126 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10127 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10128 cross_compiling=$ac_cv_prog_cxx_cross
10130 cat > conftest.$ac_ext <<EOF
10131 #line 10132 "configure"
10132 #include "confdefs.h"
10133 #include <math.h>
10134 int main() {
10135 _sincosf(0, 0, 0);
10136 ; return 0; }
10138 if { (eval echo configure:10139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10139 rm -rf conftest*
10140 glibcpp_cv_func__sincosf_use=yes
10141 else
10142 echo "configure: failed program was:" >&5
10143 cat conftest.$ac_ext >&5
10144 rm -rf conftest*
10145 glibcpp_cv_func__sincosf_use=no
10147 rm -f conftest*
10148 ac_ext=c
10149 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10150 ac_cpp='$CPP $CPPFLAGS'
10151 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10152 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10153 cross_compiling=$ac_cv_prog_cc_cross
10159 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
10161 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
10162 for ac_func in _sincosf
10164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10165 echo "configure:10166: checking for $ac_func" >&5
10166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10167 echo $ac_n "(cached) $ac_c" 1>&6
10168 else
10169 cat > conftest.$ac_ext <<EOF
10170 #line 10171 "configure"
10171 #include "confdefs.h"
10172 /* System header to define __stub macros and hopefully few prototypes,
10173 which can conflict with char $ac_func(); below. */
10174 #include <assert.h>
10175 /* Override any gcc2 internal prototype to avoid an error. */
10176 /* We use char because int might match the return type of a gcc2
10177 builtin and then its argument prototype would still apply. */
10178 char $ac_func();
10180 int main() {
10182 /* The GNU C library defines this for functions which it implements
10183 to always fail with ENOSYS. Some functions are actually named
10184 something starting with __ and the normal name is an alias. */
10185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10186 choke me
10187 #else
10188 $ac_func();
10189 #endif
10191 ; return 0; }
10193 if { (eval echo configure:10194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10194 rm -rf conftest*
10195 eval "ac_cv_func_$ac_func=yes"
10196 else
10197 echo "configure: failed program was:" >&5
10198 cat conftest.$ac_ext >&5
10199 rm -rf conftest*
10200 eval "ac_cv_func_$ac_func=no"
10202 rm -f conftest*
10205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10206 echo "$ac_t""yes" 1>&6
10207 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10208 cat >> confdefs.h <<EOF
10209 #define $ac_tr_func 1
10212 else
10213 echo "$ac_t""no" 1>&6
10215 done
10222 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
10223 echo "configure:10224: checking for finitef declaration" >&5
10224 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
10225 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
10226 echo $ac_n "(cached) $ac_c" 1>&6
10227 else
10230 ac_ext=C
10231 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10232 ac_cpp='$CXXCPP $CPPFLAGS'
10233 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10234 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10235 cross_compiling=$ac_cv_prog_cxx_cross
10237 cat > conftest.$ac_ext <<EOF
10238 #line 10239 "configure"
10239 #include "confdefs.h"
10240 #include <math.h>
10241 #ifdef HAVE_IEEEFP_H
10242 #include <ieeefp.h>
10243 #endif
10245 int main() {
10246 finitef(0);
10247 ; return 0; }
10249 if { (eval echo configure:10250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10250 rm -rf conftest*
10251 glibcpp_cv_func_finitef_use=yes
10252 else
10253 echo "configure: failed program was:" >&5
10254 cat conftest.$ac_ext >&5
10255 rm -rf conftest*
10256 glibcpp_cv_func_finitef_use=no
10258 rm -f conftest*
10259 ac_ext=c
10260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10261 ac_cpp='$CPP $CPPFLAGS'
10262 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10263 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10264 cross_compiling=$ac_cv_prog_cc_cross
10270 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
10272 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
10273 for ac_func in finitef
10275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10276 echo "configure:10277: checking for $ac_func" >&5
10277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10278 echo $ac_n "(cached) $ac_c" 1>&6
10279 else
10280 cat > conftest.$ac_ext <<EOF
10281 #line 10282 "configure"
10282 #include "confdefs.h"
10283 /* System header to define __stub macros and hopefully few prototypes,
10284 which can conflict with char $ac_func(); below. */
10285 #include <assert.h>
10286 /* Override any gcc2 internal prototype to avoid an error. */
10287 /* We use char because int might match the return type of a gcc2
10288 builtin and then its argument prototype would still apply. */
10289 char $ac_func();
10291 int main() {
10293 /* The GNU C library defines this for functions which it implements
10294 to always fail with ENOSYS. Some functions are actually named
10295 something starting with __ and the normal name is an alias. */
10296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10297 choke me
10298 #else
10299 $ac_func();
10300 #endif
10302 ; return 0; }
10304 if { (eval echo configure:10305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10305 rm -rf conftest*
10306 eval "ac_cv_func_$ac_func=yes"
10307 else
10308 echo "configure: failed program was:" >&5
10309 cat conftest.$ac_ext >&5
10310 rm -rf conftest*
10311 eval "ac_cv_func_$ac_func=no"
10313 rm -f conftest*
10316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10317 echo "$ac_t""yes" 1>&6
10318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10319 cat >> confdefs.h <<EOF
10320 #define $ac_tr_func 1
10323 else
10324 echo "$ac_t""no" 1>&6
10326 done
10328 else
10330 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
10331 echo "configure:10332: checking for _finitef declaration" >&5
10332 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
10333 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
10334 echo $ac_n "(cached) $ac_c" 1>&6
10335 else
10338 ac_ext=C
10339 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10340 ac_cpp='$CXXCPP $CPPFLAGS'
10341 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10342 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10343 cross_compiling=$ac_cv_prog_cxx_cross
10345 cat > conftest.$ac_ext <<EOF
10346 #line 10347 "configure"
10347 #include "confdefs.h"
10348 #include <math.h>
10349 #ifdef HAVE_IEEEFP_H
10350 #include <ieeefp.h>
10351 #endif
10353 int main() {
10354 _finitef(0);
10355 ; return 0; }
10357 if { (eval echo configure:10358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10358 rm -rf conftest*
10359 glibcpp_cv_func__finitef_use=yes
10360 else
10361 echo "configure: failed program was:" >&5
10362 cat conftest.$ac_ext >&5
10363 rm -rf conftest*
10364 glibcpp_cv_func__finitef_use=no
10366 rm -f conftest*
10367 ac_ext=c
10368 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10369 ac_cpp='$CPP $CPPFLAGS'
10370 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10371 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10372 cross_compiling=$ac_cv_prog_cc_cross
10378 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
10380 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
10381 for ac_func in _finitef
10383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10384 echo "configure:10385: checking for $ac_func" >&5
10385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10386 echo $ac_n "(cached) $ac_c" 1>&6
10387 else
10388 cat > conftest.$ac_ext <<EOF
10389 #line 10390 "configure"
10390 #include "confdefs.h"
10391 /* System header to define __stub macros and hopefully few prototypes,
10392 which can conflict with char $ac_func(); below. */
10393 #include <assert.h>
10394 /* Override any gcc2 internal prototype to avoid an error. */
10395 /* We use char because int might match the return type of a gcc2
10396 builtin and then its argument prototype would still apply. */
10397 char $ac_func();
10399 int main() {
10401 /* The GNU C library defines this for functions which it implements
10402 to always fail with ENOSYS. Some functions are actually named
10403 something starting with __ and the normal name is an alias. */
10404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10405 choke me
10406 #else
10407 $ac_func();
10408 #endif
10410 ; return 0; }
10412 if { (eval echo configure:10413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10413 rm -rf conftest*
10414 eval "ac_cv_func_$ac_func=yes"
10415 else
10416 echo "configure: failed program was:" >&5
10417 cat conftest.$ac_ext >&5
10418 rm -rf conftest*
10419 eval "ac_cv_func_$ac_func=no"
10421 rm -f conftest*
10424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10425 echo "$ac_t""yes" 1>&6
10426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10427 cat >> confdefs.h <<EOF
10428 #define $ac_tr_func 1
10431 else
10432 echo "$ac_t""no" 1>&6
10434 done
10441 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
10442 echo "configure:10443: checking for long double trig functions" >&5
10443 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
10444 echo $ac_n "(cached) $ac_c" 1>&6
10445 else
10448 ac_ext=C
10449 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10450 ac_cpp='$CXXCPP $CPPFLAGS'
10451 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10452 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10453 cross_compiling=$ac_cv_prog_cxx_cross
10455 cat > conftest.$ac_ext <<EOF
10456 #line 10457 "configure"
10457 #include "confdefs.h"
10458 #include <math.h>
10459 int main() {
10460 `for x in acosl asinl atanl \
10461 cosl sinl tanl \
10462 coshl sinhl tanhl; do echo "$x (0);"; done`
10463 ; return 0; }
10465 if { (eval echo configure:10466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10466 rm -rf conftest*
10467 glibcpp_cv_func_long_double_trig_use=yes
10468 else
10469 echo "configure: failed program was:" >&5
10470 cat conftest.$ac_ext >&5
10471 rm -rf conftest*
10472 glibcpp_cv_func_long_double_trig_use=no
10474 rm -f conftest*
10475 ac_ext=c
10476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10477 ac_cpp='$CPP $CPPFLAGS'
10478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10480 cross_compiling=$ac_cv_prog_cc_cross
10484 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
10485 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
10486 for ac_func in acosl asinl atanl \
10487 cosl sinl tanl \
10488 coshl sinhl tanhl
10490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10491 echo "configure:10492: checking for $ac_func" >&5
10492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10493 echo $ac_n "(cached) $ac_c" 1>&6
10494 else
10495 cat > conftest.$ac_ext <<EOF
10496 #line 10497 "configure"
10497 #include "confdefs.h"
10498 /* System header to define __stub macros and hopefully few prototypes,
10499 which can conflict with char $ac_func(); below. */
10500 #include <assert.h>
10501 /* Override any gcc2 internal prototype to avoid an error. */
10502 /* We use char because int might match the return type of a gcc2
10503 builtin and then its argument prototype would still apply. */
10504 char $ac_func();
10506 int main() {
10508 /* The GNU C library defines this for functions which it implements
10509 to always fail with ENOSYS. Some functions are actually named
10510 something starting with __ and the normal name is an alias. */
10511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10512 choke me
10513 #else
10514 $ac_func();
10515 #endif
10517 ; return 0; }
10519 if { (eval echo configure:10520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10520 rm -rf conftest*
10521 eval "ac_cv_func_$ac_func=yes"
10522 else
10523 echo "configure: failed program was:" >&5
10524 cat conftest.$ac_ext >&5
10525 rm -rf conftest*
10526 eval "ac_cv_func_$ac_func=no"
10528 rm -f conftest*
10531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10532 echo "$ac_t""yes" 1>&6
10533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10534 cat >> confdefs.h <<EOF
10535 #define $ac_tr_func 1
10538 else
10539 echo "$ac_t""no" 1>&6
10541 done
10546 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
10547 echo "configure:10548: checking for long double round functions" >&5
10548 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
10549 echo $ac_n "(cached) $ac_c" 1>&6
10550 else
10553 ac_ext=C
10554 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10555 ac_cpp='$CXXCPP $CPPFLAGS'
10556 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10557 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10558 cross_compiling=$ac_cv_prog_cxx_cross
10560 cat > conftest.$ac_ext <<EOF
10561 #line 10562 "configure"
10562 #include "confdefs.h"
10563 #include <math.h>
10564 int main() {
10565 `for x in ceill floorl; do echo "$x (0);"; done`
10566 ; return 0; }
10568 if { (eval echo configure:10569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10569 rm -rf conftest*
10570 glibcpp_cv_func_long_double_round_use=yes
10571 else
10572 echo "configure: failed program was:" >&5
10573 cat conftest.$ac_ext >&5
10574 rm -rf conftest*
10575 glibcpp_cv_func_long_double_round_use=no
10577 rm -f conftest*
10578 ac_ext=c
10579 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10580 ac_cpp='$CPP $CPPFLAGS'
10581 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10582 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10583 cross_compiling=$ac_cv_prog_cc_cross
10587 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
10588 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
10589 for ac_func in ceill floorl
10591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10592 echo "configure:10593: checking for $ac_func" >&5
10593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10594 echo $ac_n "(cached) $ac_c" 1>&6
10595 else
10596 cat > conftest.$ac_ext <<EOF
10597 #line 10598 "configure"
10598 #include "confdefs.h"
10599 /* System header to define __stub macros and hopefully few prototypes,
10600 which can conflict with char $ac_func(); below. */
10601 #include <assert.h>
10602 /* Override any gcc2 internal prototype to avoid an error. */
10603 /* We use char because int might match the return type of a gcc2
10604 builtin and then its argument prototype would still apply. */
10605 char $ac_func();
10607 int main() {
10609 /* The GNU C library defines this for functions which it implements
10610 to always fail with ENOSYS. Some functions are actually named
10611 something starting with __ and the normal name is an alias. */
10612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10613 choke me
10614 #else
10615 $ac_func();
10616 #endif
10618 ; return 0; }
10620 if { (eval echo configure:10621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10621 rm -rf conftest*
10622 eval "ac_cv_func_$ac_func=yes"
10623 else
10624 echo "configure: failed program was:" >&5
10625 cat conftest.$ac_ext >&5
10626 rm -rf conftest*
10627 eval "ac_cv_func_$ac_func=no"
10629 rm -f conftest*
10632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10633 echo "$ac_t""yes" 1>&6
10634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10635 cat >> confdefs.h <<EOF
10636 #define $ac_tr_func 1
10639 else
10640 echo "$ac_t""no" 1>&6
10642 done
10648 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
10649 echo "configure:10650: checking for isnanl declaration" >&5
10650 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
10651 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
10652 echo $ac_n "(cached) $ac_c" 1>&6
10653 else
10656 ac_ext=C
10657 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10658 ac_cpp='$CXXCPP $CPPFLAGS'
10659 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10660 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10661 cross_compiling=$ac_cv_prog_cxx_cross
10663 cat > conftest.$ac_ext <<EOF
10664 #line 10665 "configure"
10665 #include "confdefs.h"
10666 #include <math.h>
10667 #ifdef HAVE_IEEEFP_H
10668 #include <ieeefp.h>
10669 #endif
10671 int main() {
10672 isnanl(0);
10673 ; return 0; }
10675 if { (eval echo configure:10676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10676 rm -rf conftest*
10677 glibcpp_cv_func_isnanl_use=yes
10678 else
10679 echo "configure: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10681 rm -rf conftest*
10682 glibcpp_cv_func_isnanl_use=no
10684 rm -f conftest*
10685 ac_ext=c
10686 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10687 ac_cpp='$CPP $CPPFLAGS'
10688 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10689 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10690 cross_compiling=$ac_cv_prog_cc_cross
10696 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
10698 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
10699 for ac_func in isnanl
10701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10702 echo "configure:10703: checking for $ac_func" >&5
10703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10704 echo $ac_n "(cached) $ac_c" 1>&6
10705 else
10706 cat > conftest.$ac_ext <<EOF
10707 #line 10708 "configure"
10708 #include "confdefs.h"
10709 /* System header to define __stub macros and hopefully few prototypes,
10710 which can conflict with char $ac_func(); below. */
10711 #include <assert.h>
10712 /* Override any gcc2 internal prototype to avoid an error. */
10713 /* We use char because int might match the return type of a gcc2
10714 builtin and then its argument prototype would still apply. */
10715 char $ac_func();
10717 int main() {
10719 /* The GNU C library defines this for functions which it implements
10720 to always fail with ENOSYS. Some functions are actually named
10721 something starting with __ and the normal name is an alias. */
10722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10723 choke me
10724 #else
10725 $ac_func();
10726 #endif
10728 ; return 0; }
10730 if { (eval echo configure:10731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10731 rm -rf conftest*
10732 eval "ac_cv_func_$ac_func=yes"
10733 else
10734 echo "configure: failed program was:" >&5
10735 cat conftest.$ac_ext >&5
10736 rm -rf conftest*
10737 eval "ac_cv_func_$ac_func=no"
10739 rm -f conftest*
10742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10743 echo "$ac_t""yes" 1>&6
10744 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10745 cat >> confdefs.h <<EOF
10746 #define $ac_tr_func 1
10749 else
10750 echo "$ac_t""no" 1>&6
10752 done
10754 else
10756 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
10757 echo "configure:10758: checking for _isnanl declaration" >&5
10758 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
10759 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
10760 echo $ac_n "(cached) $ac_c" 1>&6
10761 else
10764 ac_ext=C
10765 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10766 ac_cpp='$CXXCPP $CPPFLAGS'
10767 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10768 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10769 cross_compiling=$ac_cv_prog_cxx_cross
10771 cat > conftest.$ac_ext <<EOF
10772 #line 10773 "configure"
10773 #include "confdefs.h"
10774 #include <math.h>
10775 #ifdef HAVE_IEEEFP_H
10776 #include <ieeefp.h>
10777 #endif
10779 int main() {
10780 _isnanl(0);
10781 ; return 0; }
10783 if { (eval echo configure:10784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10784 rm -rf conftest*
10785 glibcpp_cv_func__isnanl_use=yes
10786 else
10787 echo "configure: failed program was:" >&5
10788 cat conftest.$ac_ext >&5
10789 rm -rf conftest*
10790 glibcpp_cv_func__isnanl_use=no
10792 rm -f conftest*
10793 ac_ext=c
10794 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10795 ac_cpp='$CPP $CPPFLAGS'
10796 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10797 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10798 cross_compiling=$ac_cv_prog_cc_cross
10804 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
10806 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
10807 for ac_func in _isnanl
10809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10810 echo "configure:10811: checking for $ac_func" >&5
10811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10812 echo $ac_n "(cached) $ac_c" 1>&6
10813 else
10814 cat > conftest.$ac_ext <<EOF
10815 #line 10816 "configure"
10816 #include "confdefs.h"
10817 /* System header to define __stub macros and hopefully few prototypes,
10818 which can conflict with char $ac_func(); below. */
10819 #include <assert.h>
10820 /* Override any gcc2 internal prototype to avoid an error. */
10821 /* We use char because int might match the return type of a gcc2
10822 builtin and then its argument prototype would still apply. */
10823 char $ac_func();
10825 int main() {
10827 /* The GNU C library defines this for functions which it implements
10828 to always fail with ENOSYS. Some functions are actually named
10829 something starting with __ and the normal name is an alias. */
10830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10831 choke me
10832 #else
10833 $ac_func();
10834 #endif
10836 ; return 0; }
10838 if { (eval echo configure:10839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10839 rm -rf conftest*
10840 eval "ac_cv_func_$ac_func=yes"
10841 else
10842 echo "configure: failed program was:" >&5
10843 cat conftest.$ac_ext >&5
10844 rm -rf conftest*
10845 eval "ac_cv_func_$ac_func=no"
10847 rm -f conftest*
10850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10851 echo "$ac_t""yes" 1>&6
10852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10853 cat >> confdefs.h <<EOF
10854 #define $ac_tr_func 1
10857 else
10858 echo "$ac_t""no" 1>&6
10860 done
10867 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
10868 echo "configure:10869: checking for isinfl declaration" >&5
10869 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
10870 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
10871 echo $ac_n "(cached) $ac_c" 1>&6
10872 else
10875 ac_ext=C
10876 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10877 ac_cpp='$CXXCPP $CPPFLAGS'
10878 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10879 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10880 cross_compiling=$ac_cv_prog_cxx_cross
10882 cat > conftest.$ac_ext <<EOF
10883 #line 10884 "configure"
10884 #include "confdefs.h"
10885 #include <math.h>
10886 #ifdef HAVE_IEEEFP_H
10887 #include <ieeefp.h>
10888 #endif
10890 int main() {
10891 isinfl(0);
10892 ; return 0; }
10894 if { (eval echo configure:10895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10895 rm -rf conftest*
10896 glibcpp_cv_func_isinfl_use=yes
10897 else
10898 echo "configure: failed program was:" >&5
10899 cat conftest.$ac_ext >&5
10900 rm -rf conftest*
10901 glibcpp_cv_func_isinfl_use=no
10903 rm -f conftest*
10904 ac_ext=c
10905 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10906 ac_cpp='$CPP $CPPFLAGS'
10907 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10908 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10909 cross_compiling=$ac_cv_prog_cc_cross
10915 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
10917 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
10918 for ac_func in isinfl
10920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10921 echo "configure:10922: checking for $ac_func" >&5
10922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10923 echo $ac_n "(cached) $ac_c" 1>&6
10924 else
10925 cat > conftest.$ac_ext <<EOF
10926 #line 10927 "configure"
10927 #include "confdefs.h"
10928 /* System header to define __stub macros and hopefully few prototypes,
10929 which can conflict with char $ac_func(); below. */
10930 #include <assert.h>
10931 /* Override any gcc2 internal prototype to avoid an error. */
10932 /* We use char because int might match the return type of a gcc2
10933 builtin and then its argument prototype would still apply. */
10934 char $ac_func();
10936 int main() {
10938 /* The GNU C library defines this for functions which it implements
10939 to always fail with ENOSYS. Some functions are actually named
10940 something starting with __ and the normal name is an alias. */
10941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10942 choke me
10943 #else
10944 $ac_func();
10945 #endif
10947 ; return 0; }
10949 if { (eval echo configure:10950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10950 rm -rf conftest*
10951 eval "ac_cv_func_$ac_func=yes"
10952 else
10953 echo "configure: failed program was:" >&5
10954 cat conftest.$ac_ext >&5
10955 rm -rf conftest*
10956 eval "ac_cv_func_$ac_func=no"
10958 rm -f conftest*
10961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10962 echo "$ac_t""yes" 1>&6
10963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10964 cat >> confdefs.h <<EOF
10965 #define $ac_tr_func 1
10968 else
10969 echo "$ac_t""no" 1>&6
10971 done
10973 else
10975 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
10976 echo "configure:10977: checking for _isinfl declaration" >&5
10977 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
10978 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
10979 echo $ac_n "(cached) $ac_c" 1>&6
10980 else
10983 ac_ext=C
10984 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10985 ac_cpp='$CXXCPP $CPPFLAGS'
10986 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10987 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10988 cross_compiling=$ac_cv_prog_cxx_cross
10990 cat > conftest.$ac_ext <<EOF
10991 #line 10992 "configure"
10992 #include "confdefs.h"
10993 #include <math.h>
10994 #ifdef HAVE_IEEEFP_H
10995 #include <ieeefp.h>
10996 #endif
10998 int main() {
10999 _isinfl(0);
11000 ; return 0; }
11002 if { (eval echo configure:11003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11003 rm -rf conftest*
11004 glibcpp_cv_func__isinfl_use=yes
11005 else
11006 echo "configure: failed program was:" >&5
11007 cat conftest.$ac_ext >&5
11008 rm -rf conftest*
11009 glibcpp_cv_func__isinfl_use=no
11011 rm -f conftest*
11012 ac_ext=c
11013 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11014 ac_cpp='$CPP $CPPFLAGS'
11015 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11016 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11017 cross_compiling=$ac_cv_prog_cc_cross
11023 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
11025 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
11026 for ac_func in _isinfl
11028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11029 echo "configure:11030: checking for $ac_func" >&5
11030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11031 echo $ac_n "(cached) $ac_c" 1>&6
11032 else
11033 cat > conftest.$ac_ext <<EOF
11034 #line 11035 "configure"
11035 #include "confdefs.h"
11036 /* System header to define __stub macros and hopefully few prototypes,
11037 which can conflict with char $ac_func(); below. */
11038 #include <assert.h>
11039 /* Override any gcc2 internal prototype to avoid an error. */
11040 /* We use char because int might match the return type of a gcc2
11041 builtin and then its argument prototype would still apply. */
11042 char $ac_func();
11044 int main() {
11046 /* The GNU C library defines this for functions which it implements
11047 to always fail with ENOSYS. Some functions are actually named
11048 something starting with __ and the normal name is an alias. */
11049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11050 choke me
11051 #else
11052 $ac_func();
11053 #endif
11055 ; return 0; }
11057 if { (eval echo configure:11058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11058 rm -rf conftest*
11059 eval "ac_cv_func_$ac_func=yes"
11060 else
11061 echo "configure: failed program was:" >&5
11062 cat conftest.$ac_ext >&5
11063 rm -rf conftest*
11064 eval "ac_cv_func_$ac_func=no"
11066 rm -f conftest*
11069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11070 echo "$ac_t""yes" 1>&6
11071 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11072 cat >> confdefs.h <<EOF
11073 #define $ac_tr_func 1
11076 else
11077 echo "$ac_t""no" 1>&6
11079 done
11086 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
11087 echo "configure:11088: checking for copysignl declaration" >&5
11088 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
11089 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
11090 echo $ac_n "(cached) $ac_c" 1>&6
11091 else
11094 ac_ext=C
11095 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11096 ac_cpp='$CXXCPP $CPPFLAGS'
11097 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11098 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11099 cross_compiling=$ac_cv_prog_cxx_cross
11101 cat > conftest.$ac_ext <<EOF
11102 #line 11103 "configure"
11103 #include "confdefs.h"
11104 #include <math.h>
11105 int main() {
11106 copysignl(0, 0);
11107 ; return 0; }
11109 if { (eval echo configure:11110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11110 rm -rf conftest*
11111 glibcpp_cv_func_copysignl_use=yes
11112 else
11113 echo "configure: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11115 rm -rf conftest*
11116 glibcpp_cv_func_copysignl_use=no
11118 rm -f conftest*
11119 ac_ext=c
11120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11121 ac_cpp='$CPP $CPPFLAGS'
11122 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11123 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11124 cross_compiling=$ac_cv_prog_cc_cross
11130 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
11132 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
11133 for ac_func in copysignl
11135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11136 echo "configure:11137: checking for $ac_func" >&5
11137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11138 echo $ac_n "(cached) $ac_c" 1>&6
11139 else
11140 cat > conftest.$ac_ext <<EOF
11141 #line 11142 "configure"
11142 #include "confdefs.h"
11143 /* System header to define __stub macros and hopefully few prototypes,
11144 which can conflict with char $ac_func(); below. */
11145 #include <assert.h>
11146 /* Override any gcc2 internal prototype to avoid an error. */
11147 /* We use char because int might match the return type of a gcc2
11148 builtin and then its argument prototype would still apply. */
11149 char $ac_func();
11151 int main() {
11153 /* The GNU C library defines this for functions which it implements
11154 to always fail with ENOSYS. Some functions are actually named
11155 something starting with __ and the normal name is an alias. */
11156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11157 choke me
11158 #else
11159 $ac_func();
11160 #endif
11162 ; return 0; }
11164 if { (eval echo configure:11165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11165 rm -rf conftest*
11166 eval "ac_cv_func_$ac_func=yes"
11167 else
11168 echo "configure: failed program was:" >&5
11169 cat conftest.$ac_ext >&5
11170 rm -rf conftest*
11171 eval "ac_cv_func_$ac_func=no"
11173 rm -f conftest*
11176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11177 echo "$ac_t""yes" 1>&6
11178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11179 cat >> confdefs.h <<EOF
11180 #define $ac_tr_func 1
11183 else
11184 echo "$ac_t""no" 1>&6
11186 done
11188 else
11190 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
11191 echo "configure:11192: checking for _copysignl declaration" >&5
11192 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
11193 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
11194 echo $ac_n "(cached) $ac_c" 1>&6
11195 else
11198 ac_ext=C
11199 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11200 ac_cpp='$CXXCPP $CPPFLAGS'
11201 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11202 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11203 cross_compiling=$ac_cv_prog_cxx_cross
11205 cat > conftest.$ac_ext <<EOF
11206 #line 11207 "configure"
11207 #include "confdefs.h"
11208 #include <math.h>
11209 int main() {
11210 _copysignl(0, 0);
11211 ; return 0; }
11213 if { (eval echo configure:11214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11214 rm -rf conftest*
11215 glibcpp_cv_func__copysignl_use=yes
11216 else
11217 echo "configure: failed program was:" >&5
11218 cat conftest.$ac_ext >&5
11219 rm -rf conftest*
11220 glibcpp_cv_func__copysignl_use=no
11222 rm -f conftest*
11223 ac_ext=c
11224 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11225 ac_cpp='$CPP $CPPFLAGS'
11226 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11227 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11228 cross_compiling=$ac_cv_prog_cc_cross
11234 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
11236 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
11237 for ac_func in _copysignl
11239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11240 echo "configure:11241: checking for $ac_func" >&5
11241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11242 echo $ac_n "(cached) $ac_c" 1>&6
11243 else
11244 cat > conftest.$ac_ext <<EOF
11245 #line 11246 "configure"
11246 #include "confdefs.h"
11247 /* System header to define __stub macros and hopefully few prototypes,
11248 which can conflict with char $ac_func(); below. */
11249 #include <assert.h>
11250 /* Override any gcc2 internal prototype to avoid an error. */
11251 /* We use char because int might match the return type of a gcc2
11252 builtin and then its argument prototype would still apply. */
11253 char $ac_func();
11255 int main() {
11257 /* The GNU C library defines this for functions which it implements
11258 to always fail with ENOSYS. Some functions are actually named
11259 something starting with __ and the normal name is an alias. */
11260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11261 choke me
11262 #else
11263 $ac_func();
11264 #endif
11266 ; return 0; }
11268 if { (eval echo configure:11269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11269 rm -rf conftest*
11270 eval "ac_cv_func_$ac_func=yes"
11271 else
11272 echo "configure: failed program was:" >&5
11273 cat conftest.$ac_ext >&5
11274 rm -rf conftest*
11275 eval "ac_cv_func_$ac_func=no"
11277 rm -f conftest*
11280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11281 echo "$ac_t""yes" 1>&6
11282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11283 cat >> confdefs.h <<EOF
11284 #define $ac_tr_func 1
11287 else
11288 echo "$ac_t""no" 1>&6
11290 done
11297 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
11298 echo "configure:11299: checking for atan2l declaration" >&5
11299 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
11300 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
11301 echo $ac_n "(cached) $ac_c" 1>&6
11302 else
11305 ac_ext=C
11306 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11307 ac_cpp='$CXXCPP $CPPFLAGS'
11308 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11309 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11310 cross_compiling=$ac_cv_prog_cxx_cross
11312 cat > conftest.$ac_ext <<EOF
11313 #line 11314 "configure"
11314 #include "confdefs.h"
11315 #include <math.h>
11316 int main() {
11317 atan2l(0, 0);
11318 ; return 0; }
11320 if { (eval echo configure:11321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11321 rm -rf conftest*
11322 glibcpp_cv_func_atan2l_use=yes
11323 else
11324 echo "configure: failed program was:" >&5
11325 cat conftest.$ac_ext >&5
11326 rm -rf conftest*
11327 glibcpp_cv_func_atan2l_use=no
11329 rm -f conftest*
11330 ac_ext=c
11331 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11332 ac_cpp='$CPP $CPPFLAGS'
11333 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11334 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11335 cross_compiling=$ac_cv_prog_cc_cross
11341 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
11343 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
11344 for ac_func in atan2l
11346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11347 echo "configure:11348: checking for $ac_func" >&5
11348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11349 echo $ac_n "(cached) $ac_c" 1>&6
11350 else
11351 cat > conftest.$ac_ext <<EOF
11352 #line 11353 "configure"
11353 #include "confdefs.h"
11354 /* System header to define __stub macros and hopefully few prototypes,
11355 which can conflict with char $ac_func(); below. */
11356 #include <assert.h>
11357 /* Override any gcc2 internal prototype to avoid an error. */
11358 /* We use char because int might match the return type of a gcc2
11359 builtin and then its argument prototype would still apply. */
11360 char $ac_func();
11362 int main() {
11364 /* The GNU C library defines this for functions which it implements
11365 to always fail with ENOSYS. Some functions are actually named
11366 something starting with __ and the normal name is an alias. */
11367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11368 choke me
11369 #else
11370 $ac_func();
11371 #endif
11373 ; return 0; }
11375 if { (eval echo configure:11376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11376 rm -rf conftest*
11377 eval "ac_cv_func_$ac_func=yes"
11378 else
11379 echo "configure: failed program was:" >&5
11380 cat conftest.$ac_ext >&5
11381 rm -rf conftest*
11382 eval "ac_cv_func_$ac_func=no"
11384 rm -f conftest*
11387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11388 echo "$ac_t""yes" 1>&6
11389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11390 cat >> confdefs.h <<EOF
11391 #define $ac_tr_func 1
11394 else
11395 echo "$ac_t""no" 1>&6
11397 done
11399 else
11401 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
11402 echo "configure:11403: checking for _atan2l declaration" >&5
11403 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
11404 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
11405 echo $ac_n "(cached) $ac_c" 1>&6
11406 else
11409 ac_ext=C
11410 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11411 ac_cpp='$CXXCPP $CPPFLAGS'
11412 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11413 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11414 cross_compiling=$ac_cv_prog_cxx_cross
11416 cat > conftest.$ac_ext <<EOF
11417 #line 11418 "configure"
11418 #include "confdefs.h"
11419 #include <math.h>
11420 int main() {
11421 _atan2l(0, 0);
11422 ; return 0; }
11424 if { (eval echo configure:11425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11425 rm -rf conftest*
11426 glibcpp_cv_func__atan2l_use=yes
11427 else
11428 echo "configure: failed program was:" >&5
11429 cat conftest.$ac_ext >&5
11430 rm -rf conftest*
11431 glibcpp_cv_func__atan2l_use=no
11433 rm -f conftest*
11434 ac_ext=c
11435 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11436 ac_cpp='$CPP $CPPFLAGS'
11437 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11438 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11439 cross_compiling=$ac_cv_prog_cc_cross
11445 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
11447 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
11448 for ac_func in _atan2l
11450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11451 echo "configure:11452: checking for $ac_func" >&5
11452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11453 echo $ac_n "(cached) $ac_c" 1>&6
11454 else
11455 cat > conftest.$ac_ext <<EOF
11456 #line 11457 "configure"
11457 #include "confdefs.h"
11458 /* System header to define __stub macros and hopefully few prototypes,
11459 which can conflict with char $ac_func(); below. */
11460 #include <assert.h>
11461 /* Override any gcc2 internal prototype to avoid an error. */
11462 /* We use char because int might match the return type of a gcc2
11463 builtin and then its argument prototype would still apply. */
11464 char $ac_func();
11466 int main() {
11468 /* The GNU C library defines this for functions which it implements
11469 to always fail with ENOSYS. Some functions are actually named
11470 something starting with __ and the normal name is an alias. */
11471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11472 choke me
11473 #else
11474 $ac_func();
11475 #endif
11477 ; return 0; }
11479 if { (eval echo configure:11480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11480 rm -rf conftest*
11481 eval "ac_cv_func_$ac_func=yes"
11482 else
11483 echo "configure: failed program was:" >&5
11484 cat conftest.$ac_ext >&5
11485 rm -rf conftest*
11486 eval "ac_cv_func_$ac_func=no"
11488 rm -f conftest*
11491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11492 echo "$ac_t""yes" 1>&6
11493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11494 cat >> confdefs.h <<EOF
11495 #define $ac_tr_func 1
11498 else
11499 echo "$ac_t""no" 1>&6
11501 done
11508 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
11509 echo "configure:11510: checking for expl declaration" >&5
11510 if test x${glibcpp_cv_func_expl_use+set} != xset; then
11511 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
11512 echo $ac_n "(cached) $ac_c" 1>&6
11513 else
11516 ac_ext=C
11517 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11518 ac_cpp='$CXXCPP $CPPFLAGS'
11519 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11520 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11521 cross_compiling=$ac_cv_prog_cxx_cross
11523 cat > conftest.$ac_ext <<EOF
11524 #line 11525 "configure"
11525 #include "confdefs.h"
11526 #include <math.h>
11527 #ifdef HAVE_IEEEFP_H
11528 #include <ieeefp.h>
11529 #endif
11531 int main() {
11532 expl(0);
11533 ; return 0; }
11535 if { (eval echo configure:11536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11536 rm -rf conftest*
11537 glibcpp_cv_func_expl_use=yes
11538 else
11539 echo "configure: failed program was:" >&5
11540 cat conftest.$ac_ext >&5
11541 rm -rf conftest*
11542 glibcpp_cv_func_expl_use=no
11544 rm -f conftest*
11545 ac_ext=c
11546 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11547 ac_cpp='$CPP $CPPFLAGS'
11548 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11549 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11550 cross_compiling=$ac_cv_prog_cc_cross
11556 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
11558 if test x$glibcpp_cv_func_expl_use = x"yes"; then
11559 for ac_func in expl
11561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11562 echo "configure:11563: checking for $ac_func" >&5
11563 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11564 echo $ac_n "(cached) $ac_c" 1>&6
11565 else
11566 cat > conftest.$ac_ext <<EOF
11567 #line 11568 "configure"
11568 #include "confdefs.h"
11569 /* System header to define __stub macros and hopefully few prototypes,
11570 which can conflict with char $ac_func(); below. */
11571 #include <assert.h>
11572 /* Override any gcc2 internal prototype to avoid an error. */
11573 /* We use char because int might match the return type of a gcc2
11574 builtin and then its argument prototype would still apply. */
11575 char $ac_func();
11577 int main() {
11579 /* The GNU C library defines this for functions which it implements
11580 to always fail with ENOSYS. Some functions are actually named
11581 something starting with __ and the normal name is an alias. */
11582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11583 choke me
11584 #else
11585 $ac_func();
11586 #endif
11588 ; return 0; }
11590 if { (eval echo configure:11591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11591 rm -rf conftest*
11592 eval "ac_cv_func_$ac_func=yes"
11593 else
11594 echo "configure: failed program was:" >&5
11595 cat conftest.$ac_ext >&5
11596 rm -rf conftest*
11597 eval "ac_cv_func_$ac_func=no"
11599 rm -f conftest*
11602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11603 echo "$ac_t""yes" 1>&6
11604 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11605 cat >> confdefs.h <<EOF
11606 #define $ac_tr_func 1
11609 else
11610 echo "$ac_t""no" 1>&6
11612 done
11614 else
11616 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
11617 echo "configure:11618: checking for _expl declaration" >&5
11618 if test x${glibcpp_cv_func__expl_use+set} != xset; then
11619 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
11620 echo $ac_n "(cached) $ac_c" 1>&6
11621 else
11624 ac_ext=C
11625 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11626 ac_cpp='$CXXCPP $CPPFLAGS'
11627 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11628 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11629 cross_compiling=$ac_cv_prog_cxx_cross
11631 cat > conftest.$ac_ext <<EOF
11632 #line 11633 "configure"
11633 #include "confdefs.h"
11634 #include <math.h>
11635 #ifdef HAVE_IEEEFP_H
11636 #include <ieeefp.h>
11637 #endif
11639 int main() {
11640 _expl(0);
11641 ; return 0; }
11643 if { (eval echo configure:11644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11644 rm -rf conftest*
11645 glibcpp_cv_func__expl_use=yes
11646 else
11647 echo "configure: failed program was:" >&5
11648 cat conftest.$ac_ext >&5
11649 rm -rf conftest*
11650 glibcpp_cv_func__expl_use=no
11652 rm -f conftest*
11653 ac_ext=c
11654 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11655 ac_cpp='$CPP $CPPFLAGS'
11656 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11657 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11658 cross_compiling=$ac_cv_prog_cc_cross
11664 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
11666 if test x$glibcpp_cv_func__expl_use = x"yes"; then
11667 for ac_func in _expl
11669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11670 echo "configure:11671: checking for $ac_func" >&5
11671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11672 echo $ac_n "(cached) $ac_c" 1>&6
11673 else
11674 cat > conftest.$ac_ext <<EOF
11675 #line 11676 "configure"
11676 #include "confdefs.h"
11677 /* System header to define __stub macros and hopefully few prototypes,
11678 which can conflict with char $ac_func(); below. */
11679 #include <assert.h>
11680 /* Override any gcc2 internal prototype to avoid an error. */
11681 /* We use char because int might match the return type of a gcc2
11682 builtin and then its argument prototype would still apply. */
11683 char $ac_func();
11685 int main() {
11687 /* The GNU C library defines this for functions which it implements
11688 to always fail with ENOSYS. Some functions are actually named
11689 something starting with __ and the normal name is an alias. */
11690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11691 choke me
11692 #else
11693 $ac_func();
11694 #endif
11696 ; return 0; }
11698 if { (eval echo configure:11699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11699 rm -rf conftest*
11700 eval "ac_cv_func_$ac_func=yes"
11701 else
11702 echo "configure: failed program was:" >&5
11703 cat conftest.$ac_ext >&5
11704 rm -rf conftest*
11705 eval "ac_cv_func_$ac_func=no"
11707 rm -f conftest*
11710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11711 echo "$ac_t""yes" 1>&6
11712 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11713 cat >> confdefs.h <<EOF
11714 #define $ac_tr_func 1
11717 else
11718 echo "$ac_t""no" 1>&6
11720 done
11727 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
11728 echo "configure:11729: checking for fabsl declaration" >&5
11729 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
11730 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
11731 echo $ac_n "(cached) $ac_c" 1>&6
11732 else
11735 ac_ext=C
11736 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11737 ac_cpp='$CXXCPP $CPPFLAGS'
11738 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11739 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11740 cross_compiling=$ac_cv_prog_cxx_cross
11742 cat > conftest.$ac_ext <<EOF
11743 #line 11744 "configure"
11744 #include "confdefs.h"
11745 #include <math.h>
11746 #ifdef HAVE_IEEEFP_H
11747 #include <ieeefp.h>
11748 #endif
11750 int main() {
11751 fabsl(0);
11752 ; return 0; }
11754 if { (eval echo configure:11755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11755 rm -rf conftest*
11756 glibcpp_cv_func_fabsl_use=yes
11757 else
11758 echo "configure: failed program was:" >&5
11759 cat conftest.$ac_ext >&5
11760 rm -rf conftest*
11761 glibcpp_cv_func_fabsl_use=no
11763 rm -f conftest*
11764 ac_ext=c
11765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11766 ac_cpp='$CPP $CPPFLAGS'
11767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11769 cross_compiling=$ac_cv_prog_cc_cross
11775 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
11777 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
11778 for ac_func in fabsl
11780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11781 echo "configure:11782: checking for $ac_func" >&5
11782 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11783 echo $ac_n "(cached) $ac_c" 1>&6
11784 else
11785 cat > conftest.$ac_ext <<EOF
11786 #line 11787 "configure"
11787 #include "confdefs.h"
11788 /* System header to define __stub macros and hopefully few prototypes,
11789 which can conflict with char $ac_func(); below. */
11790 #include <assert.h>
11791 /* Override any gcc2 internal prototype to avoid an error. */
11792 /* We use char because int might match the return type of a gcc2
11793 builtin and then its argument prototype would still apply. */
11794 char $ac_func();
11796 int main() {
11798 /* The GNU C library defines this for functions which it implements
11799 to always fail with ENOSYS. Some functions are actually named
11800 something starting with __ and the normal name is an alias. */
11801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11802 choke me
11803 #else
11804 $ac_func();
11805 #endif
11807 ; return 0; }
11809 if { (eval echo configure:11810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11810 rm -rf conftest*
11811 eval "ac_cv_func_$ac_func=yes"
11812 else
11813 echo "configure: failed program was:" >&5
11814 cat conftest.$ac_ext >&5
11815 rm -rf conftest*
11816 eval "ac_cv_func_$ac_func=no"
11818 rm -f conftest*
11821 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11822 echo "$ac_t""yes" 1>&6
11823 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11824 cat >> confdefs.h <<EOF
11825 #define $ac_tr_func 1
11828 else
11829 echo "$ac_t""no" 1>&6
11831 done
11833 else
11835 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
11836 echo "configure:11837: checking for _fabsl declaration" >&5
11837 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
11838 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
11839 echo $ac_n "(cached) $ac_c" 1>&6
11840 else
11843 ac_ext=C
11844 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11845 ac_cpp='$CXXCPP $CPPFLAGS'
11846 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11847 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11848 cross_compiling=$ac_cv_prog_cxx_cross
11850 cat > conftest.$ac_ext <<EOF
11851 #line 11852 "configure"
11852 #include "confdefs.h"
11853 #include <math.h>
11854 #ifdef HAVE_IEEEFP_H
11855 #include <ieeefp.h>
11856 #endif
11858 int main() {
11859 _fabsl(0);
11860 ; return 0; }
11862 if { (eval echo configure:11863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11863 rm -rf conftest*
11864 glibcpp_cv_func__fabsl_use=yes
11865 else
11866 echo "configure: failed program was:" >&5
11867 cat conftest.$ac_ext >&5
11868 rm -rf conftest*
11869 glibcpp_cv_func__fabsl_use=no
11871 rm -f conftest*
11872 ac_ext=c
11873 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11874 ac_cpp='$CPP $CPPFLAGS'
11875 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11876 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11877 cross_compiling=$ac_cv_prog_cc_cross
11883 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
11885 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
11886 for ac_func in _fabsl
11888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11889 echo "configure:11890: checking for $ac_func" >&5
11890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11891 echo $ac_n "(cached) $ac_c" 1>&6
11892 else
11893 cat > conftest.$ac_ext <<EOF
11894 #line 11895 "configure"
11895 #include "confdefs.h"
11896 /* System header to define __stub macros and hopefully few prototypes,
11897 which can conflict with char $ac_func(); below. */
11898 #include <assert.h>
11899 /* Override any gcc2 internal prototype to avoid an error. */
11900 /* We use char because int might match the return type of a gcc2
11901 builtin and then its argument prototype would still apply. */
11902 char $ac_func();
11904 int main() {
11906 /* The GNU C library defines this for functions which it implements
11907 to always fail with ENOSYS. Some functions are actually named
11908 something starting with __ and the normal name is an alias. */
11909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11910 choke me
11911 #else
11912 $ac_func();
11913 #endif
11915 ; return 0; }
11917 if { (eval echo configure:11918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11918 rm -rf conftest*
11919 eval "ac_cv_func_$ac_func=yes"
11920 else
11921 echo "configure: failed program was:" >&5
11922 cat conftest.$ac_ext >&5
11923 rm -rf conftest*
11924 eval "ac_cv_func_$ac_func=no"
11926 rm -f conftest*
11929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11930 echo "$ac_t""yes" 1>&6
11931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11932 cat >> confdefs.h <<EOF
11933 #define $ac_tr_func 1
11936 else
11937 echo "$ac_t""no" 1>&6
11939 done
11946 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
11947 echo "configure:11948: checking for fmodl declaration" >&5
11948 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
11949 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
11950 echo $ac_n "(cached) $ac_c" 1>&6
11951 else
11954 ac_ext=C
11955 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11956 ac_cpp='$CXXCPP $CPPFLAGS'
11957 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11958 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11959 cross_compiling=$ac_cv_prog_cxx_cross
11961 cat > conftest.$ac_ext <<EOF
11962 #line 11963 "configure"
11963 #include "confdefs.h"
11964 #include <math.h>
11965 int main() {
11966 fmodl(0, 0);
11967 ; return 0; }
11969 if { (eval echo configure:11970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11970 rm -rf conftest*
11971 glibcpp_cv_func_fmodl_use=yes
11972 else
11973 echo "configure: failed program was:" >&5
11974 cat conftest.$ac_ext >&5
11975 rm -rf conftest*
11976 glibcpp_cv_func_fmodl_use=no
11978 rm -f conftest*
11979 ac_ext=c
11980 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11981 ac_cpp='$CPP $CPPFLAGS'
11982 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11983 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11984 cross_compiling=$ac_cv_prog_cc_cross
11990 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
11992 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
11993 for ac_func in fmodl
11995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11996 echo "configure:11997: checking for $ac_func" >&5
11997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11998 echo $ac_n "(cached) $ac_c" 1>&6
11999 else
12000 cat > conftest.$ac_ext <<EOF
12001 #line 12002 "configure"
12002 #include "confdefs.h"
12003 /* System header to define __stub macros and hopefully few prototypes,
12004 which can conflict with char $ac_func(); below. */
12005 #include <assert.h>
12006 /* Override any gcc2 internal prototype to avoid an error. */
12007 /* We use char because int might match the return type of a gcc2
12008 builtin and then its argument prototype would still apply. */
12009 char $ac_func();
12011 int main() {
12013 /* The GNU C library defines this for functions which it implements
12014 to always fail with ENOSYS. Some functions are actually named
12015 something starting with __ and the normal name is an alias. */
12016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12017 choke me
12018 #else
12019 $ac_func();
12020 #endif
12022 ; return 0; }
12024 if { (eval echo configure:12025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12025 rm -rf conftest*
12026 eval "ac_cv_func_$ac_func=yes"
12027 else
12028 echo "configure: failed program was:" >&5
12029 cat conftest.$ac_ext >&5
12030 rm -rf conftest*
12031 eval "ac_cv_func_$ac_func=no"
12033 rm -f conftest*
12036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12037 echo "$ac_t""yes" 1>&6
12038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12039 cat >> confdefs.h <<EOF
12040 #define $ac_tr_func 1
12043 else
12044 echo "$ac_t""no" 1>&6
12046 done
12048 else
12050 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
12051 echo "configure:12052: checking for _fmodl declaration" >&5
12052 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
12053 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
12054 echo $ac_n "(cached) $ac_c" 1>&6
12055 else
12058 ac_ext=C
12059 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12060 ac_cpp='$CXXCPP $CPPFLAGS'
12061 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12062 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12063 cross_compiling=$ac_cv_prog_cxx_cross
12065 cat > conftest.$ac_ext <<EOF
12066 #line 12067 "configure"
12067 #include "confdefs.h"
12068 #include <math.h>
12069 int main() {
12070 _fmodl(0, 0);
12071 ; return 0; }
12073 if { (eval echo configure:12074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12074 rm -rf conftest*
12075 glibcpp_cv_func__fmodl_use=yes
12076 else
12077 echo "configure: failed program was:" >&5
12078 cat conftest.$ac_ext >&5
12079 rm -rf conftest*
12080 glibcpp_cv_func__fmodl_use=no
12082 rm -f conftest*
12083 ac_ext=c
12084 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12085 ac_cpp='$CPP $CPPFLAGS'
12086 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12087 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12088 cross_compiling=$ac_cv_prog_cc_cross
12094 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
12096 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
12097 for ac_func in _fmodl
12099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12100 echo "configure:12101: checking for $ac_func" >&5
12101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12102 echo $ac_n "(cached) $ac_c" 1>&6
12103 else
12104 cat > conftest.$ac_ext <<EOF
12105 #line 12106 "configure"
12106 #include "confdefs.h"
12107 /* System header to define __stub macros and hopefully few prototypes,
12108 which can conflict with char $ac_func(); below. */
12109 #include <assert.h>
12110 /* Override any gcc2 internal prototype to avoid an error. */
12111 /* We use char because int might match the return type of a gcc2
12112 builtin and then its argument prototype would still apply. */
12113 char $ac_func();
12115 int main() {
12117 /* The GNU C library defines this for functions which it implements
12118 to always fail with ENOSYS. Some functions are actually named
12119 something starting with __ and the normal name is an alias. */
12120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12121 choke me
12122 #else
12123 $ac_func();
12124 #endif
12126 ; return 0; }
12128 if { (eval echo configure:12129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12129 rm -rf conftest*
12130 eval "ac_cv_func_$ac_func=yes"
12131 else
12132 echo "configure: failed program was:" >&5
12133 cat conftest.$ac_ext >&5
12134 rm -rf conftest*
12135 eval "ac_cv_func_$ac_func=no"
12137 rm -f conftest*
12140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12141 echo "$ac_t""yes" 1>&6
12142 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12143 cat >> confdefs.h <<EOF
12144 #define $ac_tr_func 1
12147 else
12148 echo "$ac_t""no" 1>&6
12150 done
12157 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
12158 echo "configure:12159: checking for frexpl declaration" >&5
12159 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
12160 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
12161 echo $ac_n "(cached) $ac_c" 1>&6
12162 else
12165 ac_ext=C
12166 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12167 ac_cpp='$CXXCPP $CPPFLAGS'
12168 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12169 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12170 cross_compiling=$ac_cv_prog_cxx_cross
12172 cat > conftest.$ac_ext <<EOF
12173 #line 12174 "configure"
12174 #include "confdefs.h"
12175 #include <math.h>
12176 int main() {
12177 frexpl(0, 0);
12178 ; return 0; }
12180 if { (eval echo configure:12181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12181 rm -rf conftest*
12182 glibcpp_cv_func_frexpl_use=yes
12183 else
12184 echo "configure: failed program was:" >&5
12185 cat conftest.$ac_ext >&5
12186 rm -rf conftest*
12187 glibcpp_cv_func_frexpl_use=no
12189 rm -f conftest*
12190 ac_ext=c
12191 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12192 ac_cpp='$CPP $CPPFLAGS'
12193 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12194 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12195 cross_compiling=$ac_cv_prog_cc_cross
12201 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
12203 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
12204 for ac_func in frexpl
12206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12207 echo "configure:12208: checking for $ac_func" >&5
12208 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12209 echo $ac_n "(cached) $ac_c" 1>&6
12210 else
12211 cat > conftest.$ac_ext <<EOF
12212 #line 12213 "configure"
12213 #include "confdefs.h"
12214 /* System header to define __stub macros and hopefully few prototypes,
12215 which can conflict with char $ac_func(); below. */
12216 #include <assert.h>
12217 /* Override any gcc2 internal prototype to avoid an error. */
12218 /* We use char because int might match the return type of a gcc2
12219 builtin and then its argument prototype would still apply. */
12220 char $ac_func();
12222 int main() {
12224 /* The GNU C library defines this for functions which it implements
12225 to always fail with ENOSYS. Some functions are actually named
12226 something starting with __ and the normal name is an alias. */
12227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12228 choke me
12229 #else
12230 $ac_func();
12231 #endif
12233 ; return 0; }
12235 if { (eval echo configure:12236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12236 rm -rf conftest*
12237 eval "ac_cv_func_$ac_func=yes"
12238 else
12239 echo "configure: failed program was:" >&5
12240 cat conftest.$ac_ext >&5
12241 rm -rf conftest*
12242 eval "ac_cv_func_$ac_func=no"
12244 rm -f conftest*
12247 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12248 echo "$ac_t""yes" 1>&6
12249 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12250 cat >> confdefs.h <<EOF
12251 #define $ac_tr_func 1
12254 else
12255 echo "$ac_t""no" 1>&6
12257 done
12259 else
12261 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
12262 echo "configure:12263: checking for _frexpl declaration" >&5
12263 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
12264 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
12265 echo $ac_n "(cached) $ac_c" 1>&6
12266 else
12269 ac_ext=C
12270 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12271 ac_cpp='$CXXCPP $CPPFLAGS'
12272 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12273 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12274 cross_compiling=$ac_cv_prog_cxx_cross
12276 cat > conftest.$ac_ext <<EOF
12277 #line 12278 "configure"
12278 #include "confdefs.h"
12279 #include <math.h>
12280 int main() {
12281 _frexpl(0, 0);
12282 ; return 0; }
12284 if { (eval echo configure:12285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12285 rm -rf conftest*
12286 glibcpp_cv_func__frexpl_use=yes
12287 else
12288 echo "configure: failed program was:" >&5
12289 cat conftest.$ac_ext >&5
12290 rm -rf conftest*
12291 glibcpp_cv_func__frexpl_use=no
12293 rm -f conftest*
12294 ac_ext=c
12295 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12296 ac_cpp='$CPP $CPPFLAGS'
12297 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12298 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12299 cross_compiling=$ac_cv_prog_cc_cross
12305 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
12307 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
12308 for ac_func in _frexpl
12310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12311 echo "configure:12312: checking for $ac_func" >&5
12312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12313 echo $ac_n "(cached) $ac_c" 1>&6
12314 else
12315 cat > conftest.$ac_ext <<EOF
12316 #line 12317 "configure"
12317 #include "confdefs.h"
12318 /* System header to define __stub macros and hopefully few prototypes,
12319 which can conflict with char $ac_func(); below. */
12320 #include <assert.h>
12321 /* Override any gcc2 internal prototype to avoid an error. */
12322 /* We use char because int might match the return type of a gcc2
12323 builtin and then its argument prototype would still apply. */
12324 char $ac_func();
12326 int main() {
12328 /* The GNU C library defines this for functions which it implements
12329 to always fail with ENOSYS. Some functions are actually named
12330 something starting with __ and the normal name is an alias. */
12331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12332 choke me
12333 #else
12334 $ac_func();
12335 #endif
12337 ; return 0; }
12339 if { (eval echo configure:12340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12340 rm -rf conftest*
12341 eval "ac_cv_func_$ac_func=yes"
12342 else
12343 echo "configure: failed program was:" >&5
12344 cat conftest.$ac_ext >&5
12345 rm -rf conftest*
12346 eval "ac_cv_func_$ac_func=no"
12348 rm -f conftest*
12351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12352 echo "$ac_t""yes" 1>&6
12353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12354 cat >> confdefs.h <<EOF
12355 #define $ac_tr_func 1
12358 else
12359 echo "$ac_t""no" 1>&6
12361 done
12368 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
12369 echo "configure:12370: checking for ldexpl declaration" >&5
12370 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
12371 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
12372 echo $ac_n "(cached) $ac_c" 1>&6
12373 else
12376 ac_ext=C
12377 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12378 ac_cpp='$CXXCPP $CPPFLAGS'
12379 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12380 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12381 cross_compiling=$ac_cv_prog_cxx_cross
12383 cat > conftest.$ac_ext <<EOF
12384 #line 12385 "configure"
12385 #include "confdefs.h"
12386 #include <math.h>
12387 int main() {
12388 ldexpl(0, 0);
12389 ; return 0; }
12391 if { (eval echo configure:12392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12392 rm -rf conftest*
12393 glibcpp_cv_func_ldexpl_use=yes
12394 else
12395 echo "configure: failed program was:" >&5
12396 cat conftest.$ac_ext >&5
12397 rm -rf conftest*
12398 glibcpp_cv_func_ldexpl_use=no
12400 rm -f conftest*
12401 ac_ext=c
12402 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12403 ac_cpp='$CPP $CPPFLAGS'
12404 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12405 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12406 cross_compiling=$ac_cv_prog_cc_cross
12412 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
12414 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
12415 for ac_func in ldexpl
12417 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12418 echo "configure:12419: checking for $ac_func" >&5
12419 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12420 echo $ac_n "(cached) $ac_c" 1>&6
12421 else
12422 cat > conftest.$ac_ext <<EOF
12423 #line 12424 "configure"
12424 #include "confdefs.h"
12425 /* System header to define __stub macros and hopefully few prototypes,
12426 which can conflict with char $ac_func(); below. */
12427 #include <assert.h>
12428 /* Override any gcc2 internal prototype to avoid an error. */
12429 /* We use char because int might match the return type of a gcc2
12430 builtin and then its argument prototype would still apply. */
12431 char $ac_func();
12433 int main() {
12435 /* The GNU C library defines this for functions which it implements
12436 to always fail with ENOSYS. Some functions are actually named
12437 something starting with __ and the normal name is an alias. */
12438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12439 choke me
12440 #else
12441 $ac_func();
12442 #endif
12444 ; return 0; }
12446 if { (eval echo configure:12447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12447 rm -rf conftest*
12448 eval "ac_cv_func_$ac_func=yes"
12449 else
12450 echo "configure: failed program was:" >&5
12451 cat conftest.$ac_ext >&5
12452 rm -rf conftest*
12453 eval "ac_cv_func_$ac_func=no"
12455 rm -f conftest*
12458 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12459 echo "$ac_t""yes" 1>&6
12460 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12461 cat >> confdefs.h <<EOF
12462 #define $ac_tr_func 1
12465 else
12466 echo "$ac_t""no" 1>&6
12468 done
12470 else
12472 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
12473 echo "configure:12474: checking for _ldexpl declaration" >&5
12474 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
12475 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
12476 echo $ac_n "(cached) $ac_c" 1>&6
12477 else
12480 ac_ext=C
12481 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12482 ac_cpp='$CXXCPP $CPPFLAGS'
12483 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12484 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12485 cross_compiling=$ac_cv_prog_cxx_cross
12487 cat > conftest.$ac_ext <<EOF
12488 #line 12489 "configure"
12489 #include "confdefs.h"
12490 #include <math.h>
12491 int main() {
12492 _ldexpl(0, 0);
12493 ; return 0; }
12495 if { (eval echo configure:12496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12496 rm -rf conftest*
12497 glibcpp_cv_func__ldexpl_use=yes
12498 else
12499 echo "configure: failed program was:" >&5
12500 cat conftest.$ac_ext >&5
12501 rm -rf conftest*
12502 glibcpp_cv_func__ldexpl_use=no
12504 rm -f conftest*
12505 ac_ext=c
12506 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12507 ac_cpp='$CPP $CPPFLAGS'
12508 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12509 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12510 cross_compiling=$ac_cv_prog_cc_cross
12516 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
12518 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
12519 for ac_func in _ldexpl
12521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12522 echo "configure:12523: checking for $ac_func" >&5
12523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12524 echo $ac_n "(cached) $ac_c" 1>&6
12525 else
12526 cat > conftest.$ac_ext <<EOF
12527 #line 12528 "configure"
12528 #include "confdefs.h"
12529 /* System header to define __stub macros and hopefully few prototypes,
12530 which can conflict with char $ac_func(); below. */
12531 #include <assert.h>
12532 /* Override any gcc2 internal prototype to avoid an error. */
12533 /* We use char because int might match the return type of a gcc2
12534 builtin and then its argument prototype would still apply. */
12535 char $ac_func();
12537 int main() {
12539 /* The GNU C library defines this for functions which it implements
12540 to always fail with ENOSYS. Some functions are actually named
12541 something starting with __ and the normal name is an alias. */
12542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12543 choke me
12544 #else
12545 $ac_func();
12546 #endif
12548 ; return 0; }
12550 if { (eval echo configure:12551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12551 rm -rf conftest*
12552 eval "ac_cv_func_$ac_func=yes"
12553 else
12554 echo "configure: failed program was:" >&5
12555 cat conftest.$ac_ext >&5
12556 rm -rf conftest*
12557 eval "ac_cv_func_$ac_func=no"
12559 rm -f conftest*
12562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12563 echo "$ac_t""yes" 1>&6
12564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12565 cat >> confdefs.h <<EOF
12566 #define $ac_tr_func 1
12569 else
12570 echo "$ac_t""no" 1>&6
12572 done
12579 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
12580 echo "configure:12581: checking for logl declaration" >&5
12581 if test x${glibcpp_cv_func_logl_use+set} != xset; then
12582 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
12583 echo $ac_n "(cached) $ac_c" 1>&6
12584 else
12587 ac_ext=C
12588 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12589 ac_cpp='$CXXCPP $CPPFLAGS'
12590 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12591 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12592 cross_compiling=$ac_cv_prog_cxx_cross
12594 cat > conftest.$ac_ext <<EOF
12595 #line 12596 "configure"
12596 #include "confdefs.h"
12597 #include <math.h>
12598 #ifdef HAVE_IEEEFP_H
12599 #include <ieeefp.h>
12600 #endif
12602 int main() {
12603 logl(0);
12604 ; return 0; }
12606 if { (eval echo configure:12607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12607 rm -rf conftest*
12608 glibcpp_cv_func_logl_use=yes
12609 else
12610 echo "configure: failed program was:" >&5
12611 cat conftest.$ac_ext >&5
12612 rm -rf conftest*
12613 glibcpp_cv_func_logl_use=no
12615 rm -f conftest*
12616 ac_ext=c
12617 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12618 ac_cpp='$CPP $CPPFLAGS'
12619 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12620 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12621 cross_compiling=$ac_cv_prog_cc_cross
12627 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
12629 if test x$glibcpp_cv_func_logl_use = x"yes"; then
12630 for ac_func in logl
12632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12633 echo "configure:12634: checking for $ac_func" >&5
12634 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12635 echo $ac_n "(cached) $ac_c" 1>&6
12636 else
12637 cat > conftest.$ac_ext <<EOF
12638 #line 12639 "configure"
12639 #include "confdefs.h"
12640 /* System header to define __stub macros and hopefully few prototypes,
12641 which can conflict with char $ac_func(); below. */
12642 #include <assert.h>
12643 /* Override any gcc2 internal prototype to avoid an error. */
12644 /* We use char because int might match the return type of a gcc2
12645 builtin and then its argument prototype would still apply. */
12646 char $ac_func();
12648 int main() {
12650 /* The GNU C library defines this for functions which it implements
12651 to always fail with ENOSYS. Some functions are actually named
12652 something starting with __ and the normal name is an alias. */
12653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12654 choke me
12655 #else
12656 $ac_func();
12657 #endif
12659 ; return 0; }
12661 if { (eval echo configure:12662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12662 rm -rf conftest*
12663 eval "ac_cv_func_$ac_func=yes"
12664 else
12665 echo "configure: failed program was:" >&5
12666 cat conftest.$ac_ext >&5
12667 rm -rf conftest*
12668 eval "ac_cv_func_$ac_func=no"
12670 rm -f conftest*
12673 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12674 echo "$ac_t""yes" 1>&6
12675 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12676 cat >> confdefs.h <<EOF
12677 #define $ac_tr_func 1
12680 else
12681 echo "$ac_t""no" 1>&6
12683 done
12685 else
12687 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
12688 echo "configure:12689: checking for _logl declaration" >&5
12689 if test x${glibcpp_cv_func__logl_use+set} != xset; then
12690 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
12691 echo $ac_n "(cached) $ac_c" 1>&6
12692 else
12695 ac_ext=C
12696 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12697 ac_cpp='$CXXCPP $CPPFLAGS'
12698 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12699 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12700 cross_compiling=$ac_cv_prog_cxx_cross
12702 cat > conftest.$ac_ext <<EOF
12703 #line 12704 "configure"
12704 #include "confdefs.h"
12705 #include <math.h>
12706 #ifdef HAVE_IEEEFP_H
12707 #include <ieeefp.h>
12708 #endif
12710 int main() {
12711 _logl(0);
12712 ; return 0; }
12714 if { (eval echo configure:12715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12715 rm -rf conftest*
12716 glibcpp_cv_func__logl_use=yes
12717 else
12718 echo "configure: failed program was:" >&5
12719 cat conftest.$ac_ext >&5
12720 rm -rf conftest*
12721 glibcpp_cv_func__logl_use=no
12723 rm -f conftest*
12724 ac_ext=c
12725 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12726 ac_cpp='$CPP $CPPFLAGS'
12727 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12728 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12729 cross_compiling=$ac_cv_prog_cc_cross
12735 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
12737 if test x$glibcpp_cv_func__logl_use = x"yes"; then
12738 for ac_func in _logl
12740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12741 echo "configure:12742: checking for $ac_func" >&5
12742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12743 echo $ac_n "(cached) $ac_c" 1>&6
12744 else
12745 cat > conftest.$ac_ext <<EOF
12746 #line 12747 "configure"
12747 #include "confdefs.h"
12748 /* System header to define __stub macros and hopefully few prototypes,
12749 which can conflict with char $ac_func(); below. */
12750 #include <assert.h>
12751 /* Override any gcc2 internal prototype to avoid an error. */
12752 /* We use char because int might match the return type of a gcc2
12753 builtin and then its argument prototype would still apply. */
12754 char $ac_func();
12756 int main() {
12758 /* The GNU C library defines this for functions which it implements
12759 to always fail with ENOSYS. Some functions are actually named
12760 something starting with __ and the normal name is an alias. */
12761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12762 choke me
12763 #else
12764 $ac_func();
12765 #endif
12767 ; return 0; }
12769 if { (eval echo configure:12770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12770 rm -rf conftest*
12771 eval "ac_cv_func_$ac_func=yes"
12772 else
12773 echo "configure: failed program was:" >&5
12774 cat conftest.$ac_ext >&5
12775 rm -rf conftest*
12776 eval "ac_cv_func_$ac_func=no"
12778 rm -f conftest*
12781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12782 echo "$ac_t""yes" 1>&6
12783 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12784 cat >> confdefs.h <<EOF
12785 #define $ac_tr_func 1
12788 else
12789 echo "$ac_t""no" 1>&6
12791 done
12798 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
12799 echo "configure:12800: checking for log10l declaration" >&5
12800 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
12801 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
12802 echo $ac_n "(cached) $ac_c" 1>&6
12803 else
12806 ac_ext=C
12807 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12808 ac_cpp='$CXXCPP $CPPFLAGS'
12809 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12810 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12811 cross_compiling=$ac_cv_prog_cxx_cross
12813 cat > conftest.$ac_ext <<EOF
12814 #line 12815 "configure"
12815 #include "confdefs.h"
12816 #include <math.h>
12817 #ifdef HAVE_IEEEFP_H
12818 #include <ieeefp.h>
12819 #endif
12821 int main() {
12822 log10l(0);
12823 ; return 0; }
12825 if { (eval echo configure:12826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12826 rm -rf conftest*
12827 glibcpp_cv_func_log10l_use=yes
12828 else
12829 echo "configure: failed program was:" >&5
12830 cat conftest.$ac_ext >&5
12831 rm -rf conftest*
12832 glibcpp_cv_func_log10l_use=no
12834 rm -f conftest*
12835 ac_ext=c
12836 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12837 ac_cpp='$CPP $CPPFLAGS'
12838 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12839 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12840 cross_compiling=$ac_cv_prog_cc_cross
12846 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
12848 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
12849 for ac_func in log10l
12851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12852 echo "configure:12853: checking for $ac_func" >&5
12853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12854 echo $ac_n "(cached) $ac_c" 1>&6
12855 else
12856 cat > conftest.$ac_ext <<EOF
12857 #line 12858 "configure"
12858 #include "confdefs.h"
12859 /* System header to define __stub macros and hopefully few prototypes,
12860 which can conflict with char $ac_func(); below. */
12861 #include <assert.h>
12862 /* Override any gcc2 internal prototype to avoid an error. */
12863 /* We use char because int might match the return type of a gcc2
12864 builtin and then its argument prototype would still apply. */
12865 char $ac_func();
12867 int main() {
12869 /* The GNU C library defines this for functions which it implements
12870 to always fail with ENOSYS. Some functions are actually named
12871 something starting with __ and the normal name is an alias. */
12872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12873 choke me
12874 #else
12875 $ac_func();
12876 #endif
12878 ; return 0; }
12880 if { (eval echo configure:12881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12881 rm -rf conftest*
12882 eval "ac_cv_func_$ac_func=yes"
12883 else
12884 echo "configure: failed program was:" >&5
12885 cat conftest.$ac_ext >&5
12886 rm -rf conftest*
12887 eval "ac_cv_func_$ac_func=no"
12889 rm -f conftest*
12892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12893 echo "$ac_t""yes" 1>&6
12894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12895 cat >> confdefs.h <<EOF
12896 #define $ac_tr_func 1
12899 else
12900 echo "$ac_t""no" 1>&6
12902 done
12904 else
12906 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
12907 echo "configure:12908: checking for _log10l declaration" >&5
12908 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
12909 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
12910 echo $ac_n "(cached) $ac_c" 1>&6
12911 else
12914 ac_ext=C
12915 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12916 ac_cpp='$CXXCPP $CPPFLAGS'
12917 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12918 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12919 cross_compiling=$ac_cv_prog_cxx_cross
12921 cat > conftest.$ac_ext <<EOF
12922 #line 12923 "configure"
12923 #include "confdefs.h"
12924 #include <math.h>
12925 #ifdef HAVE_IEEEFP_H
12926 #include <ieeefp.h>
12927 #endif
12929 int main() {
12930 _log10l(0);
12931 ; return 0; }
12933 if { (eval echo configure:12934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12934 rm -rf conftest*
12935 glibcpp_cv_func__log10l_use=yes
12936 else
12937 echo "configure: failed program was:" >&5
12938 cat conftest.$ac_ext >&5
12939 rm -rf conftest*
12940 glibcpp_cv_func__log10l_use=no
12942 rm -f conftest*
12943 ac_ext=c
12944 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12945 ac_cpp='$CPP $CPPFLAGS'
12946 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12947 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12948 cross_compiling=$ac_cv_prog_cc_cross
12954 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
12956 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
12957 for ac_func in _log10l
12959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12960 echo "configure:12961: checking for $ac_func" >&5
12961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12962 echo $ac_n "(cached) $ac_c" 1>&6
12963 else
12964 cat > conftest.$ac_ext <<EOF
12965 #line 12966 "configure"
12966 #include "confdefs.h"
12967 /* System header to define __stub macros and hopefully few prototypes,
12968 which can conflict with char $ac_func(); below. */
12969 #include <assert.h>
12970 /* Override any gcc2 internal prototype to avoid an error. */
12971 /* We use char because int might match the return type of a gcc2
12972 builtin and then its argument prototype would still apply. */
12973 char $ac_func();
12975 int main() {
12977 /* The GNU C library defines this for functions which it implements
12978 to always fail with ENOSYS. Some functions are actually named
12979 something starting with __ and the normal name is an alias. */
12980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12981 choke me
12982 #else
12983 $ac_func();
12984 #endif
12986 ; return 0; }
12988 if { (eval echo configure:12989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12989 rm -rf conftest*
12990 eval "ac_cv_func_$ac_func=yes"
12991 else
12992 echo "configure: failed program was:" >&5
12993 cat conftest.$ac_ext >&5
12994 rm -rf conftest*
12995 eval "ac_cv_func_$ac_func=no"
12997 rm -f conftest*
13000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13001 echo "$ac_t""yes" 1>&6
13002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13003 cat >> confdefs.h <<EOF
13004 #define $ac_tr_func 1
13007 else
13008 echo "$ac_t""no" 1>&6
13010 done
13017 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
13018 echo "configure:13019: checking for modfl declaration" >&5
13019 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
13020 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
13021 echo $ac_n "(cached) $ac_c" 1>&6
13022 else
13025 ac_ext=C
13026 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13027 ac_cpp='$CXXCPP $CPPFLAGS'
13028 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13029 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13030 cross_compiling=$ac_cv_prog_cxx_cross
13032 cat > conftest.$ac_ext <<EOF
13033 #line 13034 "configure"
13034 #include "confdefs.h"
13035 #include <math.h>
13036 int main() {
13037 modfl(0, 0);
13038 ; return 0; }
13040 if { (eval echo configure:13041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13041 rm -rf conftest*
13042 glibcpp_cv_func_modfl_use=yes
13043 else
13044 echo "configure: failed program was:" >&5
13045 cat conftest.$ac_ext >&5
13046 rm -rf conftest*
13047 glibcpp_cv_func_modfl_use=no
13049 rm -f conftest*
13050 ac_ext=c
13051 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13052 ac_cpp='$CPP $CPPFLAGS'
13053 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13054 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13055 cross_compiling=$ac_cv_prog_cc_cross
13061 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
13063 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
13064 for ac_func in modfl
13066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13067 echo "configure:13068: checking for $ac_func" >&5
13068 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13069 echo $ac_n "(cached) $ac_c" 1>&6
13070 else
13071 cat > conftest.$ac_ext <<EOF
13072 #line 13073 "configure"
13073 #include "confdefs.h"
13074 /* System header to define __stub macros and hopefully few prototypes,
13075 which can conflict with char $ac_func(); below. */
13076 #include <assert.h>
13077 /* Override any gcc2 internal prototype to avoid an error. */
13078 /* We use char because int might match the return type of a gcc2
13079 builtin and then its argument prototype would still apply. */
13080 char $ac_func();
13082 int main() {
13084 /* The GNU C library defines this for functions which it implements
13085 to always fail with ENOSYS. Some functions are actually named
13086 something starting with __ and the normal name is an alias. */
13087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13088 choke me
13089 #else
13090 $ac_func();
13091 #endif
13093 ; return 0; }
13095 if { (eval echo configure:13096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13096 rm -rf conftest*
13097 eval "ac_cv_func_$ac_func=yes"
13098 else
13099 echo "configure: failed program was:" >&5
13100 cat conftest.$ac_ext >&5
13101 rm -rf conftest*
13102 eval "ac_cv_func_$ac_func=no"
13104 rm -f conftest*
13107 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13108 echo "$ac_t""yes" 1>&6
13109 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13110 cat >> confdefs.h <<EOF
13111 #define $ac_tr_func 1
13114 else
13115 echo "$ac_t""no" 1>&6
13117 done
13119 else
13121 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
13122 echo "configure:13123: checking for _modfl declaration" >&5
13123 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
13124 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
13125 echo $ac_n "(cached) $ac_c" 1>&6
13126 else
13129 ac_ext=C
13130 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13131 ac_cpp='$CXXCPP $CPPFLAGS'
13132 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13133 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13134 cross_compiling=$ac_cv_prog_cxx_cross
13136 cat > conftest.$ac_ext <<EOF
13137 #line 13138 "configure"
13138 #include "confdefs.h"
13139 #include <math.h>
13140 int main() {
13141 _modfl(0, 0);
13142 ; return 0; }
13144 if { (eval echo configure:13145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13145 rm -rf conftest*
13146 glibcpp_cv_func__modfl_use=yes
13147 else
13148 echo "configure: failed program was:" >&5
13149 cat conftest.$ac_ext >&5
13150 rm -rf conftest*
13151 glibcpp_cv_func__modfl_use=no
13153 rm -f conftest*
13154 ac_ext=c
13155 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13156 ac_cpp='$CPP $CPPFLAGS'
13157 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13158 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13159 cross_compiling=$ac_cv_prog_cc_cross
13165 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
13167 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
13168 for ac_func in _modfl
13170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13171 echo "configure:13172: checking for $ac_func" >&5
13172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13173 echo $ac_n "(cached) $ac_c" 1>&6
13174 else
13175 cat > conftest.$ac_ext <<EOF
13176 #line 13177 "configure"
13177 #include "confdefs.h"
13178 /* System header to define __stub macros and hopefully few prototypes,
13179 which can conflict with char $ac_func(); below. */
13180 #include <assert.h>
13181 /* Override any gcc2 internal prototype to avoid an error. */
13182 /* We use char because int might match the return type of a gcc2
13183 builtin and then its argument prototype would still apply. */
13184 char $ac_func();
13186 int main() {
13188 /* The GNU C library defines this for functions which it implements
13189 to always fail with ENOSYS. Some functions are actually named
13190 something starting with __ and the normal name is an alias. */
13191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13192 choke me
13193 #else
13194 $ac_func();
13195 #endif
13197 ; return 0; }
13199 if { (eval echo configure:13200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13200 rm -rf conftest*
13201 eval "ac_cv_func_$ac_func=yes"
13202 else
13203 echo "configure: failed program was:" >&5
13204 cat conftest.$ac_ext >&5
13205 rm -rf conftest*
13206 eval "ac_cv_func_$ac_func=no"
13208 rm -f conftest*
13211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13212 echo "$ac_t""yes" 1>&6
13213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13214 cat >> confdefs.h <<EOF
13215 #define $ac_tr_func 1
13218 else
13219 echo "$ac_t""no" 1>&6
13221 done
13228 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
13229 echo "configure:13230: checking for powl declaration" >&5
13230 if test x${glibcpp_cv_func_powl_use+set} != xset; then
13231 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
13232 echo $ac_n "(cached) $ac_c" 1>&6
13233 else
13236 ac_ext=C
13237 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13238 ac_cpp='$CXXCPP $CPPFLAGS'
13239 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13240 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13241 cross_compiling=$ac_cv_prog_cxx_cross
13243 cat > conftest.$ac_ext <<EOF
13244 #line 13245 "configure"
13245 #include "confdefs.h"
13246 #include <math.h>
13247 int main() {
13248 powl(0, 0);
13249 ; return 0; }
13251 if { (eval echo configure:13252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13252 rm -rf conftest*
13253 glibcpp_cv_func_powl_use=yes
13254 else
13255 echo "configure: failed program was:" >&5
13256 cat conftest.$ac_ext >&5
13257 rm -rf conftest*
13258 glibcpp_cv_func_powl_use=no
13260 rm -f conftest*
13261 ac_ext=c
13262 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13263 ac_cpp='$CPP $CPPFLAGS'
13264 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13265 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13266 cross_compiling=$ac_cv_prog_cc_cross
13272 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
13274 if test x$glibcpp_cv_func_powl_use = x"yes"; then
13275 for ac_func in powl
13277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13278 echo "configure:13279: checking for $ac_func" >&5
13279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13280 echo $ac_n "(cached) $ac_c" 1>&6
13281 else
13282 cat > conftest.$ac_ext <<EOF
13283 #line 13284 "configure"
13284 #include "confdefs.h"
13285 /* System header to define __stub macros and hopefully few prototypes,
13286 which can conflict with char $ac_func(); below. */
13287 #include <assert.h>
13288 /* Override any gcc2 internal prototype to avoid an error. */
13289 /* We use char because int might match the return type of a gcc2
13290 builtin and then its argument prototype would still apply. */
13291 char $ac_func();
13293 int main() {
13295 /* The GNU C library defines this for functions which it implements
13296 to always fail with ENOSYS. Some functions are actually named
13297 something starting with __ and the normal name is an alias. */
13298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13299 choke me
13300 #else
13301 $ac_func();
13302 #endif
13304 ; return 0; }
13306 if { (eval echo configure:13307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13307 rm -rf conftest*
13308 eval "ac_cv_func_$ac_func=yes"
13309 else
13310 echo "configure: failed program was:" >&5
13311 cat conftest.$ac_ext >&5
13312 rm -rf conftest*
13313 eval "ac_cv_func_$ac_func=no"
13315 rm -f conftest*
13318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13319 echo "$ac_t""yes" 1>&6
13320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13321 cat >> confdefs.h <<EOF
13322 #define $ac_tr_func 1
13325 else
13326 echo "$ac_t""no" 1>&6
13328 done
13330 else
13332 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
13333 echo "configure:13334: checking for _powl declaration" >&5
13334 if test x${glibcpp_cv_func__powl_use+set} != xset; then
13335 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
13336 echo $ac_n "(cached) $ac_c" 1>&6
13337 else
13340 ac_ext=C
13341 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13342 ac_cpp='$CXXCPP $CPPFLAGS'
13343 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13344 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13345 cross_compiling=$ac_cv_prog_cxx_cross
13347 cat > conftest.$ac_ext <<EOF
13348 #line 13349 "configure"
13349 #include "confdefs.h"
13350 #include <math.h>
13351 int main() {
13352 _powl(0, 0);
13353 ; return 0; }
13355 if { (eval echo configure:13356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13356 rm -rf conftest*
13357 glibcpp_cv_func__powl_use=yes
13358 else
13359 echo "configure: failed program was:" >&5
13360 cat conftest.$ac_ext >&5
13361 rm -rf conftest*
13362 glibcpp_cv_func__powl_use=no
13364 rm -f conftest*
13365 ac_ext=c
13366 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13367 ac_cpp='$CPP $CPPFLAGS'
13368 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13369 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13370 cross_compiling=$ac_cv_prog_cc_cross
13376 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
13378 if test x$glibcpp_cv_func__powl_use = x"yes"; then
13379 for ac_func in _powl
13381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13382 echo "configure:13383: checking for $ac_func" >&5
13383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13384 echo $ac_n "(cached) $ac_c" 1>&6
13385 else
13386 cat > conftest.$ac_ext <<EOF
13387 #line 13388 "configure"
13388 #include "confdefs.h"
13389 /* System header to define __stub macros and hopefully few prototypes,
13390 which can conflict with char $ac_func(); below. */
13391 #include <assert.h>
13392 /* Override any gcc2 internal prototype to avoid an error. */
13393 /* We use char because int might match the return type of a gcc2
13394 builtin and then its argument prototype would still apply. */
13395 char $ac_func();
13397 int main() {
13399 /* The GNU C library defines this for functions which it implements
13400 to always fail with ENOSYS. Some functions are actually named
13401 something starting with __ and the normal name is an alias. */
13402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13403 choke me
13404 #else
13405 $ac_func();
13406 #endif
13408 ; return 0; }
13410 if { (eval echo configure:13411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13411 rm -rf conftest*
13412 eval "ac_cv_func_$ac_func=yes"
13413 else
13414 echo "configure: failed program was:" >&5
13415 cat conftest.$ac_ext >&5
13416 rm -rf conftest*
13417 eval "ac_cv_func_$ac_func=no"
13419 rm -f conftest*
13422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13423 echo "$ac_t""yes" 1>&6
13424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13425 cat >> confdefs.h <<EOF
13426 #define $ac_tr_func 1
13429 else
13430 echo "$ac_t""no" 1>&6
13432 done
13439 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
13440 echo "configure:13441: checking for sqrtl declaration" >&5
13441 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
13442 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
13443 echo $ac_n "(cached) $ac_c" 1>&6
13444 else
13447 ac_ext=C
13448 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13449 ac_cpp='$CXXCPP $CPPFLAGS'
13450 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13451 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13452 cross_compiling=$ac_cv_prog_cxx_cross
13454 cat > conftest.$ac_ext <<EOF
13455 #line 13456 "configure"
13456 #include "confdefs.h"
13457 #include <math.h>
13458 #ifdef HAVE_IEEEFP_H
13459 #include <ieeefp.h>
13460 #endif
13462 int main() {
13463 sqrtl(0);
13464 ; return 0; }
13466 if { (eval echo configure:13467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13467 rm -rf conftest*
13468 glibcpp_cv_func_sqrtl_use=yes
13469 else
13470 echo "configure: failed program was:" >&5
13471 cat conftest.$ac_ext >&5
13472 rm -rf conftest*
13473 glibcpp_cv_func_sqrtl_use=no
13475 rm -f conftest*
13476 ac_ext=c
13477 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13478 ac_cpp='$CPP $CPPFLAGS'
13479 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13480 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13481 cross_compiling=$ac_cv_prog_cc_cross
13487 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
13489 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
13490 for ac_func in sqrtl
13492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13493 echo "configure:13494: checking for $ac_func" >&5
13494 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13495 echo $ac_n "(cached) $ac_c" 1>&6
13496 else
13497 cat > conftest.$ac_ext <<EOF
13498 #line 13499 "configure"
13499 #include "confdefs.h"
13500 /* System header to define __stub macros and hopefully few prototypes,
13501 which can conflict with char $ac_func(); below. */
13502 #include <assert.h>
13503 /* Override any gcc2 internal prototype to avoid an error. */
13504 /* We use char because int might match the return type of a gcc2
13505 builtin and then its argument prototype would still apply. */
13506 char $ac_func();
13508 int main() {
13510 /* The GNU C library defines this for functions which it implements
13511 to always fail with ENOSYS. Some functions are actually named
13512 something starting with __ and the normal name is an alias. */
13513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13514 choke me
13515 #else
13516 $ac_func();
13517 #endif
13519 ; return 0; }
13521 if { (eval echo configure:13522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13522 rm -rf conftest*
13523 eval "ac_cv_func_$ac_func=yes"
13524 else
13525 echo "configure: failed program was:" >&5
13526 cat conftest.$ac_ext >&5
13527 rm -rf conftest*
13528 eval "ac_cv_func_$ac_func=no"
13530 rm -f conftest*
13533 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13534 echo "$ac_t""yes" 1>&6
13535 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13536 cat >> confdefs.h <<EOF
13537 #define $ac_tr_func 1
13540 else
13541 echo "$ac_t""no" 1>&6
13543 done
13545 else
13547 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
13548 echo "configure:13549: checking for _sqrtl declaration" >&5
13549 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
13550 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
13551 echo $ac_n "(cached) $ac_c" 1>&6
13552 else
13555 ac_ext=C
13556 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13557 ac_cpp='$CXXCPP $CPPFLAGS'
13558 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13559 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13560 cross_compiling=$ac_cv_prog_cxx_cross
13562 cat > conftest.$ac_ext <<EOF
13563 #line 13564 "configure"
13564 #include "confdefs.h"
13565 #include <math.h>
13566 #ifdef HAVE_IEEEFP_H
13567 #include <ieeefp.h>
13568 #endif
13570 int main() {
13571 _sqrtl(0);
13572 ; return 0; }
13574 if { (eval echo configure:13575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13575 rm -rf conftest*
13576 glibcpp_cv_func__sqrtl_use=yes
13577 else
13578 echo "configure: failed program was:" >&5
13579 cat conftest.$ac_ext >&5
13580 rm -rf conftest*
13581 glibcpp_cv_func__sqrtl_use=no
13583 rm -f conftest*
13584 ac_ext=c
13585 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13586 ac_cpp='$CPP $CPPFLAGS'
13587 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13588 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13589 cross_compiling=$ac_cv_prog_cc_cross
13595 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
13597 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
13598 for ac_func in _sqrtl
13600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13601 echo "configure:13602: checking for $ac_func" >&5
13602 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13603 echo $ac_n "(cached) $ac_c" 1>&6
13604 else
13605 cat > conftest.$ac_ext <<EOF
13606 #line 13607 "configure"
13607 #include "confdefs.h"
13608 /* System header to define __stub macros and hopefully few prototypes,
13609 which can conflict with char $ac_func(); below. */
13610 #include <assert.h>
13611 /* Override any gcc2 internal prototype to avoid an error. */
13612 /* We use char because int might match the return type of a gcc2
13613 builtin and then its argument prototype would still apply. */
13614 char $ac_func();
13616 int main() {
13618 /* The GNU C library defines this for functions which it implements
13619 to always fail with ENOSYS. Some functions are actually named
13620 something starting with __ and the normal name is an alias. */
13621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13622 choke me
13623 #else
13624 $ac_func();
13625 #endif
13627 ; return 0; }
13629 if { (eval echo configure:13630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13630 rm -rf conftest*
13631 eval "ac_cv_func_$ac_func=yes"
13632 else
13633 echo "configure: failed program was:" >&5
13634 cat conftest.$ac_ext >&5
13635 rm -rf conftest*
13636 eval "ac_cv_func_$ac_func=no"
13638 rm -f conftest*
13641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13642 echo "$ac_t""yes" 1>&6
13643 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13644 cat >> confdefs.h <<EOF
13645 #define $ac_tr_func 1
13648 else
13649 echo "$ac_t""no" 1>&6
13651 done
13658 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
13659 echo "configure:13660: checking for sincosl declaration" >&5
13660 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
13661 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
13662 echo $ac_n "(cached) $ac_c" 1>&6
13663 else
13666 ac_ext=C
13667 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13668 ac_cpp='$CXXCPP $CPPFLAGS'
13669 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13670 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13671 cross_compiling=$ac_cv_prog_cxx_cross
13673 cat > conftest.$ac_ext <<EOF
13674 #line 13675 "configure"
13675 #include "confdefs.h"
13676 #include <math.h>
13677 int main() {
13678 sincosl(0, 0, 0);
13679 ; return 0; }
13681 if { (eval echo configure:13682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13682 rm -rf conftest*
13683 glibcpp_cv_func_sincosl_use=yes
13684 else
13685 echo "configure: failed program was:" >&5
13686 cat conftest.$ac_ext >&5
13687 rm -rf conftest*
13688 glibcpp_cv_func_sincosl_use=no
13690 rm -f conftest*
13691 ac_ext=c
13692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13693 ac_cpp='$CPP $CPPFLAGS'
13694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13695 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13696 cross_compiling=$ac_cv_prog_cc_cross
13702 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
13704 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
13705 for ac_func in sincosl
13707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13708 echo "configure:13709: checking for $ac_func" >&5
13709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13710 echo $ac_n "(cached) $ac_c" 1>&6
13711 else
13712 cat > conftest.$ac_ext <<EOF
13713 #line 13714 "configure"
13714 #include "confdefs.h"
13715 /* System header to define __stub macros and hopefully few prototypes,
13716 which can conflict with char $ac_func(); below. */
13717 #include <assert.h>
13718 /* Override any gcc2 internal prototype to avoid an error. */
13719 /* We use char because int might match the return type of a gcc2
13720 builtin and then its argument prototype would still apply. */
13721 char $ac_func();
13723 int main() {
13725 /* The GNU C library defines this for functions which it implements
13726 to always fail with ENOSYS. Some functions are actually named
13727 something starting with __ and the normal name is an alias. */
13728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13729 choke me
13730 #else
13731 $ac_func();
13732 #endif
13734 ; return 0; }
13736 if { (eval echo configure:13737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13737 rm -rf conftest*
13738 eval "ac_cv_func_$ac_func=yes"
13739 else
13740 echo "configure: failed program was:" >&5
13741 cat conftest.$ac_ext >&5
13742 rm -rf conftest*
13743 eval "ac_cv_func_$ac_func=no"
13745 rm -f conftest*
13748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13749 echo "$ac_t""yes" 1>&6
13750 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13751 cat >> confdefs.h <<EOF
13752 #define $ac_tr_func 1
13755 else
13756 echo "$ac_t""no" 1>&6
13758 done
13760 else
13762 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
13763 echo "configure:13764: checking for _sincosl declaration" >&5
13764 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
13765 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
13766 echo $ac_n "(cached) $ac_c" 1>&6
13767 else
13770 ac_ext=C
13771 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13772 ac_cpp='$CXXCPP $CPPFLAGS'
13773 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13774 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13775 cross_compiling=$ac_cv_prog_cxx_cross
13777 cat > conftest.$ac_ext <<EOF
13778 #line 13779 "configure"
13779 #include "confdefs.h"
13780 #include <math.h>
13781 int main() {
13782 _sincosl(0, 0, 0);
13783 ; return 0; }
13785 if { (eval echo configure:13786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13786 rm -rf conftest*
13787 glibcpp_cv_func__sincosl_use=yes
13788 else
13789 echo "configure: failed program was:" >&5
13790 cat conftest.$ac_ext >&5
13791 rm -rf conftest*
13792 glibcpp_cv_func__sincosl_use=no
13794 rm -f conftest*
13795 ac_ext=c
13796 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13797 ac_cpp='$CPP $CPPFLAGS'
13798 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13799 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13800 cross_compiling=$ac_cv_prog_cc_cross
13806 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
13808 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
13809 for ac_func in _sincosl
13811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13812 echo "configure:13813: checking for $ac_func" >&5
13813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13814 echo $ac_n "(cached) $ac_c" 1>&6
13815 else
13816 cat > conftest.$ac_ext <<EOF
13817 #line 13818 "configure"
13818 #include "confdefs.h"
13819 /* System header to define __stub macros and hopefully few prototypes,
13820 which can conflict with char $ac_func(); below. */
13821 #include <assert.h>
13822 /* Override any gcc2 internal prototype to avoid an error. */
13823 /* We use char because int might match the return type of a gcc2
13824 builtin and then its argument prototype would still apply. */
13825 char $ac_func();
13827 int main() {
13829 /* The GNU C library defines this for functions which it implements
13830 to always fail with ENOSYS. Some functions are actually named
13831 something starting with __ and the normal name is an alias. */
13832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13833 choke me
13834 #else
13835 $ac_func();
13836 #endif
13838 ; return 0; }
13840 if { (eval echo configure:13841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13841 rm -rf conftest*
13842 eval "ac_cv_func_$ac_func=yes"
13843 else
13844 echo "configure: failed program was:" >&5
13845 cat conftest.$ac_ext >&5
13846 rm -rf conftest*
13847 eval "ac_cv_func_$ac_func=no"
13849 rm -f conftest*
13852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13853 echo "$ac_t""yes" 1>&6
13854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13855 cat >> confdefs.h <<EOF
13856 #define $ac_tr_func 1
13859 else
13860 echo "$ac_t""no" 1>&6
13862 done
13869 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
13870 echo "configure:13871: checking for finitel declaration" >&5
13871 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
13872 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
13873 echo $ac_n "(cached) $ac_c" 1>&6
13874 else
13877 ac_ext=C
13878 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13879 ac_cpp='$CXXCPP $CPPFLAGS'
13880 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13881 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13882 cross_compiling=$ac_cv_prog_cxx_cross
13884 cat > conftest.$ac_ext <<EOF
13885 #line 13886 "configure"
13886 #include "confdefs.h"
13887 #include <math.h>
13888 #ifdef HAVE_IEEEFP_H
13889 #include <ieeefp.h>
13890 #endif
13892 int main() {
13893 finitel(0);
13894 ; return 0; }
13896 if { (eval echo configure:13897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13897 rm -rf conftest*
13898 glibcpp_cv_func_finitel_use=yes
13899 else
13900 echo "configure: failed program was:" >&5
13901 cat conftest.$ac_ext >&5
13902 rm -rf conftest*
13903 glibcpp_cv_func_finitel_use=no
13905 rm -f conftest*
13906 ac_ext=c
13907 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13908 ac_cpp='$CPP $CPPFLAGS'
13909 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13910 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13911 cross_compiling=$ac_cv_prog_cc_cross
13917 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
13919 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
13920 for ac_func in finitel
13922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13923 echo "configure:13924: checking for $ac_func" >&5
13924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13925 echo $ac_n "(cached) $ac_c" 1>&6
13926 else
13927 cat > conftest.$ac_ext <<EOF
13928 #line 13929 "configure"
13929 #include "confdefs.h"
13930 /* System header to define __stub macros and hopefully few prototypes,
13931 which can conflict with char $ac_func(); below. */
13932 #include <assert.h>
13933 /* Override any gcc2 internal prototype to avoid an error. */
13934 /* We use char because int might match the return type of a gcc2
13935 builtin and then its argument prototype would still apply. */
13936 char $ac_func();
13938 int main() {
13940 /* The GNU C library defines this for functions which it implements
13941 to always fail with ENOSYS. Some functions are actually named
13942 something starting with __ and the normal name is an alias. */
13943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13944 choke me
13945 #else
13946 $ac_func();
13947 #endif
13949 ; return 0; }
13951 if { (eval echo configure:13952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13952 rm -rf conftest*
13953 eval "ac_cv_func_$ac_func=yes"
13954 else
13955 echo "configure: failed program was:" >&5
13956 cat conftest.$ac_ext >&5
13957 rm -rf conftest*
13958 eval "ac_cv_func_$ac_func=no"
13960 rm -f conftest*
13963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13964 echo "$ac_t""yes" 1>&6
13965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13966 cat >> confdefs.h <<EOF
13967 #define $ac_tr_func 1
13970 else
13971 echo "$ac_t""no" 1>&6
13973 done
13975 else
13977 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
13978 echo "configure:13979: checking for _finitel declaration" >&5
13979 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
13980 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
13981 echo $ac_n "(cached) $ac_c" 1>&6
13982 else
13985 ac_ext=C
13986 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13987 ac_cpp='$CXXCPP $CPPFLAGS'
13988 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13989 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13990 cross_compiling=$ac_cv_prog_cxx_cross
13992 cat > conftest.$ac_ext <<EOF
13993 #line 13994 "configure"
13994 #include "confdefs.h"
13995 #include <math.h>
13996 #ifdef HAVE_IEEEFP_H
13997 #include <ieeefp.h>
13998 #endif
14000 int main() {
14001 _finitel(0);
14002 ; return 0; }
14004 if { (eval echo configure:14005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14005 rm -rf conftest*
14006 glibcpp_cv_func__finitel_use=yes
14007 else
14008 echo "configure: failed program was:" >&5
14009 cat conftest.$ac_ext >&5
14010 rm -rf conftest*
14011 glibcpp_cv_func__finitel_use=no
14013 rm -f conftest*
14014 ac_ext=c
14015 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14016 ac_cpp='$CPP $CPPFLAGS'
14017 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14018 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14019 cross_compiling=$ac_cv_prog_cc_cross
14025 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
14027 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
14028 for ac_func in _finitel
14030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14031 echo "configure:14032: checking for $ac_func" >&5
14032 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14033 echo $ac_n "(cached) $ac_c" 1>&6
14034 else
14035 cat > conftest.$ac_ext <<EOF
14036 #line 14037 "configure"
14037 #include "confdefs.h"
14038 /* System header to define __stub macros and hopefully few prototypes,
14039 which can conflict with char $ac_func(); below. */
14040 #include <assert.h>
14041 /* Override any gcc2 internal prototype to avoid an error. */
14042 /* We use char because int might match the return type of a gcc2
14043 builtin and then its argument prototype would still apply. */
14044 char $ac_func();
14046 int main() {
14048 /* The GNU C library defines this for functions which it implements
14049 to always fail with ENOSYS. Some functions are actually named
14050 something starting with __ and the normal name is an alias. */
14051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14052 choke me
14053 #else
14054 $ac_func();
14055 #endif
14057 ; return 0; }
14059 if { (eval echo configure:14060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14060 rm -rf conftest*
14061 eval "ac_cv_func_$ac_func=yes"
14062 else
14063 echo "configure: failed program was:" >&5
14064 cat conftest.$ac_ext >&5
14065 rm -rf conftest*
14066 eval "ac_cv_func_$ac_func=no"
14068 rm -f conftest*
14071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14072 echo "$ac_t""yes" 1>&6
14073 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14074 cat >> confdefs.h <<EOF
14075 #define $ac_tr_func 1
14078 else
14079 echo "$ac_t""no" 1>&6
14081 done
14089 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
14090 echo "configure:14091: checking for _float trig functions" >&5
14091 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
14092 echo $ac_n "(cached) $ac_c" 1>&6
14093 else
14096 ac_ext=C
14097 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14098 ac_cpp='$CXXCPP $CPPFLAGS'
14099 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14100 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14101 cross_compiling=$ac_cv_prog_cxx_cross
14103 cat > conftest.$ac_ext <<EOF
14104 #line 14105 "configure"
14105 #include "confdefs.h"
14106 #include <math.h>
14107 int main() {
14108 `for x in _acosf _asinf _atanf \
14109 _cosf _sinf _tanf \
14110 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
14111 ; return 0; }
14113 if { (eval echo configure:14114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14114 rm -rf conftest*
14115 glibcpp_cv_func__float_trig_use=yes
14116 else
14117 echo "configure: failed program was:" >&5
14118 cat conftest.$ac_ext >&5
14119 rm -rf conftest*
14120 glibcpp_cv_func__float_trig_use=no
14122 rm -f conftest*
14123 ac_ext=c
14124 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14125 ac_cpp='$CPP $CPPFLAGS'
14126 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14127 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14128 cross_compiling=$ac_cv_prog_cc_cross
14132 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
14133 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
14134 for ac_func in _acosf _asinf _atanf \
14135 _cosf _sinf _tanf \
14136 _coshf _sinhf _tanhf
14138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14139 echo "configure:14140: checking for $ac_func" >&5
14140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14141 echo $ac_n "(cached) $ac_c" 1>&6
14142 else
14143 cat > conftest.$ac_ext <<EOF
14144 #line 14145 "configure"
14145 #include "confdefs.h"
14146 /* System header to define __stub macros and hopefully few prototypes,
14147 which can conflict with char $ac_func(); below. */
14148 #include <assert.h>
14149 /* Override any gcc2 internal prototype to avoid an error. */
14150 /* We use char because int might match the return type of a gcc2
14151 builtin and then its argument prototype would still apply. */
14152 char $ac_func();
14154 int main() {
14156 /* The GNU C library defines this for functions which it implements
14157 to always fail with ENOSYS. Some functions are actually named
14158 something starting with __ and the normal name is an alias. */
14159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14160 choke me
14161 #else
14162 $ac_func();
14163 #endif
14165 ; return 0; }
14167 if { (eval echo configure:14168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14168 rm -rf conftest*
14169 eval "ac_cv_func_$ac_func=yes"
14170 else
14171 echo "configure: failed program was:" >&5
14172 cat conftest.$ac_ext >&5
14173 rm -rf conftest*
14174 eval "ac_cv_func_$ac_func=no"
14176 rm -f conftest*
14179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14180 echo "$ac_t""yes" 1>&6
14181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14182 cat >> confdefs.h <<EOF
14183 #define $ac_tr_func 1
14186 else
14187 echo "$ac_t""no" 1>&6
14189 done
14194 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
14195 echo "configure:14196: checking for _float round functions" >&5
14196 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
14197 echo $ac_n "(cached) $ac_c" 1>&6
14198 else
14201 ac_ext=C
14202 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14203 ac_cpp='$CXXCPP $CPPFLAGS'
14204 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14205 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14206 cross_compiling=$ac_cv_prog_cxx_cross
14208 cat > conftest.$ac_ext <<EOF
14209 #line 14210 "configure"
14210 #include "confdefs.h"
14211 #include <math.h>
14212 int main() {
14213 `for x in _ceilf _floorf; do echo "$x (0);"; done`
14214 ; return 0; }
14216 if { (eval echo configure:14217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14217 rm -rf conftest*
14218 glibcpp_cv_func__float_round_use=yes
14219 else
14220 echo "configure: failed program was:" >&5
14221 cat conftest.$ac_ext >&5
14222 rm -rf conftest*
14223 glibcpp_cv_func__float_round_use=no
14225 rm -f conftest*
14226 ac_ext=c
14227 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14228 ac_cpp='$CPP $CPPFLAGS'
14229 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14230 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14231 cross_compiling=$ac_cv_prog_cc_cross
14235 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
14236 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
14237 for ac_func in _ceilf _floorf
14239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14240 echo "configure:14241: checking for $ac_func" >&5
14241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14242 echo $ac_n "(cached) $ac_c" 1>&6
14243 else
14244 cat > conftest.$ac_ext <<EOF
14245 #line 14246 "configure"
14246 #include "confdefs.h"
14247 /* System header to define __stub macros and hopefully few prototypes,
14248 which can conflict with char $ac_func(); below. */
14249 #include <assert.h>
14250 /* Override any gcc2 internal prototype to avoid an error. */
14251 /* We use char because int might match the return type of a gcc2
14252 builtin and then its argument prototype would still apply. */
14253 char $ac_func();
14255 int main() {
14257 /* The GNU C library defines this for functions which it implements
14258 to always fail with ENOSYS. Some functions are actually named
14259 something starting with __ and the normal name is an alias. */
14260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14261 choke me
14262 #else
14263 $ac_func();
14264 #endif
14266 ; return 0; }
14268 if { (eval echo configure:14269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14269 rm -rf conftest*
14270 eval "ac_cv_func_$ac_func=yes"
14271 else
14272 echo "configure: failed program was:" >&5
14273 cat conftest.$ac_ext >&5
14274 rm -rf conftest*
14275 eval "ac_cv_func_$ac_func=no"
14277 rm -f conftest*
14280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14281 echo "$ac_t""yes" 1>&6
14282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14283 cat >> confdefs.h <<EOF
14284 #define $ac_tr_func 1
14287 else
14288 echo "$ac_t""no" 1>&6
14290 done
14296 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
14297 echo "configure:14298: checking for _long double trig functions" >&5
14298 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
14299 echo $ac_n "(cached) $ac_c" 1>&6
14300 else
14303 ac_ext=C
14304 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14305 ac_cpp='$CXXCPP $CPPFLAGS'
14306 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14307 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14308 cross_compiling=$ac_cv_prog_cxx_cross
14310 cat > conftest.$ac_ext <<EOF
14311 #line 14312 "configure"
14312 #include "confdefs.h"
14313 #include <math.h>
14314 int main() {
14315 `for x in _acosl _asinl _atanl \
14316 _cosl _sinl _tanl \
14317 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
14318 ; return 0; }
14320 if { (eval echo configure:14321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14321 rm -rf conftest*
14322 glibcpp_cv_func__long_double_trig_use=yes
14323 else
14324 echo "configure: failed program was:" >&5
14325 cat conftest.$ac_ext >&5
14326 rm -rf conftest*
14327 glibcpp_cv_func__long_double_trig_use=no
14329 rm -f conftest*
14330 ac_ext=c
14331 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14332 ac_cpp='$CPP $CPPFLAGS'
14333 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14334 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14335 cross_compiling=$ac_cv_prog_cc_cross
14339 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
14340 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
14341 for ac_func in _acosl _asinl _atanl \
14342 _cosl _sinl _tanl \
14343 _coshl _sinhl _tanhl
14345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14346 echo "configure:14347: checking for $ac_func" >&5
14347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14348 echo $ac_n "(cached) $ac_c" 1>&6
14349 else
14350 cat > conftest.$ac_ext <<EOF
14351 #line 14352 "configure"
14352 #include "confdefs.h"
14353 /* System header to define __stub macros and hopefully few prototypes,
14354 which can conflict with char $ac_func(); below. */
14355 #include <assert.h>
14356 /* Override any gcc2 internal prototype to avoid an error. */
14357 /* We use char because int might match the return type of a gcc2
14358 builtin and then its argument prototype would still apply. */
14359 char $ac_func();
14361 int main() {
14363 /* The GNU C library defines this for functions which it implements
14364 to always fail with ENOSYS. Some functions are actually named
14365 something starting with __ and the normal name is an alias. */
14366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14367 choke me
14368 #else
14369 $ac_func();
14370 #endif
14372 ; return 0; }
14374 if { (eval echo configure:14375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14375 rm -rf conftest*
14376 eval "ac_cv_func_$ac_func=yes"
14377 else
14378 echo "configure: failed program was:" >&5
14379 cat conftest.$ac_ext >&5
14380 rm -rf conftest*
14381 eval "ac_cv_func_$ac_func=no"
14383 rm -f conftest*
14386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14387 echo "$ac_t""yes" 1>&6
14388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14389 cat >> confdefs.h <<EOF
14390 #define $ac_tr_func 1
14393 else
14394 echo "$ac_t""no" 1>&6
14396 done
14401 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
14402 echo "configure:14403: checking for _long double round functions" >&5
14403 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
14404 echo $ac_n "(cached) $ac_c" 1>&6
14405 else
14408 ac_ext=C
14409 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14410 ac_cpp='$CXXCPP $CPPFLAGS'
14411 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14412 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14413 cross_compiling=$ac_cv_prog_cxx_cross
14415 cat > conftest.$ac_ext <<EOF
14416 #line 14417 "configure"
14417 #include "confdefs.h"
14418 #include <math.h>
14419 int main() {
14420 `for x in _ceill _floorl; do echo "$x (0);"; done`
14421 ; return 0; }
14423 if { (eval echo configure:14424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14424 rm -rf conftest*
14425 glibcpp_cv_func__long_double_round_use=yes
14426 else
14427 echo "configure: failed program was:" >&5
14428 cat conftest.$ac_ext >&5
14429 rm -rf conftest*
14430 glibcpp_cv_func__long_double_round_use=no
14432 rm -f conftest*
14433 ac_ext=c
14434 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14435 ac_cpp='$CPP $CPPFLAGS'
14436 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14437 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14438 cross_compiling=$ac_cv_prog_cc_cross
14442 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
14443 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
14444 for ac_func in _ceill _floorl
14446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14447 echo "configure:14448: checking for $ac_func" >&5
14448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14449 echo $ac_n "(cached) $ac_c" 1>&6
14450 else
14451 cat > conftest.$ac_ext <<EOF
14452 #line 14453 "configure"
14453 #include "confdefs.h"
14454 /* System header to define __stub macros and hopefully few prototypes,
14455 which can conflict with char $ac_func(); below. */
14456 #include <assert.h>
14457 /* Override any gcc2 internal prototype to avoid an error. */
14458 /* We use char because int might match the return type of a gcc2
14459 builtin and then its argument prototype would still apply. */
14460 char $ac_func();
14462 int main() {
14464 /* The GNU C library defines this for functions which it implements
14465 to always fail with ENOSYS. Some functions are actually named
14466 something starting with __ and the normal name is an alias. */
14467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14468 choke me
14469 #else
14470 $ac_func();
14471 #endif
14473 ; return 0; }
14475 if { (eval echo configure:14476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14476 rm -rf conftest*
14477 eval "ac_cv_func_$ac_func=yes"
14478 else
14479 echo "configure: failed program was:" >&5
14480 cat conftest.$ac_ext >&5
14481 rm -rf conftest*
14482 eval "ac_cv_func_$ac_func=no"
14484 rm -f conftest*
14487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14488 echo "$ac_t""yes" 1>&6
14489 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14490 cat >> confdefs.h <<EOF
14491 #define $ac_tr_func 1
14494 else
14495 echo "$ac_t""no" 1>&6
14497 done
14502 LIBS="$ac_save_LIBS"
14503 CXXFLAGS="$ac_save_CXXFLAGS"
14506 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
14507 echo "configure:14508: checking for main in -lm" >&5
14508 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
14509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14510 echo $ac_n "(cached) $ac_c" 1>&6
14511 else
14512 ac_save_LIBS="$LIBS"
14513 LIBS="-lm $LIBS"
14514 cat > conftest.$ac_ext <<EOF
14515 #line 14516 "configure"
14516 #include "confdefs.h"
14518 int main() {
14519 main()
14520 ; return 0; }
14522 if { (eval echo configure:14523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14523 rm -rf conftest*
14524 eval "ac_cv_lib_$ac_lib_var=yes"
14525 else
14526 echo "configure: failed program was:" >&5
14527 cat conftest.$ac_ext >&5
14528 rm -rf conftest*
14529 eval "ac_cv_lib_$ac_lib_var=no"
14531 rm -f conftest*
14532 LIBS="$ac_save_LIBS"
14535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14536 echo "$ac_t""yes" 1>&6
14537 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14538 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14539 cat >> confdefs.h <<EOF
14540 #define $ac_tr_lib 1
14543 LIBS="-lm $LIBS"
14545 else
14546 echo "$ac_t""no" 1>&6
14549 for ac_func in nan hypot hypotf atan2f expf copysignf
14551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14552 echo "configure:14553: checking for $ac_func" >&5
14553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14554 echo $ac_n "(cached) $ac_c" 1>&6
14555 else
14556 cat > conftest.$ac_ext <<EOF
14557 #line 14558 "configure"
14558 #include "confdefs.h"
14559 /* System header to define __stub macros and hopefully few prototypes,
14560 which can conflict with char $ac_func(); below. */
14561 #include <assert.h>
14562 /* Override any gcc2 internal prototype to avoid an error. */
14563 /* We use char because int might match the return type of a gcc2
14564 builtin and then its argument prototype would still apply. */
14565 char $ac_func();
14567 int main() {
14569 /* The GNU C library defines this for functions which it implements
14570 to always fail with ENOSYS. Some functions are actually named
14571 something starting with __ and the normal name is an alias. */
14572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14573 choke me
14574 #else
14575 $ac_func();
14576 #endif
14578 ; return 0; }
14580 if { (eval echo configure:14581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14581 rm -rf conftest*
14582 eval "ac_cv_func_$ac_func=yes"
14583 else
14584 echo "configure: failed program was:" >&5
14585 cat conftest.$ac_ext >&5
14586 rm -rf conftest*
14587 eval "ac_cv_func_$ac_func=no"
14589 rm -f conftest*
14592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14593 echo "$ac_t""yes" 1>&6
14594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14595 cat >> confdefs.h <<EOF
14596 #define $ac_tr_func 1
14599 else
14600 echo "$ac_t""no" 1>&6
14601 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
14603 done
14607 USE_COMPLEX_LONG_DOUBLE=no
14608 if test x$ac_cv_func_atan2l = x"yes" \
14609 && test x$ac_cv_func_copysignl = x"yes"; then
14610 USE_COMPLEX_LONG_DOUBLE=yes
14611 for ac_func in hypotl signbitl
14613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14614 echo "configure:14615: checking for $ac_func" >&5
14615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14616 echo $ac_n "(cached) $ac_c" 1>&6
14617 else
14618 cat > conftest.$ac_ext <<EOF
14619 #line 14620 "configure"
14620 #include "confdefs.h"
14621 /* System header to define __stub macros and hopefully few prototypes,
14622 which can conflict with char $ac_func(); below. */
14623 #include <assert.h>
14624 /* Override any gcc2 internal prototype to avoid an error. */
14625 /* We use char because int might match the return type of a gcc2
14626 builtin and then its argument prototype would still apply. */
14627 char $ac_func();
14629 int main() {
14631 /* The GNU C library defines this for functions which it implements
14632 to always fail with ENOSYS. Some functions are actually named
14633 something starting with __ and the normal name is an alias. */
14634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14635 choke me
14636 #else
14637 $ac_func();
14638 #endif
14640 ; return 0; }
14642 if { (eval echo configure:14643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14643 rm -rf conftest*
14644 eval "ac_cv_func_$ac_func=yes"
14645 else
14646 echo "configure: failed program was:" >&5
14647 cat conftest.$ac_ext >&5
14648 rm -rf conftest*
14649 eval "ac_cv_func_$ac_func=no"
14651 rm -f conftest*
14654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14655 echo "$ac_t""yes" 1>&6
14656 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14657 cat >> confdefs.h <<EOF
14658 #define $ac_tr_func 1
14661 else
14662 echo "$ac_t""no" 1>&6
14663 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
14665 done
14675 echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
14676 echo "configure:14677: checking for GNU C++ __complex__ support" >&5
14677 if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
14678 echo $ac_n "(cached) $ac_c" 1>&6
14679 else
14682 ac_ext=C
14683 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14684 ac_cpp='$CXXCPP $CPPFLAGS'
14685 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14686 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14687 cross_compiling=$ac_cv_prog_cxx_cross
14689 cat > conftest.$ac_ext <<EOF
14690 #line 14691 "configure"
14691 #include "confdefs.h"
14692 struct dcomplex { __complex__ double x; }; \
14693 dcomplex f(const dcomplex& x) { return dcomplex(x); }
14694 int main() {
14696 dcomplex x; f(x);
14697 ; return 0; }
14699 if { (eval echo configure:14700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14700 rm -rf conftest*
14701 glibcpp_cv_complex=ok
14702 else
14703 echo "configure: failed program was:" >&5
14704 cat conftest.$ac_ext >&5
14705 rm -rf conftest*
14706 glibcpp_cv_complex=buggy
14709 rm -f conftest*
14710 ac_ext=c
14711 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14712 ac_cpp='$CPP $CPPFLAGS'
14713 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14714 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14715 cross_compiling=$ac_cv_prog_cc_cross
14720 echo "$ac_t""$glibcpp_cv_complex" 1>&6
14721 if test $glibcpp_cv_complex = buggy; then
14722 cat >> confdefs.h <<\EOF
14723 #define _GLIBCPP_BUGGY_COMPLEX 1
14728 echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
14729 echo "configure:14730: checking for GNU C++ __complex__ float support" >&5
14730 if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
14731 echo $ac_n "(cached) $ac_c" 1>&6
14732 else
14735 ac_ext=C
14736 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14737 ac_cpp='$CXXCPP $CPPFLAGS'
14738 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14739 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14740 cross_compiling=$ac_cv_prog_cxx_cross
14742 rm -f conftest.h
14743 cat > conftest.h <<EOB
14745 // Check for buggy __complex__ that causes ICE in most versions of egcs
14746 // and gcc-2.95.x on certain platforms (eg., x86-win32).
14748 // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
14749 // more info on the bug itself.
14751 struct
14752 float_complex
14754 __complex__ float m_value;
14755 float_complex (float = 0.0f, float = 0.0f);
14756 float_complex (__complex__ float val) : m_value (val) {}
14757 float_complex foo (const float_complex &val)
14758 { return float_complex (~val.m_value); }
14761 cat > conftest.$ac_ext <<EOF
14762 #line 14763 "configure"
14763 #include "confdefs.h"
14764 #include "conftest.h"
14765 int main() {
14767 ; return 0; }
14769 if { (eval echo configure:14770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14770 rm -rf conftest*
14771 glibcpp_cv_float_complex=ok
14772 else
14773 echo "configure: failed program was:" >&5
14774 cat conftest.$ac_ext >&5
14775 rm -rf conftest*
14776 glibcpp_cv_float_complex=buggy
14779 rm -f conftest*
14780 ac_ext=c
14781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14782 ac_cpp='$CPP $CPPFLAGS'
14783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14784 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14785 cross_compiling=$ac_cv_prog_cc_cross
14790 echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
14791 if test $glibcpp_cv_float_complex = buggy; then
14792 cat >> confdefs.h <<\EOF
14793 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
14800 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
14801 echo "configure:14802: checking for mbstate_t" >&5
14802 cat > conftest.$ac_ext <<EOF
14803 #line 14804 "configure"
14804 #include "confdefs.h"
14805 #include <wchar.h>
14806 int main() {
14807 mbstate_t teststate;
14808 ; return 0; }
14810 if { (eval echo configure:14811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14811 rm -rf conftest*
14812 have_mbstate_t=yes
14813 else
14814 echo "configure: failed program was:" >&5
14815 cat conftest.$ac_ext >&5
14816 rm -rf conftest*
14817 have_mbstate_t=no
14819 rm -f conftest*
14820 echo "$ac_t""$have_mbstate_t" 1>&6
14821 if test x"$have_mbstate_t" = xyes; then
14822 cat >> confdefs.h <<\EOF
14823 #define HAVE_MBSTATE_T 1
14828 for ac_hdr in wchar.h
14830 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14831 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14832 echo "configure:14833: checking for $ac_hdr" >&5
14833 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14834 echo $ac_n "(cached) $ac_c" 1>&6
14835 else
14836 cat > conftest.$ac_ext <<EOF
14837 #line 14838 "configure"
14838 #include "confdefs.h"
14839 #include <$ac_hdr>
14841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14842 { (eval echo configure:14843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14844 if test -z "$ac_err"; then
14845 rm -rf conftest*
14846 eval "ac_cv_header_$ac_safe=yes"
14847 else
14848 echo "$ac_err" >&5
14849 echo "configure: failed program was:" >&5
14850 cat conftest.$ac_ext >&5
14851 rm -rf conftest*
14852 eval "ac_cv_header_$ac_safe=no"
14854 rm -f conftest*
14856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14857 echo "$ac_t""yes" 1>&6
14858 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14859 cat >> confdefs.h <<EOF
14860 #define $ac_tr_hdr 1
14862 ac_has_wchar_h=yes
14863 else
14864 echo "$ac_t""no" 1>&6
14865 ac_has_wchar_h=no
14867 done
14869 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
14870 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
14871 echo "configure:14872: checking for wctype.h" >&5
14872 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14873 echo $ac_n "(cached) $ac_c" 1>&6
14874 else
14875 cat > conftest.$ac_ext <<EOF
14876 #line 14877 "configure"
14877 #include "confdefs.h"
14878 #include <wctype.h>
14880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14881 { (eval echo configure:14882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14883 if test -z "$ac_err"; then
14884 rm -rf conftest*
14885 eval "ac_cv_header_$ac_safe=yes"
14886 else
14887 echo "$ac_err" >&5
14888 echo "configure: failed program was:" >&5
14889 cat conftest.$ac_ext >&5
14890 rm -rf conftest*
14891 eval "ac_cv_header_$ac_safe=no"
14893 rm -f conftest*
14895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14896 echo "$ac_t""yes" 1>&6
14897 ac_has_wctype_h=yes
14898 else
14899 echo "$ac_t""no" 1>&6
14900 ac_has_wctype_h=no
14904 if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
14905 && test x"$enable_c_mbchar" != xno; then
14907 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
14908 echo "configure:14909: checking for WCHAR_MIN and WCHAR_MAX" >&5
14909 cat > conftest.$ac_ext <<EOF
14910 #line 14911 "configure"
14911 #include "confdefs.h"
14912 #include <wchar.h>
14913 int main() {
14914 int i = WCHAR_MIN; int j = WCHAR_MAX;
14915 ; return 0; }
14917 if { (eval echo configure:14918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14918 rm -rf conftest*
14919 has_wchar_minmax=yes
14920 else
14921 echo "configure: failed program was:" >&5
14922 cat conftest.$ac_ext >&5
14923 rm -rf conftest*
14924 has_wchar_minmax=no
14926 rm -f conftest*
14927 echo "$ac_t""$has_wchar_minmax" 1>&6
14929 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
14930 echo "configure:14931: checking for WEOF" >&5
14931 cat > conftest.$ac_ext <<EOF
14932 #line 14933 "configure"
14933 #include "confdefs.h"
14935 #include <wchar.h>
14936 #include <stddef.h>
14937 int main() {
14938 wint_t i = WEOF;
14939 ; return 0; }
14941 if { (eval echo configure:14942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14942 rm -rf conftest*
14943 has_weof=yes
14944 else
14945 echo "configure: failed program was:" >&5
14946 cat conftest.$ac_ext >&5
14947 rm -rf conftest*
14948 has_weof=no
14950 rm -f conftest*
14951 echo "$ac_t""$has_weof" 1>&6
14953 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
14954 wcsrtombs mbsrtowcs
14956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14957 echo "configure:14958: checking for $ac_func" >&5
14958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14959 echo $ac_n "(cached) $ac_c" 1>&6
14960 else
14961 cat > conftest.$ac_ext <<EOF
14962 #line 14963 "configure"
14963 #include "confdefs.h"
14964 /* System header to define __stub macros and hopefully few prototypes,
14965 which can conflict with char $ac_func(); below. */
14966 #include <assert.h>
14967 /* Override any gcc2 internal prototype to avoid an error. */
14968 /* We use char because int might match the return type of a gcc2
14969 builtin and then its argument prototype would still apply. */
14970 char $ac_func();
14972 int main() {
14974 /* The GNU C library defines this for functions which it implements
14975 to always fail with ENOSYS. Some functions are actually named
14976 something starting with __ and the normal name is an alias. */
14977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14978 choke me
14979 #else
14980 $ac_func();
14981 #endif
14983 ; return 0; }
14985 if { (eval echo configure:14986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14986 rm -rf conftest*
14987 eval "ac_cv_func_$ac_func=yes"
14988 else
14989 echo "configure: failed program was:" >&5
14990 cat conftest.$ac_ext >&5
14991 rm -rf conftest*
14992 eval "ac_cv_func_$ac_func=no"
14994 rm -f conftest*
14997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14998 echo "$ac_t""yes" 1>&6
14999 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15000 cat >> confdefs.h <<EOF
15001 #define $ac_tr_func 1
15003 ac_wfuncs=yes
15004 else
15005 echo "$ac_t""no" 1>&6
15006 ac_wfuncs=no
15008 done
15011 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
15012 echo "configure:15013: checking for ISO C99 wchar_t support" >&5
15013 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
15014 && test x"$ac_wfuncs" = xyes; then
15015 ac_isoC99_wchar_t=yes
15016 else
15017 ac_isoC99_wchar_t=no
15019 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
15021 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
15022 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
15023 echo "configure:15024: checking for iconv.h" >&5
15024 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15025 echo $ac_n "(cached) $ac_c" 1>&6
15026 else
15027 cat > conftest.$ac_ext <<EOF
15028 #line 15029 "configure"
15029 #include "confdefs.h"
15030 #include <iconv.h>
15032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15033 { (eval echo configure:15034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15035 if test -z "$ac_err"; then
15036 rm -rf conftest*
15037 eval "ac_cv_header_$ac_safe=yes"
15038 else
15039 echo "$ac_err" >&5
15040 echo "configure: failed program was:" >&5
15041 cat conftest.$ac_ext >&5
15042 rm -rf conftest*
15043 eval "ac_cv_header_$ac_safe=no"
15045 rm -f conftest*
15047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15048 echo "$ac_t""yes" 1>&6
15049 ac_has_iconv_h=yes
15050 else
15051 echo "$ac_t""no" 1>&6
15052 ac_has_iconv_h=no
15055 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
15056 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
15057 echo "configure:15058: checking for langinfo.h" >&5
15058 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15059 echo $ac_n "(cached) $ac_c" 1>&6
15060 else
15061 cat > conftest.$ac_ext <<EOF
15062 #line 15063 "configure"
15063 #include "confdefs.h"
15064 #include <langinfo.h>
15066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15067 { (eval echo configure:15068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15069 if test -z "$ac_err"; then
15070 rm -rf conftest*
15071 eval "ac_cv_header_$ac_safe=yes"
15072 else
15073 echo "$ac_err" >&5
15074 echo "configure: failed program was:" >&5
15075 cat conftest.$ac_ext >&5
15076 rm -rf conftest*
15077 eval "ac_cv_header_$ac_safe=no"
15079 rm -f conftest*
15081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15082 echo "$ac_t""yes" 1>&6
15083 ac_has_langinfo_h=yes
15084 else
15085 echo "$ac_t""no" 1>&6
15086 ac_has_langinfo_h=no
15090 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
15091 echo "configure:15092: checking for iconv in -liconv" >&5
15092 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
15093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15094 echo $ac_n "(cached) $ac_c" 1>&6
15095 else
15096 ac_save_LIBS="$LIBS"
15097 LIBS="-liconv $LIBS"
15098 cat > conftest.$ac_ext <<EOF
15099 #line 15100 "configure"
15100 #include "confdefs.h"
15101 /* Override any gcc2 internal prototype to avoid an error. */
15102 /* We use char because int might match the return type of a gcc2
15103 builtin and then its argument prototype would still apply. */
15104 char iconv();
15106 int main() {
15107 iconv()
15108 ; return 0; }
15110 if { (eval echo configure:15111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15111 rm -rf conftest*
15112 eval "ac_cv_lib_$ac_lib_var=yes"
15113 else
15114 echo "configure: failed program was:" >&5
15115 cat conftest.$ac_ext >&5
15116 rm -rf conftest*
15117 eval "ac_cv_lib_$ac_lib_var=no"
15119 rm -f conftest*
15120 LIBS="$ac_save_LIBS"
15123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15124 echo "$ac_t""yes" 1>&6
15125 libiconv="-liconv"
15126 else
15127 echo "$ac_t""no" 1>&6
15130 ac_save_LIBS="$LIBS"
15131 LIBS="$LIBS $libiconv"
15133 for ac_func in iconv_open iconv_close iconv nl_langinfo
15135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15136 echo "configure:15137: checking for $ac_func" >&5
15137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15138 echo $ac_n "(cached) $ac_c" 1>&6
15139 else
15140 cat > conftest.$ac_ext <<EOF
15141 #line 15142 "configure"
15142 #include "confdefs.h"
15143 /* System header to define __stub macros and hopefully few prototypes,
15144 which can conflict with char $ac_func(); below. */
15145 #include <assert.h>
15146 /* Override any gcc2 internal prototype to avoid an error. */
15147 /* We use char because int might match the return type of a gcc2
15148 builtin and then its argument prototype would still apply. */
15149 char $ac_func();
15151 int main() {
15153 /* The GNU C library defines this for functions which it implements
15154 to always fail with ENOSYS. Some functions are actually named
15155 something starting with __ and the normal name is an alias. */
15156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15157 choke me
15158 #else
15159 $ac_func();
15160 #endif
15162 ; return 0; }
15164 if { (eval echo configure:15165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15165 rm -rf conftest*
15166 eval "ac_cv_func_$ac_func=yes"
15167 else
15168 echo "configure: failed program was:" >&5
15169 cat conftest.$ac_ext >&5
15170 rm -rf conftest*
15171 eval "ac_cv_func_$ac_func=no"
15173 rm -f conftest*
15176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15177 echo "$ac_t""yes" 1>&6
15178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15179 cat >> confdefs.h <<EOF
15180 #define $ac_tr_func 1
15183 ac_XPG2funcs=yes
15184 else
15185 echo "$ac_t""no" 1>&6
15186 ac_XPG2funcs=no
15188 done
15191 LIBS="$ac_save_LIBS"
15193 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
15194 echo "configure:15195: checking for XPG2 wchar_t support" >&5
15195 if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
15196 && test x"$ac_XPG2funcs" = xyes; then
15197 ac_XPG2_wchar_t=yes
15198 else
15199 ac_XPG2_wchar_t=no
15201 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
15203 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
15204 echo "configure:15205: checking for enabled wchar_t specializations" >&5
15205 if test x"$ac_isoC99_wchar_t" = xyes \
15206 && test x"$ac_XPG2_wchar_t" = xyes; then
15207 libinst_wstring_la="libinst-wstring.la"
15208 cat >> confdefs.h <<\EOF
15209 #define _GLIBCPP_USE_WCHAR_T 1
15212 echo "$ac_t"""yes"" 1>&6
15213 else
15214 libinst_wstring_la=""
15215 echo "$ac_t"""no"" 1>&6
15219 else
15220 echo "configure: warning: wchar_t support disabled." 1>&2
15224 ac_test_CXXFLAGS="${CXXFLAGS+set}"
15225 ac_save_CXXFLAGS="$CXXFLAGS"
15226 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
15228 for ac_func in strtof
15230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15231 echo "configure:15232: checking for $ac_func" >&5
15232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15233 echo $ac_n "(cached) $ac_c" 1>&6
15234 else
15235 cat > conftest.$ac_ext <<EOF
15236 #line 15237 "configure"
15237 #include "confdefs.h"
15238 /* System header to define __stub macros and hopefully few prototypes,
15239 which can conflict with char $ac_func(); below. */
15240 #include <assert.h>
15241 /* Override any gcc2 internal prototype to avoid an error. */
15242 /* We use char because int might match the return type of a gcc2
15243 builtin and then its argument prototype would still apply. */
15244 char $ac_func();
15246 int main() {
15248 /* The GNU C library defines this for functions which it implements
15249 to always fail with ENOSYS. Some functions are actually named
15250 something starting with __ and the normal name is an alias. */
15251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15252 choke me
15253 #else
15254 $ac_func();
15255 #endif
15257 ; return 0; }
15259 if { (eval echo configure:15260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15260 rm -rf conftest*
15261 eval "ac_cv_func_$ac_func=yes"
15262 else
15263 echo "configure: failed program was:" >&5
15264 cat conftest.$ac_ext >&5
15265 rm -rf conftest*
15266 eval "ac_cv_func_$ac_func=no"
15268 rm -f conftest*
15271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15272 echo "$ac_t""yes" 1>&6
15273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15274 cat >> confdefs.h <<EOF
15275 #define $ac_tr_func 1
15278 else
15279 echo "$ac_t""no" 1>&6
15281 done
15284 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
15285 echo "configure:15286: checking for strtold declaration" >&5
15286 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
15287 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
15288 echo $ac_n "(cached) $ac_c" 1>&6
15289 else
15292 ac_ext=C
15293 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15294 ac_cpp='$CXXCPP $CPPFLAGS'
15295 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15296 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15297 cross_compiling=$ac_cv_prog_cxx_cross
15299 cat > conftest.$ac_ext <<EOF
15300 #line 15301 "configure"
15301 #include "confdefs.h"
15302 #include <stdlib.h>
15303 int main() {
15304 strtold(0, 0);
15305 ; return 0; }
15307 if { (eval echo configure:15308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15308 rm -rf conftest*
15309 glibcpp_cv_func_strtold_use=yes
15310 else
15311 echo "configure: failed program was:" >&5
15312 cat conftest.$ac_ext >&5
15313 rm -rf conftest*
15314 glibcpp_cv_func_strtold_use=no
15316 rm -f conftest*
15317 ac_ext=c
15318 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15319 ac_cpp='$CPP $CPPFLAGS'
15320 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15321 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15322 cross_compiling=$ac_cv_prog_cc_cross
15328 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
15329 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
15330 for ac_func in strtold
15332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15333 echo "configure:15334: checking for $ac_func" >&5
15334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15335 echo $ac_n "(cached) $ac_c" 1>&6
15336 else
15337 cat > conftest.$ac_ext <<EOF
15338 #line 15339 "configure"
15339 #include "confdefs.h"
15340 /* System header to define __stub macros and hopefully few prototypes,
15341 which can conflict with char $ac_func(); below. */
15342 #include <assert.h>
15343 /* Override any gcc2 internal prototype to avoid an error. */
15344 /* We use char because int might match the return type of a gcc2
15345 builtin and then its argument prototype would still apply. */
15346 char $ac_func();
15348 int main() {
15350 /* The GNU C library defines this for functions which it implements
15351 to always fail with ENOSYS. Some functions are actually named
15352 something starting with __ and the normal name is an alias. */
15353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15354 choke me
15355 #else
15356 $ac_func();
15357 #endif
15359 ; return 0; }
15361 if { (eval echo configure:15362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15362 rm -rf conftest*
15363 eval "ac_cv_func_$ac_func=yes"
15364 else
15365 echo "configure: failed program was:" >&5
15366 cat conftest.$ac_ext >&5
15367 rm -rf conftest*
15368 eval "ac_cv_func_$ac_func=no"
15370 rm -f conftest*
15373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15374 echo "$ac_t""yes" 1>&6
15375 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15376 cat >> confdefs.h <<EOF
15377 #define $ac_tr_func 1
15380 else
15381 echo "$ac_t""no" 1>&6
15383 done
15388 CXXFLAGS="$ac_save_CXXFLAGS"
15391 cat > conftest.$ac_ext <<EOF
15392 #line 15393 "configure"
15393 #include "confdefs.h"
15395 #include <setjmp.h>
15397 int main() {
15398 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
15399 ; return 0; }
15401 if { (eval echo configure:15402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15402 rm -rf conftest*
15403 cat >> confdefs.h <<\EOF
15404 #define HAVE_SIGSETJMP 1
15407 else
15408 echo "configure: failed program was:" >&5
15409 cat conftest.$ac_ext >&5
15411 rm -f conftest*
15413 for ac_hdr in unistd.h
15415 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15416 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15417 echo "configure:15418: checking for $ac_hdr" >&5
15418 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15419 echo $ac_n "(cached) $ac_c" 1>&6
15420 else
15421 cat > conftest.$ac_ext <<EOF
15422 #line 15423 "configure"
15423 #include "confdefs.h"
15424 #include <$ac_hdr>
15426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15427 { (eval echo configure:15428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15428 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15429 if test -z "$ac_err"; then
15430 rm -rf conftest*
15431 eval "ac_cv_header_$ac_safe=yes"
15432 else
15433 echo "$ac_err" >&5
15434 echo "configure: failed program was:" >&5
15435 cat conftest.$ac_ext >&5
15436 rm -rf conftest*
15437 eval "ac_cv_header_$ac_safe=no"
15439 rm -f conftest*
15441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15442 echo "$ac_t""yes" 1>&6
15443 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15444 cat >> confdefs.h <<EOF
15445 #define $ac_tr_hdr 1
15448 else
15449 echo "$ac_t""no" 1>&6
15451 done
15453 for ac_func in getpagesize
15455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15456 echo "configure:15457: checking for $ac_func" >&5
15457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15458 echo $ac_n "(cached) $ac_c" 1>&6
15459 else
15460 cat > conftest.$ac_ext <<EOF
15461 #line 15462 "configure"
15462 #include "confdefs.h"
15463 /* System header to define __stub macros and hopefully few prototypes,
15464 which can conflict with char $ac_func(); below. */
15465 #include <assert.h>
15466 /* Override any gcc2 internal prototype to avoid an error. */
15467 /* We use char because int might match the return type of a gcc2
15468 builtin and then its argument prototype would still apply. */
15469 char $ac_func();
15471 int main() {
15473 /* The GNU C library defines this for functions which it implements
15474 to always fail with ENOSYS. Some functions are actually named
15475 something starting with __ and the normal name is an alias. */
15476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15477 choke me
15478 #else
15479 $ac_func();
15480 #endif
15482 ; return 0; }
15484 if { (eval echo configure:15485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15485 rm -rf conftest*
15486 eval "ac_cv_func_$ac_func=yes"
15487 else
15488 echo "configure: failed program was:" >&5
15489 cat conftest.$ac_ext >&5
15490 rm -rf conftest*
15491 eval "ac_cv_func_$ac_func=no"
15493 rm -f conftest*
15496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15497 echo "$ac_t""yes" 1>&6
15498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15499 cat >> confdefs.h <<EOF
15500 #define $ac_tr_func 1
15503 else
15504 echo "$ac_t""no" 1>&6
15506 done
15508 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
15509 echo "configure:15510: checking for working mmap" >&5
15510 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
15511 echo $ac_n "(cached) $ac_c" 1>&6
15512 else
15513 if test "$cross_compiling" = yes; then
15514 ac_cv_func_mmap_fixed_mapped=no
15515 else
15516 cat > conftest.$ac_ext <<EOF
15517 #line 15518 "configure"
15518 #include "confdefs.h"
15520 /* Thanks to Mike Haertel and Jim Avera for this test.
15521 Here is a matrix of mmap possibilities:
15522 mmap private not fixed
15523 mmap private fixed at somewhere currently unmapped
15524 mmap private fixed at somewhere already mapped
15525 mmap shared not fixed
15526 mmap shared fixed at somewhere currently unmapped
15527 mmap shared fixed at somewhere already mapped
15528 For private mappings, we should verify that changes cannot be read()
15529 back from the file, nor mmap's back from the file at a different
15530 address. (There have been systems where private was not correctly
15531 implemented like the infamous i386 svr4.0, and systems where the
15532 VM page cache was not coherent with the filesystem buffer cache
15533 like early versions of FreeBSD and possibly contemporary NetBSD.)
15534 For shared mappings, we should conversely verify that changes get
15535 propogated back to all the places they're supposed to be.
15537 Grep wants private fixed already mapped.
15538 The main things grep needs to know about mmap are:
15539 * does it exist and is it safe to write into the mmap'd area
15540 * how to use it (BSD variants) */
15541 #include <sys/types.h>
15542 #include <fcntl.h>
15543 #include <sys/mman.h>
15545 /* This mess was copied from the GNU getpagesize.h. */
15546 #ifndef HAVE_GETPAGESIZE
15547 # ifdef HAVE_UNISTD_H
15548 # include <unistd.h>
15549 # endif
15551 /* Assume that all systems that can run configure have sys/param.h. */
15552 # ifndef HAVE_SYS_PARAM_H
15553 # define HAVE_SYS_PARAM_H 1
15554 # endif
15556 # ifdef _SC_PAGESIZE
15557 # define getpagesize() sysconf(_SC_PAGESIZE)
15558 # else /* no _SC_PAGESIZE */
15559 # ifdef HAVE_SYS_PARAM_H
15560 # include <sys/param.h>
15561 # ifdef EXEC_PAGESIZE
15562 # define getpagesize() EXEC_PAGESIZE
15563 # else /* no EXEC_PAGESIZE */
15564 # ifdef NBPG
15565 # define getpagesize() NBPG * CLSIZE
15566 # ifndef CLSIZE
15567 # define CLSIZE 1
15568 # endif /* no CLSIZE */
15569 # else /* no NBPG */
15570 # ifdef NBPC
15571 # define getpagesize() NBPC
15572 # else /* no NBPC */
15573 # ifdef PAGESIZE
15574 # define getpagesize() PAGESIZE
15575 # endif /* PAGESIZE */
15576 # endif /* no NBPC */
15577 # endif /* no NBPG */
15578 # endif /* no EXEC_PAGESIZE */
15579 # else /* no HAVE_SYS_PARAM_H */
15580 # define getpagesize() 8192 /* punt totally */
15581 # endif /* no HAVE_SYS_PARAM_H */
15582 # endif /* no _SC_PAGESIZE */
15584 #endif /* no HAVE_GETPAGESIZE */
15586 #ifdef __cplusplus
15587 extern "C" { void *malloc(unsigned); }
15588 #else
15589 char *malloc();
15590 #endif
15593 main()
15595 char *data, *data2, *data3;
15596 int i, pagesize;
15597 int fd;
15599 pagesize = getpagesize();
15602 * First, make a file with some known garbage in it.
15604 data = malloc(pagesize);
15605 if (!data)
15606 exit(1);
15607 for (i = 0; i < pagesize; ++i)
15608 *(data + i) = rand();
15609 umask(0);
15610 fd = creat("conftestmmap", 0600);
15611 if (fd < 0)
15612 exit(1);
15613 if (write(fd, data, pagesize) != pagesize)
15614 exit(1);
15615 close(fd);
15618 * Next, try to mmap the file at a fixed address which
15619 * already has something else allocated at it. If we can,
15620 * also make sure that we see the same garbage.
15622 fd = open("conftestmmap", O_RDWR);
15623 if (fd < 0)
15624 exit(1);
15625 data2 = malloc(2 * pagesize);
15626 if (!data2)
15627 exit(1);
15628 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
15629 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
15630 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15631 exit(1);
15632 for (i = 0; i < pagesize; ++i)
15633 if (*(data + i) != *(data2 + i))
15634 exit(1);
15637 * Finally, make sure that changes to the mapped area
15638 * do not percolate back to the file as seen by read().
15639 * (This is a bug on some variants of i386 svr4.0.)
15641 for (i = 0; i < pagesize; ++i)
15642 *(data2 + i) = *(data2 + i) + 1;
15643 data3 = malloc(pagesize);
15644 if (!data3)
15645 exit(1);
15646 if (read(fd, data3, pagesize) != pagesize)
15647 exit(1);
15648 for (i = 0; i < pagesize; ++i)
15649 if (*(data + i) != *(data3 + i))
15650 exit(1);
15651 close(fd);
15652 unlink("conftestmmap");
15653 exit(0);
15657 if { (eval echo configure:15658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15658 then
15659 ac_cv_func_mmap_fixed_mapped=yes
15660 else
15661 echo "configure: failed program was:" >&5
15662 cat conftest.$ac_ext >&5
15663 rm -fr conftest*
15664 ac_cv_func_mmap_fixed_mapped=no
15666 rm -fr conftest*
15671 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
15672 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15673 cat >> confdefs.h <<\EOF
15674 #define HAVE_MMAP 1
15681 # Now that ctype is determined for all possible targets, we can do this...
15689 if test "$NULL_TARGET" = yes; then
15690 NULL_TARGET_TRUE=
15691 NULL_TARGET_FALSE='#'
15692 else
15693 NULL_TARGET_TRUE='#'
15694 NULL_TARGET_FALSE=
15698 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
15699 NATIVE_TRUE=
15700 NATIVE_FALSE='#'
15701 else
15702 NATIVE_TRUE='#'
15703 NATIVE_FALSE=
15707 if test "$CANADIAN" = yes; then
15708 CANADIAN_TRUE=
15709 CANADIAN_FALSE='#'
15710 else
15711 CANADIAN_TRUE='#'
15712 CANADIAN_FALSE=
15715 cat > confcache <<\EOF
15716 # This file is a shell script that caches the results of configure
15717 # tests run on this system so they can be shared between configure
15718 # scripts and configure runs. It is not useful on other systems.
15719 # If it contains results you don't want to keep, you may remove or edit it.
15721 # By default, configure uses ./config.cache as the cache file,
15722 # creating it if it does not exist already. You can give configure
15723 # the --cache-file=FILE option to use a different cache file; that is
15724 # what configure does when it calls configure scripts in
15725 # subdirectories, so they share the cache.
15726 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15727 # config.status only pays attention to the cache file if you give it the
15728 # --recheck option to rerun configure.
15731 # The following way of writing the cache mishandles newlines in values,
15732 # but we know of no workaround that is simple, portable, and efficient.
15733 # So, don't put newlines in cache variables' values.
15734 # Ultrix sh set writes to stderr and can't be redirected directly,
15735 # and sets the high bit in the cache file unless we assign to the vars.
15736 (set) 2>&1 |
15737 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15738 *ac_space=\ *)
15739 # `set' does not quote correctly, so add quotes (double-quote substitution
15740 # turns \\\\ into \\, and sed turns \\ into \).
15741 sed -n \
15742 -e "s/'/'\\\\''/g" \
15743 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15746 # `set' quotes correctly as required by POSIX, so do not add quotes.
15747 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15749 esac >> confcache
15750 if cmp -s $cache_file confcache; then
15752 else
15753 if test -w $cache_file; then
15754 echo "updating cache $cache_file"
15755 cat confcache > $cache_file
15756 else
15757 echo "not updating unwritable cache $cache_file"
15760 rm -f confcache
15763 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
15764 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
15765 echo "configure:15766: checking for locale.h" >&5
15766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15767 echo $ac_n "(cached) $ac_c" 1>&6
15768 else
15769 cat > conftest.$ac_ext <<EOF
15770 #line 15771 "configure"
15771 #include "confdefs.h"
15772 #include <locale.h>
15774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15775 { (eval echo configure:15776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15777 if test -z "$ac_err"; then
15778 rm -rf conftest*
15779 eval "ac_cv_header_$ac_safe=yes"
15780 else
15781 echo "$ac_err" >&5
15782 echo "configure: failed program was:" >&5
15783 cat conftest.$ac_ext >&5
15784 rm -rf conftest*
15785 eval "ac_cv_header_$ac_safe=no"
15787 rm -f conftest*
15789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15790 echo "$ac_t""yes" 1>&6
15792 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
15793 echo "configure:15794: checking for LC_MESSAGES" >&5
15794 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
15795 echo $ac_n "(cached) $ac_c" 1>&6
15796 else
15797 cat > conftest.$ac_ext <<EOF
15798 #line 15799 "configure"
15799 #include "confdefs.h"
15800 #include <locale.h>
15801 int main() {
15802 return LC_MESSAGES
15803 ; return 0; }
15805 if { (eval echo configure:15806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15806 rm -rf conftest*
15807 ac_cv_val_LC_MESSAGES=yes
15808 else
15809 echo "configure: failed program was:" >&5
15810 cat conftest.$ac_ext >&5
15811 rm -rf conftest*
15812 ac_cv_val_LC_MESSAGES=no
15814 rm -f conftest*
15817 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
15818 if test $ac_cv_val_LC_MESSAGES = yes; then
15819 cat >> confdefs.h <<\EOF
15820 #define HAVE_LC_MESSAGES 1
15825 else
15826 echo "$ac_t""no" 1>&6
15831 if test "${multilib}" = "yes"; then
15832 multilib_arg="--enable-multilib"
15833 else
15834 multilib_arg=
15838 # Generate the various Makefiles, include files, and scripts.
15840 # Needed so that g++ can find the correct include subdir automatically.
15841 INTERFACE=v3
15843 # Export all the install information
15846 glibcpp_toolexecdir=no
15847 glibcpp_toolexeclibdir=no
15849 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
15850 echo "configure:15851: checking for interface version number" >&5
15851 libstdcxx_interface=$INTERFACE
15852 echo "$ac_t""$libstdcxx_interface" 1>&6
15854 # Process the option --with-gxx-include-dir=<path to include-files directory>
15855 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
15856 echo "configure:15857: checking for --with-gxx-include-dir" >&5
15857 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
15858 if test "${with_gxx_include_dir+set}" = set; then
15859 withval="$with_gxx_include_dir"
15860 case "${withval}" in
15861 yes)
15862 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
15863 gxx_include_dir=no
15866 gxx_include_dir=no
15869 gxx_include_dir=${withval}
15871 esac
15872 else
15873 gxx_include_dir=no
15876 echo "$ac_t""$gxx_include_dir" 1>&6
15878 # Process the option "--enable-version-specific-runtime-libs"
15879 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
15880 echo "configure:15881: checking for --enable-version-specific-runtime-libs" >&5
15881 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15882 if test "${enable_version_specific_runtime_libs+set}" = set; then
15883 enableval="$enable_version_specific_runtime_libs"
15884 version_specific_libs=yes
15885 # Need the gcc compiler version to know where to install libraries
15886 # and header files if --enable-version-specific-runtime-libs option
15887 # is selected.
15888 gcc_version_trigger=${srcdir}/../gcc/version.c
15889 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
15890 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
15891 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
15892 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
15893 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}
15895 else
15896 version_specific_libs=no
15899 echo "$ac_t""$version_specific_libs" 1>&6
15901 # Default case for install directory for include files.
15902 if test x"$version_specific_libs" = x"no" \
15903 && test x"$gxx_include_dir"=x"no"; then
15904 gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
15907 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
15908 # Install a library built with a cross compiler in tooldir, not libdir.
15909 if test x"$glibcpp_toolexecdir" = x"no"; then
15910 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15911 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
15912 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
15913 else
15914 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
15915 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
15919 echo $ac_n "checking for install location""... $ac_c" 1>&6
15920 echo "configure:15921: checking for install location" >&5
15921 echo "$ac_t""$gxx_include_dir" 1>&6
15928 # Export all the include and flag information to makefiles.
15930 # Root level of the include sources.
15931 GLIBCPP_INCLUDE_DIR='$(top_srcdir)/include'
15933 # Can either use include/c or include/c_std to grab "C" headers. This
15934 # variable is set to the include directory currently in use.
15935 # set with C_INCLUDE_DIR in GLIBCPP_ENABLE_CHEADERS
15937 # Passed down for canadian crosses.
15938 if test x"$CANADIAN" = xyes; then
15939 TOPLEVEL_INCLUDES='-I$(includedir)'
15942 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
15944 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
15946 #if GLIBCPP_NEED_LIBIO
15947 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
15948 #else
15949 #LIBIO_INCLUDES='-I$(top_srcdir)/libio'
15950 #endif
15952 #if GLIBCPP_USE_CSHADOW
15953 # CSHADOW_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR) \
15954 # -I$(top_blddir)/cshadow'
15955 #else
15956 CSTD_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR)'
15957 #endif
15959 # Now, export this to all the little Makefiles....
15968 # Optimization flags that are probably a good idea for thrill-seekers. Just
15969 # uncomment the lines below and make, everything else is ready to go...
15970 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
15971 OPTIMIZE_CXXFLAGS=
15974 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
15978 # This should be done by mkincludedir, but hack around it now.
15979 blddir=`pwd`
15980 echo "checking for $blddir/include"
15982 if test ! -d "$blddir/include"; then
15983 mkdir "$blddir/include"
15986 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
15987 # and libsupc++/Makefile.am so that multilib installs will end up
15988 # installed in the correct place. To work around this not being passed
15989 # down from config-ml.in -> top_srcdir/Makefile.am ->
15990 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
15991 trap '' 1 2 15
15992 cat > confcache <<\EOF
15993 # This file is a shell script that caches the results of configure
15994 # tests run on this system so they can be shared between configure
15995 # scripts and configure runs. It is not useful on other systems.
15996 # If it contains results you don't want to keep, you may remove or edit it.
15998 # By default, configure uses ./config.cache as the cache file,
15999 # creating it if it does not exist already. You can give configure
16000 # the --cache-file=FILE option to use a different cache file; that is
16001 # what configure does when it calls configure scripts in
16002 # subdirectories, so they share the cache.
16003 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16004 # config.status only pays attention to the cache file if you give it the
16005 # --recheck option to rerun configure.
16008 # The following way of writing the cache mishandles newlines in values,
16009 # but we know of no workaround that is simple, portable, and efficient.
16010 # So, don't put newlines in cache variables' values.
16011 # Ultrix sh set writes to stderr and can't be redirected directly,
16012 # and sets the high bit in the cache file unless we assign to the vars.
16013 (set) 2>&1 |
16014 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16015 *ac_space=\ *)
16016 # `set' does not quote correctly, so add quotes (double-quote substitution
16017 # turns \\\\ into \\, and sed turns \\ into \).
16018 sed -n \
16019 -e "s/'/'\\\\''/g" \
16020 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16023 # `set' quotes correctly as required by POSIX, so do not add quotes.
16024 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16026 esac >> confcache
16027 if cmp -s $cache_file confcache; then
16029 else
16030 if test -w $cache_file; then
16031 echo "updating cache $cache_file"
16032 cat confcache > $cache_file
16033 else
16034 echo "not updating unwritable cache $cache_file"
16037 rm -f confcache
16039 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16041 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16042 # Let make expand exec_prefix.
16043 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16045 # Any assignment to VPATH causes Sun make to only execute
16046 # the first set of double-colon rules, so remove it if not needed.
16047 # If there is a colon in the path, we need to keep it.
16048 if test "x$srcdir" = x.; then
16049 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16052 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16054 DEFS=-DHAVE_CONFIG_H
16056 # Without the "./", some shells look in PATH for config.status.
16057 : ${CONFIG_STATUS=./config.status}
16059 echo creating $CONFIG_STATUS
16060 rm -f $CONFIG_STATUS
16061 cat > $CONFIG_STATUS <<EOF
16062 #! /bin/sh
16063 # Generated automatically by configure.
16064 # Run this file to recreate the current configuration.
16065 # This directory was configured as follows,
16066 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16068 # $0 $ac_configure_args
16070 # Compiler output produced by configure, useful for debugging
16071 # configure, is in ./config.log if it exists.
16073 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16074 for ac_option
16076 case "\$ac_option" in
16077 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16078 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16079 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16080 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16081 echo "$CONFIG_STATUS generated by autoconf version 2.13"
16082 exit 0 ;;
16083 -help | --help | --hel | --he | --h)
16084 echo "\$ac_cs_usage"; exit 0 ;;
16085 *) echo "\$ac_cs_usage"; exit 1 ;;
16086 esac
16087 done
16089 ac_given_srcdir=$srcdir
16090 ac_given_INSTALL="$INSTALL"
16092 trap 'rm -fr `echo "tests_flags mkcheck Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16094 cat >> $CONFIG_STATUS <<EOF
16096 # Protect against being on the right side of a sed subst in config.status.
16097 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16098 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16099 $ac_vpsub
16100 $extrasub
16101 s%@SHELL@%$SHELL%g
16102 s%@CFLAGS@%$CFLAGS%g
16103 s%@CPPFLAGS@%$CPPFLAGS%g
16104 s%@CXXFLAGS@%$CXXFLAGS%g
16105 s%@FFLAGS@%$FFLAGS%g
16106 s%@DEFS@%$DEFS%g
16107 s%@LDFLAGS@%$LDFLAGS%g
16108 s%@LIBS@%$LIBS%g
16109 s%@exec_prefix@%$exec_prefix%g
16110 s%@prefix@%$prefix%g
16111 s%@program_transform_name@%$program_transform_name%g
16112 s%@bindir@%$bindir%g
16113 s%@sbindir@%$sbindir%g
16114 s%@libexecdir@%$libexecdir%g
16115 s%@datadir@%$datadir%g
16116 s%@sysconfdir@%$sysconfdir%g
16117 s%@sharedstatedir@%$sharedstatedir%g
16118 s%@localstatedir@%$localstatedir%g
16119 s%@libdir@%$libdir%g
16120 s%@includedir@%$includedir%g
16121 s%@oldincludedir@%$oldincludedir%g
16122 s%@infodir@%$infodir%g
16123 s%@mandir@%$mandir%g
16124 s%@toplevel_srcdir@%$toplevel_srcdir%g
16125 s%@host@%$host%g
16126 s%@host_alias@%$host_alias%g
16127 s%@host_cpu@%$host_cpu%g
16128 s%@host_vendor@%$host_vendor%g
16129 s%@host_os@%$host_os%g
16130 s%@target@%$target%g
16131 s%@target_alias@%$target_alias%g
16132 s%@target_cpu@%$target_cpu%g
16133 s%@target_vendor@%$target_vendor%g
16134 s%@target_os@%$target_os%g
16135 s%@build@%$build%g
16136 s%@build_alias@%$build_alias%g
16137 s%@build_cpu@%$build_cpu%g
16138 s%@build_vendor@%$build_vendor%g
16139 s%@build_os@%$build_os%g
16140 s%@glibcpp_basedir@%$glibcpp_basedir%g
16141 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16142 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16143 s%@INSTALL_DATA@%$INSTALL_DATA%g
16144 s%@PACKAGE@%$PACKAGE%g
16145 s%@VERSION@%$VERSION%g
16146 s%@ACLOCAL@%$ACLOCAL%g
16147 s%@AUTOCONF@%$AUTOCONF%g
16148 s%@AUTOMAKE@%$AUTOMAKE%g
16149 s%@AUTOHEADER@%$AUTOHEADER%g
16150 s%@MAKEINFO@%$MAKEINFO%g
16151 s%@SET_MAKE@%$SET_MAKE%g
16152 s%@CC@%$CC%g
16153 s%@CXX_libstdcxx@%$CXX_libstdcxx%g
16154 s%@CXX@%$CXX%g
16155 s%@AS@%$AS%g
16156 s%@AR@%$AR%g
16157 s%@RANLIB@%$RANLIB%g
16158 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
16159 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
16160 s%@MAINT@%$MAINT%g
16161 s%@EXEEXT@%$EXEEXT%g
16162 s%@LN_S@%$LN_S%g
16163 s%@OBJEXT@%$OBJEXT%g
16164 s%@STRIP@%$STRIP%g
16165 s%@LIBTOOL@%$LIBTOOL%g
16166 s%@CXXCPP@%$CXXCPP%g
16167 s%@enable_shared@%$enable_shared%g
16168 s%@enable_static@%$enable_static%g
16169 s%@ifGNUmake@%$ifGNUmake%g
16170 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
16171 s%@CPP@%$CPP%g
16172 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
16173 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
16174 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
16175 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
16176 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
16177 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
16178 s%@libio_la@%$libio_la%g
16179 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
16180 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
16181 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
16182 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
16183 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
16184 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
16185 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
16186 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
16187 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
16188 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
16189 s%@libinst_wstring_la@%$libinst_wstring_la%g
16190 s%@WERROR@%$WERROR%g
16191 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
16192 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
16193 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
16194 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
16195 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
16196 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
16197 s%@gxx_include_dir@%$gxx_include_dir%g
16198 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
16199 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
16200 s%@GLIBCPP_INCLUDE_DIR@%$GLIBCPP_INCLUDE_DIR%g
16201 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
16202 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
16203 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
16204 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
16205 s%@CSTD_INCLUDES@%$CSTD_INCLUDES%g
16206 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
16207 s%@WARN_FLAGS@%$WARN_FLAGS%g
16209 CEOF
16212 cat >> $CONFIG_STATUS <<\EOF
16214 # Split the substitutions into bite-sized pieces for seds with
16215 # small command number limits, like on Digital OSF/1 and HP-UX.
16216 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16217 ac_file=1 # Number of current file.
16218 ac_beg=1 # First line for current file.
16219 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16220 ac_more_lines=:
16221 ac_sed_cmds=""
16222 while $ac_more_lines; do
16223 if test $ac_beg -gt 1; then
16224 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16225 else
16226 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16228 if test ! -s conftest.s$ac_file; then
16229 ac_more_lines=false
16230 rm -f conftest.s$ac_file
16231 else
16232 if test -z "$ac_sed_cmds"; then
16233 ac_sed_cmds="sed -f conftest.s$ac_file"
16234 else
16235 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16237 ac_file=`expr $ac_file + 1`
16238 ac_beg=$ac_end
16239 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16241 done
16242 if test -z "$ac_sed_cmds"; then
16243 ac_sed_cmds=cat
16247 cat >> $CONFIG_STATUS <<EOF
16249 CONFIG_FILES=\${CONFIG_FILES-"tests_flags mkcheck Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile"}
16251 cat >> $CONFIG_STATUS <<\EOF
16252 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16253 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16254 case "$ac_file" in
16255 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16256 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16257 *) ac_file_in="${ac_file}.in" ;;
16258 esac
16260 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16262 # Remove last slash and all that follows it. Not all systems have dirname.
16263 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16264 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16265 # The file is in a subdirectory.
16266 test ! -d "$ac_dir" && mkdir "$ac_dir"
16267 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16268 # A "../" for each directory in $ac_dir_suffix.
16269 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16270 else
16271 ac_dir_suffix= ac_dots=
16274 case "$ac_given_srcdir" in
16275 .) srcdir=.
16276 if test -z "$ac_dots"; then top_srcdir=.
16277 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16278 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16279 *) # Relative path.
16280 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16281 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16282 esac
16284 case "$ac_given_INSTALL" in
16285 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16286 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16287 esac
16289 echo creating "$ac_file"
16290 rm -f "$ac_file"
16291 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16292 case "$ac_file" in
16293 *Makefile*) ac_comsub="1i\\
16294 # $configure_input" ;;
16295 *) ac_comsub= ;;
16296 esac
16298 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16299 sed -e "$ac_comsub
16300 s%@configure_input@%$configure_input%g
16301 s%@srcdir@%$srcdir%g
16302 s%@top_srcdir@%$top_srcdir%g
16303 s%@INSTALL@%$INSTALL%g
16304 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16305 fi; done
16306 rm -f conftest.s*
16308 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16309 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16311 # ac_d sets the value in "#define NAME VALUE" lines.
16312 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16313 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16314 ac_dC='\3'
16315 ac_dD='%g'
16316 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16317 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16318 ac_uB='\([ ]\)%\1#\2define\3'
16319 ac_uC=' '
16320 ac_uD='\4%g'
16321 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16322 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16323 ac_eB='$%\1#\2define\3'
16324 ac_eC=' '
16325 ac_eD='%g'
16327 if test "${CONFIG_HEADERS+set}" != set; then
16329 cat >> $CONFIG_STATUS <<EOF
16330 CONFIG_HEADERS="config.h"
16332 cat >> $CONFIG_STATUS <<\EOF
16334 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16335 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16336 case "$ac_file" in
16337 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16338 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16339 *) ac_file_in="${ac_file}.in" ;;
16340 esac
16342 echo creating $ac_file
16344 rm -f conftest.frag conftest.in conftest.out
16345 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16346 cat $ac_file_inputs > conftest.in
16350 # Transform confdefs.h into a sed script conftest.vals that substitutes
16351 # the proper values into config.h.in to produce config.h. And first:
16352 # Protect against being on the right side of a sed subst in config.status.
16353 # Protect against being in an unquoted here document in config.status.
16354 rm -f conftest.vals
16355 cat > conftest.hdr <<\EOF
16356 s/[\\&%]/\\&/g
16357 s%[\\$`]%\\&%g
16358 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16359 s%ac_d%ac_u%gp
16360 s%ac_u%ac_e%gp
16362 sed -n -f conftest.hdr confdefs.h > conftest.vals
16363 rm -f conftest.hdr
16365 # This sed command replaces #undef with comments. This is necessary, for
16366 # example, in the case of _POSIX_SOURCE, which is predefined and required
16367 # on some systems where configure will not decide to define it.
16368 cat >> conftest.vals <<\EOF
16369 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16372 # Break up conftest.vals because some shells have a limit on
16373 # the size of here documents, and old seds have small limits too.
16375 rm -f conftest.tail
16376 while :
16378 ac_lines=`grep -c . conftest.vals`
16379 # grep -c gives empty output for an empty file on some AIX systems.
16380 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16381 # Write a limited-size here document to conftest.frag.
16382 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16383 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16384 echo 'CEOF
16385 sed -f conftest.frag conftest.in > conftest.out
16386 rm -f conftest.in
16387 mv conftest.out conftest.in
16388 ' >> $CONFIG_STATUS
16389 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16390 rm -f conftest.vals
16391 mv conftest.tail conftest.vals
16392 done
16393 rm -f conftest.vals
16395 cat >> $CONFIG_STATUS <<\EOF
16396 rm -f conftest.frag conftest.h
16397 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16398 cat conftest.in >> conftest.h
16399 rm -f conftest.in
16400 if cmp -s $ac_file conftest.h 2>/dev/null; then
16401 echo "$ac_file is unchanged"
16402 rm -f conftest.h
16403 else
16404 # Remove last slash and all that follows it. Not all systems have dirname.
16405 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16406 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16407 # The file is in a subdirectory.
16408 test ! -d "$ac_dir" && mkdir "$ac_dir"
16410 rm -f $ac_file
16411 mv conftest.h $ac_file
16413 fi; done
16417 cat >> $CONFIG_STATUS <<EOF
16418 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"
16419 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 \
16420 include/bits/ctype_base.h \
16421 include/bits/ctype_inline.h \
16422 include/bits/ctype_noninline.h include/bits/atomicity.h"
16425 cat >> $CONFIG_STATUS <<\EOF
16426 srcdir=$ac_given_srcdir
16427 while test -n "$ac_sources"; do
16428 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16429 set $ac_sources; ac_source=$1; shift; ac_sources=$*
16431 echo "linking $srcdir/$ac_source to $ac_dest"
16433 if test ! -r $srcdir/$ac_source; then
16434 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
16436 rm -f $ac_dest
16438 # Make relative symlinks.
16439 # Remove last slash and all that follows it. Not all systems have dirname.
16440 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
16441 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
16442 # The dest file is in a subdirectory.
16443 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
16444 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
16445 # A "../" for each directory in $ac_dest_dir_suffix.
16446 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
16447 else
16448 ac_dest_dir_suffix= ac_dots=
16451 case "$srcdir" in
16452 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
16453 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
16454 esac
16456 # Make a symlink if possible; otherwise try a hard link.
16457 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16458 ln $srcdir/$ac_source $ac_dest; then :
16459 else
16460 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
16462 done
16464 cat >> $CONFIG_STATUS <<EOF
16466 srcdir=${srcdir}
16467 host=${host}
16468 target=${target}
16469 with_multisubdir=${with_multisubdir}
16470 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16471 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16472 glibcpp_basedir=${glibcpp_basedir}
16473 CC="${CC}"
16474 CXX="${CXX}"
16477 cat >> $CONFIG_STATUS <<\EOF
16478 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
16479 if test -n "$CONFIG_FILES"; then
16480 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
16481 grep '^MULTISUBDIR =' Makefile >> src/Makefile
16482 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
16484 chmod +x tests_flags
16485 chmod +x mkcheck
16487 exit 0
16489 chmod +x $CONFIG_STATUS
16490 rm -fr confdefs* $ac_clean_files
16491 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16495 # Generate bits/c++config.h
16496 # NB: This must be the first generated file as others include it. . .
16497 $srcdir/mkc++config $blddir $srcdir
16499 # Generate bits/std_limits.h and src/limitsMEMBERS.cc
16500 if test ! -f stamp-limits; then
16501 $srcdir/mknumeric_limits $blddir $srcdir $xcompiling
16502 if test ! -f include/bits/std_limits.h; then
16503 echo "mknumeric_limits failed to execute properly: exiting"
16504 exit 1
16505 else
16506 touch stamp-limits
16511 # Sanity checking & User-visible messages.
16512 # Checks down here, otherwise they get scrolled off before
16513 # the user will notice.
16515 # Trying to get more people to read documentation. Possibly remove
16516 # check and warn all the time. There is no "informational" AC_MSG_
16517 # macro, so these are going to be printed even when --quiet/--silent
16518 # is given.
16519 if test ! -f stamp-sanity-warned; then
16520 touch stamp-sanity-warned
16521 echo ""
16522 echo "Please make certain that you read the installation information here:"
16523 echo " faster => ${srcdir}/docs/install.html"
16524 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
16525 echo ""
16526 echo "and the configuration information here:"
16527 echo " faster => ${srcdir}/docs/configopts.html"
16528 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
16529 echo ""
16530 echo "before proceeding with ${_cv_gnu_make_command}."
16531 echo ""