Daily bump.
[official-gcc.git] / libstdc++-v3 / configure
blob553f21b6f5dbf006d46228d6b8365c0dd6132d31
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 sitefile=
89 srcdir=
90 target=NONE
91 verbose=
92 x_includes=NONE
93 x_libraries=NONE
94 bindir='${exec_prefix}/bin'
95 sbindir='${exec_prefix}/sbin'
96 libexecdir='${exec_prefix}/libexec'
97 datadir='${prefix}/share'
98 sysconfdir='${prefix}/etc'
99 sharedstatedir='${prefix}/com'
100 localstatedir='${prefix}/var'
101 libdir='${exec_prefix}/lib'
102 includedir='${prefix}/include'
103 oldincludedir='/usr/include'
104 infodir='${prefix}/info'
105 mandir='${prefix}/man'
107 # Initialize some other variables.
108 subdirs=
109 MFLAGS= MAKEFLAGS=
110 SHELL=${CONFIG_SHELL-/bin/sh}
111 # Maximum number of lines to put in a shell here document.
112 ac_max_here_lines=12
114 ac_prev=
115 for ac_option
118 # If the previous option needs an argument, assign it.
119 if test -n "$ac_prev"; then
120 eval "$ac_prev=\$ac_option"
121 ac_prev=
122 continue
125 case "$ac_option" in
126 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
127 *) ac_optarg= ;;
128 esac
130 # Accept the important Cygnus configure options, so we can diagnose typos.
132 case "$ac_option" in
134 -bindir | --bindir | --bindi | --bind | --bin | --bi)
135 ac_prev=bindir ;;
136 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
137 bindir="$ac_optarg" ;;
139 -build | --build | --buil | --bui | --bu)
140 ac_prev=build ;;
141 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
142 build="$ac_optarg" ;;
144 -cache-file | --cache-file | --cache-fil | --cache-fi \
145 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
146 ac_prev=cache_file ;;
147 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
148 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
149 cache_file="$ac_optarg" ;;
151 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
152 ac_prev=datadir ;;
153 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
154 | --da=*)
155 datadir="$ac_optarg" ;;
157 -disable-* | --disable-*)
158 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
159 # Reject names that are not valid shell variable names.
160 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
161 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164 eval "enable_${ac_feature}=no" ;;
166 -enable-* | --enable-*)
167 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
168 # Reject names that are not valid shell variable names.
169 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
170 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173 case "$ac_option" in
174 *=*) ;;
175 *) ac_optarg=yes ;;
176 esac
177 eval "enable_${ac_feature}='$ac_optarg'" ;;
179 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
180 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
181 | --exec | --exe | --ex)
182 ac_prev=exec_prefix ;;
183 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
184 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
185 | --exec=* | --exe=* | --ex=*)
186 exec_prefix="$ac_optarg" ;;
188 -gas | --gas | --ga | --g)
189 # Obsolete; use --with-gas.
190 with_gas=yes ;;
192 -help | --help | --hel | --he)
193 # Omit some internal or obsolete options to make the list less imposing.
194 # This message is too long to be a string in the A/UX 3.1 sh.
195 cat << EOF
196 Usage: configure [options] [host]
197 Options: [defaults in brackets after descriptions]
198 Configuration:
199 --cache-file=FILE cache test results in FILE
200 --help print this message
201 --no-create do not create output files
202 --quiet, --silent do not print \`checking...' messages
203 --site-file=FILE use FILE as the site file
204 --version print the version of autoconf that created configure
205 Directory and file names:
206 --prefix=PREFIX install architecture-independent files in PREFIX
207 [$ac_default_prefix]
208 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
209 [same as prefix]
210 --bindir=DIR user executables in DIR [EPREFIX/bin]
211 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
212 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
213 --datadir=DIR read-only architecture-independent data in DIR
214 [PREFIX/share]
215 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
216 --sharedstatedir=DIR modifiable architecture-independent data in DIR
217 [PREFIX/com]
218 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
219 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
220 --includedir=DIR C header files in DIR [PREFIX/include]
221 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
222 --infodir=DIR info documentation in DIR [PREFIX/info]
223 --mandir=DIR man documentation in DIR [PREFIX/man]
224 --srcdir=DIR find the sources in DIR [configure dir or ..]
225 --program-prefix=PREFIX prepend PREFIX to installed program names
226 --program-suffix=SUFFIX append SUFFIX to installed program names
227 --program-transform-name=PROGRAM
228 run sed PROGRAM on installed program names
230 cat << EOF
231 Host type:
232 --build=BUILD configure for building on BUILD [BUILD=HOST]
233 --host=HOST configure for HOST [guessed]
234 --target=TARGET configure for TARGET [TARGET=HOST]
235 Features and packages:
236 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
237 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
238 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
239 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
240 --x-includes=DIR X include files are in DIR
241 --x-libraries=DIR X library files are in DIR
243 if test -n "$ac_help"; then
244 echo "--enable and --with options recognized:$ac_help"
246 exit 0 ;;
248 -host | --host | --hos | --ho)
249 ac_prev=host ;;
250 -host=* | --host=* | --hos=* | --ho=*)
251 host="$ac_optarg" ;;
253 -includedir | --includedir | --includedi | --included | --include \
254 | --includ | --inclu | --incl | --inc)
255 ac_prev=includedir ;;
256 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
257 | --includ=* | --inclu=* | --incl=* | --inc=*)
258 includedir="$ac_optarg" ;;
260 -infodir | --infodir | --infodi | --infod | --info | --inf)
261 ac_prev=infodir ;;
262 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
263 infodir="$ac_optarg" ;;
265 -libdir | --libdir | --libdi | --libd)
266 ac_prev=libdir ;;
267 -libdir=* | --libdir=* | --libdi=* | --libd=*)
268 libdir="$ac_optarg" ;;
270 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
271 | --libexe | --libex | --libe)
272 ac_prev=libexecdir ;;
273 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
274 | --libexe=* | --libex=* | --libe=*)
275 libexecdir="$ac_optarg" ;;
277 -localstatedir | --localstatedir | --localstatedi | --localstated \
278 | --localstate | --localstat | --localsta | --localst \
279 | --locals | --local | --loca | --loc | --lo)
280 ac_prev=localstatedir ;;
281 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
282 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
283 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
284 localstatedir="$ac_optarg" ;;
286 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
287 ac_prev=mandir ;;
288 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
289 mandir="$ac_optarg" ;;
291 -nfp | --nfp | --nf)
292 # Obsolete; use --without-fp.
293 with_fp=no ;;
295 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
296 | --no-cr | --no-c)
297 no_create=yes ;;
299 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
300 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301 no_recursion=yes ;;
303 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
304 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
305 | --oldin | --oldi | --old | --ol | --o)
306 ac_prev=oldincludedir ;;
307 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
308 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
309 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
310 oldincludedir="$ac_optarg" ;;
312 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
313 ac_prev=prefix ;;
314 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315 prefix="$ac_optarg" ;;
317 -program-prefix | --program-prefix | --program-prefi | --program-pref \
318 | --program-pre | --program-pr | --program-p)
319 ac_prev=program_prefix ;;
320 -program-prefix=* | --program-prefix=* | --program-prefi=* \
321 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
322 program_prefix="$ac_optarg" ;;
324 -program-suffix | --program-suffix | --program-suffi | --program-suff \
325 | --program-suf | --program-su | --program-s)
326 ac_prev=program_suffix ;;
327 -program-suffix=* | --program-suffix=* | --program-suffi=* \
328 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
329 program_suffix="$ac_optarg" ;;
331 -program-transform-name | --program-transform-name \
332 | --program-transform-nam | --program-transform-na \
333 | --program-transform-n | --program-transform- \
334 | --program-transform | --program-transfor \
335 | --program-transfo | --program-transf \
336 | --program-trans | --program-tran \
337 | --progr-tra | --program-tr | --program-t)
338 ac_prev=program_transform_name ;;
339 -program-transform-name=* | --program-transform-name=* \
340 | --program-transform-nam=* | --program-transform-na=* \
341 | --program-transform-n=* | --program-transform-=* \
342 | --program-transform=* | --program-transfor=* \
343 | --program-transfo=* | --program-transf=* \
344 | --program-trans=* | --program-tran=* \
345 | --progr-tra=* | --program-tr=* | --program-t=*)
346 program_transform_name="$ac_optarg" ;;
348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
349 | -silent | --silent | --silen | --sile | --sil)
350 silent=yes ;;
352 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
353 ac_prev=sbindir ;;
354 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
355 | --sbi=* | --sb=*)
356 sbindir="$ac_optarg" ;;
358 -sharedstatedir | --sharedstatedir | --sharedstatedi \
359 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
360 | --sharedst | --shareds | --shared | --share | --shar \
361 | --sha | --sh)
362 ac_prev=sharedstatedir ;;
363 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
364 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
365 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
366 | --sha=* | --sh=*)
367 sharedstatedir="$ac_optarg" ;;
369 -site | --site | --sit)
370 ac_prev=site ;;
371 -site=* | --site=* | --sit=*)
372 site="$ac_optarg" ;;
374 -site-file | --site-file | --site-fil | --site-fi | --site-f)
375 ac_prev=sitefile ;;
376 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
377 sitefile="$ac_optarg" ;;
379 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
380 ac_prev=srcdir ;;
381 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
382 srcdir="$ac_optarg" ;;
384 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
385 | --syscon | --sysco | --sysc | --sys | --sy)
386 ac_prev=sysconfdir ;;
387 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
388 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
389 sysconfdir="$ac_optarg" ;;
391 -target | --target | --targe | --targ | --tar | --ta | --t)
392 ac_prev=target ;;
393 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
394 target="$ac_optarg" ;;
396 -v | -verbose | --verbose | --verbos | --verbo | --verb)
397 verbose=yes ;;
399 -version | --version | --versio | --versi | --vers)
400 echo "configure generated by autoconf version 2.13"
401 exit 0 ;;
403 -with-* | --with-*)
404 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 ac_package=`echo $ac_package| sed 's/-/_/g'`
410 case "$ac_option" in
411 *=*) ;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "with_${ac_package}='$ac_optarg'" ;;
416 -without-* | --without-*)
417 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
420 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}=no" ;;
425 --x)
426 # Obsolete; use --with-x.
427 with_x=yes ;;
429 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
430 | --x-incl | --x-inc | --x-in | --x-i)
431 ac_prev=x_includes ;;
432 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
433 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
434 x_includes="$ac_optarg" ;;
436 -x-libraries | --x-libraries | --x-librarie | --x-librari \
437 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
438 ac_prev=x_libraries ;;
439 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
440 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
441 x_libraries="$ac_optarg" ;;
443 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
447 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
448 echo "configure: warning: $ac_option: invalid host type" 1>&2
450 if test "x$nonopt" != xNONE; then
451 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
453 nonopt="$ac_option"
456 esac
457 done
459 if test -n "$ac_prev"; then
460 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
463 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
465 # File descriptor usage:
466 # 0 standard input
467 # 1 file creation
468 # 2 errors and warnings
469 # 3 some systems may open it to /dev/tty
470 # 4 used on the Kubota Titan
471 # 6 checking for... messages and results
472 # 5 compiler messages saved in config.log
473 if test "$silent" = yes; then
474 exec 6>/dev/null
475 else
476 exec 6>&1
478 exec 5>./config.log
480 echo "\
481 This file contains any messages produced by compilers while
482 running configure, to aid debugging if configure makes a mistake.
483 " 1>&5
485 # Strip out --no-create and --no-recursion so they do not pile up.
486 # Also quote any args containing shell metacharacters.
487 ac_configure_args=
488 for ac_arg
490 case "$ac_arg" in
491 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
492 | --no-cr | --no-c) ;;
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
495 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
496 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
497 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
498 esac
499 done
501 # NLS nuisances.
502 # Only set these to C if already set. These must not be set unconditionally
503 # because not all systems understand e.g. LANG=C (notably SCO).
504 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
505 # Non-C LC_CTYPE values break the ctype check.
506 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
507 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
508 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
509 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
511 # confdefs.h avoids OS command line length limits that DEFS can exceed.
512 rm -rf conftest* confdefs.h
513 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
514 echo > confdefs.h
516 # A filename unique to this package, relative to the directory that
517 # configure is in, which we can look for to find out if srcdir is correct.
518 ac_unique_file=src/ios.cc
520 # Find the source files, if location was not specified.
521 if test -z "$srcdir"; then
522 ac_srcdir_defaulted=yes
523 # Try the directory containing this script, then its parent.
524 ac_prog=$0
525 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
526 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
527 srcdir=$ac_confdir
528 if test ! -r $srcdir/$ac_unique_file; then
529 srcdir=..
531 else
532 ac_srcdir_defaulted=no
534 if test ! -r $srcdir/$ac_unique_file; then
535 if test "$ac_srcdir_defaulted" = yes; then
536 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
537 else
538 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
541 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
543 # Prefer explicitly selected file to automatically selected ones.
544 if test -z "$sitefile"; then
545 if test -z "$CONFIG_SITE"; then
546 if test "x$prefix" != xNONE; then
547 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
548 else
549 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
552 else
553 CONFIG_SITE="$sitefile"
555 for ac_site_file in $CONFIG_SITE; do
556 if test -r "$ac_site_file"; then
557 echo "loading site script $ac_site_file"
558 . "$ac_site_file"
560 done
562 if test -r "$cache_file"; then
563 echo "loading cache $cache_file"
564 . $cache_file
565 else
566 echo "creating cache $cache_file"
567 > $cache_file
570 ac_ext=c
571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
572 ac_cpp='$CPP $CPPFLAGS'
573 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
574 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
575 cross_compiling=$ac_cv_prog_cc_cross
577 ac_exeext=
578 ac_objext=o
579 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
580 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582 ac_n= ac_c='
583 ' ac_t=' '
584 else
585 ac_n=-n ac_c= ac_t=
587 else
588 ac_n= ac_c='\c' ac_t=
593 # This works around the fact that libtool configuration may change LD
594 # for this particular configuration, but some shells, instead of
595 # keeping the changes in LD private, export them just because LD is
596 # exported.
597 ORIGINAL_LD_FOR_MULTILIBS=$LD
599 PACKAGE=libstdc++
601 # For libtool versioning info, format is CURRENT:REVISION:AGE
602 libtool_VERSION=4:1:0
606 # Check whether --enable-multilib or --disable-multilib was given.
607 if test "${enable_multilib+set}" = set; then
608 enableval="$enable_multilib"
609 case "${enableval}" in
610 yes) multilib=yes ;;
611 no) multilib=no ;;
612 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
613 esac
614 else
615 multilib=yes
618 # When building with srcdir == objdir, links to the source files will
619 # be created in directories within the target_subdir. We have to
620 # adjust toplevel_srcdir accordingly, so that configure finds
621 # install-sh and other auxiliary files that live in the top-level
622 # source directory.
623 if test "${srcdir}" = "."; then
624 if test -z "${with_target_subdir}"; then
625 toprel=".."
626 else
627 if test "${with_target_subdir}" != "."; then
628 toprel="${with_multisrctop}../.."
629 else
630 toprel="${with_multisrctop}.."
633 else
634 toprel=".."
636 ac_aux_dir=
637 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
638 if test -f $ac_dir/install-sh; then
639 ac_aux_dir=$ac_dir
640 ac_install_sh="$ac_aux_dir/install-sh -c"
641 break
642 elif test -f $ac_dir/install.sh; then
643 ac_aux_dir=$ac_dir
644 ac_install_sh="$ac_aux_dir/install.sh -c"
645 break
647 done
648 if test -z "$ac_aux_dir"; then
649 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
651 ac_config_guess=$ac_aux_dir/config.guess
652 ac_config_sub=$ac_aux_dir/config.sub
653 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
655 toplevel_srcdir=\${top_srcdir}/$toprel
659 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
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.host and configure.target, as well as finds CC, CXX
756 # and assorted other critical bits. Have to run this before the
757 # GLIBCPP_ENABLE_* macros below.
758 if test $host != $build; then
759 ac_tool_prefix=${host_alias}-
760 else
761 ac_tool_prefix=
764 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
765 echo "configure:766: checking for Cygwin environment" >&5
766 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
767 echo $ac_n "(cached) $ac_c" 1>&6
768 else
769 cat > conftest.$ac_ext <<EOF
770 #line 771 "configure"
771 #include "confdefs.h"
773 int main() {
775 #ifndef __CYGWIN__
776 #define __CYGWIN__ __CYGWIN32__
777 #endif
778 return __CYGWIN__;
779 ; return 0; }
781 if { (eval echo configure:782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
782 rm -rf conftest*
783 ac_cv_cygwin=yes
784 else
785 echo "configure: failed program was:" >&5
786 cat conftest.$ac_ext >&5
787 rm -rf conftest*
788 ac_cv_cygwin=no
790 rm -f conftest*
791 rm -f conftest*
794 echo "$ac_t""$ac_cv_cygwin" 1>&6
795 CYGWIN=
796 test "$ac_cv_cygwin" = yes && CYGWIN=yes
797 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
798 echo "configure:799: checking for mingw32 environment" >&5
799 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
800 echo $ac_n "(cached) $ac_c" 1>&6
801 else
802 cat > conftest.$ac_ext <<EOF
803 #line 804 "configure"
804 #include "confdefs.h"
806 int main() {
807 return __MINGW32__;
808 ; return 0; }
810 if { (eval echo configure:811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
811 rm -rf conftest*
812 ac_cv_mingw32=yes
813 else
814 echo "configure: failed program was:" >&5
815 cat conftest.$ac_ext >&5
816 rm -rf conftest*
817 ac_cv_mingw32=no
819 rm -f conftest*
820 rm -f conftest*
823 echo "$ac_t""$ac_cv_mingw32" 1>&6
824 MINGW32=
825 test "$ac_cv_mingw32" = yes && MINGW32=yes
828 #possibly test for the presence of the compiler sources here?
830 # Export build and source directories.
831 # These need to be absolute paths, yet at the same time need to
832 # canonicalize only relative paths, because then amd will not unmount
833 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
834 glibcpp_builddir=`${PWDCMD-pwd}`
835 case $srcdir in
836 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
837 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
838 esac
844 for ac_prog in mawk gawk nawk awk
846 # Extract the first word of "$ac_prog", so it can be a program name with args.
847 set dummy $ac_prog; ac_word=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
852 else
853 if test -n "$AWK"; then
854 ac_cv_prog_AWK="$AWK" # Let the user override the test.
855 else
856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
857 ac_dummy="$PATH"
858 for ac_dir in $ac_dummy; do
859 test -z "$ac_dir" && ac_dir=.
860 if test -f $ac_dir/$ac_word; then
861 ac_cv_prog_AWK="$ac_prog"
862 break
864 done
865 IFS="$ac_save_ifs"
868 AWK="$ac_cv_prog_AWK"
869 if test -n "$AWK"; then
870 echo "$ac_t""$AWK" 1>&6
871 else
872 echo "$ac_t""no" 1>&6
875 test -n "$AWK" && break
876 done
878 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also
879 # be 'cp -p' if linking isn't available. Uncomment the next line to
880 # force a particular method.
881 #ac_cv_prog_LN_S='cp -p'
882 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
883 echo "configure:884: checking whether ln -s works" >&5
884 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
886 else
887 rm -f conftestdata
888 if ln -s X conftestdata 2>/dev/null
889 then
890 rm -f conftestdata
891 ac_cv_prog_LN_S="ln -s"
892 else
893 ac_cv_prog_LN_S=ln
896 LN_S="$ac_cv_prog_LN_S"
897 if test "$ac_cv_prog_LN_S" = "ln -s"; then
898 echo "$ac_t""yes" 1>&6
899 else
900 echo "$ac_t""no" 1>&6
904 # We use these options to decide which functions to include.
905 # Check whether --with-target-subdir or --without-target-subdir was given.
906 if test "${with_target_subdir+set}" = set; then
907 withval="$with_target_subdir"
911 # Check whether --with-cross-host or --without-cross-host was given.
912 if test "${with_cross_host+set}" = set; then
913 withval="$with_cross_host"
918 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
921 # Never versions of autoconf add an underscore to these functions.
922 # Prevent future problems ...
928 # AC_PROG_CC
929 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
930 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
931 # are probably using a cross compiler, which will not be able to fully
932 # link an executable. This is addressed in later versions of autoconf.
937 # Extract the first word of "gcc", so it can be a program name with args.
938 set dummy gcc; ac_word=$2
939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
940 echo "configure:941: checking for $ac_word" >&5
941 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
942 echo $ac_n "(cached) $ac_c" 1>&6
943 else
944 if test -n "$CC"; then
945 ac_cv_prog_CC="$CC" # Let the user override the test.
946 else
947 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
948 ac_dummy="$PATH"
949 for ac_dir in $ac_dummy; do
950 test -z "$ac_dir" && ac_dir=.
951 if test -f $ac_dir/$ac_word; then
952 ac_cv_prog_CC="gcc"
953 break
955 done
956 IFS="$ac_save_ifs"
959 CC="$ac_cv_prog_CC"
960 if test -n "$CC"; then
961 echo "$ac_t""$CC" 1>&6
962 else
963 echo "$ac_t""no" 1>&6
966 if test -z "$CC"; then
967 # Extract the first word of "cc", so it can be a program name with args.
968 set dummy cc; ac_word=$2
969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
970 echo "configure:971: checking for $ac_word" >&5
971 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
972 echo $ac_n "(cached) $ac_c" 1>&6
973 else
974 if test -n "$CC"; then
975 ac_cv_prog_CC="$CC" # Let the user override the test.
976 else
977 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
978 ac_prog_rejected=no
979 ac_dummy="$PATH"
980 for ac_dir in $ac_dummy; do
981 test -z "$ac_dir" && ac_dir=.
982 if test -f $ac_dir/$ac_word; then
983 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
984 ac_prog_rejected=yes
985 continue
987 ac_cv_prog_CC="cc"
988 break
990 done
991 IFS="$ac_save_ifs"
992 if test $ac_prog_rejected = yes; then
993 # We found a bogon in the path, so make sure we never use it.
994 set dummy $ac_cv_prog_CC
995 shift
996 if test $# -gt 0; then
997 # We chose a different compiler from the bogus one.
998 # However, it has the same basename, so the bogon will be chosen
999 # first if we set CC to just the basename; use the full file name.
1000 shift
1001 set dummy "$ac_dir/$ac_word" "$@"
1002 shift
1003 ac_cv_prog_CC="$@"
1008 CC="$ac_cv_prog_CC"
1009 if test -n "$CC"; then
1010 echo "$ac_t""$CC" 1>&6
1011 else
1012 echo "$ac_t""no" 1>&6
1015 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1018 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1019 echo "configure:1020: checking whether we are using GNU C" >&5
1020 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1021 echo $ac_n "(cached) $ac_c" 1>&6
1022 else
1023 cat > conftest.c <<EOF
1024 #ifdef __GNUC__
1025 yes;
1026 #endif
1028 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1029 ac_cv_prog_gcc=yes
1030 else
1031 ac_cv_prog_gcc=no
1035 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1037 if test $ac_cv_prog_gcc = yes; then
1038 GCC=yes
1039 ac_test_CFLAGS="${CFLAGS+set}"
1040 ac_save_CFLAGS="$CFLAGS"
1041 CFLAGS=
1042 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1043 echo "configure:1044: checking whether ${CC-cc} accepts -g" >&5
1044 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&6
1046 else
1047 echo 'void f(){}' > conftest.c
1048 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1049 ac_cv_prog_cc_g=yes
1050 else
1051 ac_cv_prog_cc_g=no
1053 rm -f conftest*
1057 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1058 if test "$ac_test_CFLAGS" = set; then
1059 CFLAGS="$ac_save_CFLAGS"
1060 elif test $ac_cv_prog_cc_g = yes; then
1061 CFLAGS="-g -O2"
1062 else
1063 CFLAGS="-O2"
1065 else
1066 GCC=
1067 test "${CFLAGS+set}" = set || CFLAGS="-g"
1071 # Likewise for AC_PROG_CXX. We can't just call it directly because g++
1072 # will try to link in libstdc++.
1076 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1077 # flags that come in CXX while configuring libstdc++. They're different
1078 # from those used for all other target libraries. If CXX is set in
1079 # the environment, respect that here.
1080 glibcpp_CXX=$CXX
1081 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1083 # Extract the first word of "$ac_prog", so it can be a program name with args.
1084 set dummy $ac_prog; ac_word=$2
1085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1086 echo "configure:1087: checking for $ac_word" >&5
1087 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1089 else
1090 if test -n "$glibcpp_CXX"; then
1091 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1092 else
1093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1094 ac_dummy="$PATH"
1095 for ac_dir in $ac_dummy; do
1096 test -z "$ac_dir" && ac_dir=.
1097 if test -f $ac_dir/$ac_word; then
1098 ac_cv_prog_glibcpp_CXX="$ac_prog"
1099 break
1101 done
1102 IFS="$ac_save_ifs"
1105 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1106 if test -n "$glibcpp_CXX"; then
1107 echo "$ac_t""$glibcpp_CXX" 1>&6
1108 else
1109 echo "$ac_t""no" 1>&6
1112 test -n "$glibcpp_CXX" && break
1113 done
1114 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1117 CXX=$glibcpp_CXX
1118 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1120 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1121 echo "configure:1122: checking whether we are using GNU C++" >&5
1122 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1123 echo $ac_n "(cached) $ac_c" 1>&6
1124 else
1125 cat > conftest.C <<EOF
1126 #ifdef __GNUC__
1127 yes;
1128 #endif
1130 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1131 ac_cv_prog_gxx=yes
1132 else
1133 ac_cv_prog_gxx=no
1137 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1139 if test $ac_cv_prog_gxx = yes; then
1140 GXX=yes
1141 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1142 ac_save_CXXFLAGS="$CXXFLAGS"
1143 CXXFLAGS=
1144 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether ${CXX-g++} accepts -g" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1148 else
1149 echo 'void f(){}' > conftest.cc
1150 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1151 ac_cv_prog_cxx_g=yes
1152 else
1153 ac_cv_prog_cxx_g=no
1155 rm -f conftest*
1159 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1160 if test "$ac_test_CXXFLAGS" = set; then
1161 CXXFLAGS="$ac_save_CXXFLAGS"
1162 elif test $ac_cv_prog_cxx_g = yes; then
1163 CXXFLAGS="-g -O2"
1164 else
1165 CXXFLAGS="-O2"
1167 else
1168 GXX=
1169 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1173 # For directory versioning (e.g., headers) and other variables.
1174 echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1175 echo "configure:1176: checking for GCC version number" >&5
1176 gcc_version=`$glibcpp_CXX -dumpversion`
1177 echo "$ac_t""$gcc_version" 1>&6
1179 # For some reason, gettext needs this.
1180 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1181 echo "configure:1182: checking for POSIXized ISC" >&5
1182 if test -d /etc/conf/kconfig.d &&
1183 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1184 then
1185 echo "$ac_t""yes" 1>&6
1186 ISC=yes # If later tests want to check for ISC.
1187 cat >> confdefs.h <<\EOF
1188 #define _POSIX_SOURCE 1
1191 if test "$GCC" = yes; then
1192 CC="$CC -posix"
1193 else
1194 CC="$CC -Xp"
1196 else
1197 echo "$ac_t""no" 1>&6
1198 ISC=
1202 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1203 set dummy ${ac_tool_prefix}as; ac_word=$2
1204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1205 echo "configure:1206: checking for $ac_word" >&5
1206 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1208 else
1209 if test -n "$AS"; then
1210 ac_cv_prog_AS="$AS" # Let the user override the test.
1211 else
1212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1213 ac_dummy="$PATH"
1214 for ac_dir in $ac_dummy; do
1215 test -z "$ac_dir" && ac_dir=.
1216 if test -f $ac_dir/$ac_word; then
1217 ac_cv_prog_AS="${ac_tool_prefix}as"
1218 break
1220 done
1221 IFS="$ac_save_ifs"
1222 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1225 AS="$ac_cv_prog_AS"
1226 if test -n "$AS"; then
1227 echo "$ac_t""$AS" 1>&6
1228 else
1229 echo "$ac_t""no" 1>&6
1234 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1235 set dummy ${ac_tool_prefix}ar; ac_word=$2
1236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1237 echo "configure:1238: checking for $ac_word" >&5
1238 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1240 else
1241 if test -n "$AR"; then
1242 ac_cv_prog_AR="$AR" # Let the user override the test.
1243 else
1244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1245 ac_dummy="$PATH"
1246 for ac_dir in $ac_dummy; do
1247 test -z "$ac_dir" && ac_dir=.
1248 if test -f $ac_dir/$ac_word; then
1249 ac_cv_prog_AR="${ac_tool_prefix}ar"
1250 break
1252 done
1253 IFS="$ac_save_ifs"
1254 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1257 AR="$ac_cv_prog_AR"
1258 if test -n "$AR"; then
1259 echo "$ac_t""$AR" 1>&6
1260 else
1261 echo "$ac_t""no" 1>&6
1266 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1267 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1268 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1269 echo "configure:1270: checking for $ac_word" >&5
1270 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1271 echo $ac_n "(cached) $ac_c" 1>&6
1272 else
1273 if test -n "$RANLIB"; then
1274 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1275 else
1276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1277 ac_dummy="$PATH"
1278 for ac_dir in $ac_dummy; do
1279 test -z "$ac_dir" && ac_dir=.
1280 if test -f $ac_dir/$ac_word; then
1281 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1282 break
1284 done
1285 IFS="$ac_save_ifs"
1288 RANLIB="$ac_cv_prog_RANLIB"
1289 if test -n "$RANLIB"; then
1290 echo "$ac_t""$RANLIB" 1>&6
1291 else
1292 echo "$ac_t""no" 1>&6
1296 if test -z "$ac_cv_prog_RANLIB"; then
1297 if test -n "$ac_tool_prefix"; then
1298 # Extract the first word of "ranlib", so it can be a program name with args.
1299 set dummy ranlib; ac_word=$2
1300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1301 echo "configure:1302: checking for $ac_word" >&5
1302 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1304 else
1305 if test -n "$RANLIB"; then
1306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1307 else
1308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1309 ac_dummy="$PATH"
1310 for ac_dir in $ac_dummy; do
1311 test -z "$ac_dir" && ac_dir=.
1312 if test -f $ac_dir/$ac_word; then
1313 ac_cv_prog_RANLIB="ranlib"
1314 break
1316 done
1317 IFS="$ac_save_ifs"
1318 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1321 RANLIB="$ac_cv_prog_RANLIB"
1322 if test -n "$RANLIB"; then
1323 echo "$ac_t""$RANLIB" 1>&6
1324 else
1325 echo "$ac_t""no" 1>&6
1328 else
1329 RANLIB="ranlib-not-found-in-path-error"
1333 # Find a good install program. We prefer a C program (faster),
1334 # so one script is as good as another. But avoid the broken or
1335 # incompatible versions:
1336 # SysV /etc/install, /usr/sbin/install
1337 # SunOS /usr/etc/install
1338 # IRIX /sbin/install
1339 # AIX /bin/install
1340 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1341 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1342 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1343 # ./install, which can be erroneously created by make from ./install.sh.
1344 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1345 echo "configure:1346: checking for a BSD compatible install" >&5
1346 if test -z "$INSTALL"; then
1347 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1349 else
1350 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1351 for ac_dir in $PATH; do
1352 # Account for people who put trailing slashes in PATH elements.
1353 case "$ac_dir/" in
1354 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1356 # OSF1 and SCO ODT 3.0 have their own names for install.
1357 # Don't use installbsd from OSF since it installs stuff as root
1358 # by default.
1359 for ac_prog in ginstall scoinst install; do
1360 if test -f $ac_dir/$ac_prog; then
1361 if test $ac_prog = install &&
1362 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1363 # AIX install. It has an incompatible calling convention.
1365 else
1366 ac_cv_path_install="$ac_dir/$ac_prog -c"
1367 break 2
1370 done
1372 esac
1373 done
1374 IFS="$ac_save_IFS"
1377 if test "${ac_cv_path_install+set}" = set; then
1378 INSTALL="$ac_cv_path_install"
1379 else
1380 # As a last resort, use the slow shell script. We don't cache a
1381 # path for INSTALL within a source directory, because that will
1382 # break other packages using the cache if that directory is
1383 # removed, or if the path is relative.
1384 INSTALL="$ac_install_sh"
1387 echo "$ac_t""$INSTALL" 1>&6
1389 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1390 # It thinks the first close brace ends the variable substitution.
1391 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1393 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1395 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1398 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1399 echo "configure:1400: checking whether to enable maintainer-specific portions of Makefiles" >&5
1400 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1401 if test "${enable_maintainer_mode+set}" = set; then
1402 enableval="$enable_maintainer_mode"
1403 USE_MAINTAINER_MODE=$enableval
1404 else
1405 USE_MAINTAINER_MODE=no
1408 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1411 if test $USE_MAINTAINER_MODE = yes; then
1412 MAINTAINER_MODE_TRUE=
1413 MAINTAINER_MODE_FALSE='#'
1414 else
1415 MAINTAINER_MODE_TRUE='#'
1416 MAINTAINER_MODE_FALSE=
1418 MAINT=$MAINTAINER_MODE_TRUE
1422 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1423 # at least currently, we never actually build a program, so we never
1424 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1425 # fails, because we are probably configuring with a cross compiler
1426 # which can't create executables. So we include AC_EXEEXT to keep
1427 # automake happy, but we don't execute it, since we don't care about
1428 # the result.
1429 if false; then
1430 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1431 # to nothing, so nothing would remain between `then' and `fi' if it
1432 # were not for the `:' below.
1436 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1437 echo "configure:1438: checking for executable suffix" >&5
1438 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1440 else
1441 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1442 ac_cv_exeext=.exe
1443 else
1444 rm -f conftest*
1445 echo 'int main () { return 0; }' > conftest.$ac_ext
1446 ac_cv_exeext=
1447 if { (eval echo configure:1448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1448 for file in conftest.*; do
1449 case $file in
1450 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1451 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1452 esac
1453 done
1454 else
1455 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1457 rm -f conftest*
1458 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1462 EXEEXT=""
1463 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1464 echo "$ac_t""${ac_cv_exeext}" 1>&6
1465 ac_exeext=$EXEEXT
1469 case ${glibcpp_basedir} in
1470 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1471 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1472 esac
1474 # Find platform-specific directories containing configuration info. In
1475 # addition to possibly modifying the same flags, it also sets up symlinks.
1477 . ${glibcpp_basedir}/configure.target
1478 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1479 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1483 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1484 echo "configure:1485: checking whether build environment is sane" >&5
1485 # Just in case
1486 sleep 1
1487 echo timestamp > conftestfile
1488 # Do `set' in a subshell so we don't clobber the current shell's
1489 # arguments. Must try -L first in case configure is actually a
1490 # symlink; some systems play weird games with the mod time of symlinks
1491 # (eg FreeBSD returns the mod time of the symlink's containing
1492 # directory).
1493 if (
1494 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1495 if test "$*" = "X"; then
1496 # -L didn't work.
1497 set X `ls -t $srcdir/configure conftestfile`
1499 if test "$*" != "X $srcdir/configure conftestfile" \
1500 && test "$*" != "X conftestfile $srcdir/configure"; then
1502 # If neither matched, then we have a broken ls. This can happen
1503 # if, for instance, CONFIG_SHELL is bash and it inherits a
1504 # broken ls alias from the environment. This has actually
1505 # happened. Such a system could not be considered "sane".
1506 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1507 alias in your environment" 1>&2; exit 1; }
1510 test "$2" = conftestfile
1512 then
1513 # Ok.
1515 else
1516 { echo "configure: error: newly created file is older than distributed files!
1517 Check your system clock" 1>&2; exit 1; }
1519 rm -f conftest*
1520 echo "$ac_t""yes" 1>&6
1521 if test "$program_transform_name" = s,x,x,; then
1522 program_transform_name=
1523 else
1524 # Double any \ or $. echo might interpret backslashes.
1525 cat <<\EOF_SED > conftestsed
1526 s,\\,\\\\,g; s,\$,$$,g
1527 EOF_SED
1528 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1529 rm -f conftestsed
1531 test "$program_prefix" != NONE &&
1532 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1533 # Use a double $ so make ignores it.
1534 test "$program_suffix" != NONE &&
1535 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1537 # sed with no file args requires a program.
1538 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1540 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1541 echo "configure:1542: checking whether ${MAKE-make} sets \${MAKE}" >&5
1542 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1543 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1545 else
1546 cat > conftestmake <<\EOF
1547 all:
1548 @echo 'ac_maketemp="${MAKE}"'
1550 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1551 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1552 if test -n "$ac_maketemp"; then
1553 eval ac_cv_prog_make_${ac_make}_set=yes
1554 else
1555 eval ac_cv_prog_make_${ac_make}_set=no
1557 rm -f conftestmake
1559 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1560 echo "$ac_t""yes" 1>&6
1561 SET_MAKE=
1562 else
1563 echo "$ac_t""no" 1>&6
1564 SET_MAKE="MAKE=${MAKE-make}"
1568 PACKAGE=$PACKAGE
1570 VERSION=$gcc_version
1572 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1573 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1575 cat >> confdefs.h <<EOF
1576 #define PACKAGE "$PACKAGE"
1579 cat >> confdefs.h <<EOF
1580 #define VERSION "$VERSION"
1585 missing_dir=`cd $ac_aux_dir && pwd`
1586 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1587 echo "configure:1588: checking for working aclocal" >&5
1588 # Run test in a subshell; some versions of sh will print an error if
1589 # an executable is not found, even if stderr is redirected.
1590 # Redirect stdin to placate older versions of autoconf. Sigh.
1591 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1592 ACLOCAL=aclocal
1593 echo "$ac_t""found" 1>&6
1594 else
1595 ACLOCAL="$missing_dir/missing aclocal"
1596 echo "$ac_t""missing" 1>&6
1599 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1600 echo "configure:1601: checking for working autoconf" >&5
1601 # Run test in a subshell; some versions of sh will print an error if
1602 # an executable is not found, even if stderr is redirected.
1603 # Redirect stdin to placate older versions of autoconf. Sigh.
1604 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1605 AUTOCONF=autoconf
1606 echo "$ac_t""found" 1>&6
1607 else
1608 AUTOCONF="$missing_dir/missing autoconf"
1609 echo "$ac_t""missing" 1>&6
1612 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1613 echo "configure:1614: checking for working automake" >&5
1614 # Run test in a subshell; some versions of sh will print an error if
1615 # an executable is not found, even if stderr is redirected.
1616 # Redirect stdin to placate older versions of autoconf. Sigh.
1617 if (automake --version) < /dev/null > /dev/null 2>&1; then
1618 AUTOMAKE=automake
1619 echo "$ac_t""found" 1>&6
1620 else
1621 AUTOMAKE="$missing_dir/missing automake"
1622 echo "$ac_t""missing" 1>&6
1625 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1626 echo "configure:1627: checking for working autoheader" >&5
1627 # Run test in a subshell; some versions of sh will print an error if
1628 # an executable is not found, even if stderr is redirected.
1629 # Redirect stdin to placate older versions of autoconf. Sigh.
1630 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1631 AUTOHEADER=autoheader
1632 echo "$ac_t""found" 1>&6
1633 else
1634 AUTOHEADER="$missing_dir/missing autoheader"
1635 echo "$ac_t""missing" 1>&6
1638 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1639 echo "configure:1640: checking for working makeinfo" >&5
1640 # Run test in a subshell; some versions of sh will print an error if
1641 # an executable is not found, even if stderr is redirected.
1642 # Redirect stdin to placate older versions of autoconf. Sigh.
1643 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1644 MAKEINFO=makeinfo
1645 echo "$ac_t""found" 1>&6
1646 else
1647 MAKEINFO="$missing_dir/missing makeinfo"
1648 echo "$ac_t""missing" 1>&6
1657 # Check whether --enable-shared or --disable-shared was given.
1658 if test "${enable_shared+set}" = set; then
1659 enableval="$enable_shared"
1660 p=${PACKAGE-default}
1661 case $enableval in
1662 yes) enable_shared=yes ;;
1663 no) enable_shared=no ;;
1665 enable_shared=no
1666 # Look at the argument we got. We use all the common list separators.
1667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1668 for pkg in $enableval; do
1669 if test "X$pkg" = "X$p"; then
1670 enable_shared=yes
1672 done
1673 IFS="$ac_save_ifs"
1675 esac
1676 else
1677 enable_shared=yes
1680 # Check whether --enable-static or --disable-static was given.
1681 if test "${enable_static+set}" = set; then
1682 enableval="$enable_static"
1683 p=${PACKAGE-default}
1684 case $enableval in
1685 yes) enable_static=yes ;;
1686 no) enable_static=no ;;
1688 enable_static=no
1689 # Look at the argument we got. We use all the common list separators.
1690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1691 for pkg in $enableval; do
1692 if test "X$pkg" = "X$p"; then
1693 enable_static=yes
1695 done
1696 IFS="$ac_save_ifs"
1698 esac
1699 else
1700 enable_static=yes
1703 # Check whether --enable-fast-install or --disable-fast-install was given.
1704 if test "${enable_fast_install+set}" = set; then
1705 enableval="$enable_fast_install"
1706 p=${PACKAGE-default}
1707 case $enableval in
1708 yes) enable_fast_install=yes ;;
1709 no) enable_fast_install=no ;;
1711 enable_fast_install=no
1712 # Look at the argument we got. We use all the common list separators.
1713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1714 for pkg in $enableval; do
1715 if test "X$pkg" = "X$p"; then
1716 enable_fast_install=yes
1718 done
1719 IFS="$ac_save_ifs"
1721 esac
1722 else
1723 enable_fast_install=yes
1726 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1727 if test "${with_gnu_ld+set}" = set; then
1728 withval="$with_gnu_ld"
1729 test "$withval" = no || with_gnu_ld=yes
1730 else
1731 with_gnu_ld=no
1734 ac_prog=ld
1735 if test "$GCC" = yes; then
1736 # Check if gcc -print-prog-name=ld gives a path.
1737 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1738 echo "configure:1739: checking for ld used by GCC" >&5
1739 case $host in
1740 *-*-mingw*)
1741 # gcc leaves a trailing carriage return which upsets mingw
1742 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1744 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1745 esac
1746 case $ac_prog in
1747 # Accept absolute paths.
1748 [\\/]* | [A-Za-z]:[\\/]*)
1749 re_direlt='/[^/][^/]*/\.\./'
1750 # Canonicalize the path of ld
1751 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1752 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1753 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1754 done
1755 test -z "$LD" && LD="$ac_prog"
1758 # If it fails, then pretend we aren't using GCC.
1759 ac_prog=ld
1762 # If it is relative, then search for the first ld in PATH.
1763 with_gnu_ld=unknown
1765 esac
1766 elif test "$with_gnu_ld" = yes; then
1767 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1768 echo "configure:1769: checking for GNU ld" >&5
1769 else
1770 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1771 echo "configure:1772: checking for non-GNU ld" >&5
1773 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1775 else
1776 if test -z "$LD"; then
1777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1778 for ac_dir in $PATH; do
1779 test -z "$ac_dir" && ac_dir=.
1780 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1781 lt_cv_path_LD="$ac_dir/$ac_prog"
1782 # Check to see if the program is GNU ld. I'd rather use --version,
1783 # but apparently some GNU ld's only accept -v.
1784 # Break only if it was the GNU/non-GNU ld that we prefer.
1785 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1786 test "$with_gnu_ld" != no && break
1787 else
1788 test "$with_gnu_ld" != yes && break
1791 done
1792 IFS="$ac_save_ifs"
1793 else
1794 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1798 LD="$lt_cv_path_LD"
1799 if test -n "$LD"; then
1800 echo "$ac_t""$LD" 1>&6
1801 else
1802 echo "$ac_t""no" 1>&6
1804 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1805 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1806 echo "configure:1807: checking if the linker ($LD) is GNU ld" >&5
1807 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1809 else
1810 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1811 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1812 lt_cv_prog_gnu_ld=yes
1813 else
1814 lt_cv_prog_gnu_ld=no
1818 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1819 with_gnu_ld=$lt_cv_prog_gnu_ld
1822 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1823 echo "configure:1824: checking for $LD option to reload object files" >&5
1824 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1826 else
1827 lt_cv_ld_reload_flag='-r'
1830 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1831 reload_flag=$lt_cv_ld_reload_flag
1832 test -n "$reload_flag" && reload_flag=" $reload_flag"
1834 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1835 echo "configure:1836: checking for BSD-compatible nm" >&5
1836 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1837 echo $ac_n "(cached) $ac_c" 1>&6
1838 else
1839 if test -n "$NM"; then
1840 # Let the user override the test.
1841 lt_cv_path_NM="$NM"
1842 else
1843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1844 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1845 test -z "$ac_dir" && ac_dir=.
1846 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1847 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1848 # Check to see if the nm accepts a BSD-compat flag.
1849 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1850 # nm: unknown option "B" ignored
1851 # Tru64's nm complains that /dev/null is an invalid object file
1852 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1853 lt_cv_path_NM="$tmp_nm -B"
1854 break
1855 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1856 lt_cv_path_NM="$tmp_nm -p"
1857 break
1858 else
1859 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1860 continue # so that we can try to find one that supports BSD flags
1863 done
1864 IFS="$ac_save_ifs"
1865 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1869 NM="$lt_cv_path_NM"
1870 echo "$ac_t""$NM" 1>&6
1872 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1873 echo "configure:1874: checking how to recognise dependant libraries" >&5
1874 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1876 else
1877 lt_cv_file_magic_cmd='$MAGIC_CMD'
1878 lt_cv_file_magic_test_file=
1879 lt_cv_deplibs_check_method='unknown'
1880 # Need to set the preceding variable on all platforms that support
1881 # interlibrary dependencies.
1882 # 'none' -- dependencies not supported.
1883 # `unknown' -- same as none, but documents that we really don't know.
1884 # 'pass_all' -- all dependencies passed with no checks.
1885 # 'test_compile' -- check by making test program.
1886 # 'file_magic [regex]' -- check by looking for files in library path
1887 # which responds to the $file_magic_cmd with a given egrep regex.
1888 # If you have `file' or equivalent on your system and you're not sure
1889 # whether `pass_all' will *always* work, you probably want this one.
1891 case $host_os in
1892 aix*)
1893 lt_cv_deplibs_check_method=pass_all
1896 beos*)
1897 lt_cv_deplibs_check_method=pass_all
1900 bsdi4*)
1901 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1902 lt_cv_file_magic_cmd='/usr/bin/file -L'
1903 lt_cv_file_magic_test_file=/shlib/libc.so
1906 cygwin* | mingw* |pw32*)
1907 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1908 lt_cv_file_magic_cmd='$OBJDUMP -f'
1911 darwin* | rhapsody*)
1912 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1913 lt_cv_file_magic_cmd='/usr/bin/file -L'
1914 case "$host_os" in
1915 rhapsody* | darwin1.012)
1916 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1918 *) # Darwin 1.3 on
1919 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1921 esac
1924 freebsd* )
1925 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1926 case $host_cpu in
1927 i*86 )
1928 # Not sure whether the presence of OpenBSD here was a mistake.
1929 # Let's accept both of them until this is cleared up.
1930 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1931 lt_cv_file_magic_cmd=/usr/bin/file
1932 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1934 esac
1935 else
1936 lt_cv_deplibs_check_method=pass_all
1940 gnu*)
1941 lt_cv_deplibs_check_method=pass_all
1944 hpux10.20*|hpux11*)
1945 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1946 lt_cv_file_magic_cmd=/usr/bin/file
1947 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1950 irix5* | irix6*)
1951 case $host_os in
1952 irix5*)
1953 # this will be overridden with pass_all, but let us keep it just in case
1954 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1957 case $LD in
1958 *-32|*"-32 ") libmagic=32-bit;;
1959 *-n32|*"-n32 ") libmagic=N32;;
1960 *-64|*"-64 ") libmagic=64-bit;;
1961 *) libmagic=never-match;;
1962 esac
1963 # this will be overridden with pass_all, but let us keep it just in case
1964 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1966 esac
1967 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1968 lt_cv_deplibs_check_method=pass_all
1971 # This must be Linux ELF.
1972 linux-gnu*)
1973 case $host_cpu in
1974 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1975 lt_cv_deplibs_check_method=pass_all ;;
1977 # glibc up to 2.1.1 does not perform some relocations on ARM
1978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1979 esac
1980 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1983 netbsd*)
1984 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1985 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1986 else
1987 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1991 newsos6)
1992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1993 lt_cv_file_magic_cmd=/usr/bin/file
1994 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1997 osf3* | osf4* | osf5*)
1998 # this will be overridden with pass_all, but let us keep it just in case
1999 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2000 lt_cv_file_magic_test_file=/shlib/libc.so
2001 lt_cv_deplibs_check_method=pass_all
2004 sco3.2v5*)
2005 lt_cv_deplibs_check_method=pass_all
2008 solaris*)
2009 lt_cv_deplibs_check_method=pass_all
2010 lt_cv_file_magic_test_file=/lib/libc.so
2013 sysv5uw[78]* | sysv4*uw2*)
2014 lt_cv_deplibs_check_method=pass_all
2017 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2018 case $host_vendor in
2019 ncr)
2020 lt_cv_deplibs_check_method=pass_all
2022 motorola)
2023 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]'
2024 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2026 esac
2028 esac
2032 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2033 file_magic_cmd=$lt_cv_file_magic_cmd
2034 deplibs_check_method=$lt_cv_deplibs_check_method
2036 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2037 echo "configure:2038: checking for object suffix" >&5
2038 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2040 else
2041 rm -f conftest*
2042 echo 'int i = 1;' > conftest.$ac_ext
2043 if { (eval echo configure:2044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2044 for ac_file in conftest.*; do
2045 case $ac_file in
2046 *.c) ;;
2047 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2048 esac
2049 done
2050 else
2051 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2053 rm -f conftest*
2056 echo "$ac_t""$ac_cv_objext" 1>&6
2057 OBJEXT=$ac_cv_objext
2058 ac_objext=$ac_cv_objext
2060 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2062 # Only perform the check for file, if the check method requires it
2063 case $deplibs_check_method in
2064 file_magic*)
2065 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2066 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2067 echo "configure:2068: checking for ${ac_tool_prefix}file" >&5
2068 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2070 else
2071 case $MAGIC_CMD in
2073 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2075 ?:/*)
2076 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2079 ac_save_MAGIC_CMD="$MAGIC_CMD"
2080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2081 ac_dummy="/usr/bin:$PATH"
2082 for ac_dir in $ac_dummy; do
2083 test -z "$ac_dir" && ac_dir=.
2084 if test -f $ac_dir/${ac_tool_prefix}file; then
2085 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2086 if test -n "$file_magic_test_file"; then
2087 case $deplibs_check_method in
2088 "file_magic "*)
2089 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2090 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2091 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2092 egrep "$file_magic_regex" > /dev/null; then
2094 else
2095 cat <<EOF 1>&2
2097 *** Warning: the command libtool uses to detect shared libraries,
2098 *** $file_magic_cmd, produces output that libtool cannot recognize.
2099 *** The result is that libtool may fail to recognize shared libraries
2100 *** as such. This will affect the creation of libtool libraries that
2101 *** depend on shared libraries, but programs linked with such libtool
2102 *** libraries will work regardless of this problem. Nevertheless, you
2103 *** may want to report the problem to your system manager and/or to
2104 *** bug-libtool@gnu.org
2107 fi ;;
2108 esac
2110 break
2112 done
2113 IFS="$ac_save_ifs"
2114 MAGIC_CMD="$ac_save_MAGIC_CMD"
2116 esac
2119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2120 if test -n "$MAGIC_CMD"; then
2121 echo "$ac_t""$MAGIC_CMD" 1>&6
2122 else
2123 echo "$ac_t""no" 1>&6
2126 if test -z "$lt_cv_path_MAGIC_CMD"; then
2127 if test -n "$ac_tool_prefix"; then
2128 echo $ac_n "checking for file""... $ac_c" 1>&6
2129 echo "configure:2130: checking for file" >&5
2130 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2132 else
2133 case $MAGIC_CMD in
2135 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2137 ?:/*)
2138 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2141 ac_save_MAGIC_CMD="$MAGIC_CMD"
2142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2143 ac_dummy="/usr/bin:$PATH"
2144 for ac_dir in $ac_dummy; do
2145 test -z "$ac_dir" && ac_dir=.
2146 if test -f $ac_dir/file; then
2147 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2148 if test -n "$file_magic_test_file"; then
2149 case $deplibs_check_method in
2150 "file_magic "*)
2151 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2153 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2154 egrep "$file_magic_regex" > /dev/null; then
2156 else
2157 cat <<EOF 1>&2
2159 *** Warning: the command libtool uses to detect shared libraries,
2160 *** $file_magic_cmd, produces output that libtool cannot recognize.
2161 *** The result is that libtool may fail to recognize shared libraries
2162 *** as such. This will affect the creation of libtool libraries that
2163 *** depend on shared libraries, but programs linked with such libtool
2164 *** libraries will work regardless of this problem. Nevertheless, you
2165 *** may want to report the problem to your system manager and/or to
2166 *** bug-libtool@gnu.org
2169 fi ;;
2170 esac
2172 break
2174 done
2175 IFS="$ac_save_ifs"
2176 MAGIC_CMD="$ac_save_MAGIC_CMD"
2178 esac
2181 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2182 if test -n "$MAGIC_CMD"; then
2183 echo "$ac_t""$MAGIC_CMD" 1>&6
2184 else
2185 echo "$ac_t""no" 1>&6
2188 else
2189 MAGIC_CMD=:
2195 esac
2197 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2198 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2200 echo "configure:2201: checking for $ac_word" >&5
2201 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2203 else
2204 if test -n "$RANLIB"; then
2205 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2206 else
2207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2208 ac_dummy="$PATH"
2209 for ac_dir in $ac_dummy; do
2210 test -z "$ac_dir" && ac_dir=.
2211 if test -f $ac_dir/$ac_word; then
2212 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2213 break
2215 done
2216 IFS="$ac_save_ifs"
2219 RANLIB="$ac_cv_prog_RANLIB"
2220 if test -n "$RANLIB"; then
2221 echo "$ac_t""$RANLIB" 1>&6
2222 else
2223 echo "$ac_t""no" 1>&6
2227 if test -z "$ac_cv_prog_RANLIB"; then
2228 if test -n "$ac_tool_prefix"; then
2229 # Extract the first word of "ranlib", so it can be a program name with args.
2230 set dummy ranlib; ac_word=$2
2231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2232 echo "configure:2233: checking for $ac_word" >&5
2233 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2235 else
2236 if test -n "$RANLIB"; then
2237 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2238 else
2239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2240 ac_dummy="$PATH"
2241 for ac_dir in $ac_dummy; do
2242 test -z "$ac_dir" && ac_dir=.
2243 if test -f $ac_dir/$ac_word; then
2244 ac_cv_prog_RANLIB="ranlib"
2245 break
2247 done
2248 IFS="$ac_save_ifs"
2249 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2252 RANLIB="$ac_cv_prog_RANLIB"
2253 if test -n "$RANLIB"; then
2254 echo "$ac_t""$RANLIB" 1>&6
2255 else
2256 echo "$ac_t""no" 1>&6
2259 else
2260 RANLIB=":"
2264 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2265 set dummy ${ac_tool_prefix}strip; ac_word=$2
2266 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2267 echo "configure:2268: checking for $ac_word" >&5
2268 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2270 else
2271 if test -n "$STRIP"; then
2272 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2273 else
2274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2275 ac_dummy="$PATH"
2276 for ac_dir in $ac_dummy; do
2277 test -z "$ac_dir" && ac_dir=.
2278 if test -f $ac_dir/$ac_word; then
2279 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2280 break
2282 done
2283 IFS="$ac_save_ifs"
2286 STRIP="$ac_cv_prog_STRIP"
2287 if test -n "$STRIP"; then
2288 echo "$ac_t""$STRIP" 1>&6
2289 else
2290 echo "$ac_t""no" 1>&6
2294 if test -z "$ac_cv_prog_STRIP"; then
2295 if test -n "$ac_tool_prefix"; then
2296 # Extract the first word of "strip", so it can be a program name with args.
2297 set dummy strip; ac_word=$2
2298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2299 echo "configure:2300: checking for $ac_word" >&5
2300 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2302 else
2303 if test -n "$STRIP"; then
2304 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2305 else
2306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2307 ac_dummy="$PATH"
2308 for ac_dir in $ac_dummy; do
2309 test -z "$ac_dir" && ac_dir=.
2310 if test -f $ac_dir/$ac_word; then
2311 ac_cv_prog_STRIP="strip"
2312 break
2314 done
2315 IFS="$ac_save_ifs"
2316 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2319 STRIP="$ac_cv_prog_STRIP"
2320 if test -n "$STRIP"; then
2321 echo "$ac_t""$STRIP" 1>&6
2322 else
2323 echo "$ac_t""no" 1>&6
2326 else
2327 STRIP=":"
2332 # Check for any special flags to pass to ltconfig.
2333 libtool_flags="--cache-file=$cache_file"
2334 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2335 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2336 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2337 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2338 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2339 libtool_flags="$libtool_flags --enable-dlopen"
2341 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2342 if test "${enable_libtool_lock+set}" = set; then
2343 enableval="$enable_libtool_lock"
2347 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2348 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2350 # Check whether --with-pic or --without-pic was given.
2351 if test "${with_pic+set}" = set; then
2352 withval="$with_pic"
2353 pic_mode="$withval"
2354 else
2355 pic_mode=default
2358 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2359 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2361 # Some flags need to be propagated to the compiler or linker for good
2362 # libtool support.
2363 case $host in
2364 *-*-irix6*)
2365 # Find out which ABI we are using.
2366 echo '#line 2367 "configure"' > conftest.$ac_ext
2367 if { (eval echo configure:2368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2368 case `/usr/bin/file conftest.$ac_objext` in
2369 *32-bit*)
2370 LD="${LD-ld} -32"
2372 *N32*)
2373 LD="${LD-ld} -n32"
2375 *64-bit*)
2376 LD="${LD-ld} -64"
2378 esac
2380 rm -rf conftest*
2383 *-*-sco3.2v5*)
2384 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2385 SAVE_CFLAGS="$CFLAGS"
2386 CFLAGS="$CFLAGS -belf"
2387 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2388 echo "configure:2389: checking whether the C compiler needs -belf" >&5
2389 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2391 else
2393 ac_ext=c
2394 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2395 ac_cpp='$CPP $CPPFLAGS'
2396 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2397 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2398 cross_compiling=$ac_cv_prog_cc_cross
2400 cat > conftest.$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2404 int main() {
2406 ; return 0; }
2408 if { (eval echo configure:2409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2409 rm -rf conftest*
2410 lt_cv_cc_needs_belf=yes
2411 else
2412 echo "configure: failed program was:" >&5
2413 cat conftest.$ac_ext >&5
2414 rm -rf conftest*
2415 lt_cv_cc_needs_belf=no
2417 rm -f conftest*
2418 ac_ext=c
2419 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2420 ac_cpp='$CPP $CPPFLAGS'
2421 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2422 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2423 cross_compiling=$ac_cv_prog_cc_cross
2427 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2428 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2429 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2430 CFLAGS="$SAVE_CFLAGS"
2435 esac
2437 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2438 echo "configure:2439: checking how to run the C++ preprocessor" >&5
2439 if test -z "$CXXCPP"; then
2440 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2442 else
2443 ac_ext=C
2444 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2445 ac_cpp='$CXXCPP $CPPFLAGS'
2446 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2447 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2448 cross_compiling=$ac_cv_prog_cxx_cross
2449 CXXCPP="${CXX-g++} -E"
2450 cat > conftest.$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2453 #include <stdlib.h>
2455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2456 { (eval echo configure:2457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2458 if test -z "$ac_err"; then
2460 else
2461 echo "$ac_err" >&5
2462 echo "configure: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
2464 rm -rf conftest*
2465 CXXCPP=/lib/cpp
2467 rm -f conftest*
2468 ac_cv_prog_CXXCPP="$CXXCPP"
2469 ac_ext=c
2470 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2471 ac_cpp='$CPP $CPPFLAGS'
2472 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2473 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2474 cross_compiling=$ac_cv_prog_cc_cross
2477 CXXCPP="$ac_cv_prog_CXXCPP"
2478 echo "$ac_t""$CXXCPP" 1>&6
2481 # Save cache, so that ltconfig can load it
2482 cat > confcache <<\EOF
2483 # This file is a shell script that caches the results of configure
2484 # tests run on this system so they can be shared between configure
2485 # scripts and configure runs. It is not useful on other systems.
2486 # If it contains results you don't want to keep, you may remove or edit it.
2488 # By default, configure uses ./config.cache as the cache file,
2489 # creating it if it does not exist already. You can give configure
2490 # the --cache-file=FILE option to use a different cache file; that is
2491 # what configure does when it calls configure scripts in
2492 # subdirectories, so they share the cache.
2493 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2494 # config.status only pays attention to the cache file if you give it the
2495 # --recheck option to rerun configure.
2498 # The following way of writing the cache mishandles newlines in values,
2499 # but we know of no workaround that is simple, portable, and efficient.
2500 # So, don't put newlines in cache variables' values.
2501 # Ultrix sh set writes to stderr and can't be redirected directly,
2502 # and sets the high bit in the cache file unless we assign to the vars.
2503 (set) 2>&1 |
2504 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2505 *ac_space=\ *)
2506 # `set' does not quote correctly, so add quotes (double-quote substitution
2507 # turns \\\\ into \\, and sed turns \\ into \).
2508 sed -n \
2509 -e "s/'/'\\\\''/g" \
2510 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2513 # `set' quotes correctly as required by POSIX, so do not add quotes.
2514 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2516 esac >> confcache
2517 if cmp -s $cache_file confcache; then
2519 else
2520 if test -w $cache_file; then
2521 echo "updating cache $cache_file"
2522 cat confcache > $cache_file
2523 else
2524 echo "not updating unwritable cache $cache_file"
2527 rm -f confcache
2530 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2531 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2532 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2533 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2534 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2535 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2536 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2537 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2538 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2539 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2541 # Reload cache, that may have been modified by ltconfig
2542 if test -r "$cache_file"; then
2543 echo "loading cache $cache_file"
2544 . $cache_file
2545 else
2546 echo "creating cache $cache_file"
2547 > $cache_file
2551 # This can be used to rebuild libtool when needed
2552 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2554 # Always use our own libtool.
2555 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2557 # Redirect the config.log output again, so that the ltconfig log is not
2558 # clobbered by the next message.
2559 exec 5>>./config.log
2563 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2564 lt_save_CC="$CC"
2565 lt_save_CFLAGS="$CFLAGS"
2566 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2567 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2568 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2569 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2570 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2571 deplibs_check_method="$deplibs_check_method" \
2572 file_magic_cmd="$file_magic_cmd" \
2573 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2574 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2575 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2576 CC="$lt_save_CC"
2577 CFLAGS="$lt_save_CFLAGS"
2579 # Redirect the config.log output again, so that the ltconfig log is not
2580 # clobbered by the next message.
2581 exec 5>>./config.log
2591 # Check for c++ or library specific bits that don't require linking.
2592 #GLIBCPP_CHECK_COMPILER_VERSION
2593 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2594 echo "configure:2595: checking for GNU make" >&5
2595 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2597 else
2598 _cv_gnu_make_command='' ;
2599 for a in "${MAKE-make}" make gmake gnumake ; do
2600 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2601 then
2602 _cv_gnu_make_command=$a ;
2603 break;
2605 done ;
2609 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2610 if test "x$_cv_gnu_make_command" != "x" ; then
2611 ifGNUmake='' ;
2612 else
2613 ifGNUmake='#' ;
2618 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2619 # Check whether --enable-debug or --disable-debug was given.
2620 if test "${enable_debug+set}" = set; then
2621 enableval="$enable_debug"
2622 case "${enableval}" in
2623 yes) enable_debug=yes ;;
2624 no) enable_debug=no ;;
2625 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2626 esac
2627 else
2628 enable_debug=no
2631 case "${enable_debug}" in
2632 yes)
2633 DEBUG_FLAGS='-O0 -ggdb3'
2635 no)
2636 DEBUG_FLAGS='-g'
2638 esac
2641 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2642 echo "configure:2643: checking how to run the C preprocessor" >&5
2643 # On Suns, sometimes $CPP names a directory.
2644 if test -n "$CPP" && test -d "$CPP"; then
2645 CPP=
2647 if test -z "$CPP"; then
2648 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2650 else
2651 # This must be in double quotes, not single quotes, because CPP may get
2652 # substituted into the Makefile and "${CC-cc}" will confuse make.
2653 CPP="${CC-cc} -E"
2654 # On the NeXT, cc -E runs the code through the compiler's parser,
2655 # not just through cpp.
2656 cat > conftest.$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2659 #include <assert.h>
2660 Syntax Error
2662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2663 { (eval echo configure:2664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2665 if test -z "$ac_err"; then
2667 else
2668 echo "$ac_err" >&5
2669 echo "configure: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2671 rm -rf conftest*
2672 CPP="${CC-cc} -E -traditional-cpp"
2673 cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2676 #include <assert.h>
2677 Syntax Error
2679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2680 { (eval echo configure:2681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2682 if test -z "$ac_err"; then
2684 else
2685 echo "$ac_err" >&5
2686 echo "configure: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2688 rm -rf conftest*
2689 CPP="${CC-cc} -nologo -E"
2690 cat > conftest.$ac_ext <<EOF
2691 #line 2692 "configure"
2692 #include "confdefs.h"
2693 #include <assert.h>
2694 Syntax Error
2696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2697 { (eval echo configure:2698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2699 if test -z "$ac_err"; then
2701 else
2702 echo "$ac_err" >&5
2703 echo "configure: failed program was:" >&5
2704 cat conftest.$ac_ext >&5
2705 rm -rf conftest*
2706 CPP=/lib/cpp
2708 rm -f conftest*
2710 rm -f conftest*
2712 rm -f conftest*
2713 ac_cv_prog_CPP="$CPP"
2715 CPP="$ac_cv_prog_CPP"
2716 else
2717 ac_cv_prog_CPP="$CPP"
2719 echo "$ac_t""$CPP" 1>&6
2722 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2723 echo "configure:2724: checking for cstdio to use" >&5
2724 # Check whether --enable-cstdio or --disable-cstdio was given.
2725 if test "${enable_cstdio+set}" = set; then
2726 enableval="$enable_cstdio"
2727 if test x$enable_cstdio = xno; then
2728 enable_cstdio=stdio
2730 else
2731 enable_cstdio=stdio
2735 enable_cstdio_flag=$enable_cstdio
2737 case x${enable_cstdio_flag} in
2738 xlibio)
2739 CSTDIO_H=config/io/c_io_libio.h
2740 BASIC_FILE_H=config/io/basic_file_libio.h
2741 BASIC_FILE_CC=config/io/basic_file_libio.cc
2742 echo "$ac_t""libio" 1>&6
2744 # see if we are on a system with libio native (ie, linux)
2745 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2746 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2747 echo "configure:2748: checking for libio.h" >&5
2748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2750 else
2751 cat > conftest.$ac_ext <<EOF
2752 #line 2753 "configure"
2753 #include "confdefs.h"
2754 #include <libio.h>
2756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2757 { (eval echo configure:2758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2759 if test -z "$ac_err"; then
2760 rm -rf conftest*
2761 eval "ac_cv_header_$ac_safe=yes"
2762 else
2763 echo "$ac_err" >&5
2764 echo "configure: failed program was:" >&5
2765 cat conftest.$ac_ext >&5
2766 rm -rf conftest*
2767 eval "ac_cv_header_$ac_safe=no"
2769 rm -f conftest*
2771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2772 echo "$ac_t""yes" 1>&6
2773 has_libio=yes
2774 else
2775 echo "$ac_t""no" 1>&6
2776 has_libio=no
2780 # Need to check and see what version of glibc is being used. If
2781 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2782 # compile most of libio for linux systems.
2783 if test x$has_libio = x"yes"; then
2784 case "$target" in
2785 *-*-linux*)
2786 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2787 echo "configure:2788: checking for glibc version >= 2.2" >&5
2788 cat > conftest.$ac_ext <<EOF
2789 #line 2790 "configure"
2790 #include "confdefs.h"
2792 #include <features.h>
2793 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2795 #endif
2798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2799 egrep "ok" >/dev/null 2>&1; then
2800 rm -rf conftest*
2801 glibc_satisfactory=yes
2802 else
2803 rm -rf conftest*
2804 glibc_satisfactory=no
2806 rm -f conftest*
2808 echo "$ac_t""$glibc_satisfactory" 1>&6
2810 esac
2812 # XXX at the moment, admit defeat and force the recompilation
2813 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2814 glibc_satisfactory=no
2816 if test x$glibc_satisfactory = x"yes"; then
2817 need_libio=no
2818 need_wlibio=no
2819 else
2820 need_libio=yes
2821 # bkoz XXX need to add checks to enable this
2822 # pme XXX here's a first pass at such a check
2823 if test x$enable_c_mbchar != xno; then
2824 need_wlibio=yes
2825 else
2826 need_wlibio=no
2830 else
2831 # Using libio, but <libio.h> doesn't exist on the target system. . .
2832 need_libio=yes
2833 # bkoz XXX need to add checks to enable this
2834 # pme XXX here's a first pass at such a check
2835 if test x$enable_c_mbchar != xno; then
2836 need_wlibio=yes
2837 else
2838 need_wlibio=no
2842 xstdio | x | xno | xnone | xyes)
2843 # default
2844 CSTDIO_H=config/io/c_io_stdio.h
2845 BASIC_FILE_H=config/io/basic_file_stdio.h
2846 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2847 echo "$ac_t""stdio" 1>&6
2849 # We're not using stdio.
2850 need_libio=no
2851 need_wlibio=no
2854 echo "$enable_cstdio is an unknown io package" 1>&2
2855 exit 1
2857 esac
2862 # 2000-08-04 bkoz hack
2863 CCODECVT_C=config/io/c_io_libio_codecvt.c
2865 # 2000-08-04 bkoz hack
2869 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2870 GLIBCPP_BUILD_LIBIO_TRUE=
2871 GLIBCPP_BUILD_LIBIO_FALSE='#'
2872 else
2873 GLIBCPP_BUILD_LIBIO_TRUE='#'
2874 GLIBCPP_BUILD_LIBIO_FALSE=
2878 if test "$need_libio" = yes; then
2879 GLIBCPP_NEED_LIBIO_TRUE=
2880 GLIBCPP_NEED_LIBIO_FALSE='#'
2881 else
2882 GLIBCPP_NEED_LIBIO_TRUE='#'
2883 GLIBCPP_NEED_LIBIO_FALSE=
2887 if test "$need_wlibio" = yes; then
2888 GLIBCPP_NEED_WLIBIO_TRUE=
2889 GLIBCPP_NEED_WLIBIO_FALSE='#'
2890 else
2891 GLIBCPP_NEED_WLIBIO_TRUE='#'
2892 GLIBCPP_NEED_WLIBIO_FALSE=
2894 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2895 libio_la=../libio/libio.la
2896 else
2897 libio_la=
2902 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2903 echo "configure:2904: checking for clocale to use" >&5
2904 # Check whether --enable-clocale or --disable-clocale was given.
2905 if test "${enable_clocale+set}" = set; then
2906 enableval="$enable_clocale"
2907 if test x$enable_clocale = xno; then
2908 enable_clocale=no
2910 else
2911 enable_clocale=no
2915 enable_clocale_flag=$enable_clocale
2917 if test x$enable_clocale_flag = xno; then
2918 case x${target_os} in
2919 xlinux* | xgnu*)
2920 cat > conftest.$ac_ext <<EOF
2921 #line 2922 "configure"
2922 #include "confdefs.h"
2924 #include <features.h>
2925 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2926 _GLIBCPP_ok
2927 #endif
2930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2931 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2932 rm -rf conftest*
2933 enable_clocale_flag=gnu
2934 else
2935 rm -rf conftest*
2936 enable_clocale_flag=generic
2938 rm -f conftest*
2941 # Test for bugs early in glibc-2.2.x series
2942 if test x$enable_clocale_flag = xgnu; then
2943 if test "$cross_compiling" = yes; then
2944 enable_clocale_flag=generic
2945 else
2946 cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure"
2948 #include "confdefs.h"
2950 #define _GNU_SOURCE 1
2951 #include <locale.h>
2952 int main()
2954 const char __one[] = "Äuglein Augmen";
2955 const char __two[] = "Äuglein";
2956 int i;
2957 int j;
2958 __locale_t loc;
2959 __locale_t loc_dup;
2960 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
2961 loc_dup = __duplocale(loc);
2962 i = __strcoll_l(__one, __two, loc);
2963 j = __strcoll_l(__one, __two, loc_dup);
2964 return 0;
2968 if { (eval echo configure:2969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2969 then
2970 enable_clocale_flag=gnu
2971 else
2972 echo "configure: failed program was:" >&5
2973 cat conftest.$ac_ext >&5
2974 rm -fr conftest*
2975 enable_clocale_flag=generic
2977 rm -fr conftest*
2982 # ... at some point put __strxfrm_l tests in as well.
2985 enable_clocale_flag=generic
2987 esac
2990 # Check whether --enable-nls or --disable-nls was given.
2991 if test "${enable_nls+set}" = set; then
2992 enableval="$enable_nls"
2994 else
2995 enable_nls=yes
2998 USE_NLS=no
3000 case x${enable_clocale_flag} in
3001 xgeneric)
3002 echo "$ac_t""generic" 1>&6
3004 CLOCALE_H=config/locale/generic/c_locale.h
3005 CLOCALE_CC=config/locale/generic/c_locale.cc
3006 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3007 CCOLLATE_CC=config/locale/generic/collate_members.cc
3008 CCTYPE_CC=config/locale/generic/ctype_members.cc
3009 CMESSAGES_H=config/locale/generic/messages_members.h
3010 CMESSAGES_CC=config/locale/generic/messages_members.cc
3011 CMONEY_CC=config/locale/generic/monetary_members.cc
3012 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3013 CTIME_CC=config/locale/generic/time_members.cc
3015 xgnu)
3016 echo "$ac_t""gnu" 1>&6
3018 # Declare intention to use gettext, and add support for specific
3019 # languages.
3020 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3021 ALL_LINGUAS="de fr"
3023 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3024 # Extract the first word of "msgfmt", so it can be a program name with args.
3025 set dummy msgfmt; ac_word=$2
3026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3027 echo "configure:3028: checking for $ac_word" >&5
3028 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3030 else
3031 if test -n "$check_msgfmt"; then
3032 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3033 else
3034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3035 ac_dummy="$PATH"
3036 for ac_dir in $ac_dummy; do
3037 test -z "$ac_dir" && ac_dir=.
3038 if test -f $ac_dir/$ac_word; then
3039 ac_cv_prog_check_msgfmt="yes"
3040 break
3042 done
3043 IFS="$ac_save_ifs"
3044 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3047 check_msgfmt="$ac_cv_prog_check_msgfmt"
3048 if test -n "$check_msgfmt"; then
3049 echo "$ac_t""$check_msgfmt" 1>&6
3050 else
3051 echo "$ac_t""no" 1>&6
3054 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3055 USE_NLS=yes
3057 # Export the build objects.
3058 for ling in $ALL_LINGUAS; do \
3059 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3060 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3061 done
3065 CLOCALE_H=config/locale/gnu/c_locale.h
3066 CLOCALE_CC=config/locale/gnu/c_locale.cc
3067 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3068 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3069 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3070 CMESSAGES_H=config/locale/gnu/messages_members.h
3071 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3072 CMONEY_CC=config/locale/gnu/monetary_members.cc
3073 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3074 CTIME_CC=config/locale/gnu/time_members.cc
3076 xieee_1003.1-2001)
3077 echo "$ac_t""generic" 1>&6
3079 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3080 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3081 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3082 CCOLLATE_CC=config/locale/generic/collate_members.cc
3083 CCTYPE_CC=config/locale/generic/ctype_members.cc
3084 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3085 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3086 CMONEY_CC=config/locale/generic/monetary_members.cc
3087 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3088 CTIME_CC=config/locale/generic/time_members.cc
3091 echo "$enable_clocale is an unknown locale package" 1>&2
3092 exit 1
3094 esac
3096 # This is where the testsuite looks for locale catalogs, using the
3097 # -DLOCALEDIR define during testsuite compilation.
3098 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3113 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3114 if test "${enable_c_mbchar+set}" = set; then
3115 enableval="$enable_c_mbchar"
3116 case "$enableval" in
3117 yes) enable_c_mbchar=yes ;;
3118 no) enable_c_mbchar=no ;;
3119 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3120 esac
3121 else
3122 enable_c_mbchar=yes
3126 # Check whether --enable-c99 or --disable-c99 was given.
3127 if test "${enable_c99+set}" = set; then
3128 enableval="$enable_c99"
3129 case "$enableval" in
3130 yes) enable_c99=yes ;;
3131 no) enable_c99=no ;;
3132 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3133 esac
3134 else
3135 enable_c99=yes
3139 ac_ext=C
3140 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3141 ac_cpp='$CXXCPP $CPPFLAGS'
3142 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3143 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3144 cross_compiling=$ac_cv_prog_cxx_cross
3147 # Check for the existence of <math.h> functions used if C99 is enabled.
3148 ac_c99_math=yes;
3149 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3150 echo "configure:3151: checking for ISO C99 support in <math.h>" >&5
3151 cat > conftest.$ac_ext <<EOF
3152 #line 3153 "configure"
3153 #include "confdefs.h"
3154 #include <math.h>
3155 int main() {
3156 fpclassify(0.0);
3157 ; return 0; }
3159 if { (eval echo configure:3160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3161 else
3162 echo "configure: failed program was:" >&5
3163 cat conftest.$ac_ext >&5
3164 rm -rf conftest*
3165 ac_c99_math=no
3167 rm -f conftest*
3168 cat > conftest.$ac_ext <<EOF
3169 #line 3170 "configure"
3170 #include "confdefs.h"
3171 #include <math.h>
3172 int main() {
3173 isfinite(0.0);
3174 ; return 0; }
3176 if { (eval echo configure:3177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3178 else
3179 echo "configure: failed program was:" >&5
3180 cat conftest.$ac_ext >&5
3181 rm -rf conftest*
3182 ac_c99_math=no
3184 rm -f conftest*
3185 cat > conftest.$ac_ext <<EOF
3186 #line 3187 "configure"
3187 #include "confdefs.h"
3188 #include <math.h>
3189 int main() {
3190 isinf(0.0);
3191 ; return 0; }
3193 if { (eval echo configure:3194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3195 else
3196 echo "configure: failed program was:" >&5
3197 cat conftest.$ac_ext >&5
3198 rm -rf conftest*
3199 ac_c99_math=no
3201 rm -f conftest*
3202 cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3205 #include <math.h>
3206 int main() {
3207 isnan(0.0);
3208 ; return 0; }
3210 if { (eval echo configure:3211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3212 else
3213 echo "configure: failed program was:" >&5
3214 cat conftest.$ac_ext >&5
3215 rm -rf conftest*
3216 ac_c99_math=no
3218 rm -f conftest*
3219 cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3222 #include <math.h>
3223 int main() {
3224 isnormal(0.0);
3225 ; return 0; }
3227 if { (eval echo configure:3228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3229 else
3230 echo "configure: failed program was:" >&5
3231 cat conftest.$ac_ext >&5
3232 rm -rf conftest*
3233 ac_c99_math=no
3235 rm -f conftest*
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 #include <math.h>
3240 int main() {
3241 signbit(0.0);
3242 ; return 0; }
3244 if { (eval echo configure:3245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3246 else
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3249 rm -rf conftest*
3250 ac_c99_math=no
3252 rm -f conftest*
3253 cat > conftest.$ac_ext <<EOF
3254 #line 3255 "configure"
3255 #include "confdefs.h"
3256 #include <math.h>
3257 int main() {
3258 isgreater(0.0,0.0);
3259 ; return 0; }
3261 if { (eval echo configure:3262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3263 else
3264 echo "configure: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3266 rm -rf conftest*
3267 ac_c99_math=no
3269 rm -f conftest*
3270 cat > conftest.$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3273 #include <math.h>
3274 int main() {
3275 isgreaterequal(0.0,0.0);
3276 ; return 0; }
3278 if { (eval echo configure:3279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3280 else
3281 echo "configure: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3283 rm -rf conftest*
3284 ac_c99_math=no
3286 rm -f conftest*
3287 cat > conftest.$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 #include <math.h>
3291 int main() {
3292 isless(0.0,0.0);
3293 ; return 0; }
3295 if { (eval echo configure:3296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3297 else
3298 echo "configure: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3300 rm -rf conftest*
3301 ac_c99_math=no
3303 rm -f conftest*
3304 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3307 #include <math.h>
3308 int main() {
3309 islessequal(0.0,0.0);
3310 ; return 0; }
3312 if { (eval echo configure:3313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3314 else
3315 echo "configure: failed program was:" >&5
3316 cat conftest.$ac_ext >&5
3317 rm -rf conftest*
3318 ac_c99_math=no
3320 rm -f conftest*
3321 cat > conftest.$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3324 #include <math.h>
3325 int main() {
3326 islessgreater(0.0,0.0);
3327 ; return 0; }
3329 if { (eval echo configure:3330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3331 else
3332 echo "configure: failed program was:" >&5
3333 cat conftest.$ac_ext >&5
3334 rm -rf conftest*
3335 ac_c99_math=no
3337 rm -f conftest*
3338 cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3341 #include <math.h>
3342 int main() {
3343 isunordered(0.0,0.0);
3344 ; return 0; }
3346 if { (eval echo configure:3347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3348 else
3349 echo "configure: failed program was:" >&5
3350 cat conftest.$ac_ext >&5
3351 rm -rf conftest*
3352 ac_c99_math=no
3354 rm -f conftest*
3355 echo "$ac_t""$ac_c99_math" 1>&6
3357 # Check for the existence in <stdio.h> of vscanf, et. al.
3358 ac_c99_stdio=yes;
3359 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3360 echo "configure:3361: checking for ISO C99 support in <stdio.h>" >&5
3361 cat > conftest.$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3364 #include <stdio.h>
3365 int main() {
3366 snprintf("12", 0, "%i");
3367 ; return 0; }
3369 if { (eval echo configure:3370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3371 else
3372 echo "configure: failed program was:" >&5
3373 cat conftest.$ac_ext >&5
3374 rm -rf conftest*
3375 ac_c99_stdio=no
3377 rm -f conftest*
3378 cat > conftest.$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3381 #include <stdio.h>
3382 #include <stdarg.h>
3383 void foo(char* fmt, ...)
3384 {va_list args; va_start(args, fmt);
3385 vfscanf(stderr, "%i", args);}
3386 int main() {
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 vscanf("%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 vsnprintf(fmt, 0, "%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 vsscanf(fmt, "%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 echo "$ac_t""$ac_c99_stdio" 1>&6
3464 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3465 ac_c99_stdlib=yes;
3466 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3467 echo "configure:3468: checking for lldiv_t declaration" >&5
3468 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3470 else
3472 cat > conftest.$ac_ext <<EOF
3473 #line 3474 "configure"
3474 #include "confdefs.h"
3475 #include <stdlib.h>
3476 int main() {
3477 lldiv_t mydivt;
3478 ; return 0; }
3480 if { (eval echo configure:3481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3481 rm -rf conftest*
3482 ac_c99_lldiv_t=yes
3483 else
3484 echo "configure: failed program was:" >&5
3485 cat conftest.$ac_ext >&5
3486 rm -rf conftest*
3487 ac_c99_lldiv_t=no
3489 rm -f conftest*
3493 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3495 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3496 echo "configure:3497: checking for ISO C99 support in <stdlib.h>" >&5
3497 cat > conftest.$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3500 #include <stdlib.h>
3501 int main() {
3502 char* tmp; strtof("gnu", &tmp);
3503 ; return 0; }
3505 if { (eval echo configure:3506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3507 else
3508 echo "configure: failed program was:" >&5
3509 cat conftest.$ac_ext >&5
3510 rm -rf conftest*
3511 ac_c99_stdlib=no
3513 rm -f conftest*
3514 cat > conftest.$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3517 #include <stdlib.h>
3518 int main() {
3519 char* tmp; strtold("gnu", &tmp);
3520 ; return 0; }
3522 if { (eval echo configure:3523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3524 else
3525 echo "configure: failed program was:" >&5
3526 cat conftest.$ac_ext >&5
3527 rm -rf conftest*
3528 ac_c99_stdlib=no
3530 rm -f conftest*
3531 cat > conftest.$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 #include <stdlib.h>
3535 int main() {
3536 llabs(10);
3537 ; return 0; }
3539 if { (eval echo configure:3540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3541 else
3542 echo "configure: failed program was:" >&5
3543 cat conftest.$ac_ext >&5
3544 rm -rf conftest*
3545 ac_c99_stdlib=no
3547 rm -f conftest*
3548 cat > conftest.$ac_ext <<EOF
3549 #line 3550 "configure"
3550 #include "confdefs.h"
3551 #include <stdlib.h>
3552 int main() {
3553 lldiv(10,1);
3554 ; return 0; }
3556 if { (eval echo configure:3557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3558 else
3559 echo "configure: failed program was:" >&5
3560 cat conftest.$ac_ext >&5
3561 rm -rf conftest*
3562 ac_c99_stdlib=no
3564 rm -f conftest*
3565 cat > conftest.$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3568 #include <stdlib.h>
3569 int main() {
3570 atoll("10");
3571 ; return 0; }
3573 if { (eval echo configure:3574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3575 else
3576 echo "configure: failed program was:" >&5
3577 cat conftest.$ac_ext >&5
3578 rm -rf conftest*
3579 ac_c99_stdlib=no
3581 rm -f conftest*
3582 cat > conftest.$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3585 #include <stdlib.h>
3586 int main() {
3587 _Exit(0);
3588 ; return 0; }
3590 if { (eval echo configure:3591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3592 else
3593 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3595 rm -rf conftest*
3596 ac_c99_stdlib=no
3598 rm -f conftest*
3599 if test x"$ac_c99_lldiv_t" = x"no"; then
3600 ac_c99_stdlib=no;
3601 fi;
3602 echo "$ac_t""$ac_c99_stdlib" 1>&6
3604 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3605 # XXX the wchar.h checks should be rolled into the general C99 bits.
3606 ac_c99_wchar=yes;
3607 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3608 echo "configure:3609: checking for additional ISO C99 support in <wchar.h>" >&5
3609 cat > conftest.$ac_ext <<EOF
3610 #line 3611 "configure"
3611 #include "confdefs.h"
3612 #include <wchar.h>
3613 int main() {
3614 wcstold(L"10.0", NULL);
3615 ; return 0; }
3617 if { (eval echo configure:3618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3619 else
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3622 rm -rf conftest*
3623 ac_c99_wchar=no
3625 rm -f conftest*
3626 cat > conftest.$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3629 #include <wchar.h>
3630 int main() {
3631 wcstoll(L"10", NULL, 10);
3632 ; return 0; }
3634 if { (eval echo configure:3635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3636 else
3637 echo "configure: failed program was:" >&5
3638 cat conftest.$ac_ext >&5
3639 rm -rf conftest*
3640 ac_c99_wchar=no
3642 rm -f conftest*
3643 cat > conftest.$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3646 #include <wchar.h>
3647 int main() {
3648 wcstoull(L"10", NULL, 10);
3649 ; return 0; }
3651 if { (eval echo configure:3652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3653 else
3654 echo "configure: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3656 rm -rf conftest*
3657 ac_c99_wchar=no
3659 rm -f conftest*
3660 echo "$ac_t""$ac_c99_wchar" 1>&6
3662 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3663 echo "configure:3664: checking for enabled ISO C99 support" >&5
3664 if test x"$ac_c99_math" = x"no" ||
3665 test x"$ac_c99_stdio" = x"no" ||
3666 test x"$ac_c99_stdlib" = x"no" ||
3667 test x"$ac_c99_wchar" = x"no"; then
3668 enable_c99=no;
3669 fi;
3670 echo "$ac_t""$enable_c99" 1>&6
3672 # Option parsed, now set things appropriately
3673 if test x"$enable_c99" = x"yes"; then
3674 cat >> confdefs.h <<\EOF
3675 #define _GLIBCPP_USE_C99 1
3680 ac_ext=c
3681 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3682 ac_cpp='$CPP $CPPFLAGS'
3683 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3684 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3685 cross_compiling=$ac_cv_prog_cc_cross
3689 # Check whether --enable-long-long or --disable-long-long was given.
3690 if test "${enable_long_long+set}" = set; then
3691 enableval="$enable_long_long"
3692 case "$enableval" in
3693 yes) enable_long_long=yes ;;
3694 no) enable_long_long=no ;;
3695 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3696 esac
3697 else
3698 enable_long_long=yes
3702 ac_ext=C
3703 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3704 ac_cpp='$CXXCPP $CPPFLAGS'
3705 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3706 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3707 cross_compiling=$ac_cv_prog_cxx_cross
3710 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3711 echo "configure:3712: checking for enabled long long I/O support" >&5
3712 # iostreams require strtoll, strtoull to compile
3713 cat > conftest.$ac_ext <<EOF
3714 #line 3715 "configure"
3715 #include "confdefs.h"
3716 #include <stdlib.h>
3717 int main() {
3718 char* tmp; strtoll("gnu", &tmp, 10);
3719 ; return 0; }
3721 if { (eval echo configure:3722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3723 else
3724 echo "configure: failed program was:" >&5
3725 cat conftest.$ac_ext >&5
3726 rm -rf conftest*
3727 enable_long_long=no
3729 rm -f conftest*
3730 cat > conftest.$ac_ext <<EOF
3731 #line 3732 "configure"
3732 #include "confdefs.h"
3733 #include <stdlib.h>
3734 int main() {
3735 char* tmp; strtoull("gnu", &tmp, 10);
3736 ; return 0; }
3738 if { (eval echo configure:3739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3740 else
3741 echo "configure: failed program was:" >&5
3742 cat conftest.$ac_ext >&5
3743 rm -rf conftest*
3744 enable_long_long=no
3746 rm -f conftest*
3748 # Option parsed, now set things appropriately
3749 if test x"$enable_long_long" = xyes; then
3750 cat >> confdefs.h <<\EOF
3751 #define _GLIBCPP_USE_LONG_LONG 1
3755 echo "$ac_t""$enable_long_long" 1>&6
3757 ac_ext=c
3758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3759 ac_cpp='$CPP $CPPFLAGS'
3760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3761 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3762 cross_compiling=$ac_cv_prog_cc_cross
3765 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3766 echo "configure:3767: checking for c header strategy to use" >&5
3767 # Check whether --enable-cheaders or --disable-cheaders was given.
3768 if test "${enable_cheaders+set}" = set; then
3769 enableval="$enable_cheaders"
3771 case "$enableval" in
3773 enable_cheaders=c
3775 c_std)
3776 enable_cheaders=c_std
3778 c_shadow)
3779 enable_cheaders=c_shadow
3781 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3783 esac
3784 else
3785 enable_cheaders=c_std
3788 echo "$ac_t""$enable_cheaders" 1>&6
3790 case "$enable_cheaders" in
3791 c_shadow)
3792 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3794 c_std)
3795 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3798 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3800 esac
3805 if test "$enable_cheaders" = c; then
3806 GLIBCPP_C_HEADERS_C_TRUE=
3807 GLIBCPP_C_HEADERS_C_FALSE='#'
3808 else
3809 GLIBCPP_C_HEADERS_C_TRUE='#'
3810 GLIBCPP_C_HEADERS_C_FALSE=
3814 if test "$enable_cheaders" = c_std; then
3815 GLIBCPP_C_HEADERS_C_STD_TRUE=
3816 GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3817 else
3818 GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3819 GLIBCPP_C_HEADERS_C_STD_FALSE=
3823 if test "$c_compatibility" = yes; then
3824 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3825 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3826 else
3827 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3828 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3832 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3833 echo "configure:3834: checking for thread model used by GCC" >&5
3834 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3835 echo "$ac_t""$target_thread_file" 1>&6
3837 if test $target_thread_file != single; then
3838 cat >> confdefs.h <<\EOF
3839 #define HAVE_GTHR_DEFAULT 1
3842 cat >> confdefs.h <<\EOF
3843 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3848 glibcpp_thread_h=gthr-$target_thread_file.h
3851 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3852 if test "${enable_cxx_flags+set}" = set; then
3853 enableval="$enable_cxx_flags"
3854 case "x$enableval" in
3855 xyes)
3856 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3857 xno|x)
3858 enable_cxx_flags='' ;;
3860 enable_cxx_flags="$enableval" ;;
3861 esac
3862 else
3863 enable_cxx_flags='none'
3867 if test "$enable_cxx_flags" = "none"; then
3868 enable_cxx_flags='';
3871 if test -n "$enable_cxx_flags"; then
3872 for f in $enable_cxx_flags; do
3873 case "$f" in
3874 -fhonor-std) ;;
3875 -*) ;;
3876 *) # and we're trying to pass /what/ exactly?
3877 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3878 esac
3879 done
3881 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3885 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3886 echo "configure:3887: checking for exception model to use" >&5
3888 ac_ext=C
3889 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3890 ac_cpp='$CXXCPP $CPPFLAGS'
3891 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3892 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3893 cross_compiling=$ac_cv_prog_cxx_cross
3895 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3896 if test "${enable_sjlj_exceptions+set}" = set; then
3897 enableval="$enable_sjlj_exceptions"
3899 else
3900 cat > conftest.$ac_ext << EOF
3901 #line 3902 "configure"
3902 struct S { ~S(); };
3903 void bar();
3904 void foo()
3906 S s;
3907 bar();
3910 old_CXXFLAGS="$CXXFLAGS"
3911 CXXFLAGS="-S -fexceptions"
3912 if { (eval echo configure:3913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3913 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3914 enable_sjlj_exceptions=yes
3915 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3916 enable_sjlj_exceptions=no
3919 CXXFLAGS="$old_CXXFLAGS"
3920 rm -f conftest*
3923 if test x$enable_sjlj_exceptions = xyes; then
3924 cat >> confdefs.h <<\EOF
3925 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3928 ac_exception_model_name=sjlj
3929 elif test x$enable_sjlj_exceptions = xno; then
3930 ac_exception_model_name="call frame"
3931 else
3932 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3934 ac_ext=c
3935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3936 ac_cpp='$CPP $CPPFLAGS'
3937 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3938 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3939 cross_compiling=$ac_cv_prog_cc_cross
3941 echo "$ac_t""$ac_exception_model_name" 1>&6
3944 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
3945 echo "configure:3946: checking for use of libunwind" >&5
3946 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
3947 if test "${enable_libunwind_exceptions+set}" = set; then
3948 enableval="$enable_libunwind_exceptions"
3949 use_libunwind_exceptions=$enableval
3950 else
3951 use_libunwind_exceptions=no
3954 echo "$ac_t""$use_libunwind_exceptions" 1>&6
3955 if test x"$use_libunwind_exceptions" = xyes; then
3956 LIBUNWIND_FLAG="-lunwind"
3957 else
3958 LIBUNWIND_FLAG=""
3962 # Check whether --enable-concept-checks or --disable-concept-checks was given.
3963 if test "${enable_concept_checks+set}" = set; then
3964 enableval="$enable_concept_checks"
3965 case "$enableval" in
3966 yes) enable_concept_checks=yes ;;
3967 no) enable_concept_checks=no ;;
3968 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
3969 esac
3970 else
3971 enable_concept_checks=no
3973 if test x"$enable_concept_checks" = xyes; then
3974 cat >> confdefs.h <<\EOF
3975 #define _GLIBCPP_CONCEPT_CHECKS 1
3981 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
3982 for ac_hdr in string.h stdlib.h
3984 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3985 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3986 echo "configure:3987: checking for $ac_hdr" >&5
3987 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3989 else
3990 cat > conftest.$ac_ext <<EOF
3991 #line 3992 "configure"
3992 #include "confdefs.h"
3993 #include <$ac_hdr>
3995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3996 { (eval echo configure:3997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3998 if test -z "$ac_err"; then
3999 rm -rf conftest*
4000 eval "ac_cv_header_$ac_safe=yes"
4001 else
4002 echo "$ac_err" >&5
4003 echo "configure: failed program was:" >&5
4004 cat conftest.$ac_ext >&5
4005 rm -rf conftest*
4006 eval "ac_cv_header_$ac_safe=no"
4008 rm -f conftest*
4010 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4011 echo "$ac_t""yes" 1>&6
4012 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4013 cat >> confdefs.h <<EOF
4014 #define $ac_tr_hdr 1
4017 else
4018 echo "$ac_t""no" 1>&6
4020 done
4023 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4025 # This lets us hard-code the functionality we know
4026 # we'll have in the cross target environment. "Let" is a
4027 # sugar-coated word placed on an especially dull and tedious hack, actually.
4028 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4029 # that involve linking can't be used:
4030 # "cannot open sim-crt0.o"
4031 # "cannot open crt0.o"
4032 # etc. All this is because there currently exists no unified,
4033 # consistent way for top level CC information to be passed down
4034 # to target directories: newlib includes, newlib linking info,
4035 # libgloss versus newlib crt0.o, etc. When all of this is done, all
4036 # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
4038 # We are being configured with some form of cross compiler.
4039 GLIBCPP_IS_CROSS_COMPILING=1
4041 # If Canadian cross, then don't pick up tools from the build
4042 # directory.
4043 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4044 CANADIAN=yes
4045 else
4046 CANADIAN=no
4049 # Construct crosses by hand, eliminating bits that need ld...
4050 # GLIBCPP_CHECK_COMPILER_FEATURES
4051 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4052 # GLIBCPP_CHECK_MATH_SUPPORT
4054 case "$target_alias" in
4055 *-linux*)
4056 # Check for available headers.
4057 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4058 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4059 fp.h locale.h float.h inttypes.h
4061 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4063 echo "configure:4064: checking for $ac_hdr" >&5
4064 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4065 echo $ac_n "(cached) $ac_c" 1>&6
4066 else
4067 cat > conftest.$ac_ext <<EOF
4068 #line 4069 "configure"
4069 #include "confdefs.h"
4070 #include <$ac_hdr>
4072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4073 { (eval echo configure:4074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4075 if test -z "$ac_err"; then
4076 rm -rf conftest*
4077 eval "ac_cv_header_$ac_safe=yes"
4078 else
4079 echo "$ac_err" >&5
4080 echo "configure: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4082 rm -rf conftest*
4083 eval "ac_cv_header_$ac_safe=no"
4085 rm -f conftest*
4087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4088 echo "$ac_t""yes" 1>&6
4089 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4090 cat >> confdefs.h <<EOF
4091 #define $ac_tr_hdr 1
4094 else
4095 echo "$ac_t""no" 1>&6
4097 done
4099 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4102 # If we're not using GNU ld, then there's no point in even trying these
4103 # tests. Check for that first. We should have already tested for gld
4104 # by now (in libtool), but require it now just to be safe...
4105 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4106 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4109 # The name set by libtool depends on the version of libtool. Shame on us
4110 # for depending on an impl detail, but c'est la vie. Older versions used
4111 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4112 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4113 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4114 # set (hence we're using an older libtool), then set it.
4115 if test x${with_gnu_ld+set} != xset; then
4116 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4117 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4118 with_gnu_ld=no
4119 else
4120 with_gnu_ld=$ac_cv_prog_gnu_ld
4124 # Start by getting the version number. I think the libtool test already
4125 # does some of this, but throws away the result.
4127 ldver=`$LD --version 2>/dev/null | head -1 | \
4128 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4130 glibcpp_gnu_ld_version=`echo $ldver | \
4131 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4133 # Set --gc-sections.
4134 if test "$with_gnu_ld" = "notbroken"; then
4135 # GNU ld it is! Joy and bunny rabbits!
4137 # All these tests are for C++; save the language and the compiler flags.
4138 # Need to do this so that g++ won't try to link in libstdc++
4139 ac_test_CFLAGS="${CFLAGS+set}"
4140 ac_save_CFLAGS="$CFLAGS"
4141 CFLAGS='-x c++ -Wl,--gc-sections'
4143 # Check for -Wl,--gc-sections
4144 # XXX This test is broken at the moment, as symbols required for
4145 # linking are now in libsupc++ (not built yet.....). In addition,
4146 # this test has cored on solaris in the past. In addition,
4147 # --gc-sections doesn't really work at the moment (keeps on discarding
4148 # used sections, first .eh_frame and now some of the glibc sections for
4149 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4150 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4151 echo "configure:4152: checking for ld that supports -Wl,--gc-sections" >&5
4152 if test "$cross_compiling" = yes; then
4153 ac_sectionLDflags=yes
4154 else
4155 cat > conftest.$ac_ext <<EOF
4156 #line 4157 "configure"
4157 #include "confdefs.h"
4159 int main(void)
4161 try { throw 1; }
4162 catch (...) { };
4163 return 0;
4167 if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4168 then
4169 ac_sectionLDflags=yes
4170 else
4171 echo "configure: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4173 rm -fr conftest*
4174 ac_sectionLDflags=no
4176 rm -fr conftest*
4179 if test "$ac_test_CFLAGS" = set; then
4180 CFLAGS="$ac_save_CFLAGS"
4181 else
4182 # this is the suspicious part
4183 CFLAGS=''
4185 if test "$ac_sectionLDflags" = "yes"; then
4186 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4188 echo "$ac_t""$ac_sectionLDflags" 1>&6
4191 # Set linker optimization flags.
4192 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4193 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4200 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4201 echo "configure:4202: checking for main in -lm" >&5
4202 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4203 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6
4205 else
4206 ac_save_LIBS="$LIBS"
4207 LIBS="-lm $LIBS"
4208 cat > conftest.$ac_ext <<EOF
4209 #line 4210 "configure"
4210 #include "confdefs.h"
4212 int main() {
4213 main()
4214 ; return 0; }
4216 if { (eval echo configure:4217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4217 rm -rf conftest*
4218 eval "ac_cv_lib_$ac_lib_var=yes"
4219 else
4220 echo "configure: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4222 rm -rf conftest*
4223 eval "ac_cv_lib_$ac_lib_var=no"
4225 rm -f conftest*
4226 LIBS="$ac_save_LIBS"
4229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4230 echo "$ac_t""yes" 1>&6
4231 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4232 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4233 cat >> confdefs.h <<EOF
4234 #define $ac_tr_lib 1
4237 LIBS="-lm $LIBS"
4239 else
4240 echo "$ac_t""no" 1>&6
4243 for ac_func in nan copysignf
4245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4246 echo "configure:4247: checking for $ac_func" >&5
4247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4248 echo $ac_n "(cached) $ac_c" 1>&6
4249 else
4250 cat > conftest.$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4253 /* System header to define __stub macros and hopefully few prototypes,
4254 which can conflict with char $ac_func(); below. */
4255 #include <assert.h>
4256 /* Override any gcc2 internal prototype to avoid an error. */
4257 /* We use char because int might match the return type of a gcc2
4258 builtin and then its argument prototype would still apply. */
4259 char $ac_func();
4261 int main() {
4263 /* The GNU C library defines this for functions which it implements
4264 to always fail with ENOSYS. Some functions are actually named
4265 something starting with __ and the normal name is an alias. */
4266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4267 choke me
4268 #else
4269 $ac_func();
4270 #endif
4272 ; return 0; }
4274 if { (eval echo configure:4275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4275 rm -rf conftest*
4276 eval "ac_cv_func_$ac_func=yes"
4277 else
4278 echo "configure: failed program was:" >&5
4279 cat conftest.$ac_ext >&5
4280 rm -rf conftest*
4281 eval "ac_cv_func_$ac_func=no"
4283 rm -f conftest*
4286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4287 echo "$ac_t""yes" 1>&6
4288 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4289 cat >> confdefs.h <<EOF
4290 #define $ac_tr_func 1
4293 else
4294 echo "$ac_t""no" 1>&6
4295 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4297 done
4300 for ac_func in __signbit
4302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4303 echo "configure:4304: checking for $ac_func" >&5
4304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4305 echo $ac_n "(cached) $ac_c" 1>&6
4306 else
4307 cat > conftest.$ac_ext <<EOF
4308 #line 4309 "configure"
4309 #include "confdefs.h"
4310 /* System header to define __stub macros and hopefully few prototypes,
4311 which can conflict with char $ac_func(); below. */
4312 #include <assert.h>
4313 /* Override any gcc2 internal prototype to avoid an error. */
4314 /* We use char because int might match the return type of a gcc2
4315 builtin and then its argument prototype would still apply. */
4316 char $ac_func();
4318 int main() {
4320 /* The GNU C library defines this for functions which it implements
4321 to always fail with ENOSYS. Some functions are actually named
4322 something starting with __ and the normal name is an alias. */
4323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4324 choke me
4325 #else
4326 $ac_func();
4327 #endif
4329 ; return 0; }
4331 if { (eval echo configure:4332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4332 rm -rf conftest*
4333 eval "ac_cv_func_$ac_func=yes"
4334 else
4335 echo "configure: failed program was:" >&5
4336 cat conftest.$ac_ext >&5
4337 rm -rf conftest*
4338 eval "ac_cv_func_$ac_func=no"
4340 rm -f conftest*
4343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4344 echo "$ac_t""yes" 1>&6
4345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4346 cat >> confdefs.h <<EOF
4347 #define $ac_tr_func 1
4350 else
4351 echo "$ac_t""no" 1>&6
4352 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4354 done
4356 for ac_func in __signbitf
4358 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4359 echo "configure:4360: checking for $ac_func" >&5
4360 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4362 else
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4366 /* System header to define __stub macros and hopefully few prototypes,
4367 which can conflict with char $ac_func(); below. */
4368 #include <assert.h>
4369 /* Override any gcc2 internal prototype to avoid an error. */
4370 /* We use char because int might match the return type of a gcc2
4371 builtin and then its argument prototype would still apply. */
4372 char $ac_func();
4374 int main() {
4376 /* The GNU C library defines this for functions which it implements
4377 to always fail with ENOSYS. Some functions are actually named
4378 something starting with __ and the normal name is an alias. */
4379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4380 choke me
4381 #else
4382 $ac_func();
4383 #endif
4385 ; return 0; }
4387 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4388 rm -rf conftest*
4389 eval "ac_cv_func_$ac_func=yes"
4390 else
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4393 rm -rf conftest*
4394 eval "ac_cv_func_$ac_func=no"
4396 rm -f conftest*
4399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4400 echo "$ac_t""yes" 1>&6
4401 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4402 cat >> confdefs.h <<EOF
4403 #define $ac_tr_func 1
4406 else
4407 echo "$ac_t""no" 1>&6
4408 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4410 done
4413 if test x$ac_cv_func_copysignl = x"yes"; then
4414 for ac_func in __signbitl
4416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4417 echo "configure:4418: checking for $ac_func" >&5
4418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4419 echo $ac_n "(cached) $ac_c" 1>&6
4420 else
4421 cat > conftest.$ac_ext <<EOF
4422 #line 4423 "configure"
4423 #include "confdefs.h"
4424 /* System header to define __stub macros and hopefully few prototypes,
4425 which can conflict with char $ac_func(); below. */
4426 #include <assert.h>
4427 /* Override any gcc2 internal prototype to avoid an error. */
4428 /* We use char because int might match the return type of a gcc2
4429 builtin and then its argument prototype would still apply. */
4430 char $ac_func();
4432 int main() {
4434 /* The GNU C library defines this for functions which it implements
4435 to always fail with ENOSYS. Some functions are actually named
4436 something starting with __ and the normal name is an alias. */
4437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4438 choke me
4439 #else
4440 $ac_func();
4441 #endif
4443 ; return 0; }
4445 if { (eval echo configure:4446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4446 rm -rf conftest*
4447 eval "ac_cv_func_$ac_func=yes"
4448 else
4449 echo "configure: failed program was:" >&5
4450 cat conftest.$ac_ext >&5
4451 rm -rf conftest*
4452 eval "ac_cv_func_$ac_func=no"
4454 rm -f conftest*
4457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4458 echo "$ac_t""yes" 1>&6
4459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4460 cat >> confdefs.h <<EOF
4461 #define $ac_tr_func 1
4464 else
4465 echo "$ac_t""no" 1>&6
4466 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4468 done
4476 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4477 echo "configure:4478: checking for mbstate_t" >&5
4478 cat > conftest.$ac_ext <<EOF
4479 #line 4480 "configure"
4480 #include "confdefs.h"
4481 #include <wchar.h>
4482 int main() {
4483 mbstate_t teststate;
4484 ; return 0; }
4486 if { (eval echo configure:4487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4487 rm -rf conftest*
4488 have_mbstate_t=yes
4489 else
4490 echo "configure: failed program was:" >&5
4491 cat conftest.$ac_ext >&5
4492 rm -rf conftest*
4493 have_mbstate_t=no
4495 rm -f conftest*
4496 echo "$ac_t""$have_mbstate_t" 1>&6
4497 if test x"$have_mbstate_t" = xyes; then
4498 cat >> confdefs.h <<\EOF
4499 #define HAVE_MBSTATE_T 1
4504 for ac_hdr in wchar.h
4506 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4508 echo "configure:4509: checking for $ac_hdr" >&5
4509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4510 echo $ac_n "(cached) $ac_c" 1>&6
4511 else
4512 cat > conftest.$ac_ext <<EOF
4513 #line 4514 "configure"
4514 #include "confdefs.h"
4515 #include <$ac_hdr>
4517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4518 { (eval echo configure:4519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4520 if test -z "$ac_err"; then
4521 rm -rf conftest*
4522 eval "ac_cv_header_$ac_safe=yes"
4523 else
4524 echo "$ac_err" >&5
4525 echo "configure: failed program was:" >&5
4526 cat conftest.$ac_ext >&5
4527 rm -rf conftest*
4528 eval "ac_cv_header_$ac_safe=no"
4530 rm -f conftest*
4532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4533 echo "$ac_t""yes" 1>&6
4534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4535 cat >> confdefs.h <<EOF
4536 #define $ac_tr_hdr 1
4538 ac_has_wchar_h=yes
4539 else
4540 echo "$ac_t""no" 1>&6
4541 ac_has_wchar_h=no
4543 done
4545 for ac_hdr in wctype.h
4547 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4548 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4549 echo "configure:4550: checking for $ac_hdr" >&5
4550 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4551 echo $ac_n "(cached) $ac_c" 1>&6
4552 else
4553 cat > conftest.$ac_ext <<EOF
4554 #line 4555 "configure"
4555 #include "confdefs.h"
4556 #include <$ac_hdr>
4558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4559 { (eval echo configure:4560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4561 if test -z "$ac_err"; then
4562 rm -rf conftest*
4563 eval "ac_cv_header_$ac_safe=yes"
4564 else
4565 echo "$ac_err" >&5
4566 echo "configure: failed program was:" >&5
4567 cat conftest.$ac_ext >&5
4568 rm -rf conftest*
4569 eval "ac_cv_header_$ac_safe=no"
4571 rm -f conftest*
4573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4574 echo "$ac_t""yes" 1>&6
4575 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4576 cat >> confdefs.h <<EOF
4577 #define $ac_tr_hdr 1
4579 ac_has_wctype_h=yes
4580 else
4581 echo "$ac_t""no" 1>&6
4582 ac_has_wctype_h=no
4584 done
4587 if test x"$ac_has_wchar_h" = xyes &&
4588 test x"$ac_has_wctype_h" = xyes &&
4589 test x"$enable_c_mbchar" != xno; then
4591 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4592 echo "configure:4593: checking for WCHAR_MIN and WCHAR_MAX" >&5
4593 cat > conftest.$ac_ext <<EOF
4594 #line 4595 "configure"
4595 #include "confdefs.h"
4596 #include <wchar.h>
4597 int main() {
4598 int i = WCHAR_MIN; int j = WCHAR_MAX;
4599 ; return 0; }
4601 if { (eval echo configure:4602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4602 rm -rf conftest*
4603 has_wchar_minmax=yes
4604 else
4605 echo "configure: failed program was:" >&5
4606 cat conftest.$ac_ext >&5
4607 rm -rf conftest*
4608 has_wchar_minmax=no
4610 rm -f conftest*
4611 echo "$ac_t""$has_wchar_minmax" 1>&6
4613 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4614 echo "configure:4615: checking for WEOF" >&5
4615 cat > conftest.$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4619 #include <wchar.h>
4620 #include <stddef.h>
4621 int main() {
4622 wint_t i = WEOF;
4623 ; return 0; }
4625 if { (eval echo configure:4626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4626 rm -rf conftest*
4627 has_weof=yes
4628 else
4629 echo "configure: failed program was:" >&5
4630 cat conftest.$ac_ext >&5
4631 rm -rf conftest*
4632 has_weof=no
4634 rm -f conftest*
4635 echo "$ac_t""$has_weof" 1>&6
4637 ac_wfuncs=yes
4638 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4641 echo "configure:4642: checking for $ac_func" >&5
4642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4643 echo $ac_n "(cached) $ac_c" 1>&6
4644 else
4645 cat > conftest.$ac_ext <<EOF
4646 #line 4647 "configure"
4647 #include "confdefs.h"
4648 /* System header to define __stub macros and hopefully few prototypes,
4649 which can conflict with char $ac_func(); below. */
4650 #include <assert.h>
4651 /* Override any gcc2 internal prototype to avoid an error. */
4652 /* We use char because int might match the return type of a gcc2
4653 builtin and then its argument prototype would still apply. */
4654 char $ac_func();
4656 int main() {
4658 /* The GNU C library defines this for functions which it implements
4659 to always fail with ENOSYS. Some functions are actually named
4660 something starting with __ and the normal name is an alias. */
4661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4662 choke me
4663 #else
4664 $ac_func();
4665 #endif
4667 ; return 0; }
4669 if { (eval echo configure:4670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4670 rm -rf conftest*
4671 eval "ac_cv_func_$ac_func=yes"
4672 else
4673 echo "configure: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4675 rm -rf conftest*
4676 eval "ac_cv_func_$ac_func=no"
4678 rm -f conftest*
4681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4682 echo "$ac_t""yes" 1>&6
4683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4684 cat >> confdefs.h <<EOF
4685 #define $ac_tr_func 1
4688 else
4689 echo "$ac_t""no" 1>&6
4691 ac_wfuncs=no
4693 done
4696 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4697 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4698 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4699 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4700 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4701 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4704 echo "configure:4705: checking for $ac_func" >&5
4705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4706 echo $ac_n "(cached) $ac_c" 1>&6
4707 else
4708 cat > conftest.$ac_ext <<EOF
4709 #line 4710 "configure"
4710 #include "confdefs.h"
4711 /* System header to define __stub macros and hopefully few prototypes,
4712 which can conflict with char $ac_func(); below. */
4713 #include <assert.h>
4714 /* Override any gcc2 internal prototype to avoid an error. */
4715 /* We use char because int might match the return type of a gcc2
4716 builtin and then its argument prototype would still apply. */
4717 char $ac_func();
4719 int main() {
4721 /* The GNU C library defines this for functions which it implements
4722 to always fail with ENOSYS. Some functions are actually named
4723 something starting with __ and the normal name is an alias. */
4724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4725 choke me
4726 #else
4727 $ac_func();
4728 #endif
4730 ; return 0; }
4732 if { (eval echo configure:4733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4733 rm -rf conftest*
4734 eval "ac_cv_func_$ac_func=yes"
4735 else
4736 echo "configure: failed program was:" >&5
4737 cat conftest.$ac_ext >&5
4738 rm -rf conftest*
4739 eval "ac_cv_func_$ac_func=no"
4741 rm -f conftest*
4744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4745 echo "$ac_t""yes" 1>&6
4746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4747 cat >> confdefs.h <<EOF
4748 #define $ac_tr_func 1
4751 else
4752 echo "$ac_t""no" 1>&6
4754 ac_wfuncs=no
4756 done
4759 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4760 echo "configure:4761: checking for ISO C99 wchar_t support" >&5
4761 if test x"$has_weof" = xyes &&
4762 test x"$has_wchar_minmax" = xyes &&
4763 test x"$ac_wfuncs" = xyes; then
4764 ac_isoC99_wchar_t=yes
4765 else
4766 ac_isoC99_wchar_t=no
4768 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4770 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4771 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4772 echo "configure:4773: checking for iconv.h" >&5
4773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4774 echo $ac_n "(cached) $ac_c" 1>&6
4775 else
4776 cat > conftest.$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4779 #include <iconv.h>
4781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4782 { (eval echo configure:4783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4784 if test -z "$ac_err"; then
4785 rm -rf conftest*
4786 eval "ac_cv_header_$ac_safe=yes"
4787 else
4788 echo "$ac_err" >&5
4789 echo "configure: failed program was:" >&5
4790 cat conftest.$ac_ext >&5
4791 rm -rf conftest*
4792 eval "ac_cv_header_$ac_safe=no"
4794 rm -f conftest*
4796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4797 echo "$ac_t""yes" 1>&6
4798 ac_has_iconv_h=yes
4799 else
4800 echo "$ac_t""no" 1>&6
4801 ac_has_iconv_h=no
4804 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4805 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4806 echo "configure:4807: checking for langinfo.h" >&5
4807 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4808 echo $ac_n "(cached) $ac_c" 1>&6
4809 else
4810 cat > conftest.$ac_ext <<EOF
4811 #line 4812 "configure"
4812 #include "confdefs.h"
4813 #include <langinfo.h>
4815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4816 { (eval echo configure:4817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4818 if test -z "$ac_err"; then
4819 rm -rf conftest*
4820 eval "ac_cv_header_$ac_safe=yes"
4821 else
4822 echo "$ac_err" >&5
4823 echo "configure: failed program was:" >&5
4824 cat conftest.$ac_ext >&5
4825 rm -rf conftest*
4826 eval "ac_cv_header_$ac_safe=no"
4828 rm -f conftest*
4830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4831 echo "$ac_t""yes" 1>&6
4832 ac_has_langinfo_h=yes
4833 else
4834 echo "$ac_t""no" 1>&6
4835 ac_has_langinfo_h=no
4839 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4840 echo "configure:4841: checking for iconv in -liconv" >&5
4841 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4842 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4843 echo $ac_n "(cached) $ac_c" 1>&6
4844 else
4845 ac_save_LIBS="$LIBS"
4846 LIBS="-liconv $LIBS"
4847 cat > conftest.$ac_ext <<EOF
4848 #line 4849 "configure"
4849 #include "confdefs.h"
4850 /* Override any gcc2 internal prototype to avoid an error. */
4851 /* We use char because int might match the return type of a gcc2
4852 builtin and then its argument prototype would still apply. */
4853 char iconv();
4855 int main() {
4856 iconv()
4857 ; return 0; }
4859 if { (eval echo configure:4860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4860 rm -rf conftest*
4861 eval "ac_cv_lib_$ac_lib_var=yes"
4862 else
4863 echo "configure: failed program was:" >&5
4864 cat conftest.$ac_ext >&5
4865 rm -rf conftest*
4866 eval "ac_cv_lib_$ac_lib_var=no"
4868 rm -f conftest*
4869 LIBS="$ac_save_LIBS"
4872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4873 echo "$ac_t""yes" 1>&6
4874 libiconv="-liconv"
4875 else
4876 echo "$ac_t""no" 1>&6
4879 ac_save_LIBS="$LIBS"
4880 LIBS="$LIBS $libiconv"
4882 for ac_func in iconv_open iconv_close iconv nl_langinfo
4884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4885 echo "configure:4886: checking for $ac_func" >&5
4886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4888 else
4889 cat > conftest.$ac_ext <<EOF
4890 #line 4891 "configure"
4891 #include "confdefs.h"
4892 /* System header to define __stub macros and hopefully few prototypes,
4893 which can conflict with char $ac_func(); below. */
4894 #include <assert.h>
4895 /* Override any gcc2 internal prototype to avoid an error. */
4896 /* We use char because int might match the return type of a gcc2
4897 builtin and then its argument prototype would still apply. */
4898 char $ac_func();
4900 int main() {
4902 /* The GNU C library defines this for functions which it implements
4903 to always fail with ENOSYS. Some functions are actually named
4904 something starting with __ and the normal name is an alias. */
4905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4906 choke me
4907 #else
4908 $ac_func();
4909 #endif
4911 ; return 0; }
4913 if { (eval echo configure:4914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4914 rm -rf conftest*
4915 eval "ac_cv_func_$ac_func=yes"
4916 else
4917 echo "configure: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4919 rm -rf conftest*
4920 eval "ac_cv_func_$ac_func=no"
4922 rm -f conftest*
4925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4926 echo "$ac_t""yes" 1>&6
4927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4928 cat >> confdefs.h <<EOF
4929 #define $ac_tr_func 1
4932 ac_XPG2funcs=yes
4933 else
4934 echo "$ac_t""no" 1>&6
4935 ac_XPG2funcs=no
4937 done
4940 LIBS="$ac_save_LIBS"
4942 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4943 echo "configure:4944: checking for XPG2 wchar_t support" >&5
4944 if test x"$ac_has_iconv_h" = xyes &&
4945 test x"$ac_has_langinfo_h" = xyes &&
4946 test x"$ac_XPG2funcs" = xyes; then
4947 ac_XPG2_wchar_t=yes
4948 else
4949 ac_XPG2_wchar_t=no
4951 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4953 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4954 echo "configure:4955: checking for enabled wchar_t specializations" >&5
4955 if test x"$ac_isoC99_wchar_t" = xyes &&
4956 test x"$ac_XPG2_wchar_t" = xyes; then
4957 cat >> confdefs.h <<\EOF
4958 #define _GLIBCPP_USE_WCHAR_T 1
4961 echo "$ac_t"""yes"" 1>&6
4962 else
4963 echo "$ac_t"""no"" 1>&6
4965 else
4966 echo "configure: warning: wchar_t support disabled." 1>&2
4969 os_include_dir="config/os/gnu-linux"
4970 cat >> confdefs.h <<\EOF
4971 #define HAVE_COPYSIGN 1
4974 cat >> confdefs.h <<\EOF
4975 #define HAVE_COPYSIGNF 1
4978 cat >> confdefs.h <<\EOF
4979 #define HAVE_FINITEF 1
4982 cat >> confdefs.h <<\EOF
4983 #define HAVE_FREXPF 1
4986 cat >> confdefs.h <<\EOF
4987 #define HAVE_HYPOTF 1
4990 cat >> confdefs.h <<\EOF
4991 #define HAVE_SINCOS 1
4994 cat >> confdefs.h <<\EOF
4995 #define HAVE_SINCOSF 1
4998 if test x"long_double_math_on_this_cpu" = x"yes"; then
4999 cat >> confdefs.h <<\EOF
5000 #define HAVE_HYPOTL 1
5005 *-hpux*)
5006 # Check for available headers.
5007 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5008 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5009 fp.h locale.h float.h inttypes.h
5011 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5013 echo "configure:5014: checking for $ac_hdr" >&5
5014 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5015 echo $ac_n "(cached) $ac_c" 1>&6
5016 else
5017 cat > conftest.$ac_ext <<EOF
5018 #line 5019 "configure"
5019 #include "confdefs.h"
5020 #include <$ac_hdr>
5022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5023 { (eval echo configure:5024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5025 if test -z "$ac_err"; then
5026 rm -rf conftest*
5027 eval "ac_cv_header_$ac_safe=yes"
5028 else
5029 echo "$ac_err" >&5
5030 echo "configure: failed program was:" >&5
5031 cat conftest.$ac_ext >&5
5032 rm -rf conftest*
5033 eval "ac_cv_header_$ac_safe=no"
5035 rm -f conftest*
5037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5038 echo "$ac_t""yes" 1>&6
5039 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5040 cat >> confdefs.h <<EOF
5041 #define $ac_tr_hdr 1
5044 else
5045 echo "$ac_t""no" 1>&6
5047 done
5049 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5052 # If we're not using GNU ld, then there's no point in even trying these
5053 # tests. Check for that first. We should have already tested for gld
5054 # by now (in libtool), but require it now just to be safe...
5055 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5056 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5059 # The name set by libtool depends on the version of libtool. Shame on us
5060 # for depending on an impl detail, but c'est la vie. Older versions used
5061 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5062 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5063 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5064 # set (hence we're using an older libtool), then set it.
5065 if test x${with_gnu_ld+set} != xset; then
5066 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5067 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5068 with_gnu_ld=no
5069 else
5070 with_gnu_ld=$ac_cv_prog_gnu_ld
5074 # Start by getting the version number. I think the libtool test already
5075 # does some of this, but throws away the result.
5077 ldver=`$LD --version 2>/dev/null | head -1 | \
5078 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5080 glibcpp_gnu_ld_version=`echo $ldver | \
5081 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5083 # Set --gc-sections.
5084 if test "$with_gnu_ld" = "notbroken"; then
5085 # GNU ld it is! Joy and bunny rabbits!
5087 # All these tests are for C++; save the language and the compiler flags.
5088 # Need to do this so that g++ won't try to link in libstdc++
5089 ac_test_CFLAGS="${CFLAGS+set}"
5090 ac_save_CFLAGS="$CFLAGS"
5091 CFLAGS='-x c++ -Wl,--gc-sections'
5093 # Check for -Wl,--gc-sections
5094 # XXX This test is broken at the moment, as symbols required for
5095 # linking are now in libsupc++ (not built yet.....). In addition,
5096 # this test has cored on solaris in the past. In addition,
5097 # --gc-sections doesn't really work at the moment (keeps on discarding
5098 # used sections, first .eh_frame and now some of the glibc sections for
5099 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5100 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5101 echo "configure:5102: checking for ld that supports -Wl,--gc-sections" >&5
5102 if test "$cross_compiling" = yes; then
5103 ac_sectionLDflags=yes
5104 else
5105 cat > conftest.$ac_ext <<EOF
5106 #line 5107 "configure"
5107 #include "confdefs.h"
5109 int main(void)
5111 try { throw 1; }
5112 catch (...) { };
5113 return 0;
5117 if { (eval echo configure:5118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5118 then
5119 ac_sectionLDflags=yes
5120 else
5121 echo "configure: failed program was:" >&5
5122 cat conftest.$ac_ext >&5
5123 rm -fr conftest*
5124 ac_sectionLDflags=no
5126 rm -fr conftest*
5129 if test "$ac_test_CFLAGS" = set; then
5130 CFLAGS="$ac_save_CFLAGS"
5131 else
5132 # this is the suspicious part
5133 CFLAGS=''
5135 if test "$ac_sectionLDflags" = "yes"; then
5136 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5138 echo "$ac_t""$ac_sectionLDflags" 1>&6
5141 # Set linker optimization flags.
5142 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5143 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5150 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5151 echo "configure:5152: checking for main in -lm" >&5
5152 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5153 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5154 echo $ac_n "(cached) $ac_c" 1>&6
5155 else
5156 ac_save_LIBS="$LIBS"
5157 LIBS="-lm $LIBS"
5158 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5162 int main() {
5163 main()
5164 ; return 0; }
5166 if { (eval echo configure:5167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5167 rm -rf conftest*
5168 eval "ac_cv_lib_$ac_lib_var=yes"
5169 else
5170 echo "configure: failed program was:" >&5
5171 cat conftest.$ac_ext >&5
5172 rm -rf conftest*
5173 eval "ac_cv_lib_$ac_lib_var=no"
5175 rm -f conftest*
5176 LIBS="$ac_save_LIBS"
5179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5180 echo "$ac_t""yes" 1>&6
5181 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5182 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5183 cat >> confdefs.h <<EOF
5184 #define $ac_tr_lib 1
5187 LIBS="-lm $LIBS"
5189 else
5190 echo "$ac_t""no" 1>&6
5193 for ac_func in nan copysignf
5195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5196 echo "configure:5197: checking for $ac_func" >&5
5197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5198 echo $ac_n "(cached) $ac_c" 1>&6
5199 else
5200 cat > conftest.$ac_ext <<EOF
5201 #line 5202 "configure"
5202 #include "confdefs.h"
5203 /* System header to define __stub macros and hopefully few prototypes,
5204 which can conflict with char $ac_func(); below. */
5205 #include <assert.h>
5206 /* Override any gcc2 internal prototype to avoid an error. */
5207 /* We use char because int might match the return type of a gcc2
5208 builtin and then its argument prototype would still apply. */
5209 char $ac_func();
5211 int main() {
5213 /* The GNU C library defines this for functions which it implements
5214 to always fail with ENOSYS. Some functions are actually named
5215 something starting with __ and the normal name is an alias. */
5216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5217 choke me
5218 #else
5219 $ac_func();
5220 #endif
5222 ; return 0; }
5224 if { (eval echo configure:5225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5225 rm -rf conftest*
5226 eval "ac_cv_func_$ac_func=yes"
5227 else
5228 echo "configure: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5230 rm -rf conftest*
5231 eval "ac_cv_func_$ac_func=no"
5233 rm -f conftest*
5236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5237 echo "$ac_t""yes" 1>&6
5238 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5239 cat >> confdefs.h <<EOF
5240 #define $ac_tr_func 1
5243 else
5244 echo "$ac_t""no" 1>&6
5245 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5247 done
5250 for ac_func in __signbit
5252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5253 echo "configure:5254: checking for $ac_func" >&5
5254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5255 echo $ac_n "(cached) $ac_c" 1>&6
5256 else
5257 cat > conftest.$ac_ext <<EOF
5258 #line 5259 "configure"
5259 #include "confdefs.h"
5260 /* System header to define __stub macros and hopefully few prototypes,
5261 which can conflict with char $ac_func(); below. */
5262 #include <assert.h>
5263 /* Override any gcc2 internal prototype to avoid an error. */
5264 /* We use char because int might match the return type of a gcc2
5265 builtin and then its argument prototype would still apply. */
5266 char $ac_func();
5268 int main() {
5270 /* The GNU C library defines this for functions which it implements
5271 to always fail with ENOSYS. Some functions are actually named
5272 something starting with __ and the normal name is an alias. */
5273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5274 choke me
5275 #else
5276 $ac_func();
5277 #endif
5279 ; return 0; }
5281 if { (eval echo configure:5282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5282 rm -rf conftest*
5283 eval "ac_cv_func_$ac_func=yes"
5284 else
5285 echo "configure: failed program was:" >&5
5286 cat conftest.$ac_ext >&5
5287 rm -rf conftest*
5288 eval "ac_cv_func_$ac_func=no"
5290 rm -f conftest*
5293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5294 echo "$ac_t""yes" 1>&6
5295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5296 cat >> confdefs.h <<EOF
5297 #define $ac_tr_func 1
5300 else
5301 echo "$ac_t""no" 1>&6
5302 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5304 done
5306 for ac_func in __signbitf
5308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5309 echo "configure:5310: checking for $ac_func" >&5
5310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5311 echo $ac_n "(cached) $ac_c" 1>&6
5312 else
5313 cat > conftest.$ac_ext <<EOF
5314 #line 5315 "configure"
5315 #include "confdefs.h"
5316 /* System header to define __stub macros and hopefully few prototypes,
5317 which can conflict with char $ac_func(); below. */
5318 #include <assert.h>
5319 /* Override any gcc2 internal prototype to avoid an error. */
5320 /* We use char because int might match the return type of a gcc2
5321 builtin and then its argument prototype would still apply. */
5322 char $ac_func();
5324 int main() {
5326 /* The GNU C library defines this for functions which it implements
5327 to always fail with ENOSYS. Some functions are actually named
5328 something starting with __ and the normal name is an alias. */
5329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5330 choke me
5331 #else
5332 $ac_func();
5333 #endif
5335 ; return 0; }
5337 if { (eval echo configure:5338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5338 rm -rf conftest*
5339 eval "ac_cv_func_$ac_func=yes"
5340 else
5341 echo "configure: failed program was:" >&5
5342 cat conftest.$ac_ext >&5
5343 rm -rf conftest*
5344 eval "ac_cv_func_$ac_func=no"
5346 rm -f conftest*
5349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5350 echo "$ac_t""yes" 1>&6
5351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5352 cat >> confdefs.h <<EOF
5353 #define $ac_tr_func 1
5356 else
5357 echo "$ac_t""no" 1>&6
5358 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5360 done
5363 if test x$ac_cv_func_copysignl = x"yes"; then
5364 for ac_func in __signbitl
5366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5367 echo "configure:5368: checking for $ac_func" >&5
5368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5369 echo $ac_n "(cached) $ac_c" 1>&6
5370 else
5371 cat > conftest.$ac_ext <<EOF
5372 #line 5373 "configure"
5373 #include "confdefs.h"
5374 /* System header to define __stub macros and hopefully few prototypes,
5375 which can conflict with char $ac_func(); below. */
5376 #include <assert.h>
5377 /* Override any gcc2 internal prototype to avoid an error. */
5378 /* We use char because int might match the return type of a gcc2
5379 builtin and then its argument prototype would still apply. */
5380 char $ac_func();
5382 int main() {
5384 /* The GNU C library defines this for functions which it implements
5385 to always fail with ENOSYS. Some functions are actually named
5386 something starting with __ and the normal name is an alias. */
5387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5388 choke me
5389 #else
5390 $ac_func();
5391 #endif
5393 ; return 0; }
5395 if { (eval echo configure:5396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5396 rm -rf conftest*
5397 eval "ac_cv_func_$ac_func=yes"
5398 else
5399 echo "configure: failed program was:" >&5
5400 cat conftest.$ac_ext >&5
5401 rm -rf conftest*
5402 eval "ac_cv_func_$ac_func=no"
5404 rm -f conftest*
5407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5408 echo "$ac_t""yes" 1>&6
5409 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5410 cat >> confdefs.h <<EOF
5411 #define $ac_tr_func 1
5414 else
5415 echo "$ac_t""no" 1>&6
5416 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5418 done
5426 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5427 echo "configure:5428: checking for mbstate_t" >&5
5428 cat > conftest.$ac_ext <<EOF
5429 #line 5430 "configure"
5430 #include "confdefs.h"
5431 #include <wchar.h>
5432 int main() {
5433 mbstate_t teststate;
5434 ; return 0; }
5436 if { (eval echo configure:5437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5437 rm -rf conftest*
5438 have_mbstate_t=yes
5439 else
5440 echo "configure: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5442 rm -rf conftest*
5443 have_mbstate_t=no
5445 rm -f conftest*
5446 echo "$ac_t""$have_mbstate_t" 1>&6
5447 if test x"$have_mbstate_t" = xyes; then
5448 cat >> confdefs.h <<\EOF
5449 #define HAVE_MBSTATE_T 1
5454 for ac_hdr in wchar.h
5456 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5457 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5458 echo "configure:5459: checking for $ac_hdr" >&5
5459 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5460 echo $ac_n "(cached) $ac_c" 1>&6
5461 else
5462 cat > conftest.$ac_ext <<EOF
5463 #line 5464 "configure"
5464 #include "confdefs.h"
5465 #include <$ac_hdr>
5467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5468 { (eval echo configure:5469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5470 if test -z "$ac_err"; then
5471 rm -rf conftest*
5472 eval "ac_cv_header_$ac_safe=yes"
5473 else
5474 echo "$ac_err" >&5
5475 echo "configure: failed program was:" >&5
5476 cat conftest.$ac_ext >&5
5477 rm -rf conftest*
5478 eval "ac_cv_header_$ac_safe=no"
5480 rm -f conftest*
5482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5483 echo "$ac_t""yes" 1>&6
5484 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5485 cat >> confdefs.h <<EOF
5486 #define $ac_tr_hdr 1
5488 ac_has_wchar_h=yes
5489 else
5490 echo "$ac_t""no" 1>&6
5491 ac_has_wchar_h=no
5493 done
5495 for ac_hdr in wctype.h
5497 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5499 echo "configure:5500: checking for $ac_hdr" >&5
5500 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5501 echo $ac_n "(cached) $ac_c" 1>&6
5502 else
5503 cat > conftest.$ac_ext <<EOF
5504 #line 5505 "configure"
5505 #include "confdefs.h"
5506 #include <$ac_hdr>
5508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5509 { (eval echo configure:5510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5511 if test -z "$ac_err"; then
5512 rm -rf conftest*
5513 eval "ac_cv_header_$ac_safe=yes"
5514 else
5515 echo "$ac_err" >&5
5516 echo "configure: failed program was:" >&5
5517 cat conftest.$ac_ext >&5
5518 rm -rf conftest*
5519 eval "ac_cv_header_$ac_safe=no"
5521 rm -f conftest*
5523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5524 echo "$ac_t""yes" 1>&6
5525 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5526 cat >> confdefs.h <<EOF
5527 #define $ac_tr_hdr 1
5529 ac_has_wctype_h=yes
5530 else
5531 echo "$ac_t""no" 1>&6
5532 ac_has_wctype_h=no
5534 done
5537 if test x"$ac_has_wchar_h" = xyes &&
5538 test x"$ac_has_wctype_h" = xyes &&
5539 test x"$enable_c_mbchar" != xno; then
5541 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5542 echo "configure:5543: checking for WCHAR_MIN and WCHAR_MAX" >&5
5543 cat > conftest.$ac_ext <<EOF
5544 #line 5545 "configure"
5545 #include "confdefs.h"
5546 #include <wchar.h>
5547 int main() {
5548 int i = WCHAR_MIN; int j = WCHAR_MAX;
5549 ; return 0; }
5551 if { (eval echo configure:5552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5552 rm -rf conftest*
5553 has_wchar_minmax=yes
5554 else
5555 echo "configure: failed program was:" >&5
5556 cat conftest.$ac_ext >&5
5557 rm -rf conftest*
5558 has_wchar_minmax=no
5560 rm -f conftest*
5561 echo "$ac_t""$has_wchar_minmax" 1>&6
5563 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5564 echo "configure:5565: checking for WEOF" >&5
5565 cat > conftest.$ac_ext <<EOF
5566 #line 5567 "configure"
5567 #include "confdefs.h"
5569 #include <wchar.h>
5570 #include <stddef.h>
5571 int main() {
5572 wint_t i = WEOF;
5573 ; return 0; }
5575 if { (eval echo configure:5576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5576 rm -rf conftest*
5577 has_weof=yes
5578 else
5579 echo "configure: failed program was:" >&5
5580 cat conftest.$ac_ext >&5
5581 rm -rf conftest*
5582 has_weof=no
5584 rm -f conftest*
5585 echo "$ac_t""$has_weof" 1>&6
5587 ac_wfuncs=yes
5588 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5591 echo "configure:5592: checking for $ac_func" >&5
5592 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5593 echo $ac_n "(cached) $ac_c" 1>&6
5594 else
5595 cat > conftest.$ac_ext <<EOF
5596 #line 5597 "configure"
5597 #include "confdefs.h"
5598 /* System header to define __stub macros and hopefully few prototypes,
5599 which can conflict with char $ac_func(); below. */
5600 #include <assert.h>
5601 /* Override any gcc2 internal prototype to avoid an error. */
5602 /* We use char because int might match the return type of a gcc2
5603 builtin and then its argument prototype would still apply. */
5604 char $ac_func();
5606 int main() {
5608 /* The GNU C library defines this for functions which it implements
5609 to always fail with ENOSYS. Some functions are actually named
5610 something starting with __ and the normal name is an alias. */
5611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5612 choke me
5613 #else
5614 $ac_func();
5615 #endif
5617 ; return 0; }
5619 if { (eval echo configure:5620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5620 rm -rf conftest*
5621 eval "ac_cv_func_$ac_func=yes"
5622 else
5623 echo "configure: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5625 rm -rf conftest*
5626 eval "ac_cv_func_$ac_func=no"
5628 rm -f conftest*
5631 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5632 echo "$ac_t""yes" 1>&6
5633 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5634 cat >> confdefs.h <<EOF
5635 #define $ac_tr_func 1
5638 else
5639 echo "$ac_t""no" 1>&6
5641 ac_wfuncs=no
5643 done
5646 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5647 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5648 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5649 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5650 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5651 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5654 echo "configure:5655: checking for $ac_func" >&5
5655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5656 echo $ac_n "(cached) $ac_c" 1>&6
5657 else
5658 cat > conftest.$ac_ext <<EOF
5659 #line 5660 "configure"
5660 #include "confdefs.h"
5661 /* System header to define __stub macros and hopefully few prototypes,
5662 which can conflict with char $ac_func(); below. */
5663 #include <assert.h>
5664 /* Override any gcc2 internal prototype to avoid an error. */
5665 /* We use char because int might match the return type of a gcc2
5666 builtin and then its argument prototype would still apply. */
5667 char $ac_func();
5669 int main() {
5671 /* The GNU C library defines this for functions which it implements
5672 to always fail with ENOSYS. Some functions are actually named
5673 something starting with __ and the normal name is an alias. */
5674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5675 choke me
5676 #else
5677 $ac_func();
5678 #endif
5680 ; return 0; }
5682 if { (eval echo configure:5683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5683 rm -rf conftest*
5684 eval "ac_cv_func_$ac_func=yes"
5685 else
5686 echo "configure: failed program was:" >&5
5687 cat conftest.$ac_ext >&5
5688 rm -rf conftest*
5689 eval "ac_cv_func_$ac_func=no"
5691 rm -f conftest*
5694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5695 echo "$ac_t""yes" 1>&6
5696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5697 cat >> confdefs.h <<EOF
5698 #define $ac_tr_func 1
5701 else
5702 echo "$ac_t""no" 1>&6
5704 ac_wfuncs=no
5706 done
5709 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5710 echo "configure:5711: checking for ISO C99 wchar_t support" >&5
5711 if test x"$has_weof" = xyes &&
5712 test x"$has_wchar_minmax" = xyes &&
5713 test x"$ac_wfuncs" = xyes; then
5714 ac_isoC99_wchar_t=yes
5715 else
5716 ac_isoC99_wchar_t=no
5718 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5720 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5721 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5722 echo "configure:5723: checking for iconv.h" >&5
5723 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5724 echo $ac_n "(cached) $ac_c" 1>&6
5725 else
5726 cat > conftest.$ac_ext <<EOF
5727 #line 5728 "configure"
5728 #include "confdefs.h"
5729 #include <iconv.h>
5731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5732 { (eval echo configure:5733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5734 if test -z "$ac_err"; then
5735 rm -rf conftest*
5736 eval "ac_cv_header_$ac_safe=yes"
5737 else
5738 echo "$ac_err" >&5
5739 echo "configure: failed program was:" >&5
5740 cat conftest.$ac_ext >&5
5741 rm -rf conftest*
5742 eval "ac_cv_header_$ac_safe=no"
5744 rm -f conftest*
5746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5747 echo "$ac_t""yes" 1>&6
5748 ac_has_iconv_h=yes
5749 else
5750 echo "$ac_t""no" 1>&6
5751 ac_has_iconv_h=no
5754 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5755 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5756 echo "configure:5757: checking for langinfo.h" >&5
5757 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5758 echo $ac_n "(cached) $ac_c" 1>&6
5759 else
5760 cat > conftest.$ac_ext <<EOF
5761 #line 5762 "configure"
5762 #include "confdefs.h"
5763 #include <langinfo.h>
5765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5766 { (eval echo configure:5767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5768 if test -z "$ac_err"; then
5769 rm -rf conftest*
5770 eval "ac_cv_header_$ac_safe=yes"
5771 else
5772 echo "$ac_err" >&5
5773 echo "configure: failed program was:" >&5
5774 cat conftest.$ac_ext >&5
5775 rm -rf conftest*
5776 eval "ac_cv_header_$ac_safe=no"
5778 rm -f conftest*
5780 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5781 echo "$ac_t""yes" 1>&6
5782 ac_has_langinfo_h=yes
5783 else
5784 echo "$ac_t""no" 1>&6
5785 ac_has_langinfo_h=no
5789 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5790 echo "configure:5791: checking for iconv in -liconv" >&5
5791 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5793 echo $ac_n "(cached) $ac_c" 1>&6
5794 else
5795 ac_save_LIBS="$LIBS"
5796 LIBS="-liconv $LIBS"
5797 cat > conftest.$ac_ext <<EOF
5798 #line 5799 "configure"
5799 #include "confdefs.h"
5800 /* Override any gcc2 internal prototype to avoid an error. */
5801 /* We use char because int might match the return type of a gcc2
5802 builtin and then its argument prototype would still apply. */
5803 char iconv();
5805 int main() {
5806 iconv()
5807 ; return 0; }
5809 if { (eval echo configure:5810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5810 rm -rf conftest*
5811 eval "ac_cv_lib_$ac_lib_var=yes"
5812 else
5813 echo "configure: failed program was:" >&5
5814 cat conftest.$ac_ext >&5
5815 rm -rf conftest*
5816 eval "ac_cv_lib_$ac_lib_var=no"
5818 rm -f conftest*
5819 LIBS="$ac_save_LIBS"
5822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5823 echo "$ac_t""yes" 1>&6
5824 libiconv="-liconv"
5825 else
5826 echo "$ac_t""no" 1>&6
5829 ac_save_LIBS="$LIBS"
5830 LIBS="$LIBS $libiconv"
5832 for ac_func in iconv_open iconv_close iconv nl_langinfo
5834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5835 echo "configure:5836: checking for $ac_func" >&5
5836 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5837 echo $ac_n "(cached) $ac_c" 1>&6
5838 else
5839 cat > conftest.$ac_ext <<EOF
5840 #line 5841 "configure"
5841 #include "confdefs.h"
5842 /* System header to define __stub macros and hopefully few prototypes,
5843 which can conflict with char $ac_func(); below. */
5844 #include <assert.h>
5845 /* Override any gcc2 internal prototype to avoid an error. */
5846 /* We use char because int might match the return type of a gcc2
5847 builtin and then its argument prototype would still apply. */
5848 char $ac_func();
5850 int main() {
5852 /* The GNU C library defines this for functions which it implements
5853 to always fail with ENOSYS. Some functions are actually named
5854 something starting with __ and the normal name is an alias. */
5855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5856 choke me
5857 #else
5858 $ac_func();
5859 #endif
5861 ; return 0; }
5863 if { (eval echo configure:5864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5864 rm -rf conftest*
5865 eval "ac_cv_func_$ac_func=yes"
5866 else
5867 echo "configure: failed program was:" >&5
5868 cat conftest.$ac_ext >&5
5869 rm -rf conftest*
5870 eval "ac_cv_func_$ac_func=no"
5872 rm -f conftest*
5875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5876 echo "$ac_t""yes" 1>&6
5877 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5878 cat >> confdefs.h <<EOF
5879 #define $ac_tr_func 1
5882 ac_XPG2funcs=yes
5883 else
5884 echo "$ac_t""no" 1>&6
5885 ac_XPG2funcs=no
5887 done
5890 LIBS="$ac_save_LIBS"
5892 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5893 echo "configure:5894: checking for XPG2 wchar_t support" >&5
5894 if test x"$ac_has_iconv_h" = xyes &&
5895 test x"$ac_has_langinfo_h" = xyes &&
5896 test x"$ac_XPG2funcs" = xyes; then
5897 ac_XPG2_wchar_t=yes
5898 else
5899 ac_XPG2_wchar_t=no
5901 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5903 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5904 echo "configure:5905: checking for enabled wchar_t specializations" >&5
5905 if test x"$ac_isoC99_wchar_t" = xyes &&
5906 test x"$ac_XPG2_wchar_t" = xyes; then
5907 cat >> confdefs.h <<\EOF
5908 #define _GLIBCPP_USE_WCHAR_T 1
5911 echo "$ac_t"""yes"" 1>&6
5912 else
5913 echo "$ac_t"""no"" 1>&6
5915 else
5916 echo "configure: warning: wchar_t support disabled." 1>&2
5919 os_include_dir="config/os/hpux"
5920 cat >> confdefs.h <<\EOF
5921 #define HAVE_COPYSIGN 1
5924 cat >> confdefs.h <<\EOF
5925 #define HAVE_COPYSIGNF 1
5928 cat >> confdefs.h <<\EOF
5929 #define HAVE_FINITEF 1
5932 cat >> confdefs.h <<\EOF
5933 #define HAVE_FREXPF 1
5936 cat >> confdefs.h <<\EOF
5937 #define HAVE_HYPOT 1
5940 cat >> confdefs.h <<\EOF
5941 #define HAVE_SINCOS 1
5944 cat >> confdefs.h <<\EOF
5945 #define HAVE_SINCOSF 1
5949 *-netbsd*)
5950 # Check for available headers.
5951 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5952 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5953 fp.h locale.h float.h inttypes.h
5955 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5956 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5957 echo "configure:5958: checking for $ac_hdr" >&5
5958 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5959 echo $ac_n "(cached) $ac_c" 1>&6
5960 else
5961 cat > conftest.$ac_ext <<EOF
5962 #line 5963 "configure"
5963 #include "confdefs.h"
5964 #include <$ac_hdr>
5966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5967 { (eval echo configure:5968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5969 if test -z "$ac_err"; then
5970 rm -rf conftest*
5971 eval "ac_cv_header_$ac_safe=yes"
5972 else
5973 echo "$ac_err" >&5
5974 echo "configure: failed program was:" >&5
5975 cat conftest.$ac_ext >&5
5976 rm -rf conftest*
5977 eval "ac_cv_header_$ac_safe=no"
5979 rm -f conftest*
5981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5982 echo "$ac_t""yes" 1>&6
5983 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5984 cat >> confdefs.h <<EOF
5985 #define $ac_tr_hdr 1
5988 else
5989 echo "$ac_t""no" 1>&6
5991 done
5993 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5996 # If we're not using GNU ld, then there's no point in even trying these
5997 # tests. Check for that first. We should have already tested for gld
5998 # by now (in libtool), but require it now just to be safe...
5999 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6000 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6003 # The name set by libtool depends on the version of libtool. Shame on us
6004 # for depending on an impl detail, but c'est la vie. Older versions used
6005 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6006 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6007 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6008 # set (hence we're using an older libtool), then set it.
6009 if test x${with_gnu_ld+set} != xset; then
6010 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6011 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6012 with_gnu_ld=no
6013 else
6014 with_gnu_ld=$ac_cv_prog_gnu_ld
6018 # Start by getting the version number. I think the libtool test already
6019 # does some of this, but throws away the result.
6021 ldver=`$LD --version 2>/dev/null | head -1 | \
6022 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6024 glibcpp_gnu_ld_version=`echo $ldver | \
6025 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6027 # Set --gc-sections.
6028 if test "$with_gnu_ld" = "notbroken"; then
6029 # GNU ld it is! Joy and bunny rabbits!
6031 # All these tests are for C++; save the language and the compiler flags.
6032 # Need to do this so that g++ won't try to link in libstdc++
6033 ac_test_CFLAGS="${CFLAGS+set}"
6034 ac_save_CFLAGS="$CFLAGS"
6035 CFLAGS='-x c++ -Wl,--gc-sections'
6037 # Check for -Wl,--gc-sections
6038 # XXX This test is broken at the moment, as symbols required for
6039 # linking are now in libsupc++ (not built yet.....). In addition,
6040 # this test has cored on solaris in the past. In addition,
6041 # --gc-sections doesn't really work at the moment (keeps on discarding
6042 # used sections, first .eh_frame and now some of the glibc sections for
6043 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6044 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6045 echo "configure:6046: checking for ld that supports -Wl,--gc-sections" >&5
6046 if test "$cross_compiling" = yes; then
6047 ac_sectionLDflags=yes
6048 else
6049 cat > conftest.$ac_ext <<EOF
6050 #line 6051 "configure"
6051 #include "confdefs.h"
6053 int main(void)
6055 try { throw 1; }
6056 catch (...) { };
6057 return 0;
6061 if { (eval echo configure:6062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6062 then
6063 ac_sectionLDflags=yes
6064 else
6065 echo "configure: failed program was:" >&5
6066 cat conftest.$ac_ext >&5
6067 rm -fr conftest*
6068 ac_sectionLDflags=no
6070 rm -fr conftest*
6073 if test "$ac_test_CFLAGS" = set; then
6074 CFLAGS="$ac_save_CFLAGS"
6075 else
6076 # this is the suspicious part
6077 CFLAGS=''
6079 if test "$ac_sectionLDflags" = "yes"; then
6080 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6082 echo "$ac_t""$ac_sectionLDflags" 1>&6
6085 # Set linker optimization flags.
6086 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6087 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6094 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6095 echo "configure:6096: checking for main in -lm" >&5
6096 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6098 echo $ac_n "(cached) $ac_c" 1>&6
6099 else
6100 ac_save_LIBS="$LIBS"
6101 LIBS="-lm $LIBS"
6102 cat > conftest.$ac_ext <<EOF
6103 #line 6104 "configure"
6104 #include "confdefs.h"
6106 int main() {
6107 main()
6108 ; return 0; }
6110 if { (eval echo configure:6111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6111 rm -rf conftest*
6112 eval "ac_cv_lib_$ac_lib_var=yes"
6113 else
6114 echo "configure: failed program was:" >&5
6115 cat conftest.$ac_ext >&5
6116 rm -rf conftest*
6117 eval "ac_cv_lib_$ac_lib_var=no"
6119 rm -f conftest*
6120 LIBS="$ac_save_LIBS"
6123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6124 echo "$ac_t""yes" 1>&6
6125 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6126 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6127 cat >> confdefs.h <<EOF
6128 #define $ac_tr_lib 1
6131 LIBS="-lm $LIBS"
6133 else
6134 echo "$ac_t""no" 1>&6
6137 for ac_func in nan copysignf
6139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6140 echo "configure:6141: checking for $ac_func" >&5
6141 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6142 echo $ac_n "(cached) $ac_c" 1>&6
6143 else
6144 cat > conftest.$ac_ext <<EOF
6145 #line 6146 "configure"
6146 #include "confdefs.h"
6147 /* System header to define __stub macros and hopefully few prototypes,
6148 which can conflict with char $ac_func(); below. */
6149 #include <assert.h>
6150 /* Override any gcc2 internal prototype to avoid an error. */
6151 /* We use char because int might match the return type of a gcc2
6152 builtin and then its argument prototype would still apply. */
6153 char $ac_func();
6155 int main() {
6157 /* The GNU C library defines this for functions which it implements
6158 to always fail with ENOSYS. Some functions are actually named
6159 something starting with __ and the normal name is an alias. */
6160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6161 choke me
6162 #else
6163 $ac_func();
6164 #endif
6166 ; return 0; }
6168 if { (eval echo configure:6169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6169 rm -rf conftest*
6170 eval "ac_cv_func_$ac_func=yes"
6171 else
6172 echo "configure: failed program was:" >&5
6173 cat conftest.$ac_ext >&5
6174 rm -rf conftest*
6175 eval "ac_cv_func_$ac_func=no"
6177 rm -f conftest*
6180 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6181 echo "$ac_t""yes" 1>&6
6182 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6183 cat >> confdefs.h <<EOF
6184 #define $ac_tr_func 1
6187 else
6188 echo "$ac_t""no" 1>&6
6189 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6191 done
6194 for ac_func in __signbit
6196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6197 echo "configure:6198: checking for $ac_func" >&5
6198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6199 echo $ac_n "(cached) $ac_c" 1>&6
6200 else
6201 cat > conftest.$ac_ext <<EOF
6202 #line 6203 "configure"
6203 #include "confdefs.h"
6204 /* System header to define __stub macros and hopefully few prototypes,
6205 which can conflict with char $ac_func(); below. */
6206 #include <assert.h>
6207 /* Override any gcc2 internal prototype to avoid an error. */
6208 /* We use char because int might match the return type of a gcc2
6209 builtin and then its argument prototype would still apply. */
6210 char $ac_func();
6212 int main() {
6214 /* The GNU C library defines this for functions which it implements
6215 to always fail with ENOSYS. Some functions are actually named
6216 something starting with __ and the normal name is an alias. */
6217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6218 choke me
6219 #else
6220 $ac_func();
6221 #endif
6223 ; return 0; }
6225 if { (eval echo configure:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6226 rm -rf conftest*
6227 eval "ac_cv_func_$ac_func=yes"
6228 else
6229 echo "configure: failed program was:" >&5
6230 cat conftest.$ac_ext >&5
6231 rm -rf conftest*
6232 eval "ac_cv_func_$ac_func=no"
6234 rm -f conftest*
6237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6238 echo "$ac_t""yes" 1>&6
6239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6240 cat >> confdefs.h <<EOF
6241 #define $ac_tr_func 1
6244 else
6245 echo "$ac_t""no" 1>&6
6246 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6248 done
6250 for ac_func in __signbitf
6252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6253 echo "configure:6254: checking for $ac_func" >&5
6254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6255 echo $ac_n "(cached) $ac_c" 1>&6
6256 else
6257 cat > conftest.$ac_ext <<EOF
6258 #line 6259 "configure"
6259 #include "confdefs.h"
6260 /* System header to define __stub macros and hopefully few prototypes,
6261 which can conflict with char $ac_func(); below. */
6262 #include <assert.h>
6263 /* Override any gcc2 internal prototype to avoid an error. */
6264 /* We use char because int might match the return type of a gcc2
6265 builtin and then its argument prototype would still apply. */
6266 char $ac_func();
6268 int main() {
6270 /* The GNU C library defines this for functions which it implements
6271 to always fail with ENOSYS. Some functions are actually named
6272 something starting with __ and the normal name is an alias. */
6273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6274 choke me
6275 #else
6276 $ac_func();
6277 #endif
6279 ; return 0; }
6281 if { (eval echo configure:6282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6282 rm -rf conftest*
6283 eval "ac_cv_func_$ac_func=yes"
6284 else
6285 echo "configure: failed program was:" >&5
6286 cat conftest.$ac_ext >&5
6287 rm -rf conftest*
6288 eval "ac_cv_func_$ac_func=no"
6290 rm -f conftest*
6293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6294 echo "$ac_t""yes" 1>&6
6295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6296 cat >> confdefs.h <<EOF
6297 #define $ac_tr_func 1
6300 else
6301 echo "$ac_t""no" 1>&6
6302 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6304 done
6307 if test x$ac_cv_func_copysignl = x"yes"; then
6308 for ac_func in __signbitl
6310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6311 echo "configure:6312: checking for $ac_func" >&5
6312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6313 echo $ac_n "(cached) $ac_c" 1>&6
6314 else
6315 cat > conftest.$ac_ext <<EOF
6316 #line 6317 "configure"
6317 #include "confdefs.h"
6318 /* System header to define __stub macros and hopefully few prototypes,
6319 which can conflict with char $ac_func(); below. */
6320 #include <assert.h>
6321 /* Override any gcc2 internal prototype to avoid an error. */
6322 /* We use char because int might match the return type of a gcc2
6323 builtin and then its argument prototype would still apply. */
6324 char $ac_func();
6326 int main() {
6328 /* The GNU C library defines this for functions which it implements
6329 to always fail with ENOSYS. Some functions are actually named
6330 something starting with __ and the normal name is an alias. */
6331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6332 choke me
6333 #else
6334 $ac_func();
6335 #endif
6337 ; return 0; }
6339 if { (eval echo configure:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6340 rm -rf conftest*
6341 eval "ac_cv_func_$ac_func=yes"
6342 else
6343 echo "configure: failed program was:" >&5
6344 cat conftest.$ac_ext >&5
6345 rm -rf conftest*
6346 eval "ac_cv_func_$ac_func=no"
6348 rm -f conftest*
6351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6352 echo "$ac_t""yes" 1>&6
6353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6354 cat >> confdefs.h <<EOF
6355 #define $ac_tr_func 1
6358 else
6359 echo "$ac_t""no" 1>&6
6360 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6362 done
6370 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6371 echo "configure:6372: checking for mbstate_t" >&5
6372 cat > conftest.$ac_ext <<EOF
6373 #line 6374 "configure"
6374 #include "confdefs.h"
6375 #include <wchar.h>
6376 int main() {
6377 mbstate_t teststate;
6378 ; return 0; }
6380 if { (eval echo configure:6381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6381 rm -rf conftest*
6382 have_mbstate_t=yes
6383 else
6384 echo "configure: failed program was:" >&5
6385 cat conftest.$ac_ext >&5
6386 rm -rf conftest*
6387 have_mbstate_t=no
6389 rm -f conftest*
6390 echo "$ac_t""$have_mbstate_t" 1>&6
6391 if test x"$have_mbstate_t" = xyes; then
6392 cat >> confdefs.h <<\EOF
6393 #define HAVE_MBSTATE_T 1
6398 for ac_hdr in wchar.h
6400 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6401 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6402 echo "configure:6403: checking for $ac_hdr" >&5
6403 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6404 echo $ac_n "(cached) $ac_c" 1>&6
6405 else
6406 cat > conftest.$ac_ext <<EOF
6407 #line 6408 "configure"
6408 #include "confdefs.h"
6409 #include <$ac_hdr>
6411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6412 { (eval echo configure:6413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6414 if test -z "$ac_err"; then
6415 rm -rf conftest*
6416 eval "ac_cv_header_$ac_safe=yes"
6417 else
6418 echo "$ac_err" >&5
6419 echo "configure: failed program was:" >&5
6420 cat conftest.$ac_ext >&5
6421 rm -rf conftest*
6422 eval "ac_cv_header_$ac_safe=no"
6424 rm -f conftest*
6426 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6427 echo "$ac_t""yes" 1>&6
6428 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6429 cat >> confdefs.h <<EOF
6430 #define $ac_tr_hdr 1
6432 ac_has_wchar_h=yes
6433 else
6434 echo "$ac_t""no" 1>&6
6435 ac_has_wchar_h=no
6437 done
6439 for ac_hdr in wctype.h
6441 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6442 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6443 echo "configure:6444: checking for $ac_hdr" >&5
6444 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6445 echo $ac_n "(cached) $ac_c" 1>&6
6446 else
6447 cat > conftest.$ac_ext <<EOF
6448 #line 6449 "configure"
6449 #include "confdefs.h"
6450 #include <$ac_hdr>
6452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6453 { (eval echo configure:6454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6455 if test -z "$ac_err"; then
6456 rm -rf conftest*
6457 eval "ac_cv_header_$ac_safe=yes"
6458 else
6459 echo "$ac_err" >&5
6460 echo "configure: failed program was:" >&5
6461 cat conftest.$ac_ext >&5
6462 rm -rf conftest*
6463 eval "ac_cv_header_$ac_safe=no"
6465 rm -f conftest*
6467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6468 echo "$ac_t""yes" 1>&6
6469 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6470 cat >> confdefs.h <<EOF
6471 #define $ac_tr_hdr 1
6473 ac_has_wctype_h=yes
6474 else
6475 echo "$ac_t""no" 1>&6
6476 ac_has_wctype_h=no
6478 done
6481 if test x"$ac_has_wchar_h" = xyes &&
6482 test x"$ac_has_wctype_h" = xyes &&
6483 test x"$enable_c_mbchar" != xno; then
6485 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6486 echo "configure:6487: checking for WCHAR_MIN and WCHAR_MAX" >&5
6487 cat > conftest.$ac_ext <<EOF
6488 #line 6489 "configure"
6489 #include "confdefs.h"
6490 #include <wchar.h>
6491 int main() {
6492 int i = WCHAR_MIN; int j = WCHAR_MAX;
6493 ; return 0; }
6495 if { (eval echo configure:6496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6496 rm -rf conftest*
6497 has_wchar_minmax=yes
6498 else
6499 echo "configure: failed program was:" >&5
6500 cat conftest.$ac_ext >&5
6501 rm -rf conftest*
6502 has_wchar_minmax=no
6504 rm -f conftest*
6505 echo "$ac_t""$has_wchar_minmax" 1>&6
6507 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6508 echo "configure:6509: checking for WEOF" >&5
6509 cat > conftest.$ac_ext <<EOF
6510 #line 6511 "configure"
6511 #include "confdefs.h"
6513 #include <wchar.h>
6514 #include <stddef.h>
6515 int main() {
6516 wint_t i = WEOF;
6517 ; return 0; }
6519 if { (eval echo configure:6520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6520 rm -rf conftest*
6521 has_weof=yes
6522 else
6523 echo "configure: failed program was:" >&5
6524 cat conftest.$ac_ext >&5
6525 rm -rf conftest*
6526 has_weof=no
6528 rm -f conftest*
6529 echo "$ac_t""$has_weof" 1>&6
6531 ac_wfuncs=yes
6532 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6535 echo "configure:6536: checking for $ac_func" >&5
6536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6537 echo $ac_n "(cached) $ac_c" 1>&6
6538 else
6539 cat > conftest.$ac_ext <<EOF
6540 #line 6541 "configure"
6541 #include "confdefs.h"
6542 /* System header to define __stub macros and hopefully few prototypes,
6543 which can conflict with char $ac_func(); below. */
6544 #include <assert.h>
6545 /* Override any gcc2 internal prototype to avoid an error. */
6546 /* We use char because int might match the return type of a gcc2
6547 builtin and then its argument prototype would still apply. */
6548 char $ac_func();
6550 int main() {
6552 /* The GNU C library defines this for functions which it implements
6553 to always fail with ENOSYS. Some functions are actually named
6554 something starting with __ and the normal name is an alias. */
6555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6556 choke me
6557 #else
6558 $ac_func();
6559 #endif
6561 ; return 0; }
6563 if { (eval echo configure:6564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6564 rm -rf conftest*
6565 eval "ac_cv_func_$ac_func=yes"
6566 else
6567 echo "configure: failed program was:" >&5
6568 cat conftest.$ac_ext >&5
6569 rm -rf conftest*
6570 eval "ac_cv_func_$ac_func=no"
6572 rm -f conftest*
6575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6576 echo "$ac_t""yes" 1>&6
6577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6578 cat >> confdefs.h <<EOF
6579 #define $ac_tr_func 1
6582 else
6583 echo "$ac_t""no" 1>&6
6585 ac_wfuncs=no
6587 done
6590 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6591 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6592 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6593 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6594 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6595 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6598 echo "configure:6599: checking for $ac_func" >&5
6599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6600 echo $ac_n "(cached) $ac_c" 1>&6
6601 else
6602 cat > conftest.$ac_ext <<EOF
6603 #line 6604 "configure"
6604 #include "confdefs.h"
6605 /* System header to define __stub macros and hopefully few prototypes,
6606 which can conflict with char $ac_func(); below. */
6607 #include <assert.h>
6608 /* Override any gcc2 internal prototype to avoid an error. */
6609 /* We use char because int might match the return type of a gcc2
6610 builtin and then its argument prototype would still apply. */
6611 char $ac_func();
6613 int main() {
6615 /* The GNU C library defines this for functions which it implements
6616 to always fail with ENOSYS. Some functions are actually named
6617 something starting with __ and the normal name is an alias. */
6618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6619 choke me
6620 #else
6621 $ac_func();
6622 #endif
6624 ; return 0; }
6626 if { (eval echo configure:6627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6627 rm -rf conftest*
6628 eval "ac_cv_func_$ac_func=yes"
6629 else
6630 echo "configure: failed program was:" >&5
6631 cat conftest.$ac_ext >&5
6632 rm -rf conftest*
6633 eval "ac_cv_func_$ac_func=no"
6635 rm -f conftest*
6638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6639 echo "$ac_t""yes" 1>&6
6640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6641 cat >> confdefs.h <<EOF
6642 #define $ac_tr_func 1
6645 else
6646 echo "$ac_t""no" 1>&6
6648 ac_wfuncs=no
6650 done
6653 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6654 echo "configure:6655: checking for ISO C99 wchar_t support" >&5
6655 if test x"$has_weof" = xyes &&
6656 test x"$has_wchar_minmax" = xyes &&
6657 test x"$ac_wfuncs" = xyes; then
6658 ac_isoC99_wchar_t=yes
6659 else
6660 ac_isoC99_wchar_t=no
6662 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6664 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6665 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6666 echo "configure:6667: checking for iconv.h" >&5
6667 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6668 echo $ac_n "(cached) $ac_c" 1>&6
6669 else
6670 cat > conftest.$ac_ext <<EOF
6671 #line 6672 "configure"
6672 #include "confdefs.h"
6673 #include <iconv.h>
6675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6676 { (eval echo configure:6677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6678 if test -z "$ac_err"; then
6679 rm -rf conftest*
6680 eval "ac_cv_header_$ac_safe=yes"
6681 else
6682 echo "$ac_err" >&5
6683 echo "configure: failed program was:" >&5
6684 cat conftest.$ac_ext >&5
6685 rm -rf conftest*
6686 eval "ac_cv_header_$ac_safe=no"
6688 rm -f conftest*
6690 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6691 echo "$ac_t""yes" 1>&6
6692 ac_has_iconv_h=yes
6693 else
6694 echo "$ac_t""no" 1>&6
6695 ac_has_iconv_h=no
6698 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6699 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6700 echo "configure:6701: checking for langinfo.h" >&5
6701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6702 echo $ac_n "(cached) $ac_c" 1>&6
6703 else
6704 cat > conftest.$ac_ext <<EOF
6705 #line 6706 "configure"
6706 #include "confdefs.h"
6707 #include <langinfo.h>
6709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6710 { (eval echo configure:6711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6712 if test -z "$ac_err"; then
6713 rm -rf conftest*
6714 eval "ac_cv_header_$ac_safe=yes"
6715 else
6716 echo "$ac_err" >&5
6717 echo "configure: failed program was:" >&5
6718 cat conftest.$ac_ext >&5
6719 rm -rf conftest*
6720 eval "ac_cv_header_$ac_safe=no"
6722 rm -f conftest*
6724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6725 echo "$ac_t""yes" 1>&6
6726 ac_has_langinfo_h=yes
6727 else
6728 echo "$ac_t""no" 1>&6
6729 ac_has_langinfo_h=no
6733 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6734 echo "configure:6735: checking for iconv in -liconv" >&5
6735 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6736 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6737 echo $ac_n "(cached) $ac_c" 1>&6
6738 else
6739 ac_save_LIBS="$LIBS"
6740 LIBS="-liconv $LIBS"
6741 cat > conftest.$ac_ext <<EOF
6742 #line 6743 "configure"
6743 #include "confdefs.h"
6744 /* Override any gcc2 internal prototype to avoid an error. */
6745 /* We use char because int might match the return type of a gcc2
6746 builtin and then its argument prototype would still apply. */
6747 char iconv();
6749 int main() {
6750 iconv()
6751 ; return 0; }
6753 if { (eval echo configure:6754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6754 rm -rf conftest*
6755 eval "ac_cv_lib_$ac_lib_var=yes"
6756 else
6757 echo "configure: failed program was:" >&5
6758 cat conftest.$ac_ext >&5
6759 rm -rf conftest*
6760 eval "ac_cv_lib_$ac_lib_var=no"
6762 rm -f conftest*
6763 LIBS="$ac_save_LIBS"
6766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6767 echo "$ac_t""yes" 1>&6
6768 libiconv="-liconv"
6769 else
6770 echo "$ac_t""no" 1>&6
6773 ac_save_LIBS="$LIBS"
6774 LIBS="$LIBS $libiconv"
6776 for ac_func in iconv_open iconv_close iconv nl_langinfo
6778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6779 echo "configure:6780: checking for $ac_func" >&5
6780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6781 echo $ac_n "(cached) $ac_c" 1>&6
6782 else
6783 cat > conftest.$ac_ext <<EOF
6784 #line 6785 "configure"
6785 #include "confdefs.h"
6786 /* System header to define __stub macros and hopefully few prototypes,
6787 which can conflict with char $ac_func(); below. */
6788 #include <assert.h>
6789 /* Override any gcc2 internal prototype to avoid an error. */
6790 /* We use char because int might match the return type of a gcc2
6791 builtin and then its argument prototype would still apply. */
6792 char $ac_func();
6794 int main() {
6796 /* The GNU C library defines this for functions which it implements
6797 to always fail with ENOSYS. Some functions are actually named
6798 something starting with __ and the normal name is an alias. */
6799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6800 choke me
6801 #else
6802 $ac_func();
6803 #endif
6805 ; return 0; }
6807 if { (eval echo configure:6808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6808 rm -rf conftest*
6809 eval "ac_cv_func_$ac_func=yes"
6810 else
6811 echo "configure: failed program was:" >&5
6812 cat conftest.$ac_ext >&5
6813 rm -rf conftest*
6814 eval "ac_cv_func_$ac_func=no"
6816 rm -f conftest*
6819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6820 echo "$ac_t""yes" 1>&6
6821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6822 cat >> confdefs.h <<EOF
6823 #define $ac_tr_func 1
6826 ac_XPG2funcs=yes
6827 else
6828 echo "$ac_t""no" 1>&6
6829 ac_XPG2funcs=no
6831 done
6834 LIBS="$ac_save_LIBS"
6836 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6837 echo "configure:6838: checking for XPG2 wchar_t support" >&5
6838 if test x"$ac_has_iconv_h" = xyes &&
6839 test x"$ac_has_langinfo_h" = xyes &&
6840 test x"$ac_XPG2funcs" = xyes; then
6841 ac_XPG2_wchar_t=yes
6842 else
6843 ac_XPG2_wchar_t=no
6845 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6847 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6848 echo "configure:6849: checking for enabled wchar_t specializations" >&5
6849 if test x"$ac_isoC99_wchar_t" = xyes &&
6850 test x"$ac_XPG2_wchar_t" = xyes; then
6851 cat >> confdefs.h <<\EOF
6852 #define _GLIBCPP_USE_WCHAR_T 1
6855 echo "$ac_t"""yes"" 1>&6
6856 else
6857 echo "$ac_t"""no"" 1>&6
6859 else
6860 echo "configure: warning: wchar_t support disabled." 1>&2
6863 os_include_dir="config/os/bsd/netbsd"
6864 cat >> confdefs.h <<\EOF
6865 #define HAVE_COPYSIGN 1
6868 cat >> confdefs.h <<\EOF
6869 #define HAVE_COPYSIGNF 1
6872 cat >> confdefs.h <<\EOF
6873 #define HAVE_FINITEF 1
6876 cat >> confdefs.h <<\EOF
6877 #define HAVE_FREXPF 1
6880 cat >> confdefs.h <<\EOF
6881 #define HAVE_HYPOTF 1
6885 *-mingw32*)
6886 for ac_hdr in sys/types.h locale.h float.h
6888 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6889 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6890 echo "configure:6891: checking for $ac_hdr" >&5
6891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6892 echo $ac_n "(cached) $ac_c" 1>&6
6893 else
6894 cat > conftest.$ac_ext <<EOF
6895 #line 6896 "configure"
6896 #include "confdefs.h"
6897 #include <$ac_hdr>
6899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6900 { (eval echo configure:6901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6902 if test -z "$ac_err"; then
6903 rm -rf conftest*
6904 eval "ac_cv_header_$ac_safe=yes"
6905 else
6906 echo "$ac_err" >&5
6907 echo "configure: failed program was:" >&5
6908 cat conftest.$ac_ext >&5
6909 rm -rf conftest*
6910 eval "ac_cv_header_$ac_safe=no"
6912 rm -f conftest*
6914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6915 echo "$ac_t""yes" 1>&6
6916 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6917 cat >> confdefs.h <<EOF
6918 #define $ac_tr_hdr 1
6921 else
6922 echo "$ac_t""no" 1>&6
6924 done
6927 # If we're not using GNU ld, then there's no point in even trying these
6928 # tests. Check for that first. We should have already tested for gld
6929 # by now (in libtool), but require it now just to be safe...
6930 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6931 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6934 # The name set by libtool depends on the version of libtool. Shame on us
6935 # for depending on an impl detail, but c'est la vie. Older versions used
6936 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6937 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6938 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6939 # set (hence we're using an older libtool), then set it.
6940 if test x${with_gnu_ld+set} != xset; then
6941 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6942 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6943 with_gnu_ld=no
6944 else
6945 with_gnu_ld=$ac_cv_prog_gnu_ld
6949 # Start by getting the version number. I think the libtool test already
6950 # does some of this, but throws away the result.
6952 ldver=`$LD --version 2>/dev/null | head -1 | \
6953 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6955 glibcpp_gnu_ld_version=`echo $ldver | \
6956 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6958 # Set --gc-sections.
6959 if test "$with_gnu_ld" = "notbroken"; then
6960 # GNU ld it is! Joy and bunny rabbits!
6962 # All these tests are for C++; save the language and the compiler flags.
6963 # Need to do this so that g++ won't try to link in libstdc++
6964 ac_test_CFLAGS="${CFLAGS+set}"
6965 ac_save_CFLAGS="$CFLAGS"
6966 CFLAGS='-x c++ -Wl,--gc-sections'
6968 # Check for -Wl,--gc-sections
6969 # XXX This test is broken at the moment, as symbols required for
6970 # linking are now in libsupc++ (not built yet.....). In addition,
6971 # this test has cored on solaris in the past. In addition,
6972 # --gc-sections doesn't really work at the moment (keeps on discarding
6973 # used sections, first .eh_frame and now some of the glibc sections for
6974 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6975 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6976 echo "configure:6977: checking for ld that supports -Wl,--gc-sections" >&5
6977 if test "$cross_compiling" = yes; then
6978 ac_sectionLDflags=yes
6979 else
6980 cat > conftest.$ac_ext <<EOF
6981 #line 6982 "configure"
6982 #include "confdefs.h"
6984 int main(void)
6986 try { throw 1; }
6987 catch (...) { };
6988 return 0;
6992 if { (eval echo configure:6993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6993 then
6994 ac_sectionLDflags=yes
6995 else
6996 echo "configure: failed program was:" >&5
6997 cat conftest.$ac_ext >&5
6998 rm -fr conftest*
6999 ac_sectionLDflags=no
7001 rm -fr conftest*
7004 if test "$ac_test_CFLAGS" = set; then
7005 CFLAGS="$ac_save_CFLAGS"
7006 else
7007 # this is the suspicious part
7008 CFLAGS=''
7010 if test "$ac_sectionLDflags" = "yes"; then
7011 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7013 echo "$ac_t""$ac_sectionLDflags" 1>&6
7016 # Set linker optimization flags.
7017 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7018 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7025 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7026 echo "configure:7027: checking for main in -lm" >&5
7027 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7029 echo $ac_n "(cached) $ac_c" 1>&6
7030 else
7031 ac_save_LIBS="$LIBS"
7032 LIBS="-lm $LIBS"
7033 cat > conftest.$ac_ext <<EOF
7034 #line 7035 "configure"
7035 #include "confdefs.h"
7037 int main() {
7038 main()
7039 ; return 0; }
7041 if { (eval echo configure:7042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7042 rm -rf conftest*
7043 eval "ac_cv_lib_$ac_lib_var=yes"
7044 else
7045 echo "configure: failed program was:" >&5
7046 cat conftest.$ac_ext >&5
7047 rm -rf conftest*
7048 eval "ac_cv_lib_$ac_lib_var=no"
7050 rm -f conftest*
7051 LIBS="$ac_save_LIBS"
7054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7055 echo "$ac_t""yes" 1>&6
7056 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7057 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7058 cat >> confdefs.h <<EOF
7059 #define $ac_tr_lib 1
7062 LIBS="-lm $LIBS"
7064 else
7065 echo "$ac_t""no" 1>&6
7068 for ac_func in nan copysignf
7070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7071 echo "configure:7072: checking for $ac_func" >&5
7072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7073 echo $ac_n "(cached) $ac_c" 1>&6
7074 else
7075 cat > conftest.$ac_ext <<EOF
7076 #line 7077 "configure"
7077 #include "confdefs.h"
7078 /* System header to define __stub macros and hopefully few prototypes,
7079 which can conflict with char $ac_func(); below. */
7080 #include <assert.h>
7081 /* Override any gcc2 internal prototype to avoid an error. */
7082 /* We use char because int might match the return type of a gcc2
7083 builtin and then its argument prototype would still apply. */
7084 char $ac_func();
7086 int main() {
7088 /* The GNU C library defines this for functions which it implements
7089 to always fail with ENOSYS. Some functions are actually named
7090 something starting with __ and the normal name is an alias. */
7091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7092 choke me
7093 #else
7094 $ac_func();
7095 #endif
7097 ; return 0; }
7099 if { (eval echo configure:7100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7100 rm -rf conftest*
7101 eval "ac_cv_func_$ac_func=yes"
7102 else
7103 echo "configure: failed program was:" >&5
7104 cat conftest.$ac_ext >&5
7105 rm -rf conftest*
7106 eval "ac_cv_func_$ac_func=no"
7108 rm -f conftest*
7111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7112 echo "$ac_t""yes" 1>&6
7113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7114 cat >> confdefs.h <<EOF
7115 #define $ac_tr_func 1
7118 else
7119 echo "$ac_t""no" 1>&6
7120 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7122 done
7125 for ac_func in __signbit
7127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7128 echo "configure:7129: checking for $ac_func" >&5
7129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7130 echo $ac_n "(cached) $ac_c" 1>&6
7131 else
7132 cat > conftest.$ac_ext <<EOF
7133 #line 7134 "configure"
7134 #include "confdefs.h"
7135 /* System header to define __stub macros and hopefully few prototypes,
7136 which can conflict with char $ac_func(); below. */
7137 #include <assert.h>
7138 /* Override any gcc2 internal prototype to avoid an error. */
7139 /* We use char because int might match the return type of a gcc2
7140 builtin and then its argument prototype would still apply. */
7141 char $ac_func();
7143 int main() {
7145 /* The GNU C library defines this for functions which it implements
7146 to always fail with ENOSYS. Some functions are actually named
7147 something starting with __ and the normal name is an alias. */
7148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7149 choke me
7150 #else
7151 $ac_func();
7152 #endif
7154 ; return 0; }
7156 if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7157 rm -rf conftest*
7158 eval "ac_cv_func_$ac_func=yes"
7159 else
7160 echo "configure: failed program was:" >&5
7161 cat conftest.$ac_ext >&5
7162 rm -rf conftest*
7163 eval "ac_cv_func_$ac_func=no"
7165 rm -f conftest*
7168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7169 echo "$ac_t""yes" 1>&6
7170 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7171 cat >> confdefs.h <<EOF
7172 #define $ac_tr_func 1
7175 else
7176 echo "$ac_t""no" 1>&6
7177 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7179 done
7181 for ac_func in __signbitf
7183 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7184 echo "configure:7185: checking for $ac_func" >&5
7185 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7186 echo $ac_n "(cached) $ac_c" 1>&6
7187 else
7188 cat > conftest.$ac_ext <<EOF
7189 #line 7190 "configure"
7190 #include "confdefs.h"
7191 /* System header to define __stub macros and hopefully few prototypes,
7192 which can conflict with char $ac_func(); below. */
7193 #include <assert.h>
7194 /* Override any gcc2 internal prototype to avoid an error. */
7195 /* We use char because int might match the return type of a gcc2
7196 builtin and then its argument prototype would still apply. */
7197 char $ac_func();
7199 int main() {
7201 /* The GNU C library defines this for functions which it implements
7202 to always fail with ENOSYS. Some functions are actually named
7203 something starting with __ and the normal name is an alias. */
7204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7205 choke me
7206 #else
7207 $ac_func();
7208 #endif
7210 ; return 0; }
7212 if { (eval echo configure:7213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7213 rm -rf conftest*
7214 eval "ac_cv_func_$ac_func=yes"
7215 else
7216 echo "configure: failed program was:" >&5
7217 cat conftest.$ac_ext >&5
7218 rm -rf conftest*
7219 eval "ac_cv_func_$ac_func=no"
7221 rm -f conftest*
7224 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7225 echo "$ac_t""yes" 1>&6
7226 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7227 cat >> confdefs.h <<EOF
7228 #define $ac_tr_func 1
7231 else
7232 echo "$ac_t""no" 1>&6
7233 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7235 done
7238 if test x$ac_cv_func_copysignl = x"yes"; then
7239 for ac_func in __signbitl
7241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7242 echo "configure:7243: checking for $ac_func" >&5
7243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7244 echo $ac_n "(cached) $ac_c" 1>&6
7245 else
7246 cat > conftest.$ac_ext <<EOF
7247 #line 7248 "configure"
7248 #include "confdefs.h"
7249 /* System header to define __stub macros and hopefully few prototypes,
7250 which can conflict with char $ac_func(); below. */
7251 #include <assert.h>
7252 /* Override any gcc2 internal prototype to avoid an error. */
7253 /* We use char because int might match the return type of a gcc2
7254 builtin and then its argument prototype would still apply. */
7255 char $ac_func();
7257 int main() {
7259 /* The GNU C library defines this for functions which it implements
7260 to always fail with ENOSYS. Some functions are actually named
7261 something starting with __ and the normal name is an alias. */
7262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7263 choke me
7264 #else
7265 $ac_func();
7266 #endif
7268 ; return 0; }
7270 if { (eval echo configure:7271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7271 rm -rf conftest*
7272 eval "ac_cv_func_$ac_func=yes"
7273 else
7274 echo "configure: failed program was:" >&5
7275 cat conftest.$ac_ext >&5
7276 rm -rf conftest*
7277 eval "ac_cv_func_$ac_func=no"
7279 rm -f conftest*
7282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7283 echo "$ac_t""yes" 1>&6
7284 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7285 cat >> confdefs.h <<EOF
7286 #define $ac_tr_func 1
7289 else
7290 echo "$ac_t""no" 1>&6
7291 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7293 done
7301 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7302 echo "configure:7303: checking for mbstate_t" >&5
7303 cat > conftest.$ac_ext <<EOF
7304 #line 7305 "configure"
7305 #include "confdefs.h"
7306 #include <wchar.h>
7307 int main() {
7308 mbstate_t teststate;
7309 ; return 0; }
7311 if { (eval echo configure:7312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7312 rm -rf conftest*
7313 have_mbstate_t=yes
7314 else
7315 echo "configure: failed program was:" >&5
7316 cat conftest.$ac_ext >&5
7317 rm -rf conftest*
7318 have_mbstate_t=no
7320 rm -f conftest*
7321 echo "$ac_t""$have_mbstate_t" 1>&6
7322 if test x"$have_mbstate_t" = xyes; then
7323 cat >> confdefs.h <<\EOF
7324 #define HAVE_MBSTATE_T 1
7329 for ac_hdr in wchar.h
7331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7333 echo "configure:7334: checking for $ac_hdr" >&5
7334 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7335 echo $ac_n "(cached) $ac_c" 1>&6
7336 else
7337 cat > conftest.$ac_ext <<EOF
7338 #line 7339 "configure"
7339 #include "confdefs.h"
7340 #include <$ac_hdr>
7342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7343 { (eval echo configure:7344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7345 if test -z "$ac_err"; then
7346 rm -rf conftest*
7347 eval "ac_cv_header_$ac_safe=yes"
7348 else
7349 echo "$ac_err" >&5
7350 echo "configure: failed program was:" >&5
7351 cat conftest.$ac_ext >&5
7352 rm -rf conftest*
7353 eval "ac_cv_header_$ac_safe=no"
7355 rm -f conftest*
7357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7358 echo "$ac_t""yes" 1>&6
7359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7360 cat >> confdefs.h <<EOF
7361 #define $ac_tr_hdr 1
7363 ac_has_wchar_h=yes
7364 else
7365 echo "$ac_t""no" 1>&6
7366 ac_has_wchar_h=no
7368 done
7370 for ac_hdr in wctype.h
7372 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7373 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7374 echo "configure:7375: checking for $ac_hdr" >&5
7375 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7376 echo $ac_n "(cached) $ac_c" 1>&6
7377 else
7378 cat > conftest.$ac_ext <<EOF
7379 #line 7380 "configure"
7380 #include "confdefs.h"
7381 #include <$ac_hdr>
7383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7384 { (eval echo configure:7385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7386 if test -z "$ac_err"; then
7387 rm -rf conftest*
7388 eval "ac_cv_header_$ac_safe=yes"
7389 else
7390 echo "$ac_err" >&5
7391 echo "configure: failed program was:" >&5
7392 cat conftest.$ac_ext >&5
7393 rm -rf conftest*
7394 eval "ac_cv_header_$ac_safe=no"
7396 rm -f conftest*
7398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7399 echo "$ac_t""yes" 1>&6
7400 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7401 cat >> confdefs.h <<EOF
7402 #define $ac_tr_hdr 1
7404 ac_has_wctype_h=yes
7405 else
7406 echo "$ac_t""no" 1>&6
7407 ac_has_wctype_h=no
7409 done
7412 if test x"$ac_has_wchar_h" = xyes &&
7413 test x"$ac_has_wctype_h" = xyes &&
7414 test x"$enable_c_mbchar" != xno; then
7416 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7417 echo "configure:7418: checking for WCHAR_MIN and WCHAR_MAX" >&5
7418 cat > conftest.$ac_ext <<EOF
7419 #line 7420 "configure"
7420 #include "confdefs.h"
7421 #include <wchar.h>
7422 int main() {
7423 int i = WCHAR_MIN; int j = WCHAR_MAX;
7424 ; return 0; }
7426 if { (eval echo configure:7427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7427 rm -rf conftest*
7428 has_wchar_minmax=yes
7429 else
7430 echo "configure: failed program was:" >&5
7431 cat conftest.$ac_ext >&5
7432 rm -rf conftest*
7433 has_wchar_minmax=no
7435 rm -f conftest*
7436 echo "$ac_t""$has_wchar_minmax" 1>&6
7438 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7439 echo "configure:7440: checking for WEOF" >&5
7440 cat > conftest.$ac_ext <<EOF
7441 #line 7442 "configure"
7442 #include "confdefs.h"
7444 #include <wchar.h>
7445 #include <stddef.h>
7446 int main() {
7447 wint_t i = WEOF;
7448 ; return 0; }
7450 if { (eval echo configure:7451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7451 rm -rf conftest*
7452 has_weof=yes
7453 else
7454 echo "configure: failed program was:" >&5
7455 cat conftest.$ac_ext >&5
7456 rm -rf conftest*
7457 has_weof=no
7459 rm -f conftest*
7460 echo "$ac_t""$has_weof" 1>&6
7462 ac_wfuncs=yes
7463 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7466 echo "configure:7467: checking for $ac_func" >&5
7467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7468 echo $ac_n "(cached) $ac_c" 1>&6
7469 else
7470 cat > conftest.$ac_ext <<EOF
7471 #line 7472 "configure"
7472 #include "confdefs.h"
7473 /* System header to define __stub macros and hopefully few prototypes,
7474 which can conflict with char $ac_func(); below. */
7475 #include <assert.h>
7476 /* Override any gcc2 internal prototype to avoid an error. */
7477 /* We use char because int might match the return type of a gcc2
7478 builtin and then its argument prototype would still apply. */
7479 char $ac_func();
7481 int main() {
7483 /* The GNU C library defines this for functions which it implements
7484 to always fail with ENOSYS. Some functions are actually named
7485 something starting with __ and the normal name is an alias. */
7486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7487 choke me
7488 #else
7489 $ac_func();
7490 #endif
7492 ; return 0; }
7494 if { (eval echo configure:7495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7495 rm -rf conftest*
7496 eval "ac_cv_func_$ac_func=yes"
7497 else
7498 echo "configure: failed program was:" >&5
7499 cat conftest.$ac_ext >&5
7500 rm -rf conftest*
7501 eval "ac_cv_func_$ac_func=no"
7503 rm -f conftest*
7506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7507 echo "$ac_t""yes" 1>&6
7508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7509 cat >> confdefs.h <<EOF
7510 #define $ac_tr_func 1
7513 else
7514 echo "$ac_t""no" 1>&6
7516 ac_wfuncs=no
7518 done
7521 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7522 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7523 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7524 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7525 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7526 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7529 echo "configure:7530: checking for $ac_func" >&5
7530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7531 echo $ac_n "(cached) $ac_c" 1>&6
7532 else
7533 cat > conftest.$ac_ext <<EOF
7534 #line 7535 "configure"
7535 #include "confdefs.h"
7536 /* System header to define __stub macros and hopefully few prototypes,
7537 which can conflict with char $ac_func(); below. */
7538 #include <assert.h>
7539 /* Override any gcc2 internal prototype to avoid an error. */
7540 /* We use char because int might match the return type of a gcc2
7541 builtin and then its argument prototype would still apply. */
7542 char $ac_func();
7544 int main() {
7546 /* The GNU C library defines this for functions which it implements
7547 to always fail with ENOSYS. Some functions are actually named
7548 something starting with __ and the normal name is an alias. */
7549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7550 choke me
7551 #else
7552 $ac_func();
7553 #endif
7555 ; return 0; }
7557 if { (eval echo configure:7558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7558 rm -rf conftest*
7559 eval "ac_cv_func_$ac_func=yes"
7560 else
7561 echo "configure: failed program was:" >&5
7562 cat conftest.$ac_ext >&5
7563 rm -rf conftest*
7564 eval "ac_cv_func_$ac_func=no"
7566 rm -f conftest*
7569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7570 echo "$ac_t""yes" 1>&6
7571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7572 cat >> confdefs.h <<EOF
7573 #define $ac_tr_func 1
7576 else
7577 echo "$ac_t""no" 1>&6
7579 ac_wfuncs=no
7581 done
7584 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7585 echo "configure:7586: checking for ISO C99 wchar_t support" >&5
7586 if test x"$has_weof" = xyes &&
7587 test x"$has_wchar_minmax" = xyes &&
7588 test x"$ac_wfuncs" = xyes; then
7589 ac_isoC99_wchar_t=yes
7590 else
7591 ac_isoC99_wchar_t=no
7593 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7595 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7596 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7597 echo "configure:7598: checking for iconv.h" >&5
7598 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7599 echo $ac_n "(cached) $ac_c" 1>&6
7600 else
7601 cat > conftest.$ac_ext <<EOF
7602 #line 7603 "configure"
7603 #include "confdefs.h"
7604 #include <iconv.h>
7606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7607 { (eval echo configure:7608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7609 if test -z "$ac_err"; then
7610 rm -rf conftest*
7611 eval "ac_cv_header_$ac_safe=yes"
7612 else
7613 echo "$ac_err" >&5
7614 echo "configure: failed program was:" >&5
7615 cat conftest.$ac_ext >&5
7616 rm -rf conftest*
7617 eval "ac_cv_header_$ac_safe=no"
7619 rm -f conftest*
7621 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7622 echo "$ac_t""yes" 1>&6
7623 ac_has_iconv_h=yes
7624 else
7625 echo "$ac_t""no" 1>&6
7626 ac_has_iconv_h=no
7629 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7630 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7631 echo "configure:7632: checking for langinfo.h" >&5
7632 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7633 echo $ac_n "(cached) $ac_c" 1>&6
7634 else
7635 cat > conftest.$ac_ext <<EOF
7636 #line 7637 "configure"
7637 #include "confdefs.h"
7638 #include <langinfo.h>
7640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7641 { (eval echo configure:7642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7643 if test -z "$ac_err"; then
7644 rm -rf conftest*
7645 eval "ac_cv_header_$ac_safe=yes"
7646 else
7647 echo "$ac_err" >&5
7648 echo "configure: failed program was:" >&5
7649 cat conftest.$ac_ext >&5
7650 rm -rf conftest*
7651 eval "ac_cv_header_$ac_safe=no"
7653 rm -f conftest*
7655 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7656 echo "$ac_t""yes" 1>&6
7657 ac_has_langinfo_h=yes
7658 else
7659 echo "$ac_t""no" 1>&6
7660 ac_has_langinfo_h=no
7664 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7665 echo "configure:7666: checking for iconv in -liconv" >&5
7666 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7668 echo $ac_n "(cached) $ac_c" 1>&6
7669 else
7670 ac_save_LIBS="$LIBS"
7671 LIBS="-liconv $LIBS"
7672 cat > conftest.$ac_ext <<EOF
7673 #line 7674 "configure"
7674 #include "confdefs.h"
7675 /* Override any gcc2 internal prototype to avoid an error. */
7676 /* We use char because int might match the return type of a gcc2
7677 builtin and then its argument prototype would still apply. */
7678 char iconv();
7680 int main() {
7681 iconv()
7682 ; return 0; }
7684 if { (eval echo configure:7685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7685 rm -rf conftest*
7686 eval "ac_cv_lib_$ac_lib_var=yes"
7687 else
7688 echo "configure: failed program was:" >&5
7689 cat conftest.$ac_ext >&5
7690 rm -rf conftest*
7691 eval "ac_cv_lib_$ac_lib_var=no"
7693 rm -f conftest*
7694 LIBS="$ac_save_LIBS"
7697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7698 echo "$ac_t""yes" 1>&6
7699 libiconv="-liconv"
7700 else
7701 echo "$ac_t""no" 1>&6
7704 ac_save_LIBS="$LIBS"
7705 LIBS="$LIBS $libiconv"
7707 for ac_func in iconv_open iconv_close iconv nl_langinfo
7709 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7710 echo "configure:7711: checking for $ac_func" >&5
7711 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7712 echo $ac_n "(cached) $ac_c" 1>&6
7713 else
7714 cat > conftest.$ac_ext <<EOF
7715 #line 7716 "configure"
7716 #include "confdefs.h"
7717 /* System header to define __stub macros and hopefully few prototypes,
7718 which can conflict with char $ac_func(); below. */
7719 #include <assert.h>
7720 /* Override any gcc2 internal prototype to avoid an error. */
7721 /* We use char because int might match the return type of a gcc2
7722 builtin and then its argument prototype would still apply. */
7723 char $ac_func();
7725 int main() {
7727 /* The GNU C library defines this for functions which it implements
7728 to always fail with ENOSYS. Some functions are actually named
7729 something starting with __ and the normal name is an alias. */
7730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7731 choke me
7732 #else
7733 $ac_func();
7734 #endif
7736 ; return 0; }
7738 if { (eval echo configure:7739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7739 rm -rf conftest*
7740 eval "ac_cv_func_$ac_func=yes"
7741 else
7742 echo "configure: failed program was:" >&5
7743 cat conftest.$ac_ext >&5
7744 rm -rf conftest*
7745 eval "ac_cv_func_$ac_func=no"
7747 rm -f conftest*
7750 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7751 echo "$ac_t""yes" 1>&6
7752 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7753 cat >> confdefs.h <<EOF
7754 #define $ac_tr_func 1
7757 ac_XPG2funcs=yes
7758 else
7759 echo "$ac_t""no" 1>&6
7760 ac_XPG2funcs=no
7762 done
7765 LIBS="$ac_save_LIBS"
7767 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7768 echo "configure:7769: checking for XPG2 wchar_t support" >&5
7769 if test x"$ac_has_iconv_h" = xyes &&
7770 test x"$ac_has_langinfo_h" = xyes &&
7771 test x"$ac_XPG2funcs" = xyes; then
7772 ac_XPG2_wchar_t=yes
7773 else
7774 ac_XPG2_wchar_t=no
7776 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7778 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7779 echo "configure:7780: checking for enabled wchar_t specializations" >&5
7780 if test x"$ac_isoC99_wchar_t" = xyes &&
7781 test x"$ac_XPG2_wchar_t" = xyes; then
7782 cat >> confdefs.h <<\EOF
7783 #define _GLIBCPP_USE_WCHAR_T 1
7786 echo "$ac_t"""yes"" 1>&6
7787 else
7788 echo "$ac_t"""no"" 1>&6
7790 else
7791 echo "configure: warning: wchar_t support disabled." 1>&2
7794 os_include_dir="config/os/mingw32"
7796 *-qnx6.[12]*)
7797 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7800 # If we're not using GNU ld, then there's no point in even trying these
7801 # tests. Check for that first. We should have already tested for gld
7802 # by now (in libtool), but require it now just to be safe...
7803 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7804 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7807 # The name set by libtool depends on the version of libtool. Shame on us
7808 # for depending on an impl detail, but c'est la vie. Older versions used
7809 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7810 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7811 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7812 # set (hence we're using an older libtool), then set it.
7813 if test x${with_gnu_ld+set} != xset; then
7814 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7815 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7816 with_gnu_ld=no
7817 else
7818 with_gnu_ld=$ac_cv_prog_gnu_ld
7822 # Start by getting the version number. I think the libtool test already
7823 # does some of this, but throws away the result.
7825 ldver=`$LD --version 2>/dev/null | head -1 | \
7826 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7828 glibcpp_gnu_ld_version=`echo $ldver | \
7829 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7831 # Set --gc-sections.
7832 if test "$with_gnu_ld" = "notbroken"; then
7833 # GNU ld it is! Joy and bunny rabbits!
7835 # All these tests are for C++; save the language and the compiler flags.
7836 # Need to do this so that g++ won't try to link in libstdc++
7837 ac_test_CFLAGS="${CFLAGS+set}"
7838 ac_save_CFLAGS="$CFLAGS"
7839 CFLAGS='-x c++ -Wl,--gc-sections'
7841 # Check for -Wl,--gc-sections
7842 # XXX This test is broken at the moment, as symbols required for
7843 # linking are now in libsupc++ (not built yet.....). In addition,
7844 # this test has cored on solaris in the past. In addition,
7845 # --gc-sections doesn't really work at the moment (keeps on discarding
7846 # used sections, first .eh_frame and now some of the glibc sections for
7847 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7848 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7849 echo "configure:7850: checking for ld that supports -Wl,--gc-sections" >&5
7850 if test "$cross_compiling" = yes; then
7851 ac_sectionLDflags=yes
7852 else
7853 cat > conftest.$ac_ext <<EOF
7854 #line 7855 "configure"
7855 #include "confdefs.h"
7857 int main(void)
7859 try { throw 1; }
7860 catch (...) { };
7861 return 0;
7865 if { (eval echo configure:7866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7866 then
7867 ac_sectionLDflags=yes
7868 else
7869 echo "configure: failed program was:" >&5
7870 cat conftest.$ac_ext >&5
7871 rm -fr conftest*
7872 ac_sectionLDflags=no
7874 rm -fr conftest*
7877 if test "$ac_test_CFLAGS" = set; then
7878 CFLAGS="$ac_save_CFLAGS"
7879 else
7880 # this is the suspicious part
7881 CFLAGS=''
7883 if test "$ac_sectionLDflags" = "yes"; then
7884 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7886 echo "$ac_t""$ac_sectionLDflags" 1>&6
7889 # Set linker optimization flags.
7890 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7891 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7898 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7899 echo "configure:7900: checking for main in -lm" >&5
7900 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7902 echo $ac_n "(cached) $ac_c" 1>&6
7903 else
7904 ac_save_LIBS="$LIBS"
7905 LIBS="-lm $LIBS"
7906 cat > conftest.$ac_ext <<EOF
7907 #line 7908 "configure"
7908 #include "confdefs.h"
7910 int main() {
7911 main()
7912 ; return 0; }
7914 if { (eval echo configure:7915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7915 rm -rf conftest*
7916 eval "ac_cv_lib_$ac_lib_var=yes"
7917 else
7918 echo "configure: failed program was:" >&5
7919 cat conftest.$ac_ext >&5
7920 rm -rf conftest*
7921 eval "ac_cv_lib_$ac_lib_var=no"
7923 rm -f conftest*
7924 LIBS="$ac_save_LIBS"
7927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7928 echo "$ac_t""yes" 1>&6
7929 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7930 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7931 cat >> confdefs.h <<EOF
7932 #define $ac_tr_lib 1
7935 LIBS="-lm $LIBS"
7937 else
7938 echo "$ac_t""no" 1>&6
7941 for ac_func in nan copysignf
7943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7944 echo "configure:7945: checking for $ac_func" >&5
7945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7946 echo $ac_n "(cached) $ac_c" 1>&6
7947 else
7948 cat > conftest.$ac_ext <<EOF
7949 #line 7950 "configure"
7950 #include "confdefs.h"
7951 /* System header to define __stub macros and hopefully few prototypes,
7952 which can conflict with char $ac_func(); below. */
7953 #include <assert.h>
7954 /* Override any gcc2 internal prototype to avoid an error. */
7955 /* We use char because int might match the return type of a gcc2
7956 builtin and then its argument prototype would still apply. */
7957 char $ac_func();
7959 int main() {
7961 /* The GNU C library defines this for functions which it implements
7962 to always fail with ENOSYS. Some functions are actually named
7963 something starting with __ and the normal name is an alias. */
7964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7965 choke me
7966 #else
7967 $ac_func();
7968 #endif
7970 ; return 0; }
7972 if { (eval echo configure:7973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7973 rm -rf conftest*
7974 eval "ac_cv_func_$ac_func=yes"
7975 else
7976 echo "configure: failed program was:" >&5
7977 cat conftest.$ac_ext >&5
7978 rm -rf conftest*
7979 eval "ac_cv_func_$ac_func=no"
7981 rm -f conftest*
7984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7985 echo "$ac_t""yes" 1>&6
7986 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7987 cat >> confdefs.h <<EOF
7988 #define $ac_tr_func 1
7991 else
7992 echo "$ac_t""no" 1>&6
7993 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7995 done
7998 for ac_func in __signbit
8000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8001 echo "configure:8002: checking for $ac_func" >&5
8002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8003 echo $ac_n "(cached) $ac_c" 1>&6
8004 else
8005 cat > conftest.$ac_ext <<EOF
8006 #line 8007 "configure"
8007 #include "confdefs.h"
8008 /* System header to define __stub macros and hopefully few prototypes,
8009 which can conflict with char $ac_func(); below. */
8010 #include <assert.h>
8011 /* Override any gcc2 internal prototype to avoid an error. */
8012 /* We use char because int might match the return type of a gcc2
8013 builtin and then its argument prototype would still apply. */
8014 char $ac_func();
8016 int main() {
8018 /* The GNU C library defines this for functions which it implements
8019 to always fail with ENOSYS. Some functions are actually named
8020 something starting with __ and the normal name is an alias. */
8021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8022 choke me
8023 #else
8024 $ac_func();
8025 #endif
8027 ; return 0; }
8029 if { (eval echo configure:8030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8030 rm -rf conftest*
8031 eval "ac_cv_func_$ac_func=yes"
8032 else
8033 echo "configure: failed program was:" >&5
8034 cat conftest.$ac_ext >&5
8035 rm -rf conftest*
8036 eval "ac_cv_func_$ac_func=no"
8038 rm -f conftest*
8041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8042 echo "$ac_t""yes" 1>&6
8043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8044 cat >> confdefs.h <<EOF
8045 #define $ac_tr_func 1
8048 else
8049 echo "$ac_t""no" 1>&6
8050 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8052 done
8054 for ac_func in __signbitf
8056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8057 echo "configure:8058: checking for $ac_func" >&5
8058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8059 echo $ac_n "(cached) $ac_c" 1>&6
8060 else
8061 cat > conftest.$ac_ext <<EOF
8062 #line 8063 "configure"
8063 #include "confdefs.h"
8064 /* System header to define __stub macros and hopefully few prototypes,
8065 which can conflict with char $ac_func(); below. */
8066 #include <assert.h>
8067 /* Override any gcc2 internal prototype to avoid an error. */
8068 /* We use char because int might match the return type of a gcc2
8069 builtin and then its argument prototype would still apply. */
8070 char $ac_func();
8072 int main() {
8074 /* The GNU C library defines this for functions which it implements
8075 to always fail with ENOSYS. Some functions are actually named
8076 something starting with __ and the normal name is an alias. */
8077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8078 choke me
8079 #else
8080 $ac_func();
8081 #endif
8083 ; return 0; }
8085 if { (eval echo configure:8086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8086 rm -rf conftest*
8087 eval "ac_cv_func_$ac_func=yes"
8088 else
8089 echo "configure: failed program was:" >&5
8090 cat conftest.$ac_ext >&5
8091 rm -rf conftest*
8092 eval "ac_cv_func_$ac_func=no"
8094 rm -f conftest*
8097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8098 echo "$ac_t""yes" 1>&6
8099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8100 cat >> confdefs.h <<EOF
8101 #define $ac_tr_func 1
8104 else
8105 echo "$ac_t""no" 1>&6
8106 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8108 done
8111 if test x$ac_cv_func_copysignl = x"yes"; then
8112 for ac_func in __signbitl
8114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8115 echo "configure:8116: checking for $ac_func" >&5
8116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8117 echo $ac_n "(cached) $ac_c" 1>&6
8118 else
8119 cat > conftest.$ac_ext <<EOF
8120 #line 8121 "configure"
8121 #include "confdefs.h"
8122 /* System header to define __stub macros and hopefully few prototypes,
8123 which can conflict with char $ac_func(); below. */
8124 #include <assert.h>
8125 /* Override any gcc2 internal prototype to avoid an error. */
8126 /* We use char because int might match the return type of a gcc2
8127 builtin and then its argument prototype would still apply. */
8128 char $ac_func();
8130 int main() {
8132 /* The GNU C library defines this for functions which it implements
8133 to always fail with ENOSYS. Some functions are actually named
8134 something starting with __ and the normal name is an alias. */
8135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8136 choke me
8137 #else
8138 $ac_func();
8139 #endif
8141 ; return 0; }
8143 if { (eval echo configure:8144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8144 rm -rf conftest*
8145 eval "ac_cv_func_$ac_func=yes"
8146 else
8147 echo "configure: failed program was:" >&5
8148 cat conftest.$ac_ext >&5
8149 rm -rf conftest*
8150 eval "ac_cv_func_$ac_func=no"
8152 rm -f conftest*
8155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8156 echo "$ac_t""yes" 1>&6
8157 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8158 cat >> confdefs.h <<EOF
8159 #define $ac_tr_func 1
8162 else
8163 echo "$ac_t""no" 1>&6
8164 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8166 done
8174 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8175 echo "configure:8176: checking for mbstate_t" >&5
8176 cat > conftest.$ac_ext <<EOF
8177 #line 8178 "configure"
8178 #include "confdefs.h"
8179 #include <wchar.h>
8180 int main() {
8181 mbstate_t teststate;
8182 ; return 0; }
8184 if { (eval echo configure:8185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8185 rm -rf conftest*
8186 have_mbstate_t=yes
8187 else
8188 echo "configure: failed program was:" >&5
8189 cat conftest.$ac_ext >&5
8190 rm -rf conftest*
8191 have_mbstate_t=no
8193 rm -f conftest*
8194 echo "$ac_t""$have_mbstate_t" 1>&6
8195 if test x"$have_mbstate_t" = xyes; then
8196 cat >> confdefs.h <<\EOF
8197 #define HAVE_MBSTATE_T 1
8202 for ac_hdr in wchar.h
8204 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8205 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8206 echo "configure:8207: checking for $ac_hdr" >&5
8207 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8208 echo $ac_n "(cached) $ac_c" 1>&6
8209 else
8210 cat > conftest.$ac_ext <<EOF
8211 #line 8212 "configure"
8212 #include "confdefs.h"
8213 #include <$ac_hdr>
8215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8216 { (eval echo configure:8217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8218 if test -z "$ac_err"; then
8219 rm -rf conftest*
8220 eval "ac_cv_header_$ac_safe=yes"
8221 else
8222 echo "$ac_err" >&5
8223 echo "configure: failed program was:" >&5
8224 cat conftest.$ac_ext >&5
8225 rm -rf conftest*
8226 eval "ac_cv_header_$ac_safe=no"
8228 rm -f conftest*
8230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8231 echo "$ac_t""yes" 1>&6
8232 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8233 cat >> confdefs.h <<EOF
8234 #define $ac_tr_hdr 1
8236 ac_has_wchar_h=yes
8237 else
8238 echo "$ac_t""no" 1>&6
8239 ac_has_wchar_h=no
8241 done
8243 for ac_hdr in wctype.h
8245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8247 echo "configure:8248: checking for $ac_hdr" >&5
8248 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8249 echo $ac_n "(cached) $ac_c" 1>&6
8250 else
8251 cat > conftest.$ac_ext <<EOF
8252 #line 8253 "configure"
8253 #include "confdefs.h"
8254 #include <$ac_hdr>
8256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8257 { (eval echo configure:8258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8259 if test -z "$ac_err"; then
8260 rm -rf conftest*
8261 eval "ac_cv_header_$ac_safe=yes"
8262 else
8263 echo "$ac_err" >&5
8264 echo "configure: failed program was:" >&5
8265 cat conftest.$ac_ext >&5
8266 rm -rf conftest*
8267 eval "ac_cv_header_$ac_safe=no"
8269 rm -f conftest*
8271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8272 echo "$ac_t""yes" 1>&6
8273 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8274 cat >> confdefs.h <<EOF
8275 #define $ac_tr_hdr 1
8277 ac_has_wctype_h=yes
8278 else
8279 echo "$ac_t""no" 1>&6
8280 ac_has_wctype_h=no
8282 done
8285 if test x"$ac_has_wchar_h" = xyes &&
8286 test x"$ac_has_wctype_h" = xyes &&
8287 test x"$enable_c_mbchar" != xno; then
8289 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8290 echo "configure:8291: checking for WCHAR_MIN and WCHAR_MAX" >&5
8291 cat > conftest.$ac_ext <<EOF
8292 #line 8293 "configure"
8293 #include "confdefs.h"
8294 #include <wchar.h>
8295 int main() {
8296 int i = WCHAR_MIN; int j = WCHAR_MAX;
8297 ; return 0; }
8299 if { (eval echo configure:8300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8300 rm -rf conftest*
8301 has_wchar_minmax=yes
8302 else
8303 echo "configure: failed program was:" >&5
8304 cat conftest.$ac_ext >&5
8305 rm -rf conftest*
8306 has_wchar_minmax=no
8308 rm -f conftest*
8309 echo "$ac_t""$has_wchar_minmax" 1>&6
8311 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8312 echo "configure:8313: checking for WEOF" >&5
8313 cat > conftest.$ac_ext <<EOF
8314 #line 8315 "configure"
8315 #include "confdefs.h"
8317 #include <wchar.h>
8318 #include <stddef.h>
8319 int main() {
8320 wint_t i = WEOF;
8321 ; return 0; }
8323 if { (eval echo configure:8324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8324 rm -rf conftest*
8325 has_weof=yes
8326 else
8327 echo "configure: failed program was:" >&5
8328 cat conftest.$ac_ext >&5
8329 rm -rf conftest*
8330 has_weof=no
8332 rm -f conftest*
8333 echo "$ac_t""$has_weof" 1>&6
8335 ac_wfuncs=yes
8336 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8339 echo "configure:8340: checking for $ac_func" >&5
8340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8341 echo $ac_n "(cached) $ac_c" 1>&6
8342 else
8343 cat > conftest.$ac_ext <<EOF
8344 #line 8345 "configure"
8345 #include "confdefs.h"
8346 /* System header to define __stub macros and hopefully few prototypes,
8347 which can conflict with char $ac_func(); below. */
8348 #include <assert.h>
8349 /* Override any gcc2 internal prototype to avoid an error. */
8350 /* We use char because int might match the return type of a gcc2
8351 builtin and then its argument prototype would still apply. */
8352 char $ac_func();
8354 int main() {
8356 /* The GNU C library defines this for functions which it implements
8357 to always fail with ENOSYS. Some functions are actually named
8358 something starting with __ and the normal name is an alias. */
8359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8360 choke me
8361 #else
8362 $ac_func();
8363 #endif
8365 ; return 0; }
8367 if { (eval echo configure:8368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8368 rm -rf conftest*
8369 eval "ac_cv_func_$ac_func=yes"
8370 else
8371 echo "configure: failed program was:" >&5
8372 cat conftest.$ac_ext >&5
8373 rm -rf conftest*
8374 eval "ac_cv_func_$ac_func=no"
8376 rm -f conftest*
8379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8380 echo "$ac_t""yes" 1>&6
8381 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8382 cat >> confdefs.h <<EOF
8383 #define $ac_tr_func 1
8386 else
8387 echo "$ac_t""no" 1>&6
8389 ac_wfuncs=no
8391 done
8394 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8395 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8396 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8397 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8398 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8399 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8402 echo "configure:8403: checking for $ac_func" >&5
8403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8404 echo $ac_n "(cached) $ac_c" 1>&6
8405 else
8406 cat > conftest.$ac_ext <<EOF
8407 #line 8408 "configure"
8408 #include "confdefs.h"
8409 /* System header to define __stub macros and hopefully few prototypes,
8410 which can conflict with char $ac_func(); below. */
8411 #include <assert.h>
8412 /* Override any gcc2 internal prototype to avoid an error. */
8413 /* We use char because int might match the return type of a gcc2
8414 builtin and then its argument prototype would still apply. */
8415 char $ac_func();
8417 int main() {
8419 /* The GNU C library defines this for functions which it implements
8420 to always fail with ENOSYS. Some functions are actually named
8421 something starting with __ and the normal name is an alias. */
8422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8423 choke me
8424 #else
8425 $ac_func();
8426 #endif
8428 ; return 0; }
8430 if { (eval echo configure:8431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8431 rm -rf conftest*
8432 eval "ac_cv_func_$ac_func=yes"
8433 else
8434 echo "configure: failed program was:" >&5
8435 cat conftest.$ac_ext >&5
8436 rm -rf conftest*
8437 eval "ac_cv_func_$ac_func=no"
8439 rm -f conftest*
8442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8443 echo "$ac_t""yes" 1>&6
8444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8445 cat >> confdefs.h <<EOF
8446 #define $ac_tr_func 1
8449 else
8450 echo "$ac_t""no" 1>&6
8452 ac_wfuncs=no
8454 done
8457 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8458 echo "configure:8459: checking for ISO C99 wchar_t support" >&5
8459 if test x"$has_weof" = xyes &&
8460 test x"$has_wchar_minmax" = xyes &&
8461 test x"$ac_wfuncs" = xyes; then
8462 ac_isoC99_wchar_t=yes
8463 else
8464 ac_isoC99_wchar_t=no
8466 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8468 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8469 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8470 echo "configure:8471: checking for iconv.h" >&5
8471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8472 echo $ac_n "(cached) $ac_c" 1>&6
8473 else
8474 cat > conftest.$ac_ext <<EOF
8475 #line 8476 "configure"
8476 #include "confdefs.h"
8477 #include <iconv.h>
8479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8480 { (eval echo configure:8481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8482 if test -z "$ac_err"; then
8483 rm -rf conftest*
8484 eval "ac_cv_header_$ac_safe=yes"
8485 else
8486 echo "$ac_err" >&5
8487 echo "configure: failed program was:" >&5
8488 cat conftest.$ac_ext >&5
8489 rm -rf conftest*
8490 eval "ac_cv_header_$ac_safe=no"
8492 rm -f conftest*
8494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8495 echo "$ac_t""yes" 1>&6
8496 ac_has_iconv_h=yes
8497 else
8498 echo "$ac_t""no" 1>&6
8499 ac_has_iconv_h=no
8502 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8503 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8504 echo "configure:8505: checking for langinfo.h" >&5
8505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8506 echo $ac_n "(cached) $ac_c" 1>&6
8507 else
8508 cat > conftest.$ac_ext <<EOF
8509 #line 8510 "configure"
8510 #include "confdefs.h"
8511 #include <langinfo.h>
8513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8514 { (eval echo configure:8515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8516 if test -z "$ac_err"; then
8517 rm -rf conftest*
8518 eval "ac_cv_header_$ac_safe=yes"
8519 else
8520 echo "$ac_err" >&5
8521 echo "configure: failed program was:" >&5
8522 cat conftest.$ac_ext >&5
8523 rm -rf conftest*
8524 eval "ac_cv_header_$ac_safe=no"
8526 rm -f conftest*
8528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8529 echo "$ac_t""yes" 1>&6
8530 ac_has_langinfo_h=yes
8531 else
8532 echo "$ac_t""no" 1>&6
8533 ac_has_langinfo_h=no
8537 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8538 echo "configure:8539: checking for iconv in -liconv" >&5
8539 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8541 echo $ac_n "(cached) $ac_c" 1>&6
8542 else
8543 ac_save_LIBS="$LIBS"
8544 LIBS="-liconv $LIBS"
8545 cat > conftest.$ac_ext <<EOF
8546 #line 8547 "configure"
8547 #include "confdefs.h"
8548 /* Override any gcc2 internal prototype to avoid an error. */
8549 /* We use char because int might match the return type of a gcc2
8550 builtin and then its argument prototype would still apply. */
8551 char iconv();
8553 int main() {
8554 iconv()
8555 ; return 0; }
8557 if { (eval echo configure:8558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8558 rm -rf conftest*
8559 eval "ac_cv_lib_$ac_lib_var=yes"
8560 else
8561 echo "configure: failed program was:" >&5
8562 cat conftest.$ac_ext >&5
8563 rm -rf conftest*
8564 eval "ac_cv_lib_$ac_lib_var=no"
8566 rm -f conftest*
8567 LIBS="$ac_save_LIBS"
8570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8571 echo "$ac_t""yes" 1>&6
8572 libiconv="-liconv"
8573 else
8574 echo "$ac_t""no" 1>&6
8577 ac_save_LIBS="$LIBS"
8578 LIBS="$LIBS $libiconv"
8580 for ac_func in iconv_open iconv_close iconv nl_langinfo
8582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8583 echo "configure:8584: checking for $ac_func" >&5
8584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8585 echo $ac_n "(cached) $ac_c" 1>&6
8586 else
8587 cat > conftest.$ac_ext <<EOF
8588 #line 8589 "configure"
8589 #include "confdefs.h"
8590 /* System header to define __stub macros and hopefully few prototypes,
8591 which can conflict with char $ac_func(); below. */
8592 #include <assert.h>
8593 /* Override any gcc2 internal prototype to avoid an error. */
8594 /* We use char because int might match the return type of a gcc2
8595 builtin and then its argument prototype would still apply. */
8596 char $ac_func();
8598 int main() {
8600 /* The GNU C library defines this for functions which it implements
8601 to always fail with ENOSYS. Some functions are actually named
8602 something starting with __ and the normal name is an alias. */
8603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8604 choke me
8605 #else
8606 $ac_func();
8607 #endif
8609 ; return 0; }
8611 if { (eval echo configure:8612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8612 rm -rf conftest*
8613 eval "ac_cv_func_$ac_func=yes"
8614 else
8615 echo "configure: failed program was:" >&5
8616 cat conftest.$ac_ext >&5
8617 rm -rf conftest*
8618 eval "ac_cv_func_$ac_func=no"
8620 rm -f conftest*
8623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8624 echo "$ac_t""yes" 1>&6
8625 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8626 cat >> confdefs.h <<EOF
8627 #define $ac_tr_func 1
8630 ac_XPG2funcs=yes
8631 else
8632 echo "$ac_t""no" 1>&6
8633 ac_XPG2funcs=no
8635 done
8638 LIBS="$ac_save_LIBS"
8640 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8641 echo "configure:8642: checking for XPG2 wchar_t support" >&5
8642 if test x"$ac_has_iconv_h" = xyes &&
8643 test x"$ac_has_langinfo_h" = xyes &&
8644 test x"$ac_XPG2funcs" = xyes; then
8645 ac_XPG2_wchar_t=yes
8646 else
8647 ac_XPG2_wchar_t=no
8649 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8651 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8652 echo "configure:8653: checking for enabled wchar_t specializations" >&5
8653 if test x"$ac_isoC99_wchar_t" = xyes &&
8654 test x"$ac_XPG2_wchar_t" = xyes; then
8655 cat >> confdefs.h <<\EOF
8656 #define _GLIBCPP_USE_WCHAR_T 1
8659 echo "$ac_t"""yes"" 1>&6
8660 else
8661 echo "$ac_t"""no"" 1>&6
8663 else
8664 echo "configure: warning: wchar_t support disabled." 1>&2
8667 os_include_dir="config/os/qnx/qnx6.1"
8668 cat >> confdefs.h <<\EOF
8669 #define HAVE_COSF 1
8672 cat >> confdefs.h <<\EOF
8673 #define HAVE_COSL 1
8676 cat >> confdefs.h <<\EOF
8677 #define HAVE_COSHF 1
8680 cat >> confdefs.h <<\EOF
8681 #define HAVE_COSHL 1
8684 cat >> confdefs.h <<\EOF
8685 #define HAVE_LOGF 1
8688 cat >> confdefs.h <<\EOF
8689 #define HAVE_LOGL 1
8692 cat >> confdefs.h <<\EOF
8693 #define HAVE_LOG10F 1
8696 cat >> confdefs.h <<\EOF
8697 #define HAVE_LOG10L 1
8700 cat >> confdefs.h <<\EOF
8701 #define HAVE_SINF 1
8704 cat >> confdefs.h <<\EOF
8705 #define HAVE_SINL 1
8708 cat >> confdefs.h <<\EOF
8709 #define HAVE_SINHF 1
8712 cat >> confdefs.h <<\EOF
8713 #define HAVE_SINHL 1
8718 os_include_dir="config/os/newlib"
8719 cat >> confdefs.h <<\EOF
8720 #define HAVE_HYPOT 1
8724 esac
8726 case "$target_alias" in
8727 *-mingw32*)
8730 # GLIBCPP_CHECK_STDLIB_SUPPORT
8731 cat >> confdefs.h <<\EOF
8732 #define HAVE_STRTOF 1
8735 cat >> confdefs.h <<\EOF
8736 #define HAVE_STRTOLD 1
8739 # AC_FUNC_MMAP
8740 cat >> confdefs.h <<\EOF
8741 #define HAVE_MMAP 1
8745 cat >> confdefs.h <<\EOF
8746 #define HAVE_ACOSF 1
8749 cat >> confdefs.h <<\EOF
8750 #define HAVE_ASINF 1
8753 cat >> confdefs.h <<\EOF
8754 #define HAVE_ATAN2F 1
8757 cat >> confdefs.h <<\EOF
8758 #define HAVE_ATANF 1
8761 cat >> confdefs.h <<\EOF
8762 #define HAVE_CEILF 1
8765 cat >> confdefs.h <<\EOF
8766 #define HAVE_COPYSIGN 1
8769 cat >> confdefs.h <<\EOF
8770 #define HAVE_COPYSIGNF 1
8773 cat >> confdefs.h <<\EOF
8774 #define HAVE_COSF 1
8777 cat >> confdefs.h <<\EOF
8778 #define HAVE_COSHF 1
8781 cat >> confdefs.h <<\EOF
8782 #define HAVE_EXPF 1
8785 cat >> confdefs.h <<\EOF
8786 #define HAVE_FABSF 1
8789 cat >> confdefs.h <<\EOF
8790 #define HAVE_FINITE 1
8793 cat >> confdefs.h <<\EOF
8794 #define HAVE_FINITEF 1
8797 cat >> confdefs.h <<\EOF
8798 #define HAVE_FLOORF 1
8801 cat >> confdefs.h <<\EOF
8802 #define HAVE_FMODF 1
8805 cat >> confdefs.h <<\EOF
8806 #define HAVE_FREXPF 1
8809 cat >> confdefs.h <<\EOF
8810 #define HAVE_ISINF 1
8813 cat >> confdefs.h <<\EOF
8814 #define HAVE_ISINFF 1
8817 cat >> confdefs.h <<\EOF
8818 #define HAVE_ISNAN 1
8821 cat >> confdefs.h <<\EOF
8822 #define HAVE_ISNANF 1
8825 cat >> confdefs.h <<\EOF
8826 #define HAVE_LDEXPF 1
8829 cat >> confdefs.h <<\EOF
8830 #define HAVE_LOG10F 1
8833 cat >> confdefs.h <<\EOF
8834 #define HAVE_LOGF 1
8837 cat >> confdefs.h <<\EOF
8838 #define HAVE_MODFF 1
8841 cat >> confdefs.h <<\EOF
8842 #define HAVE_POWF 1
8845 cat >> confdefs.h <<\EOF
8846 #define HAVE_SINF 1
8849 cat >> confdefs.h <<\EOF
8850 #define HAVE_SINHF 1
8853 cat >> confdefs.h <<\EOF
8854 #define HAVE_SQRTF 1
8857 cat >> confdefs.h <<\EOF
8858 #define HAVE_TANF 1
8861 cat >> confdefs.h <<\EOF
8862 #define HAVE_TANHF 1
8866 esac
8868 # At some point, we should differentiate between architectures
8869 # like x86, which have long double versions, and alpha/powerpc/etc.,
8870 # which don't. For the time being, punt.
8871 if test x"long_double_math_on_this_cpu" = x"yes"; then
8872 cat >> confdefs.h <<\EOF
8873 #define HAVE_ACOSL 1
8876 cat >> confdefs.h <<\EOF
8877 #define HAVE_ASINL 1
8880 cat >> confdefs.h <<\EOF
8881 #define HAVE_ATAN2L 1
8884 cat >> confdefs.h <<\EOF
8885 #define HAVE_ATANL 1
8888 cat >> confdefs.h <<\EOF
8889 #define HAVE_CEILL 1
8892 cat >> confdefs.h <<\EOF
8893 #define HAVE_COPYSIGNL 1
8896 cat >> confdefs.h <<\EOF
8897 #define HAVE_COSL 1
8900 cat >> confdefs.h <<\EOF
8901 #define HAVE_COSHL 1
8904 cat >> confdefs.h <<\EOF
8905 #define HAVE_EXPL 1
8908 cat >> confdefs.h <<\EOF
8909 #define HAVE_FABSL 1
8912 cat >> confdefs.h <<\EOF
8913 #define HAVE_FINITEL 1
8916 cat >> confdefs.h <<\EOF
8917 #define HAVE_FLOORL 1
8920 cat >> confdefs.h <<\EOF
8921 #define HAVE_FMODL 1
8924 cat >> confdefs.h <<\EOF
8925 #define HAVE_FREXPL 1
8928 cat >> confdefs.h <<\EOF
8929 #define HAVE_ISINFL 1
8932 cat >> confdefs.h <<\EOF
8933 #define HAVE_ISNANL 1
8936 cat >> confdefs.h <<\EOF
8937 #define HAVE_LDEXPL 1
8940 cat >> confdefs.h <<\EOF
8941 #define HAVE_LOG10L 1
8944 cat >> confdefs.h <<\EOF
8945 #define HAVE_LOGL 1
8948 cat >> confdefs.h <<\EOF
8949 #define HAVE_MODFL 1
8952 cat >> confdefs.h <<\EOF
8953 #define HAVE_POWL 1
8956 cat >> confdefs.h <<\EOF
8957 #define HAVE_SINCOSL 1
8960 cat >> confdefs.h <<\EOF
8961 #define HAVE_SINL 1
8964 cat >> confdefs.h <<\EOF
8965 #define HAVE_SINHL 1
8968 cat >> confdefs.h <<\EOF
8969 #define HAVE_SQRTL 1
8972 cat >> confdefs.h <<\EOF
8973 #define HAVE_TANL 1
8976 cat >> confdefs.h <<\EOF
8977 #define HAVE_TANHL 1
8981 else
8983 # We are being configured natively. We can do more elaborate tests
8984 # that include AC_TRY_COMPILE now, as the linker is assumed to be
8985 # working.
8986 GLIBCPP_IS_CROSS_COMPILING=0
8987 CANADIAN=no
8989 # Check for available headers.
8990 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
8991 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
8993 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8994 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8995 echo "configure:8996: checking for $ac_hdr" >&5
8996 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8997 echo $ac_n "(cached) $ac_c" 1>&6
8998 else
8999 cat > conftest.$ac_ext <<EOF
9000 #line 9001 "configure"
9001 #include "confdefs.h"
9002 #include <$ac_hdr>
9004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9005 { (eval echo configure:9006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9007 if test -z "$ac_err"; then
9008 rm -rf conftest*
9009 eval "ac_cv_header_$ac_safe=yes"
9010 else
9011 echo "$ac_err" >&5
9012 echo "configure: failed program was:" >&5
9013 cat conftest.$ac_ext >&5
9014 rm -rf conftest*
9015 eval "ac_cv_header_$ac_safe=no"
9017 rm -f conftest*
9019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9020 echo "$ac_t""yes" 1>&6
9021 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9022 cat >> confdefs.h <<EOF
9023 #define $ac_tr_hdr 1
9026 else
9027 echo "$ac_t""no" 1>&6
9029 done
9033 # All these tests are for C++; save the language and the compiler flags.
9034 # The CXXFLAGS thing is suspicious, but based on similar bits previously
9035 # found in GLIBCPP_CONFIGURE.
9037 ac_ext=C
9038 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9039 ac_cpp='$CXXCPP $CPPFLAGS'
9040 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9041 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9042 cross_compiling=$ac_cv_prog_cxx_cross
9044 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9045 ac_save_CXXFLAGS="$CXXFLAGS"
9047 # Check for maintainer-mode bits.
9048 if test x"$USE_MAINTAINER_MODE" = xno; then
9049 WERROR=''
9050 else
9051 WERROR='-Werror'
9054 # Check for -ffunction-sections -fdata-sections
9055 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
9056 echo "configure:9057: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
9057 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
9058 cat > conftest.$ac_ext <<EOF
9059 #line 9060 "configure"
9060 #include "confdefs.h"
9062 int main() {
9063 int foo;
9065 ; return 0; }
9067 if { (eval echo configure:9068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9068 rm -rf conftest*
9069 ac_fdsections=yes
9070 else
9071 echo "configure: failed program was:" >&5
9072 cat conftest.$ac_ext >&5
9073 rm -rf conftest*
9074 ac_fdsections=no
9076 rm -f conftest*
9077 if test "$ac_test_CXXFLAGS" = set; then
9078 CXXFLAGS="$ac_save_CXXFLAGS"
9079 else
9080 # this is the suspicious part
9081 CXXFLAGS=''
9083 if test x"$ac_fdsections" = x"yes" &&
9084 test x"$enable_debug" = x"no"; then
9085 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9087 echo "$ac_t""$ac_fdsections" 1>&6
9089 ac_ext=c
9090 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9091 ac_cpp='$CPP $CPPFLAGS'
9092 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9093 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9094 cross_compiling=$ac_cv_prog_cc_cross
9100 # If we're not using GNU ld, then there's no point in even trying these
9101 # tests. Check for that first. We should have already tested for gld
9102 # by now (in libtool), but require it now just to be safe...
9103 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9104 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9107 # The name set by libtool depends on the version of libtool. Shame on us
9108 # for depending on an impl detail, but c'est la vie. Older versions used
9109 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9110 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9111 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9112 # set (hence we're using an older libtool), then set it.
9113 if test x${with_gnu_ld+set} != xset; then
9114 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9115 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9116 with_gnu_ld=no
9117 else
9118 with_gnu_ld=$ac_cv_prog_gnu_ld
9122 # Start by getting the version number. I think the libtool test already
9123 # does some of this, but throws away the result.
9125 ldver=`$LD --version 2>/dev/null | head -1 | \
9126 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9128 glibcpp_gnu_ld_version=`echo $ldver | \
9129 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9131 # Set --gc-sections.
9132 if test "$with_gnu_ld" = "notbroken"; then
9133 # GNU ld it is! Joy and bunny rabbits!
9135 # All these tests are for C++; save the language and the compiler flags.
9136 # Need to do this so that g++ won't try to link in libstdc++
9137 ac_test_CFLAGS="${CFLAGS+set}"
9138 ac_save_CFLAGS="$CFLAGS"
9139 CFLAGS='-x c++ -Wl,--gc-sections'
9141 # Check for -Wl,--gc-sections
9142 # XXX This test is broken at the moment, as symbols required for
9143 # linking are now in libsupc++ (not built yet.....). In addition,
9144 # this test has cored on solaris in the past. In addition,
9145 # --gc-sections doesn't really work at the moment (keeps on discarding
9146 # used sections, first .eh_frame and now some of the glibc sections for
9147 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9148 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9149 echo "configure:9150: checking for ld that supports -Wl,--gc-sections" >&5
9150 if test "$cross_compiling" = yes; then
9151 ac_sectionLDflags=yes
9152 else
9153 cat > conftest.$ac_ext <<EOF
9154 #line 9155 "configure"
9155 #include "confdefs.h"
9157 int main(void)
9159 try { throw 1; }
9160 catch (...) { };
9161 return 0;
9165 if { (eval echo configure:9166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9166 then
9167 ac_sectionLDflags=yes
9168 else
9169 echo "configure: failed program was:" >&5
9170 cat conftest.$ac_ext >&5
9171 rm -fr conftest*
9172 ac_sectionLDflags=no
9174 rm -fr conftest*
9177 if test "$ac_test_CFLAGS" = set; then
9178 CFLAGS="$ac_save_CFLAGS"
9179 else
9180 # this is the suspicious part
9181 CFLAGS=''
9183 if test "$ac_sectionLDflags" = "yes"; then
9184 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9186 echo "$ac_t""$ac_sectionLDflags" 1>&6
9189 # Set linker optimization flags.
9190 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9191 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9199 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
9200 echo "configure:9201: checking for __builtin_abs declaration" >&5
9201 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
9202 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
9203 echo $ac_n "(cached) $ac_c" 1>&6
9204 else
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 cat > conftest.$ac_ext <<EOF
9215 #line 9216 "configure"
9216 #include "confdefs.h"
9217 #include <math.h>
9218 int main() {
9219 __builtin_abs(0);
9220 ; return 0; }
9222 if { (eval echo configure:9223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9223 rm -rf conftest*
9224 glibcpp_cv_func___builtin_abs_use=yes
9225 else
9226 echo "configure: failed program was:" >&5
9227 cat conftest.$ac_ext >&5
9228 rm -rf conftest*
9229 glibcpp_cv_func___builtin_abs_use=no
9231 rm -f conftest*
9232 ac_ext=c
9233 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9234 ac_cpp='$CPP $CPPFLAGS'
9235 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9236 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9237 cross_compiling=$ac_cv_prog_cc_cross
9243 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
9244 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
9245 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
9246 echo "configure:9247: checking for __builtin_abs linkage" >&5
9247 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
9248 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
9249 echo $ac_n "(cached) $ac_c" 1>&6
9250 else
9252 cat > conftest.$ac_ext <<EOF
9253 #line 9254 "configure"
9254 #include "confdefs.h"
9255 #include <math.h>
9256 int main() {
9257 __builtin_abs(0);
9258 ; return 0; }
9260 if { (eval echo configure:9261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9261 rm -rf conftest*
9262 glibcpp_cv_func___builtin_abs_link=yes
9263 else
9264 echo "configure: failed program was:" >&5
9265 cat conftest.$ac_ext >&5
9266 rm -rf conftest*
9267 glibcpp_cv_func___builtin_abs_link=no
9269 rm -f conftest*
9274 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
9275 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
9276 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9277 cat >> confdefs.h <<EOF
9278 #define ${ac_tr_func} 1
9285 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
9286 echo "configure:9287: checking for __builtin_fabsf declaration" >&5
9287 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
9288 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
9289 echo $ac_n "(cached) $ac_c" 1>&6
9290 else
9293 ac_ext=C
9294 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9295 ac_cpp='$CXXCPP $CPPFLAGS'
9296 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9297 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9298 cross_compiling=$ac_cv_prog_cxx_cross
9300 cat > conftest.$ac_ext <<EOF
9301 #line 9302 "configure"
9302 #include "confdefs.h"
9303 #include <math.h>
9304 int main() {
9305 __builtin_fabsf(0);
9306 ; return 0; }
9308 if { (eval echo configure:9309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9309 rm -rf conftest*
9310 glibcpp_cv_func___builtin_fabsf_use=yes
9311 else
9312 echo "configure: failed program was:" >&5
9313 cat conftest.$ac_ext >&5
9314 rm -rf conftest*
9315 glibcpp_cv_func___builtin_fabsf_use=no
9317 rm -f conftest*
9318 ac_ext=c
9319 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9320 ac_cpp='$CPP $CPPFLAGS'
9321 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9322 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9323 cross_compiling=$ac_cv_prog_cc_cross
9329 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
9330 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
9331 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
9332 echo "configure:9333: checking for __builtin_fabsf linkage" >&5
9333 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
9334 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
9335 echo $ac_n "(cached) $ac_c" 1>&6
9336 else
9338 cat > conftest.$ac_ext <<EOF
9339 #line 9340 "configure"
9340 #include "confdefs.h"
9341 #include <math.h>
9342 int main() {
9343 __builtin_fabsf(0);
9344 ; return 0; }
9346 if { (eval echo configure:9347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9347 rm -rf conftest*
9348 glibcpp_cv_func___builtin_fabsf_link=yes
9349 else
9350 echo "configure: failed program was:" >&5
9351 cat conftest.$ac_ext >&5
9352 rm -rf conftest*
9353 glibcpp_cv_func___builtin_fabsf_link=no
9355 rm -f conftest*
9360 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
9361 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
9362 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9363 cat >> confdefs.h <<EOF
9364 #define ${ac_tr_func} 1
9371 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
9372 echo "configure:9373: checking for __builtin_fabs declaration" >&5
9373 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
9374 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
9375 echo $ac_n "(cached) $ac_c" 1>&6
9376 else
9379 ac_ext=C
9380 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9381 ac_cpp='$CXXCPP $CPPFLAGS'
9382 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9383 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9384 cross_compiling=$ac_cv_prog_cxx_cross
9386 cat > conftest.$ac_ext <<EOF
9387 #line 9388 "configure"
9388 #include "confdefs.h"
9389 #include <math.h>
9390 int main() {
9391 __builtin_fabs(0);
9392 ; return 0; }
9394 if { (eval echo configure:9395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9395 rm -rf conftest*
9396 glibcpp_cv_func___builtin_fabs_use=yes
9397 else
9398 echo "configure: failed program was:" >&5
9399 cat conftest.$ac_ext >&5
9400 rm -rf conftest*
9401 glibcpp_cv_func___builtin_fabs_use=no
9403 rm -f conftest*
9404 ac_ext=c
9405 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9406 ac_cpp='$CPP $CPPFLAGS'
9407 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9408 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9409 cross_compiling=$ac_cv_prog_cc_cross
9415 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
9416 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
9417 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
9418 echo "configure:9419: checking for __builtin_fabs linkage" >&5
9419 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
9420 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
9421 echo $ac_n "(cached) $ac_c" 1>&6
9422 else
9424 cat > conftest.$ac_ext <<EOF
9425 #line 9426 "configure"
9426 #include "confdefs.h"
9427 #include <math.h>
9428 int main() {
9429 __builtin_fabs(0);
9430 ; return 0; }
9432 if { (eval echo configure:9433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9433 rm -rf conftest*
9434 glibcpp_cv_func___builtin_fabs_link=yes
9435 else
9436 echo "configure: failed program was:" >&5
9437 cat conftest.$ac_ext >&5
9438 rm -rf conftest*
9439 glibcpp_cv_func___builtin_fabs_link=no
9441 rm -f conftest*
9446 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
9447 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
9448 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9449 cat >> confdefs.h <<EOF
9450 #define ${ac_tr_func} 1
9457 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
9458 echo "configure:9459: checking for __builtin_fabsl declaration" >&5
9459 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
9460 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
9461 echo $ac_n "(cached) $ac_c" 1>&6
9462 else
9465 ac_ext=C
9466 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9467 ac_cpp='$CXXCPP $CPPFLAGS'
9468 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9469 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9470 cross_compiling=$ac_cv_prog_cxx_cross
9472 cat > conftest.$ac_ext <<EOF
9473 #line 9474 "configure"
9474 #include "confdefs.h"
9475 #include <math.h>
9476 int main() {
9477 __builtin_fabsl(0);
9478 ; return 0; }
9480 if { (eval echo configure:9481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9481 rm -rf conftest*
9482 glibcpp_cv_func___builtin_fabsl_use=yes
9483 else
9484 echo "configure: failed program was:" >&5
9485 cat conftest.$ac_ext >&5
9486 rm -rf conftest*
9487 glibcpp_cv_func___builtin_fabsl_use=no
9489 rm -f conftest*
9490 ac_ext=c
9491 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9492 ac_cpp='$CPP $CPPFLAGS'
9493 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9494 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9495 cross_compiling=$ac_cv_prog_cc_cross
9501 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
9502 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
9503 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
9504 echo "configure:9505: checking for __builtin_fabsl linkage" >&5
9505 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
9506 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
9507 echo $ac_n "(cached) $ac_c" 1>&6
9508 else
9510 cat > conftest.$ac_ext <<EOF
9511 #line 9512 "configure"
9512 #include "confdefs.h"
9513 #include <math.h>
9514 int main() {
9515 __builtin_fabsl(0);
9516 ; return 0; }
9518 if { (eval echo configure:9519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9519 rm -rf conftest*
9520 glibcpp_cv_func___builtin_fabsl_link=yes
9521 else
9522 echo "configure: failed program was:" >&5
9523 cat conftest.$ac_ext >&5
9524 rm -rf conftest*
9525 glibcpp_cv_func___builtin_fabsl_link=no
9527 rm -f conftest*
9532 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
9533 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
9534 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9535 cat >> confdefs.h <<EOF
9536 #define ${ac_tr_func} 1
9543 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
9544 echo "configure:9545: checking for __builtin_labs declaration" >&5
9545 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
9546 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
9547 echo $ac_n "(cached) $ac_c" 1>&6
9548 else
9551 ac_ext=C
9552 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9553 ac_cpp='$CXXCPP $CPPFLAGS'
9554 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9555 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9556 cross_compiling=$ac_cv_prog_cxx_cross
9558 cat > conftest.$ac_ext <<EOF
9559 #line 9560 "configure"
9560 #include "confdefs.h"
9561 #include <math.h>
9562 int main() {
9563 __builtin_labs(0);
9564 ; return 0; }
9566 if { (eval echo configure:9567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9567 rm -rf conftest*
9568 glibcpp_cv_func___builtin_labs_use=yes
9569 else
9570 echo "configure: failed program was:" >&5
9571 cat conftest.$ac_ext >&5
9572 rm -rf conftest*
9573 glibcpp_cv_func___builtin_labs_use=no
9575 rm -f conftest*
9576 ac_ext=c
9577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9578 ac_cpp='$CPP $CPPFLAGS'
9579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9581 cross_compiling=$ac_cv_prog_cc_cross
9587 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
9588 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
9589 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
9590 echo "configure:9591: checking for __builtin_labs linkage" >&5
9591 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
9592 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
9593 echo $ac_n "(cached) $ac_c" 1>&6
9594 else
9596 cat > conftest.$ac_ext <<EOF
9597 #line 9598 "configure"
9598 #include "confdefs.h"
9599 #include <math.h>
9600 int main() {
9601 __builtin_labs(0);
9602 ; return 0; }
9604 if { (eval echo configure:9605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9605 rm -rf conftest*
9606 glibcpp_cv_func___builtin_labs_link=yes
9607 else
9608 echo "configure: failed program was:" >&5
9609 cat conftest.$ac_ext >&5
9610 rm -rf conftest*
9611 glibcpp_cv_func___builtin_labs_link=no
9613 rm -f conftest*
9618 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
9619 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
9620 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9621 cat >> confdefs.h <<EOF
9622 #define ${ac_tr_func} 1
9630 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
9631 echo "configure:9632: checking for __builtin_sqrtf declaration" >&5
9632 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
9633 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
9634 echo $ac_n "(cached) $ac_c" 1>&6
9635 else
9638 ac_ext=C
9639 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9640 ac_cpp='$CXXCPP $CPPFLAGS'
9641 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9642 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9643 cross_compiling=$ac_cv_prog_cxx_cross
9645 cat > conftest.$ac_ext <<EOF
9646 #line 9647 "configure"
9647 #include "confdefs.h"
9648 #include <math.h>
9649 int main() {
9650 __builtin_sqrtf(0);
9651 ; return 0; }
9653 if { (eval echo configure:9654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9654 rm -rf conftest*
9655 glibcpp_cv_func___builtin_sqrtf_use=yes
9656 else
9657 echo "configure: failed program was:" >&5
9658 cat conftest.$ac_ext >&5
9659 rm -rf conftest*
9660 glibcpp_cv_func___builtin_sqrtf_use=no
9662 rm -f conftest*
9663 ac_ext=c
9664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9665 ac_cpp='$CPP $CPPFLAGS'
9666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9668 cross_compiling=$ac_cv_prog_cc_cross
9674 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
9675 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
9676 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
9677 echo "configure:9678: checking for __builtin_sqrtf linkage" >&5
9678 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
9679 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
9680 echo $ac_n "(cached) $ac_c" 1>&6
9681 else
9683 cat > conftest.$ac_ext <<EOF
9684 #line 9685 "configure"
9685 #include "confdefs.h"
9686 #include <math.h>
9687 int main() {
9688 __builtin_sqrtf(0);
9689 ; return 0; }
9691 if { (eval echo configure:9692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9692 rm -rf conftest*
9693 glibcpp_cv_func___builtin_sqrtf_link=yes
9694 else
9695 echo "configure: failed program was:" >&5
9696 cat conftest.$ac_ext >&5
9697 rm -rf conftest*
9698 glibcpp_cv_func___builtin_sqrtf_link=no
9700 rm -f conftest*
9705 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
9706 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
9707 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9708 cat >> confdefs.h <<EOF
9709 #define ${ac_tr_func} 1
9716 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
9717 echo "configure:9718: checking for __builtin_sqrt declaration" >&5
9718 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
9719 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
9720 echo $ac_n "(cached) $ac_c" 1>&6
9721 else
9724 ac_ext=C
9725 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9726 ac_cpp='$CXXCPP $CPPFLAGS'
9727 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9728 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9729 cross_compiling=$ac_cv_prog_cxx_cross
9731 cat > conftest.$ac_ext <<EOF
9732 #line 9733 "configure"
9733 #include "confdefs.h"
9734 #include <math.h>
9735 int main() {
9736 __builtin_sqrt(0);
9737 ; return 0; }
9739 if { (eval echo configure:9740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9740 rm -rf conftest*
9741 glibcpp_cv_func___builtin_sqrt_use=yes
9742 else
9743 echo "configure: failed program was:" >&5
9744 cat conftest.$ac_ext >&5
9745 rm -rf conftest*
9746 glibcpp_cv_func___builtin_sqrt_use=no
9748 rm -f conftest*
9749 ac_ext=c
9750 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9751 ac_cpp='$CPP $CPPFLAGS'
9752 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9753 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9754 cross_compiling=$ac_cv_prog_cc_cross
9760 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
9761 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
9762 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
9763 echo "configure:9764: checking for __builtin_sqrt linkage" >&5
9764 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
9765 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
9766 echo $ac_n "(cached) $ac_c" 1>&6
9767 else
9769 cat > conftest.$ac_ext <<EOF
9770 #line 9771 "configure"
9771 #include "confdefs.h"
9772 #include <math.h>
9773 int main() {
9774 __builtin_sqrt(0);
9775 ; return 0; }
9777 if { (eval echo configure:9778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9778 rm -rf conftest*
9779 glibcpp_cv_func___builtin_sqrt_link=yes
9780 else
9781 echo "configure: failed program was:" >&5
9782 cat conftest.$ac_ext >&5
9783 rm -rf conftest*
9784 glibcpp_cv_func___builtin_sqrt_link=no
9786 rm -f conftest*
9791 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
9792 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
9793 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9794 cat >> confdefs.h <<EOF
9795 #define ${ac_tr_func} 1
9802 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
9803 echo "configure:9804: checking for __builtin_sqrtl declaration" >&5
9804 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
9805 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
9806 echo $ac_n "(cached) $ac_c" 1>&6
9807 else
9810 ac_ext=C
9811 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9812 ac_cpp='$CXXCPP $CPPFLAGS'
9813 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9814 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9815 cross_compiling=$ac_cv_prog_cxx_cross
9817 cat > conftest.$ac_ext <<EOF
9818 #line 9819 "configure"
9819 #include "confdefs.h"
9820 #include <math.h>
9821 int main() {
9822 __builtin_sqrtl(0);
9823 ; return 0; }
9825 if { (eval echo configure:9826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9826 rm -rf conftest*
9827 glibcpp_cv_func___builtin_sqrtl_use=yes
9828 else
9829 echo "configure: failed program was:" >&5
9830 cat conftest.$ac_ext >&5
9831 rm -rf conftest*
9832 glibcpp_cv_func___builtin_sqrtl_use=no
9834 rm -f conftest*
9835 ac_ext=c
9836 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9837 ac_cpp='$CPP $CPPFLAGS'
9838 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9839 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9840 cross_compiling=$ac_cv_prog_cc_cross
9846 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
9847 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
9848 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
9849 echo "configure:9850: checking for __builtin_sqrtl linkage" >&5
9850 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
9851 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
9852 echo $ac_n "(cached) $ac_c" 1>&6
9853 else
9855 cat > conftest.$ac_ext <<EOF
9856 #line 9857 "configure"
9857 #include "confdefs.h"
9858 #include <math.h>
9859 int main() {
9860 __builtin_sqrtl(0);
9861 ; return 0; }
9863 if { (eval echo configure:9864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9864 rm -rf conftest*
9865 glibcpp_cv_func___builtin_sqrtl_link=yes
9866 else
9867 echo "configure: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9869 rm -rf conftest*
9870 glibcpp_cv_func___builtin_sqrtl_link=no
9872 rm -f conftest*
9877 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
9878 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
9879 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9880 cat >> confdefs.h <<EOF
9881 #define ${ac_tr_func} 1
9889 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
9890 echo "configure:9891: checking for __builtin_sinf declaration" >&5
9891 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
9892 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
9893 echo $ac_n "(cached) $ac_c" 1>&6
9894 else
9897 ac_ext=C
9898 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9899 ac_cpp='$CXXCPP $CPPFLAGS'
9900 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9901 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9902 cross_compiling=$ac_cv_prog_cxx_cross
9904 cat > conftest.$ac_ext <<EOF
9905 #line 9906 "configure"
9906 #include "confdefs.h"
9907 #include <math.h>
9908 int main() {
9909 __builtin_sinf(0);
9910 ; return 0; }
9912 if { (eval echo configure:9913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9913 rm -rf conftest*
9914 glibcpp_cv_func___builtin_sinf_use=yes
9915 else
9916 echo "configure: failed program was:" >&5
9917 cat conftest.$ac_ext >&5
9918 rm -rf conftest*
9919 glibcpp_cv_func___builtin_sinf_use=no
9921 rm -f conftest*
9922 ac_ext=c
9923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9924 ac_cpp='$CPP $CPPFLAGS'
9925 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9926 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9927 cross_compiling=$ac_cv_prog_cc_cross
9933 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
9934 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
9935 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
9936 echo "configure:9937: checking for __builtin_sinf linkage" >&5
9937 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
9938 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
9939 echo $ac_n "(cached) $ac_c" 1>&6
9940 else
9942 cat > conftest.$ac_ext <<EOF
9943 #line 9944 "configure"
9944 #include "confdefs.h"
9945 #include <math.h>
9946 int main() {
9947 __builtin_sinf(0);
9948 ; return 0; }
9950 if { (eval echo configure:9951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9951 rm -rf conftest*
9952 glibcpp_cv_func___builtin_sinf_link=yes
9953 else
9954 echo "configure: failed program was:" >&5
9955 cat conftest.$ac_ext >&5
9956 rm -rf conftest*
9957 glibcpp_cv_func___builtin_sinf_link=no
9959 rm -f conftest*
9964 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
9965 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
9966 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9967 cat >> confdefs.h <<EOF
9968 #define ${ac_tr_func} 1
9975 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
9976 echo "configure:9977: checking for __builtin_sin declaration" >&5
9977 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
9978 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
9979 echo $ac_n "(cached) $ac_c" 1>&6
9980 else
9983 ac_ext=C
9984 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9985 ac_cpp='$CXXCPP $CPPFLAGS'
9986 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9987 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9988 cross_compiling=$ac_cv_prog_cxx_cross
9990 cat > conftest.$ac_ext <<EOF
9991 #line 9992 "configure"
9992 #include "confdefs.h"
9993 #include <math.h>
9994 int main() {
9995 __builtin_sin(0);
9996 ; return 0; }
9998 if { (eval echo configure:9999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9999 rm -rf conftest*
10000 glibcpp_cv_func___builtin_sin_use=yes
10001 else
10002 echo "configure: failed program was:" >&5
10003 cat conftest.$ac_ext >&5
10004 rm -rf conftest*
10005 glibcpp_cv_func___builtin_sin_use=no
10007 rm -f conftest*
10008 ac_ext=c
10009 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10010 ac_cpp='$CPP $CPPFLAGS'
10011 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10012 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10013 cross_compiling=$ac_cv_prog_cc_cross
10019 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
10020 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
10021 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
10022 echo "configure:10023: checking for __builtin_sin linkage" >&5
10023 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
10024 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
10025 echo $ac_n "(cached) $ac_c" 1>&6
10026 else
10028 cat > conftest.$ac_ext <<EOF
10029 #line 10030 "configure"
10030 #include "confdefs.h"
10031 #include <math.h>
10032 int main() {
10033 __builtin_sin(0);
10034 ; return 0; }
10036 if { (eval echo configure:10037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10037 rm -rf conftest*
10038 glibcpp_cv_func___builtin_sin_link=yes
10039 else
10040 echo "configure: failed program was:" >&5
10041 cat conftest.$ac_ext >&5
10042 rm -rf conftest*
10043 glibcpp_cv_func___builtin_sin_link=no
10045 rm -f conftest*
10050 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
10051 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
10052 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10053 cat >> confdefs.h <<EOF
10054 #define ${ac_tr_func} 1
10061 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
10062 echo "configure:10063: checking for __builtin_sinl declaration" >&5
10063 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
10064 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
10065 echo $ac_n "(cached) $ac_c" 1>&6
10066 else
10069 ac_ext=C
10070 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10071 ac_cpp='$CXXCPP $CPPFLAGS'
10072 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10073 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10074 cross_compiling=$ac_cv_prog_cxx_cross
10076 cat > conftest.$ac_ext <<EOF
10077 #line 10078 "configure"
10078 #include "confdefs.h"
10079 #include <math.h>
10080 int main() {
10081 __builtin_sinl(0);
10082 ; return 0; }
10084 if { (eval echo configure:10085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10085 rm -rf conftest*
10086 glibcpp_cv_func___builtin_sinl_use=yes
10087 else
10088 echo "configure: failed program was:" >&5
10089 cat conftest.$ac_ext >&5
10090 rm -rf conftest*
10091 glibcpp_cv_func___builtin_sinl_use=no
10093 rm -f conftest*
10094 ac_ext=c
10095 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10096 ac_cpp='$CPP $CPPFLAGS'
10097 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10098 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10099 cross_compiling=$ac_cv_prog_cc_cross
10105 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
10106 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
10107 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
10108 echo "configure:10109: checking for __builtin_sinl linkage" >&5
10109 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
10110 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
10111 echo $ac_n "(cached) $ac_c" 1>&6
10112 else
10114 cat > conftest.$ac_ext <<EOF
10115 #line 10116 "configure"
10116 #include "confdefs.h"
10117 #include <math.h>
10118 int main() {
10119 __builtin_sinl(0);
10120 ; return 0; }
10122 if { (eval echo configure:10123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10123 rm -rf conftest*
10124 glibcpp_cv_func___builtin_sinl_link=yes
10125 else
10126 echo "configure: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 rm -rf conftest*
10129 glibcpp_cv_func___builtin_sinl_link=no
10131 rm -f conftest*
10136 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
10137 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
10138 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10139 cat >> confdefs.h <<EOF
10140 #define ${ac_tr_func} 1
10148 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
10149 echo "configure:10150: checking for __builtin_cosf declaration" >&5
10150 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
10151 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
10152 echo $ac_n "(cached) $ac_c" 1>&6
10153 else
10156 ac_ext=C
10157 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10158 ac_cpp='$CXXCPP $CPPFLAGS'
10159 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10160 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10161 cross_compiling=$ac_cv_prog_cxx_cross
10163 cat > conftest.$ac_ext <<EOF
10164 #line 10165 "configure"
10165 #include "confdefs.h"
10166 #include <math.h>
10167 int main() {
10168 __builtin_cosf(0);
10169 ; return 0; }
10171 if { (eval echo configure:10172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10172 rm -rf conftest*
10173 glibcpp_cv_func___builtin_cosf_use=yes
10174 else
10175 echo "configure: failed program was:" >&5
10176 cat conftest.$ac_ext >&5
10177 rm -rf conftest*
10178 glibcpp_cv_func___builtin_cosf_use=no
10180 rm -f conftest*
10181 ac_ext=c
10182 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10183 ac_cpp='$CPP $CPPFLAGS'
10184 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10185 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10186 cross_compiling=$ac_cv_prog_cc_cross
10192 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
10193 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
10194 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
10195 echo "configure:10196: checking for __builtin_cosf linkage" >&5
10196 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
10197 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
10198 echo $ac_n "(cached) $ac_c" 1>&6
10199 else
10201 cat > conftest.$ac_ext <<EOF
10202 #line 10203 "configure"
10203 #include "confdefs.h"
10204 #include <math.h>
10205 int main() {
10206 __builtin_cosf(0);
10207 ; return 0; }
10209 if { (eval echo configure:10210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10210 rm -rf conftest*
10211 glibcpp_cv_func___builtin_cosf_link=yes
10212 else
10213 echo "configure: failed program was:" >&5
10214 cat conftest.$ac_ext >&5
10215 rm -rf conftest*
10216 glibcpp_cv_func___builtin_cosf_link=no
10218 rm -f conftest*
10223 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
10224 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
10225 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10226 cat >> confdefs.h <<EOF
10227 #define ${ac_tr_func} 1
10234 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
10235 echo "configure:10236: checking for __builtin_cos declaration" >&5
10236 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
10237 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
10238 echo $ac_n "(cached) $ac_c" 1>&6
10239 else
10242 ac_ext=C
10243 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10244 ac_cpp='$CXXCPP $CPPFLAGS'
10245 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10246 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10247 cross_compiling=$ac_cv_prog_cxx_cross
10249 cat > conftest.$ac_ext <<EOF
10250 #line 10251 "configure"
10251 #include "confdefs.h"
10252 #include <math.h>
10253 int main() {
10254 __builtin_cos(0);
10255 ; return 0; }
10257 if { (eval echo configure:10258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10258 rm -rf conftest*
10259 glibcpp_cv_func___builtin_cos_use=yes
10260 else
10261 echo "configure: failed program was:" >&5
10262 cat conftest.$ac_ext >&5
10263 rm -rf conftest*
10264 glibcpp_cv_func___builtin_cos_use=no
10266 rm -f conftest*
10267 ac_ext=c
10268 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10269 ac_cpp='$CPP $CPPFLAGS'
10270 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10271 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10272 cross_compiling=$ac_cv_prog_cc_cross
10278 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
10279 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
10280 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
10281 echo "configure:10282: checking for __builtin_cos linkage" >&5
10282 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
10283 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
10284 echo $ac_n "(cached) $ac_c" 1>&6
10285 else
10287 cat > conftest.$ac_ext <<EOF
10288 #line 10289 "configure"
10289 #include "confdefs.h"
10290 #include <math.h>
10291 int main() {
10292 __builtin_cos(0);
10293 ; return 0; }
10295 if { (eval echo configure:10296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10296 rm -rf conftest*
10297 glibcpp_cv_func___builtin_cos_link=yes
10298 else
10299 echo "configure: failed program was:" >&5
10300 cat conftest.$ac_ext >&5
10301 rm -rf conftest*
10302 glibcpp_cv_func___builtin_cos_link=no
10304 rm -f conftest*
10309 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
10310 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
10311 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10312 cat >> confdefs.h <<EOF
10313 #define ${ac_tr_func} 1
10320 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
10321 echo "configure:10322: checking for __builtin_cosl declaration" >&5
10322 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
10323 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
10324 echo $ac_n "(cached) $ac_c" 1>&6
10325 else
10328 ac_ext=C
10329 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10330 ac_cpp='$CXXCPP $CPPFLAGS'
10331 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10332 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10333 cross_compiling=$ac_cv_prog_cxx_cross
10335 cat > conftest.$ac_ext <<EOF
10336 #line 10337 "configure"
10337 #include "confdefs.h"
10338 #include <math.h>
10339 int main() {
10340 __builtin_cosl(0);
10341 ; return 0; }
10343 if { (eval echo configure:10344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10344 rm -rf conftest*
10345 glibcpp_cv_func___builtin_cosl_use=yes
10346 else
10347 echo "configure: failed program was:" >&5
10348 cat conftest.$ac_ext >&5
10349 rm -rf conftest*
10350 glibcpp_cv_func___builtin_cosl_use=no
10352 rm -f conftest*
10353 ac_ext=c
10354 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10355 ac_cpp='$CPP $CPPFLAGS'
10356 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10357 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10358 cross_compiling=$ac_cv_prog_cc_cross
10364 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
10365 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
10366 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
10367 echo "configure:10368: checking for __builtin_cosl linkage" >&5
10368 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
10369 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
10370 echo $ac_n "(cached) $ac_c" 1>&6
10371 else
10373 cat > conftest.$ac_ext <<EOF
10374 #line 10375 "configure"
10375 #include "confdefs.h"
10376 #include <math.h>
10377 int main() {
10378 __builtin_cosl(0);
10379 ; return 0; }
10381 if { (eval echo configure:10382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10382 rm -rf conftest*
10383 glibcpp_cv_func___builtin_cosl_link=yes
10384 else
10385 echo "configure: failed program was:" >&5
10386 cat conftest.$ac_ext >&5
10387 rm -rf conftest*
10388 glibcpp_cv_func___builtin_cosl_link=no
10390 rm -f conftest*
10395 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
10396 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
10397 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10398 cat >> confdefs.h <<EOF
10399 #define ${ac_tr_func} 1
10406 dummyvar=no
10407 if test x$dummyvar = x"yes"; then
10408 cat >> confdefs.h <<\EOF
10409 #define HAVE___BUILTIN_ABS 1
10412 cat >> confdefs.h <<\EOF
10413 #define HAVE___BUILTIN_LABS 1
10416 cat >> confdefs.h <<\EOF
10417 #define HAVE___BUILTIN_COS 1
10420 cat >> confdefs.h <<\EOF
10421 #define HAVE___BUILTIN_COSF 1
10424 cat >> confdefs.h <<\EOF
10425 #define HAVE___BUILTIN_COSL 1
10428 cat >> confdefs.h <<\EOF
10429 #define HAVE___BUILTIN_FABS 1
10432 cat >> confdefs.h <<\EOF
10433 #define HAVE___BUILTIN_FABSF 1
10436 cat >> confdefs.h <<\EOF
10437 #define HAVE___BUILTIN_FABSL 1
10440 cat >> confdefs.h <<\EOF
10441 #define HAVE___BUILTIN_SIN 1
10444 cat >> confdefs.h <<\EOF
10445 #define HAVE___BUILTIN_SINF 1
10448 cat >> confdefs.h <<\EOF
10449 #define HAVE___BUILTIN_SINL 1
10452 cat >> confdefs.h <<\EOF
10453 #define HAVE___BUILTIN_SQRT 1
10456 cat >> confdefs.h <<\EOF
10457 #define HAVE___BUILTIN_SQRTF 1
10460 cat >> confdefs.h <<\EOF
10461 #define HAVE___BUILTIN_SQRTL 1
10467 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10468 ac_save_CXXFLAGS="$CXXFLAGS"
10469 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10471 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10472 echo "configure:10473: checking for sin in -lm" >&5
10473 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10475 echo $ac_n "(cached) $ac_c" 1>&6
10476 else
10477 ac_save_LIBS="$LIBS"
10478 LIBS="-lm $LIBS"
10479 cat > conftest.$ac_ext <<EOF
10480 #line 10481 "configure"
10481 #include "confdefs.h"
10482 /* Override any gcc2 internal prototype to avoid an error. */
10483 /* We use char because int might match the return type of a gcc2
10484 builtin and then its argument prototype would still apply. */
10485 char sin();
10487 int main() {
10488 sin()
10489 ; return 0; }
10491 if { (eval echo configure:10492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10492 rm -rf conftest*
10493 eval "ac_cv_lib_$ac_lib_var=yes"
10494 else
10495 echo "configure: failed program was:" >&5
10496 cat conftest.$ac_ext >&5
10497 rm -rf conftest*
10498 eval "ac_cv_lib_$ac_lib_var=no"
10500 rm -f conftest*
10501 LIBS="$ac_save_LIBS"
10504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10505 echo "$ac_t""yes" 1>&6
10506 libm="-lm"
10507 else
10508 echo "$ac_t""no" 1>&6
10511 ac_save_LIBS="$LIBS"
10512 LIBS="$LIBS $libm"
10516 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10517 echo "configure:10518: checking for isinf declaration" >&5
10518 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10519 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10520 echo $ac_n "(cached) $ac_c" 1>&6
10521 else
10524 ac_ext=C
10525 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10526 ac_cpp='$CXXCPP $CPPFLAGS'
10527 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10528 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10529 cross_compiling=$ac_cv_prog_cxx_cross
10531 cat > conftest.$ac_ext <<EOF
10532 #line 10533 "configure"
10533 #include "confdefs.h"
10534 #include <math.h>
10535 #ifdef HAVE_IEEEFP_H
10536 #include <ieeefp.h>
10537 #endif
10539 int main() {
10540 isinf(0);
10541 ; return 0; }
10543 if { (eval echo configure:10544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10544 rm -rf conftest*
10545 glibcpp_cv_func_isinf_use=yes
10546 else
10547 echo "configure: failed program was:" >&5
10548 cat conftest.$ac_ext >&5
10549 rm -rf conftest*
10550 glibcpp_cv_func_isinf_use=no
10552 rm -f conftest*
10553 ac_ext=c
10554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10555 ac_cpp='$CPP $CPPFLAGS'
10556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10558 cross_compiling=$ac_cv_prog_cc_cross
10564 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10566 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10567 for ac_func in isinf
10569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10570 echo "configure:10571: checking for $ac_func" >&5
10571 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10572 echo $ac_n "(cached) $ac_c" 1>&6
10573 else
10574 cat > conftest.$ac_ext <<EOF
10575 #line 10576 "configure"
10576 #include "confdefs.h"
10577 /* System header to define __stub macros and hopefully few prototypes,
10578 which can conflict with char $ac_func(); below. */
10579 #include <assert.h>
10580 /* Override any gcc2 internal prototype to avoid an error. */
10581 /* We use char because int might match the return type of a gcc2
10582 builtin and then its argument prototype would still apply. */
10583 char $ac_func();
10585 int main() {
10587 /* The GNU C library defines this for functions which it implements
10588 to always fail with ENOSYS. Some functions are actually named
10589 something starting with __ and the normal name is an alias. */
10590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10591 choke me
10592 #else
10593 $ac_func();
10594 #endif
10596 ; return 0; }
10598 if { (eval echo configure:10599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10599 rm -rf conftest*
10600 eval "ac_cv_func_$ac_func=yes"
10601 else
10602 echo "configure: failed program was:" >&5
10603 cat conftest.$ac_ext >&5
10604 rm -rf conftest*
10605 eval "ac_cv_func_$ac_func=no"
10607 rm -f conftest*
10610 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10611 echo "$ac_t""yes" 1>&6
10612 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10613 cat >> confdefs.h <<EOF
10614 #define $ac_tr_func 1
10617 else
10618 echo "$ac_t""no" 1>&6
10620 done
10622 else
10624 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10625 echo "configure:10626: checking for _isinf declaration" >&5
10626 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10627 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10628 echo $ac_n "(cached) $ac_c" 1>&6
10629 else
10632 ac_ext=C
10633 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10634 ac_cpp='$CXXCPP $CPPFLAGS'
10635 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10636 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10637 cross_compiling=$ac_cv_prog_cxx_cross
10639 cat > conftest.$ac_ext <<EOF
10640 #line 10641 "configure"
10641 #include "confdefs.h"
10642 #include <math.h>
10643 #ifdef HAVE_IEEEFP_H
10644 #include <ieeefp.h>
10645 #endif
10647 int main() {
10648 _isinf(0);
10649 ; return 0; }
10651 if { (eval echo configure:10652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10652 rm -rf conftest*
10653 glibcpp_cv_func__isinf_use=yes
10654 else
10655 echo "configure: failed program was:" >&5
10656 cat conftest.$ac_ext >&5
10657 rm -rf conftest*
10658 glibcpp_cv_func__isinf_use=no
10660 rm -f conftest*
10661 ac_ext=c
10662 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10663 ac_cpp='$CPP $CPPFLAGS'
10664 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10665 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10666 cross_compiling=$ac_cv_prog_cc_cross
10672 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10674 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10675 for ac_func in _isinf
10677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10678 echo "configure:10679: checking for $ac_func" >&5
10679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10680 echo $ac_n "(cached) $ac_c" 1>&6
10681 else
10682 cat > conftest.$ac_ext <<EOF
10683 #line 10684 "configure"
10684 #include "confdefs.h"
10685 /* System header to define __stub macros and hopefully few prototypes,
10686 which can conflict with char $ac_func(); below. */
10687 #include <assert.h>
10688 /* Override any gcc2 internal prototype to avoid an error. */
10689 /* We use char because int might match the return type of a gcc2
10690 builtin and then its argument prototype would still apply. */
10691 char $ac_func();
10693 int main() {
10695 /* The GNU C library defines this for functions which it implements
10696 to always fail with ENOSYS. Some functions are actually named
10697 something starting with __ and the normal name is an alias. */
10698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10699 choke me
10700 #else
10701 $ac_func();
10702 #endif
10704 ; return 0; }
10706 if { (eval echo configure:10707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10707 rm -rf conftest*
10708 eval "ac_cv_func_$ac_func=yes"
10709 else
10710 echo "configure: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10712 rm -rf conftest*
10713 eval "ac_cv_func_$ac_func=no"
10715 rm -f conftest*
10718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10719 echo "$ac_t""yes" 1>&6
10720 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10721 cat >> confdefs.h <<EOF
10722 #define $ac_tr_func 1
10725 else
10726 echo "$ac_t""no" 1>&6
10728 done
10735 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10736 echo "configure:10737: checking for isnan declaration" >&5
10737 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10738 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10739 echo $ac_n "(cached) $ac_c" 1>&6
10740 else
10743 ac_ext=C
10744 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10745 ac_cpp='$CXXCPP $CPPFLAGS'
10746 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10747 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10748 cross_compiling=$ac_cv_prog_cxx_cross
10750 cat > conftest.$ac_ext <<EOF
10751 #line 10752 "configure"
10752 #include "confdefs.h"
10753 #include <math.h>
10754 #ifdef HAVE_IEEEFP_H
10755 #include <ieeefp.h>
10756 #endif
10758 int main() {
10759 isnan(0);
10760 ; return 0; }
10762 if { (eval echo configure:10763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10763 rm -rf conftest*
10764 glibcpp_cv_func_isnan_use=yes
10765 else
10766 echo "configure: failed program was:" >&5
10767 cat conftest.$ac_ext >&5
10768 rm -rf conftest*
10769 glibcpp_cv_func_isnan_use=no
10771 rm -f conftest*
10772 ac_ext=c
10773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10774 ac_cpp='$CPP $CPPFLAGS'
10775 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10776 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10777 cross_compiling=$ac_cv_prog_cc_cross
10783 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
10785 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
10786 for ac_func in isnan
10788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10789 echo "configure:10790: checking for $ac_func" >&5
10790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10791 echo $ac_n "(cached) $ac_c" 1>&6
10792 else
10793 cat > conftest.$ac_ext <<EOF
10794 #line 10795 "configure"
10795 #include "confdefs.h"
10796 /* System header to define __stub macros and hopefully few prototypes,
10797 which can conflict with char $ac_func(); below. */
10798 #include <assert.h>
10799 /* Override any gcc2 internal prototype to avoid an error. */
10800 /* We use char because int might match the return type of a gcc2
10801 builtin and then its argument prototype would still apply. */
10802 char $ac_func();
10804 int main() {
10806 /* The GNU C library defines this for functions which it implements
10807 to always fail with ENOSYS. Some functions are actually named
10808 something starting with __ and the normal name is an alias. */
10809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10810 choke me
10811 #else
10812 $ac_func();
10813 #endif
10815 ; return 0; }
10817 if { (eval echo configure:10818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10818 rm -rf conftest*
10819 eval "ac_cv_func_$ac_func=yes"
10820 else
10821 echo "configure: failed program was:" >&5
10822 cat conftest.$ac_ext >&5
10823 rm -rf conftest*
10824 eval "ac_cv_func_$ac_func=no"
10826 rm -f conftest*
10829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10830 echo "$ac_t""yes" 1>&6
10831 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10832 cat >> confdefs.h <<EOF
10833 #define $ac_tr_func 1
10836 else
10837 echo "$ac_t""no" 1>&6
10839 done
10841 else
10843 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
10844 echo "configure:10845: checking for _isnan declaration" >&5
10845 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
10846 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
10847 echo $ac_n "(cached) $ac_c" 1>&6
10848 else
10851 ac_ext=C
10852 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10853 ac_cpp='$CXXCPP $CPPFLAGS'
10854 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10855 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10856 cross_compiling=$ac_cv_prog_cxx_cross
10858 cat > conftest.$ac_ext <<EOF
10859 #line 10860 "configure"
10860 #include "confdefs.h"
10861 #include <math.h>
10862 #ifdef HAVE_IEEEFP_H
10863 #include <ieeefp.h>
10864 #endif
10866 int main() {
10867 _isnan(0);
10868 ; return 0; }
10870 if { (eval echo configure:10871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10871 rm -rf conftest*
10872 glibcpp_cv_func__isnan_use=yes
10873 else
10874 echo "configure: failed program was:" >&5
10875 cat conftest.$ac_ext >&5
10876 rm -rf conftest*
10877 glibcpp_cv_func__isnan_use=no
10879 rm -f conftest*
10880 ac_ext=c
10881 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10882 ac_cpp='$CPP $CPPFLAGS'
10883 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10884 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10885 cross_compiling=$ac_cv_prog_cc_cross
10891 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
10893 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
10894 for ac_func in _isnan
10896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10897 echo "configure:10898: checking for $ac_func" >&5
10898 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10899 echo $ac_n "(cached) $ac_c" 1>&6
10900 else
10901 cat > conftest.$ac_ext <<EOF
10902 #line 10903 "configure"
10903 #include "confdefs.h"
10904 /* System header to define __stub macros and hopefully few prototypes,
10905 which can conflict with char $ac_func(); below. */
10906 #include <assert.h>
10907 /* Override any gcc2 internal prototype to avoid an error. */
10908 /* We use char because int might match the return type of a gcc2
10909 builtin and then its argument prototype would still apply. */
10910 char $ac_func();
10912 int main() {
10914 /* The GNU C library defines this for functions which it implements
10915 to always fail with ENOSYS. Some functions are actually named
10916 something starting with __ and the normal name is an alias. */
10917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10918 choke me
10919 #else
10920 $ac_func();
10921 #endif
10923 ; return 0; }
10925 if { (eval echo configure:10926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10926 rm -rf conftest*
10927 eval "ac_cv_func_$ac_func=yes"
10928 else
10929 echo "configure: failed program was:" >&5
10930 cat conftest.$ac_ext >&5
10931 rm -rf conftest*
10932 eval "ac_cv_func_$ac_func=no"
10934 rm -f conftest*
10937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10938 echo "$ac_t""yes" 1>&6
10939 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10940 cat >> confdefs.h <<EOF
10941 #define $ac_tr_func 1
10944 else
10945 echo "$ac_t""no" 1>&6
10947 done
10954 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
10955 echo "configure:10956: checking for finite declaration" >&5
10956 if test x${glibcpp_cv_func_finite_use+set} != xset; then
10957 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
10958 echo $ac_n "(cached) $ac_c" 1>&6
10959 else
10962 ac_ext=C
10963 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10964 ac_cpp='$CXXCPP $CPPFLAGS'
10965 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10966 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10967 cross_compiling=$ac_cv_prog_cxx_cross
10969 cat > conftest.$ac_ext <<EOF
10970 #line 10971 "configure"
10971 #include "confdefs.h"
10972 #include <math.h>
10973 #ifdef HAVE_IEEEFP_H
10974 #include <ieeefp.h>
10975 #endif
10977 int main() {
10978 finite(0);
10979 ; return 0; }
10981 if { (eval echo configure:10982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10982 rm -rf conftest*
10983 glibcpp_cv_func_finite_use=yes
10984 else
10985 echo "configure: failed program was:" >&5
10986 cat conftest.$ac_ext >&5
10987 rm -rf conftest*
10988 glibcpp_cv_func_finite_use=no
10990 rm -f conftest*
10991 ac_ext=c
10992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10993 ac_cpp='$CPP $CPPFLAGS'
10994 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10995 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10996 cross_compiling=$ac_cv_prog_cc_cross
11002 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11004 if test x$glibcpp_cv_func_finite_use = x"yes"; then
11005 for ac_func in finite
11007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11008 echo "configure:11009: checking for $ac_func" >&5
11009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11010 echo $ac_n "(cached) $ac_c" 1>&6
11011 else
11012 cat > conftest.$ac_ext <<EOF
11013 #line 11014 "configure"
11014 #include "confdefs.h"
11015 /* System header to define __stub macros and hopefully few prototypes,
11016 which can conflict with char $ac_func(); below. */
11017 #include <assert.h>
11018 /* Override any gcc2 internal prototype to avoid an error. */
11019 /* We use char because int might match the return type of a gcc2
11020 builtin and then its argument prototype would still apply. */
11021 char $ac_func();
11023 int main() {
11025 /* The GNU C library defines this for functions which it implements
11026 to always fail with ENOSYS. Some functions are actually named
11027 something starting with __ and the normal name is an alias. */
11028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11029 choke me
11030 #else
11031 $ac_func();
11032 #endif
11034 ; return 0; }
11036 if { (eval echo configure:11037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11037 rm -rf conftest*
11038 eval "ac_cv_func_$ac_func=yes"
11039 else
11040 echo "configure: failed program was:" >&5
11041 cat conftest.$ac_ext >&5
11042 rm -rf conftest*
11043 eval "ac_cv_func_$ac_func=no"
11045 rm -f conftest*
11048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11049 echo "$ac_t""yes" 1>&6
11050 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11051 cat >> confdefs.h <<EOF
11052 #define $ac_tr_func 1
11055 else
11056 echo "$ac_t""no" 1>&6
11058 done
11060 else
11062 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11063 echo "configure:11064: checking for _finite declaration" >&5
11064 if test x${glibcpp_cv_func__finite_use+set} != xset; then
11065 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11066 echo $ac_n "(cached) $ac_c" 1>&6
11067 else
11070 ac_ext=C
11071 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11072 ac_cpp='$CXXCPP $CPPFLAGS'
11073 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11074 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11075 cross_compiling=$ac_cv_prog_cxx_cross
11077 cat > conftest.$ac_ext <<EOF
11078 #line 11079 "configure"
11079 #include "confdefs.h"
11080 #include <math.h>
11081 #ifdef HAVE_IEEEFP_H
11082 #include <ieeefp.h>
11083 #endif
11085 int main() {
11086 _finite(0);
11087 ; return 0; }
11089 if { (eval echo configure:11090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11090 rm -rf conftest*
11091 glibcpp_cv_func__finite_use=yes
11092 else
11093 echo "configure: failed program was:" >&5
11094 cat conftest.$ac_ext >&5
11095 rm -rf conftest*
11096 glibcpp_cv_func__finite_use=no
11098 rm -f conftest*
11099 ac_ext=c
11100 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11101 ac_cpp='$CPP $CPPFLAGS'
11102 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11103 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11104 cross_compiling=$ac_cv_prog_cc_cross
11110 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11112 if test x$glibcpp_cv_func__finite_use = x"yes"; then
11113 for ac_func in _finite
11115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11116 echo "configure:11117: checking for $ac_func" >&5
11117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11118 echo $ac_n "(cached) $ac_c" 1>&6
11119 else
11120 cat > conftest.$ac_ext <<EOF
11121 #line 11122 "configure"
11122 #include "confdefs.h"
11123 /* System header to define __stub macros and hopefully few prototypes,
11124 which can conflict with char $ac_func(); below. */
11125 #include <assert.h>
11126 /* Override any gcc2 internal prototype to avoid an error. */
11127 /* We use char because int might match the return type of a gcc2
11128 builtin and then its argument prototype would still apply. */
11129 char $ac_func();
11131 int main() {
11133 /* The GNU C library defines this for functions which it implements
11134 to always fail with ENOSYS. Some functions are actually named
11135 something starting with __ and the normal name is an alias. */
11136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11137 choke me
11138 #else
11139 $ac_func();
11140 #endif
11142 ; return 0; }
11144 if { (eval echo configure:11145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11145 rm -rf conftest*
11146 eval "ac_cv_func_$ac_func=yes"
11147 else
11148 echo "configure: failed program was:" >&5
11149 cat conftest.$ac_ext >&5
11150 rm -rf conftest*
11151 eval "ac_cv_func_$ac_func=no"
11153 rm -f conftest*
11156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11157 echo "$ac_t""yes" 1>&6
11158 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11159 cat >> confdefs.h <<EOF
11160 #define $ac_tr_func 1
11163 else
11164 echo "$ac_t""no" 1>&6
11166 done
11173 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11174 echo "configure:11175: checking for copysign declaration" >&5
11175 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11176 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11177 echo $ac_n "(cached) $ac_c" 1>&6
11178 else
11181 ac_ext=C
11182 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11183 ac_cpp='$CXXCPP $CPPFLAGS'
11184 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11185 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11186 cross_compiling=$ac_cv_prog_cxx_cross
11188 cat > conftest.$ac_ext <<EOF
11189 #line 11190 "configure"
11190 #include "confdefs.h"
11191 #include <math.h>
11192 int main() {
11193 copysign(0, 0);
11194 ; return 0; }
11196 if { (eval echo configure:11197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11197 rm -rf conftest*
11198 glibcpp_cv_func_copysign_use=yes
11199 else
11200 echo "configure: failed program was:" >&5
11201 cat conftest.$ac_ext >&5
11202 rm -rf conftest*
11203 glibcpp_cv_func_copysign_use=no
11205 rm -f conftest*
11206 ac_ext=c
11207 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11208 ac_cpp='$CPP $CPPFLAGS'
11209 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11210 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11211 cross_compiling=$ac_cv_prog_cc_cross
11217 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11219 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11220 for ac_func in copysign
11222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11223 echo "configure:11224: checking for $ac_func" >&5
11224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11225 echo $ac_n "(cached) $ac_c" 1>&6
11226 else
11227 cat > conftest.$ac_ext <<EOF
11228 #line 11229 "configure"
11229 #include "confdefs.h"
11230 /* System header to define __stub macros and hopefully few prototypes,
11231 which can conflict with char $ac_func(); below. */
11232 #include <assert.h>
11233 /* Override any gcc2 internal prototype to avoid an error. */
11234 /* We use char because int might match the return type of a gcc2
11235 builtin and then its argument prototype would still apply. */
11236 char $ac_func();
11238 int main() {
11240 /* The GNU C library defines this for functions which it implements
11241 to always fail with ENOSYS. Some functions are actually named
11242 something starting with __ and the normal name is an alias. */
11243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11244 choke me
11245 #else
11246 $ac_func();
11247 #endif
11249 ; return 0; }
11251 if { (eval echo configure:11252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11252 rm -rf conftest*
11253 eval "ac_cv_func_$ac_func=yes"
11254 else
11255 echo "configure: failed program was:" >&5
11256 cat conftest.$ac_ext >&5
11257 rm -rf conftest*
11258 eval "ac_cv_func_$ac_func=no"
11260 rm -f conftest*
11263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11264 echo "$ac_t""yes" 1>&6
11265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11266 cat >> confdefs.h <<EOF
11267 #define $ac_tr_func 1
11270 else
11271 echo "$ac_t""no" 1>&6
11273 done
11275 else
11277 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11278 echo "configure:11279: checking for _copysign declaration" >&5
11279 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11280 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11281 echo $ac_n "(cached) $ac_c" 1>&6
11282 else
11285 ac_ext=C
11286 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11287 ac_cpp='$CXXCPP $CPPFLAGS'
11288 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11289 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11290 cross_compiling=$ac_cv_prog_cxx_cross
11292 cat > conftest.$ac_ext <<EOF
11293 #line 11294 "configure"
11294 #include "confdefs.h"
11295 #include <math.h>
11296 int main() {
11297 _copysign(0, 0);
11298 ; return 0; }
11300 if { (eval echo configure:11301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11301 rm -rf conftest*
11302 glibcpp_cv_func__copysign_use=yes
11303 else
11304 echo "configure: failed program was:" >&5
11305 cat conftest.$ac_ext >&5
11306 rm -rf conftest*
11307 glibcpp_cv_func__copysign_use=no
11309 rm -f conftest*
11310 ac_ext=c
11311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11312 ac_cpp='$CPP $CPPFLAGS'
11313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11315 cross_compiling=$ac_cv_prog_cc_cross
11321 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11323 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11324 for ac_func in _copysign
11326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11327 echo "configure:11328: checking for $ac_func" >&5
11328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11329 echo $ac_n "(cached) $ac_c" 1>&6
11330 else
11331 cat > conftest.$ac_ext <<EOF
11332 #line 11333 "configure"
11333 #include "confdefs.h"
11334 /* System header to define __stub macros and hopefully few prototypes,
11335 which can conflict with char $ac_func(); below. */
11336 #include <assert.h>
11337 /* Override any gcc2 internal prototype to avoid an error. */
11338 /* We use char because int might match the return type of a gcc2
11339 builtin and then its argument prototype would still apply. */
11340 char $ac_func();
11342 int main() {
11344 /* The GNU C library defines this for functions which it implements
11345 to always fail with ENOSYS. Some functions are actually named
11346 something starting with __ and the normal name is an alias. */
11347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11348 choke me
11349 #else
11350 $ac_func();
11351 #endif
11353 ; return 0; }
11355 if { (eval echo configure:11356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11356 rm -rf conftest*
11357 eval "ac_cv_func_$ac_func=yes"
11358 else
11359 echo "configure: failed program was:" >&5
11360 cat conftest.$ac_ext >&5
11361 rm -rf conftest*
11362 eval "ac_cv_func_$ac_func=no"
11364 rm -f conftest*
11367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11368 echo "$ac_t""yes" 1>&6
11369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11370 cat >> confdefs.h <<EOF
11371 #define $ac_tr_func 1
11374 else
11375 echo "$ac_t""no" 1>&6
11377 done
11384 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11385 echo "configure:11386: checking for sincos declaration" >&5
11386 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11387 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11388 echo $ac_n "(cached) $ac_c" 1>&6
11389 else
11392 ac_ext=C
11393 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11394 ac_cpp='$CXXCPP $CPPFLAGS'
11395 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11396 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11397 cross_compiling=$ac_cv_prog_cxx_cross
11399 cat > conftest.$ac_ext <<EOF
11400 #line 11401 "configure"
11401 #include "confdefs.h"
11402 #include <math.h>
11403 int main() {
11404 sincos(0, 0, 0);
11405 ; return 0; }
11407 if { (eval echo configure:11408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11408 rm -rf conftest*
11409 glibcpp_cv_func_sincos_use=yes
11410 else
11411 echo "configure: failed program was:" >&5
11412 cat conftest.$ac_ext >&5
11413 rm -rf conftest*
11414 glibcpp_cv_func_sincos_use=no
11416 rm -f conftest*
11417 ac_ext=c
11418 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11419 ac_cpp='$CPP $CPPFLAGS'
11420 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11421 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11422 cross_compiling=$ac_cv_prog_cc_cross
11428 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11430 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11431 for ac_func in sincos
11433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11434 echo "configure:11435: checking for $ac_func" >&5
11435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11436 echo $ac_n "(cached) $ac_c" 1>&6
11437 else
11438 cat > conftest.$ac_ext <<EOF
11439 #line 11440 "configure"
11440 #include "confdefs.h"
11441 /* System header to define __stub macros and hopefully few prototypes,
11442 which can conflict with char $ac_func(); below. */
11443 #include <assert.h>
11444 /* Override any gcc2 internal prototype to avoid an error. */
11445 /* We use char because int might match the return type of a gcc2
11446 builtin and then its argument prototype would still apply. */
11447 char $ac_func();
11449 int main() {
11451 /* The GNU C library defines this for functions which it implements
11452 to always fail with ENOSYS. Some functions are actually named
11453 something starting with __ and the normal name is an alias. */
11454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11455 choke me
11456 #else
11457 $ac_func();
11458 #endif
11460 ; return 0; }
11462 if { (eval echo configure:11463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11463 rm -rf conftest*
11464 eval "ac_cv_func_$ac_func=yes"
11465 else
11466 echo "configure: failed program was:" >&5
11467 cat conftest.$ac_ext >&5
11468 rm -rf conftest*
11469 eval "ac_cv_func_$ac_func=no"
11471 rm -f conftest*
11474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11475 echo "$ac_t""yes" 1>&6
11476 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11477 cat >> confdefs.h <<EOF
11478 #define $ac_tr_func 1
11481 else
11482 echo "$ac_t""no" 1>&6
11484 done
11486 else
11488 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11489 echo "configure:11490: checking for _sincos declaration" >&5
11490 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11491 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11492 echo $ac_n "(cached) $ac_c" 1>&6
11493 else
11496 ac_ext=C
11497 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11498 ac_cpp='$CXXCPP $CPPFLAGS'
11499 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11500 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11501 cross_compiling=$ac_cv_prog_cxx_cross
11503 cat > conftest.$ac_ext <<EOF
11504 #line 11505 "configure"
11505 #include "confdefs.h"
11506 #include <math.h>
11507 int main() {
11508 _sincos(0, 0, 0);
11509 ; return 0; }
11511 if { (eval echo configure:11512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11512 rm -rf conftest*
11513 glibcpp_cv_func__sincos_use=yes
11514 else
11515 echo "configure: failed program was:" >&5
11516 cat conftest.$ac_ext >&5
11517 rm -rf conftest*
11518 glibcpp_cv_func__sincos_use=no
11520 rm -f conftest*
11521 ac_ext=c
11522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11523 ac_cpp='$CPP $CPPFLAGS'
11524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11526 cross_compiling=$ac_cv_prog_cc_cross
11532 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11534 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11535 for ac_func in _sincos
11537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11538 echo "configure:11539: checking for $ac_func" >&5
11539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11540 echo $ac_n "(cached) $ac_c" 1>&6
11541 else
11542 cat > conftest.$ac_ext <<EOF
11543 #line 11544 "configure"
11544 #include "confdefs.h"
11545 /* System header to define __stub macros and hopefully few prototypes,
11546 which can conflict with char $ac_func(); below. */
11547 #include <assert.h>
11548 /* Override any gcc2 internal prototype to avoid an error. */
11549 /* We use char because int might match the return type of a gcc2
11550 builtin and then its argument prototype would still apply. */
11551 char $ac_func();
11553 int main() {
11555 /* The GNU C library defines this for functions which it implements
11556 to always fail with ENOSYS. Some functions are actually named
11557 something starting with __ and the normal name is an alias. */
11558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11559 choke me
11560 #else
11561 $ac_func();
11562 #endif
11564 ; return 0; }
11566 if { (eval echo configure:11567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11567 rm -rf conftest*
11568 eval "ac_cv_func_$ac_func=yes"
11569 else
11570 echo "configure: failed program was:" >&5
11571 cat conftest.$ac_ext >&5
11572 rm -rf conftest*
11573 eval "ac_cv_func_$ac_func=no"
11575 rm -f conftest*
11578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11579 echo "$ac_t""yes" 1>&6
11580 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11581 cat >> confdefs.h <<EOF
11582 #define $ac_tr_func 1
11585 else
11586 echo "$ac_t""no" 1>&6
11588 done
11595 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11596 echo "configure:11597: checking for fpclass declaration" >&5
11597 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11598 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11599 echo $ac_n "(cached) $ac_c" 1>&6
11600 else
11603 ac_ext=C
11604 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11605 ac_cpp='$CXXCPP $CPPFLAGS'
11606 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11607 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11608 cross_compiling=$ac_cv_prog_cxx_cross
11610 cat > conftest.$ac_ext <<EOF
11611 #line 11612 "configure"
11612 #include "confdefs.h"
11613 #include <math.h>
11614 #ifdef HAVE_IEEEFP_H
11615 #include <ieeefp.h>
11616 #endif
11618 int main() {
11619 fpclass(0);
11620 ; return 0; }
11622 if { (eval echo configure:11623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11623 rm -rf conftest*
11624 glibcpp_cv_func_fpclass_use=yes
11625 else
11626 echo "configure: failed program was:" >&5
11627 cat conftest.$ac_ext >&5
11628 rm -rf conftest*
11629 glibcpp_cv_func_fpclass_use=no
11631 rm -f conftest*
11632 ac_ext=c
11633 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11634 ac_cpp='$CPP $CPPFLAGS'
11635 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11636 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11637 cross_compiling=$ac_cv_prog_cc_cross
11643 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11645 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11646 for ac_func in fpclass
11648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11649 echo "configure:11650: checking for $ac_func" >&5
11650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11651 echo $ac_n "(cached) $ac_c" 1>&6
11652 else
11653 cat > conftest.$ac_ext <<EOF
11654 #line 11655 "configure"
11655 #include "confdefs.h"
11656 /* System header to define __stub macros and hopefully few prototypes,
11657 which can conflict with char $ac_func(); below. */
11658 #include <assert.h>
11659 /* Override any gcc2 internal prototype to avoid an error. */
11660 /* We use char because int might match the return type of a gcc2
11661 builtin and then its argument prototype would still apply. */
11662 char $ac_func();
11664 int main() {
11666 /* The GNU C library defines this for functions which it implements
11667 to always fail with ENOSYS. Some functions are actually named
11668 something starting with __ and the normal name is an alias. */
11669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11670 choke me
11671 #else
11672 $ac_func();
11673 #endif
11675 ; return 0; }
11677 if { (eval echo configure:11678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11678 rm -rf conftest*
11679 eval "ac_cv_func_$ac_func=yes"
11680 else
11681 echo "configure: failed program was:" >&5
11682 cat conftest.$ac_ext >&5
11683 rm -rf conftest*
11684 eval "ac_cv_func_$ac_func=no"
11686 rm -f conftest*
11689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11690 echo "$ac_t""yes" 1>&6
11691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11692 cat >> confdefs.h <<EOF
11693 #define $ac_tr_func 1
11696 else
11697 echo "$ac_t""no" 1>&6
11699 done
11701 else
11703 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11704 echo "configure:11705: checking for _fpclass declaration" >&5
11705 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11706 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11707 echo $ac_n "(cached) $ac_c" 1>&6
11708 else
11711 ac_ext=C
11712 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11713 ac_cpp='$CXXCPP $CPPFLAGS'
11714 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11715 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11716 cross_compiling=$ac_cv_prog_cxx_cross
11718 cat > conftest.$ac_ext <<EOF
11719 #line 11720 "configure"
11720 #include "confdefs.h"
11721 #include <math.h>
11722 #ifdef HAVE_IEEEFP_H
11723 #include <ieeefp.h>
11724 #endif
11726 int main() {
11727 _fpclass(0);
11728 ; return 0; }
11730 if { (eval echo configure:11731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11731 rm -rf conftest*
11732 glibcpp_cv_func__fpclass_use=yes
11733 else
11734 echo "configure: failed program was:" >&5
11735 cat conftest.$ac_ext >&5
11736 rm -rf conftest*
11737 glibcpp_cv_func__fpclass_use=no
11739 rm -f conftest*
11740 ac_ext=c
11741 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11742 ac_cpp='$CPP $CPPFLAGS'
11743 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11744 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11745 cross_compiling=$ac_cv_prog_cc_cross
11751 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
11753 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11754 for ac_func in _fpclass
11756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11757 echo "configure:11758: checking for $ac_func" >&5
11758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11759 echo $ac_n "(cached) $ac_c" 1>&6
11760 else
11761 cat > conftest.$ac_ext <<EOF
11762 #line 11763 "configure"
11763 #include "confdefs.h"
11764 /* System header to define __stub macros and hopefully few prototypes,
11765 which can conflict with char $ac_func(); below. */
11766 #include <assert.h>
11767 /* Override any gcc2 internal prototype to avoid an error. */
11768 /* We use char because int might match the return type of a gcc2
11769 builtin and then its argument prototype would still apply. */
11770 char $ac_func();
11772 int main() {
11774 /* The GNU C library defines this for functions which it implements
11775 to always fail with ENOSYS. Some functions are actually named
11776 something starting with __ and the normal name is an alias. */
11777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11778 choke me
11779 #else
11780 $ac_func();
11781 #endif
11783 ; return 0; }
11785 if { (eval echo configure:11786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11786 rm -rf conftest*
11787 eval "ac_cv_func_$ac_func=yes"
11788 else
11789 echo "configure: failed program was:" >&5
11790 cat conftest.$ac_ext >&5
11791 rm -rf conftest*
11792 eval "ac_cv_func_$ac_func=no"
11794 rm -f conftest*
11797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11798 echo "$ac_t""yes" 1>&6
11799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11800 cat >> confdefs.h <<EOF
11801 #define $ac_tr_func 1
11804 else
11805 echo "$ac_t""no" 1>&6
11807 done
11814 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
11815 echo "configure:11816: checking for qfpclass declaration" >&5
11816 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
11817 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
11818 echo $ac_n "(cached) $ac_c" 1>&6
11819 else
11822 ac_ext=C
11823 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11824 ac_cpp='$CXXCPP $CPPFLAGS'
11825 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11826 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11827 cross_compiling=$ac_cv_prog_cxx_cross
11829 cat > conftest.$ac_ext <<EOF
11830 #line 11831 "configure"
11831 #include "confdefs.h"
11832 #include <math.h>
11833 #ifdef HAVE_IEEEFP_H
11834 #include <ieeefp.h>
11835 #endif
11837 int main() {
11838 qfpclass(0);
11839 ; return 0; }
11841 if { (eval echo configure:11842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11842 rm -rf conftest*
11843 glibcpp_cv_func_qfpclass_use=yes
11844 else
11845 echo "configure: failed program was:" >&5
11846 cat conftest.$ac_ext >&5
11847 rm -rf conftest*
11848 glibcpp_cv_func_qfpclass_use=no
11850 rm -f conftest*
11851 ac_ext=c
11852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11853 ac_cpp='$CPP $CPPFLAGS'
11854 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11855 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11856 cross_compiling=$ac_cv_prog_cc_cross
11862 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
11864 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
11865 for ac_func in qfpclass
11867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11868 echo "configure:11869: checking for $ac_func" >&5
11869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11870 echo $ac_n "(cached) $ac_c" 1>&6
11871 else
11872 cat > conftest.$ac_ext <<EOF
11873 #line 11874 "configure"
11874 #include "confdefs.h"
11875 /* System header to define __stub macros and hopefully few prototypes,
11876 which can conflict with char $ac_func(); below. */
11877 #include <assert.h>
11878 /* Override any gcc2 internal prototype to avoid an error. */
11879 /* We use char because int might match the return type of a gcc2
11880 builtin and then its argument prototype would still apply. */
11881 char $ac_func();
11883 int main() {
11885 /* The GNU C library defines this for functions which it implements
11886 to always fail with ENOSYS. Some functions are actually named
11887 something starting with __ and the normal name is an alias. */
11888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11889 choke me
11890 #else
11891 $ac_func();
11892 #endif
11894 ; return 0; }
11896 if { (eval echo configure:11897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11897 rm -rf conftest*
11898 eval "ac_cv_func_$ac_func=yes"
11899 else
11900 echo "configure: failed program was:" >&5
11901 cat conftest.$ac_ext >&5
11902 rm -rf conftest*
11903 eval "ac_cv_func_$ac_func=no"
11905 rm -f conftest*
11908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11909 echo "$ac_t""yes" 1>&6
11910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11911 cat >> confdefs.h <<EOF
11912 #define $ac_tr_func 1
11915 else
11916 echo "$ac_t""no" 1>&6
11918 done
11920 else
11922 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
11923 echo "configure:11924: checking for _qfpclass declaration" >&5
11924 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
11925 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
11926 echo $ac_n "(cached) $ac_c" 1>&6
11927 else
11930 ac_ext=C
11931 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11932 ac_cpp='$CXXCPP $CPPFLAGS'
11933 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11934 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11935 cross_compiling=$ac_cv_prog_cxx_cross
11937 cat > conftest.$ac_ext <<EOF
11938 #line 11939 "configure"
11939 #include "confdefs.h"
11940 #include <math.h>
11941 #ifdef HAVE_IEEEFP_H
11942 #include <ieeefp.h>
11943 #endif
11945 int main() {
11946 _qfpclass(0);
11947 ; return 0; }
11949 if { (eval echo configure:11950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11950 rm -rf conftest*
11951 glibcpp_cv_func__qfpclass_use=yes
11952 else
11953 echo "configure: failed program was:" >&5
11954 cat conftest.$ac_ext >&5
11955 rm -rf conftest*
11956 glibcpp_cv_func__qfpclass_use=no
11958 rm -f conftest*
11959 ac_ext=c
11960 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11961 ac_cpp='$CPP $CPPFLAGS'
11962 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11963 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11964 cross_compiling=$ac_cv_prog_cc_cross
11970 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
11972 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
11973 for ac_func in _qfpclass
11975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11976 echo "configure:11977: checking for $ac_func" >&5
11977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11978 echo $ac_n "(cached) $ac_c" 1>&6
11979 else
11980 cat > conftest.$ac_ext <<EOF
11981 #line 11982 "configure"
11982 #include "confdefs.h"
11983 /* System header to define __stub macros and hopefully few prototypes,
11984 which can conflict with char $ac_func(); below. */
11985 #include <assert.h>
11986 /* Override any gcc2 internal prototype to avoid an error. */
11987 /* We use char because int might match the return type of a gcc2
11988 builtin and then its argument prototype would still apply. */
11989 char $ac_func();
11991 int main() {
11993 /* The GNU C library defines this for functions which it implements
11994 to always fail with ENOSYS. Some functions are actually named
11995 something starting with __ and the normal name is an alias. */
11996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11997 choke me
11998 #else
11999 $ac_func();
12000 #endif
12002 ; return 0; }
12004 if { (eval echo configure:12005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12005 rm -rf conftest*
12006 eval "ac_cv_func_$ac_func=yes"
12007 else
12008 echo "configure: failed program was:" >&5
12009 cat conftest.$ac_ext >&5
12010 rm -rf conftest*
12011 eval "ac_cv_func_$ac_func=no"
12013 rm -f conftest*
12016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12017 echo "$ac_t""yes" 1>&6
12018 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12019 cat >> confdefs.h <<EOF
12020 #define $ac_tr_func 1
12023 else
12024 echo "$ac_t""no" 1>&6
12026 done
12033 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12034 echo "configure:12035: checking for hypot declaration" >&5
12035 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12036 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12037 echo $ac_n "(cached) $ac_c" 1>&6
12038 else
12041 ac_ext=C
12042 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12043 ac_cpp='$CXXCPP $CPPFLAGS'
12044 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12045 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12046 cross_compiling=$ac_cv_prog_cxx_cross
12048 cat > conftest.$ac_ext <<EOF
12049 #line 12050 "configure"
12050 #include "confdefs.h"
12051 #include <math.h>
12052 int main() {
12053 hypot(0, 0);
12054 ; return 0; }
12056 if { (eval echo configure:12057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12057 rm -rf conftest*
12058 glibcpp_cv_func_hypot_use=yes
12059 else
12060 echo "configure: failed program was:" >&5
12061 cat conftest.$ac_ext >&5
12062 rm -rf conftest*
12063 glibcpp_cv_func_hypot_use=no
12065 rm -f conftest*
12066 ac_ext=c
12067 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12068 ac_cpp='$CPP $CPPFLAGS'
12069 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12070 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12071 cross_compiling=$ac_cv_prog_cc_cross
12077 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12079 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12080 for ac_func in hypot
12082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12083 echo "configure:12084: checking for $ac_func" >&5
12084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12085 echo $ac_n "(cached) $ac_c" 1>&6
12086 else
12087 cat > conftest.$ac_ext <<EOF
12088 #line 12089 "configure"
12089 #include "confdefs.h"
12090 /* System header to define __stub macros and hopefully few prototypes,
12091 which can conflict with char $ac_func(); below. */
12092 #include <assert.h>
12093 /* Override any gcc2 internal prototype to avoid an error. */
12094 /* We use char because int might match the return type of a gcc2
12095 builtin and then its argument prototype would still apply. */
12096 char $ac_func();
12098 int main() {
12100 /* The GNU C library defines this for functions which it implements
12101 to always fail with ENOSYS. Some functions are actually named
12102 something starting with __ and the normal name is an alias. */
12103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12104 choke me
12105 #else
12106 $ac_func();
12107 #endif
12109 ; return 0; }
12111 if { (eval echo configure:12112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12112 rm -rf conftest*
12113 eval "ac_cv_func_$ac_func=yes"
12114 else
12115 echo "configure: failed program was:" >&5
12116 cat conftest.$ac_ext >&5
12117 rm -rf conftest*
12118 eval "ac_cv_func_$ac_func=no"
12120 rm -f conftest*
12123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12124 echo "$ac_t""yes" 1>&6
12125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12126 cat >> confdefs.h <<EOF
12127 #define $ac_tr_func 1
12130 else
12131 echo "$ac_t""no" 1>&6
12133 done
12135 else
12137 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12138 echo "configure:12139: checking for _hypot declaration" >&5
12139 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12140 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12141 echo $ac_n "(cached) $ac_c" 1>&6
12142 else
12145 ac_ext=C
12146 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12147 ac_cpp='$CXXCPP $CPPFLAGS'
12148 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12149 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12150 cross_compiling=$ac_cv_prog_cxx_cross
12152 cat > conftest.$ac_ext <<EOF
12153 #line 12154 "configure"
12154 #include "confdefs.h"
12155 #include <math.h>
12156 int main() {
12157 _hypot(0, 0);
12158 ; return 0; }
12160 if { (eval echo configure:12161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12161 rm -rf conftest*
12162 glibcpp_cv_func__hypot_use=yes
12163 else
12164 echo "configure: failed program was:" >&5
12165 cat conftest.$ac_ext >&5
12166 rm -rf conftest*
12167 glibcpp_cv_func__hypot_use=no
12169 rm -f conftest*
12170 ac_ext=c
12171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12172 ac_cpp='$CPP $CPPFLAGS'
12173 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12174 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12175 cross_compiling=$ac_cv_prog_cc_cross
12181 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12183 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12184 for ac_func in _hypot
12186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12187 echo "configure:12188: checking for $ac_func" >&5
12188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12189 echo $ac_n "(cached) $ac_c" 1>&6
12190 else
12191 cat > conftest.$ac_ext <<EOF
12192 #line 12193 "configure"
12193 #include "confdefs.h"
12194 /* System header to define __stub macros and hopefully few prototypes,
12195 which can conflict with char $ac_func(); below. */
12196 #include <assert.h>
12197 /* Override any gcc2 internal prototype to avoid an error. */
12198 /* We use char because int might match the return type of a gcc2
12199 builtin and then its argument prototype would still apply. */
12200 char $ac_func();
12202 int main() {
12204 /* The GNU C library defines this for functions which it implements
12205 to always fail with ENOSYS. Some functions are actually named
12206 something starting with __ and the normal name is an alias. */
12207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12208 choke me
12209 #else
12210 $ac_func();
12211 #endif
12213 ; return 0; }
12215 if { (eval echo configure:12216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12216 rm -rf conftest*
12217 eval "ac_cv_func_$ac_func=yes"
12218 else
12219 echo "configure: failed program was:" >&5
12220 cat conftest.$ac_ext >&5
12221 rm -rf conftest*
12222 eval "ac_cv_func_$ac_func=no"
12224 rm -f conftest*
12227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12228 echo "$ac_t""yes" 1>&6
12229 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12230 cat >> confdefs.h <<EOF
12231 #define $ac_tr_func 1
12234 else
12235 echo "$ac_t""no" 1>&6
12237 done
12244 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12245 echo "configure:12246: checking for float trig functions" >&5
12246 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12247 echo $ac_n "(cached) $ac_c" 1>&6
12248 else
12251 ac_ext=C
12252 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12253 ac_cpp='$CXXCPP $CPPFLAGS'
12254 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12255 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12256 cross_compiling=$ac_cv_prog_cxx_cross
12258 cat > conftest.$ac_ext <<EOF
12259 #line 12260 "configure"
12260 #include "confdefs.h"
12261 #include <math.h>
12262 int main() {
12263 `for x in acosf asinf atanf \
12264 cosf sinf tanf \
12265 coshf sinhf tanhf; do echo "$x (0);"; done`
12266 ; return 0; }
12268 if { (eval echo configure:12269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12269 rm -rf conftest*
12270 glibcpp_cv_func_float_trig_use=yes
12271 else
12272 echo "configure: failed program was:" >&5
12273 cat conftest.$ac_ext >&5
12274 rm -rf conftest*
12275 glibcpp_cv_func_float_trig_use=no
12277 rm -f conftest*
12278 ac_ext=c
12279 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12280 ac_cpp='$CPP $CPPFLAGS'
12281 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12282 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12283 cross_compiling=$ac_cv_prog_cc_cross
12287 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12288 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12289 for ac_func in acosf asinf atanf \
12290 cosf sinf tanf \
12291 coshf sinhf tanhf
12293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12294 echo "configure:12295: checking for $ac_func" >&5
12295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12296 echo $ac_n "(cached) $ac_c" 1>&6
12297 else
12298 cat > conftest.$ac_ext <<EOF
12299 #line 12300 "configure"
12300 #include "confdefs.h"
12301 /* System header to define __stub macros and hopefully few prototypes,
12302 which can conflict with char $ac_func(); below. */
12303 #include <assert.h>
12304 /* Override any gcc2 internal prototype to avoid an error. */
12305 /* We use char because int might match the return type of a gcc2
12306 builtin and then its argument prototype would still apply. */
12307 char $ac_func();
12309 int main() {
12311 /* The GNU C library defines this for functions which it implements
12312 to always fail with ENOSYS. Some functions are actually named
12313 something starting with __ and the normal name is an alias. */
12314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12315 choke me
12316 #else
12317 $ac_func();
12318 #endif
12320 ; return 0; }
12322 if { (eval echo configure:12323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12323 rm -rf conftest*
12324 eval "ac_cv_func_$ac_func=yes"
12325 else
12326 echo "configure: failed program was:" >&5
12327 cat conftest.$ac_ext >&5
12328 rm -rf conftest*
12329 eval "ac_cv_func_$ac_func=no"
12331 rm -f conftest*
12334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12335 echo "$ac_t""yes" 1>&6
12336 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12337 cat >> confdefs.h <<EOF
12338 #define $ac_tr_func 1
12341 else
12342 echo "$ac_t""no" 1>&6
12344 done
12349 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12350 echo "configure:12351: checking for float round functions" >&5
12351 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12352 echo $ac_n "(cached) $ac_c" 1>&6
12353 else
12356 ac_ext=C
12357 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12358 ac_cpp='$CXXCPP $CPPFLAGS'
12359 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12360 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12361 cross_compiling=$ac_cv_prog_cxx_cross
12363 cat > conftest.$ac_ext <<EOF
12364 #line 12365 "configure"
12365 #include "confdefs.h"
12366 #include <math.h>
12367 int main() {
12368 `for x in ceilf floorf; do echo "$x (0);"; done`
12369 ; return 0; }
12371 if { (eval echo configure:12372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12372 rm -rf conftest*
12373 glibcpp_cv_func_float_round_use=yes
12374 else
12375 echo "configure: failed program was:" >&5
12376 cat conftest.$ac_ext >&5
12377 rm -rf conftest*
12378 glibcpp_cv_func_float_round_use=no
12380 rm -f conftest*
12381 ac_ext=c
12382 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12383 ac_cpp='$CPP $CPPFLAGS'
12384 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12385 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12386 cross_compiling=$ac_cv_prog_cc_cross
12390 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12391 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12392 for ac_func in ceilf floorf
12394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12395 echo "configure:12396: checking for $ac_func" >&5
12396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12397 echo $ac_n "(cached) $ac_c" 1>&6
12398 else
12399 cat > conftest.$ac_ext <<EOF
12400 #line 12401 "configure"
12401 #include "confdefs.h"
12402 /* System header to define __stub macros and hopefully few prototypes,
12403 which can conflict with char $ac_func(); below. */
12404 #include <assert.h>
12405 /* Override any gcc2 internal prototype to avoid an error. */
12406 /* We use char because int might match the return type of a gcc2
12407 builtin and then its argument prototype would still apply. */
12408 char $ac_func();
12410 int main() {
12412 /* The GNU C library defines this for functions which it implements
12413 to always fail with ENOSYS. Some functions are actually named
12414 something starting with __ and the normal name is an alias. */
12415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12416 choke me
12417 #else
12418 $ac_func();
12419 #endif
12421 ; return 0; }
12423 if { (eval echo configure:12424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12424 rm -rf conftest*
12425 eval "ac_cv_func_$ac_func=yes"
12426 else
12427 echo "configure: failed program was:" >&5
12428 cat conftest.$ac_ext >&5
12429 rm -rf conftest*
12430 eval "ac_cv_func_$ac_func=no"
12432 rm -f conftest*
12435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12436 echo "$ac_t""yes" 1>&6
12437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12438 cat >> confdefs.h <<EOF
12439 #define $ac_tr_func 1
12442 else
12443 echo "$ac_t""no" 1>&6
12445 done
12451 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12452 echo "configure:12453: checking for expf declaration" >&5
12453 if test x${glibcpp_cv_func_expf_use+set} != xset; then
12454 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12455 echo $ac_n "(cached) $ac_c" 1>&6
12456 else
12459 ac_ext=C
12460 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12461 ac_cpp='$CXXCPP $CPPFLAGS'
12462 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12463 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12464 cross_compiling=$ac_cv_prog_cxx_cross
12466 cat > conftest.$ac_ext <<EOF
12467 #line 12468 "configure"
12468 #include "confdefs.h"
12469 #include <math.h>
12470 #ifdef HAVE_IEEEFP_H
12471 #include <ieeefp.h>
12472 #endif
12474 int main() {
12475 expf(0);
12476 ; return 0; }
12478 if { (eval echo configure:12479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12479 rm -rf conftest*
12480 glibcpp_cv_func_expf_use=yes
12481 else
12482 echo "configure: failed program was:" >&5
12483 cat conftest.$ac_ext >&5
12484 rm -rf conftest*
12485 glibcpp_cv_func_expf_use=no
12487 rm -f conftest*
12488 ac_ext=c
12489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12490 ac_cpp='$CPP $CPPFLAGS'
12491 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12492 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12493 cross_compiling=$ac_cv_prog_cc_cross
12499 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12501 if test x$glibcpp_cv_func_expf_use = x"yes"; then
12502 for ac_func in expf
12504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12505 echo "configure:12506: checking for $ac_func" >&5
12506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12507 echo $ac_n "(cached) $ac_c" 1>&6
12508 else
12509 cat > conftest.$ac_ext <<EOF
12510 #line 12511 "configure"
12511 #include "confdefs.h"
12512 /* System header to define __stub macros and hopefully few prototypes,
12513 which can conflict with char $ac_func(); below. */
12514 #include <assert.h>
12515 /* Override any gcc2 internal prototype to avoid an error. */
12516 /* We use char because int might match the return type of a gcc2
12517 builtin and then its argument prototype would still apply. */
12518 char $ac_func();
12520 int main() {
12522 /* The GNU C library defines this for functions which it implements
12523 to always fail with ENOSYS. Some functions are actually named
12524 something starting with __ and the normal name is an alias. */
12525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12526 choke me
12527 #else
12528 $ac_func();
12529 #endif
12531 ; return 0; }
12533 if { (eval echo configure:12534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12534 rm -rf conftest*
12535 eval "ac_cv_func_$ac_func=yes"
12536 else
12537 echo "configure: failed program was:" >&5
12538 cat conftest.$ac_ext >&5
12539 rm -rf conftest*
12540 eval "ac_cv_func_$ac_func=no"
12542 rm -f conftest*
12545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12546 echo "$ac_t""yes" 1>&6
12547 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12548 cat >> confdefs.h <<EOF
12549 #define $ac_tr_func 1
12552 else
12553 echo "$ac_t""no" 1>&6
12555 done
12557 else
12559 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12560 echo "configure:12561: checking for _expf declaration" >&5
12561 if test x${glibcpp_cv_func__expf_use+set} != xset; then
12562 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12563 echo $ac_n "(cached) $ac_c" 1>&6
12564 else
12567 ac_ext=C
12568 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12569 ac_cpp='$CXXCPP $CPPFLAGS'
12570 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12571 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12572 cross_compiling=$ac_cv_prog_cxx_cross
12574 cat > conftest.$ac_ext <<EOF
12575 #line 12576 "configure"
12576 #include "confdefs.h"
12577 #include <math.h>
12578 #ifdef HAVE_IEEEFP_H
12579 #include <ieeefp.h>
12580 #endif
12582 int main() {
12583 _expf(0);
12584 ; return 0; }
12586 if { (eval echo configure:12587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12587 rm -rf conftest*
12588 glibcpp_cv_func__expf_use=yes
12589 else
12590 echo "configure: failed program was:" >&5
12591 cat conftest.$ac_ext >&5
12592 rm -rf conftest*
12593 glibcpp_cv_func__expf_use=no
12595 rm -f conftest*
12596 ac_ext=c
12597 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12598 ac_cpp='$CPP $CPPFLAGS'
12599 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12600 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12601 cross_compiling=$ac_cv_prog_cc_cross
12607 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12609 if test x$glibcpp_cv_func__expf_use = x"yes"; then
12610 for ac_func in _expf
12612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12613 echo "configure:12614: checking for $ac_func" >&5
12614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12615 echo $ac_n "(cached) $ac_c" 1>&6
12616 else
12617 cat > conftest.$ac_ext <<EOF
12618 #line 12619 "configure"
12619 #include "confdefs.h"
12620 /* System header to define __stub macros and hopefully few prototypes,
12621 which can conflict with char $ac_func(); below. */
12622 #include <assert.h>
12623 /* Override any gcc2 internal prototype to avoid an error. */
12624 /* We use char because int might match the return type of a gcc2
12625 builtin and then its argument prototype would still apply. */
12626 char $ac_func();
12628 int main() {
12630 /* The GNU C library defines this for functions which it implements
12631 to always fail with ENOSYS. Some functions are actually named
12632 something starting with __ and the normal name is an alias. */
12633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12634 choke me
12635 #else
12636 $ac_func();
12637 #endif
12639 ; return 0; }
12641 if { (eval echo configure:12642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12642 rm -rf conftest*
12643 eval "ac_cv_func_$ac_func=yes"
12644 else
12645 echo "configure: failed program was:" >&5
12646 cat conftest.$ac_ext >&5
12647 rm -rf conftest*
12648 eval "ac_cv_func_$ac_func=no"
12650 rm -f conftest*
12653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12654 echo "$ac_t""yes" 1>&6
12655 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12656 cat >> confdefs.h <<EOF
12657 #define $ac_tr_func 1
12660 else
12661 echo "$ac_t""no" 1>&6
12663 done
12670 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12671 echo "configure:12672: checking for isnanf declaration" >&5
12672 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12673 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12674 echo $ac_n "(cached) $ac_c" 1>&6
12675 else
12678 ac_ext=C
12679 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12680 ac_cpp='$CXXCPP $CPPFLAGS'
12681 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12682 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12683 cross_compiling=$ac_cv_prog_cxx_cross
12685 cat > conftest.$ac_ext <<EOF
12686 #line 12687 "configure"
12687 #include "confdefs.h"
12688 #include <math.h>
12689 #ifdef HAVE_IEEEFP_H
12690 #include <ieeefp.h>
12691 #endif
12693 int main() {
12694 isnanf(0);
12695 ; return 0; }
12697 if { (eval echo configure:12698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12698 rm -rf conftest*
12699 glibcpp_cv_func_isnanf_use=yes
12700 else
12701 echo "configure: failed program was:" >&5
12702 cat conftest.$ac_ext >&5
12703 rm -rf conftest*
12704 glibcpp_cv_func_isnanf_use=no
12706 rm -f conftest*
12707 ac_ext=c
12708 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12709 ac_cpp='$CPP $CPPFLAGS'
12710 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12711 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12712 cross_compiling=$ac_cv_prog_cc_cross
12718 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12720 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12721 for ac_func in isnanf
12723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12724 echo "configure:12725: checking for $ac_func" >&5
12725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12726 echo $ac_n "(cached) $ac_c" 1>&6
12727 else
12728 cat > conftest.$ac_ext <<EOF
12729 #line 12730 "configure"
12730 #include "confdefs.h"
12731 /* System header to define __stub macros and hopefully few prototypes,
12732 which can conflict with char $ac_func(); below. */
12733 #include <assert.h>
12734 /* Override any gcc2 internal prototype to avoid an error. */
12735 /* We use char because int might match the return type of a gcc2
12736 builtin and then its argument prototype would still apply. */
12737 char $ac_func();
12739 int main() {
12741 /* The GNU C library defines this for functions which it implements
12742 to always fail with ENOSYS. Some functions are actually named
12743 something starting with __ and the normal name is an alias. */
12744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12745 choke me
12746 #else
12747 $ac_func();
12748 #endif
12750 ; return 0; }
12752 if { (eval echo configure:12753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12753 rm -rf conftest*
12754 eval "ac_cv_func_$ac_func=yes"
12755 else
12756 echo "configure: failed program was:" >&5
12757 cat conftest.$ac_ext >&5
12758 rm -rf conftest*
12759 eval "ac_cv_func_$ac_func=no"
12761 rm -f conftest*
12764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12765 echo "$ac_t""yes" 1>&6
12766 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12767 cat >> confdefs.h <<EOF
12768 #define $ac_tr_func 1
12771 else
12772 echo "$ac_t""no" 1>&6
12774 done
12776 else
12778 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12779 echo "configure:12780: checking for _isnanf declaration" >&5
12780 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
12781 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
12782 echo $ac_n "(cached) $ac_c" 1>&6
12783 else
12786 ac_ext=C
12787 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12788 ac_cpp='$CXXCPP $CPPFLAGS'
12789 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12790 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12791 cross_compiling=$ac_cv_prog_cxx_cross
12793 cat > conftest.$ac_ext <<EOF
12794 #line 12795 "configure"
12795 #include "confdefs.h"
12796 #include <math.h>
12797 #ifdef HAVE_IEEEFP_H
12798 #include <ieeefp.h>
12799 #endif
12801 int main() {
12802 _isnanf(0);
12803 ; return 0; }
12805 if { (eval echo configure:12806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12806 rm -rf conftest*
12807 glibcpp_cv_func__isnanf_use=yes
12808 else
12809 echo "configure: failed program was:" >&5
12810 cat conftest.$ac_ext >&5
12811 rm -rf conftest*
12812 glibcpp_cv_func__isnanf_use=no
12814 rm -f conftest*
12815 ac_ext=c
12816 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12817 ac_cpp='$CPP $CPPFLAGS'
12818 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12819 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12820 cross_compiling=$ac_cv_prog_cc_cross
12826 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
12828 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
12829 for ac_func in _isnanf
12831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12832 echo "configure:12833: checking for $ac_func" >&5
12833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12834 echo $ac_n "(cached) $ac_c" 1>&6
12835 else
12836 cat > conftest.$ac_ext <<EOF
12837 #line 12838 "configure"
12838 #include "confdefs.h"
12839 /* System header to define __stub macros and hopefully few prototypes,
12840 which can conflict with char $ac_func(); below. */
12841 #include <assert.h>
12842 /* Override any gcc2 internal prototype to avoid an error. */
12843 /* We use char because int might match the return type of a gcc2
12844 builtin and then its argument prototype would still apply. */
12845 char $ac_func();
12847 int main() {
12849 /* The GNU C library defines this for functions which it implements
12850 to always fail with ENOSYS. Some functions are actually named
12851 something starting with __ and the normal name is an alias. */
12852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12853 choke me
12854 #else
12855 $ac_func();
12856 #endif
12858 ; return 0; }
12860 if { (eval echo configure:12861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12861 rm -rf conftest*
12862 eval "ac_cv_func_$ac_func=yes"
12863 else
12864 echo "configure: failed program was:" >&5
12865 cat conftest.$ac_ext >&5
12866 rm -rf conftest*
12867 eval "ac_cv_func_$ac_func=no"
12869 rm -f conftest*
12872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12873 echo "$ac_t""yes" 1>&6
12874 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12875 cat >> confdefs.h <<EOF
12876 #define $ac_tr_func 1
12879 else
12880 echo "$ac_t""no" 1>&6
12882 done
12889 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
12890 echo "configure:12891: checking for isinff declaration" >&5
12891 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
12892 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
12893 echo $ac_n "(cached) $ac_c" 1>&6
12894 else
12897 ac_ext=C
12898 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12899 ac_cpp='$CXXCPP $CPPFLAGS'
12900 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12901 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12902 cross_compiling=$ac_cv_prog_cxx_cross
12904 cat > conftest.$ac_ext <<EOF
12905 #line 12906 "configure"
12906 #include "confdefs.h"
12907 #include <math.h>
12908 #ifdef HAVE_IEEEFP_H
12909 #include <ieeefp.h>
12910 #endif
12912 int main() {
12913 isinff(0);
12914 ; return 0; }
12916 if { (eval echo configure:12917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12917 rm -rf conftest*
12918 glibcpp_cv_func_isinff_use=yes
12919 else
12920 echo "configure: failed program was:" >&5
12921 cat conftest.$ac_ext >&5
12922 rm -rf conftest*
12923 glibcpp_cv_func_isinff_use=no
12925 rm -f conftest*
12926 ac_ext=c
12927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12928 ac_cpp='$CPP $CPPFLAGS'
12929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12931 cross_compiling=$ac_cv_prog_cc_cross
12937 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
12939 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
12940 for ac_func in isinff
12942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12943 echo "configure:12944: checking for $ac_func" >&5
12944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12945 echo $ac_n "(cached) $ac_c" 1>&6
12946 else
12947 cat > conftest.$ac_ext <<EOF
12948 #line 12949 "configure"
12949 #include "confdefs.h"
12950 /* System header to define __stub macros and hopefully few prototypes,
12951 which can conflict with char $ac_func(); below. */
12952 #include <assert.h>
12953 /* Override any gcc2 internal prototype to avoid an error. */
12954 /* We use char because int might match the return type of a gcc2
12955 builtin and then its argument prototype would still apply. */
12956 char $ac_func();
12958 int main() {
12960 /* The GNU C library defines this for functions which it implements
12961 to always fail with ENOSYS. Some functions are actually named
12962 something starting with __ and the normal name is an alias. */
12963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12964 choke me
12965 #else
12966 $ac_func();
12967 #endif
12969 ; return 0; }
12971 if { (eval echo configure:12972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12972 rm -rf conftest*
12973 eval "ac_cv_func_$ac_func=yes"
12974 else
12975 echo "configure: failed program was:" >&5
12976 cat conftest.$ac_ext >&5
12977 rm -rf conftest*
12978 eval "ac_cv_func_$ac_func=no"
12980 rm -f conftest*
12983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12984 echo "$ac_t""yes" 1>&6
12985 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12986 cat >> confdefs.h <<EOF
12987 #define $ac_tr_func 1
12990 else
12991 echo "$ac_t""no" 1>&6
12993 done
12995 else
12997 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
12998 echo "configure:12999: checking for _isinff declaration" >&5
12999 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13000 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13001 echo $ac_n "(cached) $ac_c" 1>&6
13002 else
13005 ac_ext=C
13006 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13007 ac_cpp='$CXXCPP $CPPFLAGS'
13008 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13009 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13010 cross_compiling=$ac_cv_prog_cxx_cross
13012 cat > conftest.$ac_ext <<EOF
13013 #line 13014 "configure"
13014 #include "confdefs.h"
13015 #include <math.h>
13016 #ifdef HAVE_IEEEFP_H
13017 #include <ieeefp.h>
13018 #endif
13020 int main() {
13021 _isinff(0);
13022 ; return 0; }
13024 if { (eval echo configure:13025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13025 rm -rf conftest*
13026 glibcpp_cv_func__isinff_use=yes
13027 else
13028 echo "configure: failed program was:" >&5
13029 cat conftest.$ac_ext >&5
13030 rm -rf conftest*
13031 glibcpp_cv_func__isinff_use=no
13033 rm -f conftest*
13034 ac_ext=c
13035 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13036 ac_cpp='$CPP $CPPFLAGS'
13037 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13038 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13039 cross_compiling=$ac_cv_prog_cc_cross
13045 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13047 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13048 for ac_func in _isinff
13050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13051 echo "configure:13052: checking for $ac_func" >&5
13052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13053 echo $ac_n "(cached) $ac_c" 1>&6
13054 else
13055 cat > conftest.$ac_ext <<EOF
13056 #line 13057 "configure"
13057 #include "confdefs.h"
13058 /* System header to define __stub macros and hopefully few prototypes,
13059 which can conflict with char $ac_func(); below. */
13060 #include <assert.h>
13061 /* Override any gcc2 internal prototype to avoid an error. */
13062 /* We use char because int might match the return type of a gcc2
13063 builtin and then its argument prototype would still apply. */
13064 char $ac_func();
13066 int main() {
13068 /* The GNU C library defines this for functions which it implements
13069 to always fail with ENOSYS. Some functions are actually named
13070 something starting with __ and the normal name is an alias. */
13071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13072 choke me
13073 #else
13074 $ac_func();
13075 #endif
13077 ; return 0; }
13079 if { (eval echo configure:13080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13080 rm -rf conftest*
13081 eval "ac_cv_func_$ac_func=yes"
13082 else
13083 echo "configure: failed program was:" >&5
13084 cat conftest.$ac_ext >&5
13085 rm -rf conftest*
13086 eval "ac_cv_func_$ac_func=no"
13088 rm -f conftest*
13091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13092 echo "$ac_t""yes" 1>&6
13093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13094 cat >> confdefs.h <<EOF
13095 #define $ac_tr_func 1
13098 else
13099 echo "$ac_t""no" 1>&6
13101 done
13108 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13109 echo "configure:13110: checking for atan2f declaration" >&5
13110 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13111 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13112 echo $ac_n "(cached) $ac_c" 1>&6
13113 else
13116 ac_ext=C
13117 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13118 ac_cpp='$CXXCPP $CPPFLAGS'
13119 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13120 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13121 cross_compiling=$ac_cv_prog_cxx_cross
13123 cat > conftest.$ac_ext <<EOF
13124 #line 13125 "configure"
13125 #include "confdefs.h"
13126 #include <math.h>
13127 int main() {
13128 atan2f(0, 0);
13129 ; return 0; }
13131 if { (eval echo configure:13132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13132 rm -rf conftest*
13133 glibcpp_cv_func_atan2f_use=yes
13134 else
13135 echo "configure: failed program was:" >&5
13136 cat conftest.$ac_ext >&5
13137 rm -rf conftest*
13138 glibcpp_cv_func_atan2f_use=no
13140 rm -f conftest*
13141 ac_ext=c
13142 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13143 ac_cpp='$CPP $CPPFLAGS'
13144 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13145 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13146 cross_compiling=$ac_cv_prog_cc_cross
13152 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13154 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13155 for ac_func in atan2f
13157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13158 echo "configure:13159: checking for $ac_func" >&5
13159 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13160 echo $ac_n "(cached) $ac_c" 1>&6
13161 else
13162 cat > conftest.$ac_ext <<EOF
13163 #line 13164 "configure"
13164 #include "confdefs.h"
13165 /* System header to define __stub macros and hopefully few prototypes,
13166 which can conflict with char $ac_func(); below. */
13167 #include <assert.h>
13168 /* Override any gcc2 internal prototype to avoid an error. */
13169 /* We use char because int might match the return type of a gcc2
13170 builtin and then its argument prototype would still apply. */
13171 char $ac_func();
13173 int main() {
13175 /* The GNU C library defines this for functions which it implements
13176 to always fail with ENOSYS. Some functions are actually named
13177 something starting with __ and the normal name is an alias. */
13178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13179 choke me
13180 #else
13181 $ac_func();
13182 #endif
13184 ; return 0; }
13186 if { (eval echo configure:13187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13187 rm -rf conftest*
13188 eval "ac_cv_func_$ac_func=yes"
13189 else
13190 echo "configure: failed program was:" >&5
13191 cat conftest.$ac_ext >&5
13192 rm -rf conftest*
13193 eval "ac_cv_func_$ac_func=no"
13195 rm -f conftest*
13198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13199 echo "$ac_t""yes" 1>&6
13200 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13201 cat >> confdefs.h <<EOF
13202 #define $ac_tr_func 1
13205 else
13206 echo "$ac_t""no" 1>&6
13208 done
13210 else
13212 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13213 echo "configure:13214: checking for _atan2f declaration" >&5
13214 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13215 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13216 echo $ac_n "(cached) $ac_c" 1>&6
13217 else
13220 ac_ext=C
13221 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13222 ac_cpp='$CXXCPP $CPPFLAGS'
13223 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13224 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13225 cross_compiling=$ac_cv_prog_cxx_cross
13227 cat > conftest.$ac_ext <<EOF
13228 #line 13229 "configure"
13229 #include "confdefs.h"
13230 #include <math.h>
13231 int main() {
13232 _atan2f(0, 0);
13233 ; return 0; }
13235 if { (eval echo configure:13236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13236 rm -rf conftest*
13237 glibcpp_cv_func__atan2f_use=yes
13238 else
13239 echo "configure: failed program was:" >&5
13240 cat conftest.$ac_ext >&5
13241 rm -rf conftest*
13242 glibcpp_cv_func__atan2f_use=no
13244 rm -f conftest*
13245 ac_ext=c
13246 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13247 ac_cpp='$CPP $CPPFLAGS'
13248 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13249 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13250 cross_compiling=$ac_cv_prog_cc_cross
13256 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13258 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13259 for ac_func in _atan2f
13261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13262 echo "configure:13263: checking for $ac_func" >&5
13263 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13264 echo $ac_n "(cached) $ac_c" 1>&6
13265 else
13266 cat > conftest.$ac_ext <<EOF
13267 #line 13268 "configure"
13268 #include "confdefs.h"
13269 /* System header to define __stub macros and hopefully few prototypes,
13270 which can conflict with char $ac_func(); below. */
13271 #include <assert.h>
13272 /* Override any gcc2 internal prototype to avoid an error. */
13273 /* We use char because int might match the return type of a gcc2
13274 builtin and then its argument prototype would still apply. */
13275 char $ac_func();
13277 int main() {
13279 /* The GNU C library defines this for functions which it implements
13280 to always fail with ENOSYS. Some functions are actually named
13281 something starting with __ and the normal name is an alias. */
13282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13283 choke me
13284 #else
13285 $ac_func();
13286 #endif
13288 ; return 0; }
13290 if { (eval echo configure:13291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13291 rm -rf conftest*
13292 eval "ac_cv_func_$ac_func=yes"
13293 else
13294 echo "configure: failed program was:" >&5
13295 cat conftest.$ac_ext >&5
13296 rm -rf conftest*
13297 eval "ac_cv_func_$ac_func=no"
13299 rm -f conftest*
13302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13303 echo "$ac_t""yes" 1>&6
13304 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13305 cat >> confdefs.h <<EOF
13306 #define $ac_tr_func 1
13309 else
13310 echo "$ac_t""no" 1>&6
13312 done
13319 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13320 echo "configure:13321: checking for fabsf declaration" >&5
13321 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13322 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13323 echo $ac_n "(cached) $ac_c" 1>&6
13324 else
13327 ac_ext=C
13328 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13329 ac_cpp='$CXXCPP $CPPFLAGS'
13330 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13331 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13332 cross_compiling=$ac_cv_prog_cxx_cross
13334 cat > conftest.$ac_ext <<EOF
13335 #line 13336 "configure"
13336 #include "confdefs.h"
13337 #include <math.h>
13338 #ifdef HAVE_IEEEFP_H
13339 #include <ieeefp.h>
13340 #endif
13342 int main() {
13343 fabsf(0);
13344 ; return 0; }
13346 if { (eval echo configure:13347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13347 rm -rf conftest*
13348 glibcpp_cv_func_fabsf_use=yes
13349 else
13350 echo "configure: failed program was:" >&5
13351 cat conftest.$ac_ext >&5
13352 rm -rf conftest*
13353 glibcpp_cv_func_fabsf_use=no
13355 rm -f conftest*
13356 ac_ext=c
13357 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13358 ac_cpp='$CPP $CPPFLAGS'
13359 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13360 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13361 cross_compiling=$ac_cv_prog_cc_cross
13367 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13369 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13370 for ac_func in fabsf
13372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13373 echo "configure:13374: checking for $ac_func" >&5
13374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13375 echo $ac_n "(cached) $ac_c" 1>&6
13376 else
13377 cat > conftest.$ac_ext <<EOF
13378 #line 13379 "configure"
13379 #include "confdefs.h"
13380 /* System header to define __stub macros and hopefully few prototypes,
13381 which can conflict with char $ac_func(); below. */
13382 #include <assert.h>
13383 /* Override any gcc2 internal prototype to avoid an error. */
13384 /* We use char because int might match the return type of a gcc2
13385 builtin and then its argument prototype would still apply. */
13386 char $ac_func();
13388 int main() {
13390 /* The GNU C library defines this for functions which it implements
13391 to always fail with ENOSYS. Some functions are actually named
13392 something starting with __ and the normal name is an alias. */
13393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13394 choke me
13395 #else
13396 $ac_func();
13397 #endif
13399 ; return 0; }
13401 if { (eval echo configure:13402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13402 rm -rf conftest*
13403 eval "ac_cv_func_$ac_func=yes"
13404 else
13405 echo "configure: failed program was:" >&5
13406 cat conftest.$ac_ext >&5
13407 rm -rf conftest*
13408 eval "ac_cv_func_$ac_func=no"
13410 rm -f conftest*
13413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13414 echo "$ac_t""yes" 1>&6
13415 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13416 cat >> confdefs.h <<EOF
13417 #define $ac_tr_func 1
13420 else
13421 echo "$ac_t""no" 1>&6
13423 done
13425 else
13427 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13428 echo "configure:13429: checking for _fabsf declaration" >&5
13429 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13430 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13431 echo $ac_n "(cached) $ac_c" 1>&6
13432 else
13435 ac_ext=C
13436 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13437 ac_cpp='$CXXCPP $CPPFLAGS'
13438 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13439 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13440 cross_compiling=$ac_cv_prog_cxx_cross
13442 cat > conftest.$ac_ext <<EOF
13443 #line 13444 "configure"
13444 #include "confdefs.h"
13445 #include <math.h>
13446 #ifdef HAVE_IEEEFP_H
13447 #include <ieeefp.h>
13448 #endif
13450 int main() {
13451 _fabsf(0);
13452 ; return 0; }
13454 if { (eval echo configure:13455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13455 rm -rf conftest*
13456 glibcpp_cv_func__fabsf_use=yes
13457 else
13458 echo "configure: failed program was:" >&5
13459 cat conftest.$ac_ext >&5
13460 rm -rf conftest*
13461 glibcpp_cv_func__fabsf_use=no
13463 rm -f conftest*
13464 ac_ext=c
13465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13466 ac_cpp='$CPP $CPPFLAGS'
13467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13469 cross_compiling=$ac_cv_prog_cc_cross
13475 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13477 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13478 for ac_func in _fabsf
13480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13481 echo "configure:13482: checking for $ac_func" >&5
13482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13483 echo $ac_n "(cached) $ac_c" 1>&6
13484 else
13485 cat > conftest.$ac_ext <<EOF
13486 #line 13487 "configure"
13487 #include "confdefs.h"
13488 /* System header to define __stub macros and hopefully few prototypes,
13489 which can conflict with char $ac_func(); below. */
13490 #include <assert.h>
13491 /* Override any gcc2 internal prototype to avoid an error. */
13492 /* We use char because int might match the return type of a gcc2
13493 builtin and then its argument prototype would still apply. */
13494 char $ac_func();
13496 int main() {
13498 /* The GNU C library defines this for functions which it implements
13499 to always fail with ENOSYS. Some functions are actually named
13500 something starting with __ and the normal name is an alias. */
13501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13502 choke me
13503 #else
13504 $ac_func();
13505 #endif
13507 ; return 0; }
13509 if { (eval echo configure:13510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13510 rm -rf conftest*
13511 eval "ac_cv_func_$ac_func=yes"
13512 else
13513 echo "configure: failed program was:" >&5
13514 cat conftest.$ac_ext >&5
13515 rm -rf conftest*
13516 eval "ac_cv_func_$ac_func=no"
13518 rm -f conftest*
13521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13522 echo "$ac_t""yes" 1>&6
13523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13524 cat >> confdefs.h <<EOF
13525 #define $ac_tr_func 1
13528 else
13529 echo "$ac_t""no" 1>&6
13531 done
13538 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13539 echo "configure:13540: checking for fmodf declaration" >&5
13540 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13541 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13542 echo $ac_n "(cached) $ac_c" 1>&6
13543 else
13546 ac_ext=C
13547 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13548 ac_cpp='$CXXCPP $CPPFLAGS'
13549 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13550 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13551 cross_compiling=$ac_cv_prog_cxx_cross
13553 cat > conftest.$ac_ext <<EOF
13554 #line 13555 "configure"
13555 #include "confdefs.h"
13556 #include <math.h>
13557 int main() {
13558 fmodf(0, 0);
13559 ; return 0; }
13561 if { (eval echo configure:13562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13562 rm -rf conftest*
13563 glibcpp_cv_func_fmodf_use=yes
13564 else
13565 echo "configure: failed program was:" >&5
13566 cat conftest.$ac_ext >&5
13567 rm -rf conftest*
13568 glibcpp_cv_func_fmodf_use=no
13570 rm -f conftest*
13571 ac_ext=c
13572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13573 ac_cpp='$CPP $CPPFLAGS'
13574 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13575 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13576 cross_compiling=$ac_cv_prog_cc_cross
13582 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13584 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13585 for ac_func in fmodf
13587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13588 echo "configure:13589: checking for $ac_func" >&5
13589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13590 echo $ac_n "(cached) $ac_c" 1>&6
13591 else
13592 cat > conftest.$ac_ext <<EOF
13593 #line 13594 "configure"
13594 #include "confdefs.h"
13595 /* System header to define __stub macros and hopefully few prototypes,
13596 which can conflict with char $ac_func(); below. */
13597 #include <assert.h>
13598 /* Override any gcc2 internal prototype to avoid an error. */
13599 /* We use char because int might match the return type of a gcc2
13600 builtin and then its argument prototype would still apply. */
13601 char $ac_func();
13603 int main() {
13605 /* The GNU C library defines this for functions which it implements
13606 to always fail with ENOSYS. Some functions are actually named
13607 something starting with __ and the normal name is an alias. */
13608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13609 choke me
13610 #else
13611 $ac_func();
13612 #endif
13614 ; return 0; }
13616 if { (eval echo configure:13617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13617 rm -rf conftest*
13618 eval "ac_cv_func_$ac_func=yes"
13619 else
13620 echo "configure: failed program was:" >&5
13621 cat conftest.$ac_ext >&5
13622 rm -rf conftest*
13623 eval "ac_cv_func_$ac_func=no"
13625 rm -f conftest*
13628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13629 echo "$ac_t""yes" 1>&6
13630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13631 cat >> confdefs.h <<EOF
13632 #define $ac_tr_func 1
13635 else
13636 echo "$ac_t""no" 1>&6
13638 done
13640 else
13642 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13643 echo "configure:13644: checking for _fmodf declaration" >&5
13644 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13645 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13646 echo $ac_n "(cached) $ac_c" 1>&6
13647 else
13650 ac_ext=C
13651 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13652 ac_cpp='$CXXCPP $CPPFLAGS'
13653 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13654 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13655 cross_compiling=$ac_cv_prog_cxx_cross
13657 cat > conftest.$ac_ext <<EOF
13658 #line 13659 "configure"
13659 #include "confdefs.h"
13660 #include <math.h>
13661 int main() {
13662 _fmodf(0, 0);
13663 ; return 0; }
13665 if { (eval echo configure:13666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13666 rm -rf conftest*
13667 glibcpp_cv_func__fmodf_use=yes
13668 else
13669 echo "configure: failed program was:" >&5
13670 cat conftest.$ac_ext >&5
13671 rm -rf conftest*
13672 glibcpp_cv_func__fmodf_use=no
13674 rm -f conftest*
13675 ac_ext=c
13676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13677 ac_cpp='$CPP $CPPFLAGS'
13678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13680 cross_compiling=$ac_cv_prog_cc_cross
13686 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13688 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13689 for ac_func in _fmodf
13691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13692 echo "configure:13693: checking for $ac_func" >&5
13693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13694 echo $ac_n "(cached) $ac_c" 1>&6
13695 else
13696 cat > conftest.$ac_ext <<EOF
13697 #line 13698 "configure"
13698 #include "confdefs.h"
13699 /* System header to define __stub macros and hopefully few prototypes,
13700 which can conflict with char $ac_func(); below. */
13701 #include <assert.h>
13702 /* Override any gcc2 internal prototype to avoid an error. */
13703 /* We use char because int might match the return type of a gcc2
13704 builtin and then its argument prototype would still apply. */
13705 char $ac_func();
13707 int main() {
13709 /* The GNU C library defines this for functions which it implements
13710 to always fail with ENOSYS. Some functions are actually named
13711 something starting with __ and the normal name is an alias. */
13712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13713 choke me
13714 #else
13715 $ac_func();
13716 #endif
13718 ; return 0; }
13720 if { (eval echo configure:13721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13721 rm -rf conftest*
13722 eval "ac_cv_func_$ac_func=yes"
13723 else
13724 echo "configure: failed program was:" >&5
13725 cat conftest.$ac_ext >&5
13726 rm -rf conftest*
13727 eval "ac_cv_func_$ac_func=no"
13729 rm -f conftest*
13732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13733 echo "$ac_t""yes" 1>&6
13734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13735 cat >> confdefs.h <<EOF
13736 #define $ac_tr_func 1
13739 else
13740 echo "$ac_t""no" 1>&6
13742 done
13749 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13750 echo "configure:13751: checking for frexpf declaration" >&5
13751 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13752 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13753 echo $ac_n "(cached) $ac_c" 1>&6
13754 else
13757 ac_ext=C
13758 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13759 ac_cpp='$CXXCPP $CPPFLAGS'
13760 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13761 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13762 cross_compiling=$ac_cv_prog_cxx_cross
13764 cat > conftest.$ac_ext <<EOF
13765 #line 13766 "configure"
13766 #include "confdefs.h"
13767 #include <math.h>
13768 int main() {
13769 frexpf(0, 0);
13770 ; return 0; }
13772 if { (eval echo configure:13773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13773 rm -rf conftest*
13774 glibcpp_cv_func_frexpf_use=yes
13775 else
13776 echo "configure: failed program was:" >&5
13777 cat conftest.$ac_ext >&5
13778 rm -rf conftest*
13779 glibcpp_cv_func_frexpf_use=no
13781 rm -f conftest*
13782 ac_ext=c
13783 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13784 ac_cpp='$CPP $CPPFLAGS'
13785 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13786 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13787 cross_compiling=$ac_cv_prog_cc_cross
13793 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
13795 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
13796 for ac_func in frexpf
13798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13799 echo "configure:13800: checking for $ac_func" >&5
13800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13801 echo $ac_n "(cached) $ac_c" 1>&6
13802 else
13803 cat > conftest.$ac_ext <<EOF
13804 #line 13805 "configure"
13805 #include "confdefs.h"
13806 /* System header to define __stub macros and hopefully few prototypes,
13807 which can conflict with char $ac_func(); below. */
13808 #include <assert.h>
13809 /* Override any gcc2 internal prototype to avoid an error. */
13810 /* We use char because int might match the return type of a gcc2
13811 builtin and then its argument prototype would still apply. */
13812 char $ac_func();
13814 int main() {
13816 /* The GNU C library defines this for functions which it implements
13817 to always fail with ENOSYS. Some functions are actually named
13818 something starting with __ and the normal name is an alias. */
13819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13820 choke me
13821 #else
13822 $ac_func();
13823 #endif
13825 ; return 0; }
13827 if { (eval echo configure:13828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13828 rm -rf conftest*
13829 eval "ac_cv_func_$ac_func=yes"
13830 else
13831 echo "configure: failed program was:" >&5
13832 cat conftest.$ac_ext >&5
13833 rm -rf conftest*
13834 eval "ac_cv_func_$ac_func=no"
13836 rm -f conftest*
13839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13840 echo "$ac_t""yes" 1>&6
13841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13842 cat >> confdefs.h <<EOF
13843 #define $ac_tr_func 1
13846 else
13847 echo "$ac_t""no" 1>&6
13849 done
13851 else
13853 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
13854 echo "configure:13855: checking for _frexpf declaration" >&5
13855 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
13856 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
13857 echo $ac_n "(cached) $ac_c" 1>&6
13858 else
13861 ac_ext=C
13862 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13863 ac_cpp='$CXXCPP $CPPFLAGS'
13864 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13865 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13866 cross_compiling=$ac_cv_prog_cxx_cross
13868 cat > conftest.$ac_ext <<EOF
13869 #line 13870 "configure"
13870 #include "confdefs.h"
13871 #include <math.h>
13872 int main() {
13873 _frexpf(0, 0);
13874 ; return 0; }
13876 if { (eval echo configure:13877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13877 rm -rf conftest*
13878 glibcpp_cv_func__frexpf_use=yes
13879 else
13880 echo "configure: failed program was:" >&5
13881 cat conftest.$ac_ext >&5
13882 rm -rf conftest*
13883 glibcpp_cv_func__frexpf_use=no
13885 rm -f conftest*
13886 ac_ext=c
13887 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13888 ac_cpp='$CPP $CPPFLAGS'
13889 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13890 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13891 cross_compiling=$ac_cv_prog_cc_cross
13897 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
13899 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
13900 for ac_func in _frexpf
13902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13903 echo "configure:13904: checking for $ac_func" >&5
13904 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13905 echo $ac_n "(cached) $ac_c" 1>&6
13906 else
13907 cat > conftest.$ac_ext <<EOF
13908 #line 13909 "configure"
13909 #include "confdefs.h"
13910 /* System header to define __stub macros and hopefully few prototypes,
13911 which can conflict with char $ac_func(); below. */
13912 #include <assert.h>
13913 /* Override any gcc2 internal prototype to avoid an error. */
13914 /* We use char because int might match the return type of a gcc2
13915 builtin and then its argument prototype would still apply. */
13916 char $ac_func();
13918 int main() {
13920 /* The GNU C library defines this for functions which it implements
13921 to always fail with ENOSYS. Some functions are actually named
13922 something starting with __ and the normal name is an alias. */
13923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13924 choke me
13925 #else
13926 $ac_func();
13927 #endif
13929 ; return 0; }
13931 if { (eval echo configure:13932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13932 rm -rf conftest*
13933 eval "ac_cv_func_$ac_func=yes"
13934 else
13935 echo "configure: failed program was:" >&5
13936 cat conftest.$ac_ext >&5
13937 rm -rf conftest*
13938 eval "ac_cv_func_$ac_func=no"
13940 rm -f conftest*
13943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13944 echo "$ac_t""yes" 1>&6
13945 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13946 cat >> confdefs.h <<EOF
13947 #define $ac_tr_func 1
13950 else
13951 echo "$ac_t""no" 1>&6
13953 done
13960 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
13961 echo "configure:13962: checking for hypotf declaration" >&5
13962 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
13963 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
13964 echo $ac_n "(cached) $ac_c" 1>&6
13965 else
13968 ac_ext=C
13969 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13970 ac_cpp='$CXXCPP $CPPFLAGS'
13971 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13972 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13973 cross_compiling=$ac_cv_prog_cxx_cross
13975 cat > conftest.$ac_ext <<EOF
13976 #line 13977 "configure"
13977 #include "confdefs.h"
13978 #include <math.h>
13979 int main() {
13980 hypotf(0, 0);
13981 ; return 0; }
13983 if { (eval echo configure:13984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13984 rm -rf conftest*
13985 glibcpp_cv_func_hypotf_use=yes
13986 else
13987 echo "configure: failed program was:" >&5
13988 cat conftest.$ac_ext >&5
13989 rm -rf conftest*
13990 glibcpp_cv_func_hypotf_use=no
13992 rm -f conftest*
13993 ac_ext=c
13994 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13995 ac_cpp='$CPP $CPPFLAGS'
13996 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13997 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13998 cross_compiling=$ac_cv_prog_cc_cross
14004 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14006 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14007 for ac_func in hypotf
14009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14010 echo "configure:14011: checking for $ac_func" >&5
14011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14012 echo $ac_n "(cached) $ac_c" 1>&6
14013 else
14014 cat > conftest.$ac_ext <<EOF
14015 #line 14016 "configure"
14016 #include "confdefs.h"
14017 /* System header to define __stub macros and hopefully few prototypes,
14018 which can conflict with char $ac_func(); below. */
14019 #include <assert.h>
14020 /* Override any gcc2 internal prototype to avoid an error. */
14021 /* We use char because int might match the return type of a gcc2
14022 builtin and then its argument prototype would still apply. */
14023 char $ac_func();
14025 int main() {
14027 /* The GNU C library defines this for functions which it implements
14028 to always fail with ENOSYS. Some functions are actually named
14029 something starting with __ and the normal name is an alias. */
14030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14031 choke me
14032 #else
14033 $ac_func();
14034 #endif
14036 ; return 0; }
14038 if { (eval echo configure:14039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14039 rm -rf conftest*
14040 eval "ac_cv_func_$ac_func=yes"
14041 else
14042 echo "configure: failed program was:" >&5
14043 cat conftest.$ac_ext >&5
14044 rm -rf conftest*
14045 eval "ac_cv_func_$ac_func=no"
14047 rm -f conftest*
14050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14051 echo "$ac_t""yes" 1>&6
14052 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14053 cat >> confdefs.h <<EOF
14054 #define $ac_tr_func 1
14057 else
14058 echo "$ac_t""no" 1>&6
14060 done
14062 else
14064 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14065 echo "configure:14066: checking for _hypotf declaration" >&5
14066 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14067 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14068 echo $ac_n "(cached) $ac_c" 1>&6
14069 else
14072 ac_ext=C
14073 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14074 ac_cpp='$CXXCPP $CPPFLAGS'
14075 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14076 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14077 cross_compiling=$ac_cv_prog_cxx_cross
14079 cat > conftest.$ac_ext <<EOF
14080 #line 14081 "configure"
14081 #include "confdefs.h"
14082 #include <math.h>
14083 int main() {
14084 _hypotf(0, 0);
14085 ; return 0; }
14087 if { (eval echo configure:14088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14088 rm -rf conftest*
14089 glibcpp_cv_func__hypotf_use=yes
14090 else
14091 echo "configure: failed program was:" >&5
14092 cat conftest.$ac_ext >&5
14093 rm -rf conftest*
14094 glibcpp_cv_func__hypotf_use=no
14096 rm -f conftest*
14097 ac_ext=c
14098 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14099 ac_cpp='$CPP $CPPFLAGS'
14100 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14101 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14102 cross_compiling=$ac_cv_prog_cc_cross
14108 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14110 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14111 for ac_func in _hypotf
14113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14114 echo "configure:14115: checking for $ac_func" >&5
14115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14116 echo $ac_n "(cached) $ac_c" 1>&6
14117 else
14118 cat > conftest.$ac_ext <<EOF
14119 #line 14120 "configure"
14120 #include "confdefs.h"
14121 /* System header to define __stub macros and hopefully few prototypes,
14122 which can conflict with char $ac_func(); below. */
14123 #include <assert.h>
14124 /* Override any gcc2 internal prototype to avoid an error. */
14125 /* We use char because int might match the return type of a gcc2
14126 builtin and then its argument prototype would still apply. */
14127 char $ac_func();
14129 int main() {
14131 /* The GNU C library defines this for functions which it implements
14132 to always fail with ENOSYS. Some functions are actually named
14133 something starting with __ and the normal name is an alias. */
14134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14135 choke me
14136 #else
14137 $ac_func();
14138 #endif
14140 ; return 0; }
14142 if { (eval echo configure:14143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14143 rm -rf conftest*
14144 eval "ac_cv_func_$ac_func=yes"
14145 else
14146 echo "configure: failed program was:" >&5
14147 cat conftest.$ac_ext >&5
14148 rm -rf conftest*
14149 eval "ac_cv_func_$ac_func=no"
14151 rm -f conftest*
14154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14155 echo "$ac_t""yes" 1>&6
14156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14157 cat >> confdefs.h <<EOF
14158 #define $ac_tr_func 1
14161 else
14162 echo "$ac_t""no" 1>&6
14164 done
14171 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14172 echo "configure:14173: checking for ldexpf declaration" >&5
14173 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14174 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14175 echo $ac_n "(cached) $ac_c" 1>&6
14176 else
14179 ac_ext=C
14180 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14181 ac_cpp='$CXXCPP $CPPFLAGS'
14182 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14183 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14184 cross_compiling=$ac_cv_prog_cxx_cross
14186 cat > conftest.$ac_ext <<EOF
14187 #line 14188 "configure"
14188 #include "confdefs.h"
14189 #include <math.h>
14190 int main() {
14191 ldexpf(0, 0);
14192 ; return 0; }
14194 if { (eval echo configure:14195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14195 rm -rf conftest*
14196 glibcpp_cv_func_ldexpf_use=yes
14197 else
14198 echo "configure: failed program was:" >&5
14199 cat conftest.$ac_ext >&5
14200 rm -rf conftest*
14201 glibcpp_cv_func_ldexpf_use=no
14203 rm -f conftest*
14204 ac_ext=c
14205 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14206 ac_cpp='$CPP $CPPFLAGS'
14207 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14208 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14209 cross_compiling=$ac_cv_prog_cc_cross
14215 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14217 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14218 for ac_func in ldexpf
14220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14221 echo "configure:14222: checking for $ac_func" >&5
14222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14223 echo $ac_n "(cached) $ac_c" 1>&6
14224 else
14225 cat > conftest.$ac_ext <<EOF
14226 #line 14227 "configure"
14227 #include "confdefs.h"
14228 /* System header to define __stub macros and hopefully few prototypes,
14229 which can conflict with char $ac_func(); below. */
14230 #include <assert.h>
14231 /* Override any gcc2 internal prototype to avoid an error. */
14232 /* We use char because int might match the return type of a gcc2
14233 builtin and then its argument prototype would still apply. */
14234 char $ac_func();
14236 int main() {
14238 /* The GNU C library defines this for functions which it implements
14239 to always fail with ENOSYS. Some functions are actually named
14240 something starting with __ and the normal name is an alias. */
14241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14242 choke me
14243 #else
14244 $ac_func();
14245 #endif
14247 ; return 0; }
14249 if { (eval echo configure:14250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14250 rm -rf conftest*
14251 eval "ac_cv_func_$ac_func=yes"
14252 else
14253 echo "configure: failed program was:" >&5
14254 cat conftest.$ac_ext >&5
14255 rm -rf conftest*
14256 eval "ac_cv_func_$ac_func=no"
14258 rm -f conftest*
14261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14262 echo "$ac_t""yes" 1>&6
14263 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14264 cat >> confdefs.h <<EOF
14265 #define $ac_tr_func 1
14268 else
14269 echo "$ac_t""no" 1>&6
14271 done
14273 else
14275 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14276 echo "configure:14277: checking for _ldexpf declaration" >&5
14277 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14278 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14279 echo $ac_n "(cached) $ac_c" 1>&6
14280 else
14283 ac_ext=C
14284 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14285 ac_cpp='$CXXCPP $CPPFLAGS'
14286 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14287 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14288 cross_compiling=$ac_cv_prog_cxx_cross
14290 cat > conftest.$ac_ext <<EOF
14291 #line 14292 "configure"
14292 #include "confdefs.h"
14293 #include <math.h>
14294 int main() {
14295 _ldexpf(0, 0);
14296 ; return 0; }
14298 if { (eval echo configure:14299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14299 rm -rf conftest*
14300 glibcpp_cv_func__ldexpf_use=yes
14301 else
14302 echo "configure: failed program was:" >&5
14303 cat conftest.$ac_ext >&5
14304 rm -rf conftest*
14305 glibcpp_cv_func__ldexpf_use=no
14307 rm -f conftest*
14308 ac_ext=c
14309 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14310 ac_cpp='$CPP $CPPFLAGS'
14311 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14312 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14313 cross_compiling=$ac_cv_prog_cc_cross
14319 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14321 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14322 for ac_func in _ldexpf
14324 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14325 echo "configure:14326: checking for $ac_func" >&5
14326 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14327 echo $ac_n "(cached) $ac_c" 1>&6
14328 else
14329 cat > conftest.$ac_ext <<EOF
14330 #line 14331 "configure"
14331 #include "confdefs.h"
14332 /* System header to define __stub macros and hopefully few prototypes,
14333 which can conflict with char $ac_func(); below. */
14334 #include <assert.h>
14335 /* Override any gcc2 internal prototype to avoid an error. */
14336 /* We use char because int might match the return type of a gcc2
14337 builtin and then its argument prototype would still apply. */
14338 char $ac_func();
14340 int main() {
14342 /* The GNU C library defines this for functions which it implements
14343 to always fail with ENOSYS. Some functions are actually named
14344 something starting with __ and the normal name is an alias. */
14345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14346 choke me
14347 #else
14348 $ac_func();
14349 #endif
14351 ; return 0; }
14353 if { (eval echo configure:14354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14354 rm -rf conftest*
14355 eval "ac_cv_func_$ac_func=yes"
14356 else
14357 echo "configure: failed program was:" >&5
14358 cat conftest.$ac_ext >&5
14359 rm -rf conftest*
14360 eval "ac_cv_func_$ac_func=no"
14362 rm -f conftest*
14365 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14366 echo "$ac_t""yes" 1>&6
14367 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14368 cat >> confdefs.h <<EOF
14369 #define $ac_tr_func 1
14372 else
14373 echo "$ac_t""no" 1>&6
14375 done
14382 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14383 echo "configure:14384: checking for logf declaration" >&5
14384 if test x${glibcpp_cv_func_logf_use+set} != xset; then
14385 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14386 echo $ac_n "(cached) $ac_c" 1>&6
14387 else
14390 ac_ext=C
14391 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14392 ac_cpp='$CXXCPP $CPPFLAGS'
14393 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14394 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14395 cross_compiling=$ac_cv_prog_cxx_cross
14397 cat > conftest.$ac_ext <<EOF
14398 #line 14399 "configure"
14399 #include "confdefs.h"
14400 #include <math.h>
14401 #ifdef HAVE_IEEEFP_H
14402 #include <ieeefp.h>
14403 #endif
14405 int main() {
14406 logf(0);
14407 ; return 0; }
14409 if { (eval echo configure:14410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14410 rm -rf conftest*
14411 glibcpp_cv_func_logf_use=yes
14412 else
14413 echo "configure: failed program was:" >&5
14414 cat conftest.$ac_ext >&5
14415 rm -rf conftest*
14416 glibcpp_cv_func_logf_use=no
14418 rm -f conftest*
14419 ac_ext=c
14420 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14421 ac_cpp='$CPP $CPPFLAGS'
14422 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14423 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14424 cross_compiling=$ac_cv_prog_cc_cross
14430 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14432 if test x$glibcpp_cv_func_logf_use = x"yes"; then
14433 for ac_func in logf
14435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14436 echo "configure:14437: checking for $ac_func" >&5
14437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14438 echo $ac_n "(cached) $ac_c" 1>&6
14439 else
14440 cat > conftest.$ac_ext <<EOF
14441 #line 14442 "configure"
14442 #include "confdefs.h"
14443 /* System header to define __stub macros and hopefully few prototypes,
14444 which can conflict with char $ac_func(); below. */
14445 #include <assert.h>
14446 /* Override any gcc2 internal prototype to avoid an error. */
14447 /* We use char because int might match the return type of a gcc2
14448 builtin and then its argument prototype would still apply. */
14449 char $ac_func();
14451 int main() {
14453 /* The GNU C library defines this for functions which it implements
14454 to always fail with ENOSYS. Some functions are actually named
14455 something starting with __ and the normal name is an alias. */
14456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14457 choke me
14458 #else
14459 $ac_func();
14460 #endif
14462 ; return 0; }
14464 if { (eval echo configure:14465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14465 rm -rf conftest*
14466 eval "ac_cv_func_$ac_func=yes"
14467 else
14468 echo "configure: failed program was:" >&5
14469 cat conftest.$ac_ext >&5
14470 rm -rf conftest*
14471 eval "ac_cv_func_$ac_func=no"
14473 rm -f conftest*
14476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14477 echo "$ac_t""yes" 1>&6
14478 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14479 cat >> confdefs.h <<EOF
14480 #define $ac_tr_func 1
14483 else
14484 echo "$ac_t""no" 1>&6
14486 done
14488 else
14490 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14491 echo "configure:14492: checking for _logf declaration" >&5
14492 if test x${glibcpp_cv_func__logf_use+set} != xset; then
14493 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14494 echo $ac_n "(cached) $ac_c" 1>&6
14495 else
14498 ac_ext=C
14499 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14500 ac_cpp='$CXXCPP $CPPFLAGS'
14501 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14502 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14503 cross_compiling=$ac_cv_prog_cxx_cross
14505 cat > conftest.$ac_ext <<EOF
14506 #line 14507 "configure"
14507 #include "confdefs.h"
14508 #include <math.h>
14509 #ifdef HAVE_IEEEFP_H
14510 #include <ieeefp.h>
14511 #endif
14513 int main() {
14514 _logf(0);
14515 ; return 0; }
14517 if { (eval echo configure:14518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14518 rm -rf conftest*
14519 glibcpp_cv_func__logf_use=yes
14520 else
14521 echo "configure: failed program was:" >&5
14522 cat conftest.$ac_ext >&5
14523 rm -rf conftest*
14524 glibcpp_cv_func__logf_use=no
14526 rm -f conftest*
14527 ac_ext=c
14528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14529 ac_cpp='$CPP $CPPFLAGS'
14530 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14531 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14532 cross_compiling=$ac_cv_prog_cc_cross
14538 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14540 if test x$glibcpp_cv_func__logf_use = x"yes"; then
14541 for ac_func in _logf
14543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14544 echo "configure:14545: checking for $ac_func" >&5
14545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14546 echo $ac_n "(cached) $ac_c" 1>&6
14547 else
14548 cat > conftest.$ac_ext <<EOF
14549 #line 14550 "configure"
14550 #include "confdefs.h"
14551 /* System header to define __stub macros and hopefully few prototypes,
14552 which can conflict with char $ac_func(); below. */
14553 #include <assert.h>
14554 /* Override any gcc2 internal prototype to avoid an error. */
14555 /* We use char because int might match the return type of a gcc2
14556 builtin and then its argument prototype would still apply. */
14557 char $ac_func();
14559 int main() {
14561 /* The GNU C library defines this for functions which it implements
14562 to always fail with ENOSYS. Some functions are actually named
14563 something starting with __ and the normal name is an alias. */
14564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14565 choke me
14566 #else
14567 $ac_func();
14568 #endif
14570 ; return 0; }
14572 if { (eval echo configure:14573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14573 rm -rf conftest*
14574 eval "ac_cv_func_$ac_func=yes"
14575 else
14576 echo "configure: failed program was:" >&5
14577 cat conftest.$ac_ext >&5
14578 rm -rf conftest*
14579 eval "ac_cv_func_$ac_func=no"
14581 rm -f conftest*
14584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14585 echo "$ac_t""yes" 1>&6
14586 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14587 cat >> confdefs.h <<EOF
14588 #define $ac_tr_func 1
14591 else
14592 echo "$ac_t""no" 1>&6
14594 done
14601 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14602 echo "configure:14603: checking for log10f declaration" >&5
14603 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14604 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14605 echo $ac_n "(cached) $ac_c" 1>&6
14606 else
14609 ac_ext=C
14610 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14611 ac_cpp='$CXXCPP $CPPFLAGS'
14612 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14613 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14614 cross_compiling=$ac_cv_prog_cxx_cross
14616 cat > conftest.$ac_ext <<EOF
14617 #line 14618 "configure"
14618 #include "confdefs.h"
14619 #include <math.h>
14620 #ifdef HAVE_IEEEFP_H
14621 #include <ieeefp.h>
14622 #endif
14624 int main() {
14625 log10f(0);
14626 ; return 0; }
14628 if { (eval echo configure:14629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14629 rm -rf conftest*
14630 glibcpp_cv_func_log10f_use=yes
14631 else
14632 echo "configure: failed program was:" >&5
14633 cat conftest.$ac_ext >&5
14634 rm -rf conftest*
14635 glibcpp_cv_func_log10f_use=no
14637 rm -f conftest*
14638 ac_ext=c
14639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14640 ac_cpp='$CPP $CPPFLAGS'
14641 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14642 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14643 cross_compiling=$ac_cv_prog_cc_cross
14649 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14651 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14652 for ac_func in log10f
14654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14655 echo "configure:14656: checking for $ac_func" >&5
14656 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14657 echo $ac_n "(cached) $ac_c" 1>&6
14658 else
14659 cat > conftest.$ac_ext <<EOF
14660 #line 14661 "configure"
14661 #include "confdefs.h"
14662 /* System header to define __stub macros and hopefully few prototypes,
14663 which can conflict with char $ac_func(); below. */
14664 #include <assert.h>
14665 /* Override any gcc2 internal prototype to avoid an error. */
14666 /* We use char because int might match the return type of a gcc2
14667 builtin and then its argument prototype would still apply. */
14668 char $ac_func();
14670 int main() {
14672 /* The GNU C library defines this for functions which it implements
14673 to always fail with ENOSYS. Some functions are actually named
14674 something starting with __ and the normal name is an alias. */
14675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14676 choke me
14677 #else
14678 $ac_func();
14679 #endif
14681 ; return 0; }
14683 if { (eval echo configure:14684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14684 rm -rf conftest*
14685 eval "ac_cv_func_$ac_func=yes"
14686 else
14687 echo "configure: failed program was:" >&5
14688 cat conftest.$ac_ext >&5
14689 rm -rf conftest*
14690 eval "ac_cv_func_$ac_func=no"
14692 rm -f conftest*
14695 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14696 echo "$ac_t""yes" 1>&6
14697 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14698 cat >> confdefs.h <<EOF
14699 #define $ac_tr_func 1
14702 else
14703 echo "$ac_t""no" 1>&6
14705 done
14707 else
14709 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14710 echo "configure:14711: checking for _log10f declaration" >&5
14711 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14712 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14713 echo $ac_n "(cached) $ac_c" 1>&6
14714 else
14717 ac_ext=C
14718 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14719 ac_cpp='$CXXCPP $CPPFLAGS'
14720 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14721 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14722 cross_compiling=$ac_cv_prog_cxx_cross
14724 cat > conftest.$ac_ext <<EOF
14725 #line 14726 "configure"
14726 #include "confdefs.h"
14727 #include <math.h>
14728 #ifdef HAVE_IEEEFP_H
14729 #include <ieeefp.h>
14730 #endif
14732 int main() {
14733 _log10f(0);
14734 ; return 0; }
14736 if { (eval echo configure:14737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14737 rm -rf conftest*
14738 glibcpp_cv_func__log10f_use=yes
14739 else
14740 echo "configure: failed program was:" >&5
14741 cat conftest.$ac_ext >&5
14742 rm -rf conftest*
14743 glibcpp_cv_func__log10f_use=no
14745 rm -f conftest*
14746 ac_ext=c
14747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14748 ac_cpp='$CPP $CPPFLAGS'
14749 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14750 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14751 cross_compiling=$ac_cv_prog_cc_cross
14757 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14759 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14760 for ac_func in _log10f
14762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14763 echo "configure:14764: checking for $ac_func" >&5
14764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14765 echo $ac_n "(cached) $ac_c" 1>&6
14766 else
14767 cat > conftest.$ac_ext <<EOF
14768 #line 14769 "configure"
14769 #include "confdefs.h"
14770 /* System header to define __stub macros and hopefully few prototypes,
14771 which can conflict with char $ac_func(); below. */
14772 #include <assert.h>
14773 /* Override any gcc2 internal prototype to avoid an error. */
14774 /* We use char because int might match the return type of a gcc2
14775 builtin and then its argument prototype would still apply. */
14776 char $ac_func();
14778 int main() {
14780 /* The GNU C library defines this for functions which it implements
14781 to always fail with ENOSYS. Some functions are actually named
14782 something starting with __ and the normal name is an alias. */
14783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14784 choke me
14785 #else
14786 $ac_func();
14787 #endif
14789 ; return 0; }
14791 if { (eval echo configure:14792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14792 rm -rf conftest*
14793 eval "ac_cv_func_$ac_func=yes"
14794 else
14795 echo "configure: failed program was:" >&5
14796 cat conftest.$ac_ext >&5
14797 rm -rf conftest*
14798 eval "ac_cv_func_$ac_func=no"
14800 rm -f conftest*
14803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14804 echo "$ac_t""yes" 1>&6
14805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14806 cat >> confdefs.h <<EOF
14807 #define $ac_tr_func 1
14810 else
14811 echo "$ac_t""no" 1>&6
14813 done
14820 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
14821 echo "configure:14822: checking for modff declaration" >&5
14822 if test x${glibcpp_cv_func_modff_use+set} != xset; then
14823 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
14824 echo $ac_n "(cached) $ac_c" 1>&6
14825 else
14828 ac_ext=C
14829 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14830 ac_cpp='$CXXCPP $CPPFLAGS'
14831 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14832 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14833 cross_compiling=$ac_cv_prog_cxx_cross
14835 cat > conftest.$ac_ext <<EOF
14836 #line 14837 "configure"
14837 #include "confdefs.h"
14838 #include <math.h>
14839 int main() {
14840 modff(0, 0);
14841 ; return 0; }
14843 if { (eval echo configure:14844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14844 rm -rf conftest*
14845 glibcpp_cv_func_modff_use=yes
14846 else
14847 echo "configure: failed program was:" >&5
14848 cat conftest.$ac_ext >&5
14849 rm -rf conftest*
14850 glibcpp_cv_func_modff_use=no
14852 rm -f conftest*
14853 ac_ext=c
14854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14855 ac_cpp='$CPP $CPPFLAGS'
14856 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14857 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14858 cross_compiling=$ac_cv_prog_cc_cross
14864 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
14866 if test x$glibcpp_cv_func_modff_use = x"yes"; then
14867 for ac_func in modff
14869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14870 echo "configure:14871: checking for $ac_func" >&5
14871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14872 echo $ac_n "(cached) $ac_c" 1>&6
14873 else
14874 cat > conftest.$ac_ext <<EOF
14875 #line 14876 "configure"
14876 #include "confdefs.h"
14877 /* System header to define __stub macros and hopefully few prototypes,
14878 which can conflict with char $ac_func(); below. */
14879 #include <assert.h>
14880 /* Override any gcc2 internal prototype to avoid an error. */
14881 /* We use char because int might match the return type of a gcc2
14882 builtin and then its argument prototype would still apply. */
14883 char $ac_func();
14885 int main() {
14887 /* The GNU C library defines this for functions which it implements
14888 to always fail with ENOSYS. Some functions are actually named
14889 something starting with __ and the normal name is an alias. */
14890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14891 choke me
14892 #else
14893 $ac_func();
14894 #endif
14896 ; return 0; }
14898 if { (eval echo configure:14899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14899 rm -rf conftest*
14900 eval "ac_cv_func_$ac_func=yes"
14901 else
14902 echo "configure: failed program was:" >&5
14903 cat conftest.$ac_ext >&5
14904 rm -rf conftest*
14905 eval "ac_cv_func_$ac_func=no"
14907 rm -f conftest*
14910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14911 echo "$ac_t""yes" 1>&6
14912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14913 cat >> confdefs.h <<EOF
14914 #define $ac_tr_func 1
14917 else
14918 echo "$ac_t""no" 1>&6
14920 done
14922 else
14924 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
14925 echo "configure:14926: checking for _modff declaration" >&5
14926 if test x${glibcpp_cv_func__modff_use+set} != xset; then
14927 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
14928 echo $ac_n "(cached) $ac_c" 1>&6
14929 else
14932 ac_ext=C
14933 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14934 ac_cpp='$CXXCPP $CPPFLAGS'
14935 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14936 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14937 cross_compiling=$ac_cv_prog_cxx_cross
14939 cat > conftest.$ac_ext <<EOF
14940 #line 14941 "configure"
14941 #include "confdefs.h"
14942 #include <math.h>
14943 int main() {
14944 _modff(0, 0);
14945 ; return 0; }
14947 if { (eval echo configure:14948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14948 rm -rf conftest*
14949 glibcpp_cv_func__modff_use=yes
14950 else
14951 echo "configure: failed program was:" >&5
14952 cat conftest.$ac_ext >&5
14953 rm -rf conftest*
14954 glibcpp_cv_func__modff_use=no
14956 rm -f conftest*
14957 ac_ext=c
14958 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14959 ac_cpp='$CPP $CPPFLAGS'
14960 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14961 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14962 cross_compiling=$ac_cv_prog_cc_cross
14968 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
14970 if test x$glibcpp_cv_func__modff_use = x"yes"; then
14971 for ac_func in _modff
14973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14974 echo "configure:14975: checking for $ac_func" >&5
14975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14976 echo $ac_n "(cached) $ac_c" 1>&6
14977 else
14978 cat > conftest.$ac_ext <<EOF
14979 #line 14980 "configure"
14980 #include "confdefs.h"
14981 /* System header to define __stub macros and hopefully few prototypes,
14982 which can conflict with char $ac_func(); below. */
14983 #include <assert.h>
14984 /* Override any gcc2 internal prototype to avoid an error. */
14985 /* We use char because int might match the return type of a gcc2
14986 builtin and then its argument prototype would still apply. */
14987 char $ac_func();
14989 int main() {
14991 /* The GNU C library defines this for functions which it implements
14992 to always fail with ENOSYS. Some functions are actually named
14993 something starting with __ and the normal name is an alias. */
14994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14995 choke me
14996 #else
14997 $ac_func();
14998 #endif
15000 ; return 0; }
15002 if { (eval echo configure:15003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15003 rm -rf conftest*
15004 eval "ac_cv_func_$ac_func=yes"
15005 else
15006 echo "configure: failed program was:" >&5
15007 cat conftest.$ac_ext >&5
15008 rm -rf conftest*
15009 eval "ac_cv_func_$ac_func=no"
15011 rm -f conftest*
15014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15015 echo "$ac_t""yes" 1>&6
15016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15017 cat >> confdefs.h <<EOF
15018 #define $ac_tr_func 1
15021 else
15022 echo "$ac_t""no" 1>&6
15024 done
15031 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15032 echo "configure:15033: checking for powf declaration" >&5
15033 if test x${glibcpp_cv_func_powf_use+set} != xset; then
15034 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15035 echo $ac_n "(cached) $ac_c" 1>&6
15036 else
15039 ac_ext=C
15040 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15041 ac_cpp='$CXXCPP $CPPFLAGS'
15042 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15043 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15044 cross_compiling=$ac_cv_prog_cxx_cross
15046 cat > conftest.$ac_ext <<EOF
15047 #line 15048 "configure"
15048 #include "confdefs.h"
15049 #include <math.h>
15050 int main() {
15051 powf(0, 0);
15052 ; return 0; }
15054 if { (eval echo configure:15055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15055 rm -rf conftest*
15056 glibcpp_cv_func_powf_use=yes
15057 else
15058 echo "configure: failed program was:" >&5
15059 cat conftest.$ac_ext >&5
15060 rm -rf conftest*
15061 glibcpp_cv_func_powf_use=no
15063 rm -f conftest*
15064 ac_ext=c
15065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15066 ac_cpp='$CPP $CPPFLAGS'
15067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15069 cross_compiling=$ac_cv_prog_cc_cross
15075 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15077 if test x$glibcpp_cv_func_powf_use = x"yes"; then
15078 for ac_func in powf
15080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15081 echo "configure:15082: checking for $ac_func" >&5
15082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15083 echo $ac_n "(cached) $ac_c" 1>&6
15084 else
15085 cat > conftest.$ac_ext <<EOF
15086 #line 15087 "configure"
15087 #include "confdefs.h"
15088 /* System header to define __stub macros and hopefully few prototypes,
15089 which can conflict with char $ac_func(); below. */
15090 #include <assert.h>
15091 /* Override any gcc2 internal prototype to avoid an error. */
15092 /* We use char because int might match the return type of a gcc2
15093 builtin and then its argument prototype would still apply. */
15094 char $ac_func();
15096 int main() {
15098 /* The GNU C library defines this for functions which it implements
15099 to always fail with ENOSYS. Some functions are actually named
15100 something starting with __ and the normal name is an alias. */
15101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15102 choke me
15103 #else
15104 $ac_func();
15105 #endif
15107 ; return 0; }
15109 if { (eval echo configure:15110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15110 rm -rf conftest*
15111 eval "ac_cv_func_$ac_func=yes"
15112 else
15113 echo "configure: failed program was:" >&5
15114 cat conftest.$ac_ext >&5
15115 rm -rf conftest*
15116 eval "ac_cv_func_$ac_func=no"
15118 rm -f conftest*
15121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15122 echo "$ac_t""yes" 1>&6
15123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15124 cat >> confdefs.h <<EOF
15125 #define $ac_tr_func 1
15128 else
15129 echo "$ac_t""no" 1>&6
15131 done
15133 else
15135 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15136 echo "configure:15137: checking for _powf declaration" >&5
15137 if test x${glibcpp_cv_func__powf_use+set} != xset; then
15138 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15139 echo $ac_n "(cached) $ac_c" 1>&6
15140 else
15143 ac_ext=C
15144 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15145 ac_cpp='$CXXCPP $CPPFLAGS'
15146 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15147 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15148 cross_compiling=$ac_cv_prog_cxx_cross
15150 cat > conftest.$ac_ext <<EOF
15151 #line 15152 "configure"
15152 #include "confdefs.h"
15153 #include <math.h>
15154 int main() {
15155 _powf(0, 0);
15156 ; return 0; }
15158 if { (eval echo configure:15159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15159 rm -rf conftest*
15160 glibcpp_cv_func__powf_use=yes
15161 else
15162 echo "configure: failed program was:" >&5
15163 cat conftest.$ac_ext >&5
15164 rm -rf conftest*
15165 glibcpp_cv_func__powf_use=no
15167 rm -f conftest*
15168 ac_ext=c
15169 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15170 ac_cpp='$CPP $CPPFLAGS'
15171 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15172 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15173 cross_compiling=$ac_cv_prog_cc_cross
15179 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15181 if test x$glibcpp_cv_func__powf_use = x"yes"; then
15182 for ac_func in _powf
15184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15185 echo "configure:15186: checking for $ac_func" >&5
15186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15187 echo $ac_n "(cached) $ac_c" 1>&6
15188 else
15189 cat > conftest.$ac_ext <<EOF
15190 #line 15191 "configure"
15191 #include "confdefs.h"
15192 /* System header to define __stub macros and hopefully few prototypes,
15193 which can conflict with char $ac_func(); below. */
15194 #include <assert.h>
15195 /* Override any gcc2 internal prototype to avoid an error. */
15196 /* We use char because int might match the return type of a gcc2
15197 builtin and then its argument prototype would still apply. */
15198 char $ac_func();
15200 int main() {
15202 /* The GNU C library defines this for functions which it implements
15203 to always fail with ENOSYS. Some functions are actually named
15204 something starting with __ and the normal name is an alias. */
15205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15206 choke me
15207 #else
15208 $ac_func();
15209 #endif
15211 ; return 0; }
15213 if { (eval echo configure:15214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15214 rm -rf conftest*
15215 eval "ac_cv_func_$ac_func=yes"
15216 else
15217 echo "configure: failed program was:" >&5
15218 cat conftest.$ac_ext >&5
15219 rm -rf conftest*
15220 eval "ac_cv_func_$ac_func=no"
15222 rm -f conftest*
15225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15226 echo "$ac_t""yes" 1>&6
15227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15228 cat >> confdefs.h <<EOF
15229 #define $ac_tr_func 1
15232 else
15233 echo "$ac_t""no" 1>&6
15235 done
15242 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15243 echo "configure:15244: checking for sqrtf declaration" >&5
15244 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15245 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15246 echo $ac_n "(cached) $ac_c" 1>&6
15247 else
15250 ac_ext=C
15251 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15252 ac_cpp='$CXXCPP $CPPFLAGS'
15253 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15254 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15255 cross_compiling=$ac_cv_prog_cxx_cross
15257 cat > conftest.$ac_ext <<EOF
15258 #line 15259 "configure"
15259 #include "confdefs.h"
15260 #include <math.h>
15261 #ifdef HAVE_IEEEFP_H
15262 #include <ieeefp.h>
15263 #endif
15265 int main() {
15266 sqrtf(0);
15267 ; return 0; }
15269 if { (eval echo configure:15270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15270 rm -rf conftest*
15271 glibcpp_cv_func_sqrtf_use=yes
15272 else
15273 echo "configure: failed program was:" >&5
15274 cat conftest.$ac_ext >&5
15275 rm -rf conftest*
15276 glibcpp_cv_func_sqrtf_use=no
15278 rm -f conftest*
15279 ac_ext=c
15280 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15281 ac_cpp='$CPP $CPPFLAGS'
15282 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15283 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15284 cross_compiling=$ac_cv_prog_cc_cross
15290 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15292 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15293 for ac_func in sqrtf
15295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15296 echo "configure:15297: checking for $ac_func" >&5
15297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15298 echo $ac_n "(cached) $ac_c" 1>&6
15299 else
15300 cat > conftest.$ac_ext <<EOF
15301 #line 15302 "configure"
15302 #include "confdefs.h"
15303 /* System header to define __stub macros and hopefully few prototypes,
15304 which can conflict with char $ac_func(); below. */
15305 #include <assert.h>
15306 /* Override any gcc2 internal prototype to avoid an error. */
15307 /* We use char because int might match the return type of a gcc2
15308 builtin and then its argument prototype would still apply. */
15309 char $ac_func();
15311 int main() {
15313 /* The GNU C library defines this for functions which it implements
15314 to always fail with ENOSYS. Some functions are actually named
15315 something starting with __ and the normal name is an alias. */
15316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15317 choke me
15318 #else
15319 $ac_func();
15320 #endif
15322 ; return 0; }
15324 if { (eval echo configure:15325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15325 rm -rf conftest*
15326 eval "ac_cv_func_$ac_func=yes"
15327 else
15328 echo "configure: failed program was:" >&5
15329 cat conftest.$ac_ext >&5
15330 rm -rf conftest*
15331 eval "ac_cv_func_$ac_func=no"
15333 rm -f conftest*
15336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15337 echo "$ac_t""yes" 1>&6
15338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15339 cat >> confdefs.h <<EOF
15340 #define $ac_tr_func 1
15343 else
15344 echo "$ac_t""no" 1>&6
15346 done
15348 else
15350 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15351 echo "configure:15352: checking for _sqrtf declaration" >&5
15352 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15353 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15354 echo $ac_n "(cached) $ac_c" 1>&6
15355 else
15358 ac_ext=C
15359 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15360 ac_cpp='$CXXCPP $CPPFLAGS'
15361 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15362 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15363 cross_compiling=$ac_cv_prog_cxx_cross
15365 cat > conftest.$ac_ext <<EOF
15366 #line 15367 "configure"
15367 #include "confdefs.h"
15368 #include <math.h>
15369 #ifdef HAVE_IEEEFP_H
15370 #include <ieeefp.h>
15371 #endif
15373 int main() {
15374 _sqrtf(0);
15375 ; return 0; }
15377 if { (eval echo configure:15378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15378 rm -rf conftest*
15379 glibcpp_cv_func__sqrtf_use=yes
15380 else
15381 echo "configure: failed program was:" >&5
15382 cat conftest.$ac_ext >&5
15383 rm -rf conftest*
15384 glibcpp_cv_func__sqrtf_use=no
15386 rm -f conftest*
15387 ac_ext=c
15388 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15389 ac_cpp='$CPP $CPPFLAGS'
15390 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15391 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15392 cross_compiling=$ac_cv_prog_cc_cross
15398 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15400 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15401 for ac_func in _sqrtf
15403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15404 echo "configure:15405: checking for $ac_func" >&5
15405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15406 echo $ac_n "(cached) $ac_c" 1>&6
15407 else
15408 cat > conftest.$ac_ext <<EOF
15409 #line 15410 "configure"
15410 #include "confdefs.h"
15411 /* System header to define __stub macros and hopefully few prototypes,
15412 which can conflict with char $ac_func(); below. */
15413 #include <assert.h>
15414 /* Override any gcc2 internal prototype to avoid an error. */
15415 /* We use char because int might match the return type of a gcc2
15416 builtin and then its argument prototype would still apply. */
15417 char $ac_func();
15419 int main() {
15421 /* The GNU C library defines this for functions which it implements
15422 to always fail with ENOSYS. Some functions are actually named
15423 something starting with __ and the normal name is an alias. */
15424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15425 choke me
15426 #else
15427 $ac_func();
15428 #endif
15430 ; return 0; }
15432 if { (eval echo configure:15433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15433 rm -rf conftest*
15434 eval "ac_cv_func_$ac_func=yes"
15435 else
15436 echo "configure: failed program was:" >&5
15437 cat conftest.$ac_ext >&5
15438 rm -rf conftest*
15439 eval "ac_cv_func_$ac_func=no"
15441 rm -f conftest*
15444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15445 echo "$ac_t""yes" 1>&6
15446 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15447 cat >> confdefs.h <<EOF
15448 #define $ac_tr_func 1
15451 else
15452 echo "$ac_t""no" 1>&6
15454 done
15461 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15462 echo "configure:15463: checking for sincosf declaration" >&5
15463 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15464 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15465 echo $ac_n "(cached) $ac_c" 1>&6
15466 else
15469 ac_ext=C
15470 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15471 ac_cpp='$CXXCPP $CPPFLAGS'
15472 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15473 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15474 cross_compiling=$ac_cv_prog_cxx_cross
15476 cat > conftest.$ac_ext <<EOF
15477 #line 15478 "configure"
15478 #include "confdefs.h"
15479 #include <math.h>
15480 int main() {
15481 sincosf(0, 0, 0);
15482 ; return 0; }
15484 if { (eval echo configure:15485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15485 rm -rf conftest*
15486 glibcpp_cv_func_sincosf_use=yes
15487 else
15488 echo "configure: failed program was:" >&5
15489 cat conftest.$ac_ext >&5
15490 rm -rf conftest*
15491 glibcpp_cv_func_sincosf_use=no
15493 rm -f conftest*
15494 ac_ext=c
15495 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15496 ac_cpp='$CPP $CPPFLAGS'
15497 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15498 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15499 cross_compiling=$ac_cv_prog_cc_cross
15505 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15507 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15508 for ac_func in sincosf
15510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15511 echo "configure:15512: checking for $ac_func" >&5
15512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15513 echo $ac_n "(cached) $ac_c" 1>&6
15514 else
15515 cat > conftest.$ac_ext <<EOF
15516 #line 15517 "configure"
15517 #include "confdefs.h"
15518 /* System header to define __stub macros and hopefully few prototypes,
15519 which can conflict with char $ac_func(); below. */
15520 #include <assert.h>
15521 /* Override any gcc2 internal prototype to avoid an error. */
15522 /* We use char because int might match the return type of a gcc2
15523 builtin and then its argument prototype would still apply. */
15524 char $ac_func();
15526 int main() {
15528 /* The GNU C library defines this for functions which it implements
15529 to always fail with ENOSYS. Some functions are actually named
15530 something starting with __ and the normal name is an alias. */
15531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15532 choke me
15533 #else
15534 $ac_func();
15535 #endif
15537 ; return 0; }
15539 if { (eval echo configure:15540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15540 rm -rf conftest*
15541 eval "ac_cv_func_$ac_func=yes"
15542 else
15543 echo "configure: failed program was:" >&5
15544 cat conftest.$ac_ext >&5
15545 rm -rf conftest*
15546 eval "ac_cv_func_$ac_func=no"
15548 rm -f conftest*
15551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15552 echo "$ac_t""yes" 1>&6
15553 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15554 cat >> confdefs.h <<EOF
15555 #define $ac_tr_func 1
15558 else
15559 echo "$ac_t""no" 1>&6
15561 done
15563 else
15565 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15566 echo "configure:15567: checking for _sincosf declaration" >&5
15567 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15568 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15569 echo $ac_n "(cached) $ac_c" 1>&6
15570 else
15573 ac_ext=C
15574 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15575 ac_cpp='$CXXCPP $CPPFLAGS'
15576 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15577 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15578 cross_compiling=$ac_cv_prog_cxx_cross
15580 cat > conftest.$ac_ext <<EOF
15581 #line 15582 "configure"
15582 #include "confdefs.h"
15583 #include <math.h>
15584 int main() {
15585 _sincosf(0, 0, 0);
15586 ; return 0; }
15588 if { (eval echo configure:15589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15589 rm -rf conftest*
15590 glibcpp_cv_func__sincosf_use=yes
15591 else
15592 echo "configure: failed program was:" >&5
15593 cat conftest.$ac_ext >&5
15594 rm -rf conftest*
15595 glibcpp_cv_func__sincosf_use=no
15597 rm -f conftest*
15598 ac_ext=c
15599 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15600 ac_cpp='$CPP $CPPFLAGS'
15601 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15602 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15603 cross_compiling=$ac_cv_prog_cc_cross
15609 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15611 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15612 for ac_func in _sincosf
15614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15615 echo "configure:15616: checking for $ac_func" >&5
15616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15617 echo $ac_n "(cached) $ac_c" 1>&6
15618 else
15619 cat > conftest.$ac_ext <<EOF
15620 #line 15621 "configure"
15621 #include "confdefs.h"
15622 /* System header to define __stub macros and hopefully few prototypes,
15623 which can conflict with char $ac_func(); below. */
15624 #include <assert.h>
15625 /* Override any gcc2 internal prototype to avoid an error. */
15626 /* We use char because int might match the return type of a gcc2
15627 builtin and then its argument prototype would still apply. */
15628 char $ac_func();
15630 int main() {
15632 /* The GNU C library defines this for functions which it implements
15633 to always fail with ENOSYS. Some functions are actually named
15634 something starting with __ and the normal name is an alias. */
15635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15636 choke me
15637 #else
15638 $ac_func();
15639 #endif
15641 ; return 0; }
15643 if { (eval echo configure:15644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15644 rm -rf conftest*
15645 eval "ac_cv_func_$ac_func=yes"
15646 else
15647 echo "configure: failed program was:" >&5
15648 cat conftest.$ac_ext >&5
15649 rm -rf conftest*
15650 eval "ac_cv_func_$ac_func=no"
15652 rm -f conftest*
15655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15656 echo "$ac_t""yes" 1>&6
15657 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15658 cat >> confdefs.h <<EOF
15659 #define $ac_tr_func 1
15662 else
15663 echo "$ac_t""no" 1>&6
15665 done
15672 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15673 echo "configure:15674: checking for finitef declaration" >&5
15674 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15675 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15676 echo $ac_n "(cached) $ac_c" 1>&6
15677 else
15680 ac_ext=C
15681 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15682 ac_cpp='$CXXCPP $CPPFLAGS'
15683 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15684 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15685 cross_compiling=$ac_cv_prog_cxx_cross
15687 cat > conftest.$ac_ext <<EOF
15688 #line 15689 "configure"
15689 #include "confdefs.h"
15690 #include <math.h>
15691 #ifdef HAVE_IEEEFP_H
15692 #include <ieeefp.h>
15693 #endif
15695 int main() {
15696 finitef(0);
15697 ; return 0; }
15699 if { (eval echo configure:15700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15700 rm -rf conftest*
15701 glibcpp_cv_func_finitef_use=yes
15702 else
15703 echo "configure: failed program was:" >&5
15704 cat conftest.$ac_ext >&5
15705 rm -rf conftest*
15706 glibcpp_cv_func_finitef_use=no
15708 rm -f conftest*
15709 ac_ext=c
15710 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15711 ac_cpp='$CPP $CPPFLAGS'
15712 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15713 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15714 cross_compiling=$ac_cv_prog_cc_cross
15720 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15722 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15723 for ac_func in finitef
15725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15726 echo "configure:15727: checking for $ac_func" >&5
15727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15728 echo $ac_n "(cached) $ac_c" 1>&6
15729 else
15730 cat > conftest.$ac_ext <<EOF
15731 #line 15732 "configure"
15732 #include "confdefs.h"
15733 /* System header to define __stub macros and hopefully few prototypes,
15734 which can conflict with char $ac_func(); below. */
15735 #include <assert.h>
15736 /* Override any gcc2 internal prototype to avoid an error. */
15737 /* We use char because int might match the return type of a gcc2
15738 builtin and then its argument prototype would still apply. */
15739 char $ac_func();
15741 int main() {
15743 /* The GNU C library defines this for functions which it implements
15744 to always fail with ENOSYS. Some functions are actually named
15745 something starting with __ and the normal name is an alias. */
15746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15747 choke me
15748 #else
15749 $ac_func();
15750 #endif
15752 ; return 0; }
15754 if { (eval echo configure:15755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15755 rm -rf conftest*
15756 eval "ac_cv_func_$ac_func=yes"
15757 else
15758 echo "configure: failed program was:" >&5
15759 cat conftest.$ac_ext >&5
15760 rm -rf conftest*
15761 eval "ac_cv_func_$ac_func=no"
15763 rm -f conftest*
15766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15767 echo "$ac_t""yes" 1>&6
15768 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15769 cat >> confdefs.h <<EOF
15770 #define $ac_tr_func 1
15773 else
15774 echo "$ac_t""no" 1>&6
15776 done
15778 else
15780 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15781 echo "configure:15782: checking for _finitef declaration" >&5
15782 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
15783 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
15784 echo $ac_n "(cached) $ac_c" 1>&6
15785 else
15788 ac_ext=C
15789 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15790 ac_cpp='$CXXCPP $CPPFLAGS'
15791 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15792 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15793 cross_compiling=$ac_cv_prog_cxx_cross
15795 cat > conftest.$ac_ext <<EOF
15796 #line 15797 "configure"
15797 #include "confdefs.h"
15798 #include <math.h>
15799 #ifdef HAVE_IEEEFP_H
15800 #include <ieeefp.h>
15801 #endif
15803 int main() {
15804 _finitef(0);
15805 ; return 0; }
15807 if { (eval echo configure:15808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15808 rm -rf conftest*
15809 glibcpp_cv_func__finitef_use=yes
15810 else
15811 echo "configure: failed program was:" >&5
15812 cat conftest.$ac_ext >&5
15813 rm -rf conftest*
15814 glibcpp_cv_func__finitef_use=no
15816 rm -f conftest*
15817 ac_ext=c
15818 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15819 ac_cpp='$CPP $CPPFLAGS'
15820 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15821 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15822 cross_compiling=$ac_cv_prog_cc_cross
15828 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
15830 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
15831 for ac_func in _finitef
15833 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15834 echo "configure:15835: checking for $ac_func" >&5
15835 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15836 echo $ac_n "(cached) $ac_c" 1>&6
15837 else
15838 cat > conftest.$ac_ext <<EOF
15839 #line 15840 "configure"
15840 #include "confdefs.h"
15841 /* System header to define __stub macros and hopefully few prototypes,
15842 which can conflict with char $ac_func(); below. */
15843 #include <assert.h>
15844 /* Override any gcc2 internal prototype to avoid an error. */
15845 /* We use char because int might match the return type of a gcc2
15846 builtin and then its argument prototype would still apply. */
15847 char $ac_func();
15849 int main() {
15851 /* The GNU C library defines this for functions which it implements
15852 to always fail with ENOSYS. Some functions are actually named
15853 something starting with __ and the normal name is an alias. */
15854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15855 choke me
15856 #else
15857 $ac_func();
15858 #endif
15860 ; return 0; }
15862 if { (eval echo configure:15863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15863 rm -rf conftest*
15864 eval "ac_cv_func_$ac_func=yes"
15865 else
15866 echo "configure: failed program was:" >&5
15867 cat conftest.$ac_ext >&5
15868 rm -rf conftest*
15869 eval "ac_cv_func_$ac_func=no"
15871 rm -f conftest*
15874 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15875 echo "$ac_t""yes" 1>&6
15876 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15877 cat >> confdefs.h <<EOF
15878 #define $ac_tr_func 1
15881 else
15882 echo "$ac_t""no" 1>&6
15884 done
15891 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
15892 echo "configure:15893: checking for long double trig functions" >&5
15893 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
15894 echo $ac_n "(cached) $ac_c" 1>&6
15895 else
15898 ac_ext=C
15899 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15900 ac_cpp='$CXXCPP $CPPFLAGS'
15901 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15902 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15903 cross_compiling=$ac_cv_prog_cxx_cross
15905 cat > conftest.$ac_ext <<EOF
15906 #line 15907 "configure"
15907 #include "confdefs.h"
15908 #include <math.h>
15909 int main() {
15910 `for x in acosl asinl atanl \
15911 cosl sinl tanl \
15912 coshl sinhl tanhl; do echo "$x (0);"; done`
15913 ; return 0; }
15915 if { (eval echo configure:15916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15916 rm -rf conftest*
15917 glibcpp_cv_func_long_double_trig_use=yes
15918 else
15919 echo "configure: failed program was:" >&5
15920 cat conftest.$ac_ext >&5
15921 rm -rf conftest*
15922 glibcpp_cv_func_long_double_trig_use=no
15924 rm -f conftest*
15925 ac_ext=c
15926 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15927 ac_cpp='$CPP $CPPFLAGS'
15928 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15929 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15930 cross_compiling=$ac_cv_prog_cc_cross
15934 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
15935 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
15936 for ac_func in acosl asinl atanl \
15937 cosl sinl tanl \
15938 coshl sinhl tanhl
15940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15941 echo "configure:15942: checking for $ac_func" >&5
15942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15943 echo $ac_n "(cached) $ac_c" 1>&6
15944 else
15945 cat > conftest.$ac_ext <<EOF
15946 #line 15947 "configure"
15947 #include "confdefs.h"
15948 /* System header to define __stub macros and hopefully few prototypes,
15949 which can conflict with char $ac_func(); below. */
15950 #include <assert.h>
15951 /* Override any gcc2 internal prototype to avoid an error. */
15952 /* We use char because int might match the return type of a gcc2
15953 builtin and then its argument prototype would still apply. */
15954 char $ac_func();
15956 int main() {
15958 /* The GNU C library defines this for functions which it implements
15959 to always fail with ENOSYS. Some functions are actually named
15960 something starting with __ and the normal name is an alias. */
15961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15962 choke me
15963 #else
15964 $ac_func();
15965 #endif
15967 ; return 0; }
15969 if { (eval echo configure:15970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15970 rm -rf conftest*
15971 eval "ac_cv_func_$ac_func=yes"
15972 else
15973 echo "configure: failed program was:" >&5
15974 cat conftest.$ac_ext >&5
15975 rm -rf conftest*
15976 eval "ac_cv_func_$ac_func=no"
15978 rm -f conftest*
15981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15982 echo "$ac_t""yes" 1>&6
15983 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15984 cat >> confdefs.h <<EOF
15985 #define $ac_tr_func 1
15988 else
15989 echo "$ac_t""no" 1>&6
15991 done
15996 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
15997 echo "configure:15998: checking for long double round functions" >&5
15998 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
15999 echo $ac_n "(cached) $ac_c" 1>&6
16000 else
16003 ac_ext=C
16004 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16005 ac_cpp='$CXXCPP $CPPFLAGS'
16006 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16007 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16008 cross_compiling=$ac_cv_prog_cxx_cross
16010 cat > conftest.$ac_ext <<EOF
16011 #line 16012 "configure"
16012 #include "confdefs.h"
16013 #include <math.h>
16014 int main() {
16015 `for x in ceill floorl; do echo "$x (0);"; done`
16016 ; return 0; }
16018 if { (eval echo configure:16019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16019 rm -rf conftest*
16020 glibcpp_cv_func_long_double_round_use=yes
16021 else
16022 echo "configure: failed program was:" >&5
16023 cat conftest.$ac_ext >&5
16024 rm -rf conftest*
16025 glibcpp_cv_func_long_double_round_use=no
16027 rm -f conftest*
16028 ac_ext=c
16029 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16030 ac_cpp='$CPP $CPPFLAGS'
16031 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16032 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16033 cross_compiling=$ac_cv_prog_cc_cross
16037 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16038 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16039 for ac_func in ceill floorl
16041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16042 echo "configure:16043: checking for $ac_func" >&5
16043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16044 echo $ac_n "(cached) $ac_c" 1>&6
16045 else
16046 cat > conftest.$ac_ext <<EOF
16047 #line 16048 "configure"
16048 #include "confdefs.h"
16049 /* System header to define __stub macros and hopefully few prototypes,
16050 which can conflict with char $ac_func(); below. */
16051 #include <assert.h>
16052 /* Override any gcc2 internal prototype to avoid an error. */
16053 /* We use char because int might match the return type of a gcc2
16054 builtin and then its argument prototype would still apply. */
16055 char $ac_func();
16057 int main() {
16059 /* The GNU C library defines this for functions which it implements
16060 to always fail with ENOSYS. Some functions are actually named
16061 something starting with __ and the normal name is an alias. */
16062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16063 choke me
16064 #else
16065 $ac_func();
16066 #endif
16068 ; return 0; }
16070 if { (eval echo configure:16071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16071 rm -rf conftest*
16072 eval "ac_cv_func_$ac_func=yes"
16073 else
16074 echo "configure: failed program was:" >&5
16075 cat conftest.$ac_ext >&5
16076 rm -rf conftest*
16077 eval "ac_cv_func_$ac_func=no"
16079 rm -f conftest*
16082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16083 echo "$ac_t""yes" 1>&6
16084 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16085 cat >> confdefs.h <<EOF
16086 #define $ac_tr_func 1
16089 else
16090 echo "$ac_t""no" 1>&6
16092 done
16098 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16099 echo "configure:16100: checking for isnanl declaration" >&5
16100 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16101 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16102 echo $ac_n "(cached) $ac_c" 1>&6
16103 else
16106 ac_ext=C
16107 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16108 ac_cpp='$CXXCPP $CPPFLAGS'
16109 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16110 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16111 cross_compiling=$ac_cv_prog_cxx_cross
16113 cat > conftest.$ac_ext <<EOF
16114 #line 16115 "configure"
16115 #include "confdefs.h"
16116 #include <math.h>
16117 #ifdef HAVE_IEEEFP_H
16118 #include <ieeefp.h>
16119 #endif
16121 int main() {
16122 isnanl(0);
16123 ; return 0; }
16125 if { (eval echo configure:16126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16126 rm -rf conftest*
16127 glibcpp_cv_func_isnanl_use=yes
16128 else
16129 echo "configure: failed program was:" >&5
16130 cat conftest.$ac_ext >&5
16131 rm -rf conftest*
16132 glibcpp_cv_func_isnanl_use=no
16134 rm -f conftest*
16135 ac_ext=c
16136 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16137 ac_cpp='$CPP $CPPFLAGS'
16138 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16139 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16140 cross_compiling=$ac_cv_prog_cc_cross
16146 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16148 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16149 for ac_func in isnanl
16151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16152 echo "configure:16153: checking for $ac_func" >&5
16153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16154 echo $ac_n "(cached) $ac_c" 1>&6
16155 else
16156 cat > conftest.$ac_ext <<EOF
16157 #line 16158 "configure"
16158 #include "confdefs.h"
16159 /* System header to define __stub macros and hopefully few prototypes,
16160 which can conflict with char $ac_func(); below. */
16161 #include <assert.h>
16162 /* Override any gcc2 internal prototype to avoid an error. */
16163 /* We use char because int might match the return type of a gcc2
16164 builtin and then its argument prototype would still apply. */
16165 char $ac_func();
16167 int main() {
16169 /* The GNU C library defines this for functions which it implements
16170 to always fail with ENOSYS. Some functions are actually named
16171 something starting with __ and the normal name is an alias. */
16172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16173 choke me
16174 #else
16175 $ac_func();
16176 #endif
16178 ; return 0; }
16180 if { (eval echo configure:16181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16181 rm -rf conftest*
16182 eval "ac_cv_func_$ac_func=yes"
16183 else
16184 echo "configure: failed program was:" >&5
16185 cat conftest.$ac_ext >&5
16186 rm -rf conftest*
16187 eval "ac_cv_func_$ac_func=no"
16189 rm -f conftest*
16192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16193 echo "$ac_t""yes" 1>&6
16194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16195 cat >> confdefs.h <<EOF
16196 #define $ac_tr_func 1
16199 else
16200 echo "$ac_t""no" 1>&6
16202 done
16204 else
16206 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16207 echo "configure:16208: checking for _isnanl declaration" >&5
16208 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16209 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16210 echo $ac_n "(cached) $ac_c" 1>&6
16211 else
16214 ac_ext=C
16215 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16216 ac_cpp='$CXXCPP $CPPFLAGS'
16217 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16218 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16219 cross_compiling=$ac_cv_prog_cxx_cross
16221 cat > conftest.$ac_ext <<EOF
16222 #line 16223 "configure"
16223 #include "confdefs.h"
16224 #include <math.h>
16225 #ifdef HAVE_IEEEFP_H
16226 #include <ieeefp.h>
16227 #endif
16229 int main() {
16230 _isnanl(0);
16231 ; return 0; }
16233 if { (eval echo configure:16234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16234 rm -rf conftest*
16235 glibcpp_cv_func__isnanl_use=yes
16236 else
16237 echo "configure: failed program was:" >&5
16238 cat conftest.$ac_ext >&5
16239 rm -rf conftest*
16240 glibcpp_cv_func__isnanl_use=no
16242 rm -f conftest*
16243 ac_ext=c
16244 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16245 ac_cpp='$CPP $CPPFLAGS'
16246 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16247 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16248 cross_compiling=$ac_cv_prog_cc_cross
16254 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16256 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16257 for ac_func in _isnanl
16259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16260 echo "configure:16261: checking for $ac_func" >&5
16261 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16262 echo $ac_n "(cached) $ac_c" 1>&6
16263 else
16264 cat > conftest.$ac_ext <<EOF
16265 #line 16266 "configure"
16266 #include "confdefs.h"
16267 /* System header to define __stub macros and hopefully few prototypes,
16268 which can conflict with char $ac_func(); below. */
16269 #include <assert.h>
16270 /* Override any gcc2 internal prototype to avoid an error. */
16271 /* We use char because int might match the return type of a gcc2
16272 builtin and then its argument prototype would still apply. */
16273 char $ac_func();
16275 int main() {
16277 /* The GNU C library defines this for functions which it implements
16278 to always fail with ENOSYS. Some functions are actually named
16279 something starting with __ and the normal name is an alias. */
16280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16281 choke me
16282 #else
16283 $ac_func();
16284 #endif
16286 ; return 0; }
16288 if { (eval echo configure:16289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16289 rm -rf conftest*
16290 eval "ac_cv_func_$ac_func=yes"
16291 else
16292 echo "configure: failed program was:" >&5
16293 cat conftest.$ac_ext >&5
16294 rm -rf conftest*
16295 eval "ac_cv_func_$ac_func=no"
16297 rm -f conftest*
16300 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16301 echo "$ac_t""yes" 1>&6
16302 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16303 cat >> confdefs.h <<EOF
16304 #define $ac_tr_func 1
16307 else
16308 echo "$ac_t""no" 1>&6
16310 done
16317 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16318 echo "configure:16319: checking for isinfl declaration" >&5
16319 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16320 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16321 echo $ac_n "(cached) $ac_c" 1>&6
16322 else
16325 ac_ext=C
16326 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16327 ac_cpp='$CXXCPP $CPPFLAGS'
16328 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16329 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16330 cross_compiling=$ac_cv_prog_cxx_cross
16332 cat > conftest.$ac_ext <<EOF
16333 #line 16334 "configure"
16334 #include "confdefs.h"
16335 #include <math.h>
16336 #ifdef HAVE_IEEEFP_H
16337 #include <ieeefp.h>
16338 #endif
16340 int main() {
16341 isinfl(0);
16342 ; return 0; }
16344 if { (eval echo configure:16345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16345 rm -rf conftest*
16346 glibcpp_cv_func_isinfl_use=yes
16347 else
16348 echo "configure: failed program was:" >&5
16349 cat conftest.$ac_ext >&5
16350 rm -rf conftest*
16351 glibcpp_cv_func_isinfl_use=no
16353 rm -f conftest*
16354 ac_ext=c
16355 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16356 ac_cpp='$CPP $CPPFLAGS'
16357 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16358 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16359 cross_compiling=$ac_cv_prog_cc_cross
16365 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16367 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16368 for ac_func in isinfl
16370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16371 echo "configure:16372: checking for $ac_func" >&5
16372 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16373 echo $ac_n "(cached) $ac_c" 1>&6
16374 else
16375 cat > conftest.$ac_ext <<EOF
16376 #line 16377 "configure"
16377 #include "confdefs.h"
16378 /* System header to define __stub macros and hopefully few prototypes,
16379 which can conflict with char $ac_func(); below. */
16380 #include <assert.h>
16381 /* Override any gcc2 internal prototype to avoid an error. */
16382 /* We use char because int might match the return type of a gcc2
16383 builtin and then its argument prototype would still apply. */
16384 char $ac_func();
16386 int main() {
16388 /* The GNU C library defines this for functions which it implements
16389 to always fail with ENOSYS. Some functions are actually named
16390 something starting with __ and the normal name is an alias. */
16391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16392 choke me
16393 #else
16394 $ac_func();
16395 #endif
16397 ; return 0; }
16399 if { (eval echo configure:16400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16400 rm -rf conftest*
16401 eval "ac_cv_func_$ac_func=yes"
16402 else
16403 echo "configure: failed program was:" >&5
16404 cat conftest.$ac_ext >&5
16405 rm -rf conftest*
16406 eval "ac_cv_func_$ac_func=no"
16408 rm -f conftest*
16411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16412 echo "$ac_t""yes" 1>&6
16413 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16414 cat >> confdefs.h <<EOF
16415 #define $ac_tr_func 1
16418 else
16419 echo "$ac_t""no" 1>&6
16421 done
16423 else
16425 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16426 echo "configure:16427: checking for _isinfl declaration" >&5
16427 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16428 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16429 echo $ac_n "(cached) $ac_c" 1>&6
16430 else
16433 ac_ext=C
16434 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16435 ac_cpp='$CXXCPP $CPPFLAGS'
16436 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16437 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16438 cross_compiling=$ac_cv_prog_cxx_cross
16440 cat > conftest.$ac_ext <<EOF
16441 #line 16442 "configure"
16442 #include "confdefs.h"
16443 #include <math.h>
16444 #ifdef HAVE_IEEEFP_H
16445 #include <ieeefp.h>
16446 #endif
16448 int main() {
16449 _isinfl(0);
16450 ; return 0; }
16452 if { (eval echo configure:16453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16453 rm -rf conftest*
16454 glibcpp_cv_func__isinfl_use=yes
16455 else
16456 echo "configure: failed program was:" >&5
16457 cat conftest.$ac_ext >&5
16458 rm -rf conftest*
16459 glibcpp_cv_func__isinfl_use=no
16461 rm -f conftest*
16462 ac_ext=c
16463 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16464 ac_cpp='$CPP $CPPFLAGS'
16465 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16466 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16467 cross_compiling=$ac_cv_prog_cc_cross
16473 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16475 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16476 for ac_func in _isinfl
16478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16479 echo "configure:16480: checking for $ac_func" >&5
16480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16481 echo $ac_n "(cached) $ac_c" 1>&6
16482 else
16483 cat > conftest.$ac_ext <<EOF
16484 #line 16485 "configure"
16485 #include "confdefs.h"
16486 /* System header to define __stub macros and hopefully few prototypes,
16487 which can conflict with char $ac_func(); below. */
16488 #include <assert.h>
16489 /* Override any gcc2 internal prototype to avoid an error. */
16490 /* We use char because int might match the return type of a gcc2
16491 builtin and then its argument prototype would still apply. */
16492 char $ac_func();
16494 int main() {
16496 /* The GNU C library defines this for functions which it implements
16497 to always fail with ENOSYS. Some functions are actually named
16498 something starting with __ and the normal name is an alias. */
16499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16500 choke me
16501 #else
16502 $ac_func();
16503 #endif
16505 ; return 0; }
16507 if { (eval echo configure:16508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16508 rm -rf conftest*
16509 eval "ac_cv_func_$ac_func=yes"
16510 else
16511 echo "configure: failed program was:" >&5
16512 cat conftest.$ac_ext >&5
16513 rm -rf conftest*
16514 eval "ac_cv_func_$ac_func=no"
16516 rm -f conftest*
16519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16520 echo "$ac_t""yes" 1>&6
16521 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16522 cat >> confdefs.h <<EOF
16523 #define $ac_tr_func 1
16526 else
16527 echo "$ac_t""no" 1>&6
16529 done
16536 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16537 echo "configure:16538: checking for copysignl declaration" >&5
16538 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16539 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16540 echo $ac_n "(cached) $ac_c" 1>&6
16541 else
16544 ac_ext=C
16545 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16546 ac_cpp='$CXXCPP $CPPFLAGS'
16547 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16548 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16549 cross_compiling=$ac_cv_prog_cxx_cross
16551 cat > conftest.$ac_ext <<EOF
16552 #line 16553 "configure"
16553 #include "confdefs.h"
16554 #include <math.h>
16555 int main() {
16556 copysignl(0, 0);
16557 ; return 0; }
16559 if { (eval echo configure:16560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16560 rm -rf conftest*
16561 glibcpp_cv_func_copysignl_use=yes
16562 else
16563 echo "configure: failed program was:" >&5
16564 cat conftest.$ac_ext >&5
16565 rm -rf conftest*
16566 glibcpp_cv_func_copysignl_use=no
16568 rm -f conftest*
16569 ac_ext=c
16570 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16571 ac_cpp='$CPP $CPPFLAGS'
16572 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16573 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16574 cross_compiling=$ac_cv_prog_cc_cross
16580 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16582 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16583 for ac_func in copysignl
16585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16586 echo "configure:16587: checking for $ac_func" >&5
16587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16588 echo $ac_n "(cached) $ac_c" 1>&6
16589 else
16590 cat > conftest.$ac_ext <<EOF
16591 #line 16592 "configure"
16592 #include "confdefs.h"
16593 /* System header to define __stub macros and hopefully few prototypes,
16594 which can conflict with char $ac_func(); below. */
16595 #include <assert.h>
16596 /* Override any gcc2 internal prototype to avoid an error. */
16597 /* We use char because int might match the return type of a gcc2
16598 builtin and then its argument prototype would still apply. */
16599 char $ac_func();
16601 int main() {
16603 /* The GNU C library defines this for functions which it implements
16604 to always fail with ENOSYS. Some functions are actually named
16605 something starting with __ and the normal name is an alias. */
16606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16607 choke me
16608 #else
16609 $ac_func();
16610 #endif
16612 ; return 0; }
16614 if { (eval echo configure:16615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16615 rm -rf conftest*
16616 eval "ac_cv_func_$ac_func=yes"
16617 else
16618 echo "configure: failed program was:" >&5
16619 cat conftest.$ac_ext >&5
16620 rm -rf conftest*
16621 eval "ac_cv_func_$ac_func=no"
16623 rm -f conftest*
16626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16627 echo "$ac_t""yes" 1>&6
16628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16629 cat >> confdefs.h <<EOF
16630 #define $ac_tr_func 1
16633 else
16634 echo "$ac_t""no" 1>&6
16636 done
16638 else
16640 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16641 echo "configure:16642: checking for _copysignl declaration" >&5
16642 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16643 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16644 echo $ac_n "(cached) $ac_c" 1>&6
16645 else
16648 ac_ext=C
16649 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16650 ac_cpp='$CXXCPP $CPPFLAGS'
16651 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16652 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16653 cross_compiling=$ac_cv_prog_cxx_cross
16655 cat > conftest.$ac_ext <<EOF
16656 #line 16657 "configure"
16657 #include "confdefs.h"
16658 #include <math.h>
16659 int main() {
16660 _copysignl(0, 0);
16661 ; return 0; }
16663 if { (eval echo configure:16664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16664 rm -rf conftest*
16665 glibcpp_cv_func__copysignl_use=yes
16666 else
16667 echo "configure: failed program was:" >&5
16668 cat conftest.$ac_ext >&5
16669 rm -rf conftest*
16670 glibcpp_cv_func__copysignl_use=no
16672 rm -f conftest*
16673 ac_ext=c
16674 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16675 ac_cpp='$CPP $CPPFLAGS'
16676 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16677 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16678 cross_compiling=$ac_cv_prog_cc_cross
16684 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16686 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16687 for ac_func in _copysignl
16689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16690 echo "configure:16691: checking for $ac_func" >&5
16691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16692 echo $ac_n "(cached) $ac_c" 1>&6
16693 else
16694 cat > conftest.$ac_ext <<EOF
16695 #line 16696 "configure"
16696 #include "confdefs.h"
16697 /* System header to define __stub macros and hopefully few prototypes,
16698 which can conflict with char $ac_func(); below. */
16699 #include <assert.h>
16700 /* Override any gcc2 internal prototype to avoid an error. */
16701 /* We use char because int might match the return type of a gcc2
16702 builtin and then its argument prototype would still apply. */
16703 char $ac_func();
16705 int main() {
16707 /* The GNU C library defines this for functions which it implements
16708 to always fail with ENOSYS. Some functions are actually named
16709 something starting with __ and the normal name is an alias. */
16710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16711 choke me
16712 #else
16713 $ac_func();
16714 #endif
16716 ; return 0; }
16718 if { (eval echo configure:16719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16719 rm -rf conftest*
16720 eval "ac_cv_func_$ac_func=yes"
16721 else
16722 echo "configure: failed program was:" >&5
16723 cat conftest.$ac_ext >&5
16724 rm -rf conftest*
16725 eval "ac_cv_func_$ac_func=no"
16727 rm -f conftest*
16730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16731 echo "$ac_t""yes" 1>&6
16732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16733 cat >> confdefs.h <<EOF
16734 #define $ac_tr_func 1
16737 else
16738 echo "$ac_t""no" 1>&6
16740 done
16747 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16748 echo "configure:16749: checking for atan2l declaration" >&5
16749 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16750 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16751 echo $ac_n "(cached) $ac_c" 1>&6
16752 else
16755 ac_ext=C
16756 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16757 ac_cpp='$CXXCPP $CPPFLAGS'
16758 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16759 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16760 cross_compiling=$ac_cv_prog_cxx_cross
16762 cat > conftest.$ac_ext <<EOF
16763 #line 16764 "configure"
16764 #include "confdefs.h"
16765 #include <math.h>
16766 int main() {
16767 atan2l(0, 0);
16768 ; return 0; }
16770 if { (eval echo configure:16771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16771 rm -rf conftest*
16772 glibcpp_cv_func_atan2l_use=yes
16773 else
16774 echo "configure: failed program was:" >&5
16775 cat conftest.$ac_ext >&5
16776 rm -rf conftest*
16777 glibcpp_cv_func_atan2l_use=no
16779 rm -f conftest*
16780 ac_ext=c
16781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16782 ac_cpp='$CPP $CPPFLAGS'
16783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16784 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16785 cross_compiling=$ac_cv_prog_cc_cross
16791 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
16793 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
16794 for ac_func in atan2l
16796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16797 echo "configure:16798: checking for $ac_func" >&5
16798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16799 echo $ac_n "(cached) $ac_c" 1>&6
16800 else
16801 cat > conftest.$ac_ext <<EOF
16802 #line 16803 "configure"
16803 #include "confdefs.h"
16804 /* System header to define __stub macros and hopefully few prototypes,
16805 which can conflict with char $ac_func(); below. */
16806 #include <assert.h>
16807 /* Override any gcc2 internal prototype to avoid an error. */
16808 /* We use char because int might match the return type of a gcc2
16809 builtin and then its argument prototype would still apply. */
16810 char $ac_func();
16812 int main() {
16814 /* The GNU C library defines this for functions which it implements
16815 to always fail with ENOSYS. Some functions are actually named
16816 something starting with __ and the normal name is an alias. */
16817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16818 choke me
16819 #else
16820 $ac_func();
16821 #endif
16823 ; return 0; }
16825 if { (eval echo configure:16826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16826 rm -rf conftest*
16827 eval "ac_cv_func_$ac_func=yes"
16828 else
16829 echo "configure: failed program was:" >&5
16830 cat conftest.$ac_ext >&5
16831 rm -rf conftest*
16832 eval "ac_cv_func_$ac_func=no"
16834 rm -f conftest*
16837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16838 echo "$ac_t""yes" 1>&6
16839 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16840 cat >> confdefs.h <<EOF
16841 #define $ac_tr_func 1
16844 else
16845 echo "$ac_t""no" 1>&6
16847 done
16849 else
16851 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
16852 echo "configure:16853: checking for _atan2l declaration" >&5
16853 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
16854 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
16855 echo $ac_n "(cached) $ac_c" 1>&6
16856 else
16859 ac_ext=C
16860 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16861 ac_cpp='$CXXCPP $CPPFLAGS'
16862 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16863 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16864 cross_compiling=$ac_cv_prog_cxx_cross
16866 cat > conftest.$ac_ext <<EOF
16867 #line 16868 "configure"
16868 #include "confdefs.h"
16869 #include <math.h>
16870 int main() {
16871 _atan2l(0, 0);
16872 ; return 0; }
16874 if { (eval echo configure:16875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16875 rm -rf conftest*
16876 glibcpp_cv_func__atan2l_use=yes
16877 else
16878 echo "configure: failed program was:" >&5
16879 cat conftest.$ac_ext >&5
16880 rm -rf conftest*
16881 glibcpp_cv_func__atan2l_use=no
16883 rm -f conftest*
16884 ac_ext=c
16885 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16886 ac_cpp='$CPP $CPPFLAGS'
16887 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16888 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16889 cross_compiling=$ac_cv_prog_cc_cross
16895 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
16897 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
16898 for ac_func in _atan2l
16900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16901 echo "configure:16902: checking for $ac_func" >&5
16902 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16903 echo $ac_n "(cached) $ac_c" 1>&6
16904 else
16905 cat > conftest.$ac_ext <<EOF
16906 #line 16907 "configure"
16907 #include "confdefs.h"
16908 /* System header to define __stub macros and hopefully few prototypes,
16909 which can conflict with char $ac_func(); below. */
16910 #include <assert.h>
16911 /* Override any gcc2 internal prototype to avoid an error. */
16912 /* We use char because int might match the return type of a gcc2
16913 builtin and then its argument prototype would still apply. */
16914 char $ac_func();
16916 int main() {
16918 /* The GNU C library defines this for functions which it implements
16919 to always fail with ENOSYS. Some functions are actually named
16920 something starting with __ and the normal name is an alias. */
16921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16922 choke me
16923 #else
16924 $ac_func();
16925 #endif
16927 ; return 0; }
16929 if { (eval echo configure:16930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16930 rm -rf conftest*
16931 eval "ac_cv_func_$ac_func=yes"
16932 else
16933 echo "configure: failed program was:" >&5
16934 cat conftest.$ac_ext >&5
16935 rm -rf conftest*
16936 eval "ac_cv_func_$ac_func=no"
16938 rm -f conftest*
16941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16942 echo "$ac_t""yes" 1>&6
16943 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16944 cat >> confdefs.h <<EOF
16945 #define $ac_tr_func 1
16948 else
16949 echo "$ac_t""no" 1>&6
16951 done
16958 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
16959 echo "configure:16960: checking for expl declaration" >&5
16960 if test x${glibcpp_cv_func_expl_use+set} != xset; then
16961 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
16962 echo $ac_n "(cached) $ac_c" 1>&6
16963 else
16966 ac_ext=C
16967 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16968 ac_cpp='$CXXCPP $CPPFLAGS'
16969 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16970 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16971 cross_compiling=$ac_cv_prog_cxx_cross
16973 cat > conftest.$ac_ext <<EOF
16974 #line 16975 "configure"
16975 #include "confdefs.h"
16976 #include <math.h>
16977 #ifdef HAVE_IEEEFP_H
16978 #include <ieeefp.h>
16979 #endif
16981 int main() {
16982 expl(0);
16983 ; return 0; }
16985 if { (eval echo configure:16986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16986 rm -rf conftest*
16987 glibcpp_cv_func_expl_use=yes
16988 else
16989 echo "configure: failed program was:" >&5
16990 cat conftest.$ac_ext >&5
16991 rm -rf conftest*
16992 glibcpp_cv_func_expl_use=no
16994 rm -f conftest*
16995 ac_ext=c
16996 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16997 ac_cpp='$CPP $CPPFLAGS'
16998 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16999 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17000 cross_compiling=$ac_cv_prog_cc_cross
17006 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17008 if test x$glibcpp_cv_func_expl_use = x"yes"; then
17009 for ac_func in expl
17011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17012 echo "configure:17013: checking for $ac_func" >&5
17013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17014 echo $ac_n "(cached) $ac_c" 1>&6
17015 else
17016 cat > conftest.$ac_ext <<EOF
17017 #line 17018 "configure"
17018 #include "confdefs.h"
17019 /* System header to define __stub macros and hopefully few prototypes,
17020 which can conflict with char $ac_func(); below. */
17021 #include <assert.h>
17022 /* Override any gcc2 internal prototype to avoid an error. */
17023 /* We use char because int might match the return type of a gcc2
17024 builtin and then its argument prototype would still apply. */
17025 char $ac_func();
17027 int main() {
17029 /* The GNU C library defines this for functions which it implements
17030 to always fail with ENOSYS. Some functions are actually named
17031 something starting with __ and the normal name is an alias. */
17032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17033 choke me
17034 #else
17035 $ac_func();
17036 #endif
17038 ; return 0; }
17040 if { (eval echo configure:17041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17041 rm -rf conftest*
17042 eval "ac_cv_func_$ac_func=yes"
17043 else
17044 echo "configure: failed program was:" >&5
17045 cat conftest.$ac_ext >&5
17046 rm -rf conftest*
17047 eval "ac_cv_func_$ac_func=no"
17049 rm -f conftest*
17052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17053 echo "$ac_t""yes" 1>&6
17054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17055 cat >> confdefs.h <<EOF
17056 #define $ac_tr_func 1
17059 else
17060 echo "$ac_t""no" 1>&6
17062 done
17064 else
17066 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17067 echo "configure:17068: checking for _expl declaration" >&5
17068 if test x${glibcpp_cv_func__expl_use+set} != xset; then
17069 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17070 echo $ac_n "(cached) $ac_c" 1>&6
17071 else
17074 ac_ext=C
17075 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17076 ac_cpp='$CXXCPP $CPPFLAGS'
17077 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17078 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17079 cross_compiling=$ac_cv_prog_cxx_cross
17081 cat > conftest.$ac_ext <<EOF
17082 #line 17083 "configure"
17083 #include "confdefs.h"
17084 #include <math.h>
17085 #ifdef HAVE_IEEEFP_H
17086 #include <ieeefp.h>
17087 #endif
17089 int main() {
17090 _expl(0);
17091 ; return 0; }
17093 if { (eval echo configure:17094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17094 rm -rf conftest*
17095 glibcpp_cv_func__expl_use=yes
17096 else
17097 echo "configure: failed program was:" >&5
17098 cat conftest.$ac_ext >&5
17099 rm -rf conftest*
17100 glibcpp_cv_func__expl_use=no
17102 rm -f conftest*
17103 ac_ext=c
17104 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17105 ac_cpp='$CPP $CPPFLAGS'
17106 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17107 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17108 cross_compiling=$ac_cv_prog_cc_cross
17114 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17116 if test x$glibcpp_cv_func__expl_use = x"yes"; then
17117 for ac_func in _expl
17119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17120 echo "configure:17121: checking for $ac_func" >&5
17121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17122 echo $ac_n "(cached) $ac_c" 1>&6
17123 else
17124 cat > conftest.$ac_ext <<EOF
17125 #line 17126 "configure"
17126 #include "confdefs.h"
17127 /* System header to define __stub macros and hopefully few prototypes,
17128 which can conflict with char $ac_func(); below. */
17129 #include <assert.h>
17130 /* Override any gcc2 internal prototype to avoid an error. */
17131 /* We use char because int might match the return type of a gcc2
17132 builtin and then its argument prototype would still apply. */
17133 char $ac_func();
17135 int main() {
17137 /* The GNU C library defines this for functions which it implements
17138 to always fail with ENOSYS. Some functions are actually named
17139 something starting with __ and the normal name is an alias. */
17140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17141 choke me
17142 #else
17143 $ac_func();
17144 #endif
17146 ; return 0; }
17148 if { (eval echo configure:17149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17149 rm -rf conftest*
17150 eval "ac_cv_func_$ac_func=yes"
17151 else
17152 echo "configure: failed program was:" >&5
17153 cat conftest.$ac_ext >&5
17154 rm -rf conftest*
17155 eval "ac_cv_func_$ac_func=no"
17157 rm -f conftest*
17160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17161 echo "$ac_t""yes" 1>&6
17162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17163 cat >> confdefs.h <<EOF
17164 #define $ac_tr_func 1
17167 else
17168 echo "$ac_t""no" 1>&6
17170 done
17177 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17178 echo "configure:17179: checking for fabsl declaration" >&5
17179 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17180 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17181 echo $ac_n "(cached) $ac_c" 1>&6
17182 else
17185 ac_ext=C
17186 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17187 ac_cpp='$CXXCPP $CPPFLAGS'
17188 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17189 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17190 cross_compiling=$ac_cv_prog_cxx_cross
17192 cat > conftest.$ac_ext <<EOF
17193 #line 17194 "configure"
17194 #include "confdefs.h"
17195 #include <math.h>
17196 #ifdef HAVE_IEEEFP_H
17197 #include <ieeefp.h>
17198 #endif
17200 int main() {
17201 fabsl(0);
17202 ; return 0; }
17204 if { (eval echo configure:17205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17205 rm -rf conftest*
17206 glibcpp_cv_func_fabsl_use=yes
17207 else
17208 echo "configure: failed program was:" >&5
17209 cat conftest.$ac_ext >&5
17210 rm -rf conftest*
17211 glibcpp_cv_func_fabsl_use=no
17213 rm -f conftest*
17214 ac_ext=c
17215 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17216 ac_cpp='$CPP $CPPFLAGS'
17217 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17218 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17219 cross_compiling=$ac_cv_prog_cc_cross
17225 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17227 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17228 for ac_func in fabsl
17230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17231 echo "configure:17232: checking for $ac_func" >&5
17232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17233 echo $ac_n "(cached) $ac_c" 1>&6
17234 else
17235 cat > conftest.$ac_ext <<EOF
17236 #line 17237 "configure"
17237 #include "confdefs.h"
17238 /* System header to define __stub macros and hopefully few prototypes,
17239 which can conflict with char $ac_func(); below. */
17240 #include <assert.h>
17241 /* Override any gcc2 internal prototype to avoid an error. */
17242 /* We use char because int might match the return type of a gcc2
17243 builtin and then its argument prototype would still apply. */
17244 char $ac_func();
17246 int main() {
17248 /* The GNU C library defines this for functions which it implements
17249 to always fail with ENOSYS. Some functions are actually named
17250 something starting with __ and the normal name is an alias. */
17251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17252 choke me
17253 #else
17254 $ac_func();
17255 #endif
17257 ; return 0; }
17259 if { (eval echo configure:17260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17260 rm -rf conftest*
17261 eval "ac_cv_func_$ac_func=yes"
17262 else
17263 echo "configure: failed program was:" >&5
17264 cat conftest.$ac_ext >&5
17265 rm -rf conftest*
17266 eval "ac_cv_func_$ac_func=no"
17268 rm -f conftest*
17271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17272 echo "$ac_t""yes" 1>&6
17273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17274 cat >> confdefs.h <<EOF
17275 #define $ac_tr_func 1
17278 else
17279 echo "$ac_t""no" 1>&6
17281 done
17283 else
17285 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17286 echo "configure:17287: checking for _fabsl declaration" >&5
17287 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17288 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17289 echo $ac_n "(cached) $ac_c" 1>&6
17290 else
17293 ac_ext=C
17294 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17295 ac_cpp='$CXXCPP $CPPFLAGS'
17296 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17297 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17298 cross_compiling=$ac_cv_prog_cxx_cross
17300 cat > conftest.$ac_ext <<EOF
17301 #line 17302 "configure"
17302 #include "confdefs.h"
17303 #include <math.h>
17304 #ifdef HAVE_IEEEFP_H
17305 #include <ieeefp.h>
17306 #endif
17308 int main() {
17309 _fabsl(0);
17310 ; return 0; }
17312 if { (eval echo configure:17313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17313 rm -rf conftest*
17314 glibcpp_cv_func__fabsl_use=yes
17315 else
17316 echo "configure: failed program was:" >&5
17317 cat conftest.$ac_ext >&5
17318 rm -rf conftest*
17319 glibcpp_cv_func__fabsl_use=no
17321 rm -f conftest*
17322 ac_ext=c
17323 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17324 ac_cpp='$CPP $CPPFLAGS'
17325 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17326 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17327 cross_compiling=$ac_cv_prog_cc_cross
17333 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17335 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17336 for ac_func in _fabsl
17338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17339 echo "configure:17340: checking for $ac_func" >&5
17340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17341 echo $ac_n "(cached) $ac_c" 1>&6
17342 else
17343 cat > conftest.$ac_ext <<EOF
17344 #line 17345 "configure"
17345 #include "confdefs.h"
17346 /* System header to define __stub macros and hopefully few prototypes,
17347 which can conflict with char $ac_func(); below. */
17348 #include <assert.h>
17349 /* Override any gcc2 internal prototype to avoid an error. */
17350 /* We use char because int might match the return type of a gcc2
17351 builtin and then its argument prototype would still apply. */
17352 char $ac_func();
17354 int main() {
17356 /* The GNU C library defines this for functions which it implements
17357 to always fail with ENOSYS. Some functions are actually named
17358 something starting with __ and the normal name is an alias. */
17359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17360 choke me
17361 #else
17362 $ac_func();
17363 #endif
17365 ; return 0; }
17367 if { (eval echo configure:17368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17368 rm -rf conftest*
17369 eval "ac_cv_func_$ac_func=yes"
17370 else
17371 echo "configure: failed program was:" >&5
17372 cat conftest.$ac_ext >&5
17373 rm -rf conftest*
17374 eval "ac_cv_func_$ac_func=no"
17376 rm -f conftest*
17379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17380 echo "$ac_t""yes" 1>&6
17381 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17382 cat >> confdefs.h <<EOF
17383 #define $ac_tr_func 1
17386 else
17387 echo "$ac_t""no" 1>&6
17389 done
17396 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17397 echo "configure:17398: checking for fmodl declaration" >&5
17398 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17399 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17400 echo $ac_n "(cached) $ac_c" 1>&6
17401 else
17404 ac_ext=C
17405 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17406 ac_cpp='$CXXCPP $CPPFLAGS'
17407 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17408 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17409 cross_compiling=$ac_cv_prog_cxx_cross
17411 cat > conftest.$ac_ext <<EOF
17412 #line 17413 "configure"
17413 #include "confdefs.h"
17414 #include <math.h>
17415 int main() {
17416 fmodl(0, 0);
17417 ; return 0; }
17419 if { (eval echo configure:17420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17420 rm -rf conftest*
17421 glibcpp_cv_func_fmodl_use=yes
17422 else
17423 echo "configure: failed program was:" >&5
17424 cat conftest.$ac_ext >&5
17425 rm -rf conftest*
17426 glibcpp_cv_func_fmodl_use=no
17428 rm -f conftest*
17429 ac_ext=c
17430 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17431 ac_cpp='$CPP $CPPFLAGS'
17432 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17433 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17434 cross_compiling=$ac_cv_prog_cc_cross
17440 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17442 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17443 for ac_func in fmodl
17445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17446 echo "configure:17447: checking for $ac_func" >&5
17447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17448 echo $ac_n "(cached) $ac_c" 1>&6
17449 else
17450 cat > conftest.$ac_ext <<EOF
17451 #line 17452 "configure"
17452 #include "confdefs.h"
17453 /* System header to define __stub macros and hopefully few prototypes,
17454 which can conflict with char $ac_func(); below. */
17455 #include <assert.h>
17456 /* Override any gcc2 internal prototype to avoid an error. */
17457 /* We use char because int might match the return type of a gcc2
17458 builtin and then its argument prototype would still apply. */
17459 char $ac_func();
17461 int main() {
17463 /* The GNU C library defines this for functions which it implements
17464 to always fail with ENOSYS. Some functions are actually named
17465 something starting with __ and the normal name is an alias. */
17466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17467 choke me
17468 #else
17469 $ac_func();
17470 #endif
17472 ; return 0; }
17474 if { (eval echo configure:17475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17475 rm -rf conftest*
17476 eval "ac_cv_func_$ac_func=yes"
17477 else
17478 echo "configure: failed program was:" >&5
17479 cat conftest.$ac_ext >&5
17480 rm -rf conftest*
17481 eval "ac_cv_func_$ac_func=no"
17483 rm -f conftest*
17486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17487 echo "$ac_t""yes" 1>&6
17488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17489 cat >> confdefs.h <<EOF
17490 #define $ac_tr_func 1
17493 else
17494 echo "$ac_t""no" 1>&6
17496 done
17498 else
17500 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17501 echo "configure:17502: checking for _fmodl declaration" >&5
17502 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17503 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17504 echo $ac_n "(cached) $ac_c" 1>&6
17505 else
17508 ac_ext=C
17509 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17510 ac_cpp='$CXXCPP $CPPFLAGS'
17511 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17512 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17513 cross_compiling=$ac_cv_prog_cxx_cross
17515 cat > conftest.$ac_ext <<EOF
17516 #line 17517 "configure"
17517 #include "confdefs.h"
17518 #include <math.h>
17519 int main() {
17520 _fmodl(0, 0);
17521 ; return 0; }
17523 if { (eval echo configure:17524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17524 rm -rf conftest*
17525 glibcpp_cv_func__fmodl_use=yes
17526 else
17527 echo "configure: failed program was:" >&5
17528 cat conftest.$ac_ext >&5
17529 rm -rf conftest*
17530 glibcpp_cv_func__fmodl_use=no
17532 rm -f conftest*
17533 ac_ext=c
17534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17535 ac_cpp='$CPP $CPPFLAGS'
17536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17538 cross_compiling=$ac_cv_prog_cc_cross
17544 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17546 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17547 for ac_func in _fmodl
17549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17550 echo "configure:17551: checking for $ac_func" >&5
17551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17552 echo $ac_n "(cached) $ac_c" 1>&6
17553 else
17554 cat > conftest.$ac_ext <<EOF
17555 #line 17556 "configure"
17556 #include "confdefs.h"
17557 /* System header to define __stub macros and hopefully few prototypes,
17558 which can conflict with char $ac_func(); below. */
17559 #include <assert.h>
17560 /* Override any gcc2 internal prototype to avoid an error. */
17561 /* We use char because int might match the return type of a gcc2
17562 builtin and then its argument prototype would still apply. */
17563 char $ac_func();
17565 int main() {
17567 /* The GNU C library defines this for functions which it implements
17568 to always fail with ENOSYS. Some functions are actually named
17569 something starting with __ and the normal name is an alias. */
17570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17571 choke me
17572 #else
17573 $ac_func();
17574 #endif
17576 ; return 0; }
17578 if { (eval echo configure:17579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17579 rm -rf conftest*
17580 eval "ac_cv_func_$ac_func=yes"
17581 else
17582 echo "configure: failed program was:" >&5
17583 cat conftest.$ac_ext >&5
17584 rm -rf conftest*
17585 eval "ac_cv_func_$ac_func=no"
17587 rm -f conftest*
17590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17591 echo "$ac_t""yes" 1>&6
17592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17593 cat >> confdefs.h <<EOF
17594 #define $ac_tr_func 1
17597 else
17598 echo "$ac_t""no" 1>&6
17600 done
17607 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17608 echo "configure:17609: checking for frexpl declaration" >&5
17609 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17610 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17611 echo $ac_n "(cached) $ac_c" 1>&6
17612 else
17615 ac_ext=C
17616 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17617 ac_cpp='$CXXCPP $CPPFLAGS'
17618 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17619 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17620 cross_compiling=$ac_cv_prog_cxx_cross
17622 cat > conftest.$ac_ext <<EOF
17623 #line 17624 "configure"
17624 #include "confdefs.h"
17625 #include <math.h>
17626 int main() {
17627 frexpl(0, 0);
17628 ; return 0; }
17630 if { (eval echo configure:17631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17631 rm -rf conftest*
17632 glibcpp_cv_func_frexpl_use=yes
17633 else
17634 echo "configure: failed program was:" >&5
17635 cat conftest.$ac_ext >&5
17636 rm -rf conftest*
17637 glibcpp_cv_func_frexpl_use=no
17639 rm -f conftest*
17640 ac_ext=c
17641 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17642 ac_cpp='$CPP $CPPFLAGS'
17643 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17644 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17645 cross_compiling=$ac_cv_prog_cc_cross
17651 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17653 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17654 for ac_func in frexpl
17656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17657 echo "configure:17658: checking for $ac_func" >&5
17658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17659 echo $ac_n "(cached) $ac_c" 1>&6
17660 else
17661 cat > conftest.$ac_ext <<EOF
17662 #line 17663 "configure"
17663 #include "confdefs.h"
17664 /* System header to define __stub macros and hopefully few prototypes,
17665 which can conflict with char $ac_func(); below. */
17666 #include <assert.h>
17667 /* Override any gcc2 internal prototype to avoid an error. */
17668 /* We use char because int might match the return type of a gcc2
17669 builtin and then its argument prototype would still apply. */
17670 char $ac_func();
17672 int main() {
17674 /* The GNU C library defines this for functions which it implements
17675 to always fail with ENOSYS. Some functions are actually named
17676 something starting with __ and the normal name is an alias. */
17677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17678 choke me
17679 #else
17680 $ac_func();
17681 #endif
17683 ; return 0; }
17685 if { (eval echo configure:17686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17686 rm -rf conftest*
17687 eval "ac_cv_func_$ac_func=yes"
17688 else
17689 echo "configure: failed program was:" >&5
17690 cat conftest.$ac_ext >&5
17691 rm -rf conftest*
17692 eval "ac_cv_func_$ac_func=no"
17694 rm -f conftest*
17697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17698 echo "$ac_t""yes" 1>&6
17699 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17700 cat >> confdefs.h <<EOF
17701 #define $ac_tr_func 1
17704 else
17705 echo "$ac_t""no" 1>&6
17707 done
17709 else
17711 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17712 echo "configure:17713: checking for _frexpl declaration" >&5
17713 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17714 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17715 echo $ac_n "(cached) $ac_c" 1>&6
17716 else
17719 ac_ext=C
17720 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17721 ac_cpp='$CXXCPP $CPPFLAGS'
17722 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17723 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17724 cross_compiling=$ac_cv_prog_cxx_cross
17726 cat > conftest.$ac_ext <<EOF
17727 #line 17728 "configure"
17728 #include "confdefs.h"
17729 #include <math.h>
17730 int main() {
17731 _frexpl(0, 0);
17732 ; return 0; }
17734 if { (eval echo configure:17735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17735 rm -rf conftest*
17736 glibcpp_cv_func__frexpl_use=yes
17737 else
17738 echo "configure: failed program was:" >&5
17739 cat conftest.$ac_ext >&5
17740 rm -rf conftest*
17741 glibcpp_cv_func__frexpl_use=no
17743 rm -f conftest*
17744 ac_ext=c
17745 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17746 ac_cpp='$CPP $CPPFLAGS'
17747 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17748 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17749 cross_compiling=$ac_cv_prog_cc_cross
17755 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17757 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17758 for ac_func in _frexpl
17760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17761 echo "configure:17762: checking for $ac_func" >&5
17762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17763 echo $ac_n "(cached) $ac_c" 1>&6
17764 else
17765 cat > conftest.$ac_ext <<EOF
17766 #line 17767 "configure"
17767 #include "confdefs.h"
17768 /* System header to define __stub macros and hopefully few prototypes,
17769 which can conflict with char $ac_func(); below. */
17770 #include <assert.h>
17771 /* Override any gcc2 internal prototype to avoid an error. */
17772 /* We use char because int might match the return type of a gcc2
17773 builtin and then its argument prototype would still apply. */
17774 char $ac_func();
17776 int main() {
17778 /* The GNU C library defines this for functions which it implements
17779 to always fail with ENOSYS. Some functions are actually named
17780 something starting with __ and the normal name is an alias. */
17781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17782 choke me
17783 #else
17784 $ac_func();
17785 #endif
17787 ; return 0; }
17789 if { (eval echo configure:17790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17790 rm -rf conftest*
17791 eval "ac_cv_func_$ac_func=yes"
17792 else
17793 echo "configure: failed program was:" >&5
17794 cat conftest.$ac_ext >&5
17795 rm -rf conftest*
17796 eval "ac_cv_func_$ac_func=no"
17798 rm -f conftest*
17801 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17802 echo "$ac_t""yes" 1>&6
17803 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17804 cat >> confdefs.h <<EOF
17805 #define $ac_tr_func 1
17808 else
17809 echo "$ac_t""no" 1>&6
17811 done
17818 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
17819 echo "configure:17820: checking for hypotl declaration" >&5
17820 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
17821 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
17822 echo $ac_n "(cached) $ac_c" 1>&6
17823 else
17826 ac_ext=C
17827 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17828 ac_cpp='$CXXCPP $CPPFLAGS'
17829 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17830 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17831 cross_compiling=$ac_cv_prog_cxx_cross
17833 cat > conftest.$ac_ext <<EOF
17834 #line 17835 "configure"
17835 #include "confdefs.h"
17836 #include <math.h>
17837 int main() {
17838 hypotl(0, 0);
17839 ; return 0; }
17841 if { (eval echo configure:17842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17842 rm -rf conftest*
17843 glibcpp_cv_func_hypotl_use=yes
17844 else
17845 echo "configure: failed program was:" >&5
17846 cat conftest.$ac_ext >&5
17847 rm -rf conftest*
17848 glibcpp_cv_func_hypotl_use=no
17850 rm -f conftest*
17851 ac_ext=c
17852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17853 ac_cpp='$CPP $CPPFLAGS'
17854 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17855 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17856 cross_compiling=$ac_cv_prog_cc_cross
17862 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
17864 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
17865 for ac_func in hypotl
17867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17868 echo "configure:17869: checking for $ac_func" >&5
17869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17870 echo $ac_n "(cached) $ac_c" 1>&6
17871 else
17872 cat > conftest.$ac_ext <<EOF
17873 #line 17874 "configure"
17874 #include "confdefs.h"
17875 /* System header to define __stub macros and hopefully few prototypes,
17876 which can conflict with char $ac_func(); below. */
17877 #include <assert.h>
17878 /* Override any gcc2 internal prototype to avoid an error. */
17879 /* We use char because int might match the return type of a gcc2
17880 builtin and then its argument prototype would still apply. */
17881 char $ac_func();
17883 int main() {
17885 /* The GNU C library defines this for functions which it implements
17886 to always fail with ENOSYS. Some functions are actually named
17887 something starting with __ and the normal name is an alias. */
17888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17889 choke me
17890 #else
17891 $ac_func();
17892 #endif
17894 ; return 0; }
17896 if { (eval echo configure:17897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17897 rm -rf conftest*
17898 eval "ac_cv_func_$ac_func=yes"
17899 else
17900 echo "configure: failed program was:" >&5
17901 cat conftest.$ac_ext >&5
17902 rm -rf conftest*
17903 eval "ac_cv_func_$ac_func=no"
17905 rm -f conftest*
17908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17909 echo "$ac_t""yes" 1>&6
17910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17911 cat >> confdefs.h <<EOF
17912 #define $ac_tr_func 1
17915 else
17916 echo "$ac_t""no" 1>&6
17918 done
17920 else
17922 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
17923 echo "configure:17924: checking for _hypotl declaration" >&5
17924 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
17925 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
17926 echo $ac_n "(cached) $ac_c" 1>&6
17927 else
17930 ac_ext=C
17931 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17932 ac_cpp='$CXXCPP $CPPFLAGS'
17933 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17934 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17935 cross_compiling=$ac_cv_prog_cxx_cross
17937 cat > conftest.$ac_ext <<EOF
17938 #line 17939 "configure"
17939 #include "confdefs.h"
17940 #include <math.h>
17941 int main() {
17942 _hypotl(0, 0);
17943 ; return 0; }
17945 if { (eval echo configure:17946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17946 rm -rf conftest*
17947 glibcpp_cv_func__hypotl_use=yes
17948 else
17949 echo "configure: failed program was:" >&5
17950 cat conftest.$ac_ext >&5
17951 rm -rf conftest*
17952 glibcpp_cv_func__hypotl_use=no
17954 rm -f conftest*
17955 ac_ext=c
17956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17957 ac_cpp='$CPP $CPPFLAGS'
17958 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17959 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17960 cross_compiling=$ac_cv_prog_cc_cross
17966 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
17968 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
17969 for ac_func in _hypotl
17971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17972 echo "configure:17973: checking for $ac_func" >&5
17973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17974 echo $ac_n "(cached) $ac_c" 1>&6
17975 else
17976 cat > conftest.$ac_ext <<EOF
17977 #line 17978 "configure"
17978 #include "confdefs.h"
17979 /* System header to define __stub macros and hopefully few prototypes,
17980 which can conflict with char $ac_func(); below. */
17981 #include <assert.h>
17982 /* Override any gcc2 internal prototype to avoid an error. */
17983 /* We use char because int might match the return type of a gcc2
17984 builtin and then its argument prototype would still apply. */
17985 char $ac_func();
17987 int main() {
17989 /* The GNU C library defines this for functions which it implements
17990 to always fail with ENOSYS. Some functions are actually named
17991 something starting with __ and the normal name is an alias. */
17992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17993 choke me
17994 #else
17995 $ac_func();
17996 #endif
17998 ; return 0; }
18000 if { (eval echo configure:18001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18001 rm -rf conftest*
18002 eval "ac_cv_func_$ac_func=yes"
18003 else
18004 echo "configure: failed program was:" >&5
18005 cat conftest.$ac_ext >&5
18006 rm -rf conftest*
18007 eval "ac_cv_func_$ac_func=no"
18009 rm -f conftest*
18012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18013 echo "$ac_t""yes" 1>&6
18014 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18015 cat >> confdefs.h <<EOF
18016 #define $ac_tr_func 1
18019 else
18020 echo "$ac_t""no" 1>&6
18022 done
18029 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18030 echo "configure:18031: checking for ldexpl declaration" >&5
18031 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18032 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18033 echo $ac_n "(cached) $ac_c" 1>&6
18034 else
18037 ac_ext=C
18038 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18039 ac_cpp='$CXXCPP $CPPFLAGS'
18040 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18041 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18042 cross_compiling=$ac_cv_prog_cxx_cross
18044 cat > conftest.$ac_ext <<EOF
18045 #line 18046 "configure"
18046 #include "confdefs.h"
18047 #include <math.h>
18048 int main() {
18049 ldexpl(0, 0);
18050 ; return 0; }
18052 if { (eval echo configure:18053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18053 rm -rf conftest*
18054 glibcpp_cv_func_ldexpl_use=yes
18055 else
18056 echo "configure: failed program was:" >&5
18057 cat conftest.$ac_ext >&5
18058 rm -rf conftest*
18059 glibcpp_cv_func_ldexpl_use=no
18061 rm -f conftest*
18062 ac_ext=c
18063 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18064 ac_cpp='$CPP $CPPFLAGS'
18065 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18066 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18067 cross_compiling=$ac_cv_prog_cc_cross
18073 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18075 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18076 for ac_func in ldexpl
18078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18079 echo "configure:18080: checking for $ac_func" >&5
18080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18081 echo $ac_n "(cached) $ac_c" 1>&6
18082 else
18083 cat > conftest.$ac_ext <<EOF
18084 #line 18085 "configure"
18085 #include "confdefs.h"
18086 /* System header to define __stub macros and hopefully few prototypes,
18087 which can conflict with char $ac_func(); below. */
18088 #include <assert.h>
18089 /* Override any gcc2 internal prototype to avoid an error. */
18090 /* We use char because int might match the return type of a gcc2
18091 builtin and then its argument prototype would still apply. */
18092 char $ac_func();
18094 int main() {
18096 /* The GNU C library defines this for functions which it implements
18097 to always fail with ENOSYS. Some functions are actually named
18098 something starting with __ and the normal name is an alias. */
18099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18100 choke me
18101 #else
18102 $ac_func();
18103 #endif
18105 ; return 0; }
18107 if { (eval echo configure:18108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18108 rm -rf conftest*
18109 eval "ac_cv_func_$ac_func=yes"
18110 else
18111 echo "configure: failed program was:" >&5
18112 cat conftest.$ac_ext >&5
18113 rm -rf conftest*
18114 eval "ac_cv_func_$ac_func=no"
18116 rm -f conftest*
18119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18120 echo "$ac_t""yes" 1>&6
18121 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18122 cat >> confdefs.h <<EOF
18123 #define $ac_tr_func 1
18126 else
18127 echo "$ac_t""no" 1>&6
18129 done
18131 else
18133 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18134 echo "configure:18135: checking for _ldexpl declaration" >&5
18135 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18136 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18137 echo $ac_n "(cached) $ac_c" 1>&6
18138 else
18141 ac_ext=C
18142 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18143 ac_cpp='$CXXCPP $CPPFLAGS'
18144 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18145 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18146 cross_compiling=$ac_cv_prog_cxx_cross
18148 cat > conftest.$ac_ext <<EOF
18149 #line 18150 "configure"
18150 #include "confdefs.h"
18151 #include <math.h>
18152 int main() {
18153 _ldexpl(0, 0);
18154 ; return 0; }
18156 if { (eval echo configure:18157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18157 rm -rf conftest*
18158 glibcpp_cv_func__ldexpl_use=yes
18159 else
18160 echo "configure: failed program was:" >&5
18161 cat conftest.$ac_ext >&5
18162 rm -rf conftest*
18163 glibcpp_cv_func__ldexpl_use=no
18165 rm -f conftest*
18166 ac_ext=c
18167 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18168 ac_cpp='$CPP $CPPFLAGS'
18169 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18170 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18171 cross_compiling=$ac_cv_prog_cc_cross
18177 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18179 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18180 for ac_func in _ldexpl
18182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18183 echo "configure:18184: checking for $ac_func" >&5
18184 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18185 echo $ac_n "(cached) $ac_c" 1>&6
18186 else
18187 cat > conftest.$ac_ext <<EOF
18188 #line 18189 "configure"
18189 #include "confdefs.h"
18190 /* System header to define __stub macros and hopefully few prototypes,
18191 which can conflict with char $ac_func(); below. */
18192 #include <assert.h>
18193 /* Override any gcc2 internal prototype to avoid an error. */
18194 /* We use char because int might match the return type of a gcc2
18195 builtin and then its argument prototype would still apply. */
18196 char $ac_func();
18198 int main() {
18200 /* The GNU C library defines this for functions which it implements
18201 to always fail with ENOSYS. Some functions are actually named
18202 something starting with __ and the normal name is an alias. */
18203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18204 choke me
18205 #else
18206 $ac_func();
18207 #endif
18209 ; return 0; }
18211 if { (eval echo configure:18212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18212 rm -rf conftest*
18213 eval "ac_cv_func_$ac_func=yes"
18214 else
18215 echo "configure: failed program was:" >&5
18216 cat conftest.$ac_ext >&5
18217 rm -rf conftest*
18218 eval "ac_cv_func_$ac_func=no"
18220 rm -f conftest*
18223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18224 echo "$ac_t""yes" 1>&6
18225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18226 cat >> confdefs.h <<EOF
18227 #define $ac_tr_func 1
18230 else
18231 echo "$ac_t""no" 1>&6
18233 done
18240 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18241 echo "configure:18242: checking for logl declaration" >&5
18242 if test x${glibcpp_cv_func_logl_use+set} != xset; then
18243 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18244 echo $ac_n "(cached) $ac_c" 1>&6
18245 else
18248 ac_ext=C
18249 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18250 ac_cpp='$CXXCPP $CPPFLAGS'
18251 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18252 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18253 cross_compiling=$ac_cv_prog_cxx_cross
18255 cat > conftest.$ac_ext <<EOF
18256 #line 18257 "configure"
18257 #include "confdefs.h"
18258 #include <math.h>
18259 #ifdef HAVE_IEEEFP_H
18260 #include <ieeefp.h>
18261 #endif
18263 int main() {
18264 logl(0);
18265 ; return 0; }
18267 if { (eval echo configure:18268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18268 rm -rf conftest*
18269 glibcpp_cv_func_logl_use=yes
18270 else
18271 echo "configure: failed program was:" >&5
18272 cat conftest.$ac_ext >&5
18273 rm -rf conftest*
18274 glibcpp_cv_func_logl_use=no
18276 rm -f conftest*
18277 ac_ext=c
18278 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18279 ac_cpp='$CPP $CPPFLAGS'
18280 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18281 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18282 cross_compiling=$ac_cv_prog_cc_cross
18288 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18290 if test x$glibcpp_cv_func_logl_use = x"yes"; then
18291 for ac_func in logl
18293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18294 echo "configure:18295: checking for $ac_func" >&5
18295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18296 echo $ac_n "(cached) $ac_c" 1>&6
18297 else
18298 cat > conftest.$ac_ext <<EOF
18299 #line 18300 "configure"
18300 #include "confdefs.h"
18301 /* System header to define __stub macros and hopefully few prototypes,
18302 which can conflict with char $ac_func(); below. */
18303 #include <assert.h>
18304 /* Override any gcc2 internal prototype to avoid an error. */
18305 /* We use char because int might match the return type of a gcc2
18306 builtin and then its argument prototype would still apply. */
18307 char $ac_func();
18309 int main() {
18311 /* The GNU C library defines this for functions which it implements
18312 to always fail with ENOSYS. Some functions are actually named
18313 something starting with __ and the normal name is an alias. */
18314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18315 choke me
18316 #else
18317 $ac_func();
18318 #endif
18320 ; return 0; }
18322 if { (eval echo configure:18323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18323 rm -rf conftest*
18324 eval "ac_cv_func_$ac_func=yes"
18325 else
18326 echo "configure: failed program was:" >&5
18327 cat conftest.$ac_ext >&5
18328 rm -rf conftest*
18329 eval "ac_cv_func_$ac_func=no"
18331 rm -f conftest*
18334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18335 echo "$ac_t""yes" 1>&6
18336 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18337 cat >> confdefs.h <<EOF
18338 #define $ac_tr_func 1
18341 else
18342 echo "$ac_t""no" 1>&6
18344 done
18346 else
18348 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18349 echo "configure:18350: checking for _logl declaration" >&5
18350 if test x${glibcpp_cv_func__logl_use+set} != xset; then
18351 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18352 echo $ac_n "(cached) $ac_c" 1>&6
18353 else
18356 ac_ext=C
18357 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18358 ac_cpp='$CXXCPP $CPPFLAGS'
18359 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18360 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18361 cross_compiling=$ac_cv_prog_cxx_cross
18363 cat > conftest.$ac_ext <<EOF
18364 #line 18365 "configure"
18365 #include "confdefs.h"
18366 #include <math.h>
18367 #ifdef HAVE_IEEEFP_H
18368 #include <ieeefp.h>
18369 #endif
18371 int main() {
18372 _logl(0);
18373 ; return 0; }
18375 if { (eval echo configure:18376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18376 rm -rf conftest*
18377 glibcpp_cv_func__logl_use=yes
18378 else
18379 echo "configure: failed program was:" >&5
18380 cat conftest.$ac_ext >&5
18381 rm -rf conftest*
18382 glibcpp_cv_func__logl_use=no
18384 rm -f conftest*
18385 ac_ext=c
18386 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18387 ac_cpp='$CPP $CPPFLAGS'
18388 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18389 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18390 cross_compiling=$ac_cv_prog_cc_cross
18396 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18398 if test x$glibcpp_cv_func__logl_use = x"yes"; then
18399 for ac_func in _logl
18401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18402 echo "configure:18403: checking for $ac_func" >&5
18403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18404 echo $ac_n "(cached) $ac_c" 1>&6
18405 else
18406 cat > conftest.$ac_ext <<EOF
18407 #line 18408 "configure"
18408 #include "confdefs.h"
18409 /* System header to define __stub macros and hopefully few prototypes,
18410 which can conflict with char $ac_func(); below. */
18411 #include <assert.h>
18412 /* Override any gcc2 internal prototype to avoid an error. */
18413 /* We use char because int might match the return type of a gcc2
18414 builtin and then its argument prototype would still apply. */
18415 char $ac_func();
18417 int main() {
18419 /* The GNU C library defines this for functions which it implements
18420 to always fail with ENOSYS. Some functions are actually named
18421 something starting with __ and the normal name is an alias. */
18422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18423 choke me
18424 #else
18425 $ac_func();
18426 #endif
18428 ; return 0; }
18430 if { (eval echo configure:18431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18431 rm -rf conftest*
18432 eval "ac_cv_func_$ac_func=yes"
18433 else
18434 echo "configure: failed program was:" >&5
18435 cat conftest.$ac_ext >&5
18436 rm -rf conftest*
18437 eval "ac_cv_func_$ac_func=no"
18439 rm -f conftest*
18442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18443 echo "$ac_t""yes" 1>&6
18444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18445 cat >> confdefs.h <<EOF
18446 #define $ac_tr_func 1
18449 else
18450 echo "$ac_t""no" 1>&6
18452 done
18459 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18460 echo "configure:18461: checking for log10l declaration" >&5
18461 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18462 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18463 echo $ac_n "(cached) $ac_c" 1>&6
18464 else
18467 ac_ext=C
18468 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18469 ac_cpp='$CXXCPP $CPPFLAGS'
18470 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18471 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18472 cross_compiling=$ac_cv_prog_cxx_cross
18474 cat > conftest.$ac_ext <<EOF
18475 #line 18476 "configure"
18476 #include "confdefs.h"
18477 #include <math.h>
18478 #ifdef HAVE_IEEEFP_H
18479 #include <ieeefp.h>
18480 #endif
18482 int main() {
18483 log10l(0);
18484 ; return 0; }
18486 if { (eval echo configure:18487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18487 rm -rf conftest*
18488 glibcpp_cv_func_log10l_use=yes
18489 else
18490 echo "configure: failed program was:" >&5
18491 cat conftest.$ac_ext >&5
18492 rm -rf conftest*
18493 glibcpp_cv_func_log10l_use=no
18495 rm -f conftest*
18496 ac_ext=c
18497 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18498 ac_cpp='$CPP $CPPFLAGS'
18499 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18500 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18501 cross_compiling=$ac_cv_prog_cc_cross
18507 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18509 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18510 for ac_func in log10l
18512 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18513 echo "configure:18514: checking for $ac_func" >&5
18514 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18515 echo $ac_n "(cached) $ac_c" 1>&6
18516 else
18517 cat > conftest.$ac_ext <<EOF
18518 #line 18519 "configure"
18519 #include "confdefs.h"
18520 /* System header to define __stub macros and hopefully few prototypes,
18521 which can conflict with char $ac_func(); below. */
18522 #include <assert.h>
18523 /* Override any gcc2 internal prototype to avoid an error. */
18524 /* We use char because int might match the return type of a gcc2
18525 builtin and then its argument prototype would still apply. */
18526 char $ac_func();
18528 int main() {
18530 /* The GNU C library defines this for functions which it implements
18531 to always fail with ENOSYS. Some functions are actually named
18532 something starting with __ and the normal name is an alias. */
18533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18534 choke me
18535 #else
18536 $ac_func();
18537 #endif
18539 ; return 0; }
18541 if { (eval echo configure:18542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18542 rm -rf conftest*
18543 eval "ac_cv_func_$ac_func=yes"
18544 else
18545 echo "configure: failed program was:" >&5
18546 cat conftest.$ac_ext >&5
18547 rm -rf conftest*
18548 eval "ac_cv_func_$ac_func=no"
18550 rm -f conftest*
18553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18554 echo "$ac_t""yes" 1>&6
18555 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18556 cat >> confdefs.h <<EOF
18557 #define $ac_tr_func 1
18560 else
18561 echo "$ac_t""no" 1>&6
18563 done
18565 else
18567 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18568 echo "configure:18569: checking for _log10l declaration" >&5
18569 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18570 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18571 echo $ac_n "(cached) $ac_c" 1>&6
18572 else
18575 ac_ext=C
18576 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18577 ac_cpp='$CXXCPP $CPPFLAGS'
18578 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18579 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18580 cross_compiling=$ac_cv_prog_cxx_cross
18582 cat > conftest.$ac_ext <<EOF
18583 #line 18584 "configure"
18584 #include "confdefs.h"
18585 #include <math.h>
18586 #ifdef HAVE_IEEEFP_H
18587 #include <ieeefp.h>
18588 #endif
18590 int main() {
18591 _log10l(0);
18592 ; return 0; }
18594 if { (eval echo configure:18595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18595 rm -rf conftest*
18596 glibcpp_cv_func__log10l_use=yes
18597 else
18598 echo "configure: failed program was:" >&5
18599 cat conftest.$ac_ext >&5
18600 rm -rf conftest*
18601 glibcpp_cv_func__log10l_use=no
18603 rm -f conftest*
18604 ac_ext=c
18605 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18606 ac_cpp='$CPP $CPPFLAGS'
18607 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18608 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18609 cross_compiling=$ac_cv_prog_cc_cross
18615 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18617 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18618 for ac_func in _log10l
18620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18621 echo "configure:18622: checking for $ac_func" >&5
18622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18623 echo $ac_n "(cached) $ac_c" 1>&6
18624 else
18625 cat > conftest.$ac_ext <<EOF
18626 #line 18627 "configure"
18627 #include "confdefs.h"
18628 /* System header to define __stub macros and hopefully few prototypes,
18629 which can conflict with char $ac_func(); below. */
18630 #include <assert.h>
18631 /* Override any gcc2 internal prototype to avoid an error. */
18632 /* We use char because int might match the return type of a gcc2
18633 builtin and then its argument prototype would still apply. */
18634 char $ac_func();
18636 int main() {
18638 /* The GNU C library defines this for functions which it implements
18639 to always fail with ENOSYS. Some functions are actually named
18640 something starting with __ and the normal name is an alias. */
18641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18642 choke me
18643 #else
18644 $ac_func();
18645 #endif
18647 ; return 0; }
18649 if { (eval echo configure:18650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18650 rm -rf conftest*
18651 eval "ac_cv_func_$ac_func=yes"
18652 else
18653 echo "configure: failed program was:" >&5
18654 cat conftest.$ac_ext >&5
18655 rm -rf conftest*
18656 eval "ac_cv_func_$ac_func=no"
18658 rm -f conftest*
18661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18662 echo "$ac_t""yes" 1>&6
18663 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18664 cat >> confdefs.h <<EOF
18665 #define $ac_tr_func 1
18668 else
18669 echo "$ac_t""no" 1>&6
18671 done
18678 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18679 echo "configure:18680: checking for modfl declaration" >&5
18680 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18681 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18682 echo $ac_n "(cached) $ac_c" 1>&6
18683 else
18686 ac_ext=C
18687 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18688 ac_cpp='$CXXCPP $CPPFLAGS'
18689 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18690 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18691 cross_compiling=$ac_cv_prog_cxx_cross
18693 cat > conftest.$ac_ext <<EOF
18694 #line 18695 "configure"
18695 #include "confdefs.h"
18696 #include <math.h>
18697 int main() {
18698 modfl(0, 0);
18699 ; return 0; }
18701 if { (eval echo configure:18702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18702 rm -rf conftest*
18703 glibcpp_cv_func_modfl_use=yes
18704 else
18705 echo "configure: failed program was:" >&5
18706 cat conftest.$ac_ext >&5
18707 rm -rf conftest*
18708 glibcpp_cv_func_modfl_use=no
18710 rm -f conftest*
18711 ac_ext=c
18712 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18713 ac_cpp='$CPP $CPPFLAGS'
18714 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18715 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18716 cross_compiling=$ac_cv_prog_cc_cross
18722 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18724 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18725 for ac_func in modfl
18727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18728 echo "configure:18729: checking for $ac_func" >&5
18729 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18730 echo $ac_n "(cached) $ac_c" 1>&6
18731 else
18732 cat > conftest.$ac_ext <<EOF
18733 #line 18734 "configure"
18734 #include "confdefs.h"
18735 /* System header to define __stub macros and hopefully few prototypes,
18736 which can conflict with char $ac_func(); below. */
18737 #include <assert.h>
18738 /* Override any gcc2 internal prototype to avoid an error. */
18739 /* We use char because int might match the return type of a gcc2
18740 builtin and then its argument prototype would still apply. */
18741 char $ac_func();
18743 int main() {
18745 /* The GNU C library defines this for functions which it implements
18746 to always fail with ENOSYS. Some functions are actually named
18747 something starting with __ and the normal name is an alias. */
18748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18749 choke me
18750 #else
18751 $ac_func();
18752 #endif
18754 ; return 0; }
18756 if { (eval echo configure:18757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18757 rm -rf conftest*
18758 eval "ac_cv_func_$ac_func=yes"
18759 else
18760 echo "configure: failed program was:" >&5
18761 cat conftest.$ac_ext >&5
18762 rm -rf conftest*
18763 eval "ac_cv_func_$ac_func=no"
18765 rm -f conftest*
18768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18769 echo "$ac_t""yes" 1>&6
18770 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18771 cat >> confdefs.h <<EOF
18772 #define $ac_tr_func 1
18775 else
18776 echo "$ac_t""no" 1>&6
18778 done
18780 else
18782 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18783 echo "configure:18784: checking for _modfl declaration" >&5
18784 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
18785 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
18786 echo $ac_n "(cached) $ac_c" 1>&6
18787 else
18790 ac_ext=C
18791 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18792 ac_cpp='$CXXCPP $CPPFLAGS'
18793 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18794 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18795 cross_compiling=$ac_cv_prog_cxx_cross
18797 cat > conftest.$ac_ext <<EOF
18798 #line 18799 "configure"
18799 #include "confdefs.h"
18800 #include <math.h>
18801 int main() {
18802 _modfl(0, 0);
18803 ; return 0; }
18805 if { (eval echo configure:18806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18806 rm -rf conftest*
18807 glibcpp_cv_func__modfl_use=yes
18808 else
18809 echo "configure: failed program was:" >&5
18810 cat conftest.$ac_ext >&5
18811 rm -rf conftest*
18812 glibcpp_cv_func__modfl_use=no
18814 rm -f conftest*
18815 ac_ext=c
18816 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18817 ac_cpp='$CPP $CPPFLAGS'
18818 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18819 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18820 cross_compiling=$ac_cv_prog_cc_cross
18826 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
18828 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
18829 for ac_func in _modfl
18831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18832 echo "configure:18833: checking for $ac_func" >&5
18833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18834 echo $ac_n "(cached) $ac_c" 1>&6
18835 else
18836 cat > conftest.$ac_ext <<EOF
18837 #line 18838 "configure"
18838 #include "confdefs.h"
18839 /* System header to define __stub macros and hopefully few prototypes,
18840 which can conflict with char $ac_func(); below. */
18841 #include <assert.h>
18842 /* Override any gcc2 internal prototype to avoid an error. */
18843 /* We use char because int might match the return type of a gcc2
18844 builtin and then its argument prototype would still apply. */
18845 char $ac_func();
18847 int main() {
18849 /* The GNU C library defines this for functions which it implements
18850 to always fail with ENOSYS. Some functions are actually named
18851 something starting with __ and the normal name is an alias. */
18852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18853 choke me
18854 #else
18855 $ac_func();
18856 #endif
18858 ; return 0; }
18860 if { (eval echo configure:18861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18861 rm -rf conftest*
18862 eval "ac_cv_func_$ac_func=yes"
18863 else
18864 echo "configure: failed program was:" >&5
18865 cat conftest.$ac_ext >&5
18866 rm -rf conftest*
18867 eval "ac_cv_func_$ac_func=no"
18869 rm -f conftest*
18872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18873 echo "$ac_t""yes" 1>&6
18874 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18875 cat >> confdefs.h <<EOF
18876 #define $ac_tr_func 1
18879 else
18880 echo "$ac_t""no" 1>&6
18882 done
18889 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
18890 echo "configure:18891: checking for powl declaration" >&5
18891 if test x${glibcpp_cv_func_powl_use+set} != xset; then
18892 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
18893 echo $ac_n "(cached) $ac_c" 1>&6
18894 else
18897 ac_ext=C
18898 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18899 ac_cpp='$CXXCPP $CPPFLAGS'
18900 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18901 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18902 cross_compiling=$ac_cv_prog_cxx_cross
18904 cat > conftest.$ac_ext <<EOF
18905 #line 18906 "configure"
18906 #include "confdefs.h"
18907 #include <math.h>
18908 int main() {
18909 powl(0, 0);
18910 ; return 0; }
18912 if { (eval echo configure:18913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18913 rm -rf conftest*
18914 glibcpp_cv_func_powl_use=yes
18915 else
18916 echo "configure: failed program was:" >&5
18917 cat conftest.$ac_ext >&5
18918 rm -rf conftest*
18919 glibcpp_cv_func_powl_use=no
18921 rm -f conftest*
18922 ac_ext=c
18923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18924 ac_cpp='$CPP $CPPFLAGS'
18925 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18926 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18927 cross_compiling=$ac_cv_prog_cc_cross
18933 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
18935 if test x$glibcpp_cv_func_powl_use = x"yes"; then
18936 for ac_func in powl
18938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18939 echo "configure:18940: checking for $ac_func" >&5
18940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18941 echo $ac_n "(cached) $ac_c" 1>&6
18942 else
18943 cat > conftest.$ac_ext <<EOF
18944 #line 18945 "configure"
18945 #include "confdefs.h"
18946 /* System header to define __stub macros and hopefully few prototypes,
18947 which can conflict with char $ac_func(); below. */
18948 #include <assert.h>
18949 /* Override any gcc2 internal prototype to avoid an error. */
18950 /* We use char because int might match the return type of a gcc2
18951 builtin and then its argument prototype would still apply. */
18952 char $ac_func();
18954 int main() {
18956 /* The GNU C library defines this for functions which it implements
18957 to always fail with ENOSYS. Some functions are actually named
18958 something starting with __ and the normal name is an alias. */
18959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18960 choke me
18961 #else
18962 $ac_func();
18963 #endif
18965 ; return 0; }
18967 if { (eval echo configure:18968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18968 rm -rf conftest*
18969 eval "ac_cv_func_$ac_func=yes"
18970 else
18971 echo "configure: failed program was:" >&5
18972 cat conftest.$ac_ext >&5
18973 rm -rf conftest*
18974 eval "ac_cv_func_$ac_func=no"
18976 rm -f conftest*
18979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18980 echo "$ac_t""yes" 1>&6
18981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18982 cat >> confdefs.h <<EOF
18983 #define $ac_tr_func 1
18986 else
18987 echo "$ac_t""no" 1>&6
18989 done
18991 else
18993 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
18994 echo "configure:18995: checking for _powl declaration" >&5
18995 if test x${glibcpp_cv_func__powl_use+set} != xset; then
18996 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
18997 echo $ac_n "(cached) $ac_c" 1>&6
18998 else
19001 ac_ext=C
19002 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19003 ac_cpp='$CXXCPP $CPPFLAGS'
19004 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19005 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19006 cross_compiling=$ac_cv_prog_cxx_cross
19008 cat > conftest.$ac_ext <<EOF
19009 #line 19010 "configure"
19010 #include "confdefs.h"
19011 #include <math.h>
19012 int main() {
19013 _powl(0, 0);
19014 ; return 0; }
19016 if { (eval echo configure:19017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19017 rm -rf conftest*
19018 glibcpp_cv_func__powl_use=yes
19019 else
19020 echo "configure: failed program was:" >&5
19021 cat conftest.$ac_ext >&5
19022 rm -rf conftest*
19023 glibcpp_cv_func__powl_use=no
19025 rm -f conftest*
19026 ac_ext=c
19027 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19028 ac_cpp='$CPP $CPPFLAGS'
19029 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19030 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19031 cross_compiling=$ac_cv_prog_cc_cross
19037 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19039 if test x$glibcpp_cv_func__powl_use = x"yes"; then
19040 for ac_func in _powl
19042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19043 echo "configure:19044: checking for $ac_func" >&5
19044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19045 echo $ac_n "(cached) $ac_c" 1>&6
19046 else
19047 cat > conftest.$ac_ext <<EOF
19048 #line 19049 "configure"
19049 #include "confdefs.h"
19050 /* System header to define __stub macros and hopefully few prototypes,
19051 which can conflict with char $ac_func(); below. */
19052 #include <assert.h>
19053 /* Override any gcc2 internal prototype to avoid an error. */
19054 /* We use char because int might match the return type of a gcc2
19055 builtin and then its argument prototype would still apply. */
19056 char $ac_func();
19058 int main() {
19060 /* The GNU C library defines this for functions which it implements
19061 to always fail with ENOSYS. Some functions are actually named
19062 something starting with __ and the normal name is an alias. */
19063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19064 choke me
19065 #else
19066 $ac_func();
19067 #endif
19069 ; return 0; }
19071 if { (eval echo configure:19072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19072 rm -rf conftest*
19073 eval "ac_cv_func_$ac_func=yes"
19074 else
19075 echo "configure: failed program was:" >&5
19076 cat conftest.$ac_ext >&5
19077 rm -rf conftest*
19078 eval "ac_cv_func_$ac_func=no"
19080 rm -f conftest*
19083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19084 echo "$ac_t""yes" 1>&6
19085 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19086 cat >> confdefs.h <<EOF
19087 #define $ac_tr_func 1
19090 else
19091 echo "$ac_t""no" 1>&6
19093 done
19100 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19101 echo "configure:19102: checking for sqrtl declaration" >&5
19102 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19103 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19104 echo $ac_n "(cached) $ac_c" 1>&6
19105 else
19108 ac_ext=C
19109 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19110 ac_cpp='$CXXCPP $CPPFLAGS'
19111 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19112 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19113 cross_compiling=$ac_cv_prog_cxx_cross
19115 cat > conftest.$ac_ext <<EOF
19116 #line 19117 "configure"
19117 #include "confdefs.h"
19118 #include <math.h>
19119 #ifdef HAVE_IEEEFP_H
19120 #include <ieeefp.h>
19121 #endif
19123 int main() {
19124 sqrtl(0);
19125 ; return 0; }
19127 if { (eval echo configure:19128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19128 rm -rf conftest*
19129 glibcpp_cv_func_sqrtl_use=yes
19130 else
19131 echo "configure: failed program was:" >&5
19132 cat conftest.$ac_ext >&5
19133 rm -rf conftest*
19134 glibcpp_cv_func_sqrtl_use=no
19136 rm -f conftest*
19137 ac_ext=c
19138 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19139 ac_cpp='$CPP $CPPFLAGS'
19140 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19141 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19142 cross_compiling=$ac_cv_prog_cc_cross
19148 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19150 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19151 for ac_func in sqrtl
19153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19154 echo "configure:19155: checking for $ac_func" >&5
19155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19156 echo $ac_n "(cached) $ac_c" 1>&6
19157 else
19158 cat > conftest.$ac_ext <<EOF
19159 #line 19160 "configure"
19160 #include "confdefs.h"
19161 /* System header to define __stub macros and hopefully few prototypes,
19162 which can conflict with char $ac_func(); below. */
19163 #include <assert.h>
19164 /* Override any gcc2 internal prototype to avoid an error. */
19165 /* We use char because int might match the return type of a gcc2
19166 builtin and then its argument prototype would still apply. */
19167 char $ac_func();
19169 int main() {
19171 /* The GNU C library defines this for functions which it implements
19172 to always fail with ENOSYS. Some functions are actually named
19173 something starting with __ and the normal name is an alias. */
19174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19175 choke me
19176 #else
19177 $ac_func();
19178 #endif
19180 ; return 0; }
19182 if { (eval echo configure:19183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19183 rm -rf conftest*
19184 eval "ac_cv_func_$ac_func=yes"
19185 else
19186 echo "configure: failed program was:" >&5
19187 cat conftest.$ac_ext >&5
19188 rm -rf conftest*
19189 eval "ac_cv_func_$ac_func=no"
19191 rm -f conftest*
19194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19195 echo "$ac_t""yes" 1>&6
19196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19197 cat >> confdefs.h <<EOF
19198 #define $ac_tr_func 1
19201 else
19202 echo "$ac_t""no" 1>&6
19204 done
19206 else
19208 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19209 echo "configure:19210: checking for _sqrtl declaration" >&5
19210 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19211 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19212 echo $ac_n "(cached) $ac_c" 1>&6
19213 else
19216 ac_ext=C
19217 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19218 ac_cpp='$CXXCPP $CPPFLAGS'
19219 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19220 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19221 cross_compiling=$ac_cv_prog_cxx_cross
19223 cat > conftest.$ac_ext <<EOF
19224 #line 19225 "configure"
19225 #include "confdefs.h"
19226 #include <math.h>
19227 #ifdef HAVE_IEEEFP_H
19228 #include <ieeefp.h>
19229 #endif
19231 int main() {
19232 _sqrtl(0);
19233 ; return 0; }
19235 if { (eval echo configure:19236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19236 rm -rf conftest*
19237 glibcpp_cv_func__sqrtl_use=yes
19238 else
19239 echo "configure: failed program was:" >&5
19240 cat conftest.$ac_ext >&5
19241 rm -rf conftest*
19242 glibcpp_cv_func__sqrtl_use=no
19244 rm -f conftest*
19245 ac_ext=c
19246 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19247 ac_cpp='$CPP $CPPFLAGS'
19248 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19249 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19250 cross_compiling=$ac_cv_prog_cc_cross
19256 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19258 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19259 for ac_func in _sqrtl
19261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19262 echo "configure:19263: checking for $ac_func" >&5
19263 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19264 echo $ac_n "(cached) $ac_c" 1>&6
19265 else
19266 cat > conftest.$ac_ext <<EOF
19267 #line 19268 "configure"
19268 #include "confdefs.h"
19269 /* System header to define __stub macros and hopefully few prototypes,
19270 which can conflict with char $ac_func(); below. */
19271 #include <assert.h>
19272 /* Override any gcc2 internal prototype to avoid an error. */
19273 /* We use char because int might match the return type of a gcc2
19274 builtin and then its argument prototype would still apply. */
19275 char $ac_func();
19277 int main() {
19279 /* The GNU C library defines this for functions which it implements
19280 to always fail with ENOSYS. Some functions are actually named
19281 something starting with __ and the normal name is an alias. */
19282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19283 choke me
19284 #else
19285 $ac_func();
19286 #endif
19288 ; return 0; }
19290 if { (eval echo configure:19291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19291 rm -rf conftest*
19292 eval "ac_cv_func_$ac_func=yes"
19293 else
19294 echo "configure: failed program was:" >&5
19295 cat conftest.$ac_ext >&5
19296 rm -rf conftest*
19297 eval "ac_cv_func_$ac_func=no"
19299 rm -f conftest*
19302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19303 echo "$ac_t""yes" 1>&6
19304 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19305 cat >> confdefs.h <<EOF
19306 #define $ac_tr_func 1
19309 else
19310 echo "$ac_t""no" 1>&6
19312 done
19319 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19320 echo "configure:19321: checking for sincosl declaration" >&5
19321 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19322 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19323 echo $ac_n "(cached) $ac_c" 1>&6
19324 else
19327 ac_ext=C
19328 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19329 ac_cpp='$CXXCPP $CPPFLAGS'
19330 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19331 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19332 cross_compiling=$ac_cv_prog_cxx_cross
19334 cat > conftest.$ac_ext <<EOF
19335 #line 19336 "configure"
19336 #include "confdefs.h"
19337 #include <math.h>
19338 int main() {
19339 sincosl(0, 0, 0);
19340 ; return 0; }
19342 if { (eval echo configure:19343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19343 rm -rf conftest*
19344 glibcpp_cv_func_sincosl_use=yes
19345 else
19346 echo "configure: failed program was:" >&5
19347 cat conftest.$ac_ext >&5
19348 rm -rf conftest*
19349 glibcpp_cv_func_sincosl_use=no
19351 rm -f conftest*
19352 ac_ext=c
19353 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19354 ac_cpp='$CPP $CPPFLAGS'
19355 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19356 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19357 cross_compiling=$ac_cv_prog_cc_cross
19363 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19365 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19366 for ac_func in sincosl
19368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19369 echo "configure:19370: checking for $ac_func" >&5
19370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19371 echo $ac_n "(cached) $ac_c" 1>&6
19372 else
19373 cat > conftest.$ac_ext <<EOF
19374 #line 19375 "configure"
19375 #include "confdefs.h"
19376 /* System header to define __stub macros and hopefully few prototypes,
19377 which can conflict with char $ac_func(); below. */
19378 #include <assert.h>
19379 /* Override any gcc2 internal prototype to avoid an error. */
19380 /* We use char because int might match the return type of a gcc2
19381 builtin and then its argument prototype would still apply. */
19382 char $ac_func();
19384 int main() {
19386 /* The GNU C library defines this for functions which it implements
19387 to always fail with ENOSYS. Some functions are actually named
19388 something starting with __ and the normal name is an alias. */
19389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19390 choke me
19391 #else
19392 $ac_func();
19393 #endif
19395 ; return 0; }
19397 if { (eval echo configure:19398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19398 rm -rf conftest*
19399 eval "ac_cv_func_$ac_func=yes"
19400 else
19401 echo "configure: failed program was:" >&5
19402 cat conftest.$ac_ext >&5
19403 rm -rf conftest*
19404 eval "ac_cv_func_$ac_func=no"
19406 rm -f conftest*
19409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19410 echo "$ac_t""yes" 1>&6
19411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19412 cat >> confdefs.h <<EOF
19413 #define $ac_tr_func 1
19416 else
19417 echo "$ac_t""no" 1>&6
19419 done
19421 else
19423 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19424 echo "configure:19425: checking for _sincosl declaration" >&5
19425 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19426 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19427 echo $ac_n "(cached) $ac_c" 1>&6
19428 else
19431 ac_ext=C
19432 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19433 ac_cpp='$CXXCPP $CPPFLAGS'
19434 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19435 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19436 cross_compiling=$ac_cv_prog_cxx_cross
19438 cat > conftest.$ac_ext <<EOF
19439 #line 19440 "configure"
19440 #include "confdefs.h"
19441 #include <math.h>
19442 int main() {
19443 _sincosl(0, 0, 0);
19444 ; return 0; }
19446 if { (eval echo configure:19447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19447 rm -rf conftest*
19448 glibcpp_cv_func__sincosl_use=yes
19449 else
19450 echo "configure: failed program was:" >&5
19451 cat conftest.$ac_ext >&5
19452 rm -rf conftest*
19453 glibcpp_cv_func__sincosl_use=no
19455 rm -f conftest*
19456 ac_ext=c
19457 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19458 ac_cpp='$CPP $CPPFLAGS'
19459 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19460 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19461 cross_compiling=$ac_cv_prog_cc_cross
19467 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19469 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19470 for ac_func in _sincosl
19472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19473 echo "configure:19474: checking for $ac_func" >&5
19474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19475 echo $ac_n "(cached) $ac_c" 1>&6
19476 else
19477 cat > conftest.$ac_ext <<EOF
19478 #line 19479 "configure"
19479 #include "confdefs.h"
19480 /* System header to define __stub macros and hopefully few prototypes,
19481 which can conflict with char $ac_func(); below. */
19482 #include <assert.h>
19483 /* Override any gcc2 internal prototype to avoid an error. */
19484 /* We use char because int might match the return type of a gcc2
19485 builtin and then its argument prototype would still apply. */
19486 char $ac_func();
19488 int main() {
19490 /* The GNU C library defines this for functions which it implements
19491 to always fail with ENOSYS. Some functions are actually named
19492 something starting with __ and the normal name is an alias. */
19493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19494 choke me
19495 #else
19496 $ac_func();
19497 #endif
19499 ; return 0; }
19501 if { (eval echo configure:19502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19502 rm -rf conftest*
19503 eval "ac_cv_func_$ac_func=yes"
19504 else
19505 echo "configure: failed program was:" >&5
19506 cat conftest.$ac_ext >&5
19507 rm -rf conftest*
19508 eval "ac_cv_func_$ac_func=no"
19510 rm -f conftest*
19513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19514 echo "$ac_t""yes" 1>&6
19515 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19516 cat >> confdefs.h <<EOF
19517 #define $ac_tr_func 1
19520 else
19521 echo "$ac_t""no" 1>&6
19523 done
19530 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19531 echo "configure:19532: checking for finitel declaration" >&5
19532 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19533 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19534 echo $ac_n "(cached) $ac_c" 1>&6
19535 else
19538 ac_ext=C
19539 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19540 ac_cpp='$CXXCPP $CPPFLAGS'
19541 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19542 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19543 cross_compiling=$ac_cv_prog_cxx_cross
19545 cat > conftest.$ac_ext <<EOF
19546 #line 19547 "configure"
19547 #include "confdefs.h"
19548 #include <math.h>
19549 #ifdef HAVE_IEEEFP_H
19550 #include <ieeefp.h>
19551 #endif
19553 int main() {
19554 finitel(0);
19555 ; return 0; }
19557 if { (eval echo configure:19558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19558 rm -rf conftest*
19559 glibcpp_cv_func_finitel_use=yes
19560 else
19561 echo "configure: failed program was:" >&5
19562 cat conftest.$ac_ext >&5
19563 rm -rf conftest*
19564 glibcpp_cv_func_finitel_use=no
19566 rm -f conftest*
19567 ac_ext=c
19568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19569 ac_cpp='$CPP $CPPFLAGS'
19570 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19571 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19572 cross_compiling=$ac_cv_prog_cc_cross
19578 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19580 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19581 for ac_func in finitel
19583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19584 echo "configure:19585: checking for $ac_func" >&5
19585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19586 echo $ac_n "(cached) $ac_c" 1>&6
19587 else
19588 cat > conftest.$ac_ext <<EOF
19589 #line 19590 "configure"
19590 #include "confdefs.h"
19591 /* System header to define __stub macros and hopefully few prototypes,
19592 which can conflict with char $ac_func(); below. */
19593 #include <assert.h>
19594 /* Override any gcc2 internal prototype to avoid an error. */
19595 /* We use char because int might match the return type of a gcc2
19596 builtin and then its argument prototype would still apply. */
19597 char $ac_func();
19599 int main() {
19601 /* The GNU C library defines this for functions which it implements
19602 to always fail with ENOSYS. Some functions are actually named
19603 something starting with __ and the normal name is an alias. */
19604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19605 choke me
19606 #else
19607 $ac_func();
19608 #endif
19610 ; return 0; }
19612 if { (eval echo configure:19613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19613 rm -rf conftest*
19614 eval "ac_cv_func_$ac_func=yes"
19615 else
19616 echo "configure: failed program was:" >&5
19617 cat conftest.$ac_ext >&5
19618 rm -rf conftest*
19619 eval "ac_cv_func_$ac_func=no"
19621 rm -f conftest*
19624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19625 echo "$ac_t""yes" 1>&6
19626 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19627 cat >> confdefs.h <<EOF
19628 #define $ac_tr_func 1
19631 else
19632 echo "$ac_t""no" 1>&6
19634 done
19636 else
19638 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19639 echo "configure:19640: checking for _finitel declaration" >&5
19640 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19641 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19642 echo $ac_n "(cached) $ac_c" 1>&6
19643 else
19646 ac_ext=C
19647 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19648 ac_cpp='$CXXCPP $CPPFLAGS'
19649 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19650 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19651 cross_compiling=$ac_cv_prog_cxx_cross
19653 cat > conftest.$ac_ext <<EOF
19654 #line 19655 "configure"
19655 #include "confdefs.h"
19656 #include <math.h>
19657 #ifdef HAVE_IEEEFP_H
19658 #include <ieeefp.h>
19659 #endif
19661 int main() {
19662 _finitel(0);
19663 ; return 0; }
19665 if { (eval echo configure:19666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19666 rm -rf conftest*
19667 glibcpp_cv_func__finitel_use=yes
19668 else
19669 echo "configure: failed program was:" >&5
19670 cat conftest.$ac_ext >&5
19671 rm -rf conftest*
19672 glibcpp_cv_func__finitel_use=no
19674 rm -f conftest*
19675 ac_ext=c
19676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19677 ac_cpp='$CPP $CPPFLAGS'
19678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19680 cross_compiling=$ac_cv_prog_cc_cross
19686 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19688 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19689 for ac_func in _finitel
19691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19692 echo "configure:19693: checking for $ac_func" >&5
19693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19694 echo $ac_n "(cached) $ac_c" 1>&6
19695 else
19696 cat > conftest.$ac_ext <<EOF
19697 #line 19698 "configure"
19698 #include "confdefs.h"
19699 /* System header to define __stub macros and hopefully few prototypes,
19700 which can conflict with char $ac_func(); below. */
19701 #include <assert.h>
19702 /* Override any gcc2 internal prototype to avoid an error. */
19703 /* We use char because int might match the return type of a gcc2
19704 builtin and then its argument prototype would still apply. */
19705 char $ac_func();
19707 int main() {
19709 /* The GNU C library defines this for functions which it implements
19710 to always fail with ENOSYS. Some functions are actually named
19711 something starting with __ and the normal name is an alias. */
19712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19713 choke me
19714 #else
19715 $ac_func();
19716 #endif
19718 ; return 0; }
19720 if { (eval echo configure:19721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19721 rm -rf conftest*
19722 eval "ac_cv_func_$ac_func=yes"
19723 else
19724 echo "configure: failed program was:" >&5
19725 cat conftest.$ac_ext >&5
19726 rm -rf conftest*
19727 eval "ac_cv_func_$ac_func=no"
19729 rm -f conftest*
19732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19733 echo "$ac_t""yes" 1>&6
19734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19735 cat >> confdefs.h <<EOF
19736 #define $ac_tr_func 1
19739 else
19740 echo "$ac_t""no" 1>&6
19742 done
19750 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19751 echo "configure:19752: checking for _float trig functions" >&5
19752 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19753 echo $ac_n "(cached) $ac_c" 1>&6
19754 else
19757 ac_ext=C
19758 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19759 ac_cpp='$CXXCPP $CPPFLAGS'
19760 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19761 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19762 cross_compiling=$ac_cv_prog_cxx_cross
19764 cat > conftest.$ac_ext <<EOF
19765 #line 19766 "configure"
19766 #include "confdefs.h"
19767 #include <math.h>
19768 int main() {
19769 `for x in _acosf _asinf _atanf \
19770 _cosf _sinf _tanf \
19771 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
19772 ; return 0; }
19774 if { (eval echo configure:19775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19775 rm -rf conftest*
19776 glibcpp_cv_func__float_trig_use=yes
19777 else
19778 echo "configure: failed program was:" >&5
19779 cat conftest.$ac_ext >&5
19780 rm -rf conftest*
19781 glibcpp_cv_func__float_trig_use=no
19783 rm -f conftest*
19784 ac_ext=c
19785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19786 ac_cpp='$CPP $CPPFLAGS'
19787 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19788 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19789 cross_compiling=$ac_cv_prog_cc_cross
19793 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
19794 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
19795 for ac_func in _acosf _asinf _atanf \
19796 _cosf _sinf _tanf \
19797 _coshf _sinhf _tanhf
19799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19800 echo "configure:19801: checking for $ac_func" >&5
19801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19802 echo $ac_n "(cached) $ac_c" 1>&6
19803 else
19804 cat > conftest.$ac_ext <<EOF
19805 #line 19806 "configure"
19806 #include "confdefs.h"
19807 /* System header to define __stub macros and hopefully few prototypes,
19808 which can conflict with char $ac_func(); below. */
19809 #include <assert.h>
19810 /* Override any gcc2 internal prototype to avoid an error. */
19811 /* We use char because int might match the return type of a gcc2
19812 builtin and then its argument prototype would still apply. */
19813 char $ac_func();
19815 int main() {
19817 /* The GNU C library defines this for functions which it implements
19818 to always fail with ENOSYS. Some functions are actually named
19819 something starting with __ and the normal name is an alias. */
19820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19821 choke me
19822 #else
19823 $ac_func();
19824 #endif
19826 ; return 0; }
19828 if { (eval echo configure:19829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19829 rm -rf conftest*
19830 eval "ac_cv_func_$ac_func=yes"
19831 else
19832 echo "configure: failed program was:" >&5
19833 cat conftest.$ac_ext >&5
19834 rm -rf conftest*
19835 eval "ac_cv_func_$ac_func=no"
19837 rm -f conftest*
19840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19841 echo "$ac_t""yes" 1>&6
19842 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19843 cat >> confdefs.h <<EOF
19844 #define $ac_tr_func 1
19847 else
19848 echo "$ac_t""no" 1>&6
19850 done
19855 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
19856 echo "configure:19857: checking for _float round functions" >&5
19857 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
19858 echo $ac_n "(cached) $ac_c" 1>&6
19859 else
19862 ac_ext=C
19863 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19864 ac_cpp='$CXXCPP $CPPFLAGS'
19865 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19866 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19867 cross_compiling=$ac_cv_prog_cxx_cross
19869 cat > conftest.$ac_ext <<EOF
19870 #line 19871 "configure"
19871 #include "confdefs.h"
19872 #include <math.h>
19873 int main() {
19874 `for x in _ceilf _floorf; do echo "$x (0);"; done`
19875 ; return 0; }
19877 if { (eval echo configure:19878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19878 rm -rf conftest*
19879 glibcpp_cv_func__float_round_use=yes
19880 else
19881 echo "configure: failed program was:" >&5
19882 cat conftest.$ac_ext >&5
19883 rm -rf conftest*
19884 glibcpp_cv_func__float_round_use=no
19886 rm -f conftest*
19887 ac_ext=c
19888 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19889 ac_cpp='$CPP $CPPFLAGS'
19890 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19891 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19892 cross_compiling=$ac_cv_prog_cc_cross
19896 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
19897 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
19898 for ac_func in _ceilf _floorf
19900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19901 echo "configure:19902: checking for $ac_func" >&5
19902 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19903 echo $ac_n "(cached) $ac_c" 1>&6
19904 else
19905 cat > conftest.$ac_ext <<EOF
19906 #line 19907 "configure"
19907 #include "confdefs.h"
19908 /* System header to define __stub macros and hopefully few prototypes,
19909 which can conflict with char $ac_func(); below. */
19910 #include <assert.h>
19911 /* Override any gcc2 internal prototype to avoid an error. */
19912 /* We use char because int might match the return type of a gcc2
19913 builtin and then its argument prototype would still apply. */
19914 char $ac_func();
19916 int main() {
19918 /* The GNU C library defines this for functions which it implements
19919 to always fail with ENOSYS. Some functions are actually named
19920 something starting with __ and the normal name is an alias. */
19921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19922 choke me
19923 #else
19924 $ac_func();
19925 #endif
19927 ; return 0; }
19929 if { (eval echo configure:19930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19930 rm -rf conftest*
19931 eval "ac_cv_func_$ac_func=yes"
19932 else
19933 echo "configure: failed program was:" >&5
19934 cat conftest.$ac_ext >&5
19935 rm -rf conftest*
19936 eval "ac_cv_func_$ac_func=no"
19938 rm -f conftest*
19941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19942 echo "$ac_t""yes" 1>&6
19943 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19944 cat >> confdefs.h <<EOF
19945 #define $ac_tr_func 1
19948 else
19949 echo "$ac_t""no" 1>&6
19951 done
19957 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
19958 echo "configure:19959: checking for _long double trig functions" >&5
19959 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
19960 echo $ac_n "(cached) $ac_c" 1>&6
19961 else
19964 ac_ext=C
19965 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19966 ac_cpp='$CXXCPP $CPPFLAGS'
19967 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19968 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19969 cross_compiling=$ac_cv_prog_cxx_cross
19971 cat > conftest.$ac_ext <<EOF
19972 #line 19973 "configure"
19973 #include "confdefs.h"
19974 #include <math.h>
19975 int main() {
19976 `for x in _acosl _asinl _atanl \
19977 _cosl _sinl _tanl \
19978 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
19979 ; return 0; }
19981 if { (eval echo configure:19982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19982 rm -rf conftest*
19983 glibcpp_cv_func__long_double_trig_use=yes
19984 else
19985 echo "configure: failed program was:" >&5
19986 cat conftest.$ac_ext >&5
19987 rm -rf conftest*
19988 glibcpp_cv_func__long_double_trig_use=no
19990 rm -f conftest*
19991 ac_ext=c
19992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19993 ac_cpp='$CPP $CPPFLAGS'
19994 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19995 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19996 cross_compiling=$ac_cv_prog_cc_cross
20000 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20001 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20002 for ac_func in _acosl _asinl _atanl \
20003 _cosl _sinl _tanl \
20004 _coshl _sinhl _tanhl
20006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20007 echo "configure:20008: checking for $ac_func" >&5
20008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20009 echo $ac_n "(cached) $ac_c" 1>&6
20010 else
20011 cat > conftest.$ac_ext <<EOF
20012 #line 20013 "configure"
20013 #include "confdefs.h"
20014 /* System header to define __stub macros and hopefully few prototypes,
20015 which can conflict with char $ac_func(); below. */
20016 #include <assert.h>
20017 /* Override any gcc2 internal prototype to avoid an error. */
20018 /* We use char because int might match the return type of a gcc2
20019 builtin and then its argument prototype would still apply. */
20020 char $ac_func();
20022 int main() {
20024 /* The GNU C library defines this for functions which it implements
20025 to always fail with ENOSYS. Some functions are actually named
20026 something starting with __ and the normal name is an alias. */
20027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20028 choke me
20029 #else
20030 $ac_func();
20031 #endif
20033 ; return 0; }
20035 if { (eval echo configure:20036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20036 rm -rf conftest*
20037 eval "ac_cv_func_$ac_func=yes"
20038 else
20039 echo "configure: failed program was:" >&5
20040 cat conftest.$ac_ext >&5
20041 rm -rf conftest*
20042 eval "ac_cv_func_$ac_func=no"
20044 rm -f conftest*
20047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20048 echo "$ac_t""yes" 1>&6
20049 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20050 cat >> confdefs.h <<EOF
20051 #define $ac_tr_func 1
20054 else
20055 echo "$ac_t""no" 1>&6
20057 done
20062 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20063 echo "configure:20064: checking for _long double round functions" >&5
20064 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20065 echo $ac_n "(cached) $ac_c" 1>&6
20066 else
20069 ac_ext=C
20070 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20071 ac_cpp='$CXXCPP $CPPFLAGS'
20072 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20073 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20074 cross_compiling=$ac_cv_prog_cxx_cross
20076 cat > conftest.$ac_ext <<EOF
20077 #line 20078 "configure"
20078 #include "confdefs.h"
20079 #include <math.h>
20080 int main() {
20081 `for x in _ceill _floorl; do echo "$x (0);"; done`
20082 ; return 0; }
20084 if { (eval echo configure:20085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20085 rm -rf conftest*
20086 glibcpp_cv_func__long_double_round_use=yes
20087 else
20088 echo "configure: failed program was:" >&5
20089 cat conftest.$ac_ext >&5
20090 rm -rf conftest*
20091 glibcpp_cv_func__long_double_round_use=no
20093 rm -f conftest*
20094 ac_ext=c
20095 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20096 ac_cpp='$CPP $CPPFLAGS'
20097 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20098 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20099 cross_compiling=$ac_cv_prog_cc_cross
20103 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20104 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20105 for ac_func in _ceill _floorl
20107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20108 echo "configure:20109: checking for $ac_func" >&5
20109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20110 echo $ac_n "(cached) $ac_c" 1>&6
20111 else
20112 cat > conftest.$ac_ext <<EOF
20113 #line 20114 "configure"
20114 #include "confdefs.h"
20115 /* System header to define __stub macros and hopefully few prototypes,
20116 which can conflict with char $ac_func(); below. */
20117 #include <assert.h>
20118 /* Override any gcc2 internal prototype to avoid an error. */
20119 /* We use char because int might match the return type of a gcc2
20120 builtin and then its argument prototype would still apply. */
20121 char $ac_func();
20123 int main() {
20125 /* The GNU C library defines this for functions which it implements
20126 to always fail with ENOSYS. Some functions are actually named
20127 something starting with __ and the normal name is an alias. */
20128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20129 choke me
20130 #else
20131 $ac_func();
20132 #endif
20134 ; return 0; }
20136 if { (eval echo configure:20137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20137 rm -rf conftest*
20138 eval "ac_cv_func_$ac_func=yes"
20139 else
20140 echo "configure: failed program was:" >&5
20141 cat conftest.$ac_ext >&5
20142 rm -rf conftest*
20143 eval "ac_cv_func_$ac_func=no"
20145 rm -f conftest*
20148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20149 echo "$ac_t""yes" 1>&6
20150 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20151 cat >> confdefs.h <<EOF
20152 #define $ac_tr_func 1
20155 else
20156 echo "$ac_t""no" 1>&6
20158 done
20163 LIBS="$ac_save_LIBS"
20164 CXXFLAGS="$ac_save_CXXFLAGS"
20167 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
20168 echo "configure:20169: checking for main in -lm" >&5
20169 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
20170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20171 echo $ac_n "(cached) $ac_c" 1>&6
20172 else
20173 ac_save_LIBS="$LIBS"
20174 LIBS="-lm $LIBS"
20175 cat > conftest.$ac_ext <<EOF
20176 #line 20177 "configure"
20177 #include "confdefs.h"
20179 int main() {
20180 main()
20181 ; return 0; }
20183 if { (eval echo configure:20184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20184 rm -rf conftest*
20185 eval "ac_cv_lib_$ac_lib_var=yes"
20186 else
20187 echo "configure: failed program was:" >&5
20188 cat conftest.$ac_ext >&5
20189 rm -rf conftest*
20190 eval "ac_cv_lib_$ac_lib_var=no"
20192 rm -f conftest*
20193 LIBS="$ac_save_LIBS"
20196 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20197 echo "$ac_t""yes" 1>&6
20198 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
20199 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
20200 cat >> confdefs.h <<EOF
20201 #define $ac_tr_lib 1
20204 LIBS="-lm $LIBS"
20206 else
20207 echo "$ac_t""no" 1>&6
20210 for ac_func in nan copysignf
20212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20213 echo "configure:20214: checking for $ac_func" >&5
20214 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20215 echo $ac_n "(cached) $ac_c" 1>&6
20216 else
20217 cat > conftest.$ac_ext <<EOF
20218 #line 20219 "configure"
20219 #include "confdefs.h"
20220 /* System header to define __stub macros and hopefully few prototypes,
20221 which can conflict with char $ac_func(); below. */
20222 #include <assert.h>
20223 /* Override any gcc2 internal prototype to avoid an error. */
20224 /* We use char because int might match the return type of a gcc2
20225 builtin and then its argument prototype would still apply. */
20226 char $ac_func();
20228 int main() {
20230 /* The GNU C library defines this for functions which it implements
20231 to always fail with ENOSYS. Some functions are actually named
20232 something starting with __ and the normal name is an alias. */
20233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20234 choke me
20235 #else
20236 $ac_func();
20237 #endif
20239 ; return 0; }
20241 if { (eval echo configure:20242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20242 rm -rf conftest*
20243 eval "ac_cv_func_$ac_func=yes"
20244 else
20245 echo "configure: failed program was:" >&5
20246 cat conftest.$ac_ext >&5
20247 rm -rf conftest*
20248 eval "ac_cv_func_$ac_func=no"
20250 rm -f conftest*
20253 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20254 echo "$ac_t""yes" 1>&6
20255 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20256 cat >> confdefs.h <<EOF
20257 #define $ac_tr_func 1
20260 else
20261 echo "$ac_t""no" 1>&6
20262 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
20264 done
20267 for ac_func in __signbit
20269 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20270 echo "configure:20271: checking for $ac_func" >&5
20271 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20272 echo $ac_n "(cached) $ac_c" 1>&6
20273 else
20274 cat > conftest.$ac_ext <<EOF
20275 #line 20276 "configure"
20276 #include "confdefs.h"
20277 /* System header to define __stub macros and hopefully few prototypes,
20278 which can conflict with char $ac_func(); below. */
20279 #include <assert.h>
20280 /* Override any gcc2 internal prototype to avoid an error. */
20281 /* We use char because int might match the return type of a gcc2
20282 builtin and then its argument prototype would still apply. */
20283 char $ac_func();
20285 int main() {
20287 /* The GNU C library defines this for functions which it implements
20288 to always fail with ENOSYS. Some functions are actually named
20289 something starting with __ and the normal name is an alias. */
20290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20291 choke me
20292 #else
20293 $ac_func();
20294 #endif
20296 ; return 0; }
20298 if { (eval echo configure:20299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20299 rm -rf conftest*
20300 eval "ac_cv_func_$ac_func=yes"
20301 else
20302 echo "configure: failed program was:" >&5
20303 cat conftest.$ac_ext >&5
20304 rm -rf conftest*
20305 eval "ac_cv_func_$ac_func=no"
20307 rm -f conftest*
20310 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20311 echo "$ac_t""yes" 1>&6
20312 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20313 cat >> confdefs.h <<EOF
20314 #define $ac_tr_func 1
20317 else
20318 echo "$ac_t""no" 1>&6
20319 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
20321 done
20323 for ac_func in __signbitf
20325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20326 echo "configure:20327: checking for $ac_func" >&5
20327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20328 echo $ac_n "(cached) $ac_c" 1>&6
20329 else
20330 cat > conftest.$ac_ext <<EOF
20331 #line 20332 "configure"
20332 #include "confdefs.h"
20333 /* System header to define __stub macros and hopefully few prototypes,
20334 which can conflict with char $ac_func(); below. */
20335 #include <assert.h>
20336 /* Override any gcc2 internal prototype to avoid an error. */
20337 /* We use char because int might match the return type of a gcc2
20338 builtin and then its argument prototype would still apply. */
20339 char $ac_func();
20341 int main() {
20343 /* The GNU C library defines this for functions which it implements
20344 to always fail with ENOSYS. Some functions are actually named
20345 something starting with __ and the normal name is an alias. */
20346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20347 choke me
20348 #else
20349 $ac_func();
20350 #endif
20352 ; return 0; }
20354 if { (eval echo configure:20355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20355 rm -rf conftest*
20356 eval "ac_cv_func_$ac_func=yes"
20357 else
20358 echo "configure: failed program was:" >&5
20359 cat conftest.$ac_ext >&5
20360 rm -rf conftest*
20361 eval "ac_cv_func_$ac_func=no"
20363 rm -f conftest*
20366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20367 echo "$ac_t""yes" 1>&6
20368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20369 cat >> confdefs.h <<EOF
20370 #define $ac_tr_func 1
20373 else
20374 echo "$ac_t""no" 1>&6
20375 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
20377 done
20380 if test x$ac_cv_func_copysignl = x"yes"; then
20381 for ac_func in __signbitl
20383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20384 echo "configure:20385: checking for $ac_func" >&5
20385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20386 echo $ac_n "(cached) $ac_c" 1>&6
20387 else
20388 cat > conftest.$ac_ext <<EOF
20389 #line 20390 "configure"
20390 #include "confdefs.h"
20391 /* System header to define __stub macros and hopefully few prototypes,
20392 which can conflict with char $ac_func(); below. */
20393 #include <assert.h>
20394 /* Override any gcc2 internal prototype to avoid an error. */
20395 /* We use char because int might match the return type of a gcc2
20396 builtin and then its argument prototype would still apply. */
20397 char $ac_func();
20399 int main() {
20401 /* The GNU C library defines this for functions which it implements
20402 to always fail with ENOSYS. Some functions are actually named
20403 something starting with __ and the normal name is an alias. */
20404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20405 choke me
20406 #else
20407 $ac_func();
20408 #endif
20410 ; return 0; }
20412 if { (eval echo configure:20413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20413 rm -rf conftest*
20414 eval "ac_cv_func_$ac_func=yes"
20415 else
20416 echo "configure: failed program was:" >&5
20417 cat conftest.$ac_ext >&5
20418 rm -rf conftest*
20419 eval "ac_cv_func_$ac_func=no"
20421 rm -f conftest*
20424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20425 echo "$ac_t""yes" 1>&6
20426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20427 cat >> confdefs.h <<EOF
20428 #define $ac_tr_func 1
20431 else
20432 echo "$ac_t""no" 1>&6
20433 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
20435 done
20443 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
20444 echo "configure:20445: checking for mbstate_t" >&5
20445 cat > conftest.$ac_ext <<EOF
20446 #line 20447 "configure"
20447 #include "confdefs.h"
20448 #include <wchar.h>
20449 int main() {
20450 mbstate_t teststate;
20451 ; return 0; }
20453 if { (eval echo configure:20454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20454 rm -rf conftest*
20455 have_mbstate_t=yes
20456 else
20457 echo "configure: failed program was:" >&5
20458 cat conftest.$ac_ext >&5
20459 rm -rf conftest*
20460 have_mbstate_t=no
20462 rm -f conftest*
20463 echo "$ac_t""$have_mbstate_t" 1>&6
20464 if test x"$have_mbstate_t" = xyes; then
20465 cat >> confdefs.h <<\EOF
20466 #define HAVE_MBSTATE_T 1
20471 for ac_hdr in wchar.h
20473 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20474 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20475 echo "configure:20476: checking for $ac_hdr" >&5
20476 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20477 echo $ac_n "(cached) $ac_c" 1>&6
20478 else
20479 cat > conftest.$ac_ext <<EOF
20480 #line 20481 "configure"
20481 #include "confdefs.h"
20482 #include <$ac_hdr>
20484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20485 { (eval echo configure:20486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20487 if test -z "$ac_err"; then
20488 rm -rf conftest*
20489 eval "ac_cv_header_$ac_safe=yes"
20490 else
20491 echo "$ac_err" >&5
20492 echo "configure: failed program was:" >&5
20493 cat conftest.$ac_ext >&5
20494 rm -rf conftest*
20495 eval "ac_cv_header_$ac_safe=no"
20497 rm -f conftest*
20499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20500 echo "$ac_t""yes" 1>&6
20501 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20502 cat >> confdefs.h <<EOF
20503 #define $ac_tr_hdr 1
20505 ac_has_wchar_h=yes
20506 else
20507 echo "$ac_t""no" 1>&6
20508 ac_has_wchar_h=no
20510 done
20512 for ac_hdr in wctype.h
20514 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20515 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20516 echo "configure:20517: checking for $ac_hdr" >&5
20517 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20518 echo $ac_n "(cached) $ac_c" 1>&6
20519 else
20520 cat > conftest.$ac_ext <<EOF
20521 #line 20522 "configure"
20522 #include "confdefs.h"
20523 #include <$ac_hdr>
20525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20526 { (eval echo configure:20527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20527 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20528 if test -z "$ac_err"; then
20529 rm -rf conftest*
20530 eval "ac_cv_header_$ac_safe=yes"
20531 else
20532 echo "$ac_err" >&5
20533 echo "configure: failed program was:" >&5
20534 cat conftest.$ac_ext >&5
20535 rm -rf conftest*
20536 eval "ac_cv_header_$ac_safe=no"
20538 rm -f conftest*
20540 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20541 echo "$ac_t""yes" 1>&6
20542 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20543 cat >> confdefs.h <<EOF
20544 #define $ac_tr_hdr 1
20546 ac_has_wctype_h=yes
20547 else
20548 echo "$ac_t""no" 1>&6
20549 ac_has_wctype_h=no
20551 done
20554 if test x"$ac_has_wchar_h" = xyes &&
20555 test x"$ac_has_wctype_h" = xyes &&
20556 test x"$enable_c_mbchar" != xno; then
20558 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
20559 echo "configure:20560: checking for WCHAR_MIN and WCHAR_MAX" >&5
20560 cat > conftest.$ac_ext <<EOF
20561 #line 20562 "configure"
20562 #include "confdefs.h"
20563 #include <wchar.h>
20564 int main() {
20565 int i = WCHAR_MIN; int j = WCHAR_MAX;
20566 ; return 0; }
20568 if { (eval echo configure:20569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20569 rm -rf conftest*
20570 has_wchar_minmax=yes
20571 else
20572 echo "configure: failed program was:" >&5
20573 cat conftest.$ac_ext >&5
20574 rm -rf conftest*
20575 has_wchar_minmax=no
20577 rm -f conftest*
20578 echo "$ac_t""$has_wchar_minmax" 1>&6
20580 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
20581 echo "configure:20582: checking for WEOF" >&5
20582 cat > conftest.$ac_ext <<EOF
20583 #line 20584 "configure"
20584 #include "confdefs.h"
20586 #include <wchar.h>
20587 #include <stddef.h>
20588 int main() {
20589 wint_t i = WEOF;
20590 ; return 0; }
20592 if { (eval echo configure:20593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20593 rm -rf conftest*
20594 has_weof=yes
20595 else
20596 echo "configure: failed program was:" >&5
20597 cat conftest.$ac_ext >&5
20598 rm -rf conftest*
20599 has_weof=no
20601 rm -f conftest*
20602 echo "$ac_t""$has_weof" 1>&6
20604 ac_wfuncs=yes
20605 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
20607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20608 echo "configure:20609: checking for $ac_func" >&5
20609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20610 echo $ac_n "(cached) $ac_c" 1>&6
20611 else
20612 cat > conftest.$ac_ext <<EOF
20613 #line 20614 "configure"
20614 #include "confdefs.h"
20615 /* System header to define __stub macros and hopefully few prototypes,
20616 which can conflict with char $ac_func(); below. */
20617 #include <assert.h>
20618 /* Override any gcc2 internal prototype to avoid an error. */
20619 /* We use char because int might match the return type of a gcc2
20620 builtin and then its argument prototype would still apply. */
20621 char $ac_func();
20623 int main() {
20625 /* The GNU C library defines this for functions which it implements
20626 to always fail with ENOSYS. Some functions are actually named
20627 something starting with __ and the normal name is an alias. */
20628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20629 choke me
20630 #else
20631 $ac_func();
20632 #endif
20634 ; return 0; }
20636 if { (eval echo configure:20637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20637 rm -rf conftest*
20638 eval "ac_cv_func_$ac_func=yes"
20639 else
20640 echo "configure: failed program was:" >&5
20641 cat conftest.$ac_ext >&5
20642 rm -rf conftest*
20643 eval "ac_cv_func_$ac_func=no"
20645 rm -f conftest*
20648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20649 echo "$ac_t""yes" 1>&6
20650 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20651 cat >> confdefs.h <<EOF
20652 #define $ac_tr_func 1
20655 else
20656 echo "$ac_t""no" 1>&6
20658 ac_wfuncs=no
20660 done
20663 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
20664 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
20665 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
20666 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
20667 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
20668 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
20670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20671 echo "configure:20672: checking for $ac_func" >&5
20672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20673 echo $ac_n "(cached) $ac_c" 1>&6
20674 else
20675 cat > conftest.$ac_ext <<EOF
20676 #line 20677 "configure"
20677 #include "confdefs.h"
20678 /* System header to define __stub macros and hopefully few prototypes,
20679 which can conflict with char $ac_func(); below. */
20680 #include <assert.h>
20681 /* Override any gcc2 internal prototype to avoid an error. */
20682 /* We use char because int might match the return type of a gcc2
20683 builtin and then its argument prototype would still apply. */
20684 char $ac_func();
20686 int main() {
20688 /* The GNU C library defines this for functions which it implements
20689 to always fail with ENOSYS. Some functions are actually named
20690 something starting with __ and the normal name is an alias. */
20691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20692 choke me
20693 #else
20694 $ac_func();
20695 #endif
20697 ; return 0; }
20699 if { (eval echo configure:20700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20700 rm -rf conftest*
20701 eval "ac_cv_func_$ac_func=yes"
20702 else
20703 echo "configure: failed program was:" >&5
20704 cat conftest.$ac_ext >&5
20705 rm -rf conftest*
20706 eval "ac_cv_func_$ac_func=no"
20708 rm -f conftest*
20711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20712 echo "$ac_t""yes" 1>&6
20713 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20714 cat >> confdefs.h <<EOF
20715 #define $ac_tr_func 1
20718 else
20719 echo "$ac_t""no" 1>&6
20721 ac_wfuncs=no
20723 done
20726 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
20727 echo "configure:20728: checking for ISO C99 wchar_t support" >&5
20728 if test x"$has_weof" = xyes &&
20729 test x"$has_wchar_minmax" = xyes &&
20730 test x"$ac_wfuncs" = xyes; then
20731 ac_isoC99_wchar_t=yes
20732 else
20733 ac_isoC99_wchar_t=no
20735 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
20737 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
20738 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
20739 echo "configure:20740: checking for iconv.h" >&5
20740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20741 echo $ac_n "(cached) $ac_c" 1>&6
20742 else
20743 cat > conftest.$ac_ext <<EOF
20744 #line 20745 "configure"
20745 #include "confdefs.h"
20746 #include <iconv.h>
20748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20749 { (eval echo configure:20750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20751 if test -z "$ac_err"; then
20752 rm -rf conftest*
20753 eval "ac_cv_header_$ac_safe=yes"
20754 else
20755 echo "$ac_err" >&5
20756 echo "configure: failed program was:" >&5
20757 cat conftest.$ac_ext >&5
20758 rm -rf conftest*
20759 eval "ac_cv_header_$ac_safe=no"
20761 rm -f conftest*
20763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20764 echo "$ac_t""yes" 1>&6
20765 ac_has_iconv_h=yes
20766 else
20767 echo "$ac_t""no" 1>&6
20768 ac_has_iconv_h=no
20771 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
20772 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
20773 echo "configure:20774: checking for langinfo.h" >&5
20774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20775 echo $ac_n "(cached) $ac_c" 1>&6
20776 else
20777 cat > conftest.$ac_ext <<EOF
20778 #line 20779 "configure"
20779 #include "confdefs.h"
20780 #include <langinfo.h>
20782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20783 { (eval echo configure:20784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20785 if test -z "$ac_err"; then
20786 rm -rf conftest*
20787 eval "ac_cv_header_$ac_safe=yes"
20788 else
20789 echo "$ac_err" >&5
20790 echo "configure: failed program was:" >&5
20791 cat conftest.$ac_ext >&5
20792 rm -rf conftest*
20793 eval "ac_cv_header_$ac_safe=no"
20795 rm -f conftest*
20797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20798 echo "$ac_t""yes" 1>&6
20799 ac_has_langinfo_h=yes
20800 else
20801 echo "$ac_t""no" 1>&6
20802 ac_has_langinfo_h=no
20806 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
20807 echo "configure:20808: checking for iconv in -liconv" >&5
20808 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
20809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20810 echo $ac_n "(cached) $ac_c" 1>&6
20811 else
20812 ac_save_LIBS="$LIBS"
20813 LIBS="-liconv $LIBS"
20814 cat > conftest.$ac_ext <<EOF
20815 #line 20816 "configure"
20816 #include "confdefs.h"
20817 /* Override any gcc2 internal prototype to avoid an error. */
20818 /* We use char because int might match the return type of a gcc2
20819 builtin and then its argument prototype would still apply. */
20820 char iconv();
20822 int main() {
20823 iconv()
20824 ; return 0; }
20826 if { (eval echo configure:20827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20827 rm -rf conftest*
20828 eval "ac_cv_lib_$ac_lib_var=yes"
20829 else
20830 echo "configure: failed program was:" >&5
20831 cat conftest.$ac_ext >&5
20832 rm -rf conftest*
20833 eval "ac_cv_lib_$ac_lib_var=no"
20835 rm -f conftest*
20836 LIBS="$ac_save_LIBS"
20839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20840 echo "$ac_t""yes" 1>&6
20841 libiconv="-liconv"
20842 else
20843 echo "$ac_t""no" 1>&6
20846 ac_save_LIBS="$LIBS"
20847 LIBS="$LIBS $libiconv"
20849 for ac_func in iconv_open iconv_close iconv nl_langinfo
20851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20852 echo "configure:20853: checking for $ac_func" >&5
20853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20854 echo $ac_n "(cached) $ac_c" 1>&6
20855 else
20856 cat > conftest.$ac_ext <<EOF
20857 #line 20858 "configure"
20858 #include "confdefs.h"
20859 /* System header to define __stub macros and hopefully few prototypes,
20860 which can conflict with char $ac_func(); below. */
20861 #include <assert.h>
20862 /* Override any gcc2 internal prototype to avoid an error. */
20863 /* We use char because int might match the return type of a gcc2
20864 builtin and then its argument prototype would still apply. */
20865 char $ac_func();
20867 int main() {
20869 /* The GNU C library defines this for functions which it implements
20870 to always fail with ENOSYS. Some functions are actually named
20871 something starting with __ and the normal name is an alias. */
20872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20873 choke me
20874 #else
20875 $ac_func();
20876 #endif
20878 ; return 0; }
20880 if { (eval echo configure:20881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20881 rm -rf conftest*
20882 eval "ac_cv_func_$ac_func=yes"
20883 else
20884 echo "configure: failed program was:" >&5
20885 cat conftest.$ac_ext >&5
20886 rm -rf conftest*
20887 eval "ac_cv_func_$ac_func=no"
20889 rm -f conftest*
20892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20893 echo "$ac_t""yes" 1>&6
20894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20895 cat >> confdefs.h <<EOF
20896 #define $ac_tr_func 1
20899 ac_XPG2funcs=yes
20900 else
20901 echo "$ac_t""no" 1>&6
20902 ac_XPG2funcs=no
20904 done
20907 LIBS="$ac_save_LIBS"
20909 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
20910 echo "configure:20911: checking for XPG2 wchar_t support" >&5
20911 if test x"$ac_has_iconv_h" = xyes &&
20912 test x"$ac_has_langinfo_h" = xyes &&
20913 test x"$ac_XPG2funcs" = xyes; then
20914 ac_XPG2_wchar_t=yes
20915 else
20916 ac_XPG2_wchar_t=no
20918 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
20920 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
20921 echo "configure:20922: checking for enabled wchar_t specializations" >&5
20922 if test x"$ac_isoC99_wchar_t" = xyes &&
20923 test x"$ac_XPG2_wchar_t" = xyes; then
20924 cat >> confdefs.h <<\EOF
20925 #define _GLIBCPP_USE_WCHAR_T 1
20928 echo "$ac_t"""yes"" 1>&6
20929 else
20930 echo "$ac_t"""no"" 1>&6
20932 else
20933 echo "configure: warning: wchar_t support disabled." 1>&2
20937 ac_test_CXXFLAGS="${CXXFLAGS+set}"
20938 ac_save_CXXFLAGS="$CXXFLAGS"
20939 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
20942 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
20943 echo "configure:20944: checking for strtold declaration" >&5
20944 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
20945 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
20946 echo $ac_n "(cached) $ac_c" 1>&6
20947 else
20950 ac_ext=C
20951 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20952 ac_cpp='$CXXCPP $CPPFLAGS'
20953 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20954 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20955 cross_compiling=$ac_cv_prog_cxx_cross
20957 cat > conftest.$ac_ext <<EOF
20958 #line 20959 "configure"
20959 #include "confdefs.h"
20960 #include <stdlib.h>
20961 int main() {
20962 strtold(0, 0);
20963 ; return 0; }
20965 if { (eval echo configure:20966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20966 rm -rf conftest*
20967 glibcpp_cv_func_strtold_use=yes
20968 else
20969 echo "configure: failed program was:" >&5
20970 cat conftest.$ac_ext >&5
20971 rm -rf conftest*
20972 glibcpp_cv_func_strtold_use=no
20974 rm -f conftest*
20975 ac_ext=c
20976 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20977 ac_cpp='$CPP $CPPFLAGS'
20978 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20979 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20980 cross_compiling=$ac_cv_prog_cc_cross
20986 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
20987 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
20988 for ac_func in strtold
20990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20991 echo "configure:20992: checking for $ac_func" >&5
20992 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20993 echo $ac_n "(cached) $ac_c" 1>&6
20994 else
20995 cat > conftest.$ac_ext <<EOF
20996 #line 20997 "configure"
20997 #include "confdefs.h"
20998 /* System header to define __stub macros and hopefully few prototypes,
20999 which can conflict with char $ac_func(); below. */
21000 #include <assert.h>
21001 /* Override any gcc2 internal prototype to avoid an error. */
21002 /* We use char because int might match the return type of a gcc2
21003 builtin and then its argument prototype would still apply. */
21004 char $ac_func();
21006 int main() {
21008 /* The GNU C library defines this for functions which it implements
21009 to always fail with ENOSYS. Some functions are actually named
21010 something starting with __ and the normal name is an alias. */
21011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21012 choke me
21013 #else
21014 $ac_func();
21015 #endif
21017 ; return 0; }
21019 if { (eval echo configure:21020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21020 rm -rf conftest*
21021 eval "ac_cv_func_$ac_func=yes"
21022 else
21023 echo "configure: failed program was:" >&5
21024 cat conftest.$ac_ext >&5
21025 rm -rf conftest*
21026 eval "ac_cv_func_$ac_func=no"
21028 rm -f conftest*
21031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21032 echo "$ac_t""yes" 1>&6
21033 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21034 cat >> confdefs.h <<EOF
21035 #define $ac_tr_func 1
21038 else
21039 echo "$ac_t""no" 1>&6
21041 done
21046 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
21047 echo "configure:21048: checking for strtof declaration" >&5
21048 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
21049 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
21050 echo $ac_n "(cached) $ac_c" 1>&6
21051 else
21054 ac_ext=C
21055 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21056 ac_cpp='$CXXCPP $CPPFLAGS'
21057 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21058 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21059 cross_compiling=$ac_cv_prog_cxx_cross
21061 cat > conftest.$ac_ext <<EOF
21062 #line 21063 "configure"
21063 #include "confdefs.h"
21064 #include <stdlib.h>
21065 int main() {
21066 strtof(0, 0);
21067 ; return 0; }
21069 if { (eval echo configure:21070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21070 rm -rf conftest*
21071 glibcpp_cv_func_strtof_use=yes
21072 else
21073 echo "configure: failed program was:" >&5
21074 cat conftest.$ac_ext >&5
21075 rm -rf conftest*
21076 glibcpp_cv_func_strtof_use=no
21078 rm -f conftest*
21079 ac_ext=c
21080 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21081 ac_cpp='$CPP $CPPFLAGS'
21082 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21083 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21084 cross_compiling=$ac_cv_prog_cc_cross
21090 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
21091 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
21092 for ac_func in strtof
21094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21095 echo "configure:21096: checking for $ac_func" >&5
21096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21097 echo $ac_n "(cached) $ac_c" 1>&6
21098 else
21099 cat > conftest.$ac_ext <<EOF
21100 #line 21101 "configure"
21101 #include "confdefs.h"
21102 /* System header to define __stub macros and hopefully few prototypes,
21103 which can conflict with char $ac_func(); below. */
21104 #include <assert.h>
21105 /* Override any gcc2 internal prototype to avoid an error. */
21106 /* We use char because int might match the return type of a gcc2
21107 builtin and then its argument prototype would still apply. */
21108 char $ac_func();
21110 int main() {
21112 /* The GNU C library defines this for functions which it implements
21113 to always fail with ENOSYS. Some functions are actually named
21114 something starting with __ and the normal name is an alias. */
21115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21116 choke me
21117 #else
21118 $ac_func();
21119 #endif
21121 ; return 0; }
21123 if { (eval echo configure:21124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21124 rm -rf conftest*
21125 eval "ac_cv_func_$ac_func=yes"
21126 else
21127 echo "configure: failed program was:" >&5
21128 cat conftest.$ac_ext >&5
21129 rm -rf conftest*
21130 eval "ac_cv_func_$ac_func=no"
21132 rm -f conftest*
21135 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21136 echo "$ac_t""yes" 1>&6
21137 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21138 cat >> confdefs.h <<EOF
21139 #define $ac_tr_func 1
21142 else
21143 echo "$ac_t""no" 1>&6
21145 done
21149 for ac_func in drand48
21151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21152 echo "configure:21153: checking for $ac_func" >&5
21153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21154 echo $ac_n "(cached) $ac_c" 1>&6
21155 else
21156 cat > conftest.$ac_ext <<EOF
21157 #line 21158 "configure"
21158 #include "confdefs.h"
21159 /* System header to define __stub macros and hopefully few prototypes,
21160 which can conflict with char $ac_func(); below. */
21161 #include <assert.h>
21162 /* Override any gcc2 internal prototype to avoid an error. */
21163 /* We use char because int might match the return type of a gcc2
21164 builtin and then its argument prototype would still apply. */
21165 char $ac_func();
21167 int main() {
21169 /* The GNU C library defines this for functions which it implements
21170 to always fail with ENOSYS. Some functions are actually named
21171 something starting with __ and the normal name is an alias. */
21172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21173 choke me
21174 #else
21175 $ac_func();
21176 #endif
21178 ; return 0; }
21180 if { (eval echo configure:21181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21181 rm -rf conftest*
21182 eval "ac_cv_func_$ac_func=yes"
21183 else
21184 echo "configure: failed program was:" >&5
21185 cat conftest.$ac_ext >&5
21186 rm -rf conftest*
21187 eval "ac_cv_func_$ac_func=no"
21189 rm -f conftest*
21192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21193 echo "$ac_t""yes" 1>&6
21194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21195 cat >> confdefs.h <<EOF
21196 #define $ac_tr_func 1
21199 else
21200 echo "$ac_t""no" 1>&6
21202 done
21205 CXXFLAGS="$ac_save_CXXFLAGS"
21208 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
21209 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
21210 echo "configure:21211: checking for locale.h" >&5
21211 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21212 echo $ac_n "(cached) $ac_c" 1>&6
21213 else
21214 cat > conftest.$ac_ext <<EOF
21215 #line 21216 "configure"
21216 #include "confdefs.h"
21217 #include <locale.h>
21219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21220 { (eval echo configure:21221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21221 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21222 if test -z "$ac_err"; then
21223 rm -rf conftest*
21224 eval "ac_cv_header_$ac_safe=yes"
21225 else
21226 echo "$ac_err" >&5
21227 echo "configure: failed program was:" >&5
21228 cat conftest.$ac_ext >&5
21229 rm -rf conftest*
21230 eval "ac_cv_header_$ac_safe=no"
21232 rm -f conftest*
21234 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21235 echo "$ac_t""yes" 1>&6
21237 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
21238 echo "configure:21239: checking for LC_MESSAGES" >&5
21239 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
21240 echo $ac_n "(cached) $ac_c" 1>&6
21241 else
21242 cat > conftest.$ac_ext <<EOF
21243 #line 21244 "configure"
21244 #include "confdefs.h"
21245 #include <locale.h>
21246 int main() {
21247 return LC_MESSAGES
21248 ; return 0; }
21250 if { (eval echo configure:21251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21251 rm -rf conftest*
21252 ac_cv_val_LC_MESSAGES=yes
21253 else
21254 echo "configure: failed program was:" >&5
21255 cat conftest.$ac_ext >&5
21256 rm -rf conftest*
21257 ac_cv_val_LC_MESSAGES=no
21259 rm -f conftest*
21262 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
21263 if test $ac_cv_val_LC_MESSAGES = yes; then
21264 cat >> confdefs.h <<\EOF
21265 #define HAVE_LC_MESSAGES 1
21270 else
21271 echo "$ac_t""no" 1>&6
21276 cat > conftest.$ac_ext <<EOF
21277 #line 21278 "configure"
21278 #include "confdefs.h"
21280 #include <setjmp.h>
21282 int main() {
21283 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21284 ; return 0; }
21286 if { (eval echo configure:21287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21287 rm -rf conftest*
21288 cat >> confdefs.h <<\EOF
21289 #define HAVE_SIGSETJMP 1
21293 else
21294 echo "configure: failed program was:" >&5
21295 cat conftest.$ac_ext >&5
21297 rm -f conftest*
21299 for ac_hdr in unistd.h
21301 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21302 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21303 echo "configure:21304: checking for $ac_hdr" >&5
21304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21305 echo $ac_n "(cached) $ac_c" 1>&6
21306 else
21307 cat > conftest.$ac_ext <<EOF
21308 #line 21309 "configure"
21309 #include "confdefs.h"
21310 #include <$ac_hdr>
21312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21313 { (eval echo configure:21314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21315 if test -z "$ac_err"; then
21316 rm -rf conftest*
21317 eval "ac_cv_header_$ac_safe=yes"
21318 else
21319 echo "$ac_err" >&5
21320 echo "configure: failed program was:" >&5
21321 cat conftest.$ac_ext >&5
21322 rm -rf conftest*
21323 eval "ac_cv_header_$ac_safe=no"
21325 rm -f conftest*
21327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21328 echo "$ac_t""yes" 1>&6
21329 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21330 cat >> confdefs.h <<EOF
21331 #define $ac_tr_hdr 1
21334 else
21335 echo "$ac_t""no" 1>&6
21337 done
21339 for ac_func in getpagesize
21341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21342 echo "configure:21343: checking for $ac_func" >&5
21343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21344 echo $ac_n "(cached) $ac_c" 1>&6
21345 else
21346 cat > conftest.$ac_ext <<EOF
21347 #line 21348 "configure"
21348 #include "confdefs.h"
21349 /* System header to define __stub macros and hopefully few prototypes,
21350 which can conflict with char $ac_func(); below. */
21351 #include <assert.h>
21352 /* Override any gcc2 internal prototype to avoid an error. */
21353 /* We use char because int might match the return type of a gcc2
21354 builtin and then its argument prototype would still apply. */
21355 char $ac_func();
21357 int main() {
21359 /* The GNU C library defines this for functions which it implements
21360 to always fail with ENOSYS. Some functions are actually named
21361 something starting with __ and the normal name is an alias. */
21362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21363 choke me
21364 #else
21365 $ac_func();
21366 #endif
21368 ; return 0; }
21370 if { (eval echo configure:21371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21371 rm -rf conftest*
21372 eval "ac_cv_func_$ac_func=yes"
21373 else
21374 echo "configure: failed program was:" >&5
21375 cat conftest.$ac_ext >&5
21376 rm -rf conftest*
21377 eval "ac_cv_func_$ac_func=no"
21379 rm -f conftest*
21382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21383 echo "$ac_t""yes" 1>&6
21384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21385 cat >> confdefs.h <<EOF
21386 #define $ac_tr_func 1
21389 else
21390 echo "$ac_t""no" 1>&6
21392 done
21394 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
21395 echo "configure:21396: checking for working mmap" >&5
21396 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
21397 echo $ac_n "(cached) $ac_c" 1>&6
21398 else
21399 if test "$cross_compiling" = yes; then
21400 ac_cv_func_mmap_fixed_mapped=no
21401 else
21402 cat > conftest.$ac_ext <<EOF
21403 #line 21404 "configure"
21404 #include "confdefs.h"
21406 /* Thanks to Mike Haertel and Jim Avera for this test.
21407 Here is a matrix of mmap possibilities:
21408 mmap private not fixed
21409 mmap private fixed at somewhere currently unmapped
21410 mmap private fixed at somewhere already mapped
21411 mmap shared not fixed
21412 mmap shared fixed at somewhere currently unmapped
21413 mmap shared fixed at somewhere already mapped
21414 For private mappings, we should verify that changes cannot be read()
21415 back from the file, nor mmap's back from the file at a different
21416 address. (There have been systems where private was not correctly
21417 implemented like the infamous i386 svr4.0, and systems where the
21418 VM page cache was not coherent with the filesystem buffer cache
21419 like early versions of FreeBSD and possibly contemporary NetBSD.)
21420 For shared mappings, we should conversely verify that changes get
21421 propogated back to all the places they're supposed to be.
21423 Grep wants private fixed already mapped.
21424 The main things grep needs to know about mmap are:
21425 * does it exist and is it safe to write into the mmap'd area
21426 * how to use it (BSD variants) */
21427 #include <sys/types.h>
21428 #include <fcntl.h>
21429 #include <sys/mman.h>
21431 /* This mess was copied from the GNU getpagesize.h. */
21432 #ifndef HAVE_GETPAGESIZE
21433 # ifdef HAVE_UNISTD_H
21434 # include <unistd.h>
21435 # endif
21437 /* Assume that all systems that can run configure have sys/param.h. */
21438 # ifndef HAVE_SYS_PARAM_H
21439 # define HAVE_SYS_PARAM_H 1
21440 # endif
21442 # ifdef _SC_PAGESIZE
21443 # define getpagesize() sysconf(_SC_PAGESIZE)
21444 # else /* no _SC_PAGESIZE */
21445 # ifdef HAVE_SYS_PARAM_H
21446 # include <sys/param.h>
21447 # ifdef EXEC_PAGESIZE
21448 # define getpagesize() EXEC_PAGESIZE
21449 # else /* no EXEC_PAGESIZE */
21450 # ifdef NBPG
21451 # define getpagesize() NBPG * CLSIZE
21452 # ifndef CLSIZE
21453 # define CLSIZE 1
21454 # endif /* no CLSIZE */
21455 # else /* no NBPG */
21456 # ifdef NBPC
21457 # define getpagesize() NBPC
21458 # else /* no NBPC */
21459 # ifdef PAGESIZE
21460 # define getpagesize() PAGESIZE
21461 # endif /* PAGESIZE */
21462 # endif /* no NBPC */
21463 # endif /* no NBPG */
21464 # endif /* no EXEC_PAGESIZE */
21465 # else /* no HAVE_SYS_PARAM_H */
21466 # define getpagesize() 8192 /* punt totally */
21467 # endif /* no HAVE_SYS_PARAM_H */
21468 # endif /* no _SC_PAGESIZE */
21470 #endif /* no HAVE_GETPAGESIZE */
21472 #ifdef __cplusplus
21473 extern "C" { void *malloc(unsigned); }
21474 #else
21475 char *malloc();
21476 #endif
21479 main()
21481 char *data, *data2, *data3;
21482 int i, pagesize;
21483 int fd;
21485 pagesize = getpagesize();
21488 * First, make a file with some known garbage in it.
21490 data = malloc(pagesize);
21491 if (!data)
21492 exit(1);
21493 for (i = 0; i < pagesize; ++i)
21494 *(data + i) = rand();
21495 umask(0);
21496 fd = creat("conftestmmap", 0600);
21497 if (fd < 0)
21498 exit(1);
21499 if (write(fd, data, pagesize) != pagesize)
21500 exit(1);
21501 close(fd);
21504 * Next, try to mmap the file at a fixed address which
21505 * already has something else allocated at it. If we can,
21506 * also make sure that we see the same garbage.
21508 fd = open("conftestmmap", O_RDWR);
21509 if (fd < 0)
21510 exit(1);
21511 data2 = malloc(2 * pagesize);
21512 if (!data2)
21513 exit(1);
21514 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21515 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
21516 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21517 exit(1);
21518 for (i = 0; i < pagesize; ++i)
21519 if (*(data + i) != *(data2 + i))
21520 exit(1);
21523 * Finally, make sure that changes to the mapped area
21524 * do not percolate back to the file as seen by read().
21525 * (This is a bug on some variants of i386 svr4.0.)
21527 for (i = 0; i < pagesize; ++i)
21528 *(data2 + i) = *(data2 + i) + 1;
21529 data3 = malloc(pagesize);
21530 if (!data3)
21531 exit(1);
21532 if (read(fd, data3, pagesize) != pagesize)
21533 exit(1);
21534 for (i = 0; i < pagesize; ++i)
21535 if (*(data + i) != *(data3 + i))
21536 exit(1);
21537 close(fd);
21538 unlink("conftestmmap");
21539 exit(0);
21543 if { (eval echo configure:21544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21544 then
21545 ac_cv_func_mmap_fixed_mapped=yes
21546 else
21547 echo "configure: failed program was:" >&5
21548 cat conftest.$ac_ext >&5
21549 rm -fr conftest*
21550 ac_cv_func_mmap_fixed_mapped=no
21552 rm -fr conftest*
21557 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
21558 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21559 cat >> confdefs.h <<\EOF
21560 #define HAVE_MMAP 1
21566 # Establish limits on memory usage during 'make check'
21569 setrlimit_have_headers=yes
21570 for ac_hdr in sys/resource.h unistd.h
21572 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21574 echo "configure:21575: checking for $ac_hdr" >&5
21575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21576 echo $ac_n "(cached) $ac_c" 1>&6
21577 else
21578 cat > conftest.$ac_ext <<EOF
21579 #line 21580 "configure"
21580 #include "confdefs.h"
21581 #include <$ac_hdr>
21583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21584 { (eval echo configure:21585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21586 if test -z "$ac_err"; then
21587 rm -rf conftest*
21588 eval "ac_cv_header_$ac_safe=yes"
21589 else
21590 echo "$ac_err" >&5
21591 echo "configure: failed program was:" >&5
21592 cat conftest.$ac_ext >&5
21593 rm -rf conftest*
21594 eval "ac_cv_header_$ac_safe=no"
21596 rm -f conftest*
21598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21599 echo "$ac_t""yes" 1>&6
21600 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21601 cat >> confdefs.h <<EOF
21602 #define $ac_tr_hdr 1
21605 else
21606 echo "$ac_t""no" 1>&6
21607 setrlimit_have_headers=no
21609 done
21611 # If don't have the headers, then we can't run the tests now, and we
21612 # won't be seeing any of these during testsuite compilation.
21613 if test $setrlimit_have_headers = yes; then
21614 # Can't do these in a loop, else the resulting syntax is wrong.
21616 cat > conftest.$ac_ext <<EOF
21617 #line 21618 "configure"
21618 #include "confdefs.h"
21619 #include <sys/resource.h>
21620 #include <unistd.h>
21622 int main() {
21623 int f = RLIMIT_DATA ;
21624 ; return 0; }
21626 if { (eval echo configure:21627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21627 rm -rf conftest*
21628 glibcpp_mresult=1
21629 else
21630 echo "configure: failed program was:" >&5
21631 cat conftest.$ac_ext >&5
21632 rm -rf conftest*
21633 glibcpp_mresult=0
21635 rm -f conftest*
21636 cat >> confdefs.h <<EOF
21637 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
21642 cat > conftest.$ac_ext <<EOF
21643 #line 21644 "configure"
21644 #include "confdefs.h"
21645 #include <sys/resource.h>
21646 #include <unistd.h>
21648 int main() {
21649 int f = RLIMIT_RSS ;
21650 ; return 0; }
21652 if { (eval echo configure:21653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21653 rm -rf conftest*
21654 glibcpp_mresult=1
21655 else
21656 echo "configure: failed program was:" >&5
21657 cat conftest.$ac_ext >&5
21658 rm -rf conftest*
21659 glibcpp_mresult=0
21661 rm -f conftest*
21662 cat >> confdefs.h <<EOF
21663 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
21668 cat > conftest.$ac_ext <<EOF
21669 #line 21670 "configure"
21670 #include "confdefs.h"
21671 #include <sys/resource.h>
21672 #include <unistd.h>
21674 int main() {
21675 int f = RLIMIT_VMEM ;
21676 ; return 0; }
21678 if { (eval echo configure:21679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21679 rm -rf conftest*
21680 glibcpp_mresult=1
21681 else
21682 echo "configure: failed program was:" >&5
21683 cat conftest.$ac_ext >&5
21684 rm -rf conftest*
21685 glibcpp_mresult=0
21687 rm -f conftest*
21688 cat >> confdefs.h <<EOF
21689 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
21694 cat > conftest.$ac_ext <<EOF
21695 #line 21696 "configure"
21696 #include "confdefs.h"
21697 #include <sys/resource.h>
21698 #include <unistd.h>
21700 int main() {
21701 int f = RLIMIT_AS ;
21702 ; return 0; }
21704 if { (eval echo configure:21705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21705 rm -rf conftest*
21706 glibcpp_mresult=1
21707 else
21708 echo "configure: failed program was:" >&5
21709 cat conftest.$ac_ext >&5
21710 rm -rf conftest*
21711 glibcpp_mresult=0
21713 rm -f conftest*
21714 cat >> confdefs.h <<EOF
21715 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
21720 # Check for rlimit, setrlimit.
21721 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
21722 echo $ac_n "(cached) $ac_c" 1>&6
21723 else
21725 cat > conftest.$ac_ext <<EOF
21726 #line 21727 "configure"
21727 #include "confdefs.h"
21728 #include <sys/resource.h>
21729 #include <unistd.h>
21731 int main() {
21732 struct rlimit r; setrlimit(0, &r);
21733 ; return 0; }
21735 if { (eval echo configure:21736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21736 rm -rf conftest*
21737 ac_setrlimit=yes
21738 else
21739 echo "configure: failed program was:" >&5
21740 cat conftest.$ac_ext >&5
21741 rm -rf conftest*
21742 ac_setrlimit=no
21744 rm -f conftest*
21750 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
21751 echo "configure:21752: checking for testsuite memory limit support" >&5
21752 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
21753 ac_mem_limits=yes
21754 cat >> confdefs.h <<\EOF
21755 #define _GLIBCPP_MEM_LIMITS 1
21758 else
21759 ac_mem_limits=no
21761 echo "$ac_t""$ac_mem_limits" 1>&6
21764 # Look for setenv, so that extended locale tests can be performed.
21766 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
21767 echo "configure:21768: checking for setenv declaration" >&5
21768 if test x${glibcpp_cv_func_setenv_use+set} != xset; then
21769 if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
21770 echo $ac_n "(cached) $ac_c" 1>&6
21771 else
21774 ac_ext=C
21775 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21776 ac_cpp='$CXXCPP $CPPFLAGS'
21777 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21778 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21779 cross_compiling=$ac_cv_prog_cxx_cross
21781 cat > conftest.$ac_ext <<EOF
21782 #line 21783 "configure"
21783 #include "confdefs.h"
21784 #include <stdlib.h>
21785 int main() {
21786 setenv(0, 0, 0);
21787 ; return 0; }
21789 if { (eval echo configure:21790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21790 rm -rf conftest*
21791 glibcpp_cv_func_setenv_use=yes
21792 else
21793 echo "configure: failed program was:" >&5
21794 cat conftest.$ac_ext >&5
21795 rm -rf conftest*
21796 glibcpp_cv_func_setenv_use=no
21798 rm -f conftest*
21799 ac_ext=c
21800 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21801 ac_cpp='$CPP $CPPFLAGS'
21802 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21803 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21804 cross_compiling=$ac_cv_prog_cc_cross
21810 echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
21811 if test x$glibcpp_cv_func_setenv_use = x"yes"; then
21812 for ac_func in setenv
21814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21815 echo "configure:21816: checking for $ac_func" >&5
21816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21817 echo $ac_n "(cached) $ac_c" 1>&6
21818 else
21819 cat > conftest.$ac_ext <<EOF
21820 #line 21821 "configure"
21821 #include "confdefs.h"
21822 /* System header to define __stub macros and hopefully few prototypes,
21823 which can conflict with char $ac_func(); below. */
21824 #include <assert.h>
21825 /* Override any gcc2 internal prototype to avoid an error. */
21826 /* We use char because int might match the return type of a gcc2
21827 builtin and then its argument prototype would still apply. */
21828 char $ac_func();
21830 int main() {
21832 /* The GNU C library defines this for functions which it implements
21833 to always fail with ENOSYS. Some functions are actually named
21834 something starting with __ and the normal name is an alias. */
21835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21836 choke me
21837 #else
21838 $ac_func();
21839 #endif
21841 ; return 0; }
21843 if { (eval echo configure:21844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21844 rm -rf conftest*
21845 eval "ac_cv_func_$ac_func=yes"
21846 else
21847 echo "configure: failed program was:" >&5
21848 cat conftest.$ac_ext >&5
21849 rm -rf conftest*
21850 eval "ac_cv_func_$ac_func=no"
21852 rm -f conftest*
21855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21856 echo "$ac_t""yes" 1>&6
21857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21858 cat >> confdefs.h <<EOF
21859 #define $ac_tr_func 1
21862 else
21863 echo "$ac_t""no" 1>&6
21865 done
21872 # This depends on the possibly-skipped linker test above.
21873 # Check whether --enable-symvers or --disable-symvers was given.
21874 if test "${enable_symvers+set}" = set; then
21875 enableval="$enable_symvers"
21876 case "$enableval" in
21877 yes) enable_symvers=yes ;;
21878 no) enable_symvers=no ;;
21879 # other names here, just as sanity checks
21880 #gnu|sun|etcetera) enable_symvers=$enableval ;;
21881 gnu) enable_symvers=$enableval ;;
21882 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
21883 esac
21884 else
21885 enable_symvers=yes
21888 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
21889 # don't know enough about $LD to do tricks...
21890 if test x$enable_shared = xno ||
21891 test "x$LD" = x ||
21892 test x$glibcpp_gnu_ld_version = x; then
21893 enable_symvers=no
21896 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
21897 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
21898 echo "configure:21899: checking for shared libgcc" >&5
21899 ac_save_CFLAGS="$CFLAGS"
21900 CFLAGS=' -lgcc_s'
21901 cat > conftest.$ac_ext <<EOF
21902 #line 21903 "configure"
21903 #include "confdefs.h"
21905 int main() {
21906 return 0
21907 ; return 0; }
21909 if { (eval echo configure:21910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21910 rm -rf conftest*
21911 glibcpp_shared_libgcc=yes
21912 else
21913 echo "configure: failed program was:" >&5
21914 cat conftest.$ac_ext >&5
21915 rm -rf conftest*
21916 glibcpp_shared_libgcc=no
21918 rm -f conftest*
21919 CFLAGS="$ac_save_CFLAGS"
21920 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
21922 # For GNU ld, we need at least this version. It's 2.12 in the same format
21923 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
21924 glibcpp_min_gnu_ld_version=21200
21926 # Check to see if unspecified "yes" value can win, given results
21927 # above.
21928 if test $enable_symvers = yes ; then
21929 if test $with_gnu_ld = yes &&
21930 test $glibcpp_shared_libgcc = yes ;
21931 then
21932 if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
21933 enable_symvers=gnu
21934 else
21935 ac_test_CFLAGS="${CFLAGS+set}"
21936 ac_save_CFLAGS="$CFLAGS"
21937 CFLAGS='-shared -Wl,--version-script,conftest.map'
21938 enable_symvers=no
21940 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
21942 cat > conftest.$ac_ext <<EOF
21943 #line 21944 "configure"
21944 #include "confdefs.h"
21945 int foo;
21946 int main() {
21948 ; return 0; }
21950 if { (eval echo configure:21951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21951 rm -rf conftest*
21952 enable_symvers=gnu
21953 else
21954 echo "configure: failed program was:" >&5
21955 cat conftest.$ac_ext >&5
21957 rm -f conftest*
21958 if test "$ac_test_CFLAGS" = set; then
21959 CFLAGS="$ac_save_CFLAGS"
21960 else
21961 # this is the suspicious part
21962 CFLAGS=''
21964 rm -f conftest.map
21966 else
21967 # just fail for now
21968 enable_symvers=no
21972 case $enable_symvers in
21974 LINKER_MAP=config/linker-map.dummy
21976 gnu)
21977 LINKER_MAP=config/linker-map.gnu
21979 esac
21984 if test $enable_symvers != no; then
21985 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
21986 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
21987 else
21988 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
21989 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
21991 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
21992 echo "configure:21993: checking versioning on shared library symbols" >&5
21993 echo "$ac_t""$enable_symvers" 1>&6
21996 # Propagate the target-specific source directories through the build chain.
21997 OS_INC_SRCDIR=$os_include_dir/bits
21998 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
21999 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
22004 # Set up cross-compile flags
22008 if test "$CANADIAN" = yes; then
22009 CANADIAN_TRUE=
22010 CANADIAN_FALSE='#'
22011 else
22012 CANADIAN_TRUE='#'
22013 CANADIAN_FALSE=
22016 cat > confcache <<\EOF
22017 # This file is a shell script that caches the results of configure
22018 # tests run on this system so they can be shared between configure
22019 # scripts and configure runs. It is not useful on other systems.
22020 # If it contains results you don't want to keep, you may remove or edit it.
22022 # By default, configure uses ./config.cache as the cache file,
22023 # creating it if it does not exist already. You can give configure
22024 # the --cache-file=FILE option to use a different cache file; that is
22025 # what configure does when it calls configure scripts in
22026 # subdirectories, so they share the cache.
22027 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22028 # config.status only pays attention to the cache file if you give it the
22029 # --recheck option to rerun configure.
22032 # The following way of writing the cache mishandles newlines in values,
22033 # but we know of no workaround that is simple, portable, and efficient.
22034 # So, don't put newlines in cache variables' values.
22035 # Ultrix sh set writes to stderr and can't be redirected directly,
22036 # and sets the high bit in the cache file unless we assign to the vars.
22037 (set) 2>&1 |
22038 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22039 *ac_space=\ *)
22040 # `set' does not quote correctly, so add quotes (double-quote substitution
22041 # turns \\\\ into \\, and sed turns \\ into \).
22042 sed -n \
22043 -e "s/'/'\\\\''/g" \
22044 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22047 # `set' quotes correctly as required by POSIX, so do not add quotes.
22048 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22050 esac >> confcache
22051 if cmp -s $cache_file confcache; then
22053 else
22054 if test -w $cache_file; then
22055 echo "updating cache $cache_file"
22056 cat confcache > $cache_file
22057 else
22058 echo "not updating unwritable cache $cache_file"
22061 rm -f confcache
22064 if test "${multilib}" = "yes"; then
22065 multilib_arg="--enable-multilib"
22066 else
22067 multilib_arg=
22070 # Export all the install information
22072 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
22073 # exported correctly in GLIBCPP_CONFIGURE.
22074 glibcpp_toolexecdir=no
22075 glibcpp_toolexeclibdir=no
22076 glibcpp_prefixdir=${prefix}
22078 # Process the option --with-gxx-include-dir=<path to include-files directory>
22079 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
22080 echo "configure:22081: checking for --with-gxx-include-dir" >&5
22081 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
22082 if test "${with_gxx_include_dir+set}" = set; then
22083 withval="$with_gxx_include_dir"
22084 case "${withval}" in
22085 yes)
22086 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
22087 gxx_include_dir=no
22090 gxx_include_dir=no
22093 gxx_include_dir=${withval}
22095 esac
22096 else
22097 gxx_include_dir=no
22100 echo "$ac_t""$gxx_include_dir" 1>&6
22102 # Process the option "--enable-version-specific-runtime-libs"
22103 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
22104 echo "configure:22105: checking for --enable-version-specific-runtime-libs" >&5
22105 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
22106 if test "${enable_version_specific_runtime_libs+set}" = set; then
22107 enableval="$enable_version_specific_runtime_libs"
22108 case "$enableval" in
22109 yes) version_specific_libs=yes ;;
22110 no) version_specific_libs=no ;;
22111 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
22112 esac
22113 else
22114 version_specific_libs=no
22116 # Option set, now we can test it.
22117 echo "$ac_t""$version_specific_libs" 1>&6
22119 # Default case for install directory for include files.
22120 if test $version_specific_libs = no && test $gxx_include_dir = no; then
22121 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
22124 # Version-specific runtime libs processing.
22125 if test $version_specific_libs = yes; then
22126 # Need the gcc compiler version to know where to install libraries
22127 # and header files if --enable-version-specific-runtime-libs option
22128 # is selected.
22129 if test x"$gxx_include_dir" = x"no"; then
22130 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
22132 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22133 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
22136 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
22137 # Install a library built with a cross compiler in tooldir, not libdir.
22138 if test x"$glibcpp_toolexecdir" = x"no"; then
22139 if test -n "$with_cross_host" &&
22140 test x"$with_cross_host" != x"no"; then
22141 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
22142 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
22143 else
22144 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22145 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
22149 echo $ac_n "checking for install location""... $ac_c" 1>&6
22150 echo "configure:22151: checking for install location" >&5
22151 echo "$ac_t""$gxx_include_dir" 1>&6
22159 # Export all the include and flag information to makefiles.
22161 # Root level of the build directory include sources.
22162 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
22164 # Passed down for canadian crosses.
22165 if test x"$CANADIAN" = xyes; then
22166 TOPLEVEL_INCLUDES='-I$(includedir)'
22169 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
22171 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
22173 if test x"$need_libio" = xyes; then
22174 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
22178 # Now, export this to all the little Makefiles....
22185 # Optimization flags that are probably a good idea for thrill-seekers. Just
22186 # uncomment the lines below and make, everything else is ready to go...
22187 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
22188 OPTIMIZE_CXXFLAGS=
22191 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
22195 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
22196 grep "enable shared" > /dev/null; then
22197 LIBSUPCXX_PICFLAGS=-prefer-pic
22198 else
22199 LIBSUPCXX_PICFLAGS=
22203 # Generate the various Makefiles, include files, and scripts.
22204 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
22205 # and libsupc++/Makefile.am so that multilib installs will end up
22206 # installed in the correct place. To work around this not being passed
22207 # down from config-ml.in -> top_srcdir/Makefile.am ->
22208 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
22209 trap '' 1 2 15
22210 cat > confcache <<\EOF
22211 # This file is a shell script that caches the results of configure
22212 # tests run on this system so they can be shared between configure
22213 # scripts and configure runs. It is not useful on other systems.
22214 # If it contains results you don't want to keep, you may remove or edit it.
22216 # By default, configure uses ./config.cache as the cache file,
22217 # creating it if it does not exist already. You can give configure
22218 # the --cache-file=FILE option to use a different cache file; that is
22219 # what configure does when it calls configure scripts in
22220 # subdirectories, so they share the cache.
22221 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22222 # config.status only pays attention to the cache file if you give it the
22223 # --recheck option to rerun configure.
22226 # The following way of writing the cache mishandles newlines in values,
22227 # but we know of no workaround that is simple, portable, and efficient.
22228 # So, don't put newlines in cache variables' values.
22229 # Ultrix sh set writes to stderr and can't be redirected directly,
22230 # and sets the high bit in the cache file unless we assign to the vars.
22231 (set) 2>&1 |
22232 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22233 *ac_space=\ *)
22234 # `set' does not quote correctly, so add quotes (double-quote substitution
22235 # turns \\\\ into \\, and sed turns \\ into \).
22236 sed -n \
22237 -e "s/'/'\\\\''/g" \
22238 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22241 # `set' quotes correctly as required by POSIX, so do not add quotes.
22242 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22244 esac >> confcache
22245 if cmp -s $cache_file confcache; then
22247 else
22248 if test -w $cache_file; then
22249 echo "updating cache $cache_file"
22250 cat confcache > $cache_file
22251 else
22252 echo "not updating unwritable cache $cache_file"
22255 rm -f confcache
22257 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22259 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22260 # Let make expand exec_prefix.
22261 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22263 # Any assignment to VPATH causes Sun make to only execute
22264 # the first set of double-colon rules, so remove it if not needed.
22265 # If there is a colon in the path, we need to keep it.
22266 if test "x$srcdir" = x.; then
22267 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22270 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22272 DEFS=-DHAVE_CONFIG_H
22274 # Without the "./", some shells look in PATH for config.status.
22275 : ${CONFIG_STATUS=./config.status}
22277 echo creating $CONFIG_STATUS
22278 rm -f $CONFIG_STATUS
22279 cat > $CONFIG_STATUS <<EOF
22280 #! /bin/sh
22281 # Generated automatically by configure.
22282 # Run this file to recreate the current configuration.
22283 # This directory was configured as follows,
22284 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22286 # $0 $ac_configure_args
22288 # Compiler output produced by configure, useful for debugging
22289 # configure, is in ./config.log if it exists.
22291 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22292 for ac_option
22294 case "\$ac_option" in
22295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22296 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22297 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22298 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22299 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22300 exit 0 ;;
22301 -help | --help | --hel | --he | --h)
22302 echo "\$ac_cs_usage"; exit 0 ;;
22303 *) echo "\$ac_cs_usage"; exit 1 ;;
22304 esac
22305 done
22307 ac_given_srcdir=$srcdir
22308 ac_given_INSTALL="$INSTALL"
22310 trap 'rm -fr `echo "Makefile \
22311 include/Makefile src/Makefile \
22312 libmath/Makefile libio/Makefile libsupc++/Makefile \
22313 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22315 cat >> $CONFIG_STATUS <<EOF
22317 # Protect against being on the right side of a sed subst in config.status.
22318 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22319 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22320 $ac_vpsub
22321 $extrasub
22322 s%@SHELL@%$SHELL%g
22323 s%@CFLAGS@%$CFLAGS%g
22324 s%@CPPFLAGS@%$CPPFLAGS%g
22325 s%@CXXFLAGS@%$CXXFLAGS%g
22326 s%@FFLAGS@%$FFLAGS%g
22327 s%@DEFS@%$DEFS%g
22328 s%@LDFLAGS@%$LDFLAGS%g
22329 s%@LIBS@%$LIBS%g
22330 s%@exec_prefix@%$exec_prefix%g
22331 s%@prefix@%$prefix%g
22332 s%@program_transform_name@%$program_transform_name%g
22333 s%@bindir@%$bindir%g
22334 s%@sbindir@%$sbindir%g
22335 s%@libexecdir@%$libexecdir%g
22336 s%@datadir@%$datadir%g
22337 s%@sysconfdir@%$sysconfdir%g
22338 s%@sharedstatedir@%$sharedstatedir%g
22339 s%@localstatedir@%$localstatedir%g
22340 s%@libdir@%$libdir%g
22341 s%@includedir@%$includedir%g
22342 s%@oldincludedir@%$oldincludedir%g
22343 s%@infodir@%$infodir%g
22344 s%@mandir@%$mandir%g
22345 s%@PACKAGE@%$PACKAGE%g
22346 s%@libtool_VERSION@%$libtool_VERSION%g
22347 s%@toplevel_srcdir@%$toplevel_srcdir%g
22348 s%@host@%$host%g
22349 s%@host_alias@%$host_alias%g
22350 s%@host_cpu@%$host_cpu%g
22351 s%@host_vendor@%$host_vendor%g
22352 s%@host_os@%$host_os%g
22353 s%@target@%$target%g
22354 s%@target_alias@%$target_alias%g
22355 s%@target_cpu@%$target_cpu%g
22356 s%@target_vendor@%$target_vendor%g
22357 s%@target_os@%$target_os%g
22358 s%@build@%$build%g
22359 s%@build_alias@%$build_alias%g
22360 s%@build_cpu@%$build_cpu%g
22361 s%@build_vendor@%$build_vendor%g
22362 s%@build_os@%$build_os%g
22363 s%@glibcpp_builddir@%$glibcpp_builddir%g
22364 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
22365 s%@AWK@%$AWK%g
22366 s%@LN_S@%$LN_S%g
22367 s%@glibcpp_basedir@%$glibcpp_basedir%g
22368 s%@CC@%$CC%g
22369 s%@glibcpp_CXX@%$glibcpp_CXX%g
22370 s%@AS@%$AS%g
22371 s%@AR@%$AR%g
22372 s%@RANLIB@%$RANLIB%g
22373 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22374 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22375 s%@INSTALL_DATA@%$INSTALL_DATA%g
22376 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
22377 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
22378 s%@MAINT@%$MAINT%g
22379 s%@EXEEXT@%$EXEEXT%g
22380 s%@VERSION@%$VERSION%g
22381 s%@ACLOCAL@%$ACLOCAL%g
22382 s%@AUTOCONF@%$AUTOCONF%g
22383 s%@AUTOMAKE@%$AUTOMAKE%g
22384 s%@AUTOHEADER@%$AUTOHEADER%g
22385 s%@MAKEINFO@%$MAKEINFO%g
22386 s%@SET_MAKE@%$SET_MAKE%g
22387 s%@OBJEXT@%$OBJEXT%g
22388 s%@STRIP@%$STRIP%g
22389 s%@LIBTOOL@%$LIBTOOL%g
22390 s%@CXXCPP@%$CXXCPP%g
22391 s%@enable_shared@%$enable_shared%g
22392 s%@enable_static@%$enable_static%g
22393 s%@ifGNUmake@%$ifGNUmake%g
22394 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
22395 s%@CPP@%$CPP%g
22396 s%@CSTDIO_H@%$CSTDIO_H%g
22397 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
22398 s%@CCODECVT_C@%$CCODECVT_C%g
22399 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
22400 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
22401 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
22402 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
22403 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
22404 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
22405 s%@libio_la@%$libio_la%g
22406 s%@check_msgfmt@%$check_msgfmt%g
22407 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
22408 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
22409 s%@glibcpp_localedir@%$glibcpp_localedir%g
22410 s%@USE_NLS@%$USE_NLS%g
22411 s%@CLOCALE_H@%$CLOCALE_H%g
22412 s%@CCODECVT_H@%$CCODECVT_H%g
22413 s%@CMESSAGES_H@%$CMESSAGES_H%g
22414 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
22415 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
22416 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
22417 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
22418 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
22419 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
22420 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
22421 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
22422 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
22423 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
22424 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
22425 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
22426 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
22427 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
22428 s%@WERROR@%$WERROR%g
22429 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
22430 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
22431 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
22432 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
22433 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
22434 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
22435 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
22436 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
22437 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
22438 s%@gxx_include_dir@%$gxx_include_dir%g
22439 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
22440 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
22441 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
22442 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
22443 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
22444 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
22445 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
22446 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
22447 s%@WARN_FLAGS@%$WARN_FLAGS%g
22448 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
22450 CEOF
22453 cat >> $CONFIG_STATUS <<\EOF
22455 # Split the substitutions into bite-sized pieces for seds with
22456 # small command number limits, like on Digital OSF/1 and HP-UX.
22457 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22458 ac_file=1 # Number of current file.
22459 ac_beg=1 # First line for current file.
22460 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22461 ac_more_lines=:
22462 ac_sed_cmds=""
22463 while $ac_more_lines; do
22464 if test $ac_beg -gt 1; then
22465 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22466 else
22467 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22469 if test ! -s conftest.s$ac_file; then
22470 ac_more_lines=false
22471 rm -f conftest.s$ac_file
22472 else
22473 if test -z "$ac_sed_cmds"; then
22474 ac_sed_cmds="sed -f conftest.s$ac_file"
22475 else
22476 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22478 ac_file=`expr $ac_file + 1`
22479 ac_beg=$ac_end
22480 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22482 done
22483 if test -z "$ac_sed_cmds"; then
22484 ac_sed_cmds=cat
22488 cat >> $CONFIG_STATUS <<EOF
22490 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
22491 include/Makefile src/Makefile \
22492 libmath/Makefile libio/Makefile libsupc++/Makefile \
22493 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
22495 cat >> $CONFIG_STATUS <<\EOF
22496 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22497 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22498 case "$ac_file" in
22499 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22500 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22501 *) ac_file_in="${ac_file}.in" ;;
22502 esac
22504 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22506 # Remove last slash and all that follows it. Not all systems have dirname.
22507 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22508 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22509 # The file is in a subdirectory.
22510 test ! -d "$ac_dir" && mkdir "$ac_dir"
22511 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22512 # A "../" for each directory in $ac_dir_suffix.
22513 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22514 else
22515 ac_dir_suffix= ac_dots=
22518 case "$ac_given_srcdir" in
22519 .) srcdir=.
22520 if test -z "$ac_dots"; then top_srcdir=.
22521 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22522 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22523 *) # Relative path.
22524 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22525 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22526 esac
22528 case "$ac_given_INSTALL" in
22529 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22530 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22531 esac
22533 echo creating "$ac_file"
22534 rm -f "$ac_file"
22535 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22536 case "$ac_file" in
22537 *Makefile*) ac_comsub="1i\\
22538 # $configure_input" ;;
22539 *) ac_comsub= ;;
22540 esac
22542 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22543 sed -e "$ac_comsub
22544 s%@configure_input@%$configure_input%g
22545 s%@srcdir@%$srcdir%g
22546 s%@top_srcdir@%$top_srcdir%g
22547 s%@INSTALL@%$INSTALL%g
22548 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22549 fi; done
22550 rm -f conftest.s*
22552 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22553 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22555 # ac_d sets the value in "#define NAME VALUE" lines.
22556 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22557 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22558 ac_dC='\3'
22559 ac_dD='%g'
22560 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22561 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22562 ac_uB='\([ ]\)%\1#\2define\3'
22563 ac_uC=' '
22564 ac_uD='\4%g'
22565 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22566 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22567 ac_eB='$%\1#\2define\3'
22568 ac_eC=' '
22569 ac_eD='%g'
22571 if test "${CONFIG_HEADERS+set}" != set; then
22573 cat >> $CONFIG_STATUS <<EOF
22574 CONFIG_HEADERS="config.h"
22576 cat >> $CONFIG_STATUS <<\EOF
22578 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22579 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22580 case "$ac_file" in
22581 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22582 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22583 *) ac_file_in="${ac_file}.in" ;;
22584 esac
22586 echo creating $ac_file
22588 rm -f conftest.frag conftest.in conftest.out
22589 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22590 cat $ac_file_inputs > conftest.in
22594 # Transform confdefs.h into a sed script conftest.vals that substitutes
22595 # the proper values into config.h.in to produce config.h. And first:
22596 # Protect against being on the right side of a sed subst in config.status.
22597 # Protect against being in an unquoted here document in config.status.
22598 rm -f conftest.vals
22599 cat > conftest.hdr <<\EOF
22600 s/[\\&%]/\\&/g
22601 s%[\\$`]%\\&%g
22602 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22603 s%ac_d%ac_u%gp
22604 s%ac_u%ac_e%gp
22606 sed -n -f conftest.hdr confdefs.h > conftest.vals
22607 rm -f conftest.hdr
22609 # This sed command replaces #undef with comments. This is necessary, for
22610 # example, in the case of _POSIX_SOURCE, which is predefined and required
22611 # on some systems where configure will not decide to define it.
22612 cat >> conftest.vals <<\EOF
22613 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22616 # Break up conftest.vals because some shells have a limit on
22617 # the size of here documents, and old seds have small limits too.
22619 rm -f conftest.tail
22620 while :
22622 ac_lines=`grep -c . conftest.vals`
22623 # grep -c gives empty output for an empty file on some AIX systems.
22624 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22625 # Write a limited-size here document to conftest.frag.
22626 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22627 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22628 echo 'CEOF
22629 sed -f conftest.frag conftest.in > conftest.out
22630 rm -f conftest.in
22631 mv conftest.out conftest.in
22632 ' >> $CONFIG_STATUS
22633 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22634 rm -f conftest.vals
22635 mv conftest.tail conftest.vals
22636 done
22637 rm -f conftest.vals
22639 cat >> $CONFIG_STATUS <<\EOF
22640 rm -f conftest.frag conftest.h
22641 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22642 cat conftest.in >> conftest.h
22643 rm -f conftest.in
22644 if cmp -s $ac_file conftest.h 2>/dev/null; then
22645 echo "$ac_file is unchanged"
22646 rm -f conftest.h
22647 else
22648 # Remove last slash and all that follows it. Not all systems have dirname.
22649 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22650 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22651 # The file is in a subdirectory.
22652 test ! -d "$ac_dir" && mkdir "$ac_dir"
22654 rm -f $ac_file
22655 mv conftest.h $ac_file
22657 fi; done
22661 cat >> $CONFIG_STATUS <<EOF
22662 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
22663 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"
22666 cat >> $CONFIG_STATUS <<\EOF
22667 srcdir=$ac_given_srcdir
22668 while test -n "$ac_sources"; do
22669 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22670 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22672 echo "linking $srcdir/$ac_source to $ac_dest"
22674 if test ! -r $srcdir/$ac_source; then
22675 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
22677 rm -f $ac_dest
22679 # Make relative symlinks.
22680 # Remove last slash and all that follows it. Not all systems have dirname.
22681 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
22682 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
22683 # The dest file is in a subdirectory.
22684 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
22685 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
22686 # A "../" for each directory in $ac_dest_dir_suffix.
22687 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
22688 else
22689 ac_dest_dir_suffix= ac_dots=
22692 case "$srcdir" in
22693 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
22694 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
22695 esac
22697 # Make a symlink if possible; otherwise try a hard link.
22698 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22699 ln $srcdir/$ac_source $ac_dest; then :
22700 else
22701 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
22703 done
22705 cat >> $CONFIG_STATUS <<EOF
22707 srcdir=${srcdir}
22708 host=${host}
22709 target=${target}
22710 with_multisubdir=${with_multisubdir}
22711 ac_configure_args="${multilib_arg} ${ac_configure_args}"
22712 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22713 glibcpp_basedir=${glibcpp_basedir}
22714 CC="${CC}"
22715 CXX="${CXX}"
22718 cat >> $CONFIG_STATUS <<\EOF
22719 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
22720 if test -n "$CONFIG_FILES"; then
22721 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
22722 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
22723 grep '^MULTISUBDIR =' Makefile >> src/Makefile
22724 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
22726 chmod +x mkcheck
22727 chmod +x testsuite_flags
22729 exit 0
22731 chmod +x $CONFIG_STATUS
22732 rm -fr confdefs* $ac_clean_files
22733 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22737 # Sanity checking & User-visible messages.
22738 # Checks down here, otherwise they get scrolled off before
22739 # the user will notice.
22741 # Trying to get more people to read documentation. Possibly remove
22742 # check and warn all the time. There is no "informational" AC_MSG_
22743 # macro, so these are going to be printed even when --quiet/--silent
22744 # is given.
22745 if test ! -f stamp-sanity-warned; then
22746 touch stamp-sanity-warned
22747 echo ""
22748 echo "Please make certain that you read the installation information here:"
22749 echo " faster => ${srcdir}/docs/html/install.html"
22750 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
22751 echo ""
22752 echo "and the configuration information here:"
22753 echo " faster => ${srcdir}/docs/html/configopts.html"
22754 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
22755 echo ""
22756 echo "before proceeding with ${_cv_gnu_make_command}."
22757 echo ""