2002-06-28 Phil Edwards <pme@gcc.gnu.org>
[official-gcc.git] / libstdc++-v3 / configure
blobf6fa8264809f6b126bfabe32dba9158a9bf39bbc
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 --enable-multilib build hella library versions (default)"
16 ac_help="$ac_help
17 --with-target-subdir=SUBDIR
18 configuring in a subdirectory"
19 ac_help="$ac_help
20 --with-cross-host=HOST configuring with a cross compiler"
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-nls use Native Language Support (default)"
48 ac_help="$ac_help
49 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
50 ac_help="$ac_help
51 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
52 ac_help="$ac_help
53 --enable-long-long turns on 'long long' [default=yes]"
54 ac_help="$ac_help
55 --enable-cheaders construct "C" header files for g++ [default=c_std]"
56 ac_help="$ac_help
57 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
58 [default=none]"
59 ac_help="$ac_help
60 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
61 ac_help="$ac_help
62 --enable-libunwind-exceptions force use of libunwind for exceptions"
63 ac_help="$ac_help
64 --enable-concept-checks use Boost-derived template checks [default=no]"
65 ac_help="$ac_help
66 --enable-symvers=style enables symbol versioning of the shared library [default=yes]"
67 ac_help="$ac_help
68 --with-gxx-include-dir the installation directory for include files"
69 ac_help="$ac_help
70 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
75 build=NONE
76 cache_file=./config.cache
77 exec_prefix=NONE
78 host=NONE
79 no_create=
80 nonopt=NONE
81 no_recursion=
82 prefix=NONE
83 program_prefix=NONE
84 program_suffix=NONE
85 program_transform_name=s,x,x,
86 silent=
87 site=
88 srcdir=
89 target=NONE
90 verbose=
91 x_includes=NONE
92 x_libraries=NONE
93 bindir='${exec_prefix}/bin'
94 sbindir='${exec_prefix}/sbin'
95 libexecdir='${exec_prefix}/libexec'
96 datadir='${prefix}/share'
97 sysconfdir='${prefix}/etc'
98 sharedstatedir='${prefix}/com'
99 localstatedir='${prefix}/var'
100 libdir='${exec_prefix}/lib'
101 includedir='${prefix}/include'
102 oldincludedir='/usr/include'
103 infodir='${prefix}/info'
104 mandir='${prefix}/man'
106 # Initialize some other variables.
107 subdirs=
108 MFLAGS= MAKEFLAGS=
109 SHELL=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
111 ac_max_here_lines=12
113 ac_prev=
114 for ac_option
117 # If the previous option needs an argument, assign it.
118 if test -n "$ac_prev"; then
119 eval "$ac_prev=\$ac_option"
120 ac_prev=
121 continue
124 case "$ac_option" in
125 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 *) ac_optarg= ;;
127 esac
129 # Accept the important Cygnus configure options, so we can diagnose typos.
131 case "$ac_option" in
133 -bindir | --bindir | --bindi | --bind | --bin | --bi)
134 ac_prev=bindir ;;
135 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136 bindir="$ac_optarg" ;;
138 -build | --build | --buil | --bui | --bu)
139 ac_prev=build ;;
140 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141 build="$ac_optarg" ;;
143 -cache-file | --cache-file | --cache-fil | --cache-fi \
144 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145 ac_prev=cache_file ;;
146 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148 cache_file="$ac_optarg" ;;
150 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151 ac_prev=datadir ;;
152 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153 | --da=*)
154 datadir="$ac_optarg" ;;
156 -disable-* | --disable-*)
157 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}=no" ;;
165 -enable-* | --enable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 case "$ac_option" in
173 *=*) ;;
174 *) ac_optarg=yes ;;
175 esac
176 eval "enable_${ac_feature}='$ac_optarg'" ;;
178 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180 | --exec | --exe | --ex)
181 ac_prev=exec_prefix ;;
182 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184 | --exec=* | --exe=* | --ex=*)
185 exec_prefix="$ac_optarg" ;;
187 -gas | --gas | --ga | --g)
188 # Obsolete; use --with-gas.
189 with_gas=yes ;;
191 -help | --help | --hel | --he)
192 # Omit some internal or obsolete options to make the list less imposing.
193 # This message is too long to be a string in the A/UX 3.1 sh.
194 cat << EOF
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
197 Configuration:
198 --cache-file=FILE cache test results in FILE
199 --help print this message
200 --no-create do not create output files
201 --quiet, --silent do not print \`checking...' messages
202 --version print the version of autoconf that created configure
203 Directory and file names:
204 --prefix=PREFIX install architecture-independent files in PREFIX
205 [$ac_default_prefix]
206 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
207 [same as prefix]
208 --bindir=DIR user executables in DIR [EPREFIX/bin]
209 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
210 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
211 --datadir=DIR read-only architecture-independent data in DIR
212 [PREFIX/share]
213 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
214 --sharedstatedir=DIR modifiable architecture-independent data in DIR
215 [PREFIX/com]
216 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
217 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
218 --includedir=DIR C header files in DIR [PREFIX/include]
219 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
220 --infodir=DIR info documentation in DIR [PREFIX/info]
221 --mandir=DIR man documentation in DIR [PREFIX/man]
222 --srcdir=DIR find the sources in DIR [configure dir or ..]
223 --program-prefix=PREFIX prepend PREFIX to installed program names
224 --program-suffix=SUFFIX append SUFFIX to installed program names
225 --program-transform-name=PROGRAM
226 run sed PROGRAM on installed program names
228 cat << EOF
229 Host type:
230 --build=BUILD configure for building on BUILD [BUILD=HOST]
231 --host=HOST configure for HOST [guessed]
232 --target=TARGET configure for TARGET [TARGET=HOST]
233 Features and packages:
234 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
235 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
236 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
237 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
238 --x-includes=DIR X include files are in DIR
239 --x-libraries=DIR X library files are in DIR
241 if test -n "$ac_help"; then
242 echo "--enable and --with options recognized:$ac_help"
244 exit 0 ;;
246 -host | --host | --hos | --ho)
247 ac_prev=host ;;
248 -host=* | --host=* | --hos=* | --ho=*)
249 host="$ac_optarg" ;;
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir="$ac_optarg" ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
259 ac_prev=infodir ;;
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir="$ac_optarg" ;;
263 -libdir | --libdir | --libdi | --libd)
264 ac_prev=libdir ;;
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
266 libdir="$ac_optarg" ;;
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir="$ac_optarg" ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir="$ac_optarg" ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285 ac_prev=mandir ;;
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287 mandir="$ac_optarg" ;;
289 -nfp | --nfp | --nf)
290 # Obsolete; use --without-fp.
291 with_fp=no ;;
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294 | --no-cr | --no-c)
295 no_create=yes ;;
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299 no_recursion=yes ;;
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir="$ac_optarg" ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311 ac_prev=prefix ;;
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313 prefix="$ac_optarg" ;;
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix="$ac_optarg" ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix="$ac_optarg" ;;
329 -program-transform-name | --program-transform-name \
330 | --program-transform-nam | --program-transform-na \
331 | --program-transform-n | --program-transform- \
332 | --program-transform | --program-transfor \
333 | --program-transfo | --program-transf \
334 | --program-trans | --program-tran \
335 | --progr-tra | --program-tr | --program-t)
336 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name="$ac_optarg" ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
348 silent=yes ;;
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351 ac_prev=sbindir ;;
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353 | --sbi=* | --sb=*)
354 sbindir="$ac_optarg" ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
359 | --sha | --sh)
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364 | --sha=* | --sh=*)
365 sharedstatedir="$ac_optarg" ;;
367 -site | --site | --sit)
368 ac_prev=site ;;
369 -site=* | --site=* | --sit=*)
370 site="$ac_optarg" ;;
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373 ac_prev=srcdir ;;
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375 srcdir="$ac_optarg" ;;
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir="$ac_optarg" ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
385 ac_prev=target ;;
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target="$ac_optarg" ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
390 verbose=yes ;;
392 -version | --version | --versio | --versi | --vers)
393 echo "configure generated by autoconf version 2.13"
394 exit 0 ;;
396 -with-* | --with-*)
397 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 case "$ac_option" in
404 *=*) ;;
405 *) ac_optarg=yes ;;
406 esac
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* | --without-*)
410 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
418 --x)
419 # Obsolete; use --with-x.
420 with_x=yes ;;
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes="$ac_optarg" ;;
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
446 nonopt="$ac_option"
449 esac
450 done
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
459 # 0 standard input
460 # 1 file creation
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
467 exec 6>/dev/null
468 else
469 exec 6>&1
471 exec 5>./config.log
473 echo "\
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
476 " 1>&5
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
480 ac_configure_args=
481 for ac_arg
483 case "$ac_arg" in
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c) ;;
486 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491 esac
492 done
494 # NLS nuisances.
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 echo > confdefs.h
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=src/ios.cc
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
517 ac_prog=$0
518 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 srcdir=$ac_confdir
521 if test ! -r $srcdir/$ac_unique_file; then
522 srcdir=..
524 else
525 ac_srcdir_defaulted=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530 else
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE; then
539 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540 else
541 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 for ac_site_file in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
547 . "$ac_site_file"
549 done
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
553 . $cache_file
554 else
555 echo "creating cache $cache_file"
556 > $cache_file
559 ac_ext=c
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
566 ac_exeext=
567 ac_objext=o
568 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571 ac_n= ac_c='
572 ' ac_t=' '
573 else
574 ac_n=-n ac_c= ac_t=
576 else
577 ac_n= ac_c='\c' ac_t=
582 # This works around the fact that libtool configuration may change LD
583 # for this particular configuration, but some shells, instead of
584 # keeping the changes in LD private, export them just because LD is
585 # exported. Only used at the end of this file.
586 ORIGINAL_LD_FOR_MULTILIBS=$LD
588 PACKAGE=libstdc++
590 # For libtool versioning info, format is CURRENT:REVISION:AGE
591 libtool_VERSION=4:1:0
595 # Check whether --enable-multilib or --disable-multilib was given.
596 if test "${enable_multilib+set}" = set; then
597 enableval="$enable_multilib"
598 case "${enableval}" in
599 yes) multilib=yes ;;
600 no) multilib=no ;;
601 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
602 esac
603 else
604 multilib=yes
607 # When building with srcdir == objdir, links to the source files will
608 # be created in directories within the target_subdir. We have to
609 # adjust toplevel_srcdir accordingly, so that configure finds
610 # install-sh and other auxiliary files that live in the top-level
611 # source directory.
612 if test "${srcdir}" = "."; then
613 if test -z "${with_target_subdir}"; then
614 toprel=".."
615 else
616 if test "${with_target_subdir}" != "."; then
617 toprel="${with_multisrctop}../.."
618 else
619 toprel="${with_multisrctop}.."
622 else
623 toprel=".."
625 ac_aux_dir=
626 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
627 if test -f $ac_dir/install-sh; then
628 ac_aux_dir=$ac_dir
629 ac_install_sh="$ac_aux_dir/install-sh -c"
630 break
631 elif test -f $ac_dir/install.sh; then
632 ac_aux_dir=$ac_dir
633 ac_install_sh="$ac_aux_dir/install.sh -c"
634 break
636 done
637 if test -z "$ac_aux_dir"; then
638 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
640 ac_config_guess=$ac_aux_dir/config.guess
641 ac_config_sub=$ac_aux_dir/config.sub
642 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
644 toplevel_srcdir=\${top_srcdir}/$toprel
648 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
650 # You will slowly go insane if you do not grok the following fact: when
651 # building v3 as part of the compiler, the top-level /target/ becomes the
652 # library's /host/. `configure' then causes --target to default to --host,
653 # exactly like any other package using autoconf. Therefore, 'target' and
654 # 'host' will always be the same. This makes sense both for native and
655 # cross compilers, just think about it for a little while. :-)
657 # Also, if v3 is being configured as part of a cross compiler, the top-level
658 # configure script will pass the "real" host as $with_cross_host.
660 # AC 2.5x sets target_alias iff the user specified --target, but we use it
661 # everywhere, so we set it here just to be sure. In AC 2.13
662 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
664 # Do some error checking and defaulting for the host and target type.
665 # The inputs are:
666 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
668 # The rules are:
669 # 1. You are not allowed to specify --host, --target, and nonopt at the
670 # same time.
671 # 2. Host defaults to nonopt.
672 # 3. If nonopt is not specified, then host defaults to the current host,
673 # as determined by config.guess.
674 # 4. Target and build default to nonopt.
675 # 5. If nonopt is not specified, then target and build default to host.
677 # The aliases save the names the user supplied, while $host etc.
678 # will get canonicalized.
679 case $host---$target---$nonopt in
680 NONE---*---* | *---NONE---* | *---*---NONE) ;;
681 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
682 esac
685 # Make sure we can run config.sub.
686 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
687 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
690 echo $ac_n "checking host system type""... $ac_c" 1>&6
691 echo "configure:692: checking host system type" >&5
693 host_alias=$host
694 case "$host_alias" in
695 NONE)
696 case $nonopt in
697 NONE)
698 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
699 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
700 fi ;;
701 *) host_alias=$nonopt ;;
702 esac ;;
703 esac
705 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
706 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
709 echo "$ac_t""$host" 1>&6
711 echo $ac_n "checking target system type""... $ac_c" 1>&6
712 echo "configure:713: checking target system type" >&5
714 target_alias=$target
715 case "$target_alias" in
716 NONE)
717 case $nonopt in
718 NONE) target_alias=$host_alias ;;
719 *) target_alias=$nonopt ;;
720 esac ;;
721 esac
723 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
724 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
725 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
726 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
727 echo "$ac_t""$target" 1>&6
729 echo $ac_n "checking build system type""... $ac_c" 1>&6
730 echo "configure:731: checking build system type" >&5
732 build_alias=$build
733 case "$build_alias" in
734 NONE)
735 case $nonopt in
736 NONE) build_alias=$host_alias ;;
737 *) build_alias=$nonopt ;;
738 esac ;;
739 esac
741 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
742 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
743 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
744 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
745 echo "$ac_t""$build" 1>&6
747 test "$host_alias" != "$target_alias" &&
748 test "$program_prefix$program_suffix$program_transform_name" = \
749 NONENONEs,x,x, &&
750 program_prefix=${target_alias}-
752 target_alias=${target_alias-$target}
755 # Find a good install program. We prefer a C program (faster),
756 # so one script is as good as another. But avoid the broken or
757 # incompatible versions:
758 # SysV /etc/install, /usr/sbin/install
759 # SunOS /usr/etc/install
760 # IRIX /sbin/install
761 # AIX /bin/install
762 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
763 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
764 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
765 # ./install, which can be erroneously created by make from ./install.sh.
766 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
767 echo "configure:768: checking for a BSD compatible install" >&5
768 if test -z "$INSTALL"; then
769 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
770 echo $ac_n "(cached) $ac_c" 1>&6
771 else
772 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
773 for ac_dir in $PATH; do
774 # Account for people who put trailing slashes in PATH elements.
775 case "$ac_dir/" in
776 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
778 # OSF1 and SCO ODT 3.0 have their own names for install.
779 # Don't use installbsd from OSF since it installs stuff as root
780 # by default.
781 for ac_prog in ginstall scoinst install; do
782 if test -f $ac_dir/$ac_prog; then
783 if test $ac_prog = install &&
784 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
785 # AIX install. It has an incompatible calling convention.
787 else
788 ac_cv_path_install="$ac_dir/$ac_prog -c"
789 break 2
792 done
794 esac
795 done
796 IFS="$ac_save_IFS"
799 if test "${ac_cv_path_install+set}" = set; then
800 INSTALL="$ac_cv_path_install"
801 else
802 # As a last resort, use the slow shell script. We don't cache a
803 # path for INSTALL within a source directory, because that will
804 # break other packages using the cache if that directory is
805 # removed, or if the path is relative.
806 INSTALL="$ac_install_sh"
809 echo "$ac_t""$INSTALL" 1>&6
811 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
812 # It thinks the first close brace ends the variable substitution.
813 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
815 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
817 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
819 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
820 echo "configure:821: checking whether build environment is sane" >&5
821 # Just in case
822 sleep 1
823 echo timestamp > conftestfile
824 # Do `set' in a subshell so we don't clobber the current shell's
825 # arguments. Must try -L first in case configure is actually a
826 # symlink; some systems play weird games with the mod time of symlinks
827 # (eg FreeBSD returns the mod time of the symlink's containing
828 # directory).
829 if (
830 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
831 if test "$*" = "X"; then
832 # -L didn't work.
833 set X `ls -t $srcdir/configure conftestfile`
835 if test "$*" != "X $srcdir/configure conftestfile" \
836 && test "$*" != "X conftestfile $srcdir/configure"; then
838 # If neither matched, then we have a broken ls. This can happen
839 # if, for instance, CONFIG_SHELL is bash and it inherits a
840 # broken ls alias from the environment. This has actually
841 # happened. Such a system could not be considered "sane".
842 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
843 alias in your environment" 1>&2; exit 1; }
846 test "$2" = conftestfile
848 then
849 # Ok.
851 else
852 { echo "configure: error: newly created file is older than distributed files!
853 Check your system clock" 1>&2; exit 1; }
855 rm -f conftest*
856 echo "$ac_t""yes" 1>&6
857 if test "$program_transform_name" = s,x,x,; then
858 program_transform_name=
859 else
860 # Double any \ or $. echo might interpret backslashes.
861 cat <<\EOF_SED > conftestsed
862 s,\\,\\\\,g; s,\$,$$,g
863 EOF_SED
864 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
865 rm -f conftestsed
867 test "$program_prefix" != NONE &&
868 program_transform_name="s,^,${program_prefix},; $program_transform_name"
869 # Use a double $ so make ignores it.
870 test "$program_suffix" != NONE &&
871 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
873 # sed with no file args requires a program.
874 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
876 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
877 echo "configure:878: checking whether ${MAKE-make} sets \${MAKE}" >&5
878 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
879 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
881 else
882 cat > conftestmake <<\EOF
883 all:
884 @echo 'ac_maketemp="${MAKE}"'
886 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
887 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
888 if test -n "$ac_maketemp"; then
889 eval ac_cv_prog_make_${ac_make}_set=yes
890 else
891 eval ac_cv_prog_make_${ac_make}_set=no
893 rm -f conftestmake
895 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
896 echo "$ac_t""yes" 1>&6
897 SET_MAKE=
898 else
899 echo "$ac_t""no" 1>&6
900 SET_MAKE="MAKE=${MAKE-make}"
904 PACKAGE=$PACKAGE
906 VERSION=$release_VERSION
908 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
909 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
911 cat >> confdefs.h <<EOF
912 #define PACKAGE "$PACKAGE"
915 cat >> confdefs.h <<EOF
916 #define VERSION "$VERSION"
921 missing_dir=`cd $ac_aux_dir && pwd`
922 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
923 echo "configure:924: checking for working aclocal" >&5
924 # Run test in a subshell; some versions of sh will print an error if
925 # an executable is not found, even if stderr is redirected.
926 # Redirect stdin to placate older versions of autoconf. Sigh.
927 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
928 ACLOCAL=aclocal
929 echo "$ac_t""found" 1>&6
930 else
931 ACLOCAL="$missing_dir/missing aclocal"
932 echo "$ac_t""missing" 1>&6
935 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
936 echo "configure:937: checking for working autoconf" >&5
937 # Run test in a subshell; some versions of sh will print an error if
938 # an executable is not found, even if stderr is redirected.
939 # Redirect stdin to placate older versions of autoconf. Sigh.
940 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
941 AUTOCONF=autoconf
942 echo "$ac_t""found" 1>&6
943 else
944 AUTOCONF="$missing_dir/missing autoconf"
945 echo "$ac_t""missing" 1>&6
948 echo $ac_n "checking for working automake""... $ac_c" 1>&6
949 echo "configure:950: checking for working automake" >&5
950 # Run test in a subshell; some versions of sh will print an error if
951 # an executable is not found, even if stderr is redirected.
952 # Redirect stdin to placate older versions of autoconf. Sigh.
953 if (automake --version) < /dev/null > /dev/null 2>&1; then
954 AUTOMAKE=automake
955 echo "$ac_t""found" 1>&6
956 else
957 AUTOMAKE="$missing_dir/missing automake"
958 echo "$ac_t""missing" 1>&6
961 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
962 echo "configure:963: checking for working autoheader" >&5
963 # Run test in a subshell; some versions of sh will print an error if
964 # an executable is not found, even if stderr is redirected.
965 # Redirect stdin to placate older versions of autoconf. Sigh.
966 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
967 AUTOHEADER=autoheader
968 echo "$ac_t""found" 1>&6
969 else
970 AUTOHEADER="$missing_dir/missing autoheader"
971 echo "$ac_t""missing" 1>&6
974 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
975 echo "configure:976: checking for working makeinfo" >&5
976 # Run test in a subshell; some versions of sh will print an error if
977 # an executable is not found, even if stderr is redirected.
978 # Redirect stdin to placate older versions of autoconf. Sigh.
979 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
980 MAKEINFO=makeinfo
981 echo "$ac_t""found" 1>&6
982 else
983 MAKEINFO="$missing_dir/missing makeinfo"
984 echo "$ac_t""missing" 1>&6
992 # Runs configure.target, finds CC, CXX and assorted other critical bits.
993 # Must run this before the GLIBCPP_ENABLE_* macros below.
994 if test $host != $build; then
995 ac_tool_prefix=${host_alias}-
996 else
997 ac_tool_prefix=
1000 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1001 echo "configure:1002: checking for Cygwin environment" >&5
1002 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1004 else
1005 cat > conftest.$ac_ext <<EOF
1006 #line 1007 "configure"
1007 #include "confdefs.h"
1009 int main() {
1011 #ifndef __CYGWIN__
1012 #define __CYGWIN__ __CYGWIN32__
1013 #endif
1014 return __CYGWIN__;
1015 ; return 0; }
1017 if { (eval echo configure:1018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1018 rm -rf conftest*
1019 ac_cv_cygwin=yes
1020 else
1021 echo "configure: failed program was:" >&5
1022 cat conftest.$ac_ext >&5
1023 rm -rf conftest*
1024 ac_cv_cygwin=no
1026 rm -f conftest*
1027 rm -f conftest*
1030 echo "$ac_t""$ac_cv_cygwin" 1>&6
1031 CYGWIN=
1032 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1033 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1034 echo "configure:1035: checking for mingw32 environment" >&5
1035 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1037 else
1038 cat > conftest.$ac_ext <<EOF
1039 #line 1040 "configure"
1040 #include "confdefs.h"
1042 int main() {
1043 return __MINGW32__;
1044 ; return 0; }
1046 if { (eval echo configure:1047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1047 rm -rf conftest*
1048 ac_cv_mingw32=yes
1049 else
1050 echo "configure: failed program was:" >&5
1051 cat conftest.$ac_ext >&5
1052 rm -rf conftest*
1053 ac_cv_mingw32=no
1055 rm -f conftest*
1056 rm -f conftest*
1059 echo "$ac_t""$ac_cv_mingw32" 1>&6
1060 MINGW32=
1061 test "$ac_cv_mingw32" = yes && MINGW32=yes
1064 #possibly test for the presence of the compiler sources here?
1066 # Export build and source directories.
1067 # These need to be absolute paths, yet at the same time need to
1068 # canonicalize only relative paths, because then amd will not unmount
1069 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1070 glibcpp_builddir=`${PWDCMD-pwd}`
1071 case $srcdir in
1072 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1073 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1074 esac
1080 for ac_prog in gawk mawk nawk awk
1082 # Extract the first word of "$ac_prog", so it can be a program name with args.
1083 set dummy $ac_prog; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1088 else
1089 if test -n "$AWK"; then
1090 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1091 else
1092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1093 ac_dummy="$PATH"
1094 for ac_dir in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir=.
1096 if test -f $ac_dir/$ac_word; then
1097 ac_cv_prog_AWK="$ac_prog"
1098 break
1100 done
1101 IFS="$ac_save_ifs"
1104 AWK="$ac_cv_prog_AWK"
1105 if test -n "$AWK"; then
1106 echo "$ac_t""$AWK" 1>&6
1107 else
1108 echo "$ac_t""no" 1>&6
1111 test -n "$AWK" && break
1112 done
1114 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also
1115 # be 'cp -p' if linking isn't available. Uncomment the next line to
1116 # force a particular method.
1117 #ac_cv_prog_LN_S='cp -p'
1118 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1119 echo "configure:1120: checking whether ln -s works" >&5
1120 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1122 else
1123 rm -f conftestdata
1124 if ln -s X conftestdata 2>/dev/null
1125 then
1126 rm -f conftestdata
1127 ac_cv_prog_LN_S="ln -s"
1128 else
1129 ac_cv_prog_LN_S=ln
1132 LN_S="$ac_cv_prog_LN_S"
1133 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1134 echo "$ac_t""yes" 1>&6
1135 else
1136 echo "$ac_t""no" 1>&6
1140 # We use these options to decide which functions to include.
1141 # Check whether --with-target-subdir or --without-target-subdir was given.
1142 if test "${with_target_subdir+set}" = set; then
1143 withval="$with_target_subdir"
1147 # Check whether --with-cross-host or --without-cross-host was given.
1148 if test "${with_cross_host+set}" = set; then
1149 withval="$with_cross_host"
1154 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1157 # Never versions of autoconf add an underscore to these functions.
1158 # Prevent future problems ...
1164 # AC_PROG_CC
1165 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1166 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1167 # are probably using a cross compiler, which will not be able to fully
1168 # link an executable. This is addressed in later versions of autoconf.
1173 # Extract the first word of "gcc", so it can be a program name with args.
1174 set dummy gcc; ac_word=$2
1175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1176 echo "configure:1177: checking for $ac_word" >&5
1177 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1178 echo $ac_n "(cached) $ac_c" 1>&6
1179 else
1180 if test -n "$CC"; then
1181 ac_cv_prog_CC="$CC" # Let the user override the test.
1182 else
1183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1184 ac_dummy="$PATH"
1185 for ac_dir in $ac_dummy; do
1186 test -z "$ac_dir" && ac_dir=.
1187 if test -f $ac_dir/$ac_word; then
1188 ac_cv_prog_CC="gcc"
1189 break
1191 done
1192 IFS="$ac_save_ifs"
1195 CC="$ac_cv_prog_CC"
1196 if test -n "$CC"; then
1197 echo "$ac_t""$CC" 1>&6
1198 else
1199 echo "$ac_t""no" 1>&6
1202 if test -z "$CC"; then
1203 # Extract the first word of "cc", so it can be a program name with args.
1204 set dummy cc; ac_word=$2
1205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1206 echo "configure:1207: checking for $ac_word" >&5
1207 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1209 else
1210 if test -n "$CC"; then
1211 ac_cv_prog_CC="$CC" # Let the user override the test.
1212 else
1213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1214 ac_prog_rejected=no
1215 ac_dummy="$PATH"
1216 for ac_dir in $ac_dummy; do
1217 test -z "$ac_dir" && ac_dir=.
1218 if test -f $ac_dir/$ac_word; then
1219 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1220 ac_prog_rejected=yes
1221 continue
1223 ac_cv_prog_CC="cc"
1224 break
1226 done
1227 IFS="$ac_save_ifs"
1228 if test $ac_prog_rejected = yes; then
1229 # We found a bogon in the path, so make sure we never use it.
1230 set dummy $ac_cv_prog_CC
1231 shift
1232 if test $# -gt 0; then
1233 # We chose a different compiler from the bogus one.
1234 # However, it has the same basename, so the bogon will be chosen
1235 # first if we set CC to just the basename; use the full file name.
1236 shift
1237 set dummy "$ac_dir/$ac_word" "$@"
1238 shift
1239 ac_cv_prog_CC="$@"
1244 CC="$ac_cv_prog_CC"
1245 if test -n "$CC"; then
1246 echo "$ac_t""$CC" 1>&6
1247 else
1248 echo "$ac_t""no" 1>&6
1251 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1254 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1255 echo "configure:1256: checking whether we are using GNU C" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1258 else
1259 cat > conftest.c <<EOF
1260 #ifdef __GNUC__
1261 yes;
1262 #endif
1264 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1265 ac_cv_prog_gcc=yes
1266 else
1267 ac_cv_prog_gcc=no
1271 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1273 if test $ac_cv_prog_gcc = yes; then
1274 GCC=yes
1275 ac_test_CFLAGS="${CFLAGS+set}"
1276 ac_save_CFLAGS="$CFLAGS"
1277 CFLAGS=
1278 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1279 echo "configure:1280: checking whether ${CC-cc} accepts -g" >&5
1280 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1282 else
1283 echo 'void f(){}' > conftest.c
1284 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1285 ac_cv_prog_cc_g=yes
1286 else
1287 ac_cv_prog_cc_g=no
1289 rm -f conftest*
1293 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1294 if test "$ac_test_CFLAGS" = set; then
1295 CFLAGS="$ac_save_CFLAGS"
1296 elif test $ac_cv_prog_cc_g = yes; then
1297 CFLAGS="-g -O2"
1298 else
1299 CFLAGS="-O2"
1301 else
1302 GCC=
1303 test "${CFLAGS+set}" = set || CFLAGS="-g"
1307 # Likewise for AC_PROG_CXX. We can't just call it directly because g++
1308 # will try to link in libstdc++.
1312 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1313 # flags that come in CXX while configuring libstdc++. They're different
1314 # from those used for all other target libraries. If CXX is set in
1315 # the environment, respect that here.
1316 glibcpp_CXX=$CXX
1317 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1319 # Extract the first word of "$ac_prog", so it can be a program name with args.
1320 set dummy $ac_prog; ac_word=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326 if test -n "$glibcpp_CXX"; then
1327 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1328 else
1329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1330 ac_dummy="$PATH"
1331 for ac_dir in $ac_dummy; do
1332 test -z "$ac_dir" && ac_dir=.
1333 if test -f $ac_dir/$ac_word; then
1334 ac_cv_prog_glibcpp_CXX="$ac_prog"
1335 break
1337 done
1338 IFS="$ac_save_ifs"
1341 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1342 if test -n "$glibcpp_CXX"; then
1343 echo "$ac_t""$glibcpp_CXX" 1>&6
1344 else
1345 echo "$ac_t""no" 1>&6
1348 test -n "$glibcpp_CXX" && break
1349 done
1350 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1353 CXX=$glibcpp_CXX
1354 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1356 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1357 echo "configure:1358: checking whether we are using GNU C++" >&5
1358 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1360 else
1361 cat > conftest.C <<EOF
1362 #ifdef __GNUC__
1363 yes;
1364 #endif
1366 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1367 ac_cv_prog_gxx=yes
1368 else
1369 ac_cv_prog_gxx=no
1373 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1375 if test $ac_cv_prog_gxx = yes; then
1376 GXX=yes
1377 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1378 ac_save_CXXFLAGS="$CXXFLAGS"
1379 CXXFLAGS=
1380 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1381 echo "configure:1382: checking whether ${CXX-g++} accepts -g" >&5
1382 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1383 echo $ac_n "(cached) $ac_c" 1>&6
1384 else
1385 echo 'void f(){}' > conftest.cc
1386 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1387 ac_cv_prog_cxx_g=yes
1388 else
1389 ac_cv_prog_cxx_g=no
1391 rm -f conftest*
1395 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1396 if test "$ac_test_CXXFLAGS" = set; then
1397 CXXFLAGS="$ac_save_CXXFLAGS"
1398 elif test $ac_cv_prog_cxx_g = yes; then
1399 CXXFLAGS="-g -O2"
1400 else
1401 CXXFLAGS="-O2"
1403 else
1404 GXX=
1405 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1409 # For some reason, gettext needs this.
1411 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1412 echo "configure:1413: checking for strerror in -lcposix" >&5
1413 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1416 else
1417 ac_save_LIBS="$LIBS"
1418 LIBS="-lcposix $LIBS"
1419 cat > conftest.$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1422 /* Override any gcc2 internal prototype to avoid an error. */
1423 /* We use char because int might match the return type of a gcc2
1424 builtin and then its argument prototype would still apply. */
1425 char strerror();
1427 int main() {
1428 strerror()
1429 ; return 0; }
1431 if { (eval echo configure:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1432 rm -rf conftest*
1433 eval "ac_cv_lib_$ac_lib_var=yes"
1434 else
1435 echo "configure: failed program was:" >&5
1436 cat conftest.$ac_ext >&5
1437 rm -rf conftest*
1438 eval "ac_cv_lib_$ac_lib_var=no"
1440 rm -f conftest*
1441 LIBS="$ac_save_LIBS"
1444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1445 echo "$ac_t""yes" 1>&6
1446 LIBS="$LIBS -lcposix"
1447 else
1448 echo "$ac_t""no" 1>&6
1454 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1455 set dummy ${ac_tool_prefix}as; ac_word=$2
1456 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1457 echo "configure:1458: checking for $ac_word" >&5
1458 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1460 else
1461 if test -n "$AS"; then
1462 ac_cv_prog_AS="$AS" # Let the user override the test.
1463 else
1464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1465 ac_dummy="$PATH"
1466 for ac_dir in $ac_dummy; do
1467 test -z "$ac_dir" && ac_dir=.
1468 if test -f $ac_dir/$ac_word; then
1469 ac_cv_prog_AS="${ac_tool_prefix}as"
1470 break
1472 done
1473 IFS="$ac_save_ifs"
1474 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1477 AS="$ac_cv_prog_AS"
1478 if test -n "$AS"; then
1479 echo "$ac_t""$AS" 1>&6
1480 else
1481 echo "$ac_t""no" 1>&6
1486 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1487 set dummy ${ac_tool_prefix}ar; ac_word=$2
1488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1489 echo "configure:1490: checking for $ac_word" >&5
1490 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1492 else
1493 if test -n "$AR"; then
1494 ac_cv_prog_AR="$AR" # Let the user override the test.
1495 else
1496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1497 ac_dummy="$PATH"
1498 for ac_dir in $ac_dummy; do
1499 test -z "$ac_dir" && ac_dir=.
1500 if test -f $ac_dir/$ac_word; then
1501 ac_cv_prog_AR="${ac_tool_prefix}ar"
1502 break
1504 done
1505 IFS="$ac_save_ifs"
1506 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1509 AR="$ac_cv_prog_AR"
1510 if test -n "$AR"; then
1511 echo "$ac_t""$AR" 1>&6
1512 else
1513 echo "$ac_t""no" 1>&6
1518 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1519 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1521 echo "configure:1522: checking for $ac_word" >&5
1522 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1524 else
1525 if test -n "$RANLIB"; then
1526 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1527 else
1528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1529 ac_dummy="$PATH"
1530 for ac_dir in $ac_dummy; do
1531 test -z "$ac_dir" && ac_dir=.
1532 if test -f $ac_dir/$ac_word; then
1533 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1534 break
1536 done
1537 IFS="$ac_save_ifs"
1540 RANLIB="$ac_cv_prog_RANLIB"
1541 if test -n "$RANLIB"; then
1542 echo "$ac_t""$RANLIB" 1>&6
1543 else
1544 echo "$ac_t""no" 1>&6
1548 if test -z "$ac_cv_prog_RANLIB"; then
1549 if test -n "$ac_tool_prefix"; then
1550 # Extract the first word of "ranlib", so it can be a program name with args.
1551 set dummy ranlib; ac_word=$2
1552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1553 echo "configure:1554: checking for $ac_word" >&5
1554 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6
1556 else
1557 if test -n "$RANLIB"; then
1558 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1559 else
1560 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1561 ac_dummy="$PATH"
1562 for ac_dir in $ac_dummy; do
1563 test -z "$ac_dir" && ac_dir=.
1564 if test -f $ac_dir/$ac_word; then
1565 ac_cv_prog_RANLIB="ranlib"
1566 break
1568 done
1569 IFS="$ac_save_ifs"
1570 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1573 RANLIB="$ac_cv_prog_RANLIB"
1574 if test -n "$RANLIB"; then
1575 echo "$ac_t""$RANLIB" 1>&6
1576 else
1577 echo "$ac_t""no" 1>&6
1580 else
1581 RANLIB="ranlib-not-found-in-path-error"
1585 # Find a good install program. We prefer a C program (faster),
1586 # so one script is as good as another. But avoid the broken or
1587 # incompatible versions:
1588 # SysV /etc/install, /usr/sbin/install
1589 # SunOS /usr/etc/install
1590 # IRIX /sbin/install
1591 # AIX /bin/install
1592 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1593 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1594 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1595 # ./install, which can be erroneously created by make from ./install.sh.
1596 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1597 echo "configure:1598: checking for a BSD compatible install" >&5
1598 if test -z "$INSTALL"; then
1599 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1601 else
1602 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1603 for ac_dir in $PATH; do
1604 # Account for people who put trailing slashes in PATH elements.
1605 case "$ac_dir/" in
1606 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1608 # OSF1 and SCO ODT 3.0 have their own names for install.
1609 # Don't use installbsd from OSF since it installs stuff as root
1610 # by default.
1611 for ac_prog in ginstall scoinst install; do
1612 if test -f $ac_dir/$ac_prog; then
1613 if test $ac_prog = install &&
1614 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1615 # AIX install. It has an incompatible calling convention.
1617 else
1618 ac_cv_path_install="$ac_dir/$ac_prog -c"
1619 break 2
1622 done
1624 esac
1625 done
1626 IFS="$ac_save_IFS"
1629 if test "${ac_cv_path_install+set}" = set; then
1630 INSTALL="$ac_cv_path_install"
1631 else
1632 # As a last resort, use the slow shell script. We don't cache a
1633 # path for INSTALL within a source directory, because that will
1634 # break other packages using the cache if that directory is
1635 # removed, or if the path is relative.
1636 INSTALL="$ac_install_sh"
1639 echo "$ac_t""$INSTALL" 1>&6
1641 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1642 # It thinks the first close brace ends the variable substitution.
1643 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1645 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1647 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1650 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1651 echo "configure:1652: checking whether to enable maintainer-specific portions of Makefiles" >&5
1652 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1653 if test "${enable_maintainer_mode+set}" = set; then
1654 enableval="$enable_maintainer_mode"
1655 USE_MAINTAINER_MODE=$enableval
1656 else
1657 USE_MAINTAINER_MODE=no
1660 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1663 if test $USE_MAINTAINER_MODE = yes; then
1664 MAINTAINER_MODE_TRUE=
1665 MAINTAINER_MODE_FALSE='#'
1666 else
1667 MAINTAINER_MODE_TRUE='#'
1668 MAINTAINER_MODE_FALSE=
1670 MAINT=$MAINTAINER_MODE_TRUE
1674 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1675 # at least currently, we never actually build a program, so we never
1676 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1677 # fails, because we are probably configuring with a cross compiler
1678 # which can't create executables. So we include AC_EXEEXT to keep
1679 # automake happy, but we don't execute it, since we don't care about
1680 # the result.
1681 if false; then
1682 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1683 # to nothing, so nothing would remain between `then' and `fi' if it
1684 # were not for the `:' below.
1688 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1689 echo "configure:1690: checking for executable suffix" >&5
1690 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1691 echo $ac_n "(cached) $ac_c" 1>&6
1692 else
1693 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1694 ac_cv_exeext=.exe
1695 else
1696 rm -f conftest*
1697 echo 'int main () { return 0; }' > conftest.$ac_ext
1698 ac_cv_exeext=
1699 if { (eval echo configure:1700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1700 for file in conftest.*; do
1701 case $file in
1702 *.c | *.o | *.obj) ;;
1703 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1704 esac
1705 done
1706 else
1707 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1709 rm -f conftest*
1710 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1714 EXEEXT=""
1715 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1716 echo "$ac_t""${ac_cv_exeext}" 1>&6
1717 ac_exeext=$EXEEXT
1721 case ${glibcpp_basedir} in
1722 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1723 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1724 esac
1726 # Find platform-specific directories containing configuration info. In
1727 # addition to possibly modifying the same flags, it also sets up symlinks.
1729 . ${glibcpp_basedir}/configure.target
1730 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1731 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1737 # Check whether --enable-shared or --disable-shared was given.
1738 if test "${enable_shared+set}" = set; then
1739 enableval="$enable_shared"
1740 p=${PACKAGE-default}
1741 case $enableval in
1742 yes) enable_shared=yes ;;
1743 no) enable_shared=no ;;
1745 enable_shared=no
1746 # Look at the argument we got. We use all the common list separators.
1747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1748 for pkg in $enableval; do
1749 if test "X$pkg" = "X$p"; then
1750 enable_shared=yes
1752 done
1753 IFS="$ac_save_ifs"
1755 esac
1756 else
1757 enable_shared=yes
1760 # Check whether --enable-static or --disable-static was given.
1761 if test "${enable_static+set}" = set; then
1762 enableval="$enable_static"
1763 p=${PACKAGE-default}
1764 case $enableval in
1765 yes) enable_static=yes ;;
1766 no) enable_static=no ;;
1768 enable_static=no
1769 # Look at the argument we got. We use all the common list separators.
1770 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1771 for pkg in $enableval; do
1772 if test "X$pkg" = "X$p"; then
1773 enable_static=yes
1775 done
1776 IFS="$ac_save_ifs"
1778 esac
1779 else
1780 enable_static=yes
1783 # Check whether --enable-fast-install or --disable-fast-install was given.
1784 if test "${enable_fast_install+set}" = set; then
1785 enableval="$enable_fast_install"
1786 p=${PACKAGE-default}
1787 case $enableval in
1788 yes) enable_fast_install=yes ;;
1789 no) enable_fast_install=no ;;
1791 enable_fast_install=no
1792 # Look at the argument we got. We use all the common list separators.
1793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1794 for pkg in $enableval; do
1795 if test "X$pkg" = "X$p"; then
1796 enable_fast_install=yes
1798 done
1799 IFS="$ac_save_ifs"
1801 esac
1802 else
1803 enable_fast_install=yes
1806 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1807 if test "${with_gnu_ld+set}" = set; then
1808 withval="$with_gnu_ld"
1809 test "$withval" = no || with_gnu_ld=yes
1810 else
1811 with_gnu_ld=no
1814 ac_prog=ld
1815 if test "$GCC" = yes; then
1816 # Check if gcc -print-prog-name=ld gives a path.
1817 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1818 echo "configure:1819: checking for ld used by GCC" >&5
1819 case $host in
1820 *-*-mingw*)
1821 # gcc leaves a trailing carriage return which upsets mingw
1822 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1824 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1825 esac
1826 case $ac_prog in
1827 # Accept absolute paths.
1828 [\\/]* | [A-Za-z]:[\\/]*)
1829 re_direlt='/[^/][^/]*/\.\./'
1830 # Canonicalize the path of ld
1831 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1832 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1833 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1834 done
1835 test -z "$LD" && LD="$ac_prog"
1838 # If it fails, then pretend we aren't using GCC.
1839 ac_prog=ld
1842 # If it is relative, then search for the first ld in PATH.
1843 with_gnu_ld=unknown
1845 esac
1846 elif test "$with_gnu_ld" = yes; then
1847 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1848 echo "configure:1849: checking for GNU ld" >&5
1849 else
1850 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1851 echo "configure:1852: checking for non-GNU ld" >&5
1853 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1854 echo $ac_n "(cached) $ac_c" 1>&6
1855 else
1856 if test -z "$LD"; then
1857 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1858 for ac_dir in $PATH; do
1859 test -z "$ac_dir" && ac_dir=.
1860 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1861 lt_cv_path_LD="$ac_dir/$ac_prog"
1862 # Check to see if the program is GNU ld. I'd rather use --version,
1863 # but apparently some GNU ld's only accept -v.
1864 # Break only if it was the GNU/non-GNU ld that we prefer.
1865 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1866 test "$with_gnu_ld" != no && break
1867 else
1868 test "$with_gnu_ld" != yes && break
1871 done
1872 IFS="$ac_save_ifs"
1873 else
1874 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1878 LD="$lt_cv_path_LD"
1879 if test -n "$LD"; then
1880 echo "$ac_t""$LD" 1>&6
1881 else
1882 echo "$ac_t""no" 1>&6
1884 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1885 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1886 echo "configure:1887: checking if the linker ($LD) is GNU ld" >&5
1887 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1889 else
1890 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1891 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1892 lt_cv_prog_gnu_ld=yes
1893 else
1894 lt_cv_prog_gnu_ld=no
1898 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1899 with_gnu_ld=$lt_cv_prog_gnu_ld
1902 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1903 echo "configure:1904: checking for $LD option to reload object files" >&5
1904 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1906 else
1907 lt_cv_ld_reload_flag='-r'
1910 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1911 reload_flag=$lt_cv_ld_reload_flag
1912 test -n "$reload_flag" && reload_flag=" $reload_flag"
1914 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1915 echo "configure:1916: checking for BSD-compatible nm" >&5
1916 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1918 else
1919 if test -n "$NM"; then
1920 # Let the user override the test.
1921 lt_cv_path_NM="$NM"
1922 else
1923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1924 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1925 test -z "$ac_dir" && ac_dir=.
1926 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1927 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1928 # Check to see if the nm accepts a BSD-compat flag.
1929 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1930 # nm: unknown option "B" ignored
1931 # Tru64's nm complains that /dev/null is an invalid object file
1932 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1933 lt_cv_path_NM="$tmp_nm -B"
1934 break
1935 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1936 lt_cv_path_NM="$tmp_nm -p"
1937 break
1938 else
1939 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1940 continue # so that we can try to find one that supports BSD flags
1943 done
1944 IFS="$ac_save_ifs"
1945 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1949 NM="$lt_cv_path_NM"
1950 echo "$ac_t""$NM" 1>&6
1952 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1953 echo "configure:1954: checking how to recognise dependant libraries" >&5
1954 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1956 else
1957 lt_cv_file_magic_cmd='$MAGIC_CMD'
1958 lt_cv_file_magic_test_file=
1959 lt_cv_deplibs_check_method='unknown'
1960 # Need to set the preceding variable on all platforms that support
1961 # interlibrary dependencies.
1962 # 'none' -- dependencies not supported.
1963 # `unknown' -- same as none, but documents that we really don't know.
1964 # 'pass_all' -- all dependencies passed with no checks.
1965 # 'test_compile' -- check by making test program.
1966 # 'file_magic [regex]' -- check by looking for files in library path
1967 # which responds to the $file_magic_cmd with a given egrep regex.
1968 # If you have `file' or equivalent on your system and you're not sure
1969 # whether `pass_all' will *always* work, you probably want this one.
1971 case $host_os in
1972 aix*)
1973 lt_cv_deplibs_check_method=pass_all
1976 beos*)
1977 lt_cv_deplibs_check_method=pass_all
1980 bsdi4*)
1981 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1982 lt_cv_file_magic_cmd='/usr/bin/file -L'
1983 lt_cv_file_magic_test_file=/shlib/libc.so
1986 cygwin* | mingw* |pw32*)
1987 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1988 lt_cv_file_magic_cmd='$OBJDUMP -f'
1991 darwin* | rhapsody*)
1992 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1993 lt_cv_file_magic_cmd='/usr/bin/file -L'
1994 case "$host_os" in
1995 rhapsody* | darwin1.012)
1996 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1998 *) # Darwin 1.3 on
1999 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2001 esac
2004 freebsd* )
2005 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2006 case $host_cpu in
2007 i*86 )
2008 # Not sure whether the presence of OpenBSD here was a mistake.
2009 # Let's accept both of them until this is cleared up.
2010 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2011 lt_cv_file_magic_cmd=/usr/bin/file
2012 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2014 esac
2015 else
2016 lt_cv_deplibs_check_method=pass_all
2020 gnu*)
2021 lt_cv_deplibs_check_method=pass_all
2024 hpux10.20*|hpux11*)
2025 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2026 lt_cv_file_magic_cmd=/usr/bin/file
2027 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2030 irix5* | irix6*)
2031 case $host_os in
2032 irix5*)
2033 # this will be overridden with pass_all, but let us keep it just in case
2034 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2037 case $LD in
2038 *-32|*"-32 ") libmagic=32-bit;;
2039 *-n32|*"-n32 ") libmagic=N32;;
2040 *-64|*"-64 ") libmagic=64-bit;;
2041 *) libmagic=never-match;;
2042 esac
2043 # this will be overridden with pass_all, but let us keep it just in case
2044 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2046 esac
2047 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2048 lt_cv_deplibs_check_method=pass_all
2051 # This must be Linux ELF.
2052 linux-gnu*)
2053 case $host_cpu in
2054 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2055 lt_cv_deplibs_check_method=pass_all ;;
2057 # glibc up to 2.1.1 does not perform some relocations on ARM
2058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2059 esac
2060 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2063 netbsd*)
2064 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2065 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2066 else
2067 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2071 newsos6)
2072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2073 lt_cv_file_magic_cmd=/usr/bin/file
2074 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2077 osf3* | osf4* | osf5*)
2078 # this will be overridden with pass_all, but let us keep it just in case
2079 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2080 lt_cv_file_magic_test_file=/shlib/libc.so
2081 lt_cv_deplibs_check_method=pass_all
2084 sco3.2v5*)
2085 lt_cv_deplibs_check_method=pass_all
2088 solaris*)
2089 lt_cv_deplibs_check_method=pass_all
2090 lt_cv_file_magic_test_file=/lib/libc.so
2093 sysv5uw[78]* | sysv4*uw2*)
2094 lt_cv_deplibs_check_method=pass_all
2097 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2098 case $host_vendor in
2099 ncr)
2100 lt_cv_deplibs_check_method=pass_all
2102 motorola)
2103 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]'
2104 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2106 esac
2108 esac
2112 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2113 file_magic_cmd=$lt_cv_file_magic_cmd
2114 deplibs_check_method=$lt_cv_deplibs_check_method
2116 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2117 echo "configure:2118: checking for object suffix" >&5
2118 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2120 else
2121 rm -f conftest*
2122 echo 'int i = 1;' > conftest.$ac_ext
2123 if { (eval echo configure:2124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2124 for ac_file in conftest.*; do
2125 case $ac_file in
2126 *.c) ;;
2127 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2128 esac
2129 done
2130 else
2131 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2133 rm -f conftest*
2136 echo "$ac_t""$ac_cv_objext" 1>&6
2137 OBJEXT=$ac_cv_objext
2138 ac_objext=$ac_cv_objext
2140 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2142 # Only perform the check for file, if the check method requires it
2143 case $deplibs_check_method in
2144 file_magic*)
2145 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2146 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2147 echo "configure:2148: checking for ${ac_tool_prefix}file" >&5
2148 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2150 else
2151 case $MAGIC_CMD in
2153 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2155 ?:/*)
2156 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2159 ac_save_MAGIC_CMD="$MAGIC_CMD"
2160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2161 ac_dummy="/usr/bin:$PATH"
2162 for ac_dir in $ac_dummy; do
2163 test -z "$ac_dir" && ac_dir=.
2164 if test -f $ac_dir/${ac_tool_prefix}file; then
2165 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2166 if test -n "$file_magic_test_file"; then
2167 case $deplibs_check_method in
2168 "file_magic "*)
2169 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2171 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2172 egrep "$file_magic_regex" > /dev/null; then
2174 else
2175 cat <<EOF 1>&2
2177 *** Warning: the command libtool uses to detect shared libraries,
2178 *** $file_magic_cmd, produces output that libtool cannot recognize.
2179 *** The result is that libtool may fail to recognize shared libraries
2180 *** as such. This will affect the creation of libtool libraries that
2181 *** depend on shared libraries, but programs linked with such libtool
2182 *** libraries will work regardless of this problem. Nevertheless, you
2183 *** may want to report the problem to your system manager and/or to
2184 *** bug-libtool@gnu.org
2187 fi ;;
2188 esac
2190 break
2192 done
2193 IFS="$ac_save_ifs"
2194 MAGIC_CMD="$ac_save_MAGIC_CMD"
2196 esac
2199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2200 if test -n "$MAGIC_CMD"; then
2201 echo "$ac_t""$MAGIC_CMD" 1>&6
2202 else
2203 echo "$ac_t""no" 1>&6
2206 if test -z "$lt_cv_path_MAGIC_CMD"; then
2207 if test -n "$ac_tool_prefix"; then
2208 echo $ac_n "checking for file""... $ac_c" 1>&6
2209 echo "configure:2210: checking for file" >&5
2210 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2212 else
2213 case $MAGIC_CMD in
2215 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2217 ?:/*)
2218 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2221 ac_save_MAGIC_CMD="$MAGIC_CMD"
2222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2223 ac_dummy="/usr/bin:$PATH"
2224 for ac_dir in $ac_dummy; do
2225 test -z "$ac_dir" && ac_dir=.
2226 if test -f $ac_dir/file; then
2227 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2228 if test -n "$file_magic_test_file"; then
2229 case $deplibs_check_method in
2230 "file_magic "*)
2231 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2232 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2233 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2234 egrep "$file_magic_regex" > /dev/null; then
2236 else
2237 cat <<EOF 1>&2
2239 *** Warning: the command libtool uses to detect shared libraries,
2240 *** $file_magic_cmd, produces output that libtool cannot recognize.
2241 *** The result is that libtool may fail to recognize shared libraries
2242 *** as such. This will affect the creation of libtool libraries that
2243 *** depend on shared libraries, but programs linked with such libtool
2244 *** libraries will work regardless of this problem. Nevertheless, you
2245 *** may want to report the problem to your system manager and/or to
2246 *** bug-libtool@gnu.org
2249 fi ;;
2250 esac
2252 break
2254 done
2255 IFS="$ac_save_ifs"
2256 MAGIC_CMD="$ac_save_MAGIC_CMD"
2258 esac
2261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2262 if test -n "$MAGIC_CMD"; then
2263 echo "$ac_t""$MAGIC_CMD" 1>&6
2264 else
2265 echo "$ac_t""no" 1>&6
2268 else
2269 MAGIC_CMD=:
2275 esac
2277 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2278 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2280 echo "configure:2281: checking for $ac_word" >&5
2281 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2283 else
2284 if test -n "$RANLIB"; then
2285 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2286 else
2287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2288 ac_dummy="$PATH"
2289 for ac_dir in $ac_dummy; do
2290 test -z "$ac_dir" && ac_dir=.
2291 if test -f $ac_dir/$ac_word; then
2292 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2293 break
2295 done
2296 IFS="$ac_save_ifs"
2299 RANLIB="$ac_cv_prog_RANLIB"
2300 if test -n "$RANLIB"; then
2301 echo "$ac_t""$RANLIB" 1>&6
2302 else
2303 echo "$ac_t""no" 1>&6
2307 if test -z "$ac_cv_prog_RANLIB"; then
2308 if test -n "$ac_tool_prefix"; then
2309 # Extract the first word of "ranlib", so it can be a program name with args.
2310 set dummy ranlib; ac_word=$2
2311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2312 echo "configure:2313: checking for $ac_word" >&5
2313 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2314 echo $ac_n "(cached) $ac_c" 1>&6
2315 else
2316 if test -n "$RANLIB"; then
2317 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2318 else
2319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2320 ac_dummy="$PATH"
2321 for ac_dir in $ac_dummy; do
2322 test -z "$ac_dir" && ac_dir=.
2323 if test -f $ac_dir/$ac_word; then
2324 ac_cv_prog_RANLIB="ranlib"
2325 break
2327 done
2328 IFS="$ac_save_ifs"
2329 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2332 RANLIB="$ac_cv_prog_RANLIB"
2333 if test -n "$RANLIB"; then
2334 echo "$ac_t""$RANLIB" 1>&6
2335 else
2336 echo "$ac_t""no" 1>&6
2339 else
2340 RANLIB=":"
2344 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2345 set dummy ${ac_tool_prefix}strip; ac_word=$2
2346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2347 echo "configure:2348: checking for $ac_word" >&5
2348 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2349 echo $ac_n "(cached) $ac_c" 1>&6
2350 else
2351 if test -n "$STRIP"; then
2352 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2353 else
2354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2355 ac_dummy="$PATH"
2356 for ac_dir in $ac_dummy; do
2357 test -z "$ac_dir" && ac_dir=.
2358 if test -f $ac_dir/$ac_word; then
2359 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2360 break
2362 done
2363 IFS="$ac_save_ifs"
2366 STRIP="$ac_cv_prog_STRIP"
2367 if test -n "$STRIP"; then
2368 echo "$ac_t""$STRIP" 1>&6
2369 else
2370 echo "$ac_t""no" 1>&6
2374 if test -z "$ac_cv_prog_STRIP"; then
2375 if test -n "$ac_tool_prefix"; then
2376 # Extract the first word of "strip", so it can be a program name with args.
2377 set dummy strip; ac_word=$2
2378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2379 echo "configure:2380: checking for $ac_word" >&5
2380 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2382 else
2383 if test -n "$STRIP"; then
2384 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2385 else
2386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2387 ac_dummy="$PATH"
2388 for ac_dir in $ac_dummy; do
2389 test -z "$ac_dir" && ac_dir=.
2390 if test -f $ac_dir/$ac_word; then
2391 ac_cv_prog_STRIP="strip"
2392 break
2394 done
2395 IFS="$ac_save_ifs"
2396 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2399 STRIP="$ac_cv_prog_STRIP"
2400 if test -n "$STRIP"; then
2401 echo "$ac_t""$STRIP" 1>&6
2402 else
2403 echo "$ac_t""no" 1>&6
2406 else
2407 STRIP=":"
2412 # Check for any special flags to pass to ltconfig.
2413 libtool_flags="--cache-file=$cache_file"
2414 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2415 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2416 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2417 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2418 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2419 libtool_flags="$libtool_flags --enable-dlopen"
2421 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2422 if test "${enable_libtool_lock+set}" = set; then
2423 enableval="$enable_libtool_lock"
2427 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2428 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2430 # Check whether --with-pic or --without-pic was given.
2431 if test "${with_pic+set}" = set; then
2432 withval="$with_pic"
2433 pic_mode="$withval"
2434 else
2435 pic_mode=default
2438 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2439 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2441 # Some flags need to be propagated to the compiler or linker for good
2442 # libtool support.
2443 case $host in
2444 *-*-irix6*)
2445 # Find out which ABI we are using.
2446 echo '#line 2447 "configure"' > conftest.$ac_ext
2447 if { (eval echo configure:2448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2448 case `/usr/bin/file conftest.$ac_objext` in
2449 *32-bit*)
2450 LD="${LD-ld} -32"
2452 *N32*)
2453 LD="${LD-ld} -n32"
2455 *64-bit*)
2456 LD="${LD-ld} -64"
2458 esac
2460 rm -rf conftest*
2463 *-*-sco3.2v5*)
2464 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2465 SAVE_CFLAGS="$CFLAGS"
2466 CFLAGS="$CFLAGS -belf"
2467 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2468 echo "configure:2469: checking whether the C compiler needs -belf" >&5
2469 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2470 echo $ac_n "(cached) $ac_c" 1>&6
2471 else
2473 ac_ext=c
2474 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2477 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2478 cross_compiling=$ac_cv_prog_cc_cross
2480 cat > conftest.$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2484 int main() {
2486 ; return 0; }
2488 if { (eval echo configure:2489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2489 rm -rf conftest*
2490 lt_cv_cc_needs_belf=yes
2491 else
2492 echo "configure: failed program was:" >&5
2493 cat conftest.$ac_ext >&5
2494 rm -rf conftest*
2495 lt_cv_cc_needs_belf=no
2497 rm -f conftest*
2498 ac_ext=c
2499 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2500 ac_cpp='$CPP $CPPFLAGS'
2501 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2502 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2503 cross_compiling=$ac_cv_prog_cc_cross
2507 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2508 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2509 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2510 CFLAGS="$SAVE_CFLAGS"
2515 esac
2517 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2518 echo "configure:2519: checking how to run the C++ preprocessor" >&5
2519 if test -z "$CXXCPP"; then
2520 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2522 else
2523 ac_ext=C
2524 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2525 ac_cpp='$CXXCPP $CPPFLAGS'
2526 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2527 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2528 cross_compiling=$ac_cv_prog_cxx_cross
2529 CXXCPP="${CXX-g++} -E"
2530 cat > conftest.$ac_ext <<EOF
2531 #line 2532 "configure"
2532 #include "confdefs.h"
2533 #include <stdlib.h>
2535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2536 { (eval echo configure:2537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2538 if test -z "$ac_err"; then
2540 else
2541 echo "$ac_err" >&5
2542 echo "configure: failed program was:" >&5
2543 cat conftest.$ac_ext >&5
2544 rm -rf conftest*
2545 CXXCPP=/lib/cpp
2547 rm -f conftest*
2548 ac_cv_prog_CXXCPP="$CXXCPP"
2549 ac_ext=c
2550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2551 ac_cpp='$CPP $CPPFLAGS'
2552 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2553 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2554 cross_compiling=$ac_cv_prog_cc_cross
2557 CXXCPP="$ac_cv_prog_CXXCPP"
2558 echo "$ac_t""$CXXCPP" 1>&6
2561 # Save cache, so that ltconfig can load it
2562 cat > confcache <<\EOF
2563 # This file is a shell script that caches the results of configure
2564 # tests run on this system so they can be shared between configure
2565 # scripts and configure runs. It is not useful on other systems.
2566 # If it contains results you don't want to keep, you may remove or edit it.
2568 # By default, configure uses ./config.cache as the cache file,
2569 # creating it if it does not exist already. You can give configure
2570 # the --cache-file=FILE option to use a different cache file; that is
2571 # what configure does when it calls configure scripts in
2572 # subdirectories, so they share the cache.
2573 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2574 # config.status only pays attention to the cache file if you give it the
2575 # --recheck option to rerun configure.
2578 # The following way of writing the cache mishandles newlines in values,
2579 # but we know of no workaround that is simple, portable, and efficient.
2580 # So, don't put newlines in cache variables' values.
2581 # Ultrix sh set writes to stderr and can't be redirected directly,
2582 # and sets the high bit in the cache file unless we assign to the vars.
2583 (set) 2>&1 |
2584 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2585 *ac_space=\ *)
2586 # `set' does not quote correctly, so add quotes (double-quote substitution
2587 # turns \\\\ into \\, and sed turns \\ into \).
2588 sed -n \
2589 -e "s/'/'\\\\''/g" \
2590 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2593 # `set' quotes correctly as required by POSIX, so do not add quotes.
2594 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2596 esac >> confcache
2597 if cmp -s $cache_file confcache; then
2599 else
2600 if test -w $cache_file; then
2601 echo "updating cache $cache_file"
2602 cat confcache > $cache_file
2603 else
2604 echo "not updating unwritable cache $cache_file"
2607 rm -f confcache
2610 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2611 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2612 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2613 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2614 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2615 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2616 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2617 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2618 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2619 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2621 # Reload cache, that may have been modified by ltconfig
2622 if test -r "$cache_file"; then
2623 echo "loading cache $cache_file"
2624 . $cache_file
2625 else
2626 echo "creating cache $cache_file"
2627 > $cache_file
2631 # This can be used to rebuild libtool when needed
2632 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2634 # Always use our own libtool.
2635 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2637 # Redirect the config.log output again, so that the ltconfig log is not
2638 # clobbered by the next message.
2639 exec 5>>./config.log
2643 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2644 lt_save_CC="$CC"
2645 lt_save_CFLAGS="$CFLAGS"
2646 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2647 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2648 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2649 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2650 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2651 deplibs_check_method="$deplibs_check_method" \
2652 file_magic_cmd="$file_magic_cmd" \
2653 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2654 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2655 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2656 CC="$lt_save_CC"
2657 CFLAGS="$lt_save_CFLAGS"
2659 # Redirect the config.log output again, so that the ltconfig log is not
2660 # clobbered by the next message.
2661 exec 5>>./config.log
2671 # Check for c++ or library specific bits that don't require linking.
2672 #GLIBCPP_CHECK_COMPILER_VERSION
2673 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2674 echo "configure:2675: checking for GNU make" >&5
2675 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2677 else
2678 _cv_gnu_make_command='' ;
2679 for a in "${MAKE-make}" make gmake gnumake ; do
2680 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2681 then
2682 _cv_gnu_make_command=$a ;
2683 break;
2685 done ;
2689 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2690 if test "x$_cv_gnu_make_command" != "x" ; then
2691 ifGNUmake='' ;
2692 else
2693 ifGNUmake='#' ;
2698 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2699 # Check whether --enable-debug or --disable-debug was given.
2700 if test "${enable_debug+set}" = set; then
2701 enableval="$enable_debug"
2702 case "${enableval}" in
2703 yes) enable_debug=yes ;;
2704 no) enable_debug=no ;;
2705 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2706 esac
2707 else
2708 enable_debug=no
2711 case "${enable_debug}" in
2712 yes)
2713 DEBUG_FLAGS='-O0 -ggdb3'
2715 no)
2716 DEBUG_FLAGS='-g'
2718 esac
2721 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2722 echo "configure:2723: checking how to run the C preprocessor" >&5
2723 # On Suns, sometimes $CPP names a directory.
2724 if test -n "$CPP" && test -d "$CPP"; then
2725 CPP=
2727 if test -z "$CPP"; then
2728 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2730 else
2731 # This must be in double quotes, not single quotes, because CPP may get
2732 # substituted into the Makefile and "${CC-cc}" will confuse make.
2733 CPP="${CC-cc} -E"
2734 # On the NeXT, cc -E runs the code through the compiler's parser,
2735 # not just through cpp.
2736 cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2739 #include <assert.h>
2740 Syntax Error
2742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2743 { (eval echo configure:2744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2745 if test -z "$ac_err"; then
2747 else
2748 echo "$ac_err" >&5
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2751 rm -rf conftest*
2752 CPP="${CC-cc} -E -traditional-cpp"
2753 cat > conftest.$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2756 #include <assert.h>
2757 Syntax Error
2759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2760 { (eval echo configure:2761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2762 if test -z "$ac_err"; then
2764 else
2765 echo "$ac_err" >&5
2766 echo "configure: failed program was:" >&5
2767 cat conftest.$ac_ext >&5
2768 rm -rf conftest*
2769 CPP="${CC-cc} -nologo -E"
2770 cat > conftest.$ac_ext <<EOF
2771 #line 2772 "configure"
2772 #include "confdefs.h"
2773 #include <assert.h>
2774 Syntax Error
2776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2777 { (eval echo configure:2778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2779 if test -z "$ac_err"; then
2781 else
2782 echo "$ac_err" >&5
2783 echo "configure: failed program was:" >&5
2784 cat conftest.$ac_ext >&5
2785 rm -rf conftest*
2786 CPP=/lib/cpp
2788 rm -f conftest*
2790 rm -f conftest*
2792 rm -f conftest*
2793 ac_cv_prog_CPP="$CPP"
2795 CPP="$ac_cv_prog_CPP"
2796 else
2797 ac_cv_prog_CPP="$CPP"
2799 echo "$ac_t""$CPP" 1>&6
2802 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2803 echo "configure:2804: checking for cstdio to use" >&5
2804 # Check whether --enable-cstdio or --disable-cstdio was given.
2805 if test "${enable_cstdio+set}" = set; then
2806 enableval="$enable_cstdio"
2807 if test x$enable_cstdio = xno; then
2808 enable_cstdio=stdio
2810 else
2811 enable_cstdio=stdio
2815 enable_cstdio_flag=$enable_cstdio
2817 case x${enable_cstdio_flag} in
2818 xlibio)
2819 CSTDIO_H=config/io/c_io_libio.h
2820 BASIC_FILE_H=config/io/basic_file_libio.h
2821 BASIC_FILE_CC=config/io/basic_file_libio.cc
2822 echo "$ac_t""libio" 1>&6
2824 # see if we are on a system with libio native (ie, linux)
2825 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2826 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2827 echo "configure:2828: checking for libio.h" >&5
2828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2830 else
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 #include <libio.h>
2836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2837 { (eval echo configure:2838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2839 if test -z "$ac_err"; then
2840 rm -rf conftest*
2841 eval "ac_cv_header_$ac_safe=yes"
2842 else
2843 echo "$ac_err" >&5
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2846 rm -rf conftest*
2847 eval "ac_cv_header_$ac_safe=no"
2849 rm -f conftest*
2851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 has_libio=yes
2854 else
2855 echo "$ac_t""no" 1>&6
2856 has_libio=no
2860 # Need to check and see what version of glibc is being used. If
2861 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2862 # compile most of libio for linux systems.
2863 if test x$has_libio = x"yes"; then
2864 case "$target" in
2865 *-*-linux*)
2866 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2867 echo "configure:2868: checking for glibc version >= 2.2" >&5
2868 cat > conftest.$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2872 #include <features.h>
2873 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2875 #endif
2878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2879 egrep "ok" >/dev/null 2>&1; then
2880 rm -rf conftest*
2881 glibc_satisfactory=yes
2882 else
2883 rm -rf conftest*
2884 glibc_satisfactory=no
2886 rm -f conftest*
2888 echo "$ac_t""$glibc_satisfactory" 1>&6
2890 esac
2892 # XXX at the moment, admit defeat and force the recompilation
2893 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2894 glibc_satisfactory=no
2896 if test x$glibc_satisfactory = x"yes"; then
2897 need_libio=no
2898 need_wlibio=no
2899 else
2900 need_libio=yes
2901 # bkoz XXX need to add checks to enable this
2902 # pme XXX here's a first pass at such a check
2903 if test x$enable_c_mbchar != xno; then
2904 need_wlibio=yes
2905 else
2906 need_wlibio=no
2910 else
2911 # Using libio, but <libio.h> doesn't exist on the target system. . .
2912 need_libio=yes
2913 # bkoz XXX need to add checks to enable this
2914 # pme XXX here's a first pass at such a check
2915 if test x$enable_c_mbchar != xno; then
2916 need_wlibio=yes
2917 else
2918 need_wlibio=no
2922 xstdio | x | xno | xnone | xyes)
2923 # default
2924 CSTDIO_H=config/io/c_io_stdio.h
2925 BASIC_FILE_H=config/io/basic_file_stdio.h
2926 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2927 echo "$ac_t""stdio" 1>&6
2929 # We're not using stdio.
2930 need_libio=no
2931 need_wlibio=no
2934 echo "$enable_cstdio is an unknown io package" 1>&2
2935 exit 1
2937 esac
2942 # 2000-08-04 bkoz hack
2943 CCODECVT_C=config/io/c_io_libio_codecvt.c
2945 # 2000-08-04 bkoz hack
2949 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2950 GLIBCPP_BUILD_LIBIO_TRUE=
2951 GLIBCPP_BUILD_LIBIO_FALSE='#'
2952 else
2953 GLIBCPP_BUILD_LIBIO_TRUE='#'
2954 GLIBCPP_BUILD_LIBIO_FALSE=
2958 if test "$need_libio" = yes; then
2959 GLIBCPP_NEED_LIBIO_TRUE=
2960 GLIBCPP_NEED_LIBIO_FALSE='#'
2961 else
2962 GLIBCPP_NEED_LIBIO_TRUE='#'
2963 GLIBCPP_NEED_LIBIO_FALSE=
2967 if test "$need_wlibio" = yes; then
2968 GLIBCPP_NEED_WLIBIO_TRUE=
2969 GLIBCPP_NEED_WLIBIO_FALSE='#'
2970 else
2971 GLIBCPP_NEED_WLIBIO_TRUE='#'
2972 GLIBCPP_NEED_WLIBIO_FALSE=
2974 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2975 libio_la=../libio/libio.la
2976 else
2977 libio_la=
2982 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2983 echo "configure:2984: checking for clocale to use" >&5
2984 # Check whether --enable-clocale or --disable-clocale was given.
2985 if test "${enable_clocale+set}" = set; then
2986 enableval="$enable_clocale"
2987 if test x$enable_clocale = xno; then
2988 enable_clocale=no
2990 else
2991 enable_clocale=no
2995 enable_clocale_flag=$enable_clocale
2997 if test x$enable_clocale_flag = xno; then
2998 case x${target_os} in
2999 xlinux* | xgnu*)
3000 cat > conftest.$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3004 #include <features.h>
3005 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3006 _GLIBCPP_ok
3007 #endif
3010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3011 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3012 rm -rf conftest*
3013 enable_clocale_flag=gnu
3014 else
3015 rm -rf conftest*
3016 enable_clocale_flag=generic
3018 rm -f conftest*
3021 # Test for bugs early in glibc-2.2.x series
3022 if test x$enable_clocale_flag = xgnu; then
3023 if test "$cross_compiling" = yes; then
3024 enable_clocale_flag=generic
3025 else
3026 cat > conftest.$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3030 #define _GNU_SOURCE 1
3031 #include <locale.h>
3032 int main()
3034 const char __one[] = "Äuglein Augmen";
3035 const char __two[] = "Äuglein";
3036 int i;
3037 int j;
3038 __locale_t loc;
3039 __locale_t loc_dup;
3040 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3041 loc_dup = __duplocale(loc);
3042 i = __strcoll_l(__one, __two, loc);
3043 j = __strcoll_l(__one, __two, loc_dup);
3044 return 0;
3048 if { (eval echo configure:3049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3049 then
3050 enable_clocale_flag=gnu
3051 else
3052 echo "configure: failed program was:" >&5
3053 cat conftest.$ac_ext >&5
3054 rm -fr conftest*
3055 enable_clocale_flag=generic
3057 rm -fr conftest*
3062 # ... at some point put __strxfrm_l tests in as well.
3065 enable_clocale_flag=generic
3067 esac
3070 # Check whether --enable-nls or --disable-nls was given.
3071 if test "${enable_nls+set}" = set; then
3072 enableval="$enable_nls"
3074 else
3075 enable_nls=yes
3078 USE_NLS=no
3080 case x${enable_clocale_flag} in
3081 xgeneric)
3082 echo "$ac_t""generic" 1>&6
3084 CLOCALE_H=config/locale/generic/c_locale.h
3085 CLOCALE_CC=config/locale/generic/c_locale.cc
3086 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3087 CCOLLATE_CC=config/locale/generic/collate_members.cc
3088 CCTYPE_CC=config/locale/generic/ctype_members.cc
3089 CMESSAGES_H=config/locale/generic/messages_members.h
3090 CMESSAGES_CC=config/locale/generic/messages_members.cc
3091 CMONEY_CC=config/locale/generic/monetary_members.cc
3092 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3093 CTIME_CC=config/locale/generic/time_members.cc
3095 xgnu)
3096 echo "$ac_t""gnu" 1>&6
3098 # Declare intention to use gettext, and add support for specific
3099 # languages.
3100 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3101 ALL_LINGUAS="de fr"
3103 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3104 # Extract the first word of "msgfmt", so it can be a program name with args.
3105 set dummy msgfmt; ac_word=$2
3106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3107 echo "configure:3108: checking for $ac_word" >&5
3108 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3110 else
3111 if test -n "$check_msgfmt"; then
3112 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3113 else
3114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3115 ac_dummy="$PATH"
3116 for ac_dir in $ac_dummy; do
3117 test -z "$ac_dir" && ac_dir=.
3118 if test -f $ac_dir/$ac_word; then
3119 ac_cv_prog_check_msgfmt="yes"
3120 break
3122 done
3123 IFS="$ac_save_ifs"
3124 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3127 check_msgfmt="$ac_cv_prog_check_msgfmt"
3128 if test -n "$check_msgfmt"; then
3129 echo "$ac_t""$check_msgfmt" 1>&6
3130 else
3131 echo "$ac_t""no" 1>&6
3134 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3135 USE_NLS=yes
3137 # Export the build objects.
3138 for ling in $ALL_LINGUAS; do \
3139 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3140 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3141 done
3145 CLOCALE_H=config/locale/gnu/c_locale.h
3146 CLOCALE_CC=config/locale/gnu/c_locale.cc
3147 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3148 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3149 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3150 CMESSAGES_H=config/locale/gnu/messages_members.h
3151 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3152 CMONEY_CC=config/locale/gnu/monetary_members.cc
3153 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3154 CTIME_CC=config/locale/gnu/time_members.cc
3156 xieee_1003.1-2001)
3157 echo "$ac_t""generic" 1>&6
3159 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3160 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3161 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3162 CCOLLATE_CC=config/locale/generic/collate_members.cc
3163 CCTYPE_CC=config/locale/generic/ctype_members.cc
3164 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3165 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3166 CMONEY_CC=config/locale/generic/monetary_members.cc
3167 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3168 CTIME_CC=config/locale/generic/time_members.cc
3171 echo "$enable_clocale is an unknown locale package" 1>&2
3172 exit 1
3174 esac
3176 # This is where the testsuite looks for locale catalogs, using the
3177 # -DLOCALEDIR define during testsuite compilation.
3178 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3193 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3194 if test "${enable_c_mbchar+set}" = set; then
3195 enableval="$enable_c_mbchar"
3196 case "$enableval" in
3197 yes) enable_c_mbchar=yes ;;
3198 no) enable_c_mbchar=no ;;
3199 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3200 esac
3201 else
3202 enable_c_mbchar=yes
3206 # Check whether --enable-c99 or --disable-c99 was given.
3207 if test "${enable_c99+set}" = set; then
3208 enableval="$enable_c99"
3209 case "$enableval" in
3210 yes) enable_c99=yes ;;
3211 no) enable_c99=no ;;
3212 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3213 esac
3214 else
3215 enable_c99=yes
3219 ac_ext=C
3220 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3221 ac_cpp='$CXXCPP $CPPFLAGS'
3222 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3223 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3224 cross_compiling=$ac_cv_prog_cxx_cross
3227 # Check for the existence of <math.h> functions used if C99 is enabled.
3228 ac_c99_math=yes;
3229 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3230 echo "configure:3231: checking for ISO C99 support in <math.h>" >&5
3231 cat > conftest.$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3234 #include <math.h>
3235 int main() {
3236 fpclassify(0.0);
3237 ; return 0; }
3239 if { (eval echo configure:3240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3241 else
3242 echo "configure: failed program was:" >&5
3243 cat conftest.$ac_ext >&5
3244 rm -rf conftest*
3245 ac_c99_math=no
3247 rm -f conftest*
3248 cat > conftest.$ac_ext <<EOF
3249 #line 3250 "configure"
3250 #include "confdefs.h"
3251 #include <math.h>
3252 int main() {
3253 isfinite(0.0);
3254 ; return 0; }
3256 if { (eval echo configure:3257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3258 else
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3261 rm -rf conftest*
3262 ac_c99_math=no
3264 rm -f conftest*
3265 cat > conftest.$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3268 #include <math.h>
3269 int main() {
3270 isinf(0.0);
3271 ; return 0; }
3273 if { (eval echo configure:3274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3275 else
3276 echo "configure: failed program was:" >&5
3277 cat conftest.$ac_ext >&5
3278 rm -rf conftest*
3279 ac_c99_math=no
3281 rm -f conftest*
3282 cat > conftest.$ac_ext <<EOF
3283 #line 3284 "configure"
3284 #include "confdefs.h"
3285 #include <math.h>
3286 int main() {
3287 isnan(0.0);
3288 ; return 0; }
3290 if { (eval echo configure:3291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3292 else
3293 echo "configure: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3295 rm -rf conftest*
3296 ac_c99_math=no
3298 rm -f conftest*
3299 cat > conftest.$ac_ext <<EOF
3300 #line 3301 "configure"
3301 #include "confdefs.h"
3302 #include <math.h>
3303 int main() {
3304 isnormal(0.0);
3305 ; return 0; }
3307 if { (eval echo configure:3308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3309 else
3310 echo "configure: failed program was:" >&5
3311 cat conftest.$ac_ext >&5
3312 rm -rf conftest*
3313 ac_c99_math=no
3315 rm -f conftest*
3316 cat > conftest.$ac_ext <<EOF
3317 #line 3318 "configure"
3318 #include "confdefs.h"
3319 #include <math.h>
3320 int main() {
3321 signbit(0.0);
3322 ; return 0; }
3324 if { (eval echo configure:3325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3326 else
3327 echo "configure: failed program was:" >&5
3328 cat conftest.$ac_ext >&5
3329 rm -rf conftest*
3330 ac_c99_math=no
3332 rm -f conftest*
3333 cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 #include <math.h>
3337 int main() {
3338 isgreater(0.0,0.0);
3339 ; return 0; }
3341 if { (eval echo configure:3342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3343 else
3344 echo "configure: failed program was:" >&5
3345 cat conftest.$ac_ext >&5
3346 rm -rf conftest*
3347 ac_c99_math=no
3349 rm -f conftest*
3350 cat > conftest.$ac_ext <<EOF
3351 #line 3352 "configure"
3352 #include "confdefs.h"
3353 #include <math.h>
3354 int main() {
3355 isgreaterequal(0.0,0.0);
3356 ; return 0; }
3358 if { (eval echo configure:3359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3360 else
3361 echo "configure: failed program was:" >&5
3362 cat conftest.$ac_ext >&5
3363 rm -rf conftest*
3364 ac_c99_math=no
3366 rm -f conftest*
3367 cat > conftest.$ac_ext <<EOF
3368 #line 3369 "configure"
3369 #include "confdefs.h"
3370 #include <math.h>
3371 int main() {
3372 isless(0.0,0.0);
3373 ; return 0; }
3375 if { (eval echo configure:3376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3377 else
3378 echo "configure: failed program was:" >&5
3379 cat conftest.$ac_ext >&5
3380 rm -rf conftest*
3381 ac_c99_math=no
3383 rm -f conftest*
3384 cat > conftest.$ac_ext <<EOF
3385 #line 3386 "configure"
3386 #include "confdefs.h"
3387 #include <math.h>
3388 int main() {
3389 islessequal(0.0,0.0);
3390 ; return 0; }
3392 if { (eval echo configure:3393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3394 else
3395 echo "configure: failed program was:" >&5
3396 cat conftest.$ac_ext >&5
3397 rm -rf conftest*
3398 ac_c99_math=no
3400 rm -f conftest*
3401 cat > conftest.$ac_ext <<EOF
3402 #line 3403 "configure"
3403 #include "confdefs.h"
3404 #include <math.h>
3405 int main() {
3406 islessgreater(0.0,0.0);
3407 ; return 0; }
3409 if { (eval echo configure:3410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3411 else
3412 echo "configure: failed program was:" >&5
3413 cat conftest.$ac_ext >&5
3414 rm -rf conftest*
3415 ac_c99_math=no
3417 rm -f conftest*
3418 cat > conftest.$ac_ext <<EOF
3419 #line 3420 "configure"
3420 #include "confdefs.h"
3421 #include <math.h>
3422 int main() {
3423 isunordered(0.0,0.0);
3424 ; return 0; }
3426 if { (eval echo configure:3427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3428 else
3429 echo "configure: failed program was:" >&5
3430 cat conftest.$ac_ext >&5
3431 rm -rf conftest*
3432 ac_c99_math=no
3434 rm -f conftest*
3435 echo "$ac_t""$ac_c99_math" 1>&6
3437 # Check for the existence in <stdio.h> of vscanf, et. al.
3438 ac_c99_stdio=yes;
3439 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3440 echo "configure:3441: checking for ISO C99 support in <stdio.h>" >&5
3441 cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3444 #include <stdio.h>
3445 int main() {
3446 snprintf("12", 0, "%i");
3447 ; return 0; }
3449 if { (eval echo configure:3450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3451 else
3452 echo "configure: failed program was:" >&5
3453 cat conftest.$ac_ext >&5
3454 rm -rf conftest*
3455 ac_c99_stdio=no
3457 rm -f conftest*
3458 cat > conftest.$ac_ext <<EOF
3459 #line 3460 "configure"
3460 #include "confdefs.h"
3461 #include <stdio.h>
3462 #include <stdarg.h>
3463 void foo(char* fmt, ...)
3464 {va_list args; va_start(args, fmt);
3465 vfscanf(stderr, "%i", args);}
3466 int main() {
3468 ; return 0; }
3470 if { (eval echo configure:3471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3472 else
3473 echo "configure: failed program was:" >&5
3474 cat conftest.$ac_ext >&5
3475 rm -rf conftest*
3476 ac_c99_stdio=no
3478 rm -f conftest*
3479 cat > conftest.$ac_ext <<EOF
3480 #line 3481 "configure"
3481 #include "confdefs.h"
3482 #include <stdio.h>
3483 #include <stdarg.h>
3484 void foo(char* fmt, ...)
3485 {va_list args; va_start(args, fmt);
3486 vscanf("%i", args);}
3487 int main() {
3489 ; return 0; }
3491 if { (eval echo configure:3492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3493 else
3494 echo "configure: failed program was:" >&5
3495 cat conftest.$ac_ext >&5
3496 rm -rf conftest*
3497 ac_c99_stdio=no
3499 rm -f conftest*
3500 cat > conftest.$ac_ext <<EOF
3501 #line 3502 "configure"
3502 #include "confdefs.h"
3503 #include <stdio.h>
3504 #include <stdarg.h>
3505 void foo(char* fmt, ...)
3506 {va_list args; va_start(args, fmt);
3507 vsnprintf(fmt, 0, "%i", args);}
3508 int main() {
3510 ; return 0; }
3512 if { (eval echo configure:3513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3514 else
3515 echo "configure: failed program was:" >&5
3516 cat conftest.$ac_ext >&5
3517 rm -rf conftest*
3518 ac_c99_stdio=no
3520 rm -f conftest*
3521 cat > conftest.$ac_ext <<EOF
3522 #line 3523 "configure"
3523 #include "confdefs.h"
3524 #include <stdio.h>
3525 #include <stdarg.h>
3526 void foo(char* fmt, ...)
3527 {va_list args; va_start(args, fmt);
3528 vsscanf(fmt, "%i", args);}
3529 int main() {
3531 ; return 0; }
3533 if { (eval echo configure:3534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3535 else
3536 echo "configure: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3538 rm -rf conftest*
3539 ac_c99_stdio=no
3541 rm -f conftest*
3542 echo "$ac_t""$ac_c99_stdio" 1>&6
3544 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3545 ac_c99_stdlib=yes;
3546 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3547 echo "configure:3548: checking for lldiv_t declaration" >&5
3548 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3549 echo $ac_n "(cached) $ac_c" 1>&6
3550 else
3552 cat > conftest.$ac_ext <<EOF
3553 #line 3554 "configure"
3554 #include "confdefs.h"
3555 #include <stdlib.h>
3556 int main() {
3557 lldiv_t mydivt;
3558 ; return 0; }
3560 if { (eval echo configure:3561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3561 rm -rf conftest*
3562 ac_c99_lldiv_t=yes
3563 else
3564 echo "configure: failed program was:" >&5
3565 cat conftest.$ac_ext >&5
3566 rm -rf conftest*
3567 ac_c99_lldiv_t=no
3569 rm -f conftest*
3573 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3575 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3576 echo "configure:3577: checking for ISO C99 support in <stdlib.h>" >&5
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3580 #include <stdlib.h>
3581 int main() {
3582 char* tmp; strtof("gnu", &tmp);
3583 ; return 0; }
3585 if { (eval echo configure:3586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3587 else
3588 echo "configure: failed program was:" >&5
3589 cat conftest.$ac_ext >&5
3590 rm -rf conftest*
3591 ac_c99_stdlib=no
3593 rm -f conftest*
3594 cat > conftest.$ac_ext <<EOF
3595 #line 3596 "configure"
3596 #include "confdefs.h"
3597 #include <stdlib.h>
3598 int main() {
3599 char* tmp; strtold("gnu", &tmp);
3600 ; return 0; }
3602 if { (eval echo configure:3603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3604 else
3605 echo "configure: failed program was:" >&5
3606 cat conftest.$ac_ext >&5
3607 rm -rf conftest*
3608 ac_c99_stdlib=no
3610 rm -f conftest*
3611 cat > conftest.$ac_ext <<EOF
3612 #line 3613 "configure"
3613 #include "confdefs.h"
3614 #include <stdlib.h>
3615 int main() {
3616 llabs(10);
3617 ; return 0; }
3619 if { (eval echo configure:3620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3621 else
3622 echo "configure: failed program was:" >&5
3623 cat conftest.$ac_ext >&5
3624 rm -rf conftest*
3625 ac_c99_stdlib=no
3627 rm -f conftest*
3628 cat > conftest.$ac_ext <<EOF
3629 #line 3630 "configure"
3630 #include "confdefs.h"
3631 #include <stdlib.h>
3632 int main() {
3633 lldiv(10,1);
3634 ; return 0; }
3636 if { (eval echo configure:3637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3638 else
3639 echo "configure: failed program was:" >&5
3640 cat conftest.$ac_ext >&5
3641 rm -rf conftest*
3642 ac_c99_stdlib=no
3644 rm -f conftest*
3645 cat > conftest.$ac_ext <<EOF
3646 #line 3647 "configure"
3647 #include "confdefs.h"
3648 #include <stdlib.h>
3649 int main() {
3650 atoll("10");
3651 ; return 0; }
3653 if { (eval echo configure:3654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3655 else
3656 echo "configure: failed program was:" >&5
3657 cat conftest.$ac_ext >&5
3658 rm -rf conftest*
3659 ac_c99_stdlib=no
3661 rm -f conftest*
3662 cat > conftest.$ac_ext <<EOF
3663 #line 3664 "configure"
3664 #include "confdefs.h"
3665 #include <stdlib.h>
3666 int main() {
3667 _Exit(0);
3668 ; return 0; }
3670 if { (eval echo configure:3671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3672 else
3673 echo "configure: failed program was:" >&5
3674 cat conftest.$ac_ext >&5
3675 rm -rf conftest*
3676 ac_c99_stdlib=no
3678 rm -f conftest*
3679 if test x"$ac_c99_lldiv_t" = x"no"; then
3680 ac_c99_stdlib=no;
3681 fi;
3682 echo "$ac_t""$ac_c99_stdlib" 1>&6
3684 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3685 # XXX the wchar.h checks should be rolled into the general C99 bits.
3686 ac_c99_wchar=yes;
3687 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3688 echo "configure:3689: checking for additional ISO C99 support in <wchar.h>" >&5
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3692 #include <wchar.h>
3693 int main() {
3694 wcstold(L"10.0", NULL);
3695 ; return 0; }
3697 if { (eval echo configure:3698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3699 else
3700 echo "configure: failed program was:" >&5
3701 cat conftest.$ac_ext >&5
3702 rm -rf conftest*
3703 ac_c99_wchar=no
3705 rm -f conftest*
3706 cat > conftest.$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3709 #include <wchar.h>
3710 int main() {
3711 wcstoll(L"10", NULL, 10);
3712 ; return 0; }
3714 if { (eval echo configure:3715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3716 else
3717 echo "configure: failed program was:" >&5
3718 cat conftest.$ac_ext >&5
3719 rm -rf conftest*
3720 ac_c99_wchar=no
3722 rm -f conftest*
3723 cat > conftest.$ac_ext <<EOF
3724 #line 3725 "configure"
3725 #include "confdefs.h"
3726 #include <wchar.h>
3727 int main() {
3728 wcstoull(L"10", NULL, 10);
3729 ; return 0; }
3731 if { (eval echo configure:3732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3733 else
3734 echo "configure: failed program was:" >&5
3735 cat conftest.$ac_ext >&5
3736 rm -rf conftest*
3737 ac_c99_wchar=no
3739 rm -f conftest*
3740 echo "$ac_t""$ac_c99_wchar" 1>&6
3742 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3743 echo "configure:3744: checking for enabled ISO C99 support" >&5
3744 if test x"$ac_c99_math" = x"no" ||
3745 test x"$ac_c99_stdio" = x"no" ||
3746 test x"$ac_c99_stdlib" = x"no" ||
3747 test x"$ac_c99_wchar" = x"no"; then
3748 enable_c99=no;
3749 fi;
3750 echo "$ac_t""$enable_c99" 1>&6
3752 # Option parsed, now set things appropriately
3753 if test x"$enable_c99" = x"yes"; then
3754 cat >> confdefs.h <<\EOF
3755 #define _GLIBCPP_USE_C99 1
3760 ac_ext=c
3761 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3762 ac_cpp='$CPP $CPPFLAGS'
3763 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3764 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3765 cross_compiling=$ac_cv_prog_cc_cross
3769 # Check whether --enable-long-long or --disable-long-long was given.
3770 if test "${enable_long_long+set}" = set; then
3771 enableval="$enable_long_long"
3772 case "$enableval" in
3773 yes) enable_long_long=yes ;;
3774 no) enable_long_long=no ;;
3775 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3776 esac
3777 else
3778 enable_long_long=yes
3782 ac_ext=C
3783 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3784 ac_cpp='$CXXCPP $CPPFLAGS'
3785 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3786 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3787 cross_compiling=$ac_cv_prog_cxx_cross
3790 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3791 echo "configure:3792: checking for enabled long long I/O support" >&5
3792 # iostreams require strtoll, strtoull to compile
3793 cat > conftest.$ac_ext <<EOF
3794 #line 3795 "configure"
3795 #include "confdefs.h"
3796 #include <stdlib.h>
3797 int main() {
3798 char* tmp; strtoll("gnu", &tmp, 10);
3799 ; return 0; }
3801 if { (eval echo configure:3802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3803 else
3804 echo "configure: failed program was:" >&5
3805 cat conftest.$ac_ext >&5
3806 rm -rf conftest*
3807 enable_long_long=no
3809 rm -f conftest*
3810 cat > conftest.$ac_ext <<EOF
3811 #line 3812 "configure"
3812 #include "confdefs.h"
3813 #include <stdlib.h>
3814 int main() {
3815 char* tmp; strtoull("gnu", &tmp, 10);
3816 ; return 0; }
3818 if { (eval echo configure:3819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3820 else
3821 echo "configure: failed program was:" >&5
3822 cat conftest.$ac_ext >&5
3823 rm -rf conftest*
3824 enable_long_long=no
3826 rm -f conftest*
3828 # Option parsed, now set things appropriately
3829 if test x"$enable_long_long" = xyes; then
3830 cat >> confdefs.h <<\EOF
3831 #define _GLIBCPP_USE_LONG_LONG 1
3835 echo "$ac_t""$enable_long_long" 1>&6
3837 ac_ext=c
3838 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3841 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3842 cross_compiling=$ac_cv_prog_cc_cross
3845 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3846 echo "configure:3847: checking for c header strategy to use" >&5
3847 # Check whether --enable-cheaders or --disable-cheaders was given.
3848 if test "${enable_cheaders+set}" = set; then
3849 enableval="$enable_cheaders"
3851 case "$enableval" in
3853 enable_cheaders=c
3855 c_std)
3856 enable_cheaders=c_std
3858 c_shadow)
3859 enable_cheaders=c_shadow
3861 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3863 esac
3864 else
3865 enable_cheaders=c_std
3868 echo "$ac_t""$enable_cheaders" 1>&6
3870 case "$enable_cheaders" in
3871 c_shadow)
3872 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3874 c_std)
3875 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3878 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3880 esac
3885 if test "$enable_cheaders" = c; then
3886 GLIBCPP_C_HEADERS_C_TRUE=
3887 GLIBCPP_C_HEADERS_C_FALSE='#'
3888 else
3889 GLIBCPP_C_HEADERS_C_TRUE='#'
3890 GLIBCPP_C_HEADERS_C_FALSE=
3894 if test "$enable_cheaders" = c_std; then
3895 GLIBCPP_C_HEADERS_C_STD_TRUE=
3896 GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3897 else
3898 GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3899 GLIBCPP_C_HEADERS_C_STD_FALSE=
3903 if test "$c_compatibility" = yes; then
3904 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3905 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3906 else
3907 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3908 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3912 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3913 echo "configure:3914: checking for thread model used by GCC" >&5
3914 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3915 echo "$ac_t""$target_thread_file" 1>&6
3917 if test $target_thread_file != single; then
3918 cat >> confdefs.h <<\EOF
3919 #define HAVE_GTHR_DEFAULT 1
3922 cat >> confdefs.h <<\EOF
3923 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3928 glibcpp_thread_h=gthr-$target_thread_file.h
3931 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3932 if test "${enable_cxx_flags+set}" = set; then
3933 enableval="$enable_cxx_flags"
3934 case "x$enableval" in
3935 xyes)
3936 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3937 xno|x)
3938 enable_cxx_flags='' ;;
3940 enable_cxx_flags="$enableval" ;;
3941 esac
3942 else
3943 enable_cxx_flags='none'
3947 if test "$enable_cxx_flags" = "none"; then
3948 enable_cxx_flags='';
3951 if test -n "$enable_cxx_flags"; then
3952 for f in $enable_cxx_flags; do
3953 case "$f" in
3954 -fhonor-std) ;;
3955 -*) ;;
3956 *) # and we're trying to pass /what/ exactly?
3957 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3958 esac
3959 done
3961 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3965 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3966 echo "configure:3967: checking for exception model to use" >&5
3968 ac_ext=C
3969 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3970 ac_cpp='$CXXCPP $CPPFLAGS'
3971 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3972 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3973 cross_compiling=$ac_cv_prog_cxx_cross
3975 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3976 if test "${enable_sjlj_exceptions+set}" = set; then
3977 enableval="$enable_sjlj_exceptions"
3979 else
3980 cat > conftest.$ac_ext << EOF
3981 #line 3982 "configure"
3982 struct S { ~S(); };
3983 void bar();
3984 void foo()
3986 S s;
3987 bar();
3990 old_CXXFLAGS="$CXXFLAGS"
3991 CXXFLAGS=-S
3992 if { (eval echo configure:3993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3993 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3994 enable_sjlj_exceptions=yes
3995 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3996 enable_sjlj_exceptions=no
3999 CXXFLAGS="$old_CXXFLAGS"
4000 rm -f conftest*
4003 if test x$enable_sjlj_exceptions = xyes; then
4004 cat >> confdefs.h <<\EOF
4005 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4008 ac_exception_model_name=sjlj
4009 elif test x$enable_sjlj_exceptions = xno; then
4010 ac_exception_model_name="call frame"
4011 else
4012 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4014 ac_ext=c
4015 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4016 ac_cpp='$CPP $CPPFLAGS'
4017 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4018 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4019 cross_compiling=$ac_cv_prog_cc_cross
4021 echo "$ac_t""$ac_exception_model_name" 1>&6
4024 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4025 echo "configure:4026: checking for use of libunwind" >&5
4026 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4027 if test "${enable_libunwind_exceptions+set}" = set; then
4028 enableval="$enable_libunwind_exceptions"
4029 use_libunwind_exceptions=$enableval
4030 else
4031 use_libunwind_exceptions=no
4034 echo "$ac_t""$use_libunwind_exceptions" 1>&6
4035 if test x"$use_libunwind_exceptions" = xyes; then
4036 LIBUNWIND_FLAG="-lunwind"
4037 else
4038 LIBUNWIND_FLAG=""
4042 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4043 if test "${enable_concept_checks+set}" = set; then
4044 enableval="$enable_concept_checks"
4045 case "$enableval" in
4046 yes) enable_concept_checks=yes ;;
4047 no) enable_concept_checks=no ;;
4048 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4049 esac
4050 else
4051 enable_concept_checks=no
4053 if test x"$enable_concept_checks" = xyes; then
4054 cat >> confdefs.h <<\EOF
4055 #define _GLIBCPP_CONCEPT_CHECKS 1
4061 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4062 for ac_hdr in string.h stdlib.h
4064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4066 echo "configure:4067: checking for $ac_hdr" >&5
4067 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4068 echo $ac_n "(cached) $ac_c" 1>&6
4069 else
4070 cat > conftest.$ac_ext <<EOF
4071 #line 4072 "configure"
4072 #include "confdefs.h"
4073 #include <$ac_hdr>
4075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4076 { (eval echo configure:4077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4078 if test -z "$ac_err"; then
4079 rm -rf conftest*
4080 eval "ac_cv_header_$ac_safe=yes"
4081 else
4082 echo "$ac_err" >&5
4083 echo "configure: failed program was:" >&5
4084 cat conftest.$ac_ext >&5
4085 rm -rf conftest*
4086 eval "ac_cv_header_$ac_safe=no"
4088 rm -f conftest*
4090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4091 echo "$ac_t""yes" 1>&6
4092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4093 cat >> confdefs.h <<EOF
4094 #define $ac_tr_hdr 1
4097 else
4098 echo "$ac_t""no" 1>&6
4100 done
4103 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4105 # We are being configured with some form of cross compiler.
4106 GLIBCPP_IS_CROSS_COMPILING=1
4108 # This lets us hard-code the functionality we know we'll have in the cross
4109 # target environment. "Let" is a sugar-coated word placed on an especially
4110 # dull and tedious hack, actually.
4112 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4113 # that involve linking, can't be used:
4114 # "cannot open sim-crt0.o"
4115 # "cannot open crt0.o"
4116 # etc. All this is because there currently exists no unified, consistent
4117 # way for top level CC information to be passed down to target directories:
4118 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4119 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4120 # crosses can be removed.
4122 # If Canadian cross, then don't pick up tools from the build directory.
4123 # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4124 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4125 CANADIAN=yes
4126 else
4127 CANADIAN=no
4130 # Construct crosses by hand, eliminating bits that need ld...
4131 # GLIBCPP_CHECK_COMPILER_FEATURES
4132 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4133 # GLIBCPP_CHECK_MATH_SUPPORT
4135 case "$target_alias" in
4136 *-linux*)
4137 os_include_dir="os/gnu-linux"
4138 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4139 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4140 fp.h locale.h float.h inttypes.h
4142 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4143 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4144 echo "configure:4145: checking for $ac_hdr" >&5
4145 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4146 echo $ac_n "(cached) $ac_c" 1>&6
4147 else
4148 cat > conftest.$ac_ext <<EOF
4149 #line 4150 "configure"
4150 #include "confdefs.h"
4151 #include <$ac_hdr>
4153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4154 { (eval echo configure:4155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4155 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4156 if test -z "$ac_err"; then
4157 rm -rf conftest*
4158 eval "ac_cv_header_$ac_safe=yes"
4159 else
4160 echo "$ac_err" >&5
4161 echo "configure: failed program was:" >&5
4162 cat conftest.$ac_ext >&5
4163 rm -rf conftest*
4164 eval "ac_cv_header_$ac_safe=no"
4166 rm -f conftest*
4168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4169 echo "$ac_t""yes" 1>&6
4170 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4171 cat >> confdefs.h <<EOF
4172 #define $ac_tr_hdr 1
4175 else
4176 echo "$ac_t""no" 1>&6
4178 done
4180 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4183 # If we're not using GNU ld, then there's no point in even trying these
4184 # tests. Check for that first. We should have already tested for gld
4185 # by now (in libtool), but require it now just to be safe...
4186 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4187 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4190 # The name set by libtool depends on the version of libtool. Shame on us
4191 # for depending on an impl detail, but c'est la vie. Older versions used
4192 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4193 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4194 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4195 # set (hence we're using an older libtool), then set it.
4196 if test x${with_gnu_ld+set} != xset; then
4197 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4198 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4199 with_gnu_ld=no
4200 else
4201 with_gnu_ld=$ac_cv_prog_gnu_ld
4205 # Start by getting the version number. I think the libtool test already
4206 # does some of this, but throws away the result.
4208 ldver=`$LD --version 2>/dev/null | head -1 | \
4209 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4211 glibcpp_gnu_ld_version=`echo $ldver | \
4212 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4214 # Set --gc-sections.
4215 if test "$with_gnu_ld" = "notbroken"; then
4216 # GNU ld it is! Joy and bunny rabbits!
4218 # All these tests are for C++; save the language and the compiler flags.
4219 # Need to do this so that g++ won't try to link in libstdc++
4220 ac_test_CFLAGS="${CFLAGS+set}"
4221 ac_save_CFLAGS="$CFLAGS"
4222 CFLAGS='-x c++ -Wl,--gc-sections'
4224 # Check for -Wl,--gc-sections
4225 # XXX This test is broken at the moment, as symbols required for
4226 # linking are now in libsupc++ (not built yet.....). In addition,
4227 # this test has cored on solaris in the past. In addition,
4228 # --gc-sections doesn't really work at the moment (keeps on discarding
4229 # used sections, first .eh_frame and now some of the glibc sections for
4230 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4231 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4232 echo "configure:4233: checking for ld that supports -Wl,--gc-sections" >&5
4233 if test "$cross_compiling" = yes; then
4234 ac_sectionLDflags=yes
4235 else
4236 cat > conftest.$ac_ext <<EOF
4237 #line 4238 "configure"
4238 #include "confdefs.h"
4240 int main(void)
4242 try { throw 1; }
4243 catch (...) { };
4244 return 0;
4248 if { (eval echo configure:4249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4249 then
4250 ac_sectionLDflags=yes
4251 else
4252 echo "configure: failed program was:" >&5
4253 cat conftest.$ac_ext >&5
4254 rm -fr conftest*
4255 ac_sectionLDflags=no
4257 rm -fr conftest*
4260 if test "$ac_test_CFLAGS" = set; then
4261 CFLAGS="$ac_save_CFLAGS"
4262 else
4263 # this is the suspicious part
4264 CFLAGS=''
4266 if test "$ac_sectionLDflags" = "yes"; then
4267 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4269 echo "$ac_t""$ac_sectionLDflags" 1>&6
4272 # Set linker optimization flags.
4273 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4274 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4281 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4282 echo "configure:4283: checking for main in -lm" >&5
4283 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4284 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4285 echo $ac_n "(cached) $ac_c" 1>&6
4286 else
4287 ac_save_LIBS="$LIBS"
4288 LIBS="-lm $LIBS"
4289 cat > conftest.$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4293 int main() {
4294 main()
4295 ; return 0; }
4297 if { (eval echo configure:4298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4298 rm -rf conftest*
4299 eval "ac_cv_lib_$ac_lib_var=yes"
4300 else
4301 echo "configure: failed program was:" >&5
4302 cat conftest.$ac_ext >&5
4303 rm -rf conftest*
4304 eval "ac_cv_lib_$ac_lib_var=no"
4306 rm -f conftest*
4307 LIBS="$ac_save_LIBS"
4310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4311 echo "$ac_t""yes" 1>&6
4312 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4313 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4314 cat >> confdefs.h <<EOF
4315 #define $ac_tr_lib 1
4318 LIBS="-lm $LIBS"
4320 else
4321 echo "$ac_t""no" 1>&6
4324 for ac_func in nan copysignf
4326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4327 echo "configure:4328: checking for $ac_func" >&5
4328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4330 else
4331 cat > conftest.$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4334 /* System header to define __stub macros and hopefully few prototypes,
4335 which can conflict with char $ac_func(); below. */
4336 #include <assert.h>
4337 /* Override any gcc2 internal prototype to avoid an error. */
4338 /* We use char because int might match the return type of a gcc2
4339 builtin and then its argument prototype would still apply. */
4340 char $ac_func();
4342 int main() {
4344 /* The GNU C library defines this for functions which it implements
4345 to always fail with ENOSYS. Some functions are actually named
4346 something starting with __ and the normal name is an alias. */
4347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4348 choke me
4349 #else
4350 $ac_func();
4351 #endif
4353 ; return 0; }
4355 if { (eval echo configure:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4356 rm -rf conftest*
4357 eval "ac_cv_func_$ac_func=yes"
4358 else
4359 echo "configure: failed program was:" >&5
4360 cat conftest.$ac_ext >&5
4361 rm -rf conftest*
4362 eval "ac_cv_func_$ac_func=no"
4364 rm -f conftest*
4367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4368 echo "$ac_t""yes" 1>&6
4369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4370 cat >> confdefs.h <<EOF
4371 #define $ac_tr_func 1
4374 else
4375 echo "$ac_t""no" 1>&6
4376 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4378 done
4381 for ac_func in __signbit
4383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4384 echo "configure:4385: checking for $ac_func" >&5
4385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6
4387 else
4388 cat > conftest.$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4391 /* System header to define __stub macros and hopefully few prototypes,
4392 which can conflict with char $ac_func(); below. */
4393 #include <assert.h>
4394 /* Override any gcc2 internal prototype to avoid an error. */
4395 /* We use char because int might match the return type of a gcc2
4396 builtin and then its argument prototype would still apply. */
4397 char $ac_func();
4399 int main() {
4401 /* The GNU C library defines this for functions which it implements
4402 to always fail with ENOSYS. Some functions are actually named
4403 something starting with __ and the normal name is an alias. */
4404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4405 choke me
4406 #else
4407 $ac_func();
4408 #endif
4410 ; return 0; }
4412 if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4413 rm -rf conftest*
4414 eval "ac_cv_func_$ac_func=yes"
4415 else
4416 echo "configure: failed program was:" >&5
4417 cat conftest.$ac_ext >&5
4418 rm -rf conftest*
4419 eval "ac_cv_func_$ac_func=no"
4421 rm -f conftest*
4424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4425 echo "$ac_t""yes" 1>&6
4426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4427 cat >> confdefs.h <<EOF
4428 #define $ac_tr_func 1
4431 else
4432 echo "$ac_t""no" 1>&6
4433 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4435 done
4437 for ac_func in __signbitf
4439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4440 echo "configure:4441: checking for $ac_func" >&5
4441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4442 echo $ac_n "(cached) $ac_c" 1>&6
4443 else
4444 cat > conftest.$ac_ext <<EOF
4445 #line 4446 "configure"
4446 #include "confdefs.h"
4447 /* System header to define __stub macros and hopefully few prototypes,
4448 which can conflict with char $ac_func(); below. */
4449 #include <assert.h>
4450 /* Override any gcc2 internal prototype to avoid an error. */
4451 /* We use char because int might match the return type of a gcc2
4452 builtin and then its argument prototype would still apply. */
4453 char $ac_func();
4455 int main() {
4457 /* The GNU C library defines this for functions which it implements
4458 to always fail with ENOSYS. Some functions are actually named
4459 something starting with __ and the normal name is an alias. */
4460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4461 choke me
4462 #else
4463 $ac_func();
4464 #endif
4466 ; return 0; }
4468 if { (eval echo configure:4469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4469 rm -rf conftest*
4470 eval "ac_cv_func_$ac_func=yes"
4471 else
4472 echo "configure: failed program was:" >&5
4473 cat conftest.$ac_ext >&5
4474 rm -rf conftest*
4475 eval "ac_cv_func_$ac_func=no"
4477 rm -f conftest*
4480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4481 echo "$ac_t""yes" 1>&6
4482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4483 cat >> confdefs.h <<EOF
4484 #define $ac_tr_func 1
4487 else
4488 echo "$ac_t""no" 1>&6
4489 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4491 done
4494 if test x$ac_cv_func_copysignl = x"yes"; then
4495 for ac_func in __signbitl
4497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4498 echo "configure:4499: checking for $ac_func" >&5
4499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4500 echo $ac_n "(cached) $ac_c" 1>&6
4501 else
4502 cat > conftest.$ac_ext <<EOF
4503 #line 4504 "configure"
4504 #include "confdefs.h"
4505 /* System header to define __stub macros and hopefully few prototypes,
4506 which can conflict with char $ac_func(); below. */
4507 #include <assert.h>
4508 /* Override any gcc2 internal prototype to avoid an error. */
4509 /* We use char because int might match the return type of a gcc2
4510 builtin and then its argument prototype would still apply. */
4511 char $ac_func();
4513 int main() {
4515 /* The GNU C library defines this for functions which it implements
4516 to always fail with ENOSYS. Some functions are actually named
4517 something starting with __ and the normal name is an alias. */
4518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4519 choke me
4520 #else
4521 $ac_func();
4522 #endif
4524 ; return 0; }
4526 if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4527 rm -rf conftest*
4528 eval "ac_cv_func_$ac_func=yes"
4529 else
4530 echo "configure: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4532 rm -rf conftest*
4533 eval "ac_cv_func_$ac_func=no"
4535 rm -f conftest*
4538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4539 echo "$ac_t""yes" 1>&6
4540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4541 cat >> confdefs.h <<EOF
4542 #define $ac_tr_func 1
4545 else
4546 echo "$ac_t""no" 1>&6
4547 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4549 done
4557 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4558 echo "configure:4559: checking for mbstate_t" >&5
4559 cat > conftest.$ac_ext <<EOF
4560 #line 4561 "configure"
4561 #include "confdefs.h"
4562 #include <wchar.h>
4563 int main() {
4564 mbstate_t teststate;
4565 ; return 0; }
4567 if { (eval echo configure:4568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4568 rm -rf conftest*
4569 have_mbstate_t=yes
4570 else
4571 echo "configure: failed program was:" >&5
4572 cat conftest.$ac_ext >&5
4573 rm -rf conftest*
4574 have_mbstate_t=no
4576 rm -f conftest*
4577 echo "$ac_t""$have_mbstate_t" 1>&6
4578 if test x"$have_mbstate_t" = xyes; then
4579 cat >> confdefs.h <<\EOF
4580 #define HAVE_MBSTATE_T 1
4585 for ac_hdr in wchar.h
4587 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4588 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4589 echo "configure:4590: checking for $ac_hdr" >&5
4590 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4591 echo $ac_n "(cached) $ac_c" 1>&6
4592 else
4593 cat > conftest.$ac_ext <<EOF
4594 #line 4595 "configure"
4595 #include "confdefs.h"
4596 #include <$ac_hdr>
4598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4599 { (eval echo configure:4600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4601 if test -z "$ac_err"; then
4602 rm -rf conftest*
4603 eval "ac_cv_header_$ac_safe=yes"
4604 else
4605 echo "$ac_err" >&5
4606 echo "configure: failed program was:" >&5
4607 cat conftest.$ac_ext >&5
4608 rm -rf conftest*
4609 eval "ac_cv_header_$ac_safe=no"
4611 rm -f conftest*
4613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4614 echo "$ac_t""yes" 1>&6
4615 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4616 cat >> confdefs.h <<EOF
4617 #define $ac_tr_hdr 1
4619 ac_has_wchar_h=yes
4620 else
4621 echo "$ac_t""no" 1>&6
4622 ac_has_wchar_h=no
4624 done
4626 for ac_hdr in wctype.h
4628 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4629 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4630 echo "configure:4631: checking for $ac_hdr" >&5
4631 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4632 echo $ac_n "(cached) $ac_c" 1>&6
4633 else
4634 cat > conftest.$ac_ext <<EOF
4635 #line 4636 "configure"
4636 #include "confdefs.h"
4637 #include <$ac_hdr>
4639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4640 { (eval echo configure:4641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4642 if test -z "$ac_err"; then
4643 rm -rf conftest*
4644 eval "ac_cv_header_$ac_safe=yes"
4645 else
4646 echo "$ac_err" >&5
4647 echo "configure: failed program was:" >&5
4648 cat conftest.$ac_ext >&5
4649 rm -rf conftest*
4650 eval "ac_cv_header_$ac_safe=no"
4652 rm -f conftest*
4654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4655 echo "$ac_t""yes" 1>&6
4656 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4657 cat >> confdefs.h <<EOF
4658 #define $ac_tr_hdr 1
4660 ac_has_wctype_h=yes
4661 else
4662 echo "$ac_t""no" 1>&6
4663 ac_has_wctype_h=no
4665 done
4668 if test x"$ac_has_wchar_h" = xyes &&
4669 test x"$ac_has_wctype_h" = xyes &&
4670 test x"$enable_c_mbchar" != xno; then
4672 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4673 echo "configure:4674: checking for WCHAR_MIN and WCHAR_MAX" >&5
4674 cat > conftest.$ac_ext <<EOF
4675 #line 4676 "configure"
4676 #include "confdefs.h"
4677 #include <wchar.h>
4678 int main() {
4679 int i = WCHAR_MIN; int j = WCHAR_MAX;
4680 ; return 0; }
4682 if { (eval echo configure:4683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4683 rm -rf conftest*
4684 has_wchar_minmax=yes
4685 else
4686 echo "configure: failed program was:" >&5
4687 cat conftest.$ac_ext >&5
4688 rm -rf conftest*
4689 has_wchar_minmax=no
4691 rm -f conftest*
4692 echo "$ac_t""$has_wchar_minmax" 1>&6
4694 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4695 echo "configure:4696: checking for WEOF" >&5
4696 cat > conftest.$ac_ext <<EOF
4697 #line 4698 "configure"
4698 #include "confdefs.h"
4700 #include <wchar.h>
4701 #include <stddef.h>
4702 int main() {
4703 wint_t i = WEOF;
4704 ; return 0; }
4706 if { (eval echo configure:4707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4707 rm -rf conftest*
4708 has_weof=yes
4709 else
4710 echo "configure: failed program was:" >&5
4711 cat conftest.$ac_ext >&5
4712 rm -rf conftest*
4713 has_weof=no
4715 rm -f conftest*
4716 echo "$ac_t""$has_weof" 1>&6
4718 ac_wfuncs=yes
4719 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4722 echo "configure:4723: checking for $ac_func" >&5
4723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4724 echo $ac_n "(cached) $ac_c" 1>&6
4725 else
4726 cat > conftest.$ac_ext <<EOF
4727 #line 4728 "configure"
4728 #include "confdefs.h"
4729 /* System header to define __stub macros and hopefully few prototypes,
4730 which can conflict with char $ac_func(); below. */
4731 #include <assert.h>
4732 /* Override any gcc2 internal prototype to avoid an error. */
4733 /* We use char because int might match the return type of a gcc2
4734 builtin and then its argument prototype would still apply. */
4735 char $ac_func();
4737 int main() {
4739 /* The GNU C library defines this for functions which it implements
4740 to always fail with ENOSYS. Some functions are actually named
4741 something starting with __ and the normal name is an alias. */
4742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4743 choke me
4744 #else
4745 $ac_func();
4746 #endif
4748 ; return 0; }
4750 if { (eval echo configure:4751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4751 rm -rf conftest*
4752 eval "ac_cv_func_$ac_func=yes"
4753 else
4754 echo "configure: failed program was:" >&5
4755 cat conftest.$ac_ext >&5
4756 rm -rf conftest*
4757 eval "ac_cv_func_$ac_func=no"
4759 rm -f conftest*
4762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4763 echo "$ac_t""yes" 1>&6
4764 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4765 cat >> confdefs.h <<EOF
4766 #define $ac_tr_func 1
4769 else
4770 echo "$ac_t""no" 1>&6
4772 ac_wfuncs=no
4774 done
4777 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4778 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4779 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4780 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4781 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4782 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4785 echo "configure:4786: checking for $ac_func" >&5
4786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4787 echo $ac_n "(cached) $ac_c" 1>&6
4788 else
4789 cat > conftest.$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4792 /* System header to define __stub macros and hopefully few prototypes,
4793 which can conflict with char $ac_func(); below. */
4794 #include <assert.h>
4795 /* Override any gcc2 internal prototype to avoid an error. */
4796 /* We use char because int might match the return type of a gcc2
4797 builtin and then its argument prototype would still apply. */
4798 char $ac_func();
4800 int main() {
4802 /* The GNU C library defines this for functions which it implements
4803 to always fail with ENOSYS. Some functions are actually named
4804 something starting with __ and the normal name is an alias. */
4805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4806 choke me
4807 #else
4808 $ac_func();
4809 #endif
4811 ; return 0; }
4813 if { (eval echo configure:4814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4814 rm -rf conftest*
4815 eval "ac_cv_func_$ac_func=yes"
4816 else
4817 echo "configure: failed program was:" >&5
4818 cat conftest.$ac_ext >&5
4819 rm -rf conftest*
4820 eval "ac_cv_func_$ac_func=no"
4822 rm -f conftest*
4825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4826 echo "$ac_t""yes" 1>&6
4827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4828 cat >> confdefs.h <<EOF
4829 #define $ac_tr_func 1
4832 else
4833 echo "$ac_t""no" 1>&6
4835 ac_wfuncs=no
4837 done
4840 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4841 echo "configure:4842: checking for ISO C99 wchar_t support" >&5
4842 if test x"$has_weof" = xyes &&
4843 test x"$has_wchar_minmax" = xyes &&
4844 test x"$ac_wfuncs" = xyes; then
4845 ac_isoC99_wchar_t=yes
4846 else
4847 ac_isoC99_wchar_t=no
4849 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4851 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4852 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4853 echo "configure:4854: checking for iconv.h" >&5
4854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4855 echo $ac_n "(cached) $ac_c" 1>&6
4856 else
4857 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4860 #include <iconv.h>
4862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4863 { (eval echo configure:4864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4865 if test -z "$ac_err"; then
4866 rm -rf conftest*
4867 eval "ac_cv_header_$ac_safe=yes"
4868 else
4869 echo "$ac_err" >&5
4870 echo "configure: failed program was:" >&5
4871 cat conftest.$ac_ext >&5
4872 rm -rf conftest*
4873 eval "ac_cv_header_$ac_safe=no"
4875 rm -f conftest*
4877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4878 echo "$ac_t""yes" 1>&6
4879 ac_has_iconv_h=yes
4880 else
4881 echo "$ac_t""no" 1>&6
4882 ac_has_iconv_h=no
4885 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4886 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4887 echo "configure:4888: checking for langinfo.h" >&5
4888 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4889 echo $ac_n "(cached) $ac_c" 1>&6
4890 else
4891 cat > conftest.$ac_ext <<EOF
4892 #line 4893 "configure"
4893 #include "confdefs.h"
4894 #include <langinfo.h>
4896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4897 { (eval echo configure:4898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4899 if test -z "$ac_err"; then
4900 rm -rf conftest*
4901 eval "ac_cv_header_$ac_safe=yes"
4902 else
4903 echo "$ac_err" >&5
4904 echo "configure: failed program was:" >&5
4905 cat conftest.$ac_ext >&5
4906 rm -rf conftest*
4907 eval "ac_cv_header_$ac_safe=no"
4909 rm -f conftest*
4911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4912 echo "$ac_t""yes" 1>&6
4913 ac_has_langinfo_h=yes
4914 else
4915 echo "$ac_t""no" 1>&6
4916 ac_has_langinfo_h=no
4920 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4921 echo "configure:4922: checking for iconv in -liconv" >&5
4922 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4924 echo $ac_n "(cached) $ac_c" 1>&6
4925 else
4926 ac_save_LIBS="$LIBS"
4927 LIBS="-liconv $LIBS"
4928 cat > conftest.$ac_ext <<EOF
4929 #line 4930 "configure"
4930 #include "confdefs.h"
4931 /* Override any gcc2 internal prototype to avoid an error. */
4932 /* We use char because int might match the return type of a gcc2
4933 builtin and then its argument prototype would still apply. */
4934 char iconv();
4936 int main() {
4937 iconv()
4938 ; return 0; }
4940 if { (eval echo configure:4941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4941 rm -rf conftest*
4942 eval "ac_cv_lib_$ac_lib_var=yes"
4943 else
4944 echo "configure: failed program was:" >&5
4945 cat conftest.$ac_ext >&5
4946 rm -rf conftest*
4947 eval "ac_cv_lib_$ac_lib_var=no"
4949 rm -f conftest*
4950 LIBS="$ac_save_LIBS"
4953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4954 echo "$ac_t""yes" 1>&6
4955 libiconv="-liconv"
4956 else
4957 echo "$ac_t""no" 1>&6
4960 ac_save_LIBS="$LIBS"
4961 LIBS="$LIBS $libiconv"
4963 for ac_func in iconv_open iconv_close iconv nl_langinfo
4965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4966 echo "configure:4967: checking for $ac_func" >&5
4967 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4968 echo $ac_n "(cached) $ac_c" 1>&6
4969 else
4970 cat > conftest.$ac_ext <<EOF
4971 #line 4972 "configure"
4972 #include "confdefs.h"
4973 /* System header to define __stub macros and hopefully few prototypes,
4974 which can conflict with char $ac_func(); below. */
4975 #include <assert.h>
4976 /* Override any gcc2 internal prototype to avoid an error. */
4977 /* We use char because int might match the return type of a gcc2
4978 builtin and then its argument prototype would still apply. */
4979 char $ac_func();
4981 int main() {
4983 /* The GNU C library defines this for functions which it implements
4984 to always fail with ENOSYS. Some functions are actually named
4985 something starting with __ and the normal name is an alias. */
4986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4987 choke me
4988 #else
4989 $ac_func();
4990 #endif
4992 ; return 0; }
4994 if { (eval echo configure:4995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4995 rm -rf conftest*
4996 eval "ac_cv_func_$ac_func=yes"
4997 else
4998 echo "configure: failed program was:" >&5
4999 cat conftest.$ac_ext >&5
5000 rm -rf conftest*
5001 eval "ac_cv_func_$ac_func=no"
5003 rm -f conftest*
5006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5007 echo "$ac_t""yes" 1>&6
5008 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5009 cat >> confdefs.h <<EOF
5010 #define $ac_tr_func 1
5013 ac_XPG2funcs=yes
5014 else
5015 echo "$ac_t""no" 1>&6
5016 ac_XPG2funcs=no
5018 done
5021 LIBS="$ac_save_LIBS"
5023 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5024 echo "configure:5025: checking for XPG2 wchar_t support" >&5
5025 if test x"$ac_has_iconv_h" = xyes &&
5026 test x"$ac_has_langinfo_h" = xyes &&
5027 test x"$ac_XPG2funcs" = xyes; then
5028 ac_XPG2_wchar_t=yes
5029 else
5030 ac_XPG2_wchar_t=no
5032 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5034 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5035 echo "configure:5036: checking for enabled wchar_t specializations" >&5
5036 if test x"$ac_isoC99_wchar_t" = xyes &&
5037 test x"$ac_XPG2_wchar_t" = xyes; then
5038 cat >> confdefs.h <<\EOF
5039 #define _GLIBCPP_USE_WCHAR_T 1
5042 echo "$ac_t"""yes"" 1>&6
5043 else
5044 echo "$ac_t"""no"" 1>&6
5046 else
5047 echo "configure: warning: wchar_t support disabled." 1>&2
5050 cat >> confdefs.h <<\EOF
5051 #define HAVE_COPYSIGN 1
5054 cat >> confdefs.h <<\EOF
5055 #define HAVE_COPYSIGNF 1
5058 cat >> confdefs.h <<\EOF
5059 #define HAVE_FINITE 1
5062 cat >> confdefs.h <<\EOF
5063 #define HAVE_FINITEF 1
5066 cat >> confdefs.h <<\EOF
5067 #define HAVE_FREXPF 1
5070 cat >> confdefs.h <<\EOF
5071 #define HAVE_HYPOTF 1
5074 cat >> confdefs.h <<\EOF
5075 #define HAVE_ISINF 1
5078 cat >> confdefs.h <<\EOF
5079 #define HAVE_ISINFF 1
5082 cat >> confdefs.h <<\EOF
5083 #define HAVE_ISNAN 1
5086 cat >> confdefs.h <<\EOF
5087 #define HAVE_ISNANF 1
5090 cat >> confdefs.h <<\EOF
5091 #define HAVE_SINCOS 1
5094 cat >> confdefs.h <<\EOF
5095 #define HAVE_SINCOSF 1
5098 if test x"long_double_math_on_this_cpu" = x"yes"; then
5099 cat >> confdefs.h <<\EOF
5100 #define HAVE_FINITEL 1
5103 cat >> confdefs.h <<\EOF
5104 #define HAVE_HYPOTL 1
5107 cat >> confdefs.h <<\EOF
5108 #define HAVE_ISINFL 1
5111 cat >> confdefs.h <<\EOF
5112 #define HAVE_ISNANL 1
5117 *-hpux*)
5118 # Check for available headers.
5119 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5120 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5121 fp.h locale.h float.h inttypes.h
5123 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5125 echo "configure:5126: checking for $ac_hdr" >&5
5126 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5127 echo $ac_n "(cached) $ac_c" 1>&6
5128 else
5129 cat > conftest.$ac_ext <<EOF
5130 #line 5131 "configure"
5131 #include "confdefs.h"
5132 #include <$ac_hdr>
5134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5135 { (eval echo configure:5136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5137 if test -z "$ac_err"; then
5138 rm -rf conftest*
5139 eval "ac_cv_header_$ac_safe=yes"
5140 else
5141 echo "$ac_err" >&5
5142 echo "configure: failed program was:" >&5
5143 cat conftest.$ac_ext >&5
5144 rm -rf conftest*
5145 eval "ac_cv_header_$ac_safe=no"
5147 rm -f conftest*
5149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5150 echo "$ac_t""yes" 1>&6
5151 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5152 cat >> confdefs.h <<EOF
5153 #define $ac_tr_hdr 1
5156 else
5157 echo "$ac_t""no" 1>&6
5159 done
5161 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5164 # If we're not using GNU ld, then there's no point in even trying these
5165 # tests. Check for that first. We should have already tested for gld
5166 # by now (in libtool), but require it now just to be safe...
5167 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5168 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5171 # The name set by libtool depends on the version of libtool. Shame on us
5172 # for depending on an impl detail, but c'est la vie. Older versions used
5173 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5174 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5175 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5176 # set (hence we're using an older libtool), then set it.
5177 if test x${with_gnu_ld+set} != xset; then
5178 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5179 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5180 with_gnu_ld=no
5181 else
5182 with_gnu_ld=$ac_cv_prog_gnu_ld
5186 # Start by getting the version number. I think the libtool test already
5187 # does some of this, but throws away the result.
5189 ldver=`$LD --version 2>/dev/null | head -1 | \
5190 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5192 glibcpp_gnu_ld_version=`echo $ldver | \
5193 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5195 # Set --gc-sections.
5196 if test "$with_gnu_ld" = "notbroken"; then
5197 # GNU ld it is! Joy and bunny rabbits!
5199 # All these tests are for C++; save the language and the compiler flags.
5200 # Need to do this so that g++ won't try to link in libstdc++
5201 ac_test_CFLAGS="${CFLAGS+set}"
5202 ac_save_CFLAGS="$CFLAGS"
5203 CFLAGS='-x c++ -Wl,--gc-sections'
5205 # Check for -Wl,--gc-sections
5206 # XXX This test is broken at the moment, as symbols required for
5207 # linking are now in libsupc++ (not built yet.....). In addition,
5208 # this test has cored on solaris in the past. In addition,
5209 # --gc-sections doesn't really work at the moment (keeps on discarding
5210 # used sections, first .eh_frame and now some of the glibc sections for
5211 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5212 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5213 echo "configure:5214: checking for ld that supports -Wl,--gc-sections" >&5
5214 if test "$cross_compiling" = yes; then
5215 ac_sectionLDflags=yes
5216 else
5217 cat > conftest.$ac_ext <<EOF
5218 #line 5219 "configure"
5219 #include "confdefs.h"
5221 int main(void)
5223 try { throw 1; }
5224 catch (...) { };
5225 return 0;
5229 if { (eval echo configure:5230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5230 then
5231 ac_sectionLDflags=yes
5232 else
5233 echo "configure: failed program was:" >&5
5234 cat conftest.$ac_ext >&5
5235 rm -fr conftest*
5236 ac_sectionLDflags=no
5238 rm -fr conftest*
5241 if test "$ac_test_CFLAGS" = set; then
5242 CFLAGS="$ac_save_CFLAGS"
5243 else
5244 # this is the suspicious part
5245 CFLAGS=''
5247 if test "$ac_sectionLDflags" = "yes"; then
5248 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5250 echo "$ac_t""$ac_sectionLDflags" 1>&6
5253 # Set linker optimization flags.
5254 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5255 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5262 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5263 echo "configure:5264: checking for main in -lm" >&5
5264 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5265 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5266 echo $ac_n "(cached) $ac_c" 1>&6
5267 else
5268 ac_save_LIBS="$LIBS"
5269 LIBS="-lm $LIBS"
5270 cat > conftest.$ac_ext <<EOF
5271 #line 5272 "configure"
5272 #include "confdefs.h"
5274 int main() {
5275 main()
5276 ; return 0; }
5278 if { (eval echo configure:5279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5279 rm -rf conftest*
5280 eval "ac_cv_lib_$ac_lib_var=yes"
5281 else
5282 echo "configure: failed program was:" >&5
5283 cat conftest.$ac_ext >&5
5284 rm -rf conftest*
5285 eval "ac_cv_lib_$ac_lib_var=no"
5287 rm -f conftest*
5288 LIBS="$ac_save_LIBS"
5291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5292 echo "$ac_t""yes" 1>&6
5293 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5294 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5295 cat >> confdefs.h <<EOF
5296 #define $ac_tr_lib 1
5299 LIBS="-lm $LIBS"
5301 else
5302 echo "$ac_t""no" 1>&6
5305 for ac_func in nan copysignf
5307 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5308 echo "configure:5309: checking for $ac_func" >&5
5309 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5310 echo $ac_n "(cached) $ac_c" 1>&6
5311 else
5312 cat > conftest.$ac_ext <<EOF
5313 #line 5314 "configure"
5314 #include "confdefs.h"
5315 /* System header to define __stub macros and hopefully few prototypes,
5316 which can conflict with char $ac_func(); below. */
5317 #include <assert.h>
5318 /* Override any gcc2 internal prototype to avoid an error. */
5319 /* We use char because int might match the return type of a gcc2
5320 builtin and then its argument prototype would still apply. */
5321 char $ac_func();
5323 int main() {
5325 /* The GNU C library defines this for functions which it implements
5326 to always fail with ENOSYS. Some functions are actually named
5327 something starting with __ and the normal name is an alias. */
5328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5329 choke me
5330 #else
5331 $ac_func();
5332 #endif
5334 ; return 0; }
5336 if { (eval echo configure:5337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5337 rm -rf conftest*
5338 eval "ac_cv_func_$ac_func=yes"
5339 else
5340 echo "configure: failed program was:" >&5
5341 cat conftest.$ac_ext >&5
5342 rm -rf conftest*
5343 eval "ac_cv_func_$ac_func=no"
5345 rm -f conftest*
5348 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5349 echo "$ac_t""yes" 1>&6
5350 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5351 cat >> confdefs.h <<EOF
5352 #define $ac_tr_func 1
5355 else
5356 echo "$ac_t""no" 1>&6
5357 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5359 done
5362 for ac_func in __signbit
5364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5365 echo "configure:5366: checking for $ac_func" >&5
5366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5367 echo $ac_n "(cached) $ac_c" 1>&6
5368 else
5369 cat > conftest.$ac_ext <<EOF
5370 #line 5371 "configure"
5371 #include "confdefs.h"
5372 /* System header to define __stub macros and hopefully few prototypes,
5373 which can conflict with char $ac_func(); below. */
5374 #include <assert.h>
5375 /* Override any gcc2 internal prototype to avoid an error. */
5376 /* We use char because int might match the return type of a gcc2
5377 builtin and then its argument prototype would still apply. */
5378 char $ac_func();
5380 int main() {
5382 /* The GNU C library defines this for functions which it implements
5383 to always fail with ENOSYS. Some functions are actually named
5384 something starting with __ and the normal name is an alias. */
5385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5386 choke me
5387 #else
5388 $ac_func();
5389 #endif
5391 ; return 0; }
5393 if { (eval echo configure:5394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5394 rm -rf conftest*
5395 eval "ac_cv_func_$ac_func=yes"
5396 else
5397 echo "configure: failed program was:" >&5
5398 cat conftest.$ac_ext >&5
5399 rm -rf conftest*
5400 eval "ac_cv_func_$ac_func=no"
5402 rm -f conftest*
5405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5406 echo "$ac_t""yes" 1>&6
5407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5408 cat >> confdefs.h <<EOF
5409 #define $ac_tr_func 1
5412 else
5413 echo "$ac_t""no" 1>&6
5414 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5416 done
5418 for ac_func in __signbitf
5420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5421 echo "configure:5422: checking for $ac_func" >&5
5422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5423 echo $ac_n "(cached) $ac_c" 1>&6
5424 else
5425 cat > conftest.$ac_ext <<EOF
5426 #line 5427 "configure"
5427 #include "confdefs.h"
5428 /* System header to define __stub macros and hopefully few prototypes,
5429 which can conflict with char $ac_func(); below. */
5430 #include <assert.h>
5431 /* Override any gcc2 internal prototype to avoid an error. */
5432 /* We use char because int might match the return type of a gcc2
5433 builtin and then its argument prototype would still apply. */
5434 char $ac_func();
5436 int main() {
5438 /* The GNU C library defines this for functions which it implements
5439 to always fail with ENOSYS. Some functions are actually named
5440 something starting with __ and the normal name is an alias. */
5441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5442 choke me
5443 #else
5444 $ac_func();
5445 #endif
5447 ; return 0; }
5449 if { (eval echo configure:5450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5450 rm -rf conftest*
5451 eval "ac_cv_func_$ac_func=yes"
5452 else
5453 echo "configure: failed program was:" >&5
5454 cat conftest.$ac_ext >&5
5455 rm -rf conftest*
5456 eval "ac_cv_func_$ac_func=no"
5458 rm -f conftest*
5461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5462 echo "$ac_t""yes" 1>&6
5463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5464 cat >> confdefs.h <<EOF
5465 #define $ac_tr_func 1
5468 else
5469 echo "$ac_t""no" 1>&6
5470 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5472 done
5475 if test x$ac_cv_func_copysignl = x"yes"; then
5476 for ac_func in __signbitl
5478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5479 echo "configure:5480: checking for $ac_func" >&5
5480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5481 echo $ac_n "(cached) $ac_c" 1>&6
5482 else
5483 cat > conftest.$ac_ext <<EOF
5484 #line 5485 "configure"
5485 #include "confdefs.h"
5486 /* System header to define __stub macros and hopefully few prototypes,
5487 which can conflict with char $ac_func(); below. */
5488 #include <assert.h>
5489 /* Override any gcc2 internal prototype to avoid an error. */
5490 /* We use char because int might match the return type of a gcc2
5491 builtin and then its argument prototype would still apply. */
5492 char $ac_func();
5494 int main() {
5496 /* The GNU C library defines this for functions which it implements
5497 to always fail with ENOSYS. Some functions are actually named
5498 something starting with __ and the normal name is an alias. */
5499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5500 choke me
5501 #else
5502 $ac_func();
5503 #endif
5505 ; return 0; }
5507 if { (eval echo configure:5508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5508 rm -rf conftest*
5509 eval "ac_cv_func_$ac_func=yes"
5510 else
5511 echo "configure: failed program was:" >&5
5512 cat conftest.$ac_ext >&5
5513 rm -rf conftest*
5514 eval "ac_cv_func_$ac_func=no"
5516 rm -f conftest*
5519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5520 echo "$ac_t""yes" 1>&6
5521 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5522 cat >> confdefs.h <<EOF
5523 #define $ac_tr_func 1
5526 else
5527 echo "$ac_t""no" 1>&6
5528 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5530 done
5538 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5539 echo "configure:5540: checking for mbstate_t" >&5
5540 cat > conftest.$ac_ext <<EOF
5541 #line 5542 "configure"
5542 #include "confdefs.h"
5543 #include <wchar.h>
5544 int main() {
5545 mbstate_t teststate;
5546 ; return 0; }
5548 if { (eval echo configure:5549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5549 rm -rf conftest*
5550 have_mbstate_t=yes
5551 else
5552 echo "configure: failed program was:" >&5
5553 cat conftest.$ac_ext >&5
5554 rm -rf conftest*
5555 have_mbstate_t=no
5557 rm -f conftest*
5558 echo "$ac_t""$have_mbstate_t" 1>&6
5559 if test x"$have_mbstate_t" = xyes; then
5560 cat >> confdefs.h <<\EOF
5561 #define HAVE_MBSTATE_T 1
5566 for ac_hdr in wchar.h
5568 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5569 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5570 echo "configure:5571: checking for $ac_hdr" >&5
5571 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5572 echo $ac_n "(cached) $ac_c" 1>&6
5573 else
5574 cat > conftest.$ac_ext <<EOF
5575 #line 5576 "configure"
5576 #include "confdefs.h"
5577 #include <$ac_hdr>
5579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5580 { (eval echo configure:5581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5581 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5582 if test -z "$ac_err"; then
5583 rm -rf conftest*
5584 eval "ac_cv_header_$ac_safe=yes"
5585 else
5586 echo "$ac_err" >&5
5587 echo "configure: failed program was:" >&5
5588 cat conftest.$ac_ext >&5
5589 rm -rf conftest*
5590 eval "ac_cv_header_$ac_safe=no"
5592 rm -f conftest*
5594 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5595 echo "$ac_t""yes" 1>&6
5596 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5597 cat >> confdefs.h <<EOF
5598 #define $ac_tr_hdr 1
5600 ac_has_wchar_h=yes
5601 else
5602 echo "$ac_t""no" 1>&6
5603 ac_has_wchar_h=no
5605 done
5607 for ac_hdr in wctype.h
5609 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5610 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5611 echo "configure:5612: checking for $ac_hdr" >&5
5612 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5613 echo $ac_n "(cached) $ac_c" 1>&6
5614 else
5615 cat > conftest.$ac_ext <<EOF
5616 #line 5617 "configure"
5617 #include "confdefs.h"
5618 #include <$ac_hdr>
5620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5621 { (eval echo configure:5622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5623 if test -z "$ac_err"; then
5624 rm -rf conftest*
5625 eval "ac_cv_header_$ac_safe=yes"
5626 else
5627 echo "$ac_err" >&5
5628 echo "configure: failed program was:" >&5
5629 cat conftest.$ac_ext >&5
5630 rm -rf conftest*
5631 eval "ac_cv_header_$ac_safe=no"
5633 rm -f conftest*
5635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5636 echo "$ac_t""yes" 1>&6
5637 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5638 cat >> confdefs.h <<EOF
5639 #define $ac_tr_hdr 1
5641 ac_has_wctype_h=yes
5642 else
5643 echo "$ac_t""no" 1>&6
5644 ac_has_wctype_h=no
5646 done
5649 if test x"$ac_has_wchar_h" = xyes &&
5650 test x"$ac_has_wctype_h" = xyes &&
5651 test x"$enable_c_mbchar" != xno; then
5653 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5654 echo "configure:5655: checking for WCHAR_MIN and WCHAR_MAX" >&5
5655 cat > conftest.$ac_ext <<EOF
5656 #line 5657 "configure"
5657 #include "confdefs.h"
5658 #include <wchar.h>
5659 int main() {
5660 int i = WCHAR_MIN; int j = WCHAR_MAX;
5661 ; return 0; }
5663 if { (eval echo configure:5664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5664 rm -rf conftest*
5665 has_wchar_minmax=yes
5666 else
5667 echo "configure: failed program was:" >&5
5668 cat conftest.$ac_ext >&5
5669 rm -rf conftest*
5670 has_wchar_minmax=no
5672 rm -f conftest*
5673 echo "$ac_t""$has_wchar_minmax" 1>&6
5675 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5676 echo "configure:5677: checking for WEOF" >&5
5677 cat > conftest.$ac_ext <<EOF
5678 #line 5679 "configure"
5679 #include "confdefs.h"
5681 #include <wchar.h>
5682 #include <stddef.h>
5683 int main() {
5684 wint_t i = WEOF;
5685 ; return 0; }
5687 if { (eval echo configure:5688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5688 rm -rf conftest*
5689 has_weof=yes
5690 else
5691 echo "configure: failed program was:" >&5
5692 cat conftest.$ac_ext >&5
5693 rm -rf conftest*
5694 has_weof=no
5696 rm -f conftest*
5697 echo "$ac_t""$has_weof" 1>&6
5699 ac_wfuncs=yes
5700 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5703 echo "configure:5704: checking for $ac_func" >&5
5704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5705 echo $ac_n "(cached) $ac_c" 1>&6
5706 else
5707 cat > conftest.$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5710 /* System header to define __stub macros and hopefully few prototypes,
5711 which can conflict with char $ac_func(); below. */
5712 #include <assert.h>
5713 /* Override any gcc2 internal prototype to avoid an error. */
5714 /* We use char because int might match the return type of a gcc2
5715 builtin and then its argument prototype would still apply. */
5716 char $ac_func();
5718 int main() {
5720 /* The GNU C library defines this for functions which it implements
5721 to always fail with ENOSYS. Some functions are actually named
5722 something starting with __ and the normal name is an alias. */
5723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5724 choke me
5725 #else
5726 $ac_func();
5727 #endif
5729 ; return 0; }
5731 if { (eval echo configure:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5732 rm -rf conftest*
5733 eval "ac_cv_func_$ac_func=yes"
5734 else
5735 echo "configure: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5737 rm -rf conftest*
5738 eval "ac_cv_func_$ac_func=no"
5740 rm -f conftest*
5743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5744 echo "$ac_t""yes" 1>&6
5745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5746 cat >> confdefs.h <<EOF
5747 #define $ac_tr_func 1
5750 else
5751 echo "$ac_t""no" 1>&6
5753 ac_wfuncs=no
5755 done
5758 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5759 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5760 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5761 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5762 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5763 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5765 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5766 echo "configure:5767: checking for $ac_func" >&5
5767 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5768 echo $ac_n "(cached) $ac_c" 1>&6
5769 else
5770 cat > conftest.$ac_ext <<EOF
5771 #line 5772 "configure"
5772 #include "confdefs.h"
5773 /* System header to define __stub macros and hopefully few prototypes,
5774 which can conflict with char $ac_func(); below. */
5775 #include <assert.h>
5776 /* Override any gcc2 internal prototype to avoid an error. */
5777 /* We use char because int might match the return type of a gcc2
5778 builtin and then its argument prototype would still apply. */
5779 char $ac_func();
5781 int main() {
5783 /* The GNU C library defines this for functions which it implements
5784 to always fail with ENOSYS. Some functions are actually named
5785 something starting with __ and the normal name is an alias. */
5786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5787 choke me
5788 #else
5789 $ac_func();
5790 #endif
5792 ; return 0; }
5794 if { (eval echo configure:5795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5795 rm -rf conftest*
5796 eval "ac_cv_func_$ac_func=yes"
5797 else
5798 echo "configure: failed program was:" >&5
5799 cat conftest.$ac_ext >&5
5800 rm -rf conftest*
5801 eval "ac_cv_func_$ac_func=no"
5803 rm -f conftest*
5806 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5807 echo "$ac_t""yes" 1>&6
5808 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5809 cat >> confdefs.h <<EOF
5810 #define $ac_tr_func 1
5813 else
5814 echo "$ac_t""no" 1>&6
5816 ac_wfuncs=no
5818 done
5821 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5822 echo "configure:5823: checking for ISO C99 wchar_t support" >&5
5823 if test x"$has_weof" = xyes &&
5824 test x"$has_wchar_minmax" = xyes &&
5825 test x"$ac_wfuncs" = xyes; then
5826 ac_isoC99_wchar_t=yes
5827 else
5828 ac_isoC99_wchar_t=no
5830 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5832 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5833 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5834 echo "configure:5835: checking for iconv.h" >&5
5835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5836 echo $ac_n "(cached) $ac_c" 1>&6
5837 else
5838 cat > conftest.$ac_ext <<EOF
5839 #line 5840 "configure"
5840 #include "confdefs.h"
5841 #include <iconv.h>
5843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5844 { (eval echo configure:5845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5846 if test -z "$ac_err"; then
5847 rm -rf conftest*
5848 eval "ac_cv_header_$ac_safe=yes"
5849 else
5850 echo "$ac_err" >&5
5851 echo "configure: failed program was:" >&5
5852 cat conftest.$ac_ext >&5
5853 rm -rf conftest*
5854 eval "ac_cv_header_$ac_safe=no"
5856 rm -f conftest*
5858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5859 echo "$ac_t""yes" 1>&6
5860 ac_has_iconv_h=yes
5861 else
5862 echo "$ac_t""no" 1>&6
5863 ac_has_iconv_h=no
5866 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5867 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5868 echo "configure:5869: checking for langinfo.h" >&5
5869 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5870 echo $ac_n "(cached) $ac_c" 1>&6
5871 else
5872 cat > conftest.$ac_ext <<EOF
5873 #line 5874 "configure"
5874 #include "confdefs.h"
5875 #include <langinfo.h>
5877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5878 { (eval echo configure:5879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5880 if test -z "$ac_err"; then
5881 rm -rf conftest*
5882 eval "ac_cv_header_$ac_safe=yes"
5883 else
5884 echo "$ac_err" >&5
5885 echo "configure: failed program was:" >&5
5886 cat conftest.$ac_ext >&5
5887 rm -rf conftest*
5888 eval "ac_cv_header_$ac_safe=no"
5890 rm -f conftest*
5892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5893 echo "$ac_t""yes" 1>&6
5894 ac_has_langinfo_h=yes
5895 else
5896 echo "$ac_t""no" 1>&6
5897 ac_has_langinfo_h=no
5901 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5902 echo "configure:5903: checking for iconv in -liconv" >&5
5903 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5904 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5905 echo $ac_n "(cached) $ac_c" 1>&6
5906 else
5907 ac_save_LIBS="$LIBS"
5908 LIBS="-liconv $LIBS"
5909 cat > conftest.$ac_ext <<EOF
5910 #line 5911 "configure"
5911 #include "confdefs.h"
5912 /* Override any gcc2 internal prototype to avoid an error. */
5913 /* We use char because int might match the return type of a gcc2
5914 builtin and then its argument prototype would still apply. */
5915 char iconv();
5917 int main() {
5918 iconv()
5919 ; return 0; }
5921 if { (eval echo configure:5922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5922 rm -rf conftest*
5923 eval "ac_cv_lib_$ac_lib_var=yes"
5924 else
5925 echo "configure: failed program was:" >&5
5926 cat conftest.$ac_ext >&5
5927 rm -rf conftest*
5928 eval "ac_cv_lib_$ac_lib_var=no"
5930 rm -f conftest*
5931 LIBS="$ac_save_LIBS"
5934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5935 echo "$ac_t""yes" 1>&6
5936 libiconv="-liconv"
5937 else
5938 echo "$ac_t""no" 1>&6
5941 ac_save_LIBS="$LIBS"
5942 LIBS="$LIBS $libiconv"
5944 for ac_func in iconv_open iconv_close iconv nl_langinfo
5946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5947 echo "configure:5948: checking for $ac_func" >&5
5948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5949 echo $ac_n "(cached) $ac_c" 1>&6
5950 else
5951 cat > conftest.$ac_ext <<EOF
5952 #line 5953 "configure"
5953 #include "confdefs.h"
5954 /* System header to define __stub macros and hopefully few prototypes,
5955 which can conflict with char $ac_func(); below. */
5956 #include <assert.h>
5957 /* Override any gcc2 internal prototype to avoid an error. */
5958 /* We use char because int might match the return type of a gcc2
5959 builtin and then its argument prototype would still apply. */
5960 char $ac_func();
5962 int main() {
5964 /* The GNU C library defines this for functions which it implements
5965 to always fail with ENOSYS. Some functions are actually named
5966 something starting with __ and the normal name is an alias. */
5967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5968 choke me
5969 #else
5970 $ac_func();
5971 #endif
5973 ; return 0; }
5975 if { (eval echo configure:5976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5976 rm -rf conftest*
5977 eval "ac_cv_func_$ac_func=yes"
5978 else
5979 echo "configure: failed program was:" >&5
5980 cat conftest.$ac_ext >&5
5981 rm -rf conftest*
5982 eval "ac_cv_func_$ac_func=no"
5984 rm -f conftest*
5987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5988 echo "$ac_t""yes" 1>&6
5989 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5990 cat >> confdefs.h <<EOF
5991 #define $ac_tr_func 1
5994 ac_XPG2funcs=yes
5995 else
5996 echo "$ac_t""no" 1>&6
5997 ac_XPG2funcs=no
5999 done
6002 LIBS="$ac_save_LIBS"
6004 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6005 echo "configure:6006: checking for XPG2 wchar_t support" >&5
6006 if test x"$ac_has_iconv_h" = xyes &&
6007 test x"$ac_has_langinfo_h" = xyes &&
6008 test x"$ac_XPG2funcs" = xyes; then
6009 ac_XPG2_wchar_t=yes
6010 else
6011 ac_XPG2_wchar_t=no
6013 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6015 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6016 echo "configure:6017: checking for enabled wchar_t specializations" >&5
6017 if test x"$ac_isoC99_wchar_t" = xyes &&
6018 test x"$ac_XPG2_wchar_t" = xyes; then
6019 cat >> confdefs.h <<\EOF
6020 #define _GLIBCPP_USE_WCHAR_T 1
6023 echo "$ac_t"""yes"" 1>&6
6024 else
6025 echo "$ac_t"""no"" 1>&6
6027 else
6028 echo "configure: warning: wchar_t support disabled." 1>&2
6031 os_include_dir="os/hpux"
6032 cat >> confdefs.h <<\EOF
6033 #define HAVE_COPYSIGN 1
6036 cat >> confdefs.h <<\EOF
6037 #define HAVE_COPYSIGNF 1
6040 cat >> confdefs.h <<\EOF
6041 #define HAVE_FREXPF 1
6044 cat >> confdefs.h <<\EOF
6045 #define HAVE_HYPOT 1
6048 case "$target_alias" in
6049 *-hpux10*)
6050 cat >> confdefs.h <<\EOF
6051 #define HAVE_FINITE 1
6054 cat >> confdefs.h <<\EOF
6055 #define HAVE_FINITEF 1
6058 cat >> confdefs.h <<\EOF
6059 #define HAVE_ISINF 1
6062 cat >> confdefs.h <<\EOF
6063 #define HAVE_ISINFF 1
6066 cat >> confdefs.h <<\EOF
6067 #define HAVE_ISNAN 1
6070 cat >> confdefs.h <<\EOF
6071 #define HAVE_ISNANF 1
6075 esac
6078 *-netbsd*)
6079 # Check for available headers.
6080 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6081 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6082 fp.h locale.h float.h inttypes.h
6084 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6085 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6086 echo "configure:6087: checking for $ac_hdr" >&5
6087 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6088 echo $ac_n "(cached) $ac_c" 1>&6
6089 else
6090 cat > conftest.$ac_ext <<EOF
6091 #line 6092 "configure"
6092 #include "confdefs.h"
6093 #include <$ac_hdr>
6095 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6096 { (eval echo configure:6097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6097 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6098 if test -z "$ac_err"; then
6099 rm -rf conftest*
6100 eval "ac_cv_header_$ac_safe=yes"
6101 else
6102 echo "$ac_err" >&5
6103 echo "configure: failed program was:" >&5
6104 cat conftest.$ac_ext >&5
6105 rm -rf conftest*
6106 eval "ac_cv_header_$ac_safe=no"
6108 rm -f conftest*
6110 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6111 echo "$ac_t""yes" 1>&6
6112 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6113 cat >> confdefs.h <<EOF
6114 #define $ac_tr_hdr 1
6117 else
6118 echo "$ac_t""no" 1>&6
6120 done
6122 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6125 # If we're not using GNU ld, then there's no point in even trying these
6126 # tests. Check for that first. We should have already tested for gld
6127 # by now (in libtool), but require it now just to be safe...
6128 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6129 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6132 # The name set by libtool depends on the version of libtool. Shame on us
6133 # for depending on an impl detail, but c'est la vie. Older versions used
6134 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6135 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6136 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6137 # set (hence we're using an older libtool), then set it.
6138 if test x${with_gnu_ld+set} != xset; then
6139 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6140 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6141 with_gnu_ld=no
6142 else
6143 with_gnu_ld=$ac_cv_prog_gnu_ld
6147 # Start by getting the version number. I think the libtool test already
6148 # does some of this, but throws away the result.
6150 ldver=`$LD --version 2>/dev/null | head -1 | \
6151 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6153 glibcpp_gnu_ld_version=`echo $ldver | \
6154 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6156 # Set --gc-sections.
6157 if test "$with_gnu_ld" = "notbroken"; then
6158 # GNU ld it is! Joy and bunny rabbits!
6160 # All these tests are for C++; save the language and the compiler flags.
6161 # Need to do this so that g++ won't try to link in libstdc++
6162 ac_test_CFLAGS="${CFLAGS+set}"
6163 ac_save_CFLAGS="$CFLAGS"
6164 CFLAGS='-x c++ -Wl,--gc-sections'
6166 # Check for -Wl,--gc-sections
6167 # XXX This test is broken at the moment, as symbols required for
6168 # linking are now in libsupc++ (not built yet.....). In addition,
6169 # this test has cored on solaris in the past. In addition,
6170 # --gc-sections doesn't really work at the moment (keeps on discarding
6171 # used sections, first .eh_frame and now some of the glibc sections for
6172 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6173 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6174 echo "configure:6175: checking for ld that supports -Wl,--gc-sections" >&5
6175 if test "$cross_compiling" = yes; then
6176 ac_sectionLDflags=yes
6177 else
6178 cat > conftest.$ac_ext <<EOF
6179 #line 6180 "configure"
6180 #include "confdefs.h"
6182 int main(void)
6184 try { throw 1; }
6185 catch (...) { };
6186 return 0;
6190 if { (eval echo configure:6191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6191 then
6192 ac_sectionLDflags=yes
6193 else
6194 echo "configure: failed program was:" >&5
6195 cat conftest.$ac_ext >&5
6196 rm -fr conftest*
6197 ac_sectionLDflags=no
6199 rm -fr conftest*
6202 if test "$ac_test_CFLAGS" = set; then
6203 CFLAGS="$ac_save_CFLAGS"
6204 else
6205 # this is the suspicious part
6206 CFLAGS=''
6208 if test "$ac_sectionLDflags" = "yes"; then
6209 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6211 echo "$ac_t""$ac_sectionLDflags" 1>&6
6214 # Set linker optimization flags.
6215 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6216 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6223 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6224 echo "configure:6225: checking for main in -lm" >&5
6225 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6226 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6227 echo $ac_n "(cached) $ac_c" 1>&6
6228 else
6229 ac_save_LIBS="$LIBS"
6230 LIBS="-lm $LIBS"
6231 cat > conftest.$ac_ext <<EOF
6232 #line 6233 "configure"
6233 #include "confdefs.h"
6235 int main() {
6236 main()
6237 ; return 0; }
6239 if { (eval echo configure:6240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6240 rm -rf conftest*
6241 eval "ac_cv_lib_$ac_lib_var=yes"
6242 else
6243 echo "configure: failed program was:" >&5
6244 cat conftest.$ac_ext >&5
6245 rm -rf conftest*
6246 eval "ac_cv_lib_$ac_lib_var=no"
6248 rm -f conftest*
6249 LIBS="$ac_save_LIBS"
6252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6253 echo "$ac_t""yes" 1>&6
6254 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6255 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6256 cat >> confdefs.h <<EOF
6257 #define $ac_tr_lib 1
6260 LIBS="-lm $LIBS"
6262 else
6263 echo "$ac_t""no" 1>&6
6266 for ac_func in nan copysignf
6268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6269 echo "configure:6270: checking for $ac_func" >&5
6270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6271 echo $ac_n "(cached) $ac_c" 1>&6
6272 else
6273 cat > conftest.$ac_ext <<EOF
6274 #line 6275 "configure"
6275 #include "confdefs.h"
6276 /* System header to define __stub macros and hopefully few prototypes,
6277 which can conflict with char $ac_func(); below. */
6278 #include <assert.h>
6279 /* Override any gcc2 internal prototype to avoid an error. */
6280 /* We use char because int might match the return type of a gcc2
6281 builtin and then its argument prototype would still apply. */
6282 char $ac_func();
6284 int main() {
6286 /* The GNU C library defines this for functions which it implements
6287 to always fail with ENOSYS. Some functions are actually named
6288 something starting with __ and the normal name is an alias. */
6289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6290 choke me
6291 #else
6292 $ac_func();
6293 #endif
6295 ; return 0; }
6297 if { (eval echo configure:6298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6298 rm -rf conftest*
6299 eval "ac_cv_func_$ac_func=yes"
6300 else
6301 echo "configure: failed program was:" >&5
6302 cat conftest.$ac_ext >&5
6303 rm -rf conftest*
6304 eval "ac_cv_func_$ac_func=no"
6306 rm -f conftest*
6309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6310 echo "$ac_t""yes" 1>&6
6311 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6312 cat >> confdefs.h <<EOF
6313 #define $ac_tr_func 1
6316 else
6317 echo "$ac_t""no" 1>&6
6318 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6320 done
6323 for ac_func in __signbit
6325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6326 echo "configure:6327: checking for $ac_func" >&5
6327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6328 echo $ac_n "(cached) $ac_c" 1>&6
6329 else
6330 cat > conftest.$ac_ext <<EOF
6331 #line 6332 "configure"
6332 #include "confdefs.h"
6333 /* System header to define __stub macros and hopefully few prototypes,
6334 which can conflict with char $ac_func(); below. */
6335 #include <assert.h>
6336 /* Override any gcc2 internal prototype to avoid an error. */
6337 /* We use char because int might match the return type of a gcc2
6338 builtin and then its argument prototype would still apply. */
6339 char $ac_func();
6341 int main() {
6343 /* The GNU C library defines this for functions which it implements
6344 to always fail with ENOSYS. Some functions are actually named
6345 something starting with __ and the normal name is an alias. */
6346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6347 choke me
6348 #else
6349 $ac_func();
6350 #endif
6352 ; return 0; }
6354 if { (eval echo configure:6355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6355 rm -rf conftest*
6356 eval "ac_cv_func_$ac_func=yes"
6357 else
6358 echo "configure: failed program was:" >&5
6359 cat conftest.$ac_ext >&5
6360 rm -rf conftest*
6361 eval "ac_cv_func_$ac_func=no"
6363 rm -f conftest*
6366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6367 echo "$ac_t""yes" 1>&6
6368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6369 cat >> confdefs.h <<EOF
6370 #define $ac_tr_func 1
6373 else
6374 echo "$ac_t""no" 1>&6
6375 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6377 done
6379 for ac_func in __signbitf
6381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6382 echo "configure:6383: checking for $ac_func" >&5
6383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6384 echo $ac_n "(cached) $ac_c" 1>&6
6385 else
6386 cat > conftest.$ac_ext <<EOF
6387 #line 6388 "configure"
6388 #include "confdefs.h"
6389 /* System header to define __stub macros and hopefully few prototypes,
6390 which can conflict with char $ac_func(); below. */
6391 #include <assert.h>
6392 /* Override any gcc2 internal prototype to avoid an error. */
6393 /* We use char because int might match the return type of a gcc2
6394 builtin and then its argument prototype would still apply. */
6395 char $ac_func();
6397 int main() {
6399 /* The GNU C library defines this for functions which it implements
6400 to always fail with ENOSYS. Some functions are actually named
6401 something starting with __ and the normal name is an alias. */
6402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6403 choke me
6404 #else
6405 $ac_func();
6406 #endif
6408 ; return 0; }
6410 if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6411 rm -rf conftest*
6412 eval "ac_cv_func_$ac_func=yes"
6413 else
6414 echo "configure: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6416 rm -rf conftest*
6417 eval "ac_cv_func_$ac_func=no"
6419 rm -f conftest*
6422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6423 echo "$ac_t""yes" 1>&6
6424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6425 cat >> confdefs.h <<EOF
6426 #define $ac_tr_func 1
6429 else
6430 echo "$ac_t""no" 1>&6
6431 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6433 done
6436 if test x$ac_cv_func_copysignl = x"yes"; then
6437 for ac_func in __signbitl
6439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6440 echo "configure:6441: checking for $ac_func" >&5
6441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6442 echo $ac_n "(cached) $ac_c" 1>&6
6443 else
6444 cat > conftest.$ac_ext <<EOF
6445 #line 6446 "configure"
6446 #include "confdefs.h"
6447 /* System header to define __stub macros and hopefully few prototypes,
6448 which can conflict with char $ac_func(); below. */
6449 #include <assert.h>
6450 /* Override any gcc2 internal prototype to avoid an error. */
6451 /* We use char because int might match the return type of a gcc2
6452 builtin and then its argument prototype would still apply. */
6453 char $ac_func();
6455 int main() {
6457 /* The GNU C library defines this for functions which it implements
6458 to always fail with ENOSYS. Some functions are actually named
6459 something starting with __ and the normal name is an alias. */
6460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6461 choke me
6462 #else
6463 $ac_func();
6464 #endif
6466 ; return 0; }
6468 if { (eval echo configure:6469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6469 rm -rf conftest*
6470 eval "ac_cv_func_$ac_func=yes"
6471 else
6472 echo "configure: failed program was:" >&5
6473 cat conftest.$ac_ext >&5
6474 rm -rf conftest*
6475 eval "ac_cv_func_$ac_func=no"
6477 rm -f conftest*
6480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6481 echo "$ac_t""yes" 1>&6
6482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6483 cat >> confdefs.h <<EOF
6484 #define $ac_tr_func 1
6487 else
6488 echo "$ac_t""no" 1>&6
6489 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6491 done
6499 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6500 echo "configure:6501: checking for mbstate_t" >&5
6501 cat > conftest.$ac_ext <<EOF
6502 #line 6503 "configure"
6503 #include "confdefs.h"
6504 #include <wchar.h>
6505 int main() {
6506 mbstate_t teststate;
6507 ; return 0; }
6509 if { (eval echo configure:6510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6510 rm -rf conftest*
6511 have_mbstate_t=yes
6512 else
6513 echo "configure: failed program was:" >&5
6514 cat conftest.$ac_ext >&5
6515 rm -rf conftest*
6516 have_mbstate_t=no
6518 rm -f conftest*
6519 echo "$ac_t""$have_mbstate_t" 1>&6
6520 if test x"$have_mbstate_t" = xyes; then
6521 cat >> confdefs.h <<\EOF
6522 #define HAVE_MBSTATE_T 1
6527 for ac_hdr in wchar.h
6529 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6530 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6531 echo "configure:6532: checking for $ac_hdr" >&5
6532 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6533 echo $ac_n "(cached) $ac_c" 1>&6
6534 else
6535 cat > conftest.$ac_ext <<EOF
6536 #line 6537 "configure"
6537 #include "confdefs.h"
6538 #include <$ac_hdr>
6540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6541 { (eval echo configure:6542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6543 if test -z "$ac_err"; then
6544 rm -rf conftest*
6545 eval "ac_cv_header_$ac_safe=yes"
6546 else
6547 echo "$ac_err" >&5
6548 echo "configure: failed program was:" >&5
6549 cat conftest.$ac_ext >&5
6550 rm -rf conftest*
6551 eval "ac_cv_header_$ac_safe=no"
6553 rm -f conftest*
6555 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6556 echo "$ac_t""yes" 1>&6
6557 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6558 cat >> confdefs.h <<EOF
6559 #define $ac_tr_hdr 1
6561 ac_has_wchar_h=yes
6562 else
6563 echo "$ac_t""no" 1>&6
6564 ac_has_wchar_h=no
6566 done
6568 for ac_hdr in wctype.h
6570 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6571 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6572 echo "configure:6573: checking for $ac_hdr" >&5
6573 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6574 echo $ac_n "(cached) $ac_c" 1>&6
6575 else
6576 cat > conftest.$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6579 #include <$ac_hdr>
6581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6582 { (eval echo configure:6583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6584 if test -z "$ac_err"; then
6585 rm -rf conftest*
6586 eval "ac_cv_header_$ac_safe=yes"
6587 else
6588 echo "$ac_err" >&5
6589 echo "configure: failed program was:" >&5
6590 cat conftest.$ac_ext >&5
6591 rm -rf conftest*
6592 eval "ac_cv_header_$ac_safe=no"
6594 rm -f conftest*
6596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6597 echo "$ac_t""yes" 1>&6
6598 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6599 cat >> confdefs.h <<EOF
6600 #define $ac_tr_hdr 1
6602 ac_has_wctype_h=yes
6603 else
6604 echo "$ac_t""no" 1>&6
6605 ac_has_wctype_h=no
6607 done
6610 if test x"$ac_has_wchar_h" = xyes &&
6611 test x"$ac_has_wctype_h" = xyes &&
6612 test x"$enable_c_mbchar" != xno; then
6614 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6615 echo "configure:6616: checking for WCHAR_MIN and WCHAR_MAX" >&5
6616 cat > conftest.$ac_ext <<EOF
6617 #line 6618 "configure"
6618 #include "confdefs.h"
6619 #include <wchar.h>
6620 int main() {
6621 int i = WCHAR_MIN; int j = WCHAR_MAX;
6622 ; return 0; }
6624 if { (eval echo configure:6625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6625 rm -rf conftest*
6626 has_wchar_minmax=yes
6627 else
6628 echo "configure: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6630 rm -rf conftest*
6631 has_wchar_minmax=no
6633 rm -f conftest*
6634 echo "$ac_t""$has_wchar_minmax" 1>&6
6636 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6637 echo "configure:6638: checking for WEOF" >&5
6638 cat > conftest.$ac_ext <<EOF
6639 #line 6640 "configure"
6640 #include "confdefs.h"
6642 #include <wchar.h>
6643 #include <stddef.h>
6644 int main() {
6645 wint_t i = WEOF;
6646 ; return 0; }
6648 if { (eval echo configure:6649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6649 rm -rf conftest*
6650 has_weof=yes
6651 else
6652 echo "configure: failed program was:" >&5
6653 cat conftest.$ac_ext >&5
6654 rm -rf conftest*
6655 has_weof=no
6657 rm -f conftest*
6658 echo "$ac_t""$has_weof" 1>&6
6660 ac_wfuncs=yes
6661 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6664 echo "configure:6665: checking for $ac_func" >&5
6665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6666 echo $ac_n "(cached) $ac_c" 1>&6
6667 else
6668 cat > conftest.$ac_ext <<EOF
6669 #line 6670 "configure"
6670 #include "confdefs.h"
6671 /* System header to define __stub macros and hopefully few prototypes,
6672 which can conflict with char $ac_func(); below. */
6673 #include <assert.h>
6674 /* Override any gcc2 internal prototype to avoid an error. */
6675 /* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6677 char $ac_func();
6679 int main() {
6681 /* The GNU C library defines this for functions which it implements
6682 to always fail with ENOSYS. Some functions are actually named
6683 something starting with __ and the normal name is an alias. */
6684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6685 choke me
6686 #else
6687 $ac_func();
6688 #endif
6690 ; return 0; }
6692 if { (eval echo configure:6693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6693 rm -rf conftest*
6694 eval "ac_cv_func_$ac_func=yes"
6695 else
6696 echo "configure: failed program was:" >&5
6697 cat conftest.$ac_ext >&5
6698 rm -rf conftest*
6699 eval "ac_cv_func_$ac_func=no"
6701 rm -f conftest*
6704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6705 echo "$ac_t""yes" 1>&6
6706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6707 cat >> confdefs.h <<EOF
6708 #define $ac_tr_func 1
6711 else
6712 echo "$ac_t""no" 1>&6
6714 ac_wfuncs=no
6716 done
6719 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6720 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6721 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6722 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6723 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6724 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6727 echo "configure:6728: checking for $ac_func" >&5
6728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6729 echo $ac_n "(cached) $ac_c" 1>&6
6730 else
6731 cat > conftest.$ac_ext <<EOF
6732 #line 6733 "configure"
6733 #include "confdefs.h"
6734 /* System header to define __stub macros and hopefully few prototypes,
6735 which can conflict with char $ac_func(); below. */
6736 #include <assert.h>
6737 /* Override any gcc2 internal prototype to avoid an error. */
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6740 char $ac_func();
6742 int main() {
6744 /* The GNU C library defines this for functions which it implements
6745 to always fail with ENOSYS. Some functions are actually named
6746 something starting with __ and the normal name is an alias. */
6747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6748 choke me
6749 #else
6750 $ac_func();
6751 #endif
6753 ; return 0; }
6755 if { (eval echo configure:6756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6756 rm -rf conftest*
6757 eval "ac_cv_func_$ac_func=yes"
6758 else
6759 echo "configure: failed program was:" >&5
6760 cat conftest.$ac_ext >&5
6761 rm -rf conftest*
6762 eval "ac_cv_func_$ac_func=no"
6764 rm -f conftest*
6767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6768 echo "$ac_t""yes" 1>&6
6769 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6770 cat >> confdefs.h <<EOF
6771 #define $ac_tr_func 1
6774 else
6775 echo "$ac_t""no" 1>&6
6777 ac_wfuncs=no
6779 done
6782 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6783 echo "configure:6784: checking for ISO C99 wchar_t support" >&5
6784 if test x"$has_weof" = xyes &&
6785 test x"$has_wchar_minmax" = xyes &&
6786 test x"$ac_wfuncs" = xyes; then
6787 ac_isoC99_wchar_t=yes
6788 else
6789 ac_isoC99_wchar_t=no
6791 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6793 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6794 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6795 echo "configure:6796: checking for iconv.h" >&5
6796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6797 echo $ac_n "(cached) $ac_c" 1>&6
6798 else
6799 cat > conftest.$ac_ext <<EOF
6800 #line 6801 "configure"
6801 #include "confdefs.h"
6802 #include <iconv.h>
6804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6805 { (eval echo configure:6806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6807 if test -z "$ac_err"; then
6808 rm -rf conftest*
6809 eval "ac_cv_header_$ac_safe=yes"
6810 else
6811 echo "$ac_err" >&5
6812 echo "configure: failed program was:" >&5
6813 cat conftest.$ac_ext >&5
6814 rm -rf conftest*
6815 eval "ac_cv_header_$ac_safe=no"
6817 rm -f conftest*
6819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6820 echo "$ac_t""yes" 1>&6
6821 ac_has_iconv_h=yes
6822 else
6823 echo "$ac_t""no" 1>&6
6824 ac_has_iconv_h=no
6827 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6828 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6829 echo "configure:6830: checking for langinfo.h" >&5
6830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6831 echo $ac_n "(cached) $ac_c" 1>&6
6832 else
6833 cat > conftest.$ac_ext <<EOF
6834 #line 6835 "configure"
6835 #include "confdefs.h"
6836 #include <langinfo.h>
6838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6839 { (eval echo configure:6840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6841 if test -z "$ac_err"; then
6842 rm -rf conftest*
6843 eval "ac_cv_header_$ac_safe=yes"
6844 else
6845 echo "$ac_err" >&5
6846 echo "configure: failed program was:" >&5
6847 cat conftest.$ac_ext >&5
6848 rm -rf conftest*
6849 eval "ac_cv_header_$ac_safe=no"
6851 rm -f conftest*
6853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6854 echo "$ac_t""yes" 1>&6
6855 ac_has_langinfo_h=yes
6856 else
6857 echo "$ac_t""no" 1>&6
6858 ac_has_langinfo_h=no
6862 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6863 echo "configure:6864: checking for iconv in -liconv" >&5
6864 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6866 echo $ac_n "(cached) $ac_c" 1>&6
6867 else
6868 ac_save_LIBS="$LIBS"
6869 LIBS="-liconv $LIBS"
6870 cat > conftest.$ac_ext <<EOF
6871 #line 6872 "configure"
6872 #include "confdefs.h"
6873 /* Override any gcc2 internal prototype to avoid an error. */
6874 /* We use char because int might match the return type of a gcc2
6875 builtin and then its argument prototype would still apply. */
6876 char iconv();
6878 int main() {
6879 iconv()
6880 ; return 0; }
6882 if { (eval echo configure:6883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6883 rm -rf conftest*
6884 eval "ac_cv_lib_$ac_lib_var=yes"
6885 else
6886 echo "configure: failed program was:" >&5
6887 cat conftest.$ac_ext >&5
6888 rm -rf conftest*
6889 eval "ac_cv_lib_$ac_lib_var=no"
6891 rm -f conftest*
6892 LIBS="$ac_save_LIBS"
6895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6896 echo "$ac_t""yes" 1>&6
6897 libiconv="-liconv"
6898 else
6899 echo "$ac_t""no" 1>&6
6902 ac_save_LIBS="$LIBS"
6903 LIBS="$LIBS $libiconv"
6905 for ac_func in iconv_open iconv_close iconv nl_langinfo
6907 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6908 echo "configure:6909: checking for $ac_func" >&5
6909 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6910 echo $ac_n "(cached) $ac_c" 1>&6
6911 else
6912 cat > conftest.$ac_ext <<EOF
6913 #line 6914 "configure"
6914 #include "confdefs.h"
6915 /* System header to define __stub macros and hopefully few prototypes,
6916 which can conflict with char $ac_func(); below. */
6917 #include <assert.h>
6918 /* Override any gcc2 internal prototype to avoid an error. */
6919 /* We use char because int might match the return type of a gcc2
6920 builtin and then its argument prototype would still apply. */
6921 char $ac_func();
6923 int main() {
6925 /* The GNU C library defines this for functions which it implements
6926 to always fail with ENOSYS. Some functions are actually named
6927 something starting with __ and the normal name is an alias. */
6928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6929 choke me
6930 #else
6931 $ac_func();
6932 #endif
6934 ; return 0; }
6936 if { (eval echo configure:6937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6937 rm -rf conftest*
6938 eval "ac_cv_func_$ac_func=yes"
6939 else
6940 echo "configure: failed program was:" >&5
6941 cat conftest.$ac_ext >&5
6942 rm -rf conftest*
6943 eval "ac_cv_func_$ac_func=no"
6945 rm -f conftest*
6948 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6949 echo "$ac_t""yes" 1>&6
6950 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6951 cat >> confdefs.h <<EOF
6952 #define $ac_tr_func 1
6955 ac_XPG2funcs=yes
6956 else
6957 echo "$ac_t""no" 1>&6
6958 ac_XPG2funcs=no
6960 done
6963 LIBS="$ac_save_LIBS"
6965 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6966 echo "configure:6967: checking for XPG2 wchar_t support" >&5
6967 if test x"$ac_has_iconv_h" = xyes &&
6968 test x"$ac_has_langinfo_h" = xyes &&
6969 test x"$ac_XPG2funcs" = xyes; then
6970 ac_XPG2_wchar_t=yes
6971 else
6972 ac_XPG2_wchar_t=no
6974 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6976 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6977 echo "configure:6978: checking for enabled wchar_t specializations" >&5
6978 if test x"$ac_isoC99_wchar_t" = xyes &&
6979 test x"$ac_XPG2_wchar_t" = xyes; then
6980 cat >> confdefs.h <<\EOF
6981 #define _GLIBCPP_USE_WCHAR_T 1
6984 echo "$ac_t"""yes"" 1>&6
6985 else
6986 echo "$ac_t"""no"" 1>&6
6988 else
6989 echo "configure: warning: wchar_t support disabled." 1>&2
6992 os_include_dir="os/bsd/netbsd"
6993 cat >> confdefs.h <<\EOF
6994 #define HAVE_COPYSIGN 1
6997 cat >> confdefs.h <<\EOF
6998 #define HAVE_COPYSIGNF 1
7001 cat >> confdefs.h <<\EOF
7002 #define HAVE_FINITEF 1
7005 cat >> confdefs.h <<\EOF
7006 #define HAVE_FINITE 1
7009 cat >> confdefs.h <<\EOF
7010 #define HAVE_FREXPF 1
7013 cat >> confdefs.h <<\EOF
7014 #define HAVE_HYPOTF 1
7017 cat >> confdefs.h <<\EOF
7018 #define HAVE_ISINF 1
7021 cat >> confdefs.h <<\EOF
7022 #define HAVE_ISINFF 1
7025 cat >> confdefs.h <<\EOF
7026 #define HAVE_ISNAN 1
7029 cat >> confdefs.h <<\EOF
7030 #define HAVE_ISNANF 1
7033 if test x"long_double_math_on_this_cpu" = x"yes"; then
7034 cat >> confdefs.h <<\EOF
7035 #define HAVE_FINITEL 1
7038 cat >> confdefs.h <<\EOF
7039 #define HAVE_ISINFL 1
7042 cat >> confdefs.h <<\EOF
7043 #define HAVE_ISNANL 1
7048 *-mingw32*)
7049 for ac_hdr in sys/types.h locale.h float.h
7051 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7052 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7053 echo "configure:7054: checking for $ac_hdr" >&5
7054 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7055 echo $ac_n "(cached) $ac_c" 1>&6
7056 else
7057 cat > conftest.$ac_ext <<EOF
7058 #line 7059 "configure"
7059 #include "confdefs.h"
7060 #include <$ac_hdr>
7062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7063 { (eval echo configure:7064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7065 if test -z "$ac_err"; then
7066 rm -rf conftest*
7067 eval "ac_cv_header_$ac_safe=yes"
7068 else
7069 echo "$ac_err" >&5
7070 echo "configure: failed program was:" >&5
7071 cat conftest.$ac_ext >&5
7072 rm -rf conftest*
7073 eval "ac_cv_header_$ac_safe=no"
7075 rm -f conftest*
7077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7078 echo "$ac_t""yes" 1>&6
7079 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7080 cat >> confdefs.h <<EOF
7081 #define $ac_tr_hdr 1
7084 else
7085 echo "$ac_t""no" 1>&6
7087 done
7090 # If we're not using GNU ld, then there's no point in even trying these
7091 # tests. Check for that first. We should have already tested for gld
7092 # by now (in libtool), but require it now just to be safe...
7093 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7094 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7097 # The name set by libtool depends on the version of libtool. Shame on us
7098 # for depending on an impl detail, but c'est la vie. Older versions used
7099 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7100 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7101 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7102 # set (hence we're using an older libtool), then set it.
7103 if test x${with_gnu_ld+set} != xset; then
7104 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7105 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7106 with_gnu_ld=no
7107 else
7108 with_gnu_ld=$ac_cv_prog_gnu_ld
7112 # Start by getting the version number. I think the libtool test already
7113 # does some of this, but throws away the result.
7115 ldver=`$LD --version 2>/dev/null | head -1 | \
7116 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7118 glibcpp_gnu_ld_version=`echo $ldver | \
7119 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7121 # Set --gc-sections.
7122 if test "$with_gnu_ld" = "notbroken"; then
7123 # GNU ld it is! Joy and bunny rabbits!
7125 # All these tests are for C++; save the language and the compiler flags.
7126 # Need to do this so that g++ won't try to link in libstdc++
7127 ac_test_CFLAGS="${CFLAGS+set}"
7128 ac_save_CFLAGS="$CFLAGS"
7129 CFLAGS='-x c++ -Wl,--gc-sections'
7131 # Check for -Wl,--gc-sections
7132 # XXX This test is broken at the moment, as symbols required for
7133 # linking are now in libsupc++ (not built yet.....). In addition,
7134 # this test has cored on solaris in the past. In addition,
7135 # --gc-sections doesn't really work at the moment (keeps on discarding
7136 # used sections, first .eh_frame and now some of the glibc sections for
7137 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7138 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7139 echo "configure:7140: checking for ld that supports -Wl,--gc-sections" >&5
7140 if test "$cross_compiling" = yes; then
7141 ac_sectionLDflags=yes
7142 else
7143 cat > conftest.$ac_ext <<EOF
7144 #line 7145 "configure"
7145 #include "confdefs.h"
7147 int main(void)
7149 try { throw 1; }
7150 catch (...) { };
7151 return 0;
7155 if { (eval echo configure:7156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7156 then
7157 ac_sectionLDflags=yes
7158 else
7159 echo "configure: failed program was:" >&5
7160 cat conftest.$ac_ext >&5
7161 rm -fr conftest*
7162 ac_sectionLDflags=no
7164 rm -fr conftest*
7167 if test "$ac_test_CFLAGS" = set; then
7168 CFLAGS="$ac_save_CFLAGS"
7169 else
7170 # this is the suspicious part
7171 CFLAGS=''
7173 if test "$ac_sectionLDflags" = "yes"; then
7174 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7176 echo "$ac_t""$ac_sectionLDflags" 1>&6
7179 # Set linker optimization flags.
7180 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7181 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7188 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7189 echo "configure:7190: checking for main in -lm" >&5
7190 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7192 echo $ac_n "(cached) $ac_c" 1>&6
7193 else
7194 ac_save_LIBS="$LIBS"
7195 LIBS="-lm $LIBS"
7196 cat > conftest.$ac_ext <<EOF
7197 #line 7198 "configure"
7198 #include "confdefs.h"
7200 int main() {
7201 main()
7202 ; return 0; }
7204 if { (eval echo configure:7205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7205 rm -rf conftest*
7206 eval "ac_cv_lib_$ac_lib_var=yes"
7207 else
7208 echo "configure: failed program was:" >&5
7209 cat conftest.$ac_ext >&5
7210 rm -rf conftest*
7211 eval "ac_cv_lib_$ac_lib_var=no"
7213 rm -f conftest*
7214 LIBS="$ac_save_LIBS"
7217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7218 echo "$ac_t""yes" 1>&6
7219 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7220 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7221 cat >> confdefs.h <<EOF
7222 #define $ac_tr_lib 1
7225 LIBS="-lm $LIBS"
7227 else
7228 echo "$ac_t""no" 1>&6
7231 for ac_func in nan copysignf
7233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7234 echo "configure:7235: checking for $ac_func" >&5
7235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7236 echo $ac_n "(cached) $ac_c" 1>&6
7237 else
7238 cat > conftest.$ac_ext <<EOF
7239 #line 7240 "configure"
7240 #include "confdefs.h"
7241 /* System header to define __stub macros and hopefully few prototypes,
7242 which can conflict with char $ac_func(); below. */
7243 #include <assert.h>
7244 /* Override any gcc2 internal prototype to avoid an error. */
7245 /* We use char because int might match the return type of a gcc2
7246 builtin and then its argument prototype would still apply. */
7247 char $ac_func();
7249 int main() {
7251 /* The GNU C library defines this for functions which it implements
7252 to always fail with ENOSYS. Some functions are actually named
7253 something starting with __ and the normal name is an alias. */
7254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7255 choke me
7256 #else
7257 $ac_func();
7258 #endif
7260 ; return 0; }
7262 if { (eval echo configure:7263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7263 rm -rf conftest*
7264 eval "ac_cv_func_$ac_func=yes"
7265 else
7266 echo "configure: failed program was:" >&5
7267 cat conftest.$ac_ext >&5
7268 rm -rf conftest*
7269 eval "ac_cv_func_$ac_func=no"
7271 rm -f conftest*
7274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7275 echo "$ac_t""yes" 1>&6
7276 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7277 cat >> confdefs.h <<EOF
7278 #define $ac_tr_func 1
7281 else
7282 echo "$ac_t""no" 1>&6
7283 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7285 done
7288 for ac_func in __signbit
7290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7291 echo "configure:7292: checking for $ac_func" >&5
7292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7293 echo $ac_n "(cached) $ac_c" 1>&6
7294 else
7295 cat > conftest.$ac_ext <<EOF
7296 #line 7297 "configure"
7297 #include "confdefs.h"
7298 /* System header to define __stub macros and hopefully few prototypes,
7299 which can conflict with char $ac_func(); below. */
7300 #include <assert.h>
7301 /* Override any gcc2 internal prototype to avoid an error. */
7302 /* We use char because int might match the return type of a gcc2
7303 builtin and then its argument prototype would still apply. */
7304 char $ac_func();
7306 int main() {
7308 /* The GNU C library defines this for functions which it implements
7309 to always fail with ENOSYS. Some functions are actually named
7310 something starting with __ and the normal name is an alias. */
7311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7312 choke me
7313 #else
7314 $ac_func();
7315 #endif
7317 ; return 0; }
7319 if { (eval echo configure:7320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7320 rm -rf conftest*
7321 eval "ac_cv_func_$ac_func=yes"
7322 else
7323 echo "configure: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7325 rm -rf conftest*
7326 eval "ac_cv_func_$ac_func=no"
7328 rm -f conftest*
7331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7332 echo "$ac_t""yes" 1>&6
7333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7334 cat >> confdefs.h <<EOF
7335 #define $ac_tr_func 1
7338 else
7339 echo "$ac_t""no" 1>&6
7340 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7342 done
7344 for ac_func in __signbitf
7346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7347 echo "configure:7348: checking for $ac_func" >&5
7348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7349 echo $ac_n "(cached) $ac_c" 1>&6
7350 else
7351 cat > conftest.$ac_ext <<EOF
7352 #line 7353 "configure"
7353 #include "confdefs.h"
7354 /* System header to define __stub macros and hopefully few prototypes,
7355 which can conflict with char $ac_func(); below. */
7356 #include <assert.h>
7357 /* Override any gcc2 internal prototype to avoid an error. */
7358 /* We use char because int might match the return type of a gcc2
7359 builtin and then its argument prototype would still apply. */
7360 char $ac_func();
7362 int main() {
7364 /* The GNU C library defines this for functions which it implements
7365 to always fail with ENOSYS. Some functions are actually named
7366 something starting with __ and the normal name is an alias. */
7367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7368 choke me
7369 #else
7370 $ac_func();
7371 #endif
7373 ; return 0; }
7375 if { (eval echo configure:7376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7376 rm -rf conftest*
7377 eval "ac_cv_func_$ac_func=yes"
7378 else
7379 echo "configure: failed program was:" >&5
7380 cat conftest.$ac_ext >&5
7381 rm -rf conftest*
7382 eval "ac_cv_func_$ac_func=no"
7384 rm -f conftest*
7387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7388 echo "$ac_t""yes" 1>&6
7389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7390 cat >> confdefs.h <<EOF
7391 #define $ac_tr_func 1
7394 else
7395 echo "$ac_t""no" 1>&6
7396 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7398 done
7401 if test x$ac_cv_func_copysignl = x"yes"; then
7402 for ac_func in __signbitl
7404 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7405 echo "configure:7406: checking for $ac_func" >&5
7406 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7407 echo $ac_n "(cached) $ac_c" 1>&6
7408 else
7409 cat > conftest.$ac_ext <<EOF
7410 #line 7411 "configure"
7411 #include "confdefs.h"
7412 /* System header to define __stub macros and hopefully few prototypes,
7413 which can conflict with char $ac_func(); below. */
7414 #include <assert.h>
7415 /* Override any gcc2 internal prototype to avoid an error. */
7416 /* We use char because int might match the return type of a gcc2
7417 builtin and then its argument prototype would still apply. */
7418 char $ac_func();
7420 int main() {
7422 /* The GNU C library defines this for functions which it implements
7423 to always fail with ENOSYS. Some functions are actually named
7424 something starting with __ and the normal name is an alias. */
7425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7426 choke me
7427 #else
7428 $ac_func();
7429 #endif
7431 ; return 0; }
7433 if { (eval echo configure:7434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7434 rm -rf conftest*
7435 eval "ac_cv_func_$ac_func=yes"
7436 else
7437 echo "configure: failed program was:" >&5
7438 cat conftest.$ac_ext >&5
7439 rm -rf conftest*
7440 eval "ac_cv_func_$ac_func=no"
7442 rm -f conftest*
7445 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7446 echo "$ac_t""yes" 1>&6
7447 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7448 cat >> confdefs.h <<EOF
7449 #define $ac_tr_func 1
7452 else
7453 echo "$ac_t""no" 1>&6
7454 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7456 done
7464 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7465 echo "configure:7466: checking for mbstate_t" >&5
7466 cat > conftest.$ac_ext <<EOF
7467 #line 7468 "configure"
7468 #include "confdefs.h"
7469 #include <wchar.h>
7470 int main() {
7471 mbstate_t teststate;
7472 ; return 0; }
7474 if { (eval echo configure:7475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7475 rm -rf conftest*
7476 have_mbstate_t=yes
7477 else
7478 echo "configure: failed program was:" >&5
7479 cat conftest.$ac_ext >&5
7480 rm -rf conftest*
7481 have_mbstate_t=no
7483 rm -f conftest*
7484 echo "$ac_t""$have_mbstate_t" 1>&6
7485 if test x"$have_mbstate_t" = xyes; then
7486 cat >> confdefs.h <<\EOF
7487 #define HAVE_MBSTATE_T 1
7492 for ac_hdr in wchar.h
7494 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7496 echo "configure:7497: checking for $ac_hdr" >&5
7497 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7498 echo $ac_n "(cached) $ac_c" 1>&6
7499 else
7500 cat > conftest.$ac_ext <<EOF
7501 #line 7502 "configure"
7502 #include "confdefs.h"
7503 #include <$ac_hdr>
7505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7506 { (eval echo configure:7507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7508 if test -z "$ac_err"; then
7509 rm -rf conftest*
7510 eval "ac_cv_header_$ac_safe=yes"
7511 else
7512 echo "$ac_err" >&5
7513 echo "configure: failed program was:" >&5
7514 cat conftest.$ac_ext >&5
7515 rm -rf conftest*
7516 eval "ac_cv_header_$ac_safe=no"
7518 rm -f conftest*
7520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7521 echo "$ac_t""yes" 1>&6
7522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7523 cat >> confdefs.h <<EOF
7524 #define $ac_tr_hdr 1
7526 ac_has_wchar_h=yes
7527 else
7528 echo "$ac_t""no" 1>&6
7529 ac_has_wchar_h=no
7531 done
7533 for ac_hdr in wctype.h
7535 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7537 echo "configure:7538: checking for $ac_hdr" >&5
7538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7539 echo $ac_n "(cached) $ac_c" 1>&6
7540 else
7541 cat > conftest.$ac_ext <<EOF
7542 #line 7543 "configure"
7543 #include "confdefs.h"
7544 #include <$ac_hdr>
7546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7547 { (eval echo configure:7548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7549 if test -z "$ac_err"; then
7550 rm -rf conftest*
7551 eval "ac_cv_header_$ac_safe=yes"
7552 else
7553 echo "$ac_err" >&5
7554 echo "configure: failed program was:" >&5
7555 cat conftest.$ac_ext >&5
7556 rm -rf conftest*
7557 eval "ac_cv_header_$ac_safe=no"
7559 rm -f conftest*
7561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7562 echo "$ac_t""yes" 1>&6
7563 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7564 cat >> confdefs.h <<EOF
7565 #define $ac_tr_hdr 1
7567 ac_has_wctype_h=yes
7568 else
7569 echo "$ac_t""no" 1>&6
7570 ac_has_wctype_h=no
7572 done
7575 if test x"$ac_has_wchar_h" = xyes &&
7576 test x"$ac_has_wctype_h" = xyes &&
7577 test x"$enable_c_mbchar" != xno; then
7579 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7580 echo "configure:7581: checking for WCHAR_MIN and WCHAR_MAX" >&5
7581 cat > conftest.$ac_ext <<EOF
7582 #line 7583 "configure"
7583 #include "confdefs.h"
7584 #include <wchar.h>
7585 int main() {
7586 int i = WCHAR_MIN; int j = WCHAR_MAX;
7587 ; return 0; }
7589 if { (eval echo configure:7590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7590 rm -rf conftest*
7591 has_wchar_minmax=yes
7592 else
7593 echo "configure: failed program was:" >&5
7594 cat conftest.$ac_ext >&5
7595 rm -rf conftest*
7596 has_wchar_minmax=no
7598 rm -f conftest*
7599 echo "$ac_t""$has_wchar_minmax" 1>&6
7601 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7602 echo "configure:7603: checking for WEOF" >&5
7603 cat > conftest.$ac_ext <<EOF
7604 #line 7605 "configure"
7605 #include "confdefs.h"
7607 #include <wchar.h>
7608 #include <stddef.h>
7609 int main() {
7610 wint_t i = WEOF;
7611 ; return 0; }
7613 if { (eval echo configure:7614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7614 rm -rf conftest*
7615 has_weof=yes
7616 else
7617 echo "configure: failed program was:" >&5
7618 cat conftest.$ac_ext >&5
7619 rm -rf conftest*
7620 has_weof=no
7622 rm -f conftest*
7623 echo "$ac_t""$has_weof" 1>&6
7625 ac_wfuncs=yes
7626 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7629 echo "configure:7630: checking for $ac_func" >&5
7630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7631 echo $ac_n "(cached) $ac_c" 1>&6
7632 else
7633 cat > conftest.$ac_ext <<EOF
7634 #line 7635 "configure"
7635 #include "confdefs.h"
7636 /* System header to define __stub macros and hopefully few prototypes,
7637 which can conflict with char $ac_func(); below. */
7638 #include <assert.h>
7639 /* Override any gcc2 internal prototype to avoid an error. */
7640 /* We use char because int might match the return type of a gcc2
7641 builtin and then its argument prototype would still apply. */
7642 char $ac_func();
7644 int main() {
7646 /* The GNU C library defines this for functions which it implements
7647 to always fail with ENOSYS. Some functions are actually named
7648 something starting with __ and the normal name is an alias. */
7649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7650 choke me
7651 #else
7652 $ac_func();
7653 #endif
7655 ; return 0; }
7657 if { (eval echo configure:7658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7658 rm -rf conftest*
7659 eval "ac_cv_func_$ac_func=yes"
7660 else
7661 echo "configure: failed program was:" >&5
7662 cat conftest.$ac_ext >&5
7663 rm -rf conftest*
7664 eval "ac_cv_func_$ac_func=no"
7666 rm -f conftest*
7669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7670 echo "$ac_t""yes" 1>&6
7671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7672 cat >> confdefs.h <<EOF
7673 #define $ac_tr_func 1
7676 else
7677 echo "$ac_t""no" 1>&6
7679 ac_wfuncs=no
7681 done
7684 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7685 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7686 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7687 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7688 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7689 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
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 ac_wfuncs=no
7744 done
7747 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7748 echo "configure:7749: checking for ISO C99 wchar_t support" >&5
7749 if test x"$has_weof" = xyes &&
7750 test x"$has_wchar_minmax" = xyes &&
7751 test x"$ac_wfuncs" = xyes; then
7752 ac_isoC99_wchar_t=yes
7753 else
7754 ac_isoC99_wchar_t=no
7756 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7758 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7759 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7760 echo "configure:7761: checking for iconv.h" >&5
7761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7762 echo $ac_n "(cached) $ac_c" 1>&6
7763 else
7764 cat > conftest.$ac_ext <<EOF
7765 #line 7766 "configure"
7766 #include "confdefs.h"
7767 #include <iconv.h>
7769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7770 { (eval echo configure:7771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7772 if test -z "$ac_err"; then
7773 rm -rf conftest*
7774 eval "ac_cv_header_$ac_safe=yes"
7775 else
7776 echo "$ac_err" >&5
7777 echo "configure: failed program was:" >&5
7778 cat conftest.$ac_ext >&5
7779 rm -rf conftest*
7780 eval "ac_cv_header_$ac_safe=no"
7782 rm -f conftest*
7784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7785 echo "$ac_t""yes" 1>&6
7786 ac_has_iconv_h=yes
7787 else
7788 echo "$ac_t""no" 1>&6
7789 ac_has_iconv_h=no
7792 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7793 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7794 echo "configure:7795: checking for langinfo.h" >&5
7795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7796 echo $ac_n "(cached) $ac_c" 1>&6
7797 else
7798 cat > conftest.$ac_ext <<EOF
7799 #line 7800 "configure"
7800 #include "confdefs.h"
7801 #include <langinfo.h>
7803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7804 { (eval echo configure:7805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7806 if test -z "$ac_err"; then
7807 rm -rf conftest*
7808 eval "ac_cv_header_$ac_safe=yes"
7809 else
7810 echo "$ac_err" >&5
7811 echo "configure: failed program was:" >&5
7812 cat conftest.$ac_ext >&5
7813 rm -rf conftest*
7814 eval "ac_cv_header_$ac_safe=no"
7816 rm -f conftest*
7818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7819 echo "$ac_t""yes" 1>&6
7820 ac_has_langinfo_h=yes
7821 else
7822 echo "$ac_t""no" 1>&6
7823 ac_has_langinfo_h=no
7827 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7828 echo "configure:7829: checking for iconv in -liconv" >&5
7829 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7831 echo $ac_n "(cached) $ac_c" 1>&6
7832 else
7833 ac_save_LIBS="$LIBS"
7834 LIBS="-liconv $LIBS"
7835 cat > conftest.$ac_ext <<EOF
7836 #line 7837 "configure"
7837 #include "confdefs.h"
7838 /* Override any gcc2 internal prototype to avoid an error. */
7839 /* We use char because int might match the return type of a gcc2
7840 builtin and then its argument prototype would still apply. */
7841 char iconv();
7843 int main() {
7844 iconv()
7845 ; return 0; }
7847 if { (eval echo configure:7848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7848 rm -rf conftest*
7849 eval "ac_cv_lib_$ac_lib_var=yes"
7850 else
7851 echo "configure: failed program was:" >&5
7852 cat conftest.$ac_ext >&5
7853 rm -rf conftest*
7854 eval "ac_cv_lib_$ac_lib_var=no"
7856 rm -f conftest*
7857 LIBS="$ac_save_LIBS"
7860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7861 echo "$ac_t""yes" 1>&6
7862 libiconv="-liconv"
7863 else
7864 echo "$ac_t""no" 1>&6
7867 ac_save_LIBS="$LIBS"
7868 LIBS="$LIBS $libiconv"
7870 for ac_func in iconv_open iconv_close iconv nl_langinfo
7872 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7873 echo "configure:7874: checking for $ac_func" >&5
7874 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7875 echo $ac_n "(cached) $ac_c" 1>&6
7876 else
7877 cat > conftest.$ac_ext <<EOF
7878 #line 7879 "configure"
7879 #include "confdefs.h"
7880 /* System header to define __stub macros and hopefully few prototypes,
7881 which can conflict with char $ac_func(); below. */
7882 #include <assert.h>
7883 /* Override any gcc2 internal prototype to avoid an error. */
7884 /* We use char because int might match the return type of a gcc2
7885 builtin and then its argument prototype would still apply. */
7886 char $ac_func();
7888 int main() {
7890 /* The GNU C library defines this for functions which it implements
7891 to always fail with ENOSYS. Some functions are actually named
7892 something starting with __ and the normal name is an alias. */
7893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7894 choke me
7895 #else
7896 $ac_func();
7897 #endif
7899 ; return 0; }
7901 if { (eval echo configure:7902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7902 rm -rf conftest*
7903 eval "ac_cv_func_$ac_func=yes"
7904 else
7905 echo "configure: failed program was:" >&5
7906 cat conftest.$ac_ext >&5
7907 rm -rf conftest*
7908 eval "ac_cv_func_$ac_func=no"
7910 rm -f conftest*
7913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7914 echo "$ac_t""yes" 1>&6
7915 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7916 cat >> confdefs.h <<EOF
7917 #define $ac_tr_func 1
7920 ac_XPG2funcs=yes
7921 else
7922 echo "$ac_t""no" 1>&6
7923 ac_XPG2funcs=no
7925 done
7928 LIBS="$ac_save_LIBS"
7930 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7931 echo "configure:7932: checking for XPG2 wchar_t support" >&5
7932 if test x"$ac_has_iconv_h" = xyes &&
7933 test x"$ac_has_langinfo_h" = xyes &&
7934 test x"$ac_XPG2funcs" = xyes; then
7935 ac_XPG2_wchar_t=yes
7936 else
7937 ac_XPG2_wchar_t=no
7939 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7941 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7942 echo "configure:7943: checking for enabled wchar_t specializations" >&5
7943 if test x"$ac_isoC99_wchar_t" = xyes &&
7944 test x"$ac_XPG2_wchar_t" = xyes; then
7945 cat >> confdefs.h <<\EOF
7946 #define _GLIBCPP_USE_WCHAR_T 1
7949 echo "$ac_t"""yes"" 1>&6
7950 else
7951 echo "$ac_t"""no"" 1>&6
7953 else
7954 echo "configure: warning: wchar_t support disabled." 1>&2
7957 os_include_dir="os/mingw32"
7959 *-windiss*)
7960 os_include_dir="os/windiss"
7962 *-qnx6.[12]*)
7963 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7966 # If we're not using GNU ld, then there's no point in even trying these
7967 # tests. Check for that first. We should have already tested for gld
7968 # by now (in libtool), but require it now just to be safe...
7969 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7970 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7973 # The name set by libtool depends on the version of libtool. Shame on us
7974 # for depending on an impl detail, but c'est la vie. Older versions used
7975 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7976 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7977 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7978 # set (hence we're using an older libtool), then set it.
7979 if test x${with_gnu_ld+set} != xset; then
7980 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7981 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7982 with_gnu_ld=no
7983 else
7984 with_gnu_ld=$ac_cv_prog_gnu_ld
7988 # Start by getting the version number. I think the libtool test already
7989 # does some of this, but throws away the result.
7991 ldver=`$LD --version 2>/dev/null | head -1 | \
7992 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7994 glibcpp_gnu_ld_version=`echo $ldver | \
7995 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7997 # Set --gc-sections.
7998 if test "$with_gnu_ld" = "notbroken"; then
7999 # GNU ld it is! Joy and bunny rabbits!
8001 # All these tests are for C++; save the language and the compiler flags.
8002 # Need to do this so that g++ won't try to link in libstdc++
8003 ac_test_CFLAGS="${CFLAGS+set}"
8004 ac_save_CFLAGS="$CFLAGS"
8005 CFLAGS='-x c++ -Wl,--gc-sections'
8007 # Check for -Wl,--gc-sections
8008 # XXX This test is broken at the moment, as symbols required for
8009 # linking are now in libsupc++ (not built yet.....). In addition,
8010 # this test has cored on solaris in the past. In addition,
8011 # --gc-sections doesn't really work at the moment (keeps on discarding
8012 # used sections, first .eh_frame and now some of the glibc sections for
8013 # iconv). Bzzzzt. Thanks for playing, maybe next time.
8014 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8015 echo "configure:8016: checking for ld that supports -Wl,--gc-sections" >&5
8016 if test "$cross_compiling" = yes; then
8017 ac_sectionLDflags=yes
8018 else
8019 cat > conftest.$ac_ext <<EOF
8020 #line 8021 "configure"
8021 #include "confdefs.h"
8023 int main(void)
8025 try { throw 1; }
8026 catch (...) { };
8027 return 0;
8031 if { (eval echo configure:8032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8032 then
8033 ac_sectionLDflags=yes
8034 else
8035 echo "configure: failed program was:" >&5
8036 cat conftest.$ac_ext >&5
8037 rm -fr conftest*
8038 ac_sectionLDflags=no
8040 rm -fr conftest*
8043 if test "$ac_test_CFLAGS" = set; then
8044 CFLAGS="$ac_save_CFLAGS"
8045 else
8046 # this is the suspicious part
8047 CFLAGS=''
8049 if test "$ac_sectionLDflags" = "yes"; then
8050 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8052 echo "$ac_t""$ac_sectionLDflags" 1>&6
8055 # Set linker optimization flags.
8056 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
8057 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8064 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8065 echo "configure:8066: checking for main in -lm" >&5
8066 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8068 echo $ac_n "(cached) $ac_c" 1>&6
8069 else
8070 ac_save_LIBS="$LIBS"
8071 LIBS="-lm $LIBS"
8072 cat > conftest.$ac_ext <<EOF
8073 #line 8074 "configure"
8074 #include "confdefs.h"
8076 int main() {
8077 main()
8078 ; return 0; }
8080 if { (eval echo configure:8081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8081 rm -rf conftest*
8082 eval "ac_cv_lib_$ac_lib_var=yes"
8083 else
8084 echo "configure: failed program was:" >&5
8085 cat conftest.$ac_ext >&5
8086 rm -rf conftest*
8087 eval "ac_cv_lib_$ac_lib_var=no"
8089 rm -f conftest*
8090 LIBS="$ac_save_LIBS"
8093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8094 echo "$ac_t""yes" 1>&6
8095 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8096 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8097 cat >> confdefs.h <<EOF
8098 #define $ac_tr_lib 1
8101 LIBS="-lm $LIBS"
8103 else
8104 echo "$ac_t""no" 1>&6
8107 for ac_func in nan copysignf
8109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8110 echo "configure:8111: checking for $ac_func" >&5
8111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8112 echo $ac_n "(cached) $ac_c" 1>&6
8113 else
8114 cat > conftest.$ac_ext <<EOF
8115 #line 8116 "configure"
8116 #include "confdefs.h"
8117 /* System header to define __stub macros and hopefully few prototypes,
8118 which can conflict with char $ac_func(); below. */
8119 #include <assert.h>
8120 /* Override any gcc2 internal prototype to avoid an error. */
8121 /* We use char because int might match the return type of a gcc2
8122 builtin and then its argument prototype would still apply. */
8123 char $ac_func();
8125 int main() {
8127 /* The GNU C library defines this for functions which it implements
8128 to always fail with ENOSYS. Some functions are actually named
8129 something starting with __ and the normal name is an alias. */
8130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8131 choke me
8132 #else
8133 $ac_func();
8134 #endif
8136 ; return 0; }
8138 if { (eval echo configure:8139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8139 rm -rf conftest*
8140 eval "ac_cv_func_$ac_func=yes"
8141 else
8142 echo "configure: failed program was:" >&5
8143 cat conftest.$ac_ext >&5
8144 rm -rf conftest*
8145 eval "ac_cv_func_$ac_func=no"
8147 rm -f conftest*
8150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8151 echo "$ac_t""yes" 1>&6
8152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8153 cat >> confdefs.h <<EOF
8154 #define $ac_tr_func 1
8157 else
8158 echo "$ac_t""no" 1>&6
8159 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8161 done
8164 for ac_func in __signbit
8166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8167 echo "configure:8168: checking for $ac_func" >&5
8168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8169 echo $ac_n "(cached) $ac_c" 1>&6
8170 else
8171 cat > conftest.$ac_ext <<EOF
8172 #line 8173 "configure"
8173 #include "confdefs.h"
8174 /* System header to define __stub macros and hopefully few prototypes,
8175 which can conflict with char $ac_func(); below. */
8176 #include <assert.h>
8177 /* Override any gcc2 internal prototype to avoid an error. */
8178 /* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8180 char $ac_func();
8182 int main() {
8184 /* The GNU C library defines this for functions which it implements
8185 to always fail with ENOSYS. Some functions are actually named
8186 something starting with __ and the normal name is an alias. */
8187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8188 choke me
8189 #else
8190 $ac_func();
8191 #endif
8193 ; return 0; }
8195 if { (eval echo configure:8196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8196 rm -rf conftest*
8197 eval "ac_cv_func_$ac_func=yes"
8198 else
8199 echo "configure: failed program was:" >&5
8200 cat conftest.$ac_ext >&5
8201 rm -rf conftest*
8202 eval "ac_cv_func_$ac_func=no"
8204 rm -f conftest*
8207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8208 echo "$ac_t""yes" 1>&6
8209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8210 cat >> confdefs.h <<EOF
8211 #define $ac_tr_func 1
8214 else
8215 echo "$ac_t""no" 1>&6
8216 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8218 done
8220 for ac_func in __signbitf
8222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8223 echo "configure:8224: checking for $ac_func" >&5
8224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8225 echo $ac_n "(cached) $ac_c" 1>&6
8226 else
8227 cat > conftest.$ac_ext <<EOF
8228 #line 8229 "configure"
8229 #include "confdefs.h"
8230 /* System header to define __stub macros and hopefully few prototypes,
8231 which can conflict with char $ac_func(); below. */
8232 #include <assert.h>
8233 /* Override any gcc2 internal prototype to avoid an error. */
8234 /* We use char because int might match the return type of a gcc2
8235 builtin and then its argument prototype would still apply. */
8236 char $ac_func();
8238 int main() {
8240 /* The GNU C library defines this for functions which it implements
8241 to always fail with ENOSYS. Some functions are actually named
8242 something starting with __ and the normal name is an alias. */
8243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8244 choke me
8245 #else
8246 $ac_func();
8247 #endif
8249 ; return 0; }
8251 if { (eval echo configure:8252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8252 rm -rf conftest*
8253 eval "ac_cv_func_$ac_func=yes"
8254 else
8255 echo "configure: failed program was:" >&5
8256 cat conftest.$ac_ext >&5
8257 rm -rf conftest*
8258 eval "ac_cv_func_$ac_func=no"
8260 rm -f conftest*
8263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8264 echo "$ac_t""yes" 1>&6
8265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8266 cat >> confdefs.h <<EOF
8267 #define $ac_tr_func 1
8270 else
8271 echo "$ac_t""no" 1>&6
8272 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8274 done
8277 if test x$ac_cv_func_copysignl = x"yes"; then
8278 for ac_func in __signbitl
8280 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8281 echo "configure:8282: checking for $ac_func" >&5
8282 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8283 echo $ac_n "(cached) $ac_c" 1>&6
8284 else
8285 cat > conftest.$ac_ext <<EOF
8286 #line 8287 "configure"
8287 #include "confdefs.h"
8288 /* System header to define __stub macros and hopefully few prototypes,
8289 which can conflict with char $ac_func(); below. */
8290 #include <assert.h>
8291 /* Override any gcc2 internal prototype to avoid an error. */
8292 /* We use char because int might match the return type of a gcc2
8293 builtin and then its argument prototype would still apply. */
8294 char $ac_func();
8296 int main() {
8298 /* The GNU C library defines this for functions which it implements
8299 to always fail with ENOSYS. Some functions are actually named
8300 something starting with __ and the normal name is an alias. */
8301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8302 choke me
8303 #else
8304 $ac_func();
8305 #endif
8307 ; return 0; }
8309 if { (eval echo configure:8310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8310 rm -rf conftest*
8311 eval "ac_cv_func_$ac_func=yes"
8312 else
8313 echo "configure: failed program was:" >&5
8314 cat conftest.$ac_ext >&5
8315 rm -rf conftest*
8316 eval "ac_cv_func_$ac_func=no"
8318 rm -f conftest*
8321 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8322 echo "$ac_t""yes" 1>&6
8323 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8324 cat >> confdefs.h <<EOF
8325 #define $ac_tr_func 1
8328 else
8329 echo "$ac_t""no" 1>&6
8330 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8332 done
8340 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8341 echo "configure:8342: checking for mbstate_t" >&5
8342 cat > conftest.$ac_ext <<EOF
8343 #line 8344 "configure"
8344 #include "confdefs.h"
8345 #include <wchar.h>
8346 int main() {
8347 mbstate_t teststate;
8348 ; return 0; }
8350 if { (eval echo configure:8351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8351 rm -rf conftest*
8352 have_mbstate_t=yes
8353 else
8354 echo "configure: failed program was:" >&5
8355 cat conftest.$ac_ext >&5
8356 rm -rf conftest*
8357 have_mbstate_t=no
8359 rm -f conftest*
8360 echo "$ac_t""$have_mbstate_t" 1>&6
8361 if test x"$have_mbstate_t" = xyes; then
8362 cat >> confdefs.h <<\EOF
8363 #define HAVE_MBSTATE_T 1
8368 for ac_hdr in wchar.h
8370 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8372 echo "configure:8373: checking for $ac_hdr" >&5
8373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8374 echo $ac_n "(cached) $ac_c" 1>&6
8375 else
8376 cat > conftest.$ac_ext <<EOF
8377 #line 8378 "configure"
8378 #include "confdefs.h"
8379 #include <$ac_hdr>
8381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8382 { (eval echo configure:8383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8384 if test -z "$ac_err"; then
8385 rm -rf conftest*
8386 eval "ac_cv_header_$ac_safe=yes"
8387 else
8388 echo "$ac_err" >&5
8389 echo "configure: failed program was:" >&5
8390 cat conftest.$ac_ext >&5
8391 rm -rf conftest*
8392 eval "ac_cv_header_$ac_safe=no"
8394 rm -f conftest*
8396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8397 echo "$ac_t""yes" 1>&6
8398 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8399 cat >> confdefs.h <<EOF
8400 #define $ac_tr_hdr 1
8402 ac_has_wchar_h=yes
8403 else
8404 echo "$ac_t""no" 1>&6
8405 ac_has_wchar_h=no
8407 done
8409 for ac_hdr in wctype.h
8411 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8412 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8413 echo "configure:8414: checking for $ac_hdr" >&5
8414 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8415 echo $ac_n "(cached) $ac_c" 1>&6
8416 else
8417 cat > conftest.$ac_ext <<EOF
8418 #line 8419 "configure"
8419 #include "confdefs.h"
8420 #include <$ac_hdr>
8422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8423 { (eval echo configure:8424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8425 if test -z "$ac_err"; then
8426 rm -rf conftest*
8427 eval "ac_cv_header_$ac_safe=yes"
8428 else
8429 echo "$ac_err" >&5
8430 echo "configure: failed program was:" >&5
8431 cat conftest.$ac_ext >&5
8432 rm -rf conftest*
8433 eval "ac_cv_header_$ac_safe=no"
8435 rm -f conftest*
8437 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8438 echo "$ac_t""yes" 1>&6
8439 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8440 cat >> confdefs.h <<EOF
8441 #define $ac_tr_hdr 1
8443 ac_has_wctype_h=yes
8444 else
8445 echo "$ac_t""no" 1>&6
8446 ac_has_wctype_h=no
8448 done
8451 if test x"$ac_has_wchar_h" = xyes &&
8452 test x"$ac_has_wctype_h" = xyes &&
8453 test x"$enable_c_mbchar" != xno; then
8455 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8456 echo "configure:8457: checking for WCHAR_MIN and WCHAR_MAX" >&5
8457 cat > conftest.$ac_ext <<EOF
8458 #line 8459 "configure"
8459 #include "confdefs.h"
8460 #include <wchar.h>
8461 int main() {
8462 int i = WCHAR_MIN; int j = WCHAR_MAX;
8463 ; return 0; }
8465 if { (eval echo configure:8466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8466 rm -rf conftest*
8467 has_wchar_minmax=yes
8468 else
8469 echo "configure: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8471 rm -rf conftest*
8472 has_wchar_minmax=no
8474 rm -f conftest*
8475 echo "$ac_t""$has_wchar_minmax" 1>&6
8477 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8478 echo "configure:8479: checking for WEOF" >&5
8479 cat > conftest.$ac_ext <<EOF
8480 #line 8481 "configure"
8481 #include "confdefs.h"
8483 #include <wchar.h>
8484 #include <stddef.h>
8485 int main() {
8486 wint_t i = WEOF;
8487 ; return 0; }
8489 if { (eval echo configure:8490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8490 rm -rf conftest*
8491 has_weof=yes
8492 else
8493 echo "configure: failed program was:" >&5
8494 cat conftest.$ac_ext >&5
8495 rm -rf conftest*
8496 has_weof=no
8498 rm -f conftest*
8499 echo "$ac_t""$has_weof" 1>&6
8501 ac_wfuncs=yes
8502 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8505 echo "configure:8506: checking for $ac_func" >&5
8506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8507 echo $ac_n "(cached) $ac_c" 1>&6
8508 else
8509 cat > conftest.$ac_ext <<EOF
8510 #line 8511 "configure"
8511 #include "confdefs.h"
8512 /* System header to define __stub macros and hopefully few prototypes,
8513 which can conflict with char $ac_func(); below. */
8514 #include <assert.h>
8515 /* Override any gcc2 internal prototype to avoid an error. */
8516 /* We use char because int might match the return type of a gcc2
8517 builtin and then its argument prototype would still apply. */
8518 char $ac_func();
8520 int main() {
8522 /* The GNU C library defines this for functions which it implements
8523 to always fail with ENOSYS. Some functions are actually named
8524 something starting with __ and the normal name is an alias. */
8525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8526 choke me
8527 #else
8528 $ac_func();
8529 #endif
8531 ; return 0; }
8533 if { (eval echo configure:8534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8534 rm -rf conftest*
8535 eval "ac_cv_func_$ac_func=yes"
8536 else
8537 echo "configure: failed program was:" >&5
8538 cat conftest.$ac_ext >&5
8539 rm -rf conftest*
8540 eval "ac_cv_func_$ac_func=no"
8542 rm -f conftest*
8545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8546 echo "$ac_t""yes" 1>&6
8547 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8548 cat >> confdefs.h <<EOF
8549 #define $ac_tr_func 1
8552 else
8553 echo "$ac_t""no" 1>&6
8555 ac_wfuncs=no
8557 done
8560 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8561 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8562 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8563 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8564 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8565 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8568 echo "configure:8569: checking for $ac_func" >&5
8569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8570 echo $ac_n "(cached) $ac_c" 1>&6
8571 else
8572 cat > conftest.$ac_ext <<EOF
8573 #line 8574 "configure"
8574 #include "confdefs.h"
8575 /* System header to define __stub macros and hopefully few prototypes,
8576 which can conflict with char $ac_func(); below. */
8577 #include <assert.h>
8578 /* Override any gcc2 internal prototype to avoid an error. */
8579 /* We use char because int might match the return type of a gcc2
8580 builtin and then its argument prototype would still apply. */
8581 char $ac_func();
8583 int main() {
8585 /* The GNU C library defines this for functions which it implements
8586 to always fail with ENOSYS. Some functions are actually named
8587 something starting with __ and the normal name is an alias. */
8588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8589 choke me
8590 #else
8591 $ac_func();
8592 #endif
8594 ; return 0; }
8596 if { (eval echo configure:8597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8597 rm -rf conftest*
8598 eval "ac_cv_func_$ac_func=yes"
8599 else
8600 echo "configure: failed program was:" >&5
8601 cat conftest.$ac_ext >&5
8602 rm -rf conftest*
8603 eval "ac_cv_func_$ac_func=no"
8605 rm -f conftest*
8608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8609 echo "$ac_t""yes" 1>&6
8610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8611 cat >> confdefs.h <<EOF
8612 #define $ac_tr_func 1
8615 else
8616 echo "$ac_t""no" 1>&6
8618 ac_wfuncs=no
8620 done
8623 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8624 echo "configure:8625: checking for ISO C99 wchar_t support" >&5
8625 if test x"$has_weof" = xyes &&
8626 test x"$has_wchar_minmax" = xyes &&
8627 test x"$ac_wfuncs" = xyes; then
8628 ac_isoC99_wchar_t=yes
8629 else
8630 ac_isoC99_wchar_t=no
8632 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8634 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8635 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8636 echo "configure:8637: checking for iconv.h" >&5
8637 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8638 echo $ac_n "(cached) $ac_c" 1>&6
8639 else
8640 cat > conftest.$ac_ext <<EOF
8641 #line 8642 "configure"
8642 #include "confdefs.h"
8643 #include <iconv.h>
8645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8646 { (eval echo configure:8647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8648 if test -z "$ac_err"; then
8649 rm -rf conftest*
8650 eval "ac_cv_header_$ac_safe=yes"
8651 else
8652 echo "$ac_err" >&5
8653 echo "configure: failed program was:" >&5
8654 cat conftest.$ac_ext >&5
8655 rm -rf conftest*
8656 eval "ac_cv_header_$ac_safe=no"
8658 rm -f conftest*
8660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8661 echo "$ac_t""yes" 1>&6
8662 ac_has_iconv_h=yes
8663 else
8664 echo "$ac_t""no" 1>&6
8665 ac_has_iconv_h=no
8668 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8669 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8670 echo "configure:8671: checking for langinfo.h" >&5
8671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8672 echo $ac_n "(cached) $ac_c" 1>&6
8673 else
8674 cat > conftest.$ac_ext <<EOF
8675 #line 8676 "configure"
8676 #include "confdefs.h"
8677 #include <langinfo.h>
8679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8680 { (eval echo configure:8681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8682 if test -z "$ac_err"; then
8683 rm -rf conftest*
8684 eval "ac_cv_header_$ac_safe=yes"
8685 else
8686 echo "$ac_err" >&5
8687 echo "configure: failed program was:" >&5
8688 cat conftest.$ac_ext >&5
8689 rm -rf conftest*
8690 eval "ac_cv_header_$ac_safe=no"
8692 rm -f conftest*
8694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8695 echo "$ac_t""yes" 1>&6
8696 ac_has_langinfo_h=yes
8697 else
8698 echo "$ac_t""no" 1>&6
8699 ac_has_langinfo_h=no
8703 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8704 echo "configure:8705: checking for iconv in -liconv" >&5
8705 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8706 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8707 echo $ac_n "(cached) $ac_c" 1>&6
8708 else
8709 ac_save_LIBS="$LIBS"
8710 LIBS="-liconv $LIBS"
8711 cat > conftest.$ac_ext <<EOF
8712 #line 8713 "configure"
8713 #include "confdefs.h"
8714 /* Override any gcc2 internal prototype to avoid an error. */
8715 /* We use char because int might match the return type of a gcc2
8716 builtin and then its argument prototype would still apply. */
8717 char iconv();
8719 int main() {
8720 iconv()
8721 ; return 0; }
8723 if { (eval echo configure:8724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8724 rm -rf conftest*
8725 eval "ac_cv_lib_$ac_lib_var=yes"
8726 else
8727 echo "configure: failed program was:" >&5
8728 cat conftest.$ac_ext >&5
8729 rm -rf conftest*
8730 eval "ac_cv_lib_$ac_lib_var=no"
8732 rm -f conftest*
8733 LIBS="$ac_save_LIBS"
8736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8737 echo "$ac_t""yes" 1>&6
8738 libiconv="-liconv"
8739 else
8740 echo "$ac_t""no" 1>&6
8743 ac_save_LIBS="$LIBS"
8744 LIBS="$LIBS $libiconv"
8746 for ac_func in iconv_open iconv_close iconv nl_langinfo
8748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8749 echo "configure:8750: checking for $ac_func" >&5
8750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8751 echo $ac_n "(cached) $ac_c" 1>&6
8752 else
8753 cat > conftest.$ac_ext <<EOF
8754 #line 8755 "configure"
8755 #include "confdefs.h"
8756 /* System header to define __stub macros and hopefully few prototypes,
8757 which can conflict with char $ac_func(); below. */
8758 #include <assert.h>
8759 /* Override any gcc2 internal prototype to avoid an error. */
8760 /* We use char because int might match the return type of a gcc2
8761 builtin and then its argument prototype would still apply. */
8762 char $ac_func();
8764 int main() {
8766 /* The GNU C library defines this for functions which it implements
8767 to always fail with ENOSYS. Some functions are actually named
8768 something starting with __ and the normal name is an alias. */
8769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8770 choke me
8771 #else
8772 $ac_func();
8773 #endif
8775 ; return 0; }
8777 if { (eval echo configure:8778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8778 rm -rf conftest*
8779 eval "ac_cv_func_$ac_func=yes"
8780 else
8781 echo "configure: failed program was:" >&5
8782 cat conftest.$ac_ext >&5
8783 rm -rf conftest*
8784 eval "ac_cv_func_$ac_func=no"
8786 rm -f conftest*
8789 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8790 echo "$ac_t""yes" 1>&6
8791 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8792 cat >> confdefs.h <<EOF
8793 #define $ac_tr_func 1
8796 ac_XPG2funcs=yes
8797 else
8798 echo "$ac_t""no" 1>&6
8799 ac_XPG2funcs=no
8801 done
8804 LIBS="$ac_save_LIBS"
8806 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8807 echo "configure:8808: checking for XPG2 wchar_t support" >&5
8808 if test x"$ac_has_iconv_h" = xyes &&
8809 test x"$ac_has_langinfo_h" = xyes &&
8810 test x"$ac_XPG2funcs" = xyes; then
8811 ac_XPG2_wchar_t=yes
8812 else
8813 ac_XPG2_wchar_t=no
8815 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8817 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8818 echo "configure:8819: checking for enabled wchar_t specializations" >&5
8819 if test x"$ac_isoC99_wchar_t" = xyes &&
8820 test x"$ac_XPG2_wchar_t" = xyes; then
8821 cat >> confdefs.h <<\EOF
8822 #define _GLIBCPP_USE_WCHAR_T 1
8825 echo "$ac_t"""yes"" 1>&6
8826 else
8827 echo "$ac_t"""no"" 1>&6
8829 else
8830 echo "configure: warning: wchar_t support disabled." 1>&2
8833 os_include_dir="os/qnx/qnx6.1"
8834 cat >> confdefs.h <<\EOF
8835 #define HAVE_COSF 1
8838 cat >> confdefs.h <<\EOF
8839 #define HAVE_COSL 1
8842 cat >> confdefs.h <<\EOF
8843 #define HAVE_COSHF 1
8846 cat >> confdefs.h <<\EOF
8847 #define HAVE_COSHL 1
8850 cat >> confdefs.h <<\EOF
8851 #define HAVE_LOGF 1
8854 cat >> confdefs.h <<\EOF
8855 #define HAVE_LOGL 1
8858 cat >> confdefs.h <<\EOF
8859 #define HAVE_LOG10F 1
8862 cat >> confdefs.h <<\EOF
8863 #define HAVE_LOG10L 1
8866 cat >> confdefs.h <<\EOF
8867 #define HAVE_SINF 1
8870 cat >> confdefs.h <<\EOF
8871 #define HAVE_SINL 1
8874 cat >> confdefs.h <<\EOF
8875 #define HAVE_SINHF 1
8878 cat >> confdefs.h <<\EOF
8879 #define HAVE_SINHL 1
8884 os_include_dir="os/newlib"
8885 cat >> confdefs.h <<\EOF
8886 #define HAVE_HYPOT 1
8890 esac
8892 case "$target_alias" in
8893 *-mingw32*)
8895 *-windiss*)
8896 cat >> confdefs.h <<\EOF
8897 #define HAVE_ACOSF 1
8900 cat >> confdefs.h <<\EOF
8901 #define HAVE_ASINF 1
8904 cat >> confdefs.h <<\EOF
8905 #define HAVE_ATAN2F 1
8908 cat >> confdefs.h <<\EOF
8909 #define HAVE_ATANF 1
8912 cat >> confdefs.h <<\EOF
8913 #define HAVE_CEILF 1
8916 cat >> confdefs.h <<\EOF
8917 #define HAVE_COPYSIGN 1
8920 cat >> confdefs.h <<\EOF
8921 #define HAVE_COPYSIGNF 1
8924 cat >> confdefs.h <<\EOF
8925 #define HAVE_COSF 1
8928 cat >> confdefs.h <<\EOF
8929 #define HAVE_COSHF 1
8932 cat >> confdefs.h <<\EOF
8933 #define HAVE_EXPF 1
8936 cat >> confdefs.h <<\EOF
8937 #define HAVE_FABSF 1
8940 cat >> confdefs.h <<\EOF
8941 #define HAVE_FLOORF 1
8944 cat >> confdefs.h <<\EOF
8945 #define HAVE_FMODF 1
8948 cat >> confdefs.h <<\EOF
8949 #define HAVE_FREXPF 1
8952 cat >> confdefs.h <<\EOF
8953 #define HAVE_LDEXPF 1
8956 cat >> confdefs.h <<\EOF
8957 #define HAVE_LOG10F 1
8960 cat >> confdefs.h <<\EOF
8961 #define HAVE_LOGF 1
8964 cat >> confdefs.h <<\EOF
8965 #define HAVE_MODFF 1
8968 cat >> confdefs.h <<\EOF
8969 #define HAVE_POWF 1
8972 cat >> confdefs.h <<\EOF
8973 #define HAVE_SINF 1
8976 cat >> confdefs.h <<\EOF
8977 #define HAVE_SINHF 1
8980 cat >> confdefs.h <<\EOF
8981 #define HAVE_SQRTF 1
8984 cat >> confdefs.h <<\EOF
8985 #define HAVE_TANF 1
8988 cat >> confdefs.h <<\EOF
8989 #define HAVE_TANHF 1
8994 # GLIBCPP_CHECK_STDLIB_SUPPORT
8995 cat >> confdefs.h <<\EOF
8996 #define HAVE_STRTOF 1
8999 cat >> confdefs.h <<\EOF
9000 #define HAVE_STRTOLD 1
9003 # AC_FUNC_MMAP
9004 cat >> confdefs.h <<\EOF
9005 #define HAVE_MMAP 1
9009 cat >> confdefs.h <<\EOF
9010 #define HAVE_ACOSF 1
9013 cat >> confdefs.h <<\EOF
9014 #define HAVE_ASINF 1
9017 cat >> confdefs.h <<\EOF
9018 #define HAVE_ATAN2F 1
9021 cat >> confdefs.h <<\EOF
9022 #define HAVE_ATANF 1
9025 cat >> confdefs.h <<\EOF
9026 #define HAVE_CEILF 1
9029 cat >> confdefs.h <<\EOF
9030 #define HAVE_COPYSIGN 1
9033 cat >> confdefs.h <<\EOF
9034 #define HAVE_COPYSIGNF 1
9037 cat >> confdefs.h <<\EOF
9038 #define HAVE_COSF 1
9041 cat >> confdefs.h <<\EOF
9042 #define HAVE_COSHF 1
9045 cat >> confdefs.h <<\EOF
9046 #define HAVE_EXPF 1
9049 cat >> confdefs.h <<\EOF
9050 #define HAVE_FABSF 1
9053 cat >> confdefs.h <<\EOF
9054 #define HAVE_FLOORF 1
9057 cat >> confdefs.h <<\EOF
9058 #define HAVE_FMODF 1
9061 cat >> confdefs.h <<\EOF
9062 #define HAVE_FREXPF 1
9065 cat >> confdefs.h <<\EOF
9066 #define HAVE_LDEXPF 1
9069 cat >> confdefs.h <<\EOF
9070 #define HAVE_LOG10F 1
9073 cat >> confdefs.h <<\EOF
9074 #define HAVE_LOGF 1
9077 cat >> confdefs.h <<\EOF
9078 #define HAVE_MODFF 1
9081 cat >> confdefs.h <<\EOF
9082 #define HAVE_POWF 1
9085 cat >> confdefs.h <<\EOF
9086 #define HAVE_SINF 1
9089 cat >> confdefs.h <<\EOF
9090 #define HAVE_SINHF 1
9093 cat >> confdefs.h <<\EOF
9094 #define HAVE_SQRTF 1
9097 cat >> confdefs.h <<\EOF
9098 #define HAVE_TANF 1
9101 cat >> confdefs.h <<\EOF
9102 #define HAVE_TANHF 1
9106 esac
9108 # At some point, we should differentiate between architectures
9109 # like x86, which have long double versions, and alpha/powerpc/etc.,
9110 # which don't. For the time being, punt.
9111 if test x"long_double_math_on_this_cpu" = x"yes"; then
9112 cat >> confdefs.h <<\EOF
9113 #define HAVE_ACOSL 1
9116 cat >> confdefs.h <<\EOF
9117 #define HAVE_ASINL 1
9120 cat >> confdefs.h <<\EOF
9121 #define HAVE_ATAN2L 1
9124 cat >> confdefs.h <<\EOF
9125 #define HAVE_ATANL 1
9128 cat >> confdefs.h <<\EOF
9129 #define HAVE_CEILL 1
9132 cat >> confdefs.h <<\EOF
9133 #define HAVE_COPYSIGNL 1
9136 cat >> confdefs.h <<\EOF
9137 #define HAVE_COSL 1
9140 cat >> confdefs.h <<\EOF
9141 #define HAVE_COSHL 1
9144 cat >> confdefs.h <<\EOF
9145 #define HAVE_EXPL 1
9148 cat >> confdefs.h <<\EOF
9149 #define HAVE_FABSL 1
9152 cat >> confdefs.h <<\EOF
9153 #define HAVE_FLOORL 1
9156 cat >> confdefs.h <<\EOF
9157 #define HAVE_FMODL 1
9160 cat >> confdefs.h <<\EOF
9161 #define HAVE_FREXPL 1
9164 cat >> confdefs.h <<\EOF
9165 #define HAVE_LDEXPL 1
9168 cat >> confdefs.h <<\EOF
9169 #define HAVE_LOG10L 1
9172 cat >> confdefs.h <<\EOF
9173 #define HAVE_LOGL 1
9176 cat >> confdefs.h <<\EOF
9177 #define HAVE_MODFL 1
9180 cat >> confdefs.h <<\EOF
9181 #define HAVE_POWL 1
9184 cat >> confdefs.h <<\EOF
9185 #define HAVE_SINCOSL 1
9188 cat >> confdefs.h <<\EOF
9189 #define HAVE_SINL 1
9192 cat >> confdefs.h <<\EOF
9193 #define HAVE_SINHL 1
9196 cat >> confdefs.h <<\EOF
9197 #define HAVE_SQRTL 1
9200 cat >> confdefs.h <<\EOF
9201 #define HAVE_TANL 1
9204 cat >> confdefs.h <<\EOF
9205 #define HAVE_TANHL 1
9210 else
9212 # We are being configured natively. We can do more elaborate tests
9213 # that include AC_TRY_COMPILE now, as the linker is assumed to be
9214 # working.
9215 GLIBCPP_IS_CROSS_COMPILING=0
9216 CANADIAN=no
9218 # Check for available headers.
9219 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
9220 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
9222 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9223 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9224 echo "configure:9225: checking for $ac_hdr" >&5
9225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9226 echo $ac_n "(cached) $ac_c" 1>&6
9227 else
9228 cat > conftest.$ac_ext <<EOF
9229 #line 9230 "configure"
9230 #include "confdefs.h"
9231 #include <$ac_hdr>
9233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9234 { (eval echo configure:9235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9236 if test -z "$ac_err"; then
9237 rm -rf conftest*
9238 eval "ac_cv_header_$ac_safe=yes"
9239 else
9240 echo "$ac_err" >&5
9241 echo "configure: failed program was:" >&5
9242 cat conftest.$ac_ext >&5
9243 rm -rf conftest*
9244 eval "ac_cv_header_$ac_safe=no"
9246 rm -f conftest*
9248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9249 echo "$ac_t""yes" 1>&6
9250 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9251 cat >> confdefs.h <<EOF
9252 #define $ac_tr_hdr 1
9255 else
9256 echo "$ac_t""no" 1>&6
9258 done
9262 # All these tests are for C++; save the language and the compiler flags.
9263 # The CXXFLAGS thing is suspicious, but based on similar bits previously
9264 # found in GLIBCPP_CONFIGURE.
9266 ac_ext=C
9267 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9268 ac_cpp='$CXXCPP $CPPFLAGS'
9269 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9270 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9271 cross_compiling=$ac_cv_prog_cxx_cross
9273 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9274 ac_save_CXXFLAGS="$CXXFLAGS"
9276 # Check for maintainer-mode bits.
9277 if test x"$USE_MAINTAINER_MODE" = xno; then
9278 WERROR=''
9279 else
9280 WERROR='-Werror'
9283 # Check for -ffunction-sections -fdata-sections
9284 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
9285 echo "configure:9286: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
9286 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
9287 cat > conftest.$ac_ext <<EOF
9288 #line 9289 "configure"
9289 #include "confdefs.h"
9291 int main() {
9292 int foo;
9294 ; return 0; }
9296 if { (eval echo configure:9297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9297 rm -rf conftest*
9298 ac_fdsections=yes
9299 else
9300 echo "configure: failed program was:" >&5
9301 cat conftest.$ac_ext >&5
9302 rm -rf conftest*
9303 ac_fdsections=no
9305 rm -f conftest*
9306 if test "$ac_test_CXXFLAGS" = set; then
9307 CXXFLAGS="$ac_save_CXXFLAGS"
9308 else
9309 # this is the suspicious part
9310 CXXFLAGS=''
9312 if test x"$ac_fdsections" = x"yes" &&
9313 test x"$enable_debug" = x"no"; then
9314 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9316 echo "$ac_t""$ac_fdsections" 1>&6
9318 ac_ext=c
9319 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9320 ac_cpp='$CPP $CPPFLAGS'
9321 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9322 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9323 cross_compiling=$ac_cv_prog_cc_cross
9329 # If we're not using GNU ld, then there's no point in even trying these
9330 # tests. Check for that first. We should have already tested for gld
9331 # by now (in libtool), but require it now just to be safe...
9332 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9333 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9336 # The name set by libtool depends on the version of libtool. Shame on us
9337 # for depending on an impl detail, but c'est la vie. Older versions used
9338 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9339 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9340 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9341 # set (hence we're using an older libtool), then set it.
9342 if test x${with_gnu_ld+set} != xset; then
9343 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9344 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9345 with_gnu_ld=no
9346 else
9347 with_gnu_ld=$ac_cv_prog_gnu_ld
9351 # Start by getting the version number. I think the libtool test already
9352 # does some of this, but throws away the result.
9354 ldver=`$LD --version 2>/dev/null | head -1 | \
9355 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9357 glibcpp_gnu_ld_version=`echo $ldver | \
9358 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9360 # Set --gc-sections.
9361 if test "$with_gnu_ld" = "notbroken"; then
9362 # GNU ld it is! Joy and bunny rabbits!
9364 # All these tests are for C++; save the language and the compiler flags.
9365 # Need to do this so that g++ won't try to link in libstdc++
9366 ac_test_CFLAGS="${CFLAGS+set}"
9367 ac_save_CFLAGS="$CFLAGS"
9368 CFLAGS='-x c++ -Wl,--gc-sections'
9370 # Check for -Wl,--gc-sections
9371 # XXX This test is broken at the moment, as symbols required for
9372 # linking are now in libsupc++ (not built yet.....). In addition,
9373 # this test has cored on solaris in the past. In addition,
9374 # --gc-sections doesn't really work at the moment (keeps on discarding
9375 # used sections, first .eh_frame and now some of the glibc sections for
9376 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9377 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9378 echo "configure:9379: checking for ld that supports -Wl,--gc-sections" >&5
9379 if test "$cross_compiling" = yes; then
9380 ac_sectionLDflags=yes
9381 else
9382 cat > conftest.$ac_ext <<EOF
9383 #line 9384 "configure"
9384 #include "confdefs.h"
9386 int main(void)
9388 try { throw 1; }
9389 catch (...) { };
9390 return 0;
9394 if { (eval echo configure:9395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9395 then
9396 ac_sectionLDflags=yes
9397 else
9398 echo "configure: failed program was:" >&5
9399 cat conftest.$ac_ext >&5
9400 rm -fr conftest*
9401 ac_sectionLDflags=no
9403 rm -fr conftest*
9406 if test "$ac_test_CFLAGS" = set; then
9407 CFLAGS="$ac_save_CFLAGS"
9408 else
9409 # this is the suspicious part
9410 CFLAGS=''
9412 if test "$ac_sectionLDflags" = "yes"; then
9413 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9415 echo "$ac_t""$ac_sectionLDflags" 1>&6
9418 # Set linker optimization flags.
9419 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9420 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9428 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
9429 echo "configure:9430: checking for __builtin_abs declaration" >&5
9430 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
9431 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
9432 echo $ac_n "(cached) $ac_c" 1>&6
9433 else
9436 ac_ext=C
9437 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9438 ac_cpp='$CXXCPP $CPPFLAGS'
9439 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9440 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9441 cross_compiling=$ac_cv_prog_cxx_cross
9443 cat > conftest.$ac_ext <<EOF
9444 #line 9445 "configure"
9445 #include "confdefs.h"
9446 #include <math.h>
9447 int main() {
9448 __builtin_abs(0);
9449 ; return 0; }
9451 if { (eval echo configure:9452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9452 rm -rf conftest*
9453 glibcpp_cv_func___builtin_abs_use=yes
9454 else
9455 echo "configure: failed program was:" >&5
9456 cat conftest.$ac_ext >&5
9457 rm -rf conftest*
9458 glibcpp_cv_func___builtin_abs_use=no
9460 rm -f conftest*
9461 ac_ext=c
9462 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9463 ac_cpp='$CPP $CPPFLAGS'
9464 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9465 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9466 cross_compiling=$ac_cv_prog_cc_cross
9472 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
9473 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
9474 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
9475 echo "configure:9476: checking for __builtin_abs linkage" >&5
9476 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
9477 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
9478 echo $ac_n "(cached) $ac_c" 1>&6
9479 else
9481 cat > conftest.$ac_ext <<EOF
9482 #line 9483 "configure"
9483 #include "confdefs.h"
9484 #include <math.h>
9485 int main() {
9486 __builtin_abs(0);
9487 ; return 0; }
9489 if { (eval echo configure:9490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9490 rm -rf conftest*
9491 glibcpp_cv_func___builtin_abs_link=yes
9492 else
9493 echo "configure: failed program was:" >&5
9494 cat conftest.$ac_ext >&5
9495 rm -rf conftest*
9496 glibcpp_cv_func___builtin_abs_link=no
9498 rm -f conftest*
9503 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
9504 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
9505 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9506 cat >> confdefs.h <<EOF
9507 #define ${ac_tr_func} 1
9514 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
9515 echo "configure:9516: checking for __builtin_fabsf declaration" >&5
9516 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
9517 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
9518 echo $ac_n "(cached) $ac_c" 1>&6
9519 else
9522 ac_ext=C
9523 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9524 ac_cpp='$CXXCPP $CPPFLAGS'
9525 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9526 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9527 cross_compiling=$ac_cv_prog_cxx_cross
9529 cat > conftest.$ac_ext <<EOF
9530 #line 9531 "configure"
9531 #include "confdefs.h"
9532 #include <math.h>
9533 int main() {
9534 __builtin_fabsf(0);
9535 ; return 0; }
9537 if { (eval echo configure:9538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9538 rm -rf conftest*
9539 glibcpp_cv_func___builtin_fabsf_use=yes
9540 else
9541 echo "configure: failed program was:" >&5
9542 cat conftest.$ac_ext >&5
9543 rm -rf conftest*
9544 glibcpp_cv_func___builtin_fabsf_use=no
9546 rm -f conftest*
9547 ac_ext=c
9548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9549 ac_cpp='$CPP $CPPFLAGS'
9550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9551 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9552 cross_compiling=$ac_cv_prog_cc_cross
9558 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
9559 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
9560 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
9561 echo "configure:9562: checking for __builtin_fabsf linkage" >&5
9562 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
9563 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
9564 echo $ac_n "(cached) $ac_c" 1>&6
9565 else
9567 cat > conftest.$ac_ext <<EOF
9568 #line 9569 "configure"
9569 #include "confdefs.h"
9570 #include <math.h>
9571 int main() {
9572 __builtin_fabsf(0);
9573 ; return 0; }
9575 if { (eval echo configure:9576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9576 rm -rf conftest*
9577 glibcpp_cv_func___builtin_fabsf_link=yes
9578 else
9579 echo "configure: failed program was:" >&5
9580 cat conftest.$ac_ext >&5
9581 rm -rf conftest*
9582 glibcpp_cv_func___builtin_fabsf_link=no
9584 rm -f conftest*
9589 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
9590 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
9591 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9592 cat >> confdefs.h <<EOF
9593 #define ${ac_tr_func} 1
9600 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
9601 echo "configure:9602: checking for __builtin_fabs declaration" >&5
9602 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
9603 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
9604 echo $ac_n "(cached) $ac_c" 1>&6
9605 else
9608 ac_ext=C
9609 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9610 ac_cpp='$CXXCPP $CPPFLAGS'
9611 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9612 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9613 cross_compiling=$ac_cv_prog_cxx_cross
9615 cat > conftest.$ac_ext <<EOF
9616 #line 9617 "configure"
9617 #include "confdefs.h"
9618 #include <math.h>
9619 int main() {
9620 __builtin_fabs(0);
9621 ; return 0; }
9623 if { (eval echo configure:9624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9624 rm -rf conftest*
9625 glibcpp_cv_func___builtin_fabs_use=yes
9626 else
9627 echo "configure: failed program was:" >&5
9628 cat conftest.$ac_ext >&5
9629 rm -rf conftest*
9630 glibcpp_cv_func___builtin_fabs_use=no
9632 rm -f conftest*
9633 ac_ext=c
9634 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9635 ac_cpp='$CPP $CPPFLAGS'
9636 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9637 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9638 cross_compiling=$ac_cv_prog_cc_cross
9644 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
9645 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
9646 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
9647 echo "configure:9648: checking for __builtin_fabs linkage" >&5
9648 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
9649 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
9650 echo $ac_n "(cached) $ac_c" 1>&6
9651 else
9653 cat > conftest.$ac_ext <<EOF
9654 #line 9655 "configure"
9655 #include "confdefs.h"
9656 #include <math.h>
9657 int main() {
9658 __builtin_fabs(0);
9659 ; return 0; }
9661 if { (eval echo configure:9662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9662 rm -rf conftest*
9663 glibcpp_cv_func___builtin_fabs_link=yes
9664 else
9665 echo "configure: failed program was:" >&5
9666 cat conftest.$ac_ext >&5
9667 rm -rf conftest*
9668 glibcpp_cv_func___builtin_fabs_link=no
9670 rm -f conftest*
9675 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
9676 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
9677 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9678 cat >> confdefs.h <<EOF
9679 #define ${ac_tr_func} 1
9686 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
9687 echo "configure:9688: checking for __builtin_fabsl declaration" >&5
9688 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
9689 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
9690 echo $ac_n "(cached) $ac_c" 1>&6
9691 else
9694 ac_ext=C
9695 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9696 ac_cpp='$CXXCPP $CPPFLAGS'
9697 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9698 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9699 cross_compiling=$ac_cv_prog_cxx_cross
9701 cat > conftest.$ac_ext <<EOF
9702 #line 9703 "configure"
9703 #include "confdefs.h"
9704 #include <math.h>
9705 int main() {
9706 __builtin_fabsl(0);
9707 ; return 0; }
9709 if { (eval echo configure:9710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9710 rm -rf conftest*
9711 glibcpp_cv_func___builtin_fabsl_use=yes
9712 else
9713 echo "configure: failed program was:" >&5
9714 cat conftest.$ac_ext >&5
9715 rm -rf conftest*
9716 glibcpp_cv_func___builtin_fabsl_use=no
9718 rm -f conftest*
9719 ac_ext=c
9720 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9721 ac_cpp='$CPP $CPPFLAGS'
9722 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9723 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9724 cross_compiling=$ac_cv_prog_cc_cross
9730 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
9731 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
9732 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
9733 echo "configure:9734: checking for __builtin_fabsl linkage" >&5
9734 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
9735 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
9736 echo $ac_n "(cached) $ac_c" 1>&6
9737 else
9739 cat > conftest.$ac_ext <<EOF
9740 #line 9741 "configure"
9741 #include "confdefs.h"
9742 #include <math.h>
9743 int main() {
9744 __builtin_fabsl(0);
9745 ; return 0; }
9747 if { (eval echo configure:9748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9748 rm -rf conftest*
9749 glibcpp_cv_func___builtin_fabsl_link=yes
9750 else
9751 echo "configure: failed program was:" >&5
9752 cat conftest.$ac_ext >&5
9753 rm -rf conftest*
9754 glibcpp_cv_func___builtin_fabsl_link=no
9756 rm -f conftest*
9761 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
9762 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
9763 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9764 cat >> confdefs.h <<EOF
9765 #define ${ac_tr_func} 1
9772 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
9773 echo "configure:9774: checking for __builtin_labs declaration" >&5
9774 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
9775 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
9776 echo $ac_n "(cached) $ac_c" 1>&6
9777 else
9780 ac_ext=C
9781 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9782 ac_cpp='$CXXCPP $CPPFLAGS'
9783 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9784 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9785 cross_compiling=$ac_cv_prog_cxx_cross
9787 cat > conftest.$ac_ext <<EOF
9788 #line 9789 "configure"
9789 #include "confdefs.h"
9790 #include <math.h>
9791 int main() {
9792 __builtin_labs(0);
9793 ; return 0; }
9795 if { (eval echo configure:9796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9796 rm -rf conftest*
9797 glibcpp_cv_func___builtin_labs_use=yes
9798 else
9799 echo "configure: failed program was:" >&5
9800 cat conftest.$ac_ext >&5
9801 rm -rf conftest*
9802 glibcpp_cv_func___builtin_labs_use=no
9804 rm -f conftest*
9805 ac_ext=c
9806 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9807 ac_cpp='$CPP $CPPFLAGS'
9808 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9809 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9810 cross_compiling=$ac_cv_prog_cc_cross
9816 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
9817 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
9818 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
9819 echo "configure:9820: checking for __builtin_labs linkage" >&5
9820 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
9821 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
9822 echo $ac_n "(cached) $ac_c" 1>&6
9823 else
9825 cat > conftest.$ac_ext <<EOF
9826 #line 9827 "configure"
9827 #include "confdefs.h"
9828 #include <math.h>
9829 int main() {
9830 __builtin_labs(0);
9831 ; return 0; }
9833 if { (eval echo configure:9834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9834 rm -rf conftest*
9835 glibcpp_cv_func___builtin_labs_link=yes
9836 else
9837 echo "configure: failed program was:" >&5
9838 cat conftest.$ac_ext >&5
9839 rm -rf conftest*
9840 glibcpp_cv_func___builtin_labs_link=no
9842 rm -f conftest*
9847 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
9848 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
9849 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9850 cat >> confdefs.h <<EOF
9851 #define ${ac_tr_func} 1
9859 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
9860 echo "configure:9861: checking for __builtin_sqrtf declaration" >&5
9861 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
9862 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
9863 echo $ac_n "(cached) $ac_c" 1>&6
9864 else
9867 ac_ext=C
9868 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9869 ac_cpp='$CXXCPP $CPPFLAGS'
9870 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9871 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9872 cross_compiling=$ac_cv_prog_cxx_cross
9874 cat > conftest.$ac_ext <<EOF
9875 #line 9876 "configure"
9876 #include "confdefs.h"
9877 #include <math.h>
9878 int main() {
9879 __builtin_sqrtf(0);
9880 ; return 0; }
9882 if { (eval echo configure:9883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9883 rm -rf conftest*
9884 glibcpp_cv_func___builtin_sqrtf_use=yes
9885 else
9886 echo "configure: failed program was:" >&5
9887 cat conftest.$ac_ext >&5
9888 rm -rf conftest*
9889 glibcpp_cv_func___builtin_sqrtf_use=no
9891 rm -f conftest*
9892 ac_ext=c
9893 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9894 ac_cpp='$CPP $CPPFLAGS'
9895 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9896 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9897 cross_compiling=$ac_cv_prog_cc_cross
9903 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
9904 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
9905 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
9906 echo "configure:9907: checking for __builtin_sqrtf linkage" >&5
9907 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
9908 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
9909 echo $ac_n "(cached) $ac_c" 1>&6
9910 else
9912 cat > conftest.$ac_ext <<EOF
9913 #line 9914 "configure"
9914 #include "confdefs.h"
9915 #include <math.h>
9916 int main() {
9917 __builtin_sqrtf(0);
9918 ; return 0; }
9920 if { (eval echo configure:9921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9921 rm -rf conftest*
9922 glibcpp_cv_func___builtin_sqrtf_link=yes
9923 else
9924 echo "configure: failed program was:" >&5
9925 cat conftest.$ac_ext >&5
9926 rm -rf conftest*
9927 glibcpp_cv_func___builtin_sqrtf_link=no
9929 rm -f conftest*
9934 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
9935 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
9936 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9937 cat >> confdefs.h <<EOF
9938 #define ${ac_tr_func} 1
9945 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
9946 echo "configure:9947: checking for __builtin_sqrt declaration" >&5
9947 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
9948 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
9949 echo $ac_n "(cached) $ac_c" 1>&6
9950 else
9953 ac_ext=C
9954 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9955 ac_cpp='$CXXCPP $CPPFLAGS'
9956 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9957 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9958 cross_compiling=$ac_cv_prog_cxx_cross
9960 cat > conftest.$ac_ext <<EOF
9961 #line 9962 "configure"
9962 #include "confdefs.h"
9963 #include <math.h>
9964 int main() {
9965 __builtin_sqrt(0);
9966 ; return 0; }
9968 if { (eval echo configure:9969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9969 rm -rf conftest*
9970 glibcpp_cv_func___builtin_sqrt_use=yes
9971 else
9972 echo "configure: failed program was:" >&5
9973 cat conftest.$ac_ext >&5
9974 rm -rf conftest*
9975 glibcpp_cv_func___builtin_sqrt_use=no
9977 rm -f conftest*
9978 ac_ext=c
9979 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9980 ac_cpp='$CPP $CPPFLAGS'
9981 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9982 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9983 cross_compiling=$ac_cv_prog_cc_cross
9989 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
9990 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
9991 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
9992 echo "configure:9993: checking for __builtin_sqrt linkage" >&5
9993 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
9994 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
9995 echo $ac_n "(cached) $ac_c" 1>&6
9996 else
9998 cat > conftest.$ac_ext <<EOF
9999 #line 10000 "configure"
10000 #include "confdefs.h"
10001 #include <math.h>
10002 int main() {
10003 __builtin_sqrt(0);
10004 ; return 0; }
10006 if { (eval echo configure:10007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10007 rm -rf conftest*
10008 glibcpp_cv_func___builtin_sqrt_link=yes
10009 else
10010 echo "configure: failed program was:" >&5
10011 cat conftest.$ac_ext >&5
10012 rm -rf conftest*
10013 glibcpp_cv_func___builtin_sqrt_link=no
10015 rm -f conftest*
10020 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
10021 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
10022 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10023 cat >> confdefs.h <<EOF
10024 #define ${ac_tr_func} 1
10031 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
10032 echo "configure:10033: checking for __builtin_sqrtl declaration" >&5
10033 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
10034 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
10035 echo $ac_n "(cached) $ac_c" 1>&6
10036 else
10039 ac_ext=C
10040 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10041 ac_cpp='$CXXCPP $CPPFLAGS'
10042 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10043 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10044 cross_compiling=$ac_cv_prog_cxx_cross
10046 cat > conftest.$ac_ext <<EOF
10047 #line 10048 "configure"
10048 #include "confdefs.h"
10049 #include <math.h>
10050 int main() {
10051 __builtin_sqrtl(0);
10052 ; return 0; }
10054 if { (eval echo configure:10055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10055 rm -rf conftest*
10056 glibcpp_cv_func___builtin_sqrtl_use=yes
10057 else
10058 echo "configure: failed program was:" >&5
10059 cat conftest.$ac_ext >&5
10060 rm -rf conftest*
10061 glibcpp_cv_func___builtin_sqrtl_use=no
10063 rm -f conftest*
10064 ac_ext=c
10065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10066 ac_cpp='$CPP $CPPFLAGS'
10067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10069 cross_compiling=$ac_cv_prog_cc_cross
10075 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
10076 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
10077 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
10078 echo "configure:10079: checking for __builtin_sqrtl linkage" >&5
10079 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
10080 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
10081 echo $ac_n "(cached) $ac_c" 1>&6
10082 else
10084 cat > conftest.$ac_ext <<EOF
10085 #line 10086 "configure"
10086 #include "confdefs.h"
10087 #include <math.h>
10088 int main() {
10089 __builtin_sqrtl(0);
10090 ; return 0; }
10092 if { (eval echo configure:10093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10093 rm -rf conftest*
10094 glibcpp_cv_func___builtin_sqrtl_link=yes
10095 else
10096 echo "configure: failed program was:" >&5
10097 cat conftest.$ac_ext >&5
10098 rm -rf conftest*
10099 glibcpp_cv_func___builtin_sqrtl_link=no
10101 rm -f conftest*
10106 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
10107 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
10108 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10109 cat >> confdefs.h <<EOF
10110 #define ${ac_tr_func} 1
10118 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
10119 echo "configure:10120: checking for __builtin_sinf declaration" >&5
10120 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
10121 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
10122 echo $ac_n "(cached) $ac_c" 1>&6
10123 else
10126 ac_ext=C
10127 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10128 ac_cpp='$CXXCPP $CPPFLAGS'
10129 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10130 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10131 cross_compiling=$ac_cv_prog_cxx_cross
10133 cat > conftest.$ac_ext <<EOF
10134 #line 10135 "configure"
10135 #include "confdefs.h"
10136 #include <math.h>
10137 int main() {
10138 __builtin_sinf(0);
10139 ; return 0; }
10141 if { (eval echo configure:10142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10142 rm -rf conftest*
10143 glibcpp_cv_func___builtin_sinf_use=yes
10144 else
10145 echo "configure: failed program was:" >&5
10146 cat conftest.$ac_ext >&5
10147 rm -rf conftest*
10148 glibcpp_cv_func___builtin_sinf_use=no
10150 rm -f conftest*
10151 ac_ext=c
10152 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10153 ac_cpp='$CPP $CPPFLAGS'
10154 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10155 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10156 cross_compiling=$ac_cv_prog_cc_cross
10162 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
10163 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
10164 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
10165 echo "configure:10166: checking for __builtin_sinf linkage" >&5
10166 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
10167 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
10168 echo $ac_n "(cached) $ac_c" 1>&6
10169 else
10171 cat > conftest.$ac_ext <<EOF
10172 #line 10173 "configure"
10173 #include "confdefs.h"
10174 #include <math.h>
10175 int main() {
10176 __builtin_sinf(0);
10177 ; return 0; }
10179 if { (eval echo configure:10180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10180 rm -rf conftest*
10181 glibcpp_cv_func___builtin_sinf_link=yes
10182 else
10183 echo "configure: failed program was:" >&5
10184 cat conftest.$ac_ext >&5
10185 rm -rf conftest*
10186 glibcpp_cv_func___builtin_sinf_link=no
10188 rm -f conftest*
10193 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
10194 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
10195 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10196 cat >> confdefs.h <<EOF
10197 #define ${ac_tr_func} 1
10204 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
10205 echo "configure:10206: checking for __builtin_sin declaration" >&5
10206 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
10207 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
10208 echo $ac_n "(cached) $ac_c" 1>&6
10209 else
10212 ac_ext=C
10213 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10214 ac_cpp='$CXXCPP $CPPFLAGS'
10215 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10216 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10217 cross_compiling=$ac_cv_prog_cxx_cross
10219 cat > conftest.$ac_ext <<EOF
10220 #line 10221 "configure"
10221 #include "confdefs.h"
10222 #include <math.h>
10223 int main() {
10224 __builtin_sin(0);
10225 ; return 0; }
10227 if { (eval echo configure:10228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10228 rm -rf conftest*
10229 glibcpp_cv_func___builtin_sin_use=yes
10230 else
10231 echo "configure: failed program was:" >&5
10232 cat conftest.$ac_ext >&5
10233 rm -rf conftest*
10234 glibcpp_cv_func___builtin_sin_use=no
10236 rm -f conftest*
10237 ac_ext=c
10238 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10239 ac_cpp='$CPP $CPPFLAGS'
10240 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10241 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10242 cross_compiling=$ac_cv_prog_cc_cross
10248 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
10249 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
10250 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
10251 echo "configure:10252: checking for __builtin_sin linkage" >&5
10252 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
10253 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
10254 echo $ac_n "(cached) $ac_c" 1>&6
10255 else
10257 cat > conftest.$ac_ext <<EOF
10258 #line 10259 "configure"
10259 #include "confdefs.h"
10260 #include <math.h>
10261 int main() {
10262 __builtin_sin(0);
10263 ; return 0; }
10265 if { (eval echo configure:10266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10266 rm -rf conftest*
10267 glibcpp_cv_func___builtin_sin_link=yes
10268 else
10269 echo "configure: failed program was:" >&5
10270 cat conftest.$ac_ext >&5
10271 rm -rf conftest*
10272 glibcpp_cv_func___builtin_sin_link=no
10274 rm -f conftest*
10279 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
10280 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
10281 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10282 cat >> confdefs.h <<EOF
10283 #define ${ac_tr_func} 1
10290 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
10291 echo "configure:10292: checking for __builtin_sinl declaration" >&5
10292 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
10293 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
10294 echo $ac_n "(cached) $ac_c" 1>&6
10295 else
10298 ac_ext=C
10299 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10300 ac_cpp='$CXXCPP $CPPFLAGS'
10301 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10302 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10303 cross_compiling=$ac_cv_prog_cxx_cross
10305 cat > conftest.$ac_ext <<EOF
10306 #line 10307 "configure"
10307 #include "confdefs.h"
10308 #include <math.h>
10309 int main() {
10310 __builtin_sinl(0);
10311 ; return 0; }
10313 if { (eval echo configure:10314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10314 rm -rf conftest*
10315 glibcpp_cv_func___builtin_sinl_use=yes
10316 else
10317 echo "configure: failed program was:" >&5
10318 cat conftest.$ac_ext >&5
10319 rm -rf conftest*
10320 glibcpp_cv_func___builtin_sinl_use=no
10322 rm -f conftest*
10323 ac_ext=c
10324 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10325 ac_cpp='$CPP $CPPFLAGS'
10326 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10327 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10328 cross_compiling=$ac_cv_prog_cc_cross
10334 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
10335 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
10336 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
10337 echo "configure:10338: checking for __builtin_sinl linkage" >&5
10338 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
10339 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
10340 echo $ac_n "(cached) $ac_c" 1>&6
10341 else
10343 cat > conftest.$ac_ext <<EOF
10344 #line 10345 "configure"
10345 #include "confdefs.h"
10346 #include <math.h>
10347 int main() {
10348 __builtin_sinl(0);
10349 ; return 0; }
10351 if { (eval echo configure:10352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10352 rm -rf conftest*
10353 glibcpp_cv_func___builtin_sinl_link=yes
10354 else
10355 echo "configure: failed program was:" >&5
10356 cat conftest.$ac_ext >&5
10357 rm -rf conftest*
10358 glibcpp_cv_func___builtin_sinl_link=no
10360 rm -f conftest*
10365 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
10366 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
10367 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10368 cat >> confdefs.h <<EOF
10369 #define ${ac_tr_func} 1
10377 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
10378 echo "configure:10379: checking for __builtin_cosf declaration" >&5
10379 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
10380 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
10381 echo $ac_n "(cached) $ac_c" 1>&6
10382 else
10385 ac_ext=C
10386 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10387 ac_cpp='$CXXCPP $CPPFLAGS'
10388 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10389 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10390 cross_compiling=$ac_cv_prog_cxx_cross
10392 cat > conftest.$ac_ext <<EOF
10393 #line 10394 "configure"
10394 #include "confdefs.h"
10395 #include <math.h>
10396 int main() {
10397 __builtin_cosf(0);
10398 ; return 0; }
10400 if { (eval echo configure:10401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10401 rm -rf conftest*
10402 glibcpp_cv_func___builtin_cosf_use=yes
10403 else
10404 echo "configure: failed program was:" >&5
10405 cat conftest.$ac_ext >&5
10406 rm -rf conftest*
10407 glibcpp_cv_func___builtin_cosf_use=no
10409 rm -f conftest*
10410 ac_ext=c
10411 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10412 ac_cpp='$CPP $CPPFLAGS'
10413 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10414 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10415 cross_compiling=$ac_cv_prog_cc_cross
10421 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
10422 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
10423 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
10424 echo "configure:10425: checking for __builtin_cosf linkage" >&5
10425 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
10426 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
10427 echo $ac_n "(cached) $ac_c" 1>&6
10428 else
10430 cat > conftest.$ac_ext <<EOF
10431 #line 10432 "configure"
10432 #include "confdefs.h"
10433 #include <math.h>
10434 int main() {
10435 __builtin_cosf(0);
10436 ; return 0; }
10438 if { (eval echo configure:10439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10439 rm -rf conftest*
10440 glibcpp_cv_func___builtin_cosf_link=yes
10441 else
10442 echo "configure: failed program was:" >&5
10443 cat conftest.$ac_ext >&5
10444 rm -rf conftest*
10445 glibcpp_cv_func___builtin_cosf_link=no
10447 rm -f conftest*
10452 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
10453 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
10454 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10455 cat >> confdefs.h <<EOF
10456 #define ${ac_tr_func} 1
10463 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
10464 echo "configure:10465: checking for __builtin_cos declaration" >&5
10465 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
10466 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
10467 echo $ac_n "(cached) $ac_c" 1>&6
10468 else
10471 ac_ext=C
10472 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10473 ac_cpp='$CXXCPP $CPPFLAGS'
10474 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10475 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10476 cross_compiling=$ac_cv_prog_cxx_cross
10478 cat > conftest.$ac_ext <<EOF
10479 #line 10480 "configure"
10480 #include "confdefs.h"
10481 #include <math.h>
10482 int main() {
10483 __builtin_cos(0);
10484 ; return 0; }
10486 if { (eval echo configure:10487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10487 rm -rf conftest*
10488 glibcpp_cv_func___builtin_cos_use=yes
10489 else
10490 echo "configure: failed program was:" >&5
10491 cat conftest.$ac_ext >&5
10492 rm -rf conftest*
10493 glibcpp_cv_func___builtin_cos_use=no
10495 rm -f conftest*
10496 ac_ext=c
10497 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10498 ac_cpp='$CPP $CPPFLAGS'
10499 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10500 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10501 cross_compiling=$ac_cv_prog_cc_cross
10507 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
10508 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
10509 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
10510 echo "configure:10511: checking for __builtin_cos linkage" >&5
10511 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
10512 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
10513 echo $ac_n "(cached) $ac_c" 1>&6
10514 else
10516 cat > conftest.$ac_ext <<EOF
10517 #line 10518 "configure"
10518 #include "confdefs.h"
10519 #include <math.h>
10520 int main() {
10521 __builtin_cos(0);
10522 ; return 0; }
10524 if { (eval echo configure:10525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10525 rm -rf conftest*
10526 glibcpp_cv_func___builtin_cos_link=yes
10527 else
10528 echo "configure: failed program was:" >&5
10529 cat conftest.$ac_ext >&5
10530 rm -rf conftest*
10531 glibcpp_cv_func___builtin_cos_link=no
10533 rm -f conftest*
10538 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
10539 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
10540 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10541 cat >> confdefs.h <<EOF
10542 #define ${ac_tr_func} 1
10549 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
10550 echo "configure:10551: checking for __builtin_cosl declaration" >&5
10551 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
10552 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
10553 echo $ac_n "(cached) $ac_c" 1>&6
10554 else
10557 ac_ext=C
10558 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10559 ac_cpp='$CXXCPP $CPPFLAGS'
10560 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10561 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10562 cross_compiling=$ac_cv_prog_cxx_cross
10564 cat > conftest.$ac_ext <<EOF
10565 #line 10566 "configure"
10566 #include "confdefs.h"
10567 #include <math.h>
10568 int main() {
10569 __builtin_cosl(0);
10570 ; return 0; }
10572 if { (eval echo configure:10573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10573 rm -rf conftest*
10574 glibcpp_cv_func___builtin_cosl_use=yes
10575 else
10576 echo "configure: failed program was:" >&5
10577 cat conftest.$ac_ext >&5
10578 rm -rf conftest*
10579 glibcpp_cv_func___builtin_cosl_use=no
10581 rm -f conftest*
10582 ac_ext=c
10583 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10584 ac_cpp='$CPP $CPPFLAGS'
10585 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10586 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10587 cross_compiling=$ac_cv_prog_cc_cross
10593 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
10594 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
10595 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
10596 echo "configure:10597: checking for __builtin_cosl linkage" >&5
10597 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
10598 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
10599 echo $ac_n "(cached) $ac_c" 1>&6
10600 else
10602 cat > conftest.$ac_ext <<EOF
10603 #line 10604 "configure"
10604 #include "confdefs.h"
10605 #include <math.h>
10606 int main() {
10607 __builtin_cosl(0);
10608 ; return 0; }
10610 if { (eval echo configure:10611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10611 rm -rf conftest*
10612 glibcpp_cv_func___builtin_cosl_link=yes
10613 else
10614 echo "configure: failed program was:" >&5
10615 cat conftest.$ac_ext >&5
10616 rm -rf conftest*
10617 glibcpp_cv_func___builtin_cosl_link=no
10619 rm -f conftest*
10624 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
10625 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
10626 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10627 cat >> confdefs.h <<EOF
10628 #define ${ac_tr_func} 1
10635 dummyvar=no
10636 if test x$dummyvar = x"yes"; then
10637 cat >> confdefs.h <<\EOF
10638 #define HAVE___BUILTIN_ABS 1
10641 cat >> confdefs.h <<\EOF
10642 #define HAVE___BUILTIN_LABS 1
10645 cat >> confdefs.h <<\EOF
10646 #define HAVE___BUILTIN_COS 1
10649 cat >> confdefs.h <<\EOF
10650 #define HAVE___BUILTIN_COSF 1
10653 cat >> confdefs.h <<\EOF
10654 #define HAVE___BUILTIN_COSL 1
10657 cat >> confdefs.h <<\EOF
10658 #define HAVE___BUILTIN_FABS 1
10661 cat >> confdefs.h <<\EOF
10662 #define HAVE___BUILTIN_FABSF 1
10665 cat >> confdefs.h <<\EOF
10666 #define HAVE___BUILTIN_FABSL 1
10669 cat >> confdefs.h <<\EOF
10670 #define HAVE___BUILTIN_SIN 1
10673 cat >> confdefs.h <<\EOF
10674 #define HAVE___BUILTIN_SINF 1
10677 cat >> confdefs.h <<\EOF
10678 #define HAVE___BUILTIN_SINL 1
10681 cat >> confdefs.h <<\EOF
10682 #define HAVE___BUILTIN_SQRT 1
10685 cat >> confdefs.h <<\EOF
10686 #define HAVE___BUILTIN_SQRTF 1
10689 cat >> confdefs.h <<\EOF
10690 #define HAVE___BUILTIN_SQRTL 1
10696 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10697 ac_save_CXXFLAGS="$CXXFLAGS"
10698 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10700 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10701 echo "configure:10702: checking for sin in -lm" >&5
10702 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10703 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10704 echo $ac_n "(cached) $ac_c" 1>&6
10705 else
10706 ac_save_LIBS="$LIBS"
10707 LIBS="-lm $LIBS"
10708 cat > conftest.$ac_ext <<EOF
10709 #line 10710 "configure"
10710 #include "confdefs.h"
10711 /* Override any gcc2 internal prototype to avoid an error. */
10712 /* We use char because int might match the return type of a gcc2
10713 builtin and then its argument prototype would still apply. */
10714 char sin();
10716 int main() {
10717 sin()
10718 ; return 0; }
10720 if { (eval echo configure:10721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10721 rm -rf conftest*
10722 eval "ac_cv_lib_$ac_lib_var=yes"
10723 else
10724 echo "configure: failed program was:" >&5
10725 cat conftest.$ac_ext >&5
10726 rm -rf conftest*
10727 eval "ac_cv_lib_$ac_lib_var=no"
10729 rm -f conftest*
10730 LIBS="$ac_save_LIBS"
10733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10734 echo "$ac_t""yes" 1>&6
10735 libm="-lm"
10736 else
10737 echo "$ac_t""no" 1>&6
10740 ac_save_LIBS="$LIBS"
10741 LIBS="$LIBS $libm"
10745 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10746 echo "configure:10747: checking for isinf declaration" >&5
10747 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10748 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10749 echo $ac_n "(cached) $ac_c" 1>&6
10750 else
10753 ac_ext=C
10754 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10755 ac_cpp='$CXXCPP $CPPFLAGS'
10756 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10757 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10758 cross_compiling=$ac_cv_prog_cxx_cross
10760 cat > conftest.$ac_ext <<EOF
10761 #line 10762 "configure"
10762 #include "confdefs.h"
10763 #include <math.h>
10764 #ifdef HAVE_IEEEFP_H
10765 #include <ieeefp.h>
10766 #endif
10768 int main() {
10769 isinf(0);
10770 ; return 0; }
10772 if { (eval echo configure:10773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10773 rm -rf conftest*
10774 glibcpp_cv_func_isinf_use=yes
10775 else
10776 echo "configure: failed program was:" >&5
10777 cat conftest.$ac_ext >&5
10778 rm -rf conftest*
10779 glibcpp_cv_func_isinf_use=no
10781 rm -f conftest*
10782 ac_ext=c
10783 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10784 ac_cpp='$CPP $CPPFLAGS'
10785 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10786 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10787 cross_compiling=$ac_cv_prog_cc_cross
10793 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10795 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10796 for ac_func in isinf
10798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10799 echo "configure:10800: checking for $ac_func" >&5
10800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10801 echo $ac_n "(cached) $ac_c" 1>&6
10802 else
10803 cat > conftest.$ac_ext <<EOF
10804 #line 10805 "configure"
10805 #include "confdefs.h"
10806 /* System header to define __stub macros and hopefully few prototypes,
10807 which can conflict with char $ac_func(); below. */
10808 #include <assert.h>
10809 /* Override any gcc2 internal prototype to avoid an error. */
10810 /* We use char because int might match the return type of a gcc2
10811 builtin and then its argument prototype would still apply. */
10812 char $ac_func();
10814 int main() {
10816 /* The GNU C library defines this for functions which it implements
10817 to always fail with ENOSYS. Some functions are actually named
10818 something starting with __ and the normal name is an alias. */
10819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10820 choke me
10821 #else
10822 $ac_func();
10823 #endif
10825 ; return 0; }
10827 if { (eval echo configure:10828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10828 rm -rf conftest*
10829 eval "ac_cv_func_$ac_func=yes"
10830 else
10831 echo "configure: failed program was:" >&5
10832 cat conftest.$ac_ext >&5
10833 rm -rf conftest*
10834 eval "ac_cv_func_$ac_func=no"
10836 rm -f conftest*
10839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10840 echo "$ac_t""yes" 1>&6
10841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10842 cat >> confdefs.h <<EOF
10843 #define $ac_tr_func 1
10846 else
10847 echo "$ac_t""no" 1>&6
10849 done
10851 else
10853 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10854 echo "configure:10855: checking for _isinf declaration" >&5
10855 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10856 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10857 echo $ac_n "(cached) $ac_c" 1>&6
10858 else
10861 ac_ext=C
10862 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10863 ac_cpp='$CXXCPP $CPPFLAGS'
10864 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10865 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10866 cross_compiling=$ac_cv_prog_cxx_cross
10868 cat > conftest.$ac_ext <<EOF
10869 #line 10870 "configure"
10870 #include "confdefs.h"
10871 #include <math.h>
10872 #ifdef HAVE_IEEEFP_H
10873 #include <ieeefp.h>
10874 #endif
10876 int main() {
10877 _isinf(0);
10878 ; return 0; }
10880 if { (eval echo configure:10881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10881 rm -rf conftest*
10882 glibcpp_cv_func__isinf_use=yes
10883 else
10884 echo "configure: failed program was:" >&5
10885 cat conftest.$ac_ext >&5
10886 rm -rf conftest*
10887 glibcpp_cv_func__isinf_use=no
10889 rm -f conftest*
10890 ac_ext=c
10891 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10892 ac_cpp='$CPP $CPPFLAGS'
10893 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10894 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10895 cross_compiling=$ac_cv_prog_cc_cross
10901 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10903 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10904 for ac_func in _isinf
10906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10907 echo "configure:10908: checking for $ac_func" >&5
10908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10909 echo $ac_n "(cached) $ac_c" 1>&6
10910 else
10911 cat > conftest.$ac_ext <<EOF
10912 #line 10913 "configure"
10913 #include "confdefs.h"
10914 /* System header to define __stub macros and hopefully few prototypes,
10915 which can conflict with char $ac_func(); below. */
10916 #include <assert.h>
10917 /* Override any gcc2 internal prototype to avoid an error. */
10918 /* We use char because int might match the return type of a gcc2
10919 builtin and then its argument prototype would still apply. */
10920 char $ac_func();
10922 int main() {
10924 /* The GNU C library defines this for functions which it implements
10925 to always fail with ENOSYS. Some functions are actually named
10926 something starting with __ and the normal name is an alias. */
10927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10928 choke me
10929 #else
10930 $ac_func();
10931 #endif
10933 ; return 0; }
10935 if { (eval echo configure:10936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10936 rm -rf conftest*
10937 eval "ac_cv_func_$ac_func=yes"
10938 else
10939 echo "configure: failed program was:" >&5
10940 cat conftest.$ac_ext >&5
10941 rm -rf conftest*
10942 eval "ac_cv_func_$ac_func=no"
10944 rm -f conftest*
10947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10948 echo "$ac_t""yes" 1>&6
10949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10950 cat >> confdefs.h <<EOF
10951 #define $ac_tr_func 1
10954 else
10955 echo "$ac_t""no" 1>&6
10957 done
10964 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10965 echo "configure:10966: checking for isnan declaration" >&5
10966 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10967 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10968 echo $ac_n "(cached) $ac_c" 1>&6
10969 else
10972 ac_ext=C
10973 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10974 ac_cpp='$CXXCPP $CPPFLAGS'
10975 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10976 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10977 cross_compiling=$ac_cv_prog_cxx_cross
10979 cat > conftest.$ac_ext <<EOF
10980 #line 10981 "configure"
10981 #include "confdefs.h"
10982 #include <math.h>
10983 #ifdef HAVE_IEEEFP_H
10984 #include <ieeefp.h>
10985 #endif
10987 int main() {
10988 isnan(0);
10989 ; return 0; }
10991 if { (eval echo configure:10992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10992 rm -rf conftest*
10993 glibcpp_cv_func_isnan_use=yes
10994 else
10995 echo "configure: failed program was:" >&5
10996 cat conftest.$ac_ext >&5
10997 rm -rf conftest*
10998 glibcpp_cv_func_isnan_use=no
11000 rm -f conftest*
11001 ac_ext=c
11002 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11003 ac_cpp='$CPP $CPPFLAGS'
11004 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11005 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11006 cross_compiling=$ac_cv_prog_cc_cross
11012 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
11014 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
11015 for ac_func in isnan
11017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11018 echo "configure:11019: checking for $ac_func" >&5
11019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11020 echo $ac_n "(cached) $ac_c" 1>&6
11021 else
11022 cat > conftest.$ac_ext <<EOF
11023 #line 11024 "configure"
11024 #include "confdefs.h"
11025 /* System header to define __stub macros and hopefully few prototypes,
11026 which can conflict with char $ac_func(); below. */
11027 #include <assert.h>
11028 /* Override any gcc2 internal prototype to avoid an error. */
11029 /* We use char because int might match the return type of a gcc2
11030 builtin and then its argument prototype would still apply. */
11031 char $ac_func();
11033 int main() {
11035 /* The GNU C library defines this for functions which it implements
11036 to always fail with ENOSYS. Some functions are actually named
11037 something starting with __ and the normal name is an alias. */
11038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11039 choke me
11040 #else
11041 $ac_func();
11042 #endif
11044 ; return 0; }
11046 if { (eval echo configure:11047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11047 rm -rf conftest*
11048 eval "ac_cv_func_$ac_func=yes"
11049 else
11050 echo "configure: failed program was:" >&5
11051 cat conftest.$ac_ext >&5
11052 rm -rf conftest*
11053 eval "ac_cv_func_$ac_func=no"
11055 rm -f conftest*
11058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11059 echo "$ac_t""yes" 1>&6
11060 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11061 cat >> confdefs.h <<EOF
11062 #define $ac_tr_func 1
11065 else
11066 echo "$ac_t""no" 1>&6
11068 done
11070 else
11072 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11073 echo "configure:11074: checking for _isnan declaration" >&5
11074 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11075 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11076 echo $ac_n "(cached) $ac_c" 1>&6
11077 else
11080 ac_ext=C
11081 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11082 ac_cpp='$CXXCPP $CPPFLAGS'
11083 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11084 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11085 cross_compiling=$ac_cv_prog_cxx_cross
11087 cat > conftest.$ac_ext <<EOF
11088 #line 11089 "configure"
11089 #include "confdefs.h"
11090 #include <math.h>
11091 #ifdef HAVE_IEEEFP_H
11092 #include <ieeefp.h>
11093 #endif
11095 int main() {
11096 _isnan(0);
11097 ; return 0; }
11099 if { (eval echo configure:11100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11100 rm -rf conftest*
11101 glibcpp_cv_func__isnan_use=yes
11102 else
11103 echo "configure: failed program was:" >&5
11104 cat conftest.$ac_ext >&5
11105 rm -rf conftest*
11106 glibcpp_cv_func__isnan_use=no
11108 rm -f conftest*
11109 ac_ext=c
11110 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11111 ac_cpp='$CPP $CPPFLAGS'
11112 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11113 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11114 cross_compiling=$ac_cv_prog_cc_cross
11120 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11122 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11123 for ac_func in _isnan
11125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11126 echo "configure:11127: checking for $ac_func" >&5
11127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11128 echo $ac_n "(cached) $ac_c" 1>&6
11129 else
11130 cat > conftest.$ac_ext <<EOF
11131 #line 11132 "configure"
11132 #include "confdefs.h"
11133 /* System header to define __stub macros and hopefully few prototypes,
11134 which can conflict with char $ac_func(); below. */
11135 #include <assert.h>
11136 /* Override any gcc2 internal prototype to avoid an error. */
11137 /* We use char because int might match the return type of a gcc2
11138 builtin and then its argument prototype would still apply. */
11139 char $ac_func();
11141 int main() {
11143 /* The GNU C library defines this for functions which it implements
11144 to always fail with ENOSYS. Some functions are actually named
11145 something starting with __ and the normal name is an alias. */
11146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11147 choke me
11148 #else
11149 $ac_func();
11150 #endif
11152 ; return 0; }
11154 if { (eval echo configure:11155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11155 rm -rf conftest*
11156 eval "ac_cv_func_$ac_func=yes"
11157 else
11158 echo "configure: failed program was:" >&5
11159 cat conftest.$ac_ext >&5
11160 rm -rf conftest*
11161 eval "ac_cv_func_$ac_func=no"
11163 rm -f conftest*
11166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11167 echo "$ac_t""yes" 1>&6
11168 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11169 cat >> confdefs.h <<EOF
11170 #define $ac_tr_func 1
11173 else
11174 echo "$ac_t""no" 1>&6
11176 done
11183 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11184 echo "configure:11185: checking for finite declaration" >&5
11185 if test x${glibcpp_cv_func_finite_use+set} != xset; then
11186 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11187 echo $ac_n "(cached) $ac_c" 1>&6
11188 else
11191 ac_ext=C
11192 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11193 ac_cpp='$CXXCPP $CPPFLAGS'
11194 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11195 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11196 cross_compiling=$ac_cv_prog_cxx_cross
11198 cat > conftest.$ac_ext <<EOF
11199 #line 11200 "configure"
11200 #include "confdefs.h"
11201 #include <math.h>
11202 #ifdef HAVE_IEEEFP_H
11203 #include <ieeefp.h>
11204 #endif
11206 int main() {
11207 finite(0);
11208 ; return 0; }
11210 if { (eval echo configure:11211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11211 rm -rf conftest*
11212 glibcpp_cv_func_finite_use=yes
11213 else
11214 echo "configure: failed program was:" >&5
11215 cat conftest.$ac_ext >&5
11216 rm -rf conftest*
11217 glibcpp_cv_func_finite_use=no
11219 rm -f conftest*
11220 ac_ext=c
11221 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11222 ac_cpp='$CPP $CPPFLAGS'
11223 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11224 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11225 cross_compiling=$ac_cv_prog_cc_cross
11231 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11233 if test x$glibcpp_cv_func_finite_use = x"yes"; then
11234 for ac_func in finite
11236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11237 echo "configure:11238: checking for $ac_func" >&5
11238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11239 echo $ac_n "(cached) $ac_c" 1>&6
11240 else
11241 cat > conftest.$ac_ext <<EOF
11242 #line 11243 "configure"
11243 #include "confdefs.h"
11244 /* System header to define __stub macros and hopefully few prototypes,
11245 which can conflict with char $ac_func(); below. */
11246 #include <assert.h>
11247 /* Override any gcc2 internal prototype to avoid an error. */
11248 /* We use char because int might match the return type of a gcc2
11249 builtin and then its argument prototype would still apply. */
11250 char $ac_func();
11252 int main() {
11254 /* The GNU C library defines this for functions which it implements
11255 to always fail with ENOSYS. Some functions are actually named
11256 something starting with __ and the normal name is an alias. */
11257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11258 choke me
11259 #else
11260 $ac_func();
11261 #endif
11263 ; return 0; }
11265 if { (eval echo configure:11266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11266 rm -rf conftest*
11267 eval "ac_cv_func_$ac_func=yes"
11268 else
11269 echo "configure: failed program was:" >&5
11270 cat conftest.$ac_ext >&5
11271 rm -rf conftest*
11272 eval "ac_cv_func_$ac_func=no"
11274 rm -f conftest*
11277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11278 echo "$ac_t""yes" 1>&6
11279 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11280 cat >> confdefs.h <<EOF
11281 #define $ac_tr_func 1
11284 else
11285 echo "$ac_t""no" 1>&6
11287 done
11289 else
11291 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11292 echo "configure:11293: checking for _finite declaration" >&5
11293 if test x${glibcpp_cv_func__finite_use+set} != xset; then
11294 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11295 echo $ac_n "(cached) $ac_c" 1>&6
11296 else
11299 ac_ext=C
11300 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11301 ac_cpp='$CXXCPP $CPPFLAGS'
11302 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11303 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11304 cross_compiling=$ac_cv_prog_cxx_cross
11306 cat > conftest.$ac_ext <<EOF
11307 #line 11308 "configure"
11308 #include "confdefs.h"
11309 #include <math.h>
11310 #ifdef HAVE_IEEEFP_H
11311 #include <ieeefp.h>
11312 #endif
11314 int main() {
11315 _finite(0);
11316 ; return 0; }
11318 if { (eval echo configure:11319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11319 rm -rf conftest*
11320 glibcpp_cv_func__finite_use=yes
11321 else
11322 echo "configure: failed program was:" >&5
11323 cat conftest.$ac_ext >&5
11324 rm -rf conftest*
11325 glibcpp_cv_func__finite_use=no
11327 rm -f conftest*
11328 ac_ext=c
11329 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11330 ac_cpp='$CPP $CPPFLAGS'
11331 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11332 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11333 cross_compiling=$ac_cv_prog_cc_cross
11339 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11341 if test x$glibcpp_cv_func__finite_use = x"yes"; then
11342 for ac_func in _finite
11344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11345 echo "configure:11346: checking for $ac_func" >&5
11346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11347 echo $ac_n "(cached) $ac_c" 1>&6
11348 else
11349 cat > conftest.$ac_ext <<EOF
11350 #line 11351 "configure"
11351 #include "confdefs.h"
11352 /* System header to define __stub macros and hopefully few prototypes,
11353 which can conflict with char $ac_func(); below. */
11354 #include <assert.h>
11355 /* Override any gcc2 internal prototype to avoid an error. */
11356 /* We use char because int might match the return type of a gcc2
11357 builtin and then its argument prototype would still apply. */
11358 char $ac_func();
11360 int main() {
11362 /* The GNU C library defines this for functions which it implements
11363 to always fail with ENOSYS. Some functions are actually named
11364 something starting with __ and the normal name is an alias. */
11365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11366 choke me
11367 #else
11368 $ac_func();
11369 #endif
11371 ; return 0; }
11373 if { (eval echo configure:11374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11374 rm -rf conftest*
11375 eval "ac_cv_func_$ac_func=yes"
11376 else
11377 echo "configure: failed program was:" >&5
11378 cat conftest.$ac_ext >&5
11379 rm -rf conftest*
11380 eval "ac_cv_func_$ac_func=no"
11382 rm -f conftest*
11385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11386 echo "$ac_t""yes" 1>&6
11387 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11388 cat >> confdefs.h <<EOF
11389 #define $ac_tr_func 1
11392 else
11393 echo "$ac_t""no" 1>&6
11395 done
11402 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11403 echo "configure:11404: checking for copysign declaration" >&5
11404 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11405 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11406 echo $ac_n "(cached) $ac_c" 1>&6
11407 else
11410 ac_ext=C
11411 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11412 ac_cpp='$CXXCPP $CPPFLAGS'
11413 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11414 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11415 cross_compiling=$ac_cv_prog_cxx_cross
11417 cat > conftest.$ac_ext <<EOF
11418 #line 11419 "configure"
11419 #include "confdefs.h"
11420 #include <math.h>
11421 int main() {
11422 copysign(0, 0);
11423 ; return 0; }
11425 if { (eval echo configure:11426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11426 rm -rf conftest*
11427 glibcpp_cv_func_copysign_use=yes
11428 else
11429 echo "configure: failed program was:" >&5
11430 cat conftest.$ac_ext >&5
11431 rm -rf conftest*
11432 glibcpp_cv_func_copysign_use=no
11434 rm -f conftest*
11435 ac_ext=c
11436 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11437 ac_cpp='$CPP $CPPFLAGS'
11438 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11439 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11440 cross_compiling=$ac_cv_prog_cc_cross
11446 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11448 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11449 for ac_func in copysign
11451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11452 echo "configure:11453: checking for $ac_func" >&5
11453 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11454 echo $ac_n "(cached) $ac_c" 1>&6
11455 else
11456 cat > conftest.$ac_ext <<EOF
11457 #line 11458 "configure"
11458 #include "confdefs.h"
11459 /* System header to define __stub macros and hopefully few prototypes,
11460 which can conflict with char $ac_func(); below. */
11461 #include <assert.h>
11462 /* Override any gcc2 internal prototype to avoid an error. */
11463 /* We use char because int might match the return type of a gcc2
11464 builtin and then its argument prototype would still apply. */
11465 char $ac_func();
11467 int main() {
11469 /* The GNU C library defines this for functions which it implements
11470 to always fail with ENOSYS. Some functions are actually named
11471 something starting with __ and the normal name is an alias. */
11472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11473 choke me
11474 #else
11475 $ac_func();
11476 #endif
11478 ; return 0; }
11480 if { (eval echo configure:11481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11481 rm -rf conftest*
11482 eval "ac_cv_func_$ac_func=yes"
11483 else
11484 echo "configure: failed program was:" >&5
11485 cat conftest.$ac_ext >&5
11486 rm -rf conftest*
11487 eval "ac_cv_func_$ac_func=no"
11489 rm -f conftest*
11492 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11493 echo "$ac_t""yes" 1>&6
11494 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11495 cat >> confdefs.h <<EOF
11496 #define $ac_tr_func 1
11499 else
11500 echo "$ac_t""no" 1>&6
11502 done
11504 else
11506 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11507 echo "configure:11508: checking for _copysign declaration" >&5
11508 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11509 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11510 echo $ac_n "(cached) $ac_c" 1>&6
11511 else
11514 ac_ext=C
11515 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11516 ac_cpp='$CXXCPP $CPPFLAGS'
11517 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11518 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11519 cross_compiling=$ac_cv_prog_cxx_cross
11521 cat > conftest.$ac_ext <<EOF
11522 #line 11523 "configure"
11523 #include "confdefs.h"
11524 #include <math.h>
11525 int main() {
11526 _copysign(0, 0);
11527 ; return 0; }
11529 if { (eval echo configure:11530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11530 rm -rf conftest*
11531 glibcpp_cv_func__copysign_use=yes
11532 else
11533 echo "configure: failed program was:" >&5
11534 cat conftest.$ac_ext >&5
11535 rm -rf conftest*
11536 glibcpp_cv_func__copysign_use=no
11538 rm -f conftest*
11539 ac_ext=c
11540 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11541 ac_cpp='$CPP $CPPFLAGS'
11542 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11543 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11544 cross_compiling=$ac_cv_prog_cc_cross
11550 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11552 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11553 for ac_func in _copysign
11555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11556 echo "configure:11557: checking for $ac_func" >&5
11557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11558 echo $ac_n "(cached) $ac_c" 1>&6
11559 else
11560 cat > conftest.$ac_ext <<EOF
11561 #line 11562 "configure"
11562 #include "confdefs.h"
11563 /* System header to define __stub macros and hopefully few prototypes,
11564 which can conflict with char $ac_func(); below. */
11565 #include <assert.h>
11566 /* Override any gcc2 internal prototype to avoid an error. */
11567 /* We use char because int might match the return type of a gcc2
11568 builtin and then its argument prototype would still apply. */
11569 char $ac_func();
11571 int main() {
11573 /* The GNU C library defines this for functions which it implements
11574 to always fail with ENOSYS. Some functions are actually named
11575 something starting with __ and the normal name is an alias. */
11576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11577 choke me
11578 #else
11579 $ac_func();
11580 #endif
11582 ; return 0; }
11584 if { (eval echo configure:11585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11585 rm -rf conftest*
11586 eval "ac_cv_func_$ac_func=yes"
11587 else
11588 echo "configure: failed program was:" >&5
11589 cat conftest.$ac_ext >&5
11590 rm -rf conftest*
11591 eval "ac_cv_func_$ac_func=no"
11593 rm -f conftest*
11596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11597 echo "$ac_t""yes" 1>&6
11598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11599 cat >> confdefs.h <<EOF
11600 #define $ac_tr_func 1
11603 else
11604 echo "$ac_t""no" 1>&6
11606 done
11613 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11614 echo "configure:11615: checking for sincos declaration" >&5
11615 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11616 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11617 echo $ac_n "(cached) $ac_c" 1>&6
11618 else
11621 ac_ext=C
11622 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11623 ac_cpp='$CXXCPP $CPPFLAGS'
11624 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11625 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11626 cross_compiling=$ac_cv_prog_cxx_cross
11628 cat > conftest.$ac_ext <<EOF
11629 #line 11630 "configure"
11630 #include "confdefs.h"
11631 #include <math.h>
11632 int main() {
11633 sincos(0, 0, 0);
11634 ; return 0; }
11636 if { (eval echo configure:11637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11637 rm -rf conftest*
11638 glibcpp_cv_func_sincos_use=yes
11639 else
11640 echo "configure: failed program was:" >&5
11641 cat conftest.$ac_ext >&5
11642 rm -rf conftest*
11643 glibcpp_cv_func_sincos_use=no
11645 rm -f conftest*
11646 ac_ext=c
11647 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11648 ac_cpp='$CPP $CPPFLAGS'
11649 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11650 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11651 cross_compiling=$ac_cv_prog_cc_cross
11657 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11659 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11660 for ac_func in sincos
11662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11663 echo "configure:11664: checking for $ac_func" >&5
11664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11665 echo $ac_n "(cached) $ac_c" 1>&6
11666 else
11667 cat > conftest.$ac_ext <<EOF
11668 #line 11669 "configure"
11669 #include "confdefs.h"
11670 /* System header to define __stub macros and hopefully few prototypes,
11671 which can conflict with char $ac_func(); below. */
11672 #include <assert.h>
11673 /* Override any gcc2 internal prototype to avoid an error. */
11674 /* We use char because int might match the return type of a gcc2
11675 builtin and then its argument prototype would still apply. */
11676 char $ac_func();
11678 int main() {
11680 /* The GNU C library defines this for functions which it implements
11681 to always fail with ENOSYS. Some functions are actually named
11682 something starting with __ and the normal name is an alias. */
11683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11684 choke me
11685 #else
11686 $ac_func();
11687 #endif
11689 ; return 0; }
11691 if { (eval echo configure:11692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11692 rm -rf conftest*
11693 eval "ac_cv_func_$ac_func=yes"
11694 else
11695 echo "configure: failed program was:" >&5
11696 cat conftest.$ac_ext >&5
11697 rm -rf conftest*
11698 eval "ac_cv_func_$ac_func=no"
11700 rm -f conftest*
11703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11704 echo "$ac_t""yes" 1>&6
11705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11706 cat >> confdefs.h <<EOF
11707 #define $ac_tr_func 1
11710 else
11711 echo "$ac_t""no" 1>&6
11713 done
11715 else
11717 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11718 echo "configure:11719: checking for _sincos declaration" >&5
11719 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11720 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11721 echo $ac_n "(cached) $ac_c" 1>&6
11722 else
11725 ac_ext=C
11726 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11727 ac_cpp='$CXXCPP $CPPFLAGS'
11728 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11729 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11730 cross_compiling=$ac_cv_prog_cxx_cross
11732 cat > conftest.$ac_ext <<EOF
11733 #line 11734 "configure"
11734 #include "confdefs.h"
11735 #include <math.h>
11736 int main() {
11737 _sincos(0, 0, 0);
11738 ; return 0; }
11740 if { (eval echo configure:11741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11741 rm -rf conftest*
11742 glibcpp_cv_func__sincos_use=yes
11743 else
11744 echo "configure: failed program was:" >&5
11745 cat conftest.$ac_ext >&5
11746 rm -rf conftest*
11747 glibcpp_cv_func__sincos_use=no
11749 rm -f conftest*
11750 ac_ext=c
11751 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11752 ac_cpp='$CPP $CPPFLAGS'
11753 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11754 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11755 cross_compiling=$ac_cv_prog_cc_cross
11761 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11763 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11764 for ac_func in _sincos
11766 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11767 echo "configure:11768: checking for $ac_func" >&5
11768 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11769 echo $ac_n "(cached) $ac_c" 1>&6
11770 else
11771 cat > conftest.$ac_ext <<EOF
11772 #line 11773 "configure"
11773 #include "confdefs.h"
11774 /* System header to define __stub macros and hopefully few prototypes,
11775 which can conflict with char $ac_func(); below. */
11776 #include <assert.h>
11777 /* Override any gcc2 internal prototype to avoid an error. */
11778 /* We use char because int might match the return type of a gcc2
11779 builtin and then its argument prototype would still apply. */
11780 char $ac_func();
11782 int main() {
11784 /* The GNU C library defines this for functions which it implements
11785 to always fail with ENOSYS. Some functions are actually named
11786 something starting with __ and the normal name is an alias. */
11787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11788 choke me
11789 #else
11790 $ac_func();
11791 #endif
11793 ; return 0; }
11795 if { (eval echo configure:11796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11796 rm -rf conftest*
11797 eval "ac_cv_func_$ac_func=yes"
11798 else
11799 echo "configure: failed program was:" >&5
11800 cat conftest.$ac_ext >&5
11801 rm -rf conftest*
11802 eval "ac_cv_func_$ac_func=no"
11804 rm -f conftest*
11807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11808 echo "$ac_t""yes" 1>&6
11809 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11810 cat >> confdefs.h <<EOF
11811 #define $ac_tr_func 1
11814 else
11815 echo "$ac_t""no" 1>&6
11817 done
11824 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11825 echo "configure:11826: checking for fpclass declaration" >&5
11826 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11827 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11828 echo $ac_n "(cached) $ac_c" 1>&6
11829 else
11832 ac_ext=C
11833 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11834 ac_cpp='$CXXCPP $CPPFLAGS'
11835 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11836 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11837 cross_compiling=$ac_cv_prog_cxx_cross
11839 cat > conftest.$ac_ext <<EOF
11840 #line 11841 "configure"
11841 #include "confdefs.h"
11842 #include <math.h>
11843 #ifdef HAVE_IEEEFP_H
11844 #include <ieeefp.h>
11845 #endif
11847 int main() {
11848 fpclass(0);
11849 ; return 0; }
11851 if { (eval echo configure:11852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11852 rm -rf conftest*
11853 glibcpp_cv_func_fpclass_use=yes
11854 else
11855 echo "configure: failed program was:" >&5
11856 cat conftest.$ac_ext >&5
11857 rm -rf conftest*
11858 glibcpp_cv_func_fpclass_use=no
11860 rm -f conftest*
11861 ac_ext=c
11862 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11863 ac_cpp='$CPP $CPPFLAGS'
11864 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11865 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11866 cross_compiling=$ac_cv_prog_cc_cross
11872 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11874 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11875 for ac_func in fpclass
11877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11878 echo "configure:11879: checking for $ac_func" >&5
11879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11880 echo $ac_n "(cached) $ac_c" 1>&6
11881 else
11882 cat > conftest.$ac_ext <<EOF
11883 #line 11884 "configure"
11884 #include "confdefs.h"
11885 /* System header to define __stub macros and hopefully few prototypes,
11886 which can conflict with char $ac_func(); below. */
11887 #include <assert.h>
11888 /* Override any gcc2 internal prototype to avoid an error. */
11889 /* We use char because int might match the return type of a gcc2
11890 builtin and then its argument prototype would still apply. */
11891 char $ac_func();
11893 int main() {
11895 /* The GNU C library defines this for functions which it implements
11896 to always fail with ENOSYS. Some functions are actually named
11897 something starting with __ and the normal name is an alias. */
11898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11899 choke me
11900 #else
11901 $ac_func();
11902 #endif
11904 ; return 0; }
11906 if { (eval echo configure:11907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11907 rm -rf conftest*
11908 eval "ac_cv_func_$ac_func=yes"
11909 else
11910 echo "configure: failed program was:" >&5
11911 cat conftest.$ac_ext >&5
11912 rm -rf conftest*
11913 eval "ac_cv_func_$ac_func=no"
11915 rm -f conftest*
11918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11919 echo "$ac_t""yes" 1>&6
11920 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11921 cat >> confdefs.h <<EOF
11922 #define $ac_tr_func 1
11925 else
11926 echo "$ac_t""no" 1>&6
11928 done
11930 else
11932 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11933 echo "configure:11934: checking for _fpclass declaration" >&5
11934 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11935 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11936 echo $ac_n "(cached) $ac_c" 1>&6
11937 else
11940 ac_ext=C
11941 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11942 ac_cpp='$CXXCPP $CPPFLAGS'
11943 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11944 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11945 cross_compiling=$ac_cv_prog_cxx_cross
11947 cat > conftest.$ac_ext <<EOF
11948 #line 11949 "configure"
11949 #include "confdefs.h"
11950 #include <math.h>
11951 #ifdef HAVE_IEEEFP_H
11952 #include <ieeefp.h>
11953 #endif
11955 int main() {
11956 _fpclass(0);
11957 ; return 0; }
11959 if { (eval echo configure:11960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11960 rm -rf conftest*
11961 glibcpp_cv_func__fpclass_use=yes
11962 else
11963 echo "configure: failed program was:" >&5
11964 cat conftest.$ac_ext >&5
11965 rm -rf conftest*
11966 glibcpp_cv_func__fpclass_use=no
11968 rm -f conftest*
11969 ac_ext=c
11970 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11971 ac_cpp='$CPP $CPPFLAGS'
11972 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11973 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11974 cross_compiling=$ac_cv_prog_cc_cross
11980 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
11982 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11983 for ac_func in _fpclass
11985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11986 echo "configure:11987: checking for $ac_func" >&5
11987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11988 echo $ac_n "(cached) $ac_c" 1>&6
11989 else
11990 cat > conftest.$ac_ext <<EOF
11991 #line 11992 "configure"
11992 #include "confdefs.h"
11993 /* System header to define __stub macros and hopefully few prototypes,
11994 which can conflict with char $ac_func(); below. */
11995 #include <assert.h>
11996 /* Override any gcc2 internal prototype to avoid an error. */
11997 /* We use char because int might match the return type of a gcc2
11998 builtin and then its argument prototype would still apply. */
11999 char $ac_func();
12001 int main() {
12003 /* The GNU C library defines this for functions which it implements
12004 to always fail with ENOSYS. Some functions are actually named
12005 something starting with __ and the normal name is an alias. */
12006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12007 choke me
12008 #else
12009 $ac_func();
12010 #endif
12012 ; return 0; }
12014 if { (eval echo configure:12015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12015 rm -rf conftest*
12016 eval "ac_cv_func_$ac_func=yes"
12017 else
12018 echo "configure: failed program was:" >&5
12019 cat conftest.$ac_ext >&5
12020 rm -rf conftest*
12021 eval "ac_cv_func_$ac_func=no"
12023 rm -f conftest*
12026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12027 echo "$ac_t""yes" 1>&6
12028 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12029 cat >> confdefs.h <<EOF
12030 #define $ac_tr_func 1
12033 else
12034 echo "$ac_t""no" 1>&6
12036 done
12043 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12044 echo "configure:12045: checking for qfpclass declaration" >&5
12045 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12046 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12047 echo $ac_n "(cached) $ac_c" 1>&6
12048 else
12051 ac_ext=C
12052 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12053 ac_cpp='$CXXCPP $CPPFLAGS'
12054 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12055 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12056 cross_compiling=$ac_cv_prog_cxx_cross
12058 cat > conftest.$ac_ext <<EOF
12059 #line 12060 "configure"
12060 #include "confdefs.h"
12061 #include <math.h>
12062 #ifdef HAVE_IEEEFP_H
12063 #include <ieeefp.h>
12064 #endif
12066 int main() {
12067 qfpclass(0);
12068 ; return 0; }
12070 if { (eval echo configure:12071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12071 rm -rf conftest*
12072 glibcpp_cv_func_qfpclass_use=yes
12073 else
12074 echo "configure: failed program was:" >&5
12075 cat conftest.$ac_ext >&5
12076 rm -rf conftest*
12077 glibcpp_cv_func_qfpclass_use=no
12079 rm -f conftest*
12080 ac_ext=c
12081 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12082 ac_cpp='$CPP $CPPFLAGS'
12083 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12084 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12085 cross_compiling=$ac_cv_prog_cc_cross
12091 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12093 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12094 for ac_func in qfpclass
12096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12097 echo "configure:12098: checking for $ac_func" >&5
12098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12099 echo $ac_n "(cached) $ac_c" 1>&6
12100 else
12101 cat > conftest.$ac_ext <<EOF
12102 #line 12103 "configure"
12103 #include "confdefs.h"
12104 /* System header to define __stub macros and hopefully few prototypes,
12105 which can conflict with char $ac_func(); below. */
12106 #include <assert.h>
12107 /* Override any gcc2 internal prototype to avoid an error. */
12108 /* We use char because int might match the return type of a gcc2
12109 builtin and then its argument prototype would still apply. */
12110 char $ac_func();
12112 int main() {
12114 /* The GNU C library defines this for functions which it implements
12115 to always fail with ENOSYS. Some functions are actually named
12116 something starting with __ and the normal name is an alias. */
12117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12118 choke me
12119 #else
12120 $ac_func();
12121 #endif
12123 ; return 0; }
12125 if { (eval echo configure:12126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12126 rm -rf conftest*
12127 eval "ac_cv_func_$ac_func=yes"
12128 else
12129 echo "configure: failed program was:" >&5
12130 cat conftest.$ac_ext >&5
12131 rm -rf conftest*
12132 eval "ac_cv_func_$ac_func=no"
12134 rm -f conftest*
12137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12138 echo "$ac_t""yes" 1>&6
12139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12140 cat >> confdefs.h <<EOF
12141 #define $ac_tr_func 1
12144 else
12145 echo "$ac_t""no" 1>&6
12147 done
12149 else
12151 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12152 echo "configure:12153: checking for _qfpclass declaration" >&5
12153 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12154 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12155 echo $ac_n "(cached) $ac_c" 1>&6
12156 else
12159 ac_ext=C
12160 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12161 ac_cpp='$CXXCPP $CPPFLAGS'
12162 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12163 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12164 cross_compiling=$ac_cv_prog_cxx_cross
12166 cat > conftest.$ac_ext <<EOF
12167 #line 12168 "configure"
12168 #include "confdefs.h"
12169 #include <math.h>
12170 #ifdef HAVE_IEEEFP_H
12171 #include <ieeefp.h>
12172 #endif
12174 int main() {
12175 _qfpclass(0);
12176 ; return 0; }
12178 if { (eval echo configure:12179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12179 rm -rf conftest*
12180 glibcpp_cv_func__qfpclass_use=yes
12181 else
12182 echo "configure: failed program was:" >&5
12183 cat conftest.$ac_ext >&5
12184 rm -rf conftest*
12185 glibcpp_cv_func__qfpclass_use=no
12187 rm -f conftest*
12188 ac_ext=c
12189 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12190 ac_cpp='$CPP $CPPFLAGS'
12191 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12192 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12193 cross_compiling=$ac_cv_prog_cc_cross
12199 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12201 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12202 for ac_func in _qfpclass
12204 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12205 echo "configure:12206: checking for $ac_func" >&5
12206 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12207 echo $ac_n "(cached) $ac_c" 1>&6
12208 else
12209 cat > conftest.$ac_ext <<EOF
12210 #line 12211 "configure"
12211 #include "confdefs.h"
12212 /* System header to define __stub macros and hopefully few prototypes,
12213 which can conflict with char $ac_func(); below. */
12214 #include <assert.h>
12215 /* Override any gcc2 internal prototype to avoid an error. */
12216 /* We use char because int might match the return type of a gcc2
12217 builtin and then its argument prototype would still apply. */
12218 char $ac_func();
12220 int main() {
12222 /* The GNU C library defines this for functions which it implements
12223 to always fail with ENOSYS. Some functions are actually named
12224 something starting with __ and the normal name is an alias. */
12225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12226 choke me
12227 #else
12228 $ac_func();
12229 #endif
12231 ; return 0; }
12233 if { (eval echo configure:12234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12234 rm -rf conftest*
12235 eval "ac_cv_func_$ac_func=yes"
12236 else
12237 echo "configure: failed program was:" >&5
12238 cat conftest.$ac_ext >&5
12239 rm -rf conftest*
12240 eval "ac_cv_func_$ac_func=no"
12242 rm -f conftest*
12245 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12246 echo "$ac_t""yes" 1>&6
12247 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12248 cat >> confdefs.h <<EOF
12249 #define $ac_tr_func 1
12252 else
12253 echo "$ac_t""no" 1>&6
12255 done
12262 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12263 echo "configure:12264: checking for hypot declaration" >&5
12264 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12265 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12266 echo $ac_n "(cached) $ac_c" 1>&6
12267 else
12270 ac_ext=C
12271 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12272 ac_cpp='$CXXCPP $CPPFLAGS'
12273 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12274 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12275 cross_compiling=$ac_cv_prog_cxx_cross
12277 cat > conftest.$ac_ext <<EOF
12278 #line 12279 "configure"
12279 #include "confdefs.h"
12280 #include <math.h>
12281 int main() {
12282 hypot(0, 0);
12283 ; return 0; }
12285 if { (eval echo configure:12286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12286 rm -rf conftest*
12287 glibcpp_cv_func_hypot_use=yes
12288 else
12289 echo "configure: failed program was:" >&5
12290 cat conftest.$ac_ext >&5
12291 rm -rf conftest*
12292 glibcpp_cv_func_hypot_use=no
12294 rm -f conftest*
12295 ac_ext=c
12296 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12297 ac_cpp='$CPP $CPPFLAGS'
12298 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12299 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12300 cross_compiling=$ac_cv_prog_cc_cross
12306 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12308 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12309 for ac_func in hypot
12311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12312 echo "configure:12313: checking for $ac_func" >&5
12313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12314 echo $ac_n "(cached) $ac_c" 1>&6
12315 else
12316 cat > conftest.$ac_ext <<EOF
12317 #line 12318 "configure"
12318 #include "confdefs.h"
12319 /* System header to define __stub macros and hopefully few prototypes,
12320 which can conflict with char $ac_func(); below. */
12321 #include <assert.h>
12322 /* Override any gcc2 internal prototype to avoid an error. */
12323 /* We use char because int might match the return type of a gcc2
12324 builtin and then its argument prototype would still apply. */
12325 char $ac_func();
12327 int main() {
12329 /* The GNU C library defines this for functions which it implements
12330 to always fail with ENOSYS. Some functions are actually named
12331 something starting with __ and the normal name is an alias. */
12332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12333 choke me
12334 #else
12335 $ac_func();
12336 #endif
12338 ; return 0; }
12340 if { (eval echo configure:12341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12341 rm -rf conftest*
12342 eval "ac_cv_func_$ac_func=yes"
12343 else
12344 echo "configure: failed program was:" >&5
12345 cat conftest.$ac_ext >&5
12346 rm -rf conftest*
12347 eval "ac_cv_func_$ac_func=no"
12349 rm -f conftest*
12352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12353 echo "$ac_t""yes" 1>&6
12354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12355 cat >> confdefs.h <<EOF
12356 #define $ac_tr_func 1
12359 else
12360 echo "$ac_t""no" 1>&6
12362 done
12364 else
12366 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12367 echo "configure:12368: checking for _hypot declaration" >&5
12368 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12369 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12370 echo $ac_n "(cached) $ac_c" 1>&6
12371 else
12374 ac_ext=C
12375 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12376 ac_cpp='$CXXCPP $CPPFLAGS'
12377 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12378 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12379 cross_compiling=$ac_cv_prog_cxx_cross
12381 cat > conftest.$ac_ext <<EOF
12382 #line 12383 "configure"
12383 #include "confdefs.h"
12384 #include <math.h>
12385 int main() {
12386 _hypot(0, 0);
12387 ; return 0; }
12389 if { (eval echo configure:12390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12390 rm -rf conftest*
12391 glibcpp_cv_func__hypot_use=yes
12392 else
12393 echo "configure: failed program was:" >&5
12394 cat conftest.$ac_ext >&5
12395 rm -rf conftest*
12396 glibcpp_cv_func__hypot_use=no
12398 rm -f conftest*
12399 ac_ext=c
12400 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12401 ac_cpp='$CPP $CPPFLAGS'
12402 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12403 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12404 cross_compiling=$ac_cv_prog_cc_cross
12410 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12412 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12413 for ac_func in _hypot
12415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12416 echo "configure:12417: checking for $ac_func" >&5
12417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12418 echo $ac_n "(cached) $ac_c" 1>&6
12419 else
12420 cat > conftest.$ac_ext <<EOF
12421 #line 12422 "configure"
12422 #include "confdefs.h"
12423 /* System header to define __stub macros and hopefully few prototypes,
12424 which can conflict with char $ac_func(); below. */
12425 #include <assert.h>
12426 /* Override any gcc2 internal prototype to avoid an error. */
12427 /* We use char because int might match the return type of a gcc2
12428 builtin and then its argument prototype would still apply. */
12429 char $ac_func();
12431 int main() {
12433 /* The GNU C library defines this for functions which it implements
12434 to always fail with ENOSYS. Some functions are actually named
12435 something starting with __ and the normal name is an alias. */
12436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12437 choke me
12438 #else
12439 $ac_func();
12440 #endif
12442 ; return 0; }
12444 if { (eval echo configure:12445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12445 rm -rf conftest*
12446 eval "ac_cv_func_$ac_func=yes"
12447 else
12448 echo "configure: failed program was:" >&5
12449 cat conftest.$ac_ext >&5
12450 rm -rf conftest*
12451 eval "ac_cv_func_$ac_func=no"
12453 rm -f conftest*
12456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12457 echo "$ac_t""yes" 1>&6
12458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12459 cat >> confdefs.h <<EOF
12460 #define $ac_tr_func 1
12463 else
12464 echo "$ac_t""no" 1>&6
12466 done
12473 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12474 echo "configure:12475: checking for float trig functions" >&5
12475 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12476 echo $ac_n "(cached) $ac_c" 1>&6
12477 else
12480 ac_ext=C
12481 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12482 ac_cpp='$CXXCPP $CPPFLAGS'
12483 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12484 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12485 cross_compiling=$ac_cv_prog_cxx_cross
12487 cat > conftest.$ac_ext <<EOF
12488 #line 12489 "configure"
12489 #include "confdefs.h"
12490 #include <math.h>
12491 int main() {
12492 `for x in acosf asinf atanf \
12493 cosf sinf tanf \
12494 coshf sinhf tanhf; do echo "$x (0);"; done`
12495 ; return 0; }
12497 if { (eval echo configure:12498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12498 rm -rf conftest*
12499 glibcpp_cv_func_float_trig_use=yes
12500 else
12501 echo "configure: failed program was:" >&5
12502 cat conftest.$ac_ext >&5
12503 rm -rf conftest*
12504 glibcpp_cv_func_float_trig_use=no
12506 rm -f conftest*
12507 ac_ext=c
12508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12509 ac_cpp='$CPP $CPPFLAGS'
12510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12511 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12512 cross_compiling=$ac_cv_prog_cc_cross
12516 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12517 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12518 for ac_func in acosf asinf atanf \
12519 cosf sinf tanf \
12520 coshf sinhf tanhf
12522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12523 echo "configure:12524: checking for $ac_func" >&5
12524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12525 echo $ac_n "(cached) $ac_c" 1>&6
12526 else
12527 cat > conftest.$ac_ext <<EOF
12528 #line 12529 "configure"
12529 #include "confdefs.h"
12530 /* System header to define __stub macros and hopefully few prototypes,
12531 which can conflict with char $ac_func(); below. */
12532 #include <assert.h>
12533 /* Override any gcc2 internal prototype to avoid an error. */
12534 /* We use char because int might match the return type of a gcc2
12535 builtin and then its argument prototype would still apply. */
12536 char $ac_func();
12538 int main() {
12540 /* The GNU C library defines this for functions which it implements
12541 to always fail with ENOSYS. Some functions are actually named
12542 something starting with __ and the normal name is an alias. */
12543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12544 choke me
12545 #else
12546 $ac_func();
12547 #endif
12549 ; return 0; }
12551 if { (eval echo configure:12552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12552 rm -rf conftest*
12553 eval "ac_cv_func_$ac_func=yes"
12554 else
12555 echo "configure: failed program was:" >&5
12556 cat conftest.$ac_ext >&5
12557 rm -rf conftest*
12558 eval "ac_cv_func_$ac_func=no"
12560 rm -f conftest*
12563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12564 echo "$ac_t""yes" 1>&6
12565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12566 cat >> confdefs.h <<EOF
12567 #define $ac_tr_func 1
12570 else
12571 echo "$ac_t""no" 1>&6
12573 done
12578 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12579 echo "configure:12580: checking for float round functions" >&5
12580 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12581 echo $ac_n "(cached) $ac_c" 1>&6
12582 else
12585 ac_ext=C
12586 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12587 ac_cpp='$CXXCPP $CPPFLAGS'
12588 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12589 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12590 cross_compiling=$ac_cv_prog_cxx_cross
12592 cat > conftest.$ac_ext <<EOF
12593 #line 12594 "configure"
12594 #include "confdefs.h"
12595 #include <math.h>
12596 int main() {
12597 `for x in ceilf floorf; do echo "$x (0);"; done`
12598 ; return 0; }
12600 if { (eval echo configure:12601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12601 rm -rf conftest*
12602 glibcpp_cv_func_float_round_use=yes
12603 else
12604 echo "configure: failed program was:" >&5
12605 cat conftest.$ac_ext >&5
12606 rm -rf conftest*
12607 glibcpp_cv_func_float_round_use=no
12609 rm -f conftest*
12610 ac_ext=c
12611 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12612 ac_cpp='$CPP $CPPFLAGS'
12613 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12614 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12615 cross_compiling=$ac_cv_prog_cc_cross
12619 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12620 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12621 for ac_func in ceilf floorf
12623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12624 echo "configure:12625: checking for $ac_func" >&5
12625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12626 echo $ac_n "(cached) $ac_c" 1>&6
12627 else
12628 cat > conftest.$ac_ext <<EOF
12629 #line 12630 "configure"
12630 #include "confdefs.h"
12631 /* System header to define __stub macros and hopefully few prototypes,
12632 which can conflict with char $ac_func(); below. */
12633 #include <assert.h>
12634 /* Override any gcc2 internal prototype to avoid an error. */
12635 /* We use char because int might match the return type of a gcc2
12636 builtin and then its argument prototype would still apply. */
12637 char $ac_func();
12639 int main() {
12641 /* The GNU C library defines this for functions which it implements
12642 to always fail with ENOSYS. Some functions are actually named
12643 something starting with __ and the normal name is an alias. */
12644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12645 choke me
12646 #else
12647 $ac_func();
12648 #endif
12650 ; return 0; }
12652 if { (eval echo configure:12653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12653 rm -rf conftest*
12654 eval "ac_cv_func_$ac_func=yes"
12655 else
12656 echo "configure: failed program was:" >&5
12657 cat conftest.$ac_ext >&5
12658 rm -rf conftest*
12659 eval "ac_cv_func_$ac_func=no"
12661 rm -f conftest*
12664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12665 echo "$ac_t""yes" 1>&6
12666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12667 cat >> confdefs.h <<EOF
12668 #define $ac_tr_func 1
12671 else
12672 echo "$ac_t""no" 1>&6
12674 done
12680 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12681 echo "configure:12682: checking for expf declaration" >&5
12682 if test x${glibcpp_cv_func_expf_use+set} != xset; then
12683 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12684 echo $ac_n "(cached) $ac_c" 1>&6
12685 else
12688 ac_ext=C
12689 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12690 ac_cpp='$CXXCPP $CPPFLAGS'
12691 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12692 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12693 cross_compiling=$ac_cv_prog_cxx_cross
12695 cat > conftest.$ac_ext <<EOF
12696 #line 12697 "configure"
12697 #include "confdefs.h"
12698 #include <math.h>
12699 #ifdef HAVE_IEEEFP_H
12700 #include <ieeefp.h>
12701 #endif
12703 int main() {
12704 expf(0);
12705 ; return 0; }
12707 if { (eval echo configure:12708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12708 rm -rf conftest*
12709 glibcpp_cv_func_expf_use=yes
12710 else
12711 echo "configure: failed program was:" >&5
12712 cat conftest.$ac_ext >&5
12713 rm -rf conftest*
12714 glibcpp_cv_func_expf_use=no
12716 rm -f conftest*
12717 ac_ext=c
12718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12719 ac_cpp='$CPP $CPPFLAGS'
12720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12722 cross_compiling=$ac_cv_prog_cc_cross
12728 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12730 if test x$glibcpp_cv_func_expf_use = x"yes"; then
12731 for ac_func in expf
12733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12734 echo "configure:12735: checking for $ac_func" >&5
12735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12736 echo $ac_n "(cached) $ac_c" 1>&6
12737 else
12738 cat > conftest.$ac_ext <<EOF
12739 #line 12740 "configure"
12740 #include "confdefs.h"
12741 /* System header to define __stub macros and hopefully few prototypes,
12742 which can conflict with char $ac_func(); below. */
12743 #include <assert.h>
12744 /* Override any gcc2 internal prototype to avoid an error. */
12745 /* We use char because int might match the return type of a gcc2
12746 builtin and then its argument prototype would still apply. */
12747 char $ac_func();
12749 int main() {
12751 /* The GNU C library defines this for functions which it implements
12752 to always fail with ENOSYS. Some functions are actually named
12753 something starting with __ and the normal name is an alias. */
12754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12755 choke me
12756 #else
12757 $ac_func();
12758 #endif
12760 ; return 0; }
12762 if { (eval echo configure:12763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12763 rm -rf conftest*
12764 eval "ac_cv_func_$ac_func=yes"
12765 else
12766 echo "configure: failed program was:" >&5
12767 cat conftest.$ac_ext >&5
12768 rm -rf conftest*
12769 eval "ac_cv_func_$ac_func=no"
12771 rm -f conftest*
12774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12775 echo "$ac_t""yes" 1>&6
12776 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12777 cat >> confdefs.h <<EOF
12778 #define $ac_tr_func 1
12781 else
12782 echo "$ac_t""no" 1>&6
12784 done
12786 else
12788 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12789 echo "configure:12790: checking for _expf declaration" >&5
12790 if test x${glibcpp_cv_func__expf_use+set} != xset; then
12791 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12792 echo $ac_n "(cached) $ac_c" 1>&6
12793 else
12796 ac_ext=C
12797 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12798 ac_cpp='$CXXCPP $CPPFLAGS'
12799 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12800 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12801 cross_compiling=$ac_cv_prog_cxx_cross
12803 cat > conftest.$ac_ext <<EOF
12804 #line 12805 "configure"
12805 #include "confdefs.h"
12806 #include <math.h>
12807 #ifdef HAVE_IEEEFP_H
12808 #include <ieeefp.h>
12809 #endif
12811 int main() {
12812 _expf(0);
12813 ; return 0; }
12815 if { (eval echo configure:12816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12816 rm -rf conftest*
12817 glibcpp_cv_func__expf_use=yes
12818 else
12819 echo "configure: failed program was:" >&5
12820 cat conftest.$ac_ext >&5
12821 rm -rf conftest*
12822 glibcpp_cv_func__expf_use=no
12824 rm -f conftest*
12825 ac_ext=c
12826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12827 ac_cpp='$CPP $CPPFLAGS'
12828 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12829 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12830 cross_compiling=$ac_cv_prog_cc_cross
12836 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12838 if test x$glibcpp_cv_func__expf_use = x"yes"; then
12839 for ac_func in _expf
12841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12842 echo "configure:12843: checking for $ac_func" >&5
12843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12844 echo $ac_n "(cached) $ac_c" 1>&6
12845 else
12846 cat > conftest.$ac_ext <<EOF
12847 #line 12848 "configure"
12848 #include "confdefs.h"
12849 /* System header to define __stub macros and hopefully few prototypes,
12850 which can conflict with char $ac_func(); below. */
12851 #include <assert.h>
12852 /* Override any gcc2 internal prototype to avoid an error. */
12853 /* We use char because int might match the return type of a gcc2
12854 builtin and then its argument prototype would still apply. */
12855 char $ac_func();
12857 int main() {
12859 /* The GNU C library defines this for functions which it implements
12860 to always fail with ENOSYS. Some functions are actually named
12861 something starting with __ and the normal name is an alias. */
12862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12863 choke me
12864 #else
12865 $ac_func();
12866 #endif
12868 ; return 0; }
12870 if { (eval echo configure:12871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12871 rm -rf conftest*
12872 eval "ac_cv_func_$ac_func=yes"
12873 else
12874 echo "configure: failed program was:" >&5
12875 cat conftest.$ac_ext >&5
12876 rm -rf conftest*
12877 eval "ac_cv_func_$ac_func=no"
12879 rm -f conftest*
12882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12883 echo "$ac_t""yes" 1>&6
12884 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12885 cat >> confdefs.h <<EOF
12886 #define $ac_tr_func 1
12889 else
12890 echo "$ac_t""no" 1>&6
12892 done
12899 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12900 echo "configure:12901: checking for isnanf declaration" >&5
12901 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12902 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12903 echo $ac_n "(cached) $ac_c" 1>&6
12904 else
12907 ac_ext=C
12908 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12909 ac_cpp='$CXXCPP $CPPFLAGS'
12910 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12911 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12912 cross_compiling=$ac_cv_prog_cxx_cross
12914 cat > conftest.$ac_ext <<EOF
12915 #line 12916 "configure"
12916 #include "confdefs.h"
12917 #include <math.h>
12918 #ifdef HAVE_IEEEFP_H
12919 #include <ieeefp.h>
12920 #endif
12922 int main() {
12923 isnanf(0);
12924 ; return 0; }
12926 if { (eval echo configure:12927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12927 rm -rf conftest*
12928 glibcpp_cv_func_isnanf_use=yes
12929 else
12930 echo "configure: failed program was:" >&5
12931 cat conftest.$ac_ext >&5
12932 rm -rf conftest*
12933 glibcpp_cv_func_isnanf_use=no
12935 rm -f conftest*
12936 ac_ext=c
12937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12938 ac_cpp='$CPP $CPPFLAGS'
12939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12941 cross_compiling=$ac_cv_prog_cc_cross
12947 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12949 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12950 for ac_func in isnanf
12952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12953 echo "configure:12954: checking for $ac_func" >&5
12954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12955 echo $ac_n "(cached) $ac_c" 1>&6
12956 else
12957 cat > conftest.$ac_ext <<EOF
12958 #line 12959 "configure"
12959 #include "confdefs.h"
12960 /* System header to define __stub macros and hopefully few prototypes,
12961 which can conflict with char $ac_func(); below. */
12962 #include <assert.h>
12963 /* Override any gcc2 internal prototype to avoid an error. */
12964 /* We use char because int might match the return type of a gcc2
12965 builtin and then its argument prototype would still apply. */
12966 char $ac_func();
12968 int main() {
12970 /* The GNU C library defines this for functions which it implements
12971 to always fail with ENOSYS. Some functions are actually named
12972 something starting with __ and the normal name is an alias. */
12973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12974 choke me
12975 #else
12976 $ac_func();
12977 #endif
12979 ; return 0; }
12981 if { (eval echo configure:12982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12982 rm -rf conftest*
12983 eval "ac_cv_func_$ac_func=yes"
12984 else
12985 echo "configure: failed program was:" >&5
12986 cat conftest.$ac_ext >&5
12987 rm -rf conftest*
12988 eval "ac_cv_func_$ac_func=no"
12990 rm -f conftest*
12993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12994 echo "$ac_t""yes" 1>&6
12995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12996 cat >> confdefs.h <<EOF
12997 #define $ac_tr_func 1
13000 else
13001 echo "$ac_t""no" 1>&6
13003 done
13005 else
13007 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
13008 echo "configure:13009: checking for _isnanf declaration" >&5
13009 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
13010 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
13011 echo $ac_n "(cached) $ac_c" 1>&6
13012 else
13015 ac_ext=C
13016 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13017 ac_cpp='$CXXCPP $CPPFLAGS'
13018 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13019 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13020 cross_compiling=$ac_cv_prog_cxx_cross
13022 cat > conftest.$ac_ext <<EOF
13023 #line 13024 "configure"
13024 #include "confdefs.h"
13025 #include <math.h>
13026 #ifdef HAVE_IEEEFP_H
13027 #include <ieeefp.h>
13028 #endif
13030 int main() {
13031 _isnanf(0);
13032 ; return 0; }
13034 if { (eval echo configure:13035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13035 rm -rf conftest*
13036 glibcpp_cv_func__isnanf_use=yes
13037 else
13038 echo "configure: failed program was:" >&5
13039 cat conftest.$ac_ext >&5
13040 rm -rf conftest*
13041 glibcpp_cv_func__isnanf_use=no
13043 rm -f conftest*
13044 ac_ext=c
13045 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13046 ac_cpp='$CPP $CPPFLAGS'
13047 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13048 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13049 cross_compiling=$ac_cv_prog_cc_cross
13055 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13057 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13058 for ac_func in _isnanf
13060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13061 echo "configure:13062: checking for $ac_func" >&5
13062 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13063 echo $ac_n "(cached) $ac_c" 1>&6
13064 else
13065 cat > conftest.$ac_ext <<EOF
13066 #line 13067 "configure"
13067 #include "confdefs.h"
13068 /* System header to define __stub macros and hopefully few prototypes,
13069 which can conflict with char $ac_func(); below. */
13070 #include <assert.h>
13071 /* Override any gcc2 internal prototype to avoid an error. */
13072 /* We use char because int might match the return type of a gcc2
13073 builtin and then its argument prototype would still apply. */
13074 char $ac_func();
13076 int main() {
13078 /* The GNU C library defines this for functions which it implements
13079 to always fail with ENOSYS. Some functions are actually named
13080 something starting with __ and the normal name is an alias. */
13081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13082 choke me
13083 #else
13084 $ac_func();
13085 #endif
13087 ; return 0; }
13089 if { (eval echo configure:13090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13090 rm -rf conftest*
13091 eval "ac_cv_func_$ac_func=yes"
13092 else
13093 echo "configure: failed program was:" >&5
13094 cat conftest.$ac_ext >&5
13095 rm -rf conftest*
13096 eval "ac_cv_func_$ac_func=no"
13098 rm -f conftest*
13101 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13102 echo "$ac_t""yes" 1>&6
13103 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13104 cat >> confdefs.h <<EOF
13105 #define $ac_tr_func 1
13108 else
13109 echo "$ac_t""no" 1>&6
13111 done
13118 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13119 echo "configure:13120: checking for isinff declaration" >&5
13120 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13121 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13122 echo $ac_n "(cached) $ac_c" 1>&6
13123 else
13126 ac_ext=C
13127 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13128 ac_cpp='$CXXCPP $CPPFLAGS'
13129 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13130 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13131 cross_compiling=$ac_cv_prog_cxx_cross
13133 cat > conftest.$ac_ext <<EOF
13134 #line 13135 "configure"
13135 #include "confdefs.h"
13136 #include <math.h>
13137 #ifdef HAVE_IEEEFP_H
13138 #include <ieeefp.h>
13139 #endif
13141 int main() {
13142 isinff(0);
13143 ; return 0; }
13145 if { (eval echo configure:13146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13146 rm -rf conftest*
13147 glibcpp_cv_func_isinff_use=yes
13148 else
13149 echo "configure: failed program was:" >&5
13150 cat conftest.$ac_ext >&5
13151 rm -rf conftest*
13152 glibcpp_cv_func_isinff_use=no
13154 rm -f conftest*
13155 ac_ext=c
13156 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13157 ac_cpp='$CPP $CPPFLAGS'
13158 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13159 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13160 cross_compiling=$ac_cv_prog_cc_cross
13166 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13168 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13169 for ac_func in isinff
13171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13172 echo "configure:13173: checking for $ac_func" >&5
13173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13174 echo $ac_n "(cached) $ac_c" 1>&6
13175 else
13176 cat > conftest.$ac_ext <<EOF
13177 #line 13178 "configure"
13178 #include "confdefs.h"
13179 /* System header to define __stub macros and hopefully few prototypes,
13180 which can conflict with char $ac_func(); below. */
13181 #include <assert.h>
13182 /* Override any gcc2 internal prototype to avoid an error. */
13183 /* We use char because int might match the return type of a gcc2
13184 builtin and then its argument prototype would still apply. */
13185 char $ac_func();
13187 int main() {
13189 /* The GNU C library defines this for functions which it implements
13190 to always fail with ENOSYS. Some functions are actually named
13191 something starting with __ and the normal name is an alias. */
13192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13193 choke me
13194 #else
13195 $ac_func();
13196 #endif
13198 ; return 0; }
13200 if { (eval echo configure:13201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13201 rm -rf conftest*
13202 eval "ac_cv_func_$ac_func=yes"
13203 else
13204 echo "configure: failed program was:" >&5
13205 cat conftest.$ac_ext >&5
13206 rm -rf conftest*
13207 eval "ac_cv_func_$ac_func=no"
13209 rm -f conftest*
13212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13213 echo "$ac_t""yes" 1>&6
13214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13215 cat >> confdefs.h <<EOF
13216 #define $ac_tr_func 1
13219 else
13220 echo "$ac_t""no" 1>&6
13222 done
13224 else
13226 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13227 echo "configure:13228: checking for _isinff declaration" >&5
13228 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13229 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13230 echo $ac_n "(cached) $ac_c" 1>&6
13231 else
13234 ac_ext=C
13235 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13236 ac_cpp='$CXXCPP $CPPFLAGS'
13237 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13238 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13239 cross_compiling=$ac_cv_prog_cxx_cross
13241 cat > conftest.$ac_ext <<EOF
13242 #line 13243 "configure"
13243 #include "confdefs.h"
13244 #include <math.h>
13245 #ifdef HAVE_IEEEFP_H
13246 #include <ieeefp.h>
13247 #endif
13249 int main() {
13250 _isinff(0);
13251 ; return 0; }
13253 if { (eval echo configure:13254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13254 rm -rf conftest*
13255 glibcpp_cv_func__isinff_use=yes
13256 else
13257 echo "configure: failed program was:" >&5
13258 cat conftest.$ac_ext >&5
13259 rm -rf conftest*
13260 glibcpp_cv_func__isinff_use=no
13262 rm -f conftest*
13263 ac_ext=c
13264 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13265 ac_cpp='$CPP $CPPFLAGS'
13266 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13267 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13268 cross_compiling=$ac_cv_prog_cc_cross
13274 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13276 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13277 for ac_func in _isinff
13279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13280 echo "configure:13281: checking for $ac_func" >&5
13281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13282 echo $ac_n "(cached) $ac_c" 1>&6
13283 else
13284 cat > conftest.$ac_ext <<EOF
13285 #line 13286 "configure"
13286 #include "confdefs.h"
13287 /* System header to define __stub macros and hopefully few prototypes,
13288 which can conflict with char $ac_func(); below. */
13289 #include <assert.h>
13290 /* Override any gcc2 internal prototype to avoid an error. */
13291 /* We use char because int might match the return type of a gcc2
13292 builtin and then its argument prototype would still apply. */
13293 char $ac_func();
13295 int main() {
13297 /* The GNU C library defines this for functions which it implements
13298 to always fail with ENOSYS. Some functions are actually named
13299 something starting with __ and the normal name is an alias. */
13300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13301 choke me
13302 #else
13303 $ac_func();
13304 #endif
13306 ; return 0; }
13308 if { (eval echo configure:13309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13309 rm -rf conftest*
13310 eval "ac_cv_func_$ac_func=yes"
13311 else
13312 echo "configure: failed program was:" >&5
13313 cat conftest.$ac_ext >&5
13314 rm -rf conftest*
13315 eval "ac_cv_func_$ac_func=no"
13317 rm -f conftest*
13320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13321 echo "$ac_t""yes" 1>&6
13322 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13323 cat >> confdefs.h <<EOF
13324 #define $ac_tr_func 1
13327 else
13328 echo "$ac_t""no" 1>&6
13330 done
13337 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13338 echo "configure:13339: checking for atan2f declaration" >&5
13339 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13340 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13341 echo $ac_n "(cached) $ac_c" 1>&6
13342 else
13345 ac_ext=C
13346 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13347 ac_cpp='$CXXCPP $CPPFLAGS'
13348 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13349 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13350 cross_compiling=$ac_cv_prog_cxx_cross
13352 cat > conftest.$ac_ext <<EOF
13353 #line 13354 "configure"
13354 #include "confdefs.h"
13355 #include <math.h>
13356 int main() {
13357 atan2f(0, 0);
13358 ; return 0; }
13360 if { (eval echo configure:13361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13361 rm -rf conftest*
13362 glibcpp_cv_func_atan2f_use=yes
13363 else
13364 echo "configure: failed program was:" >&5
13365 cat conftest.$ac_ext >&5
13366 rm -rf conftest*
13367 glibcpp_cv_func_atan2f_use=no
13369 rm -f conftest*
13370 ac_ext=c
13371 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13372 ac_cpp='$CPP $CPPFLAGS'
13373 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13374 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13375 cross_compiling=$ac_cv_prog_cc_cross
13381 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13383 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13384 for ac_func in atan2f
13386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13387 echo "configure:13388: checking for $ac_func" >&5
13388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13389 echo $ac_n "(cached) $ac_c" 1>&6
13390 else
13391 cat > conftest.$ac_ext <<EOF
13392 #line 13393 "configure"
13393 #include "confdefs.h"
13394 /* System header to define __stub macros and hopefully few prototypes,
13395 which can conflict with char $ac_func(); below. */
13396 #include <assert.h>
13397 /* Override any gcc2 internal prototype to avoid an error. */
13398 /* We use char because int might match the return type of a gcc2
13399 builtin and then its argument prototype would still apply. */
13400 char $ac_func();
13402 int main() {
13404 /* The GNU C library defines this for functions which it implements
13405 to always fail with ENOSYS. Some functions are actually named
13406 something starting with __ and the normal name is an alias. */
13407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13408 choke me
13409 #else
13410 $ac_func();
13411 #endif
13413 ; return 0; }
13415 if { (eval echo configure:13416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13416 rm -rf conftest*
13417 eval "ac_cv_func_$ac_func=yes"
13418 else
13419 echo "configure: failed program was:" >&5
13420 cat conftest.$ac_ext >&5
13421 rm -rf conftest*
13422 eval "ac_cv_func_$ac_func=no"
13424 rm -f conftest*
13427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13428 echo "$ac_t""yes" 1>&6
13429 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13430 cat >> confdefs.h <<EOF
13431 #define $ac_tr_func 1
13434 else
13435 echo "$ac_t""no" 1>&6
13437 done
13439 else
13441 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13442 echo "configure:13443: checking for _atan2f declaration" >&5
13443 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13444 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13445 echo $ac_n "(cached) $ac_c" 1>&6
13446 else
13449 ac_ext=C
13450 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13451 ac_cpp='$CXXCPP $CPPFLAGS'
13452 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13453 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13454 cross_compiling=$ac_cv_prog_cxx_cross
13456 cat > conftest.$ac_ext <<EOF
13457 #line 13458 "configure"
13458 #include "confdefs.h"
13459 #include <math.h>
13460 int main() {
13461 _atan2f(0, 0);
13462 ; return 0; }
13464 if { (eval echo configure:13465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13465 rm -rf conftest*
13466 glibcpp_cv_func__atan2f_use=yes
13467 else
13468 echo "configure: failed program was:" >&5
13469 cat conftest.$ac_ext >&5
13470 rm -rf conftest*
13471 glibcpp_cv_func__atan2f_use=no
13473 rm -f conftest*
13474 ac_ext=c
13475 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13476 ac_cpp='$CPP $CPPFLAGS'
13477 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13478 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13479 cross_compiling=$ac_cv_prog_cc_cross
13485 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13487 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13488 for ac_func in _atan2f
13490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13491 echo "configure:13492: checking for $ac_func" >&5
13492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13493 echo $ac_n "(cached) $ac_c" 1>&6
13494 else
13495 cat > conftest.$ac_ext <<EOF
13496 #line 13497 "configure"
13497 #include "confdefs.h"
13498 /* System header to define __stub macros and hopefully few prototypes,
13499 which can conflict with char $ac_func(); below. */
13500 #include <assert.h>
13501 /* Override any gcc2 internal prototype to avoid an error. */
13502 /* We use char because int might match the return type of a gcc2
13503 builtin and then its argument prototype would still apply. */
13504 char $ac_func();
13506 int main() {
13508 /* The GNU C library defines this for functions which it implements
13509 to always fail with ENOSYS. Some functions are actually named
13510 something starting with __ and the normal name is an alias. */
13511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13512 choke me
13513 #else
13514 $ac_func();
13515 #endif
13517 ; return 0; }
13519 if { (eval echo configure:13520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13520 rm -rf conftest*
13521 eval "ac_cv_func_$ac_func=yes"
13522 else
13523 echo "configure: failed program was:" >&5
13524 cat conftest.$ac_ext >&5
13525 rm -rf conftest*
13526 eval "ac_cv_func_$ac_func=no"
13528 rm -f conftest*
13531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13532 echo "$ac_t""yes" 1>&6
13533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13534 cat >> confdefs.h <<EOF
13535 #define $ac_tr_func 1
13538 else
13539 echo "$ac_t""no" 1>&6
13541 done
13548 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13549 echo "configure:13550: checking for fabsf declaration" >&5
13550 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13551 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13552 echo $ac_n "(cached) $ac_c" 1>&6
13553 else
13556 ac_ext=C
13557 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13558 ac_cpp='$CXXCPP $CPPFLAGS'
13559 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13560 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13561 cross_compiling=$ac_cv_prog_cxx_cross
13563 cat > conftest.$ac_ext <<EOF
13564 #line 13565 "configure"
13565 #include "confdefs.h"
13566 #include <math.h>
13567 #ifdef HAVE_IEEEFP_H
13568 #include <ieeefp.h>
13569 #endif
13571 int main() {
13572 fabsf(0);
13573 ; return 0; }
13575 if { (eval echo configure:13576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13576 rm -rf conftest*
13577 glibcpp_cv_func_fabsf_use=yes
13578 else
13579 echo "configure: failed program was:" >&5
13580 cat conftest.$ac_ext >&5
13581 rm -rf conftest*
13582 glibcpp_cv_func_fabsf_use=no
13584 rm -f conftest*
13585 ac_ext=c
13586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13587 ac_cpp='$CPP $CPPFLAGS'
13588 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13589 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13590 cross_compiling=$ac_cv_prog_cc_cross
13596 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13598 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13599 for ac_func in fabsf
13601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13602 echo "configure:13603: checking for $ac_func" >&5
13603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13604 echo $ac_n "(cached) $ac_c" 1>&6
13605 else
13606 cat > conftest.$ac_ext <<EOF
13607 #line 13608 "configure"
13608 #include "confdefs.h"
13609 /* System header to define __stub macros and hopefully few prototypes,
13610 which can conflict with char $ac_func(); below. */
13611 #include <assert.h>
13612 /* Override any gcc2 internal prototype to avoid an error. */
13613 /* We use char because int might match the return type of a gcc2
13614 builtin and then its argument prototype would still apply. */
13615 char $ac_func();
13617 int main() {
13619 /* The GNU C library defines this for functions which it implements
13620 to always fail with ENOSYS. Some functions are actually named
13621 something starting with __ and the normal name is an alias. */
13622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13623 choke me
13624 #else
13625 $ac_func();
13626 #endif
13628 ; return 0; }
13630 if { (eval echo configure:13631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13631 rm -rf conftest*
13632 eval "ac_cv_func_$ac_func=yes"
13633 else
13634 echo "configure: failed program was:" >&5
13635 cat conftest.$ac_ext >&5
13636 rm -rf conftest*
13637 eval "ac_cv_func_$ac_func=no"
13639 rm -f conftest*
13642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13643 echo "$ac_t""yes" 1>&6
13644 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13645 cat >> confdefs.h <<EOF
13646 #define $ac_tr_func 1
13649 else
13650 echo "$ac_t""no" 1>&6
13652 done
13654 else
13656 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13657 echo "configure:13658: checking for _fabsf declaration" >&5
13658 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13659 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13660 echo $ac_n "(cached) $ac_c" 1>&6
13661 else
13664 ac_ext=C
13665 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13666 ac_cpp='$CXXCPP $CPPFLAGS'
13667 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13668 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13669 cross_compiling=$ac_cv_prog_cxx_cross
13671 cat > conftest.$ac_ext <<EOF
13672 #line 13673 "configure"
13673 #include "confdefs.h"
13674 #include <math.h>
13675 #ifdef HAVE_IEEEFP_H
13676 #include <ieeefp.h>
13677 #endif
13679 int main() {
13680 _fabsf(0);
13681 ; return 0; }
13683 if { (eval echo configure:13684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13684 rm -rf conftest*
13685 glibcpp_cv_func__fabsf_use=yes
13686 else
13687 echo "configure: failed program was:" >&5
13688 cat conftest.$ac_ext >&5
13689 rm -rf conftest*
13690 glibcpp_cv_func__fabsf_use=no
13692 rm -f conftest*
13693 ac_ext=c
13694 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13695 ac_cpp='$CPP $CPPFLAGS'
13696 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13697 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13698 cross_compiling=$ac_cv_prog_cc_cross
13704 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13706 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13707 for ac_func in _fabsf
13709 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13710 echo "configure:13711: checking for $ac_func" >&5
13711 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13712 echo $ac_n "(cached) $ac_c" 1>&6
13713 else
13714 cat > conftest.$ac_ext <<EOF
13715 #line 13716 "configure"
13716 #include "confdefs.h"
13717 /* System header to define __stub macros and hopefully few prototypes,
13718 which can conflict with char $ac_func(); below. */
13719 #include <assert.h>
13720 /* Override any gcc2 internal prototype to avoid an error. */
13721 /* We use char because int might match the return type of a gcc2
13722 builtin and then its argument prototype would still apply. */
13723 char $ac_func();
13725 int main() {
13727 /* The GNU C library defines this for functions which it implements
13728 to always fail with ENOSYS. Some functions are actually named
13729 something starting with __ and the normal name is an alias. */
13730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13731 choke me
13732 #else
13733 $ac_func();
13734 #endif
13736 ; return 0; }
13738 if { (eval echo configure:13739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13739 rm -rf conftest*
13740 eval "ac_cv_func_$ac_func=yes"
13741 else
13742 echo "configure: failed program was:" >&5
13743 cat conftest.$ac_ext >&5
13744 rm -rf conftest*
13745 eval "ac_cv_func_$ac_func=no"
13747 rm -f conftest*
13750 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13751 echo "$ac_t""yes" 1>&6
13752 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13753 cat >> confdefs.h <<EOF
13754 #define $ac_tr_func 1
13757 else
13758 echo "$ac_t""no" 1>&6
13760 done
13767 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13768 echo "configure:13769: checking for fmodf declaration" >&5
13769 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13770 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13771 echo $ac_n "(cached) $ac_c" 1>&6
13772 else
13775 ac_ext=C
13776 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13777 ac_cpp='$CXXCPP $CPPFLAGS'
13778 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13779 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13780 cross_compiling=$ac_cv_prog_cxx_cross
13782 cat > conftest.$ac_ext <<EOF
13783 #line 13784 "configure"
13784 #include "confdefs.h"
13785 #include <math.h>
13786 int main() {
13787 fmodf(0, 0);
13788 ; return 0; }
13790 if { (eval echo configure:13791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13791 rm -rf conftest*
13792 glibcpp_cv_func_fmodf_use=yes
13793 else
13794 echo "configure: failed program was:" >&5
13795 cat conftest.$ac_ext >&5
13796 rm -rf conftest*
13797 glibcpp_cv_func_fmodf_use=no
13799 rm -f conftest*
13800 ac_ext=c
13801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13802 ac_cpp='$CPP $CPPFLAGS'
13803 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13804 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13805 cross_compiling=$ac_cv_prog_cc_cross
13811 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13813 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13814 for ac_func in fmodf
13816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13817 echo "configure:13818: checking for $ac_func" >&5
13818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13819 echo $ac_n "(cached) $ac_c" 1>&6
13820 else
13821 cat > conftest.$ac_ext <<EOF
13822 #line 13823 "configure"
13823 #include "confdefs.h"
13824 /* System header to define __stub macros and hopefully few prototypes,
13825 which can conflict with char $ac_func(); below. */
13826 #include <assert.h>
13827 /* Override any gcc2 internal prototype to avoid an error. */
13828 /* We use char because int might match the return type of a gcc2
13829 builtin and then its argument prototype would still apply. */
13830 char $ac_func();
13832 int main() {
13834 /* The GNU C library defines this for functions which it implements
13835 to always fail with ENOSYS. Some functions are actually named
13836 something starting with __ and the normal name is an alias. */
13837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13838 choke me
13839 #else
13840 $ac_func();
13841 #endif
13843 ; return 0; }
13845 if { (eval echo configure:13846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13846 rm -rf conftest*
13847 eval "ac_cv_func_$ac_func=yes"
13848 else
13849 echo "configure: failed program was:" >&5
13850 cat conftest.$ac_ext >&5
13851 rm -rf conftest*
13852 eval "ac_cv_func_$ac_func=no"
13854 rm -f conftest*
13857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13858 echo "$ac_t""yes" 1>&6
13859 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13860 cat >> confdefs.h <<EOF
13861 #define $ac_tr_func 1
13864 else
13865 echo "$ac_t""no" 1>&6
13867 done
13869 else
13871 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13872 echo "configure:13873: checking for _fmodf declaration" >&5
13873 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13874 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13875 echo $ac_n "(cached) $ac_c" 1>&6
13876 else
13879 ac_ext=C
13880 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13881 ac_cpp='$CXXCPP $CPPFLAGS'
13882 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13883 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13884 cross_compiling=$ac_cv_prog_cxx_cross
13886 cat > conftest.$ac_ext <<EOF
13887 #line 13888 "configure"
13888 #include "confdefs.h"
13889 #include <math.h>
13890 int main() {
13891 _fmodf(0, 0);
13892 ; return 0; }
13894 if { (eval echo configure:13895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13895 rm -rf conftest*
13896 glibcpp_cv_func__fmodf_use=yes
13897 else
13898 echo "configure: failed program was:" >&5
13899 cat conftest.$ac_ext >&5
13900 rm -rf conftest*
13901 glibcpp_cv_func__fmodf_use=no
13903 rm -f conftest*
13904 ac_ext=c
13905 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13906 ac_cpp='$CPP $CPPFLAGS'
13907 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13908 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13909 cross_compiling=$ac_cv_prog_cc_cross
13915 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13917 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13918 for ac_func in _fmodf
13920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13921 echo "configure:13922: checking for $ac_func" >&5
13922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13923 echo $ac_n "(cached) $ac_c" 1>&6
13924 else
13925 cat > conftest.$ac_ext <<EOF
13926 #line 13927 "configure"
13927 #include "confdefs.h"
13928 /* System header to define __stub macros and hopefully few prototypes,
13929 which can conflict with char $ac_func(); below. */
13930 #include <assert.h>
13931 /* Override any gcc2 internal prototype to avoid an error. */
13932 /* We use char because int might match the return type of a gcc2
13933 builtin and then its argument prototype would still apply. */
13934 char $ac_func();
13936 int main() {
13938 /* The GNU C library defines this for functions which it implements
13939 to always fail with ENOSYS. Some functions are actually named
13940 something starting with __ and the normal name is an alias. */
13941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13942 choke me
13943 #else
13944 $ac_func();
13945 #endif
13947 ; return 0; }
13949 if { (eval echo configure:13950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13950 rm -rf conftest*
13951 eval "ac_cv_func_$ac_func=yes"
13952 else
13953 echo "configure: failed program was:" >&5
13954 cat conftest.$ac_ext >&5
13955 rm -rf conftest*
13956 eval "ac_cv_func_$ac_func=no"
13958 rm -f conftest*
13961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13962 echo "$ac_t""yes" 1>&6
13963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13964 cat >> confdefs.h <<EOF
13965 #define $ac_tr_func 1
13968 else
13969 echo "$ac_t""no" 1>&6
13971 done
13978 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13979 echo "configure:13980: checking for frexpf declaration" >&5
13980 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13981 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13982 echo $ac_n "(cached) $ac_c" 1>&6
13983 else
13986 ac_ext=C
13987 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13988 ac_cpp='$CXXCPP $CPPFLAGS'
13989 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13990 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13991 cross_compiling=$ac_cv_prog_cxx_cross
13993 cat > conftest.$ac_ext <<EOF
13994 #line 13995 "configure"
13995 #include "confdefs.h"
13996 #include <math.h>
13997 int main() {
13998 frexpf(0, 0);
13999 ; return 0; }
14001 if { (eval echo configure:14002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14002 rm -rf conftest*
14003 glibcpp_cv_func_frexpf_use=yes
14004 else
14005 echo "configure: failed program was:" >&5
14006 cat conftest.$ac_ext >&5
14007 rm -rf conftest*
14008 glibcpp_cv_func_frexpf_use=no
14010 rm -f conftest*
14011 ac_ext=c
14012 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14013 ac_cpp='$CPP $CPPFLAGS'
14014 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14015 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14016 cross_compiling=$ac_cv_prog_cc_cross
14022 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
14024 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
14025 for ac_func in frexpf
14027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14028 echo "configure:14029: checking for $ac_func" >&5
14029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14030 echo $ac_n "(cached) $ac_c" 1>&6
14031 else
14032 cat > conftest.$ac_ext <<EOF
14033 #line 14034 "configure"
14034 #include "confdefs.h"
14035 /* System header to define __stub macros and hopefully few prototypes,
14036 which can conflict with char $ac_func(); below. */
14037 #include <assert.h>
14038 /* Override any gcc2 internal prototype to avoid an error. */
14039 /* We use char because int might match the return type of a gcc2
14040 builtin and then its argument prototype would still apply. */
14041 char $ac_func();
14043 int main() {
14045 /* The GNU C library defines this for functions which it implements
14046 to always fail with ENOSYS. Some functions are actually named
14047 something starting with __ and the normal name is an alias. */
14048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14049 choke me
14050 #else
14051 $ac_func();
14052 #endif
14054 ; return 0; }
14056 if { (eval echo configure:14057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14057 rm -rf conftest*
14058 eval "ac_cv_func_$ac_func=yes"
14059 else
14060 echo "configure: failed program was:" >&5
14061 cat conftest.$ac_ext >&5
14062 rm -rf conftest*
14063 eval "ac_cv_func_$ac_func=no"
14065 rm -f conftest*
14068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14069 echo "$ac_t""yes" 1>&6
14070 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14071 cat >> confdefs.h <<EOF
14072 #define $ac_tr_func 1
14075 else
14076 echo "$ac_t""no" 1>&6
14078 done
14080 else
14082 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14083 echo "configure:14084: checking for _frexpf declaration" >&5
14084 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14085 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14086 echo $ac_n "(cached) $ac_c" 1>&6
14087 else
14090 ac_ext=C
14091 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14092 ac_cpp='$CXXCPP $CPPFLAGS'
14093 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14094 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14095 cross_compiling=$ac_cv_prog_cxx_cross
14097 cat > conftest.$ac_ext <<EOF
14098 #line 14099 "configure"
14099 #include "confdefs.h"
14100 #include <math.h>
14101 int main() {
14102 _frexpf(0, 0);
14103 ; return 0; }
14105 if { (eval echo configure:14106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14106 rm -rf conftest*
14107 glibcpp_cv_func__frexpf_use=yes
14108 else
14109 echo "configure: failed program was:" >&5
14110 cat conftest.$ac_ext >&5
14111 rm -rf conftest*
14112 glibcpp_cv_func__frexpf_use=no
14114 rm -f conftest*
14115 ac_ext=c
14116 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14117 ac_cpp='$CPP $CPPFLAGS'
14118 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14119 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14120 cross_compiling=$ac_cv_prog_cc_cross
14126 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14128 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14129 for ac_func in _frexpf
14131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14132 echo "configure:14133: checking for $ac_func" >&5
14133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14134 echo $ac_n "(cached) $ac_c" 1>&6
14135 else
14136 cat > conftest.$ac_ext <<EOF
14137 #line 14138 "configure"
14138 #include "confdefs.h"
14139 /* System header to define __stub macros and hopefully few prototypes,
14140 which can conflict with char $ac_func(); below. */
14141 #include <assert.h>
14142 /* Override any gcc2 internal prototype to avoid an error. */
14143 /* We use char because int might match the return type of a gcc2
14144 builtin and then its argument prototype would still apply. */
14145 char $ac_func();
14147 int main() {
14149 /* The GNU C library defines this for functions which it implements
14150 to always fail with ENOSYS. Some functions are actually named
14151 something starting with __ and the normal name is an alias. */
14152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14153 choke me
14154 #else
14155 $ac_func();
14156 #endif
14158 ; return 0; }
14160 if { (eval echo configure:14161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14161 rm -rf conftest*
14162 eval "ac_cv_func_$ac_func=yes"
14163 else
14164 echo "configure: failed program was:" >&5
14165 cat conftest.$ac_ext >&5
14166 rm -rf conftest*
14167 eval "ac_cv_func_$ac_func=no"
14169 rm -f conftest*
14172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14173 echo "$ac_t""yes" 1>&6
14174 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14175 cat >> confdefs.h <<EOF
14176 #define $ac_tr_func 1
14179 else
14180 echo "$ac_t""no" 1>&6
14182 done
14189 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14190 echo "configure:14191: checking for hypotf declaration" >&5
14191 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14192 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_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 hypotf(0, 0);
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_hypotf_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_hypotf_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
14233 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14235 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14236 for ac_func in hypotf
14238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14239 echo "configure:14240: checking for $ac_func" >&5
14240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14241 echo $ac_n "(cached) $ac_c" 1>&6
14242 else
14243 cat > conftest.$ac_ext <<EOF
14244 #line 14245 "configure"
14245 #include "confdefs.h"
14246 /* System header to define __stub macros and hopefully few prototypes,
14247 which can conflict with char $ac_func(); below. */
14248 #include <assert.h>
14249 /* Override any gcc2 internal prototype to avoid an error. */
14250 /* We use char because int might match the return type of a gcc2
14251 builtin and then its argument prototype would still apply. */
14252 char $ac_func();
14254 int main() {
14256 /* The GNU C library defines this for functions which it implements
14257 to always fail with ENOSYS. Some functions are actually named
14258 something starting with __ and the normal name is an alias. */
14259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14260 choke me
14261 #else
14262 $ac_func();
14263 #endif
14265 ; return 0; }
14267 if { (eval echo configure:14268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14268 rm -rf conftest*
14269 eval "ac_cv_func_$ac_func=yes"
14270 else
14271 echo "configure: failed program was:" >&5
14272 cat conftest.$ac_ext >&5
14273 rm -rf conftest*
14274 eval "ac_cv_func_$ac_func=no"
14276 rm -f conftest*
14279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14280 echo "$ac_t""yes" 1>&6
14281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14282 cat >> confdefs.h <<EOF
14283 #define $ac_tr_func 1
14286 else
14287 echo "$ac_t""no" 1>&6
14289 done
14291 else
14293 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14294 echo "configure:14295: checking for _hypotf declaration" >&5
14295 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14296 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14297 echo $ac_n "(cached) $ac_c" 1>&6
14298 else
14301 ac_ext=C
14302 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14303 ac_cpp='$CXXCPP $CPPFLAGS'
14304 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14305 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14306 cross_compiling=$ac_cv_prog_cxx_cross
14308 cat > conftest.$ac_ext <<EOF
14309 #line 14310 "configure"
14310 #include "confdefs.h"
14311 #include <math.h>
14312 int main() {
14313 _hypotf(0, 0);
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__hypotf_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__hypotf_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
14337 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14339 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14340 for ac_func in _hypotf
14342 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14343 echo "configure:14344: checking for $ac_func" >&5
14344 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14345 echo $ac_n "(cached) $ac_c" 1>&6
14346 else
14347 cat > conftest.$ac_ext <<EOF
14348 #line 14349 "configure"
14349 #include "confdefs.h"
14350 /* System header to define __stub macros and hopefully few prototypes,
14351 which can conflict with char $ac_func(); below. */
14352 #include <assert.h>
14353 /* Override any gcc2 internal prototype to avoid an error. */
14354 /* We use char because int might match the return type of a gcc2
14355 builtin and then its argument prototype would still apply. */
14356 char $ac_func();
14358 int main() {
14360 /* The GNU C library defines this for functions which it implements
14361 to always fail with ENOSYS. Some functions are actually named
14362 something starting with __ and the normal name is an alias. */
14363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14364 choke me
14365 #else
14366 $ac_func();
14367 #endif
14369 ; return 0; }
14371 if { (eval echo configure:14372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14372 rm -rf conftest*
14373 eval "ac_cv_func_$ac_func=yes"
14374 else
14375 echo "configure: failed program was:" >&5
14376 cat conftest.$ac_ext >&5
14377 rm -rf conftest*
14378 eval "ac_cv_func_$ac_func=no"
14380 rm -f conftest*
14383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14384 echo "$ac_t""yes" 1>&6
14385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14386 cat >> confdefs.h <<EOF
14387 #define $ac_tr_func 1
14390 else
14391 echo "$ac_t""no" 1>&6
14393 done
14400 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14401 echo "configure:14402: checking for ldexpf declaration" >&5
14402 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14403 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14404 echo $ac_n "(cached) $ac_c" 1>&6
14405 else
14408 ac_ext=C
14409 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14410 ac_cpp='$CXXCPP $CPPFLAGS'
14411 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14412 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14413 cross_compiling=$ac_cv_prog_cxx_cross
14415 cat > conftest.$ac_ext <<EOF
14416 #line 14417 "configure"
14417 #include "confdefs.h"
14418 #include <math.h>
14419 int main() {
14420 ldexpf(0, 0);
14421 ; return 0; }
14423 if { (eval echo configure:14424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14424 rm -rf conftest*
14425 glibcpp_cv_func_ldexpf_use=yes
14426 else
14427 echo "configure: failed program was:" >&5
14428 cat conftest.$ac_ext >&5
14429 rm -rf conftest*
14430 glibcpp_cv_func_ldexpf_use=no
14432 rm -f conftest*
14433 ac_ext=c
14434 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14435 ac_cpp='$CPP $CPPFLAGS'
14436 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14437 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14438 cross_compiling=$ac_cv_prog_cc_cross
14444 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14446 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14447 for ac_func in ldexpf
14449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14450 echo "configure:14451: checking for $ac_func" >&5
14451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14452 echo $ac_n "(cached) $ac_c" 1>&6
14453 else
14454 cat > conftest.$ac_ext <<EOF
14455 #line 14456 "configure"
14456 #include "confdefs.h"
14457 /* System header to define __stub macros and hopefully few prototypes,
14458 which can conflict with char $ac_func(); below. */
14459 #include <assert.h>
14460 /* Override any gcc2 internal prototype to avoid an error. */
14461 /* We use char because int might match the return type of a gcc2
14462 builtin and then its argument prototype would still apply. */
14463 char $ac_func();
14465 int main() {
14467 /* The GNU C library defines this for functions which it implements
14468 to always fail with ENOSYS. Some functions are actually named
14469 something starting with __ and the normal name is an alias. */
14470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14471 choke me
14472 #else
14473 $ac_func();
14474 #endif
14476 ; return 0; }
14478 if { (eval echo configure:14479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14479 rm -rf conftest*
14480 eval "ac_cv_func_$ac_func=yes"
14481 else
14482 echo "configure: failed program was:" >&5
14483 cat conftest.$ac_ext >&5
14484 rm -rf conftest*
14485 eval "ac_cv_func_$ac_func=no"
14487 rm -f conftest*
14490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14491 echo "$ac_t""yes" 1>&6
14492 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14493 cat >> confdefs.h <<EOF
14494 #define $ac_tr_func 1
14497 else
14498 echo "$ac_t""no" 1>&6
14500 done
14502 else
14504 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14505 echo "configure:14506: checking for _ldexpf declaration" >&5
14506 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14507 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14508 echo $ac_n "(cached) $ac_c" 1>&6
14509 else
14512 ac_ext=C
14513 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14514 ac_cpp='$CXXCPP $CPPFLAGS'
14515 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14516 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14517 cross_compiling=$ac_cv_prog_cxx_cross
14519 cat > conftest.$ac_ext <<EOF
14520 #line 14521 "configure"
14521 #include "confdefs.h"
14522 #include <math.h>
14523 int main() {
14524 _ldexpf(0, 0);
14525 ; return 0; }
14527 if { (eval echo configure:14528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14528 rm -rf conftest*
14529 glibcpp_cv_func__ldexpf_use=yes
14530 else
14531 echo "configure: failed program was:" >&5
14532 cat conftest.$ac_ext >&5
14533 rm -rf conftest*
14534 glibcpp_cv_func__ldexpf_use=no
14536 rm -f conftest*
14537 ac_ext=c
14538 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14539 ac_cpp='$CPP $CPPFLAGS'
14540 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14541 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14542 cross_compiling=$ac_cv_prog_cc_cross
14548 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14550 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14551 for ac_func in _ldexpf
14553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14554 echo "configure:14555: checking for $ac_func" >&5
14555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14556 echo $ac_n "(cached) $ac_c" 1>&6
14557 else
14558 cat > conftest.$ac_ext <<EOF
14559 #line 14560 "configure"
14560 #include "confdefs.h"
14561 /* System header to define __stub macros and hopefully few prototypes,
14562 which can conflict with char $ac_func(); below. */
14563 #include <assert.h>
14564 /* Override any gcc2 internal prototype to avoid an error. */
14565 /* We use char because int might match the return type of a gcc2
14566 builtin and then its argument prototype would still apply. */
14567 char $ac_func();
14569 int main() {
14571 /* The GNU C library defines this for functions which it implements
14572 to always fail with ENOSYS. Some functions are actually named
14573 something starting with __ and the normal name is an alias. */
14574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14575 choke me
14576 #else
14577 $ac_func();
14578 #endif
14580 ; return 0; }
14582 if { (eval echo configure:14583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14583 rm -rf conftest*
14584 eval "ac_cv_func_$ac_func=yes"
14585 else
14586 echo "configure: failed program was:" >&5
14587 cat conftest.$ac_ext >&5
14588 rm -rf conftest*
14589 eval "ac_cv_func_$ac_func=no"
14591 rm -f conftest*
14594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14595 echo "$ac_t""yes" 1>&6
14596 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14597 cat >> confdefs.h <<EOF
14598 #define $ac_tr_func 1
14601 else
14602 echo "$ac_t""no" 1>&6
14604 done
14611 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14612 echo "configure:14613: checking for logf declaration" >&5
14613 if test x${glibcpp_cv_func_logf_use+set} != xset; then
14614 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14615 echo $ac_n "(cached) $ac_c" 1>&6
14616 else
14619 ac_ext=C
14620 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14621 ac_cpp='$CXXCPP $CPPFLAGS'
14622 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14623 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14624 cross_compiling=$ac_cv_prog_cxx_cross
14626 cat > conftest.$ac_ext <<EOF
14627 #line 14628 "configure"
14628 #include "confdefs.h"
14629 #include <math.h>
14630 #ifdef HAVE_IEEEFP_H
14631 #include <ieeefp.h>
14632 #endif
14634 int main() {
14635 logf(0);
14636 ; return 0; }
14638 if { (eval echo configure:14639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14639 rm -rf conftest*
14640 glibcpp_cv_func_logf_use=yes
14641 else
14642 echo "configure: failed program was:" >&5
14643 cat conftest.$ac_ext >&5
14644 rm -rf conftest*
14645 glibcpp_cv_func_logf_use=no
14647 rm -f conftest*
14648 ac_ext=c
14649 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14650 ac_cpp='$CPP $CPPFLAGS'
14651 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14652 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14653 cross_compiling=$ac_cv_prog_cc_cross
14659 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14661 if test x$glibcpp_cv_func_logf_use = x"yes"; then
14662 for ac_func in logf
14664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14665 echo "configure:14666: checking for $ac_func" >&5
14666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14667 echo $ac_n "(cached) $ac_c" 1>&6
14668 else
14669 cat > conftest.$ac_ext <<EOF
14670 #line 14671 "configure"
14671 #include "confdefs.h"
14672 /* System header to define __stub macros and hopefully few prototypes,
14673 which can conflict with char $ac_func(); below. */
14674 #include <assert.h>
14675 /* Override any gcc2 internal prototype to avoid an error. */
14676 /* We use char because int might match the return type of a gcc2
14677 builtin and then its argument prototype would still apply. */
14678 char $ac_func();
14680 int main() {
14682 /* The GNU C library defines this for functions which it implements
14683 to always fail with ENOSYS. Some functions are actually named
14684 something starting with __ and the normal name is an alias. */
14685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14686 choke me
14687 #else
14688 $ac_func();
14689 #endif
14691 ; return 0; }
14693 if { (eval echo configure:14694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14694 rm -rf conftest*
14695 eval "ac_cv_func_$ac_func=yes"
14696 else
14697 echo "configure: failed program was:" >&5
14698 cat conftest.$ac_ext >&5
14699 rm -rf conftest*
14700 eval "ac_cv_func_$ac_func=no"
14702 rm -f conftest*
14705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14706 echo "$ac_t""yes" 1>&6
14707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14708 cat >> confdefs.h <<EOF
14709 #define $ac_tr_func 1
14712 else
14713 echo "$ac_t""no" 1>&6
14715 done
14717 else
14719 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14720 echo "configure:14721: checking for _logf declaration" >&5
14721 if test x${glibcpp_cv_func__logf_use+set} != xset; then
14722 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14723 echo $ac_n "(cached) $ac_c" 1>&6
14724 else
14727 ac_ext=C
14728 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14729 ac_cpp='$CXXCPP $CPPFLAGS'
14730 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14731 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14732 cross_compiling=$ac_cv_prog_cxx_cross
14734 cat > conftest.$ac_ext <<EOF
14735 #line 14736 "configure"
14736 #include "confdefs.h"
14737 #include <math.h>
14738 #ifdef HAVE_IEEEFP_H
14739 #include <ieeefp.h>
14740 #endif
14742 int main() {
14743 _logf(0);
14744 ; return 0; }
14746 if { (eval echo configure:14747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14747 rm -rf conftest*
14748 glibcpp_cv_func__logf_use=yes
14749 else
14750 echo "configure: failed program was:" >&5
14751 cat conftest.$ac_ext >&5
14752 rm -rf conftest*
14753 glibcpp_cv_func__logf_use=no
14755 rm -f conftest*
14756 ac_ext=c
14757 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14758 ac_cpp='$CPP $CPPFLAGS'
14759 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14760 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14761 cross_compiling=$ac_cv_prog_cc_cross
14767 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14769 if test x$glibcpp_cv_func__logf_use = x"yes"; then
14770 for ac_func in _logf
14772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14773 echo "configure:14774: checking for $ac_func" >&5
14774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14775 echo $ac_n "(cached) $ac_c" 1>&6
14776 else
14777 cat > conftest.$ac_ext <<EOF
14778 #line 14779 "configure"
14779 #include "confdefs.h"
14780 /* System header to define __stub macros and hopefully few prototypes,
14781 which can conflict with char $ac_func(); below. */
14782 #include <assert.h>
14783 /* Override any gcc2 internal prototype to avoid an error. */
14784 /* We use char because int might match the return type of a gcc2
14785 builtin and then its argument prototype would still apply. */
14786 char $ac_func();
14788 int main() {
14790 /* The GNU C library defines this for functions which it implements
14791 to always fail with ENOSYS. Some functions are actually named
14792 something starting with __ and the normal name is an alias. */
14793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14794 choke me
14795 #else
14796 $ac_func();
14797 #endif
14799 ; return 0; }
14801 if { (eval echo configure:14802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14802 rm -rf conftest*
14803 eval "ac_cv_func_$ac_func=yes"
14804 else
14805 echo "configure: failed program was:" >&5
14806 cat conftest.$ac_ext >&5
14807 rm -rf conftest*
14808 eval "ac_cv_func_$ac_func=no"
14810 rm -f conftest*
14813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14814 echo "$ac_t""yes" 1>&6
14815 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14816 cat >> confdefs.h <<EOF
14817 #define $ac_tr_func 1
14820 else
14821 echo "$ac_t""no" 1>&6
14823 done
14830 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14831 echo "configure:14832: checking for log10f declaration" >&5
14832 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14833 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14834 echo $ac_n "(cached) $ac_c" 1>&6
14835 else
14838 ac_ext=C
14839 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14840 ac_cpp='$CXXCPP $CPPFLAGS'
14841 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14842 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14843 cross_compiling=$ac_cv_prog_cxx_cross
14845 cat > conftest.$ac_ext <<EOF
14846 #line 14847 "configure"
14847 #include "confdefs.h"
14848 #include <math.h>
14849 #ifdef HAVE_IEEEFP_H
14850 #include <ieeefp.h>
14851 #endif
14853 int main() {
14854 log10f(0);
14855 ; return 0; }
14857 if { (eval echo configure:14858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14858 rm -rf conftest*
14859 glibcpp_cv_func_log10f_use=yes
14860 else
14861 echo "configure: failed program was:" >&5
14862 cat conftest.$ac_ext >&5
14863 rm -rf conftest*
14864 glibcpp_cv_func_log10f_use=no
14866 rm -f conftest*
14867 ac_ext=c
14868 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14869 ac_cpp='$CPP $CPPFLAGS'
14870 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14871 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14872 cross_compiling=$ac_cv_prog_cc_cross
14878 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14880 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14881 for ac_func in log10f
14883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14884 echo "configure:14885: checking for $ac_func" >&5
14885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14886 echo $ac_n "(cached) $ac_c" 1>&6
14887 else
14888 cat > conftest.$ac_ext <<EOF
14889 #line 14890 "configure"
14890 #include "confdefs.h"
14891 /* System header to define __stub macros and hopefully few prototypes,
14892 which can conflict with char $ac_func(); below. */
14893 #include <assert.h>
14894 /* Override any gcc2 internal prototype to avoid an error. */
14895 /* We use char because int might match the return type of a gcc2
14896 builtin and then its argument prototype would still apply. */
14897 char $ac_func();
14899 int main() {
14901 /* The GNU C library defines this for functions which it implements
14902 to always fail with ENOSYS. Some functions are actually named
14903 something starting with __ and the normal name is an alias. */
14904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14905 choke me
14906 #else
14907 $ac_func();
14908 #endif
14910 ; return 0; }
14912 if { (eval echo configure:14913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14913 rm -rf conftest*
14914 eval "ac_cv_func_$ac_func=yes"
14915 else
14916 echo "configure: failed program was:" >&5
14917 cat conftest.$ac_ext >&5
14918 rm -rf conftest*
14919 eval "ac_cv_func_$ac_func=no"
14921 rm -f conftest*
14924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14925 echo "$ac_t""yes" 1>&6
14926 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14927 cat >> confdefs.h <<EOF
14928 #define $ac_tr_func 1
14931 else
14932 echo "$ac_t""no" 1>&6
14934 done
14936 else
14938 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14939 echo "configure:14940: checking for _log10f declaration" >&5
14940 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14941 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14942 echo $ac_n "(cached) $ac_c" 1>&6
14943 else
14946 ac_ext=C
14947 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14948 ac_cpp='$CXXCPP $CPPFLAGS'
14949 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14950 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14951 cross_compiling=$ac_cv_prog_cxx_cross
14953 cat > conftest.$ac_ext <<EOF
14954 #line 14955 "configure"
14955 #include "confdefs.h"
14956 #include <math.h>
14957 #ifdef HAVE_IEEEFP_H
14958 #include <ieeefp.h>
14959 #endif
14961 int main() {
14962 _log10f(0);
14963 ; return 0; }
14965 if { (eval echo configure:14966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14966 rm -rf conftest*
14967 glibcpp_cv_func__log10f_use=yes
14968 else
14969 echo "configure: failed program was:" >&5
14970 cat conftest.$ac_ext >&5
14971 rm -rf conftest*
14972 glibcpp_cv_func__log10f_use=no
14974 rm -f conftest*
14975 ac_ext=c
14976 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14977 ac_cpp='$CPP $CPPFLAGS'
14978 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14979 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14980 cross_compiling=$ac_cv_prog_cc_cross
14986 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14988 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14989 for ac_func in _log10f
14991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14992 echo "configure:14993: checking for $ac_func" >&5
14993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14994 echo $ac_n "(cached) $ac_c" 1>&6
14995 else
14996 cat > conftest.$ac_ext <<EOF
14997 #line 14998 "configure"
14998 #include "confdefs.h"
14999 /* System header to define __stub macros and hopefully few prototypes,
15000 which can conflict with char $ac_func(); below. */
15001 #include <assert.h>
15002 /* Override any gcc2 internal prototype to avoid an error. */
15003 /* We use char because int might match the return type of a gcc2
15004 builtin and then its argument prototype would still apply. */
15005 char $ac_func();
15007 int main() {
15009 /* The GNU C library defines this for functions which it implements
15010 to always fail with ENOSYS. Some functions are actually named
15011 something starting with __ and the normal name is an alias. */
15012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15013 choke me
15014 #else
15015 $ac_func();
15016 #endif
15018 ; return 0; }
15020 if { (eval echo configure:15021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15021 rm -rf conftest*
15022 eval "ac_cv_func_$ac_func=yes"
15023 else
15024 echo "configure: failed program was:" >&5
15025 cat conftest.$ac_ext >&5
15026 rm -rf conftest*
15027 eval "ac_cv_func_$ac_func=no"
15029 rm -f conftest*
15032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15033 echo "$ac_t""yes" 1>&6
15034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15035 cat >> confdefs.h <<EOF
15036 #define $ac_tr_func 1
15039 else
15040 echo "$ac_t""no" 1>&6
15042 done
15049 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15050 echo "configure:15051: checking for modff declaration" >&5
15051 if test x${glibcpp_cv_func_modff_use+set} != xset; then
15052 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15053 echo $ac_n "(cached) $ac_c" 1>&6
15054 else
15057 ac_ext=C
15058 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15059 ac_cpp='$CXXCPP $CPPFLAGS'
15060 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15061 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15062 cross_compiling=$ac_cv_prog_cxx_cross
15064 cat > conftest.$ac_ext <<EOF
15065 #line 15066 "configure"
15066 #include "confdefs.h"
15067 #include <math.h>
15068 int main() {
15069 modff(0, 0);
15070 ; return 0; }
15072 if { (eval echo configure:15073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15073 rm -rf conftest*
15074 glibcpp_cv_func_modff_use=yes
15075 else
15076 echo "configure: failed program was:" >&5
15077 cat conftest.$ac_ext >&5
15078 rm -rf conftest*
15079 glibcpp_cv_func_modff_use=no
15081 rm -f conftest*
15082 ac_ext=c
15083 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15084 ac_cpp='$CPP $CPPFLAGS'
15085 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15086 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15087 cross_compiling=$ac_cv_prog_cc_cross
15093 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15095 if test x$glibcpp_cv_func_modff_use = x"yes"; then
15096 for ac_func in modff
15098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15099 echo "configure:15100: checking for $ac_func" >&5
15100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15101 echo $ac_n "(cached) $ac_c" 1>&6
15102 else
15103 cat > conftest.$ac_ext <<EOF
15104 #line 15105 "configure"
15105 #include "confdefs.h"
15106 /* System header to define __stub macros and hopefully few prototypes,
15107 which can conflict with char $ac_func(); below. */
15108 #include <assert.h>
15109 /* Override any gcc2 internal prototype to avoid an error. */
15110 /* We use char because int might match the return type of a gcc2
15111 builtin and then its argument prototype would still apply. */
15112 char $ac_func();
15114 int main() {
15116 /* The GNU C library defines this for functions which it implements
15117 to always fail with ENOSYS. Some functions are actually named
15118 something starting with __ and the normal name is an alias. */
15119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15120 choke me
15121 #else
15122 $ac_func();
15123 #endif
15125 ; return 0; }
15127 if { (eval echo configure:15128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15128 rm -rf conftest*
15129 eval "ac_cv_func_$ac_func=yes"
15130 else
15131 echo "configure: failed program was:" >&5
15132 cat conftest.$ac_ext >&5
15133 rm -rf conftest*
15134 eval "ac_cv_func_$ac_func=no"
15136 rm -f conftest*
15139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15140 echo "$ac_t""yes" 1>&6
15141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15142 cat >> confdefs.h <<EOF
15143 #define $ac_tr_func 1
15146 else
15147 echo "$ac_t""no" 1>&6
15149 done
15151 else
15153 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15154 echo "configure:15155: checking for _modff declaration" >&5
15155 if test x${glibcpp_cv_func__modff_use+set} != xset; then
15156 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15157 echo $ac_n "(cached) $ac_c" 1>&6
15158 else
15161 ac_ext=C
15162 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15163 ac_cpp='$CXXCPP $CPPFLAGS'
15164 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15165 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15166 cross_compiling=$ac_cv_prog_cxx_cross
15168 cat > conftest.$ac_ext <<EOF
15169 #line 15170 "configure"
15170 #include "confdefs.h"
15171 #include <math.h>
15172 int main() {
15173 _modff(0, 0);
15174 ; return 0; }
15176 if { (eval echo configure:15177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15177 rm -rf conftest*
15178 glibcpp_cv_func__modff_use=yes
15179 else
15180 echo "configure: failed program was:" >&5
15181 cat conftest.$ac_ext >&5
15182 rm -rf conftest*
15183 glibcpp_cv_func__modff_use=no
15185 rm -f conftest*
15186 ac_ext=c
15187 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15188 ac_cpp='$CPP $CPPFLAGS'
15189 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15190 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15191 cross_compiling=$ac_cv_prog_cc_cross
15197 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15199 if test x$glibcpp_cv_func__modff_use = x"yes"; then
15200 for ac_func in _modff
15202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15203 echo "configure:15204: checking for $ac_func" >&5
15204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15205 echo $ac_n "(cached) $ac_c" 1>&6
15206 else
15207 cat > conftest.$ac_ext <<EOF
15208 #line 15209 "configure"
15209 #include "confdefs.h"
15210 /* System header to define __stub macros and hopefully few prototypes,
15211 which can conflict with char $ac_func(); below. */
15212 #include <assert.h>
15213 /* Override any gcc2 internal prototype to avoid an error. */
15214 /* We use char because int might match the return type of a gcc2
15215 builtin and then its argument prototype would still apply. */
15216 char $ac_func();
15218 int main() {
15220 /* The GNU C library defines this for functions which it implements
15221 to always fail with ENOSYS. Some functions are actually named
15222 something starting with __ and the normal name is an alias. */
15223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15224 choke me
15225 #else
15226 $ac_func();
15227 #endif
15229 ; return 0; }
15231 if { (eval echo configure:15232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15232 rm -rf conftest*
15233 eval "ac_cv_func_$ac_func=yes"
15234 else
15235 echo "configure: failed program was:" >&5
15236 cat conftest.$ac_ext >&5
15237 rm -rf conftest*
15238 eval "ac_cv_func_$ac_func=no"
15240 rm -f conftest*
15243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15244 echo "$ac_t""yes" 1>&6
15245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15246 cat >> confdefs.h <<EOF
15247 #define $ac_tr_func 1
15250 else
15251 echo "$ac_t""no" 1>&6
15253 done
15260 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15261 echo "configure:15262: checking for powf declaration" >&5
15262 if test x${glibcpp_cv_func_powf_use+set} != xset; then
15263 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15264 echo $ac_n "(cached) $ac_c" 1>&6
15265 else
15268 ac_ext=C
15269 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15270 ac_cpp='$CXXCPP $CPPFLAGS'
15271 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15272 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15273 cross_compiling=$ac_cv_prog_cxx_cross
15275 cat > conftest.$ac_ext <<EOF
15276 #line 15277 "configure"
15277 #include "confdefs.h"
15278 #include <math.h>
15279 int main() {
15280 powf(0, 0);
15281 ; return 0; }
15283 if { (eval echo configure:15284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15284 rm -rf conftest*
15285 glibcpp_cv_func_powf_use=yes
15286 else
15287 echo "configure: failed program was:" >&5
15288 cat conftest.$ac_ext >&5
15289 rm -rf conftest*
15290 glibcpp_cv_func_powf_use=no
15292 rm -f conftest*
15293 ac_ext=c
15294 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15295 ac_cpp='$CPP $CPPFLAGS'
15296 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15297 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15298 cross_compiling=$ac_cv_prog_cc_cross
15304 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15306 if test x$glibcpp_cv_func_powf_use = x"yes"; then
15307 for ac_func in powf
15309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15310 echo "configure:15311: checking for $ac_func" >&5
15311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15312 echo $ac_n "(cached) $ac_c" 1>&6
15313 else
15314 cat > conftest.$ac_ext <<EOF
15315 #line 15316 "configure"
15316 #include "confdefs.h"
15317 /* System header to define __stub macros and hopefully few prototypes,
15318 which can conflict with char $ac_func(); below. */
15319 #include <assert.h>
15320 /* Override any gcc2 internal prototype to avoid an error. */
15321 /* We use char because int might match the return type of a gcc2
15322 builtin and then its argument prototype would still apply. */
15323 char $ac_func();
15325 int main() {
15327 /* The GNU C library defines this for functions which it implements
15328 to always fail with ENOSYS. Some functions are actually named
15329 something starting with __ and the normal name is an alias. */
15330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15331 choke me
15332 #else
15333 $ac_func();
15334 #endif
15336 ; return 0; }
15338 if { (eval echo configure:15339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15339 rm -rf conftest*
15340 eval "ac_cv_func_$ac_func=yes"
15341 else
15342 echo "configure: failed program was:" >&5
15343 cat conftest.$ac_ext >&5
15344 rm -rf conftest*
15345 eval "ac_cv_func_$ac_func=no"
15347 rm -f conftest*
15350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15351 echo "$ac_t""yes" 1>&6
15352 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15353 cat >> confdefs.h <<EOF
15354 #define $ac_tr_func 1
15357 else
15358 echo "$ac_t""no" 1>&6
15360 done
15362 else
15364 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15365 echo "configure:15366: checking for _powf declaration" >&5
15366 if test x${glibcpp_cv_func__powf_use+set} != xset; then
15367 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15368 echo $ac_n "(cached) $ac_c" 1>&6
15369 else
15372 ac_ext=C
15373 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15374 ac_cpp='$CXXCPP $CPPFLAGS'
15375 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15376 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15377 cross_compiling=$ac_cv_prog_cxx_cross
15379 cat > conftest.$ac_ext <<EOF
15380 #line 15381 "configure"
15381 #include "confdefs.h"
15382 #include <math.h>
15383 int main() {
15384 _powf(0, 0);
15385 ; return 0; }
15387 if { (eval echo configure:15388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15388 rm -rf conftest*
15389 glibcpp_cv_func__powf_use=yes
15390 else
15391 echo "configure: failed program was:" >&5
15392 cat conftest.$ac_ext >&5
15393 rm -rf conftest*
15394 glibcpp_cv_func__powf_use=no
15396 rm -f conftest*
15397 ac_ext=c
15398 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15399 ac_cpp='$CPP $CPPFLAGS'
15400 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15401 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15402 cross_compiling=$ac_cv_prog_cc_cross
15408 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15410 if test x$glibcpp_cv_func__powf_use = x"yes"; then
15411 for ac_func in _powf
15413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15414 echo "configure:15415: checking for $ac_func" >&5
15415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15416 echo $ac_n "(cached) $ac_c" 1>&6
15417 else
15418 cat > conftest.$ac_ext <<EOF
15419 #line 15420 "configure"
15420 #include "confdefs.h"
15421 /* System header to define __stub macros and hopefully few prototypes,
15422 which can conflict with char $ac_func(); below. */
15423 #include <assert.h>
15424 /* Override any gcc2 internal prototype to avoid an error. */
15425 /* We use char because int might match the return type of a gcc2
15426 builtin and then its argument prototype would still apply. */
15427 char $ac_func();
15429 int main() {
15431 /* The GNU C library defines this for functions which it implements
15432 to always fail with ENOSYS. Some functions are actually named
15433 something starting with __ and the normal name is an alias. */
15434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15435 choke me
15436 #else
15437 $ac_func();
15438 #endif
15440 ; return 0; }
15442 if { (eval echo configure:15443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15443 rm -rf conftest*
15444 eval "ac_cv_func_$ac_func=yes"
15445 else
15446 echo "configure: failed program was:" >&5
15447 cat conftest.$ac_ext >&5
15448 rm -rf conftest*
15449 eval "ac_cv_func_$ac_func=no"
15451 rm -f conftest*
15454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15455 echo "$ac_t""yes" 1>&6
15456 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15457 cat >> confdefs.h <<EOF
15458 #define $ac_tr_func 1
15461 else
15462 echo "$ac_t""no" 1>&6
15464 done
15471 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15472 echo "configure:15473: checking for sqrtf declaration" >&5
15473 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15474 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15475 echo $ac_n "(cached) $ac_c" 1>&6
15476 else
15479 ac_ext=C
15480 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15481 ac_cpp='$CXXCPP $CPPFLAGS'
15482 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15483 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15484 cross_compiling=$ac_cv_prog_cxx_cross
15486 cat > conftest.$ac_ext <<EOF
15487 #line 15488 "configure"
15488 #include "confdefs.h"
15489 #include <math.h>
15490 #ifdef HAVE_IEEEFP_H
15491 #include <ieeefp.h>
15492 #endif
15494 int main() {
15495 sqrtf(0);
15496 ; return 0; }
15498 if { (eval echo configure:15499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15499 rm -rf conftest*
15500 glibcpp_cv_func_sqrtf_use=yes
15501 else
15502 echo "configure: failed program was:" >&5
15503 cat conftest.$ac_ext >&5
15504 rm -rf conftest*
15505 glibcpp_cv_func_sqrtf_use=no
15507 rm -f conftest*
15508 ac_ext=c
15509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15510 ac_cpp='$CPP $CPPFLAGS'
15511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15513 cross_compiling=$ac_cv_prog_cc_cross
15519 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15521 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15522 for ac_func in sqrtf
15524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15525 echo "configure:15526: checking for $ac_func" >&5
15526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15527 echo $ac_n "(cached) $ac_c" 1>&6
15528 else
15529 cat > conftest.$ac_ext <<EOF
15530 #line 15531 "configure"
15531 #include "confdefs.h"
15532 /* System header to define __stub macros and hopefully few prototypes,
15533 which can conflict with char $ac_func(); below. */
15534 #include <assert.h>
15535 /* Override any gcc2 internal prototype to avoid an error. */
15536 /* We use char because int might match the return type of a gcc2
15537 builtin and then its argument prototype would still apply. */
15538 char $ac_func();
15540 int main() {
15542 /* The GNU C library defines this for functions which it implements
15543 to always fail with ENOSYS. Some functions are actually named
15544 something starting with __ and the normal name is an alias. */
15545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15546 choke me
15547 #else
15548 $ac_func();
15549 #endif
15551 ; return 0; }
15553 if { (eval echo configure:15554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15554 rm -rf conftest*
15555 eval "ac_cv_func_$ac_func=yes"
15556 else
15557 echo "configure: failed program was:" >&5
15558 cat conftest.$ac_ext >&5
15559 rm -rf conftest*
15560 eval "ac_cv_func_$ac_func=no"
15562 rm -f conftest*
15565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15566 echo "$ac_t""yes" 1>&6
15567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15568 cat >> confdefs.h <<EOF
15569 #define $ac_tr_func 1
15572 else
15573 echo "$ac_t""no" 1>&6
15575 done
15577 else
15579 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15580 echo "configure:15581: checking for _sqrtf declaration" >&5
15581 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15582 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15583 echo $ac_n "(cached) $ac_c" 1>&6
15584 else
15587 ac_ext=C
15588 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15589 ac_cpp='$CXXCPP $CPPFLAGS'
15590 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15591 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15592 cross_compiling=$ac_cv_prog_cxx_cross
15594 cat > conftest.$ac_ext <<EOF
15595 #line 15596 "configure"
15596 #include "confdefs.h"
15597 #include <math.h>
15598 #ifdef HAVE_IEEEFP_H
15599 #include <ieeefp.h>
15600 #endif
15602 int main() {
15603 _sqrtf(0);
15604 ; return 0; }
15606 if { (eval echo configure:15607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15607 rm -rf conftest*
15608 glibcpp_cv_func__sqrtf_use=yes
15609 else
15610 echo "configure: failed program was:" >&5
15611 cat conftest.$ac_ext >&5
15612 rm -rf conftest*
15613 glibcpp_cv_func__sqrtf_use=no
15615 rm -f conftest*
15616 ac_ext=c
15617 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15618 ac_cpp='$CPP $CPPFLAGS'
15619 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15620 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15621 cross_compiling=$ac_cv_prog_cc_cross
15627 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15629 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15630 for ac_func in _sqrtf
15632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15633 echo "configure:15634: checking for $ac_func" >&5
15634 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15635 echo $ac_n "(cached) $ac_c" 1>&6
15636 else
15637 cat > conftest.$ac_ext <<EOF
15638 #line 15639 "configure"
15639 #include "confdefs.h"
15640 /* System header to define __stub macros and hopefully few prototypes,
15641 which can conflict with char $ac_func(); below. */
15642 #include <assert.h>
15643 /* Override any gcc2 internal prototype to avoid an error. */
15644 /* We use char because int might match the return type of a gcc2
15645 builtin and then its argument prototype would still apply. */
15646 char $ac_func();
15648 int main() {
15650 /* The GNU C library defines this for functions which it implements
15651 to always fail with ENOSYS. Some functions are actually named
15652 something starting with __ and the normal name is an alias. */
15653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15654 choke me
15655 #else
15656 $ac_func();
15657 #endif
15659 ; return 0; }
15661 if { (eval echo configure:15662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15662 rm -rf conftest*
15663 eval "ac_cv_func_$ac_func=yes"
15664 else
15665 echo "configure: failed program was:" >&5
15666 cat conftest.$ac_ext >&5
15667 rm -rf conftest*
15668 eval "ac_cv_func_$ac_func=no"
15670 rm -f conftest*
15673 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15674 echo "$ac_t""yes" 1>&6
15675 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15676 cat >> confdefs.h <<EOF
15677 #define $ac_tr_func 1
15680 else
15681 echo "$ac_t""no" 1>&6
15683 done
15690 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15691 echo "configure:15692: checking for sincosf declaration" >&5
15692 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15693 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15694 echo $ac_n "(cached) $ac_c" 1>&6
15695 else
15698 ac_ext=C
15699 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15700 ac_cpp='$CXXCPP $CPPFLAGS'
15701 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15702 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15703 cross_compiling=$ac_cv_prog_cxx_cross
15705 cat > conftest.$ac_ext <<EOF
15706 #line 15707 "configure"
15707 #include "confdefs.h"
15708 #include <math.h>
15709 int main() {
15710 sincosf(0, 0, 0);
15711 ; return 0; }
15713 if { (eval echo configure:15714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15714 rm -rf conftest*
15715 glibcpp_cv_func_sincosf_use=yes
15716 else
15717 echo "configure: failed program was:" >&5
15718 cat conftest.$ac_ext >&5
15719 rm -rf conftest*
15720 glibcpp_cv_func_sincosf_use=no
15722 rm -f conftest*
15723 ac_ext=c
15724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15725 ac_cpp='$CPP $CPPFLAGS'
15726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15728 cross_compiling=$ac_cv_prog_cc_cross
15734 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15736 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15737 for ac_func in sincosf
15739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15740 echo "configure:15741: checking for $ac_func" >&5
15741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15742 echo $ac_n "(cached) $ac_c" 1>&6
15743 else
15744 cat > conftest.$ac_ext <<EOF
15745 #line 15746 "configure"
15746 #include "confdefs.h"
15747 /* System header to define __stub macros and hopefully few prototypes,
15748 which can conflict with char $ac_func(); below. */
15749 #include <assert.h>
15750 /* Override any gcc2 internal prototype to avoid an error. */
15751 /* We use char because int might match the return type of a gcc2
15752 builtin and then its argument prototype would still apply. */
15753 char $ac_func();
15755 int main() {
15757 /* The GNU C library defines this for functions which it implements
15758 to always fail with ENOSYS. Some functions are actually named
15759 something starting with __ and the normal name is an alias. */
15760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15761 choke me
15762 #else
15763 $ac_func();
15764 #endif
15766 ; return 0; }
15768 if { (eval echo configure:15769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15769 rm -rf conftest*
15770 eval "ac_cv_func_$ac_func=yes"
15771 else
15772 echo "configure: failed program was:" >&5
15773 cat conftest.$ac_ext >&5
15774 rm -rf conftest*
15775 eval "ac_cv_func_$ac_func=no"
15777 rm -f conftest*
15780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15781 echo "$ac_t""yes" 1>&6
15782 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15783 cat >> confdefs.h <<EOF
15784 #define $ac_tr_func 1
15787 else
15788 echo "$ac_t""no" 1>&6
15790 done
15792 else
15794 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15795 echo "configure:15796: checking for _sincosf declaration" >&5
15796 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15797 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15798 echo $ac_n "(cached) $ac_c" 1>&6
15799 else
15802 ac_ext=C
15803 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15804 ac_cpp='$CXXCPP $CPPFLAGS'
15805 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15806 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15807 cross_compiling=$ac_cv_prog_cxx_cross
15809 cat > conftest.$ac_ext <<EOF
15810 #line 15811 "configure"
15811 #include "confdefs.h"
15812 #include <math.h>
15813 int main() {
15814 _sincosf(0, 0, 0);
15815 ; return 0; }
15817 if { (eval echo configure:15818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15818 rm -rf conftest*
15819 glibcpp_cv_func__sincosf_use=yes
15820 else
15821 echo "configure: failed program was:" >&5
15822 cat conftest.$ac_ext >&5
15823 rm -rf conftest*
15824 glibcpp_cv_func__sincosf_use=no
15826 rm -f conftest*
15827 ac_ext=c
15828 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15829 ac_cpp='$CPP $CPPFLAGS'
15830 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15831 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15832 cross_compiling=$ac_cv_prog_cc_cross
15838 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15840 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15841 for ac_func in _sincosf
15843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15844 echo "configure:15845: checking for $ac_func" >&5
15845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15846 echo $ac_n "(cached) $ac_c" 1>&6
15847 else
15848 cat > conftest.$ac_ext <<EOF
15849 #line 15850 "configure"
15850 #include "confdefs.h"
15851 /* System header to define __stub macros and hopefully few prototypes,
15852 which can conflict with char $ac_func(); below. */
15853 #include <assert.h>
15854 /* Override any gcc2 internal prototype to avoid an error. */
15855 /* We use char because int might match the return type of a gcc2
15856 builtin and then its argument prototype would still apply. */
15857 char $ac_func();
15859 int main() {
15861 /* The GNU C library defines this for functions which it implements
15862 to always fail with ENOSYS. Some functions are actually named
15863 something starting with __ and the normal name is an alias. */
15864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15865 choke me
15866 #else
15867 $ac_func();
15868 #endif
15870 ; return 0; }
15872 if { (eval echo configure:15873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15873 rm -rf conftest*
15874 eval "ac_cv_func_$ac_func=yes"
15875 else
15876 echo "configure: failed program was:" >&5
15877 cat conftest.$ac_ext >&5
15878 rm -rf conftest*
15879 eval "ac_cv_func_$ac_func=no"
15881 rm -f conftest*
15884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15885 echo "$ac_t""yes" 1>&6
15886 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15887 cat >> confdefs.h <<EOF
15888 #define $ac_tr_func 1
15891 else
15892 echo "$ac_t""no" 1>&6
15894 done
15901 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15902 echo "configure:15903: checking for finitef declaration" >&5
15903 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15904 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15905 echo $ac_n "(cached) $ac_c" 1>&6
15906 else
15909 ac_ext=C
15910 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15911 ac_cpp='$CXXCPP $CPPFLAGS'
15912 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15913 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15914 cross_compiling=$ac_cv_prog_cxx_cross
15916 cat > conftest.$ac_ext <<EOF
15917 #line 15918 "configure"
15918 #include "confdefs.h"
15919 #include <math.h>
15920 #ifdef HAVE_IEEEFP_H
15921 #include <ieeefp.h>
15922 #endif
15924 int main() {
15925 finitef(0);
15926 ; return 0; }
15928 if { (eval echo configure:15929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15929 rm -rf conftest*
15930 glibcpp_cv_func_finitef_use=yes
15931 else
15932 echo "configure: failed program was:" >&5
15933 cat conftest.$ac_ext >&5
15934 rm -rf conftest*
15935 glibcpp_cv_func_finitef_use=no
15937 rm -f conftest*
15938 ac_ext=c
15939 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15940 ac_cpp='$CPP $CPPFLAGS'
15941 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15942 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15943 cross_compiling=$ac_cv_prog_cc_cross
15949 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15951 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15952 for ac_func in finitef
15954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15955 echo "configure:15956: checking for $ac_func" >&5
15956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15957 echo $ac_n "(cached) $ac_c" 1>&6
15958 else
15959 cat > conftest.$ac_ext <<EOF
15960 #line 15961 "configure"
15961 #include "confdefs.h"
15962 /* System header to define __stub macros and hopefully few prototypes,
15963 which can conflict with char $ac_func(); below. */
15964 #include <assert.h>
15965 /* Override any gcc2 internal prototype to avoid an error. */
15966 /* We use char because int might match the return type of a gcc2
15967 builtin and then its argument prototype would still apply. */
15968 char $ac_func();
15970 int main() {
15972 /* The GNU C library defines this for functions which it implements
15973 to always fail with ENOSYS. Some functions are actually named
15974 something starting with __ and the normal name is an alias. */
15975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15976 choke me
15977 #else
15978 $ac_func();
15979 #endif
15981 ; return 0; }
15983 if { (eval echo configure:15984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15984 rm -rf conftest*
15985 eval "ac_cv_func_$ac_func=yes"
15986 else
15987 echo "configure: failed program was:" >&5
15988 cat conftest.$ac_ext >&5
15989 rm -rf conftest*
15990 eval "ac_cv_func_$ac_func=no"
15992 rm -f conftest*
15995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15996 echo "$ac_t""yes" 1>&6
15997 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15998 cat >> confdefs.h <<EOF
15999 #define $ac_tr_func 1
16002 else
16003 echo "$ac_t""no" 1>&6
16005 done
16007 else
16009 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
16010 echo "configure:16011: checking for _finitef declaration" >&5
16011 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
16012 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
16013 echo $ac_n "(cached) $ac_c" 1>&6
16014 else
16017 ac_ext=C
16018 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16019 ac_cpp='$CXXCPP $CPPFLAGS'
16020 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16021 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16022 cross_compiling=$ac_cv_prog_cxx_cross
16024 cat > conftest.$ac_ext <<EOF
16025 #line 16026 "configure"
16026 #include "confdefs.h"
16027 #include <math.h>
16028 #ifdef HAVE_IEEEFP_H
16029 #include <ieeefp.h>
16030 #endif
16032 int main() {
16033 _finitef(0);
16034 ; return 0; }
16036 if { (eval echo configure:16037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16037 rm -rf conftest*
16038 glibcpp_cv_func__finitef_use=yes
16039 else
16040 echo "configure: failed program was:" >&5
16041 cat conftest.$ac_ext >&5
16042 rm -rf conftest*
16043 glibcpp_cv_func__finitef_use=no
16045 rm -f conftest*
16046 ac_ext=c
16047 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16048 ac_cpp='$CPP $CPPFLAGS'
16049 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16050 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16051 cross_compiling=$ac_cv_prog_cc_cross
16057 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16059 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16060 for ac_func in _finitef
16062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16063 echo "configure:16064: checking for $ac_func" >&5
16064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16065 echo $ac_n "(cached) $ac_c" 1>&6
16066 else
16067 cat > conftest.$ac_ext <<EOF
16068 #line 16069 "configure"
16069 #include "confdefs.h"
16070 /* System header to define __stub macros and hopefully few prototypes,
16071 which can conflict with char $ac_func(); below. */
16072 #include <assert.h>
16073 /* Override any gcc2 internal prototype to avoid an error. */
16074 /* We use char because int might match the return type of a gcc2
16075 builtin and then its argument prototype would still apply. */
16076 char $ac_func();
16078 int main() {
16080 /* The GNU C library defines this for functions which it implements
16081 to always fail with ENOSYS. Some functions are actually named
16082 something starting with __ and the normal name is an alias. */
16083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16084 choke me
16085 #else
16086 $ac_func();
16087 #endif
16089 ; return 0; }
16091 if { (eval echo configure:16092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16092 rm -rf conftest*
16093 eval "ac_cv_func_$ac_func=yes"
16094 else
16095 echo "configure: failed program was:" >&5
16096 cat conftest.$ac_ext >&5
16097 rm -rf conftest*
16098 eval "ac_cv_func_$ac_func=no"
16100 rm -f conftest*
16103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16104 echo "$ac_t""yes" 1>&6
16105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16106 cat >> confdefs.h <<EOF
16107 #define $ac_tr_func 1
16110 else
16111 echo "$ac_t""no" 1>&6
16113 done
16120 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16121 echo "configure:16122: checking for long double trig functions" >&5
16122 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16123 echo $ac_n "(cached) $ac_c" 1>&6
16124 else
16127 ac_ext=C
16128 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16129 ac_cpp='$CXXCPP $CPPFLAGS'
16130 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16131 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16132 cross_compiling=$ac_cv_prog_cxx_cross
16134 cat > conftest.$ac_ext <<EOF
16135 #line 16136 "configure"
16136 #include "confdefs.h"
16137 #include <math.h>
16138 int main() {
16139 `for x in acosl asinl atanl \
16140 cosl sinl tanl \
16141 coshl sinhl tanhl; do echo "$x (0);"; done`
16142 ; return 0; }
16144 if { (eval echo configure:16145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16145 rm -rf conftest*
16146 glibcpp_cv_func_long_double_trig_use=yes
16147 else
16148 echo "configure: failed program was:" >&5
16149 cat conftest.$ac_ext >&5
16150 rm -rf conftest*
16151 glibcpp_cv_func_long_double_trig_use=no
16153 rm -f conftest*
16154 ac_ext=c
16155 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16156 ac_cpp='$CPP $CPPFLAGS'
16157 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16158 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16159 cross_compiling=$ac_cv_prog_cc_cross
16163 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16164 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16165 for ac_func in acosl asinl atanl \
16166 cosl sinl tanl \
16167 coshl sinhl tanhl
16169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16170 echo "configure:16171: checking for $ac_func" >&5
16171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16172 echo $ac_n "(cached) $ac_c" 1>&6
16173 else
16174 cat > conftest.$ac_ext <<EOF
16175 #line 16176 "configure"
16176 #include "confdefs.h"
16177 /* System header to define __stub macros and hopefully few prototypes,
16178 which can conflict with char $ac_func(); below. */
16179 #include <assert.h>
16180 /* Override any gcc2 internal prototype to avoid an error. */
16181 /* We use char because int might match the return type of a gcc2
16182 builtin and then its argument prototype would still apply. */
16183 char $ac_func();
16185 int main() {
16187 /* The GNU C library defines this for functions which it implements
16188 to always fail with ENOSYS. Some functions are actually named
16189 something starting with __ and the normal name is an alias. */
16190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16191 choke me
16192 #else
16193 $ac_func();
16194 #endif
16196 ; return 0; }
16198 if { (eval echo configure:16199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16199 rm -rf conftest*
16200 eval "ac_cv_func_$ac_func=yes"
16201 else
16202 echo "configure: failed program was:" >&5
16203 cat conftest.$ac_ext >&5
16204 rm -rf conftest*
16205 eval "ac_cv_func_$ac_func=no"
16207 rm -f conftest*
16210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16211 echo "$ac_t""yes" 1>&6
16212 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16213 cat >> confdefs.h <<EOF
16214 #define $ac_tr_func 1
16217 else
16218 echo "$ac_t""no" 1>&6
16220 done
16225 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16226 echo "configure:16227: checking for long double round functions" >&5
16227 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16228 echo $ac_n "(cached) $ac_c" 1>&6
16229 else
16232 ac_ext=C
16233 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16234 ac_cpp='$CXXCPP $CPPFLAGS'
16235 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16236 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16237 cross_compiling=$ac_cv_prog_cxx_cross
16239 cat > conftest.$ac_ext <<EOF
16240 #line 16241 "configure"
16241 #include "confdefs.h"
16242 #include <math.h>
16243 int main() {
16244 `for x in ceill floorl; do echo "$x (0);"; done`
16245 ; return 0; }
16247 if { (eval echo configure:16248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16248 rm -rf conftest*
16249 glibcpp_cv_func_long_double_round_use=yes
16250 else
16251 echo "configure: failed program was:" >&5
16252 cat conftest.$ac_ext >&5
16253 rm -rf conftest*
16254 glibcpp_cv_func_long_double_round_use=no
16256 rm -f conftest*
16257 ac_ext=c
16258 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16259 ac_cpp='$CPP $CPPFLAGS'
16260 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16261 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16262 cross_compiling=$ac_cv_prog_cc_cross
16266 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16267 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16268 for ac_func in ceill floorl
16270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16271 echo "configure:16272: checking for $ac_func" >&5
16272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16273 echo $ac_n "(cached) $ac_c" 1>&6
16274 else
16275 cat > conftest.$ac_ext <<EOF
16276 #line 16277 "configure"
16277 #include "confdefs.h"
16278 /* System header to define __stub macros and hopefully few prototypes,
16279 which can conflict with char $ac_func(); below. */
16280 #include <assert.h>
16281 /* Override any gcc2 internal prototype to avoid an error. */
16282 /* We use char because int might match the return type of a gcc2
16283 builtin and then its argument prototype would still apply. */
16284 char $ac_func();
16286 int main() {
16288 /* The GNU C library defines this for functions which it implements
16289 to always fail with ENOSYS. Some functions are actually named
16290 something starting with __ and the normal name is an alias. */
16291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16292 choke me
16293 #else
16294 $ac_func();
16295 #endif
16297 ; return 0; }
16299 if { (eval echo configure:16300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16300 rm -rf conftest*
16301 eval "ac_cv_func_$ac_func=yes"
16302 else
16303 echo "configure: failed program was:" >&5
16304 cat conftest.$ac_ext >&5
16305 rm -rf conftest*
16306 eval "ac_cv_func_$ac_func=no"
16308 rm -f conftest*
16311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16312 echo "$ac_t""yes" 1>&6
16313 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16314 cat >> confdefs.h <<EOF
16315 #define $ac_tr_func 1
16318 else
16319 echo "$ac_t""no" 1>&6
16321 done
16327 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16328 echo "configure:16329: checking for isnanl declaration" >&5
16329 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16330 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16331 echo $ac_n "(cached) $ac_c" 1>&6
16332 else
16335 ac_ext=C
16336 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16337 ac_cpp='$CXXCPP $CPPFLAGS'
16338 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16339 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16340 cross_compiling=$ac_cv_prog_cxx_cross
16342 cat > conftest.$ac_ext <<EOF
16343 #line 16344 "configure"
16344 #include "confdefs.h"
16345 #include <math.h>
16346 #ifdef HAVE_IEEEFP_H
16347 #include <ieeefp.h>
16348 #endif
16350 int main() {
16351 isnanl(0);
16352 ; return 0; }
16354 if { (eval echo configure:16355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16355 rm -rf conftest*
16356 glibcpp_cv_func_isnanl_use=yes
16357 else
16358 echo "configure: failed program was:" >&5
16359 cat conftest.$ac_ext >&5
16360 rm -rf conftest*
16361 glibcpp_cv_func_isnanl_use=no
16363 rm -f conftest*
16364 ac_ext=c
16365 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16366 ac_cpp='$CPP $CPPFLAGS'
16367 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16368 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16369 cross_compiling=$ac_cv_prog_cc_cross
16375 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16377 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16378 for ac_func in isnanl
16380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16381 echo "configure:16382: checking for $ac_func" >&5
16382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16383 echo $ac_n "(cached) $ac_c" 1>&6
16384 else
16385 cat > conftest.$ac_ext <<EOF
16386 #line 16387 "configure"
16387 #include "confdefs.h"
16388 /* System header to define __stub macros and hopefully few prototypes,
16389 which can conflict with char $ac_func(); below. */
16390 #include <assert.h>
16391 /* Override any gcc2 internal prototype to avoid an error. */
16392 /* We use char because int might match the return type of a gcc2
16393 builtin and then its argument prototype would still apply. */
16394 char $ac_func();
16396 int main() {
16398 /* The GNU C library defines this for functions which it implements
16399 to always fail with ENOSYS. Some functions are actually named
16400 something starting with __ and the normal name is an alias. */
16401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16402 choke me
16403 #else
16404 $ac_func();
16405 #endif
16407 ; return 0; }
16409 if { (eval echo configure:16410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16410 rm -rf conftest*
16411 eval "ac_cv_func_$ac_func=yes"
16412 else
16413 echo "configure: failed program was:" >&5
16414 cat conftest.$ac_ext >&5
16415 rm -rf conftest*
16416 eval "ac_cv_func_$ac_func=no"
16418 rm -f conftest*
16421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16422 echo "$ac_t""yes" 1>&6
16423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16424 cat >> confdefs.h <<EOF
16425 #define $ac_tr_func 1
16428 else
16429 echo "$ac_t""no" 1>&6
16431 done
16433 else
16435 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16436 echo "configure:16437: checking for _isnanl declaration" >&5
16437 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16438 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16439 echo $ac_n "(cached) $ac_c" 1>&6
16440 else
16443 ac_ext=C
16444 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16445 ac_cpp='$CXXCPP $CPPFLAGS'
16446 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16447 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16448 cross_compiling=$ac_cv_prog_cxx_cross
16450 cat > conftest.$ac_ext <<EOF
16451 #line 16452 "configure"
16452 #include "confdefs.h"
16453 #include <math.h>
16454 #ifdef HAVE_IEEEFP_H
16455 #include <ieeefp.h>
16456 #endif
16458 int main() {
16459 _isnanl(0);
16460 ; return 0; }
16462 if { (eval echo configure:16463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16463 rm -rf conftest*
16464 glibcpp_cv_func__isnanl_use=yes
16465 else
16466 echo "configure: failed program was:" >&5
16467 cat conftest.$ac_ext >&5
16468 rm -rf conftest*
16469 glibcpp_cv_func__isnanl_use=no
16471 rm -f conftest*
16472 ac_ext=c
16473 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16474 ac_cpp='$CPP $CPPFLAGS'
16475 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16476 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16477 cross_compiling=$ac_cv_prog_cc_cross
16483 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16485 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16486 for ac_func in _isnanl
16488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16489 echo "configure:16490: checking for $ac_func" >&5
16490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16491 echo $ac_n "(cached) $ac_c" 1>&6
16492 else
16493 cat > conftest.$ac_ext <<EOF
16494 #line 16495 "configure"
16495 #include "confdefs.h"
16496 /* System header to define __stub macros and hopefully few prototypes,
16497 which can conflict with char $ac_func(); below. */
16498 #include <assert.h>
16499 /* Override any gcc2 internal prototype to avoid an error. */
16500 /* We use char because int might match the return type of a gcc2
16501 builtin and then its argument prototype would still apply. */
16502 char $ac_func();
16504 int main() {
16506 /* The GNU C library defines this for functions which it implements
16507 to always fail with ENOSYS. Some functions are actually named
16508 something starting with __ and the normal name is an alias. */
16509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16510 choke me
16511 #else
16512 $ac_func();
16513 #endif
16515 ; return 0; }
16517 if { (eval echo configure:16518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16518 rm -rf conftest*
16519 eval "ac_cv_func_$ac_func=yes"
16520 else
16521 echo "configure: failed program was:" >&5
16522 cat conftest.$ac_ext >&5
16523 rm -rf conftest*
16524 eval "ac_cv_func_$ac_func=no"
16526 rm -f conftest*
16529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16530 echo "$ac_t""yes" 1>&6
16531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16532 cat >> confdefs.h <<EOF
16533 #define $ac_tr_func 1
16536 else
16537 echo "$ac_t""no" 1>&6
16539 done
16546 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16547 echo "configure:16548: checking for isinfl declaration" >&5
16548 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16549 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16550 echo $ac_n "(cached) $ac_c" 1>&6
16551 else
16554 ac_ext=C
16555 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16556 ac_cpp='$CXXCPP $CPPFLAGS'
16557 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16558 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16559 cross_compiling=$ac_cv_prog_cxx_cross
16561 cat > conftest.$ac_ext <<EOF
16562 #line 16563 "configure"
16563 #include "confdefs.h"
16564 #include <math.h>
16565 #ifdef HAVE_IEEEFP_H
16566 #include <ieeefp.h>
16567 #endif
16569 int main() {
16570 isinfl(0);
16571 ; return 0; }
16573 if { (eval echo configure:16574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16574 rm -rf conftest*
16575 glibcpp_cv_func_isinfl_use=yes
16576 else
16577 echo "configure: failed program was:" >&5
16578 cat conftest.$ac_ext >&5
16579 rm -rf conftest*
16580 glibcpp_cv_func_isinfl_use=no
16582 rm -f conftest*
16583 ac_ext=c
16584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16585 ac_cpp='$CPP $CPPFLAGS'
16586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16588 cross_compiling=$ac_cv_prog_cc_cross
16594 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16596 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16597 for ac_func in isinfl
16599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16600 echo "configure:16601: checking for $ac_func" >&5
16601 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16602 echo $ac_n "(cached) $ac_c" 1>&6
16603 else
16604 cat > conftest.$ac_ext <<EOF
16605 #line 16606 "configure"
16606 #include "confdefs.h"
16607 /* System header to define __stub macros and hopefully few prototypes,
16608 which can conflict with char $ac_func(); below. */
16609 #include <assert.h>
16610 /* Override any gcc2 internal prototype to avoid an error. */
16611 /* We use char because int might match the return type of a gcc2
16612 builtin and then its argument prototype would still apply. */
16613 char $ac_func();
16615 int main() {
16617 /* The GNU C library defines this for functions which it implements
16618 to always fail with ENOSYS. Some functions are actually named
16619 something starting with __ and the normal name is an alias. */
16620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16621 choke me
16622 #else
16623 $ac_func();
16624 #endif
16626 ; return 0; }
16628 if { (eval echo configure:16629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16629 rm -rf conftest*
16630 eval "ac_cv_func_$ac_func=yes"
16631 else
16632 echo "configure: failed program was:" >&5
16633 cat conftest.$ac_ext >&5
16634 rm -rf conftest*
16635 eval "ac_cv_func_$ac_func=no"
16637 rm -f conftest*
16640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16641 echo "$ac_t""yes" 1>&6
16642 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16643 cat >> confdefs.h <<EOF
16644 #define $ac_tr_func 1
16647 else
16648 echo "$ac_t""no" 1>&6
16650 done
16652 else
16654 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16655 echo "configure:16656: checking for _isinfl declaration" >&5
16656 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16657 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16658 echo $ac_n "(cached) $ac_c" 1>&6
16659 else
16662 ac_ext=C
16663 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16664 ac_cpp='$CXXCPP $CPPFLAGS'
16665 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16666 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16667 cross_compiling=$ac_cv_prog_cxx_cross
16669 cat > conftest.$ac_ext <<EOF
16670 #line 16671 "configure"
16671 #include "confdefs.h"
16672 #include <math.h>
16673 #ifdef HAVE_IEEEFP_H
16674 #include <ieeefp.h>
16675 #endif
16677 int main() {
16678 _isinfl(0);
16679 ; return 0; }
16681 if { (eval echo configure:16682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16682 rm -rf conftest*
16683 glibcpp_cv_func__isinfl_use=yes
16684 else
16685 echo "configure: failed program was:" >&5
16686 cat conftest.$ac_ext >&5
16687 rm -rf conftest*
16688 glibcpp_cv_func__isinfl_use=no
16690 rm -f conftest*
16691 ac_ext=c
16692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16693 ac_cpp='$CPP $CPPFLAGS'
16694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16695 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16696 cross_compiling=$ac_cv_prog_cc_cross
16702 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16704 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16705 for ac_func in _isinfl
16707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16708 echo "configure:16709: checking for $ac_func" >&5
16709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16710 echo $ac_n "(cached) $ac_c" 1>&6
16711 else
16712 cat > conftest.$ac_ext <<EOF
16713 #line 16714 "configure"
16714 #include "confdefs.h"
16715 /* System header to define __stub macros and hopefully few prototypes,
16716 which can conflict with char $ac_func(); below. */
16717 #include <assert.h>
16718 /* Override any gcc2 internal prototype to avoid an error. */
16719 /* We use char because int might match the return type of a gcc2
16720 builtin and then its argument prototype would still apply. */
16721 char $ac_func();
16723 int main() {
16725 /* The GNU C library defines this for functions which it implements
16726 to always fail with ENOSYS. Some functions are actually named
16727 something starting with __ and the normal name is an alias. */
16728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16729 choke me
16730 #else
16731 $ac_func();
16732 #endif
16734 ; return 0; }
16736 if { (eval echo configure:16737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16737 rm -rf conftest*
16738 eval "ac_cv_func_$ac_func=yes"
16739 else
16740 echo "configure: failed program was:" >&5
16741 cat conftest.$ac_ext >&5
16742 rm -rf conftest*
16743 eval "ac_cv_func_$ac_func=no"
16745 rm -f conftest*
16748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16749 echo "$ac_t""yes" 1>&6
16750 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16751 cat >> confdefs.h <<EOF
16752 #define $ac_tr_func 1
16755 else
16756 echo "$ac_t""no" 1>&6
16758 done
16765 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16766 echo "configure:16767: checking for copysignl declaration" >&5
16767 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16768 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16769 echo $ac_n "(cached) $ac_c" 1>&6
16770 else
16773 ac_ext=C
16774 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16775 ac_cpp='$CXXCPP $CPPFLAGS'
16776 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16777 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16778 cross_compiling=$ac_cv_prog_cxx_cross
16780 cat > conftest.$ac_ext <<EOF
16781 #line 16782 "configure"
16782 #include "confdefs.h"
16783 #include <math.h>
16784 int main() {
16785 copysignl(0, 0);
16786 ; return 0; }
16788 if { (eval echo configure:16789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16789 rm -rf conftest*
16790 glibcpp_cv_func_copysignl_use=yes
16791 else
16792 echo "configure: failed program was:" >&5
16793 cat conftest.$ac_ext >&5
16794 rm -rf conftest*
16795 glibcpp_cv_func_copysignl_use=no
16797 rm -f conftest*
16798 ac_ext=c
16799 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16800 ac_cpp='$CPP $CPPFLAGS'
16801 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16802 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16803 cross_compiling=$ac_cv_prog_cc_cross
16809 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16811 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16812 for ac_func in copysignl
16814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16815 echo "configure:16816: checking for $ac_func" >&5
16816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16817 echo $ac_n "(cached) $ac_c" 1>&6
16818 else
16819 cat > conftest.$ac_ext <<EOF
16820 #line 16821 "configure"
16821 #include "confdefs.h"
16822 /* System header to define __stub macros and hopefully few prototypes,
16823 which can conflict with char $ac_func(); below. */
16824 #include <assert.h>
16825 /* Override any gcc2 internal prototype to avoid an error. */
16826 /* We use char because int might match the return type of a gcc2
16827 builtin and then its argument prototype would still apply. */
16828 char $ac_func();
16830 int main() {
16832 /* The GNU C library defines this for functions which it implements
16833 to always fail with ENOSYS. Some functions are actually named
16834 something starting with __ and the normal name is an alias. */
16835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16836 choke me
16837 #else
16838 $ac_func();
16839 #endif
16841 ; return 0; }
16843 if { (eval echo configure:16844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16844 rm -rf conftest*
16845 eval "ac_cv_func_$ac_func=yes"
16846 else
16847 echo "configure: failed program was:" >&5
16848 cat conftest.$ac_ext >&5
16849 rm -rf conftest*
16850 eval "ac_cv_func_$ac_func=no"
16852 rm -f conftest*
16855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16856 echo "$ac_t""yes" 1>&6
16857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16858 cat >> confdefs.h <<EOF
16859 #define $ac_tr_func 1
16862 else
16863 echo "$ac_t""no" 1>&6
16865 done
16867 else
16869 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16870 echo "configure:16871: checking for _copysignl declaration" >&5
16871 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16872 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16873 echo $ac_n "(cached) $ac_c" 1>&6
16874 else
16877 ac_ext=C
16878 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16879 ac_cpp='$CXXCPP $CPPFLAGS'
16880 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16881 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16882 cross_compiling=$ac_cv_prog_cxx_cross
16884 cat > conftest.$ac_ext <<EOF
16885 #line 16886 "configure"
16886 #include "confdefs.h"
16887 #include <math.h>
16888 int main() {
16889 _copysignl(0, 0);
16890 ; return 0; }
16892 if { (eval echo configure:16893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16893 rm -rf conftest*
16894 glibcpp_cv_func__copysignl_use=yes
16895 else
16896 echo "configure: failed program was:" >&5
16897 cat conftest.$ac_ext >&5
16898 rm -rf conftest*
16899 glibcpp_cv_func__copysignl_use=no
16901 rm -f conftest*
16902 ac_ext=c
16903 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16904 ac_cpp='$CPP $CPPFLAGS'
16905 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16906 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16907 cross_compiling=$ac_cv_prog_cc_cross
16913 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16915 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16916 for ac_func in _copysignl
16918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16919 echo "configure:16920: checking for $ac_func" >&5
16920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16921 echo $ac_n "(cached) $ac_c" 1>&6
16922 else
16923 cat > conftest.$ac_ext <<EOF
16924 #line 16925 "configure"
16925 #include "confdefs.h"
16926 /* System header to define __stub macros and hopefully few prototypes,
16927 which can conflict with char $ac_func(); below. */
16928 #include <assert.h>
16929 /* Override any gcc2 internal prototype to avoid an error. */
16930 /* We use char because int might match the return type of a gcc2
16931 builtin and then its argument prototype would still apply. */
16932 char $ac_func();
16934 int main() {
16936 /* The GNU C library defines this for functions which it implements
16937 to always fail with ENOSYS. Some functions are actually named
16938 something starting with __ and the normal name is an alias. */
16939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16940 choke me
16941 #else
16942 $ac_func();
16943 #endif
16945 ; return 0; }
16947 if { (eval echo configure:16948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16948 rm -rf conftest*
16949 eval "ac_cv_func_$ac_func=yes"
16950 else
16951 echo "configure: failed program was:" >&5
16952 cat conftest.$ac_ext >&5
16953 rm -rf conftest*
16954 eval "ac_cv_func_$ac_func=no"
16956 rm -f conftest*
16959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16960 echo "$ac_t""yes" 1>&6
16961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16962 cat >> confdefs.h <<EOF
16963 #define $ac_tr_func 1
16966 else
16967 echo "$ac_t""no" 1>&6
16969 done
16976 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16977 echo "configure:16978: checking for atan2l declaration" >&5
16978 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16979 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16980 echo $ac_n "(cached) $ac_c" 1>&6
16981 else
16984 ac_ext=C
16985 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16986 ac_cpp='$CXXCPP $CPPFLAGS'
16987 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16988 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16989 cross_compiling=$ac_cv_prog_cxx_cross
16991 cat > conftest.$ac_ext <<EOF
16992 #line 16993 "configure"
16993 #include "confdefs.h"
16994 #include <math.h>
16995 int main() {
16996 atan2l(0, 0);
16997 ; return 0; }
16999 if { (eval echo configure:17000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17000 rm -rf conftest*
17001 glibcpp_cv_func_atan2l_use=yes
17002 else
17003 echo "configure: failed program was:" >&5
17004 cat conftest.$ac_ext >&5
17005 rm -rf conftest*
17006 glibcpp_cv_func_atan2l_use=no
17008 rm -f conftest*
17009 ac_ext=c
17010 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17011 ac_cpp='$CPP $CPPFLAGS'
17012 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17013 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17014 cross_compiling=$ac_cv_prog_cc_cross
17020 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
17022 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
17023 for ac_func in atan2l
17025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17026 echo "configure:17027: checking for $ac_func" >&5
17027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17028 echo $ac_n "(cached) $ac_c" 1>&6
17029 else
17030 cat > conftest.$ac_ext <<EOF
17031 #line 17032 "configure"
17032 #include "confdefs.h"
17033 /* System header to define __stub macros and hopefully few prototypes,
17034 which can conflict with char $ac_func(); below. */
17035 #include <assert.h>
17036 /* Override any gcc2 internal prototype to avoid an error. */
17037 /* We use char because int might match the return type of a gcc2
17038 builtin and then its argument prototype would still apply. */
17039 char $ac_func();
17041 int main() {
17043 /* The GNU C library defines this for functions which it implements
17044 to always fail with ENOSYS. Some functions are actually named
17045 something starting with __ and the normal name is an alias. */
17046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17047 choke me
17048 #else
17049 $ac_func();
17050 #endif
17052 ; return 0; }
17054 if { (eval echo configure:17055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17055 rm -rf conftest*
17056 eval "ac_cv_func_$ac_func=yes"
17057 else
17058 echo "configure: failed program was:" >&5
17059 cat conftest.$ac_ext >&5
17060 rm -rf conftest*
17061 eval "ac_cv_func_$ac_func=no"
17063 rm -f conftest*
17066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17067 echo "$ac_t""yes" 1>&6
17068 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17069 cat >> confdefs.h <<EOF
17070 #define $ac_tr_func 1
17073 else
17074 echo "$ac_t""no" 1>&6
17076 done
17078 else
17080 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17081 echo "configure:17082: checking for _atan2l declaration" >&5
17082 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17083 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17084 echo $ac_n "(cached) $ac_c" 1>&6
17085 else
17088 ac_ext=C
17089 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17090 ac_cpp='$CXXCPP $CPPFLAGS'
17091 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17092 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17093 cross_compiling=$ac_cv_prog_cxx_cross
17095 cat > conftest.$ac_ext <<EOF
17096 #line 17097 "configure"
17097 #include "confdefs.h"
17098 #include <math.h>
17099 int main() {
17100 _atan2l(0, 0);
17101 ; return 0; }
17103 if { (eval echo configure:17104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17104 rm -rf conftest*
17105 glibcpp_cv_func__atan2l_use=yes
17106 else
17107 echo "configure: failed program was:" >&5
17108 cat conftest.$ac_ext >&5
17109 rm -rf conftest*
17110 glibcpp_cv_func__atan2l_use=no
17112 rm -f conftest*
17113 ac_ext=c
17114 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17115 ac_cpp='$CPP $CPPFLAGS'
17116 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17117 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17118 cross_compiling=$ac_cv_prog_cc_cross
17124 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17126 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17127 for ac_func in _atan2l
17129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17130 echo "configure:17131: checking for $ac_func" >&5
17131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17132 echo $ac_n "(cached) $ac_c" 1>&6
17133 else
17134 cat > conftest.$ac_ext <<EOF
17135 #line 17136 "configure"
17136 #include "confdefs.h"
17137 /* System header to define __stub macros and hopefully few prototypes,
17138 which can conflict with char $ac_func(); below. */
17139 #include <assert.h>
17140 /* Override any gcc2 internal prototype to avoid an error. */
17141 /* We use char because int might match the return type of a gcc2
17142 builtin and then its argument prototype would still apply. */
17143 char $ac_func();
17145 int main() {
17147 /* The GNU C library defines this for functions which it implements
17148 to always fail with ENOSYS. Some functions are actually named
17149 something starting with __ and the normal name is an alias. */
17150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17151 choke me
17152 #else
17153 $ac_func();
17154 #endif
17156 ; return 0; }
17158 if { (eval echo configure:17159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17159 rm -rf conftest*
17160 eval "ac_cv_func_$ac_func=yes"
17161 else
17162 echo "configure: failed program was:" >&5
17163 cat conftest.$ac_ext >&5
17164 rm -rf conftest*
17165 eval "ac_cv_func_$ac_func=no"
17167 rm -f conftest*
17170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17171 echo "$ac_t""yes" 1>&6
17172 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17173 cat >> confdefs.h <<EOF
17174 #define $ac_tr_func 1
17177 else
17178 echo "$ac_t""no" 1>&6
17180 done
17187 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17188 echo "configure:17189: checking for expl declaration" >&5
17189 if test x${glibcpp_cv_func_expl_use+set} != xset; then
17190 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17191 echo $ac_n "(cached) $ac_c" 1>&6
17192 else
17195 ac_ext=C
17196 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17197 ac_cpp='$CXXCPP $CPPFLAGS'
17198 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17199 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17200 cross_compiling=$ac_cv_prog_cxx_cross
17202 cat > conftest.$ac_ext <<EOF
17203 #line 17204 "configure"
17204 #include "confdefs.h"
17205 #include <math.h>
17206 #ifdef HAVE_IEEEFP_H
17207 #include <ieeefp.h>
17208 #endif
17210 int main() {
17211 expl(0);
17212 ; return 0; }
17214 if { (eval echo configure:17215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17215 rm -rf conftest*
17216 glibcpp_cv_func_expl_use=yes
17217 else
17218 echo "configure: failed program was:" >&5
17219 cat conftest.$ac_ext >&5
17220 rm -rf conftest*
17221 glibcpp_cv_func_expl_use=no
17223 rm -f conftest*
17224 ac_ext=c
17225 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17226 ac_cpp='$CPP $CPPFLAGS'
17227 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17228 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17229 cross_compiling=$ac_cv_prog_cc_cross
17235 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17237 if test x$glibcpp_cv_func_expl_use = x"yes"; then
17238 for ac_func in expl
17240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17241 echo "configure:17242: checking for $ac_func" >&5
17242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17243 echo $ac_n "(cached) $ac_c" 1>&6
17244 else
17245 cat > conftest.$ac_ext <<EOF
17246 #line 17247 "configure"
17247 #include "confdefs.h"
17248 /* System header to define __stub macros and hopefully few prototypes,
17249 which can conflict with char $ac_func(); below. */
17250 #include <assert.h>
17251 /* Override any gcc2 internal prototype to avoid an error. */
17252 /* We use char because int might match the return type of a gcc2
17253 builtin and then its argument prototype would still apply. */
17254 char $ac_func();
17256 int main() {
17258 /* The GNU C library defines this for functions which it implements
17259 to always fail with ENOSYS. Some functions are actually named
17260 something starting with __ and the normal name is an alias. */
17261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17262 choke me
17263 #else
17264 $ac_func();
17265 #endif
17267 ; return 0; }
17269 if { (eval echo configure:17270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17270 rm -rf conftest*
17271 eval "ac_cv_func_$ac_func=yes"
17272 else
17273 echo "configure: failed program was:" >&5
17274 cat conftest.$ac_ext >&5
17275 rm -rf conftest*
17276 eval "ac_cv_func_$ac_func=no"
17278 rm -f conftest*
17281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17282 echo "$ac_t""yes" 1>&6
17283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17284 cat >> confdefs.h <<EOF
17285 #define $ac_tr_func 1
17288 else
17289 echo "$ac_t""no" 1>&6
17291 done
17293 else
17295 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17296 echo "configure:17297: checking for _expl declaration" >&5
17297 if test x${glibcpp_cv_func__expl_use+set} != xset; then
17298 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17299 echo $ac_n "(cached) $ac_c" 1>&6
17300 else
17303 ac_ext=C
17304 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17305 ac_cpp='$CXXCPP $CPPFLAGS'
17306 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17307 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17308 cross_compiling=$ac_cv_prog_cxx_cross
17310 cat > conftest.$ac_ext <<EOF
17311 #line 17312 "configure"
17312 #include "confdefs.h"
17313 #include <math.h>
17314 #ifdef HAVE_IEEEFP_H
17315 #include <ieeefp.h>
17316 #endif
17318 int main() {
17319 _expl(0);
17320 ; return 0; }
17322 if { (eval echo configure:17323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17323 rm -rf conftest*
17324 glibcpp_cv_func__expl_use=yes
17325 else
17326 echo "configure: failed program was:" >&5
17327 cat conftest.$ac_ext >&5
17328 rm -rf conftest*
17329 glibcpp_cv_func__expl_use=no
17331 rm -f conftest*
17332 ac_ext=c
17333 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17334 ac_cpp='$CPP $CPPFLAGS'
17335 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17336 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17337 cross_compiling=$ac_cv_prog_cc_cross
17343 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17345 if test x$glibcpp_cv_func__expl_use = x"yes"; then
17346 for ac_func in _expl
17348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17349 echo "configure:17350: checking for $ac_func" >&5
17350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17351 echo $ac_n "(cached) $ac_c" 1>&6
17352 else
17353 cat > conftest.$ac_ext <<EOF
17354 #line 17355 "configure"
17355 #include "confdefs.h"
17356 /* System header to define __stub macros and hopefully few prototypes,
17357 which can conflict with char $ac_func(); below. */
17358 #include <assert.h>
17359 /* Override any gcc2 internal prototype to avoid an error. */
17360 /* We use char because int might match the return type of a gcc2
17361 builtin and then its argument prototype would still apply. */
17362 char $ac_func();
17364 int main() {
17366 /* The GNU C library defines this for functions which it implements
17367 to always fail with ENOSYS. Some functions are actually named
17368 something starting with __ and the normal name is an alias. */
17369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17370 choke me
17371 #else
17372 $ac_func();
17373 #endif
17375 ; return 0; }
17377 if { (eval echo configure:17378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17378 rm -rf conftest*
17379 eval "ac_cv_func_$ac_func=yes"
17380 else
17381 echo "configure: failed program was:" >&5
17382 cat conftest.$ac_ext >&5
17383 rm -rf conftest*
17384 eval "ac_cv_func_$ac_func=no"
17386 rm -f conftest*
17389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17390 echo "$ac_t""yes" 1>&6
17391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17392 cat >> confdefs.h <<EOF
17393 #define $ac_tr_func 1
17396 else
17397 echo "$ac_t""no" 1>&6
17399 done
17406 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17407 echo "configure:17408: checking for fabsl declaration" >&5
17408 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17409 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17410 echo $ac_n "(cached) $ac_c" 1>&6
17411 else
17414 ac_ext=C
17415 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17416 ac_cpp='$CXXCPP $CPPFLAGS'
17417 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17418 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17419 cross_compiling=$ac_cv_prog_cxx_cross
17421 cat > conftest.$ac_ext <<EOF
17422 #line 17423 "configure"
17423 #include "confdefs.h"
17424 #include <math.h>
17425 #ifdef HAVE_IEEEFP_H
17426 #include <ieeefp.h>
17427 #endif
17429 int main() {
17430 fabsl(0);
17431 ; return 0; }
17433 if { (eval echo configure:17434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17434 rm -rf conftest*
17435 glibcpp_cv_func_fabsl_use=yes
17436 else
17437 echo "configure: failed program was:" >&5
17438 cat conftest.$ac_ext >&5
17439 rm -rf conftest*
17440 glibcpp_cv_func_fabsl_use=no
17442 rm -f conftest*
17443 ac_ext=c
17444 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17445 ac_cpp='$CPP $CPPFLAGS'
17446 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17447 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17448 cross_compiling=$ac_cv_prog_cc_cross
17454 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17456 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17457 for ac_func in fabsl
17459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17460 echo "configure:17461: checking for $ac_func" >&5
17461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17462 echo $ac_n "(cached) $ac_c" 1>&6
17463 else
17464 cat > conftest.$ac_ext <<EOF
17465 #line 17466 "configure"
17466 #include "confdefs.h"
17467 /* System header to define __stub macros and hopefully few prototypes,
17468 which can conflict with char $ac_func(); below. */
17469 #include <assert.h>
17470 /* Override any gcc2 internal prototype to avoid an error. */
17471 /* We use char because int might match the return type of a gcc2
17472 builtin and then its argument prototype would still apply. */
17473 char $ac_func();
17475 int main() {
17477 /* The GNU C library defines this for functions which it implements
17478 to always fail with ENOSYS. Some functions are actually named
17479 something starting with __ and the normal name is an alias. */
17480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17481 choke me
17482 #else
17483 $ac_func();
17484 #endif
17486 ; return 0; }
17488 if { (eval echo configure:17489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17489 rm -rf conftest*
17490 eval "ac_cv_func_$ac_func=yes"
17491 else
17492 echo "configure: failed program was:" >&5
17493 cat conftest.$ac_ext >&5
17494 rm -rf conftest*
17495 eval "ac_cv_func_$ac_func=no"
17497 rm -f conftest*
17500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17501 echo "$ac_t""yes" 1>&6
17502 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17503 cat >> confdefs.h <<EOF
17504 #define $ac_tr_func 1
17507 else
17508 echo "$ac_t""no" 1>&6
17510 done
17512 else
17514 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17515 echo "configure:17516: checking for _fabsl declaration" >&5
17516 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17517 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17518 echo $ac_n "(cached) $ac_c" 1>&6
17519 else
17522 ac_ext=C
17523 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17524 ac_cpp='$CXXCPP $CPPFLAGS'
17525 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17526 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17527 cross_compiling=$ac_cv_prog_cxx_cross
17529 cat > conftest.$ac_ext <<EOF
17530 #line 17531 "configure"
17531 #include "confdefs.h"
17532 #include <math.h>
17533 #ifdef HAVE_IEEEFP_H
17534 #include <ieeefp.h>
17535 #endif
17537 int main() {
17538 _fabsl(0);
17539 ; return 0; }
17541 if { (eval echo configure:17542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17542 rm -rf conftest*
17543 glibcpp_cv_func__fabsl_use=yes
17544 else
17545 echo "configure: failed program was:" >&5
17546 cat conftest.$ac_ext >&5
17547 rm -rf conftest*
17548 glibcpp_cv_func__fabsl_use=no
17550 rm -f conftest*
17551 ac_ext=c
17552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17553 ac_cpp='$CPP $CPPFLAGS'
17554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17556 cross_compiling=$ac_cv_prog_cc_cross
17562 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17564 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17565 for ac_func in _fabsl
17567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17568 echo "configure:17569: checking for $ac_func" >&5
17569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17570 echo $ac_n "(cached) $ac_c" 1>&6
17571 else
17572 cat > conftest.$ac_ext <<EOF
17573 #line 17574 "configure"
17574 #include "confdefs.h"
17575 /* System header to define __stub macros and hopefully few prototypes,
17576 which can conflict with char $ac_func(); below. */
17577 #include <assert.h>
17578 /* Override any gcc2 internal prototype to avoid an error. */
17579 /* We use char because int might match the return type of a gcc2
17580 builtin and then its argument prototype would still apply. */
17581 char $ac_func();
17583 int main() {
17585 /* The GNU C library defines this for functions which it implements
17586 to always fail with ENOSYS. Some functions are actually named
17587 something starting with __ and the normal name is an alias. */
17588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17589 choke me
17590 #else
17591 $ac_func();
17592 #endif
17594 ; return 0; }
17596 if { (eval echo configure:17597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17597 rm -rf conftest*
17598 eval "ac_cv_func_$ac_func=yes"
17599 else
17600 echo "configure: failed program was:" >&5
17601 cat conftest.$ac_ext >&5
17602 rm -rf conftest*
17603 eval "ac_cv_func_$ac_func=no"
17605 rm -f conftest*
17608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17609 echo "$ac_t""yes" 1>&6
17610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17611 cat >> confdefs.h <<EOF
17612 #define $ac_tr_func 1
17615 else
17616 echo "$ac_t""no" 1>&6
17618 done
17625 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17626 echo "configure:17627: checking for fmodl declaration" >&5
17627 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17628 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17629 echo $ac_n "(cached) $ac_c" 1>&6
17630 else
17633 ac_ext=C
17634 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17635 ac_cpp='$CXXCPP $CPPFLAGS'
17636 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17637 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17638 cross_compiling=$ac_cv_prog_cxx_cross
17640 cat > conftest.$ac_ext <<EOF
17641 #line 17642 "configure"
17642 #include "confdefs.h"
17643 #include <math.h>
17644 int main() {
17645 fmodl(0, 0);
17646 ; return 0; }
17648 if { (eval echo configure:17649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17649 rm -rf conftest*
17650 glibcpp_cv_func_fmodl_use=yes
17651 else
17652 echo "configure: failed program was:" >&5
17653 cat conftest.$ac_ext >&5
17654 rm -rf conftest*
17655 glibcpp_cv_func_fmodl_use=no
17657 rm -f conftest*
17658 ac_ext=c
17659 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17660 ac_cpp='$CPP $CPPFLAGS'
17661 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17662 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17663 cross_compiling=$ac_cv_prog_cc_cross
17669 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17671 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17672 for ac_func in fmodl
17674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17675 echo "configure:17676: checking for $ac_func" >&5
17676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17677 echo $ac_n "(cached) $ac_c" 1>&6
17678 else
17679 cat > conftest.$ac_ext <<EOF
17680 #line 17681 "configure"
17681 #include "confdefs.h"
17682 /* System header to define __stub macros and hopefully few prototypes,
17683 which can conflict with char $ac_func(); below. */
17684 #include <assert.h>
17685 /* Override any gcc2 internal prototype to avoid an error. */
17686 /* We use char because int might match the return type of a gcc2
17687 builtin and then its argument prototype would still apply. */
17688 char $ac_func();
17690 int main() {
17692 /* The GNU C library defines this for functions which it implements
17693 to always fail with ENOSYS. Some functions are actually named
17694 something starting with __ and the normal name is an alias. */
17695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17696 choke me
17697 #else
17698 $ac_func();
17699 #endif
17701 ; return 0; }
17703 if { (eval echo configure:17704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17704 rm -rf conftest*
17705 eval "ac_cv_func_$ac_func=yes"
17706 else
17707 echo "configure: failed program was:" >&5
17708 cat conftest.$ac_ext >&5
17709 rm -rf conftest*
17710 eval "ac_cv_func_$ac_func=no"
17712 rm -f conftest*
17715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17716 echo "$ac_t""yes" 1>&6
17717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17718 cat >> confdefs.h <<EOF
17719 #define $ac_tr_func 1
17722 else
17723 echo "$ac_t""no" 1>&6
17725 done
17727 else
17729 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17730 echo "configure:17731: checking for _fmodl declaration" >&5
17731 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17732 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17733 echo $ac_n "(cached) $ac_c" 1>&6
17734 else
17737 ac_ext=C
17738 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17739 ac_cpp='$CXXCPP $CPPFLAGS'
17740 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17741 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17742 cross_compiling=$ac_cv_prog_cxx_cross
17744 cat > conftest.$ac_ext <<EOF
17745 #line 17746 "configure"
17746 #include "confdefs.h"
17747 #include <math.h>
17748 int main() {
17749 _fmodl(0, 0);
17750 ; return 0; }
17752 if { (eval echo configure:17753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17753 rm -rf conftest*
17754 glibcpp_cv_func__fmodl_use=yes
17755 else
17756 echo "configure: failed program was:" >&5
17757 cat conftest.$ac_ext >&5
17758 rm -rf conftest*
17759 glibcpp_cv_func__fmodl_use=no
17761 rm -f conftest*
17762 ac_ext=c
17763 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17764 ac_cpp='$CPP $CPPFLAGS'
17765 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17766 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17767 cross_compiling=$ac_cv_prog_cc_cross
17773 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17775 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17776 for ac_func in _fmodl
17778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17779 echo "configure:17780: checking for $ac_func" >&5
17780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17781 echo $ac_n "(cached) $ac_c" 1>&6
17782 else
17783 cat > conftest.$ac_ext <<EOF
17784 #line 17785 "configure"
17785 #include "confdefs.h"
17786 /* System header to define __stub macros and hopefully few prototypes,
17787 which can conflict with char $ac_func(); below. */
17788 #include <assert.h>
17789 /* Override any gcc2 internal prototype to avoid an error. */
17790 /* We use char because int might match the return type of a gcc2
17791 builtin and then its argument prototype would still apply. */
17792 char $ac_func();
17794 int main() {
17796 /* The GNU C library defines this for functions which it implements
17797 to always fail with ENOSYS. Some functions are actually named
17798 something starting with __ and the normal name is an alias. */
17799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17800 choke me
17801 #else
17802 $ac_func();
17803 #endif
17805 ; return 0; }
17807 if { (eval echo configure:17808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17808 rm -rf conftest*
17809 eval "ac_cv_func_$ac_func=yes"
17810 else
17811 echo "configure: failed program was:" >&5
17812 cat conftest.$ac_ext >&5
17813 rm -rf conftest*
17814 eval "ac_cv_func_$ac_func=no"
17816 rm -f conftest*
17819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17820 echo "$ac_t""yes" 1>&6
17821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17822 cat >> confdefs.h <<EOF
17823 #define $ac_tr_func 1
17826 else
17827 echo "$ac_t""no" 1>&6
17829 done
17836 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17837 echo "configure:17838: checking for frexpl declaration" >&5
17838 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17839 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17840 echo $ac_n "(cached) $ac_c" 1>&6
17841 else
17844 ac_ext=C
17845 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17846 ac_cpp='$CXXCPP $CPPFLAGS'
17847 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17848 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17849 cross_compiling=$ac_cv_prog_cxx_cross
17851 cat > conftest.$ac_ext <<EOF
17852 #line 17853 "configure"
17853 #include "confdefs.h"
17854 #include <math.h>
17855 int main() {
17856 frexpl(0, 0);
17857 ; return 0; }
17859 if { (eval echo configure:17860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17860 rm -rf conftest*
17861 glibcpp_cv_func_frexpl_use=yes
17862 else
17863 echo "configure: failed program was:" >&5
17864 cat conftest.$ac_ext >&5
17865 rm -rf conftest*
17866 glibcpp_cv_func_frexpl_use=no
17868 rm -f conftest*
17869 ac_ext=c
17870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17871 ac_cpp='$CPP $CPPFLAGS'
17872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17873 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17874 cross_compiling=$ac_cv_prog_cc_cross
17880 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17882 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17883 for ac_func in frexpl
17885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17886 echo "configure:17887: checking for $ac_func" >&5
17887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17888 echo $ac_n "(cached) $ac_c" 1>&6
17889 else
17890 cat > conftest.$ac_ext <<EOF
17891 #line 17892 "configure"
17892 #include "confdefs.h"
17893 /* System header to define __stub macros and hopefully few prototypes,
17894 which can conflict with char $ac_func(); below. */
17895 #include <assert.h>
17896 /* Override any gcc2 internal prototype to avoid an error. */
17897 /* We use char because int might match the return type of a gcc2
17898 builtin and then its argument prototype would still apply. */
17899 char $ac_func();
17901 int main() {
17903 /* The GNU C library defines this for functions which it implements
17904 to always fail with ENOSYS. Some functions are actually named
17905 something starting with __ and the normal name is an alias. */
17906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17907 choke me
17908 #else
17909 $ac_func();
17910 #endif
17912 ; return 0; }
17914 if { (eval echo configure:17915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17915 rm -rf conftest*
17916 eval "ac_cv_func_$ac_func=yes"
17917 else
17918 echo "configure: failed program was:" >&5
17919 cat conftest.$ac_ext >&5
17920 rm -rf conftest*
17921 eval "ac_cv_func_$ac_func=no"
17923 rm -f conftest*
17926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17927 echo "$ac_t""yes" 1>&6
17928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17929 cat >> confdefs.h <<EOF
17930 #define $ac_tr_func 1
17933 else
17934 echo "$ac_t""no" 1>&6
17936 done
17938 else
17940 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17941 echo "configure:17942: checking for _frexpl declaration" >&5
17942 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17943 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17944 echo $ac_n "(cached) $ac_c" 1>&6
17945 else
17948 ac_ext=C
17949 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17950 ac_cpp='$CXXCPP $CPPFLAGS'
17951 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17952 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17953 cross_compiling=$ac_cv_prog_cxx_cross
17955 cat > conftest.$ac_ext <<EOF
17956 #line 17957 "configure"
17957 #include "confdefs.h"
17958 #include <math.h>
17959 int main() {
17960 _frexpl(0, 0);
17961 ; return 0; }
17963 if { (eval echo configure:17964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17964 rm -rf conftest*
17965 glibcpp_cv_func__frexpl_use=yes
17966 else
17967 echo "configure: failed program was:" >&5
17968 cat conftest.$ac_ext >&5
17969 rm -rf conftest*
17970 glibcpp_cv_func__frexpl_use=no
17972 rm -f conftest*
17973 ac_ext=c
17974 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17975 ac_cpp='$CPP $CPPFLAGS'
17976 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17977 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17978 cross_compiling=$ac_cv_prog_cc_cross
17984 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17986 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17987 for ac_func in _frexpl
17989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17990 echo "configure:17991: checking for $ac_func" >&5
17991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17992 echo $ac_n "(cached) $ac_c" 1>&6
17993 else
17994 cat > conftest.$ac_ext <<EOF
17995 #line 17996 "configure"
17996 #include "confdefs.h"
17997 /* System header to define __stub macros and hopefully few prototypes,
17998 which can conflict with char $ac_func(); below. */
17999 #include <assert.h>
18000 /* Override any gcc2 internal prototype to avoid an error. */
18001 /* We use char because int might match the return type of a gcc2
18002 builtin and then its argument prototype would still apply. */
18003 char $ac_func();
18005 int main() {
18007 /* The GNU C library defines this for functions which it implements
18008 to always fail with ENOSYS. Some functions are actually named
18009 something starting with __ and the normal name is an alias. */
18010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18011 choke me
18012 #else
18013 $ac_func();
18014 #endif
18016 ; return 0; }
18018 if { (eval echo configure:18019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18019 rm -rf conftest*
18020 eval "ac_cv_func_$ac_func=yes"
18021 else
18022 echo "configure: failed program was:" >&5
18023 cat conftest.$ac_ext >&5
18024 rm -rf conftest*
18025 eval "ac_cv_func_$ac_func=no"
18027 rm -f conftest*
18030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18031 echo "$ac_t""yes" 1>&6
18032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18033 cat >> confdefs.h <<EOF
18034 #define $ac_tr_func 1
18037 else
18038 echo "$ac_t""no" 1>&6
18040 done
18047 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18048 echo "configure:18049: checking for hypotl declaration" >&5
18049 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18050 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18051 echo $ac_n "(cached) $ac_c" 1>&6
18052 else
18055 ac_ext=C
18056 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18057 ac_cpp='$CXXCPP $CPPFLAGS'
18058 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18059 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18060 cross_compiling=$ac_cv_prog_cxx_cross
18062 cat > conftest.$ac_ext <<EOF
18063 #line 18064 "configure"
18064 #include "confdefs.h"
18065 #include <math.h>
18066 int main() {
18067 hypotl(0, 0);
18068 ; return 0; }
18070 if { (eval echo configure:18071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18071 rm -rf conftest*
18072 glibcpp_cv_func_hypotl_use=yes
18073 else
18074 echo "configure: failed program was:" >&5
18075 cat conftest.$ac_ext >&5
18076 rm -rf conftest*
18077 glibcpp_cv_func_hypotl_use=no
18079 rm -f conftest*
18080 ac_ext=c
18081 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18082 ac_cpp='$CPP $CPPFLAGS'
18083 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18084 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18085 cross_compiling=$ac_cv_prog_cc_cross
18091 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18093 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18094 for ac_func in hypotl
18096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18097 echo "configure:18098: checking for $ac_func" >&5
18098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18099 echo $ac_n "(cached) $ac_c" 1>&6
18100 else
18101 cat > conftest.$ac_ext <<EOF
18102 #line 18103 "configure"
18103 #include "confdefs.h"
18104 /* System header to define __stub macros and hopefully few prototypes,
18105 which can conflict with char $ac_func(); below. */
18106 #include <assert.h>
18107 /* Override any gcc2 internal prototype to avoid an error. */
18108 /* We use char because int might match the return type of a gcc2
18109 builtin and then its argument prototype would still apply. */
18110 char $ac_func();
18112 int main() {
18114 /* The GNU C library defines this for functions which it implements
18115 to always fail with ENOSYS. Some functions are actually named
18116 something starting with __ and the normal name is an alias. */
18117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18118 choke me
18119 #else
18120 $ac_func();
18121 #endif
18123 ; return 0; }
18125 if { (eval echo configure:18126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18126 rm -rf conftest*
18127 eval "ac_cv_func_$ac_func=yes"
18128 else
18129 echo "configure: failed program was:" >&5
18130 cat conftest.$ac_ext >&5
18131 rm -rf conftest*
18132 eval "ac_cv_func_$ac_func=no"
18134 rm -f conftest*
18137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18138 echo "$ac_t""yes" 1>&6
18139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18140 cat >> confdefs.h <<EOF
18141 #define $ac_tr_func 1
18144 else
18145 echo "$ac_t""no" 1>&6
18147 done
18149 else
18151 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18152 echo "configure:18153: checking for _hypotl declaration" >&5
18153 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18154 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18155 echo $ac_n "(cached) $ac_c" 1>&6
18156 else
18159 ac_ext=C
18160 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18161 ac_cpp='$CXXCPP $CPPFLAGS'
18162 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18163 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18164 cross_compiling=$ac_cv_prog_cxx_cross
18166 cat > conftest.$ac_ext <<EOF
18167 #line 18168 "configure"
18168 #include "confdefs.h"
18169 #include <math.h>
18170 int main() {
18171 _hypotl(0, 0);
18172 ; return 0; }
18174 if { (eval echo configure:18175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18175 rm -rf conftest*
18176 glibcpp_cv_func__hypotl_use=yes
18177 else
18178 echo "configure: failed program was:" >&5
18179 cat conftest.$ac_ext >&5
18180 rm -rf conftest*
18181 glibcpp_cv_func__hypotl_use=no
18183 rm -f conftest*
18184 ac_ext=c
18185 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18186 ac_cpp='$CPP $CPPFLAGS'
18187 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18188 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18189 cross_compiling=$ac_cv_prog_cc_cross
18195 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18197 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18198 for ac_func in _hypotl
18200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18201 echo "configure:18202: checking for $ac_func" >&5
18202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18203 echo $ac_n "(cached) $ac_c" 1>&6
18204 else
18205 cat > conftest.$ac_ext <<EOF
18206 #line 18207 "configure"
18207 #include "confdefs.h"
18208 /* System header to define __stub macros and hopefully few prototypes,
18209 which can conflict with char $ac_func(); below. */
18210 #include <assert.h>
18211 /* Override any gcc2 internal prototype to avoid an error. */
18212 /* We use char because int might match the return type of a gcc2
18213 builtin and then its argument prototype would still apply. */
18214 char $ac_func();
18216 int main() {
18218 /* The GNU C library defines this for functions which it implements
18219 to always fail with ENOSYS. Some functions are actually named
18220 something starting with __ and the normal name is an alias. */
18221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18222 choke me
18223 #else
18224 $ac_func();
18225 #endif
18227 ; return 0; }
18229 if { (eval echo configure:18230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18230 rm -rf conftest*
18231 eval "ac_cv_func_$ac_func=yes"
18232 else
18233 echo "configure: failed program was:" >&5
18234 cat conftest.$ac_ext >&5
18235 rm -rf conftest*
18236 eval "ac_cv_func_$ac_func=no"
18238 rm -f conftest*
18241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18242 echo "$ac_t""yes" 1>&6
18243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18244 cat >> confdefs.h <<EOF
18245 #define $ac_tr_func 1
18248 else
18249 echo "$ac_t""no" 1>&6
18251 done
18258 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18259 echo "configure:18260: checking for ldexpl declaration" >&5
18260 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18261 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18262 echo $ac_n "(cached) $ac_c" 1>&6
18263 else
18266 ac_ext=C
18267 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18268 ac_cpp='$CXXCPP $CPPFLAGS'
18269 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18270 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18271 cross_compiling=$ac_cv_prog_cxx_cross
18273 cat > conftest.$ac_ext <<EOF
18274 #line 18275 "configure"
18275 #include "confdefs.h"
18276 #include <math.h>
18277 int main() {
18278 ldexpl(0, 0);
18279 ; return 0; }
18281 if { (eval echo configure:18282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18282 rm -rf conftest*
18283 glibcpp_cv_func_ldexpl_use=yes
18284 else
18285 echo "configure: failed program was:" >&5
18286 cat conftest.$ac_ext >&5
18287 rm -rf conftest*
18288 glibcpp_cv_func_ldexpl_use=no
18290 rm -f conftest*
18291 ac_ext=c
18292 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18293 ac_cpp='$CPP $CPPFLAGS'
18294 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18295 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18296 cross_compiling=$ac_cv_prog_cc_cross
18302 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18304 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18305 for ac_func in ldexpl
18307 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18308 echo "configure:18309: checking for $ac_func" >&5
18309 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18310 echo $ac_n "(cached) $ac_c" 1>&6
18311 else
18312 cat > conftest.$ac_ext <<EOF
18313 #line 18314 "configure"
18314 #include "confdefs.h"
18315 /* System header to define __stub macros and hopefully few prototypes,
18316 which can conflict with char $ac_func(); below. */
18317 #include <assert.h>
18318 /* Override any gcc2 internal prototype to avoid an error. */
18319 /* We use char because int might match the return type of a gcc2
18320 builtin and then its argument prototype would still apply. */
18321 char $ac_func();
18323 int main() {
18325 /* The GNU C library defines this for functions which it implements
18326 to always fail with ENOSYS. Some functions are actually named
18327 something starting with __ and the normal name is an alias. */
18328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18329 choke me
18330 #else
18331 $ac_func();
18332 #endif
18334 ; return 0; }
18336 if { (eval echo configure:18337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18337 rm -rf conftest*
18338 eval "ac_cv_func_$ac_func=yes"
18339 else
18340 echo "configure: failed program was:" >&5
18341 cat conftest.$ac_ext >&5
18342 rm -rf conftest*
18343 eval "ac_cv_func_$ac_func=no"
18345 rm -f conftest*
18348 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18349 echo "$ac_t""yes" 1>&6
18350 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18351 cat >> confdefs.h <<EOF
18352 #define $ac_tr_func 1
18355 else
18356 echo "$ac_t""no" 1>&6
18358 done
18360 else
18362 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18363 echo "configure:18364: checking for _ldexpl declaration" >&5
18364 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18365 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18366 echo $ac_n "(cached) $ac_c" 1>&6
18367 else
18370 ac_ext=C
18371 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18372 ac_cpp='$CXXCPP $CPPFLAGS'
18373 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18374 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18375 cross_compiling=$ac_cv_prog_cxx_cross
18377 cat > conftest.$ac_ext <<EOF
18378 #line 18379 "configure"
18379 #include "confdefs.h"
18380 #include <math.h>
18381 int main() {
18382 _ldexpl(0, 0);
18383 ; return 0; }
18385 if { (eval echo configure:18386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18386 rm -rf conftest*
18387 glibcpp_cv_func__ldexpl_use=yes
18388 else
18389 echo "configure: failed program was:" >&5
18390 cat conftest.$ac_ext >&5
18391 rm -rf conftest*
18392 glibcpp_cv_func__ldexpl_use=no
18394 rm -f conftest*
18395 ac_ext=c
18396 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18397 ac_cpp='$CPP $CPPFLAGS'
18398 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18399 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18400 cross_compiling=$ac_cv_prog_cc_cross
18406 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18408 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18409 for ac_func in _ldexpl
18411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18412 echo "configure:18413: checking for $ac_func" >&5
18413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18414 echo $ac_n "(cached) $ac_c" 1>&6
18415 else
18416 cat > conftest.$ac_ext <<EOF
18417 #line 18418 "configure"
18418 #include "confdefs.h"
18419 /* System header to define __stub macros and hopefully few prototypes,
18420 which can conflict with char $ac_func(); below. */
18421 #include <assert.h>
18422 /* Override any gcc2 internal prototype to avoid an error. */
18423 /* We use char because int might match the return type of a gcc2
18424 builtin and then its argument prototype would still apply. */
18425 char $ac_func();
18427 int main() {
18429 /* The GNU C library defines this for functions which it implements
18430 to always fail with ENOSYS. Some functions are actually named
18431 something starting with __ and the normal name is an alias. */
18432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18433 choke me
18434 #else
18435 $ac_func();
18436 #endif
18438 ; return 0; }
18440 if { (eval echo configure:18441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18441 rm -rf conftest*
18442 eval "ac_cv_func_$ac_func=yes"
18443 else
18444 echo "configure: failed program was:" >&5
18445 cat conftest.$ac_ext >&5
18446 rm -rf conftest*
18447 eval "ac_cv_func_$ac_func=no"
18449 rm -f conftest*
18452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18453 echo "$ac_t""yes" 1>&6
18454 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18455 cat >> confdefs.h <<EOF
18456 #define $ac_tr_func 1
18459 else
18460 echo "$ac_t""no" 1>&6
18462 done
18469 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18470 echo "configure:18471: checking for logl declaration" >&5
18471 if test x${glibcpp_cv_func_logl_use+set} != xset; then
18472 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18473 echo $ac_n "(cached) $ac_c" 1>&6
18474 else
18477 ac_ext=C
18478 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18479 ac_cpp='$CXXCPP $CPPFLAGS'
18480 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18481 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18482 cross_compiling=$ac_cv_prog_cxx_cross
18484 cat > conftest.$ac_ext <<EOF
18485 #line 18486 "configure"
18486 #include "confdefs.h"
18487 #include <math.h>
18488 #ifdef HAVE_IEEEFP_H
18489 #include <ieeefp.h>
18490 #endif
18492 int main() {
18493 logl(0);
18494 ; return 0; }
18496 if { (eval echo configure:18497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18497 rm -rf conftest*
18498 glibcpp_cv_func_logl_use=yes
18499 else
18500 echo "configure: failed program was:" >&5
18501 cat conftest.$ac_ext >&5
18502 rm -rf conftest*
18503 glibcpp_cv_func_logl_use=no
18505 rm -f conftest*
18506 ac_ext=c
18507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18508 ac_cpp='$CPP $CPPFLAGS'
18509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18511 cross_compiling=$ac_cv_prog_cc_cross
18517 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18519 if test x$glibcpp_cv_func_logl_use = x"yes"; then
18520 for ac_func in logl
18522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18523 echo "configure:18524: checking for $ac_func" >&5
18524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18525 echo $ac_n "(cached) $ac_c" 1>&6
18526 else
18527 cat > conftest.$ac_ext <<EOF
18528 #line 18529 "configure"
18529 #include "confdefs.h"
18530 /* System header to define __stub macros and hopefully few prototypes,
18531 which can conflict with char $ac_func(); below. */
18532 #include <assert.h>
18533 /* Override any gcc2 internal prototype to avoid an error. */
18534 /* We use char because int might match the return type of a gcc2
18535 builtin and then its argument prototype would still apply. */
18536 char $ac_func();
18538 int main() {
18540 /* The GNU C library defines this for functions which it implements
18541 to always fail with ENOSYS. Some functions are actually named
18542 something starting with __ and the normal name is an alias. */
18543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18544 choke me
18545 #else
18546 $ac_func();
18547 #endif
18549 ; return 0; }
18551 if { (eval echo configure:18552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18552 rm -rf conftest*
18553 eval "ac_cv_func_$ac_func=yes"
18554 else
18555 echo "configure: failed program was:" >&5
18556 cat conftest.$ac_ext >&5
18557 rm -rf conftest*
18558 eval "ac_cv_func_$ac_func=no"
18560 rm -f conftest*
18563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18564 echo "$ac_t""yes" 1>&6
18565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18566 cat >> confdefs.h <<EOF
18567 #define $ac_tr_func 1
18570 else
18571 echo "$ac_t""no" 1>&6
18573 done
18575 else
18577 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18578 echo "configure:18579: checking for _logl declaration" >&5
18579 if test x${glibcpp_cv_func__logl_use+set} != xset; then
18580 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18581 echo $ac_n "(cached) $ac_c" 1>&6
18582 else
18585 ac_ext=C
18586 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18587 ac_cpp='$CXXCPP $CPPFLAGS'
18588 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18589 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18590 cross_compiling=$ac_cv_prog_cxx_cross
18592 cat > conftest.$ac_ext <<EOF
18593 #line 18594 "configure"
18594 #include "confdefs.h"
18595 #include <math.h>
18596 #ifdef HAVE_IEEEFP_H
18597 #include <ieeefp.h>
18598 #endif
18600 int main() {
18601 _logl(0);
18602 ; return 0; }
18604 if { (eval echo configure:18605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18605 rm -rf conftest*
18606 glibcpp_cv_func__logl_use=yes
18607 else
18608 echo "configure: failed program was:" >&5
18609 cat conftest.$ac_ext >&5
18610 rm -rf conftest*
18611 glibcpp_cv_func__logl_use=no
18613 rm -f conftest*
18614 ac_ext=c
18615 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18616 ac_cpp='$CPP $CPPFLAGS'
18617 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18618 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18619 cross_compiling=$ac_cv_prog_cc_cross
18625 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18627 if test x$glibcpp_cv_func__logl_use = x"yes"; then
18628 for ac_func in _logl
18630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18631 echo "configure:18632: checking for $ac_func" >&5
18632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18633 echo $ac_n "(cached) $ac_c" 1>&6
18634 else
18635 cat > conftest.$ac_ext <<EOF
18636 #line 18637 "configure"
18637 #include "confdefs.h"
18638 /* System header to define __stub macros and hopefully few prototypes,
18639 which can conflict with char $ac_func(); below. */
18640 #include <assert.h>
18641 /* Override any gcc2 internal prototype to avoid an error. */
18642 /* We use char because int might match the return type of a gcc2
18643 builtin and then its argument prototype would still apply. */
18644 char $ac_func();
18646 int main() {
18648 /* The GNU C library defines this for functions which it implements
18649 to always fail with ENOSYS. Some functions are actually named
18650 something starting with __ and the normal name is an alias. */
18651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18652 choke me
18653 #else
18654 $ac_func();
18655 #endif
18657 ; return 0; }
18659 if { (eval echo configure:18660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18660 rm -rf conftest*
18661 eval "ac_cv_func_$ac_func=yes"
18662 else
18663 echo "configure: failed program was:" >&5
18664 cat conftest.$ac_ext >&5
18665 rm -rf conftest*
18666 eval "ac_cv_func_$ac_func=no"
18668 rm -f conftest*
18671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18672 echo "$ac_t""yes" 1>&6
18673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18674 cat >> confdefs.h <<EOF
18675 #define $ac_tr_func 1
18678 else
18679 echo "$ac_t""no" 1>&6
18681 done
18688 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18689 echo "configure:18690: checking for log10l declaration" >&5
18690 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18691 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18692 echo $ac_n "(cached) $ac_c" 1>&6
18693 else
18696 ac_ext=C
18697 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18698 ac_cpp='$CXXCPP $CPPFLAGS'
18699 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18700 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18701 cross_compiling=$ac_cv_prog_cxx_cross
18703 cat > conftest.$ac_ext <<EOF
18704 #line 18705 "configure"
18705 #include "confdefs.h"
18706 #include <math.h>
18707 #ifdef HAVE_IEEEFP_H
18708 #include <ieeefp.h>
18709 #endif
18711 int main() {
18712 log10l(0);
18713 ; return 0; }
18715 if { (eval echo configure:18716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18716 rm -rf conftest*
18717 glibcpp_cv_func_log10l_use=yes
18718 else
18719 echo "configure: failed program was:" >&5
18720 cat conftest.$ac_ext >&5
18721 rm -rf conftest*
18722 glibcpp_cv_func_log10l_use=no
18724 rm -f conftest*
18725 ac_ext=c
18726 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18727 ac_cpp='$CPP $CPPFLAGS'
18728 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18729 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18730 cross_compiling=$ac_cv_prog_cc_cross
18736 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18738 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18739 for ac_func in log10l
18741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18742 echo "configure:18743: checking for $ac_func" >&5
18743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18744 echo $ac_n "(cached) $ac_c" 1>&6
18745 else
18746 cat > conftest.$ac_ext <<EOF
18747 #line 18748 "configure"
18748 #include "confdefs.h"
18749 /* System header to define __stub macros and hopefully few prototypes,
18750 which can conflict with char $ac_func(); below. */
18751 #include <assert.h>
18752 /* Override any gcc2 internal prototype to avoid an error. */
18753 /* We use char because int might match the return type of a gcc2
18754 builtin and then its argument prototype would still apply. */
18755 char $ac_func();
18757 int main() {
18759 /* The GNU C library defines this for functions which it implements
18760 to always fail with ENOSYS. Some functions are actually named
18761 something starting with __ and the normal name is an alias. */
18762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18763 choke me
18764 #else
18765 $ac_func();
18766 #endif
18768 ; return 0; }
18770 if { (eval echo configure:18771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18771 rm -rf conftest*
18772 eval "ac_cv_func_$ac_func=yes"
18773 else
18774 echo "configure: failed program was:" >&5
18775 cat conftest.$ac_ext >&5
18776 rm -rf conftest*
18777 eval "ac_cv_func_$ac_func=no"
18779 rm -f conftest*
18782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18783 echo "$ac_t""yes" 1>&6
18784 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18785 cat >> confdefs.h <<EOF
18786 #define $ac_tr_func 1
18789 else
18790 echo "$ac_t""no" 1>&6
18792 done
18794 else
18796 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18797 echo "configure:18798: checking for _log10l declaration" >&5
18798 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18799 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18800 echo $ac_n "(cached) $ac_c" 1>&6
18801 else
18804 ac_ext=C
18805 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18806 ac_cpp='$CXXCPP $CPPFLAGS'
18807 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18808 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18809 cross_compiling=$ac_cv_prog_cxx_cross
18811 cat > conftest.$ac_ext <<EOF
18812 #line 18813 "configure"
18813 #include "confdefs.h"
18814 #include <math.h>
18815 #ifdef HAVE_IEEEFP_H
18816 #include <ieeefp.h>
18817 #endif
18819 int main() {
18820 _log10l(0);
18821 ; return 0; }
18823 if { (eval echo configure:18824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18824 rm -rf conftest*
18825 glibcpp_cv_func__log10l_use=yes
18826 else
18827 echo "configure: failed program was:" >&5
18828 cat conftest.$ac_ext >&5
18829 rm -rf conftest*
18830 glibcpp_cv_func__log10l_use=no
18832 rm -f conftest*
18833 ac_ext=c
18834 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18835 ac_cpp='$CPP $CPPFLAGS'
18836 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18837 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18838 cross_compiling=$ac_cv_prog_cc_cross
18844 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18846 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18847 for ac_func in _log10l
18849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18850 echo "configure:18851: checking for $ac_func" >&5
18851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18852 echo $ac_n "(cached) $ac_c" 1>&6
18853 else
18854 cat > conftest.$ac_ext <<EOF
18855 #line 18856 "configure"
18856 #include "confdefs.h"
18857 /* System header to define __stub macros and hopefully few prototypes,
18858 which can conflict with char $ac_func(); below. */
18859 #include <assert.h>
18860 /* Override any gcc2 internal prototype to avoid an error. */
18861 /* We use char because int might match the return type of a gcc2
18862 builtin and then its argument prototype would still apply. */
18863 char $ac_func();
18865 int main() {
18867 /* The GNU C library defines this for functions which it implements
18868 to always fail with ENOSYS. Some functions are actually named
18869 something starting with __ and the normal name is an alias. */
18870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18871 choke me
18872 #else
18873 $ac_func();
18874 #endif
18876 ; return 0; }
18878 if { (eval echo configure:18879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18879 rm -rf conftest*
18880 eval "ac_cv_func_$ac_func=yes"
18881 else
18882 echo "configure: failed program was:" >&5
18883 cat conftest.$ac_ext >&5
18884 rm -rf conftest*
18885 eval "ac_cv_func_$ac_func=no"
18887 rm -f conftest*
18890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18891 echo "$ac_t""yes" 1>&6
18892 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18893 cat >> confdefs.h <<EOF
18894 #define $ac_tr_func 1
18897 else
18898 echo "$ac_t""no" 1>&6
18900 done
18907 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18908 echo "configure:18909: checking for modfl declaration" >&5
18909 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18910 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18911 echo $ac_n "(cached) $ac_c" 1>&6
18912 else
18915 ac_ext=C
18916 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18917 ac_cpp='$CXXCPP $CPPFLAGS'
18918 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18919 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18920 cross_compiling=$ac_cv_prog_cxx_cross
18922 cat > conftest.$ac_ext <<EOF
18923 #line 18924 "configure"
18924 #include "confdefs.h"
18925 #include <math.h>
18926 int main() {
18927 modfl(0, 0);
18928 ; return 0; }
18930 if { (eval echo configure:18931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18931 rm -rf conftest*
18932 glibcpp_cv_func_modfl_use=yes
18933 else
18934 echo "configure: failed program was:" >&5
18935 cat conftest.$ac_ext >&5
18936 rm -rf conftest*
18937 glibcpp_cv_func_modfl_use=no
18939 rm -f conftest*
18940 ac_ext=c
18941 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18942 ac_cpp='$CPP $CPPFLAGS'
18943 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18944 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18945 cross_compiling=$ac_cv_prog_cc_cross
18951 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18953 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18954 for ac_func in modfl
18956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18957 echo "configure:18958: checking for $ac_func" >&5
18958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18959 echo $ac_n "(cached) $ac_c" 1>&6
18960 else
18961 cat > conftest.$ac_ext <<EOF
18962 #line 18963 "configure"
18963 #include "confdefs.h"
18964 /* System header to define __stub macros and hopefully few prototypes,
18965 which can conflict with char $ac_func(); below. */
18966 #include <assert.h>
18967 /* Override any gcc2 internal prototype to avoid an error. */
18968 /* We use char because int might match the return type of a gcc2
18969 builtin and then its argument prototype would still apply. */
18970 char $ac_func();
18972 int main() {
18974 /* The GNU C library defines this for functions which it implements
18975 to always fail with ENOSYS. Some functions are actually named
18976 something starting with __ and the normal name is an alias. */
18977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18978 choke me
18979 #else
18980 $ac_func();
18981 #endif
18983 ; return 0; }
18985 if { (eval echo configure:18986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18986 rm -rf conftest*
18987 eval "ac_cv_func_$ac_func=yes"
18988 else
18989 echo "configure: failed program was:" >&5
18990 cat conftest.$ac_ext >&5
18991 rm -rf conftest*
18992 eval "ac_cv_func_$ac_func=no"
18994 rm -f conftest*
18997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18998 echo "$ac_t""yes" 1>&6
18999 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19000 cat >> confdefs.h <<EOF
19001 #define $ac_tr_func 1
19004 else
19005 echo "$ac_t""no" 1>&6
19007 done
19009 else
19011 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
19012 echo "configure:19013: checking for _modfl declaration" >&5
19013 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
19014 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
19015 echo $ac_n "(cached) $ac_c" 1>&6
19016 else
19019 ac_ext=C
19020 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19021 ac_cpp='$CXXCPP $CPPFLAGS'
19022 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19023 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19024 cross_compiling=$ac_cv_prog_cxx_cross
19026 cat > conftest.$ac_ext <<EOF
19027 #line 19028 "configure"
19028 #include "confdefs.h"
19029 #include <math.h>
19030 int main() {
19031 _modfl(0, 0);
19032 ; return 0; }
19034 if { (eval echo configure:19035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19035 rm -rf conftest*
19036 glibcpp_cv_func__modfl_use=yes
19037 else
19038 echo "configure: failed program was:" >&5
19039 cat conftest.$ac_ext >&5
19040 rm -rf conftest*
19041 glibcpp_cv_func__modfl_use=no
19043 rm -f conftest*
19044 ac_ext=c
19045 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19046 ac_cpp='$CPP $CPPFLAGS'
19047 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19048 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19049 cross_compiling=$ac_cv_prog_cc_cross
19055 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19057 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19058 for ac_func in _modfl
19060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19061 echo "configure:19062: checking for $ac_func" >&5
19062 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19063 echo $ac_n "(cached) $ac_c" 1>&6
19064 else
19065 cat > conftest.$ac_ext <<EOF
19066 #line 19067 "configure"
19067 #include "confdefs.h"
19068 /* System header to define __stub macros and hopefully few prototypes,
19069 which can conflict with char $ac_func(); below. */
19070 #include <assert.h>
19071 /* Override any gcc2 internal prototype to avoid an error. */
19072 /* We use char because int might match the return type of a gcc2
19073 builtin and then its argument prototype would still apply. */
19074 char $ac_func();
19076 int main() {
19078 /* The GNU C library defines this for functions which it implements
19079 to always fail with ENOSYS. Some functions are actually named
19080 something starting with __ and the normal name is an alias. */
19081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19082 choke me
19083 #else
19084 $ac_func();
19085 #endif
19087 ; return 0; }
19089 if { (eval echo configure:19090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19090 rm -rf conftest*
19091 eval "ac_cv_func_$ac_func=yes"
19092 else
19093 echo "configure: failed program was:" >&5
19094 cat conftest.$ac_ext >&5
19095 rm -rf conftest*
19096 eval "ac_cv_func_$ac_func=no"
19098 rm -f conftest*
19101 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19102 echo "$ac_t""yes" 1>&6
19103 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19104 cat >> confdefs.h <<EOF
19105 #define $ac_tr_func 1
19108 else
19109 echo "$ac_t""no" 1>&6
19111 done
19118 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19119 echo "configure:19120: checking for powl declaration" >&5
19120 if test x${glibcpp_cv_func_powl_use+set} != xset; then
19121 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19122 echo $ac_n "(cached) $ac_c" 1>&6
19123 else
19126 ac_ext=C
19127 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19128 ac_cpp='$CXXCPP $CPPFLAGS'
19129 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19130 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19131 cross_compiling=$ac_cv_prog_cxx_cross
19133 cat > conftest.$ac_ext <<EOF
19134 #line 19135 "configure"
19135 #include "confdefs.h"
19136 #include <math.h>
19137 int main() {
19138 powl(0, 0);
19139 ; return 0; }
19141 if { (eval echo configure:19142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19142 rm -rf conftest*
19143 glibcpp_cv_func_powl_use=yes
19144 else
19145 echo "configure: failed program was:" >&5
19146 cat conftest.$ac_ext >&5
19147 rm -rf conftest*
19148 glibcpp_cv_func_powl_use=no
19150 rm -f conftest*
19151 ac_ext=c
19152 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19153 ac_cpp='$CPP $CPPFLAGS'
19154 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19155 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19156 cross_compiling=$ac_cv_prog_cc_cross
19162 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19164 if test x$glibcpp_cv_func_powl_use = x"yes"; then
19165 for ac_func in powl
19167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19168 echo "configure:19169: checking for $ac_func" >&5
19169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19170 echo $ac_n "(cached) $ac_c" 1>&6
19171 else
19172 cat > conftest.$ac_ext <<EOF
19173 #line 19174 "configure"
19174 #include "confdefs.h"
19175 /* System header to define __stub macros and hopefully few prototypes,
19176 which can conflict with char $ac_func(); below. */
19177 #include <assert.h>
19178 /* Override any gcc2 internal prototype to avoid an error. */
19179 /* We use char because int might match the return type of a gcc2
19180 builtin and then its argument prototype would still apply. */
19181 char $ac_func();
19183 int main() {
19185 /* The GNU C library defines this for functions which it implements
19186 to always fail with ENOSYS. Some functions are actually named
19187 something starting with __ and the normal name is an alias. */
19188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19189 choke me
19190 #else
19191 $ac_func();
19192 #endif
19194 ; return 0; }
19196 if { (eval echo configure:19197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19197 rm -rf conftest*
19198 eval "ac_cv_func_$ac_func=yes"
19199 else
19200 echo "configure: failed program was:" >&5
19201 cat conftest.$ac_ext >&5
19202 rm -rf conftest*
19203 eval "ac_cv_func_$ac_func=no"
19205 rm -f conftest*
19208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19209 echo "$ac_t""yes" 1>&6
19210 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19211 cat >> confdefs.h <<EOF
19212 #define $ac_tr_func 1
19215 else
19216 echo "$ac_t""no" 1>&6
19218 done
19220 else
19222 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19223 echo "configure:19224: checking for _powl declaration" >&5
19224 if test x${glibcpp_cv_func__powl_use+set} != xset; then
19225 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19226 echo $ac_n "(cached) $ac_c" 1>&6
19227 else
19230 ac_ext=C
19231 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19232 ac_cpp='$CXXCPP $CPPFLAGS'
19233 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19234 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19235 cross_compiling=$ac_cv_prog_cxx_cross
19237 cat > conftest.$ac_ext <<EOF
19238 #line 19239 "configure"
19239 #include "confdefs.h"
19240 #include <math.h>
19241 int main() {
19242 _powl(0, 0);
19243 ; return 0; }
19245 if { (eval echo configure:19246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19246 rm -rf conftest*
19247 glibcpp_cv_func__powl_use=yes
19248 else
19249 echo "configure: failed program was:" >&5
19250 cat conftest.$ac_ext >&5
19251 rm -rf conftest*
19252 glibcpp_cv_func__powl_use=no
19254 rm -f conftest*
19255 ac_ext=c
19256 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19257 ac_cpp='$CPP $CPPFLAGS'
19258 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19259 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19260 cross_compiling=$ac_cv_prog_cc_cross
19266 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19268 if test x$glibcpp_cv_func__powl_use = x"yes"; then
19269 for ac_func in _powl
19271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19272 echo "configure:19273: checking for $ac_func" >&5
19273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19274 echo $ac_n "(cached) $ac_c" 1>&6
19275 else
19276 cat > conftest.$ac_ext <<EOF
19277 #line 19278 "configure"
19278 #include "confdefs.h"
19279 /* System header to define __stub macros and hopefully few prototypes,
19280 which can conflict with char $ac_func(); below. */
19281 #include <assert.h>
19282 /* Override any gcc2 internal prototype to avoid an error. */
19283 /* We use char because int might match the return type of a gcc2
19284 builtin and then its argument prototype would still apply. */
19285 char $ac_func();
19287 int main() {
19289 /* The GNU C library defines this for functions which it implements
19290 to always fail with ENOSYS. Some functions are actually named
19291 something starting with __ and the normal name is an alias. */
19292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19293 choke me
19294 #else
19295 $ac_func();
19296 #endif
19298 ; return 0; }
19300 if { (eval echo configure:19301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19301 rm -rf conftest*
19302 eval "ac_cv_func_$ac_func=yes"
19303 else
19304 echo "configure: failed program was:" >&5
19305 cat conftest.$ac_ext >&5
19306 rm -rf conftest*
19307 eval "ac_cv_func_$ac_func=no"
19309 rm -f conftest*
19312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19313 echo "$ac_t""yes" 1>&6
19314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19315 cat >> confdefs.h <<EOF
19316 #define $ac_tr_func 1
19319 else
19320 echo "$ac_t""no" 1>&6
19322 done
19329 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19330 echo "configure:19331: checking for sqrtl declaration" >&5
19331 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19332 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19333 echo $ac_n "(cached) $ac_c" 1>&6
19334 else
19337 ac_ext=C
19338 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19339 ac_cpp='$CXXCPP $CPPFLAGS'
19340 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19341 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19342 cross_compiling=$ac_cv_prog_cxx_cross
19344 cat > conftest.$ac_ext <<EOF
19345 #line 19346 "configure"
19346 #include "confdefs.h"
19347 #include <math.h>
19348 #ifdef HAVE_IEEEFP_H
19349 #include <ieeefp.h>
19350 #endif
19352 int main() {
19353 sqrtl(0);
19354 ; return 0; }
19356 if { (eval echo configure:19357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19357 rm -rf conftest*
19358 glibcpp_cv_func_sqrtl_use=yes
19359 else
19360 echo "configure: failed program was:" >&5
19361 cat conftest.$ac_ext >&5
19362 rm -rf conftest*
19363 glibcpp_cv_func_sqrtl_use=no
19365 rm -f conftest*
19366 ac_ext=c
19367 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19368 ac_cpp='$CPP $CPPFLAGS'
19369 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19370 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19371 cross_compiling=$ac_cv_prog_cc_cross
19377 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19379 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19380 for ac_func in sqrtl
19382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19383 echo "configure:19384: checking for $ac_func" >&5
19384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19385 echo $ac_n "(cached) $ac_c" 1>&6
19386 else
19387 cat > conftest.$ac_ext <<EOF
19388 #line 19389 "configure"
19389 #include "confdefs.h"
19390 /* System header to define __stub macros and hopefully few prototypes,
19391 which can conflict with char $ac_func(); below. */
19392 #include <assert.h>
19393 /* Override any gcc2 internal prototype to avoid an error. */
19394 /* We use char because int might match the return type of a gcc2
19395 builtin and then its argument prototype would still apply. */
19396 char $ac_func();
19398 int main() {
19400 /* The GNU C library defines this for functions which it implements
19401 to always fail with ENOSYS. Some functions are actually named
19402 something starting with __ and the normal name is an alias. */
19403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19404 choke me
19405 #else
19406 $ac_func();
19407 #endif
19409 ; return 0; }
19411 if { (eval echo configure:19412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19412 rm -rf conftest*
19413 eval "ac_cv_func_$ac_func=yes"
19414 else
19415 echo "configure: failed program was:" >&5
19416 cat conftest.$ac_ext >&5
19417 rm -rf conftest*
19418 eval "ac_cv_func_$ac_func=no"
19420 rm -f conftest*
19423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19424 echo "$ac_t""yes" 1>&6
19425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19426 cat >> confdefs.h <<EOF
19427 #define $ac_tr_func 1
19430 else
19431 echo "$ac_t""no" 1>&6
19433 done
19435 else
19437 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19438 echo "configure:19439: checking for _sqrtl declaration" >&5
19439 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19440 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19441 echo $ac_n "(cached) $ac_c" 1>&6
19442 else
19445 ac_ext=C
19446 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19447 ac_cpp='$CXXCPP $CPPFLAGS'
19448 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19449 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19450 cross_compiling=$ac_cv_prog_cxx_cross
19452 cat > conftest.$ac_ext <<EOF
19453 #line 19454 "configure"
19454 #include "confdefs.h"
19455 #include <math.h>
19456 #ifdef HAVE_IEEEFP_H
19457 #include <ieeefp.h>
19458 #endif
19460 int main() {
19461 _sqrtl(0);
19462 ; return 0; }
19464 if { (eval echo configure:19465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19465 rm -rf conftest*
19466 glibcpp_cv_func__sqrtl_use=yes
19467 else
19468 echo "configure: failed program was:" >&5
19469 cat conftest.$ac_ext >&5
19470 rm -rf conftest*
19471 glibcpp_cv_func__sqrtl_use=no
19473 rm -f conftest*
19474 ac_ext=c
19475 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19476 ac_cpp='$CPP $CPPFLAGS'
19477 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19478 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19479 cross_compiling=$ac_cv_prog_cc_cross
19485 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19487 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19488 for ac_func in _sqrtl
19490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19491 echo "configure:19492: checking for $ac_func" >&5
19492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19493 echo $ac_n "(cached) $ac_c" 1>&6
19494 else
19495 cat > conftest.$ac_ext <<EOF
19496 #line 19497 "configure"
19497 #include "confdefs.h"
19498 /* System header to define __stub macros and hopefully few prototypes,
19499 which can conflict with char $ac_func(); below. */
19500 #include <assert.h>
19501 /* Override any gcc2 internal prototype to avoid an error. */
19502 /* We use char because int might match the return type of a gcc2
19503 builtin and then its argument prototype would still apply. */
19504 char $ac_func();
19506 int main() {
19508 /* The GNU C library defines this for functions which it implements
19509 to always fail with ENOSYS. Some functions are actually named
19510 something starting with __ and the normal name is an alias. */
19511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19512 choke me
19513 #else
19514 $ac_func();
19515 #endif
19517 ; return 0; }
19519 if { (eval echo configure:19520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19520 rm -rf conftest*
19521 eval "ac_cv_func_$ac_func=yes"
19522 else
19523 echo "configure: failed program was:" >&5
19524 cat conftest.$ac_ext >&5
19525 rm -rf conftest*
19526 eval "ac_cv_func_$ac_func=no"
19528 rm -f conftest*
19531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19532 echo "$ac_t""yes" 1>&6
19533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19534 cat >> confdefs.h <<EOF
19535 #define $ac_tr_func 1
19538 else
19539 echo "$ac_t""no" 1>&6
19541 done
19548 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19549 echo "configure:19550: checking for sincosl declaration" >&5
19550 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19551 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19552 echo $ac_n "(cached) $ac_c" 1>&6
19553 else
19556 ac_ext=C
19557 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19558 ac_cpp='$CXXCPP $CPPFLAGS'
19559 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19560 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19561 cross_compiling=$ac_cv_prog_cxx_cross
19563 cat > conftest.$ac_ext <<EOF
19564 #line 19565 "configure"
19565 #include "confdefs.h"
19566 #include <math.h>
19567 int main() {
19568 sincosl(0, 0, 0);
19569 ; return 0; }
19571 if { (eval echo configure:19572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19572 rm -rf conftest*
19573 glibcpp_cv_func_sincosl_use=yes
19574 else
19575 echo "configure: failed program was:" >&5
19576 cat conftest.$ac_ext >&5
19577 rm -rf conftest*
19578 glibcpp_cv_func_sincosl_use=no
19580 rm -f conftest*
19581 ac_ext=c
19582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19583 ac_cpp='$CPP $CPPFLAGS'
19584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19586 cross_compiling=$ac_cv_prog_cc_cross
19592 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19594 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19595 for ac_func in sincosl
19597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19598 echo "configure:19599: checking for $ac_func" >&5
19599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19600 echo $ac_n "(cached) $ac_c" 1>&6
19601 else
19602 cat > conftest.$ac_ext <<EOF
19603 #line 19604 "configure"
19604 #include "confdefs.h"
19605 /* System header to define __stub macros and hopefully few prototypes,
19606 which can conflict with char $ac_func(); below. */
19607 #include <assert.h>
19608 /* Override any gcc2 internal prototype to avoid an error. */
19609 /* We use char because int might match the return type of a gcc2
19610 builtin and then its argument prototype would still apply. */
19611 char $ac_func();
19613 int main() {
19615 /* The GNU C library defines this for functions which it implements
19616 to always fail with ENOSYS. Some functions are actually named
19617 something starting with __ and the normal name is an alias. */
19618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19619 choke me
19620 #else
19621 $ac_func();
19622 #endif
19624 ; return 0; }
19626 if { (eval echo configure:19627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19627 rm -rf conftest*
19628 eval "ac_cv_func_$ac_func=yes"
19629 else
19630 echo "configure: failed program was:" >&5
19631 cat conftest.$ac_ext >&5
19632 rm -rf conftest*
19633 eval "ac_cv_func_$ac_func=no"
19635 rm -f conftest*
19638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19639 echo "$ac_t""yes" 1>&6
19640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19641 cat >> confdefs.h <<EOF
19642 #define $ac_tr_func 1
19645 else
19646 echo "$ac_t""no" 1>&6
19648 done
19650 else
19652 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19653 echo "configure:19654: checking for _sincosl declaration" >&5
19654 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19655 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19656 echo $ac_n "(cached) $ac_c" 1>&6
19657 else
19660 ac_ext=C
19661 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19662 ac_cpp='$CXXCPP $CPPFLAGS'
19663 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19664 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19665 cross_compiling=$ac_cv_prog_cxx_cross
19667 cat > conftest.$ac_ext <<EOF
19668 #line 19669 "configure"
19669 #include "confdefs.h"
19670 #include <math.h>
19671 int main() {
19672 _sincosl(0, 0, 0);
19673 ; return 0; }
19675 if { (eval echo configure:19676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19676 rm -rf conftest*
19677 glibcpp_cv_func__sincosl_use=yes
19678 else
19679 echo "configure: failed program was:" >&5
19680 cat conftest.$ac_ext >&5
19681 rm -rf conftest*
19682 glibcpp_cv_func__sincosl_use=no
19684 rm -f conftest*
19685 ac_ext=c
19686 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19687 ac_cpp='$CPP $CPPFLAGS'
19688 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19689 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19690 cross_compiling=$ac_cv_prog_cc_cross
19696 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19698 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19699 for ac_func in _sincosl
19701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19702 echo "configure:19703: checking for $ac_func" >&5
19703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19704 echo $ac_n "(cached) $ac_c" 1>&6
19705 else
19706 cat > conftest.$ac_ext <<EOF
19707 #line 19708 "configure"
19708 #include "confdefs.h"
19709 /* System header to define __stub macros and hopefully few prototypes,
19710 which can conflict with char $ac_func(); below. */
19711 #include <assert.h>
19712 /* Override any gcc2 internal prototype to avoid an error. */
19713 /* We use char because int might match the return type of a gcc2
19714 builtin and then its argument prototype would still apply. */
19715 char $ac_func();
19717 int main() {
19719 /* The GNU C library defines this for functions which it implements
19720 to always fail with ENOSYS. Some functions are actually named
19721 something starting with __ and the normal name is an alias. */
19722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19723 choke me
19724 #else
19725 $ac_func();
19726 #endif
19728 ; return 0; }
19730 if { (eval echo configure:19731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19731 rm -rf conftest*
19732 eval "ac_cv_func_$ac_func=yes"
19733 else
19734 echo "configure: failed program was:" >&5
19735 cat conftest.$ac_ext >&5
19736 rm -rf conftest*
19737 eval "ac_cv_func_$ac_func=no"
19739 rm -f conftest*
19742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19743 echo "$ac_t""yes" 1>&6
19744 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19745 cat >> confdefs.h <<EOF
19746 #define $ac_tr_func 1
19749 else
19750 echo "$ac_t""no" 1>&6
19752 done
19759 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19760 echo "configure:19761: checking for finitel declaration" >&5
19761 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19762 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19763 echo $ac_n "(cached) $ac_c" 1>&6
19764 else
19767 ac_ext=C
19768 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19769 ac_cpp='$CXXCPP $CPPFLAGS'
19770 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19771 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19772 cross_compiling=$ac_cv_prog_cxx_cross
19774 cat > conftest.$ac_ext <<EOF
19775 #line 19776 "configure"
19776 #include "confdefs.h"
19777 #include <math.h>
19778 #ifdef HAVE_IEEEFP_H
19779 #include <ieeefp.h>
19780 #endif
19782 int main() {
19783 finitel(0);
19784 ; return 0; }
19786 if { (eval echo configure:19787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19787 rm -rf conftest*
19788 glibcpp_cv_func_finitel_use=yes
19789 else
19790 echo "configure: failed program was:" >&5
19791 cat conftest.$ac_ext >&5
19792 rm -rf conftest*
19793 glibcpp_cv_func_finitel_use=no
19795 rm -f conftest*
19796 ac_ext=c
19797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19798 ac_cpp='$CPP $CPPFLAGS'
19799 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19800 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19801 cross_compiling=$ac_cv_prog_cc_cross
19807 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19809 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19810 for ac_func in finitel
19812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19813 echo "configure:19814: checking for $ac_func" >&5
19814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19815 echo $ac_n "(cached) $ac_c" 1>&6
19816 else
19817 cat > conftest.$ac_ext <<EOF
19818 #line 19819 "configure"
19819 #include "confdefs.h"
19820 /* System header to define __stub macros and hopefully few prototypes,
19821 which can conflict with char $ac_func(); below. */
19822 #include <assert.h>
19823 /* Override any gcc2 internal prototype to avoid an error. */
19824 /* We use char because int might match the return type of a gcc2
19825 builtin and then its argument prototype would still apply. */
19826 char $ac_func();
19828 int main() {
19830 /* The GNU C library defines this for functions which it implements
19831 to always fail with ENOSYS. Some functions are actually named
19832 something starting with __ and the normal name is an alias. */
19833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19834 choke me
19835 #else
19836 $ac_func();
19837 #endif
19839 ; return 0; }
19841 if { (eval echo configure:19842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19842 rm -rf conftest*
19843 eval "ac_cv_func_$ac_func=yes"
19844 else
19845 echo "configure: failed program was:" >&5
19846 cat conftest.$ac_ext >&5
19847 rm -rf conftest*
19848 eval "ac_cv_func_$ac_func=no"
19850 rm -f conftest*
19853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19854 echo "$ac_t""yes" 1>&6
19855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19856 cat >> confdefs.h <<EOF
19857 #define $ac_tr_func 1
19860 else
19861 echo "$ac_t""no" 1>&6
19863 done
19865 else
19867 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19868 echo "configure:19869: checking for _finitel declaration" >&5
19869 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19870 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19871 echo $ac_n "(cached) $ac_c" 1>&6
19872 else
19875 ac_ext=C
19876 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19877 ac_cpp='$CXXCPP $CPPFLAGS'
19878 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19879 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19880 cross_compiling=$ac_cv_prog_cxx_cross
19882 cat > conftest.$ac_ext <<EOF
19883 #line 19884 "configure"
19884 #include "confdefs.h"
19885 #include <math.h>
19886 #ifdef HAVE_IEEEFP_H
19887 #include <ieeefp.h>
19888 #endif
19890 int main() {
19891 _finitel(0);
19892 ; return 0; }
19894 if { (eval echo configure:19895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19895 rm -rf conftest*
19896 glibcpp_cv_func__finitel_use=yes
19897 else
19898 echo "configure: failed program was:" >&5
19899 cat conftest.$ac_ext >&5
19900 rm -rf conftest*
19901 glibcpp_cv_func__finitel_use=no
19903 rm -f conftest*
19904 ac_ext=c
19905 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19906 ac_cpp='$CPP $CPPFLAGS'
19907 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19908 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19909 cross_compiling=$ac_cv_prog_cc_cross
19915 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19917 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19918 for ac_func in _finitel
19920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19921 echo "configure:19922: checking for $ac_func" >&5
19922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19923 echo $ac_n "(cached) $ac_c" 1>&6
19924 else
19925 cat > conftest.$ac_ext <<EOF
19926 #line 19927 "configure"
19927 #include "confdefs.h"
19928 /* System header to define __stub macros and hopefully few prototypes,
19929 which can conflict with char $ac_func(); below. */
19930 #include <assert.h>
19931 /* Override any gcc2 internal prototype to avoid an error. */
19932 /* We use char because int might match the return type of a gcc2
19933 builtin and then its argument prototype would still apply. */
19934 char $ac_func();
19936 int main() {
19938 /* The GNU C library defines this for functions which it implements
19939 to always fail with ENOSYS. Some functions are actually named
19940 something starting with __ and the normal name is an alias. */
19941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19942 choke me
19943 #else
19944 $ac_func();
19945 #endif
19947 ; return 0; }
19949 if { (eval echo configure:19950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19950 rm -rf conftest*
19951 eval "ac_cv_func_$ac_func=yes"
19952 else
19953 echo "configure: failed program was:" >&5
19954 cat conftest.$ac_ext >&5
19955 rm -rf conftest*
19956 eval "ac_cv_func_$ac_func=no"
19958 rm -f conftest*
19961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19962 echo "$ac_t""yes" 1>&6
19963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19964 cat >> confdefs.h <<EOF
19965 #define $ac_tr_func 1
19968 else
19969 echo "$ac_t""no" 1>&6
19971 done
19979 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19980 echo "configure:19981: checking for _float trig functions" >&5
19981 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19982 echo $ac_n "(cached) $ac_c" 1>&6
19983 else
19986 ac_ext=C
19987 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19988 ac_cpp='$CXXCPP $CPPFLAGS'
19989 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19990 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19991 cross_compiling=$ac_cv_prog_cxx_cross
19993 cat > conftest.$ac_ext <<EOF
19994 #line 19995 "configure"
19995 #include "confdefs.h"
19996 #include <math.h>
19997 int main() {
19998 `for x in _acosf _asinf _atanf \
19999 _cosf _sinf _tanf \
20000 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
20001 ; return 0; }
20003 if { (eval echo configure:20004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20004 rm -rf conftest*
20005 glibcpp_cv_func__float_trig_use=yes
20006 else
20007 echo "configure: failed program was:" >&5
20008 cat conftest.$ac_ext >&5
20009 rm -rf conftest*
20010 glibcpp_cv_func__float_trig_use=no
20012 rm -f conftest*
20013 ac_ext=c
20014 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20015 ac_cpp='$CPP $CPPFLAGS'
20016 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20017 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20018 cross_compiling=$ac_cv_prog_cc_cross
20022 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
20023 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
20024 for ac_func in _acosf _asinf _atanf \
20025 _cosf _sinf _tanf \
20026 _coshf _sinhf _tanhf
20028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20029 echo "configure:20030: checking for $ac_func" >&5
20030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20031 echo $ac_n "(cached) $ac_c" 1>&6
20032 else
20033 cat > conftest.$ac_ext <<EOF
20034 #line 20035 "configure"
20035 #include "confdefs.h"
20036 /* System header to define __stub macros and hopefully few prototypes,
20037 which can conflict with char $ac_func(); below. */
20038 #include <assert.h>
20039 /* Override any gcc2 internal prototype to avoid an error. */
20040 /* We use char because int might match the return type of a gcc2
20041 builtin and then its argument prototype would still apply. */
20042 char $ac_func();
20044 int main() {
20046 /* The GNU C library defines this for functions which it implements
20047 to always fail with ENOSYS. Some functions are actually named
20048 something starting with __ and the normal name is an alias. */
20049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20050 choke me
20051 #else
20052 $ac_func();
20053 #endif
20055 ; return 0; }
20057 if { (eval echo configure:20058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20058 rm -rf conftest*
20059 eval "ac_cv_func_$ac_func=yes"
20060 else
20061 echo "configure: failed program was:" >&5
20062 cat conftest.$ac_ext >&5
20063 rm -rf conftest*
20064 eval "ac_cv_func_$ac_func=no"
20066 rm -f conftest*
20069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20070 echo "$ac_t""yes" 1>&6
20071 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20072 cat >> confdefs.h <<EOF
20073 #define $ac_tr_func 1
20076 else
20077 echo "$ac_t""no" 1>&6
20079 done
20084 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20085 echo "configure:20086: checking for _float round functions" >&5
20086 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20087 echo $ac_n "(cached) $ac_c" 1>&6
20088 else
20091 ac_ext=C
20092 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20093 ac_cpp='$CXXCPP $CPPFLAGS'
20094 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20095 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20096 cross_compiling=$ac_cv_prog_cxx_cross
20098 cat > conftest.$ac_ext <<EOF
20099 #line 20100 "configure"
20100 #include "confdefs.h"
20101 #include <math.h>
20102 int main() {
20103 `for x in _ceilf _floorf; do echo "$x (0);"; done`
20104 ; return 0; }
20106 if { (eval echo configure:20107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20107 rm -rf conftest*
20108 glibcpp_cv_func__float_round_use=yes
20109 else
20110 echo "configure: failed program was:" >&5
20111 cat conftest.$ac_ext >&5
20112 rm -rf conftest*
20113 glibcpp_cv_func__float_round_use=no
20115 rm -f conftest*
20116 ac_ext=c
20117 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20118 ac_cpp='$CPP $CPPFLAGS'
20119 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20120 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20121 cross_compiling=$ac_cv_prog_cc_cross
20125 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20126 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20127 for ac_func in _ceilf _floorf
20129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20130 echo "configure:20131: checking for $ac_func" >&5
20131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20132 echo $ac_n "(cached) $ac_c" 1>&6
20133 else
20134 cat > conftest.$ac_ext <<EOF
20135 #line 20136 "configure"
20136 #include "confdefs.h"
20137 /* System header to define __stub macros and hopefully few prototypes,
20138 which can conflict with char $ac_func(); below. */
20139 #include <assert.h>
20140 /* Override any gcc2 internal prototype to avoid an error. */
20141 /* We use char because int might match the return type of a gcc2
20142 builtin and then its argument prototype would still apply. */
20143 char $ac_func();
20145 int main() {
20147 /* The GNU C library defines this for functions which it implements
20148 to always fail with ENOSYS. Some functions are actually named
20149 something starting with __ and the normal name is an alias. */
20150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20151 choke me
20152 #else
20153 $ac_func();
20154 #endif
20156 ; return 0; }
20158 if { (eval echo configure:20159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20159 rm -rf conftest*
20160 eval "ac_cv_func_$ac_func=yes"
20161 else
20162 echo "configure: failed program was:" >&5
20163 cat conftest.$ac_ext >&5
20164 rm -rf conftest*
20165 eval "ac_cv_func_$ac_func=no"
20167 rm -f conftest*
20170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20171 echo "$ac_t""yes" 1>&6
20172 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20173 cat >> confdefs.h <<EOF
20174 #define $ac_tr_func 1
20177 else
20178 echo "$ac_t""no" 1>&6
20180 done
20186 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20187 echo "configure:20188: checking for _long double trig functions" >&5
20188 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20189 echo $ac_n "(cached) $ac_c" 1>&6
20190 else
20193 ac_ext=C
20194 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20195 ac_cpp='$CXXCPP $CPPFLAGS'
20196 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20197 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20198 cross_compiling=$ac_cv_prog_cxx_cross
20200 cat > conftest.$ac_ext <<EOF
20201 #line 20202 "configure"
20202 #include "confdefs.h"
20203 #include <math.h>
20204 int main() {
20205 `for x in _acosl _asinl _atanl \
20206 _cosl _sinl _tanl \
20207 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
20208 ; return 0; }
20210 if { (eval echo configure:20211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20211 rm -rf conftest*
20212 glibcpp_cv_func__long_double_trig_use=yes
20213 else
20214 echo "configure: failed program was:" >&5
20215 cat conftest.$ac_ext >&5
20216 rm -rf conftest*
20217 glibcpp_cv_func__long_double_trig_use=no
20219 rm -f conftest*
20220 ac_ext=c
20221 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20222 ac_cpp='$CPP $CPPFLAGS'
20223 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20224 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20225 cross_compiling=$ac_cv_prog_cc_cross
20229 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20230 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20231 for ac_func in _acosl _asinl _atanl \
20232 _cosl _sinl _tanl \
20233 _coshl _sinhl _tanhl
20235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20236 echo "configure:20237: checking for $ac_func" >&5
20237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20238 echo $ac_n "(cached) $ac_c" 1>&6
20239 else
20240 cat > conftest.$ac_ext <<EOF
20241 #line 20242 "configure"
20242 #include "confdefs.h"
20243 /* System header to define __stub macros and hopefully few prototypes,
20244 which can conflict with char $ac_func(); below. */
20245 #include <assert.h>
20246 /* Override any gcc2 internal prototype to avoid an error. */
20247 /* We use char because int might match the return type of a gcc2
20248 builtin and then its argument prototype would still apply. */
20249 char $ac_func();
20251 int main() {
20253 /* The GNU C library defines this for functions which it implements
20254 to always fail with ENOSYS. Some functions are actually named
20255 something starting with __ and the normal name is an alias. */
20256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20257 choke me
20258 #else
20259 $ac_func();
20260 #endif
20262 ; return 0; }
20264 if { (eval echo configure:20265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20265 rm -rf conftest*
20266 eval "ac_cv_func_$ac_func=yes"
20267 else
20268 echo "configure: failed program was:" >&5
20269 cat conftest.$ac_ext >&5
20270 rm -rf conftest*
20271 eval "ac_cv_func_$ac_func=no"
20273 rm -f conftest*
20276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20277 echo "$ac_t""yes" 1>&6
20278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20279 cat >> confdefs.h <<EOF
20280 #define $ac_tr_func 1
20283 else
20284 echo "$ac_t""no" 1>&6
20286 done
20291 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20292 echo "configure:20293: checking for _long double round functions" >&5
20293 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20294 echo $ac_n "(cached) $ac_c" 1>&6
20295 else
20298 ac_ext=C
20299 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20300 ac_cpp='$CXXCPP $CPPFLAGS'
20301 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20302 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20303 cross_compiling=$ac_cv_prog_cxx_cross
20305 cat > conftest.$ac_ext <<EOF
20306 #line 20307 "configure"
20307 #include "confdefs.h"
20308 #include <math.h>
20309 int main() {
20310 `for x in _ceill _floorl; do echo "$x (0);"; done`
20311 ; return 0; }
20313 if { (eval echo configure:20314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20314 rm -rf conftest*
20315 glibcpp_cv_func__long_double_round_use=yes
20316 else
20317 echo "configure: failed program was:" >&5
20318 cat conftest.$ac_ext >&5
20319 rm -rf conftest*
20320 glibcpp_cv_func__long_double_round_use=no
20322 rm -f conftest*
20323 ac_ext=c
20324 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20325 ac_cpp='$CPP $CPPFLAGS'
20326 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20327 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20328 cross_compiling=$ac_cv_prog_cc_cross
20332 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20333 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20334 for ac_func in _ceill _floorl
20336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20337 echo "configure:20338: checking for $ac_func" >&5
20338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20339 echo $ac_n "(cached) $ac_c" 1>&6
20340 else
20341 cat > conftest.$ac_ext <<EOF
20342 #line 20343 "configure"
20343 #include "confdefs.h"
20344 /* System header to define __stub macros and hopefully few prototypes,
20345 which can conflict with char $ac_func(); below. */
20346 #include <assert.h>
20347 /* Override any gcc2 internal prototype to avoid an error. */
20348 /* We use char because int might match the return type of a gcc2
20349 builtin and then its argument prototype would still apply. */
20350 char $ac_func();
20352 int main() {
20354 /* The GNU C library defines this for functions which it implements
20355 to always fail with ENOSYS. Some functions are actually named
20356 something starting with __ and the normal name is an alias. */
20357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20358 choke me
20359 #else
20360 $ac_func();
20361 #endif
20363 ; return 0; }
20365 if { (eval echo configure:20366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20366 rm -rf conftest*
20367 eval "ac_cv_func_$ac_func=yes"
20368 else
20369 echo "configure: failed program was:" >&5
20370 cat conftest.$ac_ext >&5
20371 rm -rf conftest*
20372 eval "ac_cv_func_$ac_func=no"
20374 rm -f conftest*
20377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20378 echo "$ac_t""yes" 1>&6
20379 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20380 cat >> confdefs.h <<EOF
20381 #define $ac_tr_func 1
20384 else
20385 echo "$ac_t""no" 1>&6
20387 done
20392 LIBS="$ac_save_LIBS"
20393 CXXFLAGS="$ac_save_CXXFLAGS"
20396 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
20397 echo "configure:20398: checking for main in -lm" >&5
20398 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
20399 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20400 echo $ac_n "(cached) $ac_c" 1>&6
20401 else
20402 ac_save_LIBS="$LIBS"
20403 LIBS="-lm $LIBS"
20404 cat > conftest.$ac_ext <<EOF
20405 #line 20406 "configure"
20406 #include "confdefs.h"
20408 int main() {
20409 main()
20410 ; return 0; }
20412 if { (eval echo configure:20413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20413 rm -rf conftest*
20414 eval "ac_cv_lib_$ac_lib_var=yes"
20415 else
20416 echo "configure: failed program was:" >&5
20417 cat conftest.$ac_ext >&5
20418 rm -rf conftest*
20419 eval "ac_cv_lib_$ac_lib_var=no"
20421 rm -f conftest*
20422 LIBS="$ac_save_LIBS"
20425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20426 echo "$ac_t""yes" 1>&6
20427 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
20428 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
20429 cat >> confdefs.h <<EOF
20430 #define $ac_tr_lib 1
20433 LIBS="-lm $LIBS"
20435 else
20436 echo "$ac_t""no" 1>&6
20439 for ac_func in nan copysignf
20441 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20442 echo "configure:20443: checking for $ac_func" >&5
20443 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20444 echo $ac_n "(cached) $ac_c" 1>&6
20445 else
20446 cat > conftest.$ac_ext <<EOF
20447 #line 20448 "configure"
20448 #include "confdefs.h"
20449 /* System header to define __stub macros and hopefully few prototypes,
20450 which can conflict with char $ac_func(); below. */
20451 #include <assert.h>
20452 /* Override any gcc2 internal prototype to avoid an error. */
20453 /* We use char because int might match the return type of a gcc2
20454 builtin and then its argument prototype would still apply. */
20455 char $ac_func();
20457 int main() {
20459 /* The GNU C library defines this for functions which it implements
20460 to always fail with ENOSYS. Some functions are actually named
20461 something starting with __ and the normal name is an alias. */
20462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20463 choke me
20464 #else
20465 $ac_func();
20466 #endif
20468 ; return 0; }
20470 if { (eval echo configure:20471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20471 rm -rf conftest*
20472 eval "ac_cv_func_$ac_func=yes"
20473 else
20474 echo "configure: failed program was:" >&5
20475 cat conftest.$ac_ext >&5
20476 rm -rf conftest*
20477 eval "ac_cv_func_$ac_func=no"
20479 rm -f conftest*
20482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20483 echo "$ac_t""yes" 1>&6
20484 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20485 cat >> confdefs.h <<EOF
20486 #define $ac_tr_func 1
20489 else
20490 echo "$ac_t""no" 1>&6
20491 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
20493 done
20496 for ac_func in __signbit
20498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20499 echo "configure:20500: checking for $ac_func" >&5
20500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20501 echo $ac_n "(cached) $ac_c" 1>&6
20502 else
20503 cat > conftest.$ac_ext <<EOF
20504 #line 20505 "configure"
20505 #include "confdefs.h"
20506 /* System header to define __stub macros and hopefully few prototypes,
20507 which can conflict with char $ac_func(); below. */
20508 #include <assert.h>
20509 /* Override any gcc2 internal prototype to avoid an error. */
20510 /* We use char because int might match the return type of a gcc2
20511 builtin and then its argument prototype would still apply. */
20512 char $ac_func();
20514 int main() {
20516 /* The GNU C library defines this for functions which it implements
20517 to always fail with ENOSYS. Some functions are actually named
20518 something starting with __ and the normal name is an alias. */
20519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20520 choke me
20521 #else
20522 $ac_func();
20523 #endif
20525 ; return 0; }
20527 if { (eval echo configure:20528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20528 rm -rf conftest*
20529 eval "ac_cv_func_$ac_func=yes"
20530 else
20531 echo "configure: failed program was:" >&5
20532 cat conftest.$ac_ext >&5
20533 rm -rf conftest*
20534 eval "ac_cv_func_$ac_func=no"
20536 rm -f conftest*
20539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20540 echo "$ac_t""yes" 1>&6
20541 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20542 cat >> confdefs.h <<EOF
20543 #define $ac_tr_func 1
20546 else
20547 echo "$ac_t""no" 1>&6
20548 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
20550 done
20552 for ac_func in __signbitf
20554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20555 echo "configure:20556: checking for $ac_func" >&5
20556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20557 echo $ac_n "(cached) $ac_c" 1>&6
20558 else
20559 cat > conftest.$ac_ext <<EOF
20560 #line 20561 "configure"
20561 #include "confdefs.h"
20562 /* System header to define __stub macros and hopefully few prototypes,
20563 which can conflict with char $ac_func(); below. */
20564 #include <assert.h>
20565 /* Override any gcc2 internal prototype to avoid an error. */
20566 /* We use char because int might match the return type of a gcc2
20567 builtin and then its argument prototype would still apply. */
20568 char $ac_func();
20570 int main() {
20572 /* The GNU C library defines this for functions which it implements
20573 to always fail with ENOSYS. Some functions are actually named
20574 something starting with __ and the normal name is an alias. */
20575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20576 choke me
20577 #else
20578 $ac_func();
20579 #endif
20581 ; return 0; }
20583 if { (eval echo configure:20584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20584 rm -rf conftest*
20585 eval "ac_cv_func_$ac_func=yes"
20586 else
20587 echo "configure: failed program was:" >&5
20588 cat conftest.$ac_ext >&5
20589 rm -rf conftest*
20590 eval "ac_cv_func_$ac_func=no"
20592 rm -f conftest*
20595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20596 echo "$ac_t""yes" 1>&6
20597 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20598 cat >> confdefs.h <<EOF
20599 #define $ac_tr_func 1
20602 else
20603 echo "$ac_t""no" 1>&6
20604 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
20606 done
20609 if test x$ac_cv_func_copysignl = x"yes"; then
20610 for ac_func in __signbitl
20612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20613 echo "configure:20614: checking for $ac_func" >&5
20614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20615 echo $ac_n "(cached) $ac_c" 1>&6
20616 else
20617 cat > conftest.$ac_ext <<EOF
20618 #line 20619 "configure"
20619 #include "confdefs.h"
20620 /* System header to define __stub macros and hopefully few prototypes,
20621 which can conflict with char $ac_func(); below. */
20622 #include <assert.h>
20623 /* Override any gcc2 internal prototype to avoid an error. */
20624 /* We use char because int might match the return type of a gcc2
20625 builtin and then its argument prototype would still apply. */
20626 char $ac_func();
20628 int main() {
20630 /* The GNU C library defines this for functions which it implements
20631 to always fail with ENOSYS. Some functions are actually named
20632 something starting with __ and the normal name is an alias. */
20633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20634 choke me
20635 #else
20636 $ac_func();
20637 #endif
20639 ; return 0; }
20641 if { (eval echo configure:20642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20642 rm -rf conftest*
20643 eval "ac_cv_func_$ac_func=yes"
20644 else
20645 echo "configure: failed program was:" >&5
20646 cat conftest.$ac_ext >&5
20647 rm -rf conftest*
20648 eval "ac_cv_func_$ac_func=no"
20650 rm -f conftest*
20653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20654 echo "$ac_t""yes" 1>&6
20655 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20656 cat >> confdefs.h <<EOF
20657 #define $ac_tr_func 1
20660 else
20661 echo "$ac_t""no" 1>&6
20662 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
20664 done
20672 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
20673 echo "configure:20674: checking for mbstate_t" >&5
20674 cat > conftest.$ac_ext <<EOF
20675 #line 20676 "configure"
20676 #include "confdefs.h"
20677 #include <wchar.h>
20678 int main() {
20679 mbstate_t teststate;
20680 ; return 0; }
20682 if { (eval echo configure:20683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20683 rm -rf conftest*
20684 have_mbstate_t=yes
20685 else
20686 echo "configure: failed program was:" >&5
20687 cat conftest.$ac_ext >&5
20688 rm -rf conftest*
20689 have_mbstate_t=no
20691 rm -f conftest*
20692 echo "$ac_t""$have_mbstate_t" 1>&6
20693 if test x"$have_mbstate_t" = xyes; then
20694 cat >> confdefs.h <<\EOF
20695 #define HAVE_MBSTATE_T 1
20700 for ac_hdr in wchar.h
20702 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20703 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20704 echo "configure:20705: checking for $ac_hdr" >&5
20705 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20706 echo $ac_n "(cached) $ac_c" 1>&6
20707 else
20708 cat > conftest.$ac_ext <<EOF
20709 #line 20710 "configure"
20710 #include "confdefs.h"
20711 #include <$ac_hdr>
20713 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20714 { (eval echo configure:20715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20715 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20716 if test -z "$ac_err"; then
20717 rm -rf conftest*
20718 eval "ac_cv_header_$ac_safe=yes"
20719 else
20720 echo "$ac_err" >&5
20721 echo "configure: failed program was:" >&5
20722 cat conftest.$ac_ext >&5
20723 rm -rf conftest*
20724 eval "ac_cv_header_$ac_safe=no"
20726 rm -f conftest*
20728 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20729 echo "$ac_t""yes" 1>&6
20730 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20731 cat >> confdefs.h <<EOF
20732 #define $ac_tr_hdr 1
20734 ac_has_wchar_h=yes
20735 else
20736 echo "$ac_t""no" 1>&6
20737 ac_has_wchar_h=no
20739 done
20741 for ac_hdr in wctype.h
20743 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20744 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20745 echo "configure:20746: checking for $ac_hdr" >&5
20746 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20747 echo $ac_n "(cached) $ac_c" 1>&6
20748 else
20749 cat > conftest.$ac_ext <<EOF
20750 #line 20751 "configure"
20751 #include "confdefs.h"
20752 #include <$ac_hdr>
20754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20755 { (eval echo configure:20756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20757 if test -z "$ac_err"; then
20758 rm -rf conftest*
20759 eval "ac_cv_header_$ac_safe=yes"
20760 else
20761 echo "$ac_err" >&5
20762 echo "configure: failed program was:" >&5
20763 cat conftest.$ac_ext >&5
20764 rm -rf conftest*
20765 eval "ac_cv_header_$ac_safe=no"
20767 rm -f conftest*
20769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20770 echo "$ac_t""yes" 1>&6
20771 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20772 cat >> confdefs.h <<EOF
20773 #define $ac_tr_hdr 1
20775 ac_has_wctype_h=yes
20776 else
20777 echo "$ac_t""no" 1>&6
20778 ac_has_wctype_h=no
20780 done
20783 if test x"$ac_has_wchar_h" = xyes &&
20784 test x"$ac_has_wctype_h" = xyes &&
20785 test x"$enable_c_mbchar" != xno; then
20787 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
20788 echo "configure:20789: checking for WCHAR_MIN and WCHAR_MAX" >&5
20789 cat > conftest.$ac_ext <<EOF
20790 #line 20791 "configure"
20791 #include "confdefs.h"
20792 #include <wchar.h>
20793 int main() {
20794 int i = WCHAR_MIN; int j = WCHAR_MAX;
20795 ; return 0; }
20797 if { (eval echo configure:20798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20798 rm -rf conftest*
20799 has_wchar_minmax=yes
20800 else
20801 echo "configure: failed program was:" >&5
20802 cat conftest.$ac_ext >&5
20803 rm -rf conftest*
20804 has_wchar_minmax=no
20806 rm -f conftest*
20807 echo "$ac_t""$has_wchar_minmax" 1>&6
20809 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
20810 echo "configure:20811: checking for WEOF" >&5
20811 cat > conftest.$ac_ext <<EOF
20812 #line 20813 "configure"
20813 #include "confdefs.h"
20815 #include <wchar.h>
20816 #include <stddef.h>
20817 int main() {
20818 wint_t i = WEOF;
20819 ; return 0; }
20821 if { (eval echo configure:20822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20822 rm -rf conftest*
20823 has_weof=yes
20824 else
20825 echo "configure: failed program was:" >&5
20826 cat conftest.$ac_ext >&5
20827 rm -rf conftest*
20828 has_weof=no
20830 rm -f conftest*
20831 echo "$ac_t""$has_weof" 1>&6
20833 ac_wfuncs=yes
20834 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
20836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20837 echo "configure:20838: checking for $ac_func" >&5
20838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20839 echo $ac_n "(cached) $ac_c" 1>&6
20840 else
20841 cat > conftest.$ac_ext <<EOF
20842 #line 20843 "configure"
20843 #include "confdefs.h"
20844 /* System header to define __stub macros and hopefully few prototypes,
20845 which can conflict with char $ac_func(); below. */
20846 #include <assert.h>
20847 /* Override any gcc2 internal prototype to avoid an error. */
20848 /* We use char because int might match the return type of a gcc2
20849 builtin and then its argument prototype would still apply. */
20850 char $ac_func();
20852 int main() {
20854 /* The GNU C library defines this for functions which it implements
20855 to always fail with ENOSYS. Some functions are actually named
20856 something starting with __ and the normal name is an alias. */
20857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20858 choke me
20859 #else
20860 $ac_func();
20861 #endif
20863 ; return 0; }
20865 if { (eval echo configure:20866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20866 rm -rf conftest*
20867 eval "ac_cv_func_$ac_func=yes"
20868 else
20869 echo "configure: failed program was:" >&5
20870 cat conftest.$ac_ext >&5
20871 rm -rf conftest*
20872 eval "ac_cv_func_$ac_func=no"
20874 rm -f conftest*
20877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20878 echo "$ac_t""yes" 1>&6
20879 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20880 cat >> confdefs.h <<EOF
20881 #define $ac_tr_func 1
20884 else
20885 echo "$ac_t""no" 1>&6
20887 ac_wfuncs=no
20889 done
20892 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
20893 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
20894 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
20895 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
20896 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
20897 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
20899 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20900 echo "configure:20901: checking for $ac_func" >&5
20901 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20902 echo $ac_n "(cached) $ac_c" 1>&6
20903 else
20904 cat > conftest.$ac_ext <<EOF
20905 #line 20906 "configure"
20906 #include "confdefs.h"
20907 /* System header to define __stub macros and hopefully few prototypes,
20908 which can conflict with char $ac_func(); below. */
20909 #include <assert.h>
20910 /* Override any gcc2 internal prototype to avoid an error. */
20911 /* We use char because int might match the return type of a gcc2
20912 builtin and then its argument prototype would still apply. */
20913 char $ac_func();
20915 int main() {
20917 /* The GNU C library defines this for functions which it implements
20918 to always fail with ENOSYS. Some functions are actually named
20919 something starting with __ and the normal name is an alias. */
20920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20921 choke me
20922 #else
20923 $ac_func();
20924 #endif
20926 ; return 0; }
20928 if { (eval echo configure:20929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20929 rm -rf conftest*
20930 eval "ac_cv_func_$ac_func=yes"
20931 else
20932 echo "configure: failed program was:" >&5
20933 cat conftest.$ac_ext >&5
20934 rm -rf conftest*
20935 eval "ac_cv_func_$ac_func=no"
20937 rm -f conftest*
20940 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20941 echo "$ac_t""yes" 1>&6
20942 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20943 cat >> confdefs.h <<EOF
20944 #define $ac_tr_func 1
20947 else
20948 echo "$ac_t""no" 1>&6
20950 ac_wfuncs=no
20952 done
20955 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
20956 echo "configure:20957: checking for ISO C99 wchar_t support" >&5
20957 if test x"$has_weof" = xyes &&
20958 test x"$has_wchar_minmax" = xyes &&
20959 test x"$ac_wfuncs" = xyes; then
20960 ac_isoC99_wchar_t=yes
20961 else
20962 ac_isoC99_wchar_t=no
20964 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
20966 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
20967 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
20968 echo "configure:20969: checking for iconv.h" >&5
20969 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20970 echo $ac_n "(cached) $ac_c" 1>&6
20971 else
20972 cat > conftest.$ac_ext <<EOF
20973 #line 20974 "configure"
20974 #include "confdefs.h"
20975 #include <iconv.h>
20977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20978 { (eval echo configure:20979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20980 if test -z "$ac_err"; then
20981 rm -rf conftest*
20982 eval "ac_cv_header_$ac_safe=yes"
20983 else
20984 echo "$ac_err" >&5
20985 echo "configure: failed program was:" >&5
20986 cat conftest.$ac_ext >&5
20987 rm -rf conftest*
20988 eval "ac_cv_header_$ac_safe=no"
20990 rm -f conftest*
20992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20993 echo "$ac_t""yes" 1>&6
20994 ac_has_iconv_h=yes
20995 else
20996 echo "$ac_t""no" 1>&6
20997 ac_has_iconv_h=no
21000 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
21001 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
21002 echo "configure:21003: checking for langinfo.h" >&5
21003 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21004 echo $ac_n "(cached) $ac_c" 1>&6
21005 else
21006 cat > conftest.$ac_ext <<EOF
21007 #line 21008 "configure"
21008 #include "confdefs.h"
21009 #include <langinfo.h>
21011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21012 { (eval echo configure:21013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21014 if test -z "$ac_err"; then
21015 rm -rf conftest*
21016 eval "ac_cv_header_$ac_safe=yes"
21017 else
21018 echo "$ac_err" >&5
21019 echo "configure: failed program was:" >&5
21020 cat conftest.$ac_ext >&5
21021 rm -rf conftest*
21022 eval "ac_cv_header_$ac_safe=no"
21024 rm -f conftest*
21026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21027 echo "$ac_t""yes" 1>&6
21028 ac_has_langinfo_h=yes
21029 else
21030 echo "$ac_t""no" 1>&6
21031 ac_has_langinfo_h=no
21035 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
21036 echo "configure:21037: checking for iconv in -liconv" >&5
21037 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
21038 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21039 echo $ac_n "(cached) $ac_c" 1>&6
21040 else
21041 ac_save_LIBS="$LIBS"
21042 LIBS="-liconv $LIBS"
21043 cat > conftest.$ac_ext <<EOF
21044 #line 21045 "configure"
21045 #include "confdefs.h"
21046 /* Override any gcc2 internal prototype to avoid an error. */
21047 /* We use char because int might match the return type of a gcc2
21048 builtin and then its argument prototype would still apply. */
21049 char iconv();
21051 int main() {
21052 iconv()
21053 ; return 0; }
21055 if { (eval echo configure:21056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21056 rm -rf conftest*
21057 eval "ac_cv_lib_$ac_lib_var=yes"
21058 else
21059 echo "configure: failed program was:" >&5
21060 cat conftest.$ac_ext >&5
21061 rm -rf conftest*
21062 eval "ac_cv_lib_$ac_lib_var=no"
21064 rm -f conftest*
21065 LIBS="$ac_save_LIBS"
21068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21069 echo "$ac_t""yes" 1>&6
21070 libiconv="-liconv"
21071 else
21072 echo "$ac_t""no" 1>&6
21075 ac_save_LIBS="$LIBS"
21076 LIBS="$LIBS $libiconv"
21078 for ac_func in iconv_open iconv_close iconv nl_langinfo
21080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21081 echo "configure:21082: checking for $ac_func" >&5
21082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21083 echo $ac_n "(cached) $ac_c" 1>&6
21084 else
21085 cat > conftest.$ac_ext <<EOF
21086 #line 21087 "configure"
21087 #include "confdefs.h"
21088 /* System header to define __stub macros and hopefully few prototypes,
21089 which can conflict with char $ac_func(); below. */
21090 #include <assert.h>
21091 /* Override any gcc2 internal prototype to avoid an error. */
21092 /* We use char because int might match the return type of a gcc2
21093 builtin and then its argument prototype would still apply. */
21094 char $ac_func();
21096 int main() {
21098 /* The GNU C library defines this for functions which it implements
21099 to always fail with ENOSYS. Some functions are actually named
21100 something starting with __ and the normal name is an alias. */
21101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21102 choke me
21103 #else
21104 $ac_func();
21105 #endif
21107 ; return 0; }
21109 if { (eval echo configure:21110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21110 rm -rf conftest*
21111 eval "ac_cv_func_$ac_func=yes"
21112 else
21113 echo "configure: failed program was:" >&5
21114 cat conftest.$ac_ext >&5
21115 rm -rf conftest*
21116 eval "ac_cv_func_$ac_func=no"
21118 rm -f conftest*
21121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21122 echo "$ac_t""yes" 1>&6
21123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21124 cat >> confdefs.h <<EOF
21125 #define $ac_tr_func 1
21128 ac_XPG2funcs=yes
21129 else
21130 echo "$ac_t""no" 1>&6
21131 ac_XPG2funcs=no
21133 done
21136 LIBS="$ac_save_LIBS"
21138 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
21139 echo "configure:21140: checking for XPG2 wchar_t support" >&5
21140 if test x"$ac_has_iconv_h" = xyes &&
21141 test x"$ac_has_langinfo_h" = xyes &&
21142 test x"$ac_XPG2funcs" = xyes; then
21143 ac_XPG2_wchar_t=yes
21144 else
21145 ac_XPG2_wchar_t=no
21147 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
21149 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
21150 echo "configure:21151: checking for enabled wchar_t specializations" >&5
21151 if test x"$ac_isoC99_wchar_t" = xyes &&
21152 test x"$ac_XPG2_wchar_t" = xyes; then
21153 cat >> confdefs.h <<\EOF
21154 #define _GLIBCPP_USE_WCHAR_T 1
21157 echo "$ac_t"""yes"" 1>&6
21158 else
21159 echo "$ac_t"""no"" 1>&6
21161 else
21162 echo "configure: warning: wchar_t support disabled." 1>&2
21166 ac_test_CXXFLAGS="${CXXFLAGS+set}"
21167 ac_save_CXXFLAGS="$CXXFLAGS"
21168 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
21171 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
21172 echo "configure:21173: checking for strtold declaration" >&5
21173 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
21174 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
21175 echo $ac_n "(cached) $ac_c" 1>&6
21176 else
21179 ac_ext=C
21180 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21181 ac_cpp='$CXXCPP $CPPFLAGS'
21182 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21183 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21184 cross_compiling=$ac_cv_prog_cxx_cross
21186 cat > conftest.$ac_ext <<EOF
21187 #line 21188 "configure"
21188 #include "confdefs.h"
21189 #include <stdlib.h>
21190 int main() {
21191 strtold(0, 0);
21192 ; return 0; }
21194 if { (eval echo configure:21195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21195 rm -rf conftest*
21196 glibcpp_cv_func_strtold_use=yes
21197 else
21198 echo "configure: failed program was:" >&5
21199 cat conftest.$ac_ext >&5
21200 rm -rf conftest*
21201 glibcpp_cv_func_strtold_use=no
21203 rm -f conftest*
21204 ac_ext=c
21205 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21206 ac_cpp='$CPP $CPPFLAGS'
21207 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21208 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21209 cross_compiling=$ac_cv_prog_cc_cross
21215 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
21216 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
21217 for ac_func in strtold
21219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21220 echo "configure:21221: checking for $ac_func" >&5
21221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21222 echo $ac_n "(cached) $ac_c" 1>&6
21223 else
21224 cat > conftest.$ac_ext <<EOF
21225 #line 21226 "configure"
21226 #include "confdefs.h"
21227 /* System header to define __stub macros and hopefully few prototypes,
21228 which can conflict with char $ac_func(); below. */
21229 #include <assert.h>
21230 /* Override any gcc2 internal prototype to avoid an error. */
21231 /* We use char because int might match the return type of a gcc2
21232 builtin and then its argument prototype would still apply. */
21233 char $ac_func();
21235 int main() {
21237 /* The GNU C library defines this for functions which it implements
21238 to always fail with ENOSYS. Some functions are actually named
21239 something starting with __ and the normal name is an alias. */
21240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21241 choke me
21242 #else
21243 $ac_func();
21244 #endif
21246 ; return 0; }
21248 if { (eval echo configure:21249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21249 rm -rf conftest*
21250 eval "ac_cv_func_$ac_func=yes"
21251 else
21252 echo "configure: failed program was:" >&5
21253 cat conftest.$ac_ext >&5
21254 rm -rf conftest*
21255 eval "ac_cv_func_$ac_func=no"
21257 rm -f conftest*
21260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21261 echo "$ac_t""yes" 1>&6
21262 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21263 cat >> confdefs.h <<EOF
21264 #define $ac_tr_func 1
21267 else
21268 echo "$ac_t""no" 1>&6
21270 done
21275 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
21276 echo "configure:21277: checking for strtof declaration" >&5
21277 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
21278 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
21279 echo $ac_n "(cached) $ac_c" 1>&6
21280 else
21283 ac_ext=C
21284 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21285 ac_cpp='$CXXCPP $CPPFLAGS'
21286 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21287 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21288 cross_compiling=$ac_cv_prog_cxx_cross
21290 cat > conftest.$ac_ext <<EOF
21291 #line 21292 "configure"
21292 #include "confdefs.h"
21293 #include <stdlib.h>
21294 int main() {
21295 strtof(0, 0);
21296 ; return 0; }
21298 if { (eval echo configure:21299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21299 rm -rf conftest*
21300 glibcpp_cv_func_strtof_use=yes
21301 else
21302 echo "configure: failed program was:" >&5
21303 cat conftest.$ac_ext >&5
21304 rm -rf conftest*
21305 glibcpp_cv_func_strtof_use=no
21307 rm -f conftest*
21308 ac_ext=c
21309 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21310 ac_cpp='$CPP $CPPFLAGS'
21311 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21312 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21313 cross_compiling=$ac_cv_prog_cc_cross
21319 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
21320 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
21321 for ac_func in strtof
21323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21324 echo "configure:21325: checking for $ac_func" >&5
21325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21326 echo $ac_n "(cached) $ac_c" 1>&6
21327 else
21328 cat > conftest.$ac_ext <<EOF
21329 #line 21330 "configure"
21330 #include "confdefs.h"
21331 /* System header to define __stub macros and hopefully few prototypes,
21332 which can conflict with char $ac_func(); below. */
21333 #include <assert.h>
21334 /* Override any gcc2 internal prototype to avoid an error. */
21335 /* We use char because int might match the return type of a gcc2
21336 builtin and then its argument prototype would still apply. */
21337 char $ac_func();
21339 int main() {
21341 /* The GNU C library defines this for functions which it implements
21342 to always fail with ENOSYS. Some functions are actually named
21343 something starting with __ and the normal name is an alias. */
21344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21345 choke me
21346 #else
21347 $ac_func();
21348 #endif
21350 ; return 0; }
21352 if { (eval echo configure:21353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21353 rm -rf conftest*
21354 eval "ac_cv_func_$ac_func=yes"
21355 else
21356 echo "configure: failed program was:" >&5
21357 cat conftest.$ac_ext >&5
21358 rm -rf conftest*
21359 eval "ac_cv_func_$ac_func=no"
21361 rm -f conftest*
21364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21365 echo "$ac_t""yes" 1>&6
21366 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21367 cat >> confdefs.h <<EOF
21368 #define $ac_tr_func 1
21371 else
21372 echo "$ac_t""no" 1>&6
21374 done
21378 for ac_func in drand48
21380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21381 echo "configure:21382: checking for $ac_func" >&5
21382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21383 echo $ac_n "(cached) $ac_c" 1>&6
21384 else
21385 cat > conftest.$ac_ext <<EOF
21386 #line 21387 "configure"
21387 #include "confdefs.h"
21388 /* System header to define __stub macros and hopefully few prototypes,
21389 which can conflict with char $ac_func(); below. */
21390 #include <assert.h>
21391 /* Override any gcc2 internal prototype to avoid an error. */
21392 /* We use char because int might match the return type of a gcc2
21393 builtin and then its argument prototype would still apply. */
21394 char $ac_func();
21396 int main() {
21398 /* The GNU C library defines this for functions which it implements
21399 to always fail with ENOSYS. Some functions are actually named
21400 something starting with __ and the normal name is an alias. */
21401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21402 choke me
21403 #else
21404 $ac_func();
21405 #endif
21407 ; return 0; }
21409 if { (eval echo configure:21410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21410 rm -rf conftest*
21411 eval "ac_cv_func_$ac_func=yes"
21412 else
21413 echo "configure: failed program was:" >&5
21414 cat conftest.$ac_ext >&5
21415 rm -rf conftest*
21416 eval "ac_cv_func_$ac_func=no"
21418 rm -f conftest*
21421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21422 echo "$ac_t""yes" 1>&6
21423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21424 cat >> confdefs.h <<EOF
21425 #define $ac_tr_func 1
21428 else
21429 echo "$ac_t""no" 1>&6
21431 done
21434 CXXFLAGS="$ac_save_CXXFLAGS"
21437 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
21438 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
21439 echo "configure:21440: checking for locale.h" >&5
21440 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21441 echo $ac_n "(cached) $ac_c" 1>&6
21442 else
21443 cat > conftest.$ac_ext <<EOF
21444 #line 21445 "configure"
21445 #include "confdefs.h"
21446 #include <locale.h>
21448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21449 { (eval echo configure:21450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21451 if test -z "$ac_err"; then
21452 rm -rf conftest*
21453 eval "ac_cv_header_$ac_safe=yes"
21454 else
21455 echo "$ac_err" >&5
21456 echo "configure: failed program was:" >&5
21457 cat conftest.$ac_ext >&5
21458 rm -rf conftest*
21459 eval "ac_cv_header_$ac_safe=no"
21461 rm -f conftest*
21463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21464 echo "$ac_t""yes" 1>&6
21466 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
21467 echo "configure:21468: checking for LC_MESSAGES" >&5
21468 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
21469 echo $ac_n "(cached) $ac_c" 1>&6
21470 else
21471 cat > conftest.$ac_ext <<EOF
21472 #line 21473 "configure"
21473 #include "confdefs.h"
21474 #include <locale.h>
21475 int main() {
21476 return LC_MESSAGES
21477 ; return 0; }
21479 if { (eval echo configure:21480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21480 rm -rf conftest*
21481 ac_cv_val_LC_MESSAGES=yes
21482 else
21483 echo "configure: failed program was:" >&5
21484 cat conftest.$ac_ext >&5
21485 rm -rf conftest*
21486 ac_cv_val_LC_MESSAGES=no
21488 rm -f conftest*
21491 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
21492 if test $ac_cv_val_LC_MESSAGES = yes; then
21493 cat >> confdefs.h <<\EOF
21494 #define HAVE_LC_MESSAGES 1
21499 else
21500 echo "$ac_t""no" 1>&6
21505 cat > conftest.$ac_ext <<EOF
21506 #line 21507 "configure"
21507 #include "confdefs.h"
21509 #include <setjmp.h>
21511 int main() {
21512 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21513 ; return 0; }
21515 if { (eval echo configure:21516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21516 rm -rf conftest*
21517 cat >> confdefs.h <<\EOF
21518 #define HAVE_SIGSETJMP 1
21522 else
21523 echo "configure: failed program was:" >&5
21524 cat conftest.$ac_ext >&5
21526 rm -f conftest*
21528 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
21530 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21532 echo "configure:21533: checking for $ac_hdr" >&5
21533 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21534 echo $ac_n "(cached) $ac_c" 1>&6
21535 else
21536 cat > conftest.$ac_ext <<EOF
21537 #line 21538 "configure"
21538 #include "confdefs.h"
21539 #include <$ac_hdr>
21541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21542 { (eval echo configure:21543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21544 if test -z "$ac_err"; then
21545 rm -rf conftest*
21546 eval "ac_cv_header_$ac_safe=yes"
21547 else
21548 echo "$ac_err" >&5
21549 echo "configure: failed program was:" >&5
21550 cat conftest.$ac_ext >&5
21551 rm -rf conftest*
21552 eval "ac_cv_header_$ac_safe=no"
21554 rm -f conftest*
21556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21557 echo "$ac_t""yes" 1>&6
21558 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21559 cat >> confdefs.h <<EOF
21560 #define $ac_tr_hdr 1
21563 else
21564 echo "$ac_t""no" 1>&6
21566 done
21568 for ac_func in getpagesize
21570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21571 echo "configure:21572: checking for $ac_func" >&5
21572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21573 echo $ac_n "(cached) $ac_c" 1>&6
21574 else
21575 cat > conftest.$ac_ext <<EOF
21576 #line 21577 "configure"
21577 #include "confdefs.h"
21578 /* System header to define __stub macros and hopefully few prototypes,
21579 which can conflict with char $ac_func(); below. */
21580 #include <assert.h>
21581 /* Override any gcc2 internal prototype to avoid an error. */
21582 /* We use char because int might match the return type of a gcc2
21583 builtin and then its argument prototype would still apply. */
21584 char $ac_func();
21586 int main() {
21588 /* The GNU C library defines this for functions which it implements
21589 to always fail with ENOSYS. Some functions are actually named
21590 something starting with __ and the normal name is an alias. */
21591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21592 choke me
21593 #else
21594 $ac_func();
21595 #endif
21597 ; return 0; }
21599 if { (eval echo configure:21600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21600 rm -rf conftest*
21601 eval "ac_cv_func_$ac_func=yes"
21602 else
21603 echo "configure: failed program was:" >&5
21604 cat conftest.$ac_ext >&5
21605 rm -rf conftest*
21606 eval "ac_cv_func_$ac_func=no"
21608 rm -f conftest*
21611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21612 echo "$ac_t""yes" 1>&6
21613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21614 cat >> confdefs.h <<EOF
21615 #define $ac_tr_func 1
21618 else
21619 echo "$ac_t""no" 1>&6
21621 done
21623 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
21624 echo "configure:21625: checking for working mmap" >&5
21625 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
21626 echo $ac_n "(cached) $ac_c" 1>&6
21627 else
21628 if test "$cross_compiling" = yes; then
21629 ac_cv_func_mmap_fixed_mapped=no
21630 else
21631 cat > conftest.$ac_ext <<EOF
21632 #line 21633 "configure"
21633 #include "confdefs.h"
21635 /* Thanks to Mike Haertel and Jim Avera for this test.
21636 Here is a matrix of mmap possibilities:
21637 mmap private not fixed
21638 mmap private fixed at somewhere currently unmapped
21639 mmap private fixed at somewhere already mapped
21640 mmap shared not fixed
21641 mmap shared fixed at somewhere currently unmapped
21642 mmap shared fixed at somewhere already mapped
21643 For private mappings, we should verify that changes cannot be read()
21644 back from the file, nor mmap's back from the file at a different
21645 address. (There have been systems where private was not correctly
21646 implemented like the infamous i386 svr4.0, and systems where the
21647 VM page cache was not coherent with the filesystem buffer cache
21648 like early versions of FreeBSD and possibly contemporary NetBSD.)
21649 For shared mappings, we should conversely verify that changes get
21650 propogated back to all the places they're supposed to be.
21652 Grep wants private fixed already mapped.
21653 The main things grep needs to know about mmap are:
21654 * does it exist and is it safe to write into the mmap'd area
21655 * how to use it (BSD variants) */
21656 #include <sys/types.h>
21657 #include <fcntl.h>
21658 #include <sys/mman.h>
21660 #if HAVE_SYS_TYPES_H
21661 # include <sys/types.h>
21662 #endif
21664 #if HAVE_STDLIB_H
21665 # include <stdlib.h>
21666 #endif
21668 #if HAVE_SYS_STAT_H
21669 # include <sys/stat.h>
21670 #endif
21672 #if HAVE_UNISTD_H
21673 # include <unistd.h>
21674 #endif
21676 /* This mess was copied from the GNU getpagesize.h. */
21677 #ifndef HAVE_GETPAGESIZE
21679 /* Assume that all systems that can run configure have sys/param.h. */
21680 # ifndef HAVE_SYS_PARAM_H
21681 # define HAVE_SYS_PARAM_H 1
21682 # endif
21684 # ifdef _SC_PAGESIZE
21685 # define getpagesize() sysconf(_SC_PAGESIZE)
21686 # else /* no _SC_PAGESIZE */
21687 # ifdef HAVE_SYS_PARAM_H
21688 # include <sys/param.h>
21689 # ifdef EXEC_PAGESIZE
21690 # define getpagesize() EXEC_PAGESIZE
21691 # else /* no EXEC_PAGESIZE */
21692 # ifdef NBPG
21693 # define getpagesize() NBPG * CLSIZE
21694 # ifndef CLSIZE
21695 # define CLSIZE 1
21696 # endif /* no CLSIZE */
21697 # else /* no NBPG */
21698 # ifdef NBPC
21699 # define getpagesize() NBPC
21700 # else /* no NBPC */
21701 # ifdef PAGESIZE
21702 # define getpagesize() PAGESIZE
21703 # endif /* PAGESIZE */
21704 # endif /* no NBPC */
21705 # endif /* no NBPG */
21706 # endif /* no EXEC_PAGESIZE */
21707 # else /* no HAVE_SYS_PARAM_H */
21708 # define getpagesize() 8192 /* punt totally */
21709 # endif /* no HAVE_SYS_PARAM_H */
21710 # endif /* no _SC_PAGESIZE */
21712 #endif /* no HAVE_GETPAGESIZE */
21714 #ifdef __cplusplus
21715 extern "C" { void *malloc(unsigned); }
21716 #else
21717 char *malloc();
21718 #endif
21721 main()
21723 char *data, *data2, *data3;
21724 int i, pagesize;
21725 int fd;
21727 pagesize = getpagesize();
21730 * First, make a file with some known garbage in it.
21732 data = malloc(pagesize);
21733 if (!data)
21734 exit(1);
21735 for (i = 0; i < pagesize; ++i)
21736 *(data + i) = rand();
21737 umask(0);
21738 fd = creat("conftestmmap", 0600);
21739 if (fd < 0)
21740 exit(1);
21741 if (write(fd, data, pagesize) != pagesize)
21742 exit(1);
21743 close(fd);
21746 * Next, try to mmap the file at a fixed address which
21747 * already has something else allocated at it. If we can,
21748 * also make sure that we see the same garbage.
21750 fd = open("conftestmmap", O_RDWR);
21751 if (fd < 0)
21752 exit(1);
21753 data2 = malloc(2 * pagesize);
21754 if (!data2)
21755 exit(1);
21756 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21757 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
21758 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21759 exit(1);
21760 for (i = 0; i < pagesize; ++i)
21761 if (*(data + i) != *(data2 + i))
21762 exit(1);
21765 * Finally, make sure that changes to the mapped area
21766 * do not percolate back to the file as seen by read().
21767 * (This is a bug on some variants of i386 svr4.0.)
21769 for (i = 0; i < pagesize; ++i)
21770 *(data2 + i) = *(data2 + i) + 1;
21771 data3 = malloc(pagesize);
21772 if (!data3)
21773 exit(1);
21774 if (read(fd, data3, pagesize) != pagesize)
21775 exit(1);
21776 for (i = 0; i < pagesize; ++i)
21777 if (*(data + i) != *(data3 + i))
21778 exit(1);
21779 close(fd);
21780 unlink("conftestmmap");
21781 exit(0);
21785 if { (eval echo configure:21786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21786 then
21787 ac_cv_func_mmap_fixed_mapped=yes
21788 else
21789 echo "configure: failed program was:" >&5
21790 cat conftest.$ac_ext >&5
21791 rm -fr conftest*
21792 ac_cv_func_mmap_fixed_mapped=no
21794 rm -fr conftest*
21799 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
21800 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21801 cat >> confdefs.h <<\EOF
21802 #define HAVE_MMAP 1
21808 # Establish limits on memory usage during 'make check'
21811 setrlimit_have_headers=yes
21812 for ac_hdr in unistd.h sys/time.h sys/resource.h
21814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21816 echo "configure:21817: checking for $ac_hdr" >&5
21817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21818 echo $ac_n "(cached) $ac_c" 1>&6
21819 else
21820 cat > conftest.$ac_ext <<EOF
21821 #line 21822 "configure"
21822 #include "confdefs.h"
21823 #include <$ac_hdr>
21825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21826 { (eval echo configure:21827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21828 if test -z "$ac_err"; then
21829 rm -rf conftest*
21830 eval "ac_cv_header_$ac_safe=yes"
21831 else
21832 echo "$ac_err" >&5
21833 echo "configure: failed program was:" >&5
21834 cat conftest.$ac_ext >&5
21835 rm -rf conftest*
21836 eval "ac_cv_header_$ac_safe=no"
21838 rm -f conftest*
21840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21841 echo "$ac_t""yes" 1>&6
21842 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21843 cat >> confdefs.h <<EOF
21844 #define $ac_tr_hdr 1
21847 else
21848 echo "$ac_t""no" 1>&6
21849 setrlimit_have_headers=no
21851 done
21853 # If don't have the headers, then we can't run the tests now, and we
21854 # won't be seeing any of these during testsuite compilation.
21855 if test $setrlimit_have_headers = yes; then
21856 # Can't do these in a loop, else the resulting syntax is wrong.
21858 cat > conftest.$ac_ext <<EOF
21859 #line 21860 "configure"
21860 #include "confdefs.h"
21861 #include <unistd.h>
21862 #include <sys/time.h>
21863 #include <sys/resource.h>
21865 int main() {
21866 int f = RLIMIT_DATA ;
21867 ; return 0; }
21869 if { (eval echo configure:21870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21870 rm -rf conftest*
21871 glibcpp_mresult=1
21872 else
21873 echo "configure: failed program was:" >&5
21874 cat conftest.$ac_ext >&5
21875 rm -rf conftest*
21876 glibcpp_mresult=0
21878 rm -f conftest*
21879 cat >> confdefs.h <<EOF
21880 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
21885 cat > conftest.$ac_ext <<EOF
21886 #line 21887 "configure"
21887 #include "confdefs.h"
21888 #include <unistd.h>
21889 #include <sys/time.h>
21890 #include <sys/resource.h>
21892 int main() {
21893 int f = RLIMIT_RSS ;
21894 ; return 0; }
21896 if { (eval echo configure:21897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21897 rm -rf conftest*
21898 glibcpp_mresult=1
21899 else
21900 echo "configure: failed program was:" >&5
21901 cat conftest.$ac_ext >&5
21902 rm -rf conftest*
21903 glibcpp_mresult=0
21905 rm -f conftest*
21906 cat >> confdefs.h <<EOF
21907 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
21912 cat > conftest.$ac_ext <<EOF
21913 #line 21914 "configure"
21914 #include "confdefs.h"
21915 #include <unistd.h>
21916 #include <sys/time.h>
21917 #include <sys/resource.h>
21919 int main() {
21920 int f = RLIMIT_VMEM ;
21921 ; return 0; }
21923 if { (eval echo configure:21924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21924 rm -rf conftest*
21925 glibcpp_mresult=1
21926 else
21927 echo "configure: failed program was:" >&5
21928 cat conftest.$ac_ext >&5
21929 rm -rf conftest*
21930 glibcpp_mresult=0
21932 rm -f conftest*
21933 cat >> confdefs.h <<EOF
21934 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
21939 cat > conftest.$ac_ext <<EOF
21940 #line 21941 "configure"
21941 #include "confdefs.h"
21942 #include <unistd.h>
21943 #include <sys/time.h>
21944 #include <sys/resource.h>
21946 int main() {
21947 int f = RLIMIT_AS ;
21948 ; return 0; }
21950 if { (eval echo configure:21951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21951 rm -rf conftest*
21952 glibcpp_mresult=1
21953 else
21954 echo "configure: failed program was:" >&5
21955 cat conftest.$ac_ext >&5
21956 rm -rf conftest*
21957 glibcpp_mresult=0
21959 rm -f conftest*
21960 cat >> confdefs.h <<EOF
21961 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
21966 # Check for rlimit, setrlimit.
21967 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
21968 echo $ac_n "(cached) $ac_c" 1>&6
21969 else
21971 cat > conftest.$ac_ext <<EOF
21972 #line 21973 "configure"
21973 #include "confdefs.h"
21974 #include <unistd.h>
21975 #include <sys/time.h>
21976 #include <sys/resource.h>
21978 int main() {
21979 struct rlimit r; setrlimit(0, &r);
21980 ; return 0; }
21982 if { (eval echo configure:21983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21983 rm -rf conftest*
21984 ac_setrlimit=yes
21985 else
21986 echo "configure: failed program was:" >&5
21987 cat conftest.$ac_ext >&5
21988 rm -rf conftest*
21989 ac_setrlimit=no
21991 rm -f conftest*
21997 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
21998 echo "configure:21999: checking for testsuite memory limit support" >&5
21999 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
22000 ac_mem_limits=yes
22001 cat >> confdefs.h <<\EOF
22002 #define _GLIBCPP_MEM_LIMITS 1
22005 else
22006 ac_mem_limits=no
22008 echo "$ac_t""$ac_mem_limits" 1>&6
22011 # Look for setenv, so that extended locale tests can be performed.
22013 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
22014 echo "configure:22015: checking for setenv declaration" >&5
22015 if test x${glibcpp_cv_func_setenv_use+set} != xset; then
22016 if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
22017 echo $ac_n "(cached) $ac_c" 1>&6
22018 else
22021 ac_ext=C
22022 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22023 ac_cpp='$CXXCPP $CPPFLAGS'
22024 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22025 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22026 cross_compiling=$ac_cv_prog_cxx_cross
22028 cat > conftest.$ac_ext <<EOF
22029 #line 22030 "configure"
22030 #include "confdefs.h"
22031 #include <stdlib.h>
22032 int main() {
22033 setenv(0, 0, 0);
22034 ; return 0; }
22036 if { (eval echo configure:22037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22037 rm -rf conftest*
22038 glibcpp_cv_func_setenv_use=yes
22039 else
22040 echo "configure: failed program was:" >&5
22041 cat conftest.$ac_ext >&5
22042 rm -rf conftest*
22043 glibcpp_cv_func_setenv_use=no
22045 rm -f conftest*
22046 ac_ext=c
22047 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22048 ac_cpp='$CPP $CPPFLAGS'
22049 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22050 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22051 cross_compiling=$ac_cv_prog_cc_cross
22057 echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
22058 if test x$glibcpp_cv_func_setenv_use = x"yes"; then
22059 for ac_func in setenv
22061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22062 echo "configure:22063: checking for $ac_func" >&5
22063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22064 echo $ac_n "(cached) $ac_c" 1>&6
22065 else
22066 cat > conftest.$ac_ext <<EOF
22067 #line 22068 "configure"
22068 #include "confdefs.h"
22069 /* System header to define __stub macros and hopefully few prototypes,
22070 which can conflict with char $ac_func(); below. */
22071 #include <assert.h>
22072 /* Override any gcc2 internal prototype to avoid an error. */
22073 /* We use char because int might match the return type of a gcc2
22074 builtin and then its argument prototype would still apply. */
22075 char $ac_func();
22077 int main() {
22079 /* The GNU C library defines this for functions which it implements
22080 to always fail with ENOSYS. Some functions are actually named
22081 something starting with __ and the normal name is an alias. */
22082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22083 choke me
22084 #else
22085 $ac_func();
22086 #endif
22088 ; return 0; }
22090 if { (eval echo configure:22091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22091 rm -rf conftest*
22092 eval "ac_cv_func_$ac_func=yes"
22093 else
22094 echo "configure: failed program was:" >&5
22095 cat conftest.$ac_ext >&5
22096 rm -rf conftest*
22097 eval "ac_cv_func_$ac_func=no"
22099 rm -f conftest*
22102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22103 echo "$ac_t""yes" 1>&6
22104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22105 cat >> confdefs.h <<EOF
22106 #define $ac_tr_func 1
22109 else
22110 echo "$ac_t""no" 1>&6
22112 done
22119 # This depends on the possibly-skipped linker test above.
22120 # Check whether --enable-symvers or --disable-symvers was given.
22121 if test "${enable_symvers+set}" = set; then
22122 enableval="$enable_symvers"
22123 case "$enableval" in
22124 yes) enable_symvers=yes ;;
22125 no) enable_symvers=no ;;
22126 # other names here, just as sanity checks
22127 #gnu|sun|etcetera) enable_symvers=$enableval ;;
22128 gnu) enable_symvers=$enableval ;;
22129 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
22130 esac
22131 else
22132 enable_symvers=yes
22135 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
22136 # don't know enough about $LD to do tricks...
22137 if test x$enable_shared = xno ||
22138 test "x$LD" = x ||
22139 test x$glibcpp_gnu_ld_version = x; then
22140 enable_symvers=no
22143 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
22144 if test $enable_symvers != no; then
22145 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
22146 echo "configure:22147: checking for shared libgcc" >&5
22147 ac_save_CFLAGS="$CFLAGS"
22148 CFLAGS=' -lgcc_s'
22149 cat > conftest.$ac_ext <<EOF
22150 #line 22151 "configure"
22151 #include "confdefs.h"
22153 int main() {
22154 return 0
22155 ; return 0; }
22157 if { (eval echo configure:22158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22158 rm -rf conftest*
22159 glibcpp_shared_libgcc=yes
22160 else
22161 echo "configure: failed program was:" >&5
22162 cat conftest.$ac_ext >&5
22163 rm -rf conftest*
22164 glibcpp_shared_libgcc=no
22166 rm -f conftest*
22167 CFLAGS="$ac_save_CFLAGS"
22168 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
22171 # For GNU ld, we need at least this version. It's 2.12 in the same format
22172 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
22173 glibcpp_min_gnu_ld_version=21200
22175 # Check to see if unspecified "yes" value can win, given results
22176 # above.
22177 if test $enable_symvers = yes ; then
22178 if test $with_gnu_ld = yes &&
22179 test $glibcpp_shared_libgcc = yes ;
22180 then
22181 if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
22182 enable_symvers=gnu
22183 else
22184 ac_test_CFLAGS="${CFLAGS+set}"
22185 ac_save_CFLAGS="$CFLAGS"
22186 CFLAGS='-shared -Wl,--version-script,conftest.map'
22187 enable_symvers=no
22189 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
22191 cat > conftest.$ac_ext <<EOF
22192 #line 22193 "configure"
22193 #include "confdefs.h"
22194 int foo;
22195 int main() {
22197 ; return 0; }
22199 if { (eval echo configure:22200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22200 rm -rf conftest*
22201 enable_symvers=gnu
22202 else
22203 echo "configure: failed program was:" >&5
22204 cat conftest.$ac_ext >&5
22206 rm -f conftest*
22207 if test "$ac_test_CFLAGS" = set; then
22208 CFLAGS="$ac_save_CFLAGS"
22209 else
22210 # this is the suspicious part
22211 CFLAGS=''
22213 rm -f conftest.map
22215 else
22216 # just fail for now
22217 enable_symvers=no
22221 case $enable_symvers in
22223 LINKER_MAP=config/linker-map.dummy
22225 gnu)
22226 LINKER_MAP=config/linker-map.gnu
22228 esac
22233 if test $enable_symvers != no; then
22234 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
22235 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
22236 else
22237 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
22238 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
22240 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
22241 echo "configure:22242: checking versioning on shared library symbols" >&5
22242 echo "$ac_t""$enable_symvers" 1>&6
22245 # Propagate the target-specific source directories through the build chain.
22246 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH and
22247 # CPULIMITSH [might] use it, and they only get used here.)
22248 OS_INC_SRCDIR=config/${os_include_dir}
22249 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
22250 CPU_LIMITS_INC_SRCDIR=config/${CPULIMITSH}
22255 # Set up cross-compile flags
22258 if test "$CANADIAN" = yes; then
22259 CANADIAN_TRUE=
22260 CANADIAN_FALSE='#'
22261 else
22262 CANADIAN_TRUE='#'
22263 CANADIAN_FALSE=
22266 cat > confcache <<\EOF
22267 # This file is a shell script that caches the results of configure
22268 # tests run on this system so they can be shared between configure
22269 # scripts and configure runs. It is not useful on other systems.
22270 # If it contains results you don't want to keep, you may remove or edit it.
22272 # By default, configure uses ./config.cache as the cache file,
22273 # creating it if it does not exist already. You can give configure
22274 # the --cache-file=FILE option to use a different cache file; that is
22275 # what configure does when it calls configure scripts in
22276 # subdirectories, so they share the cache.
22277 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22278 # config.status only pays attention to the cache file if you give it the
22279 # --recheck option to rerun configure.
22282 # The following way of writing the cache mishandles newlines in values,
22283 # but we know of no workaround that is simple, portable, and efficient.
22284 # So, don't put newlines in cache variables' values.
22285 # Ultrix sh set writes to stderr and can't be redirected directly,
22286 # and sets the high bit in the cache file unless we assign to the vars.
22287 (set) 2>&1 |
22288 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22289 *ac_space=\ *)
22290 # `set' does not quote correctly, so add quotes (double-quote substitution
22291 # turns \\\\ into \\, and sed turns \\ into \).
22292 sed -n \
22293 -e "s/'/'\\\\''/g" \
22294 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22297 # `set' quotes correctly as required by POSIX, so do not add quotes.
22298 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22300 esac >> confcache
22301 if cmp -s $cache_file confcache; then
22303 else
22304 if test -w $cache_file; then
22305 echo "updating cache $cache_file"
22306 cat confcache > $cache_file
22307 else
22308 echo "not updating unwritable cache $cache_file"
22311 rm -f confcache
22314 if test "${multilib}" = "yes"; then
22315 multilib_arg="--enable-multilib"
22316 else
22317 multilib_arg=
22320 # Export all the install information
22322 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
22323 # exported correctly in GLIBCPP_CONFIGURE.
22324 glibcpp_toolexecdir=no
22325 glibcpp_toolexeclibdir=no
22326 glibcpp_prefixdir=${prefix}
22328 # Process the option --with-gxx-include-dir=<path to include-files directory>
22329 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
22330 echo "configure:22331: checking for --with-gxx-include-dir" >&5
22331 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
22332 if test "${with_gxx_include_dir+set}" = set; then
22333 withval="$with_gxx_include_dir"
22334 case "${withval}" in
22335 yes)
22336 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
22337 gxx_include_dir=no
22340 gxx_include_dir=no
22343 gxx_include_dir=${withval}
22345 esac
22346 else
22347 gxx_include_dir=no
22350 echo "$ac_t""$gxx_include_dir" 1>&6
22352 # Process the option "--enable-version-specific-runtime-libs"
22353 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
22354 echo "configure:22355: checking for --enable-version-specific-runtime-libs" >&5
22355 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
22356 if test "${enable_version_specific_runtime_libs+set}" = set; then
22357 enableval="$enable_version_specific_runtime_libs"
22358 case "$enableval" in
22359 yes) version_specific_libs=yes ;;
22360 no) version_specific_libs=no ;;
22361 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
22362 esac
22363 else
22364 version_specific_libs=no
22366 # Option set, now we can test it.
22367 echo "$ac_t""$version_specific_libs" 1>&6
22369 # Get the gcc version number. This is lifted from gcc/configure.in
22370 echo $ac_n "checking for gcc version number""... $ac_c" 1>&6
22371 echo "configure:22372: checking for gcc version number" >&5
22372 gcc_version_trigger=${srcdir}/../gcc/version.c
22373 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
22374 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
22375 echo "$ac_t""$gcc_version" 1>&6
22377 # Default case for install directory for include files.
22378 if test $version_specific_libs = no && test $gxx_include_dir = no; then
22379 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
22382 # Version-specific runtime libs processing.
22383 if test $version_specific_libs = yes; then
22384 # Need the gcc compiler version to know where to install libraries
22385 # and header files if --enable-version-specific-runtime-libs option
22386 # is selected.
22387 if test x"$gxx_include_dir" = x"no"; then
22388 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
22390 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22391 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
22394 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
22395 # Install a library built with a cross compiler in tooldir, not libdir.
22396 if test x"$glibcpp_toolexecdir" = x"no"; then
22397 if test -n "$with_cross_host" &&
22398 test x"$with_cross_host" != x"no"; then
22399 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
22400 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
22401 else
22402 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22403 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
22407 echo $ac_n "checking for install location""... $ac_c" 1>&6
22408 echo "configure:22409: checking for install location" >&5
22409 echo "$ac_t""$gxx_include_dir" 1>&6
22417 # Export all the include and flag information to makefiles.
22419 # Root level of the build directory include sources.
22420 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
22422 # Passed down for canadian crosses.
22423 if test x"$CANADIAN" = xyes; then
22424 TOPLEVEL_INCLUDES='-I$(includedir)'
22427 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
22429 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
22431 if test x"$need_libio" = xyes; then
22432 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
22436 # Now, export this to all the little Makefiles....
22443 # Optimization flags that are probably a good idea for thrill-seekers. Just
22444 # uncomment the lines below and make, everything else is ready to go...
22445 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
22446 OPTIMIZE_CXXFLAGS=
22449 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
22453 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
22454 grep "enable shared" > /dev/null; then
22455 LIBSUPCXX_PICFLAGS=-prefer-pic
22456 else
22457 LIBSUPCXX_PICFLAGS=
22461 # Generate the various Makefiles, include files, and scripts.
22462 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
22463 # and libsupc++/Makefile.am so that multilib installs will end up
22464 # installed in the correct place. To work around this not being passed
22465 # down from config-ml.in -> top_srcdir/Makefile.am ->
22466 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
22467 trap '' 1 2 15
22468 cat > confcache <<\EOF
22469 # This file is a shell script that caches the results of configure
22470 # tests run on this system so they can be shared between configure
22471 # scripts and configure runs. It is not useful on other systems.
22472 # If it contains results you don't want to keep, you may remove or edit it.
22474 # By default, configure uses ./config.cache as the cache file,
22475 # creating it if it does not exist already. You can give configure
22476 # the --cache-file=FILE option to use a different cache file; that is
22477 # what configure does when it calls configure scripts in
22478 # subdirectories, so they share the cache.
22479 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22480 # config.status only pays attention to the cache file if you give it the
22481 # --recheck option to rerun configure.
22484 # The following way of writing the cache mishandles newlines in values,
22485 # but we know of no workaround that is simple, portable, and efficient.
22486 # So, don't put newlines in cache variables' values.
22487 # Ultrix sh set writes to stderr and can't be redirected directly,
22488 # and sets the high bit in the cache file unless we assign to the vars.
22489 (set) 2>&1 |
22490 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22491 *ac_space=\ *)
22492 # `set' does not quote correctly, so add quotes (double-quote substitution
22493 # turns \\\\ into \\, and sed turns \\ into \).
22494 sed -n \
22495 -e "s/'/'\\\\''/g" \
22496 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22499 # `set' quotes correctly as required by POSIX, so do not add quotes.
22500 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22502 esac >> confcache
22503 if cmp -s $cache_file confcache; then
22505 else
22506 if test -w $cache_file; then
22507 echo "updating cache $cache_file"
22508 cat confcache > $cache_file
22509 else
22510 echo "not updating unwritable cache $cache_file"
22513 rm -f confcache
22515 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22517 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22518 # Let make expand exec_prefix.
22519 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22521 # Any assignment to VPATH causes Sun make to only execute
22522 # the first set of double-colon rules, so remove it if not needed.
22523 # If there is a colon in the path, we need to keep it.
22524 if test "x$srcdir" = x.; then
22525 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22528 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22530 DEFS=-DHAVE_CONFIG_H
22532 # Without the "./", some shells look in PATH for config.status.
22533 : ${CONFIG_STATUS=./config.status}
22535 echo creating $CONFIG_STATUS
22536 rm -f $CONFIG_STATUS
22537 cat > $CONFIG_STATUS <<EOF
22538 #! /bin/sh
22539 # Generated automatically by configure.
22540 # Run this file to recreate the current configuration.
22541 # This directory was configured as follows,
22542 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22544 # $0 $ac_configure_args
22546 # Compiler output produced by configure, useful for debugging
22547 # configure, is in ./config.log if it exists.
22549 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22550 for ac_option
22552 case "\$ac_option" in
22553 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22554 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22555 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22556 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22557 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22558 exit 0 ;;
22559 -help | --help | --hel | --he | --h)
22560 echo "\$ac_cs_usage"; exit 0 ;;
22561 *) echo "\$ac_cs_usage"; exit 1 ;;
22562 esac
22563 done
22565 ac_given_srcdir=$srcdir
22566 ac_given_INSTALL="$INSTALL"
22568 trap 'rm -fr `echo "Makefile \
22569 include/Makefile src/Makefile \
22570 libmath/Makefile libio/Makefile libsupc++/Makefile \
22571 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22573 cat >> $CONFIG_STATUS <<EOF
22575 # Protect against being on the right side of a sed subst in config.status.
22576 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22577 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22578 $ac_vpsub
22579 $extrasub
22580 s%@SHELL@%$SHELL%g
22581 s%@CFLAGS@%$CFLAGS%g
22582 s%@CPPFLAGS@%$CPPFLAGS%g
22583 s%@CXXFLAGS@%$CXXFLAGS%g
22584 s%@FFLAGS@%$FFLAGS%g
22585 s%@DEFS@%$DEFS%g
22586 s%@LDFLAGS@%$LDFLAGS%g
22587 s%@LIBS@%$LIBS%g
22588 s%@exec_prefix@%$exec_prefix%g
22589 s%@prefix@%$prefix%g
22590 s%@program_transform_name@%$program_transform_name%g
22591 s%@bindir@%$bindir%g
22592 s%@sbindir@%$sbindir%g
22593 s%@libexecdir@%$libexecdir%g
22594 s%@datadir@%$datadir%g
22595 s%@sysconfdir@%$sysconfdir%g
22596 s%@sharedstatedir@%$sharedstatedir%g
22597 s%@localstatedir@%$localstatedir%g
22598 s%@libdir@%$libdir%g
22599 s%@includedir@%$includedir%g
22600 s%@oldincludedir@%$oldincludedir%g
22601 s%@infodir@%$infodir%g
22602 s%@mandir@%$mandir%g
22603 s%@PACKAGE@%$PACKAGE%g
22604 s%@libtool_VERSION@%$libtool_VERSION%g
22605 s%@toplevel_srcdir@%$toplevel_srcdir%g
22606 s%@host@%$host%g
22607 s%@host_alias@%$host_alias%g
22608 s%@host_cpu@%$host_cpu%g
22609 s%@host_vendor@%$host_vendor%g
22610 s%@host_os@%$host_os%g
22611 s%@target@%$target%g
22612 s%@target_alias@%$target_alias%g
22613 s%@target_cpu@%$target_cpu%g
22614 s%@target_vendor@%$target_vendor%g
22615 s%@target_os@%$target_os%g
22616 s%@build@%$build%g
22617 s%@build_alias@%$build_alias%g
22618 s%@build_cpu@%$build_cpu%g
22619 s%@build_vendor@%$build_vendor%g
22620 s%@build_os@%$build_os%g
22621 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22622 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22623 s%@INSTALL_DATA@%$INSTALL_DATA%g
22624 s%@VERSION@%$VERSION%g
22625 s%@ACLOCAL@%$ACLOCAL%g
22626 s%@AUTOCONF@%$AUTOCONF%g
22627 s%@AUTOMAKE@%$AUTOMAKE%g
22628 s%@AUTOHEADER@%$AUTOHEADER%g
22629 s%@MAKEINFO@%$MAKEINFO%g
22630 s%@SET_MAKE@%$SET_MAKE%g
22631 s%@glibcpp_builddir@%$glibcpp_builddir%g
22632 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
22633 s%@AWK@%$AWK%g
22634 s%@LN_S@%$LN_S%g
22635 s%@glibcpp_basedir@%$glibcpp_basedir%g
22636 s%@CC@%$CC%g
22637 s%@glibcpp_CXX@%$glibcpp_CXX%g
22638 s%@AS@%$AS%g
22639 s%@AR@%$AR%g
22640 s%@RANLIB@%$RANLIB%g
22641 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
22642 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
22643 s%@MAINT@%$MAINT%g
22644 s%@EXEEXT@%$EXEEXT%g
22645 s%@OBJEXT@%$OBJEXT%g
22646 s%@STRIP@%$STRIP%g
22647 s%@LIBTOOL@%$LIBTOOL%g
22648 s%@CXXCPP@%$CXXCPP%g
22649 s%@enable_shared@%$enable_shared%g
22650 s%@enable_static@%$enable_static%g
22651 s%@ifGNUmake@%$ifGNUmake%g
22652 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
22653 s%@CPP@%$CPP%g
22654 s%@CSTDIO_H@%$CSTDIO_H%g
22655 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
22656 s%@CCODECVT_C@%$CCODECVT_C%g
22657 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
22658 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
22659 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
22660 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
22661 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
22662 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
22663 s%@libio_la@%$libio_la%g
22664 s%@check_msgfmt@%$check_msgfmt%g
22665 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
22666 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
22667 s%@glibcpp_localedir@%$glibcpp_localedir%g
22668 s%@USE_NLS@%$USE_NLS%g
22669 s%@CLOCALE_H@%$CLOCALE_H%g
22670 s%@CCODECVT_H@%$CCODECVT_H%g
22671 s%@CMESSAGES_H@%$CMESSAGES_H%g
22672 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
22673 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
22674 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
22675 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
22676 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
22677 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
22678 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
22679 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
22680 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
22681 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
22682 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
22683 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
22684 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
22685 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
22686 s%@WERROR@%$WERROR%g
22687 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
22688 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
22689 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
22690 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
22691 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
22692 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
22693 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
22694 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
22695 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
22696 s%@gxx_include_dir@%$gxx_include_dir%g
22697 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
22698 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
22699 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
22700 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
22701 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
22702 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
22703 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
22704 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
22705 s%@WARN_FLAGS@%$WARN_FLAGS%g
22706 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
22708 CEOF
22711 cat >> $CONFIG_STATUS <<\EOF
22713 # Split the substitutions into bite-sized pieces for seds with
22714 # small command number limits, like on Digital OSF/1 and HP-UX.
22715 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22716 ac_file=1 # Number of current file.
22717 ac_beg=1 # First line for current file.
22718 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22719 ac_more_lines=:
22720 ac_sed_cmds=""
22721 while $ac_more_lines; do
22722 if test $ac_beg -gt 1; then
22723 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22724 else
22725 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22727 if test ! -s conftest.s$ac_file; then
22728 ac_more_lines=false
22729 rm -f conftest.s$ac_file
22730 else
22731 if test -z "$ac_sed_cmds"; then
22732 ac_sed_cmds="sed -f conftest.s$ac_file"
22733 else
22734 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22736 ac_file=`expr $ac_file + 1`
22737 ac_beg=$ac_end
22738 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22740 done
22741 if test -z "$ac_sed_cmds"; then
22742 ac_sed_cmds=cat
22746 cat >> $CONFIG_STATUS <<EOF
22748 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
22749 include/Makefile src/Makefile \
22750 libmath/Makefile libio/Makefile libsupc++/Makefile \
22751 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
22753 cat >> $CONFIG_STATUS <<\EOF
22754 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22755 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22756 case "$ac_file" in
22757 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22758 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22759 *) ac_file_in="${ac_file}.in" ;;
22760 esac
22762 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22764 # Remove last slash and all that follows it. Not all systems have dirname.
22765 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22766 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22767 # The file is in a subdirectory.
22768 test ! -d "$ac_dir" && mkdir "$ac_dir"
22769 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22770 # A "../" for each directory in $ac_dir_suffix.
22771 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22772 else
22773 ac_dir_suffix= ac_dots=
22776 case "$ac_given_srcdir" in
22777 .) srcdir=.
22778 if test -z "$ac_dots"; then top_srcdir=.
22779 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22780 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22781 *) # Relative path.
22782 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22783 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22784 esac
22786 case "$ac_given_INSTALL" in
22787 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22788 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22789 esac
22791 echo creating "$ac_file"
22792 rm -f "$ac_file"
22793 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22794 case "$ac_file" in
22795 *Makefile*) ac_comsub="1i\\
22796 # $configure_input" ;;
22797 *) ac_comsub= ;;
22798 esac
22800 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22801 sed -e "$ac_comsub
22802 s%@configure_input@%$configure_input%g
22803 s%@srcdir@%$srcdir%g
22804 s%@top_srcdir@%$top_srcdir%g
22805 s%@INSTALL@%$INSTALL%g
22806 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22807 fi; done
22808 rm -f conftest.s*
22810 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22811 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22813 # ac_d sets the value in "#define NAME VALUE" lines.
22814 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22815 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22816 ac_dC='\3'
22817 ac_dD='%g'
22818 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22819 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22820 ac_uB='\([ ]\)%\1#\2define\3'
22821 ac_uC=' '
22822 ac_uD='\4%g'
22823 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22824 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22825 ac_eB='$%\1#\2define\3'
22826 ac_eC=' '
22827 ac_eD='%g'
22829 if test "${CONFIG_HEADERS+set}" != set; then
22831 cat >> $CONFIG_STATUS <<EOF
22832 CONFIG_HEADERS="config.h"
22834 cat >> $CONFIG_STATUS <<\EOF
22836 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22837 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22838 case "$ac_file" in
22839 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22840 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22841 *) ac_file_in="${ac_file}.in" ;;
22842 esac
22844 echo creating $ac_file
22846 rm -f conftest.frag conftest.in conftest.out
22847 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22848 cat $ac_file_inputs > conftest.in
22852 # Transform confdefs.h into a sed script conftest.vals that substitutes
22853 # the proper values into config.h.in to produce config.h. And first:
22854 # Protect against being on the right side of a sed subst in config.status.
22855 # Protect against being in an unquoted here document in config.status.
22856 rm -f conftest.vals
22857 cat > conftest.hdr <<\EOF
22858 s/[\\&%]/\\&/g
22859 s%[\\$`]%\\&%g
22860 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22861 s%ac_d%ac_u%gp
22862 s%ac_u%ac_e%gp
22864 sed -n -f conftest.hdr confdefs.h > conftest.vals
22865 rm -f conftest.hdr
22867 # This sed command replaces #undef with comments. This is necessary, for
22868 # example, in the case of _POSIX_SOURCE, which is predefined and required
22869 # on some systems where configure will not decide to define it.
22870 cat >> conftest.vals <<\EOF
22871 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22874 # Break up conftest.vals because some shells have a limit on
22875 # the size of here documents, and old seds have small limits too.
22877 rm -f conftest.tail
22878 while :
22880 ac_lines=`grep -c . conftest.vals`
22881 # grep -c gives empty output for an empty file on some AIX systems.
22882 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22883 # Write a limited-size here document to conftest.frag.
22884 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22885 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22886 echo 'CEOF
22887 sed -f conftest.frag conftest.in > conftest.out
22888 rm -f conftest.in
22889 mv conftest.out conftest.in
22890 ' >> $CONFIG_STATUS
22891 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22892 rm -f conftest.vals
22893 mv conftest.tail conftest.vals
22894 done
22895 rm -f conftest.vals
22897 cat >> $CONFIG_STATUS <<\EOF
22898 rm -f conftest.frag conftest.h
22899 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22900 cat conftest.in >> conftest.h
22901 rm -f conftest.in
22902 if cmp -s $ac_file conftest.h 2>/dev/null; then
22903 echo "$ac_file is unchanged"
22904 rm -f conftest.h
22905 else
22906 # Remove last slash and all that follows it. Not all systems have dirname.
22907 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22908 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22909 # The file is in a subdirectory.
22910 test ! -d "$ac_dir" && mkdir "$ac_dir"
22912 rm -f $ac_file
22913 mv conftest.h $ac_file
22915 fi; done
22919 cat >> $CONFIG_STATUS <<EOF
22920 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
22921 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/ctype.cc src/messages.cc src/monetary.cc src/numeric.cc src/time.cc src/linker.map"
22924 cat >> $CONFIG_STATUS <<\EOF
22925 srcdir=$ac_given_srcdir
22926 while test -n "$ac_sources"; do
22927 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22928 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22930 echo "linking $srcdir/$ac_source to $ac_dest"
22932 if test ! -r $srcdir/$ac_source; then
22933 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
22935 rm -f $ac_dest
22937 # Make relative symlinks.
22938 # Remove last slash and all that follows it. Not all systems have dirname.
22939 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
22940 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
22941 # The dest file is in a subdirectory.
22942 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
22943 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
22944 # A "../" for each directory in $ac_dest_dir_suffix.
22945 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
22946 else
22947 ac_dest_dir_suffix= ac_dots=
22950 case "$srcdir" in
22951 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
22952 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
22953 esac
22955 # Make a symlink if possible; otherwise try a hard link.
22956 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22957 ln $srcdir/$ac_source $ac_dest; then :
22958 else
22959 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
22961 done
22963 cat >> $CONFIG_STATUS <<EOF
22965 srcdir=${srcdir}
22966 host=${host}
22967 target=${target}
22968 with_multisubdir=${with_multisubdir}
22969 ac_configure_args="${multilib_arg} ${ac_configure_args}"
22970 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22971 glibcpp_basedir=${glibcpp_basedir}
22972 CC="${CC}"
22973 CXX="${CXX}"
22976 cat >> $CONFIG_STATUS <<\EOF
22977 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
22978 if test -n "$CONFIG_FILES"; then
22979 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
22980 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
22981 grep '^MULTISUBDIR =' Makefile >> src/Makefile
22982 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
22984 chmod +x mkcheck
22985 chmod +x testsuite_flags
22987 exit 0
22989 chmod +x $CONFIG_STATUS
22990 rm -fr confdefs* $ac_clean_files
22991 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22995 # Sanity checking & User-visible messages.
22996 # Checks down here, otherwise they get scrolled off before
22997 # the user will notice.
22999 # Trying to get more people to read documentation. Possibly remove
23000 # check and warn all the time. There is no "informational" AC_MSG_
23001 # macro, so these are going to be printed even when --quiet/--silent
23002 # is given.
23003 if test ! -f stamp-sanity-warned; then
23004 touch stamp-sanity-warned
23005 echo ""
23006 echo "Please make certain that you read the installation information here:"
23007 echo " faster => ${srcdir}/docs/html/install.html"
23008 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
23009 echo ""
23010 echo "and the configuration information here:"
23011 echo " faster => ${srcdir}/docs/html/configopts.html"
23012 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
23013 echo ""
23014 echo "before proceeding with ${_cv_gnu_make_command}."
23015 echo ""