* output.h (assemble_real): Declare if REAL_VALUE_TYPE is defined.
[official-gcc.git] / libstdc++-v3 / configure
blob8ecf98e662bf88af03d84b136e295ef9dc90071d
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 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
17 ac_help="$ac_help
18 --with-cross-host=HOST configuring with a cross compiler"
19 ac_help="$ac_help
20 --enable-multilib build hella library versions (default)"
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-long-long turns on 'long long' [default=no]"
50 ac_help="$ac_help
51 --enable-cheaders construct "C" header files for
52 g++ [default=c_std]"
53 ac_help="$ac_help
54 --enable-threads enable thread usage for target GCC.
55 --enable-threads=LIB use LIB thread package for target GCC. [default=no]
57 ac_help="$ac_help
58 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
59 [default=none]"
60 ac_help="$ac_help
61 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
62 ac_help="$ac_help
63 --with-gxx-include-dir the installation directory for include files"
64 ac_help="$ac_help
65 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
67 # Initialize some variables set by options.
68 # The variables have the same names as the options, with
69 # dashes changed to underlines.
70 build=NONE
71 cache_file=./config.cache
72 exec_prefix=NONE
73 host=NONE
74 no_create=
75 nonopt=NONE
76 no_recursion=
77 prefix=NONE
78 program_prefix=NONE
79 program_suffix=NONE
80 program_transform_name=s,x,x,
81 silent=
82 site=
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 --version print the version of autoconf that created configure
198 Directory and file names:
199 --prefix=PREFIX install architecture-independent files in PREFIX
200 [$ac_default_prefix]
201 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
202 [same as prefix]
203 --bindir=DIR user executables in DIR [EPREFIX/bin]
204 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
205 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
206 --datadir=DIR read-only architecture-independent data in DIR
207 [PREFIX/share]
208 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
209 --sharedstatedir=DIR modifiable architecture-independent data in DIR
210 [PREFIX/com]
211 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
212 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
213 --includedir=DIR C header files in DIR [PREFIX/include]
214 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
215 --infodir=DIR info documentation in DIR [PREFIX/info]
216 --mandir=DIR man documentation in DIR [PREFIX/man]
217 --srcdir=DIR find the sources in DIR [configure dir or ..]
218 --program-prefix=PREFIX prepend PREFIX to installed program names
219 --program-suffix=SUFFIX append SUFFIX to installed program names
220 --program-transform-name=PROGRAM
221 run sed PROGRAM on installed program names
223 cat << EOF
224 Host type:
225 --build=BUILD configure for building on BUILD [BUILD=HOST]
226 --host=HOST configure for HOST [guessed]
227 --target=TARGET configure for TARGET [TARGET=HOST]
228 Features and packages:
229 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
230 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
231 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
232 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
233 --x-includes=DIR X include files are in DIR
234 --x-libraries=DIR X library files are in DIR
236 if test -n "$ac_help"; then
237 echo "--enable and --with options recognized:$ac_help"
239 exit 0 ;;
241 -host | --host | --hos | --ho)
242 ac_prev=host ;;
243 -host=* | --host=* | --hos=* | --ho=*)
244 host="$ac_optarg" ;;
246 -includedir | --includedir | --includedi | --included | --include \
247 | --includ | --inclu | --incl | --inc)
248 ac_prev=includedir ;;
249 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250 | --includ=* | --inclu=* | --incl=* | --inc=*)
251 includedir="$ac_optarg" ;;
253 -infodir | --infodir | --infodi | --infod | --info | --inf)
254 ac_prev=infodir ;;
255 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256 infodir="$ac_optarg" ;;
258 -libdir | --libdir | --libdi | --libd)
259 ac_prev=libdir ;;
260 -libdir=* | --libdir=* | --libdi=* | --libd=*)
261 libdir="$ac_optarg" ;;
263 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264 | --libexe | --libex | --libe)
265 ac_prev=libexecdir ;;
266 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267 | --libexe=* | --libex=* | --libe=*)
268 libexecdir="$ac_optarg" ;;
270 -localstatedir | --localstatedir | --localstatedi | --localstated \
271 | --localstate | --localstat | --localsta | --localst \
272 | --locals | --local | --loca | --loc | --lo)
273 ac_prev=localstatedir ;;
274 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277 localstatedir="$ac_optarg" ;;
279 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
280 ac_prev=mandir ;;
281 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282 mandir="$ac_optarg" ;;
284 -nfp | --nfp | --nf)
285 # Obsolete; use --without-fp.
286 with_fp=no ;;
288 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289 | --no-cr | --no-c)
290 no_create=yes ;;
292 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294 no_recursion=yes ;;
296 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298 | --oldin | --oldi | --old | --ol | --o)
299 ac_prev=oldincludedir ;;
300 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303 oldincludedir="$ac_optarg" ;;
305 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
306 ac_prev=prefix ;;
307 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308 prefix="$ac_optarg" ;;
310 -program-prefix | --program-prefix | --program-prefi | --program-pref \
311 | --program-pre | --program-pr | --program-p)
312 ac_prev=program_prefix ;;
313 -program-prefix=* | --program-prefix=* | --program-prefi=* \
314 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315 program_prefix="$ac_optarg" ;;
317 -program-suffix | --program-suffix | --program-suffi | --program-suff \
318 | --program-suf | --program-su | --program-s)
319 ac_prev=program_suffix ;;
320 -program-suffix=* | --program-suffix=* | --program-suffi=* \
321 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322 program_suffix="$ac_optarg" ;;
324 -program-transform-name | --program-transform-name \
325 | --program-transform-nam | --program-transform-na \
326 | --program-transform-n | --program-transform- \
327 | --program-transform | --program-transfor \
328 | --program-transfo | --program-transf \
329 | --program-trans | --program-tran \
330 | --progr-tra | --program-tr | --program-t)
331 ac_prev=program_transform_name ;;
332 -program-transform-name=* | --program-transform-name=* \
333 | --program-transform-nam=* | --program-transform-na=* \
334 | --program-transform-n=* | --program-transform-=* \
335 | --program-transform=* | --program-transfor=* \
336 | --program-transfo=* | --program-transf=* \
337 | --program-trans=* | --program-tran=* \
338 | --progr-tra=* | --program-tr=* | --program-t=*)
339 program_transform_name="$ac_optarg" ;;
341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342 | -silent | --silent | --silen | --sile | --sil)
343 silent=yes ;;
345 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
346 ac_prev=sbindir ;;
347 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
348 | --sbi=* | --sb=*)
349 sbindir="$ac_optarg" ;;
351 -sharedstatedir | --sharedstatedir | --sharedstatedi \
352 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353 | --sharedst | --shareds | --shared | --share | --shar \
354 | --sha | --sh)
355 ac_prev=sharedstatedir ;;
356 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
359 | --sha=* | --sh=*)
360 sharedstatedir="$ac_optarg" ;;
362 -site | --site | --sit)
363 ac_prev=site ;;
364 -site=* | --site=* | --sit=*)
365 site="$ac_optarg" ;;
367 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
368 ac_prev=srcdir ;;
369 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 srcdir="$ac_optarg" ;;
372 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373 | --syscon | --sysco | --sysc | --sys | --sy)
374 ac_prev=sysconfdir ;;
375 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377 sysconfdir="$ac_optarg" ;;
379 -target | --target | --targe | --targ | --tar | --ta | --t)
380 ac_prev=target ;;
381 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382 target="$ac_optarg" ;;
384 -v | -verbose | --verbose | --verbos | --verbo | --verb)
385 verbose=yes ;;
387 -version | --version | --versio | --versi | --vers)
388 echo "configure generated by autoconf version 2.13"
389 exit 0 ;;
391 -with-* | --with-*)
392 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 ac_package=`echo $ac_package| sed 's/-/_/g'`
398 case "$ac_option" in
399 *=*) ;;
400 *) ac_optarg=yes ;;
401 esac
402 eval "with_${ac_package}='$ac_optarg'" ;;
404 -without-* | --without-*)
405 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}=no" ;;
413 --x)
414 # Obsolete; use --with-x.
415 with_x=yes ;;
417 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
418 | --x-incl | --x-inc | --x-in | --x-i)
419 ac_prev=x_includes ;;
420 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
421 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
422 x_includes="$ac_optarg" ;;
424 -x-libraries | --x-libraries | --x-librarie | --x-librari \
425 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
426 ac_prev=x_libraries ;;
427 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
428 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
429 x_libraries="$ac_optarg" ;;
431 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
435 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
436 echo "configure: warning: $ac_option: invalid host type" 1>&2
438 if test "x$nonopt" != xNONE; then
439 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
441 nonopt="$ac_option"
444 esac
445 done
447 if test -n "$ac_prev"; then
448 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
451 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
453 # File descriptor usage:
454 # 0 standard input
455 # 1 file creation
456 # 2 errors and warnings
457 # 3 some systems may open it to /dev/tty
458 # 4 used on the Kubota Titan
459 # 6 checking for... messages and results
460 # 5 compiler messages saved in config.log
461 if test "$silent" = yes; then
462 exec 6>/dev/null
463 else
464 exec 6>&1
466 exec 5>./config.log
468 echo "\
469 This file contains any messages produced by compilers while
470 running configure, to aid debugging if configure makes a mistake.
471 " 1>&5
473 # Strip out --no-create and --no-recursion so they do not pile up.
474 # Also quote any args containing shell metacharacters.
475 ac_configure_args=
476 for ac_arg
478 case "$ac_arg" in
479 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
480 | --no-cr | --no-c) ;;
481 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
484 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
485 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
486 esac
487 done
489 # NLS nuisances.
490 # Only set these to C if already set. These must not be set unconditionally
491 # because not all systems understand e.g. LANG=C (notably SCO).
492 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
493 # Non-C LC_CTYPE values break the ctype check.
494 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
495 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
496 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
497 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
499 # confdefs.h avoids OS command line length limits that DEFS can exceed.
500 rm -rf conftest* confdefs.h
501 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
502 echo > confdefs.h
504 # A filename unique to this package, relative to the directory that
505 # configure is in, which we can look for to find out if srcdir is correct.
506 ac_unique_file=src/ios.cc
508 # Find the source files, if location was not specified.
509 if test -z "$srcdir"; then
510 ac_srcdir_defaulted=yes
511 # Try the directory containing this script, then its parent.
512 ac_prog=$0
513 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
514 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
515 srcdir=$ac_confdir
516 if test ! -r $srcdir/$ac_unique_file; then
517 srcdir=..
519 else
520 ac_srcdir_defaulted=no
522 if test ! -r $srcdir/$ac_unique_file; then
523 if test "$ac_srcdir_defaulted" = yes; then
524 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
525 else
526 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
529 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
531 # Prefer explicitly selected file to automatically selected ones.
532 if test -z "$CONFIG_SITE"; then
533 if test "x$prefix" != xNONE; then
534 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
535 else
536 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
539 for ac_site_file in $CONFIG_SITE; do
540 if test -r "$ac_site_file"; then
541 echo "loading site script $ac_site_file"
542 . "$ac_site_file"
544 done
546 if test -r "$cache_file"; then
547 echo "loading cache $cache_file"
548 . $cache_file
549 else
550 echo "creating cache $cache_file"
551 > $cache_file
554 ac_ext=c
555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
556 ac_cpp='$CPP $CPPFLAGS'
557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
558 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
559 cross_compiling=$ac_cv_prog_cc_cross
561 ac_exeext=
562 ac_objext=o
563 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
564 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
565 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
566 ac_n= ac_c='
567 ' ac_t=' '
568 else
569 ac_n=-n ac_c= ac_t=
571 else
572 ac_n= ac_c='\c' ac_t=
577 # When building with srcdir == objdir, links to the source files will
578 # be created in directories within the target_subdir. We have to
579 # adjust toplevel_srcdir accordingly, so that configure finds
580 # install-sh and other auxiliary files that live in the top-level
581 # source directory.
582 if test "${srcdir}" = "."; then
583 if test -z "${with_target_subdir}"; then
584 toplevel_srcdir="\${top_srcdir}/.."
585 auxdir="${srcdir}/.."
586 else
587 if test "${with_target_subdir}" != "."; then
588 toplevel_srcdir="\${top_srcdir}/${with_multisrctop}../.."
589 auxdir="${srcdir}/${with_multisrctop}../.."
590 else
591 toplevel_srcdir="\${top_srcdir}/${with_multisrctop}.."
592 auxdir="${srcdir}/${with_multisrctop}.."
595 else
596 toplevel_srcdir="\${top_srcdir}/.."
597 auxdir="${srcdir}/.."
599 ac_aux_dir=
600 for ac_dir in $auxdir $srcdir/$auxdir; 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 $auxdir $srcdir/$auxdir" 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.
622 # Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc.
624 # Do some error checking and defaulting for the host and target type.
625 # The inputs are:
626 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
628 # The rules are:
629 # 1. You are not allowed to specify --host, --target, and nonopt at the
630 # same time.
631 # 2. Host defaults to nonopt.
632 # 3. If nonopt is not specified, then host defaults to the current host,
633 # as determined by config.guess.
634 # 4. Target and build default to nonopt.
635 # 5. If nonopt is not specified, then target and build default to host.
637 # The aliases save the names the user supplied, while $host etc.
638 # will get canonicalized.
639 case $host---$target---$nonopt in
640 NONE---*---* | *---NONE---* | *---*---NONE) ;;
641 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
642 esac
645 # Make sure we can run config.sub.
646 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
647 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
650 echo $ac_n "checking host system type""... $ac_c" 1>&6
651 echo "configure:652: checking host system type" >&5
653 host_alias=$host
654 case "$host_alias" in
655 NONE)
656 case $nonopt in
657 NONE)
658 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
659 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
660 fi ;;
661 *) host_alias=$nonopt ;;
662 esac ;;
663 esac
665 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
666 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
667 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
668 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
669 echo "$ac_t""$host" 1>&6
671 echo $ac_n "checking target system type""... $ac_c" 1>&6
672 echo "configure:673: checking target system type" >&5
674 target_alias=$target
675 case "$target_alias" in
676 NONE)
677 case $nonopt in
678 NONE) target_alias=$host_alias ;;
679 *) target_alias=$nonopt ;;
680 esac ;;
681 esac
683 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
684 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
685 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
686 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
687 echo "$ac_t""$target" 1>&6
689 echo $ac_n "checking build system type""... $ac_c" 1>&6
690 echo "configure:691: checking build system type" >&5
692 build_alias=$build
693 case "$build_alias" in
694 NONE)
695 case $nonopt in
696 NONE) build_alias=$host_alias ;;
697 *) build_alias=$nonopt ;;
698 esac ;;
699 esac
701 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
702 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
703 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
704 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
705 echo "$ac_t""$build" 1>&6
707 test "$host_alias" != "$target_alias" &&
708 test "$program_prefix$program_suffix$program_transform_name" = \
709 NONENONEs,x,x, &&
710 program_prefix=${target_alias}-
713 # We use these options to decide which functions to include.
714 # Check whether --with-target-subdir or --without-target-subdir was given.
715 if test "${with_target_subdir+set}" = set; then
716 withval="$with_target_subdir"
720 # Check whether --with-cross-host or --without-cross-host was given.
721 if test "${with_cross_host+set}" = set; then
722 withval="$with_cross_host"
727 # Runs configure.host and configure.target. Have to run this before
728 # the GLIBCPP_ENABLE_* macros below.
729 # Find a good install program. We prefer a C program (faster),
730 # so one script is as good as another. But avoid the broken or
731 # incompatible versions:
732 # SysV /etc/install, /usr/sbin/install
733 # SunOS /usr/etc/install
734 # IRIX /sbin/install
735 # AIX /bin/install
736 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
737 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
738 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
739 # ./install, which can be erroneously created by make from ./install.sh.
740 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
741 echo "configure:742: checking for a BSD compatible install" >&5
742 if test -z "$INSTALL"; then
743 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
745 else
746 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
747 for ac_dir in $PATH; do
748 # Account for people who put trailing slashes in PATH elements.
749 case "$ac_dir/" in
750 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
752 # OSF1 and SCO ODT 3.0 have their own names for install.
753 # Don't use installbsd from OSF since it installs stuff as root
754 # by default.
755 for ac_prog in ginstall scoinst install; do
756 if test -f $ac_dir/$ac_prog; then
757 if test $ac_prog = install &&
758 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
759 # AIX install. It has an incompatible calling convention.
761 else
762 ac_cv_path_install="$ac_dir/$ac_prog -c"
763 break 2
766 done
768 esac
769 done
770 IFS="$ac_save_IFS"
773 if test "${ac_cv_path_install+set}" = set; then
774 INSTALL="$ac_cv_path_install"
775 else
776 # As a last resort, use the slow shell script. We don't cache a
777 # path for INSTALL within a source directory, because that will
778 # break other packages using the cache if that directory is
779 # removed, or if the path is relative.
780 INSTALL="$ac_install_sh"
783 echo "$ac_t""$INSTALL" 1>&6
785 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
786 # It thinks the first close brace ends the variable substitution.
787 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
789 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
791 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
793 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
794 echo "configure:795: checking whether build environment is sane" >&5
795 # Just in case
796 sleep 1
797 echo timestamp > conftestfile
798 # Do `set' in a subshell so we don't clobber the current shell's
799 # arguments. Must try -L first in case configure is actually a
800 # symlink; some systems play weird games with the mod time of symlinks
801 # (eg FreeBSD returns the mod time of the symlink's containing
802 # directory).
803 if (
804 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
805 if test "$*" = "X"; then
806 # -L didn't work.
807 set X `ls -t $srcdir/configure conftestfile`
809 if test "$*" != "X $srcdir/configure conftestfile" \
810 && test "$*" != "X conftestfile $srcdir/configure"; then
812 # If neither matched, then we have a broken ls. This can happen
813 # if, for instance, CONFIG_SHELL is bash and it inherits a
814 # broken ls alias from the environment. This has actually
815 # happened. Such a system could not be considered "sane".
816 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
817 alias in your environment" 1>&2; exit 1; }
820 test "$2" = conftestfile
822 then
823 # Ok.
825 else
826 { echo "configure: error: newly created file is older than distributed files!
827 Check your system clock" 1>&2; exit 1; }
829 rm -f conftest*
830 echo "$ac_t""yes" 1>&6
831 if test "$program_transform_name" = s,x,x,; then
832 program_transform_name=
833 else
834 # Double any \ or $. echo might interpret backslashes.
835 cat <<\EOF_SED > conftestsed
836 s,\\,\\\\,g; s,\$,$$,g
837 EOF_SED
838 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
839 rm -f conftestsed
841 test "$program_prefix" != NONE &&
842 program_transform_name="s,^,${program_prefix},; $program_transform_name"
843 # Use a double $ so make ignores it.
844 test "$program_suffix" != NONE &&
845 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
847 # sed with no file args requires a program.
848 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
850 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
851 echo "configure:852: checking whether ${MAKE-make} sets \${MAKE}" >&5
852 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
853 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
854 echo $ac_n "(cached) $ac_c" 1>&6
855 else
856 cat > conftestmake <<\EOF
857 all:
858 @echo 'ac_maketemp="${MAKE}"'
860 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
861 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
862 if test -n "$ac_maketemp"; then
863 eval ac_cv_prog_make_${ac_make}_set=yes
864 else
865 eval ac_cv_prog_make_${ac_make}_set=no
867 rm -f conftestmake
869 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
870 echo "$ac_t""yes" 1>&6
871 SET_MAKE=
872 else
873 echo "$ac_t""no" 1>&6
874 SET_MAKE="MAKE=${MAKE-make}"
877 if test $host != $build; then
878 ac_tool_prefix=${host_alias}-
879 else
880 ac_tool_prefix=
883 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
884 echo "configure:885: checking for Cygwin environment" >&5
885 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
886 echo $ac_n "(cached) $ac_c" 1>&6
887 else
888 cat > conftest.$ac_ext <<EOF
889 #line 890 "configure"
890 #include "confdefs.h"
892 int main() {
894 #ifndef __CYGWIN__
895 #define __CYGWIN__ __CYGWIN32__
896 #endif
897 return __CYGWIN__;
898 ; return 0; }
900 if { (eval echo configure:901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
901 rm -rf conftest*
902 ac_cv_cygwin=yes
903 else
904 echo "configure: failed program was:" >&5
905 cat conftest.$ac_ext >&5
906 rm -rf conftest*
907 ac_cv_cygwin=no
909 rm -f conftest*
910 rm -f conftest*
913 echo "$ac_t""$ac_cv_cygwin" 1>&6
914 CYGWIN=
915 test "$ac_cv_cygwin" = yes && CYGWIN=yes
916 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
917 echo "configure:918: checking for mingw32 environment" >&5
918 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
920 else
921 cat > conftest.$ac_ext <<EOF
922 #line 923 "configure"
923 #include "confdefs.h"
925 int main() {
926 return __MINGW32__;
927 ; return 0; }
929 if { (eval echo configure:930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
930 rm -rf conftest*
931 ac_cv_mingw32=yes
932 else
933 echo "configure: failed program was:" >&5
934 cat conftest.$ac_ext >&5
935 rm -rf conftest*
936 ac_cv_mingw32=no
938 rm -f conftest*
939 rm -f conftest*
942 echo "$ac_t""$ac_cv_mingw32" 1>&6
943 MINGW32=
944 test "$ac_cv_mingw32" = yes && MINGW32=yes
946 # Check whether --enable-multilib or --disable-multilib was given.
947 if test "${enable_multilib+set}" = set; then
948 enableval="$enable_multilib"
949 case "${enableval}" in
950 yes) multilib=yes ;;
951 no) multilib=no ;;
952 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
953 esac
954 else
955 multilib=yes
958 glibcpp_basedir=$auxdir/./libstdc++-v3
962 PACKAGE=libstdc++
964 VERSION=2.91
966 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
967 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
969 cat >> confdefs.h <<EOF
970 #define PACKAGE "$PACKAGE"
973 cat >> confdefs.h <<EOF
974 #define VERSION "$VERSION"
979 missing_dir=`cd $ac_aux_dir && pwd`
980 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
981 echo "configure:982: checking for working aclocal" >&5
982 # Run test in a subshell; some versions of sh will print an error if
983 # an executable is not found, even if stderr is redirected.
984 # Redirect stdin to placate older versions of autoconf. Sigh.
985 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
986 ACLOCAL=aclocal
987 echo "$ac_t""found" 1>&6
988 else
989 ACLOCAL="$missing_dir/missing aclocal"
990 echo "$ac_t""missing" 1>&6
993 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
994 echo "configure:995: checking for working autoconf" >&5
995 # Run test in a subshell; some versions of sh will print an error if
996 # an executable is not found, even if stderr is redirected.
997 # Redirect stdin to placate older versions of autoconf. Sigh.
998 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
999 AUTOCONF=autoconf
1000 echo "$ac_t""found" 1>&6
1001 else
1002 AUTOCONF="$missing_dir/missing autoconf"
1003 echo "$ac_t""missing" 1>&6
1006 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1007 echo "configure:1008: checking for working automake" >&5
1008 # Run test in a subshell; some versions of sh will print an error if
1009 # an executable is not found, even if stderr is redirected.
1010 # Redirect stdin to placate older versions of autoconf. Sigh.
1011 if (automake --version) < /dev/null > /dev/null 2>&1; then
1012 AUTOMAKE=automake
1013 echo "$ac_t""found" 1>&6
1014 else
1015 AUTOMAKE="$missing_dir/missing automake"
1016 echo "$ac_t""missing" 1>&6
1019 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1020 echo "configure:1021: checking for working autoheader" >&5
1021 # Run test in a subshell; some versions of sh will print an error if
1022 # an executable is not found, even if stderr is redirected.
1023 # Redirect stdin to placate older versions of autoconf. Sigh.
1024 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1025 AUTOHEADER=autoheader
1026 echo "$ac_t""found" 1>&6
1027 else
1028 AUTOHEADER="$missing_dir/missing autoheader"
1029 echo "$ac_t""missing" 1>&6
1032 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1033 echo "configure:1034: checking for working makeinfo" >&5
1034 # Run test in a subshell; some versions of sh will print an error if
1035 # an executable is not found, even if stderr is redirected.
1036 # Redirect stdin to placate older versions of autoconf. Sigh.
1037 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1038 MAKEINFO=makeinfo
1039 echo "$ac_t""found" 1>&6
1040 else
1041 MAKEINFO="$missing_dir/missing makeinfo"
1042 echo "$ac_t""missing" 1>&6
1047 # Never versions of autoconf add an underscore to these functions.
1048 # Prevent future problems ...
1054 # AC_PROG_CC
1056 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1057 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1058 # are probably using a cross compiler, which will not be able to fully
1059 # link an executable. This should really be fixed in autoconf
1060 # itself.
1065 # Extract the first word of "gcc", so it can be a program name with args.
1066 set dummy gcc; ac_word=$2
1067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1068 echo "configure:1069: checking for $ac_word" >&5
1069 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1071 else
1072 if test -n "$CC"; then
1073 ac_cv_prog_CC="$CC" # Let the user override the test.
1074 else
1075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1076 ac_dummy="$PATH"
1077 for ac_dir in $ac_dummy; do
1078 test -z "$ac_dir" && ac_dir=.
1079 if test -f $ac_dir/$ac_word; then
1080 ac_cv_prog_CC="gcc"
1081 break
1083 done
1084 IFS="$ac_save_ifs"
1087 CC="$ac_cv_prog_CC"
1088 if test -n "$CC"; then
1089 echo "$ac_t""$CC" 1>&6
1090 else
1091 echo "$ac_t""no" 1>&6
1094 if test -z "$CC"; then
1095 # Extract the first word of "cc", so it can be a program name with args.
1096 set dummy cc; ac_word=$2
1097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1098 echo "configure:1099: checking for $ac_word" >&5
1099 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1101 else
1102 if test -n "$CC"; then
1103 ac_cv_prog_CC="$CC" # Let the user override the test.
1104 else
1105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1106 ac_prog_rejected=no
1107 ac_dummy="$PATH"
1108 for ac_dir in $ac_dummy; do
1109 test -z "$ac_dir" && ac_dir=.
1110 if test -f $ac_dir/$ac_word; then
1111 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1112 ac_prog_rejected=yes
1113 continue
1115 ac_cv_prog_CC="cc"
1116 break
1118 done
1119 IFS="$ac_save_ifs"
1120 if test $ac_prog_rejected = yes; then
1121 # We found a bogon in the path, so make sure we never use it.
1122 set dummy $ac_cv_prog_CC
1123 shift
1124 if test $# -gt 0; then
1125 # We chose a different compiler from the bogus one.
1126 # However, it has the same basename, so the bogon will be chosen
1127 # first if we set CC to just the basename; use the full file name.
1128 shift
1129 set dummy "$ac_dir/$ac_word" "$@"
1130 shift
1131 ac_cv_prog_CC="$@"
1136 CC="$ac_cv_prog_CC"
1137 if test -n "$CC"; then
1138 echo "$ac_t""$CC" 1>&6
1139 else
1140 echo "$ac_t""no" 1>&6
1143 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1146 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1147 echo "configure:1148: checking whether we are using GNU C" >&5
1148 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1150 else
1151 cat > conftest.c <<EOF
1152 #ifdef __GNUC__
1153 yes;
1154 #endif
1156 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1157 ac_cv_prog_gcc=yes
1158 else
1159 ac_cv_prog_gcc=no
1163 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1165 if test $ac_cv_prog_gcc = yes; then
1166 GCC=yes
1167 ac_test_CFLAGS="${CFLAGS+set}"
1168 ac_save_CFLAGS="$CFLAGS"
1169 CFLAGS=
1170 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1171 echo "configure:1172: checking whether ${CC-cc} accepts -g" >&5
1172 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1173 echo $ac_n "(cached) $ac_c" 1>&6
1174 else
1175 echo 'void f(){}' > conftest.c
1176 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1177 ac_cv_prog_cc_g=yes
1178 else
1179 ac_cv_prog_cc_g=no
1181 rm -f conftest*
1185 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1186 if test "$ac_test_CFLAGS" = set; then
1187 CFLAGS="$ac_save_CFLAGS"
1188 elif test $ac_cv_prog_cc_g = yes; then
1189 CFLAGS="-g -O2"
1190 else
1191 CFLAGS="-O2"
1193 else
1194 GCC=
1195 test "${CFLAGS+set}" = set || CFLAGS="-g"
1199 # Can't just call these here as g++ requires libstc++ to be built....
1200 # AC_PROG_CXX
1202 # Likewise for AC_PROG_CXX.
1206 # Use CXX_libstdcxx so that we do not cause CXX to be cached with the
1207 # flags that come in CXX while configuring libstdc++. They're different
1208 # from those used for all other target libraries. If CXX is set in
1209 # the environment, respect that here.
1210 CXX_libstdcxx=$CXX
1211 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1213 # Extract the first word of "$ac_prog", so it can be a program name with args.
1214 set dummy $ac_prog; ac_word=$2
1215 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1216 echo "configure:1217: checking for $ac_word" >&5
1217 if eval "test \"`echo '$''{'ac_cv_prog_CXX_libstdcxx'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1219 else
1220 if test -n "$CXX_libstdcxx"; then
1221 ac_cv_prog_CXX_libstdcxx="$CXX_libstdcxx" # Let the user override the test.
1222 else
1223 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1224 ac_dummy="$PATH"
1225 for ac_dir in $ac_dummy; do
1226 test -z "$ac_dir" && ac_dir=.
1227 if test -f $ac_dir/$ac_word; then
1228 ac_cv_prog_CXX_libstdcxx="$ac_prog"
1229 break
1231 done
1232 IFS="$ac_save_ifs"
1235 CXX_libstdcxx="$ac_cv_prog_CXX_libstdcxx"
1236 if test -n "$CXX_libstdcxx"; then
1237 echo "$ac_t""$CXX_libstdcxx" 1>&6
1238 else
1239 echo "$ac_t""no" 1>&6
1242 test -n "$CXX_libstdcxx" && break
1243 done
1244 test -n "$CXX_libstdcxx" || CXX_libstdcxx="gcc"
1246 CXX=$CXX_libstdcxx
1248 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1250 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1251 echo "configure:1252: checking whether we are using GNU C++" >&5
1252 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1254 else
1255 cat > conftest.C <<EOF
1256 #ifdef __GNUC__
1257 yes;
1258 #endif
1260 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1261 ac_cv_prog_gxx=yes
1262 else
1263 ac_cv_prog_gxx=no
1267 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1269 if test $ac_cv_prog_gxx = yes; then
1270 GXX=yes
1271 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1272 ac_save_CXXFLAGS="$CXXFLAGS"
1273 CXXFLAGS=
1274 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1275 echo "configure:1276: checking whether ${CXX-g++} accepts -g" >&5
1276 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1278 else
1279 echo 'void f(){}' > conftest.cc
1280 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1281 ac_cv_prog_cxx_g=yes
1282 else
1283 ac_cv_prog_cxx_g=no
1285 rm -f conftest*
1289 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1290 if test "$ac_test_CXXFLAGS" = set; then
1291 CXXFLAGS="$ac_save_CXXFLAGS"
1292 elif test $ac_cv_prog_cxx_g = yes; then
1293 CXXFLAGS="-g -O2"
1294 else
1295 CXXFLAGS="-O2"
1297 else
1298 GXX=
1299 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1303 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1304 set dummy ${ac_tool_prefix}as; ac_word=$2
1305 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1306 echo "configure:1307: checking for $ac_word" >&5
1307 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1309 else
1310 if test -n "$AS"; then
1311 ac_cv_prog_AS="$AS" # Let the user override the test.
1312 else
1313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1314 ac_dummy="$PATH"
1315 for ac_dir in $ac_dummy; do
1316 test -z "$ac_dir" && ac_dir=.
1317 if test -f $ac_dir/$ac_word; then
1318 ac_cv_prog_AS="${ac_tool_prefix}as"
1319 break
1321 done
1322 IFS="$ac_save_ifs"
1323 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1326 AS="$ac_cv_prog_AS"
1327 if test -n "$AS"; then
1328 echo "$ac_t""$AS" 1>&6
1329 else
1330 echo "$ac_t""no" 1>&6
1335 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1336 set dummy ${ac_tool_prefix}ar; ac_word=$2
1337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1338 echo "configure:1339: checking for $ac_word" >&5
1339 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1341 else
1342 if test -n "$AR"; then
1343 ac_cv_prog_AR="$AR" # Let the user override the test.
1344 else
1345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1346 ac_dummy="$PATH"
1347 for ac_dir in $ac_dummy; do
1348 test -z "$ac_dir" && ac_dir=.
1349 if test -f $ac_dir/$ac_word; then
1350 ac_cv_prog_AR="${ac_tool_prefix}ar"
1351 break
1353 done
1354 IFS="$ac_save_ifs"
1355 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1358 AR="$ac_cv_prog_AR"
1359 if test -n "$AR"; then
1360 echo "$ac_t""$AR" 1>&6
1361 else
1362 echo "$ac_t""no" 1>&6
1367 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1368 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1370 echo "configure:1371: checking for $ac_word" >&5
1371 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1373 else
1374 if test -n "$RANLIB"; then
1375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1376 else
1377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1378 ac_dummy="$PATH"
1379 for ac_dir in $ac_dummy; do
1380 test -z "$ac_dir" && ac_dir=.
1381 if test -f $ac_dir/$ac_word; then
1382 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1383 break
1385 done
1386 IFS="$ac_save_ifs"
1389 RANLIB="$ac_cv_prog_RANLIB"
1390 if test -n "$RANLIB"; then
1391 echo "$ac_t""$RANLIB" 1>&6
1392 else
1393 echo "$ac_t""no" 1>&6
1397 if test -z "$ac_cv_prog_RANLIB"; then
1398 if test -n "$ac_tool_prefix"; then
1399 # Extract the first word of "ranlib", so it can be a program name with args.
1400 set dummy ranlib; ac_word=$2
1401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1402 echo "configure:1403: checking for $ac_word" >&5
1403 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1405 else
1406 if test -n "$RANLIB"; then
1407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1408 else
1409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1410 ac_dummy="$PATH"
1411 for ac_dir in $ac_dummy; do
1412 test -z "$ac_dir" && ac_dir=.
1413 if test -f $ac_dir/$ac_word; then
1414 ac_cv_prog_RANLIB="ranlib"
1415 break
1417 done
1418 IFS="$ac_save_ifs"
1419 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1422 RANLIB="$ac_cv_prog_RANLIB"
1423 if test -n "$RANLIB"; then
1424 echo "$ac_t""$RANLIB" 1>&6
1425 else
1426 echo "$ac_t""no" 1>&6
1429 else
1430 RANLIB=":"
1435 # Find a good install program. We prefer a C program (faster),
1436 # so one script is as good as another. But avoid the broken or
1437 # incompatible versions:
1438 # SysV /etc/install, /usr/sbin/install
1439 # SunOS /usr/etc/install
1440 # IRIX /sbin/install
1441 # AIX /bin/install
1442 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1443 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1444 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1445 # ./install, which can be erroneously created by make from ./install.sh.
1446 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1447 echo "configure:1448: checking for a BSD compatible install" >&5
1448 if test -z "$INSTALL"; then
1449 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1451 else
1452 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1453 for ac_dir in $PATH; do
1454 # Account for people who put trailing slashes in PATH elements.
1455 case "$ac_dir/" in
1456 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1458 # OSF1 and SCO ODT 3.0 have their own names for install.
1459 # Don't use installbsd from OSF since it installs stuff as root
1460 # by default.
1461 for ac_prog in ginstall scoinst install; do
1462 if test -f $ac_dir/$ac_prog; then
1463 if test $ac_prog = install &&
1464 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1465 # AIX install. It has an incompatible calling convention.
1467 else
1468 ac_cv_path_install="$ac_dir/$ac_prog -c"
1469 break 2
1472 done
1474 esac
1475 done
1476 IFS="$ac_save_IFS"
1479 if test "${ac_cv_path_install+set}" = set; then
1480 INSTALL="$ac_cv_path_install"
1481 else
1482 # As a last resort, use the slow shell script. We don't cache a
1483 # path for INSTALL within a source directory, because that will
1484 # break other packages using the cache if that directory is
1485 # removed, or if the path is relative.
1486 INSTALL="$ac_install_sh"
1489 echo "$ac_t""$INSTALL" 1>&6
1491 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1492 # It thinks the first close brace ends the variable substitution.
1493 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1495 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1497 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1500 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1501 echo "configure:1502: checking whether to enable maintainer-specific portions of Makefiles" >&5
1502 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1503 if test "${enable_maintainer_mode+set}" = set; then
1504 enableval="$enable_maintainer_mode"
1505 USE_MAINTAINER_MODE=$enableval
1506 else
1507 USE_MAINTAINER_MODE=no
1510 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1513 if test $USE_MAINTAINER_MODE = yes; then
1514 MAINTAINER_MODE_TRUE=
1515 MAINTAINER_MODE_FALSE='#'
1516 else
1517 MAINTAINER_MODE_TRUE='#'
1518 MAINTAINER_MODE_FALSE=
1520 MAINT=$MAINTAINER_MODE_TRUE
1524 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1525 # at least currently, we never actually build a program, so we never
1526 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1527 # fails, because we are probably configuring with a cross compiler
1528 # which cant create executables. So we include AC_EXEEXT to keep
1529 # automake happy, but we dont execute it, since we dont care about
1530 # the result.
1531 if false; then
1534 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1535 echo "configure:1536: checking for executable suffix" >&5
1536 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1538 else
1539 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1540 ac_cv_exeext=.exe
1541 else
1542 rm -f conftest*
1543 echo 'int main () { return 0; }' > conftest.$ac_ext
1544 ac_cv_exeext=
1545 if { (eval echo configure:1546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1546 for file in conftest.*; do
1547 case $file in
1548 *.c | *.o | *.obj) ;;
1549 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1550 esac
1551 done
1552 else
1553 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1555 rm -f conftest*
1556 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1560 EXEEXT=""
1561 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1562 echo "$ac_t""${ac_cv_exeext}" 1>&6
1563 ac_exeext=$EXEEXT
1567 . ${glibcpp_basedir}/configure.host
1569 case ${glibcpp_basedir} in
1570 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1571 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1572 esac
1574 # This does for the target what configure.host does for the host. In
1575 # addition to possibly modifying the same flags, it also sets up symlinks.
1577 . ${glibcpp_basedir}/configure.target
1578 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1579 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1585 # Check whether --enable-shared or --disable-shared was given.
1586 if test "${enable_shared+set}" = set; then
1587 enableval="$enable_shared"
1588 p=${PACKAGE-default}
1589 case $enableval in
1590 yes) enable_shared=yes ;;
1591 no) enable_shared=no ;;
1593 enable_shared=no
1594 # Look at the argument we got. We use all the common list separators.
1595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1596 for pkg in $enableval; do
1597 if test "X$pkg" = "X$p"; then
1598 enable_shared=yes
1600 done
1601 IFS="$ac_save_ifs"
1603 esac
1604 else
1605 enable_shared=yes
1608 # Check whether --enable-static or --disable-static was given.
1609 if test "${enable_static+set}" = set; then
1610 enableval="$enable_static"
1611 p=${PACKAGE-default}
1612 case $enableval in
1613 yes) enable_static=yes ;;
1614 no) enable_static=no ;;
1616 enable_static=no
1617 # Look at the argument we got. We use all the common list separators.
1618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1619 for pkg in $enableval; do
1620 if test "X$pkg" = "X$p"; then
1621 enable_static=yes
1623 done
1624 IFS="$ac_save_ifs"
1626 esac
1627 else
1628 enable_static=yes
1631 # Check whether --enable-fast-install or --disable-fast-install was given.
1632 if test "${enable_fast_install+set}" = set; then
1633 enableval="$enable_fast_install"
1634 p=${PACKAGE-default}
1635 case $enableval in
1636 yes) enable_fast_install=yes ;;
1637 no) enable_fast_install=no ;;
1639 enable_fast_install=no
1640 # Look at the argument we got. We use all the common list separators.
1641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1642 for pkg in $enableval; do
1643 if test "X$pkg" = "X$p"; then
1644 enable_fast_install=yes
1646 done
1647 IFS="$ac_save_ifs"
1649 esac
1650 else
1651 enable_fast_install=yes
1654 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1655 if test "${with_gnu_ld+set}" = set; then
1656 withval="$with_gnu_ld"
1657 test "$withval" = no || with_gnu_ld=yes
1658 else
1659 with_gnu_ld=no
1662 ac_prog=ld
1663 if test "$GCC" = yes; then
1664 # Check if gcc -print-prog-name=ld gives a path.
1665 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1666 echo "configure:1667: checking for ld used by GCC" >&5
1667 case $host in
1668 *-*-mingw*)
1669 # gcc leaves a trailing carriage return which upsets mingw
1670 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1672 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1673 esac
1674 case $ac_prog in
1675 # Accept absolute paths.
1676 [\\/]* | [A-Za-z]:[\\/]*)
1677 re_direlt='/[^/][^/]*/\.\./'
1678 # Canonicalize the path of ld
1679 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1680 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1681 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1682 done
1683 test -z "$LD" && LD="$ac_prog"
1686 # If it fails, then pretend we aren't using GCC.
1687 ac_prog=ld
1690 # If it is relative, then search for the first ld in PATH.
1691 with_gnu_ld=unknown
1693 esac
1694 elif test "$with_gnu_ld" = yes; then
1695 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1696 echo "configure:1697: checking for GNU ld" >&5
1697 else
1698 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1699 echo "configure:1700: checking for non-GNU ld" >&5
1701 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1703 else
1704 if test -z "$LD"; then
1705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1706 for ac_dir in $PATH; do
1707 test -z "$ac_dir" && ac_dir=.
1708 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1709 lt_cv_path_LD="$ac_dir/$ac_prog"
1710 # Check to see if the program is GNU ld. I'd rather use --version,
1711 # but apparently some GNU ld's only accept -v.
1712 # Break only if it was the GNU/non-GNU ld that we prefer.
1713 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1714 test "$with_gnu_ld" != no && break
1715 else
1716 test "$with_gnu_ld" != yes && break
1719 done
1720 IFS="$ac_save_ifs"
1721 else
1722 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1726 LD="$lt_cv_path_LD"
1727 if test -n "$LD"; then
1728 echo "$ac_t""$LD" 1>&6
1729 else
1730 echo "$ac_t""no" 1>&6
1732 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1733 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1734 echo "configure:1735: checking if the linker ($LD) is GNU ld" >&5
1735 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1737 else
1738 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1739 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1740 lt_cv_prog_gnu_ld=yes
1741 else
1742 lt_cv_prog_gnu_ld=no
1746 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1747 with_gnu_ld=$lt_cv_prog_gnu_ld
1750 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1751 echo "configure:1752: checking for $LD option to reload object files" >&5
1752 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1754 else
1755 lt_cv_ld_reload_flag='-r'
1758 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1759 reload_flag=$lt_cv_ld_reload_flag
1760 test -n "$reload_flag" && reload_flag=" $reload_flag"
1762 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1763 echo "configure:1764: checking for BSD-compatible nm" >&5
1764 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1766 else
1767 if test -n "$NM"; then
1768 # Let the user override the test.
1769 lt_cv_path_NM="$NM"
1770 else
1771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1772 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1773 test -z "$ac_dir" && ac_dir=.
1774 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1775 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1776 # Check to see if the nm accepts a BSD-compat flag.
1777 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1778 # nm: unknown option "B" ignored
1779 # Tru64's nm complains that /dev/null is an invalid object file
1780 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1781 lt_cv_path_NM="$tmp_nm -B"
1782 break
1783 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1784 lt_cv_path_NM="$tmp_nm -p"
1785 break
1786 else
1787 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1788 continue # so that we can try to find one that supports BSD flags
1791 done
1792 IFS="$ac_save_ifs"
1793 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1797 NM="$lt_cv_path_NM"
1798 echo "$ac_t""$NM" 1>&6
1800 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1801 echo "configure:1802: checking whether ln -s works" >&5
1802 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1804 else
1805 rm -f conftestdata
1806 if ln -s X conftestdata 2>/dev/null
1807 then
1808 rm -f conftestdata
1809 ac_cv_prog_LN_S="ln -s"
1810 else
1811 ac_cv_prog_LN_S=ln
1814 LN_S="$ac_cv_prog_LN_S"
1815 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1816 echo "$ac_t""yes" 1>&6
1817 else
1818 echo "$ac_t""no" 1>&6
1821 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1822 echo "configure:1823: checking how to recognise dependant libraries" >&5
1823 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6
1825 else
1826 lt_cv_file_magic_cmd='$MAGIC_CMD'
1827 lt_cv_file_magic_test_file=
1828 lt_cv_deplibs_check_method='unknown'
1829 # Need to set the preceding variable on all platforms that support
1830 # interlibrary dependencies.
1831 # 'none' -- dependencies not supported.
1832 # `unknown' -- same as none, but documents that we really don't know.
1833 # 'pass_all' -- all dependencies passed with no checks.
1834 # 'test_compile' -- check by making test program.
1835 # 'file_magic [regex]' -- check by looking for files in library path
1836 # which responds to the $file_magic_cmd with a given egrep regex.
1837 # If you have `file' or equivalent on your system and you're not sure
1838 # whether `pass_all' will *always* work, you probably want this one.
1840 case $host_os in
1841 aix*)
1842 lt_cv_deplibs_check_method=pass_all
1845 beos*)
1846 lt_cv_deplibs_check_method=pass_all
1849 bsdi4*)
1850 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1851 lt_cv_file_magic_cmd='/usr/bin/file -L'
1852 lt_cv_file_magic_test_file=/shlib/libc.so
1855 cygwin* | mingw* |pw32*)
1856 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1857 lt_cv_file_magic_cmd='$OBJDUMP -f'
1860 darwin* | rhapsody*)
1861 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1862 lt_cv_file_magic_cmd=/usr/bin/file
1863 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1866 freebsd* )
1867 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1868 case $host_cpu in
1869 i*86 )
1870 # Not sure whether the presence of OpenBSD here was a mistake.
1871 # Let's accept both of them until this is cleared up.
1872 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1873 lt_cv_file_magic_cmd=/usr/bin/file
1874 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1876 esac
1877 else
1878 lt_cv_deplibs_check_method=pass_all
1882 gnu*)
1883 lt_cv_deplibs_check_method=pass_all
1886 hpux10.20*|hpux11*)
1887 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1888 lt_cv_file_magic_cmd=/usr/bin/file
1889 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1892 irix5* | irix6*)
1893 case $host_os in
1894 irix5*)
1895 # this will be overridden with pass_all, but let us keep it just in case
1896 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1899 case $LD in
1900 *-32|*"-32 ") libmagic=32-bit;;
1901 *-n32|*"-n32 ") libmagic=N32;;
1902 *-64|*"-64 ") libmagic=64-bit;;
1903 *) libmagic=never-match;;
1904 esac
1905 # this will be overridden with pass_all, but let us keep it just in case
1906 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1908 esac
1909 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1910 lt_cv_deplibs_check_method=pass_all
1913 # This must be Linux ELF.
1914 linux-gnu*)
1915 case $host_cpu in
1916 alpha* | i*86 | powerpc* | sparc* | ia64* )
1917 lt_cv_deplibs_check_method=pass_all ;;
1919 # glibc up to 2.1.1 does not perform some relocations on ARM
1920 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1921 esac
1922 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1925 netbsd*)
1926 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1927 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
1928 else
1929 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1931 lt_cv_file_magic_cmd='/usr/bin/file -L'
1932 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1935 newsos6)
1936 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1937 lt_cv_file_magic_cmd=/usr/bin/file
1938 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1941 osf3* | osf4* | osf5*)
1942 # this will be overridden with pass_all, but let us keep it just in case
1943 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1944 lt_cv_file_magic_test_file=/shlib/libc.so
1945 lt_cv_deplibs_check_method=pass_all
1948 sco3.2v5*)
1949 lt_cv_deplibs_check_method=pass_all
1952 solaris*)
1953 lt_cv_deplibs_check_method=pass_all
1954 lt_cv_file_magic_test_file=/lib/libc.so
1957 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1958 case $host_vendor in
1959 ncr)
1960 lt_cv_deplibs_check_method=pass_all
1962 motorola)
1963 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]'
1964 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1966 esac
1968 esac
1972 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1973 file_magic_cmd=$lt_cv_file_magic_cmd
1974 deplibs_check_method=$lt_cv_deplibs_check_method
1976 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1977 echo "configure:1978: checking for object suffix" >&5
1978 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1980 else
1981 rm -f conftest*
1982 echo 'int i = 1;' > conftest.$ac_ext
1983 if { (eval echo configure:1984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1984 for ac_file in conftest.*; do
1985 case $ac_file in
1986 *.c) ;;
1987 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1988 esac
1989 done
1990 else
1991 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1993 rm -f conftest*
1996 echo "$ac_t""$ac_cv_objext" 1>&6
1997 OBJEXT=$ac_cv_objext
1998 ac_objext=$ac_cv_objext
2000 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2002 # Only perform the check for file, if the check method requires it
2003 case $deplibs_check_method in
2004 file_magic*)
2005 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2006 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2007 echo "configure:2008: checking for ${ac_tool_prefix}file" >&5
2008 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2010 else
2011 case $MAGIC_CMD in
2013 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2015 ?:/*)
2016 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2019 ac_save_MAGIC_CMD="$MAGIC_CMD"
2020 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2021 ac_dummy="/usr/bin:$PATH"
2022 for ac_dir in $ac_dummy; do
2023 test -z "$ac_dir" && ac_dir=.
2024 if test -f $ac_dir/${ac_tool_prefix}file; then
2025 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2026 if test -n "$file_magic_test_file"; then
2027 case $deplibs_check_method in
2028 "file_magic "*)
2029 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2030 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2031 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2032 egrep "$file_magic_regex" > /dev/null; then
2034 else
2035 cat <<EOF 1>&2
2037 *** Warning: the command libtool uses to detect shared libraries,
2038 *** $file_magic_cmd, produces output that libtool cannot recognize.
2039 *** The result is that libtool may fail to recognize shared libraries
2040 *** as such. This will affect the creation of libtool libraries that
2041 *** depend on shared libraries, but programs linked with such libtool
2042 *** libraries will work regardless of this problem. Nevertheless, you
2043 *** may want to report the problem to your system manager and/or to
2044 *** bug-libtool@gnu.org
2047 fi ;;
2048 esac
2050 break
2052 done
2053 IFS="$ac_save_ifs"
2054 MAGIC_CMD="$ac_save_MAGIC_CMD"
2056 esac
2059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2060 if test -n "$MAGIC_CMD"; then
2061 echo "$ac_t""$MAGIC_CMD" 1>&6
2062 else
2063 echo "$ac_t""no" 1>&6
2066 if test -z "$lt_cv_path_MAGIC_CMD"; then
2067 if test -n "$ac_tool_prefix"; then
2068 echo $ac_n "checking for file""... $ac_c" 1>&6
2069 echo "configure:2070: checking for file" >&5
2070 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2072 else
2073 case $MAGIC_CMD in
2075 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2077 ?:/*)
2078 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2081 ac_save_MAGIC_CMD="$MAGIC_CMD"
2082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2083 ac_dummy="/usr/bin:$PATH"
2084 for ac_dir in $ac_dummy; do
2085 test -z "$ac_dir" && ac_dir=.
2086 if test -f $ac_dir/file; then
2087 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2088 if test -n "$file_magic_test_file"; then
2089 case $deplibs_check_method in
2090 "file_magic "*)
2091 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2092 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2093 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2094 egrep "$file_magic_regex" > /dev/null; then
2096 else
2097 cat <<EOF 1>&2
2099 *** Warning: the command libtool uses to detect shared libraries,
2100 *** $file_magic_cmd, produces output that libtool cannot recognize.
2101 *** The result is that libtool may fail to recognize shared libraries
2102 *** as such. This will affect the creation of libtool libraries that
2103 *** depend on shared libraries, but programs linked with such libtool
2104 *** libraries will work regardless of this problem. Nevertheless, you
2105 *** may want to report the problem to your system manager and/or to
2106 *** bug-libtool@gnu.org
2109 fi ;;
2110 esac
2112 break
2114 done
2115 IFS="$ac_save_ifs"
2116 MAGIC_CMD="$ac_save_MAGIC_CMD"
2118 esac
2121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2122 if test -n "$MAGIC_CMD"; then
2123 echo "$ac_t""$MAGIC_CMD" 1>&6
2124 else
2125 echo "$ac_t""no" 1>&6
2128 else
2129 MAGIC_CMD=:
2135 esac
2137 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2138 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2139 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2140 echo "configure:2141: checking for $ac_word" >&5
2141 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2143 else
2144 if test -n "$RANLIB"; then
2145 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2146 else
2147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2148 ac_dummy="$PATH"
2149 for ac_dir in $ac_dummy; do
2150 test -z "$ac_dir" && ac_dir=.
2151 if test -f $ac_dir/$ac_word; then
2152 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2153 break
2155 done
2156 IFS="$ac_save_ifs"
2159 RANLIB="$ac_cv_prog_RANLIB"
2160 if test -n "$RANLIB"; then
2161 echo "$ac_t""$RANLIB" 1>&6
2162 else
2163 echo "$ac_t""no" 1>&6
2167 if test -z "$ac_cv_prog_RANLIB"; then
2168 if test -n "$ac_tool_prefix"; then
2169 # Extract the first word of "ranlib", so it can be a program name with args.
2170 set dummy ranlib; ac_word=$2
2171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2172 echo "configure:2173: checking for $ac_word" >&5
2173 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2175 else
2176 if test -n "$RANLIB"; then
2177 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2178 else
2179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2180 ac_dummy="$PATH"
2181 for ac_dir in $ac_dummy; do
2182 test -z "$ac_dir" && ac_dir=.
2183 if test -f $ac_dir/$ac_word; then
2184 ac_cv_prog_RANLIB="ranlib"
2185 break
2187 done
2188 IFS="$ac_save_ifs"
2189 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2192 RANLIB="$ac_cv_prog_RANLIB"
2193 if test -n "$RANLIB"; then
2194 echo "$ac_t""$RANLIB" 1>&6
2195 else
2196 echo "$ac_t""no" 1>&6
2199 else
2200 RANLIB=":"
2204 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2205 set dummy ${ac_tool_prefix}strip; ac_word=$2
2206 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2207 echo "configure:2208: checking for $ac_word" >&5
2208 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2209 echo $ac_n "(cached) $ac_c" 1>&6
2210 else
2211 if test -n "$STRIP"; then
2212 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2213 else
2214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2215 ac_dummy="$PATH"
2216 for ac_dir in $ac_dummy; do
2217 test -z "$ac_dir" && ac_dir=.
2218 if test -f $ac_dir/$ac_word; then
2219 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2220 break
2222 done
2223 IFS="$ac_save_ifs"
2226 STRIP="$ac_cv_prog_STRIP"
2227 if test -n "$STRIP"; then
2228 echo "$ac_t""$STRIP" 1>&6
2229 else
2230 echo "$ac_t""no" 1>&6
2234 if test -z "$ac_cv_prog_STRIP"; then
2235 if test -n "$ac_tool_prefix"; then
2236 # Extract the first word of "strip", so it can be a program name with args.
2237 set dummy strip; ac_word=$2
2238 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2239 echo "configure:2240: checking for $ac_word" >&5
2240 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2242 else
2243 if test -n "$STRIP"; then
2244 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2245 else
2246 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2247 ac_dummy="$PATH"
2248 for ac_dir in $ac_dummy; do
2249 test -z "$ac_dir" && ac_dir=.
2250 if test -f $ac_dir/$ac_word; then
2251 ac_cv_prog_STRIP="strip"
2252 break
2254 done
2255 IFS="$ac_save_ifs"
2256 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2259 STRIP="$ac_cv_prog_STRIP"
2260 if test -n "$STRIP"; then
2261 echo "$ac_t""$STRIP" 1>&6
2262 else
2263 echo "$ac_t""no" 1>&6
2266 else
2267 STRIP=":"
2272 # Check for any special flags to pass to ltconfig.
2273 libtool_flags="--cache-file=$cache_file"
2274 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2275 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2276 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2277 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2278 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2279 libtool_flags="$libtool_flags --enable-dlopen"
2281 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2282 if test "${enable_libtool_lock+set}" = set; then
2283 enableval="$enable_libtool_lock"
2287 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2288 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2290 # Check whether --with-pic or --without-pic was given.
2291 if test "${with_pic+set}" = set; then
2292 withval="$with_pic"
2293 pic_mode="$withval"
2294 else
2295 pic_mode=default
2298 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2299 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2301 # Some flags need to be propagated to the compiler or linker for good
2302 # libtool support.
2303 case $host in
2304 *-*-irix6*)
2305 # Find out which ABI we are using.
2306 echo '#line 2307 "configure"' > conftest.$ac_ext
2307 if { (eval echo configure:2308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2308 case `/usr/bin/file conftest.$ac_objext` in
2309 *32-bit*)
2310 LD="${LD-ld} -32"
2312 *N32*)
2313 LD="${LD-ld} -n32"
2315 *64-bit*)
2316 LD="${LD-ld} -64"
2318 esac
2320 rm -rf conftest*
2323 *-*-sco3.2v5*)
2324 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2325 SAVE_CFLAGS="$CFLAGS"
2326 CFLAGS="$CFLAGS -belf"
2327 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2328 echo "configure:2329: checking whether the C compiler needs -belf" >&5
2329 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2330 echo $ac_n "(cached) $ac_c" 1>&6
2331 else
2333 ac_ext=c
2334 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2335 ac_cpp='$CPP $CPPFLAGS'
2336 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2337 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2338 cross_compiling=$ac_cv_prog_cc_cross
2340 cat > conftest.$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2344 int main() {
2346 ; return 0; }
2348 if { (eval echo configure:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2349 rm -rf conftest*
2350 lt_cv_cc_needs_belf=yes
2351 else
2352 echo "configure: failed program was:" >&5
2353 cat conftest.$ac_ext >&5
2354 rm -rf conftest*
2355 lt_cv_cc_needs_belf=no
2357 rm -f conftest*
2358 ac_ext=c
2359 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2360 ac_cpp='$CPP $CPPFLAGS'
2361 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2362 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2363 cross_compiling=$ac_cv_prog_cc_cross
2367 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2368 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2369 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2370 CFLAGS="$SAVE_CFLAGS"
2375 esac
2377 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2378 echo "configure:2379: checking how to run the C++ preprocessor" >&5
2379 if test -z "$CXXCPP"; then
2380 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2382 else
2383 ac_ext=C
2384 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2385 ac_cpp='$CXXCPP $CPPFLAGS'
2386 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2387 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2388 cross_compiling=$ac_cv_prog_cxx_cross
2389 CXXCPP="${CXX-g++} -E"
2390 cat > conftest.$ac_ext <<EOF
2391 #line 2392 "configure"
2392 #include "confdefs.h"
2393 #include <stdlib.h>
2395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2396 { (eval echo configure:2397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2398 if test -z "$ac_err"; then
2400 else
2401 echo "$ac_err" >&5
2402 echo "configure: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2404 rm -rf conftest*
2405 CXXCPP=/lib/cpp
2407 rm -f conftest*
2408 ac_cv_prog_CXXCPP="$CXXCPP"
2409 ac_ext=c
2410 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2411 ac_cpp='$CPP $CPPFLAGS'
2412 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2413 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2414 cross_compiling=$ac_cv_prog_cc_cross
2417 CXXCPP="$ac_cv_prog_CXXCPP"
2418 echo "$ac_t""$CXXCPP" 1>&6
2421 # Save cache, so that ltconfig can load it
2422 cat > confcache <<\EOF
2423 # This file is a shell script that caches the results of configure
2424 # tests run on this system so they can be shared between configure
2425 # scripts and configure runs. It is not useful on other systems.
2426 # If it contains results you don't want to keep, you may remove or edit it.
2428 # By default, configure uses ./config.cache as the cache file,
2429 # creating it if it does not exist already. You can give configure
2430 # the --cache-file=FILE option to use a different cache file; that is
2431 # what configure does when it calls configure scripts in
2432 # subdirectories, so they share the cache.
2433 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2434 # config.status only pays attention to the cache file if you give it the
2435 # --recheck option to rerun configure.
2438 # The following way of writing the cache mishandles newlines in values,
2439 # but we know of no workaround that is simple, portable, and efficient.
2440 # So, don't put newlines in cache variables' values.
2441 # Ultrix sh set writes to stderr and can't be redirected directly,
2442 # and sets the high bit in the cache file unless we assign to the vars.
2443 (set) 2>&1 |
2444 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2445 *ac_space=\ *)
2446 # `set' does not quote correctly, so add quotes (double-quote substitution
2447 # turns \\\\ into \\, and sed turns \\ into \).
2448 sed -n \
2449 -e "s/'/'\\\\''/g" \
2450 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2453 # `set' quotes correctly as required by POSIX, so do not add quotes.
2454 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2456 esac >> confcache
2457 if cmp -s $cache_file confcache; then
2459 else
2460 if test -w $cache_file; then
2461 echo "updating cache $cache_file"
2462 cat confcache > $cache_file
2463 else
2464 echo "not updating unwritable cache $cache_file"
2467 rm -f confcache
2470 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2471 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2472 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2473 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2474 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2475 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2476 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2477 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2478 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2479 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2481 # Reload cache, that may have been modified by ltconfig
2482 if test -r "$cache_file"; then
2483 echo "loading cache $cache_file"
2484 . $cache_file
2485 else
2486 echo "creating cache $cache_file"
2487 > $cache_file
2491 # This can be used to rebuild libtool when needed
2492 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2494 # Always use our own libtool.
2495 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2497 # Redirect the config.log output again, so that the ltconfig log is not
2498 # clobbered by the next message.
2499 exec 5>>./config.log
2503 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2504 lt_save_CC="$CC"
2505 lt_save_CFLAGS="$CFLAGS"
2506 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2507 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2508 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2509 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2510 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2511 deplibs_check_method="$deplibs_check_method" \
2512 file_magic_cmd="$file_magic_cmd" \
2513 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2514 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2515 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2516 CC="$lt_save_CC"
2517 CFLAGS="$lt_save_CFLAGS"
2519 # Redirect the config.log output again, so that the ltconfig log is not
2520 # clobbered by the next message.
2521 exec 5>>./config.log
2530 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2531 echo "configure:2532: checking for GNU make" >&5
2532 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2534 else
2535 _cv_gnu_make_command='' ;
2536 for a in "${MAKE-make}" make gmake gnumake ; do
2537 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2538 then
2539 _cv_gnu_make_command=$a ;
2540 break;
2542 done ;
2546 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2547 if test "x$_cv_gnu_make_command" != "x" ; then
2548 ifGNUmake='' ;
2549 else
2550 ifGNUmake='#' ;
2554 if test "x$_cv_gnu_make_command" = "x"; then
2555 { echo "configure: error: GNU make not found. Please install it or correct your path." 1>&2; exit 1; }
2561 # Check for c++ or library specific bits that don't require linking.
2563 if test ! -f stamp-sanity-compiler; then
2564 echo $ac_n "checking for g++ that will successfully compile libstdc++-v3""... $ac_c" 1>&6
2565 echo "configure:2566: checking for g++ that will successfully compile libstdc++-v3" >&5
2567 ac_ext=C
2568 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2569 ac_cpp='$CXXCPP $CPPFLAGS'
2570 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2571 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2572 cross_compiling=$ac_cv_prog_cxx_cross
2574 cat > conftest.$ac_ext <<EOF
2575 #line 2576 "configure"
2576 #include "confdefs.h"
2578 #if __GNUC__ >= 3
2580 #endif
2583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2584 egrep "ok" >/dev/null 2>&1; then
2585 rm -rf conftest*
2586 gpp_satisfactory=yes
2587 else
2588 rm -rf conftest*
2589 { echo "configure: error: please upgrade to GCC 3.0 or above" 1>&2; exit 1; }
2591 rm -f conftest*
2593 ac_ext=c
2594 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2595 ac_cpp='$CPP $CPPFLAGS'
2596 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2597 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2598 cross_compiling=$ac_cv_prog_cc_cross
2600 echo "$ac_t""$gpp_satisfactory" 1>&6
2601 touch stamp-sanity-compiler
2605 # Enable all the crazy c++ stuff. C_MBCHAR must come early.
2606 # Check whether --enable-debug or --disable-debug was given.
2607 if test "${enable_debug+set}" = set; then
2608 enableval="$enable_debug"
2609 case "${enableval}" in
2610 yes) enable_debug=yes ;;
2611 no) enable_debug=no ;;
2612 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2613 esac
2614 else
2615 enable_debug=no
2618 case "${enable_debug}" in
2619 yes)
2620 DEBUG_FLAGS='-O0 -ggdb3'
2622 no)
2623 DEBUG_FLAGS='-g'
2625 esac
2628 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2629 echo "configure:2630: checking how to run the C preprocessor" >&5
2630 # On Suns, sometimes $CPP names a directory.
2631 if test -n "$CPP" && test -d "$CPP"; then
2632 CPP=
2634 if test -z "$CPP"; then
2635 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2637 else
2638 # This must be in double quotes, not single quotes, because CPP may get
2639 # substituted into the Makefile and "${CC-cc}" will confuse make.
2640 CPP="${CC-cc} -E"
2641 # On the NeXT, cc -E runs the code through the compiler's parser,
2642 # not just through cpp.
2643 cat > conftest.$ac_ext <<EOF
2644 #line 2645 "configure"
2645 #include "confdefs.h"
2646 #include <assert.h>
2647 Syntax Error
2649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2650 { (eval echo configure:2651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2652 if test -z "$ac_err"; then
2654 else
2655 echo "$ac_err" >&5
2656 echo "configure: failed program was:" >&5
2657 cat conftest.$ac_ext >&5
2658 rm -rf conftest*
2659 CPP="${CC-cc} -E -traditional-cpp"
2660 cat > conftest.$ac_ext <<EOF
2661 #line 2662 "configure"
2662 #include "confdefs.h"
2663 #include <assert.h>
2664 Syntax Error
2666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2667 { (eval echo configure:2668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2668 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2669 if test -z "$ac_err"; then
2671 else
2672 echo "$ac_err" >&5
2673 echo "configure: failed program was:" >&5
2674 cat conftest.$ac_ext >&5
2675 rm -rf conftest*
2676 CPP="${CC-cc} -nologo -E"
2677 cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 #include <assert.h>
2681 Syntax Error
2683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2684 { (eval echo configure:2685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2686 if test -z "$ac_err"; then
2688 else
2689 echo "$ac_err" >&5
2690 echo "configure: failed program was:" >&5
2691 cat conftest.$ac_ext >&5
2692 rm -rf conftest*
2693 CPP=/lib/cpp
2695 rm -f conftest*
2697 rm -f conftest*
2699 rm -f conftest*
2700 ac_cv_prog_CPP="$CPP"
2702 CPP="$ac_cv_prog_CPP"
2703 else
2704 ac_cv_prog_CPP="$CPP"
2706 echo "$ac_t""$CPP" 1>&6
2709 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2710 echo "configure:2711: checking for cstdio to use" >&5
2711 # Check whether --enable-cstdio or --disable-cstdio was given.
2712 if test "${enable_cstdio+set}" = set; then
2713 enableval="$enable_cstdio"
2714 if test x$enable_cstdio = xno; then
2715 enable_cstdio=stdio
2717 else
2718 enable_cstdio=stdio
2722 enable_cstdio_flag=$enable_cstdio
2724 case x${enable_cstdio_flag} in
2725 xlibio)
2726 CSTDIO_H=config/c_io_libio.h
2727 BASIC_FILE_H=config/basic_file_libio.h
2728 BASIC_FILE_CC=config/basic_file_libio.cc
2729 echo "$ac_t""libio" 1>&6
2731 # see if we are on a system with libio native (ie, linux)
2732 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2733 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2734 echo "configure:2735: checking for libio.h" >&5
2735 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2737 else
2738 cat > conftest.$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2741 #include <libio.h>
2743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2744 { (eval echo configure:2745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2746 if test -z "$ac_err"; then
2747 rm -rf conftest*
2748 eval "ac_cv_header_$ac_safe=yes"
2749 else
2750 echo "$ac_err" >&5
2751 echo "configure: failed program was:" >&5
2752 cat conftest.$ac_ext >&5
2753 rm -rf conftest*
2754 eval "ac_cv_header_$ac_safe=no"
2756 rm -f conftest*
2758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2759 echo "$ac_t""yes" 1>&6
2760 has_libio=yes
2761 else
2762 echo "$ac_t""no" 1>&6
2763 has_libio=no
2767 # Need to check and see what version of glibc is being used. If
2768 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2769 # compile most of libio for linux systems.
2770 if test x$has_libio = x"yes"; then
2771 case "$target" in
2772 *-*-linux*)
2773 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2774 echo "configure:2775: checking for glibc version >= 2.2" >&5
2775 cat > conftest.$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2779 #include <features.h>
2780 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2782 #endif
2785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2786 egrep "ok" >/dev/null 2>&1; then
2787 rm -rf conftest*
2788 glibc_satisfactory=yes
2789 else
2790 rm -rf conftest*
2791 glibc_satisfactory=no
2793 rm -f conftest*
2795 echo "$ac_t""$glibc_satisfactory" 1>&6
2797 esac
2799 # XXX at the moment, admit defeat and force the recompilation
2800 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2801 glibc_satisfactory=no
2803 if test x$glibc_satisfactory = x"yes"; then
2804 need_libio=no
2805 need_wlibio=no
2806 else
2807 need_libio=yes
2808 # bkoz XXX need to add checks to enable this
2809 # pme XXX here's a first pass at such a check
2810 if test x$enable_c_mbchar != xno; then
2811 need_wlibio=yes
2812 else
2813 need_wlibio=no
2817 else
2818 # Using libio, but <libio.h> doesn't exist on the target system. . .
2819 need_libio=yes
2820 # bkoz XXX need to add checks to enable this
2821 # pme XXX here's a first pass at such a check
2822 if test x$enable_c_mbchar != xno; then
2823 need_wlibio=yes
2824 else
2825 need_wlibio=no
2829 xstdio | x | xno | xnone | xyes)
2830 # default
2831 CSTDIO_H=config/c_io_stdio.h
2832 BASIC_FILE_H=config/basic_file_stdio.h
2833 BASIC_FILE_CC=config/basic_file_stdio.cc
2834 echo "$ac_t""stdio" 1>&6
2836 # We're not using stdio.
2837 need_libio=no
2838 need_wlibio=no
2841 echo "$enable_cstdio is an unknown io package" 1>&2
2842 exit 1
2844 esac
2849 # 2000-08-04 bkoz hack
2850 CCODECVT_C=config/c_io_libio_codecvt.c
2852 # 2000-08-04 bkoz hack
2856 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2857 GLIBCPP_BUILD_LIBIO_TRUE=
2858 GLIBCPP_BUILD_LIBIO_FALSE='#'
2859 else
2860 GLIBCPP_BUILD_LIBIO_TRUE='#'
2861 GLIBCPP_BUILD_LIBIO_FALSE=
2865 if test "$need_libio" = yes; then
2866 GLIBCPP_NEED_LIBIO_TRUE=
2867 GLIBCPP_NEED_LIBIO_FALSE='#'
2868 else
2869 GLIBCPP_NEED_LIBIO_TRUE='#'
2870 GLIBCPP_NEED_LIBIO_FALSE=
2874 if test "$need_wlibio" = yes; then
2875 GLIBCPP_NEED_WLIBIO_TRUE=
2876 GLIBCPP_NEED_WLIBIO_FALSE='#'
2877 else
2878 GLIBCPP_NEED_WLIBIO_TRUE='#'
2879 GLIBCPP_NEED_WLIBIO_FALSE=
2881 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2882 libio_la=../libio/libio.la
2883 else
2884 libio_la=
2889 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2890 echo "configure:2891: checking for clocale to use" >&5
2891 # Check whether --enable-clocale or --disable-clocale was given.
2892 if test "${enable_clocale+set}" = set; then
2893 enableval="$enable_clocale"
2894 if test x$enable_clocale = xno; then
2895 enable_clocale=generic
2897 else
2898 enable_clocale=generic
2902 enable_clocale_flag=$enable_clocale
2904 case x${enable_clocale_flag} in
2905 xgnu)
2906 CLOCALE_H=config/c_locale_gnu.h
2907 CLOCALE_CC=config/c_locale_gnu.cc
2908 echo "$ac_t""gnu" 1>&6
2910 xgeneric)
2911 CLOCALE_H=config/c_locale_generic.h
2912 CLOCALE_CC=config/c_locale_generic.cc
2913 echo "$ac_t""generic" 1>&6
2916 echo "$enable_clocale is an unknown locale package" 1>&2
2917 exit 1
2919 esac
2924 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
2925 if test "${enable_c_mbchar+set}" = set; then
2926 enableval="$enable_c_mbchar"
2927 case "$enableval" in
2928 yes) enable_c_mbchar=yes ;;
2929 no) enable_c_mbchar=no ;;
2930 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
2931 esac
2932 else
2933 enable_c_mbchar=yes
2937 # Check whether --enable-long-long or --disable-long-long was given.
2938 if test "${enable_long_long+set}" = set; then
2939 enableval="$enable_long_long"
2940 case "$enableval" in
2941 yes) enable_long_long=yes ;;
2942 no) enable_long_long=no ;;
2943 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
2944 esac
2945 else
2946 enable_long_long=no
2949 # Allow use of os-dependent settings, so that macros that turn on
2950 # C99 capabilities can be defined and used in a consistent way.
2951 OS_INC_PATH=${srcdir}/$os_include_dir
2952 ac_test_CFLAGS="${CFLAGS+set}"
2953 ac_save_CFLAGS="$CFLAGS"
2954 CFLAGS="-I$OS_INC_PATH"
2956 # Check for the existence of functions used if long long is enabled.
2957 echo $ac_n "checking for strtoll""... $ac_c" 1>&6
2958 echo "configure:2959: checking for strtoll" >&5
2959 if eval "test \"`echo '$''{'ac_cv_func_strtoll'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2961 else
2962 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2965 /* System header to define __stub macros and hopefully few prototypes,
2966 which can conflict with char strtoll(); below. */
2967 #include <assert.h>
2968 /* Override any gcc2 internal prototype to avoid an error. */
2969 /* We use char because int might match the return type of a gcc2
2970 builtin and then its argument prototype would still apply. */
2971 char strtoll();
2973 int main() {
2975 /* The GNU C library defines this for functions which it implements
2976 to always fail with ENOSYS. Some functions are actually named
2977 something starting with __ and the normal name is an alias. */
2978 #if defined (__stub_strtoll) || defined (__stub___strtoll)
2979 choke me
2980 #else
2981 strtoll();
2982 #endif
2984 ; return 0; }
2986 if { (eval echo configure:2987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2987 rm -rf conftest*
2988 eval "ac_cv_func_strtoll=yes"
2989 else
2990 echo "configure: failed program was:" >&5
2991 cat conftest.$ac_ext >&5
2992 rm -rf conftest*
2993 eval "ac_cv_func_strtoll=no"
2995 rm -f conftest*
2998 if eval "test \"`echo '$ac_cv_func_'strtoll`\" = yes"; then
2999 echo "$ac_t""yes" 1>&6
3001 else
3002 echo "$ac_t""no" 1>&6
3003 ac_strtoll=no
3006 echo $ac_n "checking for strtoull""... $ac_c" 1>&6
3007 echo "configure:3008: checking for strtoull" >&5
3008 if eval "test \"`echo '$''{'ac_cv_func_strtoull'+set}'`\" = set"; then
3009 echo $ac_n "(cached) $ac_c" 1>&6
3010 else
3011 cat > conftest.$ac_ext <<EOF
3012 #line 3013 "configure"
3013 #include "confdefs.h"
3014 /* System header to define __stub macros and hopefully few prototypes,
3015 which can conflict with char strtoull(); below. */
3016 #include <assert.h>
3017 /* Override any gcc2 internal prototype to avoid an error. */
3018 /* We use char because int might match the return type of a gcc2
3019 builtin and then its argument prototype would still apply. */
3020 char strtoull();
3022 int main() {
3024 /* The GNU C library defines this for functions which it implements
3025 to always fail with ENOSYS. Some functions are actually named
3026 something starting with __ and the normal name is an alias. */
3027 #if defined (__stub_strtoull) || defined (__stub___strtoull)
3028 choke me
3029 #else
3030 strtoull();
3031 #endif
3033 ; return 0; }
3035 if { (eval echo configure:3036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3036 rm -rf conftest*
3037 eval "ac_cv_func_strtoull=yes"
3038 else
3039 echo "configure: failed program was:" >&5
3040 cat conftest.$ac_ext >&5
3041 rm -rf conftest*
3042 eval "ac_cv_func_strtoull=no"
3044 rm -f conftest*
3047 if eval "test \"`echo '$ac_cv_func_'strtoull`\" = yes"; then
3048 echo "$ac_t""yes" 1>&6
3050 else
3051 echo "$ac_t""no" 1>&6
3052 ac_strtoull=no
3056 # Check for lldiv_t, et. al.
3057 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3058 echo "configure:3059: checking for lldiv_t declaration" >&5
3059 if eval "test \"`echo '$''{'glibcpp_lldiv_t_use'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3061 else
3063 cat > conftest.$ac_ext <<EOF
3064 #line 3065 "configure"
3065 #include "confdefs.h"
3066 #include <bits/os_defines.h>
3067 #include <stdlib.h>
3068 int main() {
3069 lldiv_t mydivt;
3070 ; return 0; }
3072 if { (eval echo configure:3073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3073 rm -rf conftest*
3074 glibcpp_lldiv_t_use=yes
3075 else
3076 echo "configure: failed program was:" >&5
3077 cat conftest.$ac_ext >&5
3078 rm -rf conftest*
3079 glibcpp_lldiv_t_use=no
3081 rm -f conftest*
3085 echo "$ac_t""$glibcpp_lldiv_t_use" 1>&6
3086 if test x$glibcpp_lldiv_t_use = x"yes"; then
3087 cat >> confdefs.h <<\EOF
3088 #define HAVE_LLDIV_T 1
3093 echo $ac_n "checking for enabled long long""... $ac_c" 1>&6
3094 echo "configure:3095: checking for enabled long long" >&5
3095 if test x"$ac_strtoll" = xno || test x"$ac_strtoull" = xno; then
3096 enable_long_long=no;
3097 fi;
3098 echo "$ac_t""$enable_long_long" 1>&6
3100 # Option parsed, now set things appropriately
3101 if test x"$enable_long_long" = xyes; then
3102 cat >> confdefs.h <<\EOF
3103 #define _GLIBCPP_USE_LONG_LONG 1
3108 # Reset CFLAGS
3109 CFLAGS="$ac_save_CFLAGS"
3111 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3112 echo "configure:3113: checking for c header strategy to use" >&5
3113 # Check whether --enable-cheaders or --disable-cheaders was given.
3114 if test "${enable_cheaders+set}" = set; then
3115 enableval="$enable_cheaders"
3117 case "$enableval" in
3119 enable_cheaders=c
3121 c_std)
3122 enable_cheaders=c_std
3124 c_shadow)
3125 enable_cheaders=c_shadow
3127 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3129 esac
3130 else
3131 enable_cheaders=c_std
3134 echo "$ac_t""$enable_cheaders" 1>&6
3136 case "$enable_cheaders" in
3137 c_shadow)
3138 CSHADOW_FLAGS="-fno-builtin"
3139 C_INCLUDE_DIR='${top_srcdir}/include/c_shadow'
3140 cat >> confdefs.h <<\EOF
3141 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3145 c_std)
3146 CSHADOW_FLAGS=""
3147 C_INCLUDE_DIR='${top_srcdir}/include/c_std'
3150 CSHADOW_FLAGS=""
3151 C_INCLUDE_DIR='${top_srcdir}/include/c'
3153 esac
3159 if test "$enable_cheaders" = c_shadow; then
3160 GLIBCPP_USE_CSHADOW_TRUE=
3161 GLIBCPP_USE_CSHADOW_FALSE='#'
3162 else
3163 GLIBCPP_USE_CSHADOW_TRUE='#'
3164 GLIBCPP_USE_CSHADOW_FALSE=
3168 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
3169 echo "configure:3170: checking for threads package to use" >&5
3170 # Check whether --enable-threads or --disable-threads was given.
3171 if test "${enable_threads+set}" = set; then
3172 enableval="$enable_threads"
3173 if test x$enable_threads = xno; then
3174 enable_threads=''
3176 else
3177 enable_threads=''
3181 enable_threads_flag=$enable_threads
3183 case x${enable_threads_flag} in
3184 x | xno | xnone)
3185 # No threads
3186 target_thread_file='single'
3188 xyes)
3189 # default
3190 target_thread_file='posix'
3192 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
3193 xsolaris | xwin32 | xdce | xvxworks)
3194 target_thread_file=$enable_threads_flag
3197 echo "$enable_threads is an unknown thread package" 1>&2
3198 exit 1
3200 esac
3202 THREADH=
3203 case "$target_thread_file" in
3204 no | none | single)
3205 THREADH=threads-no.h
3207 posix | pthreads)
3208 THREADH=threads-posix.h
3210 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3211 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3214 { echo "configure: error: $THREADS is an unsupported/unknown thread package" 1>&2; exit 1; }
3216 esac
3217 echo "$ac_t""$THREADH" 1>&6
3220 if test $THREADH != threads-no.h; then
3221 cat >> confdefs.h <<\EOF
3222 #define _GLIBCPP_USE_THREADS 1
3227 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3228 if test "${enable_cxx_flags+set}" = set; then
3229 enableval="$enable_cxx_flags"
3230 case "x$enableval" in
3231 xyes)
3232 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3233 xno|x)
3234 enable_cxx_flags='' ;;
3236 enable_cxx_flags="$enableval" ;;
3237 esac
3238 else
3239 enable_cxx_flags='none'
3243 if test "$enable_cxx_flags" = "none"; then
3244 enable_cxx_flags='';
3247 if test -n "$enable_cxx_flags"; then
3248 for f in $enable_cxx_flags; do
3249 case "$f" in
3250 -fhonor-std) ;;
3251 -*) ;;
3252 *) # and we're trying to pass /what/ exactly?
3253 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3254 esac
3255 done
3257 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3261 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3262 echo "configure:3263: checking for exception model to use" >&5
3264 ac_ext=C
3265 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3266 ac_cpp='$CXXCPP $CPPFLAGS'
3267 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3268 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3269 cross_compiling=$ac_cv_prog_cxx_cross
3271 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3272 if test "${enable_sjlj_exceptions+set}" = set; then
3273 enableval="$enable_sjlj_exceptions"
3275 else
3276 cat > conftest.$ac_ext << EOF
3277 #line 3278 "configure"
3278 struct S { ~S(); };
3279 void bar();
3280 void foo()
3282 S s;
3283 bar();
3286 old_CXXFLAGS="$CXXFLAGS"
3287 CXXFLAGS=-S
3288 if { (eval echo configure:3289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3289 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3290 enable_sjlj_exceptions=yes
3291 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3292 enable_sjlj_exceptions=no
3295 CXXFLAGS="$old_CXXFLAGS"
3296 rm -f conftest*
3299 if test x$enable_sjlj_exceptions = xyes; then
3300 cat >> confdefs.h <<\EOF
3301 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3304 ac_exception_model_name=sjlj
3305 elif test x$enable_sjlj_exceptions = xno; then
3306 ac_exception_model_name="call frame"
3307 else
3308 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3310 ac_ext=c
3311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3312 ac_cpp='$CPP $CPPFLAGS'
3313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3315 cross_compiling=$ac_cv_prog_cc_cross
3317 echo "$ac_t""$ac_exception_model_name" 1>&6
3320 if test -n "$with_cross_host"; then
3322 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3323 # may not work correctly, because the compiler may not be able to
3324 # link executables.
3325 xcompiling=1
3326 NATIVE=no
3328 # If Canadian cross, then don't pick up tools from the build
3329 # directory.
3330 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3331 CANADIAN=yes
3332 NULL_TARGET=yes
3333 else
3334 CANADIAN=no
3335 NULL_TARGET=no
3338 case "$target_alias" in
3339 *-linux*)
3340 # Construct linux crosses by hand, eliminating bits that need ld...
3341 # Check for available headers.
3342 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3343 machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
3344 float.h inttypes.h
3346 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3348 echo "configure:3349: checking for $ac_hdr" >&5
3349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3351 else
3352 cat > conftest.$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3355 #include <$ac_hdr>
3357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3358 { (eval echo configure:3359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3360 if test -z "$ac_err"; then
3361 rm -rf conftest*
3362 eval "ac_cv_header_$ac_safe=yes"
3363 else
3364 echo "$ac_err" >&5
3365 echo "configure: failed program was:" >&5
3366 cat conftest.$ac_ext >&5
3367 rm -rf conftest*
3368 eval "ac_cv_header_$ac_safe=no"
3370 rm -f conftest*
3372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3373 echo "$ac_t""yes" 1>&6
3374 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3375 cat >> confdefs.h <<EOF
3376 #define $ac_tr_hdr 1
3379 else
3380 echo "$ac_t""no" 1>&6
3382 done
3385 # GLIBCPP_CHECK_COMPILER_FEATURES
3386 SECTION_FLAGS='-ffunction-sections -fdata-sections'
3389 # If we're not using GNU ld, then there's no point in even trying these
3390 # tests. Check for that first. We should have already tested for gld
3391 # by now (in libtool), but require it now just to be safe...
3392 SECTION_LDFLAGS=''
3393 OPT_LDFLAGS=''
3396 # Set --gc-sections.
3397 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3398 # GNU ld it is! Joy and bunny rabbits!
3400 # All these tests are for C++; save the language and the compiler flags.
3401 # Need to do this so that g++ won't try to link in libstdc++
3402 ac_test_CFLAGS="${CFLAGS+set}"
3403 ac_save_CFLAGS="$CFLAGS"
3404 CFLAGS='-x c++ -Wl,--gc-sections'
3406 # Check for -Wl,--gc-sections
3407 # XXX This test is broken at the moment, as symbols required for
3408 # linking are now in libsupc++ (not built yet.....). In addition,
3409 # this test has cored on solaris in the past. In addition,
3410 # --gc-sections doesn't really work at the moment (keeps on discarding
3411 # used sections, first .eh_frame and now some of the glibc sections for
3412 # iconv). Bzzzzt. Thanks for playing, maybe next time.
3413 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3414 echo "configure:3415: checking for ld that supports -Wl,--gc-sections" >&5
3415 if test "$cross_compiling" = yes; then
3416 ac_sectionLDflags=yes
3417 else
3418 cat > conftest.$ac_ext <<EOF
3419 #line 3420 "configure"
3420 #include "confdefs.h"
3422 int main(void)
3424 try { throw 1; }
3425 catch (...) { };
3426 return 0;
3430 if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3431 then
3432 ac_sectionLDflags=yes
3433 else
3434 echo "configure: failed program was:" >&5
3435 cat conftest.$ac_ext >&5
3436 rm -fr conftest*
3437 ac_sectionLFflags=no
3439 rm -fr conftest*
3442 if test "$ac_test_CFLAGS" = set; then
3443 CFLAGS="$ac_save_CFLAGS"
3444 else
3445 # this is the suspicious part
3446 CFLAGS=''
3448 if test "$ac_sectionLDflags" = "yes"; then
3449 SECTION_LDFLAGS='-Wl,--gc-sections'
3451 echo "$ac_t""$ac_sectionLDflags" 1>&6
3454 # Set linker optimization flags.
3455 if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
3456 OPT_LDFLAGS='-Wl,-O1'
3462 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3463 # GLIBCPP_CHECK_MATH_SUPPORT
3464 cat >> confdefs.h <<\EOF
3465 #define HAVE_ACOSF 1
3468 cat >> confdefs.h <<\EOF
3469 #define HAVE_ASINF 1
3472 cat >> confdefs.h <<\EOF
3473 #define HAVE_ATAN2F 1
3476 cat >> confdefs.h <<\EOF
3477 #define HAVE_ATANF 1
3480 cat >> confdefs.h <<\EOF
3481 #define HAVE_CEILF 1
3484 cat >> confdefs.h <<\EOF
3485 #define HAVE_COPYSIGN 1
3488 cat >> confdefs.h <<\EOF
3489 #define HAVE_COPYSIGNF 1
3492 cat >> confdefs.h <<\EOF
3493 #define HAVE_COSF 1
3496 cat >> confdefs.h <<\EOF
3497 #define HAVE_COSHF 1
3500 cat >> confdefs.h <<\EOF
3501 #define HAVE_EXPF 1
3504 cat >> confdefs.h <<\EOF
3505 #define HAVE_FABSF 1
3508 cat >> confdefs.h <<\EOF
3509 #define HAVE_FINITE 1
3512 cat >> confdefs.h <<\EOF
3513 #define HAVE_FINITEF 1
3516 cat >> confdefs.h <<\EOF
3517 #define HAVE_FLOORF 1
3520 cat >> confdefs.h <<\EOF
3521 #define HAVE_FMODF 1
3524 cat >> confdefs.h <<\EOF
3525 #define HAVE_FREXPF 1
3528 cat >> confdefs.h <<\EOF
3529 #define HAVE_ISINF 1
3532 cat >> confdefs.h <<\EOF
3533 #define HAVE_ISINFF 1
3536 cat >> confdefs.h <<\EOF
3537 #define HAVE_ISNAN 1
3540 cat >> confdefs.h <<\EOF
3541 #define HAVE_ISNANF 1
3544 cat >> confdefs.h <<\EOF
3545 #define HAVE_LDEXPF 1
3548 cat >> confdefs.h <<\EOF
3549 #define HAVE_LOG10F 1
3552 cat >> confdefs.h <<\EOF
3553 #define HAVE_LOGF 1
3556 cat >> confdefs.h <<\EOF
3557 #define HAVE_MODFF 1
3560 cat >> confdefs.h <<\EOF
3561 #define HAVE_POWF 1
3564 cat >> confdefs.h <<\EOF
3565 #define HAVE_SINCOS 1
3568 cat >> confdefs.h <<\EOF
3569 #define HAVE_SINCOSF 1
3572 cat >> confdefs.h <<\EOF
3573 #define HAVE_SINF 1
3576 cat >> confdefs.h <<\EOF
3577 #define HAVE_SINHF 1
3580 cat >> confdefs.h <<\EOF
3581 #define HAVE_SQRTF 1
3584 cat >> confdefs.h <<\EOF
3585 #define HAVE_TANF 1
3588 cat >> confdefs.h <<\EOF
3589 #define HAVE_TANHF 1
3593 # At some point, we should differentiate between architectures
3594 # like x86, which have long double versions, and alpha/powerpc/etc.,
3595 # which don't. For the time being, punt.
3596 if test x"long_double_math_on_this_cpu" = x"yes"; then
3597 cat >> confdefs.h <<\EOF
3598 #define HAVE_ACOSL 1
3601 cat >> confdefs.h <<\EOF
3602 #define HAVE_ASINL 1
3605 cat >> confdefs.h <<\EOF
3606 #define HAVE_ATAN2L 1
3609 cat >> confdefs.h <<\EOF
3610 #define HAVE_ATANL 1
3613 cat >> confdefs.h <<\EOF
3614 #define HAVE_CEILL 1
3617 cat >> confdefs.h <<\EOF
3618 #define HAVE_COPYSIGNL 1
3621 cat >> confdefs.h <<\EOF
3622 #define HAVE_COSL 1
3625 cat >> confdefs.h <<\EOF
3626 #define HAVE_COSHL 1
3629 cat >> confdefs.h <<\EOF
3630 #define HAVE_EXPL 1
3633 cat >> confdefs.h <<\EOF
3634 #define HAVE_FABSL 1
3637 cat >> confdefs.h <<\EOF
3638 #define HAVE_FINITEL 1
3641 cat >> confdefs.h <<\EOF
3642 #define HAVE_FLOORL 1
3645 cat >> confdefs.h <<\EOF
3646 #define HAVE_FMODL 1
3649 cat >> confdefs.h <<\EOF
3650 #define HAVE_FREXPL 1
3653 cat >> confdefs.h <<\EOF
3654 #define HAVE_ISINFL 1
3657 cat >> confdefs.h <<\EOF
3658 #define HAVE_ISNANL 1
3661 cat >> confdefs.h <<\EOF
3662 #define HAVE_LDEXPL 1
3665 cat >> confdefs.h <<\EOF
3666 #define HAVE_LOG10L 1
3669 cat >> confdefs.h <<\EOF
3670 #define HAVE_LOGL 1
3673 cat >> confdefs.h <<\EOF
3674 #define HAVE_MODFL 1
3677 cat >> confdefs.h <<\EOF
3678 #define HAVE_POWL 1
3681 cat >> confdefs.h <<\EOF
3682 #define HAVE_SINCOSL 1
3685 cat >> confdefs.h <<\EOF
3686 #define HAVE_SINL 1
3689 cat >> confdefs.h <<\EOF
3690 #define HAVE_SINHL 1
3693 cat >> confdefs.h <<\EOF
3694 #define HAVE_SQRTL 1
3697 cat >> confdefs.h <<\EOF
3698 #define HAVE_TANL 1
3701 cat >> confdefs.h <<\EOF
3702 #define HAVE_TANHL 1
3707 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3708 echo "configure:3709: checking for main in -lm" >&5
3709 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
3712 else
3713 ac_save_LIBS="$LIBS"
3714 LIBS="-lm $LIBS"
3715 cat > conftest.$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3719 int main() {
3720 main()
3721 ; return 0; }
3723 if { (eval echo configure:3724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3724 rm -rf conftest*
3725 eval "ac_cv_lib_$ac_lib_var=yes"
3726 else
3727 echo "configure: failed program was:" >&5
3728 cat conftest.$ac_ext >&5
3729 rm -rf conftest*
3730 eval "ac_cv_lib_$ac_lib_var=no"
3732 rm -f conftest*
3733 LIBS="$ac_save_LIBS"
3736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3737 echo "$ac_t""yes" 1>&6
3738 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3739 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3740 cat >> confdefs.h <<EOF
3741 #define $ac_tr_lib 1
3744 LIBS="-lm $LIBS"
3746 else
3747 echo "$ac_t""no" 1>&6
3750 for ac_func in nan hypot hypotf atan2f expf copysignf
3752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3753 echo "configure:3754: checking for $ac_func" >&5
3754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3755 echo $ac_n "(cached) $ac_c" 1>&6
3756 else
3757 cat > conftest.$ac_ext <<EOF
3758 #line 3759 "configure"
3759 #include "confdefs.h"
3760 /* System header to define __stub macros and hopefully few prototypes,
3761 which can conflict with char $ac_func(); below. */
3762 #include <assert.h>
3763 /* Override any gcc2 internal prototype to avoid an error. */
3764 /* We use char because int might match the return type of a gcc2
3765 builtin and then its argument prototype would still apply. */
3766 char $ac_func();
3768 int main() {
3770 /* The GNU C library defines this for functions which it implements
3771 to always fail with ENOSYS. Some functions are actually named
3772 something starting with __ and the normal name is an alias. */
3773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3774 choke me
3775 #else
3776 $ac_func();
3777 #endif
3779 ; return 0; }
3781 if { (eval echo configure:3782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3782 rm -rf conftest*
3783 eval "ac_cv_func_$ac_func=yes"
3784 else
3785 echo "configure: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3787 rm -rf conftest*
3788 eval "ac_cv_func_$ac_func=no"
3790 rm -f conftest*
3793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3794 echo "$ac_t""yes" 1>&6
3795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3796 cat >> confdefs.h <<EOF
3797 #define $ac_tr_func 1
3800 else
3801 echo "$ac_t""no" 1>&6
3802 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
3804 done
3808 USE_COMPLEX_LONG_DOUBLE=no
3809 if test x$ac_cv_func_atan2l = x"yes" \
3810 && test x$ac_cv_func_copysignl = x"yes"; then
3811 USE_COMPLEX_LONG_DOUBLE=yes
3812 for ac_func in hypotl signbitl
3814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3815 echo "configure:3816: checking for $ac_func" >&5
3816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
3818 else
3819 cat > conftest.$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3822 /* System header to define __stub macros and hopefully few prototypes,
3823 which can conflict with char $ac_func(); below. */
3824 #include <assert.h>
3825 /* Override any gcc2 internal prototype to avoid an error. */
3826 /* We use char because int might match the return type of a gcc2
3827 builtin and then its argument prototype would still apply. */
3828 char $ac_func();
3830 int main() {
3832 /* The GNU C library defines this for functions which it implements
3833 to always fail with ENOSYS. Some functions are actually named
3834 something starting with __ and the normal name is an alias. */
3835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3836 choke me
3837 #else
3838 $ac_func();
3839 #endif
3841 ; return 0; }
3843 if { (eval echo configure:3844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3844 rm -rf conftest*
3845 eval "ac_cv_func_$ac_func=yes"
3846 else
3847 echo "configure: failed program was:" >&5
3848 cat conftest.$ac_ext >&5
3849 rm -rf conftest*
3850 eval "ac_cv_func_$ac_func=no"
3852 rm -f conftest*
3855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3856 echo "$ac_t""yes" 1>&6
3857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3858 cat >> confdefs.h <<EOF
3859 #define $ac_tr_func 1
3862 else
3863 echo "$ac_t""no" 1>&6
3864 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
3866 done
3876 echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
3877 echo "configure:3878: checking for GNU C++ __complex__ support" >&5
3878 if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
3879 echo $ac_n "(cached) $ac_c" 1>&6
3880 else
3883 ac_ext=C
3884 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3885 ac_cpp='$CXXCPP $CPPFLAGS'
3886 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3887 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3888 cross_compiling=$ac_cv_prog_cxx_cross
3890 cat > conftest.$ac_ext <<EOF
3891 #line 3892 "configure"
3892 #include "confdefs.h"
3893 struct dcomplex { __complex__ double x; }; \
3894 dcomplex f(const dcomplex& x) { return dcomplex(x); }
3895 int main() {
3897 dcomplex x; f(x);
3898 ; return 0; }
3900 if { (eval echo configure:3901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3901 rm -rf conftest*
3902 glibcpp_cv_complex=ok
3903 else
3904 echo "configure: failed program was:" >&5
3905 cat conftest.$ac_ext >&5
3906 rm -rf conftest*
3907 glibcpp_cv_complex=buggy
3910 rm -f conftest*
3911 ac_ext=c
3912 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3913 ac_cpp='$CPP $CPPFLAGS'
3914 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3915 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3916 cross_compiling=$ac_cv_prog_cc_cross
3921 echo "$ac_t""$glibcpp_cv_complex" 1>&6
3922 if test $glibcpp_cv_complex = buggy; then
3923 cat >> confdefs.h <<\EOF
3924 #define _GLIBCPP_BUGGY_COMPLEX 1
3929 echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
3930 echo "configure:3931: checking for GNU C++ __complex__ float support" >&5
3931 if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
3932 echo $ac_n "(cached) $ac_c" 1>&6
3933 else
3936 ac_ext=C
3937 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3938 ac_cpp='$CXXCPP $CPPFLAGS'
3939 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3940 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3941 cross_compiling=$ac_cv_prog_cxx_cross
3943 rm -f conftest.h
3944 cat > conftest.h <<EOB
3946 // Check for buggy __complex__ that causes ICE in most versions of egcs
3947 // and gcc-2.95.x on certain platforms (eg., x86-win32).
3949 // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
3950 // more info on the bug itself.
3952 struct
3953 float_complex
3955 __complex__ float m_value;
3956 float_complex (float = 0.0f, float = 0.0f);
3957 float_complex (__complex__ float val) : m_value (val) {}
3958 float_complex foo (const float_complex &val)
3959 { return float_complex (~val.m_value); }
3962 cat > conftest.$ac_ext <<EOF
3963 #line 3964 "configure"
3964 #include "confdefs.h"
3965 #include "conftest.h"
3966 int main() {
3968 ; return 0; }
3970 if { (eval echo configure:3971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3971 rm -rf conftest*
3972 glibcpp_cv_float_complex=ok
3973 else
3974 echo "configure: failed program was:" >&5
3975 cat conftest.$ac_ext >&5
3976 rm -rf conftest*
3977 glibcpp_cv_float_complex=buggy
3980 rm -f conftest*
3981 ac_ext=c
3982 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3983 ac_cpp='$CPP $CPPFLAGS'
3984 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3985 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3986 cross_compiling=$ac_cv_prog_cc_cross
3991 echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
3992 if test $glibcpp_cv_float_complex = buggy; then
3993 cat >> confdefs.h <<\EOF
3994 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
4001 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4002 echo "configure:4003: checking for mbstate_t" >&5
4003 cat > conftest.$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4006 #include <wchar.h>
4007 int main() {
4008 mbstate_t teststate;
4009 ; return 0; }
4011 if { (eval echo configure:4012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4012 rm -rf conftest*
4013 have_mbstate_t=yes
4014 else
4015 echo "configure: failed program was:" >&5
4016 cat conftest.$ac_ext >&5
4017 rm -rf conftest*
4018 have_mbstate_t=no
4020 rm -f conftest*
4021 echo "$ac_t""$have_mbstate_t" 1>&6
4022 if test x"$have_mbstate_t" = xyes; then
4023 cat >> confdefs.h <<\EOF
4024 #define HAVE_MBSTATE_T 1
4029 for ac_hdr in wchar.h
4031 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4032 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4033 echo "configure:4034: checking for $ac_hdr" >&5
4034 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4035 echo $ac_n "(cached) $ac_c" 1>&6
4036 else
4037 cat > conftest.$ac_ext <<EOF
4038 #line 4039 "configure"
4039 #include "confdefs.h"
4040 #include <$ac_hdr>
4042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4043 { (eval echo configure:4044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4045 if test -z "$ac_err"; then
4046 rm -rf conftest*
4047 eval "ac_cv_header_$ac_safe=yes"
4048 else
4049 echo "$ac_err" >&5
4050 echo "configure: failed program was:" >&5
4051 cat conftest.$ac_ext >&5
4052 rm -rf conftest*
4053 eval "ac_cv_header_$ac_safe=no"
4055 rm -f conftest*
4057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4058 echo "$ac_t""yes" 1>&6
4059 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4060 cat >> confdefs.h <<EOF
4061 #define $ac_tr_hdr 1
4063 ac_has_wchar_h=yes
4064 else
4065 echo "$ac_t""no" 1>&6
4066 ac_has_wchar_h=no
4068 done
4070 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4071 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4072 echo "configure:4073: checking for wctype.h" >&5
4073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4075 else
4076 cat > conftest.$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4079 #include <wctype.h>
4081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4082 { (eval echo configure:4083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4084 if test -z "$ac_err"; then
4085 rm -rf conftest*
4086 eval "ac_cv_header_$ac_safe=yes"
4087 else
4088 echo "$ac_err" >&5
4089 echo "configure: failed program was:" >&5
4090 cat conftest.$ac_ext >&5
4091 rm -rf conftest*
4092 eval "ac_cv_header_$ac_safe=no"
4094 rm -f conftest*
4096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4097 echo "$ac_t""yes" 1>&6
4098 ac_has_wctype_h=yes
4099 else
4100 echo "$ac_t""no" 1>&6
4101 ac_has_wctype_h=no
4105 if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
4106 && test x"$enable_c_mbchar" != xno; then
4108 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4109 echo "configure:4110: checking for WCHAR_MIN and WCHAR_MAX" >&5
4110 cat > conftest.$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4113 #include <wchar.h>
4114 int main() {
4115 int i = WCHAR_MIN; int j = WCHAR_MAX;
4116 ; return 0; }
4118 if { (eval echo configure:4119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4119 rm -rf conftest*
4120 has_wchar_minmax=yes
4121 else
4122 echo "configure: failed program was:" >&5
4123 cat conftest.$ac_ext >&5
4124 rm -rf conftest*
4125 has_wchar_minmax=no
4127 rm -f conftest*
4128 echo "$ac_t""$has_wchar_minmax" 1>&6
4130 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4131 echo "configure:4132: checking for WEOF" >&5
4132 cat > conftest.$ac_ext <<EOF
4133 #line 4134 "configure"
4134 #include "confdefs.h"
4136 #include <wchar.h>
4137 #include <stddef.h>
4138 int main() {
4139 wint_t i = WEOF;
4140 ; return 0; }
4142 if { (eval echo configure:4143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4143 rm -rf conftest*
4144 has_weof=yes
4145 else
4146 echo "configure: failed program was:" >&5
4147 cat conftest.$ac_ext >&5
4148 rm -rf conftest*
4149 has_weof=no
4151 rm -f conftest*
4152 echo "$ac_t""$has_weof" 1>&6
4154 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
4155 wcsrtombs mbsrtowcs
4157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4158 echo "configure:4159: checking for $ac_func" >&5
4159 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4160 echo $ac_n "(cached) $ac_c" 1>&6
4161 else
4162 cat > conftest.$ac_ext <<EOF
4163 #line 4164 "configure"
4164 #include "confdefs.h"
4165 /* System header to define __stub macros and hopefully few prototypes,
4166 which can conflict with char $ac_func(); below. */
4167 #include <assert.h>
4168 /* Override any gcc2 internal prototype to avoid an error. */
4169 /* We use char because int might match the return type of a gcc2
4170 builtin and then its argument prototype would still apply. */
4171 char $ac_func();
4173 int main() {
4175 /* The GNU C library defines this for functions which it implements
4176 to always fail with ENOSYS. Some functions are actually named
4177 something starting with __ and the normal name is an alias. */
4178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4179 choke me
4180 #else
4181 $ac_func();
4182 #endif
4184 ; return 0; }
4186 if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4187 rm -rf conftest*
4188 eval "ac_cv_func_$ac_func=yes"
4189 else
4190 echo "configure: failed program was:" >&5
4191 cat conftest.$ac_ext >&5
4192 rm -rf conftest*
4193 eval "ac_cv_func_$ac_func=no"
4195 rm -f conftest*
4198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4199 echo "$ac_t""yes" 1>&6
4200 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4201 cat >> confdefs.h <<EOF
4202 #define $ac_tr_func 1
4204 ac_wfuncs=yes
4205 else
4206 echo "$ac_t""no" 1>&6
4207 ac_wfuncs=no
4209 done
4212 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4213 echo "configure:4214: checking for ISO C99 wchar_t support" >&5
4214 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
4215 && test x"$ac_wfuncs" = xyes; then
4216 ac_isoC99_wchar_t=yes
4217 else
4218 ac_isoC99_wchar_t=no
4220 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4222 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4223 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4224 echo "configure:4225: checking for iconv.h" >&5
4225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4227 else
4228 cat > conftest.$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 #include <iconv.h>
4233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4234 { (eval echo configure:4235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4236 if test -z "$ac_err"; then
4237 rm -rf conftest*
4238 eval "ac_cv_header_$ac_safe=yes"
4239 else
4240 echo "$ac_err" >&5
4241 echo "configure: failed program was:" >&5
4242 cat conftest.$ac_ext >&5
4243 rm -rf conftest*
4244 eval "ac_cv_header_$ac_safe=no"
4246 rm -f conftest*
4248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4249 echo "$ac_t""yes" 1>&6
4250 ac_has_iconv_h=yes
4251 else
4252 echo "$ac_t""no" 1>&6
4253 ac_has_iconv_h=no
4256 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4257 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4258 echo "configure:4259: checking for langinfo.h" >&5
4259 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4261 else
4262 cat > conftest.$ac_ext <<EOF
4263 #line 4264 "configure"
4264 #include "confdefs.h"
4265 #include <langinfo.h>
4267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4268 { (eval echo configure:4269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4270 if test -z "$ac_err"; then
4271 rm -rf conftest*
4272 eval "ac_cv_header_$ac_safe=yes"
4273 else
4274 echo "$ac_err" >&5
4275 echo "configure: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
4277 rm -rf conftest*
4278 eval "ac_cv_header_$ac_safe=no"
4280 rm -f conftest*
4282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4283 echo "$ac_t""yes" 1>&6
4284 ac_has_langinfo_h=yes
4285 else
4286 echo "$ac_t""no" 1>&6
4287 ac_has_langinfo_h=no
4291 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4292 echo "configure:4293: checking for iconv in -liconv" >&5
4293 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4295 echo $ac_n "(cached) $ac_c" 1>&6
4296 else
4297 ac_save_LIBS="$LIBS"
4298 LIBS="-liconv $LIBS"
4299 cat > conftest.$ac_ext <<EOF
4300 #line 4301 "configure"
4301 #include "confdefs.h"
4302 /* Override any gcc2 internal prototype to avoid an error. */
4303 /* We use char because int might match the return type of a gcc2
4304 builtin and then its argument prototype would still apply. */
4305 char iconv();
4307 int main() {
4308 iconv()
4309 ; return 0; }
4311 if { (eval echo configure:4312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4312 rm -rf conftest*
4313 eval "ac_cv_lib_$ac_lib_var=yes"
4314 else
4315 echo "configure: failed program was:" >&5
4316 cat conftest.$ac_ext >&5
4317 rm -rf conftest*
4318 eval "ac_cv_lib_$ac_lib_var=no"
4320 rm -f conftest*
4321 LIBS="$ac_save_LIBS"
4324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4325 echo "$ac_t""yes" 1>&6
4326 libiconv="-liconv"
4327 else
4328 echo "$ac_t""no" 1>&6
4331 ac_save_LIBS="$LIBS"
4332 LIBS="$LIBS $libiconv"
4334 for ac_func in iconv_open iconv_close iconv nl_langinfo
4336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4337 echo "configure:4338: checking for $ac_func" >&5
4338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4339 echo $ac_n "(cached) $ac_c" 1>&6
4340 else
4341 cat > conftest.$ac_ext <<EOF
4342 #line 4343 "configure"
4343 #include "confdefs.h"
4344 /* System header to define __stub macros and hopefully few prototypes,
4345 which can conflict with char $ac_func(); below. */
4346 #include <assert.h>
4347 /* Override any gcc2 internal prototype to avoid an error. */
4348 /* We use char because int might match the return type of a gcc2
4349 builtin and then its argument prototype would still apply. */
4350 char $ac_func();
4352 int main() {
4354 /* The GNU C library defines this for functions which it implements
4355 to always fail with ENOSYS. Some functions are actually named
4356 something starting with __ and the normal name is an alias. */
4357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4358 choke me
4359 #else
4360 $ac_func();
4361 #endif
4363 ; return 0; }
4365 if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4366 rm -rf conftest*
4367 eval "ac_cv_func_$ac_func=yes"
4368 else
4369 echo "configure: failed program was:" >&5
4370 cat conftest.$ac_ext >&5
4371 rm -rf conftest*
4372 eval "ac_cv_func_$ac_func=no"
4374 rm -f conftest*
4377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4378 echo "$ac_t""yes" 1>&6
4379 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4380 cat >> confdefs.h <<EOF
4381 #define $ac_tr_func 1
4384 ac_XPG2funcs=yes
4385 else
4386 echo "$ac_t""no" 1>&6
4387 ac_XPG2funcs=no
4389 done
4392 LIBS="$ac_save_LIBS"
4394 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4395 echo "configure:4396: checking for XPG2 wchar_t support" >&5
4396 if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
4397 && test x"$ac_XPG2funcs" = xyes; then
4398 ac_XPG2_wchar_t=yes
4399 else
4400 ac_XPG2_wchar_t=no
4402 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4404 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4405 echo "configure:4406: checking for enabled wchar_t specializations" >&5
4406 if test x"$ac_isoC99_wchar_t" = xyes \
4407 && test x"$ac_XPG2_wchar_t" = xyes; then
4408 cat >> confdefs.h <<\EOF
4409 #define _GLIBCPP_USE_WCHAR_T 1
4412 echo "$ac_t"""yes"" 1>&6
4413 else
4414 echo "$ac_t"""no"" 1>&6
4416 else
4417 echo "configure: warning: wchar_t support disabled." 1>&2
4420 os_include_dir="config/os/gnu-linux"
4421 # GLIBCPP_CHECK_STDLIB_SUPPORT
4422 cat >> confdefs.h <<\EOF
4423 #define HAVE_STRTOF 1
4426 cat >> confdefs.h <<\EOF
4427 #define HAVE_STRTOLD 1
4430 # AC_FUNC_MMAP
4431 cat >> confdefs.h <<\EOF
4432 #define HAVE_MMAP 1
4437 # We assume newlib. This lets us hard-code the functions we know
4438 # we'll have.
4439 cat >> confdefs.h <<\EOF
4440 #define HAVE_FINITE 1
4443 cat >> confdefs.h <<\EOF
4444 #define HAVE_ISNAN 1
4447 cat >> confdefs.h <<\EOF
4448 #define HAVE_ISNANF 1
4451 cat >> confdefs.h <<\EOF
4452 #define HAVE_ISINF 1
4455 cat >> confdefs.h <<\EOF
4456 #define HAVE_ISINFF 1
4460 os_include_dir="config/os/newlib"
4462 cat >> confdefs.h <<\EOF
4463 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
4466 cat >> confdefs.h <<\EOF
4467 #define _GLIBCPP_BUGGY_COMPLEX 1
4470 # need to check for faster f versions of math functions, ie sinf?
4472 esac
4473 else
4475 # We are being configured natively. We can do more elaborate tests
4476 # that include AC_TRY_COMPILE now, as the linker is assumed to be
4477 # working.
4478 xcompiling=0
4479 NATIVE=yes
4480 CANADIAN=no
4481 NULL_TARGET=no
4483 # Check for available headers.
4484 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
4485 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
4487 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4489 echo "configure:4490: checking for $ac_hdr" >&5
4490 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4491 echo $ac_n "(cached) $ac_c" 1>&6
4492 else
4493 cat > conftest.$ac_ext <<EOF
4494 #line 4495 "configure"
4495 #include "confdefs.h"
4496 #include <$ac_hdr>
4498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4499 { (eval echo configure:4500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4501 if test -z "$ac_err"; then
4502 rm -rf conftest*
4503 eval "ac_cv_header_$ac_safe=yes"
4504 else
4505 echo "$ac_err" >&5
4506 echo "configure: failed program was:" >&5
4507 cat conftest.$ac_ext >&5
4508 rm -rf conftest*
4509 eval "ac_cv_header_$ac_safe=no"
4511 rm -f conftest*
4513 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4514 echo "$ac_t""yes" 1>&6
4515 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4516 cat >> confdefs.h <<EOF
4517 #define $ac_tr_hdr 1
4520 else
4521 echo "$ac_t""no" 1>&6
4523 done
4527 # All these tests are for C++; save the language and the compiler flags.
4528 # The CXXFLAGS thing is suspicious, but based on similar bits
4529 # found in GLIBCPP_CONFIGURE.
4531 ac_ext=C
4532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4533 ac_cpp='$CXXCPP $CPPFLAGS'
4534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4536 cross_compiling=$ac_cv_prog_cxx_cross
4538 ac_test_CXXFLAGS="${CXXFLAGS+set}"
4539 ac_save_CXXFLAGS="$CXXFLAGS"
4541 # Check for maintainer-mode bits.
4542 if test x"$USE_MAINTAINER_MODE" = xno; then
4543 WERROR=''
4544 else
4545 WERROR='-Werror'
4548 # Check for -ffunction-sections -fdata-sections
4549 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
4550 echo "configure:4551: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
4551 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
4552 cat > conftest.$ac_ext <<EOF
4553 #line 4554 "configure"
4554 #include "confdefs.h"
4556 int main() {
4557 int foo;
4559 ; return 0; }
4561 if { (eval echo configure:4562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4562 rm -rf conftest*
4563 ac_fdsections=yes
4564 else
4565 echo "configure: failed program was:" >&5
4566 cat conftest.$ac_ext >&5
4567 rm -rf conftest*
4568 ac_fdsections=no
4570 rm -f conftest*
4571 if test "$ac_test_CXXFLAGS" = set; then
4572 CXXFLAGS="$ac_save_CXXFLAGS"
4573 else
4574 # this is the suspicious part
4575 CXXFLAGS=''
4577 if test x"$ac_fdsections" = x"yes" && test x"$enable_debug" = x"no"; then
4578 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4580 echo "$ac_t""$ac_fdsections" 1>&6
4582 ac_ext=c
4583 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4584 ac_cpp='$CPP $CPPFLAGS'
4585 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4586 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4587 cross_compiling=$ac_cv_prog_cc_cross
4593 # If we're not using GNU ld, then there's no point in even trying these
4594 # tests. Check for that first. We should have already tested for gld
4595 # by now (in libtool), but require it now just to be safe...
4596 SECTION_LDFLAGS=''
4597 OPT_LDFLAGS=''
4600 # Set --gc-sections.
4601 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4602 # GNU ld it is! Joy and bunny rabbits!
4604 # All these tests are for C++; save the language and the compiler flags.
4605 # Need to do this so that g++ won't try to link in libstdc++
4606 ac_test_CFLAGS="${CFLAGS+set}"
4607 ac_save_CFLAGS="$CFLAGS"
4608 CFLAGS='-x c++ -Wl,--gc-sections'
4610 # Check for -Wl,--gc-sections
4611 # XXX This test is broken at the moment, as symbols required for
4612 # linking are now in libsupc++ (not built yet.....). In addition,
4613 # this test has cored on solaris in the past. In addition,
4614 # --gc-sections doesn't really work at the moment (keeps on discarding
4615 # used sections, first .eh_frame and now some of the glibc sections for
4616 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4617 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4618 echo "configure:4619: checking for ld that supports -Wl,--gc-sections" >&5
4619 if test "$cross_compiling" = yes; then
4620 ac_sectionLDflags=yes
4621 else
4622 cat > conftest.$ac_ext <<EOF
4623 #line 4624 "configure"
4624 #include "confdefs.h"
4626 int main(void)
4628 try { throw 1; }
4629 catch (...) { };
4630 return 0;
4634 if { (eval echo configure:4635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4635 then
4636 ac_sectionLDflags=yes
4637 else
4638 echo "configure: failed program was:" >&5
4639 cat conftest.$ac_ext >&5
4640 rm -fr conftest*
4641 ac_sectionLFflags=no
4643 rm -fr conftest*
4646 if test "$ac_test_CFLAGS" = set; then
4647 CFLAGS="$ac_save_CFLAGS"
4648 else
4649 # this is the suspicious part
4650 CFLAGS=''
4652 if test "$ac_sectionLDflags" = "yes"; then
4653 SECTION_LDFLAGS='-Wl,--gc-sections'
4655 echo "$ac_t""$ac_sectionLDflags" 1>&6
4658 # Set linker optimization flags.
4659 if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4660 OPT_LDFLAGS='-Wl,-O1'
4668 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
4669 echo "configure:4670: checking for __builtin_abs declaration" >&5
4670 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
4671 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4673 else
4676 ac_ext=C
4677 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4678 ac_cpp='$CXXCPP $CPPFLAGS'
4679 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4680 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4681 cross_compiling=$ac_cv_prog_cxx_cross
4683 cat > conftest.$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4686 #include <math.h>
4687 int main() {
4688 __builtin_abs(0);
4689 ; return 0; }
4691 if { (eval echo configure:4692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4692 rm -rf conftest*
4693 glibcpp_cv_func___builtin_abs_use=yes
4694 else
4695 echo "configure: failed program was:" >&5
4696 cat conftest.$ac_ext >&5
4697 rm -rf conftest*
4698 glibcpp_cv_func___builtin_abs_use=no
4700 rm -f conftest*
4701 ac_ext=c
4702 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4703 ac_cpp='$CPP $CPPFLAGS'
4704 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4705 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4706 cross_compiling=$ac_cv_prog_cc_cross
4712 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
4713 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
4714 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
4715 echo "configure:4716: checking for __builtin_abs linkage" >&5
4716 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
4717 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
4718 echo $ac_n "(cached) $ac_c" 1>&6
4719 else
4721 cat > conftest.$ac_ext <<EOF
4722 #line 4723 "configure"
4723 #include "confdefs.h"
4724 #include <math.h>
4725 int main() {
4726 __builtin_abs(0);
4727 ; return 0; }
4729 if { (eval echo configure:4730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4730 rm -rf conftest*
4731 glibcpp_cv_func___builtin_abs_link=yes
4732 else
4733 echo "configure: failed program was:" >&5
4734 cat conftest.$ac_ext >&5
4735 rm -rf conftest*
4736 glibcpp_cv_func___builtin_abs_link=no
4738 rm -f conftest*
4743 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
4744 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
4745 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4746 cat >> confdefs.h <<EOF
4747 #define ${ac_tr_func} 1
4754 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
4755 echo "configure:4756: checking for __builtin_fabsf declaration" >&5
4756 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
4757 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
4758 echo $ac_n "(cached) $ac_c" 1>&6
4759 else
4762 ac_ext=C
4763 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4764 ac_cpp='$CXXCPP $CPPFLAGS'
4765 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4766 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4767 cross_compiling=$ac_cv_prog_cxx_cross
4769 cat > conftest.$ac_ext <<EOF
4770 #line 4771 "configure"
4771 #include "confdefs.h"
4772 #include <math.h>
4773 int main() {
4774 __builtin_fabsf(0);
4775 ; return 0; }
4777 if { (eval echo configure:4778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4778 rm -rf conftest*
4779 glibcpp_cv_func___builtin_fabsf_use=yes
4780 else
4781 echo "configure: failed program was:" >&5
4782 cat conftest.$ac_ext >&5
4783 rm -rf conftest*
4784 glibcpp_cv_func___builtin_fabsf_use=no
4786 rm -f conftest*
4787 ac_ext=c
4788 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4789 ac_cpp='$CPP $CPPFLAGS'
4790 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4791 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4792 cross_compiling=$ac_cv_prog_cc_cross
4798 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
4799 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
4800 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
4801 echo "configure:4802: checking for __builtin_fabsf linkage" >&5
4802 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
4803 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
4804 echo $ac_n "(cached) $ac_c" 1>&6
4805 else
4807 cat > conftest.$ac_ext <<EOF
4808 #line 4809 "configure"
4809 #include "confdefs.h"
4810 #include <math.h>
4811 int main() {
4812 __builtin_fabsf(0);
4813 ; return 0; }
4815 if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4816 rm -rf conftest*
4817 glibcpp_cv_func___builtin_fabsf_link=yes
4818 else
4819 echo "configure: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4821 rm -rf conftest*
4822 glibcpp_cv_func___builtin_fabsf_link=no
4824 rm -f conftest*
4829 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
4830 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
4831 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4832 cat >> confdefs.h <<EOF
4833 #define ${ac_tr_func} 1
4840 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
4841 echo "configure:4842: checking for __builtin_fabs declaration" >&5
4842 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
4843 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
4844 echo $ac_n "(cached) $ac_c" 1>&6
4845 else
4848 ac_ext=C
4849 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4850 ac_cpp='$CXXCPP $CPPFLAGS'
4851 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4852 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4853 cross_compiling=$ac_cv_prog_cxx_cross
4855 cat > conftest.$ac_ext <<EOF
4856 #line 4857 "configure"
4857 #include "confdefs.h"
4858 #include <math.h>
4859 int main() {
4860 __builtin_fabs(0);
4861 ; return 0; }
4863 if { (eval echo configure:4864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4864 rm -rf conftest*
4865 glibcpp_cv_func___builtin_fabs_use=yes
4866 else
4867 echo "configure: failed program was:" >&5
4868 cat conftest.$ac_ext >&5
4869 rm -rf conftest*
4870 glibcpp_cv_func___builtin_fabs_use=no
4872 rm -f conftest*
4873 ac_ext=c
4874 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4875 ac_cpp='$CPP $CPPFLAGS'
4876 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4877 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4878 cross_compiling=$ac_cv_prog_cc_cross
4884 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
4885 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
4886 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
4887 echo "configure:4888: checking for __builtin_fabs linkage" >&5
4888 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
4889 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
4890 echo $ac_n "(cached) $ac_c" 1>&6
4891 else
4893 cat > conftest.$ac_ext <<EOF
4894 #line 4895 "configure"
4895 #include "confdefs.h"
4896 #include <math.h>
4897 int main() {
4898 __builtin_fabs(0);
4899 ; return 0; }
4901 if { (eval echo configure:4902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4902 rm -rf conftest*
4903 glibcpp_cv_func___builtin_fabs_link=yes
4904 else
4905 echo "configure: failed program was:" >&5
4906 cat conftest.$ac_ext >&5
4907 rm -rf conftest*
4908 glibcpp_cv_func___builtin_fabs_link=no
4910 rm -f conftest*
4915 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
4916 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
4917 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4918 cat >> confdefs.h <<EOF
4919 #define ${ac_tr_func} 1
4926 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
4927 echo "configure:4928: checking for __builtin_fabsl declaration" >&5
4928 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
4929 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
4930 echo $ac_n "(cached) $ac_c" 1>&6
4931 else
4934 ac_ext=C
4935 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4936 ac_cpp='$CXXCPP $CPPFLAGS'
4937 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4938 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4939 cross_compiling=$ac_cv_prog_cxx_cross
4941 cat > conftest.$ac_ext <<EOF
4942 #line 4943 "configure"
4943 #include "confdefs.h"
4944 #include <math.h>
4945 int main() {
4946 __builtin_fabsl(0);
4947 ; return 0; }
4949 if { (eval echo configure:4950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4950 rm -rf conftest*
4951 glibcpp_cv_func___builtin_fabsl_use=yes
4952 else
4953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4955 rm -rf conftest*
4956 glibcpp_cv_func___builtin_fabsl_use=no
4958 rm -f conftest*
4959 ac_ext=c
4960 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4961 ac_cpp='$CPP $CPPFLAGS'
4962 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4963 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4964 cross_compiling=$ac_cv_prog_cc_cross
4970 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
4971 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
4972 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
4973 echo "configure:4974: checking for __builtin_fabsl linkage" >&5
4974 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
4975 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
4976 echo $ac_n "(cached) $ac_c" 1>&6
4977 else
4979 cat > conftest.$ac_ext <<EOF
4980 #line 4981 "configure"
4981 #include "confdefs.h"
4982 #include <math.h>
4983 int main() {
4984 __builtin_fabsl(0);
4985 ; return 0; }
4987 if { (eval echo configure:4988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4988 rm -rf conftest*
4989 glibcpp_cv_func___builtin_fabsl_link=yes
4990 else
4991 echo "configure: failed program was:" >&5
4992 cat conftest.$ac_ext >&5
4993 rm -rf conftest*
4994 glibcpp_cv_func___builtin_fabsl_link=no
4996 rm -f conftest*
5001 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5002 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5003 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5004 cat >> confdefs.h <<EOF
5005 #define ${ac_tr_func} 1
5012 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5013 echo "configure:5014: checking for __builtin_labs declaration" >&5
5014 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5015 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5016 echo $ac_n "(cached) $ac_c" 1>&6
5017 else
5020 ac_ext=C
5021 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5022 ac_cpp='$CXXCPP $CPPFLAGS'
5023 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5024 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5025 cross_compiling=$ac_cv_prog_cxx_cross
5027 cat > conftest.$ac_ext <<EOF
5028 #line 5029 "configure"
5029 #include "confdefs.h"
5030 #include <math.h>
5031 int main() {
5032 __builtin_labs(0);
5033 ; return 0; }
5035 if { (eval echo configure:5036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5036 rm -rf conftest*
5037 glibcpp_cv_func___builtin_labs_use=yes
5038 else
5039 echo "configure: failed program was:" >&5
5040 cat conftest.$ac_ext >&5
5041 rm -rf conftest*
5042 glibcpp_cv_func___builtin_labs_use=no
5044 rm -f conftest*
5045 ac_ext=c
5046 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5047 ac_cpp='$CPP $CPPFLAGS'
5048 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5049 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5050 cross_compiling=$ac_cv_prog_cc_cross
5056 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5057 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5058 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5059 echo "configure:5060: checking for __builtin_labs linkage" >&5
5060 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5061 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5062 echo $ac_n "(cached) $ac_c" 1>&6
5063 else
5065 cat > conftest.$ac_ext <<EOF
5066 #line 5067 "configure"
5067 #include "confdefs.h"
5068 #include <math.h>
5069 int main() {
5070 __builtin_labs(0);
5071 ; return 0; }
5073 if { (eval echo configure:5074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5074 rm -rf conftest*
5075 glibcpp_cv_func___builtin_labs_link=yes
5076 else
5077 echo "configure: failed program was:" >&5
5078 cat conftest.$ac_ext >&5
5079 rm -rf conftest*
5080 glibcpp_cv_func___builtin_labs_link=no
5082 rm -f conftest*
5087 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5088 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5089 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5090 cat >> confdefs.h <<EOF
5091 #define ${ac_tr_func} 1
5099 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5100 echo "configure:5101: checking for __builtin_sqrtf declaration" >&5
5101 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5102 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5103 echo $ac_n "(cached) $ac_c" 1>&6
5104 else
5107 ac_ext=C
5108 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5109 ac_cpp='$CXXCPP $CPPFLAGS'
5110 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5111 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5112 cross_compiling=$ac_cv_prog_cxx_cross
5114 cat > conftest.$ac_ext <<EOF
5115 #line 5116 "configure"
5116 #include "confdefs.h"
5117 #include <math.h>
5118 int main() {
5119 __builtin_sqrtf(0);
5120 ; return 0; }
5122 if { (eval echo configure:5123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5123 rm -rf conftest*
5124 glibcpp_cv_func___builtin_sqrtf_use=yes
5125 else
5126 echo "configure: failed program was:" >&5
5127 cat conftest.$ac_ext >&5
5128 rm -rf conftest*
5129 glibcpp_cv_func___builtin_sqrtf_use=no
5131 rm -f conftest*
5132 ac_ext=c
5133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5134 ac_cpp='$CPP $CPPFLAGS'
5135 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5136 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5137 cross_compiling=$ac_cv_prog_cc_cross
5143 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5144 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5145 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5146 echo "configure:5147: checking for __builtin_sqrtf linkage" >&5
5147 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5148 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5149 echo $ac_n "(cached) $ac_c" 1>&6
5150 else
5152 cat > conftest.$ac_ext <<EOF
5153 #line 5154 "configure"
5154 #include "confdefs.h"
5155 #include <math.h>
5156 int main() {
5157 __builtin_sqrtf(0);
5158 ; return 0; }
5160 if { (eval echo configure:5161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5161 rm -rf conftest*
5162 glibcpp_cv_func___builtin_sqrtf_link=yes
5163 else
5164 echo "configure: failed program was:" >&5
5165 cat conftest.$ac_ext >&5
5166 rm -rf conftest*
5167 glibcpp_cv_func___builtin_sqrtf_link=no
5169 rm -f conftest*
5174 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5175 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5176 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5177 cat >> confdefs.h <<EOF
5178 #define ${ac_tr_func} 1
5185 echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5186 echo "configure:5187: checking for __builtin_fsqrt declaration" >&5
5187 if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5188 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5189 echo $ac_n "(cached) $ac_c" 1>&6
5190 else
5193 ac_ext=C
5194 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5195 ac_cpp='$CXXCPP $CPPFLAGS'
5196 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5197 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5198 cross_compiling=$ac_cv_prog_cxx_cross
5200 cat > conftest.$ac_ext <<EOF
5201 #line 5202 "configure"
5202 #include "confdefs.h"
5203 #include <math.h>
5204 int main() {
5205 __builtin_fsqrt(0);
5206 ; return 0; }
5208 if { (eval echo configure:5209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5209 rm -rf conftest*
5210 glibcpp_cv_func___builtin_fsqrt_use=yes
5211 else
5212 echo "configure: failed program was:" >&5
5213 cat conftest.$ac_ext >&5
5214 rm -rf conftest*
5215 glibcpp_cv_func___builtin_fsqrt_use=no
5217 rm -f conftest*
5218 ac_ext=c
5219 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5220 ac_cpp='$CPP $CPPFLAGS'
5221 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5222 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5223 cross_compiling=$ac_cv_prog_cc_cross
5229 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5230 if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5231 echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5232 echo "configure:5233: checking for __builtin_fsqrt linkage" >&5
5233 if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5234 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5235 echo $ac_n "(cached) $ac_c" 1>&6
5236 else
5238 cat > conftest.$ac_ext <<EOF
5239 #line 5240 "configure"
5240 #include "confdefs.h"
5241 #include <math.h>
5242 int main() {
5243 __builtin_fsqrt(0);
5244 ; return 0; }
5246 if { (eval echo configure:5247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5247 rm -rf conftest*
5248 glibcpp_cv_func___builtin_fsqrt_link=yes
5249 else
5250 echo "configure: failed program was:" >&5
5251 cat conftest.$ac_ext >&5
5252 rm -rf conftest*
5253 glibcpp_cv_func___builtin_fsqrt_link=no
5255 rm -f conftest*
5260 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5261 if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5262 ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5263 cat >> confdefs.h <<EOF
5264 #define ${ac_tr_func} 1
5271 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5272 echo "configure:5273: checking for __builtin_sqrtl declaration" >&5
5273 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5274 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5276 else
5279 ac_ext=C
5280 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5281 ac_cpp='$CXXCPP $CPPFLAGS'
5282 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5283 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5284 cross_compiling=$ac_cv_prog_cxx_cross
5286 cat > conftest.$ac_ext <<EOF
5287 #line 5288 "configure"
5288 #include "confdefs.h"
5289 #include <math.h>
5290 int main() {
5291 __builtin_sqrtl(0);
5292 ; return 0; }
5294 if { (eval echo configure:5295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5295 rm -rf conftest*
5296 glibcpp_cv_func___builtin_sqrtl_use=yes
5297 else
5298 echo "configure: failed program was:" >&5
5299 cat conftest.$ac_ext >&5
5300 rm -rf conftest*
5301 glibcpp_cv_func___builtin_sqrtl_use=no
5303 rm -f conftest*
5304 ac_ext=c
5305 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5306 ac_cpp='$CPP $CPPFLAGS'
5307 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5308 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5309 cross_compiling=$ac_cv_prog_cc_cross
5315 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5316 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5317 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5318 echo "configure:5319: checking for __builtin_sqrtl linkage" >&5
5319 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5320 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5321 echo $ac_n "(cached) $ac_c" 1>&6
5322 else
5324 cat > conftest.$ac_ext <<EOF
5325 #line 5326 "configure"
5326 #include "confdefs.h"
5327 #include <math.h>
5328 int main() {
5329 __builtin_sqrtl(0);
5330 ; return 0; }
5332 if { (eval echo configure:5333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5333 rm -rf conftest*
5334 glibcpp_cv_func___builtin_sqrtl_link=yes
5335 else
5336 echo "configure: failed program was:" >&5
5337 cat conftest.$ac_ext >&5
5338 rm -rf conftest*
5339 glibcpp_cv_func___builtin_sqrtl_link=no
5341 rm -f conftest*
5346 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5347 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5348 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5349 cat >> confdefs.h <<EOF
5350 #define ${ac_tr_func} 1
5358 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5359 echo "configure:5360: checking for __builtin_sinf declaration" >&5
5360 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5361 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5362 echo $ac_n "(cached) $ac_c" 1>&6
5363 else
5366 ac_ext=C
5367 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5368 ac_cpp='$CXXCPP $CPPFLAGS'
5369 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5370 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5371 cross_compiling=$ac_cv_prog_cxx_cross
5373 cat > conftest.$ac_ext <<EOF
5374 #line 5375 "configure"
5375 #include "confdefs.h"
5376 #include <math.h>
5377 int main() {
5378 __builtin_sinf(0);
5379 ; return 0; }
5381 if { (eval echo configure:5382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5382 rm -rf conftest*
5383 glibcpp_cv_func___builtin_sinf_use=yes
5384 else
5385 echo "configure: failed program was:" >&5
5386 cat conftest.$ac_ext >&5
5387 rm -rf conftest*
5388 glibcpp_cv_func___builtin_sinf_use=no
5390 rm -f conftest*
5391 ac_ext=c
5392 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5393 ac_cpp='$CPP $CPPFLAGS'
5394 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5395 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5396 cross_compiling=$ac_cv_prog_cc_cross
5402 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5403 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5404 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5405 echo "configure:5406: checking for __builtin_sinf linkage" >&5
5406 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5407 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5408 echo $ac_n "(cached) $ac_c" 1>&6
5409 else
5411 cat > conftest.$ac_ext <<EOF
5412 #line 5413 "configure"
5413 #include "confdefs.h"
5414 #include <math.h>
5415 int main() {
5416 __builtin_sinf(0);
5417 ; return 0; }
5419 if { (eval echo configure:5420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5420 rm -rf conftest*
5421 glibcpp_cv_func___builtin_sinf_link=yes
5422 else
5423 echo "configure: failed program was:" >&5
5424 cat conftest.$ac_ext >&5
5425 rm -rf conftest*
5426 glibcpp_cv_func___builtin_sinf_link=no
5428 rm -f conftest*
5433 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5434 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5435 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5436 cat >> confdefs.h <<EOF
5437 #define ${ac_tr_func} 1
5444 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5445 echo "configure:5446: checking for __builtin_sin declaration" >&5
5446 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5447 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
5448 echo $ac_n "(cached) $ac_c" 1>&6
5449 else
5452 ac_ext=C
5453 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5454 ac_cpp='$CXXCPP $CPPFLAGS'
5455 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5456 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5457 cross_compiling=$ac_cv_prog_cxx_cross
5459 cat > conftest.$ac_ext <<EOF
5460 #line 5461 "configure"
5461 #include "confdefs.h"
5462 #include <math.h>
5463 int main() {
5464 __builtin_sin(0);
5465 ; return 0; }
5467 if { (eval echo configure:5468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5468 rm -rf conftest*
5469 glibcpp_cv_func___builtin_sin_use=yes
5470 else
5471 echo "configure: failed program was:" >&5
5472 cat conftest.$ac_ext >&5
5473 rm -rf conftest*
5474 glibcpp_cv_func___builtin_sin_use=no
5476 rm -f conftest*
5477 ac_ext=c
5478 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5479 ac_cpp='$CPP $CPPFLAGS'
5480 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5481 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5482 cross_compiling=$ac_cv_prog_cc_cross
5488 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
5489 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
5490 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
5491 echo "configure:5492: checking for __builtin_sin linkage" >&5
5492 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
5493 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
5494 echo $ac_n "(cached) $ac_c" 1>&6
5495 else
5497 cat > conftest.$ac_ext <<EOF
5498 #line 5499 "configure"
5499 #include "confdefs.h"
5500 #include <math.h>
5501 int main() {
5502 __builtin_sin(0);
5503 ; return 0; }
5505 if { (eval echo configure:5506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5506 rm -rf conftest*
5507 glibcpp_cv_func___builtin_sin_link=yes
5508 else
5509 echo "configure: failed program was:" >&5
5510 cat conftest.$ac_ext >&5
5511 rm -rf conftest*
5512 glibcpp_cv_func___builtin_sin_link=no
5514 rm -f conftest*
5519 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
5520 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
5521 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5522 cat >> confdefs.h <<EOF
5523 #define ${ac_tr_func} 1
5530 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
5531 echo "configure:5532: checking for __builtin_sinl declaration" >&5
5532 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
5533 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
5534 echo $ac_n "(cached) $ac_c" 1>&6
5535 else
5538 ac_ext=C
5539 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5540 ac_cpp='$CXXCPP $CPPFLAGS'
5541 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5542 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5543 cross_compiling=$ac_cv_prog_cxx_cross
5545 cat > conftest.$ac_ext <<EOF
5546 #line 5547 "configure"
5547 #include "confdefs.h"
5548 #include <math.h>
5549 int main() {
5550 __builtin_sinl(0);
5551 ; return 0; }
5553 if { (eval echo configure:5554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5554 rm -rf conftest*
5555 glibcpp_cv_func___builtin_sinl_use=yes
5556 else
5557 echo "configure: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5559 rm -rf conftest*
5560 glibcpp_cv_func___builtin_sinl_use=no
5562 rm -f conftest*
5563 ac_ext=c
5564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5565 ac_cpp='$CPP $CPPFLAGS'
5566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5568 cross_compiling=$ac_cv_prog_cc_cross
5574 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
5575 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
5576 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
5577 echo "configure:5578: checking for __builtin_sinl linkage" >&5
5578 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
5579 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
5580 echo $ac_n "(cached) $ac_c" 1>&6
5581 else
5583 cat > conftest.$ac_ext <<EOF
5584 #line 5585 "configure"
5585 #include "confdefs.h"
5586 #include <math.h>
5587 int main() {
5588 __builtin_sinl(0);
5589 ; return 0; }
5591 if { (eval echo configure:5592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5592 rm -rf conftest*
5593 glibcpp_cv_func___builtin_sinl_link=yes
5594 else
5595 echo "configure: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5597 rm -rf conftest*
5598 glibcpp_cv_func___builtin_sinl_link=no
5600 rm -f conftest*
5605 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
5606 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
5607 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5608 cat >> confdefs.h <<EOF
5609 #define ${ac_tr_func} 1
5617 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
5618 echo "configure:5619: checking for __builtin_cosf declaration" >&5
5619 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
5620 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
5621 echo $ac_n "(cached) $ac_c" 1>&6
5622 else
5625 ac_ext=C
5626 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5627 ac_cpp='$CXXCPP $CPPFLAGS'
5628 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5629 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5630 cross_compiling=$ac_cv_prog_cxx_cross
5632 cat > conftest.$ac_ext <<EOF
5633 #line 5634 "configure"
5634 #include "confdefs.h"
5635 #include <math.h>
5636 int main() {
5637 __builtin_cosf(0);
5638 ; return 0; }
5640 if { (eval echo configure:5641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5641 rm -rf conftest*
5642 glibcpp_cv_func___builtin_cosf_use=yes
5643 else
5644 echo "configure: failed program was:" >&5
5645 cat conftest.$ac_ext >&5
5646 rm -rf conftest*
5647 glibcpp_cv_func___builtin_cosf_use=no
5649 rm -f conftest*
5650 ac_ext=c
5651 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5652 ac_cpp='$CPP $CPPFLAGS'
5653 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5654 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5655 cross_compiling=$ac_cv_prog_cc_cross
5661 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
5662 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
5663 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
5664 echo "configure:5665: checking for __builtin_cosf linkage" >&5
5665 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
5666 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
5667 echo $ac_n "(cached) $ac_c" 1>&6
5668 else
5670 cat > conftest.$ac_ext <<EOF
5671 #line 5672 "configure"
5672 #include "confdefs.h"
5673 #include <math.h>
5674 int main() {
5675 __builtin_cosf(0);
5676 ; return 0; }
5678 if { (eval echo configure:5679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5679 rm -rf conftest*
5680 glibcpp_cv_func___builtin_cosf_link=yes
5681 else
5682 echo "configure: failed program was:" >&5
5683 cat conftest.$ac_ext >&5
5684 rm -rf conftest*
5685 glibcpp_cv_func___builtin_cosf_link=no
5687 rm -f conftest*
5692 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
5693 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
5694 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5695 cat >> confdefs.h <<EOF
5696 #define ${ac_tr_func} 1
5703 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
5704 echo "configure:5705: checking for __builtin_cos declaration" >&5
5705 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
5706 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
5707 echo $ac_n "(cached) $ac_c" 1>&6
5708 else
5711 ac_ext=C
5712 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5713 ac_cpp='$CXXCPP $CPPFLAGS'
5714 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5715 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5716 cross_compiling=$ac_cv_prog_cxx_cross
5718 cat > conftest.$ac_ext <<EOF
5719 #line 5720 "configure"
5720 #include "confdefs.h"
5721 #include <math.h>
5722 int main() {
5723 __builtin_cos(0);
5724 ; return 0; }
5726 if { (eval echo configure:5727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5727 rm -rf conftest*
5728 glibcpp_cv_func___builtin_cos_use=yes
5729 else
5730 echo "configure: failed program was:" >&5
5731 cat conftest.$ac_ext >&5
5732 rm -rf conftest*
5733 glibcpp_cv_func___builtin_cos_use=no
5735 rm -f conftest*
5736 ac_ext=c
5737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5738 ac_cpp='$CPP $CPPFLAGS'
5739 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5740 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5741 cross_compiling=$ac_cv_prog_cc_cross
5747 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
5748 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
5749 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
5750 echo "configure:5751: checking for __builtin_cos linkage" >&5
5751 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
5752 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
5753 echo $ac_n "(cached) $ac_c" 1>&6
5754 else
5756 cat > conftest.$ac_ext <<EOF
5757 #line 5758 "configure"
5758 #include "confdefs.h"
5759 #include <math.h>
5760 int main() {
5761 __builtin_cos(0);
5762 ; return 0; }
5764 if { (eval echo configure:5765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5765 rm -rf conftest*
5766 glibcpp_cv_func___builtin_cos_link=yes
5767 else
5768 echo "configure: failed program was:" >&5
5769 cat conftest.$ac_ext >&5
5770 rm -rf conftest*
5771 glibcpp_cv_func___builtin_cos_link=no
5773 rm -f conftest*
5778 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
5779 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
5780 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5781 cat >> confdefs.h <<EOF
5782 #define ${ac_tr_func} 1
5789 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
5790 echo "configure:5791: checking for __builtin_cosl declaration" >&5
5791 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
5792 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
5793 echo $ac_n "(cached) $ac_c" 1>&6
5794 else
5797 ac_ext=C
5798 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5799 ac_cpp='$CXXCPP $CPPFLAGS'
5800 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5801 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5802 cross_compiling=$ac_cv_prog_cxx_cross
5804 cat > conftest.$ac_ext <<EOF
5805 #line 5806 "configure"
5806 #include "confdefs.h"
5807 #include <math.h>
5808 int main() {
5809 __builtin_cosl(0);
5810 ; return 0; }
5812 if { (eval echo configure:5813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5813 rm -rf conftest*
5814 glibcpp_cv_func___builtin_cosl_use=yes
5815 else
5816 echo "configure: failed program was:" >&5
5817 cat conftest.$ac_ext >&5
5818 rm -rf conftest*
5819 glibcpp_cv_func___builtin_cosl_use=no
5821 rm -f conftest*
5822 ac_ext=c
5823 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5824 ac_cpp='$CPP $CPPFLAGS'
5825 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5826 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5827 cross_compiling=$ac_cv_prog_cc_cross
5833 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
5834 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
5835 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
5836 echo "configure:5837: checking for __builtin_cosl linkage" >&5
5837 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
5838 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
5839 echo $ac_n "(cached) $ac_c" 1>&6
5840 else
5842 cat > conftest.$ac_ext <<EOF
5843 #line 5844 "configure"
5844 #include "confdefs.h"
5845 #include <math.h>
5846 int main() {
5847 __builtin_cosl(0);
5848 ; return 0; }
5850 if { (eval echo configure:5851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5851 rm -rf conftest*
5852 glibcpp_cv_func___builtin_cosl_link=yes
5853 else
5854 echo "configure: failed program was:" >&5
5855 cat conftest.$ac_ext >&5
5856 rm -rf conftest*
5857 glibcpp_cv_func___builtin_cosl_link=no
5859 rm -f conftest*
5864 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
5865 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
5866 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5867 cat >> confdefs.h <<EOF
5868 #define ${ac_tr_func} 1
5875 dummyvar=no
5876 if test x$dummyvar = x"yes"; then
5877 cat >> confdefs.h <<\EOF
5878 #define HAVE___BUILTIN_ABS 1
5881 cat >> confdefs.h <<\EOF
5882 #define HAVE___BUILTIN_LABS 1
5885 cat >> confdefs.h <<\EOF
5886 #define HAVE___BUILTIN_COS 1
5889 cat >> confdefs.h <<\EOF
5890 #define HAVE___BUILTIN_COSF 1
5893 cat >> confdefs.h <<\EOF
5894 #define HAVE___BUILTIN_COSL 1
5897 cat >> confdefs.h <<\EOF
5898 #define HAVE___BUILTIN_FABS 1
5901 cat >> confdefs.h <<\EOF
5902 #define HAVE___BUILTIN_FABSF 1
5905 cat >> confdefs.h <<\EOF
5906 #define HAVE___BUILTIN_FABSL 1
5909 cat >> confdefs.h <<\EOF
5910 #define HAVE___BUILTIN_SIN 1
5913 cat >> confdefs.h <<\EOF
5914 #define HAVE___BUILTIN_SINF 1
5917 cat >> confdefs.h <<\EOF
5918 #define HAVE___BUILTIN_SINL 1
5921 cat >> confdefs.h <<\EOF
5922 #define HAVE___BUILTIN_FSQRT 1
5925 cat >> confdefs.h <<\EOF
5926 #define HAVE___BUILTIN_SQRTF 1
5929 cat >> confdefs.h <<\EOF
5930 #define HAVE___BUILTIN_SQRTL 1
5936 ac_test_CXXFLAGS="${CXXFLAGS+set}"
5937 ac_save_CXXFLAGS="$CXXFLAGS"
5938 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
5940 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
5941 echo "configure:5942: checking for sin in -lm" >&5
5942 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
5943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5944 echo $ac_n "(cached) $ac_c" 1>&6
5945 else
5946 ac_save_LIBS="$LIBS"
5947 LIBS="-lm $LIBS"
5948 cat > conftest.$ac_ext <<EOF
5949 #line 5950 "configure"
5950 #include "confdefs.h"
5951 /* Override any gcc2 internal prototype to avoid an error. */
5952 /* We use char because int might match the return type of a gcc2
5953 builtin and then its argument prototype would still apply. */
5954 char sin();
5956 int main() {
5957 sin()
5958 ; return 0; }
5960 if { (eval echo configure:5961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5961 rm -rf conftest*
5962 eval "ac_cv_lib_$ac_lib_var=yes"
5963 else
5964 echo "configure: failed program was:" >&5
5965 cat conftest.$ac_ext >&5
5966 rm -rf conftest*
5967 eval "ac_cv_lib_$ac_lib_var=no"
5969 rm -f conftest*
5970 LIBS="$ac_save_LIBS"
5973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5974 echo "$ac_t""yes" 1>&6
5975 libm="-lm"
5976 else
5977 echo "$ac_t""no" 1>&6
5980 ac_save_LIBS="$LIBS"
5981 LIBS="$LIBS $libm"
5985 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
5986 echo "configure:5987: checking for isinf declaration" >&5
5987 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
5988 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
5989 echo $ac_n "(cached) $ac_c" 1>&6
5990 else
5993 ac_ext=C
5994 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5995 ac_cpp='$CXXCPP $CPPFLAGS'
5996 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5997 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5998 cross_compiling=$ac_cv_prog_cxx_cross
6000 cat > conftest.$ac_ext <<EOF
6001 #line 6002 "configure"
6002 #include "confdefs.h"
6003 #include <math.h>
6004 #ifdef HAVE_IEEEFP_H
6005 #include <ieeefp.h>
6006 #endif
6008 int main() {
6009 isinf(0);
6010 ; return 0; }
6012 if { (eval echo configure:6013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6013 rm -rf conftest*
6014 glibcpp_cv_func_isinf_use=yes
6015 else
6016 echo "configure: failed program was:" >&5
6017 cat conftest.$ac_ext >&5
6018 rm -rf conftest*
6019 glibcpp_cv_func_isinf_use=no
6021 rm -f conftest*
6022 ac_ext=c
6023 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6024 ac_cpp='$CPP $CPPFLAGS'
6025 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6026 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6027 cross_compiling=$ac_cv_prog_cc_cross
6033 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6035 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6036 for ac_func in isinf
6038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6039 echo "configure:6040: checking for $ac_func" >&5
6040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6041 echo $ac_n "(cached) $ac_c" 1>&6
6042 else
6043 cat > conftest.$ac_ext <<EOF
6044 #line 6045 "configure"
6045 #include "confdefs.h"
6046 /* System header to define __stub macros and hopefully few prototypes,
6047 which can conflict with char $ac_func(); below. */
6048 #include <assert.h>
6049 /* Override any gcc2 internal prototype to avoid an error. */
6050 /* We use char because int might match the return type of a gcc2
6051 builtin and then its argument prototype would still apply. */
6052 char $ac_func();
6054 int main() {
6056 /* The GNU C library defines this for functions which it implements
6057 to always fail with ENOSYS. Some functions are actually named
6058 something starting with __ and the normal name is an alias. */
6059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6060 choke me
6061 #else
6062 $ac_func();
6063 #endif
6065 ; return 0; }
6067 if { (eval echo configure:6068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6068 rm -rf conftest*
6069 eval "ac_cv_func_$ac_func=yes"
6070 else
6071 echo "configure: failed program was:" >&5
6072 cat conftest.$ac_ext >&5
6073 rm -rf conftest*
6074 eval "ac_cv_func_$ac_func=no"
6076 rm -f conftest*
6079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6080 echo "$ac_t""yes" 1>&6
6081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6082 cat >> confdefs.h <<EOF
6083 #define $ac_tr_func 1
6086 else
6087 echo "$ac_t""no" 1>&6
6089 done
6091 else
6093 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6094 echo "configure:6095: checking for _isinf declaration" >&5
6095 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6096 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6097 echo $ac_n "(cached) $ac_c" 1>&6
6098 else
6101 ac_ext=C
6102 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6103 ac_cpp='$CXXCPP $CPPFLAGS'
6104 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6105 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6106 cross_compiling=$ac_cv_prog_cxx_cross
6108 cat > conftest.$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6111 #include <math.h>
6112 #ifdef HAVE_IEEEFP_H
6113 #include <ieeefp.h>
6114 #endif
6116 int main() {
6117 _isinf(0);
6118 ; return 0; }
6120 if { (eval echo configure:6121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6121 rm -rf conftest*
6122 glibcpp_cv_func__isinf_use=yes
6123 else
6124 echo "configure: failed program was:" >&5
6125 cat conftest.$ac_ext >&5
6126 rm -rf conftest*
6127 glibcpp_cv_func__isinf_use=no
6129 rm -f conftest*
6130 ac_ext=c
6131 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6132 ac_cpp='$CPP $CPPFLAGS'
6133 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6134 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6135 cross_compiling=$ac_cv_prog_cc_cross
6141 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6143 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6144 for ac_func in _isinf
6146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6147 echo "configure:6148: checking for $ac_func" >&5
6148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6149 echo $ac_n "(cached) $ac_c" 1>&6
6150 else
6151 cat > conftest.$ac_ext <<EOF
6152 #line 6153 "configure"
6153 #include "confdefs.h"
6154 /* System header to define __stub macros and hopefully few prototypes,
6155 which can conflict with char $ac_func(); below. */
6156 #include <assert.h>
6157 /* Override any gcc2 internal prototype to avoid an error. */
6158 /* We use char because int might match the return type of a gcc2
6159 builtin and then its argument prototype would still apply. */
6160 char $ac_func();
6162 int main() {
6164 /* The GNU C library defines this for functions which it implements
6165 to always fail with ENOSYS. Some functions are actually named
6166 something starting with __ and the normal name is an alias. */
6167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6168 choke me
6169 #else
6170 $ac_func();
6171 #endif
6173 ; return 0; }
6175 if { (eval echo configure:6176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6176 rm -rf conftest*
6177 eval "ac_cv_func_$ac_func=yes"
6178 else
6179 echo "configure: failed program was:" >&5
6180 cat conftest.$ac_ext >&5
6181 rm -rf conftest*
6182 eval "ac_cv_func_$ac_func=no"
6184 rm -f conftest*
6187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6188 echo "$ac_t""yes" 1>&6
6189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6190 cat >> confdefs.h <<EOF
6191 #define $ac_tr_func 1
6194 else
6195 echo "$ac_t""no" 1>&6
6197 done
6204 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6205 echo "configure:6206: checking for isnan declaration" >&5
6206 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6207 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6208 echo $ac_n "(cached) $ac_c" 1>&6
6209 else
6212 ac_ext=C
6213 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6214 ac_cpp='$CXXCPP $CPPFLAGS'
6215 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6216 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6217 cross_compiling=$ac_cv_prog_cxx_cross
6219 cat > conftest.$ac_ext <<EOF
6220 #line 6221 "configure"
6221 #include "confdefs.h"
6222 #include <math.h>
6223 #ifdef HAVE_IEEEFP_H
6224 #include <ieeefp.h>
6225 #endif
6227 int main() {
6228 isnan(0);
6229 ; return 0; }
6231 if { (eval echo configure:6232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6232 rm -rf conftest*
6233 glibcpp_cv_func_isnan_use=yes
6234 else
6235 echo "configure: failed program was:" >&5
6236 cat conftest.$ac_ext >&5
6237 rm -rf conftest*
6238 glibcpp_cv_func_isnan_use=no
6240 rm -f conftest*
6241 ac_ext=c
6242 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6243 ac_cpp='$CPP $CPPFLAGS'
6244 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6245 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6246 cross_compiling=$ac_cv_prog_cc_cross
6252 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6254 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6255 for ac_func in isnan
6257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6258 echo "configure:6259: checking for $ac_func" >&5
6259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6260 echo $ac_n "(cached) $ac_c" 1>&6
6261 else
6262 cat > conftest.$ac_ext <<EOF
6263 #line 6264 "configure"
6264 #include "confdefs.h"
6265 /* System header to define __stub macros and hopefully few prototypes,
6266 which can conflict with char $ac_func(); below. */
6267 #include <assert.h>
6268 /* Override any gcc2 internal prototype to avoid an error. */
6269 /* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */
6271 char $ac_func();
6273 int main() {
6275 /* The GNU C library defines this for functions which it implements
6276 to always fail with ENOSYS. Some functions are actually named
6277 something starting with __ and the normal name is an alias. */
6278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6279 choke me
6280 #else
6281 $ac_func();
6282 #endif
6284 ; return 0; }
6286 if { (eval echo configure:6287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6287 rm -rf conftest*
6288 eval "ac_cv_func_$ac_func=yes"
6289 else
6290 echo "configure: failed program was:" >&5
6291 cat conftest.$ac_ext >&5
6292 rm -rf conftest*
6293 eval "ac_cv_func_$ac_func=no"
6295 rm -f conftest*
6298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6299 echo "$ac_t""yes" 1>&6
6300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6301 cat >> confdefs.h <<EOF
6302 #define $ac_tr_func 1
6305 else
6306 echo "$ac_t""no" 1>&6
6308 done
6310 else
6312 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6313 echo "configure:6314: checking for _isnan declaration" >&5
6314 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6315 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6316 echo $ac_n "(cached) $ac_c" 1>&6
6317 else
6320 ac_ext=C
6321 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6322 ac_cpp='$CXXCPP $CPPFLAGS'
6323 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6324 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6325 cross_compiling=$ac_cv_prog_cxx_cross
6327 cat > conftest.$ac_ext <<EOF
6328 #line 6329 "configure"
6329 #include "confdefs.h"
6330 #include <math.h>
6331 #ifdef HAVE_IEEEFP_H
6332 #include <ieeefp.h>
6333 #endif
6335 int main() {
6336 _isnan(0);
6337 ; return 0; }
6339 if { (eval echo configure:6340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6340 rm -rf conftest*
6341 glibcpp_cv_func__isnan_use=yes
6342 else
6343 echo "configure: failed program was:" >&5
6344 cat conftest.$ac_ext >&5
6345 rm -rf conftest*
6346 glibcpp_cv_func__isnan_use=no
6348 rm -f conftest*
6349 ac_ext=c
6350 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6351 ac_cpp='$CPP $CPPFLAGS'
6352 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6353 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6354 cross_compiling=$ac_cv_prog_cc_cross
6360 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6362 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6363 for ac_func in _isnan
6365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6366 echo "configure:6367: checking for $ac_func" >&5
6367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6368 echo $ac_n "(cached) $ac_c" 1>&6
6369 else
6370 cat > conftest.$ac_ext <<EOF
6371 #line 6372 "configure"
6372 #include "confdefs.h"
6373 /* System header to define __stub macros and hopefully few prototypes,
6374 which can conflict with char $ac_func(); below. */
6375 #include <assert.h>
6376 /* Override any gcc2 internal prototype to avoid an error. */
6377 /* We use char because int might match the return type of a gcc2
6378 builtin and then its argument prototype would still apply. */
6379 char $ac_func();
6381 int main() {
6383 /* The GNU C library defines this for functions which it implements
6384 to always fail with ENOSYS. Some functions are actually named
6385 something starting with __ and the normal name is an alias. */
6386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6387 choke me
6388 #else
6389 $ac_func();
6390 #endif
6392 ; return 0; }
6394 if { (eval echo configure:6395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6395 rm -rf conftest*
6396 eval "ac_cv_func_$ac_func=yes"
6397 else
6398 echo "configure: failed program was:" >&5
6399 cat conftest.$ac_ext >&5
6400 rm -rf conftest*
6401 eval "ac_cv_func_$ac_func=no"
6403 rm -f conftest*
6406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6407 echo "$ac_t""yes" 1>&6
6408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6409 cat >> confdefs.h <<EOF
6410 #define $ac_tr_func 1
6413 else
6414 echo "$ac_t""no" 1>&6
6416 done
6423 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6424 echo "configure:6425: checking for finite declaration" >&5
6425 if test x${glibcpp_cv_func_finite_use+set} != xset; then
6426 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6427 echo $ac_n "(cached) $ac_c" 1>&6
6428 else
6431 ac_ext=C
6432 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6433 ac_cpp='$CXXCPP $CPPFLAGS'
6434 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6435 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6436 cross_compiling=$ac_cv_prog_cxx_cross
6438 cat > conftest.$ac_ext <<EOF
6439 #line 6440 "configure"
6440 #include "confdefs.h"
6441 #include <math.h>
6442 #ifdef HAVE_IEEEFP_H
6443 #include <ieeefp.h>
6444 #endif
6446 int main() {
6447 finite(0);
6448 ; return 0; }
6450 if { (eval echo configure:6451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6451 rm -rf conftest*
6452 glibcpp_cv_func_finite_use=yes
6453 else
6454 echo "configure: failed program was:" >&5
6455 cat conftest.$ac_ext >&5
6456 rm -rf conftest*
6457 glibcpp_cv_func_finite_use=no
6459 rm -f conftest*
6460 ac_ext=c
6461 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6462 ac_cpp='$CPP $CPPFLAGS'
6463 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6464 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6465 cross_compiling=$ac_cv_prog_cc_cross
6471 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
6473 if test x$glibcpp_cv_func_finite_use = x"yes"; then
6474 for ac_func in finite
6476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6477 echo "configure:6478: checking for $ac_func" >&5
6478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6479 echo $ac_n "(cached) $ac_c" 1>&6
6480 else
6481 cat > conftest.$ac_ext <<EOF
6482 #line 6483 "configure"
6483 #include "confdefs.h"
6484 /* System header to define __stub macros and hopefully few prototypes,
6485 which can conflict with char $ac_func(); below. */
6486 #include <assert.h>
6487 /* Override any gcc2 internal prototype to avoid an error. */
6488 /* We use char because int might match the return type of a gcc2
6489 builtin and then its argument prototype would still apply. */
6490 char $ac_func();
6492 int main() {
6494 /* The GNU C library defines this for functions which it implements
6495 to always fail with ENOSYS. Some functions are actually named
6496 something starting with __ and the normal name is an alias. */
6497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6498 choke me
6499 #else
6500 $ac_func();
6501 #endif
6503 ; return 0; }
6505 if { (eval echo configure:6506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6506 rm -rf conftest*
6507 eval "ac_cv_func_$ac_func=yes"
6508 else
6509 echo "configure: failed program was:" >&5
6510 cat conftest.$ac_ext >&5
6511 rm -rf conftest*
6512 eval "ac_cv_func_$ac_func=no"
6514 rm -f conftest*
6517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6518 echo "$ac_t""yes" 1>&6
6519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6520 cat >> confdefs.h <<EOF
6521 #define $ac_tr_func 1
6524 else
6525 echo "$ac_t""no" 1>&6
6527 done
6529 else
6531 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
6532 echo "configure:6533: checking for _finite declaration" >&5
6533 if test x${glibcpp_cv_func__finite_use+set} != xset; then
6534 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
6535 echo $ac_n "(cached) $ac_c" 1>&6
6536 else
6539 ac_ext=C
6540 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6541 ac_cpp='$CXXCPP $CPPFLAGS'
6542 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6543 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6544 cross_compiling=$ac_cv_prog_cxx_cross
6546 cat > conftest.$ac_ext <<EOF
6547 #line 6548 "configure"
6548 #include "confdefs.h"
6549 #include <math.h>
6550 #ifdef HAVE_IEEEFP_H
6551 #include <ieeefp.h>
6552 #endif
6554 int main() {
6555 _finite(0);
6556 ; return 0; }
6558 if { (eval echo configure:6559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6559 rm -rf conftest*
6560 glibcpp_cv_func__finite_use=yes
6561 else
6562 echo "configure: failed program was:" >&5
6563 cat conftest.$ac_ext >&5
6564 rm -rf conftest*
6565 glibcpp_cv_func__finite_use=no
6567 rm -f conftest*
6568 ac_ext=c
6569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6570 ac_cpp='$CPP $CPPFLAGS'
6571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6573 cross_compiling=$ac_cv_prog_cc_cross
6579 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
6581 if test x$glibcpp_cv_func__finite_use = x"yes"; then
6582 for ac_func in _finite
6584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6585 echo "configure:6586: checking for $ac_func" >&5
6586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6587 echo $ac_n "(cached) $ac_c" 1>&6
6588 else
6589 cat > conftest.$ac_ext <<EOF
6590 #line 6591 "configure"
6591 #include "confdefs.h"
6592 /* System header to define __stub macros and hopefully few prototypes,
6593 which can conflict with char $ac_func(); below. */
6594 #include <assert.h>
6595 /* Override any gcc2 internal prototype to avoid an error. */
6596 /* We use char because int might match the return type of a gcc2
6597 builtin and then its argument prototype would still apply. */
6598 char $ac_func();
6600 int main() {
6602 /* The GNU C library defines this for functions which it implements
6603 to always fail with ENOSYS. Some functions are actually named
6604 something starting with __ and the normal name is an alias. */
6605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6606 choke me
6607 #else
6608 $ac_func();
6609 #endif
6611 ; return 0; }
6613 if { (eval echo configure:6614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6614 rm -rf conftest*
6615 eval "ac_cv_func_$ac_func=yes"
6616 else
6617 echo "configure: failed program was:" >&5
6618 cat conftest.$ac_ext >&5
6619 rm -rf conftest*
6620 eval "ac_cv_func_$ac_func=no"
6622 rm -f conftest*
6625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6626 echo "$ac_t""yes" 1>&6
6627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6628 cat >> confdefs.h <<EOF
6629 #define $ac_tr_func 1
6632 else
6633 echo "$ac_t""no" 1>&6
6635 done
6642 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
6643 echo "configure:6644: checking for copysign declaration" >&5
6644 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
6645 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
6646 echo $ac_n "(cached) $ac_c" 1>&6
6647 else
6650 ac_ext=C
6651 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6652 ac_cpp='$CXXCPP $CPPFLAGS'
6653 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6654 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6655 cross_compiling=$ac_cv_prog_cxx_cross
6657 cat > conftest.$ac_ext <<EOF
6658 #line 6659 "configure"
6659 #include "confdefs.h"
6660 #include <math.h>
6661 int main() {
6662 copysign(0, 0);
6663 ; return 0; }
6665 if { (eval echo configure:6666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6666 rm -rf conftest*
6667 glibcpp_cv_func_copysign_use=yes
6668 else
6669 echo "configure: failed program was:" >&5
6670 cat conftest.$ac_ext >&5
6671 rm -rf conftest*
6672 glibcpp_cv_func_copysign_use=no
6674 rm -f conftest*
6675 ac_ext=c
6676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6677 ac_cpp='$CPP $CPPFLAGS'
6678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6680 cross_compiling=$ac_cv_prog_cc_cross
6686 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
6688 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
6689 for ac_func in copysign
6691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6692 echo "configure:6693: checking for $ac_func" >&5
6693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6694 echo $ac_n "(cached) $ac_c" 1>&6
6695 else
6696 cat > conftest.$ac_ext <<EOF
6697 #line 6698 "configure"
6698 #include "confdefs.h"
6699 /* System header to define __stub macros and hopefully few prototypes,
6700 which can conflict with char $ac_func(); below. */
6701 #include <assert.h>
6702 /* Override any gcc2 internal prototype to avoid an error. */
6703 /* We use char because int might match the return type of a gcc2
6704 builtin and then its argument prototype would still apply. */
6705 char $ac_func();
6707 int main() {
6709 /* The GNU C library defines this for functions which it implements
6710 to always fail with ENOSYS. Some functions are actually named
6711 something starting with __ and the normal name is an alias. */
6712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6713 choke me
6714 #else
6715 $ac_func();
6716 #endif
6718 ; return 0; }
6720 if { (eval echo configure:6721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6721 rm -rf conftest*
6722 eval "ac_cv_func_$ac_func=yes"
6723 else
6724 echo "configure: failed program was:" >&5
6725 cat conftest.$ac_ext >&5
6726 rm -rf conftest*
6727 eval "ac_cv_func_$ac_func=no"
6729 rm -f conftest*
6732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6733 echo "$ac_t""yes" 1>&6
6734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6735 cat >> confdefs.h <<EOF
6736 #define $ac_tr_func 1
6739 else
6740 echo "$ac_t""no" 1>&6
6742 done
6744 else
6746 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
6747 echo "configure:6748: checking for _copysign declaration" >&5
6748 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
6749 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
6750 echo $ac_n "(cached) $ac_c" 1>&6
6751 else
6754 ac_ext=C
6755 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6756 ac_cpp='$CXXCPP $CPPFLAGS'
6757 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6758 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6759 cross_compiling=$ac_cv_prog_cxx_cross
6761 cat > conftest.$ac_ext <<EOF
6762 #line 6763 "configure"
6763 #include "confdefs.h"
6764 #include <math.h>
6765 int main() {
6766 _copysign(0, 0);
6767 ; return 0; }
6769 if { (eval echo configure:6770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6770 rm -rf conftest*
6771 glibcpp_cv_func__copysign_use=yes
6772 else
6773 echo "configure: failed program was:" >&5
6774 cat conftest.$ac_ext >&5
6775 rm -rf conftest*
6776 glibcpp_cv_func__copysign_use=no
6778 rm -f conftest*
6779 ac_ext=c
6780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6781 ac_cpp='$CPP $CPPFLAGS'
6782 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6783 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6784 cross_compiling=$ac_cv_prog_cc_cross
6790 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
6792 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
6793 for ac_func in _copysign
6795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6796 echo "configure:6797: checking for $ac_func" >&5
6797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6798 echo $ac_n "(cached) $ac_c" 1>&6
6799 else
6800 cat > conftest.$ac_ext <<EOF
6801 #line 6802 "configure"
6802 #include "confdefs.h"
6803 /* System header to define __stub macros and hopefully few prototypes,
6804 which can conflict with char $ac_func(); below. */
6805 #include <assert.h>
6806 /* Override any gcc2 internal prototype to avoid an error. */
6807 /* We use char because int might match the return type of a gcc2
6808 builtin and then its argument prototype would still apply. */
6809 char $ac_func();
6811 int main() {
6813 /* The GNU C library defines this for functions which it implements
6814 to always fail with ENOSYS. Some functions are actually named
6815 something starting with __ and the normal name is an alias. */
6816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6817 choke me
6818 #else
6819 $ac_func();
6820 #endif
6822 ; return 0; }
6824 if { (eval echo configure:6825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6825 rm -rf conftest*
6826 eval "ac_cv_func_$ac_func=yes"
6827 else
6828 echo "configure: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6830 rm -rf conftest*
6831 eval "ac_cv_func_$ac_func=no"
6833 rm -f conftest*
6836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6837 echo "$ac_t""yes" 1>&6
6838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6839 cat >> confdefs.h <<EOF
6840 #define $ac_tr_func 1
6843 else
6844 echo "$ac_t""no" 1>&6
6846 done
6853 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
6854 echo "configure:6855: checking for sincos declaration" >&5
6855 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
6856 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
6857 echo $ac_n "(cached) $ac_c" 1>&6
6858 else
6861 ac_ext=C
6862 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6863 ac_cpp='$CXXCPP $CPPFLAGS'
6864 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6865 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6866 cross_compiling=$ac_cv_prog_cxx_cross
6868 cat > conftest.$ac_ext <<EOF
6869 #line 6870 "configure"
6870 #include "confdefs.h"
6871 #include <math.h>
6872 int main() {
6873 sincos(0, 0, 0);
6874 ; return 0; }
6876 if { (eval echo configure:6877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6877 rm -rf conftest*
6878 glibcpp_cv_func_sincos_use=yes
6879 else
6880 echo "configure: failed program was:" >&5
6881 cat conftest.$ac_ext >&5
6882 rm -rf conftest*
6883 glibcpp_cv_func_sincos_use=no
6885 rm -f conftest*
6886 ac_ext=c
6887 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6888 ac_cpp='$CPP $CPPFLAGS'
6889 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6890 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6891 cross_compiling=$ac_cv_prog_cc_cross
6897 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
6899 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
6900 for ac_func in sincos
6902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6903 echo "configure:6904: checking for $ac_func" >&5
6904 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6905 echo $ac_n "(cached) $ac_c" 1>&6
6906 else
6907 cat > conftest.$ac_ext <<EOF
6908 #line 6909 "configure"
6909 #include "confdefs.h"
6910 /* System header to define __stub macros and hopefully few prototypes,
6911 which can conflict with char $ac_func(); below. */
6912 #include <assert.h>
6913 /* Override any gcc2 internal prototype to avoid an error. */
6914 /* We use char because int might match the return type of a gcc2
6915 builtin and then its argument prototype would still apply. */
6916 char $ac_func();
6918 int main() {
6920 /* The GNU C library defines this for functions which it implements
6921 to always fail with ENOSYS. Some functions are actually named
6922 something starting with __ and the normal name is an alias. */
6923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6924 choke me
6925 #else
6926 $ac_func();
6927 #endif
6929 ; return 0; }
6931 if { (eval echo configure:6932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6932 rm -rf conftest*
6933 eval "ac_cv_func_$ac_func=yes"
6934 else
6935 echo "configure: failed program was:" >&5
6936 cat conftest.$ac_ext >&5
6937 rm -rf conftest*
6938 eval "ac_cv_func_$ac_func=no"
6940 rm -f conftest*
6943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6944 echo "$ac_t""yes" 1>&6
6945 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6946 cat >> confdefs.h <<EOF
6947 #define $ac_tr_func 1
6950 else
6951 echo "$ac_t""no" 1>&6
6953 done
6955 else
6957 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
6958 echo "configure:6959: checking for _sincos declaration" >&5
6959 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
6960 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
6961 echo $ac_n "(cached) $ac_c" 1>&6
6962 else
6965 ac_ext=C
6966 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6967 ac_cpp='$CXXCPP $CPPFLAGS'
6968 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6969 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6970 cross_compiling=$ac_cv_prog_cxx_cross
6972 cat > conftest.$ac_ext <<EOF
6973 #line 6974 "configure"
6974 #include "confdefs.h"
6975 #include <math.h>
6976 int main() {
6977 _sincos(0, 0, 0);
6978 ; return 0; }
6980 if { (eval echo configure:6981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6981 rm -rf conftest*
6982 glibcpp_cv_func__sincos_use=yes
6983 else
6984 echo "configure: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6986 rm -rf conftest*
6987 glibcpp_cv_func__sincos_use=no
6989 rm -f conftest*
6990 ac_ext=c
6991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6992 ac_cpp='$CPP $CPPFLAGS'
6993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6995 cross_compiling=$ac_cv_prog_cc_cross
7001 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7003 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7004 for ac_func in _sincos
7006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7007 echo "configure:7008: checking for $ac_func" >&5
7008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7009 echo $ac_n "(cached) $ac_c" 1>&6
7010 else
7011 cat > conftest.$ac_ext <<EOF
7012 #line 7013 "configure"
7013 #include "confdefs.h"
7014 /* System header to define __stub macros and hopefully few prototypes,
7015 which can conflict with char $ac_func(); below. */
7016 #include <assert.h>
7017 /* Override any gcc2 internal prototype to avoid an error. */
7018 /* We use char because int might match the return type of a gcc2
7019 builtin and then its argument prototype would still apply. */
7020 char $ac_func();
7022 int main() {
7024 /* The GNU C library defines this for functions which it implements
7025 to always fail with ENOSYS. Some functions are actually named
7026 something starting with __ and the normal name is an alias. */
7027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7028 choke me
7029 #else
7030 $ac_func();
7031 #endif
7033 ; return 0; }
7035 if { (eval echo configure:7036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7036 rm -rf conftest*
7037 eval "ac_cv_func_$ac_func=yes"
7038 else
7039 echo "configure: failed program was:" >&5
7040 cat conftest.$ac_ext >&5
7041 rm -rf conftest*
7042 eval "ac_cv_func_$ac_func=no"
7044 rm -f conftest*
7047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7048 echo "$ac_t""yes" 1>&6
7049 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7050 cat >> confdefs.h <<EOF
7051 #define $ac_tr_func 1
7054 else
7055 echo "$ac_t""no" 1>&6
7057 done
7064 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7065 echo "configure:7066: checking for fpclass declaration" >&5
7066 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7067 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7068 echo $ac_n "(cached) $ac_c" 1>&6
7069 else
7072 ac_ext=C
7073 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7074 ac_cpp='$CXXCPP $CPPFLAGS'
7075 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7076 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7077 cross_compiling=$ac_cv_prog_cxx_cross
7079 cat > conftest.$ac_ext <<EOF
7080 #line 7081 "configure"
7081 #include "confdefs.h"
7082 #include <math.h>
7083 #ifdef HAVE_IEEEFP_H
7084 #include <ieeefp.h>
7085 #endif
7087 int main() {
7088 fpclass(0);
7089 ; return 0; }
7091 if { (eval echo configure:7092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7092 rm -rf conftest*
7093 glibcpp_cv_func_fpclass_use=yes
7094 else
7095 echo "configure: failed program was:" >&5
7096 cat conftest.$ac_ext >&5
7097 rm -rf conftest*
7098 glibcpp_cv_func_fpclass_use=no
7100 rm -f conftest*
7101 ac_ext=c
7102 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7103 ac_cpp='$CPP $CPPFLAGS'
7104 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7105 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7106 cross_compiling=$ac_cv_prog_cc_cross
7112 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7114 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7115 for ac_func in fpclass
7117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7118 echo "configure:7119: checking for $ac_func" >&5
7119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7120 echo $ac_n "(cached) $ac_c" 1>&6
7121 else
7122 cat > conftest.$ac_ext <<EOF
7123 #line 7124 "configure"
7124 #include "confdefs.h"
7125 /* System header to define __stub macros and hopefully few prototypes,
7126 which can conflict with char $ac_func(); below. */
7127 #include <assert.h>
7128 /* Override any gcc2 internal prototype to avoid an error. */
7129 /* We use char because int might match the return type of a gcc2
7130 builtin and then its argument prototype would still apply. */
7131 char $ac_func();
7133 int main() {
7135 /* The GNU C library defines this for functions which it implements
7136 to always fail with ENOSYS. Some functions are actually named
7137 something starting with __ and the normal name is an alias. */
7138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7139 choke me
7140 #else
7141 $ac_func();
7142 #endif
7144 ; return 0; }
7146 if { (eval echo configure:7147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7147 rm -rf conftest*
7148 eval "ac_cv_func_$ac_func=yes"
7149 else
7150 echo "configure: failed program was:" >&5
7151 cat conftest.$ac_ext >&5
7152 rm -rf conftest*
7153 eval "ac_cv_func_$ac_func=no"
7155 rm -f conftest*
7158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7159 echo "$ac_t""yes" 1>&6
7160 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7161 cat >> confdefs.h <<EOF
7162 #define $ac_tr_func 1
7165 else
7166 echo "$ac_t""no" 1>&6
7168 done
7170 else
7172 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7173 echo "configure:7174: checking for _fpclass declaration" >&5
7174 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7175 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7176 echo $ac_n "(cached) $ac_c" 1>&6
7177 else
7180 ac_ext=C
7181 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7182 ac_cpp='$CXXCPP $CPPFLAGS'
7183 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7184 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7185 cross_compiling=$ac_cv_prog_cxx_cross
7187 cat > conftest.$ac_ext <<EOF
7188 #line 7189 "configure"
7189 #include "confdefs.h"
7190 #include <math.h>
7191 #ifdef HAVE_IEEEFP_H
7192 #include <ieeefp.h>
7193 #endif
7195 int main() {
7196 _fpclass(0);
7197 ; return 0; }
7199 if { (eval echo configure:7200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7200 rm -rf conftest*
7201 glibcpp_cv_func__fpclass_use=yes
7202 else
7203 echo "configure: failed program was:" >&5
7204 cat conftest.$ac_ext >&5
7205 rm -rf conftest*
7206 glibcpp_cv_func__fpclass_use=no
7208 rm -f conftest*
7209 ac_ext=c
7210 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7211 ac_cpp='$CPP $CPPFLAGS'
7212 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7213 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7214 cross_compiling=$ac_cv_prog_cc_cross
7220 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7222 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7223 for ac_func in _fpclass
7225 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7226 echo "configure:7227: checking for $ac_func" >&5
7227 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7228 echo $ac_n "(cached) $ac_c" 1>&6
7229 else
7230 cat > conftest.$ac_ext <<EOF
7231 #line 7232 "configure"
7232 #include "confdefs.h"
7233 /* System header to define __stub macros and hopefully few prototypes,
7234 which can conflict with char $ac_func(); below. */
7235 #include <assert.h>
7236 /* Override any gcc2 internal prototype to avoid an error. */
7237 /* We use char because int might match the return type of a gcc2
7238 builtin and then its argument prototype would still apply. */
7239 char $ac_func();
7241 int main() {
7243 /* The GNU C library defines this for functions which it implements
7244 to always fail with ENOSYS. Some functions are actually named
7245 something starting with __ and the normal name is an alias. */
7246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7247 choke me
7248 #else
7249 $ac_func();
7250 #endif
7252 ; return 0; }
7254 if { (eval echo configure:7255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7255 rm -rf conftest*
7256 eval "ac_cv_func_$ac_func=yes"
7257 else
7258 echo "configure: failed program was:" >&5
7259 cat conftest.$ac_ext >&5
7260 rm -rf conftest*
7261 eval "ac_cv_func_$ac_func=no"
7263 rm -f conftest*
7266 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7267 echo "$ac_t""yes" 1>&6
7268 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7269 cat >> confdefs.h <<EOF
7270 #define $ac_tr_func 1
7273 else
7274 echo "$ac_t""no" 1>&6
7276 done
7283 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7284 echo "configure:7285: checking for qfpclass declaration" >&5
7285 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7286 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7287 echo $ac_n "(cached) $ac_c" 1>&6
7288 else
7291 ac_ext=C
7292 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7293 ac_cpp='$CXXCPP $CPPFLAGS'
7294 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7295 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7296 cross_compiling=$ac_cv_prog_cxx_cross
7298 cat > conftest.$ac_ext <<EOF
7299 #line 7300 "configure"
7300 #include "confdefs.h"
7301 #include <math.h>
7302 #ifdef HAVE_IEEEFP_H
7303 #include <ieeefp.h>
7304 #endif
7306 int main() {
7307 qfpclass(0);
7308 ; return 0; }
7310 if { (eval echo configure:7311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7311 rm -rf conftest*
7312 glibcpp_cv_func_qfpclass_use=yes
7313 else
7314 echo "configure: failed program was:" >&5
7315 cat conftest.$ac_ext >&5
7316 rm -rf conftest*
7317 glibcpp_cv_func_qfpclass_use=no
7319 rm -f conftest*
7320 ac_ext=c
7321 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7322 ac_cpp='$CPP $CPPFLAGS'
7323 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7324 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7325 cross_compiling=$ac_cv_prog_cc_cross
7331 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7333 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7334 for ac_func in qfpclass
7336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7337 echo "configure:7338: checking for $ac_func" >&5
7338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7339 echo $ac_n "(cached) $ac_c" 1>&6
7340 else
7341 cat > conftest.$ac_ext <<EOF
7342 #line 7343 "configure"
7343 #include "confdefs.h"
7344 /* System header to define __stub macros and hopefully few prototypes,
7345 which can conflict with char $ac_func(); below. */
7346 #include <assert.h>
7347 /* Override any gcc2 internal prototype to avoid an error. */
7348 /* We use char because int might match the return type of a gcc2
7349 builtin and then its argument prototype would still apply. */
7350 char $ac_func();
7352 int main() {
7354 /* The GNU C library defines this for functions which it implements
7355 to always fail with ENOSYS. Some functions are actually named
7356 something starting with __ and the normal name is an alias. */
7357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7358 choke me
7359 #else
7360 $ac_func();
7361 #endif
7363 ; return 0; }
7365 if { (eval echo configure:7366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7366 rm -rf conftest*
7367 eval "ac_cv_func_$ac_func=yes"
7368 else
7369 echo "configure: failed program was:" >&5
7370 cat conftest.$ac_ext >&5
7371 rm -rf conftest*
7372 eval "ac_cv_func_$ac_func=no"
7374 rm -f conftest*
7377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7378 echo "$ac_t""yes" 1>&6
7379 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7380 cat >> confdefs.h <<EOF
7381 #define $ac_tr_func 1
7384 else
7385 echo "$ac_t""no" 1>&6
7387 done
7389 else
7391 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7392 echo "configure:7393: checking for _qfpclass declaration" >&5
7393 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7394 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7395 echo $ac_n "(cached) $ac_c" 1>&6
7396 else
7399 ac_ext=C
7400 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7401 ac_cpp='$CXXCPP $CPPFLAGS'
7402 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7403 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7404 cross_compiling=$ac_cv_prog_cxx_cross
7406 cat > conftest.$ac_ext <<EOF
7407 #line 7408 "configure"
7408 #include "confdefs.h"
7409 #include <math.h>
7410 #ifdef HAVE_IEEEFP_H
7411 #include <ieeefp.h>
7412 #endif
7414 int main() {
7415 _qfpclass(0);
7416 ; return 0; }
7418 if { (eval echo configure:7419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7419 rm -rf conftest*
7420 glibcpp_cv_func__qfpclass_use=yes
7421 else
7422 echo "configure: failed program was:" >&5
7423 cat conftest.$ac_ext >&5
7424 rm -rf conftest*
7425 glibcpp_cv_func__qfpclass_use=no
7427 rm -f conftest*
7428 ac_ext=c
7429 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7430 ac_cpp='$CPP $CPPFLAGS'
7431 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7432 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7433 cross_compiling=$ac_cv_prog_cc_cross
7439 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7441 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7442 for ac_func in _qfpclass
7444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7445 echo "configure:7446: checking for $ac_func" >&5
7446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7447 echo $ac_n "(cached) $ac_c" 1>&6
7448 else
7449 cat > conftest.$ac_ext <<EOF
7450 #line 7451 "configure"
7451 #include "confdefs.h"
7452 /* System header to define __stub macros and hopefully few prototypes,
7453 which can conflict with char $ac_func(); below. */
7454 #include <assert.h>
7455 /* Override any gcc2 internal prototype to avoid an error. */
7456 /* We use char because int might match the return type of a gcc2
7457 builtin and then its argument prototype would still apply. */
7458 char $ac_func();
7460 int main() {
7462 /* The GNU C library defines this for functions which it implements
7463 to always fail with ENOSYS. Some functions are actually named
7464 something starting with __ and the normal name is an alias. */
7465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7466 choke me
7467 #else
7468 $ac_func();
7469 #endif
7471 ; return 0; }
7473 if { (eval echo configure:7474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7474 rm -rf conftest*
7475 eval "ac_cv_func_$ac_func=yes"
7476 else
7477 echo "configure: failed program was:" >&5
7478 cat conftest.$ac_ext >&5
7479 rm -rf conftest*
7480 eval "ac_cv_func_$ac_func=no"
7482 rm -f conftest*
7485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7486 echo "$ac_t""yes" 1>&6
7487 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7488 cat >> confdefs.h <<EOF
7489 #define $ac_tr_func 1
7492 else
7493 echo "$ac_t""no" 1>&6
7495 done
7502 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
7503 echo "configure:7504: checking for float trig functions" >&5
7504 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
7505 echo $ac_n "(cached) $ac_c" 1>&6
7506 else
7509 ac_ext=C
7510 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7511 ac_cpp='$CXXCPP $CPPFLAGS'
7512 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7513 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7514 cross_compiling=$ac_cv_prog_cxx_cross
7516 cat > conftest.$ac_ext <<EOF
7517 #line 7518 "configure"
7518 #include "confdefs.h"
7519 #include <math.h>
7520 int main() {
7521 `for x in acosf asinf atanf \
7522 cosf sinf tanf \
7523 coshf sinhf tanhf; do echo "$x (0);"; done`
7524 ; return 0; }
7526 if { (eval echo configure:7527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7527 rm -rf conftest*
7528 glibcpp_cv_func_float_trig_use=yes
7529 else
7530 echo "configure: failed program was:" >&5
7531 cat conftest.$ac_ext >&5
7532 rm -rf conftest*
7533 glibcpp_cv_func_float_trig_use=no
7535 rm -f conftest*
7536 ac_ext=c
7537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7538 ac_cpp='$CPP $CPPFLAGS'
7539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7541 cross_compiling=$ac_cv_prog_cc_cross
7545 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
7546 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
7547 for ac_func in acosf asinf atanf \
7548 cosf sinf tanf \
7549 coshf sinhf tanhf
7551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7552 echo "configure:7553: checking for $ac_func" >&5
7553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7554 echo $ac_n "(cached) $ac_c" 1>&6
7555 else
7556 cat > conftest.$ac_ext <<EOF
7557 #line 7558 "configure"
7558 #include "confdefs.h"
7559 /* System header to define __stub macros and hopefully few prototypes,
7560 which can conflict with char $ac_func(); below. */
7561 #include <assert.h>
7562 /* Override any gcc2 internal prototype to avoid an error. */
7563 /* We use char because int might match the return type of a gcc2
7564 builtin and then its argument prototype would still apply. */
7565 char $ac_func();
7567 int main() {
7569 /* The GNU C library defines this for functions which it implements
7570 to always fail with ENOSYS. Some functions are actually named
7571 something starting with __ and the normal name is an alias. */
7572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7573 choke me
7574 #else
7575 $ac_func();
7576 #endif
7578 ; return 0; }
7580 if { (eval echo configure:7581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7581 rm -rf conftest*
7582 eval "ac_cv_func_$ac_func=yes"
7583 else
7584 echo "configure: failed program was:" >&5
7585 cat conftest.$ac_ext >&5
7586 rm -rf conftest*
7587 eval "ac_cv_func_$ac_func=no"
7589 rm -f conftest*
7592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7593 echo "$ac_t""yes" 1>&6
7594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7595 cat >> confdefs.h <<EOF
7596 #define $ac_tr_func 1
7599 else
7600 echo "$ac_t""no" 1>&6
7602 done
7607 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
7608 echo "configure:7609: checking for float round functions" >&5
7609 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
7610 echo $ac_n "(cached) $ac_c" 1>&6
7611 else
7614 ac_ext=C
7615 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7616 ac_cpp='$CXXCPP $CPPFLAGS'
7617 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7618 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7619 cross_compiling=$ac_cv_prog_cxx_cross
7621 cat > conftest.$ac_ext <<EOF
7622 #line 7623 "configure"
7623 #include "confdefs.h"
7624 #include <math.h>
7625 int main() {
7626 `for x in ceilf floorf; do echo "$x (0);"; done`
7627 ; return 0; }
7629 if { (eval echo configure:7630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7630 rm -rf conftest*
7631 glibcpp_cv_func_float_round_use=yes
7632 else
7633 echo "configure: failed program was:" >&5
7634 cat conftest.$ac_ext >&5
7635 rm -rf conftest*
7636 glibcpp_cv_func_float_round_use=no
7638 rm -f conftest*
7639 ac_ext=c
7640 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7641 ac_cpp='$CPP $CPPFLAGS'
7642 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7643 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7644 cross_compiling=$ac_cv_prog_cc_cross
7648 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
7649 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
7650 for ac_func in ceilf floorf
7652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7653 echo "configure:7654: checking for $ac_func" >&5
7654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7655 echo $ac_n "(cached) $ac_c" 1>&6
7656 else
7657 cat > conftest.$ac_ext <<EOF
7658 #line 7659 "configure"
7659 #include "confdefs.h"
7660 /* System header to define __stub macros and hopefully few prototypes,
7661 which can conflict with char $ac_func(); below. */
7662 #include <assert.h>
7663 /* Override any gcc2 internal prototype to avoid an error. */
7664 /* We use char because int might match the return type of a gcc2
7665 builtin and then its argument prototype would still apply. */
7666 char $ac_func();
7668 int main() {
7670 /* The GNU C library defines this for functions which it implements
7671 to always fail with ENOSYS. Some functions are actually named
7672 something starting with __ and the normal name is an alias. */
7673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7674 choke me
7675 #else
7676 $ac_func();
7677 #endif
7679 ; return 0; }
7681 if { (eval echo configure:7682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7682 rm -rf conftest*
7683 eval "ac_cv_func_$ac_func=yes"
7684 else
7685 echo "configure: failed program was:" >&5
7686 cat conftest.$ac_ext >&5
7687 rm -rf conftest*
7688 eval "ac_cv_func_$ac_func=no"
7690 rm -f conftest*
7693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7694 echo "$ac_t""yes" 1>&6
7695 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7696 cat >> confdefs.h <<EOF
7697 #define $ac_tr_func 1
7700 else
7701 echo "$ac_t""no" 1>&6
7703 done
7709 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
7710 echo "configure:7711: checking for isnanf declaration" >&5
7711 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
7712 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
7713 echo $ac_n "(cached) $ac_c" 1>&6
7714 else
7717 ac_ext=C
7718 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7719 ac_cpp='$CXXCPP $CPPFLAGS'
7720 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7721 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7722 cross_compiling=$ac_cv_prog_cxx_cross
7724 cat > conftest.$ac_ext <<EOF
7725 #line 7726 "configure"
7726 #include "confdefs.h"
7727 #include <math.h>
7728 #ifdef HAVE_IEEEFP_H
7729 #include <ieeefp.h>
7730 #endif
7732 int main() {
7733 isnanf(0);
7734 ; return 0; }
7736 if { (eval echo configure:7737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7737 rm -rf conftest*
7738 glibcpp_cv_func_isnanf_use=yes
7739 else
7740 echo "configure: failed program was:" >&5
7741 cat conftest.$ac_ext >&5
7742 rm -rf conftest*
7743 glibcpp_cv_func_isnanf_use=no
7745 rm -f conftest*
7746 ac_ext=c
7747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7748 ac_cpp='$CPP $CPPFLAGS'
7749 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7750 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7751 cross_compiling=$ac_cv_prog_cc_cross
7757 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
7759 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
7760 for ac_func in isnanf
7762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7763 echo "configure:7764: checking for $ac_func" >&5
7764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7765 echo $ac_n "(cached) $ac_c" 1>&6
7766 else
7767 cat > conftest.$ac_ext <<EOF
7768 #line 7769 "configure"
7769 #include "confdefs.h"
7770 /* System header to define __stub macros and hopefully few prototypes,
7771 which can conflict with char $ac_func(); below. */
7772 #include <assert.h>
7773 /* Override any gcc2 internal prototype to avoid an error. */
7774 /* We use char because int might match the return type of a gcc2
7775 builtin and then its argument prototype would still apply. */
7776 char $ac_func();
7778 int main() {
7780 /* The GNU C library defines this for functions which it implements
7781 to always fail with ENOSYS. Some functions are actually named
7782 something starting with __ and the normal name is an alias. */
7783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7784 choke me
7785 #else
7786 $ac_func();
7787 #endif
7789 ; return 0; }
7791 if { (eval echo configure:7792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7792 rm -rf conftest*
7793 eval "ac_cv_func_$ac_func=yes"
7794 else
7795 echo "configure: failed program was:" >&5
7796 cat conftest.$ac_ext >&5
7797 rm -rf conftest*
7798 eval "ac_cv_func_$ac_func=no"
7800 rm -f conftest*
7803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7804 echo "$ac_t""yes" 1>&6
7805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7806 cat >> confdefs.h <<EOF
7807 #define $ac_tr_func 1
7810 else
7811 echo "$ac_t""no" 1>&6
7813 done
7815 else
7817 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
7818 echo "configure:7819: checking for _isnanf declaration" >&5
7819 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
7820 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
7821 echo $ac_n "(cached) $ac_c" 1>&6
7822 else
7825 ac_ext=C
7826 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7827 ac_cpp='$CXXCPP $CPPFLAGS'
7828 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7829 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7830 cross_compiling=$ac_cv_prog_cxx_cross
7832 cat > conftest.$ac_ext <<EOF
7833 #line 7834 "configure"
7834 #include "confdefs.h"
7835 #include <math.h>
7836 #ifdef HAVE_IEEEFP_H
7837 #include <ieeefp.h>
7838 #endif
7840 int main() {
7841 _isnanf(0);
7842 ; return 0; }
7844 if { (eval echo configure:7845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7845 rm -rf conftest*
7846 glibcpp_cv_func__isnanf_use=yes
7847 else
7848 echo "configure: failed program was:" >&5
7849 cat conftest.$ac_ext >&5
7850 rm -rf conftest*
7851 glibcpp_cv_func__isnanf_use=no
7853 rm -f conftest*
7854 ac_ext=c
7855 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7856 ac_cpp='$CPP $CPPFLAGS'
7857 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7858 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7859 cross_compiling=$ac_cv_prog_cc_cross
7865 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
7867 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
7868 for ac_func in _isnanf
7870 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7871 echo "configure:7872: checking for $ac_func" >&5
7872 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7873 echo $ac_n "(cached) $ac_c" 1>&6
7874 else
7875 cat > conftest.$ac_ext <<EOF
7876 #line 7877 "configure"
7877 #include "confdefs.h"
7878 /* System header to define __stub macros and hopefully few prototypes,
7879 which can conflict with char $ac_func(); below. */
7880 #include <assert.h>
7881 /* Override any gcc2 internal prototype to avoid an error. */
7882 /* We use char because int might match the return type of a gcc2
7883 builtin and then its argument prototype would still apply. */
7884 char $ac_func();
7886 int main() {
7888 /* The GNU C library defines this for functions which it implements
7889 to always fail with ENOSYS. Some functions are actually named
7890 something starting with __ and the normal name is an alias. */
7891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7892 choke me
7893 #else
7894 $ac_func();
7895 #endif
7897 ; return 0; }
7899 if { (eval echo configure:7900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7900 rm -rf conftest*
7901 eval "ac_cv_func_$ac_func=yes"
7902 else
7903 echo "configure: failed program was:" >&5
7904 cat conftest.$ac_ext >&5
7905 rm -rf conftest*
7906 eval "ac_cv_func_$ac_func=no"
7908 rm -f conftest*
7911 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7912 echo "$ac_t""yes" 1>&6
7913 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7914 cat >> confdefs.h <<EOF
7915 #define $ac_tr_func 1
7918 else
7919 echo "$ac_t""no" 1>&6
7921 done
7928 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
7929 echo "configure:7930: checking for isinff declaration" >&5
7930 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
7931 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
7932 echo $ac_n "(cached) $ac_c" 1>&6
7933 else
7936 ac_ext=C
7937 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7938 ac_cpp='$CXXCPP $CPPFLAGS'
7939 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7940 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7941 cross_compiling=$ac_cv_prog_cxx_cross
7943 cat > conftest.$ac_ext <<EOF
7944 #line 7945 "configure"
7945 #include "confdefs.h"
7946 #include <math.h>
7947 #ifdef HAVE_IEEEFP_H
7948 #include <ieeefp.h>
7949 #endif
7951 int main() {
7952 isinff(0);
7953 ; return 0; }
7955 if { (eval echo configure:7956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7956 rm -rf conftest*
7957 glibcpp_cv_func_isinff_use=yes
7958 else
7959 echo "configure: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7961 rm -rf conftest*
7962 glibcpp_cv_func_isinff_use=no
7964 rm -f conftest*
7965 ac_ext=c
7966 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7967 ac_cpp='$CPP $CPPFLAGS'
7968 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7969 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7970 cross_compiling=$ac_cv_prog_cc_cross
7976 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
7978 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
7979 for ac_func in isinff
7981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7982 echo "configure:7983: checking for $ac_func" >&5
7983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7984 echo $ac_n "(cached) $ac_c" 1>&6
7985 else
7986 cat > conftest.$ac_ext <<EOF
7987 #line 7988 "configure"
7988 #include "confdefs.h"
7989 /* System header to define __stub macros and hopefully few prototypes,
7990 which can conflict with char $ac_func(); below. */
7991 #include <assert.h>
7992 /* Override any gcc2 internal prototype to avoid an error. */
7993 /* We use char because int might match the return type of a gcc2
7994 builtin and then its argument prototype would still apply. */
7995 char $ac_func();
7997 int main() {
7999 /* The GNU C library defines this for functions which it implements
8000 to always fail with ENOSYS. Some functions are actually named
8001 something starting with __ and the normal name is an alias. */
8002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8003 choke me
8004 #else
8005 $ac_func();
8006 #endif
8008 ; return 0; }
8010 if { (eval echo configure:8011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8011 rm -rf conftest*
8012 eval "ac_cv_func_$ac_func=yes"
8013 else
8014 echo "configure: failed program was:" >&5
8015 cat conftest.$ac_ext >&5
8016 rm -rf conftest*
8017 eval "ac_cv_func_$ac_func=no"
8019 rm -f conftest*
8022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8023 echo "$ac_t""yes" 1>&6
8024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8025 cat >> confdefs.h <<EOF
8026 #define $ac_tr_func 1
8029 else
8030 echo "$ac_t""no" 1>&6
8032 done
8034 else
8036 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8037 echo "configure:8038: checking for _isinff declaration" >&5
8038 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8039 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8040 echo $ac_n "(cached) $ac_c" 1>&6
8041 else
8044 ac_ext=C
8045 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8046 ac_cpp='$CXXCPP $CPPFLAGS'
8047 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8048 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8049 cross_compiling=$ac_cv_prog_cxx_cross
8051 cat > conftest.$ac_ext <<EOF
8052 #line 8053 "configure"
8053 #include "confdefs.h"
8054 #include <math.h>
8055 #ifdef HAVE_IEEEFP_H
8056 #include <ieeefp.h>
8057 #endif
8059 int main() {
8060 _isinff(0);
8061 ; return 0; }
8063 if { (eval echo configure:8064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8064 rm -rf conftest*
8065 glibcpp_cv_func__isinff_use=yes
8066 else
8067 echo "configure: failed program was:" >&5
8068 cat conftest.$ac_ext >&5
8069 rm -rf conftest*
8070 glibcpp_cv_func__isinff_use=no
8072 rm -f conftest*
8073 ac_ext=c
8074 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8075 ac_cpp='$CPP $CPPFLAGS'
8076 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8077 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8078 cross_compiling=$ac_cv_prog_cc_cross
8084 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8086 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8087 for ac_func in _isinff
8089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8090 echo "configure:8091: checking for $ac_func" >&5
8091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8092 echo $ac_n "(cached) $ac_c" 1>&6
8093 else
8094 cat > conftest.$ac_ext <<EOF
8095 #line 8096 "configure"
8096 #include "confdefs.h"
8097 /* System header to define __stub macros and hopefully few prototypes,
8098 which can conflict with char $ac_func(); below. */
8099 #include <assert.h>
8100 /* Override any gcc2 internal prototype to avoid an error. */
8101 /* We use char because int might match the return type of a gcc2
8102 builtin and then its argument prototype would still apply. */
8103 char $ac_func();
8105 int main() {
8107 /* The GNU C library defines this for functions which it implements
8108 to always fail with ENOSYS. Some functions are actually named
8109 something starting with __ and the normal name is an alias. */
8110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8111 choke me
8112 #else
8113 $ac_func();
8114 #endif
8116 ; return 0; }
8118 if { (eval echo configure:8119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8119 rm -rf conftest*
8120 eval "ac_cv_func_$ac_func=yes"
8121 else
8122 echo "configure: failed program was:" >&5
8123 cat conftest.$ac_ext >&5
8124 rm -rf conftest*
8125 eval "ac_cv_func_$ac_func=no"
8127 rm -f conftest*
8130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8131 echo "$ac_t""yes" 1>&6
8132 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8133 cat >> confdefs.h <<EOF
8134 #define $ac_tr_func 1
8137 else
8138 echo "$ac_t""no" 1>&6
8140 done
8147 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
8148 echo "configure:8149: checking for fabsf declaration" >&5
8149 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
8150 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
8151 echo $ac_n "(cached) $ac_c" 1>&6
8152 else
8155 ac_ext=C
8156 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8157 ac_cpp='$CXXCPP $CPPFLAGS'
8158 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8159 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8160 cross_compiling=$ac_cv_prog_cxx_cross
8162 cat > conftest.$ac_ext <<EOF
8163 #line 8164 "configure"
8164 #include "confdefs.h"
8165 #include <math.h>
8166 #ifdef HAVE_IEEEFP_H
8167 #include <ieeefp.h>
8168 #endif
8170 int main() {
8171 fabsf(0);
8172 ; return 0; }
8174 if { (eval echo configure:8175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8175 rm -rf conftest*
8176 glibcpp_cv_func_fabsf_use=yes
8177 else
8178 echo "configure: failed program was:" >&5
8179 cat conftest.$ac_ext >&5
8180 rm -rf conftest*
8181 glibcpp_cv_func_fabsf_use=no
8183 rm -f conftest*
8184 ac_ext=c
8185 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8186 ac_cpp='$CPP $CPPFLAGS'
8187 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8188 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8189 cross_compiling=$ac_cv_prog_cc_cross
8195 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
8197 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
8198 for ac_func in fabsf
8200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8201 echo "configure:8202: checking for $ac_func" >&5
8202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8203 echo $ac_n "(cached) $ac_c" 1>&6
8204 else
8205 cat > conftest.$ac_ext <<EOF
8206 #line 8207 "configure"
8207 #include "confdefs.h"
8208 /* System header to define __stub macros and hopefully few prototypes,
8209 which can conflict with char $ac_func(); below. */
8210 #include <assert.h>
8211 /* Override any gcc2 internal prototype to avoid an error. */
8212 /* We use char because int might match the return type of a gcc2
8213 builtin and then its argument prototype would still apply. */
8214 char $ac_func();
8216 int main() {
8218 /* The GNU C library defines this for functions which it implements
8219 to always fail with ENOSYS. Some functions are actually named
8220 something starting with __ and the normal name is an alias. */
8221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8222 choke me
8223 #else
8224 $ac_func();
8225 #endif
8227 ; return 0; }
8229 if { (eval echo configure:8230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8230 rm -rf conftest*
8231 eval "ac_cv_func_$ac_func=yes"
8232 else
8233 echo "configure: failed program was:" >&5
8234 cat conftest.$ac_ext >&5
8235 rm -rf conftest*
8236 eval "ac_cv_func_$ac_func=no"
8238 rm -f conftest*
8241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8242 echo "$ac_t""yes" 1>&6
8243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8244 cat >> confdefs.h <<EOF
8245 #define $ac_tr_func 1
8248 else
8249 echo "$ac_t""no" 1>&6
8251 done
8253 else
8255 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
8256 echo "configure:8257: checking for _fabsf declaration" >&5
8257 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
8258 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
8259 echo $ac_n "(cached) $ac_c" 1>&6
8260 else
8263 ac_ext=C
8264 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8265 ac_cpp='$CXXCPP $CPPFLAGS'
8266 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8267 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8268 cross_compiling=$ac_cv_prog_cxx_cross
8270 cat > conftest.$ac_ext <<EOF
8271 #line 8272 "configure"
8272 #include "confdefs.h"
8273 #include <math.h>
8274 #ifdef HAVE_IEEEFP_H
8275 #include <ieeefp.h>
8276 #endif
8278 int main() {
8279 _fabsf(0);
8280 ; return 0; }
8282 if { (eval echo configure:8283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8283 rm -rf conftest*
8284 glibcpp_cv_func__fabsf_use=yes
8285 else
8286 echo "configure: failed program was:" >&5
8287 cat conftest.$ac_ext >&5
8288 rm -rf conftest*
8289 glibcpp_cv_func__fabsf_use=no
8291 rm -f conftest*
8292 ac_ext=c
8293 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8294 ac_cpp='$CPP $CPPFLAGS'
8295 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8296 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8297 cross_compiling=$ac_cv_prog_cc_cross
8303 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
8305 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
8306 for ac_func in _fabsf
8308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8309 echo "configure:8310: checking for $ac_func" >&5
8310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8311 echo $ac_n "(cached) $ac_c" 1>&6
8312 else
8313 cat > conftest.$ac_ext <<EOF
8314 #line 8315 "configure"
8315 #include "confdefs.h"
8316 /* System header to define __stub macros and hopefully few prototypes,
8317 which can conflict with char $ac_func(); below. */
8318 #include <assert.h>
8319 /* Override any gcc2 internal prototype to avoid an error. */
8320 /* We use char because int might match the return type of a gcc2
8321 builtin and then its argument prototype would still apply. */
8322 char $ac_func();
8324 int main() {
8326 /* The GNU C library defines this for functions which it implements
8327 to always fail with ENOSYS. Some functions are actually named
8328 something starting with __ and the normal name is an alias. */
8329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8330 choke me
8331 #else
8332 $ac_func();
8333 #endif
8335 ; return 0; }
8337 if { (eval echo configure:8338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8338 rm -rf conftest*
8339 eval "ac_cv_func_$ac_func=yes"
8340 else
8341 echo "configure: failed program was:" >&5
8342 cat conftest.$ac_ext >&5
8343 rm -rf conftest*
8344 eval "ac_cv_func_$ac_func=no"
8346 rm -f conftest*
8349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8350 echo "$ac_t""yes" 1>&6
8351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8352 cat >> confdefs.h <<EOF
8353 #define $ac_tr_func 1
8356 else
8357 echo "$ac_t""no" 1>&6
8359 done
8366 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
8367 echo "configure:8368: checking for fmodf declaration" >&5
8368 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
8369 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
8370 echo $ac_n "(cached) $ac_c" 1>&6
8371 else
8374 ac_ext=C
8375 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8376 ac_cpp='$CXXCPP $CPPFLAGS'
8377 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8378 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8379 cross_compiling=$ac_cv_prog_cxx_cross
8381 cat > conftest.$ac_ext <<EOF
8382 #line 8383 "configure"
8383 #include "confdefs.h"
8384 #include <math.h>
8385 int main() {
8386 fmodf(0, 0);
8387 ; return 0; }
8389 if { (eval echo configure:8390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8390 rm -rf conftest*
8391 glibcpp_cv_func_fmodf_use=yes
8392 else
8393 echo "configure: failed program was:" >&5
8394 cat conftest.$ac_ext >&5
8395 rm -rf conftest*
8396 glibcpp_cv_func_fmodf_use=no
8398 rm -f conftest*
8399 ac_ext=c
8400 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8401 ac_cpp='$CPP $CPPFLAGS'
8402 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8403 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8404 cross_compiling=$ac_cv_prog_cc_cross
8410 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
8412 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
8413 for ac_func in fmodf
8415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8416 echo "configure:8417: checking for $ac_func" >&5
8417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8418 echo $ac_n "(cached) $ac_c" 1>&6
8419 else
8420 cat > conftest.$ac_ext <<EOF
8421 #line 8422 "configure"
8422 #include "confdefs.h"
8423 /* System header to define __stub macros and hopefully few prototypes,
8424 which can conflict with char $ac_func(); below. */
8425 #include <assert.h>
8426 /* Override any gcc2 internal prototype to avoid an error. */
8427 /* We use char because int might match the return type of a gcc2
8428 builtin and then its argument prototype would still apply. */
8429 char $ac_func();
8431 int main() {
8433 /* The GNU C library defines this for functions which it implements
8434 to always fail with ENOSYS. Some functions are actually named
8435 something starting with __ and the normal name is an alias. */
8436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8437 choke me
8438 #else
8439 $ac_func();
8440 #endif
8442 ; return 0; }
8444 if { (eval echo configure:8445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8445 rm -rf conftest*
8446 eval "ac_cv_func_$ac_func=yes"
8447 else
8448 echo "configure: failed program was:" >&5
8449 cat conftest.$ac_ext >&5
8450 rm -rf conftest*
8451 eval "ac_cv_func_$ac_func=no"
8453 rm -f conftest*
8456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8457 echo "$ac_t""yes" 1>&6
8458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8459 cat >> confdefs.h <<EOF
8460 #define $ac_tr_func 1
8463 else
8464 echo "$ac_t""no" 1>&6
8466 done
8468 else
8470 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
8471 echo "configure:8472: checking for _fmodf declaration" >&5
8472 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
8473 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
8474 echo $ac_n "(cached) $ac_c" 1>&6
8475 else
8478 ac_ext=C
8479 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8480 ac_cpp='$CXXCPP $CPPFLAGS'
8481 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8482 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8483 cross_compiling=$ac_cv_prog_cxx_cross
8485 cat > conftest.$ac_ext <<EOF
8486 #line 8487 "configure"
8487 #include "confdefs.h"
8488 #include <math.h>
8489 int main() {
8490 _fmodf(0, 0);
8491 ; return 0; }
8493 if { (eval echo configure:8494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8494 rm -rf conftest*
8495 glibcpp_cv_func__fmodf_use=yes
8496 else
8497 echo "configure: failed program was:" >&5
8498 cat conftest.$ac_ext >&5
8499 rm -rf conftest*
8500 glibcpp_cv_func__fmodf_use=no
8502 rm -f conftest*
8503 ac_ext=c
8504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8505 ac_cpp='$CPP $CPPFLAGS'
8506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8507 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8508 cross_compiling=$ac_cv_prog_cc_cross
8514 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
8516 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
8517 for ac_func in _fmodf
8519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8520 echo "configure:8521: checking for $ac_func" >&5
8521 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8522 echo $ac_n "(cached) $ac_c" 1>&6
8523 else
8524 cat > conftest.$ac_ext <<EOF
8525 #line 8526 "configure"
8526 #include "confdefs.h"
8527 /* System header to define __stub macros and hopefully few prototypes,
8528 which can conflict with char $ac_func(); below. */
8529 #include <assert.h>
8530 /* Override any gcc2 internal prototype to avoid an error. */
8531 /* We use char because int might match the return type of a gcc2
8532 builtin and then its argument prototype would still apply. */
8533 char $ac_func();
8535 int main() {
8537 /* The GNU C library defines this for functions which it implements
8538 to always fail with ENOSYS. Some functions are actually named
8539 something starting with __ and the normal name is an alias. */
8540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8541 choke me
8542 #else
8543 $ac_func();
8544 #endif
8546 ; return 0; }
8548 if { (eval echo configure:8549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8549 rm -rf conftest*
8550 eval "ac_cv_func_$ac_func=yes"
8551 else
8552 echo "configure: failed program was:" >&5
8553 cat conftest.$ac_ext >&5
8554 rm -rf conftest*
8555 eval "ac_cv_func_$ac_func=no"
8557 rm -f conftest*
8560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8561 echo "$ac_t""yes" 1>&6
8562 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8563 cat >> confdefs.h <<EOF
8564 #define $ac_tr_func 1
8567 else
8568 echo "$ac_t""no" 1>&6
8570 done
8577 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
8578 echo "configure:8579: checking for frexpf declaration" >&5
8579 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
8580 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
8581 echo $ac_n "(cached) $ac_c" 1>&6
8582 else
8585 ac_ext=C
8586 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8587 ac_cpp='$CXXCPP $CPPFLAGS'
8588 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8589 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8590 cross_compiling=$ac_cv_prog_cxx_cross
8592 cat > conftest.$ac_ext <<EOF
8593 #line 8594 "configure"
8594 #include "confdefs.h"
8595 #include <math.h>
8596 int main() {
8597 frexpf(0, 0);
8598 ; return 0; }
8600 if { (eval echo configure:8601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8601 rm -rf conftest*
8602 glibcpp_cv_func_frexpf_use=yes
8603 else
8604 echo "configure: failed program was:" >&5
8605 cat conftest.$ac_ext >&5
8606 rm -rf conftest*
8607 glibcpp_cv_func_frexpf_use=no
8609 rm -f conftest*
8610 ac_ext=c
8611 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8612 ac_cpp='$CPP $CPPFLAGS'
8613 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8614 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8615 cross_compiling=$ac_cv_prog_cc_cross
8621 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
8623 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
8624 for ac_func in frexpf
8626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8627 echo "configure:8628: checking for $ac_func" >&5
8628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8629 echo $ac_n "(cached) $ac_c" 1>&6
8630 else
8631 cat > conftest.$ac_ext <<EOF
8632 #line 8633 "configure"
8633 #include "confdefs.h"
8634 /* System header to define __stub macros and hopefully few prototypes,
8635 which can conflict with char $ac_func(); below. */
8636 #include <assert.h>
8637 /* Override any gcc2 internal prototype to avoid an error. */
8638 /* We use char because int might match the return type of a gcc2
8639 builtin and then its argument prototype would still apply. */
8640 char $ac_func();
8642 int main() {
8644 /* The GNU C library defines this for functions which it implements
8645 to always fail with ENOSYS. Some functions are actually named
8646 something starting with __ and the normal name is an alias. */
8647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8648 choke me
8649 #else
8650 $ac_func();
8651 #endif
8653 ; return 0; }
8655 if { (eval echo configure:8656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8656 rm -rf conftest*
8657 eval "ac_cv_func_$ac_func=yes"
8658 else
8659 echo "configure: failed program was:" >&5
8660 cat conftest.$ac_ext >&5
8661 rm -rf conftest*
8662 eval "ac_cv_func_$ac_func=no"
8664 rm -f conftest*
8667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8668 echo "$ac_t""yes" 1>&6
8669 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8670 cat >> confdefs.h <<EOF
8671 #define $ac_tr_func 1
8674 else
8675 echo "$ac_t""no" 1>&6
8677 done
8679 else
8681 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
8682 echo "configure:8683: checking for _frexpf declaration" >&5
8683 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
8684 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
8685 echo $ac_n "(cached) $ac_c" 1>&6
8686 else
8689 ac_ext=C
8690 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8691 ac_cpp='$CXXCPP $CPPFLAGS'
8692 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8693 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8694 cross_compiling=$ac_cv_prog_cxx_cross
8696 cat > conftest.$ac_ext <<EOF
8697 #line 8698 "configure"
8698 #include "confdefs.h"
8699 #include <math.h>
8700 int main() {
8701 _frexpf(0, 0);
8702 ; return 0; }
8704 if { (eval echo configure:8705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8705 rm -rf conftest*
8706 glibcpp_cv_func__frexpf_use=yes
8707 else
8708 echo "configure: failed program was:" >&5
8709 cat conftest.$ac_ext >&5
8710 rm -rf conftest*
8711 glibcpp_cv_func__frexpf_use=no
8713 rm -f conftest*
8714 ac_ext=c
8715 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8716 ac_cpp='$CPP $CPPFLAGS'
8717 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8718 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8719 cross_compiling=$ac_cv_prog_cc_cross
8725 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
8727 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
8728 for ac_func in _frexpf
8730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8731 echo "configure:8732: checking for $ac_func" >&5
8732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8733 echo $ac_n "(cached) $ac_c" 1>&6
8734 else
8735 cat > conftest.$ac_ext <<EOF
8736 #line 8737 "configure"
8737 #include "confdefs.h"
8738 /* System header to define __stub macros and hopefully few prototypes,
8739 which can conflict with char $ac_func(); below. */
8740 #include <assert.h>
8741 /* Override any gcc2 internal prototype to avoid an error. */
8742 /* We use char because int might match the return type of a gcc2
8743 builtin and then its argument prototype would still apply. */
8744 char $ac_func();
8746 int main() {
8748 /* The GNU C library defines this for functions which it implements
8749 to always fail with ENOSYS. Some functions are actually named
8750 something starting with __ and the normal name is an alias. */
8751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8752 choke me
8753 #else
8754 $ac_func();
8755 #endif
8757 ; return 0; }
8759 if { (eval echo configure:8760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8760 rm -rf conftest*
8761 eval "ac_cv_func_$ac_func=yes"
8762 else
8763 echo "configure: failed program was:" >&5
8764 cat conftest.$ac_ext >&5
8765 rm -rf conftest*
8766 eval "ac_cv_func_$ac_func=no"
8768 rm -f conftest*
8771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8772 echo "$ac_t""yes" 1>&6
8773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8774 cat >> confdefs.h <<EOF
8775 #define $ac_tr_func 1
8778 else
8779 echo "$ac_t""no" 1>&6
8781 done
8788 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
8789 echo "configure:8790: checking for ldexpf declaration" >&5
8790 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
8791 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
8792 echo $ac_n "(cached) $ac_c" 1>&6
8793 else
8796 ac_ext=C
8797 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8798 ac_cpp='$CXXCPP $CPPFLAGS'
8799 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8800 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8801 cross_compiling=$ac_cv_prog_cxx_cross
8803 cat > conftest.$ac_ext <<EOF
8804 #line 8805 "configure"
8805 #include "confdefs.h"
8806 #include <math.h>
8807 int main() {
8808 ldexpf(0, 0);
8809 ; return 0; }
8811 if { (eval echo configure:8812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8812 rm -rf conftest*
8813 glibcpp_cv_func_ldexpf_use=yes
8814 else
8815 echo "configure: failed program was:" >&5
8816 cat conftest.$ac_ext >&5
8817 rm -rf conftest*
8818 glibcpp_cv_func_ldexpf_use=no
8820 rm -f conftest*
8821 ac_ext=c
8822 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8823 ac_cpp='$CPP $CPPFLAGS'
8824 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8825 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8826 cross_compiling=$ac_cv_prog_cc_cross
8832 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
8834 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
8835 for ac_func in ldexpf
8837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8838 echo "configure:8839: checking for $ac_func" >&5
8839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8840 echo $ac_n "(cached) $ac_c" 1>&6
8841 else
8842 cat > conftest.$ac_ext <<EOF
8843 #line 8844 "configure"
8844 #include "confdefs.h"
8845 /* System header to define __stub macros and hopefully few prototypes,
8846 which can conflict with char $ac_func(); below. */
8847 #include <assert.h>
8848 /* Override any gcc2 internal prototype to avoid an error. */
8849 /* We use char because int might match the return type of a gcc2
8850 builtin and then its argument prototype would still apply. */
8851 char $ac_func();
8853 int main() {
8855 /* The GNU C library defines this for functions which it implements
8856 to always fail with ENOSYS. Some functions are actually named
8857 something starting with __ and the normal name is an alias. */
8858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8859 choke me
8860 #else
8861 $ac_func();
8862 #endif
8864 ; return 0; }
8866 if { (eval echo configure:8867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8867 rm -rf conftest*
8868 eval "ac_cv_func_$ac_func=yes"
8869 else
8870 echo "configure: failed program was:" >&5
8871 cat conftest.$ac_ext >&5
8872 rm -rf conftest*
8873 eval "ac_cv_func_$ac_func=no"
8875 rm -f conftest*
8878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8879 echo "$ac_t""yes" 1>&6
8880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8881 cat >> confdefs.h <<EOF
8882 #define $ac_tr_func 1
8885 else
8886 echo "$ac_t""no" 1>&6
8888 done
8890 else
8892 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
8893 echo "configure:8894: checking for _ldexpf declaration" >&5
8894 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
8895 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
8896 echo $ac_n "(cached) $ac_c" 1>&6
8897 else
8900 ac_ext=C
8901 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8902 ac_cpp='$CXXCPP $CPPFLAGS'
8903 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8904 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8905 cross_compiling=$ac_cv_prog_cxx_cross
8907 cat > conftest.$ac_ext <<EOF
8908 #line 8909 "configure"
8909 #include "confdefs.h"
8910 #include <math.h>
8911 int main() {
8912 _ldexpf(0, 0);
8913 ; return 0; }
8915 if { (eval echo configure:8916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8916 rm -rf conftest*
8917 glibcpp_cv_func__ldexpf_use=yes
8918 else
8919 echo "configure: failed program was:" >&5
8920 cat conftest.$ac_ext >&5
8921 rm -rf conftest*
8922 glibcpp_cv_func__ldexpf_use=no
8924 rm -f conftest*
8925 ac_ext=c
8926 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8927 ac_cpp='$CPP $CPPFLAGS'
8928 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8929 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8930 cross_compiling=$ac_cv_prog_cc_cross
8936 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
8938 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
8939 for ac_func in _ldexpf
8941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8942 echo "configure:8943: checking for $ac_func" >&5
8943 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8944 echo $ac_n "(cached) $ac_c" 1>&6
8945 else
8946 cat > conftest.$ac_ext <<EOF
8947 #line 8948 "configure"
8948 #include "confdefs.h"
8949 /* System header to define __stub macros and hopefully few prototypes,
8950 which can conflict with char $ac_func(); below. */
8951 #include <assert.h>
8952 /* Override any gcc2 internal prototype to avoid an error. */
8953 /* We use char because int might match the return type of a gcc2
8954 builtin and then its argument prototype would still apply. */
8955 char $ac_func();
8957 int main() {
8959 /* The GNU C library defines this for functions which it implements
8960 to always fail with ENOSYS. Some functions are actually named
8961 something starting with __ and the normal name is an alias. */
8962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8963 choke me
8964 #else
8965 $ac_func();
8966 #endif
8968 ; return 0; }
8970 if { (eval echo configure:8971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8971 rm -rf conftest*
8972 eval "ac_cv_func_$ac_func=yes"
8973 else
8974 echo "configure: failed program was:" >&5
8975 cat conftest.$ac_ext >&5
8976 rm -rf conftest*
8977 eval "ac_cv_func_$ac_func=no"
8979 rm -f conftest*
8982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8983 echo "$ac_t""yes" 1>&6
8984 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8985 cat >> confdefs.h <<EOF
8986 #define $ac_tr_func 1
8989 else
8990 echo "$ac_t""no" 1>&6
8992 done
8999 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
9000 echo "configure:9001: checking for logf declaration" >&5
9001 if test x${glibcpp_cv_func_logf_use+set} != xset; then
9002 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
9003 echo $ac_n "(cached) $ac_c" 1>&6
9004 else
9007 ac_ext=C
9008 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9009 ac_cpp='$CXXCPP $CPPFLAGS'
9010 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9011 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9012 cross_compiling=$ac_cv_prog_cxx_cross
9014 cat > conftest.$ac_ext <<EOF
9015 #line 9016 "configure"
9016 #include "confdefs.h"
9017 #include <math.h>
9018 #ifdef HAVE_IEEEFP_H
9019 #include <ieeefp.h>
9020 #endif
9022 int main() {
9023 logf(0);
9024 ; return 0; }
9026 if { (eval echo configure:9027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9027 rm -rf conftest*
9028 glibcpp_cv_func_logf_use=yes
9029 else
9030 echo "configure: failed program was:" >&5
9031 cat conftest.$ac_ext >&5
9032 rm -rf conftest*
9033 glibcpp_cv_func_logf_use=no
9035 rm -f conftest*
9036 ac_ext=c
9037 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9038 ac_cpp='$CPP $CPPFLAGS'
9039 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9040 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9041 cross_compiling=$ac_cv_prog_cc_cross
9047 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
9049 if test x$glibcpp_cv_func_logf_use = x"yes"; then
9050 for ac_func in logf
9052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9053 echo "configure:9054: checking for $ac_func" >&5
9054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9055 echo $ac_n "(cached) $ac_c" 1>&6
9056 else
9057 cat > conftest.$ac_ext <<EOF
9058 #line 9059 "configure"
9059 #include "confdefs.h"
9060 /* System header to define __stub macros and hopefully few prototypes,
9061 which can conflict with char $ac_func(); below. */
9062 #include <assert.h>
9063 /* Override any gcc2 internal prototype to avoid an error. */
9064 /* We use char because int might match the return type of a gcc2
9065 builtin and then its argument prototype would still apply. */
9066 char $ac_func();
9068 int main() {
9070 /* The GNU C library defines this for functions which it implements
9071 to always fail with ENOSYS. Some functions are actually named
9072 something starting with __ and the normal name is an alias. */
9073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9074 choke me
9075 #else
9076 $ac_func();
9077 #endif
9079 ; return 0; }
9081 if { (eval echo configure:9082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9082 rm -rf conftest*
9083 eval "ac_cv_func_$ac_func=yes"
9084 else
9085 echo "configure: failed program was:" >&5
9086 cat conftest.$ac_ext >&5
9087 rm -rf conftest*
9088 eval "ac_cv_func_$ac_func=no"
9090 rm -f conftest*
9093 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9094 echo "$ac_t""yes" 1>&6
9095 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9096 cat >> confdefs.h <<EOF
9097 #define $ac_tr_func 1
9100 else
9101 echo "$ac_t""no" 1>&6
9103 done
9105 else
9107 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
9108 echo "configure:9109: checking for _logf declaration" >&5
9109 if test x${glibcpp_cv_func__logf_use+set} != xset; then
9110 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
9111 echo $ac_n "(cached) $ac_c" 1>&6
9112 else
9115 ac_ext=C
9116 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9117 ac_cpp='$CXXCPP $CPPFLAGS'
9118 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9119 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9120 cross_compiling=$ac_cv_prog_cxx_cross
9122 cat > conftest.$ac_ext <<EOF
9123 #line 9124 "configure"
9124 #include "confdefs.h"
9125 #include <math.h>
9126 #ifdef HAVE_IEEEFP_H
9127 #include <ieeefp.h>
9128 #endif
9130 int main() {
9131 _logf(0);
9132 ; return 0; }
9134 if { (eval echo configure:9135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9135 rm -rf conftest*
9136 glibcpp_cv_func__logf_use=yes
9137 else
9138 echo "configure: failed program was:" >&5
9139 cat conftest.$ac_ext >&5
9140 rm -rf conftest*
9141 glibcpp_cv_func__logf_use=no
9143 rm -f conftest*
9144 ac_ext=c
9145 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9146 ac_cpp='$CPP $CPPFLAGS'
9147 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9148 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9149 cross_compiling=$ac_cv_prog_cc_cross
9155 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
9157 if test x$glibcpp_cv_func__logf_use = x"yes"; then
9158 for ac_func in _logf
9160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9161 echo "configure:9162: checking for $ac_func" >&5
9162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9163 echo $ac_n "(cached) $ac_c" 1>&6
9164 else
9165 cat > conftest.$ac_ext <<EOF
9166 #line 9167 "configure"
9167 #include "confdefs.h"
9168 /* System header to define __stub macros and hopefully few prototypes,
9169 which can conflict with char $ac_func(); below. */
9170 #include <assert.h>
9171 /* Override any gcc2 internal prototype to avoid an error. */
9172 /* We use char because int might match the return type of a gcc2
9173 builtin and then its argument prototype would still apply. */
9174 char $ac_func();
9176 int main() {
9178 /* The GNU C library defines this for functions which it implements
9179 to always fail with ENOSYS. Some functions are actually named
9180 something starting with __ and the normal name is an alias. */
9181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9182 choke me
9183 #else
9184 $ac_func();
9185 #endif
9187 ; return 0; }
9189 if { (eval echo configure:9190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9190 rm -rf conftest*
9191 eval "ac_cv_func_$ac_func=yes"
9192 else
9193 echo "configure: failed program was:" >&5
9194 cat conftest.$ac_ext >&5
9195 rm -rf conftest*
9196 eval "ac_cv_func_$ac_func=no"
9198 rm -f conftest*
9201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9202 echo "$ac_t""yes" 1>&6
9203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9204 cat >> confdefs.h <<EOF
9205 #define $ac_tr_func 1
9208 else
9209 echo "$ac_t""no" 1>&6
9211 done
9218 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
9219 echo "configure:9220: checking for log10f declaration" >&5
9220 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
9221 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
9222 echo $ac_n "(cached) $ac_c" 1>&6
9223 else
9226 ac_ext=C
9227 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9228 ac_cpp='$CXXCPP $CPPFLAGS'
9229 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9230 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9231 cross_compiling=$ac_cv_prog_cxx_cross
9233 cat > conftest.$ac_ext <<EOF
9234 #line 9235 "configure"
9235 #include "confdefs.h"
9236 #include <math.h>
9237 #ifdef HAVE_IEEEFP_H
9238 #include <ieeefp.h>
9239 #endif
9241 int main() {
9242 log10f(0);
9243 ; return 0; }
9245 if { (eval echo configure:9246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9246 rm -rf conftest*
9247 glibcpp_cv_func_log10f_use=yes
9248 else
9249 echo "configure: failed program was:" >&5
9250 cat conftest.$ac_ext >&5
9251 rm -rf conftest*
9252 glibcpp_cv_func_log10f_use=no
9254 rm -f conftest*
9255 ac_ext=c
9256 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9257 ac_cpp='$CPP $CPPFLAGS'
9258 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9259 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9260 cross_compiling=$ac_cv_prog_cc_cross
9266 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
9268 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
9269 for ac_func in log10f
9271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9272 echo "configure:9273: checking for $ac_func" >&5
9273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9274 echo $ac_n "(cached) $ac_c" 1>&6
9275 else
9276 cat > conftest.$ac_ext <<EOF
9277 #line 9278 "configure"
9278 #include "confdefs.h"
9279 /* System header to define __stub macros and hopefully few prototypes,
9280 which can conflict with char $ac_func(); below. */
9281 #include <assert.h>
9282 /* Override any gcc2 internal prototype to avoid an error. */
9283 /* We use char because int might match the return type of a gcc2
9284 builtin and then its argument prototype would still apply. */
9285 char $ac_func();
9287 int main() {
9289 /* The GNU C library defines this for functions which it implements
9290 to always fail with ENOSYS. Some functions are actually named
9291 something starting with __ and the normal name is an alias. */
9292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9293 choke me
9294 #else
9295 $ac_func();
9296 #endif
9298 ; return 0; }
9300 if { (eval echo configure:9301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9301 rm -rf conftest*
9302 eval "ac_cv_func_$ac_func=yes"
9303 else
9304 echo "configure: failed program was:" >&5
9305 cat conftest.$ac_ext >&5
9306 rm -rf conftest*
9307 eval "ac_cv_func_$ac_func=no"
9309 rm -f conftest*
9312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9313 echo "$ac_t""yes" 1>&6
9314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9315 cat >> confdefs.h <<EOF
9316 #define $ac_tr_func 1
9319 else
9320 echo "$ac_t""no" 1>&6
9322 done
9324 else
9326 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
9327 echo "configure:9328: checking for _log10f declaration" >&5
9328 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
9329 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
9330 echo $ac_n "(cached) $ac_c" 1>&6
9331 else
9334 ac_ext=C
9335 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9336 ac_cpp='$CXXCPP $CPPFLAGS'
9337 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9338 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9339 cross_compiling=$ac_cv_prog_cxx_cross
9341 cat > conftest.$ac_ext <<EOF
9342 #line 9343 "configure"
9343 #include "confdefs.h"
9344 #include <math.h>
9345 #ifdef HAVE_IEEEFP_H
9346 #include <ieeefp.h>
9347 #endif
9349 int main() {
9350 _log10f(0);
9351 ; return 0; }
9353 if { (eval echo configure:9354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9354 rm -rf conftest*
9355 glibcpp_cv_func__log10f_use=yes
9356 else
9357 echo "configure: failed program was:" >&5
9358 cat conftest.$ac_ext >&5
9359 rm -rf conftest*
9360 glibcpp_cv_func__log10f_use=no
9362 rm -f conftest*
9363 ac_ext=c
9364 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9365 ac_cpp='$CPP $CPPFLAGS'
9366 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9367 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9368 cross_compiling=$ac_cv_prog_cc_cross
9374 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
9376 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
9377 for ac_func in _log10f
9379 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9380 echo "configure:9381: checking for $ac_func" >&5
9381 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9382 echo $ac_n "(cached) $ac_c" 1>&6
9383 else
9384 cat > conftest.$ac_ext <<EOF
9385 #line 9386 "configure"
9386 #include "confdefs.h"
9387 /* System header to define __stub macros and hopefully few prototypes,
9388 which can conflict with char $ac_func(); below. */
9389 #include <assert.h>
9390 /* Override any gcc2 internal prototype to avoid an error. */
9391 /* We use char because int might match the return type of a gcc2
9392 builtin and then its argument prototype would still apply. */
9393 char $ac_func();
9395 int main() {
9397 /* The GNU C library defines this for functions which it implements
9398 to always fail with ENOSYS. Some functions are actually named
9399 something starting with __ and the normal name is an alias. */
9400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9401 choke me
9402 #else
9403 $ac_func();
9404 #endif
9406 ; return 0; }
9408 if { (eval echo configure:9409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9409 rm -rf conftest*
9410 eval "ac_cv_func_$ac_func=yes"
9411 else
9412 echo "configure: failed program was:" >&5
9413 cat conftest.$ac_ext >&5
9414 rm -rf conftest*
9415 eval "ac_cv_func_$ac_func=no"
9417 rm -f conftest*
9420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9421 echo "$ac_t""yes" 1>&6
9422 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9423 cat >> confdefs.h <<EOF
9424 #define $ac_tr_func 1
9427 else
9428 echo "$ac_t""no" 1>&6
9430 done
9437 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
9438 echo "configure:9439: checking for modff declaration" >&5
9439 if test x${glibcpp_cv_func_modff_use+set} != xset; then
9440 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
9441 echo $ac_n "(cached) $ac_c" 1>&6
9442 else
9445 ac_ext=C
9446 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9447 ac_cpp='$CXXCPP $CPPFLAGS'
9448 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9449 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9450 cross_compiling=$ac_cv_prog_cxx_cross
9452 cat > conftest.$ac_ext <<EOF
9453 #line 9454 "configure"
9454 #include "confdefs.h"
9455 #include <math.h>
9456 int main() {
9457 modff(0, 0);
9458 ; return 0; }
9460 if { (eval echo configure:9461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9461 rm -rf conftest*
9462 glibcpp_cv_func_modff_use=yes
9463 else
9464 echo "configure: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9466 rm -rf conftest*
9467 glibcpp_cv_func_modff_use=no
9469 rm -f conftest*
9470 ac_ext=c
9471 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9472 ac_cpp='$CPP $CPPFLAGS'
9473 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9474 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9475 cross_compiling=$ac_cv_prog_cc_cross
9481 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
9483 if test x$glibcpp_cv_func_modff_use = x"yes"; then
9484 for ac_func in modff
9486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9487 echo "configure:9488: checking for $ac_func" >&5
9488 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9489 echo $ac_n "(cached) $ac_c" 1>&6
9490 else
9491 cat > conftest.$ac_ext <<EOF
9492 #line 9493 "configure"
9493 #include "confdefs.h"
9494 /* System header to define __stub macros and hopefully few prototypes,
9495 which can conflict with char $ac_func(); below. */
9496 #include <assert.h>
9497 /* Override any gcc2 internal prototype to avoid an error. */
9498 /* We use char because int might match the return type of a gcc2
9499 builtin and then its argument prototype would still apply. */
9500 char $ac_func();
9502 int main() {
9504 /* The GNU C library defines this for functions which it implements
9505 to always fail with ENOSYS. Some functions are actually named
9506 something starting with __ and the normal name is an alias. */
9507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9508 choke me
9509 #else
9510 $ac_func();
9511 #endif
9513 ; return 0; }
9515 if { (eval echo configure:9516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9516 rm -rf conftest*
9517 eval "ac_cv_func_$ac_func=yes"
9518 else
9519 echo "configure: failed program was:" >&5
9520 cat conftest.$ac_ext >&5
9521 rm -rf conftest*
9522 eval "ac_cv_func_$ac_func=no"
9524 rm -f conftest*
9527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9528 echo "$ac_t""yes" 1>&6
9529 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9530 cat >> confdefs.h <<EOF
9531 #define $ac_tr_func 1
9534 else
9535 echo "$ac_t""no" 1>&6
9537 done
9539 else
9541 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
9542 echo "configure:9543: checking for _modff declaration" >&5
9543 if test x${glibcpp_cv_func__modff_use+set} != xset; then
9544 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
9545 echo $ac_n "(cached) $ac_c" 1>&6
9546 else
9549 ac_ext=C
9550 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9551 ac_cpp='$CXXCPP $CPPFLAGS'
9552 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9553 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9554 cross_compiling=$ac_cv_prog_cxx_cross
9556 cat > conftest.$ac_ext <<EOF
9557 #line 9558 "configure"
9558 #include "confdefs.h"
9559 #include <math.h>
9560 int main() {
9561 _modff(0, 0);
9562 ; return 0; }
9564 if { (eval echo configure:9565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9565 rm -rf conftest*
9566 glibcpp_cv_func__modff_use=yes
9567 else
9568 echo "configure: failed program was:" >&5
9569 cat conftest.$ac_ext >&5
9570 rm -rf conftest*
9571 glibcpp_cv_func__modff_use=no
9573 rm -f conftest*
9574 ac_ext=c
9575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9576 ac_cpp='$CPP $CPPFLAGS'
9577 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9578 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9579 cross_compiling=$ac_cv_prog_cc_cross
9585 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
9587 if test x$glibcpp_cv_func__modff_use = x"yes"; then
9588 for ac_func in _modff
9590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9591 echo "configure:9592: checking for $ac_func" >&5
9592 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9593 echo $ac_n "(cached) $ac_c" 1>&6
9594 else
9595 cat > conftest.$ac_ext <<EOF
9596 #line 9597 "configure"
9597 #include "confdefs.h"
9598 /* System header to define __stub macros and hopefully few prototypes,
9599 which can conflict with char $ac_func(); below. */
9600 #include <assert.h>
9601 /* Override any gcc2 internal prototype to avoid an error. */
9602 /* We use char because int might match the return type of a gcc2
9603 builtin and then its argument prototype would still apply. */
9604 char $ac_func();
9606 int main() {
9608 /* The GNU C library defines this for functions which it implements
9609 to always fail with ENOSYS. Some functions are actually named
9610 something starting with __ and the normal name is an alias. */
9611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9612 choke me
9613 #else
9614 $ac_func();
9615 #endif
9617 ; return 0; }
9619 if { (eval echo configure:9620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9620 rm -rf conftest*
9621 eval "ac_cv_func_$ac_func=yes"
9622 else
9623 echo "configure: failed program was:" >&5
9624 cat conftest.$ac_ext >&5
9625 rm -rf conftest*
9626 eval "ac_cv_func_$ac_func=no"
9628 rm -f conftest*
9631 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9632 echo "$ac_t""yes" 1>&6
9633 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9634 cat >> confdefs.h <<EOF
9635 #define $ac_tr_func 1
9638 else
9639 echo "$ac_t""no" 1>&6
9641 done
9648 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
9649 echo "configure:9650: checking for powf declaration" >&5
9650 if test x${glibcpp_cv_func_powf_use+set} != xset; then
9651 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
9652 echo $ac_n "(cached) $ac_c" 1>&6
9653 else
9656 ac_ext=C
9657 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9658 ac_cpp='$CXXCPP $CPPFLAGS'
9659 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9660 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9661 cross_compiling=$ac_cv_prog_cxx_cross
9663 cat > conftest.$ac_ext <<EOF
9664 #line 9665 "configure"
9665 #include "confdefs.h"
9666 #include <math.h>
9667 int main() {
9668 powf(0, 0);
9669 ; return 0; }
9671 if { (eval echo configure:9672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9672 rm -rf conftest*
9673 glibcpp_cv_func_powf_use=yes
9674 else
9675 echo "configure: failed program was:" >&5
9676 cat conftest.$ac_ext >&5
9677 rm -rf conftest*
9678 glibcpp_cv_func_powf_use=no
9680 rm -f conftest*
9681 ac_ext=c
9682 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9683 ac_cpp='$CPP $CPPFLAGS'
9684 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9685 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9686 cross_compiling=$ac_cv_prog_cc_cross
9692 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
9694 if test x$glibcpp_cv_func_powf_use = x"yes"; then
9695 for ac_func in powf
9697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9698 echo "configure:9699: checking for $ac_func" >&5
9699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9700 echo $ac_n "(cached) $ac_c" 1>&6
9701 else
9702 cat > conftest.$ac_ext <<EOF
9703 #line 9704 "configure"
9704 #include "confdefs.h"
9705 /* System header to define __stub macros and hopefully few prototypes,
9706 which can conflict with char $ac_func(); below. */
9707 #include <assert.h>
9708 /* Override any gcc2 internal prototype to avoid an error. */
9709 /* We use char because int might match the return type of a gcc2
9710 builtin and then its argument prototype would still apply. */
9711 char $ac_func();
9713 int main() {
9715 /* The GNU C library defines this for functions which it implements
9716 to always fail with ENOSYS. Some functions are actually named
9717 something starting with __ and the normal name is an alias. */
9718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9719 choke me
9720 #else
9721 $ac_func();
9722 #endif
9724 ; return 0; }
9726 if { (eval echo configure:9727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9727 rm -rf conftest*
9728 eval "ac_cv_func_$ac_func=yes"
9729 else
9730 echo "configure: failed program was:" >&5
9731 cat conftest.$ac_ext >&5
9732 rm -rf conftest*
9733 eval "ac_cv_func_$ac_func=no"
9735 rm -f conftest*
9738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9739 echo "$ac_t""yes" 1>&6
9740 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9741 cat >> confdefs.h <<EOF
9742 #define $ac_tr_func 1
9745 else
9746 echo "$ac_t""no" 1>&6
9748 done
9750 else
9752 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
9753 echo "configure:9754: checking for _powf declaration" >&5
9754 if test x${glibcpp_cv_func__powf_use+set} != xset; then
9755 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
9756 echo $ac_n "(cached) $ac_c" 1>&6
9757 else
9760 ac_ext=C
9761 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9762 ac_cpp='$CXXCPP $CPPFLAGS'
9763 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9764 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9765 cross_compiling=$ac_cv_prog_cxx_cross
9767 cat > conftest.$ac_ext <<EOF
9768 #line 9769 "configure"
9769 #include "confdefs.h"
9770 #include <math.h>
9771 int main() {
9772 _powf(0, 0);
9773 ; return 0; }
9775 if { (eval echo configure:9776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9776 rm -rf conftest*
9777 glibcpp_cv_func__powf_use=yes
9778 else
9779 echo "configure: failed program was:" >&5
9780 cat conftest.$ac_ext >&5
9781 rm -rf conftest*
9782 glibcpp_cv_func__powf_use=no
9784 rm -f conftest*
9785 ac_ext=c
9786 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9787 ac_cpp='$CPP $CPPFLAGS'
9788 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9789 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9790 cross_compiling=$ac_cv_prog_cc_cross
9796 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
9798 if test x$glibcpp_cv_func__powf_use = x"yes"; then
9799 for ac_func in _powf
9801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9802 echo "configure:9803: checking for $ac_func" >&5
9803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9804 echo $ac_n "(cached) $ac_c" 1>&6
9805 else
9806 cat > conftest.$ac_ext <<EOF
9807 #line 9808 "configure"
9808 #include "confdefs.h"
9809 /* System header to define __stub macros and hopefully few prototypes,
9810 which can conflict with char $ac_func(); below. */
9811 #include <assert.h>
9812 /* Override any gcc2 internal prototype to avoid an error. */
9813 /* We use char because int might match the return type of a gcc2
9814 builtin and then its argument prototype would still apply. */
9815 char $ac_func();
9817 int main() {
9819 /* The GNU C library defines this for functions which it implements
9820 to always fail with ENOSYS. Some functions are actually named
9821 something starting with __ and the normal name is an alias. */
9822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9823 choke me
9824 #else
9825 $ac_func();
9826 #endif
9828 ; return 0; }
9830 if { (eval echo configure:9831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9831 rm -rf conftest*
9832 eval "ac_cv_func_$ac_func=yes"
9833 else
9834 echo "configure: failed program was:" >&5
9835 cat conftest.$ac_ext >&5
9836 rm -rf conftest*
9837 eval "ac_cv_func_$ac_func=no"
9839 rm -f conftest*
9842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9843 echo "$ac_t""yes" 1>&6
9844 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9845 cat >> confdefs.h <<EOF
9846 #define $ac_tr_func 1
9849 else
9850 echo "$ac_t""no" 1>&6
9852 done
9859 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
9860 echo "configure:9861: checking for sqrtf declaration" >&5
9861 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
9862 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
9863 echo $ac_n "(cached) $ac_c" 1>&6
9864 else
9867 ac_ext=C
9868 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9869 ac_cpp='$CXXCPP $CPPFLAGS'
9870 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9871 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9872 cross_compiling=$ac_cv_prog_cxx_cross
9874 cat > conftest.$ac_ext <<EOF
9875 #line 9876 "configure"
9876 #include "confdefs.h"
9877 #include <math.h>
9878 #ifdef HAVE_IEEEFP_H
9879 #include <ieeefp.h>
9880 #endif
9882 int main() {
9883 sqrtf(0);
9884 ; return 0; }
9886 if { (eval echo configure:9887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9887 rm -rf conftest*
9888 glibcpp_cv_func_sqrtf_use=yes
9889 else
9890 echo "configure: failed program was:" >&5
9891 cat conftest.$ac_ext >&5
9892 rm -rf conftest*
9893 glibcpp_cv_func_sqrtf_use=no
9895 rm -f conftest*
9896 ac_ext=c
9897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9898 ac_cpp='$CPP $CPPFLAGS'
9899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9901 cross_compiling=$ac_cv_prog_cc_cross
9907 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
9909 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
9910 for ac_func in sqrtf
9912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9913 echo "configure:9914: checking for $ac_func" >&5
9914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9915 echo $ac_n "(cached) $ac_c" 1>&6
9916 else
9917 cat > conftest.$ac_ext <<EOF
9918 #line 9919 "configure"
9919 #include "confdefs.h"
9920 /* System header to define __stub macros and hopefully few prototypes,
9921 which can conflict with char $ac_func(); below. */
9922 #include <assert.h>
9923 /* Override any gcc2 internal prototype to avoid an error. */
9924 /* We use char because int might match the return type of a gcc2
9925 builtin and then its argument prototype would still apply. */
9926 char $ac_func();
9928 int main() {
9930 /* The GNU C library defines this for functions which it implements
9931 to always fail with ENOSYS. Some functions are actually named
9932 something starting with __ and the normal name is an alias. */
9933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9934 choke me
9935 #else
9936 $ac_func();
9937 #endif
9939 ; return 0; }
9941 if { (eval echo configure:9942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9942 rm -rf conftest*
9943 eval "ac_cv_func_$ac_func=yes"
9944 else
9945 echo "configure: failed program was:" >&5
9946 cat conftest.$ac_ext >&5
9947 rm -rf conftest*
9948 eval "ac_cv_func_$ac_func=no"
9950 rm -f conftest*
9953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9954 echo "$ac_t""yes" 1>&6
9955 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9956 cat >> confdefs.h <<EOF
9957 #define $ac_tr_func 1
9960 else
9961 echo "$ac_t""no" 1>&6
9963 done
9965 else
9967 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
9968 echo "configure:9969: checking for _sqrtf declaration" >&5
9969 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
9970 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
9971 echo $ac_n "(cached) $ac_c" 1>&6
9972 else
9975 ac_ext=C
9976 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9977 ac_cpp='$CXXCPP $CPPFLAGS'
9978 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9979 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9980 cross_compiling=$ac_cv_prog_cxx_cross
9982 cat > conftest.$ac_ext <<EOF
9983 #line 9984 "configure"
9984 #include "confdefs.h"
9985 #include <math.h>
9986 #ifdef HAVE_IEEEFP_H
9987 #include <ieeefp.h>
9988 #endif
9990 int main() {
9991 _sqrtf(0);
9992 ; return 0; }
9994 if { (eval echo configure:9995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9995 rm -rf conftest*
9996 glibcpp_cv_func__sqrtf_use=yes
9997 else
9998 echo "configure: failed program was:" >&5
9999 cat conftest.$ac_ext >&5
10000 rm -rf conftest*
10001 glibcpp_cv_func__sqrtf_use=no
10003 rm -f conftest*
10004 ac_ext=c
10005 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10006 ac_cpp='$CPP $CPPFLAGS'
10007 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10008 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10009 cross_compiling=$ac_cv_prog_cc_cross
10015 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
10017 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
10018 for ac_func in _sqrtf
10020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10021 echo "configure:10022: checking for $ac_func" >&5
10022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10023 echo $ac_n "(cached) $ac_c" 1>&6
10024 else
10025 cat > conftest.$ac_ext <<EOF
10026 #line 10027 "configure"
10027 #include "confdefs.h"
10028 /* System header to define __stub macros and hopefully few prototypes,
10029 which can conflict with char $ac_func(); below. */
10030 #include <assert.h>
10031 /* Override any gcc2 internal prototype to avoid an error. */
10032 /* We use char because int might match the return type of a gcc2
10033 builtin and then its argument prototype would still apply. */
10034 char $ac_func();
10036 int main() {
10038 /* The GNU C library defines this for functions which it implements
10039 to always fail with ENOSYS. Some functions are actually named
10040 something starting with __ and the normal name is an alias. */
10041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10042 choke me
10043 #else
10044 $ac_func();
10045 #endif
10047 ; return 0; }
10049 if { (eval echo configure:10050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10050 rm -rf conftest*
10051 eval "ac_cv_func_$ac_func=yes"
10052 else
10053 echo "configure: failed program was:" >&5
10054 cat conftest.$ac_ext >&5
10055 rm -rf conftest*
10056 eval "ac_cv_func_$ac_func=no"
10058 rm -f conftest*
10061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10062 echo "$ac_t""yes" 1>&6
10063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10064 cat >> confdefs.h <<EOF
10065 #define $ac_tr_func 1
10068 else
10069 echo "$ac_t""no" 1>&6
10071 done
10078 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
10079 echo "configure:10080: checking for sincosf declaration" >&5
10080 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
10081 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
10082 echo $ac_n "(cached) $ac_c" 1>&6
10083 else
10086 ac_ext=C
10087 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10088 ac_cpp='$CXXCPP $CPPFLAGS'
10089 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10090 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10091 cross_compiling=$ac_cv_prog_cxx_cross
10093 cat > conftest.$ac_ext <<EOF
10094 #line 10095 "configure"
10095 #include "confdefs.h"
10096 #include <math.h>
10097 int main() {
10098 sincosf(0, 0, 0);
10099 ; return 0; }
10101 if { (eval echo configure:10102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10102 rm -rf conftest*
10103 glibcpp_cv_func_sincosf_use=yes
10104 else
10105 echo "configure: failed program was:" >&5
10106 cat conftest.$ac_ext >&5
10107 rm -rf conftest*
10108 glibcpp_cv_func_sincosf_use=no
10110 rm -f conftest*
10111 ac_ext=c
10112 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10113 ac_cpp='$CPP $CPPFLAGS'
10114 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10115 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10116 cross_compiling=$ac_cv_prog_cc_cross
10122 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
10124 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
10125 for ac_func in sincosf
10127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10128 echo "configure:10129: checking for $ac_func" >&5
10129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10130 echo $ac_n "(cached) $ac_c" 1>&6
10131 else
10132 cat > conftest.$ac_ext <<EOF
10133 #line 10134 "configure"
10134 #include "confdefs.h"
10135 /* System header to define __stub macros and hopefully few prototypes,
10136 which can conflict with char $ac_func(); below. */
10137 #include <assert.h>
10138 /* Override any gcc2 internal prototype to avoid an error. */
10139 /* We use char because int might match the return type of a gcc2
10140 builtin and then its argument prototype would still apply. */
10141 char $ac_func();
10143 int main() {
10145 /* The GNU C library defines this for functions which it implements
10146 to always fail with ENOSYS. Some functions are actually named
10147 something starting with __ and the normal name is an alias. */
10148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10149 choke me
10150 #else
10151 $ac_func();
10152 #endif
10154 ; return 0; }
10156 if { (eval echo configure:10157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10157 rm -rf conftest*
10158 eval "ac_cv_func_$ac_func=yes"
10159 else
10160 echo "configure: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
10162 rm -rf conftest*
10163 eval "ac_cv_func_$ac_func=no"
10165 rm -f conftest*
10168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10169 echo "$ac_t""yes" 1>&6
10170 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10171 cat >> confdefs.h <<EOF
10172 #define $ac_tr_func 1
10175 else
10176 echo "$ac_t""no" 1>&6
10178 done
10180 else
10182 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
10183 echo "configure:10184: checking for _sincosf declaration" >&5
10184 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
10185 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
10186 echo $ac_n "(cached) $ac_c" 1>&6
10187 else
10190 ac_ext=C
10191 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10192 ac_cpp='$CXXCPP $CPPFLAGS'
10193 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10194 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10195 cross_compiling=$ac_cv_prog_cxx_cross
10197 cat > conftest.$ac_ext <<EOF
10198 #line 10199 "configure"
10199 #include "confdefs.h"
10200 #include <math.h>
10201 int main() {
10202 _sincosf(0, 0, 0);
10203 ; return 0; }
10205 if { (eval echo configure:10206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10206 rm -rf conftest*
10207 glibcpp_cv_func__sincosf_use=yes
10208 else
10209 echo "configure: failed program was:" >&5
10210 cat conftest.$ac_ext >&5
10211 rm -rf conftest*
10212 glibcpp_cv_func__sincosf_use=no
10214 rm -f conftest*
10215 ac_ext=c
10216 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10217 ac_cpp='$CPP $CPPFLAGS'
10218 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10219 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10220 cross_compiling=$ac_cv_prog_cc_cross
10226 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
10228 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
10229 for ac_func in _sincosf
10231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10232 echo "configure:10233: checking for $ac_func" >&5
10233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10234 echo $ac_n "(cached) $ac_c" 1>&6
10235 else
10236 cat > conftest.$ac_ext <<EOF
10237 #line 10238 "configure"
10238 #include "confdefs.h"
10239 /* System header to define __stub macros and hopefully few prototypes,
10240 which can conflict with char $ac_func(); below. */
10241 #include <assert.h>
10242 /* Override any gcc2 internal prototype to avoid an error. */
10243 /* We use char because int might match the return type of a gcc2
10244 builtin and then its argument prototype would still apply. */
10245 char $ac_func();
10247 int main() {
10249 /* The GNU C library defines this for functions which it implements
10250 to always fail with ENOSYS. Some functions are actually named
10251 something starting with __ and the normal name is an alias. */
10252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10253 choke me
10254 #else
10255 $ac_func();
10256 #endif
10258 ; return 0; }
10260 if { (eval echo configure:10261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10261 rm -rf conftest*
10262 eval "ac_cv_func_$ac_func=yes"
10263 else
10264 echo "configure: failed program was:" >&5
10265 cat conftest.$ac_ext >&5
10266 rm -rf conftest*
10267 eval "ac_cv_func_$ac_func=no"
10269 rm -f conftest*
10272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10273 echo "$ac_t""yes" 1>&6
10274 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10275 cat >> confdefs.h <<EOF
10276 #define $ac_tr_func 1
10279 else
10280 echo "$ac_t""no" 1>&6
10282 done
10289 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
10290 echo "configure:10291: checking for finitef declaration" >&5
10291 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
10292 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
10293 echo $ac_n "(cached) $ac_c" 1>&6
10294 else
10297 ac_ext=C
10298 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10299 ac_cpp='$CXXCPP $CPPFLAGS'
10300 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10301 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10302 cross_compiling=$ac_cv_prog_cxx_cross
10304 cat > conftest.$ac_ext <<EOF
10305 #line 10306 "configure"
10306 #include "confdefs.h"
10307 #include <math.h>
10308 #ifdef HAVE_IEEEFP_H
10309 #include <ieeefp.h>
10310 #endif
10312 int main() {
10313 finitef(0);
10314 ; return 0; }
10316 if { (eval echo configure:10317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10317 rm -rf conftest*
10318 glibcpp_cv_func_finitef_use=yes
10319 else
10320 echo "configure: failed program was:" >&5
10321 cat conftest.$ac_ext >&5
10322 rm -rf conftest*
10323 glibcpp_cv_func_finitef_use=no
10325 rm -f conftest*
10326 ac_ext=c
10327 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10328 ac_cpp='$CPP $CPPFLAGS'
10329 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10330 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10331 cross_compiling=$ac_cv_prog_cc_cross
10337 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
10339 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
10340 for ac_func in finitef
10342 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10343 echo "configure:10344: checking for $ac_func" >&5
10344 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10345 echo $ac_n "(cached) $ac_c" 1>&6
10346 else
10347 cat > conftest.$ac_ext <<EOF
10348 #line 10349 "configure"
10349 #include "confdefs.h"
10350 /* System header to define __stub macros and hopefully few prototypes,
10351 which can conflict with char $ac_func(); below. */
10352 #include <assert.h>
10353 /* Override any gcc2 internal prototype to avoid an error. */
10354 /* We use char because int might match the return type of a gcc2
10355 builtin and then its argument prototype would still apply. */
10356 char $ac_func();
10358 int main() {
10360 /* The GNU C library defines this for functions which it implements
10361 to always fail with ENOSYS. Some functions are actually named
10362 something starting with __ and the normal name is an alias. */
10363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10364 choke me
10365 #else
10366 $ac_func();
10367 #endif
10369 ; return 0; }
10371 if { (eval echo configure:10372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10372 rm -rf conftest*
10373 eval "ac_cv_func_$ac_func=yes"
10374 else
10375 echo "configure: failed program was:" >&5
10376 cat conftest.$ac_ext >&5
10377 rm -rf conftest*
10378 eval "ac_cv_func_$ac_func=no"
10380 rm -f conftest*
10383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10384 echo "$ac_t""yes" 1>&6
10385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10386 cat >> confdefs.h <<EOF
10387 #define $ac_tr_func 1
10390 else
10391 echo "$ac_t""no" 1>&6
10393 done
10395 else
10397 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
10398 echo "configure:10399: checking for _finitef declaration" >&5
10399 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
10400 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
10401 echo $ac_n "(cached) $ac_c" 1>&6
10402 else
10405 ac_ext=C
10406 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10407 ac_cpp='$CXXCPP $CPPFLAGS'
10408 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10409 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10410 cross_compiling=$ac_cv_prog_cxx_cross
10412 cat > conftest.$ac_ext <<EOF
10413 #line 10414 "configure"
10414 #include "confdefs.h"
10415 #include <math.h>
10416 #ifdef HAVE_IEEEFP_H
10417 #include <ieeefp.h>
10418 #endif
10420 int main() {
10421 _finitef(0);
10422 ; return 0; }
10424 if { (eval echo configure:10425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10425 rm -rf conftest*
10426 glibcpp_cv_func__finitef_use=yes
10427 else
10428 echo "configure: failed program was:" >&5
10429 cat conftest.$ac_ext >&5
10430 rm -rf conftest*
10431 glibcpp_cv_func__finitef_use=no
10433 rm -f conftest*
10434 ac_ext=c
10435 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10436 ac_cpp='$CPP $CPPFLAGS'
10437 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10438 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10439 cross_compiling=$ac_cv_prog_cc_cross
10445 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
10447 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
10448 for ac_func in _finitef
10450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10451 echo "configure:10452: checking for $ac_func" >&5
10452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10453 echo $ac_n "(cached) $ac_c" 1>&6
10454 else
10455 cat > conftest.$ac_ext <<EOF
10456 #line 10457 "configure"
10457 #include "confdefs.h"
10458 /* System header to define __stub macros and hopefully few prototypes,
10459 which can conflict with char $ac_func(); below. */
10460 #include <assert.h>
10461 /* Override any gcc2 internal prototype to avoid an error. */
10462 /* We use char because int might match the return type of a gcc2
10463 builtin and then its argument prototype would still apply. */
10464 char $ac_func();
10466 int main() {
10468 /* The GNU C library defines this for functions which it implements
10469 to always fail with ENOSYS. Some functions are actually named
10470 something starting with __ and the normal name is an alias. */
10471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10472 choke me
10473 #else
10474 $ac_func();
10475 #endif
10477 ; return 0; }
10479 if { (eval echo configure:10480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10480 rm -rf conftest*
10481 eval "ac_cv_func_$ac_func=yes"
10482 else
10483 echo "configure: failed program was:" >&5
10484 cat conftest.$ac_ext >&5
10485 rm -rf conftest*
10486 eval "ac_cv_func_$ac_func=no"
10488 rm -f conftest*
10491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10492 echo "$ac_t""yes" 1>&6
10493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10494 cat >> confdefs.h <<EOF
10495 #define $ac_tr_func 1
10498 else
10499 echo "$ac_t""no" 1>&6
10501 done
10508 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
10509 echo "configure:10510: checking for long double trig functions" >&5
10510 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
10511 echo $ac_n "(cached) $ac_c" 1>&6
10512 else
10515 ac_ext=C
10516 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10517 ac_cpp='$CXXCPP $CPPFLAGS'
10518 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10519 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10520 cross_compiling=$ac_cv_prog_cxx_cross
10522 cat > conftest.$ac_ext <<EOF
10523 #line 10524 "configure"
10524 #include "confdefs.h"
10525 #include <math.h>
10526 int main() {
10527 `for x in acosl asinl atanl \
10528 cosl sinl tanl \
10529 coshl sinhl tanhl; do echo "$x (0);"; done`
10530 ; return 0; }
10532 if { (eval echo configure:10533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10533 rm -rf conftest*
10534 glibcpp_cv_func_long_double_trig_use=yes
10535 else
10536 echo "configure: failed program was:" >&5
10537 cat conftest.$ac_ext >&5
10538 rm -rf conftest*
10539 glibcpp_cv_func_long_double_trig_use=no
10541 rm -f conftest*
10542 ac_ext=c
10543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10544 ac_cpp='$CPP $CPPFLAGS'
10545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10547 cross_compiling=$ac_cv_prog_cc_cross
10551 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
10552 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
10553 for ac_func in acosl asinl atanl \
10554 cosl sinl tanl \
10555 coshl sinhl tanhl
10557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10558 echo "configure:10559: checking for $ac_func" >&5
10559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10560 echo $ac_n "(cached) $ac_c" 1>&6
10561 else
10562 cat > conftest.$ac_ext <<EOF
10563 #line 10564 "configure"
10564 #include "confdefs.h"
10565 /* System header to define __stub macros and hopefully few prototypes,
10566 which can conflict with char $ac_func(); below. */
10567 #include <assert.h>
10568 /* Override any gcc2 internal prototype to avoid an error. */
10569 /* We use char because int might match the return type of a gcc2
10570 builtin and then its argument prototype would still apply. */
10571 char $ac_func();
10573 int main() {
10575 /* The GNU C library defines this for functions which it implements
10576 to always fail with ENOSYS. Some functions are actually named
10577 something starting with __ and the normal name is an alias. */
10578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10579 choke me
10580 #else
10581 $ac_func();
10582 #endif
10584 ; return 0; }
10586 if { (eval echo configure:10587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10587 rm -rf conftest*
10588 eval "ac_cv_func_$ac_func=yes"
10589 else
10590 echo "configure: failed program was:" >&5
10591 cat conftest.$ac_ext >&5
10592 rm -rf conftest*
10593 eval "ac_cv_func_$ac_func=no"
10595 rm -f conftest*
10598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10599 echo "$ac_t""yes" 1>&6
10600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10601 cat >> confdefs.h <<EOF
10602 #define $ac_tr_func 1
10605 else
10606 echo "$ac_t""no" 1>&6
10608 done
10613 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
10614 echo "configure:10615: checking for long double round functions" >&5
10615 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
10616 echo $ac_n "(cached) $ac_c" 1>&6
10617 else
10620 ac_ext=C
10621 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10622 ac_cpp='$CXXCPP $CPPFLAGS'
10623 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10624 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10625 cross_compiling=$ac_cv_prog_cxx_cross
10627 cat > conftest.$ac_ext <<EOF
10628 #line 10629 "configure"
10629 #include "confdefs.h"
10630 #include <math.h>
10631 int main() {
10632 `for x in ceill floorl; do echo "$x (0);"; done`
10633 ; return 0; }
10635 if { (eval echo configure:10636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10636 rm -rf conftest*
10637 glibcpp_cv_func_long_double_round_use=yes
10638 else
10639 echo "configure: failed program was:" >&5
10640 cat conftest.$ac_ext >&5
10641 rm -rf conftest*
10642 glibcpp_cv_func_long_double_round_use=no
10644 rm -f conftest*
10645 ac_ext=c
10646 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10647 ac_cpp='$CPP $CPPFLAGS'
10648 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10649 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10650 cross_compiling=$ac_cv_prog_cc_cross
10654 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
10655 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
10656 for ac_func in ceill floorl
10658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10659 echo "configure:10660: checking for $ac_func" >&5
10660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10661 echo $ac_n "(cached) $ac_c" 1>&6
10662 else
10663 cat > conftest.$ac_ext <<EOF
10664 #line 10665 "configure"
10665 #include "confdefs.h"
10666 /* System header to define __stub macros and hopefully few prototypes,
10667 which can conflict with char $ac_func(); below. */
10668 #include <assert.h>
10669 /* Override any gcc2 internal prototype to avoid an error. */
10670 /* We use char because int might match the return type of a gcc2
10671 builtin and then its argument prototype would still apply. */
10672 char $ac_func();
10674 int main() {
10676 /* The GNU C library defines this for functions which it implements
10677 to always fail with ENOSYS. Some functions are actually named
10678 something starting with __ and the normal name is an alias. */
10679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10680 choke me
10681 #else
10682 $ac_func();
10683 #endif
10685 ; return 0; }
10687 if { (eval echo configure:10688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10688 rm -rf conftest*
10689 eval "ac_cv_func_$ac_func=yes"
10690 else
10691 echo "configure: failed program was:" >&5
10692 cat conftest.$ac_ext >&5
10693 rm -rf conftest*
10694 eval "ac_cv_func_$ac_func=no"
10696 rm -f conftest*
10699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10700 echo "$ac_t""yes" 1>&6
10701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10702 cat >> confdefs.h <<EOF
10703 #define $ac_tr_func 1
10706 else
10707 echo "$ac_t""no" 1>&6
10709 done
10715 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
10716 echo "configure:10717: checking for isnanl declaration" >&5
10717 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
10718 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
10719 echo $ac_n "(cached) $ac_c" 1>&6
10720 else
10723 ac_ext=C
10724 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10725 ac_cpp='$CXXCPP $CPPFLAGS'
10726 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10727 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10728 cross_compiling=$ac_cv_prog_cxx_cross
10730 cat > conftest.$ac_ext <<EOF
10731 #line 10732 "configure"
10732 #include "confdefs.h"
10733 #include <math.h>
10734 #ifdef HAVE_IEEEFP_H
10735 #include <ieeefp.h>
10736 #endif
10738 int main() {
10739 isnanl(0);
10740 ; return 0; }
10742 if { (eval echo configure:10743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10743 rm -rf conftest*
10744 glibcpp_cv_func_isnanl_use=yes
10745 else
10746 echo "configure: failed program was:" >&5
10747 cat conftest.$ac_ext >&5
10748 rm -rf conftest*
10749 glibcpp_cv_func_isnanl_use=no
10751 rm -f conftest*
10752 ac_ext=c
10753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10754 ac_cpp='$CPP $CPPFLAGS'
10755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10756 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10757 cross_compiling=$ac_cv_prog_cc_cross
10763 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
10765 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
10766 for ac_func in isnanl
10768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10769 echo "configure:10770: checking for $ac_func" >&5
10770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10771 echo $ac_n "(cached) $ac_c" 1>&6
10772 else
10773 cat > conftest.$ac_ext <<EOF
10774 #line 10775 "configure"
10775 #include "confdefs.h"
10776 /* System header to define __stub macros and hopefully few prototypes,
10777 which can conflict with char $ac_func(); below. */
10778 #include <assert.h>
10779 /* Override any gcc2 internal prototype to avoid an error. */
10780 /* We use char because int might match the return type of a gcc2
10781 builtin and then its argument prototype would still apply. */
10782 char $ac_func();
10784 int main() {
10786 /* The GNU C library defines this for functions which it implements
10787 to always fail with ENOSYS. Some functions are actually named
10788 something starting with __ and the normal name is an alias. */
10789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10790 choke me
10791 #else
10792 $ac_func();
10793 #endif
10795 ; return 0; }
10797 if { (eval echo configure:10798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10798 rm -rf conftest*
10799 eval "ac_cv_func_$ac_func=yes"
10800 else
10801 echo "configure: failed program was:" >&5
10802 cat conftest.$ac_ext >&5
10803 rm -rf conftest*
10804 eval "ac_cv_func_$ac_func=no"
10806 rm -f conftest*
10809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10810 echo "$ac_t""yes" 1>&6
10811 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10812 cat >> confdefs.h <<EOF
10813 #define $ac_tr_func 1
10816 else
10817 echo "$ac_t""no" 1>&6
10819 done
10821 else
10823 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
10824 echo "configure:10825: checking for _isnanl declaration" >&5
10825 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
10826 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
10827 echo $ac_n "(cached) $ac_c" 1>&6
10828 else
10831 ac_ext=C
10832 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10833 ac_cpp='$CXXCPP $CPPFLAGS'
10834 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10835 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10836 cross_compiling=$ac_cv_prog_cxx_cross
10838 cat > conftest.$ac_ext <<EOF
10839 #line 10840 "configure"
10840 #include "confdefs.h"
10841 #include <math.h>
10842 #ifdef HAVE_IEEEFP_H
10843 #include <ieeefp.h>
10844 #endif
10846 int main() {
10847 _isnanl(0);
10848 ; return 0; }
10850 if { (eval echo configure:10851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10851 rm -rf conftest*
10852 glibcpp_cv_func__isnanl_use=yes
10853 else
10854 echo "configure: failed program was:" >&5
10855 cat conftest.$ac_ext >&5
10856 rm -rf conftest*
10857 glibcpp_cv_func__isnanl_use=no
10859 rm -f conftest*
10860 ac_ext=c
10861 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10862 ac_cpp='$CPP $CPPFLAGS'
10863 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10864 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10865 cross_compiling=$ac_cv_prog_cc_cross
10871 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
10873 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
10874 for ac_func in _isnanl
10876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10877 echo "configure:10878: checking for $ac_func" >&5
10878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10879 echo $ac_n "(cached) $ac_c" 1>&6
10880 else
10881 cat > conftest.$ac_ext <<EOF
10882 #line 10883 "configure"
10883 #include "confdefs.h"
10884 /* System header to define __stub macros and hopefully few prototypes,
10885 which can conflict with char $ac_func(); below. */
10886 #include <assert.h>
10887 /* Override any gcc2 internal prototype to avoid an error. */
10888 /* We use char because int might match the return type of a gcc2
10889 builtin and then its argument prototype would still apply. */
10890 char $ac_func();
10892 int main() {
10894 /* The GNU C library defines this for functions which it implements
10895 to always fail with ENOSYS. Some functions are actually named
10896 something starting with __ and the normal name is an alias. */
10897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10898 choke me
10899 #else
10900 $ac_func();
10901 #endif
10903 ; return 0; }
10905 if { (eval echo configure:10906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10906 rm -rf conftest*
10907 eval "ac_cv_func_$ac_func=yes"
10908 else
10909 echo "configure: failed program was:" >&5
10910 cat conftest.$ac_ext >&5
10911 rm -rf conftest*
10912 eval "ac_cv_func_$ac_func=no"
10914 rm -f conftest*
10917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10918 echo "$ac_t""yes" 1>&6
10919 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10920 cat >> confdefs.h <<EOF
10921 #define $ac_tr_func 1
10924 else
10925 echo "$ac_t""no" 1>&6
10927 done
10934 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
10935 echo "configure:10936: checking for isinfl declaration" >&5
10936 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
10937 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
10938 echo $ac_n "(cached) $ac_c" 1>&6
10939 else
10942 ac_ext=C
10943 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10944 ac_cpp='$CXXCPP $CPPFLAGS'
10945 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10946 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10947 cross_compiling=$ac_cv_prog_cxx_cross
10949 cat > conftest.$ac_ext <<EOF
10950 #line 10951 "configure"
10951 #include "confdefs.h"
10952 #include <math.h>
10953 #ifdef HAVE_IEEEFP_H
10954 #include <ieeefp.h>
10955 #endif
10957 int main() {
10958 isinfl(0);
10959 ; return 0; }
10961 if { (eval echo configure:10962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10962 rm -rf conftest*
10963 glibcpp_cv_func_isinfl_use=yes
10964 else
10965 echo "configure: failed program was:" >&5
10966 cat conftest.$ac_ext >&5
10967 rm -rf conftest*
10968 glibcpp_cv_func_isinfl_use=no
10970 rm -f conftest*
10971 ac_ext=c
10972 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10973 ac_cpp='$CPP $CPPFLAGS'
10974 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10975 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10976 cross_compiling=$ac_cv_prog_cc_cross
10982 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
10984 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
10985 for ac_func in isinfl
10987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10988 echo "configure:10989: checking for $ac_func" >&5
10989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10990 echo $ac_n "(cached) $ac_c" 1>&6
10991 else
10992 cat > conftest.$ac_ext <<EOF
10993 #line 10994 "configure"
10994 #include "confdefs.h"
10995 /* System header to define __stub macros and hopefully few prototypes,
10996 which can conflict with char $ac_func(); below. */
10997 #include <assert.h>
10998 /* Override any gcc2 internal prototype to avoid an error. */
10999 /* We use char because int might match the return type of a gcc2
11000 builtin and then its argument prototype would still apply. */
11001 char $ac_func();
11003 int main() {
11005 /* The GNU C library defines this for functions which it implements
11006 to always fail with ENOSYS. Some functions are actually named
11007 something starting with __ and the normal name is an alias. */
11008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11009 choke me
11010 #else
11011 $ac_func();
11012 #endif
11014 ; return 0; }
11016 if { (eval echo configure:11017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11017 rm -rf conftest*
11018 eval "ac_cv_func_$ac_func=yes"
11019 else
11020 echo "configure: failed program was:" >&5
11021 cat conftest.$ac_ext >&5
11022 rm -rf conftest*
11023 eval "ac_cv_func_$ac_func=no"
11025 rm -f conftest*
11028 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11029 echo "$ac_t""yes" 1>&6
11030 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11031 cat >> confdefs.h <<EOF
11032 #define $ac_tr_func 1
11035 else
11036 echo "$ac_t""no" 1>&6
11038 done
11040 else
11042 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
11043 echo "configure:11044: checking for _isinfl declaration" >&5
11044 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
11045 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
11046 echo $ac_n "(cached) $ac_c" 1>&6
11047 else
11050 ac_ext=C
11051 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11052 ac_cpp='$CXXCPP $CPPFLAGS'
11053 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11054 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11055 cross_compiling=$ac_cv_prog_cxx_cross
11057 cat > conftest.$ac_ext <<EOF
11058 #line 11059 "configure"
11059 #include "confdefs.h"
11060 #include <math.h>
11061 #ifdef HAVE_IEEEFP_H
11062 #include <ieeefp.h>
11063 #endif
11065 int main() {
11066 _isinfl(0);
11067 ; return 0; }
11069 if { (eval echo configure:11070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11070 rm -rf conftest*
11071 glibcpp_cv_func__isinfl_use=yes
11072 else
11073 echo "configure: failed program was:" >&5
11074 cat conftest.$ac_ext >&5
11075 rm -rf conftest*
11076 glibcpp_cv_func__isinfl_use=no
11078 rm -f conftest*
11079 ac_ext=c
11080 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11081 ac_cpp='$CPP $CPPFLAGS'
11082 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11083 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11084 cross_compiling=$ac_cv_prog_cc_cross
11090 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
11092 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
11093 for ac_func in _isinfl
11095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11096 echo "configure:11097: checking for $ac_func" >&5
11097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11098 echo $ac_n "(cached) $ac_c" 1>&6
11099 else
11100 cat > conftest.$ac_ext <<EOF
11101 #line 11102 "configure"
11102 #include "confdefs.h"
11103 /* System header to define __stub macros and hopefully few prototypes,
11104 which can conflict with char $ac_func(); below. */
11105 #include <assert.h>
11106 /* Override any gcc2 internal prototype to avoid an error. */
11107 /* We use char because int might match the return type of a gcc2
11108 builtin and then its argument prototype would still apply. */
11109 char $ac_func();
11111 int main() {
11113 /* The GNU C library defines this for functions which it implements
11114 to always fail with ENOSYS. Some functions are actually named
11115 something starting with __ and the normal name is an alias. */
11116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11117 choke me
11118 #else
11119 $ac_func();
11120 #endif
11122 ; return 0; }
11124 if { (eval echo configure:11125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11125 rm -rf conftest*
11126 eval "ac_cv_func_$ac_func=yes"
11127 else
11128 echo "configure: failed program was:" >&5
11129 cat conftest.$ac_ext >&5
11130 rm -rf conftest*
11131 eval "ac_cv_func_$ac_func=no"
11133 rm -f conftest*
11136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11137 echo "$ac_t""yes" 1>&6
11138 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11139 cat >> confdefs.h <<EOF
11140 #define $ac_tr_func 1
11143 else
11144 echo "$ac_t""no" 1>&6
11146 done
11153 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
11154 echo "configure:11155: checking for copysignl declaration" >&5
11155 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
11156 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
11157 echo $ac_n "(cached) $ac_c" 1>&6
11158 else
11161 ac_ext=C
11162 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11163 ac_cpp='$CXXCPP $CPPFLAGS'
11164 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11165 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11166 cross_compiling=$ac_cv_prog_cxx_cross
11168 cat > conftest.$ac_ext <<EOF
11169 #line 11170 "configure"
11170 #include "confdefs.h"
11171 #include <math.h>
11172 int main() {
11173 copysignl(0, 0);
11174 ; return 0; }
11176 if { (eval echo configure:11177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11177 rm -rf conftest*
11178 glibcpp_cv_func_copysignl_use=yes
11179 else
11180 echo "configure: failed program was:" >&5
11181 cat conftest.$ac_ext >&5
11182 rm -rf conftest*
11183 glibcpp_cv_func_copysignl_use=no
11185 rm -f conftest*
11186 ac_ext=c
11187 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11188 ac_cpp='$CPP $CPPFLAGS'
11189 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11190 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11191 cross_compiling=$ac_cv_prog_cc_cross
11197 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
11199 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
11200 for ac_func in copysignl
11202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11203 echo "configure:11204: checking for $ac_func" >&5
11204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11205 echo $ac_n "(cached) $ac_c" 1>&6
11206 else
11207 cat > conftest.$ac_ext <<EOF
11208 #line 11209 "configure"
11209 #include "confdefs.h"
11210 /* System header to define __stub macros and hopefully few prototypes,
11211 which can conflict with char $ac_func(); below. */
11212 #include <assert.h>
11213 /* Override any gcc2 internal prototype to avoid an error. */
11214 /* We use char because int might match the return type of a gcc2
11215 builtin and then its argument prototype would still apply. */
11216 char $ac_func();
11218 int main() {
11220 /* The GNU C library defines this for functions which it implements
11221 to always fail with ENOSYS. Some functions are actually named
11222 something starting with __ and the normal name is an alias. */
11223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11224 choke me
11225 #else
11226 $ac_func();
11227 #endif
11229 ; return 0; }
11231 if { (eval echo configure:11232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11232 rm -rf conftest*
11233 eval "ac_cv_func_$ac_func=yes"
11234 else
11235 echo "configure: failed program was:" >&5
11236 cat conftest.$ac_ext >&5
11237 rm -rf conftest*
11238 eval "ac_cv_func_$ac_func=no"
11240 rm -f conftest*
11243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11244 echo "$ac_t""yes" 1>&6
11245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11246 cat >> confdefs.h <<EOF
11247 #define $ac_tr_func 1
11250 else
11251 echo "$ac_t""no" 1>&6
11253 done
11255 else
11257 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
11258 echo "configure:11259: checking for _copysignl declaration" >&5
11259 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
11260 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
11261 echo $ac_n "(cached) $ac_c" 1>&6
11262 else
11265 ac_ext=C
11266 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11267 ac_cpp='$CXXCPP $CPPFLAGS'
11268 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11269 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11270 cross_compiling=$ac_cv_prog_cxx_cross
11272 cat > conftest.$ac_ext <<EOF
11273 #line 11274 "configure"
11274 #include "confdefs.h"
11275 #include <math.h>
11276 int main() {
11277 _copysignl(0, 0);
11278 ; return 0; }
11280 if { (eval echo configure:11281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11281 rm -rf conftest*
11282 glibcpp_cv_func__copysignl_use=yes
11283 else
11284 echo "configure: failed program was:" >&5
11285 cat conftest.$ac_ext >&5
11286 rm -rf conftest*
11287 glibcpp_cv_func__copysignl_use=no
11289 rm -f conftest*
11290 ac_ext=c
11291 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11292 ac_cpp='$CPP $CPPFLAGS'
11293 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11294 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11295 cross_compiling=$ac_cv_prog_cc_cross
11301 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
11303 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
11304 for ac_func in _copysignl
11306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11307 echo "configure:11308: checking for $ac_func" >&5
11308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11309 echo $ac_n "(cached) $ac_c" 1>&6
11310 else
11311 cat > conftest.$ac_ext <<EOF
11312 #line 11313 "configure"
11313 #include "confdefs.h"
11314 /* System header to define __stub macros and hopefully few prototypes,
11315 which can conflict with char $ac_func(); below. */
11316 #include <assert.h>
11317 /* Override any gcc2 internal prototype to avoid an error. */
11318 /* We use char because int might match the return type of a gcc2
11319 builtin and then its argument prototype would still apply. */
11320 char $ac_func();
11322 int main() {
11324 /* The GNU C library defines this for functions which it implements
11325 to always fail with ENOSYS. Some functions are actually named
11326 something starting with __ and the normal name is an alias. */
11327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11328 choke me
11329 #else
11330 $ac_func();
11331 #endif
11333 ; return 0; }
11335 if { (eval echo configure:11336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11336 rm -rf conftest*
11337 eval "ac_cv_func_$ac_func=yes"
11338 else
11339 echo "configure: failed program was:" >&5
11340 cat conftest.$ac_ext >&5
11341 rm -rf conftest*
11342 eval "ac_cv_func_$ac_func=no"
11344 rm -f conftest*
11347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11348 echo "$ac_t""yes" 1>&6
11349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11350 cat >> confdefs.h <<EOF
11351 #define $ac_tr_func 1
11354 else
11355 echo "$ac_t""no" 1>&6
11357 done
11364 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
11365 echo "configure:11366: checking for atan2l declaration" >&5
11366 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
11367 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
11368 echo $ac_n "(cached) $ac_c" 1>&6
11369 else
11372 ac_ext=C
11373 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11374 ac_cpp='$CXXCPP $CPPFLAGS'
11375 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11376 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11377 cross_compiling=$ac_cv_prog_cxx_cross
11379 cat > conftest.$ac_ext <<EOF
11380 #line 11381 "configure"
11381 #include "confdefs.h"
11382 #include <math.h>
11383 int main() {
11384 atan2l(0, 0);
11385 ; return 0; }
11387 if { (eval echo configure:11388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11388 rm -rf conftest*
11389 glibcpp_cv_func_atan2l_use=yes
11390 else
11391 echo "configure: failed program was:" >&5
11392 cat conftest.$ac_ext >&5
11393 rm -rf conftest*
11394 glibcpp_cv_func_atan2l_use=no
11396 rm -f conftest*
11397 ac_ext=c
11398 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11399 ac_cpp='$CPP $CPPFLAGS'
11400 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11401 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11402 cross_compiling=$ac_cv_prog_cc_cross
11408 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
11410 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
11411 for ac_func in atan2l
11413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11414 echo "configure:11415: checking for $ac_func" >&5
11415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11416 echo $ac_n "(cached) $ac_c" 1>&6
11417 else
11418 cat > conftest.$ac_ext <<EOF
11419 #line 11420 "configure"
11420 #include "confdefs.h"
11421 /* System header to define __stub macros and hopefully few prototypes,
11422 which can conflict with char $ac_func(); below. */
11423 #include <assert.h>
11424 /* Override any gcc2 internal prototype to avoid an error. */
11425 /* We use char because int might match the return type of a gcc2
11426 builtin and then its argument prototype would still apply. */
11427 char $ac_func();
11429 int main() {
11431 /* The GNU C library defines this for functions which it implements
11432 to always fail with ENOSYS. Some functions are actually named
11433 something starting with __ and the normal name is an alias. */
11434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11435 choke me
11436 #else
11437 $ac_func();
11438 #endif
11440 ; return 0; }
11442 if { (eval echo configure:11443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11443 rm -rf conftest*
11444 eval "ac_cv_func_$ac_func=yes"
11445 else
11446 echo "configure: failed program was:" >&5
11447 cat conftest.$ac_ext >&5
11448 rm -rf conftest*
11449 eval "ac_cv_func_$ac_func=no"
11451 rm -f conftest*
11454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11455 echo "$ac_t""yes" 1>&6
11456 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11457 cat >> confdefs.h <<EOF
11458 #define $ac_tr_func 1
11461 else
11462 echo "$ac_t""no" 1>&6
11464 done
11466 else
11468 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
11469 echo "configure:11470: checking for _atan2l declaration" >&5
11470 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
11471 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
11472 echo $ac_n "(cached) $ac_c" 1>&6
11473 else
11476 ac_ext=C
11477 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11478 ac_cpp='$CXXCPP $CPPFLAGS'
11479 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11480 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11481 cross_compiling=$ac_cv_prog_cxx_cross
11483 cat > conftest.$ac_ext <<EOF
11484 #line 11485 "configure"
11485 #include "confdefs.h"
11486 #include <math.h>
11487 int main() {
11488 _atan2l(0, 0);
11489 ; return 0; }
11491 if { (eval echo configure:11492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11492 rm -rf conftest*
11493 glibcpp_cv_func__atan2l_use=yes
11494 else
11495 echo "configure: failed program was:" >&5
11496 cat conftest.$ac_ext >&5
11497 rm -rf conftest*
11498 glibcpp_cv_func__atan2l_use=no
11500 rm -f conftest*
11501 ac_ext=c
11502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11503 ac_cpp='$CPP $CPPFLAGS'
11504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11506 cross_compiling=$ac_cv_prog_cc_cross
11512 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
11514 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
11515 for ac_func in _atan2l
11517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11518 echo "configure:11519: checking for $ac_func" >&5
11519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11520 echo $ac_n "(cached) $ac_c" 1>&6
11521 else
11522 cat > conftest.$ac_ext <<EOF
11523 #line 11524 "configure"
11524 #include "confdefs.h"
11525 /* System header to define __stub macros and hopefully few prototypes,
11526 which can conflict with char $ac_func(); below. */
11527 #include <assert.h>
11528 /* Override any gcc2 internal prototype to avoid an error. */
11529 /* We use char because int might match the return type of a gcc2
11530 builtin and then its argument prototype would still apply. */
11531 char $ac_func();
11533 int main() {
11535 /* The GNU C library defines this for functions which it implements
11536 to always fail with ENOSYS. Some functions are actually named
11537 something starting with __ and the normal name is an alias. */
11538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11539 choke me
11540 #else
11541 $ac_func();
11542 #endif
11544 ; return 0; }
11546 if { (eval echo configure:11547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11547 rm -rf conftest*
11548 eval "ac_cv_func_$ac_func=yes"
11549 else
11550 echo "configure: failed program was:" >&5
11551 cat conftest.$ac_ext >&5
11552 rm -rf conftest*
11553 eval "ac_cv_func_$ac_func=no"
11555 rm -f conftest*
11558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11559 echo "$ac_t""yes" 1>&6
11560 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11561 cat >> confdefs.h <<EOF
11562 #define $ac_tr_func 1
11565 else
11566 echo "$ac_t""no" 1>&6
11568 done
11575 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
11576 echo "configure:11577: checking for expl declaration" >&5
11577 if test x${glibcpp_cv_func_expl_use+set} != xset; then
11578 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
11579 echo $ac_n "(cached) $ac_c" 1>&6
11580 else
11583 ac_ext=C
11584 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11585 ac_cpp='$CXXCPP $CPPFLAGS'
11586 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11587 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11588 cross_compiling=$ac_cv_prog_cxx_cross
11590 cat > conftest.$ac_ext <<EOF
11591 #line 11592 "configure"
11592 #include "confdefs.h"
11593 #include <math.h>
11594 #ifdef HAVE_IEEEFP_H
11595 #include <ieeefp.h>
11596 #endif
11598 int main() {
11599 expl(0);
11600 ; return 0; }
11602 if { (eval echo configure:11603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11603 rm -rf conftest*
11604 glibcpp_cv_func_expl_use=yes
11605 else
11606 echo "configure: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11608 rm -rf conftest*
11609 glibcpp_cv_func_expl_use=no
11611 rm -f conftest*
11612 ac_ext=c
11613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11614 ac_cpp='$CPP $CPPFLAGS'
11615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11617 cross_compiling=$ac_cv_prog_cc_cross
11623 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
11625 if test x$glibcpp_cv_func_expl_use = x"yes"; then
11626 for ac_func in expl
11628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11629 echo "configure:11630: checking for $ac_func" >&5
11630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11631 echo $ac_n "(cached) $ac_c" 1>&6
11632 else
11633 cat > conftest.$ac_ext <<EOF
11634 #line 11635 "configure"
11635 #include "confdefs.h"
11636 /* System header to define __stub macros and hopefully few prototypes,
11637 which can conflict with char $ac_func(); below. */
11638 #include <assert.h>
11639 /* Override any gcc2 internal prototype to avoid an error. */
11640 /* We use char because int might match the return type of a gcc2
11641 builtin and then its argument prototype would still apply. */
11642 char $ac_func();
11644 int main() {
11646 /* The GNU C library defines this for functions which it implements
11647 to always fail with ENOSYS. Some functions are actually named
11648 something starting with __ and the normal name is an alias. */
11649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11650 choke me
11651 #else
11652 $ac_func();
11653 #endif
11655 ; return 0; }
11657 if { (eval echo configure:11658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11658 rm -rf conftest*
11659 eval "ac_cv_func_$ac_func=yes"
11660 else
11661 echo "configure: failed program was:" >&5
11662 cat conftest.$ac_ext >&5
11663 rm -rf conftest*
11664 eval "ac_cv_func_$ac_func=no"
11666 rm -f conftest*
11669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11670 echo "$ac_t""yes" 1>&6
11671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11672 cat >> confdefs.h <<EOF
11673 #define $ac_tr_func 1
11676 else
11677 echo "$ac_t""no" 1>&6
11679 done
11681 else
11683 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
11684 echo "configure:11685: checking for _expl declaration" >&5
11685 if test x${glibcpp_cv_func__expl_use+set} != xset; then
11686 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
11687 echo $ac_n "(cached) $ac_c" 1>&6
11688 else
11691 ac_ext=C
11692 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11693 ac_cpp='$CXXCPP $CPPFLAGS'
11694 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11695 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11696 cross_compiling=$ac_cv_prog_cxx_cross
11698 cat > conftest.$ac_ext <<EOF
11699 #line 11700 "configure"
11700 #include "confdefs.h"
11701 #include <math.h>
11702 #ifdef HAVE_IEEEFP_H
11703 #include <ieeefp.h>
11704 #endif
11706 int main() {
11707 _expl(0);
11708 ; return 0; }
11710 if { (eval echo configure:11711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11711 rm -rf conftest*
11712 glibcpp_cv_func__expl_use=yes
11713 else
11714 echo "configure: failed program was:" >&5
11715 cat conftest.$ac_ext >&5
11716 rm -rf conftest*
11717 glibcpp_cv_func__expl_use=no
11719 rm -f conftest*
11720 ac_ext=c
11721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11722 ac_cpp='$CPP $CPPFLAGS'
11723 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11724 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11725 cross_compiling=$ac_cv_prog_cc_cross
11731 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
11733 if test x$glibcpp_cv_func__expl_use = x"yes"; then
11734 for ac_func in _expl
11736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11737 echo "configure:11738: checking for $ac_func" >&5
11738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11739 echo $ac_n "(cached) $ac_c" 1>&6
11740 else
11741 cat > conftest.$ac_ext <<EOF
11742 #line 11743 "configure"
11743 #include "confdefs.h"
11744 /* System header to define __stub macros and hopefully few prototypes,
11745 which can conflict with char $ac_func(); below. */
11746 #include <assert.h>
11747 /* Override any gcc2 internal prototype to avoid an error. */
11748 /* We use char because int might match the return type of a gcc2
11749 builtin and then its argument prototype would still apply. */
11750 char $ac_func();
11752 int main() {
11754 /* The GNU C library defines this for functions which it implements
11755 to always fail with ENOSYS. Some functions are actually named
11756 something starting with __ and the normal name is an alias. */
11757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11758 choke me
11759 #else
11760 $ac_func();
11761 #endif
11763 ; return 0; }
11765 if { (eval echo configure:11766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11766 rm -rf conftest*
11767 eval "ac_cv_func_$ac_func=yes"
11768 else
11769 echo "configure: failed program was:" >&5
11770 cat conftest.$ac_ext >&5
11771 rm -rf conftest*
11772 eval "ac_cv_func_$ac_func=no"
11774 rm -f conftest*
11777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11778 echo "$ac_t""yes" 1>&6
11779 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11780 cat >> confdefs.h <<EOF
11781 #define $ac_tr_func 1
11784 else
11785 echo "$ac_t""no" 1>&6
11787 done
11794 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
11795 echo "configure:11796: checking for fabsl declaration" >&5
11796 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
11797 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
11798 echo $ac_n "(cached) $ac_c" 1>&6
11799 else
11802 ac_ext=C
11803 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11804 ac_cpp='$CXXCPP $CPPFLAGS'
11805 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11806 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11807 cross_compiling=$ac_cv_prog_cxx_cross
11809 cat > conftest.$ac_ext <<EOF
11810 #line 11811 "configure"
11811 #include "confdefs.h"
11812 #include <math.h>
11813 #ifdef HAVE_IEEEFP_H
11814 #include <ieeefp.h>
11815 #endif
11817 int main() {
11818 fabsl(0);
11819 ; return 0; }
11821 if { (eval echo configure:11822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11822 rm -rf conftest*
11823 glibcpp_cv_func_fabsl_use=yes
11824 else
11825 echo "configure: failed program was:" >&5
11826 cat conftest.$ac_ext >&5
11827 rm -rf conftest*
11828 glibcpp_cv_func_fabsl_use=no
11830 rm -f conftest*
11831 ac_ext=c
11832 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11833 ac_cpp='$CPP $CPPFLAGS'
11834 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11835 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11836 cross_compiling=$ac_cv_prog_cc_cross
11842 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
11844 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
11845 for ac_func in fabsl
11847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11848 echo "configure:11849: checking for $ac_func" >&5
11849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11850 echo $ac_n "(cached) $ac_c" 1>&6
11851 else
11852 cat > conftest.$ac_ext <<EOF
11853 #line 11854 "configure"
11854 #include "confdefs.h"
11855 /* System header to define __stub macros and hopefully few prototypes,
11856 which can conflict with char $ac_func(); below. */
11857 #include <assert.h>
11858 /* Override any gcc2 internal prototype to avoid an error. */
11859 /* We use char because int might match the return type of a gcc2
11860 builtin and then its argument prototype would still apply. */
11861 char $ac_func();
11863 int main() {
11865 /* The GNU C library defines this for functions which it implements
11866 to always fail with ENOSYS. Some functions are actually named
11867 something starting with __ and the normal name is an alias. */
11868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11869 choke me
11870 #else
11871 $ac_func();
11872 #endif
11874 ; return 0; }
11876 if { (eval echo configure:11877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11877 rm -rf conftest*
11878 eval "ac_cv_func_$ac_func=yes"
11879 else
11880 echo "configure: failed program was:" >&5
11881 cat conftest.$ac_ext >&5
11882 rm -rf conftest*
11883 eval "ac_cv_func_$ac_func=no"
11885 rm -f conftest*
11888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11889 echo "$ac_t""yes" 1>&6
11890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11891 cat >> confdefs.h <<EOF
11892 #define $ac_tr_func 1
11895 else
11896 echo "$ac_t""no" 1>&6
11898 done
11900 else
11902 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
11903 echo "configure:11904: checking for _fabsl declaration" >&5
11904 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
11905 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
11906 echo $ac_n "(cached) $ac_c" 1>&6
11907 else
11910 ac_ext=C
11911 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11912 ac_cpp='$CXXCPP $CPPFLAGS'
11913 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11914 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11915 cross_compiling=$ac_cv_prog_cxx_cross
11917 cat > conftest.$ac_ext <<EOF
11918 #line 11919 "configure"
11919 #include "confdefs.h"
11920 #include <math.h>
11921 #ifdef HAVE_IEEEFP_H
11922 #include <ieeefp.h>
11923 #endif
11925 int main() {
11926 _fabsl(0);
11927 ; return 0; }
11929 if { (eval echo configure:11930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11930 rm -rf conftest*
11931 glibcpp_cv_func__fabsl_use=yes
11932 else
11933 echo "configure: failed program was:" >&5
11934 cat conftest.$ac_ext >&5
11935 rm -rf conftest*
11936 glibcpp_cv_func__fabsl_use=no
11938 rm -f conftest*
11939 ac_ext=c
11940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11941 ac_cpp='$CPP $CPPFLAGS'
11942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11944 cross_compiling=$ac_cv_prog_cc_cross
11950 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
11952 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
11953 for ac_func in _fabsl
11955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11956 echo "configure:11957: checking for $ac_func" >&5
11957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11958 echo $ac_n "(cached) $ac_c" 1>&6
11959 else
11960 cat > conftest.$ac_ext <<EOF
11961 #line 11962 "configure"
11962 #include "confdefs.h"
11963 /* System header to define __stub macros and hopefully few prototypes,
11964 which can conflict with char $ac_func(); below. */
11965 #include <assert.h>
11966 /* Override any gcc2 internal prototype to avoid an error. */
11967 /* We use char because int might match the return type of a gcc2
11968 builtin and then its argument prototype would still apply. */
11969 char $ac_func();
11971 int main() {
11973 /* The GNU C library defines this for functions which it implements
11974 to always fail with ENOSYS. Some functions are actually named
11975 something starting with __ and the normal name is an alias. */
11976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11977 choke me
11978 #else
11979 $ac_func();
11980 #endif
11982 ; return 0; }
11984 if { (eval echo configure:11985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11985 rm -rf conftest*
11986 eval "ac_cv_func_$ac_func=yes"
11987 else
11988 echo "configure: failed program was:" >&5
11989 cat conftest.$ac_ext >&5
11990 rm -rf conftest*
11991 eval "ac_cv_func_$ac_func=no"
11993 rm -f conftest*
11996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11997 echo "$ac_t""yes" 1>&6
11998 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11999 cat >> confdefs.h <<EOF
12000 #define $ac_tr_func 1
12003 else
12004 echo "$ac_t""no" 1>&6
12006 done
12013 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
12014 echo "configure:12015: checking for fmodl declaration" >&5
12015 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
12016 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
12017 echo $ac_n "(cached) $ac_c" 1>&6
12018 else
12021 ac_ext=C
12022 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12023 ac_cpp='$CXXCPP $CPPFLAGS'
12024 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12025 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12026 cross_compiling=$ac_cv_prog_cxx_cross
12028 cat > conftest.$ac_ext <<EOF
12029 #line 12030 "configure"
12030 #include "confdefs.h"
12031 #include <math.h>
12032 int main() {
12033 fmodl(0, 0);
12034 ; return 0; }
12036 if { (eval echo configure:12037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12037 rm -rf conftest*
12038 glibcpp_cv_func_fmodl_use=yes
12039 else
12040 echo "configure: failed program was:" >&5
12041 cat conftest.$ac_ext >&5
12042 rm -rf conftest*
12043 glibcpp_cv_func_fmodl_use=no
12045 rm -f conftest*
12046 ac_ext=c
12047 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12048 ac_cpp='$CPP $CPPFLAGS'
12049 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12050 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12051 cross_compiling=$ac_cv_prog_cc_cross
12057 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
12059 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
12060 for ac_func in fmodl
12062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12063 echo "configure:12064: checking for $ac_func" >&5
12064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12065 echo $ac_n "(cached) $ac_c" 1>&6
12066 else
12067 cat > conftest.$ac_ext <<EOF
12068 #line 12069 "configure"
12069 #include "confdefs.h"
12070 /* System header to define __stub macros and hopefully few prototypes,
12071 which can conflict with char $ac_func(); below. */
12072 #include <assert.h>
12073 /* Override any gcc2 internal prototype to avoid an error. */
12074 /* We use char because int might match the return type of a gcc2
12075 builtin and then its argument prototype would still apply. */
12076 char $ac_func();
12078 int main() {
12080 /* The GNU C library defines this for functions which it implements
12081 to always fail with ENOSYS. Some functions are actually named
12082 something starting with __ and the normal name is an alias. */
12083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12084 choke me
12085 #else
12086 $ac_func();
12087 #endif
12089 ; return 0; }
12091 if { (eval echo configure:12092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12092 rm -rf conftest*
12093 eval "ac_cv_func_$ac_func=yes"
12094 else
12095 echo "configure: failed program was:" >&5
12096 cat conftest.$ac_ext >&5
12097 rm -rf conftest*
12098 eval "ac_cv_func_$ac_func=no"
12100 rm -f conftest*
12103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12104 echo "$ac_t""yes" 1>&6
12105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12106 cat >> confdefs.h <<EOF
12107 #define $ac_tr_func 1
12110 else
12111 echo "$ac_t""no" 1>&6
12113 done
12115 else
12117 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
12118 echo "configure:12119: checking for _fmodl declaration" >&5
12119 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
12120 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
12121 echo $ac_n "(cached) $ac_c" 1>&6
12122 else
12125 ac_ext=C
12126 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12127 ac_cpp='$CXXCPP $CPPFLAGS'
12128 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12129 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12130 cross_compiling=$ac_cv_prog_cxx_cross
12132 cat > conftest.$ac_ext <<EOF
12133 #line 12134 "configure"
12134 #include "confdefs.h"
12135 #include <math.h>
12136 int main() {
12137 _fmodl(0, 0);
12138 ; return 0; }
12140 if { (eval echo configure:12141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12141 rm -rf conftest*
12142 glibcpp_cv_func__fmodl_use=yes
12143 else
12144 echo "configure: failed program was:" >&5
12145 cat conftest.$ac_ext >&5
12146 rm -rf conftest*
12147 glibcpp_cv_func__fmodl_use=no
12149 rm -f conftest*
12150 ac_ext=c
12151 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12152 ac_cpp='$CPP $CPPFLAGS'
12153 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12154 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12155 cross_compiling=$ac_cv_prog_cc_cross
12161 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
12163 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
12164 for ac_func in _fmodl
12166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12167 echo "configure:12168: checking for $ac_func" >&5
12168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12169 echo $ac_n "(cached) $ac_c" 1>&6
12170 else
12171 cat > conftest.$ac_ext <<EOF
12172 #line 12173 "configure"
12173 #include "confdefs.h"
12174 /* System header to define __stub macros and hopefully few prototypes,
12175 which can conflict with char $ac_func(); below. */
12176 #include <assert.h>
12177 /* Override any gcc2 internal prototype to avoid an error. */
12178 /* We use char because int might match the return type of a gcc2
12179 builtin and then its argument prototype would still apply. */
12180 char $ac_func();
12182 int main() {
12184 /* The GNU C library defines this for functions which it implements
12185 to always fail with ENOSYS. Some functions are actually named
12186 something starting with __ and the normal name is an alias. */
12187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12188 choke me
12189 #else
12190 $ac_func();
12191 #endif
12193 ; return 0; }
12195 if { (eval echo configure:12196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12196 rm -rf conftest*
12197 eval "ac_cv_func_$ac_func=yes"
12198 else
12199 echo "configure: failed program was:" >&5
12200 cat conftest.$ac_ext >&5
12201 rm -rf conftest*
12202 eval "ac_cv_func_$ac_func=no"
12204 rm -f conftest*
12207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12208 echo "$ac_t""yes" 1>&6
12209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12210 cat >> confdefs.h <<EOF
12211 #define $ac_tr_func 1
12214 else
12215 echo "$ac_t""no" 1>&6
12217 done
12224 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
12225 echo "configure:12226: checking for frexpl declaration" >&5
12226 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
12227 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
12228 echo $ac_n "(cached) $ac_c" 1>&6
12229 else
12232 ac_ext=C
12233 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12234 ac_cpp='$CXXCPP $CPPFLAGS'
12235 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12236 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12237 cross_compiling=$ac_cv_prog_cxx_cross
12239 cat > conftest.$ac_ext <<EOF
12240 #line 12241 "configure"
12241 #include "confdefs.h"
12242 #include <math.h>
12243 int main() {
12244 frexpl(0, 0);
12245 ; return 0; }
12247 if { (eval echo configure:12248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12248 rm -rf conftest*
12249 glibcpp_cv_func_frexpl_use=yes
12250 else
12251 echo "configure: failed program was:" >&5
12252 cat conftest.$ac_ext >&5
12253 rm -rf conftest*
12254 glibcpp_cv_func_frexpl_use=no
12256 rm -f conftest*
12257 ac_ext=c
12258 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12259 ac_cpp='$CPP $CPPFLAGS'
12260 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12261 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12262 cross_compiling=$ac_cv_prog_cc_cross
12268 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
12270 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
12271 for ac_func in frexpl
12273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12274 echo "configure:12275: checking for $ac_func" >&5
12275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12276 echo $ac_n "(cached) $ac_c" 1>&6
12277 else
12278 cat > conftest.$ac_ext <<EOF
12279 #line 12280 "configure"
12280 #include "confdefs.h"
12281 /* System header to define __stub macros and hopefully few prototypes,
12282 which can conflict with char $ac_func(); below. */
12283 #include <assert.h>
12284 /* Override any gcc2 internal prototype to avoid an error. */
12285 /* We use char because int might match the return type of a gcc2
12286 builtin and then its argument prototype would still apply. */
12287 char $ac_func();
12289 int main() {
12291 /* The GNU C library defines this for functions which it implements
12292 to always fail with ENOSYS. Some functions are actually named
12293 something starting with __ and the normal name is an alias. */
12294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12295 choke me
12296 #else
12297 $ac_func();
12298 #endif
12300 ; return 0; }
12302 if { (eval echo configure:12303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12303 rm -rf conftest*
12304 eval "ac_cv_func_$ac_func=yes"
12305 else
12306 echo "configure: failed program was:" >&5
12307 cat conftest.$ac_ext >&5
12308 rm -rf conftest*
12309 eval "ac_cv_func_$ac_func=no"
12311 rm -f conftest*
12314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12315 echo "$ac_t""yes" 1>&6
12316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12317 cat >> confdefs.h <<EOF
12318 #define $ac_tr_func 1
12321 else
12322 echo "$ac_t""no" 1>&6
12324 done
12326 else
12328 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
12329 echo "configure:12330: checking for _frexpl declaration" >&5
12330 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
12331 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
12332 echo $ac_n "(cached) $ac_c" 1>&6
12333 else
12336 ac_ext=C
12337 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12338 ac_cpp='$CXXCPP $CPPFLAGS'
12339 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12340 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12341 cross_compiling=$ac_cv_prog_cxx_cross
12343 cat > conftest.$ac_ext <<EOF
12344 #line 12345 "configure"
12345 #include "confdefs.h"
12346 #include <math.h>
12347 int main() {
12348 _frexpl(0, 0);
12349 ; return 0; }
12351 if { (eval echo configure:12352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12352 rm -rf conftest*
12353 glibcpp_cv_func__frexpl_use=yes
12354 else
12355 echo "configure: failed program was:" >&5
12356 cat conftest.$ac_ext >&5
12357 rm -rf conftest*
12358 glibcpp_cv_func__frexpl_use=no
12360 rm -f conftest*
12361 ac_ext=c
12362 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12363 ac_cpp='$CPP $CPPFLAGS'
12364 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12365 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12366 cross_compiling=$ac_cv_prog_cc_cross
12372 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
12374 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
12375 for ac_func in _frexpl
12377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12378 echo "configure:12379: checking for $ac_func" >&5
12379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12380 echo $ac_n "(cached) $ac_c" 1>&6
12381 else
12382 cat > conftest.$ac_ext <<EOF
12383 #line 12384 "configure"
12384 #include "confdefs.h"
12385 /* System header to define __stub macros and hopefully few prototypes,
12386 which can conflict with char $ac_func(); below. */
12387 #include <assert.h>
12388 /* Override any gcc2 internal prototype to avoid an error. */
12389 /* We use char because int might match the return type of a gcc2
12390 builtin and then its argument prototype would still apply. */
12391 char $ac_func();
12393 int main() {
12395 /* The GNU C library defines this for functions which it implements
12396 to always fail with ENOSYS. Some functions are actually named
12397 something starting with __ and the normal name is an alias. */
12398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12399 choke me
12400 #else
12401 $ac_func();
12402 #endif
12404 ; return 0; }
12406 if { (eval echo configure:12407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12407 rm -rf conftest*
12408 eval "ac_cv_func_$ac_func=yes"
12409 else
12410 echo "configure: failed program was:" >&5
12411 cat conftest.$ac_ext >&5
12412 rm -rf conftest*
12413 eval "ac_cv_func_$ac_func=no"
12415 rm -f conftest*
12418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12419 echo "$ac_t""yes" 1>&6
12420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12421 cat >> confdefs.h <<EOF
12422 #define $ac_tr_func 1
12425 else
12426 echo "$ac_t""no" 1>&6
12428 done
12435 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
12436 echo "configure:12437: checking for ldexpl declaration" >&5
12437 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
12438 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
12439 echo $ac_n "(cached) $ac_c" 1>&6
12440 else
12443 ac_ext=C
12444 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12445 ac_cpp='$CXXCPP $CPPFLAGS'
12446 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12447 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12448 cross_compiling=$ac_cv_prog_cxx_cross
12450 cat > conftest.$ac_ext <<EOF
12451 #line 12452 "configure"
12452 #include "confdefs.h"
12453 #include <math.h>
12454 int main() {
12455 ldexpl(0, 0);
12456 ; return 0; }
12458 if { (eval echo configure:12459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12459 rm -rf conftest*
12460 glibcpp_cv_func_ldexpl_use=yes
12461 else
12462 echo "configure: failed program was:" >&5
12463 cat conftest.$ac_ext >&5
12464 rm -rf conftest*
12465 glibcpp_cv_func_ldexpl_use=no
12467 rm -f conftest*
12468 ac_ext=c
12469 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12470 ac_cpp='$CPP $CPPFLAGS'
12471 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12472 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12473 cross_compiling=$ac_cv_prog_cc_cross
12479 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
12481 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
12482 for ac_func in ldexpl
12484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12485 echo "configure:12486: checking for $ac_func" >&5
12486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12487 echo $ac_n "(cached) $ac_c" 1>&6
12488 else
12489 cat > conftest.$ac_ext <<EOF
12490 #line 12491 "configure"
12491 #include "confdefs.h"
12492 /* System header to define __stub macros and hopefully few prototypes,
12493 which can conflict with char $ac_func(); below. */
12494 #include <assert.h>
12495 /* Override any gcc2 internal prototype to avoid an error. */
12496 /* We use char because int might match the return type of a gcc2
12497 builtin and then its argument prototype would still apply. */
12498 char $ac_func();
12500 int main() {
12502 /* The GNU C library defines this for functions which it implements
12503 to always fail with ENOSYS. Some functions are actually named
12504 something starting with __ and the normal name is an alias. */
12505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12506 choke me
12507 #else
12508 $ac_func();
12509 #endif
12511 ; return 0; }
12513 if { (eval echo configure:12514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12514 rm -rf conftest*
12515 eval "ac_cv_func_$ac_func=yes"
12516 else
12517 echo "configure: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12519 rm -rf conftest*
12520 eval "ac_cv_func_$ac_func=no"
12522 rm -f conftest*
12525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12526 echo "$ac_t""yes" 1>&6
12527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12528 cat >> confdefs.h <<EOF
12529 #define $ac_tr_func 1
12532 else
12533 echo "$ac_t""no" 1>&6
12535 done
12537 else
12539 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
12540 echo "configure:12541: checking for _ldexpl declaration" >&5
12541 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
12542 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
12543 echo $ac_n "(cached) $ac_c" 1>&6
12544 else
12547 ac_ext=C
12548 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12549 ac_cpp='$CXXCPP $CPPFLAGS'
12550 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12551 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12552 cross_compiling=$ac_cv_prog_cxx_cross
12554 cat > conftest.$ac_ext <<EOF
12555 #line 12556 "configure"
12556 #include "confdefs.h"
12557 #include <math.h>
12558 int main() {
12559 _ldexpl(0, 0);
12560 ; return 0; }
12562 if { (eval echo configure:12563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12563 rm -rf conftest*
12564 glibcpp_cv_func__ldexpl_use=yes
12565 else
12566 echo "configure: failed program was:" >&5
12567 cat conftest.$ac_ext >&5
12568 rm -rf conftest*
12569 glibcpp_cv_func__ldexpl_use=no
12571 rm -f conftest*
12572 ac_ext=c
12573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12574 ac_cpp='$CPP $CPPFLAGS'
12575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12576 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12577 cross_compiling=$ac_cv_prog_cc_cross
12583 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
12585 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
12586 for ac_func in _ldexpl
12588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12589 echo "configure:12590: checking for $ac_func" >&5
12590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12591 echo $ac_n "(cached) $ac_c" 1>&6
12592 else
12593 cat > conftest.$ac_ext <<EOF
12594 #line 12595 "configure"
12595 #include "confdefs.h"
12596 /* System header to define __stub macros and hopefully few prototypes,
12597 which can conflict with char $ac_func(); below. */
12598 #include <assert.h>
12599 /* Override any gcc2 internal prototype to avoid an error. */
12600 /* We use char because int might match the return type of a gcc2
12601 builtin and then its argument prototype would still apply. */
12602 char $ac_func();
12604 int main() {
12606 /* The GNU C library defines this for functions which it implements
12607 to always fail with ENOSYS. Some functions are actually named
12608 something starting with __ and the normal name is an alias. */
12609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12610 choke me
12611 #else
12612 $ac_func();
12613 #endif
12615 ; return 0; }
12617 if { (eval echo configure:12618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12618 rm -rf conftest*
12619 eval "ac_cv_func_$ac_func=yes"
12620 else
12621 echo "configure: failed program was:" >&5
12622 cat conftest.$ac_ext >&5
12623 rm -rf conftest*
12624 eval "ac_cv_func_$ac_func=no"
12626 rm -f conftest*
12629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12630 echo "$ac_t""yes" 1>&6
12631 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12632 cat >> confdefs.h <<EOF
12633 #define $ac_tr_func 1
12636 else
12637 echo "$ac_t""no" 1>&6
12639 done
12646 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
12647 echo "configure:12648: checking for logl declaration" >&5
12648 if test x${glibcpp_cv_func_logl_use+set} != xset; then
12649 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
12650 echo $ac_n "(cached) $ac_c" 1>&6
12651 else
12654 ac_ext=C
12655 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12656 ac_cpp='$CXXCPP $CPPFLAGS'
12657 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12658 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12659 cross_compiling=$ac_cv_prog_cxx_cross
12661 cat > conftest.$ac_ext <<EOF
12662 #line 12663 "configure"
12663 #include "confdefs.h"
12664 #include <math.h>
12665 #ifdef HAVE_IEEEFP_H
12666 #include <ieeefp.h>
12667 #endif
12669 int main() {
12670 logl(0);
12671 ; return 0; }
12673 if { (eval echo configure:12674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12674 rm -rf conftest*
12675 glibcpp_cv_func_logl_use=yes
12676 else
12677 echo "configure: failed program was:" >&5
12678 cat conftest.$ac_ext >&5
12679 rm -rf conftest*
12680 glibcpp_cv_func_logl_use=no
12682 rm -f conftest*
12683 ac_ext=c
12684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12685 ac_cpp='$CPP $CPPFLAGS'
12686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12688 cross_compiling=$ac_cv_prog_cc_cross
12694 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
12696 if test x$glibcpp_cv_func_logl_use = x"yes"; then
12697 for ac_func in logl
12699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12700 echo "configure:12701: checking for $ac_func" >&5
12701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12702 echo $ac_n "(cached) $ac_c" 1>&6
12703 else
12704 cat > conftest.$ac_ext <<EOF
12705 #line 12706 "configure"
12706 #include "confdefs.h"
12707 /* System header to define __stub macros and hopefully few prototypes,
12708 which can conflict with char $ac_func(); below. */
12709 #include <assert.h>
12710 /* Override any gcc2 internal prototype to avoid an error. */
12711 /* We use char because int might match the return type of a gcc2
12712 builtin and then its argument prototype would still apply. */
12713 char $ac_func();
12715 int main() {
12717 /* The GNU C library defines this for functions which it implements
12718 to always fail with ENOSYS. Some functions are actually named
12719 something starting with __ and the normal name is an alias. */
12720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12721 choke me
12722 #else
12723 $ac_func();
12724 #endif
12726 ; return 0; }
12728 if { (eval echo configure:12729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12729 rm -rf conftest*
12730 eval "ac_cv_func_$ac_func=yes"
12731 else
12732 echo "configure: failed program was:" >&5
12733 cat conftest.$ac_ext >&5
12734 rm -rf conftest*
12735 eval "ac_cv_func_$ac_func=no"
12737 rm -f conftest*
12740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12741 echo "$ac_t""yes" 1>&6
12742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12743 cat >> confdefs.h <<EOF
12744 #define $ac_tr_func 1
12747 else
12748 echo "$ac_t""no" 1>&6
12750 done
12752 else
12754 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
12755 echo "configure:12756: checking for _logl declaration" >&5
12756 if test x${glibcpp_cv_func__logl_use+set} != xset; then
12757 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
12758 echo $ac_n "(cached) $ac_c" 1>&6
12759 else
12762 ac_ext=C
12763 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12764 ac_cpp='$CXXCPP $CPPFLAGS'
12765 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12766 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12767 cross_compiling=$ac_cv_prog_cxx_cross
12769 cat > conftest.$ac_ext <<EOF
12770 #line 12771 "configure"
12771 #include "confdefs.h"
12772 #include <math.h>
12773 #ifdef HAVE_IEEEFP_H
12774 #include <ieeefp.h>
12775 #endif
12777 int main() {
12778 _logl(0);
12779 ; return 0; }
12781 if { (eval echo configure:12782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12782 rm -rf conftest*
12783 glibcpp_cv_func__logl_use=yes
12784 else
12785 echo "configure: failed program was:" >&5
12786 cat conftest.$ac_ext >&5
12787 rm -rf conftest*
12788 glibcpp_cv_func__logl_use=no
12790 rm -f conftest*
12791 ac_ext=c
12792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12793 ac_cpp='$CPP $CPPFLAGS'
12794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12796 cross_compiling=$ac_cv_prog_cc_cross
12802 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
12804 if test x$glibcpp_cv_func__logl_use = x"yes"; then
12805 for ac_func in _logl
12807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12808 echo "configure:12809: checking for $ac_func" >&5
12809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12810 echo $ac_n "(cached) $ac_c" 1>&6
12811 else
12812 cat > conftest.$ac_ext <<EOF
12813 #line 12814 "configure"
12814 #include "confdefs.h"
12815 /* System header to define __stub macros and hopefully few prototypes,
12816 which can conflict with char $ac_func(); below. */
12817 #include <assert.h>
12818 /* Override any gcc2 internal prototype to avoid an error. */
12819 /* We use char because int might match the return type of a gcc2
12820 builtin and then its argument prototype would still apply. */
12821 char $ac_func();
12823 int main() {
12825 /* The GNU C library defines this for functions which it implements
12826 to always fail with ENOSYS. Some functions are actually named
12827 something starting with __ and the normal name is an alias. */
12828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12829 choke me
12830 #else
12831 $ac_func();
12832 #endif
12834 ; return 0; }
12836 if { (eval echo configure:12837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12837 rm -rf conftest*
12838 eval "ac_cv_func_$ac_func=yes"
12839 else
12840 echo "configure: failed program was:" >&5
12841 cat conftest.$ac_ext >&5
12842 rm -rf conftest*
12843 eval "ac_cv_func_$ac_func=no"
12845 rm -f conftest*
12848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12849 echo "$ac_t""yes" 1>&6
12850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12851 cat >> confdefs.h <<EOF
12852 #define $ac_tr_func 1
12855 else
12856 echo "$ac_t""no" 1>&6
12858 done
12865 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
12866 echo "configure:12867: checking for log10l declaration" >&5
12867 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
12868 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
12869 echo $ac_n "(cached) $ac_c" 1>&6
12870 else
12873 ac_ext=C
12874 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12875 ac_cpp='$CXXCPP $CPPFLAGS'
12876 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12877 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12878 cross_compiling=$ac_cv_prog_cxx_cross
12880 cat > conftest.$ac_ext <<EOF
12881 #line 12882 "configure"
12882 #include "confdefs.h"
12883 #include <math.h>
12884 #ifdef HAVE_IEEEFP_H
12885 #include <ieeefp.h>
12886 #endif
12888 int main() {
12889 log10l(0);
12890 ; return 0; }
12892 if { (eval echo configure:12893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12893 rm -rf conftest*
12894 glibcpp_cv_func_log10l_use=yes
12895 else
12896 echo "configure: failed program was:" >&5
12897 cat conftest.$ac_ext >&5
12898 rm -rf conftest*
12899 glibcpp_cv_func_log10l_use=no
12901 rm -f conftest*
12902 ac_ext=c
12903 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12904 ac_cpp='$CPP $CPPFLAGS'
12905 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12906 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12907 cross_compiling=$ac_cv_prog_cc_cross
12913 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
12915 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
12916 for ac_func in log10l
12918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12919 echo "configure:12920: checking for $ac_func" >&5
12920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12921 echo $ac_n "(cached) $ac_c" 1>&6
12922 else
12923 cat > conftest.$ac_ext <<EOF
12924 #line 12925 "configure"
12925 #include "confdefs.h"
12926 /* System header to define __stub macros and hopefully few prototypes,
12927 which can conflict with char $ac_func(); below. */
12928 #include <assert.h>
12929 /* Override any gcc2 internal prototype to avoid an error. */
12930 /* We use char because int might match the return type of a gcc2
12931 builtin and then its argument prototype would still apply. */
12932 char $ac_func();
12934 int main() {
12936 /* The GNU C library defines this for functions which it implements
12937 to always fail with ENOSYS. Some functions are actually named
12938 something starting with __ and the normal name is an alias. */
12939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12940 choke me
12941 #else
12942 $ac_func();
12943 #endif
12945 ; return 0; }
12947 if { (eval echo configure:12948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12948 rm -rf conftest*
12949 eval "ac_cv_func_$ac_func=yes"
12950 else
12951 echo "configure: failed program was:" >&5
12952 cat conftest.$ac_ext >&5
12953 rm -rf conftest*
12954 eval "ac_cv_func_$ac_func=no"
12956 rm -f conftest*
12959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12960 echo "$ac_t""yes" 1>&6
12961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12962 cat >> confdefs.h <<EOF
12963 #define $ac_tr_func 1
12966 else
12967 echo "$ac_t""no" 1>&6
12969 done
12971 else
12973 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
12974 echo "configure:12975: checking for _log10l declaration" >&5
12975 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
12976 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
12977 echo $ac_n "(cached) $ac_c" 1>&6
12978 else
12981 ac_ext=C
12982 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12983 ac_cpp='$CXXCPP $CPPFLAGS'
12984 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12985 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12986 cross_compiling=$ac_cv_prog_cxx_cross
12988 cat > conftest.$ac_ext <<EOF
12989 #line 12990 "configure"
12990 #include "confdefs.h"
12991 #include <math.h>
12992 #ifdef HAVE_IEEEFP_H
12993 #include <ieeefp.h>
12994 #endif
12996 int main() {
12997 _log10l(0);
12998 ; return 0; }
13000 if { (eval echo configure:13001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13001 rm -rf conftest*
13002 glibcpp_cv_func__log10l_use=yes
13003 else
13004 echo "configure: failed program was:" >&5
13005 cat conftest.$ac_ext >&5
13006 rm -rf conftest*
13007 glibcpp_cv_func__log10l_use=no
13009 rm -f conftest*
13010 ac_ext=c
13011 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13012 ac_cpp='$CPP $CPPFLAGS'
13013 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13014 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13015 cross_compiling=$ac_cv_prog_cc_cross
13021 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
13023 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
13024 for ac_func in _log10l
13026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13027 echo "configure:13028: checking for $ac_func" >&5
13028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13029 echo $ac_n "(cached) $ac_c" 1>&6
13030 else
13031 cat > conftest.$ac_ext <<EOF
13032 #line 13033 "configure"
13033 #include "confdefs.h"
13034 /* System header to define __stub macros and hopefully few prototypes,
13035 which can conflict with char $ac_func(); below. */
13036 #include <assert.h>
13037 /* Override any gcc2 internal prototype to avoid an error. */
13038 /* We use char because int might match the return type of a gcc2
13039 builtin and then its argument prototype would still apply. */
13040 char $ac_func();
13042 int main() {
13044 /* The GNU C library defines this for functions which it implements
13045 to always fail with ENOSYS. Some functions are actually named
13046 something starting with __ and the normal name is an alias. */
13047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13048 choke me
13049 #else
13050 $ac_func();
13051 #endif
13053 ; return 0; }
13055 if { (eval echo configure:13056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13056 rm -rf conftest*
13057 eval "ac_cv_func_$ac_func=yes"
13058 else
13059 echo "configure: failed program was:" >&5
13060 cat conftest.$ac_ext >&5
13061 rm -rf conftest*
13062 eval "ac_cv_func_$ac_func=no"
13064 rm -f conftest*
13067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13068 echo "$ac_t""yes" 1>&6
13069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13070 cat >> confdefs.h <<EOF
13071 #define $ac_tr_func 1
13074 else
13075 echo "$ac_t""no" 1>&6
13077 done
13084 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
13085 echo "configure:13086: checking for modfl declaration" >&5
13086 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
13087 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
13088 echo $ac_n "(cached) $ac_c" 1>&6
13089 else
13092 ac_ext=C
13093 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13094 ac_cpp='$CXXCPP $CPPFLAGS'
13095 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13096 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13097 cross_compiling=$ac_cv_prog_cxx_cross
13099 cat > conftest.$ac_ext <<EOF
13100 #line 13101 "configure"
13101 #include "confdefs.h"
13102 #include <math.h>
13103 int main() {
13104 modfl(0, 0);
13105 ; return 0; }
13107 if { (eval echo configure:13108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13108 rm -rf conftest*
13109 glibcpp_cv_func_modfl_use=yes
13110 else
13111 echo "configure: failed program was:" >&5
13112 cat conftest.$ac_ext >&5
13113 rm -rf conftest*
13114 glibcpp_cv_func_modfl_use=no
13116 rm -f conftest*
13117 ac_ext=c
13118 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13119 ac_cpp='$CPP $CPPFLAGS'
13120 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13121 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13122 cross_compiling=$ac_cv_prog_cc_cross
13128 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
13130 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
13131 for ac_func in modfl
13133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13134 echo "configure:13135: checking for $ac_func" >&5
13135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13136 echo $ac_n "(cached) $ac_c" 1>&6
13137 else
13138 cat > conftest.$ac_ext <<EOF
13139 #line 13140 "configure"
13140 #include "confdefs.h"
13141 /* System header to define __stub macros and hopefully few prototypes,
13142 which can conflict with char $ac_func(); below. */
13143 #include <assert.h>
13144 /* Override any gcc2 internal prototype to avoid an error. */
13145 /* We use char because int might match the return type of a gcc2
13146 builtin and then its argument prototype would still apply. */
13147 char $ac_func();
13149 int main() {
13151 /* The GNU C library defines this for functions which it implements
13152 to always fail with ENOSYS. Some functions are actually named
13153 something starting with __ and the normal name is an alias. */
13154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13155 choke me
13156 #else
13157 $ac_func();
13158 #endif
13160 ; return 0; }
13162 if { (eval echo configure:13163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13163 rm -rf conftest*
13164 eval "ac_cv_func_$ac_func=yes"
13165 else
13166 echo "configure: failed program was:" >&5
13167 cat conftest.$ac_ext >&5
13168 rm -rf conftest*
13169 eval "ac_cv_func_$ac_func=no"
13171 rm -f conftest*
13174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13175 echo "$ac_t""yes" 1>&6
13176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13177 cat >> confdefs.h <<EOF
13178 #define $ac_tr_func 1
13181 else
13182 echo "$ac_t""no" 1>&6
13184 done
13186 else
13188 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
13189 echo "configure:13190: checking for _modfl declaration" >&5
13190 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
13191 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
13192 echo $ac_n "(cached) $ac_c" 1>&6
13193 else
13196 ac_ext=C
13197 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13198 ac_cpp='$CXXCPP $CPPFLAGS'
13199 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13200 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13201 cross_compiling=$ac_cv_prog_cxx_cross
13203 cat > conftest.$ac_ext <<EOF
13204 #line 13205 "configure"
13205 #include "confdefs.h"
13206 #include <math.h>
13207 int main() {
13208 _modfl(0, 0);
13209 ; return 0; }
13211 if { (eval echo configure:13212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13212 rm -rf conftest*
13213 glibcpp_cv_func__modfl_use=yes
13214 else
13215 echo "configure: failed program was:" >&5
13216 cat conftest.$ac_ext >&5
13217 rm -rf conftest*
13218 glibcpp_cv_func__modfl_use=no
13220 rm -f conftest*
13221 ac_ext=c
13222 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13223 ac_cpp='$CPP $CPPFLAGS'
13224 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13225 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13226 cross_compiling=$ac_cv_prog_cc_cross
13232 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
13234 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
13235 for ac_func in _modfl
13237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13238 echo "configure:13239: checking for $ac_func" >&5
13239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13240 echo $ac_n "(cached) $ac_c" 1>&6
13241 else
13242 cat > conftest.$ac_ext <<EOF
13243 #line 13244 "configure"
13244 #include "confdefs.h"
13245 /* System header to define __stub macros and hopefully few prototypes,
13246 which can conflict with char $ac_func(); below. */
13247 #include <assert.h>
13248 /* Override any gcc2 internal prototype to avoid an error. */
13249 /* We use char because int might match the return type of a gcc2
13250 builtin and then its argument prototype would still apply. */
13251 char $ac_func();
13253 int main() {
13255 /* The GNU C library defines this for functions which it implements
13256 to always fail with ENOSYS. Some functions are actually named
13257 something starting with __ and the normal name is an alias. */
13258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13259 choke me
13260 #else
13261 $ac_func();
13262 #endif
13264 ; return 0; }
13266 if { (eval echo configure:13267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13267 rm -rf conftest*
13268 eval "ac_cv_func_$ac_func=yes"
13269 else
13270 echo "configure: failed program was:" >&5
13271 cat conftest.$ac_ext >&5
13272 rm -rf conftest*
13273 eval "ac_cv_func_$ac_func=no"
13275 rm -f conftest*
13278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13279 echo "$ac_t""yes" 1>&6
13280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13281 cat >> confdefs.h <<EOF
13282 #define $ac_tr_func 1
13285 else
13286 echo "$ac_t""no" 1>&6
13288 done
13295 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
13296 echo "configure:13297: checking for powl declaration" >&5
13297 if test x${glibcpp_cv_func_powl_use+set} != xset; then
13298 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
13299 echo $ac_n "(cached) $ac_c" 1>&6
13300 else
13303 ac_ext=C
13304 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13305 ac_cpp='$CXXCPP $CPPFLAGS'
13306 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13307 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13308 cross_compiling=$ac_cv_prog_cxx_cross
13310 cat > conftest.$ac_ext <<EOF
13311 #line 13312 "configure"
13312 #include "confdefs.h"
13313 #include <math.h>
13314 int main() {
13315 powl(0, 0);
13316 ; return 0; }
13318 if { (eval echo configure:13319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13319 rm -rf conftest*
13320 glibcpp_cv_func_powl_use=yes
13321 else
13322 echo "configure: failed program was:" >&5
13323 cat conftest.$ac_ext >&5
13324 rm -rf conftest*
13325 glibcpp_cv_func_powl_use=no
13327 rm -f conftest*
13328 ac_ext=c
13329 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13330 ac_cpp='$CPP $CPPFLAGS'
13331 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13332 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13333 cross_compiling=$ac_cv_prog_cc_cross
13339 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
13341 if test x$glibcpp_cv_func_powl_use = x"yes"; then
13342 for ac_func in powl
13344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13345 echo "configure:13346: checking for $ac_func" >&5
13346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13347 echo $ac_n "(cached) $ac_c" 1>&6
13348 else
13349 cat > conftest.$ac_ext <<EOF
13350 #line 13351 "configure"
13351 #include "confdefs.h"
13352 /* System header to define __stub macros and hopefully few prototypes,
13353 which can conflict with char $ac_func(); below. */
13354 #include <assert.h>
13355 /* Override any gcc2 internal prototype to avoid an error. */
13356 /* We use char because int might match the return type of a gcc2
13357 builtin and then its argument prototype would still apply. */
13358 char $ac_func();
13360 int main() {
13362 /* The GNU C library defines this for functions which it implements
13363 to always fail with ENOSYS. Some functions are actually named
13364 something starting with __ and the normal name is an alias. */
13365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13366 choke me
13367 #else
13368 $ac_func();
13369 #endif
13371 ; return 0; }
13373 if { (eval echo configure:13374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13374 rm -rf conftest*
13375 eval "ac_cv_func_$ac_func=yes"
13376 else
13377 echo "configure: failed program was:" >&5
13378 cat conftest.$ac_ext >&5
13379 rm -rf conftest*
13380 eval "ac_cv_func_$ac_func=no"
13382 rm -f conftest*
13385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13386 echo "$ac_t""yes" 1>&6
13387 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13388 cat >> confdefs.h <<EOF
13389 #define $ac_tr_func 1
13392 else
13393 echo "$ac_t""no" 1>&6
13395 done
13397 else
13399 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
13400 echo "configure:13401: checking for _powl declaration" >&5
13401 if test x${glibcpp_cv_func__powl_use+set} != xset; then
13402 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
13403 echo $ac_n "(cached) $ac_c" 1>&6
13404 else
13407 ac_ext=C
13408 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13409 ac_cpp='$CXXCPP $CPPFLAGS'
13410 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13411 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13412 cross_compiling=$ac_cv_prog_cxx_cross
13414 cat > conftest.$ac_ext <<EOF
13415 #line 13416 "configure"
13416 #include "confdefs.h"
13417 #include <math.h>
13418 int main() {
13419 _powl(0, 0);
13420 ; return 0; }
13422 if { (eval echo configure:13423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13423 rm -rf conftest*
13424 glibcpp_cv_func__powl_use=yes
13425 else
13426 echo "configure: failed program was:" >&5
13427 cat conftest.$ac_ext >&5
13428 rm -rf conftest*
13429 glibcpp_cv_func__powl_use=no
13431 rm -f conftest*
13432 ac_ext=c
13433 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13434 ac_cpp='$CPP $CPPFLAGS'
13435 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13436 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13437 cross_compiling=$ac_cv_prog_cc_cross
13443 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
13445 if test x$glibcpp_cv_func__powl_use = x"yes"; then
13446 for ac_func in _powl
13448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13449 echo "configure:13450: checking for $ac_func" >&5
13450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13451 echo $ac_n "(cached) $ac_c" 1>&6
13452 else
13453 cat > conftest.$ac_ext <<EOF
13454 #line 13455 "configure"
13455 #include "confdefs.h"
13456 /* System header to define __stub macros and hopefully few prototypes,
13457 which can conflict with char $ac_func(); below. */
13458 #include <assert.h>
13459 /* Override any gcc2 internal prototype to avoid an error. */
13460 /* We use char because int might match the return type of a gcc2
13461 builtin and then its argument prototype would still apply. */
13462 char $ac_func();
13464 int main() {
13466 /* The GNU C library defines this for functions which it implements
13467 to always fail with ENOSYS. Some functions are actually named
13468 something starting with __ and the normal name is an alias. */
13469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13470 choke me
13471 #else
13472 $ac_func();
13473 #endif
13475 ; return 0; }
13477 if { (eval echo configure:13478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13478 rm -rf conftest*
13479 eval "ac_cv_func_$ac_func=yes"
13480 else
13481 echo "configure: failed program was:" >&5
13482 cat conftest.$ac_ext >&5
13483 rm -rf conftest*
13484 eval "ac_cv_func_$ac_func=no"
13486 rm -f conftest*
13489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13490 echo "$ac_t""yes" 1>&6
13491 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13492 cat >> confdefs.h <<EOF
13493 #define $ac_tr_func 1
13496 else
13497 echo "$ac_t""no" 1>&6
13499 done
13506 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
13507 echo "configure:13508: checking for sqrtl declaration" >&5
13508 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
13509 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
13510 echo $ac_n "(cached) $ac_c" 1>&6
13511 else
13514 ac_ext=C
13515 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13516 ac_cpp='$CXXCPP $CPPFLAGS'
13517 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13518 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13519 cross_compiling=$ac_cv_prog_cxx_cross
13521 cat > conftest.$ac_ext <<EOF
13522 #line 13523 "configure"
13523 #include "confdefs.h"
13524 #include <math.h>
13525 #ifdef HAVE_IEEEFP_H
13526 #include <ieeefp.h>
13527 #endif
13529 int main() {
13530 sqrtl(0);
13531 ; return 0; }
13533 if { (eval echo configure:13534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13534 rm -rf conftest*
13535 glibcpp_cv_func_sqrtl_use=yes
13536 else
13537 echo "configure: failed program was:" >&5
13538 cat conftest.$ac_ext >&5
13539 rm -rf conftest*
13540 glibcpp_cv_func_sqrtl_use=no
13542 rm -f conftest*
13543 ac_ext=c
13544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13545 ac_cpp='$CPP $CPPFLAGS'
13546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13548 cross_compiling=$ac_cv_prog_cc_cross
13554 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
13556 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
13557 for ac_func in sqrtl
13559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13560 echo "configure:13561: checking for $ac_func" >&5
13561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13562 echo $ac_n "(cached) $ac_c" 1>&6
13563 else
13564 cat > conftest.$ac_ext <<EOF
13565 #line 13566 "configure"
13566 #include "confdefs.h"
13567 /* System header to define __stub macros and hopefully few prototypes,
13568 which can conflict with char $ac_func(); below. */
13569 #include <assert.h>
13570 /* Override any gcc2 internal prototype to avoid an error. */
13571 /* We use char because int might match the return type of a gcc2
13572 builtin and then its argument prototype would still apply. */
13573 char $ac_func();
13575 int main() {
13577 /* The GNU C library defines this for functions which it implements
13578 to always fail with ENOSYS. Some functions are actually named
13579 something starting with __ and the normal name is an alias. */
13580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13581 choke me
13582 #else
13583 $ac_func();
13584 #endif
13586 ; return 0; }
13588 if { (eval echo configure:13589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13589 rm -rf conftest*
13590 eval "ac_cv_func_$ac_func=yes"
13591 else
13592 echo "configure: failed program was:" >&5
13593 cat conftest.$ac_ext >&5
13594 rm -rf conftest*
13595 eval "ac_cv_func_$ac_func=no"
13597 rm -f conftest*
13600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13601 echo "$ac_t""yes" 1>&6
13602 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13603 cat >> confdefs.h <<EOF
13604 #define $ac_tr_func 1
13607 else
13608 echo "$ac_t""no" 1>&6
13610 done
13612 else
13614 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
13615 echo "configure:13616: checking for _sqrtl declaration" >&5
13616 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
13617 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
13618 echo $ac_n "(cached) $ac_c" 1>&6
13619 else
13622 ac_ext=C
13623 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13624 ac_cpp='$CXXCPP $CPPFLAGS'
13625 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13626 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13627 cross_compiling=$ac_cv_prog_cxx_cross
13629 cat > conftest.$ac_ext <<EOF
13630 #line 13631 "configure"
13631 #include "confdefs.h"
13632 #include <math.h>
13633 #ifdef HAVE_IEEEFP_H
13634 #include <ieeefp.h>
13635 #endif
13637 int main() {
13638 _sqrtl(0);
13639 ; return 0; }
13641 if { (eval echo configure:13642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13642 rm -rf conftest*
13643 glibcpp_cv_func__sqrtl_use=yes
13644 else
13645 echo "configure: failed program was:" >&5
13646 cat conftest.$ac_ext >&5
13647 rm -rf conftest*
13648 glibcpp_cv_func__sqrtl_use=no
13650 rm -f conftest*
13651 ac_ext=c
13652 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13653 ac_cpp='$CPP $CPPFLAGS'
13654 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13655 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13656 cross_compiling=$ac_cv_prog_cc_cross
13662 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
13664 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
13665 for ac_func in _sqrtl
13667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13668 echo "configure:13669: checking for $ac_func" >&5
13669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13670 echo $ac_n "(cached) $ac_c" 1>&6
13671 else
13672 cat > conftest.$ac_ext <<EOF
13673 #line 13674 "configure"
13674 #include "confdefs.h"
13675 /* System header to define __stub macros and hopefully few prototypes,
13676 which can conflict with char $ac_func(); below. */
13677 #include <assert.h>
13678 /* Override any gcc2 internal prototype to avoid an error. */
13679 /* We use char because int might match the return type of a gcc2
13680 builtin and then its argument prototype would still apply. */
13681 char $ac_func();
13683 int main() {
13685 /* The GNU C library defines this for functions which it implements
13686 to always fail with ENOSYS. Some functions are actually named
13687 something starting with __ and the normal name is an alias. */
13688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13689 choke me
13690 #else
13691 $ac_func();
13692 #endif
13694 ; return 0; }
13696 if { (eval echo configure:13697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13697 rm -rf conftest*
13698 eval "ac_cv_func_$ac_func=yes"
13699 else
13700 echo "configure: failed program was:" >&5
13701 cat conftest.$ac_ext >&5
13702 rm -rf conftest*
13703 eval "ac_cv_func_$ac_func=no"
13705 rm -f conftest*
13708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13709 echo "$ac_t""yes" 1>&6
13710 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13711 cat >> confdefs.h <<EOF
13712 #define $ac_tr_func 1
13715 else
13716 echo "$ac_t""no" 1>&6
13718 done
13725 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
13726 echo "configure:13727: checking for sincosl declaration" >&5
13727 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
13728 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
13729 echo $ac_n "(cached) $ac_c" 1>&6
13730 else
13733 ac_ext=C
13734 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13735 ac_cpp='$CXXCPP $CPPFLAGS'
13736 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13737 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13738 cross_compiling=$ac_cv_prog_cxx_cross
13740 cat > conftest.$ac_ext <<EOF
13741 #line 13742 "configure"
13742 #include "confdefs.h"
13743 #include <math.h>
13744 int main() {
13745 sincosl(0, 0, 0);
13746 ; return 0; }
13748 if { (eval echo configure:13749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13749 rm -rf conftest*
13750 glibcpp_cv_func_sincosl_use=yes
13751 else
13752 echo "configure: failed program was:" >&5
13753 cat conftest.$ac_ext >&5
13754 rm -rf conftest*
13755 glibcpp_cv_func_sincosl_use=no
13757 rm -f conftest*
13758 ac_ext=c
13759 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13760 ac_cpp='$CPP $CPPFLAGS'
13761 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13762 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13763 cross_compiling=$ac_cv_prog_cc_cross
13769 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
13771 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
13772 for ac_func in sincosl
13774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13775 echo "configure:13776: checking for $ac_func" >&5
13776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13777 echo $ac_n "(cached) $ac_c" 1>&6
13778 else
13779 cat > conftest.$ac_ext <<EOF
13780 #line 13781 "configure"
13781 #include "confdefs.h"
13782 /* System header to define __stub macros and hopefully few prototypes,
13783 which can conflict with char $ac_func(); below. */
13784 #include <assert.h>
13785 /* Override any gcc2 internal prototype to avoid an error. */
13786 /* We use char because int might match the return type of a gcc2
13787 builtin and then its argument prototype would still apply. */
13788 char $ac_func();
13790 int main() {
13792 /* The GNU C library defines this for functions which it implements
13793 to always fail with ENOSYS. Some functions are actually named
13794 something starting with __ and the normal name is an alias. */
13795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13796 choke me
13797 #else
13798 $ac_func();
13799 #endif
13801 ; return 0; }
13803 if { (eval echo configure:13804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13804 rm -rf conftest*
13805 eval "ac_cv_func_$ac_func=yes"
13806 else
13807 echo "configure: failed program was:" >&5
13808 cat conftest.$ac_ext >&5
13809 rm -rf conftest*
13810 eval "ac_cv_func_$ac_func=no"
13812 rm -f conftest*
13815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13816 echo "$ac_t""yes" 1>&6
13817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13818 cat >> confdefs.h <<EOF
13819 #define $ac_tr_func 1
13822 else
13823 echo "$ac_t""no" 1>&6
13825 done
13827 else
13829 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
13830 echo "configure:13831: checking for _sincosl declaration" >&5
13831 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
13832 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
13833 echo $ac_n "(cached) $ac_c" 1>&6
13834 else
13837 ac_ext=C
13838 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13839 ac_cpp='$CXXCPP $CPPFLAGS'
13840 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13841 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13842 cross_compiling=$ac_cv_prog_cxx_cross
13844 cat > conftest.$ac_ext <<EOF
13845 #line 13846 "configure"
13846 #include "confdefs.h"
13847 #include <math.h>
13848 int main() {
13849 _sincosl(0, 0, 0);
13850 ; return 0; }
13852 if { (eval echo configure:13853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13853 rm -rf conftest*
13854 glibcpp_cv_func__sincosl_use=yes
13855 else
13856 echo "configure: failed program was:" >&5
13857 cat conftest.$ac_ext >&5
13858 rm -rf conftest*
13859 glibcpp_cv_func__sincosl_use=no
13861 rm -f conftest*
13862 ac_ext=c
13863 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13864 ac_cpp='$CPP $CPPFLAGS'
13865 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13866 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13867 cross_compiling=$ac_cv_prog_cc_cross
13873 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
13875 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
13876 for ac_func in _sincosl
13878 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13879 echo "configure:13880: checking for $ac_func" >&5
13880 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13881 echo $ac_n "(cached) $ac_c" 1>&6
13882 else
13883 cat > conftest.$ac_ext <<EOF
13884 #line 13885 "configure"
13885 #include "confdefs.h"
13886 /* System header to define __stub macros and hopefully few prototypes,
13887 which can conflict with char $ac_func(); below. */
13888 #include <assert.h>
13889 /* Override any gcc2 internal prototype to avoid an error. */
13890 /* We use char because int might match the return type of a gcc2
13891 builtin and then its argument prototype would still apply. */
13892 char $ac_func();
13894 int main() {
13896 /* The GNU C library defines this for functions which it implements
13897 to always fail with ENOSYS. Some functions are actually named
13898 something starting with __ and the normal name is an alias. */
13899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13900 choke me
13901 #else
13902 $ac_func();
13903 #endif
13905 ; return 0; }
13907 if { (eval echo configure:13908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13908 rm -rf conftest*
13909 eval "ac_cv_func_$ac_func=yes"
13910 else
13911 echo "configure: failed program was:" >&5
13912 cat conftest.$ac_ext >&5
13913 rm -rf conftest*
13914 eval "ac_cv_func_$ac_func=no"
13916 rm -f conftest*
13919 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13920 echo "$ac_t""yes" 1>&6
13921 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13922 cat >> confdefs.h <<EOF
13923 #define $ac_tr_func 1
13926 else
13927 echo "$ac_t""no" 1>&6
13929 done
13936 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
13937 echo "configure:13938: checking for finitel declaration" >&5
13938 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
13939 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
13940 echo $ac_n "(cached) $ac_c" 1>&6
13941 else
13944 ac_ext=C
13945 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13946 ac_cpp='$CXXCPP $CPPFLAGS'
13947 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13948 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13949 cross_compiling=$ac_cv_prog_cxx_cross
13951 cat > conftest.$ac_ext <<EOF
13952 #line 13953 "configure"
13953 #include "confdefs.h"
13954 #include <math.h>
13955 #ifdef HAVE_IEEEFP_H
13956 #include <ieeefp.h>
13957 #endif
13959 int main() {
13960 finitel(0);
13961 ; return 0; }
13963 if { (eval echo configure:13964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13964 rm -rf conftest*
13965 glibcpp_cv_func_finitel_use=yes
13966 else
13967 echo "configure: failed program was:" >&5
13968 cat conftest.$ac_ext >&5
13969 rm -rf conftest*
13970 glibcpp_cv_func_finitel_use=no
13972 rm -f conftest*
13973 ac_ext=c
13974 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13975 ac_cpp='$CPP $CPPFLAGS'
13976 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13977 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13978 cross_compiling=$ac_cv_prog_cc_cross
13984 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
13986 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
13987 for ac_func in finitel
13989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13990 echo "configure:13991: checking for $ac_func" >&5
13991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13992 echo $ac_n "(cached) $ac_c" 1>&6
13993 else
13994 cat > conftest.$ac_ext <<EOF
13995 #line 13996 "configure"
13996 #include "confdefs.h"
13997 /* System header to define __stub macros and hopefully few prototypes,
13998 which can conflict with char $ac_func(); below. */
13999 #include <assert.h>
14000 /* Override any gcc2 internal prototype to avoid an error. */
14001 /* We use char because int might match the return type of a gcc2
14002 builtin and then its argument prototype would still apply. */
14003 char $ac_func();
14005 int main() {
14007 /* The GNU C library defines this for functions which it implements
14008 to always fail with ENOSYS. Some functions are actually named
14009 something starting with __ and the normal name is an alias. */
14010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14011 choke me
14012 #else
14013 $ac_func();
14014 #endif
14016 ; return 0; }
14018 if { (eval echo configure:14019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14019 rm -rf conftest*
14020 eval "ac_cv_func_$ac_func=yes"
14021 else
14022 echo "configure: failed program was:" >&5
14023 cat conftest.$ac_ext >&5
14024 rm -rf conftest*
14025 eval "ac_cv_func_$ac_func=no"
14027 rm -f conftest*
14030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14031 echo "$ac_t""yes" 1>&6
14032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14033 cat >> confdefs.h <<EOF
14034 #define $ac_tr_func 1
14037 else
14038 echo "$ac_t""no" 1>&6
14040 done
14042 else
14044 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
14045 echo "configure:14046: checking for _finitel declaration" >&5
14046 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
14047 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
14048 echo $ac_n "(cached) $ac_c" 1>&6
14049 else
14052 ac_ext=C
14053 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14054 ac_cpp='$CXXCPP $CPPFLAGS'
14055 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14056 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14057 cross_compiling=$ac_cv_prog_cxx_cross
14059 cat > conftest.$ac_ext <<EOF
14060 #line 14061 "configure"
14061 #include "confdefs.h"
14062 #include <math.h>
14063 #ifdef HAVE_IEEEFP_H
14064 #include <ieeefp.h>
14065 #endif
14067 int main() {
14068 _finitel(0);
14069 ; return 0; }
14071 if { (eval echo configure:14072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14072 rm -rf conftest*
14073 glibcpp_cv_func__finitel_use=yes
14074 else
14075 echo "configure: failed program was:" >&5
14076 cat conftest.$ac_ext >&5
14077 rm -rf conftest*
14078 glibcpp_cv_func__finitel_use=no
14080 rm -f conftest*
14081 ac_ext=c
14082 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14083 ac_cpp='$CPP $CPPFLAGS'
14084 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14085 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14086 cross_compiling=$ac_cv_prog_cc_cross
14092 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
14094 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
14095 for ac_func in _finitel
14097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14098 echo "configure:14099: checking for $ac_func" >&5
14099 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14100 echo $ac_n "(cached) $ac_c" 1>&6
14101 else
14102 cat > conftest.$ac_ext <<EOF
14103 #line 14104 "configure"
14104 #include "confdefs.h"
14105 /* System header to define __stub macros and hopefully few prototypes,
14106 which can conflict with char $ac_func(); below. */
14107 #include <assert.h>
14108 /* Override any gcc2 internal prototype to avoid an error. */
14109 /* We use char because int might match the return type of a gcc2
14110 builtin and then its argument prototype would still apply. */
14111 char $ac_func();
14113 int main() {
14115 /* The GNU C library defines this for functions which it implements
14116 to always fail with ENOSYS. Some functions are actually named
14117 something starting with __ and the normal name is an alias. */
14118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14119 choke me
14120 #else
14121 $ac_func();
14122 #endif
14124 ; return 0; }
14126 if { (eval echo configure:14127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14127 rm -rf conftest*
14128 eval "ac_cv_func_$ac_func=yes"
14129 else
14130 echo "configure: failed program was:" >&5
14131 cat conftest.$ac_ext >&5
14132 rm -rf conftest*
14133 eval "ac_cv_func_$ac_func=no"
14135 rm -f conftest*
14138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14139 echo "$ac_t""yes" 1>&6
14140 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14141 cat >> confdefs.h <<EOF
14142 #define $ac_tr_func 1
14145 else
14146 echo "$ac_t""no" 1>&6
14148 done
14156 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
14157 echo "configure:14158: checking for _float trig functions" >&5
14158 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
14159 echo $ac_n "(cached) $ac_c" 1>&6
14160 else
14163 ac_ext=C
14164 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14165 ac_cpp='$CXXCPP $CPPFLAGS'
14166 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14167 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14168 cross_compiling=$ac_cv_prog_cxx_cross
14170 cat > conftest.$ac_ext <<EOF
14171 #line 14172 "configure"
14172 #include "confdefs.h"
14173 #include <math.h>
14174 int main() {
14175 `for x in _acosf _asinf _atanf \
14176 _cosf _sinf _tanf \
14177 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
14178 ; return 0; }
14180 if { (eval echo configure:14181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14181 rm -rf conftest*
14182 glibcpp_cv_func__float_trig_use=yes
14183 else
14184 echo "configure: failed program was:" >&5
14185 cat conftest.$ac_ext >&5
14186 rm -rf conftest*
14187 glibcpp_cv_func__float_trig_use=no
14189 rm -f conftest*
14190 ac_ext=c
14191 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14192 ac_cpp='$CPP $CPPFLAGS'
14193 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14194 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14195 cross_compiling=$ac_cv_prog_cc_cross
14199 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
14200 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
14201 for ac_func in _acosf _asinf _atanf \
14202 _cosf _sinf _tanf \
14203 _coshf _sinhf _tanhf
14205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14206 echo "configure:14207: checking for $ac_func" >&5
14207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14208 echo $ac_n "(cached) $ac_c" 1>&6
14209 else
14210 cat > conftest.$ac_ext <<EOF
14211 #line 14212 "configure"
14212 #include "confdefs.h"
14213 /* System header to define __stub macros and hopefully few prototypes,
14214 which can conflict with char $ac_func(); below. */
14215 #include <assert.h>
14216 /* Override any gcc2 internal prototype to avoid an error. */
14217 /* We use char because int might match the return type of a gcc2
14218 builtin and then its argument prototype would still apply. */
14219 char $ac_func();
14221 int main() {
14223 /* The GNU C library defines this for functions which it implements
14224 to always fail with ENOSYS. Some functions are actually named
14225 something starting with __ and the normal name is an alias. */
14226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14227 choke me
14228 #else
14229 $ac_func();
14230 #endif
14232 ; return 0; }
14234 if { (eval echo configure:14235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14235 rm -rf conftest*
14236 eval "ac_cv_func_$ac_func=yes"
14237 else
14238 echo "configure: failed program was:" >&5
14239 cat conftest.$ac_ext >&5
14240 rm -rf conftest*
14241 eval "ac_cv_func_$ac_func=no"
14243 rm -f conftest*
14246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14247 echo "$ac_t""yes" 1>&6
14248 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14249 cat >> confdefs.h <<EOF
14250 #define $ac_tr_func 1
14253 else
14254 echo "$ac_t""no" 1>&6
14256 done
14261 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
14262 echo "configure:14263: checking for _float round functions" >&5
14263 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
14264 echo $ac_n "(cached) $ac_c" 1>&6
14265 else
14268 ac_ext=C
14269 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14270 ac_cpp='$CXXCPP $CPPFLAGS'
14271 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14272 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14273 cross_compiling=$ac_cv_prog_cxx_cross
14275 cat > conftest.$ac_ext <<EOF
14276 #line 14277 "configure"
14277 #include "confdefs.h"
14278 #include <math.h>
14279 int main() {
14280 `for x in _ceilf _floorf; do echo "$x (0);"; done`
14281 ; return 0; }
14283 if { (eval echo configure:14284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14284 rm -rf conftest*
14285 glibcpp_cv_func__float_round_use=yes
14286 else
14287 echo "configure: failed program was:" >&5
14288 cat conftest.$ac_ext >&5
14289 rm -rf conftest*
14290 glibcpp_cv_func__float_round_use=no
14292 rm -f conftest*
14293 ac_ext=c
14294 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14295 ac_cpp='$CPP $CPPFLAGS'
14296 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14297 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14298 cross_compiling=$ac_cv_prog_cc_cross
14302 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
14303 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
14304 for ac_func in _ceilf _floorf
14306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14307 echo "configure:14308: checking for $ac_func" >&5
14308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14309 echo $ac_n "(cached) $ac_c" 1>&6
14310 else
14311 cat > conftest.$ac_ext <<EOF
14312 #line 14313 "configure"
14313 #include "confdefs.h"
14314 /* System header to define __stub macros and hopefully few prototypes,
14315 which can conflict with char $ac_func(); below. */
14316 #include <assert.h>
14317 /* Override any gcc2 internal prototype to avoid an error. */
14318 /* We use char because int might match the return type of a gcc2
14319 builtin and then its argument prototype would still apply. */
14320 char $ac_func();
14322 int main() {
14324 /* The GNU C library defines this for functions which it implements
14325 to always fail with ENOSYS. Some functions are actually named
14326 something starting with __ and the normal name is an alias. */
14327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14328 choke me
14329 #else
14330 $ac_func();
14331 #endif
14333 ; return 0; }
14335 if { (eval echo configure:14336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14336 rm -rf conftest*
14337 eval "ac_cv_func_$ac_func=yes"
14338 else
14339 echo "configure: failed program was:" >&5
14340 cat conftest.$ac_ext >&5
14341 rm -rf conftest*
14342 eval "ac_cv_func_$ac_func=no"
14344 rm -f conftest*
14347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14348 echo "$ac_t""yes" 1>&6
14349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14350 cat >> confdefs.h <<EOF
14351 #define $ac_tr_func 1
14354 else
14355 echo "$ac_t""no" 1>&6
14357 done
14363 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
14364 echo "configure:14365: checking for _long double trig functions" >&5
14365 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
14366 echo $ac_n "(cached) $ac_c" 1>&6
14367 else
14370 ac_ext=C
14371 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14372 ac_cpp='$CXXCPP $CPPFLAGS'
14373 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14374 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14375 cross_compiling=$ac_cv_prog_cxx_cross
14377 cat > conftest.$ac_ext <<EOF
14378 #line 14379 "configure"
14379 #include "confdefs.h"
14380 #include <math.h>
14381 int main() {
14382 `for x in _acosl _asinl _atanl \
14383 _cosl _sinl _tanl \
14384 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
14385 ; return 0; }
14387 if { (eval echo configure:14388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14388 rm -rf conftest*
14389 glibcpp_cv_func__long_double_trig_use=yes
14390 else
14391 echo "configure: failed program was:" >&5
14392 cat conftest.$ac_ext >&5
14393 rm -rf conftest*
14394 glibcpp_cv_func__long_double_trig_use=no
14396 rm -f conftest*
14397 ac_ext=c
14398 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14399 ac_cpp='$CPP $CPPFLAGS'
14400 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14401 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14402 cross_compiling=$ac_cv_prog_cc_cross
14406 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
14407 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
14408 for ac_func in _acosl _asinl _atanl \
14409 _cosl _sinl _tanl \
14410 _coshl _sinhl _tanhl
14412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14413 echo "configure:14414: checking for $ac_func" >&5
14414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14415 echo $ac_n "(cached) $ac_c" 1>&6
14416 else
14417 cat > conftest.$ac_ext <<EOF
14418 #line 14419 "configure"
14419 #include "confdefs.h"
14420 /* System header to define __stub macros and hopefully few prototypes,
14421 which can conflict with char $ac_func(); below. */
14422 #include <assert.h>
14423 /* Override any gcc2 internal prototype to avoid an error. */
14424 /* We use char because int might match the return type of a gcc2
14425 builtin and then its argument prototype would still apply. */
14426 char $ac_func();
14428 int main() {
14430 /* The GNU C library defines this for functions which it implements
14431 to always fail with ENOSYS. Some functions are actually named
14432 something starting with __ and the normal name is an alias. */
14433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14434 choke me
14435 #else
14436 $ac_func();
14437 #endif
14439 ; return 0; }
14441 if { (eval echo configure:14442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14442 rm -rf conftest*
14443 eval "ac_cv_func_$ac_func=yes"
14444 else
14445 echo "configure: failed program was:" >&5
14446 cat conftest.$ac_ext >&5
14447 rm -rf conftest*
14448 eval "ac_cv_func_$ac_func=no"
14450 rm -f conftest*
14453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14454 echo "$ac_t""yes" 1>&6
14455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14456 cat >> confdefs.h <<EOF
14457 #define $ac_tr_func 1
14460 else
14461 echo "$ac_t""no" 1>&6
14463 done
14468 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
14469 echo "configure:14470: checking for _long double round functions" >&5
14470 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
14471 echo $ac_n "(cached) $ac_c" 1>&6
14472 else
14475 ac_ext=C
14476 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14477 ac_cpp='$CXXCPP $CPPFLAGS'
14478 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14479 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14480 cross_compiling=$ac_cv_prog_cxx_cross
14482 cat > conftest.$ac_ext <<EOF
14483 #line 14484 "configure"
14484 #include "confdefs.h"
14485 #include <math.h>
14486 int main() {
14487 `for x in _ceill _floorl; do echo "$x (0);"; done`
14488 ; return 0; }
14490 if { (eval echo configure:14491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14491 rm -rf conftest*
14492 glibcpp_cv_func__long_double_round_use=yes
14493 else
14494 echo "configure: failed program was:" >&5
14495 cat conftest.$ac_ext >&5
14496 rm -rf conftest*
14497 glibcpp_cv_func__long_double_round_use=no
14499 rm -f conftest*
14500 ac_ext=c
14501 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14502 ac_cpp='$CPP $CPPFLAGS'
14503 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14504 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14505 cross_compiling=$ac_cv_prog_cc_cross
14509 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
14510 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
14511 for ac_func in _ceill _floorl
14513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14514 echo "configure:14515: checking for $ac_func" >&5
14515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14516 echo $ac_n "(cached) $ac_c" 1>&6
14517 else
14518 cat > conftest.$ac_ext <<EOF
14519 #line 14520 "configure"
14520 #include "confdefs.h"
14521 /* System header to define __stub macros and hopefully few prototypes,
14522 which can conflict with char $ac_func(); below. */
14523 #include <assert.h>
14524 /* Override any gcc2 internal prototype to avoid an error. */
14525 /* We use char because int might match the return type of a gcc2
14526 builtin and then its argument prototype would still apply. */
14527 char $ac_func();
14529 int main() {
14531 /* The GNU C library defines this for functions which it implements
14532 to always fail with ENOSYS. Some functions are actually named
14533 something starting with __ and the normal name is an alias. */
14534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14535 choke me
14536 #else
14537 $ac_func();
14538 #endif
14540 ; return 0; }
14542 if { (eval echo configure:14543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14543 rm -rf conftest*
14544 eval "ac_cv_func_$ac_func=yes"
14545 else
14546 echo "configure: failed program was:" >&5
14547 cat conftest.$ac_ext >&5
14548 rm -rf conftest*
14549 eval "ac_cv_func_$ac_func=no"
14551 rm -f conftest*
14554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14555 echo "$ac_t""yes" 1>&6
14556 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14557 cat >> confdefs.h <<EOF
14558 #define $ac_tr_func 1
14561 else
14562 echo "$ac_t""no" 1>&6
14564 done
14569 LIBS="$ac_save_LIBS"
14570 CXXFLAGS="$ac_save_CXXFLAGS"
14573 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
14574 echo "configure:14575: checking for main in -lm" >&5
14575 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
14576 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14577 echo $ac_n "(cached) $ac_c" 1>&6
14578 else
14579 ac_save_LIBS="$LIBS"
14580 LIBS="-lm $LIBS"
14581 cat > conftest.$ac_ext <<EOF
14582 #line 14583 "configure"
14583 #include "confdefs.h"
14585 int main() {
14586 main()
14587 ; return 0; }
14589 if { (eval echo configure:14590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14590 rm -rf conftest*
14591 eval "ac_cv_lib_$ac_lib_var=yes"
14592 else
14593 echo "configure: failed program was:" >&5
14594 cat conftest.$ac_ext >&5
14595 rm -rf conftest*
14596 eval "ac_cv_lib_$ac_lib_var=no"
14598 rm -f conftest*
14599 LIBS="$ac_save_LIBS"
14602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14603 echo "$ac_t""yes" 1>&6
14604 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14605 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14606 cat >> confdefs.h <<EOF
14607 #define $ac_tr_lib 1
14610 LIBS="-lm $LIBS"
14612 else
14613 echo "$ac_t""no" 1>&6
14616 for ac_func in nan hypot hypotf atan2f expf copysignf
14618 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14619 echo "configure:14620: checking for $ac_func" >&5
14620 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14621 echo $ac_n "(cached) $ac_c" 1>&6
14622 else
14623 cat > conftest.$ac_ext <<EOF
14624 #line 14625 "configure"
14625 #include "confdefs.h"
14626 /* System header to define __stub macros and hopefully few prototypes,
14627 which can conflict with char $ac_func(); below. */
14628 #include <assert.h>
14629 /* Override any gcc2 internal prototype to avoid an error. */
14630 /* We use char because int might match the return type of a gcc2
14631 builtin and then its argument prototype would still apply. */
14632 char $ac_func();
14634 int main() {
14636 /* The GNU C library defines this for functions which it implements
14637 to always fail with ENOSYS. Some functions are actually named
14638 something starting with __ and the normal name is an alias. */
14639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14640 choke me
14641 #else
14642 $ac_func();
14643 #endif
14645 ; return 0; }
14647 if { (eval echo configure:14648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14648 rm -rf conftest*
14649 eval "ac_cv_func_$ac_func=yes"
14650 else
14651 echo "configure: failed program was:" >&5
14652 cat conftest.$ac_ext >&5
14653 rm -rf conftest*
14654 eval "ac_cv_func_$ac_func=no"
14656 rm -f conftest*
14659 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14660 echo "$ac_t""yes" 1>&6
14661 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14662 cat >> confdefs.h <<EOF
14663 #define $ac_tr_func 1
14666 else
14667 echo "$ac_t""no" 1>&6
14668 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
14670 done
14674 USE_COMPLEX_LONG_DOUBLE=no
14675 if test x$ac_cv_func_atan2l = x"yes" \
14676 && test x$ac_cv_func_copysignl = x"yes"; then
14677 USE_COMPLEX_LONG_DOUBLE=yes
14678 for ac_func in hypotl signbitl
14680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14681 echo "configure:14682: checking for $ac_func" >&5
14682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14683 echo $ac_n "(cached) $ac_c" 1>&6
14684 else
14685 cat > conftest.$ac_ext <<EOF
14686 #line 14687 "configure"
14687 #include "confdefs.h"
14688 /* System header to define __stub macros and hopefully few prototypes,
14689 which can conflict with char $ac_func(); below. */
14690 #include <assert.h>
14691 /* Override any gcc2 internal prototype to avoid an error. */
14692 /* We use char because int might match the return type of a gcc2
14693 builtin and then its argument prototype would still apply. */
14694 char $ac_func();
14696 int main() {
14698 /* The GNU C library defines this for functions which it implements
14699 to always fail with ENOSYS. Some functions are actually named
14700 something starting with __ and the normal name is an alias. */
14701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14702 choke me
14703 #else
14704 $ac_func();
14705 #endif
14707 ; return 0; }
14709 if { (eval echo configure:14710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14710 rm -rf conftest*
14711 eval "ac_cv_func_$ac_func=yes"
14712 else
14713 echo "configure: failed program was:" >&5
14714 cat conftest.$ac_ext >&5
14715 rm -rf conftest*
14716 eval "ac_cv_func_$ac_func=no"
14718 rm -f conftest*
14721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14722 echo "$ac_t""yes" 1>&6
14723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14724 cat >> confdefs.h <<EOF
14725 #define $ac_tr_func 1
14728 else
14729 echo "$ac_t""no" 1>&6
14730 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
14732 done
14742 echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
14743 echo "configure:14744: checking for GNU C++ __complex__ support" >&5
14744 if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
14745 echo $ac_n "(cached) $ac_c" 1>&6
14746 else
14749 ac_ext=C
14750 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14751 ac_cpp='$CXXCPP $CPPFLAGS'
14752 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14753 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14754 cross_compiling=$ac_cv_prog_cxx_cross
14756 cat > conftest.$ac_ext <<EOF
14757 #line 14758 "configure"
14758 #include "confdefs.h"
14759 struct dcomplex { __complex__ double x; }; \
14760 dcomplex f(const dcomplex& x) { return dcomplex(x); }
14761 int main() {
14763 dcomplex x; f(x);
14764 ; return 0; }
14766 if { (eval echo configure:14767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14767 rm -rf conftest*
14768 glibcpp_cv_complex=ok
14769 else
14770 echo "configure: failed program was:" >&5
14771 cat conftest.$ac_ext >&5
14772 rm -rf conftest*
14773 glibcpp_cv_complex=buggy
14776 rm -f conftest*
14777 ac_ext=c
14778 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14779 ac_cpp='$CPP $CPPFLAGS'
14780 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14781 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14782 cross_compiling=$ac_cv_prog_cc_cross
14787 echo "$ac_t""$glibcpp_cv_complex" 1>&6
14788 if test $glibcpp_cv_complex = buggy; then
14789 cat >> confdefs.h <<\EOF
14790 #define _GLIBCPP_BUGGY_COMPLEX 1
14795 echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
14796 echo "configure:14797: checking for GNU C++ __complex__ float support" >&5
14797 if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
14798 echo $ac_n "(cached) $ac_c" 1>&6
14799 else
14802 ac_ext=C
14803 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14804 ac_cpp='$CXXCPP $CPPFLAGS'
14805 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14806 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14807 cross_compiling=$ac_cv_prog_cxx_cross
14809 rm -f conftest.h
14810 cat > conftest.h <<EOB
14812 // Check for buggy __complex__ that causes ICE in most versions of egcs
14813 // and gcc-2.95.x on certain platforms (eg., x86-win32).
14815 // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
14816 // more info on the bug itself.
14818 struct
14819 float_complex
14821 __complex__ float m_value;
14822 float_complex (float = 0.0f, float = 0.0f);
14823 float_complex (__complex__ float val) : m_value (val) {}
14824 float_complex foo (const float_complex &val)
14825 { return float_complex (~val.m_value); }
14828 cat > conftest.$ac_ext <<EOF
14829 #line 14830 "configure"
14830 #include "confdefs.h"
14831 #include "conftest.h"
14832 int main() {
14834 ; return 0; }
14836 if { (eval echo configure:14837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14837 rm -rf conftest*
14838 glibcpp_cv_float_complex=ok
14839 else
14840 echo "configure: failed program was:" >&5
14841 cat conftest.$ac_ext >&5
14842 rm -rf conftest*
14843 glibcpp_cv_float_complex=buggy
14846 rm -f conftest*
14847 ac_ext=c
14848 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14849 ac_cpp='$CPP $CPPFLAGS'
14850 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14851 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14852 cross_compiling=$ac_cv_prog_cc_cross
14857 echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
14858 if test $glibcpp_cv_float_complex = buggy; then
14859 cat >> confdefs.h <<\EOF
14860 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
14867 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
14868 echo "configure:14869: checking for mbstate_t" >&5
14869 cat > conftest.$ac_ext <<EOF
14870 #line 14871 "configure"
14871 #include "confdefs.h"
14872 #include <wchar.h>
14873 int main() {
14874 mbstate_t teststate;
14875 ; return 0; }
14877 if { (eval echo configure:14878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14878 rm -rf conftest*
14879 have_mbstate_t=yes
14880 else
14881 echo "configure: failed program was:" >&5
14882 cat conftest.$ac_ext >&5
14883 rm -rf conftest*
14884 have_mbstate_t=no
14886 rm -f conftest*
14887 echo "$ac_t""$have_mbstate_t" 1>&6
14888 if test x"$have_mbstate_t" = xyes; then
14889 cat >> confdefs.h <<\EOF
14890 #define HAVE_MBSTATE_T 1
14895 for ac_hdr in wchar.h
14897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14899 echo "configure:14900: checking for $ac_hdr" >&5
14900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14901 echo $ac_n "(cached) $ac_c" 1>&6
14902 else
14903 cat > conftest.$ac_ext <<EOF
14904 #line 14905 "configure"
14905 #include "confdefs.h"
14906 #include <$ac_hdr>
14908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14909 { (eval echo configure:14910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14911 if test -z "$ac_err"; then
14912 rm -rf conftest*
14913 eval "ac_cv_header_$ac_safe=yes"
14914 else
14915 echo "$ac_err" >&5
14916 echo "configure: failed program was:" >&5
14917 cat conftest.$ac_ext >&5
14918 rm -rf conftest*
14919 eval "ac_cv_header_$ac_safe=no"
14921 rm -f conftest*
14923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14924 echo "$ac_t""yes" 1>&6
14925 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14926 cat >> confdefs.h <<EOF
14927 #define $ac_tr_hdr 1
14929 ac_has_wchar_h=yes
14930 else
14931 echo "$ac_t""no" 1>&6
14932 ac_has_wchar_h=no
14934 done
14936 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
14937 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
14938 echo "configure:14939: checking for wctype.h" >&5
14939 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14940 echo $ac_n "(cached) $ac_c" 1>&6
14941 else
14942 cat > conftest.$ac_ext <<EOF
14943 #line 14944 "configure"
14944 #include "confdefs.h"
14945 #include <wctype.h>
14947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14948 { (eval echo configure:14949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14950 if test -z "$ac_err"; then
14951 rm -rf conftest*
14952 eval "ac_cv_header_$ac_safe=yes"
14953 else
14954 echo "$ac_err" >&5
14955 echo "configure: failed program was:" >&5
14956 cat conftest.$ac_ext >&5
14957 rm -rf conftest*
14958 eval "ac_cv_header_$ac_safe=no"
14960 rm -f conftest*
14962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14963 echo "$ac_t""yes" 1>&6
14964 ac_has_wctype_h=yes
14965 else
14966 echo "$ac_t""no" 1>&6
14967 ac_has_wctype_h=no
14971 if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
14972 && test x"$enable_c_mbchar" != xno; then
14974 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
14975 echo "configure:14976: checking for WCHAR_MIN and WCHAR_MAX" >&5
14976 cat > conftest.$ac_ext <<EOF
14977 #line 14978 "configure"
14978 #include "confdefs.h"
14979 #include <wchar.h>
14980 int main() {
14981 int i = WCHAR_MIN; int j = WCHAR_MAX;
14982 ; return 0; }
14984 if { (eval echo configure:14985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14985 rm -rf conftest*
14986 has_wchar_minmax=yes
14987 else
14988 echo "configure: failed program was:" >&5
14989 cat conftest.$ac_ext >&5
14990 rm -rf conftest*
14991 has_wchar_minmax=no
14993 rm -f conftest*
14994 echo "$ac_t""$has_wchar_minmax" 1>&6
14996 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
14997 echo "configure:14998: checking for WEOF" >&5
14998 cat > conftest.$ac_ext <<EOF
14999 #line 15000 "configure"
15000 #include "confdefs.h"
15002 #include <wchar.h>
15003 #include <stddef.h>
15004 int main() {
15005 wint_t i = WEOF;
15006 ; return 0; }
15008 if { (eval echo configure:15009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15009 rm -rf conftest*
15010 has_weof=yes
15011 else
15012 echo "configure: failed program was:" >&5
15013 cat conftest.$ac_ext >&5
15014 rm -rf conftest*
15015 has_weof=no
15017 rm -f conftest*
15018 echo "$ac_t""$has_weof" 1>&6
15020 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
15021 wcsrtombs mbsrtowcs
15023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15024 echo "configure:15025: checking for $ac_func" >&5
15025 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15026 echo $ac_n "(cached) $ac_c" 1>&6
15027 else
15028 cat > conftest.$ac_ext <<EOF
15029 #line 15030 "configure"
15030 #include "confdefs.h"
15031 /* System header to define __stub macros and hopefully few prototypes,
15032 which can conflict with char $ac_func(); below. */
15033 #include <assert.h>
15034 /* Override any gcc2 internal prototype to avoid an error. */
15035 /* We use char because int might match the return type of a gcc2
15036 builtin and then its argument prototype would still apply. */
15037 char $ac_func();
15039 int main() {
15041 /* The GNU C library defines this for functions which it implements
15042 to always fail with ENOSYS. Some functions are actually named
15043 something starting with __ and the normal name is an alias. */
15044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15045 choke me
15046 #else
15047 $ac_func();
15048 #endif
15050 ; return 0; }
15052 if { (eval echo configure:15053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15053 rm -rf conftest*
15054 eval "ac_cv_func_$ac_func=yes"
15055 else
15056 echo "configure: failed program was:" >&5
15057 cat conftest.$ac_ext >&5
15058 rm -rf conftest*
15059 eval "ac_cv_func_$ac_func=no"
15061 rm -f conftest*
15064 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15065 echo "$ac_t""yes" 1>&6
15066 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15067 cat >> confdefs.h <<EOF
15068 #define $ac_tr_func 1
15070 ac_wfuncs=yes
15071 else
15072 echo "$ac_t""no" 1>&6
15073 ac_wfuncs=no
15075 done
15078 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
15079 echo "configure:15080: checking for ISO C99 wchar_t support" >&5
15080 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
15081 && test x"$ac_wfuncs" = xyes; then
15082 ac_isoC99_wchar_t=yes
15083 else
15084 ac_isoC99_wchar_t=no
15086 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
15088 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
15089 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
15090 echo "configure:15091: checking for iconv.h" >&5
15091 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15092 echo $ac_n "(cached) $ac_c" 1>&6
15093 else
15094 cat > conftest.$ac_ext <<EOF
15095 #line 15096 "configure"
15096 #include "confdefs.h"
15097 #include <iconv.h>
15099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15100 { (eval echo configure:15101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15102 if test -z "$ac_err"; then
15103 rm -rf conftest*
15104 eval "ac_cv_header_$ac_safe=yes"
15105 else
15106 echo "$ac_err" >&5
15107 echo "configure: failed program was:" >&5
15108 cat conftest.$ac_ext >&5
15109 rm -rf conftest*
15110 eval "ac_cv_header_$ac_safe=no"
15112 rm -f conftest*
15114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15115 echo "$ac_t""yes" 1>&6
15116 ac_has_iconv_h=yes
15117 else
15118 echo "$ac_t""no" 1>&6
15119 ac_has_iconv_h=no
15122 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
15123 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
15124 echo "configure:15125: checking for langinfo.h" >&5
15125 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15126 echo $ac_n "(cached) $ac_c" 1>&6
15127 else
15128 cat > conftest.$ac_ext <<EOF
15129 #line 15130 "configure"
15130 #include "confdefs.h"
15131 #include <langinfo.h>
15133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15134 { (eval echo configure:15135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15136 if test -z "$ac_err"; then
15137 rm -rf conftest*
15138 eval "ac_cv_header_$ac_safe=yes"
15139 else
15140 echo "$ac_err" >&5
15141 echo "configure: failed program was:" >&5
15142 cat conftest.$ac_ext >&5
15143 rm -rf conftest*
15144 eval "ac_cv_header_$ac_safe=no"
15146 rm -f conftest*
15148 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15149 echo "$ac_t""yes" 1>&6
15150 ac_has_langinfo_h=yes
15151 else
15152 echo "$ac_t""no" 1>&6
15153 ac_has_langinfo_h=no
15157 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
15158 echo "configure:15159: checking for iconv in -liconv" >&5
15159 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
15160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15161 echo $ac_n "(cached) $ac_c" 1>&6
15162 else
15163 ac_save_LIBS="$LIBS"
15164 LIBS="-liconv $LIBS"
15165 cat > conftest.$ac_ext <<EOF
15166 #line 15167 "configure"
15167 #include "confdefs.h"
15168 /* Override any gcc2 internal prototype to avoid an error. */
15169 /* We use char because int might match the return type of a gcc2
15170 builtin and then its argument prototype would still apply. */
15171 char iconv();
15173 int main() {
15174 iconv()
15175 ; return 0; }
15177 if { (eval echo configure:15178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15178 rm -rf conftest*
15179 eval "ac_cv_lib_$ac_lib_var=yes"
15180 else
15181 echo "configure: failed program was:" >&5
15182 cat conftest.$ac_ext >&5
15183 rm -rf conftest*
15184 eval "ac_cv_lib_$ac_lib_var=no"
15186 rm -f conftest*
15187 LIBS="$ac_save_LIBS"
15190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15191 echo "$ac_t""yes" 1>&6
15192 libiconv="-liconv"
15193 else
15194 echo "$ac_t""no" 1>&6
15197 ac_save_LIBS="$LIBS"
15198 LIBS="$LIBS $libiconv"
15200 for ac_func in iconv_open iconv_close iconv nl_langinfo
15202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15203 echo "configure:15204: checking for $ac_func" >&5
15204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15205 echo $ac_n "(cached) $ac_c" 1>&6
15206 else
15207 cat > conftest.$ac_ext <<EOF
15208 #line 15209 "configure"
15209 #include "confdefs.h"
15210 /* System header to define __stub macros and hopefully few prototypes,
15211 which can conflict with char $ac_func(); below. */
15212 #include <assert.h>
15213 /* Override any gcc2 internal prototype to avoid an error. */
15214 /* We use char because int might match the return type of a gcc2
15215 builtin and then its argument prototype would still apply. */
15216 char $ac_func();
15218 int main() {
15220 /* The GNU C library defines this for functions which it implements
15221 to always fail with ENOSYS. Some functions are actually named
15222 something starting with __ and the normal name is an alias. */
15223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15224 choke me
15225 #else
15226 $ac_func();
15227 #endif
15229 ; return 0; }
15231 if { (eval echo configure:15232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15232 rm -rf conftest*
15233 eval "ac_cv_func_$ac_func=yes"
15234 else
15235 echo "configure: failed program was:" >&5
15236 cat conftest.$ac_ext >&5
15237 rm -rf conftest*
15238 eval "ac_cv_func_$ac_func=no"
15240 rm -f conftest*
15243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15244 echo "$ac_t""yes" 1>&6
15245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15246 cat >> confdefs.h <<EOF
15247 #define $ac_tr_func 1
15250 ac_XPG2funcs=yes
15251 else
15252 echo "$ac_t""no" 1>&6
15253 ac_XPG2funcs=no
15255 done
15258 LIBS="$ac_save_LIBS"
15260 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
15261 echo "configure:15262: checking for XPG2 wchar_t support" >&5
15262 if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
15263 && test x"$ac_XPG2funcs" = xyes; then
15264 ac_XPG2_wchar_t=yes
15265 else
15266 ac_XPG2_wchar_t=no
15268 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
15270 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
15271 echo "configure:15272: checking for enabled wchar_t specializations" >&5
15272 if test x"$ac_isoC99_wchar_t" = xyes \
15273 && test x"$ac_XPG2_wchar_t" = xyes; then
15274 cat >> confdefs.h <<\EOF
15275 #define _GLIBCPP_USE_WCHAR_T 1
15278 echo "$ac_t"""yes"" 1>&6
15279 else
15280 echo "$ac_t"""no"" 1>&6
15282 else
15283 echo "configure: warning: wchar_t support disabled." 1>&2
15287 ac_test_CXXFLAGS="${CXXFLAGS+set}"
15288 ac_save_CXXFLAGS="$CXXFLAGS"
15289 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
15291 for ac_func in strtof
15293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15294 echo "configure:15295: checking for $ac_func" >&5
15295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15296 echo $ac_n "(cached) $ac_c" 1>&6
15297 else
15298 cat > conftest.$ac_ext <<EOF
15299 #line 15300 "configure"
15300 #include "confdefs.h"
15301 /* System header to define __stub macros and hopefully few prototypes,
15302 which can conflict with char $ac_func(); below. */
15303 #include <assert.h>
15304 /* Override any gcc2 internal prototype to avoid an error. */
15305 /* We use char because int might match the return type of a gcc2
15306 builtin and then its argument prototype would still apply. */
15307 char $ac_func();
15309 int main() {
15311 /* The GNU C library defines this for functions which it implements
15312 to always fail with ENOSYS. Some functions are actually named
15313 something starting with __ and the normal name is an alias. */
15314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15315 choke me
15316 #else
15317 $ac_func();
15318 #endif
15320 ; return 0; }
15322 if { (eval echo configure:15323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15323 rm -rf conftest*
15324 eval "ac_cv_func_$ac_func=yes"
15325 else
15326 echo "configure: failed program was:" >&5
15327 cat conftest.$ac_ext >&5
15328 rm -rf conftest*
15329 eval "ac_cv_func_$ac_func=no"
15331 rm -f conftest*
15334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15335 echo "$ac_t""yes" 1>&6
15336 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15337 cat >> confdefs.h <<EOF
15338 #define $ac_tr_func 1
15341 else
15342 echo "$ac_t""no" 1>&6
15344 done
15347 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
15348 echo "configure:15349: checking for strtold declaration" >&5
15349 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
15350 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
15351 echo $ac_n "(cached) $ac_c" 1>&6
15352 else
15355 ac_ext=C
15356 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15357 ac_cpp='$CXXCPP $CPPFLAGS'
15358 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15359 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15360 cross_compiling=$ac_cv_prog_cxx_cross
15362 cat > conftest.$ac_ext <<EOF
15363 #line 15364 "configure"
15364 #include "confdefs.h"
15365 #include <stdlib.h>
15366 int main() {
15367 strtold(0, 0);
15368 ; return 0; }
15370 if { (eval echo configure:15371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15371 rm -rf conftest*
15372 glibcpp_cv_func_strtold_use=yes
15373 else
15374 echo "configure: failed program was:" >&5
15375 cat conftest.$ac_ext >&5
15376 rm -rf conftest*
15377 glibcpp_cv_func_strtold_use=no
15379 rm -f conftest*
15380 ac_ext=c
15381 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15382 ac_cpp='$CPP $CPPFLAGS'
15383 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15384 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15385 cross_compiling=$ac_cv_prog_cc_cross
15391 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
15392 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
15393 for ac_func in strtold
15395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15396 echo "configure:15397: checking for $ac_func" >&5
15397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15398 echo $ac_n "(cached) $ac_c" 1>&6
15399 else
15400 cat > conftest.$ac_ext <<EOF
15401 #line 15402 "configure"
15402 #include "confdefs.h"
15403 /* System header to define __stub macros and hopefully few prototypes,
15404 which can conflict with char $ac_func(); below. */
15405 #include <assert.h>
15406 /* Override any gcc2 internal prototype to avoid an error. */
15407 /* We use char because int might match the return type of a gcc2
15408 builtin and then its argument prototype would still apply. */
15409 char $ac_func();
15411 int main() {
15413 /* The GNU C library defines this for functions which it implements
15414 to always fail with ENOSYS. Some functions are actually named
15415 something starting with __ and the normal name is an alias. */
15416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15417 choke me
15418 #else
15419 $ac_func();
15420 #endif
15422 ; return 0; }
15424 if { (eval echo configure:15425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15425 rm -rf conftest*
15426 eval "ac_cv_func_$ac_func=yes"
15427 else
15428 echo "configure: failed program was:" >&5
15429 cat conftest.$ac_ext >&5
15430 rm -rf conftest*
15431 eval "ac_cv_func_$ac_func=no"
15433 rm -f conftest*
15436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15437 echo "$ac_t""yes" 1>&6
15438 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15439 cat >> confdefs.h <<EOF
15440 #define $ac_tr_func 1
15443 else
15444 echo "$ac_t""no" 1>&6
15446 done
15451 CXXFLAGS="$ac_save_CXXFLAGS"
15454 cat > conftest.$ac_ext <<EOF
15455 #line 15456 "configure"
15456 #include "confdefs.h"
15458 #include <setjmp.h>
15460 int main() {
15461 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
15462 ; return 0; }
15464 if { (eval echo configure:15465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15465 rm -rf conftest*
15466 cat >> confdefs.h <<\EOF
15467 #define HAVE_SIGSETJMP 1
15470 else
15471 echo "configure: failed program was:" >&5
15472 cat conftest.$ac_ext >&5
15474 rm -f conftest*
15476 for ac_hdr in unistd.h
15478 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15479 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15480 echo "configure:15481: checking for $ac_hdr" >&5
15481 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15482 echo $ac_n "(cached) $ac_c" 1>&6
15483 else
15484 cat > conftest.$ac_ext <<EOF
15485 #line 15486 "configure"
15486 #include "confdefs.h"
15487 #include <$ac_hdr>
15489 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15490 { (eval echo configure:15491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15491 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15492 if test -z "$ac_err"; then
15493 rm -rf conftest*
15494 eval "ac_cv_header_$ac_safe=yes"
15495 else
15496 echo "$ac_err" >&5
15497 echo "configure: failed program was:" >&5
15498 cat conftest.$ac_ext >&5
15499 rm -rf conftest*
15500 eval "ac_cv_header_$ac_safe=no"
15502 rm -f conftest*
15504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15505 echo "$ac_t""yes" 1>&6
15506 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15507 cat >> confdefs.h <<EOF
15508 #define $ac_tr_hdr 1
15511 else
15512 echo "$ac_t""no" 1>&6
15514 done
15516 for ac_func in getpagesize
15518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15519 echo "configure:15520: checking for $ac_func" >&5
15520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15521 echo $ac_n "(cached) $ac_c" 1>&6
15522 else
15523 cat > conftest.$ac_ext <<EOF
15524 #line 15525 "configure"
15525 #include "confdefs.h"
15526 /* System header to define __stub macros and hopefully few prototypes,
15527 which can conflict with char $ac_func(); below. */
15528 #include <assert.h>
15529 /* Override any gcc2 internal prototype to avoid an error. */
15530 /* We use char because int might match the return type of a gcc2
15531 builtin and then its argument prototype would still apply. */
15532 char $ac_func();
15534 int main() {
15536 /* The GNU C library defines this for functions which it implements
15537 to always fail with ENOSYS. Some functions are actually named
15538 something starting with __ and the normal name is an alias. */
15539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15540 choke me
15541 #else
15542 $ac_func();
15543 #endif
15545 ; return 0; }
15547 if { (eval echo configure:15548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15548 rm -rf conftest*
15549 eval "ac_cv_func_$ac_func=yes"
15550 else
15551 echo "configure: failed program was:" >&5
15552 cat conftest.$ac_ext >&5
15553 rm -rf conftest*
15554 eval "ac_cv_func_$ac_func=no"
15556 rm -f conftest*
15559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15560 echo "$ac_t""yes" 1>&6
15561 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15562 cat >> confdefs.h <<EOF
15563 #define $ac_tr_func 1
15566 else
15567 echo "$ac_t""no" 1>&6
15569 done
15571 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
15572 echo "configure:15573: checking for working mmap" >&5
15573 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
15574 echo $ac_n "(cached) $ac_c" 1>&6
15575 else
15576 if test "$cross_compiling" = yes; then
15577 ac_cv_func_mmap_fixed_mapped=no
15578 else
15579 cat > conftest.$ac_ext <<EOF
15580 #line 15581 "configure"
15581 #include "confdefs.h"
15583 /* Thanks to Mike Haertel and Jim Avera for this test.
15584 Here is a matrix of mmap possibilities:
15585 mmap private not fixed
15586 mmap private fixed at somewhere currently unmapped
15587 mmap private fixed at somewhere already mapped
15588 mmap shared not fixed
15589 mmap shared fixed at somewhere currently unmapped
15590 mmap shared fixed at somewhere already mapped
15591 For private mappings, we should verify that changes cannot be read()
15592 back from the file, nor mmap's back from the file at a different
15593 address. (There have been systems where private was not correctly
15594 implemented like the infamous i386 svr4.0, and systems where the
15595 VM page cache was not coherent with the filesystem buffer cache
15596 like early versions of FreeBSD and possibly contemporary NetBSD.)
15597 For shared mappings, we should conversely verify that changes get
15598 propogated back to all the places they're supposed to be.
15600 Grep wants private fixed already mapped.
15601 The main things grep needs to know about mmap are:
15602 * does it exist and is it safe to write into the mmap'd area
15603 * how to use it (BSD variants) */
15604 #include <sys/types.h>
15605 #include <fcntl.h>
15606 #include <sys/mman.h>
15608 /* This mess was copied from the GNU getpagesize.h. */
15609 #ifndef HAVE_GETPAGESIZE
15610 # ifdef HAVE_UNISTD_H
15611 # include <unistd.h>
15612 # endif
15614 /* Assume that all systems that can run configure have sys/param.h. */
15615 # ifndef HAVE_SYS_PARAM_H
15616 # define HAVE_SYS_PARAM_H 1
15617 # endif
15619 # ifdef _SC_PAGESIZE
15620 # define getpagesize() sysconf(_SC_PAGESIZE)
15621 # else /* no _SC_PAGESIZE */
15622 # ifdef HAVE_SYS_PARAM_H
15623 # include <sys/param.h>
15624 # ifdef EXEC_PAGESIZE
15625 # define getpagesize() EXEC_PAGESIZE
15626 # else /* no EXEC_PAGESIZE */
15627 # ifdef NBPG
15628 # define getpagesize() NBPG * CLSIZE
15629 # ifndef CLSIZE
15630 # define CLSIZE 1
15631 # endif /* no CLSIZE */
15632 # else /* no NBPG */
15633 # ifdef NBPC
15634 # define getpagesize() NBPC
15635 # else /* no NBPC */
15636 # ifdef PAGESIZE
15637 # define getpagesize() PAGESIZE
15638 # endif /* PAGESIZE */
15639 # endif /* no NBPC */
15640 # endif /* no NBPG */
15641 # endif /* no EXEC_PAGESIZE */
15642 # else /* no HAVE_SYS_PARAM_H */
15643 # define getpagesize() 8192 /* punt totally */
15644 # endif /* no HAVE_SYS_PARAM_H */
15645 # endif /* no _SC_PAGESIZE */
15647 #endif /* no HAVE_GETPAGESIZE */
15649 #ifdef __cplusplus
15650 extern "C" { void *malloc(unsigned); }
15651 #else
15652 char *malloc();
15653 #endif
15656 main()
15658 char *data, *data2, *data3;
15659 int i, pagesize;
15660 int fd;
15662 pagesize = getpagesize();
15665 * First, make a file with some known garbage in it.
15667 data = malloc(pagesize);
15668 if (!data)
15669 exit(1);
15670 for (i = 0; i < pagesize; ++i)
15671 *(data + i) = rand();
15672 umask(0);
15673 fd = creat("conftestmmap", 0600);
15674 if (fd < 0)
15675 exit(1);
15676 if (write(fd, data, pagesize) != pagesize)
15677 exit(1);
15678 close(fd);
15681 * Next, try to mmap the file at a fixed address which
15682 * already has something else allocated at it. If we can,
15683 * also make sure that we see the same garbage.
15685 fd = open("conftestmmap", O_RDWR);
15686 if (fd < 0)
15687 exit(1);
15688 data2 = malloc(2 * pagesize);
15689 if (!data2)
15690 exit(1);
15691 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
15692 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
15693 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15694 exit(1);
15695 for (i = 0; i < pagesize; ++i)
15696 if (*(data + i) != *(data2 + i))
15697 exit(1);
15700 * Finally, make sure that changes to the mapped area
15701 * do not percolate back to the file as seen by read().
15702 * (This is a bug on some variants of i386 svr4.0.)
15704 for (i = 0; i < pagesize; ++i)
15705 *(data2 + i) = *(data2 + i) + 1;
15706 data3 = malloc(pagesize);
15707 if (!data3)
15708 exit(1);
15709 if (read(fd, data3, pagesize) != pagesize)
15710 exit(1);
15711 for (i = 0; i < pagesize; ++i)
15712 if (*(data + i) != *(data3 + i))
15713 exit(1);
15714 close(fd);
15715 unlink("conftestmmap");
15716 exit(0);
15720 if { (eval echo configure:15721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15721 then
15722 ac_cv_func_mmap_fixed_mapped=yes
15723 else
15724 echo "configure: failed program was:" >&5
15725 cat conftest.$ac_ext >&5
15726 rm -fr conftest*
15727 ac_cv_func_mmap_fixed_mapped=no
15729 rm -fr conftest*
15734 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
15735 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15736 cat >> confdefs.h <<\EOF
15737 #define HAVE_MMAP 1
15744 # Now that ctype is determined for all possible targets, we can do this...
15752 if test "$NULL_TARGET" = yes; then
15753 NULL_TARGET_TRUE=
15754 NULL_TARGET_FALSE='#'
15755 else
15756 NULL_TARGET_TRUE='#'
15757 NULL_TARGET_FALSE=
15761 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
15762 NATIVE_TRUE=
15763 NATIVE_FALSE='#'
15764 else
15765 NATIVE_TRUE='#'
15766 NATIVE_FALSE=
15770 if test "$CANADIAN" = yes; then
15771 CANADIAN_TRUE=
15772 CANADIAN_FALSE='#'
15773 else
15774 CANADIAN_TRUE='#'
15775 CANADIAN_FALSE=
15779 cat > confcache <<\EOF
15780 # This file is a shell script that caches the results of configure
15781 # tests run on this system so they can be shared between configure
15782 # scripts and configure runs. It is not useful on other systems.
15783 # If it contains results you don't want to keep, you may remove or edit it.
15785 # By default, configure uses ./config.cache as the cache file,
15786 # creating it if it does not exist already. You can give configure
15787 # the --cache-file=FILE option to use a different cache file; that is
15788 # what configure does when it calls configure scripts in
15789 # subdirectories, so they share the cache.
15790 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15791 # config.status only pays attention to the cache file if you give it the
15792 # --recheck option to rerun configure.
15795 # The following way of writing the cache mishandles newlines in values,
15796 # but we know of no workaround that is simple, portable, and efficient.
15797 # So, don't put newlines in cache variables' values.
15798 # Ultrix sh set writes to stderr and can't be redirected directly,
15799 # and sets the high bit in the cache file unless we assign to the vars.
15800 (set) 2>&1 |
15801 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15802 *ac_space=\ *)
15803 # `set' does not quote correctly, so add quotes (double-quote substitution
15804 # turns \\\\ into \\, and sed turns \\ into \).
15805 sed -n \
15806 -e "s/'/'\\\\''/g" \
15807 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15810 # `set' quotes correctly as required by POSIX, so do not add quotes.
15811 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15813 esac >> confcache
15814 if cmp -s $cache_file confcache; then
15816 else
15817 if test -w $cache_file; then
15818 echo "updating cache $cache_file"
15819 cat confcache > $cache_file
15820 else
15821 echo "not updating unwritable cache $cache_file"
15824 rm -f confcache
15827 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
15828 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
15829 echo "configure:15830: checking for locale.h" >&5
15830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15831 echo $ac_n "(cached) $ac_c" 1>&6
15832 else
15833 cat > conftest.$ac_ext <<EOF
15834 #line 15835 "configure"
15835 #include "confdefs.h"
15836 #include <locale.h>
15838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15839 { (eval echo configure:15840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15841 if test -z "$ac_err"; then
15842 rm -rf conftest*
15843 eval "ac_cv_header_$ac_safe=yes"
15844 else
15845 echo "$ac_err" >&5
15846 echo "configure: failed program was:" >&5
15847 cat conftest.$ac_ext >&5
15848 rm -rf conftest*
15849 eval "ac_cv_header_$ac_safe=no"
15851 rm -f conftest*
15853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15854 echo "$ac_t""yes" 1>&6
15856 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
15857 echo "configure:15858: checking for LC_MESSAGES" >&5
15858 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
15859 echo $ac_n "(cached) $ac_c" 1>&6
15860 else
15861 cat > conftest.$ac_ext <<EOF
15862 #line 15863 "configure"
15863 #include "confdefs.h"
15864 #include <locale.h>
15865 int main() {
15866 return LC_MESSAGES
15867 ; return 0; }
15869 if { (eval echo configure:15870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15870 rm -rf conftest*
15871 ac_cv_val_LC_MESSAGES=yes
15872 else
15873 echo "configure: failed program was:" >&5
15874 cat conftest.$ac_ext >&5
15875 rm -rf conftest*
15876 ac_cv_val_LC_MESSAGES=no
15878 rm -f conftest*
15881 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
15882 if test $ac_cv_val_LC_MESSAGES = yes; then
15883 cat >> confdefs.h <<\EOF
15884 #define HAVE_LC_MESSAGES 1
15889 else
15890 echo "$ac_t""no" 1>&6
15895 if test "${multilib}" = "yes"; then
15896 multilib_arg="--enable-multilib"
15897 else
15898 multilib_arg=
15902 # Generate the various Makefiles, include files, and scripts.
15904 # Needed so that g++ can find the correct include subdir automatically.
15905 INTERFACE=v3
15907 # Export all the install information
15910 glibcpp_toolexecdir=no
15911 glibcpp_toolexeclibdir=no
15913 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
15914 echo "configure:15915: checking for interface version number" >&5
15915 libstdcxx_interface=$INTERFACE
15916 echo "$ac_t""$libstdcxx_interface" 1>&6
15918 # Process the option --with-gxx-include-dir=<path to include-files directory>
15919 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
15920 echo "configure:15921: checking for --with-gxx-include-dir" >&5
15921 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
15922 if test "${with_gxx_include_dir+set}" = set; then
15923 withval="$with_gxx_include_dir"
15924 case "${withval}" in
15925 yes)
15926 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
15927 gxx_include_dir=no
15930 gxx_include_dir=no
15933 gxx_include_dir=${withval}
15935 esac
15936 else
15937 gxx_include_dir=no
15940 echo "$ac_t""$gxx_include_dir" 1>&6
15942 # Process the option "--enable-version-specific-runtime-libs"
15943 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
15944 echo "configure:15945: checking for --enable-version-specific-runtime-libs" >&5
15945 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15946 if test "${enable_version_specific_runtime_libs+set}" = set; then
15947 enableval="$enable_version_specific_runtime_libs"
15948 version_specific_libs=yes
15949 # Need the gcc compiler version to know where to install libraries
15950 # and header files if --enable-version-specific-runtime-libs option
15951 # is selected.
15952 gcc_version_trigger=${srcdir}/../gcc/version.c
15953 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
15954 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
15955 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
15956 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
15957 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}
15959 else
15960 version_specific_libs=no
15963 echo "$ac_t""$version_specific_libs" 1>&6
15965 # Default case for install directory for include files.
15966 if test x"$version_specific_libs" = x"no" \
15967 && test x"$gxx_include_dir" = x"no"; then
15968 gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
15971 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
15972 # Install a library built with a cross compiler in tooldir, not libdir.
15973 if test x"$glibcpp_toolexecdir" = x"no"; then
15974 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15975 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
15976 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
15977 else
15978 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
15979 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
15983 echo $ac_n "checking for install location""... $ac_c" 1>&6
15984 echo "configure:15985: checking for install location" >&5
15985 echo "$ac_t""$gxx_include_dir" 1>&6
15992 # Export all the include and flag information to makefiles.
15994 # Root level of the include sources.
15995 GLIBCPP_INCLUDE_DIR='$(top_srcdir)/include'
15997 # Can either use include/c or include/c_std to grab "C" headers. This
15998 # variable is set to the include directory currently in use.
15999 # set with C_INCLUDE_DIR in GLIBCPP_ENABLE_CHEADERS
16001 # Passed down for canadian crosses.
16002 if test x"$CANADIAN" = xyes; then
16003 TOPLEVEL_INCLUDES='-I$(includedir)'
16006 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
16008 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
16010 #if GLIBCPP_NEED_LIBIO
16011 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
16012 #else
16013 #LIBIO_INCLUDES='-I$(top_srcdir)/libio'
16014 #endif
16016 #if GLIBCPP_USE_CSHADOW
16017 # CSHADOW_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR) \
16018 # -I$(top_blddir)/cshadow'
16019 #else
16020 CSTD_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR)'
16021 #endif
16023 # Now, export this to all the little Makefiles....
16032 # Optimization flags that are probably a good idea for thrill-seekers. Just
16033 # uncomment the lines below and make, everything else is ready to go...
16034 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
16035 OPTIMIZE_CXXFLAGS=
16038 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
16042 # This should be done by mkincludedir, but hack around it now.
16043 blddir=`pwd`
16044 echo "checking for $blddir/include"
16046 if test ! -d "$blddir/include"; then
16047 mkdir "$blddir/include"
16050 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
16051 # and libsupc++/Makefile.am so that multilib installs will end up
16052 # installed in the correct place. To work around this not being passed
16053 # down from config-ml.in -> top_srcdir/Makefile.am ->
16054 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
16055 trap '' 1 2 15
16056 cat > confcache <<\EOF
16057 # This file is a shell script that caches the results of configure
16058 # tests run on this system so they can be shared between configure
16059 # scripts and configure runs. It is not useful on other systems.
16060 # If it contains results you don't want to keep, you may remove or edit it.
16062 # By default, configure uses ./config.cache as the cache file,
16063 # creating it if it does not exist already. You can give configure
16064 # the --cache-file=FILE option to use a different cache file; that is
16065 # what configure does when it calls configure scripts in
16066 # subdirectories, so they share the cache.
16067 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16068 # config.status only pays attention to the cache file if you give it the
16069 # --recheck option to rerun configure.
16072 # The following way of writing the cache mishandles newlines in values,
16073 # but we know of no workaround that is simple, portable, and efficient.
16074 # So, don't put newlines in cache variables' values.
16075 # Ultrix sh set writes to stderr and can't be redirected directly,
16076 # and sets the high bit in the cache file unless we assign to the vars.
16077 (set) 2>&1 |
16078 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16079 *ac_space=\ *)
16080 # `set' does not quote correctly, so add quotes (double-quote substitution
16081 # turns \\\\ into \\, and sed turns \\ into \).
16082 sed -n \
16083 -e "s/'/'\\\\''/g" \
16084 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16087 # `set' quotes correctly as required by POSIX, so do not add quotes.
16088 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16090 esac >> confcache
16091 if cmp -s $cache_file confcache; then
16093 else
16094 if test -w $cache_file; then
16095 echo "updating cache $cache_file"
16096 cat confcache > $cache_file
16097 else
16098 echo "not updating unwritable cache $cache_file"
16101 rm -f confcache
16103 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16105 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16106 # Let make expand exec_prefix.
16107 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16109 # Any assignment to VPATH causes Sun make to only execute
16110 # the first set of double-colon rules, so remove it if not needed.
16111 # If there is a colon in the path, we need to keep it.
16112 if test "x$srcdir" = x.; then
16113 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16116 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16118 DEFS=-DHAVE_CONFIG_H
16120 # Without the "./", some shells look in PATH for config.status.
16121 : ${CONFIG_STATUS=./config.status}
16123 echo creating $CONFIG_STATUS
16124 rm -f $CONFIG_STATUS
16125 cat > $CONFIG_STATUS <<EOF
16126 #! /bin/sh
16127 # Generated automatically by configure.
16128 # Run this file to recreate the current configuration.
16129 # This directory was configured as follows,
16130 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16132 # $0 $ac_configure_args
16134 # Compiler output produced by configure, useful for debugging
16135 # configure, is in ./config.log if it exists.
16137 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16138 for ac_option
16140 case "\$ac_option" in
16141 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16142 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16143 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16144 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16145 echo "$CONFIG_STATUS generated by autoconf version 2.13"
16146 exit 0 ;;
16147 -help | --help | --hel | --he | --h)
16148 echo "\$ac_cs_usage"; exit 0 ;;
16149 *) echo "\$ac_cs_usage"; exit 1 ;;
16150 esac
16151 done
16153 ac_given_srcdir=$srcdir
16154 ac_given_INSTALL="$INSTALL"
16156 trap 'rm -fr `echo "tests_flags mkcheck Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16158 cat >> $CONFIG_STATUS <<EOF
16160 # Protect against being on the right side of a sed subst in config.status.
16161 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16162 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16163 $ac_vpsub
16164 $extrasub
16165 s%@SHELL@%$SHELL%g
16166 s%@CFLAGS@%$CFLAGS%g
16167 s%@CPPFLAGS@%$CPPFLAGS%g
16168 s%@CXXFLAGS@%$CXXFLAGS%g
16169 s%@FFLAGS@%$FFLAGS%g
16170 s%@DEFS@%$DEFS%g
16171 s%@LDFLAGS@%$LDFLAGS%g
16172 s%@LIBS@%$LIBS%g
16173 s%@exec_prefix@%$exec_prefix%g
16174 s%@prefix@%$prefix%g
16175 s%@program_transform_name@%$program_transform_name%g
16176 s%@bindir@%$bindir%g
16177 s%@sbindir@%$sbindir%g
16178 s%@libexecdir@%$libexecdir%g
16179 s%@datadir@%$datadir%g
16180 s%@sysconfdir@%$sysconfdir%g
16181 s%@sharedstatedir@%$sharedstatedir%g
16182 s%@localstatedir@%$localstatedir%g
16183 s%@libdir@%$libdir%g
16184 s%@includedir@%$includedir%g
16185 s%@oldincludedir@%$oldincludedir%g
16186 s%@infodir@%$infodir%g
16187 s%@mandir@%$mandir%g
16188 s%@toplevel_srcdir@%$toplevel_srcdir%g
16189 s%@host@%$host%g
16190 s%@host_alias@%$host_alias%g
16191 s%@host_cpu@%$host_cpu%g
16192 s%@host_vendor@%$host_vendor%g
16193 s%@host_os@%$host_os%g
16194 s%@target@%$target%g
16195 s%@target_alias@%$target_alias%g
16196 s%@target_cpu@%$target_cpu%g
16197 s%@target_vendor@%$target_vendor%g
16198 s%@target_os@%$target_os%g
16199 s%@build@%$build%g
16200 s%@build_alias@%$build_alias%g
16201 s%@build_cpu@%$build_cpu%g
16202 s%@build_vendor@%$build_vendor%g
16203 s%@build_os@%$build_os%g
16204 s%@glibcpp_basedir@%$glibcpp_basedir%g
16205 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16206 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16207 s%@INSTALL_DATA@%$INSTALL_DATA%g
16208 s%@PACKAGE@%$PACKAGE%g
16209 s%@VERSION@%$VERSION%g
16210 s%@ACLOCAL@%$ACLOCAL%g
16211 s%@AUTOCONF@%$AUTOCONF%g
16212 s%@AUTOMAKE@%$AUTOMAKE%g
16213 s%@AUTOHEADER@%$AUTOHEADER%g
16214 s%@MAKEINFO@%$MAKEINFO%g
16215 s%@SET_MAKE@%$SET_MAKE%g
16216 s%@CC@%$CC%g
16217 s%@CXX_libstdcxx@%$CXX_libstdcxx%g
16218 s%@CXX@%$CXX%g
16219 s%@AS@%$AS%g
16220 s%@AR@%$AR%g
16221 s%@RANLIB@%$RANLIB%g
16222 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
16223 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
16224 s%@MAINT@%$MAINT%g
16225 s%@EXEEXT@%$EXEEXT%g
16226 s%@LN_S@%$LN_S%g
16227 s%@OBJEXT@%$OBJEXT%g
16228 s%@STRIP@%$STRIP%g
16229 s%@LIBTOOL@%$LIBTOOL%g
16230 s%@CXXCPP@%$CXXCPP%g
16231 s%@enable_shared@%$enable_shared%g
16232 s%@enable_static@%$enable_static%g
16233 s%@ifGNUmake@%$ifGNUmake%g
16234 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
16235 s%@CPP@%$CPP%g
16236 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
16237 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
16238 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
16239 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
16240 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
16241 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
16242 s%@libio_la@%$libio_la%g
16243 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
16244 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
16245 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
16246 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
16247 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
16248 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
16249 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
16250 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
16251 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
16252 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
16253 s%@WERROR@%$WERROR%g
16254 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
16255 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
16256 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
16257 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
16258 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
16259 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
16260 s%@xcompiling@%$xcompiling%g
16261 s%@gxx_include_dir@%$gxx_include_dir%g
16262 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
16263 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
16264 s%@GLIBCPP_INCLUDE_DIR@%$GLIBCPP_INCLUDE_DIR%g
16265 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
16266 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
16267 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
16268 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
16269 s%@CSTD_INCLUDES@%$CSTD_INCLUDES%g
16270 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
16271 s%@WARN_FLAGS@%$WARN_FLAGS%g
16273 CEOF
16276 cat >> $CONFIG_STATUS <<\EOF
16278 # Split the substitutions into bite-sized pieces for seds with
16279 # small command number limits, like on Digital OSF/1 and HP-UX.
16280 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16281 ac_file=1 # Number of current file.
16282 ac_beg=1 # First line for current file.
16283 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16284 ac_more_lines=:
16285 ac_sed_cmds=""
16286 while $ac_more_lines; do
16287 if test $ac_beg -gt 1; then
16288 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16289 else
16290 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16292 if test ! -s conftest.s$ac_file; then
16293 ac_more_lines=false
16294 rm -f conftest.s$ac_file
16295 else
16296 if test -z "$ac_sed_cmds"; then
16297 ac_sed_cmds="sed -f conftest.s$ac_file"
16298 else
16299 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16301 ac_file=`expr $ac_file + 1`
16302 ac_beg=$ac_end
16303 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16305 done
16306 if test -z "$ac_sed_cmds"; then
16307 ac_sed_cmds=cat
16311 cat >> $CONFIG_STATUS <<EOF
16313 CONFIG_FILES=\${CONFIG_FILES-"tests_flags mkcheck Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile"}
16315 cat >> $CONFIG_STATUS <<\EOF
16316 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16317 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16318 case "$ac_file" in
16319 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16320 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16321 *) ac_file_in="${ac_file}.in" ;;
16322 esac
16324 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16326 # Remove last slash and all that follows it. Not all systems have dirname.
16327 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16328 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16329 # The file is in a subdirectory.
16330 test ! -d "$ac_dir" && mkdir "$ac_dir"
16331 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16332 # A "../" for each directory in $ac_dir_suffix.
16333 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16334 else
16335 ac_dir_suffix= ac_dots=
16338 case "$ac_given_srcdir" in
16339 .) srcdir=.
16340 if test -z "$ac_dots"; then top_srcdir=.
16341 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16342 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16343 *) # Relative path.
16344 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16345 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16346 esac
16348 case "$ac_given_INSTALL" in
16349 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16350 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16351 esac
16353 echo creating "$ac_file"
16354 rm -f "$ac_file"
16355 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16356 case "$ac_file" in
16357 *Makefile*) ac_comsub="1i\\
16358 # $configure_input" ;;
16359 *) ac_comsub= ;;
16360 esac
16362 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16363 sed -e "$ac_comsub
16364 s%@configure_input@%$configure_input%g
16365 s%@srcdir@%$srcdir%g
16366 s%@top_srcdir@%$top_srcdir%g
16367 s%@INSTALL@%$INSTALL%g
16368 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16369 fi; done
16370 rm -f conftest.s*
16372 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16373 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16375 # ac_d sets the value in "#define NAME VALUE" lines.
16376 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16377 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16378 ac_dC='\3'
16379 ac_dD='%g'
16380 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16381 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16382 ac_uB='\([ ]\)%\1#\2define\3'
16383 ac_uC=' '
16384 ac_uD='\4%g'
16385 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16386 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16387 ac_eB='$%\1#\2define\3'
16388 ac_eC=' '
16389 ac_eD='%g'
16391 if test "${CONFIG_HEADERS+set}" != set; then
16393 cat >> $CONFIG_STATUS <<EOF
16394 CONFIG_HEADERS="config.h"
16396 cat >> $CONFIG_STATUS <<\EOF
16398 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16399 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16400 case "$ac_file" in
16401 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16402 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16403 *) ac_file_in="${ac_file}.in" ;;
16404 esac
16406 echo creating $ac_file
16408 rm -f conftest.frag conftest.in conftest.out
16409 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16410 cat $ac_file_inputs > conftest.in
16414 # Transform confdefs.h into a sed script conftest.vals that substitutes
16415 # the proper values into config.h.in to produce config.h. And first:
16416 # Protect against being on the right side of a sed subst in config.status.
16417 # Protect against being in an unquoted here document in config.status.
16418 rm -f conftest.vals
16419 cat > conftest.hdr <<\EOF
16420 s/[\\&%]/\\&/g
16421 s%[\\$`]%\\&%g
16422 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16423 s%ac_d%ac_u%gp
16424 s%ac_u%ac_e%gp
16426 sed -n -f conftest.hdr confdefs.h > conftest.vals
16427 rm -f conftest.hdr
16429 # This sed command replaces #undef with comments. This is necessary, for
16430 # example, in the case of _POSIX_SOURCE, which is predefined and required
16431 # on some systems where configure will not decide to define it.
16432 cat >> conftest.vals <<\EOF
16433 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16436 # Break up conftest.vals because some shells have a limit on
16437 # the size of here documents, and old seds have small limits too.
16439 rm -f conftest.tail
16440 while :
16442 ac_lines=`grep -c . conftest.vals`
16443 # grep -c gives empty output for an empty file on some AIX systems.
16444 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16445 # Write a limited-size here document to conftest.frag.
16446 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16447 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16448 echo 'CEOF
16449 sed -f conftest.frag conftest.in > conftest.out
16450 rm -f conftest.in
16451 mv conftest.out conftest.in
16452 ' >> $CONFIG_STATUS
16453 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16454 rm -f conftest.vals
16455 mv conftest.tail conftest.vals
16456 done
16457 rm -f conftest.vals
16459 cat >> $CONFIG_STATUS <<\EOF
16460 rm -f conftest.frag conftest.h
16461 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16462 cat conftest.in >> conftest.h
16463 rm -f conftest.in
16464 if cmp -s $ac_file conftest.h 2>/dev/null; then
16465 echo "$ac_file is unchanged"
16466 rm -f conftest.h
16467 else
16468 # Remove last slash and all that follows it. Not all systems have dirname.
16469 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16470 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16471 # The file is in a subdirectory.
16472 test ! -d "$ac_dir" && mkdir "$ac_dir"
16474 rm -f $ac_file
16475 mv conftest.h $ac_file
16477 fi; done
16481 cat >> $CONFIG_STATUS <<EOF
16482 ac_sources="$os_include_dir/bits/os_defines.h $CSTDIO_H $BASIC_FILE_H $BASIC_FILE_CC $CCODECVT_C $CLOCALE_H $CLOCALE_CC config/$THREADH $os_include_dir/bits/ctype_base.h $os_include_dir/bits/ctype_inline.h $os_include_dir/bits/ctype_noninline.h $ATOMICITYH/bits/atomicity.h"
16483 ac_dests="include/bits/os_defines.h include/bits/c++io.h include/bits/basic_file_model.h src/basic_file.cc libio/c_codecvt.c include/bits/c++locale.h src/c++locale.cc include/bits/c++threads.h \
16484 include/bits/ctype_base.h \
16485 include/bits/ctype_inline.h \
16486 include/bits/ctype_noninline.h include/bits/atomicity.h"
16489 cat >> $CONFIG_STATUS <<\EOF
16490 srcdir=$ac_given_srcdir
16491 while test -n "$ac_sources"; do
16492 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16493 set $ac_sources; ac_source=$1; shift; ac_sources=$*
16495 echo "linking $srcdir/$ac_source to $ac_dest"
16497 if test ! -r $srcdir/$ac_source; then
16498 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
16500 rm -f $ac_dest
16502 # Make relative symlinks.
16503 # Remove last slash and all that follows it. Not all systems have dirname.
16504 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
16505 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
16506 # The dest file is in a subdirectory.
16507 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
16508 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
16509 # A "../" for each directory in $ac_dest_dir_suffix.
16510 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
16511 else
16512 ac_dest_dir_suffix= ac_dots=
16515 case "$srcdir" in
16516 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
16517 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
16518 esac
16520 # Make a symlink if possible; otherwise try a hard link.
16521 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16522 ln $srcdir/$ac_source $ac_dest; then :
16523 else
16524 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
16526 done
16528 cat >> $CONFIG_STATUS <<EOF
16530 srcdir=${srcdir}
16531 host=${host}
16532 target=${target}
16533 with_multisubdir=${with_multisubdir}
16534 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16535 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16536 glibcpp_basedir=${glibcpp_basedir}
16537 CC="${CC}"
16538 CXX="${CXX}"
16541 cat >> $CONFIG_STATUS <<\EOF
16542 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
16543 if test -n "$CONFIG_FILES"; then
16544 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
16545 grep '^MULTISUBDIR =' Makefile >> src/Makefile
16546 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
16548 chmod +x tests_flags
16549 chmod +x mkcheck
16551 exit 0
16553 chmod +x $CONFIG_STATUS
16554 rm -fr confdefs* $ac_clean_files
16555 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16559 # Generate bits/c++config.h
16560 # NB: This must be the first generated file as others include it. . .
16561 $srcdir/mkc++config $blddir $srcdir
16563 # Generate bits/std_limits.h and src/limitsMEMBERS.cc
16564 if test ! -f stamp-limits; then
16565 $srcdir/mknumeric_limits $blddir $srcdir $xcompiling
16566 if test ! -f include/bits/std_limits.h; then
16567 echo "mknumeric_limits failed to execute properly: exiting"
16568 exit 1
16569 else
16570 touch stamp-limits
16575 # Sanity checking & User-visible messages.
16576 # Checks down here, otherwise they get scrolled off before
16577 # the user will notice.
16579 # Trying to get more people to read documentation. Possibly remove
16580 # check and warn all the time. There is no "informational" AC_MSG_
16581 # macro, so these are going to be printed even when --quiet/--silent
16582 # is given.
16583 if test ! -f stamp-sanity-warned; then
16584 touch stamp-sanity-warned
16585 echo ""
16586 echo "Please make certain that you read the installation information here:"
16587 echo " faster => ${srcdir}/docs/install.html"
16588 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
16589 echo ""
16590 echo "and the configuration information here:"
16591 echo " faster => ${srcdir}/docs/configopts.html"
16592 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
16593 echo ""
16594 echo "before proceeding with ${_cv_gnu_make_command}."
16595 echo ""