objc-act.c (build_selector_translation_table): Issue warning...
[official-gcc.git] / libstdc++-v3 / configure
blob146e471f8b8d555a4ac3133ea74d3604a835eef5
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-multilib build hella library versions (default)"
16 ac_help="$ac_help
17 --with-target-subdir=SUBDIR
18 configuring in a subdirectory"
19 ac_help="$ac_help
20 --with-cross-host=HOST configuring with a cross compiler"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --enable-debug extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39 --enable-cstdio enable stdio for target io package.
40 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
42 ac_help="$ac_help
43 --enable-clocale enable model for target locale package.
44 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
46 ac_help="$ac_help
47 --enable-nls use Native Language Support (default)"
48 ac_help="$ac_help
49 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
50 ac_help="$ac_help
51 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
52 ac_help="$ac_help
53 --enable-long-long turns on 'long long' [default=yes]"
54 ac_help="$ac_help
55 --enable-cheaders construct "C" header files for g++ [default=c_std]"
56 ac_help="$ac_help
57 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
58 [default=none]"
59 ac_help="$ac_help
60 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
61 ac_help="$ac_help
62 --enable-libunwind-exceptions force use of libunwind for exceptions"
63 ac_help="$ac_help
64 --enable-concept-checks use Boost-derived template checks [default=no]"
65 ac_help="$ac_help
66 --enable-symvers=style enables symbol versioning of the shared library [default=yes]"
67 ac_help="$ac_help
68 --with-gxx-include-dir the installation directory for include files"
69 ac_help="$ac_help
70 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
75 build=NONE
76 cache_file=./config.cache
77 exec_prefix=NONE
78 host=NONE
79 no_create=
80 nonopt=NONE
81 no_recursion=
82 prefix=NONE
83 program_prefix=NONE
84 program_suffix=NONE
85 program_transform_name=s,x,x,
86 silent=
87 site=
88 srcdir=
89 target=NONE
90 verbose=
91 x_includes=NONE
92 x_libraries=NONE
93 bindir='${exec_prefix}/bin'
94 sbindir='${exec_prefix}/sbin'
95 libexecdir='${exec_prefix}/libexec'
96 datadir='${prefix}/share'
97 sysconfdir='${prefix}/etc'
98 sharedstatedir='${prefix}/com'
99 localstatedir='${prefix}/var'
100 libdir='${exec_prefix}/lib'
101 includedir='${prefix}/include'
102 oldincludedir='/usr/include'
103 infodir='${prefix}/info'
104 mandir='${prefix}/man'
106 # Initialize some other variables.
107 subdirs=
108 MFLAGS= MAKEFLAGS=
109 SHELL=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
111 ac_max_here_lines=12
113 ac_prev=
114 for ac_option
117 # If the previous option needs an argument, assign it.
118 if test -n "$ac_prev"; then
119 eval "$ac_prev=\$ac_option"
120 ac_prev=
121 continue
124 case "$ac_option" in
125 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 *) ac_optarg= ;;
127 esac
129 # Accept the important Cygnus configure options, so we can diagnose typos.
131 case "$ac_option" in
133 -bindir | --bindir | --bindi | --bind | --bin | --bi)
134 ac_prev=bindir ;;
135 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136 bindir="$ac_optarg" ;;
138 -build | --build | --buil | --bui | --bu)
139 ac_prev=build ;;
140 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141 build="$ac_optarg" ;;
143 -cache-file | --cache-file | --cache-fil | --cache-fi \
144 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145 ac_prev=cache_file ;;
146 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148 cache_file="$ac_optarg" ;;
150 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151 ac_prev=datadir ;;
152 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153 | --da=*)
154 datadir="$ac_optarg" ;;
156 -disable-* | --disable-*)
157 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}=no" ;;
165 -enable-* | --enable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 case "$ac_option" in
173 *=*) ;;
174 *) ac_optarg=yes ;;
175 esac
176 eval "enable_${ac_feature}='$ac_optarg'" ;;
178 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180 | --exec | --exe | --ex)
181 ac_prev=exec_prefix ;;
182 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184 | --exec=* | --exe=* | --ex=*)
185 exec_prefix="$ac_optarg" ;;
187 -gas | --gas | --ga | --g)
188 # Obsolete; use --with-gas.
189 with_gas=yes ;;
191 -help | --help | --hel | --he)
192 # Omit some internal or obsolete options to make the list less imposing.
193 # This message is too long to be a string in the A/UX 3.1 sh.
194 cat << EOF
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
197 Configuration:
198 --cache-file=FILE cache test results in FILE
199 --help print this message
200 --no-create do not create output files
201 --quiet, --silent do not print \`checking...' messages
202 --version print the version of autoconf that created configure
203 Directory and file names:
204 --prefix=PREFIX install architecture-independent files in PREFIX
205 [$ac_default_prefix]
206 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
207 [same as prefix]
208 --bindir=DIR user executables in DIR [EPREFIX/bin]
209 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
210 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
211 --datadir=DIR read-only architecture-independent data in DIR
212 [PREFIX/share]
213 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
214 --sharedstatedir=DIR modifiable architecture-independent data in DIR
215 [PREFIX/com]
216 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
217 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
218 --includedir=DIR C header files in DIR [PREFIX/include]
219 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
220 --infodir=DIR info documentation in DIR [PREFIX/info]
221 --mandir=DIR man documentation in DIR [PREFIX/man]
222 --srcdir=DIR find the sources in DIR [configure dir or ..]
223 --program-prefix=PREFIX prepend PREFIX to installed program names
224 --program-suffix=SUFFIX append SUFFIX to installed program names
225 --program-transform-name=PROGRAM
226 run sed PROGRAM on installed program names
228 cat << EOF
229 Host type:
230 --build=BUILD configure for building on BUILD [BUILD=HOST]
231 --host=HOST configure for HOST [guessed]
232 --target=TARGET configure for TARGET [TARGET=HOST]
233 Features and packages:
234 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
235 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
236 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
237 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
238 --x-includes=DIR X include files are in DIR
239 --x-libraries=DIR X library files are in DIR
241 if test -n "$ac_help"; then
242 echo "--enable and --with options recognized:$ac_help"
244 exit 0 ;;
246 -host | --host | --hos | --ho)
247 ac_prev=host ;;
248 -host=* | --host=* | --hos=* | --ho=*)
249 host="$ac_optarg" ;;
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir="$ac_optarg" ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
259 ac_prev=infodir ;;
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir="$ac_optarg" ;;
263 -libdir | --libdir | --libdi | --libd)
264 ac_prev=libdir ;;
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
266 libdir="$ac_optarg" ;;
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir="$ac_optarg" ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir="$ac_optarg" ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285 ac_prev=mandir ;;
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287 mandir="$ac_optarg" ;;
289 -nfp | --nfp | --nf)
290 # Obsolete; use --without-fp.
291 with_fp=no ;;
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294 | --no-cr | --no-c)
295 no_create=yes ;;
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299 no_recursion=yes ;;
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir="$ac_optarg" ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311 ac_prev=prefix ;;
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313 prefix="$ac_optarg" ;;
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix="$ac_optarg" ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix="$ac_optarg" ;;
329 -program-transform-name | --program-transform-name \
330 | --program-transform-nam | --program-transform-na \
331 | --program-transform-n | --program-transform- \
332 | --program-transform | --program-transfor \
333 | --program-transfo | --program-transf \
334 | --program-trans | --program-tran \
335 | --progr-tra | --program-tr | --program-t)
336 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name="$ac_optarg" ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
348 silent=yes ;;
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351 ac_prev=sbindir ;;
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353 | --sbi=* | --sb=*)
354 sbindir="$ac_optarg" ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
359 | --sha | --sh)
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364 | --sha=* | --sh=*)
365 sharedstatedir="$ac_optarg" ;;
367 -site | --site | --sit)
368 ac_prev=site ;;
369 -site=* | --site=* | --sit=*)
370 site="$ac_optarg" ;;
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373 ac_prev=srcdir ;;
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375 srcdir="$ac_optarg" ;;
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir="$ac_optarg" ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
385 ac_prev=target ;;
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target="$ac_optarg" ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
390 verbose=yes ;;
392 -version | --version | --versio | --versi | --vers)
393 echo "configure generated by autoconf version 2.13"
394 exit 0 ;;
396 -with-* | --with-*)
397 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 case "$ac_option" in
404 *=*) ;;
405 *) ac_optarg=yes ;;
406 esac
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* | --without-*)
410 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
418 --x)
419 # Obsolete; use --with-x.
420 with_x=yes ;;
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes="$ac_optarg" ;;
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
446 nonopt="$ac_option"
449 esac
450 done
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
459 # 0 standard input
460 # 1 file creation
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
467 exec 6>/dev/null
468 else
469 exec 6>&1
471 exec 5>./config.log
473 echo "\
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
476 " 1>&5
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
480 ac_configure_args=
481 for ac_arg
483 case "$ac_arg" in
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c) ;;
486 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491 esac
492 done
494 # NLS nuisances.
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 echo > confdefs.h
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=src/ios.cc
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
517 ac_prog=$0
518 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 srcdir=$ac_confdir
521 if test ! -r $srcdir/$ac_unique_file; then
522 srcdir=..
524 else
525 ac_srcdir_defaulted=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530 else
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE; then
539 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540 else
541 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 for ac_site_file in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
547 . "$ac_site_file"
549 done
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
553 . $cache_file
554 else
555 echo "creating cache $cache_file"
556 > $cache_file
559 ac_ext=c
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
566 ac_exeext=
567 ac_objext=o
568 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571 ac_n= ac_c='
572 ' ac_t=' '
573 else
574 ac_n=-n ac_c= ac_t=
576 else
577 ac_n= ac_c='\c' ac_t=
582 # This works around the fact that libtool configuration may change LD
583 # for this particular configuration, but some shells, instead of
584 # keeping the changes in LD private, export them just because LD is
585 # exported. Only used at the end of this file.
586 ORIGINAL_LD_FOR_MULTILIBS=$LD
588 PACKAGE=libstdc++
590 # For libtool versioning info, format is CURRENT:REVISION:AGE
591 libtool_VERSION=5:0:0
595 # Check whether --enable-multilib or --disable-multilib was given.
596 if test "${enable_multilib+set}" = set; then
597 enableval="$enable_multilib"
598 case "${enableval}" in
599 yes) multilib=yes ;;
600 no) multilib=no ;;
601 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
602 esac
603 else
604 multilib=yes
607 # When building with srcdir == objdir, links to the source files will
608 # be created in directories within the target_subdir. We have to
609 # adjust toplevel_srcdir accordingly, so that configure finds
610 # install-sh and other auxiliary files that live in the top-level
611 # source directory.
612 if test "${srcdir}" = "."; then
613 if test -z "${with_target_subdir}"; then
614 toprel=".."
615 else
616 if test "${with_target_subdir}" != "."; then
617 toprel="${with_multisrctop}../.."
618 else
619 toprel="${with_multisrctop}.."
622 else
623 toprel=".."
625 ac_aux_dir=
626 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
627 if test -f $ac_dir/install-sh; then
628 ac_aux_dir=$ac_dir
629 ac_install_sh="$ac_aux_dir/install-sh -c"
630 break
631 elif test -f $ac_dir/install.sh; then
632 ac_aux_dir=$ac_dir
633 ac_install_sh="$ac_aux_dir/install.sh -c"
634 break
636 done
637 if test -z "$ac_aux_dir"; then
638 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
640 ac_config_guess=$ac_aux_dir/config.guess
641 ac_config_sub=$ac_aux_dir/config.sub
642 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
644 toplevel_srcdir=\${top_srcdir}/$toprel
648 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
650 # You will slowly go insane if you do not grok the following fact: when
651 # building v3 as part of the compiler, the top-level /target/ becomes the
652 # library's /host/. `configure' then causes --target to default to --host,
653 # exactly like any other package using autoconf. Therefore, 'target' and
654 # 'host' will always be the same. This makes sense both for native and
655 # cross compilers, just think about it for a little while. :-)
657 # Also, if v3 is being configured as part of a cross compiler, the top-level
658 # configure script will pass the "real" host as $with_cross_host.
660 # AC 2.5x sets target_alias iff the user specified --target, but we use it
661 # everywhere, so we set it here just to be sure. In AC 2.13
662 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
664 # Do some error checking and defaulting for the host and target type.
665 # The inputs are:
666 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
668 # The rules are:
669 # 1. You are not allowed to specify --host, --target, and nonopt at the
670 # same time.
671 # 2. Host defaults to nonopt.
672 # 3. If nonopt is not specified, then host defaults to the current host,
673 # as determined by config.guess.
674 # 4. Target and build default to nonopt.
675 # 5. If nonopt is not specified, then target and build default to host.
677 # The aliases save the names the user supplied, while $host etc.
678 # will get canonicalized.
679 case $host---$target---$nonopt in
680 NONE---*---* | *---NONE---* | *---*---NONE) ;;
681 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
682 esac
685 # Make sure we can run config.sub.
686 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
687 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
690 echo $ac_n "checking host system type""... $ac_c" 1>&6
691 echo "configure:692: checking host system type" >&5
693 host_alias=$host
694 case "$host_alias" in
695 NONE)
696 case $nonopt in
697 NONE)
698 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
699 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
700 fi ;;
701 *) host_alias=$nonopt ;;
702 esac ;;
703 esac
705 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
706 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
709 echo "$ac_t""$host" 1>&6
711 echo $ac_n "checking target system type""... $ac_c" 1>&6
712 echo "configure:713: checking target system type" >&5
714 target_alias=$target
715 case "$target_alias" in
716 NONE)
717 case $nonopt in
718 NONE) target_alias=$host_alias ;;
719 *) target_alias=$nonopt ;;
720 esac ;;
721 esac
723 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
724 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
725 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
726 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
727 echo "$ac_t""$target" 1>&6
729 echo $ac_n "checking build system type""... $ac_c" 1>&6
730 echo "configure:731: checking build system type" >&5
732 build_alias=$build
733 case "$build_alias" in
734 NONE)
735 case $nonopt in
736 NONE) build_alias=$host_alias ;;
737 *) build_alias=$nonopt ;;
738 esac ;;
739 esac
741 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
742 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
743 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
744 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
745 echo "$ac_t""$build" 1>&6
747 test "$host_alias" != "$target_alias" &&
748 test "$program_prefix$program_suffix$program_transform_name" = \
749 NONENONEs,x,x, &&
750 program_prefix=${target_alias}-
752 target_alias=${target_alias-$target}
755 # Runs configure.target, finds CC, CXX and assorted other critical bits.
756 # Must run this before the GLIBCPP_ENABLE_* macros below.
757 if test $host != $build; then
758 ac_tool_prefix=${host_alias}-
759 else
760 ac_tool_prefix=
763 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
764 echo "configure:765: checking for Cygwin environment" >&5
765 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
766 echo $ac_n "(cached) $ac_c" 1>&6
767 else
768 cat > conftest.$ac_ext <<EOF
769 #line 770 "configure"
770 #include "confdefs.h"
772 int main() {
774 #ifndef __CYGWIN__
775 #define __CYGWIN__ __CYGWIN32__
776 #endif
777 return __CYGWIN__;
778 ; return 0; }
780 if { (eval echo configure:781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
781 rm -rf conftest*
782 ac_cv_cygwin=yes
783 else
784 echo "configure: failed program was:" >&5
785 cat conftest.$ac_ext >&5
786 rm -rf conftest*
787 ac_cv_cygwin=no
789 rm -f conftest*
790 rm -f conftest*
793 echo "$ac_t""$ac_cv_cygwin" 1>&6
794 CYGWIN=
795 test "$ac_cv_cygwin" = yes && CYGWIN=yes
796 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
797 echo "configure:798: checking for mingw32 environment" >&5
798 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
800 else
801 cat > conftest.$ac_ext <<EOF
802 #line 803 "configure"
803 #include "confdefs.h"
805 int main() {
806 return __MINGW32__;
807 ; return 0; }
809 if { (eval echo configure:810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
810 rm -rf conftest*
811 ac_cv_mingw32=yes
812 else
813 echo "configure: failed program was:" >&5
814 cat conftest.$ac_ext >&5
815 rm -rf conftest*
816 ac_cv_mingw32=no
818 rm -f conftest*
819 rm -f conftest*
822 echo "$ac_t""$ac_cv_mingw32" 1>&6
823 MINGW32=
824 test "$ac_cv_mingw32" = yes && MINGW32=yes
827 #possibly test for the presence of the compiler sources here?
829 # Export build and source directories.
830 # These need to be absolute paths, yet at the same time need to
831 # canonicalize only relative paths, because then amd will not unmount
832 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
833 glibcpp_builddir=`${PWDCMD-pwd}`
834 case $srcdir in
835 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
836 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
837 esac
843 for ac_prog in gawk mawk nawk awk
845 # Extract the first word of "$ac_prog", so it can be a program name with args.
846 set dummy $ac_prog; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
851 else
852 if test -n "$AWK"; then
853 ac_cv_prog_AWK="$AWK" # Let the user override the test.
854 else
855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
856 ac_dummy="$PATH"
857 for ac_dir in $ac_dummy; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word; then
860 ac_cv_prog_AWK="$ac_prog"
861 break
863 done
864 IFS="$ac_save_ifs"
867 AWK="$ac_cv_prog_AWK"
868 if test -n "$AWK"; then
869 echo "$ac_t""$AWK" 1>&6
870 else
871 echo "$ac_t""no" 1>&6
874 test -n "$AWK" && break
875 done
877 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also
878 # be 'cp -p' if linking isn't available. Uncomment the next line to
879 # force a particular method.
880 #ac_cv_prog_LN_S='cp -p'
881 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
882 echo "configure:883: checking whether ln -s works" >&5
883 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
885 else
886 rm -f conftestdata
887 if ln -s X conftestdata 2>/dev/null
888 then
889 rm -f conftestdata
890 ac_cv_prog_LN_S="ln -s"
891 else
892 ac_cv_prog_LN_S=ln
895 LN_S="$ac_cv_prog_LN_S"
896 if test "$ac_cv_prog_LN_S" = "ln -s"; then
897 echo "$ac_t""yes" 1>&6
898 else
899 echo "$ac_t""no" 1>&6
903 # We use these options to decide which functions to include.
904 # Check whether --with-target-subdir or --without-target-subdir was given.
905 if test "${with_target_subdir+set}" = set; then
906 withval="$with_target_subdir"
910 # Check whether --with-cross-host or --without-cross-host was given.
911 if test "${with_cross_host+set}" = set; then
912 withval="$with_cross_host"
917 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
920 # Never versions of autoconf add an underscore to these functions.
921 # Prevent future problems ...
927 # AC_PROG_CC
928 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
929 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
930 # are probably using a cross compiler, which will not be able to fully
931 # link an executable. This is addressed in later versions of autoconf.
936 # Extract the first word of "gcc", so it can be a program name with args.
937 set dummy gcc; ac_word=$2
938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
939 echo "configure:940: checking for $ac_word" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&6
942 else
943 if test -n "$CC"; then
944 ac_cv_prog_CC="$CC" # Let the user override the test.
945 else
946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
947 ac_dummy="$PATH"
948 for ac_dir in $ac_dummy; do
949 test -z "$ac_dir" && ac_dir=.
950 if test -f $ac_dir/$ac_word; then
951 ac_cv_prog_CC="gcc"
952 break
954 done
955 IFS="$ac_save_ifs"
958 CC="$ac_cv_prog_CC"
959 if test -n "$CC"; then
960 echo "$ac_t""$CC" 1>&6
961 else
962 echo "$ac_t""no" 1>&6
965 if test -z "$CC"; then
966 # Extract the first word of "cc", so it can be a program name with args.
967 set dummy cc; ac_word=$2
968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
969 echo "configure:970: checking for $ac_word" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
972 else
973 if test -n "$CC"; then
974 ac_cv_prog_CC="$CC" # Let the user override the test.
975 else
976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
977 ac_prog_rejected=no
978 ac_dummy="$PATH"
979 for ac_dir in $ac_dummy; do
980 test -z "$ac_dir" && ac_dir=.
981 if test -f $ac_dir/$ac_word; then
982 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
983 ac_prog_rejected=yes
984 continue
986 ac_cv_prog_CC="cc"
987 break
989 done
990 IFS="$ac_save_ifs"
991 if test $ac_prog_rejected = yes; then
992 # We found a bogon in the path, so make sure we never use it.
993 set dummy $ac_cv_prog_CC
994 shift
995 if test $# -gt 0; then
996 # We chose a different compiler from the bogus one.
997 # However, it has the same basename, so the bogon will be chosen
998 # first if we set CC to just the basename; use the full file name.
999 shift
1000 set dummy "$ac_dir/$ac_word" "$@"
1001 shift
1002 ac_cv_prog_CC="$@"
1007 CC="$ac_cv_prog_CC"
1008 if test -n "$CC"; then
1009 echo "$ac_t""$CC" 1>&6
1010 else
1011 echo "$ac_t""no" 1>&6
1014 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1017 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1018 echo "configure:1019: checking whether we are using GNU C" >&5
1019 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1021 else
1022 cat > conftest.c <<EOF
1023 #ifdef __GNUC__
1024 yes;
1025 #endif
1027 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1028 ac_cv_prog_gcc=yes
1029 else
1030 ac_cv_prog_gcc=no
1034 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1036 if test $ac_cv_prog_gcc = yes; then
1037 GCC=yes
1038 ac_test_CFLAGS="${CFLAGS+set}"
1039 ac_save_CFLAGS="$CFLAGS"
1040 CFLAGS=
1041 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1042 echo "configure:1043: checking whether ${CC-cc} accepts -g" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1045 else
1046 echo 'void f(){}' > conftest.c
1047 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1048 ac_cv_prog_cc_g=yes
1049 else
1050 ac_cv_prog_cc_g=no
1052 rm -f conftest*
1056 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1057 if test "$ac_test_CFLAGS" = set; then
1058 CFLAGS="$ac_save_CFLAGS"
1059 elif test $ac_cv_prog_cc_g = yes; then
1060 CFLAGS="-g -O2"
1061 else
1062 CFLAGS="-O2"
1064 else
1065 GCC=
1066 test "${CFLAGS+set}" = set || CFLAGS="-g"
1070 # Likewise for AC_PROG_CXX. We can't just call it directly because g++
1071 # will try to link in libstdc++.
1075 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1076 # flags that come in CXX while configuring libstdc++. They're different
1077 # from those used for all other target libraries. If CXX is set in
1078 # the environment, respect that here.
1079 glibcpp_CXX=$CXX
1080 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1082 # Extract the first word of "$ac_prog", so it can be a program name with args.
1083 set dummy $ac_prog; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1088 else
1089 if test -n "$glibcpp_CXX"; then
1090 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1091 else
1092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1093 ac_dummy="$PATH"
1094 for ac_dir in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir=.
1096 if test -f $ac_dir/$ac_word; then
1097 ac_cv_prog_glibcpp_CXX="$ac_prog"
1098 break
1100 done
1101 IFS="$ac_save_ifs"
1104 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1105 if test -n "$glibcpp_CXX"; then
1106 echo "$ac_t""$glibcpp_CXX" 1>&6
1107 else
1108 echo "$ac_t""no" 1>&6
1111 test -n "$glibcpp_CXX" && break
1112 done
1113 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1116 CXX=$glibcpp_CXX
1117 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1119 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether we are using GNU C++" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1123 else
1124 cat > conftest.C <<EOF
1125 #ifdef __GNUC__
1126 yes;
1127 #endif
1129 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1130 ac_cv_prog_gxx=yes
1131 else
1132 ac_cv_prog_gxx=no
1136 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1138 if test $ac_cv_prog_gxx = yes; then
1139 GXX=yes
1140 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1141 ac_save_CXXFLAGS="$CXXFLAGS"
1142 CXXFLAGS=
1143 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether ${CXX-g++} accepts -g" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148 echo 'void f(){}' > conftest.cc
1149 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1150 ac_cv_prog_cxx_g=yes
1151 else
1152 ac_cv_prog_cxx_g=no
1154 rm -f conftest*
1158 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1159 if test "$ac_test_CXXFLAGS" = set; then
1160 CXXFLAGS="$ac_save_CXXFLAGS"
1161 elif test $ac_cv_prog_cxx_g = yes; then
1162 CXXFLAGS="-g -O2"
1163 else
1164 CXXFLAGS="-O2"
1166 else
1167 GXX=
1168 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1172 # For directory versioning (e.g., headers) and other variables.
1173 echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1174 echo "configure:1175: checking for GCC version number" >&5
1175 gcc_version=`$glibcpp_CXX -dumpversion`
1176 echo "$ac_t""$gcc_version" 1>&6
1178 # For some reason, gettext needs this.
1180 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1181 echo "configure:1182: checking for strerror in -lcposix" >&5
1182 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1185 else
1186 ac_save_LIBS="$LIBS"
1187 LIBS="-lcposix $LIBS"
1188 cat > conftest.$ac_ext <<EOF
1189 #line 1190 "configure"
1190 #include "confdefs.h"
1191 /* Override any gcc2 internal prototype to avoid an error. */
1192 /* We use char because int might match the return type of a gcc2
1193 builtin and then its argument prototype would still apply. */
1194 char strerror();
1196 int main() {
1197 strerror()
1198 ; return 0; }
1200 if { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1201 rm -rf conftest*
1202 eval "ac_cv_lib_$ac_lib_var=yes"
1203 else
1204 echo "configure: failed program was:" >&5
1205 cat conftest.$ac_ext >&5
1206 rm -rf conftest*
1207 eval "ac_cv_lib_$ac_lib_var=no"
1209 rm -f conftest*
1210 LIBS="$ac_save_LIBS"
1213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1214 echo "$ac_t""yes" 1>&6
1215 LIBS="$LIBS -lcposix"
1216 else
1217 echo "$ac_t""no" 1>&6
1223 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1224 set dummy ${ac_tool_prefix}as; ac_word=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1229 else
1230 if test -n "$AS"; then
1231 ac_cv_prog_AS="$AS" # Let the user override the test.
1232 else
1233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1234 ac_dummy="$PATH"
1235 for ac_dir in $ac_dummy; do
1236 test -z "$ac_dir" && ac_dir=.
1237 if test -f $ac_dir/$ac_word; then
1238 ac_cv_prog_AS="${ac_tool_prefix}as"
1239 break
1241 done
1242 IFS="$ac_save_ifs"
1243 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1246 AS="$ac_cv_prog_AS"
1247 if test -n "$AS"; then
1248 echo "$ac_t""$AS" 1>&6
1249 else
1250 echo "$ac_t""no" 1>&6
1255 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1256 set dummy ${ac_tool_prefix}ar; ac_word=$2
1257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1258 echo "configure:1259: checking for $ac_word" >&5
1259 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1261 else
1262 if test -n "$AR"; then
1263 ac_cv_prog_AR="$AR" # Let the user override the test.
1264 else
1265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1266 ac_dummy="$PATH"
1267 for ac_dir in $ac_dummy; do
1268 test -z "$ac_dir" && ac_dir=.
1269 if test -f $ac_dir/$ac_word; then
1270 ac_cv_prog_AR="${ac_tool_prefix}ar"
1271 break
1273 done
1274 IFS="$ac_save_ifs"
1275 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1278 AR="$ac_cv_prog_AR"
1279 if test -n "$AR"; then
1280 echo "$ac_t""$AR" 1>&6
1281 else
1282 echo "$ac_t""no" 1>&6
1287 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1288 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1290 echo "configure:1291: checking for $ac_word" >&5
1291 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1293 else
1294 if test -n "$RANLIB"; then
1295 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1296 else
1297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1298 ac_dummy="$PATH"
1299 for ac_dir in $ac_dummy; do
1300 test -z "$ac_dir" && ac_dir=.
1301 if test -f $ac_dir/$ac_word; then
1302 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1303 break
1305 done
1306 IFS="$ac_save_ifs"
1309 RANLIB="$ac_cv_prog_RANLIB"
1310 if test -n "$RANLIB"; then
1311 echo "$ac_t""$RANLIB" 1>&6
1312 else
1313 echo "$ac_t""no" 1>&6
1317 if test -z "$ac_cv_prog_RANLIB"; then
1318 if test -n "$ac_tool_prefix"; then
1319 # Extract the first word of "ranlib", so it can be a program name with args.
1320 set dummy ranlib; ac_word=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326 if test -n "$RANLIB"; then
1327 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1328 else
1329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1330 ac_dummy="$PATH"
1331 for ac_dir in $ac_dummy; do
1332 test -z "$ac_dir" && ac_dir=.
1333 if test -f $ac_dir/$ac_word; then
1334 ac_cv_prog_RANLIB="ranlib"
1335 break
1337 done
1338 IFS="$ac_save_ifs"
1339 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1342 RANLIB="$ac_cv_prog_RANLIB"
1343 if test -n "$RANLIB"; then
1344 echo "$ac_t""$RANLIB" 1>&6
1345 else
1346 echo "$ac_t""no" 1>&6
1349 else
1350 RANLIB="ranlib-not-found-in-path-error"
1354 # Find a good install program. We prefer a C program (faster),
1355 # so one script is as good as another. But avoid the broken or
1356 # incompatible versions:
1357 # SysV /etc/install, /usr/sbin/install
1358 # SunOS /usr/etc/install
1359 # IRIX /sbin/install
1360 # AIX /bin/install
1361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1364 # ./install, which can be erroneously created by make from ./install.sh.
1365 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1366 echo "configure:1367: checking for a BSD compatible install" >&5
1367 if test -z "$INSTALL"; then
1368 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1372 for ac_dir in $PATH; do
1373 # Account for people who put trailing slashes in PATH elements.
1374 case "$ac_dir/" in
1375 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1377 # OSF1 and SCO ODT 3.0 have their own names for install.
1378 # Don't use installbsd from OSF since it installs stuff as root
1379 # by default.
1380 for ac_prog in ginstall scoinst install; do
1381 if test -f $ac_dir/$ac_prog; then
1382 if test $ac_prog = install &&
1383 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1384 # AIX install. It has an incompatible calling convention.
1386 else
1387 ac_cv_path_install="$ac_dir/$ac_prog -c"
1388 break 2
1391 done
1393 esac
1394 done
1395 IFS="$ac_save_IFS"
1398 if test "${ac_cv_path_install+set}" = set; then
1399 INSTALL="$ac_cv_path_install"
1400 else
1401 # As a last resort, use the slow shell script. We don't cache a
1402 # path for INSTALL within a source directory, because that will
1403 # break other packages using the cache if that directory is
1404 # removed, or if the path is relative.
1405 INSTALL="$ac_install_sh"
1408 echo "$ac_t""$INSTALL" 1>&6
1410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1411 # It thinks the first close brace ends the variable substitution.
1412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1419 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether to enable maintainer-specific portions of Makefiles" >&5
1421 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1422 if test "${enable_maintainer_mode+set}" = set; then
1423 enableval="$enable_maintainer_mode"
1424 USE_MAINTAINER_MODE=$enableval
1425 else
1426 USE_MAINTAINER_MODE=no
1429 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1432 if test $USE_MAINTAINER_MODE = yes; then
1433 MAINTAINER_MODE_TRUE=
1434 MAINTAINER_MODE_FALSE='#'
1435 else
1436 MAINTAINER_MODE_TRUE='#'
1437 MAINTAINER_MODE_FALSE=
1439 MAINT=$MAINTAINER_MODE_TRUE
1443 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1444 # at least currently, we never actually build a program, so we never
1445 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1446 # fails, because we are probably configuring with a cross compiler
1447 # which can't create executables. So we include AC_EXEEXT to keep
1448 # automake happy, but we don't execute it, since we don't care about
1449 # the result.
1450 if false; then
1451 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1452 # to nothing, so nothing would remain between `then' and `fi' if it
1453 # were not for the `:' below.
1457 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1458 echo "configure:1459: checking for executable suffix" >&5
1459 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1461 else
1462 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1463 ac_cv_exeext=.exe
1464 else
1465 rm -f conftest*
1466 echo 'int main () { return 0; }' > conftest.$ac_ext
1467 ac_cv_exeext=
1468 if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1469 for file in conftest.*; do
1470 case $file in
1471 *.c | *.o | *.obj) ;;
1472 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1473 esac
1474 done
1475 else
1476 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1478 rm -f conftest*
1479 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1483 EXEEXT=""
1484 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1485 echo "$ac_t""${ac_cv_exeext}" 1>&6
1486 ac_exeext=$EXEEXT
1490 case ${glibcpp_basedir} in
1491 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1492 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1493 esac
1495 # Find platform-specific directories containing configuration info. In
1496 # addition to possibly modifying the same flags, it also sets up symlinks.
1498 . ${glibcpp_basedir}/configure.target
1499 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1500 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1504 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1505 echo "configure:1506: checking whether build environment is sane" >&5
1506 # Just in case
1507 sleep 1
1508 echo timestamp > conftestfile
1509 # Do `set' in a subshell so we don't clobber the current shell's
1510 # arguments. Must try -L first in case configure is actually a
1511 # symlink; some systems play weird games with the mod time of symlinks
1512 # (eg FreeBSD returns the mod time of the symlink's containing
1513 # directory).
1514 if (
1515 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1516 if test "$*" = "X"; then
1517 # -L didn't work.
1518 set X `ls -t $srcdir/configure conftestfile`
1520 if test "$*" != "X $srcdir/configure conftestfile" \
1521 && test "$*" != "X conftestfile $srcdir/configure"; then
1523 # If neither matched, then we have a broken ls. This can happen
1524 # if, for instance, CONFIG_SHELL is bash and it inherits a
1525 # broken ls alias from the environment. This has actually
1526 # happened. Such a system could not be considered "sane".
1527 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1528 alias in your environment" 1>&2; exit 1; }
1531 test "$2" = conftestfile
1533 then
1534 # Ok.
1536 else
1537 { echo "configure: error: newly created file is older than distributed files!
1538 Check your system clock" 1>&2; exit 1; }
1540 rm -f conftest*
1541 echo "$ac_t""yes" 1>&6
1542 if test "$program_transform_name" = s,x,x,; then
1543 program_transform_name=
1544 else
1545 # Double any \ or $. echo might interpret backslashes.
1546 cat <<\EOF_SED > conftestsed
1547 s,\\,\\\\,g; s,\$,$$,g
1548 EOF_SED
1549 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1550 rm -f conftestsed
1552 test "$program_prefix" != NONE &&
1553 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1554 # Use a double $ so make ignores it.
1555 test "$program_suffix" != NONE &&
1556 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1558 # sed with no file args requires a program.
1559 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1561 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1562 echo "configure:1563: checking whether ${MAKE-make} sets \${MAKE}" >&5
1563 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1564 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1566 else
1567 cat > conftestmake <<\EOF
1568 all:
1569 @echo 'ac_maketemp="${MAKE}"'
1571 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1572 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1573 if test -n "$ac_maketemp"; then
1574 eval ac_cv_prog_make_${ac_make}_set=yes
1575 else
1576 eval ac_cv_prog_make_${ac_make}_set=no
1578 rm -f conftestmake
1580 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1581 echo "$ac_t""yes" 1>&6
1582 SET_MAKE=
1583 else
1584 echo "$ac_t""no" 1>&6
1585 SET_MAKE="MAKE=${MAKE-make}"
1589 PACKAGE=$PACKAGE
1591 VERSION=$gcc_version
1593 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1594 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1596 cat >> confdefs.h <<EOF
1597 #define PACKAGE "$PACKAGE"
1600 cat >> confdefs.h <<EOF
1601 #define VERSION "$VERSION"
1606 missing_dir=`cd $ac_aux_dir && pwd`
1607 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1608 echo "configure:1609: checking for working aclocal" >&5
1609 # Run test in a subshell; some versions of sh will print an error if
1610 # an executable is not found, even if stderr is redirected.
1611 # Redirect stdin to placate older versions of autoconf. Sigh.
1612 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1613 ACLOCAL=aclocal
1614 echo "$ac_t""found" 1>&6
1615 else
1616 ACLOCAL="$missing_dir/missing aclocal"
1617 echo "$ac_t""missing" 1>&6
1620 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1621 echo "configure:1622: checking for working autoconf" >&5
1622 # Run test in a subshell; some versions of sh will print an error if
1623 # an executable is not found, even if stderr is redirected.
1624 # Redirect stdin to placate older versions of autoconf. Sigh.
1625 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1626 AUTOCONF=autoconf
1627 echo "$ac_t""found" 1>&6
1628 else
1629 AUTOCONF="$missing_dir/missing autoconf"
1630 echo "$ac_t""missing" 1>&6
1633 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1634 echo "configure:1635: checking for working automake" >&5
1635 # Run test in a subshell; some versions of sh will print an error if
1636 # an executable is not found, even if stderr is redirected.
1637 # Redirect stdin to placate older versions of autoconf. Sigh.
1638 if (automake --version) < /dev/null > /dev/null 2>&1; then
1639 AUTOMAKE=automake
1640 echo "$ac_t""found" 1>&6
1641 else
1642 AUTOMAKE="$missing_dir/missing automake"
1643 echo "$ac_t""missing" 1>&6
1646 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1647 echo "configure:1648: checking for working autoheader" >&5
1648 # Run test in a subshell; some versions of sh will print an error if
1649 # an executable is not found, even if stderr is redirected.
1650 # Redirect stdin to placate older versions of autoconf. Sigh.
1651 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1652 AUTOHEADER=autoheader
1653 echo "$ac_t""found" 1>&6
1654 else
1655 AUTOHEADER="$missing_dir/missing autoheader"
1656 echo "$ac_t""missing" 1>&6
1659 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1660 echo "configure:1661: checking for working makeinfo" >&5
1661 # Run test in a subshell; some versions of sh will print an error if
1662 # an executable is not found, even if stderr is redirected.
1663 # Redirect stdin to placate older versions of autoconf. Sigh.
1664 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1665 MAKEINFO=makeinfo
1666 echo "$ac_t""found" 1>&6
1667 else
1668 MAKEINFO="$missing_dir/missing makeinfo"
1669 echo "$ac_t""missing" 1>&6
1678 # Check whether --enable-shared or --disable-shared was given.
1679 if test "${enable_shared+set}" = set; then
1680 enableval="$enable_shared"
1681 p=${PACKAGE-default}
1682 case $enableval in
1683 yes) enable_shared=yes ;;
1684 no) enable_shared=no ;;
1686 enable_shared=no
1687 # Look at the argument we got. We use all the common list separators.
1688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1689 for pkg in $enableval; do
1690 if test "X$pkg" = "X$p"; then
1691 enable_shared=yes
1693 done
1694 IFS="$ac_save_ifs"
1696 esac
1697 else
1698 enable_shared=yes
1701 # Check whether --enable-static or --disable-static was given.
1702 if test "${enable_static+set}" = set; then
1703 enableval="$enable_static"
1704 p=${PACKAGE-default}
1705 case $enableval in
1706 yes) enable_static=yes ;;
1707 no) enable_static=no ;;
1709 enable_static=no
1710 # Look at the argument we got. We use all the common list separators.
1711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1712 for pkg in $enableval; do
1713 if test "X$pkg" = "X$p"; then
1714 enable_static=yes
1716 done
1717 IFS="$ac_save_ifs"
1719 esac
1720 else
1721 enable_static=yes
1724 # Check whether --enable-fast-install or --disable-fast-install was given.
1725 if test "${enable_fast_install+set}" = set; then
1726 enableval="$enable_fast_install"
1727 p=${PACKAGE-default}
1728 case $enableval in
1729 yes) enable_fast_install=yes ;;
1730 no) enable_fast_install=no ;;
1732 enable_fast_install=no
1733 # Look at the argument we got. We use all the common list separators.
1734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1735 for pkg in $enableval; do
1736 if test "X$pkg" = "X$p"; then
1737 enable_fast_install=yes
1739 done
1740 IFS="$ac_save_ifs"
1742 esac
1743 else
1744 enable_fast_install=yes
1747 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1748 if test "${with_gnu_ld+set}" = set; then
1749 withval="$with_gnu_ld"
1750 test "$withval" = no || with_gnu_ld=yes
1751 else
1752 with_gnu_ld=no
1755 ac_prog=ld
1756 if test "$GCC" = yes; then
1757 # Check if gcc -print-prog-name=ld gives a path.
1758 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1759 echo "configure:1760: checking for ld used by GCC" >&5
1760 case $host in
1761 *-*-mingw*)
1762 # gcc leaves a trailing carriage return which upsets mingw
1763 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1765 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1766 esac
1767 case $ac_prog in
1768 # Accept absolute paths.
1769 [\\/]* | [A-Za-z]:[\\/]*)
1770 re_direlt='/[^/][^/]*/\.\./'
1771 # Canonicalize the path of ld
1772 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1773 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1774 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1775 done
1776 test -z "$LD" && LD="$ac_prog"
1779 # If it fails, then pretend we aren't using GCC.
1780 ac_prog=ld
1783 # If it is relative, then search for the first ld in PATH.
1784 with_gnu_ld=unknown
1786 esac
1787 elif test "$with_gnu_ld" = yes; then
1788 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1789 echo "configure:1790: checking for GNU ld" >&5
1790 else
1791 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1792 echo "configure:1793: checking for non-GNU ld" >&5
1794 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1796 else
1797 if test -z "$LD"; then
1798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1799 for ac_dir in $PATH; do
1800 test -z "$ac_dir" && ac_dir=.
1801 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1802 lt_cv_path_LD="$ac_dir/$ac_prog"
1803 # Check to see if the program is GNU ld. I'd rather use --version,
1804 # but apparently some GNU ld's only accept -v.
1805 # Break only if it was the GNU/non-GNU ld that we prefer.
1806 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1807 test "$with_gnu_ld" != no && break
1808 else
1809 test "$with_gnu_ld" != yes && break
1812 done
1813 IFS="$ac_save_ifs"
1814 else
1815 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1819 LD="$lt_cv_path_LD"
1820 if test -n "$LD"; then
1821 echo "$ac_t""$LD" 1>&6
1822 else
1823 echo "$ac_t""no" 1>&6
1825 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1826 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1827 echo "configure:1828: checking if the linker ($LD) is GNU ld" >&5
1828 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1830 else
1831 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1832 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1833 lt_cv_prog_gnu_ld=yes
1834 else
1835 lt_cv_prog_gnu_ld=no
1839 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1840 with_gnu_ld=$lt_cv_prog_gnu_ld
1843 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1844 echo "configure:1845: checking for $LD option to reload object files" >&5
1845 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1847 else
1848 lt_cv_ld_reload_flag='-r'
1851 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1852 reload_flag=$lt_cv_ld_reload_flag
1853 test -n "$reload_flag" && reload_flag=" $reload_flag"
1855 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1856 echo "configure:1857: checking for BSD-compatible nm" >&5
1857 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1859 else
1860 if test -n "$NM"; then
1861 # Let the user override the test.
1862 lt_cv_path_NM="$NM"
1863 else
1864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1865 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1866 test -z "$ac_dir" && ac_dir=.
1867 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1868 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1869 # Check to see if the nm accepts a BSD-compat flag.
1870 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1871 # nm: unknown option "B" ignored
1872 # Tru64's nm complains that /dev/null is an invalid object file
1873 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1874 lt_cv_path_NM="$tmp_nm -B"
1875 break
1876 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1877 lt_cv_path_NM="$tmp_nm -p"
1878 break
1879 else
1880 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1881 continue # so that we can try to find one that supports BSD flags
1884 done
1885 IFS="$ac_save_ifs"
1886 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1890 NM="$lt_cv_path_NM"
1891 echo "$ac_t""$NM" 1>&6
1893 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1894 echo "configure:1895: checking how to recognise dependant libraries" >&5
1895 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1897 else
1898 lt_cv_file_magic_cmd='$MAGIC_CMD'
1899 lt_cv_file_magic_test_file=
1900 lt_cv_deplibs_check_method='unknown'
1901 # Need to set the preceding variable on all platforms that support
1902 # interlibrary dependencies.
1903 # 'none' -- dependencies not supported.
1904 # `unknown' -- same as none, but documents that we really don't know.
1905 # 'pass_all' -- all dependencies passed with no checks.
1906 # 'test_compile' -- check by making test program.
1907 # 'file_magic [regex]' -- check by looking for files in library path
1908 # which responds to the $file_magic_cmd with a given egrep regex.
1909 # If you have `file' or equivalent on your system and you're not sure
1910 # whether `pass_all' will *always* work, you probably want this one.
1912 case $host_os in
1913 aix*)
1914 lt_cv_deplibs_check_method=pass_all
1917 beos*)
1918 lt_cv_deplibs_check_method=pass_all
1921 bsdi4*)
1922 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1923 lt_cv_file_magic_cmd='/usr/bin/file -L'
1924 lt_cv_file_magic_test_file=/shlib/libc.so
1927 cygwin* | mingw* |pw32*)
1928 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1929 lt_cv_file_magic_cmd='$OBJDUMP -f'
1932 darwin* | rhapsody*)
1933 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1934 lt_cv_file_magic_cmd='/usr/bin/file -L'
1935 case "$host_os" in
1936 rhapsody* | darwin1.012)
1937 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1939 *) # Darwin 1.3 on
1940 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1942 esac
1945 freebsd* )
1946 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1947 case $host_cpu in
1948 i*86 )
1949 # Not sure whether the presence of OpenBSD here was a mistake.
1950 # Let's accept both of them until this is cleared up.
1951 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1952 lt_cv_file_magic_cmd=/usr/bin/file
1953 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1955 esac
1956 else
1957 lt_cv_deplibs_check_method=pass_all
1961 gnu*)
1962 lt_cv_deplibs_check_method=pass_all
1965 hpux10.20*|hpux11*)
1966 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1967 lt_cv_file_magic_cmd=/usr/bin/file
1968 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1971 irix5* | irix6*)
1972 case $host_os in
1973 irix5*)
1974 # this will be overridden with pass_all, but let us keep it just in case
1975 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1978 case $LD in
1979 *-32|*"-32 ") libmagic=32-bit;;
1980 *-n32|*"-n32 ") libmagic=N32;;
1981 *-64|*"-64 ") libmagic=64-bit;;
1982 *) libmagic=never-match;;
1983 esac
1984 # this will be overridden with pass_all, but let us keep it just in case
1985 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1987 esac
1988 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1989 lt_cv_deplibs_check_method=pass_all
1992 # This must be Linux ELF.
1993 linux-gnu*)
1994 case $host_cpu in
1995 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1996 lt_cv_deplibs_check_method=pass_all ;;
1998 # glibc up to 2.1.1 does not perform some relocations on ARM
1999 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2000 esac
2001 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2004 netbsd*)
2005 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2006 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2007 else
2008 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2012 newsos6)
2013 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2014 lt_cv_file_magic_cmd=/usr/bin/file
2015 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2018 osf3* | osf4* | osf5*)
2019 # this will be overridden with pass_all, but let us keep it just in case
2020 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2021 lt_cv_file_magic_test_file=/shlib/libc.so
2022 lt_cv_deplibs_check_method=pass_all
2025 sco3.2v5*)
2026 lt_cv_deplibs_check_method=pass_all
2029 solaris*)
2030 lt_cv_deplibs_check_method=pass_all
2031 lt_cv_file_magic_test_file=/lib/libc.so
2034 sysv5uw[78]* | sysv4*uw2*)
2035 lt_cv_deplibs_check_method=pass_all
2038 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2039 case $host_vendor in
2040 ncr)
2041 lt_cv_deplibs_check_method=pass_all
2043 motorola)
2044 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]'
2045 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2047 esac
2049 esac
2053 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2054 file_magic_cmd=$lt_cv_file_magic_cmd
2055 deplibs_check_method=$lt_cv_deplibs_check_method
2057 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2058 echo "configure:2059: checking for object suffix" >&5
2059 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2061 else
2062 rm -f conftest*
2063 echo 'int i = 1;' > conftest.$ac_ext
2064 if { (eval echo configure:2065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2065 for ac_file in conftest.*; do
2066 case $ac_file in
2067 *.c) ;;
2068 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2069 esac
2070 done
2071 else
2072 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2074 rm -f conftest*
2077 echo "$ac_t""$ac_cv_objext" 1>&6
2078 OBJEXT=$ac_cv_objext
2079 ac_objext=$ac_cv_objext
2081 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2083 # Only perform the check for file, if the check method requires it
2084 case $deplibs_check_method in
2085 file_magic*)
2086 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2087 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2088 echo "configure:2089: checking for ${ac_tool_prefix}file" >&5
2089 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6
2091 else
2092 case $MAGIC_CMD in
2094 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2096 ?:/*)
2097 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2100 ac_save_MAGIC_CMD="$MAGIC_CMD"
2101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2102 ac_dummy="/usr/bin:$PATH"
2103 for ac_dir in $ac_dummy; do
2104 test -z "$ac_dir" && ac_dir=.
2105 if test -f $ac_dir/${ac_tool_prefix}file; then
2106 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2107 if test -n "$file_magic_test_file"; then
2108 case $deplibs_check_method in
2109 "file_magic "*)
2110 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2111 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2112 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2113 egrep "$file_magic_regex" > /dev/null; then
2115 else
2116 cat <<EOF 1>&2
2118 *** Warning: the command libtool uses to detect shared libraries,
2119 *** $file_magic_cmd, produces output that libtool cannot recognize.
2120 *** The result is that libtool may fail to recognize shared libraries
2121 *** as such. This will affect the creation of libtool libraries that
2122 *** depend on shared libraries, but programs linked with such libtool
2123 *** libraries will work regardless of this problem. Nevertheless, you
2124 *** may want to report the problem to your system manager and/or to
2125 *** bug-libtool@gnu.org
2128 fi ;;
2129 esac
2131 break
2133 done
2134 IFS="$ac_save_ifs"
2135 MAGIC_CMD="$ac_save_MAGIC_CMD"
2137 esac
2140 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2141 if test -n "$MAGIC_CMD"; then
2142 echo "$ac_t""$MAGIC_CMD" 1>&6
2143 else
2144 echo "$ac_t""no" 1>&6
2147 if test -z "$lt_cv_path_MAGIC_CMD"; then
2148 if test -n "$ac_tool_prefix"; then
2149 echo $ac_n "checking for file""... $ac_c" 1>&6
2150 echo "configure:2151: checking for file" >&5
2151 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2153 else
2154 case $MAGIC_CMD in
2156 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2158 ?:/*)
2159 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2162 ac_save_MAGIC_CMD="$MAGIC_CMD"
2163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2164 ac_dummy="/usr/bin:$PATH"
2165 for ac_dir in $ac_dummy; do
2166 test -z "$ac_dir" && ac_dir=.
2167 if test -f $ac_dir/file; then
2168 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2169 if test -n "$file_magic_test_file"; then
2170 case $deplibs_check_method in
2171 "file_magic "*)
2172 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2173 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2174 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2175 egrep "$file_magic_regex" > /dev/null; then
2177 else
2178 cat <<EOF 1>&2
2180 *** Warning: the command libtool uses to detect shared libraries,
2181 *** $file_magic_cmd, produces output that libtool cannot recognize.
2182 *** The result is that libtool may fail to recognize shared libraries
2183 *** as such. This will affect the creation of libtool libraries that
2184 *** depend on shared libraries, but programs linked with such libtool
2185 *** libraries will work regardless of this problem. Nevertheless, you
2186 *** may want to report the problem to your system manager and/or to
2187 *** bug-libtool@gnu.org
2190 fi ;;
2191 esac
2193 break
2195 done
2196 IFS="$ac_save_ifs"
2197 MAGIC_CMD="$ac_save_MAGIC_CMD"
2199 esac
2202 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2203 if test -n "$MAGIC_CMD"; then
2204 echo "$ac_t""$MAGIC_CMD" 1>&6
2205 else
2206 echo "$ac_t""no" 1>&6
2209 else
2210 MAGIC_CMD=:
2216 esac
2218 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2219 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2221 echo "configure:2222: checking for $ac_word" >&5
2222 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2223 echo $ac_n "(cached) $ac_c" 1>&6
2224 else
2225 if test -n "$RANLIB"; then
2226 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2227 else
2228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2229 ac_dummy="$PATH"
2230 for ac_dir in $ac_dummy; do
2231 test -z "$ac_dir" && ac_dir=.
2232 if test -f $ac_dir/$ac_word; then
2233 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2234 break
2236 done
2237 IFS="$ac_save_ifs"
2240 RANLIB="$ac_cv_prog_RANLIB"
2241 if test -n "$RANLIB"; then
2242 echo "$ac_t""$RANLIB" 1>&6
2243 else
2244 echo "$ac_t""no" 1>&6
2248 if test -z "$ac_cv_prog_RANLIB"; then
2249 if test -n "$ac_tool_prefix"; then
2250 # Extract the first word of "ranlib", so it can be a program name with args.
2251 set dummy ranlib; ac_word=$2
2252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2253 echo "configure:2254: checking for $ac_word" >&5
2254 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2255 echo $ac_n "(cached) $ac_c" 1>&6
2256 else
2257 if test -n "$RANLIB"; then
2258 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2259 else
2260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2261 ac_dummy="$PATH"
2262 for ac_dir in $ac_dummy; do
2263 test -z "$ac_dir" && ac_dir=.
2264 if test -f $ac_dir/$ac_word; then
2265 ac_cv_prog_RANLIB="ranlib"
2266 break
2268 done
2269 IFS="$ac_save_ifs"
2270 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2273 RANLIB="$ac_cv_prog_RANLIB"
2274 if test -n "$RANLIB"; then
2275 echo "$ac_t""$RANLIB" 1>&6
2276 else
2277 echo "$ac_t""no" 1>&6
2280 else
2281 RANLIB=":"
2285 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2286 set dummy ${ac_tool_prefix}strip; 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_STRIP'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6
2291 else
2292 if test -n "$STRIP"; then
2293 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
2301 break
2303 done
2304 IFS="$ac_save_ifs"
2307 STRIP="$ac_cv_prog_STRIP"
2308 if test -n "$STRIP"; then
2309 echo "$ac_t""$STRIP" 1>&6
2310 else
2311 echo "$ac_t""no" 1>&6
2315 if test -z "$ac_cv_prog_STRIP"; then
2316 if test -n "$ac_tool_prefix"; then
2317 # Extract the first word of "strip", so it can be a program name with args.
2318 set dummy strip; 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_STRIP'+set}'`\" = set"; then
2322 echo $ac_n "(cached) $ac_c" 1>&6
2323 else
2324 if test -n "$STRIP"; then
2325 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="strip"
2333 break
2335 done
2336 IFS="$ac_save_ifs"
2337 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2340 STRIP="$ac_cv_prog_STRIP"
2341 if test -n "$STRIP"; then
2342 echo "$ac_t""$STRIP" 1>&6
2343 else
2344 echo "$ac_t""no" 1>&6
2347 else
2348 STRIP=":"
2353 # Check for any special flags to pass to ltconfig.
2354 libtool_flags="--cache-file=$cache_file"
2355 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2356 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2357 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2358 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2359 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2360 libtool_flags="$libtool_flags --enable-dlopen"
2362 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2363 if test "${enable_libtool_lock+set}" = set; then
2364 enableval="$enable_libtool_lock"
2368 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2369 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2371 # Check whether --with-pic or --without-pic was given.
2372 if test "${with_pic+set}" = set; then
2373 withval="$with_pic"
2374 pic_mode="$withval"
2375 else
2376 pic_mode=default
2379 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2380 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2382 # Some flags need to be propagated to the compiler or linker for good
2383 # libtool support.
2384 case $host in
2385 *-*-irix6*)
2386 # Find out which ABI we are using.
2387 echo '#line 2388 "configure"' > conftest.$ac_ext
2388 if { (eval echo configure:2389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389 case `/usr/bin/file conftest.$ac_objext` in
2390 *32-bit*)
2391 LD="${LD-ld} -32"
2393 *N32*)
2394 LD="${LD-ld} -n32"
2396 *64-bit*)
2397 LD="${LD-ld} -64"
2399 esac
2401 rm -rf conftest*
2404 *-*-sco3.2v5*)
2405 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2406 SAVE_CFLAGS="$CFLAGS"
2407 CFLAGS="$CFLAGS -belf"
2408 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2409 echo "configure:2410: checking whether the C compiler needs -belf" >&5
2410 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2411 echo $ac_n "(cached) $ac_c" 1>&6
2412 else
2414 ac_ext=c
2415 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2416 ac_cpp='$CPP $CPPFLAGS'
2417 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2418 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2419 cross_compiling=$ac_cv_prog_cc_cross
2421 cat > conftest.$ac_ext <<EOF
2422 #line 2423 "configure"
2423 #include "confdefs.h"
2425 int main() {
2427 ; return 0; }
2429 if { (eval echo configure:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2430 rm -rf conftest*
2431 lt_cv_cc_needs_belf=yes
2432 else
2433 echo "configure: failed program was:" >&5
2434 cat conftest.$ac_ext >&5
2435 rm -rf conftest*
2436 lt_cv_cc_needs_belf=no
2438 rm -f conftest*
2439 ac_ext=c
2440 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2441 ac_cpp='$CPP $CPPFLAGS'
2442 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2443 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2444 cross_compiling=$ac_cv_prog_cc_cross
2448 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2449 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2450 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2451 CFLAGS="$SAVE_CFLAGS"
2456 esac
2458 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2459 echo "configure:2460: checking how to run the C++ preprocessor" >&5
2460 if test -z "$CXXCPP"; then
2461 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2463 else
2464 ac_ext=C
2465 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2466 ac_cpp='$CXXCPP $CPPFLAGS'
2467 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2468 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2469 cross_compiling=$ac_cv_prog_cxx_cross
2470 CXXCPP="${CXX-g++} -E"
2471 cat > conftest.$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2474 #include <stdlib.h>
2476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2477 { (eval echo configure:2478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2479 if test -z "$ac_err"; then
2481 else
2482 echo "$ac_err" >&5
2483 echo "configure: failed program was:" >&5
2484 cat conftest.$ac_ext >&5
2485 rm -rf conftest*
2486 CXXCPP=/lib/cpp
2488 rm -f conftest*
2489 ac_cv_prog_CXXCPP="$CXXCPP"
2490 ac_ext=c
2491 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2492 ac_cpp='$CPP $CPPFLAGS'
2493 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2494 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2495 cross_compiling=$ac_cv_prog_cc_cross
2498 CXXCPP="$ac_cv_prog_CXXCPP"
2499 echo "$ac_t""$CXXCPP" 1>&6
2502 # Save cache, so that ltconfig can load it
2503 cat > confcache <<\EOF
2504 # This file is a shell script that caches the results of configure
2505 # tests run on this system so they can be shared between configure
2506 # scripts and configure runs. It is not useful on other systems.
2507 # If it contains results you don't want to keep, you may remove or edit it.
2509 # By default, configure uses ./config.cache as the cache file,
2510 # creating it if it does not exist already. You can give configure
2511 # the --cache-file=FILE option to use a different cache file; that is
2512 # what configure does when it calls configure scripts in
2513 # subdirectories, so they share the cache.
2514 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2515 # config.status only pays attention to the cache file if you give it the
2516 # --recheck option to rerun configure.
2519 # The following way of writing the cache mishandles newlines in values,
2520 # but we know of no workaround that is simple, portable, and efficient.
2521 # So, don't put newlines in cache variables' values.
2522 # Ultrix sh set writes to stderr and can't be redirected directly,
2523 # and sets the high bit in the cache file unless we assign to the vars.
2524 (set) 2>&1 |
2525 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2526 *ac_space=\ *)
2527 # `set' does not quote correctly, so add quotes (double-quote substitution
2528 # turns \\\\ into \\, and sed turns \\ into \).
2529 sed -n \
2530 -e "s/'/'\\\\''/g" \
2531 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2534 # `set' quotes correctly as required by POSIX, so do not add quotes.
2535 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2537 esac >> confcache
2538 if cmp -s $cache_file confcache; then
2540 else
2541 if test -w $cache_file; then
2542 echo "updating cache $cache_file"
2543 cat confcache > $cache_file
2544 else
2545 echo "not updating unwritable cache $cache_file"
2548 rm -f confcache
2551 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2552 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2553 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2554 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2555 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2556 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2557 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2558 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2559 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2560 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2562 # Reload cache, that may have been modified by ltconfig
2563 if test -r "$cache_file"; then
2564 echo "loading cache $cache_file"
2565 . $cache_file
2566 else
2567 echo "creating cache $cache_file"
2568 > $cache_file
2572 # This can be used to rebuild libtool when needed
2573 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2575 # Always use our own libtool.
2576 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2578 # Redirect the config.log output again, so that the ltconfig log is not
2579 # clobbered by the next message.
2580 exec 5>>./config.log
2584 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2585 lt_save_CC="$CC"
2586 lt_save_CFLAGS="$CFLAGS"
2587 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2588 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2589 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2590 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2591 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2592 deplibs_check_method="$deplibs_check_method" \
2593 file_magic_cmd="$file_magic_cmd" \
2594 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2595 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2596 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2597 CC="$lt_save_CC"
2598 CFLAGS="$lt_save_CFLAGS"
2600 # Redirect the config.log output again, so that the ltconfig log is not
2601 # clobbered by the next message.
2602 exec 5>>./config.log
2612 # Check for c++ or library specific bits that don't require linking.
2613 #GLIBCPP_CHECK_COMPILER_VERSION
2614 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2615 echo "configure:2616: checking for GNU make" >&5
2616 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2618 else
2619 _cv_gnu_make_command='' ;
2620 for a in "${MAKE-make}" make gmake gnumake ; do
2621 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2622 then
2623 _cv_gnu_make_command=$a ;
2624 break;
2626 done ;
2630 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2631 if test "x$_cv_gnu_make_command" != "x" ; then
2632 ifGNUmake='' ;
2633 else
2634 ifGNUmake='#' ;
2639 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2640 # Check whether --enable-debug or --disable-debug was given.
2641 if test "${enable_debug+set}" = set; then
2642 enableval="$enable_debug"
2643 case "${enableval}" in
2644 yes) enable_debug=yes ;;
2645 no) enable_debug=no ;;
2646 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2647 esac
2648 else
2649 enable_debug=no
2652 case "${enable_debug}" in
2653 yes)
2654 DEBUG_FLAGS='-O0 -ggdb3'
2656 no)
2657 DEBUG_FLAGS='-g'
2659 esac
2662 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2663 echo "configure:2664: checking how to run the C preprocessor" >&5
2664 # On Suns, sometimes $CPP names a directory.
2665 if test -n "$CPP" && test -d "$CPP"; then
2666 CPP=
2668 if test -z "$CPP"; then
2669 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6
2671 else
2672 # This must be in double quotes, not single quotes, because CPP may get
2673 # substituted into the Makefile and "${CC-cc}" will confuse make.
2674 CPP="${CC-cc} -E"
2675 # On the NeXT, cc -E runs the code through the compiler's parser,
2676 # not just through cpp.
2677 cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 #include <assert.h>
2681 Syntax Error
2683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2684 { (eval echo configure:2685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2686 if test -z "$ac_err"; then
2688 else
2689 echo "$ac_err" >&5
2690 echo "configure: failed program was:" >&5
2691 cat conftest.$ac_ext >&5
2692 rm -rf conftest*
2693 CPP="${CC-cc} -E -traditional-cpp"
2694 cat > conftest.$ac_ext <<EOF
2695 #line 2696 "configure"
2696 #include "confdefs.h"
2697 #include <assert.h>
2698 Syntax Error
2700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2701 { (eval echo configure:2702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2703 if test -z "$ac_err"; then
2705 else
2706 echo "$ac_err" >&5
2707 echo "configure: failed program was:" >&5
2708 cat conftest.$ac_ext >&5
2709 rm -rf conftest*
2710 CPP="${CC-cc} -nologo -E"
2711 cat > conftest.$ac_ext <<EOF
2712 #line 2713 "configure"
2713 #include "confdefs.h"
2714 #include <assert.h>
2715 Syntax Error
2717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2718 { (eval echo configure:2719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2720 if test -z "$ac_err"; then
2722 else
2723 echo "$ac_err" >&5
2724 echo "configure: failed program was:" >&5
2725 cat conftest.$ac_ext >&5
2726 rm -rf conftest*
2727 CPP=/lib/cpp
2729 rm -f conftest*
2731 rm -f conftest*
2733 rm -f conftest*
2734 ac_cv_prog_CPP="$CPP"
2736 CPP="$ac_cv_prog_CPP"
2737 else
2738 ac_cv_prog_CPP="$CPP"
2740 echo "$ac_t""$CPP" 1>&6
2743 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2744 echo "configure:2745: checking for cstdio to use" >&5
2745 # Check whether --enable-cstdio or --disable-cstdio was given.
2746 if test "${enable_cstdio+set}" = set; then
2747 enableval="$enable_cstdio"
2748 if test x$enable_cstdio = xno; then
2749 enable_cstdio=stdio
2751 else
2752 enable_cstdio=stdio
2756 enable_cstdio_flag=$enable_cstdio
2758 case x${enable_cstdio_flag} in
2759 xlibio)
2760 CSTDIO_H=config/io/c_io_libio.h
2761 BASIC_FILE_H=config/io/basic_file_libio.h
2762 BASIC_FILE_CC=config/io/basic_file_libio.cc
2763 echo "$ac_t""libio" 1>&6
2765 # see if we are on a system with libio native (ie, linux)
2766 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2767 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2768 echo "configure:2769: checking for libio.h" >&5
2769 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2770 echo $ac_n "(cached) $ac_c" 1>&6
2771 else
2772 cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2775 #include <libio.h>
2777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2778 { (eval echo configure:2779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2780 if test -z "$ac_err"; then
2781 rm -rf conftest*
2782 eval "ac_cv_header_$ac_safe=yes"
2783 else
2784 echo "$ac_err" >&5
2785 echo "configure: failed program was:" >&5
2786 cat conftest.$ac_ext >&5
2787 rm -rf conftest*
2788 eval "ac_cv_header_$ac_safe=no"
2790 rm -f conftest*
2792 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2793 echo "$ac_t""yes" 1>&6
2794 has_libio=yes
2795 else
2796 echo "$ac_t""no" 1>&6
2797 has_libio=no
2801 # Need to check and see what version of glibc is being used. If
2802 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2803 # compile most of libio for linux systems.
2804 if test x$has_libio = x"yes"; then
2805 case "$target" in
2806 *-*-linux*)
2807 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2808 echo "configure:2809: checking for glibc version >= 2.2" >&5
2809 cat > conftest.$ac_ext <<EOF
2810 #line 2811 "configure"
2811 #include "confdefs.h"
2813 #include <features.h>
2814 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2816 #endif
2819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2820 egrep "ok" >/dev/null 2>&1; then
2821 rm -rf conftest*
2822 glibc_satisfactory=yes
2823 else
2824 rm -rf conftest*
2825 glibc_satisfactory=no
2827 rm -f conftest*
2829 echo "$ac_t""$glibc_satisfactory" 1>&6
2831 esac
2833 # XXX at the moment, admit defeat and force the recompilation
2834 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2835 glibc_satisfactory=no
2837 if test x$glibc_satisfactory = x"yes"; then
2838 need_libio=no
2839 need_wlibio=no
2840 else
2841 need_libio=yes
2842 # bkoz XXX need to add checks to enable this
2843 # pme XXX here's a first pass at such a check
2844 if test x$enable_c_mbchar != xno; then
2845 need_wlibio=yes
2846 else
2847 need_wlibio=no
2851 else
2852 # Using libio, but <libio.h> doesn't exist on the target system. . .
2853 need_libio=yes
2854 # bkoz XXX need to add checks to enable this
2855 # pme XXX here's a first pass at such a check
2856 if test x$enable_c_mbchar != xno; then
2857 need_wlibio=yes
2858 else
2859 need_wlibio=no
2863 xstdio | x | xno | xnone | xyes)
2864 # default
2865 CSTDIO_H=config/io/c_io_stdio.h
2866 BASIC_FILE_H=config/io/basic_file_stdio.h
2867 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2868 echo "$ac_t""stdio" 1>&6
2870 # We're not using stdio.
2871 need_libio=no
2872 need_wlibio=no
2875 echo "$enable_cstdio is an unknown io package" 1>&2
2876 exit 1
2878 esac
2883 # 2000-08-04 bkoz hack
2884 CCODECVT_C=config/io/c_io_libio_codecvt.c
2886 # 2000-08-04 bkoz hack
2890 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2891 GLIBCPP_BUILD_LIBIO_TRUE=
2892 GLIBCPP_BUILD_LIBIO_FALSE='#'
2893 else
2894 GLIBCPP_BUILD_LIBIO_TRUE='#'
2895 GLIBCPP_BUILD_LIBIO_FALSE=
2899 if test "$need_libio" = yes; then
2900 GLIBCPP_NEED_LIBIO_TRUE=
2901 GLIBCPP_NEED_LIBIO_FALSE='#'
2902 else
2903 GLIBCPP_NEED_LIBIO_TRUE='#'
2904 GLIBCPP_NEED_LIBIO_FALSE=
2908 if test "$need_wlibio" = yes; then
2909 GLIBCPP_NEED_WLIBIO_TRUE=
2910 GLIBCPP_NEED_WLIBIO_FALSE='#'
2911 else
2912 GLIBCPP_NEED_WLIBIO_TRUE='#'
2913 GLIBCPP_NEED_WLIBIO_FALSE=
2915 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2916 libio_la=../libio/libio.la
2917 else
2918 libio_la=
2923 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2924 echo "configure:2925: checking for clocale to use" >&5
2925 # Check whether --enable-clocale or --disable-clocale was given.
2926 if test "${enable_clocale+set}" = set; then
2927 enableval="$enable_clocale"
2928 if test x$enable_clocale = xno; then
2929 enable_clocale=no
2931 else
2932 enable_clocale=no
2936 enable_clocale_flag=$enable_clocale
2938 if test x$enable_clocale_flag = xno; then
2939 case x${target_os} in
2940 xlinux* | xgnu*)
2941 cat > conftest.$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2945 #include <features.h>
2946 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2947 _GLIBCPP_ok
2948 #endif
2951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2952 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2953 rm -rf conftest*
2954 enable_clocale_flag=gnu
2955 else
2956 rm -rf conftest*
2957 enable_clocale_flag=generic
2959 rm -f conftest*
2962 # Test for bugs early in glibc-2.2.x series
2963 if test x$enable_clocale_flag = xgnu; then
2964 if test "$cross_compiling" = yes; then
2965 enable_clocale_flag=generic
2966 else
2967 cat > conftest.$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2971 #define _GNU_SOURCE 1
2972 #include <locale.h>
2973 int main()
2975 const char __one[] = "Äuglein Augmen";
2976 const char __two[] = "Äuglein";
2977 int i;
2978 int j;
2979 __locale_t loc;
2980 __locale_t loc_dup;
2981 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
2982 loc_dup = __duplocale(loc);
2983 i = __strcoll_l(__one, __two, loc);
2984 j = __strcoll_l(__one, __two, loc_dup);
2985 return 0;
2989 if { (eval echo configure:2990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2990 then
2991 enable_clocale_flag=gnu
2992 else
2993 echo "configure: failed program was:" >&5
2994 cat conftest.$ac_ext >&5
2995 rm -fr conftest*
2996 enable_clocale_flag=generic
2998 rm -fr conftest*
3003 # ... at some point put __strxfrm_l tests in as well.
3006 enable_clocale_flag=generic
3008 esac
3011 # Check whether --enable-nls or --disable-nls was given.
3012 if test "${enable_nls+set}" = set; then
3013 enableval="$enable_nls"
3015 else
3016 enable_nls=yes
3019 USE_NLS=no
3021 case x${enable_clocale_flag} in
3022 xgeneric)
3023 echo "$ac_t""generic" 1>&6
3025 CLOCALE_H=config/locale/generic/c_locale.h
3026 CLOCALE_CC=config/locale/generic/c_locale.cc
3027 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3028 CCOLLATE_CC=config/locale/generic/collate_members.cc
3029 CCTYPE_CC=config/locale/generic/ctype_members.cc
3030 CMESSAGES_H=config/locale/generic/messages_members.h
3031 CMESSAGES_CC=config/locale/generic/messages_members.cc
3032 CMONEY_CC=config/locale/generic/monetary_members.cc
3033 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3034 CTIME_CC=config/locale/generic/time_members.cc
3036 xgnu)
3037 echo "$ac_t""gnu" 1>&6
3039 # Declare intention to use gettext, and add support for specific
3040 # languages.
3041 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3042 ALL_LINGUAS="de fr"
3044 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3045 # Extract the first word of "msgfmt", so it can be a program name with args.
3046 set dummy msgfmt; ac_word=$2
3047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3048 echo "configure:3049: checking for $ac_word" >&5
3049 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3050 echo $ac_n "(cached) $ac_c" 1>&6
3051 else
3052 if test -n "$check_msgfmt"; then
3053 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3054 else
3055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3056 ac_dummy="$PATH"
3057 for ac_dir in $ac_dummy; do
3058 test -z "$ac_dir" && ac_dir=.
3059 if test -f $ac_dir/$ac_word; then
3060 ac_cv_prog_check_msgfmt="yes"
3061 break
3063 done
3064 IFS="$ac_save_ifs"
3065 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3068 check_msgfmt="$ac_cv_prog_check_msgfmt"
3069 if test -n "$check_msgfmt"; then
3070 echo "$ac_t""$check_msgfmt" 1>&6
3071 else
3072 echo "$ac_t""no" 1>&6
3075 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3076 USE_NLS=yes
3078 # Export the build objects.
3079 for ling in $ALL_LINGUAS; do \
3080 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3081 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3082 done
3086 CLOCALE_H=config/locale/gnu/c_locale.h
3087 CLOCALE_CC=config/locale/gnu/c_locale.cc
3088 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3089 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3090 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3091 CMESSAGES_H=config/locale/gnu/messages_members.h
3092 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3093 CMONEY_CC=config/locale/gnu/monetary_members.cc
3094 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3095 CTIME_CC=config/locale/gnu/time_members.cc
3097 xieee_1003.1-2001)
3098 echo "$ac_t""generic" 1>&6
3100 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3101 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3102 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3103 CCOLLATE_CC=config/locale/generic/collate_members.cc
3104 CCTYPE_CC=config/locale/generic/ctype_members.cc
3105 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3106 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3107 CMONEY_CC=config/locale/generic/monetary_members.cc
3108 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3109 CTIME_CC=config/locale/generic/time_members.cc
3112 echo "$enable_clocale is an unknown locale package" 1>&2
3113 exit 1
3115 esac
3117 # This is where the testsuite looks for locale catalogs, using the
3118 # -DLOCALEDIR define during testsuite compilation.
3119 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3134 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3135 if test "${enable_c_mbchar+set}" = set; then
3136 enableval="$enable_c_mbchar"
3137 case "$enableval" in
3138 yes) enable_c_mbchar=yes ;;
3139 no) enable_c_mbchar=no ;;
3140 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3141 esac
3142 else
3143 enable_c_mbchar=yes
3147 # Check whether --enable-c99 or --disable-c99 was given.
3148 if test "${enable_c99+set}" = set; then
3149 enableval="$enable_c99"
3150 case "$enableval" in
3151 yes) enable_c99=yes ;;
3152 no) enable_c99=no ;;
3153 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3154 esac
3155 else
3156 enable_c99=yes
3160 ac_ext=C
3161 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3162 ac_cpp='$CXXCPP $CPPFLAGS'
3163 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3164 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3165 cross_compiling=$ac_cv_prog_cxx_cross
3168 # Check for the existence of <math.h> functions used if C99 is enabled.
3169 ac_c99_math=yes;
3170 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3171 echo "configure:3172: checking for ISO C99 support in <math.h>" >&5
3172 cat > conftest.$ac_ext <<EOF
3173 #line 3174 "configure"
3174 #include "confdefs.h"
3175 #include <math.h>
3176 int main() {
3177 fpclassify(0.0);
3178 ; return 0; }
3180 if { (eval echo configure:3181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3182 else
3183 echo "configure: failed program was:" >&5
3184 cat conftest.$ac_ext >&5
3185 rm -rf conftest*
3186 ac_c99_math=no
3188 rm -f conftest*
3189 cat > conftest.$ac_ext <<EOF
3190 #line 3191 "configure"
3191 #include "confdefs.h"
3192 #include <math.h>
3193 int main() {
3194 isfinite(0.0);
3195 ; return 0; }
3197 if { (eval echo configure:3198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3199 else
3200 echo "configure: failed program was:" >&5
3201 cat conftest.$ac_ext >&5
3202 rm -rf conftest*
3203 ac_c99_math=no
3205 rm -f conftest*
3206 cat > conftest.$ac_ext <<EOF
3207 #line 3208 "configure"
3208 #include "confdefs.h"
3209 #include <math.h>
3210 int main() {
3211 isinf(0.0);
3212 ; return 0; }
3214 if { (eval echo configure:3215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3216 else
3217 echo "configure: failed program was:" >&5
3218 cat conftest.$ac_ext >&5
3219 rm -rf conftest*
3220 ac_c99_math=no
3222 rm -f conftest*
3223 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3226 #include <math.h>
3227 int main() {
3228 isnan(0.0);
3229 ; return 0; }
3231 if { (eval echo configure:3232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3233 else
3234 echo "configure: failed program was:" >&5
3235 cat conftest.$ac_ext >&5
3236 rm -rf conftest*
3237 ac_c99_math=no
3239 rm -f conftest*
3240 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3243 #include <math.h>
3244 int main() {
3245 isnormal(0.0);
3246 ; return 0; }
3248 if { (eval echo configure:3249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3250 else
3251 echo "configure: failed program was:" >&5
3252 cat conftest.$ac_ext >&5
3253 rm -rf conftest*
3254 ac_c99_math=no
3256 rm -f conftest*
3257 cat > conftest.$ac_ext <<EOF
3258 #line 3259 "configure"
3259 #include "confdefs.h"
3260 #include <math.h>
3261 int main() {
3262 signbit(0.0);
3263 ; return 0; }
3265 if { (eval echo configure:3266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3267 else
3268 echo "configure: failed program was:" >&5
3269 cat conftest.$ac_ext >&5
3270 rm -rf conftest*
3271 ac_c99_math=no
3273 rm -f conftest*
3274 cat > conftest.$ac_ext <<EOF
3275 #line 3276 "configure"
3276 #include "confdefs.h"
3277 #include <math.h>
3278 int main() {
3279 isgreater(0.0,0.0);
3280 ; return 0; }
3282 if { (eval echo configure:3283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3284 else
3285 echo "configure: failed program was:" >&5
3286 cat conftest.$ac_ext >&5
3287 rm -rf conftest*
3288 ac_c99_math=no
3290 rm -f conftest*
3291 cat > conftest.$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3294 #include <math.h>
3295 int main() {
3296 isgreaterequal(0.0,0.0);
3297 ; return 0; }
3299 if { (eval echo configure:3300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3301 else
3302 echo "configure: failed program was:" >&5
3303 cat conftest.$ac_ext >&5
3304 rm -rf conftest*
3305 ac_c99_math=no
3307 rm -f conftest*
3308 cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3311 #include <math.h>
3312 int main() {
3313 isless(0.0,0.0);
3314 ; return 0; }
3316 if { (eval echo configure:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3318 else
3319 echo "configure: failed program was:" >&5
3320 cat conftest.$ac_ext >&5
3321 rm -rf conftest*
3322 ac_c99_math=no
3324 rm -f conftest*
3325 cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328 #include <math.h>
3329 int main() {
3330 islessequal(0.0,0.0);
3331 ; return 0; }
3333 if { (eval echo configure:3334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3335 else
3336 echo "configure: failed program was:" >&5
3337 cat conftest.$ac_ext >&5
3338 rm -rf conftest*
3339 ac_c99_math=no
3341 rm -f conftest*
3342 cat > conftest.$ac_ext <<EOF
3343 #line 3344 "configure"
3344 #include "confdefs.h"
3345 #include <math.h>
3346 int main() {
3347 islessgreater(0.0,0.0);
3348 ; return 0; }
3350 if { (eval echo configure:3351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3352 else
3353 echo "configure: failed program was:" >&5
3354 cat conftest.$ac_ext >&5
3355 rm -rf conftest*
3356 ac_c99_math=no
3358 rm -f conftest*
3359 cat > conftest.$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3362 #include <math.h>
3363 int main() {
3364 isunordered(0.0,0.0);
3365 ; return 0; }
3367 if { (eval echo configure:3368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3369 else
3370 echo "configure: failed program was:" >&5
3371 cat conftest.$ac_ext >&5
3372 rm -rf conftest*
3373 ac_c99_math=no
3375 rm -f conftest*
3376 echo "$ac_t""$ac_c99_math" 1>&6
3378 # Check for the existence in <stdio.h> of vscanf, et. al.
3379 ac_c99_stdio=yes;
3380 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3381 echo "configure:3382: checking for ISO C99 support in <stdio.h>" >&5
3382 cat > conftest.$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3385 #include <stdio.h>
3386 int main() {
3387 snprintf("12", 0, "%i");
3388 ; return 0; }
3390 if { (eval echo configure:3391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3392 else
3393 echo "configure: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3395 rm -rf conftest*
3396 ac_c99_stdio=no
3398 rm -f conftest*
3399 cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3402 #include <stdio.h>
3403 #include <stdarg.h>
3404 void foo(char* fmt, ...)
3405 {va_list args; va_start(args, fmt);
3406 vfscanf(stderr, "%i", args);}
3407 int main() {
3409 ; return 0; }
3411 if { (eval echo configure:3412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3413 else
3414 echo "configure: failed program was:" >&5
3415 cat conftest.$ac_ext >&5
3416 rm -rf conftest*
3417 ac_c99_stdio=no
3419 rm -f conftest*
3420 cat > conftest.$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3423 #include <stdio.h>
3424 #include <stdarg.h>
3425 void foo(char* fmt, ...)
3426 {va_list args; va_start(args, fmt);
3427 vscanf("%i", args);}
3428 int main() {
3430 ; return 0; }
3432 if { (eval echo configure:3433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3434 else
3435 echo "configure: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3437 rm -rf conftest*
3438 ac_c99_stdio=no
3440 rm -f conftest*
3441 cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3444 #include <stdio.h>
3445 #include <stdarg.h>
3446 void foo(char* fmt, ...)
3447 {va_list args; va_start(args, fmt);
3448 vsnprintf(fmt, 0, "%i", args);}
3449 int main() {
3451 ; return 0; }
3453 if { (eval echo configure:3454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3455 else
3456 echo "configure: failed program was:" >&5
3457 cat conftest.$ac_ext >&5
3458 rm -rf conftest*
3459 ac_c99_stdio=no
3461 rm -f conftest*
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 #include <stdio.h>
3466 #include <stdarg.h>
3467 void foo(char* fmt, ...)
3468 {va_list args; va_start(args, fmt);
3469 vsscanf(fmt, "%i", args);}
3470 int main() {
3472 ; return 0; }
3474 if { (eval echo configure:3475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3476 else
3477 echo "configure: failed program was:" >&5
3478 cat conftest.$ac_ext >&5
3479 rm -rf conftest*
3480 ac_c99_stdio=no
3482 rm -f conftest*
3483 echo "$ac_t""$ac_c99_stdio" 1>&6
3485 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3486 ac_c99_stdlib=yes;
3487 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3488 echo "configure:3489: checking for lldiv_t declaration" >&5
3489 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3491 else
3493 cat > conftest.$ac_ext <<EOF
3494 #line 3495 "configure"
3495 #include "confdefs.h"
3496 #include <stdlib.h>
3497 int main() {
3498 lldiv_t mydivt;
3499 ; return 0; }
3501 if { (eval echo configure:3502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3502 rm -rf conftest*
3503 ac_c99_lldiv_t=yes
3504 else
3505 echo "configure: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3507 rm -rf conftest*
3508 ac_c99_lldiv_t=no
3510 rm -f conftest*
3514 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3516 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3517 echo "configure:3518: checking for ISO C99 support in <stdlib.h>" >&5
3518 cat > conftest.$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 #include <stdlib.h>
3522 int main() {
3523 char* tmp; strtof("gnu", &tmp);
3524 ; return 0; }
3526 if { (eval echo configure:3527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3528 else
3529 echo "configure: failed program was:" >&5
3530 cat conftest.$ac_ext >&5
3531 rm -rf conftest*
3532 ac_c99_stdlib=no
3534 rm -f conftest*
3535 cat > conftest.$ac_ext <<EOF
3536 #line 3537 "configure"
3537 #include "confdefs.h"
3538 #include <stdlib.h>
3539 int main() {
3540 char* tmp; strtold("gnu", &tmp);
3541 ; return 0; }
3543 if { (eval echo configure:3544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3545 else
3546 echo "configure: failed program was:" >&5
3547 cat conftest.$ac_ext >&5
3548 rm -rf conftest*
3549 ac_c99_stdlib=no
3551 rm -f conftest*
3552 cat > conftest.$ac_ext <<EOF
3553 #line 3554 "configure"
3554 #include "confdefs.h"
3555 #include <stdlib.h>
3556 int main() {
3557 llabs(10);
3558 ; return 0; }
3560 if { (eval echo configure:3561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3562 else
3563 echo "configure: failed program was:" >&5
3564 cat conftest.$ac_ext >&5
3565 rm -rf conftest*
3566 ac_c99_stdlib=no
3568 rm -f conftest*
3569 cat > conftest.$ac_ext <<EOF
3570 #line 3571 "configure"
3571 #include "confdefs.h"
3572 #include <stdlib.h>
3573 int main() {
3574 lldiv(10,1);
3575 ; return 0; }
3577 if { (eval echo configure:3578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3579 else
3580 echo "configure: failed program was:" >&5
3581 cat conftest.$ac_ext >&5
3582 rm -rf conftest*
3583 ac_c99_stdlib=no
3585 rm -f conftest*
3586 cat > conftest.$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3589 #include <stdlib.h>
3590 int main() {
3591 atoll("10");
3592 ; return 0; }
3594 if { (eval echo configure:3595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3596 else
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3599 rm -rf conftest*
3600 ac_c99_stdlib=no
3602 rm -f conftest*
3603 cat > conftest.$ac_ext <<EOF
3604 #line 3605 "configure"
3605 #include "confdefs.h"
3606 #include <stdlib.h>
3607 int main() {
3608 _Exit(0);
3609 ; return 0; }
3611 if { (eval echo configure:3612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3613 else
3614 echo "configure: failed program was:" >&5
3615 cat conftest.$ac_ext >&5
3616 rm -rf conftest*
3617 ac_c99_stdlib=no
3619 rm -f conftest*
3620 if test x"$ac_c99_lldiv_t" = x"no"; then
3621 ac_c99_stdlib=no;
3622 fi;
3623 echo "$ac_t""$ac_c99_stdlib" 1>&6
3625 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3626 # XXX the wchar.h checks should be rolled into the general C99 bits.
3627 ac_c99_wchar=yes;
3628 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3629 echo "configure:3630: checking for additional ISO C99 support in <wchar.h>" >&5
3630 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 #include <wchar.h>
3634 int main() {
3635 wcstold(L"10.0", NULL);
3636 ; return 0; }
3638 if { (eval echo configure:3639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3640 else
3641 echo "configure: failed program was:" >&5
3642 cat conftest.$ac_ext >&5
3643 rm -rf conftest*
3644 ac_c99_wchar=no
3646 rm -f conftest*
3647 cat > conftest.$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3650 #include <wchar.h>
3651 int main() {
3652 wcstoll(L"10", NULL, 10);
3653 ; return 0; }
3655 if { (eval echo configure:3656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3657 else
3658 echo "configure: failed program was:" >&5
3659 cat conftest.$ac_ext >&5
3660 rm -rf conftest*
3661 ac_c99_wchar=no
3663 rm -f conftest*
3664 cat > conftest.$ac_ext <<EOF
3665 #line 3666 "configure"
3666 #include "confdefs.h"
3667 #include <wchar.h>
3668 int main() {
3669 wcstoull(L"10", NULL, 10);
3670 ; return 0; }
3672 if { (eval echo configure:3673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3674 else
3675 echo "configure: failed program was:" >&5
3676 cat conftest.$ac_ext >&5
3677 rm -rf conftest*
3678 ac_c99_wchar=no
3680 rm -f conftest*
3681 echo "$ac_t""$ac_c99_wchar" 1>&6
3683 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3684 echo "configure:3685: checking for enabled ISO C99 support" >&5
3685 if test x"$ac_c99_math" = x"no" ||
3686 test x"$ac_c99_stdio" = x"no" ||
3687 test x"$ac_c99_stdlib" = x"no" ||
3688 test x"$ac_c99_wchar" = x"no"; then
3689 enable_c99=no;
3690 fi;
3691 echo "$ac_t""$enable_c99" 1>&6
3693 # Option parsed, now set things appropriately
3694 if test x"$enable_c99" = x"yes"; then
3695 cat >> confdefs.h <<\EOF
3696 #define _GLIBCPP_USE_C99 1
3701 ac_ext=c
3702 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3705 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3706 cross_compiling=$ac_cv_prog_cc_cross
3710 # Check whether --enable-long-long or --disable-long-long was given.
3711 if test "${enable_long_long+set}" = set; then
3712 enableval="$enable_long_long"
3713 case "$enableval" in
3714 yes) enable_long_long=yes ;;
3715 no) enable_long_long=no ;;
3716 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3717 esac
3718 else
3719 enable_long_long=yes
3723 ac_ext=C
3724 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3725 ac_cpp='$CXXCPP $CPPFLAGS'
3726 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3727 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3728 cross_compiling=$ac_cv_prog_cxx_cross
3731 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3732 echo "configure:3733: checking for enabled long long I/O support" >&5
3733 # iostreams require strtoll, strtoull to compile
3734 cat > conftest.$ac_ext <<EOF
3735 #line 3736 "configure"
3736 #include "confdefs.h"
3737 #include <stdlib.h>
3738 int main() {
3739 char* tmp; strtoll("gnu", &tmp, 10);
3740 ; return 0; }
3742 if { (eval echo configure:3743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3744 else
3745 echo "configure: failed program was:" >&5
3746 cat conftest.$ac_ext >&5
3747 rm -rf conftest*
3748 enable_long_long=no
3750 rm -f conftest*
3751 cat > conftest.$ac_ext <<EOF
3752 #line 3753 "configure"
3753 #include "confdefs.h"
3754 #include <stdlib.h>
3755 int main() {
3756 char* tmp; strtoull("gnu", &tmp, 10);
3757 ; return 0; }
3759 if { (eval echo configure:3760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3761 else
3762 echo "configure: failed program was:" >&5
3763 cat conftest.$ac_ext >&5
3764 rm -rf conftest*
3765 enable_long_long=no
3767 rm -f conftest*
3769 # Option parsed, now set things appropriately
3770 if test x"$enable_long_long" = xyes; then
3771 cat >> confdefs.h <<\EOF
3772 #define _GLIBCPP_USE_LONG_LONG 1
3776 echo "$ac_t""$enable_long_long" 1>&6
3778 ac_ext=c
3779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3780 ac_cpp='$CPP $CPPFLAGS'
3781 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3782 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3783 cross_compiling=$ac_cv_prog_cc_cross
3786 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3787 echo "configure:3788: checking for c header strategy to use" >&5
3788 # Check whether --enable-cheaders or --disable-cheaders was given.
3789 if test "${enable_cheaders+set}" = set; then
3790 enableval="$enable_cheaders"
3792 case "$enableval" in
3794 enable_cheaders=c
3796 c_std)
3797 enable_cheaders=c_std
3799 c_shadow)
3800 enable_cheaders=c_shadow
3802 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3804 esac
3805 else
3806 enable_cheaders=c_std
3809 echo "$ac_t""$enable_cheaders" 1>&6
3811 case "$enable_cheaders" in
3812 c_shadow)
3813 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3815 c_std)
3816 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3819 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3821 esac
3826 if test "$enable_cheaders" = c; then
3827 GLIBCPP_C_HEADERS_C_TRUE=
3828 GLIBCPP_C_HEADERS_C_FALSE='#'
3829 else
3830 GLIBCPP_C_HEADERS_C_TRUE='#'
3831 GLIBCPP_C_HEADERS_C_FALSE=
3835 if test "$enable_cheaders" = c_std; then
3836 GLIBCPP_C_HEADERS_C_STD_TRUE=
3837 GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3838 else
3839 GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3840 GLIBCPP_C_HEADERS_C_STD_FALSE=
3844 if test "$c_compatibility" = yes; then
3845 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3846 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3847 else
3848 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3849 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3853 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3854 echo "configure:3855: checking for thread model used by GCC" >&5
3855 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3856 echo "$ac_t""$target_thread_file" 1>&6
3858 if test $target_thread_file != single; then
3859 cat >> confdefs.h <<\EOF
3860 #define HAVE_GTHR_DEFAULT 1
3863 cat >> confdefs.h <<\EOF
3864 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3869 glibcpp_thread_h=gthr-$target_thread_file.h
3872 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3873 if test "${enable_cxx_flags+set}" = set; then
3874 enableval="$enable_cxx_flags"
3875 case "x$enableval" in
3876 xyes)
3877 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3878 xno|x)
3879 enable_cxx_flags='' ;;
3881 enable_cxx_flags="$enableval" ;;
3882 esac
3883 else
3884 enable_cxx_flags='none'
3888 if test "$enable_cxx_flags" = "none"; then
3889 enable_cxx_flags='';
3892 if test -n "$enable_cxx_flags"; then
3893 for f in $enable_cxx_flags; do
3894 case "$f" in
3895 -fhonor-std) ;;
3896 -*) ;;
3897 *) # and we're trying to pass /what/ exactly?
3898 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3899 esac
3900 done
3902 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3906 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3907 echo "configure:3908: checking for exception model to use" >&5
3909 ac_ext=C
3910 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3911 ac_cpp='$CXXCPP $CPPFLAGS'
3912 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3913 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3914 cross_compiling=$ac_cv_prog_cxx_cross
3916 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3917 if test "${enable_sjlj_exceptions+set}" = set; then
3918 enableval="$enable_sjlj_exceptions"
3920 else
3921 cat > conftest.$ac_ext << EOF
3922 #line 3923 "configure"
3923 struct S { ~S(); };
3924 void bar();
3925 void foo()
3927 S s;
3928 bar();
3931 old_CXXFLAGS="$CXXFLAGS"
3932 CXXFLAGS=-S
3933 if { (eval echo configure:3934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3934 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3935 enable_sjlj_exceptions=yes
3936 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3937 enable_sjlj_exceptions=no
3940 CXXFLAGS="$old_CXXFLAGS"
3941 rm -f conftest*
3944 if test x$enable_sjlj_exceptions = xyes; then
3945 cat >> confdefs.h <<\EOF
3946 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3949 ac_exception_model_name=sjlj
3950 elif test x$enable_sjlj_exceptions = xno; then
3951 ac_exception_model_name="call frame"
3952 else
3953 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3955 ac_ext=c
3956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3957 ac_cpp='$CPP $CPPFLAGS'
3958 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3959 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3960 cross_compiling=$ac_cv_prog_cc_cross
3962 echo "$ac_t""$ac_exception_model_name" 1>&6
3965 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
3966 echo "configure:3967: checking for use of libunwind" >&5
3967 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
3968 if test "${enable_libunwind_exceptions+set}" = set; then
3969 enableval="$enable_libunwind_exceptions"
3970 use_libunwind_exceptions=$enableval
3971 else
3972 use_libunwind_exceptions=no
3975 echo "$ac_t""$use_libunwind_exceptions" 1>&6
3976 if test x"$use_libunwind_exceptions" = xyes; then
3977 LIBUNWIND_FLAG="-lunwind"
3978 else
3979 LIBUNWIND_FLAG=""
3983 # Check whether --enable-concept-checks or --disable-concept-checks was given.
3984 if test "${enable_concept_checks+set}" = set; then
3985 enableval="$enable_concept_checks"
3986 case "$enableval" in
3987 yes) enable_concept_checks=yes ;;
3988 no) enable_concept_checks=no ;;
3989 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
3990 esac
3991 else
3992 enable_concept_checks=no
3994 if test x"$enable_concept_checks" = xyes; then
3995 cat >> confdefs.h <<\EOF
3996 #define _GLIBCPP_CONCEPT_CHECKS 1
4002 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4003 for ac_hdr in string.h stdlib.h
4005 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4006 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4007 echo "configure:4008: checking for $ac_hdr" >&5
4008 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4009 echo $ac_n "(cached) $ac_c" 1>&6
4010 else
4011 cat > conftest.$ac_ext <<EOF
4012 #line 4013 "configure"
4013 #include "confdefs.h"
4014 #include <$ac_hdr>
4016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4017 { (eval echo configure:4018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4018 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4019 if test -z "$ac_err"; then
4020 rm -rf conftest*
4021 eval "ac_cv_header_$ac_safe=yes"
4022 else
4023 echo "$ac_err" >&5
4024 echo "configure: failed program was:" >&5
4025 cat conftest.$ac_ext >&5
4026 rm -rf conftest*
4027 eval "ac_cv_header_$ac_safe=no"
4029 rm -f conftest*
4031 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4032 echo "$ac_t""yes" 1>&6
4033 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4034 cat >> confdefs.h <<EOF
4035 #define $ac_tr_hdr 1
4038 else
4039 echo "$ac_t""no" 1>&6
4041 done
4044 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4046 # We are being configured with some form of cross compiler.
4047 GLIBCPP_IS_CROSS_COMPILING=1
4049 # This lets us hard-code the functionality we know we'll have in the cross
4050 # target environment. "Let" is a sugar-coated word placed on an especially
4051 # dull and tedious hack, actually.
4053 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4054 # that involve linking, can't be used:
4055 # "cannot open sim-crt0.o"
4056 # "cannot open crt0.o"
4057 # etc. All this is because there currently exists no unified, consistent
4058 # way for top level CC information to be passed down to target directories:
4059 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4060 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4061 # crosses can be removed.
4063 # If Canadian cross, then don't pick up tools from the build directory.
4064 # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4065 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4066 CANADIAN=yes
4067 else
4068 CANADIAN=no
4071 # Construct crosses by hand, eliminating bits that need ld...
4072 # GLIBCPP_CHECK_COMPILER_FEATURES
4073 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4074 # GLIBCPP_CHECK_MATH_SUPPORT
4076 case "$target_alias" in
4077 *-linux*)
4078 os_include_dir="os/gnu-linux"
4079 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4080 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4081 fp.h locale.h float.h inttypes.h
4083 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4084 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4085 echo "configure:4086: checking for $ac_hdr" >&5
4086 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4088 else
4089 cat > conftest.$ac_ext <<EOF
4090 #line 4091 "configure"
4091 #include "confdefs.h"
4092 #include <$ac_hdr>
4094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4095 { (eval echo configure:4096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4096 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4097 if test -z "$ac_err"; then
4098 rm -rf conftest*
4099 eval "ac_cv_header_$ac_safe=yes"
4100 else
4101 echo "$ac_err" >&5
4102 echo "configure: failed program was:" >&5
4103 cat conftest.$ac_ext >&5
4104 rm -rf conftest*
4105 eval "ac_cv_header_$ac_safe=no"
4107 rm -f conftest*
4109 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4110 echo "$ac_t""yes" 1>&6
4111 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4112 cat >> confdefs.h <<EOF
4113 #define $ac_tr_hdr 1
4116 else
4117 echo "$ac_t""no" 1>&6
4119 done
4121 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4124 # If we're not using GNU ld, then there's no point in even trying these
4125 # tests. Check for that first. We should have already tested for gld
4126 # by now (in libtool), but require it now just to be safe...
4127 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4128 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4131 # The name set by libtool depends on the version of libtool. Shame on us
4132 # for depending on an impl detail, but c'est la vie. Older versions used
4133 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4134 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4135 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4136 # set (hence we're using an older libtool), then set it.
4137 if test x${with_gnu_ld+set} != xset; then
4138 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4139 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4140 with_gnu_ld=no
4141 else
4142 with_gnu_ld=$ac_cv_prog_gnu_ld
4146 # Start by getting the version number. I think the libtool test already
4147 # does some of this, but throws away the result.
4149 ldver=`$LD --version 2>/dev/null | head -1 | \
4150 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4152 glibcpp_gnu_ld_version=`echo $ldver | \
4153 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4155 # Set --gc-sections.
4156 if test "$with_gnu_ld" = "notbroken"; then
4157 # GNU ld it is! Joy and bunny rabbits!
4159 # All these tests are for C++; save the language and the compiler flags.
4160 # Need to do this so that g++ won't try to link in libstdc++
4161 ac_test_CFLAGS="${CFLAGS+set}"
4162 ac_save_CFLAGS="$CFLAGS"
4163 CFLAGS='-x c++ -Wl,--gc-sections'
4165 # Check for -Wl,--gc-sections
4166 # XXX This test is broken at the moment, as symbols required for
4167 # linking are now in libsupc++ (not built yet.....). In addition,
4168 # this test has cored on solaris in the past. In addition,
4169 # --gc-sections doesn't really work at the moment (keeps on discarding
4170 # used sections, first .eh_frame and now some of the glibc sections for
4171 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4172 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4173 echo "configure:4174: checking for ld that supports -Wl,--gc-sections" >&5
4174 if test "$cross_compiling" = yes; then
4175 ac_sectionLDflags=yes
4176 else
4177 cat > conftest.$ac_ext <<EOF
4178 #line 4179 "configure"
4179 #include "confdefs.h"
4181 int main(void)
4183 try { throw 1; }
4184 catch (...) { };
4185 return 0;
4189 if { (eval echo configure:4190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4190 then
4191 ac_sectionLDflags=yes
4192 else
4193 echo "configure: failed program was:" >&5
4194 cat conftest.$ac_ext >&5
4195 rm -fr conftest*
4196 ac_sectionLDflags=no
4198 rm -fr conftest*
4201 if test "$ac_test_CFLAGS" = set; then
4202 CFLAGS="$ac_save_CFLAGS"
4203 else
4204 # this is the suspicious part
4205 CFLAGS=''
4207 if test "$ac_sectionLDflags" = "yes"; then
4208 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4210 echo "$ac_t""$ac_sectionLDflags" 1>&6
4213 # Set linker optimization flags.
4214 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4215 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4222 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4223 echo "configure:4224: checking for main in -lm" >&5
4224 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4227 else
4228 ac_save_LIBS="$LIBS"
4229 LIBS="-lm $LIBS"
4230 cat > conftest.$ac_ext <<EOF
4231 #line 4232 "configure"
4232 #include "confdefs.h"
4234 int main() {
4235 main()
4236 ; return 0; }
4238 if { (eval echo configure:4239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4239 rm -rf conftest*
4240 eval "ac_cv_lib_$ac_lib_var=yes"
4241 else
4242 echo "configure: failed program was:" >&5
4243 cat conftest.$ac_ext >&5
4244 rm -rf conftest*
4245 eval "ac_cv_lib_$ac_lib_var=no"
4247 rm -f conftest*
4248 LIBS="$ac_save_LIBS"
4251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4252 echo "$ac_t""yes" 1>&6
4253 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4254 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4255 cat >> confdefs.h <<EOF
4256 #define $ac_tr_lib 1
4259 LIBS="-lm $LIBS"
4261 else
4262 echo "$ac_t""no" 1>&6
4265 for ac_func in nan copysignf
4267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4268 echo "configure:4269: checking for $ac_func" >&5
4269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4271 else
4272 cat > conftest.$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4275 /* System header to define __stub macros and hopefully few prototypes,
4276 which can conflict with char $ac_func(); below. */
4277 #include <assert.h>
4278 /* Override any gcc2 internal prototype to avoid an error. */
4279 /* We use char because int might match the return type of a gcc2
4280 builtin and then its argument prototype would still apply. */
4281 char $ac_func();
4283 int main() {
4285 /* The GNU C library defines this for functions which it implements
4286 to always fail with ENOSYS. Some functions are actually named
4287 something starting with __ and the normal name is an alias. */
4288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4289 choke me
4290 #else
4291 $ac_func();
4292 #endif
4294 ; return 0; }
4296 if { (eval echo configure:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4297 rm -rf conftest*
4298 eval "ac_cv_func_$ac_func=yes"
4299 else
4300 echo "configure: failed program was:" >&5
4301 cat conftest.$ac_ext >&5
4302 rm -rf conftest*
4303 eval "ac_cv_func_$ac_func=no"
4305 rm -f conftest*
4308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4309 echo "$ac_t""yes" 1>&6
4310 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4311 cat >> confdefs.h <<EOF
4312 #define $ac_tr_func 1
4315 else
4316 echo "$ac_t""no" 1>&6
4317 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4319 done
4322 for ac_func in __signbit
4324 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4325 echo "configure:4326: checking for $ac_func" >&5
4326 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4327 echo $ac_n "(cached) $ac_c" 1>&6
4328 else
4329 cat > conftest.$ac_ext <<EOF
4330 #line 4331 "configure"
4331 #include "confdefs.h"
4332 /* System header to define __stub macros and hopefully few prototypes,
4333 which can conflict with char $ac_func(); below. */
4334 #include <assert.h>
4335 /* Override any gcc2 internal prototype to avoid an error. */
4336 /* We use char because int might match the return type of a gcc2
4337 builtin and then its argument prototype would still apply. */
4338 char $ac_func();
4340 int main() {
4342 /* The GNU C library defines this for functions which it implements
4343 to always fail with ENOSYS. Some functions are actually named
4344 something starting with __ and the normal name is an alias. */
4345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4346 choke me
4347 #else
4348 $ac_func();
4349 #endif
4351 ; return 0; }
4353 if { (eval echo configure:4354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4354 rm -rf conftest*
4355 eval "ac_cv_func_$ac_func=yes"
4356 else
4357 echo "configure: failed program was:" >&5
4358 cat conftest.$ac_ext >&5
4359 rm -rf conftest*
4360 eval "ac_cv_func_$ac_func=no"
4362 rm -f conftest*
4365 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4366 echo "$ac_t""yes" 1>&6
4367 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4368 cat >> confdefs.h <<EOF
4369 #define $ac_tr_func 1
4372 else
4373 echo "$ac_t""no" 1>&6
4374 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4376 done
4378 for ac_func in __signbitf
4380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4381 echo "configure:4382: checking for $ac_func" >&5
4382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4383 echo $ac_n "(cached) $ac_c" 1>&6
4384 else
4385 cat > conftest.$ac_ext <<EOF
4386 #line 4387 "configure"
4387 #include "confdefs.h"
4388 /* System header to define __stub macros and hopefully few prototypes,
4389 which can conflict with char $ac_func(); below. */
4390 #include <assert.h>
4391 /* Override any gcc2 internal prototype to avoid an error. */
4392 /* We use char because int might match the return type of a gcc2
4393 builtin and then its argument prototype would still apply. */
4394 char $ac_func();
4396 int main() {
4398 /* The GNU C library defines this for functions which it implements
4399 to always fail with ENOSYS. Some functions are actually named
4400 something starting with __ and the normal name is an alias. */
4401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4402 choke me
4403 #else
4404 $ac_func();
4405 #endif
4407 ; return 0; }
4409 if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4410 rm -rf conftest*
4411 eval "ac_cv_func_$ac_func=yes"
4412 else
4413 echo "configure: failed program was:" >&5
4414 cat conftest.$ac_ext >&5
4415 rm -rf conftest*
4416 eval "ac_cv_func_$ac_func=no"
4418 rm -f conftest*
4421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4422 echo "$ac_t""yes" 1>&6
4423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4424 cat >> confdefs.h <<EOF
4425 #define $ac_tr_func 1
4428 else
4429 echo "$ac_t""no" 1>&6
4430 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4432 done
4435 if test x$ac_cv_func_copysignl = x"yes"; then
4436 for ac_func in __signbitl
4438 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4439 echo "configure:4440: checking for $ac_func" >&5
4440 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4441 echo $ac_n "(cached) $ac_c" 1>&6
4442 else
4443 cat > conftest.$ac_ext <<EOF
4444 #line 4445 "configure"
4445 #include "confdefs.h"
4446 /* System header to define __stub macros and hopefully few prototypes,
4447 which can conflict with char $ac_func(); below. */
4448 #include <assert.h>
4449 /* Override any gcc2 internal prototype to avoid an error. */
4450 /* We use char because int might match the return type of a gcc2
4451 builtin and then its argument prototype would still apply. */
4452 char $ac_func();
4454 int main() {
4456 /* The GNU C library defines this for functions which it implements
4457 to always fail with ENOSYS. Some functions are actually named
4458 something starting with __ and the normal name is an alias. */
4459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4460 choke me
4461 #else
4462 $ac_func();
4463 #endif
4465 ; return 0; }
4467 if { (eval echo configure:4468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4468 rm -rf conftest*
4469 eval "ac_cv_func_$ac_func=yes"
4470 else
4471 echo "configure: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4473 rm -rf conftest*
4474 eval "ac_cv_func_$ac_func=no"
4476 rm -f conftest*
4479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4480 echo "$ac_t""yes" 1>&6
4481 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4482 cat >> confdefs.h <<EOF
4483 #define $ac_tr_func 1
4486 else
4487 echo "$ac_t""no" 1>&6
4488 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4490 done
4498 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4499 echo "configure:4500: checking for mbstate_t" >&5
4500 cat > conftest.$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4503 #include <wchar.h>
4504 int main() {
4505 mbstate_t teststate;
4506 ; return 0; }
4508 if { (eval echo configure:4509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4509 rm -rf conftest*
4510 have_mbstate_t=yes
4511 else
4512 echo "configure: failed program was:" >&5
4513 cat conftest.$ac_ext >&5
4514 rm -rf conftest*
4515 have_mbstate_t=no
4517 rm -f conftest*
4518 echo "$ac_t""$have_mbstate_t" 1>&6
4519 if test x"$have_mbstate_t" = xyes; then
4520 cat >> confdefs.h <<\EOF
4521 #define HAVE_MBSTATE_T 1
4526 for ac_hdr in wchar.h
4528 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4529 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4530 echo "configure:4531: checking for $ac_hdr" >&5
4531 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4533 else
4534 cat > conftest.$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4537 #include <$ac_hdr>
4539 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4540 { (eval echo configure:4541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4541 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4542 if test -z "$ac_err"; then
4543 rm -rf conftest*
4544 eval "ac_cv_header_$ac_safe=yes"
4545 else
4546 echo "$ac_err" >&5
4547 echo "configure: failed program was:" >&5
4548 cat conftest.$ac_ext >&5
4549 rm -rf conftest*
4550 eval "ac_cv_header_$ac_safe=no"
4552 rm -f conftest*
4554 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4555 echo "$ac_t""yes" 1>&6
4556 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4557 cat >> confdefs.h <<EOF
4558 #define $ac_tr_hdr 1
4560 ac_has_wchar_h=yes
4561 else
4562 echo "$ac_t""no" 1>&6
4563 ac_has_wchar_h=no
4565 done
4567 for ac_hdr in wctype.h
4569 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4570 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4571 echo "configure:4572: checking for $ac_hdr" >&5
4572 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4573 echo $ac_n "(cached) $ac_c" 1>&6
4574 else
4575 cat > conftest.$ac_ext <<EOF
4576 #line 4577 "configure"
4577 #include "confdefs.h"
4578 #include <$ac_hdr>
4580 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4581 { (eval echo configure:4582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4582 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4583 if test -z "$ac_err"; then
4584 rm -rf conftest*
4585 eval "ac_cv_header_$ac_safe=yes"
4586 else
4587 echo "$ac_err" >&5
4588 echo "configure: failed program was:" >&5
4589 cat conftest.$ac_ext >&5
4590 rm -rf conftest*
4591 eval "ac_cv_header_$ac_safe=no"
4593 rm -f conftest*
4595 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4596 echo "$ac_t""yes" 1>&6
4597 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4598 cat >> confdefs.h <<EOF
4599 #define $ac_tr_hdr 1
4601 ac_has_wctype_h=yes
4602 else
4603 echo "$ac_t""no" 1>&6
4604 ac_has_wctype_h=no
4606 done
4609 if test x"$ac_has_wchar_h" = xyes &&
4610 test x"$ac_has_wctype_h" = xyes &&
4611 test x"$enable_c_mbchar" != xno; then
4613 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4614 echo "configure:4615: checking for WCHAR_MIN and WCHAR_MAX" >&5
4615 cat > conftest.$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4618 #include <wchar.h>
4619 int main() {
4620 int i = WCHAR_MIN; int j = WCHAR_MAX;
4621 ; return 0; }
4623 if { (eval echo configure:4624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4624 rm -rf conftest*
4625 has_wchar_minmax=yes
4626 else
4627 echo "configure: failed program was:" >&5
4628 cat conftest.$ac_ext >&5
4629 rm -rf conftest*
4630 has_wchar_minmax=no
4632 rm -f conftest*
4633 echo "$ac_t""$has_wchar_minmax" 1>&6
4635 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4636 echo "configure:4637: checking for WEOF" >&5
4637 cat > conftest.$ac_ext <<EOF
4638 #line 4639 "configure"
4639 #include "confdefs.h"
4641 #include <wchar.h>
4642 #include <stddef.h>
4643 int main() {
4644 wint_t i = WEOF;
4645 ; return 0; }
4647 if { (eval echo configure:4648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4648 rm -rf conftest*
4649 has_weof=yes
4650 else
4651 echo "configure: failed program was:" >&5
4652 cat conftest.$ac_ext >&5
4653 rm -rf conftest*
4654 has_weof=no
4656 rm -f conftest*
4657 echo "$ac_t""$has_weof" 1>&6
4659 ac_wfuncs=yes
4660 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4663 echo "configure:4664: checking for $ac_func" >&5
4664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4665 echo $ac_n "(cached) $ac_c" 1>&6
4666 else
4667 cat > conftest.$ac_ext <<EOF
4668 #line 4669 "configure"
4669 #include "confdefs.h"
4670 /* System header to define __stub macros and hopefully few prototypes,
4671 which can conflict with char $ac_func(); below. */
4672 #include <assert.h>
4673 /* Override any gcc2 internal prototype to avoid an error. */
4674 /* We use char because int might match the return type of a gcc2
4675 builtin and then its argument prototype would still apply. */
4676 char $ac_func();
4678 int main() {
4680 /* The GNU C library defines this for functions which it implements
4681 to always fail with ENOSYS. Some functions are actually named
4682 something starting with __ and the normal name is an alias. */
4683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4684 choke me
4685 #else
4686 $ac_func();
4687 #endif
4689 ; return 0; }
4691 if { (eval echo configure:4692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4692 rm -rf conftest*
4693 eval "ac_cv_func_$ac_func=yes"
4694 else
4695 echo "configure: failed program was:" >&5
4696 cat conftest.$ac_ext >&5
4697 rm -rf conftest*
4698 eval "ac_cv_func_$ac_func=no"
4700 rm -f conftest*
4703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4704 echo "$ac_t""yes" 1>&6
4705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4706 cat >> confdefs.h <<EOF
4707 #define $ac_tr_func 1
4710 else
4711 echo "$ac_t""no" 1>&6
4713 ac_wfuncs=no
4715 done
4718 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4719 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4720 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4721 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4722 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4723 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4726 echo "configure:4727: checking for $ac_func" >&5
4727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4728 echo $ac_n "(cached) $ac_c" 1>&6
4729 else
4730 cat > conftest.$ac_ext <<EOF
4731 #line 4732 "configure"
4732 #include "confdefs.h"
4733 /* System header to define __stub macros and hopefully few prototypes,
4734 which can conflict with char $ac_func(); below. */
4735 #include <assert.h>
4736 /* Override any gcc2 internal prototype to avoid an error. */
4737 /* We use char because int might match the return type of a gcc2
4738 builtin and then its argument prototype would still apply. */
4739 char $ac_func();
4741 int main() {
4743 /* The GNU C library defines this for functions which it implements
4744 to always fail with ENOSYS. Some functions are actually named
4745 something starting with __ and the normal name is an alias. */
4746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4747 choke me
4748 #else
4749 $ac_func();
4750 #endif
4752 ; return 0; }
4754 if { (eval echo configure:4755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4755 rm -rf conftest*
4756 eval "ac_cv_func_$ac_func=yes"
4757 else
4758 echo "configure: failed program was:" >&5
4759 cat conftest.$ac_ext >&5
4760 rm -rf conftest*
4761 eval "ac_cv_func_$ac_func=no"
4763 rm -f conftest*
4766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4767 echo "$ac_t""yes" 1>&6
4768 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4769 cat >> confdefs.h <<EOF
4770 #define $ac_tr_func 1
4773 else
4774 echo "$ac_t""no" 1>&6
4776 ac_wfuncs=no
4778 done
4781 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4782 echo "configure:4783: checking for ISO C99 wchar_t support" >&5
4783 if test x"$has_weof" = xyes &&
4784 test x"$has_wchar_minmax" = xyes &&
4785 test x"$ac_wfuncs" = xyes; then
4786 ac_isoC99_wchar_t=yes
4787 else
4788 ac_isoC99_wchar_t=no
4790 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4792 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4793 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4794 echo "configure:4795: checking for iconv.h" >&5
4795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4796 echo $ac_n "(cached) $ac_c" 1>&6
4797 else
4798 cat > conftest.$ac_ext <<EOF
4799 #line 4800 "configure"
4800 #include "confdefs.h"
4801 #include <iconv.h>
4803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4804 { (eval echo configure:4805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4806 if test -z "$ac_err"; then
4807 rm -rf conftest*
4808 eval "ac_cv_header_$ac_safe=yes"
4809 else
4810 echo "$ac_err" >&5
4811 echo "configure: failed program was:" >&5
4812 cat conftest.$ac_ext >&5
4813 rm -rf conftest*
4814 eval "ac_cv_header_$ac_safe=no"
4816 rm -f conftest*
4818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4819 echo "$ac_t""yes" 1>&6
4820 ac_has_iconv_h=yes
4821 else
4822 echo "$ac_t""no" 1>&6
4823 ac_has_iconv_h=no
4826 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4827 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4828 echo "configure:4829: checking for langinfo.h" >&5
4829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4830 echo $ac_n "(cached) $ac_c" 1>&6
4831 else
4832 cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4835 #include <langinfo.h>
4837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4838 { (eval echo configure:4839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4840 if test -z "$ac_err"; then
4841 rm -rf conftest*
4842 eval "ac_cv_header_$ac_safe=yes"
4843 else
4844 echo "$ac_err" >&5
4845 echo "configure: failed program was:" >&5
4846 cat conftest.$ac_ext >&5
4847 rm -rf conftest*
4848 eval "ac_cv_header_$ac_safe=no"
4850 rm -f conftest*
4852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4853 echo "$ac_t""yes" 1>&6
4854 ac_has_langinfo_h=yes
4855 else
4856 echo "$ac_t""no" 1>&6
4857 ac_has_langinfo_h=no
4861 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4862 echo "configure:4863: checking for iconv in -liconv" >&5
4863 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4866 else
4867 ac_save_LIBS="$LIBS"
4868 LIBS="-liconv $LIBS"
4869 cat > conftest.$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4872 /* Override any gcc2 internal prototype to avoid an error. */
4873 /* We use char because int might match the return type of a gcc2
4874 builtin and then its argument prototype would still apply. */
4875 char iconv();
4877 int main() {
4878 iconv()
4879 ; return 0; }
4881 if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4882 rm -rf conftest*
4883 eval "ac_cv_lib_$ac_lib_var=yes"
4884 else
4885 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4887 rm -rf conftest*
4888 eval "ac_cv_lib_$ac_lib_var=no"
4890 rm -f conftest*
4891 LIBS="$ac_save_LIBS"
4894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4895 echo "$ac_t""yes" 1>&6
4896 libiconv="-liconv"
4897 else
4898 echo "$ac_t""no" 1>&6
4901 ac_save_LIBS="$LIBS"
4902 LIBS="$LIBS $libiconv"
4904 for ac_func in iconv_open iconv_close iconv nl_langinfo
4906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4907 echo "configure:4908: checking for $ac_func" >&5
4908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4909 echo $ac_n "(cached) $ac_c" 1>&6
4910 else
4911 cat > conftest.$ac_ext <<EOF
4912 #line 4913 "configure"
4913 #include "confdefs.h"
4914 /* System header to define __stub macros and hopefully few prototypes,
4915 which can conflict with char $ac_func(); below. */
4916 #include <assert.h>
4917 /* Override any gcc2 internal prototype to avoid an error. */
4918 /* We use char because int might match the return type of a gcc2
4919 builtin and then its argument prototype would still apply. */
4920 char $ac_func();
4922 int main() {
4924 /* The GNU C library defines this for functions which it implements
4925 to always fail with ENOSYS. Some functions are actually named
4926 something starting with __ and the normal name is an alias. */
4927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4928 choke me
4929 #else
4930 $ac_func();
4931 #endif
4933 ; return 0; }
4935 if { (eval echo configure:4936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4936 rm -rf conftest*
4937 eval "ac_cv_func_$ac_func=yes"
4938 else
4939 echo "configure: failed program was:" >&5
4940 cat conftest.$ac_ext >&5
4941 rm -rf conftest*
4942 eval "ac_cv_func_$ac_func=no"
4944 rm -f conftest*
4947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4948 echo "$ac_t""yes" 1>&6
4949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4950 cat >> confdefs.h <<EOF
4951 #define $ac_tr_func 1
4954 ac_XPG2funcs=yes
4955 else
4956 echo "$ac_t""no" 1>&6
4957 ac_XPG2funcs=no
4959 done
4962 LIBS="$ac_save_LIBS"
4964 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4965 echo "configure:4966: checking for XPG2 wchar_t support" >&5
4966 if test x"$ac_has_iconv_h" = xyes &&
4967 test x"$ac_has_langinfo_h" = xyes &&
4968 test x"$ac_XPG2funcs" = xyes; then
4969 ac_XPG2_wchar_t=yes
4970 else
4971 ac_XPG2_wchar_t=no
4973 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4975 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4976 echo "configure:4977: checking for enabled wchar_t specializations" >&5
4977 if test x"$ac_isoC99_wchar_t" = xyes &&
4978 test x"$ac_XPG2_wchar_t" = xyes; then
4979 cat >> confdefs.h <<\EOF
4980 #define _GLIBCPP_USE_WCHAR_T 1
4983 echo "$ac_t"""yes"" 1>&6
4984 else
4985 echo "$ac_t"""no"" 1>&6
4987 else
4988 echo "configure: warning: wchar_t support disabled." 1>&2
4991 cat >> confdefs.h <<\EOF
4992 #define HAVE_COPYSIGN 1
4995 cat >> confdefs.h <<\EOF
4996 #define HAVE_COPYSIGNF 1
4999 cat >> confdefs.h <<\EOF
5000 #define HAVE_FINITE 1
5003 cat >> confdefs.h <<\EOF
5004 #define HAVE_FINITEF 1
5007 cat >> confdefs.h <<\EOF
5008 #define HAVE_FREXPF 1
5011 cat >> confdefs.h <<\EOF
5012 #define HAVE_HYPOTF 1
5015 cat >> confdefs.h <<\EOF
5016 #define HAVE_ISINF 1
5019 cat >> confdefs.h <<\EOF
5020 #define HAVE_ISINFF 1
5023 cat >> confdefs.h <<\EOF
5024 #define HAVE_ISNAN 1
5027 cat >> confdefs.h <<\EOF
5028 #define HAVE_ISNANF 1
5031 cat >> confdefs.h <<\EOF
5032 #define HAVE_SINCOS 1
5035 cat >> confdefs.h <<\EOF
5036 #define HAVE_SINCOSF 1
5039 if test x"long_double_math_on_this_cpu" = x"yes"; then
5040 cat >> confdefs.h <<\EOF
5041 #define HAVE_FINITEL 1
5044 cat >> confdefs.h <<\EOF
5045 #define HAVE_HYPOTL 1
5048 cat >> confdefs.h <<\EOF
5049 #define HAVE_ISINFL 1
5052 cat >> confdefs.h <<\EOF
5053 #define HAVE_ISNANL 1
5058 *-hpux*)
5059 # Check for available headers.
5060 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5061 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5062 fp.h locale.h float.h inttypes.h
5064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5066 echo "configure:5067: checking for $ac_hdr" >&5
5067 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5068 echo $ac_n "(cached) $ac_c" 1>&6
5069 else
5070 cat > conftest.$ac_ext <<EOF
5071 #line 5072 "configure"
5072 #include "confdefs.h"
5073 #include <$ac_hdr>
5075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5076 { (eval echo configure:5077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5078 if test -z "$ac_err"; then
5079 rm -rf conftest*
5080 eval "ac_cv_header_$ac_safe=yes"
5081 else
5082 echo "$ac_err" >&5
5083 echo "configure: failed program was:" >&5
5084 cat conftest.$ac_ext >&5
5085 rm -rf conftest*
5086 eval "ac_cv_header_$ac_safe=no"
5088 rm -f conftest*
5090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5091 echo "$ac_t""yes" 1>&6
5092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5093 cat >> confdefs.h <<EOF
5094 #define $ac_tr_hdr 1
5097 else
5098 echo "$ac_t""no" 1>&6
5100 done
5102 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5105 # If we're not using GNU ld, then there's no point in even trying these
5106 # tests. Check for that first. We should have already tested for gld
5107 # by now (in libtool), but require it now just to be safe...
5108 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5109 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5112 # The name set by libtool depends on the version of libtool. Shame on us
5113 # for depending on an impl detail, but c'est la vie. Older versions used
5114 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5115 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5116 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5117 # set (hence we're using an older libtool), then set it.
5118 if test x${with_gnu_ld+set} != xset; then
5119 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5120 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5121 with_gnu_ld=no
5122 else
5123 with_gnu_ld=$ac_cv_prog_gnu_ld
5127 # Start by getting the version number. I think the libtool test already
5128 # does some of this, but throws away the result.
5130 ldver=`$LD --version 2>/dev/null | head -1 | \
5131 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5133 glibcpp_gnu_ld_version=`echo $ldver | \
5134 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5136 # Set --gc-sections.
5137 if test "$with_gnu_ld" = "notbroken"; then
5138 # GNU ld it is! Joy and bunny rabbits!
5140 # All these tests are for C++; save the language and the compiler flags.
5141 # Need to do this so that g++ won't try to link in libstdc++
5142 ac_test_CFLAGS="${CFLAGS+set}"
5143 ac_save_CFLAGS="$CFLAGS"
5144 CFLAGS='-x c++ -Wl,--gc-sections'
5146 # Check for -Wl,--gc-sections
5147 # XXX This test is broken at the moment, as symbols required for
5148 # linking are now in libsupc++ (not built yet.....). In addition,
5149 # this test has cored on solaris in the past. In addition,
5150 # --gc-sections doesn't really work at the moment (keeps on discarding
5151 # used sections, first .eh_frame and now some of the glibc sections for
5152 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5153 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5154 echo "configure:5155: checking for ld that supports -Wl,--gc-sections" >&5
5155 if test "$cross_compiling" = yes; then
5156 ac_sectionLDflags=yes
5157 else
5158 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5162 int main(void)
5164 try { throw 1; }
5165 catch (...) { };
5166 return 0;
5170 if { (eval echo configure:5171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5171 then
5172 ac_sectionLDflags=yes
5173 else
5174 echo "configure: failed program was:" >&5
5175 cat conftest.$ac_ext >&5
5176 rm -fr conftest*
5177 ac_sectionLDflags=no
5179 rm -fr conftest*
5182 if test "$ac_test_CFLAGS" = set; then
5183 CFLAGS="$ac_save_CFLAGS"
5184 else
5185 # this is the suspicious part
5186 CFLAGS=''
5188 if test "$ac_sectionLDflags" = "yes"; then
5189 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5191 echo "$ac_t""$ac_sectionLDflags" 1>&6
5194 # Set linker optimization flags.
5195 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5196 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5203 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5204 echo "configure:5205: checking for main in -lm" >&5
5205 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5207 echo $ac_n "(cached) $ac_c" 1>&6
5208 else
5209 ac_save_LIBS="$LIBS"
5210 LIBS="-lm $LIBS"
5211 cat > conftest.$ac_ext <<EOF
5212 #line 5213 "configure"
5213 #include "confdefs.h"
5215 int main() {
5216 main()
5217 ; return 0; }
5219 if { (eval echo configure:5220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5220 rm -rf conftest*
5221 eval "ac_cv_lib_$ac_lib_var=yes"
5222 else
5223 echo "configure: failed program was:" >&5
5224 cat conftest.$ac_ext >&5
5225 rm -rf conftest*
5226 eval "ac_cv_lib_$ac_lib_var=no"
5228 rm -f conftest*
5229 LIBS="$ac_save_LIBS"
5232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5233 echo "$ac_t""yes" 1>&6
5234 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5235 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5236 cat >> confdefs.h <<EOF
5237 #define $ac_tr_lib 1
5240 LIBS="-lm $LIBS"
5242 else
5243 echo "$ac_t""no" 1>&6
5246 for ac_func in nan copysignf
5248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5249 echo "configure:5250: checking for $ac_func" >&5
5250 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5251 echo $ac_n "(cached) $ac_c" 1>&6
5252 else
5253 cat > conftest.$ac_ext <<EOF
5254 #line 5255 "configure"
5255 #include "confdefs.h"
5256 /* System header to define __stub macros and hopefully few prototypes,
5257 which can conflict with char $ac_func(); below. */
5258 #include <assert.h>
5259 /* Override any gcc2 internal prototype to avoid an error. */
5260 /* We use char because int might match the return type of a gcc2
5261 builtin and then its argument prototype would still apply. */
5262 char $ac_func();
5264 int main() {
5266 /* The GNU C library defines this for functions which it implements
5267 to always fail with ENOSYS. Some functions are actually named
5268 something starting with __ and the normal name is an alias. */
5269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5270 choke me
5271 #else
5272 $ac_func();
5273 #endif
5275 ; return 0; }
5277 if { (eval echo configure:5278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5278 rm -rf conftest*
5279 eval "ac_cv_func_$ac_func=yes"
5280 else
5281 echo "configure: failed program was:" >&5
5282 cat conftest.$ac_ext >&5
5283 rm -rf conftest*
5284 eval "ac_cv_func_$ac_func=no"
5286 rm -f conftest*
5289 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5290 echo "$ac_t""yes" 1>&6
5291 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5292 cat >> confdefs.h <<EOF
5293 #define $ac_tr_func 1
5296 else
5297 echo "$ac_t""no" 1>&6
5298 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5300 done
5303 for ac_func in __signbit
5305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5306 echo "configure:5307: checking for $ac_func" >&5
5307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5308 echo $ac_n "(cached) $ac_c" 1>&6
5309 else
5310 cat > conftest.$ac_ext <<EOF
5311 #line 5312 "configure"
5312 #include "confdefs.h"
5313 /* System header to define __stub macros and hopefully few prototypes,
5314 which can conflict with char $ac_func(); below. */
5315 #include <assert.h>
5316 /* Override any gcc2 internal prototype to avoid an error. */
5317 /* We use char because int might match the return type of a gcc2
5318 builtin and then its argument prototype would still apply. */
5319 char $ac_func();
5321 int main() {
5323 /* The GNU C library defines this for functions which it implements
5324 to always fail with ENOSYS. Some functions are actually named
5325 something starting with __ and the normal name is an alias. */
5326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5327 choke me
5328 #else
5329 $ac_func();
5330 #endif
5332 ; return 0; }
5334 if { (eval echo configure:5335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5335 rm -rf conftest*
5336 eval "ac_cv_func_$ac_func=yes"
5337 else
5338 echo "configure: failed program was:" >&5
5339 cat conftest.$ac_ext >&5
5340 rm -rf conftest*
5341 eval "ac_cv_func_$ac_func=no"
5343 rm -f conftest*
5346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5347 echo "$ac_t""yes" 1>&6
5348 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5349 cat >> confdefs.h <<EOF
5350 #define $ac_tr_func 1
5353 else
5354 echo "$ac_t""no" 1>&6
5355 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5357 done
5359 for ac_func in __signbitf
5361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5362 echo "configure:5363: checking for $ac_func" >&5
5363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5364 echo $ac_n "(cached) $ac_c" 1>&6
5365 else
5366 cat > conftest.$ac_ext <<EOF
5367 #line 5368 "configure"
5368 #include "confdefs.h"
5369 /* System header to define __stub macros and hopefully few prototypes,
5370 which can conflict with char $ac_func(); below. */
5371 #include <assert.h>
5372 /* Override any gcc2 internal prototype to avoid an error. */
5373 /* We use char because int might match the return type of a gcc2
5374 builtin and then its argument prototype would still apply. */
5375 char $ac_func();
5377 int main() {
5379 /* The GNU C library defines this for functions which it implements
5380 to always fail with ENOSYS. Some functions are actually named
5381 something starting with __ and the normal name is an alias. */
5382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5383 choke me
5384 #else
5385 $ac_func();
5386 #endif
5388 ; return 0; }
5390 if { (eval echo configure:5391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5391 rm -rf conftest*
5392 eval "ac_cv_func_$ac_func=yes"
5393 else
5394 echo "configure: failed program was:" >&5
5395 cat conftest.$ac_ext >&5
5396 rm -rf conftest*
5397 eval "ac_cv_func_$ac_func=no"
5399 rm -f conftest*
5402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5403 echo "$ac_t""yes" 1>&6
5404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5405 cat >> confdefs.h <<EOF
5406 #define $ac_tr_func 1
5409 else
5410 echo "$ac_t""no" 1>&6
5411 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5413 done
5416 if test x$ac_cv_func_copysignl = x"yes"; then
5417 for ac_func in __signbitl
5419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5420 echo "configure:5421: checking for $ac_func" >&5
5421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5422 echo $ac_n "(cached) $ac_c" 1>&6
5423 else
5424 cat > conftest.$ac_ext <<EOF
5425 #line 5426 "configure"
5426 #include "confdefs.h"
5427 /* System header to define __stub macros and hopefully few prototypes,
5428 which can conflict with char $ac_func(); below. */
5429 #include <assert.h>
5430 /* Override any gcc2 internal prototype to avoid an error. */
5431 /* We use char because int might match the return type of a gcc2
5432 builtin and then its argument prototype would still apply. */
5433 char $ac_func();
5435 int main() {
5437 /* The GNU C library defines this for functions which it implements
5438 to always fail with ENOSYS. Some functions are actually named
5439 something starting with __ and the normal name is an alias. */
5440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5441 choke me
5442 #else
5443 $ac_func();
5444 #endif
5446 ; return 0; }
5448 if { (eval echo configure:5449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5449 rm -rf conftest*
5450 eval "ac_cv_func_$ac_func=yes"
5451 else
5452 echo "configure: failed program was:" >&5
5453 cat conftest.$ac_ext >&5
5454 rm -rf conftest*
5455 eval "ac_cv_func_$ac_func=no"
5457 rm -f conftest*
5460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5461 echo "$ac_t""yes" 1>&6
5462 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5463 cat >> confdefs.h <<EOF
5464 #define $ac_tr_func 1
5467 else
5468 echo "$ac_t""no" 1>&6
5469 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5471 done
5479 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5480 echo "configure:5481: checking for mbstate_t" >&5
5481 cat > conftest.$ac_ext <<EOF
5482 #line 5483 "configure"
5483 #include "confdefs.h"
5484 #include <wchar.h>
5485 int main() {
5486 mbstate_t teststate;
5487 ; return 0; }
5489 if { (eval echo configure:5490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5490 rm -rf conftest*
5491 have_mbstate_t=yes
5492 else
5493 echo "configure: failed program was:" >&5
5494 cat conftest.$ac_ext >&5
5495 rm -rf conftest*
5496 have_mbstate_t=no
5498 rm -f conftest*
5499 echo "$ac_t""$have_mbstate_t" 1>&6
5500 if test x"$have_mbstate_t" = xyes; then
5501 cat >> confdefs.h <<\EOF
5502 #define HAVE_MBSTATE_T 1
5507 for ac_hdr in wchar.h
5509 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5510 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5511 echo "configure:5512: checking for $ac_hdr" >&5
5512 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5513 echo $ac_n "(cached) $ac_c" 1>&6
5514 else
5515 cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5518 #include <$ac_hdr>
5520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5521 { (eval echo configure:5522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5523 if test -z "$ac_err"; then
5524 rm -rf conftest*
5525 eval "ac_cv_header_$ac_safe=yes"
5526 else
5527 echo "$ac_err" >&5
5528 echo "configure: failed program was:" >&5
5529 cat conftest.$ac_ext >&5
5530 rm -rf conftest*
5531 eval "ac_cv_header_$ac_safe=no"
5533 rm -f conftest*
5535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5536 echo "$ac_t""yes" 1>&6
5537 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5538 cat >> confdefs.h <<EOF
5539 #define $ac_tr_hdr 1
5541 ac_has_wchar_h=yes
5542 else
5543 echo "$ac_t""no" 1>&6
5544 ac_has_wchar_h=no
5546 done
5548 for ac_hdr in wctype.h
5550 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5551 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5552 echo "configure:5553: checking for $ac_hdr" >&5
5553 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5554 echo $ac_n "(cached) $ac_c" 1>&6
5555 else
5556 cat > conftest.$ac_ext <<EOF
5557 #line 5558 "configure"
5558 #include "confdefs.h"
5559 #include <$ac_hdr>
5561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5562 { (eval echo configure:5563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5564 if test -z "$ac_err"; then
5565 rm -rf conftest*
5566 eval "ac_cv_header_$ac_safe=yes"
5567 else
5568 echo "$ac_err" >&5
5569 echo "configure: failed program was:" >&5
5570 cat conftest.$ac_ext >&5
5571 rm -rf conftest*
5572 eval "ac_cv_header_$ac_safe=no"
5574 rm -f conftest*
5576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5577 echo "$ac_t""yes" 1>&6
5578 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5579 cat >> confdefs.h <<EOF
5580 #define $ac_tr_hdr 1
5582 ac_has_wctype_h=yes
5583 else
5584 echo "$ac_t""no" 1>&6
5585 ac_has_wctype_h=no
5587 done
5590 if test x"$ac_has_wchar_h" = xyes &&
5591 test x"$ac_has_wctype_h" = xyes &&
5592 test x"$enable_c_mbchar" != xno; then
5594 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5595 echo "configure:5596: checking for WCHAR_MIN and WCHAR_MAX" >&5
5596 cat > conftest.$ac_ext <<EOF
5597 #line 5598 "configure"
5598 #include "confdefs.h"
5599 #include <wchar.h>
5600 int main() {
5601 int i = WCHAR_MIN; int j = WCHAR_MAX;
5602 ; return 0; }
5604 if { (eval echo configure:5605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5605 rm -rf conftest*
5606 has_wchar_minmax=yes
5607 else
5608 echo "configure: failed program was:" >&5
5609 cat conftest.$ac_ext >&5
5610 rm -rf conftest*
5611 has_wchar_minmax=no
5613 rm -f conftest*
5614 echo "$ac_t""$has_wchar_minmax" 1>&6
5616 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5617 echo "configure:5618: checking for WEOF" >&5
5618 cat > conftest.$ac_ext <<EOF
5619 #line 5620 "configure"
5620 #include "confdefs.h"
5622 #include <wchar.h>
5623 #include <stddef.h>
5624 int main() {
5625 wint_t i = WEOF;
5626 ; return 0; }
5628 if { (eval echo configure:5629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5629 rm -rf conftest*
5630 has_weof=yes
5631 else
5632 echo "configure: failed program was:" >&5
5633 cat conftest.$ac_ext >&5
5634 rm -rf conftest*
5635 has_weof=no
5637 rm -f conftest*
5638 echo "$ac_t""$has_weof" 1>&6
5640 ac_wfuncs=yes
5641 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5644 echo "configure:5645: checking for $ac_func" >&5
5645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5646 echo $ac_n "(cached) $ac_c" 1>&6
5647 else
5648 cat > conftest.$ac_ext <<EOF
5649 #line 5650 "configure"
5650 #include "confdefs.h"
5651 /* System header to define __stub macros and hopefully few prototypes,
5652 which can conflict with char $ac_func(); below. */
5653 #include <assert.h>
5654 /* Override any gcc2 internal prototype to avoid an error. */
5655 /* We use char because int might match the return type of a gcc2
5656 builtin and then its argument prototype would still apply. */
5657 char $ac_func();
5659 int main() {
5661 /* The GNU C library defines this for functions which it implements
5662 to always fail with ENOSYS. Some functions are actually named
5663 something starting with __ and the normal name is an alias. */
5664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5665 choke me
5666 #else
5667 $ac_func();
5668 #endif
5670 ; return 0; }
5672 if { (eval echo configure:5673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5673 rm -rf conftest*
5674 eval "ac_cv_func_$ac_func=yes"
5675 else
5676 echo "configure: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5678 rm -rf conftest*
5679 eval "ac_cv_func_$ac_func=no"
5681 rm -f conftest*
5684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5685 echo "$ac_t""yes" 1>&6
5686 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5687 cat >> confdefs.h <<EOF
5688 #define $ac_tr_func 1
5691 else
5692 echo "$ac_t""no" 1>&6
5694 ac_wfuncs=no
5696 done
5699 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5700 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5701 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5702 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5703 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5704 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5707 echo "configure:5708: checking for $ac_func" >&5
5708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5709 echo $ac_n "(cached) $ac_c" 1>&6
5710 else
5711 cat > conftest.$ac_ext <<EOF
5712 #line 5713 "configure"
5713 #include "confdefs.h"
5714 /* System header to define __stub macros and hopefully few prototypes,
5715 which can conflict with char $ac_func(); below. */
5716 #include <assert.h>
5717 /* Override any gcc2 internal prototype to avoid an error. */
5718 /* We use char because int might match the return type of a gcc2
5719 builtin and then its argument prototype would still apply. */
5720 char $ac_func();
5722 int main() {
5724 /* The GNU C library defines this for functions which it implements
5725 to always fail with ENOSYS. Some functions are actually named
5726 something starting with __ and the normal name is an alias. */
5727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5728 choke me
5729 #else
5730 $ac_func();
5731 #endif
5733 ; return 0; }
5735 if { (eval echo configure:5736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5736 rm -rf conftest*
5737 eval "ac_cv_func_$ac_func=yes"
5738 else
5739 echo "configure: failed program was:" >&5
5740 cat conftest.$ac_ext >&5
5741 rm -rf conftest*
5742 eval "ac_cv_func_$ac_func=no"
5744 rm -f conftest*
5747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5748 echo "$ac_t""yes" 1>&6
5749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5750 cat >> confdefs.h <<EOF
5751 #define $ac_tr_func 1
5754 else
5755 echo "$ac_t""no" 1>&6
5757 ac_wfuncs=no
5759 done
5762 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5763 echo "configure:5764: checking for ISO C99 wchar_t support" >&5
5764 if test x"$has_weof" = xyes &&
5765 test x"$has_wchar_minmax" = xyes &&
5766 test x"$ac_wfuncs" = xyes; then
5767 ac_isoC99_wchar_t=yes
5768 else
5769 ac_isoC99_wchar_t=no
5771 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5773 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5774 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5775 echo "configure:5776: checking for iconv.h" >&5
5776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5777 echo $ac_n "(cached) $ac_c" 1>&6
5778 else
5779 cat > conftest.$ac_ext <<EOF
5780 #line 5781 "configure"
5781 #include "confdefs.h"
5782 #include <iconv.h>
5784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5785 { (eval echo configure:5786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5787 if test -z "$ac_err"; then
5788 rm -rf conftest*
5789 eval "ac_cv_header_$ac_safe=yes"
5790 else
5791 echo "$ac_err" >&5
5792 echo "configure: failed program was:" >&5
5793 cat conftest.$ac_ext >&5
5794 rm -rf conftest*
5795 eval "ac_cv_header_$ac_safe=no"
5797 rm -f conftest*
5799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5800 echo "$ac_t""yes" 1>&6
5801 ac_has_iconv_h=yes
5802 else
5803 echo "$ac_t""no" 1>&6
5804 ac_has_iconv_h=no
5807 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5808 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5809 echo "configure:5810: checking for langinfo.h" >&5
5810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5811 echo $ac_n "(cached) $ac_c" 1>&6
5812 else
5813 cat > conftest.$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5816 #include <langinfo.h>
5818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5819 { (eval echo configure:5820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5821 if test -z "$ac_err"; then
5822 rm -rf conftest*
5823 eval "ac_cv_header_$ac_safe=yes"
5824 else
5825 echo "$ac_err" >&5
5826 echo "configure: failed program was:" >&5
5827 cat conftest.$ac_ext >&5
5828 rm -rf conftest*
5829 eval "ac_cv_header_$ac_safe=no"
5831 rm -f conftest*
5833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5834 echo "$ac_t""yes" 1>&6
5835 ac_has_langinfo_h=yes
5836 else
5837 echo "$ac_t""no" 1>&6
5838 ac_has_langinfo_h=no
5842 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5843 echo "configure:5844: checking for iconv in -liconv" >&5
5844 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5846 echo $ac_n "(cached) $ac_c" 1>&6
5847 else
5848 ac_save_LIBS="$LIBS"
5849 LIBS="-liconv $LIBS"
5850 cat > conftest.$ac_ext <<EOF
5851 #line 5852 "configure"
5852 #include "confdefs.h"
5853 /* Override any gcc2 internal prototype to avoid an error. */
5854 /* We use char because int might match the return type of a gcc2
5855 builtin and then its argument prototype would still apply. */
5856 char iconv();
5858 int main() {
5859 iconv()
5860 ; return 0; }
5862 if { (eval echo configure:5863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5863 rm -rf conftest*
5864 eval "ac_cv_lib_$ac_lib_var=yes"
5865 else
5866 echo "configure: failed program was:" >&5
5867 cat conftest.$ac_ext >&5
5868 rm -rf conftest*
5869 eval "ac_cv_lib_$ac_lib_var=no"
5871 rm -f conftest*
5872 LIBS="$ac_save_LIBS"
5875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5876 echo "$ac_t""yes" 1>&6
5877 libiconv="-liconv"
5878 else
5879 echo "$ac_t""no" 1>&6
5882 ac_save_LIBS="$LIBS"
5883 LIBS="$LIBS $libiconv"
5885 for ac_func in iconv_open iconv_close iconv nl_langinfo
5887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5888 echo "configure:5889: checking for $ac_func" >&5
5889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5890 echo $ac_n "(cached) $ac_c" 1>&6
5891 else
5892 cat > conftest.$ac_ext <<EOF
5893 #line 5894 "configure"
5894 #include "confdefs.h"
5895 /* System header to define __stub macros and hopefully few prototypes,
5896 which can conflict with char $ac_func(); below. */
5897 #include <assert.h>
5898 /* Override any gcc2 internal prototype to avoid an error. */
5899 /* We use char because int might match the return type of a gcc2
5900 builtin and then its argument prototype would still apply. */
5901 char $ac_func();
5903 int main() {
5905 /* The GNU C library defines this for functions which it implements
5906 to always fail with ENOSYS. Some functions are actually named
5907 something starting with __ and the normal name is an alias. */
5908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5909 choke me
5910 #else
5911 $ac_func();
5912 #endif
5914 ; return 0; }
5916 if { (eval echo configure:5917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5917 rm -rf conftest*
5918 eval "ac_cv_func_$ac_func=yes"
5919 else
5920 echo "configure: failed program was:" >&5
5921 cat conftest.$ac_ext >&5
5922 rm -rf conftest*
5923 eval "ac_cv_func_$ac_func=no"
5925 rm -f conftest*
5928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5929 echo "$ac_t""yes" 1>&6
5930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5931 cat >> confdefs.h <<EOF
5932 #define $ac_tr_func 1
5935 ac_XPG2funcs=yes
5936 else
5937 echo "$ac_t""no" 1>&6
5938 ac_XPG2funcs=no
5940 done
5943 LIBS="$ac_save_LIBS"
5945 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5946 echo "configure:5947: checking for XPG2 wchar_t support" >&5
5947 if test x"$ac_has_iconv_h" = xyes &&
5948 test x"$ac_has_langinfo_h" = xyes &&
5949 test x"$ac_XPG2funcs" = xyes; then
5950 ac_XPG2_wchar_t=yes
5951 else
5952 ac_XPG2_wchar_t=no
5954 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5956 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5957 echo "configure:5958: checking for enabled wchar_t specializations" >&5
5958 if test x"$ac_isoC99_wchar_t" = xyes &&
5959 test x"$ac_XPG2_wchar_t" = xyes; then
5960 cat >> confdefs.h <<\EOF
5961 #define _GLIBCPP_USE_WCHAR_T 1
5964 echo "$ac_t"""yes"" 1>&6
5965 else
5966 echo "$ac_t"""no"" 1>&6
5968 else
5969 echo "configure: warning: wchar_t support disabled." 1>&2
5972 os_include_dir="os/hpux"
5973 cat >> confdefs.h <<\EOF
5974 #define HAVE_COPYSIGN 1
5977 cat >> confdefs.h <<\EOF
5978 #define HAVE_COPYSIGNF 1
5981 cat >> confdefs.h <<\EOF
5982 #define HAVE_FREXPF 1
5985 cat >> confdefs.h <<\EOF
5986 #define HAVE_HYPOT 1
5989 case "$target_alias" in
5990 *-hpux10*)
5991 cat >> confdefs.h <<\EOF
5992 #define HAVE_FINITE 1
5995 cat >> confdefs.h <<\EOF
5996 #define HAVE_FINITEF 1
5999 cat >> confdefs.h <<\EOF
6000 #define HAVE_ISINF 1
6003 cat >> confdefs.h <<\EOF
6004 #define HAVE_ISINFF 1
6007 cat >> confdefs.h <<\EOF
6008 #define HAVE_ISNAN 1
6011 cat >> confdefs.h <<\EOF
6012 #define HAVE_ISNANF 1
6016 esac
6019 *-netbsd*)
6020 # Check for available headers.
6021 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6022 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6023 fp.h locale.h float.h inttypes.h
6025 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6027 echo "configure:6028: checking for $ac_hdr" >&5
6028 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6029 echo $ac_n "(cached) $ac_c" 1>&6
6030 else
6031 cat > conftest.$ac_ext <<EOF
6032 #line 6033 "configure"
6033 #include "confdefs.h"
6034 #include <$ac_hdr>
6036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6037 { (eval echo configure:6038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6039 if test -z "$ac_err"; then
6040 rm -rf conftest*
6041 eval "ac_cv_header_$ac_safe=yes"
6042 else
6043 echo "$ac_err" >&5
6044 echo "configure: failed program was:" >&5
6045 cat conftest.$ac_ext >&5
6046 rm -rf conftest*
6047 eval "ac_cv_header_$ac_safe=no"
6049 rm -f conftest*
6051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6052 echo "$ac_t""yes" 1>&6
6053 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6054 cat >> confdefs.h <<EOF
6055 #define $ac_tr_hdr 1
6058 else
6059 echo "$ac_t""no" 1>&6
6061 done
6063 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6066 # If we're not using GNU ld, then there's no point in even trying these
6067 # tests. Check for that first. We should have already tested for gld
6068 # by now (in libtool), but require it now just to be safe...
6069 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6070 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6073 # The name set by libtool depends on the version of libtool. Shame on us
6074 # for depending on an impl detail, but c'est la vie. Older versions used
6075 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6076 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6077 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6078 # set (hence we're using an older libtool), then set it.
6079 if test x${with_gnu_ld+set} != xset; then
6080 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6081 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6082 with_gnu_ld=no
6083 else
6084 with_gnu_ld=$ac_cv_prog_gnu_ld
6088 # Start by getting the version number. I think the libtool test already
6089 # does some of this, but throws away the result.
6091 ldver=`$LD --version 2>/dev/null | head -1 | \
6092 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6094 glibcpp_gnu_ld_version=`echo $ldver | \
6095 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6097 # Set --gc-sections.
6098 if test "$with_gnu_ld" = "notbroken"; then
6099 # GNU ld it is! Joy and bunny rabbits!
6101 # All these tests are for C++; save the language and the compiler flags.
6102 # Need to do this so that g++ won't try to link in libstdc++
6103 ac_test_CFLAGS="${CFLAGS+set}"
6104 ac_save_CFLAGS="$CFLAGS"
6105 CFLAGS='-x c++ -Wl,--gc-sections'
6107 # Check for -Wl,--gc-sections
6108 # XXX This test is broken at the moment, as symbols required for
6109 # linking are now in libsupc++ (not built yet.....). In addition,
6110 # this test has cored on solaris in the past. In addition,
6111 # --gc-sections doesn't really work at the moment (keeps on discarding
6112 # used sections, first .eh_frame and now some of the glibc sections for
6113 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6114 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6115 echo "configure:6116: checking for ld that supports -Wl,--gc-sections" >&5
6116 if test "$cross_compiling" = yes; then
6117 ac_sectionLDflags=yes
6118 else
6119 cat > conftest.$ac_ext <<EOF
6120 #line 6121 "configure"
6121 #include "confdefs.h"
6123 int main(void)
6125 try { throw 1; }
6126 catch (...) { };
6127 return 0;
6131 if { (eval echo configure:6132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6132 then
6133 ac_sectionLDflags=yes
6134 else
6135 echo "configure: failed program was:" >&5
6136 cat conftest.$ac_ext >&5
6137 rm -fr conftest*
6138 ac_sectionLDflags=no
6140 rm -fr conftest*
6143 if test "$ac_test_CFLAGS" = set; then
6144 CFLAGS="$ac_save_CFLAGS"
6145 else
6146 # this is the suspicious part
6147 CFLAGS=''
6149 if test "$ac_sectionLDflags" = "yes"; then
6150 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6152 echo "$ac_t""$ac_sectionLDflags" 1>&6
6155 # Set linker optimization flags.
6156 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6157 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6164 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6165 echo "configure:6166: checking for main in -lm" >&5
6166 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6168 echo $ac_n "(cached) $ac_c" 1>&6
6169 else
6170 ac_save_LIBS="$LIBS"
6171 LIBS="-lm $LIBS"
6172 cat > conftest.$ac_ext <<EOF
6173 #line 6174 "configure"
6174 #include "confdefs.h"
6176 int main() {
6177 main()
6178 ; return 0; }
6180 if { (eval echo configure:6181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6181 rm -rf conftest*
6182 eval "ac_cv_lib_$ac_lib_var=yes"
6183 else
6184 echo "configure: failed program was:" >&5
6185 cat conftest.$ac_ext >&5
6186 rm -rf conftest*
6187 eval "ac_cv_lib_$ac_lib_var=no"
6189 rm -f conftest*
6190 LIBS="$ac_save_LIBS"
6193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6194 echo "$ac_t""yes" 1>&6
6195 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6196 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6197 cat >> confdefs.h <<EOF
6198 #define $ac_tr_lib 1
6201 LIBS="-lm $LIBS"
6203 else
6204 echo "$ac_t""no" 1>&6
6207 for ac_func in nan copysignf
6209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6210 echo "configure:6211: checking for $ac_func" >&5
6211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6212 echo $ac_n "(cached) $ac_c" 1>&6
6213 else
6214 cat > conftest.$ac_ext <<EOF
6215 #line 6216 "configure"
6216 #include "confdefs.h"
6217 /* System header to define __stub macros and hopefully few prototypes,
6218 which can conflict with char $ac_func(); below. */
6219 #include <assert.h>
6220 /* Override any gcc2 internal prototype to avoid an error. */
6221 /* We use char because int might match the return type of a gcc2
6222 builtin and then its argument prototype would still apply. */
6223 char $ac_func();
6225 int main() {
6227 /* The GNU C library defines this for functions which it implements
6228 to always fail with ENOSYS. Some functions are actually named
6229 something starting with __ and the normal name is an alias. */
6230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6231 choke me
6232 #else
6233 $ac_func();
6234 #endif
6236 ; return 0; }
6238 if { (eval echo configure:6239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6239 rm -rf conftest*
6240 eval "ac_cv_func_$ac_func=yes"
6241 else
6242 echo "configure: failed program was:" >&5
6243 cat conftest.$ac_ext >&5
6244 rm -rf conftest*
6245 eval "ac_cv_func_$ac_func=no"
6247 rm -f conftest*
6250 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6251 echo "$ac_t""yes" 1>&6
6252 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6253 cat >> confdefs.h <<EOF
6254 #define $ac_tr_func 1
6257 else
6258 echo "$ac_t""no" 1>&6
6259 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6261 done
6264 for ac_func in __signbit
6266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6267 echo "configure:6268: checking for $ac_func" >&5
6268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6269 echo $ac_n "(cached) $ac_c" 1>&6
6270 else
6271 cat > conftest.$ac_ext <<EOF
6272 #line 6273 "configure"
6273 #include "confdefs.h"
6274 /* System header to define __stub macros and hopefully few prototypes,
6275 which can conflict with char $ac_func(); below. */
6276 #include <assert.h>
6277 /* Override any gcc2 internal prototype to avoid an error. */
6278 /* We use char because int might match the return type of a gcc2
6279 builtin and then its argument prototype would still apply. */
6280 char $ac_func();
6282 int main() {
6284 /* The GNU C library defines this for functions which it implements
6285 to always fail with ENOSYS. Some functions are actually named
6286 something starting with __ and the normal name is an alias. */
6287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6288 choke me
6289 #else
6290 $ac_func();
6291 #endif
6293 ; return 0; }
6295 if { (eval echo configure:6296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6296 rm -rf conftest*
6297 eval "ac_cv_func_$ac_func=yes"
6298 else
6299 echo "configure: failed program was:" >&5
6300 cat conftest.$ac_ext >&5
6301 rm -rf conftest*
6302 eval "ac_cv_func_$ac_func=no"
6304 rm -f conftest*
6307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6308 echo "$ac_t""yes" 1>&6
6309 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6310 cat >> confdefs.h <<EOF
6311 #define $ac_tr_func 1
6314 else
6315 echo "$ac_t""no" 1>&6
6316 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6318 done
6320 for ac_func in __signbitf
6322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6323 echo "configure:6324: checking for $ac_func" >&5
6324 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6325 echo $ac_n "(cached) $ac_c" 1>&6
6326 else
6327 cat > conftest.$ac_ext <<EOF
6328 #line 6329 "configure"
6329 #include "confdefs.h"
6330 /* System header to define __stub macros and hopefully few prototypes,
6331 which can conflict with char $ac_func(); below. */
6332 #include <assert.h>
6333 /* Override any gcc2 internal prototype to avoid an error. */
6334 /* We use char because int might match the return type of a gcc2
6335 builtin and then its argument prototype would still apply. */
6336 char $ac_func();
6338 int main() {
6340 /* The GNU C library defines this for functions which it implements
6341 to always fail with ENOSYS. Some functions are actually named
6342 something starting with __ and the normal name is an alias. */
6343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6344 choke me
6345 #else
6346 $ac_func();
6347 #endif
6349 ; return 0; }
6351 if { (eval echo configure:6352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6352 rm -rf conftest*
6353 eval "ac_cv_func_$ac_func=yes"
6354 else
6355 echo "configure: failed program was:" >&5
6356 cat conftest.$ac_ext >&5
6357 rm -rf conftest*
6358 eval "ac_cv_func_$ac_func=no"
6360 rm -f conftest*
6363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6364 echo "$ac_t""yes" 1>&6
6365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6366 cat >> confdefs.h <<EOF
6367 #define $ac_tr_func 1
6370 else
6371 echo "$ac_t""no" 1>&6
6372 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6374 done
6377 if test x$ac_cv_func_copysignl = x"yes"; then
6378 for ac_func in __signbitl
6380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6381 echo "configure:6382: checking for $ac_func" >&5
6382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6383 echo $ac_n "(cached) $ac_c" 1>&6
6384 else
6385 cat > conftest.$ac_ext <<EOF
6386 #line 6387 "configure"
6387 #include "confdefs.h"
6388 /* System header to define __stub macros and hopefully few prototypes,
6389 which can conflict with char $ac_func(); below. */
6390 #include <assert.h>
6391 /* Override any gcc2 internal prototype to avoid an error. */
6392 /* We use char because int might match the return type of a gcc2
6393 builtin and then its argument prototype would still apply. */
6394 char $ac_func();
6396 int main() {
6398 /* The GNU C library defines this for functions which it implements
6399 to always fail with ENOSYS. Some functions are actually named
6400 something starting with __ and the normal name is an alias. */
6401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6402 choke me
6403 #else
6404 $ac_func();
6405 #endif
6407 ; return 0; }
6409 if { (eval echo configure:6410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6410 rm -rf conftest*
6411 eval "ac_cv_func_$ac_func=yes"
6412 else
6413 echo "configure: failed program was:" >&5
6414 cat conftest.$ac_ext >&5
6415 rm -rf conftest*
6416 eval "ac_cv_func_$ac_func=no"
6418 rm -f conftest*
6421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6422 echo "$ac_t""yes" 1>&6
6423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6424 cat >> confdefs.h <<EOF
6425 #define $ac_tr_func 1
6428 else
6429 echo "$ac_t""no" 1>&6
6430 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6432 done
6440 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6441 echo "configure:6442: checking for mbstate_t" >&5
6442 cat > conftest.$ac_ext <<EOF
6443 #line 6444 "configure"
6444 #include "confdefs.h"
6445 #include <wchar.h>
6446 int main() {
6447 mbstate_t teststate;
6448 ; return 0; }
6450 if { (eval echo configure:6451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6451 rm -rf conftest*
6452 have_mbstate_t=yes
6453 else
6454 echo "configure: failed program was:" >&5
6455 cat conftest.$ac_ext >&5
6456 rm -rf conftest*
6457 have_mbstate_t=no
6459 rm -f conftest*
6460 echo "$ac_t""$have_mbstate_t" 1>&6
6461 if test x"$have_mbstate_t" = xyes; then
6462 cat >> confdefs.h <<\EOF
6463 #define HAVE_MBSTATE_T 1
6468 for ac_hdr in wchar.h
6470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6472 echo "configure:6473: checking for $ac_hdr" >&5
6473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6474 echo $ac_n "(cached) $ac_c" 1>&6
6475 else
6476 cat > conftest.$ac_ext <<EOF
6477 #line 6478 "configure"
6478 #include "confdefs.h"
6479 #include <$ac_hdr>
6481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6482 { (eval echo configure:6483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6484 if test -z "$ac_err"; then
6485 rm -rf conftest*
6486 eval "ac_cv_header_$ac_safe=yes"
6487 else
6488 echo "$ac_err" >&5
6489 echo "configure: failed program was:" >&5
6490 cat conftest.$ac_ext >&5
6491 rm -rf conftest*
6492 eval "ac_cv_header_$ac_safe=no"
6494 rm -f conftest*
6496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6497 echo "$ac_t""yes" 1>&6
6498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6499 cat >> confdefs.h <<EOF
6500 #define $ac_tr_hdr 1
6502 ac_has_wchar_h=yes
6503 else
6504 echo "$ac_t""no" 1>&6
6505 ac_has_wchar_h=no
6507 done
6509 for ac_hdr in wctype.h
6511 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6512 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6513 echo "configure:6514: checking for $ac_hdr" >&5
6514 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6515 echo $ac_n "(cached) $ac_c" 1>&6
6516 else
6517 cat > conftest.$ac_ext <<EOF
6518 #line 6519 "configure"
6519 #include "confdefs.h"
6520 #include <$ac_hdr>
6522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6523 { (eval echo configure:6524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6525 if test -z "$ac_err"; then
6526 rm -rf conftest*
6527 eval "ac_cv_header_$ac_safe=yes"
6528 else
6529 echo "$ac_err" >&5
6530 echo "configure: failed program was:" >&5
6531 cat conftest.$ac_ext >&5
6532 rm -rf conftest*
6533 eval "ac_cv_header_$ac_safe=no"
6535 rm -f conftest*
6537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6538 echo "$ac_t""yes" 1>&6
6539 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6540 cat >> confdefs.h <<EOF
6541 #define $ac_tr_hdr 1
6543 ac_has_wctype_h=yes
6544 else
6545 echo "$ac_t""no" 1>&6
6546 ac_has_wctype_h=no
6548 done
6551 if test x"$ac_has_wchar_h" = xyes &&
6552 test x"$ac_has_wctype_h" = xyes &&
6553 test x"$enable_c_mbchar" != xno; then
6555 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6556 echo "configure:6557: checking for WCHAR_MIN and WCHAR_MAX" >&5
6557 cat > conftest.$ac_ext <<EOF
6558 #line 6559 "configure"
6559 #include "confdefs.h"
6560 #include <wchar.h>
6561 int main() {
6562 int i = WCHAR_MIN; int j = WCHAR_MAX;
6563 ; return 0; }
6565 if { (eval echo configure:6566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6566 rm -rf conftest*
6567 has_wchar_minmax=yes
6568 else
6569 echo "configure: failed program was:" >&5
6570 cat conftest.$ac_ext >&5
6571 rm -rf conftest*
6572 has_wchar_minmax=no
6574 rm -f conftest*
6575 echo "$ac_t""$has_wchar_minmax" 1>&6
6577 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6578 echo "configure:6579: checking for WEOF" >&5
6579 cat > conftest.$ac_ext <<EOF
6580 #line 6581 "configure"
6581 #include "confdefs.h"
6583 #include <wchar.h>
6584 #include <stddef.h>
6585 int main() {
6586 wint_t i = WEOF;
6587 ; return 0; }
6589 if { (eval echo configure:6590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6590 rm -rf conftest*
6591 has_weof=yes
6592 else
6593 echo "configure: failed program was:" >&5
6594 cat conftest.$ac_ext >&5
6595 rm -rf conftest*
6596 has_weof=no
6598 rm -f conftest*
6599 echo "$ac_t""$has_weof" 1>&6
6601 ac_wfuncs=yes
6602 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6605 echo "configure:6606: checking for $ac_func" >&5
6606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6607 echo $ac_n "(cached) $ac_c" 1>&6
6608 else
6609 cat > conftest.$ac_ext <<EOF
6610 #line 6611 "configure"
6611 #include "confdefs.h"
6612 /* System header to define __stub macros and hopefully few prototypes,
6613 which can conflict with char $ac_func(); below. */
6614 #include <assert.h>
6615 /* Override any gcc2 internal prototype to avoid an error. */
6616 /* We use char because int might match the return type of a gcc2
6617 builtin and then its argument prototype would still apply. */
6618 char $ac_func();
6620 int main() {
6622 /* The GNU C library defines this for functions which it implements
6623 to always fail with ENOSYS. Some functions are actually named
6624 something starting with __ and the normal name is an alias. */
6625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6626 choke me
6627 #else
6628 $ac_func();
6629 #endif
6631 ; return 0; }
6633 if { (eval echo configure:6634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6634 rm -rf conftest*
6635 eval "ac_cv_func_$ac_func=yes"
6636 else
6637 echo "configure: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6639 rm -rf conftest*
6640 eval "ac_cv_func_$ac_func=no"
6642 rm -f conftest*
6645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6646 echo "$ac_t""yes" 1>&6
6647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6648 cat >> confdefs.h <<EOF
6649 #define $ac_tr_func 1
6652 else
6653 echo "$ac_t""no" 1>&6
6655 ac_wfuncs=no
6657 done
6660 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6661 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6662 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6663 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6664 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6665 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6668 echo "configure:6669: checking for $ac_func" >&5
6669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6670 echo $ac_n "(cached) $ac_c" 1>&6
6671 else
6672 cat > conftest.$ac_ext <<EOF
6673 #line 6674 "configure"
6674 #include "confdefs.h"
6675 /* System header to define __stub macros and hopefully few prototypes,
6676 which can conflict with char $ac_func(); below. */
6677 #include <assert.h>
6678 /* Override any gcc2 internal prototype to avoid an error. */
6679 /* We use char because int might match the return type of a gcc2
6680 builtin and then its argument prototype would still apply. */
6681 char $ac_func();
6683 int main() {
6685 /* The GNU C library defines this for functions which it implements
6686 to always fail with ENOSYS. Some functions are actually named
6687 something starting with __ and the normal name is an alias. */
6688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6689 choke me
6690 #else
6691 $ac_func();
6692 #endif
6694 ; return 0; }
6696 if { (eval echo configure:6697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6697 rm -rf conftest*
6698 eval "ac_cv_func_$ac_func=yes"
6699 else
6700 echo "configure: failed program was:" >&5
6701 cat conftest.$ac_ext >&5
6702 rm -rf conftest*
6703 eval "ac_cv_func_$ac_func=no"
6705 rm -f conftest*
6708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6709 echo "$ac_t""yes" 1>&6
6710 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6711 cat >> confdefs.h <<EOF
6712 #define $ac_tr_func 1
6715 else
6716 echo "$ac_t""no" 1>&6
6718 ac_wfuncs=no
6720 done
6723 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6724 echo "configure:6725: checking for ISO C99 wchar_t support" >&5
6725 if test x"$has_weof" = xyes &&
6726 test x"$has_wchar_minmax" = xyes &&
6727 test x"$ac_wfuncs" = xyes; then
6728 ac_isoC99_wchar_t=yes
6729 else
6730 ac_isoC99_wchar_t=no
6732 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6734 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6735 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6736 echo "configure:6737: checking for iconv.h" >&5
6737 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6738 echo $ac_n "(cached) $ac_c" 1>&6
6739 else
6740 cat > conftest.$ac_ext <<EOF
6741 #line 6742 "configure"
6742 #include "confdefs.h"
6743 #include <iconv.h>
6745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6746 { (eval echo configure:6747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6748 if test -z "$ac_err"; then
6749 rm -rf conftest*
6750 eval "ac_cv_header_$ac_safe=yes"
6751 else
6752 echo "$ac_err" >&5
6753 echo "configure: failed program was:" >&5
6754 cat conftest.$ac_ext >&5
6755 rm -rf conftest*
6756 eval "ac_cv_header_$ac_safe=no"
6758 rm -f conftest*
6760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6761 echo "$ac_t""yes" 1>&6
6762 ac_has_iconv_h=yes
6763 else
6764 echo "$ac_t""no" 1>&6
6765 ac_has_iconv_h=no
6768 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6769 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6770 echo "configure:6771: checking for langinfo.h" >&5
6771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6773 else
6774 cat > conftest.$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6777 #include <langinfo.h>
6779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6780 { (eval echo configure:6781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6782 if test -z "$ac_err"; then
6783 rm -rf conftest*
6784 eval "ac_cv_header_$ac_safe=yes"
6785 else
6786 echo "$ac_err" >&5
6787 echo "configure: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6789 rm -rf conftest*
6790 eval "ac_cv_header_$ac_safe=no"
6792 rm -f conftest*
6794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6795 echo "$ac_t""yes" 1>&6
6796 ac_has_langinfo_h=yes
6797 else
6798 echo "$ac_t""no" 1>&6
6799 ac_has_langinfo_h=no
6803 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6804 echo "configure:6805: checking for iconv in -liconv" >&5
6805 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6806 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6807 echo $ac_n "(cached) $ac_c" 1>&6
6808 else
6809 ac_save_LIBS="$LIBS"
6810 LIBS="-liconv $LIBS"
6811 cat > conftest.$ac_ext <<EOF
6812 #line 6813 "configure"
6813 #include "confdefs.h"
6814 /* Override any gcc2 internal prototype to avoid an error. */
6815 /* We use char because int might match the return type of a gcc2
6816 builtin and then its argument prototype would still apply. */
6817 char iconv();
6819 int main() {
6820 iconv()
6821 ; return 0; }
6823 if { (eval echo configure:6824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6824 rm -rf conftest*
6825 eval "ac_cv_lib_$ac_lib_var=yes"
6826 else
6827 echo "configure: failed program was:" >&5
6828 cat conftest.$ac_ext >&5
6829 rm -rf conftest*
6830 eval "ac_cv_lib_$ac_lib_var=no"
6832 rm -f conftest*
6833 LIBS="$ac_save_LIBS"
6836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6837 echo "$ac_t""yes" 1>&6
6838 libiconv="-liconv"
6839 else
6840 echo "$ac_t""no" 1>&6
6843 ac_save_LIBS="$LIBS"
6844 LIBS="$LIBS $libiconv"
6846 for ac_func in iconv_open iconv_close iconv nl_langinfo
6848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6849 echo "configure:6850: checking for $ac_func" >&5
6850 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6851 echo $ac_n "(cached) $ac_c" 1>&6
6852 else
6853 cat > conftest.$ac_ext <<EOF
6854 #line 6855 "configure"
6855 #include "confdefs.h"
6856 /* System header to define __stub macros and hopefully few prototypes,
6857 which can conflict with char $ac_func(); below. */
6858 #include <assert.h>
6859 /* Override any gcc2 internal prototype to avoid an error. */
6860 /* We use char because int might match the return type of a gcc2
6861 builtin and then its argument prototype would still apply. */
6862 char $ac_func();
6864 int main() {
6866 /* The GNU C library defines this for functions which it implements
6867 to always fail with ENOSYS. Some functions are actually named
6868 something starting with __ and the normal name is an alias. */
6869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6870 choke me
6871 #else
6872 $ac_func();
6873 #endif
6875 ; return 0; }
6877 if { (eval echo configure:6878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6878 rm -rf conftest*
6879 eval "ac_cv_func_$ac_func=yes"
6880 else
6881 echo "configure: failed program was:" >&5
6882 cat conftest.$ac_ext >&5
6883 rm -rf conftest*
6884 eval "ac_cv_func_$ac_func=no"
6886 rm -f conftest*
6889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6890 echo "$ac_t""yes" 1>&6
6891 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6892 cat >> confdefs.h <<EOF
6893 #define $ac_tr_func 1
6896 ac_XPG2funcs=yes
6897 else
6898 echo "$ac_t""no" 1>&6
6899 ac_XPG2funcs=no
6901 done
6904 LIBS="$ac_save_LIBS"
6906 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6907 echo "configure:6908: checking for XPG2 wchar_t support" >&5
6908 if test x"$ac_has_iconv_h" = xyes &&
6909 test x"$ac_has_langinfo_h" = xyes &&
6910 test x"$ac_XPG2funcs" = xyes; then
6911 ac_XPG2_wchar_t=yes
6912 else
6913 ac_XPG2_wchar_t=no
6915 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6917 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6918 echo "configure:6919: checking for enabled wchar_t specializations" >&5
6919 if test x"$ac_isoC99_wchar_t" = xyes &&
6920 test x"$ac_XPG2_wchar_t" = xyes; then
6921 cat >> confdefs.h <<\EOF
6922 #define _GLIBCPP_USE_WCHAR_T 1
6925 echo "$ac_t"""yes"" 1>&6
6926 else
6927 echo "$ac_t"""no"" 1>&6
6929 else
6930 echo "configure: warning: wchar_t support disabled." 1>&2
6933 os_include_dir="os/bsd/netbsd"
6934 cat >> confdefs.h <<\EOF
6935 #define HAVE_COPYSIGN 1
6938 cat >> confdefs.h <<\EOF
6939 #define HAVE_COPYSIGNF 1
6942 cat >> confdefs.h <<\EOF
6943 #define HAVE_FINITEF 1
6946 cat >> confdefs.h <<\EOF
6947 #define HAVE_FINITE 1
6950 cat >> confdefs.h <<\EOF
6951 #define HAVE_FREXPF 1
6954 cat >> confdefs.h <<\EOF
6955 #define HAVE_HYPOTF 1
6958 cat >> confdefs.h <<\EOF
6959 #define HAVE_ISINF 1
6962 cat >> confdefs.h <<\EOF
6963 #define HAVE_ISINFF 1
6966 cat >> confdefs.h <<\EOF
6967 #define HAVE_ISNAN 1
6970 cat >> confdefs.h <<\EOF
6971 #define HAVE_ISNANF 1
6974 if test x"long_double_math_on_this_cpu" = x"yes"; then
6975 cat >> confdefs.h <<\EOF
6976 #define HAVE_FINITEL 1
6979 cat >> confdefs.h <<\EOF
6980 #define HAVE_ISINFL 1
6983 cat >> confdefs.h <<\EOF
6984 #define HAVE_ISNANL 1
6989 *-mingw32*)
6990 for ac_hdr in sys/types.h locale.h float.h
6992 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6994 echo "configure:6995: checking for $ac_hdr" >&5
6995 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6996 echo $ac_n "(cached) $ac_c" 1>&6
6997 else
6998 cat > conftest.$ac_ext <<EOF
6999 #line 7000 "configure"
7000 #include "confdefs.h"
7001 #include <$ac_hdr>
7003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7004 { (eval echo configure:7005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7005 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7006 if test -z "$ac_err"; then
7007 rm -rf conftest*
7008 eval "ac_cv_header_$ac_safe=yes"
7009 else
7010 echo "$ac_err" >&5
7011 echo "configure: failed program was:" >&5
7012 cat conftest.$ac_ext >&5
7013 rm -rf conftest*
7014 eval "ac_cv_header_$ac_safe=no"
7016 rm -f conftest*
7018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7019 echo "$ac_t""yes" 1>&6
7020 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7021 cat >> confdefs.h <<EOF
7022 #define $ac_tr_hdr 1
7025 else
7026 echo "$ac_t""no" 1>&6
7028 done
7031 # If we're not using GNU ld, then there's no point in even trying these
7032 # tests. Check for that first. We should have already tested for gld
7033 # by now (in libtool), but require it now just to be safe...
7034 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7035 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7038 # The name set by libtool depends on the version of libtool. Shame on us
7039 # for depending on an impl detail, but c'est la vie. Older versions used
7040 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7041 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7042 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7043 # set (hence we're using an older libtool), then set it.
7044 if test x${with_gnu_ld+set} != xset; then
7045 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7046 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7047 with_gnu_ld=no
7048 else
7049 with_gnu_ld=$ac_cv_prog_gnu_ld
7053 # Start by getting the version number. I think the libtool test already
7054 # does some of this, but throws away the result.
7056 ldver=`$LD --version 2>/dev/null | head -1 | \
7057 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7059 glibcpp_gnu_ld_version=`echo $ldver | \
7060 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7062 # Set --gc-sections.
7063 if test "$with_gnu_ld" = "notbroken"; then
7064 # GNU ld it is! Joy and bunny rabbits!
7066 # All these tests are for C++; save the language and the compiler flags.
7067 # Need to do this so that g++ won't try to link in libstdc++
7068 ac_test_CFLAGS="${CFLAGS+set}"
7069 ac_save_CFLAGS="$CFLAGS"
7070 CFLAGS='-x c++ -Wl,--gc-sections'
7072 # Check for -Wl,--gc-sections
7073 # XXX This test is broken at the moment, as symbols required for
7074 # linking are now in libsupc++ (not built yet.....). In addition,
7075 # this test has cored on solaris in the past. In addition,
7076 # --gc-sections doesn't really work at the moment (keeps on discarding
7077 # used sections, first .eh_frame and now some of the glibc sections for
7078 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7079 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7080 echo "configure:7081: checking for ld that supports -Wl,--gc-sections" >&5
7081 if test "$cross_compiling" = yes; then
7082 ac_sectionLDflags=yes
7083 else
7084 cat > conftest.$ac_ext <<EOF
7085 #line 7086 "configure"
7086 #include "confdefs.h"
7088 int main(void)
7090 try { throw 1; }
7091 catch (...) { };
7092 return 0;
7096 if { (eval echo configure:7097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7097 then
7098 ac_sectionLDflags=yes
7099 else
7100 echo "configure: failed program was:" >&5
7101 cat conftest.$ac_ext >&5
7102 rm -fr conftest*
7103 ac_sectionLDflags=no
7105 rm -fr conftest*
7108 if test "$ac_test_CFLAGS" = set; then
7109 CFLAGS="$ac_save_CFLAGS"
7110 else
7111 # this is the suspicious part
7112 CFLAGS=''
7114 if test "$ac_sectionLDflags" = "yes"; then
7115 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7117 echo "$ac_t""$ac_sectionLDflags" 1>&6
7120 # Set linker optimization flags.
7121 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7122 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7129 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7130 echo "configure:7131: checking for main in -lm" >&5
7131 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7132 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7133 echo $ac_n "(cached) $ac_c" 1>&6
7134 else
7135 ac_save_LIBS="$LIBS"
7136 LIBS="-lm $LIBS"
7137 cat > conftest.$ac_ext <<EOF
7138 #line 7139 "configure"
7139 #include "confdefs.h"
7141 int main() {
7142 main()
7143 ; return 0; }
7145 if { (eval echo configure:7146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7146 rm -rf conftest*
7147 eval "ac_cv_lib_$ac_lib_var=yes"
7148 else
7149 echo "configure: failed program was:" >&5
7150 cat conftest.$ac_ext >&5
7151 rm -rf conftest*
7152 eval "ac_cv_lib_$ac_lib_var=no"
7154 rm -f conftest*
7155 LIBS="$ac_save_LIBS"
7158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7159 echo "$ac_t""yes" 1>&6
7160 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7161 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7162 cat >> confdefs.h <<EOF
7163 #define $ac_tr_lib 1
7166 LIBS="-lm $LIBS"
7168 else
7169 echo "$ac_t""no" 1>&6
7172 for ac_func in nan copysignf
7174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7175 echo "configure:7176: checking for $ac_func" >&5
7176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7177 echo $ac_n "(cached) $ac_c" 1>&6
7178 else
7179 cat > conftest.$ac_ext <<EOF
7180 #line 7181 "configure"
7181 #include "confdefs.h"
7182 /* System header to define __stub macros and hopefully few prototypes,
7183 which can conflict with char $ac_func(); below. */
7184 #include <assert.h>
7185 /* Override any gcc2 internal prototype to avoid an error. */
7186 /* We use char because int might match the return type of a gcc2
7187 builtin and then its argument prototype would still apply. */
7188 char $ac_func();
7190 int main() {
7192 /* The GNU C library defines this for functions which it implements
7193 to always fail with ENOSYS. Some functions are actually named
7194 something starting with __ and the normal name is an alias. */
7195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7196 choke me
7197 #else
7198 $ac_func();
7199 #endif
7201 ; return 0; }
7203 if { (eval echo configure:7204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7204 rm -rf conftest*
7205 eval "ac_cv_func_$ac_func=yes"
7206 else
7207 echo "configure: failed program was:" >&5
7208 cat conftest.$ac_ext >&5
7209 rm -rf conftest*
7210 eval "ac_cv_func_$ac_func=no"
7212 rm -f conftest*
7215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7216 echo "$ac_t""yes" 1>&6
7217 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7218 cat >> confdefs.h <<EOF
7219 #define $ac_tr_func 1
7222 else
7223 echo "$ac_t""no" 1>&6
7224 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7226 done
7229 for ac_func in __signbit
7231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7232 echo "configure:7233: checking for $ac_func" >&5
7233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7234 echo $ac_n "(cached) $ac_c" 1>&6
7235 else
7236 cat > conftest.$ac_ext <<EOF
7237 #line 7238 "configure"
7238 #include "confdefs.h"
7239 /* System header to define __stub macros and hopefully few prototypes,
7240 which can conflict with char $ac_func(); below. */
7241 #include <assert.h>
7242 /* Override any gcc2 internal prototype to avoid an error. */
7243 /* We use char because int might match the return type of a gcc2
7244 builtin and then its argument prototype would still apply. */
7245 char $ac_func();
7247 int main() {
7249 /* The GNU C library defines this for functions which it implements
7250 to always fail with ENOSYS. Some functions are actually named
7251 something starting with __ and the normal name is an alias. */
7252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7253 choke me
7254 #else
7255 $ac_func();
7256 #endif
7258 ; return 0; }
7260 if { (eval echo configure:7261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7261 rm -rf conftest*
7262 eval "ac_cv_func_$ac_func=yes"
7263 else
7264 echo "configure: failed program was:" >&5
7265 cat conftest.$ac_ext >&5
7266 rm -rf conftest*
7267 eval "ac_cv_func_$ac_func=no"
7269 rm -f conftest*
7272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7273 echo "$ac_t""yes" 1>&6
7274 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7275 cat >> confdefs.h <<EOF
7276 #define $ac_tr_func 1
7279 else
7280 echo "$ac_t""no" 1>&6
7281 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7283 done
7285 for ac_func in __signbitf
7287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7288 echo "configure:7289: checking for $ac_func" >&5
7289 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7290 echo $ac_n "(cached) $ac_c" 1>&6
7291 else
7292 cat > conftest.$ac_ext <<EOF
7293 #line 7294 "configure"
7294 #include "confdefs.h"
7295 /* System header to define __stub macros and hopefully few prototypes,
7296 which can conflict with char $ac_func(); below. */
7297 #include <assert.h>
7298 /* Override any gcc2 internal prototype to avoid an error. */
7299 /* We use char because int might match the return type of a gcc2
7300 builtin and then its argument prototype would still apply. */
7301 char $ac_func();
7303 int main() {
7305 /* The GNU C library defines this for functions which it implements
7306 to always fail with ENOSYS. Some functions are actually named
7307 something starting with __ and the normal name is an alias. */
7308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7309 choke me
7310 #else
7311 $ac_func();
7312 #endif
7314 ; return 0; }
7316 if { (eval echo configure:7317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7317 rm -rf conftest*
7318 eval "ac_cv_func_$ac_func=yes"
7319 else
7320 echo "configure: failed program was:" >&5
7321 cat conftest.$ac_ext >&5
7322 rm -rf conftest*
7323 eval "ac_cv_func_$ac_func=no"
7325 rm -f conftest*
7328 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7329 echo "$ac_t""yes" 1>&6
7330 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7331 cat >> confdefs.h <<EOF
7332 #define $ac_tr_func 1
7335 else
7336 echo "$ac_t""no" 1>&6
7337 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7339 done
7342 if test x$ac_cv_func_copysignl = x"yes"; then
7343 for ac_func in __signbitl
7345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7346 echo "configure:7347: checking for $ac_func" >&5
7347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7348 echo $ac_n "(cached) $ac_c" 1>&6
7349 else
7350 cat > conftest.$ac_ext <<EOF
7351 #line 7352 "configure"
7352 #include "confdefs.h"
7353 /* System header to define __stub macros and hopefully few prototypes,
7354 which can conflict with char $ac_func(); below. */
7355 #include <assert.h>
7356 /* Override any gcc2 internal prototype to avoid an error. */
7357 /* We use char because int might match the return type of a gcc2
7358 builtin and then its argument prototype would still apply. */
7359 char $ac_func();
7361 int main() {
7363 /* The GNU C library defines this for functions which it implements
7364 to always fail with ENOSYS. Some functions are actually named
7365 something starting with __ and the normal name is an alias. */
7366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7367 choke me
7368 #else
7369 $ac_func();
7370 #endif
7372 ; return 0; }
7374 if { (eval echo configure:7375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7375 rm -rf conftest*
7376 eval "ac_cv_func_$ac_func=yes"
7377 else
7378 echo "configure: failed program was:" >&5
7379 cat conftest.$ac_ext >&5
7380 rm -rf conftest*
7381 eval "ac_cv_func_$ac_func=no"
7383 rm -f conftest*
7386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7387 echo "$ac_t""yes" 1>&6
7388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7389 cat >> confdefs.h <<EOF
7390 #define $ac_tr_func 1
7393 else
7394 echo "$ac_t""no" 1>&6
7395 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7397 done
7405 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7406 echo "configure:7407: checking for mbstate_t" >&5
7407 cat > conftest.$ac_ext <<EOF
7408 #line 7409 "configure"
7409 #include "confdefs.h"
7410 #include <wchar.h>
7411 int main() {
7412 mbstate_t teststate;
7413 ; return 0; }
7415 if { (eval echo configure:7416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7416 rm -rf conftest*
7417 have_mbstate_t=yes
7418 else
7419 echo "configure: failed program was:" >&5
7420 cat conftest.$ac_ext >&5
7421 rm -rf conftest*
7422 have_mbstate_t=no
7424 rm -f conftest*
7425 echo "$ac_t""$have_mbstate_t" 1>&6
7426 if test x"$have_mbstate_t" = xyes; then
7427 cat >> confdefs.h <<\EOF
7428 #define HAVE_MBSTATE_T 1
7433 for ac_hdr in wchar.h
7435 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7436 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7437 echo "configure:7438: checking for $ac_hdr" >&5
7438 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7439 echo $ac_n "(cached) $ac_c" 1>&6
7440 else
7441 cat > conftest.$ac_ext <<EOF
7442 #line 7443 "configure"
7443 #include "confdefs.h"
7444 #include <$ac_hdr>
7446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7447 { (eval echo configure:7448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7448 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7449 if test -z "$ac_err"; then
7450 rm -rf conftest*
7451 eval "ac_cv_header_$ac_safe=yes"
7452 else
7453 echo "$ac_err" >&5
7454 echo "configure: failed program was:" >&5
7455 cat conftest.$ac_ext >&5
7456 rm -rf conftest*
7457 eval "ac_cv_header_$ac_safe=no"
7459 rm -f conftest*
7461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7462 echo "$ac_t""yes" 1>&6
7463 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7464 cat >> confdefs.h <<EOF
7465 #define $ac_tr_hdr 1
7467 ac_has_wchar_h=yes
7468 else
7469 echo "$ac_t""no" 1>&6
7470 ac_has_wchar_h=no
7472 done
7474 for ac_hdr in wctype.h
7476 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7477 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7478 echo "configure:7479: checking for $ac_hdr" >&5
7479 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7480 echo $ac_n "(cached) $ac_c" 1>&6
7481 else
7482 cat > conftest.$ac_ext <<EOF
7483 #line 7484 "configure"
7484 #include "confdefs.h"
7485 #include <$ac_hdr>
7487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7488 { (eval echo configure:7489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7489 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7490 if test -z "$ac_err"; then
7491 rm -rf conftest*
7492 eval "ac_cv_header_$ac_safe=yes"
7493 else
7494 echo "$ac_err" >&5
7495 echo "configure: failed program was:" >&5
7496 cat conftest.$ac_ext >&5
7497 rm -rf conftest*
7498 eval "ac_cv_header_$ac_safe=no"
7500 rm -f conftest*
7502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7503 echo "$ac_t""yes" 1>&6
7504 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7505 cat >> confdefs.h <<EOF
7506 #define $ac_tr_hdr 1
7508 ac_has_wctype_h=yes
7509 else
7510 echo "$ac_t""no" 1>&6
7511 ac_has_wctype_h=no
7513 done
7516 if test x"$ac_has_wchar_h" = xyes &&
7517 test x"$ac_has_wctype_h" = xyes &&
7518 test x"$enable_c_mbchar" != xno; then
7520 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7521 echo "configure:7522: checking for WCHAR_MIN and WCHAR_MAX" >&5
7522 cat > conftest.$ac_ext <<EOF
7523 #line 7524 "configure"
7524 #include "confdefs.h"
7525 #include <wchar.h>
7526 int main() {
7527 int i = WCHAR_MIN; int j = WCHAR_MAX;
7528 ; return 0; }
7530 if { (eval echo configure:7531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7531 rm -rf conftest*
7532 has_wchar_minmax=yes
7533 else
7534 echo "configure: failed program was:" >&5
7535 cat conftest.$ac_ext >&5
7536 rm -rf conftest*
7537 has_wchar_minmax=no
7539 rm -f conftest*
7540 echo "$ac_t""$has_wchar_minmax" 1>&6
7542 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7543 echo "configure:7544: checking for WEOF" >&5
7544 cat > conftest.$ac_ext <<EOF
7545 #line 7546 "configure"
7546 #include "confdefs.h"
7548 #include <wchar.h>
7549 #include <stddef.h>
7550 int main() {
7551 wint_t i = WEOF;
7552 ; return 0; }
7554 if { (eval echo configure:7555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7555 rm -rf conftest*
7556 has_weof=yes
7557 else
7558 echo "configure: failed program was:" >&5
7559 cat conftest.$ac_ext >&5
7560 rm -rf conftest*
7561 has_weof=no
7563 rm -f conftest*
7564 echo "$ac_t""$has_weof" 1>&6
7566 ac_wfuncs=yes
7567 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7570 echo "configure:7571: checking for $ac_func" >&5
7571 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7572 echo $ac_n "(cached) $ac_c" 1>&6
7573 else
7574 cat > conftest.$ac_ext <<EOF
7575 #line 7576 "configure"
7576 #include "confdefs.h"
7577 /* System header to define __stub macros and hopefully few prototypes,
7578 which can conflict with char $ac_func(); below. */
7579 #include <assert.h>
7580 /* Override any gcc2 internal prototype to avoid an error. */
7581 /* We use char because int might match the return type of a gcc2
7582 builtin and then its argument prototype would still apply. */
7583 char $ac_func();
7585 int main() {
7587 /* The GNU C library defines this for functions which it implements
7588 to always fail with ENOSYS. Some functions are actually named
7589 something starting with __ and the normal name is an alias. */
7590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7591 choke me
7592 #else
7593 $ac_func();
7594 #endif
7596 ; return 0; }
7598 if { (eval echo configure:7599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7599 rm -rf conftest*
7600 eval "ac_cv_func_$ac_func=yes"
7601 else
7602 echo "configure: failed program was:" >&5
7603 cat conftest.$ac_ext >&5
7604 rm -rf conftest*
7605 eval "ac_cv_func_$ac_func=no"
7607 rm -f conftest*
7610 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7611 echo "$ac_t""yes" 1>&6
7612 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7613 cat >> confdefs.h <<EOF
7614 #define $ac_tr_func 1
7617 else
7618 echo "$ac_t""no" 1>&6
7620 ac_wfuncs=no
7622 done
7625 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7626 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7627 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7628 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7629 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7630 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7633 echo "configure:7634: checking for $ac_func" >&5
7634 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7635 echo $ac_n "(cached) $ac_c" 1>&6
7636 else
7637 cat > conftest.$ac_ext <<EOF
7638 #line 7639 "configure"
7639 #include "confdefs.h"
7640 /* System header to define __stub macros and hopefully few prototypes,
7641 which can conflict with char $ac_func(); below. */
7642 #include <assert.h>
7643 /* Override any gcc2 internal prototype to avoid an error. */
7644 /* We use char because int might match the return type of a gcc2
7645 builtin and then its argument prototype would still apply. */
7646 char $ac_func();
7648 int main() {
7650 /* The GNU C library defines this for functions which it implements
7651 to always fail with ENOSYS. Some functions are actually named
7652 something starting with __ and the normal name is an alias. */
7653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7654 choke me
7655 #else
7656 $ac_func();
7657 #endif
7659 ; return 0; }
7661 if { (eval echo configure:7662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7662 rm -rf conftest*
7663 eval "ac_cv_func_$ac_func=yes"
7664 else
7665 echo "configure: failed program was:" >&5
7666 cat conftest.$ac_ext >&5
7667 rm -rf conftest*
7668 eval "ac_cv_func_$ac_func=no"
7670 rm -f conftest*
7673 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7674 echo "$ac_t""yes" 1>&6
7675 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7676 cat >> confdefs.h <<EOF
7677 #define $ac_tr_func 1
7680 else
7681 echo "$ac_t""no" 1>&6
7683 ac_wfuncs=no
7685 done
7688 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7689 echo "configure:7690: checking for ISO C99 wchar_t support" >&5
7690 if test x"$has_weof" = xyes &&
7691 test x"$has_wchar_minmax" = xyes &&
7692 test x"$ac_wfuncs" = xyes; then
7693 ac_isoC99_wchar_t=yes
7694 else
7695 ac_isoC99_wchar_t=no
7697 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7699 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7700 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7701 echo "configure:7702: checking for iconv.h" >&5
7702 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7703 echo $ac_n "(cached) $ac_c" 1>&6
7704 else
7705 cat > conftest.$ac_ext <<EOF
7706 #line 7707 "configure"
7707 #include "confdefs.h"
7708 #include <iconv.h>
7710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7711 { (eval echo configure:7712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7713 if test -z "$ac_err"; then
7714 rm -rf conftest*
7715 eval "ac_cv_header_$ac_safe=yes"
7716 else
7717 echo "$ac_err" >&5
7718 echo "configure: failed program was:" >&5
7719 cat conftest.$ac_ext >&5
7720 rm -rf conftest*
7721 eval "ac_cv_header_$ac_safe=no"
7723 rm -f conftest*
7725 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7726 echo "$ac_t""yes" 1>&6
7727 ac_has_iconv_h=yes
7728 else
7729 echo "$ac_t""no" 1>&6
7730 ac_has_iconv_h=no
7733 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7734 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7735 echo "configure:7736: checking for langinfo.h" >&5
7736 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7737 echo $ac_n "(cached) $ac_c" 1>&6
7738 else
7739 cat > conftest.$ac_ext <<EOF
7740 #line 7741 "configure"
7741 #include "confdefs.h"
7742 #include <langinfo.h>
7744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7745 { (eval echo configure:7746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7747 if test -z "$ac_err"; then
7748 rm -rf conftest*
7749 eval "ac_cv_header_$ac_safe=yes"
7750 else
7751 echo "$ac_err" >&5
7752 echo "configure: failed program was:" >&5
7753 cat conftest.$ac_ext >&5
7754 rm -rf conftest*
7755 eval "ac_cv_header_$ac_safe=no"
7757 rm -f conftest*
7759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7760 echo "$ac_t""yes" 1>&6
7761 ac_has_langinfo_h=yes
7762 else
7763 echo "$ac_t""no" 1>&6
7764 ac_has_langinfo_h=no
7768 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7769 echo "configure:7770: checking for iconv in -liconv" >&5
7770 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7772 echo $ac_n "(cached) $ac_c" 1>&6
7773 else
7774 ac_save_LIBS="$LIBS"
7775 LIBS="-liconv $LIBS"
7776 cat > conftest.$ac_ext <<EOF
7777 #line 7778 "configure"
7778 #include "confdefs.h"
7779 /* Override any gcc2 internal prototype to avoid an error. */
7780 /* We use char because int might match the return type of a gcc2
7781 builtin and then its argument prototype would still apply. */
7782 char iconv();
7784 int main() {
7785 iconv()
7786 ; return 0; }
7788 if { (eval echo configure:7789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7789 rm -rf conftest*
7790 eval "ac_cv_lib_$ac_lib_var=yes"
7791 else
7792 echo "configure: failed program was:" >&5
7793 cat conftest.$ac_ext >&5
7794 rm -rf conftest*
7795 eval "ac_cv_lib_$ac_lib_var=no"
7797 rm -f conftest*
7798 LIBS="$ac_save_LIBS"
7801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7802 echo "$ac_t""yes" 1>&6
7803 libiconv="-liconv"
7804 else
7805 echo "$ac_t""no" 1>&6
7808 ac_save_LIBS="$LIBS"
7809 LIBS="$LIBS $libiconv"
7811 for ac_func in iconv_open iconv_close iconv nl_langinfo
7813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7814 echo "configure:7815: checking for $ac_func" >&5
7815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7816 echo $ac_n "(cached) $ac_c" 1>&6
7817 else
7818 cat > conftest.$ac_ext <<EOF
7819 #line 7820 "configure"
7820 #include "confdefs.h"
7821 /* System header to define __stub macros and hopefully few prototypes,
7822 which can conflict with char $ac_func(); below. */
7823 #include <assert.h>
7824 /* Override any gcc2 internal prototype to avoid an error. */
7825 /* We use char because int might match the return type of a gcc2
7826 builtin and then its argument prototype would still apply. */
7827 char $ac_func();
7829 int main() {
7831 /* The GNU C library defines this for functions which it implements
7832 to always fail with ENOSYS. Some functions are actually named
7833 something starting with __ and the normal name is an alias. */
7834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7835 choke me
7836 #else
7837 $ac_func();
7838 #endif
7840 ; return 0; }
7842 if { (eval echo configure:7843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7843 rm -rf conftest*
7844 eval "ac_cv_func_$ac_func=yes"
7845 else
7846 echo "configure: failed program was:" >&5
7847 cat conftest.$ac_ext >&5
7848 rm -rf conftest*
7849 eval "ac_cv_func_$ac_func=no"
7851 rm -f conftest*
7854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7855 echo "$ac_t""yes" 1>&6
7856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7857 cat >> confdefs.h <<EOF
7858 #define $ac_tr_func 1
7861 ac_XPG2funcs=yes
7862 else
7863 echo "$ac_t""no" 1>&6
7864 ac_XPG2funcs=no
7866 done
7869 LIBS="$ac_save_LIBS"
7871 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7872 echo "configure:7873: checking for XPG2 wchar_t support" >&5
7873 if test x"$ac_has_iconv_h" = xyes &&
7874 test x"$ac_has_langinfo_h" = xyes &&
7875 test x"$ac_XPG2funcs" = xyes; then
7876 ac_XPG2_wchar_t=yes
7877 else
7878 ac_XPG2_wchar_t=no
7880 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7882 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7883 echo "configure:7884: checking for enabled wchar_t specializations" >&5
7884 if test x"$ac_isoC99_wchar_t" = xyes &&
7885 test x"$ac_XPG2_wchar_t" = xyes; then
7886 cat >> confdefs.h <<\EOF
7887 #define _GLIBCPP_USE_WCHAR_T 1
7890 echo "$ac_t"""yes"" 1>&6
7891 else
7892 echo "$ac_t"""no"" 1>&6
7894 else
7895 echo "configure: warning: wchar_t support disabled." 1>&2
7898 os_include_dir="os/mingw32"
7900 *-windiss*)
7901 os_include_dir="os/windiss"
7903 *-qnx6.[12]*)
7904 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7907 # If we're not using GNU ld, then there's no point in even trying these
7908 # tests. Check for that first. We should have already tested for gld
7909 # by now (in libtool), but require it now just to be safe...
7910 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7911 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7914 # The name set by libtool depends on the version of libtool. Shame on us
7915 # for depending on an impl detail, but c'est la vie. Older versions used
7916 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7917 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7918 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7919 # set (hence we're using an older libtool), then set it.
7920 if test x${with_gnu_ld+set} != xset; then
7921 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7922 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7923 with_gnu_ld=no
7924 else
7925 with_gnu_ld=$ac_cv_prog_gnu_ld
7929 # Start by getting the version number. I think the libtool test already
7930 # does some of this, but throws away the result.
7932 ldver=`$LD --version 2>/dev/null | head -1 | \
7933 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7935 glibcpp_gnu_ld_version=`echo $ldver | \
7936 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7938 # Set --gc-sections.
7939 if test "$with_gnu_ld" = "notbroken"; then
7940 # GNU ld it is! Joy and bunny rabbits!
7942 # All these tests are for C++; save the language and the compiler flags.
7943 # Need to do this so that g++ won't try to link in libstdc++
7944 ac_test_CFLAGS="${CFLAGS+set}"
7945 ac_save_CFLAGS="$CFLAGS"
7946 CFLAGS='-x c++ -Wl,--gc-sections'
7948 # Check for -Wl,--gc-sections
7949 # XXX This test is broken at the moment, as symbols required for
7950 # linking are now in libsupc++ (not built yet.....). In addition,
7951 # this test has cored on solaris in the past. In addition,
7952 # --gc-sections doesn't really work at the moment (keeps on discarding
7953 # used sections, first .eh_frame and now some of the glibc sections for
7954 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7955 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7956 echo "configure:7957: checking for ld that supports -Wl,--gc-sections" >&5
7957 if test "$cross_compiling" = yes; then
7958 ac_sectionLDflags=yes
7959 else
7960 cat > conftest.$ac_ext <<EOF
7961 #line 7962 "configure"
7962 #include "confdefs.h"
7964 int main(void)
7966 try { throw 1; }
7967 catch (...) { };
7968 return 0;
7972 if { (eval echo configure:7973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7973 then
7974 ac_sectionLDflags=yes
7975 else
7976 echo "configure: failed program was:" >&5
7977 cat conftest.$ac_ext >&5
7978 rm -fr conftest*
7979 ac_sectionLDflags=no
7981 rm -fr conftest*
7984 if test "$ac_test_CFLAGS" = set; then
7985 CFLAGS="$ac_save_CFLAGS"
7986 else
7987 # this is the suspicious part
7988 CFLAGS=''
7990 if test "$ac_sectionLDflags" = "yes"; then
7991 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7993 echo "$ac_t""$ac_sectionLDflags" 1>&6
7996 # Set linker optimization flags.
7997 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7998 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8005 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8006 echo "configure:8007: checking for main in -lm" >&5
8007 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8009 echo $ac_n "(cached) $ac_c" 1>&6
8010 else
8011 ac_save_LIBS="$LIBS"
8012 LIBS="-lm $LIBS"
8013 cat > conftest.$ac_ext <<EOF
8014 #line 8015 "configure"
8015 #include "confdefs.h"
8017 int main() {
8018 main()
8019 ; return 0; }
8021 if { (eval echo configure:8022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8022 rm -rf conftest*
8023 eval "ac_cv_lib_$ac_lib_var=yes"
8024 else
8025 echo "configure: failed program was:" >&5
8026 cat conftest.$ac_ext >&5
8027 rm -rf conftest*
8028 eval "ac_cv_lib_$ac_lib_var=no"
8030 rm -f conftest*
8031 LIBS="$ac_save_LIBS"
8034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8035 echo "$ac_t""yes" 1>&6
8036 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8037 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8038 cat >> confdefs.h <<EOF
8039 #define $ac_tr_lib 1
8042 LIBS="-lm $LIBS"
8044 else
8045 echo "$ac_t""no" 1>&6
8048 for ac_func in nan copysignf
8050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8051 echo "configure:8052: checking for $ac_func" >&5
8052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8053 echo $ac_n "(cached) $ac_c" 1>&6
8054 else
8055 cat > conftest.$ac_ext <<EOF
8056 #line 8057 "configure"
8057 #include "confdefs.h"
8058 /* System header to define __stub macros and hopefully few prototypes,
8059 which can conflict with char $ac_func(); below. */
8060 #include <assert.h>
8061 /* Override any gcc2 internal prototype to avoid an error. */
8062 /* We use char because int might match the return type of a gcc2
8063 builtin and then its argument prototype would still apply. */
8064 char $ac_func();
8066 int main() {
8068 /* The GNU C library defines this for functions which it implements
8069 to always fail with ENOSYS. Some functions are actually named
8070 something starting with __ and the normal name is an alias. */
8071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8072 choke me
8073 #else
8074 $ac_func();
8075 #endif
8077 ; return 0; }
8079 if { (eval echo configure:8080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8080 rm -rf conftest*
8081 eval "ac_cv_func_$ac_func=yes"
8082 else
8083 echo "configure: failed program was:" >&5
8084 cat conftest.$ac_ext >&5
8085 rm -rf conftest*
8086 eval "ac_cv_func_$ac_func=no"
8088 rm -f conftest*
8091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8092 echo "$ac_t""yes" 1>&6
8093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8094 cat >> confdefs.h <<EOF
8095 #define $ac_tr_func 1
8098 else
8099 echo "$ac_t""no" 1>&6
8100 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8102 done
8105 for ac_func in __signbit
8107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8108 echo "configure:8109: checking for $ac_func" >&5
8109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8110 echo $ac_n "(cached) $ac_c" 1>&6
8111 else
8112 cat > conftest.$ac_ext <<EOF
8113 #line 8114 "configure"
8114 #include "confdefs.h"
8115 /* System header to define __stub macros and hopefully few prototypes,
8116 which can conflict with char $ac_func(); below. */
8117 #include <assert.h>
8118 /* Override any gcc2 internal prototype to avoid an error. */
8119 /* We use char because int might match the return type of a gcc2
8120 builtin and then its argument prototype would still apply. */
8121 char $ac_func();
8123 int main() {
8125 /* The GNU C library defines this for functions which it implements
8126 to always fail with ENOSYS. Some functions are actually named
8127 something starting with __ and the normal name is an alias. */
8128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8129 choke me
8130 #else
8131 $ac_func();
8132 #endif
8134 ; return 0; }
8136 if { (eval echo configure:8137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8137 rm -rf conftest*
8138 eval "ac_cv_func_$ac_func=yes"
8139 else
8140 echo "configure: failed program was:" >&5
8141 cat conftest.$ac_ext >&5
8142 rm -rf conftest*
8143 eval "ac_cv_func_$ac_func=no"
8145 rm -f conftest*
8148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8149 echo "$ac_t""yes" 1>&6
8150 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8151 cat >> confdefs.h <<EOF
8152 #define $ac_tr_func 1
8155 else
8156 echo "$ac_t""no" 1>&6
8157 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8159 done
8161 for ac_func in __signbitf
8163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8164 echo "configure:8165: checking for $ac_func" >&5
8165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8166 echo $ac_n "(cached) $ac_c" 1>&6
8167 else
8168 cat > conftest.$ac_ext <<EOF
8169 #line 8170 "configure"
8170 #include "confdefs.h"
8171 /* System header to define __stub macros and hopefully few prototypes,
8172 which can conflict with char $ac_func(); below. */
8173 #include <assert.h>
8174 /* Override any gcc2 internal prototype to avoid an error. */
8175 /* We use char because int might match the return type of a gcc2
8176 builtin and then its argument prototype would still apply. */
8177 char $ac_func();
8179 int main() {
8181 /* The GNU C library defines this for functions which it implements
8182 to always fail with ENOSYS. Some functions are actually named
8183 something starting with __ and the normal name is an alias. */
8184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8185 choke me
8186 #else
8187 $ac_func();
8188 #endif
8190 ; return 0; }
8192 if { (eval echo configure:8193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8193 rm -rf conftest*
8194 eval "ac_cv_func_$ac_func=yes"
8195 else
8196 echo "configure: failed program was:" >&5
8197 cat conftest.$ac_ext >&5
8198 rm -rf conftest*
8199 eval "ac_cv_func_$ac_func=no"
8201 rm -f conftest*
8204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8205 echo "$ac_t""yes" 1>&6
8206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8207 cat >> confdefs.h <<EOF
8208 #define $ac_tr_func 1
8211 else
8212 echo "$ac_t""no" 1>&6
8213 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8215 done
8218 if test x$ac_cv_func_copysignl = x"yes"; then
8219 for ac_func in __signbitl
8221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8222 echo "configure:8223: checking for $ac_func" >&5
8223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8224 echo $ac_n "(cached) $ac_c" 1>&6
8225 else
8226 cat > conftest.$ac_ext <<EOF
8227 #line 8228 "configure"
8228 #include "confdefs.h"
8229 /* System header to define __stub macros and hopefully few prototypes,
8230 which can conflict with char $ac_func(); below. */
8231 #include <assert.h>
8232 /* Override any gcc2 internal prototype to avoid an error. */
8233 /* We use char because int might match the return type of a gcc2
8234 builtin and then its argument prototype would still apply. */
8235 char $ac_func();
8237 int main() {
8239 /* The GNU C library defines this for functions which it implements
8240 to always fail with ENOSYS. Some functions are actually named
8241 something starting with __ and the normal name is an alias. */
8242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8243 choke me
8244 #else
8245 $ac_func();
8246 #endif
8248 ; return 0; }
8250 if { (eval echo configure:8251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8251 rm -rf conftest*
8252 eval "ac_cv_func_$ac_func=yes"
8253 else
8254 echo "configure: failed program was:" >&5
8255 cat conftest.$ac_ext >&5
8256 rm -rf conftest*
8257 eval "ac_cv_func_$ac_func=no"
8259 rm -f conftest*
8262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8263 echo "$ac_t""yes" 1>&6
8264 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8265 cat >> confdefs.h <<EOF
8266 #define $ac_tr_func 1
8269 else
8270 echo "$ac_t""no" 1>&6
8271 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8273 done
8281 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8282 echo "configure:8283: checking for mbstate_t" >&5
8283 cat > conftest.$ac_ext <<EOF
8284 #line 8285 "configure"
8285 #include "confdefs.h"
8286 #include <wchar.h>
8287 int main() {
8288 mbstate_t teststate;
8289 ; return 0; }
8291 if { (eval echo configure:8292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8292 rm -rf conftest*
8293 have_mbstate_t=yes
8294 else
8295 echo "configure: failed program was:" >&5
8296 cat conftest.$ac_ext >&5
8297 rm -rf conftest*
8298 have_mbstate_t=no
8300 rm -f conftest*
8301 echo "$ac_t""$have_mbstate_t" 1>&6
8302 if test x"$have_mbstate_t" = xyes; then
8303 cat >> confdefs.h <<\EOF
8304 #define HAVE_MBSTATE_T 1
8309 for ac_hdr in wchar.h
8311 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8313 echo "configure:8314: checking for $ac_hdr" >&5
8314 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8315 echo $ac_n "(cached) $ac_c" 1>&6
8316 else
8317 cat > conftest.$ac_ext <<EOF
8318 #line 8319 "configure"
8319 #include "confdefs.h"
8320 #include <$ac_hdr>
8322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8323 { (eval echo configure:8324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8325 if test -z "$ac_err"; then
8326 rm -rf conftest*
8327 eval "ac_cv_header_$ac_safe=yes"
8328 else
8329 echo "$ac_err" >&5
8330 echo "configure: failed program was:" >&5
8331 cat conftest.$ac_ext >&5
8332 rm -rf conftest*
8333 eval "ac_cv_header_$ac_safe=no"
8335 rm -f conftest*
8337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8338 echo "$ac_t""yes" 1>&6
8339 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8340 cat >> confdefs.h <<EOF
8341 #define $ac_tr_hdr 1
8343 ac_has_wchar_h=yes
8344 else
8345 echo "$ac_t""no" 1>&6
8346 ac_has_wchar_h=no
8348 done
8350 for ac_hdr in wctype.h
8352 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8353 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8354 echo "configure:8355: checking for $ac_hdr" >&5
8355 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8356 echo $ac_n "(cached) $ac_c" 1>&6
8357 else
8358 cat > conftest.$ac_ext <<EOF
8359 #line 8360 "configure"
8360 #include "confdefs.h"
8361 #include <$ac_hdr>
8363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8364 { (eval echo configure:8365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8365 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8366 if test -z "$ac_err"; then
8367 rm -rf conftest*
8368 eval "ac_cv_header_$ac_safe=yes"
8369 else
8370 echo "$ac_err" >&5
8371 echo "configure: failed program was:" >&5
8372 cat conftest.$ac_ext >&5
8373 rm -rf conftest*
8374 eval "ac_cv_header_$ac_safe=no"
8376 rm -f conftest*
8378 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8379 echo "$ac_t""yes" 1>&6
8380 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8381 cat >> confdefs.h <<EOF
8382 #define $ac_tr_hdr 1
8384 ac_has_wctype_h=yes
8385 else
8386 echo "$ac_t""no" 1>&6
8387 ac_has_wctype_h=no
8389 done
8392 if test x"$ac_has_wchar_h" = xyes &&
8393 test x"$ac_has_wctype_h" = xyes &&
8394 test x"$enable_c_mbchar" != xno; then
8396 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8397 echo "configure:8398: checking for WCHAR_MIN and WCHAR_MAX" >&5
8398 cat > conftest.$ac_ext <<EOF
8399 #line 8400 "configure"
8400 #include "confdefs.h"
8401 #include <wchar.h>
8402 int main() {
8403 int i = WCHAR_MIN; int j = WCHAR_MAX;
8404 ; return 0; }
8406 if { (eval echo configure:8407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8407 rm -rf conftest*
8408 has_wchar_minmax=yes
8409 else
8410 echo "configure: failed program was:" >&5
8411 cat conftest.$ac_ext >&5
8412 rm -rf conftest*
8413 has_wchar_minmax=no
8415 rm -f conftest*
8416 echo "$ac_t""$has_wchar_minmax" 1>&6
8418 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8419 echo "configure:8420: checking for WEOF" >&5
8420 cat > conftest.$ac_ext <<EOF
8421 #line 8422 "configure"
8422 #include "confdefs.h"
8424 #include <wchar.h>
8425 #include <stddef.h>
8426 int main() {
8427 wint_t i = WEOF;
8428 ; return 0; }
8430 if { (eval echo configure:8431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8431 rm -rf conftest*
8432 has_weof=yes
8433 else
8434 echo "configure: failed program was:" >&5
8435 cat conftest.$ac_ext >&5
8436 rm -rf conftest*
8437 has_weof=no
8439 rm -f conftest*
8440 echo "$ac_t""$has_weof" 1>&6
8442 ac_wfuncs=yes
8443 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8446 echo "configure:8447: checking for $ac_func" >&5
8447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8448 echo $ac_n "(cached) $ac_c" 1>&6
8449 else
8450 cat > conftest.$ac_ext <<EOF
8451 #line 8452 "configure"
8452 #include "confdefs.h"
8453 /* System header to define __stub macros and hopefully few prototypes,
8454 which can conflict with char $ac_func(); below. */
8455 #include <assert.h>
8456 /* Override any gcc2 internal prototype to avoid an error. */
8457 /* We use char because int might match the return type of a gcc2
8458 builtin and then its argument prototype would still apply. */
8459 char $ac_func();
8461 int main() {
8463 /* The GNU C library defines this for functions which it implements
8464 to always fail with ENOSYS. Some functions are actually named
8465 something starting with __ and the normal name is an alias. */
8466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8467 choke me
8468 #else
8469 $ac_func();
8470 #endif
8472 ; return 0; }
8474 if { (eval echo configure:8475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8475 rm -rf conftest*
8476 eval "ac_cv_func_$ac_func=yes"
8477 else
8478 echo "configure: failed program was:" >&5
8479 cat conftest.$ac_ext >&5
8480 rm -rf conftest*
8481 eval "ac_cv_func_$ac_func=no"
8483 rm -f conftest*
8486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8487 echo "$ac_t""yes" 1>&6
8488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8489 cat >> confdefs.h <<EOF
8490 #define $ac_tr_func 1
8493 else
8494 echo "$ac_t""no" 1>&6
8496 ac_wfuncs=no
8498 done
8501 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8502 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8503 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8504 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8505 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8506 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8509 echo "configure:8510: checking for $ac_func" >&5
8510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8511 echo $ac_n "(cached) $ac_c" 1>&6
8512 else
8513 cat > conftest.$ac_ext <<EOF
8514 #line 8515 "configure"
8515 #include "confdefs.h"
8516 /* System header to define __stub macros and hopefully few prototypes,
8517 which can conflict with char $ac_func(); below. */
8518 #include <assert.h>
8519 /* Override any gcc2 internal prototype to avoid an error. */
8520 /* We use char because int might match the return type of a gcc2
8521 builtin and then its argument prototype would still apply. */
8522 char $ac_func();
8524 int main() {
8526 /* The GNU C library defines this for functions which it implements
8527 to always fail with ENOSYS. Some functions are actually named
8528 something starting with __ and the normal name is an alias. */
8529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8530 choke me
8531 #else
8532 $ac_func();
8533 #endif
8535 ; return 0; }
8537 if { (eval echo configure:8538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8538 rm -rf conftest*
8539 eval "ac_cv_func_$ac_func=yes"
8540 else
8541 echo "configure: failed program was:" >&5
8542 cat conftest.$ac_ext >&5
8543 rm -rf conftest*
8544 eval "ac_cv_func_$ac_func=no"
8546 rm -f conftest*
8549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8550 echo "$ac_t""yes" 1>&6
8551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8552 cat >> confdefs.h <<EOF
8553 #define $ac_tr_func 1
8556 else
8557 echo "$ac_t""no" 1>&6
8559 ac_wfuncs=no
8561 done
8564 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8565 echo "configure:8566: checking for ISO C99 wchar_t support" >&5
8566 if test x"$has_weof" = xyes &&
8567 test x"$has_wchar_minmax" = xyes &&
8568 test x"$ac_wfuncs" = xyes; then
8569 ac_isoC99_wchar_t=yes
8570 else
8571 ac_isoC99_wchar_t=no
8573 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8575 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8576 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8577 echo "configure:8578: checking for iconv.h" >&5
8578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8579 echo $ac_n "(cached) $ac_c" 1>&6
8580 else
8581 cat > conftest.$ac_ext <<EOF
8582 #line 8583 "configure"
8583 #include "confdefs.h"
8584 #include <iconv.h>
8586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8587 { (eval echo configure:8588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8589 if test -z "$ac_err"; then
8590 rm -rf conftest*
8591 eval "ac_cv_header_$ac_safe=yes"
8592 else
8593 echo "$ac_err" >&5
8594 echo "configure: failed program was:" >&5
8595 cat conftest.$ac_ext >&5
8596 rm -rf conftest*
8597 eval "ac_cv_header_$ac_safe=no"
8599 rm -f conftest*
8601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8602 echo "$ac_t""yes" 1>&6
8603 ac_has_iconv_h=yes
8604 else
8605 echo "$ac_t""no" 1>&6
8606 ac_has_iconv_h=no
8609 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8610 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8611 echo "configure:8612: checking for langinfo.h" >&5
8612 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8613 echo $ac_n "(cached) $ac_c" 1>&6
8614 else
8615 cat > conftest.$ac_ext <<EOF
8616 #line 8617 "configure"
8617 #include "confdefs.h"
8618 #include <langinfo.h>
8620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8621 { (eval echo configure:8622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8623 if test -z "$ac_err"; then
8624 rm -rf conftest*
8625 eval "ac_cv_header_$ac_safe=yes"
8626 else
8627 echo "$ac_err" >&5
8628 echo "configure: failed program was:" >&5
8629 cat conftest.$ac_ext >&5
8630 rm -rf conftest*
8631 eval "ac_cv_header_$ac_safe=no"
8633 rm -f conftest*
8635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8636 echo "$ac_t""yes" 1>&6
8637 ac_has_langinfo_h=yes
8638 else
8639 echo "$ac_t""no" 1>&6
8640 ac_has_langinfo_h=no
8644 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8645 echo "configure:8646: checking for iconv in -liconv" >&5
8646 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8648 echo $ac_n "(cached) $ac_c" 1>&6
8649 else
8650 ac_save_LIBS="$LIBS"
8651 LIBS="-liconv $LIBS"
8652 cat > conftest.$ac_ext <<EOF
8653 #line 8654 "configure"
8654 #include "confdefs.h"
8655 /* Override any gcc2 internal prototype to avoid an error. */
8656 /* We use char because int might match the return type of a gcc2
8657 builtin and then its argument prototype would still apply. */
8658 char iconv();
8660 int main() {
8661 iconv()
8662 ; return 0; }
8664 if { (eval echo configure:8665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8665 rm -rf conftest*
8666 eval "ac_cv_lib_$ac_lib_var=yes"
8667 else
8668 echo "configure: failed program was:" >&5
8669 cat conftest.$ac_ext >&5
8670 rm -rf conftest*
8671 eval "ac_cv_lib_$ac_lib_var=no"
8673 rm -f conftest*
8674 LIBS="$ac_save_LIBS"
8677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8678 echo "$ac_t""yes" 1>&6
8679 libiconv="-liconv"
8680 else
8681 echo "$ac_t""no" 1>&6
8684 ac_save_LIBS="$LIBS"
8685 LIBS="$LIBS $libiconv"
8687 for ac_func in iconv_open iconv_close iconv nl_langinfo
8689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8690 echo "configure:8691: checking for $ac_func" >&5
8691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8692 echo $ac_n "(cached) $ac_c" 1>&6
8693 else
8694 cat > conftest.$ac_ext <<EOF
8695 #line 8696 "configure"
8696 #include "confdefs.h"
8697 /* System header to define __stub macros and hopefully few prototypes,
8698 which can conflict with char $ac_func(); below. */
8699 #include <assert.h>
8700 /* Override any gcc2 internal prototype to avoid an error. */
8701 /* We use char because int might match the return type of a gcc2
8702 builtin and then its argument prototype would still apply. */
8703 char $ac_func();
8705 int main() {
8707 /* The GNU C library defines this for functions which it implements
8708 to always fail with ENOSYS. Some functions are actually named
8709 something starting with __ and the normal name is an alias. */
8710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8711 choke me
8712 #else
8713 $ac_func();
8714 #endif
8716 ; return 0; }
8718 if { (eval echo configure:8719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8719 rm -rf conftest*
8720 eval "ac_cv_func_$ac_func=yes"
8721 else
8722 echo "configure: failed program was:" >&5
8723 cat conftest.$ac_ext >&5
8724 rm -rf conftest*
8725 eval "ac_cv_func_$ac_func=no"
8727 rm -f conftest*
8730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8731 echo "$ac_t""yes" 1>&6
8732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8733 cat >> confdefs.h <<EOF
8734 #define $ac_tr_func 1
8737 ac_XPG2funcs=yes
8738 else
8739 echo "$ac_t""no" 1>&6
8740 ac_XPG2funcs=no
8742 done
8745 LIBS="$ac_save_LIBS"
8747 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8748 echo "configure:8749: checking for XPG2 wchar_t support" >&5
8749 if test x"$ac_has_iconv_h" = xyes &&
8750 test x"$ac_has_langinfo_h" = xyes &&
8751 test x"$ac_XPG2funcs" = xyes; then
8752 ac_XPG2_wchar_t=yes
8753 else
8754 ac_XPG2_wchar_t=no
8756 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8758 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8759 echo "configure:8760: checking for enabled wchar_t specializations" >&5
8760 if test x"$ac_isoC99_wchar_t" = xyes &&
8761 test x"$ac_XPG2_wchar_t" = xyes; then
8762 cat >> confdefs.h <<\EOF
8763 #define _GLIBCPP_USE_WCHAR_T 1
8766 echo "$ac_t"""yes"" 1>&6
8767 else
8768 echo "$ac_t"""no"" 1>&6
8770 else
8771 echo "configure: warning: wchar_t support disabled." 1>&2
8774 os_include_dir="os/qnx/qnx6.1"
8775 cat >> confdefs.h <<\EOF
8776 #define HAVE_COSF 1
8779 cat >> confdefs.h <<\EOF
8780 #define HAVE_COSL 1
8783 cat >> confdefs.h <<\EOF
8784 #define HAVE_COSHF 1
8787 cat >> confdefs.h <<\EOF
8788 #define HAVE_COSHL 1
8791 cat >> confdefs.h <<\EOF
8792 #define HAVE_LOGF 1
8795 cat >> confdefs.h <<\EOF
8796 #define HAVE_LOGL 1
8799 cat >> confdefs.h <<\EOF
8800 #define HAVE_LOG10F 1
8803 cat >> confdefs.h <<\EOF
8804 #define HAVE_LOG10L 1
8807 cat >> confdefs.h <<\EOF
8808 #define HAVE_SINF 1
8811 cat >> confdefs.h <<\EOF
8812 #define HAVE_SINL 1
8815 cat >> confdefs.h <<\EOF
8816 #define HAVE_SINHF 1
8819 cat >> confdefs.h <<\EOF
8820 #define HAVE_SINHL 1
8825 os_include_dir="os/newlib"
8826 cat >> confdefs.h <<\EOF
8827 #define HAVE_HYPOT 1
8831 esac
8833 case "$target_alias" in
8834 *-mingw32*)
8836 *-windiss*)
8837 cat >> confdefs.h <<\EOF
8838 #define HAVE_ACOSF 1
8841 cat >> confdefs.h <<\EOF
8842 #define HAVE_ASINF 1
8845 cat >> confdefs.h <<\EOF
8846 #define HAVE_ATAN2F 1
8849 cat >> confdefs.h <<\EOF
8850 #define HAVE_ATANF 1
8853 cat >> confdefs.h <<\EOF
8854 #define HAVE_CEILF 1
8857 cat >> confdefs.h <<\EOF
8858 #define HAVE_COPYSIGN 1
8861 cat >> confdefs.h <<\EOF
8862 #define HAVE_COPYSIGNF 1
8865 cat >> confdefs.h <<\EOF
8866 #define HAVE_COSF 1
8869 cat >> confdefs.h <<\EOF
8870 #define HAVE_COSHF 1
8873 cat >> confdefs.h <<\EOF
8874 #define HAVE_EXPF 1
8877 cat >> confdefs.h <<\EOF
8878 #define HAVE_FABSF 1
8881 cat >> confdefs.h <<\EOF
8882 #define HAVE_FLOORF 1
8885 cat >> confdefs.h <<\EOF
8886 #define HAVE_FMODF 1
8889 cat >> confdefs.h <<\EOF
8890 #define HAVE_FREXPF 1
8893 cat >> confdefs.h <<\EOF
8894 #define HAVE_LDEXPF 1
8897 cat >> confdefs.h <<\EOF
8898 #define HAVE_LOG10F 1
8901 cat >> confdefs.h <<\EOF
8902 #define HAVE_LOGF 1
8905 cat >> confdefs.h <<\EOF
8906 #define HAVE_MODFF 1
8909 cat >> confdefs.h <<\EOF
8910 #define HAVE_POWF 1
8913 cat >> confdefs.h <<\EOF
8914 #define HAVE_SINF 1
8917 cat >> confdefs.h <<\EOF
8918 #define HAVE_SINHF 1
8921 cat >> confdefs.h <<\EOF
8922 #define HAVE_SQRTF 1
8925 cat >> confdefs.h <<\EOF
8926 #define HAVE_TANF 1
8929 cat >> confdefs.h <<\EOF
8930 #define HAVE_TANHF 1
8935 # GLIBCPP_CHECK_STDLIB_SUPPORT
8936 cat >> confdefs.h <<\EOF
8937 #define HAVE_STRTOF 1
8940 cat >> confdefs.h <<\EOF
8941 #define HAVE_STRTOLD 1
8944 # AC_FUNC_MMAP
8945 cat >> confdefs.h <<\EOF
8946 #define HAVE_MMAP 1
8950 cat >> confdefs.h <<\EOF
8951 #define HAVE_ACOSF 1
8954 cat >> confdefs.h <<\EOF
8955 #define HAVE_ASINF 1
8958 cat >> confdefs.h <<\EOF
8959 #define HAVE_ATAN2F 1
8962 cat >> confdefs.h <<\EOF
8963 #define HAVE_ATANF 1
8966 cat >> confdefs.h <<\EOF
8967 #define HAVE_CEILF 1
8970 cat >> confdefs.h <<\EOF
8971 #define HAVE_COPYSIGN 1
8974 cat >> confdefs.h <<\EOF
8975 #define HAVE_COPYSIGNF 1
8978 cat >> confdefs.h <<\EOF
8979 #define HAVE_COSF 1
8982 cat >> confdefs.h <<\EOF
8983 #define HAVE_COSHF 1
8986 cat >> confdefs.h <<\EOF
8987 #define HAVE_EXPF 1
8990 cat >> confdefs.h <<\EOF
8991 #define HAVE_FABSF 1
8994 cat >> confdefs.h <<\EOF
8995 #define HAVE_FLOORF 1
8998 cat >> confdefs.h <<\EOF
8999 #define HAVE_FMODF 1
9002 cat >> confdefs.h <<\EOF
9003 #define HAVE_FREXPF 1
9006 cat >> confdefs.h <<\EOF
9007 #define HAVE_LDEXPF 1
9010 cat >> confdefs.h <<\EOF
9011 #define HAVE_LOG10F 1
9014 cat >> confdefs.h <<\EOF
9015 #define HAVE_LOGF 1
9018 cat >> confdefs.h <<\EOF
9019 #define HAVE_MODFF 1
9022 cat >> confdefs.h <<\EOF
9023 #define HAVE_POWF 1
9026 cat >> confdefs.h <<\EOF
9027 #define HAVE_SINF 1
9030 cat >> confdefs.h <<\EOF
9031 #define HAVE_SINHF 1
9034 cat >> confdefs.h <<\EOF
9035 #define HAVE_SQRTF 1
9038 cat >> confdefs.h <<\EOF
9039 #define HAVE_TANF 1
9042 cat >> confdefs.h <<\EOF
9043 #define HAVE_TANHF 1
9047 esac
9049 # At some point, we should differentiate between architectures
9050 # like x86, which have long double versions, and alpha/powerpc/etc.,
9051 # which don't. For the time being, punt.
9052 if test x"long_double_math_on_this_cpu" = x"yes"; then
9053 cat >> confdefs.h <<\EOF
9054 #define HAVE_ACOSL 1
9057 cat >> confdefs.h <<\EOF
9058 #define HAVE_ASINL 1
9061 cat >> confdefs.h <<\EOF
9062 #define HAVE_ATAN2L 1
9065 cat >> confdefs.h <<\EOF
9066 #define HAVE_ATANL 1
9069 cat >> confdefs.h <<\EOF
9070 #define HAVE_CEILL 1
9073 cat >> confdefs.h <<\EOF
9074 #define HAVE_COPYSIGNL 1
9077 cat >> confdefs.h <<\EOF
9078 #define HAVE_COSL 1
9081 cat >> confdefs.h <<\EOF
9082 #define HAVE_COSHL 1
9085 cat >> confdefs.h <<\EOF
9086 #define HAVE_EXPL 1
9089 cat >> confdefs.h <<\EOF
9090 #define HAVE_FABSL 1
9093 cat >> confdefs.h <<\EOF
9094 #define HAVE_FLOORL 1
9097 cat >> confdefs.h <<\EOF
9098 #define HAVE_FMODL 1
9101 cat >> confdefs.h <<\EOF
9102 #define HAVE_FREXPL 1
9105 cat >> confdefs.h <<\EOF
9106 #define HAVE_LDEXPL 1
9109 cat >> confdefs.h <<\EOF
9110 #define HAVE_LOG10L 1
9113 cat >> confdefs.h <<\EOF
9114 #define HAVE_LOGL 1
9117 cat >> confdefs.h <<\EOF
9118 #define HAVE_MODFL 1
9121 cat >> confdefs.h <<\EOF
9122 #define HAVE_POWL 1
9125 cat >> confdefs.h <<\EOF
9126 #define HAVE_SINCOSL 1
9129 cat >> confdefs.h <<\EOF
9130 #define HAVE_SINL 1
9133 cat >> confdefs.h <<\EOF
9134 #define HAVE_SINHL 1
9137 cat >> confdefs.h <<\EOF
9138 #define HAVE_SQRTL 1
9141 cat >> confdefs.h <<\EOF
9142 #define HAVE_TANL 1
9145 cat >> confdefs.h <<\EOF
9146 #define HAVE_TANHL 1
9151 else
9153 # We are being configured natively. We can do more elaborate tests
9154 # that include AC_TRY_COMPILE now, as the linker is assumed to be
9155 # working.
9156 GLIBCPP_IS_CROSS_COMPILING=0
9157 CANADIAN=no
9159 # Check for available headers.
9160 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
9161 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
9163 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9164 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9165 echo "configure:9166: checking for $ac_hdr" >&5
9166 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9167 echo $ac_n "(cached) $ac_c" 1>&6
9168 else
9169 cat > conftest.$ac_ext <<EOF
9170 #line 9171 "configure"
9171 #include "confdefs.h"
9172 #include <$ac_hdr>
9174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9175 { (eval echo configure:9176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9177 if test -z "$ac_err"; then
9178 rm -rf conftest*
9179 eval "ac_cv_header_$ac_safe=yes"
9180 else
9181 echo "$ac_err" >&5
9182 echo "configure: failed program was:" >&5
9183 cat conftest.$ac_ext >&5
9184 rm -rf conftest*
9185 eval "ac_cv_header_$ac_safe=no"
9187 rm -f conftest*
9189 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9190 echo "$ac_t""yes" 1>&6
9191 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9192 cat >> confdefs.h <<EOF
9193 #define $ac_tr_hdr 1
9196 else
9197 echo "$ac_t""no" 1>&6
9199 done
9203 # All these tests are for C++; save the language and the compiler flags.
9204 # The CXXFLAGS thing is suspicious, but based on similar bits previously
9205 # found in GLIBCPP_CONFIGURE.
9207 ac_ext=C
9208 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9209 ac_cpp='$CXXCPP $CPPFLAGS'
9210 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9211 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9212 cross_compiling=$ac_cv_prog_cxx_cross
9214 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9215 ac_save_CXXFLAGS="$CXXFLAGS"
9217 # Check for maintainer-mode bits.
9218 if test x"$USE_MAINTAINER_MODE" = xno; then
9219 WERROR=''
9220 else
9221 WERROR='-Werror'
9224 # Check for -ffunction-sections -fdata-sections
9225 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
9226 echo "configure:9227: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
9227 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
9228 cat > conftest.$ac_ext <<EOF
9229 #line 9230 "configure"
9230 #include "confdefs.h"
9232 int main() {
9233 int foo;
9235 ; return 0; }
9237 if { (eval echo configure:9238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9238 rm -rf conftest*
9239 ac_fdsections=yes
9240 else
9241 echo "configure: failed program was:" >&5
9242 cat conftest.$ac_ext >&5
9243 rm -rf conftest*
9244 ac_fdsections=no
9246 rm -f conftest*
9247 if test "$ac_test_CXXFLAGS" = set; then
9248 CXXFLAGS="$ac_save_CXXFLAGS"
9249 else
9250 # this is the suspicious part
9251 CXXFLAGS=''
9253 if test x"$ac_fdsections" = x"yes" &&
9254 test x"$enable_debug" = x"no"; then
9255 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9257 echo "$ac_t""$ac_fdsections" 1>&6
9259 ac_ext=c
9260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9261 ac_cpp='$CPP $CPPFLAGS'
9262 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9263 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9264 cross_compiling=$ac_cv_prog_cc_cross
9270 # If we're not using GNU ld, then there's no point in even trying these
9271 # tests. Check for that first. We should have already tested for gld
9272 # by now (in libtool), but require it now just to be safe...
9273 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9274 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9277 # The name set by libtool depends on the version of libtool. Shame on us
9278 # for depending on an impl detail, but c'est la vie. Older versions used
9279 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9280 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9281 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9282 # set (hence we're using an older libtool), then set it.
9283 if test x${with_gnu_ld+set} != xset; then
9284 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9285 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9286 with_gnu_ld=no
9287 else
9288 with_gnu_ld=$ac_cv_prog_gnu_ld
9292 # Start by getting the version number. I think the libtool test already
9293 # does some of this, but throws away the result.
9295 ldver=`$LD --version 2>/dev/null | head -1 | \
9296 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9298 glibcpp_gnu_ld_version=`echo $ldver | \
9299 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9301 # Set --gc-sections.
9302 if test "$with_gnu_ld" = "notbroken"; then
9303 # GNU ld it is! Joy and bunny rabbits!
9305 # All these tests are for C++; save the language and the compiler flags.
9306 # Need to do this so that g++ won't try to link in libstdc++
9307 ac_test_CFLAGS="${CFLAGS+set}"
9308 ac_save_CFLAGS="$CFLAGS"
9309 CFLAGS='-x c++ -Wl,--gc-sections'
9311 # Check for -Wl,--gc-sections
9312 # XXX This test is broken at the moment, as symbols required for
9313 # linking are now in libsupc++ (not built yet.....). In addition,
9314 # this test has cored on solaris in the past. In addition,
9315 # --gc-sections doesn't really work at the moment (keeps on discarding
9316 # used sections, first .eh_frame and now some of the glibc sections for
9317 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9318 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9319 echo "configure:9320: checking for ld that supports -Wl,--gc-sections" >&5
9320 if test "$cross_compiling" = yes; then
9321 ac_sectionLDflags=yes
9322 else
9323 cat > conftest.$ac_ext <<EOF
9324 #line 9325 "configure"
9325 #include "confdefs.h"
9327 int main(void)
9329 try { throw 1; }
9330 catch (...) { };
9331 return 0;
9335 if { (eval echo configure:9336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9336 then
9337 ac_sectionLDflags=yes
9338 else
9339 echo "configure: failed program was:" >&5
9340 cat conftest.$ac_ext >&5
9341 rm -fr conftest*
9342 ac_sectionLDflags=no
9344 rm -fr conftest*
9347 if test "$ac_test_CFLAGS" = set; then
9348 CFLAGS="$ac_save_CFLAGS"
9349 else
9350 # this is the suspicious part
9351 CFLAGS=''
9353 if test "$ac_sectionLDflags" = "yes"; then
9354 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9356 echo "$ac_t""$ac_sectionLDflags" 1>&6
9359 # Set linker optimization flags.
9360 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9361 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9369 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
9370 echo "configure:9371: checking for __builtin_abs declaration" >&5
9371 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
9372 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
9373 echo $ac_n "(cached) $ac_c" 1>&6
9374 else
9377 ac_ext=C
9378 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9379 ac_cpp='$CXXCPP $CPPFLAGS'
9380 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9381 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9382 cross_compiling=$ac_cv_prog_cxx_cross
9384 cat > conftest.$ac_ext <<EOF
9385 #line 9386 "configure"
9386 #include "confdefs.h"
9387 #include <math.h>
9388 int main() {
9389 __builtin_abs(0);
9390 ; return 0; }
9392 if { (eval echo configure:9393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9393 rm -rf conftest*
9394 glibcpp_cv_func___builtin_abs_use=yes
9395 else
9396 echo "configure: failed program was:" >&5
9397 cat conftest.$ac_ext >&5
9398 rm -rf conftest*
9399 glibcpp_cv_func___builtin_abs_use=no
9401 rm -f conftest*
9402 ac_ext=c
9403 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9404 ac_cpp='$CPP $CPPFLAGS'
9405 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9406 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9407 cross_compiling=$ac_cv_prog_cc_cross
9413 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
9414 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
9415 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
9416 echo "configure:9417: checking for __builtin_abs linkage" >&5
9417 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
9418 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
9419 echo $ac_n "(cached) $ac_c" 1>&6
9420 else
9422 cat > conftest.$ac_ext <<EOF
9423 #line 9424 "configure"
9424 #include "confdefs.h"
9425 #include <math.h>
9426 int main() {
9427 __builtin_abs(0);
9428 ; return 0; }
9430 if { (eval echo configure:9431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9431 rm -rf conftest*
9432 glibcpp_cv_func___builtin_abs_link=yes
9433 else
9434 echo "configure: failed program was:" >&5
9435 cat conftest.$ac_ext >&5
9436 rm -rf conftest*
9437 glibcpp_cv_func___builtin_abs_link=no
9439 rm -f conftest*
9444 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
9445 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
9446 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9447 cat >> confdefs.h <<EOF
9448 #define ${ac_tr_func} 1
9455 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
9456 echo "configure:9457: checking for __builtin_fabsf declaration" >&5
9457 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
9458 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
9459 echo $ac_n "(cached) $ac_c" 1>&6
9460 else
9463 ac_ext=C
9464 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9465 ac_cpp='$CXXCPP $CPPFLAGS'
9466 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9467 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9468 cross_compiling=$ac_cv_prog_cxx_cross
9470 cat > conftest.$ac_ext <<EOF
9471 #line 9472 "configure"
9472 #include "confdefs.h"
9473 #include <math.h>
9474 int main() {
9475 __builtin_fabsf(0);
9476 ; return 0; }
9478 if { (eval echo configure:9479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9479 rm -rf conftest*
9480 glibcpp_cv_func___builtin_fabsf_use=yes
9481 else
9482 echo "configure: failed program was:" >&5
9483 cat conftest.$ac_ext >&5
9484 rm -rf conftest*
9485 glibcpp_cv_func___builtin_fabsf_use=no
9487 rm -f conftest*
9488 ac_ext=c
9489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9490 ac_cpp='$CPP $CPPFLAGS'
9491 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9492 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9493 cross_compiling=$ac_cv_prog_cc_cross
9499 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
9500 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
9501 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
9502 echo "configure:9503: checking for __builtin_fabsf linkage" >&5
9503 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
9504 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
9505 echo $ac_n "(cached) $ac_c" 1>&6
9506 else
9508 cat > conftest.$ac_ext <<EOF
9509 #line 9510 "configure"
9510 #include "confdefs.h"
9511 #include <math.h>
9512 int main() {
9513 __builtin_fabsf(0);
9514 ; return 0; }
9516 if { (eval echo configure:9517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9517 rm -rf conftest*
9518 glibcpp_cv_func___builtin_fabsf_link=yes
9519 else
9520 echo "configure: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9522 rm -rf conftest*
9523 glibcpp_cv_func___builtin_fabsf_link=no
9525 rm -f conftest*
9530 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
9531 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
9532 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9533 cat >> confdefs.h <<EOF
9534 #define ${ac_tr_func} 1
9541 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
9542 echo "configure:9543: checking for __builtin_fabs declaration" >&5
9543 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
9544 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
9545 echo $ac_n "(cached) $ac_c" 1>&6
9546 else
9549 ac_ext=C
9550 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9551 ac_cpp='$CXXCPP $CPPFLAGS'
9552 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9553 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9554 cross_compiling=$ac_cv_prog_cxx_cross
9556 cat > conftest.$ac_ext <<EOF
9557 #line 9558 "configure"
9558 #include "confdefs.h"
9559 #include <math.h>
9560 int main() {
9561 __builtin_fabs(0);
9562 ; return 0; }
9564 if { (eval echo configure:9565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9565 rm -rf conftest*
9566 glibcpp_cv_func___builtin_fabs_use=yes
9567 else
9568 echo "configure: failed program was:" >&5
9569 cat conftest.$ac_ext >&5
9570 rm -rf conftest*
9571 glibcpp_cv_func___builtin_fabs_use=no
9573 rm -f conftest*
9574 ac_ext=c
9575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9576 ac_cpp='$CPP $CPPFLAGS'
9577 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9578 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9579 cross_compiling=$ac_cv_prog_cc_cross
9585 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
9586 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
9587 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
9588 echo "configure:9589: checking for __builtin_fabs linkage" >&5
9589 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
9590 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
9591 echo $ac_n "(cached) $ac_c" 1>&6
9592 else
9594 cat > conftest.$ac_ext <<EOF
9595 #line 9596 "configure"
9596 #include "confdefs.h"
9597 #include <math.h>
9598 int main() {
9599 __builtin_fabs(0);
9600 ; return 0; }
9602 if { (eval echo configure:9603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9603 rm -rf conftest*
9604 glibcpp_cv_func___builtin_fabs_link=yes
9605 else
9606 echo "configure: failed program was:" >&5
9607 cat conftest.$ac_ext >&5
9608 rm -rf conftest*
9609 glibcpp_cv_func___builtin_fabs_link=no
9611 rm -f conftest*
9616 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
9617 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
9618 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9619 cat >> confdefs.h <<EOF
9620 #define ${ac_tr_func} 1
9627 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
9628 echo "configure:9629: checking for __builtin_fabsl declaration" >&5
9629 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
9630 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
9631 echo $ac_n "(cached) $ac_c" 1>&6
9632 else
9635 ac_ext=C
9636 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9637 ac_cpp='$CXXCPP $CPPFLAGS'
9638 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9639 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9640 cross_compiling=$ac_cv_prog_cxx_cross
9642 cat > conftest.$ac_ext <<EOF
9643 #line 9644 "configure"
9644 #include "confdefs.h"
9645 #include <math.h>
9646 int main() {
9647 __builtin_fabsl(0);
9648 ; return 0; }
9650 if { (eval echo configure:9651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9651 rm -rf conftest*
9652 glibcpp_cv_func___builtin_fabsl_use=yes
9653 else
9654 echo "configure: failed program was:" >&5
9655 cat conftest.$ac_ext >&5
9656 rm -rf conftest*
9657 glibcpp_cv_func___builtin_fabsl_use=no
9659 rm -f conftest*
9660 ac_ext=c
9661 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9662 ac_cpp='$CPP $CPPFLAGS'
9663 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9664 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9665 cross_compiling=$ac_cv_prog_cc_cross
9671 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
9672 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
9673 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
9674 echo "configure:9675: checking for __builtin_fabsl linkage" >&5
9675 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
9676 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
9677 echo $ac_n "(cached) $ac_c" 1>&6
9678 else
9680 cat > conftest.$ac_ext <<EOF
9681 #line 9682 "configure"
9682 #include "confdefs.h"
9683 #include <math.h>
9684 int main() {
9685 __builtin_fabsl(0);
9686 ; return 0; }
9688 if { (eval echo configure:9689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9689 rm -rf conftest*
9690 glibcpp_cv_func___builtin_fabsl_link=yes
9691 else
9692 echo "configure: failed program was:" >&5
9693 cat conftest.$ac_ext >&5
9694 rm -rf conftest*
9695 glibcpp_cv_func___builtin_fabsl_link=no
9697 rm -f conftest*
9702 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
9703 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
9704 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9705 cat >> confdefs.h <<EOF
9706 #define ${ac_tr_func} 1
9713 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
9714 echo "configure:9715: checking for __builtin_labs declaration" >&5
9715 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
9716 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
9717 echo $ac_n "(cached) $ac_c" 1>&6
9718 else
9721 ac_ext=C
9722 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9723 ac_cpp='$CXXCPP $CPPFLAGS'
9724 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9725 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9726 cross_compiling=$ac_cv_prog_cxx_cross
9728 cat > conftest.$ac_ext <<EOF
9729 #line 9730 "configure"
9730 #include "confdefs.h"
9731 #include <math.h>
9732 int main() {
9733 __builtin_labs(0);
9734 ; return 0; }
9736 if { (eval echo configure:9737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9737 rm -rf conftest*
9738 glibcpp_cv_func___builtin_labs_use=yes
9739 else
9740 echo "configure: failed program was:" >&5
9741 cat conftest.$ac_ext >&5
9742 rm -rf conftest*
9743 glibcpp_cv_func___builtin_labs_use=no
9745 rm -f conftest*
9746 ac_ext=c
9747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9748 ac_cpp='$CPP $CPPFLAGS'
9749 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9750 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9751 cross_compiling=$ac_cv_prog_cc_cross
9757 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
9758 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
9759 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
9760 echo "configure:9761: checking for __builtin_labs linkage" >&5
9761 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
9762 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
9763 echo $ac_n "(cached) $ac_c" 1>&6
9764 else
9766 cat > conftest.$ac_ext <<EOF
9767 #line 9768 "configure"
9768 #include "confdefs.h"
9769 #include <math.h>
9770 int main() {
9771 __builtin_labs(0);
9772 ; return 0; }
9774 if { (eval echo configure:9775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9775 rm -rf conftest*
9776 glibcpp_cv_func___builtin_labs_link=yes
9777 else
9778 echo "configure: failed program was:" >&5
9779 cat conftest.$ac_ext >&5
9780 rm -rf conftest*
9781 glibcpp_cv_func___builtin_labs_link=no
9783 rm -f conftest*
9788 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
9789 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
9790 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9791 cat >> confdefs.h <<EOF
9792 #define ${ac_tr_func} 1
9800 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
9801 echo "configure:9802: checking for __builtin_sqrtf declaration" >&5
9802 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
9803 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
9804 echo $ac_n "(cached) $ac_c" 1>&6
9805 else
9808 ac_ext=C
9809 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9810 ac_cpp='$CXXCPP $CPPFLAGS'
9811 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9812 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9813 cross_compiling=$ac_cv_prog_cxx_cross
9815 cat > conftest.$ac_ext <<EOF
9816 #line 9817 "configure"
9817 #include "confdefs.h"
9818 #include <math.h>
9819 int main() {
9820 __builtin_sqrtf(0);
9821 ; return 0; }
9823 if { (eval echo configure:9824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9824 rm -rf conftest*
9825 glibcpp_cv_func___builtin_sqrtf_use=yes
9826 else
9827 echo "configure: failed program was:" >&5
9828 cat conftest.$ac_ext >&5
9829 rm -rf conftest*
9830 glibcpp_cv_func___builtin_sqrtf_use=no
9832 rm -f conftest*
9833 ac_ext=c
9834 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9835 ac_cpp='$CPP $CPPFLAGS'
9836 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9837 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9838 cross_compiling=$ac_cv_prog_cc_cross
9844 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
9845 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
9846 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
9847 echo "configure:9848: checking for __builtin_sqrtf linkage" >&5
9848 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
9849 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
9850 echo $ac_n "(cached) $ac_c" 1>&6
9851 else
9853 cat > conftest.$ac_ext <<EOF
9854 #line 9855 "configure"
9855 #include "confdefs.h"
9856 #include <math.h>
9857 int main() {
9858 __builtin_sqrtf(0);
9859 ; return 0; }
9861 if { (eval echo configure:9862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9862 rm -rf conftest*
9863 glibcpp_cv_func___builtin_sqrtf_link=yes
9864 else
9865 echo "configure: failed program was:" >&5
9866 cat conftest.$ac_ext >&5
9867 rm -rf conftest*
9868 glibcpp_cv_func___builtin_sqrtf_link=no
9870 rm -f conftest*
9875 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
9876 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
9877 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9878 cat >> confdefs.h <<EOF
9879 #define ${ac_tr_func} 1
9886 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
9887 echo "configure:9888: checking for __builtin_sqrt declaration" >&5
9888 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
9889 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
9890 echo $ac_n "(cached) $ac_c" 1>&6
9891 else
9894 ac_ext=C
9895 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9896 ac_cpp='$CXXCPP $CPPFLAGS'
9897 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9898 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9899 cross_compiling=$ac_cv_prog_cxx_cross
9901 cat > conftest.$ac_ext <<EOF
9902 #line 9903 "configure"
9903 #include "confdefs.h"
9904 #include <math.h>
9905 int main() {
9906 __builtin_sqrt(0);
9907 ; return 0; }
9909 if { (eval echo configure:9910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9910 rm -rf conftest*
9911 glibcpp_cv_func___builtin_sqrt_use=yes
9912 else
9913 echo "configure: failed program was:" >&5
9914 cat conftest.$ac_ext >&5
9915 rm -rf conftest*
9916 glibcpp_cv_func___builtin_sqrt_use=no
9918 rm -f conftest*
9919 ac_ext=c
9920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9921 ac_cpp='$CPP $CPPFLAGS'
9922 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9923 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9924 cross_compiling=$ac_cv_prog_cc_cross
9930 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
9931 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
9932 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
9933 echo "configure:9934: checking for __builtin_sqrt linkage" >&5
9934 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
9935 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
9936 echo $ac_n "(cached) $ac_c" 1>&6
9937 else
9939 cat > conftest.$ac_ext <<EOF
9940 #line 9941 "configure"
9941 #include "confdefs.h"
9942 #include <math.h>
9943 int main() {
9944 __builtin_sqrt(0);
9945 ; return 0; }
9947 if { (eval echo configure:9948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9948 rm -rf conftest*
9949 glibcpp_cv_func___builtin_sqrt_link=yes
9950 else
9951 echo "configure: failed program was:" >&5
9952 cat conftest.$ac_ext >&5
9953 rm -rf conftest*
9954 glibcpp_cv_func___builtin_sqrt_link=no
9956 rm -f conftest*
9961 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
9962 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
9963 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9964 cat >> confdefs.h <<EOF
9965 #define ${ac_tr_func} 1
9972 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
9973 echo "configure:9974: checking for __builtin_sqrtl declaration" >&5
9974 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
9975 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
9976 echo $ac_n "(cached) $ac_c" 1>&6
9977 else
9980 ac_ext=C
9981 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9982 ac_cpp='$CXXCPP $CPPFLAGS'
9983 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9984 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9985 cross_compiling=$ac_cv_prog_cxx_cross
9987 cat > conftest.$ac_ext <<EOF
9988 #line 9989 "configure"
9989 #include "confdefs.h"
9990 #include <math.h>
9991 int main() {
9992 __builtin_sqrtl(0);
9993 ; return 0; }
9995 if { (eval echo configure:9996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9996 rm -rf conftest*
9997 glibcpp_cv_func___builtin_sqrtl_use=yes
9998 else
9999 echo "configure: failed program was:" >&5
10000 cat conftest.$ac_ext >&5
10001 rm -rf conftest*
10002 glibcpp_cv_func___builtin_sqrtl_use=no
10004 rm -f conftest*
10005 ac_ext=c
10006 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10007 ac_cpp='$CPP $CPPFLAGS'
10008 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10009 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10010 cross_compiling=$ac_cv_prog_cc_cross
10016 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
10017 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
10018 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
10019 echo "configure:10020: checking for __builtin_sqrtl linkage" >&5
10020 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
10021 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
10022 echo $ac_n "(cached) $ac_c" 1>&6
10023 else
10025 cat > conftest.$ac_ext <<EOF
10026 #line 10027 "configure"
10027 #include "confdefs.h"
10028 #include <math.h>
10029 int main() {
10030 __builtin_sqrtl(0);
10031 ; return 0; }
10033 if { (eval echo configure:10034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10034 rm -rf conftest*
10035 glibcpp_cv_func___builtin_sqrtl_link=yes
10036 else
10037 echo "configure: failed program was:" >&5
10038 cat conftest.$ac_ext >&5
10039 rm -rf conftest*
10040 glibcpp_cv_func___builtin_sqrtl_link=no
10042 rm -f conftest*
10047 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
10048 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
10049 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10050 cat >> confdefs.h <<EOF
10051 #define ${ac_tr_func} 1
10059 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
10060 echo "configure:10061: checking for __builtin_sinf declaration" >&5
10061 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
10062 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
10063 echo $ac_n "(cached) $ac_c" 1>&6
10064 else
10067 ac_ext=C
10068 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10069 ac_cpp='$CXXCPP $CPPFLAGS'
10070 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10071 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10072 cross_compiling=$ac_cv_prog_cxx_cross
10074 cat > conftest.$ac_ext <<EOF
10075 #line 10076 "configure"
10076 #include "confdefs.h"
10077 #include <math.h>
10078 int main() {
10079 __builtin_sinf(0);
10080 ; return 0; }
10082 if { (eval echo configure:10083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10083 rm -rf conftest*
10084 glibcpp_cv_func___builtin_sinf_use=yes
10085 else
10086 echo "configure: failed program was:" >&5
10087 cat conftest.$ac_ext >&5
10088 rm -rf conftest*
10089 glibcpp_cv_func___builtin_sinf_use=no
10091 rm -f conftest*
10092 ac_ext=c
10093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10094 ac_cpp='$CPP $CPPFLAGS'
10095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10096 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10097 cross_compiling=$ac_cv_prog_cc_cross
10103 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
10104 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
10105 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
10106 echo "configure:10107: checking for __builtin_sinf linkage" >&5
10107 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
10108 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
10109 echo $ac_n "(cached) $ac_c" 1>&6
10110 else
10112 cat > conftest.$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10115 #include <math.h>
10116 int main() {
10117 __builtin_sinf(0);
10118 ; return 0; }
10120 if { (eval echo configure:10121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10121 rm -rf conftest*
10122 glibcpp_cv_func___builtin_sinf_link=yes
10123 else
10124 echo "configure: failed program was:" >&5
10125 cat conftest.$ac_ext >&5
10126 rm -rf conftest*
10127 glibcpp_cv_func___builtin_sinf_link=no
10129 rm -f conftest*
10134 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
10135 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
10136 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10137 cat >> confdefs.h <<EOF
10138 #define ${ac_tr_func} 1
10145 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
10146 echo "configure:10147: checking for __builtin_sin declaration" >&5
10147 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
10148 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
10149 echo $ac_n "(cached) $ac_c" 1>&6
10150 else
10153 ac_ext=C
10154 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10155 ac_cpp='$CXXCPP $CPPFLAGS'
10156 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10157 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10158 cross_compiling=$ac_cv_prog_cxx_cross
10160 cat > conftest.$ac_ext <<EOF
10161 #line 10162 "configure"
10162 #include "confdefs.h"
10163 #include <math.h>
10164 int main() {
10165 __builtin_sin(0);
10166 ; return 0; }
10168 if { (eval echo configure:10169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10169 rm -rf conftest*
10170 glibcpp_cv_func___builtin_sin_use=yes
10171 else
10172 echo "configure: failed program was:" >&5
10173 cat conftest.$ac_ext >&5
10174 rm -rf conftest*
10175 glibcpp_cv_func___builtin_sin_use=no
10177 rm -f conftest*
10178 ac_ext=c
10179 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10180 ac_cpp='$CPP $CPPFLAGS'
10181 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10182 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10183 cross_compiling=$ac_cv_prog_cc_cross
10189 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
10190 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
10191 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
10192 echo "configure:10193: checking for __builtin_sin linkage" >&5
10193 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
10194 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
10195 echo $ac_n "(cached) $ac_c" 1>&6
10196 else
10198 cat > conftest.$ac_ext <<EOF
10199 #line 10200 "configure"
10200 #include "confdefs.h"
10201 #include <math.h>
10202 int main() {
10203 __builtin_sin(0);
10204 ; return 0; }
10206 if { (eval echo configure:10207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10207 rm -rf conftest*
10208 glibcpp_cv_func___builtin_sin_link=yes
10209 else
10210 echo "configure: failed program was:" >&5
10211 cat conftest.$ac_ext >&5
10212 rm -rf conftest*
10213 glibcpp_cv_func___builtin_sin_link=no
10215 rm -f conftest*
10220 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
10221 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
10222 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10223 cat >> confdefs.h <<EOF
10224 #define ${ac_tr_func} 1
10231 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
10232 echo "configure:10233: checking for __builtin_sinl declaration" >&5
10233 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
10234 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
10235 echo $ac_n "(cached) $ac_c" 1>&6
10236 else
10239 ac_ext=C
10240 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10241 ac_cpp='$CXXCPP $CPPFLAGS'
10242 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10243 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10244 cross_compiling=$ac_cv_prog_cxx_cross
10246 cat > conftest.$ac_ext <<EOF
10247 #line 10248 "configure"
10248 #include "confdefs.h"
10249 #include <math.h>
10250 int main() {
10251 __builtin_sinl(0);
10252 ; return 0; }
10254 if { (eval echo configure:10255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10255 rm -rf conftest*
10256 glibcpp_cv_func___builtin_sinl_use=yes
10257 else
10258 echo "configure: failed program was:" >&5
10259 cat conftest.$ac_ext >&5
10260 rm -rf conftest*
10261 glibcpp_cv_func___builtin_sinl_use=no
10263 rm -f conftest*
10264 ac_ext=c
10265 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10266 ac_cpp='$CPP $CPPFLAGS'
10267 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10268 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10269 cross_compiling=$ac_cv_prog_cc_cross
10275 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
10276 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
10277 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
10278 echo "configure:10279: checking for __builtin_sinl linkage" >&5
10279 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
10280 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
10281 echo $ac_n "(cached) $ac_c" 1>&6
10282 else
10284 cat > conftest.$ac_ext <<EOF
10285 #line 10286 "configure"
10286 #include "confdefs.h"
10287 #include <math.h>
10288 int main() {
10289 __builtin_sinl(0);
10290 ; return 0; }
10292 if { (eval echo configure:10293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10293 rm -rf conftest*
10294 glibcpp_cv_func___builtin_sinl_link=yes
10295 else
10296 echo "configure: failed program was:" >&5
10297 cat conftest.$ac_ext >&5
10298 rm -rf conftest*
10299 glibcpp_cv_func___builtin_sinl_link=no
10301 rm -f conftest*
10306 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
10307 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
10308 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10309 cat >> confdefs.h <<EOF
10310 #define ${ac_tr_func} 1
10318 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
10319 echo "configure:10320: checking for __builtin_cosf declaration" >&5
10320 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
10321 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
10322 echo $ac_n "(cached) $ac_c" 1>&6
10323 else
10326 ac_ext=C
10327 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10328 ac_cpp='$CXXCPP $CPPFLAGS'
10329 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10330 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10331 cross_compiling=$ac_cv_prog_cxx_cross
10333 cat > conftest.$ac_ext <<EOF
10334 #line 10335 "configure"
10335 #include "confdefs.h"
10336 #include <math.h>
10337 int main() {
10338 __builtin_cosf(0);
10339 ; return 0; }
10341 if { (eval echo configure:10342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10342 rm -rf conftest*
10343 glibcpp_cv_func___builtin_cosf_use=yes
10344 else
10345 echo "configure: failed program was:" >&5
10346 cat conftest.$ac_ext >&5
10347 rm -rf conftest*
10348 glibcpp_cv_func___builtin_cosf_use=no
10350 rm -f conftest*
10351 ac_ext=c
10352 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10353 ac_cpp='$CPP $CPPFLAGS'
10354 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10355 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10356 cross_compiling=$ac_cv_prog_cc_cross
10362 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
10363 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
10364 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
10365 echo "configure:10366: checking for __builtin_cosf linkage" >&5
10366 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
10367 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
10368 echo $ac_n "(cached) $ac_c" 1>&6
10369 else
10371 cat > conftest.$ac_ext <<EOF
10372 #line 10373 "configure"
10373 #include "confdefs.h"
10374 #include <math.h>
10375 int main() {
10376 __builtin_cosf(0);
10377 ; return 0; }
10379 if { (eval echo configure:10380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10380 rm -rf conftest*
10381 glibcpp_cv_func___builtin_cosf_link=yes
10382 else
10383 echo "configure: failed program was:" >&5
10384 cat conftest.$ac_ext >&5
10385 rm -rf conftest*
10386 glibcpp_cv_func___builtin_cosf_link=no
10388 rm -f conftest*
10393 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
10394 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
10395 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10396 cat >> confdefs.h <<EOF
10397 #define ${ac_tr_func} 1
10404 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
10405 echo "configure:10406: checking for __builtin_cos declaration" >&5
10406 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
10407 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
10408 echo $ac_n "(cached) $ac_c" 1>&6
10409 else
10412 ac_ext=C
10413 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10414 ac_cpp='$CXXCPP $CPPFLAGS'
10415 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10416 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10417 cross_compiling=$ac_cv_prog_cxx_cross
10419 cat > conftest.$ac_ext <<EOF
10420 #line 10421 "configure"
10421 #include "confdefs.h"
10422 #include <math.h>
10423 int main() {
10424 __builtin_cos(0);
10425 ; return 0; }
10427 if { (eval echo configure:10428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10428 rm -rf conftest*
10429 glibcpp_cv_func___builtin_cos_use=yes
10430 else
10431 echo "configure: failed program was:" >&5
10432 cat conftest.$ac_ext >&5
10433 rm -rf conftest*
10434 glibcpp_cv_func___builtin_cos_use=no
10436 rm -f conftest*
10437 ac_ext=c
10438 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10439 ac_cpp='$CPP $CPPFLAGS'
10440 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10441 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10442 cross_compiling=$ac_cv_prog_cc_cross
10448 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
10449 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
10450 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
10451 echo "configure:10452: checking for __builtin_cos linkage" >&5
10452 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
10453 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
10454 echo $ac_n "(cached) $ac_c" 1>&6
10455 else
10457 cat > conftest.$ac_ext <<EOF
10458 #line 10459 "configure"
10459 #include "confdefs.h"
10460 #include <math.h>
10461 int main() {
10462 __builtin_cos(0);
10463 ; return 0; }
10465 if { (eval echo configure:10466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10466 rm -rf conftest*
10467 glibcpp_cv_func___builtin_cos_link=yes
10468 else
10469 echo "configure: failed program was:" >&5
10470 cat conftest.$ac_ext >&5
10471 rm -rf conftest*
10472 glibcpp_cv_func___builtin_cos_link=no
10474 rm -f conftest*
10479 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
10480 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
10481 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10482 cat >> confdefs.h <<EOF
10483 #define ${ac_tr_func} 1
10490 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
10491 echo "configure:10492: checking for __builtin_cosl declaration" >&5
10492 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
10493 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
10494 echo $ac_n "(cached) $ac_c" 1>&6
10495 else
10498 ac_ext=C
10499 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10500 ac_cpp='$CXXCPP $CPPFLAGS'
10501 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10502 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10503 cross_compiling=$ac_cv_prog_cxx_cross
10505 cat > conftest.$ac_ext <<EOF
10506 #line 10507 "configure"
10507 #include "confdefs.h"
10508 #include <math.h>
10509 int main() {
10510 __builtin_cosl(0);
10511 ; return 0; }
10513 if { (eval echo configure:10514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10514 rm -rf conftest*
10515 glibcpp_cv_func___builtin_cosl_use=yes
10516 else
10517 echo "configure: failed program was:" >&5
10518 cat conftest.$ac_ext >&5
10519 rm -rf conftest*
10520 glibcpp_cv_func___builtin_cosl_use=no
10522 rm -f conftest*
10523 ac_ext=c
10524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10525 ac_cpp='$CPP $CPPFLAGS'
10526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10528 cross_compiling=$ac_cv_prog_cc_cross
10534 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
10535 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
10536 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
10537 echo "configure:10538: checking for __builtin_cosl linkage" >&5
10538 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
10539 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
10540 echo $ac_n "(cached) $ac_c" 1>&6
10541 else
10543 cat > conftest.$ac_ext <<EOF
10544 #line 10545 "configure"
10545 #include "confdefs.h"
10546 #include <math.h>
10547 int main() {
10548 __builtin_cosl(0);
10549 ; return 0; }
10551 if { (eval echo configure:10552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10552 rm -rf conftest*
10553 glibcpp_cv_func___builtin_cosl_link=yes
10554 else
10555 echo "configure: failed program was:" >&5
10556 cat conftest.$ac_ext >&5
10557 rm -rf conftest*
10558 glibcpp_cv_func___builtin_cosl_link=no
10560 rm -f conftest*
10565 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
10566 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
10567 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10568 cat >> confdefs.h <<EOF
10569 #define ${ac_tr_func} 1
10576 dummyvar=no
10577 if test x$dummyvar = x"yes"; then
10578 cat >> confdefs.h <<\EOF
10579 #define HAVE___BUILTIN_ABS 1
10582 cat >> confdefs.h <<\EOF
10583 #define HAVE___BUILTIN_LABS 1
10586 cat >> confdefs.h <<\EOF
10587 #define HAVE___BUILTIN_COS 1
10590 cat >> confdefs.h <<\EOF
10591 #define HAVE___BUILTIN_COSF 1
10594 cat >> confdefs.h <<\EOF
10595 #define HAVE___BUILTIN_COSL 1
10598 cat >> confdefs.h <<\EOF
10599 #define HAVE___BUILTIN_FABS 1
10602 cat >> confdefs.h <<\EOF
10603 #define HAVE___BUILTIN_FABSF 1
10606 cat >> confdefs.h <<\EOF
10607 #define HAVE___BUILTIN_FABSL 1
10610 cat >> confdefs.h <<\EOF
10611 #define HAVE___BUILTIN_SIN 1
10614 cat >> confdefs.h <<\EOF
10615 #define HAVE___BUILTIN_SINF 1
10618 cat >> confdefs.h <<\EOF
10619 #define HAVE___BUILTIN_SINL 1
10622 cat >> confdefs.h <<\EOF
10623 #define HAVE___BUILTIN_SQRT 1
10626 cat >> confdefs.h <<\EOF
10627 #define HAVE___BUILTIN_SQRTF 1
10630 cat >> confdefs.h <<\EOF
10631 #define HAVE___BUILTIN_SQRTL 1
10637 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10638 ac_save_CXXFLAGS="$CXXFLAGS"
10639 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10641 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10642 echo "configure:10643: checking for sin in -lm" >&5
10643 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10645 echo $ac_n "(cached) $ac_c" 1>&6
10646 else
10647 ac_save_LIBS="$LIBS"
10648 LIBS="-lm $LIBS"
10649 cat > conftest.$ac_ext <<EOF
10650 #line 10651 "configure"
10651 #include "confdefs.h"
10652 /* Override any gcc2 internal prototype to avoid an error. */
10653 /* We use char because int might match the return type of a gcc2
10654 builtin and then its argument prototype would still apply. */
10655 char sin();
10657 int main() {
10658 sin()
10659 ; return 0; }
10661 if { (eval echo configure:10662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10662 rm -rf conftest*
10663 eval "ac_cv_lib_$ac_lib_var=yes"
10664 else
10665 echo "configure: failed program was:" >&5
10666 cat conftest.$ac_ext >&5
10667 rm -rf conftest*
10668 eval "ac_cv_lib_$ac_lib_var=no"
10670 rm -f conftest*
10671 LIBS="$ac_save_LIBS"
10674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10675 echo "$ac_t""yes" 1>&6
10676 libm="-lm"
10677 else
10678 echo "$ac_t""no" 1>&6
10681 ac_save_LIBS="$LIBS"
10682 LIBS="$LIBS $libm"
10686 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10687 echo "configure:10688: checking for isinf declaration" >&5
10688 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10689 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10690 echo $ac_n "(cached) $ac_c" 1>&6
10691 else
10694 ac_ext=C
10695 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10696 ac_cpp='$CXXCPP $CPPFLAGS'
10697 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10698 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10699 cross_compiling=$ac_cv_prog_cxx_cross
10701 cat > conftest.$ac_ext <<EOF
10702 #line 10703 "configure"
10703 #include "confdefs.h"
10704 #include <math.h>
10705 #ifdef HAVE_IEEEFP_H
10706 #include <ieeefp.h>
10707 #endif
10709 int main() {
10710 isinf(0);
10711 ; return 0; }
10713 if { (eval echo configure:10714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10714 rm -rf conftest*
10715 glibcpp_cv_func_isinf_use=yes
10716 else
10717 echo "configure: failed program was:" >&5
10718 cat conftest.$ac_ext >&5
10719 rm -rf conftest*
10720 glibcpp_cv_func_isinf_use=no
10722 rm -f conftest*
10723 ac_ext=c
10724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10725 ac_cpp='$CPP $CPPFLAGS'
10726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10728 cross_compiling=$ac_cv_prog_cc_cross
10734 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10736 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10737 for ac_func in isinf
10739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10740 echo "configure:10741: checking for $ac_func" >&5
10741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10742 echo $ac_n "(cached) $ac_c" 1>&6
10743 else
10744 cat > conftest.$ac_ext <<EOF
10745 #line 10746 "configure"
10746 #include "confdefs.h"
10747 /* System header to define __stub macros and hopefully few prototypes,
10748 which can conflict with char $ac_func(); below. */
10749 #include <assert.h>
10750 /* Override any gcc2 internal prototype to avoid an error. */
10751 /* We use char because int might match the return type of a gcc2
10752 builtin and then its argument prototype would still apply. */
10753 char $ac_func();
10755 int main() {
10757 /* The GNU C library defines this for functions which it implements
10758 to always fail with ENOSYS. Some functions are actually named
10759 something starting with __ and the normal name is an alias. */
10760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10761 choke me
10762 #else
10763 $ac_func();
10764 #endif
10766 ; return 0; }
10768 if { (eval echo configure:10769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10769 rm -rf conftest*
10770 eval "ac_cv_func_$ac_func=yes"
10771 else
10772 echo "configure: failed program was:" >&5
10773 cat conftest.$ac_ext >&5
10774 rm -rf conftest*
10775 eval "ac_cv_func_$ac_func=no"
10777 rm -f conftest*
10780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10781 echo "$ac_t""yes" 1>&6
10782 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10783 cat >> confdefs.h <<EOF
10784 #define $ac_tr_func 1
10787 else
10788 echo "$ac_t""no" 1>&6
10790 done
10792 else
10794 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10795 echo "configure:10796: checking for _isinf declaration" >&5
10796 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10797 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10798 echo $ac_n "(cached) $ac_c" 1>&6
10799 else
10802 ac_ext=C
10803 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10804 ac_cpp='$CXXCPP $CPPFLAGS'
10805 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10806 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10807 cross_compiling=$ac_cv_prog_cxx_cross
10809 cat > conftest.$ac_ext <<EOF
10810 #line 10811 "configure"
10811 #include "confdefs.h"
10812 #include <math.h>
10813 #ifdef HAVE_IEEEFP_H
10814 #include <ieeefp.h>
10815 #endif
10817 int main() {
10818 _isinf(0);
10819 ; return 0; }
10821 if { (eval echo configure:10822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10822 rm -rf conftest*
10823 glibcpp_cv_func__isinf_use=yes
10824 else
10825 echo "configure: failed program was:" >&5
10826 cat conftest.$ac_ext >&5
10827 rm -rf conftest*
10828 glibcpp_cv_func__isinf_use=no
10830 rm -f conftest*
10831 ac_ext=c
10832 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10833 ac_cpp='$CPP $CPPFLAGS'
10834 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10835 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10836 cross_compiling=$ac_cv_prog_cc_cross
10842 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10844 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10845 for ac_func in _isinf
10847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10848 echo "configure:10849: checking for $ac_func" >&5
10849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10850 echo $ac_n "(cached) $ac_c" 1>&6
10851 else
10852 cat > conftest.$ac_ext <<EOF
10853 #line 10854 "configure"
10854 #include "confdefs.h"
10855 /* System header to define __stub macros and hopefully few prototypes,
10856 which can conflict with char $ac_func(); below. */
10857 #include <assert.h>
10858 /* Override any gcc2 internal prototype to avoid an error. */
10859 /* We use char because int might match the return type of a gcc2
10860 builtin and then its argument prototype would still apply. */
10861 char $ac_func();
10863 int main() {
10865 /* The GNU C library defines this for functions which it implements
10866 to always fail with ENOSYS. Some functions are actually named
10867 something starting with __ and the normal name is an alias. */
10868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10869 choke me
10870 #else
10871 $ac_func();
10872 #endif
10874 ; return 0; }
10876 if { (eval echo configure:10877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10877 rm -rf conftest*
10878 eval "ac_cv_func_$ac_func=yes"
10879 else
10880 echo "configure: failed program was:" >&5
10881 cat conftest.$ac_ext >&5
10882 rm -rf conftest*
10883 eval "ac_cv_func_$ac_func=no"
10885 rm -f conftest*
10888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10889 echo "$ac_t""yes" 1>&6
10890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10891 cat >> confdefs.h <<EOF
10892 #define $ac_tr_func 1
10895 else
10896 echo "$ac_t""no" 1>&6
10898 done
10905 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10906 echo "configure:10907: checking for isnan declaration" >&5
10907 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10908 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10909 echo $ac_n "(cached) $ac_c" 1>&6
10910 else
10913 ac_ext=C
10914 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10915 ac_cpp='$CXXCPP $CPPFLAGS'
10916 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10917 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10918 cross_compiling=$ac_cv_prog_cxx_cross
10920 cat > conftest.$ac_ext <<EOF
10921 #line 10922 "configure"
10922 #include "confdefs.h"
10923 #include <math.h>
10924 #ifdef HAVE_IEEEFP_H
10925 #include <ieeefp.h>
10926 #endif
10928 int main() {
10929 isnan(0);
10930 ; return 0; }
10932 if { (eval echo configure:10933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10933 rm -rf conftest*
10934 glibcpp_cv_func_isnan_use=yes
10935 else
10936 echo "configure: failed program was:" >&5
10937 cat conftest.$ac_ext >&5
10938 rm -rf conftest*
10939 glibcpp_cv_func_isnan_use=no
10941 rm -f conftest*
10942 ac_ext=c
10943 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10944 ac_cpp='$CPP $CPPFLAGS'
10945 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10946 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10947 cross_compiling=$ac_cv_prog_cc_cross
10953 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
10955 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
10956 for ac_func in isnan
10958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10959 echo "configure:10960: checking for $ac_func" >&5
10960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10961 echo $ac_n "(cached) $ac_c" 1>&6
10962 else
10963 cat > conftest.$ac_ext <<EOF
10964 #line 10965 "configure"
10965 #include "confdefs.h"
10966 /* System header to define __stub macros and hopefully few prototypes,
10967 which can conflict with char $ac_func(); below. */
10968 #include <assert.h>
10969 /* Override any gcc2 internal prototype to avoid an error. */
10970 /* We use char because int might match the return type of a gcc2
10971 builtin and then its argument prototype would still apply. */
10972 char $ac_func();
10974 int main() {
10976 /* The GNU C library defines this for functions which it implements
10977 to always fail with ENOSYS. Some functions are actually named
10978 something starting with __ and the normal name is an alias. */
10979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10980 choke me
10981 #else
10982 $ac_func();
10983 #endif
10985 ; return 0; }
10987 if { (eval echo configure:10988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10988 rm -rf conftest*
10989 eval "ac_cv_func_$ac_func=yes"
10990 else
10991 echo "configure: failed program was:" >&5
10992 cat conftest.$ac_ext >&5
10993 rm -rf conftest*
10994 eval "ac_cv_func_$ac_func=no"
10996 rm -f conftest*
10999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11000 echo "$ac_t""yes" 1>&6
11001 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11002 cat >> confdefs.h <<EOF
11003 #define $ac_tr_func 1
11006 else
11007 echo "$ac_t""no" 1>&6
11009 done
11011 else
11013 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11014 echo "configure:11015: checking for _isnan declaration" >&5
11015 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11016 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11017 echo $ac_n "(cached) $ac_c" 1>&6
11018 else
11021 ac_ext=C
11022 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11023 ac_cpp='$CXXCPP $CPPFLAGS'
11024 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11025 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11026 cross_compiling=$ac_cv_prog_cxx_cross
11028 cat > conftest.$ac_ext <<EOF
11029 #line 11030 "configure"
11030 #include "confdefs.h"
11031 #include <math.h>
11032 #ifdef HAVE_IEEEFP_H
11033 #include <ieeefp.h>
11034 #endif
11036 int main() {
11037 _isnan(0);
11038 ; return 0; }
11040 if { (eval echo configure:11041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11041 rm -rf conftest*
11042 glibcpp_cv_func__isnan_use=yes
11043 else
11044 echo "configure: failed program was:" >&5
11045 cat conftest.$ac_ext >&5
11046 rm -rf conftest*
11047 glibcpp_cv_func__isnan_use=no
11049 rm -f conftest*
11050 ac_ext=c
11051 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11052 ac_cpp='$CPP $CPPFLAGS'
11053 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11054 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11055 cross_compiling=$ac_cv_prog_cc_cross
11061 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11063 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11064 for ac_func in _isnan
11066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11067 echo "configure:11068: checking for $ac_func" >&5
11068 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11069 echo $ac_n "(cached) $ac_c" 1>&6
11070 else
11071 cat > conftest.$ac_ext <<EOF
11072 #line 11073 "configure"
11073 #include "confdefs.h"
11074 /* System header to define __stub macros and hopefully few prototypes,
11075 which can conflict with char $ac_func(); below. */
11076 #include <assert.h>
11077 /* Override any gcc2 internal prototype to avoid an error. */
11078 /* We use char because int might match the return type of a gcc2
11079 builtin and then its argument prototype would still apply. */
11080 char $ac_func();
11082 int main() {
11084 /* The GNU C library defines this for functions which it implements
11085 to always fail with ENOSYS. Some functions are actually named
11086 something starting with __ and the normal name is an alias. */
11087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11088 choke me
11089 #else
11090 $ac_func();
11091 #endif
11093 ; return 0; }
11095 if { (eval echo configure:11096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11096 rm -rf conftest*
11097 eval "ac_cv_func_$ac_func=yes"
11098 else
11099 echo "configure: failed program was:" >&5
11100 cat conftest.$ac_ext >&5
11101 rm -rf conftest*
11102 eval "ac_cv_func_$ac_func=no"
11104 rm -f conftest*
11107 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11108 echo "$ac_t""yes" 1>&6
11109 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11110 cat >> confdefs.h <<EOF
11111 #define $ac_tr_func 1
11114 else
11115 echo "$ac_t""no" 1>&6
11117 done
11124 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11125 echo "configure:11126: checking for finite declaration" >&5
11126 if test x${glibcpp_cv_func_finite_use+set} != xset; then
11127 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11128 echo $ac_n "(cached) $ac_c" 1>&6
11129 else
11132 ac_ext=C
11133 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11134 ac_cpp='$CXXCPP $CPPFLAGS'
11135 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11136 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11137 cross_compiling=$ac_cv_prog_cxx_cross
11139 cat > conftest.$ac_ext <<EOF
11140 #line 11141 "configure"
11141 #include "confdefs.h"
11142 #include <math.h>
11143 #ifdef HAVE_IEEEFP_H
11144 #include <ieeefp.h>
11145 #endif
11147 int main() {
11148 finite(0);
11149 ; return 0; }
11151 if { (eval echo configure:11152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11152 rm -rf conftest*
11153 glibcpp_cv_func_finite_use=yes
11154 else
11155 echo "configure: failed program was:" >&5
11156 cat conftest.$ac_ext >&5
11157 rm -rf conftest*
11158 glibcpp_cv_func_finite_use=no
11160 rm -f conftest*
11161 ac_ext=c
11162 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11163 ac_cpp='$CPP $CPPFLAGS'
11164 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11165 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11166 cross_compiling=$ac_cv_prog_cc_cross
11172 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11174 if test x$glibcpp_cv_func_finite_use = x"yes"; then
11175 for ac_func in finite
11177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11178 echo "configure:11179: checking for $ac_func" >&5
11179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11180 echo $ac_n "(cached) $ac_c" 1>&6
11181 else
11182 cat > conftest.$ac_ext <<EOF
11183 #line 11184 "configure"
11184 #include "confdefs.h"
11185 /* System header to define __stub macros and hopefully few prototypes,
11186 which can conflict with char $ac_func(); below. */
11187 #include <assert.h>
11188 /* Override any gcc2 internal prototype to avoid an error. */
11189 /* We use char because int might match the return type of a gcc2
11190 builtin and then its argument prototype would still apply. */
11191 char $ac_func();
11193 int main() {
11195 /* The GNU C library defines this for functions which it implements
11196 to always fail with ENOSYS. Some functions are actually named
11197 something starting with __ and the normal name is an alias. */
11198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11199 choke me
11200 #else
11201 $ac_func();
11202 #endif
11204 ; return 0; }
11206 if { (eval echo configure:11207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11207 rm -rf conftest*
11208 eval "ac_cv_func_$ac_func=yes"
11209 else
11210 echo "configure: failed program was:" >&5
11211 cat conftest.$ac_ext >&5
11212 rm -rf conftest*
11213 eval "ac_cv_func_$ac_func=no"
11215 rm -f conftest*
11218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11219 echo "$ac_t""yes" 1>&6
11220 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11221 cat >> confdefs.h <<EOF
11222 #define $ac_tr_func 1
11225 else
11226 echo "$ac_t""no" 1>&6
11228 done
11230 else
11232 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11233 echo "configure:11234: checking for _finite declaration" >&5
11234 if test x${glibcpp_cv_func__finite_use+set} != xset; then
11235 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11236 echo $ac_n "(cached) $ac_c" 1>&6
11237 else
11240 ac_ext=C
11241 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11242 ac_cpp='$CXXCPP $CPPFLAGS'
11243 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11244 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11245 cross_compiling=$ac_cv_prog_cxx_cross
11247 cat > conftest.$ac_ext <<EOF
11248 #line 11249 "configure"
11249 #include "confdefs.h"
11250 #include <math.h>
11251 #ifdef HAVE_IEEEFP_H
11252 #include <ieeefp.h>
11253 #endif
11255 int main() {
11256 _finite(0);
11257 ; return 0; }
11259 if { (eval echo configure:11260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11260 rm -rf conftest*
11261 glibcpp_cv_func__finite_use=yes
11262 else
11263 echo "configure: failed program was:" >&5
11264 cat conftest.$ac_ext >&5
11265 rm -rf conftest*
11266 glibcpp_cv_func__finite_use=no
11268 rm -f conftest*
11269 ac_ext=c
11270 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11271 ac_cpp='$CPP $CPPFLAGS'
11272 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11273 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11274 cross_compiling=$ac_cv_prog_cc_cross
11280 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11282 if test x$glibcpp_cv_func__finite_use = x"yes"; then
11283 for ac_func in _finite
11285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11286 echo "configure:11287: checking for $ac_func" >&5
11287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11288 echo $ac_n "(cached) $ac_c" 1>&6
11289 else
11290 cat > conftest.$ac_ext <<EOF
11291 #line 11292 "configure"
11292 #include "confdefs.h"
11293 /* System header to define __stub macros and hopefully few prototypes,
11294 which can conflict with char $ac_func(); below. */
11295 #include <assert.h>
11296 /* Override any gcc2 internal prototype to avoid an error. */
11297 /* We use char because int might match the return type of a gcc2
11298 builtin and then its argument prototype would still apply. */
11299 char $ac_func();
11301 int main() {
11303 /* The GNU C library defines this for functions which it implements
11304 to always fail with ENOSYS. Some functions are actually named
11305 something starting with __ and the normal name is an alias. */
11306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11307 choke me
11308 #else
11309 $ac_func();
11310 #endif
11312 ; return 0; }
11314 if { (eval echo configure:11315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11315 rm -rf conftest*
11316 eval "ac_cv_func_$ac_func=yes"
11317 else
11318 echo "configure: failed program was:" >&5
11319 cat conftest.$ac_ext >&5
11320 rm -rf conftest*
11321 eval "ac_cv_func_$ac_func=no"
11323 rm -f conftest*
11326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11327 echo "$ac_t""yes" 1>&6
11328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11329 cat >> confdefs.h <<EOF
11330 #define $ac_tr_func 1
11333 else
11334 echo "$ac_t""no" 1>&6
11336 done
11343 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11344 echo "configure:11345: checking for copysign declaration" >&5
11345 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11346 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11347 echo $ac_n "(cached) $ac_c" 1>&6
11348 else
11351 ac_ext=C
11352 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11353 ac_cpp='$CXXCPP $CPPFLAGS'
11354 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11355 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11356 cross_compiling=$ac_cv_prog_cxx_cross
11358 cat > conftest.$ac_ext <<EOF
11359 #line 11360 "configure"
11360 #include "confdefs.h"
11361 #include <math.h>
11362 int main() {
11363 copysign(0, 0);
11364 ; return 0; }
11366 if { (eval echo configure:11367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11367 rm -rf conftest*
11368 glibcpp_cv_func_copysign_use=yes
11369 else
11370 echo "configure: failed program was:" >&5
11371 cat conftest.$ac_ext >&5
11372 rm -rf conftest*
11373 glibcpp_cv_func_copysign_use=no
11375 rm -f conftest*
11376 ac_ext=c
11377 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11378 ac_cpp='$CPP $CPPFLAGS'
11379 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11380 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11381 cross_compiling=$ac_cv_prog_cc_cross
11387 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11389 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11390 for ac_func in copysign
11392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11393 echo "configure:11394: checking for $ac_func" >&5
11394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11395 echo $ac_n "(cached) $ac_c" 1>&6
11396 else
11397 cat > conftest.$ac_ext <<EOF
11398 #line 11399 "configure"
11399 #include "confdefs.h"
11400 /* System header to define __stub macros and hopefully few prototypes,
11401 which can conflict with char $ac_func(); below. */
11402 #include <assert.h>
11403 /* Override any gcc2 internal prototype to avoid an error. */
11404 /* We use char because int might match the return type of a gcc2
11405 builtin and then its argument prototype would still apply. */
11406 char $ac_func();
11408 int main() {
11410 /* The GNU C library defines this for functions which it implements
11411 to always fail with ENOSYS. Some functions are actually named
11412 something starting with __ and the normal name is an alias. */
11413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11414 choke me
11415 #else
11416 $ac_func();
11417 #endif
11419 ; return 0; }
11421 if { (eval echo configure:11422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11422 rm -rf conftest*
11423 eval "ac_cv_func_$ac_func=yes"
11424 else
11425 echo "configure: failed program was:" >&5
11426 cat conftest.$ac_ext >&5
11427 rm -rf conftest*
11428 eval "ac_cv_func_$ac_func=no"
11430 rm -f conftest*
11433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11434 echo "$ac_t""yes" 1>&6
11435 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11436 cat >> confdefs.h <<EOF
11437 #define $ac_tr_func 1
11440 else
11441 echo "$ac_t""no" 1>&6
11443 done
11445 else
11447 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11448 echo "configure:11449: checking for _copysign declaration" >&5
11449 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11450 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11451 echo $ac_n "(cached) $ac_c" 1>&6
11452 else
11455 ac_ext=C
11456 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11457 ac_cpp='$CXXCPP $CPPFLAGS'
11458 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11459 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11460 cross_compiling=$ac_cv_prog_cxx_cross
11462 cat > conftest.$ac_ext <<EOF
11463 #line 11464 "configure"
11464 #include "confdefs.h"
11465 #include <math.h>
11466 int main() {
11467 _copysign(0, 0);
11468 ; return 0; }
11470 if { (eval echo configure:11471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11471 rm -rf conftest*
11472 glibcpp_cv_func__copysign_use=yes
11473 else
11474 echo "configure: failed program was:" >&5
11475 cat conftest.$ac_ext >&5
11476 rm -rf conftest*
11477 glibcpp_cv_func__copysign_use=no
11479 rm -f conftest*
11480 ac_ext=c
11481 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11482 ac_cpp='$CPP $CPPFLAGS'
11483 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11484 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11485 cross_compiling=$ac_cv_prog_cc_cross
11491 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11493 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11494 for ac_func in _copysign
11496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11497 echo "configure:11498: checking for $ac_func" >&5
11498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11499 echo $ac_n "(cached) $ac_c" 1>&6
11500 else
11501 cat > conftest.$ac_ext <<EOF
11502 #line 11503 "configure"
11503 #include "confdefs.h"
11504 /* System header to define __stub macros and hopefully few prototypes,
11505 which can conflict with char $ac_func(); below. */
11506 #include <assert.h>
11507 /* Override any gcc2 internal prototype to avoid an error. */
11508 /* We use char because int might match the return type of a gcc2
11509 builtin and then its argument prototype would still apply. */
11510 char $ac_func();
11512 int main() {
11514 /* The GNU C library defines this for functions which it implements
11515 to always fail with ENOSYS. Some functions are actually named
11516 something starting with __ and the normal name is an alias. */
11517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11518 choke me
11519 #else
11520 $ac_func();
11521 #endif
11523 ; return 0; }
11525 if { (eval echo configure:11526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11526 rm -rf conftest*
11527 eval "ac_cv_func_$ac_func=yes"
11528 else
11529 echo "configure: failed program was:" >&5
11530 cat conftest.$ac_ext >&5
11531 rm -rf conftest*
11532 eval "ac_cv_func_$ac_func=no"
11534 rm -f conftest*
11537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11538 echo "$ac_t""yes" 1>&6
11539 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11540 cat >> confdefs.h <<EOF
11541 #define $ac_tr_func 1
11544 else
11545 echo "$ac_t""no" 1>&6
11547 done
11554 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11555 echo "configure:11556: checking for sincos declaration" >&5
11556 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11557 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11558 echo $ac_n "(cached) $ac_c" 1>&6
11559 else
11562 ac_ext=C
11563 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11564 ac_cpp='$CXXCPP $CPPFLAGS'
11565 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11566 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11567 cross_compiling=$ac_cv_prog_cxx_cross
11569 cat > conftest.$ac_ext <<EOF
11570 #line 11571 "configure"
11571 #include "confdefs.h"
11572 #include <math.h>
11573 int main() {
11574 sincos(0, 0, 0);
11575 ; return 0; }
11577 if { (eval echo configure:11578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11578 rm -rf conftest*
11579 glibcpp_cv_func_sincos_use=yes
11580 else
11581 echo "configure: failed program was:" >&5
11582 cat conftest.$ac_ext >&5
11583 rm -rf conftest*
11584 glibcpp_cv_func_sincos_use=no
11586 rm -f conftest*
11587 ac_ext=c
11588 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11589 ac_cpp='$CPP $CPPFLAGS'
11590 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11591 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11592 cross_compiling=$ac_cv_prog_cc_cross
11598 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11600 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11601 for ac_func in sincos
11603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11604 echo "configure:11605: checking for $ac_func" >&5
11605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11606 echo $ac_n "(cached) $ac_c" 1>&6
11607 else
11608 cat > conftest.$ac_ext <<EOF
11609 #line 11610 "configure"
11610 #include "confdefs.h"
11611 /* System header to define __stub macros and hopefully few prototypes,
11612 which can conflict with char $ac_func(); below. */
11613 #include <assert.h>
11614 /* Override any gcc2 internal prototype to avoid an error. */
11615 /* We use char because int might match the return type of a gcc2
11616 builtin and then its argument prototype would still apply. */
11617 char $ac_func();
11619 int main() {
11621 /* The GNU C library defines this for functions which it implements
11622 to always fail with ENOSYS. Some functions are actually named
11623 something starting with __ and the normal name is an alias. */
11624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11625 choke me
11626 #else
11627 $ac_func();
11628 #endif
11630 ; return 0; }
11632 if { (eval echo configure:11633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11633 rm -rf conftest*
11634 eval "ac_cv_func_$ac_func=yes"
11635 else
11636 echo "configure: failed program was:" >&5
11637 cat conftest.$ac_ext >&5
11638 rm -rf conftest*
11639 eval "ac_cv_func_$ac_func=no"
11641 rm -f conftest*
11644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11645 echo "$ac_t""yes" 1>&6
11646 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11647 cat >> confdefs.h <<EOF
11648 #define $ac_tr_func 1
11651 else
11652 echo "$ac_t""no" 1>&6
11654 done
11656 else
11658 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11659 echo "configure:11660: checking for _sincos declaration" >&5
11660 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11661 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11662 echo $ac_n "(cached) $ac_c" 1>&6
11663 else
11666 ac_ext=C
11667 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11668 ac_cpp='$CXXCPP $CPPFLAGS'
11669 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11670 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11671 cross_compiling=$ac_cv_prog_cxx_cross
11673 cat > conftest.$ac_ext <<EOF
11674 #line 11675 "configure"
11675 #include "confdefs.h"
11676 #include <math.h>
11677 int main() {
11678 _sincos(0, 0, 0);
11679 ; return 0; }
11681 if { (eval echo configure:11682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11682 rm -rf conftest*
11683 glibcpp_cv_func__sincos_use=yes
11684 else
11685 echo "configure: failed program was:" >&5
11686 cat conftest.$ac_ext >&5
11687 rm -rf conftest*
11688 glibcpp_cv_func__sincos_use=no
11690 rm -f conftest*
11691 ac_ext=c
11692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11693 ac_cpp='$CPP $CPPFLAGS'
11694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11695 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11696 cross_compiling=$ac_cv_prog_cc_cross
11702 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11704 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11705 for ac_func in _sincos
11707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11708 echo "configure:11709: checking for $ac_func" >&5
11709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11710 echo $ac_n "(cached) $ac_c" 1>&6
11711 else
11712 cat > conftest.$ac_ext <<EOF
11713 #line 11714 "configure"
11714 #include "confdefs.h"
11715 /* System header to define __stub macros and hopefully few prototypes,
11716 which can conflict with char $ac_func(); below. */
11717 #include <assert.h>
11718 /* Override any gcc2 internal prototype to avoid an error. */
11719 /* We use char because int might match the return type of a gcc2
11720 builtin and then its argument prototype would still apply. */
11721 char $ac_func();
11723 int main() {
11725 /* The GNU C library defines this for functions which it implements
11726 to always fail with ENOSYS. Some functions are actually named
11727 something starting with __ and the normal name is an alias. */
11728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11729 choke me
11730 #else
11731 $ac_func();
11732 #endif
11734 ; return 0; }
11736 if { (eval echo configure:11737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11737 rm -rf conftest*
11738 eval "ac_cv_func_$ac_func=yes"
11739 else
11740 echo "configure: failed program was:" >&5
11741 cat conftest.$ac_ext >&5
11742 rm -rf conftest*
11743 eval "ac_cv_func_$ac_func=no"
11745 rm -f conftest*
11748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11749 echo "$ac_t""yes" 1>&6
11750 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11751 cat >> confdefs.h <<EOF
11752 #define $ac_tr_func 1
11755 else
11756 echo "$ac_t""no" 1>&6
11758 done
11765 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11766 echo "configure:11767: checking for fpclass declaration" >&5
11767 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11768 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11769 echo $ac_n "(cached) $ac_c" 1>&6
11770 else
11773 ac_ext=C
11774 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11775 ac_cpp='$CXXCPP $CPPFLAGS'
11776 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11777 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11778 cross_compiling=$ac_cv_prog_cxx_cross
11780 cat > conftest.$ac_ext <<EOF
11781 #line 11782 "configure"
11782 #include "confdefs.h"
11783 #include <math.h>
11784 #ifdef HAVE_IEEEFP_H
11785 #include <ieeefp.h>
11786 #endif
11788 int main() {
11789 fpclass(0);
11790 ; return 0; }
11792 if { (eval echo configure:11793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11793 rm -rf conftest*
11794 glibcpp_cv_func_fpclass_use=yes
11795 else
11796 echo "configure: failed program was:" >&5
11797 cat conftest.$ac_ext >&5
11798 rm -rf conftest*
11799 glibcpp_cv_func_fpclass_use=no
11801 rm -f conftest*
11802 ac_ext=c
11803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11804 ac_cpp='$CPP $CPPFLAGS'
11805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11807 cross_compiling=$ac_cv_prog_cc_cross
11813 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11815 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11816 for ac_func in fpclass
11818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11819 echo "configure:11820: checking for $ac_func" >&5
11820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11821 echo $ac_n "(cached) $ac_c" 1>&6
11822 else
11823 cat > conftest.$ac_ext <<EOF
11824 #line 11825 "configure"
11825 #include "confdefs.h"
11826 /* System header to define __stub macros and hopefully few prototypes,
11827 which can conflict with char $ac_func(); below. */
11828 #include <assert.h>
11829 /* Override any gcc2 internal prototype to avoid an error. */
11830 /* We use char because int might match the return type of a gcc2
11831 builtin and then its argument prototype would still apply. */
11832 char $ac_func();
11834 int main() {
11836 /* The GNU C library defines this for functions which it implements
11837 to always fail with ENOSYS. Some functions are actually named
11838 something starting with __ and the normal name is an alias. */
11839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11840 choke me
11841 #else
11842 $ac_func();
11843 #endif
11845 ; return 0; }
11847 if { (eval echo configure:11848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11848 rm -rf conftest*
11849 eval "ac_cv_func_$ac_func=yes"
11850 else
11851 echo "configure: failed program was:" >&5
11852 cat conftest.$ac_ext >&5
11853 rm -rf conftest*
11854 eval "ac_cv_func_$ac_func=no"
11856 rm -f conftest*
11859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11860 echo "$ac_t""yes" 1>&6
11861 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11862 cat >> confdefs.h <<EOF
11863 #define $ac_tr_func 1
11866 else
11867 echo "$ac_t""no" 1>&6
11869 done
11871 else
11873 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11874 echo "configure:11875: checking for _fpclass declaration" >&5
11875 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11876 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11877 echo $ac_n "(cached) $ac_c" 1>&6
11878 else
11881 ac_ext=C
11882 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11883 ac_cpp='$CXXCPP $CPPFLAGS'
11884 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11885 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11886 cross_compiling=$ac_cv_prog_cxx_cross
11888 cat > conftest.$ac_ext <<EOF
11889 #line 11890 "configure"
11890 #include "confdefs.h"
11891 #include <math.h>
11892 #ifdef HAVE_IEEEFP_H
11893 #include <ieeefp.h>
11894 #endif
11896 int main() {
11897 _fpclass(0);
11898 ; return 0; }
11900 if { (eval echo configure:11901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11901 rm -rf conftest*
11902 glibcpp_cv_func__fpclass_use=yes
11903 else
11904 echo "configure: failed program was:" >&5
11905 cat conftest.$ac_ext >&5
11906 rm -rf conftest*
11907 glibcpp_cv_func__fpclass_use=no
11909 rm -f conftest*
11910 ac_ext=c
11911 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11912 ac_cpp='$CPP $CPPFLAGS'
11913 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11914 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11915 cross_compiling=$ac_cv_prog_cc_cross
11921 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
11923 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11924 for ac_func in _fpclass
11926 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11927 echo "configure:11928: checking for $ac_func" >&5
11928 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11929 echo $ac_n "(cached) $ac_c" 1>&6
11930 else
11931 cat > conftest.$ac_ext <<EOF
11932 #line 11933 "configure"
11933 #include "confdefs.h"
11934 /* System header to define __stub macros and hopefully few prototypes,
11935 which can conflict with char $ac_func(); below. */
11936 #include <assert.h>
11937 /* Override any gcc2 internal prototype to avoid an error. */
11938 /* We use char because int might match the return type of a gcc2
11939 builtin and then its argument prototype would still apply. */
11940 char $ac_func();
11942 int main() {
11944 /* The GNU C library defines this for functions which it implements
11945 to always fail with ENOSYS. Some functions are actually named
11946 something starting with __ and the normal name is an alias. */
11947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11948 choke me
11949 #else
11950 $ac_func();
11951 #endif
11953 ; return 0; }
11955 if { (eval echo configure:11956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11956 rm -rf conftest*
11957 eval "ac_cv_func_$ac_func=yes"
11958 else
11959 echo "configure: failed program was:" >&5
11960 cat conftest.$ac_ext >&5
11961 rm -rf conftest*
11962 eval "ac_cv_func_$ac_func=no"
11964 rm -f conftest*
11967 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11968 echo "$ac_t""yes" 1>&6
11969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11970 cat >> confdefs.h <<EOF
11971 #define $ac_tr_func 1
11974 else
11975 echo "$ac_t""no" 1>&6
11977 done
11984 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
11985 echo "configure:11986: checking for qfpclass declaration" >&5
11986 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
11987 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
11988 echo $ac_n "(cached) $ac_c" 1>&6
11989 else
11992 ac_ext=C
11993 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11994 ac_cpp='$CXXCPP $CPPFLAGS'
11995 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11996 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11997 cross_compiling=$ac_cv_prog_cxx_cross
11999 cat > conftest.$ac_ext <<EOF
12000 #line 12001 "configure"
12001 #include "confdefs.h"
12002 #include <math.h>
12003 #ifdef HAVE_IEEEFP_H
12004 #include <ieeefp.h>
12005 #endif
12007 int main() {
12008 qfpclass(0);
12009 ; return 0; }
12011 if { (eval echo configure:12012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12012 rm -rf conftest*
12013 glibcpp_cv_func_qfpclass_use=yes
12014 else
12015 echo "configure: failed program was:" >&5
12016 cat conftest.$ac_ext >&5
12017 rm -rf conftest*
12018 glibcpp_cv_func_qfpclass_use=no
12020 rm -f conftest*
12021 ac_ext=c
12022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12023 ac_cpp='$CPP $CPPFLAGS'
12024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12026 cross_compiling=$ac_cv_prog_cc_cross
12032 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12034 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12035 for ac_func in qfpclass
12037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12038 echo "configure:12039: checking for $ac_func" >&5
12039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12040 echo $ac_n "(cached) $ac_c" 1>&6
12041 else
12042 cat > conftest.$ac_ext <<EOF
12043 #line 12044 "configure"
12044 #include "confdefs.h"
12045 /* System header to define __stub macros and hopefully few prototypes,
12046 which can conflict with char $ac_func(); below. */
12047 #include <assert.h>
12048 /* Override any gcc2 internal prototype to avoid an error. */
12049 /* We use char because int might match the return type of a gcc2
12050 builtin and then its argument prototype would still apply. */
12051 char $ac_func();
12053 int main() {
12055 /* The GNU C library defines this for functions which it implements
12056 to always fail with ENOSYS. Some functions are actually named
12057 something starting with __ and the normal name is an alias. */
12058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12059 choke me
12060 #else
12061 $ac_func();
12062 #endif
12064 ; return 0; }
12066 if { (eval echo configure:12067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12067 rm -rf conftest*
12068 eval "ac_cv_func_$ac_func=yes"
12069 else
12070 echo "configure: failed program was:" >&5
12071 cat conftest.$ac_ext >&5
12072 rm -rf conftest*
12073 eval "ac_cv_func_$ac_func=no"
12075 rm -f conftest*
12078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12079 echo "$ac_t""yes" 1>&6
12080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12081 cat >> confdefs.h <<EOF
12082 #define $ac_tr_func 1
12085 else
12086 echo "$ac_t""no" 1>&6
12088 done
12090 else
12092 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12093 echo "configure:12094: checking for _qfpclass declaration" >&5
12094 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12095 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12096 echo $ac_n "(cached) $ac_c" 1>&6
12097 else
12100 ac_ext=C
12101 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12102 ac_cpp='$CXXCPP $CPPFLAGS'
12103 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12104 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12105 cross_compiling=$ac_cv_prog_cxx_cross
12107 cat > conftest.$ac_ext <<EOF
12108 #line 12109 "configure"
12109 #include "confdefs.h"
12110 #include <math.h>
12111 #ifdef HAVE_IEEEFP_H
12112 #include <ieeefp.h>
12113 #endif
12115 int main() {
12116 _qfpclass(0);
12117 ; return 0; }
12119 if { (eval echo configure:12120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12120 rm -rf conftest*
12121 glibcpp_cv_func__qfpclass_use=yes
12122 else
12123 echo "configure: failed program was:" >&5
12124 cat conftest.$ac_ext >&5
12125 rm -rf conftest*
12126 glibcpp_cv_func__qfpclass_use=no
12128 rm -f conftest*
12129 ac_ext=c
12130 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12131 ac_cpp='$CPP $CPPFLAGS'
12132 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12133 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12134 cross_compiling=$ac_cv_prog_cc_cross
12140 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12142 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12143 for ac_func in _qfpclass
12145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12146 echo "configure:12147: checking for $ac_func" >&5
12147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12148 echo $ac_n "(cached) $ac_c" 1>&6
12149 else
12150 cat > conftest.$ac_ext <<EOF
12151 #line 12152 "configure"
12152 #include "confdefs.h"
12153 /* System header to define __stub macros and hopefully few prototypes,
12154 which can conflict with char $ac_func(); below. */
12155 #include <assert.h>
12156 /* Override any gcc2 internal prototype to avoid an error. */
12157 /* We use char because int might match the return type of a gcc2
12158 builtin and then its argument prototype would still apply. */
12159 char $ac_func();
12161 int main() {
12163 /* The GNU C library defines this for functions which it implements
12164 to always fail with ENOSYS. Some functions are actually named
12165 something starting with __ and the normal name is an alias. */
12166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12167 choke me
12168 #else
12169 $ac_func();
12170 #endif
12172 ; return 0; }
12174 if { (eval echo configure:12175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12175 rm -rf conftest*
12176 eval "ac_cv_func_$ac_func=yes"
12177 else
12178 echo "configure: failed program was:" >&5
12179 cat conftest.$ac_ext >&5
12180 rm -rf conftest*
12181 eval "ac_cv_func_$ac_func=no"
12183 rm -f conftest*
12186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12187 echo "$ac_t""yes" 1>&6
12188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12189 cat >> confdefs.h <<EOF
12190 #define $ac_tr_func 1
12193 else
12194 echo "$ac_t""no" 1>&6
12196 done
12203 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12204 echo "configure:12205: checking for hypot declaration" >&5
12205 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12206 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12207 echo $ac_n "(cached) $ac_c" 1>&6
12208 else
12211 ac_ext=C
12212 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12213 ac_cpp='$CXXCPP $CPPFLAGS'
12214 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12215 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12216 cross_compiling=$ac_cv_prog_cxx_cross
12218 cat > conftest.$ac_ext <<EOF
12219 #line 12220 "configure"
12220 #include "confdefs.h"
12221 #include <math.h>
12222 int main() {
12223 hypot(0, 0);
12224 ; return 0; }
12226 if { (eval echo configure:12227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12227 rm -rf conftest*
12228 glibcpp_cv_func_hypot_use=yes
12229 else
12230 echo "configure: failed program was:" >&5
12231 cat conftest.$ac_ext >&5
12232 rm -rf conftest*
12233 glibcpp_cv_func_hypot_use=no
12235 rm -f conftest*
12236 ac_ext=c
12237 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12238 ac_cpp='$CPP $CPPFLAGS'
12239 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12240 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12241 cross_compiling=$ac_cv_prog_cc_cross
12247 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12249 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12250 for ac_func in hypot
12252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12253 echo "configure:12254: checking for $ac_func" >&5
12254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12255 echo $ac_n "(cached) $ac_c" 1>&6
12256 else
12257 cat > conftest.$ac_ext <<EOF
12258 #line 12259 "configure"
12259 #include "confdefs.h"
12260 /* System header to define __stub macros and hopefully few prototypes,
12261 which can conflict with char $ac_func(); below. */
12262 #include <assert.h>
12263 /* Override any gcc2 internal prototype to avoid an error. */
12264 /* We use char because int might match the return type of a gcc2
12265 builtin and then its argument prototype would still apply. */
12266 char $ac_func();
12268 int main() {
12270 /* The GNU C library defines this for functions which it implements
12271 to always fail with ENOSYS. Some functions are actually named
12272 something starting with __ and the normal name is an alias. */
12273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12274 choke me
12275 #else
12276 $ac_func();
12277 #endif
12279 ; return 0; }
12281 if { (eval echo configure:12282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12282 rm -rf conftest*
12283 eval "ac_cv_func_$ac_func=yes"
12284 else
12285 echo "configure: failed program was:" >&5
12286 cat conftest.$ac_ext >&5
12287 rm -rf conftest*
12288 eval "ac_cv_func_$ac_func=no"
12290 rm -f conftest*
12293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12294 echo "$ac_t""yes" 1>&6
12295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12296 cat >> confdefs.h <<EOF
12297 #define $ac_tr_func 1
12300 else
12301 echo "$ac_t""no" 1>&6
12303 done
12305 else
12307 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12308 echo "configure:12309: checking for _hypot declaration" >&5
12309 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12310 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12311 echo $ac_n "(cached) $ac_c" 1>&6
12312 else
12315 ac_ext=C
12316 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12317 ac_cpp='$CXXCPP $CPPFLAGS'
12318 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12319 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12320 cross_compiling=$ac_cv_prog_cxx_cross
12322 cat > conftest.$ac_ext <<EOF
12323 #line 12324 "configure"
12324 #include "confdefs.h"
12325 #include <math.h>
12326 int main() {
12327 _hypot(0, 0);
12328 ; return 0; }
12330 if { (eval echo configure:12331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12331 rm -rf conftest*
12332 glibcpp_cv_func__hypot_use=yes
12333 else
12334 echo "configure: failed program was:" >&5
12335 cat conftest.$ac_ext >&5
12336 rm -rf conftest*
12337 glibcpp_cv_func__hypot_use=no
12339 rm -f conftest*
12340 ac_ext=c
12341 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12342 ac_cpp='$CPP $CPPFLAGS'
12343 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12344 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12345 cross_compiling=$ac_cv_prog_cc_cross
12351 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12353 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12354 for ac_func in _hypot
12356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12357 echo "configure:12358: checking for $ac_func" >&5
12358 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12359 echo $ac_n "(cached) $ac_c" 1>&6
12360 else
12361 cat > conftest.$ac_ext <<EOF
12362 #line 12363 "configure"
12363 #include "confdefs.h"
12364 /* System header to define __stub macros and hopefully few prototypes,
12365 which can conflict with char $ac_func(); below. */
12366 #include <assert.h>
12367 /* Override any gcc2 internal prototype to avoid an error. */
12368 /* We use char because int might match the return type of a gcc2
12369 builtin and then its argument prototype would still apply. */
12370 char $ac_func();
12372 int main() {
12374 /* The GNU C library defines this for functions which it implements
12375 to always fail with ENOSYS. Some functions are actually named
12376 something starting with __ and the normal name is an alias. */
12377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12378 choke me
12379 #else
12380 $ac_func();
12381 #endif
12383 ; return 0; }
12385 if { (eval echo configure:12386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12386 rm -rf conftest*
12387 eval "ac_cv_func_$ac_func=yes"
12388 else
12389 echo "configure: failed program was:" >&5
12390 cat conftest.$ac_ext >&5
12391 rm -rf conftest*
12392 eval "ac_cv_func_$ac_func=no"
12394 rm -f conftest*
12397 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12398 echo "$ac_t""yes" 1>&6
12399 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12400 cat >> confdefs.h <<EOF
12401 #define $ac_tr_func 1
12404 else
12405 echo "$ac_t""no" 1>&6
12407 done
12414 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12415 echo "configure:12416: checking for float trig functions" >&5
12416 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12417 echo $ac_n "(cached) $ac_c" 1>&6
12418 else
12421 ac_ext=C
12422 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12423 ac_cpp='$CXXCPP $CPPFLAGS'
12424 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12425 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12426 cross_compiling=$ac_cv_prog_cxx_cross
12428 cat > conftest.$ac_ext <<EOF
12429 #line 12430 "configure"
12430 #include "confdefs.h"
12431 #include <math.h>
12432 int main() {
12433 `for x in acosf asinf atanf \
12434 cosf sinf tanf \
12435 coshf sinhf tanhf; do echo "$x (0);"; done`
12436 ; return 0; }
12438 if { (eval echo configure:12439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12439 rm -rf conftest*
12440 glibcpp_cv_func_float_trig_use=yes
12441 else
12442 echo "configure: failed program was:" >&5
12443 cat conftest.$ac_ext >&5
12444 rm -rf conftest*
12445 glibcpp_cv_func_float_trig_use=no
12447 rm -f conftest*
12448 ac_ext=c
12449 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12450 ac_cpp='$CPP $CPPFLAGS'
12451 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12452 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12453 cross_compiling=$ac_cv_prog_cc_cross
12457 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12458 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12459 for ac_func in acosf asinf atanf \
12460 cosf sinf tanf \
12461 coshf sinhf tanhf
12463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12464 echo "configure:12465: checking for $ac_func" >&5
12465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12466 echo $ac_n "(cached) $ac_c" 1>&6
12467 else
12468 cat > conftest.$ac_ext <<EOF
12469 #line 12470 "configure"
12470 #include "confdefs.h"
12471 /* System header to define __stub macros and hopefully few prototypes,
12472 which can conflict with char $ac_func(); below. */
12473 #include <assert.h>
12474 /* Override any gcc2 internal prototype to avoid an error. */
12475 /* We use char because int might match the return type of a gcc2
12476 builtin and then its argument prototype would still apply. */
12477 char $ac_func();
12479 int main() {
12481 /* The GNU C library defines this for functions which it implements
12482 to always fail with ENOSYS. Some functions are actually named
12483 something starting with __ and the normal name is an alias. */
12484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12485 choke me
12486 #else
12487 $ac_func();
12488 #endif
12490 ; return 0; }
12492 if { (eval echo configure:12493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12493 rm -rf conftest*
12494 eval "ac_cv_func_$ac_func=yes"
12495 else
12496 echo "configure: failed program was:" >&5
12497 cat conftest.$ac_ext >&5
12498 rm -rf conftest*
12499 eval "ac_cv_func_$ac_func=no"
12501 rm -f conftest*
12504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12505 echo "$ac_t""yes" 1>&6
12506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12507 cat >> confdefs.h <<EOF
12508 #define $ac_tr_func 1
12511 else
12512 echo "$ac_t""no" 1>&6
12514 done
12519 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12520 echo "configure:12521: checking for float round functions" >&5
12521 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12522 echo $ac_n "(cached) $ac_c" 1>&6
12523 else
12526 ac_ext=C
12527 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12528 ac_cpp='$CXXCPP $CPPFLAGS'
12529 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12530 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12531 cross_compiling=$ac_cv_prog_cxx_cross
12533 cat > conftest.$ac_ext <<EOF
12534 #line 12535 "configure"
12535 #include "confdefs.h"
12536 #include <math.h>
12537 int main() {
12538 `for x in ceilf floorf; do echo "$x (0);"; done`
12539 ; return 0; }
12541 if { (eval echo configure:12542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12542 rm -rf conftest*
12543 glibcpp_cv_func_float_round_use=yes
12544 else
12545 echo "configure: failed program was:" >&5
12546 cat conftest.$ac_ext >&5
12547 rm -rf conftest*
12548 glibcpp_cv_func_float_round_use=no
12550 rm -f conftest*
12551 ac_ext=c
12552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12553 ac_cpp='$CPP $CPPFLAGS'
12554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12556 cross_compiling=$ac_cv_prog_cc_cross
12560 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12561 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12562 for ac_func in ceilf floorf
12564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12565 echo "configure:12566: checking for $ac_func" >&5
12566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12567 echo $ac_n "(cached) $ac_c" 1>&6
12568 else
12569 cat > conftest.$ac_ext <<EOF
12570 #line 12571 "configure"
12571 #include "confdefs.h"
12572 /* System header to define __stub macros and hopefully few prototypes,
12573 which can conflict with char $ac_func(); below. */
12574 #include <assert.h>
12575 /* Override any gcc2 internal prototype to avoid an error. */
12576 /* We use char because int might match the return type of a gcc2
12577 builtin and then its argument prototype would still apply. */
12578 char $ac_func();
12580 int main() {
12582 /* The GNU C library defines this for functions which it implements
12583 to always fail with ENOSYS. Some functions are actually named
12584 something starting with __ and the normal name is an alias. */
12585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12586 choke me
12587 #else
12588 $ac_func();
12589 #endif
12591 ; return 0; }
12593 if { (eval echo configure:12594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12594 rm -rf conftest*
12595 eval "ac_cv_func_$ac_func=yes"
12596 else
12597 echo "configure: failed program was:" >&5
12598 cat conftest.$ac_ext >&5
12599 rm -rf conftest*
12600 eval "ac_cv_func_$ac_func=no"
12602 rm -f conftest*
12605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12606 echo "$ac_t""yes" 1>&6
12607 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12608 cat >> confdefs.h <<EOF
12609 #define $ac_tr_func 1
12612 else
12613 echo "$ac_t""no" 1>&6
12615 done
12621 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12622 echo "configure:12623: checking for expf declaration" >&5
12623 if test x${glibcpp_cv_func_expf_use+set} != xset; then
12624 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12625 echo $ac_n "(cached) $ac_c" 1>&6
12626 else
12629 ac_ext=C
12630 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12631 ac_cpp='$CXXCPP $CPPFLAGS'
12632 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12633 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12634 cross_compiling=$ac_cv_prog_cxx_cross
12636 cat > conftest.$ac_ext <<EOF
12637 #line 12638 "configure"
12638 #include "confdefs.h"
12639 #include <math.h>
12640 #ifdef HAVE_IEEEFP_H
12641 #include <ieeefp.h>
12642 #endif
12644 int main() {
12645 expf(0);
12646 ; return 0; }
12648 if { (eval echo configure:12649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12649 rm -rf conftest*
12650 glibcpp_cv_func_expf_use=yes
12651 else
12652 echo "configure: failed program was:" >&5
12653 cat conftest.$ac_ext >&5
12654 rm -rf conftest*
12655 glibcpp_cv_func_expf_use=no
12657 rm -f conftest*
12658 ac_ext=c
12659 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12660 ac_cpp='$CPP $CPPFLAGS'
12661 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12662 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12663 cross_compiling=$ac_cv_prog_cc_cross
12669 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12671 if test x$glibcpp_cv_func_expf_use = x"yes"; then
12672 for ac_func in expf
12674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12675 echo "configure:12676: checking for $ac_func" >&5
12676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12677 echo $ac_n "(cached) $ac_c" 1>&6
12678 else
12679 cat > conftest.$ac_ext <<EOF
12680 #line 12681 "configure"
12681 #include "confdefs.h"
12682 /* System header to define __stub macros and hopefully few prototypes,
12683 which can conflict with char $ac_func(); below. */
12684 #include <assert.h>
12685 /* Override any gcc2 internal prototype to avoid an error. */
12686 /* We use char because int might match the return type of a gcc2
12687 builtin and then its argument prototype would still apply. */
12688 char $ac_func();
12690 int main() {
12692 /* The GNU C library defines this for functions which it implements
12693 to always fail with ENOSYS. Some functions are actually named
12694 something starting with __ and the normal name is an alias. */
12695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12696 choke me
12697 #else
12698 $ac_func();
12699 #endif
12701 ; return 0; }
12703 if { (eval echo configure:12704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12704 rm -rf conftest*
12705 eval "ac_cv_func_$ac_func=yes"
12706 else
12707 echo "configure: failed program was:" >&5
12708 cat conftest.$ac_ext >&5
12709 rm -rf conftest*
12710 eval "ac_cv_func_$ac_func=no"
12712 rm -f conftest*
12715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12716 echo "$ac_t""yes" 1>&6
12717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12718 cat >> confdefs.h <<EOF
12719 #define $ac_tr_func 1
12722 else
12723 echo "$ac_t""no" 1>&6
12725 done
12727 else
12729 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12730 echo "configure:12731: checking for _expf declaration" >&5
12731 if test x${glibcpp_cv_func__expf_use+set} != xset; then
12732 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12733 echo $ac_n "(cached) $ac_c" 1>&6
12734 else
12737 ac_ext=C
12738 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12739 ac_cpp='$CXXCPP $CPPFLAGS'
12740 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12741 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12742 cross_compiling=$ac_cv_prog_cxx_cross
12744 cat > conftest.$ac_ext <<EOF
12745 #line 12746 "configure"
12746 #include "confdefs.h"
12747 #include <math.h>
12748 #ifdef HAVE_IEEEFP_H
12749 #include <ieeefp.h>
12750 #endif
12752 int main() {
12753 _expf(0);
12754 ; return 0; }
12756 if { (eval echo configure:12757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12757 rm -rf conftest*
12758 glibcpp_cv_func__expf_use=yes
12759 else
12760 echo "configure: failed program was:" >&5
12761 cat conftest.$ac_ext >&5
12762 rm -rf conftest*
12763 glibcpp_cv_func__expf_use=no
12765 rm -f conftest*
12766 ac_ext=c
12767 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12768 ac_cpp='$CPP $CPPFLAGS'
12769 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12770 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12771 cross_compiling=$ac_cv_prog_cc_cross
12777 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12779 if test x$glibcpp_cv_func__expf_use = x"yes"; then
12780 for ac_func in _expf
12782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12783 echo "configure:12784: checking for $ac_func" >&5
12784 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12785 echo $ac_n "(cached) $ac_c" 1>&6
12786 else
12787 cat > conftest.$ac_ext <<EOF
12788 #line 12789 "configure"
12789 #include "confdefs.h"
12790 /* System header to define __stub macros and hopefully few prototypes,
12791 which can conflict with char $ac_func(); below. */
12792 #include <assert.h>
12793 /* Override any gcc2 internal prototype to avoid an error. */
12794 /* We use char because int might match the return type of a gcc2
12795 builtin and then its argument prototype would still apply. */
12796 char $ac_func();
12798 int main() {
12800 /* The GNU C library defines this for functions which it implements
12801 to always fail with ENOSYS. Some functions are actually named
12802 something starting with __ and the normal name is an alias. */
12803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12804 choke me
12805 #else
12806 $ac_func();
12807 #endif
12809 ; return 0; }
12811 if { (eval echo configure:12812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12812 rm -rf conftest*
12813 eval "ac_cv_func_$ac_func=yes"
12814 else
12815 echo "configure: failed program was:" >&5
12816 cat conftest.$ac_ext >&5
12817 rm -rf conftest*
12818 eval "ac_cv_func_$ac_func=no"
12820 rm -f conftest*
12823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12824 echo "$ac_t""yes" 1>&6
12825 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12826 cat >> confdefs.h <<EOF
12827 #define $ac_tr_func 1
12830 else
12831 echo "$ac_t""no" 1>&6
12833 done
12840 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12841 echo "configure:12842: checking for isnanf declaration" >&5
12842 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12843 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12844 echo $ac_n "(cached) $ac_c" 1>&6
12845 else
12848 ac_ext=C
12849 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12850 ac_cpp='$CXXCPP $CPPFLAGS'
12851 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12852 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12853 cross_compiling=$ac_cv_prog_cxx_cross
12855 cat > conftest.$ac_ext <<EOF
12856 #line 12857 "configure"
12857 #include "confdefs.h"
12858 #include <math.h>
12859 #ifdef HAVE_IEEEFP_H
12860 #include <ieeefp.h>
12861 #endif
12863 int main() {
12864 isnanf(0);
12865 ; return 0; }
12867 if { (eval echo configure:12868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12868 rm -rf conftest*
12869 glibcpp_cv_func_isnanf_use=yes
12870 else
12871 echo "configure: failed program was:" >&5
12872 cat conftest.$ac_ext >&5
12873 rm -rf conftest*
12874 glibcpp_cv_func_isnanf_use=no
12876 rm -f conftest*
12877 ac_ext=c
12878 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12879 ac_cpp='$CPP $CPPFLAGS'
12880 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12881 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12882 cross_compiling=$ac_cv_prog_cc_cross
12888 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12890 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12891 for ac_func in isnanf
12893 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12894 echo "configure:12895: checking for $ac_func" >&5
12895 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12896 echo $ac_n "(cached) $ac_c" 1>&6
12897 else
12898 cat > conftest.$ac_ext <<EOF
12899 #line 12900 "configure"
12900 #include "confdefs.h"
12901 /* System header to define __stub macros and hopefully few prototypes,
12902 which can conflict with char $ac_func(); below. */
12903 #include <assert.h>
12904 /* Override any gcc2 internal prototype to avoid an error. */
12905 /* We use char because int might match the return type of a gcc2
12906 builtin and then its argument prototype would still apply. */
12907 char $ac_func();
12909 int main() {
12911 /* The GNU C library defines this for functions which it implements
12912 to always fail with ENOSYS. Some functions are actually named
12913 something starting with __ and the normal name is an alias. */
12914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12915 choke me
12916 #else
12917 $ac_func();
12918 #endif
12920 ; return 0; }
12922 if { (eval echo configure:12923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12923 rm -rf conftest*
12924 eval "ac_cv_func_$ac_func=yes"
12925 else
12926 echo "configure: failed program was:" >&5
12927 cat conftest.$ac_ext >&5
12928 rm -rf conftest*
12929 eval "ac_cv_func_$ac_func=no"
12931 rm -f conftest*
12934 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12935 echo "$ac_t""yes" 1>&6
12936 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12937 cat >> confdefs.h <<EOF
12938 #define $ac_tr_func 1
12941 else
12942 echo "$ac_t""no" 1>&6
12944 done
12946 else
12948 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12949 echo "configure:12950: checking for _isnanf declaration" >&5
12950 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
12951 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
12952 echo $ac_n "(cached) $ac_c" 1>&6
12953 else
12956 ac_ext=C
12957 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12958 ac_cpp='$CXXCPP $CPPFLAGS'
12959 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12960 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12961 cross_compiling=$ac_cv_prog_cxx_cross
12963 cat > conftest.$ac_ext <<EOF
12964 #line 12965 "configure"
12965 #include "confdefs.h"
12966 #include <math.h>
12967 #ifdef HAVE_IEEEFP_H
12968 #include <ieeefp.h>
12969 #endif
12971 int main() {
12972 _isnanf(0);
12973 ; return 0; }
12975 if { (eval echo configure:12976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12976 rm -rf conftest*
12977 glibcpp_cv_func__isnanf_use=yes
12978 else
12979 echo "configure: failed program was:" >&5
12980 cat conftest.$ac_ext >&5
12981 rm -rf conftest*
12982 glibcpp_cv_func__isnanf_use=no
12984 rm -f conftest*
12985 ac_ext=c
12986 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12987 ac_cpp='$CPP $CPPFLAGS'
12988 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12989 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12990 cross_compiling=$ac_cv_prog_cc_cross
12996 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
12998 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
12999 for ac_func in _isnanf
13001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13002 echo "configure:13003: checking for $ac_func" >&5
13003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13004 echo $ac_n "(cached) $ac_c" 1>&6
13005 else
13006 cat > conftest.$ac_ext <<EOF
13007 #line 13008 "configure"
13008 #include "confdefs.h"
13009 /* System header to define __stub macros and hopefully few prototypes,
13010 which can conflict with char $ac_func(); below. */
13011 #include <assert.h>
13012 /* Override any gcc2 internal prototype to avoid an error. */
13013 /* We use char because int might match the return type of a gcc2
13014 builtin and then its argument prototype would still apply. */
13015 char $ac_func();
13017 int main() {
13019 /* The GNU C library defines this for functions which it implements
13020 to always fail with ENOSYS. Some functions are actually named
13021 something starting with __ and the normal name is an alias. */
13022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13023 choke me
13024 #else
13025 $ac_func();
13026 #endif
13028 ; return 0; }
13030 if { (eval echo configure:13031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13031 rm -rf conftest*
13032 eval "ac_cv_func_$ac_func=yes"
13033 else
13034 echo "configure: failed program was:" >&5
13035 cat conftest.$ac_ext >&5
13036 rm -rf conftest*
13037 eval "ac_cv_func_$ac_func=no"
13039 rm -f conftest*
13042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13043 echo "$ac_t""yes" 1>&6
13044 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13045 cat >> confdefs.h <<EOF
13046 #define $ac_tr_func 1
13049 else
13050 echo "$ac_t""no" 1>&6
13052 done
13059 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13060 echo "configure:13061: checking for isinff declaration" >&5
13061 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13062 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13063 echo $ac_n "(cached) $ac_c" 1>&6
13064 else
13067 ac_ext=C
13068 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13069 ac_cpp='$CXXCPP $CPPFLAGS'
13070 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13071 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13072 cross_compiling=$ac_cv_prog_cxx_cross
13074 cat > conftest.$ac_ext <<EOF
13075 #line 13076 "configure"
13076 #include "confdefs.h"
13077 #include <math.h>
13078 #ifdef HAVE_IEEEFP_H
13079 #include <ieeefp.h>
13080 #endif
13082 int main() {
13083 isinff(0);
13084 ; return 0; }
13086 if { (eval echo configure:13087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13087 rm -rf conftest*
13088 glibcpp_cv_func_isinff_use=yes
13089 else
13090 echo "configure: failed program was:" >&5
13091 cat conftest.$ac_ext >&5
13092 rm -rf conftest*
13093 glibcpp_cv_func_isinff_use=no
13095 rm -f conftest*
13096 ac_ext=c
13097 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13098 ac_cpp='$CPP $CPPFLAGS'
13099 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13100 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13101 cross_compiling=$ac_cv_prog_cc_cross
13107 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13109 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13110 for ac_func in isinff
13112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13113 echo "configure:13114: checking for $ac_func" >&5
13114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13115 echo $ac_n "(cached) $ac_c" 1>&6
13116 else
13117 cat > conftest.$ac_ext <<EOF
13118 #line 13119 "configure"
13119 #include "confdefs.h"
13120 /* System header to define __stub macros and hopefully few prototypes,
13121 which can conflict with char $ac_func(); below. */
13122 #include <assert.h>
13123 /* Override any gcc2 internal prototype to avoid an error. */
13124 /* We use char because int might match the return type of a gcc2
13125 builtin and then its argument prototype would still apply. */
13126 char $ac_func();
13128 int main() {
13130 /* The GNU C library defines this for functions which it implements
13131 to always fail with ENOSYS. Some functions are actually named
13132 something starting with __ and the normal name is an alias. */
13133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13134 choke me
13135 #else
13136 $ac_func();
13137 #endif
13139 ; return 0; }
13141 if { (eval echo configure:13142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13142 rm -rf conftest*
13143 eval "ac_cv_func_$ac_func=yes"
13144 else
13145 echo "configure: failed program was:" >&5
13146 cat conftest.$ac_ext >&5
13147 rm -rf conftest*
13148 eval "ac_cv_func_$ac_func=no"
13150 rm -f conftest*
13153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13154 echo "$ac_t""yes" 1>&6
13155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13156 cat >> confdefs.h <<EOF
13157 #define $ac_tr_func 1
13160 else
13161 echo "$ac_t""no" 1>&6
13163 done
13165 else
13167 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13168 echo "configure:13169: checking for _isinff declaration" >&5
13169 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13170 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13171 echo $ac_n "(cached) $ac_c" 1>&6
13172 else
13175 ac_ext=C
13176 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13177 ac_cpp='$CXXCPP $CPPFLAGS'
13178 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13179 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13180 cross_compiling=$ac_cv_prog_cxx_cross
13182 cat > conftest.$ac_ext <<EOF
13183 #line 13184 "configure"
13184 #include "confdefs.h"
13185 #include <math.h>
13186 #ifdef HAVE_IEEEFP_H
13187 #include <ieeefp.h>
13188 #endif
13190 int main() {
13191 _isinff(0);
13192 ; return 0; }
13194 if { (eval echo configure:13195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13195 rm -rf conftest*
13196 glibcpp_cv_func__isinff_use=yes
13197 else
13198 echo "configure: failed program was:" >&5
13199 cat conftest.$ac_ext >&5
13200 rm -rf conftest*
13201 glibcpp_cv_func__isinff_use=no
13203 rm -f conftest*
13204 ac_ext=c
13205 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13206 ac_cpp='$CPP $CPPFLAGS'
13207 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13208 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13209 cross_compiling=$ac_cv_prog_cc_cross
13215 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13217 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13218 for ac_func in _isinff
13220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13221 echo "configure:13222: checking for $ac_func" >&5
13222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13223 echo $ac_n "(cached) $ac_c" 1>&6
13224 else
13225 cat > conftest.$ac_ext <<EOF
13226 #line 13227 "configure"
13227 #include "confdefs.h"
13228 /* System header to define __stub macros and hopefully few prototypes,
13229 which can conflict with char $ac_func(); below. */
13230 #include <assert.h>
13231 /* Override any gcc2 internal prototype to avoid an error. */
13232 /* We use char because int might match the return type of a gcc2
13233 builtin and then its argument prototype would still apply. */
13234 char $ac_func();
13236 int main() {
13238 /* The GNU C library defines this for functions which it implements
13239 to always fail with ENOSYS. Some functions are actually named
13240 something starting with __ and the normal name is an alias. */
13241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13242 choke me
13243 #else
13244 $ac_func();
13245 #endif
13247 ; return 0; }
13249 if { (eval echo configure:13250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13250 rm -rf conftest*
13251 eval "ac_cv_func_$ac_func=yes"
13252 else
13253 echo "configure: failed program was:" >&5
13254 cat conftest.$ac_ext >&5
13255 rm -rf conftest*
13256 eval "ac_cv_func_$ac_func=no"
13258 rm -f conftest*
13261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13262 echo "$ac_t""yes" 1>&6
13263 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13264 cat >> confdefs.h <<EOF
13265 #define $ac_tr_func 1
13268 else
13269 echo "$ac_t""no" 1>&6
13271 done
13278 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13279 echo "configure:13280: checking for atan2f declaration" >&5
13280 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13281 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13282 echo $ac_n "(cached) $ac_c" 1>&6
13283 else
13286 ac_ext=C
13287 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13288 ac_cpp='$CXXCPP $CPPFLAGS'
13289 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13290 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13291 cross_compiling=$ac_cv_prog_cxx_cross
13293 cat > conftest.$ac_ext <<EOF
13294 #line 13295 "configure"
13295 #include "confdefs.h"
13296 #include <math.h>
13297 int main() {
13298 atan2f(0, 0);
13299 ; return 0; }
13301 if { (eval echo configure:13302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13302 rm -rf conftest*
13303 glibcpp_cv_func_atan2f_use=yes
13304 else
13305 echo "configure: failed program was:" >&5
13306 cat conftest.$ac_ext >&5
13307 rm -rf conftest*
13308 glibcpp_cv_func_atan2f_use=no
13310 rm -f conftest*
13311 ac_ext=c
13312 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13313 ac_cpp='$CPP $CPPFLAGS'
13314 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13315 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13316 cross_compiling=$ac_cv_prog_cc_cross
13322 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13324 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13325 for ac_func in atan2f
13327 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13328 echo "configure:13329: checking for $ac_func" >&5
13329 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13330 echo $ac_n "(cached) $ac_c" 1>&6
13331 else
13332 cat > conftest.$ac_ext <<EOF
13333 #line 13334 "configure"
13334 #include "confdefs.h"
13335 /* System header to define __stub macros and hopefully few prototypes,
13336 which can conflict with char $ac_func(); below. */
13337 #include <assert.h>
13338 /* Override any gcc2 internal prototype to avoid an error. */
13339 /* We use char because int might match the return type of a gcc2
13340 builtin and then its argument prototype would still apply. */
13341 char $ac_func();
13343 int main() {
13345 /* The GNU C library defines this for functions which it implements
13346 to always fail with ENOSYS. Some functions are actually named
13347 something starting with __ and the normal name is an alias. */
13348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13349 choke me
13350 #else
13351 $ac_func();
13352 #endif
13354 ; return 0; }
13356 if { (eval echo configure:13357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13357 rm -rf conftest*
13358 eval "ac_cv_func_$ac_func=yes"
13359 else
13360 echo "configure: failed program was:" >&5
13361 cat conftest.$ac_ext >&5
13362 rm -rf conftest*
13363 eval "ac_cv_func_$ac_func=no"
13365 rm -f conftest*
13368 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13369 echo "$ac_t""yes" 1>&6
13370 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13371 cat >> confdefs.h <<EOF
13372 #define $ac_tr_func 1
13375 else
13376 echo "$ac_t""no" 1>&6
13378 done
13380 else
13382 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13383 echo "configure:13384: checking for _atan2f declaration" >&5
13384 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13385 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13386 echo $ac_n "(cached) $ac_c" 1>&6
13387 else
13390 ac_ext=C
13391 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13392 ac_cpp='$CXXCPP $CPPFLAGS'
13393 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13394 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13395 cross_compiling=$ac_cv_prog_cxx_cross
13397 cat > conftest.$ac_ext <<EOF
13398 #line 13399 "configure"
13399 #include "confdefs.h"
13400 #include <math.h>
13401 int main() {
13402 _atan2f(0, 0);
13403 ; return 0; }
13405 if { (eval echo configure:13406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13406 rm -rf conftest*
13407 glibcpp_cv_func__atan2f_use=yes
13408 else
13409 echo "configure: failed program was:" >&5
13410 cat conftest.$ac_ext >&5
13411 rm -rf conftest*
13412 glibcpp_cv_func__atan2f_use=no
13414 rm -f conftest*
13415 ac_ext=c
13416 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13417 ac_cpp='$CPP $CPPFLAGS'
13418 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13419 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13420 cross_compiling=$ac_cv_prog_cc_cross
13426 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13428 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13429 for ac_func in _atan2f
13431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13432 echo "configure:13433: checking for $ac_func" >&5
13433 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13434 echo $ac_n "(cached) $ac_c" 1>&6
13435 else
13436 cat > conftest.$ac_ext <<EOF
13437 #line 13438 "configure"
13438 #include "confdefs.h"
13439 /* System header to define __stub macros and hopefully few prototypes,
13440 which can conflict with char $ac_func(); below. */
13441 #include <assert.h>
13442 /* Override any gcc2 internal prototype to avoid an error. */
13443 /* We use char because int might match the return type of a gcc2
13444 builtin and then its argument prototype would still apply. */
13445 char $ac_func();
13447 int main() {
13449 /* The GNU C library defines this for functions which it implements
13450 to always fail with ENOSYS. Some functions are actually named
13451 something starting with __ and the normal name is an alias. */
13452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13453 choke me
13454 #else
13455 $ac_func();
13456 #endif
13458 ; return 0; }
13460 if { (eval echo configure:13461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13461 rm -rf conftest*
13462 eval "ac_cv_func_$ac_func=yes"
13463 else
13464 echo "configure: failed program was:" >&5
13465 cat conftest.$ac_ext >&5
13466 rm -rf conftest*
13467 eval "ac_cv_func_$ac_func=no"
13469 rm -f conftest*
13472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13473 echo "$ac_t""yes" 1>&6
13474 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13475 cat >> confdefs.h <<EOF
13476 #define $ac_tr_func 1
13479 else
13480 echo "$ac_t""no" 1>&6
13482 done
13489 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13490 echo "configure:13491: checking for fabsf declaration" >&5
13491 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13492 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13493 echo $ac_n "(cached) $ac_c" 1>&6
13494 else
13497 ac_ext=C
13498 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13499 ac_cpp='$CXXCPP $CPPFLAGS'
13500 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13501 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13502 cross_compiling=$ac_cv_prog_cxx_cross
13504 cat > conftest.$ac_ext <<EOF
13505 #line 13506 "configure"
13506 #include "confdefs.h"
13507 #include <math.h>
13508 #ifdef HAVE_IEEEFP_H
13509 #include <ieeefp.h>
13510 #endif
13512 int main() {
13513 fabsf(0);
13514 ; return 0; }
13516 if { (eval echo configure:13517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13517 rm -rf conftest*
13518 glibcpp_cv_func_fabsf_use=yes
13519 else
13520 echo "configure: failed program was:" >&5
13521 cat conftest.$ac_ext >&5
13522 rm -rf conftest*
13523 glibcpp_cv_func_fabsf_use=no
13525 rm -f conftest*
13526 ac_ext=c
13527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13528 ac_cpp='$CPP $CPPFLAGS'
13529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13531 cross_compiling=$ac_cv_prog_cc_cross
13537 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13539 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13540 for ac_func in fabsf
13542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13543 echo "configure:13544: checking for $ac_func" >&5
13544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13545 echo $ac_n "(cached) $ac_c" 1>&6
13546 else
13547 cat > conftest.$ac_ext <<EOF
13548 #line 13549 "configure"
13549 #include "confdefs.h"
13550 /* System header to define __stub macros and hopefully few prototypes,
13551 which can conflict with char $ac_func(); below. */
13552 #include <assert.h>
13553 /* Override any gcc2 internal prototype to avoid an error. */
13554 /* We use char because int might match the return type of a gcc2
13555 builtin and then its argument prototype would still apply. */
13556 char $ac_func();
13558 int main() {
13560 /* The GNU C library defines this for functions which it implements
13561 to always fail with ENOSYS. Some functions are actually named
13562 something starting with __ and the normal name is an alias. */
13563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13564 choke me
13565 #else
13566 $ac_func();
13567 #endif
13569 ; return 0; }
13571 if { (eval echo configure:13572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13572 rm -rf conftest*
13573 eval "ac_cv_func_$ac_func=yes"
13574 else
13575 echo "configure: failed program was:" >&5
13576 cat conftest.$ac_ext >&5
13577 rm -rf conftest*
13578 eval "ac_cv_func_$ac_func=no"
13580 rm -f conftest*
13583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13584 echo "$ac_t""yes" 1>&6
13585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13586 cat >> confdefs.h <<EOF
13587 #define $ac_tr_func 1
13590 else
13591 echo "$ac_t""no" 1>&6
13593 done
13595 else
13597 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13598 echo "configure:13599: checking for _fabsf declaration" >&5
13599 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13600 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13601 echo $ac_n "(cached) $ac_c" 1>&6
13602 else
13605 ac_ext=C
13606 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13607 ac_cpp='$CXXCPP $CPPFLAGS'
13608 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13609 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13610 cross_compiling=$ac_cv_prog_cxx_cross
13612 cat > conftest.$ac_ext <<EOF
13613 #line 13614 "configure"
13614 #include "confdefs.h"
13615 #include <math.h>
13616 #ifdef HAVE_IEEEFP_H
13617 #include <ieeefp.h>
13618 #endif
13620 int main() {
13621 _fabsf(0);
13622 ; return 0; }
13624 if { (eval echo configure:13625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13625 rm -rf conftest*
13626 glibcpp_cv_func__fabsf_use=yes
13627 else
13628 echo "configure: failed program was:" >&5
13629 cat conftest.$ac_ext >&5
13630 rm -rf conftest*
13631 glibcpp_cv_func__fabsf_use=no
13633 rm -f conftest*
13634 ac_ext=c
13635 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13636 ac_cpp='$CPP $CPPFLAGS'
13637 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13638 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13639 cross_compiling=$ac_cv_prog_cc_cross
13645 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13647 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13648 for ac_func in _fabsf
13650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13651 echo "configure:13652: checking for $ac_func" >&5
13652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13653 echo $ac_n "(cached) $ac_c" 1>&6
13654 else
13655 cat > conftest.$ac_ext <<EOF
13656 #line 13657 "configure"
13657 #include "confdefs.h"
13658 /* System header to define __stub macros and hopefully few prototypes,
13659 which can conflict with char $ac_func(); below. */
13660 #include <assert.h>
13661 /* Override any gcc2 internal prototype to avoid an error. */
13662 /* We use char because int might match the return type of a gcc2
13663 builtin and then its argument prototype would still apply. */
13664 char $ac_func();
13666 int main() {
13668 /* The GNU C library defines this for functions which it implements
13669 to always fail with ENOSYS. Some functions are actually named
13670 something starting with __ and the normal name is an alias. */
13671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13672 choke me
13673 #else
13674 $ac_func();
13675 #endif
13677 ; return 0; }
13679 if { (eval echo configure:13680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13680 rm -rf conftest*
13681 eval "ac_cv_func_$ac_func=yes"
13682 else
13683 echo "configure: failed program was:" >&5
13684 cat conftest.$ac_ext >&5
13685 rm -rf conftest*
13686 eval "ac_cv_func_$ac_func=no"
13688 rm -f conftest*
13691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13692 echo "$ac_t""yes" 1>&6
13693 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13694 cat >> confdefs.h <<EOF
13695 #define $ac_tr_func 1
13698 else
13699 echo "$ac_t""no" 1>&6
13701 done
13708 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13709 echo "configure:13710: checking for fmodf declaration" >&5
13710 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13711 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13712 echo $ac_n "(cached) $ac_c" 1>&6
13713 else
13716 ac_ext=C
13717 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13718 ac_cpp='$CXXCPP $CPPFLAGS'
13719 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13720 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13721 cross_compiling=$ac_cv_prog_cxx_cross
13723 cat > conftest.$ac_ext <<EOF
13724 #line 13725 "configure"
13725 #include "confdefs.h"
13726 #include <math.h>
13727 int main() {
13728 fmodf(0, 0);
13729 ; return 0; }
13731 if { (eval echo configure:13732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13732 rm -rf conftest*
13733 glibcpp_cv_func_fmodf_use=yes
13734 else
13735 echo "configure: failed program was:" >&5
13736 cat conftest.$ac_ext >&5
13737 rm -rf conftest*
13738 glibcpp_cv_func_fmodf_use=no
13740 rm -f conftest*
13741 ac_ext=c
13742 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13743 ac_cpp='$CPP $CPPFLAGS'
13744 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13745 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13746 cross_compiling=$ac_cv_prog_cc_cross
13752 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13754 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13755 for ac_func in fmodf
13757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13758 echo "configure:13759: checking for $ac_func" >&5
13759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13760 echo $ac_n "(cached) $ac_c" 1>&6
13761 else
13762 cat > conftest.$ac_ext <<EOF
13763 #line 13764 "configure"
13764 #include "confdefs.h"
13765 /* System header to define __stub macros and hopefully few prototypes,
13766 which can conflict with char $ac_func(); below. */
13767 #include <assert.h>
13768 /* Override any gcc2 internal prototype to avoid an error. */
13769 /* We use char because int might match the return type of a gcc2
13770 builtin and then its argument prototype would still apply. */
13771 char $ac_func();
13773 int main() {
13775 /* The GNU C library defines this for functions which it implements
13776 to always fail with ENOSYS. Some functions are actually named
13777 something starting with __ and the normal name is an alias. */
13778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13779 choke me
13780 #else
13781 $ac_func();
13782 #endif
13784 ; return 0; }
13786 if { (eval echo configure:13787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13787 rm -rf conftest*
13788 eval "ac_cv_func_$ac_func=yes"
13789 else
13790 echo "configure: failed program was:" >&5
13791 cat conftest.$ac_ext >&5
13792 rm -rf conftest*
13793 eval "ac_cv_func_$ac_func=no"
13795 rm -f conftest*
13798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13799 echo "$ac_t""yes" 1>&6
13800 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13801 cat >> confdefs.h <<EOF
13802 #define $ac_tr_func 1
13805 else
13806 echo "$ac_t""no" 1>&6
13808 done
13810 else
13812 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13813 echo "configure:13814: checking for _fmodf declaration" >&5
13814 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13815 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13816 echo $ac_n "(cached) $ac_c" 1>&6
13817 else
13820 ac_ext=C
13821 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13822 ac_cpp='$CXXCPP $CPPFLAGS'
13823 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13824 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13825 cross_compiling=$ac_cv_prog_cxx_cross
13827 cat > conftest.$ac_ext <<EOF
13828 #line 13829 "configure"
13829 #include "confdefs.h"
13830 #include <math.h>
13831 int main() {
13832 _fmodf(0, 0);
13833 ; return 0; }
13835 if { (eval echo configure:13836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13836 rm -rf conftest*
13837 glibcpp_cv_func__fmodf_use=yes
13838 else
13839 echo "configure: failed program was:" >&5
13840 cat conftest.$ac_ext >&5
13841 rm -rf conftest*
13842 glibcpp_cv_func__fmodf_use=no
13844 rm -f conftest*
13845 ac_ext=c
13846 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13847 ac_cpp='$CPP $CPPFLAGS'
13848 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13849 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13850 cross_compiling=$ac_cv_prog_cc_cross
13856 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13858 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13859 for ac_func in _fmodf
13861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13862 echo "configure:13863: checking for $ac_func" >&5
13863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13864 echo $ac_n "(cached) $ac_c" 1>&6
13865 else
13866 cat > conftest.$ac_ext <<EOF
13867 #line 13868 "configure"
13868 #include "confdefs.h"
13869 /* System header to define __stub macros and hopefully few prototypes,
13870 which can conflict with char $ac_func(); below. */
13871 #include <assert.h>
13872 /* Override any gcc2 internal prototype to avoid an error. */
13873 /* We use char because int might match the return type of a gcc2
13874 builtin and then its argument prototype would still apply. */
13875 char $ac_func();
13877 int main() {
13879 /* The GNU C library defines this for functions which it implements
13880 to always fail with ENOSYS. Some functions are actually named
13881 something starting with __ and the normal name is an alias. */
13882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13883 choke me
13884 #else
13885 $ac_func();
13886 #endif
13888 ; return 0; }
13890 if { (eval echo configure:13891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13891 rm -rf conftest*
13892 eval "ac_cv_func_$ac_func=yes"
13893 else
13894 echo "configure: failed program was:" >&5
13895 cat conftest.$ac_ext >&5
13896 rm -rf conftest*
13897 eval "ac_cv_func_$ac_func=no"
13899 rm -f conftest*
13902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13903 echo "$ac_t""yes" 1>&6
13904 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13905 cat >> confdefs.h <<EOF
13906 #define $ac_tr_func 1
13909 else
13910 echo "$ac_t""no" 1>&6
13912 done
13919 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13920 echo "configure:13921: checking for frexpf declaration" >&5
13921 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13922 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13923 echo $ac_n "(cached) $ac_c" 1>&6
13924 else
13927 ac_ext=C
13928 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13929 ac_cpp='$CXXCPP $CPPFLAGS'
13930 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13931 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13932 cross_compiling=$ac_cv_prog_cxx_cross
13934 cat > conftest.$ac_ext <<EOF
13935 #line 13936 "configure"
13936 #include "confdefs.h"
13937 #include <math.h>
13938 int main() {
13939 frexpf(0, 0);
13940 ; return 0; }
13942 if { (eval echo configure:13943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13943 rm -rf conftest*
13944 glibcpp_cv_func_frexpf_use=yes
13945 else
13946 echo "configure: failed program was:" >&5
13947 cat conftest.$ac_ext >&5
13948 rm -rf conftest*
13949 glibcpp_cv_func_frexpf_use=no
13951 rm -f conftest*
13952 ac_ext=c
13953 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13954 ac_cpp='$CPP $CPPFLAGS'
13955 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13956 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13957 cross_compiling=$ac_cv_prog_cc_cross
13963 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
13965 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
13966 for ac_func in frexpf
13968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13969 echo "configure:13970: checking for $ac_func" >&5
13970 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13971 echo $ac_n "(cached) $ac_c" 1>&6
13972 else
13973 cat > conftest.$ac_ext <<EOF
13974 #line 13975 "configure"
13975 #include "confdefs.h"
13976 /* System header to define __stub macros and hopefully few prototypes,
13977 which can conflict with char $ac_func(); below. */
13978 #include <assert.h>
13979 /* Override any gcc2 internal prototype to avoid an error. */
13980 /* We use char because int might match the return type of a gcc2
13981 builtin and then its argument prototype would still apply. */
13982 char $ac_func();
13984 int main() {
13986 /* The GNU C library defines this for functions which it implements
13987 to always fail with ENOSYS. Some functions are actually named
13988 something starting with __ and the normal name is an alias. */
13989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13990 choke me
13991 #else
13992 $ac_func();
13993 #endif
13995 ; return 0; }
13997 if { (eval echo configure:13998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13998 rm -rf conftest*
13999 eval "ac_cv_func_$ac_func=yes"
14000 else
14001 echo "configure: failed program was:" >&5
14002 cat conftest.$ac_ext >&5
14003 rm -rf conftest*
14004 eval "ac_cv_func_$ac_func=no"
14006 rm -f conftest*
14009 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14010 echo "$ac_t""yes" 1>&6
14011 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14012 cat >> confdefs.h <<EOF
14013 #define $ac_tr_func 1
14016 else
14017 echo "$ac_t""no" 1>&6
14019 done
14021 else
14023 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14024 echo "configure:14025: checking for _frexpf declaration" >&5
14025 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14026 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14027 echo $ac_n "(cached) $ac_c" 1>&6
14028 else
14031 ac_ext=C
14032 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14033 ac_cpp='$CXXCPP $CPPFLAGS'
14034 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14035 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14036 cross_compiling=$ac_cv_prog_cxx_cross
14038 cat > conftest.$ac_ext <<EOF
14039 #line 14040 "configure"
14040 #include "confdefs.h"
14041 #include <math.h>
14042 int main() {
14043 _frexpf(0, 0);
14044 ; return 0; }
14046 if { (eval echo configure:14047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14047 rm -rf conftest*
14048 glibcpp_cv_func__frexpf_use=yes
14049 else
14050 echo "configure: failed program was:" >&5
14051 cat conftest.$ac_ext >&5
14052 rm -rf conftest*
14053 glibcpp_cv_func__frexpf_use=no
14055 rm -f conftest*
14056 ac_ext=c
14057 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14058 ac_cpp='$CPP $CPPFLAGS'
14059 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14060 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14061 cross_compiling=$ac_cv_prog_cc_cross
14067 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14069 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14070 for ac_func in _frexpf
14072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14073 echo "configure:14074: checking for $ac_func" >&5
14074 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14075 echo $ac_n "(cached) $ac_c" 1>&6
14076 else
14077 cat > conftest.$ac_ext <<EOF
14078 #line 14079 "configure"
14079 #include "confdefs.h"
14080 /* System header to define __stub macros and hopefully few prototypes,
14081 which can conflict with char $ac_func(); below. */
14082 #include <assert.h>
14083 /* Override any gcc2 internal prototype to avoid an error. */
14084 /* We use char because int might match the return type of a gcc2
14085 builtin and then its argument prototype would still apply. */
14086 char $ac_func();
14088 int main() {
14090 /* The GNU C library defines this for functions which it implements
14091 to always fail with ENOSYS. Some functions are actually named
14092 something starting with __ and the normal name is an alias. */
14093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14094 choke me
14095 #else
14096 $ac_func();
14097 #endif
14099 ; return 0; }
14101 if { (eval echo configure:14102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14102 rm -rf conftest*
14103 eval "ac_cv_func_$ac_func=yes"
14104 else
14105 echo "configure: failed program was:" >&5
14106 cat conftest.$ac_ext >&5
14107 rm -rf conftest*
14108 eval "ac_cv_func_$ac_func=no"
14110 rm -f conftest*
14113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14114 echo "$ac_t""yes" 1>&6
14115 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14116 cat >> confdefs.h <<EOF
14117 #define $ac_tr_func 1
14120 else
14121 echo "$ac_t""no" 1>&6
14123 done
14130 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14131 echo "configure:14132: checking for hypotf declaration" >&5
14132 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14133 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14134 echo $ac_n "(cached) $ac_c" 1>&6
14135 else
14138 ac_ext=C
14139 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14140 ac_cpp='$CXXCPP $CPPFLAGS'
14141 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14142 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14143 cross_compiling=$ac_cv_prog_cxx_cross
14145 cat > conftest.$ac_ext <<EOF
14146 #line 14147 "configure"
14147 #include "confdefs.h"
14148 #include <math.h>
14149 int main() {
14150 hypotf(0, 0);
14151 ; return 0; }
14153 if { (eval echo configure:14154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14154 rm -rf conftest*
14155 glibcpp_cv_func_hypotf_use=yes
14156 else
14157 echo "configure: failed program was:" >&5
14158 cat conftest.$ac_ext >&5
14159 rm -rf conftest*
14160 glibcpp_cv_func_hypotf_use=no
14162 rm -f conftest*
14163 ac_ext=c
14164 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14165 ac_cpp='$CPP $CPPFLAGS'
14166 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14167 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14168 cross_compiling=$ac_cv_prog_cc_cross
14174 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14176 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14177 for ac_func in hypotf
14179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14180 echo "configure:14181: checking for $ac_func" >&5
14181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14182 echo $ac_n "(cached) $ac_c" 1>&6
14183 else
14184 cat > conftest.$ac_ext <<EOF
14185 #line 14186 "configure"
14186 #include "confdefs.h"
14187 /* System header to define __stub macros and hopefully few prototypes,
14188 which can conflict with char $ac_func(); below. */
14189 #include <assert.h>
14190 /* Override any gcc2 internal prototype to avoid an error. */
14191 /* We use char because int might match the return type of a gcc2
14192 builtin and then its argument prototype would still apply. */
14193 char $ac_func();
14195 int main() {
14197 /* The GNU C library defines this for functions which it implements
14198 to always fail with ENOSYS. Some functions are actually named
14199 something starting with __ and the normal name is an alias. */
14200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14201 choke me
14202 #else
14203 $ac_func();
14204 #endif
14206 ; return 0; }
14208 if { (eval echo configure:14209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14209 rm -rf conftest*
14210 eval "ac_cv_func_$ac_func=yes"
14211 else
14212 echo "configure: failed program was:" >&5
14213 cat conftest.$ac_ext >&5
14214 rm -rf conftest*
14215 eval "ac_cv_func_$ac_func=no"
14217 rm -f conftest*
14220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14221 echo "$ac_t""yes" 1>&6
14222 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14223 cat >> confdefs.h <<EOF
14224 #define $ac_tr_func 1
14227 else
14228 echo "$ac_t""no" 1>&6
14230 done
14232 else
14234 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14235 echo "configure:14236: checking for _hypotf declaration" >&5
14236 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14237 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14238 echo $ac_n "(cached) $ac_c" 1>&6
14239 else
14242 ac_ext=C
14243 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14244 ac_cpp='$CXXCPP $CPPFLAGS'
14245 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14246 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14247 cross_compiling=$ac_cv_prog_cxx_cross
14249 cat > conftest.$ac_ext <<EOF
14250 #line 14251 "configure"
14251 #include "confdefs.h"
14252 #include <math.h>
14253 int main() {
14254 _hypotf(0, 0);
14255 ; return 0; }
14257 if { (eval echo configure:14258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14258 rm -rf conftest*
14259 glibcpp_cv_func__hypotf_use=yes
14260 else
14261 echo "configure: failed program was:" >&5
14262 cat conftest.$ac_ext >&5
14263 rm -rf conftest*
14264 glibcpp_cv_func__hypotf_use=no
14266 rm -f conftest*
14267 ac_ext=c
14268 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14269 ac_cpp='$CPP $CPPFLAGS'
14270 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14271 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14272 cross_compiling=$ac_cv_prog_cc_cross
14278 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14280 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14281 for ac_func in _hypotf
14283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14284 echo "configure:14285: checking for $ac_func" >&5
14285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14286 echo $ac_n "(cached) $ac_c" 1>&6
14287 else
14288 cat > conftest.$ac_ext <<EOF
14289 #line 14290 "configure"
14290 #include "confdefs.h"
14291 /* System header to define __stub macros and hopefully few prototypes,
14292 which can conflict with char $ac_func(); below. */
14293 #include <assert.h>
14294 /* Override any gcc2 internal prototype to avoid an error. */
14295 /* We use char because int might match the return type of a gcc2
14296 builtin and then its argument prototype would still apply. */
14297 char $ac_func();
14299 int main() {
14301 /* The GNU C library defines this for functions which it implements
14302 to always fail with ENOSYS. Some functions are actually named
14303 something starting with __ and the normal name is an alias. */
14304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14305 choke me
14306 #else
14307 $ac_func();
14308 #endif
14310 ; return 0; }
14312 if { (eval echo configure:14313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14313 rm -rf conftest*
14314 eval "ac_cv_func_$ac_func=yes"
14315 else
14316 echo "configure: failed program was:" >&5
14317 cat conftest.$ac_ext >&5
14318 rm -rf conftest*
14319 eval "ac_cv_func_$ac_func=no"
14321 rm -f conftest*
14324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14325 echo "$ac_t""yes" 1>&6
14326 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14327 cat >> confdefs.h <<EOF
14328 #define $ac_tr_func 1
14331 else
14332 echo "$ac_t""no" 1>&6
14334 done
14341 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14342 echo "configure:14343: checking for ldexpf declaration" >&5
14343 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14344 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14345 echo $ac_n "(cached) $ac_c" 1>&6
14346 else
14349 ac_ext=C
14350 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14351 ac_cpp='$CXXCPP $CPPFLAGS'
14352 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14353 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14354 cross_compiling=$ac_cv_prog_cxx_cross
14356 cat > conftest.$ac_ext <<EOF
14357 #line 14358 "configure"
14358 #include "confdefs.h"
14359 #include <math.h>
14360 int main() {
14361 ldexpf(0, 0);
14362 ; return 0; }
14364 if { (eval echo configure:14365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14365 rm -rf conftest*
14366 glibcpp_cv_func_ldexpf_use=yes
14367 else
14368 echo "configure: failed program was:" >&5
14369 cat conftest.$ac_ext >&5
14370 rm -rf conftest*
14371 glibcpp_cv_func_ldexpf_use=no
14373 rm -f conftest*
14374 ac_ext=c
14375 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14376 ac_cpp='$CPP $CPPFLAGS'
14377 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14378 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14379 cross_compiling=$ac_cv_prog_cc_cross
14385 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14387 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14388 for ac_func in ldexpf
14390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14391 echo "configure:14392: checking for $ac_func" >&5
14392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14393 echo $ac_n "(cached) $ac_c" 1>&6
14394 else
14395 cat > conftest.$ac_ext <<EOF
14396 #line 14397 "configure"
14397 #include "confdefs.h"
14398 /* System header to define __stub macros and hopefully few prototypes,
14399 which can conflict with char $ac_func(); below. */
14400 #include <assert.h>
14401 /* Override any gcc2 internal prototype to avoid an error. */
14402 /* We use char because int might match the return type of a gcc2
14403 builtin and then its argument prototype would still apply. */
14404 char $ac_func();
14406 int main() {
14408 /* The GNU C library defines this for functions which it implements
14409 to always fail with ENOSYS. Some functions are actually named
14410 something starting with __ and the normal name is an alias. */
14411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14412 choke me
14413 #else
14414 $ac_func();
14415 #endif
14417 ; return 0; }
14419 if { (eval echo configure:14420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14420 rm -rf conftest*
14421 eval "ac_cv_func_$ac_func=yes"
14422 else
14423 echo "configure: failed program was:" >&5
14424 cat conftest.$ac_ext >&5
14425 rm -rf conftest*
14426 eval "ac_cv_func_$ac_func=no"
14428 rm -f conftest*
14431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14432 echo "$ac_t""yes" 1>&6
14433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14434 cat >> confdefs.h <<EOF
14435 #define $ac_tr_func 1
14438 else
14439 echo "$ac_t""no" 1>&6
14441 done
14443 else
14445 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14446 echo "configure:14447: checking for _ldexpf declaration" >&5
14447 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14448 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14449 echo $ac_n "(cached) $ac_c" 1>&6
14450 else
14453 ac_ext=C
14454 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14455 ac_cpp='$CXXCPP $CPPFLAGS'
14456 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14457 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14458 cross_compiling=$ac_cv_prog_cxx_cross
14460 cat > conftest.$ac_ext <<EOF
14461 #line 14462 "configure"
14462 #include "confdefs.h"
14463 #include <math.h>
14464 int main() {
14465 _ldexpf(0, 0);
14466 ; return 0; }
14468 if { (eval echo configure:14469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14469 rm -rf conftest*
14470 glibcpp_cv_func__ldexpf_use=yes
14471 else
14472 echo "configure: failed program was:" >&5
14473 cat conftest.$ac_ext >&5
14474 rm -rf conftest*
14475 glibcpp_cv_func__ldexpf_use=no
14477 rm -f conftest*
14478 ac_ext=c
14479 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14480 ac_cpp='$CPP $CPPFLAGS'
14481 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14482 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14483 cross_compiling=$ac_cv_prog_cc_cross
14489 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14491 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14492 for ac_func in _ldexpf
14494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14495 echo "configure:14496: checking for $ac_func" >&5
14496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14497 echo $ac_n "(cached) $ac_c" 1>&6
14498 else
14499 cat > conftest.$ac_ext <<EOF
14500 #line 14501 "configure"
14501 #include "confdefs.h"
14502 /* System header to define __stub macros and hopefully few prototypes,
14503 which can conflict with char $ac_func(); below. */
14504 #include <assert.h>
14505 /* Override any gcc2 internal prototype to avoid an error. */
14506 /* We use char because int might match the return type of a gcc2
14507 builtin and then its argument prototype would still apply. */
14508 char $ac_func();
14510 int main() {
14512 /* The GNU C library defines this for functions which it implements
14513 to always fail with ENOSYS. Some functions are actually named
14514 something starting with __ and the normal name is an alias. */
14515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14516 choke me
14517 #else
14518 $ac_func();
14519 #endif
14521 ; return 0; }
14523 if { (eval echo configure:14524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14524 rm -rf conftest*
14525 eval "ac_cv_func_$ac_func=yes"
14526 else
14527 echo "configure: failed program was:" >&5
14528 cat conftest.$ac_ext >&5
14529 rm -rf conftest*
14530 eval "ac_cv_func_$ac_func=no"
14532 rm -f conftest*
14535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14536 echo "$ac_t""yes" 1>&6
14537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14538 cat >> confdefs.h <<EOF
14539 #define $ac_tr_func 1
14542 else
14543 echo "$ac_t""no" 1>&6
14545 done
14552 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14553 echo "configure:14554: checking for logf declaration" >&5
14554 if test x${glibcpp_cv_func_logf_use+set} != xset; then
14555 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14556 echo $ac_n "(cached) $ac_c" 1>&6
14557 else
14560 ac_ext=C
14561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14562 ac_cpp='$CXXCPP $CPPFLAGS'
14563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14565 cross_compiling=$ac_cv_prog_cxx_cross
14567 cat > conftest.$ac_ext <<EOF
14568 #line 14569 "configure"
14569 #include "confdefs.h"
14570 #include <math.h>
14571 #ifdef HAVE_IEEEFP_H
14572 #include <ieeefp.h>
14573 #endif
14575 int main() {
14576 logf(0);
14577 ; return 0; }
14579 if { (eval echo configure:14580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14580 rm -rf conftest*
14581 glibcpp_cv_func_logf_use=yes
14582 else
14583 echo "configure: failed program was:" >&5
14584 cat conftest.$ac_ext >&5
14585 rm -rf conftest*
14586 glibcpp_cv_func_logf_use=no
14588 rm -f conftest*
14589 ac_ext=c
14590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14591 ac_cpp='$CPP $CPPFLAGS'
14592 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14593 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14594 cross_compiling=$ac_cv_prog_cc_cross
14600 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14602 if test x$glibcpp_cv_func_logf_use = x"yes"; then
14603 for ac_func in logf
14605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14606 echo "configure:14607: checking for $ac_func" >&5
14607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14608 echo $ac_n "(cached) $ac_c" 1>&6
14609 else
14610 cat > conftest.$ac_ext <<EOF
14611 #line 14612 "configure"
14612 #include "confdefs.h"
14613 /* System header to define __stub macros and hopefully few prototypes,
14614 which can conflict with char $ac_func(); below. */
14615 #include <assert.h>
14616 /* Override any gcc2 internal prototype to avoid an error. */
14617 /* We use char because int might match the return type of a gcc2
14618 builtin and then its argument prototype would still apply. */
14619 char $ac_func();
14621 int main() {
14623 /* The GNU C library defines this for functions which it implements
14624 to always fail with ENOSYS. Some functions are actually named
14625 something starting with __ and the normal name is an alias. */
14626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14627 choke me
14628 #else
14629 $ac_func();
14630 #endif
14632 ; return 0; }
14634 if { (eval echo configure:14635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14635 rm -rf conftest*
14636 eval "ac_cv_func_$ac_func=yes"
14637 else
14638 echo "configure: failed program was:" >&5
14639 cat conftest.$ac_ext >&5
14640 rm -rf conftest*
14641 eval "ac_cv_func_$ac_func=no"
14643 rm -f conftest*
14646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14647 echo "$ac_t""yes" 1>&6
14648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14649 cat >> confdefs.h <<EOF
14650 #define $ac_tr_func 1
14653 else
14654 echo "$ac_t""no" 1>&6
14656 done
14658 else
14660 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14661 echo "configure:14662: checking for _logf declaration" >&5
14662 if test x${glibcpp_cv_func__logf_use+set} != xset; then
14663 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14664 echo $ac_n "(cached) $ac_c" 1>&6
14665 else
14668 ac_ext=C
14669 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14670 ac_cpp='$CXXCPP $CPPFLAGS'
14671 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14672 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14673 cross_compiling=$ac_cv_prog_cxx_cross
14675 cat > conftest.$ac_ext <<EOF
14676 #line 14677 "configure"
14677 #include "confdefs.h"
14678 #include <math.h>
14679 #ifdef HAVE_IEEEFP_H
14680 #include <ieeefp.h>
14681 #endif
14683 int main() {
14684 _logf(0);
14685 ; return 0; }
14687 if { (eval echo configure:14688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14688 rm -rf conftest*
14689 glibcpp_cv_func__logf_use=yes
14690 else
14691 echo "configure: failed program was:" >&5
14692 cat conftest.$ac_ext >&5
14693 rm -rf conftest*
14694 glibcpp_cv_func__logf_use=no
14696 rm -f conftest*
14697 ac_ext=c
14698 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14699 ac_cpp='$CPP $CPPFLAGS'
14700 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14701 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14702 cross_compiling=$ac_cv_prog_cc_cross
14708 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14710 if test x$glibcpp_cv_func__logf_use = x"yes"; then
14711 for ac_func in _logf
14713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14714 echo "configure:14715: checking for $ac_func" >&5
14715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14716 echo $ac_n "(cached) $ac_c" 1>&6
14717 else
14718 cat > conftest.$ac_ext <<EOF
14719 #line 14720 "configure"
14720 #include "confdefs.h"
14721 /* System header to define __stub macros and hopefully few prototypes,
14722 which can conflict with char $ac_func(); below. */
14723 #include <assert.h>
14724 /* Override any gcc2 internal prototype to avoid an error. */
14725 /* We use char because int might match the return type of a gcc2
14726 builtin and then its argument prototype would still apply. */
14727 char $ac_func();
14729 int main() {
14731 /* The GNU C library defines this for functions which it implements
14732 to always fail with ENOSYS. Some functions are actually named
14733 something starting with __ and the normal name is an alias. */
14734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14735 choke me
14736 #else
14737 $ac_func();
14738 #endif
14740 ; return 0; }
14742 if { (eval echo configure:14743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14743 rm -rf conftest*
14744 eval "ac_cv_func_$ac_func=yes"
14745 else
14746 echo "configure: failed program was:" >&5
14747 cat conftest.$ac_ext >&5
14748 rm -rf conftest*
14749 eval "ac_cv_func_$ac_func=no"
14751 rm -f conftest*
14754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14755 echo "$ac_t""yes" 1>&6
14756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14757 cat >> confdefs.h <<EOF
14758 #define $ac_tr_func 1
14761 else
14762 echo "$ac_t""no" 1>&6
14764 done
14771 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14772 echo "configure:14773: checking for log10f declaration" >&5
14773 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14774 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14775 echo $ac_n "(cached) $ac_c" 1>&6
14776 else
14779 ac_ext=C
14780 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14781 ac_cpp='$CXXCPP $CPPFLAGS'
14782 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14783 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14784 cross_compiling=$ac_cv_prog_cxx_cross
14786 cat > conftest.$ac_ext <<EOF
14787 #line 14788 "configure"
14788 #include "confdefs.h"
14789 #include <math.h>
14790 #ifdef HAVE_IEEEFP_H
14791 #include <ieeefp.h>
14792 #endif
14794 int main() {
14795 log10f(0);
14796 ; return 0; }
14798 if { (eval echo configure:14799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14799 rm -rf conftest*
14800 glibcpp_cv_func_log10f_use=yes
14801 else
14802 echo "configure: failed program was:" >&5
14803 cat conftest.$ac_ext >&5
14804 rm -rf conftest*
14805 glibcpp_cv_func_log10f_use=no
14807 rm -f conftest*
14808 ac_ext=c
14809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14810 ac_cpp='$CPP $CPPFLAGS'
14811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14813 cross_compiling=$ac_cv_prog_cc_cross
14819 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14821 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14822 for ac_func in log10f
14824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14825 echo "configure:14826: checking for $ac_func" >&5
14826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14827 echo $ac_n "(cached) $ac_c" 1>&6
14828 else
14829 cat > conftest.$ac_ext <<EOF
14830 #line 14831 "configure"
14831 #include "confdefs.h"
14832 /* System header to define __stub macros and hopefully few prototypes,
14833 which can conflict with char $ac_func(); below. */
14834 #include <assert.h>
14835 /* Override any gcc2 internal prototype to avoid an error. */
14836 /* We use char because int might match the return type of a gcc2
14837 builtin and then its argument prototype would still apply. */
14838 char $ac_func();
14840 int main() {
14842 /* The GNU C library defines this for functions which it implements
14843 to always fail with ENOSYS. Some functions are actually named
14844 something starting with __ and the normal name is an alias. */
14845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14846 choke me
14847 #else
14848 $ac_func();
14849 #endif
14851 ; return 0; }
14853 if { (eval echo configure:14854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14854 rm -rf conftest*
14855 eval "ac_cv_func_$ac_func=yes"
14856 else
14857 echo "configure: failed program was:" >&5
14858 cat conftest.$ac_ext >&5
14859 rm -rf conftest*
14860 eval "ac_cv_func_$ac_func=no"
14862 rm -f conftest*
14865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14866 echo "$ac_t""yes" 1>&6
14867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14868 cat >> confdefs.h <<EOF
14869 #define $ac_tr_func 1
14872 else
14873 echo "$ac_t""no" 1>&6
14875 done
14877 else
14879 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14880 echo "configure:14881: checking for _log10f declaration" >&5
14881 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14882 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14883 echo $ac_n "(cached) $ac_c" 1>&6
14884 else
14887 ac_ext=C
14888 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14889 ac_cpp='$CXXCPP $CPPFLAGS'
14890 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14891 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14892 cross_compiling=$ac_cv_prog_cxx_cross
14894 cat > conftest.$ac_ext <<EOF
14895 #line 14896 "configure"
14896 #include "confdefs.h"
14897 #include <math.h>
14898 #ifdef HAVE_IEEEFP_H
14899 #include <ieeefp.h>
14900 #endif
14902 int main() {
14903 _log10f(0);
14904 ; return 0; }
14906 if { (eval echo configure:14907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14907 rm -rf conftest*
14908 glibcpp_cv_func__log10f_use=yes
14909 else
14910 echo "configure: failed program was:" >&5
14911 cat conftest.$ac_ext >&5
14912 rm -rf conftest*
14913 glibcpp_cv_func__log10f_use=no
14915 rm -f conftest*
14916 ac_ext=c
14917 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14918 ac_cpp='$CPP $CPPFLAGS'
14919 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14920 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14921 cross_compiling=$ac_cv_prog_cc_cross
14927 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14929 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14930 for ac_func in _log10f
14932 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14933 echo "configure:14934: checking for $ac_func" >&5
14934 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14935 echo $ac_n "(cached) $ac_c" 1>&6
14936 else
14937 cat > conftest.$ac_ext <<EOF
14938 #line 14939 "configure"
14939 #include "confdefs.h"
14940 /* System header to define __stub macros and hopefully few prototypes,
14941 which can conflict with char $ac_func(); below. */
14942 #include <assert.h>
14943 /* Override any gcc2 internal prototype to avoid an error. */
14944 /* We use char because int might match the return type of a gcc2
14945 builtin and then its argument prototype would still apply. */
14946 char $ac_func();
14948 int main() {
14950 /* The GNU C library defines this for functions which it implements
14951 to always fail with ENOSYS. Some functions are actually named
14952 something starting with __ and the normal name is an alias. */
14953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14954 choke me
14955 #else
14956 $ac_func();
14957 #endif
14959 ; return 0; }
14961 if { (eval echo configure:14962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14962 rm -rf conftest*
14963 eval "ac_cv_func_$ac_func=yes"
14964 else
14965 echo "configure: failed program was:" >&5
14966 cat conftest.$ac_ext >&5
14967 rm -rf conftest*
14968 eval "ac_cv_func_$ac_func=no"
14970 rm -f conftest*
14973 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14974 echo "$ac_t""yes" 1>&6
14975 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14976 cat >> confdefs.h <<EOF
14977 #define $ac_tr_func 1
14980 else
14981 echo "$ac_t""no" 1>&6
14983 done
14990 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
14991 echo "configure:14992: checking for modff declaration" >&5
14992 if test x${glibcpp_cv_func_modff_use+set} != xset; then
14993 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
14994 echo $ac_n "(cached) $ac_c" 1>&6
14995 else
14998 ac_ext=C
14999 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15000 ac_cpp='$CXXCPP $CPPFLAGS'
15001 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15002 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15003 cross_compiling=$ac_cv_prog_cxx_cross
15005 cat > conftest.$ac_ext <<EOF
15006 #line 15007 "configure"
15007 #include "confdefs.h"
15008 #include <math.h>
15009 int main() {
15010 modff(0, 0);
15011 ; return 0; }
15013 if { (eval echo configure:15014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15014 rm -rf conftest*
15015 glibcpp_cv_func_modff_use=yes
15016 else
15017 echo "configure: failed program was:" >&5
15018 cat conftest.$ac_ext >&5
15019 rm -rf conftest*
15020 glibcpp_cv_func_modff_use=no
15022 rm -f conftest*
15023 ac_ext=c
15024 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15025 ac_cpp='$CPP $CPPFLAGS'
15026 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15027 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15028 cross_compiling=$ac_cv_prog_cc_cross
15034 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15036 if test x$glibcpp_cv_func_modff_use = x"yes"; then
15037 for ac_func in modff
15039 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15040 echo "configure:15041: checking for $ac_func" >&5
15041 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15042 echo $ac_n "(cached) $ac_c" 1>&6
15043 else
15044 cat > conftest.$ac_ext <<EOF
15045 #line 15046 "configure"
15046 #include "confdefs.h"
15047 /* System header to define __stub macros and hopefully few prototypes,
15048 which can conflict with char $ac_func(); below. */
15049 #include <assert.h>
15050 /* Override any gcc2 internal prototype to avoid an error. */
15051 /* We use char because int might match the return type of a gcc2
15052 builtin and then its argument prototype would still apply. */
15053 char $ac_func();
15055 int main() {
15057 /* The GNU C library defines this for functions which it implements
15058 to always fail with ENOSYS. Some functions are actually named
15059 something starting with __ and the normal name is an alias. */
15060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15061 choke me
15062 #else
15063 $ac_func();
15064 #endif
15066 ; return 0; }
15068 if { (eval echo configure:15069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15069 rm -rf conftest*
15070 eval "ac_cv_func_$ac_func=yes"
15071 else
15072 echo "configure: failed program was:" >&5
15073 cat conftest.$ac_ext >&5
15074 rm -rf conftest*
15075 eval "ac_cv_func_$ac_func=no"
15077 rm -f conftest*
15080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15081 echo "$ac_t""yes" 1>&6
15082 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15083 cat >> confdefs.h <<EOF
15084 #define $ac_tr_func 1
15087 else
15088 echo "$ac_t""no" 1>&6
15090 done
15092 else
15094 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15095 echo "configure:15096: checking for _modff declaration" >&5
15096 if test x${glibcpp_cv_func__modff_use+set} != xset; then
15097 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15098 echo $ac_n "(cached) $ac_c" 1>&6
15099 else
15102 ac_ext=C
15103 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15104 ac_cpp='$CXXCPP $CPPFLAGS'
15105 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15106 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15107 cross_compiling=$ac_cv_prog_cxx_cross
15109 cat > conftest.$ac_ext <<EOF
15110 #line 15111 "configure"
15111 #include "confdefs.h"
15112 #include <math.h>
15113 int main() {
15114 _modff(0, 0);
15115 ; return 0; }
15117 if { (eval echo configure:15118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15118 rm -rf conftest*
15119 glibcpp_cv_func__modff_use=yes
15120 else
15121 echo "configure: failed program was:" >&5
15122 cat conftest.$ac_ext >&5
15123 rm -rf conftest*
15124 glibcpp_cv_func__modff_use=no
15126 rm -f conftest*
15127 ac_ext=c
15128 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15129 ac_cpp='$CPP $CPPFLAGS'
15130 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15131 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15132 cross_compiling=$ac_cv_prog_cc_cross
15138 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15140 if test x$glibcpp_cv_func__modff_use = x"yes"; then
15141 for ac_func in _modff
15143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15144 echo "configure:15145: checking for $ac_func" >&5
15145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15146 echo $ac_n "(cached) $ac_c" 1>&6
15147 else
15148 cat > conftest.$ac_ext <<EOF
15149 #line 15150 "configure"
15150 #include "confdefs.h"
15151 /* System header to define __stub macros and hopefully few prototypes,
15152 which can conflict with char $ac_func(); below. */
15153 #include <assert.h>
15154 /* Override any gcc2 internal prototype to avoid an error. */
15155 /* We use char because int might match the return type of a gcc2
15156 builtin and then its argument prototype would still apply. */
15157 char $ac_func();
15159 int main() {
15161 /* The GNU C library defines this for functions which it implements
15162 to always fail with ENOSYS. Some functions are actually named
15163 something starting with __ and the normal name is an alias. */
15164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15165 choke me
15166 #else
15167 $ac_func();
15168 #endif
15170 ; return 0; }
15172 if { (eval echo configure:15173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15173 rm -rf conftest*
15174 eval "ac_cv_func_$ac_func=yes"
15175 else
15176 echo "configure: failed program was:" >&5
15177 cat conftest.$ac_ext >&5
15178 rm -rf conftest*
15179 eval "ac_cv_func_$ac_func=no"
15181 rm -f conftest*
15184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15185 echo "$ac_t""yes" 1>&6
15186 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15187 cat >> confdefs.h <<EOF
15188 #define $ac_tr_func 1
15191 else
15192 echo "$ac_t""no" 1>&6
15194 done
15201 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15202 echo "configure:15203: checking for powf declaration" >&5
15203 if test x${glibcpp_cv_func_powf_use+set} != xset; then
15204 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15205 echo $ac_n "(cached) $ac_c" 1>&6
15206 else
15209 ac_ext=C
15210 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15211 ac_cpp='$CXXCPP $CPPFLAGS'
15212 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15213 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15214 cross_compiling=$ac_cv_prog_cxx_cross
15216 cat > conftest.$ac_ext <<EOF
15217 #line 15218 "configure"
15218 #include "confdefs.h"
15219 #include <math.h>
15220 int main() {
15221 powf(0, 0);
15222 ; return 0; }
15224 if { (eval echo configure:15225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15225 rm -rf conftest*
15226 glibcpp_cv_func_powf_use=yes
15227 else
15228 echo "configure: failed program was:" >&5
15229 cat conftest.$ac_ext >&5
15230 rm -rf conftest*
15231 glibcpp_cv_func_powf_use=no
15233 rm -f conftest*
15234 ac_ext=c
15235 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15236 ac_cpp='$CPP $CPPFLAGS'
15237 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15238 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15239 cross_compiling=$ac_cv_prog_cc_cross
15245 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15247 if test x$glibcpp_cv_func_powf_use = x"yes"; then
15248 for ac_func in powf
15250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15251 echo "configure:15252: checking for $ac_func" >&5
15252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15253 echo $ac_n "(cached) $ac_c" 1>&6
15254 else
15255 cat > conftest.$ac_ext <<EOF
15256 #line 15257 "configure"
15257 #include "confdefs.h"
15258 /* System header to define __stub macros and hopefully few prototypes,
15259 which can conflict with char $ac_func(); below. */
15260 #include <assert.h>
15261 /* Override any gcc2 internal prototype to avoid an error. */
15262 /* We use char because int might match the return type of a gcc2
15263 builtin and then its argument prototype would still apply. */
15264 char $ac_func();
15266 int main() {
15268 /* The GNU C library defines this for functions which it implements
15269 to always fail with ENOSYS. Some functions are actually named
15270 something starting with __ and the normal name is an alias. */
15271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15272 choke me
15273 #else
15274 $ac_func();
15275 #endif
15277 ; return 0; }
15279 if { (eval echo configure:15280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15280 rm -rf conftest*
15281 eval "ac_cv_func_$ac_func=yes"
15282 else
15283 echo "configure: failed program was:" >&5
15284 cat conftest.$ac_ext >&5
15285 rm -rf conftest*
15286 eval "ac_cv_func_$ac_func=no"
15288 rm -f conftest*
15291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15292 echo "$ac_t""yes" 1>&6
15293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15294 cat >> confdefs.h <<EOF
15295 #define $ac_tr_func 1
15298 else
15299 echo "$ac_t""no" 1>&6
15301 done
15303 else
15305 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15306 echo "configure:15307: checking for _powf declaration" >&5
15307 if test x${glibcpp_cv_func__powf_use+set} != xset; then
15308 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15309 echo $ac_n "(cached) $ac_c" 1>&6
15310 else
15313 ac_ext=C
15314 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15315 ac_cpp='$CXXCPP $CPPFLAGS'
15316 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15317 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15318 cross_compiling=$ac_cv_prog_cxx_cross
15320 cat > conftest.$ac_ext <<EOF
15321 #line 15322 "configure"
15322 #include "confdefs.h"
15323 #include <math.h>
15324 int main() {
15325 _powf(0, 0);
15326 ; return 0; }
15328 if { (eval echo configure:15329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15329 rm -rf conftest*
15330 glibcpp_cv_func__powf_use=yes
15331 else
15332 echo "configure: failed program was:" >&5
15333 cat conftest.$ac_ext >&5
15334 rm -rf conftest*
15335 glibcpp_cv_func__powf_use=no
15337 rm -f conftest*
15338 ac_ext=c
15339 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15340 ac_cpp='$CPP $CPPFLAGS'
15341 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15342 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15343 cross_compiling=$ac_cv_prog_cc_cross
15349 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15351 if test x$glibcpp_cv_func__powf_use = x"yes"; then
15352 for ac_func in _powf
15354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15355 echo "configure:15356: checking for $ac_func" >&5
15356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15357 echo $ac_n "(cached) $ac_c" 1>&6
15358 else
15359 cat > conftest.$ac_ext <<EOF
15360 #line 15361 "configure"
15361 #include "confdefs.h"
15362 /* System header to define __stub macros and hopefully few prototypes,
15363 which can conflict with char $ac_func(); below. */
15364 #include <assert.h>
15365 /* Override any gcc2 internal prototype to avoid an error. */
15366 /* We use char because int might match the return type of a gcc2
15367 builtin and then its argument prototype would still apply. */
15368 char $ac_func();
15370 int main() {
15372 /* The GNU C library defines this for functions which it implements
15373 to always fail with ENOSYS. Some functions are actually named
15374 something starting with __ and the normal name is an alias. */
15375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15376 choke me
15377 #else
15378 $ac_func();
15379 #endif
15381 ; return 0; }
15383 if { (eval echo configure:15384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15384 rm -rf conftest*
15385 eval "ac_cv_func_$ac_func=yes"
15386 else
15387 echo "configure: failed program was:" >&5
15388 cat conftest.$ac_ext >&5
15389 rm -rf conftest*
15390 eval "ac_cv_func_$ac_func=no"
15392 rm -f conftest*
15395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15396 echo "$ac_t""yes" 1>&6
15397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15398 cat >> confdefs.h <<EOF
15399 #define $ac_tr_func 1
15402 else
15403 echo "$ac_t""no" 1>&6
15405 done
15412 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15413 echo "configure:15414: checking for sqrtf declaration" >&5
15414 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15415 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15416 echo $ac_n "(cached) $ac_c" 1>&6
15417 else
15420 ac_ext=C
15421 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15422 ac_cpp='$CXXCPP $CPPFLAGS'
15423 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15424 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15425 cross_compiling=$ac_cv_prog_cxx_cross
15427 cat > conftest.$ac_ext <<EOF
15428 #line 15429 "configure"
15429 #include "confdefs.h"
15430 #include <math.h>
15431 #ifdef HAVE_IEEEFP_H
15432 #include <ieeefp.h>
15433 #endif
15435 int main() {
15436 sqrtf(0);
15437 ; return 0; }
15439 if { (eval echo configure:15440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15440 rm -rf conftest*
15441 glibcpp_cv_func_sqrtf_use=yes
15442 else
15443 echo "configure: failed program was:" >&5
15444 cat conftest.$ac_ext >&5
15445 rm -rf conftest*
15446 glibcpp_cv_func_sqrtf_use=no
15448 rm -f conftest*
15449 ac_ext=c
15450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15451 ac_cpp='$CPP $CPPFLAGS'
15452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15454 cross_compiling=$ac_cv_prog_cc_cross
15460 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15462 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15463 for ac_func in sqrtf
15465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15466 echo "configure:15467: checking for $ac_func" >&5
15467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15468 echo $ac_n "(cached) $ac_c" 1>&6
15469 else
15470 cat > conftest.$ac_ext <<EOF
15471 #line 15472 "configure"
15472 #include "confdefs.h"
15473 /* System header to define __stub macros and hopefully few prototypes,
15474 which can conflict with char $ac_func(); below. */
15475 #include <assert.h>
15476 /* Override any gcc2 internal prototype to avoid an error. */
15477 /* We use char because int might match the return type of a gcc2
15478 builtin and then its argument prototype would still apply. */
15479 char $ac_func();
15481 int main() {
15483 /* The GNU C library defines this for functions which it implements
15484 to always fail with ENOSYS. Some functions are actually named
15485 something starting with __ and the normal name is an alias. */
15486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15487 choke me
15488 #else
15489 $ac_func();
15490 #endif
15492 ; return 0; }
15494 if { (eval echo configure:15495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15495 rm -rf conftest*
15496 eval "ac_cv_func_$ac_func=yes"
15497 else
15498 echo "configure: failed program was:" >&5
15499 cat conftest.$ac_ext >&5
15500 rm -rf conftest*
15501 eval "ac_cv_func_$ac_func=no"
15503 rm -f conftest*
15506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15507 echo "$ac_t""yes" 1>&6
15508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15509 cat >> confdefs.h <<EOF
15510 #define $ac_tr_func 1
15513 else
15514 echo "$ac_t""no" 1>&6
15516 done
15518 else
15520 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15521 echo "configure:15522: checking for _sqrtf declaration" >&5
15522 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15523 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15524 echo $ac_n "(cached) $ac_c" 1>&6
15525 else
15528 ac_ext=C
15529 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15530 ac_cpp='$CXXCPP $CPPFLAGS'
15531 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15532 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15533 cross_compiling=$ac_cv_prog_cxx_cross
15535 cat > conftest.$ac_ext <<EOF
15536 #line 15537 "configure"
15537 #include "confdefs.h"
15538 #include <math.h>
15539 #ifdef HAVE_IEEEFP_H
15540 #include <ieeefp.h>
15541 #endif
15543 int main() {
15544 _sqrtf(0);
15545 ; return 0; }
15547 if { (eval echo configure:15548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15548 rm -rf conftest*
15549 glibcpp_cv_func__sqrtf_use=yes
15550 else
15551 echo "configure: failed program was:" >&5
15552 cat conftest.$ac_ext >&5
15553 rm -rf conftest*
15554 glibcpp_cv_func__sqrtf_use=no
15556 rm -f conftest*
15557 ac_ext=c
15558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15559 ac_cpp='$CPP $CPPFLAGS'
15560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15562 cross_compiling=$ac_cv_prog_cc_cross
15568 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15570 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15571 for ac_func in _sqrtf
15573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15574 echo "configure:15575: checking for $ac_func" >&5
15575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15576 echo $ac_n "(cached) $ac_c" 1>&6
15577 else
15578 cat > conftest.$ac_ext <<EOF
15579 #line 15580 "configure"
15580 #include "confdefs.h"
15581 /* System header to define __stub macros and hopefully few prototypes,
15582 which can conflict with char $ac_func(); below. */
15583 #include <assert.h>
15584 /* Override any gcc2 internal prototype to avoid an error. */
15585 /* We use char because int might match the return type of a gcc2
15586 builtin and then its argument prototype would still apply. */
15587 char $ac_func();
15589 int main() {
15591 /* The GNU C library defines this for functions which it implements
15592 to always fail with ENOSYS. Some functions are actually named
15593 something starting with __ and the normal name is an alias. */
15594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15595 choke me
15596 #else
15597 $ac_func();
15598 #endif
15600 ; return 0; }
15602 if { (eval echo configure:15603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15603 rm -rf conftest*
15604 eval "ac_cv_func_$ac_func=yes"
15605 else
15606 echo "configure: failed program was:" >&5
15607 cat conftest.$ac_ext >&5
15608 rm -rf conftest*
15609 eval "ac_cv_func_$ac_func=no"
15611 rm -f conftest*
15614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15615 echo "$ac_t""yes" 1>&6
15616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15617 cat >> confdefs.h <<EOF
15618 #define $ac_tr_func 1
15621 else
15622 echo "$ac_t""no" 1>&6
15624 done
15631 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15632 echo "configure:15633: checking for sincosf declaration" >&5
15633 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15634 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15635 echo $ac_n "(cached) $ac_c" 1>&6
15636 else
15639 ac_ext=C
15640 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15641 ac_cpp='$CXXCPP $CPPFLAGS'
15642 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15643 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15644 cross_compiling=$ac_cv_prog_cxx_cross
15646 cat > conftest.$ac_ext <<EOF
15647 #line 15648 "configure"
15648 #include "confdefs.h"
15649 #include <math.h>
15650 int main() {
15651 sincosf(0, 0, 0);
15652 ; return 0; }
15654 if { (eval echo configure:15655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15655 rm -rf conftest*
15656 glibcpp_cv_func_sincosf_use=yes
15657 else
15658 echo "configure: failed program was:" >&5
15659 cat conftest.$ac_ext >&5
15660 rm -rf conftest*
15661 glibcpp_cv_func_sincosf_use=no
15663 rm -f conftest*
15664 ac_ext=c
15665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15666 ac_cpp='$CPP $CPPFLAGS'
15667 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15668 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15669 cross_compiling=$ac_cv_prog_cc_cross
15675 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15677 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15678 for ac_func in sincosf
15680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15681 echo "configure:15682: checking for $ac_func" >&5
15682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15683 echo $ac_n "(cached) $ac_c" 1>&6
15684 else
15685 cat > conftest.$ac_ext <<EOF
15686 #line 15687 "configure"
15687 #include "confdefs.h"
15688 /* System header to define __stub macros and hopefully few prototypes,
15689 which can conflict with char $ac_func(); below. */
15690 #include <assert.h>
15691 /* Override any gcc2 internal prototype to avoid an error. */
15692 /* We use char because int might match the return type of a gcc2
15693 builtin and then its argument prototype would still apply. */
15694 char $ac_func();
15696 int main() {
15698 /* The GNU C library defines this for functions which it implements
15699 to always fail with ENOSYS. Some functions are actually named
15700 something starting with __ and the normal name is an alias. */
15701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15702 choke me
15703 #else
15704 $ac_func();
15705 #endif
15707 ; return 0; }
15709 if { (eval echo configure:15710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15710 rm -rf conftest*
15711 eval "ac_cv_func_$ac_func=yes"
15712 else
15713 echo "configure: failed program was:" >&5
15714 cat conftest.$ac_ext >&5
15715 rm -rf conftest*
15716 eval "ac_cv_func_$ac_func=no"
15718 rm -f conftest*
15721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15722 echo "$ac_t""yes" 1>&6
15723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15724 cat >> confdefs.h <<EOF
15725 #define $ac_tr_func 1
15728 else
15729 echo "$ac_t""no" 1>&6
15731 done
15733 else
15735 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15736 echo "configure:15737: checking for _sincosf declaration" >&5
15737 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15738 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15739 echo $ac_n "(cached) $ac_c" 1>&6
15740 else
15743 ac_ext=C
15744 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15745 ac_cpp='$CXXCPP $CPPFLAGS'
15746 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15747 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15748 cross_compiling=$ac_cv_prog_cxx_cross
15750 cat > conftest.$ac_ext <<EOF
15751 #line 15752 "configure"
15752 #include "confdefs.h"
15753 #include <math.h>
15754 int main() {
15755 _sincosf(0, 0, 0);
15756 ; return 0; }
15758 if { (eval echo configure:15759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15759 rm -rf conftest*
15760 glibcpp_cv_func__sincosf_use=yes
15761 else
15762 echo "configure: failed program was:" >&5
15763 cat conftest.$ac_ext >&5
15764 rm -rf conftest*
15765 glibcpp_cv_func__sincosf_use=no
15767 rm -f conftest*
15768 ac_ext=c
15769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15770 ac_cpp='$CPP $CPPFLAGS'
15771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15773 cross_compiling=$ac_cv_prog_cc_cross
15779 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15781 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15782 for ac_func in _sincosf
15784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15785 echo "configure:15786: checking for $ac_func" >&5
15786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15787 echo $ac_n "(cached) $ac_c" 1>&6
15788 else
15789 cat > conftest.$ac_ext <<EOF
15790 #line 15791 "configure"
15791 #include "confdefs.h"
15792 /* System header to define __stub macros and hopefully few prototypes,
15793 which can conflict with char $ac_func(); below. */
15794 #include <assert.h>
15795 /* Override any gcc2 internal prototype to avoid an error. */
15796 /* We use char because int might match the return type of a gcc2
15797 builtin and then its argument prototype would still apply. */
15798 char $ac_func();
15800 int main() {
15802 /* The GNU C library defines this for functions which it implements
15803 to always fail with ENOSYS. Some functions are actually named
15804 something starting with __ and the normal name is an alias. */
15805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15806 choke me
15807 #else
15808 $ac_func();
15809 #endif
15811 ; return 0; }
15813 if { (eval echo configure:15814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15814 rm -rf conftest*
15815 eval "ac_cv_func_$ac_func=yes"
15816 else
15817 echo "configure: failed program was:" >&5
15818 cat conftest.$ac_ext >&5
15819 rm -rf conftest*
15820 eval "ac_cv_func_$ac_func=no"
15822 rm -f conftest*
15825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15826 echo "$ac_t""yes" 1>&6
15827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15828 cat >> confdefs.h <<EOF
15829 #define $ac_tr_func 1
15832 else
15833 echo "$ac_t""no" 1>&6
15835 done
15842 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15843 echo "configure:15844: checking for finitef declaration" >&5
15844 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15845 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15846 echo $ac_n "(cached) $ac_c" 1>&6
15847 else
15850 ac_ext=C
15851 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15852 ac_cpp='$CXXCPP $CPPFLAGS'
15853 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15854 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15855 cross_compiling=$ac_cv_prog_cxx_cross
15857 cat > conftest.$ac_ext <<EOF
15858 #line 15859 "configure"
15859 #include "confdefs.h"
15860 #include <math.h>
15861 #ifdef HAVE_IEEEFP_H
15862 #include <ieeefp.h>
15863 #endif
15865 int main() {
15866 finitef(0);
15867 ; return 0; }
15869 if { (eval echo configure:15870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15870 rm -rf conftest*
15871 glibcpp_cv_func_finitef_use=yes
15872 else
15873 echo "configure: failed program was:" >&5
15874 cat conftest.$ac_ext >&5
15875 rm -rf conftest*
15876 glibcpp_cv_func_finitef_use=no
15878 rm -f conftest*
15879 ac_ext=c
15880 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15881 ac_cpp='$CPP $CPPFLAGS'
15882 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15883 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15884 cross_compiling=$ac_cv_prog_cc_cross
15890 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15892 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15893 for ac_func in finitef
15895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15896 echo "configure:15897: checking for $ac_func" >&5
15897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15898 echo $ac_n "(cached) $ac_c" 1>&6
15899 else
15900 cat > conftest.$ac_ext <<EOF
15901 #line 15902 "configure"
15902 #include "confdefs.h"
15903 /* System header to define __stub macros and hopefully few prototypes,
15904 which can conflict with char $ac_func(); below. */
15905 #include <assert.h>
15906 /* Override any gcc2 internal prototype to avoid an error. */
15907 /* We use char because int might match the return type of a gcc2
15908 builtin and then its argument prototype would still apply. */
15909 char $ac_func();
15911 int main() {
15913 /* The GNU C library defines this for functions which it implements
15914 to always fail with ENOSYS. Some functions are actually named
15915 something starting with __ and the normal name is an alias. */
15916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15917 choke me
15918 #else
15919 $ac_func();
15920 #endif
15922 ; return 0; }
15924 if { (eval echo configure:15925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15925 rm -rf conftest*
15926 eval "ac_cv_func_$ac_func=yes"
15927 else
15928 echo "configure: failed program was:" >&5
15929 cat conftest.$ac_ext >&5
15930 rm -rf conftest*
15931 eval "ac_cv_func_$ac_func=no"
15933 rm -f conftest*
15936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15937 echo "$ac_t""yes" 1>&6
15938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15939 cat >> confdefs.h <<EOF
15940 #define $ac_tr_func 1
15943 else
15944 echo "$ac_t""no" 1>&6
15946 done
15948 else
15950 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15951 echo "configure:15952: checking for _finitef declaration" >&5
15952 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
15953 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
15954 echo $ac_n "(cached) $ac_c" 1>&6
15955 else
15958 ac_ext=C
15959 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15960 ac_cpp='$CXXCPP $CPPFLAGS'
15961 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15962 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15963 cross_compiling=$ac_cv_prog_cxx_cross
15965 cat > conftest.$ac_ext <<EOF
15966 #line 15967 "configure"
15967 #include "confdefs.h"
15968 #include <math.h>
15969 #ifdef HAVE_IEEEFP_H
15970 #include <ieeefp.h>
15971 #endif
15973 int main() {
15974 _finitef(0);
15975 ; return 0; }
15977 if { (eval echo configure:15978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15978 rm -rf conftest*
15979 glibcpp_cv_func__finitef_use=yes
15980 else
15981 echo "configure: failed program was:" >&5
15982 cat conftest.$ac_ext >&5
15983 rm -rf conftest*
15984 glibcpp_cv_func__finitef_use=no
15986 rm -f conftest*
15987 ac_ext=c
15988 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15989 ac_cpp='$CPP $CPPFLAGS'
15990 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15991 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15992 cross_compiling=$ac_cv_prog_cc_cross
15998 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16000 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16001 for ac_func in _finitef
16003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16004 echo "configure:16005: checking for $ac_func" >&5
16005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16006 echo $ac_n "(cached) $ac_c" 1>&6
16007 else
16008 cat > conftest.$ac_ext <<EOF
16009 #line 16010 "configure"
16010 #include "confdefs.h"
16011 /* System header to define __stub macros and hopefully few prototypes,
16012 which can conflict with char $ac_func(); below. */
16013 #include <assert.h>
16014 /* Override any gcc2 internal prototype to avoid an error. */
16015 /* We use char because int might match the return type of a gcc2
16016 builtin and then its argument prototype would still apply. */
16017 char $ac_func();
16019 int main() {
16021 /* The GNU C library defines this for functions which it implements
16022 to always fail with ENOSYS. Some functions are actually named
16023 something starting with __ and the normal name is an alias. */
16024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16025 choke me
16026 #else
16027 $ac_func();
16028 #endif
16030 ; return 0; }
16032 if { (eval echo configure:16033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16033 rm -rf conftest*
16034 eval "ac_cv_func_$ac_func=yes"
16035 else
16036 echo "configure: failed program was:" >&5
16037 cat conftest.$ac_ext >&5
16038 rm -rf conftest*
16039 eval "ac_cv_func_$ac_func=no"
16041 rm -f conftest*
16044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16045 echo "$ac_t""yes" 1>&6
16046 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16047 cat >> confdefs.h <<EOF
16048 #define $ac_tr_func 1
16051 else
16052 echo "$ac_t""no" 1>&6
16054 done
16061 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16062 echo "configure:16063: checking for long double trig functions" >&5
16063 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16064 echo $ac_n "(cached) $ac_c" 1>&6
16065 else
16068 ac_ext=C
16069 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16070 ac_cpp='$CXXCPP $CPPFLAGS'
16071 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16072 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16073 cross_compiling=$ac_cv_prog_cxx_cross
16075 cat > conftest.$ac_ext <<EOF
16076 #line 16077 "configure"
16077 #include "confdefs.h"
16078 #include <math.h>
16079 int main() {
16080 `for x in acosl asinl atanl \
16081 cosl sinl tanl \
16082 coshl sinhl tanhl; do echo "$x (0);"; done`
16083 ; return 0; }
16085 if { (eval echo configure:16086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16086 rm -rf conftest*
16087 glibcpp_cv_func_long_double_trig_use=yes
16088 else
16089 echo "configure: failed program was:" >&5
16090 cat conftest.$ac_ext >&5
16091 rm -rf conftest*
16092 glibcpp_cv_func_long_double_trig_use=no
16094 rm -f conftest*
16095 ac_ext=c
16096 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16097 ac_cpp='$CPP $CPPFLAGS'
16098 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16099 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16100 cross_compiling=$ac_cv_prog_cc_cross
16104 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16105 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16106 for ac_func in acosl asinl atanl \
16107 cosl sinl tanl \
16108 coshl sinhl tanhl
16110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16111 echo "configure:16112: checking for $ac_func" >&5
16112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16113 echo $ac_n "(cached) $ac_c" 1>&6
16114 else
16115 cat > conftest.$ac_ext <<EOF
16116 #line 16117 "configure"
16117 #include "confdefs.h"
16118 /* System header to define __stub macros and hopefully few prototypes,
16119 which can conflict with char $ac_func(); below. */
16120 #include <assert.h>
16121 /* Override any gcc2 internal prototype to avoid an error. */
16122 /* We use char because int might match the return type of a gcc2
16123 builtin and then its argument prototype would still apply. */
16124 char $ac_func();
16126 int main() {
16128 /* The GNU C library defines this for functions which it implements
16129 to always fail with ENOSYS. Some functions are actually named
16130 something starting with __ and the normal name is an alias. */
16131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16132 choke me
16133 #else
16134 $ac_func();
16135 #endif
16137 ; return 0; }
16139 if { (eval echo configure:16140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16140 rm -rf conftest*
16141 eval "ac_cv_func_$ac_func=yes"
16142 else
16143 echo "configure: failed program was:" >&5
16144 cat conftest.$ac_ext >&5
16145 rm -rf conftest*
16146 eval "ac_cv_func_$ac_func=no"
16148 rm -f conftest*
16151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16152 echo "$ac_t""yes" 1>&6
16153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16154 cat >> confdefs.h <<EOF
16155 #define $ac_tr_func 1
16158 else
16159 echo "$ac_t""no" 1>&6
16161 done
16166 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16167 echo "configure:16168: checking for long double round functions" >&5
16168 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16169 echo $ac_n "(cached) $ac_c" 1>&6
16170 else
16173 ac_ext=C
16174 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16175 ac_cpp='$CXXCPP $CPPFLAGS'
16176 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16177 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16178 cross_compiling=$ac_cv_prog_cxx_cross
16180 cat > conftest.$ac_ext <<EOF
16181 #line 16182 "configure"
16182 #include "confdefs.h"
16183 #include <math.h>
16184 int main() {
16185 `for x in ceill floorl; do echo "$x (0);"; done`
16186 ; return 0; }
16188 if { (eval echo configure:16189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16189 rm -rf conftest*
16190 glibcpp_cv_func_long_double_round_use=yes
16191 else
16192 echo "configure: failed program was:" >&5
16193 cat conftest.$ac_ext >&5
16194 rm -rf conftest*
16195 glibcpp_cv_func_long_double_round_use=no
16197 rm -f conftest*
16198 ac_ext=c
16199 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16200 ac_cpp='$CPP $CPPFLAGS'
16201 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16202 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16203 cross_compiling=$ac_cv_prog_cc_cross
16207 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16208 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16209 for ac_func in ceill floorl
16211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16212 echo "configure:16213: checking for $ac_func" >&5
16213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16214 echo $ac_n "(cached) $ac_c" 1>&6
16215 else
16216 cat > conftest.$ac_ext <<EOF
16217 #line 16218 "configure"
16218 #include "confdefs.h"
16219 /* System header to define __stub macros and hopefully few prototypes,
16220 which can conflict with char $ac_func(); below. */
16221 #include <assert.h>
16222 /* Override any gcc2 internal prototype to avoid an error. */
16223 /* We use char because int might match the return type of a gcc2
16224 builtin and then its argument prototype would still apply. */
16225 char $ac_func();
16227 int main() {
16229 /* The GNU C library defines this for functions which it implements
16230 to always fail with ENOSYS. Some functions are actually named
16231 something starting with __ and the normal name is an alias. */
16232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16233 choke me
16234 #else
16235 $ac_func();
16236 #endif
16238 ; return 0; }
16240 if { (eval echo configure:16241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16241 rm -rf conftest*
16242 eval "ac_cv_func_$ac_func=yes"
16243 else
16244 echo "configure: failed program was:" >&5
16245 cat conftest.$ac_ext >&5
16246 rm -rf conftest*
16247 eval "ac_cv_func_$ac_func=no"
16249 rm -f conftest*
16252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16253 echo "$ac_t""yes" 1>&6
16254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16255 cat >> confdefs.h <<EOF
16256 #define $ac_tr_func 1
16259 else
16260 echo "$ac_t""no" 1>&6
16262 done
16268 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16269 echo "configure:16270: checking for isnanl declaration" >&5
16270 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16271 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16272 echo $ac_n "(cached) $ac_c" 1>&6
16273 else
16276 ac_ext=C
16277 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16278 ac_cpp='$CXXCPP $CPPFLAGS'
16279 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16280 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16281 cross_compiling=$ac_cv_prog_cxx_cross
16283 cat > conftest.$ac_ext <<EOF
16284 #line 16285 "configure"
16285 #include "confdefs.h"
16286 #include <math.h>
16287 #ifdef HAVE_IEEEFP_H
16288 #include <ieeefp.h>
16289 #endif
16291 int main() {
16292 isnanl(0);
16293 ; return 0; }
16295 if { (eval echo configure:16296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16296 rm -rf conftest*
16297 glibcpp_cv_func_isnanl_use=yes
16298 else
16299 echo "configure: failed program was:" >&5
16300 cat conftest.$ac_ext >&5
16301 rm -rf conftest*
16302 glibcpp_cv_func_isnanl_use=no
16304 rm -f conftest*
16305 ac_ext=c
16306 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16307 ac_cpp='$CPP $CPPFLAGS'
16308 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16309 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16310 cross_compiling=$ac_cv_prog_cc_cross
16316 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16318 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16319 for ac_func in isnanl
16321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16322 echo "configure:16323: checking for $ac_func" >&5
16323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16324 echo $ac_n "(cached) $ac_c" 1>&6
16325 else
16326 cat > conftest.$ac_ext <<EOF
16327 #line 16328 "configure"
16328 #include "confdefs.h"
16329 /* System header to define __stub macros and hopefully few prototypes,
16330 which can conflict with char $ac_func(); below. */
16331 #include <assert.h>
16332 /* Override any gcc2 internal prototype to avoid an error. */
16333 /* We use char because int might match the return type of a gcc2
16334 builtin and then its argument prototype would still apply. */
16335 char $ac_func();
16337 int main() {
16339 /* The GNU C library defines this for functions which it implements
16340 to always fail with ENOSYS. Some functions are actually named
16341 something starting with __ and the normal name is an alias. */
16342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16343 choke me
16344 #else
16345 $ac_func();
16346 #endif
16348 ; return 0; }
16350 if { (eval echo configure:16351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16351 rm -rf conftest*
16352 eval "ac_cv_func_$ac_func=yes"
16353 else
16354 echo "configure: failed program was:" >&5
16355 cat conftest.$ac_ext >&5
16356 rm -rf conftest*
16357 eval "ac_cv_func_$ac_func=no"
16359 rm -f conftest*
16362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16363 echo "$ac_t""yes" 1>&6
16364 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16365 cat >> confdefs.h <<EOF
16366 #define $ac_tr_func 1
16369 else
16370 echo "$ac_t""no" 1>&6
16372 done
16374 else
16376 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16377 echo "configure:16378: checking for _isnanl declaration" >&5
16378 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16379 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16380 echo $ac_n "(cached) $ac_c" 1>&6
16381 else
16384 ac_ext=C
16385 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16386 ac_cpp='$CXXCPP $CPPFLAGS'
16387 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16388 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16389 cross_compiling=$ac_cv_prog_cxx_cross
16391 cat > conftest.$ac_ext <<EOF
16392 #line 16393 "configure"
16393 #include "confdefs.h"
16394 #include <math.h>
16395 #ifdef HAVE_IEEEFP_H
16396 #include <ieeefp.h>
16397 #endif
16399 int main() {
16400 _isnanl(0);
16401 ; return 0; }
16403 if { (eval echo configure:16404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16404 rm -rf conftest*
16405 glibcpp_cv_func__isnanl_use=yes
16406 else
16407 echo "configure: failed program was:" >&5
16408 cat conftest.$ac_ext >&5
16409 rm -rf conftest*
16410 glibcpp_cv_func__isnanl_use=no
16412 rm -f conftest*
16413 ac_ext=c
16414 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16415 ac_cpp='$CPP $CPPFLAGS'
16416 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16417 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16418 cross_compiling=$ac_cv_prog_cc_cross
16424 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16426 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16427 for ac_func in _isnanl
16429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16430 echo "configure:16431: checking for $ac_func" >&5
16431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16432 echo $ac_n "(cached) $ac_c" 1>&6
16433 else
16434 cat > conftest.$ac_ext <<EOF
16435 #line 16436 "configure"
16436 #include "confdefs.h"
16437 /* System header to define __stub macros and hopefully few prototypes,
16438 which can conflict with char $ac_func(); below. */
16439 #include <assert.h>
16440 /* Override any gcc2 internal prototype to avoid an error. */
16441 /* We use char because int might match the return type of a gcc2
16442 builtin and then its argument prototype would still apply. */
16443 char $ac_func();
16445 int main() {
16447 /* The GNU C library defines this for functions which it implements
16448 to always fail with ENOSYS. Some functions are actually named
16449 something starting with __ and the normal name is an alias. */
16450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16451 choke me
16452 #else
16453 $ac_func();
16454 #endif
16456 ; return 0; }
16458 if { (eval echo configure:16459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16459 rm -rf conftest*
16460 eval "ac_cv_func_$ac_func=yes"
16461 else
16462 echo "configure: failed program was:" >&5
16463 cat conftest.$ac_ext >&5
16464 rm -rf conftest*
16465 eval "ac_cv_func_$ac_func=no"
16467 rm -f conftest*
16470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16471 echo "$ac_t""yes" 1>&6
16472 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16473 cat >> confdefs.h <<EOF
16474 #define $ac_tr_func 1
16477 else
16478 echo "$ac_t""no" 1>&6
16480 done
16487 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16488 echo "configure:16489: checking for isinfl declaration" >&5
16489 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16490 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16491 echo $ac_n "(cached) $ac_c" 1>&6
16492 else
16495 ac_ext=C
16496 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16497 ac_cpp='$CXXCPP $CPPFLAGS'
16498 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16499 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16500 cross_compiling=$ac_cv_prog_cxx_cross
16502 cat > conftest.$ac_ext <<EOF
16503 #line 16504 "configure"
16504 #include "confdefs.h"
16505 #include <math.h>
16506 #ifdef HAVE_IEEEFP_H
16507 #include <ieeefp.h>
16508 #endif
16510 int main() {
16511 isinfl(0);
16512 ; return 0; }
16514 if { (eval echo configure:16515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16515 rm -rf conftest*
16516 glibcpp_cv_func_isinfl_use=yes
16517 else
16518 echo "configure: failed program was:" >&5
16519 cat conftest.$ac_ext >&5
16520 rm -rf conftest*
16521 glibcpp_cv_func_isinfl_use=no
16523 rm -f conftest*
16524 ac_ext=c
16525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16526 ac_cpp='$CPP $CPPFLAGS'
16527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16529 cross_compiling=$ac_cv_prog_cc_cross
16535 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16537 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16538 for ac_func in isinfl
16540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16541 echo "configure:16542: checking for $ac_func" >&5
16542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16543 echo $ac_n "(cached) $ac_c" 1>&6
16544 else
16545 cat > conftest.$ac_ext <<EOF
16546 #line 16547 "configure"
16547 #include "confdefs.h"
16548 /* System header to define __stub macros and hopefully few prototypes,
16549 which can conflict with char $ac_func(); below. */
16550 #include <assert.h>
16551 /* Override any gcc2 internal prototype to avoid an error. */
16552 /* We use char because int might match the return type of a gcc2
16553 builtin and then its argument prototype would still apply. */
16554 char $ac_func();
16556 int main() {
16558 /* The GNU C library defines this for functions which it implements
16559 to always fail with ENOSYS. Some functions are actually named
16560 something starting with __ and the normal name is an alias. */
16561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16562 choke me
16563 #else
16564 $ac_func();
16565 #endif
16567 ; return 0; }
16569 if { (eval echo configure:16570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16570 rm -rf conftest*
16571 eval "ac_cv_func_$ac_func=yes"
16572 else
16573 echo "configure: failed program was:" >&5
16574 cat conftest.$ac_ext >&5
16575 rm -rf conftest*
16576 eval "ac_cv_func_$ac_func=no"
16578 rm -f conftest*
16581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16582 echo "$ac_t""yes" 1>&6
16583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16584 cat >> confdefs.h <<EOF
16585 #define $ac_tr_func 1
16588 else
16589 echo "$ac_t""no" 1>&6
16591 done
16593 else
16595 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16596 echo "configure:16597: checking for _isinfl declaration" >&5
16597 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16598 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16599 echo $ac_n "(cached) $ac_c" 1>&6
16600 else
16603 ac_ext=C
16604 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16605 ac_cpp='$CXXCPP $CPPFLAGS'
16606 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16607 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16608 cross_compiling=$ac_cv_prog_cxx_cross
16610 cat > conftest.$ac_ext <<EOF
16611 #line 16612 "configure"
16612 #include "confdefs.h"
16613 #include <math.h>
16614 #ifdef HAVE_IEEEFP_H
16615 #include <ieeefp.h>
16616 #endif
16618 int main() {
16619 _isinfl(0);
16620 ; return 0; }
16622 if { (eval echo configure:16623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16623 rm -rf conftest*
16624 glibcpp_cv_func__isinfl_use=yes
16625 else
16626 echo "configure: failed program was:" >&5
16627 cat conftest.$ac_ext >&5
16628 rm -rf conftest*
16629 glibcpp_cv_func__isinfl_use=no
16631 rm -f conftest*
16632 ac_ext=c
16633 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16634 ac_cpp='$CPP $CPPFLAGS'
16635 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16636 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16637 cross_compiling=$ac_cv_prog_cc_cross
16643 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16645 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16646 for ac_func in _isinfl
16648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16649 echo "configure:16650: checking for $ac_func" >&5
16650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16651 echo $ac_n "(cached) $ac_c" 1>&6
16652 else
16653 cat > conftest.$ac_ext <<EOF
16654 #line 16655 "configure"
16655 #include "confdefs.h"
16656 /* System header to define __stub macros and hopefully few prototypes,
16657 which can conflict with char $ac_func(); below. */
16658 #include <assert.h>
16659 /* Override any gcc2 internal prototype to avoid an error. */
16660 /* We use char because int might match the return type of a gcc2
16661 builtin and then its argument prototype would still apply. */
16662 char $ac_func();
16664 int main() {
16666 /* The GNU C library defines this for functions which it implements
16667 to always fail with ENOSYS. Some functions are actually named
16668 something starting with __ and the normal name is an alias. */
16669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16670 choke me
16671 #else
16672 $ac_func();
16673 #endif
16675 ; return 0; }
16677 if { (eval echo configure:16678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16678 rm -rf conftest*
16679 eval "ac_cv_func_$ac_func=yes"
16680 else
16681 echo "configure: failed program was:" >&5
16682 cat conftest.$ac_ext >&5
16683 rm -rf conftest*
16684 eval "ac_cv_func_$ac_func=no"
16686 rm -f conftest*
16689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16690 echo "$ac_t""yes" 1>&6
16691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16692 cat >> confdefs.h <<EOF
16693 #define $ac_tr_func 1
16696 else
16697 echo "$ac_t""no" 1>&6
16699 done
16706 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16707 echo "configure:16708: checking for copysignl declaration" >&5
16708 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16709 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16710 echo $ac_n "(cached) $ac_c" 1>&6
16711 else
16714 ac_ext=C
16715 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16716 ac_cpp='$CXXCPP $CPPFLAGS'
16717 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16718 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16719 cross_compiling=$ac_cv_prog_cxx_cross
16721 cat > conftest.$ac_ext <<EOF
16722 #line 16723 "configure"
16723 #include "confdefs.h"
16724 #include <math.h>
16725 int main() {
16726 copysignl(0, 0);
16727 ; return 0; }
16729 if { (eval echo configure:16730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16730 rm -rf conftest*
16731 glibcpp_cv_func_copysignl_use=yes
16732 else
16733 echo "configure: failed program was:" >&5
16734 cat conftest.$ac_ext >&5
16735 rm -rf conftest*
16736 glibcpp_cv_func_copysignl_use=no
16738 rm -f conftest*
16739 ac_ext=c
16740 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16741 ac_cpp='$CPP $CPPFLAGS'
16742 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16743 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16744 cross_compiling=$ac_cv_prog_cc_cross
16750 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16752 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16753 for ac_func in copysignl
16755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16756 echo "configure:16757: checking for $ac_func" >&5
16757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16758 echo $ac_n "(cached) $ac_c" 1>&6
16759 else
16760 cat > conftest.$ac_ext <<EOF
16761 #line 16762 "configure"
16762 #include "confdefs.h"
16763 /* System header to define __stub macros and hopefully few prototypes,
16764 which can conflict with char $ac_func(); below. */
16765 #include <assert.h>
16766 /* Override any gcc2 internal prototype to avoid an error. */
16767 /* We use char because int might match the return type of a gcc2
16768 builtin and then its argument prototype would still apply. */
16769 char $ac_func();
16771 int main() {
16773 /* The GNU C library defines this for functions which it implements
16774 to always fail with ENOSYS. Some functions are actually named
16775 something starting with __ and the normal name is an alias. */
16776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16777 choke me
16778 #else
16779 $ac_func();
16780 #endif
16782 ; return 0; }
16784 if { (eval echo configure:16785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16785 rm -rf conftest*
16786 eval "ac_cv_func_$ac_func=yes"
16787 else
16788 echo "configure: failed program was:" >&5
16789 cat conftest.$ac_ext >&5
16790 rm -rf conftest*
16791 eval "ac_cv_func_$ac_func=no"
16793 rm -f conftest*
16796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16797 echo "$ac_t""yes" 1>&6
16798 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16799 cat >> confdefs.h <<EOF
16800 #define $ac_tr_func 1
16803 else
16804 echo "$ac_t""no" 1>&6
16806 done
16808 else
16810 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16811 echo "configure:16812: checking for _copysignl declaration" >&5
16812 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16813 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16814 echo $ac_n "(cached) $ac_c" 1>&6
16815 else
16818 ac_ext=C
16819 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16820 ac_cpp='$CXXCPP $CPPFLAGS'
16821 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16822 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16823 cross_compiling=$ac_cv_prog_cxx_cross
16825 cat > conftest.$ac_ext <<EOF
16826 #line 16827 "configure"
16827 #include "confdefs.h"
16828 #include <math.h>
16829 int main() {
16830 _copysignl(0, 0);
16831 ; return 0; }
16833 if { (eval echo configure:16834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16834 rm -rf conftest*
16835 glibcpp_cv_func__copysignl_use=yes
16836 else
16837 echo "configure: failed program was:" >&5
16838 cat conftest.$ac_ext >&5
16839 rm -rf conftest*
16840 glibcpp_cv_func__copysignl_use=no
16842 rm -f conftest*
16843 ac_ext=c
16844 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16845 ac_cpp='$CPP $CPPFLAGS'
16846 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16847 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16848 cross_compiling=$ac_cv_prog_cc_cross
16854 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16856 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16857 for ac_func in _copysignl
16859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16860 echo "configure:16861: checking for $ac_func" >&5
16861 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16862 echo $ac_n "(cached) $ac_c" 1>&6
16863 else
16864 cat > conftest.$ac_ext <<EOF
16865 #line 16866 "configure"
16866 #include "confdefs.h"
16867 /* System header to define __stub macros and hopefully few prototypes,
16868 which can conflict with char $ac_func(); below. */
16869 #include <assert.h>
16870 /* Override any gcc2 internal prototype to avoid an error. */
16871 /* We use char because int might match the return type of a gcc2
16872 builtin and then its argument prototype would still apply. */
16873 char $ac_func();
16875 int main() {
16877 /* The GNU C library defines this for functions which it implements
16878 to always fail with ENOSYS. Some functions are actually named
16879 something starting with __ and the normal name is an alias. */
16880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16881 choke me
16882 #else
16883 $ac_func();
16884 #endif
16886 ; return 0; }
16888 if { (eval echo configure:16889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16889 rm -rf conftest*
16890 eval "ac_cv_func_$ac_func=yes"
16891 else
16892 echo "configure: failed program was:" >&5
16893 cat conftest.$ac_ext >&5
16894 rm -rf conftest*
16895 eval "ac_cv_func_$ac_func=no"
16897 rm -f conftest*
16900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16901 echo "$ac_t""yes" 1>&6
16902 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16903 cat >> confdefs.h <<EOF
16904 #define $ac_tr_func 1
16907 else
16908 echo "$ac_t""no" 1>&6
16910 done
16917 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16918 echo "configure:16919: checking for atan2l declaration" >&5
16919 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16920 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16921 echo $ac_n "(cached) $ac_c" 1>&6
16922 else
16925 ac_ext=C
16926 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16927 ac_cpp='$CXXCPP $CPPFLAGS'
16928 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16929 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16930 cross_compiling=$ac_cv_prog_cxx_cross
16932 cat > conftest.$ac_ext <<EOF
16933 #line 16934 "configure"
16934 #include "confdefs.h"
16935 #include <math.h>
16936 int main() {
16937 atan2l(0, 0);
16938 ; return 0; }
16940 if { (eval echo configure:16941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16941 rm -rf conftest*
16942 glibcpp_cv_func_atan2l_use=yes
16943 else
16944 echo "configure: failed program was:" >&5
16945 cat conftest.$ac_ext >&5
16946 rm -rf conftest*
16947 glibcpp_cv_func_atan2l_use=no
16949 rm -f conftest*
16950 ac_ext=c
16951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16952 ac_cpp='$CPP $CPPFLAGS'
16953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16955 cross_compiling=$ac_cv_prog_cc_cross
16961 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
16963 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
16964 for ac_func in atan2l
16966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16967 echo "configure:16968: checking for $ac_func" >&5
16968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16969 echo $ac_n "(cached) $ac_c" 1>&6
16970 else
16971 cat > conftest.$ac_ext <<EOF
16972 #line 16973 "configure"
16973 #include "confdefs.h"
16974 /* System header to define __stub macros and hopefully few prototypes,
16975 which can conflict with char $ac_func(); below. */
16976 #include <assert.h>
16977 /* Override any gcc2 internal prototype to avoid an error. */
16978 /* We use char because int might match the return type of a gcc2
16979 builtin and then its argument prototype would still apply. */
16980 char $ac_func();
16982 int main() {
16984 /* The GNU C library defines this for functions which it implements
16985 to always fail with ENOSYS. Some functions are actually named
16986 something starting with __ and the normal name is an alias. */
16987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16988 choke me
16989 #else
16990 $ac_func();
16991 #endif
16993 ; return 0; }
16995 if { (eval echo configure:16996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16996 rm -rf conftest*
16997 eval "ac_cv_func_$ac_func=yes"
16998 else
16999 echo "configure: failed program was:" >&5
17000 cat conftest.$ac_ext >&5
17001 rm -rf conftest*
17002 eval "ac_cv_func_$ac_func=no"
17004 rm -f conftest*
17007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17008 echo "$ac_t""yes" 1>&6
17009 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17010 cat >> confdefs.h <<EOF
17011 #define $ac_tr_func 1
17014 else
17015 echo "$ac_t""no" 1>&6
17017 done
17019 else
17021 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17022 echo "configure:17023: checking for _atan2l declaration" >&5
17023 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17024 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17025 echo $ac_n "(cached) $ac_c" 1>&6
17026 else
17029 ac_ext=C
17030 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17031 ac_cpp='$CXXCPP $CPPFLAGS'
17032 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17033 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17034 cross_compiling=$ac_cv_prog_cxx_cross
17036 cat > conftest.$ac_ext <<EOF
17037 #line 17038 "configure"
17038 #include "confdefs.h"
17039 #include <math.h>
17040 int main() {
17041 _atan2l(0, 0);
17042 ; return 0; }
17044 if { (eval echo configure:17045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17045 rm -rf conftest*
17046 glibcpp_cv_func__atan2l_use=yes
17047 else
17048 echo "configure: failed program was:" >&5
17049 cat conftest.$ac_ext >&5
17050 rm -rf conftest*
17051 glibcpp_cv_func__atan2l_use=no
17053 rm -f conftest*
17054 ac_ext=c
17055 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17056 ac_cpp='$CPP $CPPFLAGS'
17057 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17058 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17059 cross_compiling=$ac_cv_prog_cc_cross
17065 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17067 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17068 for ac_func in _atan2l
17070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17071 echo "configure:17072: checking for $ac_func" >&5
17072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17073 echo $ac_n "(cached) $ac_c" 1>&6
17074 else
17075 cat > conftest.$ac_ext <<EOF
17076 #line 17077 "configure"
17077 #include "confdefs.h"
17078 /* System header to define __stub macros and hopefully few prototypes,
17079 which can conflict with char $ac_func(); below. */
17080 #include <assert.h>
17081 /* Override any gcc2 internal prototype to avoid an error. */
17082 /* We use char because int might match the return type of a gcc2
17083 builtin and then its argument prototype would still apply. */
17084 char $ac_func();
17086 int main() {
17088 /* The GNU C library defines this for functions which it implements
17089 to always fail with ENOSYS. Some functions are actually named
17090 something starting with __ and the normal name is an alias. */
17091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17092 choke me
17093 #else
17094 $ac_func();
17095 #endif
17097 ; return 0; }
17099 if { (eval echo configure:17100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17100 rm -rf conftest*
17101 eval "ac_cv_func_$ac_func=yes"
17102 else
17103 echo "configure: failed program was:" >&5
17104 cat conftest.$ac_ext >&5
17105 rm -rf conftest*
17106 eval "ac_cv_func_$ac_func=no"
17108 rm -f conftest*
17111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17112 echo "$ac_t""yes" 1>&6
17113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17114 cat >> confdefs.h <<EOF
17115 #define $ac_tr_func 1
17118 else
17119 echo "$ac_t""no" 1>&6
17121 done
17128 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17129 echo "configure:17130: checking for expl declaration" >&5
17130 if test x${glibcpp_cv_func_expl_use+set} != xset; then
17131 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17132 echo $ac_n "(cached) $ac_c" 1>&6
17133 else
17136 ac_ext=C
17137 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17138 ac_cpp='$CXXCPP $CPPFLAGS'
17139 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17140 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17141 cross_compiling=$ac_cv_prog_cxx_cross
17143 cat > conftest.$ac_ext <<EOF
17144 #line 17145 "configure"
17145 #include "confdefs.h"
17146 #include <math.h>
17147 #ifdef HAVE_IEEEFP_H
17148 #include <ieeefp.h>
17149 #endif
17151 int main() {
17152 expl(0);
17153 ; return 0; }
17155 if { (eval echo configure:17156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17156 rm -rf conftest*
17157 glibcpp_cv_func_expl_use=yes
17158 else
17159 echo "configure: failed program was:" >&5
17160 cat conftest.$ac_ext >&5
17161 rm -rf conftest*
17162 glibcpp_cv_func_expl_use=no
17164 rm -f conftest*
17165 ac_ext=c
17166 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17167 ac_cpp='$CPP $CPPFLAGS'
17168 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17169 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17170 cross_compiling=$ac_cv_prog_cc_cross
17176 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17178 if test x$glibcpp_cv_func_expl_use = x"yes"; then
17179 for ac_func in expl
17181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17182 echo "configure:17183: checking for $ac_func" >&5
17183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17184 echo $ac_n "(cached) $ac_c" 1>&6
17185 else
17186 cat > conftest.$ac_ext <<EOF
17187 #line 17188 "configure"
17188 #include "confdefs.h"
17189 /* System header to define __stub macros and hopefully few prototypes,
17190 which can conflict with char $ac_func(); below. */
17191 #include <assert.h>
17192 /* Override any gcc2 internal prototype to avoid an error. */
17193 /* We use char because int might match the return type of a gcc2
17194 builtin and then its argument prototype would still apply. */
17195 char $ac_func();
17197 int main() {
17199 /* The GNU C library defines this for functions which it implements
17200 to always fail with ENOSYS. Some functions are actually named
17201 something starting with __ and the normal name is an alias. */
17202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17203 choke me
17204 #else
17205 $ac_func();
17206 #endif
17208 ; return 0; }
17210 if { (eval echo configure:17211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17211 rm -rf conftest*
17212 eval "ac_cv_func_$ac_func=yes"
17213 else
17214 echo "configure: failed program was:" >&5
17215 cat conftest.$ac_ext >&5
17216 rm -rf conftest*
17217 eval "ac_cv_func_$ac_func=no"
17219 rm -f conftest*
17222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17223 echo "$ac_t""yes" 1>&6
17224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17225 cat >> confdefs.h <<EOF
17226 #define $ac_tr_func 1
17229 else
17230 echo "$ac_t""no" 1>&6
17232 done
17234 else
17236 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17237 echo "configure:17238: checking for _expl declaration" >&5
17238 if test x${glibcpp_cv_func__expl_use+set} != xset; then
17239 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17240 echo $ac_n "(cached) $ac_c" 1>&6
17241 else
17244 ac_ext=C
17245 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17246 ac_cpp='$CXXCPP $CPPFLAGS'
17247 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17248 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17249 cross_compiling=$ac_cv_prog_cxx_cross
17251 cat > conftest.$ac_ext <<EOF
17252 #line 17253 "configure"
17253 #include "confdefs.h"
17254 #include <math.h>
17255 #ifdef HAVE_IEEEFP_H
17256 #include <ieeefp.h>
17257 #endif
17259 int main() {
17260 _expl(0);
17261 ; return 0; }
17263 if { (eval echo configure:17264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17264 rm -rf conftest*
17265 glibcpp_cv_func__expl_use=yes
17266 else
17267 echo "configure: failed program was:" >&5
17268 cat conftest.$ac_ext >&5
17269 rm -rf conftest*
17270 glibcpp_cv_func__expl_use=no
17272 rm -f conftest*
17273 ac_ext=c
17274 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17275 ac_cpp='$CPP $CPPFLAGS'
17276 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17277 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17278 cross_compiling=$ac_cv_prog_cc_cross
17284 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17286 if test x$glibcpp_cv_func__expl_use = x"yes"; then
17287 for ac_func in _expl
17289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17290 echo "configure:17291: checking for $ac_func" >&5
17291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17292 echo $ac_n "(cached) $ac_c" 1>&6
17293 else
17294 cat > conftest.$ac_ext <<EOF
17295 #line 17296 "configure"
17296 #include "confdefs.h"
17297 /* System header to define __stub macros and hopefully few prototypes,
17298 which can conflict with char $ac_func(); below. */
17299 #include <assert.h>
17300 /* Override any gcc2 internal prototype to avoid an error. */
17301 /* We use char because int might match the return type of a gcc2
17302 builtin and then its argument prototype would still apply. */
17303 char $ac_func();
17305 int main() {
17307 /* The GNU C library defines this for functions which it implements
17308 to always fail with ENOSYS. Some functions are actually named
17309 something starting with __ and the normal name is an alias. */
17310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17311 choke me
17312 #else
17313 $ac_func();
17314 #endif
17316 ; return 0; }
17318 if { (eval echo configure:17319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17319 rm -rf conftest*
17320 eval "ac_cv_func_$ac_func=yes"
17321 else
17322 echo "configure: failed program was:" >&5
17323 cat conftest.$ac_ext >&5
17324 rm -rf conftest*
17325 eval "ac_cv_func_$ac_func=no"
17327 rm -f conftest*
17330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17331 echo "$ac_t""yes" 1>&6
17332 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17333 cat >> confdefs.h <<EOF
17334 #define $ac_tr_func 1
17337 else
17338 echo "$ac_t""no" 1>&6
17340 done
17347 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17348 echo "configure:17349: checking for fabsl declaration" >&5
17349 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17350 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17351 echo $ac_n "(cached) $ac_c" 1>&6
17352 else
17355 ac_ext=C
17356 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17357 ac_cpp='$CXXCPP $CPPFLAGS'
17358 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17359 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17360 cross_compiling=$ac_cv_prog_cxx_cross
17362 cat > conftest.$ac_ext <<EOF
17363 #line 17364 "configure"
17364 #include "confdefs.h"
17365 #include <math.h>
17366 #ifdef HAVE_IEEEFP_H
17367 #include <ieeefp.h>
17368 #endif
17370 int main() {
17371 fabsl(0);
17372 ; return 0; }
17374 if { (eval echo configure:17375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17375 rm -rf conftest*
17376 glibcpp_cv_func_fabsl_use=yes
17377 else
17378 echo "configure: failed program was:" >&5
17379 cat conftest.$ac_ext >&5
17380 rm -rf conftest*
17381 glibcpp_cv_func_fabsl_use=no
17383 rm -f conftest*
17384 ac_ext=c
17385 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17386 ac_cpp='$CPP $CPPFLAGS'
17387 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17388 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17389 cross_compiling=$ac_cv_prog_cc_cross
17395 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17397 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17398 for ac_func in fabsl
17400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17401 echo "configure:17402: checking for $ac_func" >&5
17402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17403 echo $ac_n "(cached) $ac_c" 1>&6
17404 else
17405 cat > conftest.$ac_ext <<EOF
17406 #line 17407 "configure"
17407 #include "confdefs.h"
17408 /* System header to define __stub macros and hopefully few prototypes,
17409 which can conflict with char $ac_func(); below. */
17410 #include <assert.h>
17411 /* Override any gcc2 internal prototype to avoid an error. */
17412 /* We use char because int might match the return type of a gcc2
17413 builtin and then its argument prototype would still apply. */
17414 char $ac_func();
17416 int main() {
17418 /* The GNU C library defines this for functions which it implements
17419 to always fail with ENOSYS. Some functions are actually named
17420 something starting with __ and the normal name is an alias. */
17421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17422 choke me
17423 #else
17424 $ac_func();
17425 #endif
17427 ; return 0; }
17429 if { (eval echo configure:17430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17430 rm -rf conftest*
17431 eval "ac_cv_func_$ac_func=yes"
17432 else
17433 echo "configure: failed program was:" >&5
17434 cat conftest.$ac_ext >&5
17435 rm -rf conftest*
17436 eval "ac_cv_func_$ac_func=no"
17438 rm -f conftest*
17441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17442 echo "$ac_t""yes" 1>&6
17443 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17444 cat >> confdefs.h <<EOF
17445 #define $ac_tr_func 1
17448 else
17449 echo "$ac_t""no" 1>&6
17451 done
17453 else
17455 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17456 echo "configure:17457: checking for _fabsl declaration" >&5
17457 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17458 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17459 echo $ac_n "(cached) $ac_c" 1>&6
17460 else
17463 ac_ext=C
17464 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17465 ac_cpp='$CXXCPP $CPPFLAGS'
17466 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17467 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17468 cross_compiling=$ac_cv_prog_cxx_cross
17470 cat > conftest.$ac_ext <<EOF
17471 #line 17472 "configure"
17472 #include "confdefs.h"
17473 #include <math.h>
17474 #ifdef HAVE_IEEEFP_H
17475 #include <ieeefp.h>
17476 #endif
17478 int main() {
17479 _fabsl(0);
17480 ; return 0; }
17482 if { (eval echo configure:17483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17483 rm -rf conftest*
17484 glibcpp_cv_func__fabsl_use=yes
17485 else
17486 echo "configure: failed program was:" >&5
17487 cat conftest.$ac_ext >&5
17488 rm -rf conftest*
17489 glibcpp_cv_func__fabsl_use=no
17491 rm -f conftest*
17492 ac_ext=c
17493 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17494 ac_cpp='$CPP $CPPFLAGS'
17495 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17496 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17497 cross_compiling=$ac_cv_prog_cc_cross
17503 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17505 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17506 for ac_func in _fabsl
17508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17509 echo "configure:17510: checking for $ac_func" >&5
17510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17511 echo $ac_n "(cached) $ac_c" 1>&6
17512 else
17513 cat > conftest.$ac_ext <<EOF
17514 #line 17515 "configure"
17515 #include "confdefs.h"
17516 /* System header to define __stub macros and hopefully few prototypes,
17517 which can conflict with char $ac_func(); below. */
17518 #include <assert.h>
17519 /* Override any gcc2 internal prototype to avoid an error. */
17520 /* We use char because int might match the return type of a gcc2
17521 builtin and then its argument prototype would still apply. */
17522 char $ac_func();
17524 int main() {
17526 /* The GNU C library defines this for functions which it implements
17527 to always fail with ENOSYS. Some functions are actually named
17528 something starting with __ and the normal name is an alias. */
17529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17530 choke me
17531 #else
17532 $ac_func();
17533 #endif
17535 ; return 0; }
17537 if { (eval echo configure:17538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17538 rm -rf conftest*
17539 eval "ac_cv_func_$ac_func=yes"
17540 else
17541 echo "configure: failed program was:" >&5
17542 cat conftest.$ac_ext >&5
17543 rm -rf conftest*
17544 eval "ac_cv_func_$ac_func=no"
17546 rm -f conftest*
17549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17550 echo "$ac_t""yes" 1>&6
17551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17552 cat >> confdefs.h <<EOF
17553 #define $ac_tr_func 1
17556 else
17557 echo "$ac_t""no" 1>&6
17559 done
17566 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17567 echo "configure:17568: checking for fmodl declaration" >&5
17568 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17569 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17570 echo $ac_n "(cached) $ac_c" 1>&6
17571 else
17574 ac_ext=C
17575 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17576 ac_cpp='$CXXCPP $CPPFLAGS'
17577 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17578 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17579 cross_compiling=$ac_cv_prog_cxx_cross
17581 cat > conftest.$ac_ext <<EOF
17582 #line 17583 "configure"
17583 #include "confdefs.h"
17584 #include <math.h>
17585 int main() {
17586 fmodl(0, 0);
17587 ; return 0; }
17589 if { (eval echo configure:17590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17590 rm -rf conftest*
17591 glibcpp_cv_func_fmodl_use=yes
17592 else
17593 echo "configure: failed program was:" >&5
17594 cat conftest.$ac_ext >&5
17595 rm -rf conftest*
17596 glibcpp_cv_func_fmodl_use=no
17598 rm -f conftest*
17599 ac_ext=c
17600 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17601 ac_cpp='$CPP $CPPFLAGS'
17602 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17603 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17604 cross_compiling=$ac_cv_prog_cc_cross
17610 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17612 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17613 for ac_func in fmodl
17615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17616 echo "configure:17617: checking for $ac_func" >&5
17617 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17618 echo $ac_n "(cached) $ac_c" 1>&6
17619 else
17620 cat > conftest.$ac_ext <<EOF
17621 #line 17622 "configure"
17622 #include "confdefs.h"
17623 /* System header to define __stub macros and hopefully few prototypes,
17624 which can conflict with char $ac_func(); below. */
17625 #include <assert.h>
17626 /* Override any gcc2 internal prototype to avoid an error. */
17627 /* We use char because int might match the return type of a gcc2
17628 builtin and then its argument prototype would still apply. */
17629 char $ac_func();
17631 int main() {
17633 /* The GNU C library defines this for functions which it implements
17634 to always fail with ENOSYS. Some functions are actually named
17635 something starting with __ and the normal name is an alias. */
17636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17637 choke me
17638 #else
17639 $ac_func();
17640 #endif
17642 ; return 0; }
17644 if { (eval echo configure:17645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17645 rm -rf conftest*
17646 eval "ac_cv_func_$ac_func=yes"
17647 else
17648 echo "configure: failed program was:" >&5
17649 cat conftest.$ac_ext >&5
17650 rm -rf conftest*
17651 eval "ac_cv_func_$ac_func=no"
17653 rm -f conftest*
17656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17657 echo "$ac_t""yes" 1>&6
17658 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17659 cat >> confdefs.h <<EOF
17660 #define $ac_tr_func 1
17663 else
17664 echo "$ac_t""no" 1>&6
17666 done
17668 else
17670 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17671 echo "configure:17672: checking for _fmodl declaration" >&5
17672 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17673 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17674 echo $ac_n "(cached) $ac_c" 1>&6
17675 else
17678 ac_ext=C
17679 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17680 ac_cpp='$CXXCPP $CPPFLAGS'
17681 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17682 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17683 cross_compiling=$ac_cv_prog_cxx_cross
17685 cat > conftest.$ac_ext <<EOF
17686 #line 17687 "configure"
17687 #include "confdefs.h"
17688 #include <math.h>
17689 int main() {
17690 _fmodl(0, 0);
17691 ; return 0; }
17693 if { (eval echo configure:17694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17694 rm -rf conftest*
17695 glibcpp_cv_func__fmodl_use=yes
17696 else
17697 echo "configure: failed program was:" >&5
17698 cat conftest.$ac_ext >&5
17699 rm -rf conftest*
17700 glibcpp_cv_func__fmodl_use=no
17702 rm -f conftest*
17703 ac_ext=c
17704 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17705 ac_cpp='$CPP $CPPFLAGS'
17706 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17707 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17708 cross_compiling=$ac_cv_prog_cc_cross
17714 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17716 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17717 for ac_func in _fmodl
17719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17720 echo "configure:17721: checking for $ac_func" >&5
17721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17722 echo $ac_n "(cached) $ac_c" 1>&6
17723 else
17724 cat > conftest.$ac_ext <<EOF
17725 #line 17726 "configure"
17726 #include "confdefs.h"
17727 /* System header to define __stub macros and hopefully few prototypes,
17728 which can conflict with char $ac_func(); below. */
17729 #include <assert.h>
17730 /* Override any gcc2 internal prototype to avoid an error. */
17731 /* We use char because int might match the return type of a gcc2
17732 builtin and then its argument prototype would still apply. */
17733 char $ac_func();
17735 int main() {
17737 /* The GNU C library defines this for functions which it implements
17738 to always fail with ENOSYS. Some functions are actually named
17739 something starting with __ and the normal name is an alias. */
17740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17741 choke me
17742 #else
17743 $ac_func();
17744 #endif
17746 ; return 0; }
17748 if { (eval echo configure:17749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17749 rm -rf conftest*
17750 eval "ac_cv_func_$ac_func=yes"
17751 else
17752 echo "configure: failed program was:" >&5
17753 cat conftest.$ac_ext >&5
17754 rm -rf conftest*
17755 eval "ac_cv_func_$ac_func=no"
17757 rm -f conftest*
17760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17761 echo "$ac_t""yes" 1>&6
17762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17763 cat >> confdefs.h <<EOF
17764 #define $ac_tr_func 1
17767 else
17768 echo "$ac_t""no" 1>&6
17770 done
17777 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17778 echo "configure:17779: checking for frexpl declaration" >&5
17779 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17780 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17781 echo $ac_n "(cached) $ac_c" 1>&6
17782 else
17785 ac_ext=C
17786 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17787 ac_cpp='$CXXCPP $CPPFLAGS'
17788 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17789 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17790 cross_compiling=$ac_cv_prog_cxx_cross
17792 cat > conftest.$ac_ext <<EOF
17793 #line 17794 "configure"
17794 #include "confdefs.h"
17795 #include <math.h>
17796 int main() {
17797 frexpl(0, 0);
17798 ; return 0; }
17800 if { (eval echo configure:17801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17801 rm -rf conftest*
17802 glibcpp_cv_func_frexpl_use=yes
17803 else
17804 echo "configure: failed program was:" >&5
17805 cat conftest.$ac_ext >&5
17806 rm -rf conftest*
17807 glibcpp_cv_func_frexpl_use=no
17809 rm -f conftest*
17810 ac_ext=c
17811 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17812 ac_cpp='$CPP $CPPFLAGS'
17813 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17814 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17815 cross_compiling=$ac_cv_prog_cc_cross
17821 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17823 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17824 for ac_func in frexpl
17826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17827 echo "configure:17828: checking for $ac_func" >&5
17828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17829 echo $ac_n "(cached) $ac_c" 1>&6
17830 else
17831 cat > conftest.$ac_ext <<EOF
17832 #line 17833 "configure"
17833 #include "confdefs.h"
17834 /* System header to define __stub macros and hopefully few prototypes,
17835 which can conflict with char $ac_func(); below. */
17836 #include <assert.h>
17837 /* Override any gcc2 internal prototype to avoid an error. */
17838 /* We use char because int might match the return type of a gcc2
17839 builtin and then its argument prototype would still apply. */
17840 char $ac_func();
17842 int main() {
17844 /* The GNU C library defines this for functions which it implements
17845 to always fail with ENOSYS. Some functions are actually named
17846 something starting with __ and the normal name is an alias. */
17847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17848 choke me
17849 #else
17850 $ac_func();
17851 #endif
17853 ; return 0; }
17855 if { (eval echo configure:17856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17856 rm -rf conftest*
17857 eval "ac_cv_func_$ac_func=yes"
17858 else
17859 echo "configure: failed program was:" >&5
17860 cat conftest.$ac_ext >&5
17861 rm -rf conftest*
17862 eval "ac_cv_func_$ac_func=no"
17864 rm -f conftest*
17867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17868 echo "$ac_t""yes" 1>&6
17869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17870 cat >> confdefs.h <<EOF
17871 #define $ac_tr_func 1
17874 else
17875 echo "$ac_t""no" 1>&6
17877 done
17879 else
17881 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17882 echo "configure:17883: checking for _frexpl declaration" >&5
17883 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17884 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17885 echo $ac_n "(cached) $ac_c" 1>&6
17886 else
17889 ac_ext=C
17890 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17891 ac_cpp='$CXXCPP $CPPFLAGS'
17892 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17893 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17894 cross_compiling=$ac_cv_prog_cxx_cross
17896 cat > conftest.$ac_ext <<EOF
17897 #line 17898 "configure"
17898 #include "confdefs.h"
17899 #include <math.h>
17900 int main() {
17901 _frexpl(0, 0);
17902 ; return 0; }
17904 if { (eval echo configure:17905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17905 rm -rf conftest*
17906 glibcpp_cv_func__frexpl_use=yes
17907 else
17908 echo "configure: failed program was:" >&5
17909 cat conftest.$ac_ext >&5
17910 rm -rf conftest*
17911 glibcpp_cv_func__frexpl_use=no
17913 rm -f conftest*
17914 ac_ext=c
17915 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17916 ac_cpp='$CPP $CPPFLAGS'
17917 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17918 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17919 cross_compiling=$ac_cv_prog_cc_cross
17925 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17927 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17928 for ac_func in _frexpl
17930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17931 echo "configure:17932: checking for $ac_func" >&5
17932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17933 echo $ac_n "(cached) $ac_c" 1>&6
17934 else
17935 cat > conftest.$ac_ext <<EOF
17936 #line 17937 "configure"
17937 #include "confdefs.h"
17938 /* System header to define __stub macros and hopefully few prototypes,
17939 which can conflict with char $ac_func(); below. */
17940 #include <assert.h>
17941 /* Override any gcc2 internal prototype to avoid an error. */
17942 /* We use char because int might match the return type of a gcc2
17943 builtin and then its argument prototype would still apply. */
17944 char $ac_func();
17946 int main() {
17948 /* The GNU C library defines this for functions which it implements
17949 to always fail with ENOSYS. Some functions are actually named
17950 something starting with __ and the normal name is an alias. */
17951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17952 choke me
17953 #else
17954 $ac_func();
17955 #endif
17957 ; return 0; }
17959 if { (eval echo configure:17960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17960 rm -rf conftest*
17961 eval "ac_cv_func_$ac_func=yes"
17962 else
17963 echo "configure: failed program was:" >&5
17964 cat conftest.$ac_ext >&5
17965 rm -rf conftest*
17966 eval "ac_cv_func_$ac_func=no"
17968 rm -f conftest*
17971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17972 echo "$ac_t""yes" 1>&6
17973 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17974 cat >> confdefs.h <<EOF
17975 #define $ac_tr_func 1
17978 else
17979 echo "$ac_t""no" 1>&6
17981 done
17988 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
17989 echo "configure:17990: checking for hypotl declaration" >&5
17990 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
17991 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
17992 echo $ac_n "(cached) $ac_c" 1>&6
17993 else
17996 ac_ext=C
17997 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17998 ac_cpp='$CXXCPP $CPPFLAGS'
17999 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18000 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18001 cross_compiling=$ac_cv_prog_cxx_cross
18003 cat > conftest.$ac_ext <<EOF
18004 #line 18005 "configure"
18005 #include "confdefs.h"
18006 #include <math.h>
18007 int main() {
18008 hypotl(0, 0);
18009 ; return 0; }
18011 if { (eval echo configure:18012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18012 rm -rf conftest*
18013 glibcpp_cv_func_hypotl_use=yes
18014 else
18015 echo "configure: failed program was:" >&5
18016 cat conftest.$ac_ext >&5
18017 rm -rf conftest*
18018 glibcpp_cv_func_hypotl_use=no
18020 rm -f conftest*
18021 ac_ext=c
18022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18023 ac_cpp='$CPP $CPPFLAGS'
18024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18026 cross_compiling=$ac_cv_prog_cc_cross
18032 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18034 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18035 for ac_func in hypotl
18037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18038 echo "configure:18039: checking for $ac_func" >&5
18039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18040 echo $ac_n "(cached) $ac_c" 1>&6
18041 else
18042 cat > conftest.$ac_ext <<EOF
18043 #line 18044 "configure"
18044 #include "confdefs.h"
18045 /* System header to define __stub macros and hopefully few prototypes,
18046 which can conflict with char $ac_func(); below. */
18047 #include <assert.h>
18048 /* Override any gcc2 internal prototype to avoid an error. */
18049 /* We use char because int might match the return type of a gcc2
18050 builtin and then its argument prototype would still apply. */
18051 char $ac_func();
18053 int main() {
18055 /* The GNU C library defines this for functions which it implements
18056 to always fail with ENOSYS. Some functions are actually named
18057 something starting with __ and the normal name is an alias. */
18058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18059 choke me
18060 #else
18061 $ac_func();
18062 #endif
18064 ; return 0; }
18066 if { (eval echo configure:18067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18067 rm -rf conftest*
18068 eval "ac_cv_func_$ac_func=yes"
18069 else
18070 echo "configure: failed program was:" >&5
18071 cat conftest.$ac_ext >&5
18072 rm -rf conftest*
18073 eval "ac_cv_func_$ac_func=no"
18075 rm -f conftest*
18078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18079 echo "$ac_t""yes" 1>&6
18080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18081 cat >> confdefs.h <<EOF
18082 #define $ac_tr_func 1
18085 else
18086 echo "$ac_t""no" 1>&6
18088 done
18090 else
18092 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18093 echo "configure:18094: checking for _hypotl declaration" >&5
18094 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18095 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18096 echo $ac_n "(cached) $ac_c" 1>&6
18097 else
18100 ac_ext=C
18101 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18102 ac_cpp='$CXXCPP $CPPFLAGS'
18103 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18104 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18105 cross_compiling=$ac_cv_prog_cxx_cross
18107 cat > conftest.$ac_ext <<EOF
18108 #line 18109 "configure"
18109 #include "confdefs.h"
18110 #include <math.h>
18111 int main() {
18112 _hypotl(0, 0);
18113 ; return 0; }
18115 if { (eval echo configure:18116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18116 rm -rf conftest*
18117 glibcpp_cv_func__hypotl_use=yes
18118 else
18119 echo "configure: failed program was:" >&5
18120 cat conftest.$ac_ext >&5
18121 rm -rf conftest*
18122 glibcpp_cv_func__hypotl_use=no
18124 rm -f conftest*
18125 ac_ext=c
18126 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18127 ac_cpp='$CPP $CPPFLAGS'
18128 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18129 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18130 cross_compiling=$ac_cv_prog_cc_cross
18136 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18138 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18139 for ac_func in _hypotl
18141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18142 echo "configure:18143: checking for $ac_func" >&5
18143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18144 echo $ac_n "(cached) $ac_c" 1>&6
18145 else
18146 cat > conftest.$ac_ext <<EOF
18147 #line 18148 "configure"
18148 #include "confdefs.h"
18149 /* System header to define __stub macros and hopefully few prototypes,
18150 which can conflict with char $ac_func(); below. */
18151 #include <assert.h>
18152 /* Override any gcc2 internal prototype to avoid an error. */
18153 /* We use char because int might match the return type of a gcc2
18154 builtin and then its argument prototype would still apply. */
18155 char $ac_func();
18157 int main() {
18159 /* The GNU C library defines this for functions which it implements
18160 to always fail with ENOSYS. Some functions are actually named
18161 something starting with __ and the normal name is an alias. */
18162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18163 choke me
18164 #else
18165 $ac_func();
18166 #endif
18168 ; return 0; }
18170 if { (eval echo configure:18171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18171 rm -rf conftest*
18172 eval "ac_cv_func_$ac_func=yes"
18173 else
18174 echo "configure: failed program was:" >&5
18175 cat conftest.$ac_ext >&5
18176 rm -rf conftest*
18177 eval "ac_cv_func_$ac_func=no"
18179 rm -f conftest*
18182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18183 echo "$ac_t""yes" 1>&6
18184 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18185 cat >> confdefs.h <<EOF
18186 #define $ac_tr_func 1
18189 else
18190 echo "$ac_t""no" 1>&6
18192 done
18199 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18200 echo "configure:18201: checking for ldexpl declaration" >&5
18201 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18202 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18203 echo $ac_n "(cached) $ac_c" 1>&6
18204 else
18207 ac_ext=C
18208 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18209 ac_cpp='$CXXCPP $CPPFLAGS'
18210 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18211 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18212 cross_compiling=$ac_cv_prog_cxx_cross
18214 cat > conftest.$ac_ext <<EOF
18215 #line 18216 "configure"
18216 #include "confdefs.h"
18217 #include <math.h>
18218 int main() {
18219 ldexpl(0, 0);
18220 ; return 0; }
18222 if { (eval echo configure:18223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18223 rm -rf conftest*
18224 glibcpp_cv_func_ldexpl_use=yes
18225 else
18226 echo "configure: failed program was:" >&5
18227 cat conftest.$ac_ext >&5
18228 rm -rf conftest*
18229 glibcpp_cv_func_ldexpl_use=no
18231 rm -f conftest*
18232 ac_ext=c
18233 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18234 ac_cpp='$CPP $CPPFLAGS'
18235 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18236 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18237 cross_compiling=$ac_cv_prog_cc_cross
18243 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18245 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18246 for ac_func in ldexpl
18248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18249 echo "configure:18250: checking for $ac_func" >&5
18250 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18251 echo $ac_n "(cached) $ac_c" 1>&6
18252 else
18253 cat > conftest.$ac_ext <<EOF
18254 #line 18255 "configure"
18255 #include "confdefs.h"
18256 /* System header to define __stub macros and hopefully few prototypes,
18257 which can conflict with char $ac_func(); below. */
18258 #include <assert.h>
18259 /* Override any gcc2 internal prototype to avoid an error. */
18260 /* We use char because int might match the return type of a gcc2
18261 builtin and then its argument prototype would still apply. */
18262 char $ac_func();
18264 int main() {
18266 /* The GNU C library defines this for functions which it implements
18267 to always fail with ENOSYS. Some functions are actually named
18268 something starting with __ and the normal name is an alias. */
18269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18270 choke me
18271 #else
18272 $ac_func();
18273 #endif
18275 ; return 0; }
18277 if { (eval echo configure:18278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18278 rm -rf conftest*
18279 eval "ac_cv_func_$ac_func=yes"
18280 else
18281 echo "configure: failed program was:" >&5
18282 cat conftest.$ac_ext >&5
18283 rm -rf conftest*
18284 eval "ac_cv_func_$ac_func=no"
18286 rm -f conftest*
18289 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18290 echo "$ac_t""yes" 1>&6
18291 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18292 cat >> confdefs.h <<EOF
18293 #define $ac_tr_func 1
18296 else
18297 echo "$ac_t""no" 1>&6
18299 done
18301 else
18303 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18304 echo "configure:18305: checking for _ldexpl declaration" >&5
18305 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18306 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18307 echo $ac_n "(cached) $ac_c" 1>&6
18308 else
18311 ac_ext=C
18312 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18313 ac_cpp='$CXXCPP $CPPFLAGS'
18314 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18315 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18316 cross_compiling=$ac_cv_prog_cxx_cross
18318 cat > conftest.$ac_ext <<EOF
18319 #line 18320 "configure"
18320 #include "confdefs.h"
18321 #include <math.h>
18322 int main() {
18323 _ldexpl(0, 0);
18324 ; return 0; }
18326 if { (eval echo configure:18327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18327 rm -rf conftest*
18328 glibcpp_cv_func__ldexpl_use=yes
18329 else
18330 echo "configure: failed program was:" >&5
18331 cat conftest.$ac_ext >&5
18332 rm -rf conftest*
18333 glibcpp_cv_func__ldexpl_use=no
18335 rm -f conftest*
18336 ac_ext=c
18337 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18338 ac_cpp='$CPP $CPPFLAGS'
18339 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18340 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18341 cross_compiling=$ac_cv_prog_cc_cross
18347 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18349 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18350 for ac_func in _ldexpl
18352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18353 echo "configure:18354: checking for $ac_func" >&5
18354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18355 echo $ac_n "(cached) $ac_c" 1>&6
18356 else
18357 cat > conftest.$ac_ext <<EOF
18358 #line 18359 "configure"
18359 #include "confdefs.h"
18360 /* System header to define __stub macros and hopefully few prototypes,
18361 which can conflict with char $ac_func(); below. */
18362 #include <assert.h>
18363 /* Override any gcc2 internal prototype to avoid an error. */
18364 /* We use char because int might match the return type of a gcc2
18365 builtin and then its argument prototype would still apply. */
18366 char $ac_func();
18368 int main() {
18370 /* The GNU C library defines this for functions which it implements
18371 to always fail with ENOSYS. Some functions are actually named
18372 something starting with __ and the normal name is an alias. */
18373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18374 choke me
18375 #else
18376 $ac_func();
18377 #endif
18379 ; return 0; }
18381 if { (eval echo configure:18382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18382 rm -rf conftest*
18383 eval "ac_cv_func_$ac_func=yes"
18384 else
18385 echo "configure: failed program was:" >&5
18386 cat conftest.$ac_ext >&5
18387 rm -rf conftest*
18388 eval "ac_cv_func_$ac_func=no"
18390 rm -f conftest*
18393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18394 echo "$ac_t""yes" 1>&6
18395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18396 cat >> confdefs.h <<EOF
18397 #define $ac_tr_func 1
18400 else
18401 echo "$ac_t""no" 1>&6
18403 done
18410 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18411 echo "configure:18412: checking for logl declaration" >&5
18412 if test x${glibcpp_cv_func_logl_use+set} != xset; then
18413 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18414 echo $ac_n "(cached) $ac_c" 1>&6
18415 else
18418 ac_ext=C
18419 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18420 ac_cpp='$CXXCPP $CPPFLAGS'
18421 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18422 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18423 cross_compiling=$ac_cv_prog_cxx_cross
18425 cat > conftest.$ac_ext <<EOF
18426 #line 18427 "configure"
18427 #include "confdefs.h"
18428 #include <math.h>
18429 #ifdef HAVE_IEEEFP_H
18430 #include <ieeefp.h>
18431 #endif
18433 int main() {
18434 logl(0);
18435 ; return 0; }
18437 if { (eval echo configure:18438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18438 rm -rf conftest*
18439 glibcpp_cv_func_logl_use=yes
18440 else
18441 echo "configure: failed program was:" >&5
18442 cat conftest.$ac_ext >&5
18443 rm -rf conftest*
18444 glibcpp_cv_func_logl_use=no
18446 rm -f conftest*
18447 ac_ext=c
18448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18449 ac_cpp='$CPP $CPPFLAGS'
18450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18452 cross_compiling=$ac_cv_prog_cc_cross
18458 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18460 if test x$glibcpp_cv_func_logl_use = x"yes"; then
18461 for ac_func in logl
18463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18464 echo "configure:18465: checking for $ac_func" >&5
18465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18466 echo $ac_n "(cached) $ac_c" 1>&6
18467 else
18468 cat > conftest.$ac_ext <<EOF
18469 #line 18470 "configure"
18470 #include "confdefs.h"
18471 /* System header to define __stub macros and hopefully few prototypes,
18472 which can conflict with char $ac_func(); below. */
18473 #include <assert.h>
18474 /* Override any gcc2 internal prototype to avoid an error. */
18475 /* We use char because int might match the return type of a gcc2
18476 builtin and then its argument prototype would still apply. */
18477 char $ac_func();
18479 int main() {
18481 /* The GNU C library defines this for functions which it implements
18482 to always fail with ENOSYS. Some functions are actually named
18483 something starting with __ and the normal name is an alias. */
18484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18485 choke me
18486 #else
18487 $ac_func();
18488 #endif
18490 ; return 0; }
18492 if { (eval echo configure:18493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18493 rm -rf conftest*
18494 eval "ac_cv_func_$ac_func=yes"
18495 else
18496 echo "configure: failed program was:" >&5
18497 cat conftest.$ac_ext >&5
18498 rm -rf conftest*
18499 eval "ac_cv_func_$ac_func=no"
18501 rm -f conftest*
18504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18505 echo "$ac_t""yes" 1>&6
18506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18507 cat >> confdefs.h <<EOF
18508 #define $ac_tr_func 1
18511 else
18512 echo "$ac_t""no" 1>&6
18514 done
18516 else
18518 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18519 echo "configure:18520: checking for _logl declaration" >&5
18520 if test x${glibcpp_cv_func__logl_use+set} != xset; then
18521 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18522 echo $ac_n "(cached) $ac_c" 1>&6
18523 else
18526 ac_ext=C
18527 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18528 ac_cpp='$CXXCPP $CPPFLAGS'
18529 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18530 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18531 cross_compiling=$ac_cv_prog_cxx_cross
18533 cat > conftest.$ac_ext <<EOF
18534 #line 18535 "configure"
18535 #include "confdefs.h"
18536 #include <math.h>
18537 #ifdef HAVE_IEEEFP_H
18538 #include <ieeefp.h>
18539 #endif
18541 int main() {
18542 _logl(0);
18543 ; return 0; }
18545 if { (eval echo configure:18546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18546 rm -rf conftest*
18547 glibcpp_cv_func__logl_use=yes
18548 else
18549 echo "configure: failed program was:" >&5
18550 cat conftest.$ac_ext >&5
18551 rm -rf conftest*
18552 glibcpp_cv_func__logl_use=no
18554 rm -f conftest*
18555 ac_ext=c
18556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18557 ac_cpp='$CPP $CPPFLAGS'
18558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18559 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18560 cross_compiling=$ac_cv_prog_cc_cross
18566 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18568 if test x$glibcpp_cv_func__logl_use = x"yes"; then
18569 for ac_func in _logl
18571 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18572 echo "configure:18573: checking for $ac_func" >&5
18573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18574 echo $ac_n "(cached) $ac_c" 1>&6
18575 else
18576 cat > conftest.$ac_ext <<EOF
18577 #line 18578 "configure"
18578 #include "confdefs.h"
18579 /* System header to define __stub macros and hopefully few prototypes,
18580 which can conflict with char $ac_func(); below. */
18581 #include <assert.h>
18582 /* Override any gcc2 internal prototype to avoid an error. */
18583 /* We use char because int might match the return type of a gcc2
18584 builtin and then its argument prototype would still apply. */
18585 char $ac_func();
18587 int main() {
18589 /* The GNU C library defines this for functions which it implements
18590 to always fail with ENOSYS. Some functions are actually named
18591 something starting with __ and the normal name is an alias. */
18592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18593 choke me
18594 #else
18595 $ac_func();
18596 #endif
18598 ; return 0; }
18600 if { (eval echo configure:18601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18601 rm -rf conftest*
18602 eval "ac_cv_func_$ac_func=yes"
18603 else
18604 echo "configure: failed program was:" >&5
18605 cat conftest.$ac_ext >&5
18606 rm -rf conftest*
18607 eval "ac_cv_func_$ac_func=no"
18609 rm -f conftest*
18612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18613 echo "$ac_t""yes" 1>&6
18614 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18615 cat >> confdefs.h <<EOF
18616 #define $ac_tr_func 1
18619 else
18620 echo "$ac_t""no" 1>&6
18622 done
18629 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18630 echo "configure:18631: checking for log10l declaration" >&5
18631 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18632 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18633 echo $ac_n "(cached) $ac_c" 1>&6
18634 else
18637 ac_ext=C
18638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18639 ac_cpp='$CXXCPP $CPPFLAGS'
18640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18642 cross_compiling=$ac_cv_prog_cxx_cross
18644 cat > conftest.$ac_ext <<EOF
18645 #line 18646 "configure"
18646 #include "confdefs.h"
18647 #include <math.h>
18648 #ifdef HAVE_IEEEFP_H
18649 #include <ieeefp.h>
18650 #endif
18652 int main() {
18653 log10l(0);
18654 ; return 0; }
18656 if { (eval echo configure:18657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18657 rm -rf conftest*
18658 glibcpp_cv_func_log10l_use=yes
18659 else
18660 echo "configure: failed program was:" >&5
18661 cat conftest.$ac_ext >&5
18662 rm -rf conftest*
18663 glibcpp_cv_func_log10l_use=no
18665 rm -f conftest*
18666 ac_ext=c
18667 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18668 ac_cpp='$CPP $CPPFLAGS'
18669 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18670 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18671 cross_compiling=$ac_cv_prog_cc_cross
18677 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18679 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18680 for ac_func in log10l
18682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18683 echo "configure:18684: checking for $ac_func" >&5
18684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18685 echo $ac_n "(cached) $ac_c" 1>&6
18686 else
18687 cat > conftest.$ac_ext <<EOF
18688 #line 18689 "configure"
18689 #include "confdefs.h"
18690 /* System header to define __stub macros and hopefully few prototypes,
18691 which can conflict with char $ac_func(); below. */
18692 #include <assert.h>
18693 /* Override any gcc2 internal prototype to avoid an error. */
18694 /* We use char because int might match the return type of a gcc2
18695 builtin and then its argument prototype would still apply. */
18696 char $ac_func();
18698 int main() {
18700 /* The GNU C library defines this for functions which it implements
18701 to always fail with ENOSYS. Some functions are actually named
18702 something starting with __ and the normal name is an alias. */
18703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18704 choke me
18705 #else
18706 $ac_func();
18707 #endif
18709 ; return 0; }
18711 if { (eval echo configure:18712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18712 rm -rf conftest*
18713 eval "ac_cv_func_$ac_func=yes"
18714 else
18715 echo "configure: failed program was:" >&5
18716 cat conftest.$ac_ext >&5
18717 rm -rf conftest*
18718 eval "ac_cv_func_$ac_func=no"
18720 rm -f conftest*
18723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18724 echo "$ac_t""yes" 1>&6
18725 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18726 cat >> confdefs.h <<EOF
18727 #define $ac_tr_func 1
18730 else
18731 echo "$ac_t""no" 1>&6
18733 done
18735 else
18737 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18738 echo "configure:18739: checking for _log10l declaration" >&5
18739 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18740 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18741 echo $ac_n "(cached) $ac_c" 1>&6
18742 else
18745 ac_ext=C
18746 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18747 ac_cpp='$CXXCPP $CPPFLAGS'
18748 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18749 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18750 cross_compiling=$ac_cv_prog_cxx_cross
18752 cat > conftest.$ac_ext <<EOF
18753 #line 18754 "configure"
18754 #include "confdefs.h"
18755 #include <math.h>
18756 #ifdef HAVE_IEEEFP_H
18757 #include <ieeefp.h>
18758 #endif
18760 int main() {
18761 _log10l(0);
18762 ; return 0; }
18764 if { (eval echo configure:18765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18765 rm -rf conftest*
18766 glibcpp_cv_func__log10l_use=yes
18767 else
18768 echo "configure: failed program was:" >&5
18769 cat conftest.$ac_ext >&5
18770 rm -rf conftest*
18771 glibcpp_cv_func__log10l_use=no
18773 rm -f conftest*
18774 ac_ext=c
18775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18776 ac_cpp='$CPP $CPPFLAGS'
18777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18779 cross_compiling=$ac_cv_prog_cc_cross
18785 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18787 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18788 for ac_func in _log10l
18790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18791 echo "configure:18792: checking for $ac_func" >&5
18792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18793 echo $ac_n "(cached) $ac_c" 1>&6
18794 else
18795 cat > conftest.$ac_ext <<EOF
18796 #line 18797 "configure"
18797 #include "confdefs.h"
18798 /* System header to define __stub macros and hopefully few prototypes,
18799 which can conflict with char $ac_func(); below. */
18800 #include <assert.h>
18801 /* Override any gcc2 internal prototype to avoid an error. */
18802 /* We use char because int might match the return type of a gcc2
18803 builtin and then its argument prototype would still apply. */
18804 char $ac_func();
18806 int main() {
18808 /* The GNU C library defines this for functions which it implements
18809 to always fail with ENOSYS. Some functions are actually named
18810 something starting with __ and the normal name is an alias. */
18811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18812 choke me
18813 #else
18814 $ac_func();
18815 #endif
18817 ; return 0; }
18819 if { (eval echo configure:18820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18820 rm -rf conftest*
18821 eval "ac_cv_func_$ac_func=yes"
18822 else
18823 echo "configure: failed program was:" >&5
18824 cat conftest.$ac_ext >&5
18825 rm -rf conftest*
18826 eval "ac_cv_func_$ac_func=no"
18828 rm -f conftest*
18831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18832 echo "$ac_t""yes" 1>&6
18833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18834 cat >> confdefs.h <<EOF
18835 #define $ac_tr_func 1
18838 else
18839 echo "$ac_t""no" 1>&6
18841 done
18848 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18849 echo "configure:18850: checking for modfl declaration" >&5
18850 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18851 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18852 echo $ac_n "(cached) $ac_c" 1>&6
18853 else
18856 ac_ext=C
18857 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18858 ac_cpp='$CXXCPP $CPPFLAGS'
18859 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18860 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18861 cross_compiling=$ac_cv_prog_cxx_cross
18863 cat > conftest.$ac_ext <<EOF
18864 #line 18865 "configure"
18865 #include "confdefs.h"
18866 #include <math.h>
18867 int main() {
18868 modfl(0, 0);
18869 ; return 0; }
18871 if { (eval echo configure:18872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18872 rm -rf conftest*
18873 glibcpp_cv_func_modfl_use=yes
18874 else
18875 echo "configure: failed program was:" >&5
18876 cat conftest.$ac_ext >&5
18877 rm -rf conftest*
18878 glibcpp_cv_func_modfl_use=no
18880 rm -f conftest*
18881 ac_ext=c
18882 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18883 ac_cpp='$CPP $CPPFLAGS'
18884 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18885 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18886 cross_compiling=$ac_cv_prog_cc_cross
18892 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18894 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18895 for ac_func in modfl
18897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18898 echo "configure:18899: checking for $ac_func" >&5
18899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18900 echo $ac_n "(cached) $ac_c" 1>&6
18901 else
18902 cat > conftest.$ac_ext <<EOF
18903 #line 18904 "configure"
18904 #include "confdefs.h"
18905 /* System header to define __stub macros and hopefully few prototypes,
18906 which can conflict with char $ac_func(); below. */
18907 #include <assert.h>
18908 /* Override any gcc2 internal prototype to avoid an error. */
18909 /* We use char because int might match the return type of a gcc2
18910 builtin and then its argument prototype would still apply. */
18911 char $ac_func();
18913 int main() {
18915 /* The GNU C library defines this for functions which it implements
18916 to always fail with ENOSYS. Some functions are actually named
18917 something starting with __ and the normal name is an alias. */
18918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18919 choke me
18920 #else
18921 $ac_func();
18922 #endif
18924 ; return 0; }
18926 if { (eval echo configure:18927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18927 rm -rf conftest*
18928 eval "ac_cv_func_$ac_func=yes"
18929 else
18930 echo "configure: failed program was:" >&5
18931 cat conftest.$ac_ext >&5
18932 rm -rf conftest*
18933 eval "ac_cv_func_$ac_func=no"
18935 rm -f conftest*
18938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18939 echo "$ac_t""yes" 1>&6
18940 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18941 cat >> confdefs.h <<EOF
18942 #define $ac_tr_func 1
18945 else
18946 echo "$ac_t""no" 1>&6
18948 done
18950 else
18952 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18953 echo "configure:18954: checking for _modfl declaration" >&5
18954 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
18955 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
18956 echo $ac_n "(cached) $ac_c" 1>&6
18957 else
18960 ac_ext=C
18961 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18962 ac_cpp='$CXXCPP $CPPFLAGS'
18963 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18964 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18965 cross_compiling=$ac_cv_prog_cxx_cross
18967 cat > conftest.$ac_ext <<EOF
18968 #line 18969 "configure"
18969 #include "confdefs.h"
18970 #include <math.h>
18971 int main() {
18972 _modfl(0, 0);
18973 ; return 0; }
18975 if { (eval echo configure:18976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18976 rm -rf conftest*
18977 glibcpp_cv_func__modfl_use=yes
18978 else
18979 echo "configure: failed program was:" >&5
18980 cat conftest.$ac_ext >&5
18981 rm -rf conftest*
18982 glibcpp_cv_func__modfl_use=no
18984 rm -f conftest*
18985 ac_ext=c
18986 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18987 ac_cpp='$CPP $CPPFLAGS'
18988 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18989 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18990 cross_compiling=$ac_cv_prog_cc_cross
18996 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
18998 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
18999 for ac_func in _modfl
19001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19002 echo "configure:19003: checking for $ac_func" >&5
19003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19004 echo $ac_n "(cached) $ac_c" 1>&6
19005 else
19006 cat > conftest.$ac_ext <<EOF
19007 #line 19008 "configure"
19008 #include "confdefs.h"
19009 /* System header to define __stub macros and hopefully few prototypes,
19010 which can conflict with char $ac_func(); below. */
19011 #include <assert.h>
19012 /* Override any gcc2 internal prototype to avoid an error. */
19013 /* We use char because int might match the return type of a gcc2
19014 builtin and then its argument prototype would still apply. */
19015 char $ac_func();
19017 int main() {
19019 /* The GNU C library defines this for functions which it implements
19020 to always fail with ENOSYS. Some functions are actually named
19021 something starting with __ and the normal name is an alias. */
19022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19023 choke me
19024 #else
19025 $ac_func();
19026 #endif
19028 ; return 0; }
19030 if { (eval echo configure:19031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19031 rm -rf conftest*
19032 eval "ac_cv_func_$ac_func=yes"
19033 else
19034 echo "configure: failed program was:" >&5
19035 cat conftest.$ac_ext >&5
19036 rm -rf conftest*
19037 eval "ac_cv_func_$ac_func=no"
19039 rm -f conftest*
19042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19043 echo "$ac_t""yes" 1>&6
19044 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19045 cat >> confdefs.h <<EOF
19046 #define $ac_tr_func 1
19049 else
19050 echo "$ac_t""no" 1>&6
19052 done
19059 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19060 echo "configure:19061: checking for powl declaration" >&5
19061 if test x${glibcpp_cv_func_powl_use+set} != xset; then
19062 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19063 echo $ac_n "(cached) $ac_c" 1>&6
19064 else
19067 ac_ext=C
19068 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19069 ac_cpp='$CXXCPP $CPPFLAGS'
19070 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19071 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19072 cross_compiling=$ac_cv_prog_cxx_cross
19074 cat > conftest.$ac_ext <<EOF
19075 #line 19076 "configure"
19076 #include "confdefs.h"
19077 #include <math.h>
19078 int main() {
19079 powl(0, 0);
19080 ; return 0; }
19082 if { (eval echo configure:19083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19083 rm -rf conftest*
19084 glibcpp_cv_func_powl_use=yes
19085 else
19086 echo "configure: failed program was:" >&5
19087 cat conftest.$ac_ext >&5
19088 rm -rf conftest*
19089 glibcpp_cv_func_powl_use=no
19091 rm -f conftest*
19092 ac_ext=c
19093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19094 ac_cpp='$CPP $CPPFLAGS'
19095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19096 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19097 cross_compiling=$ac_cv_prog_cc_cross
19103 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19105 if test x$glibcpp_cv_func_powl_use = x"yes"; then
19106 for ac_func in powl
19108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19109 echo "configure:19110: checking for $ac_func" >&5
19110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19111 echo $ac_n "(cached) $ac_c" 1>&6
19112 else
19113 cat > conftest.$ac_ext <<EOF
19114 #line 19115 "configure"
19115 #include "confdefs.h"
19116 /* System header to define __stub macros and hopefully few prototypes,
19117 which can conflict with char $ac_func(); below. */
19118 #include <assert.h>
19119 /* Override any gcc2 internal prototype to avoid an error. */
19120 /* We use char because int might match the return type of a gcc2
19121 builtin and then its argument prototype would still apply. */
19122 char $ac_func();
19124 int main() {
19126 /* The GNU C library defines this for functions which it implements
19127 to always fail with ENOSYS. Some functions are actually named
19128 something starting with __ and the normal name is an alias. */
19129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19130 choke me
19131 #else
19132 $ac_func();
19133 #endif
19135 ; return 0; }
19137 if { (eval echo configure:19138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19138 rm -rf conftest*
19139 eval "ac_cv_func_$ac_func=yes"
19140 else
19141 echo "configure: failed program was:" >&5
19142 cat conftest.$ac_ext >&5
19143 rm -rf conftest*
19144 eval "ac_cv_func_$ac_func=no"
19146 rm -f conftest*
19149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19150 echo "$ac_t""yes" 1>&6
19151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19152 cat >> confdefs.h <<EOF
19153 #define $ac_tr_func 1
19156 else
19157 echo "$ac_t""no" 1>&6
19159 done
19161 else
19163 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19164 echo "configure:19165: checking for _powl declaration" >&5
19165 if test x${glibcpp_cv_func__powl_use+set} != xset; then
19166 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19167 echo $ac_n "(cached) $ac_c" 1>&6
19168 else
19171 ac_ext=C
19172 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19173 ac_cpp='$CXXCPP $CPPFLAGS'
19174 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19175 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19176 cross_compiling=$ac_cv_prog_cxx_cross
19178 cat > conftest.$ac_ext <<EOF
19179 #line 19180 "configure"
19180 #include "confdefs.h"
19181 #include <math.h>
19182 int main() {
19183 _powl(0, 0);
19184 ; return 0; }
19186 if { (eval echo configure:19187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19187 rm -rf conftest*
19188 glibcpp_cv_func__powl_use=yes
19189 else
19190 echo "configure: failed program was:" >&5
19191 cat conftest.$ac_ext >&5
19192 rm -rf conftest*
19193 glibcpp_cv_func__powl_use=no
19195 rm -f conftest*
19196 ac_ext=c
19197 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19198 ac_cpp='$CPP $CPPFLAGS'
19199 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19200 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19201 cross_compiling=$ac_cv_prog_cc_cross
19207 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19209 if test x$glibcpp_cv_func__powl_use = x"yes"; then
19210 for ac_func in _powl
19212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19213 echo "configure:19214: checking for $ac_func" >&5
19214 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19215 echo $ac_n "(cached) $ac_c" 1>&6
19216 else
19217 cat > conftest.$ac_ext <<EOF
19218 #line 19219 "configure"
19219 #include "confdefs.h"
19220 /* System header to define __stub macros and hopefully few prototypes,
19221 which can conflict with char $ac_func(); below. */
19222 #include <assert.h>
19223 /* Override any gcc2 internal prototype to avoid an error. */
19224 /* We use char because int might match the return type of a gcc2
19225 builtin and then its argument prototype would still apply. */
19226 char $ac_func();
19228 int main() {
19230 /* The GNU C library defines this for functions which it implements
19231 to always fail with ENOSYS. Some functions are actually named
19232 something starting with __ and the normal name is an alias. */
19233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19234 choke me
19235 #else
19236 $ac_func();
19237 #endif
19239 ; return 0; }
19241 if { (eval echo configure:19242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19242 rm -rf conftest*
19243 eval "ac_cv_func_$ac_func=yes"
19244 else
19245 echo "configure: failed program was:" >&5
19246 cat conftest.$ac_ext >&5
19247 rm -rf conftest*
19248 eval "ac_cv_func_$ac_func=no"
19250 rm -f conftest*
19253 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19254 echo "$ac_t""yes" 1>&6
19255 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19256 cat >> confdefs.h <<EOF
19257 #define $ac_tr_func 1
19260 else
19261 echo "$ac_t""no" 1>&6
19263 done
19270 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19271 echo "configure:19272: checking for sqrtl declaration" >&5
19272 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19273 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19274 echo $ac_n "(cached) $ac_c" 1>&6
19275 else
19278 ac_ext=C
19279 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19280 ac_cpp='$CXXCPP $CPPFLAGS'
19281 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19282 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19283 cross_compiling=$ac_cv_prog_cxx_cross
19285 cat > conftest.$ac_ext <<EOF
19286 #line 19287 "configure"
19287 #include "confdefs.h"
19288 #include <math.h>
19289 #ifdef HAVE_IEEEFP_H
19290 #include <ieeefp.h>
19291 #endif
19293 int main() {
19294 sqrtl(0);
19295 ; return 0; }
19297 if { (eval echo configure:19298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19298 rm -rf conftest*
19299 glibcpp_cv_func_sqrtl_use=yes
19300 else
19301 echo "configure: failed program was:" >&5
19302 cat conftest.$ac_ext >&5
19303 rm -rf conftest*
19304 glibcpp_cv_func_sqrtl_use=no
19306 rm -f conftest*
19307 ac_ext=c
19308 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19309 ac_cpp='$CPP $CPPFLAGS'
19310 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19311 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19312 cross_compiling=$ac_cv_prog_cc_cross
19318 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19320 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19321 for ac_func in sqrtl
19323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19324 echo "configure:19325: checking for $ac_func" >&5
19325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19326 echo $ac_n "(cached) $ac_c" 1>&6
19327 else
19328 cat > conftest.$ac_ext <<EOF
19329 #line 19330 "configure"
19330 #include "confdefs.h"
19331 /* System header to define __stub macros and hopefully few prototypes,
19332 which can conflict with char $ac_func(); below. */
19333 #include <assert.h>
19334 /* Override any gcc2 internal prototype to avoid an error. */
19335 /* We use char because int might match the return type of a gcc2
19336 builtin and then its argument prototype would still apply. */
19337 char $ac_func();
19339 int main() {
19341 /* The GNU C library defines this for functions which it implements
19342 to always fail with ENOSYS. Some functions are actually named
19343 something starting with __ and the normal name is an alias. */
19344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19345 choke me
19346 #else
19347 $ac_func();
19348 #endif
19350 ; return 0; }
19352 if { (eval echo configure:19353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19353 rm -rf conftest*
19354 eval "ac_cv_func_$ac_func=yes"
19355 else
19356 echo "configure: failed program was:" >&5
19357 cat conftest.$ac_ext >&5
19358 rm -rf conftest*
19359 eval "ac_cv_func_$ac_func=no"
19361 rm -f conftest*
19364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19365 echo "$ac_t""yes" 1>&6
19366 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19367 cat >> confdefs.h <<EOF
19368 #define $ac_tr_func 1
19371 else
19372 echo "$ac_t""no" 1>&6
19374 done
19376 else
19378 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19379 echo "configure:19380: checking for _sqrtl declaration" >&5
19380 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19381 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19382 echo $ac_n "(cached) $ac_c" 1>&6
19383 else
19386 ac_ext=C
19387 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19388 ac_cpp='$CXXCPP $CPPFLAGS'
19389 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19390 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19391 cross_compiling=$ac_cv_prog_cxx_cross
19393 cat > conftest.$ac_ext <<EOF
19394 #line 19395 "configure"
19395 #include "confdefs.h"
19396 #include <math.h>
19397 #ifdef HAVE_IEEEFP_H
19398 #include <ieeefp.h>
19399 #endif
19401 int main() {
19402 _sqrtl(0);
19403 ; return 0; }
19405 if { (eval echo configure:19406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19406 rm -rf conftest*
19407 glibcpp_cv_func__sqrtl_use=yes
19408 else
19409 echo "configure: failed program was:" >&5
19410 cat conftest.$ac_ext >&5
19411 rm -rf conftest*
19412 glibcpp_cv_func__sqrtl_use=no
19414 rm -f conftest*
19415 ac_ext=c
19416 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19417 ac_cpp='$CPP $CPPFLAGS'
19418 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19419 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19420 cross_compiling=$ac_cv_prog_cc_cross
19426 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19428 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19429 for ac_func in _sqrtl
19431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19432 echo "configure:19433: checking for $ac_func" >&5
19433 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19434 echo $ac_n "(cached) $ac_c" 1>&6
19435 else
19436 cat > conftest.$ac_ext <<EOF
19437 #line 19438 "configure"
19438 #include "confdefs.h"
19439 /* System header to define __stub macros and hopefully few prototypes,
19440 which can conflict with char $ac_func(); below. */
19441 #include <assert.h>
19442 /* Override any gcc2 internal prototype to avoid an error. */
19443 /* We use char because int might match the return type of a gcc2
19444 builtin and then its argument prototype would still apply. */
19445 char $ac_func();
19447 int main() {
19449 /* The GNU C library defines this for functions which it implements
19450 to always fail with ENOSYS. Some functions are actually named
19451 something starting with __ and the normal name is an alias. */
19452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19453 choke me
19454 #else
19455 $ac_func();
19456 #endif
19458 ; return 0; }
19460 if { (eval echo configure:19461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19461 rm -rf conftest*
19462 eval "ac_cv_func_$ac_func=yes"
19463 else
19464 echo "configure: failed program was:" >&5
19465 cat conftest.$ac_ext >&5
19466 rm -rf conftest*
19467 eval "ac_cv_func_$ac_func=no"
19469 rm -f conftest*
19472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19473 echo "$ac_t""yes" 1>&6
19474 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19475 cat >> confdefs.h <<EOF
19476 #define $ac_tr_func 1
19479 else
19480 echo "$ac_t""no" 1>&6
19482 done
19489 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19490 echo "configure:19491: checking for sincosl declaration" >&5
19491 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19492 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19493 echo $ac_n "(cached) $ac_c" 1>&6
19494 else
19497 ac_ext=C
19498 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19499 ac_cpp='$CXXCPP $CPPFLAGS'
19500 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19501 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19502 cross_compiling=$ac_cv_prog_cxx_cross
19504 cat > conftest.$ac_ext <<EOF
19505 #line 19506 "configure"
19506 #include "confdefs.h"
19507 #include <math.h>
19508 int main() {
19509 sincosl(0, 0, 0);
19510 ; return 0; }
19512 if { (eval echo configure:19513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19513 rm -rf conftest*
19514 glibcpp_cv_func_sincosl_use=yes
19515 else
19516 echo "configure: failed program was:" >&5
19517 cat conftest.$ac_ext >&5
19518 rm -rf conftest*
19519 glibcpp_cv_func_sincosl_use=no
19521 rm -f conftest*
19522 ac_ext=c
19523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19524 ac_cpp='$CPP $CPPFLAGS'
19525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19527 cross_compiling=$ac_cv_prog_cc_cross
19533 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19535 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19536 for ac_func in sincosl
19538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19539 echo "configure:19540: checking for $ac_func" >&5
19540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19541 echo $ac_n "(cached) $ac_c" 1>&6
19542 else
19543 cat > conftest.$ac_ext <<EOF
19544 #line 19545 "configure"
19545 #include "confdefs.h"
19546 /* System header to define __stub macros and hopefully few prototypes,
19547 which can conflict with char $ac_func(); below. */
19548 #include <assert.h>
19549 /* Override any gcc2 internal prototype to avoid an error. */
19550 /* We use char because int might match the return type of a gcc2
19551 builtin and then its argument prototype would still apply. */
19552 char $ac_func();
19554 int main() {
19556 /* The GNU C library defines this for functions which it implements
19557 to always fail with ENOSYS. Some functions are actually named
19558 something starting with __ and the normal name is an alias. */
19559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19560 choke me
19561 #else
19562 $ac_func();
19563 #endif
19565 ; return 0; }
19567 if { (eval echo configure:19568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19568 rm -rf conftest*
19569 eval "ac_cv_func_$ac_func=yes"
19570 else
19571 echo "configure: failed program was:" >&5
19572 cat conftest.$ac_ext >&5
19573 rm -rf conftest*
19574 eval "ac_cv_func_$ac_func=no"
19576 rm -f conftest*
19579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19580 echo "$ac_t""yes" 1>&6
19581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19582 cat >> confdefs.h <<EOF
19583 #define $ac_tr_func 1
19586 else
19587 echo "$ac_t""no" 1>&6
19589 done
19591 else
19593 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19594 echo "configure:19595: checking for _sincosl declaration" >&5
19595 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19596 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19597 echo $ac_n "(cached) $ac_c" 1>&6
19598 else
19601 ac_ext=C
19602 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19603 ac_cpp='$CXXCPP $CPPFLAGS'
19604 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19605 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19606 cross_compiling=$ac_cv_prog_cxx_cross
19608 cat > conftest.$ac_ext <<EOF
19609 #line 19610 "configure"
19610 #include "confdefs.h"
19611 #include <math.h>
19612 int main() {
19613 _sincosl(0, 0, 0);
19614 ; return 0; }
19616 if { (eval echo configure:19617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19617 rm -rf conftest*
19618 glibcpp_cv_func__sincosl_use=yes
19619 else
19620 echo "configure: failed program was:" >&5
19621 cat conftest.$ac_ext >&5
19622 rm -rf conftest*
19623 glibcpp_cv_func__sincosl_use=no
19625 rm -f conftest*
19626 ac_ext=c
19627 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19628 ac_cpp='$CPP $CPPFLAGS'
19629 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19630 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19631 cross_compiling=$ac_cv_prog_cc_cross
19637 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19639 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19640 for ac_func in _sincosl
19642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19643 echo "configure:19644: checking for $ac_func" >&5
19644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19645 echo $ac_n "(cached) $ac_c" 1>&6
19646 else
19647 cat > conftest.$ac_ext <<EOF
19648 #line 19649 "configure"
19649 #include "confdefs.h"
19650 /* System header to define __stub macros and hopefully few prototypes,
19651 which can conflict with char $ac_func(); below. */
19652 #include <assert.h>
19653 /* Override any gcc2 internal prototype to avoid an error. */
19654 /* We use char because int might match the return type of a gcc2
19655 builtin and then its argument prototype would still apply. */
19656 char $ac_func();
19658 int main() {
19660 /* The GNU C library defines this for functions which it implements
19661 to always fail with ENOSYS. Some functions are actually named
19662 something starting with __ and the normal name is an alias. */
19663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19664 choke me
19665 #else
19666 $ac_func();
19667 #endif
19669 ; return 0; }
19671 if { (eval echo configure:19672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19672 rm -rf conftest*
19673 eval "ac_cv_func_$ac_func=yes"
19674 else
19675 echo "configure: failed program was:" >&5
19676 cat conftest.$ac_ext >&5
19677 rm -rf conftest*
19678 eval "ac_cv_func_$ac_func=no"
19680 rm -f conftest*
19683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19684 echo "$ac_t""yes" 1>&6
19685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19686 cat >> confdefs.h <<EOF
19687 #define $ac_tr_func 1
19690 else
19691 echo "$ac_t""no" 1>&6
19693 done
19700 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19701 echo "configure:19702: checking for finitel declaration" >&5
19702 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19703 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19704 echo $ac_n "(cached) $ac_c" 1>&6
19705 else
19708 ac_ext=C
19709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19710 ac_cpp='$CXXCPP $CPPFLAGS'
19711 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19712 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19713 cross_compiling=$ac_cv_prog_cxx_cross
19715 cat > conftest.$ac_ext <<EOF
19716 #line 19717 "configure"
19717 #include "confdefs.h"
19718 #include <math.h>
19719 #ifdef HAVE_IEEEFP_H
19720 #include <ieeefp.h>
19721 #endif
19723 int main() {
19724 finitel(0);
19725 ; return 0; }
19727 if { (eval echo configure:19728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19728 rm -rf conftest*
19729 glibcpp_cv_func_finitel_use=yes
19730 else
19731 echo "configure: failed program was:" >&5
19732 cat conftest.$ac_ext >&5
19733 rm -rf conftest*
19734 glibcpp_cv_func_finitel_use=no
19736 rm -f conftest*
19737 ac_ext=c
19738 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19739 ac_cpp='$CPP $CPPFLAGS'
19740 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19741 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19742 cross_compiling=$ac_cv_prog_cc_cross
19748 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19750 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19751 for ac_func in finitel
19753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19754 echo "configure:19755: checking for $ac_func" >&5
19755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19756 echo $ac_n "(cached) $ac_c" 1>&6
19757 else
19758 cat > conftest.$ac_ext <<EOF
19759 #line 19760 "configure"
19760 #include "confdefs.h"
19761 /* System header to define __stub macros and hopefully few prototypes,
19762 which can conflict with char $ac_func(); below. */
19763 #include <assert.h>
19764 /* Override any gcc2 internal prototype to avoid an error. */
19765 /* We use char because int might match the return type of a gcc2
19766 builtin and then its argument prototype would still apply. */
19767 char $ac_func();
19769 int main() {
19771 /* The GNU C library defines this for functions which it implements
19772 to always fail with ENOSYS. Some functions are actually named
19773 something starting with __ and the normal name is an alias. */
19774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19775 choke me
19776 #else
19777 $ac_func();
19778 #endif
19780 ; return 0; }
19782 if { (eval echo configure:19783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19783 rm -rf conftest*
19784 eval "ac_cv_func_$ac_func=yes"
19785 else
19786 echo "configure: failed program was:" >&5
19787 cat conftest.$ac_ext >&5
19788 rm -rf conftest*
19789 eval "ac_cv_func_$ac_func=no"
19791 rm -f conftest*
19794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19795 echo "$ac_t""yes" 1>&6
19796 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19797 cat >> confdefs.h <<EOF
19798 #define $ac_tr_func 1
19801 else
19802 echo "$ac_t""no" 1>&6
19804 done
19806 else
19808 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19809 echo "configure:19810: checking for _finitel declaration" >&5
19810 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19811 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19812 echo $ac_n "(cached) $ac_c" 1>&6
19813 else
19816 ac_ext=C
19817 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19818 ac_cpp='$CXXCPP $CPPFLAGS'
19819 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19820 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19821 cross_compiling=$ac_cv_prog_cxx_cross
19823 cat > conftest.$ac_ext <<EOF
19824 #line 19825 "configure"
19825 #include "confdefs.h"
19826 #include <math.h>
19827 #ifdef HAVE_IEEEFP_H
19828 #include <ieeefp.h>
19829 #endif
19831 int main() {
19832 _finitel(0);
19833 ; return 0; }
19835 if { (eval echo configure:19836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19836 rm -rf conftest*
19837 glibcpp_cv_func__finitel_use=yes
19838 else
19839 echo "configure: failed program was:" >&5
19840 cat conftest.$ac_ext >&5
19841 rm -rf conftest*
19842 glibcpp_cv_func__finitel_use=no
19844 rm -f conftest*
19845 ac_ext=c
19846 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19847 ac_cpp='$CPP $CPPFLAGS'
19848 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19849 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19850 cross_compiling=$ac_cv_prog_cc_cross
19856 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19858 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19859 for ac_func in _finitel
19861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19862 echo "configure:19863: checking for $ac_func" >&5
19863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19864 echo $ac_n "(cached) $ac_c" 1>&6
19865 else
19866 cat > conftest.$ac_ext <<EOF
19867 #line 19868 "configure"
19868 #include "confdefs.h"
19869 /* System header to define __stub macros and hopefully few prototypes,
19870 which can conflict with char $ac_func(); below. */
19871 #include <assert.h>
19872 /* Override any gcc2 internal prototype to avoid an error. */
19873 /* We use char because int might match the return type of a gcc2
19874 builtin and then its argument prototype would still apply. */
19875 char $ac_func();
19877 int main() {
19879 /* The GNU C library defines this for functions which it implements
19880 to always fail with ENOSYS. Some functions are actually named
19881 something starting with __ and the normal name is an alias. */
19882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19883 choke me
19884 #else
19885 $ac_func();
19886 #endif
19888 ; return 0; }
19890 if { (eval echo configure:19891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19891 rm -rf conftest*
19892 eval "ac_cv_func_$ac_func=yes"
19893 else
19894 echo "configure: failed program was:" >&5
19895 cat conftest.$ac_ext >&5
19896 rm -rf conftest*
19897 eval "ac_cv_func_$ac_func=no"
19899 rm -f conftest*
19902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19903 echo "$ac_t""yes" 1>&6
19904 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19905 cat >> confdefs.h <<EOF
19906 #define $ac_tr_func 1
19909 else
19910 echo "$ac_t""no" 1>&6
19912 done
19920 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19921 echo "configure:19922: checking for _float trig functions" >&5
19922 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19923 echo $ac_n "(cached) $ac_c" 1>&6
19924 else
19927 ac_ext=C
19928 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19929 ac_cpp='$CXXCPP $CPPFLAGS'
19930 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19931 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19932 cross_compiling=$ac_cv_prog_cxx_cross
19934 cat > conftest.$ac_ext <<EOF
19935 #line 19936 "configure"
19936 #include "confdefs.h"
19937 #include <math.h>
19938 int main() {
19939 `for x in _acosf _asinf _atanf \
19940 _cosf _sinf _tanf \
19941 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
19942 ; return 0; }
19944 if { (eval echo configure:19945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19945 rm -rf conftest*
19946 glibcpp_cv_func__float_trig_use=yes
19947 else
19948 echo "configure: failed program was:" >&5
19949 cat conftest.$ac_ext >&5
19950 rm -rf conftest*
19951 glibcpp_cv_func__float_trig_use=no
19953 rm -f conftest*
19954 ac_ext=c
19955 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19956 ac_cpp='$CPP $CPPFLAGS'
19957 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19958 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19959 cross_compiling=$ac_cv_prog_cc_cross
19963 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
19964 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
19965 for ac_func in _acosf _asinf _atanf \
19966 _cosf _sinf _tanf \
19967 _coshf _sinhf _tanhf
19969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19970 echo "configure:19971: checking for $ac_func" >&5
19971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19972 echo $ac_n "(cached) $ac_c" 1>&6
19973 else
19974 cat > conftest.$ac_ext <<EOF
19975 #line 19976 "configure"
19976 #include "confdefs.h"
19977 /* System header to define __stub macros and hopefully few prototypes,
19978 which can conflict with char $ac_func(); below. */
19979 #include <assert.h>
19980 /* Override any gcc2 internal prototype to avoid an error. */
19981 /* We use char because int might match the return type of a gcc2
19982 builtin and then its argument prototype would still apply. */
19983 char $ac_func();
19985 int main() {
19987 /* The GNU C library defines this for functions which it implements
19988 to always fail with ENOSYS. Some functions are actually named
19989 something starting with __ and the normal name is an alias. */
19990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19991 choke me
19992 #else
19993 $ac_func();
19994 #endif
19996 ; return 0; }
19998 if { (eval echo configure:19999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19999 rm -rf conftest*
20000 eval "ac_cv_func_$ac_func=yes"
20001 else
20002 echo "configure: failed program was:" >&5
20003 cat conftest.$ac_ext >&5
20004 rm -rf conftest*
20005 eval "ac_cv_func_$ac_func=no"
20007 rm -f conftest*
20010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20011 echo "$ac_t""yes" 1>&6
20012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20013 cat >> confdefs.h <<EOF
20014 #define $ac_tr_func 1
20017 else
20018 echo "$ac_t""no" 1>&6
20020 done
20025 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20026 echo "configure:20027: checking for _float round functions" >&5
20027 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20028 echo $ac_n "(cached) $ac_c" 1>&6
20029 else
20032 ac_ext=C
20033 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20034 ac_cpp='$CXXCPP $CPPFLAGS'
20035 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20036 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20037 cross_compiling=$ac_cv_prog_cxx_cross
20039 cat > conftest.$ac_ext <<EOF
20040 #line 20041 "configure"
20041 #include "confdefs.h"
20042 #include <math.h>
20043 int main() {
20044 `for x in _ceilf _floorf; do echo "$x (0);"; done`
20045 ; return 0; }
20047 if { (eval echo configure:20048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20048 rm -rf conftest*
20049 glibcpp_cv_func__float_round_use=yes
20050 else
20051 echo "configure: failed program was:" >&5
20052 cat conftest.$ac_ext >&5
20053 rm -rf conftest*
20054 glibcpp_cv_func__float_round_use=no
20056 rm -f conftest*
20057 ac_ext=c
20058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20059 ac_cpp='$CPP $CPPFLAGS'
20060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20062 cross_compiling=$ac_cv_prog_cc_cross
20066 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20067 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20068 for ac_func in _ceilf _floorf
20070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20071 echo "configure:20072: checking for $ac_func" >&5
20072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20073 echo $ac_n "(cached) $ac_c" 1>&6
20074 else
20075 cat > conftest.$ac_ext <<EOF
20076 #line 20077 "configure"
20077 #include "confdefs.h"
20078 /* System header to define __stub macros and hopefully few prototypes,
20079 which can conflict with char $ac_func(); below. */
20080 #include <assert.h>
20081 /* Override any gcc2 internal prototype to avoid an error. */
20082 /* We use char because int might match the return type of a gcc2
20083 builtin and then its argument prototype would still apply. */
20084 char $ac_func();
20086 int main() {
20088 /* The GNU C library defines this for functions which it implements
20089 to always fail with ENOSYS. Some functions are actually named
20090 something starting with __ and the normal name is an alias. */
20091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20092 choke me
20093 #else
20094 $ac_func();
20095 #endif
20097 ; return 0; }
20099 if { (eval echo configure:20100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20100 rm -rf conftest*
20101 eval "ac_cv_func_$ac_func=yes"
20102 else
20103 echo "configure: failed program was:" >&5
20104 cat conftest.$ac_ext >&5
20105 rm -rf conftest*
20106 eval "ac_cv_func_$ac_func=no"
20108 rm -f conftest*
20111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20112 echo "$ac_t""yes" 1>&6
20113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20114 cat >> confdefs.h <<EOF
20115 #define $ac_tr_func 1
20118 else
20119 echo "$ac_t""no" 1>&6
20121 done
20127 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20128 echo "configure:20129: checking for _long double trig functions" >&5
20129 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20130 echo $ac_n "(cached) $ac_c" 1>&6
20131 else
20134 ac_ext=C
20135 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20136 ac_cpp='$CXXCPP $CPPFLAGS'
20137 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20138 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20139 cross_compiling=$ac_cv_prog_cxx_cross
20141 cat > conftest.$ac_ext <<EOF
20142 #line 20143 "configure"
20143 #include "confdefs.h"
20144 #include <math.h>
20145 int main() {
20146 `for x in _acosl _asinl _atanl \
20147 _cosl _sinl _tanl \
20148 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
20149 ; return 0; }
20151 if { (eval echo configure:20152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20152 rm -rf conftest*
20153 glibcpp_cv_func__long_double_trig_use=yes
20154 else
20155 echo "configure: failed program was:" >&5
20156 cat conftest.$ac_ext >&5
20157 rm -rf conftest*
20158 glibcpp_cv_func__long_double_trig_use=no
20160 rm -f conftest*
20161 ac_ext=c
20162 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20163 ac_cpp='$CPP $CPPFLAGS'
20164 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20165 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20166 cross_compiling=$ac_cv_prog_cc_cross
20170 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20171 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20172 for ac_func in _acosl _asinl _atanl \
20173 _cosl _sinl _tanl \
20174 _coshl _sinhl _tanhl
20176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20177 echo "configure:20178: checking for $ac_func" >&5
20178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20179 echo $ac_n "(cached) $ac_c" 1>&6
20180 else
20181 cat > conftest.$ac_ext <<EOF
20182 #line 20183 "configure"
20183 #include "confdefs.h"
20184 /* System header to define __stub macros and hopefully few prototypes,
20185 which can conflict with char $ac_func(); below. */
20186 #include <assert.h>
20187 /* Override any gcc2 internal prototype to avoid an error. */
20188 /* We use char because int might match the return type of a gcc2
20189 builtin and then its argument prototype would still apply. */
20190 char $ac_func();
20192 int main() {
20194 /* The GNU C library defines this for functions which it implements
20195 to always fail with ENOSYS. Some functions are actually named
20196 something starting with __ and the normal name is an alias. */
20197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20198 choke me
20199 #else
20200 $ac_func();
20201 #endif
20203 ; return 0; }
20205 if { (eval echo configure:20206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20206 rm -rf conftest*
20207 eval "ac_cv_func_$ac_func=yes"
20208 else
20209 echo "configure: failed program was:" >&5
20210 cat conftest.$ac_ext >&5
20211 rm -rf conftest*
20212 eval "ac_cv_func_$ac_func=no"
20214 rm -f conftest*
20217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20218 echo "$ac_t""yes" 1>&6
20219 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20220 cat >> confdefs.h <<EOF
20221 #define $ac_tr_func 1
20224 else
20225 echo "$ac_t""no" 1>&6
20227 done
20232 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20233 echo "configure:20234: checking for _long double round functions" >&5
20234 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20235 echo $ac_n "(cached) $ac_c" 1>&6
20236 else
20239 ac_ext=C
20240 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20241 ac_cpp='$CXXCPP $CPPFLAGS'
20242 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20243 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20244 cross_compiling=$ac_cv_prog_cxx_cross
20246 cat > conftest.$ac_ext <<EOF
20247 #line 20248 "configure"
20248 #include "confdefs.h"
20249 #include <math.h>
20250 int main() {
20251 `for x in _ceill _floorl; do echo "$x (0);"; done`
20252 ; return 0; }
20254 if { (eval echo configure:20255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20255 rm -rf conftest*
20256 glibcpp_cv_func__long_double_round_use=yes
20257 else
20258 echo "configure: failed program was:" >&5
20259 cat conftest.$ac_ext >&5
20260 rm -rf conftest*
20261 glibcpp_cv_func__long_double_round_use=no
20263 rm -f conftest*
20264 ac_ext=c
20265 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20266 ac_cpp='$CPP $CPPFLAGS'
20267 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20268 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20269 cross_compiling=$ac_cv_prog_cc_cross
20273 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20274 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20275 for ac_func in _ceill _floorl
20277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20278 echo "configure:20279: checking for $ac_func" >&5
20279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20280 echo $ac_n "(cached) $ac_c" 1>&6
20281 else
20282 cat > conftest.$ac_ext <<EOF
20283 #line 20284 "configure"
20284 #include "confdefs.h"
20285 /* System header to define __stub macros and hopefully few prototypes,
20286 which can conflict with char $ac_func(); below. */
20287 #include <assert.h>
20288 /* Override any gcc2 internal prototype to avoid an error. */
20289 /* We use char because int might match the return type of a gcc2
20290 builtin and then its argument prototype would still apply. */
20291 char $ac_func();
20293 int main() {
20295 /* The GNU C library defines this for functions which it implements
20296 to always fail with ENOSYS. Some functions are actually named
20297 something starting with __ and the normal name is an alias. */
20298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20299 choke me
20300 #else
20301 $ac_func();
20302 #endif
20304 ; return 0; }
20306 if { (eval echo configure:20307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20307 rm -rf conftest*
20308 eval "ac_cv_func_$ac_func=yes"
20309 else
20310 echo "configure: failed program was:" >&5
20311 cat conftest.$ac_ext >&5
20312 rm -rf conftest*
20313 eval "ac_cv_func_$ac_func=no"
20315 rm -f conftest*
20318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20319 echo "$ac_t""yes" 1>&6
20320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20321 cat >> confdefs.h <<EOF
20322 #define $ac_tr_func 1
20325 else
20326 echo "$ac_t""no" 1>&6
20328 done
20333 LIBS="$ac_save_LIBS"
20334 CXXFLAGS="$ac_save_CXXFLAGS"
20337 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
20338 echo "configure:20339: checking for main in -lm" >&5
20339 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
20340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20341 echo $ac_n "(cached) $ac_c" 1>&6
20342 else
20343 ac_save_LIBS="$LIBS"
20344 LIBS="-lm $LIBS"
20345 cat > conftest.$ac_ext <<EOF
20346 #line 20347 "configure"
20347 #include "confdefs.h"
20349 int main() {
20350 main()
20351 ; return 0; }
20353 if { (eval echo configure:20354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20354 rm -rf conftest*
20355 eval "ac_cv_lib_$ac_lib_var=yes"
20356 else
20357 echo "configure: failed program was:" >&5
20358 cat conftest.$ac_ext >&5
20359 rm -rf conftest*
20360 eval "ac_cv_lib_$ac_lib_var=no"
20362 rm -f conftest*
20363 LIBS="$ac_save_LIBS"
20366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20367 echo "$ac_t""yes" 1>&6
20368 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
20369 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
20370 cat >> confdefs.h <<EOF
20371 #define $ac_tr_lib 1
20374 LIBS="-lm $LIBS"
20376 else
20377 echo "$ac_t""no" 1>&6
20380 for ac_func in nan copysignf
20382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20383 echo "configure:20384: checking for $ac_func" >&5
20384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20385 echo $ac_n "(cached) $ac_c" 1>&6
20386 else
20387 cat > conftest.$ac_ext <<EOF
20388 #line 20389 "configure"
20389 #include "confdefs.h"
20390 /* System header to define __stub macros and hopefully few prototypes,
20391 which can conflict with char $ac_func(); below. */
20392 #include <assert.h>
20393 /* Override any gcc2 internal prototype to avoid an error. */
20394 /* We use char because int might match the return type of a gcc2
20395 builtin and then its argument prototype would still apply. */
20396 char $ac_func();
20398 int main() {
20400 /* The GNU C library defines this for functions which it implements
20401 to always fail with ENOSYS. Some functions are actually named
20402 something starting with __ and the normal name is an alias. */
20403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20404 choke me
20405 #else
20406 $ac_func();
20407 #endif
20409 ; return 0; }
20411 if { (eval echo configure:20412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20412 rm -rf conftest*
20413 eval "ac_cv_func_$ac_func=yes"
20414 else
20415 echo "configure: failed program was:" >&5
20416 cat conftest.$ac_ext >&5
20417 rm -rf conftest*
20418 eval "ac_cv_func_$ac_func=no"
20420 rm -f conftest*
20423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20424 echo "$ac_t""yes" 1>&6
20425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20426 cat >> confdefs.h <<EOF
20427 #define $ac_tr_func 1
20430 else
20431 echo "$ac_t""no" 1>&6
20432 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
20434 done
20437 for ac_func in __signbit
20439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20440 echo "configure:20441: checking for $ac_func" >&5
20441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20442 echo $ac_n "(cached) $ac_c" 1>&6
20443 else
20444 cat > conftest.$ac_ext <<EOF
20445 #line 20446 "configure"
20446 #include "confdefs.h"
20447 /* System header to define __stub macros and hopefully few prototypes,
20448 which can conflict with char $ac_func(); below. */
20449 #include <assert.h>
20450 /* Override any gcc2 internal prototype to avoid an error. */
20451 /* We use char because int might match the return type of a gcc2
20452 builtin and then its argument prototype would still apply. */
20453 char $ac_func();
20455 int main() {
20457 /* The GNU C library defines this for functions which it implements
20458 to always fail with ENOSYS. Some functions are actually named
20459 something starting with __ and the normal name is an alias. */
20460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20461 choke me
20462 #else
20463 $ac_func();
20464 #endif
20466 ; return 0; }
20468 if { (eval echo configure:20469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20469 rm -rf conftest*
20470 eval "ac_cv_func_$ac_func=yes"
20471 else
20472 echo "configure: failed program was:" >&5
20473 cat conftest.$ac_ext >&5
20474 rm -rf conftest*
20475 eval "ac_cv_func_$ac_func=no"
20477 rm -f conftest*
20480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20481 echo "$ac_t""yes" 1>&6
20482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20483 cat >> confdefs.h <<EOF
20484 #define $ac_tr_func 1
20487 else
20488 echo "$ac_t""no" 1>&6
20489 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
20491 done
20493 for ac_func in __signbitf
20495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20496 echo "configure:20497: checking for $ac_func" >&5
20497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20498 echo $ac_n "(cached) $ac_c" 1>&6
20499 else
20500 cat > conftest.$ac_ext <<EOF
20501 #line 20502 "configure"
20502 #include "confdefs.h"
20503 /* System header to define __stub macros and hopefully few prototypes,
20504 which can conflict with char $ac_func(); below. */
20505 #include <assert.h>
20506 /* Override any gcc2 internal prototype to avoid an error. */
20507 /* We use char because int might match the return type of a gcc2
20508 builtin and then its argument prototype would still apply. */
20509 char $ac_func();
20511 int main() {
20513 /* The GNU C library defines this for functions which it implements
20514 to always fail with ENOSYS. Some functions are actually named
20515 something starting with __ and the normal name is an alias. */
20516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20517 choke me
20518 #else
20519 $ac_func();
20520 #endif
20522 ; return 0; }
20524 if { (eval echo configure:20525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20525 rm -rf conftest*
20526 eval "ac_cv_func_$ac_func=yes"
20527 else
20528 echo "configure: failed program was:" >&5
20529 cat conftest.$ac_ext >&5
20530 rm -rf conftest*
20531 eval "ac_cv_func_$ac_func=no"
20533 rm -f conftest*
20536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20537 echo "$ac_t""yes" 1>&6
20538 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20539 cat >> confdefs.h <<EOF
20540 #define $ac_tr_func 1
20543 else
20544 echo "$ac_t""no" 1>&6
20545 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
20547 done
20550 if test x$ac_cv_func_copysignl = x"yes"; then
20551 for ac_func in __signbitl
20553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20554 echo "configure:20555: checking for $ac_func" >&5
20555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20556 echo $ac_n "(cached) $ac_c" 1>&6
20557 else
20558 cat > conftest.$ac_ext <<EOF
20559 #line 20560 "configure"
20560 #include "confdefs.h"
20561 /* System header to define __stub macros and hopefully few prototypes,
20562 which can conflict with char $ac_func(); below. */
20563 #include <assert.h>
20564 /* Override any gcc2 internal prototype to avoid an error. */
20565 /* We use char because int might match the return type of a gcc2
20566 builtin and then its argument prototype would still apply. */
20567 char $ac_func();
20569 int main() {
20571 /* The GNU C library defines this for functions which it implements
20572 to always fail with ENOSYS. Some functions are actually named
20573 something starting with __ and the normal name is an alias. */
20574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20575 choke me
20576 #else
20577 $ac_func();
20578 #endif
20580 ; return 0; }
20582 if { (eval echo configure:20583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20583 rm -rf conftest*
20584 eval "ac_cv_func_$ac_func=yes"
20585 else
20586 echo "configure: failed program was:" >&5
20587 cat conftest.$ac_ext >&5
20588 rm -rf conftest*
20589 eval "ac_cv_func_$ac_func=no"
20591 rm -f conftest*
20594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20595 echo "$ac_t""yes" 1>&6
20596 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20597 cat >> confdefs.h <<EOF
20598 #define $ac_tr_func 1
20601 else
20602 echo "$ac_t""no" 1>&6
20603 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
20605 done
20613 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
20614 echo "configure:20615: checking for mbstate_t" >&5
20615 cat > conftest.$ac_ext <<EOF
20616 #line 20617 "configure"
20617 #include "confdefs.h"
20618 #include <wchar.h>
20619 int main() {
20620 mbstate_t teststate;
20621 ; return 0; }
20623 if { (eval echo configure:20624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20624 rm -rf conftest*
20625 have_mbstate_t=yes
20626 else
20627 echo "configure: failed program was:" >&5
20628 cat conftest.$ac_ext >&5
20629 rm -rf conftest*
20630 have_mbstate_t=no
20632 rm -f conftest*
20633 echo "$ac_t""$have_mbstate_t" 1>&6
20634 if test x"$have_mbstate_t" = xyes; then
20635 cat >> confdefs.h <<\EOF
20636 #define HAVE_MBSTATE_T 1
20641 for ac_hdr in wchar.h
20643 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20644 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20645 echo "configure:20646: checking for $ac_hdr" >&5
20646 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20647 echo $ac_n "(cached) $ac_c" 1>&6
20648 else
20649 cat > conftest.$ac_ext <<EOF
20650 #line 20651 "configure"
20651 #include "confdefs.h"
20652 #include <$ac_hdr>
20654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20655 { (eval echo configure:20656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20657 if test -z "$ac_err"; then
20658 rm -rf conftest*
20659 eval "ac_cv_header_$ac_safe=yes"
20660 else
20661 echo "$ac_err" >&5
20662 echo "configure: failed program was:" >&5
20663 cat conftest.$ac_ext >&5
20664 rm -rf conftest*
20665 eval "ac_cv_header_$ac_safe=no"
20667 rm -f conftest*
20669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20670 echo "$ac_t""yes" 1>&6
20671 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20672 cat >> confdefs.h <<EOF
20673 #define $ac_tr_hdr 1
20675 ac_has_wchar_h=yes
20676 else
20677 echo "$ac_t""no" 1>&6
20678 ac_has_wchar_h=no
20680 done
20682 for ac_hdr in wctype.h
20684 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20685 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20686 echo "configure:20687: checking for $ac_hdr" >&5
20687 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20688 echo $ac_n "(cached) $ac_c" 1>&6
20689 else
20690 cat > conftest.$ac_ext <<EOF
20691 #line 20692 "configure"
20692 #include "confdefs.h"
20693 #include <$ac_hdr>
20695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20696 { (eval echo configure:20697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20698 if test -z "$ac_err"; then
20699 rm -rf conftest*
20700 eval "ac_cv_header_$ac_safe=yes"
20701 else
20702 echo "$ac_err" >&5
20703 echo "configure: failed program was:" >&5
20704 cat conftest.$ac_ext >&5
20705 rm -rf conftest*
20706 eval "ac_cv_header_$ac_safe=no"
20708 rm -f conftest*
20710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20711 echo "$ac_t""yes" 1>&6
20712 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20713 cat >> confdefs.h <<EOF
20714 #define $ac_tr_hdr 1
20716 ac_has_wctype_h=yes
20717 else
20718 echo "$ac_t""no" 1>&6
20719 ac_has_wctype_h=no
20721 done
20724 if test x"$ac_has_wchar_h" = xyes &&
20725 test x"$ac_has_wctype_h" = xyes &&
20726 test x"$enable_c_mbchar" != xno; then
20728 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
20729 echo "configure:20730: checking for WCHAR_MIN and WCHAR_MAX" >&5
20730 cat > conftest.$ac_ext <<EOF
20731 #line 20732 "configure"
20732 #include "confdefs.h"
20733 #include <wchar.h>
20734 int main() {
20735 int i = WCHAR_MIN; int j = WCHAR_MAX;
20736 ; return 0; }
20738 if { (eval echo configure:20739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20739 rm -rf conftest*
20740 has_wchar_minmax=yes
20741 else
20742 echo "configure: failed program was:" >&5
20743 cat conftest.$ac_ext >&5
20744 rm -rf conftest*
20745 has_wchar_minmax=no
20747 rm -f conftest*
20748 echo "$ac_t""$has_wchar_minmax" 1>&6
20750 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
20751 echo "configure:20752: checking for WEOF" >&5
20752 cat > conftest.$ac_ext <<EOF
20753 #line 20754 "configure"
20754 #include "confdefs.h"
20756 #include <wchar.h>
20757 #include <stddef.h>
20758 int main() {
20759 wint_t i = WEOF;
20760 ; return 0; }
20762 if { (eval echo configure:20763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20763 rm -rf conftest*
20764 has_weof=yes
20765 else
20766 echo "configure: failed program was:" >&5
20767 cat conftest.$ac_ext >&5
20768 rm -rf conftest*
20769 has_weof=no
20771 rm -f conftest*
20772 echo "$ac_t""$has_weof" 1>&6
20774 ac_wfuncs=yes
20775 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
20777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20778 echo "configure:20779: checking for $ac_func" >&5
20779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20780 echo $ac_n "(cached) $ac_c" 1>&6
20781 else
20782 cat > conftest.$ac_ext <<EOF
20783 #line 20784 "configure"
20784 #include "confdefs.h"
20785 /* System header to define __stub macros and hopefully few prototypes,
20786 which can conflict with char $ac_func(); below. */
20787 #include <assert.h>
20788 /* Override any gcc2 internal prototype to avoid an error. */
20789 /* We use char because int might match the return type of a gcc2
20790 builtin and then its argument prototype would still apply. */
20791 char $ac_func();
20793 int main() {
20795 /* The GNU C library defines this for functions which it implements
20796 to always fail with ENOSYS. Some functions are actually named
20797 something starting with __ and the normal name is an alias. */
20798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20799 choke me
20800 #else
20801 $ac_func();
20802 #endif
20804 ; return 0; }
20806 if { (eval echo configure:20807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20807 rm -rf conftest*
20808 eval "ac_cv_func_$ac_func=yes"
20809 else
20810 echo "configure: failed program was:" >&5
20811 cat conftest.$ac_ext >&5
20812 rm -rf conftest*
20813 eval "ac_cv_func_$ac_func=no"
20815 rm -f conftest*
20818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20819 echo "$ac_t""yes" 1>&6
20820 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20821 cat >> confdefs.h <<EOF
20822 #define $ac_tr_func 1
20825 else
20826 echo "$ac_t""no" 1>&6
20828 ac_wfuncs=no
20830 done
20833 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
20834 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
20835 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
20836 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
20837 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
20838 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
20840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20841 echo "configure:20842: checking for $ac_func" >&5
20842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20843 echo $ac_n "(cached) $ac_c" 1>&6
20844 else
20845 cat > conftest.$ac_ext <<EOF
20846 #line 20847 "configure"
20847 #include "confdefs.h"
20848 /* System header to define __stub macros and hopefully few prototypes,
20849 which can conflict with char $ac_func(); below. */
20850 #include <assert.h>
20851 /* Override any gcc2 internal prototype to avoid an error. */
20852 /* We use char because int might match the return type of a gcc2
20853 builtin and then its argument prototype would still apply. */
20854 char $ac_func();
20856 int main() {
20858 /* The GNU C library defines this for functions which it implements
20859 to always fail with ENOSYS. Some functions are actually named
20860 something starting with __ and the normal name is an alias. */
20861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20862 choke me
20863 #else
20864 $ac_func();
20865 #endif
20867 ; return 0; }
20869 if { (eval echo configure:20870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20870 rm -rf conftest*
20871 eval "ac_cv_func_$ac_func=yes"
20872 else
20873 echo "configure: failed program was:" >&5
20874 cat conftest.$ac_ext >&5
20875 rm -rf conftest*
20876 eval "ac_cv_func_$ac_func=no"
20878 rm -f conftest*
20881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20882 echo "$ac_t""yes" 1>&6
20883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20884 cat >> confdefs.h <<EOF
20885 #define $ac_tr_func 1
20888 else
20889 echo "$ac_t""no" 1>&6
20891 ac_wfuncs=no
20893 done
20896 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
20897 echo "configure:20898: checking for ISO C99 wchar_t support" >&5
20898 if test x"$has_weof" = xyes &&
20899 test x"$has_wchar_minmax" = xyes &&
20900 test x"$ac_wfuncs" = xyes; then
20901 ac_isoC99_wchar_t=yes
20902 else
20903 ac_isoC99_wchar_t=no
20905 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
20907 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
20908 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
20909 echo "configure:20910: checking for iconv.h" >&5
20910 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20911 echo $ac_n "(cached) $ac_c" 1>&6
20912 else
20913 cat > conftest.$ac_ext <<EOF
20914 #line 20915 "configure"
20915 #include "confdefs.h"
20916 #include <iconv.h>
20918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20919 { (eval echo configure:20920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20921 if test -z "$ac_err"; then
20922 rm -rf conftest*
20923 eval "ac_cv_header_$ac_safe=yes"
20924 else
20925 echo "$ac_err" >&5
20926 echo "configure: failed program was:" >&5
20927 cat conftest.$ac_ext >&5
20928 rm -rf conftest*
20929 eval "ac_cv_header_$ac_safe=no"
20931 rm -f conftest*
20933 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20934 echo "$ac_t""yes" 1>&6
20935 ac_has_iconv_h=yes
20936 else
20937 echo "$ac_t""no" 1>&6
20938 ac_has_iconv_h=no
20941 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
20942 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
20943 echo "configure:20944: checking for langinfo.h" >&5
20944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20945 echo $ac_n "(cached) $ac_c" 1>&6
20946 else
20947 cat > conftest.$ac_ext <<EOF
20948 #line 20949 "configure"
20949 #include "confdefs.h"
20950 #include <langinfo.h>
20952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20953 { (eval echo configure:20954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20955 if test -z "$ac_err"; then
20956 rm -rf conftest*
20957 eval "ac_cv_header_$ac_safe=yes"
20958 else
20959 echo "$ac_err" >&5
20960 echo "configure: failed program was:" >&5
20961 cat conftest.$ac_ext >&5
20962 rm -rf conftest*
20963 eval "ac_cv_header_$ac_safe=no"
20965 rm -f conftest*
20967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20968 echo "$ac_t""yes" 1>&6
20969 ac_has_langinfo_h=yes
20970 else
20971 echo "$ac_t""no" 1>&6
20972 ac_has_langinfo_h=no
20976 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
20977 echo "configure:20978: checking for iconv in -liconv" >&5
20978 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
20979 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20980 echo $ac_n "(cached) $ac_c" 1>&6
20981 else
20982 ac_save_LIBS="$LIBS"
20983 LIBS="-liconv $LIBS"
20984 cat > conftest.$ac_ext <<EOF
20985 #line 20986 "configure"
20986 #include "confdefs.h"
20987 /* Override any gcc2 internal prototype to avoid an error. */
20988 /* We use char because int might match the return type of a gcc2
20989 builtin and then its argument prototype would still apply. */
20990 char iconv();
20992 int main() {
20993 iconv()
20994 ; return 0; }
20996 if { (eval echo configure:20997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20997 rm -rf conftest*
20998 eval "ac_cv_lib_$ac_lib_var=yes"
20999 else
21000 echo "configure: failed program was:" >&5
21001 cat conftest.$ac_ext >&5
21002 rm -rf conftest*
21003 eval "ac_cv_lib_$ac_lib_var=no"
21005 rm -f conftest*
21006 LIBS="$ac_save_LIBS"
21009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21010 echo "$ac_t""yes" 1>&6
21011 libiconv="-liconv"
21012 else
21013 echo "$ac_t""no" 1>&6
21016 ac_save_LIBS="$LIBS"
21017 LIBS="$LIBS $libiconv"
21019 for ac_func in iconv_open iconv_close iconv nl_langinfo
21021 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21022 echo "configure:21023: checking for $ac_func" >&5
21023 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21024 echo $ac_n "(cached) $ac_c" 1>&6
21025 else
21026 cat > conftest.$ac_ext <<EOF
21027 #line 21028 "configure"
21028 #include "confdefs.h"
21029 /* System header to define __stub macros and hopefully few prototypes,
21030 which can conflict with char $ac_func(); below. */
21031 #include <assert.h>
21032 /* Override any gcc2 internal prototype to avoid an error. */
21033 /* We use char because int might match the return type of a gcc2
21034 builtin and then its argument prototype would still apply. */
21035 char $ac_func();
21037 int main() {
21039 /* The GNU C library defines this for functions which it implements
21040 to always fail with ENOSYS. Some functions are actually named
21041 something starting with __ and the normal name is an alias. */
21042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21043 choke me
21044 #else
21045 $ac_func();
21046 #endif
21048 ; return 0; }
21050 if { (eval echo configure:21051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21051 rm -rf conftest*
21052 eval "ac_cv_func_$ac_func=yes"
21053 else
21054 echo "configure: failed program was:" >&5
21055 cat conftest.$ac_ext >&5
21056 rm -rf conftest*
21057 eval "ac_cv_func_$ac_func=no"
21059 rm -f conftest*
21062 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21063 echo "$ac_t""yes" 1>&6
21064 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21065 cat >> confdefs.h <<EOF
21066 #define $ac_tr_func 1
21069 ac_XPG2funcs=yes
21070 else
21071 echo "$ac_t""no" 1>&6
21072 ac_XPG2funcs=no
21074 done
21077 LIBS="$ac_save_LIBS"
21079 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
21080 echo "configure:21081: checking for XPG2 wchar_t support" >&5
21081 if test x"$ac_has_iconv_h" = xyes &&
21082 test x"$ac_has_langinfo_h" = xyes &&
21083 test x"$ac_XPG2funcs" = xyes; then
21084 ac_XPG2_wchar_t=yes
21085 else
21086 ac_XPG2_wchar_t=no
21088 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
21090 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
21091 echo "configure:21092: checking for enabled wchar_t specializations" >&5
21092 if test x"$ac_isoC99_wchar_t" = xyes &&
21093 test x"$ac_XPG2_wchar_t" = xyes; then
21094 cat >> confdefs.h <<\EOF
21095 #define _GLIBCPP_USE_WCHAR_T 1
21098 echo "$ac_t"""yes"" 1>&6
21099 else
21100 echo "$ac_t"""no"" 1>&6
21102 else
21103 echo "configure: warning: wchar_t support disabled." 1>&2
21107 ac_test_CXXFLAGS="${CXXFLAGS+set}"
21108 ac_save_CXXFLAGS="$CXXFLAGS"
21109 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
21112 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
21113 echo "configure:21114: checking for strtold declaration" >&5
21114 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
21115 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
21116 echo $ac_n "(cached) $ac_c" 1>&6
21117 else
21120 ac_ext=C
21121 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21122 ac_cpp='$CXXCPP $CPPFLAGS'
21123 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21124 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21125 cross_compiling=$ac_cv_prog_cxx_cross
21127 cat > conftest.$ac_ext <<EOF
21128 #line 21129 "configure"
21129 #include "confdefs.h"
21130 #include <stdlib.h>
21131 int main() {
21132 strtold(0, 0);
21133 ; return 0; }
21135 if { (eval echo configure:21136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21136 rm -rf conftest*
21137 glibcpp_cv_func_strtold_use=yes
21138 else
21139 echo "configure: failed program was:" >&5
21140 cat conftest.$ac_ext >&5
21141 rm -rf conftest*
21142 glibcpp_cv_func_strtold_use=no
21144 rm -f conftest*
21145 ac_ext=c
21146 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21147 ac_cpp='$CPP $CPPFLAGS'
21148 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21149 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21150 cross_compiling=$ac_cv_prog_cc_cross
21156 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
21157 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
21158 for ac_func in strtold
21160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21161 echo "configure:21162: checking for $ac_func" >&5
21162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21163 echo $ac_n "(cached) $ac_c" 1>&6
21164 else
21165 cat > conftest.$ac_ext <<EOF
21166 #line 21167 "configure"
21167 #include "confdefs.h"
21168 /* System header to define __stub macros and hopefully few prototypes,
21169 which can conflict with char $ac_func(); below. */
21170 #include <assert.h>
21171 /* Override any gcc2 internal prototype to avoid an error. */
21172 /* We use char because int might match the return type of a gcc2
21173 builtin and then its argument prototype would still apply. */
21174 char $ac_func();
21176 int main() {
21178 /* The GNU C library defines this for functions which it implements
21179 to always fail with ENOSYS. Some functions are actually named
21180 something starting with __ and the normal name is an alias. */
21181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21182 choke me
21183 #else
21184 $ac_func();
21185 #endif
21187 ; return 0; }
21189 if { (eval echo configure:21190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21190 rm -rf conftest*
21191 eval "ac_cv_func_$ac_func=yes"
21192 else
21193 echo "configure: failed program was:" >&5
21194 cat conftest.$ac_ext >&5
21195 rm -rf conftest*
21196 eval "ac_cv_func_$ac_func=no"
21198 rm -f conftest*
21201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21202 echo "$ac_t""yes" 1>&6
21203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21204 cat >> confdefs.h <<EOF
21205 #define $ac_tr_func 1
21208 else
21209 echo "$ac_t""no" 1>&6
21211 done
21216 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
21217 echo "configure:21218: checking for strtof declaration" >&5
21218 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
21219 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
21220 echo $ac_n "(cached) $ac_c" 1>&6
21221 else
21224 ac_ext=C
21225 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21226 ac_cpp='$CXXCPP $CPPFLAGS'
21227 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21228 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21229 cross_compiling=$ac_cv_prog_cxx_cross
21231 cat > conftest.$ac_ext <<EOF
21232 #line 21233 "configure"
21233 #include "confdefs.h"
21234 #include <stdlib.h>
21235 int main() {
21236 strtof(0, 0);
21237 ; return 0; }
21239 if { (eval echo configure:21240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21240 rm -rf conftest*
21241 glibcpp_cv_func_strtof_use=yes
21242 else
21243 echo "configure: failed program was:" >&5
21244 cat conftest.$ac_ext >&5
21245 rm -rf conftest*
21246 glibcpp_cv_func_strtof_use=no
21248 rm -f conftest*
21249 ac_ext=c
21250 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21251 ac_cpp='$CPP $CPPFLAGS'
21252 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21253 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21254 cross_compiling=$ac_cv_prog_cc_cross
21260 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
21261 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
21262 for ac_func in strtof
21264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21265 echo "configure:21266: checking for $ac_func" >&5
21266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21267 echo $ac_n "(cached) $ac_c" 1>&6
21268 else
21269 cat > conftest.$ac_ext <<EOF
21270 #line 21271 "configure"
21271 #include "confdefs.h"
21272 /* System header to define __stub macros and hopefully few prototypes,
21273 which can conflict with char $ac_func(); below. */
21274 #include <assert.h>
21275 /* Override any gcc2 internal prototype to avoid an error. */
21276 /* We use char because int might match the return type of a gcc2
21277 builtin and then its argument prototype would still apply. */
21278 char $ac_func();
21280 int main() {
21282 /* The GNU C library defines this for functions which it implements
21283 to always fail with ENOSYS. Some functions are actually named
21284 something starting with __ and the normal name is an alias. */
21285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21286 choke me
21287 #else
21288 $ac_func();
21289 #endif
21291 ; return 0; }
21293 if { (eval echo configure:21294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21294 rm -rf conftest*
21295 eval "ac_cv_func_$ac_func=yes"
21296 else
21297 echo "configure: failed program was:" >&5
21298 cat conftest.$ac_ext >&5
21299 rm -rf conftest*
21300 eval "ac_cv_func_$ac_func=no"
21302 rm -f conftest*
21305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21306 echo "$ac_t""yes" 1>&6
21307 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21308 cat >> confdefs.h <<EOF
21309 #define $ac_tr_func 1
21312 else
21313 echo "$ac_t""no" 1>&6
21315 done
21319 for ac_func in drand48
21321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21322 echo "configure:21323: checking for $ac_func" >&5
21323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21324 echo $ac_n "(cached) $ac_c" 1>&6
21325 else
21326 cat > conftest.$ac_ext <<EOF
21327 #line 21328 "configure"
21328 #include "confdefs.h"
21329 /* System header to define __stub macros and hopefully few prototypes,
21330 which can conflict with char $ac_func(); below. */
21331 #include <assert.h>
21332 /* Override any gcc2 internal prototype to avoid an error. */
21333 /* We use char because int might match the return type of a gcc2
21334 builtin and then its argument prototype would still apply. */
21335 char $ac_func();
21337 int main() {
21339 /* The GNU C library defines this for functions which it implements
21340 to always fail with ENOSYS. Some functions are actually named
21341 something starting with __ and the normal name is an alias. */
21342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21343 choke me
21344 #else
21345 $ac_func();
21346 #endif
21348 ; return 0; }
21350 if { (eval echo configure:21351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21351 rm -rf conftest*
21352 eval "ac_cv_func_$ac_func=yes"
21353 else
21354 echo "configure: failed program was:" >&5
21355 cat conftest.$ac_ext >&5
21356 rm -rf conftest*
21357 eval "ac_cv_func_$ac_func=no"
21359 rm -f conftest*
21362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21363 echo "$ac_t""yes" 1>&6
21364 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21365 cat >> confdefs.h <<EOF
21366 #define $ac_tr_func 1
21369 else
21370 echo "$ac_t""no" 1>&6
21372 done
21375 CXXFLAGS="$ac_save_CXXFLAGS"
21378 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
21379 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
21380 echo "configure:21381: checking for locale.h" >&5
21381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21382 echo $ac_n "(cached) $ac_c" 1>&6
21383 else
21384 cat > conftest.$ac_ext <<EOF
21385 #line 21386 "configure"
21386 #include "confdefs.h"
21387 #include <locale.h>
21389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21390 { (eval echo configure:21391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21392 if test -z "$ac_err"; then
21393 rm -rf conftest*
21394 eval "ac_cv_header_$ac_safe=yes"
21395 else
21396 echo "$ac_err" >&5
21397 echo "configure: failed program was:" >&5
21398 cat conftest.$ac_ext >&5
21399 rm -rf conftest*
21400 eval "ac_cv_header_$ac_safe=no"
21402 rm -f conftest*
21404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21405 echo "$ac_t""yes" 1>&6
21407 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
21408 echo "configure:21409: checking for LC_MESSAGES" >&5
21409 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
21410 echo $ac_n "(cached) $ac_c" 1>&6
21411 else
21412 cat > conftest.$ac_ext <<EOF
21413 #line 21414 "configure"
21414 #include "confdefs.h"
21415 #include <locale.h>
21416 int main() {
21417 return LC_MESSAGES
21418 ; return 0; }
21420 if { (eval echo configure:21421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21421 rm -rf conftest*
21422 ac_cv_val_LC_MESSAGES=yes
21423 else
21424 echo "configure: failed program was:" >&5
21425 cat conftest.$ac_ext >&5
21426 rm -rf conftest*
21427 ac_cv_val_LC_MESSAGES=no
21429 rm -f conftest*
21432 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
21433 if test $ac_cv_val_LC_MESSAGES = yes; then
21434 cat >> confdefs.h <<\EOF
21435 #define HAVE_LC_MESSAGES 1
21440 else
21441 echo "$ac_t""no" 1>&6
21446 cat > conftest.$ac_ext <<EOF
21447 #line 21448 "configure"
21448 #include "confdefs.h"
21450 #include <setjmp.h>
21452 int main() {
21453 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21454 ; return 0; }
21456 if { (eval echo configure:21457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21457 rm -rf conftest*
21458 cat >> confdefs.h <<\EOF
21459 #define HAVE_SIGSETJMP 1
21463 else
21464 echo "configure: failed program was:" >&5
21465 cat conftest.$ac_ext >&5
21467 rm -f conftest*
21469 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
21471 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21473 echo "configure:21474: checking for $ac_hdr" >&5
21474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21475 echo $ac_n "(cached) $ac_c" 1>&6
21476 else
21477 cat > conftest.$ac_ext <<EOF
21478 #line 21479 "configure"
21479 #include "confdefs.h"
21480 #include <$ac_hdr>
21482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21483 { (eval echo configure:21484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21485 if test -z "$ac_err"; then
21486 rm -rf conftest*
21487 eval "ac_cv_header_$ac_safe=yes"
21488 else
21489 echo "$ac_err" >&5
21490 echo "configure: failed program was:" >&5
21491 cat conftest.$ac_ext >&5
21492 rm -rf conftest*
21493 eval "ac_cv_header_$ac_safe=no"
21495 rm -f conftest*
21497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21498 echo "$ac_t""yes" 1>&6
21499 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21500 cat >> confdefs.h <<EOF
21501 #define $ac_tr_hdr 1
21504 else
21505 echo "$ac_t""no" 1>&6
21507 done
21509 for ac_func in getpagesize
21511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21512 echo "configure:21513: checking for $ac_func" >&5
21513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21514 echo $ac_n "(cached) $ac_c" 1>&6
21515 else
21516 cat > conftest.$ac_ext <<EOF
21517 #line 21518 "configure"
21518 #include "confdefs.h"
21519 /* System header to define __stub macros and hopefully few prototypes,
21520 which can conflict with char $ac_func(); below. */
21521 #include <assert.h>
21522 /* Override any gcc2 internal prototype to avoid an error. */
21523 /* We use char because int might match the return type of a gcc2
21524 builtin and then its argument prototype would still apply. */
21525 char $ac_func();
21527 int main() {
21529 /* The GNU C library defines this for functions which it implements
21530 to always fail with ENOSYS. Some functions are actually named
21531 something starting with __ and the normal name is an alias. */
21532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21533 choke me
21534 #else
21535 $ac_func();
21536 #endif
21538 ; return 0; }
21540 if { (eval echo configure:21541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21541 rm -rf conftest*
21542 eval "ac_cv_func_$ac_func=yes"
21543 else
21544 echo "configure: failed program was:" >&5
21545 cat conftest.$ac_ext >&5
21546 rm -rf conftest*
21547 eval "ac_cv_func_$ac_func=no"
21549 rm -f conftest*
21552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21553 echo "$ac_t""yes" 1>&6
21554 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21555 cat >> confdefs.h <<EOF
21556 #define $ac_tr_func 1
21559 else
21560 echo "$ac_t""no" 1>&6
21562 done
21564 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
21565 echo "configure:21566: checking for working mmap" >&5
21566 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
21567 echo $ac_n "(cached) $ac_c" 1>&6
21568 else
21569 if test "$cross_compiling" = yes; then
21570 ac_cv_func_mmap_fixed_mapped=no
21571 else
21572 cat > conftest.$ac_ext <<EOF
21573 #line 21574 "configure"
21574 #include "confdefs.h"
21576 /* Thanks to Mike Haertel and Jim Avera for this test.
21577 Here is a matrix of mmap possibilities:
21578 mmap private not fixed
21579 mmap private fixed at somewhere currently unmapped
21580 mmap private fixed at somewhere already mapped
21581 mmap shared not fixed
21582 mmap shared fixed at somewhere currently unmapped
21583 mmap shared fixed at somewhere already mapped
21584 For private mappings, we should verify that changes cannot be read()
21585 back from the file, nor mmap's back from the file at a different
21586 address. (There have been systems where private was not correctly
21587 implemented like the infamous i386 svr4.0, and systems where the
21588 VM page cache was not coherent with the filesystem buffer cache
21589 like early versions of FreeBSD and possibly contemporary NetBSD.)
21590 For shared mappings, we should conversely verify that changes get
21591 propogated back to all the places they're supposed to be.
21593 Grep wants private fixed already mapped.
21594 The main things grep needs to know about mmap are:
21595 * does it exist and is it safe to write into the mmap'd area
21596 * how to use it (BSD variants) */
21597 #include <sys/types.h>
21598 #include <fcntl.h>
21599 #include <sys/mman.h>
21601 #if HAVE_SYS_TYPES_H
21602 # include <sys/types.h>
21603 #endif
21605 #if HAVE_STDLIB_H
21606 # include <stdlib.h>
21607 #endif
21609 #if HAVE_SYS_STAT_H
21610 # include <sys/stat.h>
21611 #endif
21613 #if HAVE_UNISTD_H
21614 # include <unistd.h>
21615 #endif
21617 /* This mess was copied from the GNU getpagesize.h. */
21618 #ifndef HAVE_GETPAGESIZE
21620 /* Assume that all systems that can run configure have sys/param.h. */
21621 # ifndef HAVE_SYS_PARAM_H
21622 # define HAVE_SYS_PARAM_H 1
21623 # endif
21625 # ifdef _SC_PAGESIZE
21626 # define getpagesize() sysconf(_SC_PAGESIZE)
21627 # else /* no _SC_PAGESIZE */
21628 # ifdef HAVE_SYS_PARAM_H
21629 # include <sys/param.h>
21630 # ifdef EXEC_PAGESIZE
21631 # define getpagesize() EXEC_PAGESIZE
21632 # else /* no EXEC_PAGESIZE */
21633 # ifdef NBPG
21634 # define getpagesize() NBPG * CLSIZE
21635 # ifndef CLSIZE
21636 # define CLSIZE 1
21637 # endif /* no CLSIZE */
21638 # else /* no NBPG */
21639 # ifdef NBPC
21640 # define getpagesize() NBPC
21641 # else /* no NBPC */
21642 # ifdef PAGESIZE
21643 # define getpagesize() PAGESIZE
21644 # endif /* PAGESIZE */
21645 # endif /* no NBPC */
21646 # endif /* no NBPG */
21647 # endif /* no EXEC_PAGESIZE */
21648 # else /* no HAVE_SYS_PARAM_H */
21649 # define getpagesize() 8192 /* punt totally */
21650 # endif /* no HAVE_SYS_PARAM_H */
21651 # endif /* no _SC_PAGESIZE */
21653 #endif /* no HAVE_GETPAGESIZE */
21655 #ifdef __cplusplus
21656 extern "C" { void *malloc(unsigned); }
21657 #else
21658 char *malloc();
21659 #endif
21662 main()
21664 char *data, *data2, *data3;
21665 int i, pagesize;
21666 int fd;
21668 pagesize = getpagesize();
21671 * First, make a file with some known garbage in it.
21673 data = malloc(pagesize);
21674 if (!data)
21675 exit(1);
21676 for (i = 0; i < pagesize; ++i)
21677 *(data + i) = rand();
21678 umask(0);
21679 fd = creat("conftestmmap", 0600);
21680 if (fd < 0)
21681 exit(1);
21682 if (write(fd, data, pagesize) != pagesize)
21683 exit(1);
21684 close(fd);
21687 * Next, try to mmap the file at a fixed address which
21688 * already has something else allocated at it. If we can,
21689 * also make sure that we see the same garbage.
21691 fd = open("conftestmmap", O_RDWR);
21692 if (fd < 0)
21693 exit(1);
21694 data2 = malloc(2 * pagesize);
21695 if (!data2)
21696 exit(1);
21697 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21698 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
21699 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21700 exit(1);
21701 for (i = 0; i < pagesize; ++i)
21702 if (*(data + i) != *(data2 + i))
21703 exit(1);
21706 * Finally, make sure that changes to the mapped area
21707 * do not percolate back to the file as seen by read().
21708 * (This is a bug on some variants of i386 svr4.0.)
21710 for (i = 0; i < pagesize; ++i)
21711 *(data2 + i) = *(data2 + i) + 1;
21712 data3 = malloc(pagesize);
21713 if (!data3)
21714 exit(1);
21715 if (read(fd, data3, pagesize) != pagesize)
21716 exit(1);
21717 for (i = 0; i < pagesize; ++i)
21718 if (*(data + i) != *(data3 + i))
21719 exit(1);
21720 close(fd);
21721 unlink("conftestmmap");
21722 exit(0);
21726 if { (eval echo configure:21727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21727 then
21728 ac_cv_func_mmap_fixed_mapped=yes
21729 else
21730 echo "configure: failed program was:" >&5
21731 cat conftest.$ac_ext >&5
21732 rm -fr conftest*
21733 ac_cv_func_mmap_fixed_mapped=no
21735 rm -fr conftest*
21740 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
21741 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21742 cat >> confdefs.h <<\EOF
21743 #define HAVE_MMAP 1
21749 # Establish limits on memory usage during 'make check'
21752 setrlimit_have_headers=yes
21753 for ac_hdr in unistd.h sys/time.h sys/resource.h
21755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21757 echo "configure:21758: checking for $ac_hdr" >&5
21758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21759 echo $ac_n "(cached) $ac_c" 1>&6
21760 else
21761 cat > conftest.$ac_ext <<EOF
21762 #line 21763 "configure"
21763 #include "confdefs.h"
21764 #include <$ac_hdr>
21766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21767 { (eval echo configure:21768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21769 if test -z "$ac_err"; then
21770 rm -rf conftest*
21771 eval "ac_cv_header_$ac_safe=yes"
21772 else
21773 echo "$ac_err" >&5
21774 echo "configure: failed program was:" >&5
21775 cat conftest.$ac_ext >&5
21776 rm -rf conftest*
21777 eval "ac_cv_header_$ac_safe=no"
21779 rm -f conftest*
21781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21782 echo "$ac_t""yes" 1>&6
21783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21784 cat >> confdefs.h <<EOF
21785 #define $ac_tr_hdr 1
21788 else
21789 echo "$ac_t""no" 1>&6
21790 setrlimit_have_headers=no
21792 done
21794 # If don't have the headers, then we can't run the tests now, and we
21795 # won't be seeing any of these during testsuite compilation.
21796 if test $setrlimit_have_headers = yes; then
21797 # Can't do these in a loop, else the resulting syntax is wrong.
21799 cat > conftest.$ac_ext <<EOF
21800 #line 21801 "configure"
21801 #include "confdefs.h"
21802 #include <unistd.h>
21803 #include <sys/time.h>
21804 #include <sys/resource.h>
21806 int main() {
21807 int f = RLIMIT_DATA ;
21808 ; return 0; }
21810 if { (eval echo configure:21811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21811 rm -rf conftest*
21812 glibcpp_mresult=1
21813 else
21814 echo "configure: failed program was:" >&5
21815 cat conftest.$ac_ext >&5
21816 rm -rf conftest*
21817 glibcpp_mresult=0
21819 rm -f conftest*
21820 cat >> confdefs.h <<EOF
21821 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
21826 cat > conftest.$ac_ext <<EOF
21827 #line 21828 "configure"
21828 #include "confdefs.h"
21829 #include <unistd.h>
21830 #include <sys/time.h>
21831 #include <sys/resource.h>
21833 int main() {
21834 int f = RLIMIT_RSS ;
21835 ; return 0; }
21837 if { (eval echo configure:21838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21838 rm -rf conftest*
21839 glibcpp_mresult=1
21840 else
21841 echo "configure: failed program was:" >&5
21842 cat conftest.$ac_ext >&5
21843 rm -rf conftest*
21844 glibcpp_mresult=0
21846 rm -f conftest*
21847 cat >> confdefs.h <<EOF
21848 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
21853 cat > conftest.$ac_ext <<EOF
21854 #line 21855 "configure"
21855 #include "confdefs.h"
21856 #include <unistd.h>
21857 #include <sys/time.h>
21858 #include <sys/resource.h>
21860 int main() {
21861 int f = RLIMIT_VMEM ;
21862 ; return 0; }
21864 if { (eval echo configure:21865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21865 rm -rf conftest*
21866 glibcpp_mresult=1
21867 else
21868 echo "configure: failed program was:" >&5
21869 cat conftest.$ac_ext >&5
21870 rm -rf conftest*
21871 glibcpp_mresult=0
21873 rm -f conftest*
21874 cat >> confdefs.h <<EOF
21875 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
21880 cat > conftest.$ac_ext <<EOF
21881 #line 21882 "configure"
21882 #include "confdefs.h"
21883 #include <unistd.h>
21884 #include <sys/time.h>
21885 #include <sys/resource.h>
21887 int main() {
21888 int f = RLIMIT_AS ;
21889 ; return 0; }
21891 if { (eval echo configure:21892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21892 rm -rf conftest*
21893 glibcpp_mresult=1
21894 else
21895 echo "configure: failed program was:" >&5
21896 cat conftest.$ac_ext >&5
21897 rm -rf conftest*
21898 glibcpp_mresult=0
21900 rm -f conftest*
21901 cat >> confdefs.h <<EOF
21902 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
21907 # Check for rlimit, setrlimit.
21908 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
21909 echo $ac_n "(cached) $ac_c" 1>&6
21910 else
21912 cat > conftest.$ac_ext <<EOF
21913 #line 21914 "configure"
21914 #include "confdefs.h"
21915 #include <unistd.h>
21916 #include <sys/time.h>
21917 #include <sys/resource.h>
21919 int main() {
21920 struct rlimit r; setrlimit(0, &r);
21921 ; return 0; }
21923 if { (eval echo configure:21924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21924 rm -rf conftest*
21925 ac_setrlimit=yes
21926 else
21927 echo "configure: failed program was:" >&5
21928 cat conftest.$ac_ext >&5
21929 rm -rf conftest*
21930 ac_setrlimit=no
21932 rm -f conftest*
21938 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
21939 echo "configure:21940: checking for testsuite memory limit support" >&5
21940 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
21941 ac_mem_limits=yes
21942 cat >> confdefs.h <<\EOF
21943 #define _GLIBCPP_MEM_LIMITS 1
21946 else
21947 ac_mem_limits=no
21949 echo "$ac_t""$ac_mem_limits" 1>&6
21952 # Look for setenv, so that extended locale tests can be performed.
21954 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
21955 echo "configure:21956: checking for setenv declaration" >&5
21956 if test x${glibcpp_cv_func_setenv_use+set} != xset; then
21957 if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
21958 echo $ac_n "(cached) $ac_c" 1>&6
21959 else
21962 ac_ext=C
21963 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21964 ac_cpp='$CXXCPP $CPPFLAGS'
21965 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21966 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21967 cross_compiling=$ac_cv_prog_cxx_cross
21969 cat > conftest.$ac_ext <<EOF
21970 #line 21971 "configure"
21971 #include "confdefs.h"
21972 #include <stdlib.h>
21973 int main() {
21974 setenv(0, 0, 0);
21975 ; return 0; }
21977 if { (eval echo configure:21978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21978 rm -rf conftest*
21979 glibcpp_cv_func_setenv_use=yes
21980 else
21981 echo "configure: failed program was:" >&5
21982 cat conftest.$ac_ext >&5
21983 rm -rf conftest*
21984 glibcpp_cv_func_setenv_use=no
21986 rm -f conftest*
21987 ac_ext=c
21988 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21989 ac_cpp='$CPP $CPPFLAGS'
21990 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21991 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21992 cross_compiling=$ac_cv_prog_cc_cross
21998 echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
21999 if test x$glibcpp_cv_func_setenv_use = x"yes"; then
22000 for ac_func in setenv
22002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22003 echo "configure:22004: checking for $ac_func" >&5
22004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22005 echo $ac_n "(cached) $ac_c" 1>&6
22006 else
22007 cat > conftest.$ac_ext <<EOF
22008 #line 22009 "configure"
22009 #include "confdefs.h"
22010 /* System header to define __stub macros and hopefully few prototypes,
22011 which can conflict with char $ac_func(); below. */
22012 #include <assert.h>
22013 /* Override any gcc2 internal prototype to avoid an error. */
22014 /* We use char because int might match the return type of a gcc2
22015 builtin and then its argument prototype would still apply. */
22016 char $ac_func();
22018 int main() {
22020 /* The GNU C library defines this for functions which it implements
22021 to always fail with ENOSYS. Some functions are actually named
22022 something starting with __ and the normal name is an alias. */
22023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22024 choke me
22025 #else
22026 $ac_func();
22027 #endif
22029 ; return 0; }
22031 if { (eval echo configure:22032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22032 rm -rf conftest*
22033 eval "ac_cv_func_$ac_func=yes"
22034 else
22035 echo "configure: failed program was:" >&5
22036 cat conftest.$ac_ext >&5
22037 rm -rf conftest*
22038 eval "ac_cv_func_$ac_func=no"
22040 rm -f conftest*
22043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22044 echo "$ac_t""yes" 1>&6
22045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22046 cat >> confdefs.h <<EOF
22047 #define $ac_tr_func 1
22050 else
22051 echo "$ac_t""no" 1>&6
22053 done
22060 # This depends on the possibly-skipped linker test above.
22061 # Check whether --enable-symvers or --disable-symvers was given.
22062 if test "${enable_symvers+set}" = set; then
22063 enableval="$enable_symvers"
22064 case "$enableval" in
22065 yes) enable_symvers=yes ;;
22066 no) enable_symvers=no ;;
22067 # other names here, just as sanity checks
22068 #gnu|sun|etcetera) enable_symvers=$enableval ;;
22069 gnu) enable_symvers=$enableval ;;
22070 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
22071 esac
22072 else
22073 enable_symvers=yes
22076 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
22077 # don't know enough about $LD to do tricks...
22078 if test x$enable_shared = xno ||
22079 test "x$LD" = x ||
22080 test x$glibcpp_gnu_ld_version = x; then
22081 enable_symvers=no
22084 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
22085 if test $enable_symvers != no; then
22086 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
22087 echo "configure:22088: checking for shared libgcc" >&5
22088 ac_save_CFLAGS="$CFLAGS"
22089 CFLAGS=' -lgcc_s'
22090 cat > conftest.$ac_ext <<EOF
22091 #line 22092 "configure"
22092 #include "confdefs.h"
22094 int main() {
22095 return 0
22096 ; return 0; }
22098 if { (eval echo configure:22099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22099 rm -rf conftest*
22100 glibcpp_shared_libgcc=yes
22101 else
22102 echo "configure: failed program was:" >&5
22103 cat conftest.$ac_ext >&5
22104 rm -rf conftest*
22105 glibcpp_shared_libgcc=no
22107 rm -f conftest*
22108 CFLAGS="$ac_save_CFLAGS"
22109 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
22112 # For GNU ld, we need at least this version. It's 2.12 in the same format
22113 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
22114 glibcpp_min_gnu_ld_version=21200
22116 # Check to see if unspecified "yes" value can win, given results
22117 # above.
22118 if test $enable_symvers = yes ; then
22119 if test $with_gnu_ld = yes &&
22120 test $glibcpp_shared_libgcc = yes ;
22121 then
22122 if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
22123 enable_symvers=gnu
22124 else
22125 ac_test_CFLAGS="${CFLAGS+set}"
22126 ac_save_CFLAGS="$CFLAGS"
22127 CFLAGS='-shared -Wl,--version-script,conftest.map'
22128 enable_symvers=no
22130 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
22132 cat > conftest.$ac_ext <<EOF
22133 #line 22134 "configure"
22134 #include "confdefs.h"
22135 int foo;
22136 int main() {
22138 ; return 0; }
22140 if { (eval echo configure:22141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22141 rm -rf conftest*
22142 enable_symvers=gnu
22143 else
22144 echo "configure: failed program was:" >&5
22145 cat conftest.$ac_ext >&5
22147 rm -f conftest*
22148 if test "$ac_test_CFLAGS" = set; then
22149 CFLAGS="$ac_save_CFLAGS"
22150 else
22151 # this is the suspicious part
22152 CFLAGS=''
22154 rm -f conftest.map
22156 else
22157 # just fail for now
22158 enable_symvers=no
22162 case $enable_symvers in
22164 LINKER_MAP=config/linker-map.dummy
22166 gnu)
22167 LINKER_MAP=config/linker-map.gnu
22169 esac
22174 if test $enable_symvers != no; then
22175 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
22176 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
22177 else
22178 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
22179 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
22181 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
22182 echo "configure:22183: checking versioning on shared library symbols" >&5
22183 echo "$ac_t""$enable_symvers" 1>&6
22186 # Propagate the target-specific source directories through the build chain.
22187 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH and
22188 # CPULIMITSH [might] use it, and they only get used here.)
22189 OS_INC_SRCDIR=config/${os_include_dir}
22190 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
22191 CPU_LIMITS_INC_SRCDIR=config/${CPULIMITSH}
22196 # Set up cross-compile flags
22199 if test "$CANADIAN" = yes; then
22200 CANADIAN_TRUE=
22201 CANADIAN_FALSE='#'
22202 else
22203 CANADIAN_TRUE='#'
22204 CANADIAN_FALSE=
22207 cat > confcache <<\EOF
22208 # This file is a shell script that caches the results of configure
22209 # tests run on this system so they can be shared between configure
22210 # scripts and configure runs. It is not useful on other systems.
22211 # If it contains results you don't want to keep, you may remove or edit it.
22213 # By default, configure uses ./config.cache as the cache file,
22214 # creating it if it does not exist already. You can give configure
22215 # the --cache-file=FILE option to use a different cache file; that is
22216 # what configure does when it calls configure scripts in
22217 # subdirectories, so they share the cache.
22218 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22219 # config.status only pays attention to the cache file if you give it the
22220 # --recheck option to rerun configure.
22223 # The following way of writing the cache mishandles newlines in values,
22224 # but we know of no workaround that is simple, portable, and efficient.
22225 # So, don't put newlines in cache variables' values.
22226 # Ultrix sh set writes to stderr and can't be redirected directly,
22227 # and sets the high bit in the cache file unless we assign to the vars.
22228 (set) 2>&1 |
22229 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22230 *ac_space=\ *)
22231 # `set' does not quote correctly, so add quotes (double-quote substitution
22232 # turns \\\\ into \\, and sed turns \\ into \).
22233 sed -n \
22234 -e "s/'/'\\\\''/g" \
22235 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22238 # `set' quotes correctly as required by POSIX, so do not add quotes.
22239 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22241 esac >> confcache
22242 if cmp -s $cache_file confcache; then
22244 else
22245 if test -w $cache_file; then
22246 echo "updating cache $cache_file"
22247 cat confcache > $cache_file
22248 else
22249 echo "not updating unwritable cache $cache_file"
22252 rm -f confcache
22255 if test "${multilib}" = "yes"; then
22256 multilib_arg="--enable-multilib"
22257 else
22258 multilib_arg=
22261 # Export all the install information
22263 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
22264 # exported correctly in GLIBCPP_CONFIGURE.
22265 glibcpp_toolexecdir=no
22266 glibcpp_toolexeclibdir=no
22267 glibcpp_prefixdir=${prefix}
22269 # Process the option --with-gxx-include-dir=<path to include-files directory>
22270 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
22271 echo "configure:22272: checking for --with-gxx-include-dir" >&5
22272 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
22273 if test "${with_gxx_include_dir+set}" = set; then
22274 withval="$with_gxx_include_dir"
22275 case "${withval}" in
22276 yes)
22277 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
22278 gxx_include_dir=no
22281 gxx_include_dir=no
22284 gxx_include_dir=${withval}
22286 esac
22287 else
22288 gxx_include_dir=no
22291 echo "$ac_t""$gxx_include_dir" 1>&6
22293 # Process the option "--enable-version-specific-runtime-libs"
22294 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
22295 echo "configure:22296: checking for --enable-version-specific-runtime-libs" >&5
22296 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
22297 if test "${enable_version_specific_runtime_libs+set}" = set; then
22298 enableval="$enable_version_specific_runtime_libs"
22299 case "$enableval" in
22300 yes) version_specific_libs=yes ;;
22301 no) version_specific_libs=no ;;
22302 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
22303 esac
22304 else
22305 version_specific_libs=no
22307 # Option set, now we can test it.
22308 echo "$ac_t""$version_specific_libs" 1>&6
22310 # Default case for install directory for include files.
22311 if test $version_specific_libs = no && test $gxx_include_dir = no; then
22312 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
22315 # Version-specific runtime libs processing.
22316 if test $version_specific_libs = yes; then
22317 # Need the gcc compiler version to know where to install libraries
22318 # and header files if --enable-version-specific-runtime-libs option
22319 # is selected.
22320 if test x"$gxx_include_dir" = x"no"; then
22321 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
22323 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22324 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
22327 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
22328 # Install a library built with a cross compiler in tooldir, not libdir.
22329 if test x"$glibcpp_toolexecdir" = x"no"; then
22330 if test -n "$with_cross_host" &&
22331 test x"$with_cross_host" != x"no"; then
22332 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
22333 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
22334 else
22335 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22336 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
22340 echo $ac_n "checking for install location""... $ac_c" 1>&6
22341 echo "configure:22342: checking for install location" >&5
22342 echo "$ac_t""$gxx_include_dir" 1>&6
22350 # Export all the include and flag information to makefiles.
22352 # Root level of the build directory include sources.
22353 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
22355 # Passed down for canadian crosses.
22356 if test x"$CANADIAN" = xyes; then
22357 TOPLEVEL_INCLUDES='-I$(includedir)'
22360 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
22362 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
22364 if test x"$need_libio" = xyes; then
22365 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
22369 # Now, export this to all the little Makefiles....
22376 # Optimization flags that are probably a good idea for thrill-seekers. Just
22377 # uncomment the lines below and make, everything else is ready to go...
22378 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
22379 OPTIMIZE_CXXFLAGS=
22382 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
22386 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
22387 grep "enable shared" > /dev/null; then
22388 LIBSUPCXX_PICFLAGS=-prefer-pic
22389 else
22390 LIBSUPCXX_PICFLAGS=
22394 # Generate the various Makefiles, include files, and scripts.
22395 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
22396 # and libsupc++/Makefile.am so that multilib installs will end up
22397 # installed in the correct place. To work around this not being passed
22398 # down from config-ml.in -> top_srcdir/Makefile.am ->
22399 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
22400 trap '' 1 2 15
22401 cat > confcache <<\EOF
22402 # This file is a shell script that caches the results of configure
22403 # tests run on this system so they can be shared between configure
22404 # scripts and configure runs. It is not useful on other systems.
22405 # If it contains results you don't want to keep, you may remove or edit it.
22407 # By default, configure uses ./config.cache as the cache file,
22408 # creating it if it does not exist already. You can give configure
22409 # the --cache-file=FILE option to use a different cache file; that is
22410 # what configure does when it calls configure scripts in
22411 # subdirectories, so they share the cache.
22412 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22413 # config.status only pays attention to the cache file if you give it the
22414 # --recheck option to rerun configure.
22417 # The following way of writing the cache mishandles newlines in values,
22418 # but we know of no workaround that is simple, portable, and efficient.
22419 # So, don't put newlines in cache variables' values.
22420 # Ultrix sh set writes to stderr and can't be redirected directly,
22421 # and sets the high bit in the cache file unless we assign to the vars.
22422 (set) 2>&1 |
22423 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22424 *ac_space=\ *)
22425 # `set' does not quote correctly, so add quotes (double-quote substitution
22426 # turns \\\\ into \\, and sed turns \\ into \).
22427 sed -n \
22428 -e "s/'/'\\\\''/g" \
22429 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22432 # `set' quotes correctly as required by POSIX, so do not add quotes.
22433 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22435 esac >> confcache
22436 if cmp -s $cache_file confcache; then
22438 else
22439 if test -w $cache_file; then
22440 echo "updating cache $cache_file"
22441 cat confcache > $cache_file
22442 else
22443 echo "not updating unwritable cache $cache_file"
22446 rm -f confcache
22448 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22450 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22451 # Let make expand exec_prefix.
22452 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22454 # Any assignment to VPATH causes Sun make to only execute
22455 # the first set of double-colon rules, so remove it if not needed.
22456 # If there is a colon in the path, we need to keep it.
22457 if test "x$srcdir" = x.; then
22458 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22461 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22463 DEFS=-DHAVE_CONFIG_H
22465 # Without the "./", some shells look in PATH for config.status.
22466 : ${CONFIG_STATUS=./config.status}
22468 echo creating $CONFIG_STATUS
22469 rm -f $CONFIG_STATUS
22470 cat > $CONFIG_STATUS <<EOF
22471 #! /bin/sh
22472 # Generated automatically by configure.
22473 # Run this file to recreate the current configuration.
22474 # This directory was configured as follows,
22475 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22477 # $0 $ac_configure_args
22479 # Compiler output produced by configure, useful for debugging
22480 # configure, is in ./config.log if it exists.
22482 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22483 for ac_option
22485 case "\$ac_option" in
22486 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22487 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22488 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22489 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22490 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22491 exit 0 ;;
22492 -help | --help | --hel | --he | --h)
22493 echo "\$ac_cs_usage"; exit 0 ;;
22494 *) echo "\$ac_cs_usage"; exit 1 ;;
22495 esac
22496 done
22498 ac_given_srcdir=$srcdir
22499 ac_given_INSTALL="$INSTALL"
22501 trap 'rm -fr `echo "Makefile \
22502 include/Makefile src/Makefile \
22503 libmath/Makefile libio/Makefile libsupc++/Makefile \
22504 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22506 cat >> $CONFIG_STATUS <<EOF
22508 # Protect against being on the right side of a sed subst in config.status.
22509 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22510 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22511 $ac_vpsub
22512 $extrasub
22513 s%@SHELL@%$SHELL%g
22514 s%@CFLAGS@%$CFLAGS%g
22515 s%@CPPFLAGS@%$CPPFLAGS%g
22516 s%@CXXFLAGS@%$CXXFLAGS%g
22517 s%@FFLAGS@%$FFLAGS%g
22518 s%@DEFS@%$DEFS%g
22519 s%@LDFLAGS@%$LDFLAGS%g
22520 s%@LIBS@%$LIBS%g
22521 s%@exec_prefix@%$exec_prefix%g
22522 s%@prefix@%$prefix%g
22523 s%@program_transform_name@%$program_transform_name%g
22524 s%@bindir@%$bindir%g
22525 s%@sbindir@%$sbindir%g
22526 s%@libexecdir@%$libexecdir%g
22527 s%@datadir@%$datadir%g
22528 s%@sysconfdir@%$sysconfdir%g
22529 s%@sharedstatedir@%$sharedstatedir%g
22530 s%@localstatedir@%$localstatedir%g
22531 s%@libdir@%$libdir%g
22532 s%@includedir@%$includedir%g
22533 s%@oldincludedir@%$oldincludedir%g
22534 s%@infodir@%$infodir%g
22535 s%@mandir@%$mandir%g
22536 s%@PACKAGE@%$PACKAGE%g
22537 s%@libtool_VERSION@%$libtool_VERSION%g
22538 s%@toplevel_srcdir@%$toplevel_srcdir%g
22539 s%@host@%$host%g
22540 s%@host_alias@%$host_alias%g
22541 s%@host_cpu@%$host_cpu%g
22542 s%@host_vendor@%$host_vendor%g
22543 s%@host_os@%$host_os%g
22544 s%@target@%$target%g
22545 s%@target_alias@%$target_alias%g
22546 s%@target_cpu@%$target_cpu%g
22547 s%@target_vendor@%$target_vendor%g
22548 s%@target_os@%$target_os%g
22549 s%@build@%$build%g
22550 s%@build_alias@%$build_alias%g
22551 s%@build_cpu@%$build_cpu%g
22552 s%@build_vendor@%$build_vendor%g
22553 s%@build_os@%$build_os%g
22554 s%@glibcpp_builddir@%$glibcpp_builddir%g
22555 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
22556 s%@AWK@%$AWK%g
22557 s%@LN_S@%$LN_S%g
22558 s%@glibcpp_basedir@%$glibcpp_basedir%g
22559 s%@CC@%$CC%g
22560 s%@glibcpp_CXX@%$glibcpp_CXX%g
22561 s%@AS@%$AS%g
22562 s%@AR@%$AR%g
22563 s%@RANLIB@%$RANLIB%g
22564 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22565 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22566 s%@INSTALL_DATA@%$INSTALL_DATA%g
22567 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
22568 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
22569 s%@MAINT@%$MAINT%g
22570 s%@EXEEXT@%$EXEEXT%g
22571 s%@VERSION@%$VERSION%g
22572 s%@ACLOCAL@%$ACLOCAL%g
22573 s%@AUTOCONF@%$AUTOCONF%g
22574 s%@AUTOMAKE@%$AUTOMAKE%g
22575 s%@AUTOHEADER@%$AUTOHEADER%g
22576 s%@MAKEINFO@%$MAKEINFO%g
22577 s%@SET_MAKE@%$SET_MAKE%g
22578 s%@OBJEXT@%$OBJEXT%g
22579 s%@STRIP@%$STRIP%g
22580 s%@LIBTOOL@%$LIBTOOL%g
22581 s%@CXXCPP@%$CXXCPP%g
22582 s%@enable_shared@%$enable_shared%g
22583 s%@enable_static@%$enable_static%g
22584 s%@ifGNUmake@%$ifGNUmake%g
22585 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
22586 s%@CPP@%$CPP%g
22587 s%@CSTDIO_H@%$CSTDIO_H%g
22588 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
22589 s%@CCODECVT_C@%$CCODECVT_C%g
22590 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
22591 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
22592 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
22593 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
22594 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
22595 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
22596 s%@libio_la@%$libio_la%g
22597 s%@check_msgfmt@%$check_msgfmt%g
22598 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
22599 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
22600 s%@glibcpp_localedir@%$glibcpp_localedir%g
22601 s%@USE_NLS@%$USE_NLS%g
22602 s%@CLOCALE_H@%$CLOCALE_H%g
22603 s%@CCODECVT_H@%$CCODECVT_H%g
22604 s%@CMESSAGES_H@%$CMESSAGES_H%g
22605 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
22606 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
22607 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
22608 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
22609 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
22610 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
22611 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
22612 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
22613 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
22614 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
22615 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
22616 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
22617 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
22618 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
22619 s%@WERROR@%$WERROR%g
22620 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
22621 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
22622 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
22623 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
22624 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
22625 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
22626 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
22627 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
22628 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
22629 s%@gxx_include_dir@%$gxx_include_dir%g
22630 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
22631 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
22632 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
22633 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
22634 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
22635 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
22636 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
22637 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
22638 s%@WARN_FLAGS@%$WARN_FLAGS%g
22639 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
22641 CEOF
22644 cat >> $CONFIG_STATUS <<\EOF
22646 # Split the substitutions into bite-sized pieces for seds with
22647 # small command number limits, like on Digital OSF/1 and HP-UX.
22648 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22649 ac_file=1 # Number of current file.
22650 ac_beg=1 # First line for current file.
22651 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22652 ac_more_lines=:
22653 ac_sed_cmds=""
22654 while $ac_more_lines; do
22655 if test $ac_beg -gt 1; then
22656 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22657 else
22658 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22660 if test ! -s conftest.s$ac_file; then
22661 ac_more_lines=false
22662 rm -f conftest.s$ac_file
22663 else
22664 if test -z "$ac_sed_cmds"; then
22665 ac_sed_cmds="sed -f conftest.s$ac_file"
22666 else
22667 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22669 ac_file=`expr $ac_file + 1`
22670 ac_beg=$ac_end
22671 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22673 done
22674 if test -z "$ac_sed_cmds"; then
22675 ac_sed_cmds=cat
22679 cat >> $CONFIG_STATUS <<EOF
22681 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
22682 include/Makefile src/Makefile \
22683 libmath/Makefile libio/Makefile libsupc++/Makefile \
22684 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
22686 cat >> $CONFIG_STATUS <<\EOF
22687 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22688 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22689 case "$ac_file" in
22690 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22691 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22692 *) ac_file_in="${ac_file}.in" ;;
22693 esac
22695 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22697 # Remove last slash and all that follows it. Not all systems have dirname.
22698 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22699 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22700 # The file is in a subdirectory.
22701 test ! -d "$ac_dir" && mkdir "$ac_dir"
22702 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22703 # A "../" for each directory in $ac_dir_suffix.
22704 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22705 else
22706 ac_dir_suffix= ac_dots=
22709 case "$ac_given_srcdir" in
22710 .) srcdir=.
22711 if test -z "$ac_dots"; then top_srcdir=.
22712 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22713 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22714 *) # Relative path.
22715 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22716 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22717 esac
22719 case "$ac_given_INSTALL" in
22720 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22721 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22722 esac
22724 echo creating "$ac_file"
22725 rm -f "$ac_file"
22726 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22727 case "$ac_file" in
22728 *Makefile*) ac_comsub="1i\\
22729 # $configure_input" ;;
22730 *) ac_comsub= ;;
22731 esac
22733 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22734 sed -e "$ac_comsub
22735 s%@configure_input@%$configure_input%g
22736 s%@srcdir@%$srcdir%g
22737 s%@top_srcdir@%$top_srcdir%g
22738 s%@INSTALL@%$INSTALL%g
22739 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22740 fi; done
22741 rm -f conftest.s*
22743 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22744 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22746 # ac_d sets the value in "#define NAME VALUE" lines.
22747 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22748 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22749 ac_dC='\3'
22750 ac_dD='%g'
22751 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22752 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22753 ac_uB='\([ ]\)%\1#\2define\3'
22754 ac_uC=' '
22755 ac_uD='\4%g'
22756 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22757 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22758 ac_eB='$%\1#\2define\3'
22759 ac_eC=' '
22760 ac_eD='%g'
22762 if test "${CONFIG_HEADERS+set}" != set; then
22764 cat >> $CONFIG_STATUS <<EOF
22765 CONFIG_HEADERS="config.h"
22767 cat >> $CONFIG_STATUS <<\EOF
22769 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22770 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22771 case "$ac_file" in
22772 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22773 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22774 *) ac_file_in="${ac_file}.in" ;;
22775 esac
22777 echo creating $ac_file
22779 rm -f conftest.frag conftest.in conftest.out
22780 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22781 cat $ac_file_inputs > conftest.in
22785 # Transform confdefs.h into a sed script conftest.vals that substitutes
22786 # the proper values into config.h.in to produce config.h. And first:
22787 # Protect against being on the right side of a sed subst in config.status.
22788 # Protect against being in an unquoted here document in config.status.
22789 rm -f conftest.vals
22790 cat > conftest.hdr <<\EOF
22791 s/[\\&%]/\\&/g
22792 s%[\\$`]%\\&%g
22793 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22794 s%ac_d%ac_u%gp
22795 s%ac_u%ac_e%gp
22797 sed -n -f conftest.hdr confdefs.h > conftest.vals
22798 rm -f conftest.hdr
22800 # This sed command replaces #undef with comments. This is necessary, for
22801 # example, in the case of _POSIX_SOURCE, which is predefined and required
22802 # on some systems where configure will not decide to define it.
22803 cat >> conftest.vals <<\EOF
22804 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22807 # Break up conftest.vals because some shells have a limit on
22808 # the size of here documents, and old seds have small limits too.
22810 rm -f conftest.tail
22811 while :
22813 ac_lines=`grep -c . conftest.vals`
22814 # grep -c gives empty output for an empty file on some AIX systems.
22815 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22816 # Write a limited-size here document to conftest.frag.
22817 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22818 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22819 echo 'CEOF
22820 sed -f conftest.frag conftest.in > conftest.out
22821 rm -f conftest.in
22822 mv conftest.out conftest.in
22823 ' >> $CONFIG_STATUS
22824 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22825 rm -f conftest.vals
22826 mv conftest.tail conftest.vals
22827 done
22828 rm -f conftest.vals
22830 cat >> $CONFIG_STATUS <<\EOF
22831 rm -f conftest.frag conftest.h
22832 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22833 cat conftest.in >> conftest.h
22834 rm -f conftest.in
22835 if cmp -s $ac_file conftest.h 2>/dev/null; then
22836 echo "$ac_file is unchanged"
22837 rm -f conftest.h
22838 else
22839 # Remove last slash and all that follows it. Not all systems have dirname.
22840 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22841 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22842 # The file is in a subdirectory.
22843 test ! -d "$ac_dir" && mkdir "$ac_dir"
22845 rm -f $ac_file
22846 mv conftest.h $ac_file
22848 fi; done
22852 cat >> $CONFIG_STATUS <<EOF
22853 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
22854 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"
22857 cat >> $CONFIG_STATUS <<\EOF
22858 srcdir=$ac_given_srcdir
22859 while test -n "$ac_sources"; do
22860 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22861 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22863 echo "linking $srcdir/$ac_source to $ac_dest"
22865 if test ! -r $srcdir/$ac_source; then
22866 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
22868 rm -f $ac_dest
22870 # Make relative symlinks.
22871 # Remove last slash and all that follows it. Not all systems have dirname.
22872 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
22873 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
22874 # The dest file is in a subdirectory.
22875 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
22876 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
22877 # A "../" for each directory in $ac_dest_dir_suffix.
22878 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
22879 else
22880 ac_dest_dir_suffix= ac_dots=
22883 case "$srcdir" in
22884 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
22885 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
22886 esac
22888 # Make a symlink if possible; otherwise try a hard link.
22889 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22890 ln $srcdir/$ac_source $ac_dest; then :
22891 else
22892 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
22894 done
22896 cat >> $CONFIG_STATUS <<EOF
22898 srcdir=${srcdir}
22899 host=${host}
22900 target=${target}
22901 with_multisubdir=${with_multisubdir}
22902 ac_configure_args="${multilib_arg} ${ac_configure_args}"
22903 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22904 glibcpp_basedir=${glibcpp_basedir}
22905 CC="${CC}"
22906 CXX="${CXX}"
22909 cat >> $CONFIG_STATUS <<\EOF
22910 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
22911 if test -n "$CONFIG_FILES"; then
22912 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
22913 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
22914 grep '^MULTISUBDIR =' Makefile >> src/Makefile
22915 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
22917 chmod +x mkcheck
22918 chmod +x testsuite_flags
22920 exit 0
22922 chmod +x $CONFIG_STATUS
22923 rm -fr confdefs* $ac_clean_files
22924 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22928 # Sanity checking & User-visible messages.
22929 # Checks down here, otherwise they get scrolled off before
22930 # the user will notice.
22932 # Trying to get more people to read documentation. Possibly remove
22933 # check and warn all the time. There is no "informational" AC_MSG_
22934 # macro, so these are going to be printed even when --quiet/--silent
22935 # is given.
22936 if test ! -f stamp-sanity-warned; then
22937 touch stamp-sanity-warned
22938 echo ""
22939 echo "Please make certain that you read the installation information here:"
22940 echo " faster => ${srcdir}/docs/html/install.html"
22941 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
22942 echo ""
22943 echo "and the configuration information here:"
22944 echo " faster => ${srcdir}/docs/html/configopts.html"
22945 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
22946 echo ""
22947 echo "before proceeding with ${_cv_gnu_make_command}."
22948 echo ""