Silence warning
[official-gcc.git] / libstdc++-v3 / configure
blobf411d86e8bae98825855da0ad9c76f5414f94a7a
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
17 ac_help="$ac_help
18 --with-cross-host=HOST configuring with a cross compiler"
19 ac_help="$ac_help
20 --enable-multilib build hella library versions (default)"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --enable-debug extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39 --enable-cstdio enable stdio for target io package.
40 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
42 ac_help="$ac_help
43 --enable-clocale enable model for target locale package.
44 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
46 ac_help="$ac_help
47 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49 --enable-long-long turns on 'long long' [default=no]"
50 ac_help="$ac_help
51 --enable-cheaders construct "C" header files for
52 g++ [default=c_std]"
53 ac_help="$ac_help
54 --enable-threads enable thread usage for target GCC.
55 --enable-threads=LIB use LIB thread package for target GCC. [default=no]
57 ac_help="$ac_help
58 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
59 [default=none]"
60 ac_help="$ac_help
61 --with-gxx-include-dir the installation directory for include files"
62 ac_help="$ac_help
63 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
65 # Initialize some variables set by options.
66 # The variables have the same names as the options, with
67 # dashes changed to underlines.
68 build=NONE
69 cache_file=./config.cache
70 exec_prefix=NONE
71 host=NONE
72 no_create=
73 nonopt=NONE
74 no_recursion=
75 prefix=NONE
76 program_prefix=NONE
77 program_suffix=NONE
78 program_transform_name=s,x,x,
79 silent=
80 site=
81 srcdir=
82 target=NONE
83 verbose=
84 x_includes=NONE
85 x_libraries=NONE
86 bindir='${exec_prefix}/bin'
87 sbindir='${exec_prefix}/sbin'
88 libexecdir='${exec_prefix}/libexec'
89 datadir='${prefix}/share'
90 sysconfdir='${prefix}/etc'
91 sharedstatedir='${prefix}/com'
92 localstatedir='${prefix}/var'
93 libdir='${exec_prefix}/lib'
94 includedir='${prefix}/include'
95 oldincludedir='/usr/include'
96 infodir='${prefix}/info'
97 mandir='${prefix}/man'
99 # Initialize some other variables.
100 subdirs=
101 MFLAGS= MAKEFLAGS=
102 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 ac_max_here_lines=12
106 ac_prev=
107 for ac_option
110 # If the previous option needs an argument, assign it.
111 if test -n "$ac_prev"; then
112 eval "$ac_prev=\$ac_option"
113 ac_prev=
114 continue
117 case "$ac_option" in
118 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
119 *) ac_optarg= ;;
120 esac
122 # Accept the important Cygnus configure options, so we can diagnose typos.
124 case "$ac_option" in
126 -bindir | --bindir | --bindi | --bind | --bin | --bi)
127 ac_prev=bindir ;;
128 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
129 bindir="$ac_optarg" ;;
131 -build | --build | --buil | --bui | --bu)
132 ac_prev=build ;;
133 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
134 build="$ac_optarg" ;;
136 -cache-file | --cache-file | --cache-fil | --cache-fi \
137 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
138 ac_prev=cache_file ;;
139 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
140 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
141 cache_file="$ac_optarg" ;;
143 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
144 ac_prev=datadir ;;
145 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
146 | --da=*)
147 datadir="$ac_optarg" ;;
149 -disable-* | --disable-*)
150 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156 eval "enable_${ac_feature}=no" ;;
158 -enable-* | --enable-*)
159 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160 # Reject names that are not valid shell variable names.
161 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165 case "$ac_option" in
166 *=*) ;;
167 *) ac_optarg=yes ;;
168 esac
169 eval "enable_${ac_feature}='$ac_optarg'" ;;
171 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
172 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
173 | --exec | --exe | --ex)
174 ac_prev=exec_prefix ;;
175 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
176 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
177 | --exec=* | --exe=* | --ex=*)
178 exec_prefix="$ac_optarg" ;;
180 -gas | --gas | --ga | --g)
181 # Obsolete; use --with-gas.
182 with_gas=yes ;;
184 -help | --help | --hel | --he)
185 # Omit some internal or obsolete options to make the list less imposing.
186 # This message is too long to be a string in the A/UX 3.1 sh.
187 cat << EOF
188 Usage: configure [options] [host]
189 Options: [defaults in brackets after descriptions]
190 Configuration:
191 --cache-file=FILE cache test results in FILE
192 --help print this message
193 --no-create do not create output files
194 --quiet, --silent do not print \`checking...' messages
195 --version print the version of autoconf that created configure
196 Directory and file names:
197 --prefix=PREFIX install architecture-independent files in PREFIX
198 [$ac_default_prefix]
199 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
200 [same as prefix]
201 --bindir=DIR user executables in DIR [EPREFIX/bin]
202 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
203 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
204 --datadir=DIR read-only architecture-independent data in DIR
205 [PREFIX/share]
206 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
207 --sharedstatedir=DIR modifiable architecture-independent data in DIR
208 [PREFIX/com]
209 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
210 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
211 --includedir=DIR C header files in DIR [PREFIX/include]
212 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
213 --infodir=DIR info documentation in DIR [PREFIX/info]
214 --mandir=DIR man documentation in DIR [PREFIX/man]
215 --srcdir=DIR find the sources in DIR [configure dir or ..]
216 --program-prefix=PREFIX prepend PREFIX to installed program names
217 --program-suffix=SUFFIX append SUFFIX to installed program names
218 --program-transform-name=PROGRAM
219 run sed PROGRAM on installed program names
221 cat << EOF
222 Host type:
223 --build=BUILD configure for building on BUILD [BUILD=HOST]
224 --host=HOST configure for HOST [guessed]
225 --target=TARGET configure for TARGET [TARGET=HOST]
226 Features and packages:
227 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
228 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
229 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
230 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
231 --x-includes=DIR X include files are in DIR
232 --x-libraries=DIR X library files are in DIR
234 if test -n "$ac_help"; then
235 echo "--enable and --with options recognized:$ac_help"
237 exit 0 ;;
239 -host | --host | --hos | --ho)
240 ac_prev=host ;;
241 -host=* | --host=* | --hos=* | --ho=*)
242 host="$ac_optarg" ;;
244 -includedir | --includedir | --includedi | --included | --include \
245 | --includ | --inclu | --incl | --inc)
246 ac_prev=includedir ;;
247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248 | --includ=* | --inclu=* | --incl=* | --inc=*)
249 includedir="$ac_optarg" ;;
251 -infodir | --infodir | --infodi | --infod | --info | --inf)
252 ac_prev=infodir ;;
253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254 infodir="$ac_optarg" ;;
256 -libdir | --libdir | --libdi | --libd)
257 ac_prev=libdir ;;
258 -libdir=* | --libdir=* | --libdi=* | --libd=*)
259 libdir="$ac_optarg" ;;
261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262 | --libexe | --libex | --libe)
263 ac_prev=libexecdir ;;
264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265 | --libexe=* | --libex=* | --libe=*)
266 libexecdir="$ac_optarg" ;;
268 -localstatedir | --localstatedir | --localstatedi | --localstated \
269 | --localstate | --localstat | --localsta | --localst \
270 | --locals | --local | --loca | --loc | --lo)
271 ac_prev=localstatedir ;;
272 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275 localstatedir="$ac_optarg" ;;
277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
278 ac_prev=mandir ;;
279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
280 mandir="$ac_optarg" ;;
282 -nfp | --nfp | --nf)
283 # Obsolete; use --without-fp.
284 with_fp=no ;;
286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
287 | --no-cr | --no-c)
288 no_create=yes ;;
290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
292 no_recursion=yes ;;
294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296 | --oldin | --oldi | --old | --ol | --o)
297 ac_prev=oldincludedir ;;
298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301 oldincludedir="$ac_optarg" ;;
303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
304 ac_prev=prefix ;;
305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
306 prefix="$ac_optarg" ;;
308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
309 | --program-pre | --program-pr | --program-p)
310 ac_prev=program_prefix ;;
311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313 program_prefix="$ac_optarg" ;;
315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
316 | --program-suf | --program-su | --program-s)
317 ac_prev=program_suffix ;;
318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320 program_suffix="$ac_optarg" ;;
322 -program-transform-name | --program-transform-name \
323 | --program-transform-nam | --program-transform-na \
324 | --program-transform-n | --program-transform- \
325 | --program-transform | --program-transfor \
326 | --program-transfo | --program-transf \
327 | --program-trans | --program-tran \
328 | --progr-tra | --program-tr | --program-t)
329 ac_prev=program_transform_name ;;
330 -program-transform-name=* | --program-transform-name=* \
331 | --program-transform-nam=* | --program-transform-na=* \
332 | --program-transform-n=* | --program-transform-=* \
333 | --program-transform=* | --program-transfor=* \
334 | --program-transfo=* | --program-transf=* \
335 | --program-trans=* | --program-tran=* \
336 | --progr-tra=* | --program-tr=* | --program-t=*)
337 program_transform_name="$ac_optarg" ;;
339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340 | -silent | --silent | --silen | --sile | --sil)
341 silent=yes ;;
343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
344 ac_prev=sbindir ;;
345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
346 | --sbi=* | --sb=*)
347 sbindir="$ac_optarg" ;;
349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351 | --sharedst | --shareds | --shared | --share | --shar \
352 | --sha | --sh)
353 ac_prev=sharedstatedir ;;
354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
357 | --sha=* | --sh=*)
358 sharedstatedir="$ac_optarg" ;;
360 -site | --site | --sit)
361 ac_prev=site ;;
362 -site=* | --site=* | --sit=*)
363 site="$ac_optarg" ;;
365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
366 ac_prev=srcdir ;;
367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
368 srcdir="$ac_optarg" ;;
370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371 | --syscon | --sysco | --sysc | --sys | --sy)
372 ac_prev=sysconfdir ;;
373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375 sysconfdir="$ac_optarg" ;;
377 -target | --target | --targe | --targ | --tar | --ta | --t)
378 ac_prev=target ;;
379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380 target="$ac_optarg" ;;
382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
383 verbose=yes ;;
385 -version | --version | --versio | --versi | --vers)
386 echo "configure generated by autoconf version 2.13"
387 exit 0 ;;
389 -with-* | --with-*)
390 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
391 # Reject names that are not valid shell variable names.
392 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
393 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 case "$ac_option" in
397 *=*) ;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "with_${ac_package}='$ac_optarg'" ;;
402 -without-* | --without-*)
403 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
406 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408 ac_package=`echo $ac_package| sed 's/-/_/g'`
409 eval "with_${ac_package}=no" ;;
411 --x)
412 # Obsolete; use --with-x.
413 with_x=yes ;;
415 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
416 | --x-incl | --x-inc | --x-in | --x-i)
417 ac_prev=x_includes ;;
418 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
419 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
420 x_includes="$ac_optarg" ;;
422 -x-libraries | --x-libraries | --x-librarie | --x-librari \
423 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
424 ac_prev=x_libraries ;;
425 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
426 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
427 x_libraries="$ac_optarg" ;;
429 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
433 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
434 echo "configure: warning: $ac_option: invalid host type" 1>&2
436 if test "x$nonopt" != xNONE; then
437 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
439 nonopt="$ac_option"
442 esac
443 done
445 if test -n "$ac_prev"; then
446 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
449 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
451 # File descriptor usage:
452 # 0 standard input
453 # 1 file creation
454 # 2 errors and warnings
455 # 3 some systems may open it to /dev/tty
456 # 4 used on the Kubota Titan
457 # 6 checking for... messages and results
458 # 5 compiler messages saved in config.log
459 if test "$silent" = yes; then
460 exec 6>/dev/null
461 else
462 exec 6>&1
464 exec 5>./config.log
466 echo "\
467 This file contains any messages produced by compilers while
468 running configure, to aid debugging if configure makes a mistake.
469 " 1>&5
471 # Strip out --no-create and --no-recursion so they do not pile up.
472 # Also quote any args containing shell metacharacters.
473 ac_configure_args=
474 for ac_arg
476 case "$ac_arg" in
477 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
478 | --no-cr | --no-c) ;;
479 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
480 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
482 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
483 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
484 esac
485 done
487 # NLS nuisances.
488 # Only set these to C if already set. These must not be set unconditionally
489 # because not all systems understand e.g. LANG=C (notably SCO).
490 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
491 # Non-C LC_CTYPE values break the ctype check.
492 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
493 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
494 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
495 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
497 # confdefs.h avoids OS command line length limits that DEFS can exceed.
498 rm -rf conftest* confdefs.h
499 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
500 echo > confdefs.h
502 # A filename unique to this package, relative to the directory that
503 # configure is in, which we can look for to find out if srcdir is correct.
504 ac_unique_file=src/ios.cc
506 # Find the source files, if location was not specified.
507 if test -z "$srcdir"; then
508 ac_srcdir_defaulted=yes
509 # Try the directory containing this script, then its parent.
510 ac_prog=$0
511 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
512 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513 srcdir=$ac_confdir
514 if test ! -r $srcdir/$ac_unique_file; then
515 srcdir=..
517 else
518 ac_srcdir_defaulted=no
520 if test ! -r $srcdir/$ac_unique_file; then
521 if test "$ac_srcdir_defaulted" = yes; then
522 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
523 else
524 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
527 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
529 # Prefer explicitly selected file to automatically selected ones.
530 if test -z "$CONFIG_SITE"; then
531 if test "x$prefix" != xNONE; then
532 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
533 else
534 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
537 for ac_site_file in $CONFIG_SITE; do
538 if test -r "$ac_site_file"; then
539 echo "loading site script $ac_site_file"
540 . "$ac_site_file"
542 done
544 if test -r "$cache_file"; then
545 echo "loading cache $cache_file"
546 . $cache_file
547 else
548 echo "creating cache $cache_file"
549 > $cache_file
552 ac_ext=c
553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
554 ac_cpp='$CPP $CPPFLAGS'
555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
557 cross_compiling=$ac_cv_prog_cc_cross
559 ac_exeext=
560 ac_objext=o
561 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
564 ac_n= ac_c='
565 ' ac_t=' '
566 else
567 ac_n=-n ac_c= ac_t=
569 else
570 ac_n= ac_c='\c' ac_t=
575 # When building with srcdir == objdir, links to the source files will
576 # be created in directories within the target_subdir. We have to
577 # adjust toplevel_srcdir accordingly, so that configure finds
578 # install-sh and other auxiliary files that live in the top-level
579 # source directory.
580 if test "${srcdir}" = "."; then
581 if test -z "${with_target_subdir}"; then
582 toplevel_srcdir="\${top_srcdir}/.."
583 auxdir="${srcdir}/.."
584 else
585 if test "${with_target_subdir}" != "."; then
586 toplevel_srcdir="\${top_srcdir}/${with_multisrctop}../.."
587 auxdir="${srcdir}/${with_multisrctop}../.."
588 else
589 toplevel_srcdir="\${top_srcdir}/${with_multisrctop}.."
590 auxdir="${srcdir}/${with_multisrctop}.."
593 else
594 toplevel_srcdir="\${top_srcdir}/.."
595 auxdir="${srcdir}/.."
597 ac_aux_dir=
598 for ac_dir in $auxdir $srcdir/$auxdir; do
599 if test -f $ac_dir/install-sh; then
600 ac_aux_dir=$ac_dir
601 ac_install_sh="$ac_aux_dir/install-sh -c"
602 break
603 elif test -f $ac_dir/install.sh; then
604 ac_aux_dir=$ac_dir
605 ac_install_sh="$ac_aux_dir/install.sh -c"
606 break
608 done
609 if test -z "$ac_aux_dir"; then
610 { echo "configure: error: can not find install-sh or install.sh in $auxdir $srcdir/$auxdir" 1>&2; exit 1; }
612 ac_config_guess=$ac_aux_dir/config.guess
613 ac_config_sub=$ac_aux_dir/config.sub
614 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
620 # Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc.
622 # Do some error checking and defaulting for the host and target type.
623 # The inputs are:
624 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
626 # The rules are:
627 # 1. You are not allowed to specify --host, --target, and nonopt at the
628 # same time.
629 # 2. Host defaults to nonopt.
630 # 3. If nonopt is not specified, then host defaults to the current host,
631 # as determined by config.guess.
632 # 4. Target and build default to nonopt.
633 # 5. If nonopt is not specified, then target and build default to host.
635 # The aliases save the names the user supplied, while $host etc.
636 # will get canonicalized.
637 case $host---$target---$nonopt in
638 NONE---*---* | *---NONE---* | *---*---NONE) ;;
639 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
640 esac
643 # Make sure we can run config.sub.
644 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
645 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
648 echo $ac_n "checking host system type""... $ac_c" 1>&6
649 echo "configure:650: checking host system type" >&5
651 host_alias=$host
652 case "$host_alias" in
653 NONE)
654 case $nonopt in
655 NONE)
656 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
657 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
658 fi ;;
659 *) host_alias=$nonopt ;;
660 esac ;;
661 esac
663 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
664 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
665 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
666 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
667 echo "$ac_t""$host" 1>&6
669 echo $ac_n "checking target system type""... $ac_c" 1>&6
670 echo "configure:671: checking target system type" >&5
672 target_alias=$target
673 case "$target_alias" in
674 NONE)
675 case $nonopt in
676 NONE) target_alias=$host_alias ;;
677 *) target_alias=$nonopt ;;
678 esac ;;
679 esac
681 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
682 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
683 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
684 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
685 echo "$ac_t""$target" 1>&6
687 echo $ac_n "checking build system type""... $ac_c" 1>&6
688 echo "configure:689: checking build system type" >&5
690 build_alias=$build
691 case "$build_alias" in
692 NONE)
693 case $nonopt in
694 NONE) build_alias=$host_alias ;;
695 *) build_alias=$nonopt ;;
696 esac ;;
697 esac
699 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
700 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
701 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
702 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
703 echo "$ac_t""$build" 1>&6
705 test "$host_alias" != "$target_alias" &&
706 test "$program_prefix$program_suffix$program_transform_name" = \
707 NONENONEs,x,x, &&
708 program_prefix=${target_alias}-
711 # We use these options to decide which functions to include.
712 # Check whether --with-target-subdir or --without-target-subdir was given.
713 if test "${with_target_subdir+set}" = set; then
714 withval="$with_target_subdir"
718 # Check whether --with-cross-host or --without-cross-host was given.
719 if test "${with_cross_host+set}" = set; then
720 withval="$with_cross_host"
725 # Runs configure.host and configure.target. Have to run this before
726 # the GLIBCPP_ENABLE_* macros below.
727 # Find a good install program. We prefer a C program (faster),
728 # so one script is as good as another. But avoid the broken or
729 # incompatible versions:
730 # SysV /etc/install, /usr/sbin/install
731 # SunOS /usr/etc/install
732 # IRIX /sbin/install
733 # AIX /bin/install
734 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
735 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
736 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
737 # ./install, which can be erroneously created by make from ./install.sh.
738 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
739 echo "configure:740: checking for a BSD compatible install" >&5
740 if test -z "$INSTALL"; then
741 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
743 else
744 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
745 for ac_dir in $PATH; do
746 # Account for people who put trailing slashes in PATH elements.
747 case "$ac_dir/" in
748 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
750 # OSF1 and SCO ODT 3.0 have their own names for install.
751 # Don't use installbsd from OSF since it installs stuff as root
752 # by default.
753 for ac_prog in ginstall scoinst install; do
754 if test -f $ac_dir/$ac_prog; then
755 if test $ac_prog = install &&
756 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
757 # AIX install. It has an incompatible calling convention.
759 else
760 ac_cv_path_install="$ac_dir/$ac_prog -c"
761 break 2
764 done
766 esac
767 done
768 IFS="$ac_save_IFS"
771 if test "${ac_cv_path_install+set}" = set; then
772 INSTALL="$ac_cv_path_install"
773 else
774 # As a last resort, use the slow shell script. We don't cache a
775 # path for INSTALL within a source directory, because that will
776 # break other packages using the cache if that directory is
777 # removed, or if the path is relative.
778 INSTALL="$ac_install_sh"
781 echo "$ac_t""$INSTALL" 1>&6
783 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
784 # It thinks the first close brace ends the variable substitution.
785 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
787 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
789 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
791 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
792 echo "configure:793: checking whether build environment is sane" >&5
793 # Just in case
794 sleep 1
795 echo timestamp > conftestfile
796 # Do `set' in a subshell so we don't clobber the current shell's
797 # arguments. Must try -L first in case configure is actually a
798 # symlink; some systems play weird games with the mod time of symlinks
799 # (eg FreeBSD returns the mod time of the symlink's containing
800 # directory).
801 if (
802 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
803 if test "$*" = "X"; then
804 # -L didn't work.
805 set X `ls -t $srcdir/configure conftestfile`
807 if test "$*" != "X $srcdir/configure conftestfile" \
808 && test "$*" != "X conftestfile $srcdir/configure"; then
810 # If neither matched, then we have a broken ls. This can happen
811 # if, for instance, CONFIG_SHELL is bash and it inherits a
812 # broken ls alias from the environment. This has actually
813 # happened. Such a system could not be considered "sane".
814 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
815 alias in your environment" 1>&2; exit 1; }
818 test "$2" = conftestfile
820 then
821 # Ok.
823 else
824 { echo "configure: error: newly created file is older than distributed files!
825 Check your system clock" 1>&2; exit 1; }
827 rm -f conftest*
828 echo "$ac_t""yes" 1>&6
829 if test "$program_transform_name" = s,x,x,; then
830 program_transform_name=
831 else
832 # Double any \ or $. echo might interpret backslashes.
833 cat <<\EOF_SED > conftestsed
834 s,\\,\\\\,g; s,\$,$$,g
835 EOF_SED
836 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
837 rm -f conftestsed
839 test "$program_prefix" != NONE &&
840 program_transform_name="s,^,${program_prefix},; $program_transform_name"
841 # Use a double $ so make ignores it.
842 test "$program_suffix" != NONE &&
843 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
845 # sed with no file args requires a program.
846 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
848 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
849 echo "configure:850: checking whether ${MAKE-make} sets \${MAKE}" >&5
850 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
851 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
853 else
854 cat > conftestmake <<\EOF
855 all:
856 @echo 'ac_maketemp="${MAKE}"'
858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
859 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
860 if test -n "$ac_maketemp"; then
861 eval ac_cv_prog_make_${ac_make}_set=yes
862 else
863 eval ac_cv_prog_make_${ac_make}_set=no
865 rm -f conftestmake
867 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
868 echo "$ac_t""yes" 1>&6
869 SET_MAKE=
870 else
871 echo "$ac_t""no" 1>&6
872 SET_MAKE="MAKE=${MAKE-make}"
875 if test $host != $build; then
876 ac_tool_prefix=${host_alias}-
877 else
878 ac_tool_prefix=
881 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
882 echo "configure:883: checking for Cygwin environment" >&5
883 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
885 else
886 cat > conftest.$ac_ext <<EOF
887 #line 888 "configure"
888 #include "confdefs.h"
890 int main() {
892 #ifndef __CYGWIN__
893 #define __CYGWIN__ __CYGWIN32__
894 #endif
895 return __CYGWIN__;
896 ; return 0; }
898 if { (eval echo configure:899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
899 rm -rf conftest*
900 ac_cv_cygwin=yes
901 else
902 echo "configure: failed program was:" >&5
903 cat conftest.$ac_ext >&5
904 rm -rf conftest*
905 ac_cv_cygwin=no
907 rm -f conftest*
908 rm -f conftest*
911 echo "$ac_t""$ac_cv_cygwin" 1>&6
912 CYGWIN=
913 test "$ac_cv_cygwin" = yes && CYGWIN=yes
914 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
915 echo "configure:916: checking for mingw32 environment" >&5
916 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
917 echo $ac_n "(cached) $ac_c" 1>&6
918 else
919 cat > conftest.$ac_ext <<EOF
920 #line 921 "configure"
921 #include "confdefs.h"
923 int main() {
924 return __MINGW32__;
925 ; return 0; }
927 if { (eval echo configure:928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
928 rm -rf conftest*
929 ac_cv_mingw32=yes
930 else
931 echo "configure: failed program was:" >&5
932 cat conftest.$ac_ext >&5
933 rm -rf conftest*
934 ac_cv_mingw32=no
936 rm -f conftest*
937 rm -f conftest*
940 echo "$ac_t""$ac_cv_mingw32" 1>&6
941 MINGW32=
942 test "$ac_cv_mingw32" = yes && MINGW32=yes
944 # Check whether --enable-multilib or --disable-multilib was given.
945 if test "${enable_multilib+set}" = set; then
946 enableval="$enable_multilib"
947 case "${enableval}" in
948 yes) multilib=yes ;;
949 no) multilib=no ;;
950 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
951 esac
952 else
953 multilib=yes
956 glibcpp_basedir=$auxdir/./libstdc++-v3
960 PACKAGE=libstdc++
962 VERSION=2.91
964 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
965 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
967 cat >> confdefs.h <<EOF
968 #define PACKAGE "$PACKAGE"
971 cat >> confdefs.h <<EOF
972 #define VERSION "$VERSION"
977 missing_dir=`cd $ac_aux_dir && pwd`
978 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
979 echo "configure:980: checking for working aclocal" >&5
980 # Run test in a subshell; some versions of sh will print an error if
981 # an executable is not found, even if stderr is redirected.
982 # Redirect stdin to placate older versions of autoconf. Sigh.
983 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
984 ACLOCAL=aclocal
985 echo "$ac_t""found" 1>&6
986 else
987 ACLOCAL="$missing_dir/missing aclocal"
988 echo "$ac_t""missing" 1>&6
991 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
992 echo "configure:993: checking for working autoconf" >&5
993 # Run test in a subshell; some versions of sh will print an error if
994 # an executable is not found, even if stderr is redirected.
995 # Redirect stdin to placate older versions of autoconf. Sigh.
996 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
997 AUTOCONF=autoconf
998 echo "$ac_t""found" 1>&6
999 else
1000 AUTOCONF="$missing_dir/missing autoconf"
1001 echo "$ac_t""missing" 1>&6
1004 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1005 echo "configure:1006: checking for working automake" >&5
1006 # Run test in a subshell; some versions of sh will print an error if
1007 # an executable is not found, even if stderr is redirected.
1008 # Redirect stdin to placate older versions of autoconf. Sigh.
1009 if (automake --version) < /dev/null > /dev/null 2>&1; then
1010 AUTOMAKE=automake
1011 echo "$ac_t""found" 1>&6
1012 else
1013 AUTOMAKE="$missing_dir/missing automake"
1014 echo "$ac_t""missing" 1>&6
1017 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1018 echo "configure:1019: checking for working autoheader" >&5
1019 # Run test in a subshell; some versions of sh will print an error if
1020 # an executable is not found, even if stderr is redirected.
1021 # Redirect stdin to placate older versions of autoconf. Sigh.
1022 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1023 AUTOHEADER=autoheader
1024 echo "$ac_t""found" 1>&6
1025 else
1026 AUTOHEADER="$missing_dir/missing autoheader"
1027 echo "$ac_t""missing" 1>&6
1030 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1031 echo "configure:1032: checking for working makeinfo" >&5
1032 # Run test in a subshell; some versions of sh will print an error if
1033 # an executable is not found, even if stderr is redirected.
1034 # Redirect stdin to placate older versions of autoconf. Sigh.
1035 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1036 MAKEINFO=makeinfo
1037 echo "$ac_t""found" 1>&6
1038 else
1039 MAKEINFO="$missing_dir/missing makeinfo"
1040 echo "$ac_t""missing" 1>&6
1045 # Never versions of autoconf add an underscore to these functions.
1046 # Prevent future problems ...
1052 # AC_PROG_CC
1054 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1055 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1056 # are probably using a cross compiler, which will not be able to fully
1057 # link an executable. This should really be fixed in autoconf
1058 # itself.
1063 # Extract the first word of "gcc", so it can be a program name with args.
1064 set dummy gcc; ac_word=$2
1065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1066 echo "configure:1067: checking for $ac_word" >&5
1067 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1068 echo $ac_n "(cached) $ac_c" 1>&6
1069 else
1070 if test -n "$CC"; then
1071 ac_cv_prog_CC="$CC" # Let the user override the test.
1072 else
1073 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1074 ac_dummy="$PATH"
1075 for ac_dir in $ac_dummy; do
1076 test -z "$ac_dir" && ac_dir=.
1077 if test -f $ac_dir/$ac_word; then
1078 ac_cv_prog_CC="gcc"
1079 break
1081 done
1082 IFS="$ac_save_ifs"
1085 CC="$ac_cv_prog_CC"
1086 if test -n "$CC"; then
1087 echo "$ac_t""$CC" 1>&6
1088 else
1089 echo "$ac_t""no" 1>&6
1092 if test -z "$CC"; then
1093 # Extract the first word of "cc", so it can be a program name with args.
1094 set dummy cc; ac_word=$2
1095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1096 echo "configure:1097: checking for $ac_word" >&5
1097 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1099 else
1100 if test -n "$CC"; then
1101 ac_cv_prog_CC="$CC" # Let the user override the test.
1102 else
1103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1104 ac_prog_rejected=no
1105 ac_dummy="$PATH"
1106 for ac_dir in $ac_dummy; do
1107 test -z "$ac_dir" && ac_dir=.
1108 if test -f $ac_dir/$ac_word; then
1109 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1110 ac_prog_rejected=yes
1111 continue
1113 ac_cv_prog_CC="cc"
1114 break
1116 done
1117 IFS="$ac_save_ifs"
1118 if test $ac_prog_rejected = yes; then
1119 # We found a bogon in the path, so make sure we never use it.
1120 set dummy $ac_cv_prog_CC
1121 shift
1122 if test $# -gt 0; then
1123 # We chose a different compiler from the bogus one.
1124 # However, it has the same basename, so the bogon will be chosen
1125 # first if we set CC to just the basename; use the full file name.
1126 shift
1127 set dummy "$ac_dir/$ac_word" "$@"
1128 shift
1129 ac_cv_prog_CC="$@"
1134 CC="$ac_cv_prog_CC"
1135 if test -n "$CC"; then
1136 echo "$ac_t""$CC" 1>&6
1137 else
1138 echo "$ac_t""no" 1>&6
1141 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1144 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether we are using GNU C" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1148 else
1149 cat > conftest.c <<EOF
1150 #ifdef __GNUC__
1151 yes;
1152 #endif
1154 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1155 ac_cv_prog_gcc=yes
1156 else
1157 ac_cv_prog_gcc=no
1161 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1163 if test $ac_cv_prog_gcc = yes; then
1164 GCC=yes
1165 ac_test_CFLAGS="${CFLAGS+set}"
1166 ac_save_CFLAGS="$CFLAGS"
1167 CFLAGS=
1168 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1169 echo "configure:1170: checking whether ${CC-cc} accepts -g" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1172 else
1173 echo 'void f(){}' > conftest.c
1174 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1175 ac_cv_prog_cc_g=yes
1176 else
1177 ac_cv_prog_cc_g=no
1179 rm -f conftest*
1183 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1184 if test "$ac_test_CFLAGS" = set; then
1185 CFLAGS="$ac_save_CFLAGS"
1186 elif test $ac_cv_prog_cc_g = yes; then
1187 CFLAGS="-g -O2"
1188 else
1189 CFLAGS="-O2"
1191 else
1192 GCC=
1193 test "${CFLAGS+set}" = set || CFLAGS="-g"
1197 # Can't just call these here as g++ requires libstc++ to be built....
1198 # AC_PROG_CXX
1200 # Likewise for AC_PROG_CXX.
1204 # Use CXX_libstdcxx so that we do not cause CXX to be cached with the
1205 # flags that come in CXX while configuring libstdc++. They're different
1206 # from those used for all other target libraries. If CXX is set in
1207 # the environment, respect that here.
1208 CXX_libstdcxx=$CXX
1209 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1211 # Extract the first word of "$ac_prog", so it can be a program name with args.
1212 set dummy $ac_prog; ac_word=$2
1213 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1214 echo "configure:1215: checking for $ac_word" >&5
1215 if eval "test \"`echo '$''{'ac_cv_prog_CXX_libstdcxx'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218 if test -n "$CXX_libstdcxx"; then
1219 ac_cv_prog_CXX_libstdcxx="$CXX_libstdcxx" # Let the user override the test.
1220 else
1221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1222 ac_dummy="$PATH"
1223 for ac_dir in $ac_dummy; do
1224 test -z "$ac_dir" && ac_dir=.
1225 if test -f $ac_dir/$ac_word; then
1226 ac_cv_prog_CXX_libstdcxx="$ac_prog"
1227 break
1229 done
1230 IFS="$ac_save_ifs"
1233 CXX_libstdcxx="$ac_cv_prog_CXX_libstdcxx"
1234 if test -n "$CXX_libstdcxx"; then
1235 echo "$ac_t""$CXX_libstdcxx" 1>&6
1236 else
1237 echo "$ac_t""no" 1>&6
1240 test -n "$CXX_libstdcxx" && break
1241 done
1242 test -n "$CXX_libstdcxx" || CXX_libstdcxx="gcc"
1244 CXX=$CXX_libstdcxx
1246 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1248 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1249 echo "configure:1250: checking whether we are using GNU C++" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1252 else
1253 cat > conftest.C <<EOF
1254 #ifdef __GNUC__
1255 yes;
1256 #endif
1258 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1259 ac_cv_prog_gxx=yes
1260 else
1261 ac_cv_prog_gxx=no
1265 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1267 if test $ac_cv_prog_gxx = yes; then
1268 GXX=yes
1269 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1270 ac_save_CXXFLAGS="$CXXFLAGS"
1271 CXXFLAGS=
1272 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1273 echo "configure:1274: checking whether ${CXX-g++} accepts -g" >&5
1274 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1276 else
1277 echo 'void f(){}' > conftest.cc
1278 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1279 ac_cv_prog_cxx_g=yes
1280 else
1281 ac_cv_prog_cxx_g=no
1283 rm -f conftest*
1287 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1288 if test "$ac_test_CXXFLAGS" = set; then
1289 CXXFLAGS="$ac_save_CXXFLAGS"
1290 elif test $ac_cv_prog_cxx_g = yes; then
1291 CXXFLAGS="-g -O2"
1292 else
1293 CXXFLAGS="-O2"
1295 else
1296 GXX=
1297 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1301 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1302 set dummy ${ac_tool_prefix}as; ac_word=$2
1303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1304 echo "configure:1305: checking for $ac_word" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308 if test -n "$AS"; then
1309 ac_cv_prog_AS="$AS" # Let the user override the test.
1310 else
1311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1312 ac_dummy="$PATH"
1313 for ac_dir in $ac_dummy; do
1314 test -z "$ac_dir" && ac_dir=.
1315 if test -f $ac_dir/$ac_word; then
1316 ac_cv_prog_AS="${ac_tool_prefix}as"
1317 break
1319 done
1320 IFS="$ac_save_ifs"
1321 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1324 AS="$ac_cv_prog_AS"
1325 if test -n "$AS"; then
1326 echo "$ac_t""$AS" 1>&6
1327 else
1328 echo "$ac_t""no" 1>&6
1333 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1334 set dummy ${ac_tool_prefix}ar; ac_word=$2
1335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1336 echo "configure:1337: checking for $ac_word" >&5
1337 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1339 else
1340 if test -n "$AR"; then
1341 ac_cv_prog_AR="$AR" # Let the user override the test.
1342 else
1343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1344 ac_dummy="$PATH"
1345 for ac_dir in $ac_dummy; do
1346 test -z "$ac_dir" && ac_dir=.
1347 if test -f $ac_dir/$ac_word; then
1348 ac_cv_prog_AR="${ac_tool_prefix}ar"
1349 break
1351 done
1352 IFS="$ac_save_ifs"
1353 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1356 AR="$ac_cv_prog_AR"
1357 if test -n "$AR"; then
1358 echo "$ac_t""$AR" 1>&6
1359 else
1360 echo "$ac_t""no" 1>&6
1365 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1366 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1368 echo "configure:1369: checking for $ac_word" >&5
1369 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1371 else
1372 if test -n "$RANLIB"; then
1373 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1374 else
1375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1376 ac_dummy="$PATH"
1377 for ac_dir in $ac_dummy; do
1378 test -z "$ac_dir" && ac_dir=.
1379 if test -f $ac_dir/$ac_word; then
1380 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1381 break
1383 done
1384 IFS="$ac_save_ifs"
1387 RANLIB="$ac_cv_prog_RANLIB"
1388 if test -n "$RANLIB"; then
1389 echo "$ac_t""$RANLIB" 1>&6
1390 else
1391 echo "$ac_t""no" 1>&6
1395 if test -z "$ac_cv_prog_RANLIB"; then
1396 if test -n "$ac_tool_prefix"; then
1397 # Extract the first word of "ranlib", so it can be a program name with args.
1398 set dummy ranlib; ac_word=$2
1399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1400 echo "configure:1401: checking for $ac_word" >&5
1401 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1403 else
1404 if test -n "$RANLIB"; then
1405 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1406 else
1407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1408 ac_dummy="$PATH"
1409 for ac_dir in $ac_dummy; do
1410 test -z "$ac_dir" && ac_dir=.
1411 if test -f $ac_dir/$ac_word; then
1412 ac_cv_prog_RANLIB="ranlib"
1413 break
1415 done
1416 IFS="$ac_save_ifs"
1417 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1420 RANLIB="$ac_cv_prog_RANLIB"
1421 if test -n "$RANLIB"; then
1422 echo "$ac_t""$RANLIB" 1>&6
1423 else
1424 echo "$ac_t""no" 1>&6
1427 else
1428 RANLIB=":"
1433 # Find a good install program. We prefer a C program (faster),
1434 # so one script is as good as another. But avoid the broken or
1435 # incompatible versions:
1436 # SysV /etc/install, /usr/sbin/install
1437 # SunOS /usr/etc/install
1438 # IRIX /sbin/install
1439 # AIX /bin/install
1440 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1441 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1442 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1443 # ./install, which can be erroneously created by make from ./install.sh.
1444 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1445 echo "configure:1446: checking for a BSD compatible install" >&5
1446 if test -z "$INSTALL"; then
1447 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1448 echo $ac_n "(cached) $ac_c" 1>&6
1449 else
1450 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1451 for ac_dir in $PATH; do
1452 # Account for people who put trailing slashes in PATH elements.
1453 case "$ac_dir/" in
1454 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1456 # OSF1 and SCO ODT 3.0 have their own names for install.
1457 # Don't use installbsd from OSF since it installs stuff as root
1458 # by default.
1459 for ac_prog in ginstall scoinst install; do
1460 if test -f $ac_dir/$ac_prog; then
1461 if test $ac_prog = install &&
1462 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1463 # AIX install. It has an incompatible calling convention.
1465 else
1466 ac_cv_path_install="$ac_dir/$ac_prog -c"
1467 break 2
1470 done
1472 esac
1473 done
1474 IFS="$ac_save_IFS"
1477 if test "${ac_cv_path_install+set}" = set; then
1478 INSTALL="$ac_cv_path_install"
1479 else
1480 # As a last resort, use the slow shell script. We don't cache a
1481 # path for INSTALL within a source directory, because that will
1482 # break other packages using the cache if that directory is
1483 # removed, or if the path is relative.
1484 INSTALL="$ac_install_sh"
1487 echo "$ac_t""$INSTALL" 1>&6
1489 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1490 # It thinks the first close brace ends the variable substitution.
1491 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1493 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1495 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1498 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1499 echo "configure:1500: checking whether to enable maintainer-specific portions of Makefiles" >&5
1500 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1501 if test "${enable_maintainer_mode+set}" = set; then
1502 enableval="$enable_maintainer_mode"
1503 USE_MAINTAINER_MODE=$enableval
1504 else
1505 USE_MAINTAINER_MODE=no
1508 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1511 if test $USE_MAINTAINER_MODE = yes; then
1512 MAINTAINER_MODE_TRUE=
1513 MAINTAINER_MODE_FALSE='#'
1514 else
1515 MAINTAINER_MODE_TRUE='#'
1516 MAINTAINER_MODE_FALSE=
1518 MAINT=$MAINTAINER_MODE_TRUE
1522 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1523 # at least currently, we never actually build a program, so we never
1524 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1525 # fails, because we are probably configuring with a cross compiler
1526 # which cant create executables. So we include AC_EXEEXT to keep
1527 # automake happy, but we dont execute it, since we dont care about
1528 # the result.
1529 if false; then
1532 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1533 echo "configure:1534: checking for executable suffix" >&5
1534 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1535 echo $ac_n "(cached) $ac_c" 1>&6
1536 else
1537 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1538 ac_cv_exeext=.exe
1539 else
1540 rm -f conftest*
1541 echo 'int main () { return 0; }' > conftest.$ac_ext
1542 ac_cv_exeext=
1543 if { (eval echo configure:1544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1544 for file in conftest.*; do
1545 case $file in
1546 *.c | *.o | *.obj) ;;
1547 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1548 esac
1549 done
1550 else
1551 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1553 rm -f conftest*
1554 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1558 EXEEXT=""
1559 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1560 echo "$ac_t""${ac_cv_exeext}" 1>&6
1561 ac_exeext=$EXEEXT
1565 . ${glibcpp_basedir}/configure.host
1567 case ${glibcpp_basedir} in
1568 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1569 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1570 esac
1572 # This does for the target what configure.host does for the host. In
1573 # addition to possibly modifying the same flags, it also sets up symlinks.
1575 . ${glibcpp_basedir}/configure.target
1576 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1577 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1583 # Check whether --enable-shared or --disable-shared was given.
1584 if test "${enable_shared+set}" = set; then
1585 enableval="$enable_shared"
1586 p=${PACKAGE-default}
1587 case "$enableval" in
1588 yes) enable_shared=yes ;;
1589 no) enable_shared=no ;;
1591 enable_shared=no
1592 # Look at the argument we got. We use all the common list separators.
1593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1594 for pkg in $enableval; do
1595 if test "X$pkg" = "X$p"; then
1596 enable_shared=yes
1598 done
1599 IFS="$ac_save_ifs"
1601 esac
1602 else
1603 enable_shared=yes
1606 # Check whether --enable-static or --disable-static was given.
1607 if test "${enable_static+set}" = set; then
1608 enableval="$enable_static"
1609 p=${PACKAGE-default}
1610 case "$enableval" in
1611 yes) enable_static=yes ;;
1612 no) enable_static=no ;;
1614 enable_static=no
1615 # Look at the argument we got. We use all the common list separators.
1616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1617 for pkg in $enableval; do
1618 if test "X$pkg" = "X$p"; then
1619 enable_static=yes
1621 done
1622 IFS="$ac_save_ifs"
1624 esac
1625 else
1626 enable_static=yes
1629 # Check whether --enable-fast-install or --disable-fast-install was given.
1630 if test "${enable_fast_install+set}" = set; then
1631 enableval="$enable_fast_install"
1632 p=${PACKAGE-default}
1633 case "$enableval" in
1634 yes) enable_fast_install=yes ;;
1635 no) enable_fast_install=no ;;
1637 enable_fast_install=no
1638 # Look at the argument we got. We use all the common list separators.
1639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1640 for pkg in $enableval; do
1641 if test "X$pkg" = "X$p"; then
1642 enable_fast_install=yes
1644 done
1645 IFS="$ac_save_ifs"
1647 esac
1648 else
1649 enable_fast_install=yes
1652 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1653 if test "${with_gnu_ld+set}" = set; then
1654 withval="$with_gnu_ld"
1655 test "$withval" = no || with_gnu_ld=yes
1656 else
1657 with_gnu_ld=no
1660 ac_prog=ld
1661 if test "$ac_cv_prog_gcc" = yes; then
1662 # Check if gcc -print-prog-name=ld gives a path.
1663 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1664 echo "configure:1665: checking for ld used by GCC" >&5
1665 case $host in
1666 *-*-mingw*)
1667 # gcc leaves a trailing carriage return which upsets mingw
1668 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1670 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1671 esac
1672 case "$ac_prog" in
1673 # Accept absolute paths.
1674 [\\/]* | [A-Za-z]:[\\/]*)
1675 re_direlt='/[^/][^/]*/\.\./'
1676 # Canonicalize the path of ld
1677 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1678 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1679 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1680 done
1681 test -z "$LD" && LD="$ac_prog"
1684 # If it fails, then pretend we aren't using GCC.
1685 ac_prog=ld
1688 # If it is relative, then search for the first ld in PATH.
1689 with_gnu_ld=unknown
1691 esac
1692 elif test "$with_gnu_ld" = yes; then
1693 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1694 echo "configure:1695: checking for GNU ld" >&5
1695 else
1696 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1697 echo "configure:1698: checking for non-GNU ld" >&5
1699 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1701 else
1702 if test -z "$LD"; then
1703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1704 for ac_dir in $PATH; do
1705 test -z "$ac_dir" && ac_dir=.
1706 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1707 ac_cv_path_LD="$ac_dir/$ac_prog"
1708 # Check to see if the program is GNU ld. I'd rather use --version,
1709 # but apparently some GNU ld's only accept -v.
1710 # Break only if it was the GNU/non-GNU ld that we prefer.
1711 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1712 test "$with_gnu_ld" != no && break
1713 else
1714 test "$with_gnu_ld" != yes && break
1717 done
1718 IFS="$ac_save_ifs"
1719 else
1720 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1724 LD="$ac_cv_path_LD"
1725 if test -n "$LD"; then
1726 echo "$ac_t""$LD" 1>&6
1727 else
1728 echo "$ac_t""no" 1>&6
1730 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1731 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1732 echo "configure:1733: checking if the linker ($LD) is GNU ld" >&5
1733 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6
1735 else
1736 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1737 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1738 ac_cv_prog_gnu_ld=yes
1739 else
1740 ac_cv_prog_gnu_ld=no
1744 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1745 with_gnu_ld=$ac_cv_prog_gnu_ld
1748 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1749 echo "configure:1750: checking for $LD option to reload object files" >&5
1750 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1752 else
1753 lt_cv_ld_reload_flag='-r'
1756 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1757 reload_flag=$lt_cv_ld_reload_flag
1758 test -n "$reload_flag" && reload_flag=" $reload_flag"
1760 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1761 echo "configure:1762: checking for BSD-compatible nm" >&5
1762 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1764 else
1765 if test -n "$NM"; then
1766 # Let the user override the test.
1767 ac_cv_path_NM="$NM"
1768 else
1769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1770 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1771 test -z "$ac_dir" && ac_dir=.
1772 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1773 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1774 # Check to see if the nm accepts a BSD-compat flag.
1775 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1776 # nm: unknown option "B" ignored
1777 # Tru64's nm complains that /dev/null is an invalid object file
1778 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1779 ac_cv_path_NM="$tmp_nm -B"
1780 break
1781 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1782 ac_cv_path_NM="$tmp_nm -p"
1783 break
1784 else
1785 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1786 continue # so that we can try to find one that supports BSD flags
1789 done
1790 IFS="$ac_save_ifs"
1791 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1795 NM="$ac_cv_path_NM"
1796 echo "$ac_t""$NM" 1>&6
1798 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1799 echo "configure:1800: checking whether ln -s works" >&5
1800 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1802 else
1803 rm -f conftestdata
1804 if ln -s X conftestdata 2>/dev/null
1805 then
1806 rm -f conftestdata
1807 ac_cv_prog_LN_S="ln -s"
1808 else
1809 ac_cv_prog_LN_S=ln
1812 LN_S="$ac_cv_prog_LN_S"
1813 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1814 echo "$ac_t""yes" 1>&6
1815 else
1816 echo "$ac_t""no" 1>&6
1819 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1820 echo "configure:1821: checking how to recognise dependant libraries" >&5
1821 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1823 else
1824 lt_cv_file_magic_cmd='$MAGIC_CMD'
1825 lt_cv_file_magic_test_file=
1826 lt_cv_deplibs_check_method='unknown'
1827 # Need to set the preceding variable on all platforms that support
1828 # interlibrary dependencies.
1829 # 'none' -- dependencies not supported.
1830 # `unknown' -- same as none, but documents that we really don't know.
1831 # 'pass_all' -- all dependencies passed with no checks.
1832 # 'test_compile' -- check by making test program.
1833 # 'file_magic [regex]' -- check by looking for files in library path
1834 # which responds to the $file_magic_cmd with a given egrep regex.
1835 # If you have `file' or equivalent on your system and you're not sure
1836 # whether `pass_all' will *always* work, you probably want this one.
1838 case "$host_os" in
1839 aix4*)
1840 lt_cv_deplibs_check_method=pass_all
1843 beos*)
1844 lt_cv_deplibs_check_method=pass_all
1847 bsdi4*)
1848 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1849 lt_cv_file_magic_cmd='/usr/bin/file -L'
1850 lt_cv_file_magic_test_file=/shlib/libc.so
1853 cygwin* | mingw* |pw32*)
1854 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1855 lt_cv_file_magic_cmd='$OBJDUMP -f'
1858 freebsd* )
1859 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1860 case "$host_cpu" in
1861 i*86 )
1862 # Not sure whether the presence of OpenBSD here was a mistake.
1863 # Let's accept both of them until this is cleared up.
1864 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1865 lt_cv_file_magic_cmd=/usr/bin/file
1866 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1868 esac
1869 else
1870 lt_cv_deplibs_check_method=pass_all
1874 gnu*)
1875 lt_cv_deplibs_check_method=pass_all
1878 hpux10.20*)
1879 # TODO: Does this work for hpux-11 too?
1880 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1881 lt_cv_file_magic_cmd=/usr/bin/file
1882 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1885 irix5* | irix6*)
1886 case "$host_os" in
1887 irix5*)
1888 # this will be overridden with pass_all, but let us keep it just in case
1889 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1892 case "$LD" in
1893 *-32|*"-32 ") libmagic=32-bit;;
1894 *-n32|*"-n32 ") libmagic=N32;;
1895 *-64|*"-64 ") libmagic=64-bit;;
1896 *) libmagic=never-match;;
1897 esac
1898 # this will be overridden with pass_all, but let us keep it just in case
1899 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1901 esac
1902 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1903 lt_cv_deplibs_check_method=pass_all
1906 # This must be Linux ELF.
1907 linux-gnu*)
1908 case "$host_cpu" in
1909 alpha* | i*86 | powerpc* | sparc* | ia64* )
1910 lt_cv_deplibs_check_method=pass_all ;;
1912 # glibc up to 2.1.1 does not perform some relocations on ARM
1913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1914 esac
1915 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1918 netbsd*)
1919 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
1920 else
1921 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1922 lt_cv_file_magic_cmd='/usr/bin/file -L'
1923 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1927 osf3* | osf4* | osf5*)
1928 # this will be overridden with pass_all, but let us keep it just in case
1929 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1930 lt_cv_file_magic_test_file=/shlib/libc.so
1931 lt_cv_deplibs_check_method=pass_all
1934 sco3.2v5*)
1935 lt_cv_deplibs_check_method=pass_all
1938 solaris*)
1939 lt_cv_deplibs_check_method=pass_all
1940 lt_cv_file_magic_test_file=/lib/libc.so
1943 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1944 case "$host_vendor" in
1945 ncr)
1946 lt_cv_deplibs_check_method=pass_all
1948 motorola)
1949 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1950 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1952 esac
1954 esac
1958 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1959 file_magic_cmd=$lt_cv_file_magic_cmd
1960 deplibs_check_method=$lt_cv_deplibs_check_method
1962 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1963 echo "configure:1964: checking for object suffix" >&5
1964 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1966 else
1967 rm -f conftest*
1968 echo 'int i = 1;' > conftest.$ac_ext
1969 if { (eval echo configure:1970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1970 for ac_file in conftest.*; do
1971 case $ac_file in
1972 *.c) ;;
1973 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1974 esac
1975 done
1976 else
1977 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1979 rm -f conftest*
1982 echo "$ac_t""$ac_cv_objext" 1>&6
1983 OBJEXT=$ac_cv_objext
1984 ac_objext=$ac_cv_objext
1986 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1988 # Only perform the check for file, if the check method requires it
1989 case "$deplibs_check_method" in
1990 file_magic*)
1991 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1992 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1993 echo "configure:1994: checking for ${ac_tool_prefix}file" >&5
1994 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1996 else
1997 case "$MAGIC_CMD" in
1999 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2001 ?:/*)
2002 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2005 ac_save_MAGIC_CMD="$MAGIC_CMD"
2006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2007 ac_dummy="/usr/bin:$PATH"
2008 for ac_dir in $ac_dummy; do
2009 test -z "$ac_dir" && ac_dir=.
2010 if test -f $ac_dir/${ac_tool_prefix}file; then
2011 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2012 if test -n "$file_magic_test_file"; then
2013 case "$deplibs_check_method" in
2014 "file_magic "*)
2015 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2017 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2018 egrep "$file_magic_regex" > /dev/null; then
2020 else
2021 cat <<EOF 1>&2
2023 *** Warning: the command libtool uses to detect shared libraries,
2024 *** $file_magic_cmd, produces output that libtool cannot recognize.
2025 *** The result is that libtool may fail to recognize shared libraries
2026 *** as such. This will affect the creation of libtool libraries that
2027 *** depend on shared libraries, but programs linked with such libtool
2028 *** libraries will work regardless of this problem. Nevertheless, you
2029 *** may want to report the problem to your system manager and/or to
2030 *** bug-libtool@gnu.org
2033 fi ;;
2034 esac
2036 break
2038 done
2039 IFS="$ac_save_ifs"
2040 MAGIC_CMD="$ac_save_MAGIC_CMD"
2042 esac
2045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2046 if test -n "$MAGIC_CMD"; then
2047 echo "$ac_t""$MAGIC_CMD" 1>&6
2048 else
2049 echo "$ac_t""no" 1>&6
2052 if test -z "$lt_cv_path_MAGIC_CMD"; then
2053 if test -n "$ac_tool_prefix"; then
2054 echo $ac_n "checking for file""... $ac_c" 1>&6
2055 echo "configure:2056: checking for file" >&5
2056 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2057 echo $ac_n "(cached) $ac_c" 1>&6
2058 else
2059 case "$MAGIC_CMD" in
2061 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2063 ?:/*)
2064 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2067 ac_save_MAGIC_CMD="$MAGIC_CMD"
2068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2069 ac_dummy="/usr/bin:$PATH"
2070 for ac_dir in $ac_dummy; do
2071 test -z "$ac_dir" && ac_dir=.
2072 if test -f $ac_dir/file; then
2073 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2074 if test -n "$file_magic_test_file"; then
2075 case "$deplibs_check_method" in
2076 "file_magic "*)
2077 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2078 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2079 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2080 egrep "$file_magic_regex" > /dev/null; then
2082 else
2083 cat <<EOF 1>&2
2085 *** Warning: the command libtool uses to detect shared libraries,
2086 *** $file_magic_cmd, produces output that libtool cannot recognize.
2087 *** The result is that libtool may fail to recognize shared libraries
2088 *** as such. This will affect the creation of libtool libraries that
2089 *** depend on shared libraries, but programs linked with such libtool
2090 *** libraries will work regardless of this problem. Nevertheless, you
2091 *** may want to report the problem to your system manager and/or to
2092 *** bug-libtool@gnu.org
2095 fi ;;
2096 esac
2098 break
2100 done
2101 IFS="$ac_save_ifs"
2102 MAGIC_CMD="$ac_save_MAGIC_CMD"
2104 esac
2107 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2108 if test -n "$MAGIC_CMD"; then
2109 echo "$ac_t""$MAGIC_CMD" 1>&6
2110 else
2111 echo "$ac_t""no" 1>&6
2114 else
2115 MAGIC_CMD=:
2121 esac
2123 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2124 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2126 echo "configure:2127: checking for $ac_word" >&5
2127 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2128 echo $ac_n "(cached) $ac_c" 1>&6
2129 else
2130 if test -n "$RANLIB"; then
2131 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2132 else
2133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2134 ac_dummy="$PATH"
2135 for ac_dir in $ac_dummy; do
2136 test -z "$ac_dir" && ac_dir=.
2137 if test -f $ac_dir/$ac_word; then
2138 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2139 break
2141 done
2142 IFS="$ac_save_ifs"
2145 RANLIB="$ac_cv_prog_RANLIB"
2146 if test -n "$RANLIB"; then
2147 echo "$ac_t""$RANLIB" 1>&6
2148 else
2149 echo "$ac_t""no" 1>&6
2153 if test -z "$ac_cv_prog_RANLIB"; then
2154 if test -n "$ac_tool_prefix"; then
2155 # Extract the first word of "ranlib", so it can be a program name with args.
2156 set dummy ranlib; ac_word=$2
2157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2158 echo "configure:2159: checking for $ac_word" >&5
2159 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2160 echo $ac_n "(cached) $ac_c" 1>&6
2161 else
2162 if test -n "$RANLIB"; then
2163 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2164 else
2165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2166 ac_dummy="$PATH"
2167 for ac_dir in $ac_dummy; do
2168 test -z "$ac_dir" && ac_dir=.
2169 if test -f $ac_dir/$ac_word; then
2170 ac_cv_prog_RANLIB="ranlib"
2171 break
2173 done
2174 IFS="$ac_save_ifs"
2175 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2178 RANLIB="$ac_cv_prog_RANLIB"
2179 if test -n "$RANLIB"; then
2180 echo "$ac_t""$RANLIB" 1>&6
2181 else
2182 echo "$ac_t""no" 1>&6
2185 else
2186 RANLIB=":"
2190 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2191 set dummy ${ac_tool_prefix}strip; ac_word=$2
2192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2193 echo "configure:2194: checking for $ac_word" >&5
2194 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2196 else
2197 if test -n "$STRIP"; then
2198 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2199 else
2200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2201 ac_dummy="$PATH"
2202 for ac_dir in $ac_dummy; do
2203 test -z "$ac_dir" && ac_dir=.
2204 if test -f $ac_dir/$ac_word; then
2205 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2206 break
2208 done
2209 IFS="$ac_save_ifs"
2212 STRIP="$ac_cv_prog_STRIP"
2213 if test -n "$STRIP"; then
2214 echo "$ac_t""$STRIP" 1>&6
2215 else
2216 echo "$ac_t""no" 1>&6
2220 if test -z "$ac_cv_prog_STRIP"; then
2221 if test -n "$ac_tool_prefix"; then
2222 # Extract the first word of "strip", so it can be a program name with args.
2223 set dummy strip; ac_word=$2
2224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2225 echo "configure:2226: checking for $ac_word" >&5
2226 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2227 echo $ac_n "(cached) $ac_c" 1>&6
2228 else
2229 if test -n "$STRIP"; then
2230 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2231 else
2232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2233 ac_dummy="$PATH"
2234 for ac_dir in $ac_dummy; do
2235 test -z "$ac_dir" && ac_dir=.
2236 if test -f $ac_dir/$ac_word; then
2237 ac_cv_prog_STRIP="strip"
2238 break
2240 done
2241 IFS="$ac_save_ifs"
2242 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2245 STRIP="$ac_cv_prog_STRIP"
2246 if test -n "$STRIP"; then
2247 echo "$ac_t""$STRIP" 1>&6
2248 else
2249 echo "$ac_t""no" 1>&6
2252 else
2253 STRIP=":"
2258 # Check for any special flags to pass to ltconfig.
2259 libtool_flags="--cache-file=$cache_file"
2260 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2261 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2262 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2263 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2264 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2265 libtool_flags="$libtool_flags --enable-dlopen"
2267 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2268 if test "${enable_libtool_lock+set}" = set; then
2269 enableval="$enable_libtool_lock"
2273 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2274 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2276 # Check whether --with-pic or --without-pic was given.
2277 if test "${with_pic+set}" = set; then
2278 withval="$with_pic"
2279 pic_mode="$withval"
2280 else
2281 pic_mode=default
2284 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2285 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2287 # Some flags need to be propagated to the compiler or linker for good
2288 # libtool support.
2289 case "$host" in
2290 *-*-irix6*)
2291 # Find out which ABI we are using.
2292 echo '#line 2293 "configure"' > conftest.$ac_ext
2293 if { (eval echo configure:2294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2294 case "`/usr/bin/file conftest.o`" in
2295 *32-bit*)
2296 LD="${LD-ld} -32"
2298 *N32*)
2299 LD="${LD-ld} -n32"
2301 *64-bit*)
2302 LD="${LD-ld} -64"
2304 esac
2306 rm -rf conftest*
2309 *-*-sco3.2v5*)
2310 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2311 SAVE_CFLAGS="$CFLAGS"
2312 CFLAGS="$CFLAGS -belf"
2313 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2314 echo "configure:2315: checking whether the C compiler needs -belf" >&5
2315 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2317 else
2319 ac_ext=c
2320 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2321 ac_cpp='$CPP $CPPFLAGS'
2322 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2323 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2324 cross_compiling=$ac_cv_prog_cc_cross
2326 cat > conftest.$ac_ext <<EOF
2327 #line 2328 "configure"
2328 #include "confdefs.h"
2330 int main() {
2332 ; return 0; }
2334 if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2335 rm -rf conftest*
2336 lt_cv_cc_needs_belf=yes
2337 else
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2340 rm -rf conftest*
2341 lt_cv_cc_needs_belf=no
2343 rm -f conftest*
2344 ac_ext=c
2345 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2346 ac_cpp='$CPP $CPPFLAGS'
2347 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2348 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2349 cross_compiling=$ac_cv_prog_cc_cross
2353 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2354 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2355 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2356 CFLAGS="$SAVE_CFLAGS"
2361 esac
2363 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2364 echo "configure:2365: checking how to run the C++ preprocessor" >&5
2365 if test -z "$CXXCPP"; then
2366 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2367 echo $ac_n "(cached) $ac_c" 1>&6
2368 else
2369 ac_ext=C
2370 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2371 ac_cpp='$CXXCPP $CPPFLAGS'
2372 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2373 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2374 cross_compiling=$ac_cv_prog_cxx_cross
2375 CXXCPP="${CXX-g++} -E"
2376 cat > conftest.$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 #include <stdlib.h>
2381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2382 { (eval echo configure:2383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2384 if test -z "$ac_err"; then
2386 else
2387 echo "$ac_err" >&5
2388 echo "configure: failed program was:" >&5
2389 cat conftest.$ac_ext >&5
2390 rm -rf conftest*
2391 CXXCPP=/lib/cpp
2393 rm -f conftest*
2394 ac_cv_prog_CXXCPP="$CXXCPP"
2395 ac_ext=c
2396 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2397 ac_cpp='$CPP $CPPFLAGS'
2398 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2399 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2400 cross_compiling=$ac_cv_prog_cc_cross
2403 CXXCPP="$ac_cv_prog_CXXCPP"
2404 echo "$ac_t""$CXXCPP" 1>&6
2407 # Save cache, so that ltconfig can load it
2408 cat > confcache <<\EOF
2409 # This file is a shell script that caches the results of configure
2410 # tests run on this system so they can be shared between configure
2411 # scripts and configure runs. It is not useful on other systems.
2412 # If it contains results you don't want to keep, you may remove or edit it.
2414 # By default, configure uses ./config.cache as the cache file,
2415 # creating it if it does not exist already. You can give configure
2416 # the --cache-file=FILE option to use a different cache file; that is
2417 # what configure does when it calls configure scripts in
2418 # subdirectories, so they share the cache.
2419 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2420 # config.status only pays attention to the cache file if you give it the
2421 # --recheck option to rerun configure.
2424 # The following way of writing the cache mishandles newlines in values,
2425 # but we know of no workaround that is simple, portable, and efficient.
2426 # So, don't put newlines in cache variables' values.
2427 # Ultrix sh set writes to stderr and can't be redirected directly,
2428 # and sets the high bit in the cache file unless we assign to the vars.
2429 (set) 2>&1 |
2430 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2431 *ac_space=\ *)
2432 # `set' does not quote correctly, so add quotes (double-quote substitution
2433 # turns \\\\ into \\, and sed turns \\ into \).
2434 sed -n \
2435 -e "s/'/'\\\\''/g" \
2436 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2439 # `set' quotes correctly as required by POSIX, so do not add quotes.
2440 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2442 esac >> confcache
2443 if cmp -s $cache_file confcache; then
2445 else
2446 if test -w $cache_file; then
2447 echo "updating cache $cache_file"
2448 cat confcache > $cache_file
2449 else
2450 echo "not updating unwritable cache $cache_file"
2453 rm -f confcache
2456 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2457 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2458 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2459 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2460 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2461 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2462 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2463 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2464 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2465 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2467 # Reload cache, that may have been modified by ltconfig
2468 if test -r "$cache_file"; then
2469 echo "loading cache $cache_file"
2470 . $cache_file
2471 else
2472 echo "creating cache $cache_file"
2473 > $cache_file
2477 # This can be used to rebuild libtool when needed
2478 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2480 # Always use our own libtool.
2481 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2483 # Redirect the config.log output again, so that the ltconfig log is not
2484 # clobbered by the next message.
2485 exec 5>>./config.log
2490 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2491 lt_save_CC="$CC"
2492 lt_save_CFLAGS="$CFLAGS"
2493 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2494 MAGIC_CMD="$MAGIC_CMD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2495 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2496 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2497 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2498 deplibs_check_method="$deplibs_check_method" \
2499 file_magic_cmd="$file_magic_cmd" \
2500 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2501 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2502 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2503 CC="$lt_save_CC"
2504 CFLAGS="$lt_save_CFLAGS"
2506 # Redirect the config.log output again, so that the ltconfig log is not
2507 # clobbered by the next message.
2508 exec 5>>./config.log
2518 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2519 echo "configure:2520: checking for GNU make" >&5
2520 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2522 else
2523 _cv_gnu_make_command='' ;
2524 for a in "${MAKE-make}" make gmake gnumake ; do
2525 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2526 then
2527 _cv_gnu_make_command=$a ;
2528 break;
2530 done ;
2534 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2535 if test "x$_cv_gnu_make_command" != "x" ; then
2536 ifGNUmake='' ;
2537 else
2538 ifGNUmake='#' ;
2542 if test "x$_cv_gnu_make_command" = "x"; then
2543 { echo "configure: error: GNU make not found. Please install it or correct your path." 1>&2; exit 1; }
2549 # Check for c++ or library specific bits that don't require linking.
2551 if test ! -f stamp-sanity-compiler; then
2552 echo $ac_n "checking for g++ that will successfully compile libstdc++-v3""... $ac_c" 1>&6
2553 echo "configure:2554: checking for g++ that will successfully compile libstdc++-v3" >&5
2555 ac_ext=C
2556 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2557 ac_cpp='$CXXCPP $CPPFLAGS'
2558 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2559 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2560 cross_compiling=$ac_cv_prog_cxx_cross
2562 cat > conftest.$ac_ext <<EOF
2563 #line 2564 "configure"
2564 #include "confdefs.h"
2566 #if __GNUC__ >= 3
2568 #endif
2571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2572 egrep "ok" >/dev/null 2>&1; then
2573 rm -rf conftest*
2574 gpp_satisfactory=yes
2575 else
2576 rm -rf conftest*
2577 { echo "configure: error: please upgrade to GCC 3.0 or above" 1>&2; exit 1; }
2579 rm -f conftest*
2581 ac_ext=c
2582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2583 ac_cpp='$CPP $CPPFLAGS'
2584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2586 cross_compiling=$ac_cv_prog_cc_cross
2588 echo "$ac_t""$gpp_satisfactory" 1>&6
2589 touch stamp-sanity-compiler
2593 # Enable all the crazy c++ stuff. C_MBCHAR must come early.
2594 # Check whether --enable-debug or --disable-debug was given.
2595 if test "${enable_debug+set}" = set; then
2596 enableval="$enable_debug"
2597 case "${enableval}" in
2598 yes) enable_debug=yes ;;
2599 no) enable_debug=no ;;
2600 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2601 esac
2602 else
2603 enable_debug=no
2606 case "${enable_debug}" in
2607 yes)
2608 DEBUG_FLAGS='-O0 -ggdb3'
2610 no)
2611 DEBUG_FLAGS='-g'
2613 esac
2616 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2617 echo "configure:2618: checking how to run the C preprocessor" >&5
2618 # On Suns, sometimes $CPP names a directory.
2619 if test -n "$CPP" && test -d "$CPP"; then
2620 CPP=
2622 if test -z "$CPP"; then
2623 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6
2625 else
2626 # This must be in double quotes, not single quotes, because CPP may get
2627 # substituted into the Makefile and "${CC-cc}" will confuse make.
2628 CPP="${CC-cc} -E"
2629 # On the NeXT, cc -E runs the code through the compiler's parser,
2630 # not just through cpp.
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2634 #include <assert.h>
2635 Syntax Error
2637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2638 { (eval echo configure:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2640 if test -z "$ac_err"; then
2642 else
2643 echo "$ac_err" >&5
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2646 rm -rf conftest*
2647 CPP="${CC-cc} -E -traditional-cpp"
2648 cat > conftest.$ac_ext <<EOF
2649 #line 2650 "configure"
2650 #include "confdefs.h"
2651 #include <assert.h>
2652 Syntax Error
2654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2655 { (eval echo configure:2656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2657 if test -z "$ac_err"; then
2659 else
2660 echo "$ac_err" >&5
2661 echo "configure: failed program was:" >&5
2662 cat conftest.$ac_ext >&5
2663 rm -rf conftest*
2664 CPP="${CC-cc} -nologo -E"
2665 cat > conftest.$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2668 #include <assert.h>
2669 Syntax Error
2671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2672 { (eval echo configure:2673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2673 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2674 if test -z "$ac_err"; then
2676 else
2677 echo "$ac_err" >&5
2678 echo "configure: failed program was:" >&5
2679 cat conftest.$ac_ext >&5
2680 rm -rf conftest*
2681 CPP=/lib/cpp
2683 rm -f conftest*
2685 rm -f conftest*
2687 rm -f conftest*
2688 ac_cv_prog_CPP="$CPP"
2690 CPP="$ac_cv_prog_CPP"
2691 else
2692 ac_cv_prog_CPP="$CPP"
2694 echo "$ac_t""$CPP" 1>&6
2697 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2698 echo "configure:2699: checking for cstdio to use" >&5
2699 # Check whether --enable-cstdio or --disable-cstdio was given.
2700 if test "${enable_cstdio+set}" = set; then
2701 enableval="$enable_cstdio"
2702 if test x$enable_cstdio = xno; then
2703 enable_cstdio=stdio
2705 else
2706 enable_cstdio=stdio
2710 enable_cstdio_flag=$enable_cstdio
2712 case x${enable_cstdio_flag} in
2713 xlibio)
2714 CSTDIO_H=config/c_io_libio.h
2715 BASIC_FILE_H=config/basic_file_libio.h
2716 BASIC_FILE_CC=config/basic_file_libio.cc
2717 echo "$ac_t""libio" 1>&6
2719 # see if we are on a system with libio native (ie, linux)
2720 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2721 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2722 echo "configure:2723: checking for libio.h" >&5
2723 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2725 else
2726 cat > conftest.$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2729 #include <libio.h>
2731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2732 { (eval echo configure:2733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2734 if test -z "$ac_err"; then
2735 rm -rf conftest*
2736 eval "ac_cv_header_$ac_safe=yes"
2737 else
2738 echo "$ac_err" >&5
2739 echo "configure: failed program was:" >&5
2740 cat conftest.$ac_ext >&5
2741 rm -rf conftest*
2742 eval "ac_cv_header_$ac_safe=no"
2744 rm -f conftest*
2746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2747 echo "$ac_t""yes" 1>&6
2748 has_libio=yes
2749 else
2750 echo "$ac_t""no" 1>&6
2751 has_libio=no
2755 # Need to check and see what version of glibc is being used. If
2756 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2757 # compile most of libio for linux systems.
2758 if test x$has_libio = x"yes"; then
2759 case "$target" in
2760 *-*-linux*)
2761 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2762 echo "configure:2763: checking for glibc version >= 2.2" >&5
2763 cat > conftest.$ac_ext <<EOF
2764 #line 2765 "configure"
2765 #include "confdefs.h"
2767 #include <features.h>
2768 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2770 #endif
2773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2774 egrep "ok" >/dev/null 2>&1; then
2775 rm -rf conftest*
2776 glibc_satisfactory=yes
2777 else
2778 rm -rf conftest*
2779 glibc_satisfactory=no
2781 rm -f conftest*
2783 echo "$ac_t""$glibc_satisfactory" 1>&6
2785 esac
2787 # XXX at the moment, admit defeat and force the recompilation
2788 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2789 glibc_satisfactory=no
2791 if test x$glibc_satisfactory = x"yes"; then
2792 need_libio=no
2793 need_wlibio=no
2794 else
2795 need_libio=yes
2796 # bkoz XXX need to add checks to enable this
2797 # pme XXX here's a first pass at such a check
2798 if test x$enable_c_mbchar != xno; then
2799 need_wlibio=yes
2800 else
2801 need_wlibio=no
2805 else
2806 # Using libio, but <libio.h> doesn't exist on the target system. . .
2807 need_libio=yes
2808 # bkoz XXX need to add checks to enable this
2809 # pme XXX here's a first pass at such a check
2810 if test x$enable_c_mbchar != xno; then
2811 need_wlibio=yes
2812 else
2813 need_wlibio=no
2817 xstdio | x | xno | xnone | xyes)
2818 # default
2819 CSTDIO_H=config/c_io_stdio.h
2820 BASIC_FILE_H=config/basic_file_stdio.h
2821 BASIC_FILE_CC=config/basic_file_stdio.cc
2822 echo "$ac_t""stdio" 1>&6
2824 # We're not using stdio.
2825 need_libio=no
2826 need_wlibio=no
2829 echo "$enable_cstdio is an unknown io package" 1>&2
2830 exit 1
2832 esac
2837 # 2000-08-04 bkoz hack
2838 CCODECVT_C=config/c_io_libio_codecvt.c
2840 # 2000-08-04 bkoz hack
2844 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2845 GLIBCPP_BUILD_LIBIO_TRUE=
2846 GLIBCPP_BUILD_LIBIO_FALSE='#'
2847 else
2848 GLIBCPP_BUILD_LIBIO_TRUE='#'
2849 GLIBCPP_BUILD_LIBIO_FALSE=
2853 if test "$need_libio" = yes; then
2854 GLIBCPP_NEED_LIBIO_TRUE=
2855 GLIBCPP_NEED_LIBIO_FALSE='#'
2856 else
2857 GLIBCPP_NEED_LIBIO_TRUE='#'
2858 GLIBCPP_NEED_LIBIO_FALSE=
2862 if test "$need_wlibio" = yes; then
2863 GLIBCPP_NEED_WLIBIO_TRUE=
2864 GLIBCPP_NEED_WLIBIO_FALSE='#'
2865 else
2866 GLIBCPP_NEED_WLIBIO_TRUE='#'
2867 GLIBCPP_NEED_WLIBIO_FALSE=
2869 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2870 libio_la=../libio/libio.la
2871 else
2872 libio_la=
2877 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2878 echo "configure:2879: checking for clocale to use" >&5
2879 # Check whether --enable-clocale or --disable-clocale was given.
2880 if test "${enable_clocale+set}" = set; then
2881 enableval="$enable_clocale"
2882 if test x$enable_clocale = xno; then
2883 enable_clocale=generic
2885 else
2886 enable_clocale=generic
2890 enable_clocale_flag=$enable_clocale
2892 case x${enable_clocale_flag} in
2893 xgnu)
2894 CLOCALE_H=config/c_locale_gnu.h
2895 CLOCALE_CC=config/c_locale_gnu.cc
2896 echo "$ac_t""gnu" 1>&6
2898 xgeneric)
2899 CLOCALE_H=config/c_locale_generic.h
2900 CLOCALE_CC=config/c_locale_generic.cc
2901 echo "$ac_t""generic" 1>&6
2904 echo "$enable_clocale is an unknown locale package" 1>&2
2905 exit 1
2907 esac
2912 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
2913 if test "${enable_c_mbchar+set}" = set; then
2914 enableval="$enable_c_mbchar"
2915 case "$enableval" in
2916 yes) enable_c_mbchar=yes ;;
2917 no) enable_c_mbchar=no ;;
2918 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
2919 esac
2920 else
2921 enable_c_mbchar=yes
2925 # Check whether --enable-long-long or --disable-long-long was given.
2926 if test "${enable_long_long+set}" = set; then
2927 enableval="$enable_long_long"
2928 case "$enableval" in
2929 yes) enable_long_long=yes ;;
2930 no) enable_long_long=no ;;
2931 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
2932 esac
2933 else
2934 enable_long_long=no
2937 # Allow use of os-dependent settings, so that macros that turn on
2938 # C99 capabilities can be defined and used in a consistent way.
2939 OS_INC_PATH=${srcdir}/$os_include_dir
2940 ac_test_CFLAGS="${CFLAGS+set}"
2941 ac_save_CFLAGS="$CFLAGS"
2942 CFLAGS="-I$OS_INC_PATH"
2944 # Check for the existence of functions used if long long is enabled.
2945 echo $ac_n "checking for strtoll""... $ac_c" 1>&6
2946 echo "configure:2947: checking for strtoll" >&5
2947 if eval "test \"`echo '$''{'ac_cv_func_strtoll'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2949 else
2950 cat > conftest.$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 /* System header to define __stub macros and hopefully few prototypes,
2954 which can conflict with char strtoll(); below. */
2955 #include <assert.h>
2956 /* Override any gcc2 internal prototype to avoid an error. */
2957 /* We use char because int might match the return type of a gcc2
2958 builtin and then its argument prototype would still apply. */
2959 char strtoll();
2961 int main() {
2963 /* The GNU C library defines this for functions which it implements
2964 to always fail with ENOSYS. Some functions are actually named
2965 something starting with __ and the normal name is an alias. */
2966 #if defined (__stub_strtoll) || defined (__stub___strtoll)
2967 choke me
2968 #else
2969 strtoll();
2970 #endif
2972 ; return 0; }
2974 if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2975 rm -rf conftest*
2976 eval "ac_cv_func_strtoll=yes"
2977 else
2978 echo "configure: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2980 rm -rf conftest*
2981 eval "ac_cv_func_strtoll=no"
2983 rm -f conftest*
2986 if eval "test \"`echo '$ac_cv_func_'strtoll`\" = yes"; then
2987 echo "$ac_t""yes" 1>&6
2989 else
2990 echo "$ac_t""no" 1>&6
2991 ac_strtoll=no
2994 echo $ac_n "checking for strtoull""... $ac_c" 1>&6
2995 echo "configure:2996: checking for strtoull" >&5
2996 if eval "test \"`echo '$''{'ac_cv_func_strtoull'+set}'`\" = set"; then
2997 echo $ac_n "(cached) $ac_c" 1>&6
2998 else
2999 cat > conftest.$ac_ext <<EOF
3000 #line 3001 "configure"
3001 #include "confdefs.h"
3002 /* System header to define __stub macros and hopefully few prototypes,
3003 which can conflict with char strtoull(); below. */
3004 #include <assert.h>
3005 /* Override any gcc2 internal prototype to avoid an error. */
3006 /* We use char because int might match the return type of a gcc2
3007 builtin and then its argument prototype would still apply. */
3008 char strtoull();
3010 int main() {
3012 /* The GNU C library defines this for functions which it implements
3013 to always fail with ENOSYS. Some functions are actually named
3014 something starting with __ and the normal name is an alias. */
3015 #if defined (__stub_strtoull) || defined (__stub___strtoull)
3016 choke me
3017 #else
3018 strtoull();
3019 #endif
3021 ; return 0; }
3023 if { (eval echo configure:3024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3024 rm -rf conftest*
3025 eval "ac_cv_func_strtoull=yes"
3026 else
3027 echo "configure: failed program was:" >&5
3028 cat conftest.$ac_ext >&5
3029 rm -rf conftest*
3030 eval "ac_cv_func_strtoull=no"
3032 rm -f conftest*
3035 if eval "test \"`echo '$ac_cv_func_'strtoull`\" = yes"; then
3036 echo "$ac_t""yes" 1>&6
3038 else
3039 echo "$ac_t""no" 1>&6
3040 ac_strtoull=no
3044 # Check for lldiv_t, et. al.
3045 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3046 echo "configure:3047: checking for lldiv_t declaration" >&5
3047 if eval "test \"`echo '$''{'glibcpp_lldiv_t_use'+set}'`\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3049 else
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 #include <bits/os_defines.h>
3055 #include <stdlib.h>
3056 int main() {
3057 lldiv_t mydivt;
3058 ; return 0; }
3060 if { (eval echo configure:3061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3061 rm -rf conftest*
3062 glibcpp_lldiv_t_use=yes
3063 else
3064 echo "configure: failed program was:" >&5
3065 cat conftest.$ac_ext >&5
3066 rm -rf conftest*
3067 glibcpp_lldiv_t_use=no
3069 rm -f conftest*
3073 echo "$ac_t""$glibcpp_lldiv_t_use" 1>&6
3074 if test x$glibcpp_lldiv_t_use = x"yes"; then
3075 cat >> confdefs.h <<\EOF
3076 #define HAVE_LLDIV_T 1
3081 echo $ac_n "checking for enabled long long""... $ac_c" 1>&6
3082 echo "configure:3083: checking for enabled long long" >&5
3083 if test x"$ac_strtoll" = xno || test x"$ac_strtoull" = xno; then
3084 enable_long_long=no;
3085 fi;
3086 echo "$ac_t""$enable_long_long" 1>&6
3088 # Option parsed, now set things appropriately
3089 if test x"$enable_long_long" = xyes; then
3090 cat >> confdefs.h <<\EOF
3091 #define _GLIBCPP_USE_LONG_LONG 1
3096 # Reset CFLAGS
3097 CFLAGS="$ac_save_CFLAGS"
3099 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3100 echo "configure:3101: checking for c header strategy to use" >&5
3101 # Check whether --enable-cheaders or --disable-cheaders was given.
3102 if test "${enable_cheaders+set}" = set; then
3103 enableval="$enable_cheaders"
3105 case "$enableval" in
3107 enable_cheaders=c
3109 c_std)
3110 enable_cheaders=c_std
3112 c_shadow)
3113 enable_cheaders=c_shadow
3115 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3117 esac
3118 else
3119 enable_cheaders=c_std
3122 echo "$ac_t""$enable_cheaders" 1>&6
3124 case "$enable_cheaders" in
3125 c_shadow)
3126 CSHADOW_FLAGS="-fno-builtin"
3127 C_INCLUDE_DIR='${top_srcdir}/include/c_shadow'
3128 cat >> confdefs.h <<\EOF
3129 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3133 c_std)
3134 CSHADOW_FLAGS=""
3135 C_INCLUDE_DIR='${top_srcdir}/include/c_std'
3138 CSHADOW_FLAGS=""
3139 C_INCLUDE_DIR='${top_srcdir}/include/c'
3141 esac
3147 if test "$enable_cheaders" = c_shadow; then
3148 GLIBCPP_USE_CSHADOW_TRUE=
3149 GLIBCPP_USE_CSHADOW_FALSE='#'
3150 else
3151 GLIBCPP_USE_CSHADOW_TRUE='#'
3152 GLIBCPP_USE_CSHADOW_FALSE=
3156 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
3157 echo "configure:3158: checking for threads package to use" >&5
3158 # Check whether --enable-threads or --disable-threads was given.
3159 if test "${enable_threads+set}" = set; then
3160 enableval="$enable_threads"
3161 if test x$enable_threads = xno; then
3162 enable_threads=''
3164 else
3165 enable_threads=''
3169 enable_threads_flag=$enable_threads
3171 case x${enable_threads_flag} in
3172 x | xno | xnone)
3173 # No threads
3174 target_thread_file='single'
3176 xyes)
3177 # default
3178 target_thread_file='posix'
3180 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
3181 xsolaris | xwin32 | xdce | xvxworks)
3182 target_thread_file=$enable_threads_flag
3185 echo "$enable_threads is an unknown thread package" 1>&2
3186 exit 1
3188 esac
3190 THREADH=
3191 case "$target_thread_file" in
3192 no | none | single)
3193 THREADH=threads-no.h
3195 posix | pthreads)
3196 THREADH=threads-posix.h
3198 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3199 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3202 { echo "configure: error: $THREADS is an unsupported/unknown thread package" 1>&2; exit 1; }
3204 esac
3205 echo "$ac_t""$THREADH" 1>&6
3208 if test $THREADH != threads-no.h; then
3209 cat >> confdefs.h <<\EOF
3210 #define _GLIBCPP_USE_THREADS 1
3215 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3216 if test "${enable_cxx_flags+set}" = set; then
3217 enableval="$enable_cxx_flags"
3218 case "x$enableval" in
3219 xyes)
3220 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3221 xno|x)
3222 enable_cxx_flags='' ;;
3224 enable_cxx_flags="$enableval" ;;
3225 esac
3226 else
3227 enable_cxx_flags='none'
3231 if test "$enable_cxx_flags" = "none"; then
3232 enable_cxx_flags='';
3235 if test -n "$enable_cxx_flags"; then
3236 for f in $enable_cxx_flags; do
3237 case "$f" in
3238 -fhonor-std) ;;
3239 -*) ;;
3240 *) # and we're trying to pass /what/ exactly?
3241 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3242 esac
3243 done
3245 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3249 if test -n "$with_cross_host"; then
3251 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3252 # may not work correctly, because the compiler may not be able to
3253 # link executables.
3254 xcompiling=1
3255 NATIVE=no
3257 # If Canadian cross, then don't pick up tools from the build
3258 # directory.
3259 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3260 CANADIAN=yes
3261 NULL_TARGET=yes
3262 else
3263 CANADIAN=no
3264 NULL_TARGET=no
3267 case "$target_alias" in
3268 *-linux*)
3269 # Construct linux crosses by hand, eliminating bits that need ld...
3270 # Check for available headers.
3271 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3272 machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
3273 float.h inttypes.h
3275 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3276 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3277 echo "configure:3278: checking for $ac_hdr" >&5
3278 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3279 echo $ac_n "(cached) $ac_c" 1>&6
3280 else
3281 cat > conftest.$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
3284 #include <$ac_hdr>
3286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3287 { (eval echo configure:3288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3288 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3289 if test -z "$ac_err"; then
3290 rm -rf conftest*
3291 eval "ac_cv_header_$ac_safe=yes"
3292 else
3293 echo "$ac_err" >&5
3294 echo "configure: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3296 rm -rf conftest*
3297 eval "ac_cv_header_$ac_safe=no"
3299 rm -f conftest*
3301 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3302 echo "$ac_t""yes" 1>&6
3303 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3304 cat >> confdefs.h <<EOF
3305 #define $ac_tr_hdr 1
3308 else
3309 echo "$ac_t""no" 1>&6
3311 done
3314 # GLIBCPP_CHECK_COMPILER_FEATURES
3315 SECTION_FLAGS='-ffunction-sections -fdata-sections'
3318 # If we're not using GNU ld, then there's no point in even trying these
3319 # tests. Check for that first. We should have already tested for gld
3320 # by now (in libtool), but require it now just to be safe...
3321 SECTION_LDFLAGS=''
3322 OPT_LDFLAGS=''
3325 # Set --gc-sections.
3326 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3327 # GNU ld it is! Joy and bunny rabbits!
3329 # All these tests are for C++; save the language and the compiler flags.
3330 # Need to do this so that g++ won't try to link in libstdc++
3331 ac_test_CFLAGS="${CFLAGS+set}"
3332 ac_save_CFLAGS="$CFLAGS"
3333 CFLAGS='-x c++ -Wl,--gc-sections'
3335 # Check for -Wl,--gc-sections
3336 # XXX This test is broken at the moment, as symbols required for
3337 # linking are now in libsupc++ (not built yet.....). In addition,
3338 # this test has cored on solaris in the past. In addition,
3339 # --gc-sections doesn't really work at the moment (keeps on discarding
3340 # used sections, first .eh_frame and now some of the glibc sections for
3341 # iconv). Bzzzzt. Thanks for playing, maybe next time.
3342 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3343 echo "configure:3344: checking for ld that supports -Wl,--gc-sections" >&5
3344 if test "$cross_compiling" = yes; then
3345 ac_sectionLDflags=yes
3346 else
3347 cat > conftest.$ac_ext <<EOF
3348 #line 3349 "configure"
3349 #include "confdefs.h"
3351 int main(void)
3353 try { throw 1; }
3354 catch (...) { };
3355 return 0;
3359 if { (eval echo configure:3360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3360 then
3361 ac_sectionLDflags=yes
3362 else
3363 echo "configure: failed program was:" >&5
3364 cat conftest.$ac_ext >&5
3365 rm -fr conftest*
3366 ac_sectionLFflags=no
3368 rm -fr conftest*
3371 if test "$ac_test_CFLAGS" = set; then
3372 CFLAGS="$ac_save_CFLAGS"
3373 else
3374 # this is the suspicious part
3375 CFLAGS=''
3377 if test "$ac_sectionLDflags" = "yes"; then
3378 SECTION_LDFLAGS='-Wl,--gc-sections'
3380 echo "$ac_t""$ac_sectionLDflags" 1>&6
3383 # Set linker optimization flags.
3384 if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
3385 OPT_LDFLAGS='-Wl,-O1'
3391 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3392 # GLIBCPP_CHECK_MATH_SUPPORT
3393 cat >> confdefs.h <<\EOF
3394 #define HAVE_ACOSF 1
3397 cat >> confdefs.h <<\EOF
3398 #define HAVE_ASINF 1
3401 cat >> confdefs.h <<\EOF
3402 #define HAVE_ATAN2F 1
3405 cat >> confdefs.h <<\EOF
3406 #define HAVE_ATANF 1
3409 cat >> confdefs.h <<\EOF
3410 #define HAVE_CEILF 1
3413 cat >> confdefs.h <<\EOF
3414 #define HAVE_COPYSIGN 1
3417 cat >> confdefs.h <<\EOF
3418 #define HAVE_COPYSIGNF 1
3421 cat >> confdefs.h <<\EOF
3422 #define HAVE_COSF 1
3425 cat >> confdefs.h <<\EOF
3426 #define HAVE_COSHF 1
3429 cat >> confdefs.h <<\EOF
3430 #define HAVE_EXPF 1
3433 cat >> confdefs.h <<\EOF
3434 #define HAVE_FABSF 1
3437 cat >> confdefs.h <<\EOF
3438 #define HAVE_FINITE 1
3441 cat >> confdefs.h <<\EOF
3442 #define HAVE_FINITEF 1
3445 cat >> confdefs.h <<\EOF
3446 #define HAVE_FLOORF 1
3449 cat >> confdefs.h <<\EOF
3450 #define HAVE_FMODF 1
3453 cat >> confdefs.h <<\EOF
3454 #define HAVE_FREXPF 1
3457 cat >> confdefs.h <<\EOF
3458 #define HAVE_ISINF 1
3461 cat >> confdefs.h <<\EOF
3462 #define HAVE_ISINFF 1
3465 cat >> confdefs.h <<\EOF
3466 #define HAVE_ISNAN 1
3469 cat >> confdefs.h <<\EOF
3470 #define HAVE_ISNANF 1
3473 cat >> confdefs.h <<\EOF
3474 #define HAVE_LDEXPF 1
3477 cat >> confdefs.h <<\EOF
3478 #define HAVE_LOG10F 1
3481 cat >> confdefs.h <<\EOF
3482 #define HAVE_LOGF 1
3485 cat >> confdefs.h <<\EOF
3486 #define HAVE_MODFF 1
3489 cat >> confdefs.h <<\EOF
3490 #define HAVE_POWF 1
3493 cat >> confdefs.h <<\EOF
3494 #define HAVE_SINCOS 1
3497 cat >> confdefs.h <<\EOF
3498 #define HAVE_SINCOSF 1
3501 cat >> confdefs.h <<\EOF
3502 #define HAVE_SINF 1
3505 cat >> confdefs.h <<\EOF
3506 #define HAVE_SINHF 1
3509 cat >> confdefs.h <<\EOF
3510 #define HAVE_SQRTF 1
3513 cat >> confdefs.h <<\EOF
3514 #define HAVE_TANF 1
3517 cat >> confdefs.h <<\EOF
3518 #define HAVE_TANHF 1
3522 # At some point, we should differentiate between architectures
3523 # like x86, which have long double versions, and alpha/powerpc/etc.,
3524 # which don't. For the time being, punt.
3525 if test x"long_double_math_on_this_cpu" = x"yes"; then
3526 cat >> confdefs.h <<\EOF
3527 #define HAVE_ACOSL 1
3530 cat >> confdefs.h <<\EOF
3531 #define HAVE_ASINL 1
3534 cat >> confdefs.h <<\EOF
3535 #define HAVE_ATAN2L 1
3538 cat >> confdefs.h <<\EOF
3539 #define HAVE_ATANL 1
3542 cat >> confdefs.h <<\EOF
3543 #define HAVE_CEILL 1
3546 cat >> confdefs.h <<\EOF
3547 #define HAVE_COPYSIGNL 1
3550 cat >> confdefs.h <<\EOF
3551 #define HAVE_COSL 1
3554 cat >> confdefs.h <<\EOF
3555 #define HAVE_COSHL 1
3558 cat >> confdefs.h <<\EOF
3559 #define HAVE_EXPL 1
3562 cat >> confdefs.h <<\EOF
3563 #define HAVE_FABSL 1
3566 cat >> confdefs.h <<\EOF
3567 #define HAVE_FINITEL 1
3570 cat >> confdefs.h <<\EOF
3571 #define HAVE_FLOORL 1
3574 cat >> confdefs.h <<\EOF
3575 #define HAVE_FMODL 1
3578 cat >> confdefs.h <<\EOF
3579 #define HAVE_FREXPL 1
3582 cat >> confdefs.h <<\EOF
3583 #define HAVE_ISINFL 1
3586 cat >> confdefs.h <<\EOF
3587 #define HAVE_ISNANL 1
3590 cat >> confdefs.h <<\EOF
3591 #define HAVE_LDEXPL 1
3594 cat >> confdefs.h <<\EOF
3595 #define HAVE_LOG10L 1
3598 cat >> confdefs.h <<\EOF
3599 #define HAVE_LOGL 1
3602 cat >> confdefs.h <<\EOF
3603 #define HAVE_MODFL 1
3606 cat >> confdefs.h <<\EOF
3607 #define HAVE_POWL 1
3610 cat >> confdefs.h <<\EOF
3611 #define HAVE_SINCOSL 1
3614 cat >> confdefs.h <<\EOF
3615 #define HAVE_SINL 1
3618 cat >> confdefs.h <<\EOF
3619 #define HAVE_SINHL 1
3622 cat >> confdefs.h <<\EOF
3623 #define HAVE_SQRTL 1
3626 cat >> confdefs.h <<\EOF
3627 #define HAVE_TANL 1
3630 cat >> confdefs.h <<\EOF
3631 #define HAVE_TANHL 1
3636 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3637 echo "configure:3638: checking for main in -lm" >&5
3638 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3640 echo $ac_n "(cached) $ac_c" 1>&6
3641 else
3642 ac_save_LIBS="$LIBS"
3643 LIBS="-lm $LIBS"
3644 cat > conftest.$ac_ext <<EOF
3645 #line 3646 "configure"
3646 #include "confdefs.h"
3648 int main() {
3649 main()
3650 ; return 0; }
3652 if { (eval echo configure:3653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3653 rm -rf conftest*
3654 eval "ac_cv_lib_$ac_lib_var=yes"
3655 else
3656 echo "configure: failed program was:" >&5
3657 cat conftest.$ac_ext >&5
3658 rm -rf conftest*
3659 eval "ac_cv_lib_$ac_lib_var=no"
3661 rm -f conftest*
3662 LIBS="$ac_save_LIBS"
3665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3666 echo "$ac_t""yes" 1>&6
3667 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3668 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3669 cat >> confdefs.h <<EOF
3670 #define $ac_tr_lib 1
3673 LIBS="-lm $LIBS"
3675 else
3676 echo "$ac_t""no" 1>&6
3679 for ac_func in nan hypot hypotf atan2f expf copysignf
3681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3682 echo "configure:3683: checking for $ac_func" >&5
3683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3684 echo $ac_n "(cached) $ac_c" 1>&6
3685 else
3686 cat > conftest.$ac_ext <<EOF
3687 #line 3688 "configure"
3688 #include "confdefs.h"
3689 /* System header to define __stub macros and hopefully few prototypes,
3690 which can conflict with char $ac_func(); below. */
3691 #include <assert.h>
3692 /* Override any gcc2 internal prototype to avoid an error. */
3693 /* We use char because int might match the return type of a gcc2
3694 builtin and then its argument prototype would still apply. */
3695 char $ac_func();
3697 int main() {
3699 /* The GNU C library defines this for functions which it implements
3700 to always fail with ENOSYS. Some functions are actually named
3701 something starting with __ and the normal name is an alias. */
3702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3703 choke me
3704 #else
3705 $ac_func();
3706 #endif
3708 ; return 0; }
3710 if { (eval echo configure:3711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3711 rm -rf conftest*
3712 eval "ac_cv_func_$ac_func=yes"
3713 else
3714 echo "configure: failed program was:" >&5
3715 cat conftest.$ac_ext >&5
3716 rm -rf conftest*
3717 eval "ac_cv_func_$ac_func=no"
3719 rm -f conftest*
3722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3723 echo "$ac_t""yes" 1>&6
3724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3725 cat >> confdefs.h <<EOF
3726 #define $ac_tr_func 1
3729 else
3730 echo "$ac_t""no" 1>&6
3731 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
3733 done
3737 USE_COMPLEX_LONG_DOUBLE=no
3738 if test x$ac_cv_func_atan2l = x"yes" \
3739 && test x$ac_cv_func_copysignl = x"yes"; then
3740 USE_COMPLEX_LONG_DOUBLE=yes
3741 for ac_func in hypotl signbitl
3743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3744 echo "configure:3745: checking for $ac_func" >&5
3745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3746 echo $ac_n "(cached) $ac_c" 1>&6
3747 else
3748 cat > conftest.$ac_ext <<EOF
3749 #line 3750 "configure"
3750 #include "confdefs.h"
3751 /* System header to define __stub macros and hopefully few prototypes,
3752 which can conflict with char $ac_func(); below. */
3753 #include <assert.h>
3754 /* Override any gcc2 internal prototype to avoid an error. */
3755 /* We use char because int might match the return type of a gcc2
3756 builtin and then its argument prototype would still apply. */
3757 char $ac_func();
3759 int main() {
3761 /* The GNU C library defines this for functions which it implements
3762 to always fail with ENOSYS. Some functions are actually named
3763 something starting with __ and the normal name is an alias. */
3764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3765 choke me
3766 #else
3767 $ac_func();
3768 #endif
3770 ; return 0; }
3772 if { (eval echo configure:3773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3773 rm -rf conftest*
3774 eval "ac_cv_func_$ac_func=yes"
3775 else
3776 echo "configure: failed program was:" >&5
3777 cat conftest.$ac_ext >&5
3778 rm -rf conftest*
3779 eval "ac_cv_func_$ac_func=no"
3781 rm -f conftest*
3784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3785 echo "$ac_t""yes" 1>&6
3786 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3787 cat >> confdefs.h <<EOF
3788 #define $ac_tr_func 1
3791 else
3792 echo "$ac_t""no" 1>&6
3793 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
3795 done
3805 echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
3806 echo "configure:3807: checking for GNU C++ __complex__ support" >&5
3807 if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
3808 echo $ac_n "(cached) $ac_c" 1>&6
3809 else
3812 ac_ext=C
3813 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3814 ac_cpp='$CXXCPP $CPPFLAGS'
3815 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3816 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3817 cross_compiling=$ac_cv_prog_cxx_cross
3819 cat > conftest.$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3822 struct dcomplex { __complex__ double x; }; \
3823 dcomplex f(const dcomplex& x) { return dcomplex(x); }
3824 int main() {
3826 dcomplex x; f(x);
3827 ; return 0; }
3829 if { (eval echo configure:3830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3830 rm -rf conftest*
3831 glibcpp_cv_complex=ok
3832 else
3833 echo "configure: failed program was:" >&5
3834 cat conftest.$ac_ext >&5
3835 rm -rf conftest*
3836 glibcpp_cv_complex=buggy
3839 rm -f conftest*
3840 ac_ext=c
3841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3842 ac_cpp='$CPP $CPPFLAGS'
3843 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3844 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3845 cross_compiling=$ac_cv_prog_cc_cross
3850 echo "$ac_t""$glibcpp_cv_complex" 1>&6
3851 if test $glibcpp_cv_complex = buggy; then
3852 cat >> confdefs.h <<\EOF
3853 #define _GLIBCPP_BUGGY_COMPLEX 1
3858 echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
3859 echo "configure:3860: checking for GNU C++ __complex__ float support" >&5
3860 if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3862 else
3865 ac_ext=C
3866 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3867 ac_cpp='$CXXCPP $CPPFLAGS'
3868 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3869 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3870 cross_compiling=$ac_cv_prog_cxx_cross
3872 rm -f conftest.h
3873 cat > conftest.h <<EOB
3875 // Check for buggy __complex__ that causes ICE in most versions of egcs
3876 // and gcc-2.95.x on certain platforms (eg., x86-win32).
3878 // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
3879 // more info on the bug itself.
3881 struct
3882 float_complex
3884 __complex__ float m_value;
3885 float_complex (float = 0.0f, float = 0.0f);
3886 float_complex (__complex__ float val) : m_value (val) {}
3887 float_complex foo (const float_complex &val)
3888 { return float_complex (~val.m_value); }
3891 cat > conftest.$ac_ext <<EOF
3892 #line 3893 "configure"
3893 #include "confdefs.h"
3894 #include "conftest.h"
3895 int main() {
3897 ; return 0; }
3899 if { (eval echo configure:3900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3900 rm -rf conftest*
3901 glibcpp_cv_float_complex=ok
3902 else
3903 echo "configure: failed program was:" >&5
3904 cat conftest.$ac_ext >&5
3905 rm -rf conftest*
3906 glibcpp_cv_float_complex=buggy
3909 rm -f conftest*
3910 ac_ext=c
3911 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3912 ac_cpp='$CPP $CPPFLAGS'
3913 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3914 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3915 cross_compiling=$ac_cv_prog_cc_cross
3920 echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
3921 if test $glibcpp_cv_float_complex = buggy; then
3922 cat >> confdefs.h <<\EOF
3923 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
3930 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
3931 echo "configure:3932: checking for mbstate_t" >&5
3932 cat > conftest.$ac_ext <<EOF
3933 #line 3934 "configure"
3934 #include "confdefs.h"
3935 #include <wchar.h>
3936 int main() {
3937 mbstate_t teststate;
3938 ; return 0; }
3940 if { (eval echo configure:3941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3941 rm -rf conftest*
3942 have_mbstate_t=yes
3943 else
3944 echo "configure: failed program was:" >&5
3945 cat conftest.$ac_ext >&5
3946 rm -rf conftest*
3947 have_mbstate_t=no
3949 rm -f conftest*
3950 echo "$ac_t""$have_mbstate_t" 1>&6
3951 if test x"$have_mbstate_t" = xyes; then
3952 cat >> confdefs.h <<\EOF
3953 #define HAVE_MBSTATE_T 1
3958 for ac_hdr in wchar.h
3960 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3962 echo "configure:3963: checking for $ac_hdr" >&5
3963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3964 echo $ac_n "(cached) $ac_c" 1>&6
3965 else
3966 cat > conftest.$ac_ext <<EOF
3967 #line 3968 "configure"
3968 #include "confdefs.h"
3969 #include <$ac_hdr>
3971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3972 { (eval echo configure:3973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3974 if test -z "$ac_err"; then
3975 rm -rf conftest*
3976 eval "ac_cv_header_$ac_safe=yes"
3977 else
3978 echo "$ac_err" >&5
3979 echo "configure: failed program was:" >&5
3980 cat conftest.$ac_ext >&5
3981 rm -rf conftest*
3982 eval "ac_cv_header_$ac_safe=no"
3984 rm -f conftest*
3986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3987 echo "$ac_t""yes" 1>&6
3988 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3989 cat >> confdefs.h <<EOF
3990 #define $ac_tr_hdr 1
3992 ac_has_wchar_h=yes
3993 else
3994 echo "$ac_t""no" 1>&6
3995 ac_has_wchar_h=no
3997 done
3999 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4000 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4001 echo "configure:4002: checking for wctype.h" >&5
4002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4003 echo $ac_n "(cached) $ac_c" 1>&6
4004 else
4005 cat > conftest.$ac_ext <<EOF
4006 #line 4007 "configure"
4007 #include "confdefs.h"
4008 #include <wctype.h>
4010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4011 { (eval echo configure:4012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4013 if test -z "$ac_err"; then
4014 rm -rf conftest*
4015 eval "ac_cv_header_$ac_safe=yes"
4016 else
4017 echo "$ac_err" >&5
4018 echo "configure: failed program was:" >&5
4019 cat conftest.$ac_ext >&5
4020 rm -rf conftest*
4021 eval "ac_cv_header_$ac_safe=no"
4023 rm -f conftest*
4025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4026 echo "$ac_t""yes" 1>&6
4027 ac_has_wctype_h=yes
4028 else
4029 echo "$ac_t""no" 1>&6
4030 ac_has_wctype_h=no
4034 if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
4035 && test x"$enable_c_mbchar" != xno; then
4037 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4038 echo "configure:4039: checking for WCHAR_MIN and WCHAR_MAX" >&5
4039 cat > conftest.$ac_ext <<EOF
4040 #line 4041 "configure"
4041 #include "confdefs.h"
4042 #include <wchar.h>
4043 int main() {
4044 int i = WCHAR_MIN; int j = WCHAR_MAX;
4045 ; return 0; }
4047 if { (eval echo configure:4048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4048 rm -rf conftest*
4049 has_wchar_minmax=yes
4050 else
4051 echo "configure: failed program was:" >&5
4052 cat conftest.$ac_ext >&5
4053 rm -rf conftest*
4054 has_wchar_minmax=no
4056 rm -f conftest*
4057 echo "$ac_t""$has_wchar_minmax" 1>&6
4059 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4060 echo "configure:4061: checking for WEOF" >&5
4061 cat > conftest.$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4065 #include <wchar.h>
4066 #include <stddef.h>
4067 int main() {
4068 wint_t i = WEOF;
4069 ; return 0; }
4071 if { (eval echo configure:4072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4072 rm -rf conftest*
4073 has_weof=yes
4074 else
4075 echo "configure: failed program was:" >&5
4076 cat conftest.$ac_ext >&5
4077 rm -rf conftest*
4078 has_weof=no
4080 rm -f conftest*
4081 echo "$ac_t""$has_weof" 1>&6
4083 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
4084 wcsrtombs mbsrtowcs
4086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4087 echo "configure:4088: checking for $ac_func" >&5
4088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4090 else
4091 cat > conftest.$ac_ext <<EOF
4092 #line 4093 "configure"
4093 #include "confdefs.h"
4094 /* System header to define __stub macros and hopefully few prototypes,
4095 which can conflict with char $ac_func(); below. */
4096 #include <assert.h>
4097 /* Override any gcc2 internal prototype to avoid an error. */
4098 /* We use char because int might match the return type of a gcc2
4099 builtin and then its argument prototype would still apply. */
4100 char $ac_func();
4102 int main() {
4104 /* The GNU C library defines this for functions which it implements
4105 to always fail with ENOSYS. Some functions are actually named
4106 something starting with __ and the normal name is an alias. */
4107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4108 choke me
4109 #else
4110 $ac_func();
4111 #endif
4113 ; return 0; }
4115 if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4116 rm -rf conftest*
4117 eval "ac_cv_func_$ac_func=yes"
4118 else
4119 echo "configure: failed program was:" >&5
4120 cat conftest.$ac_ext >&5
4121 rm -rf conftest*
4122 eval "ac_cv_func_$ac_func=no"
4124 rm -f conftest*
4127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4128 echo "$ac_t""yes" 1>&6
4129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4130 cat >> confdefs.h <<EOF
4131 #define $ac_tr_func 1
4133 ac_wfuncs=yes
4134 else
4135 echo "$ac_t""no" 1>&6
4136 ac_wfuncs=no
4138 done
4141 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4142 echo "configure:4143: checking for ISO C99 wchar_t support" >&5
4143 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
4144 && test x"$ac_wfuncs" = xyes; then
4145 ac_isoC99_wchar_t=yes
4146 else
4147 ac_isoC99_wchar_t=no
4149 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4151 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4152 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4153 echo "configure:4154: checking for iconv.h" >&5
4154 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4156 else
4157 cat > conftest.$ac_ext <<EOF
4158 #line 4159 "configure"
4159 #include "confdefs.h"
4160 #include <iconv.h>
4162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4163 { (eval echo configure:4164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4165 if test -z "$ac_err"; then
4166 rm -rf conftest*
4167 eval "ac_cv_header_$ac_safe=yes"
4168 else
4169 echo "$ac_err" >&5
4170 echo "configure: failed program was:" >&5
4171 cat conftest.$ac_ext >&5
4172 rm -rf conftest*
4173 eval "ac_cv_header_$ac_safe=no"
4175 rm -f conftest*
4177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4178 echo "$ac_t""yes" 1>&6
4179 ac_has_iconv_h=yes
4180 else
4181 echo "$ac_t""no" 1>&6
4182 ac_has_iconv_h=no
4185 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4186 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4187 echo "configure:4188: checking for langinfo.h" >&5
4188 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4189 echo $ac_n "(cached) $ac_c" 1>&6
4190 else
4191 cat > conftest.$ac_ext <<EOF
4192 #line 4193 "configure"
4193 #include "confdefs.h"
4194 #include <langinfo.h>
4196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4197 { (eval echo configure:4198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4199 if test -z "$ac_err"; then
4200 rm -rf conftest*
4201 eval "ac_cv_header_$ac_safe=yes"
4202 else
4203 echo "$ac_err" >&5
4204 echo "configure: failed program was:" >&5
4205 cat conftest.$ac_ext >&5
4206 rm -rf conftest*
4207 eval "ac_cv_header_$ac_safe=no"
4209 rm -f conftest*
4211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4212 echo "$ac_t""yes" 1>&6
4213 ac_has_langinfo_h=yes
4214 else
4215 echo "$ac_t""no" 1>&6
4216 ac_has_langinfo_h=no
4220 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4221 echo "configure:4222: checking for iconv in -liconv" >&5
4222 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4224 echo $ac_n "(cached) $ac_c" 1>&6
4225 else
4226 ac_save_LIBS="$LIBS"
4227 LIBS="-liconv $LIBS"
4228 cat > conftest.$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 /* Override any gcc2 internal prototype to avoid an error. */
4232 /* We use char because int might match the return type of a gcc2
4233 builtin and then its argument prototype would still apply. */
4234 char iconv();
4236 int main() {
4237 iconv()
4238 ; return 0; }
4240 if { (eval echo configure:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4241 rm -rf conftest*
4242 eval "ac_cv_lib_$ac_lib_var=yes"
4243 else
4244 echo "configure: failed program was:" >&5
4245 cat conftest.$ac_ext >&5
4246 rm -rf conftest*
4247 eval "ac_cv_lib_$ac_lib_var=no"
4249 rm -f conftest*
4250 LIBS="$ac_save_LIBS"
4253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4254 echo "$ac_t""yes" 1>&6
4255 libiconv="-liconv"
4256 else
4257 echo "$ac_t""no" 1>&6
4260 ac_save_LIBS="$LIBS"
4261 LIBS="$LIBS $libiconv"
4263 for ac_func in iconv_open iconv_close iconv nl_langinfo
4265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4266 echo "configure:4267: checking for $ac_func" >&5
4267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4268 echo $ac_n "(cached) $ac_c" 1>&6
4269 else
4270 cat > conftest.$ac_ext <<EOF
4271 #line 4272 "configure"
4272 #include "confdefs.h"
4273 /* System header to define __stub macros and hopefully few prototypes,
4274 which can conflict with char $ac_func(); below. */
4275 #include <assert.h>
4276 /* Override any gcc2 internal prototype to avoid an error. */
4277 /* We use char because int might match the return type of a gcc2
4278 builtin and then its argument prototype would still apply. */
4279 char $ac_func();
4281 int main() {
4283 /* The GNU C library defines this for functions which it implements
4284 to always fail with ENOSYS. Some functions are actually named
4285 something starting with __ and the normal name is an alias. */
4286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4287 choke me
4288 #else
4289 $ac_func();
4290 #endif
4292 ; return 0; }
4294 if { (eval echo configure:4295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4295 rm -rf conftest*
4296 eval "ac_cv_func_$ac_func=yes"
4297 else
4298 echo "configure: failed program was:" >&5
4299 cat conftest.$ac_ext >&5
4300 rm -rf conftest*
4301 eval "ac_cv_func_$ac_func=no"
4303 rm -f conftest*
4306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4307 echo "$ac_t""yes" 1>&6
4308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4309 cat >> confdefs.h <<EOF
4310 #define $ac_tr_func 1
4313 ac_XPG2funcs=yes
4314 else
4315 echo "$ac_t""no" 1>&6
4316 ac_XPG2funcs=no
4318 done
4321 LIBS="$ac_save_LIBS"
4323 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4324 echo "configure:4325: checking for XPG2 wchar_t support" >&5
4325 if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
4326 && test x"$ac_XPG2funcs" = xyes; then
4327 ac_XPG2_wchar_t=yes
4328 else
4329 ac_XPG2_wchar_t=no
4331 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4333 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4334 echo "configure:4335: checking for enabled wchar_t specializations" >&5
4335 if test x"$ac_isoC99_wchar_t" = xyes \
4336 && test x"$ac_XPG2_wchar_t" = xyes; then
4337 cat >> confdefs.h <<\EOF
4338 #define _GLIBCPP_USE_WCHAR_T 1
4341 echo "$ac_t"""yes"" 1>&6
4342 else
4343 echo "$ac_t"""no"" 1>&6
4345 else
4346 echo "configure: warning: wchar_t support disabled." 1>&2
4349 os_include_dir="config/os/gnu-linux"
4350 # GLIBCPP_CHECK_STDLIB_SUPPORT
4351 cat >> confdefs.h <<\EOF
4352 #define HAVE_STRTOF 1
4355 cat >> confdefs.h <<\EOF
4356 #define HAVE_STRTOLD 1
4359 # AC_FUNC_MMAP
4360 cat >> confdefs.h <<\EOF
4361 #define HAVE_MMAP 1
4366 # We assume newlib. This lets us hard-code the functions we know
4367 # we'll have.
4368 cat >> confdefs.h <<\EOF
4369 #define HAVE_FINITE 1
4372 cat >> confdefs.h <<\EOF
4373 #define HAVE_ISNAN 1
4376 cat >> confdefs.h <<\EOF
4377 #define HAVE_ISNANF 1
4380 cat >> confdefs.h <<\EOF
4381 #define HAVE_ISINF 1
4384 cat >> confdefs.h <<\EOF
4385 #define HAVE_ISINFF 1
4389 os_include_dir="config/os/newlib"
4391 cat >> confdefs.h <<\EOF
4392 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
4395 cat >> confdefs.h <<\EOF
4396 #define _GLIBCPP_BUGGY_COMPLEX 1
4399 # need to check for faster f versions of math functions, ie sinf?
4401 esac
4402 else
4404 # We are being configured natively. We can do more elaborate tests
4405 # that include AC_TRY_COMPILE now, as the linker is assumed to be
4406 # working.
4407 xcompiling=0
4408 NATIVE=yes
4409 CANADIAN=no
4410 NULL_TARGET=no
4412 # Check for available headers.
4413 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
4414 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
4416 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4417 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4418 echo "configure:4419: checking for $ac_hdr" >&5
4419 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4420 echo $ac_n "(cached) $ac_c" 1>&6
4421 else
4422 cat > conftest.$ac_ext <<EOF
4423 #line 4424 "configure"
4424 #include "confdefs.h"
4425 #include <$ac_hdr>
4427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4428 { (eval echo configure:4429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4430 if test -z "$ac_err"; then
4431 rm -rf conftest*
4432 eval "ac_cv_header_$ac_safe=yes"
4433 else
4434 echo "$ac_err" >&5
4435 echo "configure: failed program was:" >&5
4436 cat conftest.$ac_ext >&5
4437 rm -rf conftest*
4438 eval "ac_cv_header_$ac_safe=no"
4440 rm -f conftest*
4442 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4443 echo "$ac_t""yes" 1>&6
4444 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4445 cat >> confdefs.h <<EOF
4446 #define $ac_tr_hdr 1
4449 else
4450 echo "$ac_t""no" 1>&6
4452 done
4456 # All these tests are for C++; save the language and the compiler flags.
4457 # The CXXFLAGS thing is suspicious, but based on similar bits
4458 # found in GLIBCPP_CONFIGURE.
4460 ac_ext=C
4461 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4462 ac_cpp='$CXXCPP $CPPFLAGS'
4463 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4464 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4465 cross_compiling=$ac_cv_prog_cxx_cross
4467 ac_test_CXXFLAGS="${CXXFLAGS+set}"
4468 ac_save_CXXFLAGS="$CXXFLAGS"
4470 # Check for maintainer-mode bits.
4471 if test x"$USE_MAINTAINER_MODE" = xno; then
4472 WERROR=''
4473 else
4474 WERROR='-Werror'
4477 # Check for -ffunction-sections -fdata-sections
4478 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
4479 echo "configure:4480: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
4480 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
4481 cat > conftest.$ac_ext <<EOF
4482 #line 4483 "configure"
4483 #include "confdefs.h"
4485 int main() {
4486 int foo;
4488 ; return 0; }
4490 if { (eval echo configure:4491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4491 rm -rf conftest*
4492 ac_fdsections=yes
4493 else
4494 echo "configure: failed program was:" >&5
4495 cat conftest.$ac_ext >&5
4496 rm -rf conftest*
4497 ac_fdsections=no
4499 rm -f conftest*
4500 if test "$ac_test_CXXFLAGS" = set; then
4501 CXXFLAGS="$ac_save_CXXFLAGS"
4502 else
4503 # this is the suspicious part
4504 CXXFLAGS=''
4506 if test x"$ac_fdsections" = x"yes" && test x"$enable_debug" = x"no"; then
4507 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4509 echo "$ac_t""$ac_fdsections" 1>&6
4511 ac_ext=c
4512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4513 ac_cpp='$CPP $CPPFLAGS'
4514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4515 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4516 cross_compiling=$ac_cv_prog_cc_cross
4522 # If we're not using GNU ld, then there's no point in even trying these
4523 # tests. Check for that first. We should have already tested for gld
4524 # by now (in libtool), but require it now just to be safe...
4525 SECTION_LDFLAGS=''
4526 OPT_LDFLAGS=''
4529 # Set --gc-sections.
4530 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4531 # GNU ld it is! Joy and bunny rabbits!
4533 # All these tests are for C++; save the language and the compiler flags.
4534 # Need to do this so that g++ won't try to link in libstdc++
4535 ac_test_CFLAGS="${CFLAGS+set}"
4536 ac_save_CFLAGS="$CFLAGS"
4537 CFLAGS='-x c++ -Wl,--gc-sections'
4539 # Check for -Wl,--gc-sections
4540 # XXX This test is broken at the moment, as symbols required for
4541 # linking are now in libsupc++ (not built yet.....). In addition,
4542 # this test has cored on solaris in the past. In addition,
4543 # --gc-sections doesn't really work at the moment (keeps on discarding
4544 # used sections, first .eh_frame and now some of the glibc sections for
4545 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4546 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4547 echo "configure:4548: checking for ld that supports -Wl,--gc-sections" >&5
4548 if test "$cross_compiling" = yes; then
4549 ac_sectionLDflags=yes
4550 else
4551 cat > conftest.$ac_ext <<EOF
4552 #line 4553 "configure"
4553 #include "confdefs.h"
4555 int main(void)
4557 try { throw 1; }
4558 catch (...) { };
4559 return 0;
4563 if { (eval echo configure:4564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4564 then
4565 ac_sectionLDflags=yes
4566 else
4567 echo "configure: failed program was:" >&5
4568 cat conftest.$ac_ext >&5
4569 rm -fr conftest*
4570 ac_sectionLFflags=no
4572 rm -fr conftest*
4575 if test "$ac_test_CFLAGS" = set; then
4576 CFLAGS="$ac_save_CFLAGS"
4577 else
4578 # this is the suspicious part
4579 CFLAGS=''
4581 if test "$ac_sectionLDflags" = "yes"; then
4582 SECTION_LDFLAGS='-Wl,--gc-sections'
4584 echo "$ac_t""$ac_sectionLDflags" 1>&6
4587 # Set linker optimization flags.
4588 if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4589 OPT_LDFLAGS='-Wl,-O1'
4597 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
4598 echo "configure:4599: checking for __builtin_abs declaration" >&5
4599 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
4600 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
4601 echo $ac_n "(cached) $ac_c" 1>&6
4602 else
4605 ac_ext=C
4606 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4607 ac_cpp='$CXXCPP $CPPFLAGS'
4608 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4609 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4610 cross_compiling=$ac_cv_prog_cxx_cross
4612 cat > conftest.$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4615 #include <math.h>
4616 int main() {
4617 __builtin_abs(0);
4618 ; return 0; }
4620 if { (eval echo configure:4621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4621 rm -rf conftest*
4622 glibcpp_cv_func___builtin_abs_use=yes
4623 else
4624 echo "configure: failed program was:" >&5
4625 cat conftest.$ac_ext >&5
4626 rm -rf conftest*
4627 glibcpp_cv_func___builtin_abs_use=no
4629 rm -f conftest*
4630 ac_ext=c
4631 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4632 ac_cpp='$CPP $CPPFLAGS'
4633 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4634 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4635 cross_compiling=$ac_cv_prog_cc_cross
4641 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
4642 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
4643 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
4644 echo "configure:4645: checking for __builtin_abs linkage" >&5
4645 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
4646 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
4647 echo $ac_n "(cached) $ac_c" 1>&6
4648 else
4650 cat > conftest.$ac_ext <<EOF
4651 #line 4652 "configure"
4652 #include "confdefs.h"
4653 #include <math.h>
4654 int main() {
4655 __builtin_abs(0);
4656 ; return 0; }
4658 if { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4659 rm -rf conftest*
4660 glibcpp_cv_func___builtin_abs_link=yes
4661 else
4662 echo "configure: failed program was:" >&5
4663 cat conftest.$ac_ext >&5
4664 rm -rf conftest*
4665 glibcpp_cv_func___builtin_abs_link=no
4667 rm -f conftest*
4672 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
4673 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
4674 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4675 cat >> confdefs.h <<EOF
4676 #define ${ac_tr_func} 1
4683 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
4684 echo "configure:4685: checking for __builtin_fabsf declaration" >&5
4685 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
4686 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
4687 echo $ac_n "(cached) $ac_c" 1>&6
4688 else
4691 ac_ext=C
4692 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4693 ac_cpp='$CXXCPP $CPPFLAGS'
4694 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4695 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4696 cross_compiling=$ac_cv_prog_cxx_cross
4698 cat > conftest.$ac_ext <<EOF
4699 #line 4700 "configure"
4700 #include "confdefs.h"
4701 #include <math.h>
4702 int main() {
4703 __builtin_fabsf(0);
4704 ; return 0; }
4706 if { (eval echo configure:4707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4707 rm -rf conftest*
4708 glibcpp_cv_func___builtin_fabsf_use=yes
4709 else
4710 echo "configure: failed program was:" >&5
4711 cat conftest.$ac_ext >&5
4712 rm -rf conftest*
4713 glibcpp_cv_func___builtin_fabsf_use=no
4715 rm -f conftest*
4716 ac_ext=c
4717 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4718 ac_cpp='$CPP $CPPFLAGS'
4719 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4720 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4721 cross_compiling=$ac_cv_prog_cc_cross
4727 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
4728 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
4729 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
4730 echo "configure:4731: checking for __builtin_fabsf linkage" >&5
4731 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
4732 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
4733 echo $ac_n "(cached) $ac_c" 1>&6
4734 else
4736 cat > conftest.$ac_ext <<EOF
4737 #line 4738 "configure"
4738 #include "confdefs.h"
4739 #include <math.h>
4740 int main() {
4741 __builtin_fabsf(0);
4742 ; return 0; }
4744 if { (eval echo configure:4745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4745 rm -rf conftest*
4746 glibcpp_cv_func___builtin_fabsf_link=yes
4747 else
4748 echo "configure: failed program was:" >&5
4749 cat conftest.$ac_ext >&5
4750 rm -rf conftest*
4751 glibcpp_cv_func___builtin_fabsf_link=no
4753 rm -f conftest*
4758 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
4759 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
4760 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4761 cat >> confdefs.h <<EOF
4762 #define ${ac_tr_func} 1
4769 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
4770 echo "configure:4771: checking for __builtin_fabs declaration" >&5
4771 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
4772 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
4773 echo $ac_n "(cached) $ac_c" 1>&6
4774 else
4777 ac_ext=C
4778 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4779 ac_cpp='$CXXCPP $CPPFLAGS'
4780 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4781 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4782 cross_compiling=$ac_cv_prog_cxx_cross
4784 cat > conftest.$ac_ext <<EOF
4785 #line 4786 "configure"
4786 #include "confdefs.h"
4787 #include <math.h>
4788 int main() {
4789 __builtin_fabs(0);
4790 ; return 0; }
4792 if { (eval echo configure:4793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4793 rm -rf conftest*
4794 glibcpp_cv_func___builtin_fabs_use=yes
4795 else
4796 echo "configure: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4798 rm -rf conftest*
4799 glibcpp_cv_func___builtin_fabs_use=no
4801 rm -f conftest*
4802 ac_ext=c
4803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4807 cross_compiling=$ac_cv_prog_cc_cross
4813 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
4814 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
4815 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
4816 echo "configure:4817: checking for __builtin_fabs linkage" >&5
4817 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
4818 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
4819 echo $ac_n "(cached) $ac_c" 1>&6
4820 else
4822 cat > conftest.$ac_ext <<EOF
4823 #line 4824 "configure"
4824 #include "confdefs.h"
4825 #include <math.h>
4826 int main() {
4827 __builtin_fabs(0);
4828 ; return 0; }
4830 if { (eval echo configure:4831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4831 rm -rf conftest*
4832 glibcpp_cv_func___builtin_fabs_link=yes
4833 else
4834 echo "configure: failed program was:" >&5
4835 cat conftest.$ac_ext >&5
4836 rm -rf conftest*
4837 glibcpp_cv_func___builtin_fabs_link=no
4839 rm -f conftest*
4844 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
4845 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
4846 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4847 cat >> confdefs.h <<EOF
4848 #define ${ac_tr_func} 1
4855 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
4856 echo "configure:4857: checking for __builtin_fabsl declaration" >&5
4857 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
4858 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4860 else
4863 ac_ext=C
4864 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4865 ac_cpp='$CXXCPP $CPPFLAGS'
4866 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4867 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4868 cross_compiling=$ac_cv_prog_cxx_cross
4870 cat > conftest.$ac_ext <<EOF
4871 #line 4872 "configure"
4872 #include "confdefs.h"
4873 #include <math.h>
4874 int main() {
4875 __builtin_fabsl(0);
4876 ; return 0; }
4878 if { (eval echo configure:4879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4879 rm -rf conftest*
4880 glibcpp_cv_func___builtin_fabsl_use=yes
4881 else
4882 echo "configure: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4884 rm -rf conftest*
4885 glibcpp_cv_func___builtin_fabsl_use=no
4887 rm -f conftest*
4888 ac_ext=c
4889 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4890 ac_cpp='$CPP $CPPFLAGS'
4891 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4892 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4893 cross_compiling=$ac_cv_prog_cc_cross
4899 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
4900 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
4901 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
4902 echo "configure:4903: checking for __builtin_fabsl linkage" >&5
4903 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
4904 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
4905 echo $ac_n "(cached) $ac_c" 1>&6
4906 else
4908 cat > conftest.$ac_ext <<EOF
4909 #line 4910 "configure"
4910 #include "confdefs.h"
4911 #include <math.h>
4912 int main() {
4913 __builtin_fabsl(0);
4914 ; return 0; }
4916 if { (eval echo configure:4917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4917 rm -rf conftest*
4918 glibcpp_cv_func___builtin_fabsl_link=yes
4919 else
4920 echo "configure: failed program was:" >&5
4921 cat conftest.$ac_ext >&5
4922 rm -rf conftest*
4923 glibcpp_cv_func___builtin_fabsl_link=no
4925 rm -f conftest*
4930 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
4931 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
4932 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4933 cat >> confdefs.h <<EOF
4934 #define ${ac_tr_func} 1
4941 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
4942 echo "configure:4943: checking for __builtin_labs declaration" >&5
4943 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
4944 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
4945 echo $ac_n "(cached) $ac_c" 1>&6
4946 else
4949 ac_ext=C
4950 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4951 ac_cpp='$CXXCPP $CPPFLAGS'
4952 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4953 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4954 cross_compiling=$ac_cv_prog_cxx_cross
4956 cat > conftest.$ac_ext <<EOF
4957 #line 4958 "configure"
4958 #include "confdefs.h"
4959 #include <math.h>
4960 int main() {
4961 __builtin_labs(0);
4962 ; return 0; }
4964 if { (eval echo configure:4965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4965 rm -rf conftest*
4966 glibcpp_cv_func___builtin_labs_use=yes
4967 else
4968 echo "configure: failed program was:" >&5
4969 cat conftest.$ac_ext >&5
4970 rm -rf conftest*
4971 glibcpp_cv_func___builtin_labs_use=no
4973 rm -f conftest*
4974 ac_ext=c
4975 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4978 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4979 cross_compiling=$ac_cv_prog_cc_cross
4985 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
4986 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
4987 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
4988 echo "configure:4989: checking for __builtin_labs linkage" >&5
4989 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
4990 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
4991 echo $ac_n "(cached) $ac_c" 1>&6
4992 else
4994 cat > conftest.$ac_ext <<EOF
4995 #line 4996 "configure"
4996 #include "confdefs.h"
4997 #include <math.h>
4998 int main() {
4999 __builtin_labs(0);
5000 ; return 0; }
5002 if { (eval echo configure:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5003 rm -rf conftest*
5004 glibcpp_cv_func___builtin_labs_link=yes
5005 else
5006 echo "configure: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5008 rm -rf conftest*
5009 glibcpp_cv_func___builtin_labs_link=no
5011 rm -f conftest*
5016 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5017 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5018 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5019 cat >> confdefs.h <<EOF
5020 #define ${ac_tr_func} 1
5028 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5029 echo "configure:5030: checking for __builtin_sqrtf declaration" >&5
5030 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5031 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5032 echo $ac_n "(cached) $ac_c" 1>&6
5033 else
5036 ac_ext=C
5037 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5038 ac_cpp='$CXXCPP $CPPFLAGS'
5039 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5040 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5041 cross_compiling=$ac_cv_prog_cxx_cross
5043 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5046 #include <math.h>
5047 int main() {
5048 __builtin_sqrtf(0);
5049 ; return 0; }
5051 if { (eval echo configure:5052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5052 rm -rf conftest*
5053 glibcpp_cv_func___builtin_sqrtf_use=yes
5054 else
5055 echo "configure: failed program was:" >&5
5056 cat conftest.$ac_ext >&5
5057 rm -rf conftest*
5058 glibcpp_cv_func___builtin_sqrtf_use=no
5060 rm -f conftest*
5061 ac_ext=c
5062 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5063 ac_cpp='$CPP $CPPFLAGS'
5064 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5065 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5066 cross_compiling=$ac_cv_prog_cc_cross
5072 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5073 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5074 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5075 echo "configure:5076: checking for __builtin_sqrtf linkage" >&5
5076 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5077 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5078 echo $ac_n "(cached) $ac_c" 1>&6
5079 else
5081 cat > conftest.$ac_ext <<EOF
5082 #line 5083 "configure"
5083 #include "confdefs.h"
5084 #include <math.h>
5085 int main() {
5086 __builtin_sqrtf(0);
5087 ; return 0; }
5089 if { (eval echo configure:5090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5090 rm -rf conftest*
5091 glibcpp_cv_func___builtin_sqrtf_link=yes
5092 else
5093 echo "configure: failed program was:" >&5
5094 cat conftest.$ac_ext >&5
5095 rm -rf conftest*
5096 glibcpp_cv_func___builtin_sqrtf_link=no
5098 rm -f conftest*
5103 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5104 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5105 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5106 cat >> confdefs.h <<EOF
5107 #define ${ac_tr_func} 1
5114 echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5115 echo "configure:5116: checking for __builtin_fsqrt declaration" >&5
5116 if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5117 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5118 echo $ac_n "(cached) $ac_c" 1>&6
5119 else
5122 ac_ext=C
5123 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5124 ac_cpp='$CXXCPP $CPPFLAGS'
5125 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5126 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5127 cross_compiling=$ac_cv_prog_cxx_cross
5129 cat > conftest.$ac_ext <<EOF
5130 #line 5131 "configure"
5131 #include "confdefs.h"
5132 #include <math.h>
5133 int main() {
5134 __builtin_fsqrt(0);
5135 ; return 0; }
5137 if { (eval echo configure:5138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5138 rm -rf conftest*
5139 glibcpp_cv_func___builtin_fsqrt_use=yes
5140 else
5141 echo "configure: failed program was:" >&5
5142 cat conftest.$ac_ext >&5
5143 rm -rf conftest*
5144 glibcpp_cv_func___builtin_fsqrt_use=no
5146 rm -f conftest*
5147 ac_ext=c
5148 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5149 ac_cpp='$CPP $CPPFLAGS'
5150 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5151 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5152 cross_compiling=$ac_cv_prog_cc_cross
5158 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5159 if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5160 echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5161 echo "configure:5162: checking for __builtin_fsqrt linkage" >&5
5162 if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5163 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5164 echo $ac_n "(cached) $ac_c" 1>&6
5165 else
5167 cat > conftest.$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5170 #include <math.h>
5171 int main() {
5172 __builtin_fsqrt(0);
5173 ; return 0; }
5175 if { (eval echo configure:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5176 rm -rf conftest*
5177 glibcpp_cv_func___builtin_fsqrt_link=yes
5178 else
5179 echo "configure: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5181 rm -rf conftest*
5182 glibcpp_cv_func___builtin_fsqrt_link=no
5184 rm -f conftest*
5189 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5190 if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5191 ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5192 cat >> confdefs.h <<EOF
5193 #define ${ac_tr_func} 1
5200 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5201 echo "configure:5202: checking for __builtin_sqrtl declaration" >&5
5202 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5203 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5204 echo $ac_n "(cached) $ac_c" 1>&6
5205 else
5208 ac_ext=C
5209 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5210 ac_cpp='$CXXCPP $CPPFLAGS'
5211 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5212 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5213 cross_compiling=$ac_cv_prog_cxx_cross
5215 cat > conftest.$ac_ext <<EOF
5216 #line 5217 "configure"
5217 #include "confdefs.h"
5218 #include <math.h>
5219 int main() {
5220 __builtin_sqrtl(0);
5221 ; return 0; }
5223 if { (eval echo configure:5224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5224 rm -rf conftest*
5225 glibcpp_cv_func___builtin_sqrtl_use=yes
5226 else
5227 echo "configure: failed program was:" >&5
5228 cat conftest.$ac_ext >&5
5229 rm -rf conftest*
5230 glibcpp_cv_func___builtin_sqrtl_use=no
5232 rm -f conftest*
5233 ac_ext=c
5234 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5235 ac_cpp='$CPP $CPPFLAGS'
5236 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5237 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5238 cross_compiling=$ac_cv_prog_cc_cross
5244 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5245 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5246 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5247 echo "configure:5248: checking for __builtin_sqrtl linkage" >&5
5248 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5249 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5250 echo $ac_n "(cached) $ac_c" 1>&6
5251 else
5253 cat > conftest.$ac_ext <<EOF
5254 #line 5255 "configure"
5255 #include "confdefs.h"
5256 #include <math.h>
5257 int main() {
5258 __builtin_sqrtl(0);
5259 ; return 0; }
5261 if { (eval echo configure:5262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5262 rm -rf conftest*
5263 glibcpp_cv_func___builtin_sqrtl_link=yes
5264 else
5265 echo "configure: failed program was:" >&5
5266 cat conftest.$ac_ext >&5
5267 rm -rf conftest*
5268 glibcpp_cv_func___builtin_sqrtl_link=no
5270 rm -f conftest*
5275 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5276 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5277 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5278 cat >> confdefs.h <<EOF
5279 #define ${ac_tr_func} 1
5287 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5288 echo "configure:5289: checking for __builtin_sinf declaration" >&5
5289 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5290 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5291 echo $ac_n "(cached) $ac_c" 1>&6
5292 else
5295 ac_ext=C
5296 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5297 ac_cpp='$CXXCPP $CPPFLAGS'
5298 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5299 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5300 cross_compiling=$ac_cv_prog_cxx_cross
5302 cat > conftest.$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5305 #include <math.h>
5306 int main() {
5307 __builtin_sinf(0);
5308 ; return 0; }
5310 if { (eval echo configure:5311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5311 rm -rf conftest*
5312 glibcpp_cv_func___builtin_sinf_use=yes
5313 else
5314 echo "configure: failed program was:" >&5
5315 cat conftest.$ac_ext >&5
5316 rm -rf conftest*
5317 glibcpp_cv_func___builtin_sinf_use=no
5319 rm -f conftest*
5320 ac_ext=c
5321 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5322 ac_cpp='$CPP $CPPFLAGS'
5323 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5324 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5325 cross_compiling=$ac_cv_prog_cc_cross
5331 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5332 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5333 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5334 echo "configure:5335: checking for __builtin_sinf linkage" >&5
5335 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5336 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5337 echo $ac_n "(cached) $ac_c" 1>&6
5338 else
5340 cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5343 #include <math.h>
5344 int main() {
5345 __builtin_sinf(0);
5346 ; return 0; }
5348 if { (eval echo configure:5349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5349 rm -rf conftest*
5350 glibcpp_cv_func___builtin_sinf_link=yes
5351 else
5352 echo "configure: failed program was:" >&5
5353 cat conftest.$ac_ext >&5
5354 rm -rf conftest*
5355 glibcpp_cv_func___builtin_sinf_link=no
5357 rm -f conftest*
5362 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5363 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5364 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5365 cat >> confdefs.h <<EOF
5366 #define ${ac_tr_func} 1
5373 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5374 echo "configure:5375: checking for __builtin_sin declaration" >&5
5375 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5376 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5378 else
5381 ac_ext=C
5382 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5383 ac_cpp='$CXXCPP $CPPFLAGS'
5384 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5385 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5386 cross_compiling=$ac_cv_prog_cxx_cross
5388 cat > conftest.$ac_ext <<EOF
5389 #line 5390 "configure"
5390 #include "confdefs.h"
5391 #include <math.h>
5392 int main() {
5393 __builtin_sin(0);
5394 ; return 0; }
5396 if { (eval echo configure:5397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5397 rm -rf conftest*
5398 glibcpp_cv_func___builtin_sin_use=yes
5399 else
5400 echo "configure: failed program was:" >&5
5401 cat conftest.$ac_ext >&5
5402 rm -rf conftest*
5403 glibcpp_cv_func___builtin_sin_use=no
5405 rm -f conftest*
5406 ac_ext=c
5407 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5408 ac_cpp='$CPP $CPPFLAGS'
5409 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5410 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5411 cross_compiling=$ac_cv_prog_cc_cross
5417 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
5418 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
5419 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
5420 echo "configure:5421: checking for __builtin_sin linkage" >&5
5421 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
5422 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
5423 echo $ac_n "(cached) $ac_c" 1>&6
5424 else
5426 cat > conftest.$ac_ext <<EOF
5427 #line 5428 "configure"
5428 #include "confdefs.h"
5429 #include <math.h>
5430 int main() {
5431 __builtin_sin(0);
5432 ; return 0; }
5434 if { (eval echo configure:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5435 rm -rf conftest*
5436 glibcpp_cv_func___builtin_sin_link=yes
5437 else
5438 echo "configure: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5440 rm -rf conftest*
5441 glibcpp_cv_func___builtin_sin_link=no
5443 rm -f conftest*
5448 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
5449 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
5450 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5451 cat >> confdefs.h <<EOF
5452 #define ${ac_tr_func} 1
5459 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
5460 echo "configure:5461: checking for __builtin_sinl declaration" >&5
5461 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
5462 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
5463 echo $ac_n "(cached) $ac_c" 1>&6
5464 else
5467 ac_ext=C
5468 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5469 ac_cpp='$CXXCPP $CPPFLAGS'
5470 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5471 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5472 cross_compiling=$ac_cv_prog_cxx_cross
5474 cat > conftest.$ac_ext <<EOF
5475 #line 5476 "configure"
5476 #include "confdefs.h"
5477 #include <math.h>
5478 int main() {
5479 __builtin_sinl(0);
5480 ; return 0; }
5482 if { (eval echo configure:5483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5483 rm -rf conftest*
5484 glibcpp_cv_func___builtin_sinl_use=yes
5485 else
5486 echo "configure: failed program was:" >&5
5487 cat conftest.$ac_ext >&5
5488 rm -rf conftest*
5489 glibcpp_cv_func___builtin_sinl_use=no
5491 rm -f conftest*
5492 ac_ext=c
5493 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5494 ac_cpp='$CPP $CPPFLAGS'
5495 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5496 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5497 cross_compiling=$ac_cv_prog_cc_cross
5503 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
5504 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
5505 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
5506 echo "configure:5507: checking for __builtin_sinl linkage" >&5
5507 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
5508 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
5509 echo $ac_n "(cached) $ac_c" 1>&6
5510 else
5512 cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure"
5514 #include "confdefs.h"
5515 #include <math.h>
5516 int main() {
5517 __builtin_sinl(0);
5518 ; return 0; }
5520 if { (eval echo configure:5521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5521 rm -rf conftest*
5522 glibcpp_cv_func___builtin_sinl_link=yes
5523 else
5524 echo "configure: failed program was:" >&5
5525 cat conftest.$ac_ext >&5
5526 rm -rf conftest*
5527 glibcpp_cv_func___builtin_sinl_link=no
5529 rm -f conftest*
5534 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
5535 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
5536 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5537 cat >> confdefs.h <<EOF
5538 #define ${ac_tr_func} 1
5546 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
5547 echo "configure:5548: checking for __builtin_cosf declaration" >&5
5548 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
5549 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
5550 echo $ac_n "(cached) $ac_c" 1>&6
5551 else
5554 ac_ext=C
5555 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5556 ac_cpp='$CXXCPP $CPPFLAGS'
5557 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5558 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5559 cross_compiling=$ac_cv_prog_cxx_cross
5561 cat > conftest.$ac_ext <<EOF
5562 #line 5563 "configure"
5563 #include "confdefs.h"
5564 #include <math.h>
5565 int main() {
5566 __builtin_cosf(0);
5567 ; return 0; }
5569 if { (eval echo configure:5570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5570 rm -rf conftest*
5571 glibcpp_cv_func___builtin_cosf_use=yes
5572 else
5573 echo "configure: failed program was:" >&5
5574 cat conftest.$ac_ext >&5
5575 rm -rf conftest*
5576 glibcpp_cv_func___builtin_cosf_use=no
5578 rm -f conftest*
5579 ac_ext=c
5580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5581 ac_cpp='$CPP $CPPFLAGS'
5582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5584 cross_compiling=$ac_cv_prog_cc_cross
5590 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
5591 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
5592 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
5593 echo "configure:5594: checking for __builtin_cosf linkage" >&5
5594 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
5595 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
5596 echo $ac_n "(cached) $ac_c" 1>&6
5597 else
5599 cat > conftest.$ac_ext <<EOF
5600 #line 5601 "configure"
5601 #include "confdefs.h"
5602 #include <math.h>
5603 int main() {
5604 __builtin_cosf(0);
5605 ; return 0; }
5607 if { (eval echo configure:5608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5608 rm -rf conftest*
5609 glibcpp_cv_func___builtin_cosf_link=yes
5610 else
5611 echo "configure: failed program was:" >&5
5612 cat conftest.$ac_ext >&5
5613 rm -rf conftest*
5614 glibcpp_cv_func___builtin_cosf_link=no
5616 rm -f conftest*
5621 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
5622 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
5623 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5624 cat >> confdefs.h <<EOF
5625 #define ${ac_tr_func} 1
5632 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
5633 echo "configure:5634: checking for __builtin_cos declaration" >&5
5634 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
5635 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
5636 echo $ac_n "(cached) $ac_c" 1>&6
5637 else
5640 ac_ext=C
5641 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5642 ac_cpp='$CXXCPP $CPPFLAGS'
5643 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5644 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5645 cross_compiling=$ac_cv_prog_cxx_cross
5647 cat > conftest.$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5650 #include <math.h>
5651 int main() {
5652 __builtin_cos(0);
5653 ; return 0; }
5655 if { (eval echo configure:5656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5656 rm -rf conftest*
5657 glibcpp_cv_func___builtin_cos_use=yes
5658 else
5659 echo "configure: failed program was:" >&5
5660 cat conftest.$ac_ext >&5
5661 rm -rf conftest*
5662 glibcpp_cv_func___builtin_cos_use=no
5664 rm -f conftest*
5665 ac_ext=c
5666 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5667 ac_cpp='$CPP $CPPFLAGS'
5668 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5669 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5670 cross_compiling=$ac_cv_prog_cc_cross
5676 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
5677 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
5678 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
5679 echo "configure:5680: checking for __builtin_cos linkage" >&5
5680 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
5681 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
5682 echo $ac_n "(cached) $ac_c" 1>&6
5683 else
5685 cat > conftest.$ac_ext <<EOF
5686 #line 5687 "configure"
5687 #include "confdefs.h"
5688 #include <math.h>
5689 int main() {
5690 __builtin_cos(0);
5691 ; return 0; }
5693 if { (eval echo configure:5694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5694 rm -rf conftest*
5695 glibcpp_cv_func___builtin_cos_link=yes
5696 else
5697 echo "configure: failed program was:" >&5
5698 cat conftest.$ac_ext >&5
5699 rm -rf conftest*
5700 glibcpp_cv_func___builtin_cos_link=no
5702 rm -f conftest*
5707 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
5708 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
5709 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5710 cat >> confdefs.h <<EOF
5711 #define ${ac_tr_func} 1
5718 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
5719 echo "configure:5720: checking for __builtin_cosl declaration" >&5
5720 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
5721 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
5722 echo $ac_n "(cached) $ac_c" 1>&6
5723 else
5726 ac_ext=C
5727 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5728 ac_cpp='$CXXCPP $CPPFLAGS'
5729 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5730 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5731 cross_compiling=$ac_cv_prog_cxx_cross
5733 cat > conftest.$ac_ext <<EOF
5734 #line 5735 "configure"
5735 #include "confdefs.h"
5736 #include <math.h>
5737 int main() {
5738 __builtin_cosl(0);
5739 ; return 0; }
5741 if { (eval echo configure:5742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5742 rm -rf conftest*
5743 glibcpp_cv_func___builtin_cosl_use=yes
5744 else
5745 echo "configure: failed program was:" >&5
5746 cat conftest.$ac_ext >&5
5747 rm -rf conftest*
5748 glibcpp_cv_func___builtin_cosl_use=no
5750 rm -f conftest*
5751 ac_ext=c
5752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5753 ac_cpp='$CPP $CPPFLAGS'
5754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5755 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5756 cross_compiling=$ac_cv_prog_cc_cross
5762 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
5763 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
5764 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
5765 echo "configure:5766: checking for __builtin_cosl linkage" >&5
5766 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
5767 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
5768 echo $ac_n "(cached) $ac_c" 1>&6
5769 else
5771 cat > conftest.$ac_ext <<EOF
5772 #line 5773 "configure"
5773 #include "confdefs.h"
5774 #include <math.h>
5775 int main() {
5776 __builtin_cosl(0);
5777 ; return 0; }
5779 if { (eval echo configure:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5780 rm -rf conftest*
5781 glibcpp_cv_func___builtin_cosl_link=yes
5782 else
5783 echo "configure: failed program was:" >&5
5784 cat conftest.$ac_ext >&5
5785 rm -rf conftest*
5786 glibcpp_cv_func___builtin_cosl_link=no
5788 rm -f conftest*
5793 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
5794 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
5795 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5796 cat >> confdefs.h <<EOF
5797 #define ${ac_tr_func} 1
5804 dummyvar=no
5805 if test x$dummyvar = x"yes"; then
5806 cat >> confdefs.h <<\EOF
5807 #define HAVE___BUILTIN_ABS 1
5810 cat >> confdefs.h <<\EOF
5811 #define HAVE___BUILTIN_LABS 1
5814 cat >> confdefs.h <<\EOF
5815 #define HAVE___BUILTIN_COS 1
5818 cat >> confdefs.h <<\EOF
5819 #define HAVE___BUILTIN_COSF 1
5822 cat >> confdefs.h <<\EOF
5823 #define HAVE___BUILTIN_COSL 1
5826 cat >> confdefs.h <<\EOF
5827 #define HAVE___BUILTIN_FABS 1
5830 cat >> confdefs.h <<\EOF
5831 #define HAVE___BUILTIN_FABSF 1
5834 cat >> confdefs.h <<\EOF
5835 #define HAVE___BUILTIN_FABSL 1
5838 cat >> confdefs.h <<\EOF
5839 #define HAVE___BUILTIN_SIN 1
5842 cat >> confdefs.h <<\EOF
5843 #define HAVE___BUILTIN_SINF 1
5846 cat >> confdefs.h <<\EOF
5847 #define HAVE___BUILTIN_SINL 1
5850 cat >> confdefs.h <<\EOF
5851 #define HAVE___BUILTIN_FSQRT 1
5854 cat >> confdefs.h <<\EOF
5855 #define HAVE___BUILTIN_SQRTF 1
5858 cat >> confdefs.h <<\EOF
5859 #define HAVE___BUILTIN_SQRTL 1
5865 ac_test_CXXFLAGS="${CXXFLAGS+set}"
5866 ac_save_CXXFLAGS="$CXXFLAGS"
5867 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
5869 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
5870 echo "configure:5871: checking for sin in -lm" >&5
5871 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
5872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5873 echo $ac_n "(cached) $ac_c" 1>&6
5874 else
5875 ac_save_LIBS="$LIBS"
5876 LIBS="-lm $LIBS"
5877 cat > conftest.$ac_ext <<EOF
5878 #line 5879 "configure"
5879 #include "confdefs.h"
5880 /* Override any gcc2 internal prototype to avoid an error. */
5881 /* We use char because int might match the return type of a gcc2
5882 builtin and then its argument prototype would still apply. */
5883 char sin();
5885 int main() {
5886 sin()
5887 ; return 0; }
5889 if { (eval echo configure:5890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5890 rm -rf conftest*
5891 eval "ac_cv_lib_$ac_lib_var=yes"
5892 else
5893 echo "configure: failed program was:" >&5
5894 cat conftest.$ac_ext >&5
5895 rm -rf conftest*
5896 eval "ac_cv_lib_$ac_lib_var=no"
5898 rm -f conftest*
5899 LIBS="$ac_save_LIBS"
5902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5903 echo "$ac_t""yes" 1>&6
5904 libm="-lm"
5905 else
5906 echo "$ac_t""no" 1>&6
5909 ac_save_LIBS="$LIBS"
5910 LIBS="$LIBS $libm"
5914 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
5915 echo "configure:5916: checking for isinf declaration" >&5
5916 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
5917 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
5918 echo $ac_n "(cached) $ac_c" 1>&6
5919 else
5922 ac_ext=C
5923 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5924 ac_cpp='$CXXCPP $CPPFLAGS'
5925 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5926 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5927 cross_compiling=$ac_cv_prog_cxx_cross
5929 cat > conftest.$ac_ext <<EOF
5930 #line 5931 "configure"
5931 #include "confdefs.h"
5932 #include <math.h>
5933 #ifdef HAVE_IEEEFP_H
5934 #include <ieeefp.h>
5935 #endif
5937 int main() {
5938 isinf(0);
5939 ; return 0; }
5941 if { (eval echo configure:5942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5942 rm -rf conftest*
5943 glibcpp_cv_func_isinf_use=yes
5944 else
5945 echo "configure: failed program was:" >&5
5946 cat conftest.$ac_ext >&5
5947 rm -rf conftest*
5948 glibcpp_cv_func_isinf_use=no
5950 rm -f conftest*
5951 ac_ext=c
5952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5953 ac_cpp='$CPP $CPPFLAGS'
5954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5956 cross_compiling=$ac_cv_prog_cc_cross
5962 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
5964 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
5965 for ac_func in isinf
5967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5968 echo "configure:5969: checking for $ac_func" >&5
5969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5970 echo $ac_n "(cached) $ac_c" 1>&6
5971 else
5972 cat > conftest.$ac_ext <<EOF
5973 #line 5974 "configure"
5974 #include "confdefs.h"
5975 /* System header to define __stub macros and hopefully few prototypes,
5976 which can conflict with char $ac_func(); below. */
5977 #include <assert.h>
5978 /* Override any gcc2 internal prototype to avoid an error. */
5979 /* We use char because int might match the return type of a gcc2
5980 builtin and then its argument prototype would still apply. */
5981 char $ac_func();
5983 int main() {
5985 /* The GNU C library defines this for functions which it implements
5986 to always fail with ENOSYS. Some functions are actually named
5987 something starting with __ and the normal name is an alias. */
5988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5989 choke me
5990 #else
5991 $ac_func();
5992 #endif
5994 ; return 0; }
5996 if { (eval echo configure:5997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5997 rm -rf conftest*
5998 eval "ac_cv_func_$ac_func=yes"
5999 else
6000 echo "configure: failed program was:" >&5
6001 cat conftest.$ac_ext >&5
6002 rm -rf conftest*
6003 eval "ac_cv_func_$ac_func=no"
6005 rm -f conftest*
6008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6009 echo "$ac_t""yes" 1>&6
6010 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6011 cat >> confdefs.h <<EOF
6012 #define $ac_tr_func 1
6015 else
6016 echo "$ac_t""no" 1>&6
6018 done
6020 else
6022 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6023 echo "configure:6024: checking for _isinf declaration" >&5
6024 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6025 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6026 echo $ac_n "(cached) $ac_c" 1>&6
6027 else
6030 ac_ext=C
6031 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6032 ac_cpp='$CXXCPP $CPPFLAGS'
6033 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6034 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6035 cross_compiling=$ac_cv_prog_cxx_cross
6037 cat > conftest.$ac_ext <<EOF
6038 #line 6039 "configure"
6039 #include "confdefs.h"
6040 #include <math.h>
6041 #ifdef HAVE_IEEEFP_H
6042 #include <ieeefp.h>
6043 #endif
6045 int main() {
6046 _isinf(0);
6047 ; return 0; }
6049 if { (eval echo configure:6050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6050 rm -rf conftest*
6051 glibcpp_cv_func__isinf_use=yes
6052 else
6053 echo "configure: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6055 rm -rf conftest*
6056 glibcpp_cv_func__isinf_use=no
6058 rm -f conftest*
6059 ac_ext=c
6060 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6061 ac_cpp='$CPP $CPPFLAGS'
6062 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6063 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6064 cross_compiling=$ac_cv_prog_cc_cross
6070 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6072 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6073 for ac_func in _isinf
6075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6076 echo "configure:6077: checking for $ac_func" >&5
6077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6078 echo $ac_n "(cached) $ac_c" 1>&6
6079 else
6080 cat > conftest.$ac_ext <<EOF
6081 #line 6082 "configure"
6082 #include "confdefs.h"
6083 /* System header to define __stub macros and hopefully few prototypes,
6084 which can conflict with char $ac_func(); below. */
6085 #include <assert.h>
6086 /* Override any gcc2 internal prototype to avoid an error. */
6087 /* We use char because int might match the return type of a gcc2
6088 builtin and then its argument prototype would still apply. */
6089 char $ac_func();
6091 int main() {
6093 /* The GNU C library defines this for functions which it implements
6094 to always fail with ENOSYS. Some functions are actually named
6095 something starting with __ and the normal name is an alias. */
6096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6097 choke me
6098 #else
6099 $ac_func();
6100 #endif
6102 ; return 0; }
6104 if { (eval echo configure:6105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6105 rm -rf conftest*
6106 eval "ac_cv_func_$ac_func=yes"
6107 else
6108 echo "configure: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6110 rm -rf conftest*
6111 eval "ac_cv_func_$ac_func=no"
6113 rm -f conftest*
6116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6117 echo "$ac_t""yes" 1>&6
6118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6119 cat >> confdefs.h <<EOF
6120 #define $ac_tr_func 1
6123 else
6124 echo "$ac_t""no" 1>&6
6126 done
6133 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6134 echo "configure:6135: checking for isnan declaration" >&5
6135 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6136 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6137 echo $ac_n "(cached) $ac_c" 1>&6
6138 else
6141 ac_ext=C
6142 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6143 ac_cpp='$CXXCPP $CPPFLAGS'
6144 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6145 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6146 cross_compiling=$ac_cv_prog_cxx_cross
6148 cat > conftest.$ac_ext <<EOF
6149 #line 6150 "configure"
6150 #include "confdefs.h"
6151 #include <math.h>
6152 #ifdef HAVE_IEEEFP_H
6153 #include <ieeefp.h>
6154 #endif
6156 int main() {
6157 isnan(0);
6158 ; return 0; }
6160 if { (eval echo configure:6161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6161 rm -rf conftest*
6162 glibcpp_cv_func_isnan_use=yes
6163 else
6164 echo "configure: failed program was:" >&5
6165 cat conftest.$ac_ext >&5
6166 rm -rf conftest*
6167 glibcpp_cv_func_isnan_use=no
6169 rm -f conftest*
6170 ac_ext=c
6171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6172 ac_cpp='$CPP $CPPFLAGS'
6173 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6174 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6175 cross_compiling=$ac_cv_prog_cc_cross
6181 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6183 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6184 for ac_func in isnan
6186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6187 echo "configure:6188: checking for $ac_func" >&5
6188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6189 echo $ac_n "(cached) $ac_c" 1>&6
6190 else
6191 cat > conftest.$ac_ext <<EOF
6192 #line 6193 "configure"
6193 #include "confdefs.h"
6194 /* System header to define __stub macros and hopefully few prototypes,
6195 which can conflict with char $ac_func(); below. */
6196 #include <assert.h>
6197 /* Override any gcc2 internal prototype to avoid an error. */
6198 /* We use char because int might match the return type of a gcc2
6199 builtin and then its argument prototype would still apply. */
6200 char $ac_func();
6202 int main() {
6204 /* The GNU C library defines this for functions which it implements
6205 to always fail with ENOSYS. Some functions are actually named
6206 something starting with __ and the normal name is an alias. */
6207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6208 choke me
6209 #else
6210 $ac_func();
6211 #endif
6213 ; return 0; }
6215 if { (eval echo configure:6216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6216 rm -rf conftest*
6217 eval "ac_cv_func_$ac_func=yes"
6218 else
6219 echo "configure: failed program was:" >&5
6220 cat conftest.$ac_ext >&5
6221 rm -rf conftest*
6222 eval "ac_cv_func_$ac_func=no"
6224 rm -f conftest*
6227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6228 echo "$ac_t""yes" 1>&6
6229 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6230 cat >> confdefs.h <<EOF
6231 #define $ac_tr_func 1
6234 else
6235 echo "$ac_t""no" 1>&6
6237 done
6239 else
6241 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6242 echo "configure:6243: checking for _isnan declaration" >&5
6243 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6244 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6245 echo $ac_n "(cached) $ac_c" 1>&6
6246 else
6249 ac_ext=C
6250 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6251 ac_cpp='$CXXCPP $CPPFLAGS'
6252 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6253 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6254 cross_compiling=$ac_cv_prog_cxx_cross
6256 cat > conftest.$ac_ext <<EOF
6257 #line 6258 "configure"
6258 #include "confdefs.h"
6259 #include <math.h>
6260 #ifdef HAVE_IEEEFP_H
6261 #include <ieeefp.h>
6262 #endif
6264 int main() {
6265 _isnan(0);
6266 ; return 0; }
6268 if { (eval echo configure:6269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6269 rm -rf conftest*
6270 glibcpp_cv_func__isnan_use=yes
6271 else
6272 echo "configure: failed program was:" >&5
6273 cat conftest.$ac_ext >&5
6274 rm -rf conftest*
6275 glibcpp_cv_func__isnan_use=no
6277 rm -f conftest*
6278 ac_ext=c
6279 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6280 ac_cpp='$CPP $CPPFLAGS'
6281 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6282 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6283 cross_compiling=$ac_cv_prog_cc_cross
6289 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6291 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6292 for ac_func in _isnan
6294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6295 echo "configure:6296: checking for $ac_func" >&5
6296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6297 echo $ac_n "(cached) $ac_c" 1>&6
6298 else
6299 cat > conftest.$ac_ext <<EOF
6300 #line 6301 "configure"
6301 #include "confdefs.h"
6302 /* System header to define __stub macros and hopefully few prototypes,
6303 which can conflict with char $ac_func(); below. */
6304 #include <assert.h>
6305 /* Override any gcc2 internal prototype to avoid an error. */
6306 /* We use char because int might match the return type of a gcc2
6307 builtin and then its argument prototype would still apply. */
6308 char $ac_func();
6310 int main() {
6312 /* The GNU C library defines this for functions which it implements
6313 to always fail with ENOSYS. Some functions are actually named
6314 something starting with __ and the normal name is an alias. */
6315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6316 choke me
6317 #else
6318 $ac_func();
6319 #endif
6321 ; return 0; }
6323 if { (eval echo configure:6324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6324 rm -rf conftest*
6325 eval "ac_cv_func_$ac_func=yes"
6326 else
6327 echo "configure: failed program was:" >&5
6328 cat conftest.$ac_ext >&5
6329 rm -rf conftest*
6330 eval "ac_cv_func_$ac_func=no"
6332 rm -f conftest*
6335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6336 echo "$ac_t""yes" 1>&6
6337 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6338 cat >> confdefs.h <<EOF
6339 #define $ac_tr_func 1
6342 else
6343 echo "$ac_t""no" 1>&6
6345 done
6352 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6353 echo "configure:6354: checking for finite declaration" >&5
6354 if test x${glibcpp_cv_func_finite_use+set} != xset; then
6355 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6356 echo $ac_n "(cached) $ac_c" 1>&6
6357 else
6360 ac_ext=C
6361 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6362 ac_cpp='$CXXCPP $CPPFLAGS'
6363 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6364 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6365 cross_compiling=$ac_cv_prog_cxx_cross
6367 cat > conftest.$ac_ext <<EOF
6368 #line 6369 "configure"
6369 #include "confdefs.h"
6370 #include <math.h>
6371 #ifdef HAVE_IEEEFP_H
6372 #include <ieeefp.h>
6373 #endif
6375 int main() {
6376 finite(0);
6377 ; return 0; }
6379 if { (eval echo configure:6380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6380 rm -rf conftest*
6381 glibcpp_cv_func_finite_use=yes
6382 else
6383 echo "configure: failed program was:" >&5
6384 cat conftest.$ac_ext >&5
6385 rm -rf conftest*
6386 glibcpp_cv_func_finite_use=no
6388 rm -f conftest*
6389 ac_ext=c
6390 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6391 ac_cpp='$CPP $CPPFLAGS'
6392 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6393 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6394 cross_compiling=$ac_cv_prog_cc_cross
6400 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
6402 if test x$glibcpp_cv_func_finite_use = x"yes"; then
6403 for ac_func in finite
6405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6406 echo "configure:6407: checking for $ac_func" >&5
6407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6408 echo $ac_n "(cached) $ac_c" 1>&6
6409 else
6410 cat > conftest.$ac_ext <<EOF
6411 #line 6412 "configure"
6412 #include "confdefs.h"
6413 /* System header to define __stub macros and hopefully few prototypes,
6414 which can conflict with char $ac_func(); below. */
6415 #include <assert.h>
6416 /* Override any gcc2 internal prototype to avoid an error. */
6417 /* We use char because int might match the return type of a gcc2
6418 builtin and then its argument prototype would still apply. */
6419 char $ac_func();
6421 int main() {
6423 /* The GNU C library defines this for functions which it implements
6424 to always fail with ENOSYS. Some functions are actually named
6425 something starting with __ and the normal name is an alias. */
6426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6427 choke me
6428 #else
6429 $ac_func();
6430 #endif
6432 ; return 0; }
6434 if { (eval echo configure:6435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6435 rm -rf conftest*
6436 eval "ac_cv_func_$ac_func=yes"
6437 else
6438 echo "configure: failed program was:" >&5
6439 cat conftest.$ac_ext >&5
6440 rm -rf conftest*
6441 eval "ac_cv_func_$ac_func=no"
6443 rm -f conftest*
6446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6447 echo "$ac_t""yes" 1>&6
6448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6449 cat >> confdefs.h <<EOF
6450 #define $ac_tr_func 1
6453 else
6454 echo "$ac_t""no" 1>&6
6456 done
6458 else
6460 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
6461 echo "configure:6462: checking for _finite declaration" >&5
6462 if test x${glibcpp_cv_func__finite_use+set} != xset; then
6463 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
6464 echo $ac_n "(cached) $ac_c" 1>&6
6465 else
6468 ac_ext=C
6469 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6470 ac_cpp='$CXXCPP $CPPFLAGS'
6471 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6472 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6473 cross_compiling=$ac_cv_prog_cxx_cross
6475 cat > conftest.$ac_ext <<EOF
6476 #line 6477 "configure"
6477 #include "confdefs.h"
6478 #include <math.h>
6479 #ifdef HAVE_IEEEFP_H
6480 #include <ieeefp.h>
6481 #endif
6483 int main() {
6484 _finite(0);
6485 ; return 0; }
6487 if { (eval echo configure:6488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6488 rm -rf conftest*
6489 glibcpp_cv_func__finite_use=yes
6490 else
6491 echo "configure: failed program was:" >&5
6492 cat conftest.$ac_ext >&5
6493 rm -rf conftest*
6494 glibcpp_cv_func__finite_use=no
6496 rm -f conftest*
6497 ac_ext=c
6498 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6499 ac_cpp='$CPP $CPPFLAGS'
6500 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6501 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6502 cross_compiling=$ac_cv_prog_cc_cross
6508 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
6510 if test x$glibcpp_cv_func__finite_use = x"yes"; then
6511 for ac_func in _finite
6513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6514 echo "configure:6515: checking for $ac_func" >&5
6515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6516 echo $ac_n "(cached) $ac_c" 1>&6
6517 else
6518 cat > conftest.$ac_ext <<EOF
6519 #line 6520 "configure"
6520 #include "confdefs.h"
6521 /* System header to define __stub macros and hopefully few prototypes,
6522 which can conflict with char $ac_func(); below. */
6523 #include <assert.h>
6524 /* Override any gcc2 internal prototype to avoid an error. */
6525 /* We use char because int might match the return type of a gcc2
6526 builtin and then its argument prototype would still apply. */
6527 char $ac_func();
6529 int main() {
6531 /* The GNU C library defines this for functions which it implements
6532 to always fail with ENOSYS. Some functions are actually named
6533 something starting with __ and the normal name is an alias. */
6534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6535 choke me
6536 #else
6537 $ac_func();
6538 #endif
6540 ; return 0; }
6542 if { (eval echo configure:6543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6543 rm -rf conftest*
6544 eval "ac_cv_func_$ac_func=yes"
6545 else
6546 echo "configure: failed program was:" >&5
6547 cat conftest.$ac_ext >&5
6548 rm -rf conftest*
6549 eval "ac_cv_func_$ac_func=no"
6551 rm -f conftest*
6554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6555 echo "$ac_t""yes" 1>&6
6556 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6557 cat >> confdefs.h <<EOF
6558 #define $ac_tr_func 1
6561 else
6562 echo "$ac_t""no" 1>&6
6564 done
6571 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
6572 echo "configure:6573: checking for copysign declaration" >&5
6573 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
6574 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
6575 echo $ac_n "(cached) $ac_c" 1>&6
6576 else
6579 ac_ext=C
6580 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6581 ac_cpp='$CXXCPP $CPPFLAGS'
6582 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6583 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6584 cross_compiling=$ac_cv_prog_cxx_cross
6586 cat > conftest.$ac_ext <<EOF
6587 #line 6588 "configure"
6588 #include "confdefs.h"
6589 #include <math.h>
6590 int main() {
6591 copysign(0, 0);
6592 ; return 0; }
6594 if { (eval echo configure:6595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6595 rm -rf conftest*
6596 glibcpp_cv_func_copysign_use=yes
6597 else
6598 echo "configure: failed program was:" >&5
6599 cat conftest.$ac_ext >&5
6600 rm -rf conftest*
6601 glibcpp_cv_func_copysign_use=no
6603 rm -f conftest*
6604 ac_ext=c
6605 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6606 ac_cpp='$CPP $CPPFLAGS'
6607 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6608 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6609 cross_compiling=$ac_cv_prog_cc_cross
6615 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
6617 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
6618 for ac_func in copysign
6620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6621 echo "configure:6622: checking for $ac_func" >&5
6622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6623 echo $ac_n "(cached) $ac_c" 1>&6
6624 else
6625 cat > conftest.$ac_ext <<EOF
6626 #line 6627 "configure"
6627 #include "confdefs.h"
6628 /* System header to define __stub macros and hopefully few prototypes,
6629 which can conflict with char $ac_func(); below. */
6630 #include <assert.h>
6631 /* Override any gcc2 internal prototype to avoid an error. */
6632 /* We use char because int might match the return type of a gcc2
6633 builtin and then its argument prototype would still apply. */
6634 char $ac_func();
6636 int main() {
6638 /* The GNU C library defines this for functions which it implements
6639 to always fail with ENOSYS. Some functions are actually named
6640 something starting with __ and the normal name is an alias. */
6641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6642 choke me
6643 #else
6644 $ac_func();
6645 #endif
6647 ; return 0; }
6649 if { (eval echo configure:6650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6650 rm -rf conftest*
6651 eval "ac_cv_func_$ac_func=yes"
6652 else
6653 echo "configure: failed program was:" >&5
6654 cat conftest.$ac_ext >&5
6655 rm -rf conftest*
6656 eval "ac_cv_func_$ac_func=no"
6658 rm -f conftest*
6661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6662 echo "$ac_t""yes" 1>&6
6663 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6664 cat >> confdefs.h <<EOF
6665 #define $ac_tr_func 1
6668 else
6669 echo "$ac_t""no" 1>&6
6671 done
6673 else
6675 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
6676 echo "configure:6677: checking for _copysign declaration" >&5
6677 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
6678 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
6679 echo $ac_n "(cached) $ac_c" 1>&6
6680 else
6683 ac_ext=C
6684 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6685 ac_cpp='$CXXCPP $CPPFLAGS'
6686 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6687 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6688 cross_compiling=$ac_cv_prog_cxx_cross
6690 cat > conftest.$ac_ext <<EOF
6691 #line 6692 "configure"
6692 #include "confdefs.h"
6693 #include <math.h>
6694 int main() {
6695 _copysign(0, 0);
6696 ; return 0; }
6698 if { (eval echo configure:6699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6699 rm -rf conftest*
6700 glibcpp_cv_func__copysign_use=yes
6701 else
6702 echo "configure: failed program was:" >&5
6703 cat conftest.$ac_ext >&5
6704 rm -rf conftest*
6705 glibcpp_cv_func__copysign_use=no
6707 rm -f conftest*
6708 ac_ext=c
6709 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6710 ac_cpp='$CPP $CPPFLAGS'
6711 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6712 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6713 cross_compiling=$ac_cv_prog_cc_cross
6719 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
6721 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
6722 for ac_func in _copysign
6724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6725 echo "configure:6726: checking for $ac_func" >&5
6726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6727 echo $ac_n "(cached) $ac_c" 1>&6
6728 else
6729 cat > conftest.$ac_ext <<EOF
6730 #line 6731 "configure"
6731 #include "confdefs.h"
6732 /* System header to define __stub macros and hopefully few prototypes,
6733 which can conflict with char $ac_func(); below. */
6734 #include <assert.h>
6735 /* Override any gcc2 internal prototype to avoid an error. */
6736 /* We use char because int might match the return type of a gcc2
6737 builtin and then its argument prototype would still apply. */
6738 char $ac_func();
6740 int main() {
6742 /* The GNU C library defines this for functions which it implements
6743 to always fail with ENOSYS. Some functions are actually named
6744 something starting with __ and the normal name is an alias. */
6745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6746 choke me
6747 #else
6748 $ac_func();
6749 #endif
6751 ; return 0; }
6753 if { (eval echo configure:6754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6754 rm -rf conftest*
6755 eval "ac_cv_func_$ac_func=yes"
6756 else
6757 echo "configure: failed program was:" >&5
6758 cat conftest.$ac_ext >&5
6759 rm -rf conftest*
6760 eval "ac_cv_func_$ac_func=no"
6762 rm -f conftest*
6765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6766 echo "$ac_t""yes" 1>&6
6767 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6768 cat >> confdefs.h <<EOF
6769 #define $ac_tr_func 1
6772 else
6773 echo "$ac_t""no" 1>&6
6775 done
6782 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
6783 echo "configure:6784: checking for sincos declaration" >&5
6784 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
6785 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
6786 echo $ac_n "(cached) $ac_c" 1>&6
6787 else
6790 ac_ext=C
6791 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6792 ac_cpp='$CXXCPP $CPPFLAGS'
6793 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6794 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6795 cross_compiling=$ac_cv_prog_cxx_cross
6797 cat > conftest.$ac_ext <<EOF
6798 #line 6799 "configure"
6799 #include "confdefs.h"
6800 #include <math.h>
6801 int main() {
6802 sincos(0, 0, 0);
6803 ; return 0; }
6805 if { (eval echo configure:6806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6806 rm -rf conftest*
6807 glibcpp_cv_func_sincos_use=yes
6808 else
6809 echo "configure: failed program was:" >&5
6810 cat conftest.$ac_ext >&5
6811 rm -rf conftest*
6812 glibcpp_cv_func_sincos_use=no
6814 rm -f conftest*
6815 ac_ext=c
6816 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6817 ac_cpp='$CPP $CPPFLAGS'
6818 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6819 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6820 cross_compiling=$ac_cv_prog_cc_cross
6826 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
6828 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
6829 for ac_func in sincos
6831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6832 echo "configure:6833: checking for $ac_func" >&5
6833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6834 echo $ac_n "(cached) $ac_c" 1>&6
6835 else
6836 cat > conftest.$ac_ext <<EOF
6837 #line 6838 "configure"
6838 #include "confdefs.h"
6839 /* System header to define __stub macros and hopefully few prototypes,
6840 which can conflict with char $ac_func(); below. */
6841 #include <assert.h>
6842 /* Override any gcc2 internal prototype to avoid an error. */
6843 /* We use char because int might match the return type of a gcc2
6844 builtin and then its argument prototype would still apply. */
6845 char $ac_func();
6847 int main() {
6849 /* The GNU C library defines this for functions which it implements
6850 to always fail with ENOSYS. Some functions are actually named
6851 something starting with __ and the normal name is an alias. */
6852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6853 choke me
6854 #else
6855 $ac_func();
6856 #endif
6858 ; return 0; }
6860 if { (eval echo configure:6861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6861 rm -rf conftest*
6862 eval "ac_cv_func_$ac_func=yes"
6863 else
6864 echo "configure: failed program was:" >&5
6865 cat conftest.$ac_ext >&5
6866 rm -rf conftest*
6867 eval "ac_cv_func_$ac_func=no"
6869 rm -f conftest*
6872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6873 echo "$ac_t""yes" 1>&6
6874 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6875 cat >> confdefs.h <<EOF
6876 #define $ac_tr_func 1
6879 else
6880 echo "$ac_t""no" 1>&6
6882 done
6884 else
6886 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
6887 echo "configure:6888: checking for _sincos declaration" >&5
6888 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
6889 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
6890 echo $ac_n "(cached) $ac_c" 1>&6
6891 else
6894 ac_ext=C
6895 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6896 ac_cpp='$CXXCPP $CPPFLAGS'
6897 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6898 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6899 cross_compiling=$ac_cv_prog_cxx_cross
6901 cat > conftest.$ac_ext <<EOF
6902 #line 6903 "configure"
6903 #include "confdefs.h"
6904 #include <math.h>
6905 int main() {
6906 _sincos(0, 0, 0);
6907 ; return 0; }
6909 if { (eval echo configure:6910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6910 rm -rf conftest*
6911 glibcpp_cv_func__sincos_use=yes
6912 else
6913 echo "configure: failed program was:" >&5
6914 cat conftest.$ac_ext >&5
6915 rm -rf conftest*
6916 glibcpp_cv_func__sincos_use=no
6918 rm -f conftest*
6919 ac_ext=c
6920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6921 ac_cpp='$CPP $CPPFLAGS'
6922 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6923 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6924 cross_compiling=$ac_cv_prog_cc_cross
6930 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
6932 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
6933 for ac_func in _sincos
6935 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6936 echo "configure:6937: checking for $ac_func" >&5
6937 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6938 echo $ac_n "(cached) $ac_c" 1>&6
6939 else
6940 cat > conftest.$ac_ext <<EOF
6941 #line 6942 "configure"
6942 #include "confdefs.h"
6943 /* System header to define __stub macros and hopefully few prototypes,
6944 which can conflict with char $ac_func(); below. */
6945 #include <assert.h>
6946 /* Override any gcc2 internal prototype to avoid an error. */
6947 /* We use char because int might match the return type of a gcc2
6948 builtin and then its argument prototype would still apply. */
6949 char $ac_func();
6951 int main() {
6953 /* The GNU C library defines this for functions which it implements
6954 to always fail with ENOSYS. Some functions are actually named
6955 something starting with __ and the normal name is an alias. */
6956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6957 choke me
6958 #else
6959 $ac_func();
6960 #endif
6962 ; return 0; }
6964 if { (eval echo configure:6965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6965 rm -rf conftest*
6966 eval "ac_cv_func_$ac_func=yes"
6967 else
6968 echo "configure: failed program was:" >&5
6969 cat conftest.$ac_ext >&5
6970 rm -rf conftest*
6971 eval "ac_cv_func_$ac_func=no"
6973 rm -f conftest*
6976 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6977 echo "$ac_t""yes" 1>&6
6978 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6979 cat >> confdefs.h <<EOF
6980 #define $ac_tr_func 1
6983 else
6984 echo "$ac_t""no" 1>&6
6986 done
6993 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
6994 echo "configure:6995: checking for fpclass declaration" >&5
6995 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
6996 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
6997 echo $ac_n "(cached) $ac_c" 1>&6
6998 else
7001 ac_ext=C
7002 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7003 ac_cpp='$CXXCPP $CPPFLAGS'
7004 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7005 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7006 cross_compiling=$ac_cv_prog_cxx_cross
7008 cat > conftest.$ac_ext <<EOF
7009 #line 7010 "configure"
7010 #include "confdefs.h"
7011 #include <math.h>
7012 #ifdef HAVE_IEEEFP_H
7013 #include <ieeefp.h>
7014 #endif
7016 int main() {
7017 fpclass(0);
7018 ; return 0; }
7020 if { (eval echo configure:7021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7021 rm -rf conftest*
7022 glibcpp_cv_func_fpclass_use=yes
7023 else
7024 echo "configure: failed program was:" >&5
7025 cat conftest.$ac_ext >&5
7026 rm -rf conftest*
7027 glibcpp_cv_func_fpclass_use=no
7029 rm -f conftest*
7030 ac_ext=c
7031 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7032 ac_cpp='$CPP $CPPFLAGS'
7033 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7034 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7035 cross_compiling=$ac_cv_prog_cc_cross
7041 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7043 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7044 for ac_func in fpclass
7046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7047 echo "configure:7048: checking for $ac_func" >&5
7048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7049 echo $ac_n "(cached) $ac_c" 1>&6
7050 else
7051 cat > conftest.$ac_ext <<EOF
7052 #line 7053 "configure"
7053 #include "confdefs.h"
7054 /* System header to define __stub macros and hopefully few prototypes,
7055 which can conflict with char $ac_func(); below. */
7056 #include <assert.h>
7057 /* Override any gcc2 internal prototype to avoid an error. */
7058 /* We use char because int might match the return type of a gcc2
7059 builtin and then its argument prototype would still apply. */
7060 char $ac_func();
7062 int main() {
7064 /* The GNU C library defines this for functions which it implements
7065 to always fail with ENOSYS. Some functions are actually named
7066 something starting with __ and the normal name is an alias. */
7067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7068 choke me
7069 #else
7070 $ac_func();
7071 #endif
7073 ; return 0; }
7075 if { (eval echo configure:7076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7076 rm -rf conftest*
7077 eval "ac_cv_func_$ac_func=yes"
7078 else
7079 echo "configure: failed program was:" >&5
7080 cat conftest.$ac_ext >&5
7081 rm -rf conftest*
7082 eval "ac_cv_func_$ac_func=no"
7084 rm -f conftest*
7087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7088 echo "$ac_t""yes" 1>&6
7089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7090 cat >> confdefs.h <<EOF
7091 #define $ac_tr_func 1
7094 else
7095 echo "$ac_t""no" 1>&6
7097 done
7099 else
7101 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7102 echo "configure:7103: checking for _fpclass declaration" >&5
7103 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7104 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7105 echo $ac_n "(cached) $ac_c" 1>&6
7106 else
7109 ac_ext=C
7110 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7111 ac_cpp='$CXXCPP $CPPFLAGS'
7112 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7113 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7114 cross_compiling=$ac_cv_prog_cxx_cross
7116 cat > conftest.$ac_ext <<EOF
7117 #line 7118 "configure"
7118 #include "confdefs.h"
7119 #include <math.h>
7120 #ifdef HAVE_IEEEFP_H
7121 #include <ieeefp.h>
7122 #endif
7124 int main() {
7125 _fpclass(0);
7126 ; return 0; }
7128 if { (eval echo configure:7129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7129 rm -rf conftest*
7130 glibcpp_cv_func__fpclass_use=yes
7131 else
7132 echo "configure: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7134 rm -rf conftest*
7135 glibcpp_cv_func__fpclass_use=no
7137 rm -f conftest*
7138 ac_ext=c
7139 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7140 ac_cpp='$CPP $CPPFLAGS'
7141 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7142 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7143 cross_compiling=$ac_cv_prog_cc_cross
7149 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7151 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7152 for ac_func in _fpclass
7154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7155 echo "configure:7156: checking for $ac_func" >&5
7156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7157 echo $ac_n "(cached) $ac_c" 1>&6
7158 else
7159 cat > conftest.$ac_ext <<EOF
7160 #line 7161 "configure"
7161 #include "confdefs.h"
7162 /* System header to define __stub macros and hopefully few prototypes,
7163 which can conflict with char $ac_func(); below. */
7164 #include <assert.h>
7165 /* Override any gcc2 internal prototype to avoid an error. */
7166 /* We use char because int might match the return type of a gcc2
7167 builtin and then its argument prototype would still apply. */
7168 char $ac_func();
7170 int main() {
7172 /* The GNU C library defines this for functions which it implements
7173 to always fail with ENOSYS. Some functions are actually named
7174 something starting with __ and the normal name is an alias. */
7175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7176 choke me
7177 #else
7178 $ac_func();
7179 #endif
7181 ; return 0; }
7183 if { (eval echo configure:7184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7184 rm -rf conftest*
7185 eval "ac_cv_func_$ac_func=yes"
7186 else
7187 echo "configure: failed program was:" >&5
7188 cat conftest.$ac_ext >&5
7189 rm -rf conftest*
7190 eval "ac_cv_func_$ac_func=no"
7192 rm -f conftest*
7195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7196 echo "$ac_t""yes" 1>&6
7197 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7198 cat >> confdefs.h <<EOF
7199 #define $ac_tr_func 1
7202 else
7203 echo "$ac_t""no" 1>&6
7205 done
7212 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7213 echo "configure:7214: checking for qfpclass declaration" >&5
7214 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7215 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7216 echo $ac_n "(cached) $ac_c" 1>&6
7217 else
7220 ac_ext=C
7221 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7222 ac_cpp='$CXXCPP $CPPFLAGS'
7223 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7224 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7225 cross_compiling=$ac_cv_prog_cxx_cross
7227 cat > conftest.$ac_ext <<EOF
7228 #line 7229 "configure"
7229 #include "confdefs.h"
7230 #include <math.h>
7231 #ifdef HAVE_IEEEFP_H
7232 #include <ieeefp.h>
7233 #endif
7235 int main() {
7236 qfpclass(0);
7237 ; return 0; }
7239 if { (eval echo configure:7240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7240 rm -rf conftest*
7241 glibcpp_cv_func_qfpclass_use=yes
7242 else
7243 echo "configure: failed program was:" >&5
7244 cat conftest.$ac_ext >&5
7245 rm -rf conftest*
7246 glibcpp_cv_func_qfpclass_use=no
7248 rm -f conftest*
7249 ac_ext=c
7250 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7251 ac_cpp='$CPP $CPPFLAGS'
7252 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7253 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7254 cross_compiling=$ac_cv_prog_cc_cross
7260 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7262 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7263 for ac_func in qfpclass
7265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7266 echo "configure:7267: checking for $ac_func" >&5
7267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7268 echo $ac_n "(cached) $ac_c" 1>&6
7269 else
7270 cat > conftest.$ac_ext <<EOF
7271 #line 7272 "configure"
7272 #include "confdefs.h"
7273 /* System header to define __stub macros and hopefully few prototypes,
7274 which can conflict with char $ac_func(); below. */
7275 #include <assert.h>
7276 /* Override any gcc2 internal prototype to avoid an error. */
7277 /* We use char because int might match the return type of a gcc2
7278 builtin and then its argument prototype would still apply. */
7279 char $ac_func();
7281 int main() {
7283 /* The GNU C library defines this for functions which it implements
7284 to always fail with ENOSYS. Some functions are actually named
7285 something starting with __ and the normal name is an alias. */
7286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7287 choke me
7288 #else
7289 $ac_func();
7290 #endif
7292 ; return 0; }
7294 if { (eval echo configure:7295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7295 rm -rf conftest*
7296 eval "ac_cv_func_$ac_func=yes"
7297 else
7298 echo "configure: failed program was:" >&5
7299 cat conftest.$ac_ext >&5
7300 rm -rf conftest*
7301 eval "ac_cv_func_$ac_func=no"
7303 rm -f conftest*
7306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7307 echo "$ac_t""yes" 1>&6
7308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7309 cat >> confdefs.h <<EOF
7310 #define $ac_tr_func 1
7313 else
7314 echo "$ac_t""no" 1>&6
7316 done
7318 else
7320 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7321 echo "configure:7322: checking for _qfpclass declaration" >&5
7322 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7323 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7324 echo $ac_n "(cached) $ac_c" 1>&6
7325 else
7328 ac_ext=C
7329 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7330 ac_cpp='$CXXCPP $CPPFLAGS'
7331 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7332 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7333 cross_compiling=$ac_cv_prog_cxx_cross
7335 cat > conftest.$ac_ext <<EOF
7336 #line 7337 "configure"
7337 #include "confdefs.h"
7338 #include <math.h>
7339 #ifdef HAVE_IEEEFP_H
7340 #include <ieeefp.h>
7341 #endif
7343 int main() {
7344 _qfpclass(0);
7345 ; return 0; }
7347 if { (eval echo configure:7348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7348 rm -rf conftest*
7349 glibcpp_cv_func__qfpclass_use=yes
7350 else
7351 echo "configure: failed program was:" >&5
7352 cat conftest.$ac_ext >&5
7353 rm -rf conftest*
7354 glibcpp_cv_func__qfpclass_use=no
7356 rm -f conftest*
7357 ac_ext=c
7358 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7359 ac_cpp='$CPP $CPPFLAGS'
7360 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7361 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7362 cross_compiling=$ac_cv_prog_cc_cross
7368 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7370 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7371 for ac_func in _qfpclass
7373 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7374 echo "configure:7375: checking for $ac_func" >&5
7375 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7376 echo $ac_n "(cached) $ac_c" 1>&6
7377 else
7378 cat > conftest.$ac_ext <<EOF
7379 #line 7380 "configure"
7380 #include "confdefs.h"
7381 /* System header to define __stub macros and hopefully few prototypes,
7382 which can conflict with char $ac_func(); below. */
7383 #include <assert.h>
7384 /* Override any gcc2 internal prototype to avoid an error. */
7385 /* We use char because int might match the return type of a gcc2
7386 builtin and then its argument prototype would still apply. */
7387 char $ac_func();
7389 int main() {
7391 /* The GNU C library defines this for functions which it implements
7392 to always fail with ENOSYS. Some functions are actually named
7393 something starting with __ and the normal name is an alias. */
7394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7395 choke me
7396 #else
7397 $ac_func();
7398 #endif
7400 ; return 0; }
7402 if { (eval echo configure:7403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7403 rm -rf conftest*
7404 eval "ac_cv_func_$ac_func=yes"
7405 else
7406 echo "configure: failed program was:" >&5
7407 cat conftest.$ac_ext >&5
7408 rm -rf conftest*
7409 eval "ac_cv_func_$ac_func=no"
7411 rm -f conftest*
7414 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7415 echo "$ac_t""yes" 1>&6
7416 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7417 cat >> confdefs.h <<EOF
7418 #define $ac_tr_func 1
7421 else
7422 echo "$ac_t""no" 1>&6
7424 done
7431 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
7432 echo "configure:7433: checking for float trig functions" >&5
7433 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
7434 echo $ac_n "(cached) $ac_c" 1>&6
7435 else
7438 ac_ext=C
7439 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7440 ac_cpp='$CXXCPP $CPPFLAGS'
7441 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7442 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7443 cross_compiling=$ac_cv_prog_cxx_cross
7445 cat > conftest.$ac_ext <<EOF
7446 #line 7447 "configure"
7447 #include "confdefs.h"
7448 #include <math.h>
7449 int main() {
7450 `for x in acosf asinf atanf \
7451 cosf sinf tanf \
7452 coshf sinhf tanhf; do echo "$x (0);"; done`
7453 ; return 0; }
7455 if { (eval echo configure:7456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7456 rm -rf conftest*
7457 glibcpp_cv_func_float_trig_use=yes
7458 else
7459 echo "configure: failed program was:" >&5
7460 cat conftest.$ac_ext >&5
7461 rm -rf conftest*
7462 glibcpp_cv_func_float_trig_use=no
7464 rm -f conftest*
7465 ac_ext=c
7466 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7467 ac_cpp='$CPP $CPPFLAGS'
7468 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7469 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7470 cross_compiling=$ac_cv_prog_cc_cross
7474 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
7475 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
7476 for ac_func in acosf asinf atanf \
7477 cosf sinf tanf \
7478 coshf sinhf tanhf
7480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7481 echo "configure:7482: checking for $ac_func" >&5
7482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7483 echo $ac_n "(cached) $ac_c" 1>&6
7484 else
7485 cat > conftest.$ac_ext <<EOF
7486 #line 7487 "configure"
7487 #include "confdefs.h"
7488 /* System header to define __stub macros and hopefully few prototypes,
7489 which can conflict with char $ac_func(); below. */
7490 #include <assert.h>
7491 /* Override any gcc2 internal prototype to avoid an error. */
7492 /* We use char because int might match the return type of a gcc2
7493 builtin and then its argument prototype would still apply. */
7494 char $ac_func();
7496 int main() {
7498 /* The GNU C library defines this for functions which it implements
7499 to always fail with ENOSYS. Some functions are actually named
7500 something starting with __ and the normal name is an alias. */
7501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7502 choke me
7503 #else
7504 $ac_func();
7505 #endif
7507 ; return 0; }
7509 if { (eval echo configure:7510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7510 rm -rf conftest*
7511 eval "ac_cv_func_$ac_func=yes"
7512 else
7513 echo "configure: failed program was:" >&5
7514 cat conftest.$ac_ext >&5
7515 rm -rf conftest*
7516 eval "ac_cv_func_$ac_func=no"
7518 rm -f conftest*
7521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7522 echo "$ac_t""yes" 1>&6
7523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7524 cat >> confdefs.h <<EOF
7525 #define $ac_tr_func 1
7528 else
7529 echo "$ac_t""no" 1>&6
7531 done
7536 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
7537 echo "configure:7538: checking for float round functions" >&5
7538 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
7539 echo $ac_n "(cached) $ac_c" 1>&6
7540 else
7543 ac_ext=C
7544 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7545 ac_cpp='$CXXCPP $CPPFLAGS'
7546 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7547 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7548 cross_compiling=$ac_cv_prog_cxx_cross
7550 cat > conftest.$ac_ext <<EOF
7551 #line 7552 "configure"
7552 #include "confdefs.h"
7553 #include <math.h>
7554 int main() {
7555 `for x in ceilf floorf; do echo "$x (0);"; done`
7556 ; return 0; }
7558 if { (eval echo configure:7559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7559 rm -rf conftest*
7560 glibcpp_cv_func_float_round_use=yes
7561 else
7562 echo "configure: failed program was:" >&5
7563 cat conftest.$ac_ext >&5
7564 rm -rf conftest*
7565 glibcpp_cv_func_float_round_use=no
7567 rm -f conftest*
7568 ac_ext=c
7569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7570 ac_cpp='$CPP $CPPFLAGS'
7571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7573 cross_compiling=$ac_cv_prog_cc_cross
7577 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
7578 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
7579 for ac_func in ceilf floorf
7581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7582 echo "configure:7583: checking for $ac_func" >&5
7583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7584 echo $ac_n "(cached) $ac_c" 1>&6
7585 else
7586 cat > conftest.$ac_ext <<EOF
7587 #line 7588 "configure"
7588 #include "confdefs.h"
7589 /* System header to define __stub macros and hopefully few prototypes,
7590 which can conflict with char $ac_func(); below. */
7591 #include <assert.h>
7592 /* Override any gcc2 internal prototype to avoid an error. */
7593 /* We use char because int might match the return type of a gcc2
7594 builtin and then its argument prototype would still apply. */
7595 char $ac_func();
7597 int main() {
7599 /* The GNU C library defines this for functions which it implements
7600 to always fail with ENOSYS. Some functions are actually named
7601 something starting with __ and the normal name is an alias. */
7602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7603 choke me
7604 #else
7605 $ac_func();
7606 #endif
7608 ; return 0; }
7610 if { (eval echo configure:7611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7611 rm -rf conftest*
7612 eval "ac_cv_func_$ac_func=yes"
7613 else
7614 echo "configure: failed program was:" >&5
7615 cat conftest.$ac_ext >&5
7616 rm -rf conftest*
7617 eval "ac_cv_func_$ac_func=no"
7619 rm -f conftest*
7622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7623 echo "$ac_t""yes" 1>&6
7624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7625 cat >> confdefs.h <<EOF
7626 #define $ac_tr_func 1
7629 else
7630 echo "$ac_t""no" 1>&6
7632 done
7638 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
7639 echo "configure:7640: checking for isnanf declaration" >&5
7640 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
7641 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
7642 echo $ac_n "(cached) $ac_c" 1>&6
7643 else
7646 ac_ext=C
7647 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7648 ac_cpp='$CXXCPP $CPPFLAGS'
7649 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7650 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7651 cross_compiling=$ac_cv_prog_cxx_cross
7653 cat > conftest.$ac_ext <<EOF
7654 #line 7655 "configure"
7655 #include "confdefs.h"
7656 #include <math.h>
7657 #ifdef HAVE_IEEEFP_H
7658 #include <ieeefp.h>
7659 #endif
7661 int main() {
7662 isnanf(0);
7663 ; return 0; }
7665 if { (eval echo configure:7666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7666 rm -rf conftest*
7667 glibcpp_cv_func_isnanf_use=yes
7668 else
7669 echo "configure: failed program was:" >&5
7670 cat conftest.$ac_ext >&5
7671 rm -rf conftest*
7672 glibcpp_cv_func_isnanf_use=no
7674 rm -f conftest*
7675 ac_ext=c
7676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7677 ac_cpp='$CPP $CPPFLAGS'
7678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7680 cross_compiling=$ac_cv_prog_cc_cross
7686 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
7688 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
7689 for ac_func in isnanf
7691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7692 echo "configure:7693: checking for $ac_func" >&5
7693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7694 echo $ac_n "(cached) $ac_c" 1>&6
7695 else
7696 cat > conftest.$ac_ext <<EOF
7697 #line 7698 "configure"
7698 #include "confdefs.h"
7699 /* System header to define __stub macros and hopefully few prototypes,
7700 which can conflict with char $ac_func(); below. */
7701 #include <assert.h>
7702 /* Override any gcc2 internal prototype to avoid an error. */
7703 /* We use char because int might match the return type of a gcc2
7704 builtin and then its argument prototype would still apply. */
7705 char $ac_func();
7707 int main() {
7709 /* The GNU C library defines this for functions which it implements
7710 to always fail with ENOSYS. Some functions are actually named
7711 something starting with __ and the normal name is an alias. */
7712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7713 choke me
7714 #else
7715 $ac_func();
7716 #endif
7718 ; return 0; }
7720 if { (eval echo configure:7721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7721 rm -rf conftest*
7722 eval "ac_cv_func_$ac_func=yes"
7723 else
7724 echo "configure: failed program was:" >&5
7725 cat conftest.$ac_ext >&5
7726 rm -rf conftest*
7727 eval "ac_cv_func_$ac_func=no"
7729 rm -f conftest*
7732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7733 echo "$ac_t""yes" 1>&6
7734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7735 cat >> confdefs.h <<EOF
7736 #define $ac_tr_func 1
7739 else
7740 echo "$ac_t""no" 1>&6
7742 done
7744 else
7746 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
7747 echo "configure:7748: checking for _isnanf declaration" >&5
7748 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
7749 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
7750 echo $ac_n "(cached) $ac_c" 1>&6
7751 else
7754 ac_ext=C
7755 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7756 ac_cpp='$CXXCPP $CPPFLAGS'
7757 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7758 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7759 cross_compiling=$ac_cv_prog_cxx_cross
7761 cat > conftest.$ac_ext <<EOF
7762 #line 7763 "configure"
7763 #include "confdefs.h"
7764 #include <math.h>
7765 #ifdef HAVE_IEEEFP_H
7766 #include <ieeefp.h>
7767 #endif
7769 int main() {
7770 _isnanf(0);
7771 ; return 0; }
7773 if { (eval echo configure:7774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7774 rm -rf conftest*
7775 glibcpp_cv_func__isnanf_use=yes
7776 else
7777 echo "configure: failed program was:" >&5
7778 cat conftest.$ac_ext >&5
7779 rm -rf conftest*
7780 glibcpp_cv_func__isnanf_use=no
7782 rm -f conftest*
7783 ac_ext=c
7784 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7785 ac_cpp='$CPP $CPPFLAGS'
7786 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7787 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7788 cross_compiling=$ac_cv_prog_cc_cross
7794 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
7796 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
7797 for ac_func in _isnanf
7799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7800 echo "configure:7801: checking for $ac_func" >&5
7801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7802 echo $ac_n "(cached) $ac_c" 1>&6
7803 else
7804 cat > conftest.$ac_ext <<EOF
7805 #line 7806 "configure"
7806 #include "confdefs.h"
7807 /* System header to define __stub macros and hopefully few prototypes,
7808 which can conflict with char $ac_func(); below. */
7809 #include <assert.h>
7810 /* Override any gcc2 internal prototype to avoid an error. */
7811 /* We use char because int might match the return type of a gcc2
7812 builtin and then its argument prototype would still apply. */
7813 char $ac_func();
7815 int main() {
7817 /* The GNU C library defines this for functions which it implements
7818 to always fail with ENOSYS. Some functions are actually named
7819 something starting with __ and the normal name is an alias. */
7820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7821 choke me
7822 #else
7823 $ac_func();
7824 #endif
7826 ; return 0; }
7828 if { (eval echo configure:7829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7829 rm -rf conftest*
7830 eval "ac_cv_func_$ac_func=yes"
7831 else
7832 echo "configure: failed program was:" >&5
7833 cat conftest.$ac_ext >&5
7834 rm -rf conftest*
7835 eval "ac_cv_func_$ac_func=no"
7837 rm -f conftest*
7840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7841 echo "$ac_t""yes" 1>&6
7842 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7843 cat >> confdefs.h <<EOF
7844 #define $ac_tr_func 1
7847 else
7848 echo "$ac_t""no" 1>&6
7850 done
7857 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
7858 echo "configure:7859: checking for isinff declaration" >&5
7859 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
7860 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
7861 echo $ac_n "(cached) $ac_c" 1>&6
7862 else
7865 ac_ext=C
7866 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7867 ac_cpp='$CXXCPP $CPPFLAGS'
7868 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7869 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7870 cross_compiling=$ac_cv_prog_cxx_cross
7872 cat > conftest.$ac_ext <<EOF
7873 #line 7874 "configure"
7874 #include "confdefs.h"
7875 #include <math.h>
7876 #ifdef HAVE_IEEEFP_H
7877 #include <ieeefp.h>
7878 #endif
7880 int main() {
7881 isinff(0);
7882 ; return 0; }
7884 if { (eval echo configure:7885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7885 rm -rf conftest*
7886 glibcpp_cv_func_isinff_use=yes
7887 else
7888 echo "configure: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7890 rm -rf conftest*
7891 glibcpp_cv_func_isinff_use=no
7893 rm -f conftest*
7894 ac_ext=c
7895 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7896 ac_cpp='$CPP $CPPFLAGS'
7897 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7898 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7899 cross_compiling=$ac_cv_prog_cc_cross
7905 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
7907 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
7908 for ac_func in isinff
7910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7911 echo "configure:7912: checking for $ac_func" >&5
7912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7913 echo $ac_n "(cached) $ac_c" 1>&6
7914 else
7915 cat > conftest.$ac_ext <<EOF
7916 #line 7917 "configure"
7917 #include "confdefs.h"
7918 /* System header to define __stub macros and hopefully few prototypes,
7919 which can conflict with char $ac_func(); below. */
7920 #include <assert.h>
7921 /* Override any gcc2 internal prototype to avoid an error. */
7922 /* We use char because int might match the return type of a gcc2
7923 builtin and then its argument prototype would still apply. */
7924 char $ac_func();
7926 int main() {
7928 /* The GNU C library defines this for functions which it implements
7929 to always fail with ENOSYS. Some functions are actually named
7930 something starting with __ and the normal name is an alias. */
7931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7932 choke me
7933 #else
7934 $ac_func();
7935 #endif
7937 ; return 0; }
7939 if { (eval echo configure:7940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7940 rm -rf conftest*
7941 eval "ac_cv_func_$ac_func=yes"
7942 else
7943 echo "configure: failed program was:" >&5
7944 cat conftest.$ac_ext >&5
7945 rm -rf conftest*
7946 eval "ac_cv_func_$ac_func=no"
7948 rm -f conftest*
7951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7952 echo "$ac_t""yes" 1>&6
7953 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7954 cat >> confdefs.h <<EOF
7955 #define $ac_tr_func 1
7958 else
7959 echo "$ac_t""no" 1>&6
7961 done
7963 else
7965 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
7966 echo "configure:7967: checking for _isinff declaration" >&5
7967 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
7968 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
7969 echo $ac_n "(cached) $ac_c" 1>&6
7970 else
7973 ac_ext=C
7974 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7975 ac_cpp='$CXXCPP $CPPFLAGS'
7976 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7977 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7978 cross_compiling=$ac_cv_prog_cxx_cross
7980 cat > conftest.$ac_ext <<EOF
7981 #line 7982 "configure"
7982 #include "confdefs.h"
7983 #include <math.h>
7984 #ifdef HAVE_IEEEFP_H
7985 #include <ieeefp.h>
7986 #endif
7988 int main() {
7989 _isinff(0);
7990 ; return 0; }
7992 if { (eval echo configure:7993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7993 rm -rf conftest*
7994 glibcpp_cv_func__isinff_use=yes
7995 else
7996 echo "configure: failed program was:" >&5
7997 cat conftest.$ac_ext >&5
7998 rm -rf conftest*
7999 glibcpp_cv_func__isinff_use=no
8001 rm -f conftest*
8002 ac_ext=c
8003 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8004 ac_cpp='$CPP $CPPFLAGS'
8005 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8006 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8007 cross_compiling=$ac_cv_prog_cc_cross
8013 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8015 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8016 for ac_func in _isinff
8018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8019 echo "configure:8020: checking for $ac_func" >&5
8020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8021 echo $ac_n "(cached) $ac_c" 1>&6
8022 else
8023 cat > conftest.$ac_ext <<EOF
8024 #line 8025 "configure"
8025 #include "confdefs.h"
8026 /* System header to define __stub macros and hopefully few prototypes,
8027 which can conflict with char $ac_func(); below. */
8028 #include <assert.h>
8029 /* Override any gcc2 internal prototype to avoid an error. */
8030 /* We use char because int might match the return type of a gcc2
8031 builtin and then its argument prototype would still apply. */
8032 char $ac_func();
8034 int main() {
8036 /* The GNU C library defines this for functions which it implements
8037 to always fail with ENOSYS. Some functions are actually named
8038 something starting with __ and the normal name is an alias. */
8039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8040 choke me
8041 #else
8042 $ac_func();
8043 #endif
8045 ; return 0; }
8047 if { (eval echo configure:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8048 rm -rf conftest*
8049 eval "ac_cv_func_$ac_func=yes"
8050 else
8051 echo "configure: failed program was:" >&5
8052 cat conftest.$ac_ext >&5
8053 rm -rf conftest*
8054 eval "ac_cv_func_$ac_func=no"
8056 rm -f conftest*
8059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8060 echo "$ac_t""yes" 1>&6
8061 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8062 cat >> confdefs.h <<EOF
8063 #define $ac_tr_func 1
8066 else
8067 echo "$ac_t""no" 1>&6
8069 done
8076 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
8077 echo "configure:8078: checking for fabsf declaration" >&5
8078 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
8079 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
8080 echo $ac_n "(cached) $ac_c" 1>&6
8081 else
8084 ac_ext=C
8085 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8086 ac_cpp='$CXXCPP $CPPFLAGS'
8087 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8088 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8089 cross_compiling=$ac_cv_prog_cxx_cross
8091 cat > conftest.$ac_ext <<EOF
8092 #line 8093 "configure"
8093 #include "confdefs.h"
8094 #include <math.h>
8095 #ifdef HAVE_IEEEFP_H
8096 #include <ieeefp.h>
8097 #endif
8099 int main() {
8100 fabsf(0);
8101 ; return 0; }
8103 if { (eval echo configure:8104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8104 rm -rf conftest*
8105 glibcpp_cv_func_fabsf_use=yes
8106 else
8107 echo "configure: failed program was:" >&5
8108 cat conftest.$ac_ext >&5
8109 rm -rf conftest*
8110 glibcpp_cv_func_fabsf_use=no
8112 rm -f conftest*
8113 ac_ext=c
8114 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8115 ac_cpp='$CPP $CPPFLAGS'
8116 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8117 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8118 cross_compiling=$ac_cv_prog_cc_cross
8124 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
8126 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
8127 for ac_func in fabsf
8129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8130 echo "configure:8131: checking for $ac_func" >&5
8131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8132 echo $ac_n "(cached) $ac_c" 1>&6
8133 else
8134 cat > conftest.$ac_ext <<EOF
8135 #line 8136 "configure"
8136 #include "confdefs.h"
8137 /* System header to define __stub macros and hopefully few prototypes,
8138 which can conflict with char $ac_func(); below. */
8139 #include <assert.h>
8140 /* Override any gcc2 internal prototype to avoid an error. */
8141 /* We use char because int might match the return type of a gcc2
8142 builtin and then its argument prototype would still apply. */
8143 char $ac_func();
8145 int main() {
8147 /* The GNU C library defines this for functions which it implements
8148 to always fail with ENOSYS. Some functions are actually named
8149 something starting with __ and the normal name is an alias. */
8150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8151 choke me
8152 #else
8153 $ac_func();
8154 #endif
8156 ; return 0; }
8158 if { (eval echo configure:8159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8159 rm -rf conftest*
8160 eval "ac_cv_func_$ac_func=yes"
8161 else
8162 echo "configure: failed program was:" >&5
8163 cat conftest.$ac_ext >&5
8164 rm -rf conftest*
8165 eval "ac_cv_func_$ac_func=no"
8167 rm -f conftest*
8170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8171 echo "$ac_t""yes" 1>&6
8172 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8173 cat >> confdefs.h <<EOF
8174 #define $ac_tr_func 1
8177 else
8178 echo "$ac_t""no" 1>&6
8180 done
8182 else
8184 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
8185 echo "configure:8186: checking for _fabsf declaration" >&5
8186 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
8187 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
8188 echo $ac_n "(cached) $ac_c" 1>&6
8189 else
8192 ac_ext=C
8193 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8194 ac_cpp='$CXXCPP $CPPFLAGS'
8195 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8196 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8197 cross_compiling=$ac_cv_prog_cxx_cross
8199 cat > conftest.$ac_ext <<EOF
8200 #line 8201 "configure"
8201 #include "confdefs.h"
8202 #include <math.h>
8203 #ifdef HAVE_IEEEFP_H
8204 #include <ieeefp.h>
8205 #endif
8207 int main() {
8208 _fabsf(0);
8209 ; return 0; }
8211 if { (eval echo configure:8212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8212 rm -rf conftest*
8213 glibcpp_cv_func__fabsf_use=yes
8214 else
8215 echo "configure: failed program was:" >&5
8216 cat conftest.$ac_ext >&5
8217 rm -rf conftest*
8218 glibcpp_cv_func__fabsf_use=no
8220 rm -f conftest*
8221 ac_ext=c
8222 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8223 ac_cpp='$CPP $CPPFLAGS'
8224 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8225 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8226 cross_compiling=$ac_cv_prog_cc_cross
8232 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
8234 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
8235 for ac_func in _fabsf
8237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8238 echo "configure:8239: checking for $ac_func" >&5
8239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8240 echo $ac_n "(cached) $ac_c" 1>&6
8241 else
8242 cat > conftest.$ac_ext <<EOF
8243 #line 8244 "configure"
8244 #include "confdefs.h"
8245 /* System header to define __stub macros and hopefully few prototypes,
8246 which can conflict with char $ac_func(); below. */
8247 #include <assert.h>
8248 /* Override any gcc2 internal prototype to avoid an error. */
8249 /* We use char because int might match the return type of a gcc2
8250 builtin and then its argument prototype would still apply. */
8251 char $ac_func();
8253 int main() {
8255 /* The GNU C library defines this for functions which it implements
8256 to always fail with ENOSYS. Some functions are actually named
8257 something starting with __ and the normal name is an alias. */
8258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8259 choke me
8260 #else
8261 $ac_func();
8262 #endif
8264 ; return 0; }
8266 if { (eval echo configure:8267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8267 rm -rf conftest*
8268 eval "ac_cv_func_$ac_func=yes"
8269 else
8270 echo "configure: failed program was:" >&5
8271 cat conftest.$ac_ext >&5
8272 rm -rf conftest*
8273 eval "ac_cv_func_$ac_func=no"
8275 rm -f conftest*
8278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8279 echo "$ac_t""yes" 1>&6
8280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8281 cat >> confdefs.h <<EOF
8282 #define $ac_tr_func 1
8285 else
8286 echo "$ac_t""no" 1>&6
8288 done
8295 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
8296 echo "configure:8297: checking for fmodf declaration" >&5
8297 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
8298 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
8299 echo $ac_n "(cached) $ac_c" 1>&6
8300 else
8303 ac_ext=C
8304 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8305 ac_cpp='$CXXCPP $CPPFLAGS'
8306 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8307 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8308 cross_compiling=$ac_cv_prog_cxx_cross
8310 cat > conftest.$ac_ext <<EOF
8311 #line 8312 "configure"
8312 #include "confdefs.h"
8313 #include <math.h>
8314 int main() {
8315 fmodf(0, 0);
8316 ; return 0; }
8318 if { (eval echo configure:8319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8319 rm -rf conftest*
8320 glibcpp_cv_func_fmodf_use=yes
8321 else
8322 echo "configure: failed program was:" >&5
8323 cat conftest.$ac_ext >&5
8324 rm -rf conftest*
8325 glibcpp_cv_func_fmodf_use=no
8327 rm -f conftest*
8328 ac_ext=c
8329 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8330 ac_cpp='$CPP $CPPFLAGS'
8331 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8332 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8333 cross_compiling=$ac_cv_prog_cc_cross
8339 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
8341 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
8342 for ac_func in fmodf
8344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8345 echo "configure:8346: checking for $ac_func" >&5
8346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8347 echo $ac_n "(cached) $ac_c" 1>&6
8348 else
8349 cat > conftest.$ac_ext <<EOF
8350 #line 8351 "configure"
8351 #include "confdefs.h"
8352 /* System header to define __stub macros and hopefully few prototypes,
8353 which can conflict with char $ac_func(); below. */
8354 #include <assert.h>
8355 /* Override any gcc2 internal prototype to avoid an error. */
8356 /* We use char because int might match the return type of a gcc2
8357 builtin and then its argument prototype would still apply. */
8358 char $ac_func();
8360 int main() {
8362 /* The GNU C library defines this for functions which it implements
8363 to always fail with ENOSYS. Some functions are actually named
8364 something starting with __ and the normal name is an alias. */
8365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8366 choke me
8367 #else
8368 $ac_func();
8369 #endif
8371 ; return 0; }
8373 if { (eval echo configure:8374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8374 rm -rf conftest*
8375 eval "ac_cv_func_$ac_func=yes"
8376 else
8377 echo "configure: failed program was:" >&5
8378 cat conftest.$ac_ext >&5
8379 rm -rf conftest*
8380 eval "ac_cv_func_$ac_func=no"
8382 rm -f conftest*
8385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8386 echo "$ac_t""yes" 1>&6
8387 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8388 cat >> confdefs.h <<EOF
8389 #define $ac_tr_func 1
8392 else
8393 echo "$ac_t""no" 1>&6
8395 done
8397 else
8399 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
8400 echo "configure:8401: checking for _fmodf declaration" >&5
8401 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
8402 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
8403 echo $ac_n "(cached) $ac_c" 1>&6
8404 else
8407 ac_ext=C
8408 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8409 ac_cpp='$CXXCPP $CPPFLAGS'
8410 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8411 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8412 cross_compiling=$ac_cv_prog_cxx_cross
8414 cat > conftest.$ac_ext <<EOF
8415 #line 8416 "configure"
8416 #include "confdefs.h"
8417 #include <math.h>
8418 int main() {
8419 _fmodf(0, 0);
8420 ; return 0; }
8422 if { (eval echo configure:8423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8423 rm -rf conftest*
8424 glibcpp_cv_func__fmodf_use=yes
8425 else
8426 echo "configure: failed program was:" >&5
8427 cat conftest.$ac_ext >&5
8428 rm -rf conftest*
8429 glibcpp_cv_func__fmodf_use=no
8431 rm -f conftest*
8432 ac_ext=c
8433 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8434 ac_cpp='$CPP $CPPFLAGS'
8435 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8436 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8437 cross_compiling=$ac_cv_prog_cc_cross
8443 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
8445 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
8446 for ac_func in _fmodf
8448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8449 echo "configure:8450: checking for $ac_func" >&5
8450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8451 echo $ac_n "(cached) $ac_c" 1>&6
8452 else
8453 cat > conftest.$ac_ext <<EOF
8454 #line 8455 "configure"
8455 #include "confdefs.h"
8456 /* System header to define __stub macros and hopefully few prototypes,
8457 which can conflict with char $ac_func(); below. */
8458 #include <assert.h>
8459 /* Override any gcc2 internal prototype to avoid an error. */
8460 /* We use char because int might match the return type of a gcc2
8461 builtin and then its argument prototype would still apply. */
8462 char $ac_func();
8464 int main() {
8466 /* The GNU C library defines this for functions which it implements
8467 to always fail with ENOSYS. Some functions are actually named
8468 something starting with __ and the normal name is an alias. */
8469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8470 choke me
8471 #else
8472 $ac_func();
8473 #endif
8475 ; return 0; }
8477 if { (eval echo configure:8478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8478 rm -rf conftest*
8479 eval "ac_cv_func_$ac_func=yes"
8480 else
8481 echo "configure: failed program was:" >&5
8482 cat conftest.$ac_ext >&5
8483 rm -rf conftest*
8484 eval "ac_cv_func_$ac_func=no"
8486 rm -f conftest*
8489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8490 echo "$ac_t""yes" 1>&6
8491 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8492 cat >> confdefs.h <<EOF
8493 #define $ac_tr_func 1
8496 else
8497 echo "$ac_t""no" 1>&6
8499 done
8506 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
8507 echo "configure:8508: checking for frexpf declaration" >&5
8508 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
8509 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
8510 echo $ac_n "(cached) $ac_c" 1>&6
8511 else
8514 ac_ext=C
8515 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8516 ac_cpp='$CXXCPP $CPPFLAGS'
8517 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8518 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8519 cross_compiling=$ac_cv_prog_cxx_cross
8521 cat > conftest.$ac_ext <<EOF
8522 #line 8523 "configure"
8523 #include "confdefs.h"
8524 #include <math.h>
8525 int main() {
8526 frexpf(0, 0);
8527 ; return 0; }
8529 if { (eval echo configure:8530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8530 rm -rf conftest*
8531 glibcpp_cv_func_frexpf_use=yes
8532 else
8533 echo "configure: failed program was:" >&5
8534 cat conftest.$ac_ext >&5
8535 rm -rf conftest*
8536 glibcpp_cv_func_frexpf_use=no
8538 rm -f conftest*
8539 ac_ext=c
8540 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8541 ac_cpp='$CPP $CPPFLAGS'
8542 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8543 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8544 cross_compiling=$ac_cv_prog_cc_cross
8550 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
8552 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
8553 for ac_func in frexpf
8555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8556 echo "configure:8557: checking for $ac_func" >&5
8557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8558 echo $ac_n "(cached) $ac_c" 1>&6
8559 else
8560 cat > conftest.$ac_ext <<EOF
8561 #line 8562 "configure"
8562 #include "confdefs.h"
8563 /* System header to define __stub macros and hopefully few prototypes,
8564 which can conflict with char $ac_func(); below. */
8565 #include <assert.h>
8566 /* Override any gcc2 internal prototype to avoid an error. */
8567 /* We use char because int might match the return type of a gcc2
8568 builtin and then its argument prototype would still apply. */
8569 char $ac_func();
8571 int main() {
8573 /* The GNU C library defines this for functions which it implements
8574 to always fail with ENOSYS. Some functions are actually named
8575 something starting with __ and the normal name is an alias. */
8576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8577 choke me
8578 #else
8579 $ac_func();
8580 #endif
8582 ; return 0; }
8584 if { (eval echo configure:8585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8585 rm -rf conftest*
8586 eval "ac_cv_func_$ac_func=yes"
8587 else
8588 echo "configure: failed program was:" >&5
8589 cat conftest.$ac_ext >&5
8590 rm -rf conftest*
8591 eval "ac_cv_func_$ac_func=no"
8593 rm -f conftest*
8596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8597 echo "$ac_t""yes" 1>&6
8598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8599 cat >> confdefs.h <<EOF
8600 #define $ac_tr_func 1
8603 else
8604 echo "$ac_t""no" 1>&6
8606 done
8608 else
8610 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
8611 echo "configure:8612: checking for _frexpf declaration" >&5
8612 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
8613 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
8614 echo $ac_n "(cached) $ac_c" 1>&6
8615 else
8618 ac_ext=C
8619 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8620 ac_cpp='$CXXCPP $CPPFLAGS'
8621 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8622 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8623 cross_compiling=$ac_cv_prog_cxx_cross
8625 cat > conftest.$ac_ext <<EOF
8626 #line 8627 "configure"
8627 #include "confdefs.h"
8628 #include <math.h>
8629 int main() {
8630 _frexpf(0, 0);
8631 ; return 0; }
8633 if { (eval echo configure:8634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8634 rm -rf conftest*
8635 glibcpp_cv_func__frexpf_use=yes
8636 else
8637 echo "configure: failed program was:" >&5
8638 cat conftest.$ac_ext >&5
8639 rm -rf conftest*
8640 glibcpp_cv_func__frexpf_use=no
8642 rm -f conftest*
8643 ac_ext=c
8644 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8645 ac_cpp='$CPP $CPPFLAGS'
8646 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8647 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8648 cross_compiling=$ac_cv_prog_cc_cross
8654 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
8656 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
8657 for ac_func in _frexpf
8659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8660 echo "configure:8661: checking for $ac_func" >&5
8661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8662 echo $ac_n "(cached) $ac_c" 1>&6
8663 else
8664 cat > conftest.$ac_ext <<EOF
8665 #line 8666 "configure"
8666 #include "confdefs.h"
8667 /* System header to define __stub macros and hopefully few prototypes,
8668 which can conflict with char $ac_func(); below. */
8669 #include <assert.h>
8670 /* Override any gcc2 internal prototype to avoid an error. */
8671 /* We use char because int might match the return type of a gcc2
8672 builtin and then its argument prototype would still apply. */
8673 char $ac_func();
8675 int main() {
8677 /* The GNU C library defines this for functions which it implements
8678 to always fail with ENOSYS. Some functions are actually named
8679 something starting with __ and the normal name is an alias. */
8680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8681 choke me
8682 #else
8683 $ac_func();
8684 #endif
8686 ; return 0; }
8688 if { (eval echo configure:8689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8689 rm -rf conftest*
8690 eval "ac_cv_func_$ac_func=yes"
8691 else
8692 echo "configure: failed program was:" >&5
8693 cat conftest.$ac_ext >&5
8694 rm -rf conftest*
8695 eval "ac_cv_func_$ac_func=no"
8697 rm -f conftest*
8700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8701 echo "$ac_t""yes" 1>&6
8702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8703 cat >> confdefs.h <<EOF
8704 #define $ac_tr_func 1
8707 else
8708 echo "$ac_t""no" 1>&6
8710 done
8717 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
8718 echo "configure:8719: checking for ldexpf declaration" >&5
8719 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
8720 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
8721 echo $ac_n "(cached) $ac_c" 1>&6
8722 else
8725 ac_ext=C
8726 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8727 ac_cpp='$CXXCPP $CPPFLAGS'
8728 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8729 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8730 cross_compiling=$ac_cv_prog_cxx_cross
8732 cat > conftest.$ac_ext <<EOF
8733 #line 8734 "configure"
8734 #include "confdefs.h"
8735 #include <math.h>
8736 int main() {
8737 ldexpf(0, 0);
8738 ; return 0; }
8740 if { (eval echo configure:8741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8741 rm -rf conftest*
8742 glibcpp_cv_func_ldexpf_use=yes
8743 else
8744 echo "configure: failed program was:" >&5
8745 cat conftest.$ac_ext >&5
8746 rm -rf conftest*
8747 glibcpp_cv_func_ldexpf_use=no
8749 rm -f conftest*
8750 ac_ext=c
8751 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8752 ac_cpp='$CPP $CPPFLAGS'
8753 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8754 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8755 cross_compiling=$ac_cv_prog_cc_cross
8761 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
8763 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
8764 for ac_func in ldexpf
8766 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8767 echo "configure:8768: checking for $ac_func" >&5
8768 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8769 echo $ac_n "(cached) $ac_c" 1>&6
8770 else
8771 cat > conftest.$ac_ext <<EOF
8772 #line 8773 "configure"
8773 #include "confdefs.h"
8774 /* System header to define __stub macros and hopefully few prototypes,
8775 which can conflict with char $ac_func(); below. */
8776 #include <assert.h>
8777 /* Override any gcc2 internal prototype to avoid an error. */
8778 /* We use char because int might match the return type of a gcc2
8779 builtin and then its argument prototype would still apply. */
8780 char $ac_func();
8782 int main() {
8784 /* The GNU C library defines this for functions which it implements
8785 to always fail with ENOSYS. Some functions are actually named
8786 something starting with __ and the normal name is an alias. */
8787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8788 choke me
8789 #else
8790 $ac_func();
8791 #endif
8793 ; return 0; }
8795 if { (eval echo configure:8796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8796 rm -rf conftest*
8797 eval "ac_cv_func_$ac_func=yes"
8798 else
8799 echo "configure: failed program was:" >&5
8800 cat conftest.$ac_ext >&5
8801 rm -rf conftest*
8802 eval "ac_cv_func_$ac_func=no"
8804 rm -f conftest*
8807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8808 echo "$ac_t""yes" 1>&6
8809 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8810 cat >> confdefs.h <<EOF
8811 #define $ac_tr_func 1
8814 else
8815 echo "$ac_t""no" 1>&6
8817 done
8819 else
8821 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
8822 echo "configure:8823: checking for _ldexpf declaration" >&5
8823 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
8824 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
8825 echo $ac_n "(cached) $ac_c" 1>&6
8826 else
8829 ac_ext=C
8830 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8831 ac_cpp='$CXXCPP $CPPFLAGS'
8832 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8833 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8834 cross_compiling=$ac_cv_prog_cxx_cross
8836 cat > conftest.$ac_ext <<EOF
8837 #line 8838 "configure"
8838 #include "confdefs.h"
8839 #include <math.h>
8840 int main() {
8841 _ldexpf(0, 0);
8842 ; return 0; }
8844 if { (eval echo configure:8845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8845 rm -rf conftest*
8846 glibcpp_cv_func__ldexpf_use=yes
8847 else
8848 echo "configure: failed program was:" >&5
8849 cat conftest.$ac_ext >&5
8850 rm -rf conftest*
8851 glibcpp_cv_func__ldexpf_use=no
8853 rm -f conftest*
8854 ac_ext=c
8855 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8856 ac_cpp='$CPP $CPPFLAGS'
8857 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8858 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8859 cross_compiling=$ac_cv_prog_cc_cross
8865 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
8867 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
8868 for ac_func in _ldexpf
8870 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8871 echo "configure:8872: checking for $ac_func" >&5
8872 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8873 echo $ac_n "(cached) $ac_c" 1>&6
8874 else
8875 cat > conftest.$ac_ext <<EOF
8876 #line 8877 "configure"
8877 #include "confdefs.h"
8878 /* System header to define __stub macros and hopefully few prototypes,
8879 which can conflict with char $ac_func(); below. */
8880 #include <assert.h>
8881 /* Override any gcc2 internal prototype to avoid an error. */
8882 /* We use char because int might match the return type of a gcc2
8883 builtin and then its argument prototype would still apply. */
8884 char $ac_func();
8886 int main() {
8888 /* The GNU C library defines this for functions which it implements
8889 to always fail with ENOSYS. Some functions are actually named
8890 something starting with __ and the normal name is an alias. */
8891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8892 choke me
8893 #else
8894 $ac_func();
8895 #endif
8897 ; return 0; }
8899 if { (eval echo configure:8900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8900 rm -rf conftest*
8901 eval "ac_cv_func_$ac_func=yes"
8902 else
8903 echo "configure: failed program was:" >&5
8904 cat conftest.$ac_ext >&5
8905 rm -rf conftest*
8906 eval "ac_cv_func_$ac_func=no"
8908 rm -f conftest*
8911 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8912 echo "$ac_t""yes" 1>&6
8913 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8914 cat >> confdefs.h <<EOF
8915 #define $ac_tr_func 1
8918 else
8919 echo "$ac_t""no" 1>&6
8921 done
8928 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
8929 echo "configure:8930: checking for logf declaration" >&5
8930 if test x${glibcpp_cv_func_logf_use+set} != xset; then
8931 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
8932 echo $ac_n "(cached) $ac_c" 1>&6
8933 else
8936 ac_ext=C
8937 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8938 ac_cpp='$CXXCPP $CPPFLAGS'
8939 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8940 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8941 cross_compiling=$ac_cv_prog_cxx_cross
8943 cat > conftest.$ac_ext <<EOF
8944 #line 8945 "configure"
8945 #include "confdefs.h"
8946 #include <math.h>
8947 #ifdef HAVE_IEEEFP_H
8948 #include <ieeefp.h>
8949 #endif
8951 int main() {
8952 logf(0);
8953 ; return 0; }
8955 if { (eval echo configure:8956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8956 rm -rf conftest*
8957 glibcpp_cv_func_logf_use=yes
8958 else
8959 echo "configure: failed program was:" >&5
8960 cat conftest.$ac_ext >&5
8961 rm -rf conftest*
8962 glibcpp_cv_func_logf_use=no
8964 rm -f conftest*
8965 ac_ext=c
8966 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8967 ac_cpp='$CPP $CPPFLAGS'
8968 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8969 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8970 cross_compiling=$ac_cv_prog_cc_cross
8976 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
8978 if test x$glibcpp_cv_func_logf_use = x"yes"; then
8979 for ac_func in logf
8981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8982 echo "configure:8983: checking for $ac_func" >&5
8983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8984 echo $ac_n "(cached) $ac_c" 1>&6
8985 else
8986 cat > conftest.$ac_ext <<EOF
8987 #line 8988 "configure"
8988 #include "confdefs.h"
8989 /* System header to define __stub macros and hopefully few prototypes,
8990 which can conflict with char $ac_func(); below. */
8991 #include <assert.h>
8992 /* Override any gcc2 internal prototype to avoid an error. */
8993 /* We use char because int might match the return type of a gcc2
8994 builtin and then its argument prototype would still apply. */
8995 char $ac_func();
8997 int main() {
8999 /* The GNU C library defines this for functions which it implements
9000 to always fail with ENOSYS. Some functions are actually named
9001 something starting with __ and the normal name is an alias. */
9002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9003 choke me
9004 #else
9005 $ac_func();
9006 #endif
9008 ; return 0; }
9010 if { (eval echo configure:9011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9011 rm -rf conftest*
9012 eval "ac_cv_func_$ac_func=yes"
9013 else
9014 echo "configure: failed program was:" >&5
9015 cat conftest.$ac_ext >&5
9016 rm -rf conftest*
9017 eval "ac_cv_func_$ac_func=no"
9019 rm -f conftest*
9022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9023 echo "$ac_t""yes" 1>&6
9024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9025 cat >> confdefs.h <<EOF
9026 #define $ac_tr_func 1
9029 else
9030 echo "$ac_t""no" 1>&6
9032 done
9034 else
9036 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
9037 echo "configure:9038: checking for _logf declaration" >&5
9038 if test x${glibcpp_cv_func__logf_use+set} != xset; then
9039 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
9040 echo $ac_n "(cached) $ac_c" 1>&6
9041 else
9044 ac_ext=C
9045 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9046 ac_cpp='$CXXCPP $CPPFLAGS'
9047 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9048 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9049 cross_compiling=$ac_cv_prog_cxx_cross
9051 cat > conftest.$ac_ext <<EOF
9052 #line 9053 "configure"
9053 #include "confdefs.h"
9054 #include <math.h>
9055 #ifdef HAVE_IEEEFP_H
9056 #include <ieeefp.h>
9057 #endif
9059 int main() {
9060 _logf(0);
9061 ; return 0; }
9063 if { (eval echo configure:9064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9064 rm -rf conftest*
9065 glibcpp_cv_func__logf_use=yes
9066 else
9067 echo "configure: failed program was:" >&5
9068 cat conftest.$ac_ext >&5
9069 rm -rf conftest*
9070 glibcpp_cv_func__logf_use=no
9072 rm -f conftest*
9073 ac_ext=c
9074 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9075 ac_cpp='$CPP $CPPFLAGS'
9076 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9077 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9078 cross_compiling=$ac_cv_prog_cc_cross
9084 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
9086 if test x$glibcpp_cv_func__logf_use = x"yes"; then
9087 for ac_func in _logf
9089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9090 echo "configure:9091: checking for $ac_func" >&5
9091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
9093 else
9094 cat > conftest.$ac_ext <<EOF
9095 #line 9096 "configure"
9096 #include "confdefs.h"
9097 /* System header to define __stub macros and hopefully few prototypes,
9098 which can conflict with char $ac_func(); below. */
9099 #include <assert.h>
9100 /* Override any gcc2 internal prototype to avoid an error. */
9101 /* We use char because int might match the return type of a gcc2
9102 builtin and then its argument prototype would still apply. */
9103 char $ac_func();
9105 int main() {
9107 /* The GNU C library defines this for functions which it implements
9108 to always fail with ENOSYS. Some functions are actually named
9109 something starting with __ and the normal name is an alias. */
9110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9111 choke me
9112 #else
9113 $ac_func();
9114 #endif
9116 ; return 0; }
9118 if { (eval echo configure:9119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9119 rm -rf conftest*
9120 eval "ac_cv_func_$ac_func=yes"
9121 else
9122 echo "configure: failed program was:" >&5
9123 cat conftest.$ac_ext >&5
9124 rm -rf conftest*
9125 eval "ac_cv_func_$ac_func=no"
9127 rm -f conftest*
9130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9131 echo "$ac_t""yes" 1>&6
9132 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9133 cat >> confdefs.h <<EOF
9134 #define $ac_tr_func 1
9137 else
9138 echo "$ac_t""no" 1>&6
9140 done
9147 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
9148 echo "configure:9149: checking for log10f declaration" >&5
9149 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
9150 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
9151 echo $ac_n "(cached) $ac_c" 1>&6
9152 else
9155 ac_ext=C
9156 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9157 ac_cpp='$CXXCPP $CPPFLAGS'
9158 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9159 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9160 cross_compiling=$ac_cv_prog_cxx_cross
9162 cat > conftest.$ac_ext <<EOF
9163 #line 9164 "configure"
9164 #include "confdefs.h"
9165 #include <math.h>
9166 #ifdef HAVE_IEEEFP_H
9167 #include <ieeefp.h>
9168 #endif
9170 int main() {
9171 log10f(0);
9172 ; return 0; }
9174 if { (eval echo configure:9175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9175 rm -rf conftest*
9176 glibcpp_cv_func_log10f_use=yes
9177 else
9178 echo "configure: failed program was:" >&5
9179 cat conftest.$ac_ext >&5
9180 rm -rf conftest*
9181 glibcpp_cv_func_log10f_use=no
9183 rm -f conftest*
9184 ac_ext=c
9185 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9186 ac_cpp='$CPP $CPPFLAGS'
9187 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9188 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9189 cross_compiling=$ac_cv_prog_cc_cross
9195 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
9197 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
9198 for ac_func in log10f
9200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9201 echo "configure:9202: checking for $ac_func" >&5
9202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9203 echo $ac_n "(cached) $ac_c" 1>&6
9204 else
9205 cat > conftest.$ac_ext <<EOF
9206 #line 9207 "configure"
9207 #include "confdefs.h"
9208 /* System header to define __stub macros and hopefully few prototypes,
9209 which can conflict with char $ac_func(); below. */
9210 #include <assert.h>
9211 /* Override any gcc2 internal prototype to avoid an error. */
9212 /* We use char because int might match the return type of a gcc2
9213 builtin and then its argument prototype would still apply. */
9214 char $ac_func();
9216 int main() {
9218 /* The GNU C library defines this for functions which it implements
9219 to always fail with ENOSYS. Some functions are actually named
9220 something starting with __ and the normal name is an alias. */
9221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9222 choke me
9223 #else
9224 $ac_func();
9225 #endif
9227 ; return 0; }
9229 if { (eval echo configure:9230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9230 rm -rf conftest*
9231 eval "ac_cv_func_$ac_func=yes"
9232 else
9233 echo "configure: failed program was:" >&5
9234 cat conftest.$ac_ext >&5
9235 rm -rf conftest*
9236 eval "ac_cv_func_$ac_func=no"
9238 rm -f conftest*
9241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9242 echo "$ac_t""yes" 1>&6
9243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9244 cat >> confdefs.h <<EOF
9245 #define $ac_tr_func 1
9248 else
9249 echo "$ac_t""no" 1>&6
9251 done
9253 else
9255 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
9256 echo "configure:9257: checking for _log10f declaration" >&5
9257 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
9258 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
9259 echo $ac_n "(cached) $ac_c" 1>&6
9260 else
9263 ac_ext=C
9264 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9265 ac_cpp='$CXXCPP $CPPFLAGS'
9266 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9267 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9268 cross_compiling=$ac_cv_prog_cxx_cross
9270 cat > conftest.$ac_ext <<EOF
9271 #line 9272 "configure"
9272 #include "confdefs.h"
9273 #include <math.h>
9274 #ifdef HAVE_IEEEFP_H
9275 #include <ieeefp.h>
9276 #endif
9278 int main() {
9279 _log10f(0);
9280 ; return 0; }
9282 if { (eval echo configure:9283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9283 rm -rf conftest*
9284 glibcpp_cv_func__log10f_use=yes
9285 else
9286 echo "configure: failed program was:" >&5
9287 cat conftest.$ac_ext >&5
9288 rm -rf conftest*
9289 glibcpp_cv_func__log10f_use=no
9291 rm -f conftest*
9292 ac_ext=c
9293 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9294 ac_cpp='$CPP $CPPFLAGS'
9295 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9296 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9297 cross_compiling=$ac_cv_prog_cc_cross
9303 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
9305 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
9306 for ac_func in _log10f
9308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9309 echo "configure:9310: checking for $ac_func" >&5
9310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9311 echo $ac_n "(cached) $ac_c" 1>&6
9312 else
9313 cat > conftest.$ac_ext <<EOF
9314 #line 9315 "configure"
9315 #include "confdefs.h"
9316 /* System header to define __stub macros and hopefully few prototypes,
9317 which can conflict with char $ac_func(); below. */
9318 #include <assert.h>
9319 /* Override any gcc2 internal prototype to avoid an error. */
9320 /* We use char because int might match the return type of a gcc2
9321 builtin and then its argument prototype would still apply. */
9322 char $ac_func();
9324 int main() {
9326 /* The GNU C library defines this for functions which it implements
9327 to always fail with ENOSYS. Some functions are actually named
9328 something starting with __ and the normal name is an alias. */
9329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9330 choke me
9331 #else
9332 $ac_func();
9333 #endif
9335 ; return 0; }
9337 if { (eval echo configure:9338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9338 rm -rf conftest*
9339 eval "ac_cv_func_$ac_func=yes"
9340 else
9341 echo "configure: failed program was:" >&5
9342 cat conftest.$ac_ext >&5
9343 rm -rf conftest*
9344 eval "ac_cv_func_$ac_func=no"
9346 rm -f conftest*
9349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9350 echo "$ac_t""yes" 1>&6
9351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9352 cat >> confdefs.h <<EOF
9353 #define $ac_tr_func 1
9356 else
9357 echo "$ac_t""no" 1>&6
9359 done
9366 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
9367 echo "configure:9368: checking for modff declaration" >&5
9368 if test x${glibcpp_cv_func_modff_use+set} != xset; then
9369 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
9370 echo $ac_n "(cached) $ac_c" 1>&6
9371 else
9374 ac_ext=C
9375 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9376 ac_cpp='$CXXCPP $CPPFLAGS'
9377 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9378 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9379 cross_compiling=$ac_cv_prog_cxx_cross
9381 cat > conftest.$ac_ext <<EOF
9382 #line 9383 "configure"
9383 #include "confdefs.h"
9384 #include <math.h>
9385 int main() {
9386 modff(0, 0);
9387 ; return 0; }
9389 if { (eval echo configure:9390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9390 rm -rf conftest*
9391 glibcpp_cv_func_modff_use=yes
9392 else
9393 echo "configure: failed program was:" >&5
9394 cat conftest.$ac_ext >&5
9395 rm -rf conftest*
9396 glibcpp_cv_func_modff_use=no
9398 rm -f conftest*
9399 ac_ext=c
9400 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9401 ac_cpp='$CPP $CPPFLAGS'
9402 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9403 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9404 cross_compiling=$ac_cv_prog_cc_cross
9410 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
9412 if test x$glibcpp_cv_func_modff_use = x"yes"; then
9413 for ac_func in modff
9415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9416 echo "configure:9417: checking for $ac_func" >&5
9417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9418 echo $ac_n "(cached) $ac_c" 1>&6
9419 else
9420 cat > conftest.$ac_ext <<EOF
9421 #line 9422 "configure"
9422 #include "confdefs.h"
9423 /* System header to define __stub macros and hopefully few prototypes,
9424 which can conflict with char $ac_func(); below. */
9425 #include <assert.h>
9426 /* Override any gcc2 internal prototype to avoid an error. */
9427 /* We use char because int might match the return type of a gcc2
9428 builtin and then its argument prototype would still apply. */
9429 char $ac_func();
9431 int main() {
9433 /* The GNU C library defines this for functions which it implements
9434 to always fail with ENOSYS. Some functions are actually named
9435 something starting with __ and the normal name is an alias. */
9436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9437 choke me
9438 #else
9439 $ac_func();
9440 #endif
9442 ; return 0; }
9444 if { (eval echo configure:9445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9445 rm -rf conftest*
9446 eval "ac_cv_func_$ac_func=yes"
9447 else
9448 echo "configure: failed program was:" >&5
9449 cat conftest.$ac_ext >&5
9450 rm -rf conftest*
9451 eval "ac_cv_func_$ac_func=no"
9453 rm -f conftest*
9456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9457 echo "$ac_t""yes" 1>&6
9458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9459 cat >> confdefs.h <<EOF
9460 #define $ac_tr_func 1
9463 else
9464 echo "$ac_t""no" 1>&6
9466 done
9468 else
9470 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
9471 echo "configure:9472: checking for _modff declaration" >&5
9472 if test x${glibcpp_cv_func__modff_use+set} != xset; then
9473 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
9474 echo $ac_n "(cached) $ac_c" 1>&6
9475 else
9478 ac_ext=C
9479 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9480 ac_cpp='$CXXCPP $CPPFLAGS'
9481 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9482 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9483 cross_compiling=$ac_cv_prog_cxx_cross
9485 cat > conftest.$ac_ext <<EOF
9486 #line 9487 "configure"
9487 #include "confdefs.h"
9488 #include <math.h>
9489 int main() {
9490 _modff(0, 0);
9491 ; return 0; }
9493 if { (eval echo configure:9494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9494 rm -rf conftest*
9495 glibcpp_cv_func__modff_use=yes
9496 else
9497 echo "configure: failed program was:" >&5
9498 cat conftest.$ac_ext >&5
9499 rm -rf conftest*
9500 glibcpp_cv_func__modff_use=no
9502 rm -f conftest*
9503 ac_ext=c
9504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9505 ac_cpp='$CPP $CPPFLAGS'
9506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9507 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9508 cross_compiling=$ac_cv_prog_cc_cross
9514 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
9516 if test x$glibcpp_cv_func__modff_use = x"yes"; then
9517 for ac_func in _modff
9519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9520 echo "configure:9521: checking for $ac_func" >&5
9521 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9522 echo $ac_n "(cached) $ac_c" 1>&6
9523 else
9524 cat > conftest.$ac_ext <<EOF
9525 #line 9526 "configure"
9526 #include "confdefs.h"
9527 /* System header to define __stub macros and hopefully few prototypes,
9528 which can conflict with char $ac_func(); below. */
9529 #include <assert.h>
9530 /* Override any gcc2 internal prototype to avoid an error. */
9531 /* We use char because int might match the return type of a gcc2
9532 builtin and then its argument prototype would still apply. */
9533 char $ac_func();
9535 int main() {
9537 /* The GNU C library defines this for functions which it implements
9538 to always fail with ENOSYS. Some functions are actually named
9539 something starting with __ and the normal name is an alias. */
9540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9541 choke me
9542 #else
9543 $ac_func();
9544 #endif
9546 ; return 0; }
9548 if { (eval echo configure:9549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9549 rm -rf conftest*
9550 eval "ac_cv_func_$ac_func=yes"
9551 else
9552 echo "configure: failed program was:" >&5
9553 cat conftest.$ac_ext >&5
9554 rm -rf conftest*
9555 eval "ac_cv_func_$ac_func=no"
9557 rm -f conftest*
9560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9561 echo "$ac_t""yes" 1>&6
9562 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9563 cat >> confdefs.h <<EOF
9564 #define $ac_tr_func 1
9567 else
9568 echo "$ac_t""no" 1>&6
9570 done
9577 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
9578 echo "configure:9579: checking for powf declaration" >&5
9579 if test x${glibcpp_cv_func_powf_use+set} != xset; then
9580 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
9581 echo $ac_n "(cached) $ac_c" 1>&6
9582 else
9585 ac_ext=C
9586 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9587 ac_cpp='$CXXCPP $CPPFLAGS'
9588 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9589 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9590 cross_compiling=$ac_cv_prog_cxx_cross
9592 cat > conftest.$ac_ext <<EOF
9593 #line 9594 "configure"
9594 #include "confdefs.h"
9595 #include <math.h>
9596 int main() {
9597 powf(0, 0);
9598 ; return 0; }
9600 if { (eval echo configure:9601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9601 rm -rf conftest*
9602 glibcpp_cv_func_powf_use=yes
9603 else
9604 echo "configure: failed program was:" >&5
9605 cat conftest.$ac_ext >&5
9606 rm -rf conftest*
9607 glibcpp_cv_func_powf_use=no
9609 rm -f conftest*
9610 ac_ext=c
9611 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9612 ac_cpp='$CPP $CPPFLAGS'
9613 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9614 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9615 cross_compiling=$ac_cv_prog_cc_cross
9621 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
9623 if test x$glibcpp_cv_func_powf_use = x"yes"; then
9624 for ac_func in powf
9626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9627 echo "configure:9628: checking for $ac_func" >&5
9628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9629 echo $ac_n "(cached) $ac_c" 1>&6
9630 else
9631 cat > conftest.$ac_ext <<EOF
9632 #line 9633 "configure"
9633 #include "confdefs.h"
9634 /* System header to define __stub macros and hopefully few prototypes,
9635 which can conflict with char $ac_func(); below. */
9636 #include <assert.h>
9637 /* Override any gcc2 internal prototype to avoid an error. */
9638 /* We use char because int might match the return type of a gcc2
9639 builtin and then its argument prototype would still apply. */
9640 char $ac_func();
9642 int main() {
9644 /* The GNU C library defines this for functions which it implements
9645 to always fail with ENOSYS. Some functions are actually named
9646 something starting with __ and the normal name is an alias. */
9647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9648 choke me
9649 #else
9650 $ac_func();
9651 #endif
9653 ; return 0; }
9655 if { (eval echo configure:9656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9656 rm -rf conftest*
9657 eval "ac_cv_func_$ac_func=yes"
9658 else
9659 echo "configure: failed program was:" >&5
9660 cat conftest.$ac_ext >&5
9661 rm -rf conftest*
9662 eval "ac_cv_func_$ac_func=no"
9664 rm -f conftest*
9667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9668 echo "$ac_t""yes" 1>&6
9669 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9670 cat >> confdefs.h <<EOF
9671 #define $ac_tr_func 1
9674 else
9675 echo "$ac_t""no" 1>&6
9677 done
9679 else
9681 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
9682 echo "configure:9683: checking for _powf declaration" >&5
9683 if test x${glibcpp_cv_func__powf_use+set} != xset; then
9684 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
9685 echo $ac_n "(cached) $ac_c" 1>&6
9686 else
9689 ac_ext=C
9690 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9691 ac_cpp='$CXXCPP $CPPFLAGS'
9692 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9693 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9694 cross_compiling=$ac_cv_prog_cxx_cross
9696 cat > conftest.$ac_ext <<EOF
9697 #line 9698 "configure"
9698 #include "confdefs.h"
9699 #include <math.h>
9700 int main() {
9701 _powf(0, 0);
9702 ; return 0; }
9704 if { (eval echo configure:9705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9705 rm -rf conftest*
9706 glibcpp_cv_func__powf_use=yes
9707 else
9708 echo "configure: failed program was:" >&5
9709 cat conftest.$ac_ext >&5
9710 rm -rf conftest*
9711 glibcpp_cv_func__powf_use=no
9713 rm -f conftest*
9714 ac_ext=c
9715 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9716 ac_cpp='$CPP $CPPFLAGS'
9717 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9718 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9719 cross_compiling=$ac_cv_prog_cc_cross
9725 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
9727 if test x$glibcpp_cv_func__powf_use = x"yes"; then
9728 for ac_func in _powf
9730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9731 echo "configure:9732: checking for $ac_func" >&5
9732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9733 echo $ac_n "(cached) $ac_c" 1>&6
9734 else
9735 cat > conftest.$ac_ext <<EOF
9736 #line 9737 "configure"
9737 #include "confdefs.h"
9738 /* System header to define __stub macros and hopefully few prototypes,
9739 which can conflict with char $ac_func(); below. */
9740 #include <assert.h>
9741 /* Override any gcc2 internal prototype to avoid an error. */
9742 /* We use char because int might match the return type of a gcc2
9743 builtin and then its argument prototype would still apply. */
9744 char $ac_func();
9746 int main() {
9748 /* The GNU C library defines this for functions which it implements
9749 to always fail with ENOSYS. Some functions are actually named
9750 something starting with __ and the normal name is an alias. */
9751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9752 choke me
9753 #else
9754 $ac_func();
9755 #endif
9757 ; return 0; }
9759 if { (eval echo configure:9760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9760 rm -rf conftest*
9761 eval "ac_cv_func_$ac_func=yes"
9762 else
9763 echo "configure: failed program was:" >&5
9764 cat conftest.$ac_ext >&5
9765 rm -rf conftest*
9766 eval "ac_cv_func_$ac_func=no"
9768 rm -f conftest*
9771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9772 echo "$ac_t""yes" 1>&6
9773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9774 cat >> confdefs.h <<EOF
9775 #define $ac_tr_func 1
9778 else
9779 echo "$ac_t""no" 1>&6
9781 done
9788 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
9789 echo "configure:9790: checking for sqrtf declaration" >&5
9790 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
9791 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
9792 echo $ac_n "(cached) $ac_c" 1>&6
9793 else
9796 ac_ext=C
9797 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9798 ac_cpp='$CXXCPP $CPPFLAGS'
9799 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9800 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9801 cross_compiling=$ac_cv_prog_cxx_cross
9803 cat > conftest.$ac_ext <<EOF
9804 #line 9805 "configure"
9805 #include "confdefs.h"
9806 #include <math.h>
9807 #ifdef HAVE_IEEEFP_H
9808 #include <ieeefp.h>
9809 #endif
9811 int main() {
9812 sqrtf(0);
9813 ; return 0; }
9815 if { (eval echo configure:9816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9816 rm -rf conftest*
9817 glibcpp_cv_func_sqrtf_use=yes
9818 else
9819 echo "configure: failed program was:" >&5
9820 cat conftest.$ac_ext >&5
9821 rm -rf conftest*
9822 glibcpp_cv_func_sqrtf_use=no
9824 rm -f conftest*
9825 ac_ext=c
9826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9827 ac_cpp='$CPP $CPPFLAGS'
9828 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9829 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9830 cross_compiling=$ac_cv_prog_cc_cross
9836 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
9838 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
9839 for ac_func in sqrtf
9841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9842 echo "configure:9843: checking for $ac_func" >&5
9843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9844 echo $ac_n "(cached) $ac_c" 1>&6
9845 else
9846 cat > conftest.$ac_ext <<EOF
9847 #line 9848 "configure"
9848 #include "confdefs.h"
9849 /* System header to define __stub macros and hopefully few prototypes,
9850 which can conflict with char $ac_func(); below. */
9851 #include <assert.h>
9852 /* Override any gcc2 internal prototype to avoid an error. */
9853 /* We use char because int might match the return type of a gcc2
9854 builtin and then its argument prototype would still apply. */
9855 char $ac_func();
9857 int main() {
9859 /* The GNU C library defines this for functions which it implements
9860 to always fail with ENOSYS. Some functions are actually named
9861 something starting with __ and the normal name is an alias. */
9862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9863 choke me
9864 #else
9865 $ac_func();
9866 #endif
9868 ; return 0; }
9870 if { (eval echo configure:9871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9871 rm -rf conftest*
9872 eval "ac_cv_func_$ac_func=yes"
9873 else
9874 echo "configure: failed program was:" >&5
9875 cat conftest.$ac_ext >&5
9876 rm -rf conftest*
9877 eval "ac_cv_func_$ac_func=no"
9879 rm -f conftest*
9882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9883 echo "$ac_t""yes" 1>&6
9884 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9885 cat >> confdefs.h <<EOF
9886 #define $ac_tr_func 1
9889 else
9890 echo "$ac_t""no" 1>&6
9892 done
9894 else
9896 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
9897 echo "configure:9898: checking for _sqrtf declaration" >&5
9898 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
9899 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
9900 echo $ac_n "(cached) $ac_c" 1>&6
9901 else
9904 ac_ext=C
9905 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9906 ac_cpp='$CXXCPP $CPPFLAGS'
9907 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9908 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9909 cross_compiling=$ac_cv_prog_cxx_cross
9911 cat > conftest.$ac_ext <<EOF
9912 #line 9913 "configure"
9913 #include "confdefs.h"
9914 #include <math.h>
9915 #ifdef HAVE_IEEEFP_H
9916 #include <ieeefp.h>
9917 #endif
9919 int main() {
9920 _sqrtf(0);
9921 ; return 0; }
9923 if { (eval echo configure:9924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9924 rm -rf conftest*
9925 glibcpp_cv_func__sqrtf_use=yes
9926 else
9927 echo "configure: failed program was:" >&5
9928 cat conftest.$ac_ext >&5
9929 rm -rf conftest*
9930 glibcpp_cv_func__sqrtf_use=no
9932 rm -f conftest*
9933 ac_ext=c
9934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9935 ac_cpp='$CPP $CPPFLAGS'
9936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9937 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9938 cross_compiling=$ac_cv_prog_cc_cross
9944 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
9946 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
9947 for ac_func in _sqrtf
9949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9950 echo "configure:9951: checking for $ac_func" >&5
9951 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9952 echo $ac_n "(cached) $ac_c" 1>&6
9953 else
9954 cat > conftest.$ac_ext <<EOF
9955 #line 9956 "configure"
9956 #include "confdefs.h"
9957 /* System header to define __stub macros and hopefully few prototypes,
9958 which can conflict with char $ac_func(); below. */
9959 #include <assert.h>
9960 /* Override any gcc2 internal prototype to avoid an error. */
9961 /* We use char because int might match the return type of a gcc2
9962 builtin and then its argument prototype would still apply. */
9963 char $ac_func();
9965 int main() {
9967 /* The GNU C library defines this for functions which it implements
9968 to always fail with ENOSYS. Some functions are actually named
9969 something starting with __ and the normal name is an alias. */
9970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9971 choke me
9972 #else
9973 $ac_func();
9974 #endif
9976 ; return 0; }
9978 if { (eval echo configure:9979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9979 rm -rf conftest*
9980 eval "ac_cv_func_$ac_func=yes"
9981 else
9982 echo "configure: failed program was:" >&5
9983 cat conftest.$ac_ext >&5
9984 rm -rf conftest*
9985 eval "ac_cv_func_$ac_func=no"
9987 rm -f conftest*
9990 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9991 echo "$ac_t""yes" 1>&6
9992 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9993 cat >> confdefs.h <<EOF
9994 #define $ac_tr_func 1
9997 else
9998 echo "$ac_t""no" 1>&6
10000 done
10007 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
10008 echo "configure:10009: checking for sincosf declaration" >&5
10009 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
10010 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
10011 echo $ac_n "(cached) $ac_c" 1>&6
10012 else
10015 ac_ext=C
10016 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10017 ac_cpp='$CXXCPP $CPPFLAGS'
10018 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10019 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10020 cross_compiling=$ac_cv_prog_cxx_cross
10022 cat > conftest.$ac_ext <<EOF
10023 #line 10024 "configure"
10024 #include "confdefs.h"
10025 #include <math.h>
10026 int main() {
10027 sincosf(0, 0, 0);
10028 ; return 0; }
10030 if { (eval echo configure:10031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10031 rm -rf conftest*
10032 glibcpp_cv_func_sincosf_use=yes
10033 else
10034 echo "configure: failed program was:" >&5
10035 cat conftest.$ac_ext >&5
10036 rm -rf conftest*
10037 glibcpp_cv_func_sincosf_use=no
10039 rm -f conftest*
10040 ac_ext=c
10041 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10042 ac_cpp='$CPP $CPPFLAGS'
10043 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10044 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10045 cross_compiling=$ac_cv_prog_cc_cross
10051 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
10053 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
10054 for ac_func in sincosf
10056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10057 echo "configure:10058: checking for $ac_func" >&5
10058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10059 echo $ac_n "(cached) $ac_c" 1>&6
10060 else
10061 cat > conftest.$ac_ext <<EOF
10062 #line 10063 "configure"
10063 #include "confdefs.h"
10064 /* System header to define __stub macros and hopefully few prototypes,
10065 which can conflict with char $ac_func(); below. */
10066 #include <assert.h>
10067 /* Override any gcc2 internal prototype to avoid an error. */
10068 /* We use char because int might match the return type of a gcc2
10069 builtin and then its argument prototype would still apply. */
10070 char $ac_func();
10072 int main() {
10074 /* The GNU C library defines this for functions which it implements
10075 to always fail with ENOSYS. Some functions are actually named
10076 something starting with __ and the normal name is an alias. */
10077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10078 choke me
10079 #else
10080 $ac_func();
10081 #endif
10083 ; return 0; }
10085 if { (eval echo configure:10086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10086 rm -rf conftest*
10087 eval "ac_cv_func_$ac_func=yes"
10088 else
10089 echo "configure: failed program was:" >&5
10090 cat conftest.$ac_ext >&5
10091 rm -rf conftest*
10092 eval "ac_cv_func_$ac_func=no"
10094 rm -f conftest*
10097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10098 echo "$ac_t""yes" 1>&6
10099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10100 cat >> confdefs.h <<EOF
10101 #define $ac_tr_func 1
10104 else
10105 echo "$ac_t""no" 1>&6
10107 done
10109 else
10111 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
10112 echo "configure:10113: checking for _sincosf declaration" >&5
10113 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
10114 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
10115 echo $ac_n "(cached) $ac_c" 1>&6
10116 else
10119 ac_ext=C
10120 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10121 ac_cpp='$CXXCPP $CPPFLAGS'
10122 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10123 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10124 cross_compiling=$ac_cv_prog_cxx_cross
10126 cat > conftest.$ac_ext <<EOF
10127 #line 10128 "configure"
10128 #include "confdefs.h"
10129 #include <math.h>
10130 int main() {
10131 _sincosf(0, 0, 0);
10132 ; return 0; }
10134 if { (eval echo configure:10135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10135 rm -rf conftest*
10136 glibcpp_cv_func__sincosf_use=yes
10137 else
10138 echo "configure: failed program was:" >&5
10139 cat conftest.$ac_ext >&5
10140 rm -rf conftest*
10141 glibcpp_cv_func__sincosf_use=no
10143 rm -f conftest*
10144 ac_ext=c
10145 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10146 ac_cpp='$CPP $CPPFLAGS'
10147 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10148 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10149 cross_compiling=$ac_cv_prog_cc_cross
10155 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
10157 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
10158 for ac_func in _sincosf
10160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10161 echo "configure:10162: checking for $ac_func" >&5
10162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10163 echo $ac_n "(cached) $ac_c" 1>&6
10164 else
10165 cat > conftest.$ac_ext <<EOF
10166 #line 10167 "configure"
10167 #include "confdefs.h"
10168 /* System header to define __stub macros and hopefully few prototypes,
10169 which can conflict with char $ac_func(); below. */
10170 #include <assert.h>
10171 /* Override any gcc2 internal prototype to avoid an error. */
10172 /* We use char because int might match the return type of a gcc2
10173 builtin and then its argument prototype would still apply. */
10174 char $ac_func();
10176 int main() {
10178 /* The GNU C library defines this for functions which it implements
10179 to always fail with ENOSYS. Some functions are actually named
10180 something starting with __ and the normal name is an alias. */
10181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10182 choke me
10183 #else
10184 $ac_func();
10185 #endif
10187 ; return 0; }
10189 if { (eval echo configure:10190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10190 rm -rf conftest*
10191 eval "ac_cv_func_$ac_func=yes"
10192 else
10193 echo "configure: failed program was:" >&5
10194 cat conftest.$ac_ext >&5
10195 rm -rf conftest*
10196 eval "ac_cv_func_$ac_func=no"
10198 rm -f conftest*
10201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10202 echo "$ac_t""yes" 1>&6
10203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10204 cat >> confdefs.h <<EOF
10205 #define $ac_tr_func 1
10208 else
10209 echo "$ac_t""no" 1>&6
10211 done
10218 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
10219 echo "configure:10220: checking for finitef declaration" >&5
10220 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
10221 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
10222 echo $ac_n "(cached) $ac_c" 1>&6
10223 else
10226 ac_ext=C
10227 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10228 ac_cpp='$CXXCPP $CPPFLAGS'
10229 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10230 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10231 cross_compiling=$ac_cv_prog_cxx_cross
10233 cat > conftest.$ac_ext <<EOF
10234 #line 10235 "configure"
10235 #include "confdefs.h"
10236 #include <math.h>
10237 #ifdef HAVE_IEEEFP_H
10238 #include <ieeefp.h>
10239 #endif
10241 int main() {
10242 finitef(0);
10243 ; return 0; }
10245 if { (eval echo configure:10246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10246 rm -rf conftest*
10247 glibcpp_cv_func_finitef_use=yes
10248 else
10249 echo "configure: failed program was:" >&5
10250 cat conftest.$ac_ext >&5
10251 rm -rf conftest*
10252 glibcpp_cv_func_finitef_use=no
10254 rm -f conftest*
10255 ac_ext=c
10256 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10257 ac_cpp='$CPP $CPPFLAGS'
10258 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10259 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10260 cross_compiling=$ac_cv_prog_cc_cross
10266 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
10268 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
10269 for ac_func in finitef
10271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10272 echo "configure:10273: checking for $ac_func" >&5
10273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10274 echo $ac_n "(cached) $ac_c" 1>&6
10275 else
10276 cat > conftest.$ac_ext <<EOF
10277 #line 10278 "configure"
10278 #include "confdefs.h"
10279 /* System header to define __stub macros and hopefully few prototypes,
10280 which can conflict with char $ac_func(); below. */
10281 #include <assert.h>
10282 /* Override any gcc2 internal prototype to avoid an error. */
10283 /* We use char because int might match the return type of a gcc2
10284 builtin and then its argument prototype would still apply. */
10285 char $ac_func();
10287 int main() {
10289 /* The GNU C library defines this for functions which it implements
10290 to always fail with ENOSYS. Some functions are actually named
10291 something starting with __ and the normal name is an alias. */
10292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10293 choke me
10294 #else
10295 $ac_func();
10296 #endif
10298 ; return 0; }
10300 if { (eval echo configure:10301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10301 rm -rf conftest*
10302 eval "ac_cv_func_$ac_func=yes"
10303 else
10304 echo "configure: failed program was:" >&5
10305 cat conftest.$ac_ext >&5
10306 rm -rf conftest*
10307 eval "ac_cv_func_$ac_func=no"
10309 rm -f conftest*
10312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10313 echo "$ac_t""yes" 1>&6
10314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10315 cat >> confdefs.h <<EOF
10316 #define $ac_tr_func 1
10319 else
10320 echo "$ac_t""no" 1>&6
10322 done
10324 else
10326 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
10327 echo "configure:10328: checking for _finitef declaration" >&5
10328 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
10329 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
10330 echo $ac_n "(cached) $ac_c" 1>&6
10331 else
10334 ac_ext=C
10335 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10336 ac_cpp='$CXXCPP $CPPFLAGS'
10337 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10338 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10339 cross_compiling=$ac_cv_prog_cxx_cross
10341 cat > conftest.$ac_ext <<EOF
10342 #line 10343 "configure"
10343 #include "confdefs.h"
10344 #include <math.h>
10345 #ifdef HAVE_IEEEFP_H
10346 #include <ieeefp.h>
10347 #endif
10349 int main() {
10350 _finitef(0);
10351 ; return 0; }
10353 if { (eval echo configure:10354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10354 rm -rf conftest*
10355 glibcpp_cv_func__finitef_use=yes
10356 else
10357 echo "configure: failed program was:" >&5
10358 cat conftest.$ac_ext >&5
10359 rm -rf conftest*
10360 glibcpp_cv_func__finitef_use=no
10362 rm -f conftest*
10363 ac_ext=c
10364 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10365 ac_cpp='$CPP $CPPFLAGS'
10366 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10367 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10368 cross_compiling=$ac_cv_prog_cc_cross
10374 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
10376 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
10377 for ac_func in _finitef
10379 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10380 echo "configure:10381: checking for $ac_func" >&5
10381 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10382 echo $ac_n "(cached) $ac_c" 1>&6
10383 else
10384 cat > conftest.$ac_ext <<EOF
10385 #line 10386 "configure"
10386 #include "confdefs.h"
10387 /* System header to define __stub macros and hopefully few prototypes,
10388 which can conflict with char $ac_func(); below. */
10389 #include <assert.h>
10390 /* Override any gcc2 internal prototype to avoid an error. */
10391 /* We use char because int might match the return type of a gcc2
10392 builtin and then its argument prototype would still apply. */
10393 char $ac_func();
10395 int main() {
10397 /* The GNU C library defines this for functions which it implements
10398 to always fail with ENOSYS. Some functions are actually named
10399 something starting with __ and the normal name is an alias. */
10400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10401 choke me
10402 #else
10403 $ac_func();
10404 #endif
10406 ; return 0; }
10408 if { (eval echo configure:10409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10409 rm -rf conftest*
10410 eval "ac_cv_func_$ac_func=yes"
10411 else
10412 echo "configure: failed program was:" >&5
10413 cat conftest.$ac_ext >&5
10414 rm -rf conftest*
10415 eval "ac_cv_func_$ac_func=no"
10417 rm -f conftest*
10420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10421 echo "$ac_t""yes" 1>&6
10422 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10423 cat >> confdefs.h <<EOF
10424 #define $ac_tr_func 1
10427 else
10428 echo "$ac_t""no" 1>&6
10430 done
10437 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
10438 echo "configure:10439: checking for long double trig functions" >&5
10439 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
10440 echo $ac_n "(cached) $ac_c" 1>&6
10441 else
10444 ac_ext=C
10445 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10446 ac_cpp='$CXXCPP $CPPFLAGS'
10447 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10448 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10449 cross_compiling=$ac_cv_prog_cxx_cross
10451 cat > conftest.$ac_ext <<EOF
10452 #line 10453 "configure"
10453 #include "confdefs.h"
10454 #include <math.h>
10455 int main() {
10456 `for x in acosl asinl atanl \
10457 cosl sinl tanl \
10458 coshl sinhl tanhl; do echo "$x (0);"; done`
10459 ; return 0; }
10461 if { (eval echo configure:10462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10462 rm -rf conftest*
10463 glibcpp_cv_func_long_double_trig_use=yes
10464 else
10465 echo "configure: failed program was:" >&5
10466 cat conftest.$ac_ext >&5
10467 rm -rf conftest*
10468 glibcpp_cv_func_long_double_trig_use=no
10470 rm -f conftest*
10471 ac_ext=c
10472 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10473 ac_cpp='$CPP $CPPFLAGS'
10474 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10475 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10476 cross_compiling=$ac_cv_prog_cc_cross
10480 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
10481 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
10482 for ac_func in acosl asinl atanl \
10483 cosl sinl tanl \
10484 coshl sinhl tanhl
10486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10487 echo "configure:10488: checking for $ac_func" >&5
10488 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10489 echo $ac_n "(cached) $ac_c" 1>&6
10490 else
10491 cat > conftest.$ac_ext <<EOF
10492 #line 10493 "configure"
10493 #include "confdefs.h"
10494 /* System header to define __stub macros and hopefully few prototypes,
10495 which can conflict with char $ac_func(); below. */
10496 #include <assert.h>
10497 /* Override any gcc2 internal prototype to avoid an error. */
10498 /* We use char because int might match the return type of a gcc2
10499 builtin and then its argument prototype would still apply. */
10500 char $ac_func();
10502 int main() {
10504 /* The GNU C library defines this for functions which it implements
10505 to always fail with ENOSYS. Some functions are actually named
10506 something starting with __ and the normal name is an alias. */
10507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10508 choke me
10509 #else
10510 $ac_func();
10511 #endif
10513 ; return 0; }
10515 if { (eval echo configure:10516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10516 rm -rf conftest*
10517 eval "ac_cv_func_$ac_func=yes"
10518 else
10519 echo "configure: failed program was:" >&5
10520 cat conftest.$ac_ext >&5
10521 rm -rf conftest*
10522 eval "ac_cv_func_$ac_func=no"
10524 rm -f conftest*
10527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10528 echo "$ac_t""yes" 1>&6
10529 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10530 cat >> confdefs.h <<EOF
10531 #define $ac_tr_func 1
10534 else
10535 echo "$ac_t""no" 1>&6
10537 done
10542 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
10543 echo "configure:10544: checking for long double round functions" >&5
10544 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
10545 echo $ac_n "(cached) $ac_c" 1>&6
10546 else
10549 ac_ext=C
10550 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10551 ac_cpp='$CXXCPP $CPPFLAGS'
10552 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10553 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10554 cross_compiling=$ac_cv_prog_cxx_cross
10556 cat > conftest.$ac_ext <<EOF
10557 #line 10558 "configure"
10558 #include "confdefs.h"
10559 #include <math.h>
10560 int main() {
10561 `for x in ceill floorl; do echo "$x (0);"; done`
10562 ; return 0; }
10564 if { (eval echo configure:10565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10565 rm -rf conftest*
10566 glibcpp_cv_func_long_double_round_use=yes
10567 else
10568 echo "configure: failed program was:" >&5
10569 cat conftest.$ac_ext >&5
10570 rm -rf conftest*
10571 glibcpp_cv_func_long_double_round_use=no
10573 rm -f conftest*
10574 ac_ext=c
10575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10576 ac_cpp='$CPP $CPPFLAGS'
10577 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10578 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10579 cross_compiling=$ac_cv_prog_cc_cross
10583 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
10584 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
10585 for ac_func in ceill floorl
10587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10588 echo "configure:10589: checking for $ac_func" >&5
10589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10590 echo $ac_n "(cached) $ac_c" 1>&6
10591 else
10592 cat > conftest.$ac_ext <<EOF
10593 #line 10594 "configure"
10594 #include "confdefs.h"
10595 /* System header to define __stub macros and hopefully few prototypes,
10596 which can conflict with char $ac_func(); below. */
10597 #include <assert.h>
10598 /* Override any gcc2 internal prototype to avoid an error. */
10599 /* We use char because int might match the return type of a gcc2
10600 builtin and then its argument prototype would still apply. */
10601 char $ac_func();
10603 int main() {
10605 /* The GNU C library defines this for functions which it implements
10606 to always fail with ENOSYS. Some functions are actually named
10607 something starting with __ and the normal name is an alias. */
10608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10609 choke me
10610 #else
10611 $ac_func();
10612 #endif
10614 ; return 0; }
10616 if { (eval echo configure:10617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10617 rm -rf conftest*
10618 eval "ac_cv_func_$ac_func=yes"
10619 else
10620 echo "configure: failed program was:" >&5
10621 cat conftest.$ac_ext >&5
10622 rm -rf conftest*
10623 eval "ac_cv_func_$ac_func=no"
10625 rm -f conftest*
10628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10629 echo "$ac_t""yes" 1>&6
10630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10631 cat >> confdefs.h <<EOF
10632 #define $ac_tr_func 1
10635 else
10636 echo "$ac_t""no" 1>&6
10638 done
10644 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
10645 echo "configure:10646: checking for isnanl declaration" >&5
10646 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
10647 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
10648 echo $ac_n "(cached) $ac_c" 1>&6
10649 else
10652 ac_ext=C
10653 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10654 ac_cpp='$CXXCPP $CPPFLAGS'
10655 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10656 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10657 cross_compiling=$ac_cv_prog_cxx_cross
10659 cat > conftest.$ac_ext <<EOF
10660 #line 10661 "configure"
10661 #include "confdefs.h"
10662 #include <math.h>
10663 #ifdef HAVE_IEEEFP_H
10664 #include <ieeefp.h>
10665 #endif
10667 int main() {
10668 isnanl(0);
10669 ; return 0; }
10671 if { (eval echo configure:10672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10672 rm -rf conftest*
10673 glibcpp_cv_func_isnanl_use=yes
10674 else
10675 echo "configure: failed program was:" >&5
10676 cat conftest.$ac_ext >&5
10677 rm -rf conftest*
10678 glibcpp_cv_func_isnanl_use=no
10680 rm -f conftest*
10681 ac_ext=c
10682 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10683 ac_cpp='$CPP $CPPFLAGS'
10684 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10685 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10686 cross_compiling=$ac_cv_prog_cc_cross
10692 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
10694 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
10695 for ac_func in isnanl
10697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10698 echo "configure:10699: checking for $ac_func" >&5
10699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10700 echo $ac_n "(cached) $ac_c" 1>&6
10701 else
10702 cat > conftest.$ac_ext <<EOF
10703 #line 10704 "configure"
10704 #include "confdefs.h"
10705 /* System header to define __stub macros and hopefully few prototypes,
10706 which can conflict with char $ac_func(); below. */
10707 #include <assert.h>
10708 /* Override any gcc2 internal prototype to avoid an error. */
10709 /* We use char because int might match the return type of a gcc2
10710 builtin and then its argument prototype would still apply. */
10711 char $ac_func();
10713 int main() {
10715 /* The GNU C library defines this for functions which it implements
10716 to always fail with ENOSYS. Some functions are actually named
10717 something starting with __ and the normal name is an alias. */
10718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10719 choke me
10720 #else
10721 $ac_func();
10722 #endif
10724 ; return 0; }
10726 if { (eval echo configure:10727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10727 rm -rf conftest*
10728 eval "ac_cv_func_$ac_func=yes"
10729 else
10730 echo "configure: failed program was:" >&5
10731 cat conftest.$ac_ext >&5
10732 rm -rf conftest*
10733 eval "ac_cv_func_$ac_func=no"
10735 rm -f conftest*
10738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10739 echo "$ac_t""yes" 1>&6
10740 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10741 cat >> confdefs.h <<EOF
10742 #define $ac_tr_func 1
10745 else
10746 echo "$ac_t""no" 1>&6
10748 done
10750 else
10752 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
10753 echo "configure:10754: checking for _isnanl declaration" >&5
10754 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
10755 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
10756 echo $ac_n "(cached) $ac_c" 1>&6
10757 else
10760 ac_ext=C
10761 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10762 ac_cpp='$CXXCPP $CPPFLAGS'
10763 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10764 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10765 cross_compiling=$ac_cv_prog_cxx_cross
10767 cat > conftest.$ac_ext <<EOF
10768 #line 10769 "configure"
10769 #include "confdefs.h"
10770 #include <math.h>
10771 #ifdef HAVE_IEEEFP_H
10772 #include <ieeefp.h>
10773 #endif
10775 int main() {
10776 _isnanl(0);
10777 ; return 0; }
10779 if { (eval echo configure:10780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10780 rm -rf conftest*
10781 glibcpp_cv_func__isnanl_use=yes
10782 else
10783 echo "configure: failed program was:" >&5
10784 cat conftest.$ac_ext >&5
10785 rm -rf conftest*
10786 glibcpp_cv_func__isnanl_use=no
10788 rm -f conftest*
10789 ac_ext=c
10790 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10791 ac_cpp='$CPP $CPPFLAGS'
10792 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10793 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10794 cross_compiling=$ac_cv_prog_cc_cross
10800 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
10802 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
10803 for ac_func in _isnanl
10805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10806 echo "configure:10807: checking for $ac_func" >&5
10807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10808 echo $ac_n "(cached) $ac_c" 1>&6
10809 else
10810 cat > conftest.$ac_ext <<EOF
10811 #line 10812 "configure"
10812 #include "confdefs.h"
10813 /* System header to define __stub macros and hopefully few prototypes,
10814 which can conflict with char $ac_func(); below. */
10815 #include <assert.h>
10816 /* Override any gcc2 internal prototype to avoid an error. */
10817 /* We use char because int might match the return type of a gcc2
10818 builtin and then its argument prototype would still apply. */
10819 char $ac_func();
10821 int main() {
10823 /* The GNU C library defines this for functions which it implements
10824 to always fail with ENOSYS. Some functions are actually named
10825 something starting with __ and the normal name is an alias. */
10826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10827 choke me
10828 #else
10829 $ac_func();
10830 #endif
10832 ; return 0; }
10834 if { (eval echo configure:10835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10835 rm -rf conftest*
10836 eval "ac_cv_func_$ac_func=yes"
10837 else
10838 echo "configure: failed program was:" >&5
10839 cat conftest.$ac_ext >&5
10840 rm -rf conftest*
10841 eval "ac_cv_func_$ac_func=no"
10843 rm -f conftest*
10846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10847 echo "$ac_t""yes" 1>&6
10848 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10849 cat >> confdefs.h <<EOF
10850 #define $ac_tr_func 1
10853 else
10854 echo "$ac_t""no" 1>&6
10856 done
10863 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
10864 echo "configure:10865: checking for isinfl declaration" >&5
10865 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
10866 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
10867 echo $ac_n "(cached) $ac_c" 1>&6
10868 else
10871 ac_ext=C
10872 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10873 ac_cpp='$CXXCPP $CPPFLAGS'
10874 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10875 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10876 cross_compiling=$ac_cv_prog_cxx_cross
10878 cat > conftest.$ac_ext <<EOF
10879 #line 10880 "configure"
10880 #include "confdefs.h"
10881 #include <math.h>
10882 #ifdef HAVE_IEEEFP_H
10883 #include <ieeefp.h>
10884 #endif
10886 int main() {
10887 isinfl(0);
10888 ; return 0; }
10890 if { (eval echo configure:10891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10891 rm -rf conftest*
10892 glibcpp_cv_func_isinfl_use=yes
10893 else
10894 echo "configure: failed program was:" >&5
10895 cat conftest.$ac_ext >&5
10896 rm -rf conftest*
10897 glibcpp_cv_func_isinfl_use=no
10899 rm -f conftest*
10900 ac_ext=c
10901 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10902 ac_cpp='$CPP $CPPFLAGS'
10903 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10904 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10905 cross_compiling=$ac_cv_prog_cc_cross
10911 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
10913 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
10914 for ac_func in isinfl
10916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10917 echo "configure:10918: checking for $ac_func" >&5
10918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10919 echo $ac_n "(cached) $ac_c" 1>&6
10920 else
10921 cat > conftest.$ac_ext <<EOF
10922 #line 10923 "configure"
10923 #include "confdefs.h"
10924 /* System header to define __stub macros and hopefully few prototypes,
10925 which can conflict with char $ac_func(); below. */
10926 #include <assert.h>
10927 /* Override any gcc2 internal prototype to avoid an error. */
10928 /* We use char because int might match the return type of a gcc2
10929 builtin and then its argument prototype would still apply. */
10930 char $ac_func();
10932 int main() {
10934 /* The GNU C library defines this for functions which it implements
10935 to always fail with ENOSYS. Some functions are actually named
10936 something starting with __ and the normal name is an alias. */
10937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10938 choke me
10939 #else
10940 $ac_func();
10941 #endif
10943 ; return 0; }
10945 if { (eval echo configure:10946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10946 rm -rf conftest*
10947 eval "ac_cv_func_$ac_func=yes"
10948 else
10949 echo "configure: failed program was:" >&5
10950 cat conftest.$ac_ext >&5
10951 rm -rf conftest*
10952 eval "ac_cv_func_$ac_func=no"
10954 rm -f conftest*
10957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10958 echo "$ac_t""yes" 1>&6
10959 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10960 cat >> confdefs.h <<EOF
10961 #define $ac_tr_func 1
10964 else
10965 echo "$ac_t""no" 1>&6
10967 done
10969 else
10971 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
10972 echo "configure:10973: checking for _isinfl declaration" >&5
10973 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
10974 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
10975 echo $ac_n "(cached) $ac_c" 1>&6
10976 else
10979 ac_ext=C
10980 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10981 ac_cpp='$CXXCPP $CPPFLAGS'
10982 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10983 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10984 cross_compiling=$ac_cv_prog_cxx_cross
10986 cat > conftest.$ac_ext <<EOF
10987 #line 10988 "configure"
10988 #include "confdefs.h"
10989 #include <math.h>
10990 #ifdef HAVE_IEEEFP_H
10991 #include <ieeefp.h>
10992 #endif
10994 int main() {
10995 _isinfl(0);
10996 ; return 0; }
10998 if { (eval echo configure:10999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10999 rm -rf conftest*
11000 glibcpp_cv_func__isinfl_use=yes
11001 else
11002 echo "configure: failed program was:" >&5
11003 cat conftest.$ac_ext >&5
11004 rm -rf conftest*
11005 glibcpp_cv_func__isinfl_use=no
11007 rm -f conftest*
11008 ac_ext=c
11009 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11010 ac_cpp='$CPP $CPPFLAGS'
11011 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11012 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11013 cross_compiling=$ac_cv_prog_cc_cross
11019 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
11021 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
11022 for ac_func in _isinfl
11024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11025 echo "configure:11026: checking for $ac_func" >&5
11026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11027 echo $ac_n "(cached) $ac_c" 1>&6
11028 else
11029 cat > conftest.$ac_ext <<EOF
11030 #line 11031 "configure"
11031 #include "confdefs.h"
11032 /* System header to define __stub macros and hopefully few prototypes,
11033 which can conflict with char $ac_func(); below. */
11034 #include <assert.h>
11035 /* Override any gcc2 internal prototype to avoid an error. */
11036 /* We use char because int might match the return type of a gcc2
11037 builtin and then its argument prototype would still apply. */
11038 char $ac_func();
11040 int main() {
11042 /* The GNU C library defines this for functions which it implements
11043 to always fail with ENOSYS. Some functions are actually named
11044 something starting with __ and the normal name is an alias. */
11045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11046 choke me
11047 #else
11048 $ac_func();
11049 #endif
11051 ; return 0; }
11053 if { (eval echo configure:11054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11054 rm -rf conftest*
11055 eval "ac_cv_func_$ac_func=yes"
11056 else
11057 echo "configure: failed program was:" >&5
11058 cat conftest.$ac_ext >&5
11059 rm -rf conftest*
11060 eval "ac_cv_func_$ac_func=no"
11062 rm -f conftest*
11065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11066 echo "$ac_t""yes" 1>&6
11067 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11068 cat >> confdefs.h <<EOF
11069 #define $ac_tr_func 1
11072 else
11073 echo "$ac_t""no" 1>&6
11075 done
11082 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
11083 echo "configure:11084: checking for copysignl declaration" >&5
11084 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
11085 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
11086 echo $ac_n "(cached) $ac_c" 1>&6
11087 else
11090 ac_ext=C
11091 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11092 ac_cpp='$CXXCPP $CPPFLAGS'
11093 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11094 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11095 cross_compiling=$ac_cv_prog_cxx_cross
11097 cat > conftest.$ac_ext <<EOF
11098 #line 11099 "configure"
11099 #include "confdefs.h"
11100 #include <math.h>
11101 int main() {
11102 copysignl(0, 0);
11103 ; return 0; }
11105 if { (eval echo configure:11106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11106 rm -rf conftest*
11107 glibcpp_cv_func_copysignl_use=yes
11108 else
11109 echo "configure: failed program was:" >&5
11110 cat conftest.$ac_ext >&5
11111 rm -rf conftest*
11112 glibcpp_cv_func_copysignl_use=no
11114 rm -f conftest*
11115 ac_ext=c
11116 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11117 ac_cpp='$CPP $CPPFLAGS'
11118 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11119 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11120 cross_compiling=$ac_cv_prog_cc_cross
11126 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
11128 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
11129 for ac_func in copysignl
11131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11132 echo "configure:11133: checking for $ac_func" >&5
11133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11134 echo $ac_n "(cached) $ac_c" 1>&6
11135 else
11136 cat > conftest.$ac_ext <<EOF
11137 #line 11138 "configure"
11138 #include "confdefs.h"
11139 /* System header to define __stub macros and hopefully few prototypes,
11140 which can conflict with char $ac_func(); below. */
11141 #include <assert.h>
11142 /* Override any gcc2 internal prototype to avoid an error. */
11143 /* We use char because int might match the return type of a gcc2
11144 builtin and then its argument prototype would still apply. */
11145 char $ac_func();
11147 int main() {
11149 /* The GNU C library defines this for functions which it implements
11150 to always fail with ENOSYS. Some functions are actually named
11151 something starting with __ and the normal name is an alias. */
11152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11153 choke me
11154 #else
11155 $ac_func();
11156 #endif
11158 ; return 0; }
11160 if { (eval echo configure:11161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11161 rm -rf conftest*
11162 eval "ac_cv_func_$ac_func=yes"
11163 else
11164 echo "configure: failed program was:" >&5
11165 cat conftest.$ac_ext >&5
11166 rm -rf conftest*
11167 eval "ac_cv_func_$ac_func=no"
11169 rm -f conftest*
11172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11173 echo "$ac_t""yes" 1>&6
11174 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11175 cat >> confdefs.h <<EOF
11176 #define $ac_tr_func 1
11179 else
11180 echo "$ac_t""no" 1>&6
11182 done
11184 else
11186 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
11187 echo "configure:11188: checking for _copysignl declaration" >&5
11188 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
11189 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
11190 echo $ac_n "(cached) $ac_c" 1>&6
11191 else
11194 ac_ext=C
11195 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11196 ac_cpp='$CXXCPP $CPPFLAGS'
11197 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11198 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11199 cross_compiling=$ac_cv_prog_cxx_cross
11201 cat > conftest.$ac_ext <<EOF
11202 #line 11203 "configure"
11203 #include "confdefs.h"
11204 #include <math.h>
11205 int main() {
11206 _copysignl(0, 0);
11207 ; return 0; }
11209 if { (eval echo configure:11210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11210 rm -rf conftest*
11211 glibcpp_cv_func__copysignl_use=yes
11212 else
11213 echo "configure: failed program was:" >&5
11214 cat conftest.$ac_ext >&5
11215 rm -rf conftest*
11216 glibcpp_cv_func__copysignl_use=no
11218 rm -f conftest*
11219 ac_ext=c
11220 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11221 ac_cpp='$CPP $CPPFLAGS'
11222 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11223 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11224 cross_compiling=$ac_cv_prog_cc_cross
11230 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
11232 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
11233 for ac_func in _copysignl
11235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11236 echo "configure:11237: checking for $ac_func" >&5
11237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11238 echo $ac_n "(cached) $ac_c" 1>&6
11239 else
11240 cat > conftest.$ac_ext <<EOF
11241 #line 11242 "configure"
11242 #include "confdefs.h"
11243 /* System header to define __stub macros and hopefully few prototypes,
11244 which can conflict with char $ac_func(); below. */
11245 #include <assert.h>
11246 /* Override any gcc2 internal prototype to avoid an error. */
11247 /* We use char because int might match the return type of a gcc2
11248 builtin and then its argument prototype would still apply. */
11249 char $ac_func();
11251 int main() {
11253 /* The GNU C library defines this for functions which it implements
11254 to always fail with ENOSYS. Some functions are actually named
11255 something starting with __ and the normal name is an alias. */
11256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11257 choke me
11258 #else
11259 $ac_func();
11260 #endif
11262 ; return 0; }
11264 if { (eval echo configure:11265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11265 rm -rf conftest*
11266 eval "ac_cv_func_$ac_func=yes"
11267 else
11268 echo "configure: failed program was:" >&5
11269 cat conftest.$ac_ext >&5
11270 rm -rf conftest*
11271 eval "ac_cv_func_$ac_func=no"
11273 rm -f conftest*
11276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11277 echo "$ac_t""yes" 1>&6
11278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11279 cat >> confdefs.h <<EOF
11280 #define $ac_tr_func 1
11283 else
11284 echo "$ac_t""no" 1>&6
11286 done
11293 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
11294 echo "configure:11295: checking for atan2l declaration" >&5
11295 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
11296 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
11297 echo $ac_n "(cached) $ac_c" 1>&6
11298 else
11301 ac_ext=C
11302 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11303 ac_cpp='$CXXCPP $CPPFLAGS'
11304 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11305 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11306 cross_compiling=$ac_cv_prog_cxx_cross
11308 cat > conftest.$ac_ext <<EOF
11309 #line 11310 "configure"
11310 #include "confdefs.h"
11311 #include <math.h>
11312 int main() {
11313 atan2l(0, 0);
11314 ; return 0; }
11316 if { (eval echo configure:11317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11317 rm -rf conftest*
11318 glibcpp_cv_func_atan2l_use=yes
11319 else
11320 echo "configure: failed program was:" >&5
11321 cat conftest.$ac_ext >&5
11322 rm -rf conftest*
11323 glibcpp_cv_func_atan2l_use=no
11325 rm -f conftest*
11326 ac_ext=c
11327 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11328 ac_cpp='$CPP $CPPFLAGS'
11329 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11330 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11331 cross_compiling=$ac_cv_prog_cc_cross
11337 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
11339 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
11340 for ac_func in atan2l
11342 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11343 echo "configure:11344: checking for $ac_func" >&5
11344 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11345 echo $ac_n "(cached) $ac_c" 1>&6
11346 else
11347 cat > conftest.$ac_ext <<EOF
11348 #line 11349 "configure"
11349 #include "confdefs.h"
11350 /* System header to define __stub macros and hopefully few prototypes,
11351 which can conflict with char $ac_func(); below. */
11352 #include <assert.h>
11353 /* Override any gcc2 internal prototype to avoid an error. */
11354 /* We use char because int might match the return type of a gcc2
11355 builtin and then its argument prototype would still apply. */
11356 char $ac_func();
11358 int main() {
11360 /* The GNU C library defines this for functions which it implements
11361 to always fail with ENOSYS. Some functions are actually named
11362 something starting with __ and the normal name is an alias. */
11363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11364 choke me
11365 #else
11366 $ac_func();
11367 #endif
11369 ; return 0; }
11371 if { (eval echo configure:11372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11372 rm -rf conftest*
11373 eval "ac_cv_func_$ac_func=yes"
11374 else
11375 echo "configure: failed program was:" >&5
11376 cat conftest.$ac_ext >&5
11377 rm -rf conftest*
11378 eval "ac_cv_func_$ac_func=no"
11380 rm -f conftest*
11383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11384 echo "$ac_t""yes" 1>&6
11385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11386 cat >> confdefs.h <<EOF
11387 #define $ac_tr_func 1
11390 else
11391 echo "$ac_t""no" 1>&6
11393 done
11395 else
11397 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
11398 echo "configure:11399: checking for _atan2l declaration" >&5
11399 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
11400 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
11401 echo $ac_n "(cached) $ac_c" 1>&6
11402 else
11405 ac_ext=C
11406 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11407 ac_cpp='$CXXCPP $CPPFLAGS'
11408 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11409 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11410 cross_compiling=$ac_cv_prog_cxx_cross
11412 cat > conftest.$ac_ext <<EOF
11413 #line 11414 "configure"
11414 #include "confdefs.h"
11415 #include <math.h>
11416 int main() {
11417 _atan2l(0, 0);
11418 ; return 0; }
11420 if { (eval echo configure:11421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11421 rm -rf conftest*
11422 glibcpp_cv_func__atan2l_use=yes
11423 else
11424 echo "configure: failed program was:" >&5
11425 cat conftest.$ac_ext >&5
11426 rm -rf conftest*
11427 glibcpp_cv_func__atan2l_use=no
11429 rm -f conftest*
11430 ac_ext=c
11431 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11432 ac_cpp='$CPP $CPPFLAGS'
11433 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11434 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11435 cross_compiling=$ac_cv_prog_cc_cross
11441 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
11443 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
11444 for ac_func in _atan2l
11446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11447 echo "configure:11448: checking for $ac_func" >&5
11448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11449 echo $ac_n "(cached) $ac_c" 1>&6
11450 else
11451 cat > conftest.$ac_ext <<EOF
11452 #line 11453 "configure"
11453 #include "confdefs.h"
11454 /* System header to define __stub macros and hopefully few prototypes,
11455 which can conflict with char $ac_func(); below. */
11456 #include <assert.h>
11457 /* Override any gcc2 internal prototype to avoid an error. */
11458 /* We use char because int might match the return type of a gcc2
11459 builtin and then its argument prototype would still apply. */
11460 char $ac_func();
11462 int main() {
11464 /* The GNU C library defines this for functions which it implements
11465 to always fail with ENOSYS. Some functions are actually named
11466 something starting with __ and the normal name is an alias. */
11467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11468 choke me
11469 #else
11470 $ac_func();
11471 #endif
11473 ; return 0; }
11475 if { (eval echo configure:11476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11476 rm -rf conftest*
11477 eval "ac_cv_func_$ac_func=yes"
11478 else
11479 echo "configure: failed program was:" >&5
11480 cat conftest.$ac_ext >&5
11481 rm -rf conftest*
11482 eval "ac_cv_func_$ac_func=no"
11484 rm -f conftest*
11487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11488 echo "$ac_t""yes" 1>&6
11489 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11490 cat >> confdefs.h <<EOF
11491 #define $ac_tr_func 1
11494 else
11495 echo "$ac_t""no" 1>&6
11497 done
11504 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
11505 echo "configure:11506: checking for expl declaration" >&5
11506 if test x${glibcpp_cv_func_expl_use+set} != xset; then
11507 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
11508 echo $ac_n "(cached) $ac_c" 1>&6
11509 else
11512 ac_ext=C
11513 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11514 ac_cpp='$CXXCPP $CPPFLAGS'
11515 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11516 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11517 cross_compiling=$ac_cv_prog_cxx_cross
11519 cat > conftest.$ac_ext <<EOF
11520 #line 11521 "configure"
11521 #include "confdefs.h"
11522 #include <math.h>
11523 #ifdef HAVE_IEEEFP_H
11524 #include <ieeefp.h>
11525 #endif
11527 int main() {
11528 expl(0);
11529 ; return 0; }
11531 if { (eval echo configure:11532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11532 rm -rf conftest*
11533 glibcpp_cv_func_expl_use=yes
11534 else
11535 echo "configure: failed program was:" >&5
11536 cat conftest.$ac_ext >&5
11537 rm -rf conftest*
11538 glibcpp_cv_func_expl_use=no
11540 rm -f conftest*
11541 ac_ext=c
11542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11543 ac_cpp='$CPP $CPPFLAGS'
11544 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11545 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11546 cross_compiling=$ac_cv_prog_cc_cross
11552 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
11554 if test x$glibcpp_cv_func_expl_use = x"yes"; then
11555 for ac_func in expl
11557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11558 echo "configure:11559: checking for $ac_func" >&5
11559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11560 echo $ac_n "(cached) $ac_c" 1>&6
11561 else
11562 cat > conftest.$ac_ext <<EOF
11563 #line 11564 "configure"
11564 #include "confdefs.h"
11565 /* System header to define __stub macros and hopefully few prototypes,
11566 which can conflict with char $ac_func(); below. */
11567 #include <assert.h>
11568 /* Override any gcc2 internal prototype to avoid an error. */
11569 /* We use char because int might match the return type of a gcc2
11570 builtin and then its argument prototype would still apply. */
11571 char $ac_func();
11573 int main() {
11575 /* The GNU C library defines this for functions which it implements
11576 to always fail with ENOSYS. Some functions are actually named
11577 something starting with __ and the normal name is an alias. */
11578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11579 choke me
11580 #else
11581 $ac_func();
11582 #endif
11584 ; return 0; }
11586 if { (eval echo configure:11587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11587 rm -rf conftest*
11588 eval "ac_cv_func_$ac_func=yes"
11589 else
11590 echo "configure: failed program was:" >&5
11591 cat conftest.$ac_ext >&5
11592 rm -rf conftest*
11593 eval "ac_cv_func_$ac_func=no"
11595 rm -f conftest*
11598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11599 echo "$ac_t""yes" 1>&6
11600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11601 cat >> confdefs.h <<EOF
11602 #define $ac_tr_func 1
11605 else
11606 echo "$ac_t""no" 1>&6
11608 done
11610 else
11612 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
11613 echo "configure:11614: checking for _expl declaration" >&5
11614 if test x${glibcpp_cv_func__expl_use+set} != xset; then
11615 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
11616 echo $ac_n "(cached) $ac_c" 1>&6
11617 else
11620 ac_ext=C
11621 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11622 ac_cpp='$CXXCPP $CPPFLAGS'
11623 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11624 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11625 cross_compiling=$ac_cv_prog_cxx_cross
11627 cat > conftest.$ac_ext <<EOF
11628 #line 11629 "configure"
11629 #include "confdefs.h"
11630 #include <math.h>
11631 #ifdef HAVE_IEEEFP_H
11632 #include <ieeefp.h>
11633 #endif
11635 int main() {
11636 _expl(0);
11637 ; return 0; }
11639 if { (eval echo configure:11640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11640 rm -rf conftest*
11641 glibcpp_cv_func__expl_use=yes
11642 else
11643 echo "configure: failed program was:" >&5
11644 cat conftest.$ac_ext >&5
11645 rm -rf conftest*
11646 glibcpp_cv_func__expl_use=no
11648 rm -f conftest*
11649 ac_ext=c
11650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11651 ac_cpp='$CPP $CPPFLAGS'
11652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11654 cross_compiling=$ac_cv_prog_cc_cross
11660 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
11662 if test x$glibcpp_cv_func__expl_use = x"yes"; then
11663 for ac_func in _expl
11665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11666 echo "configure:11667: checking for $ac_func" >&5
11667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11668 echo $ac_n "(cached) $ac_c" 1>&6
11669 else
11670 cat > conftest.$ac_ext <<EOF
11671 #line 11672 "configure"
11672 #include "confdefs.h"
11673 /* System header to define __stub macros and hopefully few prototypes,
11674 which can conflict with char $ac_func(); below. */
11675 #include <assert.h>
11676 /* Override any gcc2 internal prototype to avoid an error. */
11677 /* We use char because int might match the return type of a gcc2
11678 builtin and then its argument prototype would still apply. */
11679 char $ac_func();
11681 int main() {
11683 /* The GNU C library defines this for functions which it implements
11684 to always fail with ENOSYS. Some functions are actually named
11685 something starting with __ and the normal name is an alias. */
11686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11687 choke me
11688 #else
11689 $ac_func();
11690 #endif
11692 ; return 0; }
11694 if { (eval echo configure:11695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11695 rm -rf conftest*
11696 eval "ac_cv_func_$ac_func=yes"
11697 else
11698 echo "configure: failed program was:" >&5
11699 cat conftest.$ac_ext >&5
11700 rm -rf conftest*
11701 eval "ac_cv_func_$ac_func=no"
11703 rm -f conftest*
11706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11707 echo "$ac_t""yes" 1>&6
11708 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11709 cat >> confdefs.h <<EOF
11710 #define $ac_tr_func 1
11713 else
11714 echo "$ac_t""no" 1>&6
11716 done
11723 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
11724 echo "configure:11725: checking for fabsl declaration" >&5
11725 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
11726 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
11727 echo $ac_n "(cached) $ac_c" 1>&6
11728 else
11731 ac_ext=C
11732 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11733 ac_cpp='$CXXCPP $CPPFLAGS'
11734 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11735 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11736 cross_compiling=$ac_cv_prog_cxx_cross
11738 cat > conftest.$ac_ext <<EOF
11739 #line 11740 "configure"
11740 #include "confdefs.h"
11741 #include <math.h>
11742 #ifdef HAVE_IEEEFP_H
11743 #include <ieeefp.h>
11744 #endif
11746 int main() {
11747 fabsl(0);
11748 ; return 0; }
11750 if { (eval echo configure:11751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11751 rm -rf conftest*
11752 glibcpp_cv_func_fabsl_use=yes
11753 else
11754 echo "configure: failed program was:" >&5
11755 cat conftest.$ac_ext >&5
11756 rm -rf conftest*
11757 glibcpp_cv_func_fabsl_use=no
11759 rm -f conftest*
11760 ac_ext=c
11761 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11762 ac_cpp='$CPP $CPPFLAGS'
11763 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11764 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11765 cross_compiling=$ac_cv_prog_cc_cross
11771 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
11773 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
11774 for ac_func in fabsl
11776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11777 echo "configure:11778: checking for $ac_func" >&5
11778 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11779 echo $ac_n "(cached) $ac_c" 1>&6
11780 else
11781 cat > conftest.$ac_ext <<EOF
11782 #line 11783 "configure"
11783 #include "confdefs.h"
11784 /* System header to define __stub macros and hopefully few prototypes,
11785 which can conflict with char $ac_func(); below. */
11786 #include <assert.h>
11787 /* Override any gcc2 internal prototype to avoid an error. */
11788 /* We use char because int might match the return type of a gcc2
11789 builtin and then its argument prototype would still apply. */
11790 char $ac_func();
11792 int main() {
11794 /* The GNU C library defines this for functions which it implements
11795 to always fail with ENOSYS. Some functions are actually named
11796 something starting with __ and the normal name is an alias. */
11797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11798 choke me
11799 #else
11800 $ac_func();
11801 #endif
11803 ; return 0; }
11805 if { (eval echo configure:11806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11806 rm -rf conftest*
11807 eval "ac_cv_func_$ac_func=yes"
11808 else
11809 echo "configure: failed program was:" >&5
11810 cat conftest.$ac_ext >&5
11811 rm -rf conftest*
11812 eval "ac_cv_func_$ac_func=no"
11814 rm -f conftest*
11817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11818 echo "$ac_t""yes" 1>&6
11819 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11820 cat >> confdefs.h <<EOF
11821 #define $ac_tr_func 1
11824 else
11825 echo "$ac_t""no" 1>&6
11827 done
11829 else
11831 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
11832 echo "configure:11833: checking for _fabsl declaration" >&5
11833 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
11834 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
11835 echo $ac_n "(cached) $ac_c" 1>&6
11836 else
11839 ac_ext=C
11840 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11841 ac_cpp='$CXXCPP $CPPFLAGS'
11842 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11843 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11844 cross_compiling=$ac_cv_prog_cxx_cross
11846 cat > conftest.$ac_ext <<EOF
11847 #line 11848 "configure"
11848 #include "confdefs.h"
11849 #include <math.h>
11850 #ifdef HAVE_IEEEFP_H
11851 #include <ieeefp.h>
11852 #endif
11854 int main() {
11855 _fabsl(0);
11856 ; return 0; }
11858 if { (eval echo configure:11859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11859 rm -rf conftest*
11860 glibcpp_cv_func__fabsl_use=yes
11861 else
11862 echo "configure: failed program was:" >&5
11863 cat conftest.$ac_ext >&5
11864 rm -rf conftest*
11865 glibcpp_cv_func__fabsl_use=no
11867 rm -f conftest*
11868 ac_ext=c
11869 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11870 ac_cpp='$CPP $CPPFLAGS'
11871 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11872 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11873 cross_compiling=$ac_cv_prog_cc_cross
11879 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
11881 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
11882 for ac_func in _fabsl
11884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11885 echo "configure:11886: checking for $ac_func" >&5
11886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11887 echo $ac_n "(cached) $ac_c" 1>&6
11888 else
11889 cat > conftest.$ac_ext <<EOF
11890 #line 11891 "configure"
11891 #include "confdefs.h"
11892 /* System header to define __stub macros and hopefully few prototypes,
11893 which can conflict with char $ac_func(); below. */
11894 #include <assert.h>
11895 /* Override any gcc2 internal prototype to avoid an error. */
11896 /* We use char because int might match the return type of a gcc2
11897 builtin and then its argument prototype would still apply. */
11898 char $ac_func();
11900 int main() {
11902 /* The GNU C library defines this for functions which it implements
11903 to always fail with ENOSYS. Some functions are actually named
11904 something starting with __ and the normal name is an alias. */
11905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11906 choke me
11907 #else
11908 $ac_func();
11909 #endif
11911 ; return 0; }
11913 if { (eval echo configure:11914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11914 rm -rf conftest*
11915 eval "ac_cv_func_$ac_func=yes"
11916 else
11917 echo "configure: failed program was:" >&5
11918 cat conftest.$ac_ext >&5
11919 rm -rf conftest*
11920 eval "ac_cv_func_$ac_func=no"
11922 rm -f conftest*
11925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11926 echo "$ac_t""yes" 1>&6
11927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11928 cat >> confdefs.h <<EOF
11929 #define $ac_tr_func 1
11932 else
11933 echo "$ac_t""no" 1>&6
11935 done
11942 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
11943 echo "configure:11944: checking for fmodl declaration" >&5
11944 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
11945 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
11946 echo $ac_n "(cached) $ac_c" 1>&6
11947 else
11950 ac_ext=C
11951 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11952 ac_cpp='$CXXCPP $CPPFLAGS'
11953 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11954 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11955 cross_compiling=$ac_cv_prog_cxx_cross
11957 cat > conftest.$ac_ext <<EOF
11958 #line 11959 "configure"
11959 #include "confdefs.h"
11960 #include <math.h>
11961 int main() {
11962 fmodl(0, 0);
11963 ; return 0; }
11965 if { (eval echo configure:11966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11966 rm -rf conftest*
11967 glibcpp_cv_func_fmodl_use=yes
11968 else
11969 echo "configure: failed program was:" >&5
11970 cat conftest.$ac_ext >&5
11971 rm -rf conftest*
11972 glibcpp_cv_func_fmodl_use=no
11974 rm -f conftest*
11975 ac_ext=c
11976 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11977 ac_cpp='$CPP $CPPFLAGS'
11978 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11979 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11980 cross_compiling=$ac_cv_prog_cc_cross
11986 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
11988 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
11989 for ac_func in fmodl
11991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11992 echo "configure:11993: checking for $ac_func" >&5
11993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11994 echo $ac_n "(cached) $ac_c" 1>&6
11995 else
11996 cat > conftest.$ac_ext <<EOF
11997 #line 11998 "configure"
11998 #include "confdefs.h"
11999 /* System header to define __stub macros and hopefully few prototypes,
12000 which can conflict with char $ac_func(); below. */
12001 #include <assert.h>
12002 /* Override any gcc2 internal prototype to avoid an error. */
12003 /* We use char because int might match the return type of a gcc2
12004 builtin and then its argument prototype would still apply. */
12005 char $ac_func();
12007 int main() {
12009 /* The GNU C library defines this for functions which it implements
12010 to always fail with ENOSYS. Some functions are actually named
12011 something starting with __ and the normal name is an alias. */
12012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12013 choke me
12014 #else
12015 $ac_func();
12016 #endif
12018 ; return 0; }
12020 if { (eval echo configure:12021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12021 rm -rf conftest*
12022 eval "ac_cv_func_$ac_func=yes"
12023 else
12024 echo "configure: failed program was:" >&5
12025 cat conftest.$ac_ext >&5
12026 rm -rf conftest*
12027 eval "ac_cv_func_$ac_func=no"
12029 rm -f conftest*
12032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12033 echo "$ac_t""yes" 1>&6
12034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12035 cat >> confdefs.h <<EOF
12036 #define $ac_tr_func 1
12039 else
12040 echo "$ac_t""no" 1>&6
12042 done
12044 else
12046 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
12047 echo "configure:12048: checking for _fmodl declaration" >&5
12048 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
12049 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
12050 echo $ac_n "(cached) $ac_c" 1>&6
12051 else
12054 ac_ext=C
12055 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12056 ac_cpp='$CXXCPP $CPPFLAGS'
12057 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12058 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12059 cross_compiling=$ac_cv_prog_cxx_cross
12061 cat > conftest.$ac_ext <<EOF
12062 #line 12063 "configure"
12063 #include "confdefs.h"
12064 #include <math.h>
12065 int main() {
12066 _fmodl(0, 0);
12067 ; return 0; }
12069 if { (eval echo configure:12070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12070 rm -rf conftest*
12071 glibcpp_cv_func__fmodl_use=yes
12072 else
12073 echo "configure: failed program was:" >&5
12074 cat conftest.$ac_ext >&5
12075 rm -rf conftest*
12076 glibcpp_cv_func__fmodl_use=no
12078 rm -f conftest*
12079 ac_ext=c
12080 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12081 ac_cpp='$CPP $CPPFLAGS'
12082 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12083 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12084 cross_compiling=$ac_cv_prog_cc_cross
12090 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
12092 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
12093 for ac_func in _fmodl
12095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12096 echo "configure:12097: checking for $ac_func" >&5
12097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12098 echo $ac_n "(cached) $ac_c" 1>&6
12099 else
12100 cat > conftest.$ac_ext <<EOF
12101 #line 12102 "configure"
12102 #include "confdefs.h"
12103 /* System header to define __stub macros and hopefully few prototypes,
12104 which can conflict with char $ac_func(); below. */
12105 #include <assert.h>
12106 /* Override any gcc2 internal prototype to avoid an error. */
12107 /* We use char because int might match the return type of a gcc2
12108 builtin and then its argument prototype would still apply. */
12109 char $ac_func();
12111 int main() {
12113 /* The GNU C library defines this for functions which it implements
12114 to always fail with ENOSYS. Some functions are actually named
12115 something starting with __ and the normal name is an alias. */
12116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12117 choke me
12118 #else
12119 $ac_func();
12120 #endif
12122 ; return 0; }
12124 if { (eval echo configure:12125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12125 rm -rf conftest*
12126 eval "ac_cv_func_$ac_func=yes"
12127 else
12128 echo "configure: failed program was:" >&5
12129 cat conftest.$ac_ext >&5
12130 rm -rf conftest*
12131 eval "ac_cv_func_$ac_func=no"
12133 rm -f conftest*
12136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12137 echo "$ac_t""yes" 1>&6
12138 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12139 cat >> confdefs.h <<EOF
12140 #define $ac_tr_func 1
12143 else
12144 echo "$ac_t""no" 1>&6
12146 done
12153 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
12154 echo "configure:12155: checking for frexpl declaration" >&5
12155 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
12156 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
12157 echo $ac_n "(cached) $ac_c" 1>&6
12158 else
12161 ac_ext=C
12162 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12163 ac_cpp='$CXXCPP $CPPFLAGS'
12164 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12165 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12166 cross_compiling=$ac_cv_prog_cxx_cross
12168 cat > conftest.$ac_ext <<EOF
12169 #line 12170 "configure"
12170 #include "confdefs.h"
12171 #include <math.h>
12172 int main() {
12173 frexpl(0, 0);
12174 ; return 0; }
12176 if { (eval echo configure:12177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12177 rm -rf conftest*
12178 glibcpp_cv_func_frexpl_use=yes
12179 else
12180 echo "configure: failed program was:" >&5
12181 cat conftest.$ac_ext >&5
12182 rm -rf conftest*
12183 glibcpp_cv_func_frexpl_use=no
12185 rm -f conftest*
12186 ac_ext=c
12187 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12188 ac_cpp='$CPP $CPPFLAGS'
12189 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12190 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12191 cross_compiling=$ac_cv_prog_cc_cross
12197 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
12199 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
12200 for ac_func in frexpl
12202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12203 echo "configure:12204: checking for $ac_func" >&5
12204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12205 echo $ac_n "(cached) $ac_c" 1>&6
12206 else
12207 cat > conftest.$ac_ext <<EOF
12208 #line 12209 "configure"
12209 #include "confdefs.h"
12210 /* System header to define __stub macros and hopefully few prototypes,
12211 which can conflict with char $ac_func(); below. */
12212 #include <assert.h>
12213 /* Override any gcc2 internal prototype to avoid an error. */
12214 /* We use char because int might match the return type of a gcc2
12215 builtin and then its argument prototype would still apply. */
12216 char $ac_func();
12218 int main() {
12220 /* The GNU C library defines this for functions which it implements
12221 to always fail with ENOSYS. Some functions are actually named
12222 something starting with __ and the normal name is an alias. */
12223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12224 choke me
12225 #else
12226 $ac_func();
12227 #endif
12229 ; return 0; }
12231 if { (eval echo configure:12232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12232 rm -rf conftest*
12233 eval "ac_cv_func_$ac_func=yes"
12234 else
12235 echo "configure: failed program was:" >&5
12236 cat conftest.$ac_ext >&5
12237 rm -rf conftest*
12238 eval "ac_cv_func_$ac_func=no"
12240 rm -f conftest*
12243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12244 echo "$ac_t""yes" 1>&6
12245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12246 cat >> confdefs.h <<EOF
12247 #define $ac_tr_func 1
12250 else
12251 echo "$ac_t""no" 1>&6
12253 done
12255 else
12257 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
12258 echo "configure:12259: checking for _frexpl declaration" >&5
12259 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
12260 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
12261 echo $ac_n "(cached) $ac_c" 1>&6
12262 else
12265 ac_ext=C
12266 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12267 ac_cpp='$CXXCPP $CPPFLAGS'
12268 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12269 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12270 cross_compiling=$ac_cv_prog_cxx_cross
12272 cat > conftest.$ac_ext <<EOF
12273 #line 12274 "configure"
12274 #include "confdefs.h"
12275 #include <math.h>
12276 int main() {
12277 _frexpl(0, 0);
12278 ; return 0; }
12280 if { (eval echo configure:12281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12281 rm -rf conftest*
12282 glibcpp_cv_func__frexpl_use=yes
12283 else
12284 echo "configure: failed program was:" >&5
12285 cat conftest.$ac_ext >&5
12286 rm -rf conftest*
12287 glibcpp_cv_func__frexpl_use=no
12289 rm -f conftest*
12290 ac_ext=c
12291 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12292 ac_cpp='$CPP $CPPFLAGS'
12293 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12294 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12295 cross_compiling=$ac_cv_prog_cc_cross
12301 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
12303 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
12304 for ac_func in _frexpl
12306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12307 echo "configure:12308: checking for $ac_func" >&5
12308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12309 echo $ac_n "(cached) $ac_c" 1>&6
12310 else
12311 cat > conftest.$ac_ext <<EOF
12312 #line 12313 "configure"
12313 #include "confdefs.h"
12314 /* System header to define __stub macros and hopefully few prototypes,
12315 which can conflict with char $ac_func(); below. */
12316 #include <assert.h>
12317 /* Override any gcc2 internal prototype to avoid an error. */
12318 /* We use char because int might match the return type of a gcc2
12319 builtin and then its argument prototype would still apply. */
12320 char $ac_func();
12322 int main() {
12324 /* The GNU C library defines this for functions which it implements
12325 to always fail with ENOSYS. Some functions are actually named
12326 something starting with __ and the normal name is an alias. */
12327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12328 choke me
12329 #else
12330 $ac_func();
12331 #endif
12333 ; return 0; }
12335 if { (eval echo configure:12336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12336 rm -rf conftest*
12337 eval "ac_cv_func_$ac_func=yes"
12338 else
12339 echo "configure: failed program was:" >&5
12340 cat conftest.$ac_ext >&5
12341 rm -rf conftest*
12342 eval "ac_cv_func_$ac_func=no"
12344 rm -f conftest*
12347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12348 echo "$ac_t""yes" 1>&6
12349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12350 cat >> confdefs.h <<EOF
12351 #define $ac_tr_func 1
12354 else
12355 echo "$ac_t""no" 1>&6
12357 done
12364 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
12365 echo "configure:12366: checking for ldexpl declaration" >&5
12366 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
12367 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
12368 echo $ac_n "(cached) $ac_c" 1>&6
12369 else
12372 ac_ext=C
12373 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12374 ac_cpp='$CXXCPP $CPPFLAGS'
12375 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12376 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12377 cross_compiling=$ac_cv_prog_cxx_cross
12379 cat > conftest.$ac_ext <<EOF
12380 #line 12381 "configure"
12381 #include "confdefs.h"
12382 #include <math.h>
12383 int main() {
12384 ldexpl(0, 0);
12385 ; return 0; }
12387 if { (eval echo configure:12388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12388 rm -rf conftest*
12389 glibcpp_cv_func_ldexpl_use=yes
12390 else
12391 echo "configure: failed program was:" >&5
12392 cat conftest.$ac_ext >&5
12393 rm -rf conftest*
12394 glibcpp_cv_func_ldexpl_use=no
12396 rm -f conftest*
12397 ac_ext=c
12398 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12399 ac_cpp='$CPP $CPPFLAGS'
12400 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12401 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12402 cross_compiling=$ac_cv_prog_cc_cross
12408 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
12410 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
12411 for ac_func in ldexpl
12413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12414 echo "configure:12415: checking for $ac_func" >&5
12415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12416 echo $ac_n "(cached) $ac_c" 1>&6
12417 else
12418 cat > conftest.$ac_ext <<EOF
12419 #line 12420 "configure"
12420 #include "confdefs.h"
12421 /* System header to define __stub macros and hopefully few prototypes,
12422 which can conflict with char $ac_func(); below. */
12423 #include <assert.h>
12424 /* Override any gcc2 internal prototype to avoid an error. */
12425 /* We use char because int might match the return type of a gcc2
12426 builtin and then its argument prototype would still apply. */
12427 char $ac_func();
12429 int main() {
12431 /* The GNU C library defines this for functions which it implements
12432 to always fail with ENOSYS. Some functions are actually named
12433 something starting with __ and the normal name is an alias. */
12434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12435 choke me
12436 #else
12437 $ac_func();
12438 #endif
12440 ; return 0; }
12442 if { (eval echo configure:12443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12443 rm -rf conftest*
12444 eval "ac_cv_func_$ac_func=yes"
12445 else
12446 echo "configure: failed program was:" >&5
12447 cat conftest.$ac_ext >&5
12448 rm -rf conftest*
12449 eval "ac_cv_func_$ac_func=no"
12451 rm -f conftest*
12454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12455 echo "$ac_t""yes" 1>&6
12456 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12457 cat >> confdefs.h <<EOF
12458 #define $ac_tr_func 1
12461 else
12462 echo "$ac_t""no" 1>&6
12464 done
12466 else
12468 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
12469 echo "configure:12470: checking for _ldexpl declaration" >&5
12470 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
12471 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
12472 echo $ac_n "(cached) $ac_c" 1>&6
12473 else
12476 ac_ext=C
12477 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12478 ac_cpp='$CXXCPP $CPPFLAGS'
12479 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12480 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12481 cross_compiling=$ac_cv_prog_cxx_cross
12483 cat > conftest.$ac_ext <<EOF
12484 #line 12485 "configure"
12485 #include "confdefs.h"
12486 #include <math.h>
12487 int main() {
12488 _ldexpl(0, 0);
12489 ; return 0; }
12491 if { (eval echo configure:12492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12492 rm -rf conftest*
12493 glibcpp_cv_func__ldexpl_use=yes
12494 else
12495 echo "configure: failed program was:" >&5
12496 cat conftest.$ac_ext >&5
12497 rm -rf conftest*
12498 glibcpp_cv_func__ldexpl_use=no
12500 rm -f conftest*
12501 ac_ext=c
12502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12503 ac_cpp='$CPP $CPPFLAGS'
12504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12506 cross_compiling=$ac_cv_prog_cc_cross
12512 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
12514 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
12515 for ac_func in _ldexpl
12517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12518 echo "configure:12519: checking for $ac_func" >&5
12519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12520 echo $ac_n "(cached) $ac_c" 1>&6
12521 else
12522 cat > conftest.$ac_ext <<EOF
12523 #line 12524 "configure"
12524 #include "confdefs.h"
12525 /* System header to define __stub macros and hopefully few prototypes,
12526 which can conflict with char $ac_func(); below. */
12527 #include <assert.h>
12528 /* Override any gcc2 internal prototype to avoid an error. */
12529 /* We use char because int might match the return type of a gcc2
12530 builtin and then its argument prototype would still apply. */
12531 char $ac_func();
12533 int main() {
12535 /* The GNU C library defines this for functions which it implements
12536 to always fail with ENOSYS. Some functions are actually named
12537 something starting with __ and the normal name is an alias. */
12538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12539 choke me
12540 #else
12541 $ac_func();
12542 #endif
12544 ; return 0; }
12546 if { (eval echo configure:12547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12547 rm -rf conftest*
12548 eval "ac_cv_func_$ac_func=yes"
12549 else
12550 echo "configure: failed program was:" >&5
12551 cat conftest.$ac_ext >&5
12552 rm -rf conftest*
12553 eval "ac_cv_func_$ac_func=no"
12555 rm -f conftest*
12558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12559 echo "$ac_t""yes" 1>&6
12560 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12561 cat >> confdefs.h <<EOF
12562 #define $ac_tr_func 1
12565 else
12566 echo "$ac_t""no" 1>&6
12568 done
12575 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
12576 echo "configure:12577: checking for logl declaration" >&5
12577 if test x${glibcpp_cv_func_logl_use+set} != xset; then
12578 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
12579 echo $ac_n "(cached) $ac_c" 1>&6
12580 else
12583 ac_ext=C
12584 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12585 ac_cpp='$CXXCPP $CPPFLAGS'
12586 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12587 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12588 cross_compiling=$ac_cv_prog_cxx_cross
12590 cat > conftest.$ac_ext <<EOF
12591 #line 12592 "configure"
12592 #include "confdefs.h"
12593 #include <math.h>
12594 #ifdef HAVE_IEEEFP_H
12595 #include <ieeefp.h>
12596 #endif
12598 int main() {
12599 logl(0);
12600 ; return 0; }
12602 if { (eval echo configure:12603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12603 rm -rf conftest*
12604 glibcpp_cv_func_logl_use=yes
12605 else
12606 echo "configure: failed program was:" >&5
12607 cat conftest.$ac_ext >&5
12608 rm -rf conftest*
12609 glibcpp_cv_func_logl_use=no
12611 rm -f conftest*
12612 ac_ext=c
12613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12614 ac_cpp='$CPP $CPPFLAGS'
12615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12617 cross_compiling=$ac_cv_prog_cc_cross
12623 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
12625 if test x$glibcpp_cv_func_logl_use = x"yes"; then
12626 for ac_func in logl
12628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12629 echo "configure:12630: checking for $ac_func" >&5
12630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12631 echo $ac_n "(cached) $ac_c" 1>&6
12632 else
12633 cat > conftest.$ac_ext <<EOF
12634 #line 12635 "configure"
12635 #include "confdefs.h"
12636 /* System header to define __stub macros and hopefully few prototypes,
12637 which can conflict with char $ac_func(); below. */
12638 #include <assert.h>
12639 /* Override any gcc2 internal prototype to avoid an error. */
12640 /* We use char because int might match the return type of a gcc2
12641 builtin and then its argument prototype would still apply. */
12642 char $ac_func();
12644 int main() {
12646 /* The GNU C library defines this for functions which it implements
12647 to always fail with ENOSYS. Some functions are actually named
12648 something starting with __ and the normal name is an alias. */
12649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12650 choke me
12651 #else
12652 $ac_func();
12653 #endif
12655 ; return 0; }
12657 if { (eval echo configure:12658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12658 rm -rf conftest*
12659 eval "ac_cv_func_$ac_func=yes"
12660 else
12661 echo "configure: failed program was:" >&5
12662 cat conftest.$ac_ext >&5
12663 rm -rf conftest*
12664 eval "ac_cv_func_$ac_func=no"
12666 rm -f conftest*
12669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12670 echo "$ac_t""yes" 1>&6
12671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12672 cat >> confdefs.h <<EOF
12673 #define $ac_tr_func 1
12676 else
12677 echo "$ac_t""no" 1>&6
12679 done
12681 else
12683 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
12684 echo "configure:12685: checking for _logl declaration" >&5
12685 if test x${glibcpp_cv_func__logl_use+set} != xset; then
12686 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
12687 echo $ac_n "(cached) $ac_c" 1>&6
12688 else
12691 ac_ext=C
12692 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12693 ac_cpp='$CXXCPP $CPPFLAGS'
12694 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12695 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12696 cross_compiling=$ac_cv_prog_cxx_cross
12698 cat > conftest.$ac_ext <<EOF
12699 #line 12700 "configure"
12700 #include "confdefs.h"
12701 #include <math.h>
12702 #ifdef HAVE_IEEEFP_H
12703 #include <ieeefp.h>
12704 #endif
12706 int main() {
12707 _logl(0);
12708 ; return 0; }
12710 if { (eval echo configure:12711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12711 rm -rf conftest*
12712 glibcpp_cv_func__logl_use=yes
12713 else
12714 echo "configure: failed program was:" >&5
12715 cat conftest.$ac_ext >&5
12716 rm -rf conftest*
12717 glibcpp_cv_func__logl_use=no
12719 rm -f conftest*
12720 ac_ext=c
12721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12722 ac_cpp='$CPP $CPPFLAGS'
12723 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12724 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12725 cross_compiling=$ac_cv_prog_cc_cross
12731 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
12733 if test x$glibcpp_cv_func__logl_use = x"yes"; then
12734 for ac_func in _logl
12736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12737 echo "configure:12738: checking for $ac_func" >&5
12738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12739 echo $ac_n "(cached) $ac_c" 1>&6
12740 else
12741 cat > conftest.$ac_ext <<EOF
12742 #line 12743 "configure"
12743 #include "confdefs.h"
12744 /* System header to define __stub macros and hopefully few prototypes,
12745 which can conflict with char $ac_func(); below. */
12746 #include <assert.h>
12747 /* Override any gcc2 internal prototype to avoid an error. */
12748 /* We use char because int might match the return type of a gcc2
12749 builtin and then its argument prototype would still apply. */
12750 char $ac_func();
12752 int main() {
12754 /* The GNU C library defines this for functions which it implements
12755 to always fail with ENOSYS. Some functions are actually named
12756 something starting with __ and the normal name is an alias. */
12757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12758 choke me
12759 #else
12760 $ac_func();
12761 #endif
12763 ; return 0; }
12765 if { (eval echo configure:12766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12766 rm -rf conftest*
12767 eval "ac_cv_func_$ac_func=yes"
12768 else
12769 echo "configure: failed program was:" >&5
12770 cat conftest.$ac_ext >&5
12771 rm -rf conftest*
12772 eval "ac_cv_func_$ac_func=no"
12774 rm -f conftest*
12777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12778 echo "$ac_t""yes" 1>&6
12779 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12780 cat >> confdefs.h <<EOF
12781 #define $ac_tr_func 1
12784 else
12785 echo "$ac_t""no" 1>&6
12787 done
12794 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
12795 echo "configure:12796: checking for log10l declaration" >&5
12796 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
12797 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
12798 echo $ac_n "(cached) $ac_c" 1>&6
12799 else
12802 ac_ext=C
12803 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12804 ac_cpp='$CXXCPP $CPPFLAGS'
12805 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12806 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12807 cross_compiling=$ac_cv_prog_cxx_cross
12809 cat > conftest.$ac_ext <<EOF
12810 #line 12811 "configure"
12811 #include "confdefs.h"
12812 #include <math.h>
12813 #ifdef HAVE_IEEEFP_H
12814 #include <ieeefp.h>
12815 #endif
12817 int main() {
12818 log10l(0);
12819 ; return 0; }
12821 if { (eval echo configure:12822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12822 rm -rf conftest*
12823 glibcpp_cv_func_log10l_use=yes
12824 else
12825 echo "configure: failed program was:" >&5
12826 cat conftest.$ac_ext >&5
12827 rm -rf conftest*
12828 glibcpp_cv_func_log10l_use=no
12830 rm -f conftest*
12831 ac_ext=c
12832 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12833 ac_cpp='$CPP $CPPFLAGS'
12834 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12835 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12836 cross_compiling=$ac_cv_prog_cc_cross
12842 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
12844 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
12845 for ac_func in log10l
12847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12848 echo "configure:12849: checking for $ac_func" >&5
12849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12850 echo $ac_n "(cached) $ac_c" 1>&6
12851 else
12852 cat > conftest.$ac_ext <<EOF
12853 #line 12854 "configure"
12854 #include "confdefs.h"
12855 /* System header to define __stub macros and hopefully few prototypes,
12856 which can conflict with char $ac_func(); below. */
12857 #include <assert.h>
12858 /* Override any gcc2 internal prototype to avoid an error. */
12859 /* We use char because int might match the return type of a gcc2
12860 builtin and then its argument prototype would still apply. */
12861 char $ac_func();
12863 int main() {
12865 /* The GNU C library defines this for functions which it implements
12866 to always fail with ENOSYS. Some functions are actually named
12867 something starting with __ and the normal name is an alias. */
12868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12869 choke me
12870 #else
12871 $ac_func();
12872 #endif
12874 ; return 0; }
12876 if { (eval echo configure:12877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12877 rm -rf conftest*
12878 eval "ac_cv_func_$ac_func=yes"
12879 else
12880 echo "configure: failed program was:" >&5
12881 cat conftest.$ac_ext >&5
12882 rm -rf conftest*
12883 eval "ac_cv_func_$ac_func=no"
12885 rm -f conftest*
12888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12889 echo "$ac_t""yes" 1>&6
12890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12891 cat >> confdefs.h <<EOF
12892 #define $ac_tr_func 1
12895 else
12896 echo "$ac_t""no" 1>&6
12898 done
12900 else
12902 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
12903 echo "configure:12904: checking for _log10l declaration" >&5
12904 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
12905 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
12906 echo $ac_n "(cached) $ac_c" 1>&6
12907 else
12910 ac_ext=C
12911 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12912 ac_cpp='$CXXCPP $CPPFLAGS'
12913 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12914 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12915 cross_compiling=$ac_cv_prog_cxx_cross
12917 cat > conftest.$ac_ext <<EOF
12918 #line 12919 "configure"
12919 #include "confdefs.h"
12920 #include <math.h>
12921 #ifdef HAVE_IEEEFP_H
12922 #include <ieeefp.h>
12923 #endif
12925 int main() {
12926 _log10l(0);
12927 ; return 0; }
12929 if { (eval echo configure:12930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12930 rm -rf conftest*
12931 glibcpp_cv_func__log10l_use=yes
12932 else
12933 echo "configure: failed program was:" >&5
12934 cat conftest.$ac_ext >&5
12935 rm -rf conftest*
12936 glibcpp_cv_func__log10l_use=no
12938 rm -f conftest*
12939 ac_ext=c
12940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12941 ac_cpp='$CPP $CPPFLAGS'
12942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12944 cross_compiling=$ac_cv_prog_cc_cross
12950 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
12952 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
12953 for ac_func in _log10l
12955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12956 echo "configure:12957: checking for $ac_func" >&5
12957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12958 echo $ac_n "(cached) $ac_c" 1>&6
12959 else
12960 cat > conftest.$ac_ext <<EOF
12961 #line 12962 "configure"
12962 #include "confdefs.h"
12963 /* System header to define __stub macros and hopefully few prototypes,
12964 which can conflict with char $ac_func(); below. */
12965 #include <assert.h>
12966 /* Override any gcc2 internal prototype to avoid an error. */
12967 /* We use char because int might match the return type of a gcc2
12968 builtin and then its argument prototype would still apply. */
12969 char $ac_func();
12971 int main() {
12973 /* The GNU C library defines this for functions which it implements
12974 to always fail with ENOSYS. Some functions are actually named
12975 something starting with __ and the normal name is an alias. */
12976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12977 choke me
12978 #else
12979 $ac_func();
12980 #endif
12982 ; return 0; }
12984 if { (eval echo configure:12985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12985 rm -rf conftest*
12986 eval "ac_cv_func_$ac_func=yes"
12987 else
12988 echo "configure: failed program was:" >&5
12989 cat conftest.$ac_ext >&5
12990 rm -rf conftest*
12991 eval "ac_cv_func_$ac_func=no"
12993 rm -f conftest*
12996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12997 echo "$ac_t""yes" 1>&6
12998 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12999 cat >> confdefs.h <<EOF
13000 #define $ac_tr_func 1
13003 else
13004 echo "$ac_t""no" 1>&6
13006 done
13013 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
13014 echo "configure:13015: checking for modfl declaration" >&5
13015 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
13016 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
13017 echo $ac_n "(cached) $ac_c" 1>&6
13018 else
13021 ac_ext=C
13022 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13023 ac_cpp='$CXXCPP $CPPFLAGS'
13024 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13025 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13026 cross_compiling=$ac_cv_prog_cxx_cross
13028 cat > conftest.$ac_ext <<EOF
13029 #line 13030 "configure"
13030 #include "confdefs.h"
13031 #include <math.h>
13032 int main() {
13033 modfl(0, 0);
13034 ; return 0; }
13036 if { (eval echo configure:13037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13037 rm -rf conftest*
13038 glibcpp_cv_func_modfl_use=yes
13039 else
13040 echo "configure: failed program was:" >&5
13041 cat conftest.$ac_ext >&5
13042 rm -rf conftest*
13043 glibcpp_cv_func_modfl_use=no
13045 rm -f conftest*
13046 ac_ext=c
13047 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13048 ac_cpp='$CPP $CPPFLAGS'
13049 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13050 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13051 cross_compiling=$ac_cv_prog_cc_cross
13057 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
13059 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
13060 for ac_func in modfl
13062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13063 echo "configure:13064: checking for $ac_func" >&5
13064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13065 echo $ac_n "(cached) $ac_c" 1>&6
13066 else
13067 cat > conftest.$ac_ext <<EOF
13068 #line 13069 "configure"
13069 #include "confdefs.h"
13070 /* System header to define __stub macros and hopefully few prototypes,
13071 which can conflict with char $ac_func(); below. */
13072 #include <assert.h>
13073 /* Override any gcc2 internal prototype to avoid an error. */
13074 /* We use char because int might match the return type of a gcc2
13075 builtin and then its argument prototype would still apply. */
13076 char $ac_func();
13078 int main() {
13080 /* The GNU C library defines this for functions which it implements
13081 to always fail with ENOSYS. Some functions are actually named
13082 something starting with __ and the normal name is an alias. */
13083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13084 choke me
13085 #else
13086 $ac_func();
13087 #endif
13089 ; return 0; }
13091 if { (eval echo configure:13092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13092 rm -rf conftest*
13093 eval "ac_cv_func_$ac_func=yes"
13094 else
13095 echo "configure: failed program was:" >&5
13096 cat conftest.$ac_ext >&5
13097 rm -rf conftest*
13098 eval "ac_cv_func_$ac_func=no"
13100 rm -f conftest*
13103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13104 echo "$ac_t""yes" 1>&6
13105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13106 cat >> confdefs.h <<EOF
13107 #define $ac_tr_func 1
13110 else
13111 echo "$ac_t""no" 1>&6
13113 done
13115 else
13117 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
13118 echo "configure:13119: checking for _modfl declaration" >&5
13119 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
13120 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
13121 echo $ac_n "(cached) $ac_c" 1>&6
13122 else
13125 ac_ext=C
13126 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13127 ac_cpp='$CXXCPP $CPPFLAGS'
13128 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13129 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13130 cross_compiling=$ac_cv_prog_cxx_cross
13132 cat > conftest.$ac_ext <<EOF
13133 #line 13134 "configure"
13134 #include "confdefs.h"
13135 #include <math.h>
13136 int main() {
13137 _modfl(0, 0);
13138 ; return 0; }
13140 if { (eval echo configure:13141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13141 rm -rf conftest*
13142 glibcpp_cv_func__modfl_use=yes
13143 else
13144 echo "configure: failed program was:" >&5
13145 cat conftest.$ac_ext >&5
13146 rm -rf conftest*
13147 glibcpp_cv_func__modfl_use=no
13149 rm -f conftest*
13150 ac_ext=c
13151 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13152 ac_cpp='$CPP $CPPFLAGS'
13153 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13154 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13155 cross_compiling=$ac_cv_prog_cc_cross
13161 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
13163 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
13164 for ac_func in _modfl
13166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13167 echo "configure:13168: checking for $ac_func" >&5
13168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13169 echo $ac_n "(cached) $ac_c" 1>&6
13170 else
13171 cat > conftest.$ac_ext <<EOF
13172 #line 13173 "configure"
13173 #include "confdefs.h"
13174 /* System header to define __stub macros and hopefully few prototypes,
13175 which can conflict with char $ac_func(); below. */
13176 #include <assert.h>
13177 /* Override any gcc2 internal prototype to avoid an error. */
13178 /* We use char because int might match the return type of a gcc2
13179 builtin and then its argument prototype would still apply. */
13180 char $ac_func();
13182 int main() {
13184 /* The GNU C library defines this for functions which it implements
13185 to always fail with ENOSYS. Some functions are actually named
13186 something starting with __ and the normal name is an alias. */
13187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13188 choke me
13189 #else
13190 $ac_func();
13191 #endif
13193 ; return 0; }
13195 if { (eval echo configure:13196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13196 rm -rf conftest*
13197 eval "ac_cv_func_$ac_func=yes"
13198 else
13199 echo "configure: failed program was:" >&5
13200 cat conftest.$ac_ext >&5
13201 rm -rf conftest*
13202 eval "ac_cv_func_$ac_func=no"
13204 rm -f conftest*
13207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13208 echo "$ac_t""yes" 1>&6
13209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13210 cat >> confdefs.h <<EOF
13211 #define $ac_tr_func 1
13214 else
13215 echo "$ac_t""no" 1>&6
13217 done
13224 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
13225 echo "configure:13226: checking for powl declaration" >&5
13226 if test x${glibcpp_cv_func_powl_use+set} != xset; then
13227 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
13228 echo $ac_n "(cached) $ac_c" 1>&6
13229 else
13232 ac_ext=C
13233 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13234 ac_cpp='$CXXCPP $CPPFLAGS'
13235 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13236 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13237 cross_compiling=$ac_cv_prog_cxx_cross
13239 cat > conftest.$ac_ext <<EOF
13240 #line 13241 "configure"
13241 #include "confdefs.h"
13242 #include <math.h>
13243 int main() {
13244 powl(0, 0);
13245 ; return 0; }
13247 if { (eval echo configure:13248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13248 rm -rf conftest*
13249 glibcpp_cv_func_powl_use=yes
13250 else
13251 echo "configure: failed program was:" >&5
13252 cat conftest.$ac_ext >&5
13253 rm -rf conftest*
13254 glibcpp_cv_func_powl_use=no
13256 rm -f conftest*
13257 ac_ext=c
13258 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13259 ac_cpp='$CPP $CPPFLAGS'
13260 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13261 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13262 cross_compiling=$ac_cv_prog_cc_cross
13268 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
13270 if test x$glibcpp_cv_func_powl_use = x"yes"; then
13271 for ac_func in powl
13273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13274 echo "configure:13275: checking for $ac_func" >&5
13275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13276 echo $ac_n "(cached) $ac_c" 1>&6
13277 else
13278 cat > conftest.$ac_ext <<EOF
13279 #line 13280 "configure"
13280 #include "confdefs.h"
13281 /* System header to define __stub macros and hopefully few prototypes,
13282 which can conflict with char $ac_func(); below. */
13283 #include <assert.h>
13284 /* Override any gcc2 internal prototype to avoid an error. */
13285 /* We use char because int might match the return type of a gcc2
13286 builtin and then its argument prototype would still apply. */
13287 char $ac_func();
13289 int main() {
13291 /* The GNU C library defines this for functions which it implements
13292 to always fail with ENOSYS. Some functions are actually named
13293 something starting with __ and the normal name is an alias. */
13294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13295 choke me
13296 #else
13297 $ac_func();
13298 #endif
13300 ; return 0; }
13302 if { (eval echo configure:13303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13303 rm -rf conftest*
13304 eval "ac_cv_func_$ac_func=yes"
13305 else
13306 echo "configure: failed program was:" >&5
13307 cat conftest.$ac_ext >&5
13308 rm -rf conftest*
13309 eval "ac_cv_func_$ac_func=no"
13311 rm -f conftest*
13314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13315 echo "$ac_t""yes" 1>&6
13316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13317 cat >> confdefs.h <<EOF
13318 #define $ac_tr_func 1
13321 else
13322 echo "$ac_t""no" 1>&6
13324 done
13326 else
13328 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
13329 echo "configure:13330: checking for _powl declaration" >&5
13330 if test x${glibcpp_cv_func__powl_use+set} != xset; then
13331 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
13332 echo $ac_n "(cached) $ac_c" 1>&6
13333 else
13336 ac_ext=C
13337 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13338 ac_cpp='$CXXCPP $CPPFLAGS'
13339 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13340 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13341 cross_compiling=$ac_cv_prog_cxx_cross
13343 cat > conftest.$ac_ext <<EOF
13344 #line 13345 "configure"
13345 #include "confdefs.h"
13346 #include <math.h>
13347 int main() {
13348 _powl(0, 0);
13349 ; return 0; }
13351 if { (eval echo configure:13352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13352 rm -rf conftest*
13353 glibcpp_cv_func__powl_use=yes
13354 else
13355 echo "configure: failed program was:" >&5
13356 cat conftest.$ac_ext >&5
13357 rm -rf conftest*
13358 glibcpp_cv_func__powl_use=no
13360 rm -f conftest*
13361 ac_ext=c
13362 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13363 ac_cpp='$CPP $CPPFLAGS'
13364 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13365 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13366 cross_compiling=$ac_cv_prog_cc_cross
13372 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
13374 if test x$glibcpp_cv_func__powl_use = x"yes"; then
13375 for ac_func in _powl
13377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13378 echo "configure:13379: checking for $ac_func" >&5
13379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13380 echo $ac_n "(cached) $ac_c" 1>&6
13381 else
13382 cat > conftest.$ac_ext <<EOF
13383 #line 13384 "configure"
13384 #include "confdefs.h"
13385 /* System header to define __stub macros and hopefully few prototypes,
13386 which can conflict with char $ac_func(); below. */
13387 #include <assert.h>
13388 /* Override any gcc2 internal prototype to avoid an error. */
13389 /* We use char because int might match the return type of a gcc2
13390 builtin and then its argument prototype would still apply. */
13391 char $ac_func();
13393 int main() {
13395 /* The GNU C library defines this for functions which it implements
13396 to always fail with ENOSYS. Some functions are actually named
13397 something starting with __ and the normal name is an alias. */
13398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13399 choke me
13400 #else
13401 $ac_func();
13402 #endif
13404 ; return 0; }
13406 if { (eval echo configure:13407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13407 rm -rf conftest*
13408 eval "ac_cv_func_$ac_func=yes"
13409 else
13410 echo "configure: failed program was:" >&5
13411 cat conftest.$ac_ext >&5
13412 rm -rf conftest*
13413 eval "ac_cv_func_$ac_func=no"
13415 rm -f conftest*
13418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13419 echo "$ac_t""yes" 1>&6
13420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13421 cat >> confdefs.h <<EOF
13422 #define $ac_tr_func 1
13425 else
13426 echo "$ac_t""no" 1>&6
13428 done
13435 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
13436 echo "configure:13437: checking for sqrtl declaration" >&5
13437 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
13438 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
13439 echo $ac_n "(cached) $ac_c" 1>&6
13440 else
13443 ac_ext=C
13444 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13445 ac_cpp='$CXXCPP $CPPFLAGS'
13446 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13447 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13448 cross_compiling=$ac_cv_prog_cxx_cross
13450 cat > conftest.$ac_ext <<EOF
13451 #line 13452 "configure"
13452 #include "confdefs.h"
13453 #include <math.h>
13454 #ifdef HAVE_IEEEFP_H
13455 #include <ieeefp.h>
13456 #endif
13458 int main() {
13459 sqrtl(0);
13460 ; return 0; }
13462 if { (eval echo configure:13463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13463 rm -rf conftest*
13464 glibcpp_cv_func_sqrtl_use=yes
13465 else
13466 echo "configure: failed program was:" >&5
13467 cat conftest.$ac_ext >&5
13468 rm -rf conftest*
13469 glibcpp_cv_func_sqrtl_use=no
13471 rm -f conftest*
13472 ac_ext=c
13473 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13474 ac_cpp='$CPP $CPPFLAGS'
13475 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13476 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13477 cross_compiling=$ac_cv_prog_cc_cross
13483 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
13485 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
13486 for ac_func in sqrtl
13488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13489 echo "configure:13490: checking for $ac_func" >&5
13490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13491 echo $ac_n "(cached) $ac_c" 1>&6
13492 else
13493 cat > conftest.$ac_ext <<EOF
13494 #line 13495 "configure"
13495 #include "confdefs.h"
13496 /* System header to define __stub macros and hopefully few prototypes,
13497 which can conflict with char $ac_func(); below. */
13498 #include <assert.h>
13499 /* Override any gcc2 internal prototype to avoid an error. */
13500 /* We use char because int might match the return type of a gcc2
13501 builtin and then its argument prototype would still apply. */
13502 char $ac_func();
13504 int main() {
13506 /* The GNU C library defines this for functions which it implements
13507 to always fail with ENOSYS. Some functions are actually named
13508 something starting with __ and the normal name is an alias. */
13509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13510 choke me
13511 #else
13512 $ac_func();
13513 #endif
13515 ; return 0; }
13517 if { (eval echo configure:13518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13518 rm -rf conftest*
13519 eval "ac_cv_func_$ac_func=yes"
13520 else
13521 echo "configure: failed program was:" >&5
13522 cat conftest.$ac_ext >&5
13523 rm -rf conftest*
13524 eval "ac_cv_func_$ac_func=no"
13526 rm -f conftest*
13529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13530 echo "$ac_t""yes" 1>&6
13531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13532 cat >> confdefs.h <<EOF
13533 #define $ac_tr_func 1
13536 else
13537 echo "$ac_t""no" 1>&6
13539 done
13541 else
13543 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
13544 echo "configure:13545: checking for _sqrtl declaration" >&5
13545 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
13546 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
13547 echo $ac_n "(cached) $ac_c" 1>&6
13548 else
13551 ac_ext=C
13552 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13553 ac_cpp='$CXXCPP $CPPFLAGS'
13554 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13555 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13556 cross_compiling=$ac_cv_prog_cxx_cross
13558 cat > conftest.$ac_ext <<EOF
13559 #line 13560 "configure"
13560 #include "confdefs.h"
13561 #include <math.h>
13562 #ifdef HAVE_IEEEFP_H
13563 #include <ieeefp.h>
13564 #endif
13566 int main() {
13567 _sqrtl(0);
13568 ; return 0; }
13570 if { (eval echo configure:13571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13571 rm -rf conftest*
13572 glibcpp_cv_func__sqrtl_use=yes
13573 else
13574 echo "configure: failed program was:" >&5
13575 cat conftest.$ac_ext >&5
13576 rm -rf conftest*
13577 glibcpp_cv_func__sqrtl_use=no
13579 rm -f conftest*
13580 ac_ext=c
13581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13582 ac_cpp='$CPP $CPPFLAGS'
13583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13585 cross_compiling=$ac_cv_prog_cc_cross
13591 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
13593 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
13594 for ac_func in _sqrtl
13596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13597 echo "configure:13598: checking for $ac_func" >&5
13598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13599 echo $ac_n "(cached) $ac_c" 1>&6
13600 else
13601 cat > conftest.$ac_ext <<EOF
13602 #line 13603 "configure"
13603 #include "confdefs.h"
13604 /* System header to define __stub macros and hopefully few prototypes,
13605 which can conflict with char $ac_func(); below. */
13606 #include <assert.h>
13607 /* Override any gcc2 internal prototype to avoid an error. */
13608 /* We use char because int might match the return type of a gcc2
13609 builtin and then its argument prototype would still apply. */
13610 char $ac_func();
13612 int main() {
13614 /* The GNU C library defines this for functions which it implements
13615 to always fail with ENOSYS. Some functions are actually named
13616 something starting with __ and the normal name is an alias. */
13617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13618 choke me
13619 #else
13620 $ac_func();
13621 #endif
13623 ; return 0; }
13625 if { (eval echo configure:13626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13626 rm -rf conftest*
13627 eval "ac_cv_func_$ac_func=yes"
13628 else
13629 echo "configure: failed program was:" >&5
13630 cat conftest.$ac_ext >&5
13631 rm -rf conftest*
13632 eval "ac_cv_func_$ac_func=no"
13634 rm -f conftest*
13637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13638 echo "$ac_t""yes" 1>&6
13639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13640 cat >> confdefs.h <<EOF
13641 #define $ac_tr_func 1
13644 else
13645 echo "$ac_t""no" 1>&6
13647 done
13654 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
13655 echo "configure:13656: checking for sincosl declaration" >&5
13656 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
13657 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
13658 echo $ac_n "(cached) $ac_c" 1>&6
13659 else
13662 ac_ext=C
13663 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13664 ac_cpp='$CXXCPP $CPPFLAGS'
13665 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13666 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13667 cross_compiling=$ac_cv_prog_cxx_cross
13669 cat > conftest.$ac_ext <<EOF
13670 #line 13671 "configure"
13671 #include "confdefs.h"
13672 #include <math.h>
13673 int main() {
13674 sincosl(0, 0, 0);
13675 ; return 0; }
13677 if { (eval echo configure:13678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13678 rm -rf conftest*
13679 glibcpp_cv_func_sincosl_use=yes
13680 else
13681 echo "configure: failed program was:" >&5
13682 cat conftest.$ac_ext >&5
13683 rm -rf conftest*
13684 glibcpp_cv_func_sincosl_use=no
13686 rm -f conftest*
13687 ac_ext=c
13688 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13689 ac_cpp='$CPP $CPPFLAGS'
13690 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13691 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13692 cross_compiling=$ac_cv_prog_cc_cross
13698 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
13700 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
13701 for ac_func in sincosl
13703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13704 echo "configure:13705: checking for $ac_func" >&5
13705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13706 echo $ac_n "(cached) $ac_c" 1>&6
13707 else
13708 cat > conftest.$ac_ext <<EOF
13709 #line 13710 "configure"
13710 #include "confdefs.h"
13711 /* System header to define __stub macros and hopefully few prototypes,
13712 which can conflict with char $ac_func(); below. */
13713 #include <assert.h>
13714 /* Override any gcc2 internal prototype to avoid an error. */
13715 /* We use char because int might match the return type of a gcc2
13716 builtin and then its argument prototype would still apply. */
13717 char $ac_func();
13719 int main() {
13721 /* The GNU C library defines this for functions which it implements
13722 to always fail with ENOSYS. Some functions are actually named
13723 something starting with __ and the normal name is an alias. */
13724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13725 choke me
13726 #else
13727 $ac_func();
13728 #endif
13730 ; return 0; }
13732 if { (eval echo configure:13733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13733 rm -rf conftest*
13734 eval "ac_cv_func_$ac_func=yes"
13735 else
13736 echo "configure: failed program was:" >&5
13737 cat conftest.$ac_ext >&5
13738 rm -rf conftest*
13739 eval "ac_cv_func_$ac_func=no"
13741 rm -f conftest*
13744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13745 echo "$ac_t""yes" 1>&6
13746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13747 cat >> confdefs.h <<EOF
13748 #define $ac_tr_func 1
13751 else
13752 echo "$ac_t""no" 1>&6
13754 done
13756 else
13758 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
13759 echo "configure:13760: checking for _sincosl declaration" >&5
13760 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
13761 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
13762 echo $ac_n "(cached) $ac_c" 1>&6
13763 else
13766 ac_ext=C
13767 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13768 ac_cpp='$CXXCPP $CPPFLAGS'
13769 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13770 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13771 cross_compiling=$ac_cv_prog_cxx_cross
13773 cat > conftest.$ac_ext <<EOF
13774 #line 13775 "configure"
13775 #include "confdefs.h"
13776 #include <math.h>
13777 int main() {
13778 _sincosl(0, 0, 0);
13779 ; return 0; }
13781 if { (eval echo configure:13782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13782 rm -rf conftest*
13783 glibcpp_cv_func__sincosl_use=yes
13784 else
13785 echo "configure: failed program was:" >&5
13786 cat conftest.$ac_ext >&5
13787 rm -rf conftest*
13788 glibcpp_cv_func__sincosl_use=no
13790 rm -f conftest*
13791 ac_ext=c
13792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13793 ac_cpp='$CPP $CPPFLAGS'
13794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13796 cross_compiling=$ac_cv_prog_cc_cross
13802 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
13804 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
13805 for ac_func in _sincosl
13807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13808 echo "configure:13809: checking for $ac_func" >&5
13809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13810 echo $ac_n "(cached) $ac_c" 1>&6
13811 else
13812 cat > conftest.$ac_ext <<EOF
13813 #line 13814 "configure"
13814 #include "confdefs.h"
13815 /* System header to define __stub macros and hopefully few prototypes,
13816 which can conflict with char $ac_func(); below. */
13817 #include <assert.h>
13818 /* Override any gcc2 internal prototype to avoid an error. */
13819 /* We use char because int might match the return type of a gcc2
13820 builtin and then its argument prototype would still apply. */
13821 char $ac_func();
13823 int main() {
13825 /* The GNU C library defines this for functions which it implements
13826 to always fail with ENOSYS. Some functions are actually named
13827 something starting with __ and the normal name is an alias. */
13828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13829 choke me
13830 #else
13831 $ac_func();
13832 #endif
13834 ; return 0; }
13836 if { (eval echo configure:13837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13837 rm -rf conftest*
13838 eval "ac_cv_func_$ac_func=yes"
13839 else
13840 echo "configure: failed program was:" >&5
13841 cat conftest.$ac_ext >&5
13842 rm -rf conftest*
13843 eval "ac_cv_func_$ac_func=no"
13845 rm -f conftest*
13848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13849 echo "$ac_t""yes" 1>&6
13850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13851 cat >> confdefs.h <<EOF
13852 #define $ac_tr_func 1
13855 else
13856 echo "$ac_t""no" 1>&6
13858 done
13865 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
13866 echo "configure:13867: checking for finitel declaration" >&5
13867 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
13868 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
13869 echo $ac_n "(cached) $ac_c" 1>&6
13870 else
13873 ac_ext=C
13874 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13875 ac_cpp='$CXXCPP $CPPFLAGS'
13876 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13877 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13878 cross_compiling=$ac_cv_prog_cxx_cross
13880 cat > conftest.$ac_ext <<EOF
13881 #line 13882 "configure"
13882 #include "confdefs.h"
13883 #include <math.h>
13884 #ifdef HAVE_IEEEFP_H
13885 #include <ieeefp.h>
13886 #endif
13888 int main() {
13889 finitel(0);
13890 ; return 0; }
13892 if { (eval echo configure:13893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13893 rm -rf conftest*
13894 glibcpp_cv_func_finitel_use=yes
13895 else
13896 echo "configure: failed program was:" >&5
13897 cat conftest.$ac_ext >&5
13898 rm -rf conftest*
13899 glibcpp_cv_func_finitel_use=no
13901 rm -f conftest*
13902 ac_ext=c
13903 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13904 ac_cpp='$CPP $CPPFLAGS'
13905 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13906 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13907 cross_compiling=$ac_cv_prog_cc_cross
13913 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
13915 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
13916 for ac_func in finitel
13918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13919 echo "configure:13920: checking for $ac_func" >&5
13920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13921 echo $ac_n "(cached) $ac_c" 1>&6
13922 else
13923 cat > conftest.$ac_ext <<EOF
13924 #line 13925 "configure"
13925 #include "confdefs.h"
13926 /* System header to define __stub macros and hopefully few prototypes,
13927 which can conflict with char $ac_func(); below. */
13928 #include <assert.h>
13929 /* Override any gcc2 internal prototype to avoid an error. */
13930 /* We use char because int might match the return type of a gcc2
13931 builtin and then its argument prototype would still apply. */
13932 char $ac_func();
13934 int main() {
13936 /* The GNU C library defines this for functions which it implements
13937 to always fail with ENOSYS. Some functions are actually named
13938 something starting with __ and the normal name is an alias. */
13939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13940 choke me
13941 #else
13942 $ac_func();
13943 #endif
13945 ; return 0; }
13947 if { (eval echo configure:13948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13948 rm -rf conftest*
13949 eval "ac_cv_func_$ac_func=yes"
13950 else
13951 echo "configure: failed program was:" >&5
13952 cat conftest.$ac_ext >&5
13953 rm -rf conftest*
13954 eval "ac_cv_func_$ac_func=no"
13956 rm -f conftest*
13959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13960 echo "$ac_t""yes" 1>&6
13961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13962 cat >> confdefs.h <<EOF
13963 #define $ac_tr_func 1
13966 else
13967 echo "$ac_t""no" 1>&6
13969 done
13971 else
13973 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
13974 echo "configure:13975: checking for _finitel declaration" >&5
13975 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
13976 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
13977 echo $ac_n "(cached) $ac_c" 1>&6
13978 else
13981 ac_ext=C
13982 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13983 ac_cpp='$CXXCPP $CPPFLAGS'
13984 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13985 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13986 cross_compiling=$ac_cv_prog_cxx_cross
13988 cat > conftest.$ac_ext <<EOF
13989 #line 13990 "configure"
13990 #include "confdefs.h"
13991 #include <math.h>
13992 #ifdef HAVE_IEEEFP_H
13993 #include <ieeefp.h>
13994 #endif
13996 int main() {
13997 _finitel(0);
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__finitel_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__finitel_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
14021 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
14023 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
14024 for ac_func in _finitel
14026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14027 echo "configure:14028: checking for $ac_func" >&5
14028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14029 echo $ac_n "(cached) $ac_c" 1>&6
14030 else
14031 cat > conftest.$ac_ext <<EOF
14032 #line 14033 "configure"
14033 #include "confdefs.h"
14034 /* System header to define __stub macros and hopefully few prototypes,
14035 which can conflict with char $ac_func(); below. */
14036 #include <assert.h>
14037 /* Override any gcc2 internal prototype to avoid an error. */
14038 /* We use char because int might match the return type of a gcc2
14039 builtin and then its argument prototype would still apply. */
14040 char $ac_func();
14042 int main() {
14044 /* The GNU C library defines this for functions which it implements
14045 to always fail with ENOSYS. Some functions are actually named
14046 something starting with __ and the normal name is an alias. */
14047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14048 choke me
14049 #else
14050 $ac_func();
14051 #endif
14053 ; return 0; }
14055 if { (eval echo configure:14056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14056 rm -rf conftest*
14057 eval "ac_cv_func_$ac_func=yes"
14058 else
14059 echo "configure: failed program was:" >&5
14060 cat conftest.$ac_ext >&5
14061 rm -rf conftest*
14062 eval "ac_cv_func_$ac_func=no"
14064 rm -f conftest*
14067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14068 echo "$ac_t""yes" 1>&6
14069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14070 cat >> confdefs.h <<EOF
14071 #define $ac_tr_func 1
14074 else
14075 echo "$ac_t""no" 1>&6
14077 done
14085 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
14086 echo "configure:14087: checking for _float trig functions" >&5
14087 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
14088 echo $ac_n "(cached) $ac_c" 1>&6
14089 else
14092 ac_ext=C
14093 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14094 ac_cpp='$CXXCPP $CPPFLAGS'
14095 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14096 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14097 cross_compiling=$ac_cv_prog_cxx_cross
14099 cat > conftest.$ac_ext <<EOF
14100 #line 14101 "configure"
14101 #include "confdefs.h"
14102 #include <math.h>
14103 int main() {
14104 `for x in _acosf _asinf _atanf \
14105 _cosf _sinf _tanf \
14106 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
14107 ; return 0; }
14109 if { (eval echo configure:14110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14110 rm -rf conftest*
14111 glibcpp_cv_func__float_trig_use=yes
14112 else
14113 echo "configure: failed program was:" >&5
14114 cat conftest.$ac_ext >&5
14115 rm -rf conftest*
14116 glibcpp_cv_func__float_trig_use=no
14118 rm -f conftest*
14119 ac_ext=c
14120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14121 ac_cpp='$CPP $CPPFLAGS'
14122 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14123 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14124 cross_compiling=$ac_cv_prog_cc_cross
14128 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
14129 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
14130 for ac_func in _acosf _asinf _atanf \
14131 _cosf _sinf _tanf \
14132 _coshf _sinhf _tanhf
14134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14135 echo "configure:14136: checking for $ac_func" >&5
14136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14137 echo $ac_n "(cached) $ac_c" 1>&6
14138 else
14139 cat > conftest.$ac_ext <<EOF
14140 #line 14141 "configure"
14141 #include "confdefs.h"
14142 /* System header to define __stub macros and hopefully few prototypes,
14143 which can conflict with char $ac_func(); below. */
14144 #include <assert.h>
14145 /* Override any gcc2 internal prototype to avoid an error. */
14146 /* We use char because int might match the return type of a gcc2
14147 builtin and then its argument prototype would still apply. */
14148 char $ac_func();
14150 int main() {
14152 /* The GNU C library defines this for functions which it implements
14153 to always fail with ENOSYS. Some functions are actually named
14154 something starting with __ and the normal name is an alias. */
14155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14156 choke me
14157 #else
14158 $ac_func();
14159 #endif
14161 ; return 0; }
14163 if { (eval echo configure:14164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14164 rm -rf conftest*
14165 eval "ac_cv_func_$ac_func=yes"
14166 else
14167 echo "configure: failed program was:" >&5
14168 cat conftest.$ac_ext >&5
14169 rm -rf conftest*
14170 eval "ac_cv_func_$ac_func=no"
14172 rm -f conftest*
14175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14176 echo "$ac_t""yes" 1>&6
14177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14178 cat >> confdefs.h <<EOF
14179 #define $ac_tr_func 1
14182 else
14183 echo "$ac_t""no" 1>&6
14185 done
14190 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
14191 echo "configure:14192: checking for _float round functions" >&5
14192 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
14193 echo $ac_n "(cached) $ac_c" 1>&6
14194 else
14197 ac_ext=C
14198 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14199 ac_cpp='$CXXCPP $CPPFLAGS'
14200 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14201 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14202 cross_compiling=$ac_cv_prog_cxx_cross
14204 cat > conftest.$ac_ext <<EOF
14205 #line 14206 "configure"
14206 #include "confdefs.h"
14207 #include <math.h>
14208 int main() {
14209 `for x in _ceilf _floorf; do echo "$x (0);"; done`
14210 ; return 0; }
14212 if { (eval echo configure:14213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14213 rm -rf conftest*
14214 glibcpp_cv_func__float_round_use=yes
14215 else
14216 echo "configure: failed program was:" >&5
14217 cat conftest.$ac_ext >&5
14218 rm -rf conftest*
14219 glibcpp_cv_func__float_round_use=no
14221 rm -f conftest*
14222 ac_ext=c
14223 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14224 ac_cpp='$CPP $CPPFLAGS'
14225 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14226 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14227 cross_compiling=$ac_cv_prog_cc_cross
14231 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
14232 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
14233 for ac_func in _ceilf _floorf
14235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14236 echo "configure:14237: checking for $ac_func" >&5
14237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14238 echo $ac_n "(cached) $ac_c" 1>&6
14239 else
14240 cat > conftest.$ac_ext <<EOF
14241 #line 14242 "configure"
14242 #include "confdefs.h"
14243 /* System header to define __stub macros and hopefully few prototypes,
14244 which can conflict with char $ac_func(); below. */
14245 #include <assert.h>
14246 /* Override any gcc2 internal prototype to avoid an error. */
14247 /* We use char because int might match the return type of a gcc2
14248 builtin and then its argument prototype would still apply. */
14249 char $ac_func();
14251 int main() {
14253 /* The GNU C library defines this for functions which it implements
14254 to always fail with ENOSYS. Some functions are actually named
14255 something starting with __ and the normal name is an alias. */
14256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14257 choke me
14258 #else
14259 $ac_func();
14260 #endif
14262 ; return 0; }
14264 if { (eval echo configure:14265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14265 rm -rf conftest*
14266 eval "ac_cv_func_$ac_func=yes"
14267 else
14268 echo "configure: failed program was:" >&5
14269 cat conftest.$ac_ext >&5
14270 rm -rf conftest*
14271 eval "ac_cv_func_$ac_func=no"
14273 rm -f conftest*
14276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14277 echo "$ac_t""yes" 1>&6
14278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14279 cat >> confdefs.h <<EOF
14280 #define $ac_tr_func 1
14283 else
14284 echo "$ac_t""no" 1>&6
14286 done
14292 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
14293 echo "configure:14294: checking for _long double trig functions" >&5
14294 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
14295 echo $ac_n "(cached) $ac_c" 1>&6
14296 else
14299 ac_ext=C
14300 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14301 ac_cpp='$CXXCPP $CPPFLAGS'
14302 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14303 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14304 cross_compiling=$ac_cv_prog_cxx_cross
14306 cat > conftest.$ac_ext <<EOF
14307 #line 14308 "configure"
14308 #include "confdefs.h"
14309 #include <math.h>
14310 int main() {
14311 `for x in _acosl _asinl _atanl \
14312 _cosl _sinl _tanl \
14313 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
14314 ; return 0; }
14316 if { (eval echo configure:14317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14317 rm -rf conftest*
14318 glibcpp_cv_func__long_double_trig_use=yes
14319 else
14320 echo "configure: failed program was:" >&5
14321 cat conftest.$ac_ext >&5
14322 rm -rf conftest*
14323 glibcpp_cv_func__long_double_trig_use=no
14325 rm -f conftest*
14326 ac_ext=c
14327 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14328 ac_cpp='$CPP $CPPFLAGS'
14329 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14330 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14331 cross_compiling=$ac_cv_prog_cc_cross
14335 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
14336 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
14337 for ac_func in _acosl _asinl _atanl \
14338 _cosl _sinl _tanl \
14339 _coshl _sinhl _tanhl
14341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14342 echo "configure:14343: checking for $ac_func" >&5
14343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14344 echo $ac_n "(cached) $ac_c" 1>&6
14345 else
14346 cat > conftest.$ac_ext <<EOF
14347 #line 14348 "configure"
14348 #include "confdefs.h"
14349 /* System header to define __stub macros and hopefully few prototypes,
14350 which can conflict with char $ac_func(); below. */
14351 #include <assert.h>
14352 /* Override any gcc2 internal prototype to avoid an error. */
14353 /* We use char because int might match the return type of a gcc2
14354 builtin and then its argument prototype would still apply. */
14355 char $ac_func();
14357 int main() {
14359 /* The GNU C library defines this for functions which it implements
14360 to always fail with ENOSYS. Some functions are actually named
14361 something starting with __ and the normal name is an alias. */
14362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14363 choke me
14364 #else
14365 $ac_func();
14366 #endif
14368 ; return 0; }
14370 if { (eval echo configure:14371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14371 rm -rf conftest*
14372 eval "ac_cv_func_$ac_func=yes"
14373 else
14374 echo "configure: failed program was:" >&5
14375 cat conftest.$ac_ext >&5
14376 rm -rf conftest*
14377 eval "ac_cv_func_$ac_func=no"
14379 rm -f conftest*
14382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14383 echo "$ac_t""yes" 1>&6
14384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14385 cat >> confdefs.h <<EOF
14386 #define $ac_tr_func 1
14389 else
14390 echo "$ac_t""no" 1>&6
14392 done
14397 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
14398 echo "configure:14399: checking for _long double round functions" >&5
14399 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
14400 echo $ac_n "(cached) $ac_c" 1>&6
14401 else
14404 ac_ext=C
14405 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14406 ac_cpp='$CXXCPP $CPPFLAGS'
14407 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14408 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14409 cross_compiling=$ac_cv_prog_cxx_cross
14411 cat > conftest.$ac_ext <<EOF
14412 #line 14413 "configure"
14413 #include "confdefs.h"
14414 #include <math.h>
14415 int main() {
14416 `for x in _ceill _floorl; do echo "$x (0);"; done`
14417 ; return 0; }
14419 if { (eval echo configure:14420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14420 rm -rf conftest*
14421 glibcpp_cv_func__long_double_round_use=yes
14422 else
14423 echo "configure: failed program was:" >&5
14424 cat conftest.$ac_ext >&5
14425 rm -rf conftest*
14426 glibcpp_cv_func__long_double_round_use=no
14428 rm -f conftest*
14429 ac_ext=c
14430 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14431 ac_cpp='$CPP $CPPFLAGS'
14432 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14433 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14434 cross_compiling=$ac_cv_prog_cc_cross
14438 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
14439 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
14440 for ac_func in _ceill _floorl
14442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14443 echo "configure:14444: checking for $ac_func" >&5
14444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14445 echo $ac_n "(cached) $ac_c" 1>&6
14446 else
14447 cat > conftest.$ac_ext <<EOF
14448 #line 14449 "configure"
14449 #include "confdefs.h"
14450 /* System header to define __stub macros and hopefully few prototypes,
14451 which can conflict with char $ac_func(); below. */
14452 #include <assert.h>
14453 /* Override any gcc2 internal prototype to avoid an error. */
14454 /* We use char because int might match the return type of a gcc2
14455 builtin and then its argument prototype would still apply. */
14456 char $ac_func();
14458 int main() {
14460 /* The GNU C library defines this for functions which it implements
14461 to always fail with ENOSYS. Some functions are actually named
14462 something starting with __ and the normal name is an alias. */
14463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14464 choke me
14465 #else
14466 $ac_func();
14467 #endif
14469 ; return 0; }
14471 if { (eval echo configure:14472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14472 rm -rf conftest*
14473 eval "ac_cv_func_$ac_func=yes"
14474 else
14475 echo "configure: failed program was:" >&5
14476 cat conftest.$ac_ext >&5
14477 rm -rf conftest*
14478 eval "ac_cv_func_$ac_func=no"
14480 rm -f conftest*
14483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14484 echo "$ac_t""yes" 1>&6
14485 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14486 cat >> confdefs.h <<EOF
14487 #define $ac_tr_func 1
14490 else
14491 echo "$ac_t""no" 1>&6
14493 done
14498 LIBS="$ac_save_LIBS"
14499 CXXFLAGS="$ac_save_CXXFLAGS"
14502 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
14503 echo "configure:14504: checking for main in -lm" >&5
14504 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
14505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14506 echo $ac_n "(cached) $ac_c" 1>&6
14507 else
14508 ac_save_LIBS="$LIBS"
14509 LIBS="-lm $LIBS"
14510 cat > conftest.$ac_ext <<EOF
14511 #line 14512 "configure"
14512 #include "confdefs.h"
14514 int main() {
14515 main()
14516 ; return 0; }
14518 if { (eval echo configure:14519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14519 rm -rf conftest*
14520 eval "ac_cv_lib_$ac_lib_var=yes"
14521 else
14522 echo "configure: failed program was:" >&5
14523 cat conftest.$ac_ext >&5
14524 rm -rf conftest*
14525 eval "ac_cv_lib_$ac_lib_var=no"
14527 rm -f conftest*
14528 LIBS="$ac_save_LIBS"
14531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14532 echo "$ac_t""yes" 1>&6
14533 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14534 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14535 cat >> confdefs.h <<EOF
14536 #define $ac_tr_lib 1
14539 LIBS="-lm $LIBS"
14541 else
14542 echo "$ac_t""no" 1>&6
14545 for ac_func in nan hypot hypotf atan2f expf copysignf
14547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14548 echo "configure:14549: checking for $ac_func" >&5
14549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14550 echo $ac_n "(cached) $ac_c" 1>&6
14551 else
14552 cat > conftest.$ac_ext <<EOF
14553 #line 14554 "configure"
14554 #include "confdefs.h"
14555 /* System header to define __stub macros and hopefully few prototypes,
14556 which can conflict with char $ac_func(); below. */
14557 #include <assert.h>
14558 /* Override any gcc2 internal prototype to avoid an error. */
14559 /* We use char because int might match the return type of a gcc2
14560 builtin and then its argument prototype would still apply. */
14561 char $ac_func();
14563 int main() {
14565 /* The GNU C library defines this for functions which it implements
14566 to always fail with ENOSYS. Some functions are actually named
14567 something starting with __ and the normal name is an alias. */
14568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14569 choke me
14570 #else
14571 $ac_func();
14572 #endif
14574 ; return 0; }
14576 if { (eval echo configure:14577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14577 rm -rf conftest*
14578 eval "ac_cv_func_$ac_func=yes"
14579 else
14580 echo "configure: failed program was:" >&5
14581 cat conftest.$ac_ext >&5
14582 rm -rf conftest*
14583 eval "ac_cv_func_$ac_func=no"
14585 rm -f conftest*
14588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14589 echo "$ac_t""yes" 1>&6
14590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14591 cat >> confdefs.h <<EOF
14592 #define $ac_tr_func 1
14595 else
14596 echo "$ac_t""no" 1>&6
14597 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
14599 done
14603 USE_COMPLEX_LONG_DOUBLE=no
14604 if test x$ac_cv_func_atan2l = x"yes" \
14605 && test x$ac_cv_func_copysignl = x"yes"; then
14606 USE_COMPLEX_LONG_DOUBLE=yes
14607 for ac_func in hypotl signbitl
14609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14610 echo "configure:14611: checking for $ac_func" >&5
14611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14612 echo $ac_n "(cached) $ac_c" 1>&6
14613 else
14614 cat > conftest.$ac_ext <<EOF
14615 #line 14616 "configure"
14616 #include "confdefs.h"
14617 /* System header to define __stub macros and hopefully few prototypes,
14618 which can conflict with char $ac_func(); below. */
14619 #include <assert.h>
14620 /* Override any gcc2 internal prototype to avoid an error. */
14621 /* We use char because int might match the return type of a gcc2
14622 builtin and then its argument prototype would still apply. */
14623 char $ac_func();
14625 int main() {
14627 /* The GNU C library defines this for functions which it implements
14628 to always fail with ENOSYS. Some functions are actually named
14629 something starting with __ and the normal name is an alias. */
14630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14631 choke me
14632 #else
14633 $ac_func();
14634 #endif
14636 ; return 0; }
14638 if { (eval echo configure:14639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14639 rm -rf conftest*
14640 eval "ac_cv_func_$ac_func=yes"
14641 else
14642 echo "configure: failed program was:" >&5
14643 cat conftest.$ac_ext >&5
14644 rm -rf conftest*
14645 eval "ac_cv_func_$ac_func=no"
14647 rm -f conftest*
14650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14651 echo "$ac_t""yes" 1>&6
14652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14653 cat >> confdefs.h <<EOF
14654 #define $ac_tr_func 1
14657 else
14658 echo "$ac_t""no" 1>&6
14659 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
14661 done
14671 echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
14672 echo "configure:14673: checking for GNU C++ __complex__ support" >&5
14673 if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
14674 echo $ac_n "(cached) $ac_c" 1>&6
14675 else
14678 ac_ext=C
14679 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14680 ac_cpp='$CXXCPP $CPPFLAGS'
14681 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14682 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14683 cross_compiling=$ac_cv_prog_cxx_cross
14685 cat > conftest.$ac_ext <<EOF
14686 #line 14687 "configure"
14687 #include "confdefs.h"
14688 struct dcomplex { __complex__ double x; }; \
14689 dcomplex f(const dcomplex& x) { return dcomplex(x); }
14690 int main() {
14692 dcomplex x; f(x);
14693 ; return 0; }
14695 if { (eval echo configure:14696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14696 rm -rf conftest*
14697 glibcpp_cv_complex=ok
14698 else
14699 echo "configure: failed program was:" >&5
14700 cat conftest.$ac_ext >&5
14701 rm -rf conftest*
14702 glibcpp_cv_complex=buggy
14705 rm -f conftest*
14706 ac_ext=c
14707 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14708 ac_cpp='$CPP $CPPFLAGS'
14709 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14710 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14711 cross_compiling=$ac_cv_prog_cc_cross
14716 echo "$ac_t""$glibcpp_cv_complex" 1>&6
14717 if test $glibcpp_cv_complex = buggy; then
14718 cat >> confdefs.h <<\EOF
14719 #define _GLIBCPP_BUGGY_COMPLEX 1
14724 echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
14725 echo "configure:14726: checking for GNU C++ __complex__ float support" >&5
14726 if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
14727 echo $ac_n "(cached) $ac_c" 1>&6
14728 else
14731 ac_ext=C
14732 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14733 ac_cpp='$CXXCPP $CPPFLAGS'
14734 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14735 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14736 cross_compiling=$ac_cv_prog_cxx_cross
14738 rm -f conftest.h
14739 cat > conftest.h <<EOB
14741 // Check for buggy __complex__ that causes ICE in most versions of egcs
14742 // and gcc-2.95.x on certain platforms (eg., x86-win32).
14744 // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
14745 // more info on the bug itself.
14747 struct
14748 float_complex
14750 __complex__ float m_value;
14751 float_complex (float = 0.0f, float = 0.0f);
14752 float_complex (__complex__ float val) : m_value (val) {}
14753 float_complex foo (const float_complex &val)
14754 { return float_complex (~val.m_value); }
14757 cat > conftest.$ac_ext <<EOF
14758 #line 14759 "configure"
14759 #include "confdefs.h"
14760 #include "conftest.h"
14761 int main() {
14763 ; return 0; }
14765 if { (eval echo configure:14766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14766 rm -rf conftest*
14767 glibcpp_cv_float_complex=ok
14768 else
14769 echo "configure: failed program was:" >&5
14770 cat conftest.$ac_ext >&5
14771 rm -rf conftest*
14772 glibcpp_cv_float_complex=buggy
14775 rm -f conftest*
14776 ac_ext=c
14777 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14778 ac_cpp='$CPP $CPPFLAGS'
14779 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14780 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14781 cross_compiling=$ac_cv_prog_cc_cross
14786 echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
14787 if test $glibcpp_cv_float_complex = buggy; then
14788 cat >> confdefs.h <<\EOF
14789 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
14796 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
14797 echo "configure:14798: checking for mbstate_t" >&5
14798 cat > conftest.$ac_ext <<EOF
14799 #line 14800 "configure"
14800 #include "confdefs.h"
14801 #include <wchar.h>
14802 int main() {
14803 mbstate_t teststate;
14804 ; return 0; }
14806 if { (eval echo configure:14807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14807 rm -rf conftest*
14808 have_mbstate_t=yes
14809 else
14810 echo "configure: failed program was:" >&5
14811 cat conftest.$ac_ext >&5
14812 rm -rf conftest*
14813 have_mbstate_t=no
14815 rm -f conftest*
14816 echo "$ac_t""$have_mbstate_t" 1>&6
14817 if test x"$have_mbstate_t" = xyes; then
14818 cat >> confdefs.h <<\EOF
14819 #define HAVE_MBSTATE_T 1
14824 for ac_hdr in wchar.h
14826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14828 echo "configure:14829: checking for $ac_hdr" >&5
14829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14830 echo $ac_n "(cached) $ac_c" 1>&6
14831 else
14832 cat > conftest.$ac_ext <<EOF
14833 #line 14834 "configure"
14834 #include "confdefs.h"
14835 #include <$ac_hdr>
14837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14838 { (eval echo configure:14839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14840 if test -z "$ac_err"; then
14841 rm -rf conftest*
14842 eval "ac_cv_header_$ac_safe=yes"
14843 else
14844 echo "$ac_err" >&5
14845 echo "configure: failed program was:" >&5
14846 cat conftest.$ac_ext >&5
14847 rm -rf conftest*
14848 eval "ac_cv_header_$ac_safe=no"
14850 rm -f conftest*
14852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14853 echo "$ac_t""yes" 1>&6
14854 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14855 cat >> confdefs.h <<EOF
14856 #define $ac_tr_hdr 1
14858 ac_has_wchar_h=yes
14859 else
14860 echo "$ac_t""no" 1>&6
14861 ac_has_wchar_h=no
14863 done
14865 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
14866 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
14867 echo "configure:14868: checking for wctype.h" >&5
14868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14869 echo $ac_n "(cached) $ac_c" 1>&6
14870 else
14871 cat > conftest.$ac_ext <<EOF
14872 #line 14873 "configure"
14873 #include "confdefs.h"
14874 #include <wctype.h>
14876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14877 { (eval echo configure:14878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14879 if test -z "$ac_err"; then
14880 rm -rf conftest*
14881 eval "ac_cv_header_$ac_safe=yes"
14882 else
14883 echo "$ac_err" >&5
14884 echo "configure: failed program was:" >&5
14885 cat conftest.$ac_ext >&5
14886 rm -rf conftest*
14887 eval "ac_cv_header_$ac_safe=no"
14889 rm -f conftest*
14891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14892 echo "$ac_t""yes" 1>&6
14893 ac_has_wctype_h=yes
14894 else
14895 echo "$ac_t""no" 1>&6
14896 ac_has_wctype_h=no
14900 if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
14901 && test x"$enable_c_mbchar" != xno; then
14903 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
14904 echo "configure:14905: checking for WCHAR_MIN and WCHAR_MAX" >&5
14905 cat > conftest.$ac_ext <<EOF
14906 #line 14907 "configure"
14907 #include "confdefs.h"
14908 #include <wchar.h>
14909 int main() {
14910 int i = WCHAR_MIN; int j = WCHAR_MAX;
14911 ; return 0; }
14913 if { (eval echo configure:14914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14914 rm -rf conftest*
14915 has_wchar_minmax=yes
14916 else
14917 echo "configure: failed program was:" >&5
14918 cat conftest.$ac_ext >&5
14919 rm -rf conftest*
14920 has_wchar_minmax=no
14922 rm -f conftest*
14923 echo "$ac_t""$has_wchar_minmax" 1>&6
14925 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
14926 echo "configure:14927: checking for WEOF" >&5
14927 cat > conftest.$ac_ext <<EOF
14928 #line 14929 "configure"
14929 #include "confdefs.h"
14931 #include <wchar.h>
14932 #include <stddef.h>
14933 int main() {
14934 wint_t i = WEOF;
14935 ; return 0; }
14937 if { (eval echo configure:14938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14938 rm -rf conftest*
14939 has_weof=yes
14940 else
14941 echo "configure: failed program was:" >&5
14942 cat conftest.$ac_ext >&5
14943 rm -rf conftest*
14944 has_weof=no
14946 rm -f conftest*
14947 echo "$ac_t""$has_weof" 1>&6
14949 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
14950 wcsrtombs mbsrtowcs
14952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14953 echo "configure:14954: checking for $ac_func" >&5
14954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14955 echo $ac_n "(cached) $ac_c" 1>&6
14956 else
14957 cat > conftest.$ac_ext <<EOF
14958 #line 14959 "configure"
14959 #include "confdefs.h"
14960 /* System header to define __stub macros and hopefully few prototypes,
14961 which can conflict with char $ac_func(); below. */
14962 #include <assert.h>
14963 /* Override any gcc2 internal prototype to avoid an error. */
14964 /* We use char because int might match the return type of a gcc2
14965 builtin and then its argument prototype would still apply. */
14966 char $ac_func();
14968 int main() {
14970 /* The GNU C library defines this for functions which it implements
14971 to always fail with ENOSYS. Some functions are actually named
14972 something starting with __ and the normal name is an alias. */
14973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14974 choke me
14975 #else
14976 $ac_func();
14977 #endif
14979 ; return 0; }
14981 if { (eval echo configure:14982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14982 rm -rf conftest*
14983 eval "ac_cv_func_$ac_func=yes"
14984 else
14985 echo "configure: failed program was:" >&5
14986 cat conftest.$ac_ext >&5
14987 rm -rf conftest*
14988 eval "ac_cv_func_$ac_func=no"
14990 rm -f conftest*
14993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14994 echo "$ac_t""yes" 1>&6
14995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14996 cat >> confdefs.h <<EOF
14997 #define $ac_tr_func 1
14999 ac_wfuncs=yes
15000 else
15001 echo "$ac_t""no" 1>&6
15002 ac_wfuncs=no
15004 done
15007 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
15008 echo "configure:15009: checking for ISO C99 wchar_t support" >&5
15009 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
15010 && test x"$ac_wfuncs" = xyes; then
15011 ac_isoC99_wchar_t=yes
15012 else
15013 ac_isoC99_wchar_t=no
15015 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
15017 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
15018 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
15019 echo "configure:15020: checking for iconv.h" >&5
15020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15021 echo $ac_n "(cached) $ac_c" 1>&6
15022 else
15023 cat > conftest.$ac_ext <<EOF
15024 #line 15025 "configure"
15025 #include "confdefs.h"
15026 #include <iconv.h>
15028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15029 { (eval echo configure:15030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15031 if test -z "$ac_err"; then
15032 rm -rf conftest*
15033 eval "ac_cv_header_$ac_safe=yes"
15034 else
15035 echo "$ac_err" >&5
15036 echo "configure: failed program was:" >&5
15037 cat conftest.$ac_ext >&5
15038 rm -rf conftest*
15039 eval "ac_cv_header_$ac_safe=no"
15041 rm -f conftest*
15043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15044 echo "$ac_t""yes" 1>&6
15045 ac_has_iconv_h=yes
15046 else
15047 echo "$ac_t""no" 1>&6
15048 ac_has_iconv_h=no
15051 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
15052 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
15053 echo "configure:15054: checking for langinfo.h" >&5
15054 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15055 echo $ac_n "(cached) $ac_c" 1>&6
15056 else
15057 cat > conftest.$ac_ext <<EOF
15058 #line 15059 "configure"
15059 #include "confdefs.h"
15060 #include <langinfo.h>
15062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15063 { (eval echo configure:15064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15065 if test -z "$ac_err"; then
15066 rm -rf conftest*
15067 eval "ac_cv_header_$ac_safe=yes"
15068 else
15069 echo "$ac_err" >&5
15070 echo "configure: failed program was:" >&5
15071 cat conftest.$ac_ext >&5
15072 rm -rf conftest*
15073 eval "ac_cv_header_$ac_safe=no"
15075 rm -f conftest*
15077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15078 echo "$ac_t""yes" 1>&6
15079 ac_has_langinfo_h=yes
15080 else
15081 echo "$ac_t""no" 1>&6
15082 ac_has_langinfo_h=no
15086 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
15087 echo "configure:15088: checking for iconv in -liconv" >&5
15088 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
15089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15090 echo $ac_n "(cached) $ac_c" 1>&6
15091 else
15092 ac_save_LIBS="$LIBS"
15093 LIBS="-liconv $LIBS"
15094 cat > conftest.$ac_ext <<EOF
15095 #line 15096 "configure"
15096 #include "confdefs.h"
15097 /* Override any gcc2 internal prototype to avoid an error. */
15098 /* We use char because int might match the return type of a gcc2
15099 builtin and then its argument prototype would still apply. */
15100 char iconv();
15102 int main() {
15103 iconv()
15104 ; return 0; }
15106 if { (eval echo configure:15107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15107 rm -rf conftest*
15108 eval "ac_cv_lib_$ac_lib_var=yes"
15109 else
15110 echo "configure: failed program was:" >&5
15111 cat conftest.$ac_ext >&5
15112 rm -rf conftest*
15113 eval "ac_cv_lib_$ac_lib_var=no"
15115 rm -f conftest*
15116 LIBS="$ac_save_LIBS"
15119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15120 echo "$ac_t""yes" 1>&6
15121 libiconv="-liconv"
15122 else
15123 echo "$ac_t""no" 1>&6
15126 ac_save_LIBS="$LIBS"
15127 LIBS="$LIBS $libiconv"
15129 for ac_func in iconv_open iconv_close iconv nl_langinfo
15131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15132 echo "configure:15133: checking for $ac_func" >&5
15133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15134 echo $ac_n "(cached) $ac_c" 1>&6
15135 else
15136 cat > conftest.$ac_ext <<EOF
15137 #line 15138 "configure"
15138 #include "confdefs.h"
15139 /* System header to define __stub macros and hopefully few prototypes,
15140 which can conflict with char $ac_func(); below. */
15141 #include <assert.h>
15142 /* Override any gcc2 internal prototype to avoid an error. */
15143 /* We use char because int might match the return type of a gcc2
15144 builtin and then its argument prototype would still apply. */
15145 char $ac_func();
15147 int main() {
15149 /* The GNU C library defines this for functions which it implements
15150 to always fail with ENOSYS. Some functions are actually named
15151 something starting with __ and the normal name is an alias. */
15152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15153 choke me
15154 #else
15155 $ac_func();
15156 #endif
15158 ; return 0; }
15160 if { (eval echo configure:15161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15161 rm -rf conftest*
15162 eval "ac_cv_func_$ac_func=yes"
15163 else
15164 echo "configure: failed program was:" >&5
15165 cat conftest.$ac_ext >&5
15166 rm -rf conftest*
15167 eval "ac_cv_func_$ac_func=no"
15169 rm -f conftest*
15172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15173 echo "$ac_t""yes" 1>&6
15174 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15175 cat >> confdefs.h <<EOF
15176 #define $ac_tr_func 1
15179 ac_XPG2funcs=yes
15180 else
15181 echo "$ac_t""no" 1>&6
15182 ac_XPG2funcs=no
15184 done
15187 LIBS="$ac_save_LIBS"
15189 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
15190 echo "configure:15191: checking for XPG2 wchar_t support" >&5
15191 if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
15192 && test x"$ac_XPG2funcs" = xyes; then
15193 ac_XPG2_wchar_t=yes
15194 else
15195 ac_XPG2_wchar_t=no
15197 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
15199 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
15200 echo "configure:15201: checking for enabled wchar_t specializations" >&5
15201 if test x"$ac_isoC99_wchar_t" = xyes \
15202 && test x"$ac_XPG2_wchar_t" = xyes; then
15203 cat >> confdefs.h <<\EOF
15204 #define _GLIBCPP_USE_WCHAR_T 1
15207 echo "$ac_t"""yes"" 1>&6
15208 else
15209 echo "$ac_t"""no"" 1>&6
15211 else
15212 echo "configure: warning: wchar_t support disabled." 1>&2
15216 ac_test_CXXFLAGS="${CXXFLAGS+set}"
15217 ac_save_CXXFLAGS="$CXXFLAGS"
15218 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
15220 for ac_func in strtof
15222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15223 echo "configure:15224: checking for $ac_func" >&5
15224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15225 echo $ac_n "(cached) $ac_c" 1>&6
15226 else
15227 cat > conftest.$ac_ext <<EOF
15228 #line 15229 "configure"
15229 #include "confdefs.h"
15230 /* System header to define __stub macros and hopefully few prototypes,
15231 which can conflict with char $ac_func(); below. */
15232 #include <assert.h>
15233 /* Override any gcc2 internal prototype to avoid an error. */
15234 /* We use char because int might match the return type of a gcc2
15235 builtin and then its argument prototype would still apply. */
15236 char $ac_func();
15238 int main() {
15240 /* The GNU C library defines this for functions which it implements
15241 to always fail with ENOSYS. Some functions are actually named
15242 something starting with __ and the normal name is an alias. */
15243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15244 choke me
15245 #else
15246 $ac_func();
15247 #endif
15249 ; return 0; }
15251 if { (eval echo configure:15252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15252 rm -rf conftest*
15253 eval "ac_cv_func_$ac_func=yes"
15254 else
15255 echo "configure: failed program was:" >&5
15256 cat conftest.$ac_ext >&5
15257 rm -rf conftest*
15258 eval "ac_cv_func_$ac_func=no"
15260 rm -f conftest*
15263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15264 echo "$ac_t""yes" 1>&6
15265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15266 cat >> confdefs.h <<EOF
15267 #define $ac_tr_func 1
15270 else
15271 echo "$ac_t""no" 1>&6
15273 done
15276 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
15277 echo "configure:15278: checking for strtold declaration" >&5
15278 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
15279 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
15280 echo $ac_n "(cached) $ac_c" 1>&6
15281 else
15284 ac_ext=C
15285 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15286 ac_cpp='$CXXCPP $CPPFLAGS'
15287 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15288 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15289 cross_compiling=$ac_cv_prog_cxx_cross
15291 cat > conftest.$ac_ext <<EOF
15292 #line 15293 "configure"
15293 #include "confdefs.h"
15294 #include <stdlib.h>
15295 int main() {
15296 strtold(0, 0);
15297 ; return 0; }
15299 if { (eval echo configure:15300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15300 rm -rf conftest*
15301 glibcpp_cv_func_strtold_use=yes
15302 else
15303 echo "configure: failed program was:" >&5
15304 cat conftest.$ac_ext >&5
15305 rm -rf conftest*
15306 glibcpp_cv_func_strtold_use=no
15308 rm -f conftest*
15309 ac_ext=c
15310 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15311 ac_cpp='$CPP $CPPFLAGS'
15312 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15313 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15314 cross_compiling=$ac_cv_prog_cc_cross
15320 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
15321 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
15322 for ac_func in strtold
15324 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15325 echo "configure:15326: checking for $ac_func" >&5
15326 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15327 echo $ac_n "(cached) $ac_c" 1>&6
15328 else
15329 cat > conftest.$ac_ext <<EOF
15330 #line 15331 "configure"
15331 #include "confdefs.h"
15332 /* System header to define __stub macros and hopefully few prototypes,
15333 which can conflict with char $ac_func(); below. */
15334 #include <assert.h>
15335 /* Override any gcc2 internal prototype to avoid an error. */
15336 /* We use char because int might match the return type of a gcc2
15337 builtin and then its argument prototype would still apply. */
15338 char $ac_func();
15340 int main() {
15342 /* The GNU C library defines this for functions which it implements
15343 to always fail with ENOSYS. Some functions are actually named
15344 something starting with __ and the normal name is an alias. */
15345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15346 choke me
15347 #else
15348 $ac_func();
15349 #endif
15351 ; return 0; }
15353 if { (eval echo configure:15354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15354 rm -rf conftest*
15355 eval "ac_cv_func_$ac_func=yes"
15356 else
15357 echo "configure: failed program was:" >&5
15358 cat conftest.$ac_ext >&5
15359 rm -rf conftest*
15360 eval "ac_cv_func_$ac_func=no"
15362 rm -f conftest*
15365 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15366 echo "$ac_t""yes" 1>&6
15367 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15368 cat >> confdefs.h <<EOF
15369 #define $ac_tr_func 1
15372 else
15373 echo "$ac_t""no" 1>&6
15375 done
15380 CXXFLAGS="$ac_save_CXXFLAGS"
15383 cat > conftest.$ac_ext <<EOF
15384 #line 15385 "configure"
15385 #include "confdefs.h"
15387 #include <setjmp.h>
15389 int main() {
15390 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
15391 ; return 0; }
15393 if { (eval echo configure:15394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15394 rm -rf conftest*
15395 cat >> confdefs.h <<\EOF
15396 #define HAVE_SIGSETJMP 1
15399 else
15400 echo "configure: failed program was:" >&5
15401 cat conftest.$ac_ext >&5
15403 rm -f conftest*
15405 for ac_hdr in unistd.h
15407 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15408 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15409 echo "configure:15410: checking for $ac_hdr" >&5
15410 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15411 echo $ac_n "(cached) $ac_c" 1>&6
15412 else
15413 cat > conftest.$ac_ext <<EOF
15414 #line 15415 "configure"
15415 #include "confdefs.h"
15416 #include <$ac_hdr>
15418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15419 { (eval echo configure:15420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15421 if test -z "$ac_err"; then
15422 rm -rf conftest*
15423 eval "ac_cv_header_$ac_safe=yes"
15424 else
15425 echo "$ac_err" >&5
15426 echo "configure: failed program was:" >&5
15427 cat conftest.$ac_ext >&5
15428 rm -rf conftest*
15429 eval "ac_cv_header_$ac_safe=no"
15431 rm -f conftest*
15433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15434 echo "$ac_t""yes" 1>&6
15435 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15436 cat >> confdefs.h <<EOF
15437 #define $ac_tr_hdr 1
15440 else
15441 echo "$ac_t""no" 1>&6
15443 done
15445 for ac_func in getpagesize
15447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15448 echo "configure:15449: checking for $ac_func" >&5
15449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15450 echo $ac_n "(cached) $ac_c" 1>&6
15451 else
15452 cat > conftest.$ac_ext <<EOF
15453 #line 15454 "configure"
15454 #include "confdefs.h"
15455 /* System header to define __stub macros and hopefully few prototypes,
15456 which can conflict with char $ac_func(); below. */
15457 #include <assert.h>
15458 /* Override any gcc2 internal prototype to avoid an error. */
15459 /* We use char because int might match the return type of a gcc2
15460 builtin and then its argument prototype would still apply. */
15461 char $ac_func();
15463 int main() {
15465 /* The GNU C library defines this for functions which it implements
15466 to always fail with ENOSYS. Some functions are actually named
15467 something starting with __ and the normal name is an alias. */
15468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15469 choke me
15470 #else
15471 $ac_func();
15472 #endif
15474 ; return 0; }
15476 if { (eval echo configure:15477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15477 rm -rf conftest*
15478 eval "ac_cv_func_$ac_func=yes"
15479 else
15480 echo "configure: failed program was:" >&5
15481 cat conftest.$ac_ext >&5
15482 rm -rf conftest*
15483 eval "ac_cv_func_$ac_func=no"
15485 rm -f conftest*
15488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15489 echo "$ac_t""yes" 1>&6
15490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15491 cat >> confdefs.h <<EOF
15492 #define $ac_tr_func 1
15495 else
15496 echo "$ac_t""no" 1>&6
15498 done
15500 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
15501 echo "configure:15502: checking for working mmap" >&5
15502 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
15503 echo $ac_n "(cached) $ac_c" 1>&6
15504 else
15505 if test "$cross_compiling" = yes; then
15506 ac_cv_func_mmap_fixed_mapped=no
15507 else
15508 cat > conftest.$ac_ext <<EOF
15509 #line 15510 "configure"
15510 #include "confdefs.h"
15512 /* Thanks to Mike Haertel and Jim Avera for this test.
15513 Here is a matrix of mmap possibilities:
15514 mmap private not fixed
15515 mmap private fixed at somewhere currently unmapped
15516 mmap private fixed at somewhere already mapped
15517 mmap shared not fixed
15518 mmap shared fixed at somewhere currently unmapped
15519 mmap shared fixed at somewhere already mapped
15520 For private mappings, we should verify that changes cannot be read()
15521 back from the file, nor mmap's back from the file at a different
15522 address. (There have been systems where private was not correctly
15523 implemented like the infamous i386 svr4.0, and systems where the
15524 VM page cache was not coherent with the filesystem buffer cache
15525 like early versions of FreeBSD and possibly contemporary NetBSD.)
15526 For shared mappings, we should conversely verify that changes get
15527 propogated back to all the places they're supposed to be.
15529 Grep wants private fixed already mapped.
15530 The main things grep needs to know about mmap are:
15531 * does it exist and is it safe to write into the mmap'd area
15532 * how to use it (BSD variants) */
15533 #include <sys/types.h>
15534 #include <fcntl.h>
15535 #include <sys/mman.h>
15537 /* This mess was copied from the GNU getpagesize.h. */
15538 #ifndef HAVE_GETPAGESIZE
15539 # ifdef HAVE_UNISTD_H
15540 # include <unistd.h>
15541 # endif
15543 /* Assume that all systems that can run configure have sys/param.h. */
15544 # ifndef HAVE_SYS_PARAM_H
15545 # define HAVE_SYS_PARAM_H 1
15546 # endif
15548 # ifdef _SC_PAGESIZE
15549 # define getpagesize() sysconf(_SC_PAGESIZE)
15550 # else /* no _SC_PAGESIZE */
15551 # ifdef HAVE_SYS_PARAM_H
15552 # include <sys/param.h>
15553 # ifdef EXEC_PAGESIZE
15554 # define getpagesize() EXEC_PAGESIZE
15555 # else /* no EXEC_PAGESIZE */
15556 # ifdef NBPG
15557 # define getpagesize() NBPG * CLSIZE
15558 # ifndef CLSIZE
15559 # define CLSIZE 1
15560 # endif /* no CLSIZE */
15561 # else /* no NBPG */
15562 # ifdef NBPC
15563 # define getpagesize() NBPC
15564 # else /* no NBPC */
15565 # ifdef PAGESIZE
15566 # define getpagesize() PAGESIZE
15567 # endif /* PAGESIZE */
15568 # endif /* no NBPC */
15569 # endif /* no NBPG */
15570 # endif /* no EXEC_PAGESIZE */
15571 # else /* no HAVE_SYS_PARAM_H */
15572 # define getpagesize() 8192 /* punt totally */
15573 # endif /* no HAVE_SYS_PARAM_H */
15574 # endif /* no _SC_PAGESIZE */
15576 #endif /* no HAVE_GETPAGESIZE */
15578 #ifdef __cplusplus
15579 extern "C" { void *malloc(unsigned); }
15580 #else
15581 char *malloc();
15582 #endif
15585 main()
15587 char *data, *data2, *data3;
15588 int i, pagesize;
15589 int fd;
15591 pagesize = getpagesize();
15594 * First, make a file with some known garbage in it.
15596 data = malloc(pagesize);
15597 if (!data)
15598 exit(1);
15599 for (i = 0; i < pagesize; ++i)
15600 *(data + i) = rand();
15601 umask(0);
15602 fd = creat("conftestmmap", 0600);
15603 if (fd < 0)
15604 exit(1);
15605 if (write(fd, data, pagesize) != pagesize)
15606 exit(1);
15607 close(fd);
15610 * Next, try to mmap the file at a fixed address which
15611 * already has something else allocated at it. If we can,
15612 * also make sure that we see the same garbage.
15614 fd = open("conftestmmap", O_RDWR);
15615 if (fd < 0)
15616 exit(1);
15617 data2 = malloc(2 * pagesize);
15618 if (!data2)
15619 exit(1);
15620 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
15621 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
15622 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15623 exit(1);
15624 for (i = 0; i < pagesize; ++i)
15625 if (*(data + i) != *(data2 + i))
15626 exit(1);
15629 * Finally, make sure that changes to the mapped area
15630 * do not percolate back to the file as seen by read().
15631 * (This is a bug on some variants of i386 svr4.0.)
15633 for (i = 0; i < pagesize; ++i)
15634 *(data2 + i) = *(data2 + i) + 1;
15635 data3 = malloc(pagesize);
15636 if (!data3)
15637 exit(1);
15638 if (read(fd, data3, pagesize) != pagesize)
15639 exit(1);
15640 for (i = 0; i < pagesize; ++i)
15641 if (*(data + i) != *(data3 + i))
15642 exit(1);
15643 close(fd);
15644 unlink("conftestmmap");
15645 exit(0);
15649 if { (eval echo configure:15650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15650 then
15651 ac_cv_func_mmap_fixed_mapped=yes
15652 else
15653 echo "configure: failed program was:" >&5
15654 cat conftest.$ac_ext >&5
15655 rm -fr conftest*
15656 ac_cv_func_mmap_fixed_mapped=no
15658 rm -fr conftest*
15663 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
15664 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15665 cat >> confdefs.h <<\EOF
15666 #define HAVE_MMAP 1
15673 # Now that ctype is determined for all possible targets, we can do this...
15681 if test "$NULL_TARGET" = yes; then
15682 NULL_TARGET_TRUE=
15683 NULL_TARGET_FALSE='#'
15684 else
15685 NULL_TARGET_TRUE='#'
15686 NULL_TARGET_FALSE=
15690 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
15691 NATIVE_TRUE=
15692 NATIVE_FALSE='#'
15693 else
15694 NATIVE_TRUE='#'
15695 NATIVE_FALSE=
15699 if test "$CANADIAN" = yes; then
15700 CANADIAN_TRUE=
15701 CANADIAN_FALSE='#'
15702 else
15703 CANADIAN_TRUE='#'
15704 CANADIAN_FALSE=
15707 cat > confcache <<\EOF
15708 # This file is a shell script that caches the results of configure
15709 # tests run on this system so they can be shared between configure
15710 # scripts and configure runs. It is not useful on other systems.
15711 # If it contains results you don't want to keep, you may remove or edit it.
15713 # By default, configure uses ./config.cache as the cache file,
15714 # creating it if it does not exist already. You can give configure
15715 # the --cache-file=FILE option to use a different cache file; that is
15716 # what configure does when it calls configure scripts in
15717 # subdirectories, so they share the cache.
15718 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15719 # config.status only pays attention to the cache file if you give it the
15720 # --recheck option to rerun configure.
15723 # The following way of writing the cache mishandles newlines in values,
15724 # but we know of no workaround that is simple, portable, and efficient.
15725 # So, don't put newlines in cache variables' values.
15726 # Ultrix sh set writes to stderr and can't be redirected directly,
15727 # and sets the high bit in the cache file unless we assign to the vars.
15728 (set) 2>&1 |
15729 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15730 *ac_space=\ *)
15731 # `set' does not quote correctly, so add quotes (double-quote substitution
15732 # turns \\\\ into \\, and sed turns \\ into \).
15733 sed -n \
15734 -e "s/'/'\\\\''/g" \
15735 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15738 # `set' quotes correctly as required by POSIX, so do not add quotes.
15739 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15741 esac >> confcache
15742 if cmp -s $cache_file confcache; then
15744 else
15745 if test -w $cache_file; then
15746 echo "updating cache $cache_file"
15747 cat confcache > $cache_file
15748 else
15749 echo "not updating unwritable cache $cache_file"
15752 rm -f confcache
15755 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
15756 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
15757 echo "configure:15758: checking for locale.h" >&5
15758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15759 echo $ac_n "(cached) $ac_c" 1>&6
15760 else
15761 cat > conftest.$ac_ext <<EOF
15762 #line 15763 "configure"
15763 #include "confdefs.h"
15764 #include <locale.h>
15766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15767 { (eval echo configure:15768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15769 if test -z "$ac_err"; then
15770 rm -rf conftest*
15771 eval "ac_cv_header_$ac_safe=yes"
15772 else
15773 echo "$ac_err" >&5
15774 echo "configure: failed program was:" >&5
15775 cat conftest.$ac_ext >&5
15776 rm -rf conftest*
15777 eval "ac_cv_header_$ac_safe=no"
15779 rm -f conftest*
15781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15782 echo "$ac_t""yes" 1>&6
15784 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
15785 echo "configure:15786: checking for LC_MESSAGES" >&5
15786 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
15787 echo $ac_n "(cached) $ac_c" 1>&6
15788 else
15789 cat > conftest.$ac_ext <<EOF
15790 #line 15791 "configure"
15791 #include "confdefs.h"
15792 #include <locale.h>
15793 int main() {
15794 return LC_MESSAGES
15795 ; return 0; }
15797 if { (eval echo configure:15798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15798 rm -rf conftest*
15799 ac_cv_val_LC_MESSAGES=yes
15800 else
15801 echo "configure: failed program was:" >&5
15802 cat conftest.$ac_ext >&5
15803 rm -rf conftest*
15804 ac_cv_val_LC_MESSAGES=no
15806 rm -f conftest*
15809 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
15810 if test $ac_cv_val_LC_MESSAGES = yes; then
15811 cat >> confdefs.h <<\EOF
15812 #define HAVE_LC_MESSAGES 1
15817 else
15818 echo "$ac_t""no" 1>&6
15823 if test "${multilib}" = "yes"; then
15824 multilib_arg="--enable-multilib"
15825 else
15826 multilib_arg=
15830 # Generate the various Makefiles, include files, and scripts.
15832 # Needed so that g++ can find the correct include subdir automatically.
15833 INTERFACE=v3
15835 # Export all the install information
15838 glibcpp_toolexecdir=no
15839 glibcpp_toolexeclibdir=no
15841 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
15842 echo "configure:15843: checking for interface version number" >&5
15843 libstdcxx_interface=$INTERFACE
15844 echo "$ac_t""$libstdcxx_interface" 1>&6
15846 # Process the option --with-gxx-include-dir=<path to include-files directory>
15847 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
15848 echo "configure:15849: checking for --with-gxx-include-dir" >&5
15849 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
15850 if test "${with_gxx_include_dir+set}" = set; then
15851 withval="$with_gxx_include_dir"
15852 case "${withval}" in
15853 yes)
15854 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
15855 gxx_include_dir=no
15858 gxx_include_dir=no
15861 gxx_include_dir=${withval}
15863 esac
15864 else
15865 gxx_include_dir=no
15868 echo "$ac_t""$gxx_include_dir" 1>&6
15870 # Process the option "--enable-version-specific-runtime-libs"
15871 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
15872 echo "configure:15873: checking for --enable-version-specific-runtime-libs" >&5
15873 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15874 if test "${enable_version_specific_runtime_libs+set}" = set; then
15875 enableval="$enable_version_specific_runtime_libs"
15876 version_specific_libs=yes
15877 # Need the gcc compiler version to know where to install libraries
15878 # and header files if --enable-version-specific-runtime-libs option
15879 # is selected.
15880 gcc_version_trigger=${srcdir}/../gcc/version.c
15881 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
15882 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
15883 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
15884 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
15885 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}
15887 else
15888 version_specific_libs=no
15891 echo "$ac_t""$version_specific_libs" 1>&6
15893 # Default case for install directory for include files.
15894 if test x"$version_specific_libs" = x"no" \
15895 && test x"$gxx_include_dir" = x"no"; then
15896 gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
15899 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
15900 # Install a library built with a cross compiler in tooldir, not libdir.
15901 if test x"$glibcpp_toolexecdir" = x"no"; then
15902 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15903 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
15904 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
15905 else
15906 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
15907 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
15911 echo $ac_n "checking for install location""... $ac_c" 1>&6
15912 echo "configure:15913: checking for install location" >&5
15913 echo "$ac_t""$gxx_include_dir" 1>&6
15920 # Export all the include and flag information to makefiles.
15922 # Root level of the include sources.
15923 GLIBCPP_INCLUDE_DIR='$(top_srcdir)/include'
15925 # Can either use include/c or include/c_std to grab "C" headers. This
15926 # variable is set to the include directory currently in use.
15927 # set with C_INCLUDE_DIR in GLIBCPP_ENABLE_CHEADERS
15929 # Passed down for canadian crosses.
15930 if test x"$CANADIAN" = xyes; then
15931 TOPLEVEL_INCLUDES='-I$(includedir)'
15934 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
15936 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
15938 #if GLIBCPP_NEED_LIBIO
15939 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
15940 #else
15941 #LIBIO_INCLUDES='-I$(top_srcdir)/libio'
15942 #endif
15944 #if GLIBCPP_USE_CSHADOW
15945 # CSHADOW_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR) \
15946 # -I$(top_blddir)/cshadow'
15947 #else
15948 CSTD_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR)'
15949 #endif
15951 # Now, export this to all the little Makefiles....
15960 # Optimization flags that are probably a good idea for thrill-seekers. Just
15961 # uncomment the lines below and make, everything else is ready to go...
15962 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
15963 OPTIMIZE_CXXFLAGS=
15966 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
15970 # This should be done by mkincludedir, but hack around it now.
15971 blddir=`pwd`
15972 echo "checking for $blddir/include"
15974 if test ! -d "$blddir/include"; then
15975 mkdir "$blddir/include"
15978 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
15979 # and libsupc++/Makefile.am so that multilib installs will end up
15980 # installed in the correct place. To work around this not being passed
15981 # down from config-ml.in -> top_srcdir/Makefile.am ->
15982 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
15983 trap '' 1 2 15
15984 cat > confcache <<\EOF
15985 # This file is a shell script that caches the results of configure
15986 # tests run on this system so they can be shared between configure
15987 # scripts and configure runs. It is not useful on other systems.
15988 # If it contains results you don't want to keep, you may remove or edit it.
15990 # By default, configure uses ./config.cache as the cache file,
15991 # creating it if it does not exist already. You can give configure
15992 # the --cache-file=FILE option to use a different cache file; that is
15993 # what configure does when it calls configure scripts in
15994 # subdirectories, so they share the cache.
15995 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15996 # config.status only pays attention to the cache file if you give it the
15997 # --recheck option to rerun configure.
16000 # The following way of writing the cache mishandles newlines in values,
16001 # but we know of no workaround that is simple, portable, and efficient.
16002 # So, don't put newlines in cache variables' values.
16003 # Ultrix sh set writes to stderr and can't be redirected directly,
16004 # and sets the high bit in the cache file unless we assign to the vars.
16005 (set) 2>&1 |
16006 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16007 *ac_space=\ *)
16008 # `set' does not quote correctly, so add quotes (double-quote substitution
16009 # turns \\\\ into \\, and sed turns \\ into \).
16010 sed -n \
16011 -e "s/'/'\\\\''/g" \
16012 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16015 # `set' quotes correctly as required by POSIX, so do not add quotes.
16016 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16018 esac >> confcache
16019 if cmp -s $cache_file confcache; then
16021 else
16022 if test -w $cache_file; then
16023 echo "updating cache $cache_file"
16024 cat confcache > $cache_file
16025 else
16026 echo "not updating unwritable cache $cache_file"
16029 rm -f confcache
16031 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16033 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16034 # Let make expand exec_prefix.
16035 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16037 # Any assignment to VPATH causes Sun make to only execute
16038 # the first set of double-colon rules, so remove it if not needed.
16039 # If there is a colon in the path, we need to keep it.
16040 if test "x$srcdir" = x.; then
16041 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16044 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16046 DEFS=-DHAVE_CONFIG_H
16048 # Without the "./", some shells look in PATH for config.status.
16049 : ${CONFIG_STATUS=./config.status}
16051 echo creating $CONFIG_STATUS
16052 rm -f $CONFIG_STATUS
16053 cat > $CONFIG_STATUS <<EOF
16054 #! /bin/sh
16055 # Generated automatically by configure.
16056 # Run this file to recreate the current configuration.
16057 # This directory was configured as follows,
16058 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16060 # $0 $ac_configure_args
16062 # Compiler output produced by configure, useful for debugging
16063 # configure, is in ./config.log if it exists.
16065 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16066 for ac_option
16068 case "\$ac_option" in
16069 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16070 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16071 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16072 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16073 echo "$CONFIG_STATUS generated by autoconf version 2.13"
16074 exit 0 ;;
16075 -help | --help | --hel | --he | --h)
16076 echo "\$ac_cs_usage"; exit 0 ;;
16077 *) echo "\$ac_cs_usage"; exit 1 ;;
16078 esac
16079 done
16081 ac_given_srcdir=$srcdir
16082 ac_given_INSTALL="$INSTALL"
16084 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
16086 cat >> $CONFIG_STATUS <<EOF
16088 # Protect against being on the right side of a sed subst in config.status.
16089 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16090 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16091 $ac_vpsub
16092 $extrasub
16093 s%@SHELL@%$SHELL%g
16094 s%@CFLAGS@%$CFLAGS%g
16095 s%@CPPFLAGS@%$CPPFLAGS%g
16096 s%@CXXFLAGS@%$CXXFLAGS%g
16097 s%@FFLAGS@%$FFLAGS%g
16098 s%@DEFS@%$DEFS%g
16099 s%@LDFLAGS@%$LDFLAGS%g
16100 s%@LIBS@%$LIBS%g
16101 s%@exec_prefix@%$exec_prefix%g
16102 s%@prefix@%$prefix%g
16103 s%@program_transform_name@%$program_transform_name%g
16104 s%@bindir@%$bindir%g
16105 s%@sbindir@%$sbindir%g
16106 s%@libexecdir@%$libexecdir%g
16107 s%@datadir@%$datadir%g
16108 s%@sysconfdir@%$sysconfdir%g
16109 s%@sharedstatedir@%$sharedstatedir%g
16110 s%@localstatedir@%$localstatedir%g
16111 s%@libdir@%$libdir%g
16112 s%@includedir@%$includedir%g
16113 s%@oldincludedir@%$oldincludedir%g
16114 s%@infodir@%$infodir%g
16115 s%@mandir@%$mandir%g
16116 s%@toplevel_srcdir@%$toplevel_srcdir%g
16117 s%@host@%$host%g
16118 s%@host_alias@%$host_alias%g
16119 s%@host_cpu@%$host_cpu%g
16120 s%@host_vendor@%$host_vendor%g
16121 s%@host_os@%$host_os%g
16122 s%@target@%$target%g
16123 s%@target_alias@%$target_alias%g
16124 s%@target_cpu@%$target_cpu%g
16125 s%@target_vendor@%$target_vendor%g
16126 s%@target_os@%$target_os%g
16127 s%@build@%$build%g
16128 s%@build_alias@%$build_alias%g
16129 s%@build_cpu@%$build_cpu%g
16130 s%@build_vendor@%$build_vendor%g
16131 s%@build_os@%$build_os%g
16132 s%@glibcpp_basedir@%$glibcpp_basedir%g
16133 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16134 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16135 s%@INSTALL_DATA@%$INSTALL_DATA%g
16136 s%@PACKAGE@%$PACKAGE%g
16137 s%@VERSION@%$VERSION%g
16138 s%@ACLOCAL@%$ACLOCAL%g
16139 s%@AUTOCONF@%$AUTOCONF%g
16140 s%@AUTOMAKE@%$AUTOMAKE%g
16141 s%@AUTOHEADER@%$AUTOHEADER%g
16142 s%@MAKEINFO@%$MAKEINFO%g
16143 s%@SET_MAKE@%$SET_MAKE%g
16144 s%@CC@%$CC%g
16145 s%@CXX_libstdcxx@%$CXX_libstdcxx%g
16146 s%@CXX@%$CXX%g
16147 s%@AS@%$AS%g
16148 s%@AR@%$AR%g
16149 s%@RANLIB@%$RANLIB%g
16150 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
16151 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
16152 s%@MAINT@%$MAINT%g
16153 s%@EXEEXT@%$EXEEXT%g
16154 s%@LN_S@%$LN_S%g
16155 s%@OBJEXT@%$OBJEXT%g
16156 s%@STRIP@%$STRIP%g
16157 s%@LIBTOOL@%$LIBTOOL%g
16158 s%@CXXCPP@%$CXXCPP%g
16159 s%@enable_shared@%$enable_shared%g
16160 s%@enable_static@%$enable_static%g
16161 s%@ifGNUmake@%$ifGNUmake%g
16162 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
16163 s%@CPP@%$CPP%g
16164 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
16165 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
16166 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
16167 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
16168 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
16169 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
16170 s%@libio_la@%$libio_la%g
16171 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
16172 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
16173 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
16174 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
16175 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
16176 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
16177 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
16178 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
16179 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
16180 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
16181 s%@WERROR@%$WERROR%g
16182 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
16183 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
16184 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
16185 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
16186 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
16187 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
16188 s%@gxx_include_dir@%$gxx_include_dir%g
16189 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
16190 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
16191 s%@GLIBCPP_INCLUDE_DIR@%$GLIBCPP_INCLUDE_DIR%g
16192 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
16193 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
16194 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
16195 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
16196 s%@CSTD_INCLUDES@%$CSTD_INCLUDES%g
16197 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
16198 s%@WARN_FLAGS@%$WARN_FLAGS%g
16200 CEOF
16203 cat >> $CONFIG_STATUS <<\EOF
16205 # Split the substitutions into bite-sized pieces for seds with
16206 # small command number limits, like on Digital OSF/1 and HP-UX.
16207 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16208 ac_file=1 # Number of current file.
16209 ac_beg=1 # First line for current file.
16210 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16211 ac_more_lines=:
16212 ac_sed_cmds=""
16213 while $ac_more_lines; do
16214 if test $ac_beg -gt 1; then
16215 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16216 else
16217 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16219 if test ! -s conftest.s$ac_file; then
16220 ac_more_lines=false
16221 rm -f conftest.s$ac_file
16222 else
16223 if test -z "$ac_sed_cmds"; then
16224 ac_sed_cmds="sed -f conftest.s$ac_file"
16225 else
16226 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16228 ac_file=`expr $ac_file + 1`
16229 ac_beg=$ac_end
16230 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16232 done
16233 if test -z "$ac_sed_cmds"; then
16234 ac_sed_cmds=cat
16238 cat >> $CONFIG_STATUS <<EOF
16240 CONFIG_FILES=\${CONFIG_FILES-"tests_flags mkcheck Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile"}
16242 cat >> $CONFIG_STATUS <<\EOF
16243 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16244 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16245 case "$ac_file" in
16246 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16247 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16248 *) ac_file_in="${ac_file}.in" ;;
16249 esac
16251 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16253 # Remove last slash and all that follows it. Not all systems have dirname.
16254 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16255 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16256 # The file is in a subdirectory.
16257 test ! -d "$ac_dir" && mkdir "$ac_dir"
16258 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16259 # A "../" for each directory in $ac_dir_suffix.
16260 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16261 else
16262 ac_dir_suffix= ac_dots=
16265 case "$ac_given_srcdir" in
16266 .) srcdir=.
16267 if test -z "$ac_dots"; then top_srcdir=.
16268 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16269 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16270 *) # Relative path.
16271 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16272 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16273 esac
16275 case "$ac_given_INSTALL" in
16276 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16277 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16278 esac
16280 echo creating "$ac_file"
16281 rm -f "$ac_file"
16282 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16283 case "$ac_file" in
16284 *Makefile*) ac_comsub="1i\\
16285 # $configure_input" ;;
16286 *) ac_comsub= ;;
16287 esac
16289 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16290 sed -e "$ac_comsub
16291 s%@configure_input@%$configure_input%g
16292 s%@srcdir@%$srcdir%g
16293 s%@top_srcdir@%$top_srcdir%g
16294 s%@INSTALL@%$INSTALL%g
16295 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16296 fi; done
16297 rm -f conftest.s*
16299 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16300 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16302 # ac_d sets the value in "#define NAME VALUE" lines.
16303 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16304 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16305 ac_dC='\3'
16306 ac_dD='%g'
16307 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16308 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16309 ac_uB='\([ ]\)%\1#\2define\3'
16310 ac_uC=' '
16311 ac_uD='\4%g'
16312 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16313 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16314 ac_eB='$%\1#\2define\3'
16315 ac_eC=' '
16316 ac_eD='%g'
16318 if test "${CONFIG_HEADERS+set}" != set; then
16320 cat >> $CONFIG_STATUS <<EOF
16321 CONFIG_HEADERS="config.h"
16323 cat >> $CONFIG_STATUS <<\EOF
16325 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16326 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16327 case "$ac_file" in
16328 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16329 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16330 *) ac_file_in="${ac_file}.in" ;;
16331 esac
16333 echo creating $ac_file
16335 rm -f conftest.frag conftest.in conftest.out
16336 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16337 cat $ac_file_inputs > conftest.in
16341 # Transform confdefs.h into a sed script conftest.vals that substitutes
16342 # the proper values into config.h.in to produce config.h. And first:
16343 # Protect against being on the right side of a sed subst in config.status.
16344 # Protect against being in an unquoted here document in config.status.
16345 rm -f conftest.vals
16346 cat > conftest.hdr <<\EOF
16347 s/[\\&%]/\\&/g
16348 s%[\\$`]%\\&%g
16349 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16350 s%ac_d%ac_u%gp
16351 s%ac_u%ac_e%gp
16353 sed -n -f conftest.hdr confdefs.h > conftest.vals
16354 rm -f conftest.hdr
16356 # This sed command replaces #undef with comments. This is necessary, for
16357 # example, in the case of _POSIX_SOURCE, which is predefined and required
16358 # on some systems where configure will not decide to define it.
16359 cat >> conftest.vals <<\EOF
16360 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16363 # Break up conftest.vals because some shells have a limit on
16364 # the size of here documents, and old seds have small limits too.
16366 rm -f conftest.tail
16367 while :
16369 ac_lines=`grep -c . conftest.vals`
16370 # grep -c gives empty output for an empty file on some AIX systems.
16371 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16372 # Write a limited-size here document to conftest.frag.
16373 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16374 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16375 echo 'CEOF
16376 sed -f conftest.frag conftest.in > conftest.out
16377 rm -f conftest.in
16378 mv conftest.out conftest.in
16379 ' >> $CONFIG_STATUS
16380 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16381 rm -f conftest.vals
16382 mv conftest.tail conftest.vals
16383 done
16384 rm -f conftest.vals
16386 cat >> $CONFIG_STATUS <<\EOF
16387 rm -f conftest.frag conftest.h
16388 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16389 cat conftest.in >> conftest.h
16390 rm -f conftest.in
16391 if cmp -s $ac_file conftest.h 2>/dev/null; then
16392 echo "$ac_file is unchanged"
16393 rm -f conftest.h
16394 else
16395 # Remove last slash and all that follows it. Not all systems have dirname.
16396 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16397 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16398 # The file is in a subdirectory.
16399 test ! -d "$ac_dir" && mkdir "$ac_dir"
16401 rm -f $ac_file
16402 mv conftest.h $ac_file
16404 fi; done
16408 cat >> $CONFIG_STATUS <<EOF
16409 ac_sources="$os_include_dir/bits/os_defines.h $CSTDIO_H $BASIC_FILE_H $BASIC_FILE_CC $CCODECVT_C $CLOCALE_H $CLOCALE_CC config/$THREADH $os_include_dir/bits/ctype_base.h $os_include_dir/bits/ctype_inline.h $os_include_dir/bits/ctype_noninline.h $ATOMICITYH/bits/atomicity.h"
16410 ac_dests="include/bits/os_defines.h include/bits/c++io.h include/bits/basic_file_model.h src/basic_file.cc libio/c_codecvt.c include/bits/c++locale.h src/c++locale.cc include/bits/c++threads.h \
16411 include/bits/ctype_base.h \
16412 include/bits/ctype_inline.h \
16413 include/bits/ctype_noninline.h include/bits/atomicity.h"
16416 cat >> $CONFIG_STATUS <<\EOF
16417 srcdir=$ac_given_srcdir
16418 while test -n "$ac_sources"; do
16419 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16420 set $ac_sources; ac_source=$1; shift; ac_sources=$*
16422 echo "linking $srcdir/$ac_source to $ac_dest"
16424 if test ! -r $srcdir/$ac_source; then
16425 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
16427 rm -f $ac_dest
16429 # Make relative symlinks.
16430 # Remove last slash and all that follows it. Not all systems have dirname.
16431 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
16432 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
16433 # The dest file is in a subdirectory.
16434 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
16435 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
16436 # A "../" for each directory in $ac_dest_dir_suffix.
16437 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
16438 else
16439 ac_dest_dir_suffix= ac_dots=
16442 case "$srcdir" in
16443 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
16444 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
16445 esac
16447 # Make a symlink if possible; otherwise try a hard link.
16448 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16449 ln $srcdir/$ac_source $ac_dest; then :
16450 else
16451 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
16453 done
16455 cat >> $CONFIG_STATUS <<EOF
16457 srcdir=${srcdir}
16458 host=${host}
16459 target=${target}
16460 with_multisubdir=${with_multisubdir}
16461 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16462 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16463 glibcpp_basedir=${glibcpp_basedir}
16464 CC="${CC}"
16465 CXX="${CXX}"
16468 cat >> $CONFIG_STATUS <<\EOF
16469 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
16470 if test -n "$CONFIG_FILES"; then
16471 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
16472 grep '^MULTISUBDIR =' Makefile >> src/Makefile
16473 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
16475 chmod +x tests_flags
16476 chmod +x mkcheck
16478 exit 0
16480 chmod +x $CONFIG_STATUS
16481 rm -fr confdefs* $ac_clean_files
16482 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16486 # Generate bits/c++config.h
16487 # NB: This must be the first generated file as others include it. . .
16488 $srcdir/mkc++config $blddir $srcdir
16490 # Generate bits/std_limits.h and src/limitsMEMBERS.cc
16491 if test ! -f stamp-limits; then
16492 $srcdir/mknumeric_limits $blddir $srcdir $xcompiling
16493 if test ! -f include/bits/std_limits.h; then
16494 echo "mknumeric_limits failed to execute properly: exiting"
16495 exit 1
16496 else
16497 touch stamp-limits
16502 # Sanity checking & User-visible messages.
16503 # Checks down here, otherwise they get scrolled off before
16504 # the user will notice.
16506 # Trying to get more people to read documentation. Possibly remove
16507 # check and warn all the time. There is no "informational" AC_MSG_
16508 # macro, so these are going to be printed even when --quiet/--silent
16509 # is given.
16510 if test ! -f stamp-sanity-warned; then
16511 touch stamp-sanity-warned
16512 echo ""
16513 echo "Please make certain that you read the installation information here:"
16514 echo " faster => ${srcdir}/docs/install.html"
16515 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
16516 echo ""
16517 echo "and the configuration information here:"
16518 echo " faster => ${srcdir}/docs/configopts.html"
16519 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
16520 echo ""
16521 echo "before proceeding with ${_cv_gnu_make_command}."
16522 echo ""