bnw-simple merge
[official-gcc.git] / libstdc++-v3 / configure
blob4254d7f76e0988c244e2358531c054b748941fb8
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.
586 ORIGINAL_LD_FOR_MULTILIBS=$LD
588 PACKAGE=libstdc++
590 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
591 release_VERSION=3.1.1
593 # For libtool versioning info, format is CURRENT:REVISION:AGE
594 libtool_VERSION=4:1:0
597 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
598 # AC 2.5x sets target_alias iff the user specified --target, but we use it
599 # everywhere, so we set it here just to be sure. In AC 2.13
600 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
601 ac_aux_dir=
602 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
603 if test -f $ac_dir/install-sh; then
604 ac_aux_dir=$ac_dir
605 ac_install_sh="$ac_aux_dir/install-sh -c"
606 break
607 elif test -f $ac_dir/install.sh; then
608 ac_aux_dir=$ac_dir
609 ac_install_sh="$ac_aux_dir/install.sh -c"
610 break
612 done
613 if test -z "$ac_aux_dir"; then
614 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
616 ac_config_guess=$ac_aux_dir/config.guess
617 ac_config_sub=$ac_aux_dir/config.sub
618 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
621 # Do some error checking and defaulting for the host and target type.
622 # The inputs are:
623 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
625 # The rules are:
626 # 1. You are not allowed to specify --host, --target, and nonopt at the
627 # same time.
628 # 2. Host defaults to nonopt.
629 # 3. If nonopt is not specified, then host defaults to the current host,
630 # as determined by config.guess.
631 # 4. Target and build default to nonopt.
632 # 5. If nonopt is not specified, then target and build default to host.
634 # The aliases save the names the user supplied, while $host etc.
635 # will get canonicalized.
636 case $host---$target---$nonopt in
637 NONE---*---* | *---NONE---* | *---*---NONE) ;;
638 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
639 esac
642 # Make sure we can run config.sub.
643 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
644 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
647 echo $ac_n "checking host system type""... $ac_c" 1>&6
648 echo "configure:649: checking host system type" >&5
650 host_alias=$host
651 case "$host_alias" in
652 NONE)
653 case $nonopt in
654 NONE)
655 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
656 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
657 fi ;;
658 *) host_alias=$nonopt ;;
659 esac ;;
660 esac
662 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
663 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
664 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
665 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
666 echo "$ac_t""$host" 1>&6
668 echo $ac_n "checking target system type""... $ac_c" 1>&6
669 echo "configure:670: checking target system type" >&5
671 target_alias=$target
672 case "$target_alias" in
673 NONE)
674 case $nonopt in
675 NONE) target_alias=$host_alias ;;
676 *) target_alias=$nonopt ;;
677 esac ;;
678 esac
680 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
681 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
682 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
683 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
684 echo "$ac_t""$target" 1>&6
686 echo $ac_n "checking build system type""... $ac_c" 1>&6
687 echo "configure:688: checking build system type" >&5
689 build_alias=$build
690 case "$build_alias" in
691 NONE)
692 case $nonopt in
693 NONE) build_alias=$host_alias ;;
694 *) build_alias=$nonopt ;;
695 esac ;;
696 esac
698 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
699 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
700 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
701 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
702 echo "$ac_t""$build" 1>&6
704 test "$host_alias" != "$target_alias" &&
705 test "$program_prefix$program_suffix$program_transform_name" = \
706 NONENONEs,x,x, &&
707 program_prefix=${target_alias}-
709 target_alias=${target_alias-$target}
712 # Find a good install program. We prefer a C program (faster),
713 # so one script is as good as another. But avoid the broken or
714 # incompatible versions:
715 # SysV /etc/install, /usr/sbin/install
716 # SunOS /usr/etc/install
717 # IRIX /sbin/install
718 # AIX /bin/install
719 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
720 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
721 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
722 # ./install, which can be erroneously created by make from ./install.sh.
723 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
724 echo "configure:725: checking for a BSD compatible install" >&5
725 if test -z "$INSTALL"; then
726 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
727 echo $ac_n "(cached) $ac_c" 1>&6
728 else
729 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
730 for ac_dir in $PATH; do
731 # Account for people who put trailing slashes in PATH elements.
732 case "$ac_dir/" in
733 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
735 # OSF1 and SCO ODT 3.0 have their own names for install.
736 # Don't use installbsd from OSF since it installs stuff as root
737 # by default.
738 for ac_prog in ginstall scoinst install; do
739 if test -f $ac_dir/$ac_prog; then
740 if test $ac_prog = install &&
741 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
742 # AIX install. It has an incompatible calling convention.
744 else
745 ac_cv_path_install="$ac_dir/$ac_prog -c"
746 break 2
749 done
751 esac
752 done
753 IFS="$ac_save_IFS"
756 if test "${ac_cv_path_install+set}" = set; then
757 INSTALL="$ac_cv_path_install"
758 else
759 # As a last resort, use the slow shell script. We don't cache a
760 # path for INSTALL within a source directory, because that will
761 # break other packages using the cache if that directory is
762 # removed, or if the path is relative.
763 INSTALL="$ac_install_sh"
766 echo "$ac_t""$INSTALL" 1>&6
768 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
769 # It thinks the first close brace ends the variable substitution.
770 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
772 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
774 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
776 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
777 echo "configure:778: checking whether build environment is sane" >&5
778 # Just in case
779 sleep 1
780 echo timestamp > conftestfile
781 # Do `set' in a subshell so we don't clobber the current shell's
782 # arguments. Must try -L first in case configure is actually a
783 # symlink; some systems play weird games with the mod time of symlinks
784 # (eg FreeBSD returns the mod time of the symlink's containing
785 # directory).
786 if (
787 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
788 if test "$*" = "X"; then
789 # -L didn't work.
790 set X `ls -t $srcdir/configure conftestfile`
792 if test "$*" != "X $srcdir/configure conftestfile" \
793 && test "$*" != "X conftestfile $srcdir/configure"; then
795 # If neither matched, then we have a broken ls. This can happen
796 # if, for instance, CONFIG_SHELL is bash and it inherits a
797 # broken ls alias from the environment. This has actually
798 # happened. Such a system could not be considered "sane".
799 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
800 alias in your environment" 1>&2; exit 1; }
803 test "$2" = conftestfile
805 then
806 # Ok.
808 else
809 { echo "configure: error: newly created file is older than distributed files!
810 Check your system clock" 1>&2; exit 1; }
812 rm -f conftest*
813 echo "$ac_t""yes" 1>&6
814 if test "$program_transform_name" = s,x,x,; then
815 program_transform_name=
816 else
817 # Double any \ or $. echo might interpret backslashes.
818 cat <<\EOF_SED > conftestsed
819 s,\\,\\\\,g; s,\$,$$,g
820 EOF_SED
821 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
822 rm -f conftestsed
824 test "$program_prefix" != NONE &&
825 program_transform_name="s,^,${program_prefix},; $program_transform_name"
826 # Use a double $ so make ignores it.
827 test "$program_suffix" != NONE &&
828 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
830 # sed with no file args requires a program.
831 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
833 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
834 echo "configure:835: checking whether ${MAKE-make} sets \${MAKE}" >&5
835 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
836 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
838 else
839 cat > conftestmake <<\EOF
840 all:
841 @echo 'ac_maketemp="${MAKE}"'
843 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
844 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
845 if test -n "$ac_maketemp"; then
846 eval ac_cv_prog_make_${ac_make}_set=yes
847 else
848 eval ac_cv_prog_make_${ac_make}_set=no
850 rm -f conftestmake
852 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
853 echo "$ac_t""yes" 1>&6
854 SET_MAKE=
855 else
856 echo "$ac_t""no" 1>&6
857 SET_MAKE="MAKE=${MAKE-make}"
861 PACKAGE=$PACKAGE
863 VERSION=$release_VERSION
865 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
866 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
868 cat >> confdefs.h <<EOF
869 #define PACKAGE "$PACKAGE"
872 cat >> confdefs.h <<EOF
873 #define VERSION "$VERSION"
878 missing_dir=`cd $ac_aux_dir && pwd`
879 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
880 echo "configure:881: checking for working aclocal" >&5
881 # Run test in a subshell; some versions of sh will print an error if
882 # an executable is not found, even if stderr is redirected.
883 # Redirect stdin to placate older versions of autoconf. Sigh.
884 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
885 ACLOCAL=aclocal
886 echo "$ac_t""found" 1>&6
887 else
888 ACLOCAL="$missing_dir/missing aclocal"
889 echo "$ac_t""missing" 1>&6
892 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
893 echo "configure:894: checking for working autoconf" >&5
894 # Run test in a subshell; some versions of sh will print an error if
895 # an executable is not found, even if stderr is redirected.
896 # Redirect stdin to placate older versions of autoconf. Sigh.
897 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
898 AUTOCONF=autoconf
899 echo "$ac_t""found" 1>&6
900 else
901 AUTOCONF="$missing_dir/missing autoconf"
902 echo "$ac_t""missing" 1>&6
905 echo $ac_n "checking for working automake""... $ac_c" 1>&6
906 echo "configure:907: checking for working automake" >&5
907 # Run test in a subshell; some versions of sh will print an error if
908 # an executable is not found, even if stderr is redirected.
909 # Redirect stdin to placate older versions of autoconf. Sigh.
910 if (automake --version) < /dev/null > /dev/null 2>&1; then
911 AUTOMAKE=automake
912 echo "$ac_t""found" 1>&6
913 else
914 AUTOMAKE="$missing_dir/missing automake"
915 echo "$ac_t""missing" 1>&6
918 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
919 echo "configure:920: checking for working autoheader" >&5
920 # Run test in a subshell; some versions of sh will print an error if
921 # an executable is not found, even if stderr is redirected.
922 # Redirect stdin to placate older versions of autoconf. Sigh.
923 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
924 AUTOHEADER=autoheader
925 echo "$ac_t""found" 1>&6
926 else
927 AUTOHEADER="$missing_dir/missing autoheader"
928 echo "$ac_t""missing" 1>&6
931 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
932 echo "configure:933: checking for working makeinfo" >&5
933 # Run test in a subshell; some versions of sh will print an error if
934 # an executable is not found, even if stderr is redirected.
935 # Redirect stdin to placate older versions of autoconf. Sigh.
936 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
937 MAKEINFO=makeinfo
938 echo "$ac_t""found" 1>&6
939 else
940 MAKEINFO="$missing_dir/missing makeinfo"
941 echo "$ac_t""missing" 1>&6
949 # Runs configure.host and configure.target, as well as finds CC, CXX
950 # and assorted other critical bits. Have to run this before the
951 # GLIBCPP_ENABLE_* macros below.
952 if test $host != $build; then
953 ac_tool_prefix=${host_alias}-
954 else
955 ac_tool_prefix=
958 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
959 echo "configure:960: checking for Cygwin environment" >&5
960 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
962 else
963 cat > conftest.$ac_ext <<EOF
964 #line 965 "configure"
965 #include "confdefs.h"
967 int main() {
969 #ifndef __CYGWIN__
970 #define __CYGWIN__ __CYGWIN32__
971 #endif
972 return __CYGWIN__;
973 ; return 0; }
975 if { (eval echo configure:976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
976 rm -rf conftest*
977 ac_cv_cygwin=yes
978 else
979 echo "configure: failed program was:" >&5
980 cat conftest.$ac_ext >&5
981 rm -rf conftest*
982 ac_cv_cygwin=no
984 rm -f conftest*
985 rm -f conftest*
988 echo "$ac_t""$ac_cv_cygwin" 1>&6
989 CYGWIN=
990 test "$ac_cv_cygwin" = yes && CYGWIN=yes
991 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
992 echo "configure:993: checking for mingw32 environment" >&5
993 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
994 echo $ac_n "(cached) $ac_c" 1>&6
995 else
996 cat > conftest.$ac_ext <<EOF
997 #line 998 "configure"
998 #include "confdefs.h"
1000 int main() {
1001 return __MINGW32__;
1002 ; return 0; }
1004 if { (eval echo configure:1005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1005 rm -rf conftest*
1006 ac_cv_mingw32=yes
1007 else
1008 echo "configure: failed program was:" >&5
1009 cat conftest.$ac_ext >&5
1010 rm -rf conftest*
1011 ac_cv_mingw32=no
1013 rm -f conftest*
1014 rm -f conftest*
1017 echo "$ac_t""$ac_cv_mingw32" 1>&6
1018 MINGW32=
1019 test "$ac_cv_mingw32" = yes && MINGW32=yes
1021 # Check whether --enable-multilib or --disable-multilib was given.
1022 if test "${enable_multilib+set}" = set; then
1023 enableval="$enable_multilib"
1024 case "${enableval}" in
1025 yes) multilib=yes ;;
1026 no) multilib=no ;;
1027 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1028 esac
1029 else
1030 multilib=yes
1033 # When building with srcdir == objdir, links to the source files will
1034 # be created in directories within the target_subdir. We have to
1035 # adjust toplevel_srcdir accordingly, so that configure finds
1036 # install-sh and other auxiliary files that live in the top-level
1037 # source directory.
1038 if test "${srcdir}" = "."; then
1039 if test -z "${with_target_subdir}"; then
1040 toprel=".."
1041 else
1042 if test "${with_target_subdir}" != "."; then
1043 toprel="${with_multisrctop}../.."
1044 else
1045 toprel="${with_multisrctop}.."
1048 else
1049 toprel=".."
1051 ac_aux_dir=
1052 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1053 if test -f $ac_dir/install-sh; then
1054 ac_aux_dir=$ac_dir
1055 ac_install_sh="$ac_aux_dir/install-sh -c"
1056 break
1057 elif test -f $ac_dir/install.sh; then
1058 ac_aux_dir=$ac_dir
1059 ac_install_sh="$ac_aux_dir/install.sh -c"
1060 break
1062 done
1063 if test -z "$ac_aux_dir"; then
1064 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1066 ac_config_guess=$ac_aux_dir/config.guess
1067 ac_config_sub=$ac_aux_dir/config.sub
1068 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1070 toplevel_srcdir=\${top_srcdir}/$toprel
1073 # Export build and source directories.
1074 # These need to be absolute paths, yet at the same time need to
1075 # canonicalize only relative paths, because then amd will not unmount
1076 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1077 glibcpp_builddir=`${PWDCMD-pwd}`
1078 case $srcdir in
1079 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1080 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1081 esac
1087 for ac_prog in gawk mawk nawk awk
1089 # Extract the first word of "$ac_prog", so it can be a program name with args.
1090 set dummy $ac_prog; ac_word=$2
1091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1092 echo "configure:1093: checking for $ac_word" >&5
1093 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1095 else
1096 if test -n "$AWK"; then
1097 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1098 else
1099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1100 ac_dummy="$PATH"
1101 for ac_dir in $ac_dummy; do
1102 test -z "$ac_dir" && ac_dir=.
1103 if test -f $ac_dir/$ac_word; then
1104 ac_cv_prog_AWK="$ac_prog"
1105 break
1107 done
1108 IFS="$ac_save_ifs"
1111 AWK="$ac_cv_prog_AWK"
1112 if test -n "$AWK"; then
1113 echo "$ac_t""$AWK" 1>&6
1114 else
1115 echo "$ac_t""no" 1>&6
1118 test -n "$AWK" && break
1119 done
1121 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also
1122 # be 'cp -p' if linking isn't available.
1123 #ac_cv_prog_LN_S='cp -p'
1124 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1125 echo "configure:1126: checking whether ln -s works" >&5
1126 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1128 else
1129 rm -f conftestdata
1130 if ln -s X conftestdata 2>/dev/null
1131 then
1132 rm -f conftestdata
1133 ac_cv_prog_LN_S="ln -s"
1134 else
1135 ac_cv_prog_LN_S=ln
1138 LN_S="$ac_cv_prog_LN_S"
1139 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1140 echo "$ac_t""yes" 1>&6
1141 else
1142 echo "$ac_t""no" 1>&6
1146 # We use these options to decide which functions to include.
1147 # Check whether --with-target-subdir or --without-target-subdir was given.
1148 if test "${with_target_subdir+set}" = set; then
1149 withval="$with_target_subdir"
1153 # Check whether --with-cross-host or --without-cross-host was given.
1154 if test "${with_cross_host+set}" = set; then
1155 withval="$with_cross_host"
1160 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1163 # Never versions of autoconf add an underscore to these functions.
1164 # Prevent future problems ...
1170 # AC_PROG_CC
1171 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1172 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1173 # are probably using a cross compiler, which will not be able to fully
1174 # link an executable. This is addressed in later versions of autoconf.
1179 # Extract the first word of "gcc", so it can be a program name with args.
1180 set dummy gcc; ac_word=$2
1181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1182 echo "configure:1183: checking for $ac_word" >&5
1183 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1185 else
1186 if test -n "$CC"; then
1187 ac_cv_prog_CC="$CC" # Let the user override the test.
1188 else
1189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1190 ac_dummy="$PATH"
1191 for ac_dir in $ac_dummy; do
1192 test -z "$ac_dir" && ac_dir=.
1193 if test -f $ac_dir/$ac_word; then
1194 ac_cv_prog_CC="gcc"
1195 break
1197 done
1198 IFS="$ac_save_ifs"
1201 CC="$ac_cv_prog_CC"
1202 if test -n "$CC"; then
1203 echo "$ac_t""$CC" 1>&6
1204 else
1205 echo "$ac_t""no" 1>&6
1208 if test -z "$CC"; then
1209 # Extract the first word of "cc", so it can be a program name with args.
1210 set dummy cc; ac_word=$2
1211 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1212 echo "configure:1213: checking for $ac_word" >&5
1213 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1215 else
1216 if test -n "$CC"; then
1217 ac_cv_prog_CC="$CC" # Let the user override the test.
1218 else
1219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1220 ac_prog_rejected=no
1221 ac_dummy="$PATH"
1222 for ac_dir in $ac_dummy; do
1223 test -z "$ac_dir" && ac_dir=.
1224 if test -f $ac_dir/$ac_word; then
1225 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1226 ac_prog_rejected=yes
1227 continue
1229 ac_cv_prog_CC="cc"
1230 break
1232 done
1233 IFS="$ac_save_ifs"
1234 if test $ac_prog_rejected = yes; then
1235 # We found a bogon in the path, so make sure we never use it.
1236 set dummy $ac_cv_prog_CC
1237 shift
1238 if test $# -gt 0; then
1239 # We chose a different compiler from the bogus one.
1240 # However, it has the same basename, so the bogon will be chosen
1241 # first if we set CC to just the basename; use the full file name.
1242 shift
1243 set dummy "$ac_dir/$ac_word" "$@"
1244 shift
1245 ac_cv_prog_CC="$@"
1250 CC="$ac_cv_prog_CC"
1251 if test -n "$CC"; then
1252 echo "$ac_t""$CC" 1>&6
1253 else
1254 echo "$ac_t""no" 1>&6
1257 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1260 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1261 echo "configure:1262: checking whether we are using GNU C" >&5
1262 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1264 else
1265 cat > conftest.c <<EOF
1266 #ifdef __GNUC__
1267 yes;
1268 #endif
1270 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1271 ac_cv_prog_gcc=yes
1272 else
1273 ac_cv_prog_gcc=no
1277 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1279 if test $ac_cv_prog_gcc = yes; then
1280 GCC=yes
1281 ac_test_CFLAGS="${CFLAGS+set}"
1282 ac_save_CFLAGS="$CFLAGS"
1283 CFLAGS=
1284 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1285 echo "configure:1286: checking whether ${CC-cc} accepts -g" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1288 else
1289 echo 'void f(){}' > conftest.c
1290 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1291 ac_cv_prog_cc_g=yes
1292 else
1293 ac_cv_prog_cc_g=no
1295 rm -f conftest*
1299 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1300 if test "$ac_test_CFLAGS" = set; then
1301 CFLAGS="$ac_save_CFLAGS"
1302 elif test $ac_cv_prog_cc_g = yes; then
1303 CFLAGS="-g -O2"
1304 else
1305 CFLAGS="-O2"
1307 else
1308 GCC=
1309 test "${CFLAGS+set}" = set || CFLAGS="-g"
1313 # Likewise for AC_PROG_CXX. We can't just call it directly because g++
1314 # will try to link in libstdc++.
1318 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1319 # flags that come in CXX while configuring libstdc++. They're different
1320 # from those used for all other target libraries. If CXX is set in
1321 # the environment, respect that here.
1322 glibcpp_CXX=$CXX
1323 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1325 # Extract the first word of "$ac_prog", so it can be a program name with args.
1326 set dummy $ac_prog; ac_word=$2
1327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1328 echo "configure:1329: checking for $ac_word" >&5
1329 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1331 else
1332 if test -n "$glibcpp_CXX"; then
1333 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1334 else
1335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1336 ac_dummy="$PATH"
1337 for ac_dir in $ac_dummy; do
1338 test -z "$ac_dir" && ac_dir=.
1339 if test -f $ac_dir/$ac_word; then
1340 ac_cv_prog_glibcpp_CXX="$ac_prog"
1341 break
1343 done
1344 IFS="$ac_save_ifs"
1347 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1348 if test -n "$glibcpp_CXX"; then
1349 echo "$ac_t""$glibcpp_CXX" 1>&6
1350 else
1351 echo "$ac_t""no" 1>&6
1354 test -n "$glibcpp_CXX" && break
1355 done
1356 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1359 CXX=$glibcpp_CXX
1360 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1362 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1363 echo "configure:1364: checking whether we are using GNU C++" >&5
1364 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1365 echo $ac_n "(cached) $ac_c" 1>&6
1366 else
1367 cat > conftest.C <<EOF
1368 #ifdef __GNUC__
1369 yes;
1370 #endif
1372 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1373 ac_cv_prog_gxx=yes
1374 else
1375 ac_cv_prog_gxx=no
1379 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1381 if test $ac_cv_prog_gxx = yes; then
1382 GXX=yes
1383 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1384 ac_save_CXXFLAGS="$CXXFLAGS"
1385 CXXFLAGS=
1386 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1387 echo "configure:1388: checking whether ${CXX-g++} accepts -g" >&5
1388 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1390 else
1391 echo 'void f(){}' > conftest.cc
1392 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1393 ac_cv_prog_cxx_g=yes
1394 else
1395 ac_cv_prog_cxx_g=no
1397 rm -f conftest*
1401 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1402 if test "$ac_test_CXXFLAGS" = set; then
1403 CXXFLAGS="$ac_save_CXXFLAGS"
1404 elif test $ac_cv_prog_cxx_g = yes; then
1405 CXXFLAGS="-g -O2"
1406 else
1407 CXXFLAGS="-O2"
1409 else
1410 GXX=
1411 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1415 # For some reason, gettext needs this.
1417 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1418 echo "configure:1419: checking for strerror in -lcposix" >&5
1419 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1422 else
1423 ac_save_LIBS="$LIBS"
1424 LIBS="-lcposix $LIBS"
1425 cat > conftest.$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1428 /* Override any gcc2 internal prototype to avoid an error. */
1429 /* We use char because int might match the return type of a gcc2
1430 builtin and then its argument prototype would still apply. */
1431 char strerror();
1433 int main() {
1434 strerror()
1435 ; return 0; }
1437 if { (eval echo configure:1438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1438 rm -rf conftest*
1439 eval "ac_cv_lib_$ac_lib_var=yes"
1440 else
1441 echo "configure: failed program was:" >&5
1442 cat conftest.$ac_ext >&5
1443 rm -rf conftest*
1444 eval "ac_cv_lib_$ac_lib_var=no"
1446 rm -f conftest*
1447 LIBS="$ac_save_LIBS"
1450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1451 echo "$ac_t""yes" 1>&6
1452 LIBS="$LIBS -lcposix"
1453 else
1454 echo "$ac_t""no" 1>&6
1460 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1461 set dummy ${ac_tool_prefix}as; ac_word=$2
1462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1463 echo "configure:1464: checking for $ac_word" >&5
1464 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1466 else
1467 if test -n "$AS"; then
1468 ac_cv_prog_AS="$AS" # Let the user override the test.
1469 else
1470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1471 ac_dummy="$PATH"
1472 for ac_dir in $ac_dummy; do
1473 test -z "$ac_dir" && ac_dir=.
1474 if test -f $ac_dir/$ac_word; then
1475 ac_cv_prog_AS="${ac_tool_prefix}as"
1476 break
1478 done
1479 IFS="$ac_save_ifs"
1480 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1483 AS="$ac_cv_prog_AS"
1484 if test -n "$AS"; then
1485 echo "$ac_t""$AS" 1>&6
1486 else
1487 echo "$ac_t""no" 1>&6
1492 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1493 set dummy ${ac_tool_prefix}ar; ac_word=$2
1494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1495 echo "configure:1496: checking for $ac_word" >&5
1496 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1498 else
1499 if test -n "$AR"; then
1500 ac_cv_prog_AR="$AR" # Let the user override the test.
1501 else
1502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1503 ac_dummy="$PATH"
1504 for ac_dir in $ac_dummy; do
1505 test -z "$ac_dir" && ac_dir=.
1506 if test -f $ac_dir/$ac_word; then
1507 ac_cv_prog_AR="${ac_tool_prefix}ar"
1508 break
1510 done
1511 IFS="$ac_save_ifs"
1512 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1515 AR="$ac_cv_prog_AR"
1516 if test -n "$AR"; then
1517 echo "$ac_t""$AR" 1>&6
1518 else
1519 echo "$ac_t""no" 1>&6
1524 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1527 echo "configure:1528: checking for $ac_word" >&5
1528 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1530 else
1531 if test -n "$RANLIB"; then
1532 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1533 else
1534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1535 ac_dummy="$PATH"
1536 for ac_dir in $ac_dummy; do
1537 test -z "$ac_dir" && ac_dir=.
1538 if test -f $ac_dir/$ac_word; then
1539 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1540 break
1542 done
1543 IFS="$ac_save_ifs"
1546 RANLIB="$ac_cv_prog_RANLIB"
1547 if test -n "$RANLIB"; then
1548 echo "$ac_t""$RANLIB" 1>&6
1549 else
1550 echo "$ac_t""no" 1>&6
1554 if test -z "$ac_cv_prog_RANLIB"; then
1555 if test -n "$ac_tool_prefix"; then
1556 # Extract the first word of "ranlib", so it can be a program name with args.
1557 set dummy ranlib; ac_word=$2
1558 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1559 echo "configure:1560: checking for $ac_word" >&5
1560 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1562 else
1563 if test -n "$RANLIB"; then
1564 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1565 else
1566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1567 ac_dummy="$PATH"
1568 for ac_dir in $ac_dummy; do
1569 test -z "$ac_dir" && ac_dir=.
1570 if test -f $ac_dir/$ac_word; then
1571 ac_cv_prog_RANLIB="ranlib"
1572 break
1574 done
1575 IFS="$ac_save_ifs"
1576 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1579 RANLIB="$ac_cv_prog_RANLIB"
1580 if test -n "$RANLIB"; then
1581 echo "$ac_t""$RANLIB" 1>&6
1582 else
1583 echo "$ac_t""no" 1>&6
1586 else
1587 RANLIB="ranlib-not-found-in-path-error"
1591 # Find a good install program. We prefer a C program (faster),
1592 # so one script is as good as another. But avoid the broken or
1593 # incompatible versions:
1594 # SysV /etc/install, /usr/sbin/install
1595 # SunOS /usr/etc/install
1596 # IRIX /sbin/install
1597 # AIX /bin/install
1598 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1599 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1600 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1601 # ./install, which can be erroneously created by make from ./install.sh.
1602 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1603 echo "configure:1604: checking for a BSD compatible install" >&5
1604 if test -z "$INSTALL"; then
1605 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1607 else
1608 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1609 for ac_dir in $PATH; do
1610 # Account for people who put trailing slashes in PATH elements.
1611 case "$ac_dir/" in
1612 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1614 # OSF1 and SCO ODT 3.0 have their own names for install.
1615 # Don't use installbsd from OSF since it installs stuff as root
1616 # by default.
1617 for ac_prog in ginstall scoinst install; do
1618 if test -f $ac_dir/$ac_prog; then
1619 if test $ac_prog = install &&
1620 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1621 # AIX install. It has an incompatible calling convention.
1623 else
1624 ac_cv_path_install="$ac_dir/$ac_prog -c"
1625 break 2
1628 done
1630 esac
1631 done
1632 IFS="$ac_save_IFS"
1635 if test "${ac_cv_path_install+set}" = set; then
1636 INSTALL="$ac_cv_path_install"
1637 else
1638 # As a last resort, use the slow shell script. We don't cache a
1639 # path for INSTALL within a source directory, because that will
1640 # break other packages using the cache if that directory is
1641 # removed, or if the path is relative.
1642 INSTALL="$ac_install_sh"
1645 echo "$ac_t""$INSTALL" 1>&6
1647 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1648 # It thinks the first close brace ends the variable substitution.
1649 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1651 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1653 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1656 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1657 echo "configure:1658: checking whether to enable maintainer-specific portions of Makefiles" >&5
1658 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1659 if test "${enable_maintainer_mode+set}" = set; then
1660 enableval="$enable_maintainer_mode"
1661 USE_MAINTAINER_MODE=$enableval
1662 else
1663 USE_MAINTAINER_MODE=no
1666 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1669 if test $USE_MAINTAINER_MODE = yes; then
1670 MAINTAINER_MODE_TRUE=
1671 MAINTAINER_MODE_FALSE='#'
1672 else
1673 MAINTAINER_MODE_TRUE='#'
1674 MAINTAINER_MODE_FALSE=
1676 MAINT=$MAINTAINER_MODE_TRUE
1680 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1681 # at least currently, we never actually build a program, so we never
1682 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1683 # fails, because we are probably configuring with a cross compiler
1684 # which can't create executables. So we include AC_EXEEXT to keep
1685 # automake happy, but we don't execute it, since we don't care about
1686 # the result.
1687 if false; then
1688 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1689 # to nothing, so nothing would remain between `then' and `fi' if it
1690 # were not for the `:' below.
1694 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1695 echo "configure:1696: checking for executable suffix" >&5
1696 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
1698 else
1699 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1700 ac_cv_exeext=.exe
1701 else
1702 rm -f conftest*
1703 echo 'int main () { return 0; }' > conftest.$ac_ext
1704 ac_cv_exeext=
1705 if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1706 for file in conftest.*; do
1707 case $file in
1708 *.c | *.o | *.obj) ;;
1709 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1710 esac
1711 done
1712 else
1713 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1715 rm -f conftest*
1716 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1720 EXEEXT=""
1721 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1722 echo "$ac_t""${ac_cv_exeext}" 1>&6
1723 ac_exeext=$EXEEXT
1727 . ${glibcpp_basedir}/configure.host
1729 case ${glibcpp_basedir} in
1730 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1731 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1732 esac
1734 # This does for the target what configure.host does for the host. In
1735 # addition to possibly modifying the same flags, it also sets up symlinks.
1737 . ${glibcpp_basedir}/configure.target
1738 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1739 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1745 # Check whether --enable-shared or --disable-shared was given.
1746 if test "${enable_shared+set}" = set; then
1747 enableval="$enable_shared"
1748 p=${PACKAGE-default}
1749 case $enableval in
1750 yes) enable_shared=yes ;;
1751 no) enable_shared=no ;;
1753 enable_shared=no
1754 # Look at the argument we got. We use all the common list separators.
1755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1756 for pkg in $enableval; do
1757 if test "X$pkg" = "X$p"; then
1758 enable_shared=yes
1760 done
1761 IFS="$ac_save_ifs"
1763 esac
1764 else
1765 enable_shared=yes
1768 # Check whether --enable-static or --disable-static was given.
1769 if test "${enable_static+set}" = set; then
1770 enableval="$enable_static"
1771 p=${PACKAGE-default}
1772 case $enableval in
1773 yes) enable_static=yes ;;
1774 no) enable_static=no ;;
1776 enable_static=no
1777 # Look at the argument we got. We use all the common list separators.
1778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1779 for pkg in $enableval; do
1780 if test "X$pkg" = "X$p"; then
1781 enable_static=yes
1783 done
1784 IFS="$ac_save_ifs"
1786 esac
1787 else
1788 enable_static=yes
1791 # Check whether --enable-fast-install or --disable-fast-install was given.
1792 if test "${enable_fast_install+set}" = set; then
1793 enableval="$enable_fast_install"
1794 p=${PACKAGE-default}
1795 case $enableval in
1796 yes) enable_fast_install=yes ;;
1797 no) enable_fast_install=no ;;
1799 enable_fast_install=no
1800 # Look at the argument we got. We use all the common list separators.
1801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1802 for pkg in $enableval; do
1803 if test "X$pkg" = "X$p"; then
1804 enable_fast_install=yes
1806 done
1807 IFS="$ac_save_ifs"
1809 esac
1810 else
1811 enable_fast_install=yes
1814 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1815 if test "${with_gnu_ld+set}" = set; then
1816 withval="$with_gnu_ld"
1817 test "$withval" = no || with_gnu_ld=yes
1818 else
1819 with_gnu_ld=no
1822 ac_prog=ld
1823 if test "$GCC" = yes; then
1824 # Check if gcc -print-prog-name=ld gives a path.
1825 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1826 echo "configure:1827: checking for ld used by GCC" >&5
1827 case $host in
1828 *-*-mingw*)
1829 # gcc leaves a trailing carriage return which upsets mingw
1830 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1832 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1833 esac
1834 case $ac_prog in
1835 # Accept absolute paths.
1836 [\\/]* | [A-Za-z]:[\\/]*)
1837 re_direlt='/[^/][^/]*/\.\./'
1838 # Canonicalize the path of ld
1839 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1840 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1841 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1842 done
1843 test -z "$LD" && LD="$ac_prog"
1846 # If it fails, then pretend we aren't using GCC.
1847 ac_prog=ld
1850 # If it is relative, then search for the first ld in PATH.
1851 with_gnu_ld=unknown
1853 esac
1854 elif test "$with_gnu_ld" = yes; then
1855 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1856 echo "configure:1857: checking for GNU ld" >&5
1857 else
1858 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1859 echo "configure:1860: checking for non-GNU ld" >&5
1861 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
1863 else
1864 if test -z "$LD"; then
1865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1866 for ac_dir in $PATH; do
1867 test -z "$ac_dir" && ac_dir=.
1868 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1869 lt_cv_path_LD="$ac_dir/$ac_prog"
1870 # Check to see if the program is GNU ld. I'd rather use --version,
1871 # but apparently some GNU ld's only accept -v.
1872 # Break only if it was the GNU/non-GNU ld that we prefer.
1873 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1874 test "$with_gnu_ld" != no && break
1875 else
1876 test "$with_gnu_ld" != yes && break
1879 done
1880 IFS="$ac_save_ifs"
1881 else
1882 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1886 LD="$lt_cv_path_LD"
1887 if test -n "$LD"; then
1888 echo "$ac_t""$LD" 1>&6
1889 else
1890 echo "$ac_t""no" 1>&6
1892 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1893 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1894 echo "configure:1895: checking if the linker ($LD) is GNU ld" >&5
1895 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1897 else
1898 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1899 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1900 lt_cv_prog_gnu_ld=yes
1901 else
1902 lt_cv_prog_gnu_ld=no
1906 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1907 with_gnu_ld=$lt_cv_prog_gnu_ld
1910 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1911 echo "configure:1912: checking for $LD option to reload object files" >&5
1912 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1914 else
1915 lt_cv_ld_reload_flag='-r'
1918 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1919 reload_flag=$lt_cv_ld_reload_flag
1920 test -n "$reload_flag" && reload_flag=" $reload_flag"
1922 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1923 echo "configure:1924: checking for BSD-compatible nm" >&5
1924 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1925 echo $ac_n "(cached) $ac_c" 1>&6
1926 else
1927 if test -n "$NM"; then
1928 # Let the user override the test.
1929 lt_cv_path_NM="$NM"
1930 else
1931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1932 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1933 test -z "$ac_dir" && ac_dir=.
1934 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1935 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1936 # Check to see if the nm accepts a BSD-compat flag.
1937 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1938 # nm: unknown option "B" ignored
1939 # Tru64's nm complains that /dev/null is an invalid object file
1940 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1941 lt_cv_path_NM="$tmp_nm -B"
1942 break
1943 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1944 lt_cv_path_NM="$tmp_nm -p"
1945 break
1946 else
1947 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1948 continue # so that we can try to find one that supports BSD flags
1951 done
1952 IFS="$ac_save_ifs"
1953 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1957 NM="$lt_cv_path_NM"
1958 echo "$ac_t""$NM" 1>&6
1960 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1961 echo "configure:1962: checking how to recognise dependant libraries" >&5
1962 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1964 else
1965 lt_cv_file_magic_cmd='$MAGIC_CMD'
1966 lt_cv_file_magic_test_file=
1967 lt_cv_deplibs_check_method='unknown'
1968 # Need to set the preceding variable on all platforms that support
1969 # interlibrary dependencies.
1970 # 'none' -- dependencies not supported.
1971 # `unknown' -- same as none, but documents that we really don't know.
1972 # 'pass_all' -- all dependencies passed with no checks.
1973 # 'test_compile' -- check by making test program.
1974 # 'file_magic [regex]' -- check by looking for files in library path
1975 # which responds to the $file_magic_cmd with a given egrep regex.
1976 # If you have `file' or equivalent on your system and you're not sure
1977 # whether `pass_all' will *always* work, you probably want this one.
1979 case $host_os in
1980 aix*)
1981 lt_cv_deplibs_check_method=pass_all
1984 beos*)
1985 lt_cv_deplibs_check_method=pass_all
1988 bsdi4*)
1989 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1990 lt_cv_file_magic_cmd='/usr/bin/file -L'
1991 lt_cv_file_magic_test_file=/shlib/libc.so
1994 cygwin* | mingw* |pw32*)
1995 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1996 lt_cv_file_magic_cmd='$OBJDUMP -f'
1999 darwin* | rhapsody*)
2000 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2001 lt_cv_file_magic_cmd='/usr/bin/file -L'
2002 case "$host_os" in
2003 rhapsody* | darwin1.012)
2004 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2006 *) # Darwin 1.3 on
2007 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2009 esac
2012 freebsd* )
2013 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2014 case $host_cpu in
2015 i*86 )
2016 # Not sure whether the presence of OpenBSD here was a mistake.
2017 # Let's accept both of them until this is cleared up.
2018 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2019 lt_cv_file_magic_cmd=/usr/bin/file
2020 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2022 esac
2023 else
2024 lt_cv_deplibs_check_method=pass_all
2028 gnu*)
2029 lt_cv_deplibs_check_method=pass_all
2032 hpux10.20*|hpux11*)
2033 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2034 lt_cv_file_magic_cmd=/usr/bin/file
2035 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2038 irix5* | irix6*)
2039 case $host_os in
2040 irix5*)
2041 # this will be overridden with pass_all, but let us keep it just in case
2042 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2045 case $LD in
2046 *-32|*"-32 ") libmagic=32-bit;;
2047 *-n32|*"-n32 ") libmagic=N32;;
2048 *-64|*"-64 ") libmagic=64-bit;;
2049 *) libmagic=never-match;;
2050 esac
2051 # this will be overridden with pass_all, but let us keep it just in case
2052 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2054 esac
2055 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2056 lt_cv_deplibs_check_method=pass_all
2059 # This must be Linux ELF.
2060 linux-gnu*)
2061 case $host_cpu in
2062 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2063 lt_cv_deplibs_check_method=pass_all ;;
2065 # glibc up to 2.1.1 does not perform some relocations on ARM
2066 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2067 esac
2068 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2071 netbsd*)
2072 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2073 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2074 else
2075 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2079 newsos6)
2080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2081 lt_cv_file_magic_cmd=/usr/bin/file
2082 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2085 osf3* | osf4* | osf5*)
2086 # this will be overridden with pass_all, but let us keep it just in case
2087 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2088 lt_cv_file_magic_test_file=/shlib/libc.so
2089 lt_cv_deplibs_check_method=pass_all
2092 sco3.2v5*)
2093 lt_cv_deplibs_check_method=pass_all
2096 solaris*)
2097 lt_cv_deplibs_check_method=pass_all
2098 lt_cv_file_magic_test_file=/lib/libc.so
2101 sysv5uw[78]* | sysv4*uw2*)
2102 lt_cv_deplibs_check_method=pass_all
2105 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2106 case $host_vendor in
2107 ncr)
2108 lt_cv_deplibs_check_method=pass_all
2110 motorola)
2111 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]'
2112 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2114 esac
2116 esac
2120 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2121 file_magic_cmd=$lt_cv_file_magic_cmd
2122 deplibs_check_method=$lt_cv_deplibs_check_method
2124 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2125 echo "configure:2126: checking for object suffix" >&5
2126 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2128 else
2129 rm -f conftest*
2130 echo 'int i = 1;' > conftest.$ac_ext
2131 if { (eval echo configure:2132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2132 for ac_file in conftest.*; do
2133 case $ac_file in
2134 *.c) ;;
2135 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2136 esac
2137 done
2138 else
2139 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2141 rm -f conftest*
2144 echo "$ac_t""$ac_cv_objext" 1>&6
2145 OBJEXT=$ac_cv_objext
2146 ac_objext=$ac_cv_objext
2148 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2150 # Only perform the check for file, if the check method requires it
2151 case $deplibs_check_method in
2152 file_magic*)
2153 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2154 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2155 echo "configure:2156: checking for ${ac_tool_prefix}file" >&5
2156 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2158 else
2159 case $MAGIC_CMD in
2161 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2163 ?:/*)
2164 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2167 ac_save_MAGIC_CMD="$MAGIC_CMD"
2168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2169 ac_dummy="/usr/bin:$PATH"
2170 for ac_dir in $ac_dummy; do
2171 test -z "$ac_dir" && ac_dir=.
2172 if test -f $ac_dir/${ac_tool_prefix}file; then
2173 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2174 if test -n "$file_magic_test_file"; then
2175 case $deplibs_check_method in
2176 "file_magic "*)
2177 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2178 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2179 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2180 egrep "$file_magic_regex" > /dev/null; then
2182 else
2183 cat <<EOF 1>&2
2185 *** Warning: the command libtool uses to detect shared libraries,
2186 *** $file_magic_cmd, produces output that libtool cannot recognize.
2187 *** The result is that libtool may fail to recognize shared libraries
2188 *** as such. This will affect the creation of libtool libraries that
2189 *** depend on shared libraries, but programs linked with such libtool
2190 *** libraries will work regardless of this problem. Nevertheless, you
2191 *** may want to report the problem to your system manager and/or to
2192 *** bug-libtool@gnu.org
2195 fi ;;
2196 esac
2198 break
2200 done
2201 IFS="$ac_save_ifs"
2202 MAGIC_CMD="$ac_save_MAGIC_CMD"
2204 esac
2207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2208 if test -n "$MAGIC_CMD"; then
2209 echo "$ac_t""$MAGIC_CMD" 1>&6
2210 else
2211 echo "$ac_t""no" 1>&6
2214 if test -z "$lt_cv_path_MAGIC_CMD"; then
2215 if test -n "$ac_tool_prefix"; then
2216 echo $ac_n "checking for file""... $ac_c" 1>&6
2217 echo "configure:2218: checking for file" >&5
2218 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2220 else
2221 case $MAGIC_CMD in
2223 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2225 ?:/*)
2226 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2229 ac_save_MAGIC_CMD="$MAGIC_CMD"
2230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2231 ac_dummy="/usr/bin:$PATH"
2232 for ac_dir in $ac_dummy; do
2233 test -z "$ac_dir" && ac_dir=.
2234 if test -f $ac_dir/file; then
2235 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2236 if test -n "$file_magic_test_file"; then
2237 case $deplibs_check_method in
2238 "file_magic "*)
2239 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2241 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2242 egrep "$file_magic_regex" > /dev/null; then
2244 else
2245 cat <<EOF 1>&2
2247 *** Warning: the command libtool uses to detect shared libraries,
2248 *** $file_magic_cmd, produces output that libtool cannot recognize.
2249 *** The result is that libtool may fail to recognize shared libraries
2250 *** as such. This will affect the creation of libtool libraries that
2251 *** depend on shared libraries, but programs linked with such libtool
2252 *** libraries will work regardless of this problem. Nevertheless, you
2253 *** may want to report the problem to your system manager and/or to
2254 *** bug-libtool@gnu.org
2257 fi ;;
2258 esac
2260 break
2262 done
2263 IFS="$ac_save_ifs"
2264 MAGIC_CMD="$ac_save_MAGIC_CMD"
2266 esac
2269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2270 if test -n "$MAGIC_CMD"; then
2271 echo "$ac_t""$MAGIC_CMD" 1>&6
2272 else
2273 echo "$ac_t""no" 1>&6
2276 else
2277 MAGIC_CMD=:
2283 esac
2285 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2286 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2288 echo "configure:2289: checking for $ac_word" >&5
2289 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6
2291 else
2292 if test -n "$RANLIB"; then
2293 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2294 else
2295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2296 ac_dummy="$PATH"
2297 for ac_dir in $ac_dummy; do
2298 test -z "$ac_dir" && ac_dir=.
2299 if test -f $ac_dir/$ac_word; then
2300 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2301 break
2303 done
2304 IFS="$ac_save_ifs"
2307 RANLIB="$ac_cv_prog_RANLIB"
2308 if test -n "$RANLIB"; then
2309 echo "$ac_t""$RANLIB" 1>&6
2310 else
2311 echo "$ac_t""no" 1>&6
2315 if test -z "$ac_cv_prog_RANLIB"; then
2316 if test -n "$ac_tool_prefix"; then
2317 # Extract the first word of "ranlib", so it can be a program name with args.
2318 set dummy ranlib; ac_word=$2
2319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2320 echo "configure:2321: checking for $ac_word" >&5
2321 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2322 echo $ac_n "(cached) $ac_c" 1>&6
2323 else
2324 if test -n "$RANLIB"; then
2325 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2326 else
2327 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2328 ac_dummy="$PATH"
2329 for ac_dir in $ac_dummy; do
2330 test -z "$ac_dir" && ac_dir=.
2331 if test -f $ac_dir/$ac_word; then
2332 ac_cv_prog_RANLIB="ranlib"
2333 break
2335 done
2336 IFS="$ac_save_ifs"
2337 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2340 RANLIB="$ac_cv_prog_RANLIB"
2341 if test -n "$RANLIB"; then
2342 echo "$ac_t""$RANLIB" 1>&6
2343 else
2344 echo "$ac_t""no" 1>&6
2347 else
2348 RANLIB=":"
2352 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2353 set dummy ${ac_tool_prefix}strip; ac_word=$2
2354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2355 echo "configure:2356: checking for $ac_word" >&5
2356 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2358 else
2359 if test -n "$STRIP"; then
2360 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2361 else
2362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2363 ac_dummy="$PATH"
2364 for ac_dir in $ac_dummy; do
2365 test -z "$ac_dir" && ac_dir=.
2366 if test -f $ac_dir/$ac_word; then
2367 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2368 break
2370 done
2371 IFS="$ac_save_ifs"
2374 STRIP="$ac_cv_prog_STRIP"
2375 if test -n "$STRIP"; then
2376 echo "$ac_t""$STRIP" 1>&6
2377 else
2378 echo "$ac_t""no" 1>&6
2382 if test -z "$ac_cv_prog_STRIP"; then
2383 if test -n "$ac_tool_prefix"; then
2384 # Extract the first word of "strip", so it can be a program name with args.
2385 set dummy strip; ac_word=$2
2386 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2387 echo "configure:2388: checking for $ac_word" >&5
2388 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2389 echo $ac_n "(cached) $ac_c" 1>&6
2390 else
2391 if test -n "$STRIP"; then
2392 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2393 else
2394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2395 ac_dummy="$PATH"
2396 for ac_dir in $ac_dummy; do
2397 test -z "$ac_dir" && ac_dir=.
2398 if test -f $ac_dir/$ac_word; then
2399 ac_cv_prog_STRIP="strip"
2400 break
2402 done
2403 IFS="$ac_save_ifs"
2404 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2407 STRIP="$ac_cv_prog_STRIP"
2408 if test -n "$STRIP"; then
2409 echo "$ac_t""$STRIP" 1>&6
2410 else
2411 echo "$ac_t""no" 1>&6
2414 else
2415 STRIP=":"
2420 # Check for any special flags to pass to ltconfig.
2421 libtool_flags="--cache-file=$cache_file"
2422 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2423 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2424 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2425 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2426 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2427 libtool_flags="$libtool_flags --enable-dlopen"
2429 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2430 if test "${enable_libtool_lock+set}" = set; then
2431 enableval="$enable_libtool_lock"
2435 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2436 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2438 # Check whether --with-pic or --without-pic was given.
2439 if test "${with_pic+set}" = set; then
2440 withval="$with_pic"
2441 pic_mode="$withval"
2442 else
2443 pic_mode=default
2446 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2447 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2449 # Some flags need to be propagated to the compiler or linker for good
2450 # libtool support.
2451 case $host in
2452 *-*-irix6*)
2453 # Find out which ABI we are using.
2454 echo '#line 2455 "configure"' > conftest.$ac_ext
2455 if { (eval echo configure:2456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2456 case `/usr/bin/file conftest.$ac_objext` in
2457 *32-bit*)
2458 LD="${LD-ld} -32"
2460 *N32*)
2461 LD="${LD-ld} -n32"
2463 *64-bit*)
2464 LD="${LD-ld} -64"
2466 esac
2468 rm -rf conftest*
2471 *-*-sco3.2v5*)
2472 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2473 SAVE_CFLAGS="$CFLAGS"
2474 CFLAGS="$CFLAGS -belf"
2475 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2476 echo "configure:2477: checking whether the C compiler needs -belf" >&5
2477 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2479 else
2481 ac_ext=c
2482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2483 ac_cpp='$CPP $CPPFLAGS'
2484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2486 cross_compiling=$ac_cv_prog_cc_cross
2488 cat > conftest.$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2492 int main() {
2494 ; return 0; }
2496 if { (eval echo configure:2497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2497 rm -rf conftest*
2498 lt_cv_cc_needs_belf=yes
2499 else
2500 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2502 rm -rf conftest*
2503 lt_cv_cc_needs_belf=no
2505 rm -f conftest*
2506 ac_ext=c
2507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2511 cross_compiling=$ac_cv_prog_cc_cross
2515 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2516 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2517 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2518 CFLAGS="$SAVE_CFLAGS"
2523 esac
2525 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2526 echo "configure:2527: checking how to run the C++ preprocessor" >&5
2527 if test -z "$CXXCPP"; then
2528 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2529 echo $ac_n "(cached) $ac_c" 1>&6
2530 else
2531 ac_ext=C
2532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2533 ac_cpp='$CXXCPP $CPPFLAGS'
2534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2536 cross_compiling=$ac_cv_prog_cxx_cross
2537 CXXCPP="${CXX-g++} -E"
2538 cat > conftest.$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2541 #include <stdlib.h>
2543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2544 { (eval echo configure:2545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2546 if test -z "$ac_err"; then
2548 else
2549 echo "$ac_err" >&5
2550 echo "configure: failed program was:" >&5
2551 cat conftest.$ac_ext >&5
2552 rm -rf conftest*
2553 CXXCPP=/lib/cpp
2555 rm -f conftest*
2556 ac_cv_prog_CXXCPP="$CXXCPP"
2557 ac_ext=c
2558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2562 cross_compiling=$ac_cv_prog_cc_cross
2565 CXXCPP="$ac_cv_prog_CXXCPP"
2566 echo "$ac_t""$CXXCPP" 1>&6
2569 # Save cache, so that ltconfig can load it
2570 cat > confcache <<\EOF
2571 # This file is a shell script that caches the results of configure
2572 # tests run on this system so they can be shared between configure
2573 # scripts and configure runs. It is not useful on other systems.
2574 # If it contains results you don't want to keep, you may remove or edit it.
2576 # By default, configure uses ./config.cache as the cache file,
2577 # creating it if it does not exist already. You can give configure
2578 # the --cache-file=FILE option to use a different cache file; that is
2579 # what configure does when it calls configure scripts in
2580 # subdirectories, so they share the cache.
2581 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2582 # config.status only pays attention to the cache file if you give it the
2583 # --recheck option to rerun configure.
2586 # The following way of writing the cache mishandles newlines in values,
2587 # but we know of no workaround that is simple, portable, and efficient.
2588 # So, don't put newlines in cache variables' values.
2589 # Ultrix sh set writes to stderr and can't be redirected directly,
2590 # and sets the high bit in the cache file unless we assign to the vars.
2591 (set) 2>&1 |
2592 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2593 *ac_space=\ *)
2594 # `set' does not quote correctly, so add quotes (double-quote substitution
2595 # turns \\\\ into \\, and sed turns \\ into \).
2596 sed -n \
2597 -e "s/'/'\\\\''/g" \
2598 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2601 # `set' quotes correctly as required by POSIX, so do not add quotes.
2602 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2604 esac >> confcache
2605 if cmp -s $cache_file confcache; then
2607 else
2608 if test -w $cache_file; then
2609 echo "updating cache $cache_file"
2610 cat confcache > $cache_file
2611 else
2612 echo "not updating unwritable cache $cache_file"
2615 rm -f confcache
2618 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2619 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2620 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2621 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2622 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2623 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2624 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2625 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2626 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2627 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2629 # Reload cache, that may have been modified by ltconfig
2630 if test -r "$cache_file"; then
2631 echo "loading cache $cache_file"
2632 . $cache_file
2633 else
2634 echo "creating cache $cache_file"
2635 > $cache_file
2639 # This can be used to rebuild libtool when needed
2640 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2642 # Always use our own libtool.
2643 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2645 # Redirect the config.log output again, so that the ltconfig log is not
2646 # clobbered by the next message.
2647 exec 5>>./config.log
2651 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2652 lt_save_CC="$CC"
2653 lt_save_CFLAGS="$CFLAGS"
2654 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2655 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2656 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2657 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2658 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2659 deplibs_check_method="$deplibs_check_method" \
2660 file_magic_cmd="$file_magic_cmd" \
2661 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2662 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2663 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2664 CC="$lt_save_CC"
2665 CFLAGS="$lt_save_CFLAGS"
2667 # Redirect the config.log output again, so that the ltconfig log is not
2668 # clobbered by the next message.
2669 exec 5>>./config.log
2679 # Check for c++ or library specific bits that don't require linking.
2680 #GLIBCPP_CHECK_COMPILER_VERSION
2681 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2682 echo "configure:2683: checking for GNU make" >&5
2683 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2685 else
2686 _cv_gnu_make_command='' ;
2687 for a in "${MAKE-make}" make gmake gnumake ; do
2688 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2689 then
2690 _cv_gnu_make_command=$a ;
2691 break;
2693 done ;
2697 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2698 if test "x$_cv_gnu_make_command" != "x" ; then
2699 ifGNUmake='' ;
2700 else
2701 ifGNUmake='#' ;
2706 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2707 # Check whether --enable-debug or --disable-debug was given.
2708 if test "${enable_debug+set}" = set; then
2709 enableval="$enable_debug"
2710 case "${enableval}" in
2711 yes) enable_debug=yes ;;
2712 no) enable_debug=no ;;
2713 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2714 esac
2715 else
2716 enable_debug=no
2719 case "${enable_debug}" in
2720 yes)
2721 DEBUG_FLAGS='-O0 -ggdb3'
2723 no)
2724 DEBUG_FLAGS='-g'
2726 esac
2729 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2730 echo "configure:2731: checking how to run the C preprocessor" >&5
2731 # On Suns, sometimes $CPP names a directory.
2732 if test -n "$CPP" && test -d "$CPP"; then
2733 CPP=
2735 if test -z "$CPP"; then
2736 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2738 else
2739 # This must be in double quotes, not single quotes, because CPP may get
2740 # substituted into the Makefile and "${CC-cc}" will confuse make.
2741 CPP="${CC-cc} -E"
2742 # On the NeXT, cc -E runs the code through the compiler's parser,
2743 # not just through cpp.
2744 cat > conftest.$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2747 #include <assert.h>
2748 Syntax Error
2750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2751 { (eval echo configure:2752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2753 if test -z "$ac_err"; then
2755 else
2756 echo "$ac_err" >&5
2757 echo "configure: failed program was:" >&5
2758 cat conftest.$ac_ext >&5
2759 rm -rf conftest*
2760 CPP="${CC-cc} -E -traditional-cpp"
2761 cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2764 #include <assert.h>
2765 Syntax Error
2767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2768 { (eval echo configure:2769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2770 if test -z "$ac_err"; then
2772 else
2773 echo "$ac_err" >&5
2774 echo "configure: failed program was:" >&5
2775 cat conftest.$ac_ext >&5
2776 rm -rf conftest*
2777 CPP="${CC-cc} -nologo -E"
2778 cat > conftest.$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2781 #include <assert.h>
2782 Syntax Error
2784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2785 { (eval echo configure:2786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2787 if test -z "$ac_err"; then
2789 else
2790 echo "$ac_err" >&5
2791 echo "configure: failed program was:" >&5
2792 cat conftest.$ac_ext >&5
2793 rm -rf conftest*
2794 CPP=/lib/cpp
2796 rm -f conftest*
2798 rm -f conftest*
2800 rm -f conftest*
2801 ac_cv_prog_CPP="$CPP"
2803 CPP="$ac_cv_prog_CPP"
2804 else
2805 ac_cv_prog_CPP="$CPP"
2807 echo "$ac_t""$CPP" 1>&6
2810 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2811 echo "configure:2812: checking for cstdio to use" >&5
2812 # Check whether --enable-cstdio or --disable-cstdio was given.
2813 if test "${enable_cstdio+set}" = set; then
2814 enableval="$enable_cstdio"
2815 if test x$enable_cstdio = xno; then
2816 enable_cstdio=stdio
2818 else
2819 enable_cstdio=stdio
2823 enable_cstdio_flag=$enable_cstdio
2825 case x${enable_cstdio_flag} in
2826 xlibio)
2827 CSTDIO_H=config/io/c_io_libio.h
2828 BASIC_FILE_H=config/io/basic_file_libio.h
2829 BASIC_FILE_CC=config/io/basic_file_libio.cc
2830 echo "$ac_t""libio" 1>&6
2832 # see if we are on a system with libio native (ie, linux)
2833 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2834 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2835 echo "configure:2836: checking for libio.h" >&5
2836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2838 else
2839 cat > conftest.$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2842 #include <libio.h>
2844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2845 { (eval echo configure:2846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2847 if test -z "$ac_err"; then
2848 rm -rf conftest*
2849 eval "ac_cv_header_$ac_safe=yes"
2850 else
2851 echo "$ac_err" >&5
2852 echo "configure: failed program was:" >&5
2853 cat conftest.$ac_ext >&5
2854 rm -rf conftest*
2855 eval "ac_cv_header_$ac_safe=no"
2857 rm -f conftest*
2859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2860 echo "$ac_t""yes" 1>&6
2861 has_libio=yes
2862 else
2863 echo "$ac_t""no" 1>&6
2864 has_libio=no
2868 # Need to check and see what version of glibc is being used. If
2869 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2870 # compile most of libio for linux systems.
2871 if test x$has_libio = x"yes"; then
2872 case "$target" in
2873 *-*-linux*)
2874 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2875 echo "configure:2876: checking for glibc version >= 2.2" >&5
2876 cat > conftest.$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2880 #include <features.h>
2881 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2883 #endif
2886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2887 egrep "ok" >/dev/null 2>&1; then
2888 rm -rf conftest*
2889 glibc_satisfactory=yes
2890 else
2891 rm -rf conftest*
2892 glibc_satisfactory=no
2894 rm -f conftest*
2896 echo "$ac_t""$glibc_satisfactory" 1>&6
2898 esac
2900 # XXX at the moment, admit defeat and force the recompilation
2901 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2902 glibc_satisfactory=no
2904 if test x$glibc_satisfactory = x"yes"; then
2905 need_libio=no
2906 need_wlibio=no
2907 else
2908 need_libio=yes
2909 # bkoz XXX need to add checks to enable this
2910 # pme XXX here's a first pass at such a check
2911 if test x$enable_c_mbchar != xno; then
2912 need_wlibio=yes
2913 else
2914 need_wlibio=no
2918 else
2919 # Using libio, but <libio.h> doesn't exist on the target system. . .
2920 need_libio=yes
2921 # bkoz XXX need to add checks to enable this
2922 # pme XXX here's a first pass at such a check
2923 if test x$enable_c_mbchar != xno; then
2924 need_wlibio=yes
2925 else
2926 need_wlibio=no
2930 xstdio | x | xno | xnone | xyes)
2931 # default
2932 CSTDIO_H=config/io/c_io_stdio.h
2933 BASIC_FILE_H=config/io/basic_file_stdio.h
2934 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2935 echo "$ac_t""stdio" 1>&6
2937 # We're not using stdio.
2938 need_libio=no
2939 need_wlibio=no
2942 echo "$enable_cstdio is an unknown io package" 1>&2
2943 exit 1
2945 esac
2950 # 2000-08-04 bkoz hack
2951 CCODECVT_C=config/io/c_io_libio_codecvt.c
2953 # 2000-08-04 bkoz hack
2957 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2958 GLIBCPP_BUILD_LIBIO_TRUE=
2959 GLIBCPP_BUILD_LIBIO_FALSE='#'
2960 else
2961 GLIBCPP_BUILD_LIBIO_TRUE='#'
2962 GLIBCPP_BUILD_LIBIO_FALSE=
2966 if test "$need_libio" = yes; then
2967 GLIBCPP_NEED_LIBIO_TRUE=
2968 GLIBCPP_NEED_LIBIO_FALSE='#'
2969 else
2970 GLIBCPP_NEED_LIBIO_TRUE='#'
2971 GLIBCPP_NEED_LIBIO_FALSE=
2975 if test "$need_wlibio" = yes; then
2976 GLIBCPP_NEED_WLIBIO_TRUE=
2977 GLIBCPP_NEED_WLIBIO_FALSE='#'
2978 else
2979 GLIBCPP_NEED_WLIBIO_TRUE='#'
2980 GLIBCPP_NEED_WLIBIO_FALSE=
2982 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2983 libio_la=../libio/libio.la
2984 else
2985 libio_la=
2990 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2991 echo "configure:2992: checking for clocale to use" >&5
2992 # Check whether --enable-clocale or --disable-clocale was given.
2993 if test "${enable_clocale+set}" = set; then
2994 enableval="$enable_clocale"
2995 if test x$enable_clocale = xno; then
2996 enable_clocale=no
2998 else
2999 enable_clocale=no
3003 enable_clocale_flag=$enable_clocale
3005 if test x$enable_clocale_flag = xno; then
3006 case x${target_os} in
3007 xlinux* | xgnu*)
3008 cat > conftest.$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3012 #include <features.h>
3013 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3014 _GLIBCPP_ok
3015 #endif
3018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3019 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3020 rm -rf conftest*
3021 enable_clocale_flag=gnu
3022 else
3023 rm -rf conftest*
3024 enable_clocale_flag=generic
3026 rm -f conftest*
3029 # Test for bugs early in glibc-2.2.x series
3030 if test x$enable_clocale_flag = xgnu; then
3031 if test "$cross_compiling" = yes; then
3032 enable_clocale_flag=generic
3033 else
3034 cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3038 #define _GNU_SOURCE 1
3039 #include <locale.h>
3040 int main()
3042 const char __one[] = "Äuglein Augmen";
3043 const char __two[] = "Äuglein";
3044 int i;
3045 int j;
3046 __locale_t loc;
3047 __locale_t loc_dup;
3048 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3049 loc_dup = __duplocale(loc);
3050 i = __strcoll_l(__one, __two, loc);
3051 j = __strcoll_l(__one, __two, loc_dup);
3052 return 0;
3056 if { (eval echo configure:3057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3057 then
3058 enable_clocale_flag=gnu
3059 else
3060 echo "configure: failed program was:" >&5
3061 cat conftest.$ac_ext >&5
3062 rm -fr conftest*
3063 enable_clocale_flag=generic
3065 rm -fr conftest*
3070 # ... at some point put __strxfrm_l tests in as well.
3073 enable_clocale_flag=generic
3075 esac
3078 # Check whether --enable-nls or --disable-nls was given.
3079 if test "${enable_nls+set}" = set; then
3080 enableval="$enable_nls"
3082 else
3083 enable_nls=yes
3086 USE_NLS=no
3088 case x${enable_clocale_flag} in
3089 xgeneric)
3090 echo "$ac_t""generic" 1>&6
3092 CLOCALE_H=config/locale/generic/c_locale.h
3093 CLOCALE_CC=config/locale/generic/c_locale.cc
3094 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3095 CCOLLATE_CC=config/locale/generic/collate_members.cc
3096 CCTYPE_CC=config/locale/generic/ctype_members.cc
3097 CMESSAGES_H=config/locale/generic/messages_members.h
3098 CMESSAGES_CC=config/locale/generic/messages_members.cc
3099 CMONEY_CC=config/locale/generic/monetary_members.cc
3100 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3101 CTIME_CC=config/locale/generic/time_members.cc
3103 xgnu)
3104 echo "$ac_t""gnu" 1>&6
3106 # Declare intention to use gettext, and add support for specific
3107 # languages.
3108 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3109 ALL_LINGUAS="de fr"
3111 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3112 # Extract the first word of "msgfmt", so it can be a program name with args.
3113 set dummy msgfmt; ac_word=$2
3114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3115 echo "configure:3116: checking for $ac_word" >&5
3116 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3117 echo $ac_n "(cached) $ac_c" 1>&6
3118 else
3119 if test -n "$check_msgfmt"; then
3120 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3121 else
3122 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3123 ac_dummy="$PATH"
3124 for ac_dir in $ac_dummy; do
3125 test -z "$ac_dir" && ac_dir=.
3126 if test -f $ac_dir/$ac_word; then
3127 ac_cv_prog_check_msgfmt="yes"
3128 break
3130 done
3131 IFS="$ac_save_ifs"
3132 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3135 check_msgfmt="$ac_cv_prog_check_msgfmt"
3136 if test -n "$check_msgfmt"; then
3137 echo "$ac_t""$check_msgfmt" 1>&6
3138 else
3139 echo "$ac_t""no" 1>&6
3142 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3143 USE_NLS=yes
3145 # Export the build objects.
3146 for ling in $ALL_LINGUAS; do \
3147 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3148 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3149 done
3153 CLOCALE_H=config/locale/gnu/c_locale.h
3154 CLOCALE_CC=config/locale/gnu/c_locale.cc
3155 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3156 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3157 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3158 CMESSAGES_H=config/locale/gnu/messages_members.h
3159 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3160 CMONEY_CC=config/locale/gnu/monetary_members.cc
3161 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3162 CTIME_CC=config/locale/gnu/time_members.cc
3164 xieee_1003.1-2001)
3165 echo "$ac_t""generic" 1>&6
3167 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3168 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3169 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3170 CCOLLATE_CC=config/locale/generic/collate_members.cc
3171 CCTYPE_CC=config/locale/generic/ctype_members.cc
3172 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3173 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3174 CMONEY_CC=config/locale/generic/monetary_members.cc
3175 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3176 CTIME_CC=config/locale/generic/time_members.cc
3179 echo "$enable_clocale is an unknown locale package" 1>&2
3180 exit 1
3182 esac
3184 # This is where the testsuite looks for locale catalogs, using the
3185 # -DLOCALEDIR define during testsuite compilation.
3186 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3201 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3202 if test "${enable_c_mbchar+set}" = set; then
3203 enableval="$enable_c_mbchar"
3204 case "$enableval" in
3205 yes) enable_c_mbchar=yes ;;
3206 no) enable_c_mbchar=no ;;
3207 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3208 esac
3209 else
3210 enable_c_mbchar=yes
3214 # Check whether --enable-c99 or --disable-c99 was given.
3215 if test "${enable_c99+set}" = set; then
3216 enableval="$enable_c99"
3217 case "$enableval" in
3218 yes) enable_c99=yes ;;
3219 no) enable_c99=no ;;
3220 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3221 esac
3222 else
3223 enable_c99=yes
3227 ac_ext=C
3228 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3229 ac_cpp='$CXXCPP $CPPFLAGS'
3230 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3231 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3232 cross_compiling=$ac_cv_prog_cxx_cross
3235 # Check for the existence of <math.h> functions used if C99 is enabled.
3236 ac_c99_math=yes;
3237 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3238 echo "configure:3239: checking for ISO C99 support in <math.h>" >&5
3239 cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3242 #include <math.h>
3243 int main() {
3244 fpclassify(0.0);
3245 ; return 0; }
3247 if { (eval echo configure:3248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3249 else
3250 echo "configure: failed program was:" >&5
3251 cat conftest.$ac_ext >&5
3252 rm -rf conftest*
3253 ac_c99_math=no
3255 rm -f conftest*
3256 cat > conftest.$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3259 #include <math.h>
3260 int main() {
3261 isfinite(0.0);
3262 ; return 0; }
3264 if { (eval echo configure:3265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3266 else
3267 echo "configure: failed program was:" >&5
3268 cat conftest.$ac_ext >&5
3269 rm -rf conftest*
3270 ac_c99_math=no
3272 rm -f conftest*
3273 cat > conftest.$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3276 #include <math.h>
3277 int main() {
3278 isinf(0.0);
3279 ; return 0; }
3281 if { (eval echo configure:3282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3283 else
3284 echo "configure: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3286 rm -rf conftest*
3287 ac_c99_math=no
3289 rm -f conftest*
3290 cat > conftest.$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3293 #include <math.h>
3294 int main() {
3295 isnan(0.0);
3296 ; return 0; }
3298 if { (eval echo configure:3299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3300 else
3301 echo "configure: failed program was:" >&5
3302 cat conftest.$ac_ext >&5
3303 rm -rf conftest*
3304 ac_c99_math=no
3306 rm -f conftest*
3307 cat > conftest.$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3310 #include <math.h>
3311 int main() {
3312 isnormal(0.0);
3313 ; return 0; }
3315 if { (eval echo configure:3316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3317 else
3318 echo "configure: failed program was:" >&5
3319 cat conftest.$ac_ext >&5
3320 rm -rf conftest*
3321 ac_c99_math=no
3323 rm -f conftest*
3324 cat > conftest.$ac_ext <<EOF
3325 #line 3326 "configure"
3326 #include "confdefs.h"
3327 #include <math.h>
3328 int main() {
3329 signbit(0.0);
3330 ; return 0; }
3332 if { (eval echo configure:3333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3334 else
3335 echo "configure: failed program was:" >&5
3336 cat conftest.$ac_ext >&5
3337 rm -rf conftest*
3338 ac_c99_math=no
3340 rm -f conftest*
3341 cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3344 #include <math.h>
3345 int main() {
3346 isgreater(0.0,0.0);
3347 ; return 0; }
3349 if { (eval echo configure:3350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3351 else
3352 echo "configure: failed program was:" >&5
3353 cat conftest.$ac_ext >&5
3354 rm -rf conftest*
3355 ac_c99_math=no
3357 rm -f conftest*
3358 cat > conftest.$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3361 #include <math.h>
3362 int main() {
3363 isgreaterequal(0.0,0.0);
3364 ; return 0; }
3366 if { (eval echo configure:3367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3368 else
3369 echo "configure: failed program was:" >&5
3370 cat conftest.$ac_ext >&5
3371 rm -rf conftest*
3372 ac_c99_math=no
3374 rm -f conftest*
3375 cat > conftest.$ac_ext <<EOF
3376 #line 3377 "configure"
3377 #include "confdefs.h"
3378 #include <math.h>
3379 int main() {
3380 isless(0.0,0.0);
3381 ; return 0; }
3383 if { (eval echo configure:3384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3385 else
3386 echo "configure: failed program was:" >&5
3387 cat conftest.$ac_ext >&5
3388 rm -rf conftest*
3389 ac_c99_math=no
3391 rm -f conftest*
3392 cat > conftest.$ac_ext <<EOF
3393 #line 3394 "configure"
3394 #include "confdefs.h"
3395 #include <math.h>
3396 int main() {
3397 islessequal(0.0,0.0);
3398 ; return 0; }
3400 if { (eval echo configure:3401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3402 else
3403 echo "configure: failed program was:" >&5
3404 cat conftest.$ac_ext >&5
3405 rm -rf conftest*
3406 ac_c99_math=no
3408 rm -f conftest*
3409 cat > conftest.$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3412 #include <math.h>
3413 int main() {
3414 islessgreater(0.0,0.0);
3415 ; return 0; }
3417 if { (eval echo configure:3418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3419 else
3420 echo "configure: failed program was:" >&5
3421 cat conftest.$ac_ext >&5
3422 rm -rf conftest*
3423 ac_c99_math=no
3425 rm -f conftest*
3426 cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3429 #include <math.h>
3430 int main() {
3431 isunordered(0.0,0.0);
3432 ; return 0; }
3434 if { (eval echo configure:3435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3436 else
3437 echo "configure: failed program was:" >&5
3438 cat conftest.$ac_ext >&5
3439 rm -rf conftest*
3440 ac_c99_math=no
3442 rm -f conftest*
3443 echo "$ac_t""$ac_c99_math" 1>&6
3445 # Check for the existence in <stdio.h> of vscanf, et. al.
3446 ac_c99_stdio=yes;
3447 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3448 echo "configure:3449: checking for ISO C99 support in <stdio.h>" >&5
3449 cat > conftest.$ac_ext <<EOF
3450 #line 3451 "configure"
3451 #include "confdefs.h"
3452 #include <stdio.h>
3453 int main() {
3454 snprintf("12", 0, "%i");
3455 ; return 0; }
3457 if { (eval echo configure:3458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3459 else
3460 echo "configure: failed program was:" >&5
3461 cat conftest.$ac_ext >&5
3462 rm -rf conftest*
3463 ac_c99_stdio=no
3465 rm -f conftest*
3466 cat > conftest.$ac_ext <<EOF
3467 #line 3468 "configure"
3468 #include "confdefs.h"
3469 #include <stdio.h>
3470 #include <stdarg.h>
3471 void foo(char* fmt, ...)
3472 {va_list args; va_start(args, fmt);
3473 vfscanf(stderr, "%i", args);}
3474 int main() {
3476 ; return 0; }
3478 if { (eval echo configure:3479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3480 else
3481 echo "configure: failed program was:" >&5
3482 cat conftest.$ac_ext >&5
3483 rm -rf conftest*
3484 ac_c99_stdio=no
3486 rm -f conftest*
3487 cat > conftest.$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3490 #include <stdio.h>
3491 #include <stdarg.h>
3492 void foo(char* fmt, ...)
3493 {va_list args; va_start(args, fmt);
3494 vscanf("%i", args);}
3495 int main() {
3497 ; return 0; }
3499 if { (eval echo configure:3500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3501 else
3502 echo "configure: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3504 rm -rf conftest*
3505 ac_c99_stdio=no
3507 rm -f conftest*
3508 cat > conftest.$ac_ext <<EOF
3509 #line 3510 "configure"
3510 #include "confdefs.h"
3511 #include <stdio.h>
3512 #include <stdarg.h>
3513 void foo(char* fmt, ...)
3514 {va_list args; va_start(args, fmt);
3515 vsnprintf(fmt, 0, "%i", args);}
3516 int main() {
3518 ; return 0; }
3520 if { (eval echo configure:3521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3522 else
3523 echo "configure: failed program was:" >&5
3524 cat conftest.$ac_ext >&5
3525 rm -rf conftest*
3526 ac_c99_stdio=no
3528 rm -f conftest*
3529 cat > conftest.$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3532 #include <stdio.h>
3533 #include <stdarg.h>
3534 void foo(char* fmt, ...)
3535 {va_list args; va_start(args, fmt);
3536 vsscanf(fmt, "%i", args);}
3537 int main() {
3539 ; return 0; }
3541 if { (eval echo configure:3542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3543 else
3544 echo "configure: failed program was:" >&5
3545 cat conftest.$ac_ext >&5
3546 rm -rf conftest*
3547 ac_c99_stdio=no
3549 rm -f conftest*
3550 echo "$ac_t""$ac_c99_stdio" 1>&6
3552 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3553 ac_c99_stdlib=yes;
3554 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3555 echo "configure:3556: checking for lldiv_t declaration" >&5
3556 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3558 else
3560 cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 #include <stdlib.h>
3564 int main() {
3565 lldiv_t mydivt;
3566 ; return 0; }
3568 if { (eval echo configure:3569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3569 rm -rf conftest*
3570 ac_c99_lldiv_t=yes
3571 else
3572 echo "configure: failed program was:" >&5
3573 cat conftest.$ac_ext >&5
3574 rm -rf conftest*
3575 ac_c99_lldiv_t=no
3577 rm -f conftest*
3581 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3583 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3584 echo "configure:3585: checking for ISO C99 support in <stdlib.h>" >&5
3585 cat > conftest.$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3588 #include <stdlib.h>
3589 int main() {
3590 char* tmp; strtof("gnu", &tmp);
3591 ; return 0; }
3593 if { (eval echo configure:3594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3595 else
3596 echo "configure: failed program was:" >&5
3597 cat conftest.$ac_ext >&5
3598 rm -rf conftest*
3599 ac_c99_stdlib=no
3601 rm -f conftest*
3602 cat > conftest.$ac_ext <<EOF
3603 #line 3604 "configure"
3604 #include "confdefs.h"
3605 #include <stdlib.h>
3606 int main() {
3607 char* tmp; strtold("gnu", &tmp);
3608 ; return 0; }
3610 if { (eval echo configure:3611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3612 else
3613 echo "configure: failed program was:" >&5
3614 cat conftest.$ac_ext >&5
3615 rm -rf conftest*
3616 ac_c99_stdlib=no
3618 rm -f conftest*
3619 cat > conftest.$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3622 #include <stdlib.h>
3623 int main() {
3624 llabs(10);
3625 ; return 0; }
3627 if { (eval echo configure:3628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3629 else
3630 echo "configure: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3632 rm -rf conftest*
3633 ac_c99_stdlib=no
3635 rm -f conftest*
3636 cat > conftest.$ac_ext <<EOF
3637 #line 3638 "configure"
3638 #include "confdefs.h"
3639 #include <stdlib.h>
3640 int main() {
3641 lldiv(10,1);
3642 ; return 0; }
3644 if { (eval echo configure:3645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3646 else
3647 echo "configure: failed program was:" >&5
3648 cat conftest.$ac_ext >&5
3649 rm -rf conftest*
3650 ac_c99_stdlib=no
3652 rm -f conftest*
3653 cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3656 #include <stdlib.h>
3657 int main() {
3658 atoll("10");
3659 ; return 0; }
3661 if { (eval echo configure:3662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3663 else
3664 echo "configure: failed program was:" >&5
3665 cat conftest.$ac_ext >&5
3666 rm -rf conftest*
3667 ac_c99_stdlib=no
3669 rm -f conftest*
3670 cat > conftest.$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3673 #include <stdlib.h>
3674 int main() {
3675 _Exit(0);
3676 ; return 0; }
3678 if { (eval echo configure:3679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3680 else
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3683 rm -rf conftest*
3684 ac_c99_stdlib=no
3686 rm -f conftest*
3687 if test x"$ac_c99_lldiv_t" = x"no"; then
3688 ac_c99_stdlib=no;
3689 fi;
3690 echo "$ac_t""$ac_c99_stdlib" 1>&6
3692 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3693 # XXX the wchar.h checks should be rolled into the general C99 bits.
3694 ac_c99_wchar=yes;
3695 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3696 echo "configure:3697: checking for additional ISO C99 support in <wchar.h>" >&5
3697 cat > conftest.$ac_ext <<EOF
3698 #line 3699 "configure"
3699 #include "confdefs.h"
3700 #include <wchar.h>
3701 int main() {
3702 wcstold(L"10.0", NULL);
3703 ; return 0; }
3705 if { (eval echo configure:3706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3707 else
3708 echo "configure: failed program was:" >&5
3709 cat conftest.$ac_ext >&5
3710 rm -rf conftest*
3711 ac_c99_wchar=no
3713 rm -f conftest*
3714 cat > conftest.$ac_ext <<EOF
3715 #line 3716 "configure"
3716 #include "confdefs.h"
3717 #include <wchar.h>
3718 int main() {
3719 wcstoll(L"10", NULL, 10);
3720 ; return 0; }
3722 if { (eval echo configure:3723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3724 else
3725 echo "configure: failed program was:" >&5
3726 cat conftest.$ac_ext >&5
3727 rm -rf conftest*
3728 ac_c99_wchar=no
3730 rm -f conftest*
3731 cat > conftest.$ac_ext <<EOF
3732 #line 3733 "configure"
3733 #include "confdefs.h"
3734 #include <wchar.h>
3735 int main() {
3736 wcstoull(L"10", NULL, 10);
3737 ; return 0; }
3739 if { (eval echo configure:3740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3741 else
3742 echo "configure: failed program was:" >&5
3743 cat conftest.$ac_ext >&5
3744 rm -rf conftest*
3745 ac_c99_wchar=no
3747 rm -f conftest*
3748 echo "$ac_t""$ac_c99_wchar" 1>&6
3750 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3751 echo "configure:3752: checking for enabled ISO C99 support" >&5
3752 if test x"$ac_c99_math" = x"no" ||
3753 test x"$ac_c99_stdio" = x"no" ||
3754 test x"$ac_c99_stdlib" = x"no" ||
3755 test x"$ac_c99_wchar" = x"no"; then
3756 enable_c99=no;
3757 fi;
3758 echo "$ac_t""$enable_c99" 1>&6
3760 # Option parsed, now set things appropriately
3761 if test x"$enable_c99" = x"yes"; then
3762 cat >> confdefs.h <<\EOF
3763 #define _GLIBCPP_USE_C99 1
3768 ac_ext=c
3769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3773 cross_compiling=$ac_cv_prog_cc_cross
3777 # Check whether --enable-long-long or --disable-long-long was given.
3778 if test "${enable_long_long+set}" = set; then
3779 enableval="$enable_long_long"
3780 case "$enableval" in
3781 yes) enable_long_long=yes ;;
3782 no) enable_long_long=no ;;
3783 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3784 esac
3785 else
3786 enable_long_long=yes
3790 ac_ext=C
3791 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3792 ac_cpp='$CXXCPP $CPPFLAGS'
3793 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3794 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3795 cross_compiling=$ac_cv_prog_cxx_cross
3798 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3799 echo "configure:3800: checking for enabled long long I/O support" >&5
3800 # iostreams require strtoll, strtoull to compile
3801 cat > conftest.$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 #include <stdlib.h>
3805 int main() {
3806 char* tmp; strtoll("gnu", &tmp, 10);
3807 ; return 0; }
3809 if { (eval echo configure:3810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3811 else
3812 echo "configure: failed program was:" >&5
3813 cat conftest.$ac_ext >&5
3814 rm -rf conftest*
3815 enable_long_long=no
3817 rm -f conftest*
3818 cat > conftest.$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3821 #include <stdlib.h>
3822 int main() {
3823 char* tmp; strtoull("gnu", &tmp, 10);
3824 ; return 0; }
3826 if { (eval echo configure:3827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3828 else
3829 echo "configure: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3831 rm -rf conftest*
3832 enable_long_long=no
3834 rm -f conftest*
3836 # Option parsed, now set things appropriately
3837 if test x"$enable_long_long" = xyes; then
3838 cat >> confdefs.h <<\EOF
3839 #define _GLIBCPP_USE_LONG_LONG 1
3843 echo "$ac_t""$enable_long_long" 1>&6
3845 ac_ext=c
3846 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3849 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3850 cross_compiling=$ac_cv_prog_cc_cross
3853 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3854 echo "configure:3855: checking for c header strategy to use" >&5
3855 # Check whether --enable-cheaders or --disable-cheaders was given.
3856 if test "${enable_cheaders+set}" = set; then
3857 enableval="$enable_cheaders"
3859 case "$enableval" in
3861 enable_cheaders=c
3863 c_std)
3864 enable_cheaders=c_std
3866 c_shadow)
3867 enable_cheaders=c_shadow
3869 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3871 esac
3872 else
3873 enable_cheaders=c_std
3876 echo "$ac_t""$enable_cheaders" 1>&6
3878 case "$enable_cheaders" in
3879 c_shadow)
3880 CSHADOW_FLAGS="-fno-builtin"
3881 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3883 c_std)
3884 CSHADOW_FLAGS=""
3885 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3888 CSHADOW_FLAGS=""
3889 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3891 esac
3897 if test "$enable_cheaders" = c; then
3898 GLIBCPP_C_HEADERS_C_TRUE=
3899 GLIBCPP_C_HEADERS_C_FALSE='#'
3900 else
3901 GLIBCPP_C_HEADERS_C_TRUE='#'
3902 GLIBCPP_C_HEADERS_C_FALSE=
3906 if test "$enable_cheaders" = c_std; then
3907 GLIBCPP_C_HEADERS_C_STD_TRUE=
3908 GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3909 else
3910 GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3911 GLIBCPP_C_HEADERS_C_STD_FALSE=
3915 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3916 echo "configure:3917: checking for thread model used by GCC" >&5
3917 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3918 echo "$ac_t""$target_thread_file" 1>&6
3920 if test $target_thread_file != single; then
3921 cat >> confdefs.h <<\EOF
3922 #define HAVE_GTHR_DEFAULT 1
3925 cat >> confdefs.h <<\EOF
3926 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3931 glibcpp_thread_h=gthr-$target_thread_file.h
3934 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3935 if test "${enable_cxx_flags+set}" = set; then
3936 enableval="$enable_cxx_flags"
3937 case "x$enableval" in
3938 xyes)
3939 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3940 xno|x)
3941 enable_cxx_flags='' ;;
3943 enable_cxx_flags="$enableval" ;;
3944 esac
3945 else
3946 enable_cxx_flags='none'
3950 if test "$enable_cxx_flags" = "none"; then
3951 enable_cxx_flags='';
3954 if test -n "$enable_cxx_flags"; then
3955 for f in $enable_cxx_flags; do
3956 case "$f" in
3957 -fhonor-std) ;;
3958 -*) ;;
3959 *) # and we're trying to pass /what/ exactly?
3960 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3961 esac
3962 done
3964 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3968 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3969 echo "configure:3970: checking for exception model to use" >&5
3971 ac_ext=C
3972 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3973 ac_cpp='$CXXCPP $CPPFLAGS'
3974 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3975 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3976 cross_compiling=$ac_cv_prog_cxx_cross
3978 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3979 if test "${enable_sjlj_exceptions+set}" = set; then
3980 enableval="$enable_sjlj_exceptions"
3982 else
3983 cat > conftest.$ac_ext << EOF
3984 #line 3985 "configure"
3985 struct S { ~S(); };
3986 void bar();
3987 void foo()
3989 S s;
3990 bar();
3993 old_CXXFLAGS="$CXXFLAGS"
3994 CXXFLAGS=-S
3995 if { (eval echo configure:3996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3996 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3997 enable_sjlj_exceptions=yes
3998 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3999 enable_sjlj_exceptions=no
4002 CXXFLAGS="$old_CXXFLAGS"
4003 rm -f conftest*
4006 if test x$enable_sjlj_exceptions = xyes; then
4007 cat >> confdefs.h <<\EOF
4008 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4011 ac_exception_model_name=sjlj
4012 elif test x$enable_sjlj_exceptions = xno; then
4013 ac_exception_model_name="call frame"
4014 else
4015 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4017 ac_ext=c
4018 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4019 ac_cpp='$CPP $CPPFLAGS'
4020 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4021 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4022 cross_compiling=$ac_cv_prog_cc_cross
4024 echo "$ac_t""$ac_exception_model_name" 1>&6
4027 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4028 echo "configure:4029: checking for use of libunwind" >&5
4029 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4030 if test "${enable_libunwind_exceptions+set}" = set; then
4031 enableval="$enable_libunwind_exceptions"
4032 use_libunwind_exceptions=$enableval
4033 else
4034 use_libunwind_exceptions=no
4037 echo "$ac_t""$use_libunwind_exceptions" 1>&6
4038 if test x"$use_libunwind_exceptions" = xyes; then
4039 LIBUNWIND_FLAG="-lunwind"
4040 else
4041 LIBUNWIND_FLAG=""
4045 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4046 if test "${enable_concept_checks+set}" = set; then
4047 enableval="$enable_concept_checks"
4048 case "$enableval" in
4049 yes) enable_concept_checks=yes ;;
4050 no) enable_concept_checks=no ;;
4051 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4052 esac
4053 else
4054 enable_concept_checks=no
4056 if test x"$enable_concept_checks" = xyes; then
4057 cat >> confdefs.h <<\EOF
4058 #define _GLIBCPP_CONCEPT_CHECKS 1
4064 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4065 for ac_hdr in string.h stdlib.h
4067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4069 echo "configure:4070: checking for $ac_hdr" >&5
4070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4071 echo $ac_n "(cached) $ac_c" 1>&6
4072 else
4073 cat > conftest.$ac_ext <<EOF
4074 #line 4075 "configure"
4075 #include "confdefs.h"
4076 #include <$ac_hdr>
4078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4079 { (eval echo configure:4080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4081 if test -z "$ac_err"; then
4082 rm -rf conftest*
4083 eval "ac_cv_header_$ac_safe=yes"
4084 else
4085 echo "$ac_err" >&5
4086 echo "configure: failed program was:" >&5
4087 cat conftest.$ac_ext >&5
4088 rm -rf conftest*
4089 eval "ac_cv_header_$ac_safe=no"
4091 rm -f conftest*
4093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4094 echo "$ac_t""yes" 1>&6
4095 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4096 cat >> confdefs.h <<EOF
4097 #define $ac_tr_hdr 1
4100 else
4101 echo "$ac_t""no" 1>&6
4103 done
4106 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4108 # This lets us hard-code the functionality we know
4109 # we'll have in the cross target environment. "Let" is a
4110 # sugar-coated word placed on an especially dull and tedious hack, actually.
4111 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4112 # that involve linking can't be used:
4113 # "cannot open sim-crt0.o"
4114 # "cannot open crt0.o"
4115 # etc. All this is because there currently exists no unified,
4116 # consistent way for top level CC information to be passed down
4117 # to target directories: newlib includes, newlib linking info,
4118 # libgloss versus newlib crt0.o, etc. When all of this is done, all
4119 # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
4121 # We are being configured with some form of cross compiler.
4122 GLIBCPP_IS_CROSS_COMPILING=1
4124 # If Canadian cross, then don't pick up tools from the build
4125 # directory.
4126 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4127 CANADIAN=yes
4128 else
4129 CANADIAN=no
4132 # Construct crosses by hand, eliminating bits that need ld...
4133 # GLIBCPP_CHECK_COMPILER_FEATURES
4134 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4135 # GLIBCPP_CHECK_MATH_SUPPORT
4137 case "$target_alias" in
4138 *-linux*)
4139 # Check for available headers.
4140 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4141 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4142 fp.h locale.h float.h inttypes.h
4144 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4145 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4146 echo "configure:4147: checking for $ac_hdr" >&5
4147 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4149 else
4150 cat > conftest.$ac_ext <<EOF
4151 #line 4152 "configure"
4152 #include "confdefs.h"
4153 #include <$ac_hdr>
4155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4156 { (eval echo configure:4157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4157 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4158 if test -z "$ac_err"; then
4159 rm -rf conftest*
4160 eval "ac_cv_header_$ac_safe=yes"
4161 else
4162 echo "$ac_err" >&5
4163 echo "configure: failed program was:" >&5
4164 cat conftest.$ac_ext >&5
4165 rm -rf conftest*
4166 eval "ac_cv_header_$ac_safe=no"
4168 rm -f conftest*
4170 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4171 echo "$ac_t""yes" 1>&6
4172 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4173 cat >> confdefs.h <<EOF
4174 #define $ac_tr_hdr 1
4177 else
4178 echo "$ac_t""no" 1>&6
4180 done
4182 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4185 # If we're not using GNU ld, then there's no point in even trying these
4186 # tests. Check for that first. We should have already tested for gld
4187 # by now (in libtool), but require it now just to be safe...
4188 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4189 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4192 # The name set by libtool depends on the version of libtool. Shame on us
4193 # for depending on an impl detail, but c'est la vie. Older versions used
4194 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4195 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4196 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4197 # set (hence we're using an older libtool), then set it.
4198 if test x${with_gnu_ld+set} != xset; then
4199 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4200 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4201 with_gnu_ld=no
4202 else
4203 with_gnu_ld=$ac_cv_prog_gnu_ld
4207 # Start by getting the version number. I think the libtool test already
4208 # does some of this, but throws away the result.
4210 ldver=`$LD --version 2>/dev/null | head -1 | \
4211 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4213 glibcpp_gnu_ld_version=`echo $ldver | \
4214 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4216 # Set --gc-sections.
4217 if test "$with_gnu_ld" = "notbroken"; then
4218 # GNU ld it is! Joy and bunny rabbits!
4220 # All these tests are for C++; save the language and the compiler flags.
4221 # Need to do this so that g++ won't try to link in libstdc++
4222 ac_test_CFLAGS="${CFLAGS+set}"
4223 ac_save_CFLAGS="$CFLAGS"
4224 CFLAGS='-x c++ -Wl,--gc-sections'
4226 # Check for -Wl,--gc-sections
4227 # XXX This test is broken at the moment, as symbols required for
4228 # linking are now in libsupc++ (not built yet.....). In addition,
4229 # this test has cored on solaris in the past. In addition,
4230 # --gc-sections doesn't really work at the moment (keeps on discarding
4231 # used sections, first .eh_frame and now some of the glibc sections for
4232 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4233 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4234 echo "configure:4235: checking for ld that supports -Wl,--gc-sections" >&5
4235 if test "$cross_compiling" = yes; then
4236 ac_sectionLDflags=yes
4237 else
4238 cat > conftest.$ac_ext <<EOF
4239 #line 4240 "configure"
4240 #include "confdefs.h"
4242 int main(void)
4244 try { throw 1; }
4245 catch (...) { };
4246 return 0;
4250 if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4251 then
4252 ac_sectionLDflags=yes
4253 else
4254 echo "configure: failed program was:" >&5
4255 cat conftest.$ac_ext >&5
4256 rm -fr conftest*
4257 ac_sectionLDflags=no
4259 rm -fr conftest*
4262 if test "$ac_test_CFLAGS" = set; then
4263 CFLAGS="$ac_save_CFLAGS"
4264 else
4265 # this is the suspicious part
4266 CFLAGS=''
4268 if test "$ac_sectionLDflags" = "yes"; then
4269 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4271 echo "$ac_t""$ac_sectionLDflags" 1>&6
4274 # Set linker optimization flags.
4275 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4276 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4283 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4284 echo "configure:4285: checking for main in -lm" >&5
4285 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4288 else
4289 ac_save_LIBS="$LIBS"
4290 LIBS="-lm $LIBS"
4291 cat > conftest.$ac_ext <<EOF
4292 #line 4293 "configure"
4293 #include "confdefs.h"
4295 int main() {
4296 main()
4297 ; return 0; }
4299 if { (eval echo configure:4300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4300 rm -rf conftest*
4301 eval "ac_cv_lib_$ac_lib_var=yes"
4302 else
4303 echo "configure: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4305 rm -rf conftest*
4306 eval "ac_cv_lib_$ac_lib_var=no"
4308 rm -f conftest*
4309 LIBS="$ac_save_LIBS"
4312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4313 echo "$ac_t""yes" 1>&6
4314 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4315 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4316 cat >> confdefs.h <<EOF
4317 #define $ac_tr_lib 1
4320 LIBS="-lm $LIBS"
4322 else
4323 echo "$ac_t""no" 1>&6
4326 for ac_func in nan copysignf
4328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4329 echo "configure:4330: checking for $ac_func" >&5
4330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4331 echo $ac_n "(cached) $ac_c" 1>&6
4332 else
4333 cat > conftest.$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4336 /* System header to define __stub macros and hopefully few prototypes,
4337 which can conflict with char $ac_func(); below. */
4338 #include <assert.h>
4339 /* Override any gcc2 internal prototype to avoid an error. */
4340 /* We use char because int might match the return type of a gcc2
4341 builtin and then its argument prototype would still apply. */
4342 char $ac_func();
4344 int main() {
4346 /* The GNU C library defines this for functions which it implements
4347 to always fail with ENOSYS. Some functions are actually named
4348 something starting with __ and the normal name is an alias. */
4349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4350 choke me
4351 #else
4352 $ac_func();
4353 #endif
4355 ; return 0; }
4357 if { (eval echo configure:4358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4358 rm -rf conftest*
4359 eval "ac_cv_func_$ac_func=yes"
4360 else
4361 echo "configure: failed program was:" >&5
4362 cat conftest.$ac_ext >&5
4363 rm -rf conftest*
4364 eval "ac_cv_func_$ac_func=no"
4366 rm -f conftest*
4369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4370 echo "$ac_t""yes" 1>&6
4371 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4372 cat >> confdefs.h <<EOF
4373 #define $ac_tr_func 1
4376 else
4377 echo "$ac_t""no" 1>&6
4378 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4380 done
4383 for ac_func in __signbit
4385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4386 echo "configure:4387: checking for $ac_func" >&5
4387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4388 echo $ac_n "(cached) $ac_c" 1>&6
4389 else
4390 cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4393 /* System header to define __stub macros and hopefully few prototypes,
4394 which can conflict with char $ac_func(); below. */
4395 #include <assert.h>
4396 /* Override any gcc2 internal prototype to avoid an error. */
4397 /* We use char because int might match the return type of a gcc2
4398 builtin and then its argument prototype would still apply. */
4399 char $ac_func();
4401 int main() {
4403 /* The GNU C library defines this for functions which it implements
4404 to always fail with ENOSYS. Some functions are actually named
4405 something starting with __ and the normal name is an alias. */
4406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4407 choke me
4408 #else
4409 $ac_func();
4410 #endif
4412 ; return 0; }
4414 if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4415 rm -rf conftest*
4416 eval "ac_cv_func_$ac_func=yes"
4417 else
4418 echo "configure: failed program was:" >&5
4419 cat conftest.$ac_ext >&5
4420 rm -rf conftest*
4421 eval "ac_cv_func_$ac_func=no"
4423 rm -f conftest*
4426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4427 echo "$ac_t""yes" 1>&6
4428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4429 cat >> confdefs.h <<EOF
4430 #define $ac_tr_func 1
4433 else
4434 echo "$ac_t""no" 1>&6
4435 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4437 done
4439 for ac_func in __signbitf
4441 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4442 echo "configure:4443: checking for $ac_func" >&5
4443 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4444 echo $ac_n "(cached) $ac_c" 1>&6
4445 else
4446 cat > conftest.$ac_ext <<EOF
4447 #line 4448 "configure"
4448 #include "confdefs.h"
4449 /* System header to define __stub macros and hopefully few prototypes,
4450 which can conflict with char $ac_func(); below. */
4451 #include <assert.h>
4452 /* Override any gcc2 internal prototype to avoid an error. */
4453 /* We use char because int might match the return type of a gcc2
4454 builtin and then its argument prototype would still apply. */
4455 char $ac_func();
4457 int main() {
4459 /* The GNU C library defines this for functions which it implements
4460 to always fail with ENOSYS. Some functions are actually named
4461 something starting with __ and the normal name is an alias. */
4462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4463 choke me
4464 #else
4465 $ac_func();
4466 #endif
4468 ; return 0; }
4470 if { (eval echo configure:4471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4471 rm -rf conftest*
4472 eval "ac_cv_func_$ac_func=yes"
4473 else
4474 echo "configure: failed program was:" >&5
4475 cat conftest.$ac_ext >&5
4476 rm -rf conftest*
4477 eval "ac_cv_func_$ac_func=no"
4479 rm -f conftest*
4482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4483 echo "$ac_t""yes" 1>&6
4484 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4485 cat >> confdefs.h <<EOF
4486 #define $ac_tr_func 1
4489 else
4490 echo "$ac_t""no" 1>&6
4491 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4493 done
4496 if test x$ac_cv_func_copysignl = x"yes"; then
4497 for ac_func in __signbitl
4499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4500 echo "configure:4501: checking for $ac_func" >&5
4501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4502 echo $ac_n "(cached) $ac_c" 1>&6
4503 else
4504 cat > conftest.$ac_ext <<EOF
4505 #line 4506 "configure"
4506 #include "confdefs.h"
4507 /* System header to define __stub macros and hopefully few prototypes,
4508 which can conflict with char $ac_func(); below. */
4509 #include <assert.h>
4510 /* Override any gcc2 internal prototype to avoid an error. */
4511 /* We use char because int might match the return type of a gcc2
4512 builtin and then its argument prototype would still apply. */
4513 char $ac_func();
4515 int main() {
4517 /* The GNU C library defines this for functions which it implements
4518 to always fail with ENOSYS. Some functions are actually named
4519 something starting with __ and the normal name is an alias. */
4520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4521 choke me
4522 #else
4523 $ac_func();
4524 #endif
4526 ; return 0; }
4528 if { (eval echo configure:4529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4529 rm -rf conftest*
4530 eval "ac_cv_func_$ac_func=yes"
4531 else
4532 echo "configure: failed program was:" >&5
4533 cat conftest.$ac_ext >&5
4534 rm -rf conftest*
4535 eval "ac_cv_func_$ac_func=no"
4537 rm -f conftest*
4540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4541 echo "$ac_t""yes" 1>&6
4542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4543 cat >> confdefs.h <<EOF
4544 #define $ac_tr_func 1
4547 else
4548 echo "$ac_t""no" 1>&6
4549 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4551 done
4559 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4560 echo "configure:4561: checking for mbstate_t" >&5
4561 cat > conftest.$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4564 #include <wchar.h>
4565 int main() {
4566 mbstate_t teststate;
4567 ; return 0; }
4569 if { (eval echo configure:4570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4570 rm -rf conftest*
4571 have_mbstate_t=yes
4572 else
4573 echo "configure: failed program was:" >&5
4574 cat conftest.$ac_ext >&5
4575 rm -rf conftest*
4576 have_mbstate_t=no
4578 rm -f conftest*
4579 echo "$ac_t""$have_mbstate_t" 1>&6
4580 if test x"$have_mbstate_t" = xyes; then
4581 cat >> confdefs.h <<\EOF
4582 #define HAVE_MBSTATE_T 1
4587 for ac_hdr in wchar.h
4589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4591 echo "configure:4592: checking for $ac_hdr" >&5
4592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4593 echo $ac_n "(cached) $ac_c" 1>&6
4594 else
4595 cat > conftest.$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4598 #include <$ac_hdr>
4600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4601 { (eval echo configure:4602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4603 if test -z "$ac_err"; then
4604 rm -rf conftest*
4605 eval "ac_cv_header_$ac_safe=yes"
4606 else
4607 echo "$ac_err" >&5
4608 echo "configure: failed program was:" >&5
4609 cat conftest.$ac_ext >&5
4610 rm -rf conftest*
4611 eval "ac_cv_header_$ac_safe=no"
4613 rm -f conftest*
4615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4616 echo "$ac_t""yes" 1>&6
4617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4618 cat >> confdefs.h <<EOF
4619 #define $ac_tr_hdr 1
4621 ac_has_wchar_h=yes
4622 else
4623 echo "$ac_t""no" 1>&6
4624 ac_has_wchar_h=no
4626 done
4628 for ac_hdr in wctype.h
4630 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4631 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4632 echo "configure:4633: checking for $ac_hdr" >&5
4633 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4634 echo $ac_n "(cached) $ac_c" 1>&6
4635 else
4636 cat > conftest.$ac_ext <<EOF
4637 #line 4638 "configure"
4638 #include "confdefs.h"
4639 #include <$ac_hdr>
4641 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4642 { (eval echo configure:4643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4643 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4644 if test -z "$ac_err"; then
4645 rm -rf conftest*
4646 eval "ac_cv_header_$ac_safe=yes"
4647 else
4648 echo "$ac_err" >&5
4649 echo "configure: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4651 rm -rf conftest*
4652 eval "ac_cv_header_$ac_safe=no"
4654 rm -f conftest*
4656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4657 echo "$ac_t""yes" 1>&6
4658 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4659 cat >> confdefs.h <<EOF
4660 #define $ac_tr_hdr 1
4662 ac_has_wctype_h=yes
4663 else
4664 echo "$ac_t""no" 1>&6
4665 ac_has_wctype_h=no
4667 done
4670 if test x"$ac_has_wchar_h" = xyes &&
4671 test x"$ac_has_wctype_h" = xyes &&
4672 test x"$enable_c_mbchar" != xno; then
4674 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4675 echo "configure:4676: checking for WCHAR_MIN and WCHAR_MAX" >&5
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 #include <wchar.h>
4680 int main() {
4681 int i = WCHAR_MIN; int j = WCHAR_MAX;
4682 ; return 0; }
4684 if { (eval echo configure:4685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4685 rm -rf conftest*
4686 has_wchar_minmax=yes
4687 else
4688 echo "configure: failed program was:" >&5
4689 cat conftest.$ac_ext >&5
4690 rm -rf conftest*
4691 has_wchar_minmax=no
4693 rm -f conftest*
4694 echo "$ac_t""$has_wchar_minmax" 1>&6
4696 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4697 echo "configure:4698: checking for WEOF" >&5
4698 cat > conftest.$ac_ext <<EOF
4699 #line 4700 "configure"
4700 #include "confdefs.h"
4702 #include <wchar.h>
4703 #include <stddef.h>
4704 int main() {
4705 wint_t i = WEOF;
4706 ; return 0; }
4708 if { (eval echo configure:4709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4709 rm -rf conftest*
4710 has_weof=yes
4711 else
4712 echo "configure: failed program was:" >&5
4713 cat conftest.$ac_ext >&5
4714 rm -rf conftest*
4715 has_weof=no
4717 rm -f conftest*
4718 echo "$ac_t""$has_weof" 1>&6
4720 ac_wfuncs=yes
4721 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4724 echo "configure:4725: checking for $ac_func" >&5
4725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4726 echo $ac_n "(cached) $ac_c" 1>&6
4727 else
4728 cat > conftest.$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4731 /* System header to define __stub macros and hopefully few prototypes,
4732 which can conflict with char $ac_func(); below. */
4733 #include <assert.h>
4734 /* Override any gcc2 internal prototype to avoid an error. */
4735 /* We use char because int might match the return type of a gcc2
4736 builtin and then its argument prototype would still apply. */
4737 char $ac_func();
4739 int main() {
4741 /* The GNU C library defines this for functions which it implements
4742 to always fail with ENOSYS. Some functions are actually named
4743 something starting with __ and the normal name is an alias. */
4744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4745 choke me
4746 #else
4747 $ac_func();
4748 #endif
4750 ; return 0; }
4752 if { (eval echo configure:4753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4753 rm -rf conftest*
4754 eval "ac_cv_func_$ac_func=yes"
4755 else
4756 echo "configure: failed program was:" >&5
4757 cat conftest.$ac_ext >&5
4758 rm -rf conftest*
4759 eval "ac_cv_func_$ac_func=no"
4761 rm -f conftest*
4764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4765 echo "$ac_t""yes" 1>&6
4766 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4767 cat >> confdefs.h <<EOF
4768 #define $ac_tr_func 1
4771 else
4772 echo "$ac_t""no" 1>&6
4774 ac_wfuncs=no
4776 done
4779 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4780 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4781 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4782 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4783 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4784 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4787 echo "configure:4788: checking for $ac_func" >&5
4788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4789 echo $ac_n "(cached) $ac_c" 1>&6
4790 else
4791 cat > conftest.$ac_ext <<EOF
4792 #line 4793 "configure"
4793 #include "confdefs.h"
4794 /* System header to define __stub macros and hopefully few prototypes,
4795 which can conflict with char $ac_func(); below. */
4796 #include <assert.h>
4797 /* Override any gcc2 internal prototype to avoid an error. */
4798 /* We use char because int might match the return type of a gcc2
4799 builtin and then its argument prototype would still apply. */
4800 char $ac_func();
4802 int main() {
4804 /* The GNU C library defines this for functions which it implements
4805 to always fail with ENOSYS. Some functions are actually named
4806 something starting with __ and the normal name is an alias. */
4807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4808 choke me
4809 #else
4810 $ac_func();
4811 #endif
4813 ; return 0; }
4815 if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4816 rm -rf conftest*
4817 eval "ac_cv_func_$ac_func=yes"
4818 else
4819 echo "configure: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4821 rm -rf conftest*
4822 eval "ac_cv_func_$ac_func=no"
4824 rm -f conftest*
4827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4828 echo "$ac_t""yes" 1>&6
4829 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4830 cat >> confdefs.h <<EOF
4831 #define $ac_tr_func 1
4834 else
4835 echo "$ac_t""no" 1>&6
4837 ac_wfuncs=no
4839 done
4842 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4843 echo "configure:4844: checking for ISO C99 wchar_t support" >&5
4844 if test x"$has_weof" = xyes &&
4845 test x"$has_wchar_minmax" = xyes &&
4846 test x"$ac_wfuncs" = xyes; then
4847 ac_isoC99_wchar_t=yes
4848 else
4849 ac_isoC99_wchar_t=no
4851 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4853 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4854 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4855 echo "configure:4856: checking for iconv.h" >&5
4856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4857 echo $ac_n "(cached) $ac_c" 1>&6
4858 else
4859 cat > conftest.$ac_ext <<EOF
4860 #line 4861 "configure"
4861 #include "confdefs.h"
4862 #include <iconv.h>
4864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4865 { (eval echo configure:4866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4867 if test -z "$ac_err"; then
4868 rm -rf conftest*
4869 eval "ac_cv_header_$ac_safe=yes"
4870 else
4871 echo "$ac_err" >&5
4872 echo "configure: failed program was:" >&5
4873 cat conftest.$ac_ext >&5
4874 rm -rf conftest*
4875 eval "ac_cv_header_$ac_safe=no"
4877 rm -f conftest*
4879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4880 echo "$ac_t""yes" 1>&6
4881 ac_has_iconv_h=yes
4882 else
4883 echo "$ac_t""no" 1>&6
4884 ac_has_iconv_h=no
4887 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4888 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4889 echo "configure:4890: checking for langinfo.h" >&5
4890 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4891 echo $ac_n "(cached) $ac_c" 1>&6
4892 else
4893 cat > conftest.$ac_ext <<EOF
4894 #line 4895 "configure"
4895 #include "confdefs.h"
4896 #include <langinfo.h>
4898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4899 { (eval echo configure:4900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4901 if test -z "$ac_err"; then
4902 rm -rf conftest*
4903 eval "ac_cv_header_$ac_safe=yes"
4904 else
4905 echo "$ac_err" >&5
4906 echo "configure: failed program was:" >&5
4907 cat conftest.$ac_ext >&5
4908 rm -rf conftest*
4909 eval "ac_cv_header_$ac_safe=no"
4911 rm -f conftest*
4913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4914 echo "$ac_t""yes" 1>&6
4915 ac_has_langinfo_h=yes
4916 else
4917 echo "$ac_t""no" 1>&6
4918 ac_has_langinfo_h=no
4922 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4923 echo "configure:4924: checking for iconv in -liconv" >&5
4924 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4925 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4926 echo $ac_n "(cached) $ac_c" 1>&6
4927 else
4928 ac_save_LIBS="$LIBS"
4929 LIBS="-liconv $LIBS"
4930 cat > conftest.$ac_ext <<EOF
4931 #line 4932 "configure"
4932 #include "confdefs.h"
4933 /* Override any gcc2 internal prototype to avoid an error. */
4934 /* We use char because int might match the return type of a gcc2
4935 builtin and then its argument prototype would still apply. */
4936 char iconv();
4938 int main() {
4939 iconv()
4940 ; return 0; }
4942 if { (eval echo configure:4943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4943 rm -rf conftest*
4944 eval "ac_cv_lib_$ac_lib_var=yes"
4945 else
4946 echo "configure: failed program was:" >&5
4947 cat conftest.$ac_ext >&5
4948 rm -rf conftest*
4949 eval "ac_cv_lib_$ac_lib_var=no"
4951 rm -f conftest*
4952 LIBS="$ac_save_LIBS"
4955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4956 echo "$ac_t""yes" 1>&6
4957 libiconv="-liconv"
4958 else
4959 echo "$ac_t""no" 1>&6
4962 ac_save_LIBS="$LIBS"
4963 LIBS="$LIBS $libiconv"
4965 for ac_func in iconv_open iconv_close iconv nl_langinfo
4967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4968 echo "configure:4969: checking for $ac_func" >&5
4969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4970 echo $ac_n "(cached) $ac_c" 1>&6
4971 else
4972 cat > conftest.$ac_ext <<EOF
4973 #line 4974 "configure"
4974 #include "confdefs.h"
4975 /* System header to define __stub macros and hopefully few prototypes,
4976 which can conflict with char $ac_func(); below. */
4977 #include <assert.h>
4978 /* Override any gcc2 internal prototype to avoid an error. */
4979 /* We use char because int might match the return type of a gcc2
4980 builtin and then its argument prototype would still apply. */
4981 char $ac_func();
4983 int main() {
4985 /* The GNU C library defines this for functions which it implements
4986 to always fail with ENOSYS. Some functions are actually named
4987 something starting with __ and the normal name is an alias. */
4988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4989 choke me
4990 #else
4991 $ac_func();
4992 #endif
4994 ; return 0; }
4996 if { (eval echo configure:4997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4997 rm -rf conftest*
4998 eval "ac_cv_func_$ac_func=yes"
4999 else
5000 echo "configure: failed program was:" >&5
5001 cat conftest.$ac_ext >&5
5002 rm -rf conftest*
5003 eval "ac_cv_func_$ac_func=no"
5005 rm -f conftest*
5008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5009 echo "$ac_t""yes" 1>&6
5010 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5011 cat >> confdefs.h <<EOF
5012 #define $ac_tr_func 1
5015 ac_XPG2funcs=yes
5016 else
5017 echo "$ac_t""no" 1>&6
5018 ac_XPG2funcs=no
5020 done
5023 LIBS="$ac_save_LIBS"
5025 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5026 echo "configure:5027: checking for XPG2 wchar_t support" >&5
5027 if test x"$ac_has_iconv_h" = xyes &&
5028 test x"$ac_has_langinfo_h" = xyes &&
5029 test x"$ac_XPG2funcs" = xyes; then
5030 ac_XPG2_wchar_t=yes
5031 else
5032 ac_XPG2_wchar_t=no
5034 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5036 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5037 echo "configure:5038: checking for enabled wchar_t specializations" >&5
5038 if test x"$ac_isoC99_wchar_t" = xyes &&
5039 test x"$ac_XPG2_wchar_t" = xyes; then
5040 cat >> confdefs.h <<\EOF
5041 #define _GLIBCPP_USE_WCHAR_T 1
5044 echo "$ac_t"""yes"" 1>&6
5045 else
5046 echo "$ac_t"""no"" 1>&6
5048 else
5049 echo "configure: warning: wchar_t support disabled." 1>&2
5052 os_include_dir="config/os/gnu-linux"
5053 cat >> confdefs.h <<\EOF
5054 #define HAVE_COPYSIGN 1
5057 cat >> confdefs.h <<\EOF
5058 #define HAVE_COPYSIGNF 1
5061 cat >> confdefs.h <<\EOF
5062 #define HAVE_FINITEF 1
5065 cat >> confdefs.h <<\EOF
5066 #define HAVE_FREXPF 1
5069 cat >> confdefs.h <<\EOF
5070 #define HAVE_HYPOTF 1
5073 cat >> confdefs.h <<\EOF
5074 #define HAVE_SINCOS 1
5077 cat >> confdefs.h <<\EOF
5078 #define HAVE_SINCOSF 1
5081 if test x"long_double_math_on_this_cpu" = x"yes"; then
5082 cat >> confdefs.h <<\EOF
5083 #define HAVE_HYPOTL 1
5088 *-hpux*)
5089 # Check for available headers.
5090 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5091 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5092 fp.h locale.h float.h inttypes.h
5094 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5095 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5096 echo "configure:5097: checking for $ac_hdr" >&5
5097 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5099 else
5100 cat > conftest.$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5103 #include <$ac_hdr>
5105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5106 { (eval echo configure:5107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5108 if test -z "$ac_err"; then
5109 rm -rf conftest*
5110 eval "ac_cv_header_$ac_safe=yes"
5111 else
5112 echo "$ac_err" >&5
5113 echo "configure: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5115 rm -rf conftest*
5116 eval "ac_cv_header_$ac_safe=no"
5118 rm -f conftest*
5120 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5121 echo "$ac_t""yes" 1>&6
5122 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5123 cat >> confdefs.h <<EOF
5124 #define $ac_tr_hdr 1
5127 else
5128 echo "$ac_t""no" 1>&6
5130 done
5132 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5135 # If we're not using GNU ld, then there's no point in even trying these
5136 # tests. Check for that first. We should have already tested for gld
5137 # by now (in libtool), but require it now just to be safe...
5138 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5139 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5142 # The name set by libtool depends on the version of libtool. Shame on us
5143 # for depending on an impl detail, but c'est la vie. Older versions used
5144 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5145 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5146 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5147 # set (hence we're using an older libtool), then set it.
5148 if test x${with_gnu_ld+set} != xset; then
5149 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5150 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5151 with_gnu_ld=no
5152 else
5153 with_gnu_ld=$ac_cv_prog_gnu_ld
5157 # Start by getting the version number. I think the libtool test already
5158 # does some of this, but throws away the result.
5160 ldver=`$LD --version 2>/dev/null | head -1 | \
5161 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5163 glibcpp_gnu_ld_version=`echo $ldver | \
5164 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5166 # Set --gc-sections.
5167 if test "$with_gnu_ld" = "notbroken"; then
5168 # GNU ld it is! Joy and bunny rabbits!
5170 # All these tests are for C++; save the language and the compiler flags.
5171 # Need to do this so that g++ won't try to link in libstdc++
5172 ac_test_CFLAGS="${CFLAGS+set}"
5173 ac_save_CFLAGS="$CFLAGS"
5174 CFLAGS='-x c++ -Wl,--gc-sections'
5176 # Check for -Wl,--gc-sections
5177 # XXX This test is broken at the moment, as symbols required for
5178 # linking are now in libsupc++ (not built yet.....). In addition,
5179 # this test has cored on solaris in the past. In addition,
5180 # --gc-sections doesn't really work at the moment (keeps on discarding
5181 # used sections, first .eh_frame and now some of the glibc sections for
5182 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5183 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5184 echo "configure:5185: checking for ld that supports -Wl,--gc-sections" >&5
5185 if test "$cross_compiling" = yes; then
5186 ac_sectionLDflags=yes
5187 else
5188 cat > conftest.$ac_ext <<EOF
5189 #line 5190 "configure"
5190 #include "confdefs.h"
5192 int main(void)
5194 try { throw 1; }
5195 catch (...) { };
5196 return 0;
5200 if { (eval echo configure:5201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5201 then
5202 ac_sectionLDflags=yes
5203 else
5204 echo "configure: failed program was:" >&5
5205 cat conftest.$ac_ext >&5
5206 rm -fr conftest*
5207 ac_sectionLDflags=no
5209 rm -fr conftest*
5212 if test "$ac_test_CFLAGS" = set; then
5213 CFLAGS="$ac_save_CFLAGS"
5214 else
5215 # this is the suspicious part
5216 CFLAGS=''
5218 if test "$ac_sectionLDflags" = "yes"; then
5219 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5221 echo "$ac_t""$ac_sectionLDflags" 1>&6
5224 # Set linker optimization flags.
5225 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5226 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5233 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5234 echo "configure:5235: checking for main in -lm" >&5
5235 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5236 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5237 echo $ac_n "(cached) $ac_c" 1>&6
5238 else
5239 ac_save_LIBS="$LIBS"
5240 LIBS="-lm $LIBS"
5241 cat > conftest.$ac_ext <<EOF
5242 #line 5243 "configure"
5243 #include "confdefs.h"
5245 int main() {
5246 main()
5247 ; return 0; }
5249 if { (eval echo configure:5250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5250 rm -rf conftest*
5251 eval "ac_cv_lib_$ac_lib_var=yes"
5252 else
5253 echo "configure: failed program was:" >&5
5254 cat conftest.$ac_ext >&5
5255 rm -rf conftest*
5256 eval "ac_cv_lib_$ac_lib_var=no"
5258 rm -f conftest*
5259 LIBS="$ac_save_LIBS"
5262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5263 echo "$ac_t""yes" 1>&6
5264 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5265 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5266 cat >> confdefs.h <<EOF
5267 #define $ac_tr_lib 1
5270 LIBS="-lm $LIBS"
5272 else
5273 echo "$ac_t""no" 1>&6
5276 for ac_func in nan copysignf
5278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5279 echo "configure:5280: checking for $ac_func" >&5
5280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5281 echo $ac_n "(cached) $ac_c" 1>&6
5282 else
5283 cat > conftest.$ac_ext <<EOF
5284 #line 5285 "configure"
5285 #include "confdefs.h"
5286 /* System header to define __stub macros and hopefully few prototypes,
5287 which can conflict with char $ac_func(); below. */
5288 #include <assert.h>
5289 /* Override any gcc2 internal prototype to avoid an error. */
5290 /* We use char because int might match the return type of a gcc2
5291 builtin and then its argument prototype would still apply. */
5292 char $ac_func();
5294 int main() {
5296 /* The GNU C library defines this for functions which it implements
5297 to always fail with ENOSYS. Some functions are actually named
5298 something starting with __ and the normal name is an alias. */
5299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5300 choke me
5301 #else
5302 $ac_func();
5303 #endif
5305 ; return 0; }
5307 if { (eval echo configure:5308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5308 rm -rf conftest*
5309 eval "ac_cv_func_$ac_func=yes"
5310 else
5311 echo "configure: failed program was:" >&5
5312 cat conftest.$ac_ext >&5
5313 rm -rf conftest*
5314 eval "ac_cv_func_$ac_func=no"
5316 rm -f conftest*
5319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5320 echo "$ac_t""yes" 1>&6
5321 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5322 cat >> confdefs.h <<EOF
5323 #define $ac_tr_func 1
5326 else
5327 echo "$ac_t""no" 1>&6
5328 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5330 done
5333 for ac_func in __signbit
5335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5336 echo "configure:5337: checking for $ac_func" >&5
5337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5338 echo $ac_n "(cached) $ac_c" 1>&6
5339 else
5340 cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5343 /* System header to define __stub macros and hopefully few prototypes,
5344 which can conflict with char $ac_func(); below. */
5345 #include <assert.h>
5346 /* Override any gcc2 internal prototype to avoid an error. */
5347 /* We use char because int might match the return type of a gcc2
5348 builtin and then its argument prototype would still apply. */
5349 char $ac_func();
5351 int main() {
5353 /* The GNU C library defines this for functions which it implements
5354 to always fail with ENOSYS. Some functions are actually named
5355 something starting with __ and the normal name is an alias. */
5356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5357 choke me
5358 #else
5359 $ac_func();
5360 #endif
5362 ; return 0; }
5364 if { (eval echo configure:5365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5365 rm -rf conftest*
5366 eval "ac_cv_func_$ac_func=yes"
5367 else
5368 echo "configure: failed program was:" >&5
5369 cat conftest.$ac_ext >&5
5370 rm -rf conftest*
5371 eval "ac_cv_func_$ac_func=no"
5373 rm -f conftest*
5376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5377 echo "$ac_t""yes" 1>&6
5378 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5379 cat >> confdefs.h <<EOF
5380 #define $ac_tr_func 1
5383 else
5384 echo "$ac_t""no" 1>&6
5385 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5387 done
5389 for ac_func in __signbitf
5391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5392 echo "configure:5393: checking for $ac_func" >&5
5393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5395 else
5396 cat > conftest.$ac_ext <<EOF
5397 #line 5398 "configure"
5398 #include "confdefs.h"
5399 /* System header to define __stub macros and hopefully few prototypes,
5400 which can conflict with char $ac_func(); below. */
5401 #include <assert.h>
5402 /* Override any gcc2 internal prototype to avoid an error. */
5403 /* We use char because int might match the return type of a gcc2
5404 builtin and then its argument prototype would still apply. */
5405 char $ac_func();
5407 int main() {
5409 /* The GNU C library defines this for functions which it implements
5410 to always fail with ENOSYS. Some functions are actually named
5411 something starting with __ and the normal name is an alias. */
5412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5413 choke me
5414 #else
5415 $ac_func();
5416 #endif
5418 ; return 0; }
5420 if { (eval echo configure:5421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5421 rm -rf conftest*
5422 eval "ac_cv_func_$ac_func=yes"
5423 else
5424 echo "configure: failed program was:" >&5
5425 cat conftest.$ac_ext >&5
5426 rm -rf conftest*
5427 eval "ac_cv_func_$ac_func=no"
5429 rm -f conftest*
5432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5433 echo "$ac_t""yes" 1>&6
5434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5435 cat >> confdefs.h <<EOF
5436 #define $ac_tr_func 1
5439 else
5440 echo "$ac_t""no" 1>&6
5441 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5443 done
5446 if test x$ac_cv_func_copysignl = x"yes"; then
5447 for ac_func in __signbitl
5449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5450 echo "configure:5451: checking for $ac_func" >&5
5451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5452 echo $ac_n "(cached) $ac_c" 1>&6
5453 else
5454 cat > conftest.$ac_ext <<EOF
5455 #line 5456 "configure"
5456 #include "confdefs.h"
5457 /* System header to define __stub macros and hopefully few prototypes,
5458 which can conflict with char $ac_func(); below. */
5459 #include <assert.h>
5460 /* Override any gcc2 internal prototype to avoid an error. */
5461 /* We use char because int might match the return type of a gcc2
5462 builtin and then its argument prototype would still apply. */
5463 char $ac_func();
5465 int main() {
5467 /* The GNU C library defines this for functions which it implements
5468 to always fail with ENOSYS. Some functions are actually named
5469 something starting with __ and the normal name is an alias. */
5470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5471 choke me
5472 #else
5473 $ac_func();
5474 #endif
5476 ; return 0; }
5478 if { (eval echo configure:5479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5479 rm -rf conftest*
5480 eval "ac_cv_func_$ac_func=yes"
5481 else
5482 echo "configure: failed program was:" >&5
5483 cat conftest.$ac_ext >&5
5484 rm -rf conftest*
5485 eval "ac_cv_func_$ac_func=no"
5487 rm -f conftest*
5490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5491 echo "$ac_t""yes" 1>&6
5492 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5493 cat >> confdefs.h <<EOF
5494 #define $ac_tr_func 1
5497 else
5498 echo "$ac_t""no" 1>&6
5499 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5501 done
5509 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5510 echo "configure:5511: checking for mbstate_t" >&5
5511 cat > conftest.$ac_ext <<EOF
5512 #line 5513 "configure"
5513 #include "confdefs.h"
5514 #include <wchar.h>
5515 int main() {
5516 mbstate_t teststate;
5517 ; return 0; }
5519 if { (eval echo configure:5520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5520 rm -rf conftest*
5521 have_mbstate_t=yes
5522 else
5523 echo "configure: failed program was:" >&5
5524 cat conftest.$ac_ext >&5
5525 rm -rf conftest*
5526 have_mbstate_t=no
5528 rm -f conftest*
5529 echo "$ac_t""$have_mbstate_t" 1>&6
5530 if test x"$have_mbstate_t" = xyes; then
5531 cat >> confdefs.h <<\EOF
5532 #define HAVE_MBSTATE_T 1
5537 for ac_hdr in wchar.h
5539 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5540 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5541 echo "configure:5542: checking for $ac_hdr" >&5
5542 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5543 echo $ac_n "(cached) $ac_c" 1>&6
5544 else
5545 cat > conftest.$ac_ext <<EOF
5546 #line 5547 "configure"
5547 #include "confdefs.h"
5548 #include <$ac_hdr>
5550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5551 { (eval echo configure:5552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5553 if test -z "$ac_err"; then
5554 rm -rf conftest*
5555 eval "ac_cv_header_$ac_safe=yes"
5556 else
5557 echo "$ac_err" >&5
5558 echo "configure: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5560 rm -rf conftest*
5561 eval "ac_cv_header_$ac_safe=no"
5563 rm -f conftest*
5565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5566 echo "$ac_t""yes" 1>&6
5567 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5568 cat >> confdefs.h <<EOF
5569 #define $ac_tr_hdr 1
5571 ac_has_wchar_h=yes
5572 else
5573 echo "$ac_t""no" 1>&6
5574 ac_has_wchar_h=no
5576 done
5578 for ac_hdr in wctype.h
5580 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5582 echo "configure:5583: checking for $ac_hdr" >&5
5583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5584 echo $ac_n "(cached) $ac_c" 1>&6
5585 else
5586 cat > conftest.$ac_ext <<EOF
5587 #line 5588 "configure"
5588 #include "confdefs.h"
5589 #include <$ac_hdr>
5591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5592 { (eval echo configure:5593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5594 if test -z "$ac_err"; then
5595 rm -rf conftest*
5596 eval "ac_cv_header_$ac_safe=yes"
5597 else
5598 echo "$ac_err" >&5
5599 echo "configure: failed program was:" >&5
5600 cat conftest.$ac_ext >&5
5601 rm -rf conftest*
5602 eval "ac_cv_header_$ac_safe=no"
5604 rm -f conftest*
5606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5607 echo "$ac_t""yes" 1>&6
5608 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5609 cat >> confdefs.h <<EOF
5610 #define $ac_tr_hdr 1
5612 ac_has_wctype_h=yes
5613 else
5614 echo "$ac_t""no" 1>&6
5615 ac_has_wctype_h=no
5617 done
5620 if test x"$ac_has_wchar_h" = xyes &&
5621 test x"$ac_has_wctype_h" = xyes &&
5622 test x"$enable_c_mbchar" != xno; then
5624 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5625 echo "configure:5626: checking for WCHAR_MIN and WCHAR_MAX" >&5
5626 cat > conftest.$ac_ext <<EOF
5627 #line 5628 "configure"
5628 #include "confdefs.h"
5629 #include <wchar.h>
5630 int main() {
5631 int i = WCHAR_MIN; int j = WCHAR_MAX;
5632 ; return 0; }
5634 if { (eval echo configure:5635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5635 rm -rf conftest*
5636 has_wchar_minmax=yes
5637 else
5638 echo "configure: failed program was:" >&5
5639 cat conftest.$ac_ext >&5
5640 rm -rf conftest*
5641 has_wchar_minmax=no
5643 rm -f conftest*
5644 echo "$ac_t""$has_wchar_minmax" 1>&6
5646 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5647 echo "configure:5648: checking for WEOF" >&5
5648 cat > conftest.$ac_ext <<EOF
5649 #line 5650 "configure"
5650 #include "confdefs.h"
5652 #include <wchar.h>
5653 #include <stddef.h>
5654 int main() {
5655 wint_t i = WEOF;
5656 ; return 0; }
5658 if { (eval echo configure:5659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5659 rm -rf conftest*
5660 has_weof=yes
5661 else
5662 echo "configure: failed program was:" >&5
5663 cat conftest.$ac_ext >&5
5664 rm -rf conftest*
5665 has_weof=no
5667 rm -f conftest*
5668 echo "$ac_t""$has_weof" 1>&6
5670 ac_wfuncs=yes
5671 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5674 echo "configure:5675: checking for $ac_func" >&5
5675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5676 echo $ac_n "(cached) $ac_c" 1>&6
5677 else
5678 cat > conftest.$ac_ext <<EOF
5679 #line 5680 "configure"
5680 #include "confdefs.h"
5681 /* System header to define __stub macros and hopefully few prototypes,
5682 which can conflict with char $ac_func(); below. */
5683 #include <assert.h>
5684 /* Override any gcc2 internal prototype to avoid an error. */
5685 /* We use char because int might match the return type of a gcc2
5686 builtin and then its argument prototype would still apply. */
5687 char $ac_func();
5689 int main() {
5691 /* The GNU C library defines this for functions which it implements
5692 to always fail with ENOSYS. Some functions are actually named
5693 something starting with __ and the normal name is an alias. */
5694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5695 choke me
5696 #else
5697 $ac_func();
5698 #endif
5700 ; return 0; }
5702 if { (eval echo configure:5703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5703 rm -rf conftest*
5704 eval "ac_cv_func_$ac_func=yes"
5705 else
5706 echo "configure: failed program was:" >&5
5707 cat conftest.$ac_ext >&5
5708 rm -rf conftest*
5709 eval "ac_cv_func_$ac_func=no"
5711 rm -f conftest*
5714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5715 echo "$ac_t""yes" 1>&6
5716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5717 cat >> confdefs.h <<EOF
5718 #define $ac_tr_func 1
5721 else
5722 echo "$ac_t""no" 1>&6
5724 ac_wfuncs=no
5726 done
5729 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5730 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5731 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5732 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5733 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5734 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5737 echo "configure:5738: checking for $ac_func" >&5
5738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5739 echo $ac_n "(cached) $ac_c" 1>&6
5740 else
5741 cat > conftest.$ac_ext <<EOF
5742 #line 5743 "configure"
5743 #include "confdefs.h"
5744 /* System header to define __stub macros and hopefully few prototypes,
5745 which can conflict with char $ac_func(); below. */
5746 #include <assert.h>
5747 /* Override any gcc2 internal prototype to avoid an error. */
5748 /* We use char because int might match the return type of a gcc2
5749 builtin and then its argument prototype would still apply. */
5750 char $ac_func();
5752 int main() {
5754 /* The GNU C library defines this for functions which it implements
5755 to always fail with ENOSYS. Some functions are actually named
5756 something starting with __ and the normal name is an alias. */
5757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5758 choke me
5759 #else
5760 $ac_func();
5761 #endif
5763 ; return 0; }
5765 if { (eval echo configure:5766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5766 rm -rf conftest*
5767 eval "ac_cv_func_$ac_func=yes"
5768 else
5769 echo "configure: failed program was:" >&5
5770 cat conftest.$ac_ext >&5
5771 rm -rf conftest*
5772 eval "ac_cv_func_$ac_func=no"
5774 rm -f conftest*
5777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5778 echo "$ac_t""yes" 1>&6
5779 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5780 cat >> confdefs.h <<EOF
5781 #define $ac_tr_func 1
5784 else
5785 echo "$ac_t""no" 1>&6
5787 ac_wfuncs=no
5789 done
5792 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5793 echo "configure:5794: checking for ISO C99 wchar_t support" >&5
5794 if test x"$has_weof" = xyes &&
5795 test x"$has_wchar_minmax" = xyes &&
5796 test x"$ac_wfuncs" = xyes; then
5797 ac_isoC99_wchar_t=yes
5798 else
5799 ac_isoC99_wchar_t=no
5801 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5803 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5804 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5805 echo "configure:5806: checking for iconv.h" >&5
5806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5807 echo $ac_n "(cached) $ac_c" 1>&6
5808 else
5809 cat > conftest.$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5812 #include <iconv.h>
5814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5815 { (eval echo configure:5816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5817 if test -z "$ac_err"; then
5818 rm -rf conftest*
5819 eval "ac_cv_header_$ac_safe=yes"
5820 else
5821 echo "$ac_err" >&5
5822 echo "configure: failed program was:" >&5
5823 cat conftest.$ac_ext >&5
5824 rm -rf conftest*
5825 eval "ac_cv_header_$ac_safe=no"
5827 rm -f conftest*
5829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5830 echo "$ac_t""yes" 1>&6
5831 ac_has_iconv_h=yes
5832 else
5833 echo "$ac_t""no" 1>&6
5834 ac_has_iconv_h=no
5837 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5838 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5839 echo "configure:5840: checking for langinfo.h" >&5
5840 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5841 echo $ac_n "(cached) $ac_c" 1>&6
5842 else
5843 cat > conftest.$ac_ext <<EOF
5844 #line 5845 "configure"
5845 #include "confdefs.h"
5846 #include <langinfo.h>
5848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5849 { (eval echo configure:5850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5851 if test -z "$ac_err"; then
5852 rm -rf conftest*
5853 eval "ac_cv_header_$ac_safe=yes"
5854 else
5855 echo "$ac_err" >&5
5856 echo "configure: failed program was:" >&5
5857 cat conftest.$ac_ext >&5
5858 rm -rf conftest*
5859 eval "ac_cv_header_$ac_safe=no"
5861 rm -f conftest*
5863 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5864 echo "$ac_t""yes" 1>&6
5865 ac_has_langinfo_h=yes
5866 else
5867 echo "$ac_t""no" 1>&6
5868 ac_has_langinfo_h=no
5872 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5873 echo "configure:5874: checking for iconv in -liconv" >&5
5874 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
5877 else
5878 ac_save_LIBS="$LIBS"
5879 LIBS="-liconv $LIBS"
5880 cat > conftest.$ac_ext <<EOF
5881 #line 5882 "configure"
5882 #include "confdefs.h"
5883 /* Override any gcc2 internal prototype to avoid an error. */
5884 /* We use char because int might match the return type of a gcc2
5885 builtin and then its argument prototype would still apply. */
5886 char iconv();
5888 int main() {
5889 iconv()
5890 ; return 0; }
5892 if { (eval echo configure:5893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5893 rm -rf conftest*
5894 eval "ac_cv_lib_$ac_lib_var=yes"
5895 else
5896 echo "configure: failed program was:" >&5
5897 cat conftest.$ac_ext >&5
5898 rm -rf conftest*
5899 eval "ac_cv_lib_$ac_lib_var=no"
5901 rm -f conftest*
5902 LIBS="$ac_save_LIBS"
5905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5906 echo "$ac_t""yes" 1>&6
5907 libiconv="-liconv"
5908 else
5909 echo "$ac_t""no" 1>&6
5912 ac_save_LIBS="$LIBS"
5913 LIBS="$LIBS $libiconv"
5915 for ac_func in iconv_open iconv_close iconv nl_langinfo
5917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5918 echo "configure:5919: checking for $ac_func" >&5
5919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5920 echo $ac_n "(cached) $ac_c" 1>&6
5921 else
5922 cat > conftest.$ac_ext <<EOF
5923 #line 5924 "configure"
5924 #include "confdefs.h"
5925 /* System header to define __stub macros and hopefully few prototypes,
5926 which can conflict with char $ac_func(); below. */
5927 #include <assert.h>
5928 /* Override any gcc2 internal prototype to avoid an error. */
5929 /* We use char because int might match the return type of a gcc2
5930 builtin and then its argument prototype would still apply. */
5931 char $ac_func();
5933 int main() {
5935 /* The GNU C library defines this for functions which it implements
5936 to always fail with ENOSYS. Some functions are actually named
5937 something starting with __ and the normal name is an alias. */
5938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5939 choke me
5940 #else
5941 $ac_func();
5942 #endif
5944 ; return 0; }
5946 if { (eval echo configure:5947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5947 rm -rf conftest*
5948 eval "ac_cv_func_$ac_func=yes"
5949 else
5950 echo "configure: failed program was:" >&5
5951 cat conftest.$ac_ext >&5
5952 rm -rf conftest*
5953 eval "ac_cv_func_$ac_func=no"
5955 rm -f conftest*
5958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5959 echo "$ac_t""yes" 1>&6
5960 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5961 cat >> confdefs.h <<EOF
5962 #define $ac_tr_func 1
5965 ac_XPG2funcs=yes
5966 else
5967 echo "$ac_t""no" 1>&6
5968 ac_XPG2funcs=no
5970 done
5973 LIBS="$ac_save_LIBS"
5975 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5976 echo "configure:5977: checking for XPG2 wchar_t support" >&5
5977 if test x"$ac_has_iconv_h" = xyes &&
5978 test x"$ac_has_langinfo_h" = xyes &&
5979 test x"$ac_XPG2funcs" = xyes; then
5980 ac_XPG2_wchar_t=yes
5981 else
5982 ac_XPG2_wchar_t=no
5984 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5986 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5987 echo "configure:5988: checking for enabled wchar_t specializations" >&5
5988 if test x"$ac_isoC99_wchar_t" = xyes &&
5989 test x"$ac_XPG2_wchar_t" = xyes; then
5990 cat >> confdefs.h <<\EOF
5991 #define _GLIBCPP_USE_WCHAR_T 1
5994 echo "$ac_t"""yes"" 1>&6
5995 else
5996 echo "$ac_t"""no"" 1>&6
5998 else
5999 echo "configure: warning: wchar_t support disabled." 1>&2
6002 os_include_dir="config/os/hpux"
6003 cat >> confdefs.h <<\EOF
6004 #define HAVE_COPYSIGN 1
6007 cat >> confdefs.h <<\EOF
6008 #define HAVE_COPYSIGNF 1
6011 cat >> confdefs.h <<\EOF
6012 #define HAVE_FINITEF 1
6015 cat >> confdefs.h <<\EOF
6016 #define HAVE_FREXPF 1
6019 cat >> confdefs.h <<\EOF
6020 #define HAVE_HYPOT 1
6023 cat >> confdefs.h <<\EOF
6024 #define HAVE_SINCOS 1
6027 cat >> confdefs.h <<\EOF
6028 #define HAVE_SINCOSF 1
6032 *-netbsd*)
6033 # Check for available headers.
6034 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6035 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6036 fp.h locale.h float.h inttypes.h
6038 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6039 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6040 echo "configure:6041: checking for $ac_hdr" >&5
6041 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6042 echo $ac_n "(cached) $ac_c" 1>&6
6043 else
6044 cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6047 #include <$ac_hdr>
6049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6050 { (eval echo configure:6051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6052 if test -z "$ac_err"; then
6053 rm -rf conftest*
6054 eval "ac_cv_header_$ac_safe=yes"
6055 else
6056 echo "$ac_err" >&5
6057 echo "configure: failed program was:" >&5
6058 cat conftest.$ac_ext >&5
6059 rm -rf conftest*
6060 eval "ac_cv_header_$ac_safe=no"
6062 rm -f conftest*
6064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6065 echo "$ac_t""yes" 1>&6
6066 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6067 cat >> confdefs.h <<EOF
6068 #define $ac_tr_hdr 1
6071 else
6072 echo "$ac_t""no" 1>&6
6074 done
6076 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6079 # If we're not using GNU ld, then there's no point in even trying these
6080 # tests. Check for that first. We should have already tested for gld
6081 # by now (in libtool), but require it now just to be safe...
6082 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6083 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6086 # The name set by libtool depends on the version of libtool. Shame on us
6087 # for depending on an impl detail, but c'est la vie. Older versions used
6088 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6089 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6090 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6091 # set (hence we're using an older libtool), then set it.
6092 if test x${with_gnu_ld+set} != xset; then
6093 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6094 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6095 with_gnu_ld=no
6096 else
6097 with_gnu_ld=$ac_cv_prog_gnu_ld
6101 # Start by getting the version number. I think the libtool test already
6102 # does some of this, but throws away the result.
6104 ldver=`$LD --version 2>/dev/null | head -1 | \
6105 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6107 glibcpp_gnu_ld_version=`echo $ldver | \
6108 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6110 # Set --gc-sections.
6111 if test "$with_gnu_ld" = "notbroken"; then
6112 # GNU ld it is! Joy and bunny rabbits!
6114 # All these tests are for C++; save the language and the compiler flags.
6115 # Need to do this so that g++ won't try to link in libstdc++
6116 ac_test_CFLAGS="${CFLAGS+set}"
6117 ac_save_CFLAGS="$CFLAGS"
6118 CFLAGS='-x c++ -Wl,--gc-sections'
6120 # Check for -Wl,--gc-sections
6121 # XXX This test is broken at the moment, as symbols required for
6122 # linking are now in libsupc++ (not built yet.....). In addition,
6123 # this test has cored on solaris in the past. In addition,
6124 # --gc-sections doesn't really work at the moment (keeps on discarding
6125 # used sections, first .eh_frame and now some of the glibc sections for
6126 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6127 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6128 echo "configure:6129: checking for ld that supports -Wl,--gc-sections" >&5
6129 if test "$cross_compiling" = yes; then
6130 ac_sectionLDflags=yes
6131 else
6132 cat > conftest.$ac_ext <<EOF
6133 #line 6134 "configure"
6134 #include "confdefs.h"
6136 int main(void)
6138 try { throw 1; }
6139 catch (...) { };
6140 return 0;
6144 if { (eval echo configure:6145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6145 then
6146 ac_sectionLDflags=yes
6147 else
6148 echo "configure: failed program was:" >&5
6149 cat conftest.$ac_ext >&5
6150 rm -fr conftest*
6151 ac_sectionLDflags=no
6153 rm -fr conftest*
6156 if test "$ac_test_CFLAGS" = set; then
6157 CFLAGS="$ac_save_CFLAGS"
6158 else
6159 # this is the suspicious part
6160 CFLAGS=''
6162 if test "$ac_sectionLDflags" = "yes"; then
6163 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6165 echo "$ac_t""$ac_sectionLDflags" 1>&6
6168 # Set linker optimization flags.
6169 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6170 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6177 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6178 echo "configure:6179: checking for main in -lm" >&5
6179 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6181 echo $ac_n "(cached) $ac_c" 1>&6
6182 else
6183 ac_save_LIBS="$LIBS"
6184 LIBS="-lm $LIBS"
6185 cat > conftest.$ac_ext <<EOF
6186 #line 6187 "configure"
6187 #include "confdefs.h"
6189 int main() {
6190 main()
6191 ; return 0; }
6193 if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6194 rm -rf conftest*
6195 eval "ac_cv_lib_$ac_lib_var=yes"
6196 else
6197 echo "configure: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6199 rm -rf conftest*
6200 eval "ac_cv_lib_$ac_lib_var=no"
6202 rm -f conftest*
6203 LIBS="$ac_save_LIBS"
6206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6207 echo "$ac_t""yes" 1>&6
6208 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6209 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6210 cat >> confdefs.h <<EOF
6211 #define $ac_tr_lib 1
6214 LIBS="-lm $LIBS"
6216 else
6217 echo "$ac_t""no" 1>&6
6220 for ac_func in nan copysignf
6222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6223 echo "configure:6224: checking for $ac_func" >&5
6224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6225 echo $ac_n "(cached) $ac_c" 1>&6
6226 else
6227 cat > conftest.$ac_ext <<EOF
6228 #line 6229 "configure"
6229 #include "confdefs.h"
6230 /* System header to define __stub macros and hopefully few prototypes,
6231 which can conflict with char $ac_func(); below. */
6232 #include <assert.h>
6233 /* Override any gcc2 internal prototype to avoid an error. */
6234 /* We use char because int might match the return type of a gcc2
6235 builtin and then its argument prototype would still apply. */
6236 char $ac_func();
6238 int main() {
6240 /* The GNU C library defines this for functions which it implements
6241 to always fail with ENOSYS. Some functions are actually named
6242 something starting with __ and the normal name is an alias. */
6243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6244 choke me
6245 #else
6246 $ac_func();
6247 #endif
6249 ; return 0; }
6251 if { (eval echo configure:6252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6252 rm -rf conftest*
6253 eval "ac_cv_func_$ac_func=yes"
6254 else
6255 echo "configure: failed program was:" >&5
6256 cat conftest.$ac_ext >&5
6257 rm -rf conftest*
6258 eval "ac_cv_func_$ac_func=no"
6260 rm -f conftest*
6263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6264 echo "$ac_t""yes" 1>&6
6265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6266 cat >> confdefs.h <<EOF
6267 #define $ac_tr_func 1
6270 else
6271 echo "$ac_t""no" 1>&6
6272 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6274 done
6277 for ac_func in __signbit
6279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6280 echo "configure:6281: checking for $ac_func" >&5
6281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6282 echo $ac_n "(cached) $ac_c" 1>&6
6283 else
6284 cat > conftest.$ac_ext <<EOF
6285 #line 6286 "configure"
6286 #include "confdefs.h"
6287 /* System header to define __stub macros and hopefully few prototypes,
6288 which can conflict with char $ac_func(); below. */
6289 #include <assert.h>
6290 /* Override any gcc2 internal prototype to avoid an error. */
6291 /* We use char because int might match the return type of a gcc2
6292 builtin and then its argument prototype would still apply. */
6293 char $ac_func();
6295 int main() {
6297 /* The GNU C library defines this for functions which it implements
6298 to always fail with ENOSYS. Some functions are actually named
6299 something starting with __ and the normal name is an alias. */
6300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6301 choke me
6302 #else
6303 $ac_func();
6304 #endif
6306 ; return 0; }
6308 if { (eval echo configure:6309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6309 rm -rf conftest*
6310 eval "ac_cv_func_$ac_func=yes"
6311 else
6312 echo "configure: failed program was:" >&5
6313 cat conftest.$ac_ext >&5
6314 rm -rf conftest*
6315 eval "ac_cv_func_$ac_func=no"
6317 rm -f conftest*
6320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6321 echo "$ac_t""yes" 1>&6
6322 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6323 cat >> confdefs.h <<EOF
6324 #define $ac_tr_func 1
6327 else
6328 echo "$ac_t""no" 1>&6
6329 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6331 done
6333 for ac_func in __signbitf
6335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6336 echo "configure:6337: checking for $ac_func" >&5
6337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6338 echo $ac_n "(cached) $ac_c" 1>&6
6339 else
6340 cat > conftest.$ac_ext <<EOF
6341 #line 6342 "configure"
6342 #include "confdefs.h"
6343 /* System header to define __stub macros and hopefully few prototypes,
6344 which can conflict with char $ac_func(); below. */
6345 #include <assert.h>
6346 /* Override any gcc2 internal prototype to avoid an error. */
6347 /* We use char because int might match the return type of a gcc2
6348 builtin and then its argument prototype would still apply. */
6349 char $ac_func();
6351 int main() {
6353 /* The GNU C library defines this for functions which it implements
6354 to always fail with ENOSYS. Some functions are actually named
6355 something starting with __ and the normal name is an alias. */
6356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6357 choke me
6358 #else
6359 $ac_func();
6360 #endif
6362 ; return 0; }
6364 if { (eval echo configure:6365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6365 rm -rf conftest*
6366 eval "ac_cv_func_$ac_func=yes"
6367 else
6368 echo "configure: failed program was:" >&5
6369 cat conftest.$ac_ext >&5
6370 rm -rf conftest*
6371 eval "ac_cv_func_$ac_func=no"
6373 rm -f conftest*
6376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6377 echo "$ac_t""yes" 1>&6
6378 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6379 cat >> confdefs.h <<EOF
6380 #define $ac_tr_func 1
6383 else
6384 echo "$ac_t""no" 1>&6
6385 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6387 done
6390 if test x$ac_cv_func_copysignl = x"yes"; then
6391 for ac_func in __signbitl
6393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6394 echo "configure:6395: checking for $ac_func" >&5
6395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6396 echo $ac_n "(cached) $ac_c" 1>&6
6397 else
6398 cat > conftest.$ac_ext <<EOF
6399 #line 6400 "configure"
6400 #include "confdefs.h"
6401 /* System header to define __stub macros and hopefully few prototypes,
6402 which can conflict with char $ac_func(); below. */
6403 #include <assert.h>
6404 /* Override any gcc2 internal prototype to avoid an error. */
6405 /* We use char because int might match the return type of a gcc2
6406 builtin and then its argument prototype would still apply. */
6407 char $ac_func();
6409 int main() {
6411 /* The GNU C library defines this for functions which it implements
6412 to always fail with ENOSYS. Some functions are actually named
6413 something starting with __ and the normal name is an alias. */
6414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6415 choke me
6416 #else
6417 $ac_func();
6418 #endif
6420 ; return 0; }
6422 if { (eval echo configure:6423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6423 rm -rf conftest*
6424 eval "ac_cv_func_$ac_func=yes"
6425 else
6426 echo "configure: failed program was:" >&5
6427 cat conftest.$ac_ext >&5
6428 rm -rf conftest*
6429 eval "ac_cv_func_$ac_func=no"
6431 rm -f conftest*
6434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6435 echo "$ac_t""yes" 1>&6
6436 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6437 cat >> confdefs.h <<EOF
6438 #define $ac_tr_func 1
6441 else
6442 echo "$ac_t""no" 1>&6
6443 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6445 done
6453 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6454 echo "configure:6455: checking for mbstate_t" >&5
6455 cat > conftest.$ac_ext <<EOF
6456 #line 6457 "configure"
6457 #include "confdefs.h"
6458 #include <wchar.h>
6459 int main() {
6460 mbstate_t teststate;
6461 ; return 0; }
6463 if { (eval echo configure:6464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6464 rm -rf conftest*
6465 have_mbstate_t=yes
6466 else
6467 echo "configure: failed program was:" >&5
6468 cat conftest.$ac_ext >&5
6469 rm -rf conftest*
6470 have_mbstate_t=no
6472 rm -f conftest*
6473 echo "$ac_t""$have_mbstate_t" 1>&6
6474 if test x"$have_mbstate_t" = xyes; then
6475 cat >> confdefs.h <<\EOF
6476 #define HAVE_MBSTATE_T 1
6481 for ac_hdr in wchar.h
6483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6485 echo "configure:6486: checking for $ac_hdr" >&5
6486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6487 echo $ac_n "(cached) $ac_c" 1>&6
6488 else
6489 cat > conftest.$ac_ext <<EOF
6490 #line 6491 "configure"
6491 #include "confdefs.h"
6492 #include <$ac_hdr>
6494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6495 { (eval echo configure:6496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6497 if test -z "$ac_err"; then
6498 rm -rf conftest*
6499 eval "ac_cv_header_$ac_safe=yes"
6500 else
6501 echo "$ac_err" >&5
6502 echo "configure: failed program was:" >&5
6503 cat conftest.$ac_ext >&5
6504 rm -rf conftest*
6505 eval "ac_cv_header_$ac_safe=no"
6507 rm -f conftest*
6509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6510 echo "$ac_t""yes" 1>&6
6511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6512 cat >> confdefs.h <<EOF
6513 #define $ac_tr_hdr 1
6515 ac_has_wchar_h=yes
6516 else
6517 echo "$ac_t""no" 1>&6
6518 ac_has_wchar_h=no
6520 done
6522 for ac_hdr in wctype.h
6524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6526 echo "configure:6527: checking for $ac_hdr" >&5
6527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6528 echo $ac_n "(cached) $ac_c" 1>&6
6529 else
6530 cat > conftest.$ac_ext <<EOF
6531 #line 6532 "configure"
6532 #include "confdefs.h"
6533 #include <$ac_hdr>
6535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6536 { (eval echo configure:6537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6538 if test -z "$ac_err"; then
6539 rm -rf conftest*
6540 eval "ac_cv_header_$ac_safe=yes"
6541 else
6542 echo "$ac_err" >&5
6543 echo "configure: failed program was:" >&5
6544 cat conftest.$ac_ext >&5
6545 rm -rf conftest*
6546 eval "ac_cv_header_$ac_safe=no"
6548 rm -f conftest*
6550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6551 echo "$ac_t""yes" 1>&6
6552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6553 cat >> confdefs.h <<EOF
6554 #define $ac_tr_hdr 1
6556 ac_has_wctype_h=yes
6557 else
6558 echo "$ac_t""no" 1>&6
6559 ac_has_wctype_h=no
6561 done
6564 if test x"$ac_has_wchar_h" = xyes &&
6565 test x"$ac_has_wctype_h" = xyes &&
6566 test x"$enable_c_mbchar" != xno; then
6568 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6569 echo "configure:6570: checking for WCHAR_MIN and WCHAR_MAX" >&5
6570 cat > conftest.$ac_ext <<EOF
6571 #line 6572 "configure"
6572 #include "confdefs.h"
6573 #include <wchar.h>
6574 int main() {
6575 int i = WCHAR_MIN; int j = WCHAR_MAX;
6576 ; return 0; }
6578 if { (eval echo configure:6579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6579 rm -rf conftest*
6580 has_wchar_minmax=yes
6581 else
6582 echo "configure: failed program was:" >&5
6583 cat conftest.$ac_ext >&5
6584 rm -rf conftest*
6585 has_wchar_minmax=no
6587 rm -f conftest*
6588 echo "$ac_t""$has_wchar_minmax" 1>&6
6590 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6591 echo "configure:6592: checking for WEOF" >&5
6592 cat > conftest.$ac_ext <<EOF
6593 #line 6594 "configure"
6594 #include "confdefs.h"
6596 #include <wchar.h>
6597 #include <stddef.h>
6598 int main() {
6599 wint_t i = WEOF;
6600 ; return 0; }
6602 if { (eval echo configure:6603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6603 rm -rf conftest*
6604 has_weof=yes
6605 else
6606 echo "configure: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6608 rm -rf conftest*
6609 has_weof=no
6611 rm -f conftest*
6612 echo "$ac_t""$has_weof" 1>&6
6614 ac_wfuncs=yes
6615 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6618 echo "configure:6619: checking for $ac_func" >&5
6619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6620 echo $ac_n "(cached) $ac_c" 1>&6
6621 else
6622 cat > conftest.$ac_ext <<EOF
6623 #line 6624 "configure"
6624 #include "confdefs.h"
6625 /* System header to define __stub macros and hopefully few prototypes,
6626 which can conflict with char $ac_func(); below. */
6627 #include <assert.h>
6628 /* Override any gcc2 internal prototype to avoid an error. */
6629 /* We use char because int might match the return type of a gcc2
6630 builtin and then its argument prototype would still apply. */
6631 char $ac_func();
6633 int main() {
6635 /* The GNU C library defines this for functions which it implements
6636 to always fail with ENOSYS. Some functions are actually named
6637 something starting with __ and the normal name is an alias. */
6638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6639 choke me
6640 #else
6641 $ac_func();
6642 #endif
6644 ; return 0; }
6646 if { (eval echo configure:6647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6647 rm -rf conftest*
6648 eval "ac_cv_func_$ac_func=yes"
6649 else
6650 echo "configure: failed program was:" >&5
6651 cat conftest.$ac_ext >&5
6652 rm -rf conftest*
6653 eval "ac_cv_func_$ac_func=no"
6655 rm -f conftest*
6658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6659 echo "$ac_t""yes" 1>&6
6660 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6661 cat >> confdefs.h <<EOF
6662 #define $ac_tr_func 1
6665 else
6666 echo "$ac_t""no" 1>&6
6668 ac_wfuncs=no
6670 done
6673 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6674 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6675 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6676 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6677 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6678 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6681 echo "configure:6682: checking for $ac_func" >&5
6682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6683 echo $ac_n "(cached) $ac_c" 1>&6
6684 else
6685 cat > conftest.$ac_ext <<EOF
6686 #line 6687 "configure"
6687 #include "confdefs.h"
6688 /* System header to define __stub macros and hopefully few prototypes,
6689 which can conflict with char $ac_func(); below. */
6690 #include <assert.h>
6691 /* Override any gcc2 internal prototype to avoid an error. */
6692 /* We use char because int might match the return type of a gcc2
6693 builtin and then its argument prototype would still apply. */
6694 char $ac_func();
6696 int main() {
6698 /* The GNU C library defines this for functions which it implements
6699 to always fail with ENOSYS. Some functions are actually named
6700 something starting with __ and the normal name is an alias. */
6701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6702 choke me
6703 #else
6704 $ac_func();
6705 #endif
6707 ; return 0; }
6709 if { (eval echo configure:6710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6710 rm -rf conftest*
6711 eval "ac_cv_func_$ac_func=yes"
6712 else
6713 echo "configure: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6715 rm -rf conftest*
6716 eval "ac_cv_func_$ac_func=no"
6718 rm -f conftest*
6721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6722 echo "$ac_t""yes" 1>&6
6723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6724 cat >> confdefs.h <<EOF
6725 #define $ac_tr_func 1
6728 else
6729 echo "$ac_t""no" 1>&6
6731 ac_wfuncs=no
6733 done
6736 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6737 echo "configure:6738: checking for ISO C99 wchar_t support" >&5
6738 if test x"$has_weof" = xyes &&
6739 test x"$has_wchar_minmax" = xyes &&
6740 test x"$ac_wfuncs" = xyes; then
6741 ac_isoC99_wchar_t=yes
6742 else
6743 ac_isoC99_wchar_t=no
6745 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6747 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6748 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6749 echo "configure:6750: checking for iconv.h" >&5
6750 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6751 echo $ac_n "(cached) $ac_c" 1>&6
6752 else
6753 cat > conftest.$ac_ext <<EOF
6754 #line 6755 "configure"
6755 #include "confdefs.h"
6756 #include <iconv.h>
6758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6759 { (eval echo configure:6760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6761 if test -z "$ac_err"; then
6762 rm -rf conftest*
6763 eval "ac_cv_header_$ac_safe=yes"
6764 else
6765 echo "$ac_err" >&5
6766 echo "configure: failed program was:" >&5
6767 cat conftest.$ac_ext >&5
6768 rm -rf conftest*
6769 eval "ac_cv_header_$ac_safe=no"
6771 rm -f conftest*
6773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6774 echo "$ac_t""yes" 1>&6
6775 ac_has_iconv_h=yes
6776 else
6777 echo "$ac_t""no" 1>&6
6778 ac_has_iconv_h=no
6781 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6782 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6783 echo "configure:6784: checking for langinfo.h" >&5
6784 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6785 echo $ac_n "(cached) $ac_c" 1>&6
6786 else
6787 cat > conftest.$ac_ext <<EOF
6788 #line 6789 "configure"
6789 #include "confdefs.h"
6790 #include <langinfo.h>
6792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6793 { (eval echo configure:6794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6794 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6795 if test -z "$ac_err"; then
6796 rm -rf conftest*
6797 eval "ac_cv_header_$ac_safe=yes"
6798 else
6799 echo "$ac_err" >&5
6800 echo "configure: failed program was:" >&5
6801 cat conftest.$ac_ext >&5
6802 rm -rf conftest*
6803 eval "ac_cv_header_$ac_safe=no"
6805 rm -f conftest*
6807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6808 echo "$ac_t""yes" 1>&6
6809 ac_has_langinfo_h=yes
6810 else
6811 echo "$ac_t""no" 1>&6
6812 ac_has_langinfo_h=no
6816 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6817 echo "configure:6818: checking for iconv in -liconv" >&5
6818 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6820 echo $ac_n "(cached) $ac_c" 1>&6
6821 else
6822 ac_save_LIBS="$LIBS"
6823 LIBS="-liconv $LIBS"
6824 cat > conftest.$ac_ext <<EOF
6825 #line 6826 "configure"
6826 #include "confdefs.h"
6827 /* Override any gcc2 internal prototype to avoid an error. */
6828 /* We use char because int might match the return type of a gcc2
6829 builtin and then its argument prototype would still apply. */
6830 char iconv();
6832 int main() {
6833 iconv()
6834 ; return 0; }
6836 if { (eval echo configure:6837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6837 rm -rf conftest*
6838 eval "ac_cv_lib_$ac_lib_var=yes"
6839 else
6840 echo "configure: failed program was:" >&5
6841 cat conftest.$ac_ext >&5
6842 rm -rf conftest*
6843 eval "ac_cv_lib_$ac_lib_var=no"
6845 rm -f conftest*
6846 LIBS="$ac_save_LIBS"
6849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6850 echo "$ac_t""yes" 1>&6
6851 libiconv="-liconv"
6852 else
6853 echo "$ac_t""no" 1>&6
6856 ac_save_LIBS="$LIBS"
6857 LIBS="$LIBS $libiconv"
6859 for ac_func in iconv_open iconv_close iconv nl_langinfo
6861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6862 echo "configure:6863: checking for $ac_func" >&5
6863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6864 echo $ac_n "(cached) $ac_c" 1>&6
6865 else
6866 cat > conftest.$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6869 /* System header to define __stub macros and hopefully few prototypes,
6870 which can conflict with char $ac_func(); below. */
6871 #include <assert.h>
6872 /* Override any gcc2 internal prototype to avoid an error. */
6873 /* We use char because int might match the return type of a gcc2
6874 builtin and then its argument prototype would still apply. */
6875 char $ac_func();
6877 int main() {
6879 /* The GNU C library defines this for functions which it implements
6880 to always fail with ENOSYS. Some functions are actually named
6881 something starting with __ and the normal name is an alias. */
6882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6883 choke me
6884 #else
6885 $ac_func();
6886 #endif
6888 ; return 0; }
6890 if { (eval echo configure:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6891 rm -rf conftest*
6892 eval "ac_cv_func_$ac_func=yes"
6893 else
6894 echo "configure: failed program was:" >&5
6895 cat conftest.$ac_ext >&5
6896 rm -rf conftest*
6897 eval "ac_cv_func_$ac_func=no"
6899 rm -f conftest*
6902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6903 echo "$ac_t""yes" 1>&6
6904 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6905 cat >> confdefs.h <<EOF
6906 #define $ac_tr_func 1
6909 ac_XPG2funcs=yes
6910 else
6911 echo "$ac_t""no" 1>&6
6912 ac_XPG2funcs=no
6914 done
6917 LIBS="$ac_save_LIBS"
6919 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6920 echo "configure:6921: checking for XPG2 wchar_t support" >&5
6921 if test x"$ac_has_iconv_h" = xyes &&
6922 test x"$ac_has_langinfo_h" = xyes &&
6923 test x"$ac_XPG2funcs" = xyes; then
6924 ac_XPG2_wchar_t=yes
6925 else
6926 ac_XPG2_wchar_t=no
6928 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6930 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6931 echo "configure:6932: checking for enabled wchar_t specializations" >&5
6932 if test x"$ac_isoC99_wchar_t" = xyes &&
6933 test x"$ac_XPG2_wchar_t" = xyes; then
6934 cat >> confdefs.h <<\EOF
6935 #define _GLIBCPP_USE_WCHAR_T 1
6938 echo "$ac_t"""yes"" 1>&6
6939 else
6940 echo "$ac_t"""no"" 1>&6
6942 else
6943 echo "configure: warning: wchar_t support disabled." 1>&2
6946 os_include_dir="config/os/bsd/netbsd"
6947 cat >> confdefs.h <<\EOF
6948 #define HAVE_COPYSIGN 1
6951 cat >> confdefs.h <<\EOF
6952 #define HAVE_COPYSIGNF 1
6955 cat >> confdefs.h <<\EOF
6956 #define HAVE_FINITEF 1
6959 cat >> confdefs.h <<\EOF
6960 #define HAVE_FREXPF 1
6963 cat >> confdefs.h <<\EOF
6964 #define HAVE_HYPOTF 1
6968 *-mingw32*)
6969 for ac_hdr in sys/types.h locale.h float.h
6971 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6972 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6973 echo "configure:6974: checking for $ac_hdr" >&5
6974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6975 echo $ac_n "(cached) $ac_c" 1>&6
6976 else
6977 cat > conftest.$ac_ext <<EOF
6978 #line 6979 "configure"
6979 #include "confdefs.h"
6980 #include <$ac_hdr>
6982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6983 { (eval echo configure:6984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6985 if test -z "$ac_err"; then
6986 rm -rf conftest*
6987 eval "ac_cv_header_$ac_safe=yes"
6988 else
6989 echo "$ac_err" >&5
6990 echo "configure: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6992 rm -rf conftest*
6993 eval "ac_cv_header_$ac_safe=no"
6995 rm -f conftest*
6997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6998 echo "$ac_t""yes" 1>&6
6999 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7000 cat >> confdefs.h <<EOF
7001 #define $ac_tr_hdr 1
7004 else
7005 echo "$ac_t""no" 1>&6
7007 done
7010 # If we're not using GNU ld, then there's no point in even trying these
7011 # tests. Check for that first. We should have already tested for gld
7012 # by now (in libtool), but require it now just to be safe...
7013 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7014 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7017 # The name set by libtool depends on the version of libtool. Shame on us
7018 # for depending on an impl detail, but c'est la vie. Older versions used
7019 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7020 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7021 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7022 # set (hence we're using an older libtool), then set it.
7023 if test x${with_gnu_ld+set} != xset; then
7024 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7025 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7026 with_gnu_ld=no
7027 else
7028 with_gnu_ld=$ac_cv_prog_gnu_ld
7032 # Start by getting the version number. I think the libtool test already
7033 # does some of this, but throws away the result.
7035 ldver=`$LD --version 2>/dev/null | head -1 | \
7036 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7038 glibcpp_gnu_ld_version=`echo $ldver | \
7039 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7041 # Set --gc-sections.
7042 if test "$with_gnu_ld" = "notbroken"; then
7043 # GNU ld it is! Joy and bunny rabbits!
7045 # All these tests are for C++; save the language and the compiler flags.
7046 # Need to do this so that g++ won't try to link in libstdc++
7047 ac_test_CFLAGS="${CFLAGS+set}"
7048 ac_save_CFLAGS="$CFLAGS"
7049 CFLAGS='-x c++ -Wl,--gc-sections'
7051 # Check for -Wl,--gc-sections
7052 # XXX This test is broken at the moment, as symbols required for
7053 # linking are now in libsupc++ (not built yet.....). In addition,
7054 # this test has cored on solaris in the past. In addition,
7055 # --gc-sections doesn't really work at the moment (keeps on discarding
7056 # used sections, first .eh_frame and now some of the glibc sections for
7057 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7058 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7059 echo "configure:7060: checking for ld that supports -Wl,--gc-sections" >&5
7060 if test "$cross_compiling" = yes; then
7061 ac_sectionLDflags=yes
7062 else
7063 cat > conftest.$ac_ext <<EOF
7064 #line 7065 "configure"
7065 #include "confdefs.h"
7067 int main(void)
7069 try { throw 1; }
7070 catch (...) { };
7071 return 0;
7075 if { (eval echo configure:7076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7076 then
7077 ac_sectionLDflags=yes
7078 else
7079 echo "configure: failed program was:" >&5
7080 cat conftest.$ac_ext >&5
7081 rm -fr conftest*
7082 ac_sectionLDflags=no
7084 rm -fr conftest*
7087 if test "$ac_test_CFLAGS" = set; then
7088 CFLAGS="$ac_save_CFLAGS"
7089 else
7090 # this is the suspicious part
7091 CFLAGS=''
7093 if test "$ac_sectionLDflags" = "yes"; then
7094 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7096 echo "$ac_t""$ac_sectionLDflags" 1>&6
7099 # Set linker optimization flags.
7100 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7101 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7108 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7109 echo "configure:7110: checking for main in -lm" >&5
7110 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7112 echo $ac_n "(cached) $ac_c" 1>&6
7113 else
7114 ac_save_LIBS="$LIBS"
7115 LIBS="-lm $LIBS"
7116 cat > conftest.$ac_ext <<EOF
7117 #line 7118 "configure"
7118 #include "confdefs.h"
7120 int main() {
7121 main()
7122 ; return 0; }
7124 if { (eval echo configure:7125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7125 rm -rf conftest*
7126 eval "ac_cv_lib_$ac_lib_var=yes"
7127 else
7128 echo "configure: failed program was:" >&5
7129 cat conftest.$ac_ext >&5
7130 rm -rf conftest*
7131 eval "ac_cv_lib_$ac_lib_var=no"
7133 rm -f conftest*
7134 LIBS="$ac_save_LIBS"
7137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7138 echo "$ac_t""yes" 1>&6
7139 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7140 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7141 cat >> confdefs.h <<EOF
7142 #define $ac_tr_lib 1
7145 LIBS="-lm $LIBS"
7147 else
7148 echo "$ac_t""no" 1>&6
7151 for ac_func in nan copysignf
7153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7154 echo "configure:7155: checking for $ac_func" >&5
7155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7156 echo $ac_n "(cached) $ac_c" 1>&6
7157 else
7158 cat > conftest.$ac_ext <<EOF
7159 #line 7160 "configure"
7160 #include "confdefs.h"
7161 /* System header to define __stub macros and hopefully few prototypes,
7162 which can conflict with char $ac_func(); below. */
7163 #include <assert.h>
7164 /* Override any gcc2 internal prototype to avoid an error. */
7165 /* We use char because int might match the return type of a gcc2
7166 builtin and then its argument prototype would still apply. */
7167 char $ac_func();
7169 int main() {
7171 /* The GNU C library defines this for functions which it implements
7172 to always fail with ENOSYS. Some functions are actually named
7173 something starting with __ and the normal name is an alias. */
7174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7175 choke me
7176 #else
7177 $ac_func();
7178 #endif
7180 ; return 0; }
7182 if { (eval echo configure:7183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7183 rm -rf conftest*
7184 eval "ac_cv_func_$ac_func=yes"
7185 else
7186 echo "configure: failed program was:" >&5
7187 cat conftest.$ac_ext >&5
7188 rm -rf conftest*
7189 eval "ac_cv_func_$ac_func=no"
7191 rm -f conftest*
7194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7195 echo "$ac_t""yes" 1>&6
7196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7197 cat >> confdefs.h <<EOF
7198 #define $ac_tr_func 1
7201 else
7202 echo "$ac_t""no" 1>&6
7203 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7205 done
7208 for ac_func in __signbit
7210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7211 echo "configure:7212: checking for $ac_func" >&5
7212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7213 echo $ac_n "(cached) $ac_c" 1>&6
7214 else
7215 cat > conftest.$ac_ext <<EOF
7216 #line 7217 "configure"
7217 #include "confdefs.h"
7218 /* System header to define __stub macros and hopefully few prototypes,
7219 which can conflict with char $ac_func(); below. */
7220 #include <assert.h>
7221 /* Override any gcc2 internal prototype to avoid an error. */
7222 /* We use char because int might match the return type of a gcc2
7223 builtin and then its argument prototype would still apply. */
7224 char $ac_func();
7226 int main() {
7228 /* The GNU C library defines this for functions which it implements
7229 to always fail with ENOSYS. Some functions are actually named
7230 something starting with __ and the normal name is an alias. */
7231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7232 choke me
7233 #else
7234 $ac_func();
7235 #endif
7237 ; return 0; }
7239 if { (eval echo configure:7240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7240 rm -rf conftest*
7241 eval "ac_cv_func_$ac_func=yes"
7242 else
7243 echo "configure: failed program was:" >&5
7244 cat conftest.$ac_ext >&5
7245 rm -rf conftest*
7246 eval "ac_cv_func_$ac_func=no"
7248 rm -f conftest*
7251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7252 echo "$ac_t""yes" 1>&6
7253 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7254 cat >> confdefs.h <<EOF
7255 #define $ac_tr_func 1
7258 else
7259 echo "$ac_t""no" 1>&6
7260 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7262 done
7264 for ac_func in __signbitf
7266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7267 echo "configure:7268: checking for $ac_func" >&5
7268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7269 echo $ac_n "(cached) $ac_c" 1>&6
7270 else
7271 cat > conftest.$ac_ext <<EOF
7272 #line 7273 "configure"
7273 #include "confdefs.h"
7274 /* System header to define __stub macros and hopefully few prototypes,
7275 which can conflict with char $ac_func(); below. */
7276 #include <assert.h>
7277 /* Override any gcc2 internal prototype to avoid an error. */
7278 /* We use char because int might match the return type of a gcc2
7279 builtin and then its argument prototype would still apply. */
7280 char $ac_func();
7282 int main() {
7284 /* The GNU C library defines this for functions which it implements
7285 to always fail with ENOSYS. Some functions are actually named
7286 something starting with __ and the normal name is an alias. */
7287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7288 choke me
7289 #else
7290 $ac_func();
7291 #endif
7293 ; return 0; }
7295 if { (eval echo configure:7296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7296 rm -rf conftest*
7297 eval "ac_cv_func_$ac_func=yes"
7298 else
7299 echo "configure: failed program was:" >&5
7300 cat conftest.$ac_ext >&5
7301 rm -rf conftest*
7302 eval "ac_cv_func_$ac_func=no"
7304 rm -f conftest*
7307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7308 echo "$ac_t""yes" 1>&6
7309 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7310 cat >> confdefs.h <<EOF
7311 #define $ac_tr_func 1
7314 else
7315 echo "$ac_t""no" 1>&6
7316 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7318 done
7321 if test x$ac_cv_func_copysignl = x"yes"; then
7322 for ac_func in __signbitl
7324 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7325 echo "configure:7326: checking for $ac_func" >&5
7326 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7327 echo $ac_n "(cached) $ac_c" 1>&6
7328 else
7329 cat > conftest.$ac_ext <<EOF
7330 #line 7331 "configure"
7331 #include "confdefs.h"
7332 /* System header to define __stub macros and hopefully few prototypes,
7333 which can conflict with char $ac_func(); below. */
7334 #include <assert.h>
7335 /* Override any gcc2 internal prototype to avoid an error. */
7336 /* We use char because int might match the return type of a gcc2
7337 builtin and then its argument prototype would still apply. */
7338 char $ac_func();
7340 int main() {
7342 /* The GNU C library defines this for functions which it implements
7343 to always fail with ENOSYS. Some functions are actually named
7344 something starting with __ and the normal name is an alias. */
7345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7346 choke me
7347 #else
7348 $ac_func();
7349 #endif
7351 ; return 0; }
7353 if { (eval echo configure:7354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7354 rm -rf conftest*
7355 eval "ac_cv_func_$ac_func=yes"
7356 else
7357 echo "configure: failed program was:" >&5
7358 cat conftest.$ac_ext >&5
7359 rm -rf conftest*
7360 eval "ac_cv_func_$ac_func=no"
7362 rm -f conftest*
7365 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7366 echo "$ac_t""yes" 1>&6
7367 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7368 cat >> confdefs.h <<EOF
7369 #define $ac_tr_func 1
7372 else
7373 echo "$ac_t""no" 1>&6
7374 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7376 done
7384 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7385 echo "configure:7386: checking for mbstate_t" >&5
7386 cat > conftest.$ac_ext <<EOF
7387 #line 7388 "configure"
7388 #include "confdefs.h"
7389 #include <wchar.h>
7390 int main() {
7391 mbstate_t teststate;
7392 ; return 0; }
7394 if { (eval echo configure:7395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7395 rm -rf conftest*
7396 have_mbstate_t=yes
7397 else
7398 echo "configure: failed program was:" >&5
7399 cat conftest.$ac_ext >&5
7400 rm -rf conftest*
7401 have_mbstate_t=no
7403 rm -f conftest*
7404 echo "$ac_t""$have_mbstate_t" 1>&6
7405 if test x"$have_mbstate_t" = xyes; then
7406 cat >> confdefs.h <<\EOF
7407 #define HAVE_MBSTATE_T 1
7412 for ac_hdr in wchar.h
7414 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7416 echo "configure:7417: checking for $ac_hdr" >&5
7417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7418 echo $ac_n "(cached) $ac_c" 1>&6
7419 else
7420 cat > conftest.$ac_ext <<EOF
7421 #line 7422 "configure"
7422 #include "confdefs.h"
7423 #include <$ac_hdr>
7425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7426 { (eval echo configure:7427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7428 if test -z "$ac_err"; then
7429 rm -rf conftest*
7430 eval "ac_cv_header_$ac_safe=yes"
7431 else
7432 echo "$ac_err" >&5
7433 echo "configure: failed program was:" >&5
7434 cat conftest.$ac_ext >&5
7435 rm -rf conftest*
7436 eval "ac_cv_header_$ac_safe=no"
7438 rm -f conftest*
7440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7441 echo "$ac_t""yes" 1>&6
7442 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7443 cat >> confdefs.h <<EOF
7444 #define $ac_tr_hdr 1
7446 ac_has_wchar_h=yes
7447 else
7448 echo "$ac_t""no" 1>&6
7449 ac_has_wchar_h=no
7451 done
7453 for ac_hdr in wctype.h
7455 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7457 echo "configure:7458: checking for $ac_hdr" >&5
7458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7459 echo $ac_n "(cached) $ac_c" 1>&6
7460 else
7461 cat > conftest.$ac_ext <<EOF
7462 #line 7463 "configure"
7463 #include "confdefs.h"
7464 #include <$ac_hdr>
7466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7467 { (eval echo configure:7468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7469 if test -z "$ac_err"; then
7470 rm -rf conftest*
7471 eval "ac_cv_header_$ac_safe=yes"
7472 else
7473 echo "$ac_err" >&5
7474 echo "configure: failed program was:" >&5
7475 cat conftest.$ac_ext >&5
7476 rm -rf conftest*
7477 eval "ac_cv_header_$ac_safe=no"
7479 rm -f conftest*
7481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7482 echo "$ac_t""yes" 1>&6
7483 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7484 cat >> confdefs.h <<EOF
7485 #define $ac_tr_hdr 1
7487 ac_has_wctype_h=yes
7488 else
7489 echo "$ac_t""no" 1>&6
7490 ac_has_wctype_h=no
7492 done
7495 if test x"$ac_has_wchar_h" = xyes &&
7496 test x"$ac_has_wctype_h" = xyes &&
7497 test x"$enable_c_mbchar" != xno; then
7499 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7500 echo "configure:7501: checking for WCHAR_MIN and WCHAR_MAX" >&5
7501 cat > conftest.$ac_ext <<EOF
7502 #line 7503 "configure"
7503 #include "confdefs.h"
7504 #include <wchar.h>
7505 int main() {
7506 int i = WCHAR_MIN; int j = WCHAR_MAX;
7507 ; return 0; }
7509 if { (eval echo configure:7510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7510 rm -rf conftest*
7511 has_wchar_minmax=yes
7512 else
7513 echo "configure: failed program was:" >&5
7514 cat conftest.$ac_ext >&5
7515 rm -rf conftest*
7516 has_wchar_minmax=no
7518 rm -f conftest*
7519 echo "$ac_t""$has_wchar_minmax" 1>&6
7521 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7522 echo "configure:7523: checking for WEOF" >&5
7523 cat > conftest.$ac_ext <<EOF
7524 #line 7525 "configure"
7525 #include "confdefs.h"
7527 #include <wchar.h>
7528 #include <stddef.h>
7529 int main() {
7530 wint_t i = WEOF;
7531 ; return 0; }
7533 if { (eval echo configure:7534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7534 rm -rf conftest*
7535 has_weof=yes
7536 else
7537 echo "configure: failed program was:" >&5
7538 cat conftest.$ac_ext >&5
7539 rm -rf conftest*
7540 has_weof=no
7542 rm -f conftest*
7543 echo "$ac_t""$has_weof" 1>&6
7545 ac_wfuncs=yes
7546 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7549 echo "configure:7550: checking for $ac_func" >&5
7550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7551 echo $ac_n "(cached) $ac_c" 1>&6
7552 else
7553 cat > conftest.$ac_ext <<EOF
7554 #line 7555 "configure"
7555 #include "confdefs.h"
7556 /* System header to define __stub macros and hopefully few prototypes,
7557 which can conflict with char $ac_func(); below. */
7558 #include <assert.h>
7559 /* Override any gcc2 internal prototype to avoid an error. */
7560 /* We use char because int might match the return type of a gcc2
7561 builtin and then its argument prototype would still apply. */
7562 char $ac_func();
7564 int main() {
7566 /* The GNU C library defines this for functions which it implements
7567 to always fail with ENOSYS. Some functions are actually named
7568 something starting with __ and the normal name is an alias. */
7569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7570 choke me
7571 #else
7572 $ac_func();
7573 #endif
7575 ; return 0; }
7577 if { (eval echo configure:7578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7578 rm -rf conftest*
7579 eval "ac_cv_func_$ac_func=yes"
7580 else
7581 echo "configure: failed program was:" >&5
7582 cat conftest.$ac_ext >&5
7583 rm -rf conftest*
7584 eval "ac_cv_func_$ac_func=no"
7586 rm -f conftest*
7589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7590 echo "$ac_t""yes" 1>&6
7591 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7592 cat >> confdefs.h <<EOF
7593 #define $ac_tr_func 1
7596 else
7597 echo "$ac_t""no" 1>&6
7599 ac_wfuncs=no
7601 done
7604 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7605 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7606 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7607 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7608 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7609 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7612 echo "configure:7613: checking for $ac_func" >&5
7613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7614 echo $ac_n "(cached) $ac_c" 1>&6
7615 else
7616 cat > conftest.$ac_ext <<EOF
7617 #line 7618 "configure"
7618 #include "confdefs.h"
7619 /* System header to define __stub macros and hopefully few prototypes,
7620 which can conflict with char $ac_func(); below. */
7621 #include <assert.h>
7622 /* Override any gcc2 internal prototype to avoid an error. */
7623 /* We use char because int might match the return type of a gcc2
7624 builtin and then its argument prototype would still apply. */
7625 char $ac_func();
7627 int main() {
7629 /* The GNU C library defines this for functions which it implements
7630 to always fail with ENOSYS. Some functions are actually named
7631 something starting with __ and the normal name is an alias. */
7632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7633 choke me
7634 #else
7635 $ac_func();
7636 #endif
7638 ; return 0; }
7640 if { (eval echo configure:7641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7641 rm -rf conftest*
7642 eval "ac_cv_func_$ac_func=yes"
7643 else
7644 echo "configure: failed program was:" >&5
7645 cat conftest.$ac_ext >&5
7646 rm -rf conftest*
7647 eval "ac_cv_func_$ac_func=no"
7649 rm -f conftest*
7652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7653 echo "$ac_t""yes" 1>&6
7654 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7655 cat >> confdefs.h <<EOF
7656 #define $ac_tr_func 1
7659 else
7660 echo "$ac_t""no" 1>&6
7662 ac_wfuncs=no
7664 done
7667 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7668 echo "configure:7669: checking for ISO C99 wchar_t support" >&5
7669 if test x"$has_weof" = xyes &&
7670 test x"$has_wchar_minmax" = xyes &&
7671 test x"$ac_wfuncs" = xyes; then
7672 ac_isoC99_wchar_t=yes
7673 else
7674 ac_isoC99_wchar_t=no
7676 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7678 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7679 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7680 echo "configure:7681: checking for iconv.h" >&5
7681 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7682 echo $ac_n "(cached) $ac_c" 1>&6
7683 else
7684 cat > conftest.$ac_ext <<EOF
7685 #line 7686 "configure"
7686 #include "confdefs.h"
7687 #include <iconv.h>
7689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7690 { (eval echo configure:7691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7692 if test -z "$ac_err"; then
7693 rm -rf conftest*
7694 eval "ac_cv_header_$ac_safe=yes"
7695 else
7696 echo "$ac_err" >&5
7697 echo "configure: failed program was:" >&5
7698 cat conftest.$ac_ext >&5
7699 rm -rf conftest*
7700 eval "ac_cv_header_$ac_safe=no"
7702 rm -f conftest*
7704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7705 echo "$ac_t""yes" 1>&6
7706 ac_has_iconv_h=yes
7707 else
7708 echo "$ac_t""no" 1>&6
7709 ac_has_iconv_h=no
7712 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7713 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7714 echo "configure:7715: checking for langinfo.h" >&5
7715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7716 echo $ac_n "(cached) $ac_c" 1>&6
7717 else
7718 cat > conftest.$ac_ext <<EOF
7719 #line 7720 "configure"
7720 #include "confdefs.h"
7721 #include <langinfo.h>
7723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7724 { (eval echo configure:7725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7726 if test -z "$ac_err"; then
7727 rm -rf conftest*
7728 eval "ac_cv_header_$ac_safe=yes"
7729 else
7730 echo "$ac_err" >&5
7731 echo "configure: failed program was:" >&5
7732 cat conftest.$ac_ext >&5
7733 rm -rf conftest*
7734 eval "ac_cv_header_$ac_safe=no"
7736 rm -f conftest*
7738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7739 echo "$ac_t""yes" 1>&6
7740 ac_has_langinfo_h=yes
7741 else
7742 echo "$ac_t""no" 1>&6
7743 ac_has_langinfo_h=no
7747 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7748 echo "configure:7749: checking for iconv in -liconv" >&5
7749 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7751 echo $ac_n "(cached) $ac_c" 1>&6
7752 else
7753 ac_save_LIBS="$LIBS"
7754 LIBS="-liconv $LIBS"
7755 cat > conftest.$ac_ext <<EOF
7756 #line 7757 "configure"
7757 #include "confdefs.h"
7758 /* Override any gcc2 internal prototype to avoid an error. */
7759 /* We use char because int might match the return type of a gcc2
7760 builtin and then its argument prototype would still apply. */
7761 char iconv();
7763 int main() {
7764 iconv()
7765 ; return 0; }
7767 if { (eval echo configure:7768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7768 rm -rf conftest*
7769 eval "ac_cv_lib_$ac_lib_var=yes"
7770 else
7771 echo "configure: failed program was:" >&5
7772 cat conftest.$ac_ext >&5
7773 rm -rf conftest*
7774 eval "ac_cv_lib_$ac_lib_var=no"
7776 rm -f conftest*
7777 LIBS="$ac_save_LIBS"
7780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7781 echo "$ac_t""yes" 1>&6
7782 libiconv="-liconv"
7783 else
7784 echo "$ac_t""no" 1>&6
7787 ac_save_LIBS="$LIBS"
7788 LIBS="$LIBS $libiconv"
7790 for ac_func in iconv_open iconv_close iconv nl_langinfo
7792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7793 echo "configure:7794: checking for $ac_func" >&5
7794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7795 echo $ac_n "(cached) $ac_c" 1>&6
7796 else
7797 cat > conftest.$ac_ext <<EOF
7798 #line 7799 "configure"
7799 #include "confdefs.h"
7800 /* System header to define __stub macros and hopefully few prototypes,
7801 which can conflict with char $ac_func(); below. */
7802 #include <assert.h>
7803 /* Override any gcc2 internal prototype to avoid an error. */
7804 /* We use char because int might match the return type of a gcc2
7805 builtin and then its argument prototype would still apply. */
7806 char $ac_func();
7808 int main() {
7810 /* The GNU C library defines this for functions which it implements
7811 to always fail with ENOSYS. Some functions are actually named
7812 something starting with __ and the normal name is an alias. */
7813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7814 choke me
7815 #else
7816 $ac_func();
7817 #endif
7819 ; return 0; }
7821 if { (eval echo configure:7822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7822 rm -rf conftest*
7823 eval "ac_cv_func_$ac_func=yes"
7824 else
7825 echo "configure: failed program was:" >&5
7826 cat conftest.$ac_ext >&5
7827 rm -rf conftest*
7828 eval "ac_cv_func_$ac_func=no"
7830 rm -f conftest*
7833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7834 echo "$ac_t""yes" 1>&6
7835 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7836 cat >> confdefs.h <<EOF
7837 #define $ac_tr_func 1
7840 ac_XPG2funcs=yes
7841 else
7842 echo "$ac_t""no" 1>&6
7843 ac_XPG2funcs=no
7845 done
7848 LIBS="$ac_save_LIBS"
7850 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7851 echo "configure:7852: checking for XPG2 wchar_t support" >&5
7852 if test x"$ac_has_iconv_h" = xyes &&
7853 test x"$ac_has_langinfo_h" = xyes &&
7854 test x"$ac_XPG2funcs" = xyes; then
7855 ac_XPG2_wchar_t=yes
7856 else
7857 ac_XPG2_wchar_t=no
7859 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7861 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7862 echo "configure:7863: checking for enabled wchar_t specializations" >&5
7863 if test x"$ac_isoC99_wchar_t" = xyes &&
7864 test x"$ac_XPG2_wchar_t" = xyes; then
7865 cat >> confdefs.h <<\EOF
7866 #define _GLIBCPP_USE_WCHAR_T 1
7869 echo "$ac_t"""yes"" 1>&6
7870 else
7871 echo "$ac_t"""no"" 1>&6
7873 else
7874 echo "configure: warning: wchar_t support disabled." 1>&2
7877 os_include_dir="config/os/mingw32"
7879 *-windiss*)
7880 os_include_dir="config/os/windiss"
7882 *-qnx6.[12]*)
7883 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7886 # If we're not using GNU ld, then there's no point in even trying these
7887 # tests. Check for that first. We should have already tested for gld
7888 # by now (in libtool), but require it now just to be safe...
7889 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7890 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7893 # The name set by libtool depends on the version of libtool. Shame on us
7894 # for depending on an impl detail, but c'est la vie. Older versions used
7895 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7896 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7897 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7898 # set (hence we're using an older libtool), then set it.
7899 if test x${with_gnu_ld+set} != xset; then
7900 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7901 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7902 with_gnu_ld=no
7903 else
7904 with_gnu_ld=$ac_cv_prog_gnu_ld
7908 # Start by getting the version number. I think the libtool test already
7909 # does some of this, but throws away the result.
7911 ldver=`$LD --version 2>/dev/null | head -1 | \
7912 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7914 glibcpp_gnu_ld_version=`echo $ldver | \
7915 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7917 # Set --gc-sections.
7918 if test "$with_gnu_ld" = "notbroken"; then
7919 # GNU ld it is! Joy and bunny rabbits!
7921 # All these tests are for C++; save the language and the compiler flags.
7922 # Need to do this so that g++ won't try to link in libstdc++
7923 ac_test_CFLAGS="${CFLAGS+set}"
7924 ac_save_CFLAGS="$CFLAGS"
7925 CFLAGS='-x c++ -Wl,--gc-sections'
7927 # Check for -Wl,--gc-sections
7928 # XXX This test is broken at the moment, as symbols required for
7929 # linking are now in libsupc++ (not built yet.....). In addition,
7930 # this test has cored on solaris in the past. In addition,
7931 # --gc-sections doesn't really work at the moment (keeps on discarding
7932 # used sections, first .eh_frame and now some of the glibc sections for
7933 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7934 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7935 echo "configure:7936: checking for ld that supports -Wl,--gc-sections" >&5
7936 if test "$cross_compiling" = yes; then
7937 ac_sectionLDflags=yes
7938 else
7939 cat > conftest.$ac_ext <<EOF
7940 #line 7941 "configure"
7941 #include "confdefs.h"
7943 int main(void)
7945 try { throw 1; }
7946 catch (...) { };
7947 return 0;
7951 if { (eval echo configure:7952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7952 then
7953 ac_sectionLDflags=yes
7954 else
7955 echo "configure: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7957 rm -fr conftest*
7958 ac_sectionLDflags=no
7960 rm -fr conftest*
7963 if test "$ac_test_CFLAGS" = set; then
7964 CFLAGS="$ac_save_CFLAGS"
7965 else
7966 # this is the suspicious part
7967 CFLAGS=''
7969 if test "$ac_sectionLDflags" = "yes"; then
7970 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7972 echo "$ac_t""$ac_sectionLDflags" 1>&6
7975 # Set linker optimization flags.
7976 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7977 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7984 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7985 echo "configure:7986: checking for main in -lm" >&5
7986 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7988 echo $ac_n "(cached) $ac_c" 1>&6
7989 else
7990 ac_save_LIBS="$LIBS"
7991 LIBS="-lm $LIBS"
7992 cat > conftest.$ac_ext <<EOF
7993 #line 7994 "configure"
7994 #include "confdefs.h"
7996 int main() {
7997 main()
7998 ; return 0; }
8000 if { (eval echo configure:8001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8001 rm -rf conftest*
8002 eval "ac_cv_lib_$ac_lib_var=yes"
8003 else
8004 echo "configure: failed program was:" >&5
8005 cat conftest.$ac_ext >&5
8006 rm -rf conftest*
8007 eval "ac_cv_lib_$ac_lib_var=no"
8009 rm -f conftest*
8010 LIBS="$ac_save_LIBS"
8013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8014 echo "$ac_t""yes" 1>&6
8015 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8016 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8017 cat >> confdefs.h <<EOF
8018 #define $ac_tr_lib 1
8021 LIBS="-lm $LIBS"
8023 else
8024 echo "$ac_t""no" 1>&6
8027 for ac_func in nan copysignf
8029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8030 echo "configure:8031: checking for $ac_func" >&5
8031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8032 echo $ac_n "(cached) $ac_c" 1>&6
8033 else
8034 cat > conftest.$ac_ext <<EOF
8035 #line 8036 "configure"
8036 #include "confdefs.h"
8037 /* System header to define __stub macros and hopefully few prototypes,
8038 which can conflict with char $ac_func(); below. */
8039 #include <assert.h>
8040 /* Override any gcc2 internal prototype to avoid an error. */
8041 /* We use char because int might match the return type of a gcc2
8042 builtin and then its argument prototype would still apply. */
8043 char $ac_func();
8045 int main() {
8047 /* The GNU C library defines this for functions which it implements
8048 to always fail with ENOSYS. Some functions are actually named
8049 something starting with __ and the normal name is an alias. */
8050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8051 choke me
8052 #else
8053 $ac_func();
8054 #endif
8056 ; return 0; }
8058 if { (eval echo configure:8059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8059 rm -rf conftest*
8060 eval "ac_cv_func_$ac_func=yes"
8061 else
8062 echo "configure: failed program was:" >&5
8063 cat conftest.$ac_ext >&5
8064 rm -rf conftest*
8065 eval "ac_cv_func_$ac_func=no"
8067 rm -f conftest*
8070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8071 echo "$ac_t""yes" 1>&6
8072 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8073 cat >> confdefs.h <<EOF
8074 #define $ac_tr_func 1
8077 else
8078 echo "$ac_t""no" 1>&6
8079 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8081 done
8084 for ac_func in __signbit
8086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8087 echo "configure:8088: checking for $ac_func" >&5
8088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8089 echo $ac_n "(cached) $ac_c" 1>&6
8090 else
8091 cat > conftest.$ac_ext <<EOF
8092 #line 8093 "configure"
8093 #include "confdefs.h"
8094 /* System header to define __stub macros and hopefully few prototypes,
8095 which can conflict with char $ac_func(); below. */
8096 #include <assert.h>
8097 /* Override any gcc2 internal prototype to avoid an error. */
8098 /* We use char because int might match the return type of a gcc2
8099 builtin and then its argument prototype would still apply. */
8100 char $ac_func();
8102 int main() {
8104 /* The GNU C library defines this for functions which it implements
8105 to always fail with ENOSYS. Some functions are actually named
8106 something starting with __ and the normal name is an alias. */
8107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8108 choke me
8109 #else
8110 $ac_func();
8111 #endif
8113 ; return 0; }
8115 if { (eval echo configure:8116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8116 rm -rf conftest*
8117 eval "ac_cv_func_$ac_func=yes"
8118 else
8119 echo "configure: failed program was:" >&5
8120 cat conftest.$ac_ext >&5
8121 rm -rf conftest*
8122 eval "ac_cv_func_$ac_func=no"
8124 rm -f conftest*
8127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8128 echo "$ac_t""yes" 1>&6
8129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8130 cat >> confdefs.h <<EOF
8131 #define $ac_tr_func 1
8134 else
8135 echo "$ac_t""no" 1>&6
8136 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8138 done
8140 for ac_func in __signbitf
8142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8143 echo "configure:8144: checking for $ac_func" >&5
8144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8145 echo $ac_n "(cached) $ac_c" 1>&6
8146 else
8147 cat > conftest.$ac_ext <<EOF
8148 #line 8149 "configure"
8149 #include "confdefs.h"
8150 /* System header to define __stub macros and hopefully few prototypes,
8151 which can conflict with char $ac_func(); below. */
8152 #include <assert.h>
8153 /* Override any gcc2 internal prototype to avoid an error. */
8154 /* We use char because int might match the return type of a gcc2
8155 builtin and then its argument prototype would still apply. */
8156 char $ac_func();
8158 int main() {
8160 /* The GNU C library defines this for functions which it implements
8161 to always fail with ENOSYS. Some functions are actually named
8162 something starting with __ and the normal name is an alias. */
8163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8164 choke me
8165 #else
8166 $ac_func();
8167 #endif
8169 ; return 0; }
8171 if { (eval echo configure:8172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8172 rm -rf conftest*
8173 eval "ac_cv_func_$ac_func=yes"
8174 else
8175 echo "configure: failed program was:" >&5
8176 cat conftest.$ac_ext >&5
8177 rm -rf conftest*
8178 eval "ac_cv_func_$ac_func=no"
8180 rm -f conftest*
8183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8184 echo "$ac_t""yes" 1>&6
8185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8186 cat >> confdefs.h <<EOF
8187 #define $ac_tr_func 1
8190 else
8191 echo "$ac_t""no" 1>&6
8192 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8194 done
8197 if test x$ac_cv_func_copysignl = x"yes"; then
8198 for ac_func in __signbitl
8200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8201 echo "configure:8202: checking for $ac_func" >&5
8202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8203 echo $ac_n "(cached) $ac_c" 1>&6
8204 else
8205 cat > conftest.$ac_ext <<EOF
8206 #line 8207 "configure"
8207 #include "confdefs.h"
8208 /* System header to define __stub macros and hopefully few prototypes,
8209 which can conflict with char $ac_func(); below. */
8210 #include <assert.h>
8211 /* Override any gcc2 internal prototype to avoid an error. */
8212 /* We use char because int might match the return type of a gcc2
8213 builtin and then its argument prototype would still apply. */
8214 char $ac_func();
8216 int main() {
8218 /* The GNU C library defines this for functions which it implements
8219 to always fail with ENOSYS. Some functions are actually named
8220 something starting with __ and the normal name is an alias. */
8221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8222 choke me
8223 #else
8224 $ac_func();
8225 #endif
8227 ; return 0; }
8229 if { (eval echo configure:8230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8230 rm -rf conftest*
8231 eval "ac_cv_func_$ac_func=yes"
8232 else
8233 echo "configure: failed program was:" >&5
8234 cat conftest.$ac_ext >&5
8235 rm -rf conftest*
8236 eval "ac_cv_func_$ac_func=no"
8238 rm -f conftest*
8241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8242 echo "$ac_t""yes" 1>&6
8243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8244 cat >> confdefs.h <<EOF
8245 #define $ac_tr_func 1
8248 else
8249 echo "$ac_t""no" 1>&6
8250 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8252 done
8260 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8261 echo "configure:8262: checking for mbstate_t" >&5
8262 cat > conftest.$ac_ext <<EOF
8263 #line 8264 "configure"
8264 #include "confdefs.h"
8265 #include <wchar.h>
8266 int main() {
8267 mbstate_t teststate;
8268 ; return 0; }
8270 if { (eval echo configure:8271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8271 rm -rf conftest*
8272 have_mbstate_t=yes
8273 else
8274 echo "configure: failed program was:" >&5
8275 cat conftest.$ac_ext >&5
8276 rm -rf conftest*
8277 have_mbstate_t=no
8279 rm -f conftest*
8280 echo "$ac_t""$have_mbstate_t" 1>&6
8281 if test x"$have_mbstate_t" = xyes; then
8282 cat >> confdefs.h <<\EOF
8283 #define HAVE_MBSTATE_T 1
8288 for ac_hdr in wchar.h
8290 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8291 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8292 echo "configure:8293: checking for $ac_hdr" >&5
8293 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8294 echo $ac_n "(cached) $ac_c" 1>&6
8295 else
8296 cat > conftest.$ac_ext <<EOF
8297 #line 8298 "configure"
8298 #include "confdefs.h"
8299 #include <$ac_hdr>
8301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8302 { (eval echo configure:8303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8304 if test -z "$ac_err"; then
8305 rm -rf conftest*
8306 eval "ac_cv_header_$ac_safe=yes"
8307 else
8308 echo "$ac_err" >&5
8309 echo "configure: failed program was:" >&5
8310 cat conftest.$ac_ext >&5
8311 rm -rf conftest*
8312 eval "ac_cv_header_$ac_safe=no"
8314 rm -f conftest*
8316 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8317 echo "$ac_t""yes" 1>&6
8318 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8319 cat >> confdefs.h <<EOF
8320 #define $ac_tr_hdr 1
8322 ac_has_wchar_h=yes
8323 else
8324 echo "$ac_t""no" 1>&6
8325 ac_has_wchar_h=no
8327 done
8329 for ac_hdr in wctype.h
8331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8333 echo "configure:8334: checking for $ac_hdr" >&5
8334 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8335 echo $ac_n "(cached) $ac_c" 1>&6
8336 else
8337 cat > conftest.$ac_ext <<EOF
8338 #line 8339 "configure"
8339 #include "confdefs.h"
8340 #include <$ac_hdr>
8342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8343 { (eval echo configure:8344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8345 if test -z "$ac_err"; then
8346 rm -rf conftest*
8347 eval "ac_cv_header_$ac_safe=yes"
8348 else
8349 echo "$ac_err" >&5
8350 echo "configure: failed program was:" >&5
8351 cat conftest.$ac_ext >&5
8352 rm -rf conftest*
8353 eval "ac_cv_header_$ac_safe=no"
8355 rm -f conftest*
8357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8358 echo "$ac_t""yes" 1>&6
8359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8360 cat >> confdefs.h <<EOF
8361 #define $ac_tr_hdr 1
8363 ac_has_wctype_h=yes
8364 else
8365 echo "$ac_t""no" 1>&6
8366 ac_has_wctype_h=no
8368 done
8371 if test x"$ac_has_wchar_h" = xyes &&
8372 test x"$ac_has_wctype_h" = xyes &&
8373 test x"$enable_c_mbchar" != xno; then
8375 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8376 echo "configure:8377: checking for WCHAR_MIN and WCHAR_MAX" >&5
8377 cat > conftest.$ac_ext <<EOF
8378 #line 8379 "configure"
8379 #include "confdefs.h"
8380 #include <wchar.h>
8381 int main() {
8382 int i = WCHAR_MIN; int j = WCHAR_MAX;
8383 ; return 0; }
8385 if { (eval echo configure:8386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8386 rm -rf conftest*
8387 has_wchar_minmax=yes
8388 else
8389 echo "configure: failed program was:" >&5
8390 cat conftest.$ac_ext >&5
8391 rm -rf conftest*
8392 has_wchar_minmax=no
8394 rm -f conftest*
8395 echo "$ac_t""$has_wchar_minmax" 1>&6
8397 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8398 echo "configure:8399: checking for WEOF" >&5
8399 cat > conftest.$ac_ext <<EOF
8400 #line 8401 "configure"
8401 #include "confdefs.h"
8403 #include <wchar.h>
8404 #include <stddef.h>
8405 int main() {
8406 wint_t i = WEOF;
8407 ; return 0; }
8409 if { (eval echo configure:8410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8410 rm -rf conftest*
8411 has_weof=yes
8412 else
8413 echo "configure: failed program was:" >&5
8414 cat conftest.$ac_ext >&5
8415 rm -rf conftest*
8416 has_weof=no
8418 rm -f conftest*
8419 echo "$ac_t""$has_weof" 1>&6
8421 ac_wfuncs=yes
8422 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8425 echo "configure:8426: checking for $ac_func" >&5
8426 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8427 echo $ac_n "(cached) $ac_c" 1>&6
8428 else
8429 cat > conftest.$ac_ext <<EOF
8430 #line 8431 "configure"
8431 #include "confdefs.h"
8432 /* System header to define __stub macros and hopefully few prototypes,
8433 which can conflict with char $ac_func(); below. */
8434 #include <assert.h>
8435 /* Override any gcc2 internal prototype to avoid an error. */
8436 /* We use char because int might match the return type of a gcc2
8437 builtin and then its argument prototype would still apply. */
8438 char $ac_func();
8440 int main() {
8442 /* The GNU C library defines this for functions which it implements
8443 to always fail with ENOSYS. Some functions are actually named
8444 something starting with __ and the normal name is an alias. */
8445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8446 choke me
8447 #else
8448 $ac_func();
8449 #endif
8451 ; return 0; }
8453 if { (eval echo configure:8454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8454 rm -rf conftest*
8455 eval "ac_cv_func_$ac_func=yes"
8456 else
8457 echo "configure: failed program was:" >&5
8458 cat conftest.$ac_ext >&5
8459 rm -rf conftest*
8460 eval "ac_cv_func_$ac_func=no"
8462 rm -f conftest*
8465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8466 echo "$ac_t""yes" 1>&6
8467 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8468 cat >> confdefs.h <<EOF
8469 #define $ac_tr_func 1
8472 else
8473 echo "$ac_t""no" 1>&6
8475 ac_wfuncs=no
8477 done
8480 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8481 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8482 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8483 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8484 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8485 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8488 echo "configure:8489: checking for $ac_func" >&5
8489 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8490 echo $ac_n "(cached) $ac_c" 1>&6
8491 else
8492 cat > conftest.$ac_ext <<EOF
8493 #line 8494 "configure"
8494 #include "confdefs.h"
8495 /* System header to define __stub macros and hopefully few prototypes,
8496 which can conflict with char $ac_func(); below. */
8497 #include <assert.h>
8498 /* Override any gcc2 internal prototype to avoid an error. */
8499 /* We use char because int might match the return type of a gcc2
8500 builtin and then its argument prototype would still apply. */
8501 char $ac_func();
8503 int main() {
8505 /* The GNU C library defines this for functions which it implements
8506 to always fail with ENOSYS. Some functions are actually named
8507 something starting with __ and the normal name is an alias. */
8508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8509 choke me
8510 #else
8511 $ac_func();
8512 #endif
8514 ; return 0; }
8516 if { (eval echo configure:8517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8517 rm -rf conftest*
8518 eval "ac_cv_func_$ac_func=yes"
8519 else
8520 echo "configure: failed program was:" >&5
8521 cat conftest.$ac_ext >&5
8522 rm -rf conftest*
8523 eval "ac_cv_func_$ac_func=no"
8525 rm -f conftest*
8528 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8529 echo "$ac_t""yes" 1>&6
8530 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8531 cat >> confdefs.h <<EOF
8532 #define $ac_tr_func 1
8535 else
8536 echo "$ac_t""no" 1>&6
8538 ac_wfuncs=no
8540 done
8543 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8544 echo "configure:8545: checking for ISO C99 wchar_t support" >&5
8545 if test x"$has_weof" = xyes &&
8546 test x"$has_wchar_minmax" = xyes &&
8547 test x"$ac_wfuncs" = xyes; then
8548 ac_isoC99_wchar_t=yes
8549 else
8550 ac_isoC99_wchar_t=no
8552 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8554 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8555 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8556 echo "configure:8557: checking for iconv.h" >&5
8557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8558 echo $ac_n "(cached) $ac_c" 1>&6
8559 else
8560 cat > conftest.$ac_ext <<EOF
8561 #line 8562 "configure"
8562 #include "confdefs.h"
8563 #include <iconv.h>
8565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8566 { (eval echo configure:8567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8568 if test -z "$ac_err"; then
8569 rm -rf conftest*
8570 eval "ac_cv_header_$ac_safe=yes"
8571 else
8572 echo "$ac_err" >&5
8573 echo "configure: failed program was:" >&5
8574 cat conftest.$ac_ext >&5
8575 rm -rf conftest*
8576 eval "ac_cv_header_$ac_safe=no"
8578 rm -f conftest*
8580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8581 echo "$ac_t""yes" 1>&6
8582 ac_has_iconv_h=yes
8583 else
8584 echo "$ac_t""no" 1>&6
8585 ac_has_iconv_h=no
8588 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8589 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8590 echo "configure:8591: checking for langinfo.h" >&5
8591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8592 echo $ac_n "(cached) $ac_c" 1>&6
8593 else
8594 cat > conftest.$ac_ext <<EOF
8595 #line 8596 "configure"
8596 #include "confdefs.h"
8597 #include <langinfo.h>
8599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8600 { (eval echo configure:8601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8602 if test -z "$ac_err"; then
8603 rm -rf conftest*
8604 eval "ac_cv_header_$ac_safe=yes"
8605 else
8606 echo "$ac_err" >&5
8607 echo "configure: failed program was:" >&5
8608 cat conftest.$ac_ext >&5
8609 rm -rf conftest*
8610 eval "ac_cv_header_$ac_safe=no"
8612 rm -f conftest*
8614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8615 echo "$ac_t""yes" 1>&6
8616 ac_has_langinfo_h=yes
8617 else
8618 echo "$ac_t""no" 1>&6
8619 ac_has_langinfo_h=no
8623 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8624 echo "configure:8625: checking for iconv in -liconv" >&5
8625 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8627 echo $ac_n "(cached) $ac_c" 1>&6
8628 else
8629 ac_save_LIBS="$LIBS"
8630 LIBS="-liconv $LIBS"
8631 cat > conftest.$ac_ext <<EOF
8632 #line 8633 "configure"
8633 #include "confdefs.h"
8634 /* Override any gcc2 internal prototype to avoid an error. */
8635 /* We use char because int might match the return type of a gcc2
8636 builtin and then its argument prototype would still apply. */
8637 char iconv();
8639 int main() {
8640 iconv()
8641 ; return 0; }
8643 if { (eval echo configure:8644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8644 rm -rf conftest*
8645 eval "ac_cv_lib_$ac_lib_var=yes"
8646 else
8647 echo "configure: failed program was:" >&5
8648 cat conftest.$ac_ext >&5
8649 rm -rf conftest*
8650 eval "ac_cv_lib_$ac_lib_var=no"
8652 rm -f conftest*
8653 LIBS="$ac_save_LIBS"
8656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8657 echo "$ac_t""yes" 1>&6
8658 libiconv="-liconv"
8659 else
8660 echo "$ac_t""no" 1>&6
8663 ac_save_LIBS="$LIBS"
8664 LIBS="$LIBS $libiconv"
8666 for ac_func in iconv_open iconv_close iconv nl_langinfo
8668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8669 echo "configure:8670: checking for $ac_func" >&5
8670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8671 echo $ac_n "(cached) $ac_c" 1>&6
8672 else
8673 cat > conftest.$ac_ext <<EOF
8674 #line 8675 "configure"
8675 #include "confdefs.h"
8676 /* System header to define __stub macros and hopefully few prototypes,
8677 which can conflict with char $ac_func(); below. */
8678 #include <assert.h>
8679 /* Override any gcc2 internal prototype to avoid an error. */
8680 /* We use char because int might match the return type of a gcc2
8681 builtin and then its argument prototype would still apply. */
8682 char $ac_func();
8684 int main() {
8686 /* The GNU C library defines this for functions which it implements
8687 to always fail with ENOSYS. Some functions are actually named
8688 something starting with __ and the normal name is an alias. */
8689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8690 choke me
8691 #else
8692 $ac_func();
8693 #endif
8695 ; return 0; }
8697 if { (eval echo configure:8698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8698 rm -rf conftest*
8699 eval "ac_cv_func_$ac_func=yes"
8700 else
8701 echo "configure: failed program was:" >&5
8702 cat conftest.$ac_ext >&5
8703 rm -rf conftest*
8704 eval "ac_cv_func_$ac_func=no"
8706 rm -f conftest*
8709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8710 echo "$ac_t""yes" 1>&6
8711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8712 cat >> confdefs.h <<EOF
8713 #define $ac_tr_func 1
8716 ac_XPG2funcs=yes
8717 else
8718 echo "$ac_t""no" 1>&6
8719 ac_XPG2funcs=no
8721 done
8724 LIBS="$ac_save_LIBS"
8726 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8727 echo "configure:8728: checking for XPG2 wchar_t support" >&5
8728 if test x"$ac_has_iconv_h" = xyes &&
8729 test x"$ac_has_langinfo_h" = xyes &&
8730 test x"$ac_XPG2funcs" = xyes; then
8731 ac_XPG2_wchar_t=yes
8732 else
8733 ac_XPG2_wchar_t=no
8735 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8737 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8738 echo "configure:8739: checking for enabled wchar_t specializations" >&5
8739 if test x"$ac_isoC99_wchar_t" = xyes &&
8740 test x"$ac_XPG2_wchar_t" = xyes; then
8741 cat >> confdefs.h <<\EOF
8742 #define _GLIBCPP_USE_WCHAR_T 1
8745 echo "$ac_t"""yes"" 1>&6
8746 else
8747 echo "$ac_t"""no"" 1>&6
8749 else
8750 echo "configure: warning: wchar_t support disabled." 1>&2
8753 os_include_dir="config/os/qnx/qnx6.1"
8754 cat >> confdefs.h <<\EOF
8755 #define HAVE_COSF 1
8758 cat >> confdefs.h <<\EOF
8759 #define HAVE_COSL 1
8762 cat >> confdefs.h <<\EOF
8763 #define HAVE_COSHF 1
8766 cat >> confdefs.h <<\EOF
8767 #define HAVE_COSHL 1
8770 cat >> confdefs.h <<\EOF
8771 #define HAVE_LOGF 1
8774 cat >> confdefs.h <<\EOF
8775 #define HAVE_LOGL 1
8778 cat >> confdefs.h <<\EOF
8779 #define HAVE_LOG10F 1
8782 cat >> confdefs.h <<\EOF
8783 #define HAVE_LOG10L 1
8786 cat >> confdefs.h <<\EOF
8787 #define HAVE_SINF 1
8790 cat >> confdefs.h <<\EOF
8791 #define HAVE_SINL 1
8794 cat >> confdefs.h <<\EOF
8795 #define HAVE_SINHF 1
8798 cat >> confdefs.h <<\EOF
8799 #define HAVE_SINHL 1
8804 os_include_dir="config/os/newlib"
8805 cat >> confdefs.h <<\EOF
8806 #define HAVE_HYPOT 1
8810 esac
8812 case "$target_alias" in
8813 *-mingw32*)
8815 *-windiss*)
8816 cat >> confdefs.h <<\EOF
8817 #define HAVE_ACOSF 1
8820 cat >> confdefs.h <<\EOF
8821 #define HAVE_ASINF 1
8824 cat >> confdefs.h <<\EOF
8825 #define HAVE_ATAN2F 1
8828 cat >> confdefs.h <<\EOF
8829 #define HAVE_ATANF 1
8832 cat >> confdefs.h <<\EOF
8833 #define HAVE_CEILF 1
8836 cat >> confdefs.h <<\EOF
8837 #define HAVE_COPYSIGN 1
8840 cat >> confdefs.h <<\EOF
8841 #define HAVE_COPYSIGNF 1
8844 cat >> confdefs.h <<\EOF
8845 #define HAVE_COSF 1
8848 cat >> confdefs.h <<\EOF
8849 #define HAVE_COSHF 1
8852 cat >> confdefs.h <<\EOF
8853 #define HAVE_EXPF 1
8856 cat >> confdefs.h <<\EOF
8857 #define HAVE_FABSF 1
8860 cat >> confdefs.h <<\EOF
8861 #define HAVE_FLOORF 1
8864 cat >> confdefs.h <<\EOF
8865 #define HAVE_FMODF 1
8868 cat >> confdefs.h <<\EOF
8869 #define HAVE_FREXPF 1
8872 cat >> confdefs.h <<\EOF
8873 #define HAVE_LDEXPF 1
8876 cat >> confdefs.h <<\EOF
8877 #define HAVE_LOG10F 1
8880 cat >> confdefs.h <<\EOF
8881 #define HAVE_LOGF 1
8884 cat >> confdefs.h <<\EOF
8885 #define HAVE_MODFF 1
8888 cat >> confdefs.h <<\EOF
8889 #define HAVE_POWF 1
8892 cat >> confdefs.h <<\EOF
8893 #define HAVE_SINF 1
8896 cat >> confdefs.h <<\EOF
8897 #define HAVE_SINHF 1
8900 cat >> confdefs.h <<\EOF
8901 #define HAVE_SQRTF 1
8904 cat >> confdefs.h <<\EOF
8905 #define HAVE_TANF 1
8908 cat >> confdefs.h <<\EOF
8909 #define HAVE_TANHF 1
8914 # GLIBCPP_CHECK_STDLIB_SUPPORT
8915 cat >> confdefs.h <<\EOF
8916 #define HAVE_STRTOF 1
8919 cat >> confdefs.h <<\EOF
8920 #define HAVE_STRTOLD 1
8923 # AC_FUNC_MMAP
8924 cat >> confdefs.h <<\EOF
8925 #define HAVE_MMAP 1
8929 cat >> confdefs.h <<\EOF
8930 #define HAVE_ACOSF 1
8933 cat >> confdefs.h <<\EOF
8934 #define HAVE_ASINF 1
8937 cat >> confdefs.h <<\EOF
8938 #define HAVE_ATAN2F 1
8941 cat >> confdefs.h <<\EOF
8942 #define HAVE_ATANF 1
8945 cat >> confdefs.h <<\EOF
8946 #define HAVE_CEILF 1
8949 cat >> confdefs.h <<\EOF
8950 #define HAVE_COPYSIGN 1
8953 cat >> confdefs.h <<\EOF
8954 #define HAVE_COPYSIGNF 1
8957 cat >> confdefs.h <<\EOF
8958 #define HAVE_COSF 1
8961 cat >> confdefs.h <<\EOF
8962 #define HAVE_COSHF 1
8965 cat >> confdefs.h <<\EOF
8966 #define HAVE_EXPF 1
8969 cat >> confdefs.h <<\EOF
8970 #define HAVE_FABSF 1
8973 cat >> confdefs.h <<\EOF
8974 #define HAVE_FINITE 1
8977 cat >> confdefs.h <<\EOF
8978 #define HAVE_FINITEF 1
8981 cat >> confdefs.h <<\EOF
8982 #define HAVE_FLOORF 1
8985 cat >> confdefs.h <<\EOF
8986 #define HAVE_FMODF 1
8989 cat >> confdefs.h <<\EOF
8990 #define HAVE_FREXPF 1
8993 cat >> confdefs.h <<\EOF
8994 #define HAVE_ISINF 1
8997 cat >> confdefs.h <<\EOF
8998 #define HAVE_ISINFF 1
9001 cat >> confdefs.h <<\EOF
9002 #define HAVE_ISNAN 1
9005 cat >> confdefs.h <<\EOF
9006 #define HAVE_ISNANF 1
9009 cat >> confdefs.h <<\EOF
9010 #define HAVE_LDEXPF 1
9013 cat >> confdefs.h <<\EOF
9014 #define HAVE_LOG10F 1
9017 cat >> confdefs.h <<\EOF
9018 #define HAVE_LOGF 1
9021 cat >> confdefs.h <<\EOF
9022 #define HAVE_MODFF 1
9025 cat >> confdefs.h <<\EOF
9026 #define HAVE_POWF 1
9029 cat >> confdefs.h <<\EOF
9030 #define HAVE_SINF 1
9033 cat >> confdefs.h <<\EOF
9034 #define HAVE_SINHF 1
9037 cat >> confdefs.h <<\EOF
9038 #define HAVE_SQRTF 1
9041 cat >> confdefs.h <<\EOF
9042 #define HAVE_TANF 1
9045 cat >> confdefs.h <<\EOF
9046 #define HAVE_TANHF 1
9050 esac
9052 # At some point, we should differentiate between architectures
9053 # like x86, which have long double versions, and alpha/powerpc/etc.,
9054 # which don't. For the time being, punt.
9055 if test x"long_double_math_on_this_cpu" = x"yes"; then
9056 cat >> confdefs.h <<\EOF
9057 #define HAVE_ACOSL 1
9060 cat >> confdefs.h <<\EOF
9061 #define HAVE_ASINL 1
9064 cat >> confdefs.h <<\EOF
9065 #define HAVE_ATAN2L 1
9068 cat >> confdefs.h <<\EOF
9069 #define HAVE_ATANL 1
9072 cat >> confdefs.h <<\EOF
9073 #define HAVE_CEILL 1
9076 cat >> confdefs.h <<\EOF
9077 #define HAVE_COPYSIGNL 1
9080 cat >> confdefs.h <<\EOF
9081 #define HAVE_COSL 1
9084 cat >> confdefs.h <<\EOF
9085 #define HAVE_COSHL 1
9088 cat >> confdefs.h <<\EOF
9089 #define HAVE_EXPL 1
9092 cat >> confdefs.h <<\EOF
9093 #define HAVE_FABSL 1
9096 cat >> confdefs.h <<\EOF
9097 #define HAVE_FINITEL 1
9100 cat >> confdefs.h <<\EOF
9101 #define HAVE_FLOORL 1
9104 cat >> confdefs.h <<\EOF
9105 #define HAVE_FMODL 1
9108 cat >> confdefs.h <<\EOF
9109 #define HAVE_FREXPL 1
9112 cat >> confdefs.h <<\EOF
9113 #define HAVE_ISINFL 1
9116 cat >> confdefs.h <<\EOF
9117 #define HAVE_ISNANL 1
9120 cat >> confdefs.h <<\EOF
9121 #define HAVE_LDEXPL 1
9124 cat >> confdefs.h <<\EOF
9125 #define HAVE_LOG10L 1
9128 cat >> confdefs.h <<\EOF
9129 #define HAVE_LOGL 1
9132 cat >> confdefs.h <<\EOF
9133 #define HAVE_MODFL 1
9136 cat >> confdefs.h <<\EOF
9137 #define HAVE_POWL 1
9140 cat >> confdefs.h <<\EOF
9141 #define HAVE_SINCOSL 1
9144 cat >> confdefs.h <<\EOF
9145 #define HAVE_SINL 1
9148 cat >> confdefs.h <<\EOF
9149 #define HAVE_SINHL 1
9152 cat >> confdefs.h <<\EOF
9153 #define HAVE_SQRTL 1
9156 cat >> confdefs.h <<\EOF
9157 #define HAVE_TANL 1
9160 cat >> confdefs.h <<\EOF
9161 #define HAVE_TANHL 1
9165 else
9167 # We are being configured natively. We can do more elaborate tests
9168 # that include AC_TRY_COMPILE now, as the linker is assumed to be
9169 # working.
9170 GLIBCPP_IS_CROSS_COMPILING=0
9171 CANADIAN=no
9173 # Check for available headers.
9174 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
9175 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
9177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9179 echo "configure:9180: checking for $ac_hdr" >&5
9180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9181 echo $ac_n "(cached) $ac_c" 1>&6
9182 else
9183 cat > conftest.$ac_ext <<EOF
9184 #line 9185 "configure"
9185 #include "confdefs.h"
9186 #include <$ac_hdr>
9188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9189 { (eval echo configure:9190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9191 if test -z "$ac_err"; then
9192 rm -rf conftest*
9193 eval "ac_cv_header_$ac_safe=yes"
9194 else
9195 echo "$ac_err" >&5
9196 echo "configure: failed program was:" >&5
9197 cat conftest.$ac_ext >&5
9198 rm -rf conftest*
9199 eval "ac_cv_header_$ac_safe=no"
9201 rm -f conftest*
9203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9204 echo "$ac_t""yes" 1>&6
9205 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9206 cat >> confdefs.h <<EOF
9207 #define $ac_tr_hdr 1
9210 else
9211 echo "$ac_t""no" 1>&6
9213 done
9217 # All these tests are for C++; save the language and the compiler flags.
9218 # The CXXFLAGS thing is suspicious, but based on similar bits previously
9219 # found in GLIBCPP_CONFIGURE.
9221 ac_ext=C
9222 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9223 ac_cpp='$CXXCPP $CPPFLAGS'
9224 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9225 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9226 cross_compiling=$ac_cv_prog_cxx_cross
9228 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9229 ac_save_CXXFLAGS="$CXXFLAGS"
9231 # Check for maintainer-mode bits.
9232 if test x"$USE_MAINTAINER_MODE" = xno; then
9233 WERROR=''
9234 else
9235 WERROR='-Werror'
9238 # Check for -ffunction-sections -fdata-sections
9239 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
9240 echo "configure:9241: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
9241 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
9242 cat > conftest.$ac_ext <<EOF
9243 #line 9244 "configure"
9244 #include "confdefs.h"
9246 int main() {
9247 int foo;
9249 ; return 0; }
9251 if { (eval echo configure:9252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9252 rm -rf conftest*
9253 ac_fdsections=yes
9254 else
9255 echo "configure: failed program was:" >&5
9256 cat conftest.$ac_ext >&5
9257 rm -rf conftest*
9258 ac_fdsections=no
9260 rm -f conftest*
9261 if test "$ac_test_CXXFLAGS" = set; then
9262 CXXFLAGS="$ac_save_CXXFLAGS"
9263 else
9264 # this is the suspicious part
9265 CXXFLAGS=''
9267 if test x"$ac_fdsections" = x"yes" &&
9268 test x"$enable_debug" = x"no"; then
9269 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9271 echo "$ac_t""$ac_fdsections" 1>&6
9273 ac_ext=c
9274 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9275 ac_cpp='$CPP $CPPFLAGS'
9276 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9277 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9278 cross_compiling=$ac_cv_prog_cc_cross
9284 # If we're not using GNU ld, then there's no point in even trying these
9285 # tests. Check for that first. We should have already tested for gld
9286 # by now (in libtool), but require it now just to be safe...
9287 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9288 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9291 # The name set by libtool depends on the version of libtool. Shame on us
9292 # for depending on an impl detail, but c'est la vie. Older versions used
9293 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9294 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9295 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9296 # set (hence we're using an older libtool), then set it.
9297 if test x${with_gnu_ld+set} != xset; then
9298 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9299 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9300 with_gnu_ld=no
9301 else
9302 with_gnu_ld=$ac_cv_prog_gnu_ld
9306 # Start by getting the version number. I think the libtool test already
9307 # does some of this, but throws away the result.
9309 ldver=`$LD --version 2>/dev/null | head -1 | \
9310 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9312 glibcpp_gnu_ld_version=`echo $ldver | \
9313 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9315 # Set --gc-sections.
9316 if test "$with_gnu_ld" = "notbroken"; then
9317 # GNU ld it is! Joy and bunny rabbits!
9319 # All these tests are for C++; save the language and the compiler flags.
9320 # Need to do this so that g++ won't try to link in libstdc++
9321 ac_test_CFLAGS="${CFLAGS+set}"
9322 ac_save_CFLAGS="$CFLAGS"
9323 CFLAGS='-x c++ -Wl,--gc-sections'
9325 # Check for -Wl,--gc-sections
9326 # XXX This test is broken at the moment, as symbols required for
9327 # linking are now in libsupc++ (not built yet.....). In addition,
9328 # this test has cored on solaris in the past. In addition,
9329 # --gc-sections doesn't really work at the moment (keeps on discarding
9330 # used sections, first .eh_frame and now some of the glibc sections for
9331 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9332 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9333 echo "configure:9334: checking for ld that supports -Wl,--gc-sections" >&5
9334 if test "$cross_compiling" = yes; then
9335 ac_sectionLDflags=yes
9336 else
9337 cat > conftest.$ac_ext <<EOF
9338 #line 9339 "configure"
9339 #include "confdefs.h"
9341 int main(void)
9343 try { throw 1; }
9344 catch (...) { };
9345 return 0;
9349 if { (eval echo configure:9350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9350 then
9351 ac_sectionLDflags=yes
9352 else
9353 echo "configure: failed program was:" >&5
9354 cat conftest.$ac_ext >&5
9355 rm -fr conftest*
9356 ac_sectionLDflags=no
9358 rm -fr conftest*
9361 if test "$ac_test_CFLAGS" = set; then
9362 CFLAGS="$ac_save_CFLAGS"
9363 else
9364 # this is the suspicious part
9365 CFLAGS=''
9367 if test "$ac_sectionLDflags" = "yes"; then
9368 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9370 echo "$ac_t""$ac_sectionLDflags" 1>&6
9373 # Set linker optimization flags.
9374 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9375 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9383 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
9384 echo "configure:9385: checking for __builtin_abs declaration" >&5
9385 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
9386 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
9387 echo $ac_n "(cached) $ac_c" 1>&6
9388 else
9391 ac_ext=C
9392 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9393 ac_cpp='$CXXCPP $CPPFLAGS'
9394 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9395 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9396 cross_compiling=$ac_cv_prog_cxx_cross
9398 cat > conftest.$ac_ext <<EOF
9399 #line 9400 "configure"
9400 #include "confdefs.h"
9401 #include <math.h>
9402 int main() {
9403 __builtin_abs(0);
9404 ; return 0; }
9406 if { (eval echo configure:9407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9407 rm -rf conftest*
9408 glibcpp_cv_func___builtin_abs_use=yes
9409 else
9410 echo "configure: failed program was:" >&5
9411 cat conftest.$ac_ext >&5
9412 rm -rf conftest*
9413 glibcpp_cv_func___builtin_abs_use=no
9415 rm -f conftest*
9416 ac_ext=c
9417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9418 ac_cpp='$CPP $CPPFLAGS'
9419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9421 cross_compiling=$ac_cv_prog_cc_cross
9427 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
9428 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
9429 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
9430 echo "configure:9431: checking for __builtin_abs linkage" >&5
9431 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
9432 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
9433 echo $ac_n "(cached) $ac_c" 1>&6
9434 else
9436 cat > conftest.$ac_ext <<EOF
9437 #line 9438 "configure"
9438 #include "confdefs.h"
9439 #include <math.h>
9440 int main() {
9441 __builtin_abs(0);
9442 ; return 0; }
9444 if { (eval echo configure:9445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9445 rm -rf conftest*
9446 glibcpp_cv_func___builtin_abs_link=yes
9447 else
9448 echo "configure: failed program was:" >&5
9449 cat conftest.$ac_ext >&5
9450 rm -rf conftest*
9451 glibcpp_cv_func___builtin_abs_link=no
9453 rm -f conftest*
9458 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
9459 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
9460 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9461 cat >> confdefs.h <<EOF
9462 #define ${ac_tr_func} 1
9469 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
9470 echo "configure:9471: checking for __builtin_fabsf declaration" >&5
9471 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
9472 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
9473 echo $ac_n "(cached) $ac_c" 1>&6
9474 else
9477 ac_ext=C
9478 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9479 ac_cpp='$CXXCPP $CPPFLAGS'
9480 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9481 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9482 cross_compiling=$ac_cv_prog_cxx_cross
9484 cat > conftest.$ac_ext <<EOF
9485 #line 9486 "configure"
9486 #include "confdefs.h"
9487 #include <math.h>
9488 int main() {
9489 __builtin_fabsf(0);
9490 ; return 0; }
9492 if { (eval echo configure:9493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9493 rm -rf conftest*
9494 glibcpp_cv_func___builtin_fabsf_use=yes
9495 else
9496 echo "configure: failed program was:" >&5
9497 cat conftest.$ac_ext >&5
9498 rm -rf conftest*
9499 glibcpp_cv_func___builtin_fabsf_use=no
9501 rm -f conftest*
9502 ac_ext=c
9503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9504 ac_cpp='$CPP $CPPFLAGS'
9505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9507 cross_compiling=$ac_cv_prog_cc_cross
9513 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
9514 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
9515 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
9516 echo "configure:9517: checking for __builtin_fabsf linkage" >&5
9517 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
9518 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
9519 echo $ac_n "(cached) $ac_c" 1>&6
9520 else
9522 cat > conftest.$ac_ext <<EOF
9523 #line 9524 "configure"
9524 #include "confdefs.h"
9525 #include <math.h>
9526 int main() {
9527 __builtin_fabsf(0);
9528 ; return 0; }
9530 if { (eval echo configure:9531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9531 rm -rf conftest*
9532 glibcpp_cv_func___builtin_fabsf_link=yes
9533 else
9534 echo "configure: failed program was:" >&5
9535 cat conftest.$ac_ext >&5
9536 rm -rf conftest*
9537 glibcpp_cv_func___builtin_fabsf_link=no
9539 rm -f conftest*
9544 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
9545 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
9546 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9547 cat >> confdefs.h <<EOF
9548 #define ${ac_tr_func} 1
9555 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
9556 echo "configure:9557: checking for __builtin_fabs declaration" >&5
9557 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
9558 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
9559 echo $ac_n "(cached) $ac_c" 1>&6
9560 else
9563 ac_ext=C
9564 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9565 ac_cpp='$CXXCPP $CPPFLAGS'
9566 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9567 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9568 cross_compiling=$ac_cv_prog_cxx_cross
9570 cat > conftest.$ac_ext <<EOF
9571 #line 9572 "configure"
9572 #include "confdefs.h"
9573 #include <math.h>
9574 int main() {
9575 __builtin_fabs(0);
9576 ; return 0; }
9578 if { (eval echo configure:9579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9579 rm -rf conftest*
9580 glibcpp_cv_func___builtin_fabs_use=yes
9581 else
9582 echo "configure: failed program was:" >&5
9583 cat conftest.$ac_ext >&5
9584 rm -rf conftest*
9585 glibcpp_cv_func___builtin_fabs_use=no
9587 rm -f conftest*
9588 ac_ext=c
9589 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9590 ac_cpp='$CPP $CPPFLAGS'
9591 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9592 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9593 cross_compiling=$ac_cv_prog_cc_cross
9599 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
9600 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
9601 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
9602 echo "configure:9603: checking for __builtin_fabs linkage" >&5
9603 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
9604 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
9605 echo $ac_n "(cached) $ac_c" 1>&6
9606 else
9608 cat > conftest.$ac_ext <<EOF
9609 #line 9610 "configure"
9610 #include "confdefs.h"
9611 #include <math.h>
9612 int main() {
9613 __builtin_fabs(0);
9614 ; return 0; }
9616 if { (eval echo configure:9617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9617 rm -rf conftest*
9618 glibcpp_cv_func___builtin_fabs_link=yes
9619 else
9620 echo "configure: failed program was:" >&5
9621 cat conftest.$ac_ext >&5
9622 rm -rf conftest*
9623 glibcpp_cv_func___builtin_fabs_link=no
9625 rm -f conftest*
9630 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
9631 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
9632 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9633 cat >> confdefs.h <<EOF
9634 #define ${ac_tr_func} 1
9641 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
9642 echo "configure:9643: checking for __builtin_fabsl declaration" >&5
9643 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
9644 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
9645 echo $ac_n "(cached) $ac_c" 1>&6
9646 else
9649 ac_ext=C
9650 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9651 ac_cpp='$CXXCPP $CPPFLAGS'
9652 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9653 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9654 cross_compiling=$ac_cv_prog_cxx_cross
9656 cat > conftest.$ac_ext <<EOF
9657 #line 9658 "configure"
9658 #include "confdefs.h"
9659 #include <math.h>
9660 int main() {
9661 __builtin_fabsl(0);
9662 ; return 0; }
9664 if { (eval echo configure:9665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9665 rm -rf conftest*
9666 glibcpp_cv_func___builtin_fabsl_use=yes
9667 else
9668 echo "configure: failed program was:" >&5
9669 cat conftest.$ac_ext >&5
9670 rm -rf conftest*
9671 glibcpp_cv_func___builtin_fabsl_use=no
9673 rm -f conftest*
9674 ac_ext=c
9675 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9676 ac_cpp='$CPP $CPPFLAGS'
9677 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9678 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9679 cross_compiling=$ac_cv_prog_cc_cross
9685 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
9686 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
9687 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
9688 echo "configure:9689: checking for __builtin_fabsl linkage" >&5
9689 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
9690 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
9691 echo $ac_n "(cached) $ac_c" 1>&6
9692 else
9694 cat > conftest.$ac_ext <<EOF
9695 #line 9696 "configure"
9696 #include "confdefs.h"
9697 #include <math.h>
9698 int main() {
9699 __builtin_fabsl(0);
9700 ; return 0; }
9702 if { (eval echo configure:9703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9703 rm -rf conftest*
9704 glibcpp_cv_func___builtin_fabsl_link=yes
9705 else
9706 echo "configure: failed program was:" >&5
9707 cat conftest.$ac_ext >&5
9708 rm -rf conftest*
9709 glibcpp_cv_func___builtin_fabsl_link=no
9711 rm -f conftest*
9716 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
9717 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
9718 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9719 cat >> confdefs.h <<EOF
9720 #define ${ac_tr_func} 1
9727 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
9728 echo "configure:9729: checking for __builtin_labs declaration" >&5
9729 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
9730 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
9731 echo $ac_n "(cached) $ac_c" 1>&6
9732 else
9735 ac_ext=C
9736 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9737 ac_cpp='$CXXCPP $CPPFLAGS'
9738 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9739 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9740 cross_compiling=$ac_cv_prog_cxx_cross
9742 cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure"
9744 #include "confdefs.h"
9745 #include <math.h>
9746 int main() {
9747 __builtin_labs(0);
9748 ; return 0; }
9750 if { (eval echo configure:9751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9751 rm -rf conftest*
9752 glibcpp_cv_func___builtin_labs_use=yes
9753 else
9754 echo "configure: failed program was:" >&5
9755 cat conftest.$ac_ext >&5
9756 rm -rf conftest*
9757 glibcpp_cv_func___builtin_labs_use=no
9759 rm -f conftest*
9760 ac_ext=c
9761 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9762 ac_cpp='$CPP $CPPFLAGS'
9763 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9764 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9765 cross_compiling=$ac_cv_prog_cc_cross
9771 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
9772 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
9773 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
9774 echo "configure:9775: checking for __builtin_labs linkage" >&5
9775 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
9776 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
9777 echo $ac_n "(cached) $ac_c" 1>&6
9778 else
9780 cat > conftest.$ac_ext <<EOF
9781 #line 9782 "configure"
9782 #include "confdefs.h"
9783 #include <math.h>
9784 int main() {
9785 __builtin_labs(0);
9786 ; return 0; }
9788 if { (eval echo configure:9789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9789 rm -rf conftest*
9790 glibcpp_cv_func___builtin_labs_link=yes
9791 else
9792 echo "configure: failed program was:" >&5
9793 cat conftest.$ac_ext >&5
9794 rm -rf conftest*
9795 glibcpp_cv_func___builtin_labs_link=no
9797 rm -f conftest*
9802 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
9803 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
9804 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9805 cat >> confdefs.h <<EOF
9806 #define ${ac_tr_func} 1
9814 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
9815 echo "configure:9816: checking for __builtin_sqrtf declaration" >&5
9816 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
9817 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
9818 echo $ac_n "(cached) $ac_c" 1>&6
9819 else
9822 ac_ext=C
9823 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9824 ac_cpp='$CXXCPP $CPPFLAGS'
9825 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9826 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9827 cross_compiling=$ac_cv_prog_cxx_cross
9829 cat > conftest.$ac_ext <<EOF
9830 #line 9831 "configure"
9831 #include "confdefs.h"
9832 #include <math.h>
9833 int main() {
9834 __builtin_sqrtf(0);
9835 ; return 0; }
9837 if { (eval echo configure:9838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9838 rm -rf conftest*
9839 glibcpp_cv_func___builtin_sqrtf_use=yes
9840 else
9841 echo "configure: failed program was:" >&5
9842 cat conftest.$ac_ext >&5
9843 rm -rf conftest*
9844 glibcpp_cv_func___builtin_sqrtf_use=no
9846 rm -f conftest*
9847 ac_ext=c
9848 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9849 ac_cpp='$CPP $CPPFLAGS'
9850 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9851 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9852 cross_compiling=$ac_cv_prog_cc_cross
9858 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
9859 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
9860 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
9861 echo "configure:9862: checking for __builtin_sqrtf linkage" >&5
9862 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
9863 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
9864 echo $ac_n "(cached) $ac_c" 1>&6
9865 else
9867 cat > conftest.$ac_ext <<EOF
9868 #line 9869 "configure"
9869 #include "confdefs.h"
9870 #include <math.h>
9871 int main() {
9872 __builtin_sqrtf(0);
9873 ; return 0; }
9875 if { (eval echo configure:9876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9876 rm -rf conftest*
9877 glibcpp_cv_func___builtin_sqrtf_link=yes
9878 else
9879 echo "configure: failed program was:" >&5
9880 cat conftest.$ac_ext >&5
9881 rm -rf conftest*
9882 glibcpp_cv_func___builtin_sqrtf_link=no
9884 rm -f conftest*
9889 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
9890 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
9891 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9892 cat >> confdefs.h <<EOF
9893 #define ${ac_tr_func} 1
9900 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
9901 echo "configure:9902: checking for __builtin_sqrt declaration" >&5
9902 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
9903 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
9904 echo $ac_n "(cached) $ac_c" 1>&6
9905 else
9908 ac_ext=C
9909 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9910 ac_cpp='$CXXCPP $CPPFLAGS'
9911 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9912 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9913 cross_compiling=$ac_cv_prog_cxx_cross
9915 cat > conftest.$ac_ext <<EOF
9916 #line 9917 "configure"
9917 #include "confdefs.h"
9918 #include <math.h>
9919 int main() {
9920 __builtin_sqrt(0);
9921 ; return 0; }
9923 if { (eval echo configure:9924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9924 rm -rf conftest*
9925 glibcpp_cv_func___builtin_sqrt_use=yes
9926 else
9927 echo "configure: failed program was:" >&5
9928 cat conftest.$ac_ext >&5
9929 rm -rf conftest*
9930 glibcpp_cv_func___builtin_sqrt_use=no
9932 rm -f conftest*
9933 ac_ext=c
9934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9935 ac_cpp='$CPP $CPPFLAGS'
9936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9937 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9938 cross_compiling=$ac_cv_prog_cc_cross
9944 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
9945 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
9946 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
9947 echo "configure:9948: checking for __builtin_sqrt linkage" >&5
9948 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
9949 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
9950 echo $ac_n "(cached) $ac_c" 1>&6
9951 else
9953 cat > conftest.$ac_ext <<EOF
9954 #line 9955 "configure"
9955 #include "confdefs.h"
9956 #include <math.h>
9957 int main() {
9958 __builtin_sqrt(0);
9959 ; return 0; }
9961 if { (eval echo configure:9962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9962 rm -rf conftest*
9963 glibcpp_cv_func___builtin_sqrt_link=yes
9964 else
9965 echo "configure: failed program was:" >&5
9966 cat conftest.$ac_ext >&5
9967 rm -rf conftest*
9968 glibcpp_cv_func___builtin_sqrt_link=no
9970 rm -f conftest*
9975 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
9976 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
9977 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9978 cat >> confdefs.h <<EOF
9979 #define ${ac_tr_func} 1
9986 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
9987 echo "configure:9988: checking for __builtin_sqrtl declaration" >&5
9988 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
9989 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
9990 echo $ac_n "(cached) $ac_c" 1>&6
9991 else
9994 ac_ext=C
9995 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9996 ac_cpp='$CXXCPP $CPPFLAGS'
9997 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9998 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9999 cross_compiling=$ac_cv_prog_cxx_cross
10001 cat > conftest.$ac_ext <<EOF
10002 #line 10003 "configure"
10003 #include "confdefs.h"
10004 #include <math.h>
10005 int main() {
10006 __builtin_sqrtl(0);
10007 ; return 0; }
10009 if { (eval echo configure:10010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10010 rm -rf conftest*
10011 glibcpp_cv_func___builtin_sqrtl_use=yes
10012 else
10013 echo "configure: failed program was:" >&5
10014 cat conftest.$ac_ext >&5
10015 rm -rf conftest*
10016 glibcpp_cv_func___builtin_sqrtl_use=no
10018 rm -f conftest*
10019 ac_ext=c
10020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10021 ac_cpp='$CPP $CPPFLAGS'
10022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10024 cross_compiling=$ac_cv_prog_cc_cross
10030 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
10031 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
10032 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
10033 echo "configure:10034: checking for __builtin_sqrtl linkage" >&5
10034 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
10035 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
10036 echo $ac_n "(cached) $ac_c" 1>&6
10037 else
10039 cat > conftest.$ac_ext <<EOF
10040 #line 10041 "configure"
10041 #include "confdefs.h"
10042 #include <math.h>
10043 int main() {
10044 __builtin_sqrtl(0);
10045 ; return 0; }
10047 if { (eval echo configure:10048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10048 rm -rf conftest*
10049 glibcpp_cv_func___builtin_sqrtl_link=yes
10050 else
10051 echo "configure: failed program was:" >&5
10052 cat conftest.$ac_ext >&5
10053 rm -rf conftest*
10054 glibcpp_cv_func___builtin_sqrtl_link=no
10056 rm -f conftest*
10061 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
10062 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
10063 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10064 cat >> confdefs.h <<EOF
10065 #define ${ac_tr_func} 1
10073 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
10074 echo "configure:10075: checking for __builtin_sinf declaration" >&5
10075 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
10076 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
10077 echo $ac_n "(cached) $ac_c" 1>&6
10078 else
10081 ac_ext=C
10082 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10083 ac_cpp='$CXXCPP $CPPFLAGS'
10084 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10085 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10086 cross_compiling=$ac_cv_prog_cxx_cross
10088 cat > conftest.$ac_ext <<EOF
10089 #line 10090 "configure"
10090 #include "confdefs.h"
10091 #include <math.h>
10092 int main() {
10093 __builtin_sinf(0);
10094 ; return 0; }
10096 if { (eval echo configure:10097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10097 rm -rf conftest*
10098 glibcpp_cv_func___builtin_sinf_use=yes
10099 else
10100 echo "configure: failed program was:" >&5
10101 cat conftest.$ac_ext >&5
10102 rm -rf conftest*
10103 glibcpp_cv_func___builtin_sinf_use=no
10105 rm -f conftest*
10106 ac_ext=c
10107 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10108 ac_cpp='$CPP $CPPFLAGS'
10109 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10110 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10111 cross_compiling=$ac_cv_prog_cc_cross
10117 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
10118 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
10119 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
10120 echo "configure:10121: checking for __builtin_sinf linkage" >&5
10121 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
10122 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
10123 echo $ac_n "(cached) $ac_c" 1>&6
10124 else
10126 cat > conftest.$ac_ext <<EOF
10127 #line 10128 "configure"
10128 #include "confdefs.h"
10129 #include <math.h>
10130 int main() {
10131 __builtin_sinf(0);
10132 ; return 0; }
10134 if { (eval echo configure:10135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10135 rm -rf conftest*
10136 glibcpp_cv_func___builtin_sinf_link=yes
10137 else
10138 echo "configure: failed program was:" >&5
10139 cat conftest.$ac_ext >&5
10140 rm -rf conftest*
10141 glibcpp_cv_func___builtin_sinf_link=no
10143 rm -f conftest*
10148 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
10149 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
10150 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10151 cat >> confdefs.h <<EOF
10152 #define ${ac_tr_func} 1
10159 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
10160 echo "configure:10161: checking for __builtin_sin declaration" >&5
10161 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
10162 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
10163 echo $ac_n "(cached) $ac_c" 1>&6
10164 else
10167 ac_ext=C
10168 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10169 ac_cpp='$CXXCPP $CPPFLAGS'
10170 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10171 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10172 cross_compiling=$ac_cv_prog_cxx_cross
10174 cat > conftest.$ac_ext <<EOF
10175 #line 10176 "configure"
10176 #include "confdefs.h"
10177 #include <math.h>
10178 int main() {
10179 __builtin_sin(0);
10180 ; return 0; }
10182 if { (eval echo configure:10183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10183 rm -rf conftest*
10184 glibcpp_cv_func___builtin_sin_use=yes
10185 else
10186 echo "configure: failed program was:" >&5
10187 cat conftest.$ac_ext >&5
10188 rm -rf conftest*
10189 glibcpp_cv_func___builtin_sin_use=no
10191 rm -f conftest*
10192 ac_ext=c
10193 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10194 ac_cpp='$CPP $CPPFLAGS'
10195 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10196 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10197 cross_compiling=$ac_cv_prog_cc_cross
10203 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
10204 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
10205 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
10206 echo "configure:10207: checking for __builtin_sin linkage" >&5
10207 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
10208 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
10209 echo $ac_n "(cached) $ac_c" 1>&6
10210 else
10212 cat > conftest.$ac_ext <<EOF
10213 #line 10214 "configure"
10214 #include "confdefs.h"
10215 #include <math.h>
10216 int main() {
10217 __builtin_sin(0);
10218 ; return 0; }
10220 if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10221 rm -rf conftest*
10222 glibcpp_cv_func___builtin_sin_link=yes
10223 else
10224 echo "configure: failed program was:" >&5
10225 cat conftest.$ac_ext >&5
10226 rm -rf conftest*
10227 glibcpp_cv_func___builtin_sin_link=no
10229 rm -f conftest*
10234 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
10235 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
10236 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10237 cat >> confdefs.h <<EOF
10238 #define ${ac_tr_func} 1
10245 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
10246 echo "configure:10247: checking for __builtin_sinl declaration" >&5
10247 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
10248 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
10249 echo $ac_n "(cached) $ac_c" 1>&6
10250 else
10253 ac_ext=C
10254 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10255 ac_cpp='$CXXCPP $CPPFLAGS'
10256 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10257 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10258 cross_compiling=$ac_cv_prog_cxx_cross
10260 cat > conftest.$ac_ext <<EOF
10261 #line 10262 "configure"
10262 #include "confdefs.h"
10263 #include <math.h>
10264 int main() {
10265 __builtin_sinl(0);
10266 ; return 0; }
10268 if { (eval echo configure:10269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10269 rm -rf conftest*
10270 glibcpp_cv_func___builtin_sinl_use=yes
10271 else
10272 echo "configure: failed program was:" >&5
10273 cat conftest.$ac_ext >&5
10274 rm -rf conftest*
10275 glibcpp_cv_func___builtin_sinl_use=no
10277 rm -f conftest*
10278 ac_ext=c
10279 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10280 ac_cpp='$CPP $CPPFLAGS'
10281 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10282 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10283 cross_compiling=$ac_cv_prog_cc_cross
10289 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
10290 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
10291 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
10292 echo "configure:10293: checking for __builtin_sinl linkage" >&5
10293 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
10294 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
10295 echo $ac_n "(cached) $ac_c" 1>&6
10296 else
10298 cat > conftest.$ac_ext <<EOF
10299 #line 10300 "configure"
10300 #include "confdefs.h"
10301 #include <math.h>
10302 int main() {
10303 __builtin_sinl(0);
10304 ; return 0; }
10306 if { (eval echo configure:10307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10307 rm -rf conftest*
10308 glibcpp_cv_func___builtin_sinl_link=yes
10309 else
10310 echo "configure: failed program was:" >&5
10311 cat conftest.$ac_ext >&5
10312 rm -rf conftest*
10313 glibcpp_cv_func___builtin_sinl_link=no
10315 rm -f conftest*
10320 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
10321 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
10322 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10323 cat >> confdefs.h <<EOF
10324 #define ${ac_tr_func} 1
10332 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
10333 echo "configure:10334: checking for __builtin_cosf declaration" >&5
10334 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
10335 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
10336 echo $ac_n "(cached) $ac_c" 1>&6
10337 else
10340 ac_ext=C
10341 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10342 ac_cpp='$CXXCPP $CPPFLAGS'
10343 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10344 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10345 cross_compiling=$ac_cv_prog_cxx_cross
10347 cat > conftest.$ac_ext <<EOF
10348 #line 10349 "configure"
10349 #include "confdefs.h"
10350 #include <math.h>
10351 int main() {
10352 __builtin_cosf(0);
10353 ; return 0; }
10355 if { (eval echo configure:10356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10356 rm -rf conftest*
10357 glibcpp_cv_func___builtin_cosf_use=yes
10358 else
10359 echo "configure: failed program was:" >&5
10360 cat conftest.$ac_ext >&5
10361 rm -rf conftest*
10362 glibcpp_cv_func___builtin_cosf_use=no
10364 rm -f conftest*
10365 ac_ext=c
10366 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10367 ac_cpp='$CPP $CPPFLAGS'
10368 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10369 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10370 cross_compiling=$ac_cv_prog_cc_cross
10376 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
10377 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
10378 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
10379 echo "configure:10380: checking for __builtin_cosf linkage" >&5
10380 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
10381 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
10382 echo $ac_n "(cached) $ac_c" 1>&6
10383 else
10385 cat > conftest.$ac_ext <<EOF
10386 #line 10387 "configure"
10387 #include "confdefs.h"
10388 #include <math.h>
10389 int main() {
10390 __builtin_cosf(0);
10391 ; return 0; }
10393 if { (eval echo configure:10394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10394 rm -rf conftest*
10395 glibcpp_cv_func___builtin_cosf_link=yes
10396 else
10397 echo "configure: failed program was:" >&5
10398 cat conftest.$ac_ext >&5
10399 rm -rf conftest*
10400 glibcpp_cv_func___builtin_cosf_link=no
10402 rm -f conftest*
10407 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
10408 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
10409 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10410 cat >> confdefs.h <<EOF
10411 #define ${ac_tr_func} 1
10418 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
10419 echo "configure:10420: checking for __builtin_cos declaration" >&5
10420 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
10421 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
10422 echo $ac_n "(cached) $ac_c" 1>&6
10423 else
10426 ac_ext=C
10427 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10428 ac_cpp='$CXXCPP $CPPFLAGS'
10429 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10430 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10431 cross_compiling=$ac_cv_prog_cxx_cross
10433 cat > conftest.$ac_ext <<EOF
10434 #line 10435 "configure"
10435 #include "confdefs.h"
10436 #include <math.h>
10437 int main() {
10438 __builtin_cos(0);
10439 ; return 0; }
10441 if { (eval echo configure:10442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10442 rm -rf conftest*
10443 glibcpp_cv_func___builtin_cos_use=yes
10444 else
10445 echo "configure: failed program was:" >&5
10446 cat conftest.$ac_ext >&5
10447 rm -rf conftest*
10448 glibcpp_cv_func___builtin_cos_use=no
10450 rm -f conftest*
10451 ac_ext=c
10452 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10453 ac_cpp='$CPP $CPPFLAGS'
10454 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10455 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10456 cross_compiling=$ac_cv_prog_cc_cross
10462 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
10463 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
10464 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
10465 echo "configure:10466: checking for __builtin_cos linkage" >&5
10466 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
10467 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
10468 echo $ac_n "(cached) $ac_c" 1>&6
10469 else
10471 cat > conftest.$ac_ext <<EOF
10472 #line 10473 "configure"
10473 #include "confdefs.h"
10474 #include <math.h>
10475 int main() {
10476 __builtin_cos(0);
10477 ; return 0; }
10479 if { (eval echo configure:10480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10480 rm -rf conftest*
10481 glibcpp_cv_func___builtin_cos_link=yes
10482 else
10483 echo "configure: failed program was:" >&5
10484 cat conftest.$ac_ext >&5
10485 rm -rf conftest*
10486 glibcpp_cv_func___builtin_cos_link=no
10488 rm -f conftest*
10493 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
10494 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
10495 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10496 cat >> confdefs.h <<EOF
10497 #define ${ac_tr_func} 1
10504 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
10505 echo "configure:10506: checking for __builtin_cosl declaration" >&5
10506 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
10507 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
10508 echo $ac_n "(cached) $ac_c" 1>&6
10509 else
10512 ac_ext=C
10513 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10514 ac_cpp='$CXXCPP $CPPFLAGS'
10515 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10516 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10517 cross_compiling=$ac_cv_prog_cxx_cross
10519 cat > conftest.$ac_ext <<EOF
10520 #line 10521 "configure"
10521 #include "confdefs.h"
10522 #include <math.h>
10523 int main() {
10524 __builtin_cosl(0);
10525 ; return 0; }
10527 if { (eval echo configure:10528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10528 rm -rf conftest*
10529 glibcpp_cv_func___builtin_cosl_use=yes
10530 else
10531 echo "configure: failed program was:" >&5
10532 cat conftest.$ac_ext >&5
10533 rm -rf conftest*
10534 glibcpp_cv_func___builtin_cosl_use=no
10536 rm -f conftest*
10537 ac_ext=c
10538 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10539 ac_cpp='$CPP $CPPFLAGS'
10540 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10541 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10542 cross_compiling=$ac_cv_prog_cc_cross
10548 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
10549 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
10550 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
10551 echo "configure:10552: checking for __builtin_cosl linkage" >&5
10552 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
10553 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
10554 echo $ac_n "(cached) $ac_c" 1>&6
10555 else
10557 cat > conftest.$ac_ext <<EOF
10558 #line 10559 "configure"
10559 #include "confdefs.h"
10560 #include <math.h>
10561 int main() {
10562 __builtin_cosl(0);
10563 ; return 0; }
10565 if { (eval echo configure:10566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10566 rm -rf conftest*
10567 glibcpp_cv_func___builtin_cosl_link=yes
10568 else
10569 echo "configure: failed program was:" >&5
10570 cat conftest.$ac_ext >&5
10571 rm -rf conftest*
10572 glibcpp_cv_func___builtin_cosl_link=no
10574 rm -f conftest*
10579 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
10580 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
10581 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10582 cat >> confdefs.h <<EOF
10583 #define ${ac_tr_func} 1
10590 dummyvar=no
10591 if test x$dummyvar = x"yes"; then
10592 cat >> confdefs.h <<\EOF
10593 #define HAVE___BUILTIN_ABS 1
10596 cat >> confdefs.h <<\EOF
10597 #define HAVE___BUILTIN_LABS 1
10600 cat >> confdefs.h <<\EOF
10601 #define HAVE___BUILTIN_COS 1
10604 cat >> confdefs.h <<\EOF
10605 #define HAVE___BUILTIN_COSF 1
10608 cat >> confdefs.h <<\EOF
10609 #define HAVE___BUILTIN_COSL 1
10612 cat >> confdefs.h <<\EOF
10613 #define HAVE___BUILTIN_FABS 1
10616 cat >> confdefs.h <<\EOF
10617 #define HAVE___BUILTIN_FABSF 1
10620 cat >> confdefs.h <<\EOF
10621 #define HAVE___BUILTIN_FABSL 1
10624 cat >> confdefs.h <<\EOF
10625 #define HAVE___BUILTIN_SIN 1
10628 cat >> confdefs.h <<\EOF
10629 #define HAVE___BUILTIN_SINF 1
10632 cat >> confdefs.h <<\EOF
10633 #define HAVE___BUILTIN_SINL 1
10636 cat >> confdefs.h <<\EOF
10637 #define HAVE___BUILTIN_SQRT 1
10640 cat >> confdefs.h <<\EOF
10641 #define HAVE___BUILTIN_SQRTF 1
10644 cat >> confdefs.h <<\EOF
10645 #define HAVE___BUILTIN_SQRTL 1
10651 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10652 ac_save_CXXFLAGS="$CXXFLAGS"
10653 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10655 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10656 echo "configure:10657: checking for sin in -lm" >&5
10657 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10658 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10659 echo $ac_n "(cached) $ac_c" 1>&6
10660 else
10661 ac_save_LIBS="$LIBS"
10662 LIBS="-lm $LIBS"
10663 cat > conftest.$ac_ext <<EOF
10664 #line 10665 "configure"
10665 #include "confdefs.h"
10666 /* Override any gcc2 internal prototype to avoid an error. */
10667 /* We use char because int might match the return type of a gcc2
10668 builtin and then its argument prototype would still apply. */
10669 char sin();
10671 int main() {
10672 sin()
10673 ; return 0; }
10675 if { (eval echo configure:10676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10676 rm -rf conftest*
10677 eval "ac_cv_lib_$ac_lib_var=yes"
10678 else
10679 echo "configure: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10681 rm -rf conftest*
10682 eval "ac_cv_lib_$ac_lib_var=no"
10684 rm -f conftest*
10685 LIBS="$ac_save_LIBS"
10688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10689 echo "$ac_t""yes" 1>&6
10690 libm="-lm"
10691 else
10692 echo "$ac_t""no" 1>&6
10695 ac_save_LIBS="$LIBS"
10696 LIBS="$LIBS $libm"
10700 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10701 echo "configure:10702: checking for isinf declaration" >&5
10702 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10703 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10704 echo $ac_n "(cached) $ac_c" 1>&6
10705 else
10708 ac_ext=C
10709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10710 ac_cpp='$CXXCPP $CPPFLAGS'
10711 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10712 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10713 cross_compiling=$ac_cv_prog_cxx_cross
10715 cat > conftest.$ac_ext <<EOF
10716 #line 10717 "configure"
10717 #include "confdefs.h"
10718 #include <math.h>
10719 #ifdef HAVE_IEEEFP_H
10720 #include <ieeefp.h>
10721 #endif
10723 int main() {
10724 isinf(0);
10725 ; return 0; }
10727 if { (eval echo configure:10728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10728 rm -rf conftest*
10729 glibcpp_cv_func_isinf_use=yes
10730 else
10731 echo "configure: failed program was:" >&5
10732 cat conftest.$ac_ext >&5
10733 rm -rf conftest*
10734 glibcpp_cv_func_isinf_use=no
10736 rm -f conftest*
10737 ac_ext=c
10738 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10739 ac_cpp='$CPP $CPPFLAGS'
10740 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10741 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10742 cross_compiling=$ac_cv_prog_cc_cross
10748 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10750 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10751 for ac_func in isinf
10753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10754 echo "configure:10755: checking for $ac_func" >&5
10755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10756 echo $ac_n "(cached) $ac_c" 1>&6
10757 else
10758 cat > conftest.$ac_ext <<EOF
10759 #line 10760 "configure"
10760 #include "confdefs.h"
10761 /* System header to define __stub macros and hopefully few prototypes,
10762 which can conflict with char $ac_func(); below. */
10763 #include <assert.h>
10764 /* Override any gcc2 internal prototype to avoid an error. */
10765 /* We use char because int might match the return type of a gcc2
10766 builtin and then its argument prototype would still apply. */
10767 char $ac_func();
10769 int main() {
10771 /* The GNU C library defines this for functions which it implements
10772 to always fail with ENOSYS. Some functions are actually named
10773 something starting with __ and the normal name is an alias. */
10774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10775 choke me
10776 #else
10777 $ac_func();
10778 #endif
10780 ; return 0; }
10782 if { (eval echo configure:10783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10783 rm -rf conftest*
10784 eval "ac_cv_func_$ac_func=yes"
10785 else
10786 echo "configure: failed program was:" >&5
10787 cat conftest.$ac_ext >&5
10788 rm -rf conftest*
10789 eval "ac_cv_func_$ac_func=no"
10791 rm -f conftest*
10794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10795 echo "$ac_t""yes" 1>&6
10796 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10797 cat >> confdefs.h <<EOF
10798 #define $ac_tr_func 1
10801 else
10802 echo "$ac_t""no" 1>&6
10804 done
10806 else
10808 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10809 echo "configure:10810: checking for _isinf declaration" >&5
10810 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10811 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10812 echo $ac_n "(cached) $ac_c" 1>&6
10813 else
10816 ac_ext=C
10817 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10818 ac_cpp='$CXXCPP $CPPFLAGS'
10819 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10820 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10821 cross_compiling=$ac_cv_prog_cxx_cross
10823 cat > conftest.$ac_ext <<EOF
10824 #line 10825 "configure"
10825 #include "confdefs.h"
10826 #include <math.h>
10827 #ifdef HAVE_IEEEFP_H
10828 #include <ieeefp.h>
10829 #endif
10831 int main() {
10832 _isinf(0);
10833 ; return 0; }
10835 if { (eval echo configure:10836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10836 rm -rf conftest*
10837 glibcpp_cv_func__isinf_use=yes
10838 else
10839 echo "configure: failed program was:" >&5
10840 cat conftest.$ac_ext >&5
10841 rm -rf conftest*
10842 glibcpp_cv_func__isinf_use=no
10844 rm -f conftest*
10845 ac_ext=c
10846 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10847 ac_cpp='$CPP $CPPFLAGS'
10848 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10849 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10850 cross_compiling=$ac_cv_prog_cc_cross
10856 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10858 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10859 for ac_func in _isinf
10861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10862 echo "configure:10863: checking for $ac_func" >&5
10863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10864 echo $ac_n "(cached) $ac_c" 1>&6
10865 else
10866 cat > conftest.$ac_ext <<EOF
10867 #line 10868 "configure"
10868 #include "confdefs.h"
10869 /* System header to define __stub macros and hopefully few prototypes,
10870 which can conflict with char $ac_func(); below. */
10871 #include <assert.h>
10872 /* Override any gcc2 internal prototype to avoid an error. */
10873 /* We use char because int might match the return type of a gcc2
10874 builtin and then its argument prototype would still apply. */
10875 char $ac_func();
10877 int main() {
10879 /* The GNU C library defines this for functions which it implements
10880 to always fail with ENOSYS. Some functions are actually named
10881 something starting with __ and the normal name is an alias. */
10882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10883 choke me
10884 #else
10885 $ac_func();
10886 #endif
10888 ; return 0; }
10890 if { (eval echo configure:10891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10891 rm -rf conftest*
10892 eval "ac_cv_func_$ac_func=yes"
10893 else
10894 echo "configure: failed program was:" >&5
10895 cat conftest.$ac_ext >&5
10896 rm -rf conftest*
10897 eval "ac_cv_func_$ac_func=no"
10899 rm -f conftest*
10902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10903 echo "$ac_t""yes" 1>&6
10904 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10905 cat >> confdefs.h <<EOF
10906 #define $ac_tr_func 1
10909 else
10910 echo "$ac_t""no" 1>&6
10912 done
10919 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10920 echo "configure:10921: checking for isnan declaration" >&5
10921 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10922 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10923 echo $ac_n "(cached) $ac_c" 1>&6
10924 else
10927 ac_ext=C
10928 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10929 ac_cpp='$CXXCPP $CPPFLAGS'
10930 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10931 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10932 cross_compiling=$ac_cv_prog_cxx_cross
10934 cat > conftest.$ac_ext <<EOF
10935 #line 10936 "configure"
10936 #include "confdefs.h"
10937 #include <math.h>
10938 #ifdef HAVE_IEEEFP_H
10939 #include <ieeefp.h>
10940 #endif
10942 int main() {
10943 isnan(0);
10944 ; return 0; }
10946 if { (eval echo configure:10947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10947 rm -rf conftest*
10948 glibcpp_cv_func_isnan_use=yes
10949 else
10950 echo "configure: failed program was:" >&5
10951 cat conftest.$ac_ext >&5
10952 rm -rf conftest*
10953 glibcpp_cv_func_isnan_use=no
10955 rm -f conftest*
10956 ac_ext=c
10957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10958 ac_cpp='$CPP $CPPFLAGS'
10959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10960 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10961 cross_compiling=$ac_cv_prog_cc_cross
10967 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
10969 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
10970 for ac_func in isnan
10972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10973 echo "configure:10974: checking for $ac_func" >&5
10974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10975 echo $ac_n "(cached) $ac_c" 1>&6
10976 else
10977 cat > conftest.$ac_ext <<EOF
10978 #line 10979 "configure"
10979 #include "confdefs.h"
10980 /* System header to define __stub macros and hopefully few prototypes,
10981 which can conflict with char $ac_func(); below. */
10982 #include <assert.h>
10983 /* Override any gcc2 internal prototype to avoid an error. */
10984 /* We use char because int might match the return type of a gcc2
10985 builtin and then its argument prototype would still apply. */
10986 char $ac_func();
10988 int main() {
10990 /* The GNU C library defines this for functions which it implements
10991 to always fail with ENOSYS. Some functions are actually named
10992 something starting with __ and the normal name is an alias. */
10993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10994 choke me
10995 #else
10996 $ac_func();
10997 #endif
10999 ; return 0; }
11001 if { (eval echo configure:11002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11002 rm -rf conftest*
11003 eval "ac_cv_func_$ac_func=yes"
11004 else
11005 echo "configure: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11007 rm -rf conftest*
11008 eval "ac_cv_func_$ac_func=no"
11010 rm -f conftest*
11013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11014 echo "$ac_t""yes" 1>&6
11015 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11016 cat >> confdefs.h <<EOF
11017 #define $ac_tr_func 1
11020 else
11021 echo "$ac_t""no" 1>&6
11023 done
11025 else
11027 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11028 echo "configure:11029: checking for _isnan declaration" >&5
11029 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11030 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11031 echo $ac_n "(cached) $ac_c" 1>&6
11032 else
11035 ac_ext=C
11036 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11037 ac_cpp='$CXXCPP $CPPFLAGS'
11038 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11039 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11040 cross_compiling=$ac_cv_prog_cxx_cross
11042 cat > conftest.$ac_ext <<EOF
11043 #line 11044 "configure"
11044 #include "confdefs.h"
11045 #include <math.h>
11046 #ifdef HAVE_IEEEFP_H
11047 #include <ieeefp.h>
11048 #endif
11050 int main() {
11051 _isnan(0);
11052 ; return 0; }
11054 if { (eval echo configure:11055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11055 rm -rf conftest*
11056 glibcpp_cv_func__isnan_use=yes
11057 else
11058 echo "configure: failed program was:" >&5
11059 cat conftest.$ac_ext >&5
11060 rm -rf conftest*
11061 glibcpp_cv_func__isnan_use=no
11063 rm -f conftest*
11064 ac_ext=c
11065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11066 ac_cpp='$CPP $CPPFLAGS'
11067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11069 cross_compiling=$ac_cv_prog_cc_cross
11075 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11077 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11078 for ac_func in _isnan
11080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11081 echo "configure:11082: checking for $ac_func" >&5
11082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11083 echo $ac_n "(cached) $ac_c" 1>&6
11084 else
11085 cat > conftest.$ac_ext <<EOF
11086 #line 11087 "configure"
11087 #include "confdefs.h"
11088 /* System header to define __stub macros and hopefully few prototypes,
11089 which can conflict with char $ac_func(); below. */
11090 #include <assert.h>
11091 /* Override any gcc2 internal prototype to avoid an error. */
11092 /* We use char because int might match the return type of a gcc2
11093 builtin and then its argument prototype would still apply. */
11094 char $ac_func();
11096 int main() {
11098 /* The GNU C library defines this for functions which it implements
11099 to always fail with ENOSYS. Some functions are actually named
11100 something starting with __ and the normal name is an alias. */
11101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11102 choke me
11103 #else
11104 $ac_func();
11105 #endif
11107 ; return 0; }
11109 if { (eval echo configure:11110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11110 rm -rf conftest*
11111 eval "ac_cv_func_$ac_func=yes"
11112 else
11113 echo "configure: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11115 rm -rf conftest*
11116 eval "ac_cv_func_$ac_func=no"
11118 rm -f conftest*
11121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11122 echo "$ac_t""yes" 1>&6
11123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11124 cat >> confdefs.h <<EOF
11125 #define $ac_tr_func 1
11128 else
11129 echo "$ac_t""no" 1>&6
11131 done
11138 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11139 echo "configure:11140: checking for finite declaration" >&5
11140 if test x${glibcpp_cv_func_finite_use+set} != xset; then
11141 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11142 echo $ac_n "(cached) $ac_c" 1>&6
11143 else
11146 ac_ext=C
11147 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11148 ac_cpp='$CXXCPP $CPPFLAGS'
11149 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11150 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11151 cross_compiling=$ac_cv_prog_cxx_cross
11153 cat > conftest.$ac_ext <<EOF
11154 #line 11155 "configure"
11155 #include "confdefs.h"
11156 #include <math.h>
11157 #ifdef HAVE_IEEEFP_H
11158 #include <ieeefp.h>
11159 #endif
11161 int main() {
11162 finite(0);
11163 ; return 0; }
11165 if { (eval echo configure:11166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11166 rm -rf conftest*
11167 glibcpp_cv_func_finite_use=yes
11168 else
11169 echo "configure: failed program was:" >&5
11170 cat conftest.$ac_ext >&5
11171 rm -rf conftest*
11172 glibcpp_cv_func_finite_use=no
11174 rm -f conftest*
11175 ac_ext=c
11176 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11177 ac_cpp='$CPP $CPPFLAGS'
11178 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11179 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11180 cross_compiling=$ac_cv_prog_cc_cross
11186 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11188 if test x$glibcpp_cv_func_finite_use = x"yes"; then
11189 for ac_func in finite
11191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11192 echo "configure:11193: checking for $ac_func" >&5
11193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11194 echo $ac_n "(cached) $ac_c" 1>&6
11195 else
11196 cat > conftest.$ac_ext <<EOF
11197 #line 11198 "configure"
11198 #include "confdefs.h"
11199 /* System header to define __stub macros and hopefully few prototypes,
11200 which can conflict with char $ac_func(); below. */
11201 #include <assert.h>
11202 /* Override any gcc2 internal prototype to avoid an error. */
11203 /* We use char because int might match the return type of a gcc2
11204 builtin and then its argument prototype would still apply. */
11205 char $ac_func();
11207 int main() {
11209 /* The GNU C library defines this for functions which it implements
11210 to always fail with ENOSYS. Some functions are actually named
11211 something starting with __ and the normal name is an alias. */
11212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11213 choke me
11214 #else
11215 $ac_func();
11216 #endif
11218 ; return 0; }
11220 if { (eval echo configure:11221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11221 rm -rf conftest*
11222 eval "ac_cv_func_$ac_func=yes"
11223 else
11224 echo "configure: failed program was:" >&5
11225 cat conftest.$ac_ext >&5
11226 rm -rf conftest*
11227 eval "ac_cv_func_$ac_func=no"
11229 rm -f conftest*
11232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11233 echo "$ac_t""yes" 1>&6
11234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11235 cat >> confdefs.h <<EOF
11236 #define $ac_tr_func 1
11239 else
11240 echo "$ac_t""no" 1>&6
11242 done
11244 else
11246 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11247 echo "configure:11248: checking for _finite declaration" >&5
11248 if test x${glibcpp_cv_func__finite_use+set} != xset; then
11249 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11250 echo $ac_n "(cached) $ac_c" 1>&6
11251 else
11254 ac_ext=C
11255 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11256 ac_cpp='$CXXCPP $CPPFLAGS'
11257 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11258 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11259 cross_compiling=$ac_cv_prog_cxx_cross
11261 cat > conftest.$ac_ext <<EOF
11262 #line 11263 "configure"
11263 #include "confdefs.h"
11264 #include <math.h>
11265 #ifdef HAVE_IEEEFP_H
11266 #include <ieeefp.h>
11267 #endif
11269 int main() {
11270 _finite(0);
11271 ; return 0; }
11273 if { (eval echo configure:11274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11274 rm -rf conftest*
11275 glibcpp_cv_func__finite_use=yes
11276 else
11277 echo "configure: failed program was:" >&5
11278 cat conftest.$ac_ext >&5
11279 rm -rf conftest*
11280 glibcpp_cv_func__finite_use=no
11282 rm -f conftest*
11283 ac_ext=c
11284 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11285 ac_cpp='$CPP $CPPFLAGS'
11286 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11287 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11288 cross_compiling=$ac_cv_prog_cc_cross
11294 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11296 if test x$glibcpp_cv_func__finite_use = x"yes"; then
11297 for ac_func in _finite
11299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11300 echo "configure:11301: checking for $ac_func" >&5
11301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11302 echo $ac_n "(cached) $ac_c" 1>&6
11303 else
11304 cat > conftest.$ac_ext <<EOF
11305 #line 11306 "configure"
11306 #include "confdefs.h"
11307 /* System header to define __stub macros and hopefully few prototypes,
11308 which can conflict with char $ac_func(); below. */
11309 #include <assert.h>
11310 /* Override any gcc2 internal prototype to avoid an error. */
11311 /* We use char because int might match the return type of a gcc2
11312 builtin and then its argument prototype would still apply. */
11313 char $ac_func();
11315 int main() {
11317 /* The GNU C library defines this for functions which it implements
11318 to always fail with ENOSYS. Some functions are actually named
11319 something starting with __ and the normal name is an alias. */
11320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11321 choke me
11322 #else
11323 $ac_func();
11324 #endif
11326 ; return 0; }
11328 if { (eval echo configure:11329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11329 rm -rf conftest*
11330 eval "ac_cv_func_$ac_func=yes"
11331 else
11332 echo "configure: failed program was:" >&5
11333 cat conftest.$ac_ext >&5
11334 rm -rf conftest*
11335 eval "ac_cv_func_$ac_func=no"
11337 rm -f conftest*
11340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11341 echo "$ac_t""yes" 1>&6
11342 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11343 cat >> confdefs.h <<EOF
11344 #define $ac_tr_func 1
11347 else
11348 echo "$ac_t""no" 1>&6
11350 done
11357 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11358 echo "configure:11359: checking for copysign declaration" >&5
11359 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11360 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11361 echo $ac_n "(cached) $ac_c" 1>&6
11362 else
11365 ac_ext=C
11366 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11367 ac_cpp='$CXXCPP $CPPFLAGS'
11368 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11369 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11370 cross_compiling=$ac_cv_prog_cxx_cross
11372 cat > conftest.$ac_ext <<EOF
11373 #line 11374 "configure"
11374 #include "confdefs.h"
11375 #include <math.h>
11376 int main() {
11377 copysign(0, 0);
11378 ; return 0; }
11380 if { (eval echo configure:11381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11381 rm -rf conftest*
11382 glibcpp_cv_func_copysign_use=yes
11383 else
11384 echo "configure: failed program was:" >&5
11385 cat conftest.$ac_ext >&5
11386 rm -rf conftest*
11387 glibcpp_cv_func_copysign_use=no
11389 rm -f conftest*
11390 ac_ext=c
11391 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11392 ac_cpp='$CPP $CPPFLAGS'
11393 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11394 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11395 cross_compiling=$ac_cv_prog_cc_cross
11401 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11403 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11404 for ac_func in copysign
11406 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11407 echo "configure:11408: checking for $ac_func" >&5
11408 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11409 echo $ac_n "(cached) $ac_c" 1>&6
11410 else
11411 cat > conftest.$ac_ext <<EOF
11412 #line 11413 "configure"
11413 #include "confdefs.h"
11414 /* System header to define __stub macros and hopefully few prototypes,
11415 which can conflict with char $ac_func(); below. */
11416 #include <assert.h>
11417 /* Override any gcc2 internal prototype to avoid an error. */
11418 /* We use char because int might match the return type of a gcc2
11419 builtin and then its argument prototype would still apply. */
11420 char $ac_func();
11422 int main() {
11424 /* The GNU C library defines this for functions which it implements
11425 to always fail with ENOSYS. Some functions are actually named
11426 something starting with __ and the normal name is an alias. */
11427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11428 choke me
11429 #else
11430 $ac_func();
11431 #endif
11433 ; return 0; }
11435 if { (eval echo configure:11436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11436 rm -rf conftest*
11437 eval "ac_cv_func_$ac_func=yes"
11438 else
11439 echo "configure: failed program was:" >&5
11440 cat conftest.$ac_ext >&5
11441 rm -rf conftest*
11442 eval "ac_cv_func_$ac_func=no"
11444 rm -f conftest*
11447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11448 echo "$ac_t""yes" 1>&6
11449 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11450 cat >> confdefs.h <<EOF
11451 #define $ac_tr_func 1
11454 else
11455 echo "$ac_t""no" 1>&6
11457 done
11459 else
11461 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11462 echo "configure:11463: checking for _copysign declaration" >&5
11463 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11464 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11465 echo $ac_n "(cached) $ac_c" 1>&6
11466 else
11469 ac_ext=C
11470 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11471 ac_cpp='$CXXCPP $CPPFLAGS'
11472 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11473 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11474 cross_compiling=$ac_cv_prog_cxx_cross
11476 cat > conftest.$ac_ext <<EOF
11477 #line 11478 "configure"
11478 #include "confdefs.h"
11479 #include <math.h>
11480 int main() {
11481 _copysign(0, 0);
11482 ; return 0; }
11484 if { (eval echo configure:11485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11485 rm -rf conftest*
11486 glibcpp_cv_func__copysign_use=yes
11487 else
11488 echo "configure: failed program was:" >&5
11489 cat conftest.$ac_ext >&5
11490 rm -rf conftest*
11491 glibcpp_cv_func__copysign_use=no
11493 rm -f conftest*
11494 ac_ext=c
11495 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11496 ac_cpp='$CPP $CPPFLAGS'
11497 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11498 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11499 cross_compiling=$ac_cv_prog_cc_cross
11505 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11507 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11508 for ac_func in _copysign
11510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11511 echo "configure:11512: checking for $ac_func" >&5
11512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11513 echo $ac_n "(cached) $ac_c" 1>&6
11514 else
11515 cat > conftest.$ac_ext <<EOF
11516 #line 11517 "configure"
11517 #include "confdefs.h"
11518 /* System header to define __stub macros and hopefully few prototypes,
11519 which can conflict with char $ac_func(); below. */
11520 #include <assert.h>
11521 /* Override any gcc2 internal prototype to avoid an error. */
11522 /* We use char because int might match the return type of a gcc2
11523 builtin and then its argument prototype would still apply. */
11524 char $ac_func();
11526 int main() {
11528 /* The GNU C library defines this for functions which it implements
11529 to always fail with ENOSYS. Some functions are actually named
11530 something starting with __ and the normal name is an alias. */
11531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11532 choke me
11533 #else
11534 $ac_func();
11535 #endif
11537 ; return 0; }
11539 if { (eval echo configure:11540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11540 rm -rf conftest*
11541 eval "ac_cv_func_$ac_func=yes"
11542 else
11543 echo "configure: failed program was:" >&5
11544 cat conftest.$ac_ext >&5
11545 rm -rf conftest*
11546 eval "ac_cv_func_$ac_func=no"
11548 rm -f conftest*
11551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11552 echo "$ac_t""yes" 1>&6
11553 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11554 cat >> confdefs.h <<EOF
11555 #define $ac_tr_func 1
11558 else
11559 echo "$ac_t""no" 1>&6
11561 done
11568 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11569 echo "configure:11570: checking for sincos declaration" >&5
11570 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11571 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11572 echo $ac_n "(cached) $ac_c" 1>&6
11573 else
11576 ac_ext=C
11577 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11578 ac_cpp='$CXXCPP $CPPFLAGS'
11579 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11580 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11581 cross_compiling=$ac_cv_prog_cxx_cross
11583 cat > conftest.$ac_ext <<EOF
11584 #line 11585 "configure"
11585 #include "confdefs.h"
11586 #include <math.h>
11587 int main() {
11588 sincos(0, 0, 0);
11589 ; return 0; }
11591 if { (eval echo configure:11592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11592 rm -rf conftest*
11593 glibcpp_cv_func_sincos_use=yes
11594 else
11595 echo "configure: failed program was:" >&5
11596 cat conftest.$ac_ext >&5
11597 rm -rf conftest*
11598 glibcpp_cv_func_sincos_use=no
11600 rm -f conftest*
11601 ac_ext=c
11602 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11603 ac_cpp='$CPP $CPPFLAGS'
11604 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11605 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11606 cross_compiling=$ac_cv_prog_cc_cross
11612 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11614 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11615 for ac_func in sincos
11617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11618 echo "configure:11619: checking for $ac_func" >&5
11619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11620 echo $ac_n "(cached) $ac_c" 1>&6
11621 else
11622 cat > conftest.$ac_ext <<EOF
11623 #line 11624 "configure"
11624 #include "confdefs.h"
11625 /* System header to define __stub macros and hopefully few prototypes,
11626 which can conflict with char $ac_func(); below. */
11627 #include <assert.h>
11628 /* Override any gcc2 internal prototype to avoid an error. */
11629 /* We use char because int might match the return type of a gcc2
11630 builtin and then its argument prototype would still apply. */
11631 char $ac_func();
11633 int main() {
11635 /* The GNU C library defines this for functions which it implements
11636 to always fail with ENOSYS. Some functions are actually named
11637 something starting with __ and the normal name is an alias. */
11638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11639 choke me
11640 #else
11641 $ac_func();
11642 #endif
11644 ; return 0; }
11646 if { (eval echo configure:11647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11647 rm -rf conftest*
11648 eval "ac_cv_func_$ac_func=yes"
11649 else
11650 echo "configure: failed program was:" >&5
11651 cat conftest.$ac_ext >&5
11652 rm -rf conftest*
11653 eval "ac_cv_func_$ac_func=no"
11655 rm -f conftest*
11658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11659 echo "$ac_t""yes" 1>&6
11660 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11661 cat >> confdefs.h <<EOF
11662 #define $ac_tr_func 1
11665 else
11666 echo "$ac_t""no" 1>&6
11668 done
11670 else
11672 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11673 echo "configure:11674: checking for _sincos declaration" >&5
11674 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11675 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11676 echo $ac_n "(cached) $ac_c" 1>&6
11677 else
11680 ac_ext=C
11681 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11682 ac_cpp='$CXXCPP $CPPFLAGS'
11683 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11684 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11685 cross_compiling=$ac_cv_prog_cxx_cross
11687 cat > conftest.$ac_ext <<EOF
11688 #line 11689 "configure"
11689 #include "confdefs.h"
11690 #include <math.h>
11691 int main() {
11692 _sincos(0, 0, 0);
11693 ; return 0; }
11695 if { (eval echo configure:11696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11696 rm -rf conftest*
11697 glibcpp_cv_func__sincos_use=yes
11698 else
11699 echo "configure: failed program was:" >&5
11700 cat conftest.$ac_ext >&5
11701 rm -rf conftest*
11702 glibcpp_cv_func__sincos_use=no
11704 rm -f conftest*
11705 ac_ext=c
11706 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11707 ac_cpp='$CPP $CPPFLAGS'
11708 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11709 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11710 cross_compiling=$ac_cv_prog_cc_cross
11716 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11718 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11719 for ac_func in _sincos
11721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11722 echo "configure:11723: checking for $ac_func" >&5
11723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11724 echo $ac_n "(cached) $ac_c" 1>&6
11725 else
11726 cat > conftest.$ac_ext <<EOF
11727 #line 11728 "configure"
11728 #include "confdefs.h"
11729 /* System header to define __stub macros and hopefully few prototypes,
11730 which can conflict with char $ac_func(); below. */
11731 #include <assert.h>
11732 /* Override any gcc2 internal prototype to avoid an error. */
11733 /* We use char because int might match the return type of a gcc2
11734 builtin and then its argument prototype would still apply. */
11735 char $ac_func();
11737 int main() {
11739 /* The GNU C library defines this for functions which it implements
11740 to always fail with ENOSYS. Some functions are actually named
11741 something starting with __ and the normal name is an alias. */
11742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11743 choke me
11744 #else
11745 $ac_func();
11746 #endif
11748 ; return 0; }
11750 if { (eval echo configure:11751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11751 rm -rf conftest*
11752 eval "ac_cv_func_$ac_func=yes"
11753 else
11754 echo "configure: failed program was:" >&5
11755 cat conftest.$ac_ext >&5
11756 rm -rf conftest*
11757 eval "ac_cv_func_$ac_func=no"
11759 rm -f conftest*
11762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11763 echo "$ac_t""yes" 1>&6
11764 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11765 cat >> confdefs.h <<EOF
11766 #define $ac_tr_func 1
11769 else
11770 echo "$ac_t""no" 1>&6
11772 done
11779 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11780 echo "configure:11781: checking for fpclass declaration" >&5
11781 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11782 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11783 echo $ac_n "(cached) $ac_c" 1>&6
11784 else
11787 ac_ext=C
11788 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11789 ac_cpp='$CXXCPP $CPPFLAGS'
11790 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11791 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11792 cross_compiling=$ac_cv_prog_cxx_cross
11794 cat > conftest.$ac_ext <<EOF
11795 #line 11796 "configure"
11796 #include "confdefs.h"
11797 #include <math.h>
11798 #ifdef HAVE_IEEEFP_H
11799 #include <ieeefp.h>
11800 #endif
11802 int main() {
11803 fpclass(0);
11804 ; return 0; }
11806 if { (eval echo configure:11807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11807 rm -rf conftest*
11808 glibcpp_cv_func_fpclass_use=yes
11809 else
11810 echo "configure: failed program was:" >&5
11811 cat conftest.$ac_ext >&5
11812 rm -rf conftest*
11813 glibcpp_cv_func_fpclass_use=no
11815 rm -f conftest*
11816 ac_ext=c
11817 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11818 ac_cpp='$CPP $CPPFLAGS'
11819 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11820 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11821 cross_compiling=$ac_cv_prog_cc_cross
11827 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11829 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11830 for ac_func in fpclass
11832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11833 echo "configure:11834: checking for $ac_func" >&5
11834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11835 echo $ac_n "(cached) $ac_c" 1>&6
11836 else
11837 cat > conftest.$ac_ext <<EOF
11838 #line 11839 "configure"
11839 #include "confdefs.h"
11840 /* System header to define __stub macros and hopefully few prototypes,
11841 which can conflict with char $ac_func(); below. */
11842 #include <assert.h>
11843 /* Override any gcc2 internal prototype to avoid an error. */
11844 /* We use char because int might match the return type of a gcc2
11845 builtin and then its argument prototype would still apply. */
11846 char $ac_func();
11848 int main() {
11850 /* The GNU C library defines this for functions which it implements
11851 to always fail with ENOSYS. Some functions are actually named
11852 something starting with __ and the normal name is an alias. */
11853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11854 choke me
11855 #else
11856 $ac_func();
11857 #endif
11859 ; return 0; }
11861 if { (eval echo configure:11862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11862 rm -rf conftest*
11863 eval "ac_cv_func_$ac_func=yes"
11864 else
11865 echo "configure: failed program was:" >&5
11866 cat conftest.$ac_ext >&5
11867 rm -rf conftest*
11868 eval "ac_cv_func_$ac_func=no"
11870 rm -f conftest*
11873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11874 echo "$ac_t""yes" 1>&6
11875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11876 cat >> confdefs.h <<EOF
11877 #define $ac_tr_func 1
11880 else
11881 echo "$ac_t""no" 1>&6
11883 done
11885 else
11887 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11888 echo "configure:11889: checking for _fpclass declaration" >&5
11889 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11890 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11891 echo $ac_n "(cached) $ac_c" 1>&6
11892 else
11895 ac_ext=C
11896 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11897 ac_cpp='$CXXCPP $CPPFLAGS'
11898 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11899 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11900 cross_compiling=$ac_cv_prog_cxx_cross
11902 cat > conftest.$ac_ext <<EOF
11903 #line 11904 "configure"
11904 #include "confdefs.h"
11905 #include <math.h>
11906 #ifdef HAVE_IEEEFP_H
11907 #include <ieeefp.h>
11908 #endif
11910 int main() {
11911 _fpclass(0);
11912 ; return 0; }
11914 if { (eval echo configure:11915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11915 rm -rf conftest*
11916 glibcpp_cv_func__fpclass_use=yes
11917 else
11918 echo "configure: failed program was:" >&5
11919 cat conftest.$ac_ext >&5
11920 rm -rf conftest*
11921 glibcpp_cv_func__fpclass_use=no
11923 rm -f conftest*
11924 ac_ext=c
11925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11926 ac_cpp='$CPP $CPPFLAGS'
11927 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11928 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11929 cross_compiling=$ac_cv_prog_cc_cross
11935 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
11937 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11938 for ac_func in _fpclass
11940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11941 echo "configure:11942: checking for $ac_func" >&5
11942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11943 echo $ac_n "(cached) $ac_c" 1>&6
11944 else
11945 cat > conftest.$ac_ext <<EOF
11946 #line 11947 "configure"
11947 #include "confdefs.h"
11948 /* System header to define __stub macros and hopefully few prototypes,
11949 which can conflict with char $ac_func(); below. */
11950 #include <assert.h>
11951 /* Override any gcc2 internal prototype to avoid an error. */
11952 /* We use char because int might match the return type of a gcc2
11953 builtin and then its argument prototype would still apply. */
11954 char $ac_func();
11956 int main() {
11958 /* The GNU C library defines this for functions which it implements
11959 to always fail with ENOSYS. Some functions are actually named
11960 something starting with __ and the normal name is an alias. */
11961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11962 choke me
11963 #else
11964 $ac_func();
11965 #endif
11967 ; return 0; }
11969 if { (eval echo configure:11970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11970 rm -rf conftest*
11971 eval "ac_cv_func_$ac_func=yes"
11972 else
11973 echo "configure: failed program was:" >&5
11974 cat conftest.$ac_ext >&5
11975 rm -rf conftest*
11976 eval "ac_cv_func_$ac_func=no"
11978 rm -f conftest*
11981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11982 echo "$ac_t""yes" 1>&6
11983 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11984 cat >> confdefs.h <<EOF
11985 #define $ac_tr_func 1
11988 else
11989 echo "$ac_t""no" 1>&6
11991 done
11998 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
11999 echo "configure:12000: checking for qfpclass declaration" >&5
12000 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12001 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12002 echo $ac_n "(cached) $ac_c" 1>&6
12003 else
12006 ac_ext=C
12007 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12008 ac_cpp='$CXXCPP $CPPFLAGS'
12009 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12010 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12011 cross_compiling=$ac_cv_prog_cxx_cross
12013 cat > conftest.$ac_ext <<EOF
12014 #line 12015 "configure"
12015 #include "confdefs.h"
12016 #include <math.h>
12017 #ifdef HAVE_IEEEFP_H
12018 #include <ieeefp.h>
12019 #endif
12021 int main() {
12022 qfpclass(0);
12023 ; return 0; }
12025 if { (eval echo configure:12026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12026 rm -rf conftest*
12027 glibcpp_cv_func_qfpclass_use=yes
12028 else
12029 echo "configure: failed program was:" >&5
12030 cat conftest.$ac_ext >&5
12031 rm -rf conftest*
12032 glibcpp_cv_func_qfpclass_use=no
12034 rm -f conftest*
12035 ac_ext=c
12036 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12037 ac_cpp='$CPP $CPPFLAGS'
12038 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12039 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12040 cross_compiling=$ac_cv_prog_cc_cross
12046 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12048 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12049 for ac_func in qfpclass
12051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12052 echo "configure:12053: checking for $ac_func" >&5
12053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12054 echo $ac_n "(cached) $ac_c" 1>&6
12055 else
12056 cat > conftest.$ac_ext <<EOF
12057 #line 12058 "configure"
12058 #include "confdefs.h"
12059 /* System header to define __stub macros and hopefully few prototypes,
12060 which can conflict with char $ac_func(); below. */
12061 #include <assert.h>
12062 /* Override any gcc2 internal prototype to avoid an error. */
12063 /* We use char because int might match the return type of a gcc2
12064 builtin and then its argument prototype would still apply. */
12065 char $ac_func();
12067 int main() {
12069 /* The GNU C library defines this for functions which it implements
12070 to always fail with ENOSYS. Some functions are actually named
12071 something starting with __ and the normal name is an alias. */
12072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12073 choke me
12074 #else
12075 $ac_func();
12076 #endif
12078 ; return 0; }
12080 if { (eval echo configure:12081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12081 rm -rf conftest*
12082 eval "ac_cv_func_$ac_func=yes"
12083 else
12084 echo "configure: failed program was:" >&5
12085 cat conftest.$ac_ext >&5
12086 rm -rf conftest*
12087 eval "ac_cv_func_$ac_func=no"
12089 rm -f conftest*
12092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12093 echo "$ac_t""yes" 1>&6
12094 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12095 cat >> confdefs.h <<EOF
12096 #define $ac_tr_func 1
12099 else
12100 echo "$ac_t""no" 1>&6
12102 done
12104 else
12106 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12107 echo "configure:12108: checking for _qfpclass declaration" >&5
12108 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12109 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12110 echo $ac_n "(cached) $ac_c" 1>&6
12111 else
12114 ac_ext=C
12115 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12116 ac_cpp='$CXXCPP $CPPFLAGS'
12117 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12118 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12119 cross_compiling=$ac_cv_prog_cxx_cross
12121 cat > conftest.$ac_ext <<EOF
12122 #line 12123 "configure"
12123 #include "confdefs.h"
12124 #include <math.h>
12125 #ifdef HAVE_IEEEFP_H
12126 #include <ieeefp.h>
12127 #endif
12129 int main() {
12130 _qfpclass(0);
12131 ; return 0; }
12133 if { (eval echo configure:12134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12134 rm -rf conftest*
12135 glibcpp_cv_func__qfpclass_use=yes
12136 else
12137 echo "configure: failed program was:" >&5
12138 cat conftest.$ac_ext >&5
12139 rm -rf conftest*
12140 glibcpp_cv_func__qfpclass_use=no
12142 rm -f conftest*
12143 ac_ext=c
12144 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12145 ac_cpp='$CPP $CPPFLAGS'
12146 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12147 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12148 cross_compiling=$ac_cv_prog_cc_cross
12154 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12156 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12157 for ac_func in _qfpclass
12159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12160 echo "configure:12161: checking for $ac_func" >&5
12161 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12162 echo $ac_n "(cached) $ac_c" 1>&6
12163 else
12164 cat > conftest.$ac_ext <<EOF
12165 #line 12166 "configure"
12166 #include "confdefs.h"
12167 /* System header to define __stub macros and hopefully few prototypes,
12168 which can conflict with char $ac_func(); below. */
12169 #include <assert.h>
12170 /* Override any gcc2 internal prototype to avoid an error. */
12171 /* We use char because int might match the return type of a gcc2
12172 builtin and then its argument prototype would still apply. */
12173 char $ac_func();
12175 int main() {
12177 /* The GNU C library defines this for functions which it implements
12178 to always fail with ENOSYS. Some functions are actually named
12179 something starting with __ and the normal name is an alias. */
12180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12181 choke me
12182 #else
12183 $ac_func();
12184 #endif
12186 ; return 0; }
12188 if { (eval echo configure:12189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12189 rm -rf conftest*
12190 eval "ac_cv_func_$ac_func=yes"
12191 else
12192 echo "configure: failed program was:" >&5
12193 cat conftest.$ac_ext >&5
12194 rm -rf conftest*
12195 eval "ac_cv_func_$ac_func=no"
12197 rm -f conftest*
12200 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12201 echo "$ac_t""yes" 1>&6
12202 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12203 cat >> confdefs.h <<EOF
12204 #define $ac_tr_func 1
12207 else
12208 echo "$ac_t""no" 1>&6
12210 done
12217 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12218 echo "configure:12219: checking for hypot declaration" >&5
12219 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12220 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12221 echo $ac_n "(cached) $ac_c" 1>&6
12222 else
12225 ac_ext=C
12226 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12227 ac_cpp='$CXXCPP $CPPFLAGS'
12228 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12229 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12230 cross_compiling=$ac_cv_prog_cxx_cross
12232 cat > conftest.$ac_ext <<EOF
12233 #line 12234 "configure"
12234 #include "confdefs.h"
12235 #include <math.h>
12236 int main() {
12237 hypot(0, 0);
12238 ; return 0; }
12240 if { (eval echo configure:12241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12241 rm -rf conftest*
12242 glibcpp_cv_func_hypot_use=yes
12243 else
12244 echo "configure: failed program was:" >&5
12245 cat conftest.$ac_ext >&5
12246 rm -rf conftest*
12247 glibcpp_cv_func_hypot_use=no
12249 rm -f conftest*
12250 ac_ext=c
12251 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12252 ac_cpp='$CPP $CPPFLAGS'
12253 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12254 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12255 cross_compiling=$ac_cv_prog_cc_cross
12261 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12263 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12264 for ac_func in hypot
12266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12267 echo "configure:12268: checking for $ac_func" >&5
12268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12269 echo $ac_n "(cached) $ac_c" 1>&6
12270 else
12271 cat > conftest.$ac_ext <<EOF
12272 #line 12273 "configure"
12273 #include "confdefs.h"
12274 /* System header to define __stub macros and hopefully few prototypes,
12275 which can conflict with char $ac_func(); below. */
12276 #include <assert.h>
12277 /* Override any gcc2 internal prototype to avoid an error. */
12278 /* We use char because int might match the return type of a gcc2
12279 builtin and then its argument prototype would still apply. */
12280 char $ac_func();
12282 int main() {
12284 /* The GNU C library defines this for functions which it implements
12285 to always fail with ENOSYS. Some functions are actually named
12286 something starting with __ and the normal name is an alias. */
12287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12288 choke me
12289 #else
12290 $ac_func();
12291 #endif
12293 ; return 0; }
12295 if { (eval echo configure:12296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12296 rm -rf conftest*
12297 eval "ac_cv_func_$ac_func=yes"
12298 else
12299 echo "configure: failed program was:" >&5
12300 cat conftest.$ac_ext >&5
12301 rm -rf conftest*
12302 eval "ac_cv_func_$ac_func=no"
12304 rm -f conftest*
12307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12308 echo "$ac_t""yes" 1>&6
12309 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12310 cat >> confdefs.h <<EOF
12311 #define $ac_tr_func 1
12314 else
12315 echo "$ac_t""no" 1>&6
12317 done
12319 else
12321 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12322 echo "configure:12323: checking for _hypot declaration" >&5
12323 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12324 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12325 echo $ac_n "(cached) $ac_c" 1>&6
12326 else
12329 ac_ext=C
12330 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12331 ac_cpp='$CXXCPP $CPPFLAGS'
12332 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12333 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12334 cross_compiling=$ac_cv_prog_cxx_cross
12336 cat > conftest.$ac_ext <<EOF
12337 #line 12338 "configure"
12338 #include "confdefs.h"
12339 #include <math.h>
12340 int main() {
12341 _hypot(0, 0);
12342 ; return 0; }
12344 if { (eval echo configure:12345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12345 rm -rf conftest*
12346 glibcpp_cv_func__hypot_use=yes
12347 else
12348 echo "configure: failed program was:" >&5
12349 cat conftest.$ac_ext >&5
12350 rm -rf conftest*
12351 glibcpp_cv_func__hypot_use=no
12353 rm -f conftest*
12354 ac_ext=c
12355 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12356 ac_cpp='$CPP $CPPFLAGS'
12357 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12358 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12359 cross_compiling=$ac_cv_prog_cc_cross
12365 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12367 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12368 for ac_func in _hypot
12370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12371 echo "configure:12372: checking for $ac_func" >&5
12372 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12373 echo $ac_n "(cached) $ac_c" 1>&6
12374 else
12375 cat > conftest.$ac_ext <<EOF
12376 #line 12377 "configure"
12377 #include "confdefs.h"
12378 /* System header to define __stub macros and hopefully few prototypes,
12379 which can conflict with char $ac_func(); below. */
12380 #include <assert.h>
12381 /* Override any gcc2 internal prototype to avoid an error. */
12382 /* We use char because int might match the return type of a gcc2
12383 builtin and then its argument prototype would still apply. */
12384 char $ac_func();
12386 int main() {
12388 /* The GNU C library defines this for functions which it implements
12389 to always fail with ENOSYS. Some functions are actually named
12390 something starting with __ and the normal name is an alias. */
12391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12392 choke me
12393 #else
12394 $ac_func();
12395 #endif
12397 ; return 0; }
12399 if { (eval echo configure:12400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12400 rm -rf conftest*
12401 eval "ac_cv_func_$ac_func=yes"
12402 else
12403 echo "configure: failed program was:" >&5
12404 cat conftest.$ac_ext >&5
12405 rm -rf conftest*
12406 eval "ac_cv_func_$ac_func=no"
12408 rm -f conftest*
12411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12412 echo "$ac_t""yes" 1>&6
12413 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12414 cat >> confdefs.h <<EOF
12415 #define $ac_tr_func 1
12418 else
12419 echo "$ac_t""no" 1>&6
12421 done
12428 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12429 echo "configure:12430: checking for float trig functions" >&5
12430 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12431 echo $ac_n "(cached) $ac_c" 1>&6
12432 else
12435 ac_ext=C
12436 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12437 ac_cpp='$CXXCPP $CPPFLAGS'
12438 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12439 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12440 cross_compiling=$ac_cv_prog_cxx_cross
12442 cat > conftest.$ac_ext <<EOF
12443 #line 12444 "configure"
12444 #include "confdefs.h"
12445 #include <math.h>
12446 int main() {
12447 `for x in acosf asinf atanf \
12448 cosf sinf tanf \
12449 coshf sinhf tanhf; do echo "$x (0);"; done`
12450 ; return 0; }
12452 if { (eval echo configure:12453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12453 rm -rf conftest*
12454 glibcpp_cv_func_float_trig_use=yes
12455 else
12456 echo "configure: failed program was:" >&5
12457 cat conftest.$ac_ext >&5
12458 rm -rf conftest*
12459 glibcpp_cv_func_float_trig_use=no
12461 rm -f conftest*
12462 ac_ext=c
12463 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12464 ac_cpp='$CPP $CPPFLAGS'
12465 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12466 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12467 cross_compiling=$ac_cv_prog_cc_cross
12471 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12472 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12473 for ac_func in acosf asinf atanf \
12474 cosf sinf tanf \
12475 coshf sinhf tanhf
12477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12478 echo "configure:12479: checking for $ac_func" >&5
12479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12480 echo $ac_n "(cached) $ac_c" 1>&6
12481 else
12482 cat > conftest.$ac_ext <<EOF
12483 #line 12484 "configure"
12484 #include "confdefs.h"
12485 /* System header to define __stub macros and hopefully few prototypes,
12486 which can conflict with char $ac_func(); below. */
12487 #include <assert.h>
12488 /* Override any gcc2 internal prototype to avoid an error. */
12489 /* We use char because int might match the return type of a gcc2
12490 builtin and then its argument prototype would still apply. */
12491 char $ac_func();
12493 int main() {
12495 /* The GNU C library defines this for functions which it implements
12496 to always fail with ENOSYS. Some functions are actually named
12497 something starting with __ and the normal name is an alias. */
12498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12499 choke me
12500 #else
12501 $ac_func();
12502 #endif
12504 ; return 0; }
12506 if { (eval echo configure:12507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12507 rm -rf conftest*
12508 eval "ac_cv_func_$ac_func=yes"
12509 else
12510 echo "configure: failed program was:" >&5
12511 cat conftest.$ac_ext >&5
12512 rm -rf conftest*
12513 eval "ac_cv_func_$ac_func=no"
12515 rm -f conftest*
12518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12519 echo "$ac_t""yes" 1>&6
12520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12521 cat >> confdefs.h <<EOF
12522 #define $ac_tr_func 1
12525 else
12526 echo "$ac_t""no" 1>&6
12528 done
12533 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12534 echo "configure:12535: checking for float round functions" >&5
12535 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12536 echo $ac_n "(cached) $ac_c" 1>&6
12537 else
12540 ac_ext=C
12541 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12542 ac_cpp='$CXXCPP $CPPFLAGS'
12543 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12544 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12545 cross_compiling=$ac_cv_prog_cxx_cross
12547 cat > conftest.$ac_ext <<EOF
12548 #line 12549 "configure"
12549 #include "confdefs.h"
12550 #include <math.h>
12551 int main() {
12552 `for x in ceilf floorf; do echo "$x (0);"; done`
12553 ; return 0; }
12555 if { (eval echo configure:12556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12556 rm -rf conftest*
12557 glibcpp_cv_func_float_round_use=yes
12558 else
12559 echo "configure: failed program was:" >&5
12560 cat conftest.$ac_ext >&5
12561 rm -rf conftest*
12562 glibcpp_cv_func_float_round_use=no
12564 rm -f conftest*
12565 ac_ext=c
12566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12567 ac_cpp='$CPP $CPPFLAGS'
12568 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12569 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12570 cross_compiling=$ac_cv_prog_cc_cross
12574 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12575 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12576 for ac_func in ceilf floorf
12578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12579 echo "configure:12580: checking for $ac_func" >&5
12580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12581 echo $ac_n "(cached) $ac_c" 1>&6
12582 else
12583 cat > conftest.$ac_ext <<EOF
12584 #line 12585 "configure"
12585 #include "confdefs.h"
12586 /* System header to define __stub macros and hopefully few prototypes,
12587 which can conflict with char $ac_func(); below. */
12588 #include <assert.h>
12589 /* Override any gcc2 internal prototype to avoid an error. */
12590 /* We use char because int might match the return type of a gcc2
12591 builtin and then its argument prototype would still apply. */
12592 char $ac_func();
12594 int main() {
12596 /* The GNU C library defines this for functions which it implements
12597 to always fail with ENOSYS. Some functions are actually named
12598 something starting with __ and the normal name is an alias. */
12599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12600 choke me
12601 #else
12602 $ac_func();
12603 #endif
12605 ; return 0; }
12607 if { (eval echo configure:12608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12608 rm -rf conftest*
12609 eval "ac_cv_func_$ac_func=yes"
12610 else
12611 echo "configure: failed program was:" >&5
12612 cat conftest.$ac_ext >&5
12613 rm -rf conftest*
12614 eval "ac_cv_func_$ac_func=no"
12616 rm -f conftest*
12619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12620 echo "$ac_t""yes" 1>&6
12621 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12622 cat >> confdefs.h <<EOF
12623 #define $ac_tr_func 1
12626 else
12627 echo "$ac_t""no" 1>&6
12629 done
12635 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12636 echo "configure:12637: checking for expf declaration" >&5
12637 if test x${glibcpp_cv_func_expf_use+set} != xset; then
12638 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12639 echo $ac_n "(cached) $ac_c" 1>&6
12640 else
12643 ac_ext=C
12644 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12645 ac_cpp='$CXXCPP $CPPFLAGS'
12646 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12647 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12648 cross_compiling=$ac_cv_prog_cxx_cross
12650 cat > conftest.$ac_ext <<EOF
12651 #line 12652 "configure"
12652 #include "confdefs.h"
12653 #include <math.h>
12654 #ifdef HAVE_IEEEFP_H
12655 #include <ieeefp.h>
12656 #endif
12658 int main() {
12659 expf(0);
12660 ; return 0; }
12662 if { (eval echo configure:12663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12663 rm -rf conftest*
12664 glibcpp_cv_func_expf_use=yes
12665 else
12666 echo "configure: failed program was:" >&5
12667 cat conftest.$ac_ext >&5
12668 rm -rf conftest*
12669 glibcpp_cv_func_expf_use=no
12671 rm -f conftest*
12672 ac_ext=c
12673 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12674 ac_cpp='$CPP $CPPFLAGS'
12675 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12676 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12677 cross_compiling=$ac_cv_prog_cc_cross
12683 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12685 if test x$glibcpp_cv_func_expf_use = x"yes"; then
12686 for ac_func in expf
12688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12689 echo "configure:12690: checking for $ac_func" >&5
12690 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12691 echo $ac_n "(cached) $ac_c" 1>&6
12692 else
12693 cat > conftest.$ac_ext <<EOF
12694 #line 12695 "configure"
12695 #include "confdefs.h"
12696 /* System header to define __stub macros and hopefully few prototypes,
12697 which can conflict with char $ac_func(); below. */
12698 #include <assert.h>
12699 /* Override any gcc2 internal prototype to avoid an error. */
12700 /* We use char because int might match the return type of a gcc2
12701 builtin and then its argument prototype would still apply. */
12702 char $ac_func();
12704 int main() {
12706 /* The GNU C library defines this for functions which it implements
12707 to always fail with ENOSYS. Some functions are actually named
12708 something starting with __ and the normal name is an alias. */
12709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12710 choke me
12711 #else
12712 $ac_func();
12713 #endif
12715 ; return 0; }
12717 if { (eval echo configure:12718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12718 rm -rf conftest*
12719 eval "ac_cv_func_$ac_func=yes"
12720 else
12721 echo "configure: failed program was:" >&5
12722 cat conftest.$ac_ext >&5
12723 rm -rf conftest*
12724 eval "ac_cv_func_$ac_func=no"
12726 rm -f conftest*
12729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12730 echo "$ac_t""yes" 1>&6
12731 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12732 cat >> confdefs.h <<EOF
12733 #define $ac_tr_func 1
12736 else
12737 echo "$ac_t""no" 1>&6
12739 done
12741 else
12743 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12744 echo "configure:12745: checking for _expf declaration" >&5
12745 if test x${glibcpp_cv_func__expf_use+set} != xset; then
12746 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12747 echo $ac_n "(cached) $ac_c" 1>&6
12748 else
12751 ac_ext=C
12752 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12753 ac_cpp='$CXXCPP $CPPFLAGS'
12754 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12755 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12756 cross_compiling=$ac_cv_prog_cxx_cross
12758 cat > conftest.$ac_ext <<EOF
12759 #line 12760 "configure"
12760 #include "confdefs.h"
12761 #include <math.h>
12762 #ifdef HAVE_IEEEFP_H
12763 #include <ieeefp.h>
12764 #endif
12766 int main() {
12767 _expf(0);
12768 ; return 0; }
12770 if { (eval echo configure:12771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12771 rm -rf conftest*
12772 glibcpp_cv_func__expf_use=yes
12773 else
12774 echo "configure: failed program was:" >&5
12775 cat conftest.$ac_ext >&5
12776 rm -rf conftest*
12777 glibcpp_cv_func__expf_use=no
12779 rm -f conftest*
12780 ac_ext=c
12781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12782 ac_cpp='$CPP $CPPFLAGS'
12783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12784 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12785 cross_compiling=$ac_cv_prog_cc_cross
12791 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12793 if test x$glibcpp_cv_func__expf_use = x"yes"; then
12794 for ac_func in _expf
12796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12797 echo "configure:12798: checking for $ac_func" >&5
12798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12799 echo $ac_n "(cached) $ac_c" 1>&6
12800 else
12801 cat > conftest.$ac_ext <<EOF
12802 #line 12803 "configure"
12803 #include "confdefs.h"
12804 /* System header to define __stub macros and hopefully few prototypes,
12805 which can conflict with char $ac_func(); below. */
12806 #include <assert.h>
12807 /* Override any gcc2 internal prototype to avoid an error. */
12808 /* We use char because int might match the return type of a gcc2
12809 builtin and then its argument prototype would still apply. */
12810 char $ac_func();
12812 int main() {
12814 /* The GNU C library defines this for functions which it implements
12815 to always fail with ENOSYS. Some functions are actually named
12816 something starting with __ and the normal name is an alias. */
12817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12818 choke me
12819 #else
12820 $ac_func();
12821 #endif
12823 ; return 0; }
12825 if { (eval echo configure:12826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12826 rm -rf conftest*
12827 eval "ac_cv_func_$ac_func=yes"
12828 else
12829 echo "configure: failed program was:" >&5
12830 cat conftest.$ac_ext >&5
12831 rm -rf conftest*
12832 eval "ac_cv_func_$ac_func=no"
12834 rm -f conftest*
12837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12838 echo "$ac_t""yes" 1>&6
12839 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12840 cat >> confdefs.h <<EOF
12841 #define $ac_tr_func 1
12844 else
12845 echo "$ac_t""no" 1>&6
12847 done
12854 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12855 echo "configure:12856: checking for isnanf declaration" >&5
12856 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12857 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12858 echo $ac_n "(cached) $ac_c" 1>&6
12859 else
12862 ac_ext=C
12863 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12864 ac_cpp='$CXXCPP $CPPFLAGS'
12865 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12866 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12867 cross_compiling=$ac_cv_prog_cxx_cross
12869 cat > conftest.$ac_ext <<EOF
12870 #line 12871 "configure"
12871 #include "confdefs.h"
12872 #include <math.h>
12873 #ifdef HAVE_IEEEFP_H
12874 #include <ieeefp.h>
12875 #endif
12877 int main() {
12878 isnanf(0);
12879 ; return 0; }
12881 if { (eval echo configure:12882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12882 rm -rf conftest*
12883 glibcpp_cv_func_isnanf_use=yes
12884 else
12885 echo "configure: failed program was:" >&5
12886 cat conftest.$ac_ext >&5
12887 rm -rf conftest*
12888 glibcpp_cv_func_isnanf_use=no
12890 rm -f conftest*
12891 ac_ext=c
12892 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12893 ac_cpp='$CPP $CPPFLAGS'
12894 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12895 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12896 cross_compiling=$ac_cv_prog_cc_cross
12902 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12904 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12905 for ac_func in isnanf
12907 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12908 echo "configure:12909: checking for $ac_func" >&5
12909 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12910 echo $ac_n "(cached) $ac_c" 1>&6
12911 else
12912 cat > conftest.$ac_ext <<EOF
12913 #line 12914 "configure"
12914 #include "confdefs.h"
12915 /* System header to define __stub macros and hopefully few prototypes,
12916 which can conflict with char $ac_func(); below. */
12917 #include <assert.h>
12918 /* Override any gcc2 internal prototype to avoid an error. */
12919 /* We use char because int might match the return type of a gcc2
12920 builtin and then its argument prototype would still apply. */
12921 char $ac_func();
12923 int main() {
12925 /* The GNU C library defines this for functions which it implements
12926 to always fail with ENOSYS. Some functions are actually named
12927 something starting with __ and the normal name is an alias. */
12928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12929 choke me
12930 #else
12931 $ac_func();
12932 #endif
12934 ; return 0; }
12936 if { (eval echo configure:12937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12937 rm -rf conftest*
12938 eval "ac_cv_func_$ac_func=yes"
12939 else
12940 echo "configure: failed program was:" >&5
12941 cat conftest.$ac_ext >&5
12942 rm -rf conftest*
12943 eval "ac_cv_func_$ac_func=no"
12945 rm -f conftest*
12948 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12949 echo "$ac_t""yes" 1>&6
12950 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12951 cat >> confdefs.h <<EOF
12952 #define $ac_tr_func 1
12955 else
12956 echo "$ac_t""no" 1>&6
12958 done
12960 else
12962 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12963 echo "configure:12964: checking for _isnanf declaration" >&5
12964 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
12965 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
12966 echo $ac_n "(cached) $ac_c" 1>&6
12967 else
12970 ac_ext=C
12971 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12972 ac_cpp='$CXXCPP $CPPFLAGS'
12973 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12974 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12975 cross_compiling=$ac_cv_prog_cxx_cross
12977 cat > conftest.$ac_ext <<EOF
12978 #line 12979 "configure"
12979 #include "confdefs.h"
12980 #include <math.h>
12981 #ifdef HAVE_IEEEFP_H
12982 #include <ieeefp.h>
12983 #endif
12985 int main() {
12986 _isnanf(0);
12987 ; return 0; }
12989 if { (eval echo configure:12990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12990 rm -rf conftest*
12991 glibcpp_cv_func__isnanf_use=yes
12992 else
12993 echo "configure: failed program was:" >&5
12994 cat conftest.$ac_ext >&5
12995 rm -rf conftest*
12996 glibcpp_cv_func__isnanf_use=no
12998 rm -f conftest*
12999 ac_ext=c
13000 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13001 ac_cpp='$CPP $CPPFLAGS'
13002 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13003 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13004 cross_compiling=$ac_cv_prog_cc_cross
13010 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13012 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13013 for ac_func in _isnanf
13015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13016 echo "configure:13017: checking for $ac_func" >&5
13017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13018 echo $ac_n "(cached) $ac_c" 1>&6
13019 else
13020 cat > conftest.$ac_ext <<EOF
13021 #line 13022 "configure"
13022 #include "confdefs.h"
13023 /* System header to define __stub macros and hopefully few prototypes,
13024 which can conflict with char $ac_func(); below. */
13025 #include <assert.h>
13026 /* Override any gcc2 internal prototype to avoid an error. */
13027 /* We use char because int might match the return type of a gcc2
13028 builtin and then its argument prototype would still apply. */
13029 char $ac_func();
13031 int main() {
13033 /* The GNU C library defines this for functions which it implements
13034 to always fail with ENOSYS. Some functions are actually named
13035 something starting with __ and the normal name is an alias. */
13036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13037 choke me
13038 #else
13039 $ac_func();
13040 #endif
13042 ; return 0; }
13044 if { (eval echo configure:13045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13045 rm -rf conftest*
13046 eval "ac_cv_func_$ac_func=yes"
13047 else
13048 echo "configure: failed program was:" >&5
13049 cat conftest.$ac_ext >&5
13050 rm -rf conftest*
13051 eval "ac_cv_func_$ac_func=no"
13053 rm -f conftest*
13056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13057 echo "$ac_t""yes" 1>&6
13058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13059 cat >> confdefs.h <<EOF
13060 #define $ac_tr_func 1
13063 else
13064 echo "$ac_t""no" 1>&6
13066 done
13073 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13074 echo "configure:13075: checking for isinff declaration" >&5
13075 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13076 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13077 echo $ac_n "(cached) $ac_c" 1>&6
13078 else
13081 ac_ext=C
13082 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13083 ac_cpp='$CXXCPP $CPPFLAGS'
13084 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13085 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13086 cross_compiling=$ac_cv_prog_cxx_cross
13088 cat > conftest.$ac_ext <<EOF
13089 #line 13090 "configure"
13090 #include "confdefs.h"
13091 #include <math.h>
13092 #ifdef HAVE_IEEEFP_H
13093 #include <ieeefp.h>
13094 #endif
13096 int main() {
13097 isinff(0);
13098 ; return 0; }
13100 if { (eval echo configure:13101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13101 rm -rf conftest*
13102 glibcpp_cv_func_isinff_use=yes
13103 else
13104 echo "configure: failed program was:" >&5
13105 cat conftest.$ac_ext >&5
13106 rm -rf conftest*
13107 glibcpp_cv_func_isinff_use=no
13109 rm -f conftest*
13110 ac_ext=c
13111 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13112 ac_cpp='$CPP $CPPFLAGS'
13113 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13114 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13115 cross_compiling=$ac_cv_prog_cc_cross
13121 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13123 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13124 for ac_func in isinff
13126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13127 echo "configure:13128: checking for $ac_func" >&5
13128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13129 echo $ac_n "(cached) $ac_c" 1>&6
13130 else
13131 cat > conftest.$ac_ext <<EOF
13132 #line 13133 "configure"
13133 #include "confdefs.h"
13134 /* System header to define __stub macros and hopefully few prototypes,
13135 which can conflict with char $ac_func(); below. */
13136 #include <assert.h>
13137 /* Override any gcc2 internal prototype to avoid an error. */
13138 /* We use char because int might match the return type of a gcc2
13139 builtin and then its argument prototype would still apply. */
13140 char $ac_func();
13142 int main() {
13144 /* The GNU C library defines this for functions which it implements
13145 to always fail with ENOSYS. Some functions are actually named
13146 something starting with __ and the normal name is an alias. */
13147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13148 choke me
13149 #else
13150 $ac_func();
13151 #endif
13153 ; return 0; }
13155 if { (eval echo configure:13156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13156 rm -rf conftest*
13157 eval "ac_cv_func_$ac_func=yes"
13158 else
13159 echo "configure: failed program was:" >&5
13160 cat conftest.$ac_ext >&5
13161 rm -rf conftest*
13162 eval "ac_cv_func_$ac_func=no"
13164 rm -f conftest*
13167 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13168 echo "$ac_t""yes" 1>&6
13169 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13170 cat >> confdefs.h <<EOF
13171 #define $ac_tr_func 1
13174 else
13175 echo "$ac_t""no" 1>&6
13177 done
13179 else
13181 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13182 echo "configure:13183: checking for _isinff declaration" >&5
13183 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13184 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13185 echo $ac_n "(cached) $ac_c" 1>&6
13186 else
13189 ac_ext=C
13190 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13191 ac_cpp='$CXXCPP $CPPFLAGS'
13192 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13193 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13194 cross_compiling=$ac_cv_prog_cxx_cross
13196 cat > conftest.$ac_ext <<EOF
13197 #line 13198 "configure"
13198 #include "confdefs.h"
13199 #include <math.h>
13200 #ifdef HAVE_IEEEFP_H
13201 #include <ieeefp.h>
13202 #endif
13204 int main() {
13205 _isinff(0);
13206 ; return 0; }
13208 if { (eval echo configure:13209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13209 rm -rf conftest*
13210 glibcpp_cv_func__isinff_use=yes
13211 else
13212 echo "configure: failed program was:" >&5
13213 cat conftest.$ac_ext >&5
13214 rm -rf conftest*
13215 glibcpp_cv_func__isinff_use=no
13217 rm -f conftest*
13218 ac_ext=c
13219 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13220 ac_cpp='$CPP $CPPFLAGS'
13221 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13222 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13223 cross_compiling=$ac_cv_prog_cc_cross
13229 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13231 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13232 for ac_func in _isinff
13234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13235 echo "configure:13236: checking for $ac_func" >&5
13236 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13237 echo $ac_n "(cached) $ac_c" 1>&6
13238 else
13239 cat > conftest.$ac_ext <<EOF
13240 #line 13241 "configure"
13241 #include "confdefs.h"
13242 /* System header to define __stub macros and hopefully few prototypes,
13243 which can conflict with char $ac_func(); below. */
13244 #include <assert.h>
13245 /* Override any gcc2 internal prototype to avoid an error. */
13246 /* We use char because int might match the return type of a gcc2
13247 builtin and then its argument prototype would still apply. */
13248 char $ac_func();
13250 int main() {
13252 /* The GNU C library defines this for functions which it implements
13253 to always fail with ENOSYS. Some functions are actually named
13254 something starting with __ and the normal name is an alias. */
13255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13256 choke me
13257 #else
13258 $ac_func();
13259 #endif
13261 ; return 0; }
13263 if { (eval echo configure:13264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13264 rm -rf conftest*
13265 eval "ac_cv_func_$ac_func=yes"
13266 else
13267 echo "configure: failed program was:" >&5
13268 cat conftest.$ac_ext >&5
13269 rm -rf conftest*
13270 eval "ac_cv_func_$ac_func=no"
13272 rm -f conftest*
13275 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13276 echo "$ac_t""yes" 1>&6
13277 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13278 cat >> confdefs.h <<EOF
13279 #define $ac_tr_func 1
13282 else
13283 echo "$ac_t""no" 1>&6
13285 done
13292 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13293 echo "configure:13294: checking for atan2f declaration" >&5
13294 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13295 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13296 echo $ac_n "(cached) $ac_c" 1>&6
13297 else
13300 ac_ext=C
13301 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13302 ac_cpp='$CXXCPP $CPPFLAGS'
13303 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13304 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13305 cross_compiling=$ac_cv_prog_cxx_cross
13307 cat > conftest.$ac_ext <<EOF
13308 #line 13309 "configure"
13309 #include "confdefs.h"
13310 #include <math.h>
13311 int main() {
13312 atan2f(0, 0);
13313 ; return 0; }
13315 if { (eval echo configure:13316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13316 rm -rf conftest*
13317 glibcpp_cv_func_atan2f_use=yes
13318 else
13319 echo "configure: failed program was:" >&5
13320 cat conftest.$ac_ext >&5
13321 rm -rf conftest*
13322 glibcpp_cv_func_atan2f_use=no
13324 rm -f conftest*
13325 ac_ext=c
13326 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13327 ac_cpp='$CPP $CPPFLAGS'
13328 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13329 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13330 cross_compiling=$ac_cv_prog_cc_cross
13336 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13338 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13339 for ac_func in atan2f
13341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13342 echo "configure:13343: checking for $ac_func" >&5
13343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13344 echo $ac_n "(cached) $ac_c" 1>&6
13345 else
13346 cat > conftest.$ac_ext <<EOF
13347 #line 13348 "configure"
13348 #include "confdefs.h"
13349 /* System header to define __stub macros and hopefully few prototypes,
13350 which can conflict with char $ac_func(); below. */
13351 #include <assert.h>
13352 /* Override any gcc2 internal prototype to avoid an error. */
13353 /* We use char because int might match the return type of a gcc2
13354 builtin and then its argument prototype would still apply. */
13355 char $ac_func();
13357 int main() {
13359 /* The GNU C library defines this for functions which it implements
13360 to always fail with ENOSYS. Some functions are actually named
13361 something starting with __ and the normal name is an alias. */
13362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13363 choke me
13364 #else
13365 $ac_func();
13366 #endif
13368 ; return 0; }
13370 if { (eval echo configure:13371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13371 rm -rf conftest*
13372 eval "ac_cv_func_$ac_func=yes"
13373 else
13374 echo "configure: failed program was:" >&5
13375 cat conftest.$ac_ext >&5
13376 rm -rf conftest*
13377 eval "ac_cv_func_$ac_func=no"
13379 rm -f conftest*
13382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13383 echo "$ac_t""yes" 1>&6
13384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13385 cat >> confdefs.h <<EOF
13386 #define $ac_tr_func 1
13389 else
13390 echo "$ac_t""no" 1>&6
13392 done
13394 else
13396 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13397 echo "configure:13398: checking for _atan2f declaration" >&5
13398 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13399 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13400 echo $ac_n "(cached) $ac_c" 1>&6
13401 else
13404 ac_ext=C
13405 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13406 ac_cpp='$CXXCPP $CPPFLAGS'
13407 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13408 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13409 cross_compiling=$ac_cv_prog_cxx_cross
13411 cat > conftest.$ac_ext <<EOF
13412 #line 13413 "configure"
13413 #include "confdefs.h"
13414 #include <math.h>
13415 int main() {
13416 _atan2f(0, 0);
13417 ; return 0; }
13419 if { (eval echo configure:13420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13420 rm -rf conftest*
13421 glibcpp_cv_func__atan2f_use=yes
13422 else
13423 echo "configure: failed program was:" >&5
13424 cat conftest.$ac_ext >&5
13425 rm -rf conftest*
13426 glibcpp_cv_func__atan2f_use=no
13428 rm -f conftest*
13429 ac_ext=c
13430 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13431 ac_cpp='$CPP $CPPFLAGS'
13432 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13433 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13434 cross_compiling=$ac_cv_prog_cc_cross
13440 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13442 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13443 for ac_func in _atan2f
13445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13446 echo "configure:13447: checking for $ac_func" >&5
13447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13448 echo $ac_n "(cached) $ac_c" 1>&6
13449 else
13450 cat > conftest.$ac_ext <<EOF
13451 #line 13452 "configure"
13452 #include "confdefs.h"
13453 /* System header to define __stub macros and hopefully few prototypes,
13454 which can conflict with char $ac_func(); below. */
13455 #include <assert.h>
13456 /* Override any gcc2 internal prototype to avoid an error. */
13457 /* We use char because int might match the return type of a gcc2
13458 builtin and then its argument prototype would still apply. */
13459 char $ac_func();
13461 int main() {
13463 /* The GNU C library defines this for functions which it implements
13464 to always fail with ENOSYS. Some functions are actually named
13465 something starting with __ and the normal name is an alias. */
13466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13467 choke me
13468 #else
13469 $ac_func();
13470 #endif
13472 ; return 0; }
13474 if { (eval echo configure:13475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13475 rm -rf conftest*
13476 eval "ac_cv_func_$ac_func=yes"
13477 else
13478 echo "configure: failed program was:" >&5
13479 cat conftest.$ac_ext >&5
13480 rm -rf conftest*
13481 eval "ac_cv_func_$ac_func=no"
13483 rm -f conftest*
13486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13487 echo "$ac_t""yes" 1>&6
13488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13489 cat >> confdefs.h <<EOF
13490 #define $ac_tr_func 1
13493 else
13494 echo "$ac_t""no" 1>&6
13496 done
13503 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13504 echo "configure:13505: checking for fabsf declaration" >&5
13505 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13506 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13507 echo $ac_n "(cached) $ac_c" 1>&6
13508 else
13511 ac_ext=C
13512 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13513 ac_cpp='$CXXCPP $CPPFLAGS'
13514 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13515 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13516 cross_compiling=$ac_cv_prog_cxx_cross
13518 cat > conftest.$ac_ext <<EOF
13519 #line 13520 "configure"
13520 #include "confdefs.h"
13521 #include <math.h>
13522 #ifdef HAVE_IEEEFP_H
13523 #include <ieeefp.h>
13524 #endif
13526 int main() {
13527 fabsf(0);
13528 ; return 0; }
13530 if { (eval echo configure:13531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13531 rm -rf conftest*
13532 glibcpp_cv_func_fabsf_use=yes
13533 else
13534 echo "configure: failed program was:" >&5
13535 cat conftest.$ac_ext >&5
13536 rm -rf conftest*
13537 glibcpp_cv_func_fabsf_use=no
13539 rm -f conftest*
13540 ac_ext=c
13541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13542 ac_cpp='$CPP $CPPFLAGS'
13543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13545 cross_compiling=$ac_cv_prog_cc_cross
13551 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13553 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13554 for ac_func in fabsf
13556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13557 echo "configure:13558: checking for $ac_func" >&5
13558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13559 echo $ac_n "(cached) $ac_c" 1>&6
13560 else
13561 cat > conftest.$ac_ext <<EOF
13562 #line 13563 "configure"
13563 #include "confdefs.h"
13564 /* System header to define __stub macros and hopefully few prototypes,
13565 which can conflict with char $ac_func(); below. */
13566 #include <assert.h>
13567 /* Override any gcc2 internal prototype to avoid an error. */
13568 /* We use char because int might match the return type of a gcc2
13569 builtin and then its argument prototype would still apply. */
13570 char $ac_func();
13572 int main() {
13574 /* The GNU C library defines this for functions which it implements
13575 to always fail with ENOSYS. Some functions are actually named
13576 something starting with __ and the normal name is an alias. */
13577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13578 choke me
13579 #else
13580 $ac_func();
13581 #endif
13583 ; return 0; }
13585 if { (eval echo configure:13586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13586 rm -rf conftest*
13587 eval "ac_cv_func_$ac_func=yes"
13588 else
13589 echo "configure: failed program was:" >&5
13590 cat conftest.$ac_ext >&5
13591 rm -rf conftest*
13592 eval "ac_cv_func_$ac_func=no"
13594 rm -f conftest*
13597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13598 echo "$ac_t""yes" 1>&6
13599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13600 cat >> confdefs.h <<EOF
13601 #define $ac_tr_func 1
13604 else
13605 echo "$ac_t""no" 1>&6
13607 done
13609 else
13611 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13612 echo "configure:13613: checking for _fabsf declaration" >&5
13613 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13614 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13615 echo $ac_n "(cached) $ac_c" 1>&6
13616 else
13619 ac_ext=C
13620 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13621 ac_cpp='$CXXCPP $CPPFLAGS'
13622 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13623 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13624 cross_compiling=$ac_cv_prog_cxx_cross
13626 cat > conftest.$ac_ext <<EOF
13627 #line 13628 "configure"
13628 #include "confdefs.h"
13629 #include <math.h>
13630 #ifdef HAVE_IEEEFP_H
13631 #include <ieeefp.h>
13632 #endif
13634 int main() {
13635 _fabsf(0);
13636 ; return 0; }
13638 if { (eval echo configure:13639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13639 rm -rf conftest*
13640 glibcpp_cv_func__fabsf_use=yes
13641 else
13642 echo "configure: failed program was:" >&5
13643 cat conftest.$ac_ext >&5
13644 rm -rf conftest*
13645 glibcpp_cv_func__fabsf_use=no
13647 rm -f conftest*
13648 ac_ext=c
13649 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13650 ac_cpp='$CPP $CPPFLAGS'
13651 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13652 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13653 cross_compiling=$ac_cv_prog_cc_cross
13659 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13661 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13662 for ac_func in _fabsf
13664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13665 echo "configure:13666: checking for $ac_func" >&5
13666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13667 echo $ac_n "(cached) $ac_c" 1>&6
13668 else
13669 cat > conftest.$ac_ext <<EOF
13670 #line 13671 "configure"
13671 #include "confdefs.h"
13672 /* System header to define __stub macros and hopefully few prototypes,
13673 which can conflict with char $ac_func(); below. */
13674 #include <assert.h>
13675 /* Override any gcc2 internal prototype to avoid an error. */
13676 /* We use char because int might match the return type of a gcc2
13677 builtin and then its argument prototype would still apply. */
13678 char $ac_func();
13680 int main() {
13682 /* The GNU C library defines this for functions which it implements
13683 to always fail with ENOSYS. Some functions are actually named
13684 something starting with __ and the normal name is an alias. */
13685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13686 choke me
13687 #else
13688 $ac_func();
13689 #endif
13691 ; return 0; }
13693 if { (eval echo configure:13694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13694 rm -rf conftest*
13695 eval "ac_cv_func_$ac_func=yes"
13696 else
13697 echo "configure: failed program was:" >&5
13698 cat conftest.$ac_ext >&5
13699 rm -rf conftest*
13700 eval "ac_cv_func_$ac_func=no"
13702 rm -f conftest*
13705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13706 echo "$ac_t""yes" 1>&6
13707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13708 cat >> confdefs.h <<EOF
13709 #define $ac_tr_func 1
13712 else
13713 echo "$ac_t""no" 1>&6
13715 done
13722 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13723 echo "configure:13724: checking for fmodf declaration" >&5
13724 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13725 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13726 echo $ac_n "(cached) $ac_c" 1>&6
13727 else
13730 ac_ext=C
13731 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13732 ac_cpp='$CXXCPP $CPPFLAGS'
13733 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13734 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13735 cross_compiling=$ac_cv_prog_cxx_cross
13737 cat > conftest.$ac_ext <<EOF
13738 #line 13739 "configure"
13739 #include "confdefs.h"
13740 #include <math.h>
13741 int main() {
13742 fmodf(0, 0);
13743 ; return 0; }
13745 if { (eval echo configure:13746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13746 rm -rf conftest*
13747 glibcpp_cv_func_fmodf_use=yes
13748 else
13749 echo "configure: failed program was:" >&5
13750 cat conftest.$ac_ext >&5
13751 rm -rf conftest*
13752 glibcpp_cv_func_fmodf_use=no
13754 rm -f conftest*
13755 ac_ext=c
13756 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13757 ac_cpp='$CPP $CPPFLAGS'
13758 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13759 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13760 cross_compiling=$ac_cv_prog_cc_cross
13766 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13768 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13769 for ac_func in fmodf
13771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13772 echo "configure:13773: checking for $ac_func" >&5
13773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13774 echo $ac_n "(cached) $ac_c" 1>&6
13775 else
13776 cat > conftest.$ac_ext <<EOF
13777 #line 13778 "configure"
13778 #include "confdefs.h"
13779 /* System header to define __stub macros and hopefully few prototypes,
13780 which can conflict with char $ac_func(); below. */
13781 #include <assert.h>
13782 /* Override any gcc2 internal prototype to avoid an error. */
13783 /* We use char because int might match the return type of a gcc2
13784 builtin and then its argument prototype would still apply. */
13785 char $ac_func();
13787 int main() {
13789 /* The GNU C library defines this for functions which it implements
13790 to always fail with ENOSYS. Some functions are actually named
13791 something starting with __ and the normal name is an alias. */
13792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13793 choke me
13794 #else
13795 $ac_func();
13796 #endif
13798 ; return 0; }
13800 if { (eval echo configure:13801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13801 rm -rf conftest*
13802 eval "ac_cv_func_$ac_func=yes"
13803 else
13804 echo "configure: failed program was:" >&5
13805 cat conftest.$ac_ext >&5
13806 rm -rf conftest*
13807 eval "ac_cv_func_$ac_func=no"
13809 rm -f conftest*
13812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13813 echo "$ac_t""yes" 1>&6
13814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13815 cat >> confdefs.h <<EOF
13816 #define $ac_tr_func 1
13819 else
13820 echo "$ac_t""no" 1>&6
13822 done
13824 else
13826 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13827 echo "configure:13828: checking for _fmodf declaration" >&5
13828 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13829 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13830 echo $ac_n "(cached) $ac_c" 1>&6
13831 else
13834 ac_ext=C
13835 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13836 ac_cpp='$CXXCPP $CPPFLAGS'
13837 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13838 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13839 cross_compiling=$ac_cv_prog_cxx_cross
13841 cat > conftest.$ac_ext <<EOF
13842 #line 13843 "configure"
13843 #include "confdefs.h"
13844 #include <math.h>
13845 int main() {
13846 _fmodf(0, 0);
13847 ; return 0; }
13849 if { (eval echo configure:13850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13850 rm -rf conftest*
13851 glibcpp_cv_func__fmodf_use=yes
13852 else
13853 echo "configure: failed program was:" >&5
13854 cat conftest.$ac_ext >&5
13855 rm -rf conftest*
13856 glibcpp_cv_func__fmodf_use=no
13858 rm -f conftest*
13859 ac_ext=c
13860 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13861 ac_cpp='$CPP $CPPFLAGS'
13862 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13863 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13864 cross_compiling=$ac_cv_prog_cc_cross
13870 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13872 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13873 for ac_func in _fmodf
13875 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13876 echo "configure:13877: checking for $ac_func" >&5
13877 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13878 echo $ac_n "(cached) $ac_c" 1>&6
13879 else
13880 cat > conftest.$ac_ext <<EOF
13881 #line 13882 "configure"
13882 #include "confdefs.h"
13883 /* System header to define __stub macros and hopefully few prototypes,
13884 which can conflict with char $ac_func(); below. */
13885 #include <assert.h>
13886 /* Override any gcc2 internal prototype to avoid an error. */
13887 /* We use char because int might match the return type of a gcc2
13888 builtin and then its argument prototype would still apply. */
13889 char $ac_func();
13891 int main() {
13893 /* The GNU C library defines this for functions which it implements
13894 to always fail with ENOSYS. Some functions are actually named
13895 something starting with __ and the normal name is an alias. */
13896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13897 choke me
13898 #else
13899 $ac_func();
13900 #endif
13902 ; return 0; }
13904 if { (eval echo configure:13905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13905 rm -rf conftest*
13906 eval "ac_cv_func_$ac_func=yes"
13907 else
13908 echo "configure: failed program was:" >&5
13909 cat conftest.$ac_ext >&5
13910 rm -rf conftest*
13911 eval "ac_cv_func_$ac_func=no"
13913 rm -f conftest*
13916 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13917 echo "$ac_t""yes" 1>&6
13918 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13919 cat >> confdefs.h <<EOF
13920 #define $ac_tr_func 1
13923 else
13924 echo "$ac_t""no" 1>&6
13926 done
13933 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13934 echo "configure:13935: checking for frexpf declaration" >&5
13935 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13936 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13937 echo $ac_n "(cached) $ac_c" 1>&6
13938 else
13941 ac_ext=C
13942 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13943 ac_cpp='$CXXCPP $CPPFLAGS'
13944 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13945 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13946 cross_compiling=$ac_cv_prog_cxx_cross
13948 cat > conftest.$ac_ext <<EOF
13949 #line 13950 "configure"
13950 #include "confdefs.h"
13951 #include <math.h>
13952 int main() {
13953 frexpf(0, 0);
13954 ; return 0; }
13956 if { (eval echo configure:13957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13957 rm -rf conftest*
13958 glibcpp_cv_func_frexpf_use=yes
13959 else
13960 echo "configure: failed program was:" >&5
13961 cat conftest.$ac_ext >&5
13962 rm -rf conftest*
13963 glibcpp_cv_func_frexpf_use=no
13965 rm -f conftest*
13966 ac_ext=c
13967 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13968 ac_cpp='$CPP $CPPFLAGS'
13969 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13970 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13971 cross_compiling=$ac_cv_prog_cc_cross
13977 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
13979 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
13980 for ac_func in frexpf
13982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13983 echo "configure:13984: checking for $ac_func" >&5
13984 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13985 echo $ac_n "(cached) $ac_c" 1>&6
13986 else
13987 cat > conftest.$ac_ext <<EOF
13988 #line 13989 "configure"
13989 #include "confdefs.h"
13990 /* System header to define __stub macros and hopefully few prototypes,
13991 which can conflict with char $ac_func(); below. */
13992 #include <assert.h>
13993 /* Override any gcc2 internal prototype to avoid an error. */
13994 /* We use char because int might match the return type of a gcc2
13995 builtin and then its argument prototype would still apply. */
13996 char $ac_func();
13998 int main() {
14000 /* The GNU C library defines this for functions which it implements
14001 to always fail with ENOSYS. Some functions are actually named
14002 something starting with __ and the normal name is an alias. */
14003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14004 choke me
14005 #else
14006 $ac_func();
14007 #endif
14009 ; return 0; }
14011 if { (eval echo configure:14012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14012 rm -rf conftest*
14013 eval "ac_cv_func_$ac_func=yes"
14014 else
14015 echo "configure: failed program was:" >&5
14016 cat conftest.$ac_ext >&5
14017 rm -rf conftest*
14018 eval "ac_cv_func_$ac_func=no"
14020 rm -f conftest*
14023 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14024 echo "$ac_t""yes" 1>&6
14025 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14026 cat >> confdefs.h <<EOF
14027 #define $ac_tr_func 1
14030 else
14031 echo "$ac_t""no" 1>&6
14033 done
14035 else
14037 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14038 echo "configure:14039: checking for _frexpf declaration" >&5
14039 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14040 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14041 echo $ac_n "(cached) $ac_c" 1>&6
14042 else
14045 ac_ext=C
14046 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14047 ac_cpp='$CXXCPP $CPPFLAGS'
14048 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14049 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14050 cross_compiling=$ac_cv_prog_cxx_cross
14052 cat > conftest.$ac_ext <<EOF
14053 #line 14054 "configure"
14054 #include "confdefs.h"
14055 #include <math.h>
14056 int main() {
14057 _frexpf(0, 0);
14058 ; return 0; }
14060 if { (eval echo configure:14061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14061 rm -rf conftest*
14062 glibcpp_cv_func__frexpf_use=yes
14063 else
14064 echo "configure: failed program was:" >&5
14065 cat conftest.$ac_ext >&5
14066 rm -rf conftest*
14067 glibcpp_cv_func__frexpf_use=no
14069 rm -f conftest*
14070 ac_ext=c
14071 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14072 ac_cpp='$CPP $CPPFLAGS'
14073 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14074 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14075 cross_compiling=$ac_cv_prog_cc_cross
14081 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14083 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14084 for ac_func in _frexpf
14086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14087 echo "configure:14088: checking for $ac_func" >&5
14088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14089 echo $ac_n "(cached) $ac_c" 1>&6
14090 else
14091 cat > conftest.$ac_ext <<EOF
14092 #line 14093 "configure"
14093 #include "confdefs.h"
14094 /* System header to define __stub macros and hopefully few prototypes,
14095 which can conflict with char $ac_func(); below. */
14096 #include <assert.h>
14097 /* Override any gcc2 internal prototype to avoid an error. */
14098 /* We use char because int might match the return type of a gcc2
14099 builtin and then its argument prototype would still apply. */
14100 char $ac_func();
14102 int main() {
14104 /* The GNU C library defines this for functions which it implements
14105 to always fail with ENOSYS. Some functions are actually named
14106 something starting with __ and the normal name is an alias. */
14107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14108 choke me
14109 #else
14110 $ac_func();
14111 #endif
14113 ; return 0; }
14115 if { (eval echo configure:14116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14116 rm -rf conftest*
14117 eval "ac_cv_func_$ac_func=yes"
14118 else
14119 echo "configure: failed program was:" >&5
14120 cat conftest.$ac_ext >&5
14121 rm -rf conftest*
14122 eval "ac_cv_func_$ac_func=no"
14124 rm -f conftest*
14127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14128 echo "$ac_t""yes" 1>&6
14129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14130 cat >> confdefs.h <<EOF
14131 #define $ac_tr_func 1
14134 else
14135 echo "$ac_t""no" 1>&6
14137 done
14144 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14145 echo "configure:14146: checking for hypotf declaration" >&5
14146 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14147 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14148 echo $ac_n "(cached) $ac_c" 1>&6
14149 else
14152 ac_ext=C
14153 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14154 ac_cpp='$CXXCPP $CPPFLAGS'
14155 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14156 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14157 cross_compiling=$ac_cv_prog_cxx_cross
14159 cat > conftest.$ac_ext <<EOF
14160 #line 14161 "configure"
14161 #include "confdefs.h"
14162 #include <math.h>
14163 int main() {
14164 hypotf(0, 0);
14165 ; return 0; }
14167 if { (eval echo configure:14168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14168 rm -rf conftest*
14169 glibcpp_cv_func_hypotf_use=yes
14170 else
14171 echo "configure: failed program was:" >&5
14172 cat conftest.$ac_ext >&5
14173 rm -rf conftest*
14174 glibcpp_cv_func_hypotf_use=no
14176 rm -f conftest*
14177 ac_ext=c
14178 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14179 ac_cpp='$CPP $CPPFLAGS'
14180 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14181 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14182 cross_compiling=$ac_cv_prog_cc_cross
14188 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14190 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14191 for ac_func in hypotf
14193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14194 echo "configure:14195: checking for $ac_func" >&5
14195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14196 echo $ac_n "(cached) $ac_c" 1>&6
14197 else
14198 cat > conftest.$ac_ext <<EOF
14199 #line 14200 "configure"
14200 #include "confdefs.h"
14201 /* System header to define __stub macros and hopefully few prototypes,
14202 which can conflict with char $ac_func(); below. */
14203 #include <assert.h>
14204 /* Override any gcc2 internal prototype to avoid an error. */
14205 /* We use char because int might match the return type of a gcc2
14206 builtin and then its argument prototype would still apply. */
14207 char $ac_func();
14209 int main() {
14211 /* The GNU C library defines this for functions which it implements
14212 to always fail with ENOSYS. Some functions are actually named
14213 something starting with __ and the normal name is an alias. */
14214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14215 choke me
14216 #else
14217 $ac_func();
14218 #endif
14220 ; return 0; }
14222 if { (eval echo configure:14223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14223 rm -rf conftest*
14224 eval "ac_cv_func_$ac_func=yes"
14225 else
14226 echo "configure: failed program was:" >&5
14227 cat conftest.$ac_ext >&5
14228 rm -rf conftest*
14229 eval "ac_cv_func_$ac_func=no"
14231 rm -f conftest*
14234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14235 echo "$ac_t""yes" 1>&6
14236 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14237 cat >> confdefs.h <<EOF
14238 #define $ac_tr_func 1
14241 else
14242 echo "$ac_t""no" 1>&6
14244 done
14246 else
14248 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14249 echo "configure:14250: checking for _hypotf declaration" >&5
14250 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14251 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14252 echo $ac_n "(cached) $ac_c" 1>&6
14253 else
14256 ac_ext=C
14257 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14258 ac_cpp='$CXXCPP $CPPFLAGS'
14259 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14260 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14261 cross_compiling=$ac_cv_prog_cxx_cross
14263 cat > conftest.$ac_ext <<EOF
14264 #line 14265 "configure"
14265 #include "confdefs.h"
14266 #include <math.h>
14267 int main() {
14268 _hypotf(0, 0);
14269 ; return 0; }
14271 if { (eval echo configure:14272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14272 rm -rf conftest*
14273 glibcpp_cv_func__hypotf_use=yes
14274 else
14275 echo "configure: failed program was:" >&5
14276 cat conftest.$ac_ext >&5
14277 rm -rf conftest*
14278 glibcpp_cv_func__hypotf_use=no
14280 rm -f conftest*
14281 ac_ext=c
14282 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14283 ac_cpp='$CPP $CPPFLAGS'
14284 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14285 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14286 cross_compiling=$ac_cv_prog_cc_cross
14292 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14294 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14295 for ac_func in _hypotf
14297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14298 echo "configure:14299: checking for $ac_func" >&5
14299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14300 echo $ac_n "(cached) $ac_c" 1>&6
14301 else
14302 cat > conftest.$ac_ext <<EOF
14303 #line 14304 "configure"
14304 #include "confdefs.h"
14305 /* System header to define __stub macros and hopefully few prototypes,
14306 which can conflict with char $ac_func(); below. */
14307 #include <assert.h>
14308 /* Override any gcc2 internal prototype to avoid an error. */
14309 /* We use char because int might match the return type of a gcc2
14310 builtin and then its argument prototype would still apply. */
14311 char $ac_func();
14313 int main() {
14315 /* The GNU C library defines this for functions which it implements
14316 to always fail with ENOSYS. Some functions are actually named
14317 something starting with __ and the normal name is an alias. */
14318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14319 choke me
14320 #else
14321 $ac_func();
14322 #endif
14324 ; return 0; }
14326 if { (eval echo configure:14327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14327 rm -rf conftest*
14328 eval "ac_cv_func_$ac_func=yes"
14329 else
14330 echo "configure: failed program was:" >&5
14331 cat conftest.$ac_ext >&5
14332 rm -rf conftest*
14333 eval "ac_cv_func_$ac_func=no"
14335 rm -f conftest*
14338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14339 echo "$ac_t""yes" 1>&6
14340 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14341 cat >> confdefs.h <<EOF
14342 #define $ac_tr_func 1
14345 else
14346 echo "$ac_t""no" 1>&6
14348 done
14355 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14356 echo "configure:14357: checking for ldexpf declaration" >&5
14357 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14358 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14359 echo $ac_n "(cached) $ac_c" 1>&6
14360 else
14363 ac_ext=C
14364 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14365 ac_cpp='$CXXCPP $CPPFLAGS'
14366 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14367 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14368 cross_compiling=$ac_cv_prog_cxx_cross
14370 cat > conftest.$ac_ext <<EOF
14371 #line 14372 "configure"
14372 #include "confdefs.h"
14373 #include <math.h>
14374 int main() {
14375 ldexpf(0, 0);
14376 ; return 0; }
14378 if { (eval echo configure:14379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14379 rm -rf conftest*
14380 glibcpp_cv_func_ldexpf_use=yes
14381 else
14382 echo "configure: failed program was:" >&5
14383 cat conftest.$ac_ext >&5
14384 rm -rf conftest*
14385 glibcpp_cv_func_ldexpf_use=no
14387 rm -f conftest*
14388 ac_ext=c
14389 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14390 ac_cpp='$CPP $CPPFLAGS'
14391 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14392 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14393 cross_compiling=$ac_cv_prog_cc_cross
14399 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14401 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14402 for ac_func in ldexpf
14404 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14405 echo "configure:14406: checking for $ac_func" >&5
14406 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14407 echo $ac_n "(cached) $ac_c" 1>&6
14408 else
14409 cat > conftest.$ac_ext <<EOF
14410 #line 14411 "configure"
14411 #include "confdefs.h"
14412 /* System header to define __stub macros and hopefully few prototypes,
14413 which can conflict with char $ac_func(); below. */
14414 #include <assert.h>
14415 /* Override any gcc2 internal prototype to avoid an error. */
14416 /* We use char because int might match the return type of a gcc2
14417 builtin and then its argument prototype would still apply. */
14418 char $ac_func();
14420 int main() {
14422 /* The GNU C library defines this for functions which it implements
14423 to always fail with ENOSYS. Some functions are actually named
14424 something starting with __ and the normal name is an alias. */
14425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14426 choke me
14427 #else
14428 $ac_func();
14429 #endif
14431 ; return 0; }
14433 if { (eval echo configure:14434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14434 rm -rf conftest*
14435 eval "ac_cv_func_$ac_func=yes"
14436 else
14437 echo "configure: failed program was:" >&5
14438 cat conftest.$ac_ext >&5
14439 rm -rf conftest*
14440 eval "ac_cv_func_$ac_func=no"
14442 rm -f conftest*
14445 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14446 echo "$ac_t""yes" 1>&6
14447 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14448 cat >> confdefs.h <<EOF
14449 #define $ac_tr_func 1
14452 else
14453 echo "$ac_t""no" 1>&6
14455 done
14457 else
14459 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14460 echo "configure:14461: checking for _ldexpf declaration" >&5
14461 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14462 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14463 echo $ac_n "(cached) $ac_c" 1>&6
14464 else
14467 ac_ext=C
14468 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14469 ac_cpp='$CXXCPP $CPPFLAGS'
14470 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14471 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14472 cross_compiling=$ac_cv_prog_cxx_cross
14474 cat > conftest.$ac_ext <<EOF
14475 #line 14476 "configure"
14476 #include "confdefs.h"
14477 #include <math.h>
14478 int main() {
14479 _ldexpf(0, 0);
14480 ; return 0; }
14482 if { (eval echo configure:14483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14483 rm -rf conftest*
14484 glibcpp_cv_func__ldexpf_use=yes
14485 else
14486 echo "configure: failed program was:" >&5
14487 cat conftest.$ac_ext >&5
14488 rm -rf conftest*
14489 glibcpp_cv_func__ldexpf_use=no
14491 rm -f conftest*
14492 ac_ext=c
14493 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14494 ac_cpp='$CPP $CPPFLAGS'
14495 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14496 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14497 cross_compiling=$ac_cv_prog_cc_cross
14503 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14505 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14506 for ac_func in _ldexpf
14508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14509 echo "configure:14510: checking for $ac_func" >&5
14510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14511 echo $ac_n "(cached) $ac_c" 1>&6
14512 else
14513 cat > conftest.$ac_ext <<EOF
14514 #line 14515 "configure"
14515 #include "confdefs.h"
14516 /* System header to define __stub macros and hopefully few prototypes,
14517 which can conflict with char $ac_func(); below. */
14518 #include <assert.h>
14519 /* Override any gcc2 internal prototype to avoid an error. */
14520 /* We use char because int might match the return type of a gcc2
14521 builtin and then its argument prototype would still apply. */
14522 char $ac_func();
14524 int main() {
14526 /* The GNU C library defines this for functions which it implements
14527 to always fail with ENOSYS. Some functions are actually named
14528 something starting with __ and the normal name is an alias. */
14529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14530 choke me
14531 #else
14532 $ac_func();
14533 #endif
14535 ; return 0; }
14537 if { (eval echo configure:14538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14538 rm -rf conftest*
14539 eval "ac_cv_func_$ac_func=yes"
14540 else
14541 echo "configure: failed program was:" >&5
14542 cat conftest.$ac_ext >&5
14543 rm -rf conftest*
14544 eval "ac_cv_func_$ac_func=no"
14546 rm -f conftest*
14549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14550 echo "$ac_t""yes" 1>&6
14551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14552 cat >> confdefs.h <<EOF
14553 #define $ac_tr_func 1
14556 else
14557 echo "$ac_t""no" 1>&6
14559 done
14566 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14567 echo "configure:14568: checking for logf declaration" >&5
14568 if test x${glibcpp_cv_func_logf_use+set} != xset; then
14569 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14570 echo $ac_n "(cached) $ac_c" 1>&6
14571 else
14574 ac_ext=C
14575 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14576 ac_cpp='$CXXCPP $CPPFLAGS'
14577 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14578 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14579 cross_compiling=$ac_cv_prog_cxx_cross
14581 cat > conftest.$ac_ext <<EOF
14582 #line 14583 "configure"
14583 #include "confdefs.h"
14584 #include <math.h>
14585 #ifdef HAVE_IEEEFP_H
14586 #include <ieeefp.h>
14587 #endif
14589 int main() {
14590 logf(0);
14591 ; return 0; }
14593 if { (eval echo configure:14594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14594 rm -rf conftest*
14595 glibcpp_cv_func_logf_use=yes
14596 else
14597 echo "configure: failed program was:" >&5
14598 cat conftest.$ac_ext >&5
14599 rm -rf conftest*
14600 glibcpp_cv_func_logf_use=no
14602 rm -f conftest*
14603 ac_ext=c
14604 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14605 ac_cpp='$CPP $CPPFLAGS'
14606 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14607 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14608 cross_compiling=$ac_cv_prog_cc_cross
14614 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14616 if test x$glibcpp_cv_func_logf_use = x"yes"; then
14617 for ac_func in logf
14619 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14620 echo "configure:14621: checking for $ac_func" >&5
14621 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14622 echo $ac_n "(cached) $ac_c" 1>&6
14623 else
14624 cat > conftest.$ac_ext <<EOF
14625 #line 14626 "configure"
14626 #include "confdefs.h"
14627 /* System header to define __stub macros and hopefully few prototypes,
14628 which can conflict with char $ac_func(); below. */
14629 #include <assert.h>
14630 /* Override any gcc2 internal prototype to avoid an error. */
14631 /* We use char because int might match the return type of a gcc2
14632 builtin and then its argument prototype would still apply. */
14633 char $ac_func();
14635 int main() {
14637 /* The GNU C library defines this for functions which it implements
14638 to always fail with ENOSYS. Some functions are actually named
14639 something starting with __ and the normal name is an alias. */
14640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14641 choke me
14642 #else
14643 $ac_func();
14644 #endif
14646 ; return 0; }
14648 if { (eval echo configure:14649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14649 rm -rf conftest*
14650 eval "ac_cv_func_$ac_func=yes"
14651 else
14652 echo "configure: failed program was:" >&5
14653 cat conftest.$ac_ext >&5
14654 rm -rf conftest*
14655 eval "ac_cv_func_$ac_func=no"
14657 rm -f conftest*
14660 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14661 echo "$ac_t""yes" 1>&6
14662 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14663 cat >> confdefs.h <<EOF
14664 #define $ac_tr_func 1
14667 else
14668 echo "$ac_t""no" 1>&6
14670 done
14672 else
14674 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14675 echo "configure:14676: checking for _logf declaration" >&5
14676 if test x${glibcpp_cv_func__logf_use+set} != xset; then
14677 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14678 echo $ac_n "(cached) $ac_c" 1>&6
14679 else
14682 ac_ext=C
14683 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14684 ac_cpp='$CXXCPP $CPPFLAGS'
14685 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14686 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14687 cross_compiling=$ac_cv_prog_cxx_cross
14689 cat > conftest.$ac_ext <<EOF
14690 #line 14691 "configure"
14691 #include "confdefs.h"
14692 #include <math.h>
14693 #ifdef HAVE_IEEEFP_H
14694 #include <ieeefp.h>
14695 #endif
14697 int main() {
14698 _logf(0);
14699 ; return 0; }
14701 if { (eval echo configure:14702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14702 rm -rf conftest*
14703 glibcpp_cv_func__logf_use=yes
14704 else
14705 echo "configure: failed program was:" >&5
14706 cat conftest.$ac_ext >&5
14707 rm -rf conftest*
14708 glibcpp_cv_func__logf_use=no
14710 rm -f conftest*
14711 ac_ext=c
14712 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14713 ac_cpp='$CPP $CPPFLAGS'
14714 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14715 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14716 cross_compiling=$ac_cv_prog_cc_cross
14722 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14724 if test x$glibcpp_cv_func__logf_use = x"yes"; then
14725 for ac_func in _logf
14727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14728 echo "configure:14729: checking for $ac_func" >&5
14729 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14730 echo $ac_n "(cached) $ac_c" 1>&6
14731 else
14732 cat > conftest.$ac_ext <<EOF
14733 #line 14734 "configure"
14734 #include "confdefs.h"
14735 /* System header to define __stub macros and hopefully few prototypes,
14736 which can conflict with char $ac_func(); below. */
14737 #include <assert.h>
14738 /* Override any gcc2 internal prototype to avoid an error. */
14739 /* We use char because int might match the return type of a gcc2
14740 builtin and then its argument prototype would still apply. */
14741 char $ac_func();
14743 int main() {
14745 /* The GNU C library defines this for functions which it implements
14746 to always fail with ENOSYS. Some functions are actually named
14747 something starting with __ and the normal name is an alias. */
14748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14749 choke me
14750 #else
14751 $ac_func();
14752 #endif
14754 ; return 0; }
14756 if { (eval echo configure:14757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14757 rm -rf conftest*
14758 eval "ac_cv_func_$ac_func=yes"
14759 else
14760 echo "configure: failed program was:" >&5
14761 cat conftest.$ac_ext >&5
14762 rm -rf conftest*
14763 eval "ac_cv_func_$ac_func=no"
14765 rm -f conftest*
14768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14769 echo "$ac_t""yes" 1>&6
14770 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14771 cat >> confdefs.h <<EOF
14772 #define $ac_tr_func 1
14775 else
14776 echo "$ac_t""no" 1>&6
14778 done
14785 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14786 echo "configure:14787: checking for log10f declaration" >&5
14787 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14788 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14789 echo $ac_n "(cached) $ac_c" 1>&6
14790 else
14793 ac_ext=C
14794 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14795 ac_cpp='$CXXCPP $CPPFLAGS'
14796 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14797 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14798 cross_compiling=$ac_cv_prog_cxx_cross
14800 cat > conftest.$ac_ext <<EOF
14801 #line 14802 "configure"
14802 #include "confdefs.h"
14803 #include <math.h>
14804 #ifdef HAVE_IEEEFP_H
14805 #include <ieeefp.h>
14806 #endif
14808 int main() {
14809 log10f(0);
14810 ; return 0; }
14812 if { (eval echo configure:14813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14813 rm -rf conftest*
14814 glibcpp_cv_func_log10f_use=yes
14815 else
14816 echo "configure: failed program was:" >&5
14817 cat conftest.$ac_ext >&5
14818 rm -rf conftest*
14819 glibcpp_cv_func_log10f_use=no
14821 rm -f conftest*
14822 ac_ext=c
14823 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14824 ac_cpp='$CPP $CPPFLAGS'
14825 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14826 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14827 cross_compiling=$ac_cv_prog_cc_cross
14833 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14835 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14836 for ac_func in log10f
14838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14839 echo "configure:14840: checking for $ac_func" >&5
14840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14841 echo $ac_n "(cached) $ac_c" 1>&6
14842 else
14843 cat > conftest.$ac_ext <<EOF
14844 #line 14845 "configure"
14845 #include "confdefs.h"
14846 /* System header to define __stub macros and hopefully few prototypes,
14847 which can conflict with char $ac_func(); below. */
14848 #include <assert.h>
14849 /* Override any gcc2 internal prototype to avoid an error. */
14850 /* We use char because int might match the return type of a gcc2
14851 builtin and then its argument prototype would still apply. */
14852 char $ac_func();
14854 int main() {
14856 /* The GNU C library defines this for functions which it implements
14857 to always fail with ENOSYS. Some functions are actually named
14858 something starting with __ and the normal name is an alias. */
14859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14860 choke me
14861 #else
14862 $ac_func();
14863 #endif
14865 ; return 0; }
14867 if { (eval echo configure:14868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14868 rm -rf conftest*
14869 eval "ac_cv_func_$ac_func=yes"
14870 else
14871 echo "configure: failed program was:" >&5
14872 cat conftest.$ac_ext >&5
14873 rm -rf conftest*
14874 eval "ac_cv_func_$ac_func=no"
14876 rm -f conftest*
14879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14880 echo "$ac_t""yes" 1>&6
14881 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14882 cat >> confdefs.h <<EOF
14883 #define $ac_tr_func 1
14886 else
14887 echo "$ac_t""no" 1>&6
14889 done
14891 else
14893 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14894 echo "configure:14895: checking for _log10f declaration" >&5
14895 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14896 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14897 echo $ac_n "(cached) $ac_c" 1>&6
14898 else
14901 ac_ext=C
14902 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14903 ac_cpp='$CXXCPP $CPPFLAGS'
14904 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14905 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14906 cross_compiling=$ac_cv_prog_cxx_cross
14908 cat > conftest.$ac_ext <<EOF
14909 #line 14910 "configure"
14910 #include "confdefs.h"
14911 #include <math.h>
14912 #ifdef HAVE_IEEEFP_H
14913 #include <ieeefp.h>
14914 #endif
14916 int main() {
14917 _log10f(0);
14918 ; return 0; }
14920 if { (eval echo configure:14921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14921 rm -rf conftest*
14922 glibcpp_cv_func__log10f_use=yes
14923 else
14924 echo "configure: failed program was:" >&5
14925 cat conftest.$ac_ext >&5
14926 rm -rf conftest*
14927 glibcpp_cv_func__log10f_use=no
14929 rm -f conftest*
14930 ac_ext=c
14931 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14932 ac_cpp='$CPP $CPPFLAGS'
14933 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14934 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14935 cross_compiling=$ac_cv_prog_cc_cross
14941 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14943 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14944 for ac_func in _log10f
14946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14947 echo "configure:14948: checking for $ac_func" >&5
14948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14949 echo $ac_n "(cached) $ac_c" 1>&6
14950 else
14951 cat > conftest.$ac_ext <<EOF
14952 #line 14953 "configure"
14953 #include "confdefs.h"
14954 /* System header to define __stub macros and hopefully few prototypes,
14955 which can conflict with char $ac_func(); below. */
14956 #include <assert.h>
14957 /* Override any gcc2 internal prototype to avoid an error. */
14958 /* We use char because int might match the return type of a gcc2
14959 builtin and then its argument prototype would still apply. */
14960 char $ac_func();
14962 int main() {
14964 /* The GNU C library defines this for functions which it implements
14965 to always fail with ENOSYS. Some functions are actually named
14966 something starting with __ and the normal name is an alias. */
14967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14968 choke me
14969 #else
14970 $ac_func();
14971 #endif
14973 ; return 0; }
14975 if { (eval echo configure:14976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14976 rm -rf conftest*
14977 eval "ac_cv_func_$ac_func=yes"
14978 else
14979 echo "configure: failed program was:" >&5
14980 cat conftest.$ac_ext >&5
14981 rm -rf conftest*
14982 eval "ac_cv_func_$ac_func=no"
14984 rm -f conftest*
14987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14988 echo "$ac_t""yes" 1>&6
14989 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14990 cat >> confdefs.h <<EOF
14991 #define $ac_tr_func 1
14994 else
14995 echo "$ac_t""no" 1>&6
14997 done
15004 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15005 echo "configure:15006: checking for modff declaration" >&5
15006 if test x${glibcpp_cv_func_modff_use+set} != xset; then
15007 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15008 echo $ac_n "(cached) $ac_c" 1>&6
15009 else
15012 ac_ext=C
15013 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15014 ac_cpp='$CXXCPP $CPPFLAGS'
15015 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15016 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15017 cross_compiling=$ac_cv_prog_cxx_cross
15019 cat > conftest.$ac_ext <<EOF
15020 #line 15021 "configure"
15021 #include "confdefs.h"
15022 #include <math.h>
15023 int main() {
15024 modff(0, 0);
15025 ; return 0; }
15027 if { (eval echo configure:15028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15028 rm -rf conftest*
15029 glibcpp_cv_func_modff_use=yes
15030 else
15031 echo "configure: failed program was:" >&5
15032 cat conftest.$ac_ext >&5
15033 rm -rf conftest*
15034 glibcpp_cv_func_modff_use=no
15036 rm -f conftest*
15037 ac_ext=c
15038 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15039 ac_cpp='$CPP $CPPFLAGS'
15040 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15041 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15042 cross_compiling=$ac_cv_prog_cc_cross
15048 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15050 if test x$glibcpp_cv_func_modff_use = x"yes"; then
15051 for ac_func in modff
15053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15054 echo "configure:15055: checking for $ac_func" >&5
15055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15056 echo $ac_n "(cached) $ac_c" 1>&6
15057 else
15058 cat > conftest.$ac_ext <<EOF
15059 #line 15060 "configure"
15060 #include "confdefs.h"
15061 /* System header to define __stub macros and hopefully few prototypes,
15062 which can conflict with char $ac_func(); below. */
15063 #include <assert.h>
15064 /* Override any gcc2 internal prototype to avoid an error. */
15065 /* We use char because int might match the return type of a gcc2
15066 builtin and then its argument prototype would still apply. */
15067 char $ac_func();
15069 int main() {
15071 /* The GNU C library defines this for functions which it implements
15072 to always fail with ENOSYS. Some functions are actually named
15073 something starting with __ and the normal name is an alias. */
15074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15075 choke me
15076 #else
15077 $ac_func();
15078 #endif
15080 ; return 0; }
15082 if { (eval echo configure:15083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15083 rm -rf conftest*
15084 eval "ac_cv_func_$ac_func=yes"
15085 else
15086 echo "configure: failed program was:" >&5
15087 cat conftest.$ac_ext >&5
15088 rm -rf conftest*
15089 eval "ac_cv_func_$ac_func=no"
15091 rm -f conftest*
15094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15095 echo "$ac_t""yes" 1>&6
15096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15097 cat >> confdefs.h <<EOF
15098 #define $ac_tr_func 1
15101 else
15102 echo "$ac_t""no" 1>&6
15104 done
15106 else
15108 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15109 echo "configure:15110: checking for _modff declaration" >&5
15110 if test x${glibcpp_cv_func__modff_use+set} != xset; then
15111 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15112 echo $ac_n "(cached) $ac_c" 1>&6
15113 else
15116 ac_ext=C
15117 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15118 ac_cpp='$CXXCPP $CPPFLAGS'
15119 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15120 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15121 cross_compiling=$ac_cv_prog_cxx_cross
15123 cat > conftest.$ac_ext <<EOF
15124 #line 15125 "configure"
15125 #include "confdefs.h"
15126 #include <math.h>
15127 int main() {
15128 _modff(0, 0);
15129 ; return 0; }
15131 if { (eval echo configure:15132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15132 rm -rf conftest*
15133 glibcpp_cv_func__modff_use=yes
15134 else
15135 echo "configure: failed program was:" >&5
15136 cat conftest.$ac_ext >&5
15137 rm -rf conftest*
15138 glibcpp_cv_func__modff_use=no
15140 rm -f conftest*
15141 ac_ext=c
15142 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15143 ac_cpp='$CPP $CPPFLAGS'
15144 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15145 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15146 cross_compiling=$ac_cv_prog_cc_cross
15152 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15154 if test x$glibcpp_cv_func__modff_use = x"yes"; then
15155 for ac_func in _modff
15157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15158 echo "configure:15159: checking for $ac_func" >&5
15159 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15160 echo $ac_n "(cached) $ac_c" 1>&6
15161 else
15162 cat > conftest.$ac_ext <<EOF
15163 #line 15164 "configure"
15164 #include "confdefs.h"
15165 /* System header to define __stub macros and hopefully few prototypes,
15166 which can conflict with char $ac_func(); below. */
15167 #include <assert.h>
15168 /* Override any gcc2 internal prototype to avoid an error. */
15169 /* We use char because int might match the return type of a gcc2
15170 builtin and then its argument prototype would still apply. */
15171 char $ac_func();
15173 int main() {
15175 /* The GNU C library defines this for functions which it implements
15176 to always fail with ENOSYS. Some functions are actually named
15177 something starting with __ and the normal name is an alias. */
15178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15179 choke me
15180 #else
15181 $ac_func();
15182 #endif
15184 ; return 0; }
15186 if { (eval echo configure:15187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15187 rm -rf conftest*
15188 eval "ac_cv_func_$ac_func=yes"
15189 else
15190 echo "configure: failed program was:" >&5
15191 cat conftest.$ac_ext >&5
15192 rm -rf conftest*
15193 eval "ac_cv_func_$ac_func=no"
15195 rm -f conftest*
15198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15199 echo "$ac_t""yes" 1>&6
15200 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15201 cat >> confdefs.h <<EOF
15202 #define $ac_tr_func 1
15205 else
15206 echo "$ac_t""no" 1>&6
15208 done
15215 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15216 echo "configure:15217: checking for powf declaration" >&5
15217 if test x${glibcpp_cv_func_powf_use+set} != xset; then
15218 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15219 echo $ac_n "(cached) $ac_c" 1>&6
15220 else
15223 ac_ext=C
15224 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15225 ac_cpp='$CXXCPP $CPPFLAGS'
15226 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15227 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15228 cross_compiling=$ac_cv_prog_cxx_cross
15230 cat > conftest.$ac_ext <<EOF
15231 #line 15232 "configure"
15232 #include "confdefs.h"
15233 #include <math.h>
15234 int main() {
15235 powf(0, 0);
15236 ; return 0; }
15238 if { (eval echo configure:15239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15239 rm -rf conftest*
15240 glibcpp_cv_func_powf_use=yes
15241 else
15242 echo "configure: failed program was:" >&5
15243 cat conftest.$ac_ext >&5
15244 rm -rf conftest*
15245 glibcpp_cv_func_powf_use=no
15247 rm -f conftest*
15248 ac_ext=c
15249 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15250 ac_cpp='$CPP $CPPFLAGS'
15251 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15252 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15253 cross_compiling=$ac_cv_prog_cc_cross
15259 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15261 if test x$glibcpp_cv_func_powf_use = x"yes"; then
15262 for ac_func in powf
15264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15265 echo "configure:15266: checking for $ac_func" >&5
15266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15267 echo $ac_n "(cached) $ac_c" 1>&6
15268 else
15269 cat > conftest.$ac_ext <<EOF
15270 #line 15271 "configure"
15271 #include "confdefs.h"
15272 /* System header to define __stub macros and hopefully few prototypes,
15273 which can conflict with char $ac_func(); below. */
15274 #include <assert.h>
15275 /* Override any gcc2 internal prototype to avoid an error. */
15276 /* We use char because int might match the return type of a gcc2
15277 builtin and then its argument prototype would still apply. */
15278 char $ac_func();
15280 int main() {
15282 /* The GNU C library defines this for functions which it implements
15283 to always fail with ENOSYS. Some functions are actually named
15284 something starting with __ and the normal name is an alias. */
15285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15286 choke me
15287 #else
15288 $ac_func();
15289 #endif
15291 ; return 0; }
15293 if { (eval echo configure:15294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15294 rm -rf conftest*
15295 eval "ac_cv_func_$ac_func=yes"
15296 else
15297 echo "configure: failed program was:" >&5
15298 cat conftest.$ac_ext >&5
15299 rm -rf conftest*
15300 eval "ac_cv_func_$ac_func=no"
15302 rm -f conftest*
15305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15306 echo "$ac_t""yes" 1>&6
15307 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15308 cat >> confdefs.h <<EOF
15309 #define $ac_tr_func 1
15312 else
15313 echo "$ac_t""no" 1>&6
15315 done
15317 else
15319 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15320 echo "configure:15321: checking for _powf declaration" >&5
15321 if test x${glibcpp_cv_func__powf_use+set} != xset; then
15322 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15323 echo $ac_n "(cached) $ac_c" 1>&6
15324 else
15327 ac_ext=C
15328 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15329 ac_cpp='$CXXCPP $CPPFLAGS'
15330 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15331 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15332 cross_compiling=$ac_cv_prog_cxx_cross
15334 cat > conftest.$ac_ext <<EOF
15335 #line 15336 "configure"
15336 #include "confdefs.h"
15337 #include <math.h>
15338 int main() {
15339 _powf(0, 0);
15340 ; return 0; }
15342 if { (eval echo configure:15343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15343 rm -rf conftest*
15344 glibcpp_cv_func__powf_use=yes
15345 else
15346 echo "configure: failed program was:" >&5
15347 cat conftest.$ac_ext >&5
15348 rm -rf conftest*
15349 glibcpp_cv_func__powf_use=no
15351 rm -f conftest*
15352 ac_ext=c
15353 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15354 ac_cpp='$CPP $CPPFLAGS'
15355 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15356 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15357 cross_compiling=$ac_cv_prog_cc_cross
15363 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15365 if test x$glibcpp_cv_func__powf_use = x"yes"; then
15366 for ac_func in _powf
15368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15369 echo "configure:15370: checking for $ac_func" >&5
15370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15371 echo $ac_n "(cached) $ac_c" 1>&6
15372 else
15373 cat > conftest.$ac_ext <<EOF
15374 #line 15375 "configure"
15375 #include "confdefs.h"
15376 /* System header to define __stub macros and hopefully few prototypes,
15377 which can conflict with char $ac_func(); below. */
15378 #include <assert.h>
15379 /* Override any gcc2 internal prototype to avoid an error. */
15380 /* We use char because int might match the return type of a gcc2
15381 builtin and then its argument prototype would still apply. */
15382 char $ac_func();
15384 int main() {
15386 /* The GNU C library defines this for functions which it implements
15387 to always fail with ENOSYS. Some functions are actually named
15388 something starting with __ and the normal name is an alias. */
15389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15390 choke me
15391 #else
15392 $ac_func();
15393 #endif
15395 ; return 0; }
15397 if { (eval echo configure:15398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15398 rm -rf conftest*
15399 eval "ac_cv_func_$ac_func=yes"
15400 else
15401 echo "configure: failed program was:" >&5
15402 cat conftest.$ac_ext >&5
15403 rm -rf conftest*
15404 eval "ac_cv_func_$ac_func=no"
15406 rm -f conftest*
15409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15410 echo "$ac_t""yes" 1>&6
15411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15412 cat >> confdefs.h <<EOF
15413 #define $ac_tr_func 1
15416 else
15417 echo "$ac_t""no" 1>&6
15419 done
15426 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15427 echo "configure:15428: checking for sqrtf declaration" >&5
15428 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15429 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15430 echo $ac_n "(cached) $ac_c" 1>&6
15431 else
15434 ac_ext=C
15435 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15436 ac_cpp='$CXXCPP $CPPFLAGS'
15437 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15438 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15439 cross_compiling=$ac_cv_prog_cxx_cross
15441 cat > conftest.$ac_ext <<EOF
15442 #line 15443 "configure"
15443 #include "confdefs.h"
15444 #include <math.h>
15445 #ifdef HAVE_IEEEFP_H
15446 #include <ieeefp.h>
15447 #endif
15449 int main() {
15450 sqrtf(0);
15451 ; return 0; }
15453 if { (eval echo configure:15454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15454 rm -rf conftest*
15455 glibcpp_cv_func_sqrtf_use=yes
15456 else
15457 echo "configure: failed program was:" >&5
15458 cat conftest.$ac_ext >&5
15459 rm -rf conftest*
15460 glibcpp_cv_func_sqrtf_use=no
15462 rm -f conftest*
15463 ac_ext=c
15464 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15465 ac_cpp='$CPP $CPPFLAGS'
15466 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15467 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15468 cross_compiling=$ac_cv_prog_cc_cross
15474 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15476 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15477 for ac_func in sqrtf
15479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15480 echo "configure:15481: checking for $ac_func" >&5
15481 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15482 echo $ac_n "(cached) $ac_c" 1>&6
15483 else
15484 cat > conftest.$ac_ext <<EOF
15485 #line 15486 "configure"
15486 #include "confdefs.h"
15487 /* System header to define __stub macros and hopefully few prototypes,
15488 which can conflict with char $ac_func(); below. */
15489 #include <assert.h>
15490 /* Override any gcc2 internal prototype to avoid an error. */
15491 /* We use char because int might match the return type of a gcc2
15492 builtin and then its argument prototype would still apply. */
15493 char $ac_func();
15495 int main() {
15497 /* The GNU C library defines this for functions which it implements
15498 to always fail with ENOSYS. Some functions are actually named
15499 something starting with __ and the normal name is an alias. */
15500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15501 choke me
15502 #else
15503 $ac_func();
15504 #endif
15506 ; return 0; }
15508 if { (eval echo configure:15509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15509 rm -rf conftest*
15510 eval "ac_cv_func_$ac_func=yes"
15511 else
15512 echo "configure: failed program was:" >&5
15513 cat conftest.$ac_ext >&5
15514 rm -rf conftest*
15515 eval "ac_cv_func_$ac_func=no"
15517 rm -f conftest*
15520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15521 echo "$ac_t""yes" 1>&6
15522 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15523 cat >> confdefs.h <<EOF
15524 #define $ac_tr_func 1
15527 else
15528 echo "$ac_t""no" 1>&6
15530 done
15532 else
15534 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15535 echo "configure:15536: checking for _sqrtf declaration" >&5
15536 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15537 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15538 echo $ac_n "(cached) $ac_c" 1>&6
15539 else
15542 ac_ext=C
15543 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15544 ac_cpp='$CXXCPP $CPPFLAGS'
15545 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15546 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15547 cross_compiling=$ac_cv_prog_cxx_cross
15549 cat > conftest.$ac_ext <<EOF
15550 #line 15551 "configure"
15551 #include "confdefs.h"
15552 #include <math.h>
15553 #ifdef HAVE_IEEEFP_H
15554 #include <ieeefp.h>
15555 #endif
15557 int main() {
15558 _sqrtf(0);
15559 ; return 0; }
15561 if { (eval echo configure:15562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15562 rm -rf conftest*
15563 glibcpp_cv_func__sqrtf_use=yes
15564 else
15565 echo "configure: failed program was:" >&5
15566 cat conftest.$ac_ext >&5
15567 rm -rf conftest*
15568 glibcpp_cv_func__sqrtf_use=no
15570 rm -f conftest*
15571 ac_ext=c
15572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15573 ac_cpp='$CPP $CPPFLAGS'
15574 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15575 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15576 cross_compiling=$ac_cv_prog_cc_cross
15582 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15584 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15585 for ac_func in _sqrtf
15587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15588 echo "configure:15589: checking for $ac_func" >&5
15589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15590 echo $ac_n "(cached) $ac_c" 1>&6
15591 else
15592 cat > conftest.$ac_ext <<EOF
15593 #line 15594 "configure"
15594 #include "confdefs.h"
15595 /* System header to define __stub macros and hopefully few prototypes,
15596 which can conflict with char $ac_func(); below. */
15597 #include <assert.h>
15598 /* Override any gcc2 internal prototype to avoid an error. */
15599 /* We use char because int might match the return type of a gcc2
15600 builtin and then its argument prototype would still apply. */
15601 char $ac_func();
15603 int main() {
15605 /* The GNU C library defines this for functions which it implements
15606 to always fail with ENOSYS. Some functions are actually named
15607 something starting with __ and the normal name is an alias. */
15608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15609 choke me
15610 #else
15611 $ac_func();
15612 #endif
15614 ; return 0; }
15616 if { (eval echo configure:15617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15617 rm -rf conftest*
15618 eval "ac_cv_func_$ac_func=yes"
15619 else
15620 echo "configure: failed program was:" >&5
15621 cat conftest.$ac_ext >&5
15622 rm -rf conftest*
15623 eval "ac_cv_func_$ac_func=no"
15625 rm -f conftest*
15628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15629 echo "$ac_t""yes" 1>&6
15630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15631 cat >> confdefs.h <<EOF
15632 #define $ac_tr_func 1
15635 else
15636 echo "$ac_t""no" 1>&6
15638 done
15645 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15646 echo "configure:15647: checking for sincosf declaration" >&5
15647 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15648 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15649 echo $ac_n "(cached) $ac_c" 1>&6
15650 else
15653 ac_ext=C
15654 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15655 ac_cpp='$CXXCPP $CPPFLAGS'
15656 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15657 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15658 cross_compiling=$ac_cv_prog_cxx_cross
15660 cat > conftest.$ac_ext <<EOF
15661 #line 15662 "configure"
15662 #include "confdefs.h"
15663 #include <math.h>
15664 int main() {
15665 sincosf(0, 0, 0);
15666 ; return 0; }
15668 if { (eval echo configure:15669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15669 rm -rf conftest*
15670 glibcpp_cv_func_sincosf_use=yes
15671 else
15672 echo "configure: failed program was:" >&5
15673 cat conftest.$ac_ext >&5
15674 rm -rf conftest*
15675 glibcpp_cv_func_sincosf_use=no
15677 rm -f conftest*
15678 ac_ext=c
15679 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15680 ac_cpp='$CPP $CPPFLAGS'
15681 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15682 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15683 cross_compiling=$ac_cv_prog_cc_cross
15689 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15691 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15692 for ac_func in sincosf
15694 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15695 echo "configure:15696: checking for $ac_func" >&5
15696 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15697 echo $ac_n "(cached) $ac_c" 1>&6
15698 else
15699 cat > conftest.$ac_ext <<EOF
15700 #line 15701 "configure"
15701 #include "confdefs.h"
15702 /* System header to define __stub macros and hopefully few prototypes,
15703 which can conflict with char $ac_func(); below. */
15704 #include <assert.h>
15705 /* Override any gcc2 internal prototype to avoid an error. */
15706 /* We use char because int might match the return type of a gcc2
15707 builtin and then its argument prototype would still apply. */
15708 char $ac_func();
15710 int main() {
15712 /* The GNU C library defines this for functions which it implements
15713 to always fail with ENOSYS. Some functions are actually named
15714 something starting with __ and the normal name is an alias. */
15715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15716 choke me
15717 #else
15718 $ac_func();
15719 #endif
15721 ; return 0; }
15723 if { (eval echo configure:15724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15724 rm -rf conftest*
15725 eval "ac_cv_func_$ac_func=yes"
15726 else
15727 echo "configure: failed program was:" >&5
15728 cat conftest.$ac_ext >&5
15729 rm -rf conftest*
15730 eval "ac_cv_func_$ac_func=no"
15732 rm -f conftest*
15735 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15736 echo "$ac_t""yes" 1>&6
15737 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15738 cat >> confdefs.h <<EOF
15739 #define $ac_tr_func 1
15742 else
15743 echo "$ac_t""no" 1>&6
15745 done
15747 else
15749 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15750 echo "configure:15751: checking for _sincosf declaration" >&5
15751 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15752 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15753 echo $ac_n "(cached) $ac_c" 1>&6
15754 else
15757 ac_ext=C
15758 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15759 ac_cpp='$CXXCPP $CPPFLAGS'
15760 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15761 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15762 cross_compiling=$ac_cv_prog_cxx_cross
15764 cat > conftest.$ac_ext <<EOF
15765 #line 15766 "configure"
15766 #include "confdefs.h"
15767 #include <math.h>
15768 int main() {
15769 _sincosf(0, 0, 0);
15770 ; return 0; }
15772 if { (eval echo configure:15773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15773 rm -rf conftest*
15774 glibcpp_cv_func__sincosf_use=yes
15775 else
15776 echo "configure: failed program was:" >&5
15777 cat conftest.$ac_ext >&5
15778 rm -rf conftest*
15779 glibcpp_cv_func__sincosf_use=no
15781 rm -f conftest*
15782 ac_ext=c
15783 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15784 ac_cpp='$CPP $CPPFLAGS'
15785 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15786 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15787 cross_compiling=$ac_cv_prog_cc_cross
15793 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15795 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15796 for ac_func in _sincosf
15798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15799 echo "configure:15800: checking for $ac_func" >&5
15800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15801 echo $ac_n "(cached) $ac_c" 1>&6
15802 else
15803 cat > conftest.$ac_ext <<EOF
15804 #line 15805 "configure"
15805 #include "confdefs.h"
15806 /* System header to define __stub macros and hopefully few prototypes,
15807 which can conflict with char $ac_func(); below. */
15808 #include <assert.h>
15809 /* Override any gcc2 internal prototype to avoid an error. */
15810 /* We use char because int might match the return type of a gcc2
15811 builtin and then its argument prototype would still apply. */
15812 char $ac_func();
15814 int main() {
15816 /* The GNU C library defines this for functions which it implements
15817 to always fail with ENOSYS. Some functions are actually named
15818 something starting with __ and the normal name is an alias. */
15819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15820 choke me
15821 #else
15822 $ac_func();
15823 #endif
15825 ; return 0; }
15827 if { (eval echo configure:15828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15828 rm -rf conftest*
15829 eval "ac_cv_func_$ac_func=yes"
15830 else
15831 echo "configure: failed program was:" >&5
15832 cat conftest.$ac_ext >&5
15833 rm -rf conftest*
15834 eval "ac_cv_func_$ac_func=no"
15836 rm -f conftest*
15839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15840 echo "$ac_t""yes" 1>&6
15841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15842 cat >> confdefs.h <<EOF
15843 #define $ac_tr_func 1
15846 else
15847 echo "$ac_t""no" 1>&6
15849 done
15856 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15857 echo "configure:15858: checking for finitef declaration" >&5
15858 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15859 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15860 echo $ac_n "(cached) $ac_c" 1>&6
15861 else
15864 ac_ext=C
15865 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15866 ac_cpp='$CXXCPP $CPPFLAGS'
15867 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15868 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15869 cross_compiling=$ac_cv_prog_cxx_cross
15871 cat > conftest.$ac_ext <<EOF
15872 #line 15873 "configure"
15873 #include "confdefs.h"
15874 #include <math.h>
15875 #ifdef HAVE_IEEEFP_H
15876 #include <ieeefp.h>
15877 #endif
15879 int main() {
15880 finitef(0);
15881 ; return 0; }
15883 if { (eval echo configure:15884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15884 rm -rf conftest*
15885 glibcpp_cv_func_finitef_use=yes
15886 else
15887 echo "configure: failed program was:" >&5
15888 cat conftest.$ac_ext >&5
15889 rm -rf conftest*
15890 glibcpp_cv_func_finitef_use=no
15892 rm -f conftest*
15893 ac_ext=c
15894 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15895 ac_cpp='$CPP $CPPFLAGS'
15896 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15897 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15898 cross_compiling=$ac_cv_prog_cc_cross
15904 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15906 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15907 for ac_func in finitef
15909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15910 echo "configure:15911: checking for $ac_func" >&5
15911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15912 echo $ac_n "(cached) $ac_c" 1>&6
15913 else
15914 cat > conftest.$ac_ext <<EOF
15915 #line 15916 "configure"
15916 #include "confdefs.h"
15917 /* System header to define __stub macros and hopefully few prototypes,
15918 which can conflict with char $ac_func(); below. */
15919 #include <assert.h>
15920 /* Override any gcc2 internal prototype to avoid an error. */
15921 /* We use char because int might match the return type of a gcc2
15922 builtin and then its argument prototype would still apply. */
15923 char $ac_func();
15925 int main() {
15927 /* The GNU C library defines this for functions which it implements
15928 to always fail with ENOSYS. Some functions are actually named
15929 something starting with __ and the normal name is an alias. */
15930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15931 choke me
15932 #else
15933 $ac_func();
15934 #endif
15936 ; return 0; }
15938 if { (eval echo configure:15939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15939 rm -rf conftest*
15940 eval "ac_cv_func_$ac_func=yes"
15941 else
15942 echo "configure: failed program was:" >&5
15943 cat conftest.$ac_ext >&5
15944 rm -rf conftest*
15945 eval "ac_cv_func_$ac_func=no"
15947 rm -f conftest*
15950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15951 echo "$ac_t""yes" 1>&6
15952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15953 cat >> confdefs.h <<EOF
15954 #define $ac_tr_func 1
15957 else
15958 echo "$ac_t""no" 1>&6
15960 done
15962 else
15964 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15965 echo "configure:15966: checking for _finitef declaration" >&5
15966 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
15967 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
15968 echo $ac_n "(cached) $ac_c" 1>&6
15969 else
15972 ac_ext=C
15973 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15974 ac_cpp='$CXXCPP $CPPFLAGS'
15975 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15976 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15977 cross_compiling=$ac_cv_prog_cxx_cross
15979 cat > conftest.$ac_ext <<EOF
15980 #line 15981 "configure"
15981 #include "confdefs.h"
15982 #include <math.h>
15983 #ifdef HAVE_IEEEFP_H
15984 #include <ieeefp.h>
15985 #endif
15987 int main() {
15988 _finitef(0);
15989 ; return 0; }
15991 if { (eval echo configure:15992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15992 rm -rf conftest*
15993 glibcpp_cv_func__finitef_use=yes
15994 else
15995 echo "configure: failed program was:" >&5
15996 cat conftest.$ac_ext >&5
15997 rm -rf conftest*
15998 glibcpp_cv_func__finitef_use=no
16000 rm -f conftest*
16001 ac_ext=c
16002 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16003 ac_cpp='$CPP $CPPFLAGS'
16004 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16005 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16006 cross_compiling=$ac_cv_prog_cc_cross
16012 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16014 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16015 for ac_func in _finitef
16017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16018 echo "configure:16019: checking for $ac_func" >&5
16019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16020 echo $ac_n "(cached) $ac_c" 1>&6
16021 else
16022 cat > conftest.$ac_ext <<EOF
16023 #line 16024 "configure"
16024 #include "confdefs.h"
16025 /* System header to define __stub macros and hopefully few prototypes,
16026 which can conflict with char $ac_func(); below. */
16027 #include <assert.h>
16028 /* Override any gcc2 internal prototype to avoid an error. */
16029 /* We use char because int might match the return type of a gcc2
16030 builtin and then its argument prototype would still apply. */
16031 char $ac_func();
16033 int main() {
16035 /* The GNU C library defines this for functions which it implements
16036 to always fail with ENOSYS. Some functions are actually named
16037 something starting with __ and the normal name is an alias. */
16038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16039 choke me
16040 #else
16041 $ac_func();
16042 #endif
16044 ; return 0; }
16046 if { (eval echo configure:16047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16047 rm -rf conftest*
16048 eval "ac_cv_func_$ac_func=yes"
16049 else
16050 echo "configure: failed program was:" >&5
16051 cat conftest.$ac_ext >&5
16052 rm -rf conftest*
16053 eval "ac_cv_func_$ac_func=no"
16055 rm -f conftest*
16058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16059 echo "$ac_t""yes" 1>&6
16060 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16061 cat >> confdefs.h <<EOF
16062 #define $ac_tr_func 1
16065 else
16066 echo "$ac_t""no" 1>&6
16068 done
16075 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16076 echo "configure:16077: checking for long double trig functions" >&5
16077 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16078 echo $ac_n "(cached) $ac_c" 1>&6
16079 else
16082 ac_ext=C
16083 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16084 ac_cpp='$CXXCPP $CPPFLAGS'
16085 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16086 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16087 cross_compiling=$ac_cv_prog_cxx_cross
16089 cat > conftest.$ac_ext <<EOF
16090 #line 16091 "configure"
16091 #include "confdefs.h"
16092 #include <math.h>
16093 int main() {
16094 `for x in acosl asinl atanl \
16095 cosl sinl tanl \
16096 coshl sinhl tanhl; do echo "$x (0);"; done`
16097 ; return 0; }
16099 if { (eval echo configure:16100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16100 rm -rf conftest*
16101 glibcpp_cv_func_long_double_trig_use=yes
16102 else
16103 echo "configure: failed program was:" >&5
16104 cat conftest.$ac_ext >&5
16105 rm -rf conftest*
16106 glibcpp_cv_func_long_double_trig_use=no
16108 rm -f conftest*
16109 ac_ext=c
16110 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16111 ac_cpp='$CPP $CPPFLAGS'
16112 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16113 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16114 cross_compiling=$ac_cv_prog_cc_cross
16118 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16119 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16120 for ac_func in acosl asinl atanl \
16121 cosl sinl tanl \
16122 coshl sinhl tanhl
16124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16125 echo "configure:16126: checking for $ac_func" >&5
16126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16127 echo $ac_n "(cached) $ac_c" 1>&6
16128 else
16129 cat > conftest.$ac_ext <<EOF
16130 #line 16131 "configure"
16131 #include "confdefs.h"
16132 /* System header to define __stub macros and hopefully few prototypes,
16133 which can conflict with char $ac_func(); below. */
16134 #include <assert.h>
16135 /* Override any gcc2 internal prototype to avoid an error. */
16136 /* We use char because int might match the return type of a gcc2
16137 builtin and then its argument prototype would still apply. */
16138 char $ac_func();
16140 int main() {
16142 /* The GNU C library defines this for functions which it implements
16143 to always fail with ENOSYS. Some functions are actually named
16144 something starting with __ and the normal name is an alias. */
16145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16146 choke me
16147 #else
16148 $ac_func();
16149 #endif
16151 ; return 0; }
16153 if { (eval echo configure:16154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16154 rm -rf conftest*
16155 eval "ac_cv_func_$ac_func=yes"
16156 else
16157 echo "configure: failed program was:" >&5
16158 cat conftest.$ac_ext >&5
16159 rm -rf conftest*
16160 eval "ac_cv_func_$ac_func=no"
16162 rm -f conftest*
16165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16166 echo "$ac_t""yes" 1>&6
16167 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16168 cat >> confdefs.h <<EOF
16169 #define $ac_tr_func 1
16172 else
16173 echo "$ac_t""no" 1>&6
16175 done
16180 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16181 echo "configure:16182: checking for long double round functions" >&5
16182 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16183 echo $ac_n "(cached) $ac_c" 1>&6
16184 else
16187 ac_ext=C
16188 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16189 ac_cpp='$CXXCPP $CPPFLAGS'
16190 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16191 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16192 cross_compiling=$ac_cv_prog_cxx_cross
16194 cat > conftest.$ac_ext <<EOF
16195 #line 16196 "configure"
16196 #include "confdefs.h"
16197 #include <math.h>
16198 int main() {
16199 `for x in ceill floorl; do echo "$x (0);"; done`
16200 ; return 0; }
16202 if { (eval echo configure:16203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16203 rm -rf conftest*
16204 glibcpp_cv_func_long_double_round_use=yes
16205 else
16206 echo "configure: failed program was:" >&5
16207 cat conftest.$ac_ext >&5
16208 rm -rf conftest*
16209 glibcpp_cv_func_long_double_round_use=no
16211 rm -f conftest*
16212 ac_ext=c
16213 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16214 ac_cpp='$CPP $CPPFLAGS'
16215 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16216 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16217 cross_compiling=$ac_cv_prog_cc_cross
16221 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16222 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16223 for ac_func in ceill floorl
16225 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16226 echo "configure:16227: checking for $ac_func" >&5
16227 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16228 echo $ac_n "(cached) $ac_c" 1>&6
16229 else
16230 cat > conftest.$ac_ext <<EOF
16231 #line 16232 "configure"
16232 #include "confdefs.h"
16233 /* System header to define __stub macros and hopefully few prototypes,
16234 which can conflict with char $ac_func(); below. */
16235 #include <assert.h>
16236 /* Override any gcc2 internal prototype to avoid an error. */
16237 /* We use char because int might match the return type of a gcc2
16238 builtin and then its argument prototype would still apply. */
16239 char $ac_func();
16241 int main() {
16243 /* The GNU C library defines this for functions which it implements
16244 to always fail with ENOSYS. Some functions are actually named
16245 something starting with __ and the normal name is an alias. */
16246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16247 choke me
16248 #else
16249 $ac_func();
16250 #endif
16252 ; return 0; }
16254 if { (eval echo configure:16255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16255 rm -rf conftest*
16256 eval "ac_cv_func_$ac_func=yes"
16257 else
16258 echo "configure: failed program was:" >&5
16259 cat conftest.$ac_ext >&5
16260 rm -rf conftest*
16261 eval "ac_cv_func_$ac_func=no"
16263 rm -f conftest*
16266 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16267 echo "$ac_t""yes" 1>&6
16268 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16269 cat >> confdefs.h <<EOF
16270 #define $ac_tr_func 1
16273 else
16274 echo "$ac_t""no" 1>&6
16276 done
16282 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16283 echo "configure:16284: checking for isnanl declaration" >&5
16284 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16285 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16286 echo $ac_n "(cached) $ac_c" 1>&6
16287 else
16290 ac_ext=C
16291 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16292 ac_cpp='$CXXCPP $CPPFLAGS'
16293 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16294 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16295 cross_compiling=$ac_cv_prog_cxx_cross
16297 cat > conftest.$ac_ext <<EOF
16298 #line 16299 "configure"
16299 #include "confdefs.h"
16300 #include <math.h>
16301 #ifdef HAVE_IEEEFP_H
16302 #include <ieeefp.h>
16303 #endif
16305 int main() {
16306 isnanl(0);
16307 ; return 0; }
16309 if { (eval echo configure:16310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16310 rm -rf conftest*
16311 glibcpp_cv_func_isnanl_use=yes
16312 else
16313 echo "configure: failed program was:" >&5
16314 cat conftest.$ac_ext >&5
16315 rm -rf conftest*
16316 glibcpp_cv_func_isnanl_use=no
16318 rm -f conftest*
16319 ac_ext=c
16320 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16321 ac_cpp='$CPP $CPPFLAGS'
16322 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16323 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16324 cross_compiling=$ac_cv_prog_cc_cross
16330 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16332 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16333 for ac_func in isnanl
16335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16336 echo "configure:16337: checking for $ac_func" >&5
16337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16338 echo $ac_n "(cached) $ac_c" 1>&6
16339 else
16340 cat > conftest.$ac_ext <<EOF
16341 #line 16342 "configure"
16342 #include "confdefs.h"
16343 /* System header to define __stub macros and hopefully few prototypes,
16344 which can conflict with char $ac_func(); below. */
16345 #include <assert.h>
16346 /* Override any gcc2 internal prototype to avoid an error. */
16347 /* We use char because int might match the return type of a gcc2
16348 builtin and then its argument prototype would still apply. */
16349 char $ac_func();
16351 int main() {
16353 /* The GNU C library defines this for functions which it implements
16354 to always fail with ENOSYS. Some functions are actually named
16355 something starting with __ and the normal name is an alias. */
16356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16357 choke me
16358 #else
16359 $ac_func();
16360 #endif
16362 ; return 0; }
16364 if { (eval echo configure:16365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16365 rm -rf conftest*
16366 eval "ac_cv_func_$ac_func=yes"
16367 else
16368 echo "configure: failed program was:" >&5
16369 cat conftest.$ac_ext >&5
16370 rm -rf conftest*
16371 eval "ac_cv_func_$ac_func=no"
16373 rm -f conftest*
16376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16377 echo "$ac_t""yes" 1>&6
16378 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16379 cat >> confdefs.h <<EOF
16380 #define $ac_tr_func 1
16383 else
16384 echo "$ac_t""no" 1>&6
16386 done
16388 else
16390 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16391 echo "configure:16392: checking for _isnanl declaration" >&5
16392 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16393 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16394 echo $ac_n "(cached) $ac_c" 1>&6
16395 else
16398 ac_ext=C
16399 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16400 ac_cpp='$CXXCPP $CPPFLAGS'
16401 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16402 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16403 cross_compiling=$ac_cv_prog_cxx_cross
16405 cat > conftest.$ac_ext <<EOF
16406 #line 16407 "configure"
16407 #include "confdefs.h"
16408 #include <math.h>
16409 #ifdef HAVE_IEEEFP_H
16410 #include <ieeefp.h>
16411 #endif
16413 int main() {
16414 _isnanl(0);
16415 ; return 0; }
16417 if { (eval echo configure:16418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16418 rm -rf conftest*
16419 glibcpp_cv_func__isnanl_use=yes
16420 else
16421 echo "configure: failed program was:" >&5
16422 cat conftest.$ac_ext >&5
16423 rm -rf conftest*
16424 glibcpp_cv_func__isnanl_use=no
16426 rm -f conftest*
16427 ac_ext=c
16428 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16429 ac_cpp='$CPP $CPPFLAGS'
16430 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16431 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16432 cross_compiling=$ac_cv_prog_cc_cross
16438 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16440 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16441 for ac_func in _isnanl
16443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16444 echo "configure:16445: checking for $ac_func" >&5
16445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16446 echo $ac_n "(cached) $ac_c" 1>&6
16447 else
16448 cat > conftest.$ac_ext <<EOF
16449 #line 16450 "configure"
16450 #include "confdefs.h"
16451 /* System header to define __stub macros and hopefully few prototypes,
16452 which can conflict with char $ac_func(); below. */
16453 #include <assert.h>
16454 /* Override any gcc2 internal prototype to avoid an error. */
16455 /* We use char because int might match the return type of a gcc2
16456 builtin and then its argument prototype would still apply. */
16457 char $ac_func();
16459 int main() {
16461 /* The GNU C library defines this for functions which it implements
16462 to always fail with ENOSYS. Some functions are actually named
16463 something starting with __ and the normal name is an alias. */
16464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16465 choke me
16466 #else
16467 $ac_func();
16468 #endif
16470 ; return 0; }
16472 if { (eval echo configure:16473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16473 rm -rf conftest*
16474 eval "ac_cv_func_$ac_func=yes"
16475 else
16476 echo "configure: failed program was:" >&5
16477 cat conftest.$ac_ext >&5
16478 rm -rf conftest*
16479 eval "ac_cv_func_$ac_func=no"
16481 rm -f conftest*
16484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16485 echo "$ac_t""yes" 1>&6
16486 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16487 cat >> confdefs.h <<EOF
16488 #define $ac_tr_func 1
16491 else
16492 echo "$ac_t""no" 1>&6
16494 done
16501 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16502 echo "configure:16503: checking for isinfl declaration" >&5
16503 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16504 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16505 echo $ac_n "(cached) $ac_c" 1>&6
16506 else
16509 ac_ext=C
16510 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16511 ac_cpp='$CXXCPP $CPPFLAGS'
16512 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16513 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16514 cross_compiling=$ac_cv_prog_cxx_cross
16516 cat > conftest.$ac_ext <<EOF
16517 #line 16518 "configure"
16518 #include "confdefs.h"
16519 #include <math.h>
16520 #ifdef HAVE_IEEEFP_H
16521 #include <ieeefp.h>
16522 #endif
16524 int main() {
16525 isinfl(0);
16526 ; return 0; }
16528 if { (eval echo configure:16529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16529 rm -rf conftest*
16530 glibcpp_cv_func_isinfl_use=yes
16531 else
16532 echo "configure: failed program was:" >&5
16533 cat conftest.$ac_ext >&5
16534 rm -rf conftest*
16535 glibcpp_cv_func_isinfl_use=no
16537 rm -f conftest*
16538 ac_ext=c
16539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16540 ac_cpp='$CPP $CPPFLAGS'
16541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16543 cross_compiling=$ac_cv_prog_cc_cross
16549 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16551 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16552 for ac_func in isinfl
16554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16555 echo "configure:16556: checking for $ac_func" >&5
16556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16557 echo $ac_n "(cached) $ac_c" 1>&6
16558 else
16559 cat > conftest.$ac_ext <<EOF
16560 #line 16561 "configure"
16561 #include "confdefs.h"
16562 /* System header to define __stub macros and hopefully few prototypes,
16563 which can conflict with char $ac_func(); below. */
16564 #include <assert.h>
16565 /* Override any gcc2 internal prototype to avoid an error. */
16566 /* We use char because int might match the return type of a gcc2
16567 builtin and then its argument prototype would still apply. */
16568 char $ac_func();
16570 int main() {
16572 /* The GNU C library defines this for functions which it implements
16573 to always fail with ENOSYS. Some functions are actually named
16574 something starting with __ and the normal name is an alias. */
16575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16576 choke me
16577 #else
16578 $ac_func();
16579 #endif
16581 ; return 0; }
16583 if { (eval echo configure:16584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16584 rm -rf conftest*
16585 eval "ac_cv_func_$ac_func=yes"
16586 else
16587 echo "configure: failed program was:" >&5
16588 cat conftest.$ac_ext >&5
16589 rm -rf conftest*
16590 eval "ac_cv_func_$ac_func=no"
16592 rm -f conftest*
16595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16596 echo "$ac_t""yes" 1>&6
16597 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16598 cat >> confdefs.h <<EOF
16599 #define $ac_tr_func 1
16602 else
16603 echo "$ac_t""no" 1>&6
16605 done
16607 else
16609 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16610 echo "configure:16611: checking for _isinfl declaration" >&5
16611 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16612 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16613 echo $ac_n "(cached) $ac_c" 1>&6
16614 else
16617 ac_ext=C
16618 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16619 ac_cpp='$CXXCPP $CPPFLAGS'
16620 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16621 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16622 cross_compiling=$ac_cv_prog_cxx_cross
16624 cat > conftest.$ac_ext <<EOF
16625 #line 16626 "configure"
16626 #include "confdefs.h"
16627 #include <math.h>
16628 #ifdef HAVE_IEEEFP_H
16629 #include <ieeefp.h>
16630 #endif
16632 int main() {
16633 _isinfl(0);
16634 ; return 0; }
16636 if { (eval echo configure:16637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16637 rm -rf conftest*
16638 glibcpp_cv_func__isinfl_use=yes
16639 else
16640 echo "configure: failed program was:" >&5
16641 cat conftest.$ac_ext >&5
16642 rm -rf conftest*
16643 glibcpp_cv_func__isinfl_use=no
16645 rm -f conftest*
16646 ac_ext=c
16647 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16648 ac_cpp='$CPP $CPPFLAGS'
16649 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16650 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16651 cross_compiling=$ac_cv_prog_cc_cross
16657 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16659 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16660 for ac_func in _isinfl
16662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16663 echo "configure:16664: checking for $ac_func" >&5
16664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16665 echo $ac_n "(cached) $ac_c" 1>&6
16666 else
16667 cat > conftest.$ac_ext <<EOF
16668 #line 16669 "configure"
16669 #include "confdefs.h"
16670 /* System header to define __stub macros and hopefully few prototypes,
16671 which can conflict with char $ac_func(); below. */
16672 #include <assert.h>
16673 /* Override any gcc2 internal prototype to avoid an error. */
16674 /* We use char because int might match the return type of a gcc2
16675 builtin and then its argument prototype would still apply. */
16676 char $ac_func();
16678 int main() {
16680 /* The GNU C library defines this for functions which it implements
16681 to always fail with ENOSYS. Some functions are actually named
16682 something starting with __ and the normal name is an alias. */
16683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16684 choke me
16685 #else
16686 $ac_func();
16687 #endif
16689 ; return 0; }
16691 if { (eval echo configure:16692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16692 rm -rf conftest*
16693 eval "ac_cv_func_$ac_func=yes"
16694 else
16695 echo "configure: failed program was:" >&5
16696 cat conftest.$ac_ext >&5
16697 rm -rf conftest*
16698 eval "ac_cv_func_$ac_func=no"
16700 rm -f conftest*
16703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16704 echo "$ac_t""yes" 1>&6
16705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16706 cat >> confdefs.h <<EOF
16707 #define $ac_tr_func 1
16710 else
16711 echo "$ac_t""no" 1>&6
16713 done
16720 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16721 echo "configure:16722: checking for copysignl declaration" >&5
16722 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16723 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16724 echo $ac_n "(cached) $ac_c" 1>&6
16725 else
16728 ac_ext=C
16729 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16730 ac_cpp='$CXXCPP $CPPFLAGS'
16731 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16732 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16733 cross_compiling=$ac_cv_prog_cxx_cross
16735 cat > conftest.$ac_ext <<EOF
16736 #line 16737 "configure"
16737 #include "confdefs.h"
16738 #include <math.h>
16739 int main() {
16740 copysignl(0, 0);
16741 ; return 0; }
16743 if { (eval echo configure:16744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16744 rm -rf conftest*
16745 glibcpp_cv_func_copysignl_use=yes
16746 else
16747 echo "configure: failed program was:" >&5
16748 cat conftest.$ac_ext >&5
16749 rm -rf conftest*
16750 glibcpp_cv_func_copysignl_use=no
16752 rm -f conftest*
16753 ac_ext=c
16754 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16755 ac_cpp='$CPP $CPPFLAGS'
16756 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16757 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16758 cross_compiling=$ac_cv_prog_cc_cross
16764 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16766 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16767 for ac_func in copysignl
16769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16770 echo "configure:16771: checking for $ac_func" >&5
16771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16772 echo $ac_n "(cached) $ac_c" 1>&6
16773 else
16774 cat > conftest.$ac_ext <<EOF
16775 #line 16776 "configure"
16776 #include "confdefs.h"
16777 /* System header to define __stub macros and hopefully few prototypes,
16778 which can conflict with char $ac_func(); below. */
16779 #include <assert.h>
16780 /* Override any gcc2 internal prototype to avoid an error. */
16781 /* We use char because int might match the return type of a gcc2
16782 builtin and then its argument prototype would still apply. */
16783 char $ac_func();
16785 int main() {
16787 /* The GNU C library defines this for functions which it implements
16788 to always fail with ENOSYS. Some functions are actually named
16789 something starting with __ and the normal name is an alias. */
16790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16791 choke me
16792 #else
16793 $ac_func();
16794 #endif
16796 ; return 0; }
16798 if { (eval echo configure:16799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16799 rm -rf conftest*
16800 eval "ac_cv_func_$ac_func=yes"
16801 else
16802 echo "configure: failed program was:" >&5
16803 cat conftest.$ac_ext >&5
16804 rm -rf conftest*
16805 eval "ac_cv_func_$ac_func=no"
16807 rm -f conftest*
16810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16811 echo "$ac_t""yes" 1>&6
16812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16813 cat >> confdefs.h <<EOF
16814 #define $ac_tr_func 1
16817 else
16818 echo "$ac_t""no" 1>&6
16820 done
16822 else
16824 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16825 echo "configure:16826: checking for _copysignl declaration" >&5
16826 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16827 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16828 echo $ac_n "(cached) $ac_c" 1>&6
16829 else
16832 ac_ext=C
16833 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16834 ac_cpp='$CXXCPP $CPPFLAGS'
16835 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16836 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16837 cross_compiling=$ac_cv_prog_cxx_cross
16839 cat > conftest.$ac_ext <<EOF
16840 #line 16841 "configure"
16841 #include "confdefs.h"
16842 #include <math.h>
16843 int main() {
16844 _copysignl(0, 0);
16845 ; return 0; }
16847 if { (eval echo configure:16848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16848 rm -rf conftest*
16849 glibcpp_cv_func__copysignl_use=yes
16850 else
16851 echo "configure: failed program was:" >&5
16852 cat conftest.$ac_ext >&5
16853 rm -rf conftest*
16854 glibcpp_cv_func__copysignl_use=no
16856 rm -f conftest*
16857 ac_ext=c
16858 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16859 ac_cpp='$CPP $CPPFLAGS'
16860 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16861 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16862 cross_compiling=$ac_cv_prog_cc_cross
16868 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16870 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16871 for ac_func in _copysignl
16873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16874 echo "configure:16875: checking for $ac_func" >&5
16875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16876 echo $ac_n "(cached) $ac_c" 1>&6
16877 else
16878 cat > conftest.$ac_ext <<EOF
16879 #line 16880 "configure"
16880 #include "confdefs.h"
16881 /* System header to define __stub macros and hopefully few prototypes,
16882 which can conflict with char $ac_func(); below. */
16883 #include <assert.h>
16884 /* Override any gcc2 internal prototype to avoid an error. */
16885 /* We use char because int might match the return type of a gcc2
16886 builtin and then its argument prototype would still apply. */
16887 char $ac_func();
16889 int main() {
16891 /* The GNU C library defines this for functions which it implements
16892 to always fail with ENOSYS. Some functions are actually named
16893 something starting with __ and the normal name is an alias. */
16894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16895 choke me
16896 #else
16897 $ac_func();
16898 #endif
16900 ; return 0; }
16902 if { (eval echo configure:16903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16903 rm -rf conftest*
16904 eval "ac_cv_func_$ac_func=yes"
16905 else
16906 echo "configure: failed program was:" >&5
16907 cat conftest.$ac_ext >&5
16908 rm -rf conftest*
16909 eval "ac_cv_func_$ac_func=no"
16911 rm -f conftest*
16914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16915 echo "$ac_t""yes" 1>&6
16916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16917 cat >> confdefs.h <<EOF
16918 #define $ac_tr_func 1
16921 else
16922 echo "$ac_t""no" 1>&6
16924 done
16931 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16932 echo "configure:16933: checking for atan2l declaration" >&5
16933 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16934 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16935 echo $ac_n "(cached) $ac_c" 1>&6
16936 else
16939 ac_ext=C
16940 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16941 ac_cpp='$CXXCPP $CPPFLAGS'
16942 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16943 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16944 cross_compiling=$ac_cv_prog_cxx_cross
16946 cat > conftest.$ac_ext <<EOF
16947 #line 16948 "configure"
16948 #include "confdefs.h"
16949 #include <math.h>
16950 int main() {
16951 atan2l(0, 0);
16952 ; return 0; }
16954 if { (eval echo configure:16955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16955 rm -rf conftest*
16956 glibcpp_cv_func_atan2l_use=yes
16957 else
16958 echo "configure: failed program was:" >&5
16959 cat conftest.$ac_ext >&5
16960 rm -rf conftest*
16961 glibcpp_cv_func_atan2l_use=no
16963 rm -f conftest*
16964 ac_ext=c
16965 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16966 ac_cpp='$CPP $CPPFLAGS'
16967 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16968 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16969 cross_compiling=$ac_cv_prog_cc_cross
16975 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
16977 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
16978 for ac_func in atan2l
16980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16981 echo "configure:16982: checking for $ac_func" >&5
16982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16983 echo $ac_n "(cached) $ac_c" 1>&6
16984 else
16985 cat > conftest.$ac_ext <<EOF
16986 #line 16987 "configure"
16987 #include "confdefs.h"
16988 /* System header to define __stub macros and hopefully few prototypes,
16989 which can conflict with char $ac_func(); below. */
16990 #include <assert.h>
16991 /* Override any gcc2 internal prototype to avoid an error. */
16992 /* We use char because int might match the return type of a gcc2
16993 builtin and then its argument prototype would still apply. */
16994 char $ac_func();
16996 int main() {
16998 /* The GNU C library defines this for functions which it implements
16999 to always fail with ENOSYS. Some functions are actually named
17000 something starting with __ and the normal name is an alias. */
17001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17002 choke me
17003 #else
17004 $ac_func();
17005 #endif
17007 ; return 0; }
17009 if { (eval echo configure:17010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17010 rm -rf conftest*
17011 eval "ac_cv_func_$ac_func=yes"
17012 else
17013 echo "configure: failed program was:" >&5
17014 cat conftest.$ac_ext >&5
17015 rm -rf conftest*
17016 eval "ac_cv_func_$ac_func=no"
17018 rm -f conftest*
17021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17022 echo "$ac_t""yes" 1>&6
17023 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17024 cat >> confdefs.h <<EOF
17025 #define $ac_tr_func 1
17028 else
17029 echo "$ac_t""no" 1>&6
17031 done
17033 else
17035 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17036 echo "configure:17037: checking for _atan2l declaration" >&5
17037 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17038 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17039 echo $ac_n "(cached) $ac_c" 1>&6
17040 else
17043 ac_ext=C
17044 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17045 ac_cpp='$CXXCPP $CPPFLAGS'
17046 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17047 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17048 cross_compiling=$ac_cv_prog_cxx_cross
17050 cat > conftest.$ac_ext <<EOF
17051 #line 17052 "configure"
17052 #include "confdefs.h"
17053 #include <math.h>
17054 int main() {
17055 _atan2l(0, 0);
17056 ; return 0; }
17058 if { (eval echo configure:17059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17059 rm -rf conftest*
17060 glibcpp_cv_func__atan2l_use=yes
17061 else
17062 echo "configure: failed program was:" >&5
17063 cat conftest.$ac_ext >&5
17064 rm -rf conftest*
17065 glibcpp_cv_func__atan2l_use=no
17067 rm -f conftest*
17068 ac_ext=c
17069 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17070 ac_cpp='$CPP $CPPFLAGS'
17071 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17072 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17073 cross_compiling=$ac_cv_prog_cc_cross
17079 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17081 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17082 for ac_func in _atan2l
17084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17085 echo "configure:17086: checking for $ac_func" >&5
17086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17087 echo $ac_n "(cached) $ac_c" 1>&6
17088 else
17089 cat > conftest.$ac_ext <<EOF
17090 #line 17091 "configure"
17091 #include "confdefs.h"
17092 /* System header to define __stub macros and hopefully few prototypes,
17093 which can conflict with char $ac_func(); below. */
17094 #include <assert.h>
17095 /* Override any gcc2 internal prototype to avoid an error. */
17096 /* We use char because int might match the return type of a gcc2
17097 builtin and then its argument prototype would still apply. */
17098 char $ac_func();
17100 int main() {
17102 /* The GNU C library defines this for functions which it implements
17103 to always fail with ENOSYS. Some functions are actually named
17104 something starting with __ and the normal name is an alias. */
17105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17106 choke me
17107 #else
17108 $ac_func();
17109 #endif
17111 ; return 0; }
17113 if { (eval echo configure:17114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17114 rm -rf conftest*
17115 eval "ac_cv_func_$ac_func=yes"
17116 else
17117 echo "configure: failed program was:" >&5
17118 cat conftest.$ac_ext >&5
17119 rm -rf conftest*
17120 eval "ac_cv_func_$ac_func=no"
17122 rm -f conftest*
17125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17126 echo "$ac_t""yes" 1>&6
17127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17128 cat >> confdefs.h <<EOF
17129 #define $ac_tr_func 1
17132 else
17133 echo "$ac_t""no" 1>&6
17135 done
17142 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17143 echo "configure:17144: checking for expl declaration" >&5
17144 if test x${glibcpp_cv_func_expl_use+set} != xset; then
17145 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17146 echo $ac_n "(cached) $ac_c" 1>&6
17147 else
17150 ac_ext=C
17151 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17152 ac_cpp='$CXXCPP $CPPFLAGS'
17153 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17154 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17155 cross_compiling=$ac_cv_prog_cxx_cross
17157 cat > conftest.$ac_ext <<EOF
17158 #line 17159 "configure"
17159 #include "confdefs.h"
17160 #include <math.h>
17161 #ifdef HAVE_IEEEFP_H
17162 #include <ieeefp.h>
17163 #endif
17165 int main() {
17166 expl(0);
17167 ; return 0; }
17169 if { (eval echo configure:17170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17170 rm -rf conftest*
17171 glibcpp_cv_func_expl_use=yes
17172 else
17173 echo "configure: failed program was:" >&5
17174 cat conftest.$ac_ext >&5
17175 rm -rf conftest*
17176 glibcpp_cv_func_expl_use=no
17178 rm -f conftest*
17179 ac_ext=c
17180 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17181 ac_cpp='$CPP $CPPFLAGS'
17182 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17183 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17184 cross_compiling=$ac_cv_prog_cc_cross
17190 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17192 if test x$glibcpp_cv_func_expl_use = x"yes"; then
17193 for ac_func in expl
17195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17196 echo "configure:17197: checking for $ac_func" >&5
17197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17198 echo $ac_n "(cached) $ac_c" 1>&6
17199 else
17200 cat > conftest.$ac_ext <<EOF
17201 #line 17202 "configure"
17202 #include "confdefs.h"
17203 /* System header to define __stub macros and hopefully few prototypes,
17204 which can conflict with char $ac_func(); below. */
17205 #include <assert.h>
17206 /* Override any gcc2 internal prototype to avoid an error. */
17207 /* We use char because int might match the return type of a gcc2
17208 builtin and then its argument prototype would still apply. */
17209 char $ac_func();
17211 int main() {
17213 /* The GNU C library defines this for functions which it implements
17214 to always fail with ENOSYS. Some functions are actually named
17215 something starting with __ and the normal name is an alias. */
17216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17217 choke me
17218 #else
17219 $ac_func();
17220 #endif
17222 ; return 0; }
17224 if { (eval echo configure:17225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17225 rm -rf conftest*
17226 eval "ac_cv_func_$ac_func=yes"
17227 else
17228 echo "configure: failed program was:" >&5
17229 cat conftest.$ac_ext >&5
17230 rm -rf conftest*
17231 eval "ac_cv_func_$ac_func=no"
17233 rm -f conftest*
17236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17237 echo "$ac_t""yes" 1>&6
17238 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17239 cat >> confdefs.h <<EOF
17240 #define $ac_tr_func 1
17243 else
17244 echo "$ac_t""no" 1>&6
17246 done
17248 else
17250 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17251 echo "configure:17252: checking for _expl declaration" >&5
17252 if test x${glibcpp_cv_func__expl_use+set} != xset; then
17253 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17254 echo $ac_n "(cached) $ac_c" 1>&6
17255 else
17258 ac_ext=C
17259 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17260 ac_cpp='$CXXCPP $CPPFLAGS'
17261 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17262 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17263 cross_compiling=$ac_cv_prog_cxx_cross
17265 cat > conftest.$ac_ext <<EOF
17266 #line 17267 "configure"
17267 #include "confdefs.h"
17268 #include <math.h>
17269 #ifdef HAVE_IEEEFP_H
17270 #include <ieeefp.h>
17271 #endif
17273 int main() {
17274 _expl(0);
17275 ; return 0; }
17277 if { (eval echo configure:17278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17278 rm -rf conftest*
17279 glibcpp_cv_func__expl_use=yes
17280 else
17281 echo "configure: failed program was:" >&5
17282 cat conftest.$ac_ext >&5
17283 rm -rf conftest*
17284 glibcpp_cv_func__expl_use=no
17286 rm -f conftest*
17287 ac_ext=c
17288 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17289 ac_cpp='$CPP $CPPFLAGS'
17290 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17291 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17292 cross_compiling=$ac_cv_prog_cc_cross
17298 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17300 if test x$glibcpp_cv_func__expl_use = x"yes"; then
17301 for ac_func in _expl
17303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17304 echo "configure:17305: checking for $ac_func" >&5
17305 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17306 echo $ac_n "(cached) $ac_c" 1>&6
17307 else
17308 cat > conftest.$ac_ext <<EOF
17309 #line 17310 "configure"
17310 #include "confdefs.h"
17311 /* System header to define __stub macros and hopefully few prototypes,
17312 which can conflict with char $ac_func(); below. */
17313 #include <assert.h>
17314 /* Override any gcc2 internal prototype to avoid an error. */
17315 /* We use char because int might match the return type of a gcc2
17316 builtin and then its argument prototype would still apply. */
17317 char $ac_func();
17319 int main() {
17321 /* The GNU C library defines this for functions which it implements
17322 to always fail with ENOSYS. Some functions are actually named
17323 something starting with __ and the normal name is an alias. */
17324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17325 choke me
17326 #else
17327 $ac_func();
17328 #endif
17330 ; return 0; }
17332 if { (eval echo configure:17333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17333 rm -rf conftest*
17334 eval "ac_cv_func_$ac_func=yes"
17335 else
17336 echo "configure: failed program was:" >&5
17337 cat conftest.$ac_ext >&5
17338 rm -rf conftest*
17339 eval "ac_cv_func_$ac_func=no"
17341 rm -f conftest*
17344 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17345 echo "$ac_t""yes" 1>&6
17346 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17347 cat >> confdefs.h <<EOF
17348 #define $ac_tr_func 1
17351 else
17352 echo "$ac_t""no" 1>&6
17354 done
17361 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17362 echo "configure:17363: checking for fabsl declaration" >&5
17363 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17364 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17365 echo $ac_n "(cached) $ac_c" 1>&6
17366 else
17369 ac_ext=C
17370 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17371 ac_cpp='$CXXCPP $CPPFLAGS'
17372 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17373 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17374 cross_compiling=$ac_cv_prog_cxx_cross
17376 cat > conftest.$ac_ext <<EOF
17377 #line 17378 "configure"
17378 #include "confdefs.h"
17379 #include <math.h>
17380 #ifdef HAVE_IEEEFP_H
17381 #include <ieeefp.h>
17382 #endif
17384 int main() {
17385 fabsl(0);
17386 ; return 0; }
17388 if { (eval echo configure:17389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17389 rm -rf conftest*
17390 glibcpp_cv_func_fabsl_use=yes
17391 else
17392 echo "configure: failed program was:" >&5
17393 cat conftest.$ac_ext >&5
17394 rm -rf conftest*
17395 glibcpp_cv_func_fabsl_use=no
17397 rm -f conftest*
17398 ac_ext=c
17399 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17400 ac_cpp='$CPP $CPPFLAGS'
17401 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17402 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17403 cross_compiling=$ac_cv_prog_cc_cross
17409 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17411 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17412 for ac_func in fabsl
17414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17415 echo "configure:17416: checking for $ac_func" >&5
17416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17417 echo $ac_n "(cached) $ac_c" 1>&6
17418 else
17419 cat > conftest.$ac_ext <<EOF
17420 #line 17421 "configure"
17421 #include "confdefs.h"
17422 /* System header to define __stub macros and hopefully few prototypes,
17423 which can conflict with char $ac_func(); below. */
17424 #include <assert.h>
17425 /* Override any gcc2 internal prototype to avoid an error. */
17426 /* We use char because int might match the return type of a gcc2
17427 builtin and then its argument prototype would still apply. */
17428 char $ac_func();
17430 int main() {
17432 /* The GNU C library defines this for functions which it implements
17433 to always fail with ENOSYS. Some functions are actually named
17434 something starting with __ and the normal name is an alias. */
17435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17436 choke me
17437 #else
17438 $ac_func();
17439 #endif
17441 ; return 0; }
17443 if { (eval echo configure:17444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17444 rm -rf conftest*
17445 eval "ac_cv_func_$ac_func=yes"
17446 else
17447 echo "configure: failed program was:" >&5
17448 cat conftest.$ac_ext >&5
17449 rm -rf conftest*
17450 eval "ac_cv_func_$ac_func=no"
17452 rm -f conftest*
17455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17456 echo "$ac_t""yes" 1>&6
17457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17458 cat >> confdefs.h <<EOF
17459 #define $ac_tr_func 1
17462 else
17463 echo "$ac_t""no" 1>&6
17465 done
17467 else
17469 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17470 echo "configure:17471: checking for _fabsl declaration" >&5
17471 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17472 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17473 echo $ac_n "(cached) $ac_c" 1>&6
17474 else
17477 ac_ext=C
17478 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17479 ac_cpp='$CXXCPP $CPPFLAGS'
17480 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17481 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17482 cross_compiling=$ac_cv_prog_cxx_cross
17484 cat > conftest.$ac_ext <<EOF
17485 #line 17486 "configure"
17486 #include "confdefs.h"
17487 #include <math.h>
17488 #ifdef HAVE_IEEEFP_H
17489 #include <ieeefp.h>
17490 #endif
17492 int main() {
17493 _fabsl(0);
17494 ; return 0; }
17496 if { (eval echo configure:17497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17497 rm -rf conftest*
17498 glibcpp_cv_func__fabsl_use=yes
17499 else
17500 echo "configure: failed program was:" >&5
17501 cat conftest.$ac_ext >&5
17502 rm -rf conftest*
17503 glibcpp_cv_func__fabsl_use=no
17505 rm -f conftest*
17506 ac_ext=c
17507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17508 ac_cpp='$CPP $CPPFLAGS'
17509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17511 cross_compiling=$ac_cv_prog_cc_cross
17517 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17519 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17520 for ac_func in _fabsl
17522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17523 echo "configure:17524: checking for $ac_func" >&5
17524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17525 echo $ac_n "(cached) $ac_c" 1>&6
17526 else
17527 cat > conftest.$ac_ext <<EOF
17528 #line 17529 "configure"
17529 #include "confdefs.h"
17530 /* System header to define __stub macros and hopefully few prototypes,
17531 which can conflict with char $ac_func(); below. */
17532 #include <assert.h>
17533 /* Override any gcc2 internal prototype to avoid an error. */
17534 /* We use char because int might match the return type of a gcc2
17535 builtin and then its argument prototype would still apply. */
17536 char $ac_func();
17538 int main() {
17540 /* The GNU C library defines this for functions which it implements
17541 to always fail with ENOSYS. Some functions are actually named
17542 something starting with __ and the normal name is an alias. */
17543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17544 choke me
17545 #else
17546 $ac_func();
17547 #endif
17549 ; return 0; }
17551 if { (eval echo configure:17552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17552 rm -rf conftest*
17553 eval "ac_cv_func_$ac_func=yes"
17554 else
17555 echo "configure: failed program was:" >&5
17556 cat conftest.$ac_ext >&5
17557 rm -rf conftest*
17558 eval "ac_cv_func_$ac_func=no"
17560 rm -f conftest*
17563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17564 echo "$ac_t""yes" 1>&6
17565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17566 cat >> confdefs.h <<EOF
17567 #define $ac_tr_func 1
17570 else
17571 echo "$ac_t""no" 1>&6
17573 done
17580 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17581 echo "configure:17582: checking for fmodl declaration" >&5
17582 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17583 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17584 echo $ac_n "(cached) $ac_c" 1>&6
17585 else
17588 ac_ext=C
17589 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17590 ac_cpp='$CXXCPP $CPPFLAGS'
17591 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17592 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17593 cross_compiling=$ac_cv_prog_cxx_cross
17595 cat > conftest.$ac_ext <<EOF
17596 #line 17597 "configure"
17597 #include "confdefs.h"
17598 #include <math.h>
17599 int main() {
17600 fmodl(0, 0);
17601 ; return 0; }
17603 if { (eval echo configure:17604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17604 rm -rf conftest*
17605 glibcpp_cv_func_fmodl_use=yes
17606 else
17607 echo "configure: failed program was:" >&5
17608 cat conftest.$ac_ext >&5
17609 rm -rf conftest*
17610 glibcpp_cv_func_fmodl_use=no
17612 rm -f conftest*
17613 ac_ext=c
17614 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17615 ac_cpp='$CPP $CPPFLAGS'
17616 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17617 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17618 cross_compiling=$ac_cv_prog_cc_cross
17624 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17626 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17627 for ac_func in fmodl
17629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17630 echo "configure:17631: checking for $ac_func" >&5
17631 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17632 echo $ac_n "(cached) $ac_c" 1>&6
17633 else
17634 cat > conftest.$ac_ext <<EOF
17635 #line 17636 "configure"
17636 #include "confdefs.h"
17637 /* System header to define __stub macros and hopefully few prototypes,
17638 which can conflict with char $ac_func(); below. */
17639 #include <assert.h>
17640 /* Override any gcc2 internal prototype to avoid an error. */
17641 /* We use char because int might match the return type of a gcc2
17642 builtin and then its argument prototype would still apply. */
17643 char $ac_func();
17645 int main() {
17647 /* The GNU C library defines this for functions which it implements
17648 to always fail with ENOSYS. Some functions are actually named
17649 something starting with __ and the normal name is an alias. */
17650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17651 choke me
17652 #else
17653 $ac_func();
17654 #endif
17656 ; return 0; }
17658 if { (eval echo configure:17659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17659 rm -rf conftest*
17660 eval "ac_cv_func_$ac_func=yes"
17661 else
17662 echo "configure: failed program was:" >&5
17663 cat conftest.$ac_ext >&5
17664 rm -rf conftest*
17665 eval "ac_cv_func_$ac_func=no"
17667 rm -f conftest*
17670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17671 echo "$ac_t""yes" 1>&6
17672 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17673 cat >> confdefs.h <<EOF
17674 #define $ac_tr_func 1
17677 else
17678 echo "$ac_t""no" 1>&6
17680 done
17682 else
17684 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17685 echo "configure:17686: checking for _fmodl declaration" >&5
17686 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17687 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17688 echo $ac_n "(cached) $ac_c" 1>&6
17689 else
17692 ac_ext=C
17693 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17694 ac_cpp='$CXXCPP $CPPFLAGS'
17695 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17696 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17697 cross_compiling=$ac_cv_prog_cxx_cross
17699 cat > conftest.$ac_ext <<EOF
17700 #line 17701 "configure"
17701 #include "confdefs.h"
17702 #include <math.h>
17703 int main() {
17704 _fmodl(0, 0);
17705 ; return 0; }
17707 if { (eval echo configure:17708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17708 rm -rf conftest*
17709 glibcpp_cv_func__fmodl_use=yes
17710 else
17711 echo "configure: failed program was:" >&5
17712 cat conftest.$ac_ext >&5
17713 rm -rf conftest*
17714 glibcpp_cv_func__fmodl_use=no
17716 rm -f conftest*
17717 ac_ext=c
17718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17719 ac_cpp='$CPP $CPPFLAGS'
17720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17722 cross_compiling=$ac_cv_prog_cc_cross
17728 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17730 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17731 for ac_func in _fmodl
17733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17734 echo "configure:17735: checking for $ac_func" >&5
17735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17736 echo $ac_n "(cached) $ac_c" 1>&6
17737 else
17738 cat > conftest.$ac_ext <<EOF
17739 #line 17740 "configure"
17740 #include "confdefs.h"
17741 /* System header to define __stub macros and hopefully few prototypes,
17742 which can conflict with char $ac_func(); below. */
17743 #include <assert.h>
17744 /* Override any gcc2 internal prototype to avoid an error. */
17745 /* We use char because int might match the return type of a gcc2
17746 builtin and then its argument prototype would still apply. */
17747 char $ac_func();
17749 int main() {
17751 /* The GNU C library defines this for functions which it implements
17752 to always fail with ENOSYS. Some functions are actually named
17753 something starting with __ and the normal name is an alias. */
17754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17755 choke me
17756 #else
17757 $ac_func();
17758 #endif
17760 ; return 0; }
17762 if { (eval echo configure:17763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17763 rm -rf conftest*
17764 eval "ac_cv_func_$ac_func=yes"
17765 else
17766 echo "configure: failed program was:" >&5
17767 cat conftest.$ac_ext >&5
17768 rm -rf conftest*
17769 eval "ac_cv_func_$ac_func=no"
17771 rm -f conftest*
17774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17775 echo "$ac_t""yes" 1>&6
17776 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17777 cat >> confdefs.h <<EOF
17778 #define $ac_tr_func 1
17781 else
17782 echo "$ac_t""no" 1>&6
17784 done
17791 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17792 echo "configure:17793: checking for frexpl declaration" >&5
17793 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17794 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17795 echo $ac_n "(cached) $ac_c" 1>&6
17796 else
17799 ac_ext=C
17800 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17801 ac_cpp='$CXXCPP $CPPFLAGS'
17802 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17803 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17804 cross_compiling=$ac_cv_prog_cxx_cross
17806 cat > conftest.$ac_ext <<EOF
17807 #line 17808 "configure"
17808 #include "confdefs.h"
17809 #include <math.h>
17810 int main() {
17811 frexpl(0, 0);
17812 ; return 0; }
17814 if { (eval echo configure:17815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17815 rm -rf conftest*
17816 glibcpp_cv_func_frexpl_use=yes
17817 else
17818 echo "configure: failed program was:" >&5
17819 cat conftest.$ac_ext >&5
17820 rm -rf conftest*
17821 glibcpp_cv_func_frexpl_use=no
17823 rm -f conftest*
17824 ac_ext=c
17825 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17826 ac_cpp='$CPP $CPPFLAGS'
17827 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17828 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17829 cross_compiling=$ac_cv_prog_cc_cross
17835 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17837 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17838 for ac_func in frexpl
17840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17841 echo "configure:17842: checking for $ac_func" >&5
17842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17843 echo $ac_n "(cached) $ac_c" 1>&6
17844 else
17845 cat > conftest.$ac_ext <<EOF
17846 #line 17847 "configure"
17847 #include "confdefs.h"
17848 /* System header to define __stub macros and hopefully few prototypes,
17849 which can conflict with char $ac_func(); below. */
17850 #include <assert.h>
17851 /* Override any gcc2 internal prototype to avoid an error. */
17852 /* We use char because int might match the return type of a gcc2
17853 builtin and then its argument prototype would still apply. */
17854 char $ac_func();
17856 int main() {
17858 /* The GNU C library defines this for functions which it implements
17859 to always fail with ENOSYS. Some functions are actually named
17860 something starting with __ and the normal name is an alias. */
17861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17862 choke me
17863 #else
17864 $ac_func();
17865 #endif
17867 ; return 0; }
17869 if { (eval echo configure:17870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17870 rm -rf conftest*
17871 eval "ac_cv_func_$ac_func=yes"
17872 else
17873 echo "configure: failed program was:" >&5
17874 cat conftest.$ac_ext >&5
17875 rm -rf conftest*
17876 eval "ac_cv_func_$ac_func=no"
17878 rm -f conftest*
17881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17882 echo "$ac_t""yes" 1>&6
17883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17884 cat >> confdefs.h <<EOF
17885 #define $ac_tr_func 1
17888 else
17889 echo "$ac_t""no" 1>&6
17891 done
17893 else
17895 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17896 echo "configure:17897: checking for _frexpl declaration" >&5
17897 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17898 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17899 echo $ac_n "(cached) $ac_c" 1>&6
17900 else
17903 ac_ext=C
17904 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17905 ac_cpp='$CXXCPP $CPPFLAGS'
17906 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17907 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17908 cross_compiling=$ac_cv_prog_cxx_cross
17910 cat > conftest.$ac_ext <<EOF
17911 #line 17912 "configure"
17912 #include "confdefs.h"
17913 #include <math.h>
17914 int main() {
17915 _frexpl(0, 0);
17916 ; return 0; }
17918 if { (eval echo configure:17919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17919 rm -rf conftest*
17920 glibcpp_cv_func__frexpl_use=yes
17921 else
17922 echo "configure: failed program was:" >&5
17923 cat conftest.$ac_ext >&5
17924 rm -rf conftest*
17925 glibcpp_cv_func__frexpl_use=no
17927 rm -f conftest*
17928 ac_ext=c
17929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17930 ac_cpp='$CPP $CPPFLAGS'
17931 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17932 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17933 cross_compiling=$ac_cv_prog_cc_cross
17939 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17941 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17942 for ac_func in _frexpl
17944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17945 echo "configure:17946: checking for $ac_func" >&5
17946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17947 echo $ac_n "(cached) $ac_c" 1>&6
17948 else
17949 cat > conftest.$ac_ext <<EOF
17950 #line 17951 "configure"
17951 #include "confdefs.h"
17952 /* System header to define __stub macros and hopefully few prototypes,
17953 which can conflict with char $ac_func(); below. */
17954 #include <assert.h>
17955 /* Override any gcc2 internal prototype to avoid an error. */
17956 /* We use char because int might match the return type of a gcc2
17957 builtin and then its argument prototype would still apply. */
17958 char $ac_func();
17960 int main() {
17962 /* The GNU C library defines this for functions which it implements
17963 to always fail with ENOSYS. Some functions are actually named
17964 something starting with __ and the normal name is an alias. */
17965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17966 choke me
17967 #else
17968 $ac_func();
17969 #endif
17971 ; return 0; }
17973 if { (eval echo configure:17974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17974 rm -rf conftest*
17975 eval "ac_cv_func_$ac_func=yes"
17976 else
17977 echo "configure: failed program was:" >&5
17978 cat conftest.$ac_ext >&5
17979 rm -rf conftest*
17980 eval "ac_cv_func_$ac_func=no"
17982 rm -f conftest*
17985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17986 echo "$ac_t""yes" 1>&6
17987 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17988 cat >> confdefs.h <<EOF
17989 #define $ac_tr_func 1
17992 else
17993 echo "$ac_t""no" 1>&6
17995 done
18002 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18003 echo "configure:18004: checking for hypotl declaration" >&5
18004 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18005 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18006 echo $ac_n "(cached) $ac_c" 1>&6
18007 else
18010 ac_ext=C
18011 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18012 ac_cpp='$CXXCPP $CPPFLAGS'
18013 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18014 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18015 cross_compiling=$ac_cv_prog_cxx_cross
18017 cat > conftest.$ac_ext <<EOF
18018 #line 18019 "configure"
18019 #include "confdefs.h"
18020 #include <math.h>
18021 int main() {
18022 hypotl(0, 0);
18023 ; return 0; }
18025 if { (eval echo configure:18026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18026 rm -rf conftest*
18027 glibcpp_cv_func_hypotl_use=yes
18028 else
18029 echo "configure: failed program was:" >&5
18030 cat conftest.$ac_ext >&5
18031 rm -rf conftest*
18032 glibcpp_cv_func_hypotl_use=no
18034 rm -f conftest*
18035 ac_ext=c
18036 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18037 ac_cpp='$CPP $CPPFLAGS'
18038 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18039 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18040 cross_compiling=$ac_cv_prog_cc_cross
18046 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18048 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18049 for ac_func in hypotl
18051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18052 echo "configure:18053: checking for $ac_func" >&5
18053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18054 echo $ac_n "(cached) $ac_c" 1>&6
18055 else
18056 cat > conftest.$ac_ext <<EOF
18057 #line 18058 "configure"
18058 #include "confdefs.h"
18059 /* System header to define __stub macros and hopefully few prototypes,
18060 which can conflict with char $ac_func(); below. */
18061 #include <assert.h>
18062 /* Override any gcc2 internal prototype to avoid an error. */
18063 /* We use char because int might match the return type of a gcc2
18064 builtin and then its argument prototype would still apply. */
18065 char $ac_func();
18067 int main() {
18069 /* The GNU C library defines this for functions which it implements
18070 to always fail with ENOSYS. Some functions are actually named
18071 something starting with __ and the normal name is an alias. */
18072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18073 choke me
18074 #else
18075 $ac_func();
18076 #endif
18078 ; return 0; }
18080 if { (eval echo configure:18081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18081 rm -rf conftest*
18082 eval "ac_cv_func_$ac_func=yes"
18083 else
18084 echo "configure: failed program was:" >&5
18085 cat conftest.$ac_ext >&5
18086 rm -rf conftest*
18087 eval "ac_cv_func_$ac_func=no"
18089 rm -f conftest*
18092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18093 echo "$ac_t""yes" 1>&6
18094 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18095 cat >> confdefs.h <<EOF
18096 #define $ac_tr_func 1
18099 else
18100 echo "$ac_t""no" 1>&6
18102 done
18104 else
18106 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18107 echo "configure:18108: checking for _hypotl declaration" >&5
18108 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18109 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18110 echo $ac_n "(cached) $ac_c" 1>&6
18111 else
18114 ac_ext=C
18115 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18116 ac_cpp='$CXXCPP $CPPFLAGS'
18117 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18118 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18119 cross_compiling=$ac_cv_prog_cxx_cross
18121 cat > conftest.$ac_ext <<EOF
18122 #line 18123 "configure"
18123 #include "confdefs.h"
18124 #include <math.h>
18125 int main() {
18126 _hypotl(0, 0);
18127 ; return 0; }
18129 if { (eval echo configure:18130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18130 rm -rf conftest*
18131 glibcpp_cv_func__hypotl_use=yes
18132 else
18133 echo "configure: failed program was:" >&5
18134 cat conftest.$ac_ext >&5
18135 rm -rf conftest*
18136 glibcpp_cv_func__hypotl_use=no
18138 rm -f conftest*
18139 ac_ext=c
18140 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18141 ac_cpp='$CPP $CPPFLAGS'
18142 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18143 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18144 cross_compiling=$ac_cv_prog_cc_cross
18150 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18152 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18153 for ac_func in _hypotl
18155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18156 echo "configure:18157: checking for $ac_func" >&5
18157 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18158 echo $ac_n "(cached) $ac_c" 1>&6
18159 else
18160 cat > conftest.$ac_ext <<EOF
18161 #line 18162 "configure"
18162 #include "confdefs.h"
18163 /* System header to define __stub macros and hopefully few prototypes,
18164 which can conflict with char $ac_func(); below. */
18165 #include <assert.h>
18166 /* Override any gcc2 internal prototype to avoid an error. */
18167 /* We use char because int might match the return type of a gcc2
18168 builtin and then its argument prototype would still apply. */
18169 char $ac_func();
18171 int main() {
18173 /* The GNU C library defines this for functions which it implements
18174 to always fail with ENOSYS. Some functions are actually named
18175 something starting with __ and the normal name is an alias. */
18176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18177 choke me
18178 #else
18179 $ac_func();
18180 #endif
18182 ; return 0; }
18184 if { (eval echo configure:18185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18185 rm -rf conftest*
18186 eval "ac_cv_func_$ac_func=yes"
18187 else
18188 echo "configure: failed program was:" >&5
18189 cat conftest.$ac_ext >&5
18190 rm -rf conftest*
18191 eval "ac_cv_func_$ac_func=no"
18193 rm -f conftest*
18196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18197 echo "$ac_t""yes" 1>&6
18198 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18199 cat >> confdefs.h <<EOF
18200 #define $ac_tr_func 1
18203 else
18204 echo "$ac_t""no" 1>&6
18206 done
18213 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18214 echo "configure:18215: checking for ldexpl declaration" >&5
18215 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18216 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18217 echo $ac_n "(cached) $ac_c" 1>&6
18218 else
18221 ac_ext=C
18222 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18223 ac_cpp='$CXXCPP $CPPFLAGS'
18224 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18225 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18226 cross_compiling=$ac_cv_prog_cxx_cross
18228 cat > conftest.$ac_ext <<EOF
18229 #line 18230 "configure"
18230 #include "confdefs.h"
18231 #include <math.h>
18232 int main() {
18233 ldexpl(0, 0);
18234 ; return 0; }
18236 if { (eval echo configure:18237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18237 rm -rf conftest*
18238 glibcpp_cv_func_ldexpl_use=yes
18239 else
18240 echo "configure: failed program was:" >&5
18241 cat conftest.$ac_ext >&5
18242 rm -rf conftest*
18243 glibcpp_cv_func_ldexpl_use=no
18245 rm -f conftest*
18246 ac_ext=c
18247 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18248 ac_cpp='$CPP $CPPFLAGS'
18249 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18250 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18251 cross_compiling=$ac_cv_prog_cc_cross
18257 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18259 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18260 for ac_func in ldexpl
18262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18263 echo "configure:18264: checking for $ac_func" >&5
18264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18265 echo $ac_n "(cached) $ac_c" 1>&6
18266 else
18267 cat > conftest.$ac_ext <<EOF
18268 #line 18269 "configure"
18269 #include "confdefs.h"
18270 /* System header to define __stub macros and hopefully few prototypes,
18271 which can conflict with char $ac_func(); below. */
18272 #include <assert.h>
18273 /* Override any gcc2 internal prototype to avoid an error. */
18274 /* We use char because int might match the return type of a gcc2
18275 builtin and then its argument prototype would still apply. */
18276 char $ac_func();
18278 int main() {
18280 /* The GNU C library defines this for functions which it implements
18281 to always fail with ENOSYS. Some functions are actually named
18282 something starting with __ and the normal name is an alias. */
18283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18284 choke me
18285 #else
18286 $ac_func();
18287 #endif
18289 ; return 0; }
18291 if { (eval echo configure:18292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18292 rm -rf conftest*
18293 eval "ac_cv_func_$ac_func=yes"
18294 else
18295 echo "configure: failed program was:" >&5
18296 cat conftest.$ac_ext >&5
18297 rm -rf conftest*
18298 eval "ac_cv_func_$ac_func=no"
18300 rm -f conftest*
18303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18304 echo "$ac_t""yes" 1>&6
18305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18306 cat >> confdefs.h <<EOF
18307 #define $ac_tr_func 1
18310 else
18311 echo "$ac_t""no" 1>&6
18313 done
18315 else
18317 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18318 echo "configure:18319: checking for _ldexpl declaration" >&5
18319 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18320 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18321 echo $ac_n "(cached) $ac_c" 1>&6
18322 else
18325 ac_ext=C
18326 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18327 ac_cpp='$CXXCPP $CPPFLAGS'
18328 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18329 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18330 cross_compiling=$ac_cv_prog_cxx_cross
18332 cat > conftest.$ac_ext <<EOF
18333 #line 18334 "configure"
18334 #include "confdefs.h"
18335 #include <math.h>
18336 int main() {
18337 _ldexpl(0, 0);
18338 ; return 0; }
18340 if { (eval echo configure:18341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18341 rm -rf conftest*
18342 glibcpp_cv_func__ldexpl_use=yes
18343 else
18344 echo "configure: failed program was:" >&5
18345 cat conftest.$ac_ext >&5
18346 rm -rf conftest*
18347 glibcpp_cv_func__ldexpl_use=no
18349 rm -f conftest*
18350 ac_ext=c
18351 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18352 ac_cpp='$CPP $CPPFLAGS'
18353 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18354 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18355 cross_compiling=$ac_cv_prog_cc_cross
18361 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18363 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18364 for ac_func in _ldexpl
18366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18367 echo "configure:18368: checking for $ac_func" >&5
18368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18369 echo $ac_n "(cached) $ac_c" 1>&6
18370 else
18371 cat > conftest.$ac_ext <<EOF
18372 #line 18373 "configure"
18373 #include "confdefs.h"
18374 /* System header to define __stub macros and hopefully few prototypes,
18375 which can conflict with char $ac_func(); below. */
18376 #include <assert.h>
18377 /* Override any gcc2 internal prototype to avoid an error. */
18378 /* We use char because int might match the return type of a gcc2
18379 builtin and then its argument prototype would still apply. */
18380 char $ac_func();
18382 int main() {
18384 /* The GNU C library defines this for functions which it implements
18385 to always fail with ENOSYS. Some functions are actually named
18386 something starting with __ and the normal name is an alias. */
18387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18388 choke me
18389 #else
18390 $ac_func();
18391 #endif
18393 ; return 0; }
18395 if { (eval echo configure:18396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18396 rm -rf conftest*
18397 eval "ac_cv_func_$ac_func=yes"
18398 else
18399 echo "configure: failed program was:" >&5
18400 cat conftest.$ac_ext >&5
18401 rm -rf conftest*
18402 eval "ac_cv_func_$ac_func=no"
18404 rm -f conftest*
18407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18408 echo "$ac_t""yes" 1>&6
18409 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18410 cat >> confdefs.h <<EOF
18411 #define $ac_tr_func 1
18414 else
18415 echo "$ac_t""no" 1>&6
18417 done
18424 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18425 echo "configure:18426: checking for logl declaration" >&5
18426 if test x${glibcpp_cv_func_logl_use+set} != xset; then
18427 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18428 echo $ac_n "(cached) $ac_c" 1>&6
18429 else
18432 ac_ext=C
18433 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18434 ac_cpp='$CXXCPP $CPPFLAGS'
18435 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18436 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18437 cross_compiling=$ac_cv_prog_cxx_cross
18439 cat > conftest.$ac_ext <<EOF
18440 #line 18441 "configure"
18441 #include "confdefs.h"
18442 #include <math.h>
18443 #ifdef HAVE_IEEEFP_H
18444 #include <ieeefp.h>
18445 #endif
18447 int main() {
18448 logl(0);
18449 ; return 0; }
18451 if { (eval echo configure:18452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18452 rm -rf conftest*
18453 glibcpp_cv_func_logl_use=yes
18454 else
18455 echo "configure: failed program was:" >&5
18456 cat conftest.$ac_ext >&5
18457 rm -rf conftest*
18458 glibcpp_cv_func_logl_use=no
18460 rm -f conftest*
18461 ac_ext=c
18462 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18463 ac_cpp='$CPP $CPPFLAGS'
18464 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18465 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18466 cross_compiling=$ac_cv_prog_cc_cross
18472 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18474 if test x$glibcpp_cv_func_logl_use = x"yes"; then
18475 for ac_func in logl
18477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18478 echo "configure:18479: checking for $ac_func" >&5
18479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18480 echo $ac_n "(cached) $ac_c" 1>&6
18481 else
18482 cat > conftest.$ac_ext <<EOF
18483 #line 18484 "configure"
18484 #include "confdefs.h"
18485 /* System header to define __stub macros and hopefully few prototypes,
18486 which can conflict with char $ac_func(); below. */
18487 #include <assert.h>
18488 /* Override any gcc2 internal prototype to avoid an error. */
18489 /* We use char because int might match the return type of a gcc2
18490 builtin and then its argument prototype would still apply. */
18491 char $ac_func();
18493 int main() {
18495 /* The GNU C library defines this for functions which it implements
18496 to always fail with ENOSYS. Some functions are actually named
18497 something starting with __ and the normal name is an alias. */
18498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18499 choke me
18500 #else
18501 $ac_func();
18502 #endif
18504 ; return 0; }
18506 if { (eval echo configure:18507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18507 rm -rf conftest*
18508 eval "ac_cv_func_$ac_func=yes"
18509 else
18510 echo "configure: failed program was:" >&5
18511 cat conftest.$ac_ext >&5
18512 rm -rf conftest*
18513 eval "ac_cv_func_$ac_func=no"
18515 rm -f conftest*
18518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18519 echo "$ac_t""yes" 1>&6
18520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18521 cat >> confdefs.h <<EOF
18522 #define $ac_tr_func 1
18525 else
18526 echo "$ac_t""no" 1>&6
18528 done
18530 else
18532 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18533 echo "configure:18534: checking for _logl declaration" >&5
18534 if test x${glibcpp_cv_func__logl_use+set} != xset; then
18535 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18536 echo $ac_n "(cached) $ac_c" 1>&6
18537 else
18540 ac_ext=C
18541 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18542 ac_cpp='$CXXCPP $CPPFLAGS'
18543 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18544 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18545 cross_compiling=$ac_cv_prog_cxx_cross
18547 cat > conftest.$ac_ext <<EOF
18548 #line 18549 "configure"
18549 #include "confdefs.h"
18550 #include <math.h>
18551 #ifdef HAVE_IEEEFP_H
18552 #include <ieeefp.h>
18553 #endif
18555 int main() {
18556 _logl(0);
18557 ; return 0; }
18559 if { (eval echo configure:18560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18560 rm -rf conftest*
18561 glibcpp_cv_func__logl_use=yes
18562 else
18563 echo "configure: failed program was:" >&5
18564 cat conftest.$ac_ext >&5
18565 rm -rf conftest*
18566 glibcpp_cv_func__logl_use=no
18568 rm -f conftest*
18569 ac_ext=c
18570 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18571 ac_cpp='$CPP $CPPFLAGS'
18572 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18573 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18574 cross_compiling=$ac_cv_prog_cc_cross
18580 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18582 if test x$glibcpp_cv_func__logl_use = x"yes"; then
18583 for ac_func in _logl
18585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18586 echo "configure:18587: checking for $ac_func" >&5
18587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18588 echo $ac_n "(cached) $ac_c" 1>&6
18589 else
18590 cat > conftest.$ac_ext <<EOF
18591 #line 18592 "configure"
18592 #include "confdefs.h"
18593 /* System header to define __stub macros and hopefully few prototypes,
18594 which can conflict with char $ac_func(); below. */
18595 #include <assert.h>
18596 /* Override any gcc2 internal prototype to avoid an error. */
18597 /* We use char because int might match the return type of a gcc2
18598 builtin and then its argument prototype would still apply. */
18599 char $ac_func();
18601 int main() {
18603 /* The GNU C library defines this for functions which it implements
18604 to always fail with ENOSYS. Some functions are actually named
18605 something starting with __ and the normal name is an alias. */
18606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18607 choke me
18608 #else
18609 $ac_func();
18610 #endif
18612 ; return 0; }
18614 if { (eval echo configure:18615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18615 rm -rf conftest*
18616 eval "ac_cv_func_$ac_func=yes"
18617 else
18618 echo "configure: failed program was:" >&5
18619 cat conftest.$ac_ext >&5
18620 rm -rf conftest*
18621 eval "ac_cv_func_$ac_func=no"
18623 rm -f conftest*
18626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18627 echo "$ac_t""yes" 1>&6
18628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18629 cat >> confdefs.h <<EOF
18630 #define $ac_tr_func 1
18633 else
18634 echo "$ac_t""no" 1>&6
18636 done
18643 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18644 echo "configure:18645: checking for log10l declaration" >&5
18645 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18646 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18647 echo $ac_n "(cached) $ac_c" 1>&6
18648 else
18651 ac_ext=C
18652 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18653 ac_cpp='$CXXCPP $CPPFLAGS'
18654 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18655 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18656 cross_compiling=$ac_cv_prog_cxx_cross
18658 cat > conftest.$ac_ext <<EOF
18659 #line 18660 "configure"
18660 #include "confdefs.h"
18661 #include <math.h>
18662 #ifdef HAVE_IEEEFP_H
18663 #include <ieeefp.h>
18664 #endif
18666 int main() {
18667 log10l(0);
18668 ; return 0; }
18670 if { (eval echo configure:18671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18671 rm -rf conftest*
18672 glibcpp_cv_func_log10l_use=yes
18673 else
18674 echo "configure: failed program was:" >&5
18675 cat conftest.$ac_ext >&5
18676 rm -rf conftest*
18677 glibcpp_cv_func_log10l_use=no
18679 rm -f conftest*
18680 ac_ext=c
18681 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18682 ac_cpp='$CPP $CPPFLAGS'
18683 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18684 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18685 cross_compiling=$ac_cv_prog_cc_cross
18691 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18693 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18694 for ac_func in log10l
18696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18697 echo "configure:18698: checking for $ac_func" >&5
18698 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18699 echo $ac_n "(cached) $ac_c" 1>&6
18700 else
18701 cat > conftest.$ac_ext <<EOF
18702 #line 18703 "configure"
18703 #include "confdefs.h"
18704 /* System header to define __stub macros and hopefully few prototypes,
18705 which can conflict with char $ac_func(); below. */
18706 #include <assert.h>
18707 /* Override any gcc2 internal prototype to avoid an error. */
18708 /* We use char because int might match the return type of a gcc2
18709 builtin and then its argument prototype would still apply. */
18710 char $ac_func();
18712 int main() {
18714 /* The GNU C library defines this for functions which it implements
18715 to always fail with ENOSYS. Some functions are actually named
18716 something starting with __ and the normal name is an alias. */
18717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18718 choke me
18719 #else
18720 $ac_func();
18721 #endif
18723 ; return 0; }
18725 if { (eval echo configure:18726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18726 rm -rf conftest*
18727 eval "ac_cv_func_$ac_func=yes"
18728 else
18729 echo "configure: failed program was:" >&5
18730 cat conftest.$ac_ext >&5
18731 rm -rf conftest*
18732 eval "ac_cv_func_$ac_func=no"
18734 rm -f conftest*
18737 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18738 echo "$ac_t""yes" 1>&6
18739 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18740 cat >> confdefs.h <<EOF
18741 #define $ac_tr_func 1
18744 else
18745 echo "$ac_t""no" 1>&6
18747 done
18749 else
18751 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18752 echo "configure:18753: checking for _log10l declaration" >&5
18753 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18754 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18755 echo $ac_n "(cached) $ac_c" 1>&6
18756 else
18759 ac_ext=C
18760 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18761 ac_cpp='$CXXCPP $CPPFLAGS'
18762 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18763 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18764 cross_compiling=$ac_cv_prog_cxx_cross
18766 cat > conftest.$ac_ext <<EOF
18767 #line 18768 "configure"
18768 #include "confdefs.h"
18769 #include <math.h>
18770 #ifdef HAVE_IEEEFP_H
18771 #include <ieeefp.h>
18772 #endif
18774 int main() {
18775 _log10l(0);
18776 ; return 0; }
18778 if { (eval echo configure:18779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18779 rm -rf conftest*
18780 glibcpp_cv_func__log10l_use=yes
18781 else
18782 echo "configure: failed program was:" >&5
18783 cat conftest.$ac_ext >&5
18784 rm -rf conftest*
18785 glibcpp_cv_func__log10l_use=no
18787 rm -f conftest*
18788 ac_ext=c
18789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18790 ac_cpp='$CPP $CPPFLAGS'
18791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18793 cross_compiling=$ac_cv_prog_cc_cross
18799 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18801 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18802 for ac_func in _log10l
18804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18805 echo "configure:18806: checking for $ac_func" >&5
18806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18807 echo $ac_n "(cached) $ac_c" 1>&6
18808 else
18809 cat > conftest.$ac_ext <<EOF
18810 #line 18811 "configure"
18811 #include "confdefs.h"
18812 /* System header to define __stub macros and hopefully few prototypes,
18813 which can conflict with char $ac_func(); below. */
18814 #include <assert.h>
18815 /* Override any gcc2 internal prototype to avoid an error. */
18816 /* We use char because int might match the return type of a gcc2
18817 builtin and then its argument prototype would still apply. */
18818 char $ac_func();
18820 int main() {
18822 /* The GNU C library defines this for functions which it implements
18823 to always fail with ENOSYS. Some functions are actually named
18824 something starting with __ and the normal name is an alias. */
18825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18826 choke me
18827 #else
18828 $ac_func();
18829 #endif
18831 ; return 0; }
18833 if { (eval echo configure:18834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18834 rm -rf conftest*
18835 eval "ac_cv_func_$ac_func=yes"
18836 else
18837 echo "configure: failed program was:" >&5
18838 cat conftest.$ac_ext >&5
18839 rm -rf conftest*
18840 eval "ac_cv_func_$ac_func=no"
18842 rm -f conftest*
18845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18846 echo "$ac_t""yes" 1>&6
18847 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18848 cat >> confdefs.h <<EOF
18849 #define $ac_tr_func 1
18852 else
18853 echo "$ac_t""no" 1>&6
18855 done
18862 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18863 echo "configure:18864: checking for modfl declaration" >&5
18864 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18865 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18866 echo $ac_n "(cached) $ac_c" 1>&6
18867 else
18870 ac_ext=C
18871 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18872 ac_cpp='$CXXCPP $CPPFLAGS'
18873 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18874 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18875 cross_compiling=$ac_cv_prog_cxx_cross
18877 cat > conftest.$ac_ext <<EOF
18878 #line 18879 "configure"
18879 #include "confdefs.h"
18880 #include <math.h>
18881 int main() {
18882 modfl(0, 0);
18883 ; return 0; }
18885 if { (eval echo configure:18886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18886 rm -rf conftest*
18887 glibcpp_cv_func_modfl_use=yes
18888 else
18889 echo "configure: failed program was:" >&5
18890 cat conftest.$ac_ext >&5
18891 rm -rf conftest*
18892 glibcpp_cv_func_modfl_use=no
18894 rm -f conftest*
18895 ac_ext=c
18896 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18897 ac_cpp='$CPP $CPPFLAGS'
18898 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18899 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18900 cross_compiling=$ac_cv_prog_cc_cross
18906 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18908 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18909 for ac_func in modfl
18911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18912 echo "configure:18913: checking for $ac_func" >&5
18913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18914 echo $ac_n "(cached) $ac_c" 1>&6
18915 else
18916 cat > conftest.$ac_ext <<EOF
18917 #line 18918 "configure"
18918 #include "confdefs.h"
18919 /* System header to define __stub macros and hopefully few prototypes,
18920 which can conflict with char $ac_func(); below. */
18921 #include <assert.h>
18922 /* Override any gcc2 internal prototype to avoid an error. */
18923 /* We use char because int might match the return type of a gcc2
18924 builtin and then its argument prototype would still apply. */
18925 char $ac_func();
18927 int main() {
18929 /* The GNU C library defines this for functions which it implements
18930 to always fail with ENOSYS. Some functions are actually named
18931 something starting with __ and the normal name is an alias. */
18932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18933 choke me
18934 #else
18935 $ac_func();
18936 #endif
18938 ; return 0; }
18940 if { (eval echo configure:18941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18941 rm -rf conftest*
18942 eval "ac_cv_func_$ac_func=yes"
18943 else
18944 echo "configure: failed program was:" >&5
18945 cat conftest.$ac_ext >&5
18946 rm -rf conftest*
18947 eval "ac_cv_func_$ac_func=no"
18949 rm -f conftest*
18952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18953 echo "$ac_t""yes" 1>&6
18954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18955 cat >> confdefs.h <<EOF
18956 #define $ac_tr_func 1
18959 else
18960 echo "$ac_t""no" 1>&6
18962 done
18964 else
18966 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18967 echo "configure:18968: checking for _modfl declaration" >&5
18968 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
18969 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
18970 echo $ac_n "(cached) $ac_c" 1>&6
18971 else
18974 ac_ext=C
18975 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18976 ac_cpp='$CXXCPP $CPPFLAGS'
18977 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18978 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18979 cross_compiling=$ac_cv_prog_cxx_cross
18981 cat > conftest.$ac_ext <<EOF
18982 #line 18983 "configure"
18983 #include "confdefs.h"
18984 #include <math.h>
18985 int main() {
18986 _modfl(0, 0);
18987 ; return 0; }
18989 if { (eval echo configure:18990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18990 rm -rf conftest*
18991 glibcpp_cv_func__modfl_use=yes
18992 else
18993 echo "configure: failed program was:" >&5
18994 cat conftest.$ac_ext >&5
18995 rm -rf conftest*
18996 glibcpp_cv_func__modfl_use=no
18998 rm -f conftest*
18999 ac_ext=c
19000 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19001 ac_cpp='$CPP $CPPFLAGS'
19002 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19003 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19004 cross_compiling=$ac_cv_prog_cc_cross
19010 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19012 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19013 for ac_func in _modfl
19015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19016 echo "configure:19017: checking for $ac_func" >&5
19017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19018 echo $ac_n "(cached) $ac_c" 1>&6
19019 else
19020 cat > conftest.$ac_ext <<EOF
19021 #line 19022 "configure"
19022 #include "confdefs.h"
19023 /* System header to define __stub macros and hopefully few prototypes,
19024 which can conflict with char $ac_func(); below. */
19025 #include <assert.h>
19026 /* Override any gcc2 internal prototype to avoid an error. */
19027 /* We use char because int might match the return type of a gcc2
19028 builtin and then its argument prototype would still apply. */
19029 char $ac_func();
19031 int main() {
19033 /* The GNU C library defines this for functions which it implements
19034 to always fail with ENOSYS. Some functions are actually named
19035 something starting with __ and the normal name is an alias. */
19036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19037 choke me
19038 #else
19039 $ac_func();
19040 #endif
19042 ; return 0; }
19044 if { (eval echo configure:19045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19045 rm -rf conftest*
19046 eval "ac_cv_func_$ac_func=yes"
19047 else
19048 echo "configure: failed program was:" >&5
19049 cat conftest.$ac_ext >&5
19050 rm -rf conftest*
19051 eval "ac_cv_func_$ac_func=no"
19053 rm -f conftest*
19056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19057 echo "$ac_t""yes" 1>&6
19058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19059 cat >> confdefs.h <<EOF
19060 #define $ac_tr_func 1
19063 else
19064 echo "$ac_t""no" 1>&6
19066 done
19073 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19074 echo "configure:19075: checking for powl declaration" >&5
19075 if test x${glibcpp_cv_func_powl_use+set} != xset; then
19076 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19077 echo $ac_n "(cached) $ac_c" 1>&6
19078 else
19081 ac_ext=C
19082 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19083 ac_cpp='$CXXCPP $CPPFLAGS'
19084 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19085 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19086 cross_compiling=$ac_cv_prog_cxx_cross
19088 cat > conftest.$ac_ext <<EOF
19089 #line 19090 "configure"
19090 #include "confdefs.h"
19091 #include <math.h>
19092 int main() {
19093 powl(0, 0);
19094 ; return 0; }
19096 if { (eval echo configure:19097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19097 rm -rf conftest*
19098 glibcpp_cv_func_powl_use=yes
19099 else
19100 echo "configure: failed program was:" >&5
19101 cat conftest.$ac_ext >&5
19102 rm -rf conftest*
19103 glibcpp_cv_func_powl_use=no
19105 rm -f conftest*
19106 ac_ext=c
19107 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19108 ac_cpp='$CPP $CPPFLAGS'
19109 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19110 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19111 cross_compiling=$ac_cv_prog_cc_cross
19117 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19119 if test x$glibcpp_cv_func_powl_use = x"yes"; then
19120 for ac_func in powl
19122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19123 echo "configure:19124: checking for $ac_func" >&5
19124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19125 echo $ac_n "(cached) $ac_c" 1>&6
19126 else
19127 cat > conftest.$ac_ext <<EOF
19128 #line 19129 "configure"
19129 #include "confdefs.h"
19130 /* System header to define __stub macros and hopefully few prototypes,
19131 which can conflict with char $ac_func(); below. */
19132 #include <assert.h>
19133 /* Override any gcc2 internal prototype to avoid an error. */
19134 /* We use char because int might match the return type of a gcc2
19135 builtin and then its argument prototype would still apply. */
19136 char $ac_func();
19138 int main() {
19140 /* The GNU C library defines this for functions which it implements
19141 to always fail with ENOSYS. Some functions are actually named
19142 something starting with __ and the normal name is an alias. */
19143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19144 choke me
19145 #else
19146 $ac_func();
19147 #endif
19149 ; return 0; }
19151 if { (eval echo configure:19152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19152 rm -rf conftest*
19153 eval "ac_cv_func_$ac_func=yes"
19154 else
19155 echo "configure: failed program was:" >&5
19156 cat conftest.$ac_ext >&5
19157 rm -rf conftest*
19158 eval "ac_cv_func_$ac_func=no"
19160 rm -f conftest*
19163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19164 echo "$ac_t""yes" 1>&6
19165 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19166 cat >> confdefs.h <<EOF
19167 #define $ac_tr_func 1
19170 else
19171 echo "$ac_t""no" 1>&6
19173 done
19175 else
19177 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19178 echo "configure:19179: checking for _powl declaration" >&5
19179 if test x${glibcpp_cv_func__powl_use+set} != xset; then
19180 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19181 echo $ac_n "(cached) $ac_c" 1>&6
19182 else
19185 ac_ext=C
19186 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19187 ac_cpp='$CXXCPP $CPPFLAGS'
19188 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19189 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19190 cross_compiling=$ac_cv_prog_cxx_cross
19192 cat > conftest.$ac_ext <<EOF
19193 #line 19194 "configure"
19194 #include "confdefs.h"
19195 #include <math.h>
19196 int main() {
19197 _powl(0, 0);
19198 ; return 0; }
19200 if { (eval echo configure:19201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19201 rm -rf conftest*
19202 glibcpp_cv_func__powl_use=yes
19203 else
19204 echo "configure: failed program was:" >&5
19205 cat conftest.$ac_ext >&5
19206 rm -rf conftest*
19207 glibcpp_cv_func__powl_use=no
19209 rm -f conftest*
19210 ac_ext=c
19211 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19212 ac_cpp='$CPP $CPPFLAGS'
19213 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19214 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19215 cross_compiling=$ac_cv_prog_cc_cross
19221 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19223 if test x$glibcpp_cv_func__powl_use = x"yes"; then
19224 for ac_func in _powl
19226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19227 echo "configure:19228: checking for $ac_func" >&5
19228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19229 echo $ac_n "(cached) $ac_c" 1>&6
19230 else
19231 cat > conftest.$ac_ext <<EOF
19232 #line 19233 "configure"
19233 #include "confdefs.h"
19234 /* System header to define __stub macros and hopefully few prototypes,
19235 which can conflict with char $ac_func(); below. */
19236 #include <assert.h>
19237 /* Override any gcc2 internal prototype to avoid an error. */
19238 /* We use char because int might match the return type of a gcc2
19239 builtin and then its argument prototype would still apply. */
19240 char $ac_func();
19242 int main() {
19244 /* The GNU C library defines this for functions which it implements
19245 to always fail with ENOSYS. Some functions are actually named
19246 something starting with __ and the normal name is an alias. */
19247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19248 choke me
19249 #else
19250 $ac_func();
19251 #endif
19253 ; return 0; }
19255 if { (eval echo configure:19256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19256 rm -rf conftest*
19257 eval "ac_cv_func_$ac_func=yes"
19258 else
19259 echo "configure: failed program was:" >&5
19260 cat conftest.$ac_ext >&5
19261 rm -rf conftest*
19262 eval "ac_cv_func_$ac_func=no"
19264 rm -f conftest*
19267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19268 echo "$ac_t""yes" 1>&6
19269 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19270 cat >> confdefs.h <<EOF
19271 #define $ac_tr_func 1
19274 else
19275 echo "$ac_t""no" 1>&6
19277 done
19284 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19285 echo "configure:19286: checking for sqrtl declaration" >&5
19286 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19287 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19288 echo $ac_n "(cached) $ac_c" 1>&6
19289 else
19292 ac_ext=C
19293 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19294 ac_cpp='$CXXCPP $CPPFLAGS'
19295 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19296 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19297 cross_compiling=$ac_cv_prog_cxx_cross
19299 cat > conftest.$ac_ext <<EOF
19300 #line 19301 "configure"
19301 #include "confdefs.h"
19302 #include <math.h>
19303 #ifdef HAVE_IEEEFP_H
19304 #include <ieeefp.h>
19305 #endif
19307 int main() {
19308 sqrtl(0);
19309 ; return 0; }
19311 if { (eval echo configure:19312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19312 rm -rf conftest*
19313 glibcpp_cv_func_sqrtl_use=yes
19314 else
19315 echo "configure: failed program was:" >&5
19316 cat conftest.$ac_ext >&5
19317 rm -rf conftest*
19318 glibcpp_cv_func_sqrtl_use=no
19320 rm -f conftest*
19321 ac_ext=c
19322 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19323 ac_cpp='$CPP $CPPFLAGS'
19324 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19325 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19326 cross_compiling=$ac_cv_prog_cc_cross
19332 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19334 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19335 for ac_func in sqrtl
19337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19338 echo "configure:19339: checking for $ac_func" >&5
19339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19340 echo $ac_n "(cached) $ac_c" 1>&6
19341 else
19342 cat > conftest.$ac_ext <<EOF
19343 #line 19344 "configure"
19344 #include "confdefs.h"
19345 /* System header to define __stub macros and hopefully few prototypes,
19346 which can conflict with char $ac_func(); below. */
19347 #include <assert.h>
19348 /* Override any gcc2 internal prototype to avoid an error. */
19349 /* We use char because int might match the return type of a gcc2
19350 builtin and then its argument prototype would still apply. */
19351 char $ac_func();
19353 int main() {
19355 /* The GNU C library defines this for functions which it implements
19356 to always fail with ENOSYS. Some functions are actually named
19357 something starting with __ and the normal name is an alias. */
19358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19359 choke me
19360 #else
19361 $ac_func();
19362 #endif
19364 ; return 0; }
19366 if { (eval echo configure:19367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19367 rm -rf conftest*
19368 eval "ac_cv_func_$ac_func=yes"
19369 else
19370 echo "configure: failed program was:" >&5
19371 cat conftest.$ac_ext >&5
19372 rm -rf conftest*
19373 eval "ac_cv_func_$ac_func=no"
19375 rm -f conftest*
19378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19379 echo "$ac_t""yes" 1>&6
19380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19381 cat >> confdefs.h <<EOF
19382 #define $ac_tr_func 1
19385 else
19386 echo "$ac_t""no" 1>&6
19388 done
19390 else
19392 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19393 echo "configure:19394: checking for _sqrtl declaration" >&5
19394 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19395 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19396 echo $ac_n "(cached) $ac_c" 1>&6
19397 else
19400 ac_ext=C
19401 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19402 ac_cpp='$CXXCPP $CPPFLAGS'
19403 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19404 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19405 cross_compiling=$ac_cv_prog_cxx_cross
19407 cat > conftest.$ac_ext <<EOF
19408 #line 19409 "configure"
19409 #include "confdefs.h"
19410 #include <math.h>
19411 #ifdef HAVE_IEEEFP_H
19412 #include <ieeefp.h>
19413 #endif
19415 int main() {
19416 _sqrtl(0);
19417 ; return 0; }
19419 if { (eval echo configure:19420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19420 rm -rf conftest*
19421 glibcpp_cv_func__sqrtl_use=yes
19422 else
19423 echo "configure: failed program was:" >&5
19424 cat conftest.$ac_ext >&5
19425 rm -rf conftest*
19426 glibcpp_cv_func__sqrtl_use=no
19428 rm -f conftest*
19429 ac_ext=c
19430 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19431 ac_cpp='$CPP $CPPFLAGS'
19432 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19433 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19434 cross_compiling=$ac_cv_prog_cc_cross
19440 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19442 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19443 for ac_func in _sqrtl
19445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19446 echo "configure:19447: checking for $ac_func" >&5
19447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19448 echo $ac_n "(cached) $ac_c" 1>&6
19449 else
19450 cat > conftest.$ac_ext <<EOF
19451 #line 19452 "configure"
19452 #include "confdefs.h"
19453 /* System header to define __stub macros and hopefully few prototypes,
19454 which can conflict with char $ac_func(); below. */
19455 #include <assert.h>
19456 /* Override any gcc2 internal prototype to avoid an error. */
19457 /* We use char because int might match the return type of a gcc2
19458 builtin and then its argument prototype would still apply. */
19459 char $ac_func();
19461 int main() {
19463 /* The GNU C library defines this for functions which it implements
19464 to always fail with ENOSYS. Some functions are actually named
19465 something starting with __ and the normal name is an alias. */
19466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19467 choke me
19468 #else
19469 $ac_func();
19470 #endif
19472 ; return 0; }
19474 if { (eval echo configure:19475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19475 rm -rf conftest*
19476 eval "ac_cv_func_$ac_func=yes"
19477 else
19478 echo "configure: failed program was:" >&5
19479 cat conftest.$ac_ext >&5
19480 rm -rf conftest*
19481 eval "ac_cv_func_$ac_func=no"
19483 rm -f conftest*
19486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19487 echo "$ac_t""yes" 1>&6
19488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19489 cat >> confdefs.h <<EOF
19490 #define $ac_tr_func 1
19493 else
19494 echo "$ac_t""no" 1>&6
19496 done
19503 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19504 echo "configure:19505: checking for sincosl declaration" >&5
19505 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19506 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19507 echo $ac_n "(cached) $ac_c" 1>&6
19508 else
19511 ac_ext=C
19512 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19513 ac_cpp='$CXXCPP $CPPFLAGS'
19514 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19515 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19516 cross_compiling=$ac_cv_prog_cxx_cross
19518 cat > conftest.$ac_ext <<EOF
19519 #line 19520 "configure"
19520 #include "confdefs.h"
19521 #include <math.h>
19522 int main() {
19523 sincosl(0, 0, 0);
19524 ; return 0; }
19526 if { (eval echo configure:19527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19527 rm -rf conftest*
19528 glibcpp_cv_func_sincosl_use=yes
19529 else
19530 echo "configure: failed program was:" >&5
19531 cat conftest.$ac_ext >&5
19532 rm -rf conftest*
19533 glibcpp_cv_func_sincosl_use=no
19535 rm -f conftest*
19536 ac_ext=c
19537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19538 ac_cpp='$CPP $CPPFLAGS'
19539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19541 cross_compiling=$ac_cv_prog_cc_cross
19547 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19549 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19550 for ac_func in sincosl
19552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19553 echo "configure:19554: checking for $ac_func" >&5
19554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19555 echo $ac_n "(cached) $ac_c" 1>&6
19556 else
19557 cat > conftest.$ac_ext <<EOF
19558 #line 19559 "configure"
19559 #include "confdefs.h"
19560 /* System header to define __stub macros and hopefully few prototypes,
19561 which can conflict with char $ac_func(); below. */
19562 #include <assert.h>
19563 /* Override any gcc2 internal prototype to avoid an error. */
19564 /* We use char because int might match the return type of a gcc2
19565 builtin and then its argument prototype would still apply. */
19566 char $ac_func();
19568 int main() {
19570 /* The GNU C library defines this for functions which it implements
19571 to always fail with ENOSYS. Some functions are actually named
19572 something starting with __ and the normal name is an alias. */
19573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19574 choke me
19575 #else
19576 $ac_func();
19577 #endif
19579 ; return 0; }
19581 if { (eval echo configure:19582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19582 rm -rf conftest*
19583 eval "ac_cv_func_$ac_func=yes"
19584 else
19585 echo "configure: failed program was:" >&5
19586 cat conftest.$ac_ext >&5
19587 rm -rf conftest*
19588 eval "ac_cv_func_$ac_func=no"
19590 rm -f conftest*
19593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19594 echo "$ac_t""yes" 1>&6
19595 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19596 cat >> confdefs.h <<EOF
19597 #define $ac_tr_func 1
19600 else
19601 echo "$ac_t""no" 1>&6
19603 done
19605 else
19607 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19608 echo "configure:19609: checking for _sincosl declaration" >&5
19609 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19610 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19611 echo $ac_n "(cached) $ac_c" 1>&6
19612 else
19615 ac_ext=C
19616 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19617 ac_cpp='$CXXCPP $CPPFLAGS'
19618 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19619 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19620 cross_compiling=$ac_cv_prog_cxx_cross
19622 cat > conftest.$ac_ext <<EOF
19623 #line 19624 "configure"
19624 #include "confdefs.h"
19625 #include <math.h>
19626 int main() {
19627 _sincosl(0, 0, 0);
19628 ; return 0; }
19630 if { (eval echo configure:19631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19631 rm -rf conftest*
19632 glibcpp_cv_func__sincosl_use=yes
19633 else
19634 echo "configure: failed program was:" >&5
19635 cat conftest.$ac_ext >&5
19636 rm -rf conftest*
19637 glibcpp_cv_func__sincosl_use=no
19639 rm -f conftest*
19640 ac_ext=c
19641 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19642 ac_cpp='$CPP $CPPFLAGS'
19643 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19644 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19645 cross_compiling=$ac_cv_prog_cc_cross
19651 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19653 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19654 for ac_func in _sincosl
19656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19657 echo "configure:19658: checking for $ac_func" >&5
19658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19659 echo $ac_n "(cached) $ac_c" 1>&6
19660 else
19661 cat > conftest.$ac_ext <<EOF
19662 #line 19663 "configure"
19663 #include "confdefs.h"
19664 /* System header to define __stub macros and hopefully few prototypes,
19665 which can conflict with char $ac_func(); below. */
19666 #include <assert.h>
19667 /* Override any gcc2 internal prototype to avoid an error. */
19668 /* We use char because int might match the return type of a gcc2
19669 builtin and then its argument prototype would still apply. */
19670 char $ac_func();
19672 int main() {
19674 /* The GNU C library defines this for functions which it implements
19675 to always fail with ENOSYS. Some functions are actually named
19676 something starting with __ and the normal name is an alias. */
19677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19678 choke me
19679 #else
19680 $ac_func();
19681 #endif
19683 ; return 0; }
19685 if { (eval echo configure:19686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19686 rm -rf conftest*
19687 eval "ac_cv_func_$ac_func=yes"
19688 else
19689 echo "configure: failed program was:" >&5
19690 cat conftest.$ac_ext >&5
19691 rm -rf conftest*
19692 eval "ac_cv_func_$ac_func=no"
19694 rm -f conftest*
19697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19698 echo "$ac_t""yes" 1>&6
19699 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19700 cat >> confdefs.h <<EOF
19701 #define $ac_tr_func 1
19704 else
19705 echo "$ac_t""no" 1>&6
19707 done
19714 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19715 echo "configure:19716: checking for finitel declaration" >&5
19716 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19717 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19718 echo $ac_n "(cached) $ac_c" 1>&6
19719 else
19722 ac_ext=C
19723 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19724 ac_cpp='$CXXCPP $CPPFLAGS'
19725 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19726 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19727 cross_compiling=$ac_cv_prog_cxx_cross
19729 cat > conftest.$ac_ext <<EOF
19730 #line 19731 "configure"
19731 #include "confdefs.h"
19732 #include <math.h>
19733 #ifdef HAVE_IEEEFP_H
19734 #include <ieeefp.h>
19735 #endif
19737 int main() {
19738 finitel(0);
19739 ; return 0; }
19741 if { (eval echo configure:19742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19742 rm -rf conftest*
19743 glibcpp_cv_func_finitel_use=yes
19744 else
19745 echo "configure: failed program was:" >&5
19746 cat conftest.$ac_ext >&5
19747 rm -rf conftest*
19748 glibcpp_cv_func_finitel_use=no
19750 rm -f conftest*
19751 ac_ext=c
19752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19753 ac_cpp='$CPP $CPPFLAGS'
19754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19755 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19756 cross_compiling=$ac_cv_prog_cc_cross
19762 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19764 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19765 for ac_func in finitel
19767 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19768 echo "configure:19769: checking for $ac_func" >&5
19769 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19770 echo $ac_n "(cached) $ac_c" 1>&6
19771 else
19772 cat > conftest.$ac_ext <<EOF
19773 #line 19774 "configure"
19774 #include "confdefs.h"
19775 /* System header to define __stub macros and hopefully few prototypes,
19776 which can conflict with char $ac_func(); below. */
19777 #include <assert.h>
19778 /* Override any gcc2 internal prototype to avoid an error. */
19779 /* We use char because int might match the return type of a gcc2
19780 builtin and then its argument prototype would still apply. */
19781 char $ac_func();
19783 int main() {
19785 /* The GNU C library defines this for functions which it implements
19786 to always fail with ENOSYS. Some functions are actually named
19787 something starting with __ and the normal name is an alias. */
19788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19789 choke me
19790 #else
19791 $ac_func();
19792 #endif
19794 ; return 0; }
19796 if { (eval echo configure:19797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19797 rm -rf conftest*
19798 eval "ac_cv_func_$ac_func=yes"
19799 else
19800 echo "configure: failed program was:" >&5
19801 cat conftest.$ac_ext >&5
19802 rm -rf conftest*
19803 eval "ac_cv_func_$ac_func=no"
19805 rm -f conftest*
19808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19809 echo "$ac_t""yes" 1>&6
19810 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19811 cat >> confdefs.h <<EOF
19812 #define $ac_tr_func 1
19815 else
19816 echo "$ac_t""no" 1>&6
19818 done
19820 else
19822 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19823 echo "configure:19824: checking for _finitel declaration" >&5
19824 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19825 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19826 echo $ac_n "(cached) $ac_c" 1>&6
19827 else
19830 ac_ext=C
19831 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19832 ac_cpp='$CXXCPP $CPPFLAGS'
19833 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19834 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19835 cross_compiling=$ac_cv_prog_cxx_cross
19837 cat > conftest.$ac_ext <<EOF
19838 #line 19839 "configure"
19839 #include "confdefs.h"
19840 #include <math.h>
19841 #ifdef HAVE_IEEEFP_H
19842 #include <ieeefp.h>
19843 #endif
19845 int main() {
19846 _finitel(0);
19847 ; return 0; }
19849 if { (eval echo configure:19850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19850 rm -rf conftest*
19851 glibcpp_cv_func__finitel_use=yes
19852 else
19853 echo "configure: failed program was:" >&5
19854 cat conftest.$ac_ext >&5
19855 rm -rf conftest*
19856 glibcpp_cv_func__finitel_use=no
19858 rm -f conftest*
19859 ac_ext=c
19860 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19861 ac_cpp='$CPP $CPPFLAGS'
19862 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19863 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19864 cross_compiling=$ac_cv_prog_cc_cross
19870 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19872 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19873 for ac_func in _finitel
19875 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19876 echo "configure:19877: checking for $ac_func" >&5
19877 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19878 echo $ac_n "(cached) $ac_c" 1>&6
19879 else
19880 cat > conftest.$ac_ext <<EOF
19881 #line 19882 "configure"
19882 #include "confdefs.h"
19883 /* System header to define __stub macros and hopefully few prototypes,
19884 which can conflict with char $ac_func(); below. */
19885 #include <assert.h>
19886 /* Override any gcc2 internal prototype to avoid an error. */
19887 /* We use char because int might match the return type of a gcc2
19888 builtin and then its argument prototype would still apply. */
19889 char $ac_func();
19891 int main() {
19893 /* The GNU C library defines this for functions which it implements
19894 to always fail with ENOSYS. Some functions are actually named
19895 something starting with __ and the normal name is an alias. */
19896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19897 choke me
19898 #else
19899 $ac_func();
19900 #endif
19902 ; return 0; }
19904 if { (eval echo configure:19905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19905 rm -rf conftest*
19906 eval "ac_cv_func_$ac_func=yes"
19907 else
19908 echo "configure: failed program was:" >&5
19909 cat conftest.$ac_ext >&5
19910 rm -rf conftest*
19911 eval "ac_cv_func_$ac_func=no"
19913 rm -f conftest*
19916 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19917 echo "$ac_t""yes" 1>&6
19918 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19919 cat >> confdefs.h <<EOF
19920 #define $ac_tr_func 1
19923 else
19924 echo "$ac_t""no" 1>&6
19926 done
19934 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19935 echo "configure:19936: checking for _float trig functions" >&5
19936 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19937 echo $ac_n "(cached) $ac_c" 1>&6
19938 else
19941 ac_ext=C
19942 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19943 ac_cpp='$CXXCPP $CPPFLAGS'
19944 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19945 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19946 cross_compiling=$ac_cv_prog_cxx_cross
19948 cat > conftest.$ac_ext <<EOF
19949 #line 19950 "configure"
19950 #include "confdefs.h"
19951 #include <math.h>
19952 int main() {
19953 `for x in _acosf _asinf _atanf \
19954 _cosf _sinf _tanf \
19955 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
19956 ; return 0; }
19958 if { (eval echo configure:19959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19959 rm -rf conftest*
19960 glibcpp_cv_func__float_trig_use=yes
19961 else
19962 echo "configure: failed program was:" >&5
19963 cat conftest.$ac_ext >&5
19964 rm -rf conftest*
19965 glibcpp_cv_func__float_trig_use=no
19967 rm -f conftest*
19968 ac_ext=c
19969 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19970 ac_cpp='$CPP $CPPFLAGS'
19971 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19972 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19973 cross_compiling=$ac_cv_prog_cc_cross
19977 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
19978 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
19979 for ac_func in _acosf _asinf _atanf \
19980 _cosf _sinf _tanf \
19981 _coshf _sinhf _tanhf
19983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19984 echo "configure:19985: checking for $ac_func" >&5
19985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19986 echo $ac_n "(cached) $ac_c" 1>&6
19987 else
19988 cat > conftest.$ac_ext <<EOF
19989 #line 19990 "configure"
19990 #include "confdefs.h"
19991 /* System header to define __stub macros and hopefully few prototypes,
19992 which can conflict with char $ac_func(); below. */
19993 #include <assert.h>
19994 /* Override any gcc2 internal prototype to avoid an error. */
19995 /* We use char because int might match the return type of a gcc2
19996 builtin and then its argument prototype would still apply. */
19997 char $ac_func();
19999 int main() {
20001 /* The GNU C library defines this for functions which it implements
20002 to always fail with ENOSYS. Some functions are actually named
20003 something starting with __ and the normal name is an alias. */
20004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20005 choke me
20006 #else
20007 $ac_func();
20008 #endif
20010 ; return 0; }
20012 if { (eval echo configure:20013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20013 rm -rf conftest*
20014 eval "ac_cv_func_$ac_func=yes"
20015 else
20016 echo "configure: failed program was:" >&5
20017 cat conftest.$ac_ext >&5
20018 rm -rf conftest*
20019 eval "ac_cv_func_$ac_func=no"
20021 rm -f conftest*
20024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20025 echo "$ac_t""yes" 1>&6
20026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20027 cat >> confdefs.h <<EOF
20028 #define $ac_tr_func 1
20031 else
20032 echo "$ac_t""no" 1>&6
20034 done
20039 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20040 echo "configure:20041: checking for _float round functions" >&5
20041 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20042 echo $ac_n "(cached) $ac_c" 1>&6
20043 else
20046 ac_ext=C
20047 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20048 ac_cpp='$CXXCPP $CPPFLAGS'
20049 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20050 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20051 cross_compiling=$ac_cv_prog_cxx_cross
20053 cat > conftest.$ac_ext <<EOF
20054 #line 20055 "configure"
20055 #include "confdefs.h"
20056 #include <math.h>
20057 int main() {
20058 `for x in _ceilf _floorf; do echo "$x (0);"; done`
20059 ; return 0; }
20061 if { (eval echo configure:20062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20062 rm -rf conftest*
20063 glibcpp_cv_func__float_round_use=yes
20064 else
20065 echo "configure: failed program was:" >&5
20066 cat conftest.$ac_ext >&5
20067 rm -rf conftest*
20068 glibcpp_cv_func__float_round_use=no
20070 rm -f conftest*
20071 ac_ext=c
20072 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20073 ac_cpp='$CPP $CPPFLAGS'
20074 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20075 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20076 cross_compiling=$ac_cv_prog_cc_cross
20080 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20081 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20082 for ac_func in _ceilf _floorf
20084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20085 echo "configure:20086: checking for $ac_func" >&5
20086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20087 echo $ac_n "(cached) $ac_c" 1>&6
20088 else
20089 cat > conftest.$ac_ext <<EOF
20090 #line 20091 "configure"
20091 #include "confdefs.h"
20092 /* System header to define __stub macros and hopefully few prototypes,
20093 which can conflict with char $ac_func(); below. */
20094 #include <assert.h>
20095 /* Override any gcc2 internal prototype to avoid an error. */
20096 /* We use char because int might match the return type of a gcc2
20097 builtin and then its argument prototype would still apply. */
20098 char $ac_func();
20100 int main() {
20102 /* The GNU C library defines this for functions which it implements
20103 to always fail with ENOSYS. Some functions are actually named
20104 something starting with __ and the normal name is an alias. */
20105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20106 choke me
20107 #else
20108 $ac_func();
20109 #endif
20111 ; return 0; }
20113 if { (eval echo configure:20114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20114 rm -rf conftest*
20115 eval "ac_cv_func_$ac_func=yes"
20116 else
20117 echo "configure: failed program was:" >&5
20118 cat conftest.$ac_ext >&5
20119 rm -rf conftest*
20120 eval "ac_cv_func_$ac_func=no"
20122 rm -f conftest*
20125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20126 echo "$ac_t""yes" 1>&6
20127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20128 cat >> confdefs.h <<EOF
20129 #define $ac_tr_func 1
20132 else
20133 echo "$ac_t""no" 1>&6
20135 done
20141 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20142 echo "configure:20143: checking for _long double trig functions" >&5
20143 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20144 echo $ac_n "(cached) $ac_c" 1>&6
20145 else
20148 ac_ext=C
20149 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20150 ac_cpp='$CXXCPP $CPPFLAGS'
20151 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20152 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20153 cross_compiling=$ac_cv_prog_cxx_cross
20155 cat > conftest.$ac_ext <<EOF
20156 #line 20157 "configure"
20157 #include "confdefs.h"
20158 #include <math.h>
20159 int main() {
20160 `for x in _acosl _asinl _atanl \
20161 _cosl _sinl _tanl \
20162 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
20163 ; return 0; }
20165 if { (eval echo configure:20166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20166 rm -rf conftest*
20167 glibcpp_cv_func__long_double_trig_use=yes
20168 else
20169 echo "configure: failed program was:" >&5
20170 cat conftest.$ac_ext >&5
20171 rm -rf conftest*
20172 glibcpp_cv_func__long_double_trig_use=no
20174 rm -f conftest*
20175 ac_ext=c
20176 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20177 ac_cpp='$CPP $CPPFLAGS'
20178 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20179 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20180 cross_compiling=$ac_cv_prog_cc_cross
20184 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20185 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20186 for ac_func in _acosl _asinl _atanl \
20187 _cosl _sinl _tanl \
20188 _coshl _sinhl _tanhl
20190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20191 echo "configure:20192: checking for $ac_func" >&5
20192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20193 echo $ac_n "(cached) $ac_c" 1>&6
20194 else
20195 cat > conftest.$ac_ext <<EOF
20196 #line 20197 "configure"
20197 #include "confdefs.h"
20198 /* System header to define __stub macros and hopefully few prototypes,
20199 which can conflict with char $ac_func(); below. */
20200 #include <assert.h>
20201 /* Override any gcc2 internal prototype to avoid an error. */
20202 /* We use char because int might match the return type of a gcc2
20203 builtin and then its argument prototype would still apply. */
20204 char $ac_func();
20206 int main() {
20208 /* The GNU C library defines this for functions which it implements
20209 to always fail with ENOSYS. Some functions are actually named
20210 something starting with __ and the normal name is an alias. */
20211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20212 choke me
20213 #else
20214 $ac_func();
20215 #endif
20217 ; return 0; }
20219 if { (eval echo configure:20220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20220 rm -rf conftest*
20221 eval "ac_cv_func_$ac_func=yes"
20222 else
20223 echo "configure: failed program was:" >&5
20224 cat conftest.$ac_ext >&5
20225 rm -rf conftest*
20226 eval "ac_cv_func_$ac_func=no"
20228 rm -f conftest*
20231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20232 echo "$ac_t""yes" 1>&6
20233 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20234 cat >> confdefs.h <<EOF
20235 #define $ac_tr_func 1
20238 else
20239 echo "$ac_t""no" 1>&6
20241 done
20246 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20247 echo "configure:20248: checking for _long double round functions" >&5
20248 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20249 echo $ac_n "(cached) $ac_c" 1>&6
20250 else
20253 ac_ext=C
20254 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20255 ac_cpp='$CXXCPP $CPPFLAGS'
20256 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20257 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20258 cross_compiling=$ac_cv_prog_cxx_cross
20260 cat > conftest.$ac_ext <<EOF
20261 #line 20262 "configure"
20262 #include "confdefs.h"
20263 #include <math.h>
20264 int main() {
20265 `for x in _ceill _floorl; do echo "$x (0);"; done`
20266 ; return 0; }
20268 if { (eval echo configure:20269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20269 rm -rf conftest*
20270 glibcpp_cv_func__long_double_round_use=yes
20271 else
20272 echo "configure: failed program was:" >&5
20273 cat conftest.$ac_ext >&5
20274 rm -rf conftest*
20275 glibcpp_cv_func__long_double_round_use=no
20277 rm -f conftest*
20278 ac_ext=c
20279 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20280 ac_cpp='$CPP $CPPFLAGS'
20281 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20282 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20283 cross_compiling=$ac_cv_prog_cc_cross
20287 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20288 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20289 for ac_func in _ceill _floorl
20291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20292 echo "configure:20293: checking for $ac_func" >&5
20293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20294 echo $ac_n "(cached) $ac_c" 1>&6
20295 else
20296 cat > conftest.$ac_ext <<EOF
20297 #line 20298 "configure"
20298 #include "confdefs.h"
20299 /* System header to define __stub macros and hopefully few prototypes,
20300 which can conflict with char $ac_func(); below. */
20301 #include <assert.h>
20302 /* Override any gcc2 internal prototype to avoid an error. */
20303 /* We use char because int might match the return type of a gcc2
20304 builtin and then its argument prototype would still apply. */
20305 char $ac_func();
20307 int main() {
20309 /* The GNU C library defines this for functions which it implements
20310 to always fail with ENOSYS. Some functions are actually named
20311 something starting with __ and the normal name is an alias. */
20312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20313 choke me
20314 #else
20315 $ac_func();
20316 #endif
20318 ; return 0; }
20320 if { (eval echo configure:20321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20321 rm -rf conftest*
20322 eval "ac_cv_func_$ac_func=yes"
20323 else
20324 echo "configure: failed program was:" >&5
20325 cat conftest.$ac_ext >&5
20326 rm -rf conftest*
20327 eval "ac_cv_func_$ac_func=no"
20329 rm -f conftest*
20332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20333 echo "$ac_t""yes" 1>&6
20334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20335 cat >> confdefs.h <<EOF
20336 #define $ac_tr_func 1
20339 else
20340 echo "$ac_t""no" 1>&6
20342 done
20347 LIBS="$ac_save_LIBS"
20348 CXXFLAGS="$ac_save_CXXFLAGS"
20351 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
20352 echo "configure:20353: checking for main in -lm" >&5
20353 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
20354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20355 echo $ac_n "(cached) $ac_c" 1>&6
20356 else
20357 ac_save_LIBS="$LIBS"
20358 LIBS="-lm $LIBS"
20359 cat > conftest.$ac_ext <<EOF
20360 #line 20361 "configure"
20361 #include "confdefs.h"
20363 int main() {
20364 main()
20365 ; return 0; }
20367 if { (eval echo configure:20368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20368 rm -rf conftest*
20369 eval "ac_cv_lib_$ac_lib_var=yes"
20370 else
20371 echo "configure: failed program was:" >&5
20372 cat conftest.$ac_ext >&5
20373 rm -rf conftest*
20374 eval "ac_cv_lib_$ac_lib_var=no"
20376 rm -f conftest*
20377 LIBS="$ac_save_LIBS"
20380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20381 echo "$ac_t""yes" 1>&6
20382 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
20383 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
20384 cat >> confdefs.h <<EOF
20385 #define $ac_tr_lib 1
20388 LIBS="-lm $LIBS"
20390 else
20391 echo "$ac_t""no" 1>&6
20394 for ac_func in nan copysignf
20396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20397 echo "configure:20398: checking for $ac_func" >&5
20398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20399 echo $ac_n "(cached) $ac_c" 1>&6
20400 else
20401 cat > conftest.$ac_ext <<EOF
20402 #line 20403 "configure"
20403 #include "confdefs.h"
20404 /* System header to define __stub macros and hopefully few prototypes,
20405 which can conflict with char $ac_func(); below. */
20406 #include <assert.h>
20407 /* Override any gcc2 internal prototype to avoid an error. */
20408 /* We use char because int might match the return type of a gcc2
20409 builtin and then its argument prototype would still apply. */
20410 char $ac_func();
20412 int main() {
20414 /* The GNU C library defines this for functions which it implements
20415 to always fail with ENOSYS. Some functions are actually named
20416 something starting with __ and the normal name is an alias. */
20417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20418 choke me
20419 #else
20420 $ac_func();
20421 #endif
20423 ; return 0; }
20425 if { (eval echo configure:20426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20426 rm -rf conftest*
20427 eval "ac_cv_func_$ac_func=yes"
20428 else
20429 echo "configure: failed program was:" >&5
20430 cat conftest.$ac_ext >&5
20431 rm -rf conftest*
20432 eval "ac_cv_func_$ac_func=no"
20434 rm -f conftest*
20437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20438 echo "$ac_t""yes" 1>&6
20439 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20440 cat >> confdefs.h <<EOF
20441 #define $ac_tr_func 1
20444 else
20445 echo "$ac_t""no" 1>&6
20446 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
20448 done
20451 for ac_func in __signbit
20453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20454 echo "configure:20455: checking for $ac_func" >&5
20455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20456 echo $ac_n "(cached) $ac_c" 1>&6
20457 else
20458 cat > conftest.$ac_ext <<EOF
20459 #line 20460 "configure"
20460 #include "confdefs.h"
20461 /* System header to define __stub macros and hopefully few prototypes,
20462 which can conflict with char $ac_func(); below. */
20463 #include <assert.h>
20464 /* Override any gcc2 internal prototype to avoid an error. */
20465 /* We use char because int might match the return type of a gcc2
20466 builtin and then its argument prototype would still apply. */
20467 char $ac_func();
20469 int main() {
20471 /* The GNU C library defines this for functions which it implements
20472 to always fail with ENOSYS. Some functions are actually named
20473 something starting with __ and the normal name is an alias. */
20474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20475 choke me
20476 #else
20477 $ac_func();
20478 #endif
20480 ; return 0; }
20482 if { (eval echo configure:20483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20483 rm -rf conftest*
20484 eval "ac_cv_func_$ac_func=yes"
20485 else
20486 echo "configure: failed program was:" >&5
20487 cat conftest.$ac_ext >&5
20488 rm -rf conftest*
20489 eval "ac_cv_func_$ac_func=no"
20491 rm -f conftest*
20494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20495 echo "$ac_t""yes" 1>&6
20496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20497 cat >> confdefs.h <<EOF
20498 #define $ac_tr_func 1
20501 else
20502 echo "$ac_t""no" 1>&6
20503 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
20505 done
20507 for ac_func in __signbitf
20509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20510 echo "configure:20511: checking for $ac_func" >&5
20511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20512 echo $ac_n "(cached) $ac_c" 1>&6
20513 else
20514 cat > conftest.$ac_ext <<EOF
20515 #line 20516 "configure"
20516 #include "confdefs.h"
20517 /* System header to define __stub macros and hopefully few prototypes,
20518 which can conflict with char $ac_func(); below. */
20519 #include <assert.h>
20520 /* Override any gcc2 internal prototype to avoid an error. */
20521 /* We use char because int might match the return type of a gcc2
20522 builtin and then its argument prototype would still apply. */
20523 char $ac_func();
20525 int main() {
20527 /* The GNU C library defines this for functions which it implements
20528 to always fail with ENOSYS. Some functions are actually named
20529 something starting with __ and the normal name is an alias. */
20530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20531 choke me
20532 #else
20533 $ac_func();
20534 #endif
20536 ; return 0; }
20538 if { (eval echo configure:20539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20539 rm -rf conftest*
20540 eval "ac_cv_func_$ac_func=yes"
20541 else
20542 echo "configure: failed program was:" >&5
20543 cat conftest.$ac_ext >&5
20544 rm -rf conftest*
20545 eval "ac_cv_func_$ac_func=no"
20547 rm -f conftest*
20550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20551 echo "$ac_t""yes" 1>&6
20552 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20553 cat >> confdefs.h <<EOF
20554 #define $ac_tr_func 1
20557 else
20558 echo "$ac_t""no" 1>&6
20559 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
20561 done
20564 if test x$ac_cv_func_copysignl = x"yes"; then
20565 for ac_func in __signbitl
20567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20568 echo "configure:20569: checking for $ac_func" >&5
20569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20570 echo $ac_n "(cached) $ac_c" 1>&6
20571 else
20572 cat > conftest.$ac_ext <<EOF
20573 #line 20574 "configure"
20574 #include "confdefs.h"
20575 /* System header to define __stub macros and hopefully few prototypes,
20576 which can conflict with char $ac_func(); below. */
20577 #include <assert.h>
20578 /* Override any gcc2 internal prototype to avoid an error. */
20579 /* We use char because int might match the return type of a gcc2
20580 builtin and then its argument prototype would still apply. */
20581 char $ac_func();
20583 int main() {
20585 /* The GNU C library defines this for functions which it implements
20586 to always fail with ENOSYS. Some functions are actually named
20587 something starting with __ and the normal name is an alias. */
20588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20589 choke me
20590 #else
20591 $ac_func();
20592 #endif
20594 ; return 0; }
20596 if { (eval echo configure:20597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20597 rm -rf conftest*
20598 eval "ac_cv_func_$ac_func=yes"
20599 else
20600 echo "configure: failed program was:" >&5
20601 cat conftest.$ac_ext >&5
20602 rm -rf conftest*
20603 eval "ac_cv_func_$ac_func=no"
20605 rm -f conftest*
20608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20609 echo "$ac_t""yes" 1>&6
20610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20611 cat >> confdefs.h <<EOF
20612 #define $ac_tr_func 1
20615 else
20616 echo "$ac_t""no" 1>&6
20617 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
20619 done
20627 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
20628 echo "configure:20629: checking for mbstate_t" >&5
20629 cat > conftest.$ac_ext <<EOF
20630 #line 20631 "configure"
20631 #include "confdefs.h"
20632 #include <wchar.h>
20633 int main() {
20634 mbstate_t teststate;
20635 ; return 0; }
20637 if { (eval echo configure:20638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20638 rm -rf conftest*
20639 have_mbstate_t=yes
20640 else
20641 echo "configure: failed program was:" >&5
20642 cat conftest.$ac_ext >&5
20643 rm -rf conftest*
20644 have_mbstate_t=no
20646 rm -f conftest*
20647 echo "$ac_t""$have_mbstate_t" 1>&6
20648 if test x"$have_mbstate_t" = xyes; then
20649 cat >> confdefs.h <<\EOF
20650 #define HAVE_MBSTATE_T 1
20655 for ac_hdr in wchar.h
20657 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20659 echo "configure:20660: checking for $ac_hdr" >&5
20660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20661 echo $ac_n "(cached) $ac_c" 1>&6
20662 else
20663 cat > conftest.$ac_ext <<EOF
20664 #line 20665 "configure"
20665 #include "confdefs.h"
20666 #include <$ac_hdr>
20668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20669 { (eval echo configure:20670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20671 if test -z "$ac_err"; then
20672 rm -rf conftest*
20673 eval "ac_cv_header_$ac_safe=yes"
20674 else
20675 echo "$ac_err" >&5
20676 echo "configure: failed program was:" >&5
20677 cat conftest.$ac_ext >&5
20678 rm -rf conftest*
20679 eval "ac_cv_header_$ac_safe=no"
20681 rm -f conftest*
20683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20684 echo "$ac_t""yes" 1>&6
20685 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20686 cat >> confdefs.h <<EOF
20687 #define $ac_tr_hdr 1
20689 ac_has_wchar_h=yes
20690 else
20691 echo "$ac_t""no" 1>&6
20692 ac_has_wchar_h=no
20694 done
20696 for ac_hdr in wctype.h
20698 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20700 echo "configure:20701: checking for $ac_hdr" >&5
20701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20702 echo $ac_n "(cached) $ac_c" 1>&6
20703 else
20704 cat > conftest.$ac_ext <<EOF
20705 #line 20706 "configure"
20706 #include "confdefs.h"
20707 #include <$ac_hdr>
20709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20710 { (eval echo configure:20711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20712 if test -z "$ac_err"; then
20713 rm -rf conftest*
20714 eval "ac_cv_header_$ac_safe=yes"
20715 else
20716 echo "$ac_err" >&5
20717 echo "configure: failed program was:" >&5
20718 cat conftest.$ac_ext >&5
20719 rm -rf conftest*
20720 eval "ac_cv_header_$ac_safe=no"
20722 rm -f conftest*
20724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20725 echo "$ac_t""yes" 1>&6
20726 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20727 cat >> confdefs.h <<EOF
20728 #define $ac_tr_hdr 1
20730 ac_has_wctype_h=yes
20731 else
20732 echo "$ac_t""no" 1>&6
20733 ac_has_wctype_h=no
20735 done
20738 if test x"$ac_has_wchar_h" = xyes &&
20739 test x"$ac_has_wctype_h" = xyes &&
20740 test x"$enable_c_mbchar" != xno; then
20742 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
20743 echo "configure:20744: checking for WCHAR_MIN and WCHAR_MAX" >&5
20744 cat > conftest.$ac_ext <<EOF
20745 #line 20746 "configure"
20746 #include "confdefs.h"
20747 #include <wchar.h>
20748 int main() {
20749 int i = WCHAR_MIN; int j = WCHAR_MAX;
20750 ; return 0; }
20752 if { (eval echo configure:20753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20753 rm -rf conftest*
20754 has_wchar_minmax=yes
20755 else
20756 echo "configure: failed program was:" >&5
20757 cat conftest.$ac_ext >&5
20758 rm -rf conftest*
20759 has_wchar_minmax=no
20761 rm -f conftest*
20762 echo "$ac_t""$has_wchar_minmax" 1>&6
20764 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
20765 echo "configure:20766: checking for WEOF" >&5
20766 cat > conftest.$ac_ext <<EOF
20767 #line 20768 "configure"
20768 #include "confdefs.h"
20770 #include <wchar.h>
20771 #include <stddef.h>
20772 int main() {
20773 wint_t i = WEOF;
20774 ; return 0; }
20776 if { (eval echo configure:20777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20777 rm -rf conftest*
20778 has_weof=yes
20779 else
20780 echo "configure: failed program was:" >&5
20781 cat conftest.$ac_ext >&5
20782 rm -rf conftest*
20783 has_weof=no
20785 rm -f conftest*
20786 echo "$ac_t""$has_weof" 1>&6
20788 ac_wfuncs=yes
20789 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
20791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20792 echo "configure:20793: checking for $ac_func" >&5
20793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20794 echo $ac_n "(cached) $ac_c" 1>&6
20795 else
20796 cat > conftest.$ac_ext <<EOF
20797 #line 20798 "configure"
20798 #include "confdefs.h"
20799 /* System header to define __stub macros and hopefully few prototypes,
20800 which can conflict with char $ac_func(); below. */
20801 #include <assert.h>
20802 /* Override any gcc2 internal prototype to avoid an error. */
20803 /* We use char because int might match the return type of a gcc2
20804 builtin and then its argument prototype would still apply. */
20805 char $ac_func();
20807 int main() {
20809 /* The GNU C library defines this for functions which it implements
20810 to always fail with ENOSYS. Some functions are actually named
20811 something starting with __ and the normal name is an alias. */
20812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20813 choke me
20814 #else
20815 $ac_func();
20816 #endif
20818 ; return 0; }
20820 if { (eval echo configure:20821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20821 rm -rf conftest*
20822 eval "ac_cv_func_$ac_func=yes"
20823 else
20824 echo "configure: failed program was:" >&5
20825 cat conftest.$ac_ext >&5
20826 rm -rf conftest*
20827 eval "ac_cv_func_$ac_func=no"
20829 rm -f conftest*
20832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20833 echo "$ac_t""yes" 1>&6
20834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20835 cat >> confdefs.h <<EOF
20836 #define $ac_tr_func 1
20839 else
20840 echo "$ac_t""no" 1>&6
20842 ac_wfuncs=no
20844 done
20847 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
20848 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
20849 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
20850 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
20851 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
20852 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
20854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20855 echo "configure:20856: checking for $ac_func" >&5
20856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20857 echo $ac_n "(cached) $ac_c" 1>&6
20858 else
20859 cat > conftest.$ac_ext <<EOF
20860 #line 20861 "configure"
20861 #include "confdefs.h"
20862 /* System header to define __stub macros and hopefully few prototypes,
20863 which can conflict with char $ac_func(); below. */
20864 #include <assert.h>
20865 /* Override any gcc2 internal prototype to avoid an error. */
20866 /* We use char because int might match the return type of a gcc2
20867 builtin and then its argument prototype would still apply. */
20868 char $ac_func();
20870 int main() {
20872 /* The GNU C library defines this for functions which it implements
20873 to always fail with ENOSYS. Some functions are actually named
20874 something starting with __ and the normal name is an alias. */
20875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20876 choke me
20877 #else
20878 $ac_func();
20879 #endif
20881 ; return 0; }
20883 if { (eval echo configure:20884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20884 rm -rf conftest*
20885 eval "ac_cv_func_$ac_func=yes"
20886 else
20887 echo "configure: failed program was:" >&5
20888 cat conftest.$ac_ext >&5
20889 rm -rf conftest*
20890 eval "ac_cv_func_$ac_func=no"
20892 rm -f conftest*
20895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20896 echo "$ac_t""yes" 1>&6
20897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20898 cat >> confdefs.h <<EOF
20899 #define $ac_tr_func 1
20902 else
20903 echo "$ac_t""no" 1>&6
20905 ac_wfuncs=no
20907 done
20910 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
20911 echo "configure:20912: checking for ISO C99 wchar_t support" >&5
20912 if test x"$has_weof" = xyes &&
20913 test x"$has_wchar_minmax" = xyes &&
20914 test x"$ac_wfuncs" = xyes; then
20915 ac_isoC99_wchar_t=yes
20916 else
20917 ac_isoC99_wchar_t=no
20919 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
20921 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
20922 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
20923 echo "configure:20924: checking for iconv.h" >&5
20924 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20925 echo $ac_n "(cached) $ac_c" 1>&6
20926 else
20927 cat > conftest.$ac_ext <<EOF
20928 #line 20929 "configure"
20929 #include "confdefs.h"
20930 #include <iconv.h>
20932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20933 { (eval echo configure:20934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20935 if test -z "$ac_err"; then
20936 rm -rf conftest*
20937 eval "ac_cv_header_$ac_safe=yes"
20938 else
20939 echo "$ac_err" >&5
20940 echo "configure: failed program was:" >&5
20941 cat conftest.$ac_ext >&5
20942 rm -rf conftest*
20943 eval "ac_cv_header_$ac_safe=no"
20945 rm -f conftest*
20947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20948 echo "$ac_t""yes" 1>&6
20949 ac_has_iconv_h=yes
20950 else
20951 echo "$ac_t""no" 1>&6
20952 ac_has_iconv_h=no
20955 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
20956 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
20957 echo "configure:20958: checking for langinfo.h" >&5
20958 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20959 echo $ac_n "(cached) $ac_c" 1>&6
20960 else
20961 cat > conftest.$ac_ext <<EOF
20962 #line 20963 "configure"
20963 #include "confdefs.h"
20964 #include <langinfo.h>
20966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20967 { (eval echo configure:20968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20969 if test -z "$ac_err"; then
20970 rm -rf conftest*
20971 eval "ac_cv_header_$ac_safe=yes"
20972 else
20973 echo "$ac_err" >&5
20974 echo "configure: failed program was:" >&5
20975 cat conftest.$ac_ext >&5
20976 rm -rf conftest*
20977 eval "ac_cv_header_$ac_safe=no"
20979 rm -f conftest*
20981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20982 echo "$ac_t""yes" 1>&6
20983 ac_has_langinfo_h=yes
20984 else
20985 echo "$ac_t""no" 1>&6
20986 ac_has_langinfo_h=no
20990 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
20991 echo "configure:20992: checking for iconv in -liconv" >&5
20992 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
20993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20994 echo $ac_n "(cached) $ac_c" 1>&6
20995 else
20996 ac_save_LIBS="$LIBS"
20997 LIBS="-liconv $LIBS"
20998 cat > conftest.$ac_ext <<EOF
20999 #line 21000 "configure"
21000 #include "confdefs.h"
21001 /* Override any gcc2 internal prototype to avoid an error. */
21002 /* We use char because int might match the return type of a gcc2
21003 builtin and then its argument prototype would still apply. */
21004 char iconv();
21006 int main() {
21007 iconv()
21008 ; return 0; }
21010 if { (eval echo configure:21011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21011 rm -rf conftest*
21012 eval "ac_cv_lib_$ac_lib_var=yes"
21013 else
21014 echo "configure: failed program was:" >&5
21015 cat conftest.$ac_ext >&5
21016 rm -rf conftest*
21017 eval "ac_cv_lib_$ac_lib_var=no"
21019 rm -f conftest*
21020 LIBS="$ac_save_LIBS"
21023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21024 echo "$ac_t""yes" 1>&6
21025 libiconv="-liconv"
21026 else
21027 echo "$ac_t""no" 1>&6
21030 ac_save_LIBS="$LIBS"
21031 LIBS="$LIBS $libiconv"
21033 for ac_func in iconv_open iconv_close iconv nl_langinfo
21035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21036 echo "configure:21037: checking for $ac_func" >&5
21037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21038 echo $ac_n "(cached) $ac_c" 1>&6
21039 else
21040 cat > conftest.$ac_ext <<EOF
21041 #line 21042 "configure"
21042 #include "confdefs.h"
21043 /* System header to define __stub macros and hopefully few prototypes,
21044 which can conflict with char $ac_func(); below. */
21045 #include <assert.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 $ac_func();
21051 int main() {
21053 /* The GNU C library defines this for functions which it implements
21054 to always fail with ENOSYS. Some functions are actually named
21055 something starting with __ and the normal name is an alias. */
21056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21057 choke me
21058 #else
21059 $ac_func();
21060 #endif
21062 ; return 0; }
21064 if { (eval echo configure:21065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21065 rm -rf conftest*
21066 eval "ac_cv_func_$ac_func=yes"
21067 else
21068 echo "configure: failed program was:" >&5
21069 cat conftest.$ac_ext >&5
21070 rm -rf conftest*
21071 eval "ac_cv_func_$ac_func=no"
21073 rm -f conftest*
21076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21077 echo "$ac_t""yes" 1>&6
21078 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21079 cat >> confdefs.h <<EOF
21080 #define $ac_tr_func 1
21083 ac_XPG2funcs=yes
21084 else
21085 echo "$ac_t""no" 1>&6
21086 ac_XPG2funcs=no
21088 done
21091 LIBS="$ac_save_LIBS"
21093 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
21094 echo "configure:21095: checking for XPG2 wchar_t support" >&5
21095 if test x"$ac_has_iconv_h" = xyes &&
21096 test x"$ac_has_langinfo_h" = xyes &&
21097 test x"$ac_XPG2funcs" = xyes; then
21098 ac_XPG2_wchar_t=yes
21099 else
21100 ac_XPG2_wchar_t=no
21102 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
21104 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
21105 echo "configure:21106: checking for enabled wchar_t specializations" >&5
21106 if test x"$ac_isoC99_wchar_t" = xyes &&
21107 test x"$ac_XPG2_wchar_t" = xyes; then
21108 cat >> confdefs.h <<\EOF
21109 #define _GLIBCPP_USE_WCHAR_T 1
21112 echo "$ac_t"""yes"" 1>&6
21113 else
21114 echo "$ac_t"""no"" 1>&6
21116 else
21117 echo "configure: warning: wchar_t support disabled." 1>&2
21121 ac_test_CXXFLAGS="${CXXFLAGS+set}"
21122 ac_save_CXXFLAGS="$CXXFLAGS"
21123 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
21126 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
21127 echo "configure:21128: checking for strtold declaration" >&5
21128 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
21129 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
21130 echo $ac_n "(cached) $ac_c" 1>&6
21131 else
21134 ac_ext=C
21135 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21136 ac_cpp='$CXXCPP $CPPFLAGS'
21137 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21138 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21139 cross_compiling=$ac_cv_prog_cxx_cross
21141 cat > conftest.$ac_ext <<EOF
21142 #line 21143 "configure"
21143 #include "confdefs.h"
21144 #include <stdlib.h>
21145 int main() {
21146 strtold(0, 0);
21147 ; return 0; }
21149 if { (eval echo configure:21150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21150 rm -rf conftest*
21151 glibcpp_cv_func_strtold_use=yes
21152 else
21153 echo "configure: failed program was:" >&5
21154 cat conftest.$ac_ext >&5
21155 rm -rf conftest*
21156 glibcpp_cv_func_strtold_use=no
21158 rm -f conftest*
21159 ac_ext=c
21160 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21161 ac_cpp='$CPP $CPPFLAGS'
21162 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21163 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21164 cross_compiling=$ac_cv_prog_cc_cross
21170 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
21171 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
21172 for ac_func in strtold
21174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21175 echo "configure:21176: checking for $ac_func" >&5
21176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21177 echo $ac_n "(cached) $ac_c" 1>&6
21178 else
21179 cat > conftest.$ac_ext <<EOF
21180 #line 21181 "configure"
21181 #include "confdefs.h"
21182 /* System header to define __stub macros and hopefully few prototypes,
21183 which can conflict with char $ac_func(); below. */
21184 #include <assert.h>
21185 /* Override any gcc2 internal prototype to avoid an error. */
21186 /* We use char because int might match the return type of a gcc2
21187 builtin and then its argument prototype would still apply. */
21188 char $ac_func();
21190 int main() {
21192 /* The GNU C library defines this for functions which it implements
21193 to always fail with ENOSYS. Some functions are actually named
21194 something starting with __ and the normal name is an alias. */
21195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21196 choke me
21197 #else
21198 $ac_func();
21199 #endif
21201 ; return 0; }
21203 if { (eval echo configure:21204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21204 rm -rf conftest*
21205 eval "ac_cv_func_$ac_func=yes"
21206 else
21207 echo "configure: failed program was:" >&5
21208 cat conftest.$ac_ext >&5
21209 rm -rf conftest*
21210 eval "ac_cv_func_$ac_func=no"
21212 rm -f conftest*
21215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21216 echo "$ac_t""yes" 1>&6
21217 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21218 cat >> confdefs.h <<EOF
21219 #define $ac_tr_func 1
21222 else
21223 echo "$ac_t""no" 1>&6
21225 done
21230 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
21231 echo "configure:21232: checking for strtof declaration" >&5
21232 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
21233 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
21234 echo $ac_n "(cached) $ac_c" 1>&6
21235 else
21238 ac_ext=C
21239 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21240 ac_cpp='$CXXCPP $CPPFLAGS'
21241 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21242 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21243 cross_compiling=$ac_cv_prog_cxx_cross
21245 cat > conftest.$ac_ext <<EOF
21246 #line 21247 "configure"
21247 #include "confdefs.h"
21248 #include <stdlib.h>
21249 int main() {
21250 strtof(0, 0);
21251 ; return 0; }
21253 if { (eval echo configure:21254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21254 rm -rf conftest*
21255 glibcpp_cv_func_strtof_use=yes
21256 else
21257 echo "configure: failed program was:" >&5
21258 cat conftest.$ac_ext >&5
21259 rm -rf conftest*
21260 glibcpp_cv_func_strtof_use=no
21262 rm -f conftest*
21263 ac_ext=c
21264 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21265 ac_cpp='$CPP $CPPFLAGS'
21266 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21267 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21268 cross_compiling=$ac_cv_prog_cc_cross
21274 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
21275 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
21276 for ac_func in strtof
21278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21279 echo "configure:21280: checking for $ac_func" >&5
21280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21281 echo $ac_n "(cached) $ac_c" 1>&6
21282 else
21283 cat > conftest.$ac_ext <<EOF
21284 #line 21285 "configure"
21285 #include "confdefs.h"
21286 /* System header to define __stub macros and hopefully few prototypes,
21287 which can conflict with char $ac_func(); below. */
21288 #include <assert.h>
21289 /* Override any gcc2 internal prototype to avoid an error. */
21290 /* We use char because int might match the return type of a gcc2
21291 builtin and then its argument prototype would still apply. */
21292 char $ac_func();
21294 int main() {
21296 /* The GNU C library defines this for functions which it implements
21297 to always fail with ENOSYS. Some functions are actually named
21298 something starting with __ and the normal name is an alias. */
21299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21300 choke me
21301 #else
21302 $ac_func();
21303 #endif
21305 ; return 0; }
21307 if { (eval echo configure:21308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21308 rm -rf conftest*
21309 eval "ac_cv_func_$ac_func=yes"
21310 else
21311 echo "configure: failed program was:" >&5
21312 cat conftest.$ac_ext >&5
21313 rm -rf conftest*
21314 eval "ac_cv_func_$ac_func=no"
21316 rm -f conftest*
21319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21320 echo "$ac_t""yes" 1>&6
21321 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21322 cat >> confdefs.h <<EOF
21323 #define $ac_tr_func 1
21326 else
21327 echo "$ac_t""no" 1>&6
21329 done
21333 for ac_func in drand48
21335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21336 echo "configure:21337: checking for $ac_func" >&5
21337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21338 echo $ac_n "(cached) $ac_c" 1>&6
21339 else
21340 cat > conftest.$ac_ext <<EOF
21341 #line 21342 "configure"
21342 #include "confdefs.h"
21343 /* System header to define __stub macros and hopefully few prototypes,
21344 which can conflict with char $ac_func(); below. */
21345 #include <assert.h>
21346 /* Override any gcc2 internal prototype to avoid an error. */
21347 /* We use char because int might match the return type of a gcc2
21348 builtin and then its argument prototype would still apply. */
21349 char $ac_func();
21351 int main() {
21353 /* The GNU C library defines this for functions which it implements
21354 to always fail with ENOSYS. Some functions are actually named
21355 something starting with __ and the normal name is an alias. */
21356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21357 choke me
21358 #else
21359 $ac_func();
21360 #endif
21362 ; return 0; }
21364 if { (eval echo configure:21365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21365 rm -rf conftest*
21366 eval "ac_cv_func_$ac_func=yes"
21367 else
21368 echo "configure: failed program was:" >&5
21369 cat conftest.$ac_ext >&5
21370 rm -rf conftest*
21371 eval "ac_cv_func_$ac_func=no"
21373 rm -f conftest*
21376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21377 echo "$ac_t""yes" 1>&6
21378 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21379 cat >> confdefs.h <<EOF
21380 #define $ac_tr_func 1
21383 else
21384 echo "$ac_t""no" 1>&6
21386 done
21389 CXXFLAGS="$ac_save_CXXFLAGS"
21392 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
21393 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
21394 echo "configure:21395: checking for locale.h" >&5
21395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21396 echo $ac_n "(cached) $ac_c" 1>&6
21397 else
21398 cat > conftest.$ac_ext <<EOF
21399 #line 21400 "configure"
21400 #include "confdefs.h"
21401 #include <locale.h>
21403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21404 { (eval echo configure:21405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21406 if test -z "$ac_err"; then
21407 rm -rf conftest*
21408 eval "ac_cv_header_$ac_safe=yes"
21409 else
21410 echo "$ac_err" >&5
21411 echo "configure: failed program was:" >&5
21412 cat conftest.$ac_ext >&5
21413 rm -rf conftest*
21414 eval "ac_cv_header_$ac_safe=no"
21416 rm -f conftest*
21418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21419 echo "$ac_t""yes" 1>&6
21421 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
21422 echo "configure:21423: checking for LC_MESSAGES" >&5
21423 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
21424 echo $ac_n "(cached) $ac_c" 1>&6
21425 else
21426 cat > conftest.$ac_ext <<EOF
21427 #line 21428 "configure"
21428 #include "confdefs.h"
21429 #include <locale.h>
21430 int main() {
21431 return LC_MESSAGES
21432 ; return 0; }
21434 if { (eval echo configure:21435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21435 rm -rf conftest*
21436 ac_cv_val_LC_MESSAGES=yes
21437 else
21438 echo "configure: failed program was:" >&5
21439 cat conftest.$ac_ext >&5
21440 rm -rf conftest*
21441 ac_cv_val_LC_MESSAGES=no
21443 rm -f conftest*
21446 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
21447 if test $ac_cv_val_LC_MESSAGES = yes; then
21448 cat >> confdefs.h <<\EOF
21449 #define HAVE_LC_MESSAGES 1
21454 else
21455 echo "$ac_t""no" 1>&6
21460 cat > conftest.$ac_ext <<EOF
21461 #line 21462 "configure"
21462 #include "confdefs.h"
21464 #include <setjmp.h>
21466 int main() {
21467 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21468 ; return 0; }
21470 if { (eval echo configure:21471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21471 rm -rf conftest*
21472 cat >> confdefs.h <<\EOF
21473 #define HAVE_SIGSETJMP 1
21477 else
21478 echo "configure: failed program was:" >&5
21479 cat conftest.$ac_ext >&5
21481 rm -f conftest*
21483 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
21485 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21486 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21487 echo "configure:21488: checking for $ac_hdr" >&5
21488 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21489 echo $ac_n "(cached) $ac_c" 1>&6
21490 else
21491 cat > conftest.$ac_ext <<EOF
21492 #line 21493 "configure"
21493 #include "confdefs.h"
21494 #include <$ac_hdr>
21496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21497 { (eval echo configure:21498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21499 if test -z "$ac_err"; then
21500 rm -rf conftest*
21501 eval "ac_cv_header_$ac_safe=yes"
21502 else
21503 echo "$ac_err" >&5
21504 echo "configure: failed program was:" >&5
21505 cat conftest.$ac_ext >&5
21506 rm -rf conftest*
21507 eval "ac_cv_header_$ac_safe=no"
21509 rm -f conftest*
21511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21512 echo "$ac_t""yes" 1>&6
21513 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21514 cat >> confdefs.h <<EOF
21515 #define $ac_tr_hdr 1
21518 else
21519 echo "$ac_t""no" 1>&6
21521 done
21523 for ac_func in getpagesize
21525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21526 echo "configure:21527: checking for $ac_func" >&5
21527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21528 echo $ac_n "(cached) $ac_c" 1>&6
21529 else
21530 cat > conftest.$ac_ext <<EOF
21531 #line 21532 "configure"
21532 #include "confdefs.h"
21533 /* System header to define __stub macros and hopefully few prototypes,
21534 which can conflict with char $ac_func(); below. */
21535 #include <assert.h>
21536 /* Override any gcc2 internal prototype to avoid an error. */
21537 /* We use char because int might match the return type of a gcc2
21538 builtin and then its argument prototype would still apply. */
21539 char $ac_func();
21541 int main() {
21543 /* The GNU C library defines this for functions which it implements
21544 to always fail with ENOSYS. Some functions are actually named
21545 something starting with __ and the normal name is an alias. */
21546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21547 choke me
21548 #else
21549 $ac_func();
21550 #endif
21552 ; return 0; }
21554 if { (eval echo configure:21555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21555 rm -rf conftest*
21556 eval "ac_cv_func_$ac_func=yes"
21557 else
21558 echo "configure: failed program was:" >&5
21559 cat conftest.$ac_ext >&5
21560 rm -rf conftest*
21561 eval "ac_cv_func_$ac_func=no"
21563 rm -f conftest*
21566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21567 echo "$ac_t""yes" 1>&6
21568 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21569 cat >> confdefs.h <<EOF
21570 #define $ac_tr_func 1
21573 else
21574 echo "$ac_t""no" 1>&6
21576 done
21578 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
21579 echo "configure:21580: checking for working mmap" >&5
21580 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
21581 echo $ac_n "(cached) $ac_c" 1>&6
21582 else
21583 if test "$cross_compiling" = yes; then
21584 ac_cv_func_mmap_fixed_mapped=no
21585 else
21586 cat > conftest.$ac_ext <<EOF
21587 #line 21588 "configure"
21588 #include "confdefs.h"
21590 /* Thanks to Mike Haertel and Jim Avera for this test.
21591 Here is a matrix of mmap possibilities:
21592 mmap private not fixed
21593 mmap private fixed at somewhere currently unmapped
21594 mmap private fixed at somewhere already mapped
21595 mmap shared not fixed
21596 mmap shared fixed at somewhere currently unmapped
21597 mmap shared fixed at somewhere already mapped
21598 For private mappings, we should verify that changes cannot be read()
21599 back from the file, nor mmap's back from the file at a different
21600 address. (There have been systems where private was not correctly
21601 implemented like the infamous i386 svr4.0, and systems where the
21602 VM page cache was not coherent with the filesystem buffer cache
21603 like early versions of FreeBSD and possibly contemporary NetBSD.)
21604 For shared mappings, we should conversely verify that changes get
21605 propogated back to all the places they're supposed to be.
21607 Grep wants private fixed already mapped.
21608 The main things grep needs to know about mmap are:
21609 * does it exist and is it safe to write into the mmap'd area
21610 * how to use it (BSD variants) */
21611 #include <sys/types.h>
21612 #include <fcntl.h>
21613 #include <sys/mman.h>
21615 #if HAVE_SYS_TYPES_H
21616 # include <sys/types.h>
21617 #endif
21619 #if HAVE_STDLIB_H
21620 # include <stdlib.h>
21621 #endif
21623 #if HAVE_SYS_STAT_H
21624 # include <sys/stat.h>
21625 #endif
21627 #if HAVE_UNISTD_H
21628 # include <unistd.h>
21629 #endif
21631 /* This mess was copied from the GNU getpagesize.h. */
21632 #ifndef HAVE_GETPAGESIZE
21634 /* Assume that all systems that can run configure have sys/param.h. */
21635 # ifndef HAVE_SYS_PARAM_H
21636 # define HAVE_SYS_PARAM_H 1
21637 # endif
21639 # ifdef _SC_PAGESIZE
21640 # define getpagesize() sysconf(_SC_PAGESIZE)
21641 # else /* no _SC_PAGESIZE */
21642 # ifdef HAVE_SYS_PARAM_H
21643 # include <sys/param.h>
21644 # ifdef EXEC_PAGESIZE
21645 # define getpagesize() EXEC_PAGESIZE
21646 # else /* no EXEC_PAGESIZE */
21647 # ifdef NBPG
21648 # define getpagesize() NBPG * CLSIZE
21649 # ifndef CLSIZE
21650 # define CLSIZE 1
21651 # endif /* no CLSIZE */
21652 # else /* no NBPG */
21653 # ifdef NBPC
21654 # define getpagesize() NBPC
21655 # else /* no NBPC */
21656 # ifdef PAGESIZE
21657 # define getpagesize() PAGESIZE
21658 # endif /* PAGESIZE */
21659 # endif /* no NBPC */
21660 # endif /* no NBPG */
21661 # endif /* no EXEC_PAGESIZE */
21662 # else /* no HAVE_SYS_PARAM_H */
21663 # define getpagesize() 8192 /* punt totally */
21664 # endif /* no HAVE_SYS_PARAM_H */
21665 # endif /* no _SC_PAGESIZE */
21667 #endif /* no HAVE_GETPAGESIZE */
21669 #ifdef __cplusplus
21670 extern "C" { void *malloc(unsigned); }
21671 #else
21672 char *malloc();
21673 #endif
21676 main()
21678 char *data, *data2, *data3;
21679 int i, pagesize;
21680 int fd;
21682 pagesize = getpagesize();
21685 * First, make a file with some known garbage in it.
21687 data = malloc(pagesize);
21688 if (!data)
21689 exit(1);
21690 for (i = 0; i < pagesize; ++i)
21691 *(data + i) = rand();
21692 umask(0);
21693 fd = creat("conftestmmap", 0600);
21694 if (fd < 0)
21695 exit(1);
21696 if (write(fd, data, pagesize) != pagesize)
21697 exit(1);
21698 close(fd);
21701 * Next, try to mmap the file at a fixed address which
21702 * already has something else allocated at it. If we can,
21703 * also make sure that we see the same garbage.
21705 fd = open("conftestmmap", O_RDWR);
21706 if (fd < 0)
21707 exit(1);
21708 data2 = malloc(2 * pagesize);
21709 if (!data2)
21710 exit(1);
21711 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21712 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
21713 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21714 exit(1);
21715 for (i = 0; i < pagesize; ++i)
21716 if (*(data + i) != *(data2 + i))
21717 exit(1);
21720 * Finally, make sure that changes to the mapped area
21721 * do not percolate back to the file as seen by read().
21722 * (This is a bug on some variants of i386 svr4.0.)
21724 for (i = 0; i < pagesize; ++i)
21725 *(data2 + i) = *(data2 + i) + 1;
21726 data3 = malloc(pagesize);
21727 if (!data3)
21728 exit(1);
21729 if (read(fd, data3, pagesize) != pagesize)
21730 exit(1);
21731 for (i = 0; i < pagesize; ++i)
21732 if (*(data + i) != *(data3 + i))
21733 exit(1);
21734 close(fd);
21735 unlink("conftestmmap");
21736 exit(0);
21740 if { (eval echo configure:21741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21741 then
21742 ac_cv_func_mmap_fixed_mapped=yes
21743 else
21744 echo "configure: failed program was:" >&5
21745 cat conftest.$ac_ext >&5
21746 rm -fr conftest*
21747 ac_cv_func_mmap_fixed_mapped=no
21749 rm -fr conftest*
21754 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
21755 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21756 cat >> confdefs.h <<\EOF
21757 #define HAVE_MMAP 1
21763 # Establish limits on memory usage during 'make check'
21766 setrlimit_have_headers=yes
21767 for ac_hdr in unistd.h sys/time.h sys/resource.h
21769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21771 echo "configure:21772: checking for $ac_hdr" >&5
21772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21773 echo $ac_n "(cached) $ac_c" 1>&6
21774 else
21775 cat > conftest.$ac_ext <<EOF
21776 #line 21777 "configure"
21777 #include "confdefs.h"
21778 #include <$ac_hdr>
21780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21781 { (eval echo configure:21782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21783 if test -z "$ac_err"; then
21784 rm -rf conftest*
21785 eval "ac_cv_header_$ac_safe=yes"
21786 else
21787 echo "$ac_err" >&5
21788 echo "configure: failed program was:" >&5
21789 cat conftest.$ac_ext >&5
21790 rm -rf conftest*
21791 eval "ac_cv_header_$ac_safe=no"
21793 rm -f conftest*
21795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21796 echo "$ac_t""yes" 1>&6
21797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21798 cat >> confdefs.h <<EOF
21799 #define $ac_tr_hdr 1
21802 else
21803 echo "$ac_t""no" 1>&6
21804 setrlimit_have_headers=no
21806 done
21808 # If don't have the headers, then we can't run the tests now, and we
21809 # won't be seeing any of these during testsuite compilation.
21810 if test $setrlimit_have_headers = yes; then
21811 # Can't do these in a loop, else the resulting syntax is wrong.
21813 cat > conftest.$ac_ext <<EOF
21814 #line 21815 "configure"
21815 #include "confdefs.h"
21816 #include <unistd.h>
21817 #include <sys/time.h>
21818 #include <sys/resource.h>
21820 int main() {
21821 int f = RLIMIT_DATA ;
21822 ; return 0; }
21824 if { (eval echo configure:21825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21825 rm -rf conftest*
21826 glibcpp_mresult=1
21827 else
21828 echo "configure: failed program was:" >&5
21829 cat conftest.$ac_ext >&5
21830 rm -rf conftest*
21831 glibcpp_mresult=0
21833 rm -f conftest*
21834 cat >> confdefs.h <<EOF
21835 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
21840 cat > conftest.$ac_ext <<EOF
21841 #line 21842 "configure"
21842 #include "confdefs.h"
21843 #include <unistd.h>
21844 #include <sys/time.h>
21845 #include <sys/resource.h>
21847 int main() {
21848 int f = RLIMIT_RSS ;
21849 ; return 0; }
21851 if { (eval echo configure:21852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21852 rm -rf conftest*
21853 glibcpp_mresult=1
21854 else
21855 echo "configure: failed program was:" >&5
21856 cat conftest.$ac_ext >&5
21857 rm -rf conftest*
21858 glibcpp_mresult=0
21860 rm -f conftest*
21861 cat >> confdefs.h <<EOF
21862 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
21867 cat > conftest.$ac_ext <<EOF
21868 #line 21869 "configure"
21869 #include "confdefs.h"
21870 #include <unistd.h>
21871 #include <sys/time.h>
21872 #include <sys/resource.h>
21874 int main() {
21875 int f = RLIMIT_VMEM ;
21876 ; return 0; }
21878 if { (eval echo configure:21879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21879 rm -rf conftest*
21880 glibcpp_mresult=1
21881 else
21882 echo "configure: failed program was:" >&5
21883 cat conftest.$ac_ext >&5
21884 rm -rf conftest*
21885 glibcpp_mresult=0
21887 rm -f conftest*
21888 cat >> confdefs.h <<EOF
21889 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
21894 cat > conftest.$ac_ext <<EOF
21895 #line 21896 "configure"
21896 #include "confdefs.h"
21897 #include <unistd.h>
21898 #include <sys/time.h>
21899 #include <sys/resource.h>
21901 int main() {
21902 int f = RLIMIT_AS ;
21903 ; return 0; }
21905 if { (eval echo configure:21906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21906 rm -rf conftest*
21907 glibcpp_mresult=1
21908 else
21909 echo "configure: failed program was:" >&5
21910 cat conftest.$ac_ext >&5
21911 rm -rf conftest*
21912 glibcpp_mresult=0
21914 rm -f conftest*
21915 cat >> confdefs.h <<EOF
21916 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
21921 # Check for rlimit, setrlimit.
21922 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
21923 echo $ac_n "(cached) $ac_c" 1>&6
21924 else
21926 cat > conftest.$ac_ext <<EOF
21927 #line 21928 "configure"
21928 #include "confdefs.h"
21929 #include <unistd.h>
21930 #include <sys/time.h>
21931 #include <sys/resource.h>
21933 int main() {
21934 struct rlimit r; setrlimit(0, &r);
21935 ; return 0; }
21937 if { (eval echo configure:21938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21938 rm -rf conftest*
21939 ac_setrlimit=yes
21940 else
21941 echo "configure: failed program was:" >&5
21942 cat conftest.$ac_ext >&5
21943 rm -rf conftest*
21944 ac_setrlimit=no
21946 rm -f conftest*
21952 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
21953 echo "configure:21954: checking for testsuite memory limit support" >&5
21954 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
21955 ac_mem_limits=yes
21956 cat >> confdefs.h <<\EOF
21957 #define _GLIBCPP_MEM_LIMITS 1
21960 else
21961 ac_mem_limits=no
21963 echo "$ac_t""$ac_mem_limits" 1>&6
21966 # Look for setenv, so that extended locale tests can be performed.
21968 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
21969 echo "configure:21970: checking for setenv declaration" >&5
21970 if test x${glibcpp_cv_func_setenv_use+set} != xset; then
21971 if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
21972 echo $ac_n "(cached) $ac_c" 1>&6
21973 else
21976 ac_ext=C
21977 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21978 ac_cpp='$CXXCPP $CPPFLAGS'
21979 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21980 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21981 cross_compiling=$ac_cv_prog_cxx_cross
21983 cat > conftest.$ac_ext <<EOF
21984 #line 21985 "configure"
21985 #include "confdefs.h"
21986 #include <stdlib.h>
21987 int main() {
21988 setenv(0, 0, 0);
21989 ; return 0; }
21991 if { (eval echo configure:21992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21992 rm -rf conftest*
21993 glibcpp_cv_func_setenv_use=yes
21994 else
21995 echo "configure: failed program was:" >&5
21996 cat conftest.$ac_ext >&5
21997 rm -rf conftest*
21998 glibcpp_cv_func_setenv_use=no
22000 rm -f conftest*
22001 ac_ext=c
22002 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22003 ac_cpp='$CPP $CPPFLAGS'
22004 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22005 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22006 cross_compiling=$ac_cv_prog_cc_cross
22012 echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
22013 if test x$glibcpp_cv_func_setenv_use = x"yes"; then
22014 for ac_func in setenv
22016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22017 echo "configure:22018: checking for $ac_func" >&5
22018 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22019 echo $ac_n "(cached) $ac_c" 1>&6
22020 else
22021 cat > conftest.$ac_ext <<EOF
22022 #line 22023 "configure"
22023 #include "confdefs.h"
22024 /* System header to define __stub macros and hopefully few prototypes,
22025 which can conflict with char $ac_func(); below. */
22026 #include <assert.h>
22027 /* Override any gcc2 internal prototype to avoid an error. */
22028 /* We use char because int might match the return type of a gcc2
22029 builtin and then its argument prototype would still apply. */
22030 char $ac_func();
22032 int main() {
22034 /* The GNU C library defines this for functions which it implements
22035 to always fail with ENOSYS. Some functions are actually named
22036 something starting with __ and the normal name is an alias. */
22037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22038 choke me
22039 #else
22040 $ac_func();
22041 #endif
22043 ; return 0; }
22045 if { (eval echo configure:22046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22046 rm -rf conftest*
22047 eval "ac_cv_func_$ac_func=yes"
22048 else
22049 echo "configure: failed program was:" >&5
22050 cat conftest.$ac_ext >&5
22051 rm -rf conftest*
22052 eval "ac_cv_func_$ac_func=no"
22054 rm -f conftest*
22057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22058 echo "$ac_t""yes" 1>&6
22059 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22060 cat >> confdefs.h <<EOF
22061 #define $ac_tr_func 1
22064 else
22065 echo "$ac_t""no" 1>&6
22067 done
22074 # This depends on the possibly-skipped linker test above.
22075 # Check whether --enable-symvers or --disable-symvers was given.
22076 if test "${enable_symvers+set}" = set; then
22077 enableval="$enable_symvers"
22078 case "$enableval" in
22079 yes) enable_symvers=yes ;;
22080 no) enable_symvers=no ;;
22081 # other names here, just as sanity checks
22082 #gnu|sun|etcetera) enable_symvers=$enableval ;;
22083 gnu) enable_symvers=$enableval ;;
22084 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
22085 esac
22086 else
22087 enable_symvers=yes
22090 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
22091 # don't know enough about $LD to do tricks...
22092 if test x$enable_shared = xno ||
22093 test "x$LD" = x ||
22094 test x$glibcpp_gnu_ld_version = x; then
22095 enable_symvers=no
22098 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
22099 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
22100 echo "configure:22101: checking for shared libgcc" >&5
22101 ac_save_CFLAGS="$CFLAGS"
22102 CFLAGS=' -lgcc_s'
22103 cat > conftest.$ac_ext <<EOF
22104 #line 22105 "configure"
22105 #include "confdefs.h"
22107 int main() {
22108 return 0
22109 ; return 0; }
22111 if { (eval echo configure:22112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22112 rm -rf conftest*
22113 glibcpp_shared_libgcc=yes
22114 else
22115 echo "configure: failed program was:" >&5
22116 cat conftest.$ac_ext >&5
22117 rm -rf conftest*
22118 glibcpp_shared_libgcc=no
22120 rm -f conftest*
22121 CFLAGS="$ac_save_CFLAGS"
22122 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
22124 # For GNU ld, we need at least this version. It's 2.12 in the same format
22125 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
22126 glibcpp_min_gnu_ld_version=21200
22128 # Check to see if unspecified "yes" value can win, given results
22129 # above.
22130 if test $enable_symvers = yes ; then
22131 if test $with_gnu_ld = yes &&
22132 test $glibcpp_shared_libgcc = yes ;
22133 then
22134 if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
22135 enable_symvers=gnu
22136 else
22137 ac_test_CFLAGS="${CFLAGS+set}"
22138 ac_save_CFLAGS="$CFLAGS"
22139 CFLAGS='-shared -Wl,--version-script,conftest.map'
22140 enable_symvers=no
22142 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
22144 cat > conftest.$ac_ext <<EOF
22145 #line 22146 "configure"
22146 #include "confdefs.h"
22147 int foo;
22148 int main() {
22150 ; return 0; }
22152 if { (eval echo configure:22153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22153 rm -rf conftest*
22154 enable_symvers=gnu
22155 else
22156 echo "configure: failed program was:" >&5
22157 cat conftest.$ac_ext >&5
22159 rm -f conftest*
22160 if test "$ac_test_CFLAGS" = set; then
22161 CFLAGS="$ac_save_CFLAGS"
22162 else
22163 # this is the suspicious part
22164 CFLAGS=''
22166 rm -f conftest.map
22168 else
22169 # just fail for now
22170 enable_symvers=no
22174 case $enable_symvers in
22176 LINKER_MAP=config/linker-map.dummy
22178 gnu)
22179 LINKER_MAP=config/linker-map.gnu
22181 esac
22186 if test $enable_symvers != no; then
22187 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
22188 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
22189 else
22190 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
22191 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
22193 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
22194 echo "configure:22195: checking versioning on shared library symbols" >&5
22195 echo "$ac_t""$enable_symvers" 1>&6
22198 # Propagate the target-specific source directories through the build chain.
22199 OS_INC_SRCDIR=$os_include_dir/bits
22200 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
22201 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
22206 # Set up cross-compile flags
22210 if test "$CANADIAN" = yes; then
22211 CANADIAN_TRUE=
22212 CANADIAN_FALSE='#'
22213 else
22214 CANADIAN_TRUE='#'
22215 CANADIAN_FALSE=
22218 cat > confcache <<\EOF
22219 # This file is a shell script that caches the results of configure
22220 # tests run on this system so they can be shared between configure
22221 # scripts and configure runs. It is not useful on other systems.
22222 # If it contains results you don't want to keep, you may remove or edit it.
22224 # By default, configure uses ./config.cache as the cache file,
22225 # creating it if it does not exist already. You can give configure
22226 # the --cache-file=FILE option to use a different cache file; that is
22227 # what configure does when it calls configure scripts in
22228 # subdirectories, so they share the cache.
22229 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22230 # config.status only pays attention to the cache file if you give it the
22231 # --recheck option to rerun configure.
22234 # The following way of writing the cache mishandles newlines in values,
22235 # but we know of no workaround that is simple, portable, and efficient.
22236 # So, don't put newlines in cache variables' values.
22237 # Ultrix sh set writes to stderr and can't be redirected directly,
22238 # and sets the high bit in the cache file unless we assign to the vars.
22239 (set) 2>&1 |
22240 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22241 *ac_space=\ *)
22242 # `set' does not quote correctly, so add quotes (double-quote substitution
22243 # turns \\\\ into \\, and sed turns \\ into \).
22244 sed -n \
22245 -e "s/'/'\\\\''/g" \
22246 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22249 # `set' quotes correctly as required by POSIX, so do not add quotes.
22250 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22252 esac >> confcache
22253 if cmp -s $cache_file confcache; then
22255 else
22256 if test -w $cache_file; then
22257 echo "updating cache $cache_file"
22258 cat confcache > $cache_file
22259 else
22260 echo "not updating unwritable cache $cache_file"
22263 rm -f confcache
22266 if test "${multilib}" = "yes"; then
22267 multilib_arg="--enable-multilib"
22268 else
22269 multilib_arg=
22272 # Needed so that g++ can find the correct include subdir automatically.
22273 INTERFACE=v3
22275 # Export all the install information
22277 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
22278 # exported correctly in GLIBCPP_CONFIGURE.
22279 glibcpp_toolexecdir=no
22280 glibcpp_toolexeclibdir=no
22281 glibcpp_prefixdir=${prefix}
22283 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
22284 echo "configure:22285: checking for interface version number" >&5
22285 libstdcxx_interface=$INTERFACE
22286 echo "$ac_t""$libstdcxx_interface" 1>&6
22288 # Process the option --with-gxx-include-dir=<path to include-files directory>
22289 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
22290 echo "configure:22291: checking for --with-gxx-include-dir" >&5
22291 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
22292 if test "${with_gxx_include_dir+set}" = set; then
22293 withval="$with_gxx_include_dir"
22294 case "${withval}" in
22295 yes)
22296 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
22297 gxx_include_dir=no
22300 gxx_include_dir=no
22303 gxx_include_dir=${withval}
22305 esac
22306 else
22307 gxx_include_dir=no
22310 echo "$ac_t""$gxx_include_dir" 1>&6
22312 # Process the option "--enable-version-specific-runtime-libs"
22313 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
22314 echo "configure:22315: checking for --enable-version-specific-runtime-libs" >&5
22315 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
22316 if test "${enable_version_specific_runtime_libs+set}" = set; then
22317 enableval="$enable_version_specific_runtime_libs"
22318 case "$enableval" in
22319 yes) version_specific_libs=yes ;;
22320 no) version_specific_libs=no ;;
22321 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
22322 esac
22323 else
22324 version_specific_libs=no
22326 # Option set, now we can test it.
22327 echo "$ac_t""$version_specific_libs" 1>&6
22329 if test $version_specific_libs = yes; then
22330 # Need the gcc compiler version to know where to install libraries
22331 # and header files if --enable-version-specific-runtime-libs option
22332 # is selected.
22333 gcc_version_trigger=${srcdir}/../gcc/version.c
22334 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
22335 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
22336 if test x"$gxx_include_dir" = x"no"; then
22337 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
22339 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22340 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
22343 # Default case for install directory for include files.
22344 if test $version_specific_libs = no &&
22345 test $gxx_include_dir = no; then
22346 gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
22349 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
22350 # Install a library built with a cross compiler in tooldir, not libdir.
22351 if test x"$glibcpp_toolexecdir" = x"no"; then
22352 if test -n "$with_cross_host" &&
22353 test x"$with_cross_host" != x"no"; then
22354 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
22355 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
22356 else
22357 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22358 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
22362 echo $ac_n "checking for install location""... $ac_c" 1>&6
22363 echo "configure:22364: checking for install location" >&5
22364 echo "$ac_t""$gxx_include_dir" 1>&6
22372 # Export all the include and flag information to makefiles.
22374 # Root level of the build directory include sources.
22375 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
22377 # Passed down for canadian crosses.
22378 if test x"$CANADIAN" = xyes; then
22379 TOPLEVEL_INCLUDES='-I$(includedir)'
22382 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
22384 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
22386 if test x"$need_libio" = xyes; then
22387 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
22391 # Now, export this to all the little Makefiles....
22398 # Optimization flags that are probably a good idea for thrill-seekers. Just
22399 # uncomment the lines below and make, everything else is ready to go...
22400 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
22401 OPTIMIZE_CXXFLAGS=
22404 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
22408 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
22409 grep "enable shared" > /dev/null; then
22410 LIBSUPCXX_PICFLAGS=-prefer-pic
22411 else
22412 LIBSUPCXX_PICFLAGS=
22416 # Generate the various Makefiles, include files, and scripts.
22417 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
22418 # and libsupc++/Makefile.am so that multilib installs will end up
22419 # installed in the correct place. To work around this not being passed
22420 # down from config-ml.in -> top_srcdir/Makefile.am ->
22421 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
22422 trap '' 1 2 15
22423 cat > confcache <<\EOF
22424 # This file is a shell script that caches the results of configure
22425 # tests run on this system so they can be shared between configure
22426 # scripts and configure runs. It is not useful on other systems.
22427 # If it contains results you don't want to keep, you may remove or edit it.
22429 # By default, configure uses ./config.cache as the cache file,
22430 # creating it if it does not exist already. You can give configure
22431 # the --cache-file=FILE option to use a different cache file; that is
22432 # what configure does when it calls configure scripts in
22433 # subdirectories, so they share the cache.
22434 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22435 # config.status only pays attention to the cache file if you give it the
22436 # --recheck option to rerun configure.
22439 # The following way of writing the cache mishandles newlines in values,
22440 # but we know of no workaround that is simple, portable, and efficient.
22441 # So, don't put newlines in cache variables' values.
22442 # Ultrix sh set writes to stderr and can't be redirected directly,
22443 # and sets the high bit in the cache file unless we assign to the vars.
22444 (set) 2>&1 |
22445 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22446 *ac_space=\ *)
22447 # `set' does not quote correctly, so add quotes (double-quote substitution
22448 # turns \\\\ into \\, and sed turns \\ into \).
22449 sed -n \
22450 -e "s/'/'\\\\''/g" \
22451 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22454 # `set' quotes correctly as required by POSIX, so do not add quotes.
22455 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22457 esac >> confcache
22458 if cmp -s $cache_file confcache; then
22460 else
22461 if test -w $cache_file; then
22462 echo "updating cache $cache_file"
22463 cat confcache > $cache_file
22464 else
22465 echo "not updating unwritable cache $cache_file"
22468 rm -f confcache
22470 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22472 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22473 # Let make expand exec_prefix.
22474 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22476 # Any assignment to VPATH causes Sun make to only execute
22477 # the first set of double-colon rules, so remove it if not needed.
22478 # If there is a colon in the path, we need to keep it.
22479 if test "x$srcdir" = x.; then
22480 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22483 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22485 DEFS=-DHAVE_CONFIG_H
22487 # Without the "./", some shells look in PATH for config.status.
22488 : ${CONFIG_STATUS=./config.status}
22490 echo creating $CONFIG_STATUS
22491 rm -f $CONFIG_STATUS
22492 cat > $CONFIG_STATUS <<EOF
22493 #! /bin/sh
22494 # Generated automatically by configure.
22495 # Run this file to recreate the current configuration.
22496 # This directory was configured as follows,
22497 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22499 # $0 $ac_configure_args
22501 # Compiler output produced by configure, useful for debugging
22502 # configure, is in ./config.log if it exists.
22504 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22505 for ac_option
22507 case "\$ac_option" in
22508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22509 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22510 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22511 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22512 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22513 exit 0 ;;
22514 -help | --help | --hel | --he | --h)
22515 echo "\$ac_cs_usage"; exit 0 ;;
22516 *) echo "\$ac_cs_usage"; exit 1 ;;
22517 esac
22518 done
22520 ac_given_srcdir=$srcdir
22521 ac_given_INSTALL="$INSTALL"
22523 trap 'rm -fr `echo "Makefile \
22524 include/Makefile src/Makefile \
22525 libmath/Makefile libio/Makefile libsupc++/Makefile \
22526 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22528 cat >> $CONFIG_STATUS <<EOF
22530 # Protect against being on the right side of a sed subst in config.status.
22531 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22532 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22533 $ac_vpsub
22534 $extrasub
22535 s%@SHELL@%$SHELL%g
22536 s%@CFLAGS@%$CFLAGS%g
22537 s%@CPPFLAGS@%$CPPFLAGS%g
22538 s%@CXXFLAGS@%$CXXFLAGS%g
22539 s%@FFLAGS@%$FFLAGS%g
22540 s%@DEFS@%$DEFS%g
22541 s%@LDFLAGS@%$LDFLAGS%g
22542 s%@LIBS@%$LIBS%g
22543 s%@exec_prefix@%$exec_prefix%g
22544 s%@prefix@%$prefix%g
22545 s%@program_transform_name@%$program_transform_name%g
22546 s%@bindir@%$bindir%g
22547 s%@sbindir@%$sbindir%g
22548 s%@libexecdir@%$libexecdir%g
22549 s%@datadir@%$datadir%g
22550 s%@sysconfdir@%$sysconfdir%g
22551 s%@sharedstatedir@%$sharedstatedir%g
22552 s%@localstatedir@%$localstatedir%g
22553 s%@libdir@%$libdir%g
22554 s%@includedir@%$includedir%g
22555 s%@oldincludedir@%$oldincludedir%g
22556 s%@infodir@%$infodir%g
22557 s%@mandir@%$mandir%g
22558 s%@PACKAGE@%$PACKAGE%g
22559 s%@release_VERSION@%$release_VERSION%g
22560 s%@libtool_VERSION@%$libtool_VERSION%g
22561 s%@host@%$host%g
22562 s%@host_alias@%$host_alias%g
22563 s%@host_cpu@%$host_cpu%g
22564 s%@host_vendor@%$host_vendor%g
22565 s%@host_os@%$host_os%g
22566 s%@target@%$target%g
22567 s%@target_alias@%$target_alias%g
22568 s%@target_cpu@%$target_cpu%g
22569 s%@target_vendor@%$target_vendor%g
22570 s%@target_os@%$target_os%g
22571 s%@build@%$build%g
22572 s%@build_alias@%$build_alias%g
22573 s%@build_cpu@%$build_cpu%g
22574 s%@build_vendor@%$build_vendor%g
22575 s%@build_os@%$build_os%g
22576 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22577 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22578 s%@INSTALL_DATA@%$INSTALL_DATA%g
22579 s%@VERSION@%$VERSION%g
22580 s%@ACLOCAL@%$ACLOCAL%g
22581 s%@AUTOCONF@%$AUTOCONF%g
22582 s%@AUTOMAKE@%$AUTOMAKE%g
22583 s%@AUTOHEADER@%$AUTOHEADER%g
22584 s%@MAKEINFO@%$MAKEINFO%g
22585 s%@SET_MAKE@%$SET_MAKE%g
22586 s%@toplevel_srcdir@%$toplevel_srcdir%g
22587 s%@glibcpp_builddir@%$glibcpp_builddir%g
22588 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
22589 s%@AWK@%$AWK%g
22590 s%@LN_S@%$LN_S%g
22591 s%@glibcpp_basedir@%$glibcpp_basedir%g
22592 s%@CC@%$CC%g
22593 s%@glibcpp_CXX@%$glibcpp_CXX%g
22594 s%@AS@%$AS%g
22595 s%@AR@%$AR%g
22596 s%@RANLIB@%$RANLIB%g
22597 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
22598 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
22599 s%@MAINT@%$MAINT%g
22600 s%@EXEEXT@%$EXEEXT%g
22601 s%@OBJEXT@%$OBJEXT%g
22602 s%@STRIP@%$STRIP%g
22603 s%@LIBTOOL@%$LIBTOOL%g
22604 s%@CXXCPP@%$CXXCPP%g
22605 s%@enable_shared@%$enable_shared%g
22606 s%@enable_static@%$enable_static%g
22607 s%@ifGNUmake@%$ifGNUmake%g
22608 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
22609 s%@CPP@%$CPP%g
22610 s%@CSTDIO_H@%$CSTDIO_H%g
22611 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
22612 s%@CCODECVT_C@%$CCODECVT_C%g
22613 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
22614 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
22615 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
22616 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
22617 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
22618 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
22619 s%@libio_la@%$libio_la%g
22620 s%@check_msgfmt@%$check_msgfmt%g
22621 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
22622 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
22623 s%@glibcpp_localedir@%$glibcpp_localedir%g
22624 s%@USE_NLS@%$USE_NLS%g
22625 s%@CLOCALE_H@%$CLOCALE_H%g
22626 s%@CCODECVT_H@%$CCODECVT_H%g
22627 s%@CMESSAGES_H@%$CMESSAGES_H%g
22628 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
22629 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
22630 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
22631 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
22632 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
22633 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
22634 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
22635 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
22636 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
22637 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
22638 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
22639 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
22640 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
22641 s%@WERROR@%$WERROR%g
22642 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
22643 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
22644 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
22645 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
22646 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
22647 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
22648 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
22649 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
22650 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
22651 s%@gxx_include_dir@%$gxx_include_dir%g
22652 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
22653 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
22654 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
22655 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
22656 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
22657 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
22658 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
22659 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
22660 s%@WARN_FLAGS@%$WARN_FLAGS%g
22661 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
22663 CEOF
22666 cat >> $CONFIG_STATUS <<\EOF
22668 # Split the substitutions into bite-sized pieces for seds with
22669 # small command number limits, like on Digital OSF/1 and HP-UX.
22670 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22671 ac_file=1 # Number of current file.
22672 ac_beg=1 # First line for current file.
22673 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22674 ac_more_lines=:
22675 ac_sed_cmds=""
22676 while $ac_more_lines; do
22677 if test $ac_beg -gt 1; then
22678 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22679 else
22680 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22682 if test ! -s conftest.s$ac_file; then
22683 ac_more_lines=false
22684 rm -f conftest.s$ac_file
22685 else
22686 if test -z "$ac_sed_cmds"; then
22687 ac_sed_cmds="sed -f conftest.s$ac_file"
22688 else
22689 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22691 ac_file=`expr $ac_file + 1`
22692 ac_beg=$ac_end
22693 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22695 done
22696 if test -z "$ac_sed_cmds"; then
22697 ac_sed_cmds=cat
22701 cat >> $CONFIG_STATUS <<EOF
22703 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
22704 include/Makefile src/Makefile \
22705 libmath/Makefile libio/Makefile libsupc++/Makefile \
22706 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
22708 cat >> $CONFIG_STATUS <<\EOF
22709 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22710 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22711 case "$ac_file" in
22712 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22713 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22714 *) ac_file_in="${ac_file}.in" ;;
22715 esac
22717 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22719 # Remove last slash and all that follows it. Not all systems have dirname.
22720 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22721 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22722 # The file is in a subdirectory.
22723 test ! -d "$ac_dir" && mkdir "$ac_dir"
22724 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22725 # A "../" for each directory in $ac_dir_suffix.
22726 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22727 else
22728 ac_dir_suffix= ac_dots=
22731 case "$ac_given_srcdir" in
22732 .) srcdir=.
22733 if test -z "$ac_dots"; then top_srcdir=.
22734 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22735 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22736 *) # Relative path.
22737 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22738 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22739 esac
22741 case "$ac_given_INSTALL" in
22742 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22743 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22744 esac
22746 echo creating "$ac_file"
22747 rm -f "$ac_file"
22748 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22749 case "$ac_file" in
22750 *Makefile*) ac_comsub="1i\\
22751 # $configure_input" ;;
22752 *) ac_comsub= ;;
22753 esac
22755 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22756 sed -e "$ac_comsub
22757 s%@configure_input@%$configure_input%g
22758 s%@srcdir@%$srcdir%g
22759 s%@top_srcdir@%$top_srcdir%g
22760 s%@INSTALL@%$INSTALL%g
22761 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22762 fi; done
22763 rm -f conftest.s*
22765 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22766 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22768 # ac_d sets the value in "#define NAME VALUE" lines.
22769 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22770 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22771 ac_dC='\3'
22772 ac_dD='%g'
22773 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22774 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22775 ac_uB='\([ ]\)%\1#\2define\3'
22776 ac_uC=' '
22777 ac_uD='\4%g'
22778 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22779 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22780 ac_eB='$%\1#\2define\3'
22781 ac_eC=' '
22782 ac_eD='%g'
22784 if test "${CONFIG_HEADERS+set}" != set; then
22786 cat >> $CONFIG_STATUS <<EOF
22787 CONFIG_HEADERS="config.h"
22789 cat >> $CONFIG_STATUS <<\EOF
22791 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22792 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22793 case "$ac_file" in
22794 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22795 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22796 *) ac_file_in="${ac_file}.in" ;;
22797 esac
22799 echo creating $ac_file
22801 rm -f conftest.frag conftest.in conftest.out
22802 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22803 cat $ac_file_inputs > conftest.in
22807 # Transform confdefs.h into a sed script conftest.vals that substitutes
22808 # the proper values into config.h.in to produce config.h. And first:
22809 # Protect against being on the right side of a sed subst in config.status.
22810 # Protect against being in an unquoted here document in config.status.
22811 rm -f conftest.vals
22812 cat > conftest.hdr <<\EOF
22813 s/[\\&%]/\\&/g
22814 s%[\\$`]%\\&%g
22815 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22816 s%ac_d%ac_u%gp
22817 s%ac_u%ac_e%gp
22819 sed -n -f conftest.hdr confdefs.h > conftest.vals
22820 rm -f conftest.hdr
22822 # This sed command replaces #undef with comments. This is necessary, for
22823 # example, in the case of _POSIX_SOURCE, which is predefined and required
22824 # on some systems where configure will not decide to define it.
22825 cat >> conftest.vals <<\EOF
22826 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22829 # Break up conftest.vals because some shells have a limit on
22830 # the size of here documents, and old seds have small limits too.
22832 rm -f conftest.tail
22833 while :
22835 ac_lines=`grep -c . conftest.vals`
22836 # grep -c gives empty output for an empty file on some AIX systems.
22837 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22838 # Write a limited-size here document to conftest.frag.
22839 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22840 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22841 echo 'CEOF
22842 sed -f conftest.frag conftest.in > conftest.out
22843 rm -f conftest.in
22844 mv conftest.out conftest.in
22845 ' >> $CONFIG_STATUS
22846 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22847 rm -f conftest.vals
22848 mv conftest.tail conftest.vals
22849 done
22850 rm -f conftest.vals
22852 cat >> $CONFIG_STATUS <<\EOF
22853 rm -f conftest.frag conftest.h
22854 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22855 cat conftest.in >> conftest.h
22856 rm -f conftest.in
22857 if cmp -s $ac_file conftest.h 2>/dev/null; then
22858 echo "$ac_file is unchanged"
22859 rm -f conftest.h
22860 else
22861 # Remove last slash and all that follows it. Not all systems have dirname.
22862 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22863 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22864 # The file is in a subdirectory.
22865 test ! -d "$ac_dir" && mkdir "$ac_dir"
22867 rm -f $ac_file
22868 mv conftest.h $ac_file
22870 fi; done
22874 cat >> $CONFIG_STATUS <<EOF
22875 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
22876 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"
22879 cat >> $CONFIG_STATUS <<\EOF
22880 srcdir=$ac_given_srcdir
22881 while test -n "$ac_sources"; do
22882 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22883 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22885 echo "linking $srcdir/$ac_source to $ac_dest"
22887 if test ! -r $srcdir/$ac_source; then
22888 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
22890 rm -f $ac_dest
22892 # Make relative symlinks.
22893 # Remove last slash and all that follows it. Not all systems have dirname.
22894 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
22895 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
22896 # The dest file is in a subdirectory.
22897 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
22898 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
22899 # A "../" for each directory in $ac_dest_dir_suffix.
22900 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
22901 else
22902 ac_dest_dir_suffix= ac_dots=
22905 case "$srcdir" in
22906 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
22907 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
22908 esac
22910 # Make a symlink if possible; otherwise try a hard link.
22911 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22912 ln $srcdir/$ac_source $ac_dest; then :
22913 else
22914 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
22916 done
22918 cat >> $CONFIG_STATUS <<EOF
22920 srcdir=${srcdir}
22921 host=${host}
22922 target=${target}
22923 with_multisubdir=${with_multisubdir}
22924 ac_configure_args="${multilib_arg} ${ac_configure_args}"
22925 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22926 glibcpp_basedir=${glibcpp_basedir}
22927 CC="${CC}"
22928 CXX="${CXX}"
22931 cat >> $CONFIG_STATUS <<\EOF
22932 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
22933 if test -n "$CONFIG_FILES"; then
22934 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
22935 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
22936 grep '^MULTISUBDIR =' Makefile >> src/Makefile
22937 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
22939 chmod +x mkcheck
22940 chmod +x testsuite_flags
22942 exit 0
22944 chmod +x $CONFIG_STATUS
22945 rm -fr confdefs* $ac_clean_files
22946 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22950 # Sanity checking & User-visible messages.
22951 # Checks down here, otherwise they get scrolled off before
22952 # the user will notice.
22954 # Trying to get more people to read documentation. Possibly remove
22955 # check and warn all the time. There is no "informational" AC_MSG_
22956 # macro, so these are going to be printed even when --quiet/--silent
22957 # is given.
22958 if test ! -f stamp-sanity-warned; then
22959 touch stamp-sanity-warned
22960 echo ""
22961 echo "Please make certain that you read the installation information here:"
22962 echo " faster => ${srcdir}/docs/html/install.html"
22963 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
22964 echo ""
22965 echo "and the configuration information here:"
22966 echo " faster => ${srcdir}/docs/html/configopts.html"
22967 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
22968 echo ""
22969 echo "before proceeding with ${_cv_gnu_make_command}."
22970 echo ""