Daily bump.
[official-gcc.git] / libstdc++-v3 / configure
blobc58ee8f2a0217feeb6c169aabadb70b1ff40ea7d
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-c-mbchar enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
50 ac_help="$ac_help
51 --enable-long-long turns on 'long long' [default=yes]"
52 ac_help="$ac_help
53 --enable-cheaders construct "C" header files for g++ [default=c_std]"
54 ac_help="$ac_help
55 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
56 [default=none]"
57 ac_help="$ac_help
58 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
59 ac_help="$ac_help
60 --enable-concept-checks use Boost-derived template checks [default=no]"
61 ac_help="$ac_help
62 --enable-symvers=style enables symbol versioning of the shared library [default=no]"
63 ac_help="$ac_help
64 --with-gxx-include-dir the installation directory for include files"
65 ac_help="$ac_help
66 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
68 # Initialize some variables set by options.
69 # The variables have the same names as the options, with
70 # dashes changed to underlines.
71 build=NONE
72 cache_file=./config.cache
73 exec_prefix=NONE
74 host=NONE
75 no_create=
76 nonopt=NONE
77 no_recursion=
78 prefix=NONE
79 program_prefix=NONE
80 program_suffix=NONE
81 program_transform_name=s,x,x,
82 silent=
83 site=
84 sitefile=
85 srcdir=
86 target=NONE
87 verbose=
88 x_includes=NONE
89 x_libraries=NONE
90 bindir='${exec_prefix}/bin'
91 sbindir='${exec_prefix}/sbin'
92 libexecdir='${exec_prefix}/libexec'
93 datadir='${prefix}/share'
94 sysconfdir='${prefix}/etc'
95 sharedstatedir='${prefix}/com'
96 localstatedir='${prefix}/var'
97 libdir='${exec_prefix}/lib'
98 includedir='${prefix}/include'
99 oldincludedir='/usr/include'
100 infodir='${prefix}/info'
101 mandir='${prefix}/man'
103 # Initialize some other variables.
104 subdirs=
105 MFLAGS= MAKEFLAGS=
106 SHELL=${CONFIG_SHELL-/bin/sh}
107 # Maximum number of lines to put in a shell here document.
108 ac_max_here_lines=12
110 ac_prev=
111 for ac_option
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
117 ac_prev=
118 continue
121 case "$ac_option" in
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 *) ac_optarg= ;;
124 esac
126 # Accept the important Cygnus configure options, so we can diagnose typos.
128 case "$ac_option" in
130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
131 ac_prev=bindir ;;
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133 bindir="$ac_optarg" ;;
135 -build | --build | --buil | --bui | --bu)
136 ac_prev=build ;;
137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
138 build="$ac_optarg" ;;
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145 cache_file="$ac_optarg" ;;
147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
148 ac_prev=datadir ;;
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
150 | --da=*)
151 datadir="$ac_optarg" ;;
153 -disable-* | --disable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
162 -enable-* | --enable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 case "$ac_option" in
170 *=*) ;;
171 *) ac_optarg=yes ;;
172 esac
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
182 exec_prefix="$ac_optarg" ;;
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
186 with_gas=yes ;;
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
191 cat << EOF
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
194 Configuration:
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --site-file=FILE use FILE as the site file
200 --version print the version of autoconf that created configure
201 Directory and file names:
202 --prefix=PREFIX install architecture-independent files in PREFIX
203 [$ac_default_prefix]
204 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
205 [same as prefix]
206 --bindir=DIR user executables in DIR [EPREFIX/bin]
207 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
208 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
209 --datadir=DIR read-only architecture-independent data in DIR
210 [PREFIX/share]
211 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
212 --sharedstatedir=DIR modifiable architecture-independent data in DIR
213 [PREFIX/com]
214 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
215 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
216 --includedir=DIR C header files in DIR [PREFIX/include]
217 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
218 --infodir=DIR info documentation in DIR [PREFIX/info]
219 --mandir=DIR man documentation in DIR [PREFIX/man]
220 --srcdir=DIR find the sources in DIR [configure dir or ..]
221 --program-prefix=PREFIX prepend PREFIX to installed program names
222 --program-suffix=SUFFIX append SUFFIX to installed program names
223 --program-transform-name=PROGRAM
224 run sed PROGRAM on installed program names
226 cat << EOF
227 Host type:
228 --build=BUILD configure for building on BUILD [BUILD=HOST]
229 --host=HOST configure for HOST [guessed]
230 --target=TARGET configure for TARGET [TARGET=HOST]
231 Features and packages:
232 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
233 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
234 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
235 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
236 --x-includes=DIR X include files are in DIR
237 --x-libraries=DIR X library files are in DIR
239 if test -n "$ac_help"; then
240 echo "--enable and --with options recognized:$ac_help"
242 exit 0 ;;
244 -host | --host | --hos | --ho)
245 ac_prev=host ;;
246 -host=* | --host=* | --hos=* | --ho=*)
247 host="$ac_optarg" ;;
249 -includedir | --includedir | --includedi | --included | --include \
250 | --includ | --inclu | --incl | --inc)
251 ac_prev=includedir ;;
252 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
253 | --includ=* | --inclu=* | --incl=* | --inc=*)
254 includedir="$ac_optarg" ;;
256 -infodir | --infodir | --infodi | --infod | --info | --inf)
257 ac_prev=infodir ;;
258 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
259 infodir="$ac_optarg" ;;
261 -libdir | --libdir | --libdi | --libd)
262 ac_prev=libdir ;;
263 -libdir=* | --libdir=* | --libdi=* | --libd=*)
264 libdir="$ac_optarg" ;;
266 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
267 | --libexe | --libex | --libe)
268 ac_prev=libexecdir ;;
269 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
270 | --libexe=* | --libex=* | --libe=*)
271 libexecdir="$ac_optarg" ;;
273 -localstatedir | --localstatedir | --localstatedi | --localstated \
274 | --localstate | --localstat | --localsta | --localst \
275 | --locals | --local | --loca | --loc | --lo)
276 ac_prev=localstatedir ;;
277 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
278 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
279 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
280 localstatedir="$ac_optarg" ;;
282 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
283 ac_prev=mandir ;;
284 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
285 mandir="$ac_optarg" ;;
287 -nfp | --nfp | --nf)
288 # Obsolete; use --without-fp.
289 with_fp=no ;;
291 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
292 | --no-cr | --no-c)
293 no_create=yes ;;
295 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
296 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
297 no_recursion=yes ;;
299 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
300 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
301 | --oldin | --oldi | --old | --ol | --o)
302 ac_prev=oldincludedir ;;
303 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
304 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
305 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
306 oldincludedir="$ac_optarg" ;;
308 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
309 ac_prev=prefix ;;
310 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
311 prefix="$ac_optarg" ;;
313 -program-prefix | --program-prefix | --program-prefi | --program-pref \
314 | --program-pre | --program-pr | --program-p)
315 ac_prev=program_prefix ;;
316 -program-prefix=* | --program-prefix=* | --program-prefi=* \
317 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
318 program_prefix="$ac_optarg" ;;
320 -program-suffix | --program-suffix | --program-suffi | --program-suff \
321 | --program-suf | --program-su | --program-s)
322 ac_prev=program_suffix ;;
323 -program-suffix=* | --program-suffix=* | --program-suffi=* \
324 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
325 program_suffix="$ac_optarg" ;;
327 -program-transform-name | --program-transform-name \
328 | --program-transform-nam | --program-transform-na \
329 | --program-transform-n | --program-transform- \
330 | --program-transform | --program-transfor \
331 | --program-transfo | --program-transf \
332 | --program-trans | --program-tran \
333 | --progr-tra | --program-tr | --program-t)
334 ac_prev=program_transform_name ;;
335 -program-transform-name=* | --program-transform-name=* \
336 | --program-transform-nam=* | --program-transform-na=* \
337 | --program-transform-n=* | --program-transform-=* \
338 | --program-transform=* | --program-transfor=* \
339 | --program-transfo=* | --program-transf=* \
340 | --program-trans=* | --program-tran=* \
341 | --progr-tra=* | --program-tr=* | --program-t=*)
342 program_transform_name="$ac_optarg" ;;
344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
345 | -silent | --silent | --silen | --sile | --sil)
346 silent=yes ;;
348 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
349 ac_prev=sbindir ;;
350 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
351 | --sbi=* | --sb=*)
352 sbindir="$ac_optarg" ;;
354 -sharedstatedir | --sharedstatedir | --sharedstatedi \
355 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
356 | --sharedst | --shareds | --shared | --share | --shar \
357 | --sha | --sh)
358 ac_prev=sharedstatedir ;;
359 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
360 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
361 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
362 | --sha=* | --sh=*)
363 sharedstatedir="$ac_optarg" ;;
365 -site | --site | --sit)
366 ac_prev=site ;;
367 -site=* | --site=* | --sit=*)
368 site="$ac_optarg" ;;
370 -site-file | --site-file | --site-fil | --site-fi | --site-f)
371 ac_prev=sitefile ;;
372 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
373 sitefile="$ac_optarg" ;;
375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
376 ac_prev=srcdir ;;
377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378 srcdir="$ac_optarg" ;;
380 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
381 | --syscon | --sysco | --sysc | --sys | --sy)
382 ac_prev=sysconfdir ;;
383 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
384 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
385 sysconfdir="$ac_optarg" ;;
387 -target | --target | --targe | --targ | --tar | --ta | --t)
388 ac_prev=target ;;
389 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
390 target="$ac_optarg" ;;
392 -v | -verbose | --verbose | --verbos | --verbo | --verb)
393 verbose=yes ;;
395 -version | --version | --versio | --versi | --vers)
396 echo "configure generated by autoconf version 2.13"
397 exit 0 ;;
399 -with-* | --with-*)
400 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package=`echo $ac_package| sed 's/-/_/g'`
406 case "$ac_option" in
407 *=*) ;;
408 *) ac_optarg=yes ;;
409 esac
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* | --without-*)
413 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
421 --x)
422 # Obsolete; use --with-x.
423 with_x=yes ;;
425 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
426 | --x-incl | --x-inc | --x-in | --x-i)
427 ac_prev=x_includes ;;
428 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
429 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
430 x_includes="$ac_optarg" ;;
432 -x-libraries | --x-libraries | --x-librarie | --x-librari \
433 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
434 ac_prev=x_libraries ;;
435 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
436 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
437 x_libraries="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 nonopt="$ac_option"
452 esac
453 done
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
462 # 0 standard input
463 # 1 file creation
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
470 exec 6>/dev/null
471 else
472 exec 6>&1
474 exec 5>./config.log
476 echo "\
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
479 " 1>&5
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
483 ac_configure_args=
484 for ac_arg
486 case "$ac_arg" in
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c) ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
494 esac
495 done
497 # NLS nuisances.
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 echo > confdefs.h
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file=src/ios.cc
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted=yes
519 # Try the directory containing this script, then its parent.
520 ac_prog=$0
521 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
523 srcdir=$ac_confdir
524 if test ! -r $srcdir/$ac_unique_file; then
525 srcdir=..
527 else
528 ac_srcdir_defaulted=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
533 else
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$sitefile"; then
541 if test -z "$CONFIG_SITE"; then
542 if test "x$prefix" != xNONE; then
543 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
544 else
545 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
548 else
549 CONFIG_SITE="$sitefile"
551 for ac_site_file in $CONFIG_SITE; do
552 if test -r "$ac_site_file"; then
553 echo "loading site script $ac_site_file"
554 . "$ac_site_file"
556 done
558 if test -r "$cache_file"; then
559 echo "loading cache $cache_file"
560 . $cache_file
561 else
562 echo "creating cache $cache_file"
563 > $cache_file
566 ac_ext=c
567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
568 ac_cpp='$CPP $CPPFLAGS'
569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
571 cross_compiling=$ac_cv_prog_cc_cross
573 ac_exeext=
574 ac_objext=o
575 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
576 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
577 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
578 ac_n= ac_c='
579 ' ac_t=' '
580 else
581 ac_n=-n ac_c= ac_t=
583 else
584 ac_n= ac_c='\c' ac_t=
589 PACKAGE=libstdc++
591 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
592 release_VERSION=3.1.0
594 # For libtool versioning info, format is CURRENT:REVISION:AGE
595 libtool_VERSION=4:0:0
598 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
599 # AC 2.50 sets target_alias iff the user specified --target, but we use it
600 # everywhere, so we set it here just to be sure.
601 ac_aux_dir=
602 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
603 if test -f $ac_dir/install-sh; then
604 ac_aux_dir=$ac_dir
605 ac_install_sh="$ac_aux_dir/install-sh -c"
606 break
607 elif test -f $ac_dir/install.sh; then
608 ac_aux_dir=$ac_dir
609 ac_install_sh="$ac_aux_dir/install.sh -c"
610 break
612 done
613 if test -z "$ac_aux_dir"; then
614 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
616 ac_config_guess=$ac_aux_dir/config.guess
617 ac_config_sub=$ac_aux_dir/config.sub
618 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
621 # Do some error checking and defaulting for the host and target type.
622 # The inputs are:
623 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
625 # The rules are:
626 # 1. You are not allowed to specify --host, --target, and nonopt at the
627 # same time.
628 # 2. Host defaults to nonopt.
629 # 3. If nonopt is not specified, then host defaults to the current host,
630 # as determined by config.guess.
631 # 4. Target and build default to nonopt.
632 # 5. If nonopt is not specified, then target and build default to host.
634 # The aliases save the names the user supplied, while $host etc.
635 # will get canonicalized.
636 case $host---$target---$nonopt in
637 NONE---*---* | *---NONE---* | *---*---NONE) ;;
638 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
639 esac
642 # Make sure we can run config.sub.
643 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
644 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
647 echo $ac_n "checking host system type""... $ac_c" 1>&6
648 echo "configure:649: checking host system type" >&5
650 host_alias=$host
651 case "$host_alias" in
652 NONE)
653 case $nonopt in
654 NONE)
655 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
656 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
657 fi ;;
658 *) host_alias=$nonopt ;;
659 esac ;;
660 esac
662 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
663 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
664 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
665 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
666 echo "$ac_t""$host" 1>&6
668 echo $ac_n "checking target system type""... $ac_c" 1>&6
669 echo "configure:670: checking target system type" >&5
671 target_alias=$target
672 case "$target_alias" in
673 NONE)
674 case $nonopt in
675 NONE) target_alias=$host_alias ;;
676 *) target_alias=$nonopt ;;
677 esac ;;
678 esac
680 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
681 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
682 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
683 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
684 echo "$ac_t""$target" 1>&6
686 echo $ac_n "checking build system type""... $ac_c" 1>&6
687 echo "configure:688: checking build system type" >&5
689 build_alias=$build
690 case "$build_alias" in
691 NONE)
692 case $nonopt in
693 NONE) build_alias=$host_alias ;;
694 *) build_alias=$nonopt ;;
695 esac ;;
696 esac
698 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
699 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
700 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
701 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
702 echo "$ac_t""$build" 1>&6
704 test "$host_alias" != "$target_alias" &&
705 test "$program_prefix$program_suffix$program_transform_name" = \
706 NONENONEs,x,x, &&
707 program_prefix=${target_alias}-
709 target_alias=${target_alias-$target}
712 # Find a good install program. We prefer a C program (faster),
713 # so one script is as good as another. But avoid the broken or
714 # incompatible versions:
715 # SysV /etc/install, /usr/sbin/install
716 # SunOS /usr/etc/install
717 # IRIX /sbin/install
718 # AIX /bin/install
719 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
720 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
721 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
722 # ./install, which can be erroneously created by make from ./install.sh.
723 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
724 echo "configure:725: checking for a BSD compatible install" >&5
725 if test -z "$INSTALL"; then
726 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
727 echo $ac_n "(cached) $ac_c" 1>&6
728 else
729 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
730 for ac_dir in $PATH; do
731 # Account for people who put trailing slashes in PATH elements.
732 case "$ac_dir/" in
733 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
735 # OSF1 and SCO ODT 3.0 have their own names for install.
736 # Don't use installbsd from OSF since it installs stuff as root
737 # by default.
738 for ac_prog in ginstall scoinst install; do
739 if test -f $ac_dir/$ac_prog; then
740 if test $ac_prog = install &&
741 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
742 # AIX install. It has an incompatible calling convention.
744 else
745 ac_cv_path_install="$ac_dir/$ac_prog -c"
746 break 2
749 done
751 esac
752 done
753 IFS="$ac_save_IFS"
756 if test "${ac_cv_path_install+set}" = set; then
757 INSTALL="$ac_cv_path_install"
758 else
759 # As a last resort, use the slow shell script. We don't cache a
760 # path for INSTALL within a source directory, because that will
761 # break other packages using the cache if that directory is
762 # removed, or if the path is relative.
763 INSTALL="$ac_install_sh"
766 echo "$ac_t""$INSTALL" 1>&6
768 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
769 # It thinks the first close brace ends the variable substitution.
770 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
772 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
774 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
776 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
777 echo "configure:778: checking whether build environment is sane" >&5
778 # Just in case
779 sleep 1
780 echo timestamp > conftestfile
781 # Do `set' in a subshell so we don't clobber the current shell's
782 # arguments. Must try -L first in case configure is actually a
783 # symlink; some systems play weird games with the mod time of symlinks
784 # (eg FreeBSD returns the mod time of the symlink's containing
785 # directory).
786 if (
787 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
788 if test "$*" = "X"; then
789 # -L didn't work.
790 set X `ls -t $srcdir/configure conftestfile`
792 if test "$*" != "X $srcdir/configure conftestfile" \
793 && test "$*" != "X conftestfile $srcdir/configure"; then
795 # If neither matched, then we have a broken ls. This can happen
796 # if, for instance, CONFIG_SHELL is bash and it inherits a
797 # broken ls alias from the environment. This has actually
798 # happened. Such a system could not be considered "sane".
799 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
800 alias in your environment" 1>&2; exit 1; }
803 test "$2" = conftestfile
805 then
806 # Ok.
808 else
809 { echo "configure: error: newly created file is older than distributed files!
810 Check your system clock" 1>&2; exit 1; }
812 rm -f conftest*
813 echo "$ac_t""yes" 1>&6
814 if test "$program_transform_name" = s,x,x,; then
815 program_transform_name=
816 else
817 # Double any \ or $. echo might interpret backslashes.
818 cat <<\EOF_SED > conftestsed
819 s,\\,\\\\,g; s,\$,$$,g
820 EOF_SED
821 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
822 rm -f conftestsed
824 test "$program_prefix" != NONE &&
825 program_transform_name="s,^,${program_prefix},; $program_transform_name"
826 # Use a double $ so make ignores it.
827 test "$program_suffix" != NONE &&
828 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
830 # sed with no file args requires a program.
831 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
833 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
834 echo "configure:835: checking whether ${MAKE-make} sets \${MAKE}" >&5
835 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
836 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
838 else
839 cat > conftestmake <<\EOF
840 all:
841 @echo 'ac_maketemp="${MAKE}"'
843 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
844 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
845 if test -n "$ac_maketemp"; then
846 eval ac_cv_prog_make_${ac_make}_set=yes
847 else
848 eval ac_cv_prog_make_${ac_make}_set=no
850 rm -f conftestmake
852 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
853 echo "$ac_t""yes" 1>&6
854 SET_MAKE=
855 else
856 echo "$ac_t""no" 1>&6
857 SET_MAKE="MAKE=${MAKE-make}"
861 PACKAGE=$PACKAGE
863 VERSION=$release_VERSION
865 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
866 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
868 cat >> confdefs.h <<EOF
869 #define PACKAGE "$PACKAGE"
872 cat >> confdefs.h <<EOF
873 #define VERSION "$VERSION"
878 missing_dir=`cd $ac_aux_dir && pwd`
879 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
880 echo "configure:881: checking for working aclocal" >&5
881 # Run test in a subshell; some versions of sh will print an error if
882 # an executable is not found, even if stderr is redirected.
883 # Redirect stdin to placate older versions of autoconf. Sigh.
884 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
885 ACLOCAL=aclocal
886 echo "$ac_t""found" 1>&6
887 else
888 ACLOCAL="$missing_dir/missing aclocal"
889 echo "$ac_t""missing" 1>&6
892 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
893 echo "configure:894: checking for working autoconf" >&5
894 # Run test in a subshell; some versions of sh will print an error if
895 # an executable is not found, even if stderr is redirected.
896 # Redirect stdin to placate older versions of autoconf. Sigh.
897 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
898 AUTOCONF=autoconf
899 echo "$ac_t""found" 1>&6
900 else
901 AUTOCONF="$missing_dir/missing autoconf"
902 echo "$ac_t""missing" 1>&6
905 echo $ac_n "checking for working automake""... $ac_c" 1>&6
906 echo "configure:907: checking for working automake" >&5
907 # Run test in a subshell; some versions of sh will print an error if
908 # an executable is not found, even if stderr is redirected.
909 # Redirect stdin to placate older versions of autoconf. Sigh.
910 if (automake --version) < /dev/null > /dev/null 2>&1; then
911 AUTOMAKE=automake
912 echo "$ac_t""found" 1>&6
913 else
914 AUTOMAKE="$missing_dir/missing automake"
915 echo "$ac_t""missing" 1>&6
918 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
919 echo "configure:920: checking for working autoheader" >&5
920 # Run test in a subshell; some versions of sh will print an error if
921 # an executable is not found, even if stderr is redirected.
922 # Redirect stdin to placate older versions of autoconf. Sigh.
923 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
924 AUTOHEADER=autoheader
925 echo "$ac_t""found" 1>&6
926 else
927 AUTOHEADER="$missing_dir/missing autoheader"
928 echo "$ac_t""missing" 1>&6
931 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
932 echo "configure:933: checking for working makeinfo" >&5
933 # Run test in a subshell; some versions of sh will print an error if
934 # an executable is not found, even if stderr is redirected.
935 # Redirect stdin to placate older versions of autoconf. Sigh.
936 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
937 MAKEINFO=makeinfo
938 echo "$ac_t""found" 1>&6
939 else
940 MAKEINFO="$missing_dir/missing makeinfo"
941 echo "$ac_t""missing" 1>&6
949 # Runs configure.host and configure.target, as well as finds CC, CXX
950 # and assorted other critical bits. Have to run this before the
951 # GLIBCPP_ENABLE_* macros below.
952 if test $host != $build; then
953 ac_tool_prefix=${host_alias}-
954 else
955 ac_tool_prefix=
958 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
959 echo "configure:960: checking for Cygwin environment" >&5
960 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
962 else
963 cat > conftest.$ac_ext <<EOF
964 #line 965 "configure"
965 #include "confdefs.h"
967 int main() {
969 #ifndef __CYGWIN__
970 #define __CYGWIN__ __CYGWIN32__
971 #endif
972 return __CYGWIN__;
973 ; return 0; }
975 if { (eval echo configure:976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
976 rm -rf conftest*
977 ac_cv_cygwin=yes
978 else
979 echo "configure: failed program was:" >&5
980 cat conftest.$ac_ext >&5
981 rm -rf conftest*
982 ac_cv_cygwin=no
984 rm -f conftest*
985 rm -f conftest*
988 echo "$ac_t""$ac_cv_cygwin" 1>&6
989 CYGWIN=
990 test "$ac_cv_cygwin" = yes && CYGWIN=yes
991 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
992 echo "configure:993: checking for mingw32 environment" >&5
993 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
994 echo $ac_n "(cached) $ac_c" 1>&6
995 else
996 cat > conftest.$ac_ext <<EOF
997 #line 998 "configure"
998 #include "confdefs.h"
1000 int main() {
1001 return __MINGW32__;
1002 ; return 0; }
1004 if { (eval echo configure:1005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1005 rm -rf conftest*
1006 ac_cv_mingw32=yes
1007 else
1008 echo "configure: failed program was:" >&5
1009 cat conftest.$ac_ext >&5
1010 rm -rf conftest*
1011 ac_cv_mingw32=no
1013 rm -f conftest*
1014 rm -f conftest*
1017 echo "$ac_t""$ac_cv_mingw32" 1>&6
1018 MINGW32=
1019 test "$ac_cv_mingw32" = yes && MINGW32=yes
1021 # Check whether --enable-multilib or --disable-multilib was given.
1022 if test "${enable_multilib+set}" = set; then
1023 enableval="$enable_multilib"
1024 case "${enableval}" in
1025 yes) multilib=yes ;;
1026 no) multilib=no ;;
1027 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1028 esac
1029 else
1030 multilib=yes
1033 # When building with srcdir == objdir, links to the source files will
1034 # be created in directories within the target_subdir. We have to
1035 # adjust toplevel_srcdir accordingly, so that configure finds
1036 # install-sh and other auxiliary files that live in the top-level
1037 # source directory.
1038 if test "${srcdir}" = "."; then
1039 if test -z "${with_target_subdir}"; then
1040 toprel=".."
1041 else
1042 if test "${with_target_subdir}" != "."; then
1043 toprel="${with_multisrctop}../.."
1044 else
1045 toprel="${with_multisrctop}.."
1048 else
1049 toprel=".."
1051 ac_aux_dir=
1052 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1053 if test -f $ac_dir/install-sh; then
1054 ac_aux_dir=$ac_dir
1055 ac_install_sh="$ac_aux_dir/install-sh -c"
1056 break
1057 elif test -f $ac_dir/install.sh; then
1058 ac_aux_dir=$ac_dir
1059 ac_install_sh="$ac_aux_dir/install.sh -c"
1060 break
1062 done
1063 if test -z "$ac_aux_dir"; then
1064 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1066 ac_config_guess=$ac_aux_dir/config.guess
1067 ac_config_sub=$ac_aux_dir/config.sub
1068 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1070 toplevel_srcdir=\${top_srcdir}/$toprel
1073 # Export build and source directories.
1074 # These need to be absolute paths, yet at the same time need to
1075 # canonicalize only relative paths, because then amd will not unmount
1076 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1077 glibcpp_builddir=`pwd`
1078 case $srcdir in
1079 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1080 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1081 esac
1087 for ac_prog in mawk gawk nawk awk
1089 # Extract the first word of "$ac_prog", so it can be a program name with args.
1090 set dummy $ac_prog; ac_word=$2
1091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1092 echo "configure:1093: checking for $ac_word" >&5
1093 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1095 else
1096 if test -n "$AWK"; then
1097 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1098 else
1099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1100 ac_dummy="$PATH"
1101 for ac_dir in $ac_dummy; do
1102 test -z "$ac_dir" && ac_dir=.
1103 if test -f $ac_dir/$ac_word; then
1104 ac_cv_prog_AWK="$ac_prog"
1105 break
1107 done
1108 IFS="$ac_save_ifs"
1111 AWK="$ac_cv_prog_AWK"
1112 if test -n "$AWK"; then
1113 echo "$ac_t""$AWK" 1>&6
1114 else
1115 echo "$ac_t""no" 1>&6
1118 test -n "$AWK" && break
1119 done
1121 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.50+, can also
1122 # be 'cp -p' if linking isn't available.
1123 #ac_cv_prog_LN_S='cp -p'
1124 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1125 echo "configure:1126: checking whether ln -s works" >&5
1126 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1128 else
1129 rm -f conftestdata
1130 if ln -s X conftestdata 2>/dev/null
1131 then
1132 rm -f conftestdata
1133 ac_cv_prog_LN_S="ln -s"
1134 else
1135 ac_cv_prog_LN_S=ln
1138 LN_S="$ac_cv_prog_LN_S"
1139 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1140 echo "$ac_t""yes" 1>&6
1141 else
1142 echo "$ac_t""no" 1>&6
1146 # We use these options to decide which functions to include.
1147 # Check whether --with-target-subdir or --without-target-subdir was given.
1148 if test "${with_target_subdir+set}" = set; then
1149 withval="$with_target_subdir"
1153 # Check whether --with-cross-host or --without-cross-host was given.
1154 if test "${with_cross_host+set}" = set; then
1155 withval="$with_cross_host"
1160 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1163 # Never versions of autoconf add an underscore to these functions.
1164 # Prevent future problems ...
1170 # AC_PROG_CC
1172 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1173 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1174 # are probably using a cross compiler, which will not be able to fully
1175 # link an executable. This should really be fixed in autoconf
1176 # itself.
1181 # Extract the first word of "gcc", so it can be a program name with args.
1182 set dummy gcc; ac_word=$2
1183 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1184 echo "configure:1185: checking for $ac_word" >&5
1185 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1187 else
1188 if test -n "$CC"; then
1189 ac_cv_prog_CC="$CC" # Let the user override the test.
1190 else
1191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1192 ac_dummy="$PATH"
1193 for ac_dir in $ac_dummy; do
1194 test -z "$ac_dir" && ac_dir=.
1195 if test -f $ac_dir/$ac_word; then
1196 ac_cv_prog_CC="gcc"
1197 break
1199 done
1200 IFS="$ac_save_ifs"
1203 CC="$ac_cv_prog_CC"
1204 if test -n "$CC"; then
1205 echo "$ac_t""$CC" 1>&6
1206 else
1207 echo "$ac_t""no" 1>&6
1210 if test -z "$CC"; then
1211 # Extract the first word of "cc", so it can be a program name with args.
1212 set dummy cc; ac_word=$2
1213 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1214 echo "configure:1215: checking for $ac_word" >&5
1215 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218 if test -n "$CC"; then
1219 ac_cv_prog_CC="$CC" # Let the user override the test.
1220 else
1221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1222 ac_prog_rejected=no
1223 ac_dummy="$PATH"
1224 for ac_dir in $ac_dummy; do
1225 test -z "$ac_dir" && ac_dir=.
1226 if test -f $ac_dir/$ac_word; then
1227 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1228 ac_prog_rejected=yes
1229 continue
1231 ac_cv_prog_CC="cc"
1232 break
1234 done
1235 IFS="$ac_save_ifs"
1236 if test $ac_prog_rejected = yes; then
1237 # We found a bogon in the path, so make sure we never use it.
1238 set dummy $ac_cv_prog_CC
1239 shift
1240 if test $# -gt 0; then
1241 # We chose a different compiler from the bogus one.
1242 # However, it has the same basename, so the bogon will be chosen
1243 # first if we set CC to just the basename; use the full file name.
1244 shift
1245 set dummy "$ac_dir/$ac_word" "$@"
1246 shift
1247 ac_cv_prog_CC="$@"
1252 CC="$ac_cv_prog_CC"
1253 if test -n "$CC"; then
1254 echo "$ac_t""$CC" 1>&6
1255 else
1256 echo "$ac_t""no" 1>&6
1259 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1262 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1263 echo "configure:1264: checking whether we are using GNU C" >&5
1264 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1266 else
1267 cat > conftest.c <<EOF
1268 #ifdef __GNUC__
1269 yes;
1270 #endif
1272 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1273 ac_cv_prog_gcc=yes
1274 else
1275 ac_cv_prog_gcc=no
1279 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1281 if test $ac_cv_prog_gcc = yes; then
1282 GCC=yes
1283 ac_test_CFLAGS="${CFLAGS+set}"
1284 ac_save_CFLAGS="$CFLAGS"
1285 CFLAGS=
1286 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1287 echo "configure:1288: checking whether ${CC-cc} accepts -g" >&5
1288 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1289 echo $ac_n "(cached) $ac_c" 1>&6
1290 else
1291 echo 'void f(){}' > conftest.c
1292 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1293 ac_cv_prog_cc_g=yes
1294 else
1295 ac_cv_prog_cc_g=no
1297 rm -f conftest*
1301 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1302 if test "$ac_test_CFLAGS" = set; then
1303 CFLAGS="$ac_save_CFLAGS"
1304 elif test $ac_cv_prog_cc_g = yes; then
1305 CFLAGS="-g -O2"
1306 else
1307 CFLAGS="-O2"
1309 else
1310 GCC=
1311 test "${CFLAGS+set}" = set || CFLAGS="-g"
1315 # Can't just call these here as g++ requires libstc++ to be built....
1316 # AC_PROG_CXX
1318 # Likewise for AC_PROG_CXX.
1322 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1323 # flags that come in CXX while configuring libstdc++. They're different
1324 # from those used for all other target libraries. If CXX is set in
1325 # the environment, respect that here.
1326 glibcpp_CXX=$CXX
1327 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1329 # Extract the first word of "$ac_prog", so it can be a program name with args.
1330 set dummy $ac_prog; ac_word=$2
1331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1332 echo "configure:1333: checking for $ac_word" >&5
1333 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1335 else
1336 if test -n "$glibcpp_CXX"; then
1337 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1338 else
1339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1340 ac_dummy="$PATH"
1341 for ac_dir in $ac_dummy; do
1342 test -z "$ac_dir" && ac_dir=.
1343 if test -f $ac_dir/$ac_word; then
1344 ac_cv_prog_glibcpp_CXX="$ac_prog"
1345 break
1347 done
1348 IFS="$ac_save_ifs"
1351 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1352 if test -n "$glibcpp_CXX"; then
1353 echo "$ac_t""$glibcpp_CXX" 1>&6
1354 else
1355 echo "$ac_t""no" 1>&6
1358 test -n "$glibcpp_CXX" && break
1359 done
1360 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1363 CXX=$glibcpp_CXX
1364 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1366 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1367 echo "configure:1368: checking whether we are using GNU C++" >&5
1368 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371 cat > conftest.C <<EOF
1372 #ifdef __GNUC__
1373 yes;
1374 #endif
1376 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1377 ac_cv_prog_gxx=yes
1378 else
1379 ac_cv_prog_gxx=no
1383 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1385 if test $ac_cv_prog_gxx = yes; then
1386 GXX=yes
1387 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1388 ac_save_CXXFLAGS="$CXXFLAGS"
1389 CXXFLAGS=
1390 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1391 echo "configure:1392: checking whether ${CXX-g++} accepts -g" >&5
1392 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1394 else
1395 echo 'void f(){}' > conftest.cc
1396 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1397 ac_cv_prog_cxx_g=yes
1398 else
1399 ac_cv_prog_cxx_g=no
1401 rm -f conftest*
1405 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1406 if test "$ac_test_CXXFLAGS" = set; then
1407 CXXFLAGS="$ac_save_CXXFLAGS"
1408 elif test $ac_cv_prog_cxx_g = yes; then
1409 CXXFLAGS="-g -O2"
1410 else
1411 CXXFLAGS="-O2"
1413 else
1414 GXX=
1415 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1419 # For some reason, gettext needs this.
1420 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1421 echo "configure:1422: checking for POSIXized ISC" >&5
1422 if test -d /etc/conf/kconfig.d &&
1423 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1424 then
1425 echo "$ac_t""yes" 1>&6
1426 ISC=yes # If later tests want to check for ISC.
1427 cat >> confdefs.h <<\EOF
1428 #define _POSIX_SOURCE 1
1431 if test "$GCC" = yes; then
1432 CC="$CC -posix"
1433 else
1434 CC="$CC -Xp"
1436 else
1437 echo "$ac_t""no" 1>&6
1438 ISC=
1442 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1443 set dummy ${ac_tool_prefix}as; ac_word=$2
1444 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1445 echo "configure:1446: checking for $ac_word" >&5
1446 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1448 else
1449 if test -n "$AS"; then
1450 ac_cv_prog_AS="$AS" # Let the user override the test.
1451 else
1452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1453 ac_dummy="$PATH"
1454 for ac_dir in $ac_dummy; do
1455 test -z "$ac_dir" && ac_dir=.
1456 if test -f $ac_dir/$ac_word; then
1457 ac_cv_prog_AS="${ac_tool_prefix}as"
1458 break
1460 done
1461 IFS="$ac_save_ifs"
1462 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1465 AS="$ac_cv_prog_AS"
1466 if test -n "$AS"; then
1467 echo "$ac_t""$AS" 1>&6
1468 else
1469 echo "$ac_t""no" 1>&6
1474 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1475 set dummy ${ac_tool_prefix}ar; ac_word=$2
1476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1477 echo "configure:1478: checking for $ac_word" >&5
1478 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1480 else
1481 if test -n "$AR"; then
1482 ac_cv_prog_AR="$AR" # Let the user override the test.
1483 else
1484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1485 ac_dummy="$PATH"
1486 for ac_dir in $ac_dummy; do
1487 test -z "$ac_dir" && ac_dir=.
1488 if test -f $ac_dir/$ac_word; then
1489 ac_cv_prog_AR="${ac_tool_prefix}ar"
1490 break
1492 done
1493 IFS="$ac_save_ifs"
1494 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1497 AR="$ac_cv_prog_AR"
1498 if test -n "$AR"; then
1499 echo "$ac_t""$AR" 1>&6
1500 else
1501 echo "$ac_t""no" 1>&6
1506 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1507 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1509 echo "configure:1510: checking for $ac_word" >&5
1510 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1512 else
1513 if test -n "$RANLIB"; then
1514 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1515 else
1516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1517 ac_dummy="$PATH"
1518 for ac_dir in $ac_dummy; do
1519 test -z "$ac_dir" && ac_dir=.
1520 if test -f $ac_dir/$ac_word; then
1521 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1522 break
1524 done
1525 IFS="$ac_save_ifs"
1528 RANLIB="$ac_cv_prog_RANLIB"
1529 if test -n "$RANLIB"; then
1530 echo "$ac_t""$RANLIB" 1>&6
1531 else
1532 echo "$ac_t""no" 1>&6
1536 if test -z "$ac_cv_prog_RANLIB"; then
1537 if test -n "$ac_tool_prefix"; then
1538 # Extract the first word of "ranlib", so it can be a program name with args.
1539 set dummy ranlib; ac_word=$2
1540 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1541 echo "configure:1542: checking for $ac_word" >&5
1542 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1544 else
1545 if test -n "$RANLIB"; then
1546 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1547 else
1548 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1549 ac_dummy="$PATH"
1550 for ac_dir in $ac_dummy; do
1551 test -z "$ac_dir" && ac_dir=.
1552 if test -f $ac_dir/$ac_word; then
1553 ac_cv_prog_RANLIB="ranlib"
1554 break
1556 done
1557 IFS="$ac_save_ifs"
1558 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1561 RANLIB="$ac_cv_prog_RANLIB"
1562 if test -n "$RANLIB"; then
1563 echo "$ac_t""$RANLIB" 1>&6
1564 else
1565 echo "$ac_t""no" 1>&6
1568 else
1569 RANLIB="ranlib-not-found-in-path-error"
1573 # Find a good install program. We prefer a C program (faster),
1574 # so one script is as good as another. But avoid the broken or
1575 # incompatible versions:
1576 # SysV /etc/install, /usr/sbin/install
1577 # SunOS /usr/etc/install
1578 # IRIX /sbin/install
1579 # AIX /bin/install
1580 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1581 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1582 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1583 # ./install, which can be erroneously created by make from ./install.sh.
1584 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1585 echo "configure:1586: checking for a BSD compatible install" >&5
1586 if test -z "$INSTALL"; then
1587 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1588 echo $ac_n "(cached) $ac_c" 1>&6
1589 else
1590 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1591 for ac_dir in $PATH; do
1592 # Account for people who put trailing slashes in PATH elements.
1593 case "$ac_dir/" in
1594 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1596 # OSF1 and SCO ODT 3.0 have their own names for install.
1597 # Don't use installbsd from OSF since it installs stuff as root
1598 # by default.
1599 for ac_prog in ginstall scoinst install; do
1600 if test -f $ac_dir/$ac_prog; then
1601 if test $ac_prog = install &&
1602 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1603 # AIX install. It has an incompatible calling convention.
1605 else
1606 ac_cv_path_install="$ac_dir/$ac_prog -c"
1607 break 2
1610 done
1612 esac
1613 done
1614 IFS="$ac_save_IFS"
1617 if test "${ac_cv_path_install+set}" = set; then
1618 INSTALL="$ac_cv_path_install"
1619 else
1620 # As a last resort, use the slow shell script. We don't cache a
1621 # path for INSTALL within a source directory, because that will
1622 # break other packages using the cache if that directory is
1623 # removed, or if the path is relative.
1624 INSTALL="$ac_install_sh"
1627 echo "$ac_t""$INSTALL" 1>&6
1629 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1630 # It thinks the first close brace ends the variable substitution.
1631 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1633 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1635 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1638 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1639 echo "configure:1640: checking whether to enable maintainer-specific portions of Makefiles" >&5
1640 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1641 if test "${enable_maintainer_mode+set}" = set; then
1642 enableval="$enable_maintainer_mode"
1643 USE_MAINTAINER_MODE=$enableval
1644 else
1645 USE_MAINTAINER_MODE=no
1648 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1651 if test $USE_MAINTAINER_MODE = yes; then
1652 MAINTAINER_MODE_TRUE=
1653 MAINTAINER_MODE_FALSE='#'
1654 else
1655 MAINTAINER_MODE_TRUE='#'
1656 MAINTAINER_MODE_FALSE=
1658 MAINT=$MAINTAINER_MODE_TRUE
1662 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1663 # at least currently, we never actually build a program, so we never
1664 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1665 # fails, because we are probably configuring with a cross compiler
1666 # which can't create executables. So we include AC_EXEEXT to keep
1667 # automake happy, but we don't execute it, since we don't care about
1668 # the result.
1669 if false; then
1670 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1671 # to nothing, so nothing would remain between `then' and `fi' if it
1672 # were not for the `:' below.
1676 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1677 echo "configure:1678: checking for executable suffix" >&5
1678 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1680 else
1681 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1682 ac_cv_exeext=.exe
1683 else
1684 rm -f conftest*
1685 echo 'int main () { return 0; }' > conftest.$ac_ext
1686 ac_cv_exeext=
1687 if { (eval echo configure:1688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1688 for file in conftest.*; do
1689 case $file in
1690 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1691 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1692 esac
1693 done
1694 else
1695 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1697 rm -f conftest*
1698 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1702 EXEEXT=""
1703 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1704 echo "$ac_t""${ac_cv_exeext}" 1>&6
1705 ac_exeext=$EXEEXT
1709 . ${glibcpp_basedir}/configure.host
1711 case ${glibcpp_basedir} in
1712 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1713 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1714 esac
1716 # This does for the target what configure.host does for the host. In
1717 # addition to possibly modifying the same flags, it also sets up symlinks.
1719 . ${glibcpp_basedir}/configure.target
1720 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1721 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1728 # Check whether --enable-shared or --disable-shared was given.
1729 if test "${enable_shared+set}" = set; then
1730 enableval="$enable_shared"
1731 p=${PACKAGE-default}
1732 case $enableval in
1733 yes) enable_shared=yes ;;
1734 no) enable_shared=no ;;
1736 enable_shared=no
1737 # Look at the argument we got. We use all the common list separators.
1738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1739 for pkg in $enableval; do
1740 if test "X$pkg" = "X$p"; then
1741 enable_shared=yes
1743 done
1744 IFS="$ac_save_ifs"
1746 esac
1747 else
1748 enable_shared=yes
1751 # Check whether --enable-static or --disable-static was given.
1752 if test "${enable_static+set}" = set; then
1753 enableval="$enable_static"
1754 p=${PACKAGE-default}
1755 case $enableval in
1756 yes) enable_static=yes ;;
1757 no) enable_static=no ;;
1759 enable_static=no
1760 # Look at the argument we got. We use all the common list separators.
1761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1762 for pkg in $enableval; do
1763 if test "X$pkg" = "X$p"; then
1764 enable_static=yes
1766 done
1767 IFS="$ac_save_ifs"
1769 esac
1770 else
1771 enable_static=yes
1774 # Check whether --enable-fast-install or --disable-fast-install was given.
1775 if test "${enable_fast_install+set}" = set; then
1776 enableval="$enable_fast_install"
1777 p=${PACKAGE-default}
1778 case $enableval in
1779 yes) enable_fast_install=yes ;;
1780 no) enable_fast_install=no ;;
1782 enable_fast_install=no
1783 # Look at the argument we got. We use all the common list separators.
1784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1785 for pkg in $enableval; do
1786 if test "X$pkg" = "X$p"; then
1787 enable_fast_install=yes
1789 done
1790 IFS="$ac_save_ifs"
1792 esac
1793 else
1794 enable_fast_install=yes
1797 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1798 if test "${with_gnu_ld+set}" = set; then
1799 withval="$with_gnu_ld"
1800 test "$withval" = no || with_gnu_ld=yes
1801 else
1802 with_gnu_ld=no
1805 ac_prog=ld
1806 if test "$GCC" = yes; then
1807 # Check if gcc -print-prog-name=ld gives a path.
1808 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1809 echo "configure:1810: checking for ld used by GCC" >&5
1810 case $host in
1811 *-*-mingw*)
1812 # gcc leaves a trailing carriage return which upsets mingw
1813 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1815 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1816 esac
1817 case $ac_prog in
1818 # Accept absolute paths.
1819 [\\/]* | [A-Za-z]:[\\/]*)
1820 re_direlt='/[^/][^/]*/\.\./'
1821 # Canonicalize the path of ld
1822 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1823 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1824 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1825 done
1826 test -z "$LD" && LD="$ac_prog"
1829 # If it fails, then pretend we aren't using GCC.
1830 ac_prog=ld
1833 # If it is relative, then search for the first ld in PATH.
1834 with_gnu_ld=unknown
1836 esac
1837 elif test "$with_gnu_ld" = yes; then
1838 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1839 echo "configure:1840: checking for GNU ld" >&5
1840 else
1841 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1842 echo "configure:1843: checking for non-GNU ld" >&5
1844 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1846 else
1847 if test -z "$LD"; then
1848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1849 for ac_dir in $PATH; do
1850 test -z "$ac_dir" && ac_dir=.
1851 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1852 lt_cv_path_LD="$ac_dir/$ac_prog"
1853 # Check to see if the program is GNU ld. I'd rather use --version,
1854 # but apparently some GNU ld's only accept -v.
1855 # Break only if it was the GNU/non-GNU ld that we prefer.
1856 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1857 test "$with_gnu_ld" != no && break
1858 else
1859 test "$with_gnu_ld" != yes && break
1862 done
1863 IFS="$ac_save_ifs"
1864 else
1865 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1869 LD="$lt_cv_path_LD"
1870 if test -n "$LD"; then
1871 echo "$ac_t""$LD" 1>&6
1872 else
1873 echo "$ac_t""no" 1>&6
1875 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1876 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1877 echo "configure:1878: checking if the linker ($LD) is GNU ld" >&5
1878 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1880 else
1881 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1882 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1883 lt_cv_prog_gnu_ld=yes
1884 else
1885 lt_cv_prog_gnu_ld=no
1889 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1890 with_gnu_ld=$lt_cv_prog_gnu_ld
1893 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1894 echo "configure:1895: checking for $LD option to reload object files" >&5
1895 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1897 else
1898 lt_cv_ld_reload_flag='-r'
1901 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1902 reload_flag=$lt_cv_ld_reload_flag
1903 test -n "$reload_flag" && reload_flag=" $reload_flag"
1905 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1906 echo "configure:1907: checking for BSD-compatible nm" >&5
1907 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1908 echo $ac_n "(cached) $ac_c" 1>&6
1909 else
1910 if test -n "$NM"; then
1911 # Let the user override the test.
1912 lt_cv_path_NM="$NM"
1913 else
1914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1915 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1916 test -z "$ac_dir" && ac_dir=.
1917 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1918 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1919 # Check to see if the nm accepts a BSD-compat flag.
1920 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1921 # nm: unknown option "B" ignored
1922 # Tru64's nm complains that /dev/null is an invalid object file
1923 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1924 lt_cv_path_NM="$tmp_nm -B"
1925 break
1926 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1927 lt_cv_path_NM="$tmp_nm -p"
1928 break
1929 else
1930 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1931 continue # so that we can try to find one that supports BSD flags
1934 done
1935 IFS="$ac_save_ifs"
1936 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1940 NM="$lt_cv_path_NM"
1941 echo "$ac_t""$NM" 1>&6
1943 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1944 echo "configure:1945: checking how to recognise dependant libraries" >&5
1945 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1946 echo $ac_n "(cached) $ac_c" 1>&6
1947 else
1948 lt_cv_file_magic_cmd='$MAGIC_CMD'
1949 lt_cv_file_magic_test_file=
1950 lt_cv_deplibs_check_method='unknown'
1951 # Need to set the preceding variable on all platforms that support
1952 # interlibrary dependencies.
1953 # 'none' -- dependencies not supported.
1954 # `unknown' -- same as none, but documents that we really don't know.
1955 # 'pass_all' -- all dependencies passed with no checks.
1956 # 'test_compile' -- check by making test program.
1957 # 'file_magic [regex]' -- check by looking for files in library path
1958 # which responds to the $file_magic_cmd with a given egrep regex.
1959 # If you have `file' or equivalent on your system and you're not sure
1960 # whether `pass_all' will *always* work, you probably want this one.
1962 case $host_os in
1963 aix*)
1964 lt_cv_deplibs_check_method=pass_all
1967 beos*)
1968 lt_cv_deplibs_check_method=pass_all
1971 bsdi4*)
1972 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1973 lt_cv_file_magic_cmd='/usr/bin/file -L'
1974 lt_cv_file_magic_test_file=/shlib/libc.so
1977 cygwin* | mingw* |pw32*)
1978 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1979 lt_cv_file_magic_cmd='$OBJDUMP -f'
1982 darwin* | rhapsody*)
1983 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1984 lt_cv_file_magic_cmd='/usr/bin/file -L'
1985 case "$host_os" in
1986 rhapsody* | darwin1.012)
1987 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1989 *) # Darwin 1.3 on
1990 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1992 esac
1995 freebsd* )
1996 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1997 case $host_cpu in
1998 i*86 )
1999 # Not sure whether the presence of OpenBSD here was a mistake.
2000 # Let's accept both of them until this is cleared up.
2001 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2002 lt_cv_file_magic_cmd=/usr/bin/file
2003 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2005 esac
2006 else
2007 lt_cv_deplibs_check_method=pass_all
2011 gnu*)
2012 lt_cv_deplibs_check_method=pass_all
2015 hpux10.20*|hpux11*)
2016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2017 lt_cv_file_magic_cmd=/usr/bin/file
2018 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2021 irix5* | irix6*)
2022 case $host_os in
2023 irix5*)
2024 # this will be overridden with pass_all, but let us keep it just in case
2025 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2028 case $LD in
2029 *-32|*"-32 ") libmagic=32-bit;;
2030 *-n32|*"-n32 ") libmagic=N32;;
2031 *-64|*"-64 ") libmagic=64-bit;;
2032 *) libmagic=never-match;;
2033 esac
2034 # this will be overridden with pass_all, but let us keep it just in case
2035 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2037 esac
2038 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2039 lt_cv_deplibs_check_method=pass_all
2042 # This must be Linux ELF.
2043 linux-gnu*)
2044 case $host_cpu in
2045 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2046 lt_cv_deplibs_check_method=pass_all ;;
2048 # glibc up to 2.1.1 does not perform some relocations on ARM
2049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2050 esac
2051 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2054 netbsd*)
2055 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2056 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2057 else
2058 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2062 newsos6)
2063 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2064 lt_cv_file_magic_cmd=/usr/bin/file
2065 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2068 osf3* | osf4* | osf5*)
2069 # this will be overridden with pass_all, but let us keep it just in case
2070 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2071 lt_cv_file_magic_test_file=/shlib/libc.so
2072 lt_cv_deplibs_check_method=pass_all
2075 sco3.2v5*)
2076 lt_cv_deplibs_check_method=pass_all
2079 solaris*)
2080 lt_cv_deplibs_check_method=pass_all
2081 lt_cv_file_magic_test_file=/lib/libc.so
2084 sysv5uw[78]* | sysv4*uw2*)
2085 lt_cv_deplibs_check_method=pass_all
2088 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2089 case $host_vendor in
2090 ncr)
2091 lt_cv_deplibs_check_method=pass_all
2093 motorola)
2094 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]'
2095 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2097 esac
2099 esac
2103 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2104 file_magic_cmd=$lt_cv_file_magic_cmd
2105 deplibs_check_method=$lt_cv_deplibs_check_method
2107 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2108 echo "configure:2109: checking for object suffix" >&5
2109 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2111 else
2112 rm -f conftest*
2113 echo 'int i = 1;' > conftest.$ac_ext
2114 if { (eval echo configure:2115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2115 for ac_file in conftest.*; do
2116 case $ac_file in
2117 *.c) ;;
2118 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2119 esac
2120 done
2121 else
2122 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2124 rm -f conftest*
2127 echo "$ac_t""$ac_cv_objext" 1>&6
2128 OBJEXT=$ac_cv_objext
2129 ac_objext=$ac_cv_objext
2131 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2133 # Only perform the check for file, if the check method requires it
2134 case $deplibs_check_method in
2135 file_magic*)
2136 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2137 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2138 echo "configure:2139: checking for ${ac_tool_prefix}file" >&5
2139 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2141 else
2142 case $MAGIC_CMD in
2144 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2146 ?:/*)
2147 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2150 ac_save_MAGIC_CMD="$MAGIC_CMD"
2151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2152 ac_dummy="/usr/bin:$PATH"
2153 for ac_dir in $ac_dummy; do
2154 test -z "$ac_dir" && ac_dir=.
2155 if test -f $ac_dir/${ac_tool_prefix}file; then
2156 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2157 if test -n "$file_magic_test_file"; then
2158 case $deplibs_check_method in
2159 "file_magic "*)
2160 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2161 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2162 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2163 egrep "$file_magic_regex" > /dev/null; then
2165 else
2166 cat <<EOF 1>&2
2168 *** Warning: the command libtool uses to detect shared libraries,
2169 *** $file_magic_cmd, produces output that libtool cannot recognize.
2170 *** The result is that libtool may fail to recognize shared libraries
2171 *** as such. This will affect the creation of libtool libraries that
2172 *** depend on shared libraries, but programs linked with such libtool
2173 *** libraries will work regardless of this problem. Nevertheless, you
2174 *** may want to report the problem to your system manager and/or to
2175 *** bug-libtool@gnu.org
2178 fi ;;
2179 esac
2181 break
2183 done
2184 IFS="$ac_save_ifs"
2185 MAGIC_CMD="$ac_save_MAGIC_CMD"
2187 esac
2190 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2191 if test -n "$MAGIC_CMD"; then
2192 echo "$ac_t""$MAGIC_CMD" 1>&6
2193 else
2194 echo "$ac_t""no" 1>&6
2197 if test -z "$lt_cv_path_MAGIC_CMD"; then
2198 if test -n "$ac_tool_prefix"; then
2199 echo $ac_n "checking for file""... $ac_c" 1>&6
2200 echo "configure:2201: checking for file" >&5
2201 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2203 else
2204 case $MAGIC_CMD in
2206 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2208 ?:/*)
2209 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2212 ac_save_MAGIC_CMD="$MAGIC_CMD"
2213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2214 ac_dummy="/usr/bin:$PATH"
2215 for ac_dir in $ac_dummy; do
2216 test -z "$ac_dir" && ac_dir=.
2217 if test -f $ac_dir/file; then
2218 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2219 if test -n "$file_magic_test_file"; then
2220 case $deplibs_check_method in
2221 "file_magic "*)
2222 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2223 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2224 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2225 egrep "$file_magic_regex" > /dev/null; then
2227 else
2228 cat <<EOF 1>&2
2230 *** Warning: the command libtool uses to detect shared libraries,
2231 *** $file_magic_cmd, produces output that libtool cannot recognize.
2232 *** The result is that libtool may fail to recognize shared libraries
2233 *** as such. This will affect the creation of libtool libraries that
2234 *** depend on shared libraries, but programs linked with such libtool
2235 *** libraries will work regardless of this problem. Nevertheless, you
2236 *** may want to report the problem to your system manager and/or to
2237 *** bug-libtool@gnu.org
2240 fi ;;
2241 esac
2243 break
2245 done
2246 IFS="$ac_save_ifs"
2247 MAGIC_CMD="$ac_save_MAGIC_CMD"
2249 esac
2252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2253 if test -n "$MAGIC_CMD"; then
2254 echo "$ac_t""$MAGIC_CMD" 1>&6
2255 else
2256 echo "$ac_t""no" 1>&6
2259 else
2260 MAGIC_CMD=:
2266 esac
2268 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2269 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2270 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2271 echo "configure:2272: checking for $ac_word" >&5
2272 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2273 echo $ac_n "(cached) $ac_c" 1>&6
2274 else
2275 if test -n "$RANLIB"; then
2276 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2277 else
2278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2279 ac_dummy="$PATH"
2280 for ac_dir in $ac_dummy; do
2281 test -z "$ac_dir" && ac_dir=.
2282 if test -f $ac_dir/$ac_word; then
2283 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2284 break
2286 done
2287 IFS="$ac_save_ifs"
2290 RANLIB="$ac_cv_prog_RANLIB"
2291 if test -n "$RANLIB"; then
2292 echo "$ac_t""$RANLIB" 1>&6
2293 else
2294 echo "$ac_t""no" 1>&6
2298 if test -z "$ac_cv_prog_RANLIB"; then
2299 if test -n "$ac_tool_prefix"; then
2300 # Extract the first word of "ranlib", so it can be a program name with args.
2301 set dummy ranlib; ac_word=$2
2302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2303 echo "configure:2304: checking for $ac_word" >&5
2304 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2306 else
2307 if test -n "$RANLIB"; then
2308 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2309 else
2310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2311 ac_dummy="$PATH"
2312 for ac_dir in $ac_dummy; do
2313 test -z "$ac_dir" && ac_dir=.
2314 if test -f $ac_dir/$ac_word; then
2315 ac_cv_prog_RANLIB="ranlib"
2316 break
2318 done
2319 IFS="$ac_save_ifs"
2320 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2323 RANLIB="$ac_cv_prog_RANLIB"
2324 if test -n "$RANLIB"; then
2325 echo "$ac_t""$RANLIB" 1>&6
2326 else
2327 echo "$ac_t""no" 1>&6
2330 else
2331 RANLIB=":"
2335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2336 set dummy ${ac_tool_prefix}strip; ac_word=$2
2337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2338 echo "configure:2339: checking for $ac_word" >&5
2339 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2341 else
2342 if test -n "$STRIP"; then
2343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2344 else
2345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2346 ac_dummy="$PATH"
2347 for ac_dir in $ac_dummy; do
2348 test -z "$ac_dir" && ac_dir=.
2349 if test -f $ac_dir/$ac_word; then
2350 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2351 break
2353 done
2354 IFS="$ac_save_ifs"
2357 STRIP="$ac_cv_prog_STRIP"
2358 if test -n "$STRIP"; then
2359 echo "$ac_t""$STRIP" 1>&6
2360 else
2361 echo "$ac_t""no" 1>&6
2365 if test -z "$ac_cv_prog_STRIP"; then
2366 if test -n "$ac_tool_prefix"; then
2367 # Extract the first word of "strip", so it can be a program name with args.
2368 set dummy strip; ac_word=$2
2369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2370 echo "configure:2371: checking for $ac_word" >&5
2371 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2373 else
2374 if test -n "$STRIP"; then
2375 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2376 else
2377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2378 ac_dummy="$PATH"
2379 for ac_dir in $ac_dummy; do
2380 test -z "$ac_dir" && ac_dir=.
2381 if test -f $ac_dir/$ac_word; then
2382 ac_cv_prog_STRIP="strip"
2383 break
2385 done
2386 IFS="$ac_save_ifs"
2387 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2390 STRIP="$ac_cv_prog_STRIP"
2391 if test -n "$STRIP"; then
2392 echo "$ac_t""$STRIP" 1>&6
2393 else
2394 echo "$ac_t""no" 1>&6
2397 else
2398 STRIP=":"
2403 # Check for any special flags to pass to ltconfig.
2404 libtool_flags="--cache-file=$cache_file"
2405 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2406 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2407 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2408 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2409 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2410 libtool_flags="$libtool_flags --enable-dlopen"
2412 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2413 if test "${enable_libtool_lock+set}" = set; then
2414 enableval="$enable_libtool_lock"
2418 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2419 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2421 # Check whether --with-pic or --without-pic was given.
2422 if test "${with_pic+set}" = set; then
2423 withval="$with_pic"
2424 pic_mode="$withval"
2425 else
2426 pic_mode=default
2429 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2430 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2432 # Some flags need to be propagated to the compiler or linker for good
2433 # libtool support.
2434 case $host in
2435 *-*-irix6*)
2436 # Find out which ABI we are using.
2437 echo '#line 2438 "configure"' > conftest.$ac_ext
2438 if { (eval echo configure:2439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2439 case `/usr/bin/file conftest.$ac_objext` in
2440 *32-bit*)
2441 LD="${LD-ld} -32"
2443 *N32*)
2444 LD="${LD-ld} -n32"
2446 *64-bit*)
2447 LD="${LD-ld} -64"
2449 esac
2451 rm -rf conftest*
2454 *-*-sco3.2v5*)
2455 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2456 SAVE_CFLAGS="$CFLAGS"
2457 CFLAGS="$CFLAGS -belf"
2458 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2459 echo "configure:2460: checking whether the C compiler needs -belf" >&5
2460 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2462 else
2464 ac_ext=c
2465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2469 cross_compiling=$ac_cv_prog_cc_cross
2471 cat > conftest.$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2475 int main() {
2477 ; return 0; }
2479 if { (eval echo configure:2480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2480 rm -rf conftest*
2481 lt_cv_cc_needs_belf=yes
2482 else
2483 echo "configure: failed program was:" >&5
2484 cat conftest.$ac_ext >&5
2485 rm -rf conftest*
2486 lt_cv_cc_needs_belf=no
2488 rm -f conftest*
2489 ac_ext=c
2490 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2491 ac_cpp='$CPP $CPPFLAGS'
2492 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2493 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2494 cross_compiling=$ac_cv_prog_cc_cross
2498 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2499 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2500 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2501 CFLAGS="$SAVE_CFLAGS"
2506 esac
2508 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2509 echo "configure:2510: checking how to run the C++ preprocessor" >&5
2510 if test -z "$CXXCPP"; then
2511 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2513 else
2514 ac_ext=C
2515 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2516 ac_cpp='$CXXCPP $CPPFLAGS'
2517 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2518 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2519 cross_compiling=$ac_cv_prog_cxx_cross
2520 CXXCPP="${CXX-g++} -E"
2521 cat > conftest.$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2524 #include <stdlib.h>
2526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2527 { (eval echo configure:2528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2529 if test -z "$ac_err"; then
2531 else
2532 echo "$ac_err" >&5
2533 echo "configure: failed program was:" >&5
2534 cat conftest.$ac_ext >&5
2535 rm -rf conftest*
2536 CXXCPP=/lib/cpp
2538 rm -f conftest*
2539 ac_cv_prog_CXXCPP="$CXXCPP"
2540 ac_ext=c
2541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2542 ac_cpp='$CPP $CPPFLAGS'
2543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2545 cross_compiling=$ac_cv_prog_cc_cross
2548 CXXCPP="$ac_cv_prog_CXXCPP"
2549 echo "$ac_t""$CXXCPP" 1>&6
2552 # Save cache, so that ltconfig can load it
2553 cat > confcache <<\EOF
2554 # This file is a shell script that caches the results of configure
2555 # tests run on this system so they can be shared between configure
2556 # scripts and configure runs. It is not useful on other systems.
2557 # If it contains results you don't want to keep, you may remove or edit it.
2559 # By default, configure uses ./config.cache as the cache file,
2560 # creating it if it does not exist already. You can give configure
2561 # the --cache-file=FILE option to use a different cache file; that is
2562 # what configure does when it calls configure scripts in
2563 # subdirectories, so they share the cache.
2564 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2565 # config.status only pays attention to the cache file if you give it the
2566 # --recheck option to rerun configure.
2569 # The following way of writing the cache mishandles newlines in values,
2570 # but we know of no workaround that is simple, portable, and efficient.
2571 # So, don't put newlines in cache variables' values.
2572 # Ultrix sh set writes to stderr and can't be redirected directly,
2573 # and sets the high bit in the cache file unless we assign to the vars.
2574 (set) 2>&1 |
2575 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2576 *ac_space=\ *)
2577 # `set' does not quote correctly, so add quotes (double-quote substitution
2578 # turns \\\\ into \\, and sed turns \\ into \).
2579 sed -n \
2580 -e "s/'/'\\\\''/g" \
2581 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2584 # `set' quotes correctly as required by POSIX, so do not add quotes.
2585 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2587 esac >> confcache
2588 if cmp -s $cache_file confcache; then
2590 else
2591 if test -w $cache_file; then
2592 echo "updating cache $cache_file"
2593 cat confcache > $cache_file
2594 else
2595 echo "not updating unwritable cache $cache_file"
2598 rm -f confcache
2601 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2602 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2603 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2604 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2605 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2606 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2607 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2608 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2609 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2610 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2612 # Reload cache, that may have been modified by ltconfig
2613 if test -r "$cache_file"; then
2614 echo "loading cache $cache_file"
2615 . $cache_file
2616 else
2617 echo "creating cache $cache_file"
2618 > $cache_file
2622 # This can be used to rebuild libtool when needed
2623 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2625 # Always use our own libtool.
2626 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2628 # Redirect the config.log output again, so that the ltconfig log is not
2629 # clobbered by the next message.
2630 exec 5>>./config.log
2634 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2635 lt_save_CC="$CC"
2636 lt_save_CFLAGS="$CFLAGS"
2637 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2638 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2639 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2640 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2641 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2642 deplibs_check_method="$deplibs_check_method" \
2643 file_magic_cmd="$file_magic_cmd" \
2644 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2645 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2646 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2647 CC="$lt_save_CC"
2648 CFLAGS="$lt_save_CFLAGS"
2650 # Redirect the config.log output again, so that the ltconfig log is not
2651 # clobbered by the next message.
2652 exec 5>>./config.log
2662 # Check for c++ or library specific bits that don't require linking.
2663 #GLIBCPP_CHECK_COMPILER_VERSION
2664 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2665 echo "configure:2666: checking for GNU make" >&5
2666 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6
2668 else
2669 _cv_gnu_make_command='' ;
2670 for a in "${MAKE-make}" make gmake gnumake ; do
2671 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2672 then
2673 _cv_gnu_make_command=$a ;
2674 break;
2676 done ;
2680 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2681 if test "x$_cv_gnu_make_command" != "x" ; then
2682 ifGNUmake='' ;
2683 else
2684 ifGNUmake='#' ;
2689 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2690 # Check whether --enable-debug or --disable-debug was given.
2691 if test "${enable_debug+set}" = set; then
2692 enableval="$enable_debug"
2693 case "${enableval}" in
2694 yes) enable_debug=yes ;;
2695 no) enable_debug=no ;;
2696 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2697 esac
2698 else
2699 enable_debug=no
2702 case "${enable_debug}" in
2703 yes)
2704 DEBUG_FLAGS='-O0 -ggdb3'
2706 no)
2707 DEBUG_FLAGS='-g'
2709 esac
2712 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2713 echo "configure:2714: checking how to run the C preprocessor" >&5
2714 # On Suns, sometimes $CPP names a directory.
2715 if test -n "$CPP" && test -d "$CPP"; then
2716 CPP=
2718 if test -z "$CPP"; then
2719 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2720 echo $ac_n "(cached) $ac_c" 1>&6
2721 else
2722 # This must be in double quotes, not single quotes, because CPP may get
2723 # substituted into the Makefile and "${CC-cc}" will confuse make.
2724 CPP="${CC-cc} -E"
2725 # On the NeXT, cc -E runs the code through the compiler's parser,
2726 # not just through cpp.
2727 cat > conftest.$ac_ext <<EOF
2728 #line 2729 "configure"
2729 #include "confdefs.h"
2730 #include <assert.h>
2731 Syntax Error
2733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2734 { (eval echo configure:2735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2736 if test -z "$ac_err"; then
2738 else
2739 echo "$ac_err" >&5
2740 echo "configure: failed program was:" >&5
2741 cat conftest.$ac_ext >&5
2742 rm -rf conftest*
2743 CPP="${CC-cc} -E -traditional-cpp"
2744 cat > conftest.$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2747 #include <assert.h>
2748 Syntax Error
2750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2751 { (eval echo configure:2752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2753 if test -z "$ac_err"; then
2755 else
2756 echo "$ac_err" >&5
2757 echo "configure: failed program was:" >&5
2758 cat conftest.$ac_ext >&5
2759 rm -rf conftest*
2760 CPP="${CC-cc} -nologo -E"
2761 cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2764 #include <assert.h>
2765 Syntax Error
2767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2768 { (eval echo configure:2769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2770 if test -z "$ac_err"; then
2772 else
2773 echo "$ac_err" >&5
2774 echo "configure: failed program was:" >&5
2775 cat conftest.$ac_ext >&5
2776 rm -rf conftest*
2777 CPP=/lib/cpp
2779 rm -f conftest*
2781 rm -f conftest*
2783 rm -f conftest*
2784 ac_cv_prog_CPP="$CPP"
2786 CPP="$ac_cv_prog_CPP"
2787 else
2788 ac_cv_prog_CPP="$CPP"
2790 echo "$ac_t""$CPP" 1>&6
2793 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2794 echo "configure:2795: checking for cstdio to use" >&5
2795 # Check whether --enable-cstdio or --disable-cstdio was given.
2796 if test "${enable_cstdio+set}" = set; then
2797 enableval="$enable_cstdio"
2798 if test x$enable_cstdio = xno; then
2799 enable_cstdio=stdio
2801 else
2802 enable_cstdio=stdio
2806 enable_cstdio_flag=$enable_cstdio
2808 case x${enable_cstdio_flag} in
2809 xlibio)
2810 CSTDIO_H=config/io/c_io_libio.h
2811 BASIC_FILE_H=config/io/basic_file_libio.h
2812 BASIC_FILE_CC=config/io/basic_file_libio.cc
2813 echo "$ac_t""libio" 1>&6
2815 # see if we are on a system with libio native (ie, linux)
2816 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2817 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2818 echo "configure:2819: checking for libio.h" >&5
2819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2820 echo $ac_n "(cached) $ac_c" 1>&6
2821 else
2822 cat > conftest.$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2825 #include <libio.h>
2827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2828 { (eval echo configure:2829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2830 if test -z "$ac_err"; then
2831 rm -rf conftest*
2832 eval "ac_cv_header_$ac_safe=yes"
2833 else
2834 echo "$ac_err" >&5
2835 echo "configure: failed program was:" >&5
2836 cat conftest.$ac_ext >&5
2837 rm -rf conftest*
2838 eval "ac_cv_header_$ac_safe=no"
2840 rm -f conftest*
2842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2843 echo "$ac_t""yes" 1>&6
2844 has_libio=yes
2845 else
2846 echo "$ac_t""no" 1>&6
2847 has_libio=no
2851 # Need to check and see what version of glibc is being used. If
2852 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2853 # compile most of libio for linux systems.
2854 if test x$has_libio = x"yes"; then
2855 case "$target" in
2856 *-*-linux*)
2857 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2858 echo "configure:2859: checking for glibc version >= 2.2" >&5
2859 cat > conftest.$ac_ext <<EOF
2860 #line 2861 "configure"
2861 #include "confdefs.h"
2863 #include <features.h>
2864 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2866 #endif
2869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2870 egrep "ok" >/dev/null 2>&1; then
2871 rm -rf conftest*
2872 glibc_satisfactory=yes
2873 else
2874 rm -rf conftest*
2875 glibc_satisfactory=no
2877 rm -f conftest*
2879 echo "$ac_t""$glibc_satisfactory" 1>&6
2881 esac
2883 # XXX at the moment, admit defeat and force the recompilation
2884 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2885 glibc_satisfactory=no
2887 if test x$glibc_satisfactory = x"yes"; then
2888 need_libio=no
2889 need_wlibio=no
2890 else
2891 need_libio=yes
2892 # bkoz XXX need to add checks to enable this
2893 # pme XXX here's a first pass at such a check
2894 if test x$enable_c_mbchar != xno; then
2895 need_wlibio=yes
2896 else
2897 need_wlibio=no
2901 else
2902 # Using libio, but <libio.h> doesn't exist on the target system. . .
2903 need_libio=yes
2904 # bkoz XXX need to add checks to enable this
2905 # pme XXX here's a first pass at such a check
2906 if test x$enable_c_mbchar != xno; then
2907 need_wlibio=yes
2908 else
2909 need_wlibio=no
2913 xstdio | x | xno | xnone | xyes)
2914 # default
2915 CSTDIO_H=config/io/c_io_stdio.h
2916 BASIC_FILE_H=config/io/basic_file_stdio.h
2917 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2918 echo "$ac_t""stdio" 1>&6
2920 # We're not using stdio.
2921 need_libio=no
2922 need_wlibio=no
2925 echo "$enable_cstdio is an unknown io package" 1>&2
2926 exit 1
2928 esac
2933 # 2000-08-04 bkoz hack
2934 CCODECVT_C=config/io/c_io_libio_codecvt.c
2936 # 2000-08-04 bkoz hack
2940 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2941 GLIBCPP_BUILD_LIBIO_TRUE=
2942 GLIBCPP_BUILD_LIBIO_FALSE='#'
2943 else
2944 GLIBCPP_BUILD_LIBIO_TRUE='#'
2945 GLIBCPP_BUILD_LIBIO_FALSE=
2949 if test "$need_libio" = yes; then
2950 GLIBCPP_NEED_LIBIO_TRUE=
2951 GLIBCPP_NEED_LIBIO_FALSE='#'
2952 else
2953 GLIBCPP_NEED_LIBIO_TRUE='#'
2954 GLIBCPP_NEED_LIBIO_FALSE=
2958 if test "$need_wlibio" = yes; then
2959 GLIBCPP_NEED_WLIBIO_TRUE=
2960 GLIBCPP_NEED_WLIBIO_FALSE='#'
2961 else
2962 GLIBCPP_NEED_WLIBIO_TRUE='#'
2963 GLIBCPP_NEED_WLIBIO_FALSE=
2965 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2966 libio_la=../libio/libio.la
2967 else
2968 libio_la=
2973 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2974 echo "configure:2975: checking for clocale to use" >&5
2975 # Check whether --enable-clocale or --disable-clocale was given.
2976 if test "${enable_clocale+set}" = set; then
2977 enableval="$enable_clocale"
2978 if test x$enable_clocale = xno; then
2979 enable_clocale=no
2981 else
2982 enable_clocale=no
2986 enable_clocale_flag=$enable_clocale
2988 if test x$enable_clocale_flag = xno; then
2989 case x${target_os} in
2990 xlinux* | xgnu*)
2991 cat > conftest.$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2995 #include <features.h>
2996 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2997 _GLIBCPP_ok
2998 #endif
3001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3002 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3003 rm -rf conftest*
3004 enable_clocale_flag=gnu
3005 else
3006 rm -rf conftest*
3007 enable_clocale_flag=generic
3009 rm -f conftest*
3012 # Test for bugs early in glibc-2.2.x series
3013 if test x$enable_clocale_flag = xgnu; then
3014 if test "$cross_compiling" = yes; then
3015 enable_clocale_flag=generic
3016 else
3017 cat > conftest.$ac_ext <<EOF
3018 #line 3019 "configure"
3019 #include "confdefs.h"
3021 #define _GNU_SOURCE 1
3022 #include <locale.h>
3023 int main()
3025 const char __one[] = "Äuglein Augmen";
3026 const char __two[] = "Äuglein";
3027 int i;
3028 int j;
3029 __locale_t loc;
3030 __locale_t loc_dup;
3031 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3032 loc_dup = __duplocale(loc);
3033 i = __strcoll_l(__one, __two, loc);
3034 j = __strcoll_l(__one, __two, loc_dup);
3035 return 0;
3039 if { (eval echo configure:3040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3040 then
3041 enable_clocale_flag=gnu
3042 else
3043 echo "configure: failed program was:" >&5
3044 cat conftest.$ac_ext >&5
3045 rm -fr conftest*
3046 enable_clocale_flag=generic
3048 rm -fr conftest*
3053 # ... at some point put __strxfrm_l tests in as well.
3056 enable_clocale_flag=generic
3058 esac
3061 case x${enable_clocale_flag} in
3062 xgeneric)
3063 echo "$ac_t""generic" 1>&6
3065 # Don't use gettext.
3066 USE_NLS=no
3068 CLOCALE_H=config/locale/c_locale_generic.h
3069 CLOCALE_CC=config/locale/c_locale_generic.cc
3070 CCODECVT_H=config/locale/codecvt_specializations_generic.h
3071 CCOLLATE_CC=config/locale/collate_members_generic.cc
3072 CCTYPE_CC=config/locale/ctype_members_generic.cc
3073 CMESSAGES_H=config/locale/messages_members_generic.h
3074 CMESSAGES_CC=config/locale/messages_members_generic.cc
3075 CMONEY_CC=config/locale/moneypunct_members_generic.cc
3076 CNUMERIC_CC=config/locale/numpunct_members_generic.cc
3077 CTIME_CC=config/locale/time_members_generic.cc
3079 xgnu)
3080 echo "$ac_t""gnu" 1>&6
3082 # Declare intention to use gettext, and add support for specific
3083 # languages.
3084 # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
3085 ALL_LINGUAS="de fr"
3086 # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
3087 # Need to deal with MSGFMT, USE_NLS, and glibcpp_[P,M]OFILES
3088 USE_NLS=yes
3090 # Export the build objects.
3091 for ling in $ALL_LINGUAS; do \
3092 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3093 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3094 done
3098 CLOCALE_H=config/locale/c_locale_gnu.h
3099 CLOCALE_CC=config/locale/c_locale_gnu.cc
3100 CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3101 CCOLLATE_CC=config/locale/collate_members_gnu.cc
3102 CCTYPE_CC=config/locale/ctype_members_gnu.cc
3103 CMESSAGES_H=config/locale/messages_members_gnu.h
3104 CMESSAGES_CC=config/locale/messages_members_gnu.cc
3105 CMONEY_CC=config/locale/moneypunct_members_gnu.cc
3106 CNUMERIC_CC=config/locale/numpunct_members_gnu.cc
3107 CTIME_CC=config/locale/time_members_gnu.cc
3109 xieee_1003.1)
3110 echo "$ac_t""generic" 1>&6
3112 # Don't use gettext.
3113 USE_NLS=no
3115 CLOCALE_H=config/locale/c_locale_ieee_1003.1-200x.h
3116 CLOCALE_CC=config/locale/c_locale_ieee_1003.1-200x.cc
3117 CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3118 CCOLLATE_CC=config/locale/collate_members_generic.cc
3119 CCTYPE_CC=config/locale/ctype_members_generic.cc
3120 CMESSAGES_H=config/locale/messages_members_ieee_1003.1-200x.h
3121 CMESSAGES_CC=config/locale/messages_members_ieee_1003.1-200x.cc
3122 CMONEY_CC=config/locale/moneypunct_members_generic.cc
3123 CNUMERIC_CC=config/locale/numpunct_members_generic.cc
3124 CTIME_CC=config/locale/time_members_generic.cc
3127 echo "$enable_clocale is an unknown locale package" 1>&2
3128 exit 1
3130 esac
3132 # This is where the testsuite looks for locale catalogs, using the
3133 # -DLOCALEDIR define during testsuite compilation.
3134 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3149 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3150 if test "${enable_c_mbchar+set}" = set; then
3151 enableval="$enable_c_mbchar"
3152 case "$enableval" in
3153 yes) enable_c_mbchar=yes ;;
3154 no) enable_c_mbchar=no ;;
3155 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3156 esac
3157 else
3158 enable_c_mbchar=yes
3162 # Check whether --enable-c99 or --disable-c99 was given.
3163 if test "${enable_c99+set}" = set; then
3164 enableval="$enable_c99"
3165 case "$enableval" in
3166 yes) enable_c99=yes ;;
3167 no) enable_c99=no ;;
3168 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3169 esac
3170 else
3171 enable_c99=yes
3175 ac_ext=C
3176 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3177 ac_cpp='$CXXCPP $CPPFLAGS'
3178 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3179 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3180 cross_compiling=$ac_cv_prog_cxx_cross
3183 # Check for the existence of <math.h> functions used if C99 is enabled.
3184 ac_c99_math=yes;
3185 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3186 echo "configure:3187: checking for ISO C99 support in <math.h>" >&5
3187 cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3190 #include <math.h>
3191 int main() {
3192 fpclassify(0.0);
3193 ; return 0; }
3195 if { (eval echo configure:3196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3197 else
3198 echo "configure: failed program was:" >&5
3199 cat conftest.$ac_ext >&5
3200 rm -rf conftest*
3201 ac_c99_math=no
3203 rm -f conftest*
3204 cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3207 #include <math.h>
3208 int main() {
3209 isfinite(0.0);
3210 ; return 0; }
3212 if { (eval echo configure:3213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3214 else
3215 echo "configure: failed program was:" >&5
3216 cat conftest.$ac_ext >&5
3217 rm -rf conftest*
3218 ac_c99_math=no
3220 rm -f conftest*
3221 cat > conftest.$ac_ext <<EOF
3222 #line 3223 "configure"
3223 #include "confdefs.h"
3224 #include <math.h>
3225 int main() {
3226 isinf(0.0);
3227 ; return 0; }
3229 if { (eval echo configure:3230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3231 else
3232 echo "configure: failed program was:" >&5
3233 cat conftest.$ac_ext >&5
3234 rm -rf conftest*
3235 ac_c99_math=no
3237 rm -f conftest*
3238 cat > conftest.$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 #include <math.h>
3242 int main() {
3243 isnan(0.0);
3244 ; return 0; }
3246 if { (eval echo configure:3247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3248 else
3249 echo "configure: failed program was:" >&5
3250 cat conftest.$ac_ext >&5
3251 rm -rf conftest*
3252 ac_c99_math=no
3254 rm -f conftest*
3255 cat > conftest.$ac_ext <<EOF
3256 #line 3257 "configure"
3257 #include "confdefs.h"
3258 #include <math.h>
3259 int main() {
3260 isnormal(0.0);
3261 ; return 0; }
3263 if { (eval echo configure:3264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3265 else
3266 echo "configure: failed program was:" >&5
3267 cat conftest.$ac_ext >&5
3268 rm -rf conftest*
3269 ac_c99_math=no
3271 rm -f conftest*
3272 cat > conftest.$ac_ext <<EOF
3273 #line 3274 "configure"
3274 #include "confdefs.h"
3275 #include <math.h>
3276 int main() {
3277 signbit(0.0);
3278 ; return 0; }
3280 if { (eval echo configure:3281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3282 else
3283 echo "configure: failed program was:" >&5
3284 cat conftest.$ac_ext >&5
3285 rm -rf conftest*
3286 ac_c99_math=no
3288 rm -f conftest*
3289 cat > conftest.$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3292 #include <math.h>
3293 int main() {
3294 isgreater(0.0,0.0);
3295 ; return 0; }
3297 if { (eval echo configure:3298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3299 else
3300 echo "configure: failed program was:" >&5
3301 cat conftest.$ac_ext >&5
3302 rm -rf conftest*
3303 ac_c99_math=no
3305 rm -f conftest*
3306 cat > conftest.$ac_ext <<EOF
3307 #line 3308 "configure"
3308 #include "confdefs.h"
3309 #include <math.h>
3310 int main() {
3311 isgreaterequal(0.0,0.0);
3312 ; return 0; }
3314 if { (eval echo configure:3315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3316 else
3317 echo "configure: failed program was:" >&5
3318 cat conftest.$ac_ext >&5
3319 rm -rf conftest*
3320 ac_c99_math=no
3322 rm -f conftest*
3323 cat > conftest.$ac_ext <<EOF
3324 #line 3325 "configure"
3325 #include "confdefs.h"
3326 #include <math.h>
3327 int main() {
3328 isless(0.0,0.0);
3329 ; return 0; }
3331 if { (eval echo configure:3332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3333 else
3334 echo "configure: failed program was:" >&5
3335 cat conftest.$ac_ext >&5
3336 rm -rf conftest*
3337 ac_c99_math=no
3339 rm -f conftest*
3340 cat > conftest.$ac_ext <<EOF
3341 #line 3342 "configure"
3342 #include "confdefs.h"
3343 #include <math.h>
3344 int main() {
3345 islessequal(0.0,0.0);
3346 ; return 0; }
3348 if { (eval echo configure:3349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3350 else
3351 echo "configure: failed program was:" >&5
3352 cat conftest.$ac_ext >&5
3353 rm -rf conftest*
3354 ac_c99_math=no
3356 rm -f conftest*
3357 cat > conftest.$ac_ext <<EOF
3358 #line 3359 "configure"
3359 #include "confdefs.h"
3360 #include <math.h>
3361 int main() {
3362 islessgreater(0.0,0.0);
3363 ; return 0; }
3365 if { (eval echo configure:3366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3367 else
3368 echo "configure: failed program was:" >&5
3369 cat conftest.$ac_ext >&5
3370 rm -rf conftest*
3371 ac_c99_math=no
3373 rm -f conftest*
3374 cat > conftest.$ac_ext <<EOF
3375 #line 3376 "configure"
3376 #include "confdefs.h"
3377 #include <math.h>
3378 int main() {
3379 isunordered(0.0,0.0);
3380 ; return 0; }
3382 if { (eval echo configure:3383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3384 else
3385 echo "configure: failed program was:" >&5
3386 cat conftest.$ac_ext >&5
3387 rm -rf conftest*
3388 ac_c99_math=no
3390 rm -f conftest*
3391 echo "$ac_t""$ac_c99_math" 1>&6
3393 # Check for the existence in <stdio.h> of vscanf, et. al.
3394 ac_c99_stdio=yes;
3395 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3396 echo "configure:3397: checking for ISO C99 support in <stdio.h>" >&5
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 #include <stdio.h>
3401 int main() {
3402 snprintf("12", 0, "%i");
3403 ; return 0; }
3405 if { (eval echo configure:3406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3407 else
3408 echo "configure: failed program was:" >&5
3409 cat conftest.$ac_ext >&5
3410 rm -rf conftest*
3411 ac_c99_stdio=no
3413 rm -f conftest*
3414 cat > conftest.$ac_ext <<EOF
3415 #line 3416 "configure"
3416 #include "confdefs.h"
3417 #include <stdio.h>
3418 #include <stdarg.h>
3419 void foo(char* fmt, ...)
3420 {va_list args; va_start(args, fmt);
3421 vfscanf(stderr, "%i", args);}
3422 int main() {
3424 ; return 0; }
3426 if { (eval echo configure:3427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3428 else
3429 echo "configure: failed program was:" >&5
3430 cat conftest.$ac_ext >&5
3431 rm -rf conftest*
3432 ac_c99_stdio=no
3434 rm -f conftest*
3435 cat > conftest.$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3438 #include <stdio.h>
3439 #include <stdarg.h>
3440 void foo(char* fmt, ...)
3441 {va_list args; va_start(args, fmt);
3442 vscanf("%i", args);}
3443 int main() {
3445 ; return 0; }
3447 if { (eval echo configure:3448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3449 else
3450 echo "configure: failed program was:" >&5
3451 cat conftest.$ac_ext >&5
3452 rm -rf conftest*
3453 ac_c99_stdio=no
3455 rm -f conftest*
3456 cat > conftest.$ac_ext <<EOF
3457 #line 3458 "configure"
3458 #include "confdefs.h"
3459 #include <stdio.h>
3460 #include <stdarg.h>
3461 void foo(char* fmt, ...)
3462 {va_list args; va_start(args, fmt);
3463 vsnprintf(fmt, 0, "%i", args);}
3464 int main() {
3466 ; return 0; }
3468 if { (eval echo configure:3469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3470 else
3471 echo "configure: failed program was:" >&5
3472 cat conftest.$ac_ext >&5
3473 rm -rf conftest*
3474 ac_c99_stdio=no
3476 rm -f conftest*
3477 cat > conftest.$ac_ext <<EOF
3478 #line 3479 "configure"
3479 #include "confdefs.h"
3480 #include <stdio.h>
3481 #include <stdarg.h>
3482 void foo(char* fmt, ...)
3483 {va_list args; va_start(args, fmt);
3484 vsscanf(fmt, "%i", args);}
3485 int main() {
3487 ; return 0; }
3489 if { (eval echo configure:3490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3491 else
3492 echo "configure: failed program was:" >&5
3493 cat conftest.$ac_ext >&5
3494 rm -rf conftest*
3495 ac_c99_stdio=no
3497 rm -f conftest*
3498 echo "$ac_t""$ac_c99_stdio" 1>&6
3500 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3501 ac_c99_stdlib=yes;
3502 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3503 echo "configure:3504: checking for lldiv_t declaration" >&5
3504 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3506 else
3508 cat > conftest.$ac_ext <<EOF
3509 #line 3510 "configure"
3510 #include "confdefs.h"
3511 #include <stdlib.h>
3512 int main() {
3513 lldiv_t mydivt;
3514 ; return 0; }
3516 if { (eval echo configure:3517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3517 rm -rf conftest*
3518 ac_c99_lldiv_t=yes
3519 else
3520 echo "configure: failed program was:" >&5
3521 cat conftest.$ac_ext >&5
3522 rm -rf conftest*
3523 ac_c99_lldiv_t=no
3525 rm -f conftest*
3529 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3531 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3532 echo "configure:3533: checking for ISO C99 support in <stdlib.h>" >&5
3533 cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3536 #include <stdlib.h>
3537 int main() {
3538 char* tmp; strtof("gnu", &tmp);
3539 ; return 0; }
3541 if { (eval echo configure:3542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3543 else
3544 echo "configure: failed program was:" >&5
3545 cat conftest.$ac_ext >&5
3546 rm -rf conftest*
3547 ac_c99_stdlib=no
3549 rm -f conftest*
3550 cat > conftest.$ac_ext <<EOF
3551 #line 3552 "configure"
3552 #include "confdefs.h"
3553 #include <stdlib.h>
3554 int main() {
3555 char* tmp; strtold("gnu", &tmp);
3556 ; return 0; }
3558 if { (eval echo configure:3559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3560 else
3561 echo "configure: failed program was:" >&5
3562 cat conftest.$ac_ext >&5
3563 rm -rf conftest*
3564 ac_c99_stdlib=no
3566 rm -f conftest*
3567 cat > conftest.$ac_ext <<EOF
3568 #line 3569 "configure"
3569 #include "confdefs.h"
3570 #include <stdlib.h>
3571 int main() {
3572 llabs(10);
3573 ; return 0; }
3575 if { (eval echo configure:3576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3577 else
3578 echo "configure: failed program was:" >&5
3579 cat conftest.$ac_ext >&5
3580 rm -rf conftest*
3581 ac_c99_stdlib=no
3583 rm -f conftest*
3584 cat > conftest.$ac_ext <<EOF
3585 #line 3586 "configure"
3586 #include "confdefs.h"
3587 #include <stdlib.h>
3588 int main() {
3589 lldiv(10,1);
3590 ; return 0; }
3592 if { (eval echo configure:3593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3594 else
3595 echo "configure: failed program was:" >&5
3596 cat conftest.$ac_ext >&5
3597 rm -rf conftest*
3598 ac_c99_stdlib=no
3600 rm -f conftest*
3601 cat > conftest.$ac_ext <<EOF
3602 #line 3603 "configure"
3603 #include "confdefs.h"
3604 #include <stdlib.h>
3605 int main() {
3606 atoll("10");
3607 ; return 0; }
3609 if { (eval echo configure:3610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3611 else
3612 echo "configure: failed program was:" >&5
3613 cat conftest.$ac_ext >&5
3614 rm -rf conftest*
3615 ac_c99_stdlib=no
3617 rm -f conftest*
3618 cat > conftest.$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3621 #include <stdlib.h>
3622 int main() {
3623 _Exit(0);
3624 ; return 0; }
3626 if { (eval echo configure:3627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3628 else
3629 echo "configure: failed program was:" >&5
3630 cat conftest.$ac_ext >&5
3631 rm -rf conftest*
3632 ac_c99_stdlib=no
3634 rm -f conftest*
3635 if test x"$ac_c99_lldiv_t" = x"no"; then
3636 ac_c99_stdlib=no;
3637 fi;
3638 echo "$ac_t""$ac_c99_stdlib" 1>&6
3640 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3641 # XXX the wchar.h checks should be rolled into the general C99 bits.
3642 ac_c99_wchar=yes;
3643 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3644 echo "configure:3645: checking for additional ISO C99 support in <wchar.h>" >&5
3645 cat > conftest.$ac_ext <<EOF
3646 #line 3647 "configure"
3647 #include "confdefs.h"
3648 #include <wchar.h>
3649 int main() {
3650 wcstold(L"10.0", NULL);
3651 ; return 0; }
3653 if { (eval echo configure:3654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3655 else
3656 echo "configure: failed program was:" >&5
3657 cat conftest.$ac_ext >&5
3658 rm -rf conftest*
3659 ac_c99_wchar=no
3661 rm -f conftest*
3662 cat > conftest.$ac_ext <<EOF
3663 #line 3664 "configure"
3664 #include "confdefs.h"
3665 #include <wchar.h>
3666 int main() {
3667 wcstoll(L"10", NULL, 10);
3668 ; return 0; }
3670 if { (eval echo configure:3671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3672 else
3673 echo "configure: failed program was:" >&5
3674 cat conftest.$ac_ext >&5
3675 rm -rf conftest*
3676 ac_c99_wchar=no
3678 rm -f conftest*
3679 cat > conftest.$ac_ext <<EOF
3680 #line 3681 "configure"
3681 #include "confdefs.h"
3682 #include <wchar.h>
3683 int main() {
3684 wcstoull(L"10", NULL, 10);
3685 ; return 0; }
3687 if { (eval echo configure:3688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3689 else
3690 echo "configure: failed program was:" >&5
3691 cat conftest.$ac_ext >&5
3692 rm -rf conftest*
3693 ac_c99_wchar=no
3695 rm -f conftest*
3696 echo "$ac_t""$ac_c99_wchar" 1>&6
3698 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3699 echo "configure:3700: checking for enabled ISO C99 support" >&5
3700 if test x"$ac_c99_math" = x"no" ||
3701 test x"$ac_c99_stdio" = x"no" ||
3702 test x"$ac_c99_stdlib" = x"no" ||
3703 test x"$ac_c99_wchar" = x"no"; then
3704 enable_c99=no;
3705 fi;
3706 echo "$ac_t""$enable_c99" 1>&6
3708 # Option parsed, now set things appropriately
3709 if test x"$enable_c99" = x"yes"; then
3710 cat >> confdefs.h <<\EOF
3711 #define _GLIBCPP_USE_C99 1
3716 ac_ext=c
3717 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3718 ac_cpp='$CPP $CPPFLAGS'
3719 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3720 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3721 cross_compiling=$ac_cv_prog_cc_cross
3725 # Check whether --enable-long-long or --disable-long-long was given.
3726 if test "${enable_long_long+set}" = set; then
3727 enableval="$enable_long_long"
3728 case "$enableval" in
3729 yes) enable_long_long=yes ;;
3730 no) enable_long_long=no ;;
3731 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3732 esac
3733 else
3734 enable_long_long=yes
3738 ac_ext=C
3739 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3740 ac_cpp='$CXXCPP $CPPFLAGS'
3741 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3742 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3743 cross_compiling=$ac_cv_prog_cxx_cross
3746 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3747 echo "configure:3748: checking for enabled long long I/O support" >&5
3748 # iostreams require strtoll, strtoull to compile
3749 cat > conftest.$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3752 #include <stdlib.h>
3753 int main() {
3754 char* tmp; strtoll("gnu", &tmp, 10);
3755 ; return 0; }
3757 if { (eval echo configure:3758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3759 else
3760 echo "configure: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3762 rm -rf conftest*
3763 enable_long_long=no
3765 rm -f conftest*
3766 cat > conftest.$ac_ext <<EOF
3767 #line 3768 "configure"
3768 #include "confdefs.h"
3769 #include <stdlib.h>
3770 int main() {
3771 char* tmp; strtoull("gnu", &tmp, 10);
3772 ; return 0; }
3774 if { (eval echo configure:3775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3776 else
3777 echo "configure: failed program was:" >&5
3778 cat conftest.$ac_ext >&5
3779 rm -rf conftest*
3780 enable_long_long=no
3782 rm -f conftest*
3784 # Option parsed, now set things appropriately
3785 if test x"$enable_long_long" = xyes; then
3786 cat >> confdefs.h <<\EOF
3787 #define _GLIBCPP_USE_LONG_LONG 1
3791 echo "$ac_t""$enable_long_long" 1>&6
3793 ac_ext=c
3794 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3797 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3798 cross_compiling=$ac_cv_prog_cc_cross
3801 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3802 echo "configure:3803: checking for c header strategy to use" >&5
3803 # Check whether --enable-cheaders or --disable-cheaders was given.
3804 if test "${enable_cheaders+set}" = set; then
3805 enableval="$enable_cheaders"
3807 case "$enableval" in
3809 enable_cheaders=c
3811 c_std)
3812 enable_cheaders=c_std
3814 c_shadow)
3815 enable_cheaders=c_shadow
3817 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3819 esac
3820 else
3821 enable_cheaders=c_std
3824 echo "$ac_t""$enable_cheaders" 1>&6
3826 case "$enable_cheaders" in
3827 c_shadow)
3828 CSHADOW_FLAGS="-fno-builtin"
3829 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3830 cat >> confdefs.h <<\EOF
3831 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3835 c_std)
3836 CSHADOW_FLAGS=""
3837 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3840 CSHADOW_FLAGS=""
3841 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3843 esac
3849 if test "$enable_cheaders" = c_shadow; then
3850 GLIBCPP_USE_CSHADOW_TRUE=
3851 GLIBCPP_USE_CSHADOW_FALSE='#'
3852 else
3853 GLIBCPP_USE_CSHADOW_TRUE='#'
3854 GLIBCPP_USE_CSHADOW_FALSE=
3858 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3859 echo "configure:3860: checking for thread model used by GCC" >&5
3860 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3861 echo "$ac_t""$target_thread_file" 1>&6
3863 if test $target_thread_file != single; then
3864 cat >> confdefs.h <<\EOF
3865 #define HAVE_GTHR_DEFAULT 1
3868 cat >> confdefs.h <<\EOF
3869 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3874 glibcpp_thread_h=gthr-$target_thread_file.h
3877 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3878 if test "${enable_cxx_flags+set}" = set; then
3879 enableval="$enable_cxx_flags"
3880 case "x$enableval" in
3881 xyes)
3882 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3883 xno|x)
3884 enable_cxx_flags='' ;;
3886 enable_cxx_flags="$enableval" ;;
3887 esac
3888 else
3889 enable_cxx_flags='none'
3893 if test "$enable_cxx_flags" = "none"; then
3894 enable_cxx_flags='';
3897 if test -n "$enable_cxx_flags"; then
3898 for f in $enable_cxx_flags; do
3899 case "$f" in
3900 -fhonor-std) ;;
3901 -*) ;;
3902 *) # and we're trying to pass /what/ exactly?
3903 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3904 esac
3905 done
3907 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3911 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3912 echo "configure:3913: checking for exception model to use" >&5
3914 ac_ext=C
3915 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3916 ac_cpp='$CXXCPP $CPPFLAGS'
3917 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3918 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3919 cross_compiling=$ac_cv_prog_cxx_cross
3921 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3922 if test "${enable_sjlj_exceptions+set}" = set; then
3923 enableval="$enable_sjlj_exceptions"
3925 else
3926 cat > conftest.$ac_ext << EOF
3927 #line 3928 "configure"
3928 struct S { ~S(); };
3929 void bar();
3930 void foo()
3932 S s;
3933 bar();
3936 old_CXXFLAGS="$CXXFLAGS"
3937 CXXFLAGS=-S
3938 if { (eval echo configure:3939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3939 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3940 enable_sjlj_exceptions=yes
3941 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3942 enable_sjlj_exceptions=no
3945 CXXFLAGS="$old_CXXFLAGS"
3946 rm -f conftest*
3949 if test x$enable_sjlj_exceptions = xyes; then
3950 cat >> confdefs.h <<\EOF
3951 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3954 ac_exception_model_name=sjlj
3955 elif test x$enable_sjlj_exceptions = xno; then
3956 ac_exception_model_name="call frame"
3957 else
3958 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3960 ac_ext=c
3961 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3962 ac_cpp='$CPP $CPPFLAGS'
3963 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3964 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3965 cross_compiling=$ac_cv_prog_cc_cross
3967 echo "$ac_t""$ac_exception_model_name" 1>&6
3969 # Check whether --enable-concept-checks or --disable-concept-checks was given.
3970 if test "${enable_concept_checks+set}" = set; then
3971 enableval="$enable_concept_checks"
3972 case "$enableval" in
3973 yes) enable_concept_checks=yes ;;
3974 no) enable_concept_checks=no ;;
3975 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
3976 esac
3977 else
3978 enable_concept_checks=no
3980 if test x"$enable_concept_checks" = xyes; then
3981 cat >> confdefs.h <<\EOF
3982 #define _GLIBCPP_CONCEPT_CHECKS 1
3989 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
3991 # This lets us hard-code the functionality we know
3992 # we'll have in the cross target environment. "Let" is a
3993 # sugar-coated word placed on an especially dull and tedious hack, actually.
3994 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
3995 # that involve linking can't be used:
3996 # "cannot open sim-crt0.o"
3997 # "cannot open crt0.o"
3998 # etc. All this is because there currently exists no unified,
3999 # consistent way for top level CC information to be passed down
4000 # to target directories: newlib includes, newlib linking info,
4001 # libgloss versus newlib crt0.o, etc. When all of this is done, all
4002 # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
4004 # We are being configured with some form of cross compiler.
4005 GLIBCPP_IS_CROSS_COMPILING=1
4007 # If Canadian cross, then don't pick up tools from the build
4008 # directory.
4009 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4010 CANADIAN=yes
4011 else
4012 CANADIAN=no
4015 # Construct crosses by hand, eliminating bits that need ld...
4016 # GLIBCPP_CHECK_COMPILER_FEATURES
4017 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4018 # GLIBCPP_CHECK_MATH_SUPPORT
4020 case "$target_alias" in
4021 *-linux*)
4022 # Check for available headers.
4023 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4024 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4025 fp.h locale.h float.h inttypes.h
4027 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4029 echo "configure:4030: checking for $ac_hdr" >&5
4030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4032 else
4033 cat > conftest.$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4036 #include <$ac_hdr>
4038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4039 { (eval echo configure:4040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4041 if test -z "$ac_err"; then
4042 rm -rf conftest*
4043 eval "ac_cv_header_$ac_safe=yes"
4044 else
4045 echo "$ac_err" >&5
4046 echo "configure: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4048 rm -rf conftest*
4049 eval "ac_cv_header_$ac_safe=no"
4051 rm -f conftest*
4053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4054 echo "$ac_t""yes" 1>&6
4055 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4056 cat >> confdefs.h <<EOF
4057 #define $ac_tr_hdr 1
4060 else
4061 echo "$ac_t""no" 1>&6
4063 done
4065 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4068 # If we're not using GNU ld, then there's no point in even trying these
4069 # tests. Check for that first. We should have already tested for gld
4070 # by now (in libtool), but require it now just to be safe...
4071 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4072 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4075 # The name set by libtool depends on the version of libtool. Shame on us
4076 # for depending on an impl detail, but c'est la vie. Older versions used
4077 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4078 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4079 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4080 # set (hence we're using an older libtool), then set it.
4081 if test x${with_gnu_ld+set} != xset; then
4082 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4083 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4084 with_gnu_ld=no
4085 else
4086 with_gnu_ld=$ac_cv_prog_gnu_ld
4090 # Start by getting the version number. I think the libtool test already
4091 # does some of this, but throws away the result.
4093 ldver=`$LD --version 2>/dev/null | head -1 | \
4094 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4096 glibcpp_gnu_ld_version=`echo $ldver | \
4097 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4099 # Set --gc-sections.
4100 if test "$with_gnu_ld" = "notbroken"; then
4101 # GNU ld it is! Joy and bunny rabbits!
4103 # All these tests are for C++; save the language and the compiler flags.
4104 # Need to do this so that g++ won't try to link in libstdc++
4105 ac_test_CFLAGS="${CFLAGS+set}"
4106 ac_save_CFLAGS="$CFLAGS"
4107 CFLAGS='-x c++ -Wl,--gc-sections'
4109 # Check for -Wl,--gc-sections
4110 # XXX This test is broken at the moment, as symbols required for
4111 # linking are now in libsupc++ (not built yet.....). In addition,
4112 # this test has cored on solaris in the past. In addition,
4113 # --gc-sections doesn't really work at the moment (keeps on discarding
4114 # used sections, first .eh_frame and now some of the glibc sections for
4115 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4116 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4117 echo "configure:4118: checking for ld that supports -Wl,--gc-sections" >&5
4118 if test "$cross_compiling" = yes; then
4119 ac_sectionLDflags=yes
4120 else
4121 cat > conftest.$ac_ext <<EOF
4122 #line 4123 "configure"
4123 #include "confdefs.h"
4125 int main(void)
4127 try { throw 1; }
4128 catch (...) { };
4129 return 0;
4133 if { (eval echo configure:4134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4134 then
4135 ac_sectionLDflags=yes
4136 else
4137 echo "configure: failed program was:" >&5
4138 cat conftest.$ac_ext >&5
4139 rm -fr conftest*
4140 ac_sectionLDflags=no
4142 rm -fr conftest*
4145 if test "$ac_test_CFLAGS" = set; then
4146 CFLAGS="$ac_save_CFLAGS"
4147 else
4148 # this is the suspicious part
4149 CFLAGS=''
4151 if test "$ac_sectionLDflags" = "yes"; then
4152 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4154 echo "$ac_t""$ac_sectionLDflags" 1>&6
4157 # Set linker optimization flags.
4158 if test x"$with_gnu_ld" = x"yes" &&
4159 test x"$enable_debug" = x"no"; then
4160 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4167 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4168 echo "configure:4169: checking for main in -lm" >&5
4169 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4171 echo $ac_n "(cached) $ac_c" 1>&6
4172 else
4173 ac_save_LIBS="$LIBS"
4174 LIBS="-lm $LIBS"
4175 cat > conftest.$ac_ext <<EOF
4176 #line 4177 "configure"
4177 #include "confdefs.h"
4179 int main() {
4180 main()
4181 ; return 0; }
4183 if { (eval echo configure:4184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4184 rm -rf conftest*
4185 eval "ac_cv_lib_$ac_lib_var=yes"
4186 else
4187 echo "configure: failed program was:" >&5
4188 cat conftest.$ac_ext >&5
4189 rm -rf conftest*
4190 eval "ac_cv_lib_$ac_lib_var=no"
4192 rm -f conftest*
4193 LIBS="$ac_save_LIBS"
4196 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4197 echo "$ac_t""yes" 1>&6
4198 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4199 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4200 cat >> confdefs.h <<EOF
4201 #define $ac_tr_lib 1
4204 LIBS="-lm $LIBS"
4206 else
4207 echo "$ac_t""no" 1>&6
4210 for ac_func in nan copysignf
4212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4213 echo "configure:4214: checking for $ac_func" >&5
4214 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4216 else
4217 cat > conftest.$ac_ext <<EOF
4218 #line 4219 "configure"
4219 #include "confdefs.h"
4220 /* System header to define __stub macros and hopefully few prototypes,
4221 which can conflict with char $ac_func(); below. */
4222 #include <assert.h>
4223 /* Override any gcc2 internal prototype to avoid an error. */
4224 /* We use char because int might match the return type of a gcc2
4225 builtin and then its argument prototype would still apply. */
4226 char $ac_func();
4228 int main() {
4230 /* The GNU C library defines this for functions which it implements
4231 to always fail with ENOSYS. Some functions are actually named
4232 something starting with __ and the normal name is an alias. */
4233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4234 choke me
4235 #else
4236 $ac_func();
4237 #endif
4239 ; return 0; }
4241 if { (eval echo configure:4242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4242 rm -rf conftest*
4243 eval "ac_cv_func_$ac_func=yes"
4244 else
4245 echo "configure: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4247 rm -rf conftest*
4248 eval "ac_cv_func_$ac_func=no"
4250 rm -f conftest*
4253 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4254 echo "$ac_t""yes" 1>&6
4255 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4256 cat >> confdefs.h <<EOF
4257 #define $ac_tr_func 1
4260 else
4261 echo "$ac_t""no" 1>&6
4262 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4264 done
4268 USE_COMPLEX_LONG_DOUBLE=no
4269 if test x$ac_cv_func_copysignl = x"yes"; then
4270 USE_COMPLEX_LONG_DOUBLE=yes
4271 for ac_func in signbitl
4273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4274 echo "configure:4275: checking for $ac_func" >&5
4275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4277 else
4278 cat > conftest.$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4281 /* System header to define __stub macros and hopefully few prototypes,
4282 which can conflict with char $ac_func(); below. */
4283 #include <assert.h>
4284 /* Override any gcc2 internal prototype to avoid an error. */
4285 /* We use char because int might match the return type of a gcc2
4286 builtin and then its argument prototype would still apply. */
4287 char $ac_func();
4289 int main() {
4291 /* The GNU C library defines this for functions which it implements
4292 to always fail with ENOSYS. Some functions are actually named
4293 something starting with __ and the normal name is an alias. */
4294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4295 choke me
4296 #else
4297 $ac_func();
4298 #endif
4300 ; return 0; }
4302 if { (eval echo configure:4303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4303 rm -rf conftest*
4304 eval "ac_cv_func_$ac_func=yes"
4305 else
4306 echo "configure: failed program was:" >&5
4307 cat conftest.$ac_ext >&5
4308 rm -rf conftest*
4309 eval "ac_cv_func_$ac_func=no"
4311 rm -f conftest*
4314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4315 echo "$ac_t""yes" 1>&6
4316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4317 cat >> confdefs.h <<EOF
4318 #define $ac_tr_func 1
4321 else
4322 echo "$ac_t""no" 1>&6
4323 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4325 done
4334 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4335 echo "configure:4336: checking for mbstate_t" >&5
4336 cat > conftest.$ac_ext <<EOF
4337 #line 4338 "configure"
4338 #include "confdefs.h"
4339 #include <wchar.h>
4340 int main() {
4341 mbstate_t teststate;
4342 ; return 0; }
4344 if { (eval echo configure:4345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4345 rm -rf conftest*
4346 have_mbstate_t=yes
4347 else
4348 echo "configure: failed program was:" >&5
4349 cat conftest.$ac_ext >&5
4350 rm -rf conftest*
4351 have_mbstate_t=no
4353 rm -f conftest*
4354 echo "$ac_t""$have_mbstate_t" 1>&6
4355 if test x"$have_mbstate_t" = xyes; then
4356 cat >> confdefs.h <<\EOF
4357 #define HAVE_MBSTATE_T 1
4362 for ac_hdr in wchar.h
4364 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4365 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4366 echo "configure:4367: checking for $ac_hdr" >&5
4367 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4369 else
4370 cat > conftest.$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4373 #include <$ac_hdr>
4375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4376 { (eval echo configure:4377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4378 if test -z "$ac_err"; then
4379 rm -rf conftest*
4380 eval "ac_cv_header_$ac_safe=yes"
4381 else
4382 echo "$ac_err" >&5
4383 echo "configure: failed program was:" >&5
4384 cat conftest.$ac_ext >&5
4385 rm -rf conftest*
4386 eval "ac_cv_header_$ac_safe=no"
4388 rm -f conftest*
4390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4392 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4393 cat >> confdefs.h <<EOF
4394 #define $ac_tr_hdr 1
4396 ac_has_wchar_h=yes
4397 else
4398 echo "$ac_t""no" 1>&6
4399 ac_has_wchar_h=no
4401 done
4403 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4404 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4405 echo "configure:4406: checking for wctype.h" >&5
4406 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4407 echo $ac_n "(cached) $ac_c" 1>&6
4408 else
4409 cat > conftest.$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4412 #include <wctype.h>
4414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4415 { (eval echo configure:4416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4417 if test -z "$ac_err"; then
4418 rm -rf conftest*
4419 eval "ac_cv_header_$ac_safe=yes"
4420 else
4421 echo "$ac_err" >&5
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4424 rm -rf conftest*
4425 eval "ac_cv_header_$ac_safe=no"
4427 rm -f conftest*
4429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4430 echo "$ac_t""yes" 1>&6
4431 ac_has_wctype_h=yes
4432 else
4433 echo "$ac_t""no" 1>&6
4434 ac_has_wctype_h=no
4438 if test x"$ac_has_wchar_h" = xyes &&
4439 test x"$ac_has_wctype_h" = xyes &&
4440 test x"$enable_c_mbchar" != xno; then
4442 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4443 echo "configure:4444: checking for WCHAR_MIN and WCHAR_MAX" >&5
4444 cat > conftest.$ac_ext <<EOF
4445 #line 4446 "configure"
4446 #include "confdefs.h"
4447 #include <wchar.h>
4448 int main() {
4449 int i = WCHAR_MIN; int j = WCHAR_MAX;
4450 ; return 0; }
4452 if { (eval echo configure:4453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4453 rm -rf conftest*
4454 has_wchar_minmax=yes
4455 else
4456 echo "configure: failed program was:" >&5
4457 cat conftest.$ac_ext >&5
4458 rm -rf conftest*
4459 has_wchar_minmax=no
4461 rm -f conftest*
4462 echo "$ac_t""$has_wchar_minmax" 1>&6
4464 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4465 echo "configure:4466: checking for WEOF" >&5
4466 cat > conftest.$ac_ext <<EOF
4467 #line 4468 "configure"
4468 #include "confdefs.h"
4470 #include <wchar.h>
4471 #include <stddef.h>
4472 int main() {
4473 wint_t i = WEOF;
4474 ; return 0; }
4476 if { (eval echo configure:4477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4477 rm -rf conftest*
4478 has_weof=yes
4479 else
4480 echo "configure: failed program was:" >&5
4481 cat conftest.$ac_ext >&5
4482 rm -rf conftest*
4483 has_weof=no
4485 rm -f conftest*
4486 echo "$ac_t""$has_weof" 1>&6
4488 ac_wfuncs=yes
4489 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4492 echo "configure:4493: checking for $ac_func" >&5
4493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4494 echo $ac_n "(cached) $ac_c" 1>&6
4495 else
4496 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4499 /* System header to define __stub macros and hopefully few prototypes,
4500 which can conflict with char $ac_func(); below. */
4501 #include <assert.h>
4502 /* Override any gcc2 internal prototype to avoid an error. */
4503 /* We use char because int might match the return type of a gcc2
4504 builtin and then its argument prototype would still apply. */
4505 char $ac_func();
4507 int main() {
4509 /* The GNU C library defines this for functions which it implements
4510 to always fail with ENOSYS. Some functions are actually named
4511 something starting with __ and the normal name is an alias. */
4512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4513 choke me
4514 #else
4515 $ac_func();
4516 #endif
4518 ; return 0; }
4520 if { (eval echo configure:4521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4521 rm -rf conftest*
4522 eval "ac_cv_func_$ac_func=yes"
4523 else
4524 echo "configure: failed program was:" >&5
4525 cat conftest.$ac_ext >&5
4526 rm -rf conftest*
4527 eval "ac_cv_func_$ac_func=no"
4529 rm -f conftest*
4532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4533 echo "$ac_t""yes" 1>&6
4534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4535 cat >> confdefs.h <<EOF
4536 #define $ac_tr_func 1
4539 else
4540 echo "$ac_t""no" 1>&6
4542 ac_wfuncs=no
4544 done
4547 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4548 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4549 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4550 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4551 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4552 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4555 echo "configure:4556: checking for $ac_func" >&5
4556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6
4558 else
4559 cat > conftest.$ac_ext <<EOF
4560 #line 4561 "configure"
4561 #include "confdefs.h"
4562 /* System header to define __stub macros and hopefully few prototypes,
4563 which can conflict with char $ac_func(); below. */
4564 #include <assert.h>
4565 /* Override any gcc2 internal prototype to avoid an error. */
4566 /* We use char because int might match the return type of a gcc2
4567 builtin and then its argument prototype would still apply. */
4568 char $ac_func();
4570 int main() {
4572 /* The GNU C library defines this for functions which it implements
4573 to always fail with ENOSYS. Some functions are actually named
4574 something starting with __ and the normal name is an alias. */
4575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4576 choke me
4577 #else
4578 $ac_func();
4579 #endif
4581 ; return 0; }
4583 if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4584 rm -rf conftest*
4585 eval "ac_cv_func_$ac_func=yes"
4586 else
4587 echo "configure: failed program was:" >&5
4588 cat conftest.$ac_ext >&5
4589 rm -rf conftest*
4590 eval "ac_cv_func_$ac_func=no"
4592 rm -f conftest*
4595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4596 echo "$ac_t""yes" 1>&6
4597 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4598 cat >> confdefs.h <<EOF
4599 #define $ac_tr_func 1
4602 else
4603 echo "$ac_t""no" 1>&6
4605 ac_wfuncs=no
4607 done
4610 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4611 echo "configure:4612: checking for ISO C99 wchar_t support" >&5
4612 if test x"$has_weof" = xyes &&
4613 test x"$has_wchar_minmax" = xyes &&
4614 test x"$ac_wfuncs" = xyes; then
4615 ac_isoC99_wchar_t=yes
4616 else
4617 ac_isoC99_wchar_t=no
4619 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4621 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4622 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4623 echo "configure:4624: checking for iconv.h" >&5
4624 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6
4626 else
4627 cat > conftest.$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4630 #include <iconv.h>
4632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4633 { (eval echo configure:4634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4635 if test -z "$ac_err"; then
4636 rm -rf conftest*
4637 eval "ac_cv_header_$ac_safe=yes"
4638 else
4639 echo "$ac_err" >&5
4640 echo "configure: failed program was:" >&5
4641 cat conftest.$ac_ext >&5
4642 rm -rf conftest*
4643 eval "ac_cv_header_$ac_safe=no"
4645 rm -f conftest*
4647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4648 echo "$ac_t""yes" 1>&6
4649 ac_has_iconv_h=yes
4650 else
4651 echo "$ac_t""no" 1>&6
4652 ac_has_iconv_h=no
4655 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4656 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4657 echo "configure:4658: checking for langinfo.h" >&5
4658 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4659 echo $ac_n "(cached) $ac_c" 1>&6
4660 else
4661 cat > conftest.$ac_ext <<EOF
4662 #line 4663 "configure"
4663 #include "confdefs.h"
4664 #include <langinfo.h>
4666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4667 { (eval echo configure:4668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4668 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4669 if test -z "$ac_err"; then
4670 rm -rf conftest*
4671 eval "ac_cv_header_$ac_safe=yes"
4672 else
4673 echo "$ac_err" >&5
4674 echo "configure: failed program was:" >&5
4675 cat conftest.$ac_ext >&5
4676 rm -rf conftest*
4677 eval "ac_cv_header_$ac_safe=no"
4679 rm -f conftest*
4681 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4682 echo "$ac_t""yes" 1>&6
4683 ac_has_langinfo_h=yes
4684 else
4685 echo "$ac_t""no" 1>&6
4686 ac_has_langinfo_h=no
4690 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4691 echo "configure:4692: checking for iconv in -liconv" >&5
4692 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4694 echo $ac_n "(cached) $ac_c" 1>&6
4695 else
4696 ac_save_LIBS="$LIBS"
4697 LIBS="-liconv $LIBS"
4698 cat > conftest.$ac_ext <<EOF
4699 #line 4700 "configure"
4700 #include "confdefs.h"
4701 /* Override any gcc2 internal prototype to avoid an error. */
4702 /* We use char because int might match the return type of a gcc2
4703 builtin and then its argument prototype would still apply. */
4704 char iconv();
4706 int main() {
4707 iconv()
4708 ; return 0; }
4710 if { (eval echo configure:4711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4711 rm -rf conftest*
4712 eval "ac_cv_lib_$ac_lib_var=yes"
4713 else
4714 echo "configure: failed program was:" >&5
4715 cat conftest.$ac_ext >&5
4716 rm -rf conftest*
4717 eval "ac_cv_lib_$ac_lib_var=no"
4719 rm -f conftest*
4720 LIBS="$ac_save_LIBS"
4723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4724 echo "$ac_t""yes" 1>&6
4725 libiconv="-liconv"
4726 else
4727 echo "$ac_t""no" 1>&6
4730 ac_save_LIBS="$LIBS"
4731 LIBS="$LIBS $libiconv"
4733 for ac_func in iconv_open iconv_close iconv nl_langinfo
4735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4736 echo "configure:4737: checking for $ac_func" >&5
4737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4738 echo $ac_n "(cached) $ac_c" 1>&6
4739 else
4740 cat > conftest.$ac_ext <<EOF
4741 #line 4742 "configure"
4742 #include "confdefs.h"
4743 /* System header to define __stub macros and hopefully few prototypes,
4744 which can conflict with char $ac_func(); below. */
4745 #include <assert.h>
4746 /* Override any gcc2 internal prototype to avoid an error. */
4747 /* We use char because int might match the return type of a gcc2
4748 builtin and then its argument prototype would still apply. */
4749 char $ac_func();
4751 int main() {
4753 /* The GNU C library defines this for functions which it implements
4754 to always fail with ENOSYS. Some functions are actually named
4755 something starting with __ and the normal name is an alias. */
4756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4757 choke me
4758 #else
4759 $ac_func();
4760 #endif
4762 ; return 0; }
4764 if { (eval echo configure:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4765 rm -rf conftest*
4766 eval "ac_cv_func_$ac_func=yes"
4767 else
4768 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4770 rm -rf conftest*
4771 eval "ac_cv_func_$ac_func=no"
4773 rm -f conftest*
4776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4777 echo "$ac_t""yes" 1>&6
4778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4779 cat >> confdefs.h <<EOF
4780 #define $ac_tr_func 1
4783 ac_XPG2funcs=yes
4784 else
4785 echo "$ac_t""no" 1>&6
4786 ac_XPG2funcs=no
4788 done
4791 LIBS="$ac_save_LIBS"
4793 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4794 echo "configure:4795: checking for XPG2 wchar_t support" >&5
4795 if test x"$ac_has_iconv_h" = xyes &&
4796 test x"$ac_has_langinfo_h" = xyes &&
4797 test x"$ac_XPG2funcs" = xyes; then
4798 ac_XPG2_wchar_t=yes
4799 else
4800 ac_XPG2_wchar_t=no
4802 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4804 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4805 echo "configure:4806: checking for enabled wchar_t specializations" >&5
4806 if test x"$ac_isoC99_wchar_t" = xyes &&
4807 test x"$ac_XPG2_wchar_t" = xyes; then
4808 cat >> confdefs.h <<\EOF
4809 #define _GLIBCPP_USE_WCHAR_T 1
4812 echo "$ac_t"""yes"" 1>&6
4813 else
4814 echo "$ac_t"""no"" 1>&6
4816 else
4817 echo "configure: warning: wchar_t support disabled." 1>&2
4820 os_include_dir="config/os/gnu-linux"
4821 cat >> confdefs.h <<\EOF
4822 #define HAVE_COPYSIGN 1
4825 cat >> confdefs.h <<\EOF
4826 #define HAVE_COPYSIGNF 1
4829 cat >> confdefs.h <<\EOF
4830 #define HAVE_FINITEF 1
4833 cat >> confdefs.h <<\EOF
4834 #define HAVE_FREXPF 1
4837 cat >> confdefs.h <<\EOF
4838 #define HAVE_HYPOTF 1
4841 cat >> confdefs.h <<\EOF
4842 #define HAVE_SINCOS 1
4845 cat >> confdefs.h <<\EOF
4846 #define HAVE_SINCOSF 1
4849 if test x"long_double_math_on_this_cpu" = x"yes"; then
4850 cat >> confdefs.h <<\EOF
4851 #define HAVE_HYPOTL 1
4856 *-hpux*)
4857 # Check for available headers.
4858 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4859 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4860 fp.h locale.h float.h inttypes.h
4862 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4863 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4864 echo "configure:4865: checking for $ac_hdr" >&5
4865 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4866 echo $ac_n "(cached) $ac_c" 1>&6
4867 else
4868 cat > conftest.$ac_ext <<EOF
4869 #line 4870 "configure"
4870 #include "confdefs.h"
4871 #include <$ac_hdr>
4873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4874 { (eval echo configure:4875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4876 if test -z "$ac_err"; then
4877 rm -rf conftest*
4878 eval "ac_cv_header_$ac_safe=yes"
4879 else
4880 echo "$ac_err" >&5
4881 echo "configure: failed program was:" >&5
4882 cat conftest.$ac_ext >&5
4883 rm -rf conftest*
4884 eval "ac_cv_header_$ac_safe=no"
4886 rm -f conftest*
4888 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4889 echo "$ac_t""yes" 1>&6
4890 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4891 cat >> confdefs.h <<EOF
4892 #define $ac_tr_hdr 1
4895 else
4896 echo "$ac_t""no" 1>&6
4898 done
4900 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4903 # If we're not using GNU ld, then there's no point in even trying these
4904 # tests. Check for that first. We should have already tested for gld
4905 # by now (in libtool), but require it now just to be safe...
4906 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4907 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4910 # The name set by libtool depends on the version of libtool. Shame on us
4911 # for depending on an impl detail, but c'est la vie. Older versions used
4912 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4913 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4914 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4915 # set (hence we're using an older libtool), then set it.
4916 if test x${with_gnu_ld+set} != xset; then
4917 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4918 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4919 with_gnu_ld=no
4920 else
4921 with_gnu_ld=$ac_cv_prog_gnu_ld
4925 # Start by getting the version number. I think the libtool test already
4926 # does some of this, but throws away the result.
4928 ldver=`$LD --version 2>/dev/null | head -1 | \
4929 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4931 glibcpp_gnu_ld_version=`echo $ldver | \
4932 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4934 # Set --gc-sections.
4935 if test "$with_gnu_ld" = "notbroken"; then
4936 # GNU ld it is! Joy and bunny rabbits!
4938 # All these tests are for C++; save the language and the compiler flags.
4939 # Need to do this so that g++ won't try to link in libstdc++
4940 ac_test_CFLAGS="${CFLAGS+set}"
4941 ac_save_CFLAGS="$CFLAGS"
4942 CFLAGS='-x c++ -Wl,--gc-sections'
4944 # Check for -Wl,--gc-sections
4945 # XXX This test is broken at the moment, as symbols required for
4946 # linking are now in libsupc++ (not built yet.....). In addition,
4947 # this test has cored on solaris in the past. In addition,
4948 # --gc-sections doesn't really work at the moment (keeps on discarding
4949 # used sections, first .eh_frame and now some of the glibc sections for
4950 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4951 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4952 echo "configure:4953: checking for ld that supports -Wl,--gc-sections" >&5
4953 if test "$cross_compiling" = yes; then
4954 ac_sectionLDflags=yes
4955 else
4956 cat > conftest.$ac_ext <<EOF
4957 #line 4958 "configure"
4958 #include "confdefs.h"
4960 int main(void)
4962 try { throw 1; }
4963 catch (...) { };
4964 return 0;
4968 if { (eval echo configure:4969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4969 then
4970 ac_sectionLDflags=yes
4971 else
4972 echo "configure: failed program was:" >&5
4973 cat conftest.$ac_ext >&5
4974 rm -fr conftest*
4975 ac_sectionLDflags=no
4977 rm -fr conftest*
4980 if test "$ac_test_CFLAGS" = set; then
4981 CFLAGS="$ac_save_CFLAGS"
4982 else
4983 # this is the suspicious part
4984 CFLAGS=''
4986 if test "$ac_sectionLDflags" = "yes"; then
4987 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4989 echo "$ac_t""$ac_sectionLDflags" 1>&6
4992 # Set linker optimization flags.
4993 if test x"$with_gnu_ld" = x"yes" &&
4994 test x"$enable_debug" = x"no"; then
4995 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5002 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5003 echo "configure:5004: checking for main in -lm" >&5
5004 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5005 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5006 echo $ac_n "(cached) $ac_c" 1>&6
5007 else
5008 ac_save_LIBS="$LIBS"
5009 LIBS="-lm $LIBS"
5010 cat > conftest.$ac_ext <<EOF
5011 #line 5012 "configure"
5012 #include "confdefs.h"
5014 int main() {
5015 main()
5016 ; return 0; }
5018 if { (eval echo configure:5019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5019 rm -rf conftest*
5020 eval "ac_cv_lib_$ac_lib_var=yes"
5021 else
5022 echo "configure: failed program was:" >&5
5023 cat conftest.$ac_ext >&5
5024 rm -rf conftest*
5025 eval "ac_cv_lib_$ac_lib_var=no"
5027 rm -f conftest*
5028 LIBS="$ac_save_LIBS"
5031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5032 echo "$ac_t""yes" 1>&6
5033 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5034 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5035 cat >> confdefs.h <<EOF
5036 #define $ac_tr_lib 1
5039 LIBS="-lm $LIBS"
5041 else
5042 echo "$ac_t""no" 1>&6
5045 for ac_func in nan copysignf
5047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5048 echo "configure:5049: checking for $ac_func" >&5
5049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5050 echo $ac_n "(cached) $ac_c" 1>&6
5051 else
5052 cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5055 /* System header to define __stub macros and hopefully few prototypes,
5056 which can conflict with char $ac_func(); below. */
5057 #include <assert.h>
5058 /* Override any gcc2 internal prototype to avoid an error. */
5059 /* We use char because int might match the return type of a gcc2
5060 builtin and then its argument prototype would still apply. */
5061 char $ac_func();
5063 int main() {
5065 /* The GNU C library defines this for functions which it implements
5066 to always fail with ENOSYS. Some functions are actually named
5067 something starting with __ and the normal name is an alias. */
5068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5069 choke me
5070 #else
5071 $ac_func();
5072 #endif
5074 ; return 0; }
5076 if { (eval echo configure:5077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5077 rm -rf conftest*
5078 eval "ac_cv_func_$ac_func=yes"
5079 else
5080 echo "configure: failed program was:" >&5
5081 cat conftest.$ac_ext >&5
5082 rm -rf conftest*
5083 eval "ac_cv_func_$ac_func=no"
5085 rm -f conftest*
5088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5089 echo "$ac_t""yes" 1>&6
5090 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5091 cat >> confdefs.h <<EOF
5092 #define $ac_tr_func 1
5095 else
5096 echo "$ac_t""no" 1>&6
5097 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5099 done
5103 USE_COMPLEX_LONG_DOUBLE=no
5104 if test x$ac_cv_func_copysignl = x"yes"; then
5105 USE_COMPLEX_LONG_DOUBLE=yes
5106 for ac_func in signbitl
5108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5109 echo "configure:5110: checking for $ac_func" >&5
5110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5111 echo $ac_n "(cached) $ac_c" 1>&6
5112 else
5113 cat > conftest.$ac_ext <<EOF
5114 #line 5115 "configure"
5115 #include "confdefs.h"
5116 /* System header to define __stub macros and hopefully few prototypes,
5117 which can conflict with char $ac_func(); below. */
5118 #include <assert.h>
5119 /* Override any gcc2 internal prototype to avoid an error. */
5120 /* We use char because int might match the return type of a gcc2
5121 builtin and then its argument prototype would still apply. */
5122 char $ac_func();
5124 int main() {
5126 /* The GNU C library defines this for functions which it implements
5127 to always fail with ENOSYS. Some functions are actually named
5128 something starting with __ and the normal name is an alias. */
5129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5130 choke me
5131 #else
5132 $ac_func();
5133 #endif
5135 ; return 0; }
5137 if { (eval echo configure:5138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5138 rm -rf conftest*
5139 eval "ac_cv_func_$ac_func=yes"
5140 else
5141 echo "configure: failed program was:" >&5
5142 cat conftest.$ac_ext >&5
5143 rm -rf conftest*
5144 eval "ac_cv_func_$ac_func=no"
5146 rm -f conftest*
5149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5150 echo "$ac_t""yes" 1>&6
5151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5152 cat >> confdefs.h <<EOF
5153 #define $ac_tr_func 1
5156 else
5157 echo "$ac_t""no" 1>&6
5158 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5160 done
5169 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5170 echo "configure:5171: checking for mbstate_t" >&5
5171 cat > conftest.$ac_ext <<EOF
5172 #line 5173 "configure"
5173 #include "confdefs.h"
5174 #include <wchar.h>
5175 int main() {
5176 mbstate_t teststate;
5177 ; return 0; }
5179 if { (eval echo configure:5180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5180 rm -rf conftest*
5181 have_mbstate_t=yes
5182 else
5183 echo "configure: failed program was:" >&5
5184 cat conftest.$ac_ext >&5
5185 rm -rf conftest*
5186 have_mbstate_t=no
5188 rm -f conftest*
5189 echo "$ac_t""$have_mbstate_t" 1>&6
5190 if test x"$have_mbstate_t" = xyes; then
5191 cat >> confdefs.h <<\EOF
5192 #define HAVE_MBSTATE_T 1
5197 for ac_hdr in wchar.h
5199 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5200 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5201 echo "configure:5202: checking for $ac_hdr" >&5
5202 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5203 echo $ac_n "(cached) $ac_c" 1>&6
5204 else
5205 cat > conftest.$ac_ext <<EOF
5206 #line 5207 "configure"
5207 #include "confdefs.h"
5208 #include <$ac_hdr>
5210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5211 { (eval echo configure:5212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5213 if test -z "$ac_err"; then
5214 rm -rf conftest*
5215 eval "ac_cv_header_$ac_safe=yes"
5216 else
5217 echo "$ac_err" >&5
5218 echo "configure: failed program was:" >&5
5219 cat conftest.$ac_ext >&5
5220 rm -rf conftest*
5221 eval "ac_cv_header_$ac_safe=no"
5223 rm -f conftest*
5225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5226 echo "$ac_t""yes" 1>&6
5227 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5228 cat >> confdefs.h <<EOF
5229 #define $ac_tr_hdr 1
5231 ac_has_wchar_h=yes
5232 else
5233 echo "$ac_t""no" 1>&6
5234 ac_has_wchar_h=no
5236 done
5238 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
5239 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
5240 echo "configure:5241: checking for wctype.h" >&5
5241 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5242 echo $ac_n "(cached) $ac_c" 1>&6
5243 else
5244 cat > conftest.$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5247 #include <wctype.h>
5249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5250 { (eval echo configure:5251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5252 if test -z "$ac_err"; then
5253 rm -rf conftest*
5254 eval "ac_cv_header_$ac_safe=yes"
5255 else
5256 echo "$ac_err" >&5
5257 echo "configure: failed program was:" >&5
5258 cat conftest.$ac_ext >&5
5259 rm -rf conftest*
5260 eval "ac_cv_header_$ac_safe=no"
5262 rm -f conftest*
5264 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5265 echo "$ac_t""yes" 1>&6
5266 ac_has_wctype_h=yes
5267 else
5268 echo "$ac_t""no" 1>&6
5269 ac_has_wctype_h=no
5273 if test x"$ac_has_wchar_h" = xyes &&
5274 test x"$ac_has_wctype_h" = xyes &&
5275 test x"$enable_c_mbchar" != xno; then
5277 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5278 echo "configure:5279: checking for WCHAR_MIN and WCHAR_MAX" >&5
5279 cat > conftest.$ac_ext <<EOF
5280 #line 5281 "configure"
5281 #include "confdefs.h"
5282 #include <wchar.h>
5283 int main() {
5284 int i = WCHAR_MIN; int j = WCHAR_MAX;
5285 ; return 0; }
5287 if { (eval echo configure:5288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5288 rm -rf conftest*
5289 has_wchar_minmax=yes
5290 else
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5293 rm -rf conftest*
5294 has_wchar_minmax=no
5296 rm -f conftest*
5297 echo "$ac_t""$has_wchar_minmax" 1>&6
5299 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5300 echo "configure:5301: checking for WEOF" >&5
5301 cat > conftest.$ac_ext <<EOF
5302 #line 5303 "configure"
5303 #include "confdefs.h"
5305 #include <wchar.h>
5306 #include <stddef.h>
5307 int main() {
5308 wint_t i = WEOF;
5309 ; return 0; }
5311 if { (eval echo configure:5312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5312 rm -rf conftest*
5313 has_weof=yes
5314 else
5315 echo "configure: failed program was:" >&5
5316 cat conftest.$ac_ext >&5
5317 rm -rf conftest*
5318 has_weof=no
5320 rm -f conftest*
5321 echo "$ac_t""$has_weof" 1>&6
5323 ac_wfuncs=yes
5324 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5327 echo "configure:5328: checking for $ac_func" >&5
5328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5329 echo $ac_n "(cached) $ac_c" 1>&6
5330 else
5331 cat > conftest.$ac_ext <<EOF
5332 #line 5333 "configure"
5333 #include "confdefs.h"
5334 /* System header to define __stub macros and hopefully few prototypes,
5335 which can conflict with char $ac_func(); below. */
5336 #include <assert.h>
5337 /* Override any gcc2 internal prototype to avoid an error. */
5338 /* We use char because int might match the return type of a gcc2
5339 builtin and then its argument prototype would still apply. */
5340 char $ac_func();
5342 int main() {
5344 /* The GNU C library defines this for functions which it implements
5345 to always fail with ENOSYS. Some functions are actually named
5346 something starting with __ and the normal name is an alias. */
5347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5348 choke me
5349 #else
5350 $ac_func();
5351 #endif
5353 ; return 0; }
5355 if { (eval echo configure:5356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5356 rm -rf conftest*
5357 eval "ac_cv_func_$ac_func=yes"
5358 else
5359 echo "configure: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5361 rm -rf conftest*
5362 eval "ac_cv_func_$ac_func=no"
5364 rm -f conftest*
5367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5368 echo "$ac_t""yes" 1>&6
5369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5370 cat >> confdefs.h <<EOF
5371 #define $ac_tr_func 1
5374 else
5375 echo "$ac_t""no" 1>&6
5377 ac_wfuncs=no
5379 done
5382 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5383 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5384 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5385 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5386 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5387 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5390 echo "configure:5391: checking for $ac_func" >&5
5391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5392 echo $ac_n "(cached) $ac_c" 1>&6
5393 else
5394 cat > conftest.$ac_ext <<EOF
5395 #line 5396 "configure"
5396 #include "confdefs.h"
5397 /* System header to define __stub macros and hopefully few prototypes,
5398 which can conflict with char $ac_func(); below. */
5399 #include <assert.h>
5400 /* Override any gcc2 internal prototype to avoid an error. */
5401 /* We use char because int might match the return type of a gcc2
5402 builtin and then its argument prototype would still apply. */
5403 char $ac_func();
5405 int main() {
5407 /* The GNU C library defines this for functions which it implements
5408 to always fail with ENOSYS. Some functions are actually named
5409 something starting with __ and the normal name is an alias. */
5410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5411 choke me
5412 #else
5413 $ac_func();
5414 #endif
5416 ; return 0; }
5418 if { (eval echo configure:5419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5419 rm -rf conftest*
5420 eval "ac_cv_func_$ac_func=yes"
5421 else
5422 echo "configure: failed program was:" >&5
5423 cat conftest.$ac_ext >&5
5424 rm -rf conftest*
5425 eval "ac_cv_func_$ac_func=no"
5427 rm -f conftest*
5430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5431 echo "$ac_t""yes" 1>&6
5432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5433 cat >> confdefs.h <<EOF
5434 #define $ac_tr_func 1
5437 else
5438 echo "$ac_t""no" 1>&6
5440 ac_wfuncs=no
5442 done
5445 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5446 echo "configure:5447: checking for ISO C99 wchar_t support" >&5
5447 if test x"$has_weof" = xyes &&
5448 test x"$has_wchar_minmax" = xyes &&
5449 test x"$ac_wfuncs" = xyes; then
5450 ac_isoC99_wchar_t=yes
5451 else
5452 ac_isoC99_wchar_t=no
5454 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5456 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5457 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5458 echo "configure:5459: checking for iconv.h" >&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 <iconv.h>
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_has_iconv_h=yes
5485 else
5486 echo "$ac_t""no" 1>&6
5487 ac_has_iconv_h=no
5490 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5491 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5492 echo "configure:5493: checking for langinfo.h" >&5
5493 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5494 echo $ac_n "(cached) $ac_c" 1>&6
5495 else
5496 cat > conftest.$ac_ext <<EOF
5497 #line 5498 "configure"
5498 #include "confdefs.h"
5499 #include <langinfo.h>
5501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5502 { (eval echo configure:5503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5504 if test -z "$ac_err"; then
5505 rm -rf conftest*
5506 eval "ac_cv_header_$ac_safe=yes"
5507 else
5508 echo "$ac_err" >&5
5509 echo "configure: failed program was:" >&5
5510 cat conftest.$ac_ext >&5
5511 rm -rf conftest*
5512 eval "ac_cv_header_$ac_safe=no"
5514 rm -f conftest*
5516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5517 echo "$ac_t""yes" 1>&6
5518 ac_has_langinfo_h=yes
5519 else
5520 echo "$ac_t""no" 1>&6
5521 ac_has_langinfo_h=no
5525 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5526 echo "configure:5527: checking for iconv in -liconv" >&5
5527 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5528 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5529 echo $ac_n "(cached) $ac_c" 1>&6
5530 else
5531 ac_save_LIBS="$LIBS"
5532 LIBS="-liconv $LIBS"
5533 cat > conftest.$ac_ext <<EOF
5534 #line 5535 "configure"
5535 #include "confdefs.h"
5536 /* Override any gcc2 internal prototype to avoid an error. */
5537 /* We use char because int might match the return type of a gcc2
5538 builtin and then its argument prototype would still apply. */
5539 char iconv();
5541 int main() {
5542 iconv()
5543 ; return 0; }
5545 if { (eval echo configure:5546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5546 rm -rf conftest*
5547 eval "ac_cv_lib_$ac_lib_var=yes"
5548 else
5549 echo "configure: failed program was:" >&5
5550 cat conftest.$ac_ext >&5
5551 rm -rf conftest*
5552 eval "ac_cv_lib_$ac_lib_var=no"
5554 rm -f conftest*
5555 LIBS="$ac_save_LIBS"
5558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5559 echo "$ac_t""yes" 1>&6
5560 libiconv="-liconv"
5561 else
5562 echo "$ac_t""no" 1>&6
5565 ac_save_LIBS="$LIBS"
5566 LIBS="$LIBS $libiconv"
5568 for ac_func in iconv_open iconv_close iconv nl_langinfo
5570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5571 echo "configure:5572: checking for $ac_func" >&5
5572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5573 echo $ac_n "(cached) $ac_c" 1>&6
5574 else
5575 cat > conftest.$ac_ext <<EOF
5576 #line 5577 "configure"
5577 #include "confdefs.h"
5578 /* System header to define __stub macros and hopefully few prototypes,
5579 which can conflict with char $ac_func(); below. */
5580 #include <assert.h>
5581 /* Override any gcc2 internal prototype to avoid an error. */
5582 /* We use char because int might match the return type of a gcc2
5583 builtin and then its argument prototype would still apply. */
5584 char $ac_func();
5586 int main() {
5588 /* The GNU C library defines this for functions which it implements
5589 to always fail with ENOSYS. Some functions are actually named
5590 something starting with __ and the normal name is an alias. */
5591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5592 choke me
5593 #else
5594 $ac_func();
5595 #endif
5597 ; return 0; }
5599 if { (eval echo configure:5600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5600 rm -rf conftest*
5601 eval "ac_cv_func_$ac_func=yes"
5602 else
5603 echo "configure: failed program was:" >&5
5604 cat conftest.$ac_ext >&5
5605 rm -rf conftest*
5606 eval "ac_cv_func_$ac_func=no"
5608 rm -f conftest*
5611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5612 echo "$ac_t""yes" 1>&6
5613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5614 cat >> confdefs.h <<EOF
5615 #define $ac_tr_func 1
5618 ac_XPG2funcs=yes
5619 else
5620 echo "$ac_t""no" 1>&6
5621 ac_XPG2funcs=no
5623 done
5626 LIBS="$ac_save_LIBS"
5628 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5629 echo "configure:5630: checking for XPG2 wchar_t support" >&5
5630 if test x"$ac_has_iconv_h" = xyes &&
5631 test x"$ac_has_langinfo_h" = xyes &&
5632 test x"$ac_XPG2funcs" = xyes; then
5633 ac_XPG2_wchar_t=yes
5634 else
5635 ac_XPG2_wchar_t=no
5637 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5639 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5640 echo "configure:5641: checking for enabled wchar_t specializations" >&5
5641 if test x"$ac_isoC99_wchar_t" = xyes &&
5642 test x"$ac_XPG2_wchar_t" = xyes; then
5643 cat >> confdefs.h <<\EOF
5644 #define _GLIBCPP_USE_WCHAR_T 1
5647 echo "$ac_t"""yes"" 1>&6
5648 else
5649 echo "$ac_t"""no"" 1>&6
5651 else
5652 echo "configure: warning: wchar_t support disabled." 1>&2
5655 os_include_dir="config/os/hpux"
5656 cat >> confdefs.h <<\EOF
5657 #define HAVE_COPYSIGN 1
5660 cat >> confdefs.h <<\EOF
5661 #define HAVE_COPYSIGNF 1
5664 cat >> confdefs.h <<\EOF
5665 #define HAVE_FINITEF 1
5668 cat >> confdefs.h <<\EOF
5669 #define HAVE_FREXPF 1
5672 cat >> confdefs.h <<\EOF
5673 #define HAVE_HYPOT 1
5676 cat >> confdefs.h <<\EOF
5677 #define HAVE_SINCOS 1
5680 cat >> confdefs.h <<\EOF
5681 #define HAVE_SINCOSF 1
5685 *-netbsd*)
5686 # Check for available headers.
5687 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5688 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5689 fp.h locale.h float.h inttypes.h
5691 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5693 echo "configure:5694: checking for $ac_hdr" >&5
5694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5695 echo $ac_n "(cached) $ac_c" 1>&6
5696 else
5697 cat > conftest.$ac_ext <<EOF
5698 #line 5699 "configure"
5699 #include "confdefs.h"
5700 #include <$ac_hdr>
5702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5703 { (eval echo configure:5704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5705 if test -z "$ac_err"; then
5706 rm -rf conftest*
5707 eval "ac_cv_header_$ac_safe=yes"
5708 else
5709 echo "$ac_err" >&5
5710 echo "configure: failed program was:" >&5
5711 cat conftest.$ac_ext >&5
5712 rm -rf conftest*
5713 eval "ac_cv_header_$ac_safe=no"
5715 rm -f conftest*
5717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5718 echo "$ac_t""yes" 1>&6
5719 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5720 cat >> confdefs.h <<EOF
5721 #define $ac_tr_hdr 1
5724 else
5725 echo "$ac_t""no" 1>&6
5727 done
5729 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5732 # If we're not using GNU ld, then there's no point in even trying these
5733 # tests. Check for that first. We should have already tested for gld
5734 # by now (in libtool), but require it now just to be safe...
5735 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5736 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5739 # The name set by libtool depends on the version of libtool. Shame on us
5740 # for depending on an impl detail, but c'est la vie. Older versions used
5741 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5742 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5743 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5744 # set (hence we're using an older libtool), then set it.
5745 if test x${with_gnu_ld+set} != xset; then
5746 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5747 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5748 with_gnu_ld=no
5749 else
5750 with_gnu_ld=$ac_cv_prog_gnu_ld
5754 # Start by getting the version number. I think the libtool test already
5755 # does some of this, but throws away the result.
5757 ldver=`$LD --version 2>/dev/null | head -1 | \
5758 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5760 glibcpp_gnu_ld_version=`echo $ldver | \
5761 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5763 # Set --gc-sections.
5764 if test "$with_gnu_ld" = "notbroken"; then
5765 # GNU ld it is! Joy and bunny rabbits!
5767 # All these tests are for C++; save the language and the compiler flags.
5768 # Need to do this so that g++ won't try to link in libstdc++
5769 ac_test_CFLAGS="${CFLAGS+set}"
5770 ac_save_CFLAGS="$CFLAGS"
5771 CFLAGS='-x c++ -Wl,--gc-sections'
5773 # Check for -Wl,--gc-sections
5774 # XXX This test is broken at the moment, as symbols required for
5775 # linking are now in libsupc++ (not built yet.....). In addition,
5776 # this test has cored on solaris in the past. In addition,
5777 # --gc-sections doesn't really work at the moment (keeps on discarding
5778 # used sections, first .eh_frame and now some of the glibc sections for
5779 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5780 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5781 echo "configure:5782: checking for ld that supports -Wl,--gc-sections" >&5
5782 if test "$cross_compiling" = yes; then
5783 ac_sectionLDflags=yes
5784 else
5785 cat > conftest.$ac_ext <<EOF
5786 #line 5787 "configure"
5787 #include "confdefs.h"
5789 int main(void)
5791 try { throw 1; }
5792 catch (...) { };
5793 return 0;
5797 if { (eval echo configure:5798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5798 then
5799 ac_sectionLDflags=yes
5800 else
5801 echo "configure: failed program was:" >&5
5802 cat conftest.$ac_ext >&5
5803 rm -fr conftest*
5804 ac_sectionLDflags=no
5806 rm -fr conftest*
5809 if test "$ac_test_CFLAGS" = set; then
5810 CFLAGS="$ac_save_CFLAGS"
5811 else
5812 # this is the suspicious part
5813 CFLAGS=''
5815 if test "$ac_sectionLDflags" = "yes"; then
5816 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5818 echo "$ac_t""$ac_sectionLDflags" 1>&6
5821 # Set linker optimization flags.
5822 if test x"$with_gnu_ld" = x"yes" &&
5823 test x"$enable_debug" = x"no"; then
5824 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5831 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5832 echo "configure:5833: checking for main in -lm" >&5
5833 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5834 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5835 echo $ac_n "(cached) $ac_c" 1>&6
5836 else
5837 ac_save_LIBS="$LIBS"
5838 LIBS="-lm $LIBS"
5839 cat > conftest.$ac_ext <<EOF
5840 #line 5841 "configure"
5841 #include "confdefs.h"
5843 int main() {
5844 main()
5845 ; return 0; }
5847 if { (eval echo configure:5848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5848 rm -rf conftest*
5849 eval "ac_cv_lib_$ac_lib_var=yes"
5850 else
5851 echo "configure: failed program was:" >&5
5852 cat conftest.$ac_ext >&5
5853 rm -rf conftest*
5854 eval "ac_cv_lib_$ac_lib_var=no"
5856 rm -f conftest*
5857 LIBS="$ac_save_LIBS"
5860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5861 echo "$ac_t""yes" 1>&6
5862 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5863 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5864 cat >> confdefs.h <<EOF
5865 #define $ac_tr_lib 1
5868 LIBS="-lm $LIBS"
5870 else
5871 echo "$ac_t""no" 1>&6
5874 for ac_func in nan copysignf
5876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5877 echo "configure:5878: checking for $ac_func" >&5
5878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5879 echo $ac_n "(cached) $ac_c" 1>&6
5880 else
5881 cat > conftest.$ac_ext <<EOF
5882 #line 5883 "configure"
5883 #include "confdefs.h"
5884 /* System header to define __stub macros and hopefully few prototypes,
5885 which can conflict with char $ac_func(); below. */
5886 #include <assert.h>
5887 /* Override any gcc2 internal prototype to avoid an error. */
5888 /* We use char because int might match the return type of a gcc2
5889 builtin and then its argument prototype would still apply. */
5890 char $ac_func();
5892 int main() {
5894 /* The GNU C library defines this for functions which it implements
5895 to always fail with ENOSYS. Some functions are actually named
5896 something starting with __ and the normal name is an alias. */
5897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5898 choke me
5899 #else
5900 $ac_func();
5901 #endif
5903 ; return 0; }
5905 if { (eval echo configure:5906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5906 rm -rf conftest*
5907 eval "ac_cv_func_$ac_func=yes"
5908 else
5909 echo "configure: failed program was:" >&5
5910 cat conftest.$ac_ext >&5
5911 rm -rf conftest*
5912 eval "ac_cv_func_$ac_func=no"
5914 rm -f conftest*
5917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5918 echo "$ac_t""yes" 1>&6
5919 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5920 cat >> confdefs.h <<EOF
5921 #define $ac_tr_func 1
5924 else
5925 echo "$ac_t""no" 1>&6
5926 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5928 done
5932 USE_COMPLEX_LONG_DOUBLE=no
5933 if test x$ac_cv_func_copysignl = x"yes"; then
5934 USE_COMPLEX_LONG_DOUBLE=yes
5935 for ac_func in signbitl
5937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5938 echo "configure:5939: checking for $ac_func" >&5
5939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5940 echo $ac_n "(cached) $ac_c" 1>&6
5941 else
5942 cat > conftest.$ac_ext <<EOF
5943 #line 5944 "configure"
5944 #include "confdefs.h"
5945 /* System header to define __stub macros and hopefully few prototypes,
5946 which can conflict with char $ac_func(); below. */
5947 #include <assert.h>
5948 /* Override any gcc2 internal prototype to avoid an error. */
5949 /* We use char because int might match the return type of a gcc2
5950 builtin and then its argument prototype would still apply. */
5951 char $ac_func();
5953 int main() {
5955 /* The GNU C library defines this for functions which it implements
5956 to always fail with ENOSYS. Some functions are actually named
5957 something starting with __ and the normal name is an alias. */
5958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5959 choke me
5960 #else
5961 $ac_func();
5962 #endif
5964 ; return 0; }
5966 if { (eval echo configure:5967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5967 rm -rf conftest*
5968 eval "ac_cv_func_$ac_func=yes"
5969 else
5970 echo "configure: failed program was:" >&5
5971 cat conftest.$ac_ext >&5
5972 rm -rf conftest*
5973 eval "ac_cv_func_$ac_func=no"
5975 rm -f conftest*
5978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5979 echo "$ac_t""yes" 1>&6
5980 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5981 cat >> confdefs.h <<EOF
5982 #define $ac_tr_func 1
5985 else
5986 echo "$ac_t""no" 1>&6
5987 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5989 done
5998 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5999 echo "configure:6000: checking for mbstate_t" >&5
6000 cat > conftest.$ac_ext <<EOF
6001 #line 6002 "configure"
6002 #include "confdefs.h"
6003 #include <wchar.h>
6004 int main() {
6005 mbstate_t teststate;
6006 ; return 0; }
6008 if { (eval echo configure:6009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6009 rm -rf conftest*
6010 have_mbstate_t=yes
6011 else
6012 echo "configure: failed program was:" >&5
6013 cat conftest.$ac_ext >&5
6014 rm -rf conftest*
6015 have_mbstate_t=no
6017 rm -f conftest*
6018 echo "$ac_t""$have_mbstate_t" 1>&6
6019 if test x"$have_mbstate_t" = xyes; then
6020 cat >> confdefs.h <<\EOF
6021 #define HAVE_MBSTATE_T 1
6026 for ac_hdr in wchar.h
6028 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6029 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6030 echo "configure:6031: checking for $ac_hdr" >&5
6031 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6032 echo $ac_n "(cached) $ac_c" 1>&6
6033 else
6034 cat > conftest.$ac_ext <<EOF
6035 #line 6036 "configure"
6036 #include "confdefs.h"
6037 #include <$ac_hdr>
6039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6040 { (eval echo configure:6041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6042 if test -z "$ac_err"; then
6043 rm -rf conftest*
6044 eval "ac_cv_header_$ac_safe=yes"
6045 else
6046 echo "$ac_err" >&5
6047 echo "configure: failed program was:" >&5
6048 cat conftest.$ac_ext >&5
6049 rm -rf conftest*
6050 eval "ac_cv_header_$ac_safe=no"
6052 rm -f conftest*
6054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6055 echo "$ac_t""yes" 1>&6
6056 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6057 cat >> confdefs.h <<EOF
6058 #define $ac_tr_hdr 1
6060 ac_has_wchar_h=yes
6061 else
6062 echo "$ac_t""no" 1>&6
6063 ac_has_wchar_h=no
6065 done
6067 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
6068 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
6069 echo "configure:6070: checking for wctype.h" >&5
6070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6071 echo $ac_n "(cached) $ac_c" 1>&6
6072 else
6073 cat > conftest.$ac_ext <<EOF
6074 #line 6075 "configure"
6075 #include "confdefs.h"
6076 #include <wctype.h>
6078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6079 { (eval echo configure:6080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6081 if test -z "$ac_err"; then
6082 rm -rf conftest*
6083 eval "ac_cv_header_$ac_safe=yes"
6084 else
6085 echo "$ac_err" >&5
6086 echo "configure: failed program was:" >&5
6087 cat conftest.$ac_ext >&5
6088 rm -rf conftest*
6089 eval "ac_cv_header_$ac_safe=no"
6091 rm -f conftest*
6093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6094 echo "$ac_t""yes" 1>&6
6095 ac_has_wctype_h=yes
6096 else
6097 echo "$ac_t""no" 1>&6
6098 ac_has_wctype_h=no
6102 if test x"$ac_has_wchar_h" = xyes &&
6103 test x"$ac_has_wctype_h" = xyes &&
6104 test x"$enable_c_mbchar" != xno; then
6106 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6107 echo "configure:6108: checking for WCHAR_MIN and WCHAR_MAX" >&5
6108 cat > conftest.$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6111 #include <wchar.h>
6112 int main() {
6113 int i = WCHAR_MIN; int j = WCHAR_MAX;
6114 ; return 0; }
6116 if { (eval echo configure:6117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6117 rm -rf conftest*
6118 has_wchar_minmax=yes
6119 else
6120 echo "configure: failed program was:" >&5
6121 cat conftest.$ac_ext >&5
6122 rm -rf conftest*
6123 has_wchar_minmax=no
6125 rm -f conftest*
6126 echo "$ac_t""$has_wchar_minmax" 1>&6
6128 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6129 echo "configure:6130: checking for WEOF" >&5
6130 cat > conftest.$ac_ext <<EOF
6131 #line 6132 "configure"
6132 #include "confdefs.h"
6134 #include <wchar.h>
6135 #include <stddef.h>
6136 int main() {
6137 wint_t i = WEOF;
6138 ; return 0; }
6140 if { (eval echo configure:6141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6141 rm -rf conftest*
6142 has_weof=yes
6143 else
6144 echo "configure: failed program was:" >&5
6145 cat conftest.$ac_ext >&5
6146 rm -rf conftest*
6147 has_weof=no
6149 rm -f conftest*
6150 echo "$ac_t""$has_weof" 1>&6
6152 ac_wfuncs=yes
6153 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6156 echo "configure:6157: checking for $ac_func" >&5
6157 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6158 echo $ac_n "(cached) $ac_c" 1>&6
6159 else
6160 cat > conftest.$ac_ext <<EOF
6161 #line 6162 "configure"
6162 #include "confdefs.h"
6163 /* System header to define __stub macros and hopefully few prototypes,
6164 which can conflict with char $ac_func(); below. */
6165 #include <assert.h>
6166 /* Override any gcc2 internal prototype to avoid an error. */
6167 /* We use char because int might match the return type of a gcc2
6168 builtin and then its argument prototype would still apply. */
6169 char $ac_func();
6171 int main() {
6173 /* The GNU C library defines this for functions which it implements
6174 to always fail with ENOSYS. Some functions are actually named
6175 something starting with __ and the normal name is an alias. */
6176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6177 choke me
6178 #else
6179 $ac_func();
6180 #endif
6182 ; return 0; }
6184 if { (eval echo configure:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6185 rm -rf conftest*
6186 eval "ac_cv_func_$ac_func=yes"
6187 else
6188 echo "configure: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6190 rm -rf conftest*
6191 eval "ac_cv_func_$ac_func=no"
6193 rm -f conftest*
6196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6197 echo "$ac_t""yes" 1>&6
6198 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6199 cat >> confdefs.h <<EOF
6200 #define $ac_tr_func 1
6203 else
6204 echo "$ac_t""no" 1>&6
6206 ac_wfuncs=no
6208 done
6211 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6212 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6213 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6214 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6215 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6216 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6219 echo "configure:6220: checking for $ac_func" >&5
6220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6221 echo $ac_n "(cached) $ac_c" 1>&6
6222 else
6223 cat > conftest.$ac_ext <<EOF
6224 #line 6225 "configure"
6225 #include "confdefs.h"
6226 /* System header to define __stub macros and hopefully few prototypes,
6227 which can conflict with char $ac_func(); below. */
6228 #include <assert.h>
6229 /* Override any gcc2 internal prototype to avoid an error. */
6230 /* We use char because int might match the return type of a gcc2
6231 builtin and then its argument prototype would still apply. */
6232 char $ac_func();
6234 int main() {
6236 /* The GNU C library defines this for functions which it implements
6237 to always fail with ENOSYS. Some functions are actually named
6238 something starting with __ and the normal name is an alias. */
6239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6240 choke me
6241 #else
6242 $ac_func();
6243 #endif
6245 ; return 0; }
6247 if { (eval echo configure:6248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6248 rm -rf conftest*
6249 eval "ac_cv_func_$ac_func=yes"
6250 else
6251 echo "configure: failed program was:" >&5
6252 cat conftest.$ac_ext >&5
6253 rm -rf conftest*
6254 eval "ac_cv_func_$ac_func=no"
6256 rm -f conftest*
6259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6260 echo "$ac_t""yes" 1>&6
6261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6262 cat >> confdefs.h <<EOF
6263 #define $ac_tr_func 1
6266 else
6267 echo "$ac_t""no" 1>&6
6269 ac_wfuncs=no
6271 done
6274 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6275 echo "configure:6276: checking for ISO C99 wchar_t support" >&5
6276 if test x"$has_weof" = xyes &&
6277 test x"$has_wchar_minmax" = xyes &&
6278 test x"$ac_wfuncs" = xyes; then
6279 ac_isoC99_wchar_t=yes
6280 else
6281 ac_isoC99_wchar_t=no
6283 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6285 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6286 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6287 echo "configure:6288: checking for iconv.h" >&5
6288 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6289 echo $ac_n "(cached) $ac_c" 1>&6
6290 else
6291 cat > conftest.$ac_ext <<EOF
6292 #line 6293 "configure"
6293 #include "confdefs.h"
6294 #include <iconv.h>
6296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6297 { (eval echo configure:6298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6299 if test -z "$ac_err"; then
6300 rm -rf conftest*
6301 eval "ac_cv_header_$ac_safe=yes"
6302 else
6303 echo "$ac_err" >&5
6304 echo "configure: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6306 rm -rf conftest*
6307 eval "ac_cv_header_$ac_safe=no"
6309 rm -f conftest*
6311 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6312 echo "$ac_t""yes" 1>&6
6313 ac_has_iconv_h=yes
6314 else
6315 echo "$ac_t""no" 1>&6
6316 ac_has_iconv_h=no
6319 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6320 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6321 echo "configure:6322: checking for langinfo.h" >&5
6322 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6323 echo $ac_n "(cached) $ac_c" 1>&6
6324 else
6325 cat > conftest.$ac_ext <<EOF
6326 #line 6327 "configure"
6327 #include "confdefs.h"
6328 #include <langinfo.h>
6330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6331 { (eval echo configure:6332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6333 if test -z "$ac_err"; then
6334 rm -rf conftest*
6335 eval "ac_cv_header_$ac_safe=yes"
6336 else
6337 echo "$ac_err" >&5
6338 echo "configure: failed program was:" >&5
6339 cat conftest.$ac_ext >&5
6340 rm -rf conftest*
6341 eval "ac_cv_header_$ac_safe=no"
6343 rm -f conftest*
6345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6346 echo "$ac_t""yes" 1>&6
6347 ac_has_langinfo_h=yes
6348 else
6349 echo "$ac_t""no" 1>&6
6350 ac_has_langinfo_h=no
6354 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6355 echo "configure:6356: checking for iconv in -liconv" >&5
6356 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6358 echo $ac_n "(cached) $ac_c" 1>&6
6359 else
6360 ac_save_LIBS="$LIBS"
6361 LIBS="-liconv $LIBS"
6362 cat > conftest.$ac_ext <<EOF
6363 #line 6364 "configure"
6364 #include "confdefs.h"
6365 /* Override any gcc2 internal prototype to avoid an error. */
6366 /* We use char because int might match the return type of a gcc2
6367 builtin and then its argument prototype would still apply. */
6368 char iconv();
6370 int main() {
6371 iconv()
6372 ; return 0; }
6374 if { (eval echo configure:6375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6375 rm -rf conftest*
6376 eval "ac_cv_lib_$ac_lib_var=yes"
6377 else
6378 echo "configure: failed program was:" >&5
6379 cat conftest.$ac_ext >&5
6380 rm -rf conftest*
6381 eval "ac_cv_lib_$ac_lib_var=no"
6383 rm -f conftest*
6384 LIBS="$ac_save_LIBS"
6387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6388 echo "$ac_t""yes" 1>&6
6389 libiconv="-liconv"
6390 else
6391 echo "$ac_t""no" 1>&6
6394 ac_save_LIBS="$LIBS"
6395 LIBS="$LIBS $libiconv"
6397 for ac_func in iconv_open iconv_close iconv nl_langinfo
6399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6400 echo "configure:6401: checking for $ac_func" >&5
6401 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6402 echo $ac_n "(cached) $ac_c" 1>&6
6403 else
6404 cat > conftest.$ac_ext <<EOF
6405 #line 6406 "configure"
6406 #include "confdefs.h"
6407 /* System header to define __stub macros and hopefully few prototypes,
6408 which can conflict with char $ac_func(); below. */
6409 #include <assert.h>
6410 /* Override any gcc2 internal prototype to avoid an error. */
6411 /* We use char because int might match the return type of a gcc2
6412 builtin and then its argument prototype would still apply. */
6413 char $ac_func();
6415 int main() {
6417 /* The GNU C library defines this for functions which it implements
6418 to always fail with ENOSYS. Some functions are actually named
6419 something starting with __ and the normal name is an alias. */
6420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6421 choke me
6422 #else
6423 $ac_func();
6424 #endif
6426 ; return 0; }
6428 if { (eval echo configure:6429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6429 rm -rf conftest*
6430 eval "ac_cv_func_$ac_func=yes"
6431 else
6432 echo "configure: failed program was:" >&5
6433 cat conftest.$ac_ext >&5
6434 rm -rf conftest*
6435 eval "ac_cv_func_$ac_func=no"
6437 rm -f conftest*
6440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6441 echo "$ac_t""yes" 1>&6
6442 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6443 cat >> confdefs.h <<EOF
6444 #define $ac_tr_func 1
6447 ac_XPG2funcs=yes
6448 else
6449 echo "$ac_t""no" 1>&6
6450 ac_XPG2funcs=no
6452 done
6455 LIBS="$ac_save_LIBS"
6457 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6458 echo "configure:6459: checking for XPG2 wchar_t support" >&5
6459 if test x"$ac_has_iconv_h" = xyes &&
6460 test x"$ac_has_langinfo_h" = xyes &&
6461 test x"$ac_XPG2funcs" = xyes; then
6462 ac_XPG2_wchar_t=yes
6463 else
6464 ac_XPG2_wchar_t=no
6466 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6468 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6469 echo "configure:6470: checking for enabled wchar_t specializations" >&5
6470 if test x"$ac_isoC99_wchar_t" = xyes &&
6471 test x"$ac_XPG2_wchar_t" = xyes; then
6472 cat >> confdefs.h <<\EOF
6473 #define _GLIBCPP_USE_WCHAR_T 1
6476 echo "$ac_t"""yes"" 1>&6
6477 else
6478 echo "$ac_t"""no"" 1>&6
6480 else
6481 echo "configure: warning: wchar_t support disabled." 1>&2
6484 os_include_dir="config/os/bsd/netbsd"
6485 cat >> confdefs.h <<\EOF
6486 #define HAVE_COPYSIGN 1
6489 cat >> confdefs.h <<\EOF
6490 #define HAVE_COPYSIGNF 1
6493 cat >> confdefs.h <<\EOF
6494 #define HAVE_FINITEF 1
6497 cat >> confdefs.h <<\EOF
6498 #define HAVE_FREXPF 1
6501 cat >> confdefs.h <<\EOF
6502 #define HAVE_HYPOTF 1
6507 os_include_dir="config/os/newlib"
6508 cat >> confdefs.h <<\EOF
6509 #define HAVE_HYPOT 1
6513 esac
6515 # GLIBCPP_CHECK_STDLIB_SUPPORT
6516 cat >> confdefs.h <<\EOF
6517 #define HAVE_STRTOF 1
6520 cat >> confdefs.h <<\EOF
6521 #define HAVE_STRTOLD 1
6524 # AC_FUNC_MMAP
6525 cat >> confdefs.h <<\EOF
6526 #define HAVE_MMAP 1
6530 cat >> confdefs.h <<\EOF
6531 #define HAVE_ACOSF 1
6534 cat >> confdefs.h <<\EOF
6535 #define HAVE_ASINF 1
6538 cat >> confdefs.h <<\EOF
6539 #define HAVE_ATAN2F 1
6542 cat >> confdefs.h <<\EOF
6543 #define HAVE_ATANF 1
6546 cat >> confdefs.h <<\EOF
6547 #define HAVE_CEILF 1
6550 cat >> confdefs.h <<\EOF
6551 #define HAVE_COPYSIGN 1
6554 cat >> confdefs.h <<\EOF
6555 #define HAVE_COPYSIGNF 1
6558 cat >> confdefs.h <<\EOF
6559 #define HAVE_COSF 1
6562 cat >> confdefs.h <<\EOF
6563 #define HAVE_COSHF 1
6566 cat >> confdefs.h <<\EOF
6567 #define HAVE_EXPF 1
6570 cat >> confdefs.h <<\EOF
6571 #define HAVE_FABSF 1
6574 cat >> confdefs.h <<\EOF
6575 #define HAVE_FINITE 1
6578 cat >> confdefs.h <<\EOF
6579 #define HAVE_FINITEF 1
6582 cat >> confdefs.h <<\EOF
6583 #define HAVE_FLOORF 1
6586 cat >> confdefs.h <<\EOF
6587 #define HAVE_FMODF 1
6590 cat >> confdefs.h <<\EOF
6591 #define HAVE_FREXPF 1
6594 cat >> confdefs.h <<\EOF
6595 #define HAVE_ISINF 1
6598 cat >> confdefs.h <<\EOF
6599 #define HAVE_ISINFF 1
6602 cat >> confdefs.h <<\EOF
6603 #define HAVE_ISNAN 1
6606 cat >> confdefs.h <<\EOF
6607 #define HAVE_ISNANF 1
6610 cat >> confdefs.h <<\EOF
6611 #define HAVE_LDEXPF 1
6614 cat >> confdefs.h <<\EOF
6615 #define HAVE_LOG10F 1
6618 cat >> confdefs.h <<\EOF
6619 #define HAVE_LOGF 1
6622 cat >> confdefs.h <<\EOF
6623 #define HAVE_MODFF 1
6626 cat >> confdefs.h <<\EOF
6627 #define HAVE_POWF 1
6630 cat >> confdefs.h <<\EOF
6631 #define HAVE_SINF 1
6634 cat >> confdefs.h <<\EOF
6635 #define HAVE_SINHF 1
6638 cat >> confdefs.h <<\EOF
6639 #define HAVE_SQRTF 1
6642 cat >> confdefs.h <<\EOF
6643 #define HAVE_TANF 1
6646 cat >> confdefs.h <<\EOF
6647 #define HAVE_TANHF 1
6651 # At some point, we should differentiate between architectures
6652 # like x86, which have long double versions, and alpha/powerpc/etc.,
6653 # which don't. For the time being, punt.
6654 if test x"long_double_math_on_this_cpu" = x"yes"; then
6655 cat >> confdefs.h <<\EOF
6656 #define HAVE_ACOSL 1
6659 cat >> confdefs.h <<\EOF
6660 #define HAVE_ASINL 1
6663 cat >> confdefs.h <<\EOF
6664 #define HAVE_ATAN2L 1
6667 cat >> confdefs.h <<\EOF
6668 #define HAVE_ATANL 1
6671 cat >> confdefs.h <<\EOF
6672 #define HAVE_CEILL 1
6675 cat >> confdefs.h <<\EOF
6676 #define HAVE_COPYSIGNL 1
6679 cat >> confdefs.h <<\EOF
6680 #define HAVE_COSL 1
6683 cat >> confdefs.h <<\EOF
6684 #define HAVE_COSHL 1
6687 cat >> confdefs.h <<\EOF
6688 #define HAVE_EXPL 1
6691 cat >> confdefs.h <<\EOF
6692 #define HAVE_FABSL 1
6695 cat >> confdefs.h <<\EOF
6696 #define HAVE_FINITEL 1
6699 cat >> confdefs.h <<\EOF
6700 #define HAVE_FLOORL 1
6703 cat >> confdefs.h <<\EOF
6704 #define HAVE_FMODL 1
6707 cat >> confdefs.h <<\EOF
6708 #define HAVE_FREXPL 1
6711 cat >> confdefs.h <<\EOF
6712 #define HAVE_ISINFL 1
6715 cat >> confdefs.h <<\EOF
6716 #define HAVE_ISNANL 1
6719 cat >> confdefs.h <<\EOF
6720 #define HAVE_LDEXPL 1
6723 cat >> confdefs.h <<\EOF
6724 #define HAVE_LOG10L 1
6727 cat >> confdefs.h <<\EOF
6728 #define HAVE_LOGL 1
6731 cat >> confdefs.h <<\EOF
6732 #define HAVE_MODFL 1
6735 cat >> confdefs.h <<\EOF
6736 #define HAVE_POWL 1
6739 cat >> confdefs.h <<\EOF
6740 #define HAVE_SINCOSL 1
6743 cat >> confdefs.h <<\EOF
6744 #define HAVE_SINL 1
6747 cat >> confdefs.h <<\EOF
6748 #define HAVE_SINHL 1
6751 cat >> confdefs.h <<\EOF
6752 #define HAVE_SQRTL 1
6755 cat >> confdefs.h <<\EOF
6756 #define HAVE_TANL 1
6759 cat >> confdefs.h <<\EOF
6760 #define HAVE_TANHL 1
6764 else
6766 # We are being configured natively. We can do more elaborate tests
6767 # that include AC_TRY_COMPILE now, as the linker is assumed to be
6768 # working.
6769 GLIBCPP_IS_CROSS_COMPILING=0
6770 CANADIAN=no
6772 # Check for available headers.
6773 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
6774 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
6776 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6777 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6778 echo "configure:6779: checking for $ac_hdr" >&5
6779 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6780 echo $ac_n "(cached) $ac_c" 1>&6
6781 else
6782 cat > conftest.$ac_ext <<EOF
6783 #line 6784 "configure"
6784 #include "confdefs.h"
6785 #include <$ac_hdr>
6787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6788 { (eval echo configure:6789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6790 if test -z "$ac_err"; then
6791 rm -rf conftest*
6792 eval "ac_cv_header_$ac_safe=yes"
6793 else
6794 echo "$ac_err" >&5
6795 echo "configure: failed program was:" >&5
6796 cat conftest.$ac_ext >&5
6797 rm -rf conftest*
6798 eval "ac_cv_header_$ac_safe=no"
6800 rm -f conftest*
6802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6803 echo "$ac_t""yes" 1>&6
6804 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6805 cat >> confdefs.h <<EOF
6806 #define $ac_tr_hdr 1
6809 else
6810 echo "$ac_t""no" 1>&6
6812 done
6816 # All these tests are for C++; save the language and the compiler flags.
6817 # The CXXFLAGS thing is suspicious, but based on similar bits previously
6818 # found in GLIBCPP_CONFIGURE.
6820 ac_ext=C
6821 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6822 ac_cpp='$CXXCPP $CPPFLAGS'
6823 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6824 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6825 cross_compiling=$ac_cv_prog_cxx_cross
6827 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6828 ac_save_CXXFLAGS="$CXXFLAGS"
6830 # Check for maintainer-mode bits.
6831 if test x"$USE_MAINTAINER_MODE" = xno; then
6832 WERROR=''
6833 else
6834 WERROR='-Werror'
6837 # Check for -ffunction-sections -fdata-sections
6838 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
6839 echo "configure:6840: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
6840 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
6841 cat > conftest.$ac_ext <<EOF
6842 #line 6843 "configure"
6843 #include "confdefs.h"
6845 int main() {
6846 int foo;
6848 ; return 0; }
6850 if { (eval echo configure:6851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6851 rm -rf conftest*
6852 ac_fdsections=yes
6853 else
6854 echo "configure: failed program was:" >&5
6855 cat conftest.$ac_ext >&5
6856 rm -rf conftest*
6857 ac_fdsections=no
6859 rm -f conftest*
6860 if test "$ac_test_CXXFLAGS" = set; then
6861 CXXFLAGS="$ac_save_CXXFLAGS"
6862 else
6863 # this is the suspicious part
6864 CXXFLAGS=''
6866 if test x"$ac_fdsections" = x"yes" &&
6867 test x"$enable_debug" = x"no"; then
6868 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6870 echo "$ac_t""$ac_fdsections" 1>&6
6872 ac_ext=c
6873 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6874 ac_cpp='$CPP $CPPFLAGS'
6875 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6876 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6877 cross_compiling=$ac_cv_prog_cc_cross
6883 # If we're not using GNU ld, then there's no point in even trying these
6884 # tests. Check for that first. We should have already tested for gld
6885 # by now (in libtool), but require it now just to be safe...
6886 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6887 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6890 # The name set by libtool depends on the version of libtool. Shame on us
6891 # for depending on an impl detail, but c'est la vie. Older versions used
6892 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6893 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6894 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6895 # set (hence we're using an older libtool), then set it.
6896 if test x${with_gnu_ld+set} != xset; then
6897 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6898 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6899 with_gnu_ld=no
6900 else
6901 with_gnu_ld=$ac_cv_prog_gnu_ld
6905 # Start by getting the version number. I think the libtool test already
6906 # does some of this, but throws away the result.
6908 ldver=`$LD --version 2>/dev/null | head -1 | \
6909 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6911 glibcpp_gnu_ld_version=`echo $ldver | \
6912 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6914 # Set --gc-sections.
6915 if test "$with_gnu_ld" = "notbroken"; then
6916 # GNU ld it is! Joy and bunny rabbits!
6918 # All these tests are for C++; save the language and the compiler flags.
6919 # Need to do this so that g++ won't try to link in libstdc++
6920 ac_test_CFLAGS="${CFLAGS+set}"
6921 ac_save_CFLAGS="$CFLAGS"
6922 CFLAGS='-x c++ -Wl,--gc-sections'
6924 # Check for -Wl,--gc-sections
6925 # XXX This test is broken at the moment, as symbols required for
6926 # linking are now in libsupc++ (not built yet.....). In addition,
6927 # this test has cored on solaris in the past. In addition,
6928 # --gc-sections doesn't really work at the moment (keeps on discarding
6929 # used sections, first .eh_frame and now some of the glibc sections for
6930 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6931 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6932 echo "configure:6933: checking for ld that supports -Wl,--gc-sections" >&5
6933 if test "$cross_compiling" = yes; then
6934 ac_sectionLDflags=yes
6935 else
6936 cat > conftest.$ac_ext <<EOF
6937 #line 6938 "configure"
6938 #include "confdefs.h"
6940 int main(void)
6942 try { throw 1; }
6943 catch (...) { };
6944 return 0;
6948 if { (eval echo configure:6949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6949 then
6950 ac_sectionLDflags=yes
6951 else
6952 echo "configure: failed program was:" >&5
6953 cat conftest.$ac_ext >&5
6954 rm -fr conftest*
6955 ac_sectionLDflags=no
6957 rm -fr conftest*
6960 if test "$ac_test_CFLAGS" = set; then
6961 CFLAGS="$ac_save_CFLAGS"
6962 else
6963 # this is the suspicious part
6964 CFLAGS=''
6966 if test "$ac_sectionLDflags" = "yes"; then
6967 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6969 echo "$ac_t""$ac_sectionLDflags" 1>&6
6972 # Set linker optimization flags.
6973 if test x"$with_gnu_ld" = x"yes" &&
6974 test x"$enable_debug" = x"no"; then
6975 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6983 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
6984 echo "configure:6985: checking for __builtin_abs declaration" >&5
6985 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
6986 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
6987 echo $ac_n "(cached) $ac_c" 1>&6
6988 else
6991 ac_ext=C
6992 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6993 ac_cpp='$CXXCPP $CPPFLAGS'
6994 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6995 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6996 cross_compiling=$ac_cv_prog_cxx_cross
6998 cat > conftest.$ac_ext <<EOF
6999 #line 7000 "configure"
7000 #include "confdefs.h"
7001 #include <math.h>
7002 int main() {
7003 __builtin_abs(0);
7004 ; return 0; }
7006 if { (eval echo configure:7007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7007 rm -rf conftest*
7008 glibcpp_cv_func___builtin_abs_use=yes
7009 else
7010 echo "configure: failed program was:" >&5
7011 cat conftest.$ac_ext >&5
7012 rm -rf conftest*
7013 glibcpp_cv_func___builtin_abs_use=no
7015 rm -f conftest*
7016 ac_ext=c
7017 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7018 ac_cpp='$CPP $CPPFLAGS'
7019 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7020 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7021 cross_compiling=$ac_cv_prog_cc_cross
7027 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
7028 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
7029 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
7030 echo "configure:7031: checking for __builtin_abs linkage" >&5
7031 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
7032 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
7033 echo $ac_n "(cached) $ac_c" 1>&6
7034 else
7036 cat > conftest.$ac_ext <<EOF
7037 #line 7038 "configure"
7038 #include "confdefs.h"
7039 #include <math.h>
7040 int main() {
7041 __builtin_abs(0);
7042 ; return 0; }
7044 if { (eval echo configure:7045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7045 rm -rf conftest*
7046 glibcpp_cv_func___builtin_abs_link=yes
7047 else
7048 echo "configure: failed program was:" >&5
7049 cat conftest.$ac_ext >&5
7050 rm -rf conftest*
7051 glibcpp_cv_func___builtin_abs_link=no
7053 rm -f conftest*
7058 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
7059 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
7060 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7061 cat >> confdefs.h <<EOF
7062 #define ${ac_tr_func} 1
7069 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
7070 echo "configure:7071: checking for __builtin_fabsf declaration" >&5
7071 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
7072 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
7073 echo $ac_n "(cached) $ac_c" 1>&6
7074 else
7077 ac_ext=C
7078 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7079 ac_cpp='$CXXCPP $CPPFLAGS'
7080 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7081 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7082 cross_compiling=$ac_cv_prog_cxx_cross
7084 cat > conftest.$ac_ext <<EOF
7085 #line 7086 "configure"
7086 #include "confdefs.h"
7087 #include <math.h>
7088 int main() {
7089 __builtin_fabsf(0);
7090 ; return 0; }
7092 if { (eval echo configure:7093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7093 rm -rf conftest*
7094 glibcpp_cv_func___builtin_fabsf_use=yes
7095 else
7096 echo "configure: failed program was:" >&5
7097 cat conftest.$ac_ext >&5
7098 rm -rf conftest*
7099 glibcpp_cv_func___builtin_fabsf_use=no
7101 rm -f conftest*
7102 ac_ext=c
7103 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7104 ac_cpp='$CPP $CPPFLAGS'
7105 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7106 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7107 cross_compiling=$ac_cv_prog_cc_cross
7113 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
7114 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
7115 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
7116 echo "configure:7117: checking for __builtin_fabsf linkage" >&5
7117 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
7118 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
7119 echo $ac_n "(cached) $ac_c" 1>&6
7120 else
7122 cat > conftest.$ac_ext <<EOF
7123 #line 7124 "configure"
7124 #include "confdefs.h"
7125 #include <math.h>
7126 int main() {
7127 __builtin_fabsf(0);
7128 ; return 0; }
7130 if { (eval echo configure:7131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7131 rm -rf conftest*
7132 glibcpp_cv_func___builtin_fabsf_link=yes
7133 else
7134 echo "configure: failed program was:" >&5
7135 cat conftest.$ac_ext >&5
7136 rm -rf conftest*
7137 glibcpp_cv_func___builtin_fabsf_link=no
7139 rm -f conftest*
7144 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
7145 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
7146 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7147 cat >> confdefs.h <<EOF
7148 #define ${ac_tr_func} 1
7155 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
7156 echo "configure:7157: checking for __builtin_fabs declaration" >&5
7157 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
7158 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
7159 echo $ac_n "(cached) $ac_c" 1>&6
7160 else
7163 ac_ext=C
7164 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7165 ac_cpp='$CXXCPP $CPPFLAGS'
7166 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7167 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7168 cross_compiling=$ac_cv_prog_cxx_cross
7170 cat > conftest.$ac_ext <<EOF
7171 #line 7172 "configure"
7172 #include "confdefs.h"
7173 #include <math.h>
7174 int main() {
7175 __builtin_fabs(0);
7176 ; return 0; }
7178 if { (eval echo configure:7179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7179 rm -rf conftest*
7180 glibcpp_cv_func___builtin_fabs_use=yes
7181 else
7182 echo "configure: failed program was:" >&5
7183 cat conftest.$ac_ext >&5
7184 rm -rf conftest*
7185 glibcpp_cv_func___builtin_fabs_use=no
7187 rm -f conftest*
7188 ac_ext=c
7189 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7190 ac_cpp='$CPP $CPPFLAGS'
7191 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7192 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7193 cross_compiling=$ac_cv_prog_cc_cross
7199 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
7200 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
7201 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
7202 echo "configure:7203: checking for __builtin_fabs linkage" >&5
7203 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
7204 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
7205 echo $ac_n "(cached) $ac_c" 1>&6
7206 else
7208 cat > conftest.$ac_ext <<EOF
7209 #line 7210 "configure"
7210 #include "confdefs.h"
7211 #include <math.h>
7212 int main() {
7213 __builtin_fabs(0);
7214 ; return 0; }
7216 if { (eval echo configure:7217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7217 rm -rf conftest*
7218 glibcpp_cv_func___builtin_fabs_link=yes
7219 else
7220 echo "configure: failed program was:" >&5
7221 cat conftest.$ac_ext >&5
7222 rm -rf conftest*
7223 glibcpp_cv_func___builtin_fabs_link=no
7225 rm -f conftest*
7230 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
7231 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
7232 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7233 cat >> confdefs.h <<EOF
7234 #define ${ac_tr_func} 1
7241 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
7242 echo "configure:7243: checking for __builtin_fabsl declaration" >&5
7243 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
7244 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
7245 echo $ac_n "(cached) $ac_c" 1>&6
7246 else
7249 ac_ext=C
7250 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7251 ac_cpp='$CXXCPP $CPPFLAGS'
7252 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7253 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7254 cross_compiling=$ac_cv_prog_cxx_cross
7256 cat > conftest.$ac_ext <<EOF
7257 #line 7258 "configure"
7258 #include "confdefs.h"
7259 #include <math.h>
7260 int main() {
7261 __builtin_fabsl(0);
7262 ; return 0; }
7264 if { (eval echo configure:7265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7265 rm -rf conftest*
7266 glibcpp_cv_func___builtin_fabsl_use=yes
7267 else
7268 echo "configure: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 rm -rf conftest*
7271 glibcpp_cv_func___builtin_fabsl_use=no
7273 rm -f conftest*
7274 ac_ext=c
7275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7276 ac_cpp='$CPP $CPPFLAGS'
7277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7278 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7279 cross_compiling=$ac_cv_prog_cc_cross
7285 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
7286 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
7287 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
7288 echo "configure:7289: checking for __builtin_fabsl linkage" >&5
7289 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
7290 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
7291 echo $ac_n "(cached) $ac_c" 1>&6
7292 else
7294 cat > conftest.$ac_ext <<EOF
7295 #line 7296 "configure"
7296 #include "confdefs.h"
7297 #include <math.h>
7298 int main() {
7299 __builtin_fabsl(0);
7300 ; return 0; }
7302 if { (eval echo configure:7303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7303 rm -rf conftest*
7304 glibcpp_cv_func___builtin_fabsl_link=yes
7305 else
7306 echo "configure: failed program was:" >&5
7307 cat conftest.$ac_ext >&5
7308 rm -rf conftest*
7309 glibcpp_cv_func___builtin_fabsl_link=no
7311 rm -f conftest*
7316 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
7317 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
7318 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7319 cat >> confdefs.h <<EOF
7320 #define ${ac_tr_func} 1
7327 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
7328 echo "configure:7329: checking for __builtin_labs declaration" >&5
7329 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
7330 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
7331 echo $ac_n "(cached) $ac_c" 1>&6
7332 else
7335 ac_ext=C
7336 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7337 ac_cpp='$CXXCPP $CPPFLAGS'
7338 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7339 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7340 cross_compiling=$ac_cv_prog_cxx_cross
7342 cat > conftest.$ac_ext <<EOF
7343 #line 7344 "configure"
7344 #include "confdefs.h"
7345 #include <math.h>
7346 int main() {
7347 __builtin_labs(0);
7348 ; return 0; }
7350 if { (eval echo configure:7351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7351 rm -rf conftest*
7352 glibcpp_cv_func___builtin_labs_use=yes
7353 else
7354 echo "configure: failed program was:" >&5
7355 cat conftest.$ac_ext >&5
7356 rm -rf conftest*
7357 glibcpp_cv_func___builtin_labs_use=no
7359 rm -f conftest*
7360 ac_ext=c
7361 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7362 ac_cpp='$CPP $CPPFLAGS'
7363 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7364 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7365 cross_compiling=$ac_cv_prog_cc_cross
7371 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
7372 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
7373 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
7374 echo "configure:7375: checking for __builtin_labs linkage" >&5
7375 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
7376 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
7377 echo $ac_n "(cached) $ac_c" 1>&6
7378 else
7380 cat > conftest.$ac_ext <<EOF
7381 #line 7382 "configure"
7382 #include "confdefs.h"
7383 #include <math.h>
7384 int main() {
7385 __builtin_labs(0);
7386 ; return 0; }
7388 if { (eval echo configure:7389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7389 rm -rf conftest*
7390 glibcpp_cv_func___builtin_labs_link=yes
7391 else
7392 echo "configure: failed program was:" >&5
7393 cat conftest.$ac_ext >&5
7394 rm -rf conftest*
7395 glibcpp_cv_func___builtin_labs_link=no
7397 rm -f conftest*
7402 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
7403 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
7404 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7405 cat >> confdefs.h <<EOF
7406 #define ${ac_tr_func} 1
7414 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
7415 echo "configure:7416: checking for __builtin_sqrtf declaration" >&5
7416 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
7417 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
7418 echo $ac_n "(cached) $ac_c" 1>&6
7419 else
7422 ac_ext=C
7423 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7424 ac_cpp='$CXXCPP $CPPFLAGS'
7425 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7426 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7427 cross_compiling=$ac_cv_prog_cxx_cross
7429 cat > conftest.$ac_ext <<EOF
7430 #line 7431 "configure"
7431 #include "confdefs.h"
7432 #include <math.h>
7433 int main() {
7434 __builtin_sqrtf(0);
7435 ; return 0; }
7437 if { (eval echo configure:7438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7438 rm -rf conftest*
7439 glibcpp_cv_func___builtin_sqrtf_use=yes
7440 else
7441 echo "configure: failed program was:" >&5
7442 cat conftest.$ac_ext >&5
7443 rm -rf conftest*
7444 glibcpp_cv_func___builtin_sqrtf_use=no
7446 rm -f conftest*
7447 ac_ext=c
7448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7449 ac_cpp='$CPP $CPPFLAGS'
7450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7452 cross_compiling=$ac_cv_prog_cc_cross
7458 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
7459 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
7460 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
7461 echo "configure:7462: checking for __builtin_sqrtf linkage" >&5
7462 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
7463 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
7464 echo $ac_n "(cached) $ac_c" 1>&6
7465 else
7467 cat > conftest.$ac_ext <<EOF
7468 #line 7469 "configure"
7469 #include "confdefs.h"
7470 #include <math.h>
7471 int main() {
7472 __builtin_sqrtf(0);
7473 ; return 0; }
7475 if { (eval echo configure:7476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7476 rm -rf conftest*
7477 glibcpp_cv_func___builtin_sqrtf_link=yes
7478 else
7479 echo "configure: failed program was:" >&5
7480 cat conftest.$ac_ext >&5
7481 rm -rf conftest*
7482 glibcpp_cv_func___builtin_sqrtf_link=no
7484 rm -f conftest*
7489 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
7490 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
7491 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7492 cat >> confdefs.h <<EOF
7493 #define ${ac_tr_func} 1
7500 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
7501 echo "configure:7502: checking for __builtin_sqrt declaration" >&5
7502 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
7503 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
7504 echo $ac_n "(cached) $ac_c" 1>&6
7505 else
7508 ac_ext=C
7509 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7510 ac_cpp='$CXXCPP $CPPFLAGS'
7511 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7512 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7513 cross_compiling=$ac_cv_prog_cxx_cross
7515 cat > conftest.$ac_ext <<EOF
7516 #line 7517 "configure"
7517 #include "confdefs.h"
7518 #include <math.h>
7519 int main() {
7520 __builtin_sqrt(0);
7521 ; return 0; }
7523 if { (eval echo configure:7524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7524 rm -rf conftest*
7525 glibcpp_cv_func___builtin_sqrt_use=yes
7526 else
7527 echo "configure: failed program was:" >&5
7528 cat conftest.$ac_ext >&5
7529 rm -rf conftest*
7530 glibcpp_cv_func___builtin_sqrt_use=no
7532 rm -f conftest*
7533 ac_ext=c
7534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7535 ac_cpp='$CPP $CPPFLAGS'
7536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7538 cross_compiling=$ac_cv_prog_cc_cross
7544 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
7545 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
7546 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
7547 echo "configure:7548: checking for __builtin_sqrt linkage" >&5
7548 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
7549 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
7550 echo $ac_n "(cached) $ac_c" 1>&6
7551 else
7553 cat > conftest.$ac_ext <<EOF
7554 #line 7555 "configure"
7555 #include "confdefs.h"
7556 #include <math.h>
7557 int main() {
7558 __builtin_sqrt(0);
7559 ; return 0; }
7561 if { (eval echo configure:7562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7562 rm -rf conftest*
7563 glibcpp_cv_func___builtin_sqrt_link=yes
7564 else
7565 echo "configure: failed program was:" >&5
7566 cat conftest.$ac_ext >&5
7567 rm -rf conftest*
7568 glibcpp_cv_func___builtin_sqrt_link=no
7570 rm -f conftest*
7575 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
7576 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
7577 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7578 cat >> confdefs.h <<EOF
7579 #define ${ac_tr_func} 1
7586 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
7587 echo "configure:7588: checking for __builtin_sqrtl declaration" >&5
7588 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
7589 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
7590 echo $ac_n "(cached) $ac_c" 1>&6
7591 else
7594 ac_ext=C
7595 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7596 ac_cpp='$CXXCPP $CPPFLAGS'
7597 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7598 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7599 cross_compiling=$ac_cv_prog_cxx_cross
7601 cat > conftest.$ac_ext <<EOF
7602 #line 7603 "configure"
7603 #include "confdefs.h"
7604 #include <math.h>
7605 int main() {
7606 __builtin_sqrtl(0);
7607 ; return 0; }
7609 if { (eval echo configure:7610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7610 rm -rf conftest*
7611 glibcpp_cv_func___builtin_sqrtl_use=yes
7612 else
7613 echo "configure: failed program was:" >&5
7614 cat conftest.$ac_ext >&5
7615 rm -rf conftest*
7616 glibcpp_cv_func___builtin_sqrtl_use=no
7618 rm -f conftest*
7619 ac_ext=c
7620 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7621 ac_cpp='$CPP $CPPFLAGS'
7622 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7623 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7624 cross_compiling=$ac_cv_prog_cc_cross
7630 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
7631 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
7632 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
7633 echo "configure:7634: checking for __builtin_sqrtl linkage" >&5
7634 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
7635 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
7636 echo $ac_n "(cached) $ac_c" 1>&6
7637 else
7639 cat > conftest.$ac_ext <<EOF
7640 #line 7641 "configure"
7641 #include "confdefs.h"
7642 #include <math.h>
7643 int main() {
7644 __builtin_sqrtl(0);
7645 ; return 0; }
7647 if { (eval echo configure:7648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7648 rm -rf conftest*
7649 glibcpp_cv_func___builtin_sqrtl_link=yes
7650 else
7651 echo "configure: failed program was:" >&5
7652 cat conftest.$ac_ext >&5
7653 rm -rf conftest*
7654 glibcpp_cv_func___builtin_sqrtl_link=no
7656 rm -f conftest*
7661 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
7662 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
7663 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7664 cat >> confdefs.h <<EOF
7665 #define ${ac_tr_func} 1
7673 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
7674 echo "configure:7675: checking for __builtin_sinf declaration" >&5
7675 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
7676 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
7677 echo $ac_n "(cached) $ac_c" 1>&6
7678 else
7681 ac_ext=C
7682 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7683 ac_cpp='$CXXCPP $CPPFLAGS'
7684 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7685 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7686 cross_compiling=$ac_cv_prog_cxx_cross
7688 cat > conftest.$ac_ext <<EOF
7689 #line 7690 "configure"
7690 #include "confdefs.h"
7691 #include <math.h>
7692 int main() {
7693 __builtin_sinf(0);
7694 ; return 0; }
7696 if { (eval echo configure:7697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7697 rm -rf conftest*
7698 glibcpp_cv_func___builtin_sinf_use=yes
7699 else
7700 echo "configure: failed program was:" >&5
7701 cat conftest.$ac_ext >&5
7702 rm -rf conftest*
7703 glibcpp_cv_func___builtin_sinf_use=no
7705 rm -f conftest*
7706 ac_ext=c
7707 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7708 ac_cpp='$CPP $CPPFLAGS'
7709 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7710 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7711 cross_compiling=$ac_cv_prog_cc_cross
7717 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
7718 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
7719 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
7720 echo "configure:7721: checking for __builtin_sinf linkage" >&5
7721 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
7722 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
7723 echo $ac_n "(cached) $ac_c" 1>&6
7724 else
7726 cat > conftest.$ac_ext <<EOF
7727 #line 7728 "configure"
7728 #include "confdefs.h"
7729 #include <math.h>
7730 int main() {
7731 __builtin_sinf(0);
7732 ; return 0; }
7734 if { (eval echo configure:7735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7735 rm -rf conftest*
7736 glibcpp_cv_func___builtin_sinf_link=yes
7737 else
7738 echo "configure: failed program was:" >&5
7739 cat conftest.$ac_ext >&5
7740 rm -rf conftest*
7741 glibcpp_cv_func___builtin_sinf_link=no
7743 rm -f conftest*
7748 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
7749 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
7750 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7751 cat >> confdefs.h <<EOF
7752 #define ${ac_tr_func} 1
7759 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
7760 echo "configure:7761: checking for __builtin_sin declaration" >&5
7761 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
7762 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
7763 echo $ac_n "(cached) $ac_c" 1>&6
7764 else
7767 ac_ext=C
7768 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7769 ac_cpp='$CXXCPP $CPPFLAGS'
7770 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7771 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7772 cross_compiling=$ac_cv_prog_cxx_cross
7774 cat > conftest.$ac_ext <<EOF
7775 #line 7776 "configure"
7776 #include "confdefs.h"
7777 #include <math.h>
7778 int main() {
7779 __builtin_sin(0);
7780 ; return 0; }
7782 if { (eval echo configure:7783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7783 rm -rf conftest*
7784 glibcpp_cv_func___builtin_sin_use=yes
7785 else
7786 echo "configure: failed program was:" >&5
7787 cat conftest.$ac_ext >&5
7788 rm -rf conftest*
7789 glibcpp_cv_func___builtin_sin_use=no
7791 rm -f conftest*
7792 ac_ext=c
7793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7794 ac_cpp='$CPP $CPPFLAGS'
7795 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7796 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7797 cross_compiling=$ac_cv_prog_cc_cross
7803 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
7804 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
7805 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
7806 echo "configure:7807: checking for __builtin_sin linkage" >&5
7807 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
7808 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
7809 echo $ac_n "(cached) $ac_c" 1>&6
7810 else
7812 cat > conftest.$ac_ext <<EOF
7813 #line 7814 "configure"
7814 #include "confdefs.h"
7815 #include <math.h>
7816 int main() {
7817 __builtin_sin(0);
7818 ; return 0; }
7820 if { (eval echo configure:7821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7821 rm -rf conftest*
7822 glibcpp_cv_func___builtin_sin_link=yes
7823 else
7824 echo "configure: failed program was:" >&5
7825 cat conftest.$ac_ext >&5
7826 rm -rf conftest*
7827 glibcpp_cv_func___builtin_sin_link=no
7829 rm -f conftest*
7834 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
7835 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
7836 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7837 cat >> confdefs.h <<EOF
7838 #define ${ac_tr_func} 1
7845 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
7846 echo "configure:7847: checking for __builtin_sinl declaration" >&5
7847 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
7848 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
7849 echo $ac_n "(cached) $ac_c" 1>&6
7850 else
7853 ac_ext=C
7854 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7855 ac_cpp='$CXXCPP $CPPFLAGS'
7856 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7857 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7858 cross_compiling=$ac_cv_prog_cxx_cross
7860 cat > conftest.$ac_ext <<EOF
7861 #line 7862 "configure"
7862 #include "confdefs.h"
7863 #include <math.h>
7864 int main() {
7865 __builtin_sinl(0);
7866 ; return 0; }
7868 if { (eval echo configure:7869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7869 rm -rf conftest*
7870 glibcpp_cv_func___builtin_sinl_use=yes
7871 else
7872 echo "configure: failed program was:" >&5
7873 cat conftest.$ac_ext >&5
7874 rm -rf conftest*
7875 glibcpp_cv_func___builtin_sinl_use=no
7877 rm -f conftest*
7878 ac_ext=c
7879 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7880 ac_cpp='$CPP $CPPFLAGS'
7881 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7882 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7883 cross_compiling=$ac_cv_prog_cc_cross
7889 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
7890 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
7891 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
7892 echo "configure:7893: checking for __builtin_sinl linkage" >&5
7893 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
7894 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
7895 echo $ac_n "(cached) $ac_c" 1>&6
7896 else
7898 cat > conftest.$ac_ext <<EOF
7899 #line 7900 "configure"
7900 #include "confdefs.h"
7901 #include <math.h>
7902 int main() {
7903 __builtin_sinl(0);
7904 ; return 0; }
7906 if { (eval echo configure:7907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7907 rm -rf conftest*
7908 glibcpp_cv_func___builtin_sinl_link=yes
7909 else
7910 echo "configure: failed program was:" >&5
7911 cat conftest.$ac_ext >&5
7912 rm -rf conftest*
7913 glibcpp_cv_func___builtin_sinl_link=no
7915 rm -f conftest*
7920 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
7921 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
7922 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7923 cat >> confdefs.h <<EOF
7924 #define ${ac_tr_func} 1
7932 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
7933 echo "configure:7934: checking for __builtin_cosf declaration" >&5
7934 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
7935 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
7936 echo $ac_n "(cached) $ac_c" 1>&6
7937 else
7940 ac_ext=C
7941 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7942 ac_cpp='$CXXCPP $CPPFLAGS'
7943 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7944 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7945 cross_compiling=$ac_cv_prog_cxx_cross
7947 cat > conftest.$ac_ext <<EOF
7948 #line 7949 "configure"
7949 #include "confdefs.h"
7950 #include <math.h>
7951 int main() {
7952 __builtin_cosf(0);
7953 ; return 0; }
7955 if { (eval echo configure:7956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7956 rm -rf conftest*
7957 glibcpp_cv_func___builtin_cosf_use=yes
7958 else
7959 echo "configure: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7961 rm -rf conftest*
7962 glibcpp_cv_func___builtin_cosf_use=no
7964 rm -f conftest*
7965 ac_ext=c
7966 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7967 ac_cpp='$CPP $CPPFLAGS'
7968 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7969 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7970 cross_compiling=$ac_cv_prog_cc_cross
7976 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
7977 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
7978 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
7979 echo "configure:7980: checking for __builtin_cosf linkage" >&5
7980 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
7981 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
7982 echo $ac_n "(cached) $ac_c" 1>&6
7983 else
7985 cat > conftest.$ac_ext <<EOF
7986 #line 7987 "configure"
7987 #include "confdefs.h"
7988 #include <math.h>
7989 int main() {
7990 __builtin_cosf(0);
7991 ; return 0; }
7993 if { (eval echo configure:7994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7994 rm -rf conftest*
7995 glibcpp_cv_func___builtin_cosf_link=yes
7996 else
7997 echo "configure: failed program was:" >&5
7998 cat conftest.$ac_ext >&5
7999 rm -rf conftest*
8000 glibcpp_cv_func___builtin_cosf_link=no
8002 rm -f conftest*
8007 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
8008 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
8009 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8010 cat >> confdefs.h <<EOF
8011 #define ${ac_tr_func} 1
8018 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
8019 echo "configure:8020: checking for __builtin_cos declaration" >&5
8020 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
8021 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
8022 echo $ac_n "(cached) $ac_c" 1>&6
8023 else
8026 ac_ext=C
8027 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8028 ac_cpp='$CXXCPP $CPPFLAGS'
8029 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8030 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8031 cross_compiling=$ac_cv_prog_cxx_cross
8033 cat > conftest.$ac_ext <<EOF
8034 #line 8035 "configure"
8035 #include "confdefs.h"
8036 #include <math.h>
8037 int main() {
8038 __builtin_cos(0);
8039 ; return 0; }
8041 if { (eval echo configure:8042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8042 rm -rf conftest*
8043 glibcpp_cv_func___builtin_cos_use=yes
8044 else
8045 echo "configure: failed program was:" >&5
8046 cat conftest.$ac_ext >&5
8047 rm -rf conftest*
8048 glibcpp_cv_func___builtin_cos_use=no
8050 rm -f conftest*
8051 ac_ext=c
8052 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8053 ac_cpp='$CPP $CPPFLAGS'
8054 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8055 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8056 cross_compiling=$ac_cv_prog_cc_cross
8062 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
8063 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
8064 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
8065 echo "configure:8066: checking for __builtin_cos linkage" >&5
8066 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
8067 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
8068 echo $ac_n "(cached) $ac_c" 1>&6
8069 else
8071 cat > conftest.$ac_ext <<EOF
8072 #line 8073 "configure"
8073 #include "confdefs.h"
8074 #include <math.h>
8075 int main() {
8076 __builtin_cos(0);
8077 ; return 0; }
8079 if { (eval echo configure:8080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8080 rm -rf conftest*
8081 glibcpp_cv_func___builtin_cos_link=yes
8082 else
8083 echo "configure: failed program was:" >&5
8084 cat conftest.$ac_ext >&5
8085 rm -rf conftest*
8086 glibcpp_cv_func___builtin_cos_link=no
8088 rm -f conftest*
8093 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
8094 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
8095 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8096 cat >> confdefs.h <<EOF
8097 #define ${ac_tr_func} 1
8104 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
8105 echo "configure:8106: checking for __builtin_cosl declaration" >&5
8106 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
8107 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
8108 echo $ac_n "(cached) $ac_c" 1>&6
8109 else
8112 ac_ext=C
8113 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8114 ac_cpp='$CXXCPP $CPPFLAGS'
8115 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8116 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8117 cross_compiling=$ac_cv_prog_cxx_cross
8119 cat > conftest.$ac_ext <<EOF
8120 #line 8121 "configure"
8121 #include "confdefs.h"
8122 #include <math.h>
8123 int main() {
8124 __builtin_cosl(0);
8125 ; return 0; }
8127 if { (eval echo configure:8128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8128 rm -rf conftest*
8129 glibcpp_cv_func___builtin_cosl_use=yes
8130 else
8131 echo "configure: failed program was:" >&5
8132 cat conftest.$ac_ext >&5
8133 rm -rf conftest*
8134 glibcpp_cv_func___builtin_cosl_use=no
8136 rm -f conftest*
8137 ac_ext=c
8138 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8139 ac_cpp='$CPP $CPPFLAGS'
8140 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8141 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8142 cross_compiling=$ac_cv_prog_cc_cross
8148 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
8149 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
8150 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
8151 echo "configure:8152: checking for __builtin_cosl linkage" >&5
8152 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
8153 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
8154 echo $ac_n "(cached) $ac_c" 1>&6
8155 else
8157 cat > conftest.$ac_ext <<EOF
8158 #line 8159 "configure"
8159 #include "confdefs.h"
8160 #include <math.h>
8161 int main() {
8162 __builtin_cosl(0);
8163 ; return 0; }
8165 if { (eval echo configure:8166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8166 rm -rf conftest*
8167 glibcpp_cv_func___builtin_cosl_link=yes
8168 else
8169 echo "configure: failed program was:" >&5
8170 cat conftest.$ac_ext >&5
8171 rm -rf conftest*
8172 glibcpp_cv_func___builtin_cosl_link=no
8174 rm -f conftest*
8179 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
8180 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
8181 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8182 cat >> confdefs.h <<EOF
8183 #define ${ac_tr_func} 1
8190 dummyvar=no
8191 if test x$dummyvar = x"yes"; then
8192 cat >> confdefs.h <<\EOF
8193 #define HAVE___BUILTIN_ABS 1
8196 cat >> confdefs.h <<\EOF
8197 #define HAVE___BUILTIN_LABS 1
8200 cat >> confdefs.h <<\EOF
8201 #define HAVE___BUILTIN_COS 1
8204 cat >> confdefs.h <<\EOF
8205 #define HAVE___BUILTIN_COSF 1
8208 cat >> confdefs.h <<\EOF
8209 #define HAVE___BUILTIN_COSL 1
8212 cat >> confdefs.h <<\EOF
8213 #define HAVE___BUILTIN_FABS 1
8216 cat >> confdefs.h <<\EOF
8217 #define HAVE___BUILTIN_FABSF 1
8220 cat >> confdefs.h <<\EOF
8221 #define HAVE___BUILTIN_FABSL 1
8224 cat >> confdefs.h <<\EOF
8225 #define HAVE___BUILTIN_SIN 1
8228 cat >> confdefs.h <<\EOF
8229 #define HAVE___BUILTIN_SINF 1
8232 cat >> confdefs.h <<\EOF
8233 #define HAVE___BUILTIN_SINL 1
8236 cat >> confdefs.h <<\EOF
8237 #define HAVE___BUILTIN_SQRT 1
8240 cat >> confdefs.h <<\EOF
8241 #define HAVE___BUILTIN_SQRTF 1
8244 cat >> confdefs.h <<\EOF
8245 #define HAVE___BUILTIN_SQRTL 1
8251 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8252 ac_save_CXXFLAGS="$CXXFLAGS"
8253 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
8255 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
8256 echo "configure:8257: checking for sin in -lm" >&5
8257 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
8258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8259 echo $ac_n "(cached) $ac_c" 1>&6
8260 else
8261 ac_save_LIBS="$LIBS"
8262 LIBS="-lm $LIBS"
8263 cat > conftest.$ac_ext <<EOF
8264 #line 8265 "configure"
8265 #include "confdefs.h"
8266 /* Override any gcc2 internal prototype to avoid an error. */
8267 /* We use char because int might match the return type of a gcc2
8268 builtin and then its argument prototype would still apply. */
8269 char sin();
8271 int main() {
8272 sin()
8273 ; return 0; }
8275 if { (eval echo configure:8276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8276 rm -rf conftest*
8277 eval "ac_cv_lib_$ac_lib_var=yes"
8278 else
8279 echo "configure: failed program was:" >&5
8280 cat conftest.$ac_ext >&5
8281 rm -rf conftest*
8282 eval "ac_cv_lib_$ac_lib_var=no"
8284 rm -f conftest*
8285 LIBS="$ac_save_LIBS"
8288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8289 echo "$ac_t""yes" 1>&6
8290 libm="-lm"
8291 else
8292 echo "$ac_t""no" 1>&6
8295 ac_save_LIBS="$LIBS"
8296 LIBS="$LIBS $libm"
8300 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
8301 echo "configure:8302: checking for isinf declaration" >&5
8302 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
8303 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
8304 echo $ac_n "(cached) $ac_c" 1>&6
8305 else
8308 ac_ext=C
8309 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8310 ac_cpp='$CXXCPP $CPPFLAGS'
8311 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8312 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8313 cross_compiling=$ac_cv_prog_cxx_cross
8315 cat > conftest.$ac_ext <<EOF
8316 #line 8317 "configure"
8317 #include "confdefs.h"
8318 #include <math.h>
8319 #ifdef HAVE_IEEEFP_H
8320 #include <ieeefp.h>
8321 #endif
8323 int main() {
8324 isinf(0);
8325 ; return 0; }
8327 if { (eval echo configure:8328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8328 rm -rf conftest*
8329 glibcpp_cv_func_isinf_use=yes
8330 else
8331 echo "configure: failed program was:" >&5
8332 cat conftest.$ac_ext >&5
8333 rm -rf conftest*
8334 glibcpp_cv_func_isinf_use=no
8336 rm -f conftest*
8337 ac_ext=c
8338 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8339 ac_cpp='$CPP $CPPFLAGS'
8340 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8341 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8342 cross_compiling=$ac_cv_prog_cc_cross
8348 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
8350 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
8351 for ac_func in isinf
8353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8354 echo "configure:8355: checking for $ac_func" >&5
8355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8356 echo $ac_n "(cached) $ac_c" 1>&6
8357 else
8358 cat > conftest.$ac_ext <<EOF
8359 #line 8360 "configure"
8360 #include "confdefs.h"
8361 /* System header to define __stub macros and hopefully few prototypes,
8362 which can conflict with char $ac_func(); below. */
8363 #include <assert.h>
8364 /* Override any gcc2 internal prototype to avoid an error. */
8365 /* We use char because int might match the return type of a gcc2
8366 builtin and then its argument prototype would still apply. */
8367 char $ac_func();
8369 int main() {
8371 /* The GNU C library defines this for functions which it implements
8372 to always fail with ENOSYS. Some functions are actually named
8373 something starting with __ and the normal name is an alias. */
8374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8375 choke me
8376 #else
8377 $ac_func();
8378 #endif
8380 ; return 0; }
8382 if { (eval echo configure:8383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8383 rm -rf conftest*
8384 eval "ac_cv_func_$ac_func=yes"
8385 else
8386 echo "configure: failed program was:" >&5
8387 cat conftest.$ac_ext >&5
8388 rm -rf conftest*
8389 eval "ac_cv_func_$ac_func=no"
8391 rm -f conftest*
8394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8395 echo "$ac_t""yes" 1>&6
8396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8397 cat >> confdefs.h <<EOF
8398 #define $ac_tr_func 1
8401 else
8402 echo "$ac_t""no" 1>&6
8404 done
8406 else
8408 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
8409 echo "configure:8410: checking for _isinf declaration" >&5
8410 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
8411 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
8412 echo $ac_n "(cached) $ac_c" 1>&6
8413 else
8416 ac_ext=C
8417 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8418 ac_cpp='$CXXCPP $CPPFLAGS'
8419 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8420 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8421 cross_compiling=$ac_cv_prog_cxx_cross
8423 cat > conftest.$ac_ext <<EOF
8424 #line 8425 "configure"
8425 #include "confdefs.h"
8426 #include <math.h>
8427 #ifdef HAVE_IEEEFP_H
8428 #include <ieeefp.h>
8429 #endif
8431 int main() {
8432 _isinf(0);
8433 ; return 0; }
8435 if { (eval echo configure:8436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8436 rm -rf conftest*
8437 glibcpp_cv_func__isinf_use=yes
8438 else
8439 echo "configure: failed program was:" >&5
8440 cat conftest.$ac_ext >&5
8441 rm -rf conftest*
8442 glibcpp_cv_func__isinf_use=no
8444 rm -f conftest*
8445 ac_ext=c
8446 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8447 ac_cpp='$CPP $CPPFLAGS'
8448 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8449 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8450 cross_compiling=$ac_cv_prog_cc_cross
8456 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
8458 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
8459 for ac_func in _isinf
8461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8462 echo "configure:8463: checking for $ac_func" >&5
8463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8464 echo $ac_n "(cached) $ac_c" 1>&6
8465 else
8466 cat > conftest.$ac_ext <<EOF
8467 #line 8468 "configure"
8468 #include "confdefs.h"
8469 /* System header to define __stub macros and hopefully few prototypes,
8470 which can conflict with char $ac_func(); below. */
8471 #include <assert.h>
8472 /* Override any gcc2 internal prototype to avoid an error. */
8473 /* We use char because int might match the return type of a gcc2
8474 builtin and then its argument prototype would still apply. */
8475 char $ac_func();
8477 int main() {
8479 /* The GNU C library defines this for functions which it implements
8480 to always fail with ENOSYS. Some functions are actually named
8481 something starting with __ and the normal name is an alias. */
8482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8483 choke me
8484 #else
8485 $ac_func();
8486 #endif
8488 ; return 0; }
8490 if { (eval echo configure:8491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8491 rm -rf conftest*
8492 eval "ac_cv_func_$ac_func=yes"
8493 else
8494 echo "configure: failed program was:" >&5
8495 cat conftest.$ac_ext >&5
8496 rm -rf conftest*
8497 eval "ac_cv_func_$ac_func=no"
8499 rm -f conftest*
8502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8503 echo "$ac_t""yes" 1>&6
8504 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8505 cat >> confdefs.h <<EOF
8506 #define $ac_tr_func 1
8509 else
8510 echo "$ac_t""no" 1>&6
8512 done
8519 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
8520 echo "configure:8521: checking for isnan declaration" >&5
8521 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
8522 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
8523 echo $ac_n "(cached) $ac_c" 1>&6
8524 else
8527 ac_ext=C
8528 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8529 ac_cpp='$CXXCPP $CPPFLAGS'
8530 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8531 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8532 cross_compiling=$ac_cv_prog_cxx_cross
8534 cat > conftest.$ac_ext <<EOF
8535 #line 8536 "configure"
8536 #include "confdefs.h"
8537 #include <math.h>
8538 #ifdef HAVE_IEEEFP_H
8539 #include <ieeefp.h>
8540 #endif
8542 int main() {
8543 isnan(0);
8544 ; return 0; }
8546 if { (eval echo configure:8547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8547 rm -rf conftest*
8548 glibcpp_cv_func_isnan_use=yes
8549 else
8550 echo "configure: failed program was:" >&5
8551 cat conftest.$ac_ext >&5
8552 rm -rf conftest*
8553 glibcpp_cv_func_isnan_use=no
8555 rm -f conftest*
8556 ac_ext=c
8557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8558 ac_cpp='$CPP $CPPFLAGS'
8559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8561 cross_compiling=$ac_cv_prog_cc_cross
8567 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
8569 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
8570 for ac_func in isnan
8572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8573 echo "configure:8574: checking for $ac_func" >&5
8574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8575 echo $ac_n "(cached) $ac_c" 1>&6
8576 else
8577 cat > conftest.$ac_ext <<EOF
8578 #line 8579 "configure"
8579 #include "confdefs.h"
8580 /* System header to define __stub macros and hopefully few prototypes,
8581 which can conflict with char $ac_func(); below. */
8582 #include <assert.h>
8583 /* Override any gcc2 internal prototype to avoid an error. */
8584 /* We use char because int might match the return type of a gcc2
8585 builtin and then its argument prototype would still apply. */
8586 char $ac_func();
8588 int main() {
8590 /* The GNU C library defines this for functions which it implements
8591 to always fail with ENOSYS. Some functions are actually named
8592 something starting with __ and the normal name is an alias. */
8593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8594 choke me
8595 #else
8596 $ac_func();
8597 #endif
8599 ; return 0; }
8601 if { (eval echo configure:8602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8602 rm -rf conftest*
8603 eval "ac_cv_func_$ac_func=yes"
8604 else
8605 echo "configure: failed program was:" >&5
8606 cat conftest.$ac_ext >&5
8607 rm -rf conftest*
8608 eval "ac_cv_func_$ac_func=no"
8610 rm -f conftest*
8613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8614 echo "$ac_t""yes" 1>&6
8615 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8616 cat >> confdefs.h <<EOF
8617 #define $ac_tr_func 1
8620 else
8621 echo "$ac_t""no" 1>&6
8623 done
8625 else
8627 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
8628 echo "configure:8629: checking for _isnan declaration" >&5
8629 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
8630 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
8631 echo $ac_n "(cached) $ac_c" 1>&6
8632 else
8635 ac_ext=C
8636 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8637 ac_cpp='$CXXCPP $CPPFLAGS'
8638 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8639 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8640 cross_compiling=$ac_cv_prog_cxx_cross
8642 cat > conftest.$ac_ext <<EOF
8643 #line 8644 "configure"
8644 #include "confdefs.h"
8645 #include <math.h>
8646 #ifdef HAVE_IEEEFP_H
8647 #include <ieeefp.h>
8648 #endif
8650 int main() {
8651 _isnan(0);
8652 ; return 0; }
8654 if { (eval echo configure:8655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8655 rm -rf conftest*
8656 glibcpp_cv_func__isnan_use=yes
8657 else
8658 echo "configure: failed program was:" >&5
8659 cat conftest.$ac_ext >&5
8660 rm -rf conftest*
8661 glibcpp_cv_func__isnan_use=no
8663 rm -f conftest*
8664 ac_ext=c
8665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8666 ac_cpp='$CPP $CPPFLAGS'
8667 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8668 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8669 cross_compiling=$ac_cv_prog_cc_cross
8675 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
8677 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
8678 for ac_func in _isnan
8680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8681 echo "configure:8682: checking for $ac_func" >&5
8682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8683 echo $ac_n "(cached) $ac_c" 1>&6
8684 else
8685 cat > conftest.$ac_ext <<EOF
8686 #line 8687 "configure"
8687 #include "confdefs.h"
8688 /* System header to define __stub macros and hopefully few prototypes,
8689 which can conflict with char $ac_func(); below. */
8690 #include <assert.h>
8691 /* Override any gcc2 internal prototype to avoid an error. */
8692 /* We use char because int might match the return type of a gcc2
8693 builtin and then its argument prototype would still apply. */
8694 char $ac_func();
8696 int main() {
8698 /* The GNU C library defines this for functions which it implements
8699 to always fail with ENOSYS. Some functions are actually named
8700 something starting with __ and the normal name is an alias. */
8701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8702 choke me
8703 #else
8704 $ac_func();
8705 #endif
8707 ; return 0; }
8709 if { (eval echo configure:8710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8710 rm -rf conftest*
8711 eval "ac_cv_func_$ac_func=yes"
8712 else
8713 echo "configure: failed program was:" >&5
8714 cat conftest.$ac_ext >&5
8715 rm -rf conftest*
8716 eval "ac_cv_func_$ac_func=no"
8718 rm -f conftest*
8721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8722 echo "$ac_t""yes" 1>&6
8723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8724 cat >> confdefs.h <<EOF
8725 #define $ac_tr_func 1
8728 else
8729 echo "$ac_t""no" 1>&6
8731 done
8738 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
8739 echo "configure:8740: checking for finite declaration" >&5
8740 if test x${glibcpp_cv_func_finite_use+set} != xset; then
8741 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
8742 echo $ac_n "(cached) $ac_c" 1>&6
8743 else
8746 ac_ext=C
8747 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8748 ac_cpp='$CXXCPP $CPPFLAGS'
8749 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8750 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8751 cross_compiling=$ac_cv_prog_cxx_cross
8753 cat > conftest.$ac_ext <<EOF
8754 #line 8755 "configure"
8755 #include "confdefs.h"
8756 #include <math.h>
8757 #ifdef HAVE_IEEEFP_H
8758 #include <ieeefp.h>
8759 #endif
8761 int main() {
8762 finite(0);
8763 ; return 0; }
8765 if { (eval echo configure:8766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8766 rm -rf conftest*
8767 glibcpp_cv_func_finite_use=yes
8768 else
8769 echo "configure: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8771 rm -rf conftest*
8772 glibcpp_cv_func_finite_use=no
8774 rm -f conftest*
8775 ac_ext=c
8776 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8777 ac_cpp='$CPP $CPPFLAGS'
8778 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8779 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8780 cross_compiling=$ac_cv_prog_cc_cross
8786 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
8788 if test x$glibcpp_cv_func_finite_use = x"yes"; then
8789 for ac_func in finite
8791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8792 echo "configure:8793: checking for $ac_func" >&5
8793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8794 echo $ac_n "(cached) $ac_c" 1>&6
8795 else
8796 cat > conftest.$ac_ext <<EOF
8797 #line 8798 "configure"
8798 #include "confdefs.h"
8799 /* System header to define __stub macros and hopefully few prototypes,
8800 which can conflict with char $ac_func(); below. */
8801 #include <assert.h>
8802 /* Override any gcc2 internal prototype to avoid an error. */
8803 /* We use char because int might match the return type of a gcc2
8804 builtin and then its argument prototype would still apply. */
8805 char $ac_func();
8807 int main() {
8809 /* The GNU C library defines this for functions which it implements
8810 to always fail with ENOSYS. Some functions are actually named
8811 something starting with __ and the normal name is an alias. */
8812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8813 choke me
8814 #else
8815 $ac_func();
8816 #endif
8818 ; return 0; }
8820 if { (eval echo configure:8821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8821 rm -rf conftest*
8822 eval "ac_cv_func_$ac_func=yes"
8823 else
8824 echo "configure: failed program was:" >&5
8825 cat conftest.$ac_ext >&5
8826 rm -rf conftest*
8827 eval "ac_cv_func_$ac_func=no"
8829 rm -f conftest*
8832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8833 echo "$ac_t""yes" 1>&6
8834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8835 cat >> confdefs.h <<EOF
8836 #define $ac_tr_func 1
8839 else
8840 echo "$ac_t""no" 1>&6
8842 done
8844 else
8846 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
8847 echo "configure:8848: checking for _finite declaration" >&5
8848 if test x${glibcpp_cv_func__finite_use+set} != xset; then
8849 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
8850 echo $ac_n "(cached) $ac_c" 1>&6
8851 else
8854 ac_ext=C
8855 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8856 ac_cpp='$CXXCPP $CPPFLAGS'
8857 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8858 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8859 cross_compiling=$ac_cv_prog_cxx_cross
8861 cat > conftest.$ac_ext <<EOF
8862 #line 8863 "configure"
8863 #include "confdefs.h"
8864 #include <math.h>
8865 #ifdef HAVE_IEEEFP_H
8866 #include <ieeefp.h>
8867 #endif
8869 int main() {
8870 _finite(0);
8871 ; return 0; }
8873 if { (eval echo configure:8874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8874 rm -rf conftest*
8875 glibcpp_cv_func__finite_use=yes
8876 else
8877 echo "configure: failed program was:" >&5
8878 cat conftest.$ac_ext >&5
8879 rm -rf conftest*
8880 glibcpp_cv_func__finite_use=no
8882 rm -f conftest*
8883 ac_ext=c
8884 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8885 ac_cpp='$CPP $CPPFLAGS'
8886 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8887 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8888 cross_compiling=$ac_cv_prog_cc_cross
8894 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
8896 if test x$glibcpp_cv_func__finite_use = x"yes"; then
8897 for ac_func in _finite
8899 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8900 echo "configure:8901: checking for $ac_func" >&5
8901 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8902 echo $ac_n "(cached) $ac_c" 1>&6
8903 else
8904 cat > conftest.$ac_ext <<EOF
8905 #line 8906 "configure"
8906 #include "confdefs.h"
8907 /* System header to define __stub macros and hopefully few prototypes,
8908 which can conflict with char $ac_func(); below. */
8909 #include <assert.h>
8910 /* Override any gcc2 internal prototype to avoid an error. */
8911 /* We use char because int might match the return type of a gcc2
8912 builtin and then its argument prototype would still apply. */
8913 char $ac_func();
8915 int main() {
8917 /* The GNU C library defines this for functions which it implements
8918 to always fail with ENOSYS. Some functions are actually named
8919 something starting with __ and the normal name is an alias. */
8920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8921 choke me
8922 #else
8923 $ac_func();
8924 #endif
8926 ; return 0; }
8928 if { (eval echo configure:8929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8929 rm -rf conftest*
8930 eval "ac_cv_func_$ac_func=yes"
8931 else
8932 echo "configure: failed program was:" >&5
8933 cat conftest.$ac_ext >&5
8934 rm -rf conftest*
8935 eval "ac_cv_func_$ac_func=no"
8937 rm -f conftest*
8940 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8941 echo "$ac_t""yes" 1>&6
8942 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8943 cat >> confdefs.h <<EOF
8944 #define $ac_tr_func 1
8947 else
8948 echo "$ac_t""no" 1>&6
8950 done
8957 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
8958 echo "configure:8959: checking for copysign declaration" >&5
8959 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
8960 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
8961 echo $ac_n "(cached) $ac_c" 1>&6
8962 else
8965 ac_ext=C
8966 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8967 ac_cpp='$CXXCPP $CPPFLAGS'
8968 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8969 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8970 cross_compiling=$ac_cv_prog_cxx_cross
8972 cat > conftest.$ac_ext <<EOF
8973 #line 8974 "configure"
8974 #include "confdefs.h"
8975 #include <math.h>
8976 int main() {
8977 copysign(0, 0);
8978 ; return 0; }
8980 if { (eval echo configure:8981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8981 rm -rf conftest*
8982 glibcpp_cv_func_copysign_use=yes
8983 else
8984 echo "configure: failed program was:" >&5
8985 cat conftest.$ac_ext >&5
8986 rm -rf conftest*
8987 glibcpp_cv_func_copysign_use=no
8989 rm -f conftest*
8990 ac_ext=c
8991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8992 ac_cpp='$CPP $CPPFLAGS'
8993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8995 cross_compiling=$ac_cv_prog_cc_cross
9001 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
9003 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
9004 for ac_func in copysign
9006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9007 echo "configure:9008: checking for $ac_func" >&5
9008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9009 echo $ac_n "(cached) $ac_c" 1>&6
9010 else
9011 cat > conftest.$ac_ext <<EOF
9012 #line 9013 "configure"
9013 #include "confdefs.h"
9014 /* System header to define __stub macros and hopefully few prototypes,
9015 which can conflict with char $ac_func(); below. */
9016 #include <assert.h>
9017 /* Override any gcc2 internal prototype to avoid an error. */
9018 /* We use char because int might match the return type of a gcc2
9019 builtin and then its argument prototype would still apply. */
9020 char $ac_func();
9022 int main() {
9024 /* The GNU C library defines this for functions which it implements
9025 to always fail with ENOSYS. Some functions are actually named
9026 something starting with __ and the normal name is an alias. */
9027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9028 choke me
9029 #else
9030 $ac_func();
9031 #endif
9033 ; return 0; }
9035 if { (eval echo configure:9036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9036 rm -rf conftest*
9037 eval "ac_cv_func_$ac_func=yes"
9038 else
9039 echo "configure: failed program was:" >&5
9040 cat conftest.$ac_ext >&5
9041 rm -rf conftest*
9042 eval "ac_cv_func_$ac_func=no"
9044 rm -f conftest*
9047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9048 echo "$ac_t""yes" 1>&6
9049 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9050 cat >> confdefs.h <<EOF
9051 #define $ac_tr_func 1
9054 else
9055 echo "$ac_t""no" 1>&6
9057 done
9059 else
9061 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
9062 echo "configure:9063: checking for _copysign declaration" >&5
9063 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
9064 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
9065 echo $ac_n "(cached) $ac_c" 1>&6
9066 else
9069 ac_ext=C
9070 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9071 ac_cpp='$CXXCPP $CPPFLAGS'
9072 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9073 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9074 cross_compiling=$ac_cv_prog_cxx_cross
9076 cat > conftest.$ac_ext <<EOF
9077 #line 9078 "configure"
9078 #include "confdefs.h"
9079 #include <math.h>
9080 int main() {
9081 _copysign(0, 0);
9082 ; return 0; }
9084 if { (eval echo configure:9085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9085 rm -rf conftest*
9086 glibcpp_cv_func__copysign_use=yes
9087 else
9088 echo "configure: failed program was:" >&5
9089 cat conftest.$ac_ext >&5
9090 rm -rf conftest*
9091 glibcpp_cv_func__copysign_use=no
9093 rm -f conftest*
9094 ac_ext=c
9095 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9096 ac_cpp='$CPP $CPPFLAGS'
9097 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9098 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9099 cross_compiling=$ac_cv_prog_cc_cross
9105 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
9107 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
9108 for ac_func in _copysign
9110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9111 echo "configure:9112: checking for $ac_func" >&5
9112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9113 echo $ac_n "(cached) $ac_c" 1>&6
9114 else
9115 cat > conftest.$ac_ext <<EOF
9116 #line 9117 "configure"
9117 #include "confdefs.h"
9118 /* System header to define __stub macros and hopefully few prototypes,
9119 which can conflict with char $ac_func(); below. */
9120 #include <assert.h>
9121 /* Override any gcc2 internal prototype to avoid an error. */
9122 /* We use char because int might match the return type of a gcc2
9123 builtin and then its argument prototype would still apply. */
9124 char $ac_func();
9126 int main() {
9128 /* The GNU C library defines this for functions which it implements
9129 to always fail with ENOSYS. Some functions are actually named
9130 something starting with __ and the normal name is an alias. */
9131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9132 choke me
9133 #else
9134 $ac_func();
9135 #endif
9137 ; return 0; }
9139 if { (eval echo configure:9140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9140 rm -rf conftest*
9141 eval "ac_cv_func_$ac_func=yes"
9142 else
9143 echo "configure: failed program was:" >&5
9144 cat conftest.$ac_ext >&5
9145 rm -rf conftest*
9146 eval "ac_cv_func_$ac_func=no"
9148 rm -f conftest*
9151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9152 echo "$ac_t""yes" 1>&6
9153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9154 cat >> confdefs.h <<EOF
9155 #define $ac_tr_func 1
9158 else
9159 echo "$ac_t""no" 1>&6
9161 done
9168 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
9169 echo "configure:9170: checking for sincos declaration" >&5
9170 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
9171 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
9172 echo $ac_n "(cached) $ac_c" 1>&6
9173 else
9176 ac_ext=C
9177 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9178 ac_cpp='$CXXCPP $CPPFLAGS'
9179 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9180 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9181 cross_compiling=$ac_cv_prog_cxx_cross
9183 cat > conftest.$ac_ext <<EOF
9184 #line 9185 "configure"
9185 #include "confdefs.h"
9186 #include <math.h>
9187 int main() {
9188 sincos(0, 0, 0);
9189 ; return 0; }
9191 if { (eval echo configure:9192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9192 rm -rf conftest*
9193 glibcpp_cv_func_sincos_use=yes
9194 else
9195 echo "configure: failed program was:" >&5
9196 cat conftest.$ac_ext >&5
9197 rm -rf conftest*
9198 glibcpp_cv_func_sincos_use=no
9200 rm -f conftest*
9201 ac_ext=c
9202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9203 ac_cpp='$CPP $CPPFLAGS'
9204 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9205 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9206 cross_compiling=$ac_cv_prog_cc_cross
9212 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
9214 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
9215 for ac_func in sincos
9217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9218 echo "configure:9219: checking for $ac_func" >&5
9219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9220 echo $ac_n "(cached) $ac_c" 1>&6
9221 else
9222 cat > conftest.$ac_ext <<EOF
9223 #line 9224 "configure"
9224 #include "confdefs.h"
9225 /* System header to define __stub macros and hopefully few prototypes,
9226 which can conflict with char $ac_func(); below. */
9227 #include <assert.h>
9228 /* Override any gcc2 internal prototype to avoid an error. */
9229 /* We use char because int might match the return type of a gcc2
9230 builtin and then its argument prototype would still apply. */
9231 char $ac_func();
9233 int main() {
9235 /* The GNU C library defines this for functions which it implements
9236 to always fail with ENOSYS. Some functions are actually named
9237 something starting with __ and the normal name is an alias. */
9238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9239 choke me
9240 #else
9241 $ac_func();
9242 #endif
9244 ; return 0; }
9246 if { (eval echo configure:9247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9247 rm -rf conftest*
9248 eval "ac_cv_func_$ac_func=yes"
9249 else
9250 echo "configure: failed program was:" >&5
9251 cat conftest.$ac_ext >&5
9252 rm -rf conftest*
9253 eval "ac_cv_func_$ac_func=no"
9255 rm -f conftest*
9258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9259 echo "$ac_t""yes" 1>&6
9260 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9261 cat >> confdefs.h <<EOF
9262 #define $ac_tr_func 1
9265 else
9266 echo "$ac_t""no" 1>&6
9268 done
9270 else
9272 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
9273 echo "configure:9274: checking for _sincos declaration" >&5
9274 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
9275 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
9276 echo $ac_n "(cached) $ac_c" 1>&6
9277 else
9280 ac_ext=C
9281 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9282 ac_cpp='$CXXCPP $CPPFLAGS'
9283 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9284 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9285 cross_compiling=$ac_cv_prog_cxx_cross
9287 cat > conftest.$ac_ext <<EOF
9288 #line 9289 "configure"
9289 #include "confdefs.h"
9290 #include <math.h>
9291 int main() {
9292 _sincos(0, 0, 0);
9293 ; return 0; }
9295 if { (eval echo configure:9296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9296 rm -rf conftest*
9297 glibcpp_cv_func__sincos_use=yes
9298 else
9299 echo "configure: failed program was:" >&5
9300 cat conftest.$ac_ext >&5
9301 rm -rf conftest*
9302 glibcpp_cv_func__sincos_use=no
9304 rm -f conftest*
9305 ac_ext=c
9306 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9307 ac_cpp='$CPP $CPPFLAGS'
9308 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9309 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9310 cross_compiling=$ac_cv_prog_cc_cross
9316 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
9318 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
9319 for ac_func in _sincos
9321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9322 echo "configure:9323: checking for $ac_func" >&5
9323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9324 echo $ac_n "(cached) $ac_c" 1>&6
9325 else
9326 cat > conftest.$ac_ext <<EOF
9327 #line 9328 "configure"
9328 #include "confdefs.h"
9329 /* System header to define __stub macros and hopefully few prototypes,
9330 which can conflict with char $ac_func(); below. */
9331 #include <assert.h>
9332 /* Override any gcc2 internal prototype to avoid an error. */
9333 /* We use char because int might match the return type of a gcc2
9334 builtin and then its argument prototype would still apply. */
9335 char $ac_func();
9337 int main() {
9339 /* The GNU C library defines this for functions which it implements
9340 to always fail with ENOSYS. Some functions are actually named
9341 something starting with __ and the normal name is an alias. */
9342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9343 choke me
9344 #else
9345 $ac_func();
9346 #endif
9348 ; return 0; }
9350 if { (eval echo configure:9351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9351 rm -rf conftest*
9352 eval "ac_cv_func_$ac_func=yes"
9353 else
9354 echo "configure: failed program was:" >&5
9355 cat conftest.$ac_ext >&5
9356 rm -rf conftest*
9357 eval "ac_cv_func_$ac_func=no"
9359 rm -f conftest*
9362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9363 echo "$ac_t""yes" 1>&6
9364 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9365 cat >> confdefs.h <<EOF
9366 #define $ac_tr_func 1
9369 else
9370 echo "$ac_t""no" 1>&6
9372 done
9379 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
9380 echo "configure:9381: checking for fpclass declaration" >&5
9381 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
9382 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
9383 echo $ac_n "(cached) $ac_c" 1>&6
9384 else
9387 ac_ext=C
9388 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9389 ac_cpp='$CXXCPP $CPPFLAGS'
9390 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9391 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9392 cross_compiling=$ac_cv_prog_cxx_cross
9394 cat > conftest.$ac_ext <<EOF
9395 #line 9396 "configure"
9396 #include "confdefs.h"
9397 #include <math.h>
9398 #ifdef HAVE_IEEEFP_H
9399 #include <ieeefp.h>
9400 #endif
9402 int main() {
9403 fpclass(0);
9404 ; return 0; }
9406 if { (eval echo configure:9407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9407 rm -rf conftest*
9408 glibcpp_cv_func_fpclass_use=yes
9409 else
9410 echo "configure: failed program was:" >&5
9411 cat conftest.$ac_ext >&5
9412 rm -rf conftest*
9413 glibcpp_cv_func_fpclass_use=no
9415 rm -f conftest*
9416 ac_ext=c
9417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9418 ac_cpp='$CPP $CPPFLAGS'
9419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9421 cross_compiling=$ac_cv_prog_cc_cross
9427 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
9429 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
9430 for ac_func in fpclass
9432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9433 echo "configure:9434: checking for $ac_func" >&5
9434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9435 echo $ac_n "(cached) $ac_c" 1>&6
9436 else
9437 cat > conftest.$ac_ext <<EOF
9438 #line 9439 "configure"
9439 #include "confdefs.h"
9440 /* System header to define __stub macros and hopefully few prototypes,
9441 which can conflict with char $ac_func(); below. */
9442 #include <assert.h>
9443 /* Override any gcc2 internal prototype to avoid an error. */
9444 /* We use char because int might match the return type of a gcc2
9445 builtin and then its argument prototype would still apply. */
9446 char $ac_func();
9448 int main() {
9450 /* The GNU C library defines this for functions which it implements
9451 to always fail with ENOSYS. Some functions are actually named
9452 something starting with __ and the normal name is an alias. */
9453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9454 choke me
9455 #else
9456 $ac_func();
9457 #endif
9459 ; return 0; }
9461 if { (eval echo configure:9462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9462 rm -rf conftest*
9463 eval "ac_cv_func_$ac_func=yes"
9464 else
9465 echo "configure: failed program was:" >&5
9466 cat conftest.$ac_ext >&5
9467 rm -rf conftest*
9468 eval "ac_cv_func_$ac_func=no"
9470 rm -f conftest*
9473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9474 echo "$ac_t""yes" 1>&6
9475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9476 cat >> confdefs.h <<EOF
9477 #define $ac_tr_func 1
9480 else
9481 echo "$ac_t""no" 1>&6
9483 done
9485 else
9487 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
9488 echo "configure:9489: checking for _fpclass declaration" >&5
9489 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
9490 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
9491 echo $ac_n "(cached) $ac_c" 1>&6
9492 else
9495 ac_ext=C
9496 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9497 ac_cpp='$CXXCPP $CPPFLAGS'
9498 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9499 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9500 cross_compiling=$ac_cv_prog_cxx_cross
9502 cat > conftest.$ac_ext <<EOF
9503 #line 9504 "configure"
9504 #include "confdefs.h"
9505 #include <math.h>
9506 #ifdef HAVE_IEEEFP_H
9507 #include <ieeefp.h>
9508 #endif
9510 int main() {
9511 _fpclass(0);
9512 ; return 0; }
9514 if { (eval echo configure:9515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9515 rm -rf conftest*
9516 glibcpp_cv_func__fpclass_use=yes
9517 else
9518 echo "configure: failed program was:" >&5
9519 cat conftest.$ac_ext >&5
9520 rm -rf conftest*
9521 glibcpp_cv_func__fpclass_use=no
9523 rm -f conftest*
9524 ac_ext=c
9525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9526 ac_cpp='$CPP $CPPFLAGS'
9527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9529 cross_compiling=$ac_cv_prog_cc_cross
9535 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
9537 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
9538 for ac_func in _fpclass
9540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9541 echo "configure:9542: checking for $ac_func" >&5
9542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9543 echo $ac_n "(cached) $ac_c" 1>&6
9544 else
9545 cat > conftest.$ac_ext <<EOF
9546 #line 9547 "configure"
9547 #include "confdefs.h"
9548 /* System header to define __stub macros and hopefully few prototypes,
9549 which can conflict with char $ac_func(); below. */
9550 #include <assert.h>
9551 /* Override any gcc2 internal prototype to avoid an error. */
9552 /* We use char because int might match the return type of a gcc2
9553 builtin and then its argument prototype would still apply. */
9554 char $ac_func();
9556 int main() {
9558 /* The GNU C library defines this for functions which it implements
9559 to always fail with ENOSYS. Some functions are actually named
9560 something starting with __ and the normal name is an alias. */
9561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9562 choke me
9563 #else
9564 $ac_func();
9565 #endif
9567 ; return 0; }
9569 if { (eval echo configure:9570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9570 rm -rf conftest*
9571 eval "ac_cv_func_$ac_func=yes"
9572 else
9573 echo "configure: failed program was:" >&5
9574 cat conftest.$ac_ext >&5
9575 rm -rf conftest*
9576 eval "ac_cv_func_$ac_func=no"
9578 rm -f conftest*
9581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9582 echo "$ac_t""yes" 1>&6
9583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9584 cat >> confdefs.h <<EOF
9585 #define $ac_tr_func 1
9588 else
9589 echo "$ac_t""no" 1>&6
9591 done
9598 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
9599 echo "configure:9600: checking for qfpclass declaration" >&5
9600 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
9601 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
9602 echo $ac_n "(cached) $ac_c" 1>&6
9603 else
9606 ac_ext=C
9607 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9608 ac_cpp='$CXXCPP $CPPFLAGS'
9609 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9610 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9611 cross_compiling=$ac_cv_prog_cxx_cross
9613 cat > conftest.$ac_ext <<EOF
9614 #line 9615 "configure"
9615 #include "confdefs.h"
9616 #include <math.h>
9617 #ifdef HAVE_IEEEFP_H
9618 #include <ieeefp.h>
9619 #endif
9621 int main() {
9622 qfpclass(0);
9623 ; return 0; }
9625 if { (eval echo configure:9626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9626 rm -rf conftest*
9627 glibcpp_cv_func_qfpclass_use=yes
9628 else
9629 echo "configure: failed program was:" >&5
9630 cat conftest.$ac_ext >&5
9631 rm -rf conftest*
9632 glibcpp_cv_func_qfpclass_use=no
9634 rm -f conftest*
9635 ac_ext=c
9636 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9637 ac_cpp='$CPP $CPPFLAGS'
9638 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9639 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9640 cross_compiling=$ac_cv_prog_cc_cross
9646 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
9648 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
9649 for ac_func in qfpclass
9651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9652 echo "configure:9653: checking for $ac_func" >&5
9653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9654 echo $ac_n "(cached) $ac_c" 1>&6
9655 else
9656 cat > conftest.$ac_ext <<EOF
9657 #line 9658 "configure"
9658 #include "confdefs.h"
9659 /* System header to define __stub macros and hopefully few prototypes,
9660 which can conflict with char $ac_func(); below. */
9661 #include <assert.h>
9662 /* Override any gcc2 internal prototype to avoid an error. */
9663 /* We use char because int might match the return type of a gcc2
9664 builtin and then its argument prototype would still apply. */
9665 char $ac_func();
9667 int main() {
9669 /* The GNU C library defines this for functions which it implements
9670 to always fail with ENOSYS. Some functions are actually named
9671 something starting with __ and the normal name is an alias. */
9672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9673 choke me
9674 #else
9675 $ac_func();
9676 #endif
9678 ; return 0; }
9680 if { (eval echo configure:9681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9681 rm -rf conftest*
9682 eval "ac_cv_func_$ac_func=yes"
9683 else
9684 echo "configure: failed program was:" >&5
9685 cat conftest.$ac_ext >&5
9686 rm -rf conftest*
9687 eval "ac_cv_func_$ac_func=no"
9689 rm -f conftest*
9692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9693 echo "$ac_t""yes" 1>&6
9694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9695 cat >> confdefs.h <<EOF
9696 #define $ac_tr_func 1
9699 else
9700 echo "$ac_t""no" 1>&6
9702 done
9704 else
9706 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
9707 echo "configure:9708: checking for _qfpclass declaration" >&5
9708 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
9709 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
9710 echo $ac_n "(cached) $ac_c" 1>&6
9711 else
9714 ac_ext=C
9715 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9716 ac_cpp='$CXXCPP $CPPFLAGS'
9717 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9718 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9719 cross_compiling=$ac_cv_prog_cxx_cross
9721 cat > conftest.$ac_ext <<EOF
9722 #line 9723 "configure"
9723 #include "confdefs.h"
9724 #include <math.h>
9725 #ifdef HAVE_IEEEFP_H
9726 #include <ieeefp.h>
9727 #endif
9729 int main() {
9730 _qfpclass(0);
9731 ; return 0; }
9733 if { (eval echo configure:9734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9734 rm -rf conftest*
9735 glibcpp_cv_func__qfpclass_use=yes
9736 else
9737 echo "configure: failed program was:" >&5
9738 cat conftest.$ac_ext >&5
9739 rm -rf conftest*
9740 glibcpp_cv_func__qfpclass_use=no
9742 rm -f conftest*
9743 ac_ext=c
9744 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9745 ac_cpp='$CPP $CPPFLAGS'
9746 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9747 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9748 cross_compiling=$ac_cv_prog_cc_cross
9754 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
9756 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
9757 for ac_func in _qfpclass
9759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9760 echo "configure:9761: checking for $ac_func" >&5
9761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9762 echo $ac_n "(cached) $ac_c" 1>&6
9763 else
9764 cat > conftest.$ac_ext <<EOF
9765 #line 9766 "configure"
9766 #include "confdefs.h"
9767 /* System header to define __stub macros and hopefully few prototypes,
9768 which can conflict with char $ac_func(); below. */
9769 #include <assert.h>
9770 /* Override any gcc2 internal prototype to avoid an error. */
9771 /* We use char because int might match the return type of a gcc2
9772 builtin and then its argument prototype would still apply. */
9773 char $ac_func();
9775 int main() {
9777 /* The GNU C library defines this for functions which it implements
9778 to always fail with ENOSYS. Some functions are actually named
9779 something starting with __ and the normal name is an alias. */
9780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9781 choke me
9782 #else
9783 $ac_func();
9784 #endif
9786 ; return 0; }
9788 if { (eval echo configure:9789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9789 rm -rf conftest*
9790 eval "ac_cv_func_$ac_func=yes"
9791 else
9792 echo "configure: failed program was:" >&5
9793 cat conftest.$ac_ext >&5
9794 rm -rf conftest*
9795 eval "ac_cv_func_$ac_func=no"
9797 rm -f conftest*
9800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9801 echo "$ac_t""yes" 1>&6
9802 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9803 cat >> confdefs.h <<EOF
9804 #define $ac_tr_func 1
9807 else
9808 echo "$ac_t""no" 1>&6
9810 done
9817 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
9818 echo "configure:9819: checking for hypot declaration" >&5
9819 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
9820 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
9821 echo $ac_n "(cached) $ac_c" 1>&6
9822 else
9825 ac_ext=C
9826 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9827 ac_cpp='$CXXCPP $CPPFLAGS'
9828 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9829 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9830 cross_compiling=$ac_cv_prog_cxx_cross
9832 cat > conftest.$ac_ext <<EOF
9833 #line 9834 "configure"
9834 #include "confdefs.h"
9835 #include <math.h>
9836 int main() {
9837 hypot(0, 0);
9838 ; return 0; }
9840 if { (eval echo configure:9841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9841 rm -rf conftest*
9842 glibcpp_cv_func_hypot_use=yes
9843 else
9844 echo "configure: failed program was:" >&5
9845 cat conftest.$ac_ext >&5
9846 rm -rf conftest*
9847 glibcpp_cv_func_hypot_use=no
9849 rm -f conftest*
9850 ac_ext=c
9851 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9852 ac_cpp='$CPP $CPPFLAGS'
9853 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9854 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9855 cross_compiling=$ac_cv_prog_cc_cross
9861 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
9863 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
9864 for ac_func in hypot
9866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9867 echo "configure:9868: checking for $ac_func" >&5
9868 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9869 echo $ac_n "(cached) $ac_c" 1>&6
9870 else
9871 cat > conftest.$ac_ext <<EOF
9872 #line 9873 "configure"
9873 #include "confdefs.h"
9874 /* System header to define __stub macros and hopefully few prototypes,
9875 which can conflict with char $ac_func(); below. */
9876 #include <assert.h>
9877 /* Override any gcc2 internal prototype to avoid an error. */
9878 /* We use char because int might match the return type of a gcc2
9879 builtin and then its argument prototype would still apply. */
9880 char $ac_func();
9882 int main() {
9884 /* The GNU C library defines this for functions which it implements
9885 to always fail with ENOSYS. Some functions are actually named
9886 something starting with __ and the normal name is an alias. */
9887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9888 choke me
9889 #else
9890 $ac_func();
9891 #endif
9893 ; return 0; }
9895 if { (eval echo configure:9896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9896 rm -rf conftest*
9897 eval "ac_cv_func_$ac_func=yes"
9898 else
9899 echo "configure: failed program was:" >&5
9900 cat conftest.$ac_ext >&5
9901 rm -rf conftest*
9902 eval "ac_cv_func_$ac_func=no"
9904 rm -f conftest*
9907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9908 echo "$ac_t""yes" 1>&6
9909 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9910 cat >> confdefs.h <<EOF
9911 #define $ac_tr_func 1
9914 else
9915 echo "$ac_t""no" 1>&6
9917 done
9919 else
9921 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
9922 echo "configure:9923: checking for _hypot declaration" >&5
9923 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
9924 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
9925 echo $ac_n "(cached) $ac_c" 1>&6
9926 else
9929 ac_ext=C
9930 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9931 ac_cpp='$CXXCPP $CPPFLAGS'
9932 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9933 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9934 cross_compiling=$ac_cv_prog_cxx_cross
9936 cat > conftest.$ac_ext <<EOF
9937 #line 9938 "configure"
9938 #include "confdefs.h"
9939 #include <math.h>
9940 int main() {
9941 _hypot(0, 0);
9942 ; return 0; }
9944 if { (eval echo configure:9945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9945 rm -rf conftest*
9946 glibcpp_cv_func__hypot_use=yes
9947 else
9948 echo "configure: failed program was:" >&5
9949 cat conftest.$ac_ext >&5
9950 rm -rf conftest*
9951 glibcpp_cv_func__hypot_use=no
9953 rm -f conftest*
9954 ac_ext=c
9955 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9956 ac_cpp='$CPP $CPPFLAGS'
9957 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9958 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9959 cross_compiling=$ac_cv_prog_cc_cross
9965 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
9967 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
9968 for ac_func in _hypot
9970 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9971 echo "configure:9972: checking for $ac_func" >&5
9972 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9973 echo $ac_n "(cached) $ac_c" 1>&6
9974 else
9975 cat > conftest.$ac_ext <<EOF
9976 #line 9977 "configure"
9977 #include "confdefs.h"
9978 /* System header to define __stub macros and hopefully few prototypes,
9979 which can conflict with char $ac_func(); below. */
9980 #include <assert.h>
9981 /* Override any gcc2 internal prototype to avoid an error. */
9982 /* We use char because int might match the return type of a gcc2
9983 builtin and then its argument prototype would still apply. */
9984 char $ac_func();
9986 int main() {
9988 /* The GNU C library defines this for functions which it implements
9989 to always fail with ENOSYS. Some functions are actually named
9990 something starting with __ and the normal name is an alias. */
9991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9992 choke me
9993 #else
9994 $ac_func();
9995 #endif
9997 ; return 0; }
9999 if { (eval echo configure:10000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10000 rm -rf conftest*
10001 eval "ac_cv_func_$ac_func=yes"
10002 else
10003 echo "configure: failed program was:" >&5
10004 cat conftest.$ac_ext >&5
10005 rm -rf conftest*
10006 eval "ac_cv_func_$ac_func=no"
10008 rm -f conftest*
10011 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10012 echo "$ac_t""yes" 1>&6
10013 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10014 cat >> confdefs.h <<EOF
10015 #define $ac_tr_func 1
10018 else
10019 echo "$ac_t""no" 1>&6
10021 done
10028 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
10029 echo "configure:10030: checking for float trig functions" >&5
10030 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
10031 echo $ac_n "(cached) $ac_c" 1>&6
10032 else
10035 ac_ext=C
10036 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10037 ac_cpp='$CXXCPP $CPPFLAGS'
10038 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10039 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10040 cross_compiling=$ac_cv_prog_cxx_cross
10042 cat > conftest.$ac_ext <<EOF
10043 #line 10044 "configure"
10044 #include "confdefs.h"
10045 #include <math.h>
10046 int main() {
10047 `for x in acosf asinf atanf \
10048 cosf sinf tanf \
10049 coshf sinhf tanhf; do echo "$x (0);"; done`
10050 ; return 0; }
10052 if { (eval echo configure:10053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10053 rm -rf conftest*
10054 glibcpp_cv_func_float_trig_use=yes
10055 else
10056 echo "configure: failed program was:" >&5
10057 cat conftest.$ac_ext >&5
10058 rm -rf conftest*
10059 glibcpp_cv_func_float_trig_use=no
10061 rm -f conftest*
10062 ac_ext=c
10063 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10064 ac_cpp='$CPP $CPPFLAGS'
10065 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10066 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10067 cross_compiling=$ac_cv_prog_cc_cross
10071 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
10072 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
10073 for ac_func in acosf asinf atanf \
10074 cosf sinf tanf \
10075 coshf sinhf tanhf
10077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10078 echo "configure:10079: checking for $ac_func" >&5
10079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10080 echo $ac_n "(cached) $ac_c" 1>&6
10081 else
10082 cat > conftest.$ac_ext <<EOF
10083 #line 10084 "configure"
10084 #include "confdefs.h"
10085 /* System header to define __stub macros and hopefully few prototypes,
10086 which can conflict with char $ac_func(); below. */
10087 #include <assert.h>
10088 /* Override any gcc2 internal prototype to avoid an error. */
10089 /* We use char because int might match the return type of a gcc2
10090 builtin and then its argument prototype would still apply. */
10091 char $ac_func();
10093 int main() {
10095 /* The GNU C library defines this for functions which it implements
10096 to always fail with ENOSYS. Some functions are actually named
10097 something starting with __ and the normal name is an alias. */
10098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10099 choke me
10100 #else
10101 $ac_func();
10102 #endif
10104 ; return 0; }
10106 if { (eval echo configure:10107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10107 rm -rf conftest*
10108 eval "ac_cv_func_$ac_func=yes"
10109 else
10110 echo "configure: failed program was:" >&5
10111 cat conftest.$ac_ext >&5
10112 rm -rf conftest*
10113 eval "ac_cv_func_$ac_func=no"
10115 rm -f conftest*
10118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10119 echo "$ac_t""yes" 1>&6
10120 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10121 cat >> confdefs.h <<EOF
10122 #define $ac_tr_func 1
10125 else
10126 echo "$ac_t""no" 1>&6
10128 done
10133 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
10134 echo "configure:10135: checking for float round functions" >&5
10135 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
10136 echo $ac_n "(cached) $ac_c" 1>&6
10137 else
10140 ac_ext=C
10141 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10142 ac_cpp='$CXXCPP $CPPFLAGS'
10143 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10144 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10145 cross_compiling=$ac_cv_prog_cxx_cross
10147 cat > conftest.$ac_ext <<EOF
10148 #line 10149 "configure"
10149 #include "confdefs.h"
10150 #include <math.h>
10151 int main() {
10152 `for x in ceilf floorf; do echo "$x (0);"; done`
10153 ; return 0; }
10155 if { (eval echo configure:10156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10156 rm -rf conftest*
10157 glibcpp_cv_func_float_round_use=yes
10158 else
10159 echo "configure: failed program was:" >&5
10160 cat conftest.$ac_ext >&5
10161 rm -rf conftest*
10162 glibcpp_cv_func_float_round_use=no
10164 rm -f conftest*
10165 ac_ext=c
10166 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10167 ac_cpp='$CPP $CPPFLAGS'
10168 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10169 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10170 cross_compiling=$ac_cv_prog_cc_cross
10174 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
10175 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
10176 for ac_func in ceilf floorf
10178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10179 echo "configure:10180: checking for $ac_func" >&5
10180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10181 echo $ac_n "(cached) $ac_c" 1>&6
10182 else
10183 cat > conftest.$ac_ext <<EOF
10184 #line 10185 "configure"
10185 #include "confdefs.h"
10186 /* System header to define __stub macros and hopefully few prototypes,
10187 which can conflict with char $ac_func(); below. */
10188 #include <assert.h>
10189 /* Override any gcc2 internal prototype to avoid an error. */
10190 /* We use char because int might match the return type of a gcc2
10191 builtin and then its argument prototype would still apply. */
10192 char $ac_func();
10194 int main() {
10196 /* The GNU C library defines this for functions which it implements
10197 to always fail with ENOSYS. Some functions are actually named
10198 something starting with __ and the normal name is an alias. */
10199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10200 choke me
10201 #else
10202 $ac_func();
10203 #endif
10205 ; return 0; }
10207 if { (eval echo configure:10208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10208 rm -rf conftest*
10209 eval "ac_cv_func_$ac_func=yes"
10210 else
10211 echo "configure: failed program was:" >&5
10212 cat conftest.$ac_ext >&5
10213 rm -rf conftest*
10214 eval "ac_cv_func_$ac_func=no"
10216 rm -f conftest*
10219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10220 echo "$ac_t""yes" 1>&6
10221 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10222 cat >> confdefs.h <<EOF
10223 #define $ac_tr_func 1
10226 else
10227 echo "$ac_t""no" 1>&6
10229 done
10235 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
10236 echo "configure:10237: checking for isnanf declaration" >&5
10237 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
10238 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
10239 echo $ac_n "(cached) $ac_c" 1>&6
10240 else
10243 ac_ext=C
10244 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10245 ac_cpp='$CXXCPP $CPPFLAGS'
10246 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10247 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10248 cross_compiling=$ac_cv_prog_cxx_cross
10250 cat > conftest.$ac_ext <<EOF
10251 #line 10252 "configure"
10252 #include "confdefs.h"
10253 #include <math.h>
10254 #ifdef HAVE_IEEEFP_H
10255 #include <ieeefp.h>
10256 #endif
10258 int main() {
10259 isnanf(0);
10260 ; return 0; }
10262 if { (eval echo configure:10263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10263 rm -rf conftest*
10264 glibcpp_cv_func_isnanf_use=yes
10265 else
10266 echo "configure: failed program was:" >&5
10267 cat conftest.$ac_ext >&5
10268 rm -rf conftest*
10269 glibcpp_cv_func_isnanf_use=no
10271 rm -f conftest*
10272 ac_ext=c
10273 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10274 ac_cpp='$CPP $CPPFLAGS'
10275 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10276 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10277 cross_compiling=$ac_cv_prog_cc_cross
10283 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
10285 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
10286 for ac_func in isnanf
10288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10289 echo "configure:10290: checking for $ac_func" >&5
10290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10291 echo $ac_n "(cached) $ac_c" 1>&6
10292 else
10293 cat > conftest.$ac_ext <<EOF
10294 #line 10295 "configure"
10295 #include "confdefs.h"
10296 /* System header to define __stub macros and hopefully few prototypes,
10297 which can conflict with char $ac_func(); below. */
10298 #include <assert.h>
10299 /* Override any gcc2 internal prototype to avoid an error. */
10300 /* We use char because int might match the return type of a gcc2
10301 builtin and then its argument prototype would still apply. */
10302 char $ac_func();
10304 int main() {
10306 /* The GNU C library defines this for functions which it implements
10307 to always fail with ENOSYS. Some functions are actually named
10308 something starting with __ and the normal name is an alias. */
10309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10310 choke me
10311 #else
10312 $ac_func();
10313 #endif
10315 ; return 0; }
10317 if { (eval echo configure:10318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10318 rm -rf conftest*
10319 eval "ac_cv_func_$ac_func=yes"
10320 else
10321 echo "configure: failed program was:" >&5
10322 cat conftest.$ac_ext >&5
10323 rm -rf conftest*
10324 eval "ac_cv_func_$ac_func=no"
10326 rm -f conftest*
10329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10330 echo "$ac_t""yes" 1>&6
10331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10332 cat >> confdefs.h <<EOF
10333 #define $ac_tr_func 1
10336 else
10337 echo "$ac_t""no" 1>&6
10339 done
10341 else
10343 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
10344 echo "configure:10345: checking for _isnanf declaration" >&5
10345 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
10346 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
10347 echo $ac_n "(cached) $ac_c" 1>&6
10348 else
10351 ac_ext=C
10352 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10353 ac_cpp='$CXXCPP $CPPFLAGS'
10354 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10355 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10356 cross_compiling=$ac_cv_prog_cxx_cross
10358 cat > conftest.$ac_ext <<EOF
10359 #line 10360 "configure"
10360 #include "confdefs.h"
10361 #include <math.h>
10362 #ifdef HAVE_IEEEFP_H
10363 #include <ieeefp.h>
10364 #endif
10366 int main() {
10367 _isnanf(0);
10368 ; return 0; }
10370 if { (eval echo configure:10371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10371 rm -rf conftest*
10372 glibcpp_cv_func__isnanf_use=yes
10373 else
10374 echo "configure: failed program was:" >&5
10375 cat conftest.$ac_ext >&5
10376 rm -rf conftest*
10377 glibcpp_cv_func__isnanf_use=no
10379 rm -f conftest*
10380 ac_ext=c
10381 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10382 ac_cpp='$CPP $CPPFLAGS'
10383 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10384 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10385 cross_compiling=$ac_cv_prog_cc_cross
10391 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
10393 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
10394 for ac_func in _isnanf
10396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10397 echo "configure:10398: checking for $ac_func" >&5
10398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10399 echo $ac_n "(cached) $ac_c" 1>&6
10400 else
10401 cat > conftest.$ac_ext <<EOF
10402 #line 10403 "configure"
10403 #include "confdefs.h"
10404 /* System header to define __stub macros and hopefully few prototypes,
10405 which can conflict with char $ac_func(); below. */
10406 #include <assert.h>
10407 /* Override any gcc2 internal prototype to avoid an error. */
10408 /* We use char because int might match the return type of a gcc2
10409 builtin and then its argument prototype would still apply. */
10410 char $ac_func();
10412 int main() {
10414 /* The GNU C library defines this for functions which it implements
10415 to always fail with ENOSYS. Some functions are actually named
10416 something starting with __ and the normal name is an alias. */
10417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10418 choke me
10419 #else
10420 $ac_func();
10421 #endif
10423 ; return 0; }
10425 if { (eval echo configure:10426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10426 rm -rf conftest*
10427 eval "ac_cv_func_$ac_func=yes"
10428 else
10429 echo "configure: failed program was:" >&5
10430 cat conftest.$ac_ext >&5
10431 rm -rf conftest*
10432 eval "ac_cv_func_$ac_func=no"
10434 rm -f conftest*
10437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10438 echo "$ac_t""yes" 1>&6
10439 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10440 cat >> confdefs.h <<EOF
10441 #define $ac_tr_func 1
10444 else
10445 echo "$ac_t""no" 1>&6
10447 done
10454 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
10455 echo "configure:10456: checking for isinff declaration" >&5
10456 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
10457 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
10458 echo $ac_n "(cached) $ac_c" 1>&6
10459 else
10462 ac_ext=C
10463 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10464 ac_cpp='$CXXCPP $CPPFLAGS'
10465 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10466 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10467 cross_compiling=$ac_cv_prog_cxx_cross
10469 cat > conftest.$ac_ext <<EOF
10470 #line 10471 "configure"
10471 #include "confdefs.h"
10472 #include <math.h>
10473 #ifdef HAVE_IEEEFP_H
10474 #include <ieeefp.h>
10475 #endif
10477 int main() {
10478 isinff(0);
10479 ; return 0; }
10481 if { (eval echo configure:10482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10482 rm -rf conftest*
10483 glibcpp_cv_func_isinff_use=yes
10484 else
10485 echo "configure: failed program was:" >&5
10486 cat conftest.$ac_ext >&5
10487 rm -rf conftest*
10488 glibcpp_cv_func_isinff_use=no
10490 rm -f conftest*
10491 ac_ext=c
10492 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10493 ac_cpp='$CPP $CPPFLAGS'
10494 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10495 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10496 cross_compiling=$ac_cv_prog_cc_cross
10502 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
10504 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
10505 for ac_func in isinff
10507 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10508 echo "configure:10509: checking for $ac_func" >&5
10509 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10510 echo $ac_n "(cached) $ac_c" 1>&6
10511 else
10512 cat > conftest.$ac_ext <<EOF
10513 #line 10514 "configure"
10514 #include "confdefs.h"
10515 /* System header to define __stub macros and hopefully few prototypes,
10516 which can conflict with char $ac_func(); below. */
10517 #include <assert.h>
10518 /* Override any gcc2 internal prototype to avoid an error. */
10519 /* We use char because int might match the return type of a gcc2
10520 builtin and then its argument prototype would still apply. */
10521 char $ac_func();
10523 int main() {
10525 /* The GNU C library defines this for functions which it implements
10526 to always fail with ENOSYS. Some functions are actually named
10527 something starting with __ and the normal name is an alias. */
10528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10529 choke me
10530 #else
10531 $ac_func();
10532 #endif
10534 ; return 0; }
10536 if { (eval echo configure:10537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10537 rm -rf conftest*
10538 eval "ac_cv_func_$ac_func=yes"
10539 else
10540 echo "configure: failed program was:" >&5
10541 cat conftest.$ac_ext >&5
10542 rm -rf conftest*
10543 eval "ac_cv_func_$ac_func=no"
10545 rm -f conftest*
10548 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10549 echo "$ac_t""yes" 1>&6
10550 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10551 cat >> confdefs.h <<EOF
10552 #define $ac_tr_func 1
10555 else
10556 echo "$ac_t""no" 1>&6
10558 done
10560 else
10562 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
10563 echo "configure:10564: checking for _isinff declaration" >&5
10564 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
10565 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
10566 echo $ac_n "(cached) $ac_c" 1>&6
10567 else
10570 ac_ext=C
10571 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10572 ac_cpp='$CXXCPP $CPPFLAGS'
10573 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10574 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10575 cross_compiling=$ac_cv_prog_cxx_cross
10577 cat > conftest.$ac_ext <<EOF
10578 #line 10579 "configure"
10579 #include "confdefs.h"
10580 #include <math.h>
10581 #ifdef HAVE_IEEEFP_H
10582 #include <ieeefp.h>
10583 #endif
10585 int main() {
10586 _isinff(0);
10587 ; return 0; }
10589 if { (eval echo configure:10590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10590 rm -rf conftest*
10591 glibcpp_cv_func__isinff_use=yes
10592 else
10593 echo "configure: failed program was:" >&5
10594 cat conftest.$ac_ext >&5
10595 rm -rf conftest*
10596 glibcpp_cv_func__isinff_use=no
10598 rm -f conftest*
10599 ac_ext=c
10600 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10601 ac_cpp='$CPP $CPPFLAGS'
10602 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10603 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10604 cross_compiling=$ac_cv_prog_cc_cross
10610 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
10612 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
10613 for ac_func in _isinff
10615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10616 echo "configure:10617: checking for $ac_func" >&5
10617 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10618 echo $ac_n "(cached) $ac_c" 1>&6
10619 else
10620 cat > conftest.$ac_ext <<EOF
10621 #line 10622 "configure"
10622 #include "confdefs.h"
10623 /* System header to define __stub macros and hopefully few prototypes,
10624 which can conflict with char $ac_func(); below. */
10625 #include <assert.h>
10626 /* Override any gcc2 internal prototype to avoid an error. */
10627 /* We use char because int might match the return type of a gcc2
10628 builtin and then its argument prototype would still apply. */
10629 char $ac_func();
10631 int main() {
10633 /* The GNU C library defines this for functions which it implements
10634 to always fail with ENOSYS. Some functions are actually named
10635 something starting with __ and the normal name is an alias. */
10636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10637 choke me
10638 #else
10639 $ac_func();
10640 #endif
10642 ; return 0; }
10644 if { (eval echo configure:10645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10645 rm -rf conftest*
10646 eval "ac_cv_func_$ac_func=yes"
10647 else
10648 echo "configure: failed program was:" >&5
10649 cat conftest.$ac_ext >&5
10650 rm -rf conftest*
10651 eval "ac_cv_func_$ac_func=no"
10653 rm -f conftest*
10656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10657 echo "$ac_t""yes" 1>&6
10658 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10659 cat >> confdefs.h <<EOF
10660 #define $ac_tr_func 1
10663 else
10664 echo "$ac_t""no" 1>&6
10666 done
10673 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
10674 echo "configure:10675: checking for atan2f declaration" >&5
10675 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
10676 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
10677 echo $ac_n "(cached) $ac_c" 1>&6
10678 else
10681 ac_ext=C
10682 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10683 ac_cpp='$CXXCPP $CPPFLAGS'
10684 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10685 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10686 cross_compiling=$ac_cv_prog_cxx_cross
10688 cat > conftest.$ac_ext <<EOF
10689 #line 10690 "configure"
10690 #include "confdefs.h"
10691 #include <math.h>
10692 int main() {
10693 atan2f(0, 0);
10694 ; return 0; }
10696 if { (eval echo configure:10697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10697 rm -rf conftest*
10698 glibcpp_cv_func_atan2f_use=yes
10699 else
10700 echo "configure: failed program was:" >&5
10701 cat conftest.$ac_ext >&5
10702 rm -rf conftest*
10703 glibcpp_cv_func_atan2f_use=no
10705 rm -f conftest*
10706 ac_ext=c
10707 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10708 ac_cpp='$CPP $CPPFLAGS'
10709 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10710 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10711 cross_compiling=$ac_cv_prog_cc_cross
10717 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
10719 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
10720 for ac_func in atan2f
10722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10723 echo "configure:10724: checking for $ac_func" >&5
10724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10725 echo $ac_n "(cached) $ac_c" 1>&6
10726 else
10727 cat > conftest.$ac_ext <<EOF
10728 #line 10729 "configure"
10729 #include "confdefs.h"
10730 /* System header to define __stub macros and hopefully few prototypes,
10731 which can conflict with char $ac_func(); below. */
10732 #include <assert.h>
10733 /* Override any gcc2 internal prototype to avoid an error. */
10734 /* We use char because int might match the return type of a gcc2
10735 builtin and then its argument prototype would still apply. */
10736 char $ac_func();
10738 int main() {
10740 /* The GNU C library defines this for functions which it implements
10741 to always fail with ENOSYS. Some functions are actually named
10742 something starting with __ and the normal name is an alias. */
10743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10744 choke me
10745 #else
10746 $ac_func();
10747 #endif
10749 ; return 0; }
10751 if { (eval echo configure:10752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10752 rm -rf conftest*
10753 eval "ac_cv_func_$ac_func=yes"
10754 else
10755 echo "configure: failed program was:" >&5
10756 cat conftest.$ac_ext >&5
10757 rm -rf conftest*
10758 eval "ac_cv_func_$ac_func=no"
10760 rm -f conftest*
10763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10764 echo "$ac_t""yes" 1>&6
10765 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10766 cat >> confdefs.h <<EOF
10767 #define $ac_tr_func 1
10770 else
10771 echo "$ac_t""no" 1>&6
10773 done
10775 else
10777 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
10778 echo "configure:10779: checking for _atan2f declaration" >&5
10779 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
10780 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
10781 echo $ac_n "(cached) $ac_c" 1>&6
10782 else
10785 ac_ext=C
10786 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10787 ac_cpp='$CXXCPP $CPPFLAGS'
10788 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10789 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10790 cross_compiling=$ac_cv_prog_cxx_cross
10792 cat > conftest.$ac_ext <<EOF
10793 #line 10794 "configure"
10794 #include "confdefs.h"
10795 #include <math.h>
10796 int main() {
10797 _atan2f(0, 0);
10798 ; return 0; }
10800 if { (eval echo configure:10801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10801 rm -rf conftest*
10802 glibcpp_cv_func__atan2f_use=yes
10803 else
10804 echo "configure: failed program was:" >&5
10805 cat conftest.$ac_ext >&5
10806 rm -rf conftest*
10807 glibcpp_cv_func__atan2f_use=no
10809 rm -f conftest*
10810 ac_ext=c
10811 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10812 ac_cpp='$CPP $CPPFLAGS'
10813 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10814 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10815 cross_compiling=$ac_cv_prog_cc_cross
10821 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
10823 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
10824 for ac_func in _atan2f
10826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10827 echo "configure:10828: checking for $ac_func" >&5
10828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10829 echo $ac_n "(cached) $ac_c" 1>&6
10830 else
10831 cat > conftest.$ac_ext <<EOF
10832 #line 10833 "configure"
10833 #include "confdefs.h"
10834 /* System header to define __stub macros and hopefully few prototypes,
10835 which can conflict with char $ac_func(); below. */
10836 #include <assert.h>
10837 /* Override any gcc2 internal prototype to avoid an error. */
10838 /* We use char because int might match the return type of a gcc2
10839 builtin and then its argument prototype would still apply. */
10840 char $ac_func();
10842 int main() {
10844 /* The GNU C library defines this for functions which it implements
10845 to always fail with ENOSYS. Some functions are actually named
10846 something starting with __ and the normal name is an alias. */
10847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10848 choke me
10849 #else
10850 $ac_func();
10851 #endif
10853 ; return 0; }
10855 if { (eval echo configure:10856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10856 rm -rf conftest*
10857 eval "ac_cv_func_$ac_func=yes"
10858 else
10859 echo "configure: failed program was:" >&5
10860 cat conftest.$ac_ext >&5
10861 rm -rf conftest*
10862 eval "ac_cv_func_$ac_func=no"
10864 rm -f conftest*
10867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10868 echo "$ac_t""yes" 1>&6
10869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10870 cat >> confdefs.h <<EOF
10871 #define $ac_tr_func 1
10874 else
10875 echo "$ac_t""no" 1>&6
10877 done
10884 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
10885 echo "configure:10886: checking for fabsf declaration" >&5
10886 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
10887 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
10888 echo $ac_n "(cached) $ac_c" 1>&6
10889 else
10892 ac_ext=C
10893 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10894 ac_cpp='$CXXCPP $CPPFLAGS'
10895 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10896 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10897 cross_compiling=$ac_cv_prog_cxx_cross
10899 cat > conftest.$ac_ext <<EOF
10900 #line 10901 "configure"
10901 #include "confdefs.h"
10902 #include <math.h>
10903 #ifdef HAVE_IEEEFP_H
10904 #include <ieeefp.h>
10905 #endif
10907 int main() {
10908 fabsf(0);
10909 ; return 0; }
10911 if { (eval echo configure:10912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10912 rm -rf conftest*
10913 glibcpp_cv_func_fabsf_use=yes
10914 else
10915 echo "configure: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10917 rm -rf conftest*
10918 glibcpp_cv_func_fabsf_use=no
10920 rm -f conftest*
10921 ac_ext=c
10922 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10923 ac_cpp='$CPP $CPPFLAGS'
10924 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10925 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10926 cross_compiling=$ac_cv_prog_cc_cross
10932 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
10934 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
10935 for ac_func in fabsf
10937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10938 echo "configure:10939: checking for $ac_func" >&5
10939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10940 echo $ac_n "(cached) $ac_c" 1>&6
10941 else
10942 cat > conftest.$ac_ext <<EOF
10943 #line 10944 "configure"
10944 #include "confdefs.h"
10945 /* System header to define __stub macros and hopefully few prototypes,
10946 which can conflict with char $ac_func(); below. */
10947 #include <assert.h>
10948 /* Override any gcc2 internal prototype to avoid an error. */
10949 /* We use char because int might match the return type of a gcc2
10950 builtin and then its argument prototype would still apply. */
10951 char $ac_func();
10953 int main() {
10955 /* The GNU C library defines this for functions which it implements
10956 to always fail with ENOSYS. Some functions are actually named
10957 something starting with __ and the normal name is an alias. */
10958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10959 choke me
10960 #else
10961 $ac_func();
10962 #endif
10964 ; return 0; }
10966 if { (eval echo configure:10967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10967 rm -rf conftest*
10968 eval "ac_cv_func_$ac_func=yes"
10969 else
10970 echo "configure: failed program was:" >&5
10971 cat conftest.$ac_ext >&5
10972 rm -rf conftest*
10973 eval "ac_cv_func_$ac_func=no"
10975 rm -f conftest*
10978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10979 echo "$ac_t""yes" 1>&6
10980 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10981 cat >> confdefs.h <<EOF
10982 #define $ac_tr_func 1
10985 else
10986 echo "$ac_t""no" 1>&6
10988 done
10990 else
10992 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
10993 echo "configure:10994: checking for _fabsf declaration" >&5
10994 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
10995 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
10996 echo $ac_n "(cached) $ac_c" 1>&6
10997 else
11000 ac_ext=C
11001 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11002 ac_cpp='$CXXCPP $CPPFLAGS'
11003 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11004 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11005 cross_compiling=$ac_cv_prog_cxx_cross
11007 cat > conftest.$ac_ext <<EOF
11008 #line 11009 "configure"
11009 #include "confdefs.h"
11010 #include <math.h>
11011 #ifdef HAVE_IEEEFP_H
11012 #include <ieeefp.h>
11013 #endif
11015 int main() {
11016 _fabsf(0);
11017 ; return 0; }
11019 if { (eval echo configure:11020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11020 rm -rf conftest*
11021 glibcpp_cv_func__fabsf_use=yes
11022 else
11023 echo "configure: failed program was:" >&5
11024 cat conftest.$ac_ext >&5
11025 rm -rf conftest*
11026 glibcpp_cv_func__fabsf_use=no
11028 rm -f conftest*
11029 ac_ext=c
11030 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11031 ac_cpp='$CPP $CPPFLAGS'
11032 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11033 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11034 cross_compiling=$ac_cv_prog_cc_cross
11040 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
11042 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
11043 for ac_func in _fabsf
11045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11046 echo "configure:11047: checking for $ac_func" >&5
11047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11048 echo $ac_n "(cached) $ac_c" 1>&6
11049 else
11050 cat > conftest.$ac_ext <<EOF
11051 #line 11052 "configure"
11052 #include "confdefs.h"
11053 /* System header to define __stub macros and hopefully few prototypes,
11054 which can conflict with char $ac_func(); below. */
11055 #include <assert.h>
11056 /* Override any gcc2 internal prototype to avoid an error. */
11057 /* We use char because int might match the return type of a gcc2
11058 builtin and then its argument prototype would still apply. */
11059 char $ac_func();
11061 int main() {
11063 /* The GNU C library defines this for functions which it implements
11064 to always fail with ENOSYS. Some functions are actually named
11065 something starting with __ and the normal name is an alias. */
11066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11067 choke me
11068 #else
11069 $ac_func();
11070 #endif
11072 ; return 0; }
11074 if { (eval echo configure:11075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11075 rm -rf conftest*
11076 eval "ac_cv_func_$ac_func=yes"
11077 else
11078 echo "configure: failed program was:" >&5
11079 cat conftest.$ac_ext >&5
11080 rm -rf conftest*
11081 eval "ac_cv_func_$ac_func=no"
11083 rm -f conftest*
11086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11087 echo "$ac_t""yes" 1>&6
11088 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11089 cat >> confdefs.h <<EOF
11090 #define $ac_tr_func 1
11093 else
11094 echo "$ac_t""no" 1>&6
11096 done
11103 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
11104 echo "configure:11105: checking for fmodf declaration" >&5
11105 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
11106 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
11107 echo $ac_n "(cached) $ac_c" 1>&6
11108 else
11111 ac_ext=C
11112 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11113 ac_cpp='$CXXCPP $CPPFLAGS'
11114 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11115 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11116 cross_compiling=$ac_cv_prog_cxx_cross
11118 cat > conftest.$ac_ext <<EOF
11119 #line 11120 "configure"
11120 #include "confdefs.h"
11121 #include <math.h>
11122 int main() {
11123 fmodf(0, 0);
11124 ; return 0; }
11126 if { (eval echo configure:11127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11127 rm -rf conftest*
11128 glibcpp_cv_func_fmodf_use=yes
11129 else
11130 echo "configure: failed program was:" >&5
11131 cat conftest.$ac_ext >&5
11132 rm -rf conftest*
11133 glibcpp_cv_func_fmodf_use=no
11135 rm -f conftest*
11136 ac_ext=c
11137 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11138 ac_cpp='$CPP $CPPFLAGS'
11139 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11140 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11141 cross_compiling=$ac_cv_prog_cc_cross
11147 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
11149 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
11150 for ac_func in fmodf
11152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11153 echo "configure:11154: checking for $ac_func" >&5
11154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11155 echo $ac_n "(cached) $ac_c" 1>&6
11156 else
11157 cat > conftest.$ac_ext <<EOF
11158 #line 11159 "configure"
11159 #include "confdefs.h"
11160 /* System header to define __stub macros and hopefully few prototypes,
11161 which can conflict with char $ac_func(); below. */
11162 #include <assert.h>
11163 /* Override any gcc2 internal prototype to avoid an error. */
11164 /* We use char because int might match the return type of a gcc2
11165 builtin and then its argument prototype would still apply. */
11166 char $ac_func();
11168 int main() {
11170 /* The GNU C library defines this for functions which it implements
11171 to always fail with ENOSYS. Some functions are actually named
11172 something starting with __ and the normal name is an alias. */
11173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11174 choke me
11175 #else
11176 $ac_func();
11177 #endif
11179 ; return 0; }
11181 if { (eval echo configure:11182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11182 rm -rf conftest*
11183 eval "ac_cv_func_$ac_func=yes"
11184 else
11185 echo "configure: failed program was:" >&5
11186 cat conftest.$ac_ext >&5
11187 rm -rf conftest*
11188 eval "ac_cv_func_$ac_func=no"
11190 rm -f conftest*
11193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11194 echo "$ac_t""yes" 1>&6
11195 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11196 cat >> confdefs.h <<EOF
11197 #define $ac_tr_func 1
11200 else
11201 echo "$ac_t""no" 1>&6
11203 done
11205 else
11207 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
11208 echo "configure:11209: checking for _fmodf declaration" >&5
11209 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
11210 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
11211 echo $ac_n "(cached) $ac_c" 1>&6
11212 else
11215 ac_ext=C
11216 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11217 ac_cpp='$CXXCPP $CPPFLAGS'
11218 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11219 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11220 cross_compiling=$ac_cv_prog_cxx_cross
11222 cat > conftest.$ac_ext <<EOF
11223 #line 11224 "configure"
11224 #include "confdefs.h"
11225 #include <math.h>
11226 int main() {
11227 _fmodf(0, 0);
11228 ; return 0; }
11230 if { (eval echo configure:11231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11231 rm -rf conftest*
11232 glibcpp_cv_func__fmodf_use=yes
11233 else
11234 echo "configure: failed program was:" >&5
11235 cat conftest.$ac_ext >&5
11236 rm -rf conftest*
11237 glibcpp_cv_func__fmodf_use=no
11239 rm -f conftest*
11240 ac_ext=c
11241 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11242 ac_cpp='$CPP $CPPFLAGS'
11243 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11244 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11245 cross_compiling=$ac_cv_prog_cc_cross
11251 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
11253 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
11254 for ac_func in _fmodf
11256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11257 echo "configure:11258: checking for $ac_func" >&5
11258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11259 echo $ac_n "(cached) $ac_c" 1>&6
11260 else
11261 cat > conftest.$ac_ext <<EOF
11262 #line 11263 "configure"
11263 #include "confdefs.h"
11264 /* System header to define __stub macros and hopefully few prototypes,
11265 which can conflict with char $ac_func(); below. */
11266 #include <assert.h>
11267 /* Override any gcc2 internal prototype to avoid an error. */
11268 /* We use char because int might match the return type of a gcc2
11269 builtin and then its argument prototype would still apply. */
11270 char $ac_func();
11272 int main() {
11274 /* The GNU C library defines this for functions which it implements
11275 to always fail with ENOSYS. Some functions are actually named
11276 something starting with __ and the normal name is an alias. */
11277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11278 choke me
11279 #else
11280 $ac_func();
11281 #endif
11283 ; return 0; }
11285 if { (eval echo configure:11286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11286 rm -rf conftest*
11287 eval "ac_cv_func_$ac_func=yes"
11288 else
11289 echo "configure: failed program was:" >&5
11290 cat conftest.$ac_ext >&5
11291 rm -rf conftest*
11292 eval "ac_cv_func_$ac_func=no"
11294 rm -f conftest*
11297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11298 echo "$ac_t""yes" 1>&6
11299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11300 cat >> confdefs.h <<EOF
11301 #define $ac_tr_func 1
11304 else
11305 echo "$ac_t""no" 1>&6
11307 done
11314 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
11315 echo "configure:11316: checking for frexpf declaration" >&5
11316 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
11317 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
11318 echo $ac_n "(cached) $ac_c" 1>&6
11319 else
11322 ac_ext=C
11323 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11324 ac_cpp='$CXXCPP $CPPFLAGS'
11325 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11326 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11327 cross_compiling=$ac_cv_prog_cxx_cross
11329 cat > conftest.$ac_ext <<EOF
11330 #line 11331 "configure"
11331 #include "confdefs.h"
11332 #include <math.h>
11333 int main() {
11334 frexpf(0, 0);
11335 ; return 0; }
11337 if { (eval echo configure:11338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11338 rm -rf conftest*
11339 glibcpp_cv_func_frexpf_use=yes
11340 else
11341 echo "configure: failed program was:" >&5
11342 cat conftest.$ac_ext >&5
11343 rm -rf conftest*
11344 glibcpp_cv_func_frexpf_use=no
11346 rm -f conftest*
11347 ac_ext=c
11348 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11349 ac_cpp='$CPP $CPPFLAGS'
11350 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11351 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11352 cross_compiling=$ac_cv_prog_cc_cross
11358 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
11360 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
11361 for ac_func in frexpf
11363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11364 echo "configure:11365: checking for $ac_func" >&5
11365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11366 echo $ac_n "(cached) $ac_c" 1>&6
11367 else
11368 cat > conftest.$ac_ext <<EOF
11369 #line 11370 "configure"
11370 #include "confdefs.h"
11371 /* System header to define __stub macros and hopefully few prototypes,
11372 which can conflict with char $ac_func(); below. */
11373 #include <assert.h>
11374 /* Override any gcc2 internal prototype to avoid an error. */
11375 /* We use char because int might match the return type of a gcc2
11376 builtin and then its argument prototype would still apply. */
11377 char $ac_func();
11379 int main() {
11381 /* The GNU C library defines this for functions which it implements
11382 to always fail with ENOSYS. Some functions are actually named
11383 something starting with __ and the normal name is an alias. */
11384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11385 choke me
11386 #else
11387 $ac_func();
11388 #endif
11390 ; return 0; }
11392 if { (eval echo configure:11393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11393 rm -rf conftest*
11394 eval "ac_cv_func_$ac_func=yes"
11395 else
11396 echo "configure: failed program was:" >&5
11397 cat conftest.$ac_ext >&5
11398 rm -rf conftest*
11399 eval "ac_cv_func_$ac_func=no"
11401 rm -f conftest*
11404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11405 echo "$ac_t""yes" 1>&6
11406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11407 cat >> confdefs.h <<EOF
11408 #define $ac_tr_func 1
11411 else
11412 echo "$ac_t""no" 1>&6
11414 done
11416 else
11418 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
11419 echo "configure:11420: checking for _frexpf declaration" >&5
11420 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
11421 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
11422 echo $ac_n "(cached) $ac_c" 1>&6
11423 else
11426 ac_ext=C
11427 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11428 ac_cpp='$CXXCPP $CPPFLAGS'
11429 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11430 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11431 cross_compiling=$ac_cv_prog_cxx_cross
11433 cat > conftest.$ac_ext <<EOF
11434 #line 11435 "configure"
11435 #include "confdefs.h"
11436 #include <math.h>
11437 int main() {
11438 _frexpf(0, 0);
11439 ; return 0; }
11441 if { (eval echo configure:11442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11442 rm -rf conftest*
11443 glibcpp_cv_func__frexpf_use=yes
11444 else
11445 echo "configure: failed program was:" >&5
11446 cat conftest.$ac_ext >&5
11447 rm -rf conftest*
11448 glibcpp_cv_func__frexpf_use=no
11450 rm -f conftest*
11451 ac_ext=c
11452 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11453 ac_cpp='$CPP $CPPFLAGS'
11454 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11455 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11456 cross_compiling=$ac_cv_prog_cc_cross
11462 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
11464 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
11465 for ac_func in _frexpf
11467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11468 echo "configure:11469: checking for $ac_func" >&5
11469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11470 echo $ac_n "(cached) $ac_c" 1>&6
11471 else
11472 cat > conftest.$ac_ext <<EOF
11473 #line 11474 "configure"
11474 #include "confdefs.h"
11475 /* System header to define __stub macros and hopefully few prototypes,
11476 which can conflict with char $ac_func(); below. */
11477 #include <assert.h>
11478 /* Override any gcc2 internal prototype to avoid an error. */
11479 /* We use char because int might match the return type of a gcc2
11480 builtin and then its argument prototype would still apply. */
11481 char $ac_func();
11483 int main() {
11485 /* The GNU C library defines this for functions which it implements
11486 to always fail with ENOSYS. Some functions are actually named
11487 something starting with __ and the normal name is an alias. */
11488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11489 choke me
11490 #else
11491 $ac_func();
11492 #endif
11494 ; return 0; }
11496 if { (eval echo configure:11497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11497 rm -rf conftest*
11498 eval "ac_cv_func_$ac_func=yes"
11499 else
11500 echo "configure: failed program was:" >&5
11501 cat conftest.$ac_ext >&5
11502 rm -rf conftest*
11503 eval "ac_cv_func_$ac_func=no"
11505 rm -f conftest*
11508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11509 echo "$ac_t""yes" 1>&6
11510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11511 cat >> confdefs.h <<EOF
11512 #define $ac_tr_func 1
11515 else
11516 echo "$ac_t""no" 1>&6
11518 done
11525 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
11526 echo "configure:11527: checking for hypotf declaration" >&5
11527 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
11528 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
11529 echo $ac_n "(cached) $ac_c" 1>&6
11530 else
11533 ac_ext=C
11534 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11535 ac_cpp='$CXXCPP $CPPFLAGS'
11536 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11537 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11538 cross_compiling=$ac_cv_prog_cxx_cross
11540 cat > conftest.$ac_ext <<EOF
11541 #line 11542 "configure"
11542 #include "confdefs.h"
11543 #include <math.h>
11544 int main() {
11545 hypotf(0, 0);
11546 ; return 0; }
11548 if { (eval echo configure:11549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11549 rm -rf conftest*
11550 glibcpp_cv_func_hypotf_use=yes
11551 else
11552 echo "configure: failed program was:" >&5
11553 cat conftest.$ac_ext >&5
11554 rm -rf conftest*
11555 glibcpp_cv_func_hypotf_use=no
11557 rm -f conftest*
11558 ac_ext=c
11559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11560 ac_cpp='$CPP $CPPFLAGS'
11561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11563 cross_compiling=$ac_cv_prog_cc_cross
11569 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
11571 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
11572 for ac_func in hypotf
11574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11575 echo "configure:11576: checking for $ac_func" >&5
11576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11577 echo $ac_n "(cached) $ac_c" 1>&6
11578 else
11579 cat > conftest.$ac_ext <<EOF
11580 #line 11581 "configure"
11581 #include "confdefs.h"
11582 /* System header to define __stub macros and hopefully few prototypes,
11583 which can conflict with char $ac_func(); below. */
11584 #include <assert.h>
11585 /* Override any gcc2 internal prototype to avoid an error. */
11586 /* We use char because int might match the return type of a gcc2
11587 builtin and then its argument prototype would still apply. */
11588 char $ac_func();
11590 int main() {
11592 /* The GNU C library defines this for functions which it implements
11593 to always fail with ENOSYS. Some functions are actually named
11594 something starting with __ and the normal name is an alias. */
11595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11596 choke me
11597 #else
11598 $ac_func();
11599 #endif
11601 ; return 0; }
11603 if { (eval echo configure:11604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11604 rm -rf conftest*
11605 eval "ac_cv_func_$ac_func=yes"
11606 else
11607 echo "configure: failed program was:" >&5
11608 cat conftest.$ac_ext >&5
11609 rm -rf conftest*
11610 eval "ac_cv_func_$ac_func=no"
11612 rm -f conftest*
11615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11616 echo "$ac_t""yes" 1>&6
11617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11618 cat >> confdefs.h <<EOF
11619 #define $ac_tr_func 1
11622 else
11623 echo "$ac_t""no" 1>&6
11625 done
11627 else
11629 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
11630 echo "configure:11631: checking for _hypotf declaration" >&5
11631 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
11632 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
11633 echo $ac_n "(cached) $ac_c" 1>&6
11634 else
11637 ac_ext=C
11638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11639 ac_cpp='$CXXCPP $CPPFLAGS'
11640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11642 cross_compiling=$ac_cv_prog_cxx_cross
11644 cat > conftest.$ac_ext <<EOF
11645 #line 11646 "configure"
11646 #include "confdefs.h"
11647 #include <math.h>
11648 int main() {
11649 _hypotf(0, 0);
11650 ; return 0; }
11652 if { (eval echo configure:11653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11653 rm -rf conftest*
11654 glibcpp_cv_func__hypotf_use=yes
11655 else
11656 echo "configure: failed program was:" >&5
11657 cat conftest.$ac_ext >&5
11658 rm -rf conftest*
11659 glibcpp_cv_func__hypotf_use=no
11661 rm -f conftest*
11662 ac_ext=c
11663 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11664 ac_cpp='$CPP $CPPFLAGS'
11665 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11666 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11667 cross_compiling=$ac_cv_prog_cc_cross
11673 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
11675 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
11676 for ac_func in _hypotf
11678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11679 echo "configure:11680: checking for $ac_func" >&5
11680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11681 echo $ac_n "(cached) $ac_c" 1>&6
11682 else
11683 cat > conftest.$ac_ext <<EOF
11684 #line 11685 "configure"
11685 #include "confdefs.h"
11686 /* System header to define __stub macros and hopefully few prototypes,
11687 which can conflict with char $ac_func(); below. */
11688 #include <assert.h>
11689 /* Override any gcc2 internal prototype to avoid an error. */
11690 /* We use char because int might match the return type of a gcc2
11691 builtin and then its argument prototype would still apply. */
11692 char $ac_func();
11694 int main() {
11696 /* The GNU C library defines this for functions which it implements
11697 to always fail with ENOSYS. Some functions are actually named
11698 something starting with __ and the normal name is an alias. */
11699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11700 choke me
11701 #else
11702 $ac_func();
11703 #endif
11705 ; return 0; }
11707 if { (eval echo configure:11708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11708 rm -rf conftest*
11709 eval "ac_cv_func_$ac_func=yes"
11710 else
11711 echo "configure: failed program was:" >&5
11712 cat conftest.$ac_ext >&5
11713 rm -rf conftest*
11714 eval "ac_cv_func_$ac_func=no"
11716 rm -f conftest*
11719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11720 echo "$ac_t""yes" 1>&6
11721 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11722 cat >> confdefs.h <<EOF
11723 #define $ac_tr_func 1
11726 else
11727 echo "$ac_t""no" 1>&6
11729 done
11736 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
11737 echo "configure:11738: checking for ldexpf declaration" >&5
11738 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
11739 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
11740 echo $ac_n "(cached) $ac_c" 1>&6
11741 else
11744 ac_ext=C
11745 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11746 ac_cpp='$CXXCPP $CPPFLAGS'
11747 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11748 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11749 cross_compiling=$ac_cv_prog_cxx_cross
11751 cat > conftest.$ac_ext <<EOF
11752 #line 11753 "configure"
11753 #include "confdefs.h"
11754 #include <math.h>
11755 int main() {
11756 ldexpf(0, 0);
11757 ; return 0; }
11759 if { (eval echo configure:11760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11760 rm -rf conftest*
11761 glibcpp_cv_func_ldexpf_use=yes
11762 else
11763 echo "configure: failed program was:" >&5
11764 cat conftest.$ac_ext >&5
11765 rm -rf conftest*
11766 glibcpp_cv_func_ldexpf_use=no
11768 rm -f conftest*
11769 ac_ext=c
11770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11771 ac_cpp='$CPP $CPPFLAGS'
11772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11773 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11774 cross_compiling=$ac_cv_prog_cc_cross
11780 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
11782 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
11783 for ac_func in ldexpf
11785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11786 echo "configure:11787: checking for $ac_func" >&5
11787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11788 echo $ac_n "(cached) $ac_c" 1>&6
11789 else
11790 cat > conftest.$ac_ext <<EOF
11791 #line 11792 "configure"
11792 #include "confdefs.h"
11793 /* System header to define __stub macros and hopefully few prototypes,
11794 which can conflict with char $ac_func(); below. */
11795 #include <assert.h>
11796 /* Override any gcc2 internal prototype to avoid an error. */
11797 /* We use char because int might match the return type of a gcc2
11798 builtin and then its argument prototype would still apply. */
11799 char $ac_func();
11801 int main() {
11803 /* The GNU C library defines this for functions which it implements
11804 to always fail with ENOSYS. Some functions are actually named
11805 something starting with __ and the normal name is an alias. */
11806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11807 choke me
11808 #else
11809 $ac_func();
11810 #endif
11812 ; return 0; }
11814 if { (eval echo configure:11815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11815 rm -rf conftest*
11816 eval "ac_cv_func_$ac_func=yes"
11817 else
11818 echo "configure: failed program was:" >&5
11819 cat conftest.$ac_ext >&5
11820 rm -rf conftest*
11821 eval "ac_cv_func_$ac_func=no"
11823 rm -f conftest*
11826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11827 echo "$ac_t""yes" 1>&6
11828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11829 cat >> confdefs.h <<EOF
11830 #define $ac_tr_func 1
11833 else
11834 echo "$ac_t""no" 1>&6
11836 done
11838 else
11840 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
11841 echo "configure:11842: checking for _ldexpf declaration" >&5
11842 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
11843 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
11844 echo $ac_n "(cached) $ac_c" 1>&6
11845 else
11848 ac_ext=C
11849 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11850 ac_cpp='$CXXCPP $CPPFLAGS'
11851 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11852 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11853 cross_compiling=$ac_cv_prog_cxx_cross
11855 cat > conftest.$ac_ext <<EOF
11856 #line 11857 "configure"
11857 #include "confdefs.h"
11858 #include <math.h>
11859 int main() {
11860 _ldexpf(0, 0);
11861 ; return 0; }
11863 if { (eval echo configure:11864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11864 rm -rf conftest*
11865 glibcpp_cv_func__ldexpf_use=yes
11866 else
11867 echo "configure: failed program was:" >&5
11868 cat conftest.$ac_ext >&5
11869 rm -rf conftest*
11870 glibcpp_cv_func__ldexpf_use=no
11872 rm -f conftest*
11873 ac_ext=c
11874 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11875 ac_cpp='$CPP $CPPFLAGS'
11876 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11877 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11878 cross_compiling=$ac_cv_prog_cc_cross
11884 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
11886 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
11887 for ac_func in _ldexpf
11889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11890 echo "configure:11891: checking for $ac_func" >&5
11891 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11892 echo $ac_n "(cached) $ac_c" 1>&6
11893 else
11894 cat > conftest.$ac_ext <<EOF
11895 #line 11896 "configure"
11896 #include "confdefs.h"
11897 /* System header to define __stub macros and hopefully few prototypes,
11898 which can conflict with char $ac_func(); below. */
11899 #include <assert.h>
11900 /* Override any gcc2 internal prototype to avoid an error. */
11901 /* We use char because int might match the return type of a gcc2
11902 builtin and then its argument prototype would still apply. */
11903 char $ac_func();
11905 int main() {
11907 /* The GNU C library defines this for functions which it implements
11908 to always fail with ENOSYS. Some functions are actually named
11909 something starting with __ and the normal name is an alias. */
11910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11911 choke me
11912 #else
11913 $ac_func();
11914 #endif
11916 ; return 0; }
11918 if { (eval echo configure:11919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11919 rm -rf conftest*
11920 eval "ac_cv_func_$ac_func=yes"
11921 else
11922 echo "configure: failed program was:" >&5
11923 cat conftest.$ac_ext >&5
11924 rm -rf conftest*
11925 eval "ac_cv_func_$ac_func=no"
11927 rm -f conftest*
11930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11931 echo "$ac_t""yes" 1>&6
11932 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11933 cat >> confdefs.h <<EOF
11934 #define $ac_tr_func 1
11937 else
11938 echo "$ac_t""no" 1>&6
11940 done
11947 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
11948 echo "configure:11949: checking for logf declaration" >&5
11949 if test x${glibcpp_cv_func_logf_use+set} != xset; then
11950 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
11951 echo $ac_n "(cached) $ac_c" 1>&6
11952 else
11955 ac_ext=C
11956 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11957 ac_cpp='$CXXCPP $CPPFLAGS'
11958 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11959 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11960 cross_compiling=$ac_cv_prog_cxx_cross
11962 cat > conftest.$ac_ext <<EOF
11963 #line 11964 "configure"
11964 #include "confdefs.h"
11965 #include <math.h>
11966 #ifdef HAVE_IEEEFP_H
11967 #include <ieeefp.h>
11968 #endif
11970 int main() {
11971 logf(0);
11972 ; return 0; }
11974 if { (eval echo configure:11975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11975 rm -rf conftest*
11976 glibcpp_cv_func_logf_use=yes
11977 else
11978 echo "configure: failed program was:" >&5
11979 cat conftest.$ac_ext >&5
11980 rm -rf conftest*
11981 glibcpp_cv_func_logf_use=no
11983 rm -f conftest*
11984 ac_ext=c
11985 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11986 ac_cpp='$CPP $CPPFLAGS'
11987 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11988 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11989 cross_compiling=$ac_cv_prog_cc_cross
11995 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
11997 if test x$glibcpp_cv_func_logf_use = x"yes"; then
11998 for ac_func in logf
12000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12001 echo "configure:12002: checking for $ac_func" >&5
12002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12003 echo $ac_n "(cached) $ac_c" 1>&6
12004 else
12005 cat > conftest.$ac_ext <<EOF
12006 #line 12007 "configure"
12007 #include "confdefs.h"
12008 /* System header to define __stub macros and hopefully few prototypes,
12009 which can conflict with char $ac_func(); below. */
12010 #include <assert.h>
12011 /* Override any gcc2 internal prototype to avoid an error. */
12012 /* We use char because int might match the return type of a gcc2
12013 builtin and then its argument prototype would still apply. */
12014 char $ac_func();
12016 int main() {
12018 /* The GNU C library defines this for functions which it implements
12019 to always fail with ENOSYS. Some functions are actually named
12020 something starting with __ and the normal name is an alias. */
12021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12022 choke me
12023 #else
12024 $ac_func();
12025 #endif
12027 ; return 0; }
12029 if { (eval echo configure:12030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12030 rm -rf conftest*
12031 eval "ac_cv_func_$ac_func=yes"
12032 else
12033 echo "configure: failed program was:" >&5
12034 cat conftest.$ac_ext >&5
12035 rm -rf conftest*
12036 eval "ac_cv_func_$ac_func=no"
12038 rm -f conftest*
12041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12042 echo "$ac_t""yes" 1>&6
12043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12044 cat >> confdefs.h <<EOF
12045 #define $ac_tr_func 1
12048 else
12049 echo "$ac_t""no" 1>&6
12051 done
12053 else
12055 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
12056 echo "configure:12057: checking for _logf declaration" >&5
12057 if test x${glibcpp_cv_func__logf_use+set} != xset; then
12058 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
12059 echo $ac_n "(cached) $ac_c" 1>&6
12060 else
12063 ac_ext=C
12064 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12065 ac_cpp='$CXXCPP $CPPFLAGS'
12066 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12067 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12068 cross_compiling=$ac_cv_prog_cxx_cross
12070 cat > conftest.$ac_ext <<EOF
12071 #line 12072 "configure"
12072 #include "confdefs.h"
12073 #include <math.h>
12074 #ifdef HAVE_IEEEFP_H
12075 #include <ieeefp.h>
12076 #endif
12078 int main() {
12079 _logf(0);
12080 ; return 0; }
12082 if { (eval echo configure:12083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12083 rm -rf conftest*
12084 glibcpp_cv_func__logf_use=yes
12085 else
12086 echo "configure: failed program was:" >&5
12087 cat conftest.$ac_ext >&5
12088 rm -rf conftest*
12089 glibcpp_cv_func__logf_use=no
12091 rm -f conftest*
12092 ac_ext=c
12093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12094 ac_cpp='$CPP $CPPFLAGS'
12095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12096 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12097 cross_compiling=$ac_cv_prog_cc_cross
12103 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
12105 if test x$glibcpp_cv_func__logf_use = x"yes"; then
12106 for ac_func in _logf
12108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12109 echo "configure:12110: checking for $ac_func" >&5
12110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12111 echo $ac_n "(cached) $ac_c" 1>&6
12112 else
12113 cat > conftest.$ac_ext <<EOF
12114 #line 12115 "configure"
12115 #include "confdefs.h"
12116 /* System header to define __stub macros and hopefully few prototypes,
12117 which can conflict with char $ac_func(); below. */
12118 #include <assert.h>
12119 /* Override any gcc2 internal prototype to avoid an error. */
12120 /* We use char because int might match the return type of a gcc2
12121 builtin and then its argument prototype would still apply. */
12122 char $ac_func();
12124 int main() {
12126 /* The GNU C library defines this for functions which it implements
12127 to always fail with ENOSYS. Some functions are actually named
12128 something starting with __ and the normal name is an alias. */
12129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12130 choke me
12131 #else
12132 $ac_func();
12133 #endif
12135 ; return 0; }
12137 if { (eval echo configure:12138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12138 rm -rf conftest*
12139 eval "ac_cv_func_$ac_func=yes"
12140 else
12141 echo "configure: failed program was:" >&5
12142 cat conftest.$ac_ext >&5
12143 rm -rf conftest*
12144 eval "ac_cv_func_$ac_func=no"
12146 rm -f conftest*
12149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12150 echo "$ac_t""yes" 1>&6
12151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12152 cat >> confdefs.h <<EOF
12153 #define $ac_tr_func 1
12156 else
12157 echo "$ac_t""no" 1>&6
12159 done
12166 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
12167 echo "configure:12168: checking for log10f declaration" >&5
12168 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
12169 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
12170 echo $ac_n "(cached) $ac_c" 1>&6
12171 else
12174 ac_ext=C
12175 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12176 ac_cpp='$CXXCPP $CPPFLAGS'
12177 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12178 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12179 cross_compiling=$ac_cv_prog_cxx_cross
12181 cat > conftest.$ac_ext <<EOF
12182 #line 12183 "configure"
12183 #include "confdefs.h"
12184 #include <math.h>
12185 #ifdef HAVE_IEEEFP_H
12186 #include <ieeefp.h>
12187 #endif
12189 int main() {
12190 log10f(0);
12191 ; return 0; }
12193 if { (eval echo configure:12194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12194 rm -rf conftest*
12195 glibcpp_cv_func_log10f_use=yes
12196 else
12197 echo "configure: failed program was:" >&5
12198 cat conftest.$ac_ext >&5
12199 rm -rf conftest*
12200 glibcpp_cv_func_log10f_use=no
12202 rm -f conftest*
12203 ac_ext=c
12204 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12205 ac_cpp='$CPP $CPPFLAGS'
12206 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12207 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12208 cross_compiling=$ac_cv_prog_cc_cross
12214 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
12216 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
12217 for ac_func in log10f
12219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12220 echo "configure:12221: checking for $ac_func" >&5
12221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12222 echo $ac_n "(cached) $ac_c" 1>&6
12223 else
12224 cat > conftest.$ac_ext <<EOF
12225 #line 12226 "configure"
12226 #include "confdefs.h"
12227 /* System header to define __stub macros and hopefully few prototypes,
12228 which can conflict with char $ac_func(); below. */
12229 #include <assert.h>
12230 /* Override any gcc2 internal prototype to avoid an error. */
12231 /* We use char because int might match the return type of a gcc2
12232 builtin and then its argument prototype would still apply. */
12233 char $ac_func();
12235 int main() {
12237 /* The GNU C library defines this for functions which it implements
12238 to always fail with ENOSYS. Some functions are actually named
12239 something starting with __ and the normal name is an alias. */
12240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12241 choke me
12242 #else
12243 $ac_func();
12244 #endif
12246 ; return 0; }
12248 if { (eval echo configure:12249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12249 rm -rf conftest*
12250 eval "ac_cv_func_$ac_func=yes"
12251 else
12252 echo "configure: failed program was:" >&5
12253 cat conftest.$ac_ext >&5
12254 rm -rf conftest*
12255 eval "ac_cv_func_$ac_func=no"
12257 rm -f conftest*
12260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12261 echo "$ac_t""yes" 1>&6
12262 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12263 cat >> confdefs.h <<EOF
12264 #define $ac_tr_func 1
12267 else
12268 echo "$ac_t""no" 1>&6
12270 done
12272 else
12274 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
12275 echo "configure:12276: checking for _log10f declaration" >&5
12276 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
12277 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
12278 echo $ac_n "(cached) $ac_c" 1>&6
12279 else
12282 ac_ext=C
12283 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12284 ac_cpp='$CXXCPP $CPPFLAGS'
12285 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12286 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12287 cross_compiling=$ac_cv_prog_cxx_cross
12289 cat > conftest.$ac_ext <<EOF
12290 #line 12291 "configure"
12291 #include "confdefs.h"
12292 #include <math.h>
12293 #ifdef HAVE_IEEEFP_H
12294 #include <ieeefp.h>
12295 #endif
12297 int main() {
12298 _log10f(0);
12299 ; return 0; }
12301 if { (eval echo configure:12302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12302 rm -rf conftest*
12303 glibcpp_cv_func__log10f_use=yes
12304 else
12305 echo "configure: failed program was:" >&5
12306 cat conftest.$ac_ext >&5
12307 rm -rf conftest*
12308 glibcpp_cv_func__log10f_use=no
12310 rm -f conftest*
12311 ac_ext=c
12312 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12313 ac_cpp='$CPP $CPPFLAGS'
12314 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12315 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12316 cross_compiling=$ac_cv_prog_cc_cross
12322 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
12324 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
12325 for ac_func in _log10f
12327 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12328 echo "configure:12329: checking for $ac_func" >&5
12329 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12330 echo $ac_n "(cached) $ac_c" 1>&6
12331 else
12332 cat > conftest.$ac_ext <<EOF
12333 #line 12334 "configure"
12334 #include "confdefs.h"
12335 /* System header to define __stub macros and hopefully few prototypes,
12336 which can conflict with char $ac_func(); below. */
12337 #include <assert.h>
12338 /* Override any gcc2 internal prototype to avoid an error. */
12339 /* We use char because int might match the return type of a gcc2
12340 builtin and then its argument prototype would still apply. */
12341 char $ac_func();
12343 int main() {
12345 /* The GNU C library defines this for functions which it implements
12346 to always fail with ENOSYS. Some functions are actually named
12347 something starting with __ and the normal name is an alias. */
12348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12349 choke me
12350 #else
12351 $ac_func();
12352 #endif
12354 ; return 0; }
12356 if { (eval echo configure:12357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12357 rm -rf conftest*
12358 eval "ac_cv_func_$ac_func=yes"
12359 else
12360 echo "configure: failed program was:" >&5
12361 cat conftest.$ac_ext >&5
12362 rm -rf conftest*
12363 eval "ac_cv_func_$ac_func=no"
12365 rm -f conftest*
12368 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12369 echo "$ac_t""yes" 1>&6
12370 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12371 cat >> confdefs.h <<EOF
12372 #define $ac_tr_func 1
12375 else
12376 echo "$ac_t""no" 1>&6
12378 done
12385 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
12386 echo "configure:12387: checking for modff declaration" >&5
12387 if test x${glibcpp_cv_func_modff_use+set} != xset; then
12388 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
12389 echo $ac_n "(cached) $ac_c" 1>&6
12390 else
12393 ac_ext=C
12394 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12395 ac_cpp='$CXXCPP $CPPFLAGS'
12396 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12397 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12398 cross_compiling=$ac_cv_prog_cxx_cross
12400 cat > conftest.$ac_ext <<EOF
12401 #line 12402 "configure"
12402 #include "confdefs.h"
12403 #include <math.h>
12404 int main() {
12405 modff(0, 0);
12406 ; return 0; }
12408 if { (eval echo configure:12409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12409 rm -rf conftest*
12410 glibcpp_cv_func_modff_use=yes
12411 else
12412 echo "configure: failed program was:" >&5
12413 cat conftest.$ac_ext >&5
12414 rm -rf conftest*
12415 glibcpp_cv_func_modff_use=no
12417 rm -f conftest*
12418 ac_ext=c
12419 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12420 ac_cpp='$CPP $CPPFLAGS'
12421 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12422 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12423 cross_compiling=$ac_cv_prog_cc_cross
12429 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
12431 if test x$glibcpp_cv_func_modff_use = x"yes"; then
12432 for ac_func in modff
12434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12435 echo "configure:12436: checking for $ac_func" >&5
12436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12437 echo $ac_n "(cached) $ac_c" 1>&6
12438 else
12439 cat > conftest.$ac_ext <<EOF
12440 #line 12441 "configure"
12441 #include "confdefs.h"
12442 /* System header to define __stub macros and hopefully few prototypes,
12443 which can conflict with char $ac_func(); below. */
12444 #include <assert.h>
12445 /* Override any gcc2 internal prototype to avoid an error. */
12446 /* We use char because int might match the return type of a gcc2
12447 builtin and then its argument prototype would still apply. */
12448 char $ac_func();
12450 int main() {
12452 /* The GNU C library defines this for functions which it implements
12453 to always fail with ENOSYS. Some functions are actually named
12454 something starting with __ and the normal name is an alias. */
12455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12456 choke me
12457 #else
12458 $ac_func();
12459 #endif
12461 ; return 0; }
12463 if { (eval echo configure:12464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12464 rm -rf conftest*
12465 eval "ac_cv_func_$ac_func=yes"
12466 else
12467 echo "configure: failed program was:" >&5
12468 cat conftest.$ac_ext >&5
12469 rm -rf conftest*
12470 eval "ac_cv_func_$ac_func=no"
12472 rm -f conftest*
12475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12476 echo "$ac_t""yes" 1>&6
12477 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12478 cat >> confdefs.h <<EOF
12479 #define $ac_tr_func 1
12482 else
12483 echo "$ac_t""no" 1>&6
12485 done
12487 else
12489 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
12490 echo "configure:12491: checking for _modff declaration" >&5
12491 if test x${glibcpp_cv_func__modff_use+set} != xset; then
12492 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
12493 echo $ac_n "(cached) $ac_c" 1>&6
12494 else
12497 ac_ext=C
12498 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12499 ac_cpp='$CXXCPP $CPPFLAGS'
12500 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12501 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12502 cross_compiling=$ac_cv_prog_cxx_cross
12504 cat > conftest.$ac_ext <<EOF
12505 #line 12506 "configure"
12506 #include "confdefs.h"
12507 #include <math.h>
12508 int main() {
12509 _modff(0, 0);
12510 ; return 0; }
12512 if { (eval echo configure:12513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12513 rm -rf conftest*
12514 glibcpp_cv_func__modff_use=yes
12515 else
12516 echo "configure: failed program was:" >&5
12517 cat conftest.$ac_ext >&5
12518 rm -rf conftest*
12519 glibcpp_cv_func__modff_use=no
12521 rm -f conftest*
12522 ac_ext=c
12523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12524 ac_cpp='$CPP $CPPFLAGS'
12525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12527 cross_compiling=$ac_cv_prog_cc_cross
12533 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
12535 if test x$glibcpp_cv_func__modff_use = x"yes"; then
12536 for ac_func in _modff
12538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12539 echo "configure:12540: checking for $ac_func" >&5
12540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12541 echo $ac_n "(cached) $ac_c" 1>&6
12542 else
12543 cat > conftest.$ac_ext <<EOF
12544 #line 12545 "configure"
12545 #include "confdefs.h"
12546 /* System header to define __stub macros and hopefully few prototypes,
12547 which can conflict with char $ac_func(); below. */
12548 #include <assert.h>
12549 /* Override any gcc2 internal prototype to avoid an error. */
12550 /* We use char because int might match the return type of a gcc2
12551 builtin and then its argument prototype would still apply. */
12552 char $ac_func();
12554 int main() {
12556 /* The GNU C library defines this for functions which it implements
12557 to always fail with ENOSYS. Some functions are actually named
12558 something starting with __ and the normal name is an alias. */
12559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12560 choke me
12561 #else
12562 $ac_func();
12563 #endif
12565 ; return 0; }
12567 if { (eval echo configure:12568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12568 rm -rf conftest*
12569 eval "ac_cv_func_$ac_func=yes"
12570 else
12571 echo "configure: failed program was:" >&5
12572 cat conftest.$ac_ext >&5
12573 rm -rf conftest*
12574 eval "ac_cv_func_$ac_func=no"
12576 rm -f conftest*
12579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12580 echo "$ac_t""yes" 1>&6
12581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12582 cat >> confdefs.h <<EOF
12583 #define $ac_tr_func 1
12586 else
12587 echo "$ac_t""no" 1>&6
12589 done
12596 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
12597 echo "configure:12598: checking for powf declaration" >&5
12598 if test x${glibcpp_cv_func_powf_use+set} != xset; then
12599 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
12600 echo $ac_n "(cached) $ac_c" 1>&6
12601 else
12604 ac_ext=C
12605 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12606 ac_cpp='$CXXCPP $CPPFLAGS'
12607 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12608 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12609 cross_compiling=$ac_cv_prog_cxx_cross
12611 cat > conftest.$ac_ext <<EOF
12612 #line 12613 "configure"
12613 #include "confdefs.h"
12614 #include <math.h>
12615 int main() {
12616 powf(0, 0);
12617 ; return 0; }
12619 if { (eval echo configure:12620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12620 rm -rf conftest*
12621 glibcpp_cv_func_powf_use=yes
12622 else
12623 echo "configure: failed program was:" >&5
12624 cat conftest.$ac_ext >&5
12625 rm -rf conftest*
12626 glibcpp_cv_func_powf_use=no
12628 rm -f conftest*
12629 ac_ext=c
12630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12631 ac_cpp='$CPP $CPPFLAGS'
12632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12633 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12634 cross_compiling=$ac_cv_prog_cc_cross
12640 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
12642 if test x$glibcpp_cv_func_powf_use = x"yes"; then
12643 for ac_func in powf
12645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12646 echo "configure:12647: checking for $ac_func" >&5
12647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12648 echo $ac_n "(cached) $ac_c" 1>&6
12649 else
12650 cat > conftest.$ac_ext <<EOF
12651 #line 12652 "configure"
12652 #include "confdefs.h"
12653 /* System header to define __stub macros and hopefully few prototypes,
12654 which can conflict with char $ac_func(); below. */
12655 #include <assert.h>
12656 /* Override any gcc2 internal prototype to avoid an error. */
12657 /* We use char because int might match the return type of a gcc2
12658 builtin and then its argument prototype would still apply. */
12659 char $ac_func();
12661 int main() {
12663 /* The GNU C library defines this for functions which it implements
12664 to always fail with ENOSYS. Some functions are actually named
12665 something starting with __ and the normal name is an alias. */
12666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12667 choke me
12668 #else
12669 $ac_func();
12670 #endif
12672 ; return 0; }
12674 if { (eval echo configure:12675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12675 rm -rf conftest*
12676 eval "ac_cv_func_$ac_func=yes"
12677 else
12678 echo "configure: failed program was:" >&5
12679 cat conftest.$ac_ext >&5
12680 rm -rf conftest*
12681 eval "ac_cv_func_$ac_func=no"
12683 rm -f conftest*
12686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12687 echo "$ac_t""yes" 1>&6
12688 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12689 cat >> confdefs.h <<EOF
12690 #define $ac_tr_func 1
12693 else
12694 echo "$ac_t""no" 1>&6
12696 done
12698 else
12700 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
12701 echo "configure:12702: checking for _powf declaration" >&5
12702 if test x${glibcpp_cv_func__powf_use+set} != xset; then
12703 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
12704 echo $ac_n "(cached) $ac_c" 1>&6
12705 else
12708 ac_ext=C
12709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12710 ac_cpp='$CXXCPP $CPPFLAGS'
12711 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12712 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12713 cross_compiling=$ac_cv_prog_cxx_cross
12715 cat > conftest.$ac_ext <<EOF
12716 #line 12717 "configure"
12717 #include "confdefs.h"
12718 #include <math.h>
12719 int main() {
12720 _powf(0, 0);
12721 ; return 0; }
12723 if { (eval echo configure:12724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12724 rm -rf conftest*
12725 glibcpp_cv_func__powf_use=yes
12726 else
12727 echo "configure: failed program was:" >&5
12728 cat conftest.$ac_ext >&5
12729 rm -rf conftest*
12730 glibcpp_cv_func__powf_use=no
12732 rm -f conftest*
12733 ac_ext=c
12734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12735 ac_cpp='$CPP $CPPFLAGS'
12736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12738 cross_compiling=$ac_cv_prog_cc_cross
12744 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
12746 if test x$glibcpp_cv_func__powf_use = x"yes"; then
12747 for ac_func in _powf
12749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12750 echo "configure:12751: checking for $ac_func" >&5
12751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12752 echo $ac_n "(cached) $ac_c" 1>&6
12753 else
12754 cat > conftest.$ac_ext <<EOF
12755 #line 12756 "configure"
12756 #include "confdefs.h"
12757 /* System header to define __stub macros and hopefully few prototypes,
12758 which can conflict with char $ac_func(); below. */
12759 #include <assert.h>
12760 /* Override any gcc2 internal prototype to avoid an error. */
12761 /* We use char because int might match the return type of a gcc2
12762 builtin and then its argument prototype would still apply. */
12763 char $ac_func();
12765 int main() {
12767 /* The GNU C library defines this for functions which it implements
12768 to always fail with ENOSYS. Some functions are actually named
12769 something starting with __ and the normal name is an alias. */
12770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12771 choke me
12772 #else
12773 $ac_func();
12774 #endif
12776 ; return 0; }
12778 if { (eval echo configure:12779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12779 rm -rf conftest*
12780 eval "ac_cv_func_$ac_func=yes"
12781 else
12782 echo "configure: failed program was:" >&5
12783 cat conftest.$ac_ext >&5
12784 rm -rf conftest*
12785 eval "ac_cv_func_$ac_func=no"
12787 rm -f conftest*
12790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12791 echo "$ac_t""yes" 1>&6
12792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12793 cat >> confdefs.h <<EOF
12794 #define $ac_tr_func 1
12797 else
12798 echo "$ac_t""no" 1>&6
12800 done
12807 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
12808 echo "configure:12809: checking for sqrtf declaration" >&5
12809 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
12810 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
12811 echo $ac_n "(cached) $ac_c" 1>&6
12812 else
12815 ac_ext=C
12816 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12817 ac_cpp='$CXXCPP $CPPFLAGS'
12818 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12819 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12820 cross_compiling=$ac_cv_prog_cxx_cross
12822 cat > conftest.$ac_ext <<EOF
12823 #line 12824 "configure"
12824 #include "confdefs.h"
12825 #include <math.h>
12826 #ifdef HAVE_IEEEFP_H
12827 #include <ieeefp.h>
12828 #endif
12830 int main() {
12831 sqrtf(0);
12832 ; return 0; }
12834 if { (eval echo configure:12835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12835 rm -rf conftest*
12836 glibcpp_cv_func_sqrtf_use=yes
12837 else
12838 echo "configure: failed program was:" >&5
12839 cat conftest.$ac_ext >&5
12840 rm -rf conftest*
12841 glibcpp_cv_func_sqrtf_use=no
12843 rm -f conftest*
12844 ac_ext=c
12845 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12846 ac_cpp='$CPP $CPPFLAGS'
12847 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12848 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12849 cross_compiling=$ac_cv_prog_cc_cross
12855 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
12857 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
12858 for ac_func in sqrtf
12860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12861 echo "configure:12862: checking for $ac_func" >&5
12862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12863 echo $ac_n "(cached) $ac_c" 1>&6
12864 else
12865 cat > conftest.$ac_ext <<EOF
12866 #line 12867 "configure"
12867 #include "confdefs.h"
12868 /* System header to define __stub macros and hopefully few prototypes,
12869 which can conflict with char $ac_func(); below. */
12870 #include <assert.h>
12871 /* Override any gcc2 internal prototype to avoid an error. */
12872 /* We use char because int might match the return type of a gcc2
12873 builtin and then its argument prototype would still apply. */
12874 char $ac_func();
12876 int main() {
12878 /* The GNU C library defines this for functions which it implements
12879 to always fail with ENOSYS. Some functions are actually named
12880 something starting with __ and the normal name is an alias. */
12881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12882 choke me
12883 #else
12884 $ac_func();
12885 #endif
12887 ; return 0; }
12889 if { (eval echo configure:12890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12890 rm -rf conftest*
12891 eval "ac_cv_func_$ac_func=yes"
12892 else
12893 echo "configure: failed program was:" >&5
12894 cat conftest.$ac_ext >&5
12895 rm -rf conftest*
12896 eval "ac_cv_func_$ac_func=no"
12898 rm -f conftest*
12901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12902 echo "$ac_t""yes" 1>&6
12903 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12904 cat >> confdefs.h <<EOF
12905 #define $ac_tr_func 1
12908 else
12909 echo "$ac_t""no" 1>&6
12911 done
12913 else
12915 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
12916 echo "configure:12917: checking for _sqrtf declaration" >&5
12917 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
12918 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
12919 echo $ac_n "(cached) $ac_c" 1>&6
12920 else
12923 ac_ext=C
12924 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12925 ac_cpp='$CXXCPP $CPPFLAGS'
12926 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12927 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12928 cross_compiling=$ac_cv_prog_cxx_cross
12930 cat > conftest.$ac_ext <<EOF
12931 #line 12932 "configure"
12932 #include "confdefs.h"
12933 #include <math.h>
12934 #ifdef HAVE_IEEEFP_H
12935 #include <ieeefp.h>
12936 #endif
12938 int main() {
12939 _sqrtf(0);
12940 ; return 0; }
12942 if { (eval echo configure:12943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12943 rm -rf conftest*
12944 glibcpp_cv_func__sqrtf_use=yes
12945 else
12946 echo "configure: failed program was:" >&5
12947 cat conftest.$ac_ext >&5
12948 rm -rf conftest*
12949 glibcpp_cv_func__sqrtf_use=no
12951 rm -f conftest*
12952 ac_ext=c
12953 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12954 ac_cpp='$CPP $CPPFLAGS'
12955 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12956 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12957 cross_compiling=$ac_cv_prog_cc_cross
12963 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
12965 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
12966 for ac_func in _sqrtf
12968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12969 echo "configure:12970: checking for $ac_func" >&5
12970 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12971 echo $ac_n "(cached) $ac_c" 1>&6
12972 else
12973 cat > conftest.$ac_ext <<EOF
12974 #line 12975 "configure"
12975 #include "confdefs.h"
12976 /* System header to define __stub macros and hopefully few prototypes,
12977 which can conflict with char $ac_func(); below. */
12978 #include <assert.h>
12979 /* Override any gcc2 internal prototype to avoid an error. */
12980 /* We use char because int might match the return type of a gcc2
12981 builtin and then its argument prototype would still apply. */
12982 char $ac_func();
12984 int main() {
12986 /* The GNU C library defines this for functions which it implements
12987 to always fail with ENOSYS. Some functions are actually named
12988 something starting with __ and the normal name is an alias. */
12989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12990 choke me
12991 #else
12992 $ac_func();
12993 #endif
12995 ; return 0; }
12997 if { (eval echo configure:12998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12998 rm -rf conftest*
12999 eval "ac_cv_func_$ac_func=yes"
13000 else
13001 echo "configure: failed program was:" >&5
13002 cat conftest.$ac_ext >&5
13003 rm -rf conftest*
13004 eval "ac_cv_func_$ac_func=no"
13006 rm -f conftest*
13009 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13010 echo "$ac_t""yes" 1>&6
13011 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13012 cat >> confdefs.h <<EOF
13013 #define $ac_tr_func 1
13016 else
13017 echo "$ac_t""no" 1>&6
13019 done
13026 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
13027 echo "configure:13028: checking for sincosf declaration" >&5
13028 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
13029 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
13030 echo $ac_n "(cached) $ac_c" 1>&6
13031 else
13034 ac_ext=C
13035 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13036 ac_cpp='$CXXCPP $CPPFLAGS'
13037 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13038 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13039 cross_compiling=$ac_cv_prog_cxx_cross
13041 cat > conftest.$ac_ext <<EOF
13042 #line 13043 "configure"
13043 #include "confdefs.h"
13044 #include <math.h>
13045 int main() {
13046 sincosf(0, 0, 0);
13047 ; return 0; }
13049 if { (eval echo configure:13050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13050 rm -rf conftest*
13051 glibcpp_cv_func_sincosf_use=yes
13052 else
13053 echo "configure: failed program was:" >&5
13054 cat conftest.$ac_ext >&5
13055 rm -rf conftest*
13056 glibcpp_cv_func_sincosf_use=no
13058 rm -f conftest*
13059 ac_ext=c
13060 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13061 ac_cpp='$CPP $CPPFLAGS'
13062 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13063 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13064 cross_compiling=$ac_cv_prog_cc_cross
13070 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
13072 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
13073 for ac_func in sincosf
13075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13076 echo "configure:13077: checking for $ac_func" >&5
13077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13078 echo $ac_n "(cached) $ac_c" 1>&6
13079 else
13080 cat > conftest.$ac_ext <<EOF
13081 #line 13082 "configure"
13082 #include "confdefs.h"
13083 /* System header to define __stub macros and hopefully few prototypes,
13084 which can conflict with char $ac_func(); below. */
13085 #include <assert.h>
13086 /* Override any gcc2 internal prototype to avoid an error. */
13087 /* We use char because int might match the return type of a gcc2
13088 builtin and then its argument prototype would still apply. */
13089 char $ac_func();
13091 int main() {
13093 /* The GNU C library defines this for functions which it implements
13094 to always fail with ENOSYS. Some functions are actually named
13095 something starting with __ and the normal name is an alias. */
13096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13097 choke me
13098 #else
13099 $ac_func();
13100 #endif
13102 ; return 0; }
13104 if { (eval echo configure:13105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13105 rm -rf conftest*
13106 eval "ac_cv_func_$ac_func=yes"
13107 else
13108 echo "configure: failed program was:" >&5
13109 cat conftest.$ac_ext >&5
13110 rm -rf conftest*
13111 eval "ac_cv_func_$ac_func=no"
13113 rm -f conftest*
13116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13117 echo "$ac_t""yes" 1>&6
13118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13119 cat >> confdefs.h <<EOF
13120 #define $ac_tr_func 1
13123 else
13124 echo "$ac_t""no" 1>&6
13126 done
13128 else
13130 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
13131 echo "configure:13132: checking for _sincosf declaration" >&5
13132 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
13133 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
13134 echo $ac_n "(cached) $ac_c" 1>&6
13135 else
13138 ac_ext=C
13139 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13140 ac_cpp='$CXXCPP $CPPFLAGS'
13141 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13142 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13143 cross_compiling=$ac_cv_prog_cxx_cross
13145 cat > conftest.$ac_ext <<EOF
13146 #line 13147 "configure"
13147 #include "confdefs.h"
13148 #include <math.h>
13149 int main() {
13150 _sincosf(0, 0, 0);
13151 ; return 0; }
13153 if { (eval echo configure:13154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13154 rm -rf conftest*
13155 glibcpp_cv_func__sincosf_use=yes
13156 else
13157 echo "configure: failed program was:" >&5
13158 cat conftest.$ac_ext >&5
13159 rm -rf conftest*
13160 glibcpp_cv_func__sincosf_use=no
13162 rm -f conftest*
13163 ac_ext=c
13164 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13165 ac_cpp='$CPP $CPPFLAGS'
13166 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13167 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13168 cross_compiling=$ac_cv_prog_cc_cross
13174 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
13176 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
13177 for ac_func in _sincosf
13179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13180 echo "configure:13181: checking for $ac_func" >&5
13181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13182 echo $ac_n "(cached) $ac_c" 1>&6
13183 else
13184 cat > conftest.$ac_ext <<EOF
13185 #line 13186 "configure"
13186 #include "confdefs.h"
13187 /* System header to define __stub macros and hopefully few prototypes,
13188 which can conflict with char $ac_func(); below. */
13189 #include <assert.h>
13190 /* Override any gcc2 internal prototype to avoid an error. */
13191 /* We use char because int might match the return type of a gcc2
13192 builtin and then its argument prototype would still apply. */
13193 char $ac_func();
13195 int main() {
13197 /* The GNU C library defines this for functions which it implements
13198 to always fail with ENOSYS. Some functions are actually named
13199 something starting with __ and the normal name is an alias. */
13200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13201 choke me
13202 #else
13203 $ac_func();
13204 #endif
13206 ; return 0; }
13208 if { (eval echo configure:13209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13209 rm -rf conftest*
13210 eval "ac_cv_func_$ac_func=yes"
13211 else
13212 echo "configure: failed program was:" >&5
13213 cat conftest.$ac_ext >&5
13214 rm -rf conftest*
13215 eval "ac_cv_func_$ac_func=no"
13217 rm -f conftest*
13220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13221 echo "$ac_t""yes" 1>&6
13222 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13223 cat >> confdefs.h <<EOF
13224 #define $ac_tr_func 1
13227 else
13228 echo "$ac_t""no" 1>&6
13230 done
13237 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
13238 echo "configure:13239: checking for finitef declaration" >&5
13239 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
13240 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
13241 echo $ac_n "(cached) $ac_c" 1>&6
13242 else
13245 ac_ext=C
13246 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13247 ac_cpp='$CXXCPP $CPPFLAGS'
13248 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13249 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13250 cross_compiling=$ac_cv_prog_cxx_cross
13252 cat > conftest.$ac_ext <<EOF
13253 #line 13254 "configure"
13254 #include "confdefs.h"
13255 #include <math.h>
13256 #ifdef HAVE_IEEEFP_H
13257 #include <ieeefp.h>
13258 #endif
13260 int main() {
13261 finitef(0);
13262 ; return 0; }
13264 if { (eval echo configure:13265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13265 rm -rf conftest*
13266 glibcpp_cv_func_finitef_use=yes
13267 else
13268 echo "configure: failed program was:" >&5
13269 cat conftest.$ac_ext >&5
13270 rm -rf conftest*
13271 glibcpp_cv_func_finitef_use=no
13273 rm -f conftest*
13274 ac_ext=c
13275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13276 ac_cpp='$CPP $CPPFLAGS'
13277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13278 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13279 cross_compiling=$ac_cv_prog_cc_cross
13285 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
13287 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
13288 for ac_func in finitef
13290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13291 echo "configure:13292: checking for $ac_func" >&5
13292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13293 echo $ac_n "(cached) $ac_c" 1>&6
13294 else
13295 cat > conftest.$ac_ext <<EOF
13296 #line 13297 "configure"
13297 #include "confdefs.h"
13298 /* System header to define __stub macros and hopefully few prototypes,
13299 which can conflict with char $ac_func(); below. */
13300 #include <assert.h>
13301 /* Override any gcc2 internal prototype to avoid an error. */
13302 /* We use char because int might match the return type of a gcc2
13303 builtin and then its argument prototype would still apply. */
13304 char $ac_func();
13306 int main() {
13308 /* The GNU C library defines this for functions which it implements
13309 to always fail with ENOSYS. Some functions are actually named
13310 something starting with __ and the normal name is an alias. */
13311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13312 choke me
13313 #else
13314 $ac_func();
13315 #endif
13317 ; return 0; }
13319 if { (eval echo configure:13320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13320 rm -rf conftest*
13321 eval "ac_cv_func_$ac_func=yes"
13322 else
13323 echo "configure: failed program was:" >&5
13324 cat conftest.$ac_ext >&5
13325 rm -rf conftest*
13326 eval "ac_cv_func_$ac_func=no"
13328 rm -f conftest*
13331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13332 echo "$ac_t""yes" 1>&6
13333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13334 cat >> confdefs.h <<EOF
13335 #define $ac_tr_func 1
13338 else
13339 echo "$ac_t""no" 1>&6
13341 done
13343 else
13345 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
13346 echo "configure:13347: checking for _finitef declaration" >&5
13347 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
13348 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
13349 echo $ac_n "(cached) $ac_c" 1>&6
13350 else
13353 ac_ext=C
13354 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13355 ac_cpp='$CXXCPP $CPPFLAGS'
13356 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13357 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13358 cross_compiling=$ac_cv_prog_cxx_cross
13360 cat > conftest.$ac_ext <<EOF
13361 #line 13362 "configure"
13362 #include "confdefs.h"
13363 #include <math.h>
13364 #ifdef HAVE_IEEEFP_H
13365 #include <ieeefp.h>
13366 #endif
13368 int main() {
13369 _finitef(0);
13370 ; return 0; }
13372 if { (eval echo configure:13373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13373 rm -rf conftest*
13374 glibcpp_cv_func__finitef_use=yes
13375 else
13376 echo "configure: failed program was:" >&5
13377 cat conftest.$ac_ext >&5
13378 rm -rf conftest*
13379 glibcpp_cv_func__finitef_use=no
13381 rm -f conftest*
13382 ac_ext=c
13383 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13384 ac_cpp='$CPP $CPPFLAGS'
13385 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13386 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13387 cross_compiling=$ac_cv_prog_cc_cross
13393 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
13395 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
13396 for ac_func in _finitef
13398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13399 echo "configure:13400: checking for $ac_func" >&5
13400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13401 echo $ac_n "(cached) $ac_c" 1>&6
13402 else
13403 cat > conftest.$ac_ext <<EOF
13404 #line 13405 "configure"
13405 #include "confdefs.h"
13406 /* System header to define __stub macros and hopefully few prototypes,
13407 which can conflict with char $ac_func(); below. */
13408 #include <assert.h>
13409 /* Override any gcc2 internal prototype to avoid an error. */
13410 /* We use char because int might match the return type of a gcc2
13411 builtin and then its argument prototype would still apply. */
13412 char $ac_func();
13414 int main() {
13416 /* The GNU C library defines this for functions which it implements
13417 to always fail with ENOSYS. Some functions are actually named
13418 something starting with __ and the normal name is an alias. */
13419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13420 choke me
13421 #else
13422 $ac_func();
13423 #endif
13425 ; return 0; }
13427 if { (eval echo configure:13428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13428 rm -rf conftest*
13429 eval "ac_cv_func_$ac_func=yes"
13430 else
13431 echo "configure: failed program was:" >&5
13432 cat conftest.$ac_ext >&5
13433 rm -rf conftest*
13434 eval "ac_cv_func_$ac_func=no"
13436 rm -f conftest*
13439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13440 echo "$ac_t""yes" 1>&6
13441 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13442 cat >> confdefs.h <<EOF
13443 #define $ac_tr_func 1
13446 else
13447 echo "$ac_t""no" 1>&6
13449 done
13456 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
13457 echo "configure:13458: checking for long double trig functions" >&5
13458 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
13459 echo $ac_n "(cached) $ac_c" 1>&6
13460 else
13463 ac_ext=C
13464 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13465 ac_cpp='$CXXCPP $CPPFLAGS'
13466 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13467 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13468 cross_compiling=$ac_cv_prog_cxx_cross
13470 cat > conftest.$ac_ext <<EOF
13471 #line 13472 "configure"
13472 #include "confdefs.h"
13473 #include <math.h>
13474 int main() {
13475 `for x in acosl asinl atanl \
13476 cosl sinl tanl \
13477 coshl sinhl tanhl; do echo "$x (0);"; done`
13478 ; return 0; }
13480 if { (eval echo configure:13481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13481 rm -rf conftest*
13482 glibcpp_cv_func_long_double_trig_use=yes
13483 else
13484 echo "configure: failed program was:" >&5
13485 cat conftest.$ac_ext >&5
13486 rm -rf conftest*
13487 glibcpp_cv_func_long_double_trig_use=no
13489 rm -f conftest*
13490 ac_ext=c
13491 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13492 ac_cpp='$CPP $CPPFLAGS'
13493 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13494 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13495 cross_compiling=$ac_cv_prog_cc_cross
13499 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
13500 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
13501 for ac_func in acosl asinl atanl \
13502 cosl sinl tanl \
13503 coshl sinhl tanhl
13505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13506 echo "configure:13507: checking for $ac_func" >&5
13507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13508 echo $ac_n "(cached) $ac_c" 1>&6
13509 else
13510 cat > conftest.$ac_ext <<EOF
13511 #line 13512 "configure"
13512 #include "confdefs.h"
13513 /* System header to define __stub macros and hopefully few prototypes,
13514 which can conflict with char $ac_func(); below. */
13515 #include <assert.h>
13516 /* Override any gcc2 internal prototype to avoid an error. */
13517 /* We use char because int might match the return type of a gcc2
13518 builtin and then its argument prototype would still apply. */
13519 char $ac_func();
13521 int main() {
13523 /* The GNU C library defines this for functions which it implements
13524 to always fail with ENOSYS. Some functions are actually named
13525 something starting with __ and the normal name is an alias. */
13526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13527 choke me
13528 #else
13529 $ac_func();
13530 #endif
13532 ; return 0; }
13534 if { (eval echo configure:13535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13535 rm -rf conftest*
13536 eval "ac_cv_func_$ac_func=yes"
13537 else
13538 echo "configure: failed program was:" >&5
13539 cat conftest.$ac_ext >&5
13540 rm -rf conftest*
13541 eval "ac_cv_func_$ac_func=no"
13543 rm -f conftest*
13546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13547 echo "$ac_t""yes" 1>&6
13548 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13549 cat >> confdefs.h <<EOF
13550 #define $ac_tr_func 1
13553 else
13554 echo "$ac_t""no" 1>&6
13556 done
13561 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
13562 echo "configure:13563: checking for long double round functions" >&5
13563 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
13564 echo $ac_n "(cached) $ac_c" 1>&6
13565 else
13568 ac_ext=C
13569 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13570 ac_cpp='$CXXCPP $CPPFLAGS'
13571 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13572 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13573 cross_compiling=$ac_cv_prog_cxx_cross
13575 cat > conftest.$ac_ext <<EOF
13576 #line 13577 "configure"
13577 #include "confdefs.h"
13578 #include <math.h>
13579 int main() {
13580 `for x in ceill floorl; do echo "$x (0);"; done`
13581 ; return 0; }
13583 if { (eval echo configure:13584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13584 rm -rf conftest*
13585 glibcpp_cv_func_long_double_round_use=yes
13586 else
13587 echo "configure: failed program was:" >&5
13588 cat conftest.$ac_ext >&5
13589 rm -rf conftest*
13590 glibcpp_cv_func_long_double_round_use=no
13592 rm -f conftest*
13593 ac_ext=c
13594 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13595 ac_cpp='$CPP $CPPFLAGS'
13596 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13597 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13598 cross_compiling=$ac_cv_prog_cc_cross
13602 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
13603 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
13604 for ac_func in ceill floorl
13606 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13607 echo "configure:13608: checking for $ac_func" >&5
13608 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13609 echo $ac_n "(cached) $ac_c" 1>&6
13610 else
13611 cat > conftest.$ac_ext <<EOF
13612 #line 13613 "configure"
13613 #include "confdefs.h"
13614 /* System header to define __stub macros and hopefully few prototypes,
13615 which can conflict with char $ac_func(); below. */
13616 #include <assert.h>
13617 /* Override any gcc2 internal prototype to avoid an error. */
13618 /* We use char because int might match the return type of a gcc2
13619 builtin and then its argument prototype would still apply. */
13620 char $ac_func();
13622 int main() {
13624 /* The GNU C library defines this for functions which it implements
13625 to always fail with ENOSYS. Some functions are actually named
13626 something starting with __ and the normal name is an alias. */
13627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13628 choke me
13629 #else
13630 $ac_func();
13631 #endif
13633 ; return 0; }
13635 if { (eval echo configure:13636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13636 rm -rf conftest*
13637 eval "ac_cv_func_$ac_func=yes"
13638 else
13639 echo "configure: failed program was:" >&5
13640 cat conftest.$ac_ext >&5
13641 rm -rf conftest*
13642 eval "ac_cv_func_$ac_func=no"
13644 rm -f conftest*
13647 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13648 echo "$ac_t""yes" 1>&6
13649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13650 cat >> confdefs.h <<EOF
13651 #define $ac_tr_func 1
13654 else
13655 echo "$ac_t""no" 1>&6
13657 done
13663 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
13664 echo "configure:13665: checking for isnanl declaration" >&5
13665 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
13666 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
13667 echo $ac_n "(cached) $ac_c" 1>&6
13668 else
13671 ac_ext=C
13672 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13673 ac_cpp='$CXXCPP $CPPFLAGS'
13674 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13675 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13676 cross_compiling=$ac_cv_prog_cxx_cross
13678 cat > conftest.$ac_ext <<EOF
13679 #line 13680 "configure"
13680 #include "confdefs.h"
13681 #include <math.h>
13682 #ifdef HAVE_IEEEFP_H
13683 #include <ieeefp.h>
13684 #endif
13686 int main() {
13687 isnanl(0);
13688 ; return 0; }
13690 if { (eval echo configure:13691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13691 rm -rf conftest*
13692 glibcpp_cv_func_isnanl_use=yes
13693 else
13694 echo "configure: failed program was:" >&5
13695 cat conftest.$ac_ext >&5
13696 rm -rf conftest*
13697 glibcpp_cv_func_isnanl_use=no
13699 rm -f conftest*
13700 ac_ext=c
13701 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13702 ac_cpp='$CPP $CPPFLAGS'
13703 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13704 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13705 cross_compiling=$ac_cv_prog_cc_cross
13711 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
13713 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
13714 for ac_func in isnanl
13716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13717 echo "configure:13718: checking for $ac_func" >&5
13718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13719 echo $ac_n "(cached) $ac_c" 1>&6
13720 else
13721 cat > conftest.$ac_ext <<EOF
13722 #line 13723 "configure"
13723 #include "confdefs.h"
13724 /* System header to define __stub macros and hopefully few prototypes,
13725 which can conflict with char $ac_func(); below. */
13726 #include <assert.h>
13727 /* Override any gcc2 internal prototype to avoid an error. */
13728 /* We use char because int might match the return type of a gcc2
13729 builtin and then its argument prototype would still apply. */
13730 char $ac_func();
13732 int main() {
13734 /* The GNU C library defines this for functions which it implements
13735 to always fail with ENOSYS. Some functions are actually named
13736 something starting with __ and the normal name is an alias. */
13737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13738 choke me
13739 #else
13740 $ac_func();
13741 #endif
13743 ; return 0; }
13745 if { (eval echo configure:13746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13746 rm -rf conftest*
13747 eval "ac_cv_func_$ac_func=yes"
13748 else
13749 echo "configure: failed program was:" >&5
13750 cat conftest.$ac_ext >&5
13751 rm -rf conftest*
13752 eval "ac_cv_func_$ac_func=no"
13754 rm -f conftest*
13757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13758 echo "$ac_t""yes" 1>&6
13759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13760 cat >> confdefs.h <<EOF
13761 #define $ac_tr_func 1
13764 else
13765 echo "$ac_t""no" 1>&6
13767 done
13769 else
13771 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
13772 echo "configure:13773: checking for _isnanl declaration" >&5
13773 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
13774 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
13775 echo $ac_n "(cached) $ac_c" 1>&6
13776 else
13779 ac_ext=C
13780 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13781 ac_cpp='$CXXCPP $CPPFLAGS'
13782 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13783 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13784 cross_compiling=$ac_cv_prog_cxx_cross
13786 cat > conftest.$ac_ext <<EOF
13787 #line 13788 "configure"
13788 #include "confdefs.h"
13789 #include <math.h>
13790 #ifdef HAVE_IEEEFP_H
13791 #include <ieeefp.h>
13792 #endif
13794 int main() {
13795 _isnanl(0);
13796 ; return 0; }
13798 if { (eval echo configure:13799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13799 rm -rf conftest*
13800 glibcpp_cv_func__isnanl_use=yes
13801 else
13802 echo "configure: failed program was:" >&5
13803 cat conftest.$ac_ext >&5
13804 rm -rf conftest*
13805 glibcpp_cv_func__isnanl_use=no
13807 rm -f conftest*
13808 ac_ext=c
13809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13810 ac_cpp='$CPP $CPPFLAGS'
13811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13813 cross_compiling=$ac_cv_prog_cc_cross
13819 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
13821 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
13822 for ac_func in _isnanl
13824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13825 echo "configure:13826: checking for $ac_func" >&5
13826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13827 echo $ac_n "(cached) $ac_c" 1>&6
13828 else
13829 cat > conftest.$ac_ext <<EOF
13830 #line 13831 "configure"
13831 #include "confdefs.h"
13832 /* System header to define __stub macros and hopefully few prototypes,
13833 which can conflict with char $ac_func(); below. */
13834 #include <assert.h>
13835 /* Override any gcc2 internal prototype to avoid an error. */
13836 /* We use char because int might match the return type of a gcc2
13837 builtin and then its argument prototype would still apply. */
13838 char $ac_func();
13840 int main() {
13842 /* The GNU C library defines this for functions which it implements
13843 to always fail with ENOSYS. Some functions are actually named
13844 something starting with __ and the normal name is an alias. */
13845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13846 choke me
13847 #else
13848 $ac_func();
13849 #endif
13851 ; return 0; }
13853 if { (eval echo configure:13854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13854 rm -rf conftest*
13855 eval "ac_cv_func_$ac_func=yes"
13856 else
13857 echo "configure: failed program was:" >&5
13858 cat conftest.$ac_ext >&5
13859 rm -rf conftest*
13860 eval "ac_cv_func_$ac_func=no"
13862 rm -f conftest*
13865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13866 echo "$ac_t""yes" 1>&6
13867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13868 cat >> confdefs.h <<EOF
13869 #define $ac_tr_func 1
13872 else
13873 echo "$ac_t""no" 1>&6
13875 done
13882 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
13883 echo "configure:13884: checking for isinfl declaration" >&5
13884 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
13885 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
13886 echo $ac_n "(cached) $ac_c" 1>&6
13887 else
13890 ac_ext=C
13891 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13892 ac_cpp='$CXXCPP $CPPFLAGS'
13893 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13894 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13895 cross_compiling=$ac_cv_prog_cxx_cross
13897 cat > conftest.$ac_ext <<EOF
13898 #line 13899 "configure"
13899 #include "confdefs.h"
13900 #include <math.h>
13901 #ifdef HAVE_IEEEFP_H
13902 #include <ieeefp.h>
13903 #endif
13905 int main() {
13906 isinfl(0);
13907 ; return 0; }
13909 if { (eval echo configure:13910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13910 rm -rf conftest*
13911 glibcpp_cv_func_isinfl_use=yes
13912 else
13913 echo "configure: failed program was:" >&5
13914 cat conftest.$ac_ext >&5
13915 rm -rf conftest*
13916 glibcpp_cv_func_isinfl_use=no
13918 rm -f conftest*
13919 ac_ext=c
13920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13921 ac_cpp='$CPP $CPPFLAGS'
13922 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13923 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13924 cross_compiling=$ac_cv_prog_cc_cross
13930 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
13932 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
13933 for ac_func in isinfl
13935 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13936 echo "configure:13937: checking for $ac_func" >&5
13937 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13938 echo $ac_n "(cached) $ac_c" 1>&6
13939 else
13940 cat > conftest.$ac_ext <<EOF
13941 #line 13942 "configure"
13942 #include "confdefs.h"
13943 /* System header to define __stub macros and hopefully few prototypes,
13944 which can conflict with char $ac_func(); below. */
13945 #include <assert.h>
13946 /* Override any gcc2 internal prototype to avoid an error. */
13947 /* We use char because int might match the return type of a gcc2
13948 builtin and then its argument prototype would still apply. */
13949 char $ac_func();
13951 int main() {
13953 /* The GNU C library defines this for functions which it implements
13954 to always fail with ENOSYS. Some functions are actually named
13955 something starting with __ and the normal name is an alias. */
13956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13957 choke me
13958 #else
13959 $ac_func();
13960 #endif
13962 ; return 0; }
13964 if { (eval echo configure:13965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13965 rm -rf conftest*
13966 eval "ac_cv_func_$ac_func=yes"
13967 else
13968 echo "configure: failed program was:" >&5
13969 cat conftest.$ac_ext >&5
13970 rm -rf conftest*
13971 eval "ac_cv_func_$ac_func=no"
13973 rm -f conftest*
13976 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13977 echo "$ac_t""yes" 1>&6
13978 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13979 cat >> confdefs.h <<EOF
13980 #define $ac_tr_func 1
13983 else
13984 echo "$ac_t""no" 1>&6
13986 done
13988 else
13990 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
13991 echo "configure:13992: checking for _isinfl declaration" >&5
13992 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
13993 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
13994 echo $ac_n "(cached) $ac_c" 1>&6
13995 else
13998 ac_ext=C
13999 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14000 ac_cpp='$CXXCPP $CPPFLAGS'
14001 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14002 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14003 cross_compiling=$ac_cv_prog_cxx_cross
14005 cat > conftest.$ac_ext <<EOF
14006 #line 14007 "configure"
14007 #include "confdefs.h"
14008 #include <math.h>
14009 #ifdef HAVE_IEEEFP_H
14010 #include <ieeefp.h>
14011 #endif
14013 int main() {
14014 _isinfl(0);
14015 ; return 0; }
14017 if { (eval echo configure:14018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14018 rm -rf conftest*
14019 glibcpp_cv_func__isinfl_use=yes
14020 else
14021 echo "configure: failed program was:" >&5
14022 cat conftest.$ac_ext >&5
14023 rm -rf conftest*
14024 glibcpp_cv_func__isinfl_use=no
14026 rm -f conftest*
14027 ac_ext=c
14028 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14029 ac_cpp='$CPP $CPPFLAGS'
14030 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14031 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14032 cross_compiling=$ac_cv_prog_cc_cross
14038 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
14040 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
14041 for ac_func in _isinfl
14043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14044 echo "configure:14045: checking for $ac_func" >&5
14045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14046 echo $ac_n "(cached) $ac_c" 1>&6
14047 else
14048 cat > conftest.$ac_ext <<EOF
14049 #line 14050 "configure"
14050 #include "confdefs.h"
14051 /* System header to define __stub macros and hopefully few prototypes,
14052 which can conflict with char $ac_func(); below. */
14053 #include <assert.h>
14054 /* Override any gcc2 internal prototype to avoid an error. */
14055 /* We use char because int might match the return type of a gcc2
14056 builtin and then its argument prototype would still apply. */
14057 char $ac_func();
14059 int main() {
14061 /* The GNU C library defines this for functions which it implements
14062 to always fail with ENOSYS. Some functions are actually named
14063 something starting with __ and the normal name is an alias. */
14064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14065 choke me
14066 #else
14067 $ac_func();
14068 #endif
14070 ; return 0; }
14072 if { (eval echo configure:14073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14073 rm -rf conftest*
14074 eval "ac_cv_func_$ac_func=yes"
14075 else
14076 echo "configure: failed program was:" >&5
14077 cat conftest.$ac_ext >&5
14078 rm -rf conftest*
14079 eval "ac_cv_func_$ac_func=no"
14081 rm -f conftest*
14084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14085 echo "$ac_t""yes" 1>&6
14086 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14087 cat >> confdefs.h <<EOF
14088 #define $ac_tr_func 1
14091 else
14092 echo "$ac_t""no" 1>&6
14094 done
14101 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
14102 echo "configure:14103: checking for copysignl declaration" >&5
14103 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
14104 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
14105 echo $ac_n "(cached) $ac_c" 1>&6
14106 else
14109 ac_ext=C
14110 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14111 ac_cpp='$CXXCPP $CPPFLAGS'
14112 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14113 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14114 cross_compiling=$ac_cv_prog_cxx_cross
14116 cat > conftest.$ac_ext <<EOF
14117 #line 14118 "configure"
14118 #include "confdefs.h"
14119 #include <math.h>
14120 int main() {
14121 copysignl(0, 0);
14122 ; return 0; }
14124 if { (eval echo configure:14125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14125 rm -rf conftest*
14126 glibcpp_cv_func_copysignl_use=yes
14127 else
14128 echo "configure: failed program was:" >&5
14129 cat conftest.$ac_ext >&5
14130 rm -rf conftest*
14131 glibcpp_cv_func_copysignl_use=no
14133 rm -f conftest*
14134 ac_ext=c
14135 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14136 ac_cpp='$CPP $CPPFLAGS'
14137 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14138 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14139 cross_compiling=$ac_cv_prog_cc_cross
14145 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
14147 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
14148 for ac_func in copysignl
14150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14151 echo "configure:14152: checking for $ac_func" >&5
14152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14153 echo $ac_n "(cached) $ac_c" 1>&6
14154 else
14155 cat > conftest.$ac_ext <<EOF
14156 #line 14157 "configure"
14157 #include "confdefs.h"
14158 /* System header to define __stub macros and hopefully few prototypes,
14159 which can conflict with char $ac_func(); below. */
14160 #include <assert.h>
14161 /* Override any gcc2 internal prototype to avoid an error. */
14162 /* We use char because int might match the return type of a gcc2
14163 builtin and then its argument prototype would still apply. */
14164 char $ac_func();
14166 int main() {
14168 /* The GNU C library defines this for functions which it implements
14169 to always fail with ENOSYS. Some functions are actually named
14170 something starting with __ and the normal name is an alias. */
14171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14172 choke me
14173 #else
14174 $ac_func();
14175 #endif
14177 ; return 0; }
14179 if { (eval echo configure:14180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14180 rm -rf conftest*
14181 eval "ac_cv_func_$ac_func=yes"
14182 else
14183 echo "configure: failed program was:" >&5
14184 cat conftest.$ac_ext >&5
14185 rm -rf conftest*
14186 eval "ac_cv_func_$ac_func=no"
14188 rm -f conftest*
14191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14192 echo "$ac_t""yes" 1>&6
14193 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14194 cat >> confdefs.h <<EOF
14195 #define $ac_tr_func 1
14198 else
14199 echo "$ac_t""no" 1>&6
14201 done
14203 else
14205 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
14206 echo "configure:14207: checking for _copysignl declaration" >&5
14207 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
14208 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
14209 echo $ac_n "(cached) $ac_c" 1>&6
14210 else
14213 ac_ext=C
14214 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14215 ac_cpp='$CXXCPP $CPPFLAGS'
14216 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14217 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14218 cross_compiling=$ac_cv_prog_cxx_cross
14220 cat > conftest.$ac_ext <<EOF
14221 #line 14222 "configure"
14222 #include "confdefs.h"
14223 #include <math.h>
14224 int main() {
14225 _copysignl(0, 0);
14226 ; return 0; }
14228 if { (eval echo configure:14229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14229 rm -rf conftest*
14230 glibcpp_cv_func__copysignl_use=yes
14231 else
14232 echo "configure: failed program was:" >&5
14233 cat conftest.$ac_ext >&5
14234 rm -rf conftest*
14235 glibcpp_cv_func__copysignl_use=no
14237 rm -f conftest*
14238 ac_ext=c
14239 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14240 ac_cpp='$CPP $CPPFLAGS'
14241 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14242 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14243 cross_compiling=$ac_cv_prog_cc_cross
14249 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
14251 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
14252 for ac_func in _copysignl
14254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14255 echo "configure:14256: checking for $ac_func" >&5
14256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14257 echo $ac_n "(cached) $ac_c" 1>&6
14258 else
14259 cat > conftest.$ac_ext <<EOF
14260 #line 14261 "configure"
14261 #include "confdefs.h"
14262 /* System header to define __stub macros and hopefully few prototypes,
14263 which can conflict with char $ac_func(); below. */
14264 #include <assert.h>
14265 /* Override any gcc2 internal prototype to avoid an error. */
14266 /* We use char because int might match the return type of a gcc2
14267 builtin and then its argument prototype would still apply. */
14268 char $ac_func();
14270 int main() {
14272 /* The GNU C library defines this for functions which it implements
14273 to always fail with ENOSYS. Some functions are actually named
14274 something starting with __ and the normal name is an alias. */
14275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14276 choke me
14277 #else
14278 $ac_func();
14279 #endif
14281 ; return 0; }
14283 if { (eval echo configure:14284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14284 rm -rf conftest*
14285 eval "ac_cv_func_$ac_func=yes"
14286 else
14287 echo "configure: failed program was:" >&5
14288 cat conftest.$ac_ext >&5
14289 rm -rf conftest*
14290 eval "ac_cv_func_$ac_func=no"
14292 rm -f conftest*
14295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14296 echo "$ac_t""yes" 1>&6
14297 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14298 cat >> confdefs.h <<EOF
14299 #define $ac_tr_func 1
14302 else
14303 echo "$ac_t""no" 1>&6
14305 done
14312 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
14313 echo "configure:14314: checking for atan2l declaration" >&5
14314 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
14315 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
14316 echo $ac_n "(cached) $ac_c" 1>&6
14317 else
14320 ac_ext=C
14321 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14322 ac_cpp='$CXXCPP $CPPFLAGS'
14323 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14324 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14325 cross_compiling=$ac_cv_prog_cxx_cross
14327 cat > conftest.$ac_ext <<EOF
14328 #line 14329 "configure"
14329 #include "confdefs.h"
14330 #include <math.h>
14331 int main() {
14332 atan2l(0, 0);
14333 ; return 0; }
14335 if { (eval echo configure:14336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14336 rm -rf conftest*
14337 glibcpp_cv_func_atan2l_use=yes
14338 else
14339 echo "configure: failed program was:" >&5
14340 cat conftest.$ac_ext >&5
14341 rm -rf conftest*
14342 glibcpp_cv_func_atan2l_use=no
14344 rm -f conftest*
14345 ac_ext=c
14346 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14347 ac_cpp='$CPP $CPPFLAGS'
14348 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14349 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14350 cross_compiling=$ac_cv_prog_cc_cross
14356 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
14358 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
14359 for ac_func in atan2l
14361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14362 echo "configure:14363: checking for $ac_func" >&5
14363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14364 echo $ac_n "(cached) $ac_c" 1>&6
14365 else
14366 cat > conftest.$ac_ext <<EOF
14367 #line 14368 "configure"
14368 #include "confdefs.h"
14369 /* System header to define __stub macros and hopefully few prototypes,
14370 which can conflict with char $ac_func(); below. */
14371 #include <assert.h>
14372 /* Override any gcc2 internal prototype to avoid an error. */
14373 /* We use char because int might match the return type of a gcc2
14374 builtin and then its argument prototype would still apply. */
14375 char $ac_func();
14377 int main() {
14379 /* The GNU C library defines this for functions which it implements
14380 to always fail with ENOSYS. Some functions are actually named
14381 something starting with __ and the normal name is an alias. */
14382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14383 choke me
14384 #else
14385 $ac_func();
14386 #endif
14388 ; return 0; }
14390 if { (eval echo configure:14391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14391 rm -rf conftest*
14392 eval "ac_cv_func_$ac_func=yes"
14393 else
14394 echo "configure: failed program was:" >&5
14395 cat conftest.$ac_ext >&5
14396 rm -rf conftest*
14397 eval "ac_cv_func_$ac_func=no"
14399 rm -f conftest*
14402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14403 echo "$ac_t""yes" 1>&6
14404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14405 cat >> confdefs.h <<EOF
14406 #define $ac_tr_func 1
14409 else
14410 echo "$ac_t""no" 1>&6
14412 done
14414 else
14416 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
14417 echo "configure:14418: checking for _atan2l declaration" >&5
14418 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
14419 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
14420 echo $ac_n "(cached) $ac_c" 1>&6
14421 else
14424 ac_ext=C
14425 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14426 ac_cpp='$CXXCPP $CPPFLAGS'
14427 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14428 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14429 cross_compiling=$ac_cv_prog_cxx_cross
14431 cat > conftest.$ac_ext <<EOF
14432 #line 14433 "configure"
14433 #include "confdefs.h"
14434 #include <math.h>
14435 int main() {
14436 _atan2l(0, 0);
14437 ; return 0; }
14439 if { (eval echo configure:14440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14440 rm -rf conftest*
14441 glibcpp_cv_func__atan2l_use=yes
14442 else
14443 echo "configure: failed program was:" >&5
14444 cat conftest.$ac_ext >&5
14445 rm -rf conftest*
14446 glibcpp_cv_func__atan2l_use=no
14448 rm -f conftest*
14449 ac_ext=c
14450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14451 ac_cpp='$CPP $CPPFLAGS'
14452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14454 cross_compiling=$ac_cv_prog_cc_cross
14460 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
14462 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
14463 for ac_func in _atan2l
14465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14466 echo "configure:14467: checking for $ac_func" >&5
14467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14468 echo $ac_n "(cached) $ac_c" 1>&6
14469 else
14470 cat > conftest.$ac_ext <<EOF
14471 #line 14472 "configure"
14472 #include "confdefs.h"
14473 /* System header to define __stub macros and hopefully few prototypes,
14474 which can conflict with char $ac_func(); below. */
14475 #include <assert.h>
14476 /* Override any gcc2 internal prototype to avoid an error. */
14477 /* We use char because int might match the return type of a gcc2
14478 builtin and then its argument prototype would still apply. */
14479 char $ac_func();
14481 int main() {
14483 /* The GNU C library defines this for functions which it implements
14484 to always fail with ENOSYS. Some functions are actually named
14485 something starting with __ and the normal name is an alias. */
14486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14487 choke me
14488 #else
14489 $ac_func();
14490 #endif
14492 ; return 0; }
14494 if { (eval echo configure:14495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14495 rm -rf conftest*
14496 eval "ac_cv_func_$ac_func=yes"
14497 else
14498 echo "configure: failed program was:" >&5
14499 cat conftest.$ac_ext >&5
14500 rm -rf conftest*
14501 eval "ac_cv_func_$ac_func=no"
14503 rm -f conftest*
14506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14507 echo "$ac_t""yes" 1>&6
14508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14509 cat >> confdefs.h <<EOF
14510 #define $ac_tr_func 1
14513 else
14514 echo "$ac_t""no" 1>&6
14516 done
14523 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
14524 echo "configure:14525: checking for expl declaration" >&5
14525 if test x${glibcpp_cv_func_expl_use+set} != xset; then
14526 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
14527 echo $ac_n "(cached) $ac_c" 1>&6
14528 else
14531 ac_ext=C
14532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14533 ac_cpp='$CXXCPP $CPPFLAGS'
14534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14536 cross_compiling=$ac_cv_prog_cxx_cross
14538 cat > conftest.$ac_ext <<EOF
14539 #line 14540 "configure"
14540 #include "confdefs.h"
14541 #include <math.h>
14542 #ifdef HAVE_IEEEFP_H
14543 #include <ieeefp.h>
14544 #endif
14546 int main() {
14547 expl(0);
14548 ; return 0; }
14550 if { (eval echo configure:14551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14551 rm -rf conftest*
14552 glibcpp_cv_func_expl_use=yes
14553 else
14554 echo "configure: failed program was:" >&5
14555 cat conftest.$ac_ext >&5
14556 rm -rf conftest*
14557 glibcpp_cv_func_expl_use=no
14559 rm -f conftest*
14560 ac_ext=c
14561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14562 ac_cpp='$CPP $CPPFLAGS'
14563 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14564 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14565 cross_compiling=$ac_cv_prog_cc_cross
14571 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
14573 if test x$glibcpp_cv_func_expl_use = x"yes"; then
14574 for ac_func in expl
14576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14577 echo "configure:14578: checking for $ac_func" >&5
14578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14579 echo $ac_n "(cached) $ac_c" 1>&6
14580 else
14581 cat > conftest.$ac_ext <<EOF
14582 #line 14583 "configure"
14583 #include "confdefs.h"
14584 /* System header to define __stub macros and hopefully few prototypes,
14585 which can conflict with char $ac_func(); below. */
14586 #include <assert.h>
14587 /* Override any gcc2 internal prototype to avoid an error. */
14588 /* We use char because int might match the return type of a gcc2
14589 builtin and then its argument prototype would still apply. */
14590 char $ac_func();
14592 int main() {
14594 /* The GNU C library defines this for functions which it implements
14595 to always fail with ENOSYS. Some functions are actually named
14596 something starting with __ and the normal name is an alias. */
14597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14598 choke me
14599 #else
14600 $ac_func();
14601 #endif
14603 ; return 0; }
14605 if { (eval echo configure:14606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14606 rm -rf conftest*
14607 eval "ac_cv_func_$ac_func=yes"
14608 else
14609 echo "configure: failed program was:" >&5
14610 cat conftest.$ac_ext >&5
14611 rm -rf conftest*
14612 eval "ac_cv_func_$ac_func=no"
14614 rm -f conftest*
14617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14618 echo "$ac_t""yes" 1>&6
14619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14620 cat >> confdefs.h <<EOF
14621 #define $ac_tr_func 1
14624 else
14625 echo "$ac_t""no" 1>&6
14627 done
14629 else
14631 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
14632 echo "configure:14633: checking for _expl declaration" >&5
14633 if test x${glibcpp_cv_func__expl_use+set} != xset; then
14634 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
14635 echo $ac_n "(cached) $ac_c" 1>&6
14636 else
14639 ac_ext=C
14640 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14641 ac_cpp='$CXXCPP $CPPFLAGS'
14642 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14643 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14644 cross_compiling=$ac_cv_prog_cxx_cross
14646 cat > conftest.$ac_ext <<EOF
14647 #line 14648 "configure"
14648 #include "confdefs.h"
14649 #include <math.h>
14650 #ifdef HAVE_IEEEFP_H
14651 #include <ieeefp.h>
14652 #endif
14654 int main() {
14655 _expl(0);
14656 ; return 0; }
14658 if { (eval echo configure:14659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14659 rm -rf conftest*
14660 glibcpp_cv_func__expl_use=yes
14661 else
14662 echo "configure: failed program was:" >&5
14663 cat conftest.$ac_ext >&5
14664 rm -rf conftest*
14665 glibcpp_cv_func__expl_use=no
14667 rm -f conftest*
14668 ac_ext=c
14669 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14670 ac_cpp='$CPP $CPPFLAGS'
14671 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14672 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14673 cross_compiling=$ac_cv_prog_cc_cross
14679 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
14681 if test x$glibcpp_cv_func__expl_use = x"yes"; then
14682 for ac_func in _expl
14684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14685 echo "configure:14686: checking for $ac_func" >&5
14686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14687 echo $ac_n "(cached) $ac_c" 1>&6
14688 else
14689 cat > conftest.$ac_ext <<EOF
14690 #line 14691 "configure"
14691 #include "confdefs.h"
14692 /* System header to define __stub macros and hopefully few prototypes,
14693 which can conflict with char $ac_func(); below. */
14694 #include <assert.h>
14695 /* Override any gcc2 internal prototype to avoid an error. */
14696 /* We use char because int might match the return type of a gcc2
14697 builtin and then its argument prototype would still apply. */
14698 char $ac_func();
14700 int main() {
14702 /* The GNU C library defines this for functions which it implements
14703 to always fail with ENOSYS. Some functions are actually named
14704 something starting with __ and the normal name is an alias. */
14705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14706 choke me
14707 #else
14708 $ac_func();
14709 #endif
14711 ; return 0; }
14713 if { (eval echo configure:14714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14714 rm -rf conftest*
14715 eval "ac_cv_func_$ac_func=yes"
14716 else
14717 echo "configure: failed program was:" >&5
14718 cat conftest.$ac_ext >&5
14719 rm -rf conftest*
14720 eval "ac_cv_func_$ac_func=no"
14722 rm -f conftest*
14725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14726 echo "$ac_t""yes" 1>&6
14727 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14728 cat >> confdefs.h <<EOF
14729 #define $ac_tr_func 1
14732 else
14733 echo "$ac_t""no" 1>&6
14735 done
14742 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
14743 echo "configure:14744: checking for fabsl declaration" >&5
14744 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
14745 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
14746 echo $ac_n "(cached) $ac_c" 1>&6
14747 else
14750 ac_ext=C
14751 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14752 ac_cpp='$CXXCPP $CPPFLAGS'
14753 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14754 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14755 cross_compiling=$ac_cv_prog_cxx_cross
14757 cat > conftest.$ac_ext <<EOF
14758 #line 14759 "configure"
14759 #include "confdefs.h"
14760 #include <math.h>
14761 #ifdef HAVE_IEEEFP_H
14762 #include <ieeefp.h>
14763 #endif
14765 int main() {
14766 fabsl(0);
14767 ; return 0; }
14769 if { (eval echo configure:14770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14770 rm -rf conftest*
14771 glibcpp_cv_func_fabsl_use=yes
14772 else
14773 echo "configure: failed program was:" >&5
14774 cat conftest.$ac_ext >&5
14775 rm -rf conftest*
14776 glibcpp_cv_func_fabsl_use=no
14778 rm -f conftest*
14779 ac_ext=c
14780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14781 ac_cpp='$CPP $CPPFLAGS'
14782 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14783 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14784 cross_compiling=$ac_cv_prog_cc_cross
14790 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
14792 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
14793 for ac_func in fabsl
14795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14796 echo "configure:14797: checking for $ac_func" >&5
14797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14798 echo $ac_n "(cached) $ac_c" 1>&6
14799 else
14800 cat > conftest.$ac_ext <<EOF
14801 #line 14802 "configure"
14802 #include "confdefs.h"
14803 /* System header to define __stub macros and hopefully few prototypes,
14804 which can conflict with char $ac_func(); below. */
14805 #include <assert.h>
14806 /* Override any gcc2 internal prototype to avoid an error. */
14807 /* We use char because int might match the return type of a gcc2
14808 builtin and then its argument prototype would still apply. */
14809 char $ac_func();
14811 int main() {
14813 /* The GNU C library defines this for functions which it implements
14814 to always fail with ENOSYS. Some functions are actually named
14815 something starting with __ and the normal name is an alias. */
14816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14817 choke me
14818 #else
14819 $ac_func();
14820 #endif
14822 ; return 0; }
14824 if { (eval echo configure:14825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14825 rm -rf conftest*
14826 eval "ac_cv_func_$ac_func=yes"
14827 else
14828 echo "configure: failed program was:" >&5
14829 cat conftest.$ac_ext >&5
14830 rm -rf conftest*
14831 eval "ac_cv_func_$ac_func=no"
14833 rm -f conftest*
14836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14837 echo "$ac_t""yes" 1>&6
14838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14839 cat >> confdefs.h <<EOF
14840 #define $ac_tr_func 1
14843 else
14844 echo "$ac_t""no" 1>&6
14846 done
14848 else
14850 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
14851 echo "configure:14852: checking for _fabsl declaration" >&5
14852 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
14853 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
14854 echo $ac_n "(cached) $ac_c" 1>&6
14855 else
14858 ac_ext=C
14859 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14860 ac_cpp='$CXXCPP $CPPFLAGS'
14861 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14862 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14863 cross_compiling=$ac_cv_prog_cxx_cross
14865 cat > conftest.$ac_ext <<EOF
14866 #line 14867 "configure"
14867 #include "confdefs.h"
14868 #include <math.h>
14869 #ifdef HAVE_IEEEFP_H
14870 #include <ieeefp.h>
14871 #endif
14873 int main() {
14874 _fabsl(0);
14875 ; return 0; }
14877 if { (eval echo configure:14878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14878 rm -rf conftest*
14879 glibcpp_cv_func__fabsl_use=yes
14880 else
14881 echo "configure: failed program was:" >&5
14882 cat conftest.$ac_ext >&5
14883 rm -rf conftest*
14884 glibcpp_cv_func__fabsl_use=no
14886 rm -f conftest*
14887 ac_ext=c
14888 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14889 ac_cpp='$CPP $CPPFLAGS'
14890 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14891 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14892 cross_compiling=$ac_cv_prog_cc_cross
14898 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
14900 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
14901 for ac_func in _fabsl
14903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14904 echo "configure:14905: checking for $ac_func" >&5
14905 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14906 echo $ac_n "(cached) $ac_c" 1>&6
14907 else
14908 cat > conftest.$ac_ext <<EOF
14909 #line 14910 "configure"
14910 #include "confdefs.h"
14911 /* System header to define __stub macros and hopefully few prototypes,
14912 which can conflict with char $ac_func(); below. */
14913 #include <assert.h>
14914 /* Override any gcc2 internal prototype to avoid an error. */
14915 /* We use char because int might match the return type of a gcc2
14916 builtin and then its argument prototype would still apply. */
14917 char $ac_func();
14919 int main() {
14921 /* The GNU C library defines this for functions which it implements
14922 to always fail with ENOSYS. Some functions are actually named
14923 something starting with __ and the normal name is an alias. */
14924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14925 choke me
14926 #else
14927 $ac_func();
14928 #endif
14930 ; return 0; }
14932 if { (eval echo configure:14933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14933 rm -rf conftest*
14934 eval "ac_cv_func_$ac_func=yes"
14935 else
14936 echo "configure: failed program was:" >&5
14937 cat conftest.$ac_ext >&5
14938 rm -rf conftest*
14939 eval "ac_cv_func_$ac_func=no"
14941 rm -f conftest*
14944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14945 echo "$ac_t""yes" 1>&6
14946 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14947 cat >> confdefs.h <<EOF
14948 #define $ac_tr_func 1
14951 else
14952 echo "$ac_t""no" 1>&6
14954 done
14961 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
14962 echo "configure:14963: checking for fmodl declaration" >&5
14963 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
14964 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
14965 echo $ac_n "(cached) $ac_c" 1>&6
14966 else
14969 ac_ext=C
14970 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14971 ac_cpp='$CXXCPP $CPPFLAGS'
14972 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14973 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14974 cross_compiling=$ac_cv_prog_cxx_cross
14976 cat > conftest.$ac_ext <<EOF
14977 #line 14978 "configure"
14978 #include "confdefs.h"
14979 #include <math.h>
14980 int main() {
14981 fmodl(0, 0);
14982 ; return 0; }
14984 if { (eval echo configure:14985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14985 rm -rf conftest*
14986 glibcpp_cv_func_fmodl_use=yes
14987 else
14988 echo "configure: failed program was:" >&5
14989 cat conftest.$ac_ext >&5
14990 rm -rf conftest*
14991 glibcpp_cv_func_fmodl_use=no
14993 rm -f conftest*
14994 ac_ext=c
14995 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14996 ac_cpp='$CPP $CPPFLAGS'
14997 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14998 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14999 cross_compiling=$ac_cv_prog_cc_cross
15005 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
15007 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
15008 for ac_func in fmodl
15010 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15011 echo "configure:15012: checking for $ac_func" >&5
15012 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15013 echo $ac_n "(cached) $ac_c" 1>&6
15014 else
15015 cat > conftest.$ac_ext <<EOF
15016 #line 15017 "configure"
15017 #include "confdefs.h"
15018 /* System header to define __stub macros and hopefully few prototypes,
15019 which can conflict with char $ac_func(); below. */
15020 #include <assert.h>
15021 /* Override any gcc2 internal prototype to avoid an error. */
15022 /* We use char because int might match the return type of a gcc2
15023 builtin and then its argument prototype would still apply. */
15024 char $ac_func();
15026 int main() {
15028 /* The GNU C library defines this for functions which it implements
15029 to always fail with ENOSYS. Some functions are actually named
15030 something starting with __ and the normal name is an alias. */
15031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15032 choke me
15033 #else
15034 $ac_func();
15035 #endif
15037 ; return 0; }
15039 if { (eval echo configure:15040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15040 rm -rf conftest*
15041 eval "ac_cv_func_$ac_func=yes"
15042 else
15043 echo "configure: failed program was:" >&5
15044 cat conftest.$ac_ext >&5
15045 rm -rf conftest*
15046 eval "ac_cv_func_$ac_func=no"
15048 rm -f conftest*
15051 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15052 echo "$ac_t""yes" 1>&6
15053 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15054 cat >> confdefs.h <<EOF
15055 #define $ac_tr_func 1
15058 else
15059 echo "$ac_t""no" 1>&6
15061 done
15063 else
15065 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
15066 echo "configure:15067: checking for _fmodl declaration" >&5
15067 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
15068 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
15069 echo $ac_n "(cached) $ac_c" 1>&6
15070 else
15073 ac_ext=C
15074 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15075 ac_cpp='$CXXCPP $CPPFLAGS'
15076 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15077 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15078 cross_compiling=$ac_cv_prog_cxx_cross
15080 cat > conftest.$ac_ext <<EOF
15081 #line 15082 "configure"
15082 #include "confdefs.h"
15083 #include <math.h>
15084 int main() {
15085 _fmodl(0, 0);
15086 ; return 0; }
15088 if { (eval echo configure:15089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15089 rm -rf conftest*
15090 glibcpp_cv_func__fmodl_use=yes
15091 else
15092 echo "configure: failed program was:" >&5
15093 cat conftest.$ac_ext >&5
15094 rm -rf conftest*
15095 glibcpp_cv_func__fmodl_use=no
15097 rm -f conftest*
15098 ac_ext=c
15099 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15100 ac_cpp='$CPP $CPPFLAGS'
15101 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15102 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15103 cross_compiling=$ac_cv_prog_cc_cross
15109 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
15111 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
15112 for ac_func in _fmodl
15114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15115 echo "configure:15116: checking for $ac_func" >&5
15116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15117 echo $ac_n "(cached) $ac_c" 1>&6
15118 else
15119 cat > conftest.$ac_ext <<EOF
15120 #line 15121 "configure"
15121 #include "confdefs.h"
15122 /* System header to define __stub macros and hopefully few prototypes,
15123 which can conflict with char $ac_func(); below. */
15124 #include <assert.h>
15125 /* Override any gcc2 internal prototype to avoid an error. */
15126 /* We use char because int might match the return type of a gcc2
15127 builtin and then its argument prototype would still apply. */
15128 char $ac_func();
15130 int main() {
15132 /* The GNU C library defines this for functions which it implements
15133 to always fail with ENOSYS. Some functions are actually named
15134 something starting with __ and the normal name is an alias. */
15135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15136 choke me
15137 #else
15138 $ac_func();
15139 #endif
15141 ; return 0; }
15143 if { (eval echo configure:15144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15144 rm -rf conftest*
15145 eval "ac_cv_func_$ac_func=yes"
15146 else
15147 echo "configure: failed program was:" >&5
15148 cat conftest.$ac_ext >&5
15149 rm -rf conftest*
15150 eval "ac_cv_func_$ac_func=no"
15152 rm -f conftest*
15155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15156 echo "$ac_t""yes" 1>&6
15157 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15158 cat >> confdefs.h <<EOF
15159 #define $ac_tr_func 1
15162 else
15163 echo "$ac_t""no" 1>&6
15165 done
15172 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
15173 echo "configure:15174: checking for frexpl declaration" >&5
15174 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
15175 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
15176 echo $ac_n "(cached) $ac_c" 1>&6
15177 else
15180 ac_ext=C
15181 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15182 ac_cpp='$CXXCPP $CPPFLAGS'
15183 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15184 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15185 cross_compiling=$ac_cv_prog_cxx_cross
15187 cat > conftest.$ac_ext <<EOF
15188 #line 15189 "configure"
15189 #include "confdefs.h"
15190 #include <math.h>
15191 int main() {
15192 frexpl(0, 0);
15193 ; return 0; }
15195 if { (eval echo configure:15196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15196 rm -rf conftest*
15197 glibcpp_cv_func_frexpl_use=yes
15198 else
15199 echo "configure: failed program was:" >&5
15200 cat conftest.$ac_ext >&5
15201 rm -rf conftest*
15202 glibcpp_cv_func_frexpl_use=no
15204 rm -f conftest*
15205 ac_ext=c
15206 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15207 ac_cpp='$CPP $CPPFLAGS'
15208 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15209 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15210 cross_compiling=$ac_cv_prog_cc_cross
15216 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
15218 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
15219 for ac_func in frexpl
15221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15222 echo "configure:15223: checking for $ac_func" >&5
15223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15224 echo $ac_n "(cached) $ac_c" 1>&6
15225 else
15226 cat > conftest.$ac_ext <<EOF
15227 #line 15228 "configure"
15228 #include "confdefs.h"
15229 /* System header to define __stub macros and hopefully few prototypes,
15230 which can conflict with char $ac_func(); below. */
15231 #include <assert.h>
15232 /* Override any gcc2 internal prototype to avoid an error. */
15233 /* We use char because int might match the return type of a gcc2
15234 builtin and then its argument prototype would still apply. */
15235 char $ac_func();
15237 int main() {
15239 /* The GNU C library defines this for functions which it implements
15240 to always fail with ENOSYS. Some functions are actually named
15241 something starting with __ and the normal name is an alias. */
15242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15243 choke me
15244 #else
15245 $ac_func();
15246 #endif
15248 ; return 0; }
15250 if { (eval echo configure:15251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15251 rm -rf conftest*
15252 eval "ac_cv_func_$ac_func=yes"
15253 else
15254 echo "configure: failed program was:" >&5
15255 cat conftest.$ac_ext >&5
15256 rm -rf conftest*
15257 eval "ac_cv_func_$ac_func=no"
15259 rm -f conftest*
15262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15263 echo "$ac_t""yes" 1>&6
15264 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15265 cat >> confdefs.h <<EOF
15266 #define $ac_tr_func 1
15269 else
15270 echo "$ac_t""no" 1>&6
15272 done
15274 else
15276 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
15277 echo "configure:15278: checking for _frexpl declaration" >&5
15278 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
15279 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
15280 echo $ac_n "(cached) $ac_c" 1>&6
15281 else
15284 ac_ext=C
15285 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15286 ac_cpp='$CXXCPP $CPPFLAGS'
15287 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15288 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15289 cross_compiling=$ac_cv_prog_cxx_cross
15291 cat > conftest.$ac_ext <<EOF
15292 #line 15293 "configure"
15293 #include "confdefs.h"
15294 #include <math.h>
15295 int main() {
15296 _frexpl(0, 0);
15297 ; return 0; }
15299 if { (eval echo configure:15300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15300 rm -rf conftest*
15301 glibcpp_cv_func__frexpl_use=yes
15302 else
15303 echo "configure: failed program was:" >&5
15304 cat conftest.$ac_ext >&5
15305 rm -rf conftest*
15306 glibcpp_cv_func__frexpl_use=no
15308 rm -f conftest*
15309 ac_ext=c
15310 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15311 ac_cpp='$CPP $CPPFLAGS'
15312 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15313 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15314 cross_compiling=$ac_cv_prog_cc_cross
15320 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
15322 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
15323 for ac_func in _frexpl
15325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15326 echo "configure:15327: checking for $ac_func" >&5
15327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15328 echo $ac_n "(cached) $ac_c" 1>&6
15329 else
15330 cat > conftest.$ac_ext <<EOF
15331 #line 15332 "configure"
15332 #include "confdefs.h"
15333 /* System header to define __stub macros and hopefully few prototypes,
15334 which can conflict with char $ac_func(); below. */
15335 #include <assert.h>
15336 /* Override any gcc2 internal prototype to avoid an error. */
15337 /* We use char because int might match the return type of a gcc2
15338 builtin and then its argument prototype would still apply. */
15339 char $ac_func();
15341 int main() {
15343 /* The GNU C library defines this for functions which it implements
15344 to always fail with ENOSYS. Some functions are actually named
15345 something starting with __ and the normal name is an alias. */
15346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15347 choke me
15348 #else
15349 $ac_func();
15350 #endif
15352 ; return 0; }
15354 if { (eval echo configure:15355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15355 rm -rf conftest*
15356 eval "ac_cv_func_$ac_func=yes"
15357 else
15358 echo "configure: failed program was:" >&5
15359 cat conftest.$ac_ext >&5
15360 rm -rf conftest*
15361 eval "ac_cv_func_$ac_func=no"
15363 rm -f conftest*
15366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15367 echo "$ac_t""yes" 1>&6
15368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15369 cat >> confdefs.h <<EOF
15370 #define $ac_tr_func 1
15373 else
15374 echo "$ac_t""no" 1>&6
15376 done
15383 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
15384 echo "configure:15385: checking for hypotl declaration" >&5
15385 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
15386 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
15387 echo $ac_n "(cached) $ac_c" 1>&6
15388 else
15391 ac_ext=C
15392 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15393 ac_cpp='$CXXCPP $CPPFLAGS'
15394 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15395 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15396 cross_compiling=$ac_cv_prog_cxx_cross
15398 cat > conftest.$ac_ext <<EOF
15399 #line 15400 "configure"
15400 #include "confdefs.h"
15401 #include <math.h>
15402 int main() {
15403 hypotl(0, 0);
15404 ; return 0; }
15406 if { (eval echo configure:15407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15407 rm -rf conftest*
15408 glibcpp_cv_func_hypotl_use=yes
15409 else
15410 echo "configure: failed program was:" >&5
15411 cat conftest.$ac_ext >&5
15412 rm -rf conftest*
15413 glibcpp_cv_func_hypotl_use=no
15415 rm -f conftest*
15416 ac_ext=c
15417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15418 ac_cpp='$CPP $CPPFLAGS'
15419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15421 cross_compiling=$ac_cv_prog_cc_cross
15427 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
15429 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
15430 for ac_func in hypotl
15432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15433 echo "configure:15434: checking for $ac_func" >&5
15434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15435 echo $ac_n "(cached) $ac_c" 1>&6
15436 else
15437 cat > conftest.$ac_ext <<EOF
15438 #line 15439 "configure"
15439 #include "confdefs.h"
15440 /* System header to define __stub macros and hopefully few prototypes,
15441 which can conflict with char $ac_func(); below. */
15442 #include <assert.h>
15443 /* Override any gcc2 internal prototype to avoid an error. */
15444 /* We use char because int might match the return type of a gcc2
15445 builtin and then its argument prototype would still apply. */
15446 char $ac_func();
15448 int main() {
15450 /* The GNU C library defines this for functions which it implements
15451 to always fail with ENOSYS. Some functions are actually named
15452 something starting with __ and the normal name is an alias. */
15453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15454 choke me
15455 #else
15456 $ac_func();
15457 #endif
15459 ; return 0; }
15461 if { (eval echo configure:15462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15462 rm -rf conftest*
15463 eval "ac_cv_func_$ac_func=yes"
15464 else
15465 echo "configure: failed program was:" >&5
15466 cat conftest.$ac_ext >&5
15467 rm -rf conftest*
15468 eval "ac_cv_func_$ac_func=no"
15470 rm -f conftest*
15473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15474 echo "$ac_t""yes" 1>&6
15475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15476 cat >> confdefs.h <<EOF
15477 #define $ac_tr_func 1
15480 else
15481 echo "$ac_t""no" 1>&6
15483 done
15485 else
15487 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
15488 echo "configure:15489: checking for _hypotl declaration" >&5
15489 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
15490 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
15491 echo $ac_n "(cached) $ac_c" 1>&6
15492 else
15495 ac_ext=C
15496 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15497 ac_cpp='$CXXCPP $CPPFLAGS'
15498 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15499 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15500 cross_compiling=$ac_cv_prog_cxx_cross
15502 cat > conftest.$ac_ext <<EOF
15503 #line 15504 "configure"
15504 #include "confdefs.h"
15505 #include <math.h>
15506 int main() {
15507 _hypotl(0, 0);
15508 ; return 0; }
15510 if { (eval echo configure:15511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15511 rm -rf conftest*
15512 glibcpp_cv_func__hypotl_use=yes
15513 else
15514 echo "configure: failed program was:" >&5
15515 cat conftest.$ac_ext >&5
15516 rm -rf conftest*
15517 glibcpp_cv_func__hypotl_use=no
15519 rm -f conftest*
15520 ac_ext=c
15521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15522 ac_cpp='$CPP $CPPFLAGS'
15523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15525 cross_compiling=$ac_cv_prog_cc_cross
15531 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
15533 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
15534 for ac_func in _hypotl
15536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15537 echo "configure:15538: checking for $ac_func" >&5
15538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15539 echo $ac_n "(cached) $ac_c" 1>&6
15540 else
15541 cat > conftest.$ac_ext <<EOF
15542 #line 15543 "configure"
15543 #include "confdefs.h"
15544 /* System header to define __stub macros and hopefully few prototypes,
15545 which can conflict with char $ac_func(); below. */
15546 #include <assert.h>
15547 /* Override any gcc2 internal prototype to avoid an error. */
15548 /* We use char because int might match the return type of a gcc2
15549 builtin and then its argument prototype would still apply. */
15550 char $ac_func();
15552 int main() {
15554 /* The GNU C library defines this for functions which it implements
15555 to always fail with ENOSYS. Some functions are actually named
15556 something starting with __ and the normal name is an alias. */
15557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15558 choke me
15559 #else
15560 $ac_func();
15561 #endif
15563 ; return 0; }
15565 if { (eval echo configure:15566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15566 rm -rf conftest*
15567 eval "ac_cv_func_$ac_func=yes"
15568 else
15569 echo "configure: failed program was:" >&5
15570 cat conftest.$ac_ext >&5
15571 rm -rf conftest*
15572 eval "ac_cv_func_$ac_func=no"
15574 rm -f conftest*
15577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15578 echo "$ac_t""yes" 1>&6
15579 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15580 cat >> confdefs.h <<EOF
15581 #define $ac_tr_func 1
15584 else
15585 echo "$ac_t""no" 1>&6
15587 done
15594 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
15595 echo "configure:15596: checking for ldexpl declaration" >&5
15596 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
15597 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
15598 echo $ac_n "(cached) $ac_c" 1>&6
15599 else
15602 ac_ext=C
15603 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15604 ac_cpp='$CXXCPP $CPPFLAGS'
15605 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15606 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15607 cross_compiling=$ac_cv_prog_cxx_cross
15609 cat > conftest.$ac_ext <<EOF
15610 #line 15611 "configure"
15611 #include "confdefs.h"
15612 #include <math.h>
15613 int main() {
15614 ldexpl(0, 0);
15615 ; return 0; }
15617 if { (eval echo configure:15618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15618 rm -rf conftest*
15619 glibcpp_cv_func_ldexpl_use=yes
15620 else
15621 echo "configure: failed program was:" >&5
15622 cat conftest.$ac_ext >&5
15623 rm -rf conftest*
15624 glibcpp_cv_func_ldexpl_use=no
15626 rm -f conftest*
15627 ac_ext=c
15628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15629 ac_cpp='$CPP $CPPFLAGS'
15630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15632 cross_compiling=$ac_cv_prog_cc_cross
15638 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
15640 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
15641 for ac_func in ldexpl
15643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15644 echo "configure:15645: checking for $ac_func" >&5
15645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15646 echo $ac_n "(cached) $ac_c" 1>&6
15647 else
15648 cat > conftest.$ac_ext <<EOF
15649 #line 15650 "configure"
15650 #include "confdefs.h"
15651 /* System header to define __stub macros and hopefully few prototypes,
15652 which can conflict with char $ac_func(); below. */
15653 #include <assert.h>
15654 /* Override any gcc2 internal prototype to avoid an error. */
15655 /* We use char because int might match the return type of a gcc2
15656 builtin and then its argument prototype would still apply. */
15657 char $ac_func();
15659 int main() {
15661 /* The GNU C library defines this for functions which it implements
15662 to always fail with ENOSYS. Some functions are actually named
15663 something starting with __ and the normal name is an alias. */
15664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15665 choke me
15666 #else
15667 $ac_func();
15668 #endif
15670 ; return 0; }
15672 if { (eval echo configure:15673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15673 rm -rf conftest*
15674 eval "ac_cv_func_$ac_func=yes"
15675 else
15676 echo "configure: failed program was:" >&5
15677 cat conftest.$ac_ext >&5
15678 rm -rf conftest*
15679 eval "ac_cv_func_$ac_func=no"
15681 rm -f conftest*
15684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15685 echo "$ac_t""yes" 1>&6
15686 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15687 cat >> confdefs.h <<EOF
15688 #define $ac_tr_func 1
15691 else
15692 echo "$ac_t""no" 1>&6
15694 done
15696 else
15698 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
15699 echo "configure:15700: checking for _ldexpl declaration" >&5
15700 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
15701 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
15702 echo $ac_n "(cached) $ac_c" 1>&6
15703 else
15706 ac_ext=C
15707 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15708 ac_cpp='$CXXCPP $CPPFLAGS'
15709 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15710 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15711 cross_compiling=$ac_cv_prog_cxx_cross
15713 cat > conftest.$ac_ext <<EOF
15714 #line 15715 "configure"
15715 #include "confdefs.h"
15716 #include <math.h>
15717 int main() {
15718 _ldexpl(0, 0);
15719 ; return 0; }
15721 if { (eval echo configure:15722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15722 rm -rf conftest*
15723 glibcpp_cv_func__ldexpl_use=yes
15724 else
15725 echo "configure: failed program was:" >&5
15726 cat conftest.$ac_ext >&5
15727 rm -rf conftest*
15728 glibcpp_cv_func__ldexpl_use=no
15730 rm -f conftest*
15731 ac_ext=c
15732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15733 ac_cpp='$CPP $CPPFLAGS'
15734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15736 cross_compiling=$ac_cv_prog_cc_cross
15742 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
15744 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
15745 for ac_func in _ldexpl
15747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15748 echo "configure:15749: checking for $ac_func" >&5
15749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15750 echo $ac_n "(cached) $ac_c" 1>&6
15751 else
15752 cat > conftest.$ac_ext <<EOF
15753 #line 15754 "configure"
15754 #include "confdefs.h"
15755 /* System header to define __stub macros and hopefully few prototypes,
15756 which can conflict with char $ac_func(); below. */
15757 #include <assert.h>
15758 /* Override any gcc2 internal prototype to avoid an error. */
15759 /* We use char because int might match the return type of a gcc2
15760 builtin and then its argument prototype would still apply. */
15761 char $ac_func();
15763 int main() {
15765 /* The GNU C library defines this for functions which it implements
15766 to always fail with ENOSYS. Some functions are actually named
15767 something starting with __ and the normal name is an alias. */
15768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15769 choke me
15770 #else
15771 $ac_func();
15772 #endif
15774 ; return 0; }
15776 if { (eval echo configure:15777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15777 rm -rf conftest*
15778 eval "ac_cv_func_$ac_func=yes"
15779 else
15780 echo "configure: failed program was:" >&5
15781 cat conftest.$ac_ext >&5
15782 rm -rf conftest*
15783 eval "ac_cv_func_$ac_func=no"
15785 rm -f conftest*
15788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15789 echo "$ac_t""yes" 1>&6
15790 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15791 cat >> confdefs.h <<EOF
15792 #define $ac_tr_func 1
15795 else
15796 echo "$ac_t""no" 1>&6
15798 done
15805 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
15806 echo "configure:15807: checking for logl declaration" >&5
15807 if test x${glibcpp_cv_func_logl_use+set} != xset; then
15808 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
15809 echo $ac_n "(cached) $ac_c" 1>&6
15810 else
15813 ac_ext=C
15814 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15815 ac_cpp='$CXXCPP $CPPFLAGS'
15816 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15817 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15818 cross_compiling=$ac_cv_prog_cxx_cross
15820 cat > conftest.$ac_ext <<EOF
15821 #line 15822 "configure"
15822 #include "confdefs.h"
15823 #include <math.h>
15824 #ifdef HAVE_IEEEFP_H
15825 #include <ieeefp.h>
15826 #endif
15828 int main() {
15829 logl(0);
15830 ; return 0; }
15832 if { (eval echo configure:15833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15833 rm -rf conftest*
15834 glibcpp_cv_func_logl_use=yes
15835 else
15836 echo "configure: failed program was:" >&5
15837 cat conftest.$ac_ext >&5
15838 rm -rf conftest*
15839 glibcpp_cv_func_logl_use=no
15841 rm -f conftest*
15842 ac_ext=c
15843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15844 ac_cpp='$CPP $CPPFLAGS'
15845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15846 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15847 cross_compiling=$ac_cv_prog_cc_cross
15853 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
15855 if test x$glibcpp_cv_func_logl_use = x"yes"; then
15856 for ac_func in logl
15858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15859 echo "configure:15860: checking for $ac_func" >&5
15860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15861 echo $ac_n "(cached) $ac_c" 1>&6
15862 else
15863 cat > conftest.$ac_ext <<EOF
15864 #line 15865 "configure"
15865 #include "confdefs.h"
15866 /* System header to define __stub macros and hopefully few prototypes,
15867 which can conflict with char $ac_func(); below. */
15868 #include <assert.h>
15869 /* Override any gcc2 internal prototype to avoid an error. */
15870 /* We use char because int might match the return type of a gcc2
15871 builtin and then its argument prototype would still apply. */
15872 char $ac_func();
15874 int main() {
15876 /* The GNU C library defines this for functions which it implements
15877 to always fail with ENOSYS. Some functions are actually named
15878 something starting with __ and the normal name is an alias. */
15879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15880 choke me
15881 #else
15882 $ac_func();
15883 #endif
15885 ; return 0; }
15887 if { (eval echo configure:15888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15888 rm -rf conftest*
15889 eval "ac_cv_func_$ac_func=yes"
15890 else
15891 echo "configure: failed program was:" >&5
15892 cat conftest.$ac_ext >&5
15893 rm -rf conftest*
15894 eval "ac_cv_func_$ac_func=no"
15896 rm -f conftest*
15899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15900 echo "$ac_t""yes" 1>&6
15901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15902 cat >> confdefs.h <<EOF
15903 #define $ac_tr_func 1
15906 else
15907 echo "$ac_t""no" 1>&6
15909 done
15911 else
15913 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
15914 echo "configure:15915: checking for _logl declaration" >&5
15915 if test x${glibcpp_cv_func__logl_use+set} != xset; then
15916 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
15917 echo $ac_n "(cached) $ac_c" 1>&6
15918 else
15921 ac_ext=C
15922 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15923 ac_cpp='$CXXCPP $CPPFLAGS'
15924 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15925 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15926 cross_compiling=$ac_cv_prog_cxx_cross
15928 cat > conftest.$ac_ext <<EOF
15929 #line 15930 "configure"
15930 #include "confdefs.h"
15931 #include <math.h>
15932 #ifdef HAVE_IEEEFP_H
15933 #include <ieeefp.h>
15934 #endif
15936 int main() {
15937 _logl(0);
15938 ; return 0; }
15940 if { (eval echo configure:15941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15941 rm -rf conftest*
15942 glibcpp_cv_func__logl_use=yes
15943 else
15944 echo "configure: failed program was:" >&5
15945 cat conftest.$ac_ext >&5
15946 rm -rf conftest*
15947 glibcpp_cv_func__logl_use=no
15949 rm -f conftest*
15950 ac_ext=c
15951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15952 ac_cpp='$CPP $CPPFLAGS'
15953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15955 cross_compiling=$ac_cv_prog_cc_cross
15961 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
15963 if test x$glibcpp_cv_func__logl_use = x"yes"; then
15964 for ac_func in _logl
15966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15967 echo "configure:15968: checking for $ac_func" >&5
15968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15969 echo $ac_n "(cached) $ac_c" 1>&6
15970 else
15971 cat > conftest.$ac_ext <<EOF
15972 #line 15973 "configure"
15973 #include "confdefs.h"
15974 /* System header to define __stub macros and hopefully few prototypes,
15975 which can conflict with char $ac_func(); below. */
15976 #include <assert.h>
15977 /* Override any gcc2 internal prototype to avoid an error. */
15978 /* We use char because int might match the return type of a gcc2
15979 builtin and then its argument prototype would still apply. */
15980 char $ac_func();
15982 int main() {
15984 /* The GNU C library defines this for functions which it implements
15985 to always fail with ENOSYS. Some functions are actually named
15986 something starting with __ and the normal name is an alias. */
15987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15988 choke me
15989 #else
15990 $ac_func();
15991 #endif
15993 ; return 0; }
15995 if { (eval echo configure:15996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15996 rm -rf conftest*
15997 eval "ac_cv_func_$ac_func=yes"
15998 else
15999 echo "configure: failed program was:" >&5
16000 cat conftest.$ac_ext >&5
16001 rm -rf conftest*
16002 eval "ac_cv_func_$ac_func=no"
16004 rm -f conftest*
16007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16008 echo "$ac_t""yes" 1>&6
16009 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16010 cat >> confdefs.h <<EOF
16011 #define $ac_tr_func 1
16014 else
16015 echo "$ac_t""no" 1>&6
16017 done
16024 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
16025 echo "configure:16026: checking for log10l declaration" >&5
16026 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
16027 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
16028 echo $ac_n "(cached) $ac_c" 1>&6
16029 else
16032 ac_ext=C
16033 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16034 ac_cpp='$CXXCPP $CPPFLAGS'
16035 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16036 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16037 cross_compiling=$ac_cv_prog_cxx_cross
16039 cat > conftest.$ac_ext <<EOF
16040 #line 16041 "configure"
16041 #include "confdefs.h"
16042 #include <math.h>
16043 #ifdef HAVE_IEEEFP_H
16044 #include <ieeefp.h>
16045 #endif
16047 int main() {
16048 log10l(0);
16049 ; return 0; }
16051 if { (eval echo configure:16052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16052 rm -rf conftest*
16053 glibcpp_cv_func_log10l_use=yes
16054 else
16055 echo "configure: failed program was:" >&5
16056 cat conftest.$ac_ext >&5
16057 rm -rf conftest*
16058 glibcpp_cv_func_log10l_use=no
16060 rm -f conftest*
16061 ac_ext=c
16062 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16063 ac_cpp='$CPP $CPPFLAGS'
16064 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16065 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16066 cross_compiling=$ac_cv_prog_cc_cross
16072 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
16074 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
16075 for ac_func in log10l
16077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16078 echo "configure:16079: checking for $ac_func" >&5
16079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16080 echo $ac_n "(cached) $ac_c" 1>&6
16081 else
16082 cat > conftest.$ac_ext <<EOF
16083 #line 16084 "configure"
16084 #include "confdefs.h"
16085 /* System header to define __stub macros and hopefully few prototypes,
16086 which can conflict with char $ac_func(); below. */
16087 #include <assert.h>
16088 /* Override any gcc2 internal prototype to avoid an error. */
16089 /* We use char because int might match the return type of a gcc2
16090 builtin and then its argument prototype would still apply. */
16091 char $ac_func();
16093 int main() {
16095 /* The GNU C library defines this for functions which it implements
16096 to always fail with ENOSYS. Some functions are actually named
16097 something starting with __ and the normal name is an alias. */
16098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16099 choke me
16100 #else
16101 $ac_func();
16102 #endif
16104 ; return 0; }
16106 if { (eval echo configure:16107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16107 rm -rf conftest*
16108 eval "ac_cv_func_$ac_func=yes"
16109 else
16110 echo "configure: failed program was:" >&5
16111 cat conftest.$ac_ext >&5
16112 rm -rf conftest*
16113 eval "ac_cv_func_$ac_func=no"
16115 rm -f conftest*
16118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16119 echo "$ac_t""yes" 1>&6
16120 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16121 cat >> confdefs.h <<EOF
16122 #define $ac_tr_func 1
16125 else
16126 echo "$ac_t""no" 1>&6
16128 done
16130 else
16132 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
16133 echo "configure:16134: checking for _log10l declaration" >&5
16134 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
16135 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
16136 echo $ac_n "(cached) $ac_c" 1>&6
16137 else
16140 ac_ext=C
16141 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16142 ac_cpp='$CXXCPP $CPPFLAGS'
16143 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16144 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16145 cross_compiling=$ac_cv_prog_cxx_cross
16147 cat > conftest.$ac_ext <<EOF
16148 #line 16149 "configure"
16149 #include "confdefs.h"
16150 #include <math.h>
16151 #ifdef HAVE_IEEEFP_H
16152 #include <ieeefp.h>
16153 #endif
16155 int main() {
16156 _log10l(0);
16157 ; return 0; }
16159 if { (eval echo configure:16160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16160 rm -rf conftest*
16161 glibcpp_cv_func__log10l_use=yes
16162 else
16163 echo "configure: failed program was:" >&5
16164 cat conftest.$ac_ext >&5
16165 rm -rf conftest*
16166 glibcpp_cv_func__log10l_use=no
16168 rm -f conftest*
16169 ac_ext=c
16170 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16171 ac_cpp='$CPP $CPPFLAGS'
16172 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16173 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16174 cross_compiling=$ac_cv_prog_cc_cross
16180 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
16182 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
16183 for ac_func in _log10l
16185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16186 echo "configure:16187: checking for $ac_func" >&5
16187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16188 echo $ac_n "(cached) $ac_c" 1>&6
16189 else
16190 cat > conftest.$ac_ext <<EOF
16191 #line 16192 "configure"
16192 #include "confdefs.h"
16193 /* System header to define __stub macros and hopefully few prototypes,
16194 which can conflict with char $ac_func(); below. */
16195 #include <assert.h>
16196 /* Override any gcc2 internal prototype to avoid an error. */
16197 /* We use char because int might match the return type of a gcc2
16198 builtin and then its argument prototype would still apply. */
16199 char $ac_func();
16201 int main() {
16203 /* The GNU C library defines this for functions which it implements
16204 to always fail with ENOSYS. Some functions are actually named
16205 something starting with __ and the normal name is an alias. */
16206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16207 choke me
16208 #else
16209 $ac_func();
16210 #endif
16212 ; return 0; }
16214 if { (eval echo configure:16215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16215 rm -rf conftest*
16216 eval "ac_cv_func_$ac_func=yes"
16217 else
16218 echo "configure: failed program was:" >&5
16219 cat conftest.$ac_ext >&5
16220 rm -rf conftest*
16221 eval "ac_cv_func_$ac_func=no"
16223 rm -f conftest*
16226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16227 echo "$ac_t""yes" 1>&6
16228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16229 cat >> confdefs.h <<EOF
16230 #define $ac_tr_func 1
16233 else
16234 echo "$ac_t""no" 1>&6
16236 done
16243 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
16244 echo "configure:16245: checking for modfl declaration" >&5
16245 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
16246 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
16247 echo $ac_n "(cached) $ac_c" 1>&6
16248 else
16251 ac_ext=C
16252 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16253 ac_cpp='$CXXCPP $CPPFLAGS'
16254 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16255 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16256 cross_compiling=$ac_cv_prog_cxx_cross
16258 cat > conftest.$ac_ext <<EOF
16259 #line 16260 "configure"
16260 #include "confdefs.h"
16261 #include <math.h>
16262 int main() {
16263 modfl(0, 0);
16264 ; return 0; }
16266 if { (eval echo configure:16267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16267 rm -rf conftest*
16268 glibcpp_cv_func_modfl_use=yes
16269 else
16270 echo "configure: failed program was:" >&5
16271 cat conftest.$ac_ext >&5
16272 rm -rf conftest*
16273 glibcpp_cv_func_modfl_use=no
16275 rm -f conftest*
16276 ac_ext=c
16277 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16278 ac_cpp='$CPP $CPPFLAGS'
16279 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16280 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16281 cross_compiling=$ac_cv_prog_cc_cross
16287 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
16289 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
16290 for ac_func in modfl
16292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16293 echo "configure:16294: checking for $ac_func" >&5
16294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16295 echo $ac_n "(cached) $ac_c" 1>&6
16296 else
16297 cat > conftest.$ac_ext <<EOF
16298 #line 16299 "configure"
16299 #include "confdefs.h"
16300 /* System header to define __stub macros and hopefully few prototypes,
16301 which can conflict with char $ac_func(); below. */
16302 #include <assert.h>
16303 /* Override any gcc2 internal prototype to avoid an error. */
16304 /* We use char because int might match the return type of a gcc2
16305 builtin and then its argument prototype would still apply. */
16306 char $ac_func();
16308 int main() {
16310 /* The GNU C library defines this for functions which it implements
16311 to always fail with ENOSYS. Some functions are actually named
16312 something starting with __ and the normal name is an alias. */
16313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16314 choke me
16315 #else
16316 $ac_func();
16317 #endif
16319 ; return 0; }
16321 if { (eval echo configure:16322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16322 rm -rf conftest*
16323 eval "ac_cv_func_$ac_func=yes"
16324 else
16325 echo "configure: failed program was:" >&5
16326 cat conftest.$ac_ext >&5
16327 rm -rf conftest*
16328 eval "ac_cv_func_$ac_func=no"
16330 rm -f conftest*
16333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16334 echo "$ac_t""yes" 1>&6
16335 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16336 cat >> confdefs.h <<EOF
16337 #define $ac_tr_func 1
16340 else
16341 echo "$ac_t""no" 1>&6
16343 done
16345 else
16347 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
16348 echo "configure:16349: checking for _modfl declaration" >&5
16349 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
16350 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
16351 echo $ac_n "(cached) $ac_c" 1>&6
16352 else
16355 ac_ext=C
16356 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16357 ac_cpp='$CXXCPP $CPPFLAGS'
16358 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16359 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16360 cross_compiling=$ac_cv_prog_cxx_cross
16362 cat > conftest.$ac_ext <<EOF
16363 #line 16364 "configure"
16364 #include "confdefs.h"
16365 #include <math.h>
16366 int main() {
16367 _modfl(0, 0);
16368 ; return 0; }
16370 if { (eval echo configure:16371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16371 rm -rf conftest*
16372 glibcpp_cv_func__modfl_use=yes
16373 else
16374 echo "configure: failed program was:" >&5
16375 cat conftest.$ac_ext >&5
16376 rm -rf conftest*
16377 glibcpp_cv_func__modfl_use=no
16379 rm -f conftest*
16380 ac_ext=c
16381 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16382 ac_cpp='$CPP $CPPFLAGS'
16383 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16384 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16385 cross_compiling=$ac_cv_prog_cc_cross
16391 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
16393 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
16394 for ac_func in _modfl
16396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16397 echo "configure:16398: checking for $ac_func" >&5
16398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16399 echo $ac_n "(cached) $ac_c" 1>&6
16400 else
16401 cat > conftest.$ac_ext <<EOF
16402 #line 16403 "configure"
16403 #include "confdefs.h"
16404 /* System header to define __stub macros and hopefully few prototypes,
16405 which can conflict with char $ac_func(); below. */
16406 #include <assert.h>
16407 /* Override any gcc2 internal prototype to avoid an error. */
16408 /* We use char because int might match the return type of a gcc2
16409 builtin and then its argument prototype would still apply. */
16410 char $ac_func();
16412 int main() {
16414 /* The GNU C library defines this for functions which it implements
16415 to always fail with ENOSYS. Some functions are actually named
16416 something starting with __ and the normal name is an alias. */
16417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16418 choke me
16419 #else
16420 $ac_func();
16421 #endif
16423 ; return 0; }
16425 if { (eval echo configure:16426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16426 rm -rf conftest*
16427 eval "ac_cv_func_$ac_func=yes"
16428 else
16429 echo "configure: failed program was:" >&5
16430 cat conftest.$ac_ext >&5
16431 rm -rf conftest*
16432 eval "ac_cv_func_$ac_func=no"
16434 rm -f conftest*
16437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16438 echo "$ac_t""yes" 1>&6
16439 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16440 cat >> confdefs.h <<EOF
16441 #define $ac_tr_func 1
16444 else
16445 echo "$ac_t""no" 1>&6
16447 done
16454 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
16455 echo "configure:16456: checking for powl declaration" >&5
16456 if test x${glibcpp_cv_func_powl_use+set} != xset; then
16457 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
16458 echo $ac_n "(cached) $ac_c" 1>&6
16459 else
16462 ac_ext=C
16463 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16464 ac_cpp='$CXXCPP $CPPFLAGS'
16465 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16466 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16467 cross_compiling=$ac_cv_prog_cxx_cross
16469 cat > conftest.$ac_ext <<EOF
16470 #line 16471 "configure"
16471 #include "confdefs.h"
16472 #include <math.h>
16473 int main() {
16474 powl(0, 0);
16475 ; return 0; }
16477 if { (eval echo configure:16478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16478 rm -rf conftest*
16479 glibcpp_cv_func_powl_use=yes
16480 else
16481 echo "configure: failed program was:" >&5
16482 cat conftest.$ac_ext >&5
16483 rm -rf conftest*
16484 glibcpp_cv_func_powl_use=no
16486 rm -f conftest*
16487 ac_ext=c
16488 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16489 ac_cpp='$CPP $CPPFLAGS'
16490 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16491 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16492 cross_compiling=$ac_cv_prog_cc_cross
16498 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
16500 if test x$glibcpp_cv_func_powl_use = x"yes"; then
16501 for ac_func in powl
16503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16504 echo "configure:16505: checking for $ac_func" >&5
16505 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16506 echo $ac_n "(cached) $ac_c" 1>&6
16507 else
16508 cat > conftest.$ac_ext <<EOF
16509 #line 16510 "configure"
16510 #include "confdefs.h"
16511 /* System header to define __stub macros and hopefully few prototypes,
16512 which can conflict with char $ac_func(); below. */
16513 #include <assert.h>
16514 /* Override any gcc2 internal prototype to avoid an error. */
16515 /* We use char because int might match the return type of a gcc2
16516 builtin and then its argument prototype would still apply. */
16517 char $ac_func();
16519 int main() {
16521 /* The GNU C library defines this for functions which it implements
16522 to always fail with ENOSYS. Some functions are actually named
16523 something starting with __ and the normal name is an alias. */
16524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16525 choke me
16526 #else
16527 $ac_func();
16528 #endif
16530 ; return 0; }
16532 if { (eval echo configure:16533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16533 rm -rf conftest*
16534 eval "ac_cv_func_$ac_func=yes"
16535 else
16536 echo "configure: failed program was:" >&5
16537 cat conftest.$ac_ext >&5
16538 rm -rf conftest*
16539 eval "ac_cv_func_$ac_func=no"
16541 rm -f conftest*
16544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16545 echo "$ac_t""yes" 1>&6
16546 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16547 cat >> confdefs.h <<EOF
16548 #define $ac_tr_func 1
16551 else
16552 echo "$ac_t""no" 1>&6
16554 done
16556 else
16558 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
16559 echo "configure:16560: checking for _powl declaration" >&5
16560 if test x${glibcpp_cv_func__powl_use+set} != xset; then
16561 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
16562 echo $ac_n "(cached) $ac_c" 1>&6
16563 else
16566 ac_ext=C
16567 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16568 ac_cpp='$CXXCPP $CPPFLAGS'
16569 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16570 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16571 cross_compiling=$ac_cv_prog_cxx_cross
16573 cat > conftest.$ac_ext <<EOF
16574 #line 16575 "configure"
16575 #include "confdefs.h"
16576 #include <math.h>
16577 int main() {
16578 _powl(0, 0);
16579 ; return 0; }
16581 if { (eval echo configure:16582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16582 rm -rf conftest*
16583 glibcpp_cv_func__powl_use=yes
16584 else
16585 echo "configure: failed program was:" >&5
16586 cat conftest.$ac_ext >&5
16587 rm -rf conftest*
16588 glibcpp_cv_func__powl_use=no
16590 rm -f conftest*
16591 ac_ext=c
16592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16593 ac_cpp='$CPP $CPPFLAGS'
16594 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16595 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16596 cross_compiling=$ac_cv_prog_cc_cross
16602 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
16604 if test x$glibcpp_cv_func__powl_use = x"yes"; then
16605 for ac_func in _powl
16607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16608 echo "configure:16609: checking for $ac_func" >&5
16609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16610 echo $ac_n "(cached) $ac_c" 1>&6
16611 else
16612 cat > conftest.$ac_ext <<EOF
16613 #line 16614 "configure"
16614 #include "confdefs.h"
16615 /* System header to define __stub macros and hopefully few prototypes,
16616 which can conflict with char $ac_func(); below. */
16617 #include <assert.h>
16618 /* Override any gcc2 internal prototype to avoid an error. */
16619 /* We use char because int might match the return type of a gcc2
16620 builtin and then its argument prototype would still apply. */
16621 char $ac_func();
16623 int main() {
16625 /* The GNU C library defines this for functions which it implements
16626 to always fail with ENOSYS. Some functions are actually named
16627 something starting with __ and the normal name is an alias. */
16628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16629 choke me
16630 #else
16631 $ac_func();
16632 #endif
16634 ; return 0; }
16636 if { (eval echo configure:16637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16637 rm -rf conftest*
16638 eval "ac_cv_func_$ac_func=yes"
16639 else
16640 echo "configure: failed program was:" >&5
16641 cat conftest.$ac_ext >&5
16642 rm -rf conftest*
16643 eval "ac_cv_func_$ac_func=no"
16645 rm -f conftest*
16648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16649 echo "$ac_t""yes" 1>&6
16650 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16651 cat >> confdefs.h <<EOF
16652 #define $ac_tr_func 1
16655 else
16656 echo "$ac_t""no" 1>&6
16658 done
16665 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
16666 echo "configure:16667: checking for sqrtl declaration" >&5
16667 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
16668 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
16669 echo $ac_n "(cached) $ac_c" 1>&6
16670 else
16673 ac_ext=C
16674 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16675 ac_cpp='$CXXCPP $CPPFLAGS'
16676 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16677 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16678 cross_compiling=$ac_cv_prog_cxx_cross
16680 cat > conftest.$ac_ext <<EOF
16681 #line 16682 "configure"
16682 #include "confdefs.h"
16683 #include <math.h>
16684 #ifdef HAVE_IEEEFP_H
16685 #include <ieeefp.h>
16686 #endif
16688 int main() {
16689 sqrtl(0);
16690 ; return 0; }
16692 if { (eval echo configure:16693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16693 rm -rf conftest*
16694 glibcpp_cv_func_sqrtl_use=yes
16695 else
16696 echo "configure: failed program was:" >&5
16697 cat conftest.$ac_ext >&5
16698 rm -rf conftest*
16699 glibcpp_cv_func_sqrtl_use=no
16701 rm -f conftest*
16702 ac_ext=c
16703 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16704 ac_cpp='$CPP $CPPFLAGS'
16705 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16706 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16707 cross_compiling=$ac_cv_prog_cc_cross
16713 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
16715 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
16716 for ac_func in sqrtl
16718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16719 echo "configure:16720: checking for $ac_func" >&5
16720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16721 echo $ac_n "(cached) $ac_c" 1>&6
16722 else
16723 cat > conftest.$ac_ext <<EOF
16724 #line 16725 "configure"
16725 #include "confdefs.h"
16726 /* System header to define __stub macros and hopefully few prototypes,
16727 which can conflict with char $ac_func(); below. */
16728 #include <assert.h>
16729 /* Override any gcc2 internal prototype to avoid an error. */
16730 /* We use char because int might match the return type of a gcc2
16731 builtin and then its argument prototype would still apply. */
16732 char $ac_func();
16734 int main() {
16736 /* The GNU C library defines this for functions which it implements
16737 to always fail with ENOSYS. Some functions are actually named
16738 something starting with __ and the normal name is an alias. */
16739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16740 choke me
16741 #else
16742 $ac_func();
16743 #endif
16745 ; return 0; }
16747 if { (eval echo configure:16748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16748 rm -rf conftest*
16749 eval "ac_cv_func_$ac_func=yes"
16750 else
16751 echo "configure: failed program was:" >&5
16752 cat conftest.$ac_ext >&5
16753 rm -rf conftest*
16754 eval "ac_cv_func_$ac_func=no"
16756 rm -f conftest*
16759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16760 echo "$ac_t""yes" 1>&6
16761 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16762 cat >> confdefs.h <<EOF
16763 #define $ac_tr_func 1
16766 else
16767 echo "$ac_t""no" 1>&6
16769 done
16771 else
16773 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
16774 echo "configure:16775: checking for _sqrtl declaration" >&5
16775 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
16776 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
16777 echo $ac_n "(cached) $ac_c" 1>&6
16778 else
16781 ac_ext=C
16782 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16783 ac_cpp='$CXXCPP $CPPFLAGS'
16784 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16785 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16786 cross_compiling=$ac_cv_prog_cxx_cross
16788 cat > conftest.$ac_ext <<EOF
16789 #line 16790 "configure"
16790 #include "confdefs.h"
16791 #include <math.h>
16792 #ifdef HAVE_IEEEFP_H
16793 #include <ieeefp.h>
16794 #endif
16796 int main() {
16797 _sqrtl(0);
16798 ; return 0; }
16800 if { (eval echo configure:16801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16801 rm -rf conftest*
16802 glibcpp_cv_func__sqrtl_use=yes
16803 else
16804 echo "configure: failed program was:" >&5
16805 cat conftest.$ac_ext >&5
16806 rm -rf conftest*
16807 glibcpp_cv_func__sqrtl_use=no
16809 rm -f conftest*
16810 ac_ext=c
16811 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16812 ac_cpp='$CPP $CPPFLAGS'
16813 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16814 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16815 cross_compiling=$ac_cv_prog_cc_cross
16821 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
16823 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
16824 for ac_func in _sqrtl
16826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16827 echo "configure:16828: checking for $ac_func" >&5
16828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16829 echo $ac_n "(cached) $ac_c" 1>&6
16830 else
16831 cat > conftest.$ac_ext <<EOF
16832 #line 16833 "configure"
16833 #include "confdefs.h"
16834 /* System header to define __stub macros and hopefully few prototypes,
16835 which can conflict with char $ac_func(); below. */
16836 #include <assert.h>
16837 /* Override any gcc2 internal prototype to avoid an error. */
16838 /* We use char because int might match the return type of a gcc2
16839 builtin and then its argument prototype would still apply. */
16840 char $ac_func();
16842 int main() {
16844 /* The GNU C library defines this for functions which it implements
16845 to always fail with ENOSYS. Some functions are actually named
16846 something starting with __ and the normal name is an alias. */
16847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16848 choke me
16849 #else
16850 $ac_func();
16851 #endif
16853 ; return 0; }
16855 if { (eval echo configure:16856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16856 rm -rf conftest*
16857 eval "ac_cv_func_$ac_func=yes"
16858 else
16859 echo "configure: failed program was:" >&5
16860 cat conftest.$ac_ext >&5
16861 rm -rf conftest*
16862 eval "ac_cv_func_$ac_func=no"
16864 rm -f conftest*
16867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16868 echo "$ac_t""yes" 1>&6
16869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16870 cat >> confdefs.h <<EOF
16871 #define $ac_tr_func 1
16874 else
16875 echo "$ac_t""no" 1>&6
16877 done
16884 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
16885 echo "configure:16886: checking for sincosl declaration" >&5
16886 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
16887 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
16888 echo $ac_n "(cached) $ac_c" 1>&6
16889 else
16892 ac_ext=C
16893 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16894 ac_cpp='$CXXCPP $CPPFLAGS'
16895 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16896 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16897 cross_compiling=$ac_cv_prog_cxx_cross
16899 cat > conftest.$ac_ext <<EOF
16900 #line 16901 "configure"
16901 #include "confdefs.h"
16902 #include <math.h>
16903 int main() {
16904 sincosl(0, 0, 0);
16905 ; return 0; }
16907 if { (eval echo configure:16908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16908 rm -rf conftest*
16909 glibcpp_cv_func_sincosl_use=yes
16910 else
16911 echo "configure: failed program was:" >&5
16912 cat conftest.$ac_ext >&5
16913 rm -rf conftest*
16914 glibcpp_cv_func_sincosl_use=no
16916 rm -f conftest*
16917 ac_ext=c
16918 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16919 ac_cpp='$CPP $CPPFLAGS'
16920 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16921 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16922 cross_compiling=$ac_cv_prog_cc_cross
16928 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
16930 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
16931 for ac_func in sincosl
16933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16934 echo "configure:16935: checking for $ac_func" >&5
16935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16936 echo $ac_n "(cached) $ac_c" 1>&6
16937 else
16938 cat > conftest.$ac_ext <<EOF
16939 #line 16940 "configure"
16940 #include "confdefs.h"
16941 /* System header to define __stub macros and hopefully few prototypes,
16942 which can conflict with char $ac_func(); below. */
16943 #include <assert.h>
16944 /* Override any gcc2 internal prototype to avoid an error. */
16945 /* We use char because int might match the return type of a gcc2
16946 builtin and then its argument prototype would still apply. */
16947 char $ac_func();
16949 int main() {
16951 /* The GNU C library defines this for functions which it implements
16952 to always fail with ENOSYS. Some functions are actually named
16953 something starting with __ and the normal name is an alias. */
16954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16955 choke me
16956 #else
16957 $ac_func();
16958 #endif
16960 ; return 0; }
16962 if { (eval echo configure:16963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16963 rm -rf conftest*
16964 eval "ac_cv_func_$ac_func=yes"
16965 else
16966 echo "configure: failed program was:" >&5
16967 cat conftest.$ac_ext >&5
16968 rm -rf conftest*
16969 eval "ac_cv_func_$ac_func=no"
16971 rm -f conftest*
16974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16975 echo "$ac_t""yes" 1>&6
16976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16977 cat >> confdefs.h <<EOF
16978 #define $ac_tr_func 1
16981 else
16982 echo "$ac_t""no" 1>&6
16984 done
16986 else
16988 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
16989 echo "configure:16990: checking for _sincosl declaration" >&5
16990 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
16991 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
16992 echo $ac_n "(cached) $ac_c" 1>&6
16993 else
16996 ac_ext=C
16997 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16998 ac_cpp='$CXXCPP $CPPFLAGS'
16999 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17000 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17001 cross_compiling=$ac_cv_prog_cxx_cross
17003 cat > conftest.$ac_ext <<EOF
17004 #line 17005 "configure"
17005 #include "confdefs.h"
17006 #include <math.h>
17007 int main() {
17008 _sincosl(0, 0, 0);
17009 ; return 0; }
17011 if { (eval echo configure:17012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17012 rm -rf conftest*
17013 glibcpp_cv_func__sincosl_use=yes
17014 else
17015 echo "configure: failed program was:" >&5
17016 cat conftest.$ac_ext >&5
17017 rm -rf conftest*
17018 glibcpp_cv_func__sincosl_use=no
17020 rm -f conftest*
17021 ac_ext=c
17022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17023 ac_cpp='$CPP $CPPFLAGS'
17024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17026 cross_compiling=$ac_cv_prog_cc_cross
17032 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
17034 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
17035 for ac_func in _sincosl
17037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17038 echo "configure:17039: checking for $ac_func" >&5
17039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17040 echo $ac_n "(cached) $ac_c" 1>&6
17041 else
17042 cat > conftest.$ac_ext <<EOF
17043 #line 17044 "configure"
17044 #include "confdefs.h"
17045 /* System header to define __stub macros and hopefully few prototypes,
17046 which can conflict with char $ac_func(); below. */
17047 #include <assert.h>
17048 /* Override any gcc2 internal prototype to avoid an error. */
17049 /* We use char because int might match the return type of a gcc2
17050 builtin and then its argument prototype would still apply. */
17051 char $ac_func();
17053 int main() {
17055 /* The GNU C library defines this for functions which it implements
17056 to always fail with ENOSYS. Some functions are actually named
17057 something starting with __ and the normal name is an alias. */
17058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17059 choke me
17060 #else
17061 $ac_func();
17062 #endif
17064 ; return 0; }
17066 if { (eval echo configure:17067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17067 rm -rf conftest*
17068 eval "ac_cv_func_$ac_func=yes"
17069 else
17070 echo "configure: failed program was:" >&5
17071 cat conftest.$ac_ext >&5
17072 rm -rf conftest*
17073 eval "ac_cv_func_$ac_func=no"
17075 rm -f conftest*
17078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17079 echo "$ac_t""yes" 1>&6
17080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17081 cat >> confdefs.h <<EOF
17082 #define $ac_tr_func 1
17085 else
17086 echo "$ac_t""no" 1>&6
17088 done
17095 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
17096 echo "configure:17097: checking for finitel declaration" >&5
17097 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
17098 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
17099 echo $ac_n "(cached) $ac_c" 1>&6
17100 else
17103 ac_ext=C
17104 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17105 ac_cpp='$CXXCPP $CPPFLAGS'
17106 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17107 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17108 cross_compiling=$ac_cv_prog_cxx_cross
17110 cat > conftest.$ac_ext <<EOF
17111 #line 17112 "configure"
17112 #include "confdefs.h"
17113 #include <math.h>
17114 #ifdef HAVE_IEEEFP_H
17115 #include <ieeefp.h>
17116 #endif
17118 int main() {
17119 finitel(0);
17120 ; return 0; }
17122 if { (eval echo configure:17123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17123 rm -rf conftest*
17124 glibcpp_cv_func_finitel_use=yes
17125 else
17126 echo "configure: failed program was:" >&5
17127 cat conftest.$ac_ext >&5
17128 rm -rf conftest*
17129 glibcpp_cv_func_finitel_use=no
17131 rm -f conftest*
17132 ac_ext=c
17133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17134 ac_cpp='$CPP $CPPFLAGS'
17135 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17136 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17137 cross_compiling=$ac_cv_prog_cc_cross
17143 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
17145 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
17146 for ac_func in finitel
17148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17149 echo "configure:17150: checking for $ac_func" >&5
17150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17151 echo $ac_n "(cached) $ac_c" 1>&6
17152 else
17153 cat > conftest.$ac_ext <<EOF
17154 #line 17155 "configure"
17155 #include "confdefs.h"
17156 /* System header to define __stub macros and hopefully few prototypes,
17157 which can conflict with char $ac_func(); below. */
17158 #include <assert.h>
17159 /* Override any gcc2 internal prototype to avoid an error. */
17160 /* We use char because int might match the return type of a gcc2
17161 builtin and then its argument prototype would still apply. */
17162 char $ac_func();
17164 int main() {
17166 /* The GNU C library defines this for functions which it implements
17167 to always fail with ENOSYS. Some functions are actually named
17168 something starting with __ and the normal name is an alias. */
17169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17170 choke me
17171 #else
17172 $ac_func();
17173 #endif
17175 ; return 0; }
17177 if { (eval echo configure:17178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17178 rm -rf conftest*
17179 eval "ac_cv_func_$ac_func=yes"
17180 else
17181 echo "configure: failed program was:" >&5
17182 cat conftest.$ac_ext >&5
17183 rm -rf conftest*
17184 eval "ac_cv_func_$ac_func=no"
17186 rm -f conftest*
17189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17190 echo "$ac_t""yes" 1>&6
17191 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17192 cat >> confdefs.h <<EOF
17193 #define $ac_tr_func 1
17196 else
17197 echo "$ac_t""no" 1>&6
17199 done
17201 else
17203 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
17204 echo "configure:17205: checking for _finitel declaration" >&5
17205 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
17206 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
17207 echo $ac_n "(cached) $ac_c" 1>&6
17208 else
17211 ac_ext=C
17212 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17213 ac_cpp='$CXXCPP $CPPFLAGS'
17214 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17215 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17216 cross_compiling=$ac_cv_prog_cxx_cross
17218 cat > conftest.$ac_ext <<EOF
17219 #line 17220 "configure"
17220 #include "confdefs.h"
17221 #include <math.h>
17222 #ifdef HAVE_IEEEFP_H
17223 #include <ieeefp.h>
17224 #endif
17226 int main() {
17227 _finitel(0);
17228 ; return 0; }
17230 if { (eval echo configure:17231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17231 rm -rf conftest*
17232 glibcpp_cv_func__finitel_use=yes
17233 else
17234 echo "configure: failed program was:" >&5
17235 cat conftest.$ac_ext >&5
17236 rm -rf conftest*
17237 glibcpp_cv_func__finitel_use=no
17239 rm -f conftest*
17240 ac_ext=c
17241 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17242 ac_cpp='$CPP $CPPFLAGS'
17243 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17244 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17245 cross_compiling=$ac_cv_prog_cc_cross
17251 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
17253 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
17254 for ac_func in _finitel
17256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17257 echo "configure:17258: checking for $ac_func" >&5
17258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17259 echo $ac_n "(cached) $ac_c" 1>&6
17260 else
17261 cat > conftest.$ac_ext <<EOF
17262 #line 17263 "configure"
17263 #include "confdefs.h"
17264 /* System header to define __stub macros and hopefully few prototypes,
17265 which can conflict with char $ac_func(); below. */
17266 #include <assert.h>
17267 /* Override any gcc2 internal prototype to avoid an error. */
17268 /* We use char because int might match the return type of a gcc2
17269 builtin and then its argument prototype would still apply. */
17270 char $ac_func();
17272 int main() {
17274 /* The GNU C library defines this for functions which it implements
17275 to always fail with ENOSYS. Some functions are actually named
17276 something starting with __ and the normal name is an alias. */
17277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17278 choke me
17279 #else
17280 $ac_func();
17281 #endif
17283 ; return 0; }
17285 if { (eval echo configure:17286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17286 rm -rf conftest*
17287 eval "ac_cv_func_$ac_func=yes"
17288 else
17289 echo "configure: failed program was:" >&5
17290 cat conftest.$ac_ext >&5
17291 rm -rf conftest*
17292 eval "ac_cv_func_$ac_func=no"
17294 rm -f conftest*
17297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17298 echo "$ac_t""yes" 1>&6
17299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17300 cat >> confdefs.h <<EOF
17301 #define $ac_tr_func 1
17304 else
17305 echo "$ac_t""no" 1>&6
17307 done
17315 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
17316 echo "configure:17317: checking for _float trig functions" >&5
17317 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
17318 echo $ac_n "(cached) $ac_c" 1>&6
17319 else
17322 ac_ext=C
17323 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17324 ac_cpp='$CXXCPP $CPPFLAGS'
17325 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17326 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17327 cross_compiling=$ac_cv_prog_cxx_cross
17329 cat > conftest.$ac_ext <<EOF
17330 #line 17331 "configure"
17331 #include "confdefs.h"
17332 #include <math.h>
17333 int main() {
17334 `for x in _acosf _asinf _atanf \
17335 _cosf _sinf _tanf \
17336 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
17337 ; return 0; }
17339 if { (eval echo configure:17340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17340 rm -rf conftest*
17341 glibcpp_cv_func__float_trig_use=yes
17342 else
17343 echo "configure: failed program was:" >&5
17344 cat conftest.$ac_ext >&5
17345 rm -rf conftest*
17346 glibcpp_cv_func__float_trig_use=no
17348 rm -f conftest*
17349 ac_ext=c
17350 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17351 ac_cpp='$CPP $CPPFLAGS'
17352 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17353 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17354 cross_compiling=$ac_cv_prog_cc_cross
17358 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
17359 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
17360 for ac_func in _acosf _asinf _atanf \
17361 _cosf _sinf _tanf \
17362 _coshf _sinhf _tanhf
17364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17365 echo "configure:17366: checking for $ac_func" >&5
17366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17367 echo $ac_n "(cached) $ac_c" 1>&6
17368 else
17369 cat > conftest.$ac_ext <<EOF
17370 #line 17371 "configure"
17371 #include "confdefs.h"
17372 /* System header to define __stub macros and hopefully few prototypes,
17373 which can conflict with char $ac_func(); below. */
17374 #include <assert.h>
17375 /* Override any gcc2 internal prototype to avoid an error. */
17376 /* We use char because int might match the return type of a gcc2
17377 builtin and then its argument prototype would still apply. */
17378 char $ac_func();
17380 int main() {
17382 /* The GNU C library defines this for functions which it implements
17383 to always fail with ENOSYS. Some functions are actually named
17384 something starting with __ and the normal name is an alias. */
17385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17386 choke me
17387 #else
17388 $ac_func();
17389 #endif
17391 ; return 0; }
17393 if { (eval echo configure:17394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17394 rm -rf conftest*
17395 eval "ac_cv_func_$ac_func=yes"
17396 else
17397 echo "configure: failed program was:" >&5
17398 cat conftest.$ac_ext >&5
17399 rm -rf conftest*
17400 eval "ac_cv_func_$ac_func=no"
17402 rm -f conftest*
17405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17406 echo "$ac_t""yes" 1>&6
17407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17408 cat >> confdefs.h <<EOF
17409 #define $ac_tr_func 1
17412 else
17413 echo "$ac_t""no" 1>&6
17415 done
17420 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
17421 echo "configure:17422: checking for _float round functions" >&5
17422 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
17423 echo $ac_n "(cached) $ac_c" 1>&6
17424 else
17427 ac_ext=C
17428 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17429 ac_cpp='$CXXCPP $CPPFLAGS'
17430 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17431 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17432 cross_compiling=$ac_cv_prog_cxx_cross
17434 cat > conftest.$ac_ext <<EOF
17435 #line 17436 "configure"
17436 #include "confdefs.h"
17437 #include <math.h>
17438 int main() {
17439 `for x in _ceilf _floorf; do echo "$x (0);"; done`
17440 ; return 0; }
17442 if { (eval echo configure:17443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17443 rm -rf conftest*
17444 glibcpp_cv_func__float_round_use=yes
17445 else
17446 echo "configure: failed program was:" >&5
17447 cat conftest.$ac_ext >&5
17448 rm -rf conftest*
17449 glibcpp_cv_func__float_round_use=no
17451 rm -f conftest*
17452 ac_ext=c
17453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17454 ac_cpp='$CPP $CPPFLAGS'
17455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17457 cross_compiling=$ac_cv_prog_cc_cross
17461 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
17462 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
17463 for ac_func in _ceilf _floorf
17465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17466 echo "configure:17467: checking for $ac_func" >&5
17467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17468 echo $ac_n "(cached) $ac_c" 1>&6
17469 else
17470 cat > conftest.$ac_ext <<EOF
17471 #line 17472 "configure"
17472 #include "confdefs.h"
17473 /* System header to define __stub macros and hopefully few prototypes,
17474 which can conflict with char $ac_func(); below. */
17475 #include <assert.h>
17476 /* Override any gcc2 internal prototype to avoid an error. */
17477 /* We use char because int might match the return type of a gcc2
17478 builtin and then its argument prototype would still apply. */
17479 char $ac_func();
17481 int main() {
17483 /* The GNU C library defines this for functions which it implements
17484 to always fail with ENOSYS. Some functions are actually named
17485 something starting with __ and the normal name is an alias. */
17486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17487 choke me
17488 #else
17489 $ac_func();
17490 #endif
17492 ; return 0; }
17494 if { (eval echo configure:17495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17495 rm -rf conftest*
17496 eval "ac_cv_func_$ac_func=yes"
17497 else
17498 echo "configure: failed program was:" >&5
17499 cat conftest.$ac_ext >&5
17500 rm -rf conftest*
17501 eval "ac_cv_func_$ac_func=no"
17503 rm -f conftest*
17506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17507 echo "$ac_t""yes" 1>&6
17508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17509 cat >> confdefs.h <<EOF
17510 #define $ac_tr_func 1
17513 else
17514 echo "$ac_t""no" 1>&6
17516 done
17522 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
17523 echo "configure:17524: checking for _long double trig functions" >&5
17524 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
17525 echo $ac_n "(cached) $ac_c" 1>&6
17526 else
17529 ac_ext=C
17530 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17531 ac_cpp='$CXXCPP $CPPFLAGS'
17532 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17533 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17534 cross_compiling=$ac_cv_prog_cxx_cross
17536 cat > conftest.$ac_ext <<EOF
17537 #line 17538 "configure"
17538 #include "confdefs.h"
17539 #include <math.h>
17540 int main() {
17541 `for x in _acosl _asinl _atanl \
17542 _cosl _sinl _tanl \
17543 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
17544 ; return 0; }
17546 if { (eval echo configure:17547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17547 rm -rf conftest*
17548 glibcpp_cv_func__long_double_trig_use=yes
17549 else
17550 echo "configure: failed program was:" >&5
17551 cat conftest.$ac_ext >&5
17552 rm -rf conftest*
17553 glibcpp_cv_func__long_double_trig_use=no
17555 rm -f conftest*
17556 ac_ext=c
17557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17558 ac_cpp='$CPP $CPPFLAGS'
17559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17561 cross_compiling=$ac_cv_prog_cc_cross
17565 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
17566 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
17567 for ac_func in _acosl _asinl _atanl \
17568 _cosl _sinl _tanl \
17569 _coshl _sinhl _tanhl
17571 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17572 echo "configure:17573: checking for $ac_func" >&5
17573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17574 echo $ac_n "(cached) $ac_c" 1>&6
17575 else
17576 cat > conftest.$ac_ext <<EOF
17577 #line 17578 "configure"
17578 #include "confdefs.h"
17579 /* System header to define __stub macros and hopefully few prototypes,
17580 which can conflict with char $ac_func(); below. */
17581 #include <assert.h>
17582 /* Override any gcc2 internal prototype to avoid an error. */
17583 /* We use char because int might match the return type of a gcc2
17584 builtin and then its argument prototype would still apply. */
17585 char $ac_func();
17587 int main() {
17589 /* The GNU C library defines this for functions which it implements
17590 to always fail with ENOSYS. Some functions are actually named
17591 something starting with __ and the normal name is an alias. */
17592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17593 choke me
17594 #else
17595 $ac_func();
17596 #endif
17598 ; return 0; }
17600 if { (eval echo configure:17601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17601 rm -rf conftest*
17602 eval "ac_cv_func_$ac_func=yes"
17603 else
17604 echo "configure: failed program was:" >&5
17605 cat conftest.$ac_ext >&5
17606 rm -rf conftest*
17607 eval "ac_cv_func_$ac_func=no"
17609 rm -f conftest*
17612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17613 echo "$ac_t""yes" 1>&6
17614 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17615 cat >> confdefs.h <<EOF
17616 #define $ac_tr_func 1
17619 else
17620 echo "$ac_t""no" 1>&6
17622 done
17627 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
17628 echo "configure:17629: checking for _long double round functions" >&5
17629 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
17630 echo $ac_n "(cached) $ac_c" 1>&6
17631 else
17634 ac_ext=C
17635 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17636 ac_cpp='$CXXCPP $CPPFLAGS'
17637 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17638 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17639 cross_compiling=$ac_cv_prog_cxx_cross
17641 cat > conftest.$ac_ext <<EOF
17642 #line 17643 "configure"
17643 #include "confdefs.h"
17644 #include <math.h>
17645 int main() {
17646 `for x in _ceill _floorl; do echo "$x (0);"; done`
17647 ; return 0; }
17649 if { (eval echo configure:17650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17650 rm -rf conftest*
17651 glibcpp_cv_func__long_double_round_use=yes
17652 else
17653 echo "configure: failed program was:" >&5
17654 cat conftest.$ac_ext >&5
17655 rm -rf conftest*
17656 glibcpp_cv_func__long_double_round_use=no
17658 rm -f conftest*
17659 ac_ext=c
17660 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17661 ac_cpp='$CPP $CPPFLAGS'
17662 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17663 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17664 cross_compiling=$ac_cv_prog_cc_cross
17668 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
17669 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
17670 for ac_func in _ceill _floorl
17672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17673 echo "configure:17674: checking for $ac_func" >&5
17674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17675 echo $ac_n "(cached) $ac_c" 1>&6
17676 else
17677 cat > conftest.$ac_ext <<EOF
17678 #line 17679 "configure"
17679 #include "confdefs.h"
17680 /* System header to define __stub macros and hopefully few prototypes,
17681 which can conflict with char $ac_func(); below. */
17682 #include <assert.h>
17683 /* Override any gcc2 internal prototype to avoid an error. */
17684 /* We use char because int might match the return type of a gcc2
17685 builtin and then its argument prototype would still apply. */
17686 char $ac_func();
17688 int main() {
17690 /* The GNU C library defines this for functions which it implements
17691 to always fail with ENOSYS. Some functions are actually named
17692 something starting with __ and the normal name is an alias. */
17693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17694 choke me
17695 #else
17696 $ac_func();
17697 #endif
17699 ; return 0; }
17701 if { (eval echo configure:17702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17702 rm -rf conftest*
17703 eval "ac_cv_func_$ac_func=yes"
17704 else
17705 echo "configure: failed program was:" >&5
17706 cat conftest.$ac_ext >&5
17707 rm -rf conftest*
17708 eval "ac_cv_func_$ac_func=no"
17710 rm -f conftest*
17713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17714 echo "$ac_t""yes" 1>&6
17715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17716 cat >> confdefs.h <<EOF
17717 #define $ac_tr_func 1
17720 else
17721 echo "$ac_t""no" 1>&6
17723 done
17728 LIBS="$ac_save_LIBS"
17729 CXXFLAGS="$ac_save_CXXFLAGS"
17732 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
17733 echo "configure:17734: checking for main in -lm" >&5
17734 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
17735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17736 echo $ac_n "(cached) $ac_c" 1>&6
17737 else
17738 ac_save_LIBS="$LIBS"
17739 LIBS="-lm $LIBS"
17740 cat > conftest.$ac_ext <<EOF
17741 #line 17742 "configure"
17742 #include "confdefs.h"
17744 int main() {
17745 main()
17746 ; return 0; }
17748 if { (eval echo configure:17749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17749 rm -rf conftest*
17750 eval "ac_cv_lib_$ac_lib_var=yes"
17751 else
17752 echo "configure: failed program was:" >&5
17753 cat conftest.$ac_ext >&5
17754 rm -rf conftest*
17755 eval "ac_cv_lib_$ac_lib_var=no"
17757 rm -f conftest*
17758 LIBS="$ac_save_LIBS"
17761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17762 echo "$ac_t""yes" 1>&6
17763 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
17764 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
17765 cat >> confdefs.h <<EOF
17766 #define $ac_tr_lib 1
17769 LIBS="-lm $LIBS"
17771 else
17772 echo "$ac_t""no" 1>&6
17775 for ac_func in nan copysignf
17777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17778 echo "configure:17779: checking for $ac_func" >&5
17779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17780 echo $ac_n "(cached) $ac_c" 1>&6
17781 else
17782 cat > conftest.$ac_ext <<EOF
17783 #line 17784 "configure"
17784 #include "confdefs.h"
17785 /* System header to define __stub macros and hopefully few prototypes,
17786 which can conflict with char $ac_func(); below. */
17787 #include <assert.h>
17788 /* Override any gcc2 internal prototype to avoid an error. */
17789 /* We use char because int might match the return type of a gcc2
17790 builtin and then its argument prototype would still apply. */
17791 char $ac_func();
17793 int main() {
17795 /* The GNU C library defines this for functions which it implements
17796 to always fail with ENOSYS. Some functions are actually named
17797 something starting with __ and the normal name is an alias. */
17798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17799 choke me
17800 #else
17801 $ac_func();
17802 #endif
17804 ; return 0; }
17806 if { (eval echo configure:17807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17807 rm -rf conftest*
17808 eval "ac_cv_func_$ac_func=yes"
17809 else
17810 echo "configure: failed program was:" >&5
17811 cat conftest.$ac_ext >&5
17812 rm -rf conftest*
17813 eval "ac_cv_func_$ac_func=no"
17815 rm -f conftest*
17818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17819 echo "$ac_t""yes" 1>&6
17820 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17821 cat >> confdefs.h <<EOF
17822 #define $ac_tr_func 1
17825 else
17826 echo "$ac_t""no" 1>&6
17827 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
17829 done
17833 USE_COMPLEX_LONG_DOUBLE=no
17834 if test x$ac_cv_func_copysignl = x"yes"; then
17835 USE_COMPLEX_LONG_DOUBLE=yes
17836 for ac_func in signbitl
17838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17839 echo "configure:17840: checking for $ac_func" >&5
17840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17841 echo $ac_n "(cached) $ac_c" 1>&6
17842 else
17843 cat > conftest.$ac_ext <<EOF
17844 #line 17845 "configure"
17845 #include "confdefs.h"
17846 /* System header to define __stub macros and hopefully few prototypes,
17847 which can conflict with char $ac_func(); below. */
17848 #include <assert.h>
17849 /* Override any gcc2 internal prototype to avoid an error. */
17850 /* We use char because int might match the return type of a gcc2
17851 builtin and then its argument prototype would still apply. */
17852 char $ac_func();
17854 int main() {
17856 /* The GNU C library defines this for functions which it implements
17857 to always fail with ENOSYS. Some functions are actually named
17858 something starting with __ and the normal name is an alias. */
17859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17860 choke me
17861 #else
17862 $ac_func();
17863 #endif
17865 ; return 0; }
17867 if { (eval echo configure:17868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17868 rm -rf conftest*
17869 eval "ac_cv_func_$ac_func=yes"
17870 else
17871 echo "configure: failed program was:" >&5
17872 cat conftest.$ac_ext >&5
17873 rm -rf conftest*
17874 eval "ac_cv_func_$ac_func=no"
17876 rm -f conftest*
17879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17880 echo "$ac_t""yes" 1>&6
17881 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17882 cat >> confdefs.h <<EOF
17883 #define $ac_tr_func 1
17886 else
17887 echo "$ac_t""no" 1>&6
17888 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
17890 done
17899 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
17900 echo "configure:17901: checking for mbstate_t" >&5
17901 cat > conftest.$ac_ext <<EOF
17902 #line 17903 "configure"
17903 #include "confdefs.h"
17904 #include <wchar.h>
17905 int main() {
17906 mbstate_t teststate;
17907 ; return 0; }
17909 if { (eval echo configure:17910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17910 rm -rf conftest*
17911 have_mbstate_t=yes
17912 else
17913 echo "configure: failed program was:" >&5
17914 cat conftest.$ac_ext >&5
17915 rm -rf conftest*
17916 have_mbstate_t=no
17918 rm -f conftest*
17919 echo "$ac_t""$have_mbstate_t" 1>&6
17920 if test x"$have_mbstate_t" = xyes; then
17921 cat >> confdefs.h <<\EOF
17922 #define HAVE_MBSTATE_T 1
17927 for ac_hdr in wchar.h
17929 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17930 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17931 echo "configure:17932: checking for $ac_hdr" >&5
17932 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17933 echo $ac_n "(cached) $ac_c" 1>&6
17934 else
17935 cat > conftest.$ac_ext <<EOF
17936 #line 17937 "configure"
17937 #include "confdefs.h"
17938 #include <$ac_hdr>
17940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17941 { (eval echo configure:17942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17943 if test -z "$ac_err"; then
17944 rm -rf conftest*
17945 eval "ac_cv_header_$ac_safe=yes"
17946 else
17947 echo "$ac_err" >&5
17948 echo "configure: failed program was:" >&5
17949 cat conftest.$ac_ext >&5
17950 rm -rf conftest*
17951 eval "ac_cv_header_$ac_safe=no"
17953 rm -f conftest*
17955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17956 echo "$ac_t""yes" 1>&6
17957 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17958 cat >> confdefs.h <<EOF
17959 #define $ac_tr_hdr 1
17961 ac_has_wchar_h=yes
17962 else
17963 echo "$ac_t""no" 1>&6
17964 ac_has_wchar_h=no
17966 done
17968 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
17969 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
17970 echo "configure:17971: checking for wctype.h" >&5
17971 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17972 echo $ac_n "(cached) $ac_c" 1>&6
17973 else
17974 cat > conftest.$ac_ext <<EOF
17975 #line 17976 "configure"
17976 #include "confdefs.h"
17977 #include <wctype.h>
17979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17980 { (eval echo configure:17981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17981 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17982 if test -z "$ac_err"; then
17983 rm -rf conftest*
17984 eval "ac_cv_header_$ac_safe=yes"
17985 else
17986 echo "$ac_err" >&5
17987 echo "configure: failed program was:" >&5
17988 cat conftest.$ac_ext >&5
17989 rm -rf conftest*
17990 eval "ac_cv_header_$ac_safe=no"
17992 rm -f conftest*
17994 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17995 echo "$ac_t""yes" 1>&6
17996 ac_has_wctype_h=yes
17997 else
17998 echo "$ac_t""no" 1>&6
17999 ac_has_wctype_h=no
18003 if test x"$ac_has_wchar_h" = xyes &&
18004 test x"$ac_has_wctype_h" = xyes &&
18005 test x"$enable_c_mbchar" != xno; then
18007 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
18008 echo "configure:18009: checking for WCHAR_MIN and WCHAR_MAX" >&5
18009 cat > conftest.$ac_ext <<EOF
18010 #line 18011 "configure"
18011 #include "confdefs.h"
18012 #include <wchar.h>
18013 int main() {
18014 int i = WCHAR_MIN; int j = WCHAR_MAX;
18015 ; return 0; }
18017 if { (eval echo configure:18018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18018 rm -rf conftest*
18019 has_wchar_minmax=yes
18020 else
18021 echo "configure: failed program was:" >&5
18022 cat conftest.$ac_ext >&5
18023 rm -rf conftest*
18024 has_wchar_minmax=no
18026 rm -f conftest*
18027 echo "$ac_t""$has_wchar_minmax" 1>&6
18029 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
18030 echo "configure:18031: checking for WEOF" >&5
18031 cat > conftest.$ac_ext <<EOF
18032 #line 18033 "configure"
18033 #include "confdefs.h"
18035 #include <wchar.h>
18036 #include <stddef.h>
18037 int main() {
18038 wint_t i = WEOF;
18039 ; return 0; }
18041 if { (eval echo configure:18042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18042 rm -rf conftest*
18043 has_weof=yes
18044 else
18045 echo "configure: failed program was:" >&5
18046 cat conftest.$ac_ext >&5
18047 rm -rf conftest*
18048 has_weof=no
18050 rm -f conftest*
18051 echo "$ac_t""$has_weof" 1>&6
18053 ac_wfuncs=yes
18054 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
18056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18057 echo "configure:18058: checking for $ac_func" >&5
18058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18059 echo $ac_n "(cached) $ac_c" 1>&6
18060 else
18061 cat > conftest.$ac_ext <<EOF
18062 #line 18063 "configure"
18063 #include "confdefs.h"
18064 /* System header to define __stub macros and hopefully few prototypes,
18065 which can conflict with char $ac_func(); below. */
18066 #include <assert.h>
18067 /* Override any gcc2 internal prototype to avoid an error. */
18068 /* We use char because int might match the return type of a gcc2
18069 builtin and then its argument prototype would still apply. */
18070 char $ac_func();
18072 int main() {
18074 /* The GNU C library defines this for functions which it implements
18075 to always fail with ENOSYS. Some functions are actually named
18076 something starting with __ and the normal name is an alias. */
18077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18078 choke me
18079 #else
18080 $ac_func();
18081 #endif
18083 ; return 0; }
18085 if { (eval echo configure:18086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18086 rm -rf conftest*
18087 eval "ac_cv_func_$ac_func=yes"
18088 else
18089 echo "configure: failed program was:" >&5
18090 cat conftest.$ac_ext >&5
18091 rm -rf conftest*
18092 eval "ac_cv_func_$ac_func=no"
18094 rm -f conftest*
18097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18098 echo "$ac_t""yes" 1>&6
18099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18100 cat >> confdefs.h <<EOF
18101 #define $ac_tr_func 1
18104 else
18105 echo "$ac_t""no" 1>&6
18107 ac_wfuncs=no
18109 done
18112 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
18113 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
18114 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
18115 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
18116 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
18117 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
18119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18120 echo "configure:18121: checking for $ac_func" >&5
18121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18122 echo $ac_n "(cached) $ac_c" 1>&6
18123 else
18124 cat > conftest.$ac_ext <<EOF
18125 #line 18126 "configure"
18126 #include "confdefs.h"
18127 /* System header to define __stub macros and hopefully few prototypes,
18128 which can conflict with char $ac_func(); below. */
18129 #include <assert.h>
18130 /* Override any gcc2 internal prototype to avoid an error. */
18131 /* We use char because int might match the return type of a gcc2
18132 builtin and then its argument prototype would still apply. */
18133 char $ac_func();
18135 int main() {
18137 /* The GNU C library defines this for functions which it implements
18138 to always fail with ENOSYS. Some functions are actually named
18139 something starting with __ and the normal name is an alias. */
18140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18141 choke me
18142 #else
18143 $ac_func();
18144 #endif
18146 ; return 0; }
18148 if { (eval echo configure:18149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18149 rm -rf conftest*
18150 eval "ac_cv_func_$ac_func=yes"
18151 else
18152 echo "configure: failed program was:" >&5
18153 cat conftest.$ac_ext >&5
18154 rm -rf conftest*
18155 eval "ac_cv_func_$ac_func=no"
18157 rm -f conftest*
18160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18161 echo "$ac_t""yes" 1>&6
18162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18163 cat >> confdefs.h <<EOF
18164 #define $ac_tr_func 1
18167 else
18168 echo "$ac_t""no" 1>&6
18170 ac_wfuncs=no
18172 done
18175 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
18176 echo "configure:18177: checking for ISO C99 wchar_t support" >&5
18177 if test x"$has_weof" = xyes &&
18178 test x"$has_wchar_minmax" = xyes &&
18179 test x"$ac_wfuncs" = xyes; then
18180 ac_isoC99_wchar_t=yes
18181 else
18182 ac_isoC99_wchar_t=no
18184 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
18186 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
18187 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
18188 echo "configure:18189: checking for iconv.h" >&5
18189 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18190 echo $ac_n "(cached) $ac_c" 1>&6
18191 else
18192 cat > conftest.$ac_ext <<EOF
18193 #line 18194 "configure"
18194 #include "confdefs.h"
18195 #include <iconv.h>
18197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18198 { (eval echo configure:18199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18200 if test -z "$ac_err"; then
18201 rm -rf conftest*
18202 eval "ac_cv_header_$ac_safe=yes"
18203 else
18204 echo "$ac_err" >&5
18205 echo "configure: failed program was:" >&5
18206 cat conftest.$ac_ext >&5
18207 rm -rf conftest*
18208 eval "ac_cv_header_$ac_safe=no"
18210 rm -f conftest*
18212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18213 echo "$ac_t""yes" 1>&6
18214 ac_has_iconv_h=yes
18215 else
18216 echo "$ac_t""no" 1>&6
18217 ac_has_iconv_h=no
18220 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
18221 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
18222 echo "configure:18223: checking for langinfo.h" >&5
18223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18224 echo $ac_n "(cached) $ac_c" 1>&6
18225 else
18226 cat > conftest.$ac_ext <<EOF
18227 #line 18228 "configure"
18228 #include "confdefs.h"
18229 #include <langinfo.h>
18231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18232 { (eval echo configure:18233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18234 if test -z "$ac_err"; then
18235 rm -rf conftest*
18236 eval "ac_cv_header_$ac_safe=yes"
18237 else
18238 echo "$ac_err" >&5
18239 echo "configure: failed program was:" >&5
18240 cat conftest.$ac_ext >&5
18241 rm -rf conftest*
18242 eval "ac_cv_header_$ac_safe=no"
18244 rm -f conftest*
18246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18247 echo "$ac_t""yes" 1>&6
18248 ac_has_langinfo_h=yes
18249 else
18250 echo "$ac_t""no" 1>&6
18251 ac_has_langinfo_h=no
18255 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
18256 echo "configure:18257: checking for iconv in -liconv" >&5
18257 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
18258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18259 echo $ac_n "(cached) $ac_c" 1>&6
18260 else
18261 ac_save_LIBS="$LIBS"
18262 LIBS="-liconv $LIBS"
18263 cat > conftest.$ac_ext <<EOF
18264 #line 18265 "configure"
18265 #include "confdefs.h"
18266 /* Override any gcc2 internal prototype to avoid an error. */
18267 /* We use char because int might match the return type of a gcc2
18268 builtin and then its argument prototype would still apply. */
18269 char iconv();
18271 int main() {
18272 iconv()
18273 ; return 0; }
18275 if { (eval echo configure:18276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18276 rm -rf conftest*
18277 eval "ac_cv_lib_$ac_lib_var=yes"
18278 else
18279 echo "configure: failed program was:" >&5
18280 cat conftest.$ac_ext >&5
18281 rm -rf conftest*
18282 eval "ac_cv_lib_$ac_lib_var=no"
18284 rm -f conftest*
18285 LIBS="$ac_save_LIBS"
18288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18289 echo "$ac_t""yes" 1>&6
18290 libiconv="-liconv"
18291 else
18292 echo "$ac_t""no" 1>&6
18295 ac_save_LIBS="$LIBS"
18296 LIBS="$LIBS $libiconv"
18298 for ac_func in iconv_open iconv_close iconv nl_langinfo
18300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18301 echo "configure:18302: checking for $ac_func" >&5
18302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18303 echo $ac_n "(cached) $ac_c" 1>&6
18304 else
18305 cat > conftest.$ac_ext <<EOF
18306 #line 18307 "configure"
18307 #include "confdefs.h"
18308 /* System header to define __stub macros and hopefully few prototypes,
18309 which can conflict with char $ac_func(); below. */
18310 #include <assert.h>
18311 /* Override any gcc2 internal prototype to avoid an error. */
18312 /* We use char because int might match the return type of a gcc2
18313 builtin and then its argument prototype would still apply. */
18314 char $ac_func();
18316 int main() {
18318 /* The GNU C library defines this for functions which it implements
18319 to always fail with ENOSYS. Some functions are actually named
18320 something starting with __ and the normal name is an alias. */
18321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18322 choke me
18323 #else
18324 $ac_func();
18325 #endif
18327 ; return 0; }
18329 if { (eval echo configure:18330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18330 rm -rf conftest*
18331 eval "ac_cv_func_$ac_func=yes"
18332 else
18333 echo "configure: failed program was:" >&5
18334 cat conftest.$ac_ext >&5
18335 rm -rf conftest*
18336 eval "ac_cv_func_$ac_func=no"
18338 rm -f conftest*
18341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18342 echo "$ac_t""yes" 1>&6
18343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18344 cat >> confdefs.h <<EOF
18345 #define $ac_tr_func 1
18348 ac_XPG2funcs=yes
18349 else
18350 echo "$ac_t""no" 1>&6
18351 ac_XPG2funcs=no
18353 done
18356 LIBS="$ac_save_LIBS"
18358 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
18359 echo "configure:18360: checking for XPG2 wchar_t support" >&5
18360 if test x"$ac_has_iconv_h" = xyes &&
18361 test x"$ac_has_langinfo_h" = xyes &&
18362 test x"$ac_XPG2funcs" = xyes; then
18363 ac_XPG2_wchar_t=yes
18364 else
18365 ac_XPG2_wchar_t=no
18367 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
18369 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
18370 echo "configure:18371: checking for enabled wchar_t specializations" >&5
18371 if test x"$ac_isoC99_wchar_t" = xyes &&
18372 test x"$ac_XPG2_wchar_t" = xyes; then
18373 cat >> confdefs.h <<\EOF
18374 #define _GLIBCPP_USE_WCHAR_T 1
18377 echo "$ac_t"""yes"" 1>&6
18378 else
18379 echo "$ac_t"""no"" 1>&6
18381 else
18382 echo "configure: warning: wchar_t support disabled." 1>&2
18386 ac_test_CXXFLAGS="${CXXFLAGS+set}"
18387 ac_save_CXXFLAGS="$CXXFLAGS"
18388 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
18391 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
18392 echo "configure:18393: checking for strtold declaration" >&5
18393 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
18394 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
18395 echo $ac_n "(cached) $ac_c" 1>&6
18396 else
18399 ac_ext=C
18400 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18401 ac_cpp='$CXXCPP $CPPFLAGS'
18402 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18403 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18404 cross_compiling=$ac_cv_prog_cxx_cross
18406 cat > conftest.$ac_ext <<EOF
18407 #line 18408 "configure"
18408 #include "confdefs.h"
18409 #include <stdlib.h>
18410 int main() {
18411 strtold(0, 0);
18412 ; return 0; }
18414 if { (eval echo configure:18415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18415 rm -rf conftest*
18416 glibcpp_cv_func_strtold_use=yes
18417 else
18418 echo "configure: failed program was:" >&5
18419 cat conftest.$ac_ext >&5
18420 rm -rf conftest*
18421 glibcpp_cv_func_strtold_use=no
18423 rm -f conftest*
18424 ac_ext=c
18425 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18426 ac_cpp='$CPP $CPPFLAGS'
18427 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18428 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18429 cross_compiling=$ac_cv_prog_cc_cross
18435 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
18436 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
18437 for ac_func in strtold
18439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18440 echo "configure:18441: checking for $ac_func" >&5
18441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18442 echo $ac_n "(cached) $ac_c" 1>&6
18443 else
18444 cat > conftest.$ac_ext <<EOF
18445 #line 18446 "configure"
18446 #include "confdefs.h"
18447 /* System header to define __stub macros and hopefully few prototypes,
18448 which can conflict with char $ac_func(); below. */
18449 #include <assert.h>
18450 /* Override any gcc2 internal prototype to avoid an error. */
18451 /* We use char because int might match the return type of a gcc2
18452 builtin and then its argument prototype would still apply. */
18453 char $ac_func();
18455 int main() {
18457 /* The GNU C library defines this for functions which it implements
18458 to always fail with ENOSYS. Some functions are actually named
18459 something starting with __ and the normal name is an alias. */
18460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18461 choke me
18462 #else
18463 $ac_func();
18464 #endif
18466 ; return 0; }
18468 if { (eval echo configure:18469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18469 rm -rf conftest*
18470 eval "ac_cv_func_$ac_func=yes"
18471 else
18472 echo "configure: failed program was:" >&5
18473 cat conftest.$ac_ext >&5
18474 rm -rf conftest*
18475 eval "ac_cv_func_$ac_func=no"
18477 rm -f conftest*
18480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18481 echo "$ac_t""yes" 1>&6
18482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18483 cat >> confdefs.h <<EOF
18484 #define $ac_tr_func 1
18487 else
18488 echo "$ac_t""no" 1>&6
18490 done
18495 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
18496 echo "configure:18497: checking for strtof declaration" >&5
18497 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
18498 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
18499 echo $ac_n "(cached) $ac_c" 1>&6
18500 else
18503 ac_ext=C
18504 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18505 ac_cpp='$CXXCPP $CPPFLAGS'
18506 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18507 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18508 cross_compiling=$ac_cv_prog_cxx_cross
18510 cat > conftest.$ac_ext <<EOF
18511 #line 18512 "configure"
18512 #include "confdefs.h"
18513 #include <stdlib.h>
18514 int main() {
18515 strtof(0, 0);
18516 ; return 0; }
18518 if { (eval echo configure:18519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18519 rm -rf conftest*
18520 glibcpp_cv_func_strtof_use=yes
18521 else
18522 echo "configure: failed program was:" >&5
18523 cat conftest.$ac_ext >&5
18524 rm -rf conftest*
18525 glibcpp_cv_func_strtof_use=no
18527 rm -f conftest*
18528 ac_ext=c
18529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18530 ac_cpp='$CPP $CPPFLAGS'
18531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18532 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18533 cross_compiling=$ac_cv_prog_cc_cross
18539 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
18540 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
18541 for ac_func in strtof
18543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18544 echo "configure:18545: checking for $ac_func" >&5
18545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18546 echo $ac_n "(cached) $ac_c" 1>&6
18547 else
18548 cat > conftest.$ac_ext <<EOF
18549 #line 18550 "configure"
18550 #include "confdefs.h"
18551 /* System header to define __stub macros and hopefully few prototypes,
18552 which can conflict with char $ac_func(); below. */
18553 #include <assert.h>
18554 /* Override any gcc2 internal prototype to avoid an error. */
18555 /* We use char because int might match the return type of a gcc2
18556 builtin and then its argument prototype would still apply. */
18557 char $ac_func();
18559 int main() {
18561 /* The GNU C library defines this for functions which it implements
18562 to always fail with ENOSYS. Some functions are actually named
18563 something starting with __ and the normal name is an alias. */
18564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18565 choke me
18566 #else
18567 $ac_func();
18568 #endif
18570 ; return 0; }
18572 if { (eval echo configure:18573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18573 rm -rf conftest*
18574 eval "ac_cv_func_$ac_func=yes"
18575 else
18576 echo "configure: failed program was:" >&5
18577 cat conftest.$ac_ext >&5
18578 rm -rf conftest*
18579 eval "ac_cv_func_$ac_func=no"
18581 rm -f conftest*
18584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18585 echo "$ac_t""yes" 1>&6
18586 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18587 cat >> confdefs.h <<EOF
18588 #define $ac_tr_func 1
18591 else
18592 echo "$ac_t""no" 1>&6
18594 done
18598 for ac_func in drand48
18600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18601 echo "configure:18602: checking for $ac_func" >&5
18602 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18603 echo $ac_n "(cached) $ac_c" 1>&6
18604 else
18605 cat > conftest.$ac_ext <<EOF
18606 #line 18607 "configure"
18607 #include "confdefs.h"
18608 /* System header to define __stub macros and hopefully few prototypes,
18609 which can conflict with char $ac_func(); below. */
18610 #include <assert.h>
18611 /* Override any gcc2 internal prototype to avoid an error. */
18612 /* We use char because int might match the return type of a gcc2
18613 builtin and then its argument prototype would still apply. */
18614 char $ac_func();
18616 int main() {
18618 /* The GNU C library defines this for functions which it implements
18619 to always fail with ENOSYS. Some functions are actually named
18620 something starting with __ and the normal name is an alias. */
18621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18622 choke me
18623 #else
18624 $ac_func();
18625 #endif
18627 ; return 0; }
18629 if { (eval echo configure:18630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18630 rm -rf conftest*
18631 eval "ac_cv_func_$ac_func=yes"
18632 else
18633 echo "configure: failed program was:" >&5
18634 cat conftest.$ac_ext >&5
18635 rm -rf conftest*
18636 eval "ac_cv_func_$ac_func=no"
18638 rm -f conftest*
18641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18642 echo "$ac_t""yes" 1>&6
18643 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18644 cat >> confdefs.h <<EOF
18645 #define $ac_tr_func 1
18648 else
18649 echo "$ac_t""no" 1>&6
18651 done
18654 CXXFLAGS="$ac_save_CXXFLAGS"
18657 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
18658 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
18659 echo "configure:18660: checking for locale.h" >&5
18660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18661 echo $ac_n "(cached) $ac_c" 1>&6
18662 else
18663 cat > conftest.$ac_ext <<EOF
18664 #line 18665 "configure"
18665 #include "confdefs.h"
18666 #include <locale.h>
18668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18669 { (eval echo configure:18670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18671 if test -z "$ac_err"; then
18672 rm -rf conftest*
18673 eval "ac_cv_header_$ac_safe=yes"
18674 else
18675 echo "$ac_err" >&5
18676 echo "configure: failed program was:" >&5
18677 cat conftest.$ac_ext >&5
18678 rm -rf conftest*
18679 eval "ac_cv_header_$ac_safe=no"
18681 rm -f conftest*
18683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18684 echo "$ac_t""yes" 1>&6
18686 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
18687 echo "configure:18688: checking for LC_MESSAGES" >&5
18688 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
18689 echo $ac_n "(cached) $ac_c" 1>&6
18690 else
18691 cat > conftest.$ac_ext <<EOF
18692 #line 18693 "configure"
18693 #include "confdefs.h"
18694 #include <locale.h>
18695 int main() {
18696 return LC_MESSAGES
18697 ; return 0; }
18699 if { (eval echo configure:18700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18700 rm -rf conftest*
18701 ac_cv_val_LC_MESSAGES=yes
18702 else
18703 echo "configure: failed program was:" >&5
18704 cat conftest.$ac_ext >&5
18705 rm -rf conftest*
18706 ac_cv_val_LC_MESSAGES=no
18708 rm -f conftest*
18711 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
18712 if test $ac_cv_val_LC_MESSAGES = yes; then
18713 cat >> confdefs.h <<\EOF
18714 #define HAVE_LC_MESSAGES 1
18719 else
18720 echo "$ac_t""no" 1>&6
18725 cat > conftest.$ac_ext <<EOF
18726 #line 18727 "configure"
18727 #include "confdefs.h"
18729 #include <setjmp.h>
18731 int main() {
18732 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
18733 ; return 0; }
18735 if { (eval echo configure:18736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18736 rm -rf conftest*
18737 cat >> confdefs.h <<\EOF
18738 #define HAVE_SIGSETJMP 1
18742 else
18743 echo "configure: failed program was:" >&5
18744 cat conftest.$ac_ext >&5
18746 rm -f conftest*
18748 for ac_hdr in unistd.h
18750 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18751 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18752 echo "configure:18753: checking for $ac_hdr" >&5
18753 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18754 echo $ac_n "(cached) $ac_c" 1>&6
18755 else
18756 cat > conftest.$ac_ext <<EOF
18757 #line 18758 "configure"
18758 #include "confdefs.h"
18759 #include <$ac_hdr>
18761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18762 { (eval echo configure:18763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18764 if test -z "$ac_err"; then
18765 rm -rf conftest*
18766 eval "ac_cv_header_$ac_safe=yes"
18767 else
18768 echo "$ac_err" >&5
18769 echo "configure: failed program was:" >&5
18770 cat conftest.$ac_ext >&5
18771 rm -rf conftest*
18772 eval "ac_cv_header_$ac_safe=no"
18774 rm -f conftest*
18776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18777 echo "$ac_t""yes" 1>&6
18778 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18779 cat >> confdefs.h <<EOF
18780 #define $ac_tr_hdr 1
18783 else
18784 echo "$ac_t""no" 1>&6
18786 done
18788 for ac_func in getpagesize
18790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18791 echo "configure:18792: checking for $ac_func" >&5
18792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18793 echo $ac_n "(cached) $ac_c" 1>&6
18794 else
18795 cat > conftest.$ac_ext <<EOF
18796 #line 18797 "configure"
18797 #include "confdefs.h"
18798 /* System header to define __stub macros and hopefully few prototypes,
18799 which can conflict with char $ac_func(); below. */
18800 #include <assert.h>
18801 /* Override any gcc2 internal prototype to avoid an error. */
18802 /* We use char because int might match the return type of a gcc2
18803 builtin and then its argument prototype would still apply. */
18804 char $ac_func();
18806 int main() {
18808 /* The GNU C library defines this for functions which it implements
18809 to always fail with ENOSYS. Some functions are actually named
18810 something starting with __ and the normal name is an alias. */
18811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18812 choke me
18813 #else
18814 $ac_func();
18815 #endif
18817 ; return 0; }
18819 if { (eval echo configure:18820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18820 rm -rf conftest*
18821 eval "ac_cv_func_$ac_func=yes"
18822 else
18823 echo "configure: failed program was:" >&5
18824 cat conftest.$ac_ext >&5
18825 rm -rf conftest*
18826 eval "ac_cv_func_$ac_func=no"
18828 rm -f conftest*
18831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18832 echo "$ac_t""yes" 1>&6
18833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18834 cat >> confdefs.h <<EOF
18835 #define $ac_tr_func 1
18838 else
18839 echo "$ac_t""no" 1>&6
18841 done
18843 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
18844 echo "configure:18845: checking for working mmap" >&5
18845 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
18846 echo $ac_n "(cached) $ac_c" 1>&6
18847 else
18848 if test "$cross_compiling" = yes; then
18849 ac_cv_func_mmap_fixed_mapped=no
18850 else
18851 cat > conftest.$ac_ext <<EOF
18852 #line 18853 "configure"
18853 #include "confdefs.h"
18855 /* Thanks to Mike Haertel and Jim Avera for this test.
18856 Here is a matrix of mmap possibilities:
18857 mmap private not fixed
18858 mmap private fixed at somewhere currently unmapped
18859 mmap private fixed at somewhere already mapped
18860 mmap shared not fixed
18861 mmap shared fixed at somewhere currently unmapped
18862 mmap shared fixed at somewhere already mapped
18863 For private mappings, we should verify that changes cannot be read()
18864 back from the file, nor mmap's back from the file at a different
18865 address. (There have been systems where private was not correctly
18866 implemented like the infamous i386 svr4.0, and systems where the
18867 VM page cache was not coherent with the filesystem buffer cache
18868 like early versions of FreeBSD and possibly contemporary NetBSD.)
18869 For shared mappings, we should conversely verify that changes get
18870 propogated back to all the places they're supposed to be.
18872 Grep wants private fixed already mapped.
18873 The main things grep needs to know about mmap are:
18874 * does it exist and is it safe to write into the mmap'd area
18875 * how to use it (BSD variants) */
18876 #include <sys/types.h>
18877 #include <fcntl.h>
18878 #include <sys/mman.h>
18880 /* This mess was copied from the GNU getpagesize.h. */
18881 #ifndef HAVE_GETPAGESIZE
18882 # ifdef HAVE_UNISTD_H
18883 # include <unistd.h>
18884 # endif
18886 /* Assume that all systems that can run configure have sys/param.h. */
18887 # ifndef HAVE_SYS_PARAM_H
18888 # define HAVE_SYS_PARAM_H 1
18889 # endif
18891 # ifdef _SC_PAGESIZE
18892 # define getpagesize() sysconf(_SC_PAGESIZE)
18893 # else /* no _SC_PAGESIZE */
18894 # ifdef HAVE_SYS_PARAM_H
18895 # include <sys/param.h>
18896 # ifdef EXEC_PAGESIZE
18897 # define getpagesize() EXEC_PAGESIZE
18898 # else /* no EXEC_PAGESIZE */
18899 # ifdef NBPG
18900 # define getpagesize() NBPG * CLSIZE
18901 # ifndef CLSIZE
18902 # define CLSIZE 1
18903 # endif /* no CLSIZE */
18904 # else /* no NBPG */
18905 # ifdef NBPC
18906 # define getpagesize() NBPC
18907 # else /* no NBPC */
18908 # ifdef PAGESIZE
18909 # define getpagesize() PAGESIZE
18910 # endif /* PAGESIZE */
18911 # endif /* no NBPC */
18912 # endif /* no NBPG */
18913 # endif /* no EXEC_PAGESIZE */
18914 # else /* no HAVE_SYS_PARAM_H */
18915 # define getpagesize() 8192 /* punt totally */
18916 # endif /* no HAVE_SYS_PARAM_H */
18917 # endif /* no _SC_PAGESIZE */
18919 #endif /* no HAVE_GETPAGESIZE */
18921 #ifdef __cplusplus
18922 extern "C" { void *malloc(unsigned); }
18923 #else
18924 char *malloc();
18925 #endif
18928 main()
18930 char *data, *data2, *data3;
18931 int i, pagesize;
18932 int fd;
18934 pagesize = getpagesize();
18937 * First, make a file with some known garbage in it.
18939 data = malloc(pagesize);
18940 if (!data)
18941 exit(1);
18942 for (i = 0; i < pagesize; ++i)
18943 *(data + i) = rand();
18944 umask(0);
18945 fd = creat("conftestmmap", 0600);
18946 if (fd < 0)
18947 exit(1);
18948 if (write(fd, data, pagesize) != pagesize)
18949 exit(1);
18950 close(fd);
18953 * Next, try to mmap the file at a fixed address which
18954 * already has something else allocated at it. If we can,
18955 * also make sure that we see the same garbage.
18957 fd = open("conftestmmap", O_RDWR);
18958 if (fd < 0)
18959 exit(1);
18960 data2 = malloc(2 * pagesize);
18961 if (!data2)
18962 exit(1);
18963 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
18964 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
18965 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18966 exit(1);
18967 for (i = 0; i < pagesize; ++i)
18968 if (*(data + i) != *(data2 + i))
18969 exit(1);
18972 * Finally, make sure that changes to the mapped area
18973 * do not percolate back to the file as seen by read().
18974 * (This is a bug on some variants of i386 svr4.0.)
18976 for (i = 0; i < pagesize; ++i)
18977 *(data2 + i) = *(data2 + i) + 1;
18978 data3 = malloc(pagesize);
18979 if (!data3)
18980 exit(1);
18981 if (read(fd, data3, pagesize) != pagesize)
18982 exit(1);
18983 for (i = 0; i < pagesize; ++i)
18984 if (*(data + i) != *(data3 + i))
18985 exit(1);
18986 close(fd);
18987 unlink("conftestmmap");
18988 exit(0);
18992 if { (eval echo configure:18993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18993 then
18994 ac_cv_func_mmap_fixed_mapped=yes
18995 else
18996 echo "configure: failed program was:" >&5
18997 cat conftest.$ac_ext >&5
18998 rm -fr conftest*
18999 ac_cv_func_mmap_fixed_mapped=no
19001 rm -fr conftest*
19006 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
19007 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19008 cat >> confdefs.h <<\EOF
19009 #define HAVE_MMAP 1
19015 # Establish limits on memory usage during 'make check'
19018 setrlimit_have_headers=yes
19019 for ac_hdr in sys/resource.h unistd.h
19021 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19022 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19023 echo "configure:19024: checking for $ac_hdr" >&5
19024 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19025 echo $ac_n "(cached) $ac_c" 1>&6
19026 else
19027 cat > conftest.$ac_ext <<EOF
19028 #line 19029 "configure"
19029 #include "confdefs.h"
19030 #include <$ac_hdr>
19032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19033 { (eval echo configure:19034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19035 if test -z "$ac_err"; then
19036 rm -rf conftest*
19037 eval "ac_cv_header_$ac_safe=yes"
19038 else
19039 echo "$ac_err" >&5
19040 echo "configure: failed program was:" >&5
19041 cat conftest.$ac_ext >&5
19042 rm -rf conftest*
19043 eval "ac_cv_header_$ac_safe=no"
19045 rm -f conftest*
19047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19048 echo "$ac_t""yes" 1>&6
19049 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19050 cat >> confdefs.h <<EOF
19051 #define $ac_tr_hdr 1
19054 else
19055 echo "$ac_t""no" 1>&6
19056 setrlimit_have_headers=no
19058 done
19060 # If don't have the headers, then we can't run the tests now, and we
19061 # won't be seeing any of these during testsuite compilation.
19062 if test $setrlimit_have_headers = yes; then
19063 # Can't do these in a loop, else the resulting syntax is wrong.
19065 cat > conftest.$ac_ext <<EOF
19066 #line 19067 "configure"
19067 #include "confdefs.h"
19068 #include <sys/resource.h>
19069 #include <unistd.h>
19071 int main() {
19072 int f = RLIMIT_DATA ;
19073 ; return 0; }
19075 if { (eval echo configure:19076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19076 rm -rf conftest*
19077 glibcpp_mresult=1
19078 else
19079 echo "configure: failed program was:" >&5
19080 cat conftest.$ac_ext >&5
19081 rm -rf conftest*
19082 glibcpp_mresult=0
19084 rm -f conftest*
19085 cat >> confdefs.h <<EOF
19086 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
19091 cat > conftest.$ac_ext <<EOF
19092 #line 19093 "configure"
19093 #include "confdefs.h"
19094 #include <sys/resource.h>
19095 #include <unistd.h>
19097 int main() {
19098 int f = RLIMIT_RSS ;
19099 ; return 0; }
19101 if { (eval echo configure:19102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19102 rm -rf conftest*
19103 glibcpp_mresult=1
19104 else
19105 echo "configure: failed program was:" >&5
19106 cat conftest.$ac_ext >&5
19107 rm -rf conftest*
19108 glibcpp_mresult=0
19110 rm -f conftest*
19111 cat >> confdefs.h <<EOF
19112 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
19117 cat > conftest.$ac_ext <<EOF
19118 #line 19119 "configure"
19119 #include "confdefs.h"
19120 #include <sys/resource.h>
19121 #include <unistd.h>
19123 int main() {
19124 int f = RLIMIT_VMEM ;
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_mresult=1
19130 else
19131 echo "configure: failed program was:" >&5
19132 cat conftest.$ac_ext >&5
19133 rm -rf conftest*
19134 glibcpp_mresult=0
19136 rm -f conftest*
19137 cat >> confdefs.h <<EOF
19138 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
19143 cat > conftest.$ac_ext <<EOF
19144 #line 19145 "configure"
19145 #include "confdefs.h"
19146 #include <sys/resource.h>
19147 #include <unistd.h>
19149 int main() {
19150 int f = RLIMIT_AS ;
19151 ; return 0; }
19153 if { (eval echo configure:19154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19154 rm -rf conftest*
19155 glibcpp_mresult=1
19156 else
19157 echo "configure: failed program was:" >&5
19158 cat conftest.$ac_ext >&5
19159 rm -rf conftest*
19160 glibcpp_mresult=0
19162 rm -f conftest*
19163 cat >> confdefs.h <<EOF
19164 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
19169 # Check for rlimit, setrlimit.
19170 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
19171 echo $ac_n "(cached) $ac_c" 1>&6
19172 else
19174 cat > conftest.$ac_ext <<EOF
19175 #line 19176 "configure"
19176 #include "confdefs.h"
19177 #include <sys/resource.h>
19178 #include <unistd.h>
19180 int main() {
19181 struct rlimit r; setrlimit(0, &r);
19182 ; return 0; }
19184 if { (eval echo configure:19185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19185 rm -rf conftest*
19186 ac_setrlimit=yes
19187 else
19188 echo "configure: failed program was:" >&5
19189 cat conftest.$ac_ext >&5
19190 rm -rf conftest*
19191 ac_setrlimit=no
19193 rm -f conftest*
19199 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
19200 echo "configure:19201: checking for testsuite memory limit support" >&5
19201 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
19202 ac_mem_limits=yes
19203 cat >> confdefs.h <<\EOF
19204 #define _GLIBCPP_MEM_LIMITS 1
19207 else
19208 ac_mem_limits=no
19210 echo "$ac_t""$ac_mem_limits" 1>&6
19213 # Look for setenv, so that extended locale tests can be performed.
19214 for ac_func in setenv
19216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19217 echo "configure:19218: checking for $ac_func" >&5
19218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19219 echo $ac_n "(cached) $ac_c" 1>&6
19220 else
19221 cat > conftest.$ac_ext <<EOF
19222 #line 19223 "configure"
19223 #include "confdefs.h"
19224 /* System header to define __stub macros and hopefully few prototypes,
19225 which can conflict with char $ac_func(); below. */
19226 #include <assert.h>
19227 /* Override any gcc2 internal prototype to avoid an error. */
19228 /* We use char because int might match the return type of a gcc2
19229 builtin and then its argument prototype would still apply. */
19230 char $ac_func();
19232 int main() {
19234 /* The GNU C library defines this for functions which it implements
19235 to always fail with ENOSYS. Some functions are actually named
19236 something starting with __ and the normal name is an alias. */
19237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19238 choke me
19239 #else
19240 $ac_func();
19241 #endif
19243 ; return 0; }
19245 if { (eval echo configure:19246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19246 rm -rf conftest*
19247 eval "ac_cv_func_$ac_func=yes"
19248 else
19249 echo "configure: failed program was:" >&5
19250 cat conftest.$ac_ext >&5
19251 rm -rf conftest*
19252 eval "ac_cv_func_$ac_func=no"
19254 rm -f conftest*
19257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19258 echo "$ac_t""yes" 1>&6
19259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19260 cat >> confdefs.h <<EOF
19261 #define $ac_tr_func 1
19264 else
19265 echo "$ac_t""no" 1>&6
19267 done
19272 # This depends on the possibly-skipped linker test above.
19273 # Check whether --enable-symvers or --disable-symvers was given.
19274 if test "${enable_symvers+set}" = set; then
19275 enableval="$enable_symvers"
19276 case "$enableval" in
19277 yes) enable_symvers=default ;;
19278 no) enable_symvers=no ;;
19279 # other names here, just as sanity checks
19280 #gnu|sun|etcetera) enable_symvers=$enableval ;;
19281 gnu) enable_symvers=$enableval ;;
19282 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
19283 esac
19284 else
19285 enable_symvers=no
19288 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
19289 # don't know enough about $LD... I think.
19290 echo $ac_n "checking whether to version shared lib symbols""... $ac_c" 1>&6
19291 echo "configure:19292: checking whether to version shared lib symbols" >&5
19292 if test $enable_shared = no || test x$LD = x ; then
19293 enable_symvers=irrelevant
19296 # For GNU ld, we need at least this version. It's 2.12 in the same format
19297 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
19298 glibcpp_min_gnu_ld_version=21200
19300 LINKER_MAP=config/linker-map.dummy
19301 case $enable_symvers in
19302 no | irrelevant)
19304 gnu)
19305 LINKER_MAP=config/linker-map.gnu
19307 default) # not specified by user, try to figure it out
19308 if test $with_gnu_ld = yes &&
19309 test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ;
19310 then
19311 LINKER_MAP=config/linker-map.gnu
19312 else
19313 # just fail for now
19314 enable_symvers=no
19317 esac
19322 if test $enable_symvers != no && test $enable_symvers != irrelevant; then
19323 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
19324 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
19325 else
19326 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
19327 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
19329 echo "$ac_t""$enable_symvers" 1>&6
19332 # Propagate the target-specific source directories through the build chain.
19333 OS_INC_SRCDIR=$os_include_dir/bits
19334 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
19335 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
19340 # Set up cross-compile flags
19344 if test "$CANADIAN" = yes; then
19345 CANADIAN_TRUE=
19346 CANADIAN_FALSE='#'
19347 else
19348 CANADIAN_TRUE='#'
19349 CANADIAN_FALSE=
19352 cat > confcache <<\EOF
19353 # This file is a shell script that caches the results of configure
19354 # tests run on this system so they can be shared between configure
19355 # scripts and configure runs. It is not useful on other systems.
19356 # If it contains results you don't want to keep, you may remove or edit it.
19358 # By default, configure uses ./config.cache as the cache file,
19359 # creating it if it does not exist already. You can give configure
19360 # the --cache-file=FILE option to use a different cache file; that is
19361 # what configure does when it calls configure scripts in
19362 # subdirectories, so they share the cache.
19363 # Giving --cache-file=/dev/null disables caching, for debugging configure.
19364 # config.status only pays attention to the cache file if you give it the
19365 # --recheck option to rerun configure.
19368 # The following way of writing the cache mishandles newlines in values,
19369 # but we know of no workaround that is simple, portable, and efficient.
19370 # So, don't put newlines in cache variables' values.
19371 # Ultrix sh set writes to stderr and can't be redirected directly,
19372 # and sets the high bit in the cache file unless we assign to the vars.
19373 (set) 2>&1 |
19374 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19375 *ac_space=\ *)
19376 # `set' does not quote correctly, so add quotes (double-quote substitution
19377 # turns \\\\ into \\, and sed turns \\ into \).
19378 sed -n \
19379 -e "s/'/'\\\\''/g" \
19380 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19383 # `set' quotes correctly as required by POSIX, so do not add quotes.
19384 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19386 esac >> confcache
19387 if cmp -s $cache_file confcache; then
19389 else
19390 if test -w $cache_file; then
19391 echo "updating cache $cache_file"
19392 cat confcache > $cache_file
19393 else
19394 echo "not updating unwritable cache $cache_file"
19397 rm -f confcache
19400 if test "${multilib}" = "yes"; then
19401 multilib_arg="--enable-multilib"
19402 else
19403 multilib_arg=
19406 # Needed so that g++ can find the correct include subdir automatically.
19407 INTERFACE=v3
19409 # Export all the install information
19411 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
19412 # exported correctly in GLIBCPP_CONFIGURE.
19413 glibcpp_toolexecdir=no
19414 glibcpp_toolexeclibdir=no
19415 glibcpp_prefixdir=${prefix}
19417 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
19418 echo "configure:19419: checking for interface version number" >&5
19419 libstdcxx_interface=$INTERFACE
19420 echo "$ac_t""$libstdcxx_interface" 1>&6
19422 # Process the option --with-gxx-include-dir=<path to include-files directory>
19423 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
19424 echo "configure:19425: checking for --with-gxx-include-dir" >&5
19425 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
19426 if test "${with_gxx_include_dir+set}" = set; then
19427 withval="$with_gxx_include_dir"
19428 case "${withval}" in
19429 yes)
19430 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
19431 gxx_include_dir=no
19434 gxx_include_dir=no
19437 gxx_include_dir=${withval}
19439 esac
19440 else
19441 gxx_include_dir=no
19444 echo "$ac_t""$gxx_include_dir" 1>&6
19446 # Process the option "--enable-version-specific-runtime-libs"
19447 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
19448 echo "configure:19449: checking for --enable-version-specific-runtime-libs" >&5
19449 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
19450 if test "${enable_version_specific_runtime_libs+set}" = set; then
19451 enableval="$enable_version_specific_runtime_libs"
19452 case "$enableval" in
19453 yes) version_specific_libs=yes ;;
19454 no) version_specific_libs=no ;;
19455 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
19456 esac
19457 else
19458 version_specific_libs=no
19460 # Option set, now we can test it.
19461 echo "$ac_t""$version_specific_libs" 1>&6
19463 if test $version_specific_libs = yes; then
19464 # Need the gcc compiler version to know where to install libraries
19465 # and header files if --enable-version-specific-runtime-libs option
19466 # is selected.
19467 gcc_version_trigger=${srcdir}/../gcc/version.c
19468 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
19469 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
19470 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
19471 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
19472 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
19475 # Default case for install directory for include files.
19476 if test $version_specific_libs = no &&
19477 test $gxx_include_dir = no; then
19478 gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
19481 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
19482 # Install a library built with a cross compiler in tooldir, not libdir.
19483 if test x"$glibcpp_toolexecdir" = x"no"; then
19484 if test -n "$with_cross_host" &&
19485 test x"$with_cross_host" != x"no"; then
19486 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
19487 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
19488 else
19489 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
19490 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
19494 echo $ac_n "checking for install location""... $ac_c" 1>&6
19495 echo "configure:19496: checking for install location" >&5
19496 echo "$ac_t""$gxx_include_dir" 1>&6
19504 # Export all the include and flag information to makefiles.
19506 # Root level of the build directory include sources.
19507 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
19509 # Passed down for canadian crosses.
19510 if test x"$CANADIAN" = xyes; then
19511 TOPLEVEL_INCLUDES='-I$(includedir)'
19514 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
19516 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
19518 if test x"$need_libio" = xyes; then
19519 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
19523 # Now, export this to all the little Makefiles....
19530 # Optimization flags that are probably a good idea for thrill-seekers. Just
19531 # uncomment the lines below and make, everything else is ready to go...
19532 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
19533 OPTIMIZE_CXXFLAGS=
19536 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
19540 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
19541 grep "enable shared" > /dev/null; then
19542 LIBSUPCXX_PICFLAGS=-prefer-pic
19543 else
19544 LIBSUPCXX_PICFLAGS=
19548 # Generate the various Makefiles, include files, and scripts.
19549 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
19550 # and libsupc++/Makefile.am so that multilib installs will end up
19551 # installed in the correct place. To work around this not being passed
19552 # down from config-ml.in -> top_srcdir/Makefile.am ->
19553 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
19554 trap '' 1 2 15
19555 cat > confcache <<\EOF
19556 # This file is a shell script that caches the results of configure
19557 # tests run on this system so they can be shared between configure
19558 # scripts and configure runs. It is not useful on other systems.
19559 # If it contains results you don't want to keep, you may remove or edit it.
19561 # By default, configure uses ./config.cache as the cache file,
19562 # creating it if it does not exist already. You can give configure
19563 # the --cache-file=FILE option to use a different cache file; that is
19564 # what configure does when it calls configure scripts in
19565 # subdirectories, so they share the cache.
19566 # Giving --cache-file=/dev/null disables caching, for debugging configure.
19567 # config.status only pays attention to the cache file if you give it the
19568 # --recheck option to rerun configure.
19571 # The following way of writing the cache mishandles newlines in values,
19572 # but we know of no workaround that is simple, portable, and efficient.
19573 # So, don't put newlines in cache variables' values.
19574 # Ultrix sh set writes to stderr and can't be redirected directly,
19575 # and sets the high bit in the cache file unless we assign to the vars.
19576 (set) 2>&1 |
19577 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19578 *ac_space=\ *)
19579 # `set' does not quote correctly, so add quotes (double-quote substitution
19580 # turns \\\\ into \\, and sed turns \\ into \).
19581 sed -n \
19582 -e "s/'/'\\\\''/g" \
19583 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19586 # `set' quotes correctly as required by POSIX, so do not add quotes.
19587 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19589 esac >> confcache
19590 if cmp -s $cache_file confcache; then
19592 else
19593 if test -w $cache_file; then
19594 echo "updating cache $cache_file"
19595 cat confcache > $cache_file
19596 else
19597 echo "not updating unwritable cache $cache_file"
19600 rm -f confcache
19602 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19604 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19605 # Let make expand exec_prefix.
19606 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19608 # Any assignment to VPATH causes Sun make to only execute
19609 # the first set of double-colon rules, so remove it if not needed.
19610 # If there is a colon in the path, we need to keep it.
19611 if test "x$srcdir" = x.; then
19612 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
19615 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19617 DEFS=-DHAVE_CONFIG_H
19619 # Without the "./", some shells look in PATH for config.status.
19620 : ${CONFIG_STATUS=./config.status}
19622 echo creating $CONFIG_STATUS
19623 rm -f $CONFIG_STATUS
19624 cat > $CONFIG_STATUS <<EOF
19625 #! /bin/sh
19626 # Generated automatically by configure.
19627 # Run this file to recreate the current configuration.
19628 # This directory was configured as follows,
19629 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19631 # $0 $ac_configure_args
19633 # Compiler output produced by configure, useful for debugging
19634 # configure, is in ./config.log if it exists.
19636 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19637 for ac_option
19639 case "\$ac_option" in
19640 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19641 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19642 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19643 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19644 echo "$CONFIG_STATUS generated by autoconf version 2.13"
19645 exit 0 ;;
19646 -help | --help | --hel | --he | --h)
19647 echo "\$ac_cs_usage"; exit 0 ;;
19648 *) echo "\$ac_cs_usage"; exit 1 ;;
19649 esac
19650 done
19652 ac_given_srcdir=$srcdir
19653 ac_given_INSTALL="$INSTALL"
19655 trap 'rm -fr `echo "Makefile \
19656 include/Makefile src/Makefile \
19657 libmath/Makefile libio/Makefile libsupc++/Makefile \
19658 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
19660 cat >> $CONFIG_STATUS <<EOF
19662 # Protect against being on the right side of a sed subst in config.status.
19663 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19664 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19665 $ac_vpsub
19666 $extrasub
19667 s%@SHELL@%$SHELL%g
19668 s%@CFLAGS@%$CFLAGS%g
19669 s%@CPPFLAGS@%$CPPFLAGS%g
19670 s%@CXXFLAGS@%$CXXFLAGS%g
19671 s%@FFLAGS@%$FFLAGS%g
19672 s%@DEFS@%$DEFS%g
19673 s%@LDFLAGS@%$LDFLAGS%g
19674 s%@LIBS@%$LIBS%g
19675 s%@exec_prefix@%$exec_prefix%g
19676 s%@prefix@%$prefix%g
19677 s%@program_transform_name@%$program_transform_name%g
19678 s%@bindir@%$bindir%g
19679 s%@sbindir@%$sbindir%g
19680 s%@libexecdir@%$libexecdir%g
19681 s%@datadir@%$datadir%g
19682 s%@sysconfdir@%$sysconfdir%g
19683 s%@sharedstatedir@%$sharedstatedir%g
19684 s%@localstatedir@%$localstatedir%g
19685 s%@libdir@%$libdir%g
19686 s%@includedir@%$includedir%g
19687 s%@oldincludedir@%$oldincludedir%g
19688 s%@infodir@%$infodir%g
19689 s%@mandir@%$mandir%g
19690 s%@PACKAGE@%$PACKAGE%g
19691 s%@release_VERSION@%$release_VERSION%g
19692 s%@libtool_VERSION@%$libtool_VERSION%g
19693 s%@host@%$host%g
19694 s%@host_alias@%$host_alias%g
19695 s%@host_cpu@%$host_cpu%g
19696 s%@host_vendor@%$host_vendor%g
19697 s%@host_os@%$host_os%g
19698 s%@target@%$target%g
19699 s%@target_alias@%$target_alias%g
19700 s%@target_cpu@%$target_cpu%g
19701 s%@target_vendor@%$target_vendor%g
19702 s%@target_os@%$target_os%g
19703 s%@build@%$build%g
19704 s%@build_alias@%$build_alias%g
19705 s%@build_cpu@%$build_cpu%g
19706 s%@build_vendor@%$build_vendor%g
19707 s%@build_os@%$build_os%g
19708 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
19709 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
19710 s%@INSTALL_DATA@%$INSTALL_DATA%g
19711 s%@VERSION@%$VERSION%g
19712 s%@ACLOCAL@%$ACLOCAL%g
19713 s%@AUTOCONF@%$AUTOCONF%g
19714 s%@AUTOMAKE@%$AUTOMAKE%g
19715 s%@AUTOHEADER@%$AUTOHEADER%g
19716 s%@MAKEINFO@%$MAKEINFO%g
19717 s%@SET_MAKE@%$SET_MAKE%g
19718 s%@toplevel_srcdir@%$toplevel_srcdir%g
19719 s%@glibcpp_builddir@%$glibcpp_builddir%g
19720 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
19721 s%@AWK@%$AWK%g
19722 s%@LN_S@%$LN_S%g
19723 s%@glibcpp_basedir@%$glibcpp_basedir%g
19724 s%@CC@%$CC%g
19725 s%@glibcpp_CXX@%$glibcpp_CXX%g
19726 s%@AS@%$AS%g
19727 s%@AR@%$AR%g
19728 s%@RANLIB@%$RANLIB%g
19729 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
19730 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
19731 s%@MAINT@%$MAINT%g
19732 s%@EXEEXT@%$EXEEXT%g
19733 s%@OBJEXT@%$OBJEXT%g
19734 s%@STRIP@%$STRIP%g
19735 s%@LIBTOOL@%$LIBTOOL%g
19736 s%@CXXCPP@%$CXXCPP%g
19737 s%@enable_shared@%$enable_shared%g
19738 s%@enable_static@%$enable_static%g
19739 s%@ifGNUmake@%$ifGNUmake%g
19740 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
19741 s%@CPP@%$CPP%g
19742 s%@CSTDIO_H@%$CSTDIO_H%g
19743 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
19744 s%@CCODECVT_C@%$CCODECVT_C%g
19745 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
19746 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
19747 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
19748 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
19749 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
19750 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
19751 s%@libio_la@%$libio_la%g
19752 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
19753 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
19754 s%@glibcpp_localedir@%$glibcpp_localedir%g
19755 s%@USE_NLS@%$USE_NLS%g
19756 s%@CLOCALE_H@%$CLOCALE_H%g
19757 s%@CCODECVT_H@%$CCODECVT_H%g
19758 s%@CMESSAGES_H@%$CMESSAGES_H%g
19759 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
19760 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
19761 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
19762 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
19763 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
19764 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
19765 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
19766 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
19767 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
19768 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
19769 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
19770 s%@WERROR@%$WERROR%g
19771 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
19772 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
19773 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
19774 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
19775 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
19776 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
19777 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
19778 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
19779 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
19780 s%@gxx_include_dir@%$gxx_include_dir%g
19781 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
19782 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
19783 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
19784 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
19785 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
19786 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
19787 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
19788 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
19789 s%@WARN_FLAGS@%$WARN_FLAGS%g
19790 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
19792 CEOF
19795 cat >> $CONFIG_STATUS <<\EOF
19797 # Split the substitutions into bite-sized pieces for seds with
19798 # small command number limits, like on Digital OSF/1 and HP-UX.
19799 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
19800 ac_file=1 # Number of current file.
19801 ac_beg=1 # First line for current file.
19802 ac_end=$ac_max_sed_cmds # Line after last line for current file.
19803 ac_more_lines=:
19804 ac_sed_cmds=""
19805 while $ac_more_lines; do
19806 if test $ac_beg -gt 1; then
19807 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
19808 else
19809 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
19811 if test ! -s conftest.s$ac_file; then
19812 ac_more_lines=false
19813 rm -f conftest.s$ac_file
19814 else
19815 if test -z "$ac_sed_cmds"; then
19816 ac_sed_cmds="sed -f conftest.s$ac_file"
19817 else
19818 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
19820 ac_file=`expr $ac_file + 1`
19821 ac_beg=$ac_end
19822 ac_end=`expr $ac_end + $ac_max_sed_cmds`
19824 done
19825 if test -z "$ac_sed_cmds"; then
19826 ac_sed_cmds=cat
19830 cat >> $CONFIG_STATUS <<EOF
19832 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
19833 include/Makefile src/Makefile \
19834 libmath/Makefile libio/Makefile libsupc++/Makefile \
19835 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
19837 cat >> $CONFIG_STATUS <<\EOF
19838 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
19839 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19840 case "$ac_file" in
19841 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19842 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19843 *) ac_file_in="${ac_file}.in" ;;
19844 esac
19846 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
19848 # Remove last slash and all that follows it. Not all systems have dirname.
19849 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19850 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19851 # The file is in a subdirectory.
19852 test ! -d "$ac_dir" && mkdir "$ac_dir"
19853 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
19854 # A "../" for each directory in $ac_dir_suffix.
19855 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
19856 else
19857 ac_dir_suffix= ac_dots=
19860 case "$ac_given_srcdir" in
19861 .) srcdir=.
19862 if test -z "$ac_dots"; then top_srcdir=.
19863 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
19864 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
19865 *) # Relative path.
19866 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
19867 top_srcdir="$ac_dots$ac_given_srcdir" ;;
19868 esac
19870 case "$ac_given_INSTALL" in
19871 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19872 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19873 esac
19875 echo creating "$ac_file"
19876 rm -f "$ac_file"
19877 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
19878 case "$ac_file" in
19879 *Makefile*) ac_comsub="1i\\
19880 # $configure_input" ;;
19881 *) ac_comsub= ;;
19882 esac
19884 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19885 sed -e "$ac_comsub
19886 s%@configure_input@%$configure_input%g
19887 s%@srcdir@%$srcdir%g
19888 s%@top_srcdir@%$top_srcdir%g
19889 s%@INSTALL@%$INSTALL%g
19890 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
19891 fi; done
19892 rm -f conftest.s*
19894 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19895 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19897 # ac_d sets the value in "#define NAME VALUE" lines.
19898 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19899 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
19900 ac_dC='\3'
19901 ac_dD='%g'
19902 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19903 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19904 ac_uB='\([ ]\)%\1#\2define\3'
19905 ac_uC=' '
19906 ac_uD='\4%g'
19907 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19908 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19909 ac_eB='$%\1#\2define\3'
19910 ac_eC=' '
19911 ac_eD='%g'
19913 if test "${CONFIG_HEADERS+set}" != set; then
19915 cat >> $CONFIG_STATUS <<EOF
19916 CONFIG_HEADERS="config.h"
19918 cat >> $CONFIG_STATUS <<\EOF
19920 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
19921 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19922 case "$ac_file" in
19923 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19924 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19925 *) ac_file_in="${ac_file}.in" ;;
19926 esac
19928 echo creating $ac_file
19930 rm -f conftest.frag conftest.in conftest.out
19931 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19932 cat $ac_file_inputs > conftest.in
19936 # Transform confdefs.h into a sed script conftest.vals that substitutes
19937 # the proper values into config.h.in to produce config.h. And first:
19938 # Protect against being on the right side of a sed subst in config.status.
19939 # Protect against being in an unquoted here document in config.status.
19940 rm -f conftest.vals
19941 cat > conftest.hdr <<\EOF
19942 s/[\\&%]/\\&/g
19943 s%[\\$`]%\\&%g
19944 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
19945 s%ac_d%ac_u%gp
19946 s%ac_u%ac_e%gp
19948 sed -n -f conftest.hdr confdefs.h > conftest.vals
19949 rm -f conftest.hdr
19951 # This sed command replaces #undef with comments. This is necessary, for
19952 # example, in the case of _POSIX_SOURCE, which is predefined and required
19953 # on some systems where configure will not decide to define it.
19954 cat >> conftest.vals <<\EOF
19955 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
19958 # Break up conftest.vals because some shells have a limit on
19959 # the size of here documents, and old seds have small limits too.
19961 rm -f conftest.tail
19962 while :
19964 ac_lines=`grep -c . conftest.vals`
19965 # grep -c gives empty output for an empty file on some AIX systems.
19966 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
19967 # Write a limited-size here document to conftest.frag.
19968 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
19969 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
19970 echo 'CEOF
19971 sed -f conftest.frag conftest.in > conftest.out
19972 rm -f conftest.in
19973 mv conftest.out conftest.in
19974 ' >> $CONFIG_STATUS
19975 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19976 rm -f conftest.vals
19977 mv conftest.tail conftest.vals
19978 done
19979 rm -f conftest.vals
19981 cat >> $CONFIG_STATUS <<\EOF
19982 rm -f conftest.frag conftest.h
19983 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
19984 cat conftest.in >> conftest.h
19985 rm -f conftest.in
19986 if cmp -s $ac_file conftest.h 2>/dev/null; then
19987 echo "$ac_file is unchanged"
19988 rm -f conftest.h
19989 else
19990 # Remove last slash and all that follows it. Not all systems have dirname.
19991 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19992 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19993 # The file is in a subdirectory.
19994 test ! -d "$ac_dir" && mkdir "$ac_dir"
19996 rm -f $ac_file
19997 mv conftest.h $ac_file
19999 fi; done
20003 cat >> $CONFIG_STATUS <<EOF
20004 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
20005 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/ctype.cc src/messages.cc src/moneypunct.cc src/numpunct.cc src/time.cc src/linker.map"
20008 cat >> $CONFIG_STATUS <<\EOF
20009 srcdir=$ac_given_srcdir
20010 while test -n "$ac_sources"; do
20011 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
20012 set $ac_sources; ac_source=$1; shift; ac_sources=$*
20014 echo "linking $srcdir/$ac_source to $ac_dest"
20016 if test ! -r $srcdir/$ac_source; then
20017 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
20019 rm -f $ac_dest
20021 # Make relative symlinks.
20022 # Remove last slash and all that follows it. Not all systems have dirname.
20023 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
20024 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
20025 # The dest file is in a subdirectory.
20026 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
20027 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
20028 # A "../" for each directory in $ac_dest_dir_suffix.
20029 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
20030 else
20031 ac_dest_dir_suffix= ac_dots=
20034 case "$srcdir" in
20035 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
20036 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
20037 esac
20039 # Make a symlink if possible; otherwise try a hard link.
20040 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
20041 ln $srcdir/$ac_source $ac_dest; then :
20042 else
20043 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
20045 done
20047 cat >> $CONFIG_STATUS <<EOF
20049 srcdir=${srcdir}
20050 host=${host}
20051 target=${target}
20052 with_multisubdir=${with_multisubdir}
20053 ac_configure_args="${multilib_arg} ${ac_configure_args}"
20054 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
20055 glibcpp_basedir=${glibcpp_basedir}
20056 CC="${CC}"
20057 CXX="${CXX}"
20060 cat >> $CONFIG_STATUS <<\EOF
20061 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
20062 if test -n "$CONFIG_FILES"; then
20063 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
20064 grep '^MULTISUBDIR =' Makefile >> src/Makefile
20065 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
20067 chmod +x mkcheck
20068 chmod +x testsuite_flags
20070 exit 0
20072 chmod +x $CONFIG_STATUS
20073 rm -fr confdefs* $ac_clean_files
20074 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
20078 # Sanity checking & User-visible messages.
20079 # Checks down here, otherwise they get scrolled off before
20080 # the user will notice.
20082 # Trying to get more people to read documentation. Possibly remove
20083 # check and warn all the time. There is no "informational" AC_MSG_
20084 # macro, so these are going to be printed even when --quiet/--silent
20085 # is given.
20086 if test ! -f stamp-sanity-warned; then
20087 touch stamp-sanity-warned
20088 echo ""
20089 echo "Please make certain that you read the installation information here:"
20090 echo " faster => ${srcdir}/docs/install.html"
20091 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
20092 echo ""
20093 echo "and the configuration information here:"
20094 echo " faster => ${srcdir}/docs/configopts.html"
20095 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
20096 echo ""
20097 echo "before proceeding with ${_cv_gnu_make_command}."
20098 echo ""