* config/convex/convex.c: Fix comment formatting.
[official-gcc.git] / libstdc++-v3 / configure
blob8a6fe1fd5dff753669b7fba3706c0f2e468b752f
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 --with-gxx-include-dir the installation directory for include files"
63 ac_help="$ac_help
64 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
69 build=NONE
70 cache_file=./config.cache
71 exec_prefix=NONE
72 host=NONE
73 no_create=
74 nonopt=NONE
75 no_recursion=
76 prefix=NONE
77 program_prefix=NONE
78 program_suffix=NONE
79 program_transform_name=s,x,x,
80 silent=
81 site=
82 sitefile=
83 srcdir=
84 target=NONE
85 verbose=
86 x_includes=NONE
87 x_libraries=NONE
88 bindir='${exec_prefix}/bin'
89 sbindir='${exec_prefix}/sbin'
90 libexecdir='${exec_prefix}/libexec'
91 datadir='${prefix}/share'
92 sysconfdir='${prefix}/etc'
93 sharedstatedir='${prefix}/com'
94 localstatedir='${prefix}/var'
95 libdir='${exec_prefix}/lib'
96 includedir='${prefix}/include'
97 oldincludedir='/usr/include'
98 infodir='${prefix}/info'
99 mandir='${prefix}/man'
101 # Initialize some other variables.
102 subdirs=
103 MFLAGS= MAKEFLAGS=
104 SHELL=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
106 ac_max_here_lines=12
108 ac_prev=
109 for ac_option
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
115 ac_prev=
116 continue
119 case "$ac_option" in
120 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
121 *) ac_optarg= ;;
122 esac
124 # Accept the important Cygnus configure options, so we can diagnose typos.
126 case "$ac_option" in
128 -bindir | --bindir | --bindi | --bind | --bin | --bi)
129 ac_prev=bindir ;;
130 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
131 bindir="$ac_optarg" ;;
133 -build | --build | --buil | --bui | --bu)
134 ac_prev=build ;;
135 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
136 build="$ac_optarg" ;;
138 -cache-file | --cache-file | --cache-fil | --cache-fi \
139 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
140 ac_prev=cache_file ;;
141 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
142 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
143 cache_file="$ac_optarg" ;;
145 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
146 ac_prev=datadir ;;
147 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
148 | --da=*)
149 datadir="$ac_optarg" ;;
151 -disable-* | --disable-*)
152 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
160 -enable-* | --enable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 case "$ac_option" in
168 *=*) ;;
169 *) ac_optarg=yes ;;
170 esac
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
173 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
174 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
175 | --exec | --exe | --ex)
176 ac_prev=exec_prefix ;;
177 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
178 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
179 | --exec=* | --exe=* | --ex=*)
180 exec_prefix="$ac_optarg" ;;
182 -gas | --gas | --ga | --g)
183 # Obsolete; use --with-gas.
184 with_gas=yes ;;
186 -help | --help | --hel | --he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
189 cat << EOF
190 Usage: configure [options] [host]
191 Options: [defaults in brackets after descriptions]
192 Configuration:
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --site-file=FILE use FILE as the site file
198 --version print the version of autoconf that created configure
199 Directory and file names:
200 --prefix=PREFIX install architecture-independent files in PREFIX
201 [$ac_default_prefix]
202 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
203 [same as prefix]
204 --bindir=DIR user executables in DIR [EPREFIX/bin]
205 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
206 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
207 --datadir=DIR read-only architecture-independent data in DIR
208 [PREFIX/share]
209 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
210 --sharedstatedir=DIR modifiable architecture-independent data in DIR
211 [PREFIX/com]
212 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
213 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
214 --includedir=DIR C header files in DIR [PREFIX/include]
215 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
216 --infodir=DIR info documentation in DIR [PREFIX/info]
217 --mandir=DIR man documentation in DIR [PREFIX/man]
218 --srcdir=DIR find the sources in DIR [configure dir or ..]
219 --program-prefix=PREFIX prepend PREFIX to installed program names
220 --program-suffix=SUFFIX append SUFFIX to installed program names
221 --program-transform-name=PROGRAM
222 run sed PROGRAM on installed program names
224 cat << EOF
225 Host type:
226 --build=BUILD configure for building on BUILD [BUILD=HOST]
227 --host=HOST configure for HOST [guessed]
228 --target=TARGET configure for TARGET [TARGET=HOST]
229 Features and packages:
230 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
231 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
232 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
233 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
234 --x-includes=DIR X include files are in DIR
235 --x-libraries=DIR X library files are in DIR
237 if test -n "$ac_help"; then
238 echo "--enable and --with options recognized:$ac_help"
240 exit 0 ;;
242 -host | --host | --hos | --ho)
243 ac_prev=host ;;
244 -host=* | --host=* | --hos=* | --ho=*)
245 host="$ac_optarg" ;;
247 -includedir | --includedir | --includedi | --included | --include \
248 | --includ | --inclu | --incl | --inc)
249 ac_prev=includedir ;;
250 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
251 | --includ=* | --inclu=* | --incl=* | --inc=*)
252 includedir="$ac_optarg" ;;
254 -infodir | --infodir | --infodi | --infod | --info | --inf)
255 ac_prev=infodir ;;
256 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
257 infodir="$ac_optarg" ;;
259 -libdir | --libdir | --libdi | --libd)
260 ac_prev=libdir ;;
261 -libdir=* | --libdir=* | --libdi=* | --libd=*)
262 libdir="$ac_optarg" ;;
264 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
265 | --libexe | --libex | --libe)
266 ac_prev=libexecdir ;;
267 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
268 | --libexe=* | --libex=* | --libe=*)
269 libexecdir="$ac_optarg" ;;
271 -localstatedir | --localstatedir | --localstatedi | --localstated \
272 | --localstate | --localstat | --localsta | --localst \
273 | --locals | --local | --loca | --loc | --lo)
274 ac_prev=localstatedir ;;
275 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
276 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
277 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
278 localstatedir="$ac_optarg" ;;
280 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
281 ac_prev=mandir ;;
282 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283 mandir="$ac_optarg" ;;
285 -nfp | --nfp | --nf)
286 # Obsolete; use --without-fp.
287 with_fp=no ;;
289 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290 | --no-cr | --no-c)
291 no_create=yes ;;
293 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
294 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
295 no_recursion=yes ;;
297 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
298 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
299 | --oldin | --oldi | --old | --ol | --o)
300 ac_prev=oldincludedir ;;
301 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
302 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
303 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
304 oldincludedir="$ac_optarg" ;;
306 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
307 ac_prev=prefix ;;
308 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
309 prefix="$ac_optarg" ;;
311 -program-prefix | --program-prefix | --program-prefi | --program-pref \
312 | --program-pre | --program-pr | --program-p)
313 ac_prev=program_prefix ;;
314 -program-prefix=* | --program-prefix=* | --program-prefi=* \
315 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
316 program_prefix="$ac_optarg" ;;
318 -program-suffix | --program-suffix | --program-suffi | --program-suff \
319 | --program-suf | --program-su | --program-s)
320 ac_prev=program_suffix ;;
321 -program-suffix=* | --program-suffix=* | --program-suffi=* \
322 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
323 program_suffix="$ac_optarg" ;;
325 -program-transform-name | --program-transform-name \
326 | --program-transform-nam | --program-transform-na \
327 | --program-transform-n | --program-transform- \
328 | --program-transform | --program-transfor \
329 | --program-transfo | --program-transf \
330 | --program-trans | --program-tran \
331 | --progr-tra | --program-tr | --program-t)
332 ac_prev=program_transform_name ;;
333 -program-transform-name=* | --program-transform-name=* \
334 | --program-transform-nam=* | --program-transform-na=* \
335 | --program-transform-n=* | --program-transform-=* \
336 | --program-transform=* | --program-transfor=* \
337 | --program-transfo=* | --program-transf=* \
338 | --program-trans=* | --program-tran=* \
339 | --progr-tra=* | --program-tr=* | --program-t=*)
340 program_transform_name="$ac_optarg" ;;
342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
343 | -silent | --silent | --silen | --sile | --sil)
344 silent=yes ;;
346 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
347 ac_prev=sbindir ;;
348 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
349 | --sbi=* | --sb=*)
350 sbindir="$ac_optarg" ;;
352 -sharedstatedir | --sharedstatedir | --sharedstatedi \
353 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
354 | --sharedst | --shareds | --shared | --share | --shar \
355 | --sha | --sh)
356 ac_prev=sharedstatedir ;;
357 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
358 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
359 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
360 | --sha=* | --sh=*)
361 sharedstatedir="$ac_optarg" ;;
363 -site | --site | --sit)
364 ac_prev=site ;;
365 -site=* | --site=* | --sit=*)
366 site="$ac_optarg" ;;
368 -site-file | --site-file | --site-fil | --site-fi | --site-f)
369 ac_prev=sitefile ;;
370 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
371 sitefile="$ac_optarg" ;;
373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 ac_prev=srcdir ;;
375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
376 srcdir="$ac_optarg" ;;
378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
379 | --syscon | --sysco | --sysc | --sys | --sy)
380 ac_prev=sysconfdir ;;
381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
383 sysconfdir="$ac_optarg" ;;
385 -target | --target | --targe | --targ | --tar | --ta | --t)
386 ac_prev=target ;;
387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
388 target="$ac_optarg" ;;
390 -v | -verbose | --verbose | --verbos | --verbo | --verb)
391 verbose=yes ;;
393 -version | --version | --versio | --versi | --vers)
394 echo "configure generated by autoconf version 2.13"
395 exit 0 ;;
397 -with-* | --with-*)
398 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 case "$ac_option" in
405 *=*) ;;
406 *) ac_optarg=yes ;;
407 esac
408 eval "with_${ac_package}='$ac_optarg'" ;;
410 -without-* | --without-*)
411 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}=no" ;;
419 --x)
420 # Obsolete; use --with-x.
421 with_x=yes ;;
423 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
424 | --x-incl | --x-inc | --x-in | --x-i)
425 ac_prev=x_includes ;;
426 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
427 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
428 x_includes="$ac_optarg" ;;
430 -x-libraries | --x-libraries | --x-librarie | --x-librari \
431 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
432 ac_prev=x_libraries ;;
433 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
434 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
435 x_libraries="$ac_optarg" ;;
437 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
441 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
442 echo "configure: warning: $ac_option: invalid host type" 1>&2
444 if test "x$nonopt" != xNONE; then
445 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
447 nonopt="$ac_option"
450 esac
451 done
453 if test -n "$ac_prev"; then
454 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459 # File descriptor usage:
460 # 0 standard input
461 # 1 file creation
462 # 2 errors and warnings
463 # 3 some systems may open it to /dev/tty
464 # 4 used on the Kubota Titan
465 # 6 checking for... messages and results
466 # 5 compiler messages saved in config.log
467 if test "$silent" = yes; then
468 exec 6>/dev/null
469 else
470 exec 6>&1
472 exec 5>./config.log
474 echo "\
475 This file contains any messages produced by compilers while
476 running configure, to aid debugging if configure makes a mistake.
477 " 1>&5
479 # Strip out --no-create and --no-recursion so they do not pile up.
480 # Also quote any args containing shell metacharacters.
481 ac_configure_args=
482 for ac_arg
484 case "$ac_arg" in
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c) ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
489 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
490 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
491 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
492 esac
493 done
495 # NLS nuisances.
496 # Only set these to C if already set. These must not be set unconditionally
497 # because not all systems understand e.g. LANG=C (notably SCO).
498 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 # Non-C LC_CTYPE values break the ctype check.
500 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
501 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
502 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
503 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 rm -rf conftest* confdefs.h
507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
508 echo > confdefs.h
510 # A filename unique to this package, relative to the directory that
511 # configure is in, which we can look for to find out if srcdir is correct.
512 ac_unique_file=src/ios.cc
514 # Find the source files, if location was not specified.
515 if test -z "$srcdir"; then
516 ac_srcdir_defaulted=yes
517 # Try the directory containing this script, then its parent.
518 ac_prog=$0
519 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
520 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
521 srcdir=$ac_confdir
522 if test ! -r $srcdir/$ac_unique_file; then
523 srcdir=..
525 else
526 ac_srcdir_defaulted=no
528 if test ! -r $srcdir/$ac_unique_file; then
529 if test "$ac_srcdir_defaulted" = yes; then
530 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
531 else
532 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537 # Prefer explicitly selected file to automatically selected ones.
538 if test -z "$sitefile"; then
539 if test -z "$CONFIG_SITE"; then
540 if test "x$prefix" != xNONE; then
541 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
542 else
543 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
546 else
547 CONFIG_SITE="$sitefile"
549 for ac_site_file in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
552 . "$ac_site_file"
554 done
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
558 . $cache_file
559 else
560 echo "creating cache $cache_file"
561 > $cache_file
564 ac_ext=c
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CPP $CPPFLAGS'
567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling=$ac_cv_prog_cc_cross
571 ac_exeext=
572 ac_objext=o
573 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
576 ac_n= ac_c='
577 ' ac_t=' '
578 else
579 ac_n=-n ac_c= ac_t=
581 else
582 ac_n= ac_c='\c' ac_t=
587 PACKAGE=libstdc++
589 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
590 release_VERSION=3.1.0
592 # For libtool versioning info, format is CURRENT:REVISION:AGE
593 libtool_VERSION=4:0:0
596 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
597 # AC 2.50 sets target_alias iff the user specified --target, but we use it
598 # everywhere, so we set it here just to be sure.
599 ac_aux_dir=
600 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
601 if test -f $ac_dir/install-sh; then
602 ac_aux_dir=$ac_dir
603 ac_install_sh="$ac_aux_dir/install-sh -c"
604 break
605 elif test -f $ac_dir/install.sh; then
606 ac_aux_dir=$ac_dir
607 ac_install_sh="$ac_aux_dir/install.sh -c"
608 break
610 done
611 if test -z "$ac_aux_dir"; then
612 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
614 ac_config_guess=$ac_aux_dir/config.guess
615 ac_config_sub=$ac_aux_dir/config.sub
616 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
619 # Do some error checking and defaulting for the host and target type.
620 # The inputs are:
621 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
623 # The rules are:
624 # 1. You are not allowed to specify --host, --target, and nonopt at the
625 # same time.
626 # 2. Host defaults to nonopt.
627 # 3. If nonopt is not specified, then host defaults to the current host,
628 # as determined by config.guess.
629 # 4. Target and build default to nonopt.
630 # 5. If nonopt is not specified, then target and build default to host.
632 # The aliases save the names the user supplied, while $host etc.
633 # will get canonicalized.
634 case $host---$target---$nonopt in
635 NONE---*---* | *---NONE---* | *---*---NONE) ;;
636 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
637 esac
640 # Make sure we can run config.sub.
641 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
642 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
645 echo $ac_n "checking host system type""... $ac_c" 1>&6
646 echo "configure:647: checking host system type" >&5
648 host_alias=$host
649 case "$host_alias" in
650 NONE)
651 case $nonopt in
652 NONE)
653 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
654 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
655 fi ;;
656 *) host_alias=$nonopt ;;
657 esac ;;
658 esac
660 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
661 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
662 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
663 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
664 echo "$ac_t""$host" 1>&6
666 echo $ac_n "checking target system type""... $ac_c" 1>&6
667 echo "configure:668: checking target system type" >&5
669 target_alias=$target
670 case "$target_alias" in
671 NONE)
672 case $nonopt in
673 NONE) target_alias=$host_alias ;;
674 *) target_alias=$nonopt ;;
675 esac ;;
676 esac
678 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
679 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
680 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
681 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
682 echo "$ac_t""$target" 1>&6
684 echo $ac_n "checking build system type""... $ac_c" 1>&6
685 echo "configure:686: checking build system type" >&5
687 build_alias=$build
688 case "$build_alias" in
689 NONE)
690 case $nonopt in
691 NONE) build_alias=$host_alias ;;
692 *) build_alias=$nonopt ;;
693 esac ;;
694 esac
696 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
697 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
698 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
699 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
700 echo "$ac_t""$build" 1>&6
702 test "$host_alias" != "$target_alias" &&
703 test "$program_prefix$program_suffix$program_transform_name" = \
704 NONENONEs,x,x, &&
705 program_prefix=${target_alias}-
707 target_alias=${target_alias-$target}
710 # Find a good install program. We prefer a C program (faster),
711 # so one script is as good as another. But avoid the broken or
712 # incompatible versions:
713 # SysV /etc/install, /usr/sbin/install
714 # SunOS /usr/etc/install
715 # IRIX /sbin/install
716 # AIX /bin/install
717 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
718 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
719 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
720 # ./install, which can be erroneously created by make from ./install.sh.
721 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
722 echo "configure:723: checking for a BSD compatible install" >&5
723 if test -z "$INSTALL"; then
724 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
725 echo $ac_n "(cached) $ac_c" 1>&6
726 else
727 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
728 for ac_dir in $PATH; do
729 # Account for people who put trailing slashes in PATH elements.
730 case "$ac_dir/" in
731 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
733 # OSF1 and SCO ODT 3.0 have their own names for install.
734 # Don't use installbsd from OSF since it installs stuff as root
735 # by default.
736 for ac_prog in ginstall scoinst install; do
737 if test -f $ac_dir/$ac_prog; then
738 if test $ac_prog = install &&
739 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
740 # AIX install. It has an incompatible calling convention.
742 else
743 ac_cv_path_install="$ac_dir/$ac_prog -c"
744 break 2
747 done
749 esac
750 done
751 IFS="$ac_save_IFS"
754 if test "${ac_cv_path_install+set}" = set; then
755 INSTALL="$ac_cv_path_install"
756 else
757 # As a last resort, use the slow shell script. We don't cache a
758 # path for INSTALL within a source directory, because that will
759 # break other packages using the cache if that directory is
760 # removed, or if the path is relative.
761 INSTALL="$ac_install_sh"
764 echo "$ac_t""$INSTALL" 1>&6
766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
767 # It thinks the first close brace ends the variable substitution.
768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
770 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
772 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
774 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
775 echo "configure:776: checking whether build environment is sane" >&5
776 # Just in case
777 sleep 1
778 echo timestamp > conftestfile
779 # Do `set' in a subshell so we don't clobber the current shell's
780 # arguments. Must try -L first in case configure is actually a
781 # symlink; some systems play weird games with the mod time of symlinks
782 # (eg FreeBSD returns the mod time of the symlink's containing
783 # directory).
784 if (
785 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
786 if test "$*" = "X"; then
787 # -L didn't work.
788 set X `ls -t $srcdir/configure conftestfile`
790 if test "$*" != "X $srcdir/configure conftestfile" \
791 && test "$*" != "X conftestfile $srcdir/configure"; then
793 # If neither matched, then we have a broken ls. This can happen
794 # if, for instance, CONFIG_SHELL is bash and it inherits a
795 # broken ls alias from the environment. This has actually
796 # happened. Such a system could not be considered "sane".
797 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
798 alias in your environment" 1>&2; exit 1; }
801 test "$2" = conftestfile
803 then
804 # Ok.
806 else
807 { echo "configure: error: newly created file is older than distributed files!
808 Check your system clock" 1>&2; exit 1; }
810 rm -f conftest*
811 echo "$ac_t""yes" 1>&6
812 if test "$program_transform_name" = s,x,x,; then
813 program_transform_name=
814 else
815 # Double any \ or $. echo might interpret backslashes.
816 cat <<\EOF_SED > conftestsed
817 s,\\,\\\\,g; s,\$,$$,g
818 EOF_SED
819 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
820 rm -f conftestsed
822 test "$program_prefix" != NONE &&
823 program_transform_name="s,^,${program_prefix},; $program_transform_name"
824 # Use a double $ so make ignores it.
825 test "$program_suffix" != NONE &&
826 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
828 # sed with no file args requires a program.
829 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
831 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
832 echo "configure:833: checking whether ${MAKE-make} sets \${MAKE}" >&5
833 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
834 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
836 else
837 cat > conftestmake <<\EOF
838 all:
839 @echo 'ac_maketemp="${MAKE}"'
841 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
842 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
843 if test -n "$ac_maketemp"; then
844 eval ac_cv_prog_make_${ac_make}_set=yes
845 else
846 eval ac_cv_prog_make_${ac_make}_set=no
848 rm -f conftestmake
850 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
851 echo "$ac_t""yes" 1>&6
852 SET_MAKE=
853 else
854 echo "$ac_t""no" 1>&6
855 SET_MAKE="MAKE=${MAKE-make}"
859 PACKAGE=$PACKAGE
861 VERSION=$release_VERSION
863 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
864 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
866 cat >> confdefs.h <<EOF
867 #define PACKAGE "$PACKAGE"
870 cat >> confdefs.h <<EOF
871 #define VERSION "$VERSION"
876 missing_dir=`cd $ac_aux_dir && pwd`
877 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
878 echo "configure:879: checking for working aclocal" >&5
879 # Run test in a subshell; some versions of sh will print an error if
880 # an executable is not found, even if stderr is redirected.
881 # Redirect stdin to placate older versions of autoconf. Sigh.
882 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
883 ACLOCAL=aclocal
884 echo "$ac_t""found" 1>&6
885 else
886 ACLOCAL="$missing_dir/missing aclocal"
887 echo "$ac_t""missing" 1>&6
890 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
891 echo "configure:892: checking for working autoconf" >&5
892 # Run test in a subshell; some versions of sh will print an error if
893 # an executable is not found, even if stderr is redirected.
894 # Redirect stdin to placate older versions of autoconf. Sigh.
895 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
896 AUTOCONF=autoconf
897 echo "$ac_t""found" 1>&6
898 else
899 AUTOCONF="$missing_dir/missing autoconf"
900 echo "$ac_t""missing" 1>&6
903 echo $ac_n "checking for working automake""... $ac_c" 1>&6
904 echo "configure:905: checking for working automake" >&5
905 # Run test in a subshell; some versions of sh will print an error if
906 # an executable is not found, even if stderr is redirected.
907 # Redirect stdin to placate older versions of autoconf. Sigh.
908 if (automake --version) < /dev/null > /dev/null 2>&1; then
909 AUTOMAKE=automake
910 echo "$ac_t""found" 1>&6
911 else
912 AUTOMAKE="$missing_dir/missing automake"
913 echo "$ac_t""missing" 1>&6
916 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
917 echo "configure:918: checking for working autoheader" >&5
918 # Run test in a subshell; some versions of sh will print an error if
919 # an executable is not found, even if stderr is redirected.
920 # Redirect stdin to placate older versions of autoconf. Sigh.
921 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
922 AUTOHEADER=autoheader
923 echo "$ac_t""found" 1>&6
924 else
925 AUTOHEADER="$missing_dir/missing autoheader"
926 echo "$ac_t""missing" 1>&6
929 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
930 echo "configure:931: checking for working makeinfo" >&5
931 # Run test in a subshell; some versions of sh will print an error if
932 # an executable is not found, even if stderr is redirected.
933 # Redirect stdin to placate older versions of autoconf. Sigh.
934 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
935 MAKEINFO=makeinfo
936 echo "$ac_t""found" 1>&6
937 else
938 MAKEINFO="$missing_dir/missing makeinfo"
939 echo "$ac_t""missing" 1>&6
947 # Runs configure.host and configure.target, as well as finds CC, CXX
948 # and assorted other critical bits. Have to run this before the
949 # GLIBCPP_ENABLE_* macros below.
950 if test $host != $build; then
951 ac_tool_prefix=${host_alias}-
952 else
953 ac_tool_prefix=
956 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
957 echo "configure:958: checking for Cygwin environment" >&5
958 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
960 else
961 cat > conftest.$ac_ext <<EOF
962 #line 963 "configure"
963 #include "confdefs.h"
965 int main() {
967 #ifndef __CYGWIN__
968 #define __CYGWIN__ __CYGWIN32__
969 #endif
970 return __CYGWIN__;
971 ; return 0; }
973 if { (eval echo configure:974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
974 rm -rf conftest*
975 ac_cv_cygwin=yes
976 else
977 echo "configure: failed program was:" >&5
978 cat conftest.$ac_ext >&5
979 rm -rf conftest*
980 ac_cv_cygwin=no
982 rm -f conftest*
983 rm -f conftest*
986 echo "$ac_t""$ac_cv_cygwin" 1>&6
987 CYGWIN=
988 test "$ac_cv_cygwin" = yes && CYGWIN=yes
989 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
990 echo "configure:991: checking for mingw32 environment" >&5
991 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
993 else
994 cat > conftest.$ac_ext <<EOF
995 #line 996 "configure"
996 #include "confdefs.h"
998 int main() {
999 return __MINGW32__;
1000 ; return 0; }
1002 if { (eval echo configure:1003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1003 rm -rf conftest*
1004 ac_cv_mingw32=yes
1005 else
1006 echo "configure: failed program was:" >&5
1007 cat conftest.$ac_ext >&5
1008 rm -rf conftest*
1009 ac_cv_mingw32=no
1011 rm -f conftest*
1012 rm -f conftest*
1015 echo "$ac_t""$ac_cv_mingw32" 1>&6
1016 MINGW32=
1017 test "$ac_cv_mingw32" = yes && MINGW32=yes
1019 # Check whether --enable-multilib or --disable-multilib was given.
1020 if test "${enable_multilib+set}" = set; then
1021 enableval="$enable_multilib"
1022 case "${enableval}" in
1023 yes) multilib=yes ;;
1024 no) multilib=no ;;
1025 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1026 esac
1027 else
1028 multilib=yes
1031 # When building with srcdir == objdir, links to the source files will
1032 # be created in directories within the target_subdir. We have to
1033 # adjust toplevel_srcdir accordingly, so that configure finds
1034 # install-sh and other auxiliary files that live in the top-level
1035 # source directory.
1036 if test "${srcdir}" = "."; then
1037 if test -z "${with_target_subdir}"; then
1038 toprel=".."
1039 else
1040 if test "${with_target_subdir}" != "."; then
1041 toprel="${with_multisrctop}../.."
1042 else
1043 toprel="${with_multisrctop}.."
1046 else
1047 toprel=".."
1049 ac_aux_dir=
1050 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1051 if test -f $ac_dir/install-sh; then
1052 ac_aux_dir=$ac_dir
1053 ac_install_sh="$ac_aux_dir/install-sh -c"
1054 break
1055 elif test -f $ac_dir/install.sh; then
1056 ac_aux_dir=$ac_dir
1057 ac_install_sh="$ac_aux_dir/install.sh -c"
1058 break
1060 done
1061 if test -z "$ac_aux_dir"; then
1062 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1064 ac_config_guess=$ac_aux_dir/config.guess
1065 ac_config_sub=$ac_aux_dir/config.sub
1066 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1068 toplevel_srcdir=\${top_srcdir}/$toprel
1071 # Export build and source directories.
1072 # These need to be absolute paths, yet at the same time need to
1073 # canonicalize only relative paths, because then amd will not unmount
1074 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1075 glibcpp_builddir=`pwd`
1076 case $srcdir in
1077 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1078 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1079 esac
1085 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.50+, can also
1086 # be 'cp -p' if linking isn't available.
1087 #ac_cv_prog_LN_S='cp -p'
1088 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1089 echo "configure:1090: checking whether ln -s works" >&5
1090 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1092 else
1093 rm -f conftestdata
1094 if ln -s X conftestdata 2>/dev/null
1095 then
1096 rm -f conftestdata
1097 ac_cv_prog_LN_S="ln -s"
1098 else
1099 ac_cv_prog_LN_S=ln
1102 LN_S="$ac_cv_prog_LN_S"
1103 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1104 echo "$ac_t""yes" 1>&6
1105 else
1106 echo "$ac_t""no" 1>&6
1110 # We use these options to decide which functions to include.
1111 # Check whether --with-target-subdir or --without-target-subdir was given.
1112 if test "${with_target_subdir+set}" = set; then
1113 withval="$with_target_subdir"
1117 # Check whether --with-cross-host or --without-cross-host was given.
1118 if test "${with_cross_host+set}" = set; then
1119 withval="$with_cross_host"
1124 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1127 # Never versions of autoconf add an underscore to these functions.
1128 # Prevent future problems ...
1134 # AC_PROG_CC
1136 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1137 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1138 # are probably using a cross compiler, which will not be able to fully
1139 # link an executable. This should really be fixed in autoconf
1140 # itself.
1145 # Extract the first word of "gcc", so it can be a program name with args.
1146 set dummy gcc; ac_word=$2
1147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1148 echo "configure:1149: checking for $ac_word" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1151 else
1152 if test -n "$CC"; then
1153 ac_cv_prog_CC="$CC" # Let the user override the test.
1154 else
1155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1156 ac_dummy="$PATH"
1157 for ac_dir in $ac_dummy; do
1158 test -z "$ac_dir" && ac_dir=.
1159 if test -f $ac_dir/$ac_word; then
1160 ac_cv_prog_CC="gcc"
1161 break
1163 done
1164 IFS="$ac_save_ifs"
1167 CC="$ac_cv_prog_CC"
1168 if test -n "$CC"; then
1169 echo "$ac_t""$CC" 1>&6
1170 else
1171 echo "$ac_t""no" 1>&6
1174 if test -z "$CC"; then
1175 # Extract the first word of "cc", so it can be a program name with args.
1176 set dummy cc; ac_word=$2
1177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1178 echo "configure:1179: checking for $ac_word" >&5
1179 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1181 else
1182 if test -n "$CC"; then
1183 ac_cv_prog_CC="$CC" # Let the user override the test.
1184 else
1185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1186 ac_prog_rejected=no
1187 ac_dummy="$PATH"
1188 for ac_dir in $ac_dummy; do
1189 test -z "$ac_dir" && ac_dir=.
1190 if test -f $ac_dir/$ac_word; then
1191 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1192 ac_prog_rejected=yes
1193 continue
1195 ac_cv_prog_CC="cc"
1196 break
1198 done
1199 IFS="$ac_save_ifs"
1200 if test $ac_prog_rejected = yes; then
1201 # We found a bogon in the path, so make sure we never use it.
1202 set dummy $ac_cv_prog_CC
1203 shift
1204 if test $# -gt 0; then
1205 # We chose a different compiler from the bogus one.
1206 # However, it has the same basename, so the bogon will be chosen
1207 # first if we set CC to just the basename; use the full file name.
1208 shift
1209 set dummy "$ac_dir/$ac_word" "$@"
1210 shift
1211 ac_cv_prog_CC="$@"
1216 CC="$ac_cv_prog_CC"
1217 if test -n "$CC"; then
1218 echo "$ac_t""$CC" 1>&6
1219 else
1220 echo "$ac_t""no" 1>&6
1223 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1226 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1227 echo "configure:1228: checking whether we are using GNU C" >&5
1228 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1230 else
1231 cat > conftest.c <<EOF
1232 #ifdef __GNUC__
1233 yes;
1234 #endif
1236 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1237 ac_cv_prog_gcc=yes
1238 else
1239 ac_cv_prog_gcc=no
1243 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1245 if test $ac_cv_prog_gcc = yes; then
1246 GCC=yes
1247 ac_test_CFLAGS="${CFLAGS+set}"
1248 ac_save_CFLAGS="$CFLAGS"
1249 CFLAGS=
1250 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1251 echo "configure:1252: checking whether ${CC-cc} accepts -g" >&5
1252 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1254 else
1255 echo 'void f(){}' > conftest.c
1256 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1257 ac_cv_prog_cc_g=yes
1258 else
1259 ac_cv_prog_cc_g=no
1261 rm -f conftest*
1265 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1266 if test "$ac_test_CFLAGS" = set; then
1267 CFLAGS="$ac_save_CFLAGS"
1268 elif test $ac_cv_prog_cc_g = yes; then
1269 CFLAGS="-g -O2"
1270 else
1271 CFLAGS="-O2"
1273 else
1274 GCC=
1275 test "${CFLAGS+set}" = set || CFLAGS="-g"
1279 # Can't just call these here as g++ requires libstc++ to be built....
1280 # AC_PROG_CXX
1282 # Likewise for AC_PROG_CXX.
1286 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1287 # flags that come in CXX while configuring libstdc++. They're different
1288 # from those used for all other target libraries. If CXX is set in
1289 # the environment, respect that here.
1290 glibcpp_CXX=$CXX
1291 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1293 # Extract the first word of "$ac_prog", so it can be a program name with args.
1294 set dummy $ac_prog; ac_word=$2
1295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1296 echo "configure:1297: checking for $ac_word" >&5
1297 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1299 else
1300 if test -n "$glibcpp_CXX"; then
1301 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1302 else
1303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1304 ac_dummy="$PATH"
1305 for ac_dir in $ac_dummy; do
1306 test -z "$ac_dir" && ac_dir=.
1307 if test -f $ac_dir/$ac_word; then
1308 ac_cv_prog_glibcpp_CXX="$ac_prog"
1309 break
1311 done
1312 IFS="$ac_save_ifs"
1315 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1316 if test -n "$glibcpp_CXX"; then
1317 echo "$ac_t""$glibcpp_CXX" 1>&6
1318 else
1319 echo "$ac_t""no" 1>&6
1322 test -n "$glibcpp_CXX" && break
1323 done
1324 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1327 CXX=$glibcpp_CXX
1328 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1330 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1331 echo "configure:1332: checking whether we are using GNU C++" >&5
1332 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1333 echo $ac_n "(cached) $ac_c" 1>&6
1334 else
1335 cat > conftest.C <<EOF
1336 #ifdef __GNUC__
1337 yes;
1338 #endif
1340 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1341 ac_cv_prog_gxx=yes
1342 else
1343 ac_cv_prog_gxx=no
1347 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1349 if test $ac_cv_prog_gxx = yes; then
1350 GXX=yes
1351 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1352 ac_save_CXXFLAGS="$CXXFLAGS"
1353 CXXFLAGS=
1354 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1355 echo "configure:1356: checking whether ${CXX-g++} accepts -g" >&5
1356 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1358 else
1359 echo 'void f(){}' > conftest.cc
1360 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1361 ac_cv_prog_cxx_g=yes
1362 else
1363 ac_cv_prog_cxx_g=no
1365 rm -f conftest*
1369 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1370 if test "$ac_test_CXXFLAGS" = set; then
1371 CXXFLAGS="$ac_save_CXXFLAGS"
1372 elif test $ac_cv_prog_cxx_g = yes; then
1373 CXXFLAGS="-g -O2"
1374 else
1375 CXXFLAGS="-O2"
1377 else
1378 GXX=
1379 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1383 # For some reason, gettext needs this.
1384 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1385 echo "configure:1386: checking for POSIXized ISC" >&5
1386 if test -d /etc/conf/kconfig.d &&
1387 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1388 then
1389 echo "$ac_t""yes" 1>&6
1390 ISC=yes # If later tests want to check for ISC.
1391 cat >> confdefs.h <<\EOF
1392 #define _POSIX_SOURCE 1
1395 if test "$GCC" = yes; then
1396 CC="$CC -posix"
1397 else
1398 CC="$CC -Xp"
1400 else
1401 echo "$ac_t""no" 1>&6
1402 ISC=
1406 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1407 set dummy ${ac_tool_prefix}as; ac_word=$2
1408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1409 echo "configure:1410: checking for $ac_word" >&5
1410 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1411 echo $ac_n "(cached) $ac_c" 1>&6
1412 else
1413 if test -n "$AS"; then
1414 ac_cv_prog_AS="$AS" # Let the user override the test.
1415 else
1416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1417 ac_dummy="$PATH"
1418 for ac_dir in $ac_dummy; do
1419 test -z "$ac_dir" && ac_dir=.
1420 if test -f $ac_dir/$ac_word; then
1421 ac_cv_prog_AS="${ac_tool_prefix}as"
1422 break
1424 done
1425 IFS="$ac_save_ifs"
1426 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1429 AS="$ac_cv_prog_AS"
1430 if test -n "$AS"; then
1431 echo "$ac_t""$AS" 1>&6
1432 else
1433 echo "$ac_t""no" 1>&6
1438 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1439 set dummy ${ac_tool_prefix}ar; ac_word=$2
1440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1441 echo "configure:1442: checking for $ac_word" >&5
1442 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1444 else
1445 if test -n "$AR"; then
1446 ac_cv_prog_AR="$AR" # Let the user override the test.
1447 else
1448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1449 ac_dummy="$PATH"
1450 for ac_dir in $ac_dummy; do
1451 test -z "$ac_dir" && ac_dir=.
1452 if test -f $ac_dir/$ac_word; then
1453 ac_cv_prog_AR="${ac_tool_prefix}ar"
1454 break
1456 done
1457 IFS="$ac_save_ifs"
1458 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1461 AR="$ac_cv_prog_AR"
1462 if test -n "$AR"; then
1463 echo "$ac_t""$AR" 1>&6
1464 else
1465 echo "$ac_t""no" 1>&6
1470 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1471 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1473 echo "configure:1474: checking for $ac_word" >&5
1474 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1476 else
1477 if test -n "$RANLIB"; then
1478 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1479 else
1480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1481 ac_dummy="$PATH"
1482 for ac_dir in $ac_dummy; do
1483 test -z "$ac_dir" && ac_dir=.
1484 if test -f $ac_dir/$ac_word; then
1485 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1486 break
1488 done
1489 IFS="$ac_save_ifs"
1492 RANLIB="$ac_cv_prog_RANLIB"
1493 if test -n "$RANLIB"; then
1494 echo "$ac_t""$RANLIB" 1>&6
1495 else
1496 echo "$ac_t""no" 1>&6
1500 if test -z "$ac_cv_prog_RANLIB"; then
1501 if test -n "$ac_tool_prefix"; then
1502 # Extract the first word of "ranlib", so it can be a program name with args.
1503 set dummy ranlib; ac_word=$2
1504 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1505 echo "configure:1506: checking for $ac_word" >&5
1506 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1508 else
1509 if test -n "$RANLIB"; then
1510 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1511 else
1512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1513 ac_dummy="$PATH"
1514 for ac_dir in $ac_dummy; do
1515 test -z "$ac_dir" && ac_dir=.
1516 if test -f $ac_dir/$ac_word; then
1517 ac_cv_prog_RANLIB="ranlib"
1518 break
1520 done
1521 IFS="$ac_save_ifs"
1522 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1525 RANLIB="$ac_cv_prog_RANLIB"
1526 if test -n "$RANLIB"; then
1527 echo "$ac_t""$RANLIB" 1>&6
1528 else
1529 echo "$ac_t""no" 1>&6
1532 else
1533 RANLIB="ranlib-not-found-in-path-error"
1537 # Find a good install program. We prefer a C program (faster),
1538 # so one script is as good as another. But avoid the broken or
1539 # incompatible versions:
1540 # SysV /etc/install, /usr/sbin/install
1541 # SunOS /usr/etc/install
1542 # IRIX /sbin/install
1543 # AIX /bin/install
1544 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1545 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1546 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1547 # ./install, which can be erroneously created by make from ./install.sh.
1548 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1549 echo "configure:1550: checking for a BSD compatible install" >&5
1550 if test -z "$INSTALL"; then
1551 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1553 else
1554 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1555 for ac_dir in $PATH; do
1556 # Account for people who put trailing slashes in PATH elements.
1557 case "$ac_dir/" in
1558 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1560 # OSF1 and SCO ODT 3.0 have their own names for install.
1561 # Don't use installbsd from OSF since it installs stuff as root
1562 # by default.
1563 for ac_prog in ginstall scoinst install; do
1564 if test -f $ac_dir/$ac_prog; then
1565 if test $ac_prog = install &&
1566 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1567 # AIX install. It has an incompatible calling convention.
1569 else
1570 ac_cv_path_install="$ac_dir/$ac_prog -c"
1571 break 2
1574 done
1576 esac
1577 done
1578 IFS="$ac_save_IFS"
1581 if test "${ac_cv_path_install+set}" = set; then
1582 INSTALL="$ac_cv_path_install"
1583 else
1584 # As a last resort, use the slow shell script. We don't cache a
1585 # path for INSTALL within a source directory, because that will
1586 # break other packages using the cache if that directory is
1587 # removed, or if the path is relative.
1588 INSTALL="$ac_install_sh"
1591 echo "$ac_t""$INSTALL" 1>&6
1593 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1594 # It thinks the first close brace ends the variable substitution.
1595 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1597 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1599 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1602 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1603 echo "configure:1604: checking whether to enable maintainer-specific portions of Makefiles" >&5
1604 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1605 if test "${enable_maintainer_mode+set}" = set; then
1606 enableval="$enable_maintainer_mode"
1607 USE_MAINTAINER_MODE=$enableval
1608 else
1609 USE_MAINTAINER_MODE=no
1612 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1615 if test $USE_MAINTAINER_MODE = yes; then
1616 MAINTAINER_MODE_TRUE=
1617 MAINTAINER_MODE_FALSE='#'
1618 else
1619 MAINTAINER_MODE_TRUE='#'
1620 MAINTAINER_MODE_FALSE=
1622 MAINT=$MAINTAINER_MODE_TRUE
1626 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1627 # at least currently, we never actually build a program, so we never
1628 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1629 # fails, because we are probably configuring with a cross compiler
1630 # which cant create executables. So we include AC_EXEEXT to keep
1631 # automake happy, but we dont execute it, since we dont care about
1632 # the result.
1633 if false; then
1634 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1635 # to nothing, so nothing would remain between `then' and `fi' if it
1636 # were not for the `:' below.
1640 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1641 echo "configure:1642: checking for executable suffix" >&5
1642 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1644 else
1645 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1646 ac_cv_exeext=.exe
1647 else
1648 rm -f conftest*
1649 echo 'int main () { return 0; }' > conftest.$ac_ext
1650 ac_cv_exeext=
1651 if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1652 for file in conftest.*; do
1653 case $file in
1654 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1655 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1656 esac
1657 done
1658 else
1659 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1661 rm -f conftest*
1662 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1666 EXEEXT=""
1667 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1668 echo "$ac_t""${ac_cv_exeext}" 1>&6
1669 ac_exeext=$EXEEXT
1673 . ${glibcpp_basedir}/configure.host
1675 case ${glibcpp_basedir} in
1676 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1677 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1678 esac
1680 # This does for the target what configure.host does for the host. In
1681 # addition to possibly modifying the same flags, it also sets up symlinks.
1683 . ${glibcpp_basedir}/configure.target
1684 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1685 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1692 # Check whether --enable-shared or --disable-shared was given.
1693 if test "${enable_shared+set}" = set; then
1694 enableval="$enable_shared"
1695 p=${PACKAGE-default}
1696 case $enableval in
1697 yes) enable_shared=yes ;;
1698 no) enable_shared=no ;;
1700 enable_shared=no
1701 # Look at the argument we got. We use all the common list separators.
1702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1703 for pkg in $enableval; do
1704 if test "X$pkg" = "X$p"; then
1705 enable_shared=yes
1707 done
1708 IFS="$ac_save_ifs"
1710 esac
1711 else
1712 enable_shared=yes
1715 # Check whether --enable-static or --disable-static was given.
1716 if test "${enable_static+set}" = set; then
1717 enableval="$enable_static"
1718 p=${PACKAGE-default}
1719 case $enableval in
1720 yes) enable_static=yes ;;
1721 no) enable_static=no ;;
1723 enable_static=no
1724 # Look at the argument we got. We use all the common list separators.
1725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1726 for pkg in $enableval; do
1727 if test "X$pkg" = "X$p"; then
1728 enable_static=yes
1730 done
1731 IFS="$ac_save_ifs"
1733 esac
1734 else
1735 enable_static=yes
1738 # Check whether --enable-fast-install or --disable-fast-install was given.
1739 if test "${enable_fast_install+set}" = set; then
1740 enableval="$enable_fast_install"
1741 p=${PACKAGE-default}
1742 case $enableval in
1743 yes) enable_fast_install=yes ;;
1744 no) enable_fast_install=no ;;
1746 enable_fast_install=no
1747 # Look at the argument we got. We use all the common list separators.
1748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1749 for pkg in $enableval; do
1750 if test "X$pkg" = "X$p"; then
1751 enable_fast_install=yes
1753 done
1754 IFS="$ac_save_ifs"
1756 esac
1757 else
1758 enable_fast_install=yes
1761 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1762 if test "${with_gnu_ld+set}" = set; then
1763 withval="$with_gnu_ld"
1764 test "$withval" = no || with_gnu_ld=yes
1765 else
1766 with_gnu_ld=no
1769 ac_prog=ld
1770 if test "$GCC" = yes; then
1771 # Check if gcc -print-prog-name=ld gives a path.
1772 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1773 echo "configure:1774: checking for ld used by GCC" >&5
1774 case $host in
1775 *-*-mingw*)
1776 # gcc leaves a trailing carriage return which upsets mingw
1777 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1779 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1780 esac
1781 case $ac_prog in
1782 # Accept absolute paths.
1783 [\\/]* | [A-Za-z]:[\\/]*)
1784 re_direlt='/[^/][^/]*/\.\./'
1785 # Canonicalize the path of ld
1786 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1787 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1788 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1789 done
1790 test -z "$LD" && LD="$ac_prog"
1793 # If it fails, then pretend we aren't using GCC.
1794 ac_prog=ld
1797 # If it is relative, then search for the first ld in PATH.
1798 with_gnu_ld=unknown
1800 esac
1801 elif test "$with_gnu_ld" = yes; then
1802 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1803 echo "configure:1804: checking for GNU ld" >&5
1804 else
1805 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1806 echo "configure:1807: checking for non-GNU ld" >&5
1808 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1810 else
1811 if test -z "$LD"; then
1812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1813 for ac_dir in $PATH; do
1814 test -z "$ac_dir" && ac_dir=.
1815 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1816 lt_cv_path_LD="$ac_dir/$ac_prog"
1817 # Check to see if the program is GNU ld. I'd rather use --version,
1818 # but apparently some GNU ld's only accept -v.
1819 # Break only if it was the GNU/non-GNU ld that we prefer.
1820 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1821 test "$with_gnu_ld" != no && break
1822 else
1823 test "$with_gnu_ld" != yes && break
1826 done
1827 IFS="$ac_save_ifs"
1828 else
1829 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1833 LD="$lt_cv_path_LD"
1834 if test -n "$LD"; then
1835 echo "$ac_t""$LD" 1>&6
1836 else
1837 echo "$ac_t""no" 1>&6
1839 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1840 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1841 echo "configure:1842: checking if the linker ($LD) is GNU ld" >&5
1842 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1844 else
1845 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1846 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1847 lt_cv_prog_gnu_ld=yes
1848 else
1849 lt_cv_prog_gnu_ld=no
1853 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1854 with_gnu_ld=$lt_cv_prog_gnu_ld
1857 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1858 echo "configure:1859: checking for $LD option to reload object files" >&5
1859 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
1861 else
1862 lt_cv_ld_reload_flag='-r'
1865 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1866 reload_flag=$lt_cv_ld_reload_flag
1867 test -n "$reload_flag" && reload_flag=" $reload_flag"
1869 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1870 echo "configure:1871: checking for BSD-compatible nm" >&5
1871 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1872 echo $ac_n "(cached) $ac_c" 1>&6
1873 else
1874 if test -n "$NM"; then
1875 # Let the user override the test.
1876 lt_cv_path_NM="$NM"
1877 else
1878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1879 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1880 test -z "$ac_dir" && ac_dir=.
1881 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1882 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1883 # Check to see if the nm accepts a BSD-compat flag.
1884 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1885 # nm: unknown option "B" ignored
1886 # Tru64's nm complains that /dev/null is an invalid object file
1887 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1888 lt_cv_path_NM="$tmp_nm -B"
1889 break
1890 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1891 lt_cv_path_NM="$tmp_nm -p"
1892 break
1893 else
1894 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1895 continue # so that we can try to find one that supports BSD flags
1898 done
1899 IFS="$ac_save_ifs"
1900 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1904 NM="$lt_cv_path_NM"
1905 echo "$ac_t""$NM" 1>&6
1907 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1908 echo "configure:1909: checking how to recognise dependant libraries" >&5
1909 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1911 else
1912 lt_cv_file_magic_cmd='$MAGIC_CMD'
1913 lt_cv_file_magic_test_file=
1914 lt_cv_deplibs_check_method='unknown'
1915 # Need to set the preceding variable on all platforms that support
1916 # interlibrary dependencies.
1917 # 'none' -- dependencies not supported.
1918 # `unknown' -- same as none, but documents that we really don't know.
1919 # 'pass_all' -- all dependencies passed with no checks.
1920 # 'test_compile' -- check by making test program.
1921 # 'file_magic [regex]' -- check by looking for files in library path
1922 # which responds to the $file_magic_cmd with a given egrep regex.
1923 # If you have `file' or equivalent on your system and you're not sure
1924 # whether `pass_all' will *always* work, you probably want this one.
1926 case $host_os in
1927 aix*)
1928 lt_cv_deplibs_check_method=pass_all
1931 beos*)
1932 lt_cv_deplibs_check_method=pass_all
1935 bsdi4*)
1936 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1937 lt_cv_file_magic_cmd='/usr/bin/file -L'
1938 lt_cv_file_magic_test_file=/shlib/libc.so
1941 cygwin* | mingw* |pw32*)
1942 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1943 lt_cv_file_magic_cmd='$OBJDUMP -f'
1946 darwin* | rhapsody*)
1947 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1948 lt_cv_file_magic_cmd='/usr/bin/file -L'
1949 case "$host_os" in
1950 rhapsody* | darwin1.012)
1951 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1953 *) # Darwin 1.3 on
1954 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1956 esac
1959 freebsd* )
1960 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1961 case $host_cpu in
1962 i*86 )
1963 # Not sure whether the presence of OpenBSD here was a mistake.
1964 # Let's accept both of them until this is cleared up.
1965 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1966 lt_cv_file_magic_cmd=/usr/bin/file
1967 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1969 esac
1970 else
1971 lt_cv_deplibs_check_method=pass_all
1975 gnu*)
1976 lt_cv_deplibs_check_method=pass_all
1979 hpux10.20*|hpux11*)
1980 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1981 lt_cv_file_magic_cmd=/usr/bin/file
1982 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1985 irix5* | irix6*)
1986 case $host_os in
1987 irix5*)
1988 # this will be overridden with pass_all, but let us keep it just in case
1989 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1992 case $LD in
1993 *-32|*"-32 ") libmagic=32-bit;;
1994 *-n32|*"-n32 ") libmagic=N32;;
1995 *-64|*"-64 ") libmagic=64-bit;;
1996 *) libmagic=never-match;;
1997 esac
1998 # this will be overridden with pass_all, but let us keep it just in case
1999 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2001 esac
2002 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2003 lt_cv_deplibs_check_method=pass_all
2006 # This must be Linux ELF.
2007 linux-gnu*)
2008 case $host_cpu in
2009 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2010 lt_cv_deplibs_check_method=pass_all ;;
2012 # glibc up to 2.1.1 does not perform some relocations on ARM
2013 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2014 esac
2015 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2018 netbsd*)
2019 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2020 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2021 else
2022 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2026 newsos6)
2027 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2028 lt_cv_file_magic_cmd=/usr/bin/file
2029 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2032 osf3* | osf4* | osf5*)
2033 # this will be overridden with pass_all, but let us keep it just in case
2034 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2035 lt_cv_file_magic_test_file=/shlib/libc.so
2036 lt_cv_deplibs_check_method=pass_all
2039 sco3.2v5*)
2040 lt_cv_deplibs_check_method=pass_all
2043 solaris*)
2044 lt_cv_deplibs_check_method=pass_all
2045 lt_cv_file_magic_test_file=/lib/libc.so
2048 sysv5uw[78]* | sysv4*uw2*)
2049 lt_cv_deplibs_check_method=pass_all
2052 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2053 case $host_vendor in
2054 ncr)
2055 lt_cv_deplibs_check_method=pass_all
2057 motorola)
2058 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]'
2059 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2061 esac
2063 esac
2067 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2068 file_magic_cmd=$lt_cv_file_magic_cmd
2069 deplibs_check_method=$lt_cv_deplibs_check_method
2071 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2072 echo "configure:2073: checking for object suffix" >&5
2073 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2075 else
2076 rm -f conftest*
2077 echo 'int i = 1;' > conftest.$ac_ext
2078 if { (eval echo configure:2079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2079 for ac_file in conftest.*; do
2080 case $ac_file in
2081 *.c) ;;
2082 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2083 esac
2084 done
2085 else
2086 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2088 rm -f conftest*
2091 echo "$ac_t""$ac_cv_objext" 1>&6
2092 OBJEXT=$ac_cv_objext
2093 ac_objext=$ac_cv_objext
2095 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2097 # Only perform the check for file, if the check method requires it
2098 case $deplibs_check_method in
2099 file_magic*)
2100 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2101 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2102 echo "configure:2103: checking for ${ac_tool_prefix}file" >&5
2103 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2105 else
2106 case $MAGIC_CMD in
2108 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2110 ?:/*)
2111 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2114 ac_save_MAGIC_CMD="$MAGIC_CMD"
2115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2116 ac_dummy="/usr/bin:$PATH"
2117 for ac_dir in $ac_dummy; do
2118 test -z "$ac_dir" && ac_dir=.
2119 if test -f $ac_dir/${ac_tool_prefix}file; then
2120 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2121 if test -n "$file_magic_test_file"; then
2122 case $deplibs_check_method in
2123 "file_magic "*)
2124 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2126 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2127 egrep "$file_magic_regex" > /dev/null; then
2129 else
2130 cat <<EOF 1>&2
2132 *** Warning: the command libtool uses to detect shared libraries,
2133 *** $file_magic_cmd, produces output that libtool cannot recognize.
2134 *** The result is that libtool may fail to recognize shared libraries
2135 *** as such. This will affect the creation of libtool libraries that
2136 *** depend on shared libraries, but programs linked with such libtool
2137 *** libraries will work regardless of this problem. Nevertheless, you
2138 *** may want to report the problem to your system manager and/or to
2139 *** bug-libtool@gnu.org
2142 fi ;;
2143 esac
2145 break
2147 done
2148 IFS="$ac_save_ifs"
2149 MAGIC_CMD="$ac_save_MAGIC_CMD"
2151 esac
2154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2155 if test -n "$MAGIC_CMD"; then
2156 echo "$ac_t""$MAGIC_CMD" 1>&6
2157 else
2158 echo "$ac_t""no" 1>&6
2161 if test -z "$lt_cv_path_MAGIC_CMD"; then
2162 if test -n "$ac_tool_prefix"; then
2163 echo $ac_n "checking for file""... $ac_c" 1>&6
2164 echo "configure:2165: checking for file" >&5
2165 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2166 echo $ac_n "(cached) $ac_c" 1>&6
2167 else
2168 case $MAGIC_CMD in
2170 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2172 ?:/*)
2173 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2176 ac_save_MAGIC_CMD="$MAGIC_CMD"
2177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2178 ac_dummy="/usr/bin:$PATH"
2179 for ac_dir in $ac_dummy; do
2180 test -z "$ac_dir" && ac_dir=.
2181 if test -f $ac_dir/file; then
2182 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2183 if test -n "$file_magic_test_file"; then
2184 case $deplibs_check_method in
2185 "file_magic "*)
2186 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2188 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2189 egrep "$file_magic_regex" > /dev/null; then
2191 else
2192 cat <<EOF 1>&2
2194 *** Warning: the command libtool uses to detect shared libraries,
2195 *** $file_magic_cmd, produces output that libtool cannot recognize.
2196 *** The result is that libtool may fail to recognize shared libraries
2197 *** as such. This will affect the creation of libtool libraries that
2198 *** depend on shared libraries, but programs linked with such libtool
2199 *** libraries will work regardless of this problem. Nevertheless, you
2200 *** may want to report the problem to your system manager and/or to
2201 *** bug-libtool@gnu.org
2204 fi ;;
2205 esac
2207 break
2209 done
2210 IFS="$ac_save_ifs"
2211 MAGIC_CMD="$ac_save_MAGIC_CMD"
2213 esac
2216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2217 if test -n "$MAGIC_CMD"; then
2218 echo "$ac_t""$MAGIC_CMD" 1>&6
2219 else
2220 echo "$ac_t""no" 1>&6
2223 else
2224 MAGIC_CMD=:
2230 esac
2232 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2233 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2234 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2235 echo "configure:2236: checking for $ac_word" >&5
2236 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2237 echo $ac_n "(cached) $ac_c" 1>&6
2238 else
2239 if test -n "$RANLIB"; then
2240 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2241 else
2242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2243 ac_dummy="$PATH"
2244 for ac_dir in $ac_dummy; do
2245 test -z "$ac_dir" && ac_dir=.
2246 if test -f $ac_dir/$ac_word; then
2247 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2248 break
2250 done
2251 IFS="$ac_save_ifs"
2254 RANLIB="$ac_cv_prog_RANLIB"
2255 if test -n "$RANLIB"; then
2256 echo "$ac_t""$RANLIB" 1>&6
2257 else
2258 echo "$ac_t""no" 1>&6
2262 if test -z "$ac_cv_prog_RANLIB"; then
2263 if test -n "$ac_tool_prefix"; then
2264 # Extract the first word of "ranlib", so it can be a program name with args.
2265 set dummy ranlib; ac_word=$2
2266 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2267 echo "configure:2268: checking for $ac_word" >&5
2268 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2270 else
2271 if test -n "$RANLIB"; then
2272 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2273 else
2274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2275 ac_dummy="$PATH"
2276 for ac_dir in $ac_dummy; do
2277 test -z "$ac_dir" && ac_dir=.
2278 if test -f $ac_dir/$ac_word; then
2279 ac_cv_prog_RANLIB="ranlib"
2280 break
2282 done
2283 IFS="$ac_save_ifs"
2284 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2287 RANLIB="$ac_cv_prog_RANLIB"
2288 if test -n "$RANLIB"; then
2289 echo "$ac_t""$RANLIB" 1>&6
2290 else
2291 echo "$ac_t""no" 1>&6
2294 else
2295 RANLIB=":"
2299 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2300 set dummy ${ac_tool_prefix}strip; ac_word=$2
2301 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2302 echo "configure:2303: checking for $ac_word" >&5
2303 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2305 else
2306 if test -n "$STRIP"; then
2307 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2308 else
2309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2310 ac_dummy="$PATH"
2311 for ac_dir in $ac_dummy; do
2312 test -z "$ac_dir" && ac_dir=.
2313 if test -f $ac_dir/$ac_word; then
2314 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2315 break
2317 done
2318 IFS="$ac_save_ifs"
2321 STRIP="$ac_cv_prog_STRIP"
2322 if test -n "$STRIP"; then
2323 echo "$ac_t""$STRIP" 1>&6
2324 else
2325 echo "$ac_t""no" 1>&6
2329 if test -z "$ac_cv_prog_STRIP"; then
2330 if test -n "$ac_tool_prefix"; then
2331 # Extract the first word of "strip", so it can be a program name with args.
2332 set dummy strip; ac_word=$2
2333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2334 echo "configure:2335: checking for $ac_word" >&5
2335 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2337 else
2338 if test -n "$STRIP"; then
2339 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2340 else
2341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2342 ac_dummy="$PATH"
2343 for ac_dir in $ac_dummy; do
2344 test -z "$ac_dir" && ac_dir=.
2345 if test -f $ac_dir/$ac_word; then
2346 ac_cv_prog_STRIP="strip"
2347 break
2349 done
2350 IFS="$ac_save_ifs"
2351 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2354 STRIP="$ac_cv_prog_STRIP"
2355 if test -n "$STRIP"; then
2356 echo "$ac_t""$STRIP" 1>&6
2357 else
2358 echo "$ac_t""no" 1>&6
2361 else
2362 STRIP=":"
2367 # Check for any special flags to pass to ltconfig.
2368 libtool_flags="--cache-file=$cache_file"
2369 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2370 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2371 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2372 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2373 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2374 libtool_flags="$libtool_flags --enable-dlopen"
2376 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2377 if test "${enable_libtool_lock+set}" = set; then
2378 enableval="$enable_libtool_lock"
2382 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2383 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2385 # Check whether --with-pic or --without-pic was given.
2386 if test "${with_pic+set}" = set; then
2387 withval="$with_pic"
2388 pic_mode="$withval"
2389 else
2390 pic_mode=default
2393 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2394 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2396 # Some flags need to be propagated to the compiler or linker for good
2397 # libtool support.
2398 case $host in
2399 *-*-irix6*)
2400 # Find out which ABI we are using.
2401 echo '#line 2402 "configure"' > conftest.$ac_ext
2402 if { (eval echo configure:2403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2403 case `/usr/bin/file conftest.$ac_objext` in
2404 *32-bit*)
2405 LD="${LD-ld} -32"
2407 *N32*)
2408 LD="${LD-ld} -n32"
2410 *64-bit*)
2411 LD="${LD-ld} -64"
2413 esac
2415 rm -rf conftest*
2418 *-*-sco3.2v5*)
2419 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2420 SAVE_CFLAGS="$CFLAGS"
2421 CFLAGS="$CFLAGS -belf"
2422 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2423 echo "configure:2424: checking whether the C compiler needs -belf" >&5
2424 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2426 else
2428 ac_ext=c
2429 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2432 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2433 cross_compiling=$ac_cv_prog_cc_cross
2435 cat > conftest.$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2439 int main() {
2441 ; return 0; }
2443 if { (eval echo configure:2444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2444 rm -rf conftest*
2445 lt_cv_cc_needs_belf=yes
2446 else
2447 echo "configure: failed program was:" >&5
2448 cat conftest.$ac_ext >&5
2449 rm -rf conftest*
2450 lt_cv_cc_needs_belf=no
2452 rm -f conftest*
2453 ac_ext=c
2454 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2457 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2458 cross_compiling=$ac_cv_prog_cc_cross
2462 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2463 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2464 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2465 CFLAGS="$SAVE_CFLAGS"
2470 esac
2472 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2473 echo "configure:2474: checking how to run the C++ preprocessor" >&5
2474 if test -z "$CXXCPP"; then
2475 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2477 else
2478 ac_ext=C
2479 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2480 ac_cpp='$CXXCPP $CPPFLAGS'
2481 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2482 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2483 cross_compiling=$ac_cv_prog_cxx_cross
2484 CXXCPP="${CXX-g++} -E"
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 #include <stdlib.h>
2490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2491 { (eval echo configure:2492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2493 if test -z "$ac_err"; then
2495 else
2496 echo "$ac_err" >&5
2497 echo "configure: failed program was:" >&5
2498 cat conftest.$ac_ext >&5
2499 rm -rf conftest*
2500 CXXCPP=/lib/cpp
2502 rm -f conftest*
2503 ac_cv_prog_CXXCPP="$CXXCPP"
2504 ac_ext=c
2505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2506 ac_cpp='$CPP $CPPFLAGS'
2507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2509 cross_compiling=$ac_cv_prog_cc_cross
2512 CXXCPP="$ac_cv_prog_CXXCPP"
2513 echo "$ac_t""$CXXCPP" 1>&6
2516 # Save cache, so that ltconfig can load it
2517 cat > confcache <<\EOF
2518 # This file is a shell script that caches the results of configure
2519 # tests run on this system so they can be shared between configure
2520 # scripts and configure runs. It is not useful on other systems.
2521 # If it contains results you don't want to keep, you may remove or edit it.
2523 # By default, configure uses ./config.cache as the cache file,
2524 # creating it if it does not exist already. You can give configure
2525 # the --cache-file=FILE option to use a different cache file; that is
2526 # what configure does when it calls configure scripts in
2527 # subdirectories, so they share the cache.
2528 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2529 # config.status only pays attention to the cache file if you give it the
2530 # --recheck option to rerun configure.
2533 # The following way of writing the cache mishandles newlines in values,
2534 # but we know of no workaround that is simple, portable, and efficient.
2535 # So, don't put newlines in cache variables' values.
2536 # Ultrix sh set writes to stderr and can't be redirected directly,
2537 # and sets the high bit in the cache file unless we assign to the vars.
2538 (set) 2>&1 |
2539 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2540 *ac_space=\ *)
2541 # `set' does not quote correctly, so add quotes (double-quote substitution
2542 # turns \\\\ into \\, and sed turns \\ into \).
2543 sed -n \
2544 -e "s/'/'\\\\''/g" \
2545 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2548 # `set' quotes correctly as required by POSIX, so do not add quotes.
2549 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2551 esac >> confcache
2552 if cmp -s $cache_file confcache; then
2554 else
2555 if test -w $cache_file; then
2556 echo "updating cache $cache_file"
2557 cat confcache > $cache_file
2558 else
2559 echo "not updating unwritable cache $cache_file"
2562 rm -f confcache
2565 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2566 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2567 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2568 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2569 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2570 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2571 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2572 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2573 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2574 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2576 # Reload cache, that may have been modified by ltconfig
2577 if test -r "$cache_file"; then
2578 echo "loading cache $cache_file"
2579 . $cache_file
2580 else
2581 echo "creating cache $cache_file"
2582 > $cache_file
2586 # This can be used to rebuild libtool when needed
2587 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2589 # Always use our own libtool.
2590 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2592 # Redirect the config.log output again, so that the ltconfig log is not
2593 # clobbered by the next message.
2594 exec 5>>./config.log
2598 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2599 lt_save_CC="$CC"
2600 lt_save_CFLAGS="$CFLAGS"
2601 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2602 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2603 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2604 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2605 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2606 deplibs_check_method="$deplibs_check_method" \
2607 file_magic_cmd="$file_magic_cmd" \
2608 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2609 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2610 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2611 CC="$lt_save_CC"
2612 CFLAGS="$lt_save_CFLAGS"
2614 # Redirect the config.log output again, so that the ltconfig log is not
2615 # clobbered by the next message.
2616 exec 5>>./config.log
2626 # Check for c++ or library specific bits that don't require linking.
2627 #GLIBCPP_CHECK_COMPILER_VERSION
2628 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2629 echo "configure:2630: checking for GNU make" >&5
2630 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2631 echo $ac_n "(cached) $ac_c" 1>&6
2632 else
2633 _cv_gnu_make_command='' ;
2634 for a in "${MAKE-make}" make gmake gnumake ; do
2635 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2636 then
2637 _cv_gnu_make_command=$a ;
2638 break;
2640 done ;
2644 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2645 if test "x$_cv_gnu_make_command" != "x" ; then
2646 ifGNUmake='' ;
2647 else
2648 ifGNUmake='#' ;
2653 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2654 # Check whether --enable-debug or --disable-debug was given.
2655 if test "${enable_debug+set}" = set; then
2656 enableval="$enable_debug"
2657 case "${enableval}" in
2658 yes) enable_debug=yes ;;
2659 no) enable_debug=no ;;
2660 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2661 esac
2662 else
2663 enable_debug=no
2666 case "${enable_debug}" in
2667 yes)
2668 DEBUG_FLAGS='-O0 -ggdb3'
2670 no)
2671 DEBUG_FLAGS='-g'
2673 esac
2676 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2677 echo "configure:2678: checking how to run the C preprocessor" >&5
2678 # On Suns, sometimes $CPP names a directory.
2679 if test -n "$CPP" && test -d "$CPP"; then
2680 CPP=
2682 if test -z "$CPP"; then
2683 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2685 else
2686 # This must be in double quotes, not single quotes, because CPP may get
2687 # substituted into the Makefile and "${CC-cc}" will confuse make.
2688 CPP="${CC-cc} -E"
2689 # On the NeXT, cc -E runs the code through the compiler's parser,
2690 # not just through cpp.
2691 cat > conftest.$ac_ext <<EOF
2692 #line 2693 "configure"
2693 #include "confdefs.h"
2694 #include <assert.h>
2695 Syntax Error
2697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2698 { (eval echo configure:2699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2699 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2700 if test -z "$ac_err"; then
2702 else
2703 echo "$ac_err" >&5
2704 echo "configure: failed program was:" >&5
2705 cat conftest.$ac_ext >&5
2706 rm -rf conftest*
2707 CPP="${CC-cc} -E -traditional-cpp"
2708 cat > conftest.$ac_ext <<EOF
2709 #line 2710 "configure"
2710 #include "confdefs.h"
2711 #include <assert.h>
2712 Syntax Error
2714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2715 { (eval echo configure:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2717 if test -z "$ac_err"; then
2719 else
2720 echo "$ac_err" >&5
2721 echo "configure: failed program was:" >&5
2722 cat conftest.$ac_ext >&5
2723 rm -rf conftest*
2724 CPP="${CC-cc} -nologo -E"
2725 cat > conftest.$ac_ext <<EOF
2726 #line 2727 "configure"
2727 #include "confdefs.h"
2728 #include <assert.h>
2729 Syntax Error
2731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2732 { (eval echo configure:2733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2734 if test -z "$ac_err"; then
2736 else
2737 echo "$ac_err" >&5
2738 echo "configure: failed program was:" >&5
2739 cat conftest.$ac_ext >&5
2740 rm -rf conftest*
2741 CPP=/lib/cpp
2743 rm -f conftest*
2745 rm -f conftest*
2747 rm -f conftest*
2748 ac_cv_prog_CPP="$CPP"
2750 CPP="$ac_cv_prog_CPP"
2751 else
2752 ac_cv_prog_CPP="$CPP"
2754 echo "$ac_t""$CPP" 1>&6
2757 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2758 echo "configure:2759: checking for cstdio to use" >&5
2759 # Check whether --enable-cstdio or --disable-cstdio was given.
2760 if test "${enable_cstdio+set}" = set; then
2761 enableval="$enable_cstdio"
2762 if test x$enable_cstdio = xno; then
2763 enable_cstdio=stdio
2765 else
2766 enable_cstdio=stdio
2770 enable_cstdio_flag=$enable_cstdio
2772 case x${enable_cstdio_flag} in
2773 xlibio)
2774 CSTDIO_H=config/io/c_io_libio.h
2775 BASIC_FILE_H=config/io/basic_file_libio.h
2776 BASIC_FILE_CC=config/io/basic_file_libio.cc
2777 echo "$ac_t""libio" 1>&6
2779 # see if we are on a system with libio native (ie, linux)
2780 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2781 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2782 echo "configure:2783: checking for libio.h" >&5
2783 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2784 echo $ac_n "(cached) $ac_c" 1>&6
2785 else
2786 cat > conftest.$ac_ext <<EOF
2787 #line 2788 "configure"
2788 #include "confdefs.h"
2789 #include <libio.h>
2791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2792 { (eval echo configure:2793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2794 if test -z "$ac_err"; then
2795 rm -rf conftest*
2796 eval "ac_cv_header_$ac_safe=yes"
2797 else
2798 echo "$ac_err" >&5
2799 echo "configure: failed program was:" >&5
2800 cat conftest.$ac_ext >&5
2801 rm -rf conftest*
2802 eval "ac_cv_header_$ac_safe=no"
2804 rm -f conftest*
2806 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2807 echo "$ac_t""yes" 1>&6
2808 has_libio=yes
2809 else
2810 echo "$ac_t""no" 1>&6
2811 has_libio=no
2815 # Need to check and see what version of glibc is being used. If
2816 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2817 # compile most of libio for linux systems.
2818 if test x$has_libio = x"yes"; then
2819 case "$target" in
2820 *-*-linux*)
2821 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2822 echo "configure:2823: checking for glibc version >= 2.2" >&5
2823 cat > conftest.$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2827 #include <features.h>
2828 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2830 #endif
2833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2834 egrep "ok" >/dev/null 2>&1; then
2835 rm -rf conftest*
2836 glibc_satisfactory=yes
2837 else
2838 rm -rf conftest*
2839 glibc_satisfactory=no
2841 rm -f conftest*
2843 echo "$ac_t""$glibc_satisfactory" 1>&6
2845 esac
2847 # XXX at the moment, admit defeat and force the recompilation
2848 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2849 glibc_satisfactory=no
2851 if test x$glibc_satisfactory = x"yes"; then
2852 need_libio=no
2853 need_wlibio=no
2854 else
2855 need_libio=yes
2856 # bkoz XXX need to add checks to enable this
2857 # pme XXX here's a first pass at such a check
2858 if test x$enable_c_mbchar != xno; then
2859 need_wlibio=yes
2860 else
2861 need_wlibio=no
2865 else
2866 # Using libio, but <libio.h> doesn't exist on the target system. . .
2867 need_libio=yes
2868 # bkoz XXX need to add checks to enable this
2869 # pme XXX here's a first pass at such a check
2870 if test x$enable_c_mbchar != xno; then
2871 need_wlibio=yes
2872 else
2873 need_wlibio=no
2877 xstdio | x | xno | xnone | xyes)
2878 # default
2879 CSTDIO_H=config/io/c_io_stdio.h
2880 BASIC_FILE_H=config/io/basic_file_stdio.h
2881 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2882 echo "$ac_t""stdio" 1>&6
2884 # We're not using stdio.
2885 need_libio=no
2886 need_wlibio=no
2889 echo "$enable_cstdio is an unknown io package" 1>&2
2890 exit 1
2892 esac
2897 # 2000-08-04 bkoz hack
2898 CCODECVT_C=config/io/c_io_libio_codecvt.c
2900 # 2000-08-04 bkoz hack
2904 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2905 GLIBCPP_BUILD_LIBIO_TRUE=
2906 GLIBCPP_BUILD_LIBIO_FALSE='#'
2907 else
2908 GLIBCPP_BUILD_LIBIO_TRUE='#'
2909 GLIBCPP_BUILD_LIBIO_FALSE=
2913 if test "$need_libio" = yes; then
2914 GLIBCPP_NEED_LIBIO_TRUE=
2915 GLIBCPP_NEED_LIBIO_FALSE='#'
2916 else
2917 GLIBCPP_NEED_LIBIO_TRUE='#'
2918 GLIBCPP_NEED_LIBIO_FALSE=
2922 if test "$need_wlibio" = yes; then
2923 GLIBCPP_NEED_WLIBIO_TRUE=
2924 GLIBCPP_NEED_WLIBIO_FALSE='#'
2925 else
2926 GLIBCPP_NEED_WLIBIO_TRUE='#'
2927 GLIBCPP_NEED_WLIBIO_FALSE=
2929 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2930 libio_la=../libio/libio.la
2931 else
2932 libio_la=
2937 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2938 echo "configure:2939: checking for clocale to use" >&5
2939 # Check whether --enable-clocale or --disable-clocale was given.
2940 if test "${enable_clocale+set}" = set; then
2941 enableval="$enable_clocale"
2942 if test x$enable_clocale = xno; then
2943 enable_clocale=generic
2945 else
2946 enable_clocale=generic
2950 enable_clocale_flag=$enable_clocale
2952 case x${enable_clocale_flag} in
2953 xgeneric)
2954 echo "$ac_t""generic" 1>&6
2956 # Don't use gettext.
2957 USE_NLS=no
2959 CLOCALE_H=config/locale/c_locale_generic.h
2960 CLOCALE_CC=config/locale/c_locale_generic.cc
2961 CCODECVT_H=config/locale/codecvt_specializations_generic.h
2962 CCOLLATE_CC=config/locale/collate_members_generic.cc
2963 CMESSAGES_H=config/locale/messages_members_generic.h
2964 CMESSAGES_CC=config/locale/messages_members_generic.cc
2965 CMONEY_CC=config/locale/moneypunct_members_generic.cc
2966 CNUMERIC_CC=config/locale/numpunct_members_generic.cc
2967 CTIME_CC=config/locale/time_members_generic.cc
2969 xgnu)
2970 echo "$ac_t""gnu" 1>&6
2972 # Declare intention to use gettext, and add support for specific
2973 # languages.
2974 # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
2975 ALL_LINGUAS="de fr"
2976 # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
2977 # Need to deal with MSGFMT, USE_NLS, and glibcpp_[P,M]OFILES
2978 USE_NLS=yes
2980 # Export the build objects.
2981 for ling in $ALL_LINGUAS; do \
2982 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
2983 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
2984 done
2988 CLOCALE_H=config/locale/c_locale_gnu.h
2989 CLOCALE_CC=config/locale/c_locale_gnu.cc
2990 CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
2991 CCOLLATE_CC=config/locale/collate_members_gnu.cc
2992 CMESSAGES_H=config/locale/messages_members_gnu.h
2993 CMESSAGES_CC=config/locale/messages_members_gnu.cc
2994 CMONEY_CC=config/locale/moneypunct_members_gnu.cc
2995 CNUMERIC_CC=config/locale/numpunct_members_gnu.cc
2996 CTIME_CC=config/locale/time_members_gnu.cc
2998 xieee_1003.1)
2999 echo "$ac_t""generic" 1>&6
3001 # Don't use gettext.
3002 USE_NLS=no
3004 CLOCALE_H=config/locale/c_locale_ieee_1003.1-200x.h
3005 CLOCALE_CC=config/locale/c_locale_ieee_1003.1-200x.cc
3006 CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3007 CCOLLATE_CC=config/locale/collate_members_generic.cc
3008 CMESSAGES_H=config/locale/messages_members_ieee_1003.1-200x.h
3009 CMESSAGES_CC=config/locale/messages_members_ieee_1003.1-200x.cc
3010 CMONEY_CC=config/locale/moneypunct_members_generic.cc
3011 CNUMERIC_CC=config/locale/numpunct_members_generic.cc
3012 CTIME_CC=config/locale/time_members_generic.cc
3015 echo "$enable_clocale is an unknown locale package" 1>&2
3016 exit 1
3018 esac
3020 # This is where the testsuite looks for locale catalogs, using the
3021 # -DLOCALEDIR define during testsuite compilation.
3022 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3036 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3037 if test "${enable_c_mbchar+set}" = set; then
3038 enableval="$enable_c_mbchar"
3039 case "$enableval" in
3040 yes) enable_c_mbchar=yes ;;
3041 no) enable_c_mbchar=no ;;
3042 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3043 esac
3044 else
3045 enable_c_mbchar=yes
3049 # Check whether --enable-c99 or --disable-c99 was given.
3050 if test "${enable_c99+set}" = set; then
3051 enableval="$enable_c99"
3052 case "$enableval" in
3053 yes) enable_c99=yes ;;
3054 no) enable_c99=no ;;
3055 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3056 esac
3057 else
3058 enable_c99=yes
3062 ac_ext=C
3063 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3064 ac_cpp='$CXXCPP $CPPFLAGS'
3065 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3066 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3067 cross_compiling=$ac_cv_prog_cxx_cross
3070 # Check for the existence of <math.h> functions used if C99 is enabled.
3071 ac_c99_math=yes;
3072 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3073 echo "configure:3074: checking for ISO C99 support in <math.h>" >&5
3074 cat > conftest.$ac_ext <<EOF
3075 #line 3076 "configure"
3076 #include "confdefs.h"
3077 #include <math.h>
3078 int main() {
3079 fpclassify(0.0);
3080 ; return 0; }
3082 if { (eval echo configure:3083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3084 else
3085 echo "configure: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3087 rm -rf conftest*
3088 ac_c99_math=no
3090 rm -f conftest*
3091 cat > conftest.$ac_ext <<EOF
3092 #line 3093 "configure"
3093 #include "confdefs.h"
3094 #include <math.h>
3095 int main() {
3096 isfinite(0.0);
3097 ; return 0; }
3099 if { (eval echo configure:3100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3101 else
3102 echo "configure: failed program was:" >&5
3103 cat conftest.$ac_ext >&5
3104 rm -rf conftest*
3105 ac_c99_math=no
3107 rm -f conftest*
3108 cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3111 #include <math.h>
3112 int main() {
3113 isinf(0.0);
3114 ; return 0; }
3116 if { (eval echo configure:3117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3118 else
3119 echo "configure: failed program was:" >&5
3120 cat conftest.$ac_ext >&5
3121 rm -rf conftest*
3122 ac_c99_math=no
3124 rm -f conftest*
3125 cat > conftest.$ac_ext <<EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3128 #include <math.h>
3129 int main() {
3130 isnan(0.0);
3131 ; return 0; }
3133 if { (eval echo configure:3134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3135 else
3136 echo "configure: failed program was:" >&5
3137 cat conftest.$ac_ext >&5
3138 rm -rf conftest*
3139 ac_c99_math=no
3141 rm -f conftest*
3142 cat > conftest.$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3145 #include <math.h>
3146 int main() {
3147 isnormal(0.0);
3148 ; return 0; }
3150 if { (eval echo configure:3151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3152 else
3153 echo "configure: failed program was:" >&5
3154 cat conftest.$ac_ext >&5
3155 rm -rf conftest*
3156 ac_c99_math=no
3158 rm -f conftest*
3159 cat > conftest.$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3162 #include <math.h>
3163 int main() {
3164 signbit(0.0);
3165 ; return 0; }
3167 if { (eval echo configure:3168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3169 else
3170 echo "configure: failed program was:" >&5
3171 cat conftest.$ac_ext >&5
3172 rm -rf conftest*
3173 ac_c99_math=no
3175 rm -f conftest*
3176 cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 #include <math.h>
3180 int main() {
3181 isgreater(0.0,0.0);
3182 ; return 0; }
3184 if { (eval echo configure:3185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3186 else
3187 echo "configure: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3189 rm -rf conftest*
3190 ac_c99_math=no
3192 rm -f conftest*
3193 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3196 #include <math.h>
3197 int main() {
3198 isgreaterequal(0.0,0.0);
3199 ; return 0; }
3201 if { (eval echo configure:3202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3203 else
3204 echo "configure: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3206 rm -rf conftest*
3207 ac_c99_math=no
3209 rm -f conftest*
3210 cat > conftest.$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3213 #include <math.h>
3214 int main() {
3215 isless(0.0,0.0);
3216 ; return 0; }
3218 if { (eval echo configure:3219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3220 else
3221 echo "configure: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3223 rm -rf conftest*
3224 ac_c99_math=no
3226 rm -f conftest*
3227 cat > conftest.$ac_ext <<EOF
3228 #line 3229 "configure"
3229 #include "confdefs.h"
3230 #include <math.h>
3231 int main() {
3232 islessequal(0.0,0.0);
3233 ; return 0; }
3235 if { (eval echo configure:3236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3237 else
3238 echo "configure: failed program was:" >&5
3239 cat conftest.$ac_ext >&5
3240 rm -rf conftest*
3241 ac_c99_math=no
3243 rm -f conftest*
3244 cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3247 #include <math.h>
3248 int main() {
3249 islessgreater(0.0,0.0);
3250 ; return 0; }
3252 if { (eval echo configure:3253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3254 else
3255 echo "configure: failed program was:" >&5
3256 cat conftest.$ac_ext >&5
3257 rm -rf conftest*
3258 ac_c99_math=no
3260 rm -f conftest*
3261 cat > conftest.$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3264 #include <math.h>
3265 int main() {
3266 isunordered(0.0,0.0);
3267 ; return 0; }
3269 if { (eval echo configure:3270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3271 else
3272 echo "configure: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3274 rm -rf conftest*
3275 ac_c99_math=no
3277 rm -f conftest*
3278 echo "$ac_t""$ac_c99_math" 1>&6
3280 # Check for the existence in <stdio.h> of vscanf, et. al.
3281 ac_c99_stdio=yes;
3282 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3283 echo "configure:3284: checking for ISO C99 support in <stdio.h>" >&5
3284 cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3287 #include <stdio.h>
3288 int main() {
3289 snprintf("12", 0, "%i");
3290 ; return 0; }
3292 if { (eval echo configure:3293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3294 else
3295 echo "configure: failed program was:" >&5
3296 cat conftest.$ac_ext >&5
3297 rm -rf conftest*
3298 ac_c99_stdio=no
3300 rm -f conftest*
3301 cat > conftest.$ac_ext <<EOF
3302 #line 3303 "configure"
3303 #include "confdefs.h"
3304 #include <stdio.h>
3305 #include <stdarg.h>
3306 void foo(char* fmt, ...)
3307 {va_list args; va_start(args, fmt);
3308 vfscanf(stderr, "%i", args);}
3309 int main() {
3311 ; return 0; }
3313 if { (eval echo configure:3314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3315 else
3316 echo "configure: failed program was:" >&5
3317 cat conftest.$ac_ext >&5
3318 rm -rf conftest*
3319 ac_c99_stdio=no
3321 rm -f conftest*
3322 cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 #include <stdio.h>
3326 #include <stdarg.h>
3327 void foo(char* fmt, ...)
3328 {va_list args; va_start(args, fmt);
3329 vscanf("%i", args);}
3330 int main() {
3332 ; return 0; }
3334 if { (eval echo configure:3335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3336 else
3337 echo "configure: failed program was:" >&5
3338 cat conftest.$ac_ext >&5
3339 rm -rf conftest*
3340 ac_c99_stdio=no
3342 rm -f conftest*
3343 cat > conftest.$ac_ext <<EOF
3344 #line 3345 "configure"
3345 #include "confdefs.h"
3346 #include <stdio.h>
3347 #include <stdarg.h>
3348 void foo(char* fmt, ...)
3349 {va_list args; va_start(args, fmt);
3350 vsnprintf(fmt, 0, "%i", args);}
3351 int main() {
3353 ; return 0; }
3355 if { (eval echo configure:3356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3357 else
3358 echo "configure: failed program was:" >&5
3359 cat conftest.$ac_ext >&5
3360 rm -rf conftest*
3361 ac_c99_stdio=no
3363 rm -f conftest*
3364 cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 #include <stdio.h>
3368 #include <stdarg.h>
3369 void foo(char* fmt, ...)
3370 {va_list args; va_start(args, fmt);
3371 vsscanf(fmt, "%i", args);}
3372 int main() {
3374 ; return 0; }
3376 if { (eval echo configure:3377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3378 else
3379 echo "configure: failed program was:" >&5
3380 cat conftest.$ac_ext >&5
3381 rm -rf conftest*
3382 ac_c99_stdio=no
3384 rm -f conftest*
3385 echo "$ac_t""$ac_c99_stdio" 1>&6
3387 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3388 ac_c99_stdlib=yes;
3389 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3390 echo "configure:3391: checking for lldiv_t declaration" >&5
3391 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3393 else
3395 cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3398 #include <stdlib.h>
3399 int main() {
3400 lldiv_t mydivt;
3401 ; return 0; }
3403 if { (eval echo configure:3404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3404 rm -rf conftest*
3405 ac_c99_lldiv_t=yes
3406 else
3407 echo "configure: failed program was:" >&5
3408 cat conftest.$ac_ext >&5
3409 rm -rf conftest*
3410 ac_c99_lldiv_t=no
3412 rm -f conftest*
3416 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3418 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3419 echo "configure:3420: checking for ISO C99 support in <stdlib.h>" >&5
3420 cat > conftest.$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3423 #include <stdlib.h>
3424 int main() {
3425 char* tmp; strtof("gnu", &tmp);
3426 ; return 0; }
3428 if { (eval echo configure:3429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3430 else
3431 echo "configure: failed program was:" >&5
3432 cat conftest.$ac_ext >&5
3433 rm -rf conftest*
3434 ac_c99_stdlib=no
3436 rm -f conftest*
3437 cat > conftest.$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 #include <stdlib.h>
3441 int main() {
3442 char* tmp; strtold("gnu", &tmp);
3443 ; return 0; }
3445 if { (eval echo configure:3446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3447 else
3448 echo "configure: failed program was:" >&5
3449 cat conftest.$ac_ext >&5
3450 rm -rf conftest*
3451 ac_c99_stdlib=no
3453 rm -f conftest*
3454 cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3457 #include <stdlib.h>
3458 int main() {
3459 llabs(10);
3460 ; return 0; }
3462 if { (eval echo configure:3463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3464 else
3465 echo "configure: failed program was:" >&5
3466 cat conftest.$ac_ext >&5
3467 rm -rf conftest*
3468 ac_c99_stdlib=no
3470 rm -f conftest*
3471 cat > conftest.$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3474 #include <stdlib.h>
3475 int main() {
3476 lldiv(10,1);
3477 ; return 0; }
3479 if { (eval echo configure:3480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3481 else
3482 echo "configure: failed program was:" >&5
3483 cat conftest.$ac_ext >&5
3484 rm -rf conftest*
3485 ac_c99_stdlib=no
3487 rm -f conftest*
3488 cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 #include <stdlib.h>
3492 int main() {
3493 atoll("10");
3494 ; return 0; }
3496 if { (eval echo configure:3497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3498 else
3499 echo "configure: failed program was:" >&5
3500 cat conftest.$ac_ext >&5
3501 rm -rf conftest*
3502 ac_c99_stdlib=no
3504 rm -f conftest*
3505 cat > conftest.$ac_ext <<EOF
3506 #line 3507 "configure"
3507 #include "confdefs.h"
3508 #include <stdlib.h>
3509 int main() {
3510 _Exit(0);
3511 ; return 0; }
3513 if { (eval echo configure:3514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3515 else
3516 echo "configure: failed program was:" >&5
3517 cat conftest.$ac_ext >&5
3518 rm -rf conftest*
3519 ac_c99_stdlib=no
3521 rm -f conftest*
3522 if test x"$ac_c99_lldiv_t" = x"no"; then
3523 ac_c99_stdlib=no;
3524 fi;
3525 echo "$ac_t""$ac_c99_stdlib" 1>&6
3527 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3528 # XXX the wchar.h checks should be rolled into the general C99 bits.
3529 ac_c99_wchar=yes;
3530 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3531 echo "configure:3532: checking for additional ISO C99 support in <wchar.h>" >&5
3532 cat > conftest.$ac_ext <<EOF
3533 #line 3534 "configure"
3534 #include "confdefs.h"
3535 #include <wchar.h>
3536 int main() {
3537 wcstold(L"10.0", NULL);
3538 ; return 0; }
3540 if { (eval echo configure:3541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3542 else
3543 echo "configure: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3545 rm -rf conftest*
3546 ac_c99_wchar=no
3548 rm -f conftest*
3549 cat > conftest.$ac_ext <<EOF
3550 #line 3551 "configure"
3551 #include "confdefs.h"
3552 #include <wchar.h>
3553 int main() {
3554 wcstoll(L"10", NULL, 10);
3555 ; return 0; }
3557 if { (eval echo configure:3558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3559 else
3560 echo "configure: failed program was:" >&5
3561 cat conftest.$ac_ext >&5
3562 rm -rf conftest*
3563 ac_c99_wchar=no
3565 rm -f conftest*
3566 cat > conftest.$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3569 #include <wchar.h>
3570 int main() {
3571 wcstoull(L"10", NULL, 10);
3572 ; return 0; }
3574 if { (eval echo configure:3575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3576 else
3577 echo "configure: failed program was:" >&5
3578 cat conftest.$ac_ext >&5
3579 rm -rf conftest*
3580 ac_c99_wchar=no
3582 rm -f conftest*
3583 echo "$ac_t""$ac_c99_wchar" 1>&6
3585 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3586 echo "configure:3587: checking for enabled ISO C99 support" >&5
3587 if test x"$ac_c99_math" = x"no" ||
3588 test x"$ac_c99_stdio" = x"no" ||
3589 test x"$ac_c99_stdlib" = x"no" ||
3590 test x"$ac_c99_wchar" = x"no"; then
3591 enable_c99=no;
3592 fi;
3593 echo "$ac_t""$enable_c99" 1>&6
3595 # Option parsed, now set things appropriately
3596 if test x"$enable_c99" = x"yes"; then
3597 cat >> confdefs.h <<\EOF
3598 #define _GLIBCPP_USE_C99 1
3603 ac_ext=c
3604 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3605 ac_cpp='$CPP $CPPFLAGS'
3606 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3607 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3608 cross_compiling=$ac_cv_prog_cc_cross
3612 # Check whether --enable-long-long or --disable-long-long was given.
3613 if test "${enable_long_long+set}" = set; then
3614 enableval="$enable_long_long"
3615 case "$enableval" in
3616 yes) enable_long_long=yes ;;
3617 no) enable_long_long=no ;;
3618 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3619 esac
3620 else
3621 enable_long_long=yes
3625 ac_ext=C
3626 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3627 ac_cpp='$CXXCPP $CPPFLAGS'
3628 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3629 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3630 cross_compiling=$ac_cv_prog_cxx_cross
3633 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3634 echo "configure:3635: checking for enabled long long I/O support" >&5
3635 # iostreams require strtoll, strtoull to compile
3636 cat > conftest.$ac_ext <<EOF
3637 #line 3638 "configure"
3638 #include "confdefs.h"
3639 #include <stdlib.h>
3640 int main() {
3641 char* tmp; strtoll("gnu", &tmp, 10);
3642 ; return 0; }
3644 if { (eval echo configure:3645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3646 else
3647 echo "configure: failed program was:" >&5
3648 cat conftest.$ac_ext >&5
3649 rm -rf conftest*
3650 enable_long_long=no
3652 rm -f conftest*
3653 cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3656 #include <stdlib.h>
3657 int main() {
3658 char* tmp; strtoull("gnu", &tmp, 10);
3659 ; return 0; }
3661 if { (eval echo configure:3662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3663 else
3664 echo "configure: failed program was:" >&5
3665 cat conftest.$ac_ext >&5
3666 rm -rf conftest*
3667 enable_long_long=no
3669 rm -f conftest*
3671 # Option parsed, now set things appropriately
3672 if test x"$enable_long_long" = xyes; then
3673 cat >> confdefs.h <<\EOF
3674 #define _GLIBCPP_USE_LONG_LONG 1
3678 echo "$ac_t""$enable_long_long" 1>&6
3680 ac_ext=c
3681 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3682 ac_cpp='$CPP $CPPFLAGS'
3683 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3684 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3685 cross_compiling=$ac_cv_prog_cc_cross
3688 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3689 echo "configure:3690: checking for c header strategy to use" >&5
3690 # Check whether --enable-cheaders or --disable-cheaders was given.
3691 if test "${enable_cheaders+set}" = set; then
3692 enableval="$enable_cheaders"
3694 case "$enableval" in
3696 enable_cheaders=c
3698 c_std)
3699 enable_cheaders=c_std
3701 c_shadow)
3702 enable_cheaders=c_shadow
3704 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3706 esac
3707 else
3708 enable_cheaders=c_std
3711 echo "$ac_t""$enable_cheaders" 1>&6
3713 case "$enable_cheaders" in
3714 c_shadow)
3715 CSHADOW_FLAGS="-fno-builtin"
3716 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3717 cat >> confdefs.h <<\EOF
3718 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3722 c_std)
3723 CSHADOW_FLAGS=""
3724 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3727 CSHADOW_FLAGS=""
3728 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3730 esac
3736 if test "$enable_cheaders" = c_shadow; then
3737 GLIBCPP_USE_CSHADOW_TRUE=
3738 GLIBCPP_USE_CSHADOW_FALSE='#'
3739 else
3740 GLIBCPP_USE_CSHADOW_TRUE='#'
3741 GLIBCPP_USE_CSHADOW_FALSE=
3745 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3746 echo "configure:3747: checking for thread model used by GCC" >&5
3747 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3748 echo "$ac_t""$target_thread_file" 1>&6
3750 if test $target_thread_file != single; then
3751 cat >> confdefs.h <<\EOF
3752 #define HAVE_GTHR_DEFAULT 1
3755 cat >> confdefs.h <<\EOF
3756 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3761 glibcpp_thread_h=gthr-$target_thread_file.h
3764 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3765 if test "${enable_cxx_flags+set}" = set; then
3766 enableval="$enable_cxx_flags"
3767 case "x$enableval" in
3768 xyes)
3769 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3770 xno|x)
3771 enable_cxx_flags='' ;;
3773 enable_cxx_flags="$enableval" ;;
3774 esac
3775 else
3776 enable_cxx_flags='none'
3780 if test "$enable_cxx_flags" = "none"; then
3781 enable_cxx_flags='';
3784 if test -n "$enable_cxx_flags"; then
3785 for f in $enable_cxx_flags; do
3786 case "$f" in
3787 -fhonor-std) ;;
3788 -*) ;;
3789 *) # and we're trying to pass /what/ exactly?
3790 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3791 esac
3792 done
3794 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3798 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3799 echo "configure:3800: checking for exception model to use" >&5
3801 ac_ext=C
3802 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3803 ac_cpp='$CXXCPP $CPPFLAGS'
3804 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3805 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3806 cross_compiling=$ac_cv_prog_cxx_cross
3808 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3809 if test "${enable_sjlj_exceptions+set}" = set; then
3810 enableval="$enable_sjlj_exceptions"
3812 else
3813 cat > conftest.$ac_ext << EOF
3814 #line 3815 "configure"
3815 struct S { ~S(); };
3816 void bar();
3817 void foo()
3819 S s;
3820 bar();
3823 old_CXXFLAGS="$CXXFLAGS"
3824 CXXFLAGS=-S
3825 if { (eval echo configure:3826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3826 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3827 enable_sjlj_exceptions=yes
3828 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3829 enable_sjlj_exceptions=no
3832 CXXFLAGS="$old_CXXFLAGS"
3833 rm -f conftest*
3836 if test x$enable_sjlj_exceptions = xyes; then
3837 cat >> confdefs.h <<\EOF
3838 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3841 ac_exception_model_name=sjlj
3842 elif test x$enable_sjlj_exceptions = xno; then
3843 ac_exception_model_name="call frame"
3844 else
3845 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3847 ac_ext=c
3848 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3849 ac_cpp='$CPP $CPPFLAGS'
3850 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3851 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3852 cross_compiling=$ac_cv_prog_cc_cross
3854 echo "$ac_t""$ac_exception_model_name" 1>&6
3856 # Check whether --enable-concept-checks or --disable-concept-checks was given.
3857 if test "${enable_concept_checks+set}" = set; then
3858 enableval="$enable_concept_checks"
3859 case "$enableval" in
3860 yes) enable_concept_checks=yes ;;
3861 no) enable_concept_checks=no ;;
3862 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
3863 esac
3864 else
3865 enable_concept_checks=no
3867 if test x"$enable_concept_checks" = xyes; then
3868 cat >> confdefs.h <<\EOF
3869 #define _GLIBCPP_CONCEPT_CHECKS 1
3876 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
3878 # This lets us hard-code the functionality we know
3879 # we'll have in the cross target environment. "Let" is a
3880 # sugar-coated word placed on an especially dull and tedious hack, actually.
3881 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
3882 # that involve linking can't be used:
3883 # "cannot open sim-crt0.o"
3884 # "cannot open crt0.o"
3885 # etc. All this is because there currently exists no unified,
3886 # consistent way for top level CC information to be passed down
3887 # to target directories: newlib includes, newlib linking info,
3888 # libgloss versus newlib crt0.o, etc. When all of this is done, all
3889 # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
3891 # We are being configured with some form of cross compiler.
3892 GLIBCPP_IS_CROSS_COMPILING=1
3894 # If Canadian cross, then don't pick up tools from the build
3895 # directory.
3896 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
3897 CANADIAN=yes
3898 else
3899 CANADIAN=no
3902 case "$target_alias" in
3903 *-linux*)
3904 # Construct linux crosses by hand, eliminating bits that need ld...
3905 # Check for available headers.
3906 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3907 machine/endian.h machine/param.h sys/machine.h sys/types.h \
3908 fp.h locale.h float.h inttypes.h
3910 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3911 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3912 echo "configure:3913: checking for $ac_hdr" >&5
3913 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3914 echo $ac_n "(cached) $ac_c" 1>&6
3915 else
3916 cat > conftest.$ac_ext <<EOF
3917 #line 3918 "configure"
3918 #include "confdefs.h"
3919 #include <$ac_hdr>
3921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3922 { (eval echo configure:3923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3924 if test -z "$ac_err"; then
3925 rm -rf conftest*
3926 eval "ac_cv_header_$ac_safe=yes"
3927 else
3928 echo "$ac_err" >&5
3929 echo "configure: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3931 rm -rf conftest*
3932 eval "ac_cv_header_$ac_safe=no"
3934 rm -f conftest*
3936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3937 echo "$ac_t""yes" 1>&6
3938 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3939 cat >> confdefs.h <<EOF
3940 #define $ac_tr_hdr 1
3943 else
3944 echo "$ac_t""no" 1>&6
3946 done
3949 # GLIBCPP_CHECK_COMPILER_FEATURES
3950 SECTION_FLAGS='-ffunction-sections -fdata-sections'
3953 # If we're not using GNU ld, then there's no point in even trying these
3954 # tests. Check for that first. We should have already tested for gld
3955 # by now (in libtool), but require it now just to be safe...
3956 SECTION_LDFLAGS=''
3957 OPT_LDFLAGS=''
3960 # Set --gc-sections.
3961 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3962 # GNU ld it is! Joy and bunny rabbits!
3964 # All these tests are for C++; save the language and the compiler flags.
3965 # Need to do this so that g++ won't try to link in libstdc++
3966 ac_test_CFLAGS="${CFLAGS+set}"
3967 ac_save_CFLAGS="$CFLAGS"
3968 CFLAGS='-x c++ -Wl,--gc-sections'
3970 # Check for -Wl,--gc-sections
3971 # XXX This test is broken at the moment, as symbols required for
3972 # linking are now in libsupc++ (not built yet.....). In addition,
3973 # this test has cored on solaris in the past. In addition,
3974 # --gc-sections doesn't really work at the moment (keeps on discarding
3975 # used sections, first .eh_frame and now some of the glibc sections for
3976 # iconv). Bzzzzt. Thanks for playing, maybe next time.
3977 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3978 echo "configure:3979: checking for ld that supports -Wl,--gc-sections" >&5
3979 if test "$cross_compiling" = yes; then
3980 ac_sectionLDflags=yes
3981 else
3982 cat > conftest.$ac_ext <<EOF
3983 #line 3984 "configure"
3984 #include "confdefs.h"
3986 int main(void)
3988 try { throw 1; }
3989 catch (...) { };
3990 return 0;
3994 if { (eval echo configure:3995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3995 then
3996 ac_sectionLDflags=yes
3997 else
3998 echo "configure: failed program was:" >&5
3999 cat conftest.$ac_ext >&5
4000 rm -fr conftest*
4001 ac_sectionLFflags=no
4003 rm -fr conftest*
4006 if test "$ac_test_CFLAGS" = set; then
4007 CFLAGS="$ac_save_CFLAGS"
4008 else
4009 # this is the suspicious part
4010 CFLAGS=''
4012 if test "$ac_sectionLDflags" = "yes"; then
4013 SECTION_LDFLAGS='-Wl,--gc-sections'
4015 echo "$ac_t""$ac_sectionLDflags" 1>&6
4018 # Set linker optimization flags.
4019 if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
4020 test x"$enable_debug" = x"no"; then
4021 OPT_LDFLAGS='-Wl,-O1'
4027 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4028 # GLIBCPP_CHECK_MATH_SUPPORT
4029 cat >> confdefs.h <<\EOF
4030 #define HAVE_ACOSF 1
4033 cat >> confdefs.h <<\EOF
4034 #define HAVE_ASINF 1
4037 cat >> confdefs.h <<\EOF
4038 #define HAVE_ATAN2F 1
4041 cat >> confdefs.h <<\EOF
4042 #define HAVE_ATANF 1
4045 cat >> confdefs.h <<\EOF
4046 #define HAVE_CEILF 1
4049 cat >> confdefs.h <<\EOF
4050 #define HAVE_COPYSIGN 1
4053 cat >> confdefs.h <<\EOF
4054 #define HAVE_COPYSIGNF 1
4057 cat >> confdefs.h <<\EOF
4058 #define HAVE_COSF 1
4061 cat >> confdefs.h <<\EOF
4062 #define HAVE_COSHF 1
4065 cat >> confdefs.h <<\EOF
4066 #define HAVE_EXPF 1
4069 cat >> confdefs.h <<\EOF
4070 #define HAVE_FABSF 1
4073 cat >> confdefs.h <<\EOF
4074 #define HAVE_FINITE 1
4077 cat >> confdefs.h <<\EOF
4078 #define HAVE_FINITEF 1
4081 cat >> confdefs.h <<\EOF
4082 #define HAVE_FLOORF 1
4085 cat >> confdefs.h <<\EOF
4086 #define HAVE_FMODF 1
4089 cat >> confdefs.h <<\EOF
4090 #define HAVE_FREXPF 1
4093 cat >> confdefs.h <<\EOF
4094 #define HAVE_HYPOTF 1
4097 cat >> confdefs.h <<\EOF
4098 #define HAVE_ISINF 1
4101 cat >> confdefs.h <<\EOF
4102 #define HAVE_ISINFF 1
4105 cat >> confdefs.h <<\EOF
4106 #define HAVE_ISNAN 1
4109 cat >> confdefs.h <<\EOF
4110 #define HAVE_ISNANF 1
4113 cat >> confdefs.h <<\EOF
4114 #define HAVE_LDEXPF 1
4117 cat >> confdefs.h <<\EOF
4118 #define HAVE_LOG10F 1
4121 cat >> confdefs.h <<\EOF
4122 #define HAVE_LOGF 1
4125 cat >> confdefs.h <<\EOF
4126 #define HAVE_MODFF 1
4129 cat >> confdefs.h <<\EOF
4130 #define HAVE_POWF 1
4133 cat >> confdefs.h <<\EOF
4134 #define HAVE_SINCOS 1
4137 cat >> confdefs.h <<\EOF
4138 #define HAVE_SINCOSF 1
4141 cat >> confdefs.h <<\EOF
4142 #define HAVE_SINF 1
4145 cat >> confdefs.h <<\EOF
4146 #define HAVE_SINHF 1
4149 cat >> confdefs.h <<\EOF
4150 #define HAVE_SQRTF 1
4153 cat >> confdefs.h <<\EOF
4154 #define HAVE_TANF 1
4157 cat >> confdefs.h <<\EOF
4158 #define HAVE_TANHF 1
4162 # At some point, we should differentiate between architectures
4163 # like x86, which have long double versions, and alpha/powerpc/etc.,
4164 # which don't. For the time being, punt.
4165 if test x"long_double_math_on_this_cpu" = x"yes"; then
4166 cat >> confdefs.h <<\EOF
4167 #define HAVE_ACOSL 1
4170 cat >> confdefs.h <<\EOF
4171 #define HAVE_ASINL 1
4174 cat >> confdefs.h <<\EOF
4175 #define HAVE_ATAN2L 1
4178 cat >> confdefs.h <<\EOF
4179 #define HAVE_ATANL 1
4182 cat >> confdefs.h <<\EOF
4183 #define HAVE_CEILL 1
4186 cat >> confdefs.h <<\EOF
4187 #define HAVE_COPYSIGNL 1
4190 cat >> confdefs.h <<\EOF
4191 #define HAVE_COSL 1
4194 cat >> confdefs.h <<\EOF
4195 #define HAVE_COSHL 1
4198 cat >> confdefs.h <<\EOF
4199 #define HAVE_EXPL 1
4202 cat >> confdefs.h <<\EOF
4203 #define HAVE_FABSL 1
4206 cat >> confdefs.h <<\EOF
4207 #define HAVE_FINITEL 1
4210 cat >> confdefs.h <<\EOF
4211 #define HAVE_FLOORL 1
4214 cat >> confdefs.h <<\EOF
4215 #define HAVE_FMODL 1
4218 cat >> confdefs.h <<\EOF
4219 #define HAVE_FREXPL 1
4222 cat >> confdefs.h <<\EOF
4223 #define HAVE_HYPOTL 1
4226 cat >> confdefs.h <<\EOF
4227 #define HAVE_ISINFL 1
4230 cat >> confdefs.h <<\EOF
4231 #define HAVE_ISNANL 1
4234 cat >> confdefs.h <<\EOF
4235 #define HAVE_LDEXPL 1
4238 cat >> confdefs.h <<\EOF
4239 #define HAVE_LOG10L 1
4242 cat >> confdefs.h <<\EOF
4243 #define HAVE_LOGL 1
4246 cat >> confdefs.h <<\EOF
4247 #define HAVE_MODFL 1
4250 cat >> confdefs.h <<\EOF
4251 #define HAVE_POWL 1
4254 cat >> confdefs.h <<\EOF
4255 #define HAVE_SINCOSL 1
4258 cat >> confdefs.h <<\EOF
4259 #define HAVE_SINL 1
4262 cat >> confdefs.h <<\EOF
4263 #define HAVE_SINHL 1
4266 cat >> confdefs.h <<\EOF
4267 #define HAVE_SQRTL 1
4270 cat >> confdefs.h <<\EOF
4271 #define HAVE_TANL 1
4274 cat >> confdefs.h <<\EOF
4275 #define HAVE_TANHL 1
4280 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4281 echo "configure:4282: checking for main in -lm" >&5
4282 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4284 echo $ac_n "(cached) $ac_c" 1>&6
4285 else
4286 ac_save_LIBS="$LIBS"
4287 LIBS="-lm $LIBS"
4288 cat > conftest.$ac_ext <<EOF
4289 #line 4290 "configure"
4290 #include "confdefs.h"
4292 int main() {
4293 main()
4294 ; return 0; }
4296 if { (eval echo configure:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4297 rm -rf conftest*
4298 eval "ac_cv_lib_$ac_lib_var=yes"
4299 else
4300 echo "configure: failed program was:" >&5
4301 cat conftest.$ac_ext >&5
4302 rm -rf conftest*
4303 eval "ac_cv_lib_$ac_lib_var=no"
4305 rm -f conftest*
4306 LIBS="$ac_save_LIBS"
4309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4310 echo "$ac_t""yes" 1>&6
4311 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4312 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4313 cat >> confdefs.h <<EOF
4314 #define $ac_tr_lib 1
4317 LIBS="-lm $LIBS"
4319 else
4320 echo "$ac_t""no" 1>&6
4323 for ac_func in nan copysignf
4325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4326 echo "configure:4327: checking for $ac_func" >&5
4327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4328 echo $ac_n "(cached) $ac_c" 1>&6
4329 else
4330 cat > conftest.$ac_ext <<EOF
4331 #line 4332 "configure"
4332 #include "confdefs.h"
4333 /* System header to define __stub macros and hopefully few prototypes,
4334 which can conflict with char $ac_func(); below. */
4335 #include <assert.h>
4336 /* Override any gcc2 internal prototype to avoid an error. */
4337 /* We use char because int might match the return type of a gcc2
4338 builtin and then its argument prototype would still apply. */
4339 char $ac_func();
4341 int main() {
4343 /* The GNU C library defines this for functions which it implements
4344 to always fail with ENOSYS. Some functions are actually named
4345 something starting with __ and the normal name is an alias. */
4346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4347 choke me
4348 #else
4349 $ac_func();
4350 #endif
4352 ; return 0; }
4354 if { (eval echo configure:4355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4355 rm -rf conftest*
4356 eval "ac_cv_func_$ac_func=yes"
4357 else
4358 echo "configure: failed program was:" >&5
4359 cat conftest.$ac_ext >&5
4360 rm -rf conftest*
4361 eval "ac_cv_func_$ac_func=no"
4363 rm -f conftest*
4366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4367 echo "$ac_t""yes" 1>&6
4368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4369 cat >> confdefs.h <<EOF
4370 #define $ac_tr_func 1
4373 else
4374 echo "$ac_t""no" 1>&6
4375 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4377 done
4381 USE_COMPLEX_LONG_DOUBLE=no
4382 if test x$ac_cv_func_copysignl = x"yes"; then
4383 USE_COMPLEX_LONG_DOUBLE=yes
4384 for ac_func in signbitl
4386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4387 echo "configure:4388: checking for $ac_func" >&5
4388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4389 echo $ac_n "(cached) $ac_c" 1>&6
4390 else
4391 cat > conftest.$ac_ext <<EOF
4392 #line 4393 "configure"
4393 #include "confdefs.h"
4394 /* System header to define __stub macros and hopefully few prototypes,
4395 which can conflict with char $ac_func(); below. */
4396 #include <assert.h>
4397 /* Override any gcc2 internal prototype to avoid an error. */
4398 /* We use char because int might match the return type of a gcc2
4399 builtin and then its argument prototype would still apply. */
4400 char $ac_func();
4402 int main() {
4404 /* The GNU C library defines this for functions which it implements
4405 to always fail with ENOSYS. Some functions are actually named
4406 something starting with __ and the normal name is an alias. */
4407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4408 choke me
4409 #else
4410 $ac_func();
4411 #endif
4413 ; return 0; }
4415 if { (eval echo configure:4416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4416 rm -rf conftest*
4417 eval "ac_cv_func_$ac_func=yes"
4418 else
4419 echo "configure: failed program was:" >&5
4420 cat conftest.$ac_ext >&5
4421 rm -rf conftest*
4422 eval "ac_cv_func_$ac_func=no"
4424 rm -f conftest*
4427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4428 echo "$ac_t""yes" 1>&6
4429 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4430 cat >> confdefs.h <<EOF
4431 #define $ac_tr_func 1
4434 else
4435 echo "$ac_t""no" 1>&6
4436 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4438 done
4447 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4448 echo "configure:4449: checking for mbstate_t" >&5
4449 cat > conftest.$ac_ext <<EOF
4450 #line 4451 "configure"
4451 #include "confdefs.h"
4452 #include <wchar.h>
4453 int main() {
4454 mbstate_t teststate;
4455 ; return 0; }
4457 if { (eval echo configure:4458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4458 rm -rf conftest*
4459 have_mbstate_t=yes
4460 else
4461 echo "configure: failed program was:" >&5
4462 cat conftest.$ac_ext >&5
4463 rm -rf conftest*
4464 have_mbstate_t=no
4466 rm -f conftest*
4467 echo "$ac_t""$have_mbstate_t" 1>&6
4468 if test x"$have_mbstate_t" = xyes; then
4469 cat >> confdefs.h <<\EOF
4470 #define HAVE_MBSTATE_T 1
4475 for ac_hdr in wchar.h
4477 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4478 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4479 echo "configure:4480: checking for $ac_hdr" >&5
4480 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4482 else
4483 cat > conftest.$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4486 #include <$ac_hdr>
4488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4489 { (eval echo configure:4490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4491 if test -z "$ac_err"; then
4492 rm -rf conftest*
4493 eval "ac_cv_header_$ac_safe=yes"
4494 else
4495 echo "$ac_err" >&5
4496 echo "configure: failed program was:" >&5
4497 cat conftest.$ac_ext >&5
4498 rm -rf conftest*
4499 eval "ac_cv_header_$ac_safe=no"
4501 rm -f conftest*
4503 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4504 echo "$ac_t""yes" 1>&6
4505 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4506 cat >> confdefs.h <<EOF
4507 #define $ac_tr_hdr 1
4509 ac_has_wchar_h=yes
4510 else
4511 echo "$ac_t""no" 1>&6
4512 ac_has_wchar_h=no
4514 done
4516 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4517 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4518 echo "configure:4519: checking for wctype.h" >&5
4519 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4520 echo $ac_n "(cached) $ac_c" 1>&6
4521 else
4522 cat > conftest.$ac_ext <<EOF
4523 #line 4524 "configure"
4524 #include "confdefs.h"
4525 #include <wctype.h>
4527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4528 { (eval echo configure:4529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4530 if test -z "$ac_err"; then
4531 rm -rf conftest*
4532 eval "ac_cv_header_$ac_safe=yes"
4533 else
4534 echo "$ac_err" >&5
4535 echo "configure: failed program was:" >&5
4536 cat conftest.$ac_ext >&5
4537 rm -rf conftest*
4538 eval "ac_cv_header_$ac_safe=no"
4540 rm -f conftest*
4542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4543 echo "$ac_t""yes" 1>&6
4544 ac_has_wctype_h=yes
4545 else
4546 echo "$ac_t""no" 1>&6
4547 ac_has_wctype_h=no
4551 if test x"$ac_has_wchar_h" = xyes &&
4552 test x"$ac_has_wctype_h" = xyes &&
4553 test x"$enable_c_mbchar" != xno; then
4555 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4556 echo "configure:4557: checking for WCHAR_MIN and WCHAR_MAX" >&5
4557 cat > conftest.$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4560 #include <wchar.h>
4561 int main() {
4562 int i = WCHAR_MIN; int j = WCHAR_MAX;
4563 ; return 0; }
4565 if { (eval echo configure:4566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4566 rm -rf conftest*
4567 has_wchar_minmax=yes
4568 else
4569 echo "configure: failed program was:" >&5
4570 cat conftest.$ac_ext >&5
4571 rm -rf conftest*
4572 has_wchar_minmax=no
4574 rm -f conftest*
4575 echo "$ac_t""$has_wchar_minmax" 1>&6
4577 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4578 echo "configure:4579: checking for WEOF" >&5
4579 cat > conftest.$ac_ext <<EOF
4580 #line 4581 "configure"
4581 #include "confdefs.h"
4583 #include <wchar.h>
4584 #include <stddef.h>
4585 int main() {
4586 wint_t i = WEOF;
4587 ; return 0; }
4589 if { (eval echo configure:4590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4590 rm -rf conftest*
4591 has_weof=yes
4592 else
4593 echo "configure: failed program was:" >&5
4594 cat conftest.$ac_ext >&5
4595 rm -rf conftest*
4596 has_weof=no
4598 rm -f conftest*
4599 echo "$ac_t""$has_weof" 1>&6
4601 ac_wfuncs=yes
4602 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4605 echo "configure:4606: checking for $ac_func" >&5
4606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4607 echo $ac_n "(cached) $ac_c" 1>&6
4608 else
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 /* System header to define __stub macros and hopefully few prototypes,
4613 which can conflict with char $ac_func(); below. */
4614 #include <assert.h>
4615 /* Override any gcc2 internal prototype to avoid an error. */
4616 /* We use char because int might match the return type of a gcc2
4617 builtin and then its argument prototype would still apply. */
4618 char $ac_func();
4620 int main() {
4622 /* The GNU C library defines this for functions which it implements
4623 to always fail with ENOSYS. Some functions are actually named
4624 something starting with __ and the normal name is an alias. */
4625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4626 choke me
4627 #else
4628 $ac_func();
4629 #endif
4631 ; return 0; }
4633 if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4634 rm -rf conftest*
4635 eval "ac_cv_func_$ac_func=yes"
4636 else
4637 echo "configure: failed program was:" >&5
4638 cat conftest.$ac_ext >&5
4639 rm -rf conftest*
4640 eval "ac_cv_func_$ac_func=no"
4642 rm -f conftest*
4645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4646 echo "$ac_t""yes" 1>&6
4647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4648 cat >> confdefs.h <<EOF
4649 #define $ac_tr_func 1
4652 else
4653 echo "$ac_t""no" 1>&6
4655 ac_wfuncs=no
4657 done
4660 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4661 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4662 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4663 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4664 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4665 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4668 echo "configure:4669: checking for $ac_func" >&5
4669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4670 echo $ac_n "(cached) $ac_c" 1>&6
4671 else
4672 cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4675 /* System header to define __stub macros and hopefully few prototypes,
4676 which can conflict with char $ac_func(); below. */
4677 #include <assert.h>
4678 /* Override any gcc2 internal prototype to avoid an error. */
4679 /* We use char because int might match the return type of a gcc2
4680 builtin and then its argument prototype would still apply. */
4681 char $ac_func();
4683 int main() {
4685 /* The GNU C library defines this for functions which it implements
4686 to always fail with ENOSYS. Some functions are actually named
4687 something starting with __ and the normal name is an alias. */
4688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4689 choke me
4690 #else
4691 $ac_func();
4692 #endif
4694 ; return 0; }
4696 if { (eval echo configure:4697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4697 rm -rf conftest*
4698 eval "ac_cv_func_$ac_func=yes"
4699 else
4700 echo "configure: failed program was:" >&5
4701 cat conftest.$ac_ext >&5
4702 rm -rf conftest*
4703 eval "ac_cv_func_$ac_func=no"
4705 rm -f conftest*
4708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4709 echo "$ac_t""yes" 1>&6
4710 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4711 cat >> confdefs.h <<EOF
4712 #define $ac_tr_func 1
4715 else
4716 echo "$ac_t""no" 1>&6
4718 ac_wfuncs=no
4720 done
4723 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4724 echo "configure:4725: checking for ISO C99 wchar_t support" >&5
4725 if test x"$has_weof" = xyes &&
4726 test x"$has_wchar_minmax" = xyes &&
4727 test x"$ac_wfuncs" = xyes; then
4728 ac_isoC99_wchar_t=yes
4729 else
4730 ac_isoC99_wchar_t=no
4732 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4734 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4735 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4736 echo "configure:4737: checking for iconv.h" >&5
4737 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 #include <iconv.h>
4745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4746 { (eval echo configure:4747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4748 if test -z "$ac_err"; then
4749 rm -rf conftest*
4750 eval "ac_cv_header_$ac_safe=yes"
4751 else
4752 echo "$ac_err" >&5
4753 echo "configure: failed program was:" >&5
4754 cat conftest.$ac_ext >&5
4755 rm -rf conftest*
4756 eval "ac_cv_header_$ac_safe=no"
4758 rm -f conftest*
4760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4761 echo "$ac_t""yes" 1>&6
4762 ac_has_iconv_h=yes
4763 else
4764 echo "$ac_t""no" 1>&6
4765 ac_has_iconv_h=no
4768 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4769 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4770 echo "configure:4771: checking for langinfo.h" >&5
4771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4772 echo $ac_n "(cached) $ac_c" 1>&6
4773 else
4774 cat > conftest.$ac_ext <<EOF
4775 #line 4776 "configure"
4776 #include "confdefs.h"
4777 #include <langinfo.h>
4779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4780 { (eval echo configure:4781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4782 if test -z "$ac_err"; then
4783 rm -rf conftest*
4784 eval "ac_cv_header_$ac_safe=yes"
4785 else
4786 echo "$ac_err" >&5
4787 echo "configure: failed program was:" >&5
4788 cat conftest.$ac_ext >&5
4789 rm -rf conftest*
4790 eval "ac_cv_header_$ac_safe=no"
4792 rm -f conftest*
4794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4795 echo "$ac_t""yes" 1>&6
4796 ac_has_langinfo_h=yes
4797 else
4798 echo "$ac_t""no" 1>&6
4799 ac_has_langinfo_h=no
4803 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4804 echo "configure:4805: checking for iconv in -liconv" >&5
4805 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4806 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4807 echo $ac_n "(cached) $ac_c" 1>&6
4808 else
4809 ac_save_LIBS="$LIBS"
4810 LIBS="-liconv $LIBS"
4811 cat > conftest.$ac_ext <<EOF
4812 #line 4813 "configure"
4813 #include "confdefs.h"
4814 /* Override any gcc2 internal prototype to avoid an error. */
4815 /* We use char because int might match the return type of a gcc2
4816 builtin and then its argument prototype would still apply. */
4817 char iconv();
4819 int main() {
4820 iconv()
4821 ; return 0; }
4823 if { (eval echo configure:4824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4824 rm -rf conftest*
4825 eval "ac_cv_lib_$ac_lib_var=yes"
4826 else
4827 echo "configure: failed program was:" >&5
4828 cat conftest.$ac_ext >&5
4829 rm -rf conftest*
4830 eval "ac_cv_lib_$ac_lib_var=no"
4832 rm -f conftest*
4833 LIBS="$ac_save_LIBS"
4836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4837 echo "$ac_t""yes" 1>&6
4838 libiconv="-liconv"
4839 else
4840 echo "$ac_t""no" 1>&6
4843 ac_save_LIBS="$LIBS"
4844 LIBS="$LIBS $libiconv"
4846 for ac_func in iconv_open iconv_close iconv nl_langinfo
4848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4849 echo "configure:4850: checking for $ac_func" >&5
4850 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4851 echo $ac_n "(cached) $ac_c" 1>&6
4852 else
4853 cat > conftest.$ac_ext <<EOF
4854 #line 4855 "configure"
4855 #include "confdefs.h"
4856 /* System header to define __stub macros and hopefully few prototypes,
4857 which can conflict with char $ac_func(); below. */
4858 #include <assert.h>
4859 /* Override any gcc2 internal prototype to avoid an error. */
4860 /* We use char because int might match the return type of a gcc2
4861 builtin and then its argument prototype would still apply. */
4862 char $ac_func();
4864 int main() {
4866 /* The GNU C library defines this for functions which it implements
4867 to always fail with ENOSYS. Some functions are actually named
4868 something starting with __ and the normal name is an alias. */
4869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4870 choke me
4871 #else
4872 $ac_func();
4873 #endif
4875 ; return 0; }
4877 if { (eval echo configure:4878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4878 rm -rf conftest*
4879 eval "ac_cv_func_$ac_func=yes"
4880 else
4881 echo "configure: failed program was:" >&5
4882 cat conftest.$ac_ext >&5
4883 rm -rf conftest*
4884 eval "ac_cv_func_$ac_func=no"
4886 rm -f conftest*
4889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4890 echo "$ac_t""yes" 1>&6
4891 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4892 cat >> confdefs.h <<EOF
4893 #define $ac_tr_func 1
4896 ac_XPG2funcs=yes
4897 else
4898 echo "$ac_t""no" 1>&6
4899 ac_XPG2funcs=no
4901 done
4904 LIBS="$ac_save_LIBS"
4906 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4907 echo "configure:4908: checking for XPG2 wchar_t support" >&5
4908 if test x"$ac_has_iconv_h" = xyes &&
4909 test x"$ac_has_langinfo_h" = xyes &&
4910 test x"$ac_XPG2funcs" = xyes; then
4911 ac_XPG2_wchar_t=yes
4912 else
4913 ac_XPG2_wchar_t=no
4915 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4917 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4918 echo "configure:4919: checking for enabled wchar_t specializations" >&5
4919 if test x"$ac_isoC99_wchar_t" = xyes &&
4920 test x"$ac_XPG2_wchar_t" = xyes; then
4921 cat >> confdefs.h <<\EOF
4922 #define _GLIBCPP_USE_WCHAR_T 1
4925 echo "$ac_t"""yes"" 1>&6
4926 else
4927 echo "$ac_t"""no"" 1>&6
4929 else
4930 echo "configure: warning: wchar_t support disabled." 1>&2
4933 os_include_dir="config/os/gnu-linux"
4934 # GLIBCPP_CHECK_STDLIB_SUPPORT
4935 cat >> confdefs.h <<\EOF
4936 #define HAVE_STRTOF 1
4939 cat >> confdefs.h <<\EOF
4940 #define HAVE_STRTOLD 1
4943 # AC_FUNC_MMAP
4944 cat >> confdefs.h <<\EOF
4945 #define HAVE_MMAP 1
4950 # We assume newlib.
4951 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4952 # GLIBCPP_CHECK_MATH_SUPPORT
4953 cat >> confdefs.h <<\EOF
4954 #define HAVE_FINITE 1
4957 cat >> confdefs.h <<\EOF
4958 #define HAVE_HYPOT 1
4961 cat >> confdefs.h <<\EOF
4962 #define HAVE_ISNAN 1
4965 cat >> confdefs.h <<\EOF
4966 #define HAVE_ISINF 1
4970 cat >> confdefs.h <<\EOF
4971 #define HAVE_ACOSF 1
4974 cat >> confdefs.h <<\EOF
4975 #define HAVE_ASINF 1
4978 cat >> confdefs.h <<\EOF
4979 #define HAVE_ATAN2F 1
4982 cat >> confdefs.h <<\EOF
4983 #define HAVE_ATANF 1
4986 cat >> confdefs.h <<\EOF
4987 #define HAVE_CEILF 1
4990 cat >> confdefs.h <<\EOF
4991 #define HAVE_COSF 1
4994 cat >> confdefs.h <<\EOF
4995 #define HAVE_COSHF 1
4998 cat >> confdefs.h <<\EOF
4999 #define HAVE_EXPF 1
5002 cat >> confdefs.h <<\EOF
5003 #define HAVE_FABSF 1
5006 cat >> confdefs.h <<\EOF
5007 #define HAVE_FLOORF 1
5010 cat >> confdefs.h <<\EOF
5011 #define HAVE_FMODF 1
5014 cat >> confdefs.h <<\EOF
5015 #define HAVE_HYPOTF 1
5018 cat >> confdefs.h <<\EOF
5019 #define HAVE_ISNANF 1
5022 cat >> confdefs.h <<\EOF
5023 #define HAVE_ISINFF 1
5026 cat >> confdefs.h <<\EOF
5027 #define HAVE_LDEXPF 1
5030 cat >> confdefs.h <<\EOF
5031 #define HAVE_LOG10F 1
5034 cat >> confdefs.h <<\EOF
5035 #define HAVE_LOGF 1
5038 cat >> confdefs.h <<\EOF
5039 #define HAVE_MODFF 1
5042 cat >> confdefs.h <<\EOF
5043 #define HAVE_POWF 1
5046 cat >> confdefs.h <<\EOF
5047 #define HAVE_SINF 1
5050 cat >> confdefs.h <<\EOF
5051 #define HAVE_SINHF 1
5054 cat >> confdefs.h <<\EOF
5055 #define HAVE_SQRTF 1
5058 cat >> confdefs.h <<\EOF
5059 #define HAVE_TANF 1
5062 cat >> confdefs.h <<\EOF
5063 #define HAVE_TANHF 1
5067 os_include_dir="config/os/newlib"
5069 esac
5070 else
5072 # We are being configured natively. We can do more elaborate tests
5073 # that include AC_TRY_COMPILE now, as the linker is assumed to be
5074 # working.
5075 GLIBCPP_IS_CROSS_COMPILING=0
5076 CANADIAN=no
5078 # Check for available headers.
5079 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
5080 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
5082 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5083 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5084 echo "configure:5085: checking for $ac_hdr" >&5
5085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6
5087 else
5088 cat > conftest.$ac_ext <<EOF
5089 #line 5090 "configure"
5090 #include "confdefs.h"
5091 #include <$ac_hdr>
5093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5094 { (eval echo configure:5095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5096 if test -z "$ac_err"; then
5097 rm -rf conftest*
5098 eval "ac_cv_header_$ac_safe=yes"
5099 else
5100 echo "$ac_err" >&5
5101 echo "configure: failed program was:" >&5
5102 cat conftest.$ac_ext >&5
5103 rm -rf conftest*
5104 eval "ac_cv_header_$ac_safe=no"
5106 rm -f conftest*
5108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5109 echo "$ac_t""yes" 1>&6
5110 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5111 cat >> confdefs.h <<EOF
5112 #define $ac_tr_hdr 1
5115 else
5116 echo "$ac_t""no" 1>&6
5118 done
5122 # All these tests are for C++; save the language and the compiler flags.
5123 # The CXXFLAGS thing is suspicious, but based on similar bits previously
5124 # found in GLIBCPP_CONFIGURE.
5126 ac_ext=C
5127 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5128 ac_cpp='$CXXCPP $CPPFLAGS'
5129 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5130 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5131 cross_compiling=$ac_cv_prog_cxx_cross
5133 ac_test_CXXFLAGS="${CXXFLAGS+set}"
5134 ac_save_CXXFLAGS="$CXXFLAGS"
5136 # Check for maintainer-mode bits.
5137 if test x"$USE_MAINTAINER_MODE" = xno; then
5138 WERROR=''
5139 else
5140 WERROR='-Werror'
5143 # Check for -ffunction-sections -fdata-sections
5144 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
5145 echo "configure:5146: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
5146 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
5147 cat > conftest.$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5151 int main() {
5152 int foo;
5154 ; return 0; }
5156 if { (eval echo configure:5157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5157 rm -rf conftest*
5158 ac_fdsections=yes
5159 else
5160 echo "configure: failed program was:" >&5
5161 cat conftest.$ac_ext >&5
5162 rm -rf conftest*
5163 ac_fdsections=no
5165 rm -f conftest*
5166 if test "$ac_test_CXXFLAGS" = set; then
5167 CXXFLAGS="$ac_save_CXXFLAGS"
5168 else
5169 # this is the suspicious part
5170 CXXFLAGS=''
5172 if test x"$ac_fdsections" = x"yes" &&
5173 test x"$enable_debug" = x"no"; then
5174 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5176 echo "$ac_t""$ac_fdsections" 1>&6
5178 ac_ext=c
5179 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5180 ac_cpp='$CPP $CPPFLAGS'
5181 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5182 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5183 cross_compiling=$ac_cv_prog_cc_cross
5189 # If we're not using GNU ld, then there's no point in even trying these
5190 # tests. Check for that first. We should have already tested for gld
5191 # by now (in libtool), but require it now just to be safe...
5192 SECTION_LDFLAGS=''
5193 OPT_LDFLAGS=''
5196 # Set --gc-sections.
5197 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
5198 # GNU ld it is! Joy and bunny rabbits!
5200 # All these tests are for C++; save the language and the compiler flags.
5201 # Need to do this so that g++ won't try to link in libstdc++
5202 ac_test_CFLAGS="${CFLAGS+set}"
5203 ac_save_CFLAGS="$CFLAGS"
5204 CFLAGS='-x c++ -Wl,--gc-sections'
5206 # Check for -Wl,--gc-sections
5207 # XXX This test is broken at the moment, as symbols required for
5208 # linking are now in libsupc++ (not built yet.....). In addition,
5209 # this test has cored on solaris in the past. In addition,
5210 # --gc-sections doesn't really work at the moment (keeps on discarding
5211 # used sections, first .eh_frame and now some of the glibc sections for
5212 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5213 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5214 echo "configure:5215: checking for ld that supports -Wl,--gc-sections" >&5
5215 if test "$cross_compiling" = yes; then
5216 ac_sectionLDflags=yes
5217 else
5218 cat > conftest.$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5222 int main(void)
5224 try { throw 1; }
5225 catch (...) { };
5226 return 0;
5230 if { (eval echo configure:5231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5231 then
5232 ac_sectionLDflags=yes
5233 else
5234 echo "configure: failed program was:" >&5
5235 cat conftest.$ac_ext >&5
5236 rm -fr conftest*
5237 ac_sectionLFflags=no
5239 rm -fr conftest*
5242 if test "$ac_test_CFLAGS" = set; then
5243 CFLAGS="$ac_save_CFLAGS"
5244 else
5245 # this is the suspicious part
5246 CFLAGS=''
5248 if test "$ac_sectionLDflags" = "yes"; then
5249 SECTION_LDFLAGS='-Wl,--gc-sections'
5251 echo "$ac_t""$ac_sectionLDflags" 1>&6
5254 # Set linker optimization flags.
5255 if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
5256 test x"$enable_debug" = x"no"; then
5257 OPT_LDFLAGS='-Wl,-O1'
5265 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5266 echo "configure:5267: checking for __builtin_abs declaration" >&5
5267 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5268 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5269 echo $ac_n "(cached) $ac_c" 1>&6
5270 else
5273 ac_ext=C
5274 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5275 ac_cpp='$CXXCPP $CPPFLAGS'
5276 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5277 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5278 cross_compiling=$ac_cv_prog_cxx_cross
5280 cat > conftest.$ac_ext <<EOF
5281 #line 5282 "configure"
5282 #include "confdefs.h"
5283 #include <math.h>
5284 int main() {
5285 __builtin_abs(0);
5286 ; return 0; }
5288 if { (eval echo configure:5289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5289 rm -rf conftest*
5290 glibcpp_cv_func___builtin_abs_use=yes
5291 else
5292 echo "configure: failed program was:" >&5
5293 cat conftest.$ac_ext >&5
5294 rm -rf conftest*
5295 glibcpp_cv_func___builtin_abs_use=no
5297 rm -f conftest*
5298 ac_ext=c
5299 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5300 ac_cpp='$CPP $CPPFLAGS'
5301 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5302 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5303 cross_compiling=$ac_cv_prog_cc_cross
5309 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5310 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5311 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5312 echo "configure:5313: checking for __builtin_abs linkage" >&5
5313 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5314 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5315 echo $ac_n "(cached) $ac_c" 1>&6
5316 else
5318 cat > conftest.$ac_ext <<EOF
5319 #line 5320 "configure"
5320 #include "confdefs.h"
5321 #include <math.h>
5322 int main() {
5323 __builtin_abs(0);
5324 ; return 0; }
5326 if { (eval echo configure:5327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5327 rm -rf conftest*
5328 glibcpp_cv_func___builtin_abs_link=yes
5329 else
5330 echo "configure: failed program was:" >&5
5331 cat conftest.$ac_ext >&5
5332 rm -rf conftest*
5333 glibcpp_cv_func___builtin_abs_link=no
5335 rm -f conftest*
5340 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5341 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5342 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5343 cat >> confdefs.h <<EOF
5344 #define ${ac_tr_func} 1
5351 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5352 echo "configure:5353: checking for __builtin_fabsf declaration" >&5
5353 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5354 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5355 echo $ac_n "(cached) $ac_c" 1>&6
5356 else
5359 ac_ext=C
5360 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5361 ac_cpp='$CXXCPP $CPPFLAGS'
5362 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5363 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5364 cross_compiling=$ac_cv_prog_cxx_cross
5366 cat > conftest.$ac_ext <<EOF
5367 #line 5368 "configure"
5368 #include "confdefs.h"
5369 #include <math.h>
5370 int main() {
5371 __builtin_fabsf(0);
5372 ; return 0; }
5374 if { (eval echo configure:5375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5375 rm -rf conftest*
5376 glibcpp_cv_func___builtin_fabsf_use=yes
5377 else
5378 echo "configure: failed program was:" >&5
5379 cat conftest.$ac_ext >&5
5380 rm -rf conftest*
5381 glibcpp_cv_func___builtin_fabsf_use=no
5383 rm -f conftest*
5384 ac_ext=c
5385 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5386 ac_cpp='$CPP $CPPFLAGS'
5387 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5388 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5389 cross_compiling=$ac_cv_prog_cc_cross
5395 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5396 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5397 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5398 echo "configure:5399: checking for __builtin_fabsf linkage" >&5
5399 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5400 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5401 echo $ac_n "(cached) $ac_c" 1>&6
5402 else
5404 cat > conftest.$ac_ext <<EOF
5405 #line 5406 "configure"
5406 #include "confdefs.h"
5407 #include <math.h>
5408 int main() {
5409 __builtin_fabsf(0);
5410 ; return 0; }
5412 if { (eval echo configure:5413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5413 rm -rf conftest*
5414 glibcpp_cv_func___builtin_fabsf_link=yes
5415 else
5416 echo "configure: failed program was:" >&5
5417 cat conftest.$ac_ext >&5
5418 rm -rf conftest*
5419 glibcpp_cv_func___builtin_fabsf_link=no
5421 rm -f conftest*
5426 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5427 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5428 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5429 cat >> confdefs.h <<EOF
5430 #define ${ac_tr_func} 1
5437 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5438 echo "configure:5439: checking for __builtin_fabs declaration" >&5
5439 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5440 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5441 echo $ac_n "(cached) $ac_c" 1>&6
5442 else
5445 ac_ext=C
5446 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5447 ac_cpp='$CXXCPP $CPPFLAGS'
5448 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5449 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5450 cross_compiling=$ac_cv_prog_cxx_cross
5452 cat > conftest.$ac_ext <<EOF
5453 #line 5454 "configure"
5454 #include "confdefs.h"
5455 #include <math.h>
5456 int main() {
5457 __builtin_fabs(0);
5458 ; return 0; }
5460 if { (eval echo configure:5461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5461 rm -rf conftest*
5462 glibcpp_cv_func___builtin_fabs_use=yes
5463 else
5464 echo "configure: failed program was:" >&5
5465 cat conftest.$ac_ext >&5
5466 rm -rf conftest*
5467 glibcpp_cv_func___builtin_fabs_use=no
5469 rm -f conftest*
5470 ac_ext=c
5471 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5472 ac_cpp='$CPP $CPPFLAGS'
5473 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5474 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5475 cross_compiling=$ac_cv_prog_cc_cross
5481 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5482 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5483 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5484 echo "configure:5485: checking for __builtin_fabs linkage" >&5
5485 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5486 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5487 echo $ac_n "(cached) $ac_c" 1>&6
5488 else
5490 cat > conftest.$ac_ext <<EOF
5491 #line 5492 "configure"
5492 #include "confdefs.h"
5493 #include <math.h>
5494 int main() {
5495 __builtin_fabs(0);
5496 ; return 0; }
5498 if { (eval echo configure:5499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5499 rm -rf conftest*
5500 glibcpp_cv_func___builtin_fabs_link=yes
5501 else
5502 echo "configure: failed program was:" >&5
5503 cat conftest.$ac_ext >&5
5504 rm -rf conftest*
5505 glibcpp_cv_func___builtin_fabs_link=no
5507 rm -f conftest*
5512 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5513 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5514 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5515 cat >> confdefs.h <<EOF
5516 #define ${ac_tr_func} 1
5523 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5524 echo "configure:5525: checking for __builtin_fabsl declaration" >&5
5525 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5526 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5527 echo $ac_n "(cached) $ac_c" 1>&6
5528 else
5531 ac_ext=C
5532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5533 ac_cpp='$CXXCPP $CPPFLAGS'
5534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5536 cross_compiling=$ac_cv_prog_cxx_cross
5538 cat > conftest.$ac_ext <<EOF
5539 #line 5540 "configure"
5540 #include "confdefs.h"
5541 #include <math.h>
5542 int main() {
5543 __builtin_fabsl(0);
5544 ; return 0; }
5546 if { (eval echo configure:5547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5547 rm -rf conftest*
5548 glibcpp_cv_func___builtin_fabsl_use=yes
5549 else
5550 echo "configure: failed program was:" >&5
5551 cat conftest.$ac_ext >&5
5552 rm -rf conftest*
5553 glibcpp_cv_func___builtin_fabsl_use=no
5555 rm -f conftest*
5556 ac_ext=c
5557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5558 ac_cpp='$CPP $CPPFLAGS'
5559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5561 cross_compiling=$ac_cv_prog_cc_cross
5567 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5568 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5569 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5570 echo "configure:5571: checking for __builtin_fabsl linkage" >&5
5571 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5572 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5573 echo $ac_n "(cached) $ac_c" 1>&6
5574 else
5576 cat > conftest.$ac_ext <<EOF
5577 #line 5578 "configure"
5578 #include "confdefs.h"
5579 #include <math.h>
5580 int main() {
5581 __builtin_fabsl(0);
5582 ; return 0; }
5584 if { (eval echo configure:5585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5585 rm -rf conftest*
5586 glibcpp_cv_func___builtin_fabsl_link=yes
5587 else
5588 echo "configure: failed program was:" >&5
5589 cat conftest.$ac_ext >&5
5590 rm -rf conftest*
5591 glibcpp_cv_func___builtin_fabsl_link=no
5593 rm -f conftest*
5598 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5599 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5600 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5601 cat >> confdefs.h <<EOF
5602 #define ${ac_tr_func} 1
5609 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5610 echo "configure:5611: checking for __builtin_labs declaration" >&5
5611 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5612 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5613 echo $ac_n "(cached) $ac_c" 1>&6
5614 else
5617 ac_ext=C
5618 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5619 ac_cpp='$CXXCPP $CPPFLAGS'
5620 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5621 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5622 cross_compiling=$ac_cv_prog_cxx_cross
5624 cat > conftest.$ac_ext <<EOF
5625 #line 5626 "configure"
5626 #include "confdefs.h"
5627 #include <math.h>
5628 int main() {
5629 __builtin_labs(0);
5630 ; return 0; }
5632 if { (eval echo configure:5633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5633 rm -rf conftest*
5634 glibcpp_cv_func___builtin_labs_use=yes
5635 else
5636 echo "configure: failed program was:" >&5
5637 cat conftest.$ac_ext >&5
5638 rm -rf conftest*
5639 glibcpp_cv_func___builtin_labs_use=no
5641 rm -f conftest*
5642 ac_ext=c
5643 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5644 ac_cpp='$CPP $CPPFLAGS'
5645 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5646 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5647 cross_compiling=$ac_cv_prog_cc_cross
5653 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5654 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5655 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5656 echo "configure:5657: checking for __builtin_labs linkage" >&5
5657 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5658 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5659 echo $ac_n "(cached) $ac_c" 1>&6
5660 else
5662 cat > conftest.$ac_ext <<EOF
5663 #line 5664 "configure"
5664 #include "confdefs.h"
5665 #include <math.h>
5666 int main() {
5667 __builtin_labs(0);
5668 ; return 0; }
5670 if { (eval echo configure:5671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5671 rm -rf conftest*
5672 glibcpp_cv_func___builtin_labs_link=yes
5673 else
5674 echo "configure: failed program was:" >&5
5675 cat conftest.$ac_ext >&5
5676 rm -rf conftest*
5677 glibcpp_cv_func___builtin_labs_link=no
5679 rm -f conftest*
5684 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5685 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5686 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5687 cat >> confdefs.h <<EOF
5688 #define ${ac_tr_func} 1
5696 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5697 echo "configure:5698: checking for __builtin_sqrtf declaration" >&5
5698 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5699 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5700 echo $ac_n "(cached) $ac_c" 1>&6
5701 else
5704 ac_ext=C
5705 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5706 ac_cpp='$CXXCPP $CPPFLAGS'
5707 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5708 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5709 cross_compiling=$ac_cv_prog_cxx_cross
5711 cat > conftest.$ac_ext <<EOF
5712 #line 5713 "configure"
5713 #include "confdefs.h"
5714 #include <math.h>
5715 int main() {
5716 __builtin_sqrtf(0);
5717 ; return 0; }
5719 if { (eval echo configure:5720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5720 rm -rf conftest*
5721 glibcpp_cv_func___builtin_sqrtf_use=yes
5722 else
5723 echo "configure: failed program was:" >&5
5724 cat conftest.$ac_ext >&5
5725 rm -rf conftest*
5726 glibcpp_cv_func___builtin_sqrtf_use=no
5728 rm -f conftest*
5729 ac_ext=c
5730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5731 ac_cpp='$CPP $CPPFLAGS'
5732 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5733 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5734 cross_compiling=$ac_cv_prog_cc_cross
5740 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5741 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5742 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5743 echo "configure:5744: checking for __builtin_sqrtf linkage" >&5
5744 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5745 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5746 echo $ac_n "(cached) $ac_c" 1>&6
5747 else
5749 cat > conftest.$ac_ext <<EOF
5750 #line 5751 "configure"
5751 #include "confdefs.h"
5752 #include <math.h>
5753 int main() {
5754 __builtin_sqrtf(0);
5755 ; return 0; }
5757 if { (eval echo configure:5758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5758 rm -rf conftest*
5759 glibcpp_cv_func___builtin_sqrtf_link=yes
5760 else
5761 echo "configure: failed program was:" >&5
5762 cat conftest.$ac_ext >&5
5763 rm -rf conftest*
5764 glibcpp_cv_func___builtin_sqrtf_link=no
5766 rm -f conftest*
5771 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5772 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5773 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5774 cat >> confdefs.h <<EOF
5775 #define ${ac_tr_func} 1
5782 echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5783 echo "configure:5784: checking for __builtin_fsqrt declaration" >&5
5784 if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5785 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5786 echo $ac_n "(cached) $ac_c" 1>&6
5787 else
5790 ac_ext=C
5791 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5792 ac_cpp='$CXXCPP $CPPFLAGS'
5793 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5794 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5795 cross_compiling=$ac_cv_prog_cxx_cross
5797 cat > conftest.$ac_ext <<EOF
5798 #line 5799 "configure"
5799 #include "confdefs.h"
5800 #include <math.h>
5801 int main() {
5802 __builtin_fsqrt(0);
5803 ; return 0; }
5805 if { (eval echo configure:5806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5806 rm -rf conftest*
5807 glibcpp_cv_func___builtin_fsqrt_use=yes
5808 else
5809 echo "configure: failed program was:" >&5
5810 cat conftest.$ac_ext >&5
5811 rm -rf conftest*
5812 glibcpp_cv_func___builtin_fsqrt_use=no
5814 rm -f conftest*
5815 ac_ext=c
5816 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5817 ac_cpp='$CPP $CPPFLAGS'
5818 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5819 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5820 cross_compiling=$ac_cv_prog_cc_cross
5826 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5827 if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5828 echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5829 echo "configure:5830: checking for __builtin_fsqrt linkage" >&5
5830 if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5831 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5833 else
5835 cat > conftest.$ac_ext <<EOF
5836 #line 5837 "configure"
5837 #include "confdefs.h"
5838 #include <math.h>
5839 int main() {
5840 __builtin_fsqrt(0);
5841 ; return 0; }
5843 if { (eval echo configure:5844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5844 rm -rf conftest*
5845 glibcpp_cv_func___builtin_fsqrt_link=yes
5846 else
5847 echo "configure: failed program was:" >&5
5848 cat conftest.$ac_ext >&5
5849 rm -rf conftest*
5850 glibcpp_cv_func___builtin_fsqrt_link=no
5852 rm -f conftest*
5857 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5858 if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5859 ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5860 cat >> confdefs.h <<EOF
5861 #define ${ac_tr_func} 1
5868 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5869 echo "configure:5870: checking for __builtin_sqrtl declaration" >&5
5870 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5871 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5872 echo $ac_n "(cached) $ac_c" 1>&6
5873 else
5876 ac_ext=C
5877 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5878 ac_cpp='$CXXCPP $CPPFLAGS'
5879 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5880 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5881 cross_compiling=$ac_cv_prog_cxx_cross
5883 cat > conftest.$ac_ext <<EOF
5884 #line 5885 "configure"
5885 #include "confdefs.h"
5886 #include <math.h>
5887 int main() {
5888 __builtin_sqrtl(0);
5889 ; return 0; }
5891 if { (eval echo configure:5892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5892 rm -rf conftest*
5893 glibcpp_cv_func___builtin_sqrtl_use=yes
5894 else
5895 echo "configure: failed program was:" >&5
5896 cat conftest.$ac_ext >&5
5897 rm -rf conftest*
5898 glibcpp_cv_func___builtin_sqrtl_use=no
5900 rm -f conftest*
5901 ac_ext=c
5902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5903 ac_cpp='$CPP $CPPFLAGS'
5904 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5905 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5906 cross_compiling=$ac_cv_prog_cc_cross
5912 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5913 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5914 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5915 echo "configure:5916: checking for __builtin_sqrtl linkage" >&5
5916 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5917 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5918 echo $ac_n "(cached) $ac_c" 1>&6
5919 else
5921 cat > conftest.$ac_ext <<EOF
5922 #line 5923 "configure"
5923 #include "confdefs.h"
5924 #include <math.h>
5925 int main() {
5926 __builtin_sqrtl(0);
5927 ; return 0; }
5929 if { (eval echo configure:5930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5930 rm -rf conftest*
5931 glibcpp_cv_func___builtin_sqrtl_link=yes
5932 else
5933 echo "configure: failed program was:" >&5
5934 cat conftest.$ac_ext >&5
5935 rm -rf conftest*
5936 glibcpp_cv_func___builtin_sqrtl_link=no
5938 rm -f conftest*
5943 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5944 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5945 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5946 cat >> confdefs.h <<EOF
5947 #define ${ac_tr_func} 1
5955 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5956 echo "configure:5957: checking for __builtin_sinf declaration" >&5
5957 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5958 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5959 echo $ac_n "(cached) $ac_c" 1>&6
5960 else
5963 ac_ext=C
5964 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5965 ac_cpp='$CXXCPP $CPPFLAGS'
5966 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5967 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5968 cross_compiling=$ac_cv_prog_cxx_cross
5970 cat > conftest.$ac_ext <<EOF
5971 #line 5972 "configure"
5972 #include "confdefs.h"
5973 #include <math.h>
5974 int main() {
5975 __builtin_sinf(0);
5976 ; return 0; }
5978 if { (eval echo configure:5979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5979 rm -rf conftest*
5980 glibcpp_cv_func___builtin_sinf_use=yes
5981 else
5982 echo "configure: failed program was:" >&5
5983 cat conftest.$ac_ext >&5
5984 rm -rf conftest*
5985 glibcpp_cv_func___builtin_sinf_use=no
5987 rm -f conftest*
5988 ac_ext=c
5989 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5990 ac_cpp='$CPP $CPPFLAGS'
5991 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5992 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5993 cross_compiling=$ac_cv_prog_cc_cross
5999 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
6000 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
6001 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
6002 echo "configure:6003: checking for __builtin_sinf linkage" >&5
6003 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
6004 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
6005 echo $ac_n "(cached) $ac_c" 1>&6
6006 else
6008 cat > conftest.$ac_ext <<EOF
6009 #line 6010 "configure"
6010 #include "confdefs.h"
6011 #include <math.h>
6012 int main() {
6013 __builtin_sinf(0);
6014 ; return 0; }
6016 if { (eval echo configure:6017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6017 rm -rf conftest*
6018 glibcpp_cv_func___builtin_sinf_link=yes
6019 else
6020 echo "configure: failed program was:" >&5
6021 cat conftest.$ac_ext >&5
6022 rm -rf conftest*
6023 glibcpp_cv_func___builtin_sinf_link=no
6025 rm -f conftest*
6030 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
6031 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
6032 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6033 cat >> confdefs.h <<EOF
6034 #define ${ac_tr_func} 1
6041 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
6042 echo "configure:6043: checking for __builtin_sin declaration" >&5
6043 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
6044 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
6045 echo $ac_n "(cached) $ac_c" 1>&6
6046 else
6049 ac_ext=C
6050 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6051 ac_cpp='$CXXCPP $CPPFLAGS'
6052 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6053 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6054 cross_compiling=$ac_cv_prog_cxx_cross
6056 cat > conftest.$ac_ext <<EOF
6057 #line 6058 "configure"
6058 #include "confdefs.h"
6059 #include <math.h>
6060 int main() {
6061 __builtin_sin(0);
6062 ; return 0; }
6064 if { (eval echo configure:6065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6065 rm -rf conftest*
6066 glibcpp_cv_func___builtin_sin_use=yes
6067 else
6068 echo "configure: failed program was:" >&5
6069 cat conftest.$ac_ext >&5
6070 rm -rf conftest*
6071 glibcpp_cv_func___builtin_sin_use=no
6073 rm -f conftest*
6074 ac_ext=c
6075 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6076 ac_cpp='$CPP $CPPFLAGS'
6077 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6078 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6079 cross_compiling=$ac_cv_prog_cc_cross
6085 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
6086 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
6087 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
6088 echo "configure:6089: checking for __builtin_sin linkage" >&5
6089 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
6090 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
6091 echo $ac_n "(cached) $ac_c" 1>&6
6092 else
6094 cat > conftest.$ac_ext <<EOF
6095 #line 6096 "configure"
6096 #include "confdefs.h"
6097 #include <math.h>
6098 int main() {
6099 __builtin_sin(0);
6100 ; return 0; }
6102 if { (eval echo configure:6103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6103 rm -rf conftest*
6104 glibcpp_cv_func___builtin_sin_link=yes
6105 else
6106 echo "configure: failed program was:" >&5
6107 cat conftest.$ac_ext >&5
6108 rm -rf conftest*
6109 glibcpp_cv_func___builtin_sin_link=no
6111 rm -f conftest*
6116 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
6117 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
6118 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6119 cat >> confdefs.h <<EOF
6120 #define ${ac_tr_func} 1
6127 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
6128 echo "configure:6129: checking for __builtin_sinl declaration" >&5
6129 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
6130 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
6131 echo $ac_n "(cached) $ac_c" 1>&6
6132 else
6135 ac_ext=C
6136 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6137 ac_cpp='$CXXCPP $CPPFLAGS'
6138 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6139 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6140 cross_compiling=$ac_cv_prog_cxx_cross
6142 cat > conftest.$ac_ext <<EOF
6143 #line 6144 "configure"
6144 #include "confdefs.h"
6145 #include <math.h>
6146 int main() {
6147 __builtin_sinl(0);
6148 ; return 0; }
6150 if { (eval echo configure:6151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6151 rm -rf conftest*
6152 glibcpp_cv_func___builtin_sinl_use=yes
6153 else
6154 echo "configure: failed program was:" >&5
6155 cat conftest.$ac_ext >&5
6156 rm -rf conftest*
6157 glibcpp_cv_func___builtin_sinl_use=no
6159 rm -f conftest*
6160 ac_ext=c
6161 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6162 ac_cpp='$CPP $CPPFLAGS'
6163 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6164 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6165 cross_compiling=$ac_cv_prog_cc_cross
6171 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
6172 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
6173 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
6174 echo "configure:6175: checking for __builtin_sinl linkage" >&5
6175 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
6176 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
6177 echo $ac_n "(cached) $ac_c" 1>&6
6178 else
6180 cat > conftest.$ac_ext <<EOF
6181 #line 6182 "configure"
6182 #include "confdefs.h"
6183 #include <math.h>
6184 int main() {
6185 __builtin_sinl(0);
6186 ; return 0; }
6188 if { (eval echo configure:6189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6189 rm -rf conftest*
6190 glibcpp_cv_func___builtin_sinl_link=yes
6191 else
6192 echo "configure: failed program was:" >&5
6193 cat conftest.$ac_ext >&5
6194 rm -rf conftest*
6195 glibcpp_cv_func___builtin_sinl_link=no
6197 rm -f conftest*
6202 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
6203 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
6204 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6205 cat >> confdefs.h <<EOF
6206 #define ${ac_tr_func} 1
6214 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
6215 echo "configure:6216: checking for __builtin_cosf declaration" >&5
6216 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
6217 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
6218 echo $ac_n "(cached) $ac_c" 1>&6
6219 else
6222 ac_ext=C
6223 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6224 ac_cpp='$CXXCPP $CPPFLAGS'
6225 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6226 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6227 cross_compiling=$ac_cv_prog_cxx_cross
6229 cat > conftest.$ac_ext <<EOF
6230 #line 6231 "configure"
6231 #include "confdefs.h"
6232 #include <math.h>
6233 int main() {
6234 __builtin_cosf(0);
6235 ; return 0; }
6237 if { (eval echo configure:6238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6238 rm -rf conftest*
6239 glibcpp_cv_func___builtin_cosf_use=yes
6240 else
6241 echo "configure: failed program was:" >&5
6242 cat conftest.$ac_ext >&5
6243 rm -rf conftest*
6244 glibcpp_cv_func___builtin_cosf_use=no
6246 rm -f conftest*
6247 ac_ext=c
6248 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6249 ac_cpp='$CPP $CPPFLAGS'
6250 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6251 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6252 cross_compiling=$ac_cv_prog_cc_cross
6258 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6259 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6260 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6261 echo "configure:6262: checking for __builtin_cosf linkage" >&5
6262 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6263 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6264 echo $ac_n "(cached) $ac_c" 1>&6
6265 else
6267 cat > conftest.$ac_ext <<EOF
6268 #line 6269 "configure"
6269 #include "confdefs.h"
6270 #include <math.h>
6271 int main() {
6272 __builtin_cosf(0);
6273 ; return 0; }
6275 if { (eval echo configure:6276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6276 rm -rf conftest*
6277 glibcpp_cv_func___builtin_cosf_link=yes
6278 else
6279 echo "configure: failed program was:" >&5
6280 cat conftest.$ac_ext >&5
6281 rm -rf conftest*
6282 glibcpp_cv_func___builtin_cosf_link=no
6284 rm -f conftest*
6289 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6290 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6291 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6292 cat >> confdefs.h <<EOF
6293 #define ${ac_tr_func} 1
6300 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
6301 echo "configure:6302: checking for __builtin_cos declaration" >&5
6302 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6303 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
6304 echo $ac_n "(cached) $ac_c" 1>&6
6305 else
6308 ac_ext=C
6309 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6310 ac_cpp='$CXXCPP $CPPFLAGS'
6311 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6312 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6313 cross_compiling=$ac_cv_prog_cxx_cross
6315 cat > conftest.$ac_ext <<EOF
6316 #line 6317 "configure"
6317 #include "confdefs.h"
6318 #include <math.h>
6319 int main() {
6320 __builtin_cos(0);
6321 ; return 0; }
6323 if { (eval echo configure:6324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6324 rm -rf conftest*
6325 glibcpp_cv_func___builtin_cos_use=yes
6326 else
6327 echo "configure: failed program was:" >&5
6328 cat conftest.$ac_ext >&5
6329 rm -rf conftest*
6330 glibcpp_cv_func___builtin_cos_use=no
6332 rm -f conftest*
6333 ac_ext=c
6334 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6335 ac_cpp='$CPP $CPPFLAGS'
6336 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6337 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6338 cross_compiling=$ac_cv_prog_cc_cross
6344 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
6345 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6346 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6347 echo "configure:6348: checking for __builtin_cos linkage" >&5
6348 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6349 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
6350 echo $ac_n "(cached) $ac_c" 1>&6
6351 else
6353 cat > conftest.$ac_ext <<EOF
6354 #line 6355 "configure"
6355 #include "confdefs.h"
6356 #include <math.h>
6357 int main() {
6358 __builtin_cos(0);
6359 ; return 0; }
6361 if { (eval echo configure:6362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6362 rm -rf conftest*
6363 glibcpp_cv_func___builtin_cos_link=yes
6364 else
6365 echo "configure: failed program was:" >&5
6366 cat conftest.$ac_ext >&5
6367 rm -rf conftest*
6368 glibcpp_cv_func___builtin_cos_link=no
6370 rm -f conftest*
6375 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6376 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6377 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6378 cat >> confdefs.h <<EOF
6379 #define ${ac_tr_func} 1
6386 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6387 echo "configure:6388: checking for __builtin_cosl declaration" >&5
6388 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6389 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
6390 echo $ac_n "(cached) $ac_c" 1>&6
6391 else
6394 ac_ext=C
6395 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6396 ac_cpp='$CXXCPP $CPPFLAGS'
6397 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6398 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6399 cross_compiling=$ac_cv_prog_cxx_cross
6401 cat > conftest.$ac_ext <<EOF
6402 #line 6403 "configure"
6403 #include "confdefs.h"
6404 #include <math.h>
6405 int main() {
6406 __builtin_cosl(0);
6407 ; return 0; }
6409 if { (eval echo configure:6410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6410 rm -rf conftest*
6411 glibcpp_cv_func___builtin_cosl_use=yes
6412 else
6413 echo "configure: failed program was:" >&5
6414 cat conftest.$ac_ext >&5
6415 rm -rf conftest*
6416 glibcpp_cv_func___builtin_cosl_use=no
6418 rm -f conftest*
6419 ac_ext=c
6420 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6421 ac_cpp='$CPP $CPPFLAGS'
6422 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6423 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6424 cross_compiling=$ac_cv_prog_cc_cross
6430 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
6431 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6432 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6433 echo "configure:6434: checking for __builtin_cosl linkage" >&5
6434 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6435 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
6436 echo $ac_n "(cached) $ac_c" 1>&6
6437 else
6439 cat > conftest.$ac_ext <<EOF
6440 #line 6441 "configure"
6441 #include "confdefs.h"
6442 #include <math.h>
6443 int main() {
6444 __builtin_cosl(0);
6445 ; return 0; }
6447 if { (eval echo configure:6448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6448 rm -rf conftest*
6449 glibcpp_cv_func___builtin_cosl_link=yes
6450 else
6451 echo "configure: failed program was:" >&5
6452 cat conftest.$ac_ext >&5
6453 rm -rf conftest*
6454 glibcpp_cv_func___builtin_cosl_link=no
6456 rm -f conftest*
6461 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6462 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6463 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6464 cat >> confdefs.h <<EOF
6465 #define ${ac_tr_func} 1
6472 dummyvar=no
6473 if test x$dummyvar = x"yes"; then
6474 cat >> confdefs.h <<\EOF
6475 #define HAVE___BUILTIN_ABS 1
6478 cat >> confdefs.h <<\EOF
6479 #define HAVE___BUILTIN_LABS 1
6482 cat >> confdefs.h <<\EOF
6483 #define HAVE___BUILTIN_COS 1
6486 cat >> confdefs.h <<\EOF
6487 #define HAVE___BUILTIN_COSF 1
6490 cat >> confdefs.h <<\EOF
6491 #define HAVE___BUILTIN_COSL 1
6494 cat >> confdefs.h <<\EOF
6495 #define HAVE___BUILTIN_FABS 1
6498 cat >> confdefs.h <<\EOF
6499 #define HAVE___BUILTIN_FABSF 1
6502 cat >> confdefs.h <<\EOF
6503 #define HAVE___BUILTIN_FABSL 1
6506 cat >> confdefs.h <<\EOF
6507 #define HAVE___BUILTIN_SIN 1
6510 cat >> confdefs.h <<\EOF
6511 #define HAVE___BUILTIN_SINF 1
6514 cat >> confdefs.h <<\EOF
6515 #define HAVE___BUILTIN_SINL 1
6518 cat >> confdefs.h <<\EOF
6519 #define HAVE___BUILTIN_FSQRT 1
6522 cat >> confdefs.h <<\EOF
6523 #define HAVE___BUILTIN_SQRTF 1
6526 cat >> confdefs.h <<\EOF
6527 #define HAVE___BUILTIN_SQRTL 1
6533 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6534 ac_save_CXXFLAGS="$CXXFLAGS"
6535 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6537 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6538 echo "configure:6539: checking for sin in -lm" >&5
6539 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6541 echo $ac_n "(cached) $ac_c" 1>&6
6542 else
6543 ac_save_LIBS="$LIBS"
6544 LIBS="-lm $LIBS"
6545 cat > conftest.$ac_ext <<EOF
6546 #line 6547 "configure"
6547 #include "confdefs.h"
6548 /* Override any gcc2 internal prototype to avoid an error. */
6549 /* We use char because int might match the return type of a gcc2
6550 builtin and then its argument prototype would still apply. */
6551 char sin();
6553 int main() {
6554 sin()
6555 ; return 0; }
6557 if { (eval echo configure:6558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6558 rm -rf conftest*
6559 eval "ac_cv_lib_$ac_lib_var=yes"
6560 else
6561 echo "configure: failed program was:" >&5
6562 cat conftest.$ac_ext >&5
6563 rm -rf conftest*
6564 eval "ac_cv_lib_$ac_lib_var=no"
6566 rm -f conftest*
6567 LIBS="$ac_save_LIBS"
6570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6571 echo "$ac_t""yes" 1>&6
6572 libm="-lm"
6573 else
6574 echo "$ac_t""no" 1>&6
6577 ac_save_LIBS="$LIBS"
6578 LIBS="$LIBS $libm"
6582 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6583 echo "configure:6584: checking for isinf declaration" >&5
6584 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6585 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6586 echo $ac_n "(cached) $ac_c" 1>&6
6587 else
6590 ac_ext=C
6591 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6592 ac_cpp='$CXXCPP $CPPFLAGS'
6593 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6594 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6595 cross_compiling=$ac_cv_prog_cxx_cross
6597 cat > conftest.$ac_ext <<EOF
6598 #line 6599 "configure"
6599 #include "confdefs.h"
6600 #include <math.h>
6601 #ifdef HAVE_IEEEFP_H
6602 #include <ieeefp.h>
6603 #endif
6605 int main() {
6606 isinf(0);
6607 ; return 0; }
6609 if { (eval echo configure:6610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6610 rm -rf conftest*
6611 glibcpp_cv_func_isinf_use=yes
6612 else
6613 echo "configure: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6615 rm -rf conftest*
6616 glibcpp_cv_func_isinf_use=no
6618 rm -f conftest*
6619 ac_ext=c
6620 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6621 ac_cpp='$CPP $CPPFLAGS'
6622 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6623 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6624 cross_compiling=$ac_cv_prog_cc_cross
6630 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6632 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6633 for ac_func in isinf
6635 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6636 echo "configure:6637: checking for $ac_func" >&5
6637 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6638 echo $ac_n "(cached) $ac_c" 1>&6
6639 else
6640 cat > conftest.$ac_ext <<EOF
6641 #line 6642 "configure"
6642 #include "confdefs.h"
6643 /* System header to define __stub macros and hopefully few prototypes,
6644 which can conflict with char $ac_func(); below. */
6645 #include <assert.h>
6646 /* Override any gcc2 internal prototype to avoid an error. */
6647 /* We use char because int might match the return type of a gcc2
6648 builtin and then its argument prototype would still apply. */
6649 char $ac_func();
6651 int main() {
6653 /* The GNU C library defines this for functions which it implements
6654 to always fail with ENOSYS. Some functions are actually named
6655 something starting with __ and the normal name is an alias. */
6656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6657 choke me
6658 #else
6659 $ac_func();
6660 #endif
6662 ; return 0; }
6664 if { (eval echo configure:6665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6665 rm -rf conftest*
6666 eval "ac_cv_func_$ac_func=yes"
6667 else
6668 echo "configure: failed program was:" >&5
6669 cat conftest.$ac_ext >&5
6670 rm -rf conftest*
6671 eval "ac_cv_func_$ac_func=no"
6673 rm -f conftest*
6676 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6677 echo "$ac_t""yes" 1>&6
6678 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6679 cat >> confdefs.h <<EOF
6680 #define $ac_tr_func 1
6683 else
6684 echo "$ac_t""no" 1>&6
6686 done
6688 else
6690 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6691 echo "configure:6692: checking for _isinf declaration" >&5
6692 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6693 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6694 echo $ac_n "(cached) $ac_c" 1>&6
6695 else
6698 ac_ext=C
6699 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6700 ac_cpp='$CXXCPP $CPPFLAGS'
6701 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6702 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6703 cross_compiling=$ac_cv_prog_cxx_cross
6705 cat > conftest.$ac_ext <<EOF
6706 #line 6707 "configure"
6707 #include "confdefs.h"
6708 #include <math.h>
6709 #ifdef HAVE_IEEEFP_H
6710 #include <ieeefp.h>
6711 #endif
6713 int main() {
6714 _isinf(0);
6715 ; return 0; }
6717 if { (eval echo configure:6718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6718 rm -rf conftest*
6719 glibcpp_cv_func__isinf_use=yes
6720 else
6721 echo "configure: failed program was:" >&5
6722 cat conftest.$ac_ext >&5
6723 rm -rf conftest*
6724 glibcpp_cv_func__isinf_use=no
6726 rm -f conftest*
6727 ac_ext=c
6728 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6729 ac_cpp='$CPP $CPPFLAGS'
6730 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6731 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6732 cross_compiling=$ac_cv_prog_cc_cross
6738 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6740 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6741 for ac_func in _isinf
6743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6744 echo "configure:6745: checking for $ac_func" >&5
6745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6746 echo $ac_n "(cached) $ac_c" 1>&6
6747 else
6748 cat > conftest.$ac_ext <<EOF
6749 #line 6750 "configure"
6750 #include "confdefs.h"
6751 /* System header to define __stub macros and hopefully few prototypes,
6752 which can conflict with char $ac_func(); below. */
6753 #include <assert.h>
6754 /* Override any gcc2 internal prototype to avoid an error. */
6755 /* We use char because int might match the return type of a gcc2
6756 builtin and then its argument prototype would still apply. */
6757 char $ac_func();
6759 int main() {
6761 /* The GNU C library defines this for functions which it implements
6762 to always fail with ENOSYS. Some functions are actually named
6763 something starting with __ and the normal name is an alias. */
6764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6765 choke me
6766 #else
6767 $ac_func();
6768 #endif
6770 ; return 0; }
6772 if { (eval echo configure:6773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6773 rm -rf conftest*
6774 eval "ac_cv_func_$ac_func=yes"
6775 else
6776 echo "configure: failed program was:" >&5
6777 cat conftest.$ac_ext >&5
6778 rm -rf conftest*
6779 eval "ac_cv_func_$ac_func=no"
6781 rm -f conftest*
6784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6785 echo "$ac_t""yes" 1>&6
6786 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6787 cat >> confdefs.h <<EOF
6788 #define $ac_tr_func 1
6791 else
6792 echo "$ac_t""no" 1>&6
6794 done
6801 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6802 echo "configure:6803: checking for isnan declaration" >&5
6803 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6804 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6805 echo $ac_n "(cached) $ac_c" 1>&6
6806 else
6809 ac_ext=C
6810 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6811 ac_cpp='$CXXCPP $CPPFLAGS'
6812 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6813 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6814 cross_compiling=$ac_cv_prog_cxx_cross
6816 cat > conftest.$ac_ext <<EOF
6817 #line 6818 "configure"
6818 #include "confdefs.h"
6819 #include <math.h>
6820 #ifdef HAVE_IEEEFP_H
6821 #include <ieeefp.h>
6822 #endif
6824 int main() {
6825 isnan(0);
6826 ; return 0; }
6828 if { (eval echo configure:6829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6829 rm -rf conftest*
6830 glibcpp_cv_func_isnan_use=yes
6831 else
6832 echo "configure: failed program was:" >&5
6833 cat conftest.$ac_ext >&5
6834 rm -rf conftest*
6835 glibcpp_cv_func_isnan_use=no
6837 rm -f conftest*
6838 ac_ext=c
6839 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6840 ac_cpp='$CPP $CPPFLAGS'
6841 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6842 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6843 cross_compiling=$ac_cv_prog_cc_cross
6849 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6851 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6852 for ac_func in isnan
6854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6855 echo "configure:6856: checking for $ac_func" >&5
6856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6857 echo $ac_n "(cached) $ac_c" 1>&6
6858 else
6859 cat > conftest.$ac_ext <<EOF
6860 #line 6861 "configure"
6861 #include "confdefs.h"
6862 /* System header to define __stub macros and hopefully few prototypes,
6863 which can conflict with char $ac_func(); below. */
6864 #include <assert.h>
6865 /* Override any gcc2 internal prototype to avoid an error. */
6866 /* We use char because int might match the return type of a gcc2
6867 builtin and then its argument prototype would still apply. */
6868 char $ac_func();
6870 int main() {
6872 /* The GNU C library defines this for functions which it implements
6873 to always fail with ENOSYS. Some functions are actually named
6874 something starting with __ and the normal name is an alias. */
6875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6876 choke me
6877 #else
6878 $ac_func();
6879 #endif
6881 ; return 0; }
6883 if { (eval echo configure:6884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6884 rm -rf conftest*
6885 eval "ac_cv_func_$ac_func=yes"
6886 else
6887 echo "configure: failed program was:" >&5
6888 cat conftest.$ac_ext >&5
6889 rm -rf conftest*
6890 eval "ac_cv_func_$ac_func=no"
6892 rm -f conftest*
6895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6896 echo "$ac_t""yes" 1>&6
6897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6898 cat >> confdefs.h <<EOF
6899 #define $ac_tr_func 1
6902 else
6903 echo "$ac_t""no" 1>&6
6905 done
6907 else
6909 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6910 echo "configure:6911: checking for _isnan declaration" >&5
6911 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6912 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6913 echo $ac_n "(cached) $ac_c" 1>&6
6914 else
6917 ac_ext=C
6918 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6919 ac_cpp='$CXXCPP $CPPFLAGS'
6920 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6921 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6922 cross_compiling=$ac_cv_prog_cxx_cross
6924 cat > conftest.$ac_ext <<EOF
6925 #line 6926 "configure"
6926 #include "confdefs.h"
6927 #include <math.h>
6928 #ifdef HAVE_IEEEFP_H
6929 #include <ieeefp.h>
6930 #endif
6932 int main() {
6933 _isnan(0);
6934 ; return 0; }
6936 if { (eval echo configure:6937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6937 rm -rf conftest*
6938 glibcpp_cv_func__isnan_use=yes
6939 else
6940 echo "configure: failed program was:" >&5
6941 cat conftest.$ac_ext >&5
6942 rm -rf conftest*
6943 glibcpp_cv_func__isnan_use=no
6945 rm -f conftest*
6946 ac_ext=c
6947 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6948 ac_cpp='$CPP $CPPFLAGS'
6949 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6950 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6951 cross_compiling=$ac_cv_prog_cc_cross
6957 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6959 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6960 for ac_func in _isnan
6962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6963 echo "configure:6964: checking for $ac_func" >&5
6964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6965 echo $ac_n "(cached) $ac_c" 1>&6
6966 else
6967 cat > conftest.$ac_ext <<EOF
6968 #line 6969 "configure"
6969 #include "confdefs.h"
6970 /* System header to define __stub macros and hopefully few prototypes,
6971 which can conflict with char $ac_func(); below. */
6972 #include <assert.h>
6973 /* Override any gcc2 internal prototype to avoid an error. */
6974 /* We use char because int might match the return type of a gcc2
6975 builtin and then its argument prototype would still apply. */
6976 char $ac_func();
6978 int main() {
6980 /* The GNU C library defines this for functions which it implements
6981 to always fail with ENOSYS. Some functions are actually named
6982 something starting with __ and the normal name is an alias. */
6983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6984 choke me
6985 #else
6986 $ac_func();
6987 #endif
6989 ; return 0; }
6991 if { (eval echo configure:6992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6992 rm -rf conftest*
6993 eval "ac_cv_func_$ac_func=yes"
6994 else
6995 echo "configure: failed program was:" >&5
6996 cat conftest.$ac_ext >&5
6997 rm -rf conftest*
6998 eval "ac_cv_func_$ac_func=no"
7000 rm -f conftest*
7003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7004 echo "$ac_t""yes" 1>&6
7005 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7006 cat >> confdefs.h <<EOF
7007 #define $ac_tr_func 1
7010 else
7011 echo "$ac_t""no" 1>&6
7013 done
7020 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
7021 echo "configure:7022: checking for finite declaration" >&5
7022 if test x${glibcpp_cv_func_finite_use+set} != xset; then
7023 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
7024 echo $ac_n "(cached) $ac_c" 1>&6
7025 else
7028 ac_ext=C
7029 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7030 ac_cpp='$CXXCPP $CPPFLAGS'
7031 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7032 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7033 cross_compiling=$ac_cv_prog_cxx_cross
7035 cat > conftest.$ac_ext <<EOF
7036 #line 7037 "configure"
7037 #include "confdefs.h"
7038 #include <math.h>
7039 #ifdef HAVE_IEEEFP_H
7040 #include <ieeefp.h>
7041 #endif
7043 int main() {
7044 finite(0);
7045 ; return 0; }
7047 if { (eval echo configure:7048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7048 rm -rf conftest*
7049 glibcpp_cv_func_finite_use=yes
7050 else
7051 echo "configure: failed program was:" >&5
7052 cat conftest.$ac_ext >&5
7053 rm -rf conftest*
7054 glibcpp_cv_func_finite_use=no
7056 rm -f conftest*
7057 ac_ext=c
7058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7059 ac_cpp='$CPP $CPPFLAGS'
7060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7062 cross_compiling=$ac_cv_prog_cc_cross
7068 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
7070 if test x$glibcpp_cv_func_finite_use = x"yes"; then
7071 for ac_func in finite
7073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7074 echo "configure:7075: checking for $ac_func" >&5
7075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7076 echo $ac_n "(cached) $ac_c" 1>&6
7077 else
7078 cat > conftest.$ac_ext <<EOF
7079 #line 7080 "configure"
7080 #include "confdefs.h"
7081 /* System header to define __stub macros and hopefully few prototypes,
7082 which can conflict with char $ac_func(); below. */
7083 #include <assert.h>
7084 /* Override any gcc2 internal prototype to avoid an error. */
7085 /* We use char because int might match the return type of a gcc2
7086 builtin and then its argument prototype would still apply. */
7087 char $ac_func();
7089 int main() {
7091 /* The GNU C library defines this for functions which it implements
7092 to always fail with ENOSYS. Some functions are actually named
7093 something starting with __ and the normal name is an alias. */
7094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7095 choke me
7096 #else
7097 $ac_func();
7098 #endif
7100 ; return 0; }
7102 if { (eval echo configure:7103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7103 rm -rf conftest*
7104 eval "ac_cv_func_$ac_func=yes"
7105 else
7106 echo "configure: failed program was:" >&5
7107 cat conftest.$ac_ext >&5
7108 rm -rf conftest*
7109 eval "ac_cv_func_$ac_func=no"
7111 rm -f conftest*
7114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7115 echo "$ac_t""yes" 1>&6
7116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7117 cat >> confdefs.h <<EOF
7118 #define $ac_tr_func 1
7121 else
7122 echo "$ac_t""no" 1>&6
7124 done
7126 else
7128 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
7129 echo "configure:7130: checking for _finite declaration" >&5
7130 if test x${glibcpp_cv_func__finite_use+set} != xset; then
7131 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
7132 echo $ac_n "(cached) $ac_c" 1>&6
7133 else
7136 ac_ext=C
7137 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7138 ac_cpp='$CXXCPP $CPPFLAGS'
7139 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7140 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7141 cross_compiling=$ac_cv_prog_cxx_cross
7143 cat > conftest.$ac_ext <<EOF
7144 #line 7145 "configure"
7145 #include "confdefs.h"
7146 #include <math.h>
7147 #ifdef HAVE_IEEEFP_H
7148 #include <ieeefp.h>
7149 #endif
7151 int main() {
7152 _finite(0);
7153 ; return 0; }
7155 if { (eval echo configure:7156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7156 rm -rf conftest*
7157 glibcpp_cv_func__finite_use=yes
7158 else
7159 echo "configure: failed program was:" >&5
7160 cat conftest.$ac_ext >&5
7161 rm -rf conftest*
7162 glibcpp_cv_func__finite_use=no
7164 rm -f conftest*
7165 ac_ext=c
7166 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7167 ac_cpp='$CPP $CPPFLAGS'
7168 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7169 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7170 cross_compiling=$ac_cv_prog_cc_cross
7176 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
7178 if test x$glibcpp_cv_func__finite_use = x"yes"; then
7179 for ac_func in _finite
7181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7182 echo "configure:7183: checking for $ac_func" >&5
7183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7184 echo $ac_n "(cached) $ac_c" 1>&6
7185 else
7186 cat > conftest.$ac_ext <<EOF
7187 #line 7188 "configure"
7188 #include "confdefs.h"
7189 /* System header to define __stub macros and hopefully few prototypes,
7190 which can conflict with char $ac_func(); below. */
7191 #include <assert.h>
7192 /* Override any gcc2 internal prototype to avoid an error. */
7193 /* We use char because int might match the return type of a gcc2
7194 builtin and then its argument prototype would still apply. */
7195 char $ac_func();
7197 int main() {
7199 /* The GNU C library defines this for functions which it implements
7200 to always fail with ENOSYS. Some functions are actually named
7201 something starting with __ and the normal name is an alias. */
7202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7203 choke me
7204 #else
7205 $ac_func();
7206 #endif
7208 ; return 0; }
7210 if { (eval echo configure:7211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7211 rm -rf conftest*
7212 eval "ac_cv_func_$ac_func=yes"
7213 else
7214 echo "configure: failed program was:" >&5
7215 cat conftest.$ac_ext >&5
7216 rm -rf conftest*
7217 eval "ac_cv_func_$ac_func=no"
7219 rm -f conftest*
7222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7223 echo "$ac_t""yes" 1>&6
7224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7225 cat >> confdefs.h <<EOF
7226 #define $ac_tr_func 1
7229 else
7230 echo "$ac_t""no" 1>&6
7232 done
7239 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7240 echo "configure:7241: checking for copysign declaration" >&5
7241 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7242 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7243 echo $ac_n "(cached) $ac_c" 1>&6
7244 else
7247 ac_ext=C
7248 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7249 ac_cpp='$CXXCPP $CPPFLAGS'
7250 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7251 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7252 cross_compiling=$ac_cv_prog_cxx_cross
7254 cat > conftest.$ac_ext <<EOF
7255 #line 7256 "configure"
7256 #include "confdefs.h"
7257 #include <math.h>
7258 int main() {
7259 copysign(0, 0);
7260 ; return 0; }
7262 if { (eval echo configure:7263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7263 rm -rf conftest*
7264 glibcpp_cv_func_copysign_use=yes
7265 else
7266 echo "configure: failed program was:" >&5
7267 cat conftest.$ac_ext >&5
7268 rm -rf conftest*
7269 glibcpp_cv_func_copysign_use=no
7271 rm -f conftest*
7272 ac_ext=c
7273 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7274 ac_cpp='$CPP $CPPFLAGS'
7275 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7276 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7277 cross_compiling=$ac_cv_prog_cc_cross
7283 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7285 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7286 for ac_func in copysign
7288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7289 echo "configure:7290: checking for $ac_func" >&5
7290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7291 echo $ac_n "(cached) $ac_c" 1>&6
7292 else
7293 cat > conftest.$ac_ext <<EOF
7294 #line 7295 "configure"
7295 #include "confdefs.h"
7296 /* System header to define __stub macros and hopefully few prototypes,
7297 which can conflict with char $ac_func(); below. */
7298 #include <assert.h>
7299 /* Override any gcc2 internal prototype to avoid an error. */
7300 /* We use char because int might match the return type of a gcc2
7301 builtin and then its argument prototype would still apply. */
7302 char $ac_func();
7304 int main() {
7306 /* The GNU C library defines this for functions which it implements
7307 to always fail with ENOSYS. Some functions are actually named
7308 something starting with __ and the normal name is an alias. */
7309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7310 choke me
7311 #else
7312 $ac_func();
7313 #endif
7315 ; return 0; }
7317 if { (eval echo configure:7318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7318 rm -rf conftest*
7319 eval "ac_cv_func_$ac_func=yes"
7320 else
7321 echo "configure: failed program was:" >&5
7322 cat conftest.$ac_ext >&5
7323 rm -rf conftest*
7324 eval "ac_cv_func_$ac_func=no"
7326 rm -f conftest*
7329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7330 echo "$ac_t""yes" 1>&6
7331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7332 cat >> confdefs.h <<EOF
7333 #define $ac_tr_func 1
7336 else
7337 echo "$ac_t""no" 1>&6
7339 done
7341 else
7343 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7344 echo "configure:7345: checking for _copysign declaration" >&5
7345 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7346 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7347 echo $ac_n "(cached) $ac_c" 1>&6
7348 else
7351 ac_ext=C
7352 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7353 ac_cpp='$CXXCPP $CPPFLAGS'
7354 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7355 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7356 cross_compiling=$ac_cv_prog_cxx_cross
7358 cat > conftest.$ac_ext <<EOF
7359 #line 7360 "configure"
7360 #include "confdefs.h"
7361 #include <math.h>
7362 int main() {
7363 _copysign(0, 0);
7364 ; return 0; }
7366 if { (eval echo configure:7367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7367 rm -rf conftest*
7368 glibcpp_cv_func__copysign_use=yes
7369 else
7370 echo "configure: failed program was:" >&5
7371 cat conftest.$ac_ext >&5
7372 rm -rf conftest*
7373 glibcpp_cv_func__copysign_use=no
7375 rm -f conftest*
7376 ac_ext=c
7377 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7378 ac_cpp='$CPP $CPPFLAGS'
7379 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7380 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7381 cross_compiling=$ac_cv_prog_cc_cross
7387 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7389 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7390 for ac_func in _copysign
7392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7393 echo "configure:7394: checking for $ac_func" >&5
7394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7395 echo $ac_n "(cached) $ac_c" 1>&6
7396 else
7397 cat > conftest.$ac_ext <<EOF
7398 #line 7399 "configure"
7399 #include "confdefs.h"
7400 /* System header to define __stub macros and hopefully few prototypes,
7401 which can conflict with char $ac_func(); below. */
7402 #include <assert.h>
7403 /* Override any gcc2 internal prototype to avoid an error. */
7404 /* We use char because int might match the return type of a gcc2
7405 builtin and then its argument prototype would still apply. */
7406 char $ac_func();
7408 int main() {
7410 /* The GNU C library defines this for functions which it implements
7411 to always fail with ENOSYS. Some functions are actually named
7412 something starting with __ and the normal name is an alias. */
7413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7414 choke me
7415 #else
7416 $ac_func();
7417 #endif
7419 ; return 0; }
7421 if { (eval echo configure:7422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7422 rm -rf conftest*
7423 eval "ac_cv_func_$ac_func=yes"
7424 else
7425 echo "configure: failed program was:" >&5
7426 cat conftest.$ac_ext >&5
7427 rm -rf conftest*
7428 eval "ac_cv_func_$ac_func=no"
7430 rm -f conftest*
7433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7434 echo "$ac_t""yes" 1>&6
7435 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7436 cat >> confdefs.h <<EOF
7437 #define $ac_tr_func 1
7440 else
7441 echo "$ac_t""no" 1>&6
7443 done
7450 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7451 echo "configure:7452: checking for sincos declaration" >&5
7452 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7453 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7454 echo $ac_n "(cached) $ac_c" 1>&6
7455 else
7458 ac_ext=C
7459 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7460 ac_cpp='$CXXCPP $CPPFLAGS'
7461 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7462 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7463 cross_compiling=$ac_cv_prog_cxx_cross
7465 cat > conftest.$ac_ext <<EOF
7466 #line 7467 "configure"
7467 #include "confdefs.h"
7468 #include <math.h>
7469 int main() {
7470 sincos(0, 0, 0);
7471 ; return 0; }
7473 if { (eval echo configure:7474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7474 rm -rf conftest*
7475 glibcpp_cv_func_sincos_use=yes
7476 else
7477 echo "configure: failed program was:" >&5
7478 cat conftest.$ac_ext >&5
7479 rm -rf conftest*
7480 glibcpp_cv_func_sincos_use=no
7482 rm -f conftest*
7483 ac_ext=c
7484 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7485 ac_cpp='$CPP $CPPFLAGS'
7486 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7487 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7488 cross_compiling=$ac_cv_prog_cc_cross
7494 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7496 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7497 for ac_func in sincos
7499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7500 echo "configure:7501: checking for $ac_func" >&5
7501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7502 echo $ac_n "(cached) $ac_c" 1>&6
7503 else
7504 cat > conftest.$ac_ext <<EOF
7505 #line 7506 "configure"
7506 #include "confdefs.h"
7507 /* System header to define __stub macros and hopefully few prototypes,
7508 which can conflict with char $ac_func(); below. */
7509 #include <assert.h>
7510 /* Override any gcc2 internal prototype to avoid an error. */
7511 /* We use char because int might match the return type of a gcc2
7512 builtin and then its argument prototype would still apply. */
7513 char $ac_func();
7515 int main() {
7517 /* The GNU C library defines this for functions which it implements
7518 to always fail with ENOSYS. Some functions are actually named
7519 something starting with __ and the normal name is an alias. */
7520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7521 choke me
7522 #else
7523 $ac_func();
7524 #endif
7526 ; return 0; }
7528 if { (eval echo configure:7529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7529 rm -rf conftest*
7530 eval "ac_cv_func_$ac_func=yes"
7531 else
7532 echo "configure: failed program was:" >&5
7533 cat conftest.$ac_ext >&5
7534 rm -rf conftest*
7535 eval "ac_cv_func_$ac_func=no"
7537 rm -f conftest*
7540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7541 echo "$ac_t""yes" 1>&6
7542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7543 cat >> confdefs.h <<EOF
7544 #define $ac_tr_func 1
7547 else
7548 echo "$ac_t""no" 1>&6
7550 done
7552 else
7554 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7555 echo "configure:7556: checking for _sincos declaration" >&5
7556 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7557 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7558 echo $ac_n "(cached) $ac_c" 1>&6
7559 else
7562 ac_ext=C
7563 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7564 ac_cpp='$CXXCPP $CPPFLAGS'
7565 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7566 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7567 cross_compiling=$ac_cv_prog_cxx_cross
7569 cat > conftest.$ac_ext <<EOF
7570 #line 7571 "configure"
7571 #include "confdefs.h"
7572 #include <math.h>
7573 int main() {
7574 _sincos(0, 0, 0);
7575 ; return 0; }
7577 if { (eval echo configure:7578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7578 rm -rf conftest*
7579 glibcpp_cv_func__sincos_use=yes
7580 else
7581 echo "configure: failed program was:" >&5
7582 cat conftest.$ac_ext >&5
7583 rm -rf conftest*
7584 glibcpp_cv_func__sincos_use=no
7586 rm -f conftest*
7587 ac_ext=c
7588 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7589 ac_cpp='$CPP $CPPFLAGS'
7590 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7591 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7592 cross_compiling=$ac_cv_prog_cc_cross
7598 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7600 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7601 for ac_func in _sincos
7603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7604 echo "configure:7605: checking for $ac_func" >&5
7605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7606 echo $ac_n "(cached) $ac_c" 1>&6
7607 else
7608 cat > conftest.$ac_ext <<EOF
7609 #line 7610 "configure"
7610 #include "confdefs.h"
7611 /* System header to define __stub macros and hopefully few prototypes,
7612 which can conflict with char $ac_func(); below. */
7613 #include <assert.h>
7614 /* Override any gcc2 internal prototype to avoid an error. */
7615 /* We use char because int might match the return type of a gcc2
7616 builtin and then its argument prototype would still apply. */
7617 char $ac_func();
7619 int main() {
7621 /* The GNU C library defines this for functions which it implements
7622 to always fail with ENOSYS. Some functions are actually named
7623 something starting with __ and the normal name is an alias. */
7624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7625 choke me
7626 #else
7627 $ac_func();
7628 #endif
7630 ; return 0; }
7632 if { (eval echo configure:7633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7633 rm -rf conftest*
7634 eval "ac_cv_func_$ac_func=yes"
7635 else
7636 echo "configure: failed program was:" >&5
7637 cat conftest.$ac_ext >&5
7638 rm -rf conftest*
7639 eval "ac_cv_func_$ac_func=no"
7641 rm -f conftest*
7644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7645 echo "$ac_t""yes" 1>&6
7646 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7647 cat >> confdefs.h <<EOF
7648 #define $ac_tr_func 1
7651 else
7652 echo "$ac_t""no" 1>&6
7654 done
7661 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7662 echo "configure:7663: checking for fpclass declaration" >&5
7663 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7664 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7665 echo $ac_n "(cached) $ac_c" 1>&6
7666 else
7669 ac_ext=C
7670 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7671 ac_cpp='$CXXCPP $CPPFLAGS'
7672 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7673 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7674 cross_compiling=$ac_cv_prog_cxx_cross
7676 cat > conftest.$ac_ext <<EOF
7677 #line 7678 "configure"
7678 #include "confdefs.h"
7679 #include <math.h>
7680 #ifdef HAVE_IEEEFP_H
7681 #include <ieeefp.h>
7682 #endif
7684 int main() {
7685 fpclass(0);
7686 ; return 0; }
7688 if { (eval echo configure:7689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7689 rm -rf conftest*
7690 glibcpp_cv_func_fpclass_use=yes
7691 else
7692 echo "configure: failed program was:" >&5
7693 cat conftest.$ac_ext >&5
7694 rm -rf conftest*
7695 glibcpp_cv_func_fpclass_use=no
7697 rm -f conftest*
7698 ac_ext=c
7699 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7700 ac_cpp='$CPP $CPPFLAGS'
7701 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7702 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7703 cross_compiling=$ac_cv_prog_cc_cross
7709 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7711 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7712 for ac_func in fpclass
7714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7715 echo "configure:7716: checking for $ac_func" >&5
7716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7717 echo $ac_n "(cached) $ac_c" 1>&6
7718 else
7719 cat > conftest.$ac_ext <<EOF
7720 #line 7721 "configure"
7721 #include "confdefs.h"
7722 /* System header to define __stub macros and hopefully few prototypes,
7723 which can conflict with char $ac_func(); below. */
7724 #include <assert.h>
7725 /* Override any gcc2 internal prototype to avoid an error. */
7726 /* We use char because int might match the return type of a gcc2
7727 builtin and then its argument prototype would still apply. */
7728 char $ac_func();
7730 int main() {
7732 /* The GNU C library defines this for functions which it implements
7733 to always fail with ENOSYS. Some functions are actually named
7734 something starting with __ and the normal name is an alias. */
7735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7736 choke me
7737 #else
7738 $ac_func();
7739 #endif
7741 ; return 0; }
7743 if { (eval echo configure:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7744 rm -rf conftest*
7745 eval "ac_cv_func_$ac_func=yes"
7746 else
7747 echo "configure: failed program was:" >&5
7748 cat conftest.$ac_ext >&5
7749 rm -rf conftest*
7750 eval "ac_cv_func_$ac_func=no"
7752 rm -f conftest*
7755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7756 echo "$ac_t""yes" 1>&6
7757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7758 cat >> confdefs.h <<EOF
7759 #define $ac_tr_func 1
7762 else
7763 echo "$ac_t""no" 1>&6
7765 done
7767 else
7769 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7770 echo "configure:7771: checking for _fpclass declaration" >&5
7771 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7772 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7773 echo $ac_n "(cached) $ac_c" 1>&6
7774 else
7777 ac_ext=C
7778 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7779 ac_cpp='$CXXCPP $CPPFLAGS'
7780 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7781 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7782 cross_compiling=$ac_cv_prog_cxx_cross
7784 cat > conftest.$ac_ext <<EOF
7785 #line 7786 "configure"
7786 #include "confdefs.h"
7787 #include <math.h>
7788 #ifdef HAVE_IEEEFP_H
7789 #include <ieeefp.h>
7790 #endif
7792 int main() {
7793 _fpclass(0);
7794 ; return 0; }
7796 if { (eval echo configure:7797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7797 rm -rf conftest*
7798 glibcpp_cv_func__fpclass_use=yes
7799 else
7800 echo "configure: failed program was:" >&5
7801 cat conftest.$ac_ext >&5
7802 rm -rf conftest*
7803 glibcpp_cv_func__fpclass_use=no
7805 rm -f conftest*
7806 ac_ext=c
7807 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7808 ac_cpp='$CPP $CPPFLAGS'
7809 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7810 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7811 cross_compiling=$ac_cv_prog_cc_cross
7817 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7819 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7820 for ac_func in _fpclass
7822 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7823 echo "configure:7824: checking for $ac_func" >&5
7824 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7825 echo $ac_n "(cached) $ac_c" 1>&6
7826 else
7827 cat > conftest.$ac_ext <<EOF
7828 #line 7829 "configure"
7829 #include "confdefs.h"
7830 /* System header to define __stub macros and hopefully few prototypes,
7831 which can conflict with char $ac_func(); below. */
7832 #include <assert.h>
7833 /* Override any gcc2 internal prototype to avoid an error. */
7834 /* We use char because int might match the return type of a gcc2
7835 builtin and then its argument prototype would still apply. */
7836 char $ac_func();
7838 int main() {
7840 /* The GNU C library defines this for functions which it implements
7841 to always fail with ENOSYS. Some functions are actually named
7842 something starting with __ and the normal name is an alias. */
7843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7844 choke me
7845 #else
7846 $ac_func();
7847 #endif
7849 ; return 0; }
7851 if { (eval echo configure:7852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7852 rm -rf conftest*
7853 eval "ac_cv_func_$ac_func=yes"
7854 else
7855 echo "configure: failed program was:" >&5
7856 cat conftest.$ac_ext >&5
7857 rm -rf conftest*
7858 eval "ac_cv_func_$ac_func=no"
7860 rm -f conftest*
7863 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7864 echo "$ac_t""yes" 1>&6
7865 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7866 cat >> confdefs.h <<EOF
7867 #define $ac_tr_func 1
7870 else
7871 echo "$ac_t""no" 1>&6
7873 done
7880 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7881 echo "configure:7882: checking for qfpclass declaration" >&5
7882 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7883 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7884 echo $ac_n "(cached) $ac_c" 1>&6
7885 else
7888 ac_ext=C
7889 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7890 ac_cpp='$CXXCPP $CPPFLAGS'
7891 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7892 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7893 cross_compiling=$ac_cv_prog_cxx_cross
7895 cat > conftest.$ac_ext <<EOF
7896 #line 7897 "configure"
7897 #include "confdefs.h"
7898 #include <math.h>
7899 #ifdef HAVE_IEEEFP_H
7900 #include <ieeefp.h>
7901 #endif
7903 int main() {
7904 qfpclass(0);
7905 ; return 0; }
7907 if { (eval echo configure:7908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7908 rm -rf conftest*
7909 glibcpp_cv_func_qfpclass_use=yes
7910 else
7911 echo "configure: failed program was:" >&5
7912 cat conftest.$ac_ext >&5
7913 rm -rf conftest*
7914 glibcpp_cv_func_qfpclass_use=no
7916 rm -f conftest*
7917 ac_ext=c
7918 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7919 ac_cpp='$CPP $CPPFLAGS'
7920 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7921 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7922 cross_compiling=$ac_cv_prog_cc_cross
7928 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7930 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7931 for ac_func in qfpclass
7933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7934 echo "configure:7935: checking for $ac_func" >&5
7935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7936 echo $ac_n "(cached) $ac_c" 1>&6
7937 else
7938 cat > conftest.$ac_ext <<EOF
7939 #line 7940 "configure"
7940 #include "confdefs.h"
7941 /* System header to define __stub macros and hopefully few prototypes,
7942 which can conflict with char $ac_func(); below. */
7943 #include <assert.h>
7944 /* Override any gcc2 internal prototype to avoid an error. */
7945 /* We use char because int might match the return type of a gcc2
7946 builtin and then its argument prototype would still apply. */
7947 char $ac_func();
7949 int main() {
7951 /* The GNU C library defines this for functions which it implements
7952 to always fail with ENOSYS. Some functions are actually named
7953 something starting with __ and the normal name is an alias. */
7954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7955 choke me
7956 #else
7957 $ac_func();
7958 #endif
7960 ; return 0; }
7962 if { (eval echo configure:7963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7963 rm -rf conftest*
7964 eval "ac_cv_func_$ac_func=yes"
7965 else
7966 echo "configure: failed program was:" >&5
7967 cat conftest.$ac_ext >&5
7968 rm -rf conftest*
7969 eval "ac_cv_func_$ac_func=no"
7971 rm -f conftest*
7974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7975 echo "$ac_t""yes" 1>&6
7976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7977 cat >> confdefs.h <<EOF
7978 #define $ac_tr_func 1
7981 else
7982 echo "$ac_t""no" 1>&6
7984 done
7986 else
7988 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7989 echo "configure:7990: checking for _qfpclass declaration" >&5
7990 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7991 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7992 echo $ac_n "(cached) $ac_c" 1>&6
7993 else
7996 ac_ext=C
7997 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7998 ac_cpp='$CXXCPP $CPPFLAGS'
7999 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8000 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8001 cross_compiling=$ac_cv_prog_cxx_cross
8003 cat > conftest.$ac_ext <<EOF
8004 #line 8005 "configure"
8005 #include "confdefs.h"
8006 #include <math.h>
8007 #ifdef HAVE_IEEEFP_H
8008 #include <ieeefp.h>
8009 #endif
8011 int main() {
8012 _qfpclass(0);
8013 ; return 0; }
8015 if { (eval echo configure:8016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8016 rm -rf conftest*
8017 glibcpp_cv_func__qfpclass_use=yes
8018 else
8019 echo "configure: failed program was:" >&5
8020 cat conftest.$ac_ext >&5
8021 rm -rf conftest*
8022 glibcpp_cv_func__qfpclass_use=no
8024 rm -f conftest*
8025 ac_ext=c
8026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8027 ac_cpp='$CPP $CPPFLAGS'
8028 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8029 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8030 cross_compiling=$ac_cv_prog_cc_cross
8036 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
8038 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
8039 for ac_func in _qfpclass
8041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8042 echo "configure:8043: checking for $ac_func" >&5
8043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8044 echo $ac_n "(cached) $ac_c" 1>&6
8045 else
8046 cat > conftest.$ac_ext <<EOF
8047 #line 8048 "configure"
8048 #include "confdefs.h"
8049 /* System header to define __stub macros and hopefully few prototypes,
8050 which can conflict with char $ac_func(); below. */
8051 #include <assert.h>
8052 /* Override any gcc2 internal prototype to avoid an error. */
8053 /* We use char because int might match the return type of a gcc2
8054 builtin and then its argument prototype would still apply. */
8055 char $ac_func();
8057 int main() {
8059 /* The GNU C library defines this for functions which it implements
8060 to always fail with ENOSYS. Some functions are actually named
8061 something starting with __ and the normal name is an alias. */
8062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8063 choke me
8064 #else
8065 $ac_func();
8066 #endif
8068 ; return 0; }
8070 if { (eval echo configure:8071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8071 rm -rf conftest*
8072 eval "ac_cv_func_$ac_func=yes"
8073 else
8074 echo "configure: failed program was:" >&5
8075 cat conftest.$ac_ext >&5
8076 rm -rf conftest*
8077 eval "ac_cv_func_$ac_func=no"
8079 rm -f conftest*
8082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8083 echo "$ac_t""yes" 1>&6
8084 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8085 cat >> confdefs.h <<EOF
8086 #define $ac_tr_func 1
8089 else
8090 echo "$ac_t""no" 1>&6
8092 done
8099 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
8100 echo "configure:8101: checking for hypot declaration" >&5
8101 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
8102 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
8103 echo $ac_n "(cached) $ac_c" 1>&6
8104 else
8107 ac_ext=C
8108 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8109 ac_cpp='$CXXCPP $CPPFLAGS'
8110 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8111 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8112 cross_compiling=$ac_cv_prog_cxx_cross
8114 cat > conftest.$ac_ext <<EOF
8115 #line 8116 "configure"
8116 #include "confdefs.h"
8117 #include <math.h>
8118 int main() {
8119 hypot(0, 0);
8120 ; return 0; }
8122 if { (eval echo configure:8123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8123 rm -rf conftest*
8124 glibcpp_cv_func_hypot_use=yes
8125 else
8126 echo "configure: failed program was:" >&5
8127 cat conftest.$ac_ext >&5
8128 rm -rf conftest*
8129 glibcpp_cv_func_hypot_use=no
8131 rm -f conftest*
8132 ac_ext=c
8133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8134 ac_cpp='$CPP $CPPFLAGS'
8135 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8136 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8137 cross_compiling=$ac_cv_prog_cc_cross
8143 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
8145 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
8146 for ac_func in hypot
8148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8149 echo "configure:8150: checking for $ac_func" >&5
8150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8151 echo $ac_n "(cached) $ac_c" 1>&6
8152 else
8153 cat > conftest.$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8156 /* System header to define __stub macros and hopefully few prototypes,
8157 which can conflict with char $ac_func(); below. */
8158 #include <assert.h>
8159 /* Override any gcc2 internal prototype to avoid an error. */
8160 /* We use char because int might match the return type of a gcc2
8161 builtin and then its argument prototype would still apply. */
8162 char $ac_func();
8164 int main() {
8166 /* The GNU C library defines this for functions which it implements
8167 to always fail with ENOSYS. Some functions are actually named
8168 something starting with __ and the normal name is an alias. */
8169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8170 choke me
8171 #else
8172 $ac_func();
8173 #endif
8175 ; return 0; }
8177 if { (eval echo configure:8178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8178 rm -rf conftest*
8179 eval "ac_cv_func_$ac_func=yes"
8180 else
8181 echo "configure: failed program was:" >&5
8182 cat conftest.$ac_ext >&5
8183 rm -rf conftest*
8184 eval "ac_cv_func_$ac_func=no"
8186 rm -f conftest*
8189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8190 echo "$ac_t""yes" 1>&6
8191 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8192 cat >> confdefs.h <<EOF
8193 #define $ac_tr_func 1
8196 else
8197 echo "$ac_t""no" 1>&6
8199 done
8201 else
8203 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
8204 echo "configure:8205: checking for _hypot declaration" >&5
8205 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
8206 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
8207 echo $ac_n "(cached) $ac_c" 1>&6
8208 else
8211 ac_ext=C
8212 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8213 ac_cpp='$CXXCPP $CPPFLAGS'
8214 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8215 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8216 cross_compiling=$ac_cv_prog_cxx_cross
8218 cat > conftest.$ac_ext <<EOF
8219 #line 8220 "configure"
8220 #include "confdefs.h"
8221 #include <math.h>
8222 int main() {
8223 _hypot(0, 0);
8224 ; return 0; }
8226 if { (eval echo configure:8227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8227 rm -rf conftest*
8228 glibcpp_cv_func__hypot_use=yes
8229 else
8230 echo "configure: failed program was:" >&5
8231 cat conftest.$ac_ext >&5
8232 rm -rf conftest*
8233 glibcpp_cv_func__hypot_use=no
8235 rm -f conftest*
8236 ac_ext=c
8237 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8238 ac_cpp='$CPP $CPPFLAGS'
8239 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8240 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8241 cross_compiling=$ac_cv_prog_cc_cross
8247 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
8249 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
8250 for ac_func in _hypot
8252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8253 echo "configure:8254: checking for $ac_func" >&5
8254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8255 echo $ac_n "(cached) $ac_c" 1>&6
8256 else
8257 cat > conftest.$ac_ext <<EOF
8258 #line 8259 "configure"
8259 #include "confdefs.h"
8260 /* System header to define __stub macros and hopefully few prototypes,
8261 which can conflict with char $ac_func(); below. */
8262 #include <assert.h>
8263 /* Override any gcc2 internal prototype to avoid an error. */
8264 /* We use char because int might match the return type of a gcc2
8265 builtin and then its argument prototype would still apply. */
8266 char $ac_func();
8268 int main() {
8270 /* The GNU C library defines this for functions which it implements
8271 to always fail with ENOSYS. Some functions are actually named
8272 something starting with __ and the normal name is an alias. */
8273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8274 choke me
8275 #else
8276 $ac_func();
8277 #endif
8279 ; return 0; }
8281 if { (eval echo configure:8282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8282 rm -rf conftest*
8283 eval "ac_cv_func_$ac_func=yes"
8284 else
8285 echo "configure: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8287 rm -rf conftest*
8288 eval "ac_cv_func_$ac_func=no"
8290 rm -f conftest*
8293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8294 echo "$ac_t""yes" 1>&6
8295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8296 cat >> confdefs.h <<EOF
8297 #define $ac_tr_func 1
8300 else
8301 echo "$ac_t""no" 1>&6
8303 done
8310 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
8311 echo "configure:8312: checking for float trig functions" >&5
8312 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
8313 echo $ac_n "(cached) $ac_c" 1>&6
8314 else
8317 ac_ext=C
8318 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8319 ac_cpp='$CXXCPP $CPPFLAGS'
8320 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8321 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8322 cross_compiling=$ac_cv_prog_cxx_cross
8324 cat > conftest.$ac_ext <<EOF
8325 #line 8326 "configure"
8326 #include "confdefs.h"
8327 #include <math.h>
8328 int main() {
8329 `for x in acosf asinf atanf \
8330 cosf sinf tanf \
8331 coshf sinhf tanhf; do echo "$x (0);"; done`
8332 ; return 0; }
8334 if { (eval echo configure:8335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8335 rm -rf conftest*
8336 glibcpp_cv_func_float_trig_use=yes
8337 else
8338 echo "configure: failed program was:" >&5
8339 cat conftest.$ac_ext >&5
8340 rm -rf conftest*
8341 glibcpp_cv_func_float_trig_use=no
8343 rm -f conftest*
8344 ac_ext=c
8345 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8346 ac_cpp='$CPP $CPPFLAGS'
8347 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8348 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8349 cross_compiling=$ac_cv_prog_cc_cross
8353 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
8354 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
8355 for ac_func in acosf asinf atanf \
8356 cosf sinf tanf \
8357 coshf sinhf tanhf
8359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8360 echo "configure:8361: checking for $ac_func" >&5
8361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8362 echo $ac_n "(cached) $ac_c" 1>&6
8363 else
8364 cat > conftest.$ac_ext <<EOF
8365 #line 8366 "configure"
8366 #include "confdefs.h"
8367 /* System header to define __stub macros and hopefully few prototypes,
8368 which can conflict with char $ac_func(); below. */
8369 #include <assert.h>
8370 /* Override any gcc2 internal prototype to avoid an error. */
8371 /* We use char because int might match the return type of a gcc2
8372 builtin and then its argument prototype would still apply. */
8373 char $ac_func();
8375 int main() {
8377 /* The GNU C library defines this for functions which it implements
8378 to always fail with ENOSYS. Some functions are actually named
8379 something starting with __ and the normal name is an alias. */
8380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8381 choke me
8382 #else
8383 $ac_func();
8384 #endif
8386 ; return 0; }
8388 if { (eval echo configure:8389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8389 rm -rf conftest*
8390 eval "ac_cv_func_$ac_func=yes"
8391 else
8392 echo "configure: failed program was:" >&5
8393 cat conftest.$ac_ext >&5
8394 rm -rf conftest*
8395 eval "ac_cv_func_$ac_func=no"
8397 rm -f conftest*
8400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8401 echo "$ac_t""yes" 1>&6
8402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8403 cat >> confdefs.h <<EOF
8404 #define $ac_tr_func 1
8407 else
8408 echo "$ac_t""no" 1>&6
8410 done
8415 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
8416 echo "configure:8417: checking for float round functions" >&5
8417 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
8418 echo $ac_n "(cached) $ac_c" 1>&6
8419 else
8422 ac_ext=C
8423 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8424 ac_cpp='$CXXCPP $CPPFLAGS'
8425 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8426 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8427 cross_compiling=$ac_cv_prog_cxx_cross
8429 cat > conftest.$ac_ext <<EOF
8430 #line 8431 "configure"
8431 #include "confdefs.h"
8432 #include <math.h>
8433 int main() {
8434 `for x in ceilf floorf; do echo "$x (0);"; done`
8435 ; return 0; }
8437 if { (eval echo configure:8438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8438 rm -rf conftest*
8439 glibcpp_cv_func_float_round_use=yes
8440 else
8441 echo "configure: failed program was:" >&5
8442 cat conftest.$ac_ext >&5
8443 rm -rf conftest*
8444 glibcpp_cv_func_float_round_use=no
8446 rm -f conftest*
8447 ac_ext=c
8448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8449 ac_cpp='$CPP $CPPFLAGS'
8450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8452 cross_compiling=$ac_cv_prog_cc_cross
8456 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8457 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8458 for ac_func in ceilf floorf
8460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8461 echo "configure:8462: checking for $ac_func" >&5
8462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8463 echo $ac_n "(cached) $ac_c" 1>&6
8464 else
8465 cat > conftest.$ac_ext <<EOF
8466 #line 8467 "configure"
8467 #include "confdefs.h"
8468 /* System header to define __stub macros and hopefully few prototypes,
8469 which can conflict with char $ac_func(); below. */
8470 #include <assert.h>
8471 /* Override any gcc2 internal prototype to avoid an error. */
8472 /* We use char because int might match the return type of a gcc2
8473 builtin and then its argument prototype would still apply. */
8474 char $ac_func();
8476 int main() {
8478 /* The GNU C library defines this for functions which it implements
8479 to always fail with ENOSYS. Some functions are actually named
8480 something starting with __ and the normal name is an alias. */
8481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8482 choke me
8483 #else
8484 $ac_func();
8485 #endif
8487 ; return 0; }
8489 if { (eval echo configure:8490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8490 rm -rf conftest*
8491 eval "ac_cv_func_$ac_func=yes"
8492 else
8493 echo "configure: failed program was:" >&5
8494 cat conftest.$ac_ext >&5
8495 rm -rf conftest*
8496 eval "ac_cv_func_$ac_func=no"
8498 rm -f conftest*
8501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8502 echo "$ac_t""yes" 1>&6
8503 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8504 cat >> confdefs.h <<EOF
8505 #define $ac_tr_func 1
8508 else
8509 echo "$ac_t""no" 1>&6
8511 done
8517 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8518 echo "configure:8519: checking for isnanf declaration" >&5
8519 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8520 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
8521 echo $ac_n "(cached) $ac_c" 1>&6
8522 else
8525 ac_ext=C
8526 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8527 ac_cpp='$CXXCPP $CPPFLAGS'
8528 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8529 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8530 cross_compiling=$ac_cv_prog_cxx_cross
8532 cat > conftest.$ac_ext <<EOF
8533 #line 8534 "configure"
8534 #include "confdefs.h"
8535 #include <math.h>
8536 #ifdef HAVE_IEEEFP_H
8537 #include <ieeefp.h>
8538 #endif
8540 int main() {
8541 isnanf(0);
8542 ; return 0; }
8544 if { (eval echo configure:8545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8545 rm -rf conftest*
8546 glibcpp_cv_func_isnanf_use=yes
8547 else
8548 echo "configure: failed program was:" >&5
8549 cat conftest.$ac_ext >&5
8550 rm -rf conftest*
8551 glibcpp_cv_func_isnanf_use=no
8553 rm -f conftest*
8554 ac_ext=c
8555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8556 ac_cpp='$CPP $CPPFLAGS'
8557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8558 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8559 cross_compiling=$ac_cv_prog_cc_cross
8565 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8567 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8568 for ac_func in isnanf
8570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8571 echo "configure:8572: checking for $ac_func" >&5
8572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8573 echo $ac_n "(cached) $ac_c" 1>&6
8574 else
8575 cat > conftest.$ac_ext <<EOF
8576 #line 8577 "configure"
8577 #include "confdefs.h"
8578 /* System header to define __stub macros and hopefully few prototypes,
8579 which can conflict with char $ac_func(); below. */
8580 #include <assert.h>
8581 /* Override any gcc2 internal prototype to avoid an error. */
8582 /* We use char because int might match the return type of a gcc2
8583 builtin and then its argument prototype would still apply. */
8584 char $ac_func();
8586 int main() {
8588 /* The GNU C library defines this for functions which it implements
8589 to always fail with ENOSYS. Some functions are actually named
8590 something starting with __ and the normal name is an alias. */
8591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8592 choke me
8593 #else
8594 $ac_func();
8595 #endif
8597 ; return 0; }
8599 if { (eval echo configure:8600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8600 rm -rf conftest*
8601 eval "ac_cv_func_$ac_func=yes"
8602 else
8603 echo "configure: failed program was:" >&5
8604 cat conftest.$ac_ext >&5
8605 rm -rf conftest*
8606 eval "ac_cv_func_$ac_func=no"
8608 rm -f conftest*
8611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8612 echo "$ac_t""yes" 1>&6
8613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8614 cat >> confdefs.h <<EOF
8615 #define $ac_tr_func 1
8618 else
8619 echo "$ac_t""no" 1>&6
8621 done
8623 else
8625 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8626 echo "configure:8627: checking for _isnanf declaration" >&5
8627 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8628 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8629 echo $ac_n "(cached) $ac_c" 1>&6
8630 else
8633 ac_ext=C
8634 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8635 ac_cpp='$CXXCPP $CPPFLAGS'
8636 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8637 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8638 cross_compiling=$ac_cv_prog_cxx_cross
8640 cat > conftest.$ac_ext <<EOF
8641 #line 8642 "configure"
8642 #include "confdefs.h"
8643 #include <math.h>
8644 #ifdef HAVE_IEEEFP_H
8645 #include <ieeefp.h>
8646 #endif
8648 int main() {
8649 _isnanf(0);
8650 ; return 0; }
8652 if { (eval echo configure:8653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8653 rm -rf conftest*
8654 glibcpp_cv_func__isnanf_use=yes
8655 else
8656 echo "configure: failed program was:" >&5
8657 cat conftest.$ac_ext >&5
8658 rm -rf conftest*
8659 glibcpp_cv_func__isnanf_use=no
8661 rm -f conftest*
8662 ac_ext=c
8663 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8664 ac_cpp='$CPP $CPPFLAGS'
8665 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8666 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8667 cross_compiling=$ac_cv_prog_cc_cross
8673 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8675 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8676 for ac_func in _isnanf
8678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8679 echo "configure:8680: checking for $ac_func" >&5
8680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8681 echo $ac_n "(cached) $ac_c" 1>&6
8682 else
8683 cat > conftest.$ac_ext <<EOF
8684 #line 8685 "configure"
8685 #include "confdefs.h"
8686 /* System header to define __stub macros and hopefully few prototypes,
8687 which can conflict with char $ac_func(); below. */
8688 #include <assert.h>
8689 /* Override any gcc2 internal prototype to avoid an error. */
8690 /* We use char because int might match the return type of a gcc2
8691 builtin and then its argument prototype would still apply. */
8692 char $ac_func();
8694 int main() {
8696 /* The GNU C library defines this for functions which it implements
8697 to always fail with ENOSYS. Some functions are actually named
8698 something starting with __ and the normal name is an alias. */
8699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8700 choke me
8701 #else
8702 $ac_func();
8703 #endif
8705 ; return 0; }
8707 if { (eval echo configure:8708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8708 rm -rf conftest*
8709 eval "ac_cv_func_$ac_func=yes"
8710 else
8711 echo "configure: failed program was:" >&5
8712 cat conftest.$ac_ext >&5
8713 rm -rf conftest*
8714 eval "ac_cv_func_$ac_func=no"
8716 rm -f conftest*
8719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8720 echo "$ac_t""yes" 1>&6
8721 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8722 cat >> confdefs.h <<EOF
8723 #define $ac_tr_func 1
8726 else
8727 echo "$ac_t""no" 1>&6
8729 done
8736 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8737 echo "configure:8738: checking for isinff declaration" >&5
8738 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8739 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8740 echo $ac_n "(cached) $ac_c" 1>&6
8741 else
8744 ac_ext=C
8745 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8746 ac_cpp='$CXXCPP $CPPFLAGS'
8747 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8748 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8749 cross_compiling=$ac_cv_prog_cxx_cross
8751 cat > conftest.$ac_ext <<EOF
8752 #line 8753 "configure"
8753 #include "confdefs.h"
8754 #include <math.h>
8755 #ifdef HAVE_IEEEFP_H
8756 #include <ieeefp.h>
8757 #endif
8759 int main() {
8760 isinff(0);
8761 ; return 0; }
8763 if { (eval echo configure:8764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8764 rm -rf conftest*
8765 glibcpp_cv_func_isinff_use=yes
8766 else
8767 echo "configure: failed program was:" >&5
8768 cat conftest.$ac_ext >&5
8769 rm -rf conftest*
8770 glibcpp_cv_func_isinff_use=no
8772 rm -f conftest*
8773 ac_ext=c
8774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8775 ac_cpp='$CPP $CPPFLAGS'
8776 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8777 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8778 cross_compiling=$ac_cv_prog_cc_cross
8784 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8786 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8787 for ac_func in isinff
8789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8790 echo "configure:8791: checking for $ac_func" >&5
8791 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8792 echo $ac_n "(cached) $ac_c" 1>&6
8793 else
8794 cat > conftest.$ac_ext <<EOF
8795 #line 8796 "configure"
8796 #include "confdefs.h"
8797 /* System header to define __stub macros and hopefully few prototypes,
8798 which can conflict with char $ac_func(); below. */
8799 #include <assert.h>
8800 /* Override any gcc2 internal prototype to avoid an error. */
8801 /* We use char because int might match the return type of a gcc2
8802 builtin and then its argument prototype would still apply. */
8803 char $ac_func();
8805 int main() {
8807 /* The GNU C library defines this for functions which it implements
8808 to always fail with ENOSYS. Some functions are actually named
8809 something starting with __ and the normal name is an alias. */
8810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8811 choke me
8812 #else
8813 $ac_func();
8814 #endif
8816 ; return 0; }
8818 if { (eval echo configure:8819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8819 rm -rf conftest*
8820 eval "ac_cv_func_$ac_func=yes"
8821 else
8822 echo "configure: failed program was:" >&5
8823 cat conftest.$ac_ext >&5
8824 rm -rf conftest*
8825 eval "ac_cv_func_$ac_func=no"
8827 rm -f conftest*
8830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8831 echo "$ac_t""yes" 1>&6
8832 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8833 cat >> confdefs.h <<EOF
8834 #define $ac_tr_func 1
8837 else
8838 echo "$ac_t""no" 1>&6
8840 done
8842 else
8844 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8845 echo "configure:8846: checking for _isinff declaration" >&5
8846 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8847 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8848 echo $ac_n "(cached) $ac_c" 1>&6
8849 else
8852 ac_ext=C
8853 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8854 ac_cpp='$CXXCPP $CPPFLAGS'
8855 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8856 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8857 cross_compiling=$ac_cv_prog_cxx_cross
8859 cat > conftest.$ac_ext <<EOF
8860 #line 8861 "configure"
8861 #include "confdefs.h"
8862 #include <math.h>
8863 #ifdef HAVE_IEEEFP_H
8864 #include <ieeefp.h>
8865 #endif
8867 int main() {
8868 _isinff(0);
8869 ; return 0; }
8871 if { (eval echo configure:8872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8872 rm -rf conftest*
8873 glibcpp_cv_func__isinff_use=yes
8874 else
8875 echo "configure: failed program was:" >&5
8876 cat conftest.$ac_ext >&5
8877 rm -rf conftest*
8878 glibcpp_cv_func__isinff_use=no
8880 rm -f conftest*
8881 ac_ext=c
8882 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8883 ac_cpp='$CPP $CPPFLAGS'
8884 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8885 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8886 cross_compiling=$ac_cv_prog_cc_cross
8892 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8894 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8895 for ac_func in _isinff
8897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8898 echo "configure:8899: checking for $ac_func" >&5
8899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8900 echo $ac_n "(cached) $ac_c" 1>&6
8901 else
8902 cat > conftest.$ac_ext <<EOF
8903 #line 8904 "configure"
8904 #include "confdefs.h"
8905 /* System header to define __stub macros and hopefully few prototypes,
8906 which can conflict with char $ac_func(); below. */
8907 #include <assert.h>
8908 /* Override any gcc2 internal prototype to avoid an error. */
8909 /* We use char because int might match the return type of a gcc2
8910 builtin and then its argument prototype would still apply. */
8911 char $ac_func();
8913 int main() {
8915 /* The GNU C library defines this for functions which it implements
8916 to always fail with ENOSYS. Some functions are actually named
8917 something starting with __ and the normal name is an alias. */
8918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8919 choke me
8920 #else
8921 $ac_func();
8922 #endif
8924 ; return 0; }
8926 if { (eval echo configure:8927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8927 rm -rf conftest*
8928 eval "ac_cv_func_$ac_func=yes"
8929 else
8930 echo "configure: failed program was:" >&5
8931 cat conftest.$ac_ext >&5
8932 rm -rf conftest*
8933 eval "ac_cv_func_$ac_func=no"
8935 rm -f conftest*
8938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8939 echo "$ac_t""yes" 1>&6
8940 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8941 cat >> confdefs.h <<EOF
8942 #define $ac_tr_func 1
8945 else
8946 echo "$ac_t""no" 1>&6
8948 done
8955 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
8956 echo "configure:8957: checking for atan2f declaration" >&5
8957 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
8958 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
8959 echo $ac_n "(cached) $ac_c" 1>&6
8960 else
8963 ac_ext=C
8964 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8965 ac_cpp='$CXXCPP $CPPFLAGS'
8966 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8967 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8968 cross_compiling=$ac_cv_prog_cxx_cross
8970 cat > conftest.$ac_ext <<EOF
8971 #line 8972 "configure"
8972 #include "confdefs.h"
8973 #include <math.h>
8974 int main() {
8975 atan2f(0, 0);
8976 ; return 0; }
8978 if { (eval echo configure:8979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8979 rm -rf conftest*
8980 glibcpp_cv_func_atan2f_use=yes
8981 else
8982 echo "configure: failed program was:" >&5
8983 cat conftest.$ac_ext >&5
8984 rm -rf conftest*
8985 glibcpp_cv_func_atan2f_use=no
8987 rm -f conftest*
8988 ac_ext=c
8989 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8990 ac_cpp='$CPP $CPPFLAGS'
8991 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8992 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8993 cross_compiling=$ac_cv_prog_cc_cross
8999 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
9001 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
9002 for ac_func in atan2f
9004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9005 echo "configure:9006: checking for $ac_func" >&5
9006 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9007 echo $ac_n "(cached) $ac_c" 1>&6
9008 else
9009 cat > conftest.$ac_ext <<EOF
9010 #line 9011 "configure"
9011 #include "confdefs.h"
9012 /* System header to define __stub macros and hopefully few prototypes,
9013 which can conflict with char $ac_func(); below. */
9014 #include <assert.h>
9015 /* Override any gcc2 internal prototype to avoid an error. */
9016 /* We use char because int might match the return type of a gcc2
9017 builtin and then its argument prototype would still apply. */
9018 char $ac_func();
9020 int main() {
9022 /* The GNU C library defines this for functions which it implements
9023 to always fail with ENOSYS. Some functions are actually named
9024 something starting with __ and the normal name is an alias. */
9025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9026 choke me
9027 #else
9028 $ac_func();
9029 #endif
9031 ; return 0; }
9033 if { (eval echo configure:9034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9034 rm -rf conftest*
9035 eval "ac_cv_func_$ac_func=yes"
9036 else
9037 echo "configure: failed program was:" >&5
9038 cat conftest.$ac_ext >&5
9039 rm -rf conftest*
9040 eval "ac_cv_func_$ac_func=no"
9042 rm -f conftest*
9045 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9046 echo "$ac_t""yes" 1>&6
9047 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9048 cat >> confdefs.h <<EOF
9049 #define $ac_tr_func 1
9052 else
9053 echo "$ac_t""no" 1>&6
9055 done
9057 else
9059 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
9060 echo "configure:9061: checking for _atan2f declaration" >&5
9061 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
9062 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
9063 echo $ac_n "(cached) $ac_c" 1>&6
9064 else
9067 ac_ext=C
9068 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9069 ac_cpp='$CXXCPP $CPPFLAGS'
9070 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9071 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9072 cross_compiling=$ac_cv_prog_cxx_cross
9074 cat > conftest.$ac_ext <<EOF
9075 #line 9076 "configure"
9076 #include "confdefs.h"
9077 #include <math.h>
9078 int main() {
9079 _atan2f(0, 0);
9080 ; return 0; }
9082 if { (eval echo configure:9083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9083 rm -rf conftest*
9084 glibcpp_cv_func__atan2f_use=yes
9085 else
9086 echo "configure: failed program was:" >&5
9087 cat conftest.$ac_ext >&5
9088 rm -rf conftest*
9089 glibcpp_cv_func__atan2f_use=no
9091 rm -f conftest*
9092 ac_ext=c
9093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9094 ac_cpp='$CPP $CPPFLAGS'
9095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9096 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9097 cross_compiling=$ac_cv_prog_cc_cross
9103 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
9105 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
9106 for ac_func in _atan2f
9108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9109 echo "configure:9110: checking for $ac_func" >&5
9110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9111 echo $ac_n "(cached) $ac_c" 1>&6
9112 else
9113 cat > conftest.$ac_ext <<EOF
9114 #line 9115 "configure"
9115 #include "confdefs.h"
9116 /* System header to define __stub macros and hopefully few prototypes,
9117 which can conflict with char $ac_func(); below. */
9118 #include <assert.h>
9119 /* Override any gcc2 internal prototype to avoid an error. */
9120 /* We use char because int might match the return type of a gcc2
9121 builtin and then its argument prototype would still apply. */
9122 char $ac_func();
9124 int main() {
9126 /* The GNU C library defines this for functions which it implements
9127 to always fail with ENOSYS. Some functions are actually named
9128 something starting with __ and the normal name is an alias. */
9129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9130 choke me
9131 #else
9132 $ac_func();
9133 #endif
9135 ; return 0; }
9137 if { (eval echo configure:9138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9138 rm -rf conftest*
9139 eval "ac_cv_func_$ac_func=yes"
9140 else
9141 echo "configure: failed program was:" >&5
9142 cat conftest.$ac_ext >&5
9143 rm -rf conftest*
9144 eval "ac_cv_func_$ac_func=no"
9146 rm -f conftest*
9149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9150 echo "$ac_t""yes" 1>&6
9151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9152 cat >> confdefs.h <<EOF
9153 #define $ac_tr_func 1
9156 else
9157 echo "$ac_t""no" 1>&6
9159 done
9166 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
9167 echo "configure:9168: checking for fabsf declaration" >&5
9168 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
9169 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
9170 echo $ac_n "(cached) $ac_c" 1>&6
9171 else
9174 ac_ext=C
9175 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9176 ac_cpp='$CXXCPP $CPPFLAGS'
9177 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9178 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9179 cross_compiling=$ac_cv_prog_cxx_cross
9181 cat > conftest.$ac_ext <<EOF
9182 #line 9183 "configure"
9183 #include "confdefs.h"
9184 #include <math.h>
9185 #ifdef HAVE_IEEEFP_H
9186 #include <ieeefp.h>
9187 #endif
9189 int main() {
9190 fabsf(0);
9191 ; return 0; }
9193 if { (eval echo configure:9194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9194 rm -rf conftest*
9195 glibcpp_cv_func_fabsf_use=yes
9196 else
9197 echo "configure: failed program was:" >&5
9198 cat conftest.$ac_ext >&5
9199 rm -rf conftest*
9200 glibcpp_cv_func_fabsf_use=no
9202 rm -f conftest*
9203 ac_ext=c
9204 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9205 ac_cpp='$CPP $CPPFLAGS'
9206 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9207 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9208 cross_compiling=$ac_cv_prog_cc_cross
9214 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
9216 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
9217 for ac_func in fabsf
9219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9220 echo "configure:9221: checking for $ac_func" >&5
9221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9222 echo $ac_n "(cached) $ac_c" 1>&6
9223 else
9224 cat > conftest.$ac_ext <<EOF
9225 #line 9226 "configure"
9226 #include "confdefs.h"
9227 /* System header to define __stub macros and hopefully few prototypes,
9228 which can conflict with char $ac_func(); below. */
9229 #include <assert.h>
9230 /* Override any gcc2 internal prototype to avoid an error. */
9231 /* We use char because int might match the return type of a gcc2
9232 builtin and then its argument prototype would still apply. */
9233 char $ac_func();
9235 int main() {
9237 /* The GNU C library defines this for functions which it implements
9238 to always fail with ENOSYS. Some functions are actually named
9239 something starting with __ and the normal name is an alias. */
9240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9241 choke me
9242 #else
9243 $ac_func();
9244 #endif
9246 ; return 0; }
9248 if { (eval echo configure:9249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9249 rm -rf conftest*
9250 eval "ac_cv_func_$ac_func=yes"
9251 else
9252 echo "configure: failed program was:" >&5
9253 cat conftest.$ac_ext >&5
9254 rm -rf conftest*
9255 eval "ac_cv_func_$ac_func=no"
9257 rm -f conftest*
9260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9261 echo "$ac_t""yes" 1>&6
9262 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9263 cat >> confdefs.h <<EOF
9264 #define $ac_tr_func 1
9267 else
9268 echo "$ac_t""no" 1>&6
9270 done
9272 else
9274 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
9275 echo "configure:9276: checking for _fabsf declaration" >&5
9276 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
9277 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
9278 echo $ac_n "(cached) $ac_c" 1>&6
9279 else
9282 ac_ext=C
9283 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9284 ac_cpp='$CXXCPP $CPPFLAGS'
9285 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9286 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9287 cross_compiling=$ac_cv_prog_cxx_cross
9289 cat > conftest.$ac_ext <<EOF
9290 #line 9291 "configure"
9291 #include "confdefs.h"
9292 #include <math.h>
9293 #ifdef HAVE_IEEEFP_H
9294 #include <ieeefp.h>
9295 #endif
9297 int main() {
9298 _fabsf(0);
9299 ; return 0; }
9301 if { (eval echo configure:9302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9302 rm -rf conftest*
9303 glibcpp_cv_func__fabsf_use=yes
9304 else
9305 echo "configure: failed program was:" >&5
9306 cat conftest.$ac_ext >&5
9307 rm -rf conftest*
9308 glibcpp_cv_func__fabsf_use=no
9310 rm -f conftest*
9311 ac_ext=c
9312 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9313 ac_cpp='$CPP $CPPFLAGS'
9314 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9315 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9316 cross_compiling=$ac_cv_prog_cc_cross
9322 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
9324 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
9325 for ac_func in _fabsf
9327 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9328 echo "configure:9329: checking for $ac_func" >&5
9329 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9330 echo $ac_n "(cached) $ac_c" 1>&6
9331 else
9332 cat > conftest.$ac_ext <<EOF
9333 #line 9334 "configure"
9334 #include "confdefs.h"
9335 /* System header to define __stub macros and hopefully few prototypes,
9336 which can conflict with char $ac_func(); below. */
9337 #include <assert.h>
9338 /* Override any gcc2 internal prototype to avoid an error. */
9339 /* We use char because int might match the return type of a gcc2
9340 builtin and then its argument prototype would still apply. */
9341 char $ac_func();
9343 int main() {
9345 /* The GNU C library defines this for functions which it implements
9346 to always fail with ENOSYS. Some functions are actually named
9347 something starting with __ and the normal name is an alias. */
9348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9349 choke me
9350 #else
9351 $ac_func();
9352 #endif
9354 ; return 0; }
9356 if { (eval echo configure:9357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9357 rm -rf conftest*
9358 eval "ac_cv_func_$ac_func=yes"
9359 else
9360 echo "configure: failed program was:" >&5
9361 cat conftest.$ac_ext >&5
9362 rm -rf conftest*
9363 eval "ac_cv_func_$ac_func=no"
9365 rm -f conftest*
9368 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9369 echo "$ac_t""yes" 1>&6
9370 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9371 cat >> confdefs.h <<EOF
9372 #define $ac_tr_func 1
9375 else
9376 echo "$ac_t""no" 1>&6
9378 done
9385 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
9386 echo "configure:9387: checking for fmodf declaration" >&5
9387 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
9388 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
9389 echo $ac_n "(cached) $ac_c" 1>&6
9390 else
9393 ac_ext=C
9394 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9395 ac_cpp='$CXXCPP $CPPFLAGS'
9396 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9397 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9398 cross_compiling=$ac_cv_prog_cxx_cross
9400 cat > conftest.$ac_ext <<EOF
9401 #line 9402 "configure"
9402 #include "confdefs.h"
9403 #include <math.h>
9404 int main() {
9405 fmodf(0, 0);
9406 ; return 0; }
9408 if { (eval echo configure:9409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9409 rm -rf conftest*
9410 glibcpp_cv_func_fmodf_use=yes
9411 else
9412 echo "configure: failed program was:" >&5
9413 cat conftest.$ac_ext >&5
9414 rm -rf conftest*
9415 glibcpp_cv_func_fmodf_use=no
9417 rm -f conftest*
9418 ac_ext=c
9419 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9420 ac_cpp='$CPP $CPPFLAGS'
9421 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9422 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9423 cross_compiling=$ac_cv_prog_cc_cross
9429 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
9431 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
9432 for ac_func in fmodf
9434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9435 echo "configure:9436: checking for $ac_func" >&5
9436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9437 echo $ac_n "(cached) $ac_c" 1>&6
9438 else
9439 cat > conftest.$ac_ext <<EOF
9440 #line 9441 "configure"
9441 #include "confdefs.h"
9442 /* System header to define __stub macros and hopefully few prototypes,
9443 which can conflict with char $ac_func(); below. */
9444 #include <assert.h>
9445 /* Override any gcc2 internal prototype to avoid an error. */
9446 /* We use char because int might match the return type of a gcc2
9447 builtin and then its argument prototype would still apply. */
9448 char $ac_func();
9450 int main() {
9452 /* The GNU C library defines this for functions which it implements
9453 to always fail with ENOSYS. Some functions are actually named
9454 something starting with __ and the normal name is an alias. */
9455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9456 choke me
9457 #else
9458 $ac_func();
9459 #endif
9461 ; return 0; }
9463 if { (eval echo configure:9464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9464 rm -rf conftest*
9465 eval "ac_cv_func_$ac_func=yes"
9466 else
9467 echo "configure: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9469 rm -rf conftest*
9470 eval "ac_cv_func_$ac_func=no"
9472 rm -f conftest*
9475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9476 echo "$ac_t""yes" 1>&6
9477 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9478 cat >> confdefs.h <<EOF
9479 #define $ac_tr_func 1
9482 else
9483 echo "$ac_t""no" 1>&6
9485 done
9487 else
9489 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
9490 echo "configure:9491: checking for _fmodf declaration" >&5
9491 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
9492 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
9493 echo $ac_n "(cached) $ac_c" 1>&6
9494 else
9497 ac_ext=C
9498 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9499 ac_cpp='$CXXCPP $CPPFLAGS'
9500 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9501 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9502 cross_compiling=$ac_cv_prog_cxx_cross
9504 cat > conftest.$ac_ext <<EOF
9505 #line 9506 "configure"
9506 #include "confdefs.h"
9507 #include <math.h>
9508 int main() {
9509 _fmodf(0, 0);
9510 ; return 0; }
9512 if { (eval echo configure:9513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9513 rm -rf conftest*
9514 glibcpp_cv_func__fmodf_use=yes
9515 else
9516 echo "configure: failed program was:" >&5
9517 cat conftest.$ac_ext >&5
9518 rm -rf conftest*
9519 glibcpp_cv_func__fmodf_use=no
9521 rm -f conftest*
9522 ac_ext=c
9523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9524 ac_cpp='$CPP $CPPFLAGS'
9525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9527 cross_compiling=$ac_cv_prog_cc_cross
9533 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
9535 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
9536 for ac_func in _fmodf
9538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9539 echo "configure:9540: checking for $ac_func" >&5
9540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9541 echo $ac_n "(cached) $ac_c" 1>&6
9542 else
9543 cat > conftest.$ac_ext <<EOF
9544 #line 9545 "configure"
9545 #include "confdefs.h"
9546 /* System header to define __stub macros and hopefully few prototypes,
9547 which can conflict with char $ac_func(); below. */
9548 #include <assert.h>
9549 /* Override any gcc2 internal prototype to avoid an error. */
9550 /* We use char because int might match the return type of a gcc2
9551 builtin and then its argument prototype would still apply. */
9552 char $ac_func();
9554 int main() {
9556 /* The GNU C library defines this for functions which it implements
9557 to always fail with ENOSYS. Some functions are actually named
9558 something starting with __ and the normal name is an alias. */
9559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9560 choke me
9561 #else
9562 $ac_func();
9563 #endif
9565 ; return 0; }
9567 if { (eval echo configure:9568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9568 rm -rf conftest*
9569 eval "ac_cv_func_$ac_func=yes"
9570 else
9571 echo "configure: failed program was:" >&5
9572 cat conftest.$ac_ext >&5
9573 rm -rf conftest*
9574 eval "ac_cv_func_$ac_func=no"
9576 rm -f conftest*
9579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9580 echo "$ac_t""yes" 1>&6
9581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9582 cat >> confdefs.h <<EOF
9583 #define $ac_tr_func 1
9586 else
9587 echo "$ac_t""no" 1>&6
9589 done
9596 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
9597 echo "configure:9598: checking for frexpf declaration" >&5
9598 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
9599 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
9600 echo $ac_n "(cached) $ac_c" 1>&6
9601 else
9604 ac_ext=C
9605 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9606 ac_cpp='$CXXCPP $CPPFLAGS'
9607 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9608 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9609 cross_compiling=$ac_cv_prog_cxx_cross
9611 cat > conftest.$ac_ext <<EOF
9612 #line 9613 "configure"
9613 #include "confdefs.h"
9614 #include <math.h>
9615 int main() {
9616 frexpf(0, 0);
9617 ; return 0; }
9619 if { (eval echo configure:9620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9620 rm -rf conftest*
9621 glibcpp_cv_func_frexpf_use=yes
9622 else
9623 echo "configure: failed program was:" >&5
9624 cat conftest.$ac_ext >&5
9625 rm -rf conftest*
9626 glibcpp_cv_func_frexpf_use=no
9628 rm -f conftest*
9629 ac_ext=c
9630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9631 ac_cpp='$CPP $CPPFLAGS'
9632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9633 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9634 cross_compiling=$ac_cv_prog_cc_cross
9640 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
9642 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
9643 for ac_func in frexpf
9645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9646 echo "configure:9647: checking for $ac_func" >&5
9647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9648 echo $ac_n "(cached) $ac_c" 1>&6
9649 else
9650 cat > conftest.$ac_ext <<EOF
9651 #line 9652 "configure"
9652 #include "confdefs.h"
9653 /* System header to define __stub macros and hopefully few prototypes,
9654 which can conflict with char $ac_func(); below. */
9655 #include <assert.h>
9656 /* Override any gcc2 internal prototype to avoid an error. */
9657 /* We use char because int might match the return type of a gcc2
9658 builtin and then its argument prototype would still apply. */
9659 char $ac_func();
9661 int main() {
9663 /* The GNU C library defines this for functions which it implements
9664 to always fail with ENOSYS. Some functions are actually named
9665 something starting with __ and the normal name is an alias. */
9666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9667 choke me
9668 #else
9669 $ac_func();
9670 #endif
9672 ; return 0; }
9674 if { (eval echo configure:9675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9675 rm -rf conftest*
9676 eval "ac_cv_func_$ac_func=yes"
9677 else
9678 echo "configure: failed program was:" >&5
9679 cat conftest.$ac_ext >&5
9680 rm -rf conftest*
9681 eval "ac_cv_func_$ac_func=no"
9683 rm -f conftest*
9686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9687 echo "$ac_t""yes" 1>&6
9688 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9689 cat >> confdefs.h <<EOF
9690 #define $ac_tr_func 1
9693 else
9694 echo "$ac_t""no" 1>&6
9696 done
9698 else
9700 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9701 echo "configure:9702: checking for _frexpf declaration" >&5
9702 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9703 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9704 echo $ac_n "(cached) $ac_c" 1>&6
9705 else
9708 ac_ext=C
9709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9710 ac_cpp='$CXXCPP $CPPFLAGS'
9711 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9712 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9713 cross_compiling=$ac_cv_prog_cxx_cross
9715 cat > conftest.$ac_ext <<EOF
9716 #line 9717 "configure"
9717 #include "confdefs.h"
9718 #include <math.h>
9719 int main() {
9720 _frexpf(0, 0);
9721 ; return 0; }
9723 if { (eval echo configure:9724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9724 rm -rf conftest*
9725 glibcpp_cv_func__frexpf_use=yes
9726 else
9727 echo "configure: failed program was:" >&5
9728 cat conftest.$ac_ext >&5
9729 rm -rf conftest*
9730 glibcpp_cv_func__frexpf_use=no
9732 rm -f conftest*
9733 ac_ext=c
9734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9735 ac_cpp='$CPP $CPPFLAGS'
9736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9738 cross_compiling=$ac_cv_prog_cc_cross
9744 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9746 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9747 for ac_func in _frexpf
9749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9750 echo "configure:9751: checking for $ac_func" >&5
9751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9752 echo $ac_n "(cached) $ac_c" 1>&6
9753 else
9754 cat > conftest.$ac_ext <<EOF
9755 #line 9756 "configure"
9756 #include "confdefs.h"
9757 /* System header to define __stub macros and hopefully few prototypes,
9758 which can conflict with char $ac_func(); below. */
9759 #include <assert.h>
9760 /* Override any gcc2 internal prototype to avoid an error. */
9761 /* We use char because int might match the return type of a gcc2
9762 builtin and then its argument prototype would still apply. */
9763 char $ac_func();
9765 int main() {
9767 /* The GNU C library defines this for functions which it implements
9768 to always fail with ENOSYS. Some functions are actually named
9769 something starting with __ and the normal name is an alias. */
9770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9771 choke me
9772 #else
9773 $ac_func();
9774 #endif
9776 ; return 0; }
9778 if { (eval echo configure:9779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9779 rm -rf conftest*
9780 eval "ac_cv_func_$ac_func=yes"
9781 else
9782 echo "configure: failed program was:" >&5
9783 cat conftest.$ac_ext >&5
9784 rm -rf conftest*
9785 eval "ac_cv_func_$ac_func=no"
9787 rm -f conftest*
9790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9791 echo "$ac_t""yes" 1>&6
9792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9793 cat >> confdefs.h <<EOF
9794 #define $ac_tr_func 1
9797 else
9798 echo "$ac_t""no" 1>&6
9800 done
9807 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
9808 echo "configure:9809: checking for hypotf declaration" >&5
9809 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
9810 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
9811 echo $ac_n "(cached) $ac_c" 1>&6
9812 else
9815 ac_ext=C
9816 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9817 ac_cpp='$CXXCPP $CPPFLAGS'
9818 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9819 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9820 cross_compiling=$ac_cv_prog_cxx_cross
9822 cat > conftest.$ac_ext <<EOF
9823 #line 9824 "configure"
9824 #include "confdefs.h"
9825 #include <math.h>
9826 int main() {
9827 hypotf(0, 0);
9828 ; return 0; }
9830 if { (eval echo configure:9831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9831 rm -rf conftest*
9832 glibcpp_cv_func_hypotf_use=yes
9833 else
9834 echo "configure: failed program was:" >&5
9835 cat conftest.$ac_ext >&5
9836 rm -rf conftest*
9837 glibcpp_cv_func_hypotf_use=no
9839 rm -f conftest*
9840 ac_ext=c
9841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9842 ac_cpp='$CPP $CPPFLAGS'
9843 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9844 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9845 cross_compiling=$ac_cv_prog_cc_cross
9851 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
9853 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
9854 for ac_func in hypotf
9856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9857 echo "configure:9858: checking for $ac_func" >&5
9858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9859 echo $ac_n "(cached) $ac_c" 1>&6
9860 else
9861 cat > conftest.$ac_ext <<EOF
9862 #line 9863 "configure"
9863 #include "confdefs.h"
9864 /* System header to define __stub macros and hopefully few prototypes,
9865 which can conflict with char $ac_func(); below. */
9866 #include <assert.h>
9867 /* Override any gcc2 internal prototype to avoid an error. */
9868 /* We use char because int might match the return type of a gcc2
9869 builtin and then its argument prototype would still apply. */
9870 char $ac_func();
9872 int main() {
9874 /* The GNU C library defines this for functions which it implements
9875 to always fail with ENOSYS. Some functions are actually named
9876 something starting with __ and the normal name is an alias. */
9877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9878 choke me
9879 #else
9880 $ac_func();
9881 #endif
9883 ; return 0; }
9885 if { (eval echo configure:9886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9886 rm -rf conftest*
9887 eval "ac_cv_func_$ac_func=yes"
9888 else
9889 echo "configure: failed program was:" >&5
9890 cat conftest.$ac_ext >&5
9891 rm -rf conftest*
9892 eval "ac_cv_func_$ac_func=no"
9894 rm -f conftest*
9897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9898 echo "$ac_t""yes" 1>&6
9899 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9900 cat >> confdefs.h <<EOF
9901 #define $ac_tr_func 1
9904 else
9905 echo "$ac_t""no" 1>&6
9907 done
9909 else
9911 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
9912 echo "configure:9913: checking for _hypotf declaration" >&5
9913 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
9914 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
9915 echo $ac_n "(cached) $ac_c" 1>&6
9916 else
9919 ac_ext=C
9920 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9921 ac_cpp='$CXXCPP $CPPFLAGS'
9922 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9923 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9924 cross_compiling=$ac_cv_prog_cxx_cross
9926 cat > conftest.$ac_ext <<EOF
9927 #line 9928 "configure"
9928 #include "confdefs.h"
9929 #include <math.h>
9930 int main() {
9931 _hypotf(0, 0);
9932 ; return 0; }
9934 if { (eval echo configure:9935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9935 rm -rf conftest*
9936 glibcpp_cv_func__hypotf_use=yes
9937 else
9938 echo "configure: failed program was:" >&5
9939 cat conftest.$ac_ext >&5
9940 rm -rf conftest*
9941 glibcpp_cv_func__hypotf_use=no
9943 rm -f conftest*
9944 ac_ext=c
9945 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9946 ac_cpp='$CPP $CPPFLAGS'
9947 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9948 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9949 cross_compiling=$ac_cv_prog_cc_cross
9955 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
9957 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
9958 for ac_func in _hypotf
9960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9961 echo "configure:9962: checking for $ac_func" >&5
9962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9963 echo $ac_n "(cached) $ac_c" 1>&6
9964 else
9965 cat > conftest.$ac_ext <<EOF
9966 #line 9967 "configure"
9967 #include "confdefs.h"
9968 /* System header to define __stub macros and hopefully few prototypes,
9969 which can conflict with char $ac_func(); below. */
9970 #include <assert.h>
9971 /* Override any gcc2 internal prototype to avoid an error. */
9972 /* We use char because int might match the return type of a gcc2
9973 builtin and then its argument prototype would still apply. */
9974 char $ac_func();
9976 int main() {
9978 /* The GNU C library defines this for functions which it implements
9979 to always fail with ENOSYS. Some functions are actually named
9980 something starting with __ and the normal name is an alias. */
9981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9982 choke me
9983 #else
9984 $ac_func();
9985 #endif
9987 ; return 0; }
9989 if { (eval echo configure:9990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9990 rm -rf conftest*
9991 eval "ac_cv_func_$ac_func=yes"
9992 else
9993 echo "configure: failed program was:" >&5
9994 cat conftest.$ac_ext >&5
9995 rm -rf conftest*
9996 eval "ac_cv_func_$ac_func=no"
9998 rm -f conftest*
10001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10002 echo "$ac_t""yes" 1>&6
10003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10004 cat >> confdefs.h <<EOF
10005 #define $ac_tr_func 1
10008 else
10009 echo "$ac_t""no" 1>&6
10011 done
10018 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
10019 echo "configure:10020: checking for ldexpf declaration" >&5
10020 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
10021 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
10022 echo $ac_n "(cached) $ac_c" 1>&6
10023 else
10026 ac_ext=C
10027 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10028 ac_cpp='$CXXCPP $CPPFLAGS'
10029 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10030 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10031 cross_compiling=$ac_cv_prog_cxx_cross
10033 cat > conftest.$ac_ext <<EOF
10034 #line 10035 "configure"
10035 #include "confdefs.h"
10036 #include <math.h>
10037 int main() {
10038 ldexpf(0, 0);
10039 ; return 0; }
10041 if { (eval echo configure:10042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10042 rm -rf conftest*
10043 glibcpp_cv_func_ldexpf_use=yes
10044 else
10045 echo "configure: failed program was:" >&5
10046 cat conftest.$ac_ext >&5
10047 rm -rf conftest*
10048 glibcpp_cv_func_ldexpf_use=no
10050 rm -f conftest*
10051 ac_ext=c
10052 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10053 ac_cpp='$CPP $CPPFLAGS'
10054 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10055 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10056 cross_compiling=$ac_cv_prog_cc_cross
10062 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
10064 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
10065 for ac_func in ldexpf
10067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10068 echo "configure:10069: checking for $ac_func" >&5
10069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10070 echo $ac_n "(cached) $ac_c" 1>&6
10071 else
10072 cat > conftest.$ac_ext <<EOF
10073 #line 10074 "configure"
10074 #include "confdefs.h"
10075 /* System header to define __stub macros and hopefully few prototypes,
10076 which can conflict with char $ac_func(); below. */
10077 #include <assert.h>
10078 /* Override any gcc2 internal prototype to avoid an error. */
10079 /* We use char because int might match the return type of a gcc2
10080 builtin and then its argument prototype would still apply. */
10081 char $ac_func();
10083 int main() {
10085 /* The GNU C library defines this for functions which it implements
10086 to always fail with ENOSYS. Some functions are actually named
10087 something starting with __ and the normal name is an alias. */
10088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10089 choke me
10090 #else
10091 $ac_func();
10092 #endif
10094 ; return 0; }
10096 if { (eval echo configure:10097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10097 rm -rf conftest*
10098 eval "ac_cv_func_$ac_func=yes"
10099 else
10100 echo "configure: failed program was:" >&5
10101 cat conftest.$ac_ext >&5
10102 rm -rf conftest*
10103 eval "ac_cv_func_$ac_func=no"
10105 rm -f conftest*
10108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10109 echo "$ac_t""yes" 1>&6
10110 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10111 cat >> confdefs.h <<EOF
10112 #define $ac_tr_func 1
10115 else
10116 echo "$ac_t""no" 1>&6
10118 done
10120 else
10122 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
10123 echo "configure:10124: checking for _ldexpf declaration" >&5
10124 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
10125 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
10126 echo $ac_n "(cached) $ac_c" 1>&6
10127 else
10130 ac_ext=C
10131 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10132 ac_cpp='$CXXCPP $CPPFLAGS'
10133 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10134 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10135 cross_compiling=$ac_cv_prog_cxx_cross
10137 cat > conftest.$ac_ext <<EOF
10138 #line 10139 "configure"
10139 #include "confdefs.h"
10140 #include <math.h>
10141 int main() {
10142 _ldexpf(0, 0);
10143 ; return 0; }
10145 if { (eval echo configure:10146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10146 rm -rf conftest*
10147 glibcpp_cv_func__ldexpf_use=yes
10148 else
10149 echo "configure: failed program was:" >&5
10150 cat conftest.$ac_ext >&5
10151 rm -rf conftest*
10152 glibcpp_cv_func__ldexpf_use=no
10154 rm -f conftest*
10155 ac_ext=c
10156 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10157 ac_cpp='$CPP $CPPFLAGS'
10158 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10159 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10160 cross_compiling=$ac_cv_prog_cc_cross
10166 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
10168 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
10169 for ac_func in _ldexpf
10171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10172 echo "configure:10173: checking for $ac_func" >&5
10173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10174 echo $ac_n "(cached) $ac_c" 1>&6
10175 else
10176 cat > conftest.$ac_ext <<EOF
10177 #line 10178 "configure"
10178 #include "confdefs.h"
10179 /* System header to define __stub macros and hopefully few prototypes,
10180 which can conflict with char $ac_func(); below. */
10181 #include <assert.h>
10182 /* Override any gcc2 internal prototype to avoid an error. */
10183 /* We use char because int might match the return type of a gcc2
10184 builtin and then its argument prototype would still apply. */
10185 char $ac_func();
10187 int main() {
10189 /* The GNU C library defines this for functions which it implements
10190 to always fail with ENOSYS. Some functions are actually named
10191 something starting with __ and the normal name is an alias. */
10192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10193 choke me
10194 #else
10195 $ac_func();
10196 #endif
10198 ; return 0; }
10200 if { (eval echo configure:10201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10201 rm -rf conftest*
10202 eval "ac_cv_func_$ac_func=yes"
10203 else
10204 echo "configure: failed program was:" >&5
10205 cat conftest.$ac_ext >&5
10206 rm -rf conftest*
10207 eval "ac_cv_func_$ac_func=no"
10209 rm -f conftest*
10212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10213 echo "$ac_t""yes" 1>&6
10214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10215 cat >> confdefs.h <<EOF
10216 #define $ac_tr_func 1
10219 else
10220 echo "$ac_t""no" 1>&6
10222 done
10229 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
10230 echo "configure:10231: checking for logf declaration" >&5
10231 if test x${glibcpp_cv_func_logf_use+set} != xset; then
10232 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
10233 echo $ac_n "(cached) $ac_c" 1>&6
10234 else
10237 ac_ext=C
10238 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10239 ac_cpp='$CXXCPP $CPPFLAGS'
10240 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10241 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10242 cross_compiling=$ac_cv_prog_cxx_cross
10244 cat > conftest.$ac_ext <<EOF
10245 #line 10246 "configure"
10246 #include "confdefs.h"
10247 #include <math.h>
10248 #ifdef HAVE_IEEEFP_H
10249 #include <ieeefp.h>
10250 #endif
10252 int main() {
10253 logf(0);
10254 ; return 0; }
10256 if { (eval echo configure:10257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10257 rm -rf conftest*
10258 glibcpp_cv_func_logf_use=yes
10259 else
10260 echo "configure: failed program was:" >&5
10261 cat conftest.$ac_ext >&5
10262 rm -rf conftest*
10263 glibcpp_cv_func_logf_use=no
10265 rm -f conftest*
10266 ac_ext=c
10267 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10268 ac_cpp='$CPP $CPPFLAGS'
10269 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10270 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10271 cross_compiling=$ac_cv_prog_cc_cross
10277 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
10279 if test x$glibcpp_cv_func_logf_use = x"yes"; then
10280 for ac_func in logf
10282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10283 echo "configure:10284: checking for $ac_func" >&5
10284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10285 echo $ac_n "(cached) $ac_c" 1>&6
10286 else
10287 cat > conftest.$ac_ext <<EOF
10288 #line 10289 "configure"
10289 #include "confdefs.h"
10290 /* System header to define __stub macros and hopefully few prototypes,
10291 which can conflict with char $ac_func(); below. */
10292 #include <assert.h>
10293 /* Override any gcc2 internal prototype to avoid an error. */
10294 /* We use char because int might match the return type of a gcc2
10295 builtin and then its argument prototype would still apply. */
10296 char $ac_func();
10298 int main() {
10300 /* The GNU C library defines this for functions which it implements
10301 to always fail with ENOSYS. Some functions are actually named
10302 something starting with __ and the normal name is an alias. */
10303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10304 choke me
10305 #else
10306 $ac_func();
10307 #endif
10309 ; return 0; }
10311 if { (eval echo configure:10312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10312 rm -rf conftest*
10313 eval "ac_cv_func_$ac_func=yes"
10314 else
10315 echo "configure: failed program was:" >&5
10316 cat conftest.$ac_ext >&5
10317 rm -rf conftest*
10318 eval "ac_cv_func_$ac_func=no"
10320 rm -f conftest*
10323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10324 echo "$ac_t""yes" 1>&6
10325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10326 cat >> confdefs.h <<EOF
10327 #define $ac_tr_func 1
10330 else
10331 echo "$ac_t""no" 1>&6
10333 done
10335 else
10337 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
10338 echo "configure:10339: checking for _logf declaration" >&5
10339 if test x${glibcpp_cv_func__logf_use+set} != xset; then
10340 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
10341 echo $ac_n "(cached) $ac_c" 1>&6
10342 else
10345 ac_ext=C
10346 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10347 ac_cpp='$CXXCPP $CPPFLAGS'
10348 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10349 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10350 cross_compiling=$ac_cv_prog_cxx_cross
10352 cat > conftest.$ac_ext <<EOF
10353 #line 10354 "configure"
10354 #include "confdefs.h"
10355 #include <math.h>
10356 #ifdef HAVE_IEEEFP_H
10357 #include <ieeefp.h>
10358 #endif
10360 int main() {
10361 _logf(0);
10362 ; return 0; }
10364 if { (eval echo configure:10365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10365 rm -rf conftest*
10366 glibcpp_cv_func__logf_use=yes
10367 else
10368 echo "configure: failed program was:" >&5
10369 cat conftest.$ac_ext >&5
10370 rm -rf conftest*
10371 glibcpp_cv_func__logf_use=no
10373 rm -f conftest*
10374 ac_ext=c
10375 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10376 ac_cpp='$CPP $CPPFLAGS'
10377 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10378 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10379 cross_compiling=$ac_cv_prog_cc_cross
10385 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
10387 if test x$glibcpp_cv_func__logf_use = x"yes"; then
10388 for ac_func in _logf
10390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10391 echo "configure:10392: checking for $ac_func" >&5
10392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10393 echo $ac_n "(cached) $ac_c" 1>&6
10394 else
10395 cat > conftest.$ac_ext <<EOF
10396 #line 10397 "configure"
10397 #include "confdefs.h"
10398 /* System header to define __stub macros and hopefully few prototypes,
10399 which can conflict with char $ac_func(); below. */
10400 #include <assert.h>
10401 /* Override any gcc2 internal prototype to avoid an error. */
10402 /* We use char because int might match the return type of a gcc2
10403 builtin and then its argument prototype would still apply. */
10404 char $ac_func();
10406 int main() {
10408 /* The GNU C library defines this for functions which it implements
10409 to always fail with ENOSYS. Some functions are actually named
10410 something starting with __ and the normal name is an alias. */
10411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10412 choke me
10413 #else
10414 $ac_func();
10415 #endif
10417 ; return 0; }
10419 if { (eval echo configure:10420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10420 rm -rf conftest*
10421 eval "ac_cv_func_$ac_func=yes"
10422 else
10423 echo "configure: failed program was:" >&5
10424 cat conftest.$ac_ext >&5
10425 rm -rf conftest*
10426 eval "ac_cv_func_$ac_func=no"
10428 rm -f conftest*
10431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10432 echo "$ac_t""yes" 1>&6
10433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10434 cat >> confdefs.h <<EOF
10435 #define $ac_tr_func 1
10438 else
10439 echo "$ac_t""no" 1>&6
10441 done
10448 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
10449 echo "configure:10450: checking for log10f declaration" >&5
10450 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
10451 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
10452 echo $ac_n "(cached) $ac_c" 1>&6
10453 else
10456 ac_ext=C
10457 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10458 ac_cpp='$CXXCPP $CPPFLAGS'
10459 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10460 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10461 cross_compiling=$ac_cv_prog_cxx_cross
10463 cat > conftest.$ac_ext <<EOF
10464 #line 10465 "configure"
10465 #include "confdefs.h"
10466 #include <math.h>
10467 #ifdef HAVE_IEEEFP_H
10468 #include <ieeefp.h>
10469 #endif
10471 int main() {
10472 log10f(0);
10473 ; return 0; }
10475 if { (eval echo configure:10476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10476 rm -rf conftest*
10477 glibcpp_cv_func_log10f_use=yes
10478 else
10479 echo "configure: failed program was:" >&5
10480 cat conftest.$ac_ext >&5
10481 rm -rf conftest*
10482 glibcpp_cv_func_log10f_use=no
10484 rm -f conftest*
10485 ac_ext=c
10486 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10487 ac_cpp='$CPP $CPPFLAGS'
10488 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10489 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10490 cross_compiling=$ac_cv_prog_cc_cross
10496 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
10498 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
10499 for ac_func in log10f
10501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10502 echo "configure:10503: checking for $ac_func" >&5
10503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10504 echo $ac_n "(cached) $ac_c" 1>&6
10505 else
10506 cat > conftest.$ac_ext <<EOF
10507 #line 10508 "configure"
10508 #include "confdefs.h"
10509 /* System header to define __stub macros and hopefully few prototypes,
10510 which can conflict with char $ac_func(); below. */
10511 #include <assert.h>
10512 /* Override any gcc2 internal prototype to avoid an error. */
10513 /* We use char because int might match the return type of a gcc2
10514 builtin and then its argument prototype would still apply. */
10515 char $ac_func();
10517 int main() {
10519 /* The GNU C library defines this for functions which it implements
10520 to always fail with ENOSYS. Some functions are actually named
10521 something starting with __ and the normal name is an alias. */
10522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10523 choke me
10524 #else
10525 $ac_func();
10526 #endif
10528 ; return 0; }
10530 if { (eval echo configure:10531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10531 rm -rf conftest*
10532 eval "ac_cv_func_$ac_func=yes"
10533 else
10534 echo "configure: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10536 rm -rf conftest*
10537 eval "ac_cv_func_$ac_func=no"
10539 rm -f conftest*
10542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10543 echo "$ac_t""yes" 1>&6
10544 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10545 cat >> confdefs.h <<EOF
10546 #define $ac_tr_func 1
10549 else
10550 echo "$ac_t""no" 1>&6
10552 done
10554 else
10556 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
10557 echo "configure:10558: checking for _log10f declaration" >&5
10558 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
10559 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
10560 echo $ac_n "(cached) $ac_c" 1>&6
10561 else
10564 ac_ext=C
10565 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10566 ac_cpp='$CXXCPP $CPPFLAGS'
10567 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10568 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10569 cross_compiling=$ac_cv_prog_cxx_cross
10571 cat > conftest.$ac_ext <<EOF
10572 #line 10573 "configure"
10573 #include "confdefs.h"
10574 #include <math.h>
10575 #ifdef HAVE_IEEEFP_H
10576 #include <ieeefp.h>
10577 #endif
10579 int main() {
10580 _log10f(0);
10581 ; return 0; }
10583 if { (eval echo configure:10584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10584 rm -rf conftest*
10585 glibcpp_cv_func__log10f_use=yes
10586 else
10587 echo "configure: failed program was:" >&5
10588 cat conftest.$ac_ext >&5
10589 rm -rf conftest*
10590 glibcpp_cv_func__log10f_use=no
10592 rm -f conftest*
10593 ac_ext=c
10594 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10595 ac_cpp='$CPP $CPPFLAGS'
10596 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10597 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10598 cross_compiling=$ac_cv_prog_cc_cross
10604 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
10606 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
10607 for ac_func in _log10f
10609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10610 echo "configure:10611: checking for $ac_func" >&5
10611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10612 echo $ac_n "(cached) $ac_c" 1>&6
10613 else
10614 cat > conftest.$ac_ext <<EOF
10615 #line 10616 "configure"
10616 #include "confdefs.h"
10617 /* System header to define __stub macros and hopefully few prototypes,
10618 which can conflict with char $ac_func(); below. */
10619 #include <assert.h>
10620 /* Override any gcc2 internal prototype to avoid an error. */
10621 /* We use char because int might match the return type of a gcc2
10622 builtin and then its argument prototype would still apply. */
10623 char $ac_func();
10625 int main() {
10627 /* The GNU C library defines this for functions which it implements
10628 to always fail with ENOSYS. Some functions are actually named
10629 something starting with __ and the normal name is an alias. */
10630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10631 choke me
10632 #else
10633 $ac_func();
10634 #endif
10636 ; return 0; }
10638 if { (eval echo configure:10639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10639 rm -rf conftest*
10640 eval "ac_cv_func_$ac_func=yes"
10641 else
10642 echo "configure: failed program was:" >&5
10643 cat conftest.$ac_ext >&5
10644 rm -rf conftest*
10645 eval "ac_cv_func_$ac_func=no"
10647 rm -f conftest*
10650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10651 echo "$ac_t""yes" 1>&6
10652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10653 cat >> confdefs.h <<EOF
10654 #define $ac_tr_func 1
10657 else
10658 echo "$ac_t""no" 1>&6
10660 done
10667 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
10668 echo "configure:10669: checking for modff declaration" >&5
10669 if test x${glibcpp_cv_func_modff_use+set} != xset; then
10670 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
10671 echo $ac_n "(cached) $ac_c" 1>&6
10672 else
10675 ac_ext=C
10676 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10677 ac_cpp='$CXXCPP $CPPFLAGS'
10678 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10679 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10680 cross_compiling=$ac_cv_prog_cxx_cross
10682 cat > conftest.$ac_ext <<EOF
10683 #line 10684 "configure"
10684 #include "confdefs.h"
10685 #include <math.h>
10686 int main() {
10687 modff(0, 0);
10688 ; return 0; }
10690 if { (eval echo configure:10691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10691 rm -rf conftest*
10692 glibcpp_cv_func_modff_use=yes
10693 else
10694 echo "configure: failed program was:" >&5
10695 cat conftest.$ac_ext >&5
10696 rm -rf conftest*
10697 glibcpp_cv_func_modff_use=no
10699 rm -f conftest*
10700 ac_ext=c
10701 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10702 ac_cpp='$CPP $CPPFLAGS'
10703 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10704 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10705 cross_compiling=$ac_cv_prog_cc_cross
10711 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
10713 if test x$glibcpp_cv_func_modff_use = x"yes"; then
10714 for ac_func in modff
10716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10717 echo "configure:10718: checking for $ac_func" >&5
10718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10719 echo $ac_n "(cached) $ac_c" 1>&6
10720 else
10721 cat > conftest.$ac_ext <<EOF
10722 #line 10723 "configure"
10723 #include "confdefs.h"
10724 /* System header to define __stub macros and hopefully few prototypes,
10725 which can conflict with char $ac_func(); below. */
10726 #include <assert.h>
10727 /* Override any gcc2 internal prototype to avoid an error. */
10728 /* We use char because int might match the return type of a gcc2
10729 builtin and then its argument prototype would still apply. */
10730 char $ac_func();
10732 int main() {
10734 /* The GNU C library defines this for functions which it implements
10735 to always fail with ENOSYS. Some functions are actually named
10736 something starting with __ and the normal name is an alias. */
10737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10738 choke me
10739 #else
10740 $ac_func();
10741 #endif
10743 ; return 0; }
10745 if { (eval echo configure:10746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10746 rm -rf conftest*
10747 eval "ac_cv_func_$ac_func=yes"
10748 else
10749 echo "configure: failed program was:" >&5
10750 cat conftest.$ac_ext >&5
10751 rm -rf conftest*
10752 eval "ac_cv_func_$ac_func=no"
10754 rm -f conftest*
10757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10758 echo "$ac_t""yes" 1>&6
10759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10760 cat >> confdefs.h <<EOF
10761 #define $ac_tr_func 1
10764 else
10765 echo "$ac_t""no" 1>&6
10767 done
10769 else
10771 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
10772 echo "configure:10773: checking for _modff declaration" >&5
10773 if test x${glibcpp_cv_func__modff_use+set} != xset; then
10774 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
10775 echo $ac_n "(cached) $ac_c" 1>&6
10776 else
10779 ac_ext=C
10780 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10781 ac_cpp='$CXXCPP $CPPFLAGS'
10782 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10783 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10784 cross_compiling=$ac_cv_prog_cxx_cross
10786 cat > conftest.$ac_ext <<EOF
10787 #line 10788 "configure"
10788 #include "confdefs.h"
10789 #include <math.h>
10790 int main() {
10791 _modff(0, 0);
10792 ; return 0; }
10794 if { (eval echo configure:10795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10795 rm -rf conftest*
10796 glibcpp_cv_func__modff_use=yes
10797 else
10798 echo "configure: failed program was:" >&5
10799 cat conftest.$ac_ext >&5
10800 rm -rf conftest*
10801 glibcpp_cv_func__modff_use=no
10803 rm -f conftest*
10804 ac_ext=c
10805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10806 ac_cpp='$CPP $CPPFLAGS'
10807 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10808 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10809 cross_compiling=$ac_cv_prog_cc_cross
10815 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
10817 if test x$glibcpp_cv_func__modff_use = x"yes"; then
10818 for ac_func in _modff
10820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10821 echo "configure:10822: checking for $ac_func" >&5
10822 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10823 echo $ac_n "(cached) $ac_c" 1>&6
10824 else
10825 cat > conftest.$ac_ext <<EOF
10826 #line 10827 "configure"
10827 #include "confdefs.h"
10828 /* System header to define __stub macros and hopefully few prototypes,
10829 which can conflict with char $ac_func(); below. */
10830 #include <assert.h>
10831 /* Override any gcc2 internal prototype to avoid an error. */
10832 /* We use char because int might match the return type of a gcc2
10833 builtin and then its argument prototype would still apply. */
10834 char $ac_func();
10836 int main() {
10838 /* The GNU C library defines this for functions which it implements
10839 to always fail with ENOSYS. Some functions are actually named
10840 something starting with __ and the normal name is an alias. */
10841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10842 choke me
10843 #else
10844 $ac_func();
10845 #endif
10847 ; return 0; }
10849 if { (eval echo configure:10850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10850 rm -rf conftest*
10851 eval "ac_cv_func_$ac_func=yes"
10852 else
10853 echo "configure: failed program was:" >&5
10854 cat conftest.$ac_ext >&5
10855 rm -rf conftest*
10856 eval "ac_cv_func_$ac_func=no"
10858 rm -f conftest*
10861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10862 echo "$ac_t""yes" 1>&6
10863 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10864 cat >> confdefs.h <<EOF
10865 #define $ac_tr_func 1
10868 else
10869 echo "$ac_t""no" 1>&6
10871 done
10878 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10879 echo "configure:10880: checking for powf declaration" >&5
10880 if test x${glibcpp_cv_func_powf_use+set} != xset; then
10881 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10882 echo $ac_n "(cached) $ac_c" 1>&6
10883 else
10886 ac_ext=C
10887 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10888 ac_cpp='$CXXCPP $CPPFLAGS'
10889 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10890 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10891 cross_compiling=$ac_cv_prog_cxx_cross
10893 cat > conftest.$ac_ext <<EOF
10894 #line 10895 "configure"
10895 #include "confdefs.h"
10896 #include <math.h>
10897 int main() {
10898 powf(0, 0);
10899 ; return 0; }
10901 if { (eval echo configure:10902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10902 rm -rf conftest*
10903 glibcpp_cv_func_powf_use=yes
10904 else
10905 echo "configure: failed program was:" >&5
10906 cat conftest.$ac_ext >&5
10907 rm -rf conftest*
10908 glibcpp_cv_func_powf_use=no
10910 rm -f conftest*
10911 ac_ext=c
10912 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10913 ac_cpp='$CPP $CPPFLAGS'
10914 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10915 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10916 cross_compiling=$ac_cv_prog_cc_cross
10922 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10924 if test x$glibcpp_cv_func_powf_use = x"yes"; then
10925 for ac_func in powf
10927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10928 echo "configure:10929: checking for $ac_func" >&5
10929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10930 echo $ac_n "(cached) $ac_c" 1>&6
10931 else
10932 cat > conftest.$ac_ext <<EOF
10933 #line 10934 "configure"
10934 #include "confdefs.h"
10935 /* System header to define __stub macros and hopefully few prototypes,
10936 which can conflict with char $ac_func(); below. */
10937 #include <assert.h>
10938 /* Override any gcc2 internal prototype to avoid an error. */
10939 /* We use char because int might match the return type of a gcc2
10940 builtin and then its argument prototype would still apply. */
10941 char $ac_func();
10943 int main() {
10945 /* The GNU C library defines this for functions which it implements
10946 to always fail with ENOSYS. Some functions are actually named
10947 something starting with __ and the normal name is an alias. */
10948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10949 choke me
10950 #else
10951 $ac_func();
10952 #endif
10954 ; return 0; }
10956 if { (eval echo configure:10957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10957 rm -rf conftest*
10958 eval "ac_cv_func_$ac_func=yes"
10959 else
10960 echo "configure: failed program was:" >&5
10961 cat conftest.$ac_ext >&5
10962 rm -rf conftest*
10963 eval "ac_cv_func_$ac_func=no"
10965 rm -f conftest*
10968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10969 echo "$ac_t""yes" 1>&6
10970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10971 cat >> confdefs.h <<EOF
10972 #define $ac_tr_func 1
10975 else
10976 echo "$ac_t""no" 1>&6
10978 done
10980 else
10982 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10983 echo "configure:10984: checking for _powf declaration" >&5
10984 if test x${glibcpp_cv_func__powf_use+set} != xset; then
10985 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10986 echo $ac_n "(cached) $ac_c" 1>&6
10987 else
10990 ac_ext=C
10991 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10992 ac_cpp='$CXXCPP $CPPFLAGS'
10993 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10994 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10995 cross_compiling=$ac_cv_prog_cxx_cross
10997 cat > conftest.$ac_ext <<EOF
10998 #line 10999 "configure"
10999 #include "confdefs.h"
11000 #include <math.h>
11001 int main() {
11002 _powf(0, 0);
11003 ; return 0; }
11005 if { (eval echo configure:11006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11006 rm -rf conftest*
11007 glibcpp_cv_func__powf_use=yes
11008 else
11009 echo "configure: failed program was:" >&5
11010 cat conftest.$ac_ext >&5
11011 rm -rf conftest*
11012 glibcpp_cv_func__powf_use=no
11014 rm -f conftest*
11015 ac_ext=c
11016 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11017 ac_cpp='$CPP $CPPFLAGS'
11018 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11019 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11020 cross_compiling=$ac_cv_prog_cc_cross
11026 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
11028 if test x$glibcpp_cv_func__powf_use = x"yes"; then
11029 for ac_func in _powf
11031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11032 echo "configure:11033: checking for $ac_func" >&5
11033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11034 echo $ac_n "(cached) $ac_c" 1>&6
11035 else
11036 cat > conftest.$ac_ext <<EOF
11037 #line 11038 "configure"
11038 #include "confdefs.h"
11039 /* System header to define __stub macros and hopefully few prototypes,
11040 which can conflict with char $ac_func(); below. */
11041 #include <assert.h>
11042 /* Override any gcc2 internal prototype to avoid an error. */
11043 /* We use char because int might match the return type of a gcc2
11044 builtin and then its argument prototype would still apply. */
11045 char $ac_func();
11047 int main() {
11049 /* The GNU C library defines this for functions which it implements
11050 to always fail with ENOSYS. Some functions are actually named
11051 something starting with __ and the normal name is an alias. */
11052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11053 choke me
11054 #else
11055 $ac_func();
11056 #endif
11058 ; return 0; }
11060 if { (eval echo configure:11061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11061 rm -rf conftest*
11062 eval "ac_cv_func_$ac_func=yes"
11063 else
11064 echo "configure: failed program was:" >&5
11065 cat conftest.$ac_ext >&5
11066 rm -rf conftest*
11067 eval "ac_cv_func_$ac_func=no"
11069 rm -f conftest*
11072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11073 echo "$ac_t""yes" 1>&6
11074 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11075 cat >> confdefs.h <<EOF
11076 #define $ac_tr_func 1
11079 else
11080 echo "$ac_t""no" 1>&6
11082 done
11089 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
11090 echo "configure:11091: checking for sqrtf declaration" >&5
11091 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
11092 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
11093 echo $ac_n "(cached) $ac_c" 1>&6
11094 else
11097 ac_ext=C
11098 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11099 ac_cpp='$CXXCPP $CPPFLAGS'
11100 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11101 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11102 cross_compiling=$ac_cv_prog_cxx_cross
11104 cat > conftest.$ac_ext <<EOF
11105 #line 11106 "configure"
11106 #include "confdefs.h"
11107 #include <math.h>
11108 #ifdef HAVE_IEEEFP_H
11109 #include <ieeefp.h>
11110 #endif
11112 int main() {
11113 sqrtf(0);
11114 ; return 0; }
11116 if { (eval echo configure:11117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11117 rm -rf conftest*
11118 glibcpp_cv_func_sqrtf_use=yes
11119 else
11120 echo "configure: failed program was:" >&5
11121 cat conftest.$ac_ext >&5
11122 rm -rf conftest*
11123 glibcpp_cv_func_sqrtf_use=no
11125 rm -f conftest*
11126 ac_ext=c
11127 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11128 ac_cpp='$CPP $CPPFLAGS'
11129 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11130 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11131 cross_compiling=$ac_cv_prog_cc_cross
11137 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
11139 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
11140 for ac_func in sqrtf
11142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11143 echo "configure:11144: checking for $ac_func" >&5
11144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11145 echo $ac_n "(cached) $ac_c" 1>&6
11146 else
11147 cat > conftest.$ac_ext <<EOF
11148 #line 11149 "configure"
11149 #include "confdefs.h"
11150 /* System header to define __stub macros and hopefully few prototypes,
11151 which can conflict with char $ac_func(); below. */
11152 #include <assert.h>
11153 /* Override any gcc2 internal prototype to avoid an error. */
11154 /* We use char because int might match the return type of a gcc2
11155 builtin and then its argument prototype would still apply. */
11156 char $ac_func();
11158 int main() {
11160 /* The GNU C library defines this for functions which it implements
11161 to always fail with ENOSYS. Some functions are actually named
11162 something starting with __ and the normal name is an alias. */
11163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11164 choke me
11165 #else
11166 $ac_func();
11167 #endif
11169 ; return 0; }
11171 if { (eval echo configure:11172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11172 rm -rf conftest*
11173 eval "ac_cv_func_$ac_func=yes"
11174 else
11175 echo "configure: failed program was:" >&5
11176 cat conftest.$ac_ext >&5
11177 rm -rf conftest*
11178 eval "ac_cv_func_$ac_func=no"
11180 rm -f conftest*
11183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11184 echo "$ac_t""yes" 1>&6
11185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11186 cat >> confdefs.h <<EOF
11187 #define $ac_tr_func 1
11190 else
11191 echo "$ac_t""no" 1>&6
11193 done
11195 else
11197 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
11198 echo "configure:11199: checking for _sqrtf declaration" >&5
11199 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
11200 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
11201 echo $ac_n "(cached) $ac_c" 1>&6
11202 else
11205 ac_ext=C
11206 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11207 ac_cpp='$CXXCPP $CPPFLAGS'
11208 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11209 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11210 cross_compiling=$ac_cv_prog_cxx_cross
11212 cat > conftest.$ac_ext <<EOF
11213 #line 11214 "configure"
11214 #include "confdefs.h"
11215 #include <math.h>
11216 #ifdef HAVE_IEEEFP_H
11217 #include <ieeefp.h>
11218 #endif
11220 int main() {
11221 _sqrtf(0);
11222 ; return 0; }
11224 if { (eval echo configure:11225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11225 rm -rf conftest*
11226 glibcpp_cv_func__sqrtf_use=yes
11227 else
11228 echo "configure: failed program was:" >&5
11229 cat conftest.$ac_ext >&5
11230 rm -rf conftest*
11231 glibcpp_cv_func__sqrtf_use=no
11233 rm -f conftest*
11234 ac_ext=c
11235 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11236 ac_cpp='$CPP $CPPFLAGS'
11237 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11238 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11239 cross_compiling=$ac_cv_prog_cc_cross
11245 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
11247 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
11248 for ac_func in _sqrtf
11250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11251 echo "configure:11252: checking for $ac_func" >&5
11252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11253 echo $ac_n "(cached) $ac_c" 1>&6
11254 else
11255 cat > conftest.$ac_ext <<EOF
11256 #line 11257 "configure"
11257 #include "confdefs.h"
11258 /* System header to define __stub macros and hopefully few prototypes,
11259 which can conflict with char $ac_func(); below. */
11260 #include <assert.h>
11261 /* Override any gcc2 internal prototype to avoid an error. */
11262 /* We use char because int might match the return type of a gcc2
11263 builtin and then its argument prototype would still apply. */
11264 char $ac_func();
11266 int main() {
11268 /* The GNU C library defines this for functions which it implements
11269 to always fail with ENOSYS. Some functions are actually named
11270 something starting with __ and the normal name is an alias. */
11271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11272 choke me
11273 #else
11274 $ac_func();
11275 #endif
11277 ; return 0; }
11279 if { (eval echo configure:11280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11280 rm -rf conftest*
11281 eval "ac_cv_func_$ac_func=yes"
11282 else
11283 echo "configure: failed program was:" >&5
11284 cat conftest.$ac_ext >&5
11285 rm -rf conftest*
11286 eval "ac_cv_func_$ac_func=no"
11288 rm -f conftest*
11291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11292 echo "$ac_t""yes" 1>&6
11293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11294 cat >> confdefs.h <<EOF
11295 #define $ac_tr_func 1
11298 else
11299 echo "$ac_t""no" 1>&6
11301 done
11308 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
11309 echo "configure:11310: checking for sincosf declaration" >&5
11310 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
11311 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
11312 echo $ac_n "(cached) $ac_c" 1>&6
11313 else
11316 ac_ext=C
11317 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11318 ac_cpp='$CXXCPP $CPPFLAGS'
11319 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11320 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11321 cross_compiling=$ac_cv_prog_cxx_cross
11323 cat > conftest.$ac_ext <<EOF
11324 #line 11325 "configure"
11325 #include "confdefs.h"
11326 #include <math.h>
11327 int main() {
11328 sincosf(0, 0, 0);
11329 ; return 0; }
11331 if { (eval echo configure:11332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11332 rm -rf conftest*
11333 glibcpp_cv_func_sincosf_use=yes
11334 else
11335 echo "configure: failed program was:" >&5
11336 cat conftest.$ac_ext >&5
11337 rm -rf conftest*
11338 glibcpp_cv_func_sincosf_use=no
11340 rm -f conftest*
11341 ac_ext=c
11342 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11343 ac_cpp='$CPP $CPPFLAGS'
11344 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11345 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11346 cross_compiling=$ac_cv_prog_cc_cross
11352 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
11354 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
11355 for ac_func in sincosf
11357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11358 echo "configure:11359: checking for $ac_func" >&5
11359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11360 echo $ac_n "(cached) $ac_c" 1>&6
11361 else
11362 cat > conftest.$ac_ext <<EOF
11363 #line 11364 "configure"
11364 #include "confdefs.h"
11365 /* System header to define __stub macros and hopefully few prototypes,
11366 which can conflict with char $ac_func(); below. */
11367 #include <assert.h>
11368 /* Override any gcc2 internal prototype to avoid an error. */
11369 /* We use char because int might match the return type of a gcc2
11370 builtin and then its argument prototype would still apply. */
11371 char $ac_func();
11373 int main() {
11375 /* The GNU C library defines this for functions which it implements
11376 to always fail with ENOSYS. Some functions are actually named
11377 something starting with __ and the normal name is an alias. */
11378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11379 choke me
11380 #else
11381 $ac_func();
11382 #endif
11384 ; return 0; }
11386 if { (eval echo configure:11387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11387 rm -rf conftest*
11388 eval "ac_cv_func_$ac_func=yes"
11389 else
11390 echo "configure: failed program was:" >&5
11391 cat conftest.$ac_ext >&5
11392 rm -rf conftest*
11393 eval "ac_cv_func_$ac_func=no"
11395 rm -f conftest*
11398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11399 echo "$ac_t""yes" 1>&6
11400 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11401 cat >> confdefs.h <<EOF
11402 #define $ac_tr_func 1
11405 else
11406 echo "$ac_t""no" 1>&6
11408 done
11410 else
11412 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
11413 echo "configure:11414: checking for _sincosf declaration" >&5
11414 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
11415 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
11416 echo $ac_n "(cached) $ac_c" 1>&6
11417 else
11420 ac_ext=C
11421 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11422 ac_cpp='$CXXCPP $CPPFLAGS'
11423 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11424 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11425 cross_compiling=$ac_cv_prog_cxx_cross
11427 cat > conftest.$ac_ext <<EOF
11428 #line 11429 "configure"
11429 #include "confdefs.h"
11430 #include <math.h>
11431 int main() {
11432 _sincosf(0, 0, 0);
11433 ; return 0; }
11435 if { (eval echo configure:11436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11436 rm -rf conftest*
11437 glibcpp_cv_func__sincosf_use=yes
11438 else
11439 echo "configure: failed program was:" >&5
11440 cat conftest.$ac_ext >&5
11441 rm -rf conftest*
11442 glibcpp_cv_func__sincosf_use=no
11444 rm -f conftest*
11445 ac_ext=c
11446 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11447 ac_cpp='$CPP $CPPFLAGS'
11448 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11449 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11450 cross_compiling=$ac_cv_prog_cc_cross
11456 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
11458 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
11459 for ac_func in _sincosf
11461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11462 echo "configure:11463: checking for $ac_func" >&5
11463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11464 echo $ac_n "(cached) $ac_c" 1>&6
11465 else
11466 cat > conftest.$ac_ext <<EOF
11467 #line 11468 "configure"
11468 #include "confdefs.h"
11469 /* System header to define __stub macros and hopefully few prototypes,
11470 which can conflict with char $ac_func(); below. */
11471 #include <assert.h>
11472 /* Override any gcc2 internal prototype to avoid an error. */
11473 /* We use char because int might match the return type of a gcc2
11474 builtin and then its argument prototype would still apply. */
11475 char $ac_func();
11477 int main() {
11479 /* The GNU C library defines this for functions which it implements
11480 to always fail with ENOSYS. Some functions are actually named
11481 something starting with __ and the normal name is an alias. */
11482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11483 choke me
11484 #else
11485 $ac_func();
11486 #endif
11488 ; return 0; }
11490 if { (eval echo configure:11491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11491 rm -rf conftest*
11492 eval "ac_cv_func_$ac_func=yes"
11493 else
11494 echo "configure: failed program was:" >&5
11495 cat conftest.$ac_ext >&5
11496 rm -rf conftest*
11497 eval "ac_cv_func_$ac_func=no"
11499 rm -f conftest*
11502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11503 echo "$ac_t""yes" 1>&6
11504 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11505 cat >> confdefs.h <<EOF
11506 #define $ac_tr_func 1
11509 else
11510 echo "$ac_t""no" 1>&6
11512 done
11519 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
11520 echo "configure:11521: checking for finitef declaration" >&5
11521 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
11522 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
11523 echo $ac_n "(cached) $ac_c" 1>&6
11524 else
11527 ac_ext=C
11528 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11529 ac_cpp='$CXXCPP $CPPFLAGS'
11530 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11531 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11532 cross_compiling=$ac_cv_prog_cxx_cross
11534 cat > conftest.$ac_ext <<EOF
11535 #line 11536 "configure"
11536 #include "confdefs.h"
11537 #include <math.h>
11538 #ifdef HAVE_IEEEFP_H
11539 #include <ieeefp.h>
11540 #endif
11542 int main() {
11543 finitef(0);
11544 ; return 0; }
11546 if { (eval echo configure:11547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11547 rm -rf conftest*
11548 glibcpp_cv_func_finitef_use=yes
11549 else
11550 echo "configure: failed program was:" >&5
11551 cat conftest.$ac_ext >&5
11552 rm -rf conftest*
11553 glibcpp_cv_func_finitef_use=no
11555 rm -f conftest*
11556 ac_ext=c
11557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11558 ac_cpp='$CPP $CPPFLAGS'
11559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11561 cross_compiling=$ac_cv_prog_cc_cross
11567 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
11569 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
11570 for ac_func in finitef
11572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11573 echo "configure:11574: checking for $ac_func" >&5
11574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11575 echo $ac_n "(cached) $ac_c" 1>&6
11576 else
11577 cat > conftest.$ac_ext <<EOF
11578 #line 11579 "configure"
11579 #include "confdefs.h"
11580 /* System header to define __stub macros and hopefully few prototypes,
11581 which can conflict with char $ac_func(); below. */
11582 #include <assert.h>
11583 /* Override any gcc2 internal prototype to avoid an error. */
11584 /* We use char because int might match the return type of a gcc2
11585 builtin and then its argument prototype would still apply. */
11586 char $ac_func();
11588 int main() {
11590 /* The GNU C library defines this for functions which it implements
11591 to always fail with ENOSYS. Some functions are actually named
11592 something starting with __ and the normal name is an alias. */
11593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11594 choke me
11595 #else
11596 $ac_func();
11597 #endif
11599 ; return 0; }
11601 if { (eval echo configure:11602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11602 rm -rf conftest*
11603 eval "ac_cv_func_$ac_func=yes"
11604 else
11605 echo "configure: failed program was:" >&5
11606 cat conftest.$ac_ext >&5
11607 rm -rf conftest*
11608 eval "ac_cv_func_$ac_func=no"
11610 rm -f conftest*
11613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11614 echo "$ac_t""yes" 1>&6
11615 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11616 cat >> confdefs.h <<EOF
11617 #define $ac_tr_func 1
11620 else
11621 echo "$ac_t""no" 1>&6
11623 done
11625 else
11627 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
11628 echo "configure:11629: checking for _finitef declaration" >&5
11629 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
11630 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
11631 echo $ac_n "(cached) $ac_c" 1>&6
11632 else
11635 ac_ext=C
11636 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11637 ac_cpp='$CXXCPP $CPPFLAGS'
11638 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11639 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11640 cross_compiling=$ac_cv_prog_cxx_cross
11642 cat > conftest.$ac_ext <<EOF
11643 #line 11644 "configure"
11644 #include "confdefs.h"
11645 #include <math.h>
11646 #ifdef HAVE_IEEEFP_H
11647 #include <ieeefp.h>
11648 #endif
11650 int main() {
11651 _finitef(0);
11652 ; return 0; }
11654 if { (eval echo configure:11655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11655 rm -rf conftest*
11656 glibcpp_cv_func__finitef_use=yes
11657 else
11658 echo "configure: failed program was:" >&5
11659 cat conftest.$ac_ext >&5
11660 rm -rf conftest*
11661 glibcpp_cv_func__finitef_use=no
11663 rm -f conftest*
11664 ac_ext=c
11665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11666 ac_cpp='$CPP $CPPFLAGS'
11667 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11668 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11669 cross_compiling=$ac_cv_prog_cc_cross
11675 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
11677 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
11678 for ac_func in _finitef
11680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11681 echo "configure:11682: checking for $ac_func" >&5
11682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11683 echo $ac_n "(cached) $ac_c" 1>&6
11684 else
11685 cat > conftest.$ac_ext <<EOF
11686 #line 11687 "configure"
11687 #include "confdefs.h"
11688 /* System header to define __stub macros and hopefully few prototypes,
11689 which can conflict with char $ac_func(); below. */
11690 #include <assert.h>
11691 /* Override any gcc2 internal prototype to avoid an error. */
11692 /* We use char because int might match the return type of a gcc2
11693 builtin and then its argument prototype would still apply. */
11694 char $ac_func();
11696 int main() {
11698 /* The GNU C library defines this for functions which it implements
11699 to always fail with ENOSYS. Some functions are actually named
11700 something starting with __ and the normal name is an alias. */
11701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11702 choke me
11703 #else
11704 $ac_func();
11705 #endif
11707 ; return 0; }
11709 if { (eval echo configure:11710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11710 rm -rf conftest*
11711 eval "ac_cv_func_$ac_func=yes"
11712 else
11713 echo "configure: failed program was:" >&5
11714 cat conftest.$ac_ext >&5
11715 rm -rf conftest*
11716 eval "ac_cv_func_$ac_func=no"
11718 rm -f conftest*
11721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11722 echo "$ac_t""yes" 1>&6
11723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11724 cat >> confdefs.h <<EOF
11725 #define $ac_tr_func 1
11728 else
11729 echo "$ac_t""no" 1>&6
11731 done
11738 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
11739 echo "configure:11740: checking for long double trig functions" >&5
11740 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
11741 echo $ac_n "(cached) $ac_c" 1>&6
11742 else
11745 ac_ext=C
11746 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11747 ac_cpp='$CXXCPP $CPPFLAGS'
11748 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11749 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11750 cross_compiling=$ac_cv_prog_cxx_cross
11752 cat > conftest.$ac_ext <<EOF
11753 #line 11754 "configure"
11754 #include "confdefs.h"
11755 #include <math.h>
11756 int main() {
11757 `for x in acosl asinl atanl \
11758 cosl sinl tanl \
11759 coshl sinhl tanhl; do echo "$x (0);"; done`
11760 ; return 0; }
11762 if { (eval echo configure:11763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11763 rm -rf conftest*
11764 glibcpp_cv_func_long_double_trig_use=yes
11765 else
11766 echo "configure: failed program was:" >&5
11767 cat conftest.$ac_ext >&5
11768 rm -rf conftest*
11769 glibcpp_cv_func_long_double_trig_use=no
11771 rm -f conftest*
11772 ac_ext=c
11773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11774 ac_cpp='$CPP $CPPFLAGS'
11775 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11776 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11777 cross_compiling=$ac_cv_prog_cc_cross
11781 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
11782 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
11783 for ac_func in acosl asinl atanl \
11784 cosl sinl tanl \
11785 coshl sinhl tanhl
11787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11788 echo "configure:11789: checking for $ac_func" >&5
11789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11790 echo $ac_n "(cached) $ac_c" 1>&6
11791 else
11792 cat > conftest.$ac_ext <<EOF
11793 #line 11794 "configure"
11794 #include "confdefs.h"
11795 /* System header to define __stub macros and hopefully few prototypes,
11796 which can conflict with char $ac_func(); below. */
11797 #include <assert.h>
11798 /* Override any gcc2 internal prototype to avoid an error. */
11799 /* We use char because int might match the return type of a gcc2
11800 builtin and then its argument prototype would still apply. */
11801 char $ac_func();
11803 int main() {
11805 /* The GNU C library defines this for functions which it implements
11806 to always fail with ENOSYS. Some functions are actually named
11807 something starting with __ and the normal name is an alias. */
11808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11809 choke me
11810 #else
11811 $ac_func();
11812 #endif
11814 ; return 0; }
11816 if { (eval echo configure:11817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11817 rm -rf conftest*
11818 eval "ac_cv_func_$ac_func=yes"
11819 else
11820 echo "configure: failed program was:" >&5
11821 cat conftest.$ac_ext >&5
11822 rm -rf conftest*
11823 eval "ac_cv_func_$ac_func=no"
11825 rm -f conftest*
11828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11829 echo "$ac_t""yes" 1>&6
11830 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11831 cat >> confdefs.h <<EOF
11832 #define $ac_tr_func 1
11835 else
11836 echo "$ac_t""no" 1>&6
11838 done
11843 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
11844 echo "configure:11845: checking for long double round functions" >&5
11845 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
11846 echo $ac_n "(cached) $ac_c" 1>&6
11847 else
11850 ac_ext=C
11851 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11852 ac_cpp='$CXXCPP $CPPFLAGS'
11853 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11854 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11855 cross_compiling=$ac_cv_prog_cxx_cross
11857 cat > conftest.$ac_ext <<EOF
11858 #line 11859 "configure"
11859 #include "confdefs.h"
11860 #include <math.h>
11861 int main() {
11862 `for x in ceill floorl; do echo "$x (0);"; done`
11863 ; return 0; }
11865 if { (eval echo configure:11866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11866 rm -rf conftest*
11867 glibcpp_cv_func_long_double_round_use=yes
11868 else
11869 echo "configure: failed program was:" >&5
11870 cat conftest.$ac_ext >&5
11871 rm -rf conftest*
11872 glibcpp_cv_func_long_double_round_use=no
11874 rm -f conftest*
11875 ac_ext=c
11876 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11877 ac_cpp='$CPP $CPPFLAGS'
11878 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11879 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11880 cross_compiling=$ac_cv_prog_cc_cross
11884 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11885 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11886 for ac_func in ceill floorl
11888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11889 echo "configure:11890: checking for $ac_func" >&5
11890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11891 echo $ac_n "(cached) $ac_c" 1>&6
11892 else
11893 cat > conftest.$ac_ext <<EOF
11894 #line 11895 "configure"
11895 #include "confdefs.h"
11896 /* System header to define __stub macros and hopefully few prototypes,
11897 which can conflict with char $ac_func(); below. */
11898 #include <assert.h>
11899 /* Override any gcc2 internal prototype to avoid an error. */
11900 /* We use char because int might match the return type of a gcc2
11901 builtin and then its argument prototype would still apply. */
11902 char $ac_func();
11904 int main() {
11906 /* The GNU C library defines this for functions which it implements
11907 to always fail with ENOSYS. Some functions are actually named
11908 something starting with __ and the normal name is an alias. */
11909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11910 choke me
11911 #else
11912 $ac_func();
11913 #endif
11915 ; return 0; }
11917 if { (eval echo configure:11918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11918 rm -rf conftest*
11919 eval "ac_cv_func_$ac_func=yes"
11920 else
11921 echo "configure: failed program was:" >&5
11922 cat conftest.$ac_ext >&5
11923 rm -rf conftest*
11924 eval "ac_cv_func_$ac_func=no"
11926 rm -f conftest*
11929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11930 echo "$ac_t""yes" 1>&6
11931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11932 cat >> confdefs.h <<EOF
11933 #define $ac_tr_func 1
11936 else
11937 echo "$ac_t""no" 1>&6
11939 done
11945 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11946 echo "configure:11947: checking for isnanl declaration" >&5
11947 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11948 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11949 echo $ac_n "(cached) $ac_c" 1>&6
11950 else
11953 ac_ext=C
11954 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11955 ac_cpp='$CXXCPP $CPPFLAGS'
11956 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11957 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11958 cross_compiling=$ac_cv_prog_cxx_cross
11960 cat > conftest.$ac_ext <<EOF
11961 #line 11962 "configure"
11962 #include "confdefs.h"
11963 #include <math.h>
11964 #ifdef HAVE_IEEEFP_H
11965 #include <ieeefp.h>
11966 #endif
11968 int main() {
11969 isnanl(0);
11970 ; return 0; }
11972 if { (eval echo configure:11973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11973 rm -rf conftest*
11974 glibcpp_cv_func_isnanl_use=yes
11975 else
11976 echo "configure: failed program was:" >&5
11977 cat conftest.$ac_ext >&5
11978 rm -rf conftest*
11979 glibcpp_cv_func_isnanl_use=no
11981 rm -f conftest*
11982 ac_ext=c
11983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11984 ac_cpp='$CPP $CPPFLAGS'
11985 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11986 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11987 cross_compiling=$ac_cv_prog_cc_cross
11993 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11995 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11996 for ac_func in isnanl
11998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11999 echo "configure:12000: checking for $ac_func" >&5
12000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12001 echo $ac_n "(cached) $ac_c" 1>&6
12002 else
12003 cat > conftest.$ac_ext <<EOF
12004 #line 12005 "configure"
12005 #include "confdefs.h"
12006 /* System header to define __stub macros and hopefully few prototypes,
12007 which can conflict with char $ac_func(); below. */
12008 #include <assert.h>
12009 /* Override any gcc2 internal prototype to avoid an error. */
12010 /* We use char because int might match the return type of a gcc2
12011 builtin and then its argument prototype would still apply. */
12012 char $ac_func();
12014 int main() {
12016 /* The GNU C library defines this for functions which it implements
12017 to always fail with ENOSYS. Some functions are actually named
12018 something starting with __ and the normal name is an alias. */
12019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12020 choke me
12021 #else
12022 $ac_func();
12023 #endif
12025 ; return 0; }
12027 if { (eval echo configure:12028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12028 rm -rf conftest*
12029 eval "ac_cv_func_$ac_func=yes"
12030 else
12031 echo "configure: failed program was:" >&5
12032 cat conftest.$ac_ext >&5
12033 rm -rf conftest*
12034 eval "ac_cv_func_$ac_func=no"
12036 rm -f conftest*
12039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12040 echo "$ac_t""yes" 1>&6
12041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12042 cat >> confdefs.h <<EOF
12043 #define $ac_tr_func 1
12046 else
12047 echo "$ac_t""no" 1>&6
12049 done
12051 else
12053 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
12054 echo "configure:12055: checking for _isnanl declaration" >&5
12055 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
12056 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
12057 echo $ac_n "(cached) $ac_c" 1>&6
12058 else
12061 ac_ext=C
12062 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12063 ac_cpp='$CXXCPP $CPPFLAGS'
12064 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12065 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12066 cross_compiling=$ac_cv_prog_cxx_cross
12068 cat > conftest.$ac_ext <<EOF
12069 #line 12070 "configure"
12070 #include "confdefs.h"
12071 #include <math.h>
12072 #ifdef HAVE_IEEEFP_H
12073 #include <ieeefp.h>
12074 #endif
12076 int main() {
12077 _isnanl(0);
12078 ; return 0; }
12080 if { (eval echo configure:12081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12081 rm -rf conftest*
12082 glibcpp_cv_func__isnanl_use=yes
12083 else
12084 echo "configure: failed program was:" >&5
12085 cat conftest.$ac_ext >&5
12086 rm -rf conftest*
12087 glibcpp_cv_func__isnanl_use=no
12089 rm -f conftest*
12090 ac_ext=c
12091 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12092 ac_cpp='$CPP $CPPFLAGS'
12093 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12094 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12095 cross_compiling=$ac_cv_prog_cc_cross
12101 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
12103 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
12104 for ac_func in _isnanl
12106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12107 echo "configure:12108: checking for $ac_func" >&5
12108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12109 echo $ac_n "(cached) $ac_c" 1>&6
12110 else
12111 cat > conftest.$ac_ext <<EOF
12112 #line 12113 "configure"
12113 #include "confdefs.h"
12114 /* System header to define __stub macros and hopefully few prototypes,
12115 which can conflict with char $ac_func(); below. */
12116 #include <assert.h>
12117 /* Override any gcc2 internal prototype to avoid an error. */
12118 /* We use char because int might match the return type of a gcc2
12119 builtin and then its argument prototype would still apply. */
12120 char $ac_func();
12122 int main() {
12124 /* The GNU C library defines this for functions which it implements
12125 to always fail with ENOSYS. Some functions are actually named
12126 something starting with __ and the normal name is an alias. */
12127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12128 choke me
12129 #else
12130 $ac_func();
12131 #endif
12133 ; return 0; }
12135 if { (eval echo configure:12136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12136 rm -rf conftest*
12137 eval "ac_cv_func_$ac_func=yes"
12138 else
12139 echo "configure: failed program was:" >&5
12140 cat conftest.$ac_ext >&5
12141 rm -rf conftest*
12142 eval "ac_cv_func_$ac_func=no"
12144 rm -f conftest*
12147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12148 echo "$ac_t""yes" 1>&6
12149 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12150 cat >> confdefs.h <<EOF
12151 #define $ac_tr_func 1
12154 else
12155 echo "$ac_t""no" 1>&6
12157 done
12164 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
12165 echo "configure:12166: checking for isinfl declaration" >&5
12166 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
12167 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
12168 echo $ac_n "(cached) $ac_c" 1>&6
12169 else
12172 ac_ext=C
12173 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12174 ac_cpp='$CXXCPP $CPPFLAGS'
12175 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12176 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12177 cross_compiling=$ac_cv_prog_cxx_cross
12179 cat > conftest.$ac_ext <<EOF
12180 #line 12181 "configure"
12181 #include "confdefs.h"
12182 #include <math.h>
12183 #ifdef HAVE_IEEEFP_H
12184 #include <ieeefp.h>
12185 #endif
12187 int main() {
12188 isinfl(0);
12189 ; return 0; }
12191 if { (eval echo configure:12192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12192 rm -rf conftest*
12193 glibcpp_cv_func_isinfl_use=yes
12194 else
12195 echo "configure: failed program was:" >&5
12196 cat conftest.$ac_ext >&5
12197 rm -rf conftest*
12198 glibcpp_cv_func_isinfl_use=no
12200 rm -f conftest*
12201 ac_ext=c
12202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12203 ac_cpp='$CPP $CPPFLAGS'
12204 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12205 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12206 cross_compiling=$ac_cv_prog_cc_cross
12212 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
12214 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
12215 for ac_func in isinfl
12217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12218 echo "configure:12219: checking for $ac_func" >&5
12219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12220 echo $ac_n "(cached) $ac_c" 1>&6
12221 else
12222 cat > conftest.$ac_ext <<EOF
12223 #line 12224 "configure"
12224 #include "confdefs.h"
12225 /* System header to define __stub macros and hopefully few prototypes,
12226 which can conflict with char $ac_func(); below. */
12227 #include <assert.h>
12228 /* Override any gcc2 internal prototype to avoid an error. */
12229 /* We use char because int might match the return type of a gcc2
12230 builtin and then its argument prototype would still apply. */
12231 char $ac_func();
12233 int main() {
12235 /* The GNU C library defines this for functions which it implements
12236 to always fail with ENOSYS. Some functions are actually named
12237 something starting with __ and the normal name is an alias. */
12238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12239 choke me
12240 #else
12241 $ac_func();
12242 #endif
12244 ; return 0; }
12246 if { (eval echo configure:12247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12247 rm -rf conftest*
12248 eval "ac_cv_func_$ac_func=yes"
12249 else
12250 echo "configure: failed program was:" >&5
12251 cat conftest.$ac_ext >&5
12252 rm -rf conftest*
12253 eval "ac_cv_func_$ac_func=no"
12255 rm -f conftest*
12258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12259 echo "$ac_t""yes" 1>&6
12260 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12261 cat >> confdefs.h <<EOF
12262 #define $ac_tr_func 1
12265 else
12266 echo "$ac_t""no" 1>&6
12268 done
12270 else
12272 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
12273 echo "configure:12274: checking for _isinfl declaration" >&5
12274 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
12275 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
12276 echo $ac_n "(cached) $ac_c" 1>&6
12277 else
12280 ac_ext=C
12281 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12282 ac_cpp='$CXXCPP $CPPFLAGS'
12283 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12284 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12285 cross_compiling=$ac_cv_prog_cxx_cross
12287 cat > conftest.$ac_ext <<EOF
12288 #line 12289 "configure"
12289 #include "confdefs.h"
12290 #include <math.h>
12291 #ifdef HAVE_IEEEFP_H
12292 #include <ieeefp.h>
12293 #endif
12295 int main() {
12296 _isinfl(0);
12297 ; return 0; }
12299 if { (eval echo configure:12300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12300 rm -rf conftest*
12301 glibcpp_cv_func__isinfl_use=yes
12302 else
12303 echo "configure: failed program was:" >&5
12304 cat conftest.$ac_ext >&5
12305 rm -rf conftest*
12306 glibcpp_cv_func__isinfl_use=no
12308 rm -f conftest*
12309 ac_ext=c
12310 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12311 ac_cpp='$CPP $CPPFLAGS'
12312 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12313 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12314 cross_compiling=$ac_cv_prog_cc_cross
12320 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
12322 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
12323 for ac_func in _isinfl
12325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12326 echo "configure:12327: checking for $ac_func" >&5
12327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12328 echo $ac_n "(cached) $ac_c" 1>&6
12329 else
12330 cat > conftest.$ac_ext <<EOF
12331 #line 12332 "configure"
12332 #include "confdefs.h"
12333 /* System header to define __stub macros and hopefully few prototypes,
12334 which can conflict with char $ac_func(); below. */
12335 #include <assert.h>
12336 /* Override any gcc2 internal prototype to avoid an error. */
12337 /* We use char because int might match the return type of a gcc2
12338 builtin and then its argument prototype would still apply. */
12339 char $ac_func();
12341 int main() {
12343 /* The GNU C library defines this for functions which it implements
12344 to always fail with ENOSYS. Some functions are actually named
12345 something starting with __ and the normal name is an alias. */
12346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12347 choke me
12348 #else
12349 $ac_func();
12350 #endif
12352 ; return 0; }
12354 if { (eval echo configure:12355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12355 rm -rf conftest*
12356 eval "ac_cv_func_$ac_func=yes"
12357 else
12358 echo "configure: failed program was:" >&5
12359 cat conftest.$ac_ext >&5
12360 rm -rf conftest*
12361 eval "ac_cv_func_$ac_func=no"
12363 rm -f conftest*
12366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12367 echo "$ac_t""yes" 1>&6
12368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12369 cat >> confdefs.h <<EOF
12370 #define $ac_tr_func 1
12373 else
12374 echo "$ac_t""no" 1>&6
12376 done
12383 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
12384 echo "configure:12385: checking for copysignl declaration" >&5
12385 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
12386 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
12387 echo $ac_n "(cached) $ac_c" 1>&6
12388 else
12391 ac_ext=C
12392 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12393 ac_cpp='$CXXCPP $CPPFLAGS'
12394 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12395 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12396 cross_compiling=$ac_cv_prog_cxx_cross
12398 cat > conftest.$ac_ext <<EOF
12399 #line 12400 "configure"
12400 #include "confdefs.h"
12401 #include <math.h>
12402 int main() {
12403 copysignl(0, 0);
12404 ; return 0; }
12406 if { (eval echo configure:12407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12407 rm -rf conftest*
12408 glibcpp_cv_func_copysignl_use=yes
12409 else
12410 echo "configure: failed program was:" >&5
12411 cat conftest.$ac_ext >&5
12412 rm -rf conftest*
12413 glibcpp_cv_func_copysignl_use=no
12415 rm -f conftest*
12416 ac_ext=c
12417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12418 ac_cpp='$CPP $CPPFLAGS'
12419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12421 cross_compiling=$ac_cv_prog_cc_cross
12427 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
12429 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
12430 for ac_func in copysignl
12432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12433 echo "configure:12434: checking for $ac_func" >&5
12434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12435 echo $ac_n "(cached) $ac_c" 1>&6
12436 else
12437 cat > conftest.$ac_ext <<EOF
12438 #line 12439 "configure"
12439 #include "confdefs.h"
12440 /* System header to define __stub macros and hopefully few prototypes,
12441 which can conflict with char $ac_func(); below. */
12442 #include <assert.h>
12443 /* Override any gcc2 internal prototype to avoid an error. */
12444 /* We use char because int might match the return type of a gcc2
12445 builtin and then its argument prototype would still apply. */
12446 char $ac_func();
12448 int main() {
12450 /* The GNU C library defines this for functions which it implements
12451 to always fail with ENOSYS. Some functions are actually named
12452 something starting with __ and the normal name is an alias. */
12453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12454 choke me
12455 #else
12456 $ac_func();
12457 #endif
12459 ; return 0; }
12461 if { (eval echo configure:12462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12462 rm -rf conftest*
12463 eval "ac_cv_func_$ac_func=yes"
12464 else
12465 echo "configure: failed program was:" >&5
12466 cat conftest.$ac_ext >&5
12467 rm -rf conftest*
12468 eval "ac_cv_func_$ac_func=no"
12470 rm -f conftest*
12473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12474 echo "$ac_t""yes" 1>&6
12475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12476 cat >> confdefs.h <<EOF
12477 #define $ac_tr_func 1
12480 else
12481 echo "$ac_t""no" 1>&6
12483 done
12485 else
12487 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
12488 echo "configure:12489: checking for _copysignl declaration" >&5
12489 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
12490 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
12491 echo $ac_n "(cached) $ac_c" 1>&6
12492 else
12495 ac_ext=C
12496 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12497 ac_cpp='$CXXCPP $CPPFLAGS'
12498 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12499 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12500 cross_compiling=$ac_cv_prog_cxx_cross
12502 cat > conftest.$ac_ext <<EOF
12503 #line 12504 "configure"
12504 #include "confdefs.h"
12505 #include <math.h>
12506 int main() {
12507 _copysignl(0, 0);
12508 ; return 0; }
12510 if { (eval echo configure:12511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12511 rm -rf conftest*
12512 glibcpp_cv_func__copysignl_use=yes
12513 else
12514 echo "configure: failed program was:" >&5
12515 cat conftest.$ac_ext >&5
12516 rm -rf conftest*
12517 glibcpp_cv_func__copysignl_use=no
12519 rm -f conftest*
12520 ac_ext=c
12521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12522 ac_cpp='$CPP $CPPFLAGS'
12523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12525 cross_compiling=$ac_cv_prog_cc_cross
12531 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
12533 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
12534 for ac_func in _copysignl
12536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12537 echo "configure:12538: checking for $ac_func" >&5
12538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12539 echo $ac_n "(cached) $ac_c" 1>&6
12540 else
12541 cat > conftest.$ac_ext <<EOF
12542 #line 12543 "configure"
12543 #include "confdefs.h"
12544 /* System header to define __stub macros and hopefully few prototypes,
12545 which can conflict with char $ac_func(); below. */
12546 #include <assert.h>
12547 /* Override any gcc2 internal prototype to avoid an error. */
12548 /* We use char because int might match the return type of a gcc2
12549 builtin and then its argument prototype would still apply. */
12550 char $ac_func();
12552 int main() {
12554 /* The GNU C library defines this for functions which it implements
12555 to always fail with ENOSYS. Some functions are actually named
12556 something starting with __ and the normal name is an alias. */
12557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12558 choke me
12559 #else
12560 $ac_func();
12561 #endif
12563 ; return 0; }
12565 if { (eval echo configure:12566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12566 rm -rf conftest*
12567 eval "ac_cv_func_$ac_func=yes"
12568 else
12569 echo "configure: failed program was:" >&5
12570 cat conftest.$ac_ext >&5
12571 rm -rf conftest*
12572 eval "ac_cv_func_$ac_func=no"
12574 rm -f conftest*
12577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12578 echo "$ac_t""yes" 1>&6
12579 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12580 cat >> confdefs.h <<EOF
12581 #define $ac_tr_func 1
12584 else
12585 echo "$ac_t""no" 1>&6
12587 done
12594 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
12595 echo "configure:12596: checking for atan2l declaration" >&5
12596 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
12597 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
12598 echo $ac_n "(cached) $ac_c" 1>&6
12599 else
12602 ac_ext=C
12603 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12604 ac_cpp='$CXXCPP $CPPFLAGS'
12605 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12606 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12607 cross_compiling=$ac_cv_prog_cxx_cross
12609 cat > conftest.$ac_ext <<EOF
12610 #line 12611 "configure"
12611 #include "confdefs.h"
12612 #include <math.h>
12613 int main() {
12614 atan2l(0, 0);
12615 ; return 0; }
12617 if { (eval echo configure:12618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12618 rm -rf conftest*
12619 glibcpp_cv_func_atan2l_use=yes
12620 else
12621 echo "configure: failed program was:" >&5
12622 cat conftest.$ac_ext >&5
12623 rm -rf conftest*
12624 glibcpp_cv_func_atan2l_use=no
12626 rm -f conftest*
12627 ac_ext=c
12628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12629 ac_cpp='$CPP $CPPFLAGS'
12630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12632 cross_compiling=$ac_cv_prog_cc_cross
12638 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
12640 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
12641 for ac_func in atan2l
12643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12644 echo "configure:12645: checking for $ac_func" >&5
12645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12646 echo $ac_n "(cached) $ac_c" 1>&6
12647 else
12648 cat > conftest.$ac_ext <<EOF
12649 #line 12650 "configure"
12650 #include "confdefs.h"
12651 /* System header to define __stub macros and hopefully few prototypes,
12652 which can conflict with char $ac_func(); below. */
12653 #include <assert.h>
12654 /* Override any gcc2 internal prototype to avoid an error. */
12655 /* We use char because int might match the return type of a gcc2
12656 builtin and then its argument prototype would still apply. */
12657 char $ac_func();
12659 int main() {
12661 /* The GNU C library defines this for functions which it implements
12662 to always fail with ENOSYS. Some functions are actually named
12663 something starting with __ and the normal name is an alias. */
12664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12665 choke me
12666 #else
12667 $ac_func();
12668 #endif
12670 ; return 0; }
12672 if { (eval echo configure:12673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12673 rm -rf conftest*
12674 eval "ac_cv_func_$ac_func=yes"
12675 else
12676 echo "configure: failed program was:" >&5
12677 cat conftest.$ac_ext >&5
12678 rm -rf conftest*
12679 eval "ac_cv_func_$ac_func=no"
12681 rm -f conftest*
12684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12685 echo "$ac_t""yes" 1>&6
12686 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12687 cat >> confdefs.h <<EOF
12688 #define $ac_tr_func 1
12691 else
12692 echo "$ac_t""no" 1>&6
12694 done
12696 else
12698 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
12699 echo "configure:12700: checking for _atan2l declaration" >&5
12700 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
12701 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
12702 echo $ac_n "(cached) $ac_c" 1>&6
12703 else
12706 ac_ext=C
12707 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12708 ac_cpp='$CXXCPP $CPPFLAGS'
12709 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12710 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12711 cross_compiling=$ac_cv_prog_cxx_cross
12713 cat > conftest.$ac_ext <<EOF
12714 #line 12715 "configure"
12715 #include "confdefs.h"
12716 #include <math.h>
12717 int main() {
12718 _atan2l(0, 0);
12719 ; return 0; }
12721 if { (eval echo configure:12722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12722 rm -rf conftest*
12723 glibcpp_cv_func__atan2l_use=yes
12724 else
12725 echo "configure: failed program was:" >&5
12726 cat conftest.$ac_ext >&5
12727 rm -rf conftest*
12728 glibcpp_cv_func__atan2l_use=no
12730 rm -f conftest*
12731 ac_ext=c
12732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12733 ac_cpp='$CPP $CPPFLAGS'
12734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12736 cross_compiling=$ac_cv_prog_cc_cross
12742 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
12744 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
12745 for ac_func in _atan2l
12747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12748 echo "configure:12749: checking for $ac_func" >&5
12749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12750 echo $ac_n "(cached) $ac_c" 1>&6
12751 else
12752 cat > conftest.$ac_ext <<EOF
12753 #line 12754 "configure"
12754 #include "confdefs.h"
12755 /* System header to define __stub macros and hopefully few prototypes,
12756 which can conflict with char $ac_func(); below. */
12757 #include <assert.h>
12758 /* Override any gcc2 internal prototype to avoid an error. */
12759 /* We use char because int might match the return type of a gcc2
12760 builtin and then its argument prototype would still apply. */
12761 char $ac_func();
12763 int main() {
12765 /* The GNU C library defines this for functions which it implements
12766 to always fail with ENOSYS. Some functions are actually named
12767 something starting with __ and the normal name is an alias. */
12768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12769 choke me
12770 #else
12771 $ac_func();
12772 #endif
12774 ; return 0; }
12776 if { (eval echo configure:12777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12777 rm -rf conftest*
12778 eval "ac_cv_func_$ac_func=yes"
12779 else
12780 echo "configure: failed program was:" >&5
12781 cat conftest.$ac_ext >&5
12782 rm -rf conftest*
12783 eval "ac_cv_func_$ac_func=no"
12785 rm -f conftest*
12788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12789 echo "$ac_t""yes" 1>&6
12790 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12791 cat >> confdefs.h <<EOF
12792 #define $ac_tr_func 1
12795 else
12796 echo "$ac_t""no" 1>&6
12798 done
12805 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
12806 echo "configure:12807: checking for expl declaration" >&5
12807 if test x${glibcpp_cv_func_expl_use+set} != xset; then
12808 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
12809 echo $ac_n "(cached) $ac_c" 1>&6
12810 else
12813 ac_ext=C
12814 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12815 ac_cpp='$CXXCPP $CPPFLAGS'
12816 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12817 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12818 cross_compiling=$ac_cv_prog_cxx_cross
12820 cat > conftest.$ac_ext <<EOF
12821 #line 12822 "configure"
12822 #include "confdefs.h"
12823 #include <math.h>
12824 #ifdef HAVE_IEEEFP_H
12825 #include <ieeefp.h>
12826 #endif
12828 int main() {
12829 expl(0);
12830 ; return 0; }
12832 if { (eval echo configure:12833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12833 rm -rf conftest*
12834 glibcpp_cv_func_expl_use=yes
12835 else
12836 echo "configure: failed program was:" >&5
12837 cat conftest.$ac_ext >&5
12838 rm -rf conftest*
12839 glibcpp_cv_func_expl_use=no
12841 rm -f conftest*
12842 ac_ext=c
12843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12844 ac_cpp='$CPP $CPPFLAGS'
12845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12846 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12847 cross_compiling=$ac_cv_prog_cc_cross
12853 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
12855 if test x$glibcpp_cv_func_expl_use = x"yes"; then
12856 for ac_func in expl
12858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12859 echo "configure:12860: checking for $ac_func" >&5
12860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12861 echo $ac_n "(cached) $ac_c" 1>&6
12862 else
12863 cat > conftest.$ac_ext <<EOF
12864 #line 12865 "configure"
12865 #include "confdefs.h"
12866 /* System header to define __stub macros and hopefully few prototypes,
12867 which can conflict with char $ac_func(); below. */
12868 #include <assert.h>
12869 /* Override any gcc2 internal prototype to avoid an error. */
12870 /* We use char because int might match the return type of a gcc2
12871 builtin and then its argument prototype would still apply. */
12872 char $ac_func();
12874 int main() {
12876 /* The GNU C library defines this for functions which it implements
12877 to always fail with ENOSYS. Some functions are actually named
12878 something starting with __ and the normal name is an alias. */
12879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12880 choke me
12881 #else
12882 $ac_func();
12883 #endif
12885 ; return 0; }
12887 if { (eval echo configure:12888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12888 rm -rf conftest*
12889 eval "ac_cv_func_$ac_func=yes"
12890 else
12891 echo "configure: failed program was:" >&5
12892 cat conftest.$ac_ext >&5
12893 rm -rf conftest*
12894 eval "ac_cv_func_$ac_func=no"
12896 rm -f conftest*
12899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12900 echo "$ac_t""yes" 1>&6
12901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12902 cat >> confdefs.h <<EOF
12903 #define $ac_tr_func 1
12906 else
12907 echo "$ac_t""no" 1>&6
12909 done
12911 else
12913 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12914 echo "configure:12915: checking for _expl declaration" >&5
12915 if test x${glibcpp_cv_func__expl_use+set} != xset; then
12916 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12917 echo $ac_n "(cached) $ac_c" 1>&6
12918 else
12921 ac_ext=C
12922 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12923 ac_cpp='$CXXCPP $CPPFLAGS'
12924 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12925 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12926 cross_compiling=$ac_cv_prog_cxx_cross
12928 cat > conftest.$ac_ext <<EOF
12929 #line 12930 "configure"
12930 #include "confdefs.h"
12931 #include <math.h>
12932 #ifdef HAVE_IEEEFP_H
12933 #include <ieeefp.h>
12934 #endif
12936 int main() {
12937 _expl(0);
12938 ; return 0; }
12940 if { (eval echo configure:12941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12941 rm -rf conftest*
12942 glibcpp_cv_func__expl_use=yes
12943 else
12944 echo "configure: failed program was:" >&5
12945 cat conftest.$ac_ext >&5
12946 rm -rf conftest*
12947 glibcpp_cv_func__expl_use=no
12949 rm -f conftest*
12950 ac_ext=c
12951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12952 ac_cpp='$CPP $CPPFLAGS'
12953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12955 cross_compiling=$ac_cv_prog_cc_cross
12961 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12963 if test x$glibcpp_cv_func__expl_use = x"yes"; then
12964 for ac_func in _expl
12966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12967 echo "configure:12968: checking for $ac_func" >&5
12968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12969 echo $ac_n "(cached) $ac_c" 1>&6
12970 else
12971 cat > conftest.$ac_ext <<EOF
12972 #line 12973 "configure"
12973 #include "confdefs.h"
12974 /* System header to define __stub macros and hopefully few prototypes,
12975 which can conflict with char $ac_func(); below. */
12976 #include <assert.h>
12977 /* Override any gcc2 internal prototype to avoid an error. */
12978 /* We use char because int might match the return type of a gcc2
12979 builtin and then its argument prototype would still apply. */
12980 char $ac_func();
12982 int main() {
12984 /* The GNU C library defines this for functions which it implements
12985 to always fail with ENOSYS. Some functions are actually named
12986 something starting with __ and the normal name is an alias. */
12987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12988 choke me
12989 #else
12990 $ac_func();
12991 #endif
12993 ; return 0; }
12995 if { (eval echo configure:12996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12996 rm -rf conftest*
12997 eval "ac_cv_func_$ac_func=yes"
12998 else
12999 echo "configure: failed program was:" >&5
13000 cat conftest.$ac_ext >&5
13001 rm -rf conftest*
13002 eval "ac_cv_func_$ac_func=no"
13004 rm -f conftest*
13007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13008 echo "$ac_t""yes" 1>&6
13009 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13010 cat >> confdefs.h <<EOF
13011 #define $ac_tr_func 1
13014 else
13015 echo "$ac_t""no" 1>&6
13017 done
13024 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
13025 echo "configure:13026: checking for fabsl declaration" >&5
13026 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
13027 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
13028 echo $ac_n "(cached) $ac_c" 1>&6
13029 else
13032 ac_ext=C
13033 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13034 ac_cpp='$CXXCPP $CPPFLAGS'
13035 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13036 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13037 cross_compiling=$ac_cv_prog_cxx_cross
13039 cat > conftest.$ac_ext <<EOF
13040 #line 13041 "configure"
13041 #include "confdefs.h"
13042 #include <math.h>
13043 #ifdef HAVE_IEEEFP_H
13044 #include <ieeefp.h>
13045 #endif
13047 int main() {
13048 fabsl(0);
13049 ; return 0; }
13051 if { (eval echo configure:13052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13052 rm -rf conftest*
13053 glibcpp_cv_func_fabsl_use=yes
13054 else
13055 echo "configure: failed program was:" >&5
13056 cat conftest.$ac_ext >&5
13057 rm -rf conftest*
13058 glibcpp_cv_func_fabsl_use=no
13060 rm -f conftest*
13061 ac_ext=c
13062 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13063 ac_cpp='$CPP $CPPFLAGS'
13064 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13065 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13066 cross_compiling=$ac_cv_prog_cc_cross
13072 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
13074 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
13075 for ac_func in fabsl
13077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13078 echo "configure:13079: checking for $ac_func" >&5
13079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13080 echo $ac_n "(cached) $ac_c" 1>&6
13081 else
13082 cat > conftest.$ac_ext <<EOF
13083 #line 13084 "configure"
13084 #include "confdefs.h"
13085 /* System header to define __stub macros and hopefully few prototypes,
13086 which can conflict with char $ac_func(); below. */
13087 #include <assert.h>
13088 /* Override any gcc2 internal prototype to avoid an error. */
13089 /* We use char because int might match the return type of a gcc2
13090 builtin and then its argument prototype would still apply. */
13091 char $ac_func();
13093 int main() {
13095 /* The GNU C library defines this for functions which it implements
13096 to always fail with ENOSYS. Some functions are actually named
13097 something starting with __ and the normal name is an alias. */
13098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13099 choke me
13100 #else
13101 $ac_func();
13102 #endif
13104 ; return 0; }
13106 if { (eval echo configure:13107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13107 rm -rf conftest*
13108 eval "ac_cv_func_$ac_func=yes"
13109 else
13110 echo "configure: failed program was:" >&5
13111 cat conftest.$ac_ext >&5
13112 rm -rf conftest*
13113 eval "ac_cv_func_$ac_func=no"
13115 rm -f conftest*
13118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13119 echo "$ac_t""yes" 1>&6
13120 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13121 cat >> confdefs.h <<EOF
13122 #define $ac_tr_func 1
13125 else
13126 echo "$ac_t""no" 1>&6
13128 done
13130 else
13132 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
13133 echo "configure:13134: checking for _fabsl declaration" >&5
13134 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
13135 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
13136 echo $ac_n "(cached) $ac_c" 1>&6
13137 else
13140 ac_ext=C
13141 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13142 ac_cpp='$CXXCPP $CPPFLAGS'
13143 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13144 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13145 cross_compiling=$ac_cv_prog_cxx_cross
13147 cat > conftest.$ac_ext <<EOF
13148 #line 13149 "configure"
13149 #include "confdefs.h"
13150 #include <math.h>
13151 #ifdef HAVE_IEEEFP_H
13152 #include <ieeefp.h>
13153 #endif
13155 int main() {
13156 _fabsl(0);
13157 ; return 0; }
13159 if { (eval echo configure:13160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13160 rm -rf conftest*
13161 glibcpp_cv_func__fabsl_use=yes
13162 else
13163 echo "configure: failed program was:" >&5
13164 cat conftest.$ac_ext >&5
13165 rm -rf conftest*
13166 glibcpp_cv_func__fabsl_use=no
13168 rm -f conftest*
13169 ac_ext=c
13170 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13171 ac_cpp='$CPP $CPPFLAGS'
13172 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13173 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13174 cross_compiling=$ac_cv_prog_cc_cross
13180 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
13182 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
13183 for ac_func in _fabsl
13185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13186 echo "configure:13187: checking for $ac_func" >&5
13187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13188 echo $ac_n "(cached) $ac_c" 1>&6
13189 else
13190 cat > conftest.$ac_ext <<EOF
13191 #line 13192 "configure"
13192 #include "confdefs.h"
13193 /* System header to define __stub macros and hopefully few prototypes,
13194 which can conflict with char $ac_func(); below. */
13195 #include <assert.h>
13196 /* Override any gcc2 internal prototype to avoid an error. */
13197 /* We use char because int might match the return type of a gcc2
13198 builtin and then its argument prototype would still apply. */
13199 char $ac_func();
13201 int main() {
13203 /* The GNU C library defines this for functions which it implements
13204 to always fail with ENOSYS. Some functions are actually named
13205 something starting with __ and the normal name is an alias. */
13206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13207 choke me
13208 #else
13209 $ac_func();
13210 #endif
13212 ; return 0; }
13214 if { (eval echo configure:13215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13215 rm -rf conftest*
13216 eval "ac_cv_func_$ac_func=yes"
13217 else
13218 echo "configure: failed program was:" >&5
13219 cat conftest.$ac_ext >&5
13220 rm -rf conftest*
13221 eval "ac_cv_func_$ac_func=no"
13223 rm -f conftest*
13226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13227 echo "$ac_t""yes" 1>&6
13228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13229 cat >> confdefs.h <<EOF
13230 #define $ac_tr_func 1
13233 else
13234 echo "$ac_t""no" 1>&6
13236 done
13243 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
13244 echo "configure:13245: checking for fmodl declaration" >&5
13245 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
13246 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
13247 echo $ac_n "(cached) $ac_c" 1>&6
13248 else
13251 ac_ext=C
13252 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13253 ac_cpp='$CXXCPP $CPPFLAGS'
13254 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13255 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13256 cross_compiling=$ac_cv_prog_cxx_cross
13258 cat > conftest.$ac_ext <<EOF
13259 #line 13260 "configure"
13260 #include "confdefs.h"
13261 #include <math.h>
13262 int main() {
13263 fmodl(0, 0);
13264 ; return 0; }
13266 if { (eval echo configure:13267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13267 rm -rf conftest*
13268 glibcpp_cv_func_fmodl_use=yes
13269 else
13270 echo "configure: failed program was:" >&5
13271 cat conftest.$ac_ext >&5
13272 rm -rf conftest*
13273 glibcpp_cv_func_fmodl_use=no
13275 rm -f conftest*
13276 ac_ext=c
13277 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13278 ac_cpp='$CPP $CPPFLAGS'
13279 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13280 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13281 cross_compiling=$ac_cv_prog_cc_cross
13287 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
13289 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
13290 for ac_func in fmodl
13292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13293 echo "configure:13294: checking for $ac_func" >&5
13294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13295 echo $ac_n "(cached) $ac_c" 1>&6
13296 else
13297 cat > conftest.$ac_ext <<EOF
13298 #line 13299 "configure"
13299 #include "confdefs.h"
13300 /* System header to define __stub macros and hopefully few prototypes,
13301 which can conflict with char $ac_func(); below. */
13302 #include <assert.h>
13303 /* Override any gcc2 internal prototype to avoid an error. */
13304 /* We use char because int might match the return type of a gcc2
13305 builtin and then its argument prototype would still apply. */
13306 char $ac_func();
13308 int main() {
13310 /* The GNU C library defines this for functions which it implements
13311 to always fail with ENOSYS. Some functions are actually named
13312 something starting with __ and the normal name is an alias. */
13313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13314 choke me
13315 #else
13316 $ac_func();
13317 #endif
13319 ; return 0; }
13321 if { (eval echo configure:13322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13322 rm -rf conftest*
13323 eval "ac_cv_func_$ac_func=yes"
13324 else
13325 echo "configure: failed program was:" >&5
13326 cat conftest.$ac_ext >&5
13327 rm -rf conftest*
13328 eval "ac_cv_func_$ac_func=no"
13330 rm -f conftest*
13333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13334 echo "$ac_t""yes" 1>&6
13335 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13336 cat >> confdefs.h <<EOF
13337 #define $ac_tr_func 1
13340 else
13341 echo "$ac_t""no" 1>&6
13343 done
13345 else
13347 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
13348 echo "configure:13349: checking for _fmodl declaration" >&5
13349 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
13350 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
13351 echo $ac_n "(cached) $ac_c" 1>&6
13352 else
13355 ac_ext=C
13356 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13357 ac_cpp='$CXXCPP $CPPFLAGS'
13358 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13359 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13360 cross_compiling=$ac_cv_prog_cxx_cross
13362 cat > conftest.$ac_ext <<EOF
13363 #line 13364 "configure"
13364 #include "confdefs.h"
13365 #include <math.h>
13366 int main() {
13367 _fmodl(0, 0);
13368 ; return 0; }
13370 if { (eval echo configure:13371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13371 rm -rf conftest*
13372 glibcpp_cv_func__fmodl_use=yes
13373 else
13374 echo "configure: failed program was:" >&5
13375 cat conftest.$ac_ext >&5
13376 rm -rf conftest*
13377 glibcpp_cv_func__fmodl_use=no
13379 rm -f conftest*
13380 ac_ext=c
13381 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13382 ac_cpp='$CPP $CPPFLAGS'
13383 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13384 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13385 cross_compiling=$ac_cv_prog_cc_cross
13391 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
13393 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
13394 for ac_func in _fmodl
13396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13397 echo "configure:13398: checking for $ac_func" >&5
13398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13399 echo $ac_n "(cached) $ac_c" 1>&6
13400 else
13401 cat > conftest.$ac_ext <<EOF
13402 #line 13403 "configure"
13403 #include "confdefs.h"
13404 /* System header to define __stub macros and hopefully few prototypes,
13405 which can conflict with char $ac_func(); below. */
13406 #include <assert.h>
13407 /* Override any gcc2 internal prototype to avoid an error. */
13408 /* We use char because int might match the return type of a gcc2
13409 builtin and then its argument prototype would still apply. */
13410 char $ac_func();
13412 int main() {
13414 /* The GNU C library defines this for functions which it implements
13415 to always fail with ENOSYS. Some functions are actually named
13416 something starting with __ and the normal name is an alias. */
13417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13418 choke me
13419 #else
13420 $ac_func();
13421 #endif
13423 ; return 0; }
13425 if { (eval echo configure:13426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13426 rm -rf conftest*
13427 eval "ac_cv_func_$ac_func=yes"
13428 else
13429 echo "configure: failed program was:" >&5
13430 cat conftest.$ac_ext >&5
13431 rm -rf conftest*
13432 eval "ac_cv_func_$ac_func=no"
13434 rm -f conftest*
13437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13438 echo "$ac_t""yes" 1>&6
13439 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13440 cat >> confdefs.h <<EOF
13441 #define $ac_tr_func 1
13444 else
13445 echo "$ac_t""no" 1>&6
13447 done
13454 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
13455 echo "configure:13456: checking for frexpl declaration" >&5
13456 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
13457 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
13458 echo $ac_n "(cached) $ac_c" 1>&6
13459 else
13462 ac_ext=C
13463 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13464 ac_cpp='$CXXCPP $CPPFLAGS'
13465 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13466 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13467 cross_compiling=$ac_cv_prog_cxx_cross
13469 cat > conftest.$ac_ext <<EOF
13470 #line 13471 "configure"
13471 #include "confdefs.h"
13472 #include <math.h>
13473 int main() {
13474 frexpl(0, 0);
13475 ; return 0; }
13477 if { (eval echo configure:13478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13478 rm -rf conftest*
13479 glibcpp_cv_func_frexpl_use=yes
13480 else
13481 echo "configure: failed program was:" >&5
13482 cat conftest.$ac_ext >&5
13483 rm -rf conftest*
13484 glibcpp_cv_func_frexpl_use=no
13486 rm -f conftest*
13487 ac_ext=c
13488 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13489 ac_cpp='$CPP $CPPFLAGS'
13490 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13491 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13492 cross_compiling=$ac_cv_prog_cc_cross
13498 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
13500 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
13501 for ac_func in frexpl
13503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13504 echo "configure:13505: checking for $ac_func" >&5
13505 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13506 echo $ac_n "(cached) $ac_c" 1>&6
13507 else
13508 cat > conftest.$ac_ext <<EOF
13509 #line 13510 "configure"
13510 #include "confdefs.h"
13511 /* System header to define __stub macros and hopefully few prototypes,
13512 which can conflict with char $ac_func(); below. */
13513 #include <assert.h>
13514 /* Override any gcc2 internal prototype to avoid an error. */
13515 /* We use char because int might match the return type of a gcc2
13516 builtin and then its argument prototype would still apply. */
13517 char $ac_func();
13519 int main() {
13521 /* The GNU C library defines this for functions which it implements
13522 to always fail with ENOSYS. Some functions are actually named
13523 something starting with __ and the normal name is an alias. */
13524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13525 choke me
13526 #else
13527 $ac_func();
13528 #endif
13530 ; return 0; }
13532 if { (eval echo configure:13533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13533 rm -rf conftest*
13534 eval "ac_cv_func_$ac_func=yes"
13535 else
13536 echo "configure: failed program was:" >&5
13537 cat conftest.$ac_ext >&5
13538 rm -rf conftest*
13539 eval "ac_cv_func_$ac_func=no"
13541 rm -f conftest*
13544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13545 echo "$ac_t""yes" 1>&6
13546 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13547 cat >> confdefs.h <<EOF
13548 #define $ac_tr_func 1
13551 else
13552 echo "$ac_t""no" 1>&6
13554 done
13556 else
13558 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
13559 echo "configure:13560: checking for _frexpl declaration" >&5
13560 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
13561 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
13562 echo $ac_n "(cached) $ac_c" 1>&6
13563 else
13566 ac_ext=C
13567 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13568 ac_cpp='$CXXCPP $CPPFLAGS'
13569 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13570 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13571 cross_compiling=$ac_cv_prog_cxx_cross
13573 cat > conftest.$ac_ext <<EOF
13574 #line 13575 "configure"
13575 #include "confdefs.h"
13576 #include <math.h>
13577 int main() {
13578 _frexpl(0, 0);
13579 ; return 0; }
13581 if { (eval echo configure:13582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13582 rm -rf conftest*
13583 glibcpp_cv_func__frexpl_use=yes
13584 else
13585 echo "configure: failed program was:" >&5
13586 cat conftest.$ac_ext >&5
13587 rm -rf conftest*
13588 glibcpp_cv_func__frexpl_use=no
13590 rm -f conftest*
13591 ac_ext=c
13592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13593 ac_cpp='$CPP $CPPFLAGS'
13594 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13595 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13596 cross_compiling=$ac_cv_prog_cc_cross
13602 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
13604 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
13605 for ac_func in _frexpl
13607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13608 echo "configure:13609: checking for $ac_func" >&5
13609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13610 echo $ac_n "(cached) $ac_c" 1>&6
13611 else
13612 cat > conftest.$ac_ext <<EOF
13613 #line 13614 "configure"
13614 #include "confdefs.h"
13615 /* System header to define __stub macros and hopefully few prototypes,
13616 which can conflict with char $ac_func(); below. */
13617 #include <assert.h>
13618 /* Override any gcc2 internal prototype to avoid an error. */
13619 /* We use char because int might match the return type of a gcc2
13620 builtin and then its argument prototype would still apply. */
13621 char $ac_func();
13623 int main() {
13625 /* The GNU C library defines this for functions which it implements
13626 to always fail with ENOSYS. Some functions are actually named
13627 something starting with __ and the normal name is an alias. */
13628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13629 choke me
13630 #else
13631 $ac_func();
13632 #endif
13634 ; return 0; }
13636 if { (eval echo configure:13637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13637 rm -rf conftest*
13638 eval "ac_cv_func_$ac_func=yes"
13639 else
13640 echo "configure: failed program was:" >&5
13641 cat conftest.$ac_ext >&5
13642 rm -rf conftest*
13643 eval "ac_cv_func_$ac_func=no"
13645 rm -f conftest*
13648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13649 echo "$ac_t""yes" 1>&6
13650 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13651 cat >> confdefs.h <<EOF
13652 #define $ac_tr_func 1
13655 else
13656 echo "$ac_t""no" 1>&6
13658 done
13665 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
13666 echo "configure:13667: checking for hypotl declaration" >&5
13667 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
13668 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
13669 echo $ac_n "(cached) $ac_c" 1>&6
13670 else
13673 ac_ext=C
13674 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13675 ac_cpp='$CXXCPP $CPPFLAGS'
13676 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13677 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13678 cross_compiling=$ac_cv_prog_cxx_cross
13680 cat > conftest.$ac_ext <<EOF
13681 #line 13682 "configure"
13682 #include "confdefs.h"
13683 #include <math.h>
13684 int main() {
13685 hypotl(0, 0);
13686 ; return 0; }
13688 if { (eval echo configure:13689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13689 rm -rf conftest*
13690 glibcpp_cv_func_hypotl_use=yes
13691 else
13692 echo "configure: failed program was:" >&5
13693 cat conftest.$ac_ext >&5
13694 rm -rf conftest*
13695 glibcpp_cv_func_hypotl_use=no
13697 rm -f conftest*
13698 ac_ext=c
13699 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13700 ac_cpp='$CPP $CPPFLAGS'
13701 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13702 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13703 cross_compiling=$ac_cv_prog_cc_cross
13709 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
13711 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
13712 for ac_func in hypotl
13714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13715 echo "configure:13716: checking for $ac_func" >&5
13716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13717 echo $ac_n "(cached) $ac_c" 1>&6
13718 else
13719 cat > conftest.$ac_ext <<EOF
13720 #line 13721 "configure"
13721 #include "confdefs.h"
13722 /* System header to define __stub macros and hopefully few prototypes,
13723 which can conflict with char $ac_func(); below. */
13724 #include <assert.h>
13725 /* Override any gcc2 internal prototype to avoid an error. */
13726 /* We use char because int might match the return type of a gcc2
13727 builtin and then its argument prototype would still apply. */
13728 char $ac_func();
13730 int main() {
13732 /* The GNU C library defines this for functions which it implements
13733 to always fail with ENOSYS. Some functions are actually named
13734 something starting with __ and the normal name is an alias. */
13735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13736 choke me
13737 #else
13738 $ac_func();
13739 #endif
13741 ; return 0; }
13743 if { (eval echo configure:13744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13744 rm -rf conftest*
13745 eval "ac_cv_func_$ac_func=yes"
13746 else
13747 echo "configure: failed program was:" >&5
13748 cat conftest.$ac_ext >&5
13749 rm -rf conftest*
13750 eval "ac_cv_func_$ac_func=no"
13752 rm -f conftest*
13755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13756 echo "$ac_t""yes" 1>&6
13757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13758 cat >> confdefs.h <<EOF
13759 #define $ac_tr_func 1
13762 else
13763 echo "$ac_t""no" 1>&6
13765 done
13767 else
13769 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
13770 echo "configure:13771: checking for _hypotl declaration" >&5
13771 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
13772 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
13773 echo $ac_n "(cached) $ac_c" 1>&6
13774 else
13777 ac_ext=C
13778 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13779 ac_cpp='$CXXCPP $CPPFLAGS'
13780 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13781 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13782 cross_compiling=$ac_cv_prog_cxx_cross
13784 cat > conftest.$ac_ext <<EOF
13785 #line 13786 "configure"
13786 #include "confdefs.h"
13787 #include <math.h>
13788 int main() {
13789 _hypotl(0, 0);
13790 ; return 0; }
13792 if { (eval echo configure:13793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13793 rm -rf conftest*
13794 glibcpp_cv_func__hypotl_use=yes
13795 else
13796 echo "configure: failed program was:" >&5
13797 cat conftest.$ac_ext >&5
13798 rm -rf conftest*
13799 glibcpp_cv_func__hypotl_use=no
13801 rm -f conftest*
13802 ac_ext=c
13803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13804 ac_cpp='$CPP $CPPFLAGS'
13805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13807 cross_compiling=$ac_cv_prog_cc_cross
13813 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
13815 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
13816 for ac_func in _hypotl
13818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13819 echo "configure:13820: checking for $ac_func" >&5
13820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13821 echo $ac_n "(cached) $ac_c" 1>&6
13822 else
13823 cat > conftest.$ac_ext <<EOF
13824 #line 13825 "configure"
13825 #include "confdefs.h"
13826 /* System header to define __stub macros and hopefully few prototypes,
13827 which can conflict with char $ac_func(); below. */
13828 #include <assert.h>
13829 /* Override any gcc2 internal prototype to avoid an error. */
13830 /* We use char because int might match the return type of a gcc2
13831 builtin and then its argument prototype would still apply. */
13832 char $ac_func();
13834 int main() {
13836 /* The GNU C library defines this for functions which it implements
13837 to always fail with ENOSYS. Some functions are actually named
13838 something starting with __ and the normal name is an alias. */
13839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13840 choke me
13841 #else
13842 $ac_func();
13843 #endif
13845 ; return 0; }
13847 if { (eval echo configure:13848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13848 rm -rf conftest*
13849 eval "ac_cv_func_$ac_func=yes"
13850 else
13851 echo "configure: failed program was:" >&5
13852 cat conftest.$ac_ext >&5
13853 rm -rf conftest*
13854 eval "ac_cv_func_$ac_func=no"
13856 rm -f conftest*
13859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13860 echo "$ac_t""yes" 1>&6
13861 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13862 cat >> confdefs.h <<EOF
13863 #define $ac_tr_func 1
13866 else
13867 echo "$ac_t""no" 1>&6
13869 done
13876 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
13877 echo "configure:13878: checking for ldexpl declaration" >&5
13878 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
13879 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
13880 echo $ac_n "(cached) $ac_c" 1>&6
13881 else
13884 ac_ext=C
13885 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13886 ac_cpp='$CXXCPP $CPPFLAGS'
13887 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13888 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13889 cross_compiling=$ac_cv_prog_cxx_cross
13891 cat > conftest.$ac_ext <<EOF
13892 #line 13893 "configure"
13893 #include "confdefs.h"
13894 #include <math.h>
13895 int main() {
13896 ldexpl(0, 0);
13897 ; return 0; }
13899 if { (eval echo configure:13900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13900 rm -rf conftest*
13901 glibcpp_cv_func_ldexpl_use=yes
13902 else
13903 echo "configure: failed program was:" >&5
13904 cat conftest.$ac_ext >&5
13905 rm -rf conftest*
13906 glibcpp_cv_func_ldexpl_use=no
13908 rm -f conftest*
13909 ac_ext=c
13910 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13911 ac_cpp='$CPP $CPPFLAGS'
13912 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13913 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13914 cross_compiling=$ac_cv_prog_cc_cross
13920 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
13922 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
13923 for ac_func in ldexpl
13925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13926 echo "configure:13927: checking for $ac_func" >&5
13927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13928 echo $ac_n "(cached) $ac_c" 1>&6
13929 else
13930 cat > conftest.$ac_ext <<EOF
13931 #line 13932 "configure"
13932 #include "confdefs.h"
13933 /* System header to define __stub macros and hopefully few prototypes,
13934 which can conflict with char $ac_func(); below. */
13935 #include <assert.h>
13936 /* Override any gcc2 internal prototype to avoid an error. */
13937 /* We use char because int might match the return type of a gcc2
13938 builtin and then its argument prototype would still apply. */
13939 char $ac_func();
13941 int main() {
13943 /* The GNU C library defines this for functions which it implements
13944 to always fail with ENOSYS. Some functions are actually named
13945 something starting with __ and the normal name is an alias. */
13946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13947 choke me
13948 #else
13949 $ac_func();
13950 #endif
13952 ; return 0; }
13954 if { (eval echo configure:13955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13955 rm -rf conftest*
13956 eval "ac_cv_func_$ac_func=yes"
13957 else
13958 echo "configure: failed program was:" >&5
13959 cat conftest.$ac_ext >&5
13960 rm -rf conftest*
13961 eval "ac_cv_func_$ac_func=no"
13963 rm -f conftest*
13966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13967 echo "$ac_t""yes" 1>&6
13968 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13969 cat >> confdefs.h <<EOF
13970 #define $ac_tr_func 1
13973 else
13974 echo "$ac_t""no" 1>&6
13976 done
13978 else
13980 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
13981 echo "configure:13982: checking for _ldexpl declaration" >&5
13982 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
13983 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
13984 echo $ac_n "(cached) $ac_c" 1>&6
13985 else
13988 ac_ext=C
13989 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13990 ac_cpp='$CXXCPP $CPPFLAGS'
13991 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13992 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13993 cross_compiling=$ac_cv_prog_cxx_cross
13995 cat > conftest.$ac_ext <<EOF
13996 #line 13997 "configure"
13997 #include "confdefs.h"
13998 #include <math.h>
13999 int main() {
14000 _ldexpl(0, 0);
14001 ; return 0; }
14003 if { (eval echo configure:14004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14004 rm -rf conftest*
14005 glibcpp_cv_func__ldexpl_use=yes
14006 else
14007 echo "configure: failed program was:" >&5
14008 cat conftest.$ac_ext >&5
14009 rm -rf conftest*
14010 glibcpp_cv_func__ldexpl_use=no
14012 rm -f conftest*
14013 ac_ext=c
14014 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14015 ac_cpp='$CPP $CPPFLAGS'
14016 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14017 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14018 cross_compiling=$ac_cv_prog_cc_cross
14024 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
14026 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
14027 for ac_func in _ldexpl
14029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14030 echo "configure:14031: checking for $ac_func" >&5
14031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14032 echo $ac_n "(cached) $ac_c" 1>&6
14033 else
14034 cat > conftest.$ac_ext <<EOF
14035 #line 14036 "configure"
14036 #include "confdefs.h"
14037 /* System header to define __stub macros and hopefully few prototypes,
14038 which can conflict with char $ac_func(); below. */
14039 #include <assert.h>
14040 /* Override any gcc2 internal prototype to avoid an error. */
14041 /* We use char because int might match the return type of a gcc2
14042 builtin and then its argument prototype would still apply. */
14043 char $ac_func();
14045 int main() {
14047 /* The GNU C library defines this for functions which it implements
14048 to always fail with ENOSYS. Some functions are actually named
14049 something starting with __ and the normal name is an alias. */
14050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14051 choke me
14052 #else
14053 $ac_func();
14054 #endif
14056 ; return 0; }
14058 if { (eval echo configure:14059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14059 rm -rf conftest*
14060 eval "ac_cv_func_$ac_func=yes"
14061 else
14062 echo "configure: failed program was:" >&5
14063 cat conftest.$ac_ext >&5
14064 rm -rf conftest*
14065 eval "ac_cv_func_$ac_func=no"
14067 rm -f conftest*
14070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14071 echo "$ac_t""yes" 1>&6
14072 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14073 cat >> confdefs.h <<EOF
14074 #define $ac_tr_func 1
14077 else
14078 echo "$ac_t""no" 1>&6
14080 done
14087 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
14088 echo "configure:14089: checking for logl declaration" >&5
14089 if test x${glibcpp_cv_func_logl_use+set} != xset; then
14090 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
14091 echo $ac_n "(cached) $ac_c" 1>&6
14092 else
14095 ac_ext=C
14096 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14097 ac_cpp='$CXXCPP $CPPFLAGS'
14098 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14099 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14100 cross_compiling=$ac_cv_prog_cxx_cross
14102 cat > conftest.$ac_ext <<EOF
14103 #line 14104 "configure"
14104 #include "confdefs.h"
14105 #include <math.h>
14106 #ifdef HAVE_IEEEFP_H
14107 #include <ieeefp.h>
14108 #endif
14110 int main() {
14111 logl(0);
14112 ; return 0; }
14114 if { (eval echo configure:14115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14115 rm -rf conftest*
14116 glibcpp_cv_func_logl_use=yes
14117 else
14118 echo "configure: failed program was:" >&5
14119 cat conftest.$ac_ext >&5
14120 rm -rf conftest*
14121 glibcpp_cv_func_logl_use=no
14123 rm -f conftest*
14124 ac_ext=c
14125 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14126 ac_cpp='$CPP $CPPFLAGS'
14127 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14128 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14129 cross_compiling=$ac_cv_prog_cc_cross
14135 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
14137 if test x$glibcpp_cv_func_logl_use = x"yes"; then
14138 for ac_func in logl
14140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14141 echo "configure:14142: checking for $ac_func" >&5
14142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14143 echo $ac_n "(cached) $ac_c" 1>&6
14144 else
14145 cat > conftest.$ac_ext <<EOF
14146 #line 14147 "configure"
14147 #include "confdefs.h"
14148 /* System header to define __stub macros and hopefully few prototypes,
14149 which can conflict with char $ac_func(); below. */
14150 #include <assert.h>
14151 /* Override any gcc2 internal prototype to avoid an error. */
14152 /* We use char because int might match the return type of a gcc2
14153 builtin and then its argument prototype would still apply. */
14154 char $ac_func();
14156 int main() {
14158 /* The GNU C library defines this for functions which it implements
14159 to always fail with ENOSYS. Some functions are actually named
14160 something starting with __ and the normal name is an alias. */
14161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14162 choke me
14163 #else
14164 $ac_func();
14165 #endif
14167 ; return 0; }
14169 if { (eval echo configure:14170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14170 rm -rf conftest*
14171 eval "ac_cv_func_$ac_func=yes"
14172 else
14173 echo "configure: failed program was:" >&5
14174 cat conftest.$ac_ext >&5
14175 rm -rf conftest*
14176 eval "ac_cv_func_$ac_func=no"
14178 rm -f conftest*
14181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14182 echo "$ac_t""yes" 1>&6
14183 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14184 cat >> confdefs.h <<EOF
14185 #define $ac_tr_func 1
14188 else
14189 echo "$ac_t""no" 1>&6
14191 done
14193 else
14195 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
14196 echo "configure:14197: checking for _logl declaration" >&5
14197 if test x${glibcpp_cv_func__logl_use+set} != xset; then
14198 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
14199 echo $ac_n "(cached) $ac_c" 1>&6
14200 else
14203 ac_ext=C
14204 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14205 ac_cpp='$CXXCPP $CPPFLAGS'
14206 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14207 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14208 cross_compiling=$ac_cv_prog_cxx_cross
14210 cat > conftest.$ac_ext <<EOF
14211 #line 14212 "configure"
14212 #include "confdefs.h"
14213 #include <math.h>
14214 #ifdef HAVE_IEEEFP_H
14215 #include <ieeefp.h>
14216 #endif
14218 int main() {
14219 _logl(0);
14220 ; return 0; }
14222 if { (eval echo configure:14223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14223 rm -rf conftest*
14224 glibcpp_cv_func__logl_use=yes
14225 else
14226 echo "configure: failed program was:" >&5
14227 cat conftest.$ac_ext >&5
14228 rm -rf conftest*
14229 glibcpp_cv_func__logl_use=no
14231 rm -f conftest*
14232 ac_ext=c
14233 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14234 ac_cpp='$CPP $CPPFLAGS'
14235 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14236 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14237 cross_compiling=$ac_cv_prog_cc_cross
14243 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
14245 if test x$glibcpp_cv_func__logl_use = x"yes"; then
14246 for ac_func in _logl
14248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14249 echo "configure:14250: checking for $ac_func" >&5
14250 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14251 echo $ac_n "(cached) $ac_c" 1>&6
14252 else
14253 cat > conftest.$ac_ext <<EOF
14254 #line 14255 "configure"
14255 #include "confdefs.h"
14256 /* System header to define __stub macros and hopefully few prototypes,
14257 which can conflict with char $ac_func(); below. */
14258 #include <assert.h>
14259 /* Override any gcc2 internal prototype to avoid an error. */
14260 /* We use char because int might match the return type of a gcc2
14261 builtin and then its argument prototype would still apply. */
14262 char $ac_func();
14264 int main() {
14266 /* The GNU C library defines this for functions which it implements
14267 to always fail with ENOSYS. Some functions are actually named
14268 something starting with __ and the normal name is an alias. */
14269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14270 choke me
14271 #else
14272 $ac_func();
14273 #endif
14275 ; return 0; }
14277 if { (eval echo configure:14278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14278 rm -rf conftest*
14279 eval "ac_cv_func_$ac_func=yes"
14280 else
14281 echo "configure: failed program was:" >&5
14282 cat conftest.$ac_ext >&5
14283 rm -rf conftest*
14284 eval "ac_cv_func_$ac_func=no"
14286 rm -f conftest*
14289 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14290 echo "$ac_t""yes" 1>&6
14291 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14292 cat >> confdefs.h <<EOF
14293 #define $ac_tr_func 1
14296 else
14297 echo "$ac_t""no" 1>&6
14299 done
14306 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
14307 echo "configure:14308: checking for log10l declaration" >&5
14308 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
14309 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
14310 echo $ac_n "(cached) $ac_c" 1>&6
14311 else
14314 ac_ext=C
14315 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14316 ac_cpp='$CXXCPP $CPPFLAGS'
14317 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14318 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14319 cross_compiling=$ac_cv_prog_cxx_cross
14321 cat > conftest.$ac_ext <<EOF
14322 #line 14323 "configure"
14323 #include "confdefs.h"
14324 #include <math.h>
14325 #ifdef HAVE_IEEEFP_H
14326 #include <ieeefp.h>
14327 #endif
14329 int main() {
14330 log10l(0);
14331 ; return 0; }
14333 if { (eval echo configure:14334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14334 rm -rf conftest*
14335 glibcpp_cv_func_log10l_use=yes
14336 else
14337 echo "configure: failed program was:" >&5
14338 cat conftest.$ac_ext >&5
14339 rm -rf conftest*
14340 glibcpp_cv_func_log10l_use=no
14342 rm -f conftest*
14343 ac_ext=c
14344 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14345 ac_cpp='$CPP $CPPFLAGS'
14346 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14347 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14348 cross_compiling=$ac_cv_prog_cc_cross
14354 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
14356 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
14357 for ac_func in log10l
14359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14360 echo "configure:14361: checking for $ac_func" >&5
14361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14362 echo $ac_n "(cached) $ac_c" 1>&6
14363 else
14364 cat > conftest.$ac_ext <<EOF
14365 #line 14366 "configure"
14366 #include "confdefs.h"
14367 /* System header to define __stub macros and hopefully few prototypes,
14368 which can conflict with char $ac_func(); below. */
14369 #include <assert.h>
14370 /* Override any gcc2 internal prototype to avoid an error. */
14371 /* We use char because int might match the return type of a gcc2
14372 builtin and then its argument prototype would still apply. */
14373 char $ac_func();
14375 int main() {
14377 /* The GNU C library defines this for functions which it implements
14378 to always fail with ENOSYS. Some functions are actually named
14379 something starting with __ and the normal name is an alias. */
14380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14381 choke me
14382 #else
14383 $ac_func();
14384 #endif
14386 ; return 0; }
14388 if { (eval echo configure:14389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14389 rm -rf conftest*
14390 eval "ac_cv_func_$ac_func=yes"
14391 else
14392 echo "configure: failed program was:" >&5
14393 cat conftest.$ac_ext >&5
14394 rm -rf conftest*
14395 eval "ac_cv_func_$ac_func=no"
14397 rm -f conftest*
14400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14401 echo "$ac_t""yes" 1>&6
14402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14403 cat >> confdefs.h <<EOF
14404 #define $ac_tr_func 1
14407 else
14408 echo "$ac_t""no" 1>&6
14410 done
14412 else
14414 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
14415 echo "configure:14416: checking for _log10l declaration" >&5
14416 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
14417 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
14418 echo $ac_n "(cached) $ac_c" 1>&6
14419 else
14422 ac_ext=C
14423 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14424 ac_cpp='$CXXCPP $CPPFLAGS'
14425 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14426 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14427 cross_compiling=$ac_cv_prog_cxx_cross
14429 cat > conftest.$ac_ext <<EOF
14430 #line 14431 "configure"
14431 #include "confdefs.h"
14432 #include <math.h>
14433 #ifdef HAVE_IEEEFP_H
14434 #include <ieeefp.h>
14435 #endif
14437 int main() {
14438 _log10l(0);
14439 ; return 0; }
14441 if { (eval echo configure:14442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14442 rm -rf conftest*
14443 glibcpp_cv_func__log10l_use=yes
14444 else
14445 echo "configure: failed program was:" >&5
14446 cat conftest.$ac_ext >&5
14447 rm -rf conftest*
14448 glibcpp_cv_func__log10l_use=no
14450 rm -f conftest*
14451 ac_ext=c
14452 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14453 ac_cpp='$CPP $CPPFLAGS'
14454 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14455 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14456 cross_compiling=$ac_cv_prog_cc_cross
14462 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
14464 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
14465 for ac_func in _log10l
14467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14468 echo "configure:14469: checking for $ac_func" >&5
14469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14470 echo $ac_n "(cached) $ac_c" 1>&6
14471 else
14472 cat > conftest.$ac_ext <<EOF
14473 #line 14474 "configure"
14474 #include "confdefs.h"
14475 /* System header to define __stub macros and hopefully few prototypes,
14476 which can conflict with char $ac_func(); below. */
14477 #include <assert.h>
14478 /* Override any gcc2 internal prototype to avoid an error. */
14479 /* We use char because int might match the return type of a gcc2
14480 builtin and then its argument prototype would still apply. */
14481 char $ac_func();
14483 int main() {
14485 /* The GNU C library defines this for functions which it implements
14486 to always fail with ENOSYS. Some functions are actually named
14487 something starting with __ and the normal name is an alias. */
14488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14489 choke me
14490 #else
14491 $ac_func();
14492 #endif
14494 ; return 0; }
14496 if { (eval echo configure:14497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14497 rm -rf conftest*
14498 eval "ac_cv_func_$ac_func=yes"
14499 else
14500 echo "configure: failed program was:" >&5
14501 cat conftest.$ac_ext >&5
14502 rm -rf conftest*
14503 eval "ac_cv_func_$ac_func=no"
14505 rm -f conftest*
14508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14509 echo "$ac_t""yes" 1>&6
14510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14511 cat >> confdefs.h <<EOF
14512 #define $ac_tr_func 1
14515 else
14516 echo "$ac_t""no" 1>&6
14518 done
14525 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
14526 echo "configure:14527: checking for modfl declaration" >&5
14527 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
14528 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
14529 echo $ac_n "(cached) $ac_c" 1>&6
14530 else
14533 ac_ext=C
14534 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14535 ac_cpp='$CXXCPP $CPPFLAGS'
14536 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14537 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14538 cross_compiling=$ac_cv_prog_cxx_cross
14540 cat > conftest.$ac_ext <<EOF
14541 #line 14542 "configure"
14542 #include "confdefs.h"
14543 #include <math.h>
14544 int main() {
14545 modfl(0, 0);
14546 ; return 0; }
14548 if { (eval echo configure:14549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14549 rm -rf conftest*
14550 glibcpp_cv_func_modfl_use=yes
14551 else
14552 echo "configure: failed program was:" >&5
14553 cat conftest.$ac_ext >&5
14554 rm -rf conftest*
14555 glibcpp_cv_func_modfl_use=no
14557 rm -f conftest*
14558 ac_ext=c
14559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14560 ac_cpp='$CPP $CPPFLAGS'
14561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14563 cross_compiling=$ac_cv_prog_cc_cross
14569 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
14571 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
14572 for ac_func in modfl
14574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14575 echo "configure:14576: checking for $ac_func" >&5
14576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14577 echo $ac_n "(cached) $ac_c" 1>&6
14578 else
14579 cat > conftest.$ac_ext <<EOF
14580 #line 14581 "configure"
14581 #include "confdefs.h"
14582 /* System header to define __stub macros and hopefully few prototypes,
14583 which can conflict with char $ac_func(); below. */
14584 #include <assert.h>
14585 /* Override any gcc2 internal prototype to avoid an error. */
14586 /* We use char because int might match the return type of a gcc2
14587 builtin and then its argument prototype would still apply. */
14588 char $ac_func();
14590 int main() {
14592 /* The GNU C library defines this for functions which it implements
14593 to always fail with ENOSYS. Some functions are actually named
14594 something starting with __ and the normal name is an alias. */
14595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14596 choke me
14597 #else
14598 $ac_func();
14599 #endif
14601 ; return 0; }
14603 if { (eval echo configure:14604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14604 rm -rf conftest*
14605 eval "ac_cv_func_$ac_func=yes"
14606 else
14607 echo "configure: failed program was:" >&5
14608 cat conftest.$ac_ext >&5
14609 rm -rf conftest*
14610 eval "ac_cv_func_$ac_func=no"
14612 rm -f conftest*
14615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14616 echo "$ac_t""yes" 1>&6
14617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14618 cat >> confdefs.h <<EOF
14619 #define $ac_tr_func 1
14622 else
14623 echo "$ac_t""no" 1>&6
14625 done
14627 else
14629 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
14630 echo "configure:14631: checking for _modfl declaration" >&5
14631 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
14632 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
14633 echo $ac_n "(cached) $ac_c" 1>&6
14634 else
14637 ac_ext=C
14638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14639 ac_cpp='$CXXCPP $CPPFLAGS'
14640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14642 cross_compiling=$ac_cv_prog_cxx_cross
14644 cat > conftest.$ac_ext <<EOF
14645 #line 14646 "configure"
14646 #include "confdefs.h"
14647 #include <math.h>
14648 int main() {
14649 _modfl(0, 0);
14650 ; return 0; }
14652 if { (eval echo configure:14653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14653 rm -rf conftest*
14654 glibcpp_cv_func__modfl_use=yes
14655 else
14656 echo "configure: failed program was:" >&5
14657 cat conftest.$ac_ext >&5
14658 rm -rf conftest*
14659 glibcpp_cv_func__modfl_use=no
14661 rm -f conftest*
14662 ac_ext=c
14663 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14664 ac_cpp='$CPP $CPPFLAGS'
14665 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14666 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14667 cross_compiling=$ac_cv_prog_cc_cross
14673 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
14675 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
14676 for ac_func in _modfl
14678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14679 echo "configure:14680: checking for $ac_func" >&5
14680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14681 echo $ac_n "(cached) $ac_c" 1>&6
14682 else
14683 cat > conftest.$ac_ext <<EOF
14684 #line 14685 "configure"
14685 #include "confdefs.h"
14686 /* System header to define __stub macros and hopefully few prototypes,
14687 which can conflict with char $ac_func(); below. */
14688 #include <assert.h>
14689 /* Override any gcc2 internal prototype to avoid an error. */
14690 /* We use char because int might match the return type of a gcc2
14691 builtin and then its argument prototype would still apply. */
14692 char $ac_func();
14694 int main() {
14696 /* The GNU C library defines this for functions which it implements
14697 to always fail with ENOSYS. Some functions are actually named
14698 something starting with __ and the normal name is an alias. */
14699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14700 choke me
14701 #else
14702 $ac_func();
14703 #endif
14705 ; return 0; }
14707 if { (eval echo configure:14708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14708 rm -rf conftest*
14709 eval "ac_cv_func_$ac_func=yes"
14710 else
14711 echo "configure: failed program was:" >&5
14712 cat conftest.$ac_ext >&5
14713 rm -rf conftest*
14714 eval "ac_cv_func_$ac_func=no"
14716 rm -f conftest*
14719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14720 echo "$ac_t""yes" 1>&6
14721 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14722 cat >> confdefs.h <<EOF
14723 #define $ac_tr_func 1
14726 else
14727 echo "$ac_t""no" 1>&6
14729 done
14736 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
14737 echo "configure:14738: checking for powl declaration" >&5
14738 if test x${glibcpp_cv_func_powl_use+set} != xset; then
14739 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
14740 echo $ac_n "(cached) $ac_c" 1>&6
14741 else
14744 ac_ext=C
14745 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14746 ac_cpp='$CXXCPP $CPPFLAGS'
14747 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14748 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14749 cross_compiling=$ac_cv_prog_cxx_cross
14751 cat > conftest.$ac_ext <<EOF
14752 #line 14753 "configure"
14753 #include "confdefs.h"
14754 #include <math.h>
14755 int main() {
14756 powl(0, 0);
14757 ; return 0; }
14759 if { (eval echo configure:14760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14760 rm -rf conftest*
14761 glibcpp_cv_func_powl_use=yes
14762 else
14763 echo "configure: failed program was:" >&5
14764 cat conftest.$ac_ext >&5
14765 rm -rf conftest*
14766 glibcpp_cv_func_powl_use=no
14768 rm -f conftest*
14769 ac_ext=c
14770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14771 ac_cpp='$CPP $CPPFLAGS'
14772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14773 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14774 cross_compiling=$ac_cv_prog_cc_cross
14780 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
14782 if test x$glibcpp_cv_func_powl_use = x"yes"; then
14783 for ac_func in powl
14785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14786 echo "configure:14787: checking for $ac_func" >&5
14787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14788 echo $ac_n "(cached) $ac_c" 1>&6
14789 else
14790 cat > conftest.$ac_ext <<EOF
14791 #line 14792 "configure"
14792 #include "confdefs.h"
14793 /* System header to define __stub macros and hopefully few prototypes,
14794 which can conflict with char $ac_func(); below. */
14795 #include <assert.h>
14796 /* Override any gcc2 internal prototype to avoid an error. */
14797 /* We use char because int might match the return type of a gcc2
14798 builtin and then its argument prototype would still apply. */
14799 char $ac_func();
14801 int main() {
14803 /* The GNU C library defines this for functions which it implements
14804 to always fail with ENOSYS. Some functions are actually named
14805 something starting with __ and the normal name is an alias. */
14806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14807 choke me
14808 #else
14809 $ac_func();
14810 #endif
14812 ; return 0; }
14814 if { (eval echo configure:14815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14815 rm -rf conftest*
14816 eval "ac_cv_func_$ac_func=yes"
14817 else
14818 echo "configure: failed program was:" >&5
14819 cat conftest.$ac_ext >&5
14820 rm -rf conftest*
14821 eval "ac_cv_func_$ac_func=no"
14823 rm -f conftest*
14826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14827 echo "$ac_t""yes" 1>&6
14828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14829 cat >> confdefs.h <<EOF
14830 #define $ac_tr_func 1
14833 else
14834 echo "$ac_t""no" 1>&6
14836 done
14838 else
14840 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
14841 echo "configure:14842: checking for _powl declaration" >&5
14842 if test x${glibcpp_cv_func__powl_use+set} != xset; then
14843 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
14844 echo $ac_n "(cached) $ac_c" 1>&6
14845 else
14848 ac_ext=C
14849 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14850 ac_cpp='$CXXCPP $CPPFLAGS'
14851 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14852 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14853 cross_compiling=$ac_cv_prog_cxx_cross
14855 cat > conftest.$ac_ext <<EOF
14856 #line 14857 "configure"
14857 #include "confdefs.h"
14858 #include <math.h>
14859 int main() {
14860 _powl(0, 0);
14861 ; return 0; }
14863 if { (eval echo configure:14864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14864 rm -rf conftest*
14865 glibcpp_cv_func__powl_use=yes
14866 else
14867 echo "configure: failed program was:" >&5
14868 cat conftest.$ac_ext >&5
14869 rm -rf conftest*
14870 glibcpp_cv_func__powl_use=no
14872 rm -f conftest*
14873 ac_ext=c
14874 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14875 ac_cpp='$CPP $CPPFLAGS'
14876 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14877 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14878 cross_compiling=$ac_cv_prog_cc_cross
14884 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
14886 if test x$glibcpp_cv_func__powl_use = x"yes"; then
14887 for ac_func in _powl
14889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14890 echo "configure:14891: checking for $ac_func" >&5
14891 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14892 echo $ac_n "(cached) $ac_c" 1>&6
14893 else
14894 cat > conftest.$ac_ext <<EOF
14895 #line 14896 "configure"
14896 #include "confdefs.h"
14897 /* System header to define __stub macros and hopefully few prototypes,
14898 which can conflict with char $ac_func(); below. */
14899 #include <assert.h>
14900 /* Override any gcc2 internal prototype to avoid an error. */
14901 /* We use char because int might match the return type of a gcc2
14902 builtin and then its argument prototype would still apply. */
14903 char $ac_func();
14905 int main() {
14907 /* The GNU C library defines this for functions which it implements
14908 to always fail with ENOSYS. Some functions are actually named
14909 something starting with __ and the normal name is an alias. */
14910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14911 choke me
14912 #else
14913 $ac_func();
14914 #endif
14916 ; return 0; }
14918 if { (eval echo configure:14919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14919 rm -rf conftest*
14920 eval "ac_cv_func_$ac_func=yes"
14921 else
14922 echo "configure: failed program was:" >&5
14923 cat conftest.$ac_ext >&5
14924 rm -rf conftest*
14925 eval "ac_cv_func_$ac_func=no"
14927 rm -f conftest*
14930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14931 echo "$ac_t""yes" 1>&6
14932 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14933 cat >> confdefs.h <<EOF
14934 #define $ac_tr_func 1
14937 else
14938 echo "$ac_t""no" 1>&6
14940 done
14947 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
14948 echo "configure:14949: checking for sqrtl declaration" >&5
14949 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
14950 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
14951 echo $ac_n "(cached) $ac_c" 1>&6
14952 else
14955 ac_ext=C
14956 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14957 ac_cpp='$CXXCPP $CPPFLAGS'
14958 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14959 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14960 cross_compiling=$ac_cv_prog_cxx_cross
14962 cat > conftest.$ac_ext <<EOF
14963 #line 14964 "configure"
14964 #include "confdefs.h"
14965 #include <math.h>
14966 #ifdef HAVE_IEEEFP_H
14967 #include <ieeefp.h>
14968 #endif
14970 int main() {
14971 sqrtl(0);
14972 ; return 0; }
14974 if { (eval echo configure:14975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14975 rm -rf conftest*
14976 glibcpp_cv_func_sqrtl_use=yes
14977 else
14978 echo "configure: failed program was:" >&5
14979 cat conftest.$ac_ext >&5
14980 rm -rf conftest*
14981 glibcpp_cv_func_sqrtl_use=no
14983 rm -f conftest*
14984 ac_ext=c
14985 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14986 ac_cpp='$CPP $CPPFLAGS'
14987 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14988 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14989 cross_compiling=$ac_cv_prog_cc_cross
14995 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
14997 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
14998 for ac_func in sqrtl
15000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15001 echo "configure:15002: checking for $ac_func" >&5
15002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15003 echo $ac_n "(cached) $ac_c" 1>&6
15004 else
15005 cat > conftest.$ac_ext <<EOF
15006 #line 15007 "configure"
15007 #include "confdefs.h"
15008 /* System header to define __stub macros and hopefully few prototypes,
15009 which can conflict with char $ac_func(); below. */
15010 #include <assert.h>
15011 /* Override any gcc2 internal prototype to avoid an error. */
15012 /* We use char because int might match the return type of a gcc2
15013 builtin and then its argument prototype would still apply. */
15014 char $ac_func();
15016 int main() {
15018 /* The GNU C library defines this for functions which it implements
15019 to always fail with ENOSYS. Some functions are actually named
15020 something starting with __ and the normal name is an alias. */
15021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15022 choke me
15023 #else
15024 $ac_func();
15025 #endif
15027 ; return 0; }
15029 if { (eval echo configure:15030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15030 rm -rf conftest*
15031 eval "ac_cv_func_$ac_func=yes"
15032 else
15033 echo "configure: failed program was:" >&5
15034 cat conftest.$ac_ext >&5
15035 rm -rf conftest*
15036 eval "ac_cv_func_$ac_func=no"
15038 rm -f conftest*
15041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15042 echo "$ac_t""yes" 1>&6
15043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15044 cat >> confdefs.h <<EOF
15045 #define $ac_tr_func 1
15048 else
15049 echo "$ac_t""no" 1>&6
15051 done
15053 else
15055 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
15056 echo "configure:15057: checking for _sqrtl declaration" >&5
15057 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
15058 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
15059 echo $ac_n "(cached) $ac_c" 1>&6
15060 else
15063 ac_ext=C
15064 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15065 ac_cpp='$CXXCPP $CPPFLAGS'
15066 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15067 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15068 cross_compiling=$ac_cv_prog_cxx_cross
15070 cat > conftest.$ac_ext <<EOF
15071 #line 15072 "configure"
15072 #include "confdefs.h"
15073 #include <math.h>
15074 #ifdef HAVE_IEEEFP_H
15075 #include <ieeefp.h>
15076 #endif
15078 int main() {
15079 _sqrtl(0);
15080 ; return 0; }
15082 if { (eval echo configure:15083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15083 rm -rf conftest*
15084 glibcpp_cv_func__sqrtl_use=yes
15085 else
15086 echo "configure: failed program was:" >&5
15087 cat conftest.$ac_ext >&5
15088 rm -rf conftest*
15089 glibcpp_cv_func__sqrtl_use=no
15091 rm -f conftest*
15092 ac_ext=c
15093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15094 ac_cpp='$CPP $CPPFLAGS'
15095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15096 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15097 cross_compiling=$ac_cv_prog_cc_cross
15103 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
15105 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
15106 for ac_func in _sqrtl
15108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15109 echo "configure:15110: checking for $ac_func" >&5
15110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15111 echo $ac_n "(cached) $ac_c" 1>&6
15112 else
15113 cat > conftest.$ac_ext <<EOF
15114 #line 15115 "configure"
15115 #include "confdefs.h"
15116 /* System header to define __stub macros and hopefully few prototypes,
15117 which can conflict with char $ac_func(); below. */
15118 #include <assert.h>
15119 /* Override any gcc2 internal prototype to avoid an error. */
15120 /* We use char because int might match the return type of a gcc2
15121 builtin and then its argument prototype would still apply. */
15122 char $ac_func();
15124 int main() {
15126 /* The GNU C library defines this for functions which it implements
15127 to always fail with ENOSYS. Some functions are actually named
15128 something starting with __ and the normal name is an alias. */
15129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15130 choke me
15131 #else
15132 $ac_func();
15133 #endif
15135 ; return 0; }
15137 if { (eval echo configure:15138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15138 rm -rf conftest*
15139 eval "ac_cv_func_$ac_func=yes"
15140 else
15141 echo "configure: failed program was:" >&5
15142 cat conftest.$ac_ext >&5
15143 rm -rf conftest*
15144 eval "ac_cv_func_$ac_func=no"
15146 rm -f conftest*
15149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15150 echo "$ac_t""yes" 1>&6
15151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15152 cat >> confdefs.h <<EOF
15153 #define $ac_tr_func 1
15156 else
15157 echo "$ac_t""no" 1>&6
15159 done
15166 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
15167 echo "configure:15168: checking for sincosl declaration" >&5
15168 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
15169 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
15170 echo $ac_n "(cached) $ac_c" 1>&6
15171 else
15174 ac_ext=C
15175 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15176 ac_cpp='$CXXCPP $CPPFLAGS'
15177 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15178 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15179 cross_compiling=$ac_cv_prog_cxx_cross
15181 cat > conftest.$ac_ext <<EOF
15182 #line 15183 "configure"
15183 #include "confdefs.h"
15184 #include <math.h>
15185 int main() {
15186 sincosl(0, 0, 0);
15187 ; return 0; }
15189 if { (eval echo configure:15190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15190 rm -rf conftest*
15191 glibcpp_cv_func_sincosl_use=yes
15192 else
15193 echo "configure: failed program was:" >&5
15194 cat conftest.$ac_ext >&5
15195 rm -rf conftest*
15196 glibcpp_cv_func_sincosl_use=no
15198 rm -f conftest*
15199 ac_ext=c
15200 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15201 ac_cpp='$CPP $CPPFLAGS'
15202 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15203 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15204 cross_compiling=$ac_cv_prog_cc_cross
15210 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
15212 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
15213 for ac_func in sincosl
15215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15216 echo "configure:15217: checking for $ac_func" >&5
15217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15218 echo $ac_n "(cached) $ac_c" 1>&6
15219 else
15220 cat > conftest.$ac_ext <<EOF
15221 #line 15222 "configure"
15222 #include "confdefs.h"
15223 /* System header to define __stub macros and hopefully few prototypes,
15224 which can conflict with char $ac_func(); below. */
15225 #include <assert.h>
15226 /* Override any gcc2 internal prototype to avoid an error. */
15227 /* We use char because int might match the return type of a gcc2
15228 builtin and then its argument prototype would still apply. */
15229 char $ac_func();
15231 int main() {
15233 /* The GNU C library defines this for functions which it implements
15234 to always fail with ENOSYS. Some functions are actually named
15235 something starting with __ and the normal name is an alias. */
15236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15237 choke me
15238 #else
15239 $ac_func();
15240 #endif
15242 ; return 0; }
15244 if { (eval echo configure:15245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15245 rm -rf conftest*
15246 eval "ac_cv_func_$ac_func=yes"
15247 else
15248 echo "configure: failed program was:" >&5
15249 cat conftest.$ac_ext >&5
15250 rm -rf conftest*
15251 eval "ac_cv_func_$ac_func=no"
15253 rm -f conftest*
15256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15257 echo "$ac_t""yes" 1>&6
15258 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15259 cat >> confdefs.h <<EOF
15260 #define $ac_tr_func 1
15263 else
15264 echo "$ac_t""no" 1>&6
15266 done
15268 else
15270 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
15271 echo "configure:15272: checking for _sincosl declaration" >&5
15272 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
15273 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
15274 echo $ac_n "(cached) $ac_c" 1>&6
15275 else
15278 ac_ext=C
15279 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15280 ac_cpp='$CXXCPP $CPPFLAGS'
15281 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15282 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15283 cross_compiling=$ac_cv_prog_cxx_cross
15285 cat > conftest.$ac_ext <<EOF
15286 #line 15287 "configure"
15287 #include "confdefs.h"
15288 #include <math.h>
15289 int main() {
15290 _sincosl(0, 0, 0);
15291 ; return 0; }
15293 if { (eval echo configure:15294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15294 rm -rf conftest*
15295 glibcpp_cv_func__sincosl_use=yes
15296 else
15297 echo "configure: failed program was:" >&5
15298 cat conftest.$ac_ext >&5
15299 rm -rf conftest*
15300 glibcpp_cv_func__sincosl_use=no
15302 rm -f conftest*
15303 ac_ext=c
15304 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15305 ac_cpp='$CPP $CPPFLAGS'
15306 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15307 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15308 cross_compiling=$ac_cv_prog_cc_cross
15314 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
15316 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
15317 for ac_func in _sincosl
15319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15320 echo "configure:15321: checking for $ac_func" >&5
15321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15322 echo $ac_n "(cached) $ac_c" 1>&6
15323 else
15324 cat > conftest.$ac_ext <<EOF
15325 #line 15326 "configure"
15326 #include "confdefs.h"
15327 /* System header to define __stub macros and hopefully few prototypes,
15328 which can conflict with char $ac_func(); below. */
15329 #include <assert.h>
15330 /* Override any gcc2 internal prototype to avoid an error. */
15331 /* We use char because int might match the return type of a gcc2
15332 builtin and then its argument prototype would still apply. */
15333 char $ac_func();
15335 int main() {
15337 /* The GNU C library defines this for functions which it implements
15338 to always fail with ENOSYS. Some functions are actually named
15339 something starting with __ and the normal name is an alias. */
15340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15341 choke me
15342 #else
15343 $ac_func();
15344 #endif
15346 ; return 0; }
15348 if { (eval echo configure:15349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15349 rm -rf conftest*
15350 eval "ac_cv_func_$ac_func=yes"
15351 else
15352 echo "configure: failed program was:" >&5
15353 cat conftest.$ac_ext >&5
15354 rm -rf conftest*
15355 eval "ac_cv_func_$ac_func=no"
15357 rm -f conftest*
15360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15361 echo "$ac_t""yes" 1>&6
15362 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15363 cat >> confdefs.h <<EOF
15364 #define $ac_tr_func 1
15367 else
15368 echo "$ac_t""no" 1>&6
15370 done
15377 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
15378 echo "configure:15379: checking for finitel declaration" >&5
15379 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
15380 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
15381 echo $ac_n "(cached) $ac_c" 1>&6
15382 else
15385 ac_ext=C
15386 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15387 ac_cpp='$CXXCPP $CPPFLAGS'
15388 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15389 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15390 cross_compiling=$ac_cv_prog_cxx_cross
15392 cat > conftest.$ac_ext <<EOF
15393 #line 15394 "configure"
15394 #include "confdefs.h"
15395 #include <math.h>
15396 #ifdef HAVE_IEEEFP_H
15397 #include <ieeefp.h>
15398 #endif
15400 int main() {
15401 finitel(0);
15402 ; return 0; }
15404 if { (eval echo configure:15405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15405 rm -rf conftest*
15406 glibcpp_cv_func_finitel_use=yes
15407 else
15408 echo "configure: failed program was:" >&5
15409 cat conftest.$ac_ext >&5
15410 rm -rf conftest*
15411 glibcpp_cv_func_finitel_use=no
15413 rm -f conftest*
15414 ac_ext=c
15415 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15416 ac_cpp='$CPP $CPPFLAGS'
15417 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15418 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15419 cross_compiling=$ac_cv_prog_cc_cross
15425 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
15427 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
15428 for ac_func in finitel
15430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15431 echo "configure:15432: checking for $ac_func" >&5
15432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15433 echo $ac_n "(cached) $ac_c" 1>&6
15434 else
15435 cat > conftest.$ac_ext <<EOF
15436 #line 15437 "configure"
15437 #include "confdefs.h"
15438 /* System header to define __stub macros and hopefully few prototypes,
15439 which can conflict with char $ac_func(); below. */
15440 #include <assert.h>
15441 /* Override any gcc2 internal prototype to avoid an error. */
15442 /* We use char because int might match the return type of a gcc2
15443 builtin and then its argument prototype would still apply. */
15444 char $ac_func();
15446 int main() {
15448 /* The GNU C library defines this for functions which it implements
15449 to always fail with ENOSYS. Some functions are actually named
15450 something starting with __ and the normal name is an alias. */
15451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15452 choke me
15453 #else
15454 $ac_func();
15455 #endif
15457 ; return 0; }
15459 if { (eval echo configure:15460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15460 rm -rf conftest*
15461 eval "ac_cv_func_$ac_func=yes"
15462 else
15463 echo "configure: failed program was:" >&5
15464 cat conftest.$ac_ext >&5
15465 rm -rf conftest*
15466 eval "ac_cv_func_$ac_func=no"
15468 rm -f conftest*
15471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15472 echo "$ac_t""yes" 1>&6
15473 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15474 cat >> confdefs.h <<EOF
15475 #define $ac_tr_func 1
15478 else
15479 echo "$ac_t""no" 1>&6
15481 done
15483 else
15485 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
15486 echo "configure:15487: checking for _finitel declaration" >&5
15487 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
15488 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
15489 echo $ac_n "(cached) $ac_c" 1>&6
15490 else
15493 ac_ext=C
15494 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15495 ac_cpp='$CXXCPP $CPPFLAGS'
15496 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15497 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15498 cross_compiling=$ac_cv_prog_cxx_cross
15500 cat > conftest.$ac_ext <<EOF
15501 #line 15502 "configure"
15502 #include "confdefs.h"
15503 #include <math.h>
15504 #ifdef HAVE_IEEEFP_H
15505 #include <ieeefp.h>
15506 #endif
15508 int main() {
15509 _finitel(0);
15510 ; return 0; }
15512 if { (eval echo configure:15513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15513 rm -rf conftest*
15514 glibcpp_cv_func__finitel_use=yes
15515 else
15516 echo "configure: failed program was:" >&5
15517 cat conftest.$ac_ext >&5
15518 rm -rf conftest*
15519 glibcpp_cv_func__finitel_use=no
15521 rm -f conftest*
15522 ac_ext=c
15523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15524 ac_cpp='$CPP $CPPFLAGS'
15525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15527 cross_compiling=$ac_cv_prog_cc_cross
15533 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
15535 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
15536 for ac_func in _finitel
15538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15539 echo "configure:15540: checking for $ac_func" >&5
15540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15541 echo $ac_n "(cached) $ac_c" 1>&6
15542 else
15543 cat > conftest.$ac_ext <<EOF
15544 #line 15545 "configure"
15545 #include "confdefs.h"
15546 /* System header to define __stub macros and hopefully few prototypes,
15547 which can conflict with char $ac_func(); below. */
15548 #include <assert.h>
15549 /* Override any gcc2 internal prototype to avoid an error. */
15550 /* We use char because int might match the return type of a gcc2
15551 builtin and then its argument prototype would still apply. */
15552 char $ac_func();
15554 int main() {
15556 /* The GNU C library defines this for functions which it implements
15557 to always fail with ENOSYS. Some functions are actually named
15558 something starting with __ and the normal name is an alias. */
15559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15560 choke me
15561 #else
15562 $ac_func();
15563 #endif
15565 ; return 0; }
15567 if { (eval echo configure:15568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15568 rm -rf conftest*
15569 eval "ac_cv_func_$ac_func=yes"
15570 else
15571 echo "configure: failed program was:" >&5
15572 cat conftest.$ac_ext >&5
15573 rm -rf conftest*
15574 eval "ac_cv_func_$ac_func=no"
15576 rm -f conftest*
15579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15580 echo "$ac_t""yes" 1>&6
15581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15582 cat >> confdefs.h <<EOF
15583 #define $ac_tr_func 1
15586 else
15587 echo "$ac_t""no" 1>&6
15589 done
15597 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
15598 echo "configure:15599: checking for _float trig functions" >&5
15599 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
15600 echo $ac_n "(cached) $ac_c" 1>&6
15601 else
15604 ac_ext=C
15605 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15606 ac_cpp='$CXXCPP $CPPFLAGS'
15607 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15608 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15609 cross_compiling=$ac_cv_prog_cxx_cross
15611 cat > conftest.$ac_ext <<EOF
15612 #line 15613 "configure"
15613 #include "confdefs.h"
15614 #include <math.h>
15615 int main() {
15616 `for x in _acosf _asinf _atanf \
15617 _cosf _sinf _tanf \
15618 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
15619 ; return 0; }
15621 if { (eval echo configure:15622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15622 rm -rf conftest*
15623 glibcpp_cv_func__float_trig_use=yes
15624 else
15625 echo "configure: failed program was:" >&5
15626 cat conftest.$ac_ext >&5
15627 rm -rf conftest*
15628 glibcpp_cv_func__float_trig_use=no
15630 rm -f conftest*
15631 ac_ext=c
15632 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15633 ac_cpp='$CPP $CPPFLAGS'
15634 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15635 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15636 cross_compiling=$ac_cv_prog_cc_cross
15640 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
15641 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
15642 for ac_func in _acosf _asinf _atanf \
15643 _cosf _sinf _tanf \
15644 _coshf _sinhf _tanhf
15646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15647 echo "configure:15648: checking for $ac_func" >&5
15648 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15649 echo $ac_n "(cached) $ac_c" 1>&6
15650 else
15651 cat > conftest.$ac_ext <<EOF
15652 #line 15653 "configure"
15653 #include "confdefs.h"
15654 /* System header to define __stub macros and hopefully few prototypes,
15655 which can conflict with char $ac_func(); below. */
15656 #include <assert.h>
15657 /* Override any gcc2 internal prototype to avoid an error. */
15658 /* We use char because int might match the return type of a gcc2
15659 builtin and then its argument prototype would still apply. */
15660 char $ac_func();
15662 int main() {
15664 /* The GNU C library defines this for functions which it implements
15665 to always fail with ENOSYS. Some functions are actually named
15666 something starting with __ and the normal name is an alias. */
15667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15668 choke me
15669 #else
15670 $ac_func();
15671 #endif
15673 ; return 0; }
15675 if { (eval echo configure:15676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15676 rm -rf conftest*
15677 eval "ac_cv_func_$ac_func=yes"
15678 else
15679 echo "configure: failed program was:" >&5
15680 cat conftest.$ac_ext >&5
15681 rm -rf conftest*
15682 eval "ac_cv_func_$ac_func=no"
15684 rm -f conftest*
15687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15688 echo "$ac_t""yes" 1>&6
15689 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15690 cat >> confdefs.h <<EOF
15691 #define $ac_tr_func 1
15694 else
15695 echo "$ac_t""no" 1>&6
15697 done
15702 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
15703 echo "configure:15704: checking for _float round functions" >&5
15704 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
15705 echo $ac_n "(cached) $ac_c" 1>&6
15706 else
15709 ac_ext=C
15710 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15711 ac_cpp='$CXXCPP $CPPFLAGS'
15712 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15713 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15714 cross_compiling=$ac_cv_prog_cxx_cross
15716 cat > conftest.$ac_ext <<EOF
15717 #line 15718 "configure"
15718 #include "confdefs.h"
15719 #include <math.h>
15720 int main() {
15721 `for x in _ceilf _floorf; do echo "$x (0);"; done`
15722 ; return 0; }
15724 if { (eval echo configure:15725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15725 rm -rf conftest*
15726 glibcpp_cv_func__float_round_use=yes
15727 else
15728 echo "configure: failed program was:" >&5
15729 cat conftest.$ac_ext >&5
15730 rm -rf conftest*
15731 glibcpp_cv_func__float_round_use=no
15733 rm -f conftest*
15734 ac_ext=c
15735 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15736 ac_cpp='$CPP $CPPFLAGS'
15737 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15738 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15739 cross_compiling=$ac_cv_prog_cc_cross
15743 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
15744 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
15745 for ac_func in _ceilf _floorf
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
15804 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
15805 echo "configure:15806: checking for _long double trig functions" >&5
15806 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
15807 echo $ac_n "(cached) $ac_c" 1>&6
15808 else
15811 ac_ext=C
15812 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15813 ac_cpp='$CXXCPP $CPPFLAGS'
15814 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15815 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15816 cross_compiling=$ac_cv_prog_cxx_cross
15818 cat > conftest.$ac_ext <<EOF
15819 #line 15820 "configure"
15820 #include "confdefs.h"
15821 #include <math.h>
15822 int main() {
15823 `for x in _acosl _asinl _atanl \
15824 _cosl _sinl _tanl \
15825 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
15826 ; return 0; }
15828 if { (eval echo configure:15829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15829 rm -rf conftest*
15830 glibcpp_cv_func__long_double_trig_use=yes
15831 else
15832 echo "configure: failed program was:" >&5
15833 cat conftest.$ac_ext >&5
15834 rm -rf conftest*
15835 glibcpp_cv_func__long_double_trig_use=no
15837 rm -f conftest*
15838 ac_ext=c
15839 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15840 ac_cpp='$CPP $CPPFLAGS'
15841 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15842 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15843 cross_compiling=$ac_cv_prog_cc_cross
15847 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
15848 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
15849 for ac_func in _acosl _asinl _atanl \
15850 _cosl _sinl _tanl \
15851 _coshl _sinhl _tanhl
15853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15854 echo "configure:15855: checking for $ac_func" >&5
15855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15856 echo $ac_n "(cached) $ac_c" 1>&6
15857 else
15858 cat > conftest.$ac_ext <<EOF
15859 #line 15860 "configure"
15860 #include "confdefs.h"
15861 /* System header to define __stub macros and hopefully few prototypes,
15862 which can conflict with char $ac_func(); below. */
15863 #include <assert.h>
15864 /* Override any gcc2 internal prototype to avoid an error. */
15865 /* We use char because int might match the return type of a gcc2
15866 builtin and then its argument prototype would still apply. */
15867 char $ac_func();
15869 int main() {
15871 /* The GNU C library defines this for functions which it implements
15872 to always fail with ENOSYS. Some functions are actually named
15873 something starting with __ and the normal name is an alias. */
15874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15875 choke me
15876 #else
15877 $ac_func();
15878 #endif
15880 ; return 0; }
15882 if { (eval echo configure:15883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15883 rm -rf conftest*
15884 eval "ac_cv_func_$ac_func=yes"
15885 else
15886 echo "configure: failed program was:" >&5
15887 cat conftest.$ac_ext >&5
15888 rm -rf conftest*
15889 eval "ac_cv_func_$ac_func=no"
15891 rm -f conftest*
15894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15895 echo "$ac_t""yes" 1>&6
15896 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15897 cat >> confdefs.h <<EOF
15898 #define $ac_tr_func 1
15901 else
15902 echo "$ac_t""no" 1>&6
15904 done
15909 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
15910 echo "configure:15911: checking for _long double round functions" >&5
15911 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
15912 echo $ac_n "(cached) $ac_c" 1>&6
15913 else
15916 ac_ext=C
15917 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15918 ac_cpp='$CXXCPP $CPPFLAGS'
15919 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15920 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15921 cross_compiling=$ac_cv_prog_cxx_cross
15923 cat > conftest.$ac_ext <<EOF
15924 #line 15925 "configure"
15925 #include "confdefs.h"
15926 #include <math.h>
15927 int main() {
15928 `for x in _ceill _floorl; do echo "$x (0);"; done`
15929 ; return 0; }
15931 if { (eval echo configure:15932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15932 rm -rf conftest*
15933 glibcpp_cv_func__long_double_round_use=yes
15934 else
15935 echo "configure: failed program was:" >&5
15936 cat conftest.$ac_ext >&5
15937 rm -rf conftest*
15938 glibcpp_cv_func__long_double_round_use=no
15940 rm -f conftest*
15941 ac_ext=c
15942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15943 ac_cpp='$CPP $CPPFLAGS'
15944 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15945 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15946 cross_compiling=$ac_cv_prog_cc_cross
15950 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
15951 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
15952 for ac_func in _ceill _floorl
15954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15955 echo "configure:15956: checking for $ac_func" >&5
15956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15957 echo $ac_n "(cached) $ac_c" 1>&6
15958 else
15959 cat > conftest.$ac_ext <<EOF
15960 #line 15961 "configure"
15961 #include "confdefs.h"
15962 /* System header to define __stub macros and hopefully few prototypes,
15963 which can conflict with char $ac_func(); below. */
15964 #include <assert.h>
15965 /* Override any gcc2 internal prototype to avoid an error. */
15966 /* We use char because int might match the return type of a gcc2
15967 builtin and then its argument prototype would still apply. */
15968 char $ac_func();
15970 int main() {
15972 /* The GNU C library defines this for functions which it implements
15973 to always fail with ENOSYS. Some functions are actually named
15974 something starting with __ and the normal name is an alias. */
15975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15976 choke me
15977 #else
15978 $ac_func();
15979 #endif
15981 ; return 0; }
15983 if { (eval echo configure:15984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15984 rm -rf conftest*
15985 eval "ac_cv_func_$ac_func=yes"
15986 else
15987 echo "configure: failed program was:" >&5
15988 cat conftest.$ac_ext >&5
15989 rm -rf conftest*
15990 eval "ac_cv_func_$ac_func=no"
15992 rm -f conftest*
15995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15996 echo "$ac_t""yes" 1>&6
15997 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15998 cat >> confdefs.h <<EOF
15999 #define $ac_tr_func 1
16002 else
16003 echo "$ac_t""no" 1>&6
16005 done
16010 LIBS="$ac_save_LIBS"
16011 CXXFLAGS="$ac_save_CXXFLAGS"
16014 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
16015 echo "configure:16016: checking for main in -lm" >&5
16016 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
16017 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16018 echo $ac_n "(cached) $ac_c" 1>&6
16019 else
16020 ac_save_LIBS="$LIBS"
16021 LIBS="-lm $LIBS"
16022 cat > conftest.$ac_ext <<EOF
16023 #line 16024 "configure"
16024 #include "confdefs.h"
16026 int main() {
16027 main()
16028 ; return 0; }
16030 if { (eval echo configure:16031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16031 rm -rf conftest*
16032 eval "ac_cv_lib_$ac_lib_var=yes"
16033 else
16034 echo "configure: failed program was:" >&5
16035 cat conftest.$ac_ext >&5
16036 rm -rf conftest*
16037 eval "ac_cv_lib_$ac_lib_var=no"
16039 rm -f conftest*
16040 LIBS="$ac_save_LIBS"
16043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16044 echo "$ac_t""yes" 1>&6
16045 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
16046 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
16047 cat >> confdefs.h <<EOF
16048 #define $ac_tr_lib 1
16051 LIBS="-lm $LIBS"
16053 else
16054 echo "$ac_t""no" 1>&6
16057 for ac_func in nan copysignf
16059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16060 echo "configure:16061: checking for $ac_func" >&5
16061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16062 echo $ac_n "(cached) $ac_c" 1>&6
16063 else
16064 cat > conftest.$ac_ext <<EOF
16065 #line 16066 "configure"
16066 #include "confdefs.h"
16067 /* System header to define __stub macros and hopefully few prototypes,
16068 which can conflict with char $ac_func(); below. */
16069 #include <assert.h>
16070 /* Override any gcc2 internal prototype to avoid an error. */
16071 /* We use char because int might match the return type of a gcc2
16072 builtin and then its argument prototype would still apply. */
16073 char $ac_func();
16075 int main() {
16077 /* The GNU C library defines this for functions which it implements
16078 to always fail with ENOSYS. Some functions are actually named
16079 something starting with __ and the normal name is an alias. */
16080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16081 choke me
16082 #else
16083 $ac_func();
16084 #endif
16086 ; return 0; }
16088 if { (eval echo configure:16089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16089 rm -rf conftest*
16090 eval "ac_cv_func_$ac_func=yes"
16091 else
16092 echo "configure: failed program was:" >&5
16093 cat conftest.$ac_ext >&5
16094 rm -rf conftest*
16095 eval "ac_cv_func_$ac_func=no"
16097 rm -f conftest*
16100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16101 echo "$ac_t""yes" 1>&6
16102 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16103 cat >> confdefs.h <<EOF
16104 #define $ac_tr_func 1
16107 else
16108 echo "$ac_t""no" 1>&6
16109 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
16111 done
16115 USE_COMPLEX_LONG_DOUBLE=no
16116 if test x$ac_cv_func_copysignl = x"yes"; then
16117 USE_COMPLEX_LONG_DOUBLE=yes
16118 for ac_func in signbitl
16120 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16121 echo "configure:16122: checking for $ac_func" >&5
16122 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16123 echo $ac_n "(cached) $ac_c" 1>&6
16124 else
16125 cat > conftest.$ac_ext <<EOF
16126 #line 16127 "configure"
16127 #include "confdefs.h"
16128 /* System header to define __stub macros and hopefully few prototypes,
16129 which can conflict with char $ac_func(); below. */
16130 #include <assert.h>
16131 /* Override any gcc2 internal prototype to avoid an error. */
16132 /* We use char because int might match the return type of a gcc2
16133 builtin and then its argument prototype would still apply. */
16134 char $ac_func();
16136 int main() {
16138 /* The GNU C library defines this for functions which it implements
16139 to always fail with ENOSYS. Some functions are actually named
16140 something starting with __ and the normal name is an alias. */
16141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16142 choke me
16143 #else
16144 $ac_func();
16145 #endif
16147 ; return 0; }
16149 if { (eval echo configure:16150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16150 rm -rf conftest*
16151 eval "ac_cv_func_$ac_func=yes"
16152 else
16153 echo "configure: failed program was:" >&5
16154 cat conftest.$ac_ext >&5
16155 rm -rf conftest*
16156 eval "ac_cv_func_$ac_func=no"
16158 rm -f conftest*
16161 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16162 echo "$ac_t""yes" 1>&6
16163 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16164 cat >> confdefs.h <<EOF
16165 #define $ac_tr_func 1
16168 else
16169 echo "$ac_t""no" 1>&6
16170 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
16172 done
16181 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
16182 echo "configure:16183: checking for mbstate_t" >&5
16183 cat > conftest.$ac_ext <<EOF
16184 #line 16185 "configure"
16185 #include "confdefs.h"
16186 #include <wchar.h>
16187 int main() {
16188 mbstate_t teststate;
16189 ; return 0; }
16191 if { (eval echo configure:16192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16192 rm -rf conftest*
16193 have_mbstate_t=yes
16194 else
16195 echo "configure: failed program was:" >&5
16196 cat conftest.$ac_ext >&5
16197 rm -rf conftest*
16198 have_mbstate_t=no
16200 rm -f conftest*
16201 echo "$ac_t""$have_mbstate_t" 1>&6
16202 if test x"$have_mbstate_t" = xyes; then
16203 cat >> confdefs.h <<\EOF
16204 #define HAVE_MBSTATE_T 1
16209 for ac_hdr in wchar.h
16211 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16212 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16213 echo "configure:16214: checking for $ac_hdr" >&5
16214 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16215 echo $ac_n "(cached) $ac_c" 1>&6
16216 else
16217 cat > conftest.$ac_ext <<EOF
16218 #line 16219 "configure"
16219 #include "confdefs.h"
16220 #include <$ac_hdr>
16222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16223 { (eval echo configure:16224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16225 if test -z "$ac_err"; then
16226 rm -rf conftest*
16227 eval "ac_cv_header_$ac_safe=yes"
16228 else
16229 echo "$ac_err" >&5
16230 echo "configure: failed program was:" >&5
16231 cat conftest.$ac_ext >&5
16232 rm -rf conftest*
16233 eval "ac_cv_header_$ac_safe=no"
16235 rm -f conftest*
16237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16238 echo "$ac_t""yes" 1>&6
16239 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16240 cat >> confdefs.h <<EOF
16241 #define $ac_tr_hdr 1
16243 ac_has_wchar_h=yes
16244 else
16245 echo "$ac_t""no" 1>&6
16246 ac_has_wchar_h=no
16248 done
16250 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
16251 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
16252 echo "configure:16253: checking for wctype.h" >&5
16253 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16254 echo $ac_n "(cached) $ac_c" 1>&6
16255 else
16256 cat > conftest.$ac_ext <<EOF
16257 #line 16258 "configure"
16258 #include "confdefs.h"
16259 #include <wctype.h>
16261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16262 { (eval echo configure:16263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16264 if test -z "$ac_err"; then
16265 rm -rf conftest*
16266 eval "ac_cv_header_$ac_safe=yes"
16267 else
16268 echo "$ac_err" >&5
16269 echo "configure: failed program was:" >&5
16270 cat conftest.$ac_ext >&5
16271 rm -rf conftest*
16272 eval "ac_cv_header_$ac_safe=no"
16274 rm -f conftest*
16276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16277 echo "$ac_t""yes" 1>&6
16278 ac_has_wctype_h=yes
16279 else
16280 echo "$ac_t""no" 1>&6
16281 ac_has_wctype_h=no
16285 if test x"$ac_has_wchar_h" = xyes &&
16286 test x"$ac_has_wctype_h" = xyes &&
16287 test x"$enable_c_mbchar" != xno; then
16289 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
16290 echo "configure:16291: checking for WCHAR_MIN and WCHAR_MAX" >&5
16291 cat > conftest.$ac_ext <<EOF
16292 #line 16293 "configure"
16293 #include "confdefs.h"
16294 #include <wchar.h>
16295 int main() {
16296 int i = WCHAR_MIN; int j = WCHAR_MAX;
16297 ; return 0; }
16299 if { (eval echo configure:16300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16300 rm -rf conftest*
16301 has_wchar_minmax=yes
16302 else
16303 echo "configure: failed program was:" >&5
16304 cat conftest.$ac_ext >&5
16305 rm -rf conftest*
16306 has_wchar_minmax=no
16308 rm -f conftest*
16309 echo "$ac_t""$has_wchar_minmax" 1>&6
16311 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
16312 echo "configure:16313: checking for WEOF" >&5
16313 cat > conftest.$ac_ext <<EOF
16314 #line 16315 "configure"
16315 #include "confdefs.h"
16317 #include <wchar.h>
16318 #include <stddef.h>
16319 int main() {
16320 wint_t i = WEOF;
16321 ; return 0; }
16323 if { (eval echo configure:16324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16324 rm -rf conftest*
16325 has_weof=yes
16326 else
16327 echo "configure: failed program was:" >&5
16328 cat conftest.$ac_ext >&5
16329 rm -rf conftest*
16330 has_weof=no
16332 rm -f conftest*
16333 echo "$ac_t""$has_weof" 1>&6
16335 ac_wfuncs=yes
16336 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
16338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16339 echo "configure:16340: checking for $ac_func" >&5
16340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16341 echo $ac_n "(cached) $ac_c" 1>&6
16342 else
16343 cat > conftest.$ac_ext <<EOF
16344 #line 16345 "configure"
16345 #include "confdefs.h"
16346 /* System header to define __stub macros and hopefully few prototypes,
16347 which can conflict with char $ac_func(); below. */
16348 #include <assert.h>
16349 /* Override any gcc2 internal prototype to avoid an error. */
16350 /* We use char because int might match the return type of a gcc2
16351 builtin and then its argument prototype would still apply. */
16352 char $ac_func();
16354 int main() {
16356 /* The GNU C library defines this for functions which it implements
16357 to always fail with ENOSYS. Some functions are actually named
16358 something starting with __ and the normal name is an alias. */
16359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16360 choke me
16361 #else
16362 $ac_func();
16363 #endif
16365 ; return 0; }
16367 if { (eval echo configure:16368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16368 rm -rf conftest*
16369 eval "ac_cv_func_$ac_func=yes"
16370 else
16371 echo "configure: failed program was:" >&5
16372 cat conftest.$ac_ext >&5
16373 rm -rf conftest*
16374 eval "ac_cv_func_$ac_func=no"
16376 rm -f conftest*
16379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16380 echo "$ac_t""yes" 1>&6
16381 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16382 cat >> confdefs.h <<EOF
16383 #define $ac_tr_func 1
16386 else
16387 echo "$ac_t""no" 1>&6
16389 ac_wfuncs=no
16391 done
16394 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
16395 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
16396 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
16397 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
16398 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
16399 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
16401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16402 echo "configure:16403: checking for $ac_func" >&5
16403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16404 echo $ac_n "(cached) $ac_c" 1>&6
16405 else
16406 cat > conftest.$ac_ext <<EOF
16407 #line 16408 "configure"
16408 #include "confdefs.h"
16409 /* System header to define __stub macros and hopefully few prototypes,
16410 which can conflict with char $ac_func(); below. */
16411 #include <assert.h>
16412 /* Override any gcc2 internal prototype to avoid an error. */
16413 /* We use char because int might match the return type of a gcc2
16414 builtin and then its argument prototype would still apply. */
16415 char $ac_func();
16417 int main() {
16419 /* The GNU C library defines this for functions which it implements
16420 to always fail with ENOSYS. Some functions are actually named
16421 something starting with __ and the normal name is an alias. */
16422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16423 choke me
16424 #else
16425 $ac_func();
16426 #endif
16428 ; return 0; }
16430 if { (eval echo configure:16431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16431 rm -rf conftest*
16432 eval "ac_cv_func_$ac_func=yes"
16433 else
16434 echo "configure: failed program was:" >&5
16435 cat conftest.$ac_ext >&5
16436 rm -rf conftest*
16437 eval "ac_cv_func_$ac_func=no"
16439 rm -f conftest*
16442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16443 echo "$ac_t""yes" 1>&6
16444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16445 cat >> confdefs.h <<EOF
16446 #define $ac_tr_func 1
16449 else
16450 echo "$ac_t""no" 1>&6
16452 ac_wfuncs=no
16454 done
16457 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
16458 echo "configure:16459: checking for ISO C99 wchar_t support" >&5
16459 if test x"$has_weof" = xyes &&
16460 test x"$has_wchar_minmax" = xyes &&
16461 test x"$ac_wfuncs" = xyes; then
16462 ac_isoC99_wchar_t=yes
16463 else
16464 ac_isoC99_wchar_t=no
16466 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
16468 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
16469 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
16470 echo "configure:16471: checking for iconv.h" >&5
16471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16472 echo $ac_n "(cached) $ac_c" 1>&6
16473 else
16474 cat > conftest.$ac_ext <<EOF
16475 #line 16476 "configure"
16476 #include "confdefs.h"
16477 #include <iconv.h>
16479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16480 { (eval echo configure:16481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16482 if test -z "$ac_err"; then
16483 rm -rf conftest*
16484 eval "ac_cv_header_$ac_safe=yes"
16485 else
16486 echo "$ac_err" >&5
16487 echo "configure: failed program was:" >&5
16488 cat conftest.$ac_ext >&5
16489 rm -rf conftest*
16490 eval "ac_cv_header_$ac_safe=no"
16492 rm -f conftest*
16494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16495 echo "$ac_t""yes" 1>&6
16496 ac_has_iconv_h=yes
16497 else
16498 echo "$ac_t""no" 1>&6
16499 ac_has_iconv_h=no
16502 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
16503 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
16504 echo "configure:16505: checking for langinfo.h" >&5
16505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 #include <langinfo.h>
16513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16514 { (eval echo configure:16515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16516 if test -z "$ac_err"; then
16517 rm -rf conftest*
16518 eval "ac_cv_header_$ac_safe=yes"
16519 else
16520 echo "$ac_err" >&5
16521 echo "configure: failed program was:" >&5
16522 cat conftest.$ac_ext >&5
16523 rm -rf conftest*
16524 eval "ac_cv_header_$ac_safe=no"
16526 rm -f conftest*
16528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16529 echo "$ac_t""yes" 1>&6
16530 ac_has_langinfo_h=yes
16531 else
16532 echo "$ac_t""no" 1>&6
16533 ac_has_langinfo_h=no
16537 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
16538 echo "configure:16539: checking for iconv in -liconv" >&5
16539 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
16540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16541 echo $ac_n "(cached) $ac_c" 1>&6
16542 else
16543 ac_save_LIBS="$LIBS"
16544 LIBS="-liconv $LIBS"
16545 cat > conftest.$ac_ext <<EOF
16546 #line 16547 "configure"
16547 #include "confdefs.h"
16548 /* Override any gcc2 internal prototype to avoid an error. */
16549 /* We use char because int might match the return type of a gcc2
16550 builtin and then its argument prototype would still apply. */
16551 char iconv();
16553 int main() {
16554 iconv()
16555 ; return 0; }
16557 if { (eval echo configure:16558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16558 rm -rf conftest*
16559 eval "ac_cv_lib_$ac_lib_var=yes"
16560 else
16561 echo "configure: failed program was:" >&5
16562 cat conftest.$ac_ext >&5
16563 rm -rf conftest*
16564 eval "ac_cv_lib_$ac_lib_var=no"
16566 rm -f conftest*
16567 LIBS="$ac_save_LIBS"
16570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16571 echo "$ac_t""yes" 1>&6
16572 libiconv="-liconv"
16573 else
16574 echo "$ac_t""no" 1>&6
16577 ac_save_LIBS="$LIBS"
16578 LIBS="$LIBS $libiconv"
16580 for ac_func in iconv_open iconv_close iconv nl_langinfo
16582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16583 echo "configure:16584: checking for $ac_func" >&5
16584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16585 echo $ac_n "(cached) $ac_c" 1>&6
16586 else
16587 cat > conftest.$ac_ext <<EOF
16588 #line 16589 "configure"
16589 #include "confdefs.h"
16590 /* System header to define __stub macros and hopefully few prototypes,
16591 which can conflict with char $ac_func(); below. */
16592 #include <assert.h>
16593 /* Override any gcc2 internal prototype to avoid an error. */
16594 /* We use char because int might match the return type of a gcc2
16595 builtin and then its argument prototype would still apply. */
16596 char $ac_func();
16598 int main() {
16600 /* The GNU C library defines this for functions which it implements
16601 to always fail with ENOSYS. Some functions are actually named
16602 something starting with __ and the normal name is an alias. */
16603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16604 choke me
16605 #else
16606 $ac_func();
16607 #endif
16609 ; return 0; }
16611 if { (eval echo configure:16612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16612 rm -rf conftest*
16613 eval "ac_cv_func_$ac_func=yes"
16614 else
16615 echo "configure: failed program was:" >&5
16616 cat conftest.$ac_ext >&5
16617 rm -rf conftest*
16618 eval "ac_cv_func_$ac_func=no"
16620 rm -f conftest*
16623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16624 echo "$ac_t""yes" 1>&6
16625 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16626 cat >> confdefs.h <<EOF
16627 #define $ac_tr_func 1
16630 ac_XPG2funcs=yes
16631 else
16632 echo "$ac_t""no" 1>&6
16633 ac_XPG2funcs=no
16635 done
16638 LIBS="$ac_save_LIBS"
16640 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
16641 echo "configure:16642: checking for XPG2 wchar_t support" >&5
16642 if test x"$ac_has_iconv_h" = xyes &&
16643 test x"$ac_has_langinfo_h" = xyes &&
16644 test x"$ac_XPG2funcs" = xyes; then
16645 ac_XPG2_wchar_t=yes
16646 else
16647 ac_XPG2_wchar_t=no
16649 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
16651 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
16652 echo "configure:16653: checking for enabled wchar_t specializations" >&5
16653 if test x"$ac_isoC99_wchar_t" = xyes &&
16654 test x"$ac_XPG2_wchar_t" = xyes; then
16655 cat >> confdefs.h <<\EOF
16656 #define _GLIBCPP_USE_WCHAR_T 1
16659 echo "$ac_t"""yes"" 1>&6
16660 else
16661 echo "$ac_t"""no"" 1>&6
16663 else
16664 echo "configure: warning: wchar_t support disabled." 1>&2
16668 ac_test_CXXFLAGS="${CXXFLAGS+set}"
16669 ac_save_CXXFLAGS="$CXXFLAGS"
16670 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
16673 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
16674 echo "configure:16675: checking for strtold declaration" >&5
16675 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
16676 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
16677 echo $ac_n "(cached) $ac_c" 1>&6
16678 else
16681 ac_ext=C
16682 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16683 ac_cpp='$CXXCPP $CPPFLAGS'
16684 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16685 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16686 cross_compiling=$ac_cv_prog_cxx_cross
16688 cat > conftest.$ac_ext <<EOF
16689 #line 16690 "configure"
16690 #include "confdefs.h"
16691 #include <stdlib.h>
16692 int main() {
16693 strtold(0, 0);
16694 ; return 0; }
16696 if { (eval echo configure:16697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16697 rm -rf conftest*
16698 glibcpp_cv_func_strtold_use=yes
16699 else
16700 echo "configure: failed program was:" >&5
16701 cat conftest.$ac_ext >&5
16702 rm -rf conftest*
16703 glibcpp_cv_func_strtold_use=no
16705 rm -f conftest*
16706 ac_ext=c
16707 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16708 ac_cpp='$CPP $CPPFLAGS'
16709 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16710 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16711 cross_compiling=$ac_cv_prog_cc_cross
16717 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
16718 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
16719 for ac_func in strtold
16721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16722 echo "configure:16723: checking for $ac_func" >&5
16723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16724 echo $ac_n "(cached) $ac_c" 1>&6
16725 else
16726 cat > conftest.$ac_ext <<EOF
16727 #line 16728 "configure"
16728 #include "confdefs.h"
16729 /* System header to define __stub macros and hopefully few prototypes,
16730 which can conflict with char $ac_func(); below. */
16731 #include <assert.h>
16732 /* Override any gcc2 internal prototype to avoid an error. */
16733 /* We use char because int might match the return type of a gcc2
16734 builtin and then its argument prototype would still apply. */
16735 char $ac_func();
16737 int main() {
16739 /* The GNU C library defines this for functions which it implements
16740 to always fail with ENOSYS. Some functions are actually named
16741 something starting with __ and the normal name is an alias. */
16742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16743 choke me
16744 #else
16745 $ac_func();
16746 #endif
16748 ; return 0; }
16750 if { (eval echo configure:16751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16751 rm -rf conftest*
16752 eval "ac_cv_func_$ac_func=yes"
16753 else
16754 echo "configure: failed program was:" >&5
16755 cat conftest.$ac_ext >&5
16756 rm -rf conftest*
16757 eval "ac_cv_func_$ac_func=no"
16759 rm -f conftest*
16762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16763 echo "$ac_t""yes" 1>&6
16764 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16765 cat >> confdefs.h <<EOF
16766 #define $ac_tr_func 1
16769 else
16770 echo "$ac_t""no" 1>&6
16772 done
16776 for ac_func in drand48
16778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16779 echo "configure:16780: checking for $ac_func" >&5
16780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16781 echo $ac_n "(cached) $ac_c" 1>&6
16782 else
16783 cat > conftest.$ac_ext <<EOF
16784 #line 16785 "configure"
16785 #include "confdefs.h"
16786 /* System header to define __stub macros and hopefully few prototypes,
16787 which can conflict with char $ac_func(); below. */
16788 #include <assert.h>
16789 /* Override any gcc2 internal prototype to avoid an error. */
16790 /* We use char because int might match the return type of a gcc2
16791 builtin and then its argument prototype would still apply. */
16792 char $ac_func();
16794 int main() {
16796 /* The GNU C library defines this for functions which it implements
16797 to always fail with ENOSYS. Some functions are actually named
16798 something starting with __ and the normal name is an alias. */
16799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16800 choke me
16801 #else
16802 $ac_func();
16803 #endif
16805 ; return 0; }
16807 if { (eval echo configure:16808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16808 rm -rf conftest*
16809 eval "ac_cv_func_$ac_func=yes"
16810 else
16811 echo "configure: failed program was:" >&5
16812 cat conftest.$ac_ext >&5
16813 rm -rf conftest*
16814 eval "ac_cv_func_$ac_func=no"
16816 rm -f conftest*
16819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16820 echo "$ac_t""yes" 1>&6
16821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16822 cat >> confdefs.h <<EOF
16823 #define $ac_tr_func 1
16826 else
16827 echo "$ac_t""no" 1>&6
16829 done
16832 CXXFLAGS="$ac_save_CXXFLAGS"
16835 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
16836 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
16837 echo "configure:16838: checking for locale.h" >&5
16838 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16839 echo $ac_n "(cached) $ac_c" 1>&6
16840 else
16841 cat > conftest.$ac_ext <<EOF
16842 #line 16843 "configure"
16843 #include "confdefs.h"
16844 #include <locale.h>
16846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16847 { (eval echo configure:16848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16849 if test -z "$ac_err"; then
16850 rm -rf conftest*
16851 eval "ac_cv_header_$ac_safe=yes"
16852 else
16853 echo "$ac_err" >&5
16854 echo "configure: failed program was:" >&5
16855 cat conftest.$ac_ext >&5
16856 rm -rf conftest*
16857 eval "ac_cv_header_$ac_safe=no"
16859 rm -f conftest*
16861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16862 echo "$ac_t""yes" 1>&6
16864 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16865 echo "configure:16866: checking for LC_MESSAGES" >&5
16866 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16867 echo $ac_n "(cached) $ac_c" 1>&6
16868 else
16869 cat > conftest.$ac_ext <<EOF
16870 #line 16871 "configure"
16871 #include "confdefs.h"
16872 #include <locale.h>
16873 int main() {
16874 return LC_MESSAGES
16875 ; return 0; }
16877 if { (eval echo configure:16878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16878 rm -rf conftest*
16879 ac_cv_val_LC_MESSAGES=yes
16880 else
16881 echo "configure: failed program was:" >&5
16882 cat conftest.$ac_ext >&5
16883 rm -rf conftest*
16884 ac_cv_val_LC_MESSAGES=no
16886 rm -f conftest*
16889 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16890 if test $ac_cv_val_LC_MESSAGES = yes; then
16891 cat >> confdefs.h <<\EOF
16892 #define HAVE_LC_MESSAGES 1
16897 else
16898 echo "$ac_t""no" 1>&6
16903 cat > conftest.$ac_ext <<EOF
16904 #line 16905 "configure"
16905 #include "confdefs.h"
16907 #include <setjmp.h>
16909 int main() {
16910 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16911 ; return 0; }
16913 if { (eval echo configure:16914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16914 rm -rf conftest*
16915 cat >> confdefs.h <<\EOF
16916 #define HAVE_SIGSETJMP 1
16920 else
16921 echo "configure: failed program was:" >&5
16922 cat conftest.$ac_ext >&5
16924 rm -f conftest*
16926 for ac_hdr in unistd.h
16928 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16929 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16930 echo "configure:16931: checking for $ac_hdr" >&5
16931 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16932 echo $ac_n "(cached) $ac_c" 1>&6
16933 else
16934 cat > conftest.$ac_ext <<EOF
16935 #line 16936 "configure"
16936 #include "confdefs.h"
16937 #include <$ac_hdr>
16939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16940 { (eval echo configure:16941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16942 if test -z "$ac_err"; then
16943 rm -rf conftest*
16944 eval "ac_cv_header_$ac_safe=yes"
16945 else
16946 echo "$ac_err" >&5
16947 echo "configure: failed program was:" >&5
16948 cat conftest.$ac_ext >&5
16949 rm -rf conftest*
16950 eval "ac_cv_header_$ac_safe=no"
16952 rm -f conftest*
16954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16955 echo "$ac_t""yes" 1>&6
16956 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16957 cat >> confdefs.h <<EOF
16958 #define $ac_tr_hdr 1
16961 else
16962 echo "$ac_t""no" 1>&6
16964 done
16966 for ac_func in getpagesize
16968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16969 echo "configure:16970: checking for $ac_func" >&5
16970 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16971 echo $ac_n "(cached) $ac_c" 1>&6
16972 else
16973 cat > conftest.$ac_ext <<EOF
16974 #line 16975 "configure"
16975 #include "confdefs.h"
16976 /* System header to define __stub macros and hopefully few prototypes,
16977 which can conflict with char $ac_func(); below. */
16978 #include <assert.h>
16979 /* Override any gcc2 internal prototype to avoid an error. */
16980 /* We use char because int might match the return type of a gcc2
16981 builtin and then its argument prototype would still apply. */
16982 char $ac_func();
16984 int main() {
16986 /* The GNU C library defines this for functions which it implements
16987 to always fail with ENOSYS. Some functions are actually named
16988 something starting with __ and the normal name is an alias. */
16989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16990 choke me
16991 #else
16992 $ac_func();
16993 #endif
16995 ; return 0; }
16997 if { (eval echo configure:16998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16998 rm -rf conftest*
16999 eval "ac_cv_func_$ac_func=yes"
17000 else
17001 echo "configure: failed program was:" >&5
17002 cat conftest.$ac_ext >&5
17003 rm -rf conftest*
17004 eval "ac_cv_func_$ac_func=no"
17006 rm -f conftest*
17009 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17010 echo "$ac_t""yes" 1>&6
17011 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17012 cat >> confdefs.h <<EOF
17013 #define $ac_tr_func 1
17016 else
17017 echo "$ac_t""no" 1>&6
17019 done
17021 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
17022 echo "configure:17023: checking for working mmap" >&5
17023 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
17024 echo $ac_n "(cached) $ac_c" 1>&6
17025 else
17026 if test "$cross_compiling" = yes; then
17027 ac_cv_func_mmap_fixed_mapped=no
17028 else
17029 cat > conftest.$ac_ext <<EOF
17030 #line 17031 "configure"
17031 #include "confdefs.h"
17033 /* Thanks to Mike Haertel and Jim Avera for this test.
17034 Here is a matrix of mmap possibilities:
17035 mmap private not fixed
17036 mmap private fixed at somewhere currently unmapped
17037 mmap private fixed at somewhere already mapped
17038 mmap shared not fixed
17039 mmap shared fixed at somewhere currently unmapped
17040 mmap shared fixed at somewhere already mapped
17041 For private mappings, we should verify that changes cannot be read()
17042 back from the file, nor mmap's back from the file at a different
17043 address. (There have been systems where private was not correctly
17044 implemented like the infamous i386 svr4.0, and systems where the
17045 VM page cache was not coherent with the filesystem buffer cache
17046 like early versions of FreeBSD and possibly contemporary NetBSD.)
17047 For shared mappings, we should conversely verify that changes get
17048 propogated back to all the places they're supposed to be.
17050 Grep wants private fixed already mapped.
17051 The main things grep needs to know about mmap are:
17052 * does it exist and is it safe to write into the mmap'd area
17053 * how to use it (BSD variants) */
17054 #include <sys/types.h>
17055 #include <fcntl.h>
17056 #include <sys/mman.h>
17058 /* This mess was copied from the GNU getpagesize.h. */
17059 #ifndef HAVE_GETPAGESIZE
17060 # ifdef HAVE_UNISTD_H
17061 # include <unistd.h>
17062 # endif
17064 /* Assume that all systems that can run configure have sys/param.h. */
17065 # ifndef HAVE_SYS_PARAM_H
17066 # define HAVE_SYS_PARAM_H 1
17067 # endif
17069 # ifdef _SC_PAGESIZE
17070 # define getpagesize() sysconf(_SC_PAGESIZE)
17071 # else /* no _SC_PAGESIZE */
17072 # ifdef HAVE_SYS_PARAM_H
17073 # include <sys/param.h>
17074 # ifdef EXEC_PAGESIZE
17075 # define getpagesize() EXEC_PAGESIZE
17076 # else /* no EXEC_PAGESIZE */
17077 # ifdef NBPG
17078 # define getpagesize() NBPG * CLSIZE
17079 # ifndef CLSIZE
17080 # define CLSIZE 1
17081 # endif /* no CLSIZE */
17082 # else /* no NBPG */
17083 # ifdef NBPC
17084 # define getpagesize() NBPC
17085 # else /* no NBPC */
17086 # ifdef PAGESIZE
17087 # define getpagesize() PAGESIZE
17088 # endif /* PAGESIZE */
17089 # endif /* no NBPC */
17090 # endif /* no NBPG */
17091 # endif /* no EXEC_PAGESIZE */
17092 # else /* no HAVE_SYS_PARAM_H */
17093 # define getpagesize() 8192 /* punt totally */
17094 # endif /* no HAVE_SYS_PARAM_H */
17095 # endif /* no _SC_PAGESIZE */
17097 #endif /* no HAVE_GETPAGESIZE */
17099 #ifdef __cplusplus
17100 extern "C" { void *malloc(unsigned); }
17101 #else
17102 char *malloc();
17103 #endif
17106 main()
17108 char *data, *data2, *data3;
17109 int i, pagesize;
17110 int fd;
17112 pagesize = getpagesize();
17115 * First, make a file with some known garbage in it.
17117 data = malloc(pagesize);
17118 if (!data)
17119 exit(1);
17120 for (i = 0; i < pagesize; ++i)
17121 *(data + i) = rand();
17122 umask(0);
17123 fd = creat("conftestmmap", 0600);
17124 if (fd < 0)
17125 exit(1);
17126 if (write(fd, data, pagesize) != pagesize)
17127 exit(1);
17128 close(fd);
17131 * Next, try to mmap the file at a fixed address which
17132 * already has something else allocated at it. If we can,
17133 * also make sure that we see the same garbage.
17135 fd = open("conftestmmap", O_RDWR);
17136 if (fd < 0)
17137 exit(1);
17138 data2 = malloc(2 * pagesize);
17139 if (!data2)
17140 exit(1);
17141 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
17142 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
17143 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17144 exit(1);
17145 for (i = 0; i < pagesize; ++i)
17146 if (*(data + i) != *(data2 + i))
17147 exit(1);
17150 * Finally, make sure that changes to the mapped area
17151 * do not percolate back to the file as seen by read().
17152 * (This is a bug on some variants of i386 svr4.0.)
17154 for (i = 0; i < pagesize; ++i)
17155 *(data2 + i) = *(data2 + i) + 1;
17156 data3 = malloc(pagesize);
17157 if (!data3)
17158 exit(1);
17159 if (read(fd, data3, pagesize) != pagesize)
17160 exit(1);
17161 for (i = 0; i < pagesize; ++i)
17162 if (*(data + i) != *(data3 + i))
17163 exit(1);
17164 close(fd);
17165 unlink("conftestmmap");
17166 exit(0);
17170 if { (eval echo configure:17171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
17171 then
17172 ac_cv_func_mmap_fixed_mapped=yes
17173 else
17174 echo "configure: failed program was:" >&5
17175 cat conftest.$ac_ext >&5
17176 rm -fr conftest*
17177 ac_cv_func_mmap_fixed_mapped=no
17179 rm -fr conftest*
17184 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
17185 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17186 cat >> confdefs.h <<\EOF
17187 #define HAVE_MMAP 1
17193 # Establish limits on memory usage during 'make check'
17196 setrlimit_have_headers=yes
17197 for ac_hdr in sys/resource.h unistd.h
17199 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17200 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17201 echo "configure:17202: checking for $ac_hdr" >&5
17202 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17203 echo $ac_n "(cached) $ac_c" 1>&6
17204 else
17205 cat > conftest.$ac_ext <<EOF
17206 #line 17207 "configure"
17207 #include "confdefs.h"
17208 #include <$ac_hdr>
17210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17211 { (eval echo configure:17212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17213 if test -z "$ac_err"; then
17214 rm -rf conftest*
17215 eval "ac_cv_header_$ac_safe=yes"
17216 else
17217 echo "$ac_err" >&5
17218 echo "configure: failed program was:" >&5
17219 cat conftest.$ac_ext >&5
17220 rm -rf conftest*
17221 eval "ac_cv_header_$ac_safe=no"
17223 rm -f conftest*
17225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17226 echo "$ac_t""yes" 1>&6
17227 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17228 cat >> confdefs.h <<EOF
17229 #define $ac_tr_hdr 1
17232 else
17233 echo "$ac_t""no" 1>&6
17234 setrlimit_have_headers=no
17236 done
17238 # If don't have the headers, then we can't run the tests now, and we
17239 # won't be seeing any of these during testsuite compilation.
17240 if test $setrlimit_have_headers = yes; then
17241 # Can't do these in a loop, else the resulting syntax is wrong.
17243 cat > conftest.$ac_ext <<EOF
17244 #line 17245 "configure"
17245 #include "confdefs.h"
17246 #include <sys/resource.h>
17247 #include <unistd.h>
17249 int main() {
17250 int f = RLIMIT_DATA ;
17251 ; return 0; }
17253 if { (eval echo configure:17254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17254 rm -rf conftest*
17255 glibcpp_mresult=1
17256 else
17257 echo "configure: failed program was:" >&5
17258 cat conftest.$ac_ext >&5
17259 rm -rf conftest*
17260 glibcpp_mresult=0
17262 rm -f conftest*
17263 cat >> confdefs.h <<EOF
17264 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
17269 cat > conftest.$ac_ext <<EOF
17270 #line 17271 "configure"
17271 #include "confdefs.h"
17272 #include <sys/resource.h>
17273 #include <unistd.h>
17275 int main() {
17276 int f = RLIMIT_RSS ;
17277 ; return 0; }
17279 if { (eval echo configure:17280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17280 rm -rf conftest*
17281 glibcpp_mresult=1
17282 else
17283 echo "configure: failed program was:" >&5
17284 cat conftest.$ac_ext >&5
17285 rm -rf conftest*
17286 glibcpp_mresult=0
17288 rm -f conftest*
17289 cat >> confdefs.h <<EOF
17290 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
17295 cat > conftest.$ac_ext <<EOF
17296 #line 17297 "configure"
17297 #include "confdefs.h"
17298 #include <sys/resource.h>
17299 #include <unistd.h>
17301 int main() {
17302 int f = RLIMIT_VMEM ;
17303 ; return 0; }
17305 if { (eval echo configure:17306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17306 rm -rf conftest*
17307 glibcpp_mresult=1
17308 else
17309 echo "configure: failed program was:" >&5
17310 cat conftest.$ac_ext >&5
17311 rm -rf conftest*
17312 glibcpp_mresult=0
17314 rm -f conftest*
17315 cat >> confdefs.h <<EOF
17316 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
17321 cat > conftest.$ac_ext <<EOF
17322 #line 17323 "configure"
17323 #include "confdefs.h"
17324 #include <sys/resource.h>
17325 #include <unistd.h>
17327 int main() {
17328 int f = RLIMIT_AS ;
17329 ; return 0; }
17331 if { (eval echo configure:17332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17332 rm -rf conftest*
17333 glibcpp_mresult=1
17334 else
17335 echo "configure: failed program was:" >&5
17336 cat conftest.$ac_ext >&5
17337 rm -rf conftest*
17338 glibcpp_mresult=0
17340 rm -f conftest*
17341 cat >> confdefs.h <<EOF
17342 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
17347 # Check for rlimit, setrlimit.
17348 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
17349 echo $ac_n "(cached) $ac_c" 1>&6
17350 else
17352 cat > conftest.$ac_ext <<EOF
17353 #line 17354 "configure"
17354 #include "confdefs.h"
17355 #include <sys/resource.h>
17356 #include <unistd.h>
17358 int main() {
17359 struct rlimit r; setrlimit(0, &r);
17360 ; return 0; }
17362 if { (eval echo configure:17363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17363 rm -rf conftest*
17364 ac_setrlimit=yes
17365 else
17366 echo "configure: failed program was:" >&5
17367 cat conftest.$ac_ext >&5
17368 rm -rf conftest*
17369 ac_setrlimit=no
17371 rm -f conftest*
17377 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
17378 echo "configure:17379: checking for testsuite memory limit support" >&5
17379 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
17380 ac_mem_limits=yes
17381 cat >> confdefs.h <<\EOF
17382 #define _GLIBCPP_MEM_LIMITS 1
17385 else
17386 ac_mem_limits=no
17388 echo "$ac_t""$ac_mem_limits" 1>&6
17394 # Propagate the target-specific source directories through the build chain.
17395 OS_INC_SRCDIR=$os_include_dir/bits
17396 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
17397 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
17402 # Set up cross-compile flags
17406 if test "$CANADIAN" = yes; then
17407 CANADIAN_TRUE=
17408 CANADIAN_FALSE='#'
17409 else
17410 CANADIAN_TRUE='#'
17411 CANADIAN_FALSE=
17414 cat > confcache <<\EOF
17415 # This file is a shell script that caches the results of configure
17416 # tests run on this system so they can be shared between configure
17417 # scripts and configure runs. It is not useful on other systems.
17418 # If it contains results you don't want to keep, you may remove or edit it.
17420 # By default, configure uses ./config.cache as the cache file,
17421 # creating it if it does not exist already. You can give configure
17422 # the --cache-file=FILE option to use a different cache file; that is
17423 # what configure does when it calls configure scripts in
17424 # subdirectories, so they share the cache.
17425 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17426 # config.status only pays attention to the cache file if you give it the
17427 # --recheck option to rerun configure.
17430 # The following way of writing the cache mishandles newlines in values,
17431 # but we know of no workaround that is simple, portable, and efficient.
17432 # So, don't put newlines in cache variables' values.
17433 # Ultrix sh set writes to stderr and can't be redirected directly,
17434 # and sets the high bit in the cache file unless we assign to the vars.
17435 (set) 2>&1 |
17436 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17437 *ac_space=\ *)
17438 # `set' does not quote correctly, so add quotes (double-quote substitution
17439 # turns \\\\ into \\, and sed turns \\ into \).
17440 sed -n \
17441 -e "s/'/'\\\\''/g" \
17442 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17445 # `set' quotes correctly as required by POSIX, so do not add quotes.
17446 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17448 esac >> confcache
17449 if cmp -s $cache_file confcache; then
17451 else
17452 if test -w $cache_file; then
17453 echo "updating cache $cache_file"
17454 cat confcache > $cache_file
17455 else
17456 echo "not updating unwritable cache $cache_file"
17459 rm -f confcache
17462 if test "${multilib}" = "yes"; then
17463 multilib_arg="--enable-multilib"
17464 else
17465 multilib_arg=
17468 # Needed so that g++ can find the correct include subdir automatically.
17469 INTERFACE=v3
17471 # Export all the install information
17473 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
17474 # exported correctly in GLIBCPP_CONFIGURE.
17475 glibcpp_toolexecdir=no
17476 glibcpp_toolexeclibdir=no
17477 glibcpp_prefixdir=${prefix}
17479 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
17480 echo "configure:17481: checking for interface version number" >&5
17481 libstdcxx_interface=$INTERFACE
17482 echo "$ac_t""$libstdcxx_interface" 1>&6
17484 # Process the option --with-gxx-include-dir=<path to include-files directory>
17485 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
17486 echo "configure:17487: checking for --with-gxx-include-dir" >&5
17487 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
17488 if test "${with_gxx_include_dir+set}" = set; then
17489 withval="$with_gxx_include_dir"
17490 case "${withval}" in
17491 yes)
17492 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
17493 gxx_include_dir=no
17496 gxx_include_dir=no
17499 gxx_include_dir=${withval}
17501 esac
17502 else
17503 gxx_include_dir=no
17506 echo "$ac_t""$gxx_include_dir" 1>&6
17508 # Process the option "--enable-version-specific-runtime-libs"
17509 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
17510 echo "configure:17511: checking for --enable-version-specific-runtime-libs" >&5
17511 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
17512 if test "${enable_version_specific_runtime_libs+set}" = set; then
17513 enableval="$enable_version_specific_runtime_libs"
17514 case "$enableval" in
17515 yes) version_specific_libs=yes ;;
17516 no) version_specific_libs=no ;;
17517 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
17518 esac
17519 else
17520 version_specific_libs=no
17522 # Option set, now we can test it.
17523 echo "$ac_t""$version_specific_libs" 1>&6
17525 if test $version_specific_libs = yes; then
17526 # Need the gcc compiler version to know where to install libraries
17527 # and header files if --enable-version-specific-runtime-libs option
17528 # is selected.
17529 gcc_version_trigger=${srcdir}/../gcc/version.c
17530 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
17531 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
17532 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
17533 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
17534 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
17537 # Default case for install directory for include files.
17538 if test $version_specific_libs = no &&
17539 test $gxx_include_dir = no; then
17540 gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
17543 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
17544 # Install a library built with a cross compiler in tooldir, not libdir.
17545 if test x"$glibcpp_toolexecdir" = x"no"; then
17546 if test -n "$with_cross_host" &&
17547 test x"$with_cross_host" != x"no"; then
17548 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
17549 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
17550 else
17551 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
17552 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
17556 echo $ac_n "checking for install location""... $ac_c" 1>&6
17557 echo "configure:17558: checking for install location" >&5
17558 echo "$ac_t""$gxx_include_dir" 1>&6
17566 # Export all the include and flag information to makefiles.
17568 # Root level of the build directory include sources.
17569 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
17571 # Passed down for canadian crosses.
17572 if test x"$CANADIAN" = xyes; then
17573 TOPLEVEL_INCLUDES='-I$(includedir)'
17576 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
17578 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
17580 if test x"$need_libio" = xyes; then
17581 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
17585 # Now, export this to all the little Makefiles....
17592 # Optimization flags that are probably a good idea for thrill-seekers. Just
17593 # uncomment the lines below and make, everything else is ready to go...
17594 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
17595 OPTIMIZE_CXXFLAGS=
17598 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
17602 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
17603 grep "enable shared" > /dev/null; then
17604 LIBSUPCXX_PICFLAGS=-prefer-pic
17605 else
17606 LIBSUPCXX_PICFLAGS=
17610 # Generate the various Makefiles, include files, and scripts.
17611 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
17612 # and libsupc++/Makefile.am so that multilib installs will end up
17613 # installed in the correct place. To work around this not being passed
17614 # down from config-ml.in -> top_srcdir/Makefile.am ->
17615 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
17616 trap '' 1 2 15
17617 cat > confcache <<\EOF
17618 # This file is a shell script that caches the results of configure
17619 # tests run on this system so they can be shared between configure
17620 # scripts and configure runs. It is not useful on other systems.
17621 # If it contains results you don't want to keep, you may remove or edit it.
17623 # By default, configure uses ./config.cache as the cache file,
17624 # creating it if it does not exist already. You can give configure
17625 # the --cache-file=FILE option to use a different cache file; that is
17626 # what configure does when it calls configure scripts in
17627 # subdirectories, so they share the cache.
17628 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17629 # config.status only pays attention to the cache file if you give it the
17630 # --recheck option to rerun configure.
17633 # The following way of writing the cache mishandles newlines in values,
17634 # but we know of no workaround that is simple, portable, and efficient.
17635 # So, don't put newlines in cache variables' values.
17636 # Ultrix sh set writes to stderr and can't be redirected directly,
17637 # and sets the high bit in the cache file unless we assign to the vars.
17638 (set) 2>&1 |
17639 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17640 *ac_space=\ *)
17641 # `set' does not quote correctly, so add quotes (double-quote substitution
17642 # turns \\\\ into \\, and sed turns \\ into \).
17643 sed -n \
17644 -e "s/'/'\\\\''/g" \
17645 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17648 # `set' quotes correctly as required by POSIX, so do not add quotes.
17649 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17651 esac >> confcache
17652 if cmp -s $cache_file confcache; then
17654 else
17655 if test -w $cache_file; then
17656 echo "updating cache $cache_file"
17657 cat confcache > $cache_file
17658 else
17659 echo "not updating unwritable cache $cache_file"
17662 rm -f confcache
17664 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17666 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17667 # Let make expand exec_prefix.
17668 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17670 # Any assignment to VPATH causes Sun make to only execute
17671 # the first set of double-colon rules, so remove it if not needed.
17672 # If there is a colon in the path, we need to keep it.
17673 if test "x$srcdir" = x.; then
17674 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17677 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17679 DEFS=-DHAVE_CONFIG_H
17681 # Without the "./", some shells look in PATH for config.status.
17682 : ${CONFIG_STATUS=./config.status}
17684 echo creating $CONFIG_STATUS
17685 rm -f $CONFIG_STATUS
17686 cat > $CONFIG_STATUS <<EOF
17687 #! /bin/sh
17688 # Generated automatically by configure.
17689 # Run this file to recreate the current configuration.
17690 # This directory was configured as follows,
17691 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17693 # $0 $ac_configure_args
17695 # Compiler output produced by configure, useful for debugging
17696 # configure, is in ./config.log if it exists.
17698 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17699 for ac_option
17701 case "\$ac_option" in
17702 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17703 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17704 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17705 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17706 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17707 exit 0 ;;
17708 -help | --help | --hel | --he | --h)
17709 echo "\$ac_cs_usage"; exit 0 ;;
17710 *) echo "\$ac_cs_usage"; exit 1 ;;
17711 esac
17712 done
17714 ac_given_srcdir=$srcdir
17715 ac_given_INSTALL="$INSTALL"
17717 trap 'rm -fr `echo "Makefile \
17718 include/Makefile src/Makefile \
17719 libmath/Makefile libio/Makefile libsupc++/Makefile \
17720 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17722 cat >> $CONFIG_STATUS <<EOF
17724 # Protect against being on the right side of a sed subst in config.status.
17725 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17726 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17727 $ac_vpsub
17728 $extrasub
17729 s%@SHELL@%$SHELL%g
17730 s%@CFLAGS@%$CFLAGS%g
17731 s%@CPPFLAGS@%$CPPFLAGS%g
17732 s%@CXXFLAGS@%$CXXFLAGS%g
17733 s%@FFLAGS@%$FFLAGS%g
17734 s%@DEFS@%$DEFS%g
17735 s%@LDFLAGS@%$LDFLAGS%g
17736 s%@LIBS@%$LIBS%g
17737 s%@exec_prefix@%$exec_prefix%g
17738 s%@prefix@%$prefix%g
17739 s%@program_transform_name@%$program_transform_name%g
17740 s%@bindir@%$bindir%g
17741 s%@sbindir@%$sbindir%g
17742 s%@libexecdir@%$libexecdir%g
17743 s%@datadir@%$datadir%g
17744 s%@sysconfdir@%$sysconfdir%g
17745 s%@sharedstatedir@%$sharedstatedir%g
17746 s%@localstatedir@%$localstatedir%g
17747 s%@libdir@%$libdir%g
17748 s%@includedir@%$includedir%g
17749 s%@oldincludedir@%$oldincludedir%g
17750 s%@infodir@%$infodir%g
17751 s%@mandir@%$mandir%g
17752 s%@PACKAGE@%$PACKAGE%g
17753 s%@release_VERSION@%$release_VERSION%g
17754 s%@libtool_VERSION@%$libtool_VERSION%g
17755 s%@host@%$host%g
17756 s%@host_alias@%$host_alias%g
17757 s%@host_cpu@%$host_cpu%g
17758 s%@host_vendor@%$host_vendor%g
17759 s%@host_os@%$host_os%g
17760 s%@target@%$target%g
17761 s%@target_alias@%$target_alias%g
17762 s%@target_cpu@%$target_cpu%g
17763 s%@target_vendor@%$target_vendor%g
17764 s%@target_os@%$target_os%g
17765 s%@build@%$build%g
17766 s%@build_alias@%$build_alias%g
17767 s%@build_cpu@%$build_cpu%g
17768 s%@build_vendor@%$build_vendor%g
17769 s%@build_os@%$build_os%g
17770 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17771 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17772 s%@INSTALL_DATA@%$INSTALL_DATA%g
17773 s%@VERSION@%$VERSION%g
17774 s%@ACLOCAL@%$ACLOCAL%g
17775 s%@AUTOCONF@%$AUTOCONF%g
17776 s%@AUTOMAKE@%$AUTOMAKE%g
17777 s%@AUTOHEADER@%$AUTOHEADER%g
17778 s%@MAKEINFO@%$MAKEINFO%g
17779 s%@SET_MAKE@%$SET_MAKE%g
17780 s%@toplevel_srcdir@%$toplevel_srcdir%g
17781 s%@glibcpp_builddir@%$glibcpp_builddir%g
17782 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
17783 s%@LN_S@%$LN_S%g
17784 s%@glibcpp_basedir@%$glibcpp_basedir%g
17785 s%@CC@%$CC%g
17786 s%@glibcpp_CXX@%$glibcpp_CXX%g
17787 s%@AS@%$AS%g
17788 s%@AR@%$AR%g
17789 s%@RANLIB@%$RANLIB%g
17790 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
17791 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
17792 s%@MAINT@%$MAINT%g
17793 s%@EXEEXT@%$EXEEXT%g
17794 s%@OBJEXT@%$OBJEXT%g
17795 s%@STRIP@%$STRIP%g
17796 s%@LIBTOOL@%$LIBTOOL%g
17797 s%@CXXCPP@%$CXXCPP%g
17798 s%@enable_shared@%$enable_shared%g
17799 s%@enable_static@%$enable_static%g
17800 s%@ifGNUmake@%$ifGNUmake%g
17801 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
17802 s%@CPP@%$CPP%g
17803 s%@CSTDIO_H@%$CSTDIO_H%g
17804 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
17805 s%@CCODECVT_C@%$CCODECVT_C%g
17806 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
17807 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
17808 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
17809 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
17810 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
17811 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
17812 s%@libio_la@%$libio_la%g
17813 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
17814 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
17815 s%@glibcpp_localedir@%$glibcpp_localedir%g
17816 s%@USE_NLS@%$USE_NLS%g
17817 s%@CLOCALE_H@%$CLOCALE_H%g
17818 s%@CCODECVT_H@%$CCODECVT_H%g
17819 s%@CMESSAGES_H@%$CMESSAGES_H%g
17820 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
17821 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
17822 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
17823 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
17824 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
17825 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
17826 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
17827 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
17828 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
17829 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
17830 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
17831 s%@WERROR@%$WERROR%g
17832 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
17833 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
17834 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
17835 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
17836 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
17837 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
17838 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
17839 s%@gxx_include_dir@%$gxx_include_dir%g
17840 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
17841 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
17842 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
17843 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
17844 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
17845 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
17846 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
17847 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
17848 s%@WARN_FLAGS@%$WARN_FLAGS%g
17849 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
17851 CEOF
17854 cat >> $CONFIG_STATUS <<\EOF
17856 # Split the substitutions into bite-sized pieces for seds with
17857 # small command number limits, like on Digital OSF/1 and HP-UX.
17858 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17859 ac_file=1 # Number of current file.
17860 ac_beg=1 # First line for current file.
17861 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17862 ac_more_lines=:
17863 ac_sed_cmds=""
17864 while $ac_more_lines; do
17865 if test $ac_beg -gt 1; then
17866 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17867 else
17868 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17870 if test ! -s conftest.s$ac_file; then
17871 ac_more_lines=false
17872 rm -f conftest.s$ac_file
17873 else
17874 if test -z "$ac_sed_cmds"; then
17875 ac_sed_cmds="sed -f conftest.s$ac_file"
17876 else
17877 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17879 ac_file=`expr $ac_file + 1`
17880 ac_beg=$ac_end
17881 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17883 done
17884 if test -z "$ac_sed_cmds"; then
17885 ac_sed_cmds=cat
17889 cat >> $CONFIG_STATUS <<EOF
17891 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
17892 include/Makefile src/Makefile \
17893 libmath/Makefile libio/Makefile libsupc++/Makefile \
17894 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
17896 cat >> $CONFIG_STATUS <<\EOF
17897 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17898 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17899 case "$ac_file" in
17900 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17901 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17902 *) ac_file_in="${ac_file}.in" ;;
17903 esac
17905 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17907 # Remove last slash and all that follows it. Not all systems have dirname.
17908 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17909 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17910 # The file is in a subdirectory.
17911 test ! -d "$ac_dir" && mkdir "$ac_dir"
17912 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17913 # A "../" for each directory in $ac_dir_suffix.
17914 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17915 else
17916 ac_dir_suffix= ac_dots=
17919 case "$ac_given_srcdir" in
17920 .) srcdir=.
17921 if test -z "$ac_dots"; then top_srcdir=.
17922 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17923 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17924 *) # Relative path.
17925 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17926 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17927 esac
17929 case "$ac_given_INSTALL" in
17930 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17931 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17932 esac
17934 echo creating "$ac_file"
17935 rm -f "$ac_file"
17936 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17937 case "$ac_file" in
17938 *Makefile*) ac_comsub="1i\\
17939 # $configure_input" ;;
17940 *) ac_comsub= ;;
17941 esac
17943 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17944 sed -e "$ac_comsub
17945 s%@configure_input@%$configure_input%g
17946 s%@srcdir@%$srcdir%g
17947 s%@top_srcdir@%$top_srcdir%g
17948 s%@INSTALL@%$INSTALL%g
17949 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17950 fi; done
17951 rm -f conftest.s*
17953 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17954 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17956 # ac_d sets the value in "#define NAME VALUE" lines.
17957 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17958 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17959 ac_dC='\3'
17960 ac_dD='%g'
17961 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17962 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17963 ac_uB='\([ ]\)%\1#\2define\3'
17964 ac_uC=' '
17965 ac_uD='\4%g'
17966 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17967 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17968 ac_eB='$%\1#\2define\3'
17969 ac_eC=' '
17970 ac_eD='%g'
17972 if test "${CONFIG_HEADERS+set}" != set; then
17974 cat >> $CONFIG_STATUS <<EOF
17975 CONFIG_HEADERS="config.h"
17977 cat >> $CONFIG_STATUS <<\EOF
17979 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17980 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17981 case "$ac_file" in
17982 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17983 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17984 *) ac_file_in="${ac_file}.in" ;;
17985 esac
17987 echo creating $ac_file
17989 rm -f conftest.frag conftest.in conftest.out
17990 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17991 cat $ac_file_inputs > conftest.in
17995 # Transform confdefs.h into a sed script conftest.vals that substitutes
17996 # the proper values into config.h.in to produce config.h. And first:
17997 # Protect against being on the right side of a sed subst in config.status.
17998 # Protect against being in an unquoted here document in config.status.
17999 rm -f conftest.vals
18000 cat > conftest.hdr <<\EOF
18001 s/[\\&%]/\\&/g
18002 s%[\\$`]%\\&%g
18003 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18004 s%ac_d%ac_u%gp
18005 s%ac_u%ac_e%gp
18007 sed -n -f conftest.hdr confdefs.h > conftest.vals
18008 rm -f conftest.hdr
18010 # This sed command replaces #undef with comments. This is necessary, for
18011 # example, in the case of _POSIX_SOURCE, which is predefined and required
18012 # on some systems where configure will not decide to define it.
18013 cat >> conftest.vals <<\EOF
18014 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18017 # Break up conftest.vals because some shells have a limit on
18018 # the size of here documents, and old seds have small limits too.
18020 rm -f conftest.tail
18021 while :
18023 ac_lines=`grep -c . conftest.vals`
18024 # grep -c gives empty output for an empty file on some AIX systems.
18025 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18026 # Write a limited-size here document to conftest.frag.
18027 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18028 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18029 echo 'CEOF
18030 sed -f conftest.frag conftest.in > conftest.out
18031 rm -f conftest.in
18032 mv conftest.out conftest.in
18033 ' >> $CONFIG_STATUS
18034 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18035 rm -f conftest.vals
18036 mv conftest.tail conftest.vals
18037 done
18038 rm -f conftest.vals
18040 cat >> $CONFIG_STATUS <<\EOF
18041 rm -f conftest.frag conftest.h
18042 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18043 cat conftest.in >> conftest.h
18044 rm -f conftest.in
18045 if cmp -s $ac_file conftest.h 2>/dev/null; then
18046 echo "$ac_file is unchanged"
18047 rm -f conftest.h
18048 else
18049 # Remove last slash and all that follows it. Not all systems have dirname.
18050 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18051 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18052 # The file is in a subdirectory.
18053 test ! -d "$ac_dir" && mkdir "$ac_dir"
18055 rm -f $ac_file
18056 mv conftest.h $ac_file
18058 fi; done
18062 cat >> $CONFIG_STATUS <<EOF
18063 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC"
18064 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/messages.cc src/moneypunct.cc src/numpunct.cc src/time.cc"
18067 cat >> $CONFIG_STATUS <<\EOF
18068 srcdir=$ac_given_srcdir
18069 while test -n "$ac_sources"; do
18070 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
18071 set $ac_sources; ac_source=$1; shift; ac_sources=$*
18073 echo "linking $srcdir/$ac_source to $ac_dest"
18075 if test ! -r $srcdir/$ac_source; then
18076 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
18078 rm -f $ac_dest
18080 # Make relative symlinks.
18081 # Remove last slash and all that follows it. Not all systems have dirname.
18082 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
18083 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
18084 # The dest file is in a subdirectory.
18085 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
18086 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
18087 # A "../" for each directory in $ac_dest_dir_suffix.
18088 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
18089 else
18090 ac_dest_dir_suffix= ac_dots=
18093 case "$srcdir" in
18094 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
18095 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
18096 esac
18098 # Make a symlink if possible; otherwise try a hard link.
18099 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18100 ln $srcdir/$ac_source $ac_dest; then :
18101 else
18102 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
18104 done
18106 cat >> $CONFIG_STATUS <<EOF
18108 srcdir=${srcdir}
18109 host=${host}
18110 target=${target}
18111 with_multisubdir=${with_multisubdir}
18112 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18113 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18114 glibcpp_basedir=${glibcpp_basedir}
18115 CC="${CC}"
18116 CXX="${CXX}"
18119 cat >> $CONFIG_STATUS <<\EOF
18120 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
18121 if test -n "$CONFIG_FILES"; then
18122 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
18123 grep '^MULTISUBDIR =' Makefile >> src/Makefile
18124 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
18126 chmod +x mkcheck
18127 chmod +x testsuite_flags
18129 exit 0
18131 chmod +x $CONFIG_STATUS
18132 rm -fr confdefs* $ac_clean_files
18133 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18137 # Sanity checking & User-visible messages.
18138 # Checks down here, otherwise they get scrolled off before
18139 # the user will notice.
18141 # Trying to get more people to read documentation. Possibly remove
18142 # check and warn all the time. There is no "informational" AC_MSG_
18143 # macro, so these are going to be printed even when --quiet/--silent
18144 # is given.
18145 if test ! -f stamp-sanity-warned; then
18146 touch stamp-sanity-warned
18147 echo ""
18148 echo "Please make certain that you read the installation information here:"
18149 echo " faster => ${srcdir}/docs/install.html"
18150 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
18151 echo ""
18152 echo "and the configuration information here:"
18153 echo " faster => ${srcdir}/docs/configopts.html"
18154 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
18155 echo ""
18156 echo "before proceeding with ${_cv_gnu_make_command}."
18157 echo ""