2001-02-15 Benjamin Kosnik <bkoz@redhat.com>
[official-gcc.git] / libstdc++-v3 / configure
blobe694a0fadc86da7b56a483a2fa56354342169156
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.90.8
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 # configure.host sets the following important variables
1566 # glibcpp_cflags - host specific C compiler flags
1567 # glibcpp_cxxflags - host specific C++ compiler flags
1568 glibcpp_cflags=
1569 glibcpp_cxxflags=
1571 . ${glibcpp_basedir}/configure.host
1573 case ${glibcpp_basedir} in
1574 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1575 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1576 esac
1578 # This does for the target what configure.host does for the host. In
1579 # addition to modifying the same flags, it also sets up symlinks.
1581 . ${glibcpp_basedir}/configure.target
1582 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1583 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1587 GLIBCPP_CFLAGS="${glibcpp_cflags}"
1588 GLIBCPP_CXXFLAGS="${glibcpp_cxxflags}"
1594 # Check whether --enable-shared or --disable-shared was given.
1595 if test "${enable_shared+set}" = set; then
1596 enableval="$enable_shared"
1597 p=${PACKAGE-default}
1598 case "$enableval" in
1599 yes) enable_shared=yes ;;
1600 no) enable_shared=no ;;
1602 enable_shared=no
1603 # Look at the argument we got. We use all the common list separators.
1604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1605 for pkg in $enableval; do
1606 if test "X$pkg" = "X$p"; then
1607 enable_shared=yes
1609 done
1610 IFS="$ac_save_ifs"
1612 esac
1613 else
1614 enable_shared=yes
1617 # Check whether --enable-static or --disable-static was given.
1618 if test "${enable_static+set}" = set; then
1619 enableval="$enable_static"
1620 p=${PACKAGE-default}
1621 case "$enableval" in
1622 yes) enable_static=yes ;;
1623 no) enable_static=no ;;
1625 enable_static=no
1626 # Look at the argument we got. We use all the common list separators.
1627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1628 for pkg in $enableval; do
1629 if test "X$pkg" = "X$p"; then
1630 enable_static=yes
1632 done
1633 IFS="$ac_save_ifs"
1635 esac
1636 else
1637 enable_static=yes
1640 # Check whether --enable-fast-install or --disable-fast-install was given.
1641 if test "${enable_fast_install+set}" = set; then
1642 enableval="$enable_fast_install"
1643 p=${PACKAGE-default}
1644 case "$enableval" in
1645 yes) enable_fast_install=yes ;;
1646 no) enable_fast_install=no ;;
1648 enable_fast_install=no
1649 # Look at the argument we got. We use all the common list separators.
1650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1651 for pkg in $enableval; do
1652 if test "X$pkg" = "X$p"; then
1653 enable_fast_install=yes
1655 done
1656 IFS="$ac_save_ifs"
1658 esac
1659 else
1660 enable_fast_install=yes
1663 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1664 if test "${with_gnu_ld+set}" = set; then
1665 withval="$with_gnu_ld"
1666 test "$withval" = no || with_gnu_ld=yes
1667 else
1668 with_gnu_ld=no
1671 ac_prog=ld
1672 if test "$ac_cv_prog_gcc" = yes; then
1673 # Check if gcc -print-prog-name=ld gives a path.
1674 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1675 echo "configure:1676: checking for ld used by GCC" >&5
1676 case $host in
1677 *-*-mingw*)
1678 # gcc leaves a trailing carriage return which upsets mingw
1679 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1681 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1682 esac
1683 case "$ac_prog" in
1684 # Accept absolute paths.
1685 [\\/]* | [A-Za-z]:[\\/]*)
1686 re_direlt='/[^/][^/]*/\.\./'
1687 # Canonicalize the path of ld
1688 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1689 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1690 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1691 done
1692 test -z "$LD" && LD="$ac_prog"
1695 # If it fails, then pretend we aren't using GCC.
1696 ac_prog=ld
1699 # If it is relative, then search for the first ld in PATH.
1700 with_gnu_ld=unknown
1702 esac
1703 elif test "$with_gnu_ld" = yes; then
1704 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1705 echo "configure:1706: checking for GNU ld" >&5
1706 else
1707 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1708 echo "configure:1709: checking for non-GNU ld" >&5
1710 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1711 echo $ac_n "(cached) $ac_c" 1>&6
1712 else
1713 if test -z "$LD"; then
1714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1715 for ac_dir in $PATH; do
1716 test -z "$ac_dir" && ac_dir=.
1717 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1718 ac_cv_path_LD="$ac_dir/$ac_prog"
1719 # Check to see if the program is GNU ld. I'd rather use --version,
1720 # but apparently some GNU ld's only accept -v.
1721 # Break only if it was the GNU/non-GNU ld that we prefer.
1722 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1723 test "$with_gnu_ld" != no && break
1724 else
1725 test "$with_gnu_ld" != yes && break
1728 done
1729 IFS="$ac_save_ifs"
1730 else
1731 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1735 LD="$ac_cv_path_LD"
1736 if test -n "$LD"; then
1737 echo "$ac_t""$LD" 1>&6
1738 else
1739 echo "$ac_t""no" 1>&6
1741 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1742 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1743 echo "configure:1744: checking if the linker ($LD) is GNU ld" >&5
1744 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1745 echo $ac_n "(cached) $ac_c" 1>&6
1746 else
1747 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1748 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1749 ac_cv_prog_gnu_ld=yes
1750 else
1751 ac_cv_prog_gnu_ld=no
1755 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1756 with_gnu_ld=$ac_cv_prog_gnu_ld
1759 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1760 echo "configure:1761: checking for $LD option to reload object files" >&5
1761 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1763 else
1764 lt_cv_ld_reload_flag='-r'
1767 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1768 reload_flag=$lt_cv_ld_reload_flag
1769 test -n "$reload_flag" && reload_flag=" $reload_flag"
1771 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1772 echo "configure:1773: checking for BSD-compatible nm" >&5
1773 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1775 else
1776 if test -n "$NM"; then
1777 # Let the user override the test.
1778 ac_cv_path_NM="$NM"
1779 else
1780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1781 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1782 test -z "$ac_dir" && ac_dir=.
1783 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1784 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1785 # Check to see if the nm accepts a BSD-compat flag.
1786 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1787 # nm: unknown option "B" ignored
1788 # Tru64's nm complains that /dev/null is an invalid object file
1789 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1790 ac_cv_path_NM="$tmp_nm -B"
1791 break
1792 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1793 ac_cv_path_NM="$tmp_nm -p"
1794 break
1795 else
1796 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1797 continue # so that we can try to find one that supports BSD flags
1800 done
1801 IFS="$ac_save_ifs"
1802 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1806 NM="$ac_cv_path_NM"
1807 echo "$ac_t""$NM" 1>&6
1809 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1810 echo "configure:1811: checking whether ln -s works" >&5
1811 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1813 else
1814 rm -f conftestdata
1815 if ln -s X conftestdata 2>/dev/null
1816 then
1817 rm -f conftestdata
1818 ac_cv_prog_LN_S="ln -s"
1819 else
1820 ac_cv_prog_LN_S=ln
1823 LN_S="$ac_cv_prog_LN_S"
1824 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1825 echo "$ac_t""yes" 1>&6
1826 else
1827 echo "$ac_t""no" 1>&6
1830 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1831 echo "configure:1832: checking how to recognise dependant libraries" >&5
1832 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1833 echo $ac_n "(cached) $ac_c" 1>&6
1834 else
1835 lt_cv_file_magic_cmd='$MAGIC_CMD'
1836 lt_cv_file_magic_test_file=
1837 lt_cv_deplibs_check_method='unknown'
1838 # Need to set the preceding variable on all platforms that support
1839 # interlibrary dependencies.
1840 # 'none' -- dependencies not supported.
1841 # `unknown' -- same as none, but documents that we really don't know.
1842 # 'pass_all' -- all dependencies passed with no checks.
1843 # 'test_compile' -- check by making test program.
1844 # 'file_magic [regex]' -- check by looking for files in library path
1845 # which responds to the $file_magic_cmd with a given egrep regex.
1846 # If you have `file' or equivalent on your system and you're not sure
1847 # whether `pass_all' will *always* work, you probably want this one.
1849 case "$host_os" in
1850 aix4*)
1851 lt_cv_deplibs_check_method=pass_all
1854 beos*)
1855 lt_cv_deplibs_check_method=pass_all
1858 bsdi4*)
1859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1860 lt_cv_file_magic_cmd='/usr/bin/file -L'
1861 lt_cv_file_magic_test_file=/shlib/libc.so
1864 cygwin* | mingw* |pw32*)
1865 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1866 lt_cv_file_magic_cmd='$OBJDUMP -f'
1869 freebsd* )
1870 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1871 case "$host_cpu" in
1872 i*86 )
1873 # Not sure whether the presence of OpenBSD here was a mistake.
1874 # Let's accept both of them until this is cleared up.
1875 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1876 lt_cv_file_magic_cmd=/usr/bin/file
1877 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1879 esac
1880 else
1881 lt_cv_deplibs_check_method=pass_all
1885 gnu*)
1886 lt_cv_deplibs_check_method=pass_all
1889 hpux10.20*)
1890 # TODO: Does this work for hpux-11 too?
1891 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1892 lt_cv_file_magic_cmd=/usr/bin/file
1893 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1896 irix5* | irix6*)
1897 case "$host_os" in
1898 irix5*)
1899 # this will be overridden with pass_all, but let us keep it just in case
1900 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1903 case "$LD" in
1904 *-32|*"-32 ") libmagic=32-bit;;
1905 *-n32|*"-n32 ") libmagic=N32;;
1906 *-64|*"-64 ") libmagic=64-bit;;
1907 *) libmagic=never-match;;
1908 esac
1909 # this will be overridden with pass_all, but let us keep it just in case
1910 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1912 esac
1913 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1914 lt_cv_deplibs_check_method=pass_all
1917 # This must be Linux ELF.
1918 linux-gnu*)
1919 case "$host_cpu" in
1920 alpha* | i*86 | powerpc* | sparc* | ia64* )
1921 lt_cv_deplibs_check_method=pass_all ;;
1923 # glibc up to 2.1.1 does not perform some relocations on ARM
1924 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1925 esac
1926 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1929 netbsd*)
1930 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
1931 else
1932 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1933 lt_cv_file_magic_cmd='/usr/bin/file -L'
1934 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1938 osf3* | osf4* | osf5*)
1939 # this will be overridden with pass_all, but let us keep it just in case
1940 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1941 lt_cv_file_magic_test_file=/shlib/libc.so
1942 lt_cv_deplibs_check_method=pass_all
1945 sco3.2v5*)
1946 lt_cv_deplibs_check_method=pass_all
1949 solaris*)
1950 lt_cv_deplibs_check_method=pass_all
1951 lt_cv_file_magic_test_file=/lib/libc.so
1954 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1955 case "$host_vendor" in
1956 ncr)
1957 lt_cv_deplibs_check_method=pass_all
1959 motorola)
1960 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]'
1961 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1963 esac
1965 esac
1969 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1970 file_magic_cmd=$lt_cv_file_magic_cmd
1971 deplibs_check_method=$lt_cv_deplibs_check_method
1973 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1974 echo "configure:1975: checking for object suffix" >&5
1975 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1977 else
1978 rm -f conftest*
1979 echo 'int i = 1;' > conftest.$ac_ext
1980 if { (eval echo configure:1981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1981 for ac_file in conftest.*; do
1982 case $ac_file in
1983 *.c) ;;
1984 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1985 esac
1986 done
1987 else
1988 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1990 rm -f conftest*
1993 echo "$ac_t""$ac_cv_objext" 1>&6
1994 OBJEXT=$ac_cv_objext
1995 ac_objext=$ac_cv_objext
1997 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1999 # Only perform the check for file, if the check method requires it
2000 case "$deplibs_check_method" in
2001 file_magic*)
2002 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2003 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2004 echo "configure:2005: checking for ${ac_tool_prefix}file" >&5
2005 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
2007 else
2008 case "$MAGIC_CMD" in
2010 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2012 ?:/*)
2013 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2016 ac_save_MAGIC_CMD="$MAGIC_CMD"
2017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2018 ac_dummy="/usr/bin:$PATH"
2019 for ac_dir in $ac_dummy; do
2020 test -z "$ac_dir" && ac_dir=.
2021 if test -f $ac_dir/${ac_tool_prefix}file; then
2022 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2023 if test -n "$file_magic_test_file"; then
2024 case "$deplibs_check_method" in
2025 "file_magic "*)
2026 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2027 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2028 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2029 egrep "$file_magic_regex" > /dev/null; then
2031 else
2032 cat <<EOF 1>&2
2034 *** Warning: the command libtool uses to detect shared libraries,
2035 *** $file_magic_cmd, produces output that libtool cannot recognize.
2036 *** The result is that libtool may fail to recognize shared libraries
2037 *** as such. This will affect the creation of libtool libraries that
2038 *** depend on shared libraries, but programs linked with such libtool
2039 *** libraries will work regardless of this problem. Nevertheless, you
2040 *** may want to report the problem to your system manager and/or to
2041 *** bug-libtool@gnu.org
2044 fi ;;
2045 esac
2047 break
2049 done
2050 IFS="$ac_save_ifs"
2051 MAGIC_CMD="$ac_save_MAGIC_CMD"
2053 esac
2056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2057 if test -n "$MAGIC_CMD"; then
2058 echo "$ac_t""$MAGIC_CMD" 1>&6
2059 else
2060 echo "$ac_t""no" 1>&6
2063 if test -z "$lt_cv_path_MAGIC_CMD"; then
2064 if test -n "$ac_tool_prefix"; then
2065 echo $ac_n "checking for file""... $ac_c" 1>&6
2066 echo "configure:2067: checking for file" >&5
2067 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2068 echo $ac_n "(cached) $ac_c" 1>&6
2069 else
2070 case "$MAGIC_CMD" in
2072 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2074 ?:/*)
2075 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2078 ac_save_MAGIC_CMD="$MAGIC_CMD"
2079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2080 ac_dummy="/usr/bin:$PATH"
2081 for ac_dir in $ac_dummy; do
2082 test -z "$ac_dir" && ac_dir=.
2083 if test -f $ac_dir/file; then
2084 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2085 if test -n "$file_magic_test_file"; then
2086 case "$deplibs_check_method" in
2087 "file_magic "*)
2088 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2089 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2090 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2091 egrep "$file_magic_regex" > /dev/null; then
2093 else
2094 cat <<EOF 1>&2
2096 *** Warning: the command libtool uses to detect shared libraries,
2097 *** $file_magic_cmd, produces output that libtool cannot recognize.
2098 *** The result is that libtool may fail to recognize shared libraries
2099 *** as such. This will affect the creation of libtool libraries that
2100 *** depend on shared libraries, but programs linked with such libtool
2101 *** libraries will work regardless of this problem. Nevertheless, you
2102 *** may want to report the problem to your system manager and/or to
2103 *** bug-libtool@gnu.org
2106 fi ;;
2107 esac
2109 break
2111 done
2112 IFS="$ac_save_ifs"
2113 MAGIC_CMD="$ac_save_MAGIC_CMD"
2115 esac
2118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2119 if test -n "$MAGIC_CMD"; then
2120 echo "$ac_t""$MAGIC_CMD" 1>&6
2121 else
2122 echo "$ac_t""no" 1>&6
2125 else
2126 MAGIC_CMD=:
2132 esac
2134 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2135 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2137 echo "configure:2138: checking for $ac_word" >&5
2138 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2140 else
2141 if test -n "$RANLIB"; then
2142 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2143 else
2144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2145 ac_dummy="$PATH"
2146 for ac_dir in $ac_dummy; do
2147 test -z "$ac_dir" && ac_dir=.
2148 if test -f $ac_dir/$ac_word; then
2149 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2150 break
2152 done
2153 IFS="$ac_save_ifs"
2156 RANLIB="$ac_cv_prog_RANLIB"
2157 if test -n "$RANLIB"; then
2158 echo "$ac_t""$RANLIB" 1>&6
2159 else
2160 echo "$ac_t""no" 1>&6
2164 if test -z "$ac_cv_prog_RANLIB"; then
2165 if test -n "$ac_tool_prefix"; then
2166 # Extract the first word of "ranlib", so it can be a program name with args.
2167 set dummy ranlib; ac_word=$2
2168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2169 echo "configure:2170: checking for $ac_word" >&5
2170 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2172 else
2173 if test -n "$RANLIB"; then
2174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2175 else
2176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2177 ac_dummy="$PATH"
2178 for ac_dir in $ac_dummy; do
2179 test -z "$ac_dir" && ac_dir=.
2180 if test -f $ac_dir/$ac_word; then
2181 ac_cv_prog_RANLIB="ranlib"
2182 break
2184 done
2185 IFS="$ac_save_ifs"
2186 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2189 RANLIB="$ac_cv_prog_RANLIB"
2190 if test -n "$RANLIB"; then
2191 echo "$ac_t""$RANLIB" 1>&6
2192 else
2193 echo "$ac_t""no" 1>&6
2196 else
2197 RANLIB=":"
2201 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2202 set dummy ${ac_tool_prefix}strip; ac_word=$2
2203 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2204 echo "configure:2205: checking for $ac_word" >&5
2205 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2206 echo $ac_n "(cached) $ac_c" 1>&6
2207 else
2208 if test -n "$STRIP"; then
2209 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2210 else
2211 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2212 ac_dummy="$PATH"
2213 for ac_dir in $ac_dummy; do
2214 test -z "$ac_dir" && ac_dir=.
2215 if test -f $ac_dir/$ac_word; then
2216 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2217 break
2219 done
2220 IFS="$ac_save_ifs"
2223 STRIP="$ac_cv_prog_STRIP"
2224 if test -n "$STRIP"; then
2225 echo "$ac_t""$STRIP" 1>&6
2226 else
2227 echo "$ac_t""no" 1>&6
2231 if test -z "$ac_cv_prog_STRIP"; then
2232 if test -n "$ac_tool_prefix"; then
2233 # Extract the first word of "strip", so it can be a program name with args.
2234 set dummy strip; ac_word=$2
2235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2236 echo "configure:2237: checking for $ac_word" >&5
2237 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2239 else
2240 if test -n "$STRIP"; then
2241 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2242 else
2243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2244 ac_dummy="$PATH"
2245 for ac_dir in $ac_dummy; do
2246 test -z "$ac_dir" && ac_dir=.
2247 if test -f $ac_dir/$ac_word; then
2248 ac_cv_prog_STRIP="strip"
2249 break
2251 done
2252 IFS="$ac_save_ifs"
2253 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2256 STRIP="$ac_cv_prog_STRIP"
2257 if test -n "$STRIP"; then
2258 echo "$ac_t""$STRIP" 1>&6
2259 else
2260 echo "$ac_t""no" 1>&6
2263 else
2264 STRIP=":"
2269 # Check for any special flags to pass to ltconfig.
2270 libtool_flags="--cache-file=$cache_file"
2271 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2272 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2273 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2274 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2275 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2276 libtool_flags="$libtool_flags --enable-dlopen"
2278 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2279 if test "${enable_libtool_lock+set}" = set; then
2280 enableval="$enable_libtool_lock"
2284 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2285 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2287 # Check whether --with-pic or --without-pic was given.
2288 if test "${with_pic+set}" = set; then
2289 withval="$with_pic"
2290 pic_mode="$withval"
2291 else
2292 pic_mode=default
2295 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2296 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2298 # Some flags need to be propagated to the compiler or linker for good
2299 # libtool support.
2300 case "$host" in
2301 *-*-irix6*)
2302 # Find out which ABI we are using.
2303 echo '#line 2304 "configure"' > conftest.$ac_ext
2304 if { (eval echo configure:2305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2305 case "`/usr/bin/file conftest.o`" in
2306 *32-bit*)
2307 LD="${LD-ld} -32"
2309 *N32*)
2310 LD="${LD-ld} -n32"
2312 *64-bit*)
2313 LD="${LD-ld} -64"
2315 esac
2317 rm -rf conftest*
2320 *-*-sco3.2v5*)
2321 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2322 SAVE_CFLAGS="$CFLAGS"
2323 CFLAGS="$CFLAGS -belf"
2324 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2325 echo "configure:2326: checking whether the C compiler needs -belf" >&5
2326 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2328 else
2330 ac_ext=c
2331 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2334 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2335 cross_compiling=$ac_cv_prog_cc_cross
2337 cat > conftest.$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2341 int main() {
2343 ; return 0; }
2345 if { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2346 rm -rf conftest*
2347 lt_cv_cc_needs_belf=yes
2348 else
2349 echo "configure: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2351 rm -rf conftest*
2352 lt_cv_cc_needs_belf=no
2354 rm -f conftest*
2355 ac_ext=c
2356 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2359 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2360 cross_compiling=$ac_cv_prog_cc_cross
2364 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2365 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2366 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2367 CFLAGS="$SAVE_CFLAGS"
2372 esac
2374 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2375 echo "configure:2376: checking how to run the C++ preprocessor" >&5
2376 if test -z "$CXXCPP"; then
2377 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2378 echo $ac_n "(cached) $ac_c" 1>&6
2379 else
2380 ac_ext=C
2381 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2382 ac_cpp='$CXXCPP $CPPFLAGS'
2383 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2384 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2385 cross_compiling=$ac_cv_prog_cxx_cross
2386 CXXCPP="${CXX-g++} -E"
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 #include <stdlib.h>
2392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2393 { (eval echo configure:2394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2395 if test -z "$ac_err"; then
2397 else
2398 echo "$ac_err" >&5
2399 echo "configure: failed program was:" >&5
2400 cat conftest.$ac_ext >&5
2401 rm -rf conftest*
2402 CXXCPP=/lib/cpp
2404 rm -f conftest*
2405 ac_cv_prog_CXXCPP="$CXXCPP"
2406 ac_ext=c
2407 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2408 ac_cpp='$CPP $CPPFLAGS'
2409 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2410 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2411 cross_compiling=$ac_cv_prog_cc_cross
2414 CXXCPP="$ac_cv_prog_CXXCPP"
2415 echo "$ac_t""$CXXCPP" 1>&6
2418 # Save cache, so that ltconfig can load it
2419 cat > confcache <<\EOF
2420 # This file is a shell script that caches the results of configure
2421 # tests run on this system so they can be shared between configure
2422 # scripts and configure runs. It is not useful on other systems.
2423 # If it contains results you don't want to keep, you may remove or edit it.
2425 # By default, configure uses ./config.cache as the cache file,
2426 # creating it if it does not exist already. You can give configure
2427 # the --cache-file=FILE option to use a different cache file; that is
2428 # what configure does when it calls configure scripts in
2429 # subdirectories, so they share the cache.
2430 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2431 # config.status only pays attention to the cache file if you give it the
2432 # --recheck option to rerun configure.
2435 # The following way of writing the cache mishandles newlines in values,
2436 # but we know of no workaround that is simple, portable, and efficient.
2437 # So, don't put newlines in cache variables' values.
2438 # Ultrix sh set writes to stderr and can't be redirected directly,
2439 # and sets the high bit in the cache file unless we assign to the vars.
2440 (set) 2>&1 |
2441 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2442 *ac_space=\ *)
2443 # `set' does not quote correctly, so add quotes (double-quote substitution
2444 # turns \\\\ into \\, and sed turns \\ into \).
2445 sed -n \
2446 -e "s/'/'\\\\''/g" \
2447 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2450 # `set' quotes correctly as required by POSIX, so do not add quotes.
2451 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2453 esac >> confcache
2454 if cmp -s $cache_file confcache; then
2456 else
2457 if test -w $cache_file; then
2458 echo "updating cache $cache_file"
2459 cat confcache > $cache_file
2460 else
2461 echo "not updating unwritable cache $cache_file"
2464 rm -f confcache
2467 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2468 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2469 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2470 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2471 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2472 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2473 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2474 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2475 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2476 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2478 # Reload cache, that may have been modified by ltconfig
2479 if test -r "$cache_file"; then
2480 echo "loading cache $cache_file"
2481 . $cache_file
2482 else
2483 echo "creating cache $cache_file"
2484 > $cache_file
2488 # This can be used to rebuild libtool when needed
2489 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2491 # Always use our own libtool.
2492 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2494 # Redirect the config.log output again, so that the ltconfig log is not
2495 # clobbered by the next message.
2496 exec 5>>./config.log
2501 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2502 lt_save_CC="$CC"
2503 lt_save_CFLAGS="$CFLAGS"
2504 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2505 MAGIC_CMD="$MAGIC_CMD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2506 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2507 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2508 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2509 deplibs_check_method="$deplibs_check_method" \
2510 file_magic_cmd="$file_magic_cmd" \
2511 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2512 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2513 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2514 CC="$lt_save_CC"
2515 CFLAGS="$lt_save_CFLAGS"
2517 # Redirect the config.log output again, so that the ltconfig log is not
2518 # clobbered by the next message.
2519 exec 5>>./config.log
2529 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2530 echo "configure:2531: checking for GNU make" >&5
2531 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2533 else
2534 _cv_gnu_make_command='' ;
2535 for a in "${MAKE-make}" make gmake gnumake ; do
2536 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2537 then
2538 _cv_gnu_make_command=$a ;
2539 break;
2541 done ;
2545 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2546 if test "x$_cv_gnu_make_command" != "x" ; then
2547 ifGNUmake='' ;
2548 else
2549 ifGNUmake='#' ;
2553 if test "x$_cv_gnu_make_command" = "x"; then
2554 { echo "configure: error: GNU make not found. Please install it or correct your path." 1>&2; exit 1; }
2560 # Check for c++ or library specific bits that don't require linking.
2562 if test ! -f stamp-sanity-compiler; then
2563 echo $ac_n "checking for g++ that will successfully compile libstdc++-v3""... $ac_c" 1>&6
2564 echo "configure:2565: checking for g++ that will successfully compile libstdc++-v3" >&5
2566 ac_ext=C
2567 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2568 ac_cpp='$CXXCPP $CPPFLAGS'
2569 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2570 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2571 cross_compiling=$ac_cv_prog_cxx_cross
2573 cat > conftest.$ac_ext <<EOF
2574 #line 2575 "configure"
2575 #include "confdefs.h"
2577 #if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
2579 #endif
2582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2583 egrep "ok" >/dev/null 2>&1; then
2584 rm -rf conftest*
2585 gpp_satisfactory=yes
2586 else
2587 rm -rf conftest*
2588 { echo "configure: error: please upgrade to gcc-2.95 or above" 1>&2; exit 1; }
2590 rm -f conftest*
2592 ac_ext=c
2593 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2594 ac_cpp='$CPP $CPPFLAGS'
2595 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2596 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2597 cross_compiling=$ac_cv_prog_cc_cross
2599 echo "$ac_t""$gpp_satisfactory" 1>&6
2600 touch stamp-sanity-compiler
2604 # Enable all the crazy c++ stuff. C_MBCHAR must come early.
2605 # Check whether --enable-debug or --disable-debug was given.
2606 if test "${enable_debug+set}" = set; then
2607 enableval="$enable_debug"
2608 case "${enableval}" in
2609 yes) enable_debug=yes ;;
2610 no) enable_debug=no ;;
2611 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2612 esac
2613 else
2614 enable_debug=no
2617 case "${enable_debug}" in
2618 yes)
2619 DEBUG_FLAGS='-O0 -ggdb3'
2621 no)
2622 DEBUG_FLAGS='-g'
2624 esac
2627 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2628 echo "configure:2629: checking how to run the C preprocessor" >&5
2629 # On Suns, sometimes $CPP names a directory.
2630 if test -n "$CPP" && test -d "$CPP"; then
2631 CPP=
2633 if test -z "$CPP"; then
2634 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2635 echo $ac_n "(cached) $ac_c" 1>&6
2636 else
2637 # This must be in double quotes, not single quotes, because CPP may get
2638 # substituted into the Makefile and "${CC-cc}" will confuse make.
2639 CPP="${CC-cc} -E"
2640 # On the NeXT, cc -E runs the code through the compiler's parser,
2641 # not just through cpp.
2642 cat > conftest.$ac_ext <<EOF
2643 #line 2644 "configure"
2644 #include "confdefs.h"
2645 #include <assert.h>
2646 Syntax Error
2648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2649 { (eval echo configure:2650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2651 if test -z "$ac_err"; then
2653 else
2654 echo "$ac_err" >&5
2655 echo "configure: failed program was:" >&5
2656 cat conftest.$ac_ext >&5
2657 rm -rf conftest*
2658 CPP="${CC-cc} -E -traditional-cpp"
2659 cat > conftest.$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2662 #include <assert.h>
2663 Syntax Error
2665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2666 { (eval echo configure:2667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2668 if test -z "$ac_err"; then
2670 else
2671 echo "$ac_err" >&5
2672 echo "configure: failed program was:" >&5
2673 cat conftest.$ac_ext >&5
2674 rm -rf conftest*
2675 CPP="${CC-cc} -nologo -E"
2676 cat > conftest.$ac_ext <<EOF
2677 #line 2678 "configure"
2678 #include "confdefs.h"
2679 #include <assert.h>
2680 Syntax Error
2682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2683 { (eval echo configure:2684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2685 if test -z "$ac_err"; then
2687 else
2688 echo "$ac_err" >&5
2689 echo "configure: failed program was:" >&5
2690 cat conftest.$ac_ext >&5
2691 rm -rf conftest*
2692 CPP=/lib/cpp
2694 rm -f conftest*
2696 rm -f conftest*
2698 rm -f conftest*
2699 ac_cv_prog_CPP="$CPP"
2701 CPP="$ac_cv_prog_CPP"
2702 else
2703 ac_cv_prog_CPP="$CPP"
2705 echo "$ac_t""$CPP" 1>&6
2708 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2709 echo "configure:2710: checking for cstdio to use" >&5
2710 # Check whether --enable-cstdio or --disable-cstdio was given.
2711 if test "${enable_cstdio+set}" = set; then
2712 enableval="$enable_cstdio"
2713 if test x$enable_cstdio = xno; then
2714 enable_cstdio=stdio
2716 else
2717 enable_cstdio=stdio
2721 enable_cstdio_flag=$enable_cstdio
2723 case x${enable_cstdio_flag} in
2724 xlibio)
2725 CSTDIO_H=config/c_io_libio.h
2726 CSTDIO_CC=config/c_io_libio.cc
2727 echo "$ac_t""libio" 1>&6
2729 # see if we are on a system with libio native (ie, linux)
2730 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2731 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2732 echo "configure:2733: checking for libio.h" >&5
2733 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2734 echo $ac_n "(cached) $ac_c" 1>&6
2735 else
2736 cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2739 #include <libio.h>
2741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2742 { (eval echo configure:2743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2744 if test -z "$ac_err"; then
2745 rm -rf conftest*
2746 eval "ac_cv_header_$ac_safe=yes"
2747 else
2748 echo "$ac_err" >&5
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2751 rm -rf conftest*
2752 eval "ac_cv_header_$ac_safe=no"
2754 rm -f conftest*
2756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2757 echo "$ac_t""yes" 1>&6
2758 has_libio=yes
2759 else
2760 echo "$ac_t""no" 1>&6
2761 has_libio=no
2765 # Need to check and see what version of glibc is being used. If
2766 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2767 # compile most of libio for linux systems.
2768 if test x$has_libio = x"yes"; then
2769 case "$target" in
2770 *-*-linux*)
2771 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2772 echo "configure:2773: checking for glibc version >= 2.2" >&5
2773 cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2777 #include <features.h>
2778 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2780 #endif
2783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2784 egrep "ok" >/dev/null 2>&1; then
2785 rm -rf conftest*
2786 glibc_satisfactory=yes
2787 else
2788 rm -rf conftest*
2789 glibc_satisfactory=no
2791 rm -f conftest*
2793 echo "$ac_t""$glibc_satisfactory" 1>&6
2795 esac
2797 # XXX at the moment, admit defeat and force the recompilation
2798 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2799 glibc_satisfactory=no
2801 if test x$glibc_satisfactory = x"yes"; then
2802 need_libio=no
2803 need_wlibio=no
2804 else
2805 need_libio=yes
2806 # bkoz XXX need to add checks to enable this
2807 # pme XXX here's a first pass at such a check
2808 if test x$enable_c_mbchar != xno; then
2809 need_wlibio=yes
2810 else
2811 need_wlibio=no
2815 else
2816 # Using libio, but <libio.h> doesn't exist on the target system. . .
2817 need_libio=yes
2818 # bkoz XXX need to add checks to enable this
2819 # pme XXX here's a first pass at such a check
2820 if test x$enable_c_mbchar != xno; then
2821 need_wlibio=yes
2822 else
2823 need_wlibio=no
2827 xstdio | x | xno | xnone | xyes)
2828 # default
2829 CSTDIO_H=config/c_io_stdio.h
2830 CSTDIO_CC=config/c_io_stdio.cc
2831 echo "$ac_t""stdio" 1>&6
2833 # We're not using stdio.
2834 need_libio=no
2835 need_wlibio=no
2836 # Wide characters are not supported with this package.
2837 enable_c_mbchar=no
2840 echo "$enable_cstdio is an unknown io package" 1>&2
2841 exit 1
2843 esac
2847 # 2000-08-04 bkoz hack
2848 CCODECVT_C=config/c_io_libio_codecvt.c
2850 # 2000-08-04 bkoz hack
2854 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2855 GLIBCPP_BUILD_LIBIO_TRUE=
2856 GLIBCPP_BUILD_LIBIO_FALSE='#'
2857 else
2858 GLIBCPP_BUILD_LIBIO_TRUE='#'
2859 GLIBCPP_BUILD_LIBIO_FALSE=
2863 if test "$need_libio" = yes; then
2864 GLIBCPP_NEED_LIBIO_TRUE=
2865 GLIBCPP_NEED_LIBIO_FALSE='#'
2866 else
2867 GLIBCPP_NEED_LIBIO_TRUE='#'
2868 GLIBCPP_NEED_LIBIO_FALSE=
2872 if test "$need_wlibio" = yes; then
2873 GLIBCPP_NEED_WLIBIO_TRUE=
2874 GLIBCPP_NEED_WLIBIO_FALSE='#'
2875 else
2876 GLIBCPP_NEED_WLIBIO_TRUE='#'
2877 GLIBCPP_NEED_WLIBIO_FALSE=
2879 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2880 libio_la=../libio/libio.la
2881 else
2882 libio_la=
2887 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2888 echo "configure:2889: checking for clocale to use" >&5
2889 # Check whether --enable-clocale or --disable-clocale was given.
2890 if test "${enable_clocale+set}" = set; then
2891 enableval="$enable_clocale"
2892 if test x$enable_clocale = xno; then
2893 enable_clocale=generic
2895 else
2896 enable_clocale=generic
2900 enable_clocale_flag=$enable_clocale
2902 case x${enable_clocale_flag} in
2903 xgnu)
2904 CLOCALE_H=config/c_locale_gnu.h
2905 CLOCALE_CC=config/c_locale_gnu.cc
2906 echo "$ac_t""gnu" 1>&6
2908 xgeneric)
2909 CLOCALE_H=config/c_locale_generic.h
2910 CLOCALE_CC=config/c_locale_generic.cc
2911 echo "$ac_t""generic" 1>&6
2914 echo "$enable_clocale is an unknown locale package" 1>&2
2915 exit 1
2917 esac
2922 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
2923 if test "${enable_c_mbchar+set}" = set; then
2924 enableval="$enable_c_mbchar"
2925 case "$enableval" in
2926 yes) enable_c_mbchar=yes ;;
2927 no) enable_c_mbchar=no ;;
2928 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
2929 esac
2930 else
2931 enable_c_mbchar=yes
2935 # Check whether --enable-long-long or --disable-long-long was given.
2936 if test "${enable_long_long+set}" = set; then
2937 enableval="$enable_long_long"
2938 case "$enableval" in
2939 yes) enable_long_long=yes ;;
2940 no) enable_long_long=no ;;
2941 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
2942 esac
2943 else
2944 enable_long_long=no
2947 # Allow use of os-dependent settings, so that macros that turn on
2948 # C99 capabilities can be defined and used in a consistent way.
2949 OS_INC_PATH=${srcdir}/$os_include_dir
2950 ac_test_CFLAGS="${CFLAGS+set}"
2951 ac_save_CFLAGS="$CFLAGS"
2952 CFLAGS="-I$OS_INC_PATH"
2954 # Check for the existence of functions used if long long is enabled.
2955 echo $ac_n "checking for strtoll""... $ac_c" 1>&6
2956 echo "configure:2957: checking for strtoll" >&5
2957 if eval "test \"`echo '$''{'ac_cv_func_strtoll'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2959 else
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 /* System header to define __stub macros and hopefully few prototypes,
2964 which can conflict with char strtoll(); below. */
2965 #include <assert.h>
2966 /* Override any gcc2 internal prototype to avoid an error. */
2967 /* We use char because int might match the return type of a gcc2
2968 builtin and then its argument prototype would still apply. */
2969 char strtoll();
2971 int main() {
2973 /* The GNU C library defines this for functions which it implements
2974 to always fail with ENOSYS. Some functions are actually named
2975 something starting with __ and the normal name is an alias. */
2976 #if defined (__stub_strtoll) || defined (__stub___strtoll)
2977 choke me
2978 #else
2979 strtoll();
2980 #endif
2982 ; return 0; }
2984 if { (eval echo configure:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2985 rm -rf conftest*
2986 eval "ac_cv_func_strtoll=yes"
2987 else
2988 echo "configure: failed program was:" >&5
2989 cat conftest.$ac_ext >&5
2990 rm -rf conftest*
2991 eval "ac_cv_func_strtoll=no"
2993 rm -f conftest*
2996 if eval "test \"`echo '$ac_cv_func_'strtoll`\" = yes"; then
2997 echo "$ac_t""yes" 1>&6
2999 else
3000 echo "$ac_t""no" 1>&6
3001 ac_strtoll=no
3004 echo $ac_n "checking for strtoull""... $ac_c" 1>&6
3005 echo "configure:3006: checking for strtoull" >&5
3006 if eval "test \"`echo '$''{'ac_cv_func_strtoull'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3008 else
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3012 /* System header to define __stub macros and hopefully few prototypes,
3013 which can conflict with char strtoull(); below. */
3014 #include <assert.h>
3015 /* Override any gcc2 internal prototype to avoid an error. */
3016 /* We use char because int might match the return type of a gcc2
3017 builtin and then its argument prototype would still apply. */
3018 char strtoull();
3020 int main() {
3022 /* The GNU C library defines this for functions which it implements
3023 to always fail with ENOSYS. Some functions are actually named
3024 something starting with __ and the normal name is an alias. */
3025 #if defined (__stub_strtoull) || defined (__stub___strtoull)
3026 choke me
3027 #else
3028 strtoull();
3029 #endif
3031 ; return 0; }
3033 if { (eval echo configure:3034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3034 rm -rf conftest*
3035 eval "ac_cv_func_strtoull=yes"
3036 else
3037 echo "configure: failed program was:" >&5
3038 cat conftest.$ac_ext >&5
3039 rm -rf conftest*
3040 eval "ac_cv_func_strtoull=no"
3042 rm -f conftest*
3045 if eval "test \"`echo '$ac_cv_func_'strtoull`\" = yes"; then
3046 echo "$ac_t""yes" 1>&6
3048 else
3049 echo "$ac_t""no" 1>&6
3050 ac_strtoull=no
3054 # Check for lldiv_t, et. al.
3055 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3056 echo "configure:3057: checking for lldiv_t declaration" >&5
3057 if eval "test \"`echo '$''{'glibcpp_lldiv_t_use'+set}'`\" = set"; then
3058 echo $ac_n "(cached) $ac_c" 1>&6
3059 else
3061 cat > conftest.$ac_ext <<EOF
3062 #line 3063 "configure"
3063 #include "confdefs.h"
3064 #include <bits/os_defines.h>
3065 #include <stdlib.h>
3066 int main() {
3067 lldiv_t mydivt;
3068 ; return 0; }
3070 if { (eval echo configure:3071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3071 rm -rf conftest*
3072 glibcpp_lldiv_t_use=yes
3073 else
3074 echo "configure: failed program was:" >&5
3075 cat conftest.$ac_ext >&5
3076 rm -rf conftest*
3077 glibcpp_lldiv_t_use=no
3079 rm -f conftest*
3083 echo "$ac_t""$glibcpp_lldiv_t_use" 1>&6
3084 if test x$glibcpp_lldiv_t_use = x"yes"; then
3085 cat >> confdefs.h <<\EOF
3086 #define HAVE_LLDIV_T 1
3091 echo $ac_n "checking for enabled long long""... $ac_c" 1>&6
3092 echo "configure:3093: checking for enabled long long" >&5
3093 if test x"$ac_strtoll" = xno || test x"$ac_strtoull" = xno; then
3094 enable_long_long=no;
3095 fi;
3096 echo "$ac_t""$enable_long_long" 1>&6
3098 # Option parsed, now set things appropriately
3099 if test x"$enable_long_long" = xyes; then
3100 cat >> confdefs.h <<\EOF
3101 #define _GLIBCPP_USE_LONG_LONG 1
3106 # Reset CFLAGS
3107 CFLAGS="$ac_save_CFLAGS"
3109 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3110 echo "configure:3111: checking for c header strategy to use" >&5
3111 # Check whether --enable-cheaders or --disable-cheaders was given.
3112 if test "${enable_cheaders+set}" = set; then
3113 enableval="$enable_cheaders"
3115 case "$enableval" in
3117 enable_cheaders=c
3119 c_std)
3120 enable_cheaders=c_std
3122 c_shadow)
3123 enable_cheaders=c_shadow
3125 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3127 esac
3128 else
3129 enable_cheaders=c_std
3132 echo "$ac_t""$enable_cheaders" 1>&6
3134 case "$enable_cheaders" in
3135 c_shadow)
3136 CSHADOW_FLAGS="-fno-builtin"
3137 C_INCLUDE_DIR='${top_srcdir}/include/c_shadow'
3138 cat >> confdefs.h <<\EOF
3139 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3143 c_std)
3144 CSHADOW_FLAGS=""
3145 C_INCLUDE_DIR='${top_srcdir}/include/c_std'
3148 CSHADOW_FLAGS=""
3149 C_INCLUDE_DIR='${top_srcdir}/include/c'
3151 esac
3157 if test "$enable_cheaders" = c_shadow; then
3158 GLIBCPP_USE_CSHADOW_TRUE=
3159 GLIBCPP_USE_CSHADOW_FALSE='#'
3160 else
3161 GLIBCPP_USE_CSHADOW_TRUE='#'
3162 GLIBCPP_USE_CSHADOW_FALSE=
3166 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
3167 echo "configure:3168: checking for threads package to use" >&5
3168 # Check whether --enable-threads or --disable-threads was given.
3169 if test "${enable_threads+set}" = set; then
3170 enableval="$enable_threads"
3171 if test x$enable_threads = xno; then
3172 enable_threads=''
3174 else
3175 enable_threads=''
3179 enable_threads_flag=$enable_threads
3181 case x${enable_threads_flag} in
3182 x | xno | xnone)
3183 # No threads
3184 target_thread_file='single'
3186 xyes)
3187 # default
3188 target_thread_file='posix'
3190 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
3191 xsolaris | xwin32 | xdce | xvxworks)
3192 target_thread_file=$enable_threads_flag
3195 echo "$enable_threads is an unknown thread package" 1>&2
3196 exit 1
3198 esac
3200 THREADH=
3201 case "$target_thread_file" in
3202 no | none | single)
3203 THREADH=threads-no.h
3205 posix | pthreads)
3206 THREADH=threads-posix.h
3208 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3209 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3212 { echo "configure: error: $THREADS is an unsupported/unknown thread package" 1>&2; exit 1; }
3214 esac
3215 echo "$ac_t""$THREADH" 1>&6
3218 if test $THREADH != threads-no.h; then
3219 cat >> confdefs.h <<\EOF
3220 #define _GLIBCPP_USE_THREADS 1
3225 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3226 if test "${enable_cxx_flags+set}" = set; then
3227 enableval="$enable_cxx_flags"
3228 case "x$enableval" in
3229 xyes)
3230 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3231 xno|x)
3232 enable_cxx_flags='' ;;
3234 enable_cxx_flags="$enableval" ;;
3235 esac
3236 else
3237 enable_cxx_flags='none'
3241 if test "$enable_cxx_flags" = "none"; then
3242 enable_cxx_flags='';
3245 if test -n "$enable_cxx_flags"; then
3246 for f in $enable_cxx_flags; do
3247 case "$f" in
3248 -fhonor-std) ;;
3249 -*) ;;
3250 *) # and we're trying to pass /what/ exactly?
3251 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3252 esac
3253 done
3255 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3259 if test -n "$with_cross_host"; then
3261 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3262 # may not work correctly, because the compiler may not be able to
3263 # link executables.
3264 xcompiling=1
3265 NATIVE=no
3267 # If Canadian cross, then don't pick up tools from the build
3268 # directory.
3269 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3270 CANADIAN=yes
3271 NULL_TARGET=yes
3272 else
3273 CANADIAN=no
3274 NULL_TARGET=no
3277 case "$target_alias" in
3278 *-linux*)
3279 # Construct linux crosses by hand, eliminating bits that need ld...
3280 # Check for available headers.
3281 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3282 machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
3283 float.h inttypes.h
3285 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3286 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3287 echo "configure:3288: checking for $ac_hdr" >&5
3288 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3289 echo $ac_n "(cached) $ac_c" 1>&6
3290 else
3291 cat > conftest.$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3294 #include <$ac_hdr>
3296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3297 { (eval echo configure:3298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3299 if test -z "$ac_err"; then
3300 rm -rf conftest*
3301 eval "ac_cv_header_$ac_safe=yes"
3302 else
3303 echo "$ac_err" >&5
3304 echo "configure: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3306 rm -rf conftest*
3307 eval "ac_cv_header_$ac_safe=no"
3309 rm -f conftest*
3311 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3312 echo "$ac_t""yes" 1>&6
3313 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3314 cat >> confdefs.h <<EOF
3315 #define $ac_tr_hdr 1
3318 else
3319 echo "$ac_t""no" 1>&6
3321 done
3324 # GLIBCPP_CHECK_COMPILER_FEATURES
3325 WFMT_FLAGS='-fdiagnostics-show-location=once'
3326 SECTION_FLAGS='-ffunction-sections -fdata-sections'
3330 # If we're not using GNU ld, then there's no point in even trying these
3331 # tests. Check for that first. We should have already tested for gld
3332 # by now (in libtool), but require it now just to be safe...
3333 SECTION_LDFLAGS=''
3334 OPT_LDFLAGS=''
3337 # Set --gc-sections.
3338 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3339 # GNU ld it is! Joy and bunny rabbits!
3341 # All these tests are for C++; save the language and the compiler flags.
3342 # Need to do this so that g++ won't try to link in libstdc++
3343 ac_test_CFLAGS="${CFLAGS+set}"
3344 ac_save_CFLAGS="$CFLAGS"
3345 CFLAGS='-x c++ -Wl,--gc-sections'
3347 # Check for -Wl,--gc-sections
3348 # XXX This test is broken at the moment, as symbols required for
3349 # linking are now in libsupc++ (not built yet.....). In addition,
3350 # this test has cored on solaris in the past. In addition,
3351 # --gc-sections doesn't really work at the moment (keeps on discarding
3352 # used sections, first .eh_frame and now some of the glibc sections for
3353 # iconv). Bzzzzt. Thanks for playing, maybe next time.
3354 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3355 echo "configure:3356: checking for ld that supports -Wl,--gc-sections" >&5
3356 if test "$cross_compiling" = yes; then
3357 ac_sectionLDflags=yes
3358 else
3359 cat > conftest.$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3363 int main(void)
3365 try { throw 1; }
3366 catch (...) { };
3367 return 0;
3371 if { (eval echo configure:3372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3372 then
3373 ac_sectionLDflags=yes
3374 else
3375 echo "configure: failed program was:" >&5
3376 cat conftest.$ac_ext >&5
3377 rm -fr conftest*
3378 ac_sectionLFflags=no
3380 rm -fr conftest*
3383 if test "$ac_test_CFLAGS" = set; then
3384 CFLAGS="$ac_save_CFLAGS"
3385 else
3386 # this is the suspicious part
3387 CFLAGS=''
3389 if test "$ac_sectionLDflags" = "yes"; then
3390 SECTION_LDFLAGS='-Wl,--gc-sections'
3392 echo "$ac_t""$ac_sectionLDflags" 1>&6
3395 # Set linker optimization flags.
3396 if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
3397 OPT_LDFLAGS='-Wl,-O1'
3403 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3404 # GLIBCPP_CHECK_MATH_SUPPORT
3405 cat >> confdefs.h <<\EOF
3406 #define HAVE_ACOSF 1
3409 cat >> confdefs.h <<\EOF
3410 #define HAVE_ASINF 1
3413 cat >> confdefs.h <<\EOF
3414 #define HAVE_ATAN2F 1
3417 cat >> confdefs.h <<\EOF
3418 #define HAVE_ATANF 1
3421 cat >> confdefs.h <<\EOF
3422 #define HAVE_CEILF 1
3425 cat >> confdefs.h <<\EOF
3426 #define HAVE_COPYSIGN 1
3429 cat >> confdefs.h <<\EOF
3430 #define HAVE_COPYSIGNF 1
3433 cat >> confdefs.h <<\EOF
3434 #define HAVE_COSF 1
3437 cat >> confdefs.h <<\EOF
3438 #define HAVE_COSHF 1
3441 cat >> confdefs.h <<\EOF
3442 #define HAVE_EXPF 1
3445 cat >> confdefs.h <<\EOF
3446 #define HAVE_FABSF 1
3449 cat >> confdefs.h <<\EOF
3450 #define HAVE_FINITE 1
3453 cat >> confdefs.h <<\EOF
3454 #define HAVE_FINITEF 1
3457 cat >> confdefs.h <<\EOF
3458 #define HAVE_FLOORF 1
3461 cat >> confdefs.h <<\EOF
3462 #define HAVE_FMODF 1
3465 cat >> confdefs.h <<\EOF
3466 #define HAVE_FREXPF 1
3469 cat >> confdefs.h <<\EOF
3470 #define HAVE_ISINF 1
3473 cat >> confdefs.h <<\EOF
3474 #define HAVE_ISINFF 1
3477 cat >> confdefs.h <<\EOF
3478 #define HAVE_ISNAN 1
3481 cat >> confdefs.h <<\EOF
3482 #define HAVE_ISNANF 1
3485 cat >> confdefs.h <<\EOF
3486 #define HAVE_LDEXPF 1
3489 cat >> confdefs.h <<\EOF
3490 #define HAVE_LOG10F 1
3493 cat >> confdefs.h <<\EOF
3494 #define HAVE_LOGF 1
3497 cat >> confdefs.h <<\EOF
3498 #define HAVE_MODFF 1
3501 cat >> confdefs.h <<\EOF
3502 #define HAVE_POWF 1
3505 cat >> confdefs.h <<\EOF
3506 #define HAVE_SINCOS 1
3509 cat >> confdefs.h <<\EOF
3510 #define HAVE_SINCOSF 1
3513 cat >> confdefs.h <<\EOF
3514 #define HAVE_SINF 1
3517 cat >> confdefs.h <<\EOF
3518 #define HAVE_SINHF 1
3521 cat >> confdefs.h <<\EOF
3522 #define HAVE_SQRTF 1
3525 cat >> confdefs.h <<\EOF
3526 #define HAVE_TANF 1
3529 cat >> confdefs.h <<\EOF
3530 #define HAVE_TANHF 1
3534 # At some point, we should differentiate between architectures
3535 # like x86, which have long double versions, and alpha/powerpc/etc.,
3536 # which don't. For the time being, punt.
3537 if test x"long_double_math_on_this_cpu" = x"yes"; then
3538 cat >> confdefs.h <<\EOF
3539 #define HAVE_ACOSL 1
3542 cat >> confdefs.h <<\EOF
3543 #define HAVE_ASINL 1
3546 cat >> confdefs.h <<\EOF
3547 #define HAVE_ATAN2L 1
3550 cat >> confdefs.h <<\EOF
3551 #define HAVE_ATANL 1
3554 cat >> confdefs.h <<\EOF
3555 #define HAVE_CEILL 1
3558 cat >> confdefs.h <<\EOF
3559 #define HAVE_COPYSIGNL 1
3562 cat >> confdefs.h <<\EOF
3563 #define HAVE_COSL 1
3566 cat >> confdefs.h <<\EOF
3567 #define HAVE_COSHL 1
3570 cat >> confdefs.h <<\EOF
3571 #define HAVE_EXPL 1
3574 cat >> confdefs.h <<\EOF
3575 #define HAVE_FABSL 1
3578 cat >> confdefs.h <<\EOF
3579 #define HAVE_FINITEL 1
3582 cat >> confdefs.h <<\EOF
3583 #define HAVE_FLOORL 1
3586 cat >> confdefs.h <<\EOF
3587 #define HAVE_FMODL 1
3590 cat >> confdefs.h <<\EOF
3591 #define HAVE_FREXPL 1
3594 cat >> confdefs.h <<\EOF
3595 #define HAVE_ISINFL 1
3598 cat >> confdefs.h <<\EOF
3599 #define HAVE_ISNANL 1
3602 cat >> confdefs.h <<\EOF
3603 #define HAVE_LDEXPL 1
3606 cat >> confdefs.h <<\EOF
3607 #define HAVE_LOG10L 1
3610 cat >> confdefs.h <<\EOF
3611 #define HAVE_LOGL 1
3614 cat >> confdefs.h <<\EOF
3615 #define HAVE_MODFL 1
3618 cat >> confdefs.h <<\EOF
3619 #define HAVE_POWL 1
3622 cat >> confdefs.h <<\EOF
3623 #define HAVE_SINCOSL 1
3626 cat >> confdefs.h <<\EOF
3627 #define HAVE_SINL 1
3630 cat >> confdefs.h <<\EOF
3631 #define HAVE_SINHL 1
3634 cat >> confdefs.h <<\EOF
3635 #define HAVE_SQRTL 1
3638 cat >> confdefs.h <<\EOF
3639 #define HAVE_TANL 1
3642 cat >> confdefs.h <<\EOF
3643 #define HAVE_TANHL 1
3648 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3649 echo "configure:3650: checking for main in -lm" >&5
3650 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3651 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3653 else
3654 ac_save_LIBS="$LIBS"
3655 LIBS="-lm $LIBS"
3656 cat > conftest.$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3660 int main() {
3661 main()
3662 ; return 0; }
3664 if { (eval echo configure:3665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3665 rm -rf conftest*
3666 eval "ac_cv_lib_$ac_lib_var=yes"
3667 else
3668 echo "configure: failed program was:" >&5
3669 cat conftest.$ac_ext >&5
3670 rm -rf conftest*
3671 eval "ac_cv_lib_$ac_lib_var=no"
3673 rm -f conftest*
3674 LIBS="$ac_save_LIBS"
3677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3678 echo "$ac_t""yes" 1>&6
3679 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3680 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3681 cat >> confdefs.h <<EOF
3682 #define $ac_tr_lib 1
3685 LIBS="-lm $LIBS"
3687 else
3688 echo "$ac_t""no" 1>&6
3691 for ac_func in nan hypot hypotf atan2f expf copysignf
3693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3694 echo "configure:3695: checking for $ac_func" >&5
3695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3696 echo $ac_n "(cached) $ac_c" 1>&6
3697 else
3698 cat > conftest.$ac_ext <<EOF
3699 #line 3700 "configure"
3700 #include "confdefs.h"
3701 /* System header to define __stub macros and hopefully few prototypes,
3702 which can conflict with char $ac_func(); below. */
3703 #include <assert.h>
3704 /* Override any gcc2 internal prototype to avoid an error. */
3705 /* We use char because int might match the return type of a gcc2
3706 builtin and then its argument prototype would still apply. */
3707 char $ac_func();
3709 int main() {
3711 /* The GNU C library defines this for functions which it implements
3712 to always fail with ENOSYS. Some functions are actually named
3713 something starting with __ and the normal name is an alias. */
3714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3715 choke me
3716 #else
3717 $ac_func();
3718 #endif
3720 ; return 0; }
3722 if { (eval echo configure:3723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3723 rm -rf conftest*
3724 eval "ac_cv_func_$ac_func=yes"
3725 else
3726 echo "configure: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3728 rm -rf conftest*
3729 eval "ac_cv_func_$ac_func=no"
3731 rm -f conftest*
3734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3735 echo "$ac_t""yes" 1>&6
3736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3737 cat >> confdefs.h <<EOF
3738 #define $ac_tr_func 1
3741 else
3742 echo "$ac_t""no" 1>&6
3743 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
3745 done
3749 USE_COMPLEX_LONG_DOUBLE=no
3750 if test x$ac_cv_func_atan2l = x"yes" \
3751 && test x$ac_cv_func_copysignl = x"yes"; then
3752 USE_COMPLEX_LONG_DOUBLE=yes
3753 for ac_func in hypotl signbitl
3755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3756 echo "configure:3757: checking for $ac_func" >&5
3757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3758 echo $ac_n "(cached) $ac_c" 1>&6
3759 else
3760 cat > conftest.$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 /* System header to define __stub macros and hopefully few prototypes,
3764 which can conflict with char $ac_func(); below. */
3765 #include <assert.h>
3766 /* Override any gcc2 internal prototype to avoid an error. */
3767 /* We use char because int might match the return type of a gcc2
3768 builtin and then its argument prototype would still apply. */
3769 char $ac_func();
3771 int main() {
3773 /* The GNU C library defines this for functions which it implements
3774 to always fail with ENOSYS. Some functions are actually named
3775 something starting with __ and the normal name is an alias. */
3776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3777 choke me
3778 #else
3779 $ac_func();
3780 #endif
3782 ; return 0; }
3784 if { (eval echo configure:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3785 rm -rf conftest*
3786 eval "ac_cv_func_$ac_func=yes"
3787 else
3788 echo "configure: failed program was:" >&5
3789 cat conftest.$ac_ext >&5
3790 rm -rf conftest*
3791 eval "ac_cv_func_$ac_func=no"
3793 rm -f conftest*
3796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3797 echo "$ac_t""yes" 1>&6
3798 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3799 cat >> confdefs.h <<EOF
3800 #define $ac_tr_func 1
3803 else
3804 echo "$ac_t""no" 1>&6
3805 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
3807 done
3817 echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
3818 echo "configure:3819: checking for GNU C++ __complex__ support" >&5
3819 if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
3820 echo $ac_n "(cached) $ac_c" 1>&6
3821 else
3824 ac_ext=C
3825 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3826 ac_cpp='$CXXCPP $CPPFLAGS'
3827 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3828 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3829 cross_compiling=$ac_cv_prog_cxx_cross
3831 cat > conftest.$ac_ext <<EOF
3832 #line 3833 "configure"
3833 #include "confdefs.h"
3834 struct dcomplex { __complex__ double x; }; \
3835 dcomplex f(const dcomplex& x) { return dcomplex(x); }
3836 int main() {
3838 dcomplex x; f(x);
3839 ; return 0; }
3841 if { (eval echo configure:3842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3842 rm -rf conftest*
3843 glibcpp_cv_complex=ok
3844 else
3845 echo "configure: failed program was:" >&5
3846 cat conftest.$ac_ext >&5
3847 rm -rf conftest*
3848 glibcpp_cv_complex=buggy
3851 rm -f conftest*
3852 ac_ext=c
3853 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3856 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3857 cross_compiling=$ac_cv_prog_cc_cross
3862 echo "$ac_t""$glibcpp_cv_complex" 1>&6
3863 if test $glibcpp_cv_complex = buggy; then
3864 cat >> confdefs.h <<\EOF
3865 #define _GLIBCPP_BUGGY_COMPLEX 1
3870 echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
3871 echo "configure:3872: checking for GNU C++ __complex__ float support" >&5
3872 if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
3873 echo $ac_n "(cached) $ac_c" 1>&6
3874 else
3877 ac_ext=C
3878 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3879 ac_cpp='$CXXCPP $CPPFLAGS'
3880 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3881 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3882 cross_compiling=$ac_cv_prog_cxx_cross
3884 rm -f conftest.h
3885 cat > conftest.h <<EOB
3887 // Check for buggy __complex__ that causes ICE in most versions of egcs
3888 // and gcc-2.95.x on certain platforms (eg., x86-win32).
3890 // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
3891 // more info on the bug itself.
3893 struct
3894 float_complex
3896 __complex__ float m_value;
3897 float_complex (float = 0.0f, float = 0.0f);
3898 float_complex (__complex__ float val) : m_value (val) {}
3899 float_complex foo (const float_complex &val)
3900 { return float_complex (~val.m_value); }
3903 cat > conftest.$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3906 #include "conftest.h"
3907 int main() {
3909 ; return 0; }
3911 if { (eval echo configure:3912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3912 rm -rf conftest*
3913 glibcpp_cv_float_complex=ok
3914 else
3915 echo "configure: failed program was:" >&5
3916 cat conftest.$ac_ext >&5
3917 rm -rf conftest*
3918 glibcpp_cv_float_complex=buggy
3921 rm -f conftest*
3922 ac_ext=c
3923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3926 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3927 cross_compiling=$ac_cv_prog_cc_cross
3932 echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
3933 if test $glibcpp_cv_float_complex = buggy; then
3934 cat >> confdefs.h <<\EOF
3935 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
3942 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
3943 echo "configure:3944: checking for mbstate_t" >&5
3944 cat > conftest.$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3947 #include <wchar.h>
3948 int main() {
3949 mbstate_t teststate;
3950 ; return 0; }
3952 if { (eval echo configure:3953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3953 rm -rf conftest*
3954 have_mbstate_t=yes
3955 else
3956 echo "configure: failed program was:" >&5
3957 cat conftest.$ac_ext >&5
3958 rm -rf conftest*
3959 have_mbstate_t=no
3961 rm -f conftest*
3962 echo "$ac_t""$have_mbstate_t" 1>&6
3963 if test x"$have_mbstate_t" = xyes; then
3964 cat >> confdefs.h <<\EOF
3965 #define HAVE_MBSTATE_T 1
3970 for ac_hdr in wchar.h
3972 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3973 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3974 echo "configure:3975: checking for $ac_hdr" >&5
3975 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3976 echo $ac_n "(cached) $ac_c" 1>&6
3977 else
3978 cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3981 #include <$ac_hdr>
3983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3984 { (eval echo configure:3985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3986 if test -z "$ac_err"; then
3987 rm -rf conftest*
3988 eval "ac_cv_header_$ac_safe=yes"
3989 else
3990 echo "$ac_err" >&5
3991 echo "configure: failed program was:" >&5
3992 cat conftest.$ac_ext >&5
3993 rm -rf conftest*
3994 eval "ac_cv_header_$ac_safe=no"
3996 rm -f conftest*
3998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3999 echo "$ac_t""yes" 1>&6
4000 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4001 cat >> confdefs.h <<EOF
4002 #define $ac_tr_hdr 1
4004 ac_has_wchar_h=yes
4005 else
4006 echo "$ac_t""no" 1>&6
4007 ac_has_wchar_h=no
4009 done
4011 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4012 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4013 echo "configure:4014: checking for wctype.h" >&5
4014 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4016 else
4017 cat > conftest.$ac_ext <<EOF
4018 #line 4019 "configure"
4019 #include "confdefs.h"
4020 #include <wctype.h>
4022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4023 { (eval echo configure:4024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4025 if test -z "$ac_err"; then
4026 rm -rf conftest*
4027 eval "ac_cv_header_$ac_safe=yes"
4028 else
4029 echo "$ac_err" >&5
4030 echo "configure: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4032 rm -rf conftest*
4033 eval "ac_cv_header_$ac_safe=no"
4035 rm -f conftest*
4037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4038 echo "$ac_t""yes" 1>&6
4039 ac_has_wctype_h=yes
4040 else
4041 echo "$ac_t""no" 1>&6
4042 ac_has_wctype_h=no
4046 if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
4047 && test x"$enable_c_mbchar" != xno; then
4049 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4050 echo "configure:4051: checking for WCHAR_MIN and WCHAR_MAX" >&5
4051 cat > conftest.$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4054 #include <wchar.h>
4055 int main() {
4056 int i = WCHAR_MIN; int j = WCHAR_MAX;
4057 ; return 0; }
4059 if { (eval echo configure:4060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4060 rm -rf conftest*
4061 has_wchar_minmax=yes
4062 else
4063 echo "configure: failed program was:" >&5
4064 cat conftest.$ac_ext >&5
4065 rm -rf conftest*
4066 has_wchar_minmax=no
4068 rm -f conftest*
4069 echo "$ac_t""$has_wchar_minmax" 1>&6
4071 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4072 echo "configure:4073: checking for WEOF" >&5
4073 cat > conftest.$ac_ext <<EOF
4074 #line 4075 "configure"
4075 #include "confdefs.h"
4077 #include <wchar.h>
4078 #include <stddef.h>
4079 int main() {
4080 wint_t i = WEOF;
4081 ; return 0; }
4083 if { (eval echo configure:4084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4084 rm -rf conftest*
4085 has_weof=yes
4086 else
4087 echo "configure: failed program was:" >&5
4088 cat conftest.$ac_ext >&5
4089 rm -rf conftest*
4090 has_weof=no
4092 rm -f conftest*
4093 echo "$ac_t""$has_weof" 1>&6
4095 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
4096 wcsrtombs mbsrtowcs
4098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4099 echo "configure:4100: checking for $ac_func" >&5
4100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4101 echo $ac_n "(cached) $ac_c" 1>&6
4102 else
4103 cat > conftest.$ac_ext <<EOF
4104 #line 4105 "configure"
4105 #include "confdefs.h"
4106 /* System header to define __stub macros and hopefully few prototypes,
4107 which can conflict with char $ac_func(); below. */
4108 #include <assert.h>
4109 /* Override any gcc2 internal prototype to avoid an error. */
4110 /* We use char because int might match the return type of a gcc2
4111 builtin and then its argument prototype would still apply. */
4112 char $ac_func();
4114 int main() {
4116 /* The GNU C library defines this for functions which it implements
4117 to always fail with ENOSYS. Some functions are actually named
4118 something starting with __ and the normal name is an alias. */
4119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4120 choke me
4121 #else
4122 $ac_func();
4123 #endif
4125 ; return 0; }
4127 if { (eval echo configure:4128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4128 rm -rf conftest*
4129 eval "ac_cv_func_$ac_func=yes"
4130 else
4131 echo "configure: failed program was:" >&5
4132 cat conftest.$ac_ext >&5
4133 rm -rf conftest*
4134 eval "ac_cv_func_$ac_func=no"
4136 rm -f conftest*
4139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4140 echo "$ac_t""yes" 1>&6
4141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4142 cat >> confdefs.h <<EOF
4143 #define $ac_tr_func 1
4145 ac_wfuncs=yes
4146 else
4147 echo "$ac_t""no" 1>&6
4148 ac_wfuncs=no
4150 done
4153 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4154 echo "configure:4155: checking for ISO C99 wchar_t support" >&5
4155 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
4156 && test x"$ac_wfuncs" = xyes; then
4157 ac_isoC99_wchar_t=yes
4158 else
4159 ac_isoC99_wchar_t=no
4161 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4163 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4164 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4165 echo "configure:4166: checking for iconv.h" >&5
4166 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4167 echo $ac_n "(cached) $ac_c" 1>&6
4168 else
4169 cat > conftest.$ac_ext <<EOF
4170 #line 4171 "configure"
4171 #include "confdefs.h"
4172 #include <iconv.h>
4174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4175 { (eval echo configure:4176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4177 if test -z "$ac_err"; then
4178 rm -rf conftest*
4179 eval "ac_cv_header_$ac_safe=yes"
4180 else
4181 echo "$ac_err" >&5
4182 echo "configure: failed program was:" >&5
4183 cat conftest.$ac_ext >&5
4184 rm -rf conftest*
4185 eval "ac_cv_header_$ac_safe=no"
4187 rm -f conftest*
4189 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4190 echo "$ac_t""yes" 1>&6
4191 ac_has_iconv_h=yes
4192 else
4193 echo "$ac_t""no" 1>&6
4194 ac_has_iconv_h=no
4197 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4198 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4199 echo "configure:4200: checking for langinfo.h" >&5
4200 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4202 else
4203 cat > conftest.$ac_ext <<EOF
4204 #line 4205 "configure"
4205 #include "confdefs.h"
4206 #include <langinfo.h>
4208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4209 { (eval echo configure:4210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4211 if test -z "$ac_err"; then
4212 rm -rf conftest*
4213 eval "ac_cv_header_$ac_safe=yes"
4214 else
4215 echo "$ac_err" >&5
4216 echo "configure: failed program was:" >&5
4217 cat conftest.$ac_ext >&5
4218 rm -rf conftest*
4219 eval "ac_cv_header_$ac_safe=no"
4221 rm -f conftest*
4223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4224 echo "$ac_t""yes" 1>&6
4225 ac_has_langinfo_h=yes
4226 else
4227 echo "$ac_t""no" 1>&6
4228 ac_has_langinfo_h=no
4232 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4233 echo "configure:4234: checking for iconv in -liconv" >&5
4234 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6
4237 else
4238 ac_save_LIBS="$LIBS"
4239 LIBS="-liconv $LIBS"
4240 cat > conftest.$ac_ext <<EOF
4241 #line 4242 "configure"
4242 #include "confdefs.h"
4243 /* Override any gcc2 internal prototype to avoid an error. */
4244 /* We use char because int might match the return type of a gcc2
4245 builtin and then its argument prototype would still apply. */
4246 char iconv();
4248 int main() {
4249 iconv()
4250 ; return 0; }
4252 if { (eval echo configure:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4253 rm -rf conftest*
4254 eval "ac_cv_lib_$ac_lib_var=yes"
4255 else
4256 echo "configure: failed program was:" >&5
4257 cat conftest.$ac_ext >&5
4258 rm -rf conftest*
4259 eval "ac_cv_lib_$ac_lib_var=no"
4261 rm -f conftest*
4262 LIBS="$ac_save_LIBS"
4265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4266 echo "$ac_t""yes" 1>&6
4267 libiconv="-liconv"
4268 else
4269 echo "$ac_t""no" 1>&6
4272 ac_save_LIBS="$LIBS"
4273 LIBS="$LIBS $libiconv"
4275 for ac_func in iconv_open iconv_close iconv nl_langinfo
4277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4278 echo "configure:4279: checking for $ac_func" >&5
4279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4280 echo $ac_n "(cached) $ac_c" 1>&6
4281 else
4282 cat > conftest.$ac_ext <<EOF
4283 #line 4284 "configure"
4284 #include "confdefs.h"
4285 /* System header to define __stub macros and hopefully few prototypes,
4286 which can conflict with char $ac_func(); below. */
4287 #include <assert.h>
4288 /* Override any gcc2 internal prototype to avoid an error. */
4289 /* We use char because int might match the return type of a gcc2
4290 builtin and then its argument prototype would still apply. */
4291 char $ac_func();
4293 int main() {
4295 /* The GNU C library defines this for functions which it implements
4296 to always fail with ENOSYS. Some functions are actually named
4297 something starting with __ and the normal name is an alias. */
4298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4299 choke me
4300 #else
4301 $ac_func();
4302 #endif
4304 ; return 0; }
4306 if { (eval echo configure:4307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4307 rm -rf conftest*
4308 eval "ac_cv_func_$ac_func=yes"
4309 else
4310 echo "configure: failed program was:" >&5
4311 cat conftest.$ac_ext >&5
4312 rm -rf conftest*
4313 eval "ac_cv_func_$ac_func=no"
4315 rm -f conftest*
4318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4321 cat >> confdefs.h <<EOF
4322 #define $ac_tr_func 1
4325 ac_XPG2funcs=yes
4326 else
4327 echo "$ac_t""no" 1>&6
4328 ac_XPG2funcs=no
4330 done
4333 LIBS="$ac_save_LIBS"
4335 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4336 echo "configure:4337: checking for XPG2 wchar_t support" >&5
4337 if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
4338 && test x"$ac_XPG2funcs" = xyes; then
4339 ac_XPG2_wchar_t=yes
4340 else
4341 ac_XPG2_wchar_t=no
4343 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4345 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4346 echo "configure:4347: checking for enabled wchar_t specializations" >&5
4347 if test x"$ac_isoC99_wchar_t" = xyes \
4348 && test x"$ac_XPG2_wchar_t" = xyes; then
4349 libinst_wstring_la="libinst-wstring.la"
4350 cat >> confdefs.h <<\EOF
4351 #define _GLIBCPP_USE_WCHAR_T 1
4354 echo "$ac_t"""yes"" 1>&6
4355 else
4356 libinst_wstring_la=""
4357 echo "$ac_t"""no"" 1>&6
4361 else
4362 echo "configure: warning: wchar_t support disabled." 1>&2
4365 os_include_dir="config/os/gnu-linux"
4366 # GLIBCPP_CHECK_STDLIB_SUPPORT
4367 cat >> confdefs.h <<\EOF
4368 #define HAVE_STRTOF 1
4371 cat >> confdefs.h <<\EOF
4372 #define HAVE_STRTOLD 1
4375 # AC_FUNC_MMAP
4376 cat >> confdefs.h <<\EOF
4377 #define HAVE_MMAP 1
4382 # We assume newlib. This lets us hard-code the functions we know
4383 # we'll have.
4384 cat >> confdefs.h <<\EOF
4385 #define HAVE_FINITE 1
4388 cat >> confdefs.h <<\EOF
4389 #define HAVE_ISNAN 1
4392 cat >> confdefs.h <<\EOF
4393 #define HAVE_ISNANF 1
4396 cat >> confdefs.h <<\EOF
4397 #define HAVE_ISINF 1
4400 cat >> confdefs.h <<\EOF
4401 #define HAVE_ISINFF 1
4405 os_include_dir="config/os/newlib"
4407 cat >> confdefs.h <<\EOF
4408 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
4411 cat >> confdefs.h <<\EOF
4412 #define _GLIBCPP_BUGGY_COMPLEX 1
4415 # need to check for faster f versions of math functions, ie sinf?
4417 esac
4418 else
4420 # We are being configured natively. We can do more elaborate tests
4421 # that include AC_TRY_COMPILE now, as the linker is assumed to be
4422 # working.
4423 xcompiling=0
4424 NATIVE=yes
4425 CANADIAN=no
4426 NULL_TARGET=no
4428 # Check for available headers.
4429 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
4430 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
4432 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4433 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4434 echo "configure:4435: checking for $ac_hdr" >&5
4435 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4436 echo $ac_n "(cached) $ac_c" 1>&6
4437 else
4438 cat > conftest.$ac_ext <<EOF
4439 #line 4440 "configure"
4440 #include "confdefs.h"
4441 #include <$ac_hdr>
4443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4444 { (eval echo configure:4445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4446 if test -z "$ac_err"; then
4447 rm -rf conftest*
4448 eval "ac_cv_header_$ac_safe=yes"
4449 else
4450 echo "$ac_err" >&5
4451 echo "configure: failed program was:" >&5
4452 cat conftest.$ac_ext >&5
4453 rm -rf conftest*
4454 eval "ac_cv_header_$ac_safe=no"
4456 rm -f conftest*
4458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4459 echo "$ac_t""yes" 1>&6
4460 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4461 cat >> confdefs.h <<EOF
4462 #define $ac_tr_hdr 1
4465 else
4466 echo "$ac_t""no" 1>&6
4468 done
4472 # All these tests are for C++; save the language and the compiler flags.
4473 # The CXXFLAGS thing is suspicious, but based on similar bits
4474 # found in GLIBCPP_CONFIGURE.
4476 ac_ext=C
4477 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4478 ac_cpp='$CXXCPP $CPPFLAGS'
4479 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4480 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4481 cross_compiling=$ac_cv_prog_cxx_cross
4483 ac_test_CXXFLAGS="${CXXFLAGS+set}"
4484 ac_save_CXXFLAGS="$CXXFLAGS"
4486 # Check for maintainer-mode bits.
4487 if test x"$USE_MAINTAINER_MODE" = xno; then
4488 WERROR=''
4489 else
4490 WERROR='-Werror'
4493 # Check for more sophisticated diagnostic control.
4494 echo $ac_n "checking for g++ that supports -fdiagnostics-show-location=once""... $ac_c" 1>&6
4495 echo "configure:4496: checking for g++ that supports -fdiagnostics-show-location=once" >&5
4496 CXXFLAGS='-Werror -fdiagnostics-show-location=once'
4497 cat > conftest.$ac_ext <<EOF
4498 #line 4499 "configure"
4499 #include "confdefs.h"
4501 int main() {
4502 int foo;
4504 ; return 0; }
4506 if { (eval echo configure:4507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4507 rm -rf conftest*
4508 ac_gabydiags=yes
4509 else
4510 echo "configure: failed program was:" >&5
4511 cat conftest.$ac_ext >&5
4512 rm -rf conftest*
4513 ac_gabydiags=no
4515 rm -f conftest*
4516 if test "$ac_test_CXXFLAGS" = set; then
4517 CXXFLAGS="$ac_save_CXXFLAGS"
4518 else
4519 # this is the suspicious part
4520 CXXFLAGS=''
4522 if test x"$ac_gabydiags" = x"yes"; then
4523 WFMT_FLAGS='-fdiagnostics-show-location=once'
4525 echo "$ac_t""$ac_gabydiags" 1>&6
4527 # Check for -ffunction-sections -fdata-sections
4528 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
4529 echo "configure:4530: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
4530 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
4531 cat > conftest.$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4535 int main() {
4536 int foo;
4538 ; return 0; }
4540 if { (eval echo configure:4541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4541 rm -rf conftest*
4542 ac_fdsections=yes
4543 else
4544 echo "configure: failed program was:" >&5
4545 cat conftest.$ac_ext >&5
4546 rm -rf conftest*
4547 ac_fdsections=no
4549 rm -f conftest*
4550 if test "$ac_test_CXXFLAGS" = set; then
4551 CXXFLAGS="$ac_save_CXXFLAGS"
4552 else
4553 # this is the suspicious part
4554 CXXFLAGS=''
4556 if test x"$ac_fdsections" = x"yes" && test x"$enable_debug" = x"no"; then
4557 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4559 echo "$ac_t""$ac_fdsections" 1>&6
4561 ac_ext=c
4562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4563 ac_cpp='$CPP $CPPFLAGS'
4564 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4565 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4566 cross_compiling=$ac_cv_prog_cc_cross
4573 # If we're not using GNU ld, then there's no point in even trying these
4574 # tests. Check for that first. We should have already tested for gld
4575 # by now (in libtool), but require it now just to be safe...
4576 SECTION_LDFLAGS=''
4577 OPT_LDFLAGS=''
4580 # Set --gc-sections.
4581 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4582 # GNU ld it is! Joy and bunny rabbits!
4584 # All these tests are for C++; save the language and the compiler flags.
4585 # Need to do this so that g++ won't try to link in libstdc++
4586 ac_test_CFLAGS="${CFLAGS+set}"
4587 ac_save_CFLAGS="$CFLAGS"
4588 CFLAGS='-x c++ -Wl,--gc-sections'
4590 # Check for -Wl,--gc-sections
4591 # XXX This test is broken at the moment, as symbols required for
4592 # linking are now in libsupc++ (not built yet.....). In addition,
4593 # this test has cored on solaris in the past. In addition,
4594 # --gc-sections doesn't really work at the moment (keeps on discarding
4595 # used sections, first .eh_frame and now some of the glibc sections for
4596 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4597 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4598 echo "configure:4599: checking for ld that supports -Wl,--gc-sections" >&5
4599 if test "$cross_compiling" = yes; then
4600 ac_sectionLDflags=yes
4601 else
4602 cat > conftest.$ac_ext <<EOF
4603 #line 4604 "configure"
4604 #include "confdefs.h"
4606 int main(void)
4608 try { throw 1; }
4609 catch (...) { };
4610 return 0;
4614 if { (eval echo configure:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4615 then
4616 ac_sectionLDflags=yes
4617 else
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4620 rm -fr conftest*
4621 ac_sectionLFflags=no
4623 rm -fr conftest*
4626 if test "$ac_test_CFLAGS" = set; then
4627 CFLAGS="$ac_save_CFLAGS"
4628 else
4629 # this is the suspicious part
4630 CFLAGS=''
4632 if test "$ac_sectionLDflags" = "yes"; then
4633 SECTION_LDFLAGS='-Wl,--gc-sections'
4635 echo "$ac_t""$ac_sectionLDflags" 1>&6
4638 # Set linker optimization flags.
4639 if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4640 OPT_LDFLAGS='-Wl,-O1'
4648 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
4649 echo "configure:4650: checking for __builtin_abs declaration" >&5
4650 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
4651 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
4652 echo $ac_n "(cached) $ac_c" 1>&6
4653 else
4656 ac_ext=C
4657 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4658 ac_cpp='$CXXCPP $CPPFLAGS'
4659 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4660 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4661 cross_compiling=$ac_cv_prog_cxx_cross
4663 cat > conftest.$ac_ext <<EOF
4664 #line 4665 "configure"
4665 #include "confdefs.h"
4666 #include <math.h>
4667 int main() {
4668 __builtin_abs(0);
4669 ; return 0; }
4671 if { (eval echo configure:4672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4672 rm -rf conftest*
4673 glibcpp_cv_func___builtin_abs_use=yes
4674 else
4675 echo "configure: failed program was:" >&5
4676 cat conftest.$ac_ext >&5
4677 rm -rf conftest*
4678 glibcpp_cv_func___builtin_abs_use=no
4680 rm -f conftest*
4681 ac_ext=c
4682 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4683 ac_cpp='$CPP $CPPFLAGS'
4684 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4685 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4686 cross_compiling=$ac_cv_prog_cc_cross
4692 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
4693 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
4694 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
4695 echo "configure:4696: checking for __builtin_abs linkage" >&5
4696 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
4697 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4699 else
4701 cat > conftest.$ac_ext <<EOF
4702 #line 4703 "configure"
4703 #include "confdefs.h"
4704 #include <math.h>
4705 int main() {
4706 __builtin_abs(0);
4707 ; return 0; }
4709 if { (eval echo configure:4710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4710 rm -rf conftest*
4711 glibcpp_cv_func___builtin_abs_link=yes
4712 else
4713 echo "configure: failed program was:" >&5
4714 cat conftest.$ac_ext >&5
4715 rm -rf conftest*
4716 glibcpp_cv_func___builtin_abs_link=no
4718 rm -f conftest*
4723 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
4724 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
4725 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4726 cat >> confdefs.h <<EOF
4727 #define ${ac_tr_func} 1
4734 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
4735 echo "configure:4736: checking for __builtin_fabsf declaration" >&5
4736 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
4737 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
4738 echo $ac_n "(cached) $ac_c" 1>&6
4739 else
4742 ac_ext=C
4743 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4744 ac_cpp='$CXXCPP $CPPFLAGS'
4745 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4746 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4747 cross_compiling=$ac_cv_prog_cxx_cross
4749 cat > conftest.$ac_ext <<EOF
4750 #line 4751 "configure"
4751 #include "confdefs.h"
4752 #include <math.h>
4753 int main() {
4754 __builtin_fabsf(0);
4755 ; return 0; }
4757 if { (eval echo configure:4758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4758 rm -rf conftest*
4759 glibcpp_cv_func___builtin_fabsf_use=yes
4760 else
4761 echo "configure: failed program was:" >&5
4762 cat conftest.$ac_ext >&5
4763 rm -rf conftest*
4764 glibcpp_cv_func___builtin_fabsf_use=no
4766 rm -f conftest*
4767 ac_ext=c
4768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4769 ac_cpp='$CPP $CPPFLAGS'
4770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4772 cross_compiling=$ac_cv_prog_cc_cross
4778 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
4779 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
4780 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
4781 echo "configure:4782: checking for __builtin_fabsf linkage" >&5
4782 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
4783 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
4784 echo $ac_n "(cached) $ac_c" 1>&6
4785 else
4787 cat > conftest.$ac_ext <<EOF
4788 #line 4789 "configure"
4789 #include "confdefs.h"
4790 #include <math.h>
4791 int main() {
4792 __builtin_fabsf(0);
4793 ; return 0; }
4795 if { (eval echo configure:4796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4796 rm -rf conftest*
4797 glibcpp_cv_func___builtin_fabsf_link=yes
4798 else
4799 echo "configure: failed program was:" >&5
4800 cat conftest.$ac_ext >&5
4801 rm -rf conftest*
4802 glibcpp_cv_func___builtin_fabsf_link=no
4804 rm -f conftest*
4809 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
4810 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
4811 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4812 cat >> confdefs.h <<EOF
4813 #define ${ac_tr_func} 1
4820 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
4821 echo "configure:4822: checking for __builtin_fabs declaration" >&5
4822 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
4823 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
4824 echo $ac_n "(cached) $ac_c" 1>&6
4825 else
4828 ac_ext=C
4829 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4830 ac_cpp='$CXXCPP $CPPFLAGS'
4831 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4832 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4833 cross_compiling=$ac_cv_prog_cxx_cross
4835 cat > conftest.$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4838 #include <math.h>
4839 int main() {
4840 __builtin_fabs(0);
4841 ; return 0; }
4843 if { (eval echo configure:4844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4844 rm -rf conftest*
4845 glibcpp_cv_func___builtin_fabs_use=yes
4846 else
4847 echo "configure: failed program was:" >&5
4848 cat conftest.$ac_ext >&5
4849 rm -rf conftest*
4850 glibcpp_cv_func___builtin_fabs_use=no
4852 rm -f conftest*
4853 ac_ext=c
4854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4855 ac_cpp='$CPP $CPPFLAGS'
4856 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4857 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4858 cross_compiling=$ac_cv_prog_cc_cross
4864 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
4865 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
4866 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
4867 echo "configure:4868: checking for __builtin_fabs linkage" >&5
4868 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
4869 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4871 else
4873 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4876 #include <math.h>
4877 int main() {
4878 __builtin_fabs(0);
4879 ; return 0; }
4881 if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4882 rm -rf conftest*
4883 glibcpp_cv_func___builtin_fabs_link=yes
4884 else
4885 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4887 rm -rf conftest*
4888 glibcpp_cv_func___builtin_fabs_link=no
4890 rm -f conftest*
4895 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
4896 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
4897 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4898 cat >> confdefs.h <<EOF
4899 #define ${ac_tr_func} 1
4906 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
4907 echo "configure:4908: checking for __builtin_fabsl declaration" >&5
4908 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
4909 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
4910 echo $ac_n "(cached) $ac_c" 1>&6
4911 else
4914 ac_ext=C
4915 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4916 ac_cpp='$CXXCPP $CPPFLAGS'
4917 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4918 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4919 cross_compiling=$ac_cv_prog_cxx_cross
4921 cat > conftest.$ac_ext <<EOF
4922 #line 4923 "configure"
4923 #include "confdefs.h"
4924 #include <math.h>
4925 int main() {
4926 __builtin_fabsl(0);
4927 ; return 0; }
4929 if { (eval echo configure:4930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4930 rm -rf conftest*
4931 glibcpp_cv_func___builtin_fabsl_use=yes
4932 else
4933 echo "configure: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4935 rm -rf conftest*
4936 glibcpp_cv_func___builtin_fabsl_use=no
4938 rm -f conftest*
4939 ac_ext=c
4940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4941 ac_cpp='$CPP $CPPFLAGS'
4942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4944 cross_compiling=$ac_cv_prog_cc_cross
4950 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
4951 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
4952 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
4953 echo "configure:4954: checking for __builtin_fabsl linkage" >&5
4954 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
4955 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
4956 echo $ac_n "(cached) $ac_c" 1>&6
4957 else
4959 cat > conftest.$ac_ext <<EOF
4960 #line 4961 "configure"
4961 #include "confdefs.h"
4962 #include <math.h>
4963 int main() {
4964 __builtin_fabsl(0);
4965 ; return 0; }
4967 if { (eval echo configure:4968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4968 rm -rf conftest*
4969 glibcpp_cv_func___builtin_fabsl_link=yes
4970 else
4971 echo "configure: failed program was:" >&5
4972 cat conftest.$ac_ext >&5
4973 rm -rf conftest*
4974 glibcpp_cv_func___builtin_fabsl_link=no
4976 rm -f conftest*
4981 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
4982 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
4983 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4984 cat >> confdefs.h <<EOF
4985 #define ${ac_tr_func} 1
4992 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
4993 echo "configure:4994: checking for __builtin_labs declaration" >&5
4994 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
4995 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
4996 echo $ac_n "(cached) $ac_c" 1>&6
4997 else
5000 ac_ext=C
5001 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5002 ac_cpp='$CXXCPP $CPPFLAGS'
5003 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5004 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5005 cross_compiling=$ac_cv_prog_cxx_cross
5007 cat > conftest.$ac_ext <<EOF
5008 #line 5009 "configure"
5009 #include "confdefs.h"
5010 #include <math.h>
5011 int main() {
5012 __builtin_labs(0);
5013 ; return 0; }
5015 if { (eval echo configure:5016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5016 rm -rf conftest*
5017 glibcpp_cv_func___builtin_labs_use=yes
5018 else
5019 echo "configure: failed program was:" >&5
5020 cat conftest.$ac_ext >&5
5021 rm -rf conftest*
5022 glibcpp_cv_func___builtin_labs_use=no
5024 rm -f conftest*
5025 ac_ext=c
5026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5027 ac_cpp='$CPP $CPPFLAGS'
5028 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5029 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5030 cross_compiling=$ac_cv_prog_cc_cross
5036 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5037 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5038 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5039 echo "configure:5040: checking for __builtin_labs linkage" >&5
5040 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5041 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5042 echo $ac_n "(cached) $ac_c" 1>&6
5043 else
5045 cat > conftest.$ac_ext <<EOF
5046 #line 5047 "configure"
5047 #include "confdefs.h"
5048 #include <math.h>
5049 int main() {
5050 __builtin_labs(0);
5051 ; return 0; }
5053 if { (eval echo configure:5054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5054 rm -rf conftest*
5055 glibcpp_cv_func___builtin_labs_link=yes
5056 else
5057 echo "configure: failed program was:" >&5
5058 cat conftest.$ac_ext >&5
5059 rm -rf conftest*
5060 glibcpp_cv_func___builtin_labs_link=no
5062 rm -f conftest*
5067 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5068 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5069 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5070 cat >> confdefs.h <<EOF
5071 #define ${ac_tr_func} 1
5079 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5080 echo "configure:5081: checking for __builtin_sqrtf declaration" >&5
5081 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5082 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5083 echo $ac_n "(cached) $ac_c" 1>&6
5084 else
5087 ac_ext=C
5088 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5089 ac_cpp='$CXXCPP $CPPFLAGS'
5090 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5091 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5092 cross_compiling=$ac_cv_prog_cxx_cross
5094 cat > conftest.$ac_ext <<EOF
5095 #line 5096 "configure"
5096 #include "confdefs.h"
5097 #include <math.h>
5098 int main() {
5099 __builtin_sqrtf(0);
5100 ; return 0; }
5102 if { (eval echo configure:5103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5103 rm -rf conftest*
5104 glibcpp_cv_func___builtin_sqrtf_use=yes
5105 else
5106 echo "configure: failed program was:" >&5
5107 cat conftest.$ac_ext >&5
5108 rm -rf conftest*
5109 glibcpp_cv_func___builtin_sqrtf_use=no
5111 rm -f conftest*
5112 ac_ext=c
5113 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5116 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5117 cross_compiling=$ac_cv_prog_cc_cross
5123 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5124 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5125 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5126 echo "configure:5127: checking for __builtin_sqrtf linkage" >&5
5127 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5128 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5129 echo $ac_n "(cached) $ac_c" 1>&6
5130 else
5132 cat > conftest.$ac_ext <<EOF
5133 #line 5134 "configure"
5134 #include "confdefs.h"
5135 #include <math.h>
5136 int main() {
5137 __builtin_sqrtf(0);
5138 ; return 0; }
5140 if { (eval echo configure:5141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5141 rm -rf conftest*
5142 glibcpp_cv_func___builtin_sqrtf_link=yes
5143 else
5144 echo "configure: failed program was:" >&5
5145 cat conftest.$ac_ext >&5
5146 rm -rf conftest*
5147 glibcpp_cv_func___builtin_sqrtf_link=no
5149 rm -f conftest*
5154 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5155 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5156 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5157 cat >> confdefs.h <<EOF
5158 #define ${ac_tr_func} 1
5165 echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5166 echo "configure:5167: checking for __builtin_fsqrt declaration" >&5
5167 if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5168 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5169 echo $ac_n "(cached) $ac_c" 1>&6
5170 else
5173 ac_ext=C
5174 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5175 ac_cpp='$CXXCPP $CPPFLAGS'
5176 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5177 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5178 cross_compiling=$ac_cv_prog_cxx_cross
5180 cat > conftest.$ac_ext <<EOF
5181 #line 5182 "configure"
5182 #include "confdefs.h"
5183 #include <math.h>
5184 int main() {
5185 __builtin_fsqrt(0);
5186 ; return 0; }
5188 if { (eval echo configure:5189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5189 rm -rf conftest*
5190 glibcpp_cv_func___builtin_fsqrt_use=yes
5191 else
5192 echo "configure: failed program was:" >&5
5193 cat conftest.$ac_ext >&5
5194 rm -rf conftest*
5195 glibcpp_cv_func___builtin_fsqrt_use=no
5197 rm -f conftest*
5198 ac_ext=c
5199 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5200 ac_cpp='$CPP $CPPFLAGS'
5201 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5202 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5203 cross_compiling=$ac_cv_prog_cc_cross
5209 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5210 if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5211 echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5212 echo "configure:5213: checking for __builtin_fsqrt linkage" >&5
5213 if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5214 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5215 echo $ac_n "(cached) $ac_c" 1>&6
5216 else
5218 cat > conftest.$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5221 #include <math.h>
5222 int main() {
5223 __builtin_fsqrt(0);
5224 ; return 0; }
5226 if { (eval echo configure:5227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5227 rm -rf conftest*
5228 glibcpp_cv_func___builtin_fsqrt_link=yes
5229 else
5230 echo "configure: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5232 rm -rf conftest*
5233 glibcpp_cv_func___builtin_fsqrt_link=no
5235 rm -f conftest*
5240 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5241 if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5242 ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5243 cat >> confdefs.h <<EOF
5244 #define ${ac_tr_func} 1
5251 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5252 echo "configure:5253: checking for __builtin_sqrtl declaration" >&5
5253 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5254 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5255 echo $ac_n "(cached) $ac_c" 1>&6
5256 else
5259 ac_ext=C
5260 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5261 ac_cpp='$CXXCPP $CPPFLAGS'
5262 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5263 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5264 cross_compiling=$ac_cv_prog_cxx_cross
5266 cat > conftest.$ac_ext <<EOF
5267 #line 5268 "configure"
5268 #include "confdefs.h"
5269 #include <math.h>
5270 int main() {
5271 __builtin_sqrtl(0);
5272 ; return 0; }
5274 if { (eval echo configure:5275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5275 rm -rf conftest*
5276 glibcpp_cv_func___builtin_sqrtl_use=yes
5277 else
5278 echo "configure: failed program was:" >&5
5279 cat conftest.$ac_ext >&5
5280 rm -rf conftest*
5281 glibcpp_cv_func___builtin_sqrtl_use=no
5283 rm -f conftest*
5284 ac_ext=c
5285 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5286 ac_cpp='$CPP $CPPFLAGS'
5287 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5288 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5289 cross_compiling=$ac_cv_prog_cc_cross
5295 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5296 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5297 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5298 echo "configure:5299: checking for __builtin_sqrtl linkage" >&5
5299 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5300 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5301 echo $ac_n "(cached) $ac_c" 1>&6
5302 else
5304 cat > conftest.$ac_ext <<EOF
5305 #line 5306 "configure"
5306 #include "confdefs.h"
5307 #include <math.h>
5308 int main() {
5309 __builtin_sqrtl(0);
5310 ; return 0; }
5312 if { (eval echo configure:5313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5313 rm -rf conftest*
5314 glibcpp_cv_func___builtin_sqrtl_link=yes
5315 else
5316 echo "configure: failed program was:" >&5
5317 cat conftest.$ac_ext >&5
5318 rm -rf conftest*
5319 glibcpp_cv_func___builtin_sqrtl_link=no
5321 rm -f conftest*
5326 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5327 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5328 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5329 cat >> confdefs.h <<EOF
5330 #define ${ac_tr_func} 1
5338 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5339 echo "configure:5340: checking for __builtin_sinf declaration" >&5
5340 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5341 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5342 echo $ac_n "(cached) $ac_c" 1>&6
5343 else
5346 ac_ext=C
5347 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5348 ac_cpp='$CXXCPP $CPPFLAGS'
5349 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5350 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5351 cross_compiling=$ac_cv_prog_cxx_cross
5353 cat > conftest.$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5356 #include <math.h>
5357 int main() {
5358 __builtin_sinf(0);
5359 ; return 0; }
5361 if { (eval echo configure:5362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5362 rm -rf conftest*
5363 glibcpp_cv_func___builtin_sinf_use=yes
5364 else
5365 echo "configure: failed program was:" >&5
5366 cat conftest.$ac_ext >&5
5367 rm -rf conftest*
5368 glibcpp_cv_func___builtin_sinf_use=no
5370 rm -f conftest*
5371 ac_ext=c
5372 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5373 ac_cpp='$CPP $CPPFLAGS'
5374 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5375 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5376 cross_compiling=$ac_cv_prog_cc_cross
5382 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5383 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5384 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5385 echo "configure:5386: checking for __builtin_sinf linkage" >&5
5386 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5387 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5388 echo $ac_n "(cached) $ac_c" 1>&6
5389 else
5391 cat > conftest.$ac_ext <<EOF
5392 #line 5393 "configure"
5393 #include "confdefs.h"
5394 #include <math.h>
5395 int main() {
5396 __builtin_sinf(0);
5397 ; return 0; }
5399 if { (eval echo configure:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5400 rm -rf conftest*
5401 glibcpp_cv_func___builtin_sinf_link=yes
5402 else
5403 echo "configure: failed program was:" >&5
5404 cat conftest.$ac_ext >&5
5405 rm -rf conftest*
5406 glibcpp_cv_func___builtin_sinf_link=no
5408 rm -f conftest*
5413 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5414 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5415 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5416 cat >> confdefs.h <<EOF
5417 #define ${ac_tr_func} 1
5424 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5425 echo "configure:5426: checking for __builtin_sin declaration" >&5
5426 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5427 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
5428 echo $ac_n "(cached) $ac_c" 1>&6
5429 else
5432 ac_ext=C
5433 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5434 ac_cpp='$CXXCPP $CPPFLAGS'
5435 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5436 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5437 cross_compiling=$ac_cv_prog_cxx_cross
5439 cat > conftest.$ac_ext <<EOF
5440 #line 5441 "configure"
5441 #include "confdefs.h"
5442 #include <math.h>
5443 int main() {
5444 __builtin_sin(0);
5445 ; return 0; }
5447 if { (eval echo configure:5448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5448 rm -rf conftest*
5449 glibcpp_cv_func___builtin_sin_use=yes
5450 else
5451 echo "configure: failed program was:" >&5
5452 cat conftest.$ac_ext >&5
5453 rm -rf conftest*
5454 glibcpp_cv_func___builtin_sin_use=no
5456 rm -f conftest*
5457 ac_ext=c
5458 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5459 ac_cpp='$CPP $CPPFLAGS'
5460 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5461 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5462 cross_compiling=$ac_cv_prog_cc_cross
5468 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
5469 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
5470 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
5471 echo "configure:5472: checking for __builtin_sin linkage" >&5
5472 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
5473 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
5474 echo $ac_n "(cached) $ac_c" 1>&6
5475 else
5477 cat > conftest.$ac_ext <<EOF
5478 #line 5479 "configure"
5479 #include "confdefs.h"
5480 #include <math.h>
5481 int main() {
5482 __builtin_sin(0);
5483 ; return 0; }
5485 if { (eval echo configure:5486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5486 rm -rf conftest*
5487 glibcpp_cv_func___builtin_sin_link=yes
5488 else
5489 echo "configure: failed program was:" >&5
5490 cat conftest.$ac_ext >&5
5491 rm -rf conftest*
5492 glibcpp_cv_func___builtin_sin_link=no
5494 rm -f conftest*
5499 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
5500 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
5501 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5502 cat >> confdefs.h <<EOF
5503 #define ${ac_tr_func} 1
5510 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
5511 echo "configure:5512: checking for __builtin_sinl declaration" >&5
5512 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
5513 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
5514 echo $ac_n "(cached) $ac_c" 1>&6
5515 else
5518 ac_ext=C
5519 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5520 ac_cpp='$CXXCPP $CPPFLAGS'
5521 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5522 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5523 cross_compiling=$ac_cv_prog_cxx_cross
5525 cat > conftest.$ac_ext <<EOF
5526 #line 5527 "configure"
5527 #include "confdefs.h"
5528 #include <math.h>
5529 int main() {
5530 __builtin_sinl(0);
5531 ; return 0; }
5533 if { (eval echo configure:5534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5534 rm -rf conftest*
5535 glibcpp_cv_func___builtin_sinl_use=yes
5536 else
5537 echo "configure: failed program was:" >&5
5538 cat conftest.$ac_ext >&5
5539 rm -rf conftest*
5540 glibcpp_cv_func___builtin_sinl_use=no
5542 rm -f conftest*
5543 ac_ext=c
5544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5545 ac_cpp='$CPP $CPPFLAGS'
5546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5548 cross_compiling=$ac_cv_prog_cc_cross
5554 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
5555 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
5556 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
5557 echo "configure:5558: checking for __builtin_sinl linkage" >&5
5558 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
5559 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
5560 echo $ac_n "(cached) $ac_c" 1>&6
5561 else
5563 cat > conftest.$ac_ext <<EOF
5564 #line 5565 "configure"
5565 #include "confdefs.h"
5566 #include <math.h>
5567 int main() {
5568 __builtin_sinl(0);
5569 ; return 0; }
5571 if { (eval echo configure:5572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5572 rm -rf conftest*
5573 glibcpp_cv_func___builtin_sinl_link=yes
5574 else
5575 echo "configure: failed program was:" >&5
5576 cat conftest.$ac_ext >&5
5577 rm -rf conftest*
5578 glibcpp_cv_func___builtin_sinl_link=no
5580 rm -f conftest*
5585 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
5586 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
5587 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5588 cat >> confdefs.h <<EOF
5589 #define ${ac_tr_func} 1
5597 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
5598 echo "configure:5599: checking for __builtin_cosf declaration" >&5
5599 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
5600 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
5601 echo $ac_n "(cached) $ac_c" 1>&6
5602 else
5605 ac_ext=C
5606 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5607 ac_cpp='$CXXCPP $CPPFLAGS'
5608 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5609 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5610 cross_compiling=$ac_cv_prog_cxx_cross
5612 cat > conftest.$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5615 #include <math.h>
5616 int main() {
5617 __builtin_cosf(0);
5618 ; return 0; }
5620 if { (eval echo configure:5621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5621 rm -rf conftest*
5622 glibcpp_cv_func___builtin_cosf_use=yes
5623 else
5624 echo "configure: failed program was:" >&5
5625 cat conftest.$ac_ext >&5
5626 rm -rf conftest*
5627 glibcpp_cv_func___builtin_cosf_use=no
5629 rm -f conftest*
5630 ac_ext=c
5631 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5632 ac_cpp='$CPP $CPPFLAGS'
5633 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5634 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5635 cross_compiling=$ac_cv_prog_cc_cross
5641 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
5642 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
5643 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
5644 echo "configure:5645: checking for __builtin_cosf linkage" >&5
5645 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
5646 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
5647 echo $ac_n "(cached) $ac_c" 1>&6
5648 else
5650 cat > conftest.$ac_ext <<EOF
5651 #line 5652 "configure"
5652 #include "confdefs.h"
5653 #include <math.h>
5654 int main() {
5655 __builtin_cosf(0);
5656 ; return 0; }
5658 if { (eval echo configure:5659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5659 rm -rf conftest*
5660 glibcpp_cv_func___builtin_cosf_link=yes
5661 else
5662 echo "configure: failed program was:" >&5
5663 cat conftest.$ac_ext >&5
5664 rm -rf conftest*
5665 glibcpp_cv_func___builtin_cosf_link=no
5667 rm -f conftest*
5672 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
5673 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
5674 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5675 cat >> confdefs.h <<EOF
5676 #define ${ac_tr_func} 1
5683 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
5684 echo "configure:5685: checking for __builtin_cos declaration" >&5
5685 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
5686 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
5687 echo $ac_n "(cached) $ac_c" 1>&6
5688 else
5691 ac_ext=C
5692 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5693 ac_cpp='$CXXCPP $CPPFLAGS'
5694 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5695 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5696 cross_compiling=$ac_cv_prog_cxx_cross
5698 cat > conftest.$ac_ext <<EOF
5699 #line 5700 "configure"
5700 #include "confdefs.h"
5701 #include <math.h>
5702 int main() {
5703 __builtin_cos(0);
5704 ; return 0; }
5706 if { (eval echo configure:5707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5707 rm -rf conftest*
5708 glibcpp_cv_func___builtin_cos_use=yes
5709 else
5710 echo "configure: failed program was:" >&5
5711 cat conftest.$ac_ext >&5
5712 rm -rf conftest*
5713 glibcpp_cv_func___builtin_cos_use=no
5715 rm -f conftest*
5716 ac_ext=c
5717 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5718 ac_cpp='$CPP $CPPFLAGS'
5719 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5720 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5721 cross_compiling=$ac_cv_prog_cc_cross
5727 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
5728 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
5729 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
5730 echo "configure:5731: checking for __builtin_cos linkage" >&5
5731 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
5732 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
5733 echo $ac_n "(cached) $ac_c" 1>&6
5734 else
5736 cat > conftest.$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5739 #include <math.h>
5740 int main() {
5741 __builtin_cos(0);
5742 ; return 0; }
5744 if { (eval echo configure:5745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5745 rm -rf conftest*
5746 glibcpp_cv_func___builtin_cos_link=yes
5747 else
5748 echo "configure: failed program was:" >&5
5749 cat conftest.$ac_ext >&5
5750 rm -rf conftest*
5751 glibcpp_cv_func___builtin_cos_link=no
5753 rm -f conftest*
5758 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
5759 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
5760 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5761 cat >> confdefs.h <<EOF
5762 #define ${ac_tr_func} 1
5769 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
5770 echo "configure:5771: checking for __builtin_cosl declaration" >&5
5771 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
5772 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
5773 echo $ac_n "(cached) $ac_c" 1>&6
5774 else
5777 ac_ext=C
5778 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5779 ac_cpp='$CXXCPP $CPPFLAGS'
5780 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5781 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5782 cross_compiling=$ac_cv_prog_cxx_cross
5784 cat > conftest.$ac_ext <<EOF
5785 #line 5786 "configure"
5786 #include "confdefs.h"
5787 #include <math.h>
5788 int main() {
5789 __builtin_cosl(0);
5790 ; return 0; }
5792 if { (eval echo configure:5793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5793 rm -rf conftest*
5794 glibcpp_cv_func___builtin_cosl_use=yes
5795 else
5796 echo "configure: failed program was:" >&5
5797 cat conftest.$ac_ext >&5
5798 rm -rf conftest*
5799 glibcpp_cv_func___builtin_cosl_use=no
5801 rm -f conftest*
5802 ac_ext=c
5803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5804 ac_cpp='$CPP $CPPFLAGS'
5805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5807 cross_compiling=$ac_cv_prog_cc_cross
5813 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
5814 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
5815 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
5816 echo "configure:5817: checking for __builtin_cosl linkage" >&5
5817 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
5818 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
5819 echo $ac_n "(cached) $ac_c" 1>&6
5820 else
5822 cat > conftest.$ac_ext <<EOF
5823 #line 5824 "configure"
5824 #include "confdefs.h"
5825 #include <math.h>
5826 int main() {
5827 __builtin_cosl(0);
5828 ; return 0; }
5830 if { (eval echo configure:5831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5831 rm -rf conftest*
5832 glibcpp_cv_func___builtin_cosl_link=yes
5833 else
5834 echo "configure: failed program was:" >&5
5835 cat conftest.$ac_ext >&5
5836 rm -rf conftest*
5837 glibcpp_cv_func___builtin_cosl_link=no
5839 rm -f conftest*
5844 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
5845 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
5846 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5847 cat >> confdefs.h <<EOF
5848 #define ${ac_tr_func} 1
5855 dummyvar=no
5856 if test x$dummyvar = x"yes"; then
5857 cat >> confdefs.h <<\EOF
5858 #define HAVE___BUILTIN_ABS 1
5861 cat >> confdefs.h <<\EOF
5862 #define HAVE___BUILTIN_LABS 1
5865 cat >> confdefs.h <<\EOF
5866 #define HAVE___BUILTIN_COS 1
5869 cat >> confdefs.h <<\EOF
5870 #define HAVE___BUILTIN_COSF 1
5873 cat >> confdefs.h <<\EOF
5874 #define HAVE___BUILTIN_COSL 1
5877 cat >> confdefs.h <<\EOF
5878 #define HAVE___BUILTIN_FABS 1
5881 cat >> confdefs.h <<\EOF
5882 #define HAVE___BUILTIN_FABSF 1
5885 cat >> confdefs.h <<\EOF
5886 #define HAVE___BUILTIN_FABSL 1
5889 cat >> confdefs.h <<\EOF
5890 #define HAVE___BUILTIN_SIN 1
5893 cat >> confdefs.h <<\EOF
5894 #define HAVE___BUILTIN_SINF 1
5897 cat >> confdefs.h <<\EOF
5898 #define HAVE___BUILTIN_SINL 1
5901 cat >> confdefs.h <<\EOF
5902 #define HAVE___BUILTIN_FSQRT 1
5905 cat >> confdefs.h <<\EOF
5906 #define HAVE___BUILTIN_SQRTF 1
5909 cat >> confdefs.h <<\EOF
5910 #define HAVE___BUILTIN_SQRTL 1
5916 ac_test_CXXFLAGS="${CXXFLAGS+set}"
5917 ac_save_CXXFLAGS="$CXXFLAGS"
5918 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
5920 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
5921 echo "configure:5922: checking for sin in -lm" >&5
5922 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
5923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5924 echo $ac_n "(cached) $ac_c" 1>&6
5925 else
5926 ac_save_LIBS="$LIBS"
5927 LIBS="-lm $LIBS"
5928 cat > conftest.$ac_ext <<EOF
5929 #line 5930 "configure"
5930 #include "confdefs.h"
5931 /* Override any gcc2 internal prototype to avoid an error. */
5932 /* We use char because int might match the return type of a gcc2
5933 builtin and then its argument prototype would still apply. */
5934 char sin();
5936 int main() {
5937 sin()
5938 ; return 0; }
5940 if { (eval echo configure:5941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5941 rm -rf conftest*
5942 eval "ac_cv_lib_$ac_lib_var=yes"
5943 else
5944 echo "configure: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5946 rm -rf conftest*
5947 eval "ac_cv_lib_$ac_lib_var=no"
5949 rm -f conftest*
5950 LIBS="$ac_save_LIBS"
5953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5954 echo "$ac_t""yes" 1>&6
5955 libm="-lm"
5956 else
5957 echo "$ac_t""no" 1>&6
5960 ac_save_LIBS="$LIBS"
5961 LIBS="$LIBS $libm"
5965 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
5966 echo "configure:5967: checking for isinf declaration" >&5
5967 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
5968 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
5969 echo $ac_n "(cached) $ac_c" 1>&6
5970 else
5973 ac_ext=C
5974 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5975 ac_cpp='$CXXCPP $CPPFLAGS'
5976 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5977 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5978 cross_compiling=$ac_cv_prog_cxx_cross
5980 cat > conftest.$ac_ext <<EOF
5981 #line 5982 "configure"
5982 #include "confdefs.h"
5983 #include <math.h>
5984 int main() {
5985 isinf(0);
5986 ; return 0; }
5988 if { (eval echo configure:5989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5989 rm -rf conftest*
5990 glibcpp_cv_func_isinf_use=yes
5991 else
5992 echo "configure: failed program was:" >&5
5993 cat conftest.$ac_ext >&5
5994 rm -rf conftest*
5995 glibcpp_cv_func_isinf_use=no
5997 rm -f conftest*
5998 ac_ext=c
5999 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6000 ac_cpp='$CPP $CPPFLAGS'
6001 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6002 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6003 cross_compiling=$ac_cv_prog_cc_cross
6009 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6011 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6012 for ac_func in isinf
6014 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6015 echo "configure:6016: checking for $ac_func" >&5
6016 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6017 echo $ac_n "(cached) $ac_c" 1>&6
6018 else
6019 cat > conftest.$ac_ext <<EOF
6020 #line 6021 "configure"
6021 #include "confdefs.h"
6022 /* System header to define __stub macros and hopefully few prototypes,
6023 which can conflict with char $ac_func(); below. */
6024 #include <assert.h>
6025 /* Override any gcc2 internal prototype to avoid an error. */
6026 /* We use char because int might match the return type of a gcc2
6027 builtin and then its argument prototype would still apply. */
6028 char $ac_func();
6030 int main() {
6032 /* The GNU C library defines this for functions which it implements
6033 to always fail with ENOSYS. Some functions are actually named
6034 something starting with __ and the normal name is an alias. */
6035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6036 choke me
6037 #else
6038 $ac_func();
6039 #endif
6041 ; return 0; }
6043 if { (eval echo configure:6044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6044 rm -rf conftest*
6045 eval "ac_cv_func_$ac_func=yes"
6046 else
6047 echo "configure: failed program was:" >&5
6048 cat conftest.$ac_ext >&5
6049 rm -rf conftest*
6050 eval "ac_cv_func_$ac_func=no"
6052 rm -f conftest*
6055 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6056 echo "$ac_t""yes" 1>&6
6057 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6058 cat >> confdefs.h <<EOF
6059 #define $ac_tr_func 1
6062 else
6063 echo "$ac_t""no" 1>&6
6065 done
6067 else
6069 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6070 echo "configure:6071: checking for _isinf declaration" >&5
6071 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6072 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6073 echo $ac_n "(cached) $ac_c" 1>&6
6074 else
6077 ac_ext=C
6078 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6079 ac_cpp='$CXXCPP $CPPFLAGS'
6080 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6081 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6082 cross_compiling=$ac_cv_prog_cxx_cross
6084 cat > conftest.$ac_ext <<EOF
6085 #line 6086 "configure"
6086 #include "confdefs.h"
6087 #include <math.h>
6088 int main() {
6089 _isinf(0);
6090 ; return 0; }
6092 if { (eval echo configure:6093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6093 rm -rf conftest*
6094 glibcpp_cv_func__isinf_use=yes
6095 else
6096 echo "configure: failed program was:" >&5
6097 cat conftest.$ac_ext >&5
6098 rm -rf conftest*
6099 glibcpp_cv_func__isinf_use=no
6101 rm -f conftest*
6102 ac_ext=c
6103 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6104 ac_cpp='$CPP $CPPFLAGS'
6105 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6106 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6107 cross_compiling=$ac_cv_prog_cc_cross
6113 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6115 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6116 for ac_func in _isinf
6118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6119 echo "configure:6120: checking for $ac_func" >&5
6120 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6121 echo $ac_n "(cached) $ac_c" 1>&6
6122 else
6123 cat > conftest.$ac_ext <<EOF
6124 #line 6125 "configure"
6125 #include "confdefs.h"
6126 /* System header to define __stub macros and hopefully few prototypes,
6127 which can conflict with char $ac_func(); below. */
6128 #include <assert.h>
6129 /* Override any gcc2 internal prototype to avoid an error. */
6130 /* We use char because int might match the return type of a gcc2
6131 builtin and then its argument prototype would still apply. */
6132 char $ac_func();
6134 int main() {
6136 /* The GNU C library defines this for functions which it implements
6137 to always fail with ENOSYS. Some functions are actually named
6138 something starting with __ and the normal name is an alias. */
6139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6140 choke me
6141 #else
6142 $ac_func();
6143 #endif
6145 ; return 0; }
6147 if { (eval echo configure:6148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6148 rm -rf conftest*
6149 eval "ac_cv_func_$ac_func=yes"
6150 else
6151 echo "configure: failed program was:" >&5
6152 cat conftest.$ac_ext >&5
6153 rm -rf conftest*
6154 eval "ac_cv_func_$ac_func=no"
6156 rm -f conftest*
6159 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6160 echo "$ac_t""yes" 1>&6
6161 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6162 cat >> confdefs.h <<EOF
6163 #define $ac_tr_func 1
6166 else
6167 echo "$ac_t""no" 1>&6
6169 done
6176 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6177 echo "configure:6178: checking for isnan declaration" >&5
6178 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6179 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6180 echo $ac_n "(cached) $ac_c" 1>&6
6181 else
6184 ac_ext=C
6185 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6186 ac_cpp='$CXXCPP $CPPFLAGS'
6187 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6188 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6189 cross_compiling=$ac_cv_prog_cxx_cross
6191 cat > conftest.$ac_ext <<EOF
6192 #line 6193 "configure"
6193 #include "confdefs.h"
6194 #include <math.h>
6195 int main() {
6196 isnan(0);
6197 ; return 0; }
6199 if { (eval echo configure:6200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6200 rm -rf conftest*
6201 glibcpp_cv_func_isnan_use=yes
6202 else
6203 echo "configure: failed program was:" >&5
6204 cat conftest.$ac_ext >&5
6205 rm -rf conftest*
6206 glibcpp_cv_func_isnan_use=no
6208 rm -f conftest*
6209 ac_ext=c
6210 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6211 ac_cpp='$CPP $CPPFLAGS'
6212 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6213 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6214 cross_compiling=$ac_cv_prog_cc_cross
6220 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6222 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6223 for ac_func in isnan
6225 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6226 echo "configure:6227: checking for $ac_func" >&5
6227 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6228 echo $ac_n "(cached) $ac_c" 1>&6
6229 else
6230 cat > conftest.$ac_ext <<EOF
6231 #line 6232 "configure"
6232 #include "confdefs.h"
6233 /* System header to define __stub macros and hopefully few prototypes,
6234 which can conflict with char $ac_func(); below. */
6235 #include <assert.h>
6236 /* Override any gcc2 internal prototype to avoid an error. */
6237 /* We use char because int might match the return type of a gcc2
6238 builtin and then its argument prototype would still apply. */
6239 char $ac_func();
6241 int main() {
6243 /* The GNU C library defines this for functions which it implements
6244 to always fail with ENOSYS. Some functions are actually named
6245 something starting with __ and the normal name is an alias. */
6246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6247 choke me
6248 #else
6249 $ac_func();
6250 #endif
6252 ; return 0; }
6254 if { (eval echo configure:6255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6255 rm -rf conftest*
6256 eval "ac_cv_func_$ac_func=yes"
6257 else
6258 echo "configure: failed program was:" >&5
6259 cat conftest.$ac_ext >&5
6260 rm -rf conftest*
6261 eval "ac_cv_func_$ac_func=no"
6263 rm -f conftest*
6266 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6267 echo "$ac_t""yes" 1>&6
6268 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6269 cat >> confdefs.h <<EOF
6270 #define $ac_tr_func 1
6273 else
6274 echo "$ac_t""no" 1>&6
6276 done
6278 else
6280 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6281 echo "configure:6282: checking for _isnan declaration" >&5
6282 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6283 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6284 echo $ac_n "(cached) $ac_c" 1>&6
6285 else
6288 ac_ext=C
6289 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6290 ac_cpp='$CXXCPP $CPPFLAGS'
6291 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6292 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6293 cross_compiling=$ac_cv_prog_cxx_cross
6295 cat > conftest.$ac_ext <<EOF
6296 #line 6297 "configure"
6297 #include "confdefs.h"
6298 #include <math.h>
6299 int main() {
6300 _isnan(0);
6301 ; return 0; }
6303 if { (eval echo configure:6304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6304 rm -rf conftest*
6305 glibcpp_cv_func__isnan_use=yes
6306 else
6307 echo "configure: failed program was:" >&5
6308 cat conftest.$ac_ext >&5
6309 rm -rf conftest*
6310 glibcpp_cv_func__isnan_use=no
6312 rm -f conftest*
6313 ac_ext=c
6314 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6315 ac_cpp='$CPP $CPPFLAGS'
6316 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6317 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6318 cross_compiling=$ac_cv_prog_cc_cross
6324 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6326 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6327 for ac_func in _isnan
6329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6330 echo "configure:6331: checking for $ac_func" >&5
6331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6332 echo $ac_n "(cached) $ac_c" 1>&6
6333 else
6334 cat > conftest.$ac_ext <<EOF
6335 #line 6336 "configure"
6336 #include "confdefs.h"
6337 /* System header to define __stub macros and hopefully few prototypes,
6338 which can conflict with char $ac_func(); below. */
6339 #include <assert.h>
6340 /* Override any gcc2 internal prototype to avoid an error. */
6341 /* We use char because int might match the return type of a gcc2
6342 builtin and then its argument prototype would still apply. */
6343 char $ac_func();
6345 int main() {
6347 /* The GNU C library defines this for functions which it implements
6348 to always fail with ENOSYS. Some functions are actually named
6349 something starting with __ and the normal name is an alias. */
6350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6351 choke me
6352 #else
6353 $ac_func();
6354 #endif
6356 ; return 0; }
6358 if { (eval echo configure:6359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6359 rm -rf conftest*
6360 eval "ac_cv_func_$ac_func=yes"
6361 else
6362 echo "configure: failed program was:" >&5
6363 cat conftest.$ac_ext >&5
6364 rm -rf conftest*
6365 eval "ac_cv_func_$ac_func=no"
6367 rm -f conftest*
6370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6371 echo "$ac_t""yes" 1>&6
6372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6373 cat >> confdefs.h <<EOF
6374 #define $ac_tr_func 1
6377 else
6378 echo "$ac_t""no" 1>&6
6380 done
6387 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6388 echo "configure:6389: checking for finite declaration" >&5
6389 if test x${glibcpp_cv_func_finite_use+set} != xset; then
6390 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6391 echo $ac_n "(cached) $ac_c" 1>&6
6392 else
6395 ac_ext=C
6396 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6397 ac_cpp='$CXXCPP $CPPFLAGS'
6398 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6399 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6400 cross_compiling=$ac_cv_prog_cxx_cross
6402 cat > conftest.$ac_ext <<EOF
6403 #line 6404 "configure"
6404 #include "confdefs.h"
6405 #include <math.h>
6406 int main() {
6407 finite(0);
6408 ; return 0; }
6410 if { (eval echo configure:6411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6411 rm -rf conftest*
6412 glibcpp_cv_func_finite_use=yes
6413 else
6414 echo "configure: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6416 rm -rf conftest*
6417 glibcpp_cv_func_finite_use=no
6419 rm -f conftest*
6420 ac_ext=c
6421 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6422 ac_cpp='$CPP $CPPFLAGS'
6423 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6424 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6425 cross_compiling=$ac_cv_prog_cc_cross
6431 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
6433 if test x$glibcpp_cv_func_finite_use = x"yes"; then
6434 for ac_func in finite
6436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6437 echo "configure:6438: checking for $ac_func" >&5
6438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6439 echo $ac_n "(cached) $ac_c" 1>&6
6440 else
6441 cat > conftest.$ac_ext <<EOF
6442 #line 6443 "configure"
6443 #include "confdefs.h"
6444 /* System header to define __stub macros and hopefully few prototypes,
6445 which can conflict with char $ac_func(); below. */
6446 #include <assert.h>
6447 /* Override any gcc2 internal prototype to avoid an error. */
6448 /* We use char because int might match the return type of a gcc2
6449 builtin and then its argument prototype would still apply. */
6450 char $ac_func();
6452 int main() {
6454 /* The GNU C library defines this for functions which it implements
6455 to always fail with ENOSYS. Some functions are actually named
6456 something starting with __ and the normal name is an alias. */
6457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6458 choke me
6459 #else
6460 $ac_func();
6461 #endif
6463 ; return 0; }
6465 if { (eval echo configure:6466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6466 rm -rf conftest*
6467 eval "ac_cv_func_$ac_func=yes"
6468 else
6469 echo "configure: failed program was:" >&5
6470 cat conftest.$ac_ext >&5
6471 rm -rf conftest*
6472 eval "ac_cv_func_$ac_func=no"
6474 rm -f conftest*
6477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6478 echo "$ac_t""yes" 1>&6
6479 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6480 cat >> confdefs.h <<EOF
6481 #define $ac_tr_func 1
6484 else
6485 echo "$ac_t""no" 1>&6
6487 done
6489 else
6491 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
6492 echo "configure:6493: checking for _finite declaration" >&5
6493 if test x${glibcpp_cv_func__finite_use+set} != xset; then
6494 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
6495 echo $ac_n "(cached) $ac_c" 1>&6
6496 else
6499 ac_ext=C
6500 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6501 ac_cpp='$CXXCPP $CPPFLAGS'
6502 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6503 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6504 cross_compiling=$ac_cv_prog_cxx_cross
6506 cat > conftest.$ac_ext <<EOF
6507 #line 6508 "configure"
6508 #include "confdefs.h"
6509 #include <math.h>
6510 int main() {
6511 _finite(0);
6512 ; return 0; }
6514 if { (eval echo configure:6515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6515 rm -rf conftest*
6516 glibcpp_cv_func__finite_use=yes
6517 else
6518 echo "configure: failed program was:" >&5
6519 cat conftest.$ac_ext >&5
6520 rm -rf conftest*
6521 glibcpp_cv_func__finite_use=no
6523 rm -f conftest*
6524 ac_ext=c
6525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6526 ac_cpp='$CPP $CPPFLAGS'
6527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6529 cross_compiling=$ac_cv_prog_cc_cross
6535 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
6537 if test x$glibcpp_cv_func__finite_use = x"yes"; then
6538 for ac_func in _finite
6540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6541 echo "configure:6542: checking for $ac_func" >&5
6542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6543 echo $ac_n "(cached) $ac_c" 1>&6
6544 else
6545 cat > conftest.$ac_ext <<EOF
6546 #line 6547 "configure"
6547 #include "confdefs.h"
6548 /* System header to define __stub macros and hopefully few prototypes,
6549 which can conflict with char $ac_func(); below. */
6550 #include <assert.h>
6551 /* Override any gcc2 internal prototype to avoid an error. */
6552 /* We use char because int might match the return type of a gcc2
6553 builtin and then its argument prototype would still apply. */
6554 char $ac_func();
6556 int main() {
6558 /* The GNU C library defines this for functions which it implements
6559 to always fail with ENOSYS. Some functions are actually named
6560 something starting with __ and the normal name is an alias. */
6561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6562 choke me
6563 #else
6564 $ac_func();
6565 #endif
6567 ; return 0; }
6569 if { (eval echo configure:6570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6570 rm -rf conftest*
6571 eval "ac_cv_func_$ac_func=yes"
6572 else
6573 echo "configure: failed program was:" >&5
6574 cat conftest.$ac_ext >&5
6575 rm -rf conftest*
6576 eval "ac_cv_func_$ac_func=no"
6578 rm -f conftest*
6581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6582 echo "$ac_t""yes" 1>&6
6583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6584 cat >> confdefs.h <<EOF
6585 #define $ac_tr_func 1
6588 else
6589 echo "$ac_t""no" 1>&6
6591 done
6598 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
6599 echo "configure:6600: checking for copysign declaration" >&5
6600 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
6601 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
6602 echo $ac_n "(cached) $ac_c" 1>&6
6603 else
6606 ac_ext=C
6607 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6608 ac_cpp='$CXXCPP $CPPFLAGS'
6609 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6610 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6611 cross_compiling=$ac_cv_prog_cxx_cross
6613 cat > conftest.$ac_ext <<EOF
6614 #line 6615 "configure"
6615 #include "confdefs.h"
6616 #include <math.h>
6617 int main() {
6618 copysign(0, 0);
6619 ; return 0; }
6621 if { (eval echo configure:6622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6622 rm -rf conftest*
6623 glibcpp_cv_func_copysign_use=yes
6624 else
6625 echo "configure: failed program was:" >&5
6626 cat conftest.$ac_ext >&5
6627 rm -rf conftest*
6628 glibcpp_cv_func_copysign_use=no
6630 rm -f conftest*
6631 ac_ext=c
6632 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6633 ac_cpp='$CPP $CPPFLAGS'
6634 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6635 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6636 cross_compiling=$ac_cv_prog_cc_cross
6642 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
6644 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
6645 for ac_func in copysign
6647 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6648 echo "configure:6649: checking for $ac_func" >&5
6649 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6650 echo $ac_n "(cached) $ac_c" 1>&6
6651 else
6652 cat > conftest.$ac_ext <<EOF
6653 #line 6654 "configure"
6654 #include "confdefs.h"
6655 /* System header to define __stub macros and hopefully few prototypes,
6656 which can conflict with char $ac_func(); below. */
6657 #include <assert.h>
6658 /* Override any gcc2 internal prototype to avoid an error. */
6659 /* We use char because int might match the return type of a gcc2
6660 builtin and then its argument prototype would still apply. */
6661 char $ac_func();
6663 int main() {
6665 /* The GNU C library defines this for functions which it implements
6666 to always fail with ENOSYS. Some functions are actually named
6667 something starting with __ and the normal name is an alias. */
6668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6669 choke me
6670 #else
6671 $ac_func();
6672 #endif
6674 ; return 0; }
6676 if { (eval echo configure:6677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6677 rm -rf conftest*
6678 eval "ac_cv_func_$ac_func=yes"
6679 else
6680 echo "configure: failed program was:" >&5
6681 cat conftest.$ac_ext >&5
6682 rm -rf conftest*
6683 eval "ac_cv_func_$ac_func=no"
6685 rm -f conftest*
6688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6689 echo "$ac_t""yes" 1>&6
6690 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6691 cat >> confdefs.h <<EOF
6692 #define $ac_tr_func 1
6695 else
6696 echo "$ac_t""no" 1>&6
6698 done
6700 else
6702 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
6703 echo "configure:6704: checking for _copysign declaration" >&5
6704 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
6705 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
6706 echo $ac_n "(cached) $ac_c" 1>&6
6707 else
6710 ac_ext=C
6711 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6712 ac_cpp='$CXXCPP $CPPFLAGS'
6713 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6714 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6715 cross_compiling=$ac_cv_prog_cxx_cross
6717 cat > conftest.$ac_ext <<EOF
6718 #line 6719 "configure"
6719 #include "confdefs.h"
6720 #include <math.h>
6721 int main() {
6722 _copysign(0, 0);
6723 ; return 0; }
6725 if { (eval echo configure:6726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6726 rm -rf conftest*
6727 glibcpp_cv_func__copysign_use=yes
6728 else
6729 echo "configure: failed program was:" >&5
6730 cat conftest.$ac_ext >&5
6731 rm -rf conftest*
6732 glibcpp_cv_func__copysign_use=no
6734 rm -f conftest*
6735 ac_ext=c
6736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6737 ac_cpp='$CPP $CPPFLAGS'
6738 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6739 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6740 cross_compiling=$ac_cv_prog_cc_cross
6746 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
6748 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
6749 for ac_func in _copysign
6751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6752 echo "configure:6753: checking for $ac_func" >&5
6753 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6754 echo $ac_n "(cached) $ac_c" 1>&6
6755 else
6756 cat > conftest.$ac_ext <<EOF
6757 #line 6758 "configure"
6758 #include "confdefs.h"
6759 /* System header to define __stub macros and hopefully few prototypes,
6760 which can conflict with char $ac_func(); below. */
6761 #include <assert.h>
6762 /* Override any gcc2 internal prototype to avoid an error. */
6763 /* We use char because int might match the return type of a gcc2
6764 builtin and then its argument prototype would still apply. */
6765 char $ac_func();
6767 int main() {
6769 /* The GNU C library defines this for functions which it implements
6770 to always fail with ENOSYS. Some functions are actually named
6771 something starting with __ and the normal name is an alias. */
6772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6773 choke me
6774 #else
6775 $ac_func();
6776 #endif
6778 ; return 0; }
6780 if { (eval echo configure:6781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6781 rm -rf conftest*
6782 eval "ac_cv_func_$ac_func=yes"
6783 else
6784 echo "configure: failed program was:" >&5
6785 cat conftest.$ac_ext >&5
6786 rm -rf conftest*
6787 eval "ac_cv_func_$ac_func=no"
6789 rm -f conftest*
6792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6793 echo "$ac_t""yes" 1>&6
6794 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6795 cat >> confdefs.h <<EOF
6796 #define $ac_tr_func 1
6799 else
6800 echo "$ac_t""no" 1>&6
6802 done
6809 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
6810 echo "configure:6811: checking for sincos declaration" >&5
6811 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
6812 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
6813 echo $ac_n "(cached) $ac_c" 1>&6
6814 else
6817 ac_ext=C
6818 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6819 ac_cpp='$CXXCPP $CPPFLAGS'
6820 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6821 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6822 cross_compiling=$ac_cv_prog_cxx_cross
6824 cat > conftest.$ac_ext <<EOF
6825 #line 6826 "configure"
6826 #include "confdefs.h"
6827 #include <math.h>
6828 int main() {
6829 sincos(0, 0, 0);
6830 ; return 0; }
6832 if { (eval echo configure:6833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6833 rm -rf conftest*
6834 glibcpp_cv_func_sincos_use=yes
6835 else
6836 echo "configure: failed program was:" >&5
6837 cat conftest.$ac_ext >&5
6838 rm -rf conftest*
6839 glibcpp_cv_func_sincos_use=no
6841 rm -f conftest*
6842 ac_ext=c
6843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6844 ac_cpp='$CPP $CPPFLAGS'
6845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6846 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6847 cross_compiling=$ac_cv_prog_cc_cross
6853 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
6855 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
6856 for ac_func in sincos
6858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6859 echo "configure:6860: checking for $ac_func" >&5
6860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6861 echo $ac_n "(cached) $ac_c" 1>&6
6862 else
6863 cat > conftest.$ac_ext <<EOF
6864 #line 6865 "configure"
6865 #include "confdefs.h"
6866 /* System header to define __stub macros and hopefully few prototypes,
6867 which can conflict with char $ac_func(); below. */
6868 #include <assert.h>
6869 /* Override any gcc2 internal prototype to avoid an error. */
6870 /* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6872 char $ac_func();
6874 int main() {
6876 /* The GNU C library defines this for functions which it implements
6877 to always fail with ENOSYS. Some functions are actually named
6878 something starting with __ and the normal name is an alias. */
6879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6880 choke me
6881 #else
6882 $ac_func();
6883 #endif
6885 ; return 0; }
6887 if { (eval echo configure:6888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6888 rm -rf conftest*
6889 eval "ac_cv_func_$ac_func=yes"
6890 else
6891 echo "configure: failed program was:" >&5
6892 cat conftest.$ac_ext >&5
6893 rm -rf conftest*
6894 eval "ac_cv_func_$ac_func=no"
6896 rm -f conftest*
6899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6900 echo "$ac_t""yes" 1>&6
6901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6902 cat >> confdefs.h <<EOF
6903 #define $ac_tr_func 1
6906 else
6907 echo "$ac_t""no" 1>&6
6909 done
6911 else
6913 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
6914 echo "configure:6915: checking for _sincos declaration" >&5
6915 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
6916 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
6917 echo $ac_n "(cached) $ac_c" 1>&6
6918 else
6921 ac_ext=C
6922 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6923 ac_cpp='$CXXCPP $CPPFLAGS'
6924 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6925 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6926 cross_compiling=$ac_cv_prog_cxx_cross
6928 cat > conftest.$ac_ext <<EOF
6929 #line 6930 "configure"
6930 #include "confdefs.h"
6931 #include <math.h>
6932 int main() {
6933 _sincos(0, 0, 0);
6934 ; return 0; }
6936 if { (eval echo configure:6937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6937 rm -rf conftest*
6938 glibcpp_cv_func__sincos_use=yes
6939 else
6940 echo "configure: failed program was:" >&5
6941 cat conftest.$ac_ext >&5
6942 rm -rf conftest*
6943 glibcpp_cv_func__sincos_use=no
6945 rm -f conftest*
6946 ac_ext=c
6947 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6948 ac_cpp='$CPP $CPPFLAGS'
6949 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6950 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6951 cross_compiling=$ac_cv_prog_cc_cross
6957 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
6959 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
6960 for ac_func in _sincos
6962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6963 echo "configure:6964: checking for $ac_func" >&5
6964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6965 echo $ac_n "(cached) $ac_c" 1>&6
6966 else
6967 cat > conftest.$ac_ext <<EOF
6968 #line 6969 "configure"
6969 #include "confdefs.h"
6970 /* System header to define __stub macros and hopefully few prototypes,
6971 which can conflict with char $ac_func(); below. */
6972 #include <assert.h>
6973 /* Override any gcc2 internal prototype to avoid an error. */
6974 /* We use char because int might match the return type of a gcc2
6975 builtin and then its argument prototype would still apply. */
6976 char $ac_func();
6978 int main() {
6980 /* The GNU C library defines this for functions which it implements
6981 to always fail with ENOSYS. Some functions are actually named
6982 something starting with __ and the normal name is an alias. */
6983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6984 choke me
6985 #else
6986 $ac_func();
6987 #endif
6989 ; return 0; }
6991 if { (eval echo configure:6992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6992 rm -rf conftest*
6993 eval "ac_cv_func_$ac_func=yes"
6994 else
6995 echo "configure: failed program was:" >&5
6996 cat conftest.$ac_ext >&5
6997 rm -rf conftest*
6998 eval "ac_cv_func_$ac_func=no"
7000 rm -f conftest*
7003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7004 echo "$ac_t""yes" 1>&6
7005 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7006 cat >> confdefs.h <<EOF
7007 #define $ac_tr_func 1
7010 else
7011 echo "$ac_t""no" 1>&6
7013 done
7020 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7021 echo "configure:7022: checking for fpclass declaration" >&5
7022 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7023 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7024 echo $ac_n "(cached) $ac_c" 1>&6
7025 else
7028 ac_ext=C
7029 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7030 ac_cpp='$CXXCPP $CPPFLAGS'
7031 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7032 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7033 cross_compiling=$ac_cv_prog_cxx_cross
7035 cat > conftest.$ac_ext <<EOF
7036 #line 7037 "configure"
7037 #include "confdefs.h"
7038 #include <math.h>
7039 int main() {
7040 fpclass(0);
7041 ; return 0; }
7043 if { (eval echo configure:7044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7044 rm -rf conftest*
7045 glibcpp_cv_func_fpclass_use=yes
7046 else
7047 echo "configure: failed program was:" >&5
7048 cat conftest.$ac_ext >&5
7049 rm -rf conftest*
7050 glibcpp_cv_func_fpclass_use=no
7052 rm -f conftest*
7053 ac_ext=c
7054 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7055 ac_cpp='$CPP $CPPFLAGS'
7056 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7057 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7058 cross_compiling=$ac_cv_prog_cc_cross
7064 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7066 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7067 for ac_func in fpclass
7069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7070 echo "configure:7071: checking for $ac_func" >&5
7071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7072 echo $ac_n "(cached) $ac_c" 1>&6
7073 else
7074 cat > conftest.$ac_ext <<EOF
7075 #line 7076 "configure"
7076 #include "confdefs.h"
7077 /* System header to define __stub macros and hopefully few prototypes,
7078 which can conflict with char $ac_func(); below. */
7079 #include <assert.h>
7080 /* Override any gcc2 internal prototype to avoid an error. */
7081 /* We use char because int might match the return type of a gcc2
7082 builtin and then its argument prototype would still apply. */
7083 char $ac_func();
7085 int main() {
7087 /* The GNU C library defines this for functions which it implements
7088 to always fail with ENOSYS. Some functions are actually named
7089 something starting with __ and the normal name is an alias. */
7090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7091 choke me
7092 #else
7093 $ac_func();
7094 #endif
7096 ; return 0; }
7098 if { (eval echo configure:7099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7099 rm -rf conftest*
7100 eval "ac_cv_func_$ac_func=yes"
7101 else
7102 echo "configure: failed program was:" >&5
7103 cat conftest.$ac_ext >&5
7104 rm -rf conftest*
7105 eval "ac_cv_func_$ac_func=no"
7107 rm -f conftest*
7110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7111 echo "$ac_t""yes" 1>&6
7112 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7113 cat >> confdefs.h <<EOF
7114 #define $ac_tr_func 1
7117 else
7118 echo "$ac_t""no" 1>&6
7120 done
7122 else
7124 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7125 echo "configure:7126: checking for _fpclass declaration" >&5
7126 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7127 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7128 echo $ac_n "(cached) $ac_c" 1>&6
7129 else
7132 ac_ext=C
7133 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7134 ac_cpp='$CXXCPP $CPPFLAGS'
7135 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7136 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7137 cross_compiling=$ac_cv_prog_cxx_cross
7139 cat > conftest.$ac_ext <<EOF
7140 #line 7141 "configure"
7141 #include "confdefs.h"
7142 #include <math.h>
7143 int main() {
7144 _fpclass(0);
7145 ; return 0; }
7147 if { (eval echo configure:7148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7148 rm -rf conftest*
7149 glibcpp_cv_func__fpclass_use=yes
7150 else
7151 echo "configure: failed program was:" >&5
7152 cat conftest.$ac_ext >&5
7153 rm -rf conftest*
7154 glibcpp_cv_func__fpclass_use=no
7156 rm -f conftest*
7157 ac_ext=c
7158 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7159 ac_cpp='$CPP $CPPFLAGS'
7160 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7161 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7162 cross_compiling=$ac_cv_prog_cc_cross
7168 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7170 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7171 for ac_func in _fpclass
7173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7174 echo "configure:7175: checking for $ac_func" >&5
7175 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7176 echo $ac_n "(cached) $ac_c" 1>&6
7177 else
7178 cat > conftest.$ac_ext <<EOF
7179 #line 7180 "configure"
7180 #include "confdefs.h"
7181 /* System header to define __stub macros and hopefully few prototypes,
7182 which can conflict with char $ac_func(); below. */
7183 #include <assert.h>
7184 /* Override any gcc2 internal prototype to avoid an error. */
7185 /* We use char because int might match the return type of a gcc2
7186 builtin and then its argument prototype would still apply. */
7187 char $ac_func();
7189 int main() {
7191 /* The GNU C library defines this for functions which it implements
7192 to always fail with ENOSYS. Some functions are actually named
7193 something starting with __ and the normal name is an alias. */
7194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7195 choke me
7196 #else
7197 $ac_func();
7198 #endif
7200 ; return 0; }
7202 if { (eval echo configure:7203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7203 rm -rf conftest*
7204 eval "ac_cv_func_$ac_func=yes"
7205 else
7206 echo "configure: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7208 rm -rf conftest*
7209 eval "ac_cv_func_$ac_func=no"
7211 rm -f conftest*
7214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7215 echo "$ac_t""yes" 1>&6
7216 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7217 cat >> confdefs.h <<EOF
7218 #define $ac_tr_func 1
7221 else
7222 echo "$ac_t""no" 1>&6
7224 done
7231 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7232 echo "configure:7233: checking for qfpclass declaration" >&5
7233 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7234 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7235 echo $ac_n "(cached) $ac_c" 1>&6
7236 else
7239 ac_ext=C
7240 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7241 ac_cpp='$CXXCPP $CPPFLAGS'
7242 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7243 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7244 cross_compiling=$ac_cv_prog_cxx_cross
7246 cat > conftest.$ac_ext <<EOF
7247 #line 7248 "configure"
7248 #include "confdefs.h"
7249 #include <math.h>
7250 int main() {
7251 qfpclass(0);
7252 ; return 0; }
7254 if { (eval echo configure:7255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7255 rm -rf conftest*
7256 glibcpp_cv_func_qfpclass_use=yes
7257 else
7258 echo "configure: failed program was:" >&5
7259 cat conftest.$ac_ext >&5
7260 rm -rf conftest*
7261 glibcpp_cv_func_qfpclass_use=no
7263 rm -f conftest*
7264 ac_ext=c
7265 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7266 ac_cpp='$CPP $CPPFLAGS'
7267 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7268 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7269 cross_compiling=$ac_cv_prog_cc_cross
7275 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7277 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7278 for ac_func in qfpclass
7280 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7281 echo "configure:7282: checking for $ac_func" >&5
7282 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7283 echo $ac_n "(cached) $ac_c" 1>&6
7284 else
7285 cat > conftest.$ac_ext <<EOF
7286 #line 7287 "configure"
7287 #include "confdefs.h"
7288 /* System header to define __stub macros and hopefully few prototypes,
7289 which can conflict with char $ac_func(); below. */
7290 #include <assert.h>
7291 /* Override any gcc2 internal prototype to avoid an error. */
7292 /* We use char because int might match the return type of a gcc2
7293 builtin and then its argument prototype would still apply. */
7294 char $ac_func();
7296 int main() {
7298 /* The GNU C library defines this for functions which it implements
7299 to always fail with ENOSYS. Some functions are actually named
7300 something starting with __ and the normal name is an alias. */
7301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7302 choke me
7303 #else
7304 $ac_func();
7305 #endif
7307 ; return 0; }
7309 if { (eval echo configure:7310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7310 rm -rf conftest*
7311 eval "ac_cv_func_$ac_func=yes"
7312 else
7313 echo "configure: failed program was:" >&5
7314 cat conftest.$ac_ext >&5
7315 rm -rf conftest*
7316 eval "ac_cv_func_$ac_func=no"
7318 rm -f conftest*
7321 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7322 echo "$ac_t""yes" 1>&6
7323 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7324 cat >> confdefs.h <<EOF
7325 #define $ac_tr_func 1
7328 else
7329 echo "$ac_t""no" 1>&6
7331 done
7333 else
7335 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7336 echo "configure:7337: checking for _qfpclass declaration" >&5
7337 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7338 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7339 echo $ac_n "(cached) $ac_c" 1>&6
7340 else
7343 ac_ext=C
7344 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7345 ac_cpp='$CXXCPP $CPPFLAGS'
7346 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7347 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7348 cross_compiling=$ac_cv_prog_cxx_cross
7350 cat > conftest.$ac_ext <<EOF
7351 #line 7352 "configure"
7352 #include "confdefs.h"
7353 #include <math.h>
7354 int main() {
7355 _qfpclass(0);
7356 ; return 0; }
7358 if { (eval echo configure:7359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7359 rm -rf conftest*
7360 glibcpp_cv_func__qfpclass_use=yes
7361 else
7362 echo "configure: failed program was:" >&5
7363 cat conftest.$ac_ext >&5
7364 rm -rf conftest*
7365 glibcpp_cv_func__qfpclass_use=no
7367 rm -f conftest*
7368 ac_ext=c
7369 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7370 ac_cpp='$CPP $CPPFLAGS'
7371 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7372 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7373 cross_compiling=$ac_cv_prog_cc_cross
7379 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7381 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7382 for ac_func in _qfpclass
7384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7385 echo "configure:7386: checking for $ac_func" >&5
7386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7387 echo $ac_n "(cached) $ac_c" 1>&6
7388 else
7389 cat > conftest.$ac_ext <<EOF
7390 #line 7391 "configure"
7391 #include "confdefs.h"
7392 /* System header to define __stub macros and hopefully few prototypes,
7393 which can conflict with char $ac_func(); below. */
7394 #include <assert.h>
7395 /* Override any gcc2 internal prototype to avoid an error. */
7396 /* We use char because int might match the return type of a gcc2
7397 builtin and then its argument prototype would still apply. */
7398 char $ac_func();
7400 int main() {
7402 /* The GNU C library defines this for functions which it implements
7403 to always fail with ENOSYS. Some functions are actually named
7404 something starting with __ and the normal name is an alias. */
7405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7406 choke me
7407 #else
7408 $ac_func();
7409 #endif
7411 ; return 0; }
7413 if { (eval echo configure:7414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7414 rm -rf conftest*
7415 eval "ac_cv_func_$ac_func=yes"
7416 else
7417 echo "configure: failed program was:" >&5
7418 cat conftest.$ac_ext >&5
7419 rm -rf conftest*
7420 eval "ac_cv_func_$ac_func=no"
7422 rm -f conftest*
7425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7426 echo "$ac_t""yes" 1>&6
7427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7428 cat >> confdefs.h <<EOF
7429 #define $ac_tr_func 1
7432 else
7433 echo "$ac_t""no" 1>&6
7435 done
7442 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
7443 echo "configure:7444: checking for float trig functions" >&5
7444 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
7445 echo $ac_n "(cached) $ac_c" 1>&6
7446 else
7449 ac_ext=C
7450 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7451 ac_cpp='$CXXCPP $CPPFLAGS'
7452 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7453 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7454 cross_compiling=$ac_cv_prog_cxx_cross
7456 cat > conftest.$ac_ext <<EOF
7457 #line 7458 "configure"
7458 #include "confdefs.h"
7459 #include <math.h>
7460 int main() {
7461 `for x in acosf asinf atanf \
7462 cosf sinf tanf \
7463 coshf sinhf tanhf; do echo "$x (0);"; done`
7464 ; return 0; }
7466 if { (eval echo configure:7467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7467 rm -rf conftest*
7468 glibcpp_cv_func_float_trig_use=yes
7469 else
7470 echo "configure: failed program was:" >&5
7471 cat conftest.$ac_ext >&5
7472 rm -rf conftest*
7473 glibcpp_cv_func_float_trig_use=no
7475 rm -f conftest*
7476 ac_ext=c
7477 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7478 ac_cpp='$CPP $CPPFLAGS'
7479 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7480 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7481 cross_compiling=$ac_cv_prog_cc_cross
7485 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
7486 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
7487 for ac_func in acosf asinf atanf \
7488 cosf sinf tanf \
7489 coshf sinhf tanhf
7491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7492 echo "configure:7493: checking for $ac_func" >&5
7493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7494 echo $ac_n "(cached) $ac_c" 1>&6
7495 else
7496 cat > conftest.$ac_ext <<EOF
7497 #line 7498 "configure"
7498 #include "confdefs.h"
7499 /* System header to define __stub macros and hopefully few prototypes,
7500 which can conflict with char $ac_func(); below. */
7501 #include <assert.h>
7502 /* Override any gcc2 internal prototype to avoid an error. */
7503 /* We use char because int might match the return type of a gcc2
7504 builtin and then its argument prototype would still apply. */
7505 char $ac_func();
7507 int main() {
7509 /* The GNU C library defines this for functions which it implements
7510 to always fail with ENOSYS. Some functions are actually named
7511 something starting with __ and the normal name is an alias. */
7512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7513 choke me
7514 #else
7515 $ac_func();
7516 #endif
7518 ; return 0; }
7520 if { (eval echo configure:7521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7521 rm -rf conftest*
7522 eval "ac_cv_func_$ac_func=yes"
7523 else
7524 echo "configure: failed program was:" >&5
7525 cat conftest.$ac_ext >&5
7526 rm -rf conftest*
7527 eval "ac_cv_func_$ac_func=no"
7529 rm -f conftest*
7532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7533 echo "$ac_t""yes" 1>&6
7534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7535 cat >> confdefs.h <<EOF
7536 #define $ac_tr_func 1
7539 else
7540 echo "$ac_t""no" 1>&6
7542 done
7547 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
7548 echo "configure:7549: checking for float round functions" >&5
7549 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
7550 echo $ac_n "(cached) $ac_c" 1>&6
7551 else
7554 ac_ext=C
7555 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7556 ac_cpp='$CXXCPP $CPPFLAGS'
7557 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7558 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7559 cross_compiling=$ac_cv_prog_cxx_cross
7561 cat > conftest.$ac_ext <<EOF
7562 #line 7563 "configure"
7563 #include "confdefs.h"
7564 #include <math.h>
7565 int main() {
7566 `for x in ceilf floorf; do echo "$x (0);"; done`
7567 ; return 0; }
7569 if { (eval echo configure:7570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7570 rm -rf conftest*
7571 glibcpp_cv_func_float_round_use=yes
7572 else
7573 echo "configure: failed program was:" >&5
7574 cat conftest.$ac_ext >&5
7575 rm -rf conftest*
7576 glibcpp_cv_func_float_round_use=no
7578 rm -f conftest*
7579 ac_ext=c
7580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7581 ac_cpp='$CPP $CPPFLAGS'
7582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7584 cross_compiling=$ac_cv_prog_cc_cross
7588 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
7589 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
7590 for ac_func in ceilf floorf
7592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7593 echo "configure:7594: checking for $ac_func" >&5
7594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7595 echo $ac_n "(cached) $ac_c" 1>&6
7596 else
7597 cat > conftest.$ac_ext <<EOF
7598 #line 7599 "configure"
7599 #include "confdefs.h"
7600 /* System header to define __stub macros and hopefully few prototypes,
7601 which can conflict with char $ac_func(); below. */
7602 #include <assert.h>
7603 /* Override any gcc2 internal prototype to avoid an error. */
7604 /* We use char because int might match the return type of a gcc2
7605 builtin and then its argument prototype would still apply. */
7606 char $ac_func();
7608 int main() {
7610 /* The GNU C library defines this for functions which it implements
7611 to always fail with ENOSYS. Some functions are actually named
7612 something starting with __ and the normal name is an alias. */
7613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7614 choke me
7615 #else
7616 $ac_func();
7617 #endif
7619 ; return 0; }
7621 if { (eval echo configure:7622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7622 rm -rf conftest*
7623 eval "ac_cv_func_$ac_func=yes"
7624 else
7625 echo "configure: failed program was:" >&5
7626 cat conftest.$ac_ext >&5
7627 rm -rf conftest*
7628 eval "ac_cv_func_$ac_func=no"
7630 rm -f conftest*
7633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7634 echo "$ac_t""yes" 1>&6
7635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7636 cat >> confdefs.h <<EOF
7637 #define $ac_tr_func 1
7640 else
7641 echo "$ac_t""no" 1>&6
7643 done
7649 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
7650 echo "configure:7651: checking for isnanf declaration" >&5
7651 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
7652 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
7653 echo $ac_n "(cached) $ac_c" 1>&6
7654 else
7657 ac_ext=C
7658 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7659 ac_cpp='$CXXCPP $CPPFLAGS'
7660 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7661 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7662 cross_compiling=$ac_cv_prog_cxx_cross
7664 cat > conftest.$ac_ext <<EOF
7665 #line 7666 "configure"
7666 #include "confdefs.h"
7667 #include <math.h>
7668 int main() {
7669 isnanf(0);
7670 ; return 0; }
7672 if { (eval echo configure:7673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7673 rm -rf conftest*
7674 glibcpp_cv_func_isnanf_use=yes
7675 else
7676 echo "configure: failed program was:" >&5
7677 cat conftest.$ac_ext >&5
7678 rm -rf conftest*
7679 glibcpp_cv_func_isnanf_use=no
7681 rm -f conftest*
7682 ac_ext=c
7683 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7684 ac_cpp='$CPP $CPPFLAGS'
7685 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7686 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7687 cross_compiling=$ac_cv_prog_cc_cross
7693 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
7695 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
7696 for ac_func in isnanf
7698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7699 echo "configure:7700: checking for $ac_func" >&5
7700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7701 echo $ac_n "(cached) $ac_c" 1>&6
7702 else
7703 cat > conftest.$ac_ext <<EOF
7704 #line 7705 "configure"
7705 #include "confdefs.h"
7706 /* System header to define __stub macros and hopefully few prototypes,
7707 which can conflict with char $ac_func(); below. */
7708 #include <assert.h>
7709 /* Override any gcc2 internal prototype to avoid an error. */
7710 /* We use char because int might match the return type of a gcc2
7711 builtin and then its argument prototype would still apply. */
7712 char $ac_func();
7714 int main() {
7716 /* The GNU C library defines this for functions which it implements
7717 to always fail with ENOSYS. Some functions are actually named
7718 something starting with __ and the normal name is an alias. */
7719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7720 choke me
7721 #else
7722 $ac_func();
7723 #endif
7725 ; return 0; }
7727 if { (eval echo configure:7728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7728 rm -rf conftest*
7729 eval "ac_cv_func_$ac_func=yes"
7730 else
7731 echo "configure: failed program was:" >&5
7732 cat conftest.$ac_ext >&5
7733 rm -rf conftest*
7734 eval "ac_cv_func_$ac_func=no"
7736 rm -f conftest*
7739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7740 echo "$ac_t""yes" 1>&6
7741 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7742 cat >> confdefs.h <<EOF
7743 #define $ac_tr_func 1
7746 else
7747 echo "$ac_t""no" 1>&6
7749 done
7751 else
7753 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
7754 echo "configure:7755: checking for _isnanf declaration" >&5
7755 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
7756 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
7757 echo $ac_n "(cached) $ac_c" 1>&6
7758 else
7761 ac_ext=C
7762 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7763 ac_cpp='$CXXCPP $CPPFLAGS'
7764 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7765 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7766 cross_compiling=$ac_cv_prog_cxx_cross
7768 cat > conftest.$ac_ext <<EOF
7769 #line 7770 "configure"
7770 #include "confdefs.h"
7771 #include <math.h>
7772 int main() {
7773 _isnanf(0);
7774 ; return 0; }
7776 if { (eval echo configure:7777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7777 rm -rf conftest*
7778 glibcpp_cv_func__isnanf_use=yes
7779 else
7780 echo "configure: failed program was:" >&5
7781 cat conftest.$ac_ext >&5
7782 rm -rf conftest*
7783 glibcpp_cv_func__isnanf_use=no
7785 rm -f conftest*
7786 ac_ext=c
7787 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7788 ac_cpp='$CPP $CPPFLAGS'
7789 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7790 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7791 cross_compiling=$ac_cv_prog_cc_cross
7797 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
7799 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
7800 for ac_func in _isnanf
7802 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7803 echo "configure:7804: checking for $ac_func" >&5
7804 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7805 echo $ac_n "(cached) $ac_c" 1>&6
7806 else
7807 cat > conftest.$ac_ext <<EOF
7808 #line 7809 "configure"
7809 #include "confdefs.h"
7810 /* System header to define __stub macros and hopefully few prototypes,
7811 which can conflict with char $ac_func(); below. */
7812 #include <assert.h>
7813 /* Override any gcc2 internal prototype to avoid an error. */
7814 /* We use char because int might match the return type of a gcc2
7815 builtin and then its argument prototype would still apply. */
7816 char $ac_func();
7818 int main() {
7820 /* The GNU C library defines this for functions which it implements
7821 to always fail with ENOSYS. Some functions are actually named
7822 something starting with __ and the normal name is an alias. */
7823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7824 choke me
7825 #else
7826 $ac_func();
7827 #endif
7829 ; return 0; }
7831 if { (eval echo configure:7832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7832 rm -rf conftest*
7833 eval "ac_cv_func_$ac_func=yes"
7834 else
7835 echo "configure: failed program was:" >&5
7836 cat conftest.$ac_ext >&5
7837 rm -rf conftest*
7838 eval "ac_cv_func_$ac_func=no"
7840 rm -f conftest*
7843 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7844 echo "$ac_t""yes" 1>&6
7845 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7846 cat >> confdefs.h <<EOF
7847 #define $ac_tr_func 1
7850 else
7851 echo "$ac_t""no" 1>&6
7853 done
7860 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
7861 echo "configure:7862: checking for isinff declaration" >&5
7862 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
7863 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
7864 echo $ac_n "(cached) $ac_c" 1>&6
7865 else
7868 ac_ext=C
7869 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7870 ac_cpp='$CXXCPP $CPPFLAGS'
7871 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7872 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7873 cross_compiling=$ac_cv_prog_cxx_cross
7875 cat > conftest.$ac_ext <<EOF
7876 #line 7877 "configure"
7877 #include "confdefs.h"
7878 #include <math.h>
7879 int main() {
7880 isinff(0);
7881 ; return 0; }
7883 if { (eval echo configure:7884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7884 rm -rf conftest*
7885 glibcpp_cv_func_isinff_use=yes
7886 else
7887 echo "configure: failed program was:" >&5
7888 cat conftest.$ac_ext >&5
7889 rm -rf conftest*
7890 glibcpp_cv_func_isinff_use=no
7892 rm -f conftest*
7893 ac_ext=c
7894 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7895 ac_cpp='$CPP $CPPFLAGS'
7896 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7897 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7898 cross_compiling=$ac_cv_prog_cc_cross
7904 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
7906 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
7907 for ac_func in isinff
7909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7910 echo "configure:7911: checking for $ac_func" >&5
7911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7912 echo $ac_n "(cached) $ac_c" 1>&6
7913 else
7914 cat > conftest.$ac_ext <<EOF
7915 #line 7916 "configure"
7916 #include "confdefs.h"
7917 /* System header to define __stub macros and hopefully few prototypes,
7918 which can conflict with char $ac_func(); below. */
7919 #include <assert.h>
7920 /* Override any gcc2 internal prototype to avoid an error. */
7921 /* We use char because int might match the return type of a gcc2
7922 builtin and then its argument prototype would still apply. */
7923 char $ac_func();
7925 int main() {
7927 /* The GNU C library defines this for functions which it implements
7928 to always fail with ENOSYS. Some functions are actually named
7929 something starting with __ and the normal name is an alias. */
7930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7931 choke me
7932 #else
7933 $ac_func();
7934 #endif
7936 ; return 0; }
7938 if { (eval echo configure:7939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7939 rm -rf conftest*
7940 eval "ac_cv_func_$ac_func=yes"
7941 else
7942 echo "configure: failed program was:" >&5
7943 cat conftest.$ac_ext >&5
7944 rm -rf conftest*
7945 eval "ac_cv_func_$ac_func=no"
7947 rm -f conftest*
7950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7951 echo "$ac_t""yes" 1>&6
7952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7953 cat >> confdefs.h <<EOF
7954 #define $ac_tr_func 1
7957 else
7958 echo "$ac_t""no" 1>&6
7960 done
7962 else
7964 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
7965 echo "configure:7966: checking for _isinff declaration" >&5
7966 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
7967 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
7968 echo $ac_n "(cached) $ac_c" 1>&6
7969 else
7972 ac_ext=C
7973 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7974 ac_cpp='$CXXCPP $CPPFLAGS'
7975 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7976 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7977 cross_compiling=$ac_cv_prog_cxx_cross
7979 cat > conftest.$ac_ext <<EOF
7980 #line 7981 "configure"
7981 #include "confdefs.h"
7982 #include <math.h>
7983 int main() {
7984 _isinff(0);
7985 ; return 0; }
7987 if { (eval echo configure:7988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7988 rm -rf conftest*
7989 glibcpp_cv_func__isinff_use=yes
7990 else
7991 echo "configure: failed program was:" >&5
7992 cat conftest.$ac_ext >&5
7993 rm -rf conftest*
7994 glibcpp_cv_func__isinff_use=no
7996 rm -f conftest*
7997 ac_ext=c
7998 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7999 ac_cpp='$CPP $CPPFLAGS'
8000 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8001 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8002 cross_compiling=$ac_cv_prog_cc_cross
8008 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8010 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8011 for ac_func in _isinff
8013 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8014 echo "configure:8015: checking for $ac_func" >&5
8015 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8016 echo $ac_n "(cached) $ac_c" 1>&6
8017 else
8018 cat > conftest.$ac_ext <<EOF
8019 #line 8020 "configure"
8020 #include "confdefs.h"
8021 /* System header to define __stub macros and hopefully few prototypes,
8022 which can conflict with char $ac_func(); below. */
8023 #include <assert.h>
8024 /* Override any gcc2 internal prototype to avoid an error. */
8025 /* We use char because int might match the return type of a gcc2
8026 builtin and then its argument prototype would still apply. */
8027 char $ac_func();
8029 int main() {
8031 /* The GNU C library defines this for functions which it implements
8032 to always fail with ENOSYS. Some functions are actually named
8033 something starting with __ and the normal name is an alias. */
8034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8035 choke me
8036 #else
8037 $ac_func();
8038 #endif
8040 ; return 0; }
8042 if { (eval echo configure:8043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8043 rm -rf conftest*
8044 eval "ac_cv_func_$ac_func=yes"
8045 else
8046 echo "configure: failed program was:" >&5
8047 cat conftest.$ac_ext >&5
8048 rm -rf conftest*
8049 eval "ac_cv_func_$ac_func=no"
8051 rm -f conftest*
8054 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8055 echo "$ac_t""yes" 1>&6
8056 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8057 cat >> confdefs.h <<EOF
8058 #define $ac_tr_func 1
8061 else
8062 echo "$ac_t""no" 1>&6
8064 done
8071 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
8072 echo "configure:8073: checking for fabsf declaration" >&5
8073 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
8074 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
8075 echo $ac_n "(cached) $ac_c" 1>&6
8076 else
8079 ac_ext=C
8080 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8081 ac_cpp='$CXXCPP $CPPFLAGS'
8082 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8083 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8084 cross_compiling=$ac_cv_prog_cxx_cross
8086 cat > conftest.$ac_ext <<EOF
8087 #line 8088 "configure"
8088 #include "confdefs.h"
8089 #include <math.h>
8090 int main() {
8091 fabsf(0);
8092 ; return 0; }
8094 if { (eval echo configure:8095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8095 rm -rf conftest*
8096 glibcpp_cv_func_fabsf_use=yes
8097 else
8098 echo "configure: failed program was:" >&5
8099 cat conftest.$ac_ext >&5
8100 rm -rf conftest*
8101 glibcpp_cv_func_fabsf_use=no
8103 rm -f conftest*
8104 ac_ext=c
8105 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8106 ac_cpp='$CPP $CPPFLAGS'
8107 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8108 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8109 cross_compiling=$ac_cv_prog_cc_cross
8115 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
8117 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
8118 for ac_func in fabsf
8120 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8121 echo "configure:8122: checking for $ac_func" >&5
8122 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8123 echo $ac_n "(cached) $ac_c" 1>&6
8124 else
8125 cat > conftest.$ac_ext <<EOF
8126 #line 8127 "configure"
8127 #include "confdefs.h"
8128 /* System header to define __stub macros and hopefully few prototypes,
8129 which can conflict with char $ac_func(); below. */
8130 #include <assert.h>
8131 /* Override any gcc2 internal prototype to avoid an error. */
8132 /* We use char because int might match the return type of a gcc2
8133 builtin and then its argument prototype would still apply. */
8134 char $ac_func();
8136 int main() {
8138 /* The GNU C library defines this for functions which it implements
8139 to always fail with ENOSYS. Some functions are actually named
8140 something starting with __ and the normal name is an alias. */
8141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8142 choke me
8143 #else
8144 $ac_func();
8145 #endif
8147 ; return 0; }
8149 if { (eval echo configure:8150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8150 rm -rf conftest*
8151 eval "ac_cv_func_$ac_func=yes"
8152 else
8153 echo "configure: failed program was:" >&5
8154 cat conftest.$ac_ext >&5
8155 rm -rf conftest*
8156 eval "ac_cv_func_$ac_func=no"
8158 rm -f conftest*
8161 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8162 echo "$ac_t""yes" 1>&6
8163 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8164 cat >> confdefs.h <<EOF
8165 #define $ac_tr_func 1
8168 else
8169 echo "$ac_t""no" 1>&6
8171 done
8173 else
8175 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
8176 echo "configure:8177: checking for _fabsf declaration" >&5
8177 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
8178 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
8179 echo $ac_n "(cached) $ac_c" 1>&6
8180 else
8183 ac_ext=C
8184 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8185 ac_cpp='$CXXCPP $CPPFLAGS'
8186 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8187 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8188 cross_compiling=$ac_cv_prog_cxx_cross
8190 cat > conftest.$ac_ext <<EOF
8191 #line 8192 "configure"
8192 #include "confdefs.h"
8193 #include <math.h>
8194 int main() {
8195 _fabsf(0);
8196 ; return 0; }
8198 if { (eval echo configure:8199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8199 rm -rf conftest*
8200 glibcpp_cv_func__fabsf_use=yes
8201 else
8202 echo "configure: failed program was:" >&5
8203 cat conftest.$ac_ext >&5
8204 rm -rf conftest*
8205 glibcpp_cv_func__fabsf_use=no
8207 rm -f conftest*
8208 ac_ext=c
8209 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8210 ac_cpp='$CPP $CPPFLAGS'
8211 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8212 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8213 cross_compiling=$ac_cv_prog_cc_cross
8219 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
8221 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
8222 for ac_func in _fabsf
8224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8225 echo "configure:8226: checking for $ac_func" >&5
8226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8227 echo $ac_n "(cached) $ac_c" 1>&6
8228 else
8229 cat > conftest.$ac_ext <<EOF
8230 #line 8231 "configure"
8231 #include "confdefs.h"
8232 /* System header to define __stub macros and hopefully few prototypes,
8233 which can conflict with char $ac_func(); below. */
8234 #include <assert.h>
8235 /* Override any gcc2 internal prototype to avoid an error. */
8236 /* We use char because int might match the return type of a gcc2
8237 builtin and then its argument prototype would still apply. */
8238 char $ac_func();
8240 int main() {
8242 /* The GNU C library defines this for functions which it implements
8243 to always fail with ENOSYS. Some functions are actually named
8244 something starting with __ and the normal name is an alias. */
8245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8246 choke me
8247 #else
8248 $ac_func();
8249 #endif
8251 ; return 0; }
8253 if { (eval echo configure:8254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8254 rm -rf conftest*
8255 eval "ac_cv_func_$ac_func=yes"
8256 else
8257 echo "configure: failed program was:" >&5
8258 cat conftest.$ac_ext >&5
8259 rm -rf conftest*
8260 eval "ac_cv_func_$ac_func=no"
8262 rm -f conftest*
8265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8266 echo "$ac_t""yes" 1>&6
8267 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8268 cat >> confdefs.h <<EOF
8269 #define $ac_tr_func 1
8272 else
8273 echo "$ac_t""no" 1>&6
8275 done
8282 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
8283 echo "configure:8284: checking for fmodf declaration" >&5
8284 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
8285 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
8286 echo $ac_n "(cached) $ac_c" 1>&6
8287 else
8290 ac_ext=C
8291 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8292 ac_cpp='$CXXCPP $CPPFLAGS'
8293 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8294 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8295 cross_compiling=$ac_cv_prog_cxx_cross
8297 cat > conftest.$ac_ext <<EOF
8298 #line 8299 "configure"
8299 #include "confdefs.h"
8300 #include <math.h>
8301 int main() {
8302 fmodf(0, 0);
8303 ; return 0; }
8305 if { (eval echo configure:8306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8306 rm -rf conftest*
8307 glibcpp_cv_func_fmodf_use=yes
8308 else
8309 echo "configure: failed program was:" >&5
8310 cat conftest.$ac_ext >&5
8311 rm -rf conftest*
8312 glibcpp_cv_func_fmodf_use=no
8314 rm -f conftest*
8315 ac_ext=c
8316 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8317 ac_cpp='$CPP $CPPFLAGS'
8318 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8319 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8320 cross_compiling=$ac_cv_prog_cc_cross
8326 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
8328 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
8329 for ac_func in fmodf
8331 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8332 echo "configure:8333: checking for $ac_func" >&5
8333 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8334 echo $ac_n "(cached) $ac_c" 1>&6
8335 else
8336 cat > conftest.$ac_ext <<EOF
8337 #line 8338 "configure"
8338 #include "confdefs.h"
8339 /* System header to define __stub macros and hopefully few prototypes,
8340 which can conflict with char $ac_func(); below. */
8341 #include <assert.h>
8342 /* Override any gcc2 internal prototype to avoid an error. */
8343 /* We use char because int might match the return type of a gcc2
8344 builtin and then its argument prototype would still apply. */
8345 char $ac_func();
8347 int main() {
8349 /* The GNU C library defines this for functions which it implements
8350 to always fail with ENOSYS. Some functions are actually named
8351 something starting with __ and the normal name is an alias. */
8352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8353 choke me
8354 #else
8355 $ac_func();
8356 #endif
8358 ; return 0; }
8360 if { (eval echo configure:8361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8361 rm -rf conftest*
8362 eval "ac_cv_func_$ac_func=yes"
8363 else
8364 echo "configure: failed program was:" >&5
8365 cat conftest.$ac_ext >&5
8366 rm -rf conftest*
8367 eval "ac_cv_func_$ac_func=no"
8369 rm -f conftest*
8372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8373 echo "$ac_t""yes" 1>&6
8374 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8375 cat >> confdefs.h <<EOF
8376 #define $ac_tr_func 1
8379 else
8380 echo "$ac_t""no" 1>&6
8382 done
8384 else
8386 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
8387 echo "configure:8388: checking for _fmodf declaration" >&5
8388 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
8389 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
8390 echo $ac_n "(cached) $ac_c" 1>&6
8391 else
8394 ac_ext=C
8395 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8396 ac_cpp='$CXXCPP $CPPFLAGS'
8397 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8398 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8399 cross_compiling=$ac_cv_prog_cxx_cross
8401 cat > conftest.$ac_ext <<EOF
8402 #line 8403 "configure"
8403 #include "confdefs.h"
8404 #include <math.h>
8405 int main() {
8406 _fmodf(0, 0);
8407 ; return 0; }
8409 if { (eval echo configure:8410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8410 rm -rf conftest*
8411 glibcpp_cv_func__fmodf_use=yes
8412 else
8413 echo "configure: failed program was:" >&5
8414 cat conftest.$ac_ext >&5
8415 rm -rf conftest*
8416 glibcpp_cv_func__fmodf_use=no
8418 rm -f conftest*
8419 ac_ext=c
8420 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8421 ac_cpp='$CPP $CPPFLAGS'
8422 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8423 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8424 cross_compiling=$ac_cv_prog_cc_cross
8430 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
8432 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
8433 for ac_func in _fmodf
8435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8436 echo "configure:8437: checking for $ac_func" >&5
8437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8438 echo $ac_n "(cached) $ac_c" 1>&6
8439 else
8440 cat > conftest.$ac_ext <<EOF
8441 #line 8442 "configure"
8442 #include "confdefs.h"
8443 /* System header to define __stub macros and hopefully few prototypes,
8444 which can conflict with char $ac_func(); below. */
8445 #include <assert.h>
8446 /* Override any gcc2 internal prototype to avoid an error. */
8447 /* We use char because int might match the return type of a gcc2
8448 builtin and then its argument prototype would still apply. */
8449 char $ac_func();
8451 int main() {
8453 /* The GNU C library defines this for functions which it implements
8454 to always fail with ENOSYS. Some functions are actually named
8455 something starting with __ and the normal name is an alias. */
8456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8457 choke me
8458 #else
8459 $ac_func();
8460 #endif
8462 ; return 0; }
8464 if { (eval echo configure:8465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8465 rm -rf conftest*
8466 eval "ac_cv_func_$ac_func=yes"
8467 else
8468 echo "configure: failed program was:" >&5
8469 cat conftest.$ac_ext >&5
8470 rm -rf conftest*
8471 eval "ac_cv_func_$ac_func=no"
8473 rm -f conftest*
8476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8477 echo "$ac_t""yes" 1>&6
8478 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8479 cat >> confdefs.h <<EOF
8480 #define $ac_tr_func 1
8483 else
8484 echo "$ac_t""no" 1>&6
8486 done
8493 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
8494 echo "configure:8495: checking for frexpf declaration" >&5
8495 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
8496 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
8497 echo $ac_n "(cached) $ac_c" 1>&6
8498 else
8501 ac_ext=C
8502 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8503 ac_cpp='$CXXCPP $CPPFLAGS'
8504 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8505 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8506 cross_compiling=$ac_cv_prog_cxx_cross
8508 cat > conftest.$ac_ext <<EOF
8509 #line 8510 "configure"
8510 #include "confdefs.h"
8511 #include <math.h>
8512 int main() {
8513 frexpf(0, 0);
8514 ; return 0; }
8516 if { (eval echo configure:8517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8517 rm -rf conftest*
8518 glibcpp_cv_func_frexpf_use=yes
8519 else
8520 echo "configure: failed program was:" >&5
8521 cat conftest.$ac_ext >&5
8522 rm -rf conftest*
8523 glibcpp_cv_func_frexpf_use=no
8525 rm -f conftest*
8526 ac_ext=c
8527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8528 ac_cpp='$CPP $CPPFLAGS'
8529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8531 cross_compiling=$ac_cv_prog_cc_cross
8537 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
8539 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
8540 for ac_func in frexpf
8542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8543 echo "configure:8544: checking for $ac_func" >&5
8544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8545 echo $ac_n "(cached) $ac_c" 1>&6
8546 else
8547 cat > conftest.$ac_ext <<EOF
8548 #line 8549 "configure"
8549 #include "confdefs.h"
8550 /* System header to define __stub macros and hopefully few prototypes,
8551 which can conflict with char $ac_func(); below. */
8552 #include <assert.h>
8553 /* Override any gcc2 internal prototype to avoid an error. */
8554 /* We use char because int might match the return type of a gcc2
8555 builtin and then its argument prototype would still apply. */
8556 char $ac_func();
8558 int main() {
8560 /* The GNU C library defines this for functions which it implements
8561 to always fail with ENOSYS. Some functions are actually named
8562 something starting with __ and the normal name is an alias. */
8563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8564 choke me
8565 #else
8566 $ac_func();
8567 #endif
8569 ; return 0; }
8571 if { (eval echo configure:8572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8572 rm -rf conftest*
8573 eval "ac_cv_func_$ac_func=yes"
8574 else
8575 echo "configure: failed program was:" >&5
8576 cat conftest.$ac_ext >&5
8577 rm -rf conftest*
8578 eval "ac_cv_func_$ac_func=no"
8580 rm -f conftest*
8583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8584 echo "$ac_t""yes" 1>&6
8585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8586 cat >> confdefs.h <<EOF
8587 #define $ac_tr_func 1
8590 else
8591 echo "$ac_t""no" 1>&6
8593 done
8595 else
8597 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
8598 echo "configure:8599: checking for _frexpf declaration" >&5
8599 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
8600 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
8601 echo $ac_n "(cached) $ac_c" 1>&6
8602 else
8605 ac_ext=C
8606 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8607 ac_cpp='$CXXCPP $CPPFLAGS'
8608 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8609 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8610 cross_compiling=$ac_cv_prog_cxx_cross
8612 cat > conftest.$ac_ext <<EOF
8613 #line 8614 "configure"
8614 #include "confdefs.h"
8615 #include <math.h>
8616 int main() {
8617 _frexpf(0, 0);
8618 ; return 0; }
8620 if { (eval echo configure:8621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8621 rm -rf conftest*
8622 glibcpp_cv_func__frexpf_use=yes
8623 else
8624 echo "configure: failed program was:" >&5
8625 cat conftest.$ac_ext >&5
8626 rm -rf conftest*
8627 glibcpp_cv_func__frexpf_use=no
8629 rm -f conftest*
8630 ac_ext=c
8631 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8632 ac_cpp='$CPP $CPPFLAGS'
8633 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8634 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8635 cross_compiling=$ac_cv_prog_cc_cross
8641 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
8643 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
8644 for ac_func in _frexpf
8646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8647 echo "configure:8648: checking for $ac_func" >&5
8648 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8649 echo $ac_n "(cached) $ac_c" 1>&6
8650 else
8651 cat > conftest.$ac_ext <<EOF
8652 #line 8653 "configure"
8653 #include "confdefs.h"
8654 /* System header to define __stub macros and hopefully few prototypes,
8655 which can conflict with char $ac_func(); below. */
8656 #include <assert.h>
8657 /* Override any gcc2 internal prototype to avoid an error. */
8658 /* We use char because int might match the return type of a gcc2
8659 builtin and then its argument prototype would still apply. */
8660 char $ac_func();
8662 int main() {
8664 /* The GNU C library defines this for functions which it implements
8665 to always fail with ENOSYS. Some functions are actually named
8666 something starting with __ and the normal name is an alias. */
8667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8668 choke me
8669 #else
8670 $ac_func();
8671 #endif
8673 ; return 0; }
8675 if { (eval echo configure:8676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8676 rm -rf conftest*
8677 eval "ac_cv_func_$ac_func=yes"
8678 else
8679 echo "configure: failed program was:" >&5
8680 cat conftest.$ac_ext >&5
8681 rm -rf conftest*
8682 eval "ac_cv_func_$ac_func=no"
8684 rm -f conftest*
8687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8688 echo "$ac_t""yes" 1>&6
8689 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8690 cat >> confdefs.h <<EOF
8691 #define $ac_tr_func 1
8694 else
8695 echo "$ac_t""no" 1>&6
8697 done
8704 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
8705 echo "configure:8706: checking for ldexpf declaration" >&5
8706 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
8707 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
8708 echo $ac_n "(cached) $ac_c" 1>&6
8709 else
8712 ac_ext=C
8713 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8714 ac_cpp='$CXXCPP $CPPFLAGS'
8715 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8716 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8717 cross_compiling=$ac_cv_prog_cxx_cross
8719 cat > conftest.$ac_ext <<EOF
8720 #line 8721 "configure"
8721 #include "confdefs.h"
8722 #include <math.h>
8723 int main() {
8724 ldexpf(0, 0);
8725 ; return 0; }
8727 if { (eval echo configure:8728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8728 rm -rf conftest*
8729 glibcpp_cv_func_ldexpf_use=yes
8730 else
8731 echo "configure: failed program was:" >&5
8732 cat conftest.$ac_ext >&5
8733 rm -rf conftest*
8734 glibcpp_cv_func_ldexpf_use=no
8736 rm -f conftest*
8737 ac_ext=c
8738 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8739 ac_cpp='$CPP $CPPFLAGS'
8740 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8741 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8742 cross_compiling=$ac_cv_prog_cc_cross
8748 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
8750 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
8751 for ac_func in ldexpf
8753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8754 echo "configure:8755: checking for $ac_func" >&5
8755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8756 echo $ac_n "(cached) $ac_c" 1>&6
8757 else
8758 cat > conftest.$ac_ext <<EOF
8759 #line 8760 "configure"
8760 #include "confdefs.h"
8761 /* System header to define __stub macros and hopefully few prototypes,
8762 which can conflict with char $ac_func(); below. */
8763 #include <assert.h>
8764 /* Override any gcc2 internal prototype to avoid an error. */
8765 /* We use char because int might match the return type of a gcc2
8766 builtin and then its argument prototype would still apply. */
8767 char $ac_func();
8769 int main() {
8771 /* The GNU C library defines this for functions which it implements
8772 to always fail with ENOSYS. Some functions are actually named
8773 something starting with __ and the normal name is an alias. */
8774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8775 choke me
8776 #else
8777 $ac_func();
8778 #endif
8780 ; return 0; }
8782 if { (eval echo configure:8783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8783 rm -rf conftest*
8784 eval "ac_cv_func_$ac_func=yes"
8785 else
8786 echo "configure: failed program was:" >&5
8787 cat conftest.$ac_ext >&5
8788 rm -rf conftest*
8789 eval "ac_cv_func_$ac_func=no"
8791 rm -f conftest*
8794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8795 echo "$ac_t""yes" 1>&6
8796 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8797 cat >> confdefs.h <<EOF
8798 #define $ac_tr_func 1
8801 else
8802 echo "$ac_t""no" 1>&6
8804 done
8806 else
8808 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
8809 echo "configure:8810: checking for _ldexpf declaration" >&5
8810 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
8811 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
8812 echo $ac_n "(cached) $ac_c" 1>&6
8813 else
8816 ac_ext=C
8817 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8818 ac_cpp='$CXXCPP $CPPFLAGS'
8819 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8820 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8821 cross_compiling=$ac_cv_prog_cxx_cross
8823 cat > conftest.$ac_ext <<EOF
8824 #line 8825 "configure"
8825 #include "confdefs.h"
8826 #include <math.h>
8827 int main() {
8828 _ldexpf(0, 0);
8829 ; return 0; }
8831 if { (eval echo configure:8832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8832 rm -rf conftest*
8833 glibcpp_cv_func__ldexpf_use=yes
8834 else
8835 echo "configure: failed program was:" >&5
8836 cat conftest.$ac_ext >&5
8837 rm -rf conftest*
8838 glibcpp_cv_func__ldexpf_use=no
8840 rm -f conftest*
8841 ac_ext=c
8842 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8843 ac_cpp='$CPP $CPPFLAGS'
8844 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8845 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8846 cross_compiling=$ac_cv_prog_cc_cross
8852 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
8854 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
8855 for ac_func in _ldexpf
8857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8858 echo "configure:8859: checking for $ac_func" >&5
8859 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8860 echo $ac_n "(cached) $ac_c" 1>&6
8861 else
8862 cat > conftest.$ac_ext <<EOF
8863 #line 8864 "configure"
8864 #include "confdefs.h"
8865 /* System header to define __stub macros and hopefully few prototypes,
8866 which can conflict with char $ac_func(); below. */
8867 #include <assert.h>
8868 /* Override any gcc2 internal prototype to avoid an error. */
8869 /* We use char because int might match the return type of a gcc2
8870 builtin and then its argument prototype would still apply. */
8871 char $ac_func();
8873 int main() {
8875 /* The GNU C library defines this for functions which it implements
8876 to always fail with ENOSYS. Some functions are actually named
8877 something starting with __ and the normal name is an alias. */
8878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8879 choke me
8880 #else
8881 $ac_func();
8882 #endif
8884 ; return 0; }
8886 if { (eval echo configure:8887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8887 rm -rf conftest*
8888 eval "ac_cv_func_$ac_func=yes"
8889 else
8890 echo "configure: failed program was:" >&5
8891 cat conftest.$ac_ext >&5
8892 rm -rf conftest*
8893 eval "ac_cv_func_$ac_func=no"
8895 rm -f conftest*
8898 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8899 echo "$ac_t""yes" 1>&6
8900 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8901 cat >> confdefs.h <<EOF
8902 #define $ac_tr_func 1
8905 else
8906 echo "$ac_t""no" 1>&6
8908 done
8915 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
8916 echo "configure:8917: checking for logf declaration" >&5
8917 if test x${glibcpp_cv_func_logf_use+set} != xset; then
8918 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
8919 echo $ac_n "(cached) $ac_c" 1>&6
8920 else
8923 ac_ext=C
8924 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8925 ac_cpp='$CXXCPP $CPPFLAGS'
8926 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8927 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8928 cross_compiling=$ac_cv_prog_cxx_cross
8930 cat > conftest.$ac_ext <<EOF
8931 #line 8932 "configure"
8932 #include "confdefs.h"
8933 #include <math.h>
8934 int main() {
8935 logf(0);
8936 ; return 0; }
8938 if { (eval echo configure:8939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8939 rm -rf conftest*
8940 glibcpp_cv_func_logf_use=yes
8941 else
8942 echo "configure: failed program was:" >&5
8943 cat conftest.$ac_ext >&5
8944 rm -rf conftest*
8945 glibcpp_cv_func_logf_use=no
8947 rm -f conftest*
8948 ac_ext=c
8949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8950 ac_cpp='$CPP $CPPFLAGS'
8951 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8952 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8953 cross_compiling=$ac_cv_prog_cc_cross
8959 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
8961 if test x$glibcpp_cv_func_logf_use = x"yes"; then
8962 for ac_func in logf
8964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8965 echo "configure:8966: checking for $ac_func" >&5
8966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8967 echo $ac_n "(cached) $ac_c" 1>&6
8968 else
8969 cat > conftest.$ac_ext <<EOF
8970 #line 8971 "configure"
8971 #include "confdefs.h"
8972 /* System header to define __stub macros and hopefully few prototypes,
8973 which can conflict with char $ac_func(); below. */
8974 #include <assert.h>
8975 /* Override any gcc2 internal prototype to avoid an error. */
8976 /* We use char because int might match the return type of a gcc2
8977 builtin and then its argument prototype would still apply. */
8978 char $ac_func();
8980 int main() {
8982 /* The GNU C library defines this for functions which it implements
8983 to always fail with ENOSYS. Some functions are actually named
8984 something starting with __ and the normal name is an alias. */
8985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8986 choke me
8987 #else
8988 $ac_func();
8989 #endif
8991 ; return 0; }
8993 if { (eval echo configure:8994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8994 rm -rf conftest*
8995 eval "ac_cv_func_$ac_func=yes"
8996 else
8997 echo "configure: failed program was:" >&5
8998 cat conftest.$ac_ext >&5
8999 rm -rf conftest*
9000 eval "ac_cv_func_$ac_func=no"
9002 rm -f conftest*
9005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9006 echo "$ac_t""yes" 1>&6
9007 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9008 cat >> confdefs.h <<EOF
9009 #define $ac_tr_func 1
9012 else
9013 echo "$ac_t""no" 1>&6
9015 done
9017 else
9019 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
9020 echo "configure:9021: checking for _logf declaration" >&5
9021 if test x${glibcpp_cv_func__logf_use+set} != xset; then
9022 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
9023 echo $ac_n "(cached) $ac_c" 1>&6
9024 else
9027 ac_ext=C
9028 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9029 ac_cpp='$CXXCPP $CPPFLAGS'
9030 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9031 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9032 cross_compiling=$ac_cv_prog_cxx_cross
9034 cat > conftest.$ac_ext <<EOF
9035 #line 9036 "configure"
9036 #include "confdefs.h"
9037 #include <math.h>
9038 int main() {
9039 _logf(0);
9040 ; return 0; }
9042 if { (eval echo configure:9043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9043 rm -rf conftest*
9044 glibcpp_cv_func__logf_use=yes
9045 else
9046 echo "configure: failed program was:" >&5
9047 cat conftest.$ac_ext >&5
9048 rm -rf conftest*
9049 glibcpp_cv_func__logf_use=no
9051 rm -f conftest*
9052 ac_ext=c
9053 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9054 ac_cpp='$CPP $CPPFLAGS'
9055 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9056 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9057 cross_compiling=$ac_cv_prog_cc_cross
9063 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
9065 if test x$glibcpp_cv_func__logf_use = x"yes"; then
9066 for ac_func in _logf
9068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9069 echo "configure:9070: checking for $ac_func" >&5
9070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9071 echo $ac_n "(cached) $ac_c" 1>&6
9072 else
9073 cat > conftest.$ac_ext <<EOF
9074 #line 9075 "configure"
9075 #include "confdefs.h"
9076 /* System header to define __stub macros and hopefully few prototypes,
9077 which can conflict with char $ac_func(); below. */
9078 #include <assert.h>
9079 /* Override any gcc2 internal prototype to avoid an error. */
9080 /* We use char because int might match the return type of a gcc2
9081 builtin and then its argument prototype would still apply. */
9082 char $ac_func();
9084 int main() {
9086 /* The GNU C library defines this for functions which it implements
9087 to always fail with ENOSYS. Some functions are actually named
9088 something starting with __ and the normal name is an alias. */
9089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9090 choke me
9091 #else
9092 $ac_func();
9093 #endif
9095 ; return 0; }
9097 if { (eval echo configure:9098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9098 rm -rf conftest*
9099 eval "ac_cv_func_$ac_func=yes"
9100 else
9101 echo "configure: failed program was:" >&5
9102 cat conftest.$ac_ext >&5
9103 rm -rf conftest*
9104 eval "ac_cv_func_$ac_func=no"
9106 rm -f conftest*
9109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9110 echo "$ac_t""yes" 1>&6
9111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9112 cat >> confdefs.h <<EOF
9113 #define $ac_tr_func 1
9116 else
9117 echo "$ac_t""no" 1>&6
9119 done
9126 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
9127 echo "configure:9128: checking for log10f declaration" >&5
9128 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
9129 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
9130 echo $ac_n "(cached) $ac_c" 1>&6
9131 else
9134 ac_ext=C
9135 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9136 ac_cpp='$CXXCPP $CPPFLAGS'
9137 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9138 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9139 cross_compiling=$ac_cv_prog_cxx_cross
9141 cat > conftest.$ac_ext <<EOF
9142 #line 9143 "configure"
9143 #include "confdefs.h"
9144 #include <math.h>
9145 int main() {
9146 log10f(0);
9147 ; return 0; }
9149 if { (eval echo configure:9150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9150 rm -rf conftest*
9151 glibcpp_cv_func_log10f_use=yes
9152 else
9153 echo "configure: failed program was:" >&5
9154 cat conftest.$ac_ext >&5
9155 rm -rf conftest*
9156 glibcpp_cv_func_log10f_use=no
9158 rm -f conftest*
9159 ac_ext=c
9160 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9161 ac_cpp='$CPP $CPPFLAGS'
9162 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9163 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9164 cross_compiling=$ac_cv_prog_cc_cross
9170 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
9172 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
9173 for ac_func in log10f
9175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9176 echo "configure:9177: checking for $ac_func" >&5
9177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9178 echo $ac_n "(cached) $ac_c" 1>&6
9179 else
9180 cat > conftest.$ac_ext <<EOF
9181 #line 9182 "configure"
9182 #include "confdefs.h"
9183 /* System header to define __stub macros and hopefully few prototypes,
9184 which can conflict with char $ac_func(); below. */
9185 #include <assert.h>
9186 /* Override any gcc2 internal prototype to avoid an error. */
9187 /* We use char because int might match the return type of a gcc2
9188 builtin and then its argument prototype would still apply. */
9189 char $ac_func();
9191 int main() {
9193 /* The GNU C library defines this for functions which it implements
9194 to always fail with ENOSYS. Some functions are actually named
9195 something starting with __ and the normal name is an alias. */
9196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9197 choke me
9198 #else
9199 $ac_func();
9200 #endif
9202 ; return 0; }
9204 if { (eval echo configure:9205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9205 rm -rf conftest*
9206 eval "ac_cv_func_$ac_func=yes"
9207 else
9208 echo "configure: failed program was:" >&5
9209 cat conftest.$ac_ext >&5
9210 rm -rf conftest*
9211 eval "ac_cv_func_$ac_func=no"
9213 rm -f conftest*
9216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9217 echo "$ac_t""yes" 1>&6
9218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9219 cat >> confdefs.h <<EOF
9220 #define $ac_tr_func 1
9223 else
9224 echo "$ac_t""no" 1>&6
9226 done
9228 else
9230 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
9231 echo "configure:9232: checking for _log10f declaration" >&5
9232 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
9233 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
9234 echo $ac_n "(cached) $ac_c" 1>&6
9235 else
9238 ac_ext=C
9239 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9240 ac_cpp='$CXXCPP $CPPFLAGS'
9241 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9242 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9243 cross_compiling=$ac_cv_prog_cxx_cross
9245 cat > conftest.$ac_ext <<EOF
9246 #line 9247 "configure"
9247 #include "confdefs.h"
9248 #include <math.h>
9249 int main() {
9250 _log10f(0);
9251 ; return 0; }
9253 if { (eval echo configure:9254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9254 rm -rf conftest*
9255 glibcpp_cv_func__log10f_use=yes
9256 else
9257 echo "configure: failed program was:" >&5
9258 cat conftest.$ac_ext >&5
9259 rm -rf conftest*
9260 glibcpp_cv_func__log10f_use=no
9262 rm -f conftest*
9263 ac_ext=c
9264 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9265 ac_cpp='$CPP $CPPFLAGS'
9266 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9267 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9268 cross_compiling=$ac_cv_prog_cc_cross
9274 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
9276 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
9277 for ac_func in _log10f
9279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9280 echo "configure:9281: checking for $ac_func" >&5
9281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9282 echo $ac_n "(cached) $ac_c" 1>&6
9283 else
9284 cat > conftest.$ac_ext <<EOF
9285 #line 9286 "configure"
9286 #include "confdefs.h"
9287 /* System header to define __stub macros and hopefully few prototypes,
9288 which can conflict with char $ac_func(); below. */
9289 #include <assert.h>
9290 /* Override any gcc2 internal prototype to avoid an error. */
9291 /* We use char because int might match the return type of a gcc2
9292 builtin and then its argument prototype would still apply. */
9293 char $ac_func();
9295 int main() {
9297 /* The GNU C library defines this for functions which it implements
9298 to always fail with ENOSYS. Some functions are actually named
9299 something starting with __ and the normal name is an alias. */
9300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9301 choke me
9302 #else
9303 $ac_func();
9304 #endif
9306 ; return 0; }
9308 if { (eval echo configure:9309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9309 rm -rf conftest*
9310 eval "ac_cv_func_$ac_func=yes"
9311 else
9312 echo "configure: failed program was:" >&5
9313 cat conftest.$ac_ext >&5
9314 rm -rf conftest*
9315 eval "ac_cv_func_$ac_func=no"
9317 rm -f conftest*
9320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9321 echo "$ac_t""yes" 1>&6
9322 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9323 cat >> confdefs.h <<EOF
9324 #define $ac_tr_func 1
9327 else
9328 echo "$ac_t""no" 1>&6
9330 done
9337 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
9338 echo "configure:9339: checking for modff declaration" >&5
9339 if test x${glibcpp_cv_func_modff_use+set} != xset; then
9340 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
9341 echo $ac_n "(cached) $ac_c" 1>&6
9342 else
9345 ac_ext=C
9346 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9347 ac_cpp='$CXXCPP $CPPFLAGS'
9348 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9349 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9350 cross_compiling=$ac_cv_prog_cxx_cross
9352 cat > conftest.$ac_ext <<EOF
9353 #line 9354 "configure"
9354 #include "confdefs.h"
9355 #include <math.h>
9356 int main() {
9357 modff(0, 0);
9358 ; return 0; }
9360 if { (eval echo configure:9361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9361 rm -rf conftest*
9362 glibcpp_cv_func_modff_use=yes
9363 else
9364 echo "configure: failed program was:" >&5
9365 cat conftest.$ac_ext >&5
9366 rm -rf conftest*
9367 glibcpp_cv_func_modff_use=no
9369 rm -f conftest*
9370 ac_ext=c
9371 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9372 ac_cpp='$CPP $CPPFLAGS'
9373 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9374 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9375 cross_compiling=$ac_cv_prog_cc_cross
9381 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
9383 if test x$glibcpp_cv_func_modff_use = x"yes"; then
9384 for ac_func in modff
9386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9387 echo "configure:9388: checking for $ac_func" >&5
9388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9389 echo $ac_n "(cached) $ac_c" 1>&6
9390 else
9391 cat > conftest.$ac_ext <<EOF
9392 #line 9393 "configure"
9393 #include "confdefs.h"
9394 /* System header to define __stub macros and hopefully few prototypes,
9395 which can conflict with char $ac_func(); below. */
9396 #include <assert.h>
9397 /* Override any gcc2 internal prototype to avoid an error. */
9398 /* We use char because int might match the return type of a gcc2
9399 builtin and then its argument prototype would still apply. */
9400 char $ac_func();
9402 int main() {
9404 /* The GNU C library defines this for functions which it implements
9405 to always fail with ENOSYS. Some functions are actually named
9406 something starting with __ and the normal name is an alias. */
9407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9408 choke me
9409 #else
9410 $ac_func();
9411 #endif
9413 ; return 0; }
9415 if { (eval echo configure:9416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9416 rm -rf conftest*
9417 eval "ac_cv_func_$ac_func=yes"
9418 else
9419 echo "configure: failed program was:" >&5
9420 cat conftest.$ac_ext >&5
9421 rm -rf conftest*
9422 eval "ac_cv_func_$ac_func=no"
9424 rm -f conftest*
9427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9428 echo "$ac_t""yes" 1>&6
9429 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9430 cat >> confdefs.h <<EOF
9431 #define $ac_tr_func 1
9434 else
9435 echo "$ac_t""no" 1>&6
9437 done
9439 else
9441 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
9442 echo "configure:9443: checking for _modff declaration" >&5
9443 if test x${glibcpp_cv_func__modff_use+set} != xset; then
9444 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
9445 echo $ac_n "(cached) $ac_c" 1>&6
9446 else
9449 ac_ext=C
9450 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9451 ac_cpp='$CXXCPP $CPPFLAGS'
9452 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9453 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9454 cross_compiling=$ac_cv_prog_cxx_cross
9456 cat > conftest.$ac_ext <<EOF
9457 #line 9458 "configure"
9458 #include "confdefs.h"
9459 #include <math.h>
9460 int main() {
9461 _modff(0, 0);
9462 ; return 0; }
9464 if { (eval echo configure:9465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9465 rm -rf conftest*
9466 glibcpp_cv_func__modff_use=yes
9467 else
9468 echo "configure: failed program was:" >&5
9469 cat conftest.$ac_ext >&5
9470 rm -rf conftest*
9471 glibcpp_cv_func__modff_use=no
9473 rm -f conftest*
9474 ac_ext=c
9475 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9476 ac_cpp='$CPP $CPPFLAGS'
9477 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9478 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9479 cross_compiling=$ac_cv_prog_cc_cross
9485 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
9487 if test x$glibcpp_cv_func__modff_use = x"yes"; then
9488 for ac_func in _modff
9490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9491 echo "configure:9492: checking for $ac_func" >&5
9492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9493 echo $ac_n "(cached) $ac_c" 1>&6
9494 else
9495 cat > conftest.$ac_ext <<EOF
9496 #line 9497 "configure"
9497 #include "confdefs.h"
9498 /* System header to define __stub macros and hopefully few prototypes,
9499 which can conflict with char $ac_func(); below. */
9500 #include <assert.h>
9501 /* Override any gcc2 internal prototype to avoid an error. */
9502 /* We use char because int might match the return type of a gcc2
9503 builtin and then its argument prototype would still apply. */
9504 char $ac_func();
9506 int main() {
9508 /* The GNU C library defines this for functions which it implements
9509 to always fail with ENOSYS. Some functions are actually named
9510 something starting with __ and the normal name is an alias. */
9511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9512 choke me
9513 #else
9514 $ac_func();
9515 #endif
9517 ; return 0; }
9519 if { (eval echo configure:9520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9520 rm -rf conftest*
9521 eval "ac_cv_func_$ac_func=yes"
9522 else
9523 echo "configure: failed program was:" >&5
9524 cat conftest.$ac_ext >&5
9525 rm -rf conftest*
9526 eval "ac_cv_func_$ac_func=no"
9528 rm -f conftest*
9531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9532 echo "$ac_t""yes" 1>&6
9533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9534 cat >> confdefs.h <<EOF
9535 #define $ac_tr_func 1
9538 else
9539 echo "$ac_t""no" 1>&6
9541 done
9548 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
9549 echo "configure:9550: checking for powf declaration" >&5
9550 if test x${glibcpp_cv_func_powf_use+set} != xset; then
9551 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
9552 echo $ac_n "(cached) $ac_c" 1>&6
9553 else
9556 ac_ext=C
9557 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9558 ac_cpp='$CXXCPP $CPPFLAGS'
9559 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9560 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9561 cross_compiling=$ac_cv_prog_cxx_cross
9563 cat > conftest.$ac_ext <<EOF
9564 #line 9565 "configure"
9565 #include "confdefs.h"
9566 #include <math.h>
9567 int main() {
9568 powf(0, 0);
9569 ; return 0; }
9571 if { (eval echo configure:9572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9572 rm -rf conftest*
9573 glibcpp_cv_func_powf_use=yes
9574 else
9575 echo "configure: failed program was:" >&5
9576 cat conftest.$ac_ext >&5
9577 rm -rf conftest*
9578 glibcpp_cv_func_powf_use=no
9580 rm -f conftest*
9581 ac_ext=c
9582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9583 ac_cpp='$CPP $CPPFLAGS'
9584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9586 cross_compiling=$ac_cv_prog_cc_cross
9592 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
9594 if test x$glibcpp_cv_func_powf_use = x"yes"; then
9595 for ac_func in powf
9597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9598 echo "configure:9599: checking for $ac_func" >&5
9599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9600 echo $ac_n "(cached) $ac_c" 1>&6
9601 else
9602 cat > conftest.$ac_ext <<EOF
9603 #line 9604 "configure"
9604 #include "confdefs.h"
9605 /* System header to define __stub macros and hopefully few prototypes,
9606 which can conflict with char $ac_func(); below. */
9607 #include <assert.h>
9608 /* Override any gcc2 internal prototype to avoid an error. */
9609 /* We use char because int might match the return type of a gcc2
9610 builtin and then its argument prototype would still apply. */
9611 char $ac_func();
9613 int main() {
9615 /* The GNU C library defines this for functions which it implements
9616 to always fail with ENOSYS. Some functions are actually named
9617 something starting with __ and the normal name is an alias. */
9618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9619 choke me
9620 #else
9621 $ac_func();
9622 #endif
9624 ; return 0; }
9626 if { (eval echo configure:9627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9627 rm -rf conftest*
9628 eval "ac_cv_func_$ac_func=yes"
9629 else
9630 echo "configure: failed program was:" >&5
9631 cat conftest.$ac_ext >&5
9632 rm -rf conftest*
9633 eval "ac_cv_func_$ac_func=no"
9635 rm -f conftest*
9638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9639 echo "$ac_t""yes" 1>&6
9640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9641 cat >> confdefs.h <<EOF
9642 #define $ac_tr_func 1
9645 else
9646 echo "$ac_t""no" 1>&6
9648 done
9650 else
9652 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
9653 echo "configure:9654: checking for _powf declaration" >&5
9654 if test x${glibcpp_cv_func__powf_use+set} != xset; then
9655 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
9656 echo $ac_n "(cached) $ac_c" 1>&6
9657 else
9660 ac_ext=C
9661 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9662 ac_cpp='$CXXCPP $CPPFLAGS'
9663 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9664 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9665 cross_compiling=$ac_cv_prog_cxx_cross
9667 cat > conftest.$ac_ext <<EOF
9668 #line 9669 "configure"
9669 #include "confdefs.h"
9670 #include <math.h>
9671 int main() {
9672 _powf(0, 0);
9673 ; return 0; }
9675 if { (eval echo configure:9676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9676 rm -rf conftest*
9677 glibcpp_cv_func__powf_use=yes
9678 else
9679 echo "configure: failed program was:" >&5
9680 cat conftest.$ac_ext >&5
9681 rm -rf conftest*
9682 glibcpp_cv_func__powf_use=no
9684 rm -f conftest*
9685 ac_ext=c
9686 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9687 ac_cpp='$CPP $CPPFLAGS'
9688 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9689 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9690 cross_compiling=$ac_cv_prog_cc_cross
9696 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
9698 if test x$glibcpp_cv_func__powf_use = x"yes"; then
9699 for ac_func in _powf
9701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9702 echo "configure:9703: checking for $ac_func" >&5
9703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9704 echo $ac_n "(cached) $ac_c" 1>&6
9705 else
9706 cat > conftest.$ac_ext <<EOF
9707 #line 9708 "configure"
9708 #include "confdefs.h"
9709 /* System header to define __stub macros and hopefully few prototypes,
9710 which can conflict with char $ac_func(); below. */
9711 #include <assert.h>
9712 /* Override any gcc2 internal prototype to avoid an error. */
9713 /* We use char because int might match the return type of a gcc2
9714 builtin and then its argument prototype would still apply. */
9715 char $ac_func();
9717 int main() {
9719 /* The GNU C library defines this for functions which it implements
9720 to always fail with ENOSYS. Some functions are actually named
9721 something starting with __ and the normal name is an alias. */
9722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9723 choke me
9724 #else
9725 $ac_func();
9726 #endif
9728 ; return 0; }
9730 if { (eval echo configure:9731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9731 rm -rf conftest*
9732 eval "ac_cv_func_$ac_func=yes"
9733 else
9734 echo "configure: failed program was:" >&5
9735 cat conftest.$ac_ext >&5
9736 rm -rf conftest*
9737 eval "ac_cv_func_$ac_func=no"
9739 rm -f conftest*
9742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9743 echo "$ac_t""yes" 1>&6
9744 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9745 cat >> confdefs.h <<EOF
9746 #define $ac_tr_func 1
9749 else
9750 echo "$ac_t""no" 1>&6
9752 done
9759 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
9760 echo "configure:9761: checking for sqrtf declaration" >&5
9761 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
9762 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
9763 echo $ac_n "(cached) $ac_c" 1>&6
9764 else
9767 ac_ext=C
9768 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9769 ac_cpp='$CXXCPP $CPPFLAGS'
9770 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9771 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9772 cross_compiling=$ac_cv_prog_cxx_cross
9774 cat > conftest.$ac_ext <<EOF
9775 #line 9776 "configure"
9776 #include "confdefs.h"
9777 #include <math.h>
9778 int main() {
9779 sqrtf(0);
9780 ; return 0; }
9782 if { (eval echo configure:9783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9783 rm -rf conftest*
9784 glibcpp_cv_func_sqrtf_use=yes
9785 else
9786 echo "configure: failed program was:" >&5
9787 cat conftest.$ac_ext >&5
9788 rm -rf conftest*
9789 glibcpp_cv_func_sqrtf_use=no
9791 rm -f conftest*
9792 ac_ext=c
9793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9794 ac_cpp='$CPP $CPPFLAGS'
9795 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9796 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9797 cross_compiling=$ac_cv_prog_cc_cross
9803 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
9805 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
9806 for ac_func in sqrtf
9808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9809 echo "configure:9810: checking for $ac_func" >&5
9810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9811 echo $ac_n "(cached) $ac_c" 1>&6
9812 else
9813 cat > conftest.$ac_ext <<EOF
9814 #line 9815 "configure"
9815 #include "confdefs.h"
9816 /* System header to define __stub macros and hopefully few prototypes,
9817 which can conflict with char $ac_func(); below. */
9818 #include <assert.h>
9819 /* Override any gcc2 internal prototype to avoid an error. */
9820 /* We use char because int might match the return type of a gcc2
9821 builtin and then its argument prototype would still apply. */
9822 char $ac_func();
9824 int main() {
9826 /* The GNU C library defines this for functions which it implements
9827 to always fail with ENOSYS. Some functions are actually named
9828 something starting with __ and the normal name is an alias. */
9829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9830 choke me
9831 #else
9832 $ac_func();
9833 #endif
9835 ; return 0; }
9837 if { (eval echo configure:9838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9838 rm -rf conftest*
9839 eval "ac_cv_func_$ac_func=yes"
9840 else
9841 echo "configure: failed program was:" >&5
9842 cat conftest.$ac_ext >&5
9843 rm -rf conftest*
9844 eval "ac_cv_func_$ac_func=no"
9846 rm -f conftest*
9849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9850 echo "$ac_t""yes" 1>&6
9851 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9852 cat >> confdefs.h <<EOF
9853 #define $ac_tr_func 1
9856 else
9857 echo "$ac_t""no" 1>&6
9859 done
9861 else
9863 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
9864 echo "configure:9865: checking for _sqrtf declaration" >&5
9865 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
9866 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
9867 echo $ac_n "(cached) $ac_c" 1>&6
9868 else
9871 ac_ext=C
9872 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9873 ac_cpp='$CXXCPP $CPPFLAGS'
9874 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9875 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9876 cross_compiling=$ac_cv_prog_cxx_cross
9878 cat > conftest.$ac_ext <<EOF
9879 #line 9880 "configure"
9880 #include "confdefs.h"
9881 #include <math.h>
9882 int main() {
9883 _sqrtf(0);
9884 ; return 0; }
9886 if { (eval echo configure:9887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9887 rm -rf conftest*
9888 glibcpp_cv_func__sqrtf_use=yes
9889 else
9890 echo "configure: failed program was:" >&5
9891 cat conftest.$ac_ext >&5
9892 rm -rf conftest*
9893 glibcpp_cv_func__sqrtf_use=no
9895 rm -f conftest*
9896 ac_ext=c
9897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9898 ac_cpp='$CPP $CPPFLAGS'
9899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9901 cross_compiling=$ac_cv_prog_cc_cross
9907 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
9909 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
9910 for ac_func in _sqrtf
9912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9913 echo "configure:9914: checking for $ac_func" >&5
9914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9915 echo $ac_n "(cached) $ac_c" 1>&6
9916 else
9917 cat > conftest.$ac_ext <<EOF
9918 #line 9919 "configure"
9919 #include "confdefs.h"
9920 /* System header to define __stub macros and hopefully few prototypes,
9921 which can conflict with char $ac_func(); below. */
9922 #include <assert.h>
9923 /* Override any gcc2 internal prototype to avoid an error. */
9924 /* We use char because int might match the return type of a gcc2
9925 builtin and then its argument prototype would still apply. */
9926 char $ac_func();
9928 int main() {
9930 /* The GNU C library defines this for functions which it implements
9931 to always fail with ENOSYS. Some functions are actually named
9932 something starting with __ and the normal name is an alias. */
9933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9934 choke me
9935 #else
9936 $ac_func();
9937 #endif
9939 ; return 0; }
9941 if { (eval echo configure:9942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9942 rm -rf conftest*
9943 eval "ac_cv_func_$ac_func=yes"
9944 else
9945 echo "configure: failed program was:" >&5
9946 cat conftest.$ac_ext >&5
9947 rm -rf conftest*
9948 eval "ac_cv_func_$ac_func=no"
9950 rm -f conftest*
9953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9954 echo "$ac_t""yes" 1>&6
9955 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9956 cat >> confdefs.h <<EOF
9957 #define $ac_tr_func 1
9960 else
9961 echo "$ac_t""no" 1>&6
9963 done
9970 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
9971 echo "configure:9972: checking for sincosf declaration" >&5
9972 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
9973 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
9974 echo $ac_n "(cached) $ac_c" 1>&6
9975 else
9978 ac_ext=C
9979 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9980 ac_cpp='$CXXCPP $CPPFLAGS'
9981 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9982 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9983 cross_compiling=$ac_cv_prog_cxx_cross
9985 cat > conftest.$ac_ext <<EOF
9986 #line 9987 "configure"
9987 #include "confdefs.h"
9988 #include <math.h>
9989 int main() {
9990 sincosf(0, 0, 0);
9991 ; return 0; }
9993 if { (eval echo configure:9994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9994 rm -rf conftest*
9995 glibcpp_cv_func_sincosf_use=yes
9996 else
9997 echo "configure: failed program was:" >&5
9998 cat conftest.$ac_ext >&5
9999 rm -rf conftest*
10000 glibcpp_cv_func_sincosf_use=no
10002 rm -f conftest*
10003 ac_ext=c
10004 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10005 ac_cpp='$CPP $CPPFLAGS'
10006 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10007 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10008 cross_compiling=$ac_cv_prog_cc_cross
10014 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
10016 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
10017 for ac_func in sincosf
10019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10020 echo "configure:10021: checking for $ac_func" >&5
10021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10022 echo $ac_n "(cached) $ac_c" 1>&6
10023 else
10024 cat > conftest.$ac_ext <<EOF
10025 #line 10026 "configure"
10026 #include "confdefs.h"
10027 /* System header to define __stub macros and hopefully few prototypes,
10028 which can conflict with char $ac_func(); below. */
10029 #include <assert.h>
10030 /* Override any gcc2 internal prototype to avoid an error. */
10031 /* We use char because int might match the return type of a gcc2
10032 builtin and then its argument prototype would still apply. */
10033 char $ac_func();
10035 int main() {
10037 /* The GNU C library defines this for functions which it implements
10038 to always fail with ENOSYS. Some functions are actually named
10039 something starting with __ and the normal name is an alias. */
10040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10041 choke me
10042 #else
10043 $ac_func();
10044 #endif
10046 ; return 0; }
10048 if { (eval echo configure:10049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10049 rm -rf conftest*
10050 eval "ac_cv_func_$ac_func=yes"
10051 else
10052 echo "configure: failed program was:" >&5
10053 cat conftest.$ac_ext >&5
10054 rm -rf conftest*
10055 eval "ac_cv_func_$ac_func=no"
10057 rm -f conftest*
10060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10061 echo "$ac_t""yes" 1>&6
10062 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10063 cat >> confdefs.h <<EOF
10064 #define $ac_tr_func 1
10067 else
10068 echo "$ac_t""no" 1>&6
10070 done
10072 else
10074 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
10075 echo "configure:10076: checking for _sincosf declaration" >&5
10076 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
10077 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
10078 echo $ac_n "(cached) $ac_c" 1>&6
10079 else
10082 ac_ext=C
10083 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10084 ac_cpp='$CXXCPP $CPPFLAGS'
10085 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10086 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10087 cross_compiling=$ac_cv_prog_cxx_cross
10089 cat > conftest.$ac_ext <<EOF
10090 #line 10091 "configure"
10091 #include "confdefs.h"
10092 #include <math.h>
10093 int main() {
10094 _sincosf(0, 0, 0);
10095 ; return 0; }
10097 if { (eval echo configure:10098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10098 rm -rf conftest*
10099 glibcpp_cv_func__sincosf_use=yes
10100 else
10101 echo "configure: failed program was:" >&5
10102 cat conftest.$ac_ext >&5
10103 rm -rf conftest*
10104 glibcpp_cv_func__sincosf_use=no
10106 rm -f conftest*
10107 ac_ext=c
10108 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10109 ac_cpp='$CPP $CPPFLAGS'
10110 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10111 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10112 cross_compiling=$ac_cv_prog_cc_cross
10118 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
10120 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
10121 for ac_func in _sincosf
10123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10124 echo "configure:10125: checking for $ac_func" >&5
10125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10126 echo $ac_n "(cached) $ac_c" 1>&6
10127 else
10128 cat > conftest.$ac_ext <<EOF
10129 #line 10130 "configure"
10130 #include "confdefs.h"
10131 /* System header to define __stub macros and hopefully few prototypes,
10132 which can conflict with char $ac_func(); below. */
10133 #include <assert.h>
10134 /* Override any gcc2 internal prototype to avoid an error. */
10135 /* We use char because int might match the return type of a gcc2
10136 builtin and then its argument prototype would still apply. */
10137 char $ac_func();
10139 int main() {
10141 /* The GNU C library defines this for functions which it implements
10142 to always fail with ENOSYS. Some functions are actually named
10143 something starting with __ and the normal name is an alias. */
10144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10145 choke me
10146 #else
10147 $ac_func();
10148 #endif
10150 ; return 0; }
10152 if { (eval echo configure:10153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10153 rm -rf conftest*
10154 eval "ac_cv_func_$ac_func=yes"
10155 else
10156 echo "configure: failed program was:" >&5
10157 cat conftest.$ac_ext >&5
10158 rm -rf conftest*
10159 eval "ac_cv_func_$ac_func=no"
10161 rm -f conftest*
10164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10165 echo "$ac_t""yes" 1>&6
10166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10167 cat >> confdefs.h <<EOF
10168 #define $ac_tr_func 1
10171 else
10172 echo "$ac_t""no" 1>&6
10174 done
10181 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
10182 echo "configure:10183: checking for finitef declaration" >&5
10183 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
10184 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
10185 echo $ac_n "(cached) $ac_c" 1>&6
10186 else
10189 ac_ext=C
10190 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10191 ac_cpp='$CXXCPP $CPPFLAGS'
10192 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10193 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10194 cross_compiling=$ac_cv_prog_cxx_cross
10196 cat > conftest.$ac_ext <<EOF
10197 #line 10198 "configure"
10198 #include "confdefs.h"
10199 #include <math.h>
10200 int main() {
10201 finitef(0);
10202 ; return 0; }
10204 if { (eval echo configure:10205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10205 rm -rf conftest*
10206 glibcpp_cv_func_finitef_use=yes
10207 else
10208 echo "configure: failed program was:" >&5
10209 cat conftest.$ac_ext >&5
10210 rm -rf conftest*
10211 glibcpp_cv_func_finitef_use=no
10213 rm -f conftest*
10214 ac_ext=c
10215 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10216 ac_cpp='$CPP $CPPFLAGS'
10217 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10218 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10219 cross_compiling=$ac_cv_prog_cc_cross
10225 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
10227 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
10228 for ac_func in finitef
10230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10231 echo "configure:10232: checking for $ac_func" >&5
10232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10233 echo $ac_n "(cached) $ac_c" 1>&6
10234 else
10235 cat > conftest.$ac_ext <<EOF
10236 #line 10237 "configure"
10237 #include "confdefs.h"
10238 /* System header to define __stub macros and hopefully few prototypes,
10239 which can conflict with char $ac_func(); below. */
10240 #include <assert.h>
10241 /* Override any gcc2 internal prototype to avoid an error. */
10242 /* We use char because int might match the return type of a gcc2
10243 builtin and then its argument prototype would still apply. */
10244 char $ac_func();
10246 int main() {
10248 /* The GNU C library defines this for functions which it implements
10249 to always fail with ENOSYS. Some functions are actually named
10250 something starting with __ and the normal name is an alias. */
10251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10252 choke me
10253 #else
10254 $ac_func();
10255 #endif
10257 ; return 0; }
10259 if { (eval echo configure:10260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10260 rm -rf conftest*
10261 eval "ac_cv_func_$ac_func=yes"
10262 else
10263 echo "configure: failed program was:" >&5
10264 cat conftest.$ac_ext >&5
10265 rm -rf conftest*
10266 eval "ac_cv_func_$ac_func=no"
10268 rm -f conftest*
10271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10272 echo "$ac_t""yes" 1>&6
10273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10274 cat >> confdefs.h <<EOF
10275 #define $ac_tr_func 1
10278 else
10279 echo "$ac_t""no" 1>&6
10281 done
10283 else
10285 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
10286 echo "configure:10287: checking for _finitef declaration" >&5
10287 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
10288 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
10289 echo $ac_n "(cached) $ac_c" 1>&6
10290 else
10293 ac_ext=C
10294 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10295 ac_cpp='$CXXCPP $CPPFLAGS'
10296 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10297 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10298 cross_compiling=$ac_cv_prog_cxx_cross
10300 cat > conftest.$ac_ext <<EOF
10301 #line 10302 "configure"
10302 #include "confdefs.h"
10303 #include <math.h>
10304 int main() {
10305 _finitef(0);
10306 ; return 0; }
10308 if { (eval echo configure:10309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10309 rm -rf conftest*
10310 glibcpp_cv_func__finitef_use=yes
10311 else
10312 echo "configure: failed program was:" >&5
10313 cat conftest.$ac_ext >&5
10314 rm -rf conftest*
10315 glibcpp_cv_func__finitef_use=no
10317 rm -f conftest*
10318 ac_ext=c
10319 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10320 ac_cpp='$CPP $CPPFLAGS'
10321 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10322 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10323 cross_compiling=$ac_cv_prog_cc_cross
10329 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
10331 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
10332 for ac_func in _finitef
10334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10335 echo "configure:10336: checking for $ac_func" >&5
10336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10337 echo $ac_n "(cached) $ac_c" 1>&6
10338 else
10339 cat > conftest.$ac_ext <<EOF
10340 #line 10341 "configure"
10341 #include "confdefs.h"
10342 /* System header to define __stub macros and hopefully few prototypes,
10343 which can conflict with char $ac_func(); below. */
10344 #include <assert.h>
10345 /* Override any gcc2 internal prototype to avoid an error. */
10346 /* We use char because int might match the return type of a gcc2
10347 builtin and then its argument prototype would still apply. */
10348 char $ac_func();
10350 int main() {
10352 /* The GNU C library defines this for functions which it implements
10353 to always fail with ENOSYS. Some functions are actually named
10354 something starting with __ and the normal name is an alias. */
10355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10356 choke me
10357 #else
10358 $ac_func();
10359 #endif
10361 ; return 0; }
10363 if { (eval echo configure:10364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10364 rm -rf conftest*
10365 eval "ac_cv_func_$ac_func=yes"
10366 else
10367 echo "configure: failed program was:" >&5
10368 cat conftest.$ac_ext >&5
10369 rm -rf conftest*
10370 eval "ac_cv_func_$ac_func=no"
10372 rm -f conftest*
10375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10376 echo "$ac_t""yes" 1>&6
10377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10378 cat >> confdefs.h <<EOF
10379 #define $ac_tr_func 1
10382 else
10383 echo "$ac_t""no" 1>&6
10385 done
10392 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
10393 echo "configure:10394: checking for long double trig functions" >&5
10394 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
10395 echo $ac_n "(cached) $ac_c" 1>&6
10396 else
10399 ac_ext=C
10400 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10401 ac_cpp='$CXXCPP $CPPFLAGS'
10402 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10403 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10404 cross_compiling=$ac_cv_prog_cxx_cross
10406 cat > conftest.$ac_ext <<EOF
10407 #line 10408 "configure"
10408 #include "confdefs.h"
10409 #include <math.h>
10410 int main() {
10411 `for x in acosl asinl atanl \
10412 cosl sinl tanl \
10413 coshl sinhl tanhl; do echo "$x (0);"; done`
10414 ; return 0; }
10416 if { (eval echo configure:10417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10417 rm -rf conftest*
10418 glibcpp_cv_func_long_double_trig_use=yes
10419 else
10420 echo "configure: failed program was:" >&5
10421 cat conftest.$ac_ext >&5
10422 rm -rf conftest*
10423 glibcpp_cv_func_long_double_trig_use=no
10425 rm -f conftest*
10426 ac_ext=c
10427 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10428 ac_cpp='$CPP $CPPFLAGS'
10429 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10430 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10431 cross_compiling=$ac_cv_prog_cc_cross
10435 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
10436 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
10437 for ac_func in acosl asinl atanl \
10438 cosl sinl tanl \
10439 coshl sinhl tanhl
10441 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10442 echo "configure:10443: checking for $ac_func" >&5
10443 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10444 echo $ac_n "(cached) $ac_c" 1>&6
10445 else
10446 cat > conftest.$ac_ext <<EOF
10447 #line 10448 "configure"
10448 #include "confdefs.h"
10449 /* System header to define __stub macros and hopefully few prototypes,
10450 which can conflict with char $ac_func(); below. */
10451 #include <assert.h>
10452 /* Override any gcc2 internal prototype to avoid an error. */
10453 /* We use char because int might match the return type of a gcc2
10454 builtin and then its argument prototype would still apply. */
10455 char $ac_func();
10457 int main() {
10459 /* The GNU C library defines this for functions which it implements
10460 to always fail with ENOSYS. Some functions are actually named
10461 something starting with __ and the normal name is an alias. */
10462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10463 choke me
10464 #else
10465 $ac_func();
10466 #endif
10468 ; return 0; }
10470 if { (eval echo configure:10471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10471 rm -rf conftest*
10472 eval "ac_cv_func_$ac_func=yes"
10473 else
10474 echo "configure: failed program was:" >&5
10475 cat conftest.$ac_ext >&5
10476 rm -rf conftest*
10477 eval "ac_cv_func_$ac_func=no"
10479 rm -f conftest*
10482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10483 echo "$ac_t""yes" 1>&6
10484 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10485 cat >> confdefs.h <<EOF
10486 #define $ac_tr_func 1
10489 else
10490 echo "$ac_t""no" 1>&6
10492 done
10497 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
10498 echo "configure:10499: checking for long double round functions" >&5
10499 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
10500 echo $ac_n "(cached) $ac_c" 1>&6
10501 else
10504 ac_ext=C
10505 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10506 ac_cpp='$CXXCPP $CPPFLAGS'
10507 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10508 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10509 cross_compiling=$ac_cv_prog_cxx_cross
10511 cat > conftest.$ac_ext <<EOF
10512 #line 10513 "configure"
10513 #include "confdefs.h"
10514 #include <math.h>
10515 int main() {
10516 `for x in ceill floorl; do echo "$x (0);"; done`
10517 ; return 0; }
10519 if { (eval echo configure:10520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10520 rm -rf conftest*
10521 glibcpp_cv_func_long_double_round_use=yes
10522 else
10523 echo "configure: failed program was:" >&5
10524 cat conftest.$ac_ext >&5
10525 rm -rf conftest*
10526 glibcpp_cv_func_long_double_round_use=no
10528 rm -f conftest*
10529 ac_ext=c
10530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10531 ac_cpp='$CPP $CPPFLAGS'
10532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10534 cross_compiling=$ac_cv_prog_cc_cross
10538 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
10539 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
10540 for ac_func in ceill floorl
10542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10543 echo "configure:10544: checking for $ac_func" >&5
10544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10545 echo $ac_n "(cached) $ac_c" 1>&6
10546 else
10547 cat > conftest.$ac_ext <<EOF
10548 #line 10549 "configure"
10549 #include "confdefs.h"
10550 /* System header to define __stub macros and hopefully few prototypes,
10551 which can conflict with char $ac_func(); below. */
10552 #include <assert.h>
10553 /* Override any gcc2 internal prototype to avoid an error. */
10554 /* We use char because int might match the return type of a gcc2
10555 builtin and then its argument prototype would still apply. */
10556 char $ac_func();
10558 int main() {
10560 /* The GNU C library defines this for functions which it implements
10561 to always fail with ENOSYS. Some functions are actually named
10562 something starting with __ and the normal name is an alias. */
10563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10564 choke me
10565 #else
10566 $ac_func();
10567 #endif
10569 ; return 0; }
10571 if { (eval echo configure:10572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10572 rm -rf conftest*
10573 eval "ac_cv_func_$ac_func=yes"
10574 else
10575 echo "configure: failed program was:" >&5
10576 cat conftest.$ac_ext >&5
10577 rm -rf conftest*
10578 eval "ac_cv_func_$ac_func=no"
10580 rm -f conftest*
10583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10584 echo "$ac_t""yes" 1>&6
10585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10586 cat >> confdefs.h <<EOF
10587 #define $ac_tr_func 1
10590 else
10591 echo "$ac_t""no" 1>&6
10593 done
10599 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
10600 echo "configure:10601: checking for isnanl declaration" >&5
10601 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
10602 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
10603 echo $ac_n "(cached) $ac_c" 1>&6
10604 else
10607 ac_ext=C
10608 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10609 ac_cpp='$CXXCPP $CPPFLAGS'
10610 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10611 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10612 cross_compiling=$ac_cv_prog_cxx_cross
10614 cat > conftest.$ac_ext <<EOF
10615 #line 10616 "configure"
10616 #include "confdefs.h"
10617 #include <math.h>
10618 int main() {
10619 isnanl(0);
10620 ; return 0; }
10622 if { (eval echo configure:10623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10623 rm -rf conftest*
10624 glibcpp_cv_func_isnanl_use=yes
10625 else
10626 echo "configure: failed program was:" >&5
10627 cat conftest.$ac_ext >&5
10628 rm -rf conftest*
10629 glibcpp_cv_func_isnanl_use=no
10631 rm -f conftest*
10632 ac_ext=c
10633 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10634 ac_cpp='$CPP $CPPFLAGS'
10635 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10636 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10637 cross_compiling=$ac_cv_prog_cc_cross
10643 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
10645 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
10646 for ac_func in isnanl
10648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10649 echo "configure:10650: checking for $ac_func" >&5
10650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10651 echo $ac_n "(cached) $ac_c" 1>&6
10652 else
10653 cat > conftest.$ac_ext <<EOF
10654 #line 10655 "configure"
10655 #include "confdefs.h"
10656 /* System header to define __stub macros and hopefully few prototypes,
10657 which can conflict with char $ac_func(); below. */
10658 #include <assert.h>
10659 /* Override any gcc2 internal prototype to avoid an error. */
10660 /* We use char because int might match the return type of a gcc2
10661 builtin and then its argument prototype would still apply. */
10662 char $ac_func();
10664 int main() {
10666 /* The GNU C library defines this for functions which it implements
10667 to always fail with ENOSYS. Some functions are actually named
10668 something starting with __ and the normal name is an alias. */
10669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10670 choke me
10671 #else
10672 $ac_func();
10673 #endif
10675 ; return 0; }
10677 if { (eval echo configure:10678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10678 rm -rf conftest*
10679 eval "ac_cv_func_$ac_func=yes"
10680 else
10681 echo "configure: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10683 rm -rf conftest*
10684 eval "ac_cv_func_$ac_func=no"
10686 rm -f conftest*
10689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10690 echo "$ac_t""yes" 1>&6
10691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10692 cat >> confdefs.h <<EOF
10693 #define $ac_tr_func 1
10696 else
10697 echo "$ac_t""no" 1>&6
10699 done
10701 else
10703 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
10704 echo "configure:10705: checking for _isnanl declaration" >&5
10705 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
10706 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
10707 echo $ac_n "(cached) $ac_c" 1>&6
10708 else
10711 ac_ext=C
10712 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10713 ac_cpp='$CXXCPP $CPPFLAGS'
10714 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10715 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10716 cross_compiling=$ac_cv_prog_cxx_cross
10718 cat > conftest.$ac_ext <<EOF
10719 #line 10720 "configure"
10720 #include "confdefs.h"
10721 #include <math.h>
10722 int main() {
10723 _isnanl(0);
10724 ; return 0; }
10726 if { (eval echo configure:10727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10727 rm -rf conftest*
10728 glibcpp_cv_func__isnanl_use=yes
10729 else
10730 echo "configure: failed program was:" >&5
10731 cat conftest.$ac_ext >&5
10732 rm -rf conftest*
10733 glibcpp_cv_func__isnanl_use=no
10735 rm -f conftest*
10736 ac_ext=c
10737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10738 ac_cpp='$CPP $CPPFLAGS'
10739 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10740 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10741 cross_compiling=$ac_cv_prog_cc_cross
10747 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
10749 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
10750 for ac_func in _isnanl
10752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10753 echo "configure:10754: checking for $ac_func" >&5
10754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10755 echo $ac_n "(cached) $ac_c" 1>&6
10756 else
10757 cat > conftest.$ac_ext <<EOF
10758 #line 10759 "configure"
10759 #include "confdefs.h"
10760 /* System header to define __stub macros and hopefully few prototypes,
10761 which can conflict with char $ac_func(); below. */
10762 #include <assert.h>
10763 /* Override any gcc2 internal prototype to avoid an error. */
10764 /* We use char because int might match the return type of a gcc2
10765 builtin and then its argument prototype would still apply. */
10766 char $ac_func();
10768 int main() {
10770 /* The GNU C library defines this for functions which it implements
10771 to always fail with ENOSYS. Some functions are actually named
10772 something starting with __ and the normal name is an alias. */
10773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10774 choke me
10775 #else
10776 $ac_func();
10777 #endif
10779 ; return 0; }
10781 if { (eval echo configure:10782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10782 rm -rf conftest*
10783 eval "ac_cv_func_$ac_func=yes"
10784 else
10785 echo "configure: failed program was:" >&5
10786 cat conftest.$ac_ext >&5
10787 rm -rf conftest*
10788 eval "ac_cv_func_$ac_func=no"
10790 rm -f conftest*
10793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10794 echo "$ac_t""yes" 1>&6
10795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10796 cat >> confdefs.h <<EOF
10797 #define $ac_tr_func 1
10800 else
10801 echo "$ac_t""no" 1>&6
10803 done
10810 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
10811 echo "configure:10812: checking for isinfl declaration" >&5
10812 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
10813 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
10814 echo $ac_n "(cached) $ac_c" 1>&6
10815 else
10818 ac_ext=C
10819 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10820 ac_cpp='$CXXCPP $CPPFLAGS'
10821 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10822 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10823 cross_compiling=$ac_cv_prog_cxx_cross
10825 cat > conftest.$ac_ext <<EOF
10826 #line 10827 "configure"
10827 #include "confdefs.h"
10828 #include <math.h>
10829 int main() {
10830 isinfl(0);
10831 ; return 0; }
10833 if { (eval echo configure:10834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10834 rm -rf conftest*
10835 glibcpp_cv_func_isinfl_use=yes
10836 else
10837 echo "configure: failed program was:" >&5
10838 cat conftest.$ac_ext >&5
10839 rm -rf conftest*
10840 glibcpp_cv_func_isinfl_use=no
10842 rm -f conftest*
10843 ac_ext=c
10844 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10845 ac_cpp='$CPP $CPPFLAGS'
10846 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10847 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10848 cross_compiling=$ac_cv_prog_cc_cross
10854 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
10856 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
10857 for ac_func in isinfl
10859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10860 echo "configure:10861: checking for $ac_func" >&5
10861 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10862 echo $ac_n "(cached) $ac_c" 1>&6
10863 else
10864 cat > conftest.$ac_ext <<EOF
10865 #line 10866 "configure"
10866 #include "confdefs.h"
10867 /* System header to define __stub macros and hopefully few prototypes,
10868 which can conflict with char $ac_func(); below. */
10869 #include <assert.h>
10870 /* Override any gcc2 internal prototype to avoid an error. */
10871 /* We use char because int might match the return type of a gcc2
10872 builtin and then its argument prototype would still apply. */
10873 char $ac_func();
10875 int main() {
10877 /* The GNU C library defines this for functions which it implements
10878 to always fail with ENOSYS. Some functions are actually named
10879 something starting with __ and the normal name is an alias. */
10880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10881 choke me
10882 #else
10883 $ac_func();
10884 #endif
10886 ; return 0; }
10888 if { (eval echo configure:10889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10889 rm -rf conftest*
10890 eval "ac_cv_func_$ac_func=yes"
10891 else
10892 echo "configure: failed program was:" >&5
10893 cat conftest.$ac_ext >&5
10894 rm -rf conftest*
10895 eval "ac_cv_func_$ac_func=no"
10897 rm -f conftest*
10900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10901 echo "$ac_t""yes" 1>&6
10902 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10903 cat >> confdefs.h <<EOF
10904 #define $ac_tr_func 1
10907 else
10908 echo "$ac_t""no" 1>&6
10910 done
10912 else
10914 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
10915 echo "configure:10916: checking for _isinfl declaration" >&5
10916 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
10917 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
10918 echo $ac_n "(cached) $ac_c" 1>&6
10919 else
10922 ac_ext=C
10923 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10924 ac_cpp='$CXXCPP $CPPFLAGS'
10925 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10926 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10927 cross_compiling=$ac_cv_prog_cxx_cross
10929 cat > conftest.$ac_ext <<EOF
10930 #line 10931 "configure"
10931 #include "confdefs.h"
10932 #include <math.h>
10933 int main() {
10934 _isinfl(0);
10935 ; return 0; }
10937 if { (eval echo configure:10938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10938 rm -rf conftest*
10939 glibcpp_cv_func__isinfl_use=yes
10940 else
10941 echo "configure: failed program was:" >&5
10942 cat conftest.$ac_ext >&5
10943 rm -rf conftest*
10944 glibcpp_cv_func__isinfl_use=no
10946 rm -f conftest*
10947 ac_ext=c
10948 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10949 ac_cpp='$CPP $CPPFLAGS'
10950 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10951 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10952 cross_compiling=$ac_cv_prog_cc_cross
10958 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
10960 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
10961 for ac_func in _isinfl
10963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10964 echo "configure:10965: checking for $ac_func" >&5
10965 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10966 echo $ac_n "(cached) $ac_c" 1>&6
10967 else
10968 cat > conftest.$ac_ext <<EOF
10969 #line 10970 "configure"
10970 #include "confdefs.h"
10971 /* System header to define __stub macros and hopefully few prototypes,
10972 which can conflict with char $ac_func(); below. */
10973 #include <assert.h>
10974 /* Override any gcc2 internal prototype to avoid an error. */
10975 /* We use char because int might match the return type of a gcc2
10976 builtin and then its argument prototype would still apply. */
10977 char $ac_func();
10979 int main() {
10981 /* The GNU C library defines this for functions which it implements
10982 to always fail with ENOSYS. Some functions are actually named
10983 something starting with __ and the normal name is an alias. */
10984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10985 choke me
10986 #else
10987 $ac_func();
10988 #endif
10990 ; return 0; }
10992 if { (eval echo configure:10993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10993 rm -rf conftest*
10994 eval "ac_cv_func_$ac_func=yes"
10995 else
10996 echo "configure: failed program was:" >&5
10997 cat conftest.$ac_ext >&5
10998 rm -rf conftest*
10999 eval "ac_cv_func_$ac_func=no"
11001 rm -f conftest*
11004 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11005 echo "$ac_t""yes" 1>&6
11006 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11007 cat >> confdefs.h <<EOF
11008 #define $ac_tr_func 1
11011 else
11012 echo "$ac_t""no" 1>&6
11014 done
11021 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
11022 echo "configure:11023: checking for copysignl declaration" >&5
11023 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
11024 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
11025 echo $ac_n "(cached) $ac_c" 1>&6
11026 else
11029 ac_ext=C
11030 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11031 ac_cpp='$CXXCPP $CPPFLAGS'
11032 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11033 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11034 cross_compiling=$ac_cv_prog_cxx_cross
11036 cat > conftest.$ac_ext <<EOF
11037 #line 11038 "configure"
11038 #include "confdefs.h"
11039 #include <math.h>
11040 int main() {
11041 copysignl(0, 0);
11042 ; return 0; }
11044 if { (eval echo configure:11045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11045 rm -rf conftest*
11046 glibcpp_cv_func_copysignl_use=yes
11047 else
11048 echo "configure: failed program was:" >&5
11049 cat conftest.$ac_ext >&5
11050 rm -rf conftest*
11051 glibcpp_cv_func_copysignl_use=no
11053 rm -f conftest*
11054 ac_ext=c
11055 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11056 ac_cpp='$CPP $CPPFLAGS'
11057 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11058 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11059 cross_compiling=$ac_cv_prog_cc_cross
11065 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
11067 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
11068 for ac_func in copysignl
11070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11071 echo "configure:11072: checking for $ac_func" >&5
11072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11073 echo $ac_n "(cached) $ac_c" 1>&6
11074 else
11075 cat > conftest.$ac_ext <<EOF
11076 #line 11077 "configure"
11077 #include "confdefs.h"
11078 /* System header to define __stub macros and hopefully few prototypes,
11079 which can conflict with char $ac_func(); below. */
11080 #include <assert.h>
11081 /* Override any gcc2 internal prototype to avoid an error. */
11082 /* We use char because int might match the return type of a gcc2
11083 builtin and then its argument prototype would still apply. */
11084 char $ac_func();
11086 int main() {
11088 /* The GNU C library defines this for functions which it implements
11089 to always fail with ENOSYS. Some functions are actually named
11090 something starting with __ and the normal name is an alias. */
11091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11092 choke me
11093 #else
11094 $ac_func();
11095 #endif
11097 ; return 0; }
11099 if { (eval echo configure:11100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11100 rm -rf conftest*
11101 eval "ac_cv_func_$ac_func=yes"
11102 else
11103 echo "configure: failed program was:" >&5
11104 cat conftest.$ac_ext >&5
11105 rm -rf conftest*
11106 eval "ac_cv_func_$ac_func=no"
11108 rm -f conftest*
11111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11112 echo "$ac_t""yes" 1>&6
11113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11114 cat >> confdefs.h <<EOF
11115 #define $ac_tr_func 1
11118 else
11119 echo "$ac_t""no" 1>&6
11121 done
11123 else
11125 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
11126 echo "configure:11127: checking for _copysignl declaration" >&5
11127 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
11128 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
11129 echo $ac_n "(cached) $ac_c" 1>&6
11130 else
11133 ac_ext=C
11134 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11135 ac_cpp='$CXXCPP $CPPFLAGS'
11136 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11137 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11138 cross_compiling=$ac_cv_prog_cxx_cross
11140 cat > conftest.$ac_ext <<EOF
11141 #line 11142 "configure"
11142 #include "confdefs.h"
11143 #include <math.h>
11144 int main() {
11145 _copysignl(0, 0);
11146 ; return 0; }
11148 if { (eval echo configure:11149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11149 rm -rf conftest*
11150 glibcpp_cv_func__copysignl_use=yes
11151 else
11152 echo "configure: failed program was:" >&5
11153 cat conftest.$ac_ext >&5
11154 rm -rf conftest*
11155 glibcpp_cv_func__copysignl_use=no
11157 rm -f conftest*
11158 ac_ext=c
11159 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11160 ac_cpp='$CPP $CPPFLAGS'
11161 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11162 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11163 cross_compiling=$ac_cv_prog_cc_cross
11169 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
11171 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
11172 for ac_func in _copysignl
11174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11175 echo "configure:11176: checking for $ac_func" >&5
11176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11177 echo $ac_n "(cached) $ac_c" 1>&6
11178 else
11179 cat > conftest.$ac_ext <<EOF
11180 #line 11181 "configure"
11181 #include "confdefs.h"
11182 /* System header to define __stub macros and hopefully few prototypes,
11183 which can conflict with char $ac_func(); below. */
11184 #include <assert.h>
11185 /* Override any gcc2 internal prototype to avoid an error. */
11186 /* We use char because int might match the return type of a gcc2
11187 builtin and then its argument prototype would still apply. */
11188 char $ac_func();
11190 int main() {
11192 /* The GNU C library defines this for functions which it implements
11193 to always fail with ENOSYS. Some functions are actually named
11194 something starting with __ and the normal name is an alias. */
11195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11196 choke me
11197 #else
11198 $ac_func();
11199 #endif
11201 ; return 0; }
11203 if { (eval echo configure:11204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11204 rm -rf conftest*
11205 eval "ac_cv_func_$ac_func=yes"
11206 else
11207 echo "configure: failed program was:" >&5
11208 cat conftest.$ac_ext >&5
11209 rm -rf conftest*
11210 eval "ac_cv_func_$ac_func=no"
11212 rm -f conftest*
11215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11216 echo "$ac_t""yes" 1>&6
11217 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11218 cat >> confdefs.h <<EOF
11219 #define $ac_tr_func 1
11222 else
11223 echo "$ac_t""no" 1>&6
11225 done
11232 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
11233 echo "configure:11234: checking for atan2l declaration" >&5
11234 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
11235 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
11236 echo $ac_n "(cached) $ac_c" 1>&6
11237 else
11240 ac_ext=C
11241 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11242 ac_cpp='$CXXCPP $CPPFLAGS'
11243 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11244 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11245 cross_compiling=$ac_cv_prog_cxx_cross
11247 cat > conftest.$ac_ext <<EOF
11248 #line 11249 "configure"
11249 #include "confdefs.h"
11250 #include <math.h>
11251 int main() {
11252 atan2l(0, 0);
11253 ; return 0; }
11255 if { (eval echo configure:11256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11256 rm -rf conftest*
11257 glibcpp_cv_func_atan2l_use=yes
11258 else
11259 echo "configure: failed program was:" >&5
11260 cat conftest.$ac_ext >&5
11261 rm -rf conftest*
11262 glibcpp_cv_func_atan2l_use=no
11264 rm -f conftest*
11265 ac_ext=c
11266 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11267 ac_cpp='$CPP $CPPFLAGS'
11268 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11269 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11270 cross_compiling=$ac_cv_prog_cc_cross
11276 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
11278 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
11279 for ac_func in atan2l
11281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11282 echo "configure:11283: checking for $ac_func" >&5
11283 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11284 echo $ac_n "(cached) $ac_c" 1>&6
11285 else
11286 cat > conftest.$ac_ext <<EOF
11287 #line 11288 "configure"
11288 #include "confdefs.h"
11289 /* System header to define __stub macros and hopefully few prototypes,
11290 which can conflict with char $ac_func(); below. */
11291 #include <assert.h>
11292 /* Override any gcc2 internal prototype to avoid an error. */
11293 /* We use char because int might match the return type of a gcc2
11294 builtin and then its argument prototype would still apply. */
11295 char $ac_func();
11297 int main() {
11299 /* The GNU C library defines this for functions which it implements
11300 to always fail with ENOSYS. Some functions are actually named
11301 something starting with __ and the normal name is an alias. */
11302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11303 choke me
11304 #else
11305 $ac_func();
11306 #endif
11308 ; return 0; }
11310 if { (eval echo configure:11311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11311 rm -rf conftest*
11312 eval "ac_cv_func_$ac_func=yes"
11313 else
11314 echo "configure: failed program was:" >&5
11315 cat conftest.$ac_ext >&5
11316 rm -rf conftest*
11317 eval "ac_cv_func_$ac_func=no"
11319 rm -f conftest*
11322 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11323 echo "$ac_t""yes" 1>&6
11324 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11325 cat >> confdefs.h <<EOF
11326 #define $ac_tr_func 1
11329 else
11330 echo "$ac_t""no" 1>&6
11332 done
11334 else
11336 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
11337 echo "configure:11338: checking for _atan2l declaration" >&5
11338 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
11339 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
11340 echo $ac_n "(cached) $ac_c" 1>&6
11341 else
11344 ac_ext=C
11345 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11346 ac_cpp='$CXXCPP $CPPFLAGS'
11347 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11348 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11349 cross_compiling=$ac_cv_prog_cxx_cross
11351 cat > conftest.$ac_ext <<EOF
11352 #line 11353 "configure"
11353 #include "confdefs.h"
11354 #include <math.h>
11355 int main() {
11356 _atan2l(0, 0);
11357 ; return 0; }
11359 if { (eval echo configure:11360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11360 rm -rf conftest*
11361 glibcpp_cv_func__atan2l_use=yes
11362 else
11363 echo "configure: failed program was:" >&5
11364 cat conftest.$ac_ext >&5
11365 rm -rf conftest*
11366 glibcpp_cv_func__atan2l_use=no
11368 rm -f conftest*
11369 ac_ext=c
11370 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11371 ac_cpp='$CPP $CPPFLAGS'
11372 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11373 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11374 cross_compiling=$ac_cv_prog_cc_cross
11380 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
11382 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
11383 for ac_func in _atan2l
11385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11386 echo "configure:11387: checking for $ac_func" >&5
11387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11388 echo $ac_n "(cached) $ac_c" 1>&6
11389 else
11390 cat > conftest.$ac_ext <<EOF
11391 #line 11392 "configure"
11392 #include "confdefs.h"
11393 /* System header to define __stub macros and hopefully few prototypes,
11394 which can conflict with char $ac_func(); below. */
11395 #include <assert.h>
11396 /* Override any gcc2 internal prototype to avoid an error. */
11397 /* We use char because int might match the return type of a gcc2
11398 builtin and then its argument prototype would still apply. */
11399 char $ac_func();
11401 int main() {
11403 /* The GNU C library defines this for functions which it implements
11404 to always fail with ENOSYS. Some functions are actually named
11405 something starting with __ and the normal name is an alias. */
11406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11407 choke me
11408 #else
11409 $ac_func();
11410 #endif
11412 ; return 0; }
11414 if { (eval echo configure:11415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11415 rm -rf conftest*
11416 eval "ac_cv_func_$ac_func=yes"
11417 else
11418 echo "configure: failed program was:" >&5
11419 cat conftest.$ac_ext >&5
11420 rm -rf conftest*
11421 eval "ac_cv_func_$ac_func=no"
11423 rm -f conftest*
11426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11427 echo "$ac_t""yes" 1>&6
11428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11429 cat >> confdefs.h <<EOF
11430 #define $ac_tr_func 1
11433 else
11434 echo "$ac_t""no" 1>&6
11436 done
11443 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
11444 echo "configure:11445: checking for expl declaration" >&5
11445 if test x${glibcpp_cv_func_expl_use+set} != xset; then
11446 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
11447 echo $ac_n "(cached) $ac_c" 1>&6
11448 else
11451 ac_ext=C
11452 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11453 ac_cpp='$CXXCPP $CPPFLAGS'
11454 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11455 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11456 cross_compiling=$ac_cv_prog_cxx_cross
11458 cat > conftest.$ac_ext <<EOF
11459 #line 11460 "configure"
11460 #include "confdefs.h"
11461 #include <math.h>
11462 int main() {
11463 expl(0);
11464 ; return 0; }
11466 if { (eval echo configure:11467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11467 rm -rf conftest*
11468 glibcpp_cv_func_expl_use=yes
11469 else
11470 echo "configure: failed program was:" >&5
11471 cat conftest.$ac_ext >&5
11472 rm -rf conftest*
11473 glibcpp_cv_func_expl_use=no
11475 rm -f conftest*
11476 ac_ext=c
11477 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11478 ac_cpp='$CPP $CPPFLAGS'
11479 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11480 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11481 cross_compiling=$ac_cv_prog_cc_cross
11487 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
11489 if test x$glibcpp_cv_func_expl_use = x"yes"; then
11490 for ac_func in expl
11492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11493 echo "configure:11494: checking for $ac_func" >&5
11494 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11495 echo $ac_n "(cached) $ac_c" 1>&6
11496 else
11497 cat > conftest.$ac_ext <<EOF
11498 #line 11499 "configure"
11499 #include "confdefs.h"
11500 /* System header to define __stub macros and hopefully few prototypes,
11501 which can conflict with char $ac_func(); below. */
11502 #include <assert.h>
11503 /* Override any gcc2 internal prototype to avoid an error. */
11504 /* We use char because int might match the return type of a gcc2
11505 builtin and then its argument prototype would still apply. */
11506 char $ac_func();
11508 int main() {
11510 /* The GNU C library defines this for functions which it implements
11511 to always fail with ENOSYS. Some functions are actually named
11512 something starting with __ and the normal name is an alias. */
11513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11514 choke me
11515 #else
11516 $ac_func();
11517 #endif
11519 ; return 0; }
11521 if { (eval echo configure:11522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11522 rm -rf conftest*
11523 eval "ac_cv_func_$ac_func=yes"
11524 else
11525 echo "configure: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11527 rm -rf conftest*
11528 eval "ac_cv_func_$ac_func=no"
11530 rm -f conftest*
11533 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11534 echo "$ac_t""yes" 1>&6
11535 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11536 cat >> confdefs.h <<EOF
11537 #define $ac_tr_func 1
11540 else
11541 echo "$ac_t""no" 1>&6
11543 done
11545 else
11547 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
11548 echo "configure:11549: checking for _expl declaration" >&5
11549 if test x${glibcpp_cv_func__expl_use+set} != xset; then
11550 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
11551 echo $ac_n "(cached) $ac_c" 1>&6
11552 else
11555 ac_ext=C
11556 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11557 ac_cpp='$CXXCPP $CPPFLAGS'
11558 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11559 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11560 cross_compiling=$ac_cv_prog_cxx_cross
11562 cat > conftest.$ac_ext <<EOF
11563 #line 11564 "configure"
11564 #include "confdefs.h"
11565 #include <math.h>
11566 int main() {
11567 _expl(0);
11568 ; return 0; }
11570 if { (eval echo configure:11571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11571 rm -rf conftest*
11572 glibcpp_cv_func__expl_use=yes
11573 else
11574 echo "configure: failed program was:" >&5
11575 cat conftest.$ac_ext >&5
11576 rm -rf conftest*
11577 glibcpp_cv_func__expl_use=no
11579 rm -f conftest*
11580 ac_ext=c
11581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11582 ac_cpp='$CPP $CPPFLAGS'
11583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11585 cross_compiling=$ac_cv_prog_cc_cross
11591 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
11593 if test x$glibcpp_cv_func__expl_use = x"yes"; then
11594 for ac_func in _expl
11596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11597 echo "configure:11598: checking for $ac_func" >&5
11598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11599 echo $ac_n "(cached) $ac_c" 1>&6
11600 else
11601 cat > conftest.$ac_ext <<EOF
11602 #line 11603 "configure"
11603 #include "confdefs.h"
11604 /* System header to define __stub macros and hopefully few prototypes,
11605 which can conflict with char $ac_func(); below. */
11606 #include <assert.h>
11607 /* Override any gcc2 internal prototype to avoid an error. */
11608 /* We use char because int might match the return type of a gcc2
11609 builtin and then its argument prototype would still apply. */
11610 char $ac_func();
11612 int main() {
11614 /* The GNU C library defines this for functions which it implements
11615 to always fail with ENOSYS. Some functions are actually named
11616 something starting with __ and the normal name is an alias. */
11617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11618 choke me
11619 #else
11620 $ac_func();
11621 #endif
11623 ; return 0; }
11625 if { (eval echo configure:11626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11626 rm -rf conftest*
11627 eval "ac_cv_func_$ac_func=yes"
11628 else
11629 echo "configure: failed program was:" >&5
11630 cat conftest.$ac_ext >&5
11631 rm -rf conftest*
11632 eval "ac_cv_func_$ac_func=no"
11634 rm -f conftest*
11637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11638 echo "$ac_t""yes" 1>&6
11639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11640 cat >> confdefs.h <<EOF
11641 #define $ac_tr_func 1
11644 else
11645 echo "$ac_t""no" 1>&6
11647 done
11654 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
11655 echo "configure:11656: checking for fabsl declaration" >&5
11656 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
11657 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
11658 echo $ac_n "(cached) $ac_c" 1>&6
11659 else
11662 ac_ext=C
11663 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11664 ac_cpp='$CXXCPP $CPPFLAGS'
11665 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11666 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11667 cross_compiling=$ac_cv_prog_cxx_cross
11669 cat > conftest.$ac_ext <<EOF
11670 #line 11671 "configure"
11671 #include "confdefs.h"
11672 #include <math.h>
11673 int main() {
11674 fabsl(0);
11675 ; return 0; }
11677 if { (eval echo configure:11678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11678 rm -rf conftest*
11679 glibcpp_cv_func_fabsl_use=yes
11680 else
11681 echo "configure: failed program was:" >&5
11682 cat conftest.$ac_ext >&5
11683 rm -rf conftest*
11684 glibcpp_cv_func_fabsl_use=no
11686 rm -f conftest*
11687 ac_ext=c
11688 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11689 ac_cpp='$CPP $CPPFLAGS'
11690 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11691 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11692 cross_compiling=$ac_cv_prog_cc_cross
11698 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
11700 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
11701 for ac_func in fabsl
11703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11704 echo "configure:11705: checking for $ac_func" >&5
11705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11706 echo $ac_n "(cached) $ac_c" 1>&6
11707 else
11708 cat > conftest.$ac_ext <<EOF
11709 #line 11710 "configure"
11710 #include "confdefs.h"
11711 /* System header to define __stub macros and hopefully few prototypes,
11712 which can conflict with char $ac_func(); below. */
11713 #include <assert.h>
11714 /* Override any gcc2 internal prototype to avoid an error. */
11715 /* We use char because int might match the return type of a gcc2
11716 builtin and then its argument prototype would still apply. */
11717 char $ac_func();
11719 int main() {
11721 /* The GNU C library defines this for functions which it implements
11722 to always fail with ENOSYS. Some functions are actually named
11723 something starting with __ and the normal name is an alias. */
11724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11725 choke me
11726 #else
11727 $ac_func();
11728 #endif
11730 ; return 0; }
11732 if { (eval echo configure:11733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11733 rm -rf conftest*
11734 eval "ac_cv_func_$ac_func=yes"
11735 else
11736 echo "configure: failed program was:" >&5
11737 cat conftest.$ac_ext >&5
11738 rm -rf conftest*
11739 eval "ac_cv_func_$ac_func=no"
11741 rm -f conftest*
11744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11745 echo "$ac_t""yes" 1>&6
11746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11747 cat >> confdefs.h <<EOF
11748 #define $ac_tr_func 1
11751 else
11752 echo "$ac_t""no" 1>&6
11754 done
11756 else
11758 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
11759 echo "configure:11760: checking for _fabsl declaration" >&5
11760 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
11761 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
11762 echo $ac_n "(cached) $ac_c" 1>&6
11763 else
11766 ac_ext=C
11767 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11768 ac_cpp='$CXXCPP $CPPFLAGS'
11769 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11770 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11771 cross_compiling=$ac_cv_prog_cxx_cross
11773 cat > conftest.$ac_ext <<EOF
11774 #line 11775 "configure"
11775 #include "confdefs.h"
11776 #include <math.h>
11777 int main() {
11778 _fabsl(0);
11779 ; return 0; }
11781 if { (eval echo configure:11782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11782 rm -rf conftest*
11783 glibcpp_cv_func__fabsl_use=yes
11784 else
11785 echo "configure: failed program was:" >&5
11786 cat conftest.$ac_ext >&5
11787 rm -rf conftest*
11788 glibcpp_cv_func__fabsl_use=no
11790 rm -f conftest*
11791 ac_ext=c
11792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11793 ac_cpp='$CPP $CPPFLAGS'
11794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11796 cross_compiling=$ac_cv_prog_cc_cross
11802 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
11804 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
11805 for ac_func in _fabsl
11807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11808 echo "configure:11809: checking for $ac_func" >&5
11809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11810 echo $ac_n "(cached) $ac_c" 1>&6
11811 else
11812 cat > conftest.$ac_ext <<EOF
11813 #line 11814 "configure"
11814 #include "confdefs.h"
11815 /* System header to define __stub macros and hopefully few prototypes,
11816 which can conflict with char $ac_func(); below. */
11817 #include <assert.h>
11818 /* Override any gcc2 internal prototype to avoid an error. */
11819 /* We use char because int might match the return type of a gcc2
11820 builtin and then its argument prototype would still apply. */
11821 char $ac_func();
11823 int main() {
11825 /* The GNU C library defines this for functions which it implements
11826 to always fail with ENOSYS. Some functions are actually named
11827 something starting with __ and the normal name is an alias. */
11828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11829 choke me
11830 #else
11831 $ac_func();
11832 #endif
11834 ; return 0; }
11836 if { (eval echo configure:11837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11837 rm -rf conftest*
11838 eval "ac_cv_func_$ac_func=yes"
11839 else
11840 echo "configure: failed program was:" >&5
11841 cat conftest.$ac_ext >&5
11842 rm -rf conftest*
11843 eval "ac_cv_func_$ac_func=no"
11845 rm -f conftest*
11848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11849 echo "$ac_t""yes" 1>&6
11850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11851 cat >> confdefs.h <<EOF
11852 #define $ac_tr_func 1
11855 else
11856 echo "$ac_t""no" 1>&6
11858 done
11865 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
11866 echo "configure:11867: checking for fmodl declaration" >&5
11867 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
11868 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
11869 echo $ac_n "(cached) $ac_c" 1>&6
11870 else
11873 ac_ext=C
11874 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11875 ac_cpp='$CXXCPP $CPPFLAGS'
11876 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11877 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11878 cross_compiling=$ac_cv_prog_cxx_cross
11880 cat > conftest.$ac_ext <<EOF
11881 #line 11882 "configure"
11882 #include "confdefs.h"
11883 #include <math.h>
11884 int main() {
11885 fmodl(0, 0);
11886 ; return 0; }
11888 if { (eval echo configure:11889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11889 rm -rf conftest*
11890 glibcpp_cv_func_fmodl_use=yes
11891 else
11892 echo "configure: failed program was:" >&5
11893 cat conftest.$ac_ext >&5
11894 rm -rf conftest*
11895 glibcpp_cv_func_fmodl_use=no
11897 rm -f conftest*
11898 ac_ext=c
11899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11900 ac_cpp='$CPP $CPPFLAGS'
11901 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11902 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11903 cross_compiling=$ac_cv_prog_cc_cross
11909 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
11911 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
11912 for ac_func in fmodl
11914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11915 echo "configure:11916: checking for $ac_func" >&5
11916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11917 echo $ac_n "(cached) $ac_c" 1>&6
11918 else
11919 cat > conftest.$ac_ext <<EOF
11920 #line 11921 "configure"
11921 #include "confdefs.h"
11922 /* System header to define __stub macros and hopefully few prototypes,
11923 which can conflict with char $ac_func(); below. */
11924 #include <assert.h>
11925 /* Override any gcc2 internal prototype to avoid an error. */
11926 /* We use char because int might match the return type of a gcc2
11927 builtin and then its argument prototype would still apply. */
11928 char $ac_func();
11930 int main() {
11932 /* The GNU C library defines this for functions which it implements
11933 to always fail with ENOSYS. Some functions are actually named
11934 something starting with __ and the normal name is an alias. */
11935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11936 choke me
11937 #else
11938 $ac_func();
11939 #endif
11941 ; return 0; }
11943 if { (eval echo configure:11944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11944 rm -rf conftest*
11945 eval "ac_cv_func_$ac_func=yes"
11946 else
11947 echo "configure: failed program was:" >&5
11948 cat conftest.$ac_ext >&5
11949 rm -rf conftest*
11950 eval "ac_cv_func_$ac_func=no"
11952 rm -f conftest*
11955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11956 echo "$ac_t""yes" 1>&6
11957 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11958 cat >> confdefs.h <<EOF
11959 #define $ac_tr_func 1
11962 else
11963 echo "$ac_t""no" 1>&6
11965 done
11967 else
11969 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
11970 echo "configure:11971: checking for _fmodl declaration" >&5
11971 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
11972 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
11973 echo $ac_n "(cached) $ac_c" 1>&6
11974 else
11977 ac_ext=C
11978 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11979 ac_cpp='$CXXCPP $CPPFLAGS'
11980 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11981 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11982 cross_compiling=$ac_cv_prog_cxx_cross
11984 cat > conftest.$ac_ext <<EOF
11985 #line 11986 "configure"
11986 #include "confdefs.h"
11987 #include <math.h>
11988 int main() {
11989 _fmodl(0, 0);
11990 ; return 0; }
11992 if { (eval echo configure:11993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11993 rm -rf conftest*
11994 glibcpp_cv_func__fmodl_use=yes
11995 else
11996 echo "configure: failed program was:" >&5
11997 cat conftest.$ac_ext >&5
11998 rm -rf conftest*
11999 glibcpp_cv_func__fmodl_use=no
12001 rm -f conftest*
12002 ac_ext=c
12003 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12004 ac_cpp='$CPP $CPPFLAGS'
12005 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12006 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12007 cross_compiling=$ac_cv_prog_cc_cross
12013 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
12015 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
12016 for ac_func in _fmodl
12018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12019 echo "configure:12020: checking for $ac_func" >&5
12020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12021 echo $ac_n "(cached) $ac_c" 1>&6
12022 else
12023 cat > conftest.$ac_ext <<EOF
12024 #line 12025 "configure"
12025 #include "confdefs.h"
12026 /* System header to define __stub macros and hopefully few prototypes,
12027 which can conflict with char $ac_func(); below. */
12028 #include <assert.h>
12029 /* Override any gcc2 internal prototype to avoid an error. */
12030 /* We use char because int might match the return type of a gcc2
12031 builtin and then its argument prototype would still apply. */
12032 char $ac_func();
12034 int main() {
12036 /* The GNU C library defines this for functions which it implements
12037 to always fail with ENOSYS. Some functions are actually named
12038 something starting with __ and the normal name is an alias. */
12039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12040 choke me
12041 #else
12042 $ac_func();
12043 #endif
12045 ; return 0; }
12047 if { (eval echo configure:12048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12048 rm -rf conftest*
12049 eval "ac_cv_func_$ac_func=yes"
12050 else
12051 echo "configure: failed program was:" >&5
12052 cat conftest.$ac_ext >&5
12053 rm -rf conftest*
12054 eval "ac_cv_func_$ac_func=no"
12056 rm -f conftest*
12059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12060 echo "$ac_t""yes" 1>&6
12061 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12062 cat >> confdefs.h <<EOF
12063 #define $ac_tr_func 1
12066 else
12067 echo "$ac_t""no" 1>&6
12069 done
12076 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
12077 echo "configure:12078: checking for frexpl declaration" >&5
12078 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
12079 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
12080 echo $ac_n "(cached) $ac_c" 1>&6
12081 else
12084 ac_ext=C
12085 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12086 ac_cpp='$CXXCPP $CPPFLAGS'
12087 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12088 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12089 cross_compiling=$ac_cv_prog_cxx_cross
12091 cat > conftest.$ac_ext <<EOF
12092 #line 12093 "configure"
12093 #include "confdefs.h"
12094 #include <math.h>
12095 int main() {
12096 frexpl(0, 0);
12097 ; return 0; }
12099 if { (eval echo configure:12100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12100 rm -rf conftest*
12101 glibcpp_cv_func_frexpl_use=yes
12102 else
12103 echo "configure: failed program was:" >&5
12104 cat conftest.$ac_ext >&5
12105 rm -rf conftest*
12106 glibcpp_cv_func_frexpl_use=no
12108 rm -f conftest*
12109 ac_ext=c
12110 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12111 ac_cpp='$CPP $CPPFLAGS'
12112 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12113 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12114 cross_compiling=$ac_cv_prog_cc_cross
12120 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
12122 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
12123 for ac_func in frexpl
12125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12126 echo "configure:12127: checking for $ac_func" >&5
12127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12128 echo $ac_n "(cached) $ac_c" 1>&6
12129 else
12130 cat > conftest.$ac_ext <<EOF
12131 #line 12132 "configure"
12132 #include "confdefs.h"
12133 /* System header to define __stub macros and hopefully few prototypes,
12134 which can conflict with char $ac_func(); below. */
12135 #include <assert.h>
12136 /* Override any gcc2 internal prototype to avoid an error. */
12137 /* We use char because int might match the return type of a gcc2
12138 builtin and then its argument prototype would still apply. */
12139 char $ac_func();
12141 int main() {
12143 /* The GNU C library defines this for functions which it implements
12144 to always fail with ENOSYS. Some functions are actually named
12145 something starting with __ and the normal name is an alias. */
12146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12147 choke me
12148 #else
12149 $ac_func();
12150 #endif
12152 ; return 0; }
12154 if { (eval echo configure:12155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12155 rm -rf conftest*
12156 eval "ac_cv_func_$ac_func=yes"
12157 else
12158 echo "configure: failed program was:" >&5
12159 cat conftest.$ac_ext >&5
12160 rm -rf conftest*
12161 eval "ac_cv_func_$ac_func=no"
12163 rm -f conftest*
12166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12167 echo "$ac_t""yes" 1>&6
12168 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12169 cat >> confdefs.h <<EOF
12170 #define $ac_tr_func 1
12173 else
12174 echo "$ac_t""no" 1>&6
12176 done
12178 else
12180 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
12181 echo "configure:12182: checking for _frexpl declaration" >&5
12182 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
12183 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
12184 echo $ac_n "(cached) $ac_c" 1>&6
12185 else
12188 ac_ext=C
12189 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12190 ac_cpp='$CXXCPP $CPPFLAGS'
12191 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12192 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12193 cross_compiling=$ac_cv_prog_cxx_cross
12195 cat > conftest.$ac_ext <<EOF
12196 #line 12197 "configure"
12197 #include "confdefs.h"
12198 #include <math.h>
12199 int main() {
12200 _frexpl(0, 0);
12201 ; return 0; }
12203 if { (eval echo configure:12204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12204 rm -rf conftest*
12205 glibcpp_cv_func__frexpl_use=yes
12206 else
12207 echo "configure: failed program was:" >&5
12208 cat conftest.$ac_ext >&5
12209 rm -rf conftest*
12210 glibcpp_cv_func__frexpl_use=no
12212 rm -f conftest*
12213 ac_ext=c
12214 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12215 ac_cpp='$CPP $CPPFLAGS'
12216 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12217 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12218 cross_compiling=$ac_cv_prog_cc_cross
12224 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
12226 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
12227 for ac_func in _frexpl
12229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12230 echo "configure:12231: checking for $ac_func" >&5
12231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12232 echo $ac_n "(cached) $ac_c" 1>&6
12233 else
12234 cat > conftest.$ac_ext <<EOF
12235 #line 12236 "configure"
12236 #include "confdefs.h"
12237 /* System header to define __stub macros and hopefully few prototypes,
12238 which can conflict with char $ac_func(); below. */
12239 #include <assert.h>
12240 /* Override any gcc2 internal prototype to avoid an error. */
12241 /* We use char because int might match the return type of a gcc2
12242 builtin and then its argument prototype would still apply. */
12243 char $ac_func();
12245 int main() {
12247 /* The GNU C library defines this for functions which it implements
12248 to always fail with ENOSYS. Some functions are actually named
12249 something starting with __ and the normal name is an alias. */
12250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12251 choke me
12252 #else
12253 $ac_func();
12254 #endif
12256 ; return 0; }
12258 if { (eval echo configure:12259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12259 rm -rf conftest*
12260 eval "ac_cv_func_$ac_func=yes"
12261 else
12262 echo "configure: failed program was:" >&5
12263 cat conftest.$ac_ext >&5
12264 rm -rf conftest*
12265 eval "ac_cv_func_$ac_func=no"
12267 rm -f conftest*
12270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12271 echo "$ac_t""yes" 1>&6
12272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12273 cat >> confdefs.h <<EOF
12274 #define $ac_tr_func 1
12277 else
12278 echo "$ac_t""no" 1>&6
12280 done
12287 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
12288 echo "configure:12289: checking for ldexpl declaration" >&5
12289 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
12290 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
12291 echo $ac_n "(cached) $ac_c" 1>&6
12292 else
12295 ac_ext=C
12296 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12297 ac_cpp='$CXXCPP $CPPFLAGS'
12298 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12299 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12300 cross_compiling=$ac_cv_prog_cxx_cross
12302 cat > conftest.$ac_ext <<EOF
12303 #line 12304 "configure"
12304 #include "confdefs.h"
12305 #include <math.h>
12306 int main() {
12307 ldexpl(0, 0);
12308 ; return 0; }
12310 if { (eval echo configure:12311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12311 rm -rf conftest*
12312 glibcpp_cv_func_ldexpl_use=yes
12313 else
12314 echo "configure: failed program was:" >&5
12315 cat conftest.$ac_ext >&5
12316 rm -rf conftest*
12317 glibcpp_cv_func_ldexpl_use=no
12319 rm -f conftest*
12320 ac_ext=c
12321 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12322 ac_cpp='$CPP $CPPFLAGS'
12323 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12324 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12325 cross_compiling=$ac_cv_prog_cc_cross
12331 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
12333 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
12334 for ac_func in ldexpl
12336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12337 echo "configure:12338: checking for $ac_func" >&5
12338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12339 echo $ac_n "(cached) $ac_c" 1>&6
12340 else
12341 cat > conftest.$ac_ext <<EOF
12342 #line 12343 "configure"
12343 #include "confdefs.h"
12344 /* System header to define __stub macros and hopefully few prototypes,
12345 which can conflict with char $ac_func(); below. */
12346 #include <assert.h>
12347 /* Override any gcc2 internal prototype to avoid an error. */
12348 /* We use char because int might match the return type of a gcc2
12349 builtin and then its argument prototype would still apply. */
12350 char $ac_func();
12352 int main() {
12354 /* The GNU C library defines this for functions which it implements
12355 to always fail with ENOSYS. Some functions are actually named
12356 something starting with __ and the normal name is an alias. */
12357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12358 choke me
12359 #else
12360 $ac_func();
12361 #endif
12363 ; return 0; }
12365 if { (eval echo configure:12366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12366 rm -rf conftest*
12367 eval "ac_cv_func_$ac_func=yes"
12368 else
12369 echo "configure: failed program was:" >&5
12370 cat conftest.$ac_ext >&5
12371 rm -rf conftest*
12372 eval "ac_cv_func_$ac_func=no"
12374 rm -f conftest*
12377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12378 echo "$ac_t""yes" 1>&6
12379 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12380 cat >> confdefs.h <<EOF
12381 #define $ac_tr_func 1
12384 else
12385 echo "$ac_t""no" 1>&6
12387 done
12389 else
12391 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
12392 echo "configure:12393: checking for _ldexpl declaration" >&5
12393 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
12394 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
12395 echo $ac_n "(cached) $ac_c" 1>&6
12396 else
12399 ac_ext=C
12400 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12401 ac_cpp='$CXXCPP $CPPFLAGS'
12402 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12403 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12404 cross_compiling=$ac_cv_prog_cxx_cross
12406 cat > conftest.$ac_ext <<EOF
12407 #line 12408 "configure"
12408 #include "confdefs.h"
12409 #include <math.h>
12410 int main() {
12411 _ldexpl(0, 0);
12412 ; return 0; }
12414 if { (eval echo configure:12415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12415 rm -rf conftest*
12416 glibcpp_cv_func__ldexpl_use=yes
12417 else
12418 echo "configure: failed program was:" >&5
12419 cat conftest.$ac_ext >&5
12420 rm -rf conftest*
12421 glibcpp_cv_func__ldexpl_use=no
12423 rm -f conftest*
12424 ac_ext=c
12425 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12426 ac_cpp='$CPP $CPPFLAGS'
12427 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12428 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12429 cross_compiling=$ac_cv_prog_cc_cross
12435 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
12437 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
12438 for ac_func in _ldexpl
12440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12441 echo "configure:12442: checking for $ac_func" >&5
12442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12443 echo $ac_n "(cached) $ac_c" 1>&6
12444 else
12445 cat > conftest.$ac_ext <<EOF
12446 #line 12447 "configure"
12447 #include "confdefs.h"
12448 /* System header to define __stub macros and hopefully few prototypes,
12449 which can conflict with char $ac_func(); below. */
12450 #include <assert.h>
12451 /* Override any gcc2 internal prototype to avoid an error. */
12452 /* We use char because int might match the return type of a gcc2
12453 builtin and then its argument prototype would still apply. */
12454 char $ac_func();
12456 int main() {
12458 /* The GNU C library defines this for functions which it implements
12459 to always fail with ENOSYS. Some functions are actually named
12460 something starting with __ and the normal name is an alias. */
12461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12462 choke me
12463 #else
12464 $ac_func();
12465 #endif
12467 ; return 0; }
12469 if { (eval echo configure:12470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12470 rm -rf conftest*
12471 eval "ac_cv_func_$ac_func=yes"
12472 else
12473 echo "configure: failed program was:" >&5
12474 cat conftest.$ac_ext >&5
12475 rm -rf conftest*
12476 eval "ac_cv_func_$ac_func=no"
12478 rm -f conftest*
12481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12482 echo "$ac_t""yes" 1>&6
12483 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12484 cat >> confdefs.h <<EOF
12485 #define $ac_tr_func 1
12488 else
12489 echo "$ac_t""no" 1>&6
12491 done
12498 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
12499 echo "configure:12500: checking for logl declaration" >&5
12500 if test x${glibcpp_cv_func_logl_use+set} != xset; then
12501 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
12502 echo $ac_n "(cached) $ac_c" 1>&6
12503 else
12506 ac_ext=C
12507 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12508 ac_cpp='$CXXCPP $CPPFLAGS'
12509 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12510 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12511 cross_compiling=$ac_cv_prog_cxx_cross
12513 cat > conftest.$ac_ext <<EOF
12514 #line 12515 "configure"
12515 #include "confdefs.h"
12516 #include <math.h>
12517 int main() {
12518 logl(0);
12519 ; return 0; }
12521 if { (eval echo configure:12522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12522 rm -rf conftest*
12523 glibcpp_cv_func_logl_use=yes
12524 else
12525 echo "configure: failed program was:" >&5
12526 cat conftest.$ac_ext >&5
12527 rm -rf conftest*
12528 glibcpp_cv_func_logl_use=no
12530 rm -f conftest*
12531 ac_ext=c
12532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12533 ac_cpp='$CPP $CPPFLAGS'
12534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12536 cross_compiling=$ac_cv_prog_cc_cross
12542 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
12544 if test x$glibcpp_cv_func_logl_use = x"yes"; then
12545 for ac_func in logl
12547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12548 echo "configure:12549: checking for $ac_func" >&5
12549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12550 echo $ac_n "(cached) $ac_c" 1>&6
12551 else
12552 cat > conftest.$ac_ext <<EOF
12553 #line 12554 "configure"
12554 #include "confdefs.h"
12555 /* System header to define __stub macros and hopefully few prototypes,
12556 which can conflict with char $ac_func(); below. */
12557 #include <assert.h>
12558 /* Override any gcc2 internal prototype to avoid an error. */
12559 /* We use char because int might match the return type of a gcc2
12560 builtin and then its argument prototype would still apply. */
12561 char $ac_func();
12563 int main() {
12565 /* The GNU C library defines this for functions which it implements
12566 to always fail with ENOSYS. Some functions are actually named
12567 something starting with __ and the normal name is an alias. */
12568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12569 choke me
12570 #else
12571 $ac_func();
12572 #endif
12574 ; return 0; }
12576 if { (eval echo configure:12577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12577 rm -rf conftest*
12578 eval "ac_cv_func_$ac_func=yes"
12579 else
12580 echo "configure: failed program was:" >&5
12581 cat conftest.$ac_ext >&5
12582 rm -rf conftest*
12583 eval "ac_cv_func_$ac_func=no"
12585 rm -f conftest*
12588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12589 echo "$ac_t""yes" 1>&6
12590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12591 cat >> confdefs.h <<EOF
12592 #define $ac_tr_func 1
12595 else
12596 echo "$ac_t""no" 1>&6
12598 done
12600 else
12602 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
12603 echo "configure:12604: checking for _logl declaration" >&5
12604 if test x${glibcpp_cv_func__logl_use+set} != xset; then
12605 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
12606 echo $ac_n "(cached) $ac_c" 1>&6
12607 else
12610 ac_ext=C
12611 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12612 ac_cpp='$CXXCPP $CPPFLAGS'
12613 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12614 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12615 cross_compiling=$ac_cv_prog_cxx_cross
12617 cat > conftest.$ac_ext <<EOF
12618 #line 12619 "configure"
12619 #include "confdefs.h"
12620 #include <math.h>
12621 int main() {
12622 _logl(0);
12623 ; return 0; }
12625 if { (eval echo configure:12626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12626 rm -rf conftest*
12627 glibcpp_cv_func__logl_use=yes
12628 else
12629 echo "configure: failed program was:" >&5
12630 cat conftest.$ac_ext >&5
12631 rm -rf conftest*
12632 glibcpp_cv_func__logl_use=no
12634 rm -f conftest*
12635 ac_ext=c
12636 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12637 ac_cpp='$CPP $CPPFLAGS'
12638 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12639 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12640 cross_compiling=$ac_cv_prog_cc_cross
12646 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
12648 if test x$glibcpp_cv_func__logl_use = x"yes"; then
12649 for ac_func in _logl
12651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12652 echo "configure:12653: checking for $ac_func" >&5
12653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12654 echo $ac_n "(cached) $ac_c" 1>&6
12655 else
12656 cat > conftest.$ac_ext <<EOF
12657 #line 12658 "configure"
12658 #include "confdefs.h"
12659 /* System header to define __stub macros and hopefully few prototypes,
12660 which can conflict with char $ac_func(); below. */
12661 #include <assert.h>
12662 /* Override any gcc2 internal prototype to avoid an error. */
12663 /* We use char because int might match the return type of a gcc2
12664 builtin and then its argument prototype would still apply. */
12665 char $ac_func();
12667 int main() {
12669 /* The GNU C library defines this for functions which it implements
12670 to always fail with ENOSYS. Some functions are actually named
12671 something starting with __ and the normal name is an alias. */
12672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12673 choke me
12674 #else
12675 $ac_func();
12676 #endif
12678 ; return 0; }
12680 if { (eval echo configure:12681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12681 rm -rf conftest*
12682 eval "ac_cv_func_$ac_func=yes"
12683 else
12684 echo "configure: failed program was:" >&5
12685 cat conftest.$ac_ext >&5
12686 rm -rf conftest*
12687 eval "ac_cv_func_$ac_func=no"
12689 rm -f conftest*
12692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12693 echo "$ac_t""yes" 1>&6
12694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12695 cat >> confdefs.h <<EOF
12696 #define $ac_tr_func 1
12699 else
12700 echo "$ac_t""no" 1>&6
12702 done
12709 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
12710 echo "configure:12711: checking for log10l declaration" >&5
12711 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
12712 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
12713 echo $ac_n "(cached) $ac_c" 1>&6
12714 else
12717 ac_ext=C
12718 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12719 ac_cpp='$CXXCPP $CPPFLAGS'
12720 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12721 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12722 cross_compiling=$ac_cv_prog_cxx_cross
12724 cat > conftest.$ac_ext <<EOF
12725 #line 12726 "configure"
12726 #include "confdefs.h"
12727 #include <math.h>
12728 int main() {
12729 log10l(0);
12730 ; return 0; }
12732 if { (eval echo configure:12733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12733 rm -rf conftest*
12734 glibcpp_cv_func_log10l_use=yes
12735 else
12736 echo "configure: failed program was:" >&5
12737 cat conftest.$ac_ext >&5
12738 rm -rf conftest*
12739 glibcpp_cv_func_log10l_use=no
12741 rm -f conftest*
12742 ac_ext=c
12743 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12744 ac_cpp='$CPP $CPPFLAGS'
12745 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12746 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12747 cross_compiling=$ac_cv_prog_cc_cross
12753 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
12755 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
12756 for ac_func in log10l
12758 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12759 echo "configure:12760: checking for $ac_func" >&5
12760 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12761 echo $ac_n "(cached) $ac_c" 1>&6
12762 else
12763 cat > conftest.$ac_ext <<EOF
12764 #line 12765 "configure"
12765 #include "confdefs.h"
12766 /* System header to define __stub macros and hopefully few prototypes,
12767 which can conflict with char $ac_func(); below. */
12768 #include <assert.h>
12769 /* Override any gcc2 internal prototype to avoid an error. */
12770 /* We use char because int might match the return type of a gcc2
12771 builtin and then its argument prototype would still apply. */
12772 char $ac_func();
12774 int main() {
12776 /* The GNU C library defines this for functions which it implements
12777 to always fail with ENOSYS. Some functions are actually named
12778 something starting with __ and the normal name is an alias. */
12779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12780 choke me
12781 #else
12782 $ac_func();
12783 #endif
12785 ; return 0; }
12787 if { (eval echo configure:12788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12788 rm -rf conftest*
12789 eval "ac_cv_func_$ac_func=yes"
12790 else
12791 echo "configure: failed program was:" >&5
12792 cat conftest.$ac_ext >&5
12793 rm -rf conftest*
12794 eval "ac_cv_func_$ac_func=no"
12796 rm -f conftest*
12799 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12800 echo "$ac_t""yes" 1>&6
12801 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12802 cat >> confdefs.h <<EOF
12803 #define $ac_tr_func 1
12806 else
12807 echo "$ac_t""no" 1>&6
12809 done
12811 else
12813 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
12814 echo "configure:12815: checking for _log10l declaration" >&5
12815 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
12816 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
12817 echo $ac_n "(cached) $ac_c" 1>&6
12818 else
12821 ac_ext=C
12822 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12823 ac_cpp='$CXXCPP $CPPFLAGS'
12824 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12825 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12826 cross_compiling=$ac_cv_prog_cxx_cross
12828 cat > conftest.$ac_ext <<EOF
12829 #line 12830 "configure"
12830 #include "confdefs.h"
12831 #include <math.h>
12832 int main() {
12833 _log10l(0);
12834 ; return 0; }
12836 if { (eval echo configure:12837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12837 rm -rf conftest*
12838 glibcpp_cv_func__log10l_use=yes
12839 else
12840 echo "configure: failed program was:" >&5
12841 cat conftest.$ac_ext >&5
12842 rm -rf conftest*
12843 glibcpp_cv_func__log10l_use=no
12845 rm -f conftest*
12846 ac_ext=c
12847 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12848 ac_cpp='$CPP $CPPFLAGS'
12849 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12850 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12851 cross_compiling=$ac_cv_prog_cc_cross
12857 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
12859 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
12860 for ac_func in _log10l
12862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12863 echo "configure:12864: checking for $ac_func" >&5
12864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12865 echo $ac_n "(cached) $ac_c" 1>&6
12866 else
12867 cat > conftest.$ac_ext <<EOF
12868 #line 12869 "configure"
12869 #include "confdefs.h"
12870 /* System header to define __stub macros and hopefully few prototypes,
12871 which can conflict with char $ac_func(); below. */
12872 #include <assert.h>
12873 /* Override any gcc2 internal prototype to avoid an error. */
12874 /* We use char because int might match the return type of a gcc2
12875 builtin and then its argument prototype would still apply. */
12876 char $ac_func();
12878 int main() {
12880 /* The GNU C library defines this for functions which it implements
12881 to always fail with ENOSYS. Some functions are actually named
12882 something starting with __ and the normal name is an alias. */
12883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12884 choke me
12885 #else
12886 $ac_func();
12887 #endif
12889 ; return 0; }
12891 if { (eval echo configure:12892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12892 rm -rf conftest*
12893 eval "ac_cv_func_$ac_func=yes"
12894 else
12895 echo "configure: failed program was:" >&5
12896 cat conftest.$ac_ext >&5
12897 rm -rf conftest*
12898 eval "ac_cv_func_$ac_func=no"
12900 rm -f conftest*
12903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12904 echo "$ac_t""yes" 1>&6
12905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12906 cat >> confdefs.h <<EOF
12907 #define $ac_tr_func 1
12910 else
12911 echo "$ac_t""no" 1>&6
12913 done
12920 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
12921 echo "configure:12922: checking for modfl declaration" >&5
12922 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
12923 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
12924 echo $ac_n "(cached) $ac_c" 1>&6
12925 else
12928 ac_ext=C
12929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12930 ac_cpp='$CXXCPP $CPPFLAGS'
12931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12933 cross_compiling=$ac_cv_prog_cxx_cross
12935 cat > conftest.$ac_ext <<EOF
12936 #line 12937 "configure"
12937 #include "confdefs.h"
12938 #include <math.h>
12939 int main() {
12940 modfl(0, 0);
12941 ; return 0; }
12943 if { (eval echo configure:12944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12944 rm -rf conftest*
12945 glibcpp_cv_func_modfl_use=yes
12946 else
12947 echo "configure: failed program was:" >&5
12948 cat conftest.$ac_ext >&5
12949 rm -rf conftest*
12950 glibcpp_cv_func_modfl_use=no
12952 rm -f conftest*
12953 ac_ext=c
12954 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12955 ac_cpp='$CPP $CPPFLAGS'
12956 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12957 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12958 cross_compiling=$ac_cv_prog_cc_cross
12964 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
12966 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
12967 for ac_func in modfl
12969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12970 echo "configure:12971: checking for $ac_func" >&5
12971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12972 echo $ac_n "(cached) $ac_c" 1>&6
12973 else
12974 cat > conftest.$ac_ext <<EOF
12975 #line 12976 "configure"
12976 #include "confdefs.h"
12977 /* System header to define __stub macros and hopefully few prototypes,
12978 which can conflict with char $ac_func(); below. */
12979 #include <assert.h>
12980 /* Override any gcc2 internal prototype to avoid an error. */
12981 /* We use char because int might match the return type of a gcc2
12982 builtin and then its argument prototype would still apply. */
12983 char $ac_func();
12985 int main() {
12987 /* The GNU C library defines this for functions which it implements
12988 to always fail with ENOSYS. Some functions are actually named
12989 something starting with __ and the normal name is an alias. */
12990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12991 choke me
12992 #else
12993 $ac_func();
12994 #endif
12996 ; return 0; }
12998 if { (eval echo configure:12999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12999 rm -rf conftest*
13000 eval "ac_cv_func_$ac_func=yes"
13001 else
13002 echo "configure: failed program was:" >&5
13003 cat conftest.$ac_ext >&5
13004 rm -rf conftest*
13005 eval "ac_cv_func_$ac_func=no"
13007 rm -f conftest*
13010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13011 echo "$ac_t""yes" 1>&6
13012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13013 cat >> confdefs.h <<EOF
13014 #define $ac_tr_func 1
13017 else
13018 echo "$ac_t""no" 1>&6
13020 done
13022 else
13024 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
13025 echo "configure:13026: checking for _modfl declaration" >&5
13026 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
13027 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
13028 echo $ac_n "(cached) $ac_c" 1>&6
13029 else
13032 ac_ext=C
13033 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13034 ac_cpp='$CXXCPP $CPPFLAGS'
13035 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13036 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13037 cross_compiling=$ac_cv_prog_cxx_cross
13039 cat > conftest.$ac_ext <<EOF
13040 #line 13041 "configure"
13041 #include "confdefs.h"
13042 #include <math.h>
13043 int main() {
13044 _modfl(0, 0);
13045 ; return 0; }
13047 if { (eval echo configure:13048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13048 rm -rf conftest*
13049 glibcpp_cv_func__modfl_use=yes
13050 else
13051 echo "configure: failed program was:" >&5
13052 cat conftest.$ac_ext >&5
13053 rm -rf conftest*
13054 glibcpp_cv_func__modfl_use=no
13056 rm -f conftest*
13057 ac_ext=c
13058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13059 ac_cpp='$CPP $CPPFLAGS'
13060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13062 cross_compiling=$ac_cv_prog_cc_cross
13068 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
13070 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
13071 for ac_func in _modfl
13073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13074 echo "configure:13075: checking for $ac_func" >&5
13075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13076 echo $ac_n "(cached) $ac_c" 1>&6
13077 else
13078 cat > conftest.$ac_ext <<EOF
13079 #line 13080 "configure"
13080 #include "confdefs.h"
13081 /* System header to define __stub macros and hopefully few prototypes,
13082 which can conflict with char $ac_func(); below. */
13083 #include <assert.h>
13084 /* Override any gcc2 internal prototype to avoid an error. */
13085 /* We use char because int might match the return type of a gcc2
13086 builtin and then its argument prototype would still apply. */
13087 char $ac_func();
13089 int main() {
13091 /* The GNU C library defines this for functions which it implements
13092 to always fail with ENOSYS. Some functions are actually named
13093 something starting with __ and the normal name is an alias. */
13094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13095 choke me
13096 #else
13097 $ac_func();
13098 #endif
13100 ; return 0; }
13102 if { (eval echo configure:13103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13103 rm -rf conftest*
13104 eval "ac_cv_func_$ac_func=yes"
13105 else
13106 echo "configure: failed program was:" >&5
13107 cat conftest.$ac_ext >&5
13108 rm -rf conftest*
13109 eval "ac_cv_func_$ac_func=no"
13111 rm -f conftest*
13114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13115 echo "$ac_t""yes" 1>&6
13116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13117 cat >> confdefs.h <<EOF
13118 #define $ac_tr_func 1
13121 else
13122 echo "$ac_t""no" 1>&6
13124 done
13131 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
13132 echo "configure:13133: checking for powl declaration" >&5
13133 if test x${glibcpp_cv_func_powl_use+set} != xset; then
13134 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
13135 echo $ac_n "(cached) $ac_c" 1>&6
13136 else
13139 ac_ext=C
13140 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13141 ac_cpp='$CXXCPP $CPPFLAGS'
13142 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13143 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13144 cross_compiling=$ac_cv_prog_cxx_cross
13146 cat > conftest.$ac_ext <<EOF
13147 #line 13148 "configure"
13148 #include "confdefs.h"
13149 #include <math.h>
13150 int main() {
13151 powl(0, 0);
13152 ; return 0; }
13154 if { (eval echo configure:13155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13155 rm -rf conftest*
13156 glibcpp_cv_func_powl_use=yes
13157 else
13158 echo "configure: failed program was:" >&5
13159 cat conftest.$ac_ext >&5
13160 rm -rf conftest*
13161 glibcpp_cv_func_powl_use=no
13163 rm -f conftest*
13164 ac_ext=c
13165 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13166 ac_cpp='$CPP $CPPFLAGS'
13167 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13168 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13169 cross_compiling=$ac_cv_prog_cc_cross
13175 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
13177 if test x$glibcpp_cv_func_powl_use = x"yes"; then
13178 for ac_func in powl
13180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13181 echo "configure:13182: checking for $ac_func" >&5
13182 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13183 echo $ac_n "(cached) $ac_c" 1>&6
13184 else
13185 cat > conftest.$ac_ext <<EOF
13186 #line 13187 "configure"
13187 #include "confdefs.h"
13188 /* System header to define __stub macros and hopefully few prototypes,
13189 which can conflict with char $ac_func(); below. */
13190 #include <assert.h>
13191 /* Override any gcc2 internal prototype to avoid an error. */
13192 /* We use char because int might match the return type of a gcc2
13193 builtin and then its argument prototype would still apply. */
13194 char $ac_func();
13196 int main() {
13198 /* The GNU C library defines this for functions which it implements
13199 to always fail with ENOSYS. Some functions are actually named
13200 something starting with __ and the normal name is an alias. */
13201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13202 choke me
13203 #else
13204 $ac_func();
13205 #endif
13207 ; return 0; }
13209 if { (eval echo configure:13210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13210 rm -rf conftest*
13211 eval "ac_cv_func_$ac_func=yes"
13212 else
13213 echo "configure: failed program was:" >&5
13214 cat conftest.$ac_ext >&5
13215 rm -rf conftest*
13216 eval "ac_cv_func_$ac_func=no"
13218 rm -f conftest*
13221 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13222 echo "$ac_t""yes" 1>&6
13223 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13224 cat >> confdefs.h <<EOF
13225 #define $ac_tr_func 1
13228 else
13229 echo "$ac_t""no" 1>&6
13231 done
13233 else
13235 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
13236 echo "configure:13237: checking for _powl declaration" >&5
13237 if test x${glibcpp_cv_func__powl_use+set} != xset; then
13238 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
13239 echo $ac_n "(cached) $ac_c" 1>&6
13240 else
13243 ac_ext=C
13244 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13245 ac_cpp='$CXXCPP $CPPFLAGS'
13246 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13247 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13248 cross_compiling=$ac_cv_prog_cxx_cross
13250 cat > conftest.$ac_ext <<EOF
13251 #line 13252 "configure"
13252 #include "confdefs.h"
13253 #include <math.h>
13254 int main() {
13255 _powl(0, 0);
13256 ; return 0; }
13258 if { (eval echo configure:13259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13259 rm -rf conftest*
13260 glibcpp_cv_func__powl_use=yes
13261 else
13262 echo "configure: failed program was:" >&5
13263 cat conftest.$ac_ext >&5
13264 rm -rf conftest*
13265 glibcpp_cv_func__powl_use=no
13267 rm -f conftest*
13268 ac_ext=c
13269 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13270 ac_cpp='$CPP $CPPFLAGS'
13271 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13272 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13273 cross_compiling=$ac_cv_prog_cc_cross
13279 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
13281 if test x$glibcpp_cv_func__powl_use = x"yes"; then
13282 for ac_func in _powl
13284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13285 echo "configure:13286: checking for $ac_func" >&5
13286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13287 echo $ac_n "(cached) $ac_c" 1>&6
13288 else
13289 cat > conftest.$ac_ext <<EOF
13290 #line 13291 "configure"
13291 #include "confdefs.h"
13292 /* System header to define __stub macros and hopefully few prototypes,
13293 which can conflict with char $ac_func(); below. */
13294 #include <assert.h>
13295 /* Override any gcc2 internal prototype to avoid an error. */
13296 /* We use char because int might match the return type of a gcc2
13297 builtin and then its argument prototype would still apply. */
13298 char $ac_func();
13300 int main() {
13302 /* The GNU C library defines this for functions which it implements
13303 to always fail with ENOSYS. Some functions are actually named
13304 something starting with __ and the normal name is an alias. */
13305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13306 choke me
13307 #else
13308 $ac_func();
13309 #endif
13311 ; return 0; }
13313 if { (eval echo configure:13314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13314 rm -rf conftest*
13315 eval "ac_cv_func_$ac_func=yes"
13316 else
13317 echo "configure: failed program was:" >&5
13318 cat conftest.$ac_ext >&5
13319 rm -rf conftest*
13320 eval "ac_cv_func_$ac_func=no"
13322 rm -f conftest*
13325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13326 echo "$ac_t""yes" 1>&6
13327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13328 cat >> confdefs.h <<EOF
13329 #define $ac_tr_func 1
13332 else
13333 echo "$ac_t""no" 1>&6
13335 done
13342 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
13343 echo "configure:13344: checking for sqrtl declaration" >&5
13344 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
13345 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
13346 echo $ac_n "(cached) $ac_c" 1>&6
13347 else
13350 ac_ext=C
13351 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13352 ac_cpp='$CXXCPP $CPPFLAGS'
13353 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13354 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13355 cross_compiling=$ac_cv_prog_cxx_cross
13357 cat > conftest.$ac_ext <<EOF
13358 #line 13359 "configure"
13359 #include "confdefs.h"
13360 #include <math.h>
13361 int main() {
13362 sqrtl(0);
13363 ; return 0; }
13365 if { (eval echo configure:13366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13366 rm -rf conftest*
13367 glibcpp_cv_func_sqrtl_use=yes
13368 else
13369 echo "configure: failed program was:" >&5
13370 cat conftest.$ac_ext >&5
13371 rm -rf conftest*
13372 glibcpp_cv_func_sqrtl_use=no
13374 rm -f conftest*
13375 ac_ext=c
13376 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13377 ac_cpp='$CPP $CPPFLAGS'
13378 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13379 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13380 cross_compiling=$ac_cv_prog_cc_cross
13386 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
13388 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
13389 for ac_func in sqrtl
13391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13392 echo "configure:13393: checking for $ac_func" >&5
13393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13394 echo $ac_n "(cached) $ac_c" 1>&6
13395 else
13396 cat > conftest.$ac_ext <<EOF
13397 #line 13398 "configure"
13398 #include "confdefs.h"
13399 /* System header to define __stub macros and hopefully few prototypes,
13400 which can conflict with char $ac_func(); below. */
13401 #include <assert.h>
13402 /* Override any gcc2 internal prototype to avoid an error. */
13403 /* We use char because int might match the return type of a gcc2
13404 builtin and then its argument prototype would still apply. */
13405 char $ac_func();
13407 int main() {
13409 /* The GNU C library defines this for functions which it implements
13410 to always fail with ENOSYS. Some functions are actually named
13411 something starting with __ and the normal name is an alias. */
13412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13413 choke me
13414 #else
13415 $ac_func();
13416 #endif
13418 ; return 0; }
13420 if { (eval echo configure:13421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13421 rm -rf conftest*
13422 eval "ac_cv_func_$ac_func=yes"
13423 else
13424 echo "configure: failed program was:" >&5
13425 cat conftest.$ac_ext >&5
13426 rm -rf conftest*
13427 eval "ac_cv_func_$ac_func=no"
13429 rm -f conftest*
13432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13433 echo "$ac_t""yes" 1>&6
13434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13435 cat >> confdefs.h <<EOF
13436 #define $ac_tr_func 1
13439 else
13440 echo "$ac_t""no" 1>&6
13442 done
13444 else
13446 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
13447 echo "configure:13448: checking for _sqrtl declaration" >&5
13448 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
13449 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
13450 echo $ac_n "(cached) $ac_c" 1>&6
13451 else
13454 ac_ext=C
13455 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13456 ac_cpp='$CXXCPP $CPPFLAGS'
13457 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13458 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13459 cross_compiling=$ac_cv_prog_cxx_cross
13461 cat > conftest.$ac_ext <<EOF
13462 #line 13463 "configure"
13463 #include "confdefs.h"
13464 #include <math.h>
13465 int main() {
13466 _sqrtl(0);
13467 ; return 0; }
13469 if { (eval echo configure:13470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13470 rm -rf conftest*
13471 glibcpp_cv_func__sqrtl_use=yes
13472 else
13473 echo "configure: failed program was:" >&5
13474 cat conftest.$ac_ext >&5
13475 rm -rf conftest*
13476 glibcpp_cv_func__sqrtl_use=no
13478 rm -f conftest*
13479 ac_ext=c
13480 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13481 ac_cpp='$CPP $CPPFLAGS'
13482 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13483 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13484 cross_compiling=$ac_cv_prog_cc_cross
13490 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
13492 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
13493 for ac_func in _sqrtl
13495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13496 echo "configure:13497: checking for $ac_func" >&5
13497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13498 echo $ac_n "(cached) $ac_c" 1>&6
13499 else
13500 cat > conftest.$ac_ext <<EOF
13501 #line 13502 "configure"
13502 #include "confdefs.h"
13503 /* System header to define __stub macros and hopefully few prototypes,
13504 which can conflict with char $ac_func(); below. */
13505 #include <assert.h>
13506 /* Override any gcc2 internal prototype to avoid an error. */
13507 /* We use char because int might match the return type of a gcc2
13508 builtin and then its argument prototype would still apply. */
13509 char $ac_func();
13511 int main() {
13513 /* The GNU C library defines this for functions which it implements
13514 to always fail with ENOSYS. Some functions are actually named
13515 something starting with __ and the normal name is an alias. */
13516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13517 choke me
13518 #else
13519 $ac_func();
13520 #endif
13522 ; return 0; }
13524 if { (eval echo configure:13525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13525 rm -rf conftest*
13526 eval "ac_cv_func_$ac_func=yes"
13527 else
13528 echo "configure: failed program was:" >&5
13529 cat conftest.$ac_ext >&5
13530 rm -rf conftest*
13531 eval "ac_cv_func_$ac_func=no"
13533 rm -f conftest*
13536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13537 echo "$ac_t""yes" 1>&6
13538 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13539 cat >> confdefs.h <<EOF
13540 #define $ac_tr_func 1
13543 else
13544 echo "$ac_t""no" 1>&6
13546 done
13553 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
13554 echo "configure:13555: checking for sincosl declaration" >&5
13555 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
13556 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
13557 echo $ac_n "(cached) $ac_c" 1>&6
13558 else
13561 ac_ext=C
13562 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13563 ac_cpp='$CXXCPP $CPPFLAGS'
13564 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13565 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13566 cross_compiling=$ac_cv_prog_cxx_cross
13568 cat > conftest.$ac_ext <<EOF
13569 #line 13570 "configure"
13570 #include "confdefs.h"
13571 #include <math.h>
13572 int main() {
13573 sincosl(0, 0, 0);
13574 ; return 0; }
13576 if { (eval echo configure:13577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13577 rm -rf conftest*
13578 glibcpp_cv_func_sincosl_use=yes
13579 else
13580 echo "configure: failed program was:" >&5
13581 cat conftest.$ac_ext >&5
13582 rm -rf conftest*
13583 glibcpp_cv_func_sincosl_use=no
13585 rm -f conftest*
13586 ac_ext=c
13587 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13588 ac_cpp='$CPP $CPPFLAGS'
13589 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13590 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13591 cross_compiling=$ac_cv_prog_cc_cross
13597 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
13599 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
13600 for ac_func in sincosl
13602 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13603 echo "configure:13604: checking for $ac_func" >&5
13604 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13605 echo $ac_n "(cached) $ac_c" 1>&6
13606 else
13607 cat > conftest.$ac_ext <<EOF
13608 #line 13609 "configure"
13609 #include "confdefs.h"
13610 /* System header to define __stub macros and hopefully few prototypes,
13611 which can conflict with char $ac_func(); below. */
13612 #include <assert.h>
13613 /* Override any gcc2 internal prototype to avoid an error. */
13614 /* We use char because int might match the return type of a gcc2
13615 builtin and then its argument prototype would still apply. */
13616 char $ac_func();
13618 int main() {
13620 /* The GNU C library defines this for functions which it implements
13621 to always fail with ENOSYS. Some functions are actually named
13622 something starting with __ and the normal name is an alias. */
13623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13624 choke me
13625 #else
13626 $ac_func();
13627 #endif
13629 ; return 0; }
13631 if { (eval echo configure:13632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13632 rm -rf conftest*
13633 eval "ac_cv_func_$ac_func=yes"
13634 else
13635 echo "configure: failed program was:" >&5
13636 cat conftest.$ac_ext >&5
13637 rm -rf conftest*
13638 eval "ac_cv_func_$ac_func=no"
13640 rm -f conftest*
13643 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13644 echo "$ac_t""yes" 1>&6
13645 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13646 cat >> confdefs.h <<EOF
13647 #define $ac_tr_func 1
13650 else
13651 echo "$ac_t""no" 1>&6
13653 done
13655 else
13657 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
13658 echo "configure:13659: checking for _sincosl declaration" >&5
13659 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
13660 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
13661 echo $ac_n "(cached) $ac_c" 1>&6
13662 else
13665 ac_ext=C
13666 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13667 ac_cpp='$CXXCPP $CPPFLAGS'
13668 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13669 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13670 cross_compiling=$ac_cv_prog_cxx_cross
13672 cat > conftest.$ac_ext <<EOF
13673 #line 13674 "configure"
13674 #include "confdefs.h"
13675 #include <math.h>
13676 int main() {
13677 _sincosl(0, 0, 0);
13678 ; return 0; }
13680 if { (eval echo configure:13681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13681 rm -rf conftest*
13682 glibcpp_cv_func__sincosl_use=yes
13683 else
13684 echo "configure: failed program was:" >&5
13685 cat conftest.$ac_ext >&5
13686 rm -rf conftest*
13687 glibcpp_cv_func__sincosl_use=no
13689 rm -f conftest*
13690 ac_ext=c
13691 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13692 ac_cpp='$CPP $CPPFLAGS'
13693 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13694 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13695 cross_compiling=$ac_cv_prog_cc_cross
13701 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
13703 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
13704 for ac_func in _sincosl
13706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13707 echo "configure:13708: checking for $ac_func" >&5
13708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13709 echo $ac_n "(cached) $ac_c" 1>&6
13710 else
13711 cat > conftest.$ac_ext <<EOF
13712 #line 13713 "configure"
13713 #include "confdefs.h"
13714 /* System header to define __stub macros and hopefully few prototypes,
13715 which can conflict with char $ac_func(); below. */
13716 #include <assert.h>
13717 /* Override any gcc2 internal prototype to avoid an error. */
13718 /* We use char because int might match the return type of a gcc2
13719 builtin and then its argument prototype would still apply. */
13720 char $ac_func();
13722 int main() {
13724 /* The GNU C library defines this for functions which it implements
13725 to always fail with ENOSYS. Some functions are actually named
13726 something starting with __ and the normal name is an alias. */
13727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13728 choke me
13729 #else
13730 $ac_func();
13731 #endif
13733 ; return 0; }
13735 if { (eval echo configure:13736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13736 rm -rf conftest*
13737 eval "ac_cv_func_$ac_func=yes"
13738 else
13739 echo "configure: failed program was:" >&5
13740 cat conftest.$ac_ext >&5
13741 rm -rf conftest*
13742 eval "ac_cv_func_$ac_func=no"
13744 rm -f conftest*
13747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13748 echo "$ac_t""yes" 1>&6
13749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13750 cat >> confdefs.h <<EOF
13751 #define $ac_tr_func 1
13754 else
13755 echo "$ac_t""no" 1>&6
13757 done
13764 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
13765 echo "configure:13766: checking for finitel declaration" >&5
13766 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
13767 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
13768 echo $ac_n "(cached) $ac_c" 1>&6
13769 else
13772 ac_ext=C
13773 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13774 ac_cpp='$CXXCPP $CPPFLAGS'
13775 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13776 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13777 cross_compiling=$ac_cv_prog_cxx_cross
13779 cat > conftest.$ac_ext <<EOF
13780 #line 13781 "configure"
13781 #include "confdefs.h"
13782 #include <math.h>
13783 int main() {
13784 finitel(0);
13785 ; return 0; }
13787 if { (eval echo configure:13788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13788 rm -rf conftest*
13789 glibcpp_cv_func_finitel_use=yes
13790 else
13791 echo "configure: failed program was:" >&5
13792 cat conftest.$ac_ext >&5
13793 rm -rf conftest*
13794 glibcpp_cv_func_finitel_use=no
13796 rm -f conftest*
13797 ac_ext=c
13798 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13799 ac_cpp='$CPP $CPPFLAGS'
13800 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13801 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13802 cross_compiling=$ac_cv_prog_cc_cross
13808 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
13810 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
13811 for ac_func in finitel
13813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13814 echo "configure:13815: checking for $ac_func" >&5
13815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13816 echo $ac_n "(cached) $ac_c" 1>&6
13817 else
13818 cat > conftest.$ac_ext <<EOF
13819 #line 13820 "configure"
13820 #include "confdefs.h"
13821 /* System header to define __stub macros and hopefully few prototypes,
13822 which can conflict with char $ac_func(); below. */
13823 #include <assert.h>
13824 /* Override any gcc2 internal prototype to avoid an error. */
13825 /* We use char because int might match the return type of a gcc2
13826 builtin and then its argument prototype would still apply. */
13827 char $ac_func();
13829 int main() {
13831 /* The GNU C library defines this for functions which it implements
13832 to always fail with ENOSYS. Some functions are actually named
13833 something starting with __ and the normal name is an alias. */
13834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13835 choke me
13836 #else
13837 $ac_func();
13838 #endif
13840 ; return 0; }
13842 if { (eval echo configure:13843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13843 rm -rf conftest*
13844 eval "ac_cv_func_$ac_func=yes"
13845 else
13846 echo "configure: failed program was:" >&5
13847 cat conftest.$ac_ext >&5
13848 rm -rf conftest*
13849 eval "ac_cv_func_$ac_func=no"
13851 rm -f conftest*
13854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13855 echo "$ac_t""yes" 1>&6
13856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13857 cat >> confdefs.h <<EOF
13858 #define $ac_tr_func 1
13861 else
13862 echo "$ac_t""no" 1>&6
13864 done
13866 else
13868 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
13869 echo "configure:13870: checking for _finitel declaration" >&5
13870 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
13871 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
13872 echo $ac_n "(cached) $ac_c" 1>&6
13873 else
13876 ac_ext=C
13877 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13878 ac_cpp='$CXXCPP $CPPFLAGS'
13879 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13880 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13881 cross_compiling=$ac_cv_prog_cxx_cross
13883 cat > conftest.$ac_ext <<EOF
13884 #line 13885 "configure"
13885 #include "confdefs.h"
13886 #include <math.h>
13887 int main() {
13888 _finitel(0);
13889 ; return 0; }
13891 if { (eval echo configure:13892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13892 rm -rf conftest*
13893 glibcpp_cv_func__finitel_use=yes
13894 else
13895 echo "configure: failed program was:" >&5
13896 cat conftest.$ac_ext >&5
13897 rm -rf conftest*
13898 glibcpp_cv_func__finitel_use=no
13900 rm -f conftest*
13901 ac_ext=c
13902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13903 ac_cpp='$CPP $CPPFLAGS'
13904 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13905 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13906 cross_compiling=$ac_cv_prog_cc_cross
13912 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
13914 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
13915 for ac_func in _finitel
13917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13918 echo "configure:13919: checking for $ac_func" >&5
13919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13920 echo $ac_n "(cached) $ac_c" 1>&6
13921 else
13922 cat > conftest.$ac_ext <<EOF
13923 #line 13924 "configure"
13924 #include "confdefs.h"
13925 /* System header to define __stub macros and hopefully few prototypes,
13926 which can conflict with char $ac_func(); below. */
13927 #include <assert.h>
13928 /* Override any gcc2 internal prototype to avoid an error. */
13929 /* We use char because int might match the return type of a gcc2
13930 builtin and then its argument prototype would still apply. */
13931 char $ac_func();
13933 int main() {
13935 /* The GNU C library defines this for functions which it implements
13936 to always fail with ENOSYS. Some functions are actually named
13937 something starting with __ and the normal name is an alias. */
13938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13939 choke me
13940 #else
13941 $ac_func();
13942 #endif
13944 ; return 0; }
13946 if { (eval echo configure:13947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13947 rm -rf conftest*
13948 eval "ac_cv_func_$ac_func=yes"
13949 else
13950 echo "configure: failed program was:" >&5
13951 cat conftest.$ac_ext >&5
13952 rm -rf conftest*
13953 eval "ac_cv_func_$ac_func=no"
13955 rm -f conftest*
13958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13959 echo "$ac_t""yes" 1>&6
13960 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13961 cat >> confdefs.h <<EOF
13962 #define $ac_tr_func 1
13965 else
13966 echo "$ac_t""no" 1>&6
13968 done
13976 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
13977 echo "configure:13978: checking for _float trig functions" >&5
13978 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
13979 echo $ac_n "(cached) $ac_c" 1>&6
13980 else
13983 ac_ext=C
13984 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13985 ac_cpp='$CXXCPP $CPPFLAGS'
13986 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13987 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13988 cross_compiling=$ac_cv_prog_cxx_cross
13990 cat > conftest.$ac_ext <<EOF
13991 #line 13992 "configure"
13992 #include "confdefs.h"
13993 #include <math.h>
13994 int main() {
13995 `for x in _acosf _asinf _atanf \
13996 _cosf _sinf _tanf \
13997 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
13998 ; return 0; }
14000 if { (eval echo configure:14001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14001 rm -rf conftest*
14002 glibcpp_cv_func__float_trig_use=yes
14003 else
14004 echo "configure: failed program was:" >&5
14005 cat conftest.$ac_ext >&5
14006 rm -rf conftest*
14007 glibcpp_cv_func__float_trig_use=no
14009 rm -f conftest*
14010 ac_ext=c
14011 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14012 ac_cpp='$CPP $CPPFLAGS'
14013 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14014 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14015 cross_compiling=$ac_cv_prog_cc_cross
14019 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
14020 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
14021 for ac_func in _acosf _asinf _atanf \
14022 _cosf _sinf _tanf \
14023 _coshf _sinhf _tanhf
14025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14026 echo "configure:14027: checking for $ac_func" >&5
14027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14028 echo $ac_n "(cached) $ac_c" 1>&6
14029 else
14030 cat > conftest.$ac_ext <<EOF
14031 #line 14032 "configure"
14032 #include "confdefs.h"
14033 /* System header to define __stub macros and hopefully few prototypes,
14034 which can conflict with char $ac_func(); below. */
14035 #include <assert.h>
14036 /* Override any gcc2 internal prototype to avoid an error. */
14037 /* We use char because int might match the return type of a gcc2
14038 builtin and then its argument prototype would still apply. */
14039 char $ac_func();
14041 int main() {
14043 /* The GNU C library defines this for functions which it implements
14044 to always fail with ENOSYS. Some functions are actually named
14045 something starting with __ and the normal name is an alias. */
14046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14047 choke me
14048 #else
14049 $ac_func();
14050 #endif
14052 ; return 0; }
14054 if { (eval echo configure:14055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14055 rm -rf conftest*
14056 eval "ac_cv_func_$ac_func=yes"
14057 else
14058 echo "configure: failed program was:" >&5
14059 cat conftest.$ac_ext >&5
14060 rm -rf conftest*
14061 eval "ac_cv_func_$ac_func=no"
14063 rm -f conftest*
14066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14067 echo "$ac_t""yes" 1>&6
14068 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14069 cat >> confdefs.h <<EOF
14070 #define $ac_tr_func 1
14073 else
14074 echo "$ac_t""no" 1>&6
14076 done
14081 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
14082 echo "configure:14083: checking for _float round functions" >&5
14083 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
14084 echo $ac_n "(cached) $ac_c" 1>&6
14085 else
14088 ac_ext=C
14089 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14090 ac_cpp='$CXXCPP $CPPFLAGS'
14091 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14092 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14093 cross_compiling=$ac_cv_prog_cxx_cross
14095 cat > conftest.$ac_ext <<EOF
14096 #line 14097 "configure"
14097 #include "confdefs.h"
14098 #include <math.h>
14099 int main() {
14100 `for x in _ceilf _floorf; do echo "$x (0);"; done`
14101 ; return 0; }
14103 if { (eval echo configure:14104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14104 rm -rf conftest*
14105 glibcpp_cv_func__float_round_use=yes
14106 else
14107 echo "configure: failed program was:" >&5
14108 cat conftest.$ac_ext >&5
14109 rm -rf conftest*
14110 glibcpp_cv_func__float_round_use=no
14112 rm -f conftest*
14113 ac_ext=c
14114 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14115 ac_cpp='$CPP $CPPFLAGS'
14116 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14117 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14118 cross_compiling=$ac_cv_prog_cc_cross
14122 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
14123 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
14124 for ac_func in _ceilf _floorf
14126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14127 echo "configure:14128: checking for $ac_func" >&5
14128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14129 echo $ac_n "(cached) $ac_c" 1>&6
14130 else
14131 cat > conftest.$ac_ext <<EOF
14132 #line 14133 "configure"
14133 #include "confdefs.h"
14134 /* System header to define __stub macros and hopefully few prototypes,
14135 which can conflict with char $ac_func(); below. */
14136 #include <assert.h>
14137 /* Override any gcc2 internal prototype to avoid an error. */
14138 /* We use char because int might match the return type of a gcc2
14139 builtin and then its argument prototype would still apply. */
14140 char $ac_func();
14142 int main() {
14144 /* The GNU C library defines this for functions which it implements
14145 to always fail with ENOSYS. Some functions are actually named
14146 something starting with __ and the normal name is an alias. */
14147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14148 choke me
14149 #else
14150 $ac_func();
14151 #endif
14153 ; return 0; }
14155 if { (eval echo configure:14156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14156 rm -rf conftest*
14157 eval "ac_cv_func_$ac_func=yes"
14158 else
14159 echo "configure: failed program was:" >&5
14160 cat conftest.$ac_ext >&5
14161 rm -rf conftest*
14162 eval "ac_cv_func_$ac_func=no"
14164 rm -f conftest*
14167 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14168 echo "$ac_t""yes" 1>&6
14169 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14170 cat >> confdefs.h <<EOF
14171 #define $ac_tr_func 1
14174 else
14175 echo "$ac_t""no" 1>&6
14177 done
14183 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
14184 echo "configure:14185: checking for _long double trig functions" >&5
14185 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
14186 echo $ac_n "(cached) $ac_c" 1>&6
14187 else
14190 ac_ext=C
14191 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14192 ac_cpp='$CXXCPP $CPPFLAGS'
14193 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14194 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14195 cross_compiling=$ac_cv_prog_cxx_cross
14197 cat > conftest.$ac_ext <<EOF
14198 #line 14199 "configure"
14199 #include "confdefs.h"
14200 #include <math.h>
14201 int main() {
14202 `for x in _acosl _asinl _atanl \
14203 _cosl _sinl _tanl \
14204 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
14205 ; return 0; }
14207 if { (eval echo configure:14208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14208 rm -rf conftest*
14209 glibcpp_cv_func__long_double_trig_use=yes
14210 else
14211 echo "configure: failed program was:" >&5
14212 cat conftest.$ac_ext >&5
14213 rm -rf conftest*
14214 glibcpp_cv_func__long_double_trig_use=no
14216 rm -f conftest*
14217 ac_ext=c
14218 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14219 ac_cpp='$CPP $CPPFLAGS'
14220 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14221 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14222 cross_compiling=$ac_cv_prog_cc_cross
14226 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
14227 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
14228 for ac_func in _acosl _asinl _atanl \
14229 _cosl _sinl _tanl \
14230 _coshl _sinhl _tanhl
14232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14233 echo "configure:14234: checking for $ac_func" >&5
14234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14235 echo $ac_n "(cached) $ac_c" 1>&6
14236 else
14237 cat > conftest.$ac_ext <<EOF
14238 #line 14239 "configure"
14239 #include "confdefs.h"
14240 /* System header to define __stub macros and hopefully few prototypes,
14241 which can conflict with char $ac_func(); below. */
14242 #include <assert.h>
14243 /* Override any gcc2 internal prototype to avoid an error. */
14244 /* We use char because int might match the return type of a gcc2
14245 builtin and then its argument prototype would still apply. */
14246 char $ac_func();
14248 int main() {
14250 /* The GNU C library defines this for functions which it implements
14251 to always fail with ENOSYS. Some functions are actually named
14252 something starting with __ and the normal name is an alias. */
14253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14254 choke me
14255 #else
14256 $ac_func();
14257 #endif
14259 ; return 0; }
14261 if { (eval echo configure:14262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14262 rm -rf conftest*
14263 eval "ac_cv_func_$ac_func=yes"
14264 else
14265 echo "configure: failed program was:" >&5
14266 cat conftest.$ac_ext >&5
14267 rm -rf conftest*
14268 eval "ac_cv_func_$ac_func=no"
14270 rm -f conftest*
14273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14274 echo "$ac_t""yes" 1>&6
14275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14276 cat >> confdefs.h <<EOF
14277 #define $ac_tr_func 1
14280 else
14281 echo "$ac_t""no" 1>&6
14283 done
14288 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
14289 echo "configure:14290: checking for _long double round functions" >&5
14290 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
14291 echo $ac_n "(cached) $ac_c" 1>&6
14292 else
14295 ac_ext=C
14296 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14297 ac_cpp='$CXXCPP $CPPFLAGS'
14298 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14299 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14300 cross_compiling=$ac_cv_prog_cxx_cross
14302 cat > conftest.$ac_ext <<EOF
14303 #line 14304 "configure"
14304 #include "confdefs.h"
14305 #include <math.h>
14306 int main() {
14307 `for x in _ceill _floorl; do echo "$x (0);"; done`
14308 ; return 0; }
14310 if { (eval echo configure:14311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14311 rm -rf conftest*
14312 glibcpp_cv_func__long_double_round_use=yes
14313 else
14314 echo "configure: failed program was:" >&5
14315 cat conftest.$ac_ext >&5
14316 rm -rf conftest*
14317 glibcpp_cv_func__long_double_round_use=no
14319 rm -f conftest*
14320 ac_ext=c
14321 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14322 ac_cpp='$CPP $CPPFLAGS'
14323 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14324 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14325 cross_compiling=$ac_cv_prog_cc_cross
14329 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
14330 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
14331 for ac_func in _ceill _floorl
14333 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14334 echo "configure:14335: checking for $ac_func" >&5
14335 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14336 echo $ac_n "(cached) $ac_c" 1>&6
14337 else
14338 cat > conftest.$ac_ext <<EOF
14339 #line 14340 "configure"
14340 #include "confdefs.h"
14341 /* System header to define __stub macros and hopefully few prototypes,
14342 which can conflict with char $ac_func(); below. */
14343 #include <assert.h>
14344 /* Override any gcc2 internal prototype to avoid an error. */
14345 /* We use char because int might match the return type of a gcc2
14346 builtin and then its argument prototype would still apply. */
14347 char $ac_func();
14349 int main() {
14351 /* The GNU C library defines this for functions which it implements
14352 to always fail with ENOSYS. Some functions are actually named
14353 something starting with __ and the normal name is an alias. */
14354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14355 choke me
14356 #else
14357 $ac_func();
14358 #endif
14360 ; return 0; }
14362 if { (eval echo configure:14363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14363 rm -rf conftest*
14364 eval "ac_cv_func_$ac_func=yes"
14365 else
14366 echo "configure: failed program was:" >&5
14367 cat conftest.$ac_ext >&5
14368 rm -rf conftest*
14369 eval "ac_cv_func_$ac_func=no"
14371 rm -f conftest*
14374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14375 echo "$ac_t""yes" 1>&6
14376 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14377 cat >> confdefs.h <<EOF
14378 #define $ac_tr_func 1
14381 else
14382 echo "$ac_t""no" 1>&6
14384 done
14389 LIBS="$ac_save_LIBS"
14390 CXXFLAGS="$ac_save_CXXFLAGS"
14393 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
14394 echo "configure:14395: checking for main in -lm" >&5
14395 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
14396 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14397 echo $ac_n "(cached) $ac_c" 1>&6
14398 else
14399 ac_save_LIBS="$LIBS"
14400 LIBS="-lm $LIBS"
14401 cat > conftest.$ac_ext <<EOF
14402 #line 14403 "configure"
14403 #include "confdefs.h"
14405 int main() {
14406 main()
14407 ; return 0; }
14409 if { (eval echo configure:14410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14410 rm -rf conftest*
14411 eval "ac_cv_lib_$ac_lib_var=yes"
14412 else
14413 echo "configure: failed program was:" >&5
14414 cat conftest.$ac_ext >&5
14415 rm -rf conftest*
14416 eval "ac_cv_lib_$ac_lib_var=no"
14418 rm -f conftest*
14419 LIBS="$ac_save_LIBS"
14422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14423 echo "$ac_t""yes" 1>&6
14424 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14425 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14426 cat >> confdefs.h <<EOF
14427 #define $ac_tr_lib 1
14430 LIBS="-lm $LIBS"
14432 else
14433 echo "$ac_t""no" 1>&6
14436 for ac_func in nan hypot hypotf atan2f expf copysignf
14438 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14439 echo "configure:14440: checking for $ac_func" >&5
14440 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14441 echo $ac_n "(cached) $ac_c" 1>&6
14442 else
14443 cat > conftest.$ac_ext <<EOF
14444 #line 14445 "configure"
14445 #include "confdefs.h"
14446 /* System header to define __stub macros and hopefully few prototypes,
14447 which can conflict with char $ac_func(); below. */
14448 #include <assert.h>
14449 /* Override any gcc2 internal prototype to avoid an error. */
14450 /* We use char because int might match the return type of a gcc2
14451 builtin and then its argument prototype would still apply. */
14452 char $ac_func();
14454 int main() {
14456 /* The GNU C library defines this for functions which it implements
14457 to always fail with ENOSYS. Some functions are actually named
14458 something starting with __ and the normal name is an alias. */
14459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14460 choke me
14461 #else
14462 $ac_func();
14463 #endif
14465 ; return 0; }
14467 if { (eval echo configure:14468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14468 rm -rf conftest*
14469 eval "ac_cv_func_$ac_func=yes"
14470 else
14471 echo "configure: failed program was:" >&5
14472 cat conftest.$ac_ext >&5
14473 rm -rf conftest*
14474 eval "ac_cv_func_$ac_func=no"
14476 rm -f conftest*
14479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14480 echo "$ac_t""yes" 1>&6
14481 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14482 cat >> confdefs.h <<EOF
14483 #define $ac_tr_func 1
14486 else
14487 echo "$ac_t""no" 1>&6
14488 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
14490 done
14494 USE_COMPLEX_LONG_DOUBLE=no
14495 if test x$ac_cv_func_atan2l = x"yes" \
14496 && test x$ac_cv_func_copysignl = x"yes"; then
14497 USE_COMPLEX_LONG_DOUBLE=yes
14498 for ac_func in hypotl signbitl
14500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14501 echo "configure:14502: checking for $ac_func" >&5
14502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14503 echo $ac_n "(cached) $ac_c" 1>&6
14504 else
14505 cat > conftest.$ac_ext <<EOF
14506 #line 14507 "configure"
14507 #include "confdefs.h"
14508 /* System header to define __stub macros and hopefully few prototypes,
14509 which can conflict with char $ac_func(); below. */
14510 #include <assert.h>
14511 /* Override any gcc2 internal prototype to avoid an error. */
14512 /* We use char because int might match the return type of a gcc2
14513 builtin and then its argument prototype would still apply. */
14514 char $ac_func();
14516 int main() {
14518 /* The GNU C library defines this for functions which it implements
14519 to always fail with ENOSYS. Some functions are actually named
14520 something starting with __ and the normal name is an alias. */
14521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14522 choke me
14523 #else
14524 $ac_func();
14525 #endif
14527 ; return 0; }
14529 if { (eval echo configure:14530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14530 rm -rf conftest*
14531 eval "ac_cv_func_$ac_func=yes"
14532 else
14533 echo "configure: failed program was:" >&5
14534 cat conftest.$ac_ext >&5
14535 rm -rf conftest*
14536 eval "ac_cv_func_$ac_func=no"
14538 rm -f conftest*
14541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14542 echo "$ac_t""yes" 1>&6
14543 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14544 cat >> confdefs.h <<EOF
14545 #define $ac_tr_func 1
14548 else
14549 echo "$ac_t""no" 1>&6
14550 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
14552 done
14562 echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
14563 echo "configure:14564: checking for GNU C++ __complex__ support" >&5
14564 if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
14565 echo $ac_n "(cached) $ac_c" 1>&6
14566 else
14569 ac_ext=C
14570 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14571 ac_cpp='$CXXCPP $CPPFLAGS'
14572 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14573 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14574 cross_compiling=$ac_cv_prog_cxx_cross
14576 cat > conftest.$ac_ext <<EOF
14577 #line 14578 "configure"
14578 #include "confdefs.h"
14579 struct dcomplex { __complex__ double x; }; \
14580 dcomplex f(const dcomplex& x) { return dcomplex(x); }
14581 int main() {
14583 dcomplex x; f(x);
14584 ; return 0; }
14586 if { (eval echo configure:14587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14587 rm -rf conftest*
14588 glibcpp_cv_complex=ok
14589 else
14590 echo "configure: failed program was:" >&5
14591 cat conftest.$ac_ext >&5
14592 rm -rf conftest*
14593 glibcpp_cv_complex=buggy
14596 rm -f conftest*
14597 ac_ext=c
14598 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14599 ac_cpp='$CPP $CPPFLAGS'
14600 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14601 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14602 cross_compiling=$ac_cv_prog_cc_cross
14607 echo "$ac_t""$glibcpp_cv_complex" 1>&6
14608 if test $glibcpp_cv_complex = buggy; then
14609 cat >> confdefs.h <<\EOF
14610 #define _GLIBCPP_BUGGY_COMPLEX 1
14615 echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
14616 echo "configure:14617: checking for GNU C++ __complex__ float support" >&5
14617 if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
14618 echo $ac_n "(cached) $ac_c" 1>&6
14619 else
14622 ac_ext=C
14623 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14624 ac_cpp='$CXXCPP $CPPFLAGS'
14625 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14626 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14627 cross_compiling=$ac_cv_prog_cxx_cross
14629 rm -f conftest.h
14630 cat > conftest.h <<EOB
14632 // Check for buggy __complex__ that causes ICE in most versions of egcs
14633 // and gcc-2.95.x on certain platforms (eg., x86-win32).
14635 // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
14636 // more info on the bug itself.
14638 struct
14639 float_complex
14641 __complex__ float m_value;
14642 float_complex (float = 0.0f, float = 0.0f);
14643 float_complex (__complex__ float val) : m_value (val) {}
14644 float_complex foo (const float_complex &val)
14645 { return float_complex (~val.m_value); }
14648 cat > conftest.$ac_ext <<EOF
14649 #line 14650 "configure"
14650 #include "confdefs.h"
14651 #include "conftest.h"
14652 int main() {
14654 ; return 0; }
14656 if { (eval echo configure:14657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14657 rm -rf conftest*
14658 glibcpp_cv_float_complex=ok
14659 else
14660 echo "configure: failed program was:" >&5
14661 cat conftest.$ac_ext >&5
14662 rm -rf conftest*
14663 glibcpp_cv_float_complex=buggy
14666 rm -f conftest*
14667 ac_ext=c
14668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14669 ac_cpp='$CPP $CPPFLAGS'
14670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14672 cross_compiling=$ac_cv_prog_cc_cross
14677 echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
14678 if test $glibcpp_cv_float_complex = buggy; then
14679 cat >> confdefs.h <<\EOF
14680 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
14687 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
14688 echo "configure:14689: checking for mbstate_t" >&5
14689 cat > conftest.$ac_ext <<EOF
14690 #line 14691 "configure"
14691 #include "confdefs.h"
14692 #include <wchar.h>
14693 int main() {
14694 mbstate_t teststate;
14695 ; return 0; }
14697 if { (eval echo configure:14698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14698 rm -rf conftest*
14699 have_mbstate_t=yes
14700 else
14701 echo "configure: failed program was:" >&5
14702 cat conftest.$ac_ext >&5
14703 rm -rf conftest*
14704 have_mbstate_t=no
14706 rm -f conftest*
14707 echo "$ac_t""$have_mbstate_t" 1>&6
14708 if test x"$have_mbstate_t" = xyes; then
14709 cat >> confdefs.h <<\EOF
14710 #define HAVE_MBSTATE_T 1
14715 for ac_hdr in wchar.h
14717 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14718 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14719 echo "configure:14720: checking for $ac_hdr" >&5
14720 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14721 echo $ac_n "(cached) $ac_c" 1>&6
14722 else
14723 cat > conftest.$ac_ext <<EOF
14724 #line 14725 "configure"
14725 #include "confdefs.h"
14726 #include <$ac_hdr>
14728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14729 { (eval echo configure:14730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14731 if test -z "$ac_err"; then
14732 rm -rf conftest*
14733 eval "ac_cv_header_$ac_safe=yes"
14734 else
14735 echo "$ac_err" >&5
14736 echo "configure: failed program was:" >&5
14737 cat conftest.$ac_ext >&5
14738 rm -rf conftest*
14739 eval "ac_cv_header_$ac_safe=no"
14741 rm -f conftest*
14743 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14744 echo "$ac_t""yes" 1>&6
14745 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14746 cat >> confdefs.h <<EOF
14747 #define $ac_tr_hdr 1
14749 ac_has_wchar_h=yes
14750 else
14751 echo "$ac_t""no" 1>&6
14752 ac_has_wchar_h=no
14754 done
14756 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
14757 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
14758 echo "configure:14759: checking for wctype.h" >&5
14759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14760 echo $ac_n "(cached) $ac_c" 1>&6
14761 else
14762 cat > conftest.$ac_ext <<EOF
14763 #line 14764 "configure"
14764 #include "confdefs.h"
14765 #include <wctype.h>
14767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14768 { (eval echo configure:14769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14770 if test -z "$ac_err"; then
14771 rm -rf conftest*
14772 eval "ac_cv_header_$ac_safe=yes"
14773 else
14774 echo "$ac_err" >&5
14775 echo "configure: failed program was:" >&5
14776 cat conftest.$ac_ext >&5
14777 rm -rf conftest*
14778 eval "ac_cv_header_$ac_safe=no"
14780 rm -f conftest*
14782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14783 echo "$ac_t""yes" 1>&6
14784 ac_has_wctype_h=yes
14785 else
14786 echo "$ac_t""no" 1>&6
14787 ac_has_wctype_h=no
14791 if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
14792 && test x"$enable_c_mbchar" != xno; then
14794 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
14795 echo "configure:14796: checking for WCHAR_MIN and WCHAR_MAX" >&5
14796 cat > conftest.$ac_ext <<EOF
14797 #line 14798 "configure"
14798 #include "confdefs.h"
14799 #include <wchar.h>
14800 int main() {
14801 int i = WCHAR_MIN; int j = WCHAR_MAX;
14802 ; return 0; }
14804 if { (eval echo configure:14805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14805 rm -rf conftest*
14806 has_wchar_minmax=yes
14807 else
14808 echo "configure: failed program was:" >&5
14809 cat conftest.$ac_ext >&5
14810 rm -rf conftest*
14811 has_wchar_minmax=no
14813 rm -f conftest*
14814 echo "$ac_t""$has_wchar_minmax" 1>&6
14816 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
14817 echo "configure:14818: checking for WEOF" >&5
14818 cat > conftest.$ac_ext <<EOF
14819 #line 14820 "configure"
14820 #include "confdefs.h"
14822 #include <wchar.h>
14823 #include <stddef.h>
14824 int main() {
14825 wint_t i = WEOF;
14826 ; return 0; }
14828 if { (eval echo configure:14829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14829 rm -rf conftest*
14830 has_weof=yes
14831 else
14832 echo "configure: failed program was:" >&5
14833 cat conftest.$ac_ext >&5
14834 rm -rf conftest*
14835 has_weof=no
14837 rm -f conftest*
14838 echo "$ac_t""$has_weof" 1>&6
14840 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
14841 wcsrtombs mbsrtowcs
14843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14844 echo "configure:14845: checking for $ac_func" >&5
14845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14846 echo $ac_n "(cached) $ac_c" 1>&6
14847 else
14848 cat > conftest.$ac_ext <<EOF
14849 #line 14850 "configure"
14850 #include "confdefs.h"
14851 /* System header to define __stub macros and hopefully few prototypes,
14852 which can conflict with char $ac_func(); below. */
14853 #include <assert.h>
14854 /* Override any gcc2 internal prototype to avoid an error. */
14855 /* We use char because int might match the return type of a gcc2
14856 builtin and then its argument prototype would still apply. */
14857 char $ac_func();
14859 int main() {
14861 /* The GNU C library defines this for functions which it implements
14862 to always fail with ENOSYS. Some functions are actually named
14863 something starting with __ and the normal name is an alias. */
14864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14865 choke me
14866 #else
14867 $ac_func();
14868 #endif
14870 ; return 0; }
14872 if { (eval echo configure:14873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14873 rm -rf conftest*
14874 eval "ac_cv_func_$ac_func=yes"
14875 else
14876 echo "configure: failed program was:" >&5
14877 cat conftest.$ac_ext >&5
14878 rm -rf conftest*
14879 eval "ac_cv_func_$ac_func=no"
14881 rm -f conftest*
14884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14885 echo "$ac_t""yes" 1>&6
14886 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14887 cat >> confdefs.h <<EOF
14888 #define $ac_tr_func 1
14890 ac_wfuncs=yes
14891 else
14892 echo "$ac_t""no" 1>&6
14893 ac_wfuncs=no
14895 done
14898 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
14899 echo "configure:14900: checking for ISO C99 wchar_t support" >&5
14900 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
14901 && test x"$ac_wfuncs" = xyes; then
14902 ac_isoC99_wchar_t=yes
14903 else
14904 ac_isoC99_wchar_t=no
14906 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
14908 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
14909 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
14910 echo "configure:14911: checking for iconv.h" >&5
14911 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14912 echo $ac_n "(cached) $ac_c" 1>&6
14913 else
14914 cat > conftest.$ac_ext <<EOF
14915 #line 14916 "configure"
14916 #include "confdefs.h"
14917 #include <iconv.h>
14919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14920 { (eval echo configure:14921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14922 if test -z "$ac_err"; then
14923 rm -rf conftest*
14924 eval "ac_cv_header_$ac_safe=yes"
14925 else
14926 echo "$ac_err" >&5
14927 echo "configure: failed program was:" >&5
14928 cat conftest.$ac_ext >&5
14929 rm -rf conftest*
14930 eval "ac_cv_header_$ac_safe=no"
14932 rm -f conftest*
14934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14935 echo "$ac_t""yes" 1>&6
14936 ac_has_iconv_h=yes
14937 else
14938 echo "$ac_t""no" 1>&6
14939 ac_has_iconv_h=no
14942 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
14943 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
14944 echo "configure:14945: checking for langinfo.h" >&5
14945 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14946 echo $ac_n "(cached) $ac_c" 1>&6
14947 else
14948 cat > conftest.$ac_ext <<EOF
14949 #line 14950 "configure"
14950 #include "confdefs.h"
14951 #include <langinfo.h>
14953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14954 { (eval echo configure:14955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14956 if test -z "$ac_err"; then
14957 rm -rf conftest*
14958 eval "ac_cv_header_$ac_safe=yes"
14959 else
14960 echo "$ac_err" >&5
14961 echo "configure: failed program was:" >&5
14962 cat conftest.$ac_ext >&5
14963 rm -rf conftest*
14964 eval "ac_cv_header_$ac_safe=no"
14966 rm -f conftest*
14968 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14969 echo "$ac_t""yes" 1>&6
14970 ac_has_langinfo_h=yes
14971 else
14972 echo "$ac_t""no" 1>&6
14973 ac_has_langinfo_h=no
14977 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
14978 echo "configure:14979: checking for iconv in -liconv" >&5
14979 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
14980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14981 echo $ac_n "(cached) $ac_c" 1>&6
14982 else
14983 ac_save_LIBS="$LIBS"
14984 LIBS="-liconv $LIBS"
14985 cat > conftest.$ac_ext <<EOF
14986 #line 14987 "configure"
14987 #include "confdefs.h"
14988 /* Override any gcc2 internal prototype to avoid an error. */
14989 /* We use char because int might match the return type of a gcc2
14990 builtin and then its argument prototype would still apply. */
14991 char iconv();
14993 int main() {
14994 iconv()
14995 ; return 0; }
14997 if { (eval echo configure:14998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14998 rm -rf conftest*
14999 eval "ac_cv_lib_$ac_lib_var=yes"
15000 else
15001 echo "configure: failed program was:" >&5
15002 cat conftest.$ac_ext >&5
15003 rm -rf conftest*
15004 eval "ac_cv_lib_$ac_lib_var=no"
15006 rm -f conftest*
15007 LIBS="$ac_save_LIBS"
15010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15011 echo "$ac_t""yes" 1>&6
15012 libiconv="-liconv"
15013 else
15014 echo "$ac_t""no" 1>&6
15017 ac_save_LIBS="$LIBS"
15018 LIBS="$LIBS $libiconv"
15020 for ac_func in iconv_open iconv_close iconv nl_langinfo
15022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15023 echo "configure:15024: checking for $ac_func" >&5
15024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
15031 which can conflict with char $ac_func(); below. */
15032 #include <assert.h>
15033 /* Override any gcc2 internal prototype to avoid an error. */
15034 /* We use char because int might match the return type of a gcc2
15035 builtin and then its argument prototype would still apply. */
15036 char $ac_func();
15038 int main() {
15040 /* The GNU C library defines this for functions which it implements
15041 to always fail with ENOSYS. Some functions are actually named
15042 something starting with __ and the normal name is an alias. */
15043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15044 choke me
15045 #else
15046 $ac_func();
15047 #endif
15049 ; return 0; }
15051 if { (eval echo configure:15052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15052 rm -rf conftest*
15053 eval "ac_cv_func_$ac_func=yes"
15054 else
15055 echo "configure: failed program was:" >&5
15056 cat conftest.$ac_ext >&5
15057 rm -rf conftest*
15058 eval "ac_cv_func_$ac_func=no"
15060 rm -f conftest*
15063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15064 echo "$ac_t""yes" 1>&6
15065 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15066 cat >> confdefs.h <<EOF
15067 #define $ac_tr_func 1
15070 ac_XPG2funcs=yes
15071 else
15072 echo "$ac_t""no" 1>&6
15073 ac_XPG2funcs=no
15075 done
15078 LIBS="$ac_save_LIBS"
15080 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
15081 echo "configure:15082: checking for XPG2 wchar_t support" >&5
15082 if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
15083 && test x"$ac_XPG2funcs" = xyes; then
15084 ac_XPG2_wchar_t=yes
15085 else
15086 ac_XPG2_wchar_t=no
15088 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
15090 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
15091 echo "configure:15092: checking for enabled wchar_t specializations" >&5
15092 if test x"$ac_isoC99_wchar_t" = xyes \
15093 && test x"$ac_XPG2_wchar_t" = xyes; then
15094 libinst_wstring_la="libinst-wstring.la"
15095 cat >> confdefs.h <<\EOF
15096 #define _GLIBCPP_USE_WCHAR_T 1
15099 echo "$ac_t"""yes"" 1>&6
15100 else
15101 libinst_wstring_la=""
15102 echo "$ac_t"""no"" 1>&6
15106 else
15107 echo "configure: warning: wchar_t support disabled." 1>&2
15111 ac_test_CXXFLAGS="${CXXFLAGS+set}"
15112 ac_save_CXXFLAGS="$CXXFLAGS"
15113 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
15115 for ac_func in strtof
15117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15118 echo "configure:15119: checking for $ac_func" >&5
15119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15120 echo $ac_n "(cached) $ac_c" 1>&6
15121 else
15122 cat > conftest.$ac_ext <<EOF
15123 #line 15124 "configure"
15124 #include "confdefs.h"
15125 /* System header to define __stub macros and hopefully few prototypes,
15126 which can conflict with char $ac_func(); below. */
15127 #include <assert.h>
15128 /* Override any gcc2 internal prototype to avoid an error. */
15129 /* We use char because int might match the return type of a gcc2
15130 builtin and then its argument prototype would still apply. */
15131 char $ac_func();
15133 int main() {
15135 /* The GNU C library defines this for functions which it implements
15136 to always fail with ENOSYS. Some functions are actually named
15137 something starting with __ and the normal name is an alias. */
15138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15139 choke me
15140 #else
15141 $ac_func();
15142 #endif
15144 ; return 0; }
15146 if { (eval echo configure:15147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15147 rm -rf conftest*
15148 eval "ac_cv_func_$ac_func=yes"
15149 else
15150 echo "configure: failed program was:" >&5
15151 cat conftest.$ac_ext >&5
15152 rm -rf conftest*
15153 eval "ac_cv_func_$ac_func=no"
15155 rm -f conftest*
15158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15159 echo "$ac_t""yes" 1>&6
15160 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15161 cat >> confdefs.h <<EOF
15162 #define $ac_tr_func 1
15165 else
15166 echo "$ac_t""no" 1>&6
15168 done
15171 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
15172 echo "configure:15173: checking for strtold declaration" >&5
15173 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
15174 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
15175 echo $ac_n "(cached) $ac_c" 1>&6
15176 else
15179 ac_ext=C
15180 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15181 ac_cpp='$CXXCPP $CPPFLAGS'
15182 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15183 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15184 cross_compiling=$ac_cv_prog_cxx_cross
15186 cat > conftest.$ac_ext <<EOF
15187 #line 15188 "configure"
15188 #include "confdefs.h"
15189 #include <stdlib.h>
15190 int main() {
15191 strtold(0, 0);
15192 ; return 0; }
15194 if { (eval echo configure:15195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15195 rm -rf conftest*
15196 glibcpp_cv_func_strtold_use=yes
15197 else
15198 echo "configure: failed program was:" >&5
15199 cat conftest.$ac_ext >&5
15200 rm -rf conftest*
15201 glibcpp_cv_func_strtold_use=no
15203 rm -f conftest*
15204 ac_ext=c
15205 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15206 ac_cpp='$CPP $CPPFLAGS'
15207 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15208 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15209 cross_compiling=$ac_cv_prog_cc_cross
15215 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
15216 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
15217 for ac_func in strtold
15219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15220 echo "configure:15221: checking for $ac_func" >&5
15221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15222 echo $ac_n "(cached) $ac_c" 1>&6
15223 else
15224 cat > conftest.$ac_ext <<EOF
15225 #line 15226 "configure"
15226 #include "confdefs.h"
15227 /* System header to define __stub macros and hopefully few prototypes,
15228 which can conflict with char $ac_func(); below. */
15229 #include <assert.h>
15230 /* Override any gcc2 internal prototype to avoid an error. */
15231 /* We use char because int might match the return type of a gcc2
15232 builtin and then its argument prototype would still apply. */
15233 char $ac_func();
15235 int main() {
15237 /* The GNU C library defines this for functions which it implements
15238 to always fail with ENOSYS. Some functions are actually named
15239 something starting with __ and the normal name is an alias. */
15240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15241 choke me
15242 #else
15243 $ac_func();
15244 #endif
15246 ; return 0; }
15248 if { (eval echo configure:15249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15249 rm -rf conftest*
15250 eval "ac_cv_func_$ac_func=yes"
15251 else
15252 echo "configure: failed program was:" >&5
15253 cat conftest.$ac_ext >&5
15254 rm -rf conftest*
15255 eval "ac_cv_func_$ac_func=no"
15257 rm -f conftest*
15260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15261 echo "$ac_t""yes" 1>&6
15262 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15263 cat >> confdefs.h <<EOF
15264 #define $ac_tr_func 1
15267 else
15268 echo "$ac_t""no" 1>&6
15270 done
15275 CXXFLAGS="$ac_save_CXXFLAGS"
15278 cat > conftest.$ac_ext <<EOF
15279 #line 15280 "configure"
15280 #include "confdefs.h"
15282 #include <setjmp.h>
15284 int main() {
15285 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
15286 ; return 0; }
15288 if { (eval echo configure:15289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15289 rm -rf conftest*
15290 cat >> confdefs.h <<\EOF
15291 #define HAVE_SIGSETJMP 1
15294 else
15295 echo "configure: failed program was:" >&5
15296 cat conftest.$ac_ext >&5
15298 rm -f conftest*
15300 for ac_hdr in unistd.h
15302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15304 echo "configure:15305: checking for $ac_hdr" >&5
15305 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15306 echo $ac_n "(cached) $ac_c" 1>&6
15307 else
15308 cat > conftest.$ac_ext <<EOF
15309 #line 15310 "configure"
15310 #include "confdefs.h"
15311 #include <$ac_hdr>
15313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15314 { (eval echo configure:15315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15316 if test -z "$ac_err"; then
15317 rm -rf conftest*
15318 eval "ac_cv_header_$ac_safe=yes"
15319 else
15320 echo "$ac_err" >&5
15321 echo "configure: failed program was:" >&5
15322 cat conftest.$ac_ext >&5
15323 rm -rf conftest*
15324 eval "ac_cv_header_$ac_safe=no"
15326 rm -f conftest*
15328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15329 echo "$ac_t""yes" 1>&6
15330 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15331 cat >> confdefs.h <<EOF
15332 #define $ac_tr_hdr 1
15335 else
15336 echo "$ac_t""no" 1>&6
15338 done
15340 for ac_func in getpagesize
15342 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15343 echo "configure:15344: checking for $ac_func" >&5
15344 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15345 echo $ac_n "(cached) $ac_c" 1>&6
15346 else
15347 cat > conftest.$ac_ext <<EOF
15348 #line 15349 "configure"
15349 #include "confdefs.h"
15350 /* System header to define __stub macros and hopefully few prototypes,
15351 which can conflict with char $ac_func(); below. */
15352 #include <assert.h>
15353 /* Override any gcc2 internal prototype to avoid an error. */
15354 /* We use char because int might match the return type of a gcc2
15355 builtin and then its argument prototype would still apply. */
15356 char $ac_func();
15358 int main() {
15360 /* The GNU C library defines this for functions which it implements
15361 to always fail with ENOSYS. Some functions are actually named
15362 something starting with __ and the normal name is an alias. */
15363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15364 choke me
15365 #else
15366 $ac_func();
15367 #endif
15369 ; return 0; }
15371 if { (eval echo configure:15372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15372 rm -rf conftest*
15373 eval "ac_cv_func_$ac_func=yes"
15374 else
15375 echo "configure: failed program was:" >&5
15376 cat conftest.$ac_ext >&5
15377 rm -rf conftest*
15378 eval "ac_cv_func_$ac_func=no"
15380 rm -f conftest*
15383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15384 echo "$ac_t""yes" 1>&6
15385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15386 cat >> confdefs.h <<EOF
15387 #define $ac_tr_func 1
15390 else
15391 echo "$ac_t""no" 1>&6
15393 done
15395 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
15396 echo "configure:15397: checking for working mmap" >&5
15397 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
15398 echo $ac_n "(cached) $ac_c" 1>&6
15399 else
15400 if test "$cross_compiling" = yes; then
15401 ac_cv_func_mmap_fixed_mapped=no
15402 else
15403 cat > conftest.$ac_ext <<EOF
15404 #line 15405 "configure"
15405 #include "confdefs.h"
15407 /* Thanks to Mike Haertel and Jim Avera for this test.
15408 Here is a matrix of mmap possibilities:
15409 mmap private not fixed
15410 mmap private fixed at somewhere currently unmapped
15411 mmap private fixed at somewhere already mapped
15412 mmap shared not fixed
15413 mmap shared fixed at somewhere currently unmapped
15414 mmap shared fixed at somewhere already mapped
15415 For private mappings, we should verify that changes cannot be read()
15416 back from the file, nor mmap's back from the file at a different
15417 address. (There have been systems where private was not correctly
15418 implemented like the infamous i386 svr4.0, and systems where the
15419 VM page cache was not coherent with the filesystem buffer cache
15420 like early versions of FreeBSD and possibly contemporary NetBSD.)
15421 For shared mappings, we should conversely verify that changes get
15422 propogated back to all the places they're supposed to be.
15424 Grep wants private fixed already mapped.
15425 The main things grep needs to know about mmap are:
15426 * does it exist and is it safe to write into the mmap'd area
15427 * how to use it (BSD variants) */
15428 #include <sys/types.h>
15429 #include <fcntl.h>
15430 #include <sys/mman.h>
15432 /* This mess was copied from the GNU getpagesize.h. */
15433 #ifndef HAVE_GETPAGESIZE
15434 # ifdef HAVE_UNISTD_H
15435 # include <unistd.h>
15436 # endif
15438 /* Assume that all systems that can run configure have sys/param.h. */
15439 # ifndef HAVE_SYS_PARAM_H
15440 # define HAVE_SYS_PARAM_H 1
15441 # endif
15443 # ifdef _SC_PAGESIZE
15444 # define getpagesize() sysconf(_SC_PAGESIZE)
15445 # else /* no _SC_PAGESIZE */
15446 # ifdef HAVE_SYS_PARAM_H
15447 # include <sys/param.h>
15448 # ifdef EXEC_PAGESIZE
15449 # define getpagesize() EXEC_PAGESIZE
15450 # else /* no EXEC_PAGESIZE */
15451 # ifdef NBPG
15452 # define getpagesize() NBPG * CLSIZE
15453 # ifndef CLSIZE
15454 # define CLSIZE 1
15455 # endif /* no CLSIZE */
15456 # else /* no NBPG */
15457 # ifdef NBPC
15458 # define getpagesize() NBPC
15459 # else /* no NBPC */
15460 # ifdef PAGESIZE
15461 # define getpagesize() PAGESIZE
15462 # endif /* PAGESIZE */
15463 # endif /* no NBPC */
15464 # endif /* no NBPG */
15465 # endif /* no EXEC_PAGESIZE */
15466 # else /* no HAVE_SYS_PARAM_H */
15467 # define getpagesize() 8192 /* punt totally */
15468 # endif /* no HAVE_SYS_PARAM_H */
15469 # endif /* no _SC_PAGESIZE */
15471 #endif /* no HAVE_GETPAGESIZE */
15473 #ifdef __cplusplus
15474 extern "C" { void *malloc(unsigned); }
15475 #else
15476 char *malloc();
15477 #endif
15480 main()
15482 char *data, *data2, *data3;
15483 int i, pagesize;
15484 int fd;
15486 pagesize = getpagesize();
15489 * First, make a file with some known garbage in it.
15491 data = malloc(pagesize);
15492 if (!data)
15493 exit(1);
15494 for (i = 0; i < pagesize; ++i)
15495 *(data + i) = rand();
15496 umask(0);
15497 fd = creat("conftestmmap", 0600);
15498 if (fd < 0)
15499 exit(1);
15500 if (write(fd, data, pagesize) != pagesize)
15501 exit(1);
15502 close(fd);
15505 * Next, try to mmap the file at a fixed address which
15506 * already has something else allocated at it. If we can,
15507 * also make sure that we see the same garbage.
15509 fd = open("conftestmmap", O_RDWR);
15510 if (fd < 0)
15511 exit(1);
15512 data2 = malloc(2 * pagesize);
15513 if (!data2)
15514 exit(1);
15515 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
15516 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
15517 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15518 exit(1);
15519 for (i = 0; i < pagesize; ++i)
15520 if (*(data + i) != *(data2 + i))
15521 exit(1);
15524 * Finally, make sure that changes to the mapped area
15525 * do not percolate back to the file as seen by read().
15526 * (This is a bug on some variants of i386 svr4.0.)
15528 for (i = 0; i < pagesize; ++i)
15529 *(data2 + i) = *(data2 + i) + 1;
15530 data3 = malloc(pagesize);
15531 if (!data3)
15532 exit(1);
15533 if (read(fd, data3, pagesize) != pagesize)
15534 exit(1);
15535 for (i = 0; i < pagesize; ++i)
15536 if (*(data + i) != *(data3 + i))
15537 exit(1);
15538 close(fd);
15539 unlink("conftestmmap");
15540 exit(0);
15544 if { (eval echo configure:15545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15545 then
15546 ac_cv_func_mmap_fixed_mapped=yes
15547 else
15548 echo "configure: failed program was:" >&5
15549 cat conftest.$ac_ext >&5
15550 rm -fr conftest*
15551 ac_cv_func_mmap_fixed_mapped=no
15553 rm -fr conftest*
15558 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
15559 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15560 cat >> confdefs.h <<\EOF
15561 #define HAVE_MMAP 1
15568 # Now that ctype is determined for all possible targets, we can do this...
15576 if test "$NULL_TARGET" = yes; then
15577 NULL_TARGET_TRUE=
15578 NULL_TARGET_FALSE='#'
15579 else
15580 NULL_TARGET_TRUE='#'
15581 NULL_TARGET_FALSE=
15585 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
15586 NATIVE_TRUE=
15587 NATIVE_FALSE='#'
15588 else
15589 NATIVE_TRUE='#'
15590 NATIVE_FALSE=
15594 if test "$CANADIAN" = yes; then
15595 CANADIAN_TRUE=
15596 CANADIAN_FALSE='#'
15597 else
15598 CANADIAN_TRUE='#'
15599 CANADIAN_FALSE=
15602 cat > confcache <<\EOF
15603 # This file is a shell script that caches the results of configure
15604 # tests run on this system so they can be shared between configure
15605 # scripts and configure runs. It is not useful on other systems.
15606 # If it contains results you don't want to keep, you may remove or edit it.
15608 # By default, configure uses ./config.cache as the cache file,
15609 # creating it if it does not exist already. You can give configure
15610 # the --cache-file=FILE option to use a different cache file; that is
15611 # what configure does when it calls configure scripts in
15612 # subdirectories, so they share the cache.
15613 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15614 # config.status only pays attention to the cache file if you give it the
15615 # --recheck option to rerun configure.
15618 # The following way of writing the cache mishandles newlines in values,
15619 # but we know of no workaround that is simple, portable, and efficient.
15620 # So, don't put newlines in cache variables' values.
15621 # Ultrix sh set writes to stderr and can't be redirected directly,
15622 # and sets the high bit in the cache file unless we assign to the vars.
15623 (set) 2>&1 |
15624 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15625 *ac_space=\ *)
15626 # `set' does not quote correctly, so add quotes (double-quote substitution
15627 # turns \\\\ into \\, and sed turns \\ into \).
15628 sed -n \
15629 -e "s/'/'\\\\''/g" \
15630 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15633 # `set' quotes correctly as required by POSIX, so do not add quotes.
15634 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15636 esac >> confcache
15637 if cmp -s $cache_file confcache; then
15639 else
15640 if test -w $cache_file; then
15641 echo "updating cache $cache_file"
15642 cat confcache > $cache_file
15643 else
15644 echo "not updating unwritable cache $cache_file"
15647 rm -f confcache
15650 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
15651 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
15652 echo "configure:15653: checking for locale.h" >&5
15653 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15654 echo $ac_n "(cached) $ac_c" 1>&6
15655 else
15656 cat > conftest.$ac_ext <<EOF
15657 #line 15658 "configure"
15658 #include "confdefs.h"
15659 #include <locale.h>
15661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15662 { (eval echo configure:15663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15664 if test -z "$ac_err"; then
15665 rm -rf conftest*
15666 eval "ac_cv_header_$ac_safe=yes"
15667 else
15668 echo "$ac_err" >&5
15669 echo "configure: failed program was:" >&5
15670 cat conftest.$ac_ext >&5
15671 rm -rf conftest*
15672 eval "ac_cv_header_$ac_safe=no"
15674 rm -f conftest*
15676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15677 echo "$ac_t""yes" 1>&6
15679 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
15680 echo "configure:15681: checking for LC_MESSAGES" >&5
15681 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
15682 echo $ac_n "(cached) $ac_c" 1>&6
15683 else
15684 cat > conftest.$ac_ext <<EOF
15685 #line 15686 "configure"
15686 #include "confdefs.h"
15687 #include <locale.h>
15688 int main() {
15689 return LC_MESSAGES
15690 ; return 0; }
15692 if { (eval echo configure:15693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15693 rm -rf conftest*
15694 ac_cv_val_LC_MESSAGES=yes
15695 else
15696 echo "configure: failed program was:" >&5
15697 cat conftest.$ac_ext >&5
15698 rm -rf conftest*
15699 ac_cv_val_LC_MESSAGES=no
15701 rm -f conftest*
15704 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
15705 if test $ac_cv_val_LC_MESSAGES = yes; then
15706 cat >> confdefs.h <<\EOF
15707 #define HAVE_LC_MESSAGES 1
15712 else
15713 echo "$ac_t""no" 1>&6
15718 if test "${multilib}" = "yes"; then
15719 multilib_arg="--enable-multilib"
15720 else
15721 multilib_arg=
15725 # Generate the various Makefiles, include files, and scripts.
15727 # Needed so that g++ can find the correct include subdir automatically.
15728 INTERFACE=v3
15730 # Export all the install information
15733 glibcpp_toolexecdir=no
15734 glibcpp_toolexeclibdir=no
15736 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
15737 echo "configure:15738: checking for interface version number" >&5
15738 libstdcxx_interface=$INTERFACE
15739 echo "$ac_t""$libstdcxx_interface" 1>&6
15741 # Process the option --with-gxx-include-dir=<path to include-files directory>
15742 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
15743 echo "configure:15744: checking for --with-gxx-include-dir" >&5
15744 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
15745 if test "${with_gxx_include_dir+set}" = set; then
15746 withval="$with_gxx_include_dir"
15747 case "${withval}" in
15748 yes)
15749 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
15750 gxx_include_dir=no
15753 gxx_include_dir=no
15756 gxx_include_dir=${withval}
15758 esac
15759 else
15760 gxx_include_dir=no
15763 echo "$ac_t""$gxx_include_dir" 1>&6
15765 # Process the option "--enable-version-specific-runtime-libs"
15766 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
15767 echo "configure:15768: checking for --enable-version-specific-runtime-libs" >&5
15768 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15769 if test "${enable_version_specific_runtime_libs+set}" = set; then
15770 enableval="$enable_version_specific_runtime_libs"
15771 version_specific_libs=yes
15772 # Need the gcc compiler version to know where to install libraries
15773 # and header files if --enable-version-specific-runtime-libs option
15774 # is selected.
15775 gcc_version_trigger=${srcdir}/../gcc/version.c
15776 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
15777 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
15778 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
15779 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
15780 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}
15782 else
15783 version_specific_libs=no
15786 echo "$ac_t""$version_specific_libs" 1>&6
15788 # Default case for install directory for include files.
15789 if test x"$version_specific_libs" = x"no" \
15790 && test x"$gxx_include_dir"=x"no"; then
15791 gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
15794 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
15795 # Install a library built with a cross compiler in tooldir, not libdir.
15796 if test x"$glibcpp_toolexecdir" = x"no"; then
15797 if test x"$with_cross_host" = x"yes"; then
15798 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
15799 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
15800 else
15801 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
15802 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
15806 echo $ac_n "checking for install location""... $ac_c" 1>&6
15807 echo "configure:15808: checking for install location" >&5
15808 echo "$ac_t""$gxx_include_dir" 1>&6
15815 # Export all the include and flag information to makefiles.
15817 # Root level of the include sources.
15818 GLIBCPP_INCLUDE_DIR='$(top_srcdir)/include'
15820 # Can either use include/c or include/c_std to grab "C" headers. This
15821 # variable is set to the include directory currently in use.
15822 # set with C_INCLUDE_DIR in GLIBCPP_ENABLE_CHEADERS
15824 # Passed down for canadian crosses.
15825 if test x"$CANADIAN" = xyes; then
15826 TOPLEVEL_INCLUDES='-I$(includedir)'
15829 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
15831 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
15833 #if GLIBCPP_NEED_LIBIO
15834 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
15835 #else
15836 #LIBIO_INCLUDES='-I$(top_srcdir)/libio'
15837 #endif
15839 #if GLIBCPP_USE_CSHADOW
15840 # CSHADOW_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR) \
15841 # -I$(top_blddir)/cshadow'
15842 #else
15843 CSTD_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR)'
15844 #endif
15846 # Now, export this to all the little Makefiles....
15855 # Optimization flags that are probably a good idea for thrill-seekers. Just
15856 # uncomment the lines below and make, everything else is ready to go...
15857 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
15858 OPTIMIZE_CXXFLAGS=
15861 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
15865 # This should be done by mkincludedir, but hack around it now.
15866 blddir=`pwd`
15867 echo "checking for $blddir/include"
15869 if test ! -d "$blddir/include"; then
15870 mkdir "$blddir/include"
15873 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
15874 # and libsupc++/Makefile.am so that multilib installs will end up
15875 # installed in the correct place. To work around this not being passed
15876 # down from config-ml.in -> top_srcdir/Makefile.am ->
15877 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
15878 trap '' 1 2 15
15879 cat > confcache <<\EOF
15880 # This file is a shell script that caches the results of configure
15881 # tests run on this system so they can be shared between configure
15882 # scripts and configure runs. It is not useful on other systems.
15883 # If it contains results you don't want to keep, you may remove or edit it.
15885 # By default, configure uses ./config.cache as the cache file,
15886 # creating it if it does not exist already. You can give configure
15887 # the --cache-file=FILE option to use a different cache file; that is
15888 # what configure does when it calls configure scripts in
15889 # subdirectories, so they share the cache.
15890 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15891 # config.status only pays attention to the cache file if you give it the
15892 # --recheck option to rerun configure.
15895 # The following way of writing the cache mishandles newlines in values,
15896 # but we know of no workaround that is simple, portable, and efficient.
15897 # So, don't put newlines in cache variables' values.
15898 # Ultrix sh set writes to stderr and can't be redirected directly,
15899 # and sets the high bit in the cache file unless we assign to the vars.
15900 (set) 2>&1 |
15901 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15902 *ac_space=\ *)
15903 # `set' does not quote correctly, so add quotes (double-quote substitution
15904 # turns \\\\ into \\, and sed turns \\ into \).
15905 sed -n \
15906 -e "s/'/'\\\\''/g" \
15907 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15910 # `set' quotes correctly as required by POSIX, so do not add quotes.
15911 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15913 esac >> confcache
15914 if cmp -s $cache_file confcache; then
15916 else
15917 if test -w $cache_file; then
15918 echo "updating cache $cache_file"
15919 cat confcache > $cache_file
15920 else
15921 echo "not updating unwritable cache $cache_file"
15924 rm -f confcache
15926 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15928 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15929 # Let make expand exec_prefix.
15930 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15932 # Any assignment to VPATH causes Sun make to only execute
15933 # the first set of double-colon rules, so remove it if not needed.
15934 # If there is a colon in the path, we need to keep it.
15935 if test "x$srcdir" = x.; then
15936 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15939 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15941 DEFS=-DHAVE_CONFIG_H
15943 # Without the "./", some shells look in PATH for config.status.
15944 : ${CONFIG_STATUS=./config.status}
15946 echo creating $CONFIG_STATUS
15947 rm -f $CONFIG_STATUS
15948 cat > $CONFIG_STATUS <<EOF
15949 #! /bin/sh
15950 # Generated automatically by configure.
15951 # Run this file to recreate the current configuration.
15952 # This directory was configured as follows,
15953 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15955 # $0 $ac_configure_args
15957 # Compiler output produced by configure, useful for debugging
15958 # configure, is in ./config.log if it exists.
15960 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15961 for ac_option
15963 case "\$ac_option" in
15964 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15965 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15966 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15967 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15968 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15969 exit 0 ;;
15970 -help | --help | --hel | --he | --h)
15971 echo "\$ac_cs_usage"; exit 0 ;;
15972 *) echo "\$ac_cs_usage"; exit 1 ;;
15973 esac
15974 done
15976 ac_given_srcdir=$srcdir
15977 ac_given_INSTALL="$INSTALL"
15979 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
15981 cat >> $CONFIG_STATUS <<EOF
15983 # Protect against being on the right side of a sed subst in config.status.
15984 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15985 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15986 $ac_vpsub
15987 $extrasub
15988 s%@SHELL@%$SHELL%g
15989 s%@CFLAGS@%$CFLAGS%g
15990 s%@CPPFLAGS@%$CPPFLAGS%g
15991 s%@CXXFLAGS@%$CXXFLAGS%g
15992 s%@FFLAGS@%$FFLAGS%g
15993 s%@DEFS@%$DEFS%g
15994 s%@LDFLAGS@%$LDFLAGS%g
15995 s%@LIBS@%$LIBS%g
15996 s%@exec_prefix@%$exec_prefix%g
15997 s%@prefix@%$prefix%g
15998 s%@program_transform_name@%$program_transform_name%g
15999 s%@bindir@%$bindir%g
16000 s%@sbindir@%$sbindir%g
16001 s%@libexecdir@%$libexecdir%g
16002 s%@datadir@%$datadir%g
16003 s%@sysconfdir@%$sysconfdir%g
16004 s%@sharedstatedir@%$sharedstatedir%g
16005 s%@localstatedir@%$localstatedir%g
16006 s%@libdir@%$libdir%g
16007 s%@includedir@%$includedir%g
16008 s%@oldincludedir@%$oldincludedir%g
16009 s%@infodir@%$infodir%g
16010 s%@mandir@%$mandir%g
16011 s%@toplevel_srcdir@%$toplevel_srcdir%g
16012 s%@host@%$host%g
16013 s%@host_alias@%$host_alias%g
16014 s%@host_cpu@%$host_cpu%g
16015 s%@host_vendor@%$host_vendor%g
16016 s%@host_os@%$host_os%g
16017 s%@target@%$target%g
16018 s%@target_alias@%$target_alias%g
16019 s%@target_cpu@%$target_cpu%g
16020 s%@target_vendor@%$target_vendor%g
16021 s%@target_os@%$target_os%g
16022 s%@build@%$build%g
16023 s%@build_alias@%$build_alias%g
16024 s%@build_cpu@%$build_cpu%g
16025 s%@build_vendor@%$build_vendor%g
16026 s%@build_os@%$build_os%g
16027 s%@glibcpp_basedir@%$glibcpp_basedir%g
16028 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16029 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16030 s%@INSTALL_DATA@%$INSTALL_DATA%g
16031 s%@PACKAGE@%$PACKAGE%g
16032 s%@VERSION@%$VERSION%g
16033 s%@ACLOCAL@%$ACLOCAL%g
16034 s%@AUTOCONF@%$AUTOCONF%g
16035 s%@AUTOMAKE@%$AUTOMAKE%g
16036 s%@AUTOHEADER@%$AUTOHEADER%g
16037 s%@MAKEINFO@%$MAKEINFO%g
16038 s%@SET_MAKE@%$SET_MAKE%g
16039 s%@CC@%$CC%g
16040 s%@CXX_libstdcxx@%$CXX_libstdcxx%g
16041 s%@CXX@%$CXX%g
16042 s%@AS@%$AS%g
16043 s%@AR@%$AR%g
16044 s%@RANLIB@%$RANLIB%g
16045 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
16046 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
16047 s%@MAINT@%$MAINT%g
16048 s%@EXEEXT@%$EXEEXT%g
16049 s%@GLIBCPP_CFLAGS@%$GLIBCPP_CFLAGS%g
16050 s%@GLIBCPP_CXXFLAGS@%$GLIBCPP_CXXFLAGS%g
16051 s%@LN_S@%$LN_S%g
16052 s%@OBJEXT@%$OBJEXT%g
16053 s%@STRIP@%$STRIP%g
16054 s%@LIBTOOL@%$LIBTOOL%g
16055 s%@CXXCPP@%$CXXCPP%g
16056 s%@enable_shared@%$enable_shared%g
16057 s%@enable_static@%$enable_static%g
16058 s%@ifGNUmake@%$ifGNUmake%g
16059 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
16060 s%@CPP@%$CPP%g
16061 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
16062 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
16063 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
16064 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
16065 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
16066 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
16067 s%@libio_la@%$libio_la%g
16068 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
16069 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
16070 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
16071 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
16072 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
16073 s%@WFMT_FLAGS@%$WFMT_FLAGS%g
16074 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
16075 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
16076 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
16077 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
16078 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
16079 s%@libinst_wstring_la@%$libinst_wstring_la%g
16080 s%@WERROR@%$WERROR%g
16081 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
16082 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
16083 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
16084 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
16085 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
16086 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
16087 s%@gxx_include_dir@%$gxx_include_dir%g
16088 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
16089 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
16090 s%@GLIBCPP_INCLUDE_DIR@%$GLIBCPP_INCLUDE_DIR%g
16091 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
16092 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
16093 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
16094 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
16095 s%@CSTD_INCLUDES@%$CSTD_INCLUDES%g
16096 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
16097 s%@WARN_FLAGS@%$WARN_FLAGS%g
16099 CEOF
16102 cat >> $CONFIG_STATUS <<\EOF
16104 # Split the substitutions into bite-sized pieces for seds with
16105 # small command number limits, like on Digital OSF/1 and HP-UX.
16106 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16107 ac_file=1 # Number of current file.
16108 ac_beg=1 # First line for current file.
16109 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16110 ac_more_lines=:
16111 ac_sed_cmds=""
16112 while $ac_more_lines; do
16113 if test $ac_beg -gt 1; then
16114 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16115 else
16116 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16118 if test ! -s conftest.s$ac_file; then
16119 ac_more_lines=false
16120 rm -f conftest.s$ac_file
16121 else
16122 if test -z "$ac_sed_cmds"; then
16123 ac_sed_cmds="sed -f conftest.s$ac_file"
16124 else
16125 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16127 ac_file=`expr $ac_file + 1`
16128 ac_beg=$ac_end
16129 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16131 done
16132 if test -z "$ac_sed_cmds"; then
16133 ac_sed_cmds=cat
16137 cat >> $CONFIG_STATUS <<EOF
16139 CONFIG_FILES=\${CONFIG_FILES-"tests_flags mkcheck Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile"}
16141 cat >> $CONFIG_STATUS <<\EOF
16142 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16143 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16144 case "$ac_file" in
16145 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16146 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16147 *) ac_file_in="${ac_file}.in" ;;
16148 esac
16150 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16152 # Remove last slash and all that follows it. Not all systems have dirname.
16153 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16154 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16155 # The file is in a subdirectory.
16156 test ! -d "$ac_dir" && mkdir "$ac_dir"
16157 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16158 # A "../" for each directory in $ac_dir_suffix.
16159 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16160 else
16161 ac_dir_suffix= ac_dots=
16164 case "$ac_given_srcdir" in
16165 .) srcdir=.
16166 if test -z "$ac_dots"; then top_srcdir=.
16167 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16168 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16169 *) # Relative path.
16170 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16171 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16172 esac
16174 case "$ac_given_INSTALL" in
16175 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16176 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16177 esac
16179 echo creating "$ac_file"
16180 rm -f "$ac_file"
16181 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16182 case "$ac_file" in
16183 *Makefile*) ac_comsub="1i\\
16184 # $configure_input" ;;
16185 *) ac_comsub= ;;
16186 esac
16188 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16189 sed -e "$ac_comsub
16190 s%@configure_input@%$configure_input%g
16191 s%@srcdir@%$srcdir%g
16192 s%@top_srcdir@%$top_srcdir%g
16193 s%@INSTALL@%$INSTALL%g
16194 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16195 fi; done
16196 rm -f conftest.s*
16198 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16199 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16201 # ac_d sets the value in "#define NAME VALUE" lines.
16202 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16203 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16204 ac_dC='\3'
16205 ac_dD='%g'
16206 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16207 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16208 ac_uB='\([ ]\)%\1#\2define\3'
16209 ac_uC=' '
16210 ac_uD='\4%g'
16211 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16212 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16213 ac_eB='$%\1#\2define\3'
16214 ac_eC=' '
16215 ac_eD='%g'
16217 if test "${CONFIG_HEADERS+set}" != set; then
16219 cat >> $CONFIG_STATUS <<EOF
16220 CONFIG_HEADERS="config.h"
16222 cat >> $CONFIG_STATUS <<\EOF
16224 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16225 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16226 case "$ac_file" in
16227 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16228 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16229 *) ac_file_in="${ac_file}.in" ;;
16230 esac
16232 echo creating $ac_file
16234 rm -f conftest.frag conftest.in conftest.out
16235 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16236 cat $ac_file_inputs > conftest.in
16240 # Transform confdefs.h into a sed script conftest.vals that substitutes
16241 # the proper values into config.h.in to produce config.h. And first:
16242 # Protect against being on the right side of a sed subst in config.status.
16243 # Protect against being in an unquoted here document in config.status.
16244 rm -f conftest.vals
16245 cat > conftest.hdr <<\EOF
16246 s/[\\&%]/\\&/g
16247 s%[\\$`]%\\&%g
16248 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16249 s%ac_d%ac_u%gp
16250 s%ac_u%ac_e%gp
16252 sed -n -f conftest.hdr confdefs.h > conftest.vals
16253 rm -f conftest.hdr
16255 # This sed command replaces #undef with comments. This is necessary, for
16256 # example, in the case of _POSIX_SOURCE, which is predefined and required
16257 # on some systems where configure will not decide to define it.
16258 cat >> conftest.vals <<\EOF
16259 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16262 # Break up conftest.vals because some shells have a limit on
16263 # the size of here documents, and old seds have small limits too.
16265 rm -f conftest.tail
16266 while :
16268 ac_lines=`grep -c . conftest.vals`
16269 # grep -c gives empty output for an empty file on some AIX systems.
16270 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16271 # Write a limited-size here document to conftest.frag.
16272 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16273 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16274 echo 'CEOF
16275 sed -f conftest.frag conftest.in > conftest.out
16276 rm -f conftest.in
16277 mv conftest.out conftest.in
16278 ' >> $CONFIG_STATUS
16279 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16280 rm -f conftest.vals
16281 mv conftest.tail conftest.vals
16282 done
16283 rm -f conftest.vals
16285 cat >> $CONFIG_STATUS <<\EOF
16286 rm -f conftest.frag conftest.h
16287 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16288 cat conftest.in >> conftest.h
16289 rm -f conftest.in
16290 if cmp -s $ac_file conftest.h 2>/dev/null; then
16291 echo "$ac_file is unchanged"
16292 rm -f conftest.h
16293 else
16294 # Remove last slash and all that follows it. Not all systems have dirname.
16295 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16296 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16297 # The file is in a subdirectory.
16298 test ! -d "$ac_dir" && mkdir "$ac_dir"
16300 rm -f $ac_file
16301 mv conftest.h $ac_file
16303 fi; done
16307 cat >> $CONFIG_STATUS <<EOF
16308 ac_sources="$os_include_dir/bits/os_defines.h $CSTDIO_H $CSTDIO_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"
16309 ac_dests="include/bits/os_defines.h include/bits/c++io.h src/c++io.cc libio/c_codecvt.c include/bits/c++locale.h src/c++locale.cc include/bits/c++threads.h \
16310 include/bits/ctype_base.h \
16311 include/bits/ctype_inline.h \
16312 include/bits/ctype_noninline.h include/bits/atomicity.h"
16315 cat >> $CONFIG_STATUS <<\EOF
16316 srcdir=$ac_given_srcdir
16317 while test -n "$ac_sources"; do
16318 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16319 set $ac_sources; ac_source=$1; shift; ac_sources=$*
16321 echo "linking $srcdir/$ac_source to $ac_dest"
16323 if test ! -r $srcdir/$ac_source; then
16324 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
16326 rm -f $ac_dest
16328 # Make relative symlinks.
16329 # Remove last slash and all that follows it. Not all systems have dirname.
16330 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
16331 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
16332 # The dest file is in a subdirectory.
16333 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
16334 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
16335 # A "../" for each directory in $ac_dest_dir_suffix.
16336 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
16337 else
16338 ac_dest_dir_suffix= ac_dots=
16341 case "$srcdir" in
16342 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
16343 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
16344 esac
16346 # Make a symlink if possible; otherwise try a hard link.
16347 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16348 ln $srcdir/$ac_source $ac_dest; then :
16349 else
16350 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
16352 done
16354 cat >> $CONFIG_STATUS <<EOF
16356 srcdir=${srcdir}
16357 host=${host}
16358 target=${target}
16359 with_multisubdir=${with_multisubdir}
16360 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16361 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16362 glibcpp_basedir=${glibcpp_basedir}
16363 CC="${CC}"
16364 CXX="${CXX}"
16367 cat >> $CONFIG_STATUS <<\EOF
16368 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
16369 if test -n "$CONFIG_FILES"; then
16370 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
16371 grep '^MULTISUBDIR =' Makefile >> src/Makefile
16372 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
16374 chmod +x tests_flags
16375 chmod +x mkcheck
16377 exit 0
16379 chmod +x $CONFIG_STATUS
16380 rm -fr confdefs* $ac_clean_files
16381 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16385 # Generate bits/c++config.h
16386 # NB: This must be the first generated file as others include it. . .
16387 $srcdir/mkc++config $blddir $srcdir
16389 # Generate bits/std_limits.h and src/limitsMEMBERS.cc
16390 if test ! -f stamp-limits; then
16391 $srcdir/mknumeric_limits $blddir $srcdir $xcompiling
16392 if test ! -f include/bits/std_limits.h; then
16393 echo "mknumeric_limits failed to execute properly: exiting"
16394 exit 1
16395 else
16396 touch stamp-limits
16401 # Sanity checking & User-visible messages.
16402 # Checks down here, otherwise they get scrolled off before
16403 # the user will notice.
16405 # Trying to get more people to read documentation. Possibly remove
16406 # check and warn all the time. There is no "informational" AC_MSG_
16407 # macro, so these are going to be printed even when --quiet/--silent
16408 # is given.
16409 if test ! -f stamp-sanity-warned; then
16410 touch stamp-sanity-warned
16411 echo ""
16412 echo "Please make certain that you read the installation information here:"
16413 echo " faster => ${srcdir}/docs/install.html"
16414 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
16415 echo ""
16416 echo "and the configuration information here:"
16417 echo " faster => ${srcdir}/docs/configopts.html"
16418 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
16419 echo ""
16420 echo "before proceeding with ${_cv_gnu_make_command}."
16421 echo ""