* c-parse.in (yyerror): Const-ification and/or static-ization.
[official-gcc.git] / libstdc++-v3 / configure
blobb2d6756ba794354ba4ef91c1cf941ef6b377790e
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-multilib build hella library versions (default)"
16 ac_help="$ac_help
17 --with-target-subdir=SUBDIR
18 configuring in a subdirectory"
19 ac_help="$ac_help
20 --with-cross-host=HOST configuring with a cross compiler"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --enable-debug extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39 --enable-cstdio enable stdio for target io package.
40 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
42 ac_help="$ac_help
43 --enable-clocale enable model for target locale package.
44 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
46 ac_help="$ac_help
47 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
50 ac_help="$ac_help
51 --enable-long-long turns on 'long long' [default=yes]"
52 ac_help="$ac_help
53 --enable-cheaders construct "C" header files for g++ [default=c_std]"
54 ac_help="$ac_help
55 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
56 [default=none]"
57 ac_help="$ac_help
58 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
59 ac_help="$ac_help
60 --with-gxx-include-dir the installation directory for include files"
61 ac_help="$ac_help
62 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
64 # Initialize some variables set by options.
65 # The variables have the same names as the options, with
66 # dashes changed to underlines.
67 build=NONE
68 cache_file=./config.cache
69 exec_prefix=NONE
70 host=NONE
71 no_create=
72 nonopt=NONE
73 no_recursion=
74 prefix=NONE
75 program_prefix=NONE
76 program_suffix=NONE
77 program_transform_name=s,x,x,
78 silent=
79 site=
80 srcdir=
81 target=NONE
82 verbose=
83 x_includes=NONE
84 x_libraries=NONE
85 bindir='${exec_prefix}/bin'
86 sbindir='${exec_prefix}/sbin'
87 libexecdir='${exec_prefix}/libexec'
88 datadir='${prefix}/share'
89 sysconfdir='${prefix}/etc'
90 sharedstatedir='${prefix}/com'
91 localstatedir='${prefix}/var'
92 libdir='${exec_prefix}/lib'
93 includedir='${prefix}/include'
94 oldincludedir='/usr/include'
95 infodir='${prefix}/info'
96 mandir='${prefix}/man'
98 # Initialize some other variables.
99 subdirs=
100 MFLAGS= MAKEFLAGS=
101 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 ac_max_here_lines=12
105 ac_prev=
106 for ac_option
109 # If the previous option needs an argument, assign it.
110 if test -n "$ac_prev"; then
111 eval "$ac_prev=\$ac_option"
112 ac_prev=
113 continue
116 case "$ac_option" in
117 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
118 *) ac_optarg= ;;
119 esac
121 # Accept the important Cygnus configure options, so we can diagnose typos.
123 case "$ac_option" in
125 -bindir | --bindir | --bindi | --bind | --bin | --bi)
126 ac_prev=bindir ;;
127 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
128 bindir="$ac_optarg" ;;
130 -build | --build | --buil | --bui | --bu)
131 ac_prev=build ;;
132 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
133 build="$ac_optarg" ;;
135 -cache-file | --cache-file | --cache-fil | --cache-fi \
136 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
137 ac_prev=cache_file ;;
138 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
139 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
140 cache_file="$ac_optarg" ;;
142 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
143 ac_prev=datadir ;;
144 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
145 | --da=*)
146 datadir="$ac_optarg" ;;
148 -disable-* | --disable-*)
149 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
155 eval "enable_${ac_feature}=no" ;;
157 -enable-* | --enable-*)
158 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
159 # Reject names that are not valid shell variable names.
160 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
161 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164 case "$ac_option" in
165 *=*) ;;
166 *) ac_optarg=yes ;;
167 esac
168 eval "enable_${ac_feature}='$ac_optarg'" ;;
170 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
171 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
172 | --exec | --exe | --ex)
173 ac_prev=exec_prefix ;;
174 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
175 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
176 | --exec=* | --exe=* | --ex=*)
177 exec_prefix="$ac_optarg" ;;
179 -gas | --gas | --ga | --g)
180 # Obsolete; use --with-gas.
181 with_gas=yes ;;
183 -help | --help | --hel | --he)
184 # Omit some internal or obsolete options to make the list less imposing.
185 # This message is too long to be a string in the A/UX 3.1 sh.
186 cat << EOF
187 Usage: configure [options] [host]
188 Options: [defaults in brackets after descriptions]
189 Configuration:
190 --cache-file=FILE cache test results in FILE
191 --help print this message
192 --no-create do not create output files
193 --quiet, --silent do not print \`checking...' messages
194 --version print the version of autoconf that created configure
195 Directory and file names:
196 --prefix=PREFIX install architecture-independent files in PREFIX
197 [$ac_default_prefix]
198 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
199 [same as prefix]
200 --bindir=DIR user executables in DIR [EPREFIX/bin]
201 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
202 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
203 --datadir=DIR read-only architecture-independent data in DIR
204 [PREFIX/share]
205 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
206 --sharedstatedir=DIR modifiable architecture-independent data in DIR
207 [PREFIX/com]
208 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
209 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
210 --includedir=DIR C header files in DIR [PREFIX/include]
211 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
212 --infodir=DIR info documentation in DIR [PREFIX/info]
213 --mandir=DIR man documentation in DIR [PREFIX/man]
214 --srcdir=DIR find the sources in DIR [configure dir or ..]
215 --program-prefix=PREFIX prepend PREFIX to installed program names
216 --program-suffix=SUFFIX append SUFFIX to installed program names
217 --program-transform-name=PROGRAM
218 run sed PROGRAM on installed program names
220 cat << EOF
221 Host type:
222 --build=BUILD configure for building on BUILD [BUILD=HOST]
223 --host=HOST configure for HOST [guessed]
224 --target=TARGET configure for TARGET [TARGET=HOST]
225 Features and packages:
226 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
227 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
228 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
229 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
230 --x-includes=DIR X include files are in DIR
231 --x-libraries=DIR X library files are in DIR
233 if test -n "$ac_help"; then
234 echo "--enable and --with options recognized:$ac_help"
236 exit 0 ;;
238 -host | --host | --hos | --ho)
239 ac_prev=host ;;
240 -host=* | --host=* | --hos=* | --ho=*)
241 host="$ac_optarg" ;;
243 -includedir | --includedir | --includedi | --included | --include \
244 | --includ | --inclu | --incl | --inc)
245 ac_prev=includedir ;;
246 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247 | --includ=* | --inclu=* | --incl=* | --inc=*)
248 includedir="$ac_optarg" ;;
250 -infodir | --infodir | --infodi | --infod | --info | --inf)
251 ac_prev=infodir ;;
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253 infodir="$ac_optarg" ;;
255 -libdir | --libdir | --libdi | --libd)
256 ac_prev=libdir ;;
257 -libdir=* | --libdir=* | --libdi=* | --libd=*)
258 libdir="$ac_optarg" ;;
260 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261 | --libexe | --libex | --libe)
262 ac_prev=libexecdir ;;
263 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264 | --libexe=* | --libex=* | --libe=*)
265 libexecdir="$ac_optarg" ;;
267 -localstatedir | --localstatedir | --localstatedi | --localstated \
268 | --localstate | --localstat | --localsta | --localst \
269 | --locals | --local | --loca | --loc | --lo)
270 ac_prev=localstatedir ;;
271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274 localstatedir="$ac_optarg" ;;
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277 ac_prev=mandir ;;
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279 mandir="$ac_optarg" ;;
281 -nfp | --nfp | --nf)
282 # Obsolete; use --without-fp.
283 with_fp=no ;;
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
286 | --no-cr | --no-c)
287 no_create=yes ;;
289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
291 no_recursion=yes ;;
293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295 | --oldin | --oldi | --old | --ol | --o)
296 ac_prev=oldincludedir ;;
297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300 oldincludedir="$ac_optarg" ;;
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303 ac_prev=prefix ;;
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305 prefix="$ac_optarg" ;;
307 -program-prefix | --program-prefix | --program-prefi | --program-pref \
308 | --program-pre | --program-pr | --program-p)
309 ac_prev=program_prefix ;;
310 -program-prefix=* | --program-prefix=* | --program-prefi=* \
311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312 program_prefix="$ac_optarg" ;;
314 -program-suffix | --program-suffix | --program-suffi | --program-suff \
315 | --program-suf | --program-su | --program-s)
316 ac_prev=program_suffix ;;
317 -program-suffix=* | --program-suffix=* | --program-suffi=* \
318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319 program_suffix="$ac_optarg" ;;
321 -program-transform-name | --program-transform-name \
322 | --program-transform-nam | --program-transform-na \
323 | --program-transform-n | --program-transform- \
324 | --program-transform | --program-transfor \
325 | --program-transfo | --program-transf \
326 | --program-trans | --program-tran \
327 | --progr-tra | --program-tr | --program-t)
328 ac_prev=program_transform_name ;;
329 -program-transform-name=* | --program-transform-name=* \
330 | --program-transform-nam=* | --program-transform-na=* \
331 | --program-transform-n=* | --program-transform-=* \
332 | --program-transform=* | --program-transfor=* \
333 | --program-transfo=* | --program-transf=* \
334 | --program-trans=* | --program-tran=* \
335 | --progr-tra=* | --program-tr=* | --program-t=*)
336 program_transform_name="$ac_optarg" ;;
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339 | -silent | --silent | --silen | --sile | --sil)
340 silent=yes ;;
342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
343 ac_prev=sbindir ;;
344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345 | --sbi=* | --sb=*)
346 sbindir="$ac_optarg" ;;
348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350 | --sharedst | --shareds | --shared | --share | --shar \
351 | --sha | --sh)
352 ac_prev=sharedstatedir ;;
353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356 | --sha=* | --sh=*)
357 sharedstatedir="$ac_optarg" ;;
359 -site | --site | --sit)
360 ac_prev=site ;;
361 -site=* | --site=* | --sit=*)
362 site="$ac_optarg" ;;
364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365 ac_prev=srcdir ;;
366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
367 srcdir="$ac_optarg" ;;
369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370 | --syscon | --sysco | --sysc | --sys | --sy)
371 ac_prev=sysconfdir ;;
372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374 sysconfdir="$ac_optarg" ;;
376 -target | --target | --targe | --targ | --tar | --ta | --t)
377 ac_prev=target ;;
378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379 target="$ac_optarg" ;;
381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
382 verbose=yes ;;
384 -version | --version | --versio | --versi | --vers)
385 echo "configure generated by autoconf version 2.13"
386 exit 0 ;;
388 -with-* | --with-*)
389 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 case "$ac_option" in
396 *=*) ;;
397 *) ac_optarg=yes ;;
398 esac
399 eval "with_${ac_package}='$ac_optarg'" ;;
401 -without-* | --without-*)
402 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}=no" ;;
410 --x)
411 # Obsolete; use --with-x.
412 with_x=yes ;;
414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
415 | --x-incl | --x-inc | --x-in | --x-i)
416 ac_prev=x_includes ;;
417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
419 x_includes="$ac_optarg" ;;
421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
423 ac_prev=x_libraries ;;
424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
426 x_libraries="$ac_optarg" ;;
428 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
432 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
433 echo "configure: warning: $ac_option: invalid host type" 1>&2
435 if test "x$nonopt" != xNONE; then
436 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
438 nonopt="$ac_option"
441 esac
442 done
444 if test -n "$ac_prev"; then
445 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
448 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
450 # File descriptor usage:
451 # 0 standard input
452 # 1 file creation
453 # 2 errors and warnings
454 # 3 some systems may open it to /dev/tty
455 # 4 used on the Kubota Titan
456 # 6 checking for... messages and results
457 # 5 compiler messages saved in config.log
458 if test "$silent" = yes; then
459 exec 6>/dev/null
460 else
461 exec 6>&1
463 exec 5>./config.log
465 echo "\
466 This file contains any messages produced by compilers while
467 running configure, to aid debugging if configure makes a mistake.
468 " 1>&5
470 # Strip out --no-create and --no-recursion so they do not pile up.
471 # Also quote any args containing shell metacharacters.
472 ac_configure_args=
473 for ac_arg
475 case "$ac_arg" in
476 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
477 | --no-cr | --no-c) ;;
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
480 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
481 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
482 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
483 esac
484 done
486 # NLS nuisances.
487 # Only set these to C if already set. These must not be set unconditionally
488 # because not all systems understand e.g. LANG=C (notably SCO).
489 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
490 # Non-C LC_CTYPE values break the ctype check.
491 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
492 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
493 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
494 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
496 # confdefs.h avoids OS command line length limits that DEFS can exceed.
497 rm -rf conftest* confdefs.h
498 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
499 echo > confdefs.h
501 # A filename unique to this package, relative to the directory that
502 # configure is in, which we can look for to find out if srcdir is correct.
503 ac_unique_file=src/ios.cc
505 # Find the source files, if location was not specified.
506 if test -z "$srcdir"; then
507 ac_srcdir_defaulted=yes
508 # Try the directory containing this script, then its parent.
509 ac_prog=$0
510 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
511 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
512 srcdir=$ac_confdir
513 if test ! -r $srcdir/$ac_unique_file; then
514 srcdir=..
516 else
517 ac_srcdir_defaulted=no
519 if test ! -r $srcdir/$ac_unique_file; then
520 if test "$ac_srcdir_defaulted" = yes; then
521 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
522 else
523 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
526 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
528 # Prefer explicitly selected file to automatically selected ones.
529 if test -z "$CONFIG_SITE"; then
530 if test "x$prefix" != xNONE; then
531 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
532 else
533 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
536 for ac_site_file in $CONFIG_SITE; do
537 if test -r "$ac_site_file"; then
538 echo "loading site script $ac_site_file"
539 . "$ac_site_file"
541 done
543 if test -r "$cache_file"; then
544 echo "loading cache $cache_file"
545 . $cache_file
546 else
547 echo "creating cache $cache_file"
548 > $cache_file
551 ac_ext=c
552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
553 ac_cpp='$CPP $CPPFLAGS'
554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
556 cross_compiling=$ac_cv_prog_cc_cross
558 ac_exeext=
559 ac_objext=o
560 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
561 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
562 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
563 ac_n= ac_c='
564 ' ac_t=' '
565 else
566 ac_n=-n ac_c= ac_t=
568 else
569 ac_n= ac_c='\c' ac_t=
574 PACKAGE=libstdc++
576 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
577 release_VERSION=3.1.0
579 # For libtool versioning info, format is CURRENT:REVISION:AGE
580 libtool_VERSION=4:0:0
583 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
584 # AC 2.50 sets target_alias iff the user specified --target, but we use it
585 # everywhere, so we set it here just to be sure.
586 ac_aux_dir=
587 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
588 if test -f $ac_dir/install-sh; then
589 ac_aux_dir=$ac_dir
590 ac_install_sh="$ac_aux_dir/install-sh -c"
591 break
592 elif test -f $ac_dir/install.sh; then
593 ac_aux_dir=$ac_dir
594 ac_install_sh="$ac_aux_dir/install.sh -c"
595 break
597 done
598 if test -z "$ac_aux_dir"; then
599 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
601 ac_config_guess=$ac_aux_dir/config.guess
602 ac_config_sub=$ac_aux_dir/config.sub
603 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
606 # Do some error checking and defaulting for the host and target type.
607 # The inputs are:
608 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
610 # The rules are:
611 # 1. You are not allowed to specify --host, --target, and nonopt at the
612 # same time.
613 # 2. Host defaults to nonopt.
614 # 3. If nonopt is not specified, then host defaults to the current host,
615 # as determined by config.guess.
616 # 4. Target and build default to nonopt.
617 # 5. If nonopt is not specified, then target and build default to host.
619 # The aliases save the names the user supplied, while $host etc.
620 # will get canonicalized.
621 case $host---$target---$nonopt in
622 NONE---*---* | *---NONE---* | *---*---NONE) ;;
623 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
624 esac
627 # Make sure we can run config.sub.
628 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
629 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
632 echo $ac_n "checking host system type""... $ac_c" 1>&6
633 echo "configure:634: checking host system type" >&5
635 host_alias=$host
636 case "$host_alias" in
637 NONE)
638 case $nonopt in
639 NONE)
640 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
641 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
642 fi ;;
643 *) host_alias=$nonopt ;;
644 esac ;;
645 esac
647 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
648 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
649 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
650 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
651 echo "$ac_t""$host" 1>&6
653 echo $ac_n "checking target system type""... $ac_c" 1>&6
654 echo "configure:655: checking target system type" >&5
656 target_alias=$target
657 case "$target_alias" in
658 NONE)
659 case $nonopt in
660 NONE) target_alias=$host_alias ;;
661 *) target_alias=$nonopt ;;
662 esac ;;
663 esac
665 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
666 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
667 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
668 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
669 echo "$ac_t""$target" 1>&6
671 echo $ac_n "checking build system type""... $ac_c" 1>&6
672 echo "configure:673: checking build system type" >&5
674 build_alias=$build
675 case "$build_alias" in
676 NONE)
677 case $nonopt in
678 NONE) build_alias=$host_alias ;;
679 *) build_alias=$nonopt ;;
680 esac ;;
681 esac
683 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
684 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
685 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
686 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
687 echo "$ac_t""$build" 1>&6
689 test "$host_alias" != "$target_alias" &&
690 test "$program_prefix$program_suffix$program_transform_name" = \
691 NONENONEs,x,x, &&
692 program_prefix=${target_alias}-
694 target_alias=${target_alias-$target}
697 # Find a good install program. We prefer a C program (faster),
698 # so one script is as good as another. But avoid the broken or
699 # incompatible versions:
700 # SysV /etc/install, /usr/sbin/install
701 # SunOS /usr/etc/install
702 # IRIX /sbin/install
703 # AIX /bin/install
704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
707 # ./install, which can be erroneously created by make from ./install.sh.
708 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
709 echo "configure:710: checking for a BSD compatible install" >&5
710 if test -z "$INSTALL"; then
711 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
712 echo $ac_n "(cached) $ac_c" 1>&6
713 else
714 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
715 for ac_dir in $PATH; do
716 # Account for people who put trailing slashes in PATH elements.
717 case "$ac_dir/" in
718 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
720 # OSF1 and SCO ODT 3.0 have their own names for install.
721 # Don't use installbsd from OSF since it installs stuff as root
722 # by default.
723 for ac_prog in ginstall scoinst install; do
724 if test -f $ac_dir/$ac_prog; then
725 if test $ac_prog = install &&
726 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
727 # AIX install. It has an incompatible calling convention.
729 else
730 ac_cv_path_install="$ac_dir/$ac_prog -c"
731 break 2
734 done
736 esac
737 done
738 IFS="$ac_save_IFS"
741 if test "${ac_cv_path_install+set}" = set; then
742 INSTALL="$ac_cv_path_install"
743 else
744 # As a last resort, use the slow shell script. We don't cache a
745 # path for INSTALL within a source directory, because that will
746 # break other packages using the cache if that directory is
747 # removed, or if the path is relative.
748 INSTALL="$ac_install_sh"
751 echo "$ac_t""$INSTALL" 1>&6
753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
754 # It thinks the first close brace ends the variable substitution.
755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
759 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
761 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
762 echo "configure:763: checking whether build environment is sane" >&5
763 # Just in case
764 sleep 1
765 echo timestamp > conftestfile
766 # Do `set' in a subshell so we don't clobber the current shell's
767 # arguments. Must try -L first in case configure is actually a
768 # symlink; some systems play weird games with the mod time of symlinks
769 # (eg FreeBSD returns the mod time of the symlink's containing
770 # directory).
771 if (
772 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
773 if test "$*" = "X"; then
774 # -L didn't work.
775 set X `ls -t $srcdir/configure conftestfile`
777 if test "$*" != "X $srcdir/configure conftestfile" \
778 && test "$*" != "X conftestfile $srcdir/configure"; then
780 # If neither matched, then we have a broken ls. This can happen
781 # if, for instance, CONFIG_SHELL is bash and it inherits a
782 # broken ls alias from the environment. This has actually
783 # happened. Such a system could not be considered "sane".
784 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
785 alias in your environment" 1>&2; exit 1; }
788 test "$2" = conftestfile
790 then
791 # Ok.
793 else
794 { echo "configure: error: newly created file is older than distributed files!
795 Check your system clock" 1>&2; exit 1; }
797 rm -f conftest*
798 echo "$ac_t""yes" 1>&6
799 if test "$program_transform_name" = s,x,x,; then
800 program_transform_name=
801 else
802 # Double any \ or $. echo might interpret backslashes.
803 cat <<\EOF_SED > conftestsed
804 s,\\,\\\\,g; s,\$,$$,g
805 EOF_SED
806 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
807 rm -f conftestsed
809 test "$program_prefix" != NONE &&
810 program_transform_name="s,^,${program_prefix},; $program_transform_name"
811 # Use a double $ so make ignores it.
812 test "$program_suffix" != NONE &&
813 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
815 # sed with no file args requires a program.
816 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
818 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
819 echo "configure:820: checking whether ${MAKE-make} sets \${MAKE}" >&5
820 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
821 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
823 else
824 cat > conftestmake <<\EOF
825 all:
826 @echo 'ac_maketemp="${MAKE}"'
828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
829 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
830 if test -n "$ac_maketemp"; then
831 eval ac_cv_prog_make_${ac_make}_set=yes
832 else
833 eval ac_cv_prog_make_${ac_make}_set=no
835 rm -f conftestmake
837 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
838 echo "$ac_t""yes" 1>&6
839 SET_MAKE=
840 else
841 echo "$ac_t""no" 1>&6
842 SET_MAKE="MAKE=${MAKE-make}"
846 PACKAGE=$PACKAGE
848 VERSION=$release_VERSION
850 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
851 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
853 cat >> confdefs.h <<EOF
854 #define PACKAGE "$PACKAGE"
857 cat >> confdefs.h <<EOF
858 #define VERSION "$VERSION"
863 missing_dir=`cd $ac_aux_dir && pwd`
864 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
865 echo "configure:866: checking for working aclocal" >&5
866 # Run test in a subshell; some versions of sh will print an error if
867 # an executable is not found, even if stderr is redirected.
868 # Redirect stdin to placate older versions of autoconf. Sigh.
869 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
870 ACLOCAL=aclocal
871 echo "$ac_t""found" 1>&6
872 else
873 ACLOCAL="$missing_dir/missing aclocal"
874 echo "$ac_t""missing" 1>&6
877 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
878 echo "configure:879: checking for working autoconf" >&5
879 # Run test in a subshell; some versions of sh will print an error if
880 # an executable is not found, even if stderr is redirected.
881 # Redirect stdin to placate older versions of autoconf. Sigh.
882 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
883 AUTOCONF=autoconf
884 echo "$ac_t""found" 1>&6
885 else
886 AUTOCONF="$missing_dir/missing autoconf"
887 echo "$ac_t""missing" 1>&6
890 echo $ac_n "checking for working automake""... $ac_c" 1>&6
891 echo "configure:892: checking for working automake" >&5
892 # Run test in a subshell; some versions of sh will print an error if
893 # an executable is not found, even if stderr is redirected.
894 # Redirect stdin to placate older versions of autoconf. Sigh.
895 if (automake --version) < /dev/null > /dev/null 2>&1; then
896 AUTOMAKE=automake
897 echo "$ac_t""found" 1>&6
898 else
899 AUTOMAKE="$missing_dir/missing automake"
900 echo "$ac_t""missing" 1>&6
903 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
904 echo "configure:905: checking for working autoheader" >&5
905 # Run test in a subshell; some versions of sh will print an error if
906 # an executable is not found, even if stderr is redirected.
907 # Redirect stdin to placate older versions of autoconf. Sigh.
908 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
909 AUTOHEADER=autoheader
910 echo "$ac_t""found" 1>&6
911 else
912 AUTOHEADER="$missing_dir/missing autoheader"
913 echo "$ac_t""missing" 1>&6
916 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
917 echo "configure:918: checking for working makeinfo" >&5
918 # Run test in a subshell; some versions of sh will print an error if
919 # an executable is not found, even if stderr is redirected.
920 # Redirect stdin to placate older versions of autoconf. Sigh.
921 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
922 MAKEINFO=makeinfo
923 echo "$ac_t""found" 1>&6
924 else
925 MAKEINFO="$missing_dir/missing makeinfo"
926 echo "$ac_t""missing" 1>&6
934 # Runs configure.host and configure.target, as well as finds CC, CXX
935 # and assorted other critical bits. Have to run this before the
936 # GLIBCPP_ENABLE_* macros below.
937 if test $host != $build; then
938 ac_tool_prefix=${host_alias}-
939 else
940 ac_tool_prefix=
943 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
944 echo "configure:945: checking for Cygwin environment" >&5
945 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
947 else
948 cat > conftest.$ac_ext <<EOF
949 #line 950 "configure"
950 #include "confdefs.h"
952 int main() {
954 #ifndef __CYGWIN__
955 #define __CYGWIN__ __CYGWIN32__
956 #endif
957 return __CYGWIN__;
958 ; return 0; }
960 if { (eval echo configure:961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
961 rm -rf conftest*
962 ac_cv_cygwin=yes
963 else
964 echo "configure: failed program was:" >&5
965 cat conftest.$ac_ext >&5
966 rm -rf conftest*
967 ac_cv_cygwin=no
969 rm -f conftest*
970 rm -f conftest*
973 echo "$ac_t""$ac_cv_cygwin" 1>&6
974 CYGWIN=
975 test "$ac_cv_cygwin" = yes && CYGWIN=yes
976 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
977 echo "configure:978: checking for mingw32 environment" >&5
978 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
979 echo $ac_n "(cached) $ac_c" 1>&6
980 else
981 cat > conftest.$ac_ext <<EOF
982 #line 983 "configure"
983 #include "confdefs.h"
985 int main() {
986 return __MINGW32__;
987 ; return 0; }
989 if { (eval echo configure:990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
990 rm -rf conftest*
991 ac_cv_mingw32=yes
992 else
993 echo "configure: failed program was:" >&5
994 cat conftest.$ac_ext >&5
995 rm -rf conftest*
996 ac_cv_mingw32=no
998 rm -f conftest*
999 rm -f conftest*
1002 echo "$ac_t""$ac_cv_mingw32" 1>&6
1003 MINGW32=
1004 test "$ac_cv_mingw32" = yes && MINGW32=yes
1006 # Check whether --enable-multilib or --disable-multilib was given.
1007 if test "${enable_multilib+set}" = set; then
1008 enableval="$enable_multilib"
1009 case "${enableval}" in
1010 yes) multilib=yes ;;
1011 no) multilib=no ;;
1012 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1013 esac
1014 else
1015 multilib=yes
1018 # When building with srcdir == objdir, links to the source files will
1019 # be created in directories within the target_subdir. We have to
1020 # adjust toplevel_srcdir accordingly, so that configure finds
1021 # install-sh and other auxiliary files that live in the top-level
1022 # source directory.
1023 if test "${srcdir}" = "."; then
1024 if test -z "${with_target_subdir}"; then
1025 toprel=".."
1026 else
1027 if test "${with_target_subdir}" != "."; then
1028 toprel="${with_multisrctop}../.."
1029 else
1030 toprel="${with_multisrctop}.."
1033 else
1034 toprel=".."
1036 ac_aux_dir=
1037 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1038 if test -f $ac_dir/install-sh; then
1039 ac_aux_dir=$ac_dir
1040 ac_install_sh="$ac_aux_dir/install-sh -c"
1041 break
1042 elif test -f $ac_dir/install.sh; then
1043 ac_aux_dir=$ac_dir
1044 ac_install_sh="$ac_aux_dir/install.sh -c"
1045 break
1047 done
1048 if test -z "$ac_aux_dir"; then
1049 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1051 ac_config_guess=$ac_aux_dir/config.guess
1052 ac_config_sub=$ac_aux_dir/config.sub
1053 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1055 toplevel_srcdir=\${top_srcdir}/$toprel
1058 # Export build and source directories.
1059 # These need to be absolute paths, yet at the same time need to
1060 # canonicalize only relative paths, because then amd will not unmount
1061 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1062 glibcpp_builddir=`pwd`
1063 case $srcdir in
1064 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1065 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1066 esac
1072 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.50+, can also
1073 # be 'cp -p' if linking isn't available.
1074 #ac_cv_prog_LN_S='cp -p'
1075 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1076 echo "configure:1077: checking whether ln -s works" >&5
1077 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1079 else
1080 rm -f conftestdata
1081 if ln -s X conftestdata 2>/dev/null
1082 then
1083 rm -f conftestdata
1084 ac_cv_prog_LN_S="ln -s"
1085 else
1086 ac_cv_prog_LN_S=ln
1089 LN_S="$ac_cv_prog_LN_S"
1090 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1091 echo "$ac_t""yes" 1>&6
1092 else
1093 echo "$ac_t""no" 1>&6
1097 # We use these options to decide which functions to include.
1098 # Check whether --with-target-subdir or --without-target-subdir was given.
1099 if test "${with_target_subdir+set}" = set; then
1100 withval="$with_target_subdir"
1104 # Check whether --with-cross-host or --without-cross-host was given.
1105 if test "${with_cross_host+set}" = set; then
1106 withval="$with_cross_host"
1111 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1114 # Never versions of autoconf add an underscore to these functions.
1115 # Prevent future problems ...
1121 # AC_PROG_CC
1123 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1124 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1125 # are probably using a cross compiler, which will not be able to fully
1126 # link an executable. This should really be fixed in autoconf
1127 # itself.
1132 # Extract the first word of "gcc", so it can be a program name with args.
1133 set dummy gcc; ac_word=$2
1134 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1135 echo "configure:1136: checking for $ac_word" >&5
1136 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1137 echo $ac_n "(cached) $ac_c" 1>&6
1138 else
1139 if test -n "$CC"; then
1140 ac_cv_prog_CC="$CC" # Let the user override the test.
1141 else
1142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1143 ac_dummy="$PATH"
1144 for ac_dir in $ac_dummy; do
1145 test -z "$ac_dir" && ac_dir=.
1146 if test -f $ac_dir/$ac_word; then
1147 ac_cv_prog_CC="gcc"
1148 break
1150 done
1151 IFS="$ac_save_ifs"
1154 CC="$ac_cv_prog_CC"
1155 if test -n "$CC"; then
1156 echo "$ac_t""$CC" 1>&6
1157 else
1158 echo "$ac_t""no" 1>&6
1161 if test -z "$CC"; then
1162 # Extract the first word of "cc", so it can be a program name with args.
1163 set dummy cc; ac_word=$2
1164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1165 echo "configure:1166: checking for $ac_word" >&5
1166 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1168 else
1169 if test -n "$CC"; then
1170 ac_cv_prog_CC="$CC" # Let the user override the test.
1171 else
1172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1173 ac_prog_rejected=no
1174 ac_dummy="$PATH"
1175 for ac_dir in $ac_dummy; do
1176 test -z "$ac_dir" && ac_dir=.
1177 if test -f $ac_dir/$ac_word; then
1178 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1179 ac_prog_rejected=yes
1180 continue
1182 ac_cv_prog_CC="cc"
1183 break
1185 done
1186 IFS="$ac_save_ifs"
1187 if test $ac_prog_rejected = yes; then
1188 # We found a bogon in the path, so make sure we never use it.
1189 set dummy $ac_cv_prog_CC
1190 shift
1191 if test $# -gt 0; then
1192 # We chose a different compiler from the bogus one.
1193 # However, it has the same basename, so the bogon will be chosen
1194 # first if we set CC to just the basename; use the full file name.
1195 shift
1196 set dummy "$ac_dir/$ac_word" "$@"
1197 shift
1198 ac_cv_prog_CC="$@"
1203 CC="$ac_cv_prog_CC"
1204 if test -n "$CC"; then
1205 echo "$ac_t""$CC" 1>&6
1206 else
1207 echo "$ac_t""no" 1>&6
1210 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1213 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1214 echo "configure:1215: checking whether we are using GNU C" >&5
1215 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218 cat > conftest.c <<EOF
1219 #ifdef __GNUC__
1220 yes;
1221 #endif
1223 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1224 ac_cv_prog_gcc=yes
1225 else
1226 ac_cv_prog_gcc=no
1230 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1232 if test $ac_cv_prog_gcc = yes; then
1233 GCC=yes
1234 ac_test_CFLAGS="${CFLAGS+set}"
1235 ac_save_CFLAGS="$CFLAGS"
1236 CFLAGS=
1237 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1238 echo "configure:1239: checking whether ${CC-cc} accepts -g" >&5
1239 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6
1241 else
1242 echo 'void f(){}' > conftest.c
1243 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1244 ac_cv_prog_cc_g=yes
1245 else
1246 ac_cv_prog_cc_g=no
1248 rm -f conftest*
1252 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1253 if test "$ac_test_CFLAGS" = set; then
1254 CFLAGS="$ac_save_CFLAGS"
1255 elif test $ac_cv_prog_cc_g = yes; then
1256 CFLAGS="-g -O2"
1257 else
1258 CFLAGS="-O2"
1260 else
1261 GCC=
1262 test "${CFLAGS+set}" = set || CFLAGS="-g"
1266 # Can't just call these here as g++ requires libstc++ to be built....
1267 # AC_PROG_CXX
1269 # Likewise for AC_PROG_CXX.
1273 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1274 # flags that come in CXX while configuring libstdc++. They're different
1275 # from those used for all other target libraries. If CXX is set in
1276 # the environment, respect that here.
1277 glibcpp_CXX=$CXX
1278 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1280 # Extract the first word of "$ac_prog", so it can be a program name with args.
1281 set dummy $ac_prog; ac_word=$2
1282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1283 echo "configure:1284: checking for $ac_word" >&5
1284 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1286 else
1287 if test -n "$glibcpp_CXX"; then
1288 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1289 else
1290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1291 ac_dummy="$PATH"
1292 for ac_dir in $ac_dummy; do
1293 test -z "$ac_dir" && ac_dir=.
1294 if test -f $ac_dir/$ac_word; then
1295 ac_cv_prog_glibcpp_CXX="$ac_prog"
1296 break
1298 done
1299 IFS="$ac_save_ifs"
1302 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1303 if test -n "$glibcpp_CXX"; then
1304 echo "$ac_t""$glibcpp_CXX" 1>&6
1305 else
1306 echo "$ac_t""no" 1>&6
1309 test -n "$glibcpp_CXX" && break
1310 done
1311 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1314 CXX=$glibcpp_CXX
1315 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1317 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1318 echo "configure:1319: checking whether we are using GNU C++" >&5
1319 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1321 else
1322 cat > conftest.C <<EOF
1323 #ifdef __GNUC__
1324 yes;
1325 #endif
1327 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1328 ac_cv_prog_gxx=yes
1329 else
1330 ac_cv_prog_gxx=no
1334 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1336 if test $ac_cv_prog_gxx = yes; then
1337 GXX=yes
1338 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1339 ac_save_CXXFLAGS="$CXXFLAGS"
1340 CXXFLAGS=
1341 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1342 echo "configure:1343: checking whether ${CXX-g++} accepts -g" >&5
1343 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1345 else
1346 echo 'void f(){}' > conftest.cc
1347 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1348 ac_cv_prog_cxx_g=yes
1349 else
1350 ac_cv_prog_cxx_g=no
1352 rm -f conftest*
1356 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1357 if test "$ac_test_CXXFLAGS" = set; then
1358 CXXFLAGS="$ac_save_CXXFLAGS"
1359 elif test $ac_cv_prog_cxx_g = yes; then
1360 CXXFLAGS="-g -O2"
1361 else
1362 CXXFLAGS="-O2"
1364 else
1365 GXX=
1366 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1370 # For some reason, gettext needs this.
1371 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1372 echo "configure:1373: checking for POSIXized ISC" >&5
1373 if test -d /etc/conf/kconfig.d &&
1374 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1375 then
1376 echo "$ac_t""yes" 1>&6
1377 ISC=yes # If later tests want to check for ISC.
1378 cat >> confdefs.h <<\EOF
1379 #define _POSIX_SOURCE 1
1382 if test "$GCC" = yes; then
1383 CC="$CC -posix"
1384 else
1385 CC="$CC -Xp"
1387 else
1388 echo "$ac_t""no" 1>&6
1389 ISC=
1393 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1394 set dummy ${ac_tool_prefix}as; ac_word=$2
1395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1396 echo "configure:1397: checking for $ac_word" >&5
1397 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1399 else
1400 if test -n "$AS"; then
1401 ac_cv_prog_AS="$AS" # Let the user override the test.
1402 else
1403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1404 ac_dummy="$PATH"
1405 for ac_dir in $ac_dummy; do
1406 test -z "$ac_dir" && ac_dir=.
1407 if test -f $ac_dir/$ac_word; then
1408 ac_cv_prog_AS="${ac_tool_prefix}as"
1409 break
1411 done
1412 IFS="$ac_save_ifs"
1413 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1416 AS="$ac_cv_prog_AS"
1417 if test -n "$AS"; then
1418 echo "$ac_t""$AS" 1>&6
1419 else
1420 echo "$ac_t""no" 1>&6
1425 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1426 set dummy ${ac_tool_prefix}ar; ac_word=$2
1427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1428 echo "configure:1429: checking for $ac_word" >&5
1429 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1431 else
1432 if test -n "$AR"; then
1433 ac_cv_prog_AR="$AR" # Let the user override the test.
1434 else
1435 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1436 ac_dummy="$PATH"
1437 for ac_dir in $ac_dummy; do
1438 test -z "$ac_dir" && ac_dir=.
1439 if test -f $ac_dir/$ac_word; then
1440 ac_cv_prog_AR="${ac_tool_prefix}ar"
1441 break
1443 done
1444 IFS="$ac_save_ifs"
1445 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1448 AR="$ac_cv_prog_AR"
1449 if test -n "$AR"; then
1450 echo "$ac_t""$AR" 1>&6
1451 else
1452 echo "$ac_t""no" 1>&6
1457 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1458 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1460 echo "configure:1461: checking for $ac_word" >&5
1461 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1463 else
1464 if test -n "$RANLIB"; then
1465 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1466 else
1467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1468 ac_dummy="$PATH"
1469 for ac_dir in $ac_dummy; do
1470 test -z "$ac_dir" && ac_dir=.
1471 if test -f $ac_dir/$ac_word; then
1472 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1473 break
1475 done
1476 IFS="$ac_save_ifs"
1479 RANLIB="$ac_cv_prog_RANLIB"
1480 if test -n "$RANLIB"; then
1481 echo "$ac_t""$RANLIB" 1>&6
1482 else
1483 echo "$ac_t""no" 1>&6
1487 if test -z "$ac_cv_prog_RANLIB"; then
1488 if test -n "$ac_tool_prefix"; then
1489 # Extract the first word of "ranlib", so it can be a program name with args.
1490 set dummy ranlib; ac_word=$2
1491 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1492 echo "configure:1493: checking for $ac_word" >&5
1493 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1495 else
1496 if test -n "$RANLIB"; then
1497 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1498 else
1499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1500 ac_dummy="$PATH"
1501 for ac_dir in $ac_dummy; do
1502 test -z "$ac_dir" && ac_dir=.
1503 if test -f $ac_dir/$ac_word; then
1504 ac_cv_prog_RANLIB="ranlib"
1505 break
1507 done
1508 IFS="$ac_save_ifs"
1509 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1512 RANLIB="$ac_cv_prog_RANLIB"
1513 if test -n "$RANLIB"; then
1514 echo "$ac_t""$RANLIB" 1>&6
1515 else
1516 echo "$ac_t""no" 1>&6
1519 else
1520 RANLIB="ranlib-not-found-in-path-error"
1524 # Find a good install program. We prefer a C program (faster),
1525 # so one script is as good as another. But avoid the broken or
1526 # incompatible versions:
1527 # SysV /etc/install, /usr/sbin/install
1528 # SunOS /usr/etc/install
1529 # IRIX /sbin/install
1530 # AIX /bin/install
1531 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1532 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1533 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1534 # ./install, which can be erroneously created by make from ./install.sh.
1535 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1536 echo "configure:1537: checking for a BSD compatible install" >&5
1537 if test -z "$INSTALL"; then
1538 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1540 else
1541 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1542 for ac_dir in $PATH; do
1543 # Account for people who put trailing slashes in PATH elements.
1544 case "$ac_dir/" in
1545 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1547 # OSF1 and SCO ODT 3.0 have their own names for install.
1548 # Don't use installbsd from OSF since it installs stuff as root
1549 # by default.
1550 for ac_prog in ginstall scoinst install; do
1551 if test -f $ac_dir/$ac_prog; then
1552 if test $ac_prog = install &&
1553 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1554 # AIX install. It has an incompatible calling convention.
1556 else
1557 ac_cv_path_install="$ac_dir/$ac_prog -c"
1558 break 2
1561 done
1563 esac
1564 done
1565 IFS="$ac_save_IFS"
1568 if test "${ac_cv_path_install+set}" = set; then
1569 INSTALL="$ac_cv_path_install"
1570 else
1571 # As a last resort, use the slow shell script. We don't cache a
1572 # path for INSTALL within a source directory, because that will
1573 # break other packages using the cache if that directory is
1574 # removed, or if the path is relative.
1575 INSTALL="$ac_install_sh"
1578 echo "$ac_t""$INSTALL" 1>&6
1580 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1581 # It thinks the first close brace ends the variable substitution.
1582 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1584 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1586 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1589 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1590 echo "configure:1591: checking whether to enable maintainer-specific portions of Makefiles" >&5
1591 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1592 if test "${enable_maintainer_mode+set}" = set; then
1593 enableval="$enable_maintainer_mode"
1594 USE_MAINTAINER_MODE=$enableval
1595 else
1596 USE_MAINTAINER_MODE=no
1599 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1602 if test $USE_MAINTAINER_MODE = yes; then
1603 MAINTAINER_MODE_TRUE=
1604 MAINTAINER_MODE_FALSE='#'
1605 else
1606 MAINTAINER_MODE_TRUE='#'
1607 MAINTAINER_MODE_FALSE=
1609 MAINT=$MAINTAINER_MODE_TRUE
1613 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1614 # at least currently, we never actually build a program, so we never
1615 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1616 # fails, because we are probably configuring with a cross compiler
1617 # which cant create executables. So we include AC_EXEEXT to keep
1618 # automake happy, but we dont execute it, since we dont care about
1619 # the result.
1620 if false; then
1621 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1622 # to nothing, so nothing would remain between `then' and `fi' if it
1623 # were not for the `:' below.
1627 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1628 echo "configure:1629: checking for executable suffix" >&5
1629 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1631 else
1632 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1633 ac_cv_exeext=.exe
1634 else
1635 rm -f conftest*
1636 echo 'int main () { return 0; }' > conftest.$ac_ext
1637 ac_cv_exeext=
1638 if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1639 for file in conftest.*; do
1640 case $file in
1641 *.c | *.o | *.obj) ;;
1642 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1643 esac
1644 done
1645 else
1646 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1648 rm -f conftest*
1649 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1653 EXEEXT=""
1654 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1655 echo "$ac_t""${ac_cv_exeext}" 1>&6
1656 ac_exeext=$EXEEXT
1660 . ${glibcpp_basedir}/configure.host
1662 case ${glibcpp_basedir} in
1663 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1664 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1665 esac
1667 # This does for the target what configure.host does for the host. In
1668 # addition to possibly modifying the same flags, it also sets up symlinks.
1670 . ${glibcpp_basedir}/configure.target
1671 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1672 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1679 # Check whether --enable-shared or --disable-shared was given.
1680 if test "${enable_shared+set}" = set; then
1681 enableval="$enable_shared"
1682 p=${PACKAGE-default}
1683 case $enableval in
1684 yes) enable_shared=yes ;;
1685 no) enable_shared=no ;;
1687 enable_shared=no
1688 # Look at the argument we got. We use all the common list separators.
1689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1690 for pkg in $enableval; do
1691 if test "X$pkg" = "X$p"; then
1692 enable_shared=yes
1694 done
1695 IFS="$ac_save_ifs"
1697 esac
1698 else
1699 enable_shared=yes
1702 # Check whether --enable-static or --disable-static was given.
1703 if test "${enable_static+set}" = set; then
1704 enableval="$enable_static"
1705 p=${PACKAGE-default}
1706 case $enableval in
1707 yes) enable_static=yes ;;
1708 no) enable_static=no ;;
1710 enable_static=no
1711 # Look at the argument we got. We use all the common list separators.
1712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1713 for pkg in $enableval; do
1714 if test "X$pkg" = "X$p"; then
1715 enable_static=yes
1717 done
1718 IFS="$ac_save_ifs"
1720 esac
1721 else
1722 enable_static=yes
1725 # Check whether --enable-fast-install or --disable-fast-install was given.
1726 if test "${enable_fast_install+set}" = set; then
1727 enableval="$enable_fast_install"
1728 p=${PACKAGE-default}
1729 case $enableval in
1730 yes) enable_fast_install=yes ;;
1731 no) enable_fast_install=no ;;
1733 enable_fast_install=no
1734 # Look at the argument we got. We use all the common list separators.
1735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1736 for pkg in $enableval; do
1737 if test "X$pkg" = "X$p"; then
1738 enable_fast_install=yes
1740 done
1741 IFS="$ac_save_ifs"
1743 esac
1744 else
1745 enable_fast_install=yes
1748 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1749 if test "${with_gnu_ld+set}" = set; then
1750 withval="$with_gnu_ld"
1751 test "$withval" = no || with_gnu_ld=yes
1752 else
1753 with_gnu_ld=no
1756 ac_prog=ld
1757 if test "$GCC" = yes; then
1758 # Check if gcc -print-prog-name=ld gives a path.
1759 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1760 echo "configure:1761: checking for ld used by GCC" >&5
1761 case $host in
1762 *-*-mingw*)
1763 # gcc leaves a trailing carriage return which upsets mingw
1764 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1766 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1767 esac
1768 case $ac_prog in
1769 # Accept absolute paths.
1770 [\\/]* | [A-Za-z]:[\\/]*)
1771 re_direlt='/[^/][^/]*/\.\./'
1772 # Canonicalize the path of ld
1773 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1774 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1775 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1776 done
1777 test -z "$LD" && LD="$ac_prog"
1780 # If it fails, then pretend we aren't using GCC.
1781 ac_prog=ld
1784 # If it is relative, then search for the first ld in PATH.
1785 with_gnu_ld=unknown
1787 esac
1788 elif test "$with_gnu_ld" = yes; then
1789 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1790 echo "configure:1791: checking for GNU ld" >&5
1791 else
1792 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1793 echo "configure:1794: checking for non-GNU ld" >&5
1795 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1797 else
1798 if test -z "$LD"; then
1799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1800 for ac_dir in $PATH; do
1801 test -z "$ac_dir" && ac_dir=.
1802 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1803 lt_cv_path_LD="$ac_dir/$ac_prog"
1804 # Check to see if the program is GNU ld. I'd rather use --version,
1805 # but apparently some GNU ld's only accept -v.
1806 # Break only if it was the GNU/non-GNU ld that we prefer.
1807 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1808 test "$with_gnu_ld" != no && break
1809 else
1810 test "$with_gnu_ld" != yes && break
1813 done
1814 IFS="$ac_save_ifs"
1815 else
1816 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1820 LD="$lt_cv_path_LD"
1821 if test -n "$LD"; then
1822 echo "$ac_t""$LD" 1>&6
1823 else
1824 echo "$ac_t""no" 1>&6
1826 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1827 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1828 echo "configure:1829: checking if the linker ($LD) is GNU ld" >&5
1829 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1831 else
1832 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1833 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1834 lt_cv_prog_gnu_ld=yes
1835 else
1836 lt_cv_prog_gnu_ld=no
1840 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1841 with_gnu_ld=$lt_cv_prog_gnu_ld
1844 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1845 echo "configure:1846: checking for $LD option to reload object files" >&5
1846 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1848 else
1849 lt_cv_ld_reload_flag='-r'
1852 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1853 reload_flag=$lt_cv_ld_reload_flag
1854 test -n "$reload_flag" && reload_flag=" $reload_flag"
1856 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1857 echo "configure:1858: checking for BSD-compatible nm" >&5
1858 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1860 else
1861 if test -n "$NM"; then
1862 # Let the user override the test.
1863 lt_cv_path_NM="$NM"
1864 else
1865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1866 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1867 test -z "$ac_dir" && ac_dir=.
1868 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1869 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1870 # Check to see if the nm accepts a BSD-compat flag.
1871 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1872 # nm: unknown option "B" ignored
1873 # Tru64's nm complains that /dev/null is an invalid object file
1874 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1875 lt_cv_path_NM="$tmp_nm -B"
1876 break
1877 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1878 lt_cv_path_NM="$tmp_nm -p"
1879 break
1880 else
1881 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1882 continue # so that we can try to find one that supports BSD flags
1885 done
1886 IFS="$ac_save_ifs"
1887 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1891 NM="$lt_cv_path_NM"
1892 echo "$ac_t""$NM" 1>&6
1894 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1895 echo "configure:1896: checking how to recognise dependant libraries" >&5
1896 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1898 else
1899 lt_cv_file_magic_cmd='$MAGIC_CMD'
1900 lt_cv_file_magic_test_file=
1901 lt_cv_deplibs_check_method='unknown'
1902 # Need to set the preceding variable on all platforms that support
1903 # interlibrary dependencies.
1904 # 'none' -- dependencies not supported.
1905 # `unknown' -- same as none, but documents that we really don't know.
1906 # 'pass_all' -- all dependencies passed with no checks.
1907 # 'test_compile' -- check by making test program.
1908 # 'file_magic [regex]' -- check by looking for files in library path
1909 # which responds to the $file_magic_cmd with a given egrep regex.
1910 # If you have `file' or equivalent on your system and you're not sure
1911 # whether `pass_all' will *always* work, you probably want this one.
1913 case $host_os in
1914 aix*)
1915 lt_cv_deplibs_check_method=pass_all
1918 beos*)
1919 lt_cv_deplibs_check_method=pass_all
1922 bsdi4*)
1923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1924 lt_cv_file_magic_cmd='/usr/bin/file -L'
1925 lt_cv_file_magic_test_file=/shlib/libc.so
1928 cygwin* | mingw* |pw32*)
1929 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1930 lt_cv_file_magic_cmd='$OBJDUMP -f'
1933 darwin* | rhapsody*)
1934 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1935 lt_cv_file_magic_cmd='/usr/bin/file -L'
1936 case "$host_os" in
1937 rhapsody* | darwin1.012)
1938 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1940 *) # Darwin 1.3 on
1941 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1943 esac
1946 freebsd* )
1947 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1948 case $host_cpu in
1949 i*86 )
1950 # Not sure whether the presence of OpenBSD here was a mistake.
1951 # Let's accept both of them until this is cleared up.
1952 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1953 lt_cv_file_magic_cmd=/usr/bin/file
1954 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1956 esac
1957 else
1958 lt_cv_deplibs_check_method=pass_all
1962 gnu*)
1963 lt_cv_deplibs_check_method=pass_all
1966 hpux10.20*|hpux11*)
1967 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1968 lt_cv_file_magic_cmd=/usr/bin/file
1969 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1972 irix5* | irix6*)
1973 case $host_os in
1974 irix5*)
1975 # this will be overridden with pass_all, but let us keep it just in case
1976 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1979 case $LD in
1980 *-32|*"-32 ") libmagic=32-bit;;
1981 *-n32|*"-n32 ") libmagic=N32;;
1982 *-64|*"-64 ") libmagic=64-bit;;
1983 *) libmagic=never-match;;
1984 esac
1985 # this will be overridden with pass_all, but let us keep it just in case
1986 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1988 esac
1989 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1990 lt_cv_deplibs_check_method=pass_all
1993 # This must be Linux ELF.
1994 linux-gnu*)
1995 case $host_cpu in
1996 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1997 lt_cv_deplibs_check_method=pass_all ;;
1999 # glibc up to 2.1.1 does not perform some relocations on ARM
2000 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2001 esac
2002 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2005 netbsd*)
2006 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2007 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2008 else
2009 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2013 newsos6)
2014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2015 lt_cv_file_magic_cmd=/usr/bin/file
2016 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2019 osf3* | osf4* | osf5*)
2020 # this will be overridden with pass_all, but let us keep it just in case
2021 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2022 lt_cv_file_magic_test_file=/shlib/libc.so
2023 lt_cv_deplibs_check_method=pass_all
2026 sco3.2v5*)
2027 lt_cv_deplibs_check_method=pass_all
2030 solaris*)
2031 lt_cv_deplibs_check_method=pass_all
2032 lt_cv_file_magic_test_file=/lib/libc.so
2035 sysv5uw[78]* | sysv4*uw2*)
2036 lt_cv_deplibs_check_method=pass_all
2039 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2040 case $host_vendor in
2041 ncr)
2042 lt_cv_deplibs_check_method=pass_all
2044 motorola)
2045 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]'
2046 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2048 esac
2050 esac
2054 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2055 file_magic_cmd=$lt_cv_file_magic_cmd
2056 deplibs_check_method=$lt_cv_deplibs_check_method
2058 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2059 echo "configure:2060: checking for object suffix" >&5
2060 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2062 else
2063 rm -f conftest*
2064 echo 'int i = 1;' > conftest.$ac_ext
2065 if { (eval echo configure:2066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2066 for ac_file in conftest.*; do
2067 case $ac_file in
2068 *.c) ;;
2069 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2070 esac
2071 done
2072 else
2073 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2075 rm -f conftest*
2078 echo "$ac_t""$ac_cv_objext" 1>&6
2079 OBJEXT=$ac_cv_objext
2080 ac_objext=$ac_cv_objext
2082 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2084 # Only perform the check for file, if the check method requires it
2085 case $deplibs_check_method in
2086 file_magic*)
2087 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2088 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2089 echo "configure:2090: checking for ${ac_tool_prefix}file" >&5
2090 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2092 else
2093 case $MAGIC_CMD in
2095 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2097 ?:/*)
2098 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2101 ac_save_MAGIC_CMD="$MAGIC_CMD"
2102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2103 ac_dummy="/usr/bin:$PATH"
2104 for ac_dir in $ac_dummy; do
2105 test -z "$ac_dir" && ac_dir=.
2106 if test -f $ac_dir/${ac_tool_prefix}file; then
2107 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2108 if test -n "$file_magic_test_file"; then
2109 case $deplibs_check_method in
2110 "file_magic "*)
2111 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2112 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2113 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2114 egrep "$file_magic_regex" > /dev/null; then
2116 else
2117 cat <<EOF 1>&2
2119 *** Warning: the command libtool uses to detect shared libraries,
2120 *** $file_magic_cmd, produces output that libtool cannot recognize.
2121 *** The result is that libtool may fail to recognize shared libraries
2122 *** as such. This will affect the creation of libtool libraries that
2123 *** depend on shared libraries, but programs linked with such libtool
2124 *** libraries will work regardless of this problem. Nevertheless, you
2125 *** may want to report the problem to your system manager and/or to
2126 *** bug-libtool@gnu.org
2129 fi ;;
2130 esac
2132 break
2134 done
2135 IFS="$ac_save_ifs"
2136 MAGIC_CMD="$ac_save_MAGIC_CMD"
2138 esac
2141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2142 if test -n "$MAGIC_CMD"; then
2143 echo "$ac_t""$MAGIC_CMD" 1>&6
2144 else
2145 echo "$ac_t""no" 1>&6
2148 if test -z "$lt_cv_path_MAGIC_CMD"; then
2149 if test -n "$ac_tool_prefix"; then
2150 echo $ac_n "checking for file""... $ac_c" 1>&6
2151 echo "configure:2152: checking for file" >&5
2152 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2154 else
2155 case $MAGIC_CMD in
2157 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2159 ?:/*)
2160 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2163 ac_save_MAGIC_CMD="$MAGIC_CMD"
2164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2165 ac_dummy="/usr/bin:$PATH"
2166 for ac_dir in $ac_dummy; do
2167 test -z "$ac_dir" && ac_dir=.
2168 if test -f $ac_dir/file; then
2169 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2170 if test -n "$file_magic_test_file"; then
2171 case $deplibs_check_method in
2172 "file_magic "*)
2173 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2175 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2176 egrep "$file_magic_regex" > /dev/null; then
2178 else
2179 cat <<EOF 1>&2
2181 *** Warning: the command libtool uses to detect shared libraries,
2182 *** $file_magic_cmd, produces output that libtool cannot recognize.
2183 *** The result is that libtool may fail to recognize shared libraries
2184 *** as such. This will affect the creation of libtool libraries that
2185 *** depend on shared libraries, but programs linked with such libtool
2186 *** libraries will work regardless of this problem. Nevertheless, you
2187 *** may want to report the problem to your system manager and/or to
2188 *** bug-libtool@gnu.org
2191 fi ;;
2192 esac
2194 break
2196 done
2197 IFS="$ac_save_ifs"
2198 MAGIC_CMD="$ac_save_MAGIC_CMD"
2200 esac
2203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2204 if test -n "$MAGIC_CMD"; then
2205 echo "$ac_t""$MAGIC_CMD" 1>&6
2206 else
2207 echo "$ac_t""no" 1>&6
2210 else
2211 MAGIC_CMD=:
2217 esac
2219 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2220 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_word" >&5
2223 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2225 else
2226 if test -n "$RANLIB"; then
2227 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2228 else
2229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2230 ac_dummy="$PATH"
2231 for ac_dir in $ac_dummy; do
2232 test -z "$ac_dir" && ac_dir=.
2233 if test -f $ac_dir/$ac_word; then
2234 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2235 break
2237 done
2238 IFS="$ac_save_ifs"
2241 RANLIB="$ac_cv_prog_RANLIB"
2242 if test -n "$RANLIB"; then
2243 echo "$ac_t""$RANLIB" 1>&6
2244 else
2245 echo "$ac_t""no" 1>&6
2249 if test -z "$ac_cv_prog_RANLIB"; then
2250 if test -n "$ac_tool_prefix"; then
2251 # Extract the first word of "ranlib", so it can be a program name with args.
2252 set dummy ranlib; ac_word=$2
2253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2254 echo "configure:2255: checking for $ac_word" >&5
2255 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2257 else
2258 if test -n "$RANLIB"; then
2259 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2260 else
2261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2262 ac_dummy="$PATH"
2263 for ac_dir in $ac_dummy; do
2264 test -z "$ac_dir" && ac_dir=.
2265 if test -f $ac_dir/$ac_word; then
2266 ac_cv_prog_RANLIB="ranlib"
2267 break
2269 done
2270 IFS="$ac_save_ifs"
2271 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2274 RANLIB="$ac_cv_prog_RANLIB"
2275 if test -n "$RANLIB"; then
2276 echo "$ac_t""$RANLIB" 1>&6
2277 else
2278 echo "$ac_t""no" 1>&6
2281 else
2282 RANLIB=":"
2286 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2287 set dummy ${ac_tool_prefix}strip; ac_word=$2
2288 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2289 echo "configure:2290: checking for $ac_word" >&5
2290 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2292 else
2293 if test -n "$STRIP"; then
2294 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2295 else
2296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2297 ac_dummy="$PATH"
2298 for ac_dir in $ac_dummy; do
2299 test -z "$ac_dir" && ac_dir=.
2300 if test -f $ac_dir/$ac_word; then
2301 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2302 break
2304 done
2305 IFS="$ac_save_ifs"
2308 STRIP="$ac_cv_prog_STRIP"
2309 if test -n "$STRIP"; then
2310 echo "$ac_t""$STRIP" 1>&6
2311 else
2312 echo "$ac_t""no" 1>&6
2316 if test -z "$ac_cv_prog_STRIP"; then
2317 if test -n "$ac_tool_prefix"; then
2318 # Extract the first word of "strip", so it can be a program name with args.
2319 set dummy strip; ac_word=$2
2320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2321 echo "configure:2322: checking for $ac_word" >&5
2322 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2324 else
2325 if test -n "$STRIP"; then
2326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2327 else
2328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2329 ac_dummy="$PATH"
2330 for ac_dir in $ac_dummy; do
2331 test -z "$ac_dir" && ac_dir=.
2332 if test -f $ac_dir/$ac_word; then
2333 ac_cv_prog_STRIP="strip"
2334 break
2336 done
2337 IFS="$ac_save_ifs"
2338 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2341 STRIP="$ac_cv_prog_STRIP"
2342 if test -n "$STRIP"; then
2343 echo "$ac_t""$STRIP" 1>&6
2344 else
2345 echo "$ac_t""no" 1>&6
2348 else
2349 STRIP=":"
2354 # Check for any special flags to pass to ltconfig.
2355 libtool_flags="--cache-file=$cache_file"
2356 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2357 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2358 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2359 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2360 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2361 libtool_flags="$libtool_flags --enable-dlopen"
2363 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2364 if test "${enable_libtool_lock+set}" = set; then
2365 enableval="$enable_libtool_lock"
2369 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2370 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2372 # Check whether --with-pic or --without-pic was given.
2373 if test "${with_pic+set}" = set; then
2374 withval="$with_pic"
2375 pic_mode="$withval"
2376 else
2377 pic_mode=default
2380 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2381 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2383 # Some flags need to be propagated to the compiler or linker for good
2384 # libtool support.
2385 case $host in
2386 *-*-irix6*)
2387 # Find out which ABI we are using.
2388 echo '#line 2389 "configure"' > conftest.$ac_ext
2389 if { (eval echo configure:2390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2390 case `/usr/bin/file conftest.$ac_objext` in
2391 *32-bit*)
2392 LD="${LD-ld} -32"
2394 *N32*)
2395 LD="${LD-ld} -n32"
2397 *64-bit*)
2398 LD="${LD-ld} -64"
2400 esac
2402 rm -rf conftest*
2405 *-*-sco3.2v5*)
2406 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2407 SAVE_CFLAGS="$CFLAGS"
2408 CFLAGS="$CFLAGS -belf"
2409 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2410 echo "configure:2411: checking whether the C compiler needs -belf" >&5
2411 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2413 else
2415 ac_ext=c
2416 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2417 ac_cpp='$CPP $CPPFLAGS'
2418 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2419 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2420 cross_compiling=$ac_cv_prog_cc_cross
2422 cat > conftest.$ac_ext <<EOF
2423 #line 2424 "configure"
2424 #include "confdefs.h"
2426 int main() {
2428 ; return 0; }
2430 if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2431 rm -rf conftest*
2432 lt_cv_cc_needs_belf=yes
2433 else
2434 echo "configure: failed program was:" >&5
2435 cat conftest.$ac_ext >&5
2436 rm -rf conftest*
2437 lt_cv_cc_needs_belf=no
2439 rm -f conftest*
2440 ac_ext=c
2441 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2442 ac_cpp='$CPP $CPPFLAGS'
2443 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2444 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2445 cross_compiling=$ac_cv_prog_cc_cross
2449 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2450 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2451 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2452 CFLAGS="$SAVE_CFLAGS"
2457 esac
2459 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2460 echo "configure:2461: checking how to run the C++ preprocessor" >&5
2461 if test -z "$CXXCPP"; then
2462 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2464 else
2465 ac_ext=C
2466 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2467 ac_cpp='$CXXCPP $CPPFLAGS'
2468 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2469 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2470 cross_compiling=$ac_cv_prog_cxx_cross
2471 CXXCPP="${CXX-g++} -E"
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475 #include <stdlib.h>
2477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2478 { (eval echo configure:2479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2480 if test -z "$ac_err"; then
2482 else
2483 echo "$ac_err" >&5
2484 echo "configure: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2486 rm -rf conftest*
2487 CXXCPP=/lib/cpp
2489 rm -f conftest*
2490 ac_cv_prog_CXXCPP="$CXXCPP"
2491 ac_ext=c
2492 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2493 ac_cpp='$CPP $CPPFLAGS'
2494 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2495 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2496 cross_compiling=$ac_cv_prog_cc_cross
2499 CXXCPP="$ac_cv_prog_CXXCPP"
2500 echo "$ac_t""$CXXCPP" 1>&6
2503 # Save cache, so that ltconfig can load it
2504 cat > confcache <<\EOF
2505 # This file is a shell script that caches the results of configure
2506 # tests run on this system so they can be shared between configure
2507 # scripts and configure runs. It is not useful on other systems.
2508 # If it contains results you don't want to keep, you may remove or edit it.
2510 # By default, configure uses ./config.cache as the cache file,
2511 # creating it if it does not exist already. You can give configure
2512 # the --cache-file=FILE option to use a different cache file; that is
2513 # what configure does when it calls configure scripts in
2514 # subdirectories, so they share the cache.
2515 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2516 # config.status only pays attention to the cache file if you give it the
2517 # --recheck option to rerun configure.
2520 # The following way of writing the cache mishandles newlines in values,
2521 # but we know of no workaround that is simple, portable, and efficient.
2522 # So, don't put newlines in cache variables' values.
2523 # Ultrix sh set writes to stderr and can't be redirected directly,
2524 # and sets the high bit in the cache file unless we assign to the vars.
2525 (set) 2>&1 |
2526 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2527 *ac_space=\ *)
2528 # `set' does not quote correctly, so add quotes (double-quote substitution
2529 # turns \\\\ into \\, and sed turns \\ into \).
2530 sed -n \
2531 -e "s/'/'\\\\''/g" \
2532 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2535 # `set' quotes correctly as required by POSIX, so do not add quotes.
2536 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2538 esac >> confcache
2539 if cmp -s $cache_file confcache; then
2541 else
2542 if test -w $cache_file; then
2543 echo "updating cache $cache_file"
2544 cat confcache > $cache_file
2545 else
2546 echo "not updating unwritable cache $cache_file"
2549 rm -f confcache
2552 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2553 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2554 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2555 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2556 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2557 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2558 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2559 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2560 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2561 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2563 # Reload cache, that may have been modified by ltconfig
2564 if test -r "$cache_file"; then
2565 echo "loading cache $cache_file"
2566 . $cache_file
2567 else
2568 echo "creating cache $cache_file"
2569 > $cache_file
2573 # This can be used to rebuild libtool when needed
2574 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2576 # Always use our own libtool.
2577 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2579 # Redirect the config.log output again, so that the ltconfig log is not
2580 # clobbered by the next message.
2581 exec 5>>./config.log
2585 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2586 lt_save_CC="$CC"
2587 lt_save_CFLAGS="$CFLAGS"
2588 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2589 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2590 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2591 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2592 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2593 deplibs_check_method="$deplibs_check_method" \
2594 file_magic_cmd="$file_magic_cmd" \
2595 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2596 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2597 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2598 CC="$lt_save_CC"
2599 CFLAGS="$lt_save_CFLAGS"
2601 # Redirect the config.log output again, so that the ltconfig log is not
2602 # clobbered by the next message.
2603 exec 5>>./config.log
2613 # Check for c++ or library specific bits that don't require linking.
2614 #GLIBCPP_CHECK_COMPILER_VERSION
2615 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2616 echo "configure:2617: checking for GNU make" >&5
2617 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2619 else
2620 _cv_gnu_make_command='' ;
2621 for a in "${MAKE-make}" make gmake gnumake ; do
2622 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2623 then
2624 _cv_gnu_make_command=$a ;
2625 break;
2627 done ;
2631 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2632 if test "x$_cv_gnu_make_command" != "x" ; then
2633 ifGNUmake='' ;
2634 else
2635 ifGNUmake='#' ;
2640 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2641 # Check whether --enable-debug or --disable-debug was given.
2642 if test "${enable_debug+set}" = set; then
2643 enableval="$enable_debug"
2644 case "${enableval}" in
2645 yes) enable_debug=yes ;;
2646 no) enable_debug=no ;;
2647 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2648 esac
2649 else
2650 enable_debug=no
2653 case "${enable_debug}" in
2654 yes)
2655 DEBUG_FLAGS='-O0 -ggdb3'
2657 no)
2658 DEBUG_FLAGS='-g'
2660 esac
2663 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2664 echo "configure:2665: checking how to run the C preprocessor" >&5
2665 # On Suns, sometimes $CPP names a directory.
2666 if test -n "$CPP" && test -d "$CPP"; then
2667 CPP=
2669 if test -z "$CPP"; then
2670 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2672 else
2673 # This must be in double quotes, not single quotes, because CPP may get
2674 # substituted into the Makefile and "${CC-cc}" will confuse make.
2675 CPP="${CC-cc} -E"
2676 # On the NeXT, cc -E runs the code through the compiler's parser,
2677 # not just through cpp.
2678 cat > conftest.$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2681 #include <assert.h>
2682 Syntax Error
2684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2685 { (eval echo configure:2686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2687 if test -z "$ac_err"; then
2689 else
2690 echo "$ac_err" >&5
2691 echo "configure: failed program was:" >&5
2692 cat conftest.$ac_ext >&5
2693 rm -rf conftest*
2694 CPP="${CC-cc} -E -traditional-cpp"
2695 cat > conftest.$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2698 #include <assert.h>
2699 Syntax Error
2701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2702 { (eval echo configure:2703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2704 if test -z "$ac_err"; then
2706 else
2707 echo "$ac_err" >&5
2708 echo "configure: failed program was:" >&5
2709 cat conftest.$ac_ext >&5
2710 rm -rf conftest*
2711 CPP="${CC-cc} -nologo -E"
2712 cat > conftest.$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2715 #include <assert.h>
2716 Syntax Error
2718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2719 { (eval echo configure:2720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2721 if test -z "$ac_err"; then
2723 else
2724 echo "$ac_err" >&5
2725 echo "configure: failed program was:" >&5
2726 cat conftest.$ac_ext >&5
2727 rm -rf conftest*
2728 CPP=/lib/cpp
2730 rm -f conftest*
2732 rm -f conftest*
2734 rm -f conftest*
2735 ac_cv_prog_CPP="$CPP"
2737 CPP="$ac_cv_prog_CPP"
2738 else
2739 ac_cv_prog_CPP="$CPP"
2741 echo "$ac_t""$CPP" 1>&6
2744 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2745 echo "configure:2746: checking for cstdio to use" >&5
2746 # Check whether --enable-cstdio or --disable-cstdio was given.
2747 if test "${enable_cstdio+set}" = set; then
2748 enableval="$enable_cstdio"
2749 if test x$enable_cstdio = xno; then
2750 enable_cstdio=stdio
2752 else
2753 enable_cstdio=stdio
2757 enable_cstdio_flag=$enable_cstdio
2759 case x${enable_cstdio_flag} in
2760 xlibio)
2761 CSTDIO_H=config/io/c_io_libio.h
2762 BASIC_FILE_H=config/io/basic_file_libio.h
2763 BASIC_FILE_CC=config/io/basic_file_libio.cc
2764 echo "$ac_t""libio" 1>&6
2766 # see if we are on a system with libio native (ie, linux)
2767 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2768 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2769 echo "configure:2770: checking for libio.h" >&5
2770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2771 echo $ac_n "(cached) $ac_c" 1>&6
2772 else
2773 cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 #include <libio.h>
2778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2779 { (eval echo configure:2780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2781 if test -z "$ac_err"; then
2782 rm -rf conftest*
2783 eval "ac_cv_header_$ac_safe=yes"
2784 else
2785 echo "$ac_err" >&5
2786 echo "configure: failed program was:" >&5
2787 cat conftest.$ac_ext >&5
2788 rm -rf conftest*
2789 eval "ac_cv_header_$ac_safe=no"
2791 rm -f conftest*
2793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2794 echo "$ac_t""yes" 1>&6
2795 has_libio=yes
2796 else
2797 echo "$ac_t""no" 1>&6
2798 has_libio=no
2802 # Need to check and see what version of glibc is being used. If
2803 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2804 # compile most of libio for linux systems.
2805 if test x$has_libio = x"yes"; then
2806 case "$target" in
2807 *-*-linux*)
2808 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2809 echo "configure:2810: checking for glibc version >= 2.2" >&5
2810 cat > conftest.$ac_ext <<EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2814 #include <features.h>
2815 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2817 #endif
2820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2821 egrep "ok" >/dev/null 2>&1; then
2822 rm -rf conftest*
2823 glibc_satisfactory=yes
2824 else
2825 rm -rf conftest*
2826 glibc_satisfactory=no
2828 rm -f conftest*
2830 echo "$ac_t""$glibc_satisfactory" 1>&6
2832 esac
2834 # XXX at the moment, admit defeat and force the recompilation
2835 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2836 glibc_satisfactory=no
2838 if test x$glibc_satisfactory = x"yes"; then
2839 need_libio=no
2840 need_wlibio=no
2841 else
2842 need_libio=yes
2843 # bkoz XXX need to add checks to enable this
2844 # pme XXX here's a first pass at such a check
2845 if test x$enable_c_mbchar != xno; then
2846 need_wlibio=yes
2847 else
2848 need_wlibio=no
2852 else
2853 # Using libio, but <libio.h> doesn't exist on the target system. . .
2854 need_libio=yes
2855 # bkoz XXX need to add checks to enable this
2856 # pme XXX here's a first pass at such a check
2857 if test x$enable_c_mbchar != xno; then
2858 need_wlibio=yes
2859 else
2860 need_wlibio=no
2864 xstdio | x | xno | xnone | xyes)
2865 # default
2866 CSTDIO_H=config/io/c_io_stdio.h
2867 BASIC_FILE_H=config/io/basic_file_stdio.h
2868 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2869 echo "$ac_t""stdio" 1>&6
2871 # We're not using stdio.
2872 need_libio=no
2873 need_wlibio=no
2876 echo "$enable_cstdio is an unknown io package" 1>&2
2877 exit 1
2879 esac
2884 # 2000-08-04 bkoz hack
2885 CCODECVT_C=config/io/c_io_libio_codecvt.c
2887 # 2000-08-04 bkoz hack
2891 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2892 GLIBCPP_BUILD_LIBIO_TRUE=
2893 GLIBCPP_BUILD_LIBIO_FALSE='#'
2894 else
2895 GLIBCPP_BUILD_LIBIO_TRUE='#'
2896 GLIBCPP_BUILD_LIBIO_FALSE=
2900 if test "$need_libio" = yes; then
2901 GLIBCPP_NEED_LIBIO_TRUE=
2902 GLIBCPP_NEED_LIBIO_FALSE='#'
2903 else
2904 GLIBCPP_NEED_LIBIO_TRUE='#'
2905 GLIBCPP_NEED_LIBIO_FALSE=
2909 if test "$need_wlibio" = yes; then
2910 GLIBCPP_NEED_WLIBIO_TRUE=
2911 GLIBCPP_NEED_WLIBIO_FALSE='#'
2912 else
2913 GLIBCPP_NEED_WLIBIO_TRUE='#'
2914 GLIBCPP_NEED_WLIBIO_FALSE=
2916 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2917 libio_la=../libio/libio.la
2918 else
2919 libio_la=
2924 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2925 echo "configure:2926: checking for clocale to use" >&5
2926 # Check whether --enable-clocale or --disable-clocale was given.
2927 if test "${enable_clocale+set}" = set; then
2928 enableval="$enable_clocale"
2929 if test x$enable_clocale = xno; then
2930 enable_clocale=generic
2932 else
2933 enable_clocale=generic
2937 enable_clocale_flag=$enable_clocale
2939 case x${enable_clocale_flag} in
2940 xgeneric)
2941 echo "$ac_t""generic" 1>&6
2943 # Don't use gettext.
2944 USE_NLS=no
2946 CLOCALE_H=config/locale/c_locale_generic.h
2947 CLOCALE_CC=config/locale/c_locale_generic.cc
2948 CCODECVT_H=config/locale/codecvt_specializations_generic.h
2949 CCOLLATE_CC=config/locale/collate_members_generic.cc
2950 CMESSAGES_H=config/locale/messages_members_generic.h
2951 CMESSAGES_CC=config/locale/messages_members_generic.cc
2952 CMONEY_CC=config/locale/moneypunct_members_generic.cc
2953 CNUMERIC_CC=config/locale/numpunct_members_generic.cc
2955 xgnu)
2956 echo "$ac_t""gnu" 1>&6
2958 # Declare intention to use gettext, and add support for specific
2959 # languages.
2960 # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
2961 ALL_LINGUAS="de fr"
2962 # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
2963 # Need to deal with MSGFMT, USE_NLS, and glibcpp_[P,M]OFILES
2964 USE_NLS=yes
2966 # Export the build objects.
2967 for ling in $ALL_LINGUAS; do \
2968 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
2969 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
2970 done
2974 CLOCALE_H=config/locale/c_locale_gnu.h
2975 CLOCALE_CC=config/locale/c_locale_gnu.cc
2976 CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
2977 CCOLLATE_CC=config/locale/collate_members_gnu.cc
2978 CMESSAGES_H=config/locale/messages_members_gnu.h
2979 CMESSAGES_CC=config/locale/messages_members_gnu.cc
2980 CMONEY_CC=config/locale/moneypunct_members_gnu.cc
2981 CNUMERIC_CC=config/locale/numpunct_members_gnu.cc
2983 xieee_1003.1)
2984 echo "$ac_t""generic" 1>&6
2986 # Don't use gettext.
2987 USE_NLS=no
2989 CLOCALE_H=config/locale/c_locale_ieee_1003.1-200x.h
2990 CLOCALE_CC=config/locale/c_locale_ieee_1003.1-200x.cc
2991 CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
2992 CCOLLATE_CC=config/locale/collate_members_generic.cc
2993 CMESSAGES_H=config/locale/messages_members_ieee_1003.1-200x.h
2994 CMESSAGES_CC=config/locale/messages_members_ieee_1003.1-200x.cc
2995 CMONEY_CC=config/locale/moneypunct_members_generic.cc
2996 CNUMERIC_CC=config/locale/numpunct_members_generic.cc
2999 echo "$enable_clocale is an unknown locale package" 1>&2
3000 exit 1
3002 esac
3004 # This is where the testsuite looks for locale catalogs, using the
3005 # -DLOCALEDIR define during testsuite compilation.
3006 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3019 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3020 if test "${enable_c_mbchar+set}" = set; then
3021 enableval="$enable_c_mbchar"
3022 case "$enableval" in
3023 yes) enable_c_mbchar=yes ;;
3024 no) enable_c_mbchar=no ;;
3025 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3026 esac
3027 else
3028 enable_c_mbchar=yes
3032 # Check whether --enable-c99 or --disable-c99 was given.
3033 if test "${enable_c99+set}" = set; then
3034 enableval="$enable_c99"
3035 case "$enableval" in
3036 yes) enable_c99=yes ;;
3037 no) enable_c99=no ;;
3038 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3039 esac
3040 else
3041 enable_c99=yes
3045 ac_ext=C
3046 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3047 ac_cpp='$CXXCPP $CPPFLAGS'
3048 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3049 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3050 cross_compiling=$ac_cv_prog_cxx_cross
3053 # Check for the existence of <math.h> functions used if C99 is enabled.
3054 ac_c99_math=yes;
3055 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3056 echo "configure:3057: checking for ISO C99 support in <math.h>" >&5
3057 cat > conftest.$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3060 #include <math.h>
3061 int main() {
3062 fpclassify(0.0);
3063 ; return 0; }
3065 if { (eval echo configure:3066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3067 else
3068 echo "configure: failed program was:" >&5
3069 cat conftest.$ac_ext >&5
3070 rm -rf conftest*
3071 ac_c99_math=no
3073 rm -f conftest*
3074 cat > conftest.$ac_ext <<EOF
3075 #line 3076 "configure"
3076 #include "confdefs.h"
3077 #include <math.h>
3078 int main() {
3079 isfinite(0.0);
3080 ; return 0; }
3082 if { (eval echo configure:3083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3084 else
3085 echo "configure: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3087 rm -rf conftest*
3088 ac_c99_math=no
3090 rm -f conftest*
3091 cat > conftest.$ac_ext <<EOF
3092 #line 3093 "configure"
3093 #include "confdefs.h"
3094 #include <math.h>
3095 int main() {
3096 isinf(0.0);
3097 ; return 0; }
3099 if { (eval echo configure:3100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3101 else
3102 echo "configure: failed program was:" >&5
3103 cat conftest.$ac_ext >&5
3104 rm -rf conftest*
3105 ac_c99_math=no
3107 rm -f conftest*
3108 cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3111 #include <math.h>
3112 int main() {
3113 isnan(0.0);
3114 ; return 0; }
3116 if { (eval echo configure:3117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3118 else
3119 echo "configure: failed program was:" >&5
3120 cat conftest.$ac_ext >&5
3121 rm -rf conftest*
3122 ac_c99_math=no
3124 rm -f conftest*
3125 cat > conftest.$ac_ext <<EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3128 #include <math.h>
3129 int main() {
3130 isnormal(0.0);
3131 ; return 0; }
3133 if { (eval echo configure:3134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3135 else
3136 echo "configure: failed program was:" >&5
3137 cat conftest.$ac_ext >&5
3138 rm -rf conftest*
3139 ac_c99_math=no
3141 rm -f conftest*
3142 cat > conftest.$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3145 #include <math.h>
3146 int main() {
3147 signbit(0.0);
3148 ; return 0; }
3150 if { (eval echo configure:3151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3152 else
3153 echo "configure: failed program was:" >&5
3154 cat conftest.$ac_ext >&5
3155 rm -rf conftest*
3156 ac_c99_math=no
3158 rm -f conftest*
3159 cat > conftest.$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3162 #include <math.h>
3163 int main() {
3164 isgreater(0.0,0.0);
3165 ; return 0; }
3167 if { (eval echo configure:3168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3169 else
3170 echo "configure: failed program was:" >&5
3171 cat conftest.$ac_ext >&5
3172 rm -rf conftest*
3173 ac_c99_math=no
3175 rm -f conftest*
3176 cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 #include <math.h>
3180 int main() {
3181 isgreaterequal(0.0,0.0);
3182 ; return 0; }
3184 if { (eval echo configure:3185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3186 else
3187 echo "configure: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3189 rm -rf conftest*
3190 ac_c99_math=no
3192 rm -f conftest*
3193 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3196 #include <math.h>
3197 int main() {
3198 isless(0.0,0.0);
3199 ; return 0; }
3201 if { (eval echo configure:3202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3203 else
3204 echo "configure: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3206 rm -rf conftest*
3207 ac_c99_math=no
3209 rm -f conftest*
3210 cat > conftest.$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3213 #include <math.h>
3214 int main() {
3215 islessequal(0.0,0.0);
3216 ; return 0; }
3218 if { (eval echo configure:3219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3220 else
3221 echo "configure: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3223 rm -rf conftest*
3224 ac_c99_math=no
3226 rm -f conftest*
3227 cat > conftest.$ac_ext <<EOF
3228 #line 3229 "configure"
3229 #include "confdefs.h"
3230 #include <math.h>
3231 int main() {
3232 islessgreater(0.0,0.0);
3233 ; return 0; }
3235 if { (eval echo configure:3236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3237 else
3238 echo "configure: failed program was:" >&5
3239 cat conftest.$ac_ext >&5
3240 rm -rf conftest*
3241 ac_c99_math=no
3243 rm -f conftest*
3244 cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3247 #include <math.h>
3248 int main() {
3249 isunordered(0.0,0.0);
3250 ; return 0; }
3252 if { (eval echo configure:3253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3254 else
3255 echo "configure: failed program was:" >&5
3256 cat conftest.$ac_ext >&5
3257 rm -rf conftest*
3258 ac_c99_math=no
3260 rm -f conftest*
3261 echo "$ac_t""$ac_c99_math" 1>&6
3263 # Check for the existence in <stdio.h> of vscanf, et. al.
3264 ac_c99_stdio=yes;
3265 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3266 echo "configure:3267: checking for ISO C99 support in <stdio.h>" >&5
3267 cat > conftest.$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3270 #include <stdio.h>
3271 int main() {
3272 snprintf("12", 0, "%i");
3273 ; return 0; }
3275 if { (eval echo configure:3276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3277 else
3278 echo "configure: failed program was:" >&5
3279 cat conftest.$ac_ext >&5
3280 rm -rf conftest*
3281 ac_c99_stdio=no
3283 rm -f conftest*
3284 cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3287 #include <stdio.h>
3288 #include <stdarg.h>
3289 void foo(char* fmt, ...)
3290 {va_list args; va_start(args, fmt);
3291 vfscanf(stderr, "%i", args);}
3292 int main() {
3294 ; return 0; }
3296 if { (eval echo configure:3297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3298 else
3299 echo "configure: failed program was:" >&5
3300 cat conftest.$ac_ext >&5
3301 rm -rf conftest*
3302 ac_c99_stdio=no
3304 rm -f conftest*
3305 cat > conftest.$ac_ext <<EOF
3306 #line 3307 "configure"
3307 #include "confdefs.h"
3308 #include <stdio.h>
3309 #include <stdarg.h>
3310 void foo(char* fmt, ...)
3311 {va_list args; va_start(args, fmt);
3312 vscanf("%i", args);}
3313 int main() {
3315 ; return 0; }
3317 if { (eval echo configure:3318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3319 else
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3322 rm -rf conftest*
3323 ac_c99_stdio=no
3325 rm -f conftest*
3326 cat > conftest.$ac_ext <<EOF
3327 #line 3328 "configure"
3328 #include "confdefs.h"
3329 #include <stdio.h>
3330 #include <stdarg.h>
3331 void foo(char* fmt, ...)
3332 {va_list args; va_start(args, fmt);
3333 vsnprintf(fmt, 0, "%i", args);}
3334 int main() {
3336 ; return 0; }
3338 if { (eval echo configure:3339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3340 else
3341 echo "configure: failed program was:" >&5
3342 cat conftest.$ac_ext >&5
3343 rm -rf conftest*
3344 ac_c99_stdio=no
3346 rm -f conftest*
3347 cat > conftest.$ac_ext <<EOF
3348 #line 3349 "configure"
3349 #include "confdefs.h"
3350 #include <stdio.h>
3351 #include <stdarg.h>
3352 void foo(char* fmt, ...)
3353 {va_list args; va_start(args, fmt);
3354 vsscanf(fmt, "%i", args);}
3355 int main() {
3357 ; return 0; }
3359 if { (eval echo configure:3360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3361 else
3362 echo "configure: failed program was:" >&5
3363 cat conftest.$ac_ext >&5
3364 rm -rf conftest*
3365 ac_c99_stdio=no
3367 rm -f conftest*
3368 echo "$ac_t""$ac_c99_stdio" 1>&6
3370 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3371 ac_c99_stdlib=yes;
3372 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3373 echo "configure:3374: checking for lldiv_t declaration" >&5
3374 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3375 echo $ac_n "(cached) $ac_c" 1>&6
3376 else
3378 cat > conftest.$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3381 #include <stdlib.h>
3382 int main() {
3383 lldiv_t mydivt;
3384 ; return 0; }
3386 if { (eval echo configure:3387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3387 rm -rf conftest*
3388 ac_c99_lldiv_t=yes
3389 else
3390 echo "configure: failed program was:" >&5
3391 cat conftest.$ac_ext >&5
3392 rm -rf conftest*
3393 ac_c99_lldiv_t=no
3395 rm -f conftest*
3399 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3401 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3402 echo "configure:3403: checking for ISO C99 support in <stdlib.h>" >&5
3403 cat > conftest.$ac_ext <<EOF
3404 #line 3405 "configure"
3405 #include "confdefs.h"
3406 #include <stdlib.h>
3407 int main() {
3408 char* tmp; strtof("gnu", &tmp);
3409 ; return 0; }
3411 if { (eval echo configure:3412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3413 else
3414 echo "configure: failed program was:" >&5
3415 cat conftest.$ac_ext >&5
3416 rm -rf conftest*
3417 ac_c99_stdlib=no
3419 rm -f conftest*
3420 cat > conftest.$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3423 #include <stdlib.h>
3424 int main() {
3425 char* tmp; strtold("gnu", &tmp);
3426 ; return 0; }
3428 if { (eval echo configure:3429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3430 else
3431 echo "configure: failed program was:" >&5
3432 cat conftest.$ac_ext >&5
3433 rm -rf conftest*
3434 ac_c99_stdlib=no
3436 rm -f conftest*
3437 cat > conftest.$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 #include <stdlib.h>
3441 int main() {
3442 char* tmp; strtoll("gnu", &tmp, 10);
3443 ; return 0; }
3445 if { (eval echo configure:3446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3447 else
3448 echo "configure: failed program was:" >&5
3449 cat conftest.$ac_ext >&5
3450 rm -rf conftest*
3451 ac_c99_stdlib=no
3453 rm -f conftest*
3454 cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3457 #include <stdlib.h>
3458 int main() {
3459 char* tmp; strtoull("gnu", &tmp, 10);
3460 ; return 0; }
3462 if { (eval echo configure:3463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3464 else
3465 echo "configure: failed program was:" >&5
3466 cat conftest.$ac_ext >&5
3467 rm -rf conftest*
3468 ac_c99_stdlib=no
3470 rm -f conftest*
3471 cat > conftest.$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3474 #include <stdlib.h>
3475 int main() {
3476 llabs(10);
3477 ; return 0; }
3479 if { (eval echo configure:3480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3481 else
3482 echo "configure: failed program was:" >&5
3483 cat conftest.$ac_ext >&5
3484 rm -rf conftest*
3485 ac_c99_stdlib=no
3487 rm -f conftest*
3488 cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 #include <stdlib.h>
3492 int main() {
3493 lldiv(10,1);
3494 ; return 0; }
3496 if { (eval echo configure:3497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3498 else
3499 echo "configure: failed program was:" >&5
3500 cat conftest.$ac_ext >&5
3501 rm -rf conftest*
3502 ac_c99_stdlib=no
3504 rm -f conftest*
3505 cat > conftest.$ac_ext <<EOF
3506 #line 3507 "configure"
3507 #include "confdefs.h"
3508 #include <stdlib.h>
3509 int main() {
3510 atoll("10");
3511 ; return 0; }
3513 if { (eval echo configure:3514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3515 else
3516 echo "configure: failed program was:" >&5
3517 cat conftest.$ac_ext >&5
3518 rm -rf conftest*
3519 ac_c99_stdlib=no
3521 rm -f conftest*
3522 cat > conftest.$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3525 #include <stdlib.h>
3526 int main() {
3527 _Exit(0);
3528 ; return 0; }
3530 if { (eval echo configure:3531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3532 else
3533 echo "configure: failed program was:" >&5
3534 cat conftest.$ac_ext >&5
3535 rm -rf conftest*
3536 ac_c99_stdlib=no
3538 rm -f conftest*
3539 if test x"$ac_c99_lldiv_t" = x"no"; then
3540 ac_c99_stdlib=no;
3541 fi;
3542 echo "$ac_t""$ac_c99_stdlib" 1>&6
3544 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3545 # XXX the wchar.h checks should be rolled into the general C99 bits.
3546 ac_c99_wchar=yes;
3547 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3548 echo "configure:3549: checking for additional ISO C99 support in <wchar.h>" >&5
3549 cat > conftest.$ac_ext <<EOF
3550 #line 3551 "configure"
3551 #include "confdefs.h"
3552 #include <wchar.h>
3553 int main() {
3554 wcstold(L"10.0", NULL);
3555 ; return 0; }
3557 if { (eval echo configure:3558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3559 else
3560 echo "configure: failed program was:" >&5
3561 cat conftest.$ac_ext >&5
3562 rm -rf conftest*
3563 ac_c99_wchar=no
3565 rm -f conftest*
3566 cat > conftest.$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3569 #include <wchar.h>
3570 int main() {
3571 wcstoll(L"10", NULL, 10);
3572 ; return 0; }
3574 if { (eval echo configure:3575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3576 else
3577 echo "configure: failed program was:" >&5
3578 cat conftest.$ac_ext >&5
3579 rm -rf conftest*
3580 ac_c99_wchar=no
3582 rm -f conftest*
3583 cat > conftest.$ac_ext <<EOF
3584 #line 3585 "configure"
3585 #include "confdefs.h"
3586 #include <wchar.h>
3587 int main() {
3588 wcstoull(L"10", NULL, 10);
3589 ; return 0; }
3591 if { (eval echo configure:3592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3593 else
3594 echo "configure: failed program was:" >&5
3595 cat conftest.$ac_ext >&5
3596 rm -rf conftest*
3597 ac_c99_wchar=no
3599 rm -f conftest*
3600 echo "$ac_t""$ac_c99_wchar" 1>&6
3602 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3603 echo "configure:3604: checking for enabled ISO C99 support" >&5
3604 if test x"$ac_c99_math" = x"no" ||
3605 test x"$ac_c99_stdio" = x"no" ||
3606 test x"$ac_c99_stdlib" = x"no" ||
3607 test x"$ac_c99_wchar" = x"no"; then
3608 enable_c99=no;
3609 fi;
3610 echo "$ac_t""$enable_c99" 1>&6
3612 # Option parsed, now set things appropriately
3613 if test x"$enable_c99" = x"yes"; then
3614 cat >> confdefs.h <<\EOF
3615 #define _GLIBCPP_USE_C99 1
3620 ac_ext=c
3621 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3622 ac_cpp='$CPP $CPPFLAGS'
3623 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3624 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3625 cross_compiling=$ac_cv_prog_cc_cross
3629 # Check whether --enable-long-long or --disable-long-long was given.
3630 if test "${enable_long_long+set}" = set; then
3631 enableval="$enable_long_long"
3632 case "$enableval" in
3633 yes) enable_long_long=yes ;;
3634 no) enable_long_long=no ;;
3635 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3636 esac
3637 else
3638 enable_long_long=yes
3641 # iostreams require strtoll, strtoull to compile. If the
3642 # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
3643 # go ahead and allow long long to be used.
3644 if test x"$enable_c99" = x"no"; then
3645 enable_long_long=no;
3648 # Option parsed, now set things appropriately
3649 echo $ac_n "checking for enabled long long support""... $ac_c" 1>&6
3650 echo "configure:3651: checking for enabled long long support" >&5
3651 if test x"$enable_long_long" = xyes; then
3652 cat >> confdefs.h <<\EOF
3653 #define _GLIBCPP_USE_LONG_LONG 1
3657 echo "$ac_t""$enable_long_long" 1>&6
3659 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3660 echo "configure:3661: checking for c header strategy to use" >&5
3661 # Check whether --enable-cheaders or --disable-cheaders was given.
3662 if test "${enable_cheaders+set}" = set; then
3663 enableval="$enable_cheaders"
3665 case "$enableval" in
3667 enable_cheaders=c
3669 c_std)
3670 enable_cheaders=c_std
3672 c_shadow)
3673 enable_cheaders=c_shadow
3675 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3677 esac
3678 else
3679 enable_cheaders=c_std
3682 echo "$ac_t""$enable_cheaders" 1>&6
3684 case "$enable_cheaders" in
3685 c_shadow)
3686 CSHADOW_FLAGS="-fno-builtin"
3687 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3688 cat >> confdefs.h <<\EOF
3689 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3693 c_std)
3694 CSHADOW_FLAGS=""
3695 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3698 CSHADOW_FLAGS=""
3699 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3701 esac
3707 if test "$enable_cheaders" = c_shadow; then
3708 GLIBCPP_USE_CSHADOW_TRUE=
3709 GLIBCPP_USE_CSHADOW_FALSE='#'
3710 else
3711 GLIBCPP_USE_CSHADOW_TRUE='#'
3712 GLIBCPP_USE_CSHADOW_FALSE=
3716 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3717 echo "configure:3718: checking for thread model used by GCC" >&5
3718 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3719 echo "$ac_t""$target_thread_file" 1>&6
3721 if test $target_thread_file != single; then
3722 cat >> confdefs.h <<\EOF
3723 #define HAVE_GTHR_DEFAULT 1
3726 cat >> confdefs.h <<\EOF
3727 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3732 glibcpp_thread_h=gthr-$target_thread_file.h
3735 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3736 if test "${enable_cxx_flags+set}" = set; then
3737 enableval="$enable_cxx_flags"
3738 case "x$enableval" in
3739 xyes)
3740 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3741 xno|x)
3742 enable_cxx_flags='' ;;
3744 enable_cxx_flags="$enableval" ;;
3745 esac
3746 else
3747 enable_cxx_flags='none'
3751 if test "$enable_cxx_flags" = "none"; then
3752 enable_cxx_flags='';
3755 if test -n "$enable_cxx_flags"; then
3756 for f in $enable_cxx_flags; do
3757 case "$f" in
3758 -fhonor-std) ;;
3759 -*) ;;
3760 *) # and we're trying to pass /what/ exactly?
3761 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3762 esac
3763 done
3765 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3769 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3770 echo "configure:3771: checking for exception model to use" >&5
3772 ac_ext=C
3773 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3774 ac_cpp='$CXXCPP $CPPFLAGS'
3775 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3776 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3777 cross_compiling=$ac_cv_prog_cxx_cross
3779 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3780 if test "${enable_sjlj_exceptions+set}" = set; then
3781 enableval="$enable_sjlj_exceptions"
3783 else
3784 cat > conftest.$ac_ext << EOF
3785 #line 3786 "configure"
3786 struct S { ~S(); };
3787 void bar();
3788 void foo()
3790 S s;
3791 bar();
3794 old_CXXFLAGS="$CXXFLAGS"
3795 CXXFLAGS=-S
3796 if { (eval echo configure:3797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3797 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3798 enable_sjlj_exceptions=yes
3799 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3800 enable_sjlj_exceptions=no
3803 CXXFLAGS="$old_CXXFLAGS"
3804 rm -f conftest*
3807 if test x$enable_sjlj_exceptions = xyes; then
3808 cat >> confdefs.h <<\EOF
3809 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3812 ac_exception_model_name=sjlj
3813 elif test x$enable_sjlj_exceptions = xno; then
3814 ac_exception_model_name="call frame"
3815 else
3816 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3818 ac_ext=c
3819 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3822 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3823 cross_compiling=$ac_cv_prog_cc_cross
3825 echo "$ac_t""$ac_exception_model_name" 1>&6
3829 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
3831 # This lets us hard-code the functionality we know
3832 # we'll have in the cross target environment. "Let" is a
3833 # sugar-coated word placed on an especially dull and tedious hack, actually.
3834 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
3835 # that involve linking can't be used:
3836 # "cannot open sim-crt0.o"
3837 # "cannot open crt0.o"
3838 # etc. All this is because there currently exists no unified,
3839 # consistent way for top level CC information to be passed down
3840 # to target directories: newlib includes, newlib linking info,
3841 # libgloss versus newlib crt0.o, etc. When all of this is done, all
3842 # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
3844 # We are being configured with some form of cross compiler.
3845 GLIBCPP_IS_CROSS_COMPILING=1
3847 # If Canadian cross, then don't pick up tools from the build
3848 # directory.
3849 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
3850 CANADIAN=yes
3851 else
3852 CANADIAN=no
3855 case "$target_alias" in
3856 *-linux*)
3857 # Construct linux crosses by hand, eliminating bits that need ld...
3858 # Check for available headers.
3859 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3860 machine/endian.h machine/param.h sys/machine.h sys/types.h \
3861 fp.h locale.h float.h inttypes.h
3863 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3864 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3865 echo "configure:3866: checking for $ac_hdr" >&5
3866 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3868 else
3869 cat > conftest.$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3872 #include <$ac_hdr>
3874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3875 { (eval echo configure:3876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3877 if test -z "$ac_err"; then
3878 rm -rf conftest*
3879 eval "ac_cv_header_$ac_safe=yes"
3880 else
3881 echo "$ac_err" >&5
3882 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3884 rm -rf conftest*
3885 eval "ac_cv_header_$ac_safe=no"
3887 rm -f conftest*
3889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3890 echo "$ac_t""yes" 1>&6
3891 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3892 cat >> confdefs.h <<EOF
3893 #define $ac_tr_hdr 1
3896 else
3897 echo "$ac_t""no" 1>&6
3899 done
3902 # GLIBCPP_CHECK_COMPILER_FEATURES
3903 SECTION_FLAGS='-ffunction-sections -fdata-sections'
3906 # If we're not using GNU ld, then there's no point in even trying these
3907 # tests. Check for that first. We should have already tested for gld
3908 # by now (in libtool), but require it now just to be safe...
3909 SECTION_LDFLAGS=''
3910 OPT_LDFLAGS=''
3913 # Set --gc-sections.
3914 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3915 # GNU ld it is! Joy and bunny rabbits!
3917 # All these tests are for C++; save the language and the compiler flags.
3918 # Need to do this so that g++ won't try to link in libstdc++
3919 ac_test_CFLAGS="${CFLAGS+set}"
3920 ac_save_CFLAGS="$CFLAGS"
3921 CFLAGS='-x c++ -Wl,--gc-sections'
3923 # Check for -Wl,--gc-sections
3924 # XXX This test is broken at the moment, as symbols required for
3925 # linking are now in libsupc++ (not built yet.....). In addition,
3926 # this test has cored on solaris in the past. In addition,
3927 # --gc-sections doesn't really work at the moment (keeps on discarding
3928 # used sections, first .eh_frame and now some of the glibc sections for
3929 # iconv). Bzzzzt. Thanks for playing, maybe next time.
3930 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3931 echo "configure:3932: checking for ld that supports -Wl,--gc-sections" >&5
3932 if test "$cross_compiling" = yes; then
3933 ac_sectionLDflags=yes
3934 else
3935 cat > conftest.$ac_ext <<EOF
3936 #line 3937 "configure"
3937 #include "confdefs.h"
3939 int main(void)
3941 try { throw 1; }
3942 catch (...) { };
3943 return 0;
3947 if { (eval echo configure:3948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3948 then
3949 ac_sectionLDflags=yes
3950 else
3951 echo "configure: failed program was:" >&5
3952 cat conftest.$ac_ext >&5
3953 rm -fr conftest*
3954 ac_sectionLFflags=no
3956 rm -fr conftest*
3959 if test "$ac_test_CFLAGS" = set; then
3960 CFLAGS="$ac_save_CFLAGS"
3961 else
3962 # this is the suspicious part
3963 CFLAGS=''
3965 if test "$ac_sectionLDflags" = "yes"; then
3966 SECTION_LDFLAGS='-Wl,--gc-sections'
3968 echo "$ac_t""$ac_sectionLDflags" 1>&6
3971 # Set linker optimization flags.
3972 if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
3973 test x"$enable_debug" = x"no"; then
3974 OPT_LDFLAGS='-Wl,-O1'
3980 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3981 # GLIBCPP_CHECK_MATH_SUPPORT
3982 cat >> confdefs.h <<\EOF
3983 #define HAVE_ACOSF 1
3986 cat >> confdefs.h <<\EOF
3987 #define HAVE_ASINF 1
3990 cat >> confdefs.h <<\EOF
3991 #define HAVE_ATAN2F 1
3994 cat >> confdefs.h <<\EOF
3995 #define HAVE_ATANF 1
3998 cat >> confdefs.h <<\EOF
3999 #define HAVE_CEILF 1
4002 cat >> confdefs.h <<\EOF
4003 #define HAVE_COPYSIGN 1
4006 cat >> confdefs.h <<\EOF
4007 #define HAVE_COPYSIGNF 1
4010 cat >> confdefs.h <<\EOF
4011 #define HAVE_COSF 1
4014 cat >> confdefs.h <<\EOF
4015 #define HAVE_COSHF 1
4018 cat >> confdefs.h <<\EOF
4019 #define HAVE_EXPF 1
4022 cat >> confdefs.h <<\EOF
4023 #define HAVE_FABSF 1
4026 cat >> confdefs.h <<\EOF
4027 #define HAVE_FINITE 1
4030 cat >> confdefs.h <<\EOF
4031 #define HAVE_FINITEF 1
4034 cat >> confdefs.h <<\EOF
4035 #define HAVE_FLOORF 1
4038 cat >> confdefs.h <<\EOF
4039 #define HAVE_FMODF 1
4042 cat >> confdefs.h <<\EOF
4043 #define HAVE_FREXPF 1
4046 cat >> confdefs.h <<\EOF
4047 #define HAVE_HYPOTF 1
4050 cat >> confdefs.h <<\EOF
4051 #define HAVE_ISINF 1
4054 cat >> confdefs.h <<\EOF
4055 #define HAVE_ISINFF 1
4058 cat >> confdefs.h <<\EOF
4059 #define HAVE_ISNAN 1
4062 cat >> confdefs.h <<\EOF
4063 #define HAVE_ISNANF 1
4066 cat >> confdefs.h <<\EOF
4067 #define HAVE_LDEXPF 1
4070 cat >> confdefs.h <<\EOF
4071 #define HAVE_LOG10F 1
4074 cat >> confdefs.h <<\EOF
4075 #define HAVE_LOGF 1
4078 cat >> confdefs.h <<\EOF
4079 #define HAVE_MODFF 1
4082 cat >> confdefs.h <<\EOF
4083 #define HAVE_POWF 1
4086 cat >> confdefs.h <<\EOF
4087 #define HAVE_SINCOS 1
4090 cat >> confdefs.h <<\EOF
4091 #define HAVE_SINCOSF 1
4094 cat >> confdefs.h <<\EOF
4095 #define HAVE_SINF 1
4098 cat >> confdefs.h <<\EOF
4099 #define HAVE_SINHF 1
4102 cat >> confdefs.h <<\EOF
4103 #define HAVE_SQRTF 1
4106 cat >> confdefs.h <<\EOF
4107 #define HAVE_TANF 1
4110 cat >> confdefs.h <<\EOF
4111 #define HAVE_TANHF 1
4115 # At some point, we should differentiate between architectures
4116 # like x86, which have long double versions, and alpha/powerpc/etc.,
4117 # which don't. For the time being, punt.
4118 if test x"long_double_math_on_this_cpu" = x"yes"; then
4119 cat >> confdefs.h <<\EOF
4120 #define HAVE_ACOSL 1
4123 cat >> confdefs.h <<\EOF
4124 #define HAVE_ASINL 1
4127 cat >> confdefs.h <<\EOF
4128 #define HAVE_ATAN2L 1
4131 cat >> confdefs.h <<\EOF
4132 #define HAVE_ATANL 1
4135 cat >> confdefs.h <<\EOF
4136 #define HAVE_CEILL 1
4139 cat >> confdefs.h <<\EOF
4140 #define HAVE_COPYSIGNL 1
4143 cat >> confdefs.h <<\EOF
4144 #define HAVE_COSL 1
4147 cat >> confdefs.h <<\EOF
4148 #define HAVE_COSHL 1
4151 cat >> confdefs.h <<\EOF
4152 #define HAVE_EXPL 1
4155 cat >> confdefs.h <<\EOF
4156 #define HAVE_FABSL 1
4159 cat >> confdefs.h <<\EOF
4160 #define HAVE_FINITEL 1
4163 cat >> confdefs.h <<\EOF
4164 #define HAVE_FLOORL 1
4167 cat >> confdefs.h <<\EOF
4168 #define HAVE_FMODL 1
4171 cat >> confdefs.h <<\EOF
4172 #define HAVE_FREXPL 1
4175 cat >> confdefs.h <<\EOF
4176 #define HAVE_HYPOTL 1
4179 cat >> confdefs.h <<\EOF
4180 #define HAVE_ISINFL 1
4183 cat >> confdefs.h <<\EOF
4184 #define HAVE_ISNANL 1
4187 cat >> confdefs.h <<\EOF
4188 #define HAVE_LDEXPL 1
4191 cat >> confdefs.h <<\EOF
4192 #define HAVE_LOG10L 1
4195 cat >> confdefs.h <<\EOF
4196 #define HAVE_LOGL 1
4199 cat >> confdefs.h <<\EOF
4200 #define HAVE_MODFL 1
4203 cat >> confdefs.h <<\EOF
4204 #define HAVE_POWL 1
4207 cat >> confdefs.h <<\EOF
4208 #define HAVE_SINCOSL 1
4211 cat >> confdefs.h <<\EOF
4212 #define HAVE_SINL 1
4215 cat >> confdefs.h <<\EOF
4216 #define HAVE_SINHL 1
4219 cat >> confdefs.h <<\EOF
4220 #define HAVE_SQRTL 1
4223 cat >> confdefs.h <<\EOF
4224 #define HAVE_TANL 1
4227 cat >> confdefs.h <<\EOF
4228 #define HAVE_TANHL 1
4233 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4234 echo "configure:4235: checking for main in -lm" >&5
4235 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4236 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4237 echo $ac_n "(cached) $ac_c" 1>&6
4238 else
4239 ac_save_LIBS="$LIBS"
4240 LIBS="-lm $LIBS"
4241 cat > conftest.$ac_ext <<EOF
4242 #line 4243 "configure"
4243 #include "confdefs.h"
4245 int main() {
4246 main()
4247 ; return 0; }
4249 if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4250 rm -rf conftest*
4251 eval "ac_cv_lib_$ac_lib_var=yes"
4252 else
4253 echo "configure: failed program was:" >&5
4254 cat conftest.$ac_ext >&5
4255 rm -rf conftest*
4256 eval "ac_cv_lib_$ac_lib_var=no"
4258 rm -f conftest*
4259 LIBS="$ac_save_LIBS"
4262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4263 echo "$ac_t""yes" 1>&6
4264 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4265 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4266 cat >> confdefs.h <<EOF
4267 #define $ac_tr_lib 1
4270 LIBS="-lm $LIBS"
4272 else
4273 echo "$ac_t""no" 1>&6
4276 for ac_func in nan copysignf
4278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4279 echo "configure:4280: checking for $ac_func" >&5
4280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4281 echo $ac_n "(cached) $ac_c" 1>&6
4282 else
4283 cat > conftest.$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4286 /* System header to define __stub macros and hopefully few prototypes,
4287 which can conflict with char $ac_func(); below. */
4288 #include <assert.h>
4289 /* Override any gcc2 internal prototype to avoid an error. */
4290 /* We use char because int might match the return type of a gcc2
4291 builtin and then its argument prototype would still apply. */
4292 char $ac_func();
4294 int main() {
4296 /* The GNU C library defines this for functions which it implements
4297 to always fail with ENOSYS. Some functions are actually named
4298 something starting with __ and the normal name is an alias. */
4299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4300 choke me
4301 #else
4302 $ac_func();
4303 #endif
4305 ; return 0; }
4307 if { (eval echo configure:4308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4308 rm -rf conftest*
4309 eval "ac_cv_func_$ac_func=yes"
4310 else
4311 echo "configure: failed program was:" >&5
4312 cat conftest.$ac_ext >&5
4313 rm -rf conftest*
4314 eval "ac_cv_func_$ac_func=no"
4316 rm -f conftest*
4319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4320 echo "$ac_t""yes" 1>&6
4321 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4322 cat >> confdefs.h <<EOF
4323 #define $ac_tr_func 1
4326 else
4327 echo "$ac_t""no" 1>&6
4328 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4330 done
4334 USE_COMPLEX_LONG_DOUBLE=no
4335 if test x$ac_cv_func_copysignl = x"yes"; then
4336 USE_COMPLEX_LONG_DOUBLE=yes
4337 for ac_func in signbitl
4339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4340 echo "configure:4341: checking for $ac_func" >&5
4341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4342 echo $ac_n "(cached) $ac_c" 1>&6
4343 else
4344 cat > conftest.$ac_ext <<EOF
4345 #line 4346 "configure"
4346 #include "confdefs.h"
4347 /* System header to define __stub macros and hopefully few prototypes,
4348 which can conflict with char $ac_func(); below. */
4349 #include <assert.h>
4350 /* Override any gcc2 internal prototype to avoid an error. */
4351 /* We use char because int might match the return type of a gcc2
4352 builtin and then its argument prototype would still apply. */
4353 char $ac_func();
4355 int main() {
4357 /* The GNU C library defines this for functions which it implements
4358 to always fail with ENOSYS. Some functions are actually named
4359 something starting with __ and the normal name is an alias. */
4360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4361 choke me
4362 #else
4363 $ac_func();
4364 #endif
4366 ; return 0; }
4368 if { (eval echo configure:4369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4369 rm -rf conftest*
4370 eval "ac_cv_func_$ac_func=yes"
4371 else
4372 echo "configure: failed program was:" >&5
4373 cat conftest.$ac_ext >&5
4374 rm -rf conftest*
4375 eval "ac_cv_func_$ac_func=no"
4377 rm -f conftest*
4380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4381 echo "$ac_t""yes" 1>&6
4382 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4383 cat >> confdefs.h <<EOF
4384 #define $ac_tr_func 1
4387 else
4388 echo "$ac_t""no" 1>&6
4389 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4391 done
4400 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4401 echo "configure:4402: checking for mbstate_t" >&5
4402 cat > conftest.$ac_ext <<EOF
4403 #line 4404 "configure"
4404 #include "confdefs.h"
4405 #include <wchar.h>
4406 int main() {
4407 mbstate_t teststate;
4408 ; return 0; }
4410 if { (eval echo configure:4411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4411 rm -rf conftest*
4412 have_mbstate_t=yes
4413 else
4414 echo "configure: failed program was:" >&5
4415 cat conftest.$ac_ext >&5
4416 rm -rf conftest*
4417 have_mbstate_t=no
4419 rm -f conftest*
4420 echo "$ac_t""$have_mbstate_t" 1>&6
4421 if test x"$have_mbstate_t" = xyes; then
4422 cat >> confdefs.h <<\EOF
4423 #define HAVE_MBSTATE_T 1
4428 for ac_hdr in wchar.h
4430 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4431 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4432 echo "configure:4433: checking for $ac_hdr" >&5
4433 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4434 echo $ac_n "(cached) $ac_c" 1>&6
4435 else
4436 cat > conftest.$ac_ext <<EOF
4437 #line 4438 "configure"
4438 #include "confdefs.h"
4439 #include <$ac_hdr>
4441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4442 { (eval echo configure:4443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4444 if test -z "$ac_err"; then
4445 rm -rf conftest*
4446 eval "ac_cv_header_$ac_safe=yes"
4447 else
4448 echo "$ac_err" >&5
4449 echo "configure: failed program was:" >&5
4450 cat conftest.$ac_ext >&5
4451 rm -rf conftest*
4452 eval "ac_cv_header_$ac_safe=no"
4454 rm -f conftest*
4456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4457 echo "$ac_t""yes" 1>&6
4458 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4459 cat >> confdefs.h <<EOF
4460 #define $ac_tr_hdr 1
4462 ac_has_wchar_h=yes
4463 else
4464 echo "$ac_t""no" 1>&6
4465 ac_has_wchar_h=no
4467 done
4469 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4470 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4471 echo "configure:4472: checking for wctype.h" >&5
4472 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4473 echo $ac_n "(cached) $ac_c" 1>&6
4474 else
4475 cat > conftest.$ac_ext <<EOF
4476 #line 4477 "configure"
4477 #include "confdefs.h"
4478 #include <wctype.h>
4480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4481 { (eval echo configure:4482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4483 if test -z "$ac_err"; then
4484 rm -rf conftest*
4485 eval "ac_cv_header_$ac_safe=yes"
4486 else
4487 echo "$ac_err" >&5
4488 echo "configure: failed program was:" >&5
4489 cat conftest.$ac_ext >&5
4490 rm -rf conftest*
4491 eval "ac_cv_header_$ac_safe=no"
4493 rm -f conftest*
4495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4496 echo "$ac_t""yes" 1>&6
4497 ac_has_wctype_h=yes
4498 else
4499 echo "$ac_t""no" 1>&6
4500 ac_has_wctype_h=no
4504 if test x"$ac_has_wchar_h" = xyes &&
4505 test x"$ac_has_wctype_h" = xyes &&
4506 test x"$enable_c_mbchar" != xno; then
4508 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4509 echo "configure:4510: checking for WCHAR_MIN and WCHAR_MAX" >&5
4510 cat > conftest.$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4513 #include <wchar.h>
4514 int main() {
4515 int i = WCHAR_MIN; int j = WCHAR_MAX;
4516 ; return 0; }
4518 if { (eval echo configure:4519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4519 rm -rf conftest*
4520 has_wchar_minmax=yes
4521 else
4522 echo "configure: failed program was:" >&5
4523 cat conftest.$ac_ext >&5
4524 rm -rf conftest*
4525 has_wchar_minmax=no
4527 rm -f conftest*
4528 echo "$ac_t""$has_wchar_minmax" 1>&6
4530 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4531 echo "configure:4532: checking for WEOF" >&5
4532 cat > conftest.$ac_ext <<EOF
4533 #line 4534 "configure"
4534 #include "confdefs.h"
4536 #include <wchar.h>
4537 #include <stddef.h>
4538 int main() {
4539 wint_t i = WEOF;
4540 ; return 0; }
4542 if { (eval echo configure:4543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4543 rm -rf conftest*
4544 has_weof=yes
4545 else
4546 echo "configure: failed program was:" >&5
4547 cat conftest.$ac_ext >&5
4548 rm -rf conftest*
4549 has_weof=no
4551 rm -f conftest*
4552 echo "$ac_t""$has_weof" 1>&6
4554 ac_wfuncs=yes
4555 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4558 echo "configure:4559: checking for $ac_func" >&5
4559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4560 echo $ac_n "(cached) $ac_c" 1>&6
4561 else
4562 cat > conftest.$ac_ext <<EOF
4563 #line 4564 "configure"
4564 #include "confdefs.h"
4565 /* System header to define __stub macros and hopefully few prototypes,
4566 which can conflict with char $ac_func(); below. */
4567 #include <assert.h>
4568 /* Override any gcc2 internal prototype to avoid an error. */
4569 /* We use char because int might match the return type of a gcc2
4570 builtin and then its argument prototype would still apply. */
4571 char $ac_func();
4573 int main() {
4575 /* The GNU C library defines this for functions which it implements
4576 to always fail with ENOSYS. Some functions are actually named
4577 something starting with __ and the normal name is an alias. */
4578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4579 choke me
4580 #else
4581 $ac_func();
4582 #endif
4584 ; return 0; }
4586 if { (eval echo configure:4587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4587 rm -rf conftest*
4588 eval "ac_cv_func_$ac_func=yes"
4589 else
4590 echo "configure: failed program was:" >&5
4591 cat conftest.$ac_ext >&5
4592 rm -rf conftest*
4593 eval "ac_cv_func_$ac_func=no"
4595 rm -f conftest*
4598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4599 echo "$ac_t""yes" 1>&6
4600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4601 cat >> confdefs.h <<EOF
4602 #define $ac_tr_func 1
4605 else
4606 echo "$ac_t""no" 1>&6
4608 ac_wfuncs=no
4610 done
4613 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4614 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4615 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4616 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4617 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4618 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4621 echo "configure:4622: checking for $ac_func" >&5
4622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4623 echo $ac_n "(cached) $ac_c" 1>&6
4624 else
4625 cat > conftest.$ac_ext <<EOF
4626 #line 4627 "configure"
4627 #include "confdefs.h"
4628 /* System header to define __stub macros and hopefully few prototypes,
4629 which can conflict with char $ac_func(); below. */
4630 #include <assert.h>
4631 /* Override any gcc2 internal prototype to avoid an error. */
4632 /* We use char because int might match the return type of a gcc2
4633 builtin and then its argument prototype would still apply. */
4634 char $ac_func();
4636 int main() {
4638 /* The GNU C library defines this for functions which it implements
4639 to always fail with ENOSYS. Some functions are actually named
4640 something starting with __ and the normal name is an alias. */
4641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4642 choke me
4643 #else
4644 $ac_func();
4645 #endif
4647 ; return 0; }
4649 if { (eval echo configure:4650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4650 rm -rf conftest*
4651 eval "ac_cv_func_$ac_func=yes"
4652 else
4653 echo "configure: failed program was:" >&5
4654 cat conftest.$ac_ext >&5
4655 rm -rf conftest*
4656 eval "ac_cv_func_$ac_func=no"
4658 rm -f conftest*
4661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4662 echo "$ac_t""yes" 1>&6
4663 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4664 cat >> confdefs.h <<EOF
4665 #define $ac_tr_func 1
4668 else
4669 echo "$ac_t""no" 1>&6
4671 ac_wfuncs=no
4673 done
4676 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4677 echo "configure:4678: checking for ISO C99 wchar_t support" >&5
4678 if test x"$has_weof" = xyes &&
4679 test x"$has_wchar_minmax" = xyes &&
4680 test x"$ac_wfuncs" = xyes; then
4681 ac_isoC99_wchar_t=yes
4682 else
4683 ac_isoC99_wchar_t=no
4685 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4687 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4688 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4689 echo "configure:4690: checking for iconv.h" >&5
4690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4691 echo $ac_n "(cached) $ac_c" 1>&6
4692 else
4693 cat > conftest.$ac_ext <<EOF
4694 #line 4695 "configure"
4695 #include "confdefs.h"
4696 #include <iconv.h>
4698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4699 { (eval echo configure:4700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4701 if test -z "$ac_err"; then
4702 rm -rf conftest*
4703 eval "ac_cv_header_$ac_safe=yes"
4704 else
4705 echo "$ac_err" >&5
4706 echo "configure: failed program was:" >&5
4707 cat conftest.$ac_ext >&5
4708 rm -rf conftest*
4709 eval "ac_cv_header_$ac_safe=no"
4711 rm -f conftest*
4713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4714 echo "$ac_t""yes" 1>&6
4715 ac_has_iconv_h=yes
4716 else
4717 echo "$ac_t""no" 1>&6
4718 ac_has_iconv_h=no
4721 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4722 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4723 echo "configure:4724: checking for langinfo.h" >&5
4724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4725 echo $ac_n "(cached) $ac_c" 1>&6
4726 else
4727 cat > conftest.$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4730 #include <langinfo.h>
4732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4733 { (eval echo configure:4734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4735 if test -z "$ac_err"; then
4736 rm -rf conftest*
4737 eval "ac_cv_header_$ac_safe=yes"
4738 else
4739 echo "$ac_err" >&5
4740 echo "configure: failed program was:" >&5
4741 cat conftest.$ac_ext >&5
4742 rm -rf conftest*
4743 eval "ac_cv_header_$ac_safe=no"
4745 rm -f conftest*
4747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4748 echo "$ac_t""yes" 1>&6
4749 ac_has_langinfo_h=yes
4750 else
4751 echo "$ac_t""no" 1>&6
4752 ac_has_langinfo_h=no
4756 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4757 echo "configure:4758: checking for iconv in -liconv" >&5
4758 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4760 echo $ac_n "(cached) $ac_c" 1>&6
4761 else
4762 ac_save_LIBS="$LIBS"
4763 LIBS="-liconv $LIBS"
4764 cat > conftest.$ac_ext <<EOF
4765 #line 4766 "configure"
4766 #include "confdefs.h"
4767 /* Override any gcc2 internal prototype to avoid an error. */
4768 /* We use char because int might match the return type of a gcc2
4769 builtin and then its argument prototype would still apply. */
4770 char iconv();
4772 int main() {
4773 iconv()
4774 ; return 0; }
4776 if { (eval echo configure:4777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4777 rm -rf conftest*
4778 eval "ac_cv_lib_$ac_lib_var=yes"
4779 else
4780 echo "configure: failed program was:" >&5
4781 cat conftest.$ac_ext >&5
4782 rm -rf conftest*
4783 eval "ac_cv_lib_$ac_lib_var=no"
4785 rm -f conftest*
4786 LIBS="$ac_save_LIBS"
4789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4790 echo "$ac_t""yes" 1>&6
4791 libiconv="-liconv"
4792 else
4793 echo "$ac_t""no" 1>&6
4796 ac_save_LIBS="$LIBS"
4797 LIBS="$LIBS $libiconv"
4799 for ac_func in iconv_open iconv_close iconv nl_langinfo
4801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4802 echo "configure:4803: checking for $ac_func" >&5
4803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4804 echo $ac_n "(cached) $ac_c" 1>&6
4805 else
4806 cat > conftest.$ac_ext <<EOF
4807 #line 4808 "configure"
4808 #include "confdefs.h"
4809 /* System header to define __stub macros and hopefully few prototypes,
4810 which can conflict with char $ac_func(); below. */
4811 #include <assert.h>
4812 /* Override any gcc2 internal prototype to avoid an error. */
4813 /* We use char because int might match the return type of a gcc2
4814 builtin and then its argument prototype would still apply. */
4815 char $ac_func();
4817 int main() {
4819 /* The GNU C library defines this for functions which it implements
4820 to always fail with ENOSYS. Some functions are actually named
4821 something starting with __ and the normal name is an alias. */
4822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4823 choke me
4824 #else
4825 $ac_func();
4826 #endif
4828 ; return 0; }
4830 if { (eval echo configure:4831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4831 rm -rf conftest*
4832 eval "ac_cv_func_$ac_func=yes"
4833 else
4834 echo "configure: failed program was:" >&5
4835 cat conftest.$ac_ext >&5
4836 rm -rf conftest*
4837 eval "ac_cv_func_$ac_func=no"
4839 rm -f conftest*
4842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4843 echo "$ac_t""yes" 1>&6
4844 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4845 cat >> confdefs.h <<EOF
4846 #define $ac_tr_func 1
4849 ac_XPG2funcs=yes
4850 else
4851 echo "$ac_t""no" 1>&6
4852 ac_XPG2funcs=no
4854 done
4857 LIBS="$ac_save_LIBS"
4859 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4860 echo "configure:4861: checking for XPG2 wchar_t support" >&5
4861 if test x"$ac_has_iconv_h" = xyes &&
4862 test x"$ac_has_langinfo_h" = xyes &&
4863 test x"$ac_XPG2funcs" = xyes; then
4864 ac_XPG2_wchar_t=yes
4865 else
4866 ac_XPG2_wchar_t=no
4868 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4870 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4871 echo "configure:4872: checking for enabled wchar_t specializations" >&5
4872 if test x"$ac_isoC99_wchar_t" = xyes &&
4873 test x"$ac_XPG2_wchar_t" = xyes; then
4874 cat >> confdefs.h <<\EOF
4875 #define _GLIBCPP_USE_WCHAR_T 1
4878 echo "$ac_t"""yes"" 1>&6
4879 else
4880 echo "$ac_t"""no"" 1>&6
4882 else
4883 echo "configure: warning: wchar_t support disabled." 1>&2
4886 os_include_dir="config/os/gnu-linux"
4887 # GLIBCPP_CHECK_STDLIB_SUPPORT
4888 cat >> confdefs.h <<\EOF
4889 #define HAVE_STRTOF 1
4892 cat >> confdefs.h <<\EOF
4893 #define HAVE_STRTOLD 1
4896 # AC_FUNC_MMAP
4897 cat >> confdefs.h <<\EOF
4898 #define HAVE_MMAP 1
4903 # We assume newlib.
4904 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4905 # GLIBCPP_CHECK_MATH_SUPPORT
4906 cat >> confdefs.h <<\EOF
4907 #define HAVE_FINITE 1
4910 cat >> confdefs.h <<\EOF
4911 #define HAVE_HYPOT 1
4914 cat >> confdefs.h <<\EOF
4915 #define HAVE_ISNAN 1
4918 cat >> confdefs.h <<\EOF
4919 #define HAVE_ISINF 1
4923 cat >> confdefs.h <<\EOF
4924 #define HAVE_ACOSF 1
4927 cat >> confdefs.h <<\EOF
4928 #define HAVE_ASINF 1
4931 cat >> confdefs.h <<\EOF
4932 #define HAVE_ATAN2F 1
4935 cat >> confdefs.h <<\EOF
4936 #define HAVE_ATANF 1
4939 cat >> confdefs.h <<\EOF
4940 #define HAVE_CEILF 1
4943 cat >> confdefs.h <<\EOF
4944 #define HAVE_COSF 1
4947 cat >> confdefs.h <<\EOF
4948 #define HAVE_COSHF 1
4951 cat >> confdefs.h <<\EOF
4952 #define HAVE_EXPF 1
4955 cat >> confdefs.h <<\EOF
4956 #define HAVE_FABSF 1
4959 cat >> confdefs.h <<\EOF
4960 #define HAVE_FLOORF 1
4963 cat >> confdefs.h <<\EOF
4964 #define HAVE_FMODF 1
4967 cat >> confdefs.h <<\EOF
4968 #define HAVE_HYPOTF 1
4971 cat >> confdefs.h <<\EOF
4972 #define HAVE_ISNANF 1
4975 cat >> confdefs.h <<\EOF
4976 #define HAVE_ISINFF 1
4979 cat >> confdefs.h <<\EOF
4980 #define HAVE_LDEXPF 1
4983 cat >> confdefs.h <<\EOF
4984 #define HAVE_LOG10F 1
4987 cat >> confdefs.h <<\EOF
4988 #define HAVE_LOGF 1
4991 cat >> confdefs.h <<\EOF
4992 #define HAVE_MODFF 1
4995 cat >> confdefs.h <<\EOF
4996 #define HAVE_POWF 1
4999 cat >> confdefs.h <<\EOF
5000 #define HAVE_SINF 1
5003 cat >> confdefs.h <<\EOF
5004 #define HAVE_SINHF 1
5007 cat >> confdefs.h <<\EOF
5008 #define HAVE_SQRTF 1
5011 cat >> confdefs.h <<\EOF
5012 #define HAVE_TANF 1
5015 cat >> confdefs.h <<\EOF
5016 #define HAVE_TANHF 1
5020 os_include_dir="config/os/newlib"
5022 esac
5023 else
5025 # We are being configured natively. We can do more elaborate tests
5026 # that include AC_TRY_COMPILE now, as the linker is assumed to be
5027 # working.
5028 GLIBCPP_IS_CROSS_COMPILING=0
5029 CANADIAN=no
5031 # Check for available headers.
5032 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
5033 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
5035 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5036 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5037 echo "configure:5038: checking for $ac_hdr" >&5
5038 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5039 echo $ac_n "(cached) $ac_c" 1>&6
5040 else
5041 cat > conftest.$ac_ext <<EOF
5042 #line 5043 "configure"
5043 #include "confdefs.h"
5044 #include <$ac_hdr>
5046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5047 { (eval echo configure:5048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5049 if test -z "$ac_err"; then
5050 rm -rf conftest*
5051 eval "ac_cv_header_$ac_safe=yes"
5052 else
5053 echo "$ac_err" >&5
5054 echo "configure: failed program was:" >&5
5055 cat conftest.$ac_ext >&5
5056 rm -rf conftest*
5057 eval "ac_cv_header_$ac_safe=no"
5059 rm -f conftest*
5061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5062 echo "$ac_t""yes" 1>&6
5063 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5064 cat >> confdefs.h <<EOF
5065 #define $ac_tr_hdr 1
5068 else
5069 echo "$ac_t""no" 1>&6
5071 done
5075 # All these tests are for C++; save the language and the compiler flags.
5076 # The CXXFLAGS thing is suspicious, but based on similar bits previously
5077 # found in GLIBCPP_CONFIGURE.
5079 ac_ext=C
5080 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5081 ac_cpp='$CXXCPP $CPPFLAGS'
5082 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5083 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5084 cross_compiling=$ac_cv_prog_cxx_cross
5086 ac_test_CXXFLAGS="${CXXFLAGS+set}"
5087 ac_save_CXXFLAGS="$CXXFLAGS"
5089 # Check for maintainer-mode bits.
5090 if test x"$USE_MAINTAINER_MODE" = xno; then
5091 WERROR=''
5092 else
5093 WERROR='-Werror'
5096 # Check for -ffunction-sections -fdata-sections
5097 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
5098 echo "configure:5099: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
5099 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
5100 cat > conftest.$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5104 int main() {
5105 int foo;
5107 ; return 0; }
5109 if { (eval echo configure:5110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5110 rm -rf conftest*
5111 ac_fdsections=yes
5112 else
5113 echo "configure: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5115 rm -rf conftest*
5116 ac_fdsections=no
5118 rm -f conftest*
5119 if test "$ac_test_CXXFLAGS" = set; then
5120 CXXFLAGS="$ac_save_CXXFLAGS"
5121 else
5122 # this is the suspicious part
5123 CXXFLAGS=''
5125 if test x"$ac_fdsections" = x"yes" &&
5126 test x"$enable_debug" = x"no"; then
5127 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5129 echo "$ac_t""$ac_fdsections" 1>&6
5131 ac_ext=c
5132 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5133 ac_cpp='$CPP $CPPFLAGS'
5134 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5135 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5136 cross_compiling=$ac_cv_prog_cc_cross
5142 # If we're not using GNU ld, then there's no point in even trying these
5143 # tests. Check for that first. We should have already tested for gld
5144 # by now (in libtool), but require it now just to be safe...
5145 SECTION_LDFLAGS=''
5146 OPT_LDFLAGS=''
5149 # Set --gc-sections.
5150 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
5151 # GNU ld it is! Joy and bunny rabbits!
5153 # All these tests are for C++; save the language and the compiler flags.
5154 # Need to do this so that g++ won't try to link in libstdc++
5155 ac_test_CFLAGS="${CFLAGS+set}"
5156 ac_save_CFLAGS="$CFLAGS"
5157 CFLAGS='-x c++ -Wl,--gc-sections'
5159 # Check for -Wl,--gc-sections
5160 # XXX This test is broken at the moment, as symbols required for
5161 # linking are now in libsupc++ (not built yet.....). In addition,
5162 # this test has cored on solaris in the past. In addition,
5163 # --gc-sections doesn't really work at the moment (keeps on discarding
5164 # used sections, first .eh_frame and now some of the glibc sections for
5165 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5166 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5167 echo "configure:5168: checking for ld that supports -Wl,--gc-sections" >&5
5168 if test "$cross_compiling" = yes; then
5169 ac_sectionLDflags=yes
5170 else
5171 cat > conftest.$ac_ext <<EOF
5172 #line 5173 "configure"
5173 #include "confdefs.h"
5175 int main(void)
5177 try { throw 1; }
5178 catch (...) { };
5179 return 0;
5183 if { (eval echo configure:5184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5184 then
5185 ac_sectionLDflags=yes
5186 else
5187 echo "configure: failed program was:" >&5
5188 cat conftest.$ac_ext >&5
5189 rm -fr conftest*
5190 ac_sectionLFflags=no
5192 rm -fr conftest*
5195 if test "$ac_test_CFLAGS" = set; then
5196 CFLAGS="$ac_save_CFLAGS"
5197 else
5198 # this is the suspicious part
5199 CFLAGS=''
5201 if test "$ac_sectionLDflags" = "yes"; then
5202 SECTION_LDFLAGS='-Wl,--gc-sections'
5204 echo "$ac_t""$ac_sectionLDflags" 1>&6
5207 # Set linker optimization flags.
5208 if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
5209 test x"$enable_debug" = x"no"; then
5210 OPT_LDFLAGS='-Wl,-O1'
5218 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5219 echo "configure:5220: checking for __builtin_abs declaration" >&5
5220 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5221 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5222 echo $ac_n "(cached) $ac_c" 1>&6
5223 else
5226 ac_ext=C
5227 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5228 ac_cpp='$CXXCPP $CPPFLAGS'
5229 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5230 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5231 cross_compiling=$ac_cv_prog_cxx_cross
5233 cat > conftest.$ac_ext <<EOF
5234 #line 5235 "configure"
5235 #include "confdefs.h"
5236 #include <math.h>
5237 int main() {
5238 __builtin_abs(0);
5239 ; return 0; }
5241 if { (eval echo configure:5242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5242 rm -rf conftest*
5243 glibcpp_cv_func___builtin_abs_use=yes
5244 else
5245 echo "configure: failed program was:" >&5
5246 cat conftest.$ac_ext >&5
5247 rm -rf conftest*
5248 glibcpp_cv_func___builtin_abs_use=no
5250 rm -f conftest*
5251 ac_ext=c
5252 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5253 ac_cpp='$CPP $CPPFLAGS'
5254 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5255 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5256 cross_compiling=$ac_cv_prog_cc_cross
5262 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5263 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5264 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5265 echo "configure:5266: checking for __builtin_abs linkage" >&5
5266 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5267 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5268 echo $ac_n "(cached) $ac_c" 1>&6
5269 else
5271 cat > conftest.$ac_ext <<EOF
5272 #line 5273 "configure"
5273 #include "confdefs.h"
5274 #include <math.h>
5275 int main() {
5276 __builtin_abs(0);
5277 ; return 0; }
5279 if { (eval echo configure:5280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5280 rm -rf conftest*
5281 glibcpp_cv_func___builtin_abs_link=yes
5282 else
5283 echo "configure: failed program was:" >&5
5284 cat conftest.$ac_ext >&5
5285 rm -rf conftest*
5286 glibcpp_cv_func___builtin_abs_link=no
5288 rm -f conftest*
5293 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5294 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5295 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5296 cat >> confdefs.h <<EOF
5297 #define ${ac_tr_func} 1
5304 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5305 echo "configure:5306: checking for __builtin_fabsf declaration" >&5
5306 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5307 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5308 echo $ac_n "(cached) $ac_c" 1>&6
5309 else
5312 ac_ext=C
5313 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5314 ac_cpp='$CXXCPP $CPPFLAGS'
5315 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5316 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5317 cross_compiling=$ac_cv_prog_cxx_cross
5319 cat > conftest.$ac_ext <<EOF
5320 #line 5321 "configure"
5321 #include "confdefs.h"
5322 #include <math.h>
5323 int main() {
5324 __builtin_fabsf(0);
5325 ; return 0; }
5327 if { (eval echo configure:5328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5328 rm -rf conftest*
5329 glibcpp_cv_func___builtin_fabsf_use=yes
5330 else
5331 echo "configure: failed program was:" >&5
5332 cat conftest.$ac_ext >&5
5333 rm -rf conftest*
5334 glibcpp_cv_func___builtin_fabsf_use=no
5336 rm -f conftest*
5337 ac_ext=c
5338 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5339 ac_cpp='$CPP $CPPFLAGS'
5340 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5341 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5342 cross_compiling=$ac_cv_prog_cc_cross
5348 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5349 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5350 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5351 echo "configure:5352: checking for __builtin_fabsf linkage" >&5
5352 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5353 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5354 echo $ac_n "(cached) $ac_c" 1>&6
5355 else
5357 cat > conftest.$ac_ext <<EOF
5358 #line 5359 "configure"
5359 #include "confdefs.h"
5360 #include <math.h>
5361 int main() {
5362 __builtin_fabsf(0);
5363 ; return 0; }
5365 if { (eval echo configure:5366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5366 rm -rf conftest*
5367 glibcpp_cv_func___builtin_fabsf_link=yes
5368 else
5369 echo "configure: failed program was:" >&5
5370 cat conftest.$ac_ext >&5
5371 rm -rf conftest*
5372 glibcpp_cv_func___builtin_fabsf_link=no
5374 rm -f conftest*
5379 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5380 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5381 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5382 cat >> confdefs.h <<EOF
5383 #define ${ac_tr_func} 1
5390 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5391 echo "configure:5392: checking for __builtin_fabs declaration" >&5
5392 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5393 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5395 else
5398 ac_ext=C
5399 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5400 ac_cpp='$CXXCPP $CPPFLAGS'
5401 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5402 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5403 cross_compiling=$ac_cv_prog_cxx_cross
5405 cat > conftest.$ac_ext <<EOF
5406 #line 5407 "configure"
5407 #include "confdefs.h"
5408 #include <math.h>
5409 int main() {
5410 __builtin_fabs(0);
5411 ; return 0; }
5413 if { (eval echo configure:5414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5414 rm -rf conftest*
5415 glibcpp_cv_func___builtin_fabs_use=yes
5416 else
5417 echo "configure: failed program was:" >&5
5418 cat conftest.$ac_ext >&5
5419 rm -rf conftest*
5420 glibcpp_cv_func___builtin_fabs_use=no
5422 rm -f conftest*
5423 ac_ext=c
5424 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5425 ac_cpp='$CPP $CPPFLAGS'
5426 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5427 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5428 cross_compiling=$ac_cv_prog_cc_cross
5434 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5435 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5436 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5437 echo "configure:5438: checking for __builtin_fabs linkage" >&5
5438 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5439 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5440 echo $ac_n "(cached) $ac_c" 1>&6
5441 else
5443 cat > conftest.$ac_ext <<EOF
5444 #line 5445 "configure"
5445 #include "confdefs.h"
5446 #include <math.h>
5447 int main() {
5448 __builtin_fabs(0);
5449 ; return 0; }
5451 if { (eval echo configure:5452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5452 rm -rf conftest*
5453 glibcpp_cv_func___builtin_fabs_link=yes
5454 else
5455 echo "configure: failed program was:" >&5
5456 cat conftest.$ac_ext >&5
5457 rm -rf conftest*
5458 glibcpp_cv_func___builtin_fabs_link=no
5460 rm -f conftest*
5465 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5466 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5467 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5468 cat >> confdefs.h <<EOF
5469 #define ${ac_tr_func} 1
5476 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5477 echo "configure:5478: checking for __builtin_fabsl declaration" >&5
5478 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5479 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5480 echo $ac_n "(cached) $ac_c" 1>&6
5481 else
5484 ac_ext=C
5485 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5486 ac_cpp='$CXXCPP $CPPFLAGS'
5487 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5488 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5489 cross_compiling=$ac_cv_prog_cxx_cross
5491 cat > conftest.$ac_ext <<EOF
5492 #line 5493 "configure"
5493 #include "confdefs.h"
5494 #include <math.h>
5495 int main() {
5496 __builtin_fabsl(0);
5497 ; return 0; }
5499 if { (eval echo configure:5500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5500 rm -rf conftest*
5501 glibcpp_cv_func___builtin_fabsl_use=yes
5502 else
5503 echo "configure: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
5505 rm -rf conftest*
5506 glibcpp_cv_func___builtin_fabsl_use=no
5508 rm -f conftest*
5509 ac_ext=c
5510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5511 ac_cpp='$CPP $CPPFLAGS'
5512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5513 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5514 cross_compiling=$ac_cv_prog_cc_cross
5520 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5521 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5522 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5523 echo "configure:5524: checking for __builtin_fabsl linkage" >&5
5524 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5525 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5526 echo $ac_n "(cached) $ac_c" 1>&6
5527 else
5529 cat > conftest.$ac_ext <<EOF
5530 #line 5531 "configure"
5531 #include "confdefs.h"
5532 #include <math.h>
5533 int main() {
5534 __builtin_fabsl(0);
5535 ; return 0; }
5537 if { (eval echo configure:5538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5538 rm -rf conftest*
5539 glibcpp_cv_func___builtin_fabsl_link=yes
5540 else
5541 echo "configure: failed program was:" >&5
5542 cat conftest.$ac_ext >&5
5543 rm -rf conftest*
5544 glibcpp_cv_func___builtin_fabsl_link=no
5546 rm -f conftest*
5551 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5552 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5553 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5554 cat >> confdefs.h <<EOF
5555 #define ${ac_tr_func} 1
5562 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5563 echo "configure:5564: checking for __builtin_labs declaration" >&5
5564 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5565 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5566 echo $ac_n "(cached) $ac_c" 1>&6
5567 else
5570 ac_ext=C
5571 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5572 ac_cpp='$CXXCPP $CPPFLAGS'
5573 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5574 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5575 cross_compiling=$ac_cv_prog_cxx_cross
5577 cat > conftest.$ac_ext <<EOF
5578 #line 5579 "configure"
5579 #include "confdefs.h"
5580 #include <math.h>
5581 int main() {
5582 __builtin_labs(0);
5583 ; return 0; }
5585 if { (eval echo configure:5586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5586 rm -rf conftest*
5587 glibcpp_cv_func___builtin_labs_use=yes
5588 else
5589 echo "configure: failed program was:" >&5
5590 cat conftest.$ac_ext >&5
5591 rm -rf conftest*
5592 glibcpp_cv_func___builtin_labs_use=no
5594 rm -f conftest*
5595 ac_ext=c
5596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5597 ac_cpp='$CPP $CPPFLAGS'
5598 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5599 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5600 cross_compiling=$ac_cv_prog_cc_cross
5606 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5607 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5608 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5609 echo "configure:5610: checking for __builtin_labs linkage" >&5
5610 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5611 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5612 echo $ac_n "(cached) $ac_c" 1>&6
5613 else
5615 cat > conftest.$ac_ext <<EOF
5616 #line 5617 "configure"
5617 #include "confdefs.h"
5618 #include <math.h>
5619 int main() {
5620 __builtin_labs(0);
5621 ; return 0; }
5623 if { (eval echo configure:5624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5624 rm -rf conftest*
5625 glibcpp_cv_func___builtin_labs_link=yes
5626 else
5627 echo "configure: failed program was:" >&5
5628 cat conftest.$ac_ext >&5
5629 rm -rf conftest*
5630 glibcpp_cv_func___builtin_labs_link=no
5632 rm -f conftest*
5637 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5638 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5639 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5640 cat >> confdefs.h <<EOF
5641 #define ${ac_tr_func} 1
5649 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5650 echo "configure:5651: checking for __builtin_sqrtf declaration" >&5
5651 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5652 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5653 echo $ac_n "(cached) $ac_c" 1>&6
5654 else
5657 ac_ext=C
5658 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5659 ac_cpp='$CXXCPP $CPPFLAGS'
5660 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5661 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5662 cross_compiling=$ac_cv_prog_cxx_cross
5664 cat > conftest.$ac_ext <<EOF
5665 #line 5666 "configure"
5666 #include "confdefs.h"
5667 #include <math.h>
5668 int main() {
5669 __builtin_sqrtf(0);
5670 ; return 0; }
5672 if { (eval echo configure:5673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5673 rm -rf conftest*
5674 glibcpp_cv_func___builtin_sqrtf_use=yes
5675 else
5676 echo "configure: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5678 rm -rf conftest*
5679 glibcpp_cv_func___builtin_sqrtf_use=no
5681 rm -f conftest*
5682 ac_ext=c
5683 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5684 ac_cpp='$CPP $CPPFLAGS'
5685 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5686 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5687 cross_compiling=$ac_cv_prog_cc_cross
5693 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5694 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5695 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5696 echo "configure:5697: checking for __builtin_sqrtf linkage" >&5
5697 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5698 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5699 echo $ac_n "(cached) $ac_c" 1>&6
5700 else
5702 cat > conftest.$ac_ext <<EOF
5703 #line 5704 "configure"
5704 #include "confdefs.h"
5705 #include <math.h>
5706 int main() {
5707 __builtin_sqrtf(0);
5708 ; return 0; }
5710 if { (eval echo configure:5711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5711 rm -rf conftest*
5712 glibcpp_cv_func___builtin_sqrtf_link=yes
5713 else
5714 echo "configure: failed program was:" >&5
5715 cat conftest.$ac_ext >&5
5716 rm -rf conftest*
5717 glibcpp_cv_func___builtin_sqrtf_link=no
5719 rm -f conftest*
5724 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5725 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5726 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5727 cat >> confdefs.h <<EOF
5728 #define ${ac_tr_func} 1
5735 echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5736 echo "configure:5737: checking for __builtin_fsqrt declaration" >&5
5737 if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5738 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5739 echo $ac_n "(cached) $ac_c" 1>&6
5740 else
5743 ac_ext=C
5744 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5745 ac_cpp='$CXXCPP $CPPFLAGS'
5746 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5747 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5748 cross_compiling=$ac_cv_prog_cxx_cross
5750 cat > conftest.$ac_ext <<EOF
5751 #line 5752 "configure"
5752 #include "confdefs.h"
5753 #include <math.h>
5754 int main() {
5755 __builtin_fsqrt(0);
5756 ; return 0; }
5758 if { (eval echo configure:5759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5759 rm -rf conftest*
5760 glibcpp_cv_func___builtin_fsqrt_use=yes
5761 else
5762 echo "configure: failed program was:" >&5
5763 cat conftest.$ac_ext >&5
5764 rm -rf conftest*
5765 glibcpp_cv_func___builtin_fsqrt_use=no
5767 rm -f conftest*
5768 ac_ext=c
5769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5770 ac_cpp='$CPP $CPPFLAGS'
5771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5773 cross_compiling=$ac_cv_prog_cc_cross
5779 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5780 if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5781 echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5782 echo "configure:5783: checking for __builtin_fsqrt linkage" >&5
5783 if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5784 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5785 echo $ac_n "(cached) $ac_c" 1>&6
5786 else
5788 cat > conftest.$ac_ext <<EOF
5789 #line 5790 "configure"
5790 #include "confdefs.h"
5791 #include <math.h>
5792 int main() {
5793 __builtin_fsqrt(0);
5794 ; return 0; }
5796 if { (eval echo configure:5797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5797 rm -rf conftest*
5798 glibcpp_cv_func___builtin_fsqrt_link=yes
5799 else
5800 echo "configure: failed program was:" >&5
5801 cat conftest.$ac_ext >&5
5802 rm -rf conftest*
5803 glibcpp_cv_func___builtin_fsqrt_link=no
5805 rm -f conftest*
5810 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5811 if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5812 ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5813 cat >> confdefs.h <<EOF
5814 #define ${ac_tr_func} 1
5821 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5822 echo "configure:5823: checking for __builtin_sqrtl declaration" >&5
5823 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5824 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5825 echo $ac_n "(cached) $ac_c" 1>&6
5826 else
5829 ac_ext=C
5830 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5831 ac_cpp='$CXXCPP $CPPFLAGS'
5832 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5833 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5834 cross_compiling=$ac_cv_prog_cxx_cross
5836 cat > conftest.$ac_ext <<EOF
5837 #line 5838 "configure"
5838 #include "confdefs.h"
5839 #include <math.h>
5840 int main() {
5841 __builtin_sqrtl(0);
5842 ; return 0; }
5844 if { (eval echo configure:5845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5845 rm -rf conftest*
5846 glibcpp_cv_func___builtin_sqrtl_use=yes
5847 else
5848 echo "configure: failed program was:" >&5
5849 cat conftest.$ac_ext >&5
5850 rm -rf conftest*
5851 glibcpp_cv_func___builtin_sqrtl_use=no
5853 rm -f conftest*
5854 ac_ext=c
5855 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5856 ac_cpp='$CPP $CPPFLAGS'
5857 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5858 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5859 cross_compiling=$ac_cv_prog_cc_cross
5865 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5866 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5867 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5868 echo "configure:5869: checking for __builtin_sqrtl linkage" >&5
5869 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5870 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5871 echo $ac_n "(cached) $ac_c" 1>&6
5872 else
5874 cat > conftest.$ac_ext <<EOF
5875 #line 5876 "configure"
5876 #include "confdefs.h"
5877 #include <math.h>
5878 int main() {
5879 __builtin_sqrtl(0);
5880 ; return 0; }
5882 if { (eval echo configure:5883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5883 rm -rf conftest*
5884 glibcpp_cv_func___builtin_sqrtl_link=yes
5885 else
5886 echo "configure: failed program was:" >&5
5887 cat conftest.$ac_ext >&5
5888 rm -rf conftest*
5889 glibcpp_cv_func___builtin_sqrtl_link=no
5891 rm -f conftest*
5896 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5897 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5898 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5899 cat >> confdefs.h <<EOF
5900 #define ${ac_tr_func} 1
5908 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5909 echo "configure:5910: checking for __builtin_sinf declaration" >&5
5910 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5911 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5912 echo $ac_n "(cached) $ac_c" 1>&6
5913 else
5916 ac_ext=C
5917 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5918 ac_cpp='$CXXCPP $CPPFLAGS'
5919 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5920 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5921 cross_compiling=$ac_cv_prog_cxx_cross
5923 cat > conftest.$ac_ext <<EOF
5924 #line 5925 "configure"
5925 #include "confdefs.h"
5926 #include <math.h>
5927 int main() {
5928 __builtin_sinf(0);
5929 ; return 0; }
5931 if { (eval echo configure:5932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5932 rm -rf conftest*
5933 glibcpp_cv_func___builtin_sinf_use=yes
5934 else
5935 echo "configure: failed program was:" >&5
5936 cat conftest.$ac_ext >&5
5937 rm -rf conftest*
5938 glibcpp_cv_func___builtin_sinf_use=no
5940 rm -f conftest*
5941 ac_ext=c
5942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5943 ac_cpp='$CPP $CPPFLAGS'
5944 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5945 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5946 cross_compiling=$ac_cv_prog_cc_cross
5952 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5953 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5954 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5955 echo "configure:5956: checking for __builtin_sinf linkage" >&5
5956 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5957 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5958 echo $ac_n "(cached) $ac_c" 1>&6
5959 else
5961 cat > conftest.$ac_ext <<EOF
5962 #line 5963 "configure"
5963 #include "confdefs.h"
5964 #include <math.h>
5965 int main() {
5966 __builtin_sinf(0);
5967 ; return 0; }
5969 if { (eval echo configure:5970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5970 rm -rf conftest*
5971 glibcpp_cv_func___builtin_sinf_link=yes
5972 else
5973 echo "configure: failed program was:" >&5
5974 cat conftest.$ac_ext >&5
5975 rm -rf conftest*
5976 glibcpp_cv_func___builtin_sinf_link=no
5978 rm -f conftest*
5983 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5984 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5985 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5986 cat >> confdefs.h <<EOF
5987 #define ${ac_tr_func} 1
5994 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5995 echo "configure:5996: checking for __builtin_sin declaration" >&5
5996 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5997 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
5998 echo $ac_n "(cached) $ac_c" 1>&6
5999 else
6002 ac_ext=C
6003 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6004 ac_cpp='$CXXCPP $CPPFLAGS'
6005 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6006 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6007 cross_compiling=$ac_cv_prog_cxx_cross
6009 cat > conftest.$ac_ext <<EOF
6010 #line 6011 "configure"
6011 #include "confdefs.h"
6012 #include <math.h>
6013 int main() {
6014 __builtin_sin(0);
6015 ; return 0; }
6017 if { (eval echo configure:6018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6018 rm -rf conftest*
6019 glibcpp_cv_func___builtin_sin_use=yes
6020 else
6021 echo "configure: failed program was:" >&5
6022 cat conftest.$ac_ext >&5
6023 rm -rf conftest*
6024 glibcpp_cv_func___builtin_sin_use=no
6026 rm -f conftest*
6027 ac_ext=c
6028 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6029 ac_cpp='$CPP $CPPFLAGS'
6030 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6031 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6032 cross_compiling=$ac_cv_prog_cc_cross
6038 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
6039 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
6040 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
6041 echo "configure:6042: checking for __builtin_sin linkage" >&5
6042 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
6043 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
6044 echo $ac_n "(cached) $ac_c" 1>&6
6045 else
6047 cat > conftest.$ac_ext <<EOF
6048 #line 6049 "configure"
6049 #include "confdefs.h"
6050 #include <math.h>
6051 int main() {
6052 __builtin_sin(0);
6053 ; return 0; }
6055 if { (eval echo configure:6056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6056 rm -rf conftest*
6057 glibcpp_cv_func___builtin_sin_link=yes
6058 else
6059 echo "configure: failed program was:" >&5
6060 cat conftest.$ac_ext >&5
6061 rm -rf conftest*
6062 glibcpp_cv_func___builtin_sin_link=no
6064 rm -f conftest*
6069 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
6070 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
6071 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6072 cat >> confdefs.h <<EOF
6073 #define ${ac_tr_func} 1
6080 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
6081 echo "configure:6082: checking for __builtin_sinl declaration" >&5
6082 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
6083 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
6084 echo $ac_n "(cached) $ac_c" 1>&6
6085 else
6088 ac_ext=C
6089 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6090 ac_cpp='$CXXCPP $CPPFLAGS'
6091 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6092 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6093 cross_compiling=$ac_cv_prog_cxx_cross
6095 cat > conftest.$ac_ext <<EOF
6096 #line 6097 "configure"
6097 #include "confdefs.h"
6098 #include <math.h>
6099 int main() {
6100 __builtin_sinl(0);
6101 ; return 0; }
6103 if { (eval echo configure:6104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6104 rm -rf conftest*
6105 glibcpp_cv_func___builtin_sinl_use=yes
6106 else
6107 echo "configure: failed program was:" >&5
6108 cat conftest.$ac_ext >&5
6109 rm -rf conftest*
6110 glibcpp_cv_func___builtin_sinl_use=no
6112 rm -f conftest*
6113 ac_ext=c
6114 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6115 ac_cpp='$CPP $CPPFLAGS'
6116 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6117 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6118 cross_compiling=$ac_cv_prog_cc_cross
6124 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
6125 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
6126 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
6127 echo "configure:6128: checking for __builtin_sinl linkage" >&5
6128 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
6129 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
6130 echo $ac_n "(cached) $ac_c" 1>&6
6131 else
6133 cat > conftest.$ac_ext <<EOF
6134 #line 6135 "configure"
6135 #include "confdefs.h"
6136 #include <math.h>
6137 int main() {
6138 __builtin_sinl(0);
6139 ; return 0; }
6141 if { (eval echo configure:6142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6142 rm -rf conftest*
6143 glibcpp_cv_func___builtin_sinl_link=yes
6144 else
6145 echo "configure: failed program was:" >&5
6146 cat conftest.$ac_ext >&5
6147 rm -rf conftest*
6148 glibcpp_cv_func___builtin_sinl_link=no
6150 rm -f conftest*
6155 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
6156 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
6157 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6158 cat >> confdefs.h <<EOF
6159 #define ${ac_tr_func} 1
6167 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
6168 echo "configure:6169: checking for __builtin_cosf declaration" >&5
6169 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
6170 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
6171 echo $ac_n "(cached) $ac_c" 1>&6
6172 else
6175 ac_ext=C
6176 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6177 ac_cpp='$CXXCPP $CPPFLAGS'
6178 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6179 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6180 cross_compiling=$ac_cv_prog_cxx_cross
6182 cat > conftest.$ac_ext <<EOF
6183 #line 6184 "configure"
6184 #include "confdefs.h"
6185 #include <math.h>
6186 int main() {
6187 __builtin_cosf(0);
6188 ; return 0; }
6190 if { (eval echo configure:6191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6191 rm -rf conftest*
6192 glibcpp_cv_func___builtin_cosf_use=yes
6193 else
6194 echo "configure: failed program was:" >&5
6195 cat conftest.$ac_ext >&5
6196 rm -rf conftest*
6197 glibcpp_cv_func___builtin_cosf_use=no
6199 rm -f conftest*
6200 ac_ext=c
6201 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6202 ac_cpp='$CPP $CPPFLAGS'
6203 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6204 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6205 cross_compiling=$ac_cv_prog_cc_cross
6211 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6212 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6213 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6214 echo "configure:6215: checking for __builtin_cosf linkage" >&5
6215 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6216 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6217 echo $ac_n "(cached) $ac_c" 1>&6
6218 else
6220 cat > conftest.$ac_ext <<EOF
6221 #line 6222 "configure"
6222 #include "confdefs.h"
6223 #include <math.h>
6224 int main() {
6225 __builtin_cosf(0);
6226 ; return 0; }
6228 if { (eval echo configure:6229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6229 rm -rf conftest*
6230 glibcpp_cv_func___builtin_cosf_link=yes
6231 else
6232 echo "configure: failed program was:" >&5
6233 cat conftest.$ac_ext >&5
6234 rm -rf conftest*
6235 glibcpp_cv_func___builtin_cosf_link=no
6237 rm -f conftest*
6242 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6243 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6244 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6245 cat >> confdefs.h <<EOF
6246 #define ${ac_tr_func} 1
6253 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
6254 echo "configure:6255: checking for __builtin_cos declaration" >&5
6255 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6256 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
6257 echo $ac_n "(cached) $ac_c" 1>&6
6258 else
6261 ac_ext=C
6262 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6263 ac_cpp='$CXXCPP $CPPFLAGS'
6264 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6265 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6266 cross_compiling=$ac_cv_prog_cxx_cross
6268 cat > conftest.$ac_ext <<EOF
6269 #line 6270 "configure"
6270 #include "confdefs.h"
6271 #include <math.h>
6272 int main() {
6273 __builtin_cos(0);
6274 ; return 0; }
6276 if { (eval echo configure:6277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6277 rm -rf conftest*
6278 glibcpp_cv_func___builtin_cos_use=yes
6279 else
6280 echo "configure: failed program was:" >&5
6281 cat conftest.$ac_ext >&5
6282 rm -rf conftest*
6283 glibcpp_cv_func___builtin_cos_use=no
6285 rm -f conftest*
6286 ac_ext=c
6287 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6288 ac_cpp='$CPP $CPPFLAGS'
6289 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6290 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6291 cross_compiling=$ac_cv_prog_cc_cross
6297 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
6298 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6299 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6300 echo "configure:6301: checking for __builtin_cos linkage" >&5
6301 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6302 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
6303 echo $ac_n "(cached) $ac_c" 1>&6
6304 else
6306 cat > conftest.$ac_ext <<EOF
6307 #line 6308 "configure"
6308 #include "confdefs.h"
6309 #include <math.h>
6310 int main() {
6311 __builtin_cos(0);
6312 ; return 0; }
6314 if { (eval echo configure:6315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6315 rm -rf conftest*
6316 glibcpp_cv_func___builtin_cos_link=yes
6317 else
6318 echo "configure: failed program was:" >&5
6319 cat conftest.$ac_ext >&5
6320 rm -rf conftest*
6321 glibcpp_cv_func___builtin_cos_link=no
6323 rm -f conftest*
6328 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6329 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6330 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6331 cat >> confdefs.h <<EOF
6332 #define ${ac_tr_func} 1
6339 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6340 echo "configure:6341: checking for __builtin_cosl declaration" >&5
6341 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6342 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
6343 echo $ac_n "(cached) $ac_c" 1>&6
6344 else
6347 ac_ext=C
6348 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6349 ac_cpp='$CXXCPP $CPPFLAGS'
6350 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6351 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6352 cross_compiling=$ac_cv_prog_cxx_cross
6354 cat > conftest.$ac_ext <<EOF
6355 #line 6356 "configure"
6356 #include "confdefs.h"
6357 #include <math.h>
6358 int main() {
6359 __builtin_cosl(0);
6360 ; return 0; }
6362 if { (eval echo configure:6363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6363 rm -rf conftest*
6364 glibcpp_cv_func___builtin_cosl_use=yes
6365 else
6366 echo "configure: failed program was:" >&5
6367 cat conftest.$ac_ext >&5
6368 rm -rf conftest*
6369 glibcpp_cv_func___builtin_cosl_use=no
6371 rm -f conftest*
6372 ac_ext=c
6373 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6374 ac_cpp='$CPP $CPPFLAGS'
6375 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6376 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6377 cross_compiling=$ac_cv_prog_cc_cross
6383 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
6384 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6385 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6386 echo "configure:6387: checking for __builtin_cosl linkage" >&5
6387 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6388 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
6389 echo $ac_n "(cached) $ac_c" 1>&6
6390 else
6392 cat > conftest.$ac_ext <<EOF
6393 #line 6394 "configure"
6394 #include "confdefs.h"
6395 #include <math.h>
6396 int main() {
6397 __builtin_cosl(0);
6398 ; return 0; }
6400 if { (eval echo configure:6401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6401 rm -rf conftest*
6402 glibcpp_cv_func___builtin_cosl_link=yes
6403 else
6404 echo "configure: failed program was:" >&5
6405 cat conftest.$ac_ext >&5
6406 rm -rf conftest*
6407 glibcpp_cv_func___builtin_cosl_link=no
6409 rm -f conftest*
6414 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6415 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6416 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6417 cat >> confdefs.h <<EOF
6418 #define ${ac_tr_func} 1
6425 dummyvar=no
6426 if test x$dummyvar = x"yes"; then
6427 cat >> confdefs.h <<\EOF
6428 #define HAVE___BUILTIN_ABS 1
6431 cat >> confdefs.h <<\EOF
6432 #define HAVE___BUILTIN_LABS 1
6435 cat >> confdefs.h <<\EOF
6436 #define HAVE___BUILTIN_COS 1
6439 cat >> confdefs.h <<\EOF
6440 #define HAVE___BUILTIN_COSF 1
6443 cat >> confdefs.h <<\EOF
6444 #define HAVE___BUILTIN_COSL 1
6447 cat >> confdefs.h <<\EOF
6448 #define HAVE___BUILTIN_FABS 1
6451 cat >> confdefs.h <<\EOF
6452 #define HAVE___BUILTIN_FABSF 1
6455 cat >> confdefs.h <<\EOF
6456 #define HAVE___BUILTIN_FABSL 1
6459 cat >> confdefs.h <<\EOF
6460 #define HAVE___BUILTIN_SIN 1
6463 cat >> confdefs.h <<\EOF
6464 #define HAVE___BUILTIN_SINF 1
6467 cat >> confdefs.h <<\EOF
6468 #define HAVE___BUILTIN_SINL 1
6471 cat >> confdefs.h <<\EOF
6472 #define HAVE___BUILTIN_FSQRT 1
6475 cat >> confdefs.h <<\EOF
6476 #define HAVE___BUILTIN_SQRTF 1
6479 cat >> confdefs.h <<\EOF
6480 #define HAVE___BUILTIN_SQRTL 1
6486 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6487 ac_save_CXXFLAGS="$CXXFLAGS"
6488 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6490 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6491 echo "configure:6492: checking for sin in -lm" >&5
6492 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6494 echo $ac_n "(cached) $ac_c" 1>&6
6495 else
6496 ac_save_LIBS="$LIBS"
6497 LIBS="-lm $LIBS"
6498 cat > conftest.$ac_ext <<EOF
6499 #line 6500 "configure"
6500 #include "confdefs.h"
6501 /* Override any gcc2 internal prototype to avoid an error. */
6502 /* We use char because int might match the return type of a gcc2
6503 builtin and then its argument prototype would still apply. */
6504 char sin();
6506 int main() {
6507 sin()
6508 ; return 0; }
6510 if { (eval echo configure:6511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6511 rm -rf conftest*
6512 eval "ac_cv_lib_$ac_lib_var=yes"
6513 else
6514 echo "configure: failed program was:" >&5
6515 cat conftest.$ac_ext >&5
6516 rm -rf conftest*
6517 eval "ac_cv_lib_$ac_lib_var=no"
6519 rm -f conftest*
6520 LIBS="$ac_save_LIBS"
6523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6524 echo "$ac_t""yes" 1>&6
6525 libm="-lm"
6526 else
6527 echo "$ac_t""no" 1>&6
6530 ac_save_LIBS="$LIBS"
6531 LIBS="$LIBS $libm"
6535 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6536 echo "configure:6537: checking for isinf declaration" >&5
6537 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6538 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6539 echo $ac_n "(cached) $ac_c" 1>&6
6540 else
6543 ac_ext=C
6544 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6545 ac_cpp='$CXXCPP $CPPFLAGS'
6546 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6547 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6548 cross_compiling=$ac_cv_prog_cxx_cross
6550 cat > conftest.$ac_ext <<EOF
6551 #line 6552 "configure"
6552 #include "confdefs.h"
6553 #include <math.h>
6554 #ifdef HAVE_IEEEFP_H
6555 #include <ieeefp.h>
6556 #endif
6558 int main() {
6559 isinf(0);
6560 ; return 0; }
6562 if { (eval echo configure:6563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6563 rm -rf conftest*
6564 glibcpp_cv_func_isinf_use=yes
6565 else
6566 echo "configure: failed program was:" >&5
6567 cat conftest.$ac_ext >&5
6568 rm -rf conftest*
6569 glibcpp_cv_func_isinf_use=no
6571 rm -f conftest*
6572 ac_ext=c
6573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6574 ac_cpp='$CPP $CPPFLAGS'
6575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6576 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6577 cross_compiling=$ac_cv_prog_cc_cross
6583 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6585 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6586 for ac_func in isinf
6588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6589 echo "configure:6590: checking for $ac_func" >&5
6590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6591 echo $ac_n "(cached) $ac_c" 1>&6
6592 else
6593 cat > conftest.$ac_ext <<EOF
6594 #line 6595 "configure"
6595 #include "confdefs.h"
6596 /* System header to define __stub macros and hopefully few prototypes,
6597 which can conflict with char $ac_func(); below. */
6598 #include <assert.h>
6599 /* Override any gcc2 internal prototype to avoid an error. */
6600 /* We use char because int might match the return type of a gcc2
6601 builtin and then its argument prototype would still apply. */
6602 char $ac_func();
6604 int main() {
6606 /* The GNU C library defines this for functions which it implements
6607 to always fail with ENOSYS. Some functions are actually named
6608 something starting with __ and the normal name is an alias. */
6609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6610 choke me
6611 #else
6612 $ac_func();
6613 #endif
6615 ; return 0; }
6617 if { (eval echo configure:6618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6618 rm -rf conftest*
6619 eval "ac_cv_func_$ac_func=yes"
6620 else
6621 echo "configure: failed program was:" >&5
6622 cat conftest.$ac_ext >&5
6623 rm -rf conftest*
6624 eval "ac_cv_func_$ac_func=no"
6626 rm -f conftest*
6629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6630 echo "$ac_t""yes" 1>&6
6631 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6632 cat >> confdefs.h <<EOF
6633 #define $ac_tr_func 1
6636 else
6637 echo "$ac_t""no" 1>&6
6639 done
6641 else
6643 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6644 echo "configure:6645: checking for _isinf declaration" >&5
6645 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6646 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6647 echo $ac_n "(cached) $ac_c" 1>&6
6648 else
6651 ac_ext=C
6652 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6653 ac_cpp='$CXXCPP $CPPFLAGS'
6654 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6655 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6656 cross_compiling=$ac_cv_prog_cxx_cross
6658 cat > conftest.$ac_ext <<EOF
6659 #line 6660 "configure"
6660 #include "confdefs.h"
6661 #include <math.h>
6662 #ifdef HAVE_IEEEFP_H
6663 #include <ieeefp.h>
6664 #endif
6666 int main() {
6667 _isinf(0);
6668 ; return 0; }
6670 if { (eval echo configure:6671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6671 rm -rf conftest*
6672 glibcpp_cv_func__isinf_use=yes
6673 else
6674 echo "configure: failed program was:" >&5
6675 cat conftest.$ac_ext >&5
6676 rm -rf conftest*
6677 glibcpp_cv_func__isinf_use=no
6679 rm -f conftest*
6680 ac_ext=c
6681 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6682 ac_cpp='$CPP $CPPFLAGS'
6683 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6684 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6685 cross_compiling=$ac_cv_prog_cc_cross
6691 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6693 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6694 for ac_func in _isinf
6696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6697 echo "configure:6698: checking for $ac_func" >&5
6698 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6699 echo $ac_n "(cached) $ac_c" 1>&6
6700 else
6701 cat > conftest.$ac_ext <<EOF
6702 #line 6703 "configure"
6703 #include "confdefs.h"
6704 /* System header to define __stub macros and hopefully few prototypes,
6705 which can conflict with char $ac_func(); below. */
6706 #include <assert.h>
6707 /* Override any gcc2 internal prototype to avoid an error. */
6708 /* We use char because int might match the return type of a gcc2
6709 builtin and then its argument prototype would still apply. */
6710 char $ac_func();
6712 int main() {
6714 /* The GNU C library defines this for functions which it implements
6715 to always fail with ENOSYS. Some functions are actually named
6716 something starting with __ and the normal name is an alias. */
6717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6718 choke me
6719 #else
6720 $ac_func();
6721 #endif
6723 ; return 0; }
6725 if { (eval echo configure:6726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6726 rm -rf conftest*
6727 eval "ac_cv_func_$ac_func=yes"
6728 else
6729 echo "configure: failed program was:" >&5
6730 cat conftest.$ac_ext >&5
6731 rm -rf conftest*
6732 eval "ac_cv_func_$ac_func=no"
6734 rm -f conftest*
6737 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6738 echo "$ac_t""yes" 1>&6
6739 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6740 cat >> confdefs.h <<EOF
6741 #define $ac_tr_func 1
6744 else
6745 echo "$ac_t""no" 1>&6
6747 done
6754 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6755 echo "configure:6756: checking for isnan declaration" >&5
6756 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6757 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6758 echo $ac_n "(cached) $ac_c" 1>&6
6759 else
6762 ac_ext=C
6763 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6764 ac_cpp='$CXXCPP $CPPFLAGS'
6765 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6766 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6767 cross_compiling=$ac_cv_prog_cxx_cross
6769 cat > conftest.$ac_ext <<EOF
6770 #line 6771 "configure"
6771 #include "confdefs.h"
6772 #include <math.h>
6773 #ifdef HAVE_IEEEFP_H
6774 #include <ieeefp.h>
6775 #endif
6777 int main() {
6778 isnan(0);
6779 ; return 0; }
6781 if { (eval echo configure:6782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6782 rm -rf conftest*
6783 glibcpp_cv_func_isnan_use=yes
6784 else
6785 echo "configure: failed program was:" >&5
6786 cat conftest.$ac_ext >&5
6787 rm -rf conftest*
6788 glibcpp_cv_func_isnan_use=no
6790 rm -f conftest*
6791 ac_ext=c
6792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6793 ac_cpp='$CPP $CPPFLAGS'
6794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6796 cross_compiling=$ac_cv_prog_cc_cross
6802 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6804 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6805 for ac_func in isnan
6807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6808 echo "configure:6809: checking for $ac_func" >&5
6809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6810 echo $ac_n "(cached) $ac_c" 1>&6
6811 else
6812 cat > conftest.$ac_ext <<EOF
6813 #line 6814 "configure"
6814 #include "confdefs.h"
6815 /* System header to define __stub macros and hopefully few prototypes,
6816 which can conflict with char $ac_func(); below. */
6817 #include <assert.h>
6818 /* Override any gcc2 internal prototype to avoid an error. */
6819 /* We use char because int might match the return type of a gcc2
6820 builtin and then its argument prototype would still apply. */
6821 char $ac_func();
6823 int main() {
6825 /* The GNU C library defines this for functions which it implements
6826 to always fail with ENOSYS. Some functions are actually named
6827 something starting with __ and the normal name is an alias. */
6828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6829 choke me
6830 #else
6831 $ac_func();
6832 #endif
6834 ; return 0; }
6836 if { (eval echo configure:6837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6837 rm -rf conftest*
6838 eval "ac_cv_func_$ac_func=yes"
6839 else
6840 echo "configure: failed program was:" >&5
6841 cat conftest.$ac_ext >&5
6842 rm -rf conftest*
6843 eval "ac_cv_func_$ac_func=no"
6845 rm -f conftest*
6848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6849 echo "$ac_t""yes" 1>&6
6850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6851 cat >> confdefs.h <<EOF
6852 #define $ac_tr_func 1
6855 else
6856 echo "$ac_t""no" 1>&6
6858 done
6860 else
6862 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6863 echo "configure:6864: checking for _isnan declaration" >&5
6864 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6865 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6866 echo $ac_n "(cached) $ac_c" 1>&6
6867 else
6870 ac_ext=C
6871 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6872 ac_cpp='$CXXCPP $CPPFLAGS'
6873 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6874 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6875 cross_compiling=$ac_cv_prog_cxx_cross
6877 cat > conftest.$ac_ext <<EOF
6878 #line 6879 "configure"
6879 #include "confdefs.h"
6880 #include <math.h>
6881 #ifdef HAVE_IEEEFP_H
6882 #include <ieeefp.h>
6883 #endif
6885 int main() {
6886 _isnan(0);
6887 ; return 0; }
6889 if { (eval echo configure:6890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6890 rm -rf conftest*
6891 glibcpp_cv_func__isnan_use=yes
6892 else
6893 echo "configure: failed program was:" >&5
6894 cat conftest.$ac_ext >&5
6895 rm -rf conftest*
6896 glibcpp_cv_func__isnan_use=no
6898 rm -f conftest*
6899 ac_ext=c
6900 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6901 ac_cpp='$CPP $CPPFLAGS'
6902 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6903 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6904 cross_compiling=$ac_cv_prog_cc_cross
6910 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6912 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6913 for ac_func in _isnan
6915 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6916 echo "configure:6917: checking for $ac_func" >&5
6917 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6918 echo $ac_n "(cached) $ac_c" 1>&6
6919 else
6920 cat > conftest.$ac_ext <<EOF
6921 #line 6922 "configure"
6922 #include "confdefs.h"
6923 /* System header to define __stub macros and hopefully few prototypes,
6924 which can conflict with char $ac_func(); below. */
6925 #include <assert.h>
6926 /* Override any gcc2 internal prototype to avoid an error. */
6927 /* We use char because int might match the return type of a gcc2
6928 builtin and then its argument prototype would still apply. */
6929 char $ac_func();
6931 int main() {
6933 /* The GNU C library defines this for functions which it implements
6934 to always fail with ENOSYS. Some functions are actually named
6935 something starting with __ and the normal name is an alias. */
6936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6937 choke me
6938 #else
6939 $ac_func();
6940 #endif
6942 ; return 0; }
6944 if { (eval echo configure:6945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6945 rm -rf conftest*
6946 eval "ac_cv_func_$ac_func=yes"
6947 else
6948 echo "configure: failed program was:" >&5
6949 cat conftest.$ac_ext >&5
6950 rm -rf conftest*
6951 eval "ac_cv_func_$ac_func=no"
6953 rm -f conftest*
6956 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6957 echo "$ac_t""yes" 1>&6
6958 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6959 cat >> confdefs.h <<EOF
6960 #define $ac_tr_func 1
6963 else
6964 echo "$ac_t""no" 1>&6
6966 done
6973 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6974 echo "configure:6975: checking for finite declaration" >&5
6975 if test x${glibcpp_cv_func_finite_use+set} != xset; then
6976 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6977 echo $ac_n "(cached) $ac_c" 1>&6
6978 else
6981 ac_ext=C
6982 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6983 ac_cpp='$CXXCPP $CPPFLAGS'
6984 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6985 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6986 cross_compiling=$ac_cv_prog_cxx_cross
6988 cat > conftest.$ac_ext <<EOF
6989 #line 6990 "configure"
6990 #include "confdefs.h"
6991 #include <math.h>
6992 #ifdef HAVE_IEEEFP_H
6993 #include <ieeefp.h>
6994 #endif
6996 int main() {
6997 finite(0);
6998 ; return 0; }
7000 if { (eval echo configure:7001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7001 rm -rf conftest*
7002 glibcpp_cv_func_finite_use=yes
7003 else
7004 echo "configure: failed program was:" >&5
7005 cat conftest.$ac_ext >&5
7006 rm -rf conftest*
7007 glibcpp_cv_func_finite_use=no
7009 rm -f conftest*
7010 ac_ext=c
7011 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7012 ac_cpp='$CPP $CPPFLAGS'
7013 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7014 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7015 cross_compiling=$ac_cv_prog_cc_cross
7021 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
7023 if test x$glibcpp_cv_func_finite_use = x"yes"; then
7024 for ac_func in finite
7026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7027 echo "configure:7028: checking for $ac_func" >&5
7028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7029 echo $ac_n "(cached) $ac_c" 1>&6
7030 else
7031 cat > conftest.$ac_ext <<EOF
7032 #line 7033 "configure"
7033 #include "confdefs.h"
7034 /* System header to define __stub macros and hopefully few prototypes,
7035 which can conflict with char $ac_func(); below. */
7036 #include <assert.h>
7037 /* Override any gcc2 internal prototype to avoid an error. */
7038 /* We use char because int might match the return type of a gcc2
7039 builtin and then its argument prototype would still apply. */
7040 char $ac_func();
7042 int main() {
7044 /* The GNU C library defines this for functions which it implements
7045 to always fail with ENOSYS. Some functions are actually named
7046 something starting with __ and the normal name is an alias. */
7047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7048 choke me
7049 #else
7050 $ac_func();
7051 #endif
7053 ; return 0; }
7055 if { (eval echo configure:7056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7056 rm -rf conftest*
7057 eval "ac_cv_func_$ac_func=yes"
7058 else
7059 echo "configure: failed program was:" >&5
7060 cat conftest.$ac_ext >&5
7061 rm -rf conftest*
7062 eval "ac_cv_func_$ac_func=no"
7064 rm -f conftest*
7067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7068 echo "$ac_t""yes" 1>&6
7069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7070 cat >> confdefs.h <<EOF
7071 #define $ac_tr_func 1
7074 else
7075 echo "$ac_t""no" 1>&6
7077 done
7079 else
7081 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
7082 echo "configure:7083: checking for _finite declaration" >&5
7083 if test x${glibcpp_cv_func__finite_use+set} != xset; then
7084 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
7085 echo $ac_n "(cached) $ac_c" 1>&6
7086 else
7089 ac_ext=C
7090 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7091 ac_cpp='$CXXCPP $CPPFLAGS'
7092 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7093 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7094 cross_compiling=$ac_cv_prog_cxx_cross
7096 cat > conftest.$ac_ext <<EOF
7097 #line 7098 "configure"
7098 #include "confdefs.h"
7099 #include <math.h>
7100 #ifdef HAVE_IEEEFP_H
7101 #include <ieeefp.h>
7102 #endif
7104 int main() {
7105 _finite(0);
7106 ; return 0; }
7108 if { (eval echo configure:7109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7109 rm -rf conftest*
7110 glibcpp_cv_func__finite_use=yes
7111 else
7112 echo "configure: failed program was:" >&5
7113 cat conftest.$ac_ext >&5
7114 rm -rf conftest*
7115 glibcpp_cv_func__finite_use=no
7117 rm -f conftest*
7118 ac_ext=c
7119 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7120 ac_cpp='$CPP $CPPFLAGS'
7121 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7122 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7123 cross_compiling=$ac_cv_prog_cc_cross
7129 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
7131 if test x$glibcpp_cv_func__finite_use = x"yes"; then
7132 for ac_func in _finite
7134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7135 echo "configure:7136: checking for $ac_func" >&5
7136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7137 echo $ac_n "(cached) $ac_c" 1>&6
7138 else
7139 cat > conftest.$ac_ext <<EOF
7140 #line 7141 "configure"
7141 #include "confdefs.h"
7142 /* System header to define __stub macros and hopefully few prototypes,
7143 which can conflict with char $ac_func(); below. */
7144 #include <assert.h>
7145 /* Override any gcc2 internal prototype to avoid an error. */
7146 /* We use char because int might match the return type of a gcc2
7147 builtin and then its argument prototype would still apply. */
7148 char $ac_func();
7150 int main() {
7152 /* The GNU C library defines this for functions which it implements
7153 to always fail with ENOSYS. Some functions are actually named
7154 something starting with __ and the normal name is an alias. */
7155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7156 choke me
7157 #else
7158 $ac_func();
7159 #endif
7161 ; return 0; }
7163 if { (eval echo configure:7164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7164 rm -rf conftest*
7165 eval "ac_cv_func_$ac_func=yes"
7166 else
7167 echo "configure: failed program was:" >&5
7168 cat conftest.$ac_ext >&5
7169 rm -rf conftest*
7170 eval "ac_cv_func_$ac_func=no"
7172 rm -f conftest*
7175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7176 echo "$ac_t""yes" 1>&6
7177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7178 cat >> confdefs.h <<EOF
7179 #define $ac_tr_func 1
7182 else
7183 echo "$ac_t""no" 1>&6
7185 done
7192 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7193 echo "configure:7194: checking for copysign declaration" >&5
7194 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7195 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7196 echo $ac_n "(cached) $ac_c" 1>&6
7197 else
7200 ac_ext=C
7201 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7202 ac_cpp='$CXXCPP $CPPFLAGS'
7203 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7204 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7205 cross_compiling=$ac_cv_prog_cxx_cross
7207 cat > conftest.$ac_ext <<EOF
7208 #line 7209 "configure"
7209 #include "confdefs.h"
7210 #include <math.h>
7211 int main() {
7212 copysign(0, 0);
7213 ; return 0; }
7215 if { (eval echo configure:7216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7216 rm -rf conftest*
7217 glibcpp_cv_func_copysign_use=yes
7218 else
7219 echo "configure: failed program was:" >&5
7220 cat conftest.$ac_ext >&5
7221 rm -rf conftest*
7222 glibcpp_cv_func_copysign_use=no
7224 rm -f conftest*
7225 ac_ext=c
7226 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7227 ac_cpp='$CPP $CPPFLAGS'
7228 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7229 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7230 cross_compiling=$ac_cv_prog_cc_cross
7236 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7238 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7239 for ac_func in copysign
7241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7242 echo "configure:7243: checking for $ac_func" >&5
7243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7244 echo $ac_n "(cached) $ac_c" 1>&6
7245 else
7246 cat > conftest.$ac_ext <<EOF
7247 #line 7248 "configure"
7248 #include "confdefs.h"
7249 /* System header to define __stub macros and hopefully few prototypes,
7250 which can conflict with char $ac_func(); below. */
7251 #include <assert.h>
7252 /* Override any gcc2 internal prototype to avoid an error. */
7253 /* We use char because int might match the return type of a gcc2
7254 builtin and then its argument prototype would still apply. */
7255 char $ac_func();
7257 int main() {
7259 /* The GNU C library defines this for functions which it implements
7260 to always fail with ENOSYS. Some functions are actually named
7261 something starting with __ and the normal name is an alias. */
7262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7263 choke me
7264 #else
7265 $ac_func();
7266 #endif
7268 ; return 0; }
7270 if { (eval echo configure:7271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7271 rm -rf conftest*
7272 eval "ac_cv_func_$ac_func=yes"
7273 else
7274 echo "configure: failed program was:" >&5
7275 cat conftest.$ac_ext >&5
7276 rm -rf conftest*
7277 eval "ac_cv_func_$ac_func=no"
7279 rm -f conftest*
7282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7283 echo "$ac_t""yes" 1>&6
7284 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7285 cat >> confdefs.h <<EOF
7286 #define $ac_tr_func 1
7289 else
7290 echo "$ac_t""no" 1>&6
7292 done
7294 else
7296 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7297 echo "configure:7298: checking for _copysign declaration" >&5
7298 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7299 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7300 echo $ac_n "(cached) $ac_c" 1>&6
7301 else
7304 ac_ext=C
7305 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7306 ac_cpp='$CXXCPP $CPPFLAGS'
7307 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7308 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7309 cross_compiling=$ac_cv_prog_cxx_cross
7311 cat > conftest.$ac_ext <<EOF
7312 #line 7313 "configure"
7313 #include "confdefs.h"
7314 #include <math.h>
7315 int main() {
7316 _copysign(0, 0);
7317 ; return 0; }
7319 if { (eval echo configure:7320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7320 rm -rf conftest*
7321 glibcpp_cv_func__copysign_use=yes
7322 else
7323 echo "configure: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7325 rm -rf conftest*
7326 glibcpp_cv_func__copysign_use=no
7328 rm -f conftest*
7329 ac_ext=c
7330 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7331 ac_cpp='$CPP $CPPFLAGS'
7332 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7333 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7334 cross_compiling=$ac_cv_prog_cc_cross
7340 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7342 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7343 for ac_func in _copysign
7345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7346 echo "configure:7347: checking for $ac_func" >&5
7347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7348 echo $ac_n "(cached) $ac_c" 1>&6
7349 else
7350 cat > conftest.$ac_ext <<EOF
7351 #line 7352 "configure"
7352 #include "confdefs.h"
7353 /* System header to define __stub macros and hopefully few prototypes,
7354 which can conflict with char $ac_func(); below. */
7355 #include <assert.h>
7356 /* Override any gcc2 internal prototype to avoid an error. */
7357 /* We use char because int might match the return type of a gcc2
7358 builtin and then its argument prototype would still apply. */
7359 char $ac_func();
7361 int main() {
7363 /* The GNU C library defines this for functions which it implements
7364 to always fail with ENOSYS. Some functions are actually named
7365 something starting with __ and the normal name is an alias. */
7366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7367 choke me
7368 #else
7369 $ac_func();
7370 #endif
7372 ; return 0; }
7374 if { (eval echo configure:7375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7375 rm -rf conftest*
7376 eval "ac_cv_func_$ac_func=yes"
7377 else
7378 echo "configure: failed program was:" >&5
7379 cat conftest.$ac_ext >&5
7380 rm -rf conftest*
7381 eval "ac_cv_func_$ac_func=no"
7383 rm -f conftest*
7386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7387 echo "$ac_t""yes" 1>&6
7388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7389 cat >> confdefs.h <<EOF
7390 #define $ac_tr_func 1
7393 else
7394 echo "$ac_t""no" 1>&6
7396 done
7403 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7404 echo "configure:7405: checking for sincos declaration" >&5
7405 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7406 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7407 echo $ac_n "(cached) $ac_c" 1>&6
7408 else
7411 ac_ext=C
7412 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7413 ac_cpp='$CXXCPP $CPPFLAGS'
7414 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7415 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7416 cross_compiling=$ac_cv_prog_cxx_cross
7418 cat > conftest.$ac_ext <<EOF
7419 #line 7420 "configure"
7420 #include "confdefs.h"
7421 #include <math.h>
7422 int main() {
7423 sincos(0, 0, 0);
7424 ; return 0; }
7426 if { (eval echo configure:7427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7427 rm -rf conftest*
7428 glibcpp_cv_func_sincos_use=yes
7429 else
7430 echo "configure: failed program was:" >&5
7431 cat conftest.$ac_ext >&5
7432 rm -rf conftest*
7433 glibcpp_cv_func_sincos_use=no
7435 rm -f conftest*
7436 ac_ext=c
7437 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7438 ac_cpp='$CPP $CPPFLAGS'
7439 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7440 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7441 cross_compiling=$ac_cv_prog_cc_cross
7447 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7449 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7450 for ac_func in sincos
7452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7453 echo "configure:7454: checking for $ac_func" >&5
7454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7455 echo $ac_n "(cached) $ac_c" 1>&6
7456 else
7457 cat > conftest.$ac_ext <<EOF
7458 #line 7459 "configure"
7459 #include "confdefs.h"
7460 /* System header to define __stub macros and hopefully few prototypes,
7461 which can conflict with char $ac_func(); below. */
7462 #include <assert.h>
7463 /* Override any gcc2 internal prototype to avoid an error. */
7464 /* We use char because int might match the return type of a gcc2
7465 builtin and then its argument prototype would still apply. */
7466 char $ac_func();
7468 int main() {
7470 /* The GNU C library defines this for functions which it implements
7471 to always fail with ENOSYS. Some functions are actually named
7472 something starting with __ and the normal name is an alias. */
7473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7474 choke me
7475 #else
7476 $ac_func();
7477 #endif
7479 ; return 0; }
7481 if { (eval echo configure:7482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7482 rm -rf conftest*
7483 eval "ac_cv_func_$ac_func=yes"
7484 else
7485 echo "configure: failed program was:" >&5
7486 cat conftest.$ac_ext >&5
7487 rm -rf conftest*
7488 eval "ac_cv_func_$ac_func=no"
7490 rm -f conftest*
7493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7494 echo "$ac_t""yes" 1>&6
7495 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7496 cat >> confdefs.h <<EOF
7497 #define $ac_tr_func 1
7500 else
7501 echo "$ac_t""no" 1>&6
7503 done
7505 else
7507 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7508 echo "configure:7509: checking for _sincos declaration" >&5
7509 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7510 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7511 echo $ac_n "(cached) $ac_c" 1>&6
7512 else
7515 ac_ext=C
7516 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7517 ac_cpp='$CXXCPP $CPPFLAGS'
7518 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7519 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7520 cross_compiling=$ac_cv_prog_cxx_cross
7522 cat > conftest.$ac_ext <<EOF
7523 #line 7524 "configure"
7524 #include "confdefs.h"
7525 #include <math.h>
7526 int main() {
7527 _sincos(0, 0, 0);
7528 ; return 0; }
7530 if { (eval echo configure:7531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7531 rm -rf conftest*
7532 glibcpp_cv_func__sincos_use=yes
7533 else
7534 echo "configure: failed program was:" >&5
7535 cat conftest.$ac_ext >&5
7536 rm -rf conftest*
7537 glibcpp_cv_func__sincos_use=no
7539 rm -f conftest*
7540 ac_ext=c
7541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7542 ac_cpp='$CPP $CPPFLAGS'
7543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7545 cross_compiling=$ac_cv_prog_cc_cross
7551 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7553 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7554 for ac_func in _sincos
7556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7557 echo "configure:7558: checking for $ac_func" >&5
7558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7559 echo $ac_n "(cached) $ac_c" 1>&6
7560 else
7561 cat > conftest.$ac_ext <<EOF
7562 #line 7563 "configure"
7563 #include "confdefs.h"
7564 /* System header to define __stub macros and hopefully few prototypes,
7565 which can conflict with char $ac_func(); below. */
7566 #include <assert.h>
7567 /* Override any gcc2 internal prototype to avoid an error. */
7568 /* We use char because int might match the return type of a gcc2
7569 builtin and then its argument prototype would still apply. */
7570 char $ac_func();
7572 int main() {
7574 /* The GNU C library defines this for functions which it implements
7575 to always fail with ENOSYS. Some functions are actually named
7576 something starting with __ and the normal name is an alias. */
7577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7578 choke me
7579 #else
7580 $ac_func();
7581 #endif
7583 ; return 0; }
7585 if { (eval echo configure:7586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7586 rm -rf conftest*
7587 eval "ac_cv_func_$ac_func=yes"
7588 else
7589 echo "configure: failed program was:" >&5
7590 cat conftest.$ac_ext >&5
7591 rm -rf conftest*
7592 eval "ac_cv_func_$ac_func=no"
7594 rm -f conftest*
7597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7598 echo "$ac_t""yes" 1>&6
7599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7600 cat >> confdefs.h <<EOF
7601 #define $ac_tr_func 1
7604 else
7605 echo "$ac_t""no" 1>&6
7607 done
7614 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7615 echo "configure:7616: checking for fpclass declaration" >&5
7616 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7617 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7618 echo $ac_n "(cached) $ac_c" 1>&6
7619 else
7622 ac_ext=C
7623 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7624 ac_cpp='$CXXCPP $CPPFLAGS'
7625 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7626 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7627 cross_compiling=$ac_cv_prog_cxx_cross
7629 cat > conftest.$ac_ext <<EOF
7630 #line 7631 "configure"
7631 #include "confdefs.h"
7632 #include <math.h>
7633 #ifdef HAVE_IEEEFP_H
7634 #include <ieeefp.h>
7635 #endif
7637 int main() {
7638 fpclass(0);
7639 ; return 0; }
7641 if { (eval echo configure:7642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7642 rm -rf conftest*
7643 glibcpp_cv_func_fpclass_use=yes
7644 else
7645 echo "configure: failed program was:" >&5
7646 cat conftest.$ac_ext >&5
7647 rm -rf conftest*
7648 glibcpp_cv_func_fpclass_use=no
7650 rm -f conftest*
7651 ac_ext=c
7652 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7653 ac_cpp='$CPP $CPPFLAGS'
7654 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7655 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7656 cross_compiling=$ac_cv_prog_cc_cross
7662 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7664 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7665 for ac_func in fpclass
7667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7668 echo "configure:7669: checking for $ac_func" >&5
7669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7670 echo $ac_n "(cached) $ac_c" 1>&6
7671 else
7672 cat > conftest.$ac_ext <<EOF
7673 #line 7674 "configure"
7674 #include "confdefs.h"
7675 /* System header to define __stub macros and hopefully few prototypes,
7676 which can conflict with char $ac_func(); below. */
7677 #include <assert.h>
7678 /* Override any gcc2 internal prototype to avoid an error. */
7679 /* We use char because int might match the return type of a gcc2
7680 builtin and then its argument prototype would still apply. */
7681 char $ac_func();
7683 int main() {
7685 /* The GNU C library defines this for functions which it implements
7686 to always fail with ENOSYS. Some functions are actually named
7687 something starting with __ and the normal name is an alias. */
7688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7689 choke me
7690 #else
7691 $ac_func();
7692 #endif
7694 ; return 0; }
7696 if { (eval echo configure:7697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7697 rm -rf conftest*
7698 eval "ac_cv_func_$ac_func=yes"
7699 else
7700 echo "configure: failed program was:" >&5
7701 cat conftest.$ac_ext >&5
7702 rm -rf conftest*
7703 eval "ac_cv_func_$ac_func=no"
7705 rm -f conftest*
7708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7709 echo "$ac_t""yes" 1>&6
7710 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7711 cat >> confdefs.h <<EOF
7712 #define $ac_tr_func 1
7715 else
7716 echo "$ac_t""no" 1>&6
7718 done
7720 else
7722 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7723 echo "configure:7724: checking for _fpclass declaration" >&5
7724 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7725 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7726 echo $ac_n "(cached) $ac_c" 1>&6
7727 else
7730 ac_ext=C
7731 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7732 ac_cpp='$CXXCPP $CPPFLAGS'
7733 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7734 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7735 cross_compiling=$ac_cv_prog_cxx_cross
7737 cat > conftest.$ac_ext <<EOF
7738 #line 7739 "configure"
7739 #include "confdefs.h"
7740 #include <math.h>
7741 #ifdef HAVE_IEEEFP_H
7742 #include <ieeefp.h>
7743 #endif
7745 int main() {
7746 _fpclass(0);
7747 ; return 0; }
7749 if { (eval echo configure:7750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7750 rm -rf conftest*
7751 glibcpp_cv_func__fpclass_use=yes
7752 else
7753 echo "configure: failed program was:" >&5
7754 cat conftest.$ac_ext >&5
7755 rm -rf conftest*
7756 glibcpp_cv_func__fpclass_use=no
7758 rm -f conftest*
7759 ac_ext=c
7760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7761 ac_cpp='$CPP $CPPFLAGS'
7762 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7763 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7764 cross_compiling=$ac_cv_prog_cc_cross
7770 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7772 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7773 for ac_func in _fpclass
7775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7776 echo "configure:7777: checking for $ac_func" >&5
7777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7778 echo $ac_n "(cached) $ac_c" 1>&6
7779 else
7780 cat > conftest.$ac_ext <<EOF
7781 #line 7782 "configure"
7782 #include "confdefs.h"
7783 /* System header to define __stub macros and hopefully few prototypes,
7784 which can conflict with char $ac_func(); below. */
7785 #include <assert.h>
7786 /* Override any gcc2 internal prototype to avoid an error. */
7787 /* We use char because int might match the return type of a gcc2
7788 builtin and then its argument prototype would still apply. */
7789 char $ac_func();
7791 int main() {
7793 /* The GNU C library defines this for functions which it implements
7794 to always fail with ENOSYS. Some functions are actually named
7795 something starting with __ and the normal name is an alias. */
7796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7797 choke me
7798 #else
7799 $ac_func();
7800 #endif
7802 ; return 0; }
7804 if { (eval echo configure:7805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7805 rm -rf conftest*
7806 eval "ac_cv_func_$ac_func=yes"
7807 else
7808 echo "configure: failed program was:" >&5
7809 cat conftest.$ac_ext >&5
7810 rm -rf conftest*
7811 eval "ac_cv_func_$ac_func=no"
7813 rm -f conftest*
7816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7817 echo "$ac_t""yes" 1>&6
7818 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7819 cat >> confdefs.h <<EOF
7820 #define $ac_tr_func 1
7823 else
7824 echo "$ac_t""no" 1>&6
7826 done
7833 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7834 echo "configure:7835: checking for qfpclass declaration" >&5
7835 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7836 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7837 echo $ac_n "(cached) $ac_c" 1>&6
7838 else
7841 ac_ext=C
7842 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7843 ac_cpp='$CXXCPP $CPPFLAGS'
7844 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7845 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7846 cross_compiling=$ac_cv_prog_cxx_cross
7848 cat > conftest.$ac_ext <<EOF
7849 #line 7850 "configure"
7850 #include "confdefs.h"
7851 #include <math.h>
7852 #ifdef HAVE_IEEEFP_H
7853 #include <ieeefp.h>
7854 #endif
7856 int main() {
7857 qfpclass(0);
7858 ; return 0; }
7860 if { (eval echo configure:7861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7861 rm -rf conftest*
7862 glibcpp_cv_func_qfpclass_use=yes
7863 else
7864 echo "configure: failed program was:" >&5
7865 cat conftest.$ac_ext >&5
7866 rm -rf conftest*
7867 glibcpp_cv_func_qfpclass_use=no
7869 rm -f conftest*
7870 ac_ext=c
7871 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7872 ac_cpp='$CPP $CPPFLAGS'
7873 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7874 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7875 cross_compiling=$ac_cv_prog_cc_cross
7881 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7883 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7884 for ac_func in qfpclass
7886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7887 echo "configure:7888: checking for $ac_func" >&5
7888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7889 echo $ac_n "(cached) $ac_c" 1>&6
7890 else
7891 cat > conftest.$ac_ext <<EOF
7892 #line 7893 "configure"
7893 #include "confdefs.h"
7894 /* System header to define __stub macros and hopefully few prototypes,
7895 which can conflict with char $ac_func(); below. */
7896 #include <assert.h>
7897 /* Override any gcc2 internal prototype to avoid an error. */
7898 /* We use char because int might match the return type of a gcc2
7899 builtin and then its argument prototype would still apply. */
7900 char $ac_func();
7902 int main() {
7904 /* The GNU C library defines this for functions which it implements
7905 to always fail with ENOSYS. Some functions are actually named
7906 something starting with __ and the normal name is an alias. */
7907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7908 choke me
7909 #else
7910 $ac_func();
7911 #endif
7913 ; return 0; }
7915 if { (eval echo configure:7916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7916 rm -rf conftest*
7917 eval "ac_cv_func_$ac_func=yes"
7918 else
7919 echo "configure: failed program was:" >&5
7920 cat conftest.$ac_ext >&5
7921 rm -rf conftest*
7922 eval "ac_cv_func_$ac_func=no"
7924 rm -f conftest*
7927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7928 echo "$ac_t""yes" 1>&6
7929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7930 cat >> confdefs.h <<EOF
7931 #define $ac_tr_func 1
7934 else
7935 echo "$ac_t""no" 1>&6
7937 done
7939 else
7941 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7942 echo "configure:7943: checking for _qfpclass declaration" >&5
7943 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7944 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7945 echo $ac_n "(cached) $ac_c" 1>&6
7946 else
7949 ac_ext=C
7950 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7951 ac_cpp='$CXXCPP $CPPFLAGS'
7952 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7953 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7954 cross_compiling=$ac_cv_prog_cxx_cross
7956 cat > conftest.$ac_ext <<EOF
7957 #line 7958 "configure"
7958 #include "confdefs.h"
7959 #include <math.h>
7960 #ifdef HAVE_IEEEFP_H
7961 #include <ieeefp.h>
7962 #endif
7964 int main() {
7965 _qfpclass(0);
7966 ; return 0; }
7968 if { (eval echo configure:7969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7969 rm -rf conftest*
7970 glibcpp_cv_func__qfpclass_use=yes
7971 else
7972 echo "configure: failed program was:" >&5
7973 cat conftest.$ac_ext >&5
7974 rm -rf conftest*
7975 glibcpp_cv_func__qfpclass_use=no
7977 rm -f conftest*
7978 ac_ext=c
7979 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7980 ac_cpp='$CPP $CPPFLAGS'
7981 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7982 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7983 cross_compiling=$ac_cv_prog_cc_cross
7989 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7991 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7992 for ac_func in _qfpclass
7994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7995 echo "configure:7996: checking for $ac_func" >&5
7996 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7997 echo $ac_n "(cached) $ac_c" 1>&6
7998 else
7999 cat > conftest.$ac_ext <<EOF
8000 #line 8001 "configure"
8001 #include "confdefs.h"
8002 /* System header to define __stub macros and hopefully few prototypes,
8003 which can conflict with char $ac_func(); below. */
8004 #include <assert.h>
8005 /* Override any gcc2 internal prototype to avoid an error. */
8006 /* We use char because int might match the return type of a gcc2
8007 builtin and then its argument prototype would still apply. */
8008 char $ac_func();
8010 int main() {
8012 /* The GNU C library defines this for functions which it implements
8013 to always fail with ENOSYS. Some functions are actually named
8014 something starting with __ and the normal name is an alias. */
8015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8016 choke me
8017 #else
8018 $ac_func();
8019 #endif
8021 ; return 0; }
8023 if { (eval echo configure:8024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8024 rm -rf conftest*
8025 eval "ac_cv_func_$ac_func=yes"
8026 else
8027 echo "configure: failed program was:" >&5
8028 cat conftest.$ac_ext >&5
8029 rm -rf conftest*
8030 eval "ac_cv_func_$ac_func=no"
8032 rm -f conftest*
8035 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8036 echo "$ac_t""yes" 1>&6
8037 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8038 cat >> confdefs.h <<EOF
8039 #define $ac_tr_func 1
8042 else
8043 echo "$ac_t""no" 1>&6
8045 done
8052 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
8053 echo "configure:8054: checking for hypot declaration" >&5
8054 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
8055 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
8056 echo $ac_n "(cached) $ac_c" 1>&6
8057 else
8060 ac_ext=C
8061 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8062 ac_cpp='$CXXCPP $CPPFLAGS'
8063 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8064 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8065 cross_compiling=$ac_cv_prog_cxx_cross
8067 cat > conftest.$ac_ext <<EOF
8068 #line 8069 "configure"
8069 #include "confdefs.h"
8070 #include <math.h>
8071 int main() {
8072 hypot(0, 0);
8073 ; return 0; }
8075 if { (eval echo configure:8076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8076 rm -rf conftest*
8077 glibcpp_cv_func_hypot_use=yes
8078 else
8079 echo "configure: failed program was:" >&5
8080 cat conftest.$ac_ext >&5
8081 rm -rf conftest*
8082 glibcpp_cv_func_hypot_use=no
8084 rm -f conftest*
8085 ac_ext=c
8086 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8087 ac_cpp='$CPP $CPPFLAGS'
8088 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8089 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8090 cross_compiling=$ac_cv_prog_cc_cross
8096 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
8098 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
8099 for ac_func in hypot
8101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8102 echo "configure:8103: checking for $ac_func" >&5
8103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8104 echo $ac_n "(cached) $ac_c" 1>&6
8105 else
8106 cat > conftest.$ac_ext <<EOF
8107 #line 8108 "configure"
8108 #include "confdefs.h"
8109 /* System header to define __stub macros and hopefully few prototypes,
8110 which can conflict with char $ac_func(); below. */
8111 #include <assert.h>
8112 /* Override any gcc2 internal prototype to avoid an error. */
8113 /* We use char because int might match the return type of a gcc2
8114 builtin and then its argument prototype would still apply. */
8115 char $ac_func();
8117 int main() {
8119 /* The GNU C library defines this for functions which it implements
8120 to always fail with ENOSYS. Some functions are actually named
8121 something starting with __ and the normal name is an alias. */
8122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8123 choke me
8124 #else
8125 $ac_func();
8126 #endif
8128 ; return 0; }
8130 if { (eval echo configure:8131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8131 rm -rf conftest*
8132 eval "ac_cv_func_$ac_func=yes"
8133 else
8134 echo "configure: failed program was:" >&5
8135 cat conftest.$ac_ext >&5
8136 rm -rf conftest*
8137 eval "ac_cv_func_$ac_func=no"
8139 rm -f conftest*
8142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8143 echo "$ac_t""yes" 1>&6
8144 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8145 cat >> confdefs.h <<EOF
8146 #define $ac_tr_func 1
8149 else
8150 echo "$ac_t""no" 1>&6
8152 done
8154 else
8156 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
8157 echo "configure:8158: checking for _hypot declaration" >&5
8158 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
8159 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
8160 echo $ac_n "(cached) $ac_c" 1>&6
8161 else
8164 ac_ext=C
8165 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8166 ac_cpp='$CXXCPP $CPPFLAGS'
8167 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8168 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8169 cross_compiling=$ac_cv_prog_cxx_cross
8171 cat > conftest.$ac_ext <<EOF
8172 #line 8173 "configure"
8173 #include "confdefs.h"
8174 #include <math.h>
8175 int main() {
8176 _hypot(0, 0);
8177 ; return 0; }
8179 if { (eval echo configure:8180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8180 rm -rf conftest*
8181 glibcpp_cv_func__hypot_use=yes
8182 else
8183 echo "configure: failed program was:" >&5
8184 cat conftest.$ac_ext >&5
8185 rm -rf conftest*
8186 glibcpp_cv_func__hypot_use=no
8188 rm -f conftest*
8189 ac_ext=c
8190 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8191 ac_cpp='$CPP $CPPFLAGS'
8192 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8193 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8194 cross_compiling=$ac_cv_prog_cc_cross
8200 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
8202 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
8203 for ac_func in _hypot
8205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8206 echo "configure:8207: checking for $ac_func" >&5
8207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8208 echo $ac_n "(cached) $ac_c" 1>&6
8209 else
8210 cat > conftest.$ac_ext <<EOF
8211 #line 8212 "configure"
8212 #include "confdefs.h"
8213 /* System header to define __stub macros and hopefully few prototypes,
8214 which can conflict with char $ac_func(); below. */
8215 #include <assert.h>
8216 /* Override any gcc2 internal prototype to avoid an error. */
8217 /* We use char because int might match the return type of a gcc2
8218 builtin and then its argument prototype would still apply. */
8219 char $ac_func();
8221 int main() {
8223 /* The GNU C library defines this for functions which it implements
8224 to always fail with ENOSYS. Some functions are actually named
8225 something starting with __ and the normal name is an alias. */
8226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8227 choke me
8228 #else
8229 $ac_func();
8230 #endif
8232 ; return 0; }
8234 if { (eval echo configure:8235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8235 rm -rf conftest*
8236 eval "ac_cv_func_$ac_func=yes"
8237 else
8238 echo "configure: failed program was:" >&5
8239 cat conftest.$ac_ext >&5
8240 rm -rf conftest*
8241 eval "ac_cv_func_$ac_func=no"
8243 rm -f conftest*
8246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8247 echo "$ac_t""yes" 1>&6
8248 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8249 cat >> confdefs.h <<EOF
8250 #define $ac_tr_func 1
8253 else
8254 echo "$ac_t""no" 1>&6
8256 done
8263 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
8264 echo "configure:8265: checking for float trig functions" >&5
8265 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
8266 echo $ac_n "(cached) $ac_c" 1>&6
8267 else
8270 ac_ext=C
8271 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8272 ac_cpp='$CXXCPP $CPPFLAGS'
8273 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8274 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8275 cross_compiling=$ac_cv_prog_cxx_cross
8277 cat > conftest.$ac_ext <<EOF
8278 #line 8279 "configure"
8279 #include "confdefs.h"
8280 #include <math.h>
8281 int main() {
8282 `for x in acosf asinf atanf \
8283 cosf sinf tanf \
8284 coshf sinhf tanhf; do echo "$x (0);"; done`
8285 ; return 0; }
8287 if { (eval echo configure:8288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8288 rm -rf conftest*
8289 glibcpp_cv_func_float_trig_use=yes
8290 else
8291 echo "configure: failed program was:" >&5
8292 cat conftest.$ac_ext >&5
8293 rm -rf conftest*
8294 glibcpp_cv_func_float_trig_use=no
8296 rm -f conftest*
8297 ac_ext=c
8298 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8299 ac_cpp='$CPP $CPPFLAGS'
8300 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8301 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8302 cross_compiling=$ac_cv_prog_cc_cross
8306 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
8307 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
8308 for ac_func in acosf asinf atanf \
8309 cosf sinf tanf \
8310 coshf sinhf tanhf
8312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8313 echo "configure:8314: checking for $ac_func" >&5
8314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8315 echo $ac_n "(cached) $ac_c" 1>&6
8316 else
8317 cat > conftest.$ac_ext <<EOF
8318 #line 8319 "configure"
8319 #include "confdefs.h"
8320 /* System header to define __stub macros and hopefully few prototypes,
8321 which can conflict with char $ac_func(); below. */
8322 #include <assert.h>
8323 /* Override any gcc2 internal prototype to avoid an error. */
8324 /* We use char because int might match the return type of a gcc2
8325 builtin and then its argument prototype would still apply. */
8326 char $ac_func();
8328 int main() {
8330 /* The GNU C library defines this for functions which it implements
8331 to always fail with ENOSYS. Some functions are actually named
8332 something starting with __ and the normal name is an alias. */
8333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8334 choke me
8335 #else
8336 $ac_func();
8337 #endif
8339 ; return 0; }
8341 if { (eval echo configure:8342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8342 rm -rf conftest*
8343 eval "ac_cv_func_$ac_func=yes"
8344 else
8345 echo "configure: failed program was:" >&5
8346 cat conftest.$ac_ext >&5
8347 rm -rf conftest*
8348 eval "ac_cv_func_$ac_func=no"
8350 rm -f conftest*
8353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8354 echo "$ac_t""yes" 1>&6
8355 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8356 cat >> confdefs.h <<EOF
8357 #define $ac_tr_func 1
8360 else
8361 echo "$ac_t""no" 1>&6
8363 done
8368 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
8369 echo "configure:8370: checking for float round functions" >&5
8370 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
8371 echo $ac_n "(cached) $ac_c" 1>&6
8372 else
8375 ac_ext=C
8376 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8377 ac_cpp='$CXXCPP $CPPFLAGS'
8378 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8379 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8380 cross_compiling=$ac_cv_prog_cxx_cross
8382 cat > conftest.$ac_ext <<EOF
8383 #line 8384 "configure"
8384 #include "confdefs.h"
8385 #include <math.h>
8386 int main() {
8387 `for x in ceilf floorf; do echo "$x (0);"; done`
8388 ; return 0; }
8390 if { (eval echo configure:8391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8391 rm -rf conftest*
8392 glibcpp_cv_func_float_round_use=yes
8393 else
8394 echo "configure: failed program was:" >&5
8395 cat conftest.$ac_ext >&5
8396 rm -rf conftest*
8397 glibcpp_cv_func_float_round_use=no
8399 rm -f conftest*
8400 ac_ext=c
8401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8402 ac_cpp='$CPP $CPPFLAGS'
8403 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8404 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8405 cross_compiling=$ac_cv_prog_cc_cross
8409 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8410 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8411 for ac_func in ceilf floorf
8413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8414 echo "configure:8415: checking for $ac_func" >&5
8415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8416 echo $ac_n "(cached) $ac_c" 1>&6
8417 else
8418 cat > conftest.$ac_ext <<EOF
8419 #line 8420 "configure"
8420 #include "confdefs.h"
8421 /* System header to define __stub macros and hopefully few prototypes,
8422 which can conflict with char $ac_func(); below. */
8423 #include <assert.h>
8424 /* Override any gcc2 internal prototype to avoid an error. */
8425 /* We use char because int might match the return type of a gcc2
8426 builtin and then its argument prototype would still apply. */
8427 char $ac_func();
8429 int main() {
8431 /* The GNU C library defines this for functions which it implements
8432 to always fail with ENOSYS. Some functions are actually named
8433 something starting with __ and the normal name is an alias. */
8434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8435 choke me
8436 #else
8437 $ac_func();
8438 #endif
8440 ; return 0; }
8442 if { (eval echo configure:8443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8443 rm -rf conftest*
8444 eval "ac_cv_func_$ac_func=yes"
8445 else
8446 echo "configure: failed program was:" >&5
8447 cat conftest.$ac_ext >&5
8448 rm -rf conftest*
8449 eval "ac_cv_func_$ac_func=no"
8451 rm -f conftest*
8454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8455 echo "$ac_t""yes" 1>&6
8456 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8457 cat >> confdefs.h <<EOF
8458 #define $ac_tr_func 1
8461 else
8462 echo "$ac_t""no" 1>&6
8464 done
8470 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8471 echo "configure:8472: checking for isnanf declaration" >&5
8472 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8473 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_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 #ifdef HAVE_IEEEFP_H
8490 #include <ieeefp.h>
8491 #endif
8493 int main() {
8494 isnanf(0);
8495 ; return 0; }
8497 if { (eval echo configure:8498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8498 rm -rf conftest*
8499 glibcpp_cv_func_isnanf_use=yes
8500 else
8501 echo "configure: failed program was:" >&5
8502 cat conftest.$ac_ext >&5
8503 rm -rf conftest*
8504 glibcpp_cv_func_isnanf_use=no
8506 rm -f conftest*
8507 ac_ext=c
8508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8509 ac_cpp='$CPP $CPPFLAGS'
8510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8511 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8512 cross_compiling=$ac_cv_prog_cc_cross
8518 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8520 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8521 for ac_func in isnanf
8523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8524 echo "configure:8525: checking for $ac_func" >&5
8525 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8526 echo $ac_n "(cached) $ac_c" 1>&6
8527 else
8528 cat > conftest.$ac_ext <<EOF
8529 #line 8530 "configure"
8530 #include "confdefs.h"
8531 /* System header to define __stub macros and hopefully few prototypes,
8532 which can conflict with char $ac_func(); below. */
8533 #include <assert.h>
8534 /* Override any gcc2 internal prototype to avoid an error. */
8535 /* We use char because int might match the return type of a gcc2
8536 builtin and then its argument prototype would still apply. */
8537 char $ac_func();
8539 int main() {
8541 /* The GNU C library defines this for functions which it implements
8542 to always fail with ENOSYS. Some functions are actually named
8543 something starting with __ and the normal name is an alias. */
8544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8545 choke me
8546 #else
8547 $ac_func();
8548 #endif
8550 ; return 0; }
8552 if { (eval echo configure:8553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8553 rm -rf conftest*
8554 eval "ac_cv_func_$ac_func=yes"
8555 else
8556 echo "configure: failed program was:" >&5
8557 cat conftest.$ac_ext >&5
8558 rm -rf conftest*
8559 eval "ac_cv_func_$ac_func=no"
8561 rm -f conftest*
8564 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8565 echo "$ac_t""yes" 1>&6
8566 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8567 cat >> confdefs.h <<EOF
8568 #define $ac_tr_func 1
8571 else
8572 echo "$ac_t""no" 1>&6
8574 done
8576 else
8578 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8579 echo "configure:8580: checking for _isnanf declaration" >&5
8580 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8581 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8582 echo $ac_n "(cached) $ac_c" 1>&6
8583 else
8586 ac_ext=C
8587 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8588 ac_cpp='$CXXCPP $CPPFLAGS'
8589 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8590 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8591 cross_compiling=$ac_cv_prog_cxx_cross
8593 cat > conftest.$ac_ext <<EOF
8594 #line 8595 "configure"
8595 #include "confdefs.h"
8596 #include <math.h>
8597 #ifdef HAVE_IEEEFP_H
8598 #include <ieeefp.h>
8599 #endif
8601 int main() {
8602 _isnanf(0);
8603 ; return 0; }
8605 if { (eval echo configure:8606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8606 rm -rf conftest*
8607 glibcpp_cv_func__isnanf_use=yes
8608 else
8609 echo "configure: failed program was:" >&5
8610 cat conftest.$ac_ext >&5
8611 rm -rf conftest*
8612 glibcpp_cv_func__isnanf_use=no
8614 rm -f conftest*
8615 ac_ext=c
8616 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8617 ac_cpp='$CPP $CPPFLAGS'
8618 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8619 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8620 cross_compiling=$ac_cv_prog_cc_cross
8626 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8628 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8629 for ac_func in _isnanf
8631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8632 echo "configure:8633: checking for $ac_func" >&5
8633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8634 echo $ac_n "(cached) $ac_c" 1>&6
8635 else
8636 cat > conftest.$ac_ext <<EOF
8637 #line 8638 "configure"
8638 #include "confdefs.h"
8639 /* System header to define __stub macros and hopefully few prototypes,
8640 which can conflict with char $ac_func(); below. */
8641 #include <assert.h>
8642 /* Override any gcc2 internal prototype to avoid an error. */
8643 /* We use char because int might match the return type of a gcc2
8644 builtin and then its argument prototype would still apply. */
8645 char $ac_func();
8647 int main() {
8649 /* The GNU C library defines this for functions which it implements
8650 to always fail with ENOSYS. Some functions are actually named
8651 something starting with __ and the normal name is an alias. */
8652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8653 choke me
8654 #else
8655 $ac_func();
8656 #endif
8658 ; return 0; }
8660 if { (eval echo configure:8661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8661 rm -rf conftest*
8662 eval "ac_cv_func_$ac_func=yes"
8663 else
8664 echo "configure: failed program was:" >&5
8665 cat conftest.$ac_ext >&5
8666 rm -rf conftest*
8667 eval "ac_cv_func_$ac_func=no"
8669 rm -f conftest*
8672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8673 echo "$ac_t""yes" 1>&6
8674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8675 cat >> confdefs.h <<EOF
8676 #define $ac_tr_func 1
8679 else
8680 echo "$ac_t""no" 1>&6
8682 done
8689 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8690 echo "configure:8691: checking for isinff declaration" >&5
8691 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8692 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8693 echo $ac_n "(cached) $ac_c" 1>&6
8694 else
8697 ac_ext=C
8698 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8699 ac_cpp='$CXXCPP $CPPFLAGS'
8700 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8701 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8702 cross_compiling=$ac_cv_prog_cxx_cross
8704 cat > conftest.$ac_ext <<EOF
8705 #line 8706 "configure"
8706 #include "confdefs.h"
8707 #include <math.h>
8708 #ifdef HAVE_IEEEFP_H
8709 #include <ieeefp.h>
8710 #endif
8712 int main() {
8713 isinff(0);
8714 ; return 0; }
8716 if { (eval echo configure:8717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8717 rm -rf conftest*
8718 glibcpp_cv_func_isinff_use=yes
8719 else
8720 echo "configure: failed program was:" >&5
8721 cat conftest.$ac_ext >&5
8722 rm -rf conftest*
8723 glibcpp_cv_func_isinff_use=no
8725 rm -f conftest*
8726 ac_ext=c
8727 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8728 ac_cpp='$CPP $CPPFLAGS'
8729 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8730 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8731 cross_compiling=$ac_cv_prog_cc_cross
8737 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8739 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8740 for ac_func in isinff
8742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8743 echo "configure:8744: checking for $ac_func" >&5
8744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8745 echo $ac_n "(cached) $ac_c" 1>&6
8746 else
8747 cat > conftest.$ac_ext <<EOF
8748 #line 8749 "configure"
8749 #include "confdefs.h"
8750 /* System header to define __stub macros and hopefully few prototypes,
8751 which can conflict with char $ac_func(); below. */
8752 #include <assert.h>
8753 /* Override any gcc2 internal prototype to avoid an error. */
8754 /* We use char because int might match the return type of a gcc2
8755 builtin and then its argument prototype would still apply. */
8756 char $ac_func();
8758 int main() {
8760 /* The GNU C library defines this for functions which it implements
8761 to always fail with ENOSYS. Some functions are actually named
8762 something starting with __ and the normal name is an alias. */
8763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8764 choke me
8765 #else
8766 $ac_func();
8767 #endif
8769 ; return 0; }
8771 if { (eval echo configure:8772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8772 rm -rf conftest*
8773 eval "ac_cv_func_$ac_func=yes"
8774 else
8775 echo "configure: failed program was:" >&5
8776 cat conftest.$ac_ext >&5
8777 rm -rf conftest*
8778 eval "ac_cv_func_$ac_func=no"
8780 rm -f conftest*
8783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8784 echo "$ac_t""yes" 1>&6
8785 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8786 cat >> confdefs.h <<EOF
8787 #define $ac_tr_func 1
8790 else
8791 echo "$ac_t""no" 1>&6
8793 done
8795 else
8797 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8798 echo "configure:8799: checking for _isinff declaration" >&5
8799 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8800 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8801 echo $ac_n "(cached) $ac_c" 1>&6
8802 else
8805 ac_ext=C
8806 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8807 ac_cpp='$CXXCPP $CPPFLAGS'
8808 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8809 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8810 cross_compiling=$ac_cv_prog_cxx_cross
8812 cat > conftest.$ac_ext <<EOF
8813 #line 8814 "configure"
8814 #include "confdefs.h"
8815 #include <math.h>
8816 #ifdef HAVE_IEEEFP_H
8817 #include <ieeefp.h>
8818 #endif
8820 int main() {
8821 _isinff(0);
8822 ; return 0; }
8824 if { (eval echo configure:8825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8825 rm -rf conftest*
8826 glibcpp_cv_func__isinff_use=yes
8827 else
8828 echo "configure: failed program was:" >&5
8829 cat conftest.$ac_ext >&5
8830 rm -rf conftest*
8831 glibcpp_cv_func__isinff_use=no
8833 rm -f conftest*
8834 ac_ext=c
8835 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8836 ac_cpp='$CPP $CPPFLAGS'
8837 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8838 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8839 cross_compiling=$ac_cv_prog_cc_cross
8845 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8847 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8848 for ac_func in _isinff
8850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8851 echo "configure:8852: checking for $ac_func" >&5
8852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8853 echo $ac_n "(cached) $ac_c" 1>&6
8854 else
8855 cat > conftest.$ac_ext <<EOF
8856 #line 8857 "configure"
8857 #include "confdefs.h"
8858 /* System header to define __stub macros and hopefully few prototypes,
8859 which can conflict with char $ac_func(); below. */
8860 #include <assert.h>
8861 /* Override any gcc2 internal prototype to avoid an error. */
8862 /* We use char because int might match the return type of a gcc2
8863 builtin and then its argument prototype would still apply. */
8864 char $ac_func();
8866 int main() {
8868 /* The GNU C library defines this for functions which it implements
8869 to always fail with ENOSYS. Some functions are actually named
8870 something starting with __ and the normal name is an alias. */
8871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8872 choke me
8873 #else
8874 $ac_func();
8875 #endif
8877 ; return 0; }
8879 if { (eval echo configure:8880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8880 rm -rf conftest*
8881 eval "ac_cv_func_$ac_func=yes"
8882 else
8883 echo "configure: failed program was:" >&5
8884 cat conftest.$ac_ext >&5
8885 rm -rf conftest*
8886 eval "ac_cv_func_$ac_func=no"
8888 rm -f conftest*
8891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8892 echo "$ac_t""yes" 1>&6
8893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8894 cat >> confdefs.h <<EOF
8895 #define $ac_tr_func 1
8898 else
8899 echo "$ac_t""no" 1>&6
8901 done
8908 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
8909 echo "configure:8910: checking for atan2f declaration" >&5
8910 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
8911 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
8912 echo $ac_n "(cached) $ac_c" 1>&6
8913 else
8916 ac_ext=C
8917 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8918 ac_cpp='$CXXCPP $CPPFLAGS'
8919 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8920 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8921 cross_compiling=$ac_cv_prog_cxx_cross
8923 cat > conftest.$ac_ext <<EOF
8924 #line 8925 "configure"
8925 #include "confdefs.h"
8926 #include <math.h>
8927 int main() {
8928 atan2f(0, 0);
8929 ; return 0; }
8931 if { (eval echo configure:8932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8932 rm -rf conftest*
8933 glibcpp_cv_func_atan2f_use=yes
8934 else
8935 echo "configure: failed program was:" >&5
8936 cat conftest.$ac_ext >&5
8937 rm -rf conftest*
8938 glibcpp_cv_func_atan2f_use=no
8940 rm -f conftest*
8941 ac_ext=c
8942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8943 ac_cpp='$CPP $CPPFLAGS'
8944 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8945 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8946 cross_compiling=$ac_cv_prog_cc_cross
8952 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
8954 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
8955 for ac_func in atan2f
8957 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8958 echo "configure:8959: checking for $ac_func" >&5
8959 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8960 echo $ac_n "(cached) $ac_c" 1>&6
8961 else
8962 cat > conftest.$ac_ext <<EOF
8963 #line 8964 "configure"
8964 #include "confdefs.h"
8965 /* System header to define __stub macros and hopefully few prototypes,
8966 which can conflict with char $ac_func(); below. */
8967 #include <assert.h>
8968 /* Override any gcc2 internal prototype to avoid an error. */
8969 /* We use char because int might match the return type of a gcc2
8970 builtin and then its argument prototype would still apply. */
8971 char $ac_func();
8973 int main() {
8975 /* The GNU C library defines this for functions which it implements
8976 to always fail with ENOSYS. Some functions are actually named
8977 something starting with __ and the normal name is an alias. */
8978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8979 choke me
8980 #else
8981 $ac_func();
8982 #endif
8984 ; return 0; }
8986 if { (eval echo configure:8987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8987 rm -rf conftest*
8988 eval "ac_cv_func_$ac_func=yes"
8989 else
8990 echo "configure: failed program was:" >&5
8991 cat conftest.$ac_ext >&5
8992 rm -rf conftest*
8993 eval "ac_cv_func_$ac_func=no"
8995 rm -f conftest*
8998 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8999 echo "$ac_t""yes" 1>&6
9000 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9001 cat >> confdefs.h <<EOF
9002 #define $ac_tr_func 1
9005 else
9006 echo "$ac_t""no" 1>&6
9008 done
9010 else
9012 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
9013 echo "configure:9014: checking for _atan2f declaration" >&5
9014 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
9015 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
9016 echo $ac_n "(cached) $ac_c" 1>&6
9017 else
9020 ac_ext=C
9021 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9022 ac_cpp='$CXXCPP $CPPFLAGS'
9023 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9024 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9025 cross_compiling=$ac_cv_prog_cxx_cross
9027 cat > conftest.$ac_ext <<EOF
9028 #line 9029 "configure"
9029 #include "confdefs.h"
9030 #include <math.h>
9031 int main() {
9032 _atan2f(0, 0);
9033 ; return 0; }
9035 if { (eval echo configure:9036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9036 rm -rf conftest*
9037 glibcpp_cv_func__atan2f_use=yes
9038 else
9039 echo "configure: failed program was:" >&5
9040 cat conftest.$ac_ext >&5
9041 rm -rf conftest*
9042 glibcpp_cv_func__atan2f_use=no
9044 rm -f conftest*
9045 ac_ext=c
9046 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9047 ac_cpp='$CPP $CPPFLAGS'
9048 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9049 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9050 cross_compiling=$ac_cv_prog_cc_cross
9056 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
9058 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
9059 for ac_func in _atan2f
9061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9062 echo "configure:9063: checking for $ac_func" >&5
9063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9064 echo $ac_n "(cached) $ac_c" 1>&6
9065 else
9066 cat > conftest.$ac_ext <<EOF
9067 #line 9068 "configure"
9068 #include "confdefs.h"
9069 /* System header to define __stub macros and hopefully few prototypes,
9070 which can conflict with char $ac_func(); below. */
9071 #include <assert.h>
9072 /* Override any gcc2 internal prototype to avoid an error. */
9073 /* We use char because int might match the return type of a gcc2
9074 builtin and then its argument prototype would still apply. */
9075 char $ac_func();
9077 int main() {
9079 /* The GNU C library defines this for functions which it implements
9080 to always fail with ENOSYS. Some functions are actually named
9081 something starting with __ and the normal name is an alias. */
9082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9083 choke me
9084 #else
9085 $ac_func();
9086 #endif
9088 ; return 0; }
9090 if { (eval echo configure:9091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9091 rm -rf conftest*
9092 eval "ac_cv_func_$ac_func=yes"
9093 else
9094 echo "configure: failed program was:" >&5
9095 cat conftest.$ac_ext >&5
9096 rm -rf conftest*
9097 eval "ac_cv_func_$ac_func=no"
9099 rm -f conftest*
9102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9103 echo "$ac_t""yes" 1>&6
9104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9105 cat >> confdefs.h <<EOF
9106 #define $ac_tr_func 1
9109 else
9110 echo "$ac_t""no" 1>&6
9112 done
9119 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
9120 echo "configure:9121: checking for fabsf declaration" >&5
9121 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
9122 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
9123 echo $ac_n "(cached) $ac_c" 1>&6
9124 else
9127 ac_ext=C
9128 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9129 ac_cpp='$CXXCPP $CPPFLAGS'
9130 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9131 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9132 cross_compiling=$ac_cv_prog_cxx_cross
9134 cat > conftest.$ac_ext <<EOF
9135 #line 9136 "configure"
9136 #include "confdefs.h"
9137 #include <math.h>
9138 #ifdef HAVE_IEEEFP_H
9139 #include <ieeefp.h>
9140 #endif
9142 int main() {
9143 fabsf(0);
9144 ; return 0; }
9146 if { (eval echo configure:9147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9147 rm -rf conftest*
9148 glibcpp_cv_func_fabsf_use=yes
9149 else
9150 echo "configure: failed program was:" >&5
9151 cat conftest.$ac_ext >&5
9152 rm -rf conftest*
9153 glibcpp_cv_func_fabsf_use=no
9155 rm -f conftest*
9156 ac_ext=c
9157 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9158 ac_cpp='$CPP $CPPFLAGS'
9159 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9160 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9161 cross_compiling=$ac_cv_prog_cc_cross
9167 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
9169 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
9170 for ac_func in fabsf
9172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9173 echo "configure:9174: checking for $ac_func" >&5
9174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9176 else
9177 cat > conftest.$ac_ext <<EOF
9178 #line 9179 "configure"
9179 #include "confdefs.h"
9180 /* System header to define __stub macros and hopefully few prototypes,
9181 which can conflict with char $ac_func(); below. */
9182 #include <assert.h>
9183 /* Override any gcc2 internal prototype to avoid an error. */
9184 /* We use char because int might match the return type of a gcc2
9185 builtin and then its argument prototype would still apply. */
9186 char $ac_func();
9188 int main() {
9190 /* The GNU C library defines this for functions which it implements
9191 to always fail with ENOSYS. Some functions are actually named
9192 something starting with __ and the normal name is an alias. */
9193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9194 choke me
9195 #else
9196 $ac_func();
9197 #endif
9199 ; return 0; }
9201 if { (eval echo configure:9202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9202 rm -rf conftest*
9203 eval "ac_cv_func_$ac_func=yes"
9204 else
9205 echo "configure: failed program was:" >&5
9206 cat conftest.$ac_ext >&5
9207 rm -rf conftest*
9208 eval "ac_cv_func_$ac_func=no"
9210 rm -f conftest*
9213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9214 echo "$ac_t""yes" 1>&6
9215 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9216 cat >> confdefs.h <<EOF
9217 #define $ac_tr_func 1
9220 else
9221 echo "$ac_t""no" 1>&6
9223 done
9225 else
9227 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
9228 echo "configure:9229: checking for _fabsf declaration" >&5
9229 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
9230 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
9231 echo $ac_n "(cached) $ac_c" 1>&6
9232 else
9235 ac_ext=C
9236 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9237 ac_cpp='$CXXCPP $CPPFLAGS'
9238 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9239 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9240 cross_compiling=$ac_cv_prog_cxx_cross
9242 cat > conftest.$ac_ext <<EOF
9243 #line 9244 "configure"
9244 #include "confdefs.h"
9245 #include <math.h>
9246 #ifdef HAVE_IEEEFP_H
9247 #include <ieeefp.h>
9248 #endif
9250 int main() {
9251 _fabsf(0);
9252 ; return 0; }
9254 if { (eval echo configure:9255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9255 rm -rf conftest*
9256 glibcpp_cv_func__fabsf_use=yes
9257 else
9258 echo "configure: failed program was:" >&5
9259 cat conftest.$ac_ext >&5
9260 rm -rf conftest*
9261 glibcpp_cv_func__fabsf_use=no
9263 rm -f conftest*
9264 ac_ext=c
9265 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9266 ac_cpp='$CPP $CPPFLAGS'
9267 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9268 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9269 cross_compiling=$ac_cv_prog_cc_cross
9275 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
9277 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
9278 for ac_func in _fabsf
9280 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9281 echo "configure:9282: checking for $ac_func" >&5
9282 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9283 echo $ac_n "(cached) $ac_c" 1>&6
9284 else
9285 cat > conftest.$ac_ext <<EOF
9286 #line 9287 "configure"
9287 #include "confdefs.h"
9288 /* System header to define __stub macros and hopefully few prototypes,
9289 which can conflict with char $ac_func(); below. */
9290 #include <assert.h>
9291 /* Override any gcc2 internal prototype to avoid an error. */
9292 /* We use char because int might match the return type of a gcc2
9293 builtin and then its argument prototype would still apply. */
9294 char $ac_func();
9296 int main() {
9298 /* The GNU C library defines this for functions which it implements
9299 to always fail with ENOSYS. Some functions are actually named
9300 something starting with __ and the normal name is an alias. */
9301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9302 choke me
9303 #else
9304 $ac_func();
9305 #endif
9307 ; return 0; }
9309 if { (eval echo configure:9310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9310 rm -rf conftest*
9311 eval "ac_cv_func_$ac_func=yes"
9312 else
9313 echo "configure: failed program was:" >&5
9314 cat conftest.$ac_ext >&5
9315 rm -rf conftest*
9316 eval "ac_cv_func_$ac_func=no"
9318 rm -f conftest*
9321 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9322 echo "$ac_t""yes" 1>&6
9323 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9324 cat >> confdefs.h <<EOF
9325 #define $ac_tr_func 1
9328 else
9329 echo "$ac_t""no" 1>&6
9331 done
9338 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
9339 echo "configure:9340: checking for fmodf declaration" >&5
9340 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
9341 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
9342 echo $ac_n "(cached) $ac_c" 1>&6
9343 else
9346 ac_ext=C
9347 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9348 ac_cpp='$CXXCPP $CPPFLAGS'
9349 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9350 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9351 cross_compiling=$ac_cv_prog_cxx_cross
9353 cat > conftest.$ac_ext <<EOF
9354 #line 9355 "configure"
9355 #include "confdefs.h"
9356 #include <math.h>
9357 int main() {
9358 fmodf(0, 0);
9359 ; return 0; }
9361 if { (eval echo configure:9362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9362 rm -rf conftest*
9363 glibcpp_cv_func_fmodf_use=yes
9364 else
9365 echo "configure: failed program was:" >&5
9366 cat conftest.$ac_ext >&5
9367 rm -rf conftest*
9368 glibcpp_cv_func_fmodf_use=no
9370 rm -f conftest*
9371 ac_ext=c
9372 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9373 ac_cpp='$CPP $CPPFLAGS'
9374 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9375 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9376 cross_compiling=$ac_cv_prog_cc_cross
9382 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
9384 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
9385 for ac_func in fmodf
9387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9388 echo "configure:9389: checking for $ac_func" >&5
9389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9390 echo $ac_n "(cached) $ac_c" 1>&6
9391 else
9392 cat > conftest.$ac_ext <<EOF
9393 #line 9394 "configure"
9394 #include "confdefs.h"
9395 /* System header to define __stub macros and hopefully few prototypes,
9396 which can conflict with char $ac_func(); below. */
9397 #include <assert.h>
9398 /* Override any gcc2 internal prototype to avoid an error. */
9399 /* We use char because int might match the return type of a gcc2
9400 builtin and then its argument prototype would still apply. */
9401 char $ac_func();
9403 int main() {
9405 /* The GNU C library defines this for functions which it implements
9406 to always fail with ENOSYS. Some functions are actually named
9407 something starting with __ and the normal name is an alias. */
9408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9409 choke me
9410 #else
9411 $ac_func();
9412 #endif
9414 ; return 0; }
9416 if { (eval echo configure:9417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9417 rm -rf conftest*
9418 eval "ac_cv_func_$ac_func=yes"
9419 else
9420 echo "configure: failed program was:" >&5
9421 cat conftest.$ac_ext >&5
9422 rm -rf conftest*
9423 eval "ac_cv_func_$ac_func=no"
9425 rm -f conftest*
9428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9429 echo "$ac_t""yes" 1>&6
9430 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9431 cat >> confdefs.h <<EOF
9432 #define $ac_tr_func 1
9435 else
9436 echo "$ac_t""no" 1>&6
9438 done
9440 else
9442 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
9443 echo "configure:9444: checking for _fmodf declaration" >&5
9444 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
9445 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
9446 echo $ac_n "(cached) $ac_c" 1>&6
9447 else
9450 ac_ext=C
9451 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9452 ac_cpp='$CXXCPP $CPPFLAGS'
9453 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9454 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9455 cross_compiling=$ac_cv_prog_cxx_cross
9457 cat > conftest.$ac_ext <<EOF
9458 #line 9459 "configure"
9459 #include "confdefs.h"
9460 #include <math.h>
9461 int main() {
9462 _fmodf(0, 0);
9463 ; return 0; }
9465 if { (eval echo configure:9466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9466 rm -rf conftest*
9467 glibcpp_cv_func__fmodf_use=yes
9468 else
9469 echo "configure: failed program was:" >&5
9470 cat conftest.$ac_ext >&5
9471 rm -rf conftest*
9472 glibcpp_cv_func__fmodf_use=no
9474 rm -f conftest*
9475 ac_ext=c
9476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9477 ac_cpp='$CPP $CPPFLAGS'
9478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9480 cross_compiling=$ac_cv_prog_cc_cross
9486 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
9488 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
9489 for ac_func in _fmodf
9491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9492 echo "configure:9493: checking for $ac_func" >&5
9493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9494 echo $ac_n "(cached) $ac_c" 1>&6
9495 else
9496 cat > conftest.$ac_ext <<EOF
9497 #line 9498 "configure"
9498 #include "confdefs.h"
9499 /* System header to define __stub macros and hopefully few prototypes,
9500 which can conflict with char $ac_func(); below. */
9501 #include <assert.h>
9502 /* Override any gcc2 internal prototype to avoid an error. */
9503 /* We use char because int might match the return type of a gcc2
9504 builtin and then its argument prototype would still apply. */
9505 char $ac_func();
9507 int main() {
9509 /* The GNU C library defines this for functions which it implements
9510 to always fail with ENOSYS. Some functions are actually named
9511 something starting with __ and the normal name is an alias. */
9512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9513 choke me
9514 #else
9515 $ac_func();
9516 #endif
9518 ; return 0; }
9520 if { (eval echo configure:9521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9521 rm -rf conftest*
9522 eval "ac_cv_func_$ac_func=yes"
9523 else
9524 echo "configure: failed program was:" >&5
9525 cat conftest.$ac_ext >&5
9526 rm -rf conftest*
9527 eval "ac_cv_func_$ac_func=no"
9529 rm -f conftest*
9532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9533 echo "$ac_t""yes" 1>&6
9534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9535 cat >> confdefs.h <<EOF
9536 #define $ac_tr_func 1
9539 else
9540 echo "$ac_t""no" 1>&6
9542 done
9549 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
9550 echo "configure:9551: checking for frexpf declaration" >&5
9551 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
9552 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
9553 echo $ac_n "(cached) $ac_c" 1>&6
9554 else
9557 ac_ext=C
9558 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9559 ac_cpp='$CXXCPP $CPPFLAGS'
9560 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9561 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9562 cross_compiling=$ac_cv_prog_cxx_cross
9564 cat > conftest.$ac_ext <<EOF
9565 #line 9566 "configure"
9566 #include "confdefs.h"
9567 #include <math.h>
9568 int main() {
9569 frexpf(0, 0);
9570 ; return 0; }
9572 if { (eval echo configure:9573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9573 rm -rf conftest*
9574 glibcpp_cv_func_frexpf_use=yes
9575 else
9576 echo "configure: failed program was:" >&5
9577 cat conftest.$ac_ext >&5
9578 rm -rf conftest*
9579 glibcpp_cv_func_frexpf_use=no
9581 rm -f conftest*
9582 ac_ext=c
9583 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9584 ac_cpp='$CPP $CPPFLAGS'
9585 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9586 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9587 cross_compiling=$ac_cv_prog_cc_cross
9593 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
9595 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
9596 for ac_func in frexpf
9598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9599 echo "configure:9600: checking for $ac_func" >&5
9600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9601 echo $ac_n "(cached) $ac_c" 1>&6
9602 else
9603 cat > conftest.$ac_ext <<EOF
9604 #line 9605 "configure"
9605 #include "confdefs.h"
9606 /* System header to define __stub macros and hopefully few prototypes,
9607 which can conflict with char $ac_func(); below. */
9608 #include <assert.h>
9609 /* Override any gcc2 internal prototype to avoid an error. */
9610 /* We use char because int might match the return type of a gcc2
9611 builtin and then its argument prototype would still apply. */
9612 char $ac_func();
9614 int main() {
9616 /* The GNU C library defines this for functions which it implements
9617 to always fail with ENOSYS. Some functions are actually named
9618 something starting with __ and the normal name is an alias. */
9619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9620 choke me
9621 #else
9622 $ac_func();
9623 #endif
9625 ; return 0; }
9627 if { (eval echo configure:9628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9628 rm -rf conftest*
9629 eval "ac_cv_func_$ac_func=yes"
9630 else
9631 echo "configure: failed program was:" >&5
9632 cat conftest.$ac_ext >&5
9633 rm -rf conftest*
9634 eval "ac_cv_func_$ac_func=no"
9636 rm -f conftest*
9639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9640 echo "$ac_t""yes" 1>&6
9641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9642 cat >> confdefs.h <<EOF
9643 #define $ac_tr_func 1
9646 else
9647 echo "$ac_t""no" 1>&6
9649 done
9651 else
9653 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9654 echo "configure:9655: checking for _frexpf declaration" >&5
9655 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9656 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9657 echo $ac_n "(cached) $ac_c" 1>&6
9658 else
9661 ac_ext=C
9662 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9663 ac_cpp='$CXXCPP $CPPFLAGS'
9664 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9665 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9666 cross_compiling=$ac_cv_prog_cxx_cross
9668 cat > conftest.$ac_ext <<EOF
9669 #line 9670 "configure"
9670 #include "confdefs.h"
9671 #include <math.h>
9672 int main() {
9673 _frexpf(0, 0);
9674 ; return 0; }
9676 if { (eval echo configure:9677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9677 rm -rf conftest*
9678 glibcpp_cv_func__frexpf_use=yes
9679 else
9680 echo "configure: failed program was:" >&5
9681 cat conftest.$ac_ext >&5
9682 rm -rf conftest*
9683 glibcpp_cv_func__frexpf_use=no
9685 rm -f conftest*
9686 ac_ext=c
9687 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9688 ac_cpp='$CPP $CPPFLAGS'
9689 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9690 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9691 cross_compiling=$ac_cv_prog_cc_cross
9697 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9699 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9700 for ac_func in _frexpf
9702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9703 echo "configure:9704: checking for $ac_func" >&5
9704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9705 echo $ac_n "(cached) $ac_c" 1>&6
9706 else
9707 cat > conftest.$ac_ext <<EOF
9708 #line 9709 "configure"
9709 #include "confdefs.h"
9710 /* System header to define __stub macros and hopefully few prototypes,
9711 which can conflict with char $ac_func(); below. */
9712 #include <assert.h>
9713 /* Override any gcc2 internal prototype to avoid an error. */
9714 /* We use char because int might match the return type of a gcc2
9715 builtin and then its argument prototype would still apply. */
9716 char $ac_func();
9718 int main() {
9720 /* The GNU C library defines this for functions which it implements
9721 to always fail with ENOSYS. Some functions are actually named
9722 something starting with __ and the normal name is an alias. */
9723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9724 choke me
9725 #else
9726 $ac_func();
9727 #endif
9729 ; return 0; }
9731 if { (eval echo configure:9732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9732 rm -rf conftest*
9733 eval "ac_cv_func_$ac_func=yes"
9734 else
9735 echo "configure: failed program was:" >&5
9736 cat conftest.$ac_ext >&5
9737 rm -rf conftest*
9738 eval "ac_cv_func_$ac_func=no"
9740 rm -f conftest*
9743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9744 echo "$ac_t""yes" 1>&6
9745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9746 cat >> confdefs.h <<EOF
9747 #define $ac_tr_func 1
9750 else
9751 echo "$ac_t""no" 1>&6
9753 done
9760 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
9761 echo "configure:9762: checking for hypotf declaration" >&5
9762 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
9763 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
9764 echo $ac_n "(cached) $ac_c" 1>&6
9765 else
9768 ac_ext=C
9769 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9770 ac_cpp='$CXXCPP $CPPFLAGS'
9771 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9772 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9773 cross_compiling=$ac_cv_prog_cxx_cross
9775 cat > conftest.$ac_ext <<EOF
9776 #line 9777 "configure"
9777 #include "confdefs.h"
9778 #include <math.h>
9779 int main() {
9780 hypotf(0, 0);
9781 ; return 0; }
9783 if { (eval echo configure:9784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9784 rm -rf conftest*
9785 glibcpp_cv_func_hypotf_use=yes
9786 else
9787 echo "configure: failed program was:" >&5
9788 cat conftest.$ac_ext >&5
9789 rm -rf conftest*
9790 glibcpp_cv_func_hypotf_use=no
9792 rm -f conftest*
9793 ac_ext=c
9794 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9795 ac_cpp='$CPP $CPPFLAGS'
9796 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9797 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9798 cross_compiling=$ac_cv_prog_cc_cross
9804 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
9806 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
9807 for ac_func in hypotf
9809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9810 echo "configure:9811: checking for $ac_func" >&5
9811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9812 echo $ac_n "(cached) $ac_c" 1>&6
9813 else
9814 cat > conftest.$ac_ext <<EOF
9815 #line 9816 "configure"
9816 #include "confdefs.h"
9817 /* System header to define __stub macros and hopefully few prototypes,
9818 which can conflict with char $ac_func(); below. */
9819 #include <assert.h>
9820 /* Override any gcc2 internal prototype to avoid an error. */
9821 /* We use char because int might match the return type of a gcc2
9822 builtin and then its argument prototype would still apply. */
9823 char $ac_func();
9825 int main() {
9827 /* The GNU C library defines this for functions which it implements
9828 to always fail with ENOSYS. Some functions are actually named
9829 something starting with __ and the normal name is an alias. */
9830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9831 choke me
9832 #else
9833 $ac_func();
9834 #endif
9836 ; return 0; }
9838 if { (eval echo configure:9839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9839 rm -rf conftest*
9840 eval "ac_cv_func_$ac_func=yes"
9841 else
9842 echo "configure: failed program was:" >&5
9843 cat conftest.$ac_ext >&5
9844 rm -rf conftest*
9845 eval "ac_cv_func_$ac_func=no"
9847 rm -f conftest*
9850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9851 echo "$ac_t""yes" 1>&6
9852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9853 cat >> confdefs.h <<EOF
9854 #define $ac_tr_func 1
9857 else
9858 echo "$ac_t""no" 1>&6
9860 done
9862 else
9864 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
9865 echo "configure:9866: checking for _hypotf declaration" >&5
9866 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
9867 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
9868 echo $ac_n "(cached) $ac_c" 1>&6
9869 else
9872 ac_ext=C
9873 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9874 ac_cpp='$CXXCPP $CPPFLAGS'
9875 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9876 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9877 cross_compiling=$ac_cv_prog_cxx_cross
9879 cat > conftest.$ac_ext <<EOF
9880 #line 9881 "configure"
9881 #include "confdefs.h"
9882 #include <math.h>
9883 int main() {
9884 _hypotf(0, 0);
9885 ; return 0; }
9887 if { (eval echo configure:9888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9888 rm -rf conftest*
9889 glibcpp_cv_func__hypotf_use=yes
9890 else
9891 echo "configure: failed program was:" >&5
9892 cat conftest.$ac_ext >&5
9893 rm -rf conftest*
9894 glibcpp_cv_func__hypotf_use=no
9896 rm -f conftest*
9897 ac_ext=c
9898 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9899 ac_cpp='$CPP $CPPFLAGS'
9900 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9901 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9902 cross_compiling=$ac_cv_prog_cc_cross
9908 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
9910 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
9911 for ac_func in _hypotf
9913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9914 echo "configure:9915: checking for $ac_func" >&5
9915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9916 echo $ac_n "(cached) $ac_c" 1>&6
9917 else
9918 cat > conftest.$ac_ext <<EOF
9919 #line 9920 "configure"
9920 #include "confdefs.h"
9921 /* System header to define __stub macros and hopefully few prototypes,
9922 which can conflict with char $ac_func(); below. */
9923 #include <assert.h>
9924 /* Override any gcc2 internal prototype to avoid an error. */
9925 /* We use char because int might match the return type of a gcc2
9926 builtin and then its argument prototype would still apply. */
9927 char $ac_func();
9929 int main() {
9931 /* The GNU C library defines this for functions which it implements
9932 to always fail with ENOSYS. Some functions are actually named
9933 something starting with __ and the normal name is an alias. */
9934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9935 choke me
9936 #else
9937 $ac_func();
9938 #endif
9940 ; return 0; }
9942 if { (eval echo configure:9943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9943 rm -rf conftest*
9944 eval "ac_cv_func_$ac_func=yes"
9945 else
9946 echo "configure: failed program was:" >&5
9947 cat conftest.$ac_ext >&5
9948 rm -rf conftest*
9949 eval "ac_cv_func_$ac_func=no"
9951 rm -f conftest*
9954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9955 echo "$ac_t""yes" 1>&6
9956 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9957 cat >> confdefs.h <<EOF
9958 #define $ac_tr_func 1
9961 else
9962 echo "$ac_t""no" 1>&6
9964 done
9971 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
9972 echo "configure:9973: checking for ldexpf declaration" >&5
9973 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
9974 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
9975 echo $ac_n "(cached) $ac_c" 1>&6
9976 else
9979 ac_ext=C
9980 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9981 ac_cpp='$CXXCPP $CPPFLAGS'
9982 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9983 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9984 cross_compiling=$ac_cv_prog_cxx_cross
9986 cat > conftest.$ac_ext <<EOF
9987 #line 9988 "configure"
9988 #include "confdefs.h"
9989 #include <math.h>
9990 int main() {
9991 ldexpf(0, 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_ldexpf_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_ldexpf_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_ldexpf_use" 1>&6
10017 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
10018 for ac_func in ldexpf
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
10073 else
10075 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
10076 echo "configure:10077: checking for _ldexpf declaration" >&5
10077 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
10078 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
10079 echo $ac_n "(cached) $ac_c" 1>&6
10080 else
10083 ac_ext=C
10084 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10085 ac_cpp='$CXXCPP $CPPFLAGS'
10086 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10087 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10088 cross_compiling=$ac_cv_prog_cxx_cross
10090 cat > conftest.$ac_ext <<EOF
10091 #line 10092 "configure"
10092 #include "confdefs.h"
10093 #include <math.h>
10094 int main() {
10095 _ldexpf(0, 0);
10096 ; return 0; }
10098 if { (eval echo configure:10099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10099 rm -rf conftest*
10100 glibcpp_cv_func__ldexpf_use=yes
10101 else
10102 echo "configure: failed program was:" >&5
10103 cat conftest.$ac_ext >&5
10104 rm -rf conftest*
10105 glibcpp_cv_func__ldexpf_use=no
10107 rm -f conftest*
10108 ac_ext=c
10109 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10110 ac_cpp='$CPP $CPPFLAGS'
10111 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10112 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10113 cross_compiling=$ac_cv_prog_cc_cross
10119 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
10121 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
10122 for ac_func in _ldexpf
10124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10125 echo "configure:10126: checking for $ac_func" >&5
10126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10127 echo $ac_n "(cached) $ac_c" 1>&6
10128 else
10129 cat > conftest.$ac_ext <<EOF
10130 #line 10131 "configure"
10131 #include "confdefs.h"
10132 /* System header to define __stub macros and hopefully few prototypes,
10133 which can conflict with char $ac_func(); below. */
10134 #include <assert.h>
10135 /* Override any gcc2 internal prototype to avoid an error. */
10136 /* We use char because int might match the return type of a gcc2
10137 builtin and then its argument prototype would still apply. */
10138 char $ac_func();
10140 int main() {
10142 /* The GNU C library defines this for functions which it implements
10143 to always fail with ENOSYS. Some functions are actually named
10144 something starting with __ and the normal name is an alias. */
10145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10146 choke me
10147 #else
10148 $ac_func();
10149 #endif
10151 ; return 0; }
10153 if { (eval echo configure:10154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10154 rm -rf conftest*
10155 eval "ac_cv_func_$ac_func=yes"
10156 else
10157 echo "configure: failed program was:" >&5
10158 cat conftest.$ac_ext >&5
10159 rm -rf conftest*
10160 eval "ac_cv_func_$ac_func=no"
10162 rm -f conftest*
10165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10166 echo "$ac_t""yes" 1>&6
10167 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10168 cat >> confdefs.h <<EOF
10169 #define $ac_tr_func 1
10172 else
10173 echo "$ac_t""no" 1>&6
10175 done
10182 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
10183 echo "configure:10184: checking for logf declaration" >&5
10184 if test x${glibcpp_cv_func_logf_use+set} != xset; then
10185 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_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 #ifdef HAVE_IEEEFP_H
10202 #include <ieeefp.h>
10203 #endif
10205 int main() {
10206 logf(0);
10207 ; return 0; }
10209 if { (eval echo configure:10210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10210 rm -rf conftest*
10211 glibcpp_cv_func_logf_use=yes
10212 else
10213 echo "configure: failed program was:" >&5
10214 cat conftest.$ac_ext >&5
10215 rm -rf conftest*
10216 glibcpp_cv_func_logf_use=no
10218 rm -f conftest*
10219 ac_ext=c
10220 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10221 ac_cpp='$CPP $CPPFLAGS'
10222 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10223 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10224 cross_compiling=$ac_cv_prog_cc_cross
10230 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
10232 if test x$glibcpp_cv_func_logf_use = x"yes"; then
10233 for ac_func in logf
10235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10236 echo "configure:10237: checking for $ac_func" >&5
10237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10238 echo $ac_n "(cached) $ac_c" 1>&6
10239 else
10240 cat > conftest.$ac_ext <<EOF
10241 #line 10242 "configure"
10242 #include "confdefs.h"
10243 /* System header to define __stub macros and hopefully few prototypes,
10244 which can conflict with char $ac_func(); below. */
10245 #include <assert.h>
10246 /* Override any gcc2 internal prototype to avoid an error. */
10247 /* We use char because int might match the return type of a gcc2
10248 builtin and then its argument prototype would still apply. */
10249 char $ac_func();
10251 int main() {
10253 /* The GNU C library defines this for functions which it implements
10254 to always fail with ENOSYS. Some functions are actually named
10255 something starting with __ and the normal name is an alias. */
10256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10257 choke me
10258 #else
10259 $ac_func();
10260 #endif
10262 ; return 0; }
10264 if { (eval echo configure:10265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10265 rm -rf conftest*
10266 eval "ac_cv_func_$ac_func=yes"
10267 else
10268 echo "configure: failed program was:" >&5
10269 cat conftest.$ac_ext >&5
10270 rm -rf conftest*
10271 eval "ac_cv_func_$ac_func=no"
10273 rm -f conftest*
10276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10277 echo "$ac_t""yes" 1>&6
10278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10279 cat >> confdefs.h <<EOF
10280 #define $ac_tr_func 1
10283 else
10284 echo "$ac_t""no" 1>&6
10286 done
10288 else
10290 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
10291 echo "configure:10292: checking for _logf declaration" >&5
10292 if test x${glibcpp_cv_func__logf_use+set} != xset; then
10293 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
10294 echo $ac_n "(cached) $ac_c" 1>&6
10295 else
10298 ac_ext=C
10299 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10300 ac_cpp='$CXXCPP $CPPFLAGS'
10301 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10302 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10303 cross_compiling=$ac_cv_prog_cxx_cross
10305 cat > conftest.$ac_ext <<EOF
10306 #line 10307 "configure"
10307 #include "confdefs.h"
10308 #include <math.h>
10309 #ifdef HAVE_IEEEFP_H
10310 #include <ieeefp.h>
10311 #endif
10313 int main() {
10314 _logf(0);
10315 ; return 0; }
10317 if { (eval echo configure:10318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10318 rm -rf conftest*
10319 glibcpp_cv_func__logf_use=yes
10320 else
10321 echo "configure: failed program was:" >&5
10322 cat conftest.$ac_ext >&5
10323 rm -rf conftest*
10324 glibcpp_cv_func__logf_use=no
10326 rm -f conftest*
10327 ac_ext=c
10328 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10329 ac_cpp='$CPP $CPPFLAGS'
10330 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10331 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10332 cross_compiling=$ac_cv_prog_cc_cross
10338 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
10340 if test x$glibcpp_cv_func__logf_use = x"yes"; then
10341 for ac_func in _logf
10343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10344 echo "configure:10345: checking for $ac_func" >&5
10345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10346 echo $ac_n "(cached) $ac_c" 1>&6
10347 else
10348 cat > conftest.$ac_ext <<EOF
10349 #line 10350 "configure"
10350 #include "confdefs.h"
10351 /* System header to define __stub macros and hopefully few prototypes,
10352 which can conflict with char $ac_func(); below. */
10353 #include <assert.h>
10354 /* Override any gcc2 internal prototype to avoid an error. */
10355 /* We use char because int might match the return type of a gcc2
10356 builtin and then its argument prototype would still apply. */
10357 char $ac_func();
10359 int main() {
10361 /* The GNU C library defines this for functions which it implements
10362 to always fail with ENOSYS. Some functions are actually named
10363 something starting with __ and the normal name is an alias. */
10364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10365 choke me
10366 #else
10367 $ac_func();
10368 #endif
10370 ; return 0; }
10372 if { (eval echo configure:10373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10373 rm -rf conftest*
10374 eval "ac_cv_func_$ac_func=yes"
10375 else
10376 echo "configure: failed program was:" >&5
10377 cat conftest.$ac_ext >&5
10378 rm -rf conftest*
10379 eval "ac_cv_func_$ac_func=no"
10381 rm -f conftest*
10384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10385 echo "$ac_t""yes" 1>&6
10386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10387 cat >> confdefs.h <<EOF
10388 #define $ac_tr_func 1
10391 else
10392 echo "$ac_t""no" 1>&6
10394 done
10401 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
10402 echo "configure:10403: checking for log10f declaration" >&5
10403 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
10404 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
10405 echo $ac_n "(cached) $ac_c" 1>&6
10406 else
10409 ac_ext=C
10410 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10411 ac_cpp='$CXXCPP $CPPFLAGS'
10412 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10413 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10414 cross_compiling=$ac_cv_prog_cxx_cross
10416 cat > conftest.$ac_ext <<EOF
10417 #line 10418 "configure"
10418 #include "confdefs.h"
10419 #include <math.h>
10420 #ifdef HAVE_IEEEFP_H
10421 #include <ieeefp.h>
10422 #endif
10424 int main() {
10425 log10f(0);
10426 ; return 0; }
10428 if { (eval echo configure:10429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10429 rm -rf conftest*
10430 glibcpp_cv_func_log10f_use=yes
10431 else
10432 echo "configure: failed program was:" >&5
10433 cat conftest.$ac_ext >&5
10434 rm -rf conftest*
10435 glibcpp_cv_func_log10f_use=no
10437 rm -f conftest*
10438 ac_ext=c
10439 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10440 ac_cpp='$CPP $CPPFLAGS'
10441 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10442 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10443 cross_compiling=$ac_cv_prog_cc_cross
10449 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
10451 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
10452 for ac_func in log10f
10454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10455 echo "configure:10456: checking for $ac_func" >&5
10456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10457 echo $ac_n "(cached) $ac_c" 1>&6
10458 else
10459 cat > conftest.$ac_ext <<EOF
10460 #line 10461 "configure"
10461 #include "confdefs.h"
10462 /* System header to define __stub macros and hopefully few prototypes,
10463 which can conflict with char $ac_func(); below. */
10464 #include <assert.h>
10465 /* Override any gcc2 internal prototype to avoid an error. */
10466 /* We use char because int might match the return type of a gcc2
10467 builtin and then its argument prototype would still apply. */
10468 char $ac_func();
10470 int main() {
10472 /* The GNU C library defines this for functions which it implements
10473 to always fail with ENOSYS. Some functions are actually named
10474 something starting with __ and the normal name is an alias. */
10475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10476 choke me
10477 #else
10478 $ac_func();
10479 #endif
10481 ; return 0; }
10483 if { (eval echo configure:10484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10484 rm -rf conftest*
10485 eval "ac_cv_func_$ac_func=yes"
10486 else
10487 echo "configure: failed program was:" >&5
10488 cat conftest.$ac_ext >&5
10489 rm -rf conftest*
10490 eval "ac_cv_func_$ac_func=no"
10492 rm -f conftest*
10495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10496 echo "$ac_t""yes" 1>&6
10497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10498 cat >> confdefs.h <<EOF
10499 #define $ac_tr_func 1
10502 else
10503 echo "$ac_t""no" 1>&6
10505 done
10507 else
10509 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
10510 echo "configure:10511: checking for _log10f declaration" >&5
10511 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
10512 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
10513 echo $ac_n "(cached) $ac_c" 1>&6
10514 else
10517 ac_ext=C
10518 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10519 ac_cpp='$CXXCPP $CPPFLAGS'
10520 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10521 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10522 cross_compiling=$ac_cv_prog_cxx_cross
10524 cat > conftest.$ac_ext <<EOF
10525 #line 10526 "configure"
10526 #include "confdefs.h"
10527 #include <math.h>
10528 #ifdef HAVE_IEEEFP_H
10529 #include <ieeefp.h>
10530 #endif
10532 int main() {
10533 _log10f(0);
10534 ; return 0; }
10536 if { (eval echo configure:10537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10537 rm -rf conftest*
10538 glibcpp_cv_func__log10f_use=yes
10539 else
10540 echo "configure: failed program was:" >&5
10541 cat conftest.$ac_ext >&5
10542 rm -rf conftest*
10543 glibcpp_cv_func__log10f_use=no
10545 rm -f conftest*
10546 ac_ext=c
10547 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10548 ac_cpp='$CPP $CPPFLAGS'
10549 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10550 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10551 cross_compiling=$ac_cv_prog_cc_cross
10557 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
10559 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
10560 for ac_func in _log10f
10562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10563 echo "configure:10564: checking for $ac_func" >&5
10564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10565 echo $ac_n "(cached) $ac_c" 1>&6
10566 else
10567 cat > conftest.$ac_ext <<EOF
10568 #line 10569 "configure"
10569 #include "confdefs.h"
10570 /* System header to define __stub macros and hopefully few prototypes,
10571 which can conflict with char $ac_func(); below. */
10572 #include <assert.h>
10573 /* Override any gcc2 internal prototype to avoid an error. */
10574 /* We use char because int might match the return type of a gcc2
10575 builtin and then its argument prototype would still apply. */
10576 char $ac_func();
10578 int main() {
10580 /* The GNU C library defines this for functions which it implements
10581 to always fail with ENOSYS. Some functions are actually named
10582 something starting with __ and the normal name is an alias. */
10583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10584 choke me
10585 #else
10586 $ac_func();
10587 #endif
10589 ; return 0; }
10591 if { (eval echo configure:10592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10592 rm -rf conftest*
10593 eval "ac_cv_func_$ac_func=yes"
10594 else
10595 echo "configure: failed program was:" >&5
10596 cat conftest.$ac_ext >&5
10597 rm -rf conftest*
10598 eval "ac_cv_func_$ac_func=no"
10600 rm -f conftest*
10603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10604 echo "$ac_t""yes" 1>&6
10605 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10606 cat >> confdefs.h <<EOF
10607 #define $ac_tr_func 1
10610 else
10611 echo "$ac_t""no" 1>&6
10613 done
10620 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
10621 echo "configure:10622: checking for modff declaration" >&5
10622 if test x${glibcpp_cv_func_modff_use+set} != xset; then
10623 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
10624 echo $ac_n "(cached) $ac_c" 1>&6
10625 else
10628 ac_ext=C
10629 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10630 ac_cpp='$CXXCPP $CPPFLAGS'
10631 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10632 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10633 cross_compiling=$ac_cv_prog_cxx_cross
10635 cat > conftest.$ac_ext <<EOF
10636 #line 10637 "configure"
10637 #include "confdefs.h"
10638 #include <math.h>
10639 int main() {
10640 modff(0, 0);
10641 ; return 0; }
10643 if { (eval echo configure:10644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10644 rm -rf conftest*
10645 glibcpp_cv_func_modff_use=yes
10646 else
10647 echo "configure: failed program was:" >&5
10648 cat conftest.$ac_ext >&5
10649 rm -rf conftest*
10650 glibcpp_cv_func_modff_use=no
10652 rm -f conftest*
10653 ac_ext=c
10654 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10655 ac_cpp='$CPP $CPPFLAGS'
10656 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10657 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10658 cross_compiling=$ac_cv_prog_cc_cross
10664 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
10666 if test x$glibcpp_cv_func_modff_use = x"yes"; then
10667 for ac_func in modff
10669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10670 echo "configure:10671: checking for $ac_func" >&5
10671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10672 echo $ac_n "(cached) $ac_c" 1>&6
10673 else
10674 cat > conftest.$ac_ext <<EOF
10675 #line 10676 "configure"
10676 #include "confdefs.h"
10677 /* System header to define __stub macros and hopefully few prototypes,
10678 which can conflict with char $ac_func(); below. */
10679 #include <assert.h>
10680 /* Override any gcc2 internal prototype to avoid an error. */
10681 /* We use char because int might match the return type of a gcc2
10682 builtin and then its argument prototype would still apply. */
10683 char $ac_func();
10685 int main() {
10687 /* The GNU C library defines this for functions which it implements
10688 to always fail with ENOSYS. Some functions are actually named
10689 something starting with __ and the normal name is an alias. */
10690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10691 choke me
10692 #else
10693 $ac_func();
10694 #endif
10696 ; return 0; }
10698 if { (eval echo configure:10699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10699 rm -rf conftest*
10700 eval "ac_cv_func_$ac_func=yes"
10701 else
10702 echo "configure: failed program was:" >&5
10703 cat conftest.$ac_ext >&5
10704 rm -rf conftest*
10705 eval "ac_cv_func_$ac_func=no"
10707 rm -f conftest*
10710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10711 echo "$ac_t""yes" 1>&6
10712 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10713 cat >> confdefs.h <<EOF
10714 #define $ac_tr_func 1
10717 else
10718 echo "$ac_t""no" 1>&6
10720 done
10722 else
10724 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
10725 echo "configure:10726: checking for _modff declaration" >&5
10726 if test x${glibcpp_cv_func__modff_use+set} != xset; then
10727 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
10728 echo $ac_n "(cached) $ac_c" 1>&6
10729 else
10732 ac_ext=C
10733 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10734 ac_cpp='$CXXCPP $CPPFLAGS'
10735 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10736 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10737 cross_compiling=$ac_cv_prog_cxx_cross
10739 cat > conftest.$ac_ext <<EOF
10740 #line 10741 "configure"
10741 #include "confdefs.h"
10742 #include <math.h>
10743 int main() {
10744 _modff(0, 0);
10745 ; return 0; }
10747 if { (eval echo configure:10748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10748 rm -rf conftest*
10749 glibcpp_cv_func__modff_use=yes
10750 else
10751 echo "configure: failed program was:" >&5
10752 cat conftest.$ac_ext >&5
10753 rm -rf conftest*
10754 glibcpp_cv_func__modff_use=no
10756 rm -f conftest*
10757 ac_ext=c
10758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10759 ac_cpp='$CPP $CPPFLAGS'
10760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10761 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10762 cross_compiling=$ac_cv_prog_cc_cross
10768 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
10770 if test x$glibcpp_cv_func__modff_use = x"yes"; then
10771 for ac_func in _modff
10773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10774 echo "configure:10775: checking for $ac_func" >&5
10775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10776 echo $ac_n "(cached) $ac_c" 1>&6
10777 else
10778 cat > conftest.$ac_ext <<EOF
10779 #line 10780 "configure"
10780 #include "confdefs.h"
10781 /* System header to define __stub macros and hopefully few prototypes,
10782 which can conflict with char $ac_func(); below. */
10783 #include <assert.h>
10784 /* Override any gcc2 internal prototype to avoid an error. */
10785 /* We use char because int might match the return type of a gcc2
10786 builtin and then its argument prototype would still apply. */
10787 char $ac_func();
10789 int main() {
10791 /* The GNU C library defines this for functions which it implements
10792 to always fail with ENOSYS. Some functions are actually named
10793 something starting with __ and the normal name is an alias. */
10794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10795 choke me
10796 #else
10797 $ac_func();
10798 #endif
10800 ; return 0; }
10802 if { (eval echo configure:10803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10803 rm -rf conftest*
10804 eval "ac_cv_func_$ac_func=yes"
10805 else
10806 echo "configure: failed program was:" >&5
10807 cat conftest.$ac_ext >&5
10808 rm -rf conftest*
10809 eval "ac_cv_func_$ac_func=no"
10811 rm -f conftest*
10814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10815 echo "$ac_t""yes" 1>&6
10816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10817 cat >> confdefs.h <<EOF
10818 #define $ac_tr_func 1
10821 else
10822 echo "$ac_t""no" 1>&6
10824 done
10831 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10832 echo "configure:10833: checking for powf declaration" >&5
10833 if test x${glibcpp_cv_func_powf_use+set} != xset; then
10834 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10835 echo $ac_n "(cached) $ac_c" 1>&6
10836 else
10839 ac_ext=C
10840 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10841 ac_cpp='$CXXCPP $CPPFLAGS'
10842 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10843 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10844 cross_compiling=$ac_cv_prog_cxx_cross
10846 cat > conftest.$ac_ext <<EOF
10847 #line 10848 "configure"
10848 #include "confdefs.h"
10849 #include <math.h>
10850 int main() {
10851 powf(0, 0);
10852 ; return 0; }
10854 if { (eval echo configure:10855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10855 rm -rf conftest*
10856 glibcpp_cv_func_powf_use=yes
10857 else
10858 echo "configure: failed program was:" >&5
10859 cat conftest.$ac_ext >&5
10860 rm -rf conftest*
10861 glibcpp_cv_func_powf_use=no
10863 rm -f conftest*
10864 ac_ext=c
10865 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10866 ac_cpp='$CPP $CPPFLAGS'
10867 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10868 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10869 cross_compiling=$ac_cv_prog_cc_cross
10875 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10877 if test x$glibcpp_cv_func_powf_use = x"yes"; then
10878 for ac_func in powf
10880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10881 echo "configure:10882: checking for $ac_func" >&5
10882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10883 echo $ac_n "(cached) $ac_c" 1>&6
10884 else
10885 cat > conftest.$ac_ext <<EOF
10886 #line 10887 "configure"
10887 #include "confdefs.h"
10888 /* System header to define __stub macros and hopefully few prototypes,
10889 which can conflict with char $ac_func(); below. */
10890 #include <assert.h>
10891 /* Override any gcc2 internal prototype to avoid an error. */
10892 /* We use char because int might match the return type of a gcc2
10893 builtin and then its argument prototype would still apply. */
10894 char $ac_func();
10896 int main() {
10898 /* The GNU C library defines this for functions which it implements
10899 to always fail with ENOSYS. Some functions are actually named
10900 something starting with __ and the normal name is an alias. */
10901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10902 choke me
10903 #else
10904 $ac_func();
10905 #endif
10907 ; return 0; }
10909 if { (eval echo configure:10910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10910 rm -rf conftest*
10911 eval "ac_cv_func_$ac_func=yes"
10912 else
10913 echo "configure: failed program was:" >&5
10914 cat conftest.$ac_ext >&5
10915 rm -rf conftest*
10916 eval "ac_cv_func_$ac_func=no"
10918 rm -f conftest*
10921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10922 echo "$ac_t""yes" 1>&6
10923 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10924 cat >> confdefs.h <<EOF
10925 #define $ac_tr_func 1
10928 else
10929 echo "$ac_t""no" 1>&6
10931 done
10933 else
10935 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10936 echo "configure:10937: checking for _powf declaration" >&5
10937 if test x${glibcpp_cv_func__powf_use+set} != xset; then
10938 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10939 echo $ac_n "(cached) $ac_c" 1>&6
10940 else
10943 ac_ext=C
10944 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10945 ac_cpp='$CXXCPP $CPPFLAGS'
10946 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10947 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10948 cross_compiling=$ac_cv_prog_cxx_cross
10950 cat > conftest.$ac_ext <<EOF
10951 #line 10952 "configure"
10952 #include "confdefs.h"
10953 #include <math.h>
10954 int main() {
10955 _powf(0, 0);
10956 ; return 0; }
10958 if { (eval echo configure:10959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10959 rm -rf conftest*
10960 glibcpp_cv_func__powf_use=yes
10961 else
10962 echo "configure: failed program was:" >&5
10963 cat conftest.$ac_ext >&5
10964 rm -rf conftest*
10965 glibcpp_cv_func__powf_use=no
10967 rm -f conftest*
10968 ac_ext=c
10969 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10970 ac_cpp='$CPP $CPPFLAGS'
10971 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10972 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10973 cross_compiling=$ac_cv_prog_cc_cross
10979 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
10981 if test x$glibcpp_cv_func__powf_use = x"yes"; then
10982 for ac_func in _powf
10984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10985 echo "configure:10986: checking for $ac_func" >&5
10986 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10987 echo $ac_n "(cached) $ac_c" 1>&6
10988 else
10989 cat > conftest.$ac_ext <<EOF
10990 #line 10991 "configure"
10991 #include "confdefs.h"
10992 /* System header to define __stub macros and hopefully few prototypes,
10993 which can conflict with char $ac_func(); below. */
10994 #include <assert.h>
10995 /* Override any gcc2 internal prototype to avoid an error. */
10996 /* We use char because int might match the return type of a gcc2
10997 builtin and then its argument prototype would still apply. */
10998 char $ac_func();
11000 int main() {
11002 /* The GNU C library defines this for functions which it implements
11003 to always fail with ENOSYS. Some functions are actually named
11004 something starting with __ and the normal name is an alias. */
11005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11006 choke me
11007 #else
11008 $ac_func();
11009 #endif
11011 ; return 0; }
11013 if { (eval echo configure:11014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11014 rm -rf conftest*
11015 eval "ac_cv_func_$ac_func=yes"
11016 else
11017 echo "configure: failed program was:" >&5
11018 cat conftest.$ac_ext >&5
11019 rm -rf conftest*
11020 eval "ac_cv_func_$ac_func=no"
11022 rm -f conftest*
11025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11026 echo "$ac_t""yes" 1>&6
11027 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11028 cat >> confdefs.h <<EOF
11029 #define $ac_tr_func 1
11032 else
11033 echo "$ac_t""no" 1>&6
11035 done
11042 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
11043 echo "configure:11044: checking for sqrtf declaration" >&5
11044 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
11045 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_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 sqrtf(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_sqrtf_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_sqrtf_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_sqrtf_use" 1>&6
11092 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
11093 for ac_func in sqrtf
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
11148 else
11150 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
11151 echo "configure:11152: checking for _sqrtf declaration" >&5
11152 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
11153 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
11154 echo $ac_n "(cached) $ac_c" 1>&6
11155 else
11158 ac_ext=C
11159 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11160 ac_cpp='$CXXCPP $CPPFLAGS'
11161 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11162 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11163 cross_compiling=$ac_cv_prog_cxx_cross
11165 cat > conftest.$ac_ext <<EOF
11166 #line 11167 "configure"
11167 #include "confdefs.h"
11168 #include <math.h>
11169 #ifdef HAVE_IEEEFP_H
11170 #include <ieeefp.h>
11171 #endif
11173 int main() {
11174 _sqrtf(0);
11175 ; return 0; }
11177 if { (eval echo configure:11178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11178 rm -rf conftest*
11179 glibcpp_cv_func__sqrtf_use=yes
11180 else
11181 echo "configure: failed program was:" >&5
11182 cat conftest.$ac_ext >&5
11183 rm -rf conftest*
11184 glibcpp_cv_func__sqrtf_use=no
11186 rm -f conftest*
11187 ac_ext=c
11188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11189 ac_cpp='$CPP $CPPFLAGS'
11190 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11191 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11192 cross_compiling=$ac_cv_prog_cc_cross
11198 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
11200 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
11201 for ac_func in _sqrtf
11203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11204 echo "configure:11205: checking for $ac_func" >&5
11205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11206 echo $ac_n "(cached) $ac_c" 1>&6
11207 else
11208 cat > conftest.$ac_ext <<EOF
11209 #line 11210 "configure"
11210 #include "confdefs.h"
11211 /* System header to define __stub macros and hopefully few prototypes,
11212 which can conflict with char $ac_func(); below. */
11213 #include <assert.h>
11214 /* Override any gcc2 internal prototype to avoid an error. */
11215 /* We use char because int might match the return type of a gcc2
11216 builtin and then its argument prototype would still apply. */
11217 char $ac_func();
11219 int main() {
11221 /* The GNU C library defines this for functions which it implements
11222 to always fail with ENOSYS. Some functions are actually named
11223 something starting with __ and the normal name is an alias. */
11224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11225 choke me
11226 #else
11227 $ac_func();
11228 #endif
11230 ; return 0; }
11232 if { (eval echo configure:11233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11233 rm -rf conftest*
11234 eval "ac_cv_func_$ac_func=yes"
11235 else
11236 echo "configure: failed program was:" >&5
11237 cat conftest.$ac_ext >&5
11238 rm -rf conftest*
11239 eval "ac_cv_func_$ac_func=no"
11241 rm -f conftest*
11244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11245 echo "$ac_t""yes" 1>&6
11246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11247 cat >> confdefs.h <<EOF
11248 #define $ac_tr_func 1
11251 else
11252 echo "$ac_t""no" 1>&6
11254 done
11261 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
11262 echo "configure:11263: checking for sincosf declaration" >&5
11263 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
11264 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
11265 echo $ac_n "(cached) $ac_c" 1>&6
11266 else
11269 ac_ext=C
11270 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11271 ac_cpp='$CXXCPP $CPPFLAGS'
11272 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11273 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11274 cross_compiling=$ac_cv_prog_cxx_cross
11276 cat > conftest.$ac_ext <<EOF
11277 #line 11278 "configure"
11278 #include "confdefs.h"
11279 #include <math.h>
11280 int main() {
11281 sincosf(0, 0, 0);
11282 ; return 0; }
11284 if { (eval echo configure:11285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11285 rm -rf conftest*
11286 glibcpp_cv_func_sincosf_use=yes
11287 else
11288 echo "configure: failed program was:" >&5
11289 cat conftest.$ac_ext >&5
11290 rm -rf conftest*
11291 glibcpp_cv_func_sincosf_use=no
11293 rm -f conftest*
11294 ac_ext=c
11295 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11296 ac_cpp='$CPP $CPPFLAGS'
11297 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11298 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11299 cross_compiling=$ac_cv_prog_cc_cross
11305 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
11307 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
11308 for ac_func in sincosf
11310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11311 echo "configure:11312: checking for $ac_func" >&5
11312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11313 echo $ac_n "(cached) $ac_c" 1>&6
11314 else
11315 cat > conftest.$ac_ext <<EOF
11316 #line 11317 "configure"
11317 #include "confdefs.h"
11318 /* System header to define __stub macros and hopefully few prototypes,
11319 which can conflict with char $ac_func(); below. */
11320 #include <assert.h>
11321 /* Override any gcc2 internal prototype to avoid an error. */
11322 /* We use char because int might match the return type of a gcc2
11323 builtin and then its argument prototype would still apply. */
11324 char $ac_func();
11326 int main() {
11328 /* The GNU C library defines this for functions which it implements
11329 to always fail with ENOSYS. Some functions are actually named
11330 something starting with __ and the normal name is an alias. */
11331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11332 choke me
11333 #else
11334 $ac_func();
11335 #endif
11337 ; return 0; }
11339 if { (eval echo configure:11340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11340 rm -rf conftest*
11341 eval "ac_cv_func_$ac_func=yes"
11342 else
11343 echo "configure: failed program was:" >&5
11344 cat conftest.$ac_ext >&5
11345 rm -rf conftest*
11346 eval "ac_cv_func_$ac_func=no"
11348 rm -f conftest*
11351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11352 echo "$ac_t""yes" 1>&6
11353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11354 cat >> confdefs.h <<EOF
11355 #define $ac_tr_func 1
11358 else
11359 echo "$ac_t""no" 1>&6
11361 done
11363 else
11365 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
11366 echo "configure:11367: checking for _sincosf declaration" >&5
11367 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
11368 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
11369 echo $ac_n "(cached) $ac_c" 1>&6
11370 else
11373 ac_ext=C
11374 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11375 ac_cpp='$CXXCPP $CPPFLAGS'
11376 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11377 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11378 cross_compiling=$ac_cv_prog_cxx_cross
11380 cat > conftest.$ac_ext <<EOF
11381 #line 11382 "configure"
11382 #include "confdefs.h"
11383 #include <math.h>
11384 int main() {
11385 _sincosf(0, 0, 0);
11386 ; return 0; }
11388 if { (eval echo configure:11389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11389 rm -rf conftest*
11390 glibcpp_cv_func__sincosf_use=yes
11391 else
11392 echo "configure: failed program was:" >&5
11393 cat conftest.$ac_ext >&5
11394 rm -rf conftest*
11395 glibcpp_cv_func__sincosf_use=no
11397 rm -f conftest*
11398 ac_ext=c
11399 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11400 ac_cpp='$CPP $CPPFLAGS'
11401 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11402 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11403 cross_compiling=$ac_cv_prog_cc_cross
11409 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
11411 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
11412 for ac_func in _sincosf
11414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11415 echo "configure:11416: checking for $ac_func" >&5
11416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11417 echo $ac_n "(cached) $ac_c" 1>&6
11418 else
11419 cat > conftest.$ac_ext <<EOF
11420 #line 11421 "configure"
11421 #include "confdefs.h"
11422 /* System header to define __stub macros and hopefully few prototypes,
11423 which can conflict with char $ac_func(); below. */
11424 #include <assert.h>
11425 /* Override any gcc2 internal prototype to avoid an error. */
11426 /* We use char because int might match the return type of a gcc2
11427 builtin and then its argument prototype would still apply. */
11428 char $ac_func();
11430 int main() {
11432 /* The GNU C library defines this for functions which it implements
11433 to always fail with ENOSYS. Some functions are actually named
11434 something starting with __ and the normal name is an alias. */
11435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11436 choke me
11437 #else
11438 $ac_func();
11439 #endif
11441 ; return 0; }
11443 if { (eval echo configure:11444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11444 rm -rf conftest*
11445 eval "ac_cv_func_$ac_func=yes"
11446 else
11447 echo "configure: failed program was:" >&5
11448 cat conftest.$ac_ext >&5
11449 rm -rf conftest*
11450 eval "ac_cv_func_$ac_func=no"
11452 rm -f conftest*
11455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11456 echo "$ac_t""yes" 1>&6
11457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11458 cat >> confdefs.h <<EOF
11459 #define $ac_tr_func 1
11462 else
11463 echo "$ac_t""no" 1>&6
11465 done
11472 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
11473 echo "configure:11474: checking for finitef declaration" >&5
11474 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
11475 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
11476 echo $ac_n "(cached) $ac_c" 1>&6
11477 else
11480 ac_ext=C
11481 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11482 ac_cpp='$CXXCPP $CPPFLAGS'
11483 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11484 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11485 cross_compiling=$ac_cv_prog_cxx_cross
11487 cat > conftest.$ac_ext <<EOF
11488 #line 11489 "configure"
11489 #include "confdefs.h"
11490 #include <math.h>
11491 #ifdef HAVE_IEEEFP_H
11492 #include <ieeefp.h>
11493 #endif
11495 int main() {
11496 finitef(0);
11497 ; return 0; }
11499 if { (eval echo configure:11500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11500 rm -rf conftest*
11501 glibcpp_cv_func_finitef_use=yes
11502 else
11503 echo "configure: failed program was:" >&5
11504 cat conftest.$ac_ext >&5
11505 rm -rf conftest*
11506 glibcpp_cv_func_finitef_use=no
11508 rm -f conftest*
11509 ac_ext=c
11510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11511 ac_cpp='$CPP $CPPFLAGS'
11512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11513 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11514 cross_compiling=$ac_cv_prog_cc_cross
11520 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
11522 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
11523 for ac_func in finitef
11525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11526 echo "configure:11527: checking for $ac_func" >&5
11527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11528 echo $ac_n "(cached) $ac_c" 1>&6
11529 else
11530 cat > conftest.$ac_ext <<EOF
11531 #line 11532 "configure"
11532 #include "confdefs.h"
11533 /* System header to define __stub macros and hopefully few prototypes,
11534 which can conflict with char $ac_func(); below. */
11535 #include <assert.h>
11536 /* Override any gcc2 internal prototype to avoid an error. */
11537 /* We use char because int might match the return type of a gcc2
11538 builtin and then its argument prototype would still apply. */
11539 char $ac_func();
11541 int main() {
11543 /* The GNU C library defines this for functions which it implements
11544 to always fail with ENOSYS. Some functions are actually named
11545 something starting with __ and the normal name is an alias. */
11546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11547 choke me
11548 #else
11549 $ac_func();
11550 #endif
11552 ; return 0; }
11554 if { (eval echo configure:11555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11555 rm -rf conftest*
11556 eval "ac_cv_func_$ac_func=yes"
11557 else
11558 echo "configure: failed program was:" >&5
11559 cat conftest.$ac_ext >&5
11560 rm -rf conftest*
11561 eval "ac_cv_func_$ac_func=no"
11563 rm -f conftest*
11566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11567 echo "$ac_t""yes" 1>&6
11568 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11569 cat >> confdefs.h <<EOF
11570 #define $ac_tr_func 1
11573 else
11574 echo "$ac_t""no" 1>&6
11576 done
11578 else
11580 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
11581 echo "configure:11582: checking for _finitef declaration" >&5
11582 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
11583 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
11584 echo $ac_n "(cached) $ac_c" 1>&6
11585 else
11588 ac_ext=C
11589 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11590 ac_cpp='$CXXCPP $CPPFLAGS'
11591 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11592 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11593 cross_compiling=$ac_cv_prog_cxx_cross
11595 cat > conftest.$ac_ext <<EOF
11596 #line 11597 "configure"
11597 #include "confdefs.h"
11598 #include <math.h>
11599 #ifdef HAVE_IEEEFP_H
11600 #include <ieeefp.h>
11601 #endif
11603 int main() {
11604 _finitef(0);
11605 ; return 0; }
11607 if { (eval echo configure:11608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11608 rm -rf conftest*
11609 glibcpp_cv_func__finitef_use=yes
11610 else
11611 echo "configure: failed program was:" >&5
11612 cat conftest.$ac_ext >&5
11613 rm -rf conftest*
11614 glibcpp_cv_func__finitef_use=no
11616 rm -f conftest*
11617 ac_ext=c
11618 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11619 ac_cpp='$CPP $CPPFLAGS'
11620 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11621 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11622 cross_compiling=$ac_cv_prog_cc_cross
11628 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
11630 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
11631 for ac_func in _finitef
11633 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11634 echo "configure:11635: checking for $ac_func" >&5
11635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11636 echo $ac_n "(cached) $ac_c" 1>&6
11637 else
11638 cat > conftest.$ac_ext <<EOF
11639 #line 11640 "configure"
11640 #include "confdefs.h"
11641 /* System header to define __stub macros and hopefully few prototypes,
11642 which can conflict with char $ac_func(); below. */
11643 #include <assert.h>
11644 /* Override any gcc2 internal prototype to avoid an error. */
11645 /* We use char because int might match the return type of a gcc2
11646 builtin and then its argument prototype would still apply. */
11647 char $ac_func();
11649 int main() {
11651 /* The GNU C library defines this for functions which it implements
11652 to always fail with ENOSYS. Some functions are actually named
11653 something starting with __ and the normal name is an alias. */
11654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11655 choke me
11656 #else
11657 $ac_func();
11658 #endif
11660 ; return 0; }
11662 if { (eval echo configure:11663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11663 rm -rf conftest*
11664 eval "ac_cv_func_$ac_func=yes"
11665 else
11666 echo "configure: failed program was:" >&5
11667 cat conftest.$ac_ext >&5
11668 rm -rf conftest*
11669 eval "ac_cv_func_$ac_func=no"
11671 rm -f conftest*
11674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11675 echo "$ac_t""yes" 1>&6
11676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11677 cat >> confdefs.h <<EOF
11678 #define $ac_tr_func 1
11681 else
11682 echo "$ac_t""no" 1>&6
11684 done
11691 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
11692 echo "configure:11693: checking for long double trig functions" >&5
11693 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
11694 echo $ac_n "(cached) $ac_c" 1>&6
11695 else
11698 ac_ext=C
11699 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11700 ac_cpp='$CXXCPP $CPPFLAGS'
11701 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11702 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11703 cross_compiling=$ac_cv_prog_cxx_cross
11705 cat > conftest.$ac_ext <<EOF
11706 #line 11707 "configure"
11707 #include "confdefs.h"
11708 #include <math.h>
11709 int main() {
11710 `for x in acosl asinl atanl \
11711 cosl sinl tanl \
11712 coshl sinhl tanhl; do echo "$x (0);"; done`
11713 ; return 0; }
11715 if { (eval echo configure:11716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11716 rm -rf conftest*
11717 glibcpp_cv_func_long_double_trig_use=yes
11718 else
11719 echo "configure: failed program was:" >&5
11720 cat conftest.$ac_ext >&5
11721 rm -rf conftest*
11722 glibcpp_cv_func_long_double_trig_use=no
11724 rm -f conftest*
11725 ac_ext=c
11726 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11727 ac_cpp='$CPP $CPPFLAGS'
11728 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11729 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11730 cross_compiling=$ac_cv_prog_cc_cross
11734 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
11735 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
11736 for ac_func in acosl asinl atanl \
11737 cosl sinl tanl \
11738 coshl sinhl tanhl
11740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11741 echo "configure:11742: checking for $ac_func" >&5
11742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11743 echo $ac_n "(cached) $ac_c" 1>&6
11744 else
11745 cat > conftest.$ac_ext <<EOF
11746 #line 11747 "configure"
11747 #include "confdefs.h"
11748 /* System header to define __stub macros and hopefully few prototypes,
11749 which can conflict with char $ac_func(); below. */
11750 #include <assert.h>
11751 /* Override any gcc2 internal prototype to avoid an error. */
11752 /* We use char because int might match the return type of a gcc2
11753 builtin and then its argument prototype would still apply. */
11754 char $ac_func();
11756 int main() {
11758 /* The GNU C library defines this for functions which it implements
11759 to always fail with ENOSYS. Some functions are actually named
11760 something starting with __ and the normal name is an alias. */
11761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11762 choke me
11763 #else
11764 $ac_func();
11765 #endif
11767 ; return 0; }
11769 if { (eval echo configure:11770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11770 rm -rf conftest*
11771 eval "ac_cv_func_$ac_func=yes"
11772 else
11773 echo "configure: failed program was:" >&5
11774 cat conftest.$ac_ext >&5
11775 rm -rf conftest*
11776 eval "ac_cv_func_$ac_func=no"
11778 rm -f conftest*
11781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11782 echo "$ac_t""yes" 1>&6
11783 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11784 cat >> confdefs.h <<EOF
11785 #define $ac_tr_func 1
11788 else
11789 echo "$ac_t""no" 1>&6
11791 done
11796 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
11797 echo "configure:11798: checking for long double round functions" >&5
11798 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
11799 echo $ac_n "(cached) $ac_c" 1>&6
11800 else
11803 ac_ext=C
11804 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11805 ac_cpp='$CXXCPP $CPPFLAGS'
11806 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11807 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11808 cross_compiling=$ac_cv_prog_cxx_cross
11810 cat > conftest.$ac_ext <<EOF
11811 #line 11812 "configure"
11812 #include "confdefs.h"
11813 #include <math.h>
11814 int main() {
11815 `for x in ceill floorl; do echo "$x (0);"; done`
11816 ; return 0; }
11818 if { (eval echo configure:11819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11819 rm -rf conftest*
11820 glibcpp_cv_func_long_double_round_use=yes
11821 else
11822 echo "configure: failed program was:" >&5
11823 cat conftest.$ac_ext >&5
11824 rm -rf conftest*
11825 glibcpp_cv_func_long_double_round_use=no
11827 rm -f conftest*
11828 ac_ext=c
11829 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11830 ac_cpp='$CPP $CPPFLAGS'
11831 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11832 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11833 cross_compiling=$ac_cv_prog_cc_cross
11837 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11838 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11839 for ac_func in ceill floorl
11841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11842 echo "configure:11843: checking for $ac_func" >&5
11843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11844 echo $ac_n "(cached) $ac_c" 1>&6
11845 else
11846 cat > conftest.$ac_ext <<EOF
11847 #line 11848 "configure"
11848 #include "confdefs.h"
11849 /* System header to define __stub macros and hopefully few prototypes,
11850 which can conflict with char $ac_func(); below. */
11851 #include <assert.h>
11852 /* Override any gcc2 internal prototype to avoid an error. */
11853 /* We use char because int might match the return type of a gcc2
11854 builtin and then its argument prototype would still apply. */
11855 char $ac_func();
11857 int main() {
11859 /* The GNU C library defines this for functions which it implements
11860 to always fail with ENOSYS. Some functions are actually named
11861 something starting with __ and the normal name is an alias. */
11862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11863 choke me
11864 #else
11865 $ac_func();
11866 #endif
11868 ; return 0; }
11870 if { (eval echo configure:11871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11871 rm -rf conftest*
11872 eval "ac_cv_func_$ac_func=yes"
11873 else
11874 echo "configure: failed program was:" >&5
11875 cat conftest.$ac_ext >&5
11876 rm -rf conftest*
11877 eval "ac_cv_func_$ac_func=no"
11879 rm -f conftest*
11882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11883 echo "$ac_t""yes" 1>&6
11884 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11885 cat >> confdefs.h <<EOF
11886 #define $ac_tr_func 1
11889 else
11890 echo "$ac_t""no" 1>&6
11892 done
11898 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11899 echo "configure:11900: checking for isnanl declaration" >&5
11900 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11901 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11902 echo $ac_n "(cached) $ac_c" 1>&6
11903 else
11906 ac_ext=C
11907 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11908 ac_cpp='$CXXCPP $CPPFLAGS'
11909 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11910 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11911 cross_compiling=$ac_cv_prog_cxx_cross
11913 cat > conftest.$ac_ext <<EOF
11914 #line 11915 "configure"
11915 #include "confdefs.h"
11916 #include <math.h>
11917 #ifdef HAVE_IEEEFP_H
11918 #include <ieeefp.h>
11919 #endif
11921 int main() {
11922 isnanl(0);
11923 ; return 0; }
11925 if { (eval echo configure:11926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11926 rm -rf conftest*
11927 glibcpp_cv_func_isnanl_use=yes
11928 else
11929 echo "configure: failed program was:" >&5
11930 cat conftest.$ac_ext >&5
11931 rm -rf conftest*
11932 glibcpp_cv_func_isnanl_use=no
11934 rm -f conftest*
11935 ac_ext=c
11936 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11937 ac_cpp='$CPP $CPPFLAGS'
11938 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11939 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11940 cross_compiling=$ac_cv_prog_cc_cross
11946 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11948 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11949 for ac_func in isnanl
11951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11952 echo "configure:11953: checking for $ac_func" >&5
11953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11954 echo $ac_n "(cached) $ac_c" 1>&6
11955 else
11956 cat > conftest.$ac_ext <<EOF
11957 #line 11958 "configure"
11958 #include "confdefs.h"
11959 /* System header to define __stub macros and hopefully few prototypes,
11960 which can conflict with char $ac_func(); below. */
11961 #include <assert.h>
11962 /* Override any gcc2 internal prototype to avoid an error. */
11963 /* We use char because int might match the return type of a gcc2
11964 builtin and then its argument prototype would still apply. */
11965 char $ac_func();
11967 int main() {
11969 /* The GNU C library defines this for functions which it implements
11970 to always fail with ENOSYS. Some functions are actually named
11971 something starting with __ and the normal name is an alias. */
11972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11973 choke me
11974 #else
11975 $ac_func();
11976 #endif
11978 ; return 0; }
11980 if { (eval echo configure:11981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11981 rm -rf conftest*
11982 eval "ac_cv_func_$ac_func=yes"
11983 else
11984 echo "configure: failed program was:" >&5
11985 cat conftest.$ac_ext >&5
11986 rm -rf conftest*
11987 eval "ac_cv_func_$ac_func=no"
11989 rm -f conftest*
11992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11993 echo "$ac_t""yes" 1>&6
11994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11995 cat >> confdefs.h <<EOF
11996 #define $ac_tr_func 1
11999 else
12000 echo "$ac_t""no" 1>&6
12002 done
12004 else
12006 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
12007 echo "configure:12008: checking for _isnanl declaration" >&5
12008 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
12009 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
12010 echo $ac_n "(cached) $ac_c" 1>&6
12011 else
12014 ac_ext=C
12015 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12016 ac_cpp='$CXXCPP $CPPFLAGS'
12017 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12018 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12019 cross_compiling=$ac_cv_prog_cxx_cross
12021 cat > conftest.$ac_ext <<EOF
12022 #line 12023 "configure"
12023 #include "confdefs.h"
12024 #include <math.h>
12025 #ifdef HAVE_IEEEFP_H
12026 #include <ieeefp.h>
12027 #endif
12029 int main() {
12030 _isnanl(0);
12031 ; return 0; }
12033 if { (eval echo configure:12034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12034 rm -rf conftest*
12035 glibcpp_cv_func__isnanl_use=yes
12036 else
12037 echo "configure: failed program was:" >&5
12038 cat conftest.$ac_ext >&5
12039 rm -rf conftest*
12040 glibcpp_cv_func__isnanl_use=no
12042 rm -f conftest*
12043 ac_ext=c
12044 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12045 ac_cpp='$CPP $CPPFLAGS'
12046 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12047 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12048 cross_compiling=$ac_cv_prog_cc_cross
12054 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
12056 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
12057 for ac_func in _isnanl
12059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12060 echo "configure:12061: checking for $ac_func" >&5
12061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12062 echo $ac_n "(cached) $ac_c" 1>&6
12063 else
12064 cat > conftest.$ac_ext <<EOF
12065 #line 12066 "configure"
12066 #include "confdefs.h"
12067 /* System header to define __stub macros and hopefully few prototypes,
12068 which can conflict with char $ac_func(); below. */
12069 #include <assert.h>
12070 /* Override any gcc2 internal prototype to avoid an error. */
12071 /* We use char because int might match the return type of a gcc2
12072 builtin and then its argument prototype would still apply. */
12073 char $ac_func();
12075 int main() {
12077 /* The GNU C library defines this for functions which it implements
12078 to always fail with ENOSYS. Some functions are actually named
12079 something starting with __ and the normal name is an alias. */
12080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12081 choke me
12082 #else
12083 $ac_func();
12084 #endif
12086 ; return 0; }
12088 if { (eval echo configure:12089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12089 rm -rf conftest*
12090 eval "ac_cv_func_$ac_func=yes"
12091 else
12092 echo "configure: failed program was:" >&5
12093 cat conftest.$ac_ext >&5
12094 rm -rf conftest*
12095 eval "ac_cv_func_$ac_func=no"
12097 rm -f conftest*
12100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12101 echo "$ac_t""yes" 1>&6
12102 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12103 cat >> confdefs.h <<EOF
12104 #define $ac_tr_func 1
12107 else
12108 echo "$ac_t""no" 1>&6
12110 done
12117 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
12118 echo "configure:12119: checking for isinfl declaration" >&5
12119 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
12120 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_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 #ifdef HAVE_IEEEFP_H
12137 #include <ieeefp.h>
12138 #endif
12140 int main() {
12141 isinfl(0);
12142 ; return 0; }
12144 if { (eval echo configure:12145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12145 rm -rf conftest*
12146 glibcpp_cv_func_isinfl_use=yes
12147 else
12148 echo "configure: failed program was:" >&5
12149 cat conftest.$ac_ext >&5
12150 rm -rf conftest*
12151 glibcpp_cv_func_isinfl_use=no
12153 rm -f conftest*
12154 ac_ext=c
12155 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12156 ac_cpp='$CPP $CPPFLAGS'
12157 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12158 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12159 cross_compiling=$ac_cv_prog_cc_cross
12165 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
12167 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
12168 for ac_func in isinfl
12170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12171 echo "configure:12172: checking for $ac_func" >&5
12172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12173 echo $ac_n "(cached) $ac_c" 1>&6
12174 else
12175 cat > conftest.$ac_ext <<EOF
12176 #line 12177 "configure"
12177 #include "confdefs.h"
12178 /* System header to define __stub macros and hopefully few prototypes,
12179 which can conflict with char $ac_func(); below. */
12180 #include <assert.h>
12181 /* Override any gcc2 internal prototype to avoid an error. */
12182 /* We use char because int might match the return type of a gcc2
12183 builtin and then its argument prototype would still apply. */
12184 char $ac_func();
12186 int main() {
12188 /* The GNU C library defines this for functions which it implements
12189 to always fail with ENOSYS. Some functions are actually named
12190 something starting with __ and the normal name is an alias. */
12191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12192 choke me
12193 #else
12194 $ac_func();
12195 #endif
12197 ; return 0; }
12199 if { (eval echo configure:12200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12200 rm -rf conftest*
12201 eval "ac_cv_func_$ac_func=yes"
12202 else
12203 echo "configure: failed program was:" >&5
12204 cat conftest.$ac_ext >&5
12205 rm -rf conftest*
12206 eval "ac_cv_func_$ac_func=no"
12208 rm -f conftest*
12211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12212 echo "$ac_t""yes" 1>&6
12213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12214 cat >> confdefs.h <<EOF
12215 #define $ac_tr_func 1
12218 else
12219 echo "$ac_t""no" 1>&6
12221 done
12223 else
12225 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
12226 echo "configure:12227: checking for _isinfl declaration" >&5
12227 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
12228 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
12229 echo $ac_n "(cached) $ac_c" 1>&6
12230 else
12233 ac_ext=C
12234 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12235 ac_cpp='$CXXCPP $CPPFLAGS'
12236 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12237 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12238 cross_compiling=$ac_cv_prog_cxx_cross
12240 cat > conftest.$ac_ext <<EOF
12241 #line 12242 "configure"
12242 #include "confdefs.h"
12243 #include <math.h>
12244 #ifdef HAVE_IEEEFP_H
12245 #include <ieeefp.h>
12246 #endif
12248 int main() {
12249 _isinfl(0);
12250 ; return 0; }
12252 if { (eval echo configure:12253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12253 rm -rf conftest*
12254 glibcpp_cv_func__isinfl_use=yes
12255 else
12256 echo "configure: failed program was:" >&5
12257 cat conftest.$ac_ext >&5
12258 rm -rf conftest*
12259 glibcpp_cv_func__isinfl_use=no
12261 rm -f conftest*
12262 ac_ext=c
12263 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12264 ac_cpp='$CPP $CPPFLAGS'
12265 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12266 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12267 cross_compiling=$ac_cv_prog_cc_cross
12273 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
12275 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
12276 for ac_func in _isinfl
12278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12279 echo "configure:12280: checking for $ac_func" >&5
12280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12281 echo $ac_n "(cached) $ac_c" 1>&6
12282 else
12283 cat > conftest.$ac_ext <<EOF
12284 #line 12285 "configure"
12285 #include "confdefs.h"
12286 /* System header to define __stub macros and hopefully few prototypes,
12287 which can conflict with char $ac_func(); below. */
12288 #include <assert.h>
12289 /* Override any gcc2 internal prototype to avoid an error. */
12290 /* We use char because int might match the return type of a gcc2
12291 builtin and then its argument prototype would still apply. */
12292 char $ac_func();
12294 int main() {
12296 /* The GNU C library defines this for functions which it implements
12297 to always fail with ENOSYS. Some functions are actually named
12298 something starting with __ and the normal name is an alias. */
12299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12300 choke me
12301 #else
12302 $ac_func();
12303 #endif
12305 ; return 0; }
12307 if { (eval echo configure:12308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12308 rm -rf conftest*
12309 eval "ac_cv_func_$ac_func=yes"
12310 else
12311 echo "configure: failed program was:" >&5
12312 cat conftest.$ac_ext >&5
12313 rm -rf conftest*
12314 eval "ac_cv_func_$ac_func=no"
12316 rm -f conftest*
12319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12320 echo "$ac_t""yes" 1>&6
12321 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12322 cat >> confdefs.h <<EOF
12323 #define $ac_tr_func 1
12326 else
12327 echo "$ac_t""no" 1>&6
12329 done
12336 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
12337 echo "configure:12338: checking for copysignl declaration" >&5
12338 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
12339 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
12340 echo $ac_n "(cached) $ac_c" 1>&6
12341 else
12344 ac_ext=C
12345 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12346 ac_cpp='$CXXCPP $CPPFLAGS'
12347 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12348 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12349 cross_compiling=$ac_cv_prog_cxx_cross
12351 cat > conftest.$ac_ext <<EOF
12352 #line 12353 "configure"
12353 #include "confdefs.h"
12354 #include <math.h>
12355 int main() {
12356 copysignl(0, 0);
12357 ; return 0; }
12359 if { (eval echo configure:12360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12360 rm -rf conftest*
12361 glibcpp_cv_func_copysignl_use=yes
12362 else
12363 echo "configure: failed program was:" >&5
12364 cat conftest.$ac_ext >&5
12365 rm -rf conftest*
12366 glibcpp_cv_func_copysignl_use=no
12368 rm -f conftest*
12369 ac_ext=c
12370 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12371 ac_cpp='$CPP $CPPFLAGS'
12372 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12373 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12374 cross_compiling=$ac_cv_prog_cc_cross
12380 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
12382 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
12383 for ac_func in copysignl
12385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12386 echo "configure:12387: checking for $ac_func" >&5
12387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12388 echo $ac_n "(cached) $ac_c" 1>&6
12389 else
12390 cat > conftest.$ac_ext <<EOF
12391 #line 12392 "configure"
12392 #include "confdefs.h"
12393 /* System header to define __stub macros and hopefully few prototypes,
12394 which can conflict with char $ac_func(); below. */
12395 #include <assert.h>
12396 /* Override any gcc2 internal prototype to avoid an error. */
12397 /* We use char because int might match the return type of a gcc2
12398 builtin and then its argument prototype would still apply. */
12399 char $ac_func();
12401 int main() {
12403 /* The GNU C library defines this for functions which it implements
12404 to always fail with ENOSYS. Some functions are actually named
12405 something starting with __ and the normal name is an alias. */
12406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12407 choke me
12408 #else
12409 $ac_func();
12410 #endif
12412 ; return 0; }
12414 if { (eval echo configure:12415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12415 rm -rf conftest*
12416 eval "ac_cv_func_$ac_func=yes"
12417 else
12418 echo "configure: failed program was:" >&5
12419 cat conftest.$ac_ext >&5
12420 rm -rf conftest*
12421 eval "ac_cv_func_$ac_func=no"
12423 rm -f conftest*
12426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12427 echo "$ac_t""yes" 1>&6
12428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12429 cat >> confdefs.h <<EOF
12430 #define $ac_tr_func 1
12433 else
12434 echo "$ac_t""no" 1>&6
12436 done
12438 else
12440 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
12441 echo "configure:12442: checking for _copysignl declaration" >&5
12442 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
12443 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
12444 echo $ac_n "(cached) $ac_c" 1>&6
12445 else
12448 ac_ext=C
12449 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12450 ac_cpp='$CXXCPP $CPPFLAGS'
12451 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12452 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12453 cross_compiling=$ac_cv_prog_cxx_cross
12455 cat > conftest.$ac_ext <<EOF
12456 #line 12457 "configure"
12457 #include "confdefs.h"
12458 #include <math.h>
12459 int main() {
12460 _copysignl(0, 0);
12461 ; return 0; }
12463 if { (eval echo configure:12464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12464 rm -rf conftest*
12465 glibcpp_cv_func__copysignl_use=yes
12466 else
12467 echo "configure: failed program was:" >&5
12468 cat conftest.$ac_ext >&5
12469 rm -rf conftest*
12470 glibcpp_cv_func__copysignl_use=no
12472 rm -f conftest*
12473 ac_ext=c
12474 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12475 ac_cpp='$CPP $CPPFLAGS'
12476 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12477 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12478 cross_compiling=$ac_cv_prog_cc_cross
12484 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
12486 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
12487 for ac_func in _copysignl
12489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12490 echo "configure:12491: checking for $ac_func" >&5
12491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12492 echo $ac_n "(cached) $ac_c" 1>&6
12493 else
12494 cat > conftest.$ac_ext <<EOF
12495 #line 12496 "configure"
12496 #include "confdefs.h"
12497 /* System header to define __stub macros and hopefully few prototypes,
12498 which can conflict with char $ac_func(); below. */
12499 #include <assert.h>
12500 /* Override any gcc2 internal prototype to avoid an error. */
12501 /* We use char because int might match the return type of a gcc2
12502 builtin and then its argument prototype would still apply. */
12503 char $ac_func();
12505 int main() {
12507 /* The GNU C library defines this for functions which it implements
12508 to always fail with ENOSYS. Some functions are actually named
12509 something starting with __ and the normal name is an alias. */
12510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12511 choke me
12512 #else
12513 $ac_func();
12514 #endif
12516 ; return 0; }
12518 if { (eval echo configure:12519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12519 rm -rf conftest*
12520 eval "ac_cv_func_$ac_func=yes"
12521 else
12522 echo "configure: failed program was:" >&5
12523 cat conftest.$ac_ext >&5
12524 rm -rf conftest*
12525 eval "ac_cv_func_$ac_func=no"
12527 rm -f conftest*
12530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12531 echo "$ac_t""yes" 1>&6
12532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12533 cat >> confdefs.h <<EOF
12534 #define $ac_tr_func 1
12537 else
12538 echo "$ac_t""no" 1>&6
12540 done
12547 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
12548 echo "configure:12549: checking for atan2l declaration" >&5
12549 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
12550 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
12551 echo $ac_n "(cached) $ac_c" 1>&6
12552 else
12555 ac_ext=C
12556 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12557 ac_cpp='$CXXCPP $CPPFLAGS'
12558 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12559 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12560 cross_compiling=$ac_cv_prog_cxx_cross
12562 cat > conftest.$ac_ext <<EOF
12563 #line 12564 "configure"
12564 #include "confdefs.h"
12565 #include <math.h>
12566 int main() {
12567 atan2l(0, 0);
12568 ; return 0; }
12570 if { (eval echo configure:12571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12571 rm -rf conftest*
12572 glibcpp_cv_func_atan2l_use=yes
12573 else
12574 echo "configure: failed program was:" >&5
12575 cat conftest.$ac_ext >&5
12576 rm -rf conftest*
12577 glibcpp_cv_func_atan2l_use=no
12579 rm -f conftest*
12580 ac_ext=c
12581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12582 ac_cpp='$CPP $CPPFLAGS'
12583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12585 cross_compiling=$ac_cv_prog_cc_cross
12591 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
12593 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
12594 for ac_func in atan2l
12596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12597 echo "configure:12598: checking for $ac_func" >&5
12598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12599 echo $ac_n "(cached) $ac_c" 1>&6
12600 else
12601 cat > conftest.$ac_ext <<EOF
12602 #line 12603 "configure"
12603 #include "confdefs.h"
12604 /* System header to define __stub macros and hopefully few prototypes,
12605 which can conflict with char $ac_func(); below. */
12606 #include <assert.h>
12607 /* Override any gcc2 internal prototype to avoid an error. */
12608 /* We use char because int might match the return type of a gcc2
12609 builtin and then its argument prototype would still apply. */
12610 char $ac_func();
12612 int main() {
12614 /* The GNU C library defines this for functions which it implements
12615 to always fail with ENOSYS. Some functions are actually named
12616 something starting with __ and the normal name is an alias. */
12617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12618 choke me
12619 #else
12620 $ac_func();
12621 #endif
12623 ; return 0; }
12625 if { (eval echo configure:12626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12626 rm -rf conftest*
12627 eval "ac_cv_func_$ac_func=yes"
12628 else
12629 echo "configure: failed program was:" >&5
12630 cat conftest.$ac_ext >&5
12631 rm -rf conftest*
12632 eval "ac_cv_func_$ac_func=no"
12634 rm -f conftest*
12637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12638 echo "$ac_t""yes" 1>&6
12639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12640 cat >> confdefs.h <<EOF
12641 #define $ac_tr_func 1
12644 else
12645 echo "$ac_t""no" 1>&6
12647 done
12649 else
12651 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
12652 echo "configure:12653: checking for _atan2l declaration" >&5
12653 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
12654 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
12655 echo $ac_n "(cached) $ac_c" 1>&6
12656 else
12659 ac_ext=C
12660 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12661 ac_cpp='$CXXCPP $CPPFLAGS'
12662 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12663 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12664 cross_compiling=$ac_cv_prog_cxx_cross
12666 cat > conftest.$ac_ext <<EOF
12667 #line 12668 "configure"
12668 #include "confdefs.h"
12669 #include <math.h>
12670 int main() {
12671 _atan2l(0, 0);
12672 ; return 0; }
12674 if { (eval echo configure:12675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12675 rm -rf conftest*
12676 glibcpp_cv_func__atan2l_use=yes
12677 else
12678 echo "configure: failed program was:" >&5
12679 cat conftest.$ac_ext >&5
12680 rm -rf conftest*
12681 glibcpp_cv_func__atan2l_use=no
12683 rm -f conftest*
12684 ac_ext=c
12685 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12686 ac_cpp='$CPP $CPPFLAGS'
12687 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12688 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12689 cross_compiling=$ac_cv_prog_cc_cross
12695 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
12697 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
12698 for ac_func in _atan2l
12700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12701 echo "configure:12702: checking for $ac_func" >&5
12702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12703 echo $ac_n "(cached) $ac_c" 1>&6
12704 else
12705 cat > conftest.$ac_ext <<EOF
12706 #line 12707 "configure"
12707 #include "confdefs.h"
12708 /* System header to define __stub macros and hopefully few prototypes,
12709 which can conflict with char $ac_func(); below. */
12710 #include <assert.h>
12711 /* Override any gcc2 internal prototype to avoid an error. */
12712 /* We use char because int might match the return type of a gcc2
12713 builtin and then its argument prototype would still apply. */
12714 char $ac_func();
12716 int main() {
12718 /* The GNU C library defines this for functions which it implements
12719 to always fail with ENOSYS. Some functions are actually named
12720 something starting with __ and the normal name is an alias. */
12721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12722 choke me
12723 #else
12724 $ac_func();
12725 #endif
12727 ; return 0; }
12729 if { (eval echo configure:12730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12730 rm -rf conftest*
12731 eval "ac_cv_func_$ac_func=yes"
12732 else
12733 echo "configure: failed program was:" >&5
12734 cat conftest.$ac_ext >&5
12735 rm -rf conftest*
12736 eval "ac_cv_func_$ac_func=no"
12738 rm -f conftest*
12741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12742 echo "$ac_t""yes" 1>&6
12743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12744 cat >> confdefs.h <<EOF
12745 #define $ac_tr_func 1
12748 else
12749 echo "$ac_t""no" 1>&6
12751 done
12758 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
12759 echo "configure:12760: checking for expl declaration" >&5
12760 if test x${glibcpp_cv_func_expl_use+set} != xset; then
12761 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
12762 echo $ac_n "(cached) $ac_c" 1>&6
12763 else
12766 ac_ext=C
12767 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12768 ac_cpp='$CXXCPP $CPPFLAGS'
12769 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12770 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12771 cross_compiling=$ac_cv_prog_cxx_cross
12773 cat > conftest.$ac_ext <<EOF
12774 #line 12775 "configure"
12775 #include "confdefs.h"
12776 #include <math.h>
12777 #ifdef HAVE_IEEEFP_H
12778 #include <ieeefp.h>
12779 #endif
12781 int main() {
12782 expl(0);
12783 ; return 0; }
12785 if { (eval echo configure:12786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12786 rm -rf conftest*
12787 glibcpp_cv_func_expl_use=yes
12788 else
12789 echo "configure: failed program was:" >&5
12790 cat conftest.$ac_ext >&5
12791 rm -rf conftest*
12792 glibcpp_cv_func_expl_use=no
12794 rm -f conftest*
12795 ac_ext=c
12796 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12797 ac_cpp='$CPP $CPPFLAGS'
12798 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12799 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12800 cross_compiling=$ac_cv_prog_cc_cross
12806 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
12808 if test x$glibcpp_cv_func_expl_use = x"yes"; then
12809 for ac_func in expl
12811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12812 echo "configure:12813: checking for $ac_func" >&5
12813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12814 echo $ac_n "(cached) $ac_c" 1>&6
12815 else
12816 cat > conftest.$ac_ext <<EOF
12817 #line 12818 "configure"
12818 #include "confdefs.h"
12819 /* System header to define __stub macros and hopefully few prototypes,
12820 which can conflict with char $ac_func(); below. */
12821 #include <assert.h>
12822 /* Override any gcc2 internal prototype to avoid an error. */
12823 /* We use char because int might match the return type of a gcc2
12824 builtin and then its argument prototype would still apply. */
12825 char $ac_func();
12827 int main() {
12829 /* The GNU C library defines this for functions which it implements
12830 to always fail with ENOSYS. Some functions are actually named
12831 something starting with __ and the normal name is an alias. */
12832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12833 choke me
12834 #else
12835 $ac_func();
12836 #endif
12838 ; return 0; }
12840 if { (eval echo configure:12841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12841 rm -rf conftest*
12842 eval "ac_cv_func_$ac_func=yes"
12843 else
12844 echo "configure: failed program was:" >&5
12845 cat conftest.$ac_ext >&5
12846 rm -rf conftest*
12847 eval "ac_cv_func_$ac_func=no"
12849 rm -f conftest*
12852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12853 echo "$ac_t""yes" 1>&6
12854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12855 cat >> confdefs.h <<EOF
12856 #define $ac_tr_func 1
12859 else
12860 echo "$ac_t""no" 1>&6
12862 done
12864 else
12866 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12867 echo "configure:12868: checking for _expl declaration" >&5
12868 if test x${glibcpp_cv_func__expl_use+set} != xset; then
12869 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12870 echo $ac_n "(cached) $ac_c" 1>&6
12871 else
12874 ac_ext=C
12875 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12876 ac_cpp='$CXXCPP $CPPFLAGS'
12877 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12878 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12879 cross_compiling=$ac_cv_prog_cxx_cross
12881 cat > conftest.$ac_ext <<EOF
12882 #line 12883 "configure"
12883 #include "confdefs.h"
12884 #include <math.h>
12885 #ifdef HAVE_IEEEFP_H
12886 #include <ieeefp.h>
12887 #endif
12889 int main() {
12890 _expl(0);
12891 ; return 0; }
12893 if { (eval echo configure:12894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12894 rm -rf conftest*
12895 glibcpp_cv_func__expl_use=yes
12896 else
12897 echo "configure: failed program was:" >&5
12898 cat conftest.$ac_ext >&5
12899 rm -rf conftest*
12900 glibcpp_cv_func__expl_use=no
12902 rm -f conftest*
12903 ac_ext=c
12904 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12905 ac_cpp='$CPP $CPPFLAGS'
12906 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12907 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12908 cross_compiling=$ac_cv_prog_cc_cross
12914 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12916 if test x$glibcpp_cv_func__expl_use = x"yes"; then
12917 for ac_func in _expl
12919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12920 echo "configure:12921: checking for $ac_func" >&5
12921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12922 echo $ac_n "(cached) $ac_c" 1>&6
12923 else
12924 cat > conftest.$ac_ext <<EOF
12925 #line 12926 "configure"
12926 #include "confdefs.h"
12927 /* System header to define __stub macros and hopefully few prototypes,
12928 which can conflict with char $ac_func(); below. */
12929 #include <assert.h>
12930 /* Override any gcc2 internal prototype to avoid an error. */
12931 /* We use char because int might match the return type of a gcc2
12932 builtin and then its argument prototype would still apply. */
12933 char $ac_func();
12935 int main() {
12937 /* The GNU C library defines this for functions which it implements
12938 to always fail with ENOSYS. Some functions are actually named
12939 something starting with __ and the normal name is an alias. */
12940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12941 choke me
12942 #else
12943 $ac_func();
12944 #endif
12946 ; return 0; }
12948 if { (eval echo configure:12949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12949 rm -rf conftest*
12950 eval "ac_cv_func_$ac_func=yes"
12951 else
12952 echo "configure: failed program was:" >&5
12953 cat conftest.$ac_ext >&5
12954 rm -rf conftest*
12955 eval "ac_cv_func_$ac_func=no"
12957 rm -f conftest*
12960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12961 echo "$ac_t""yes" 1>&6
12962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12963 cat >> confdefs.h <<EOF
12964 #define $ac_tr_func 1
12967 else
12968 echo "$ac_t""no" 1>&6
12970 done
12977 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
12978 echo "configure:12979: checking for fabsl declaration" >&5
12979 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
12980 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
12981 echo $ac_n "(cached) $ac_c" 1>&6
12982 else
12985 ac_ext=C
12986 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12987 ac_cpp='$CXXCPP $CPPFLAGS'
12988 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12989 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12990 cross_compiling=$ac_cv_prog_cxx_cross
12992 cat > conftest.$ac_ext <<EOF
12993 #line 12994 "configure"
12994 #include "confdefs.h"
12995 #include <math.h>
12996 #ifdef HAVE_IEEEFP_H
12997 #include <ieeefp.h>
12998 #endif
13000 int main() {
13001 fabsl(0);
13002 ; return 0; }
13004 if { (eval echo configure:13005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13005 rm -rf conftest*
13006 glibcpp_cv_func_fabsl_use=yes
13007 else
13008 echo "configure: failed program was:" >&5
13009 cat conftest.$ac_ext >&5
13010 rm -rf conftest*
13011 glibcpp_cv_func_fabsl_use=no
13013 rm -f conftest*
13014 ac_ext=c
13015 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13016 ac_cpp='$CPP $CPPFLAGS'
13017 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13018 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13019 cross_compiling=$ac_cv_prog_cc_cross
13025 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
13027 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
13028 for ac_func in fabsl
13030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13031 echo "configure:13032: checking for $ac_func" >&5
13032 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13033 echo $ac_n "(cached) $ac_c" 1>&6
13034 else
13035 cat > conftest.$ac_ext <<EOF
13036 #line 13037 "configure"
13037 #include "confdefs.h"
13038 /* System header to define __stub macros and hopefully few prototypes,
13039 which can conflict with char $ac_func(); below. */
13040 #include <assert.h>
13041 /* Override any gcc2 internal prototype to avoid an error. */
13042 /* We use char because int might match the return type of a gcc2
13043 builtin and then its argument prototype would still apply. */
13044 char $ac_func();
13046 int main() {
13048 /* The GNU C library defines this for functions which it implements
13049 to always fail with ENOSYS. Some functions are actually named
13050 something starting with __ and the normal name is an alias. */
13051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13052 choke me
13053 #else
13054 $ac_func();
13055 #endif
13057 ; return 0; }
13059 if { (eval echo configure:13060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13060 rm -rf conftest*
13061 eval "ac_cv_func_$ac_func=yes"
13062 else
13063 echo "configure: failed program was:" >&5
13064 cat conftest.$ac_ext >&5
13065 rm -rf conftest*
13066 eval "ac_cv_func_$ac_func=no"
13068 rm -f conftest*
13071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13072 echo "$ac_t""yes" 1>&6
13073 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13074 cat >> confdefs.h <<EOF
13075 #define $ac_tr_func 1
13078 else
13079 echo "$ac_t""no" 1>&6
13081 done
13083 else
13085 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
13086 echo "configure:13087: checking for _fabsl declaration" >&5
13087 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
13088 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
13089 echo $ac_n "(cached) $ac_c" 1>&6
13090 else
13093 ac_ext=C
13094 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13095 ac_cpp='$CXXCPP $CPPFLAGS'
13096 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13097 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13098 cross_compiling=$ac_cv_prog_cxx_cross
13100 cat > conftest.$ac_ext <<EOF
13101 #line 13102 "configure"
13102 #include "confdefs.h"
13103 #include <math.h>
13104 #ifdef HAVE_IEEEFP_H
13105 #include <ieeefp.h>
13106 #endif
13108 int main() {
13109 _fabsl(0);
13110 ; return 0; }
13112 if { (eval echo configure:13113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13113 rm -rf conftest*
13114 glibcpp_cv_func__fabsl_use=yes
13115 else
13116 echo "configure: failed program was:" >&5
13117 cat conftest.$ac_ext >&5
13118 rm -rf conftest*
13119 glibcpp_cv_func__fabsl_use=no
13121 rm -f conftest*
13122 ac_ext=c
13123 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13124 ac_cpp='$CPP $CPPFLAGS'
13125 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13126 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13127 cross_compiling=$ac_cv_prog_cc_cross
13133 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
13135 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
13136 for ac_func in _fabsl
13138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13139 echo "configure:13140: checking for $ac_func" >&5
13140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13141 echo $ac_n "(cached) $ac_c" 1>&6
13142 else
13143 cat > conftest.$ac_ext <<EOF
13144 #line 13145 "configure"
13145 #include "confdefs.h"
13146 /* System header to define __stub macros and hopefully few prototypes,
13147 which can conflict with char $ac_func(); below. */
13148 #include <assert.h>
13149 /* Override any gcc2 internal prototype to avoid an error. */
13150 /* We use char because int might match the return type of a gcc2
13151 builtin and then its argument prototype would still apply. */
13152 char $ac_func();
13154 int main() {
13156 /* The GNU C library defines this for functions which it implements
13157 to always fail with ENOSYS. Some functions are actually named
13158 something starting with __ and the normal name is an alias. */
13159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13160 choke me
13161 #else
13162 $ac_func();
13163 #endif
13165 ; return 0; }
13167 if { (eval echo configure:13168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13168 rm -rf conftest*
13169 eval "ac_cv_func_$ac_func=yes"
13170 else
13171 echo "configure: failed program was:" >&5
13172 cat conftest.$ac_ext >&5
13173 rm -rf conftest*
13174 eval "ac_cv_func_$ac_func=no"
13176 rm -f conftest*
13179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13180 echo "$ac_t""yes" 1>&6
13181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13182 cat >> confdefs.h <<EOF
13183 #define $ac_tr_func 1
13186 else
13187 echo "$ac_t""no" 1>&6
13189 done
13196 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
13197 echo "configure:13198: checking for fmodl declaration" >&5
13198 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
13199 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
13200 echo $ac_n "(cached) $ac_c" 1>&6
13201 else
13204 ac_ext=C
13205 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13206 ac_cpp='$CXXCPP $CPPFLAGS'
13207 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13208 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13209 cross_compiling=$ac_cv_prog_cxx_cross
13211 cat > conftest.$ac_ext <<EOF
13212 #line 13213 "configure"
13213 #include "confdefs.h"
13214 #include <math.h>
13215 int main() {
13216 fmodl(0, 0);
13217 ; return 0; }
13219 if { (eval echo configure:13220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13220 rm -rf conftest*
13221 glibcpp_cv_func_fmodl_use=yes
13222 else
13223 echo "configure: failed program was:" >&5
13224 cat conftest.$ac_ext >&5
13225 rm -rf conftest*
13226 glibcpp_cv_func_fmodl_use=no
13228 rm -f conftest*
13229 ac_ext=c
13230 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13231 ac_cpp='$CPP $CPPFLAGS'
13232 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13233 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13234 cross_compiling=$ac_cv_prog_cc_cross
13240 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
13242 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
13243 for ac_func in fmodl
13245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13246 echo "configure:13247: checking for $ac_func" >&5
13247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13248 echo $ac_n "(cached) $ac_c" 1>&6
13249 else
13250 cat > conftest.$ac_ext <<EOF
13251 #line 13252 "configure"
13252 #include "confdefs.h"
13253 /* System header to define __stub macros and hopefully few prototypes,
13254 which can conflict with char $ac_func(); below. */
13255 #include <assert.h>
13256 /* Override any gcc2 internal prototype to avoid an error. */
13257 /* We use char because int might match the return type of a gcc2
13258 builtin and then its argument prototype would still apply. */
13259 char $ac_func();
13261 int main() {
13263 /* The GNU C library defines this for functions which it implements
13264 to always fail with ENOSYS. Some functions are actually named
13265 something starting with __ and the normal name is an alias. */
13266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13267 choke me
13268 #else
13269 $ac_func();
13270 #endif
13272 ; return 0; }
13274 if { (eval echo configure:13275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13275 rm -rf conftest*
13276 eval "ac_cv_func_$ac_func=yes"
13277 else
13278 echo "configure: failed program was:" >&5
13279 cat conftest.$ac_ext >&5
13280 rm -rf conftest*
13281 eval "ac_cv_func_$ac_func=no"
13283 rm -f conftest*
13286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13287 echo "$ac_t""yes" 1>&6
13288 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13289 cat >> confdefs.h <<EOF
13290 #define $ac_tr_func 1
13293 else
13294 echo "$ac_t""no" 1>&6
13296 done
13298 else
13300 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
13301 echo "configure:13302: checking for _fmodl declaration" >&5
13302 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
13303 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
13304 echo $ac_n "(cached) $ac_c" 1>&6
13305 else
13308 ac_ext=C
13309 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13310 ac_cpp='$CXXCPP $CPPFLAGS'
13311 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13312 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13313 cross_compiling=$ac_cv_prog_cxx_cross
13315 cat > conftest.$ac_ext <<EOF
13316 #line 13317 "configure"
13317 #include "confdefs.h"
13318 #include <math.h>
13319 int main() {
13320 _fmodl(0, 0);
13321 ; return 0; }
13323 if { (eval echo configure:13324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13324 rm -rf conftest*
13325 glibcpp_cv_func__fmodl_use=yes
13326 else
13327 echo "configure: failed program was:" >&5
13328 cat conftest.$ac_ext >&5
13329 rm -rf conftest*
13330 glibcpp_cv_func__fmodl_use=no
13332 rm -f conftest*
13333 ac_ext=c
13334 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13335 ac_cpp='$CPP $CPPFLAGS'
13336 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13337 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13338 cross_compiling=$ac_cv_prog_cc_cross
13344 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
13346 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
13347 for ac_func in _fmodl
13349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13350 echo "configure:13351: checking for $ac_func" >&5
13351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13352 echo $ac_n "(cached) $ac_c" 1>&6
13353 else
13354 cat > conftest.$ac_ext <<EOF
13355 #line 13356 "configure"
13356 #include "confdefs.h"
13357 /* System header to define __stub macros and hopefully few prototypes,
13358 which can conflict with char $ac_func(); below. */
13359 #include <assert.h>
13360 /* Override any gcc2 internal prototype to avoid an error. */
13361 /* We use char because int might match the return type of a gcc2
13362 builtin and then its argument prototype would still apply. */
13363 char $ac_func();
13365 int main() {
13367 /* The GNU C library defines this for functions which it implements
13368 to always fail with ENOSYS. Some functions are actually named
13369 something starting with __ and the normal name is an alias. */
13370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13371 choke me
13372 #else
13373 $ac_func();
13374 #endif
13376 ; return 0; }
13378 if { (eval echo configure:13379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13379 rm -rf conftest*
13380 eval "ac_cv_func_$ac_func=yes"
13381 else
13382 echo "configure: failed program was:" >&5
13383 cat conftest.$ac_ext >&5
13384 rm -rf conftest*
13385 eval "ac_cv_func_$ac_func=no"
13387 rm -f conftest*
13390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13391 echo "$ac_t""yes" 1>&6
13392 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13393 cat >> confdefs.h <<EOF
13394 #define $ac_tr_func 1
13397 else
13398 echo "$ac_t""no" 1>&6
13400 done
13407 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
13408 echo "configure:13409: checking for frexpl declaration" >&5
13409 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
13410 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
13411 echo $ac_n "(cached) $ac_c" 1>&6
13412 else
13415 ac_ext=C
13416 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13417 ac_cpp='$CXXCPP $CPPFLAGS'
13418 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13419 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13420 cross_compiling=$ac_cv_prog_cxx_cross
13422 cat > conftest.$ac_ext <<EOF
13423 #line 13424 "configure"
13424 #include "confdefs.h"
13425 #include <math.h>
13426 int main() {
13427 frexpl(0, 0);
13428 ; return 0; }
13430 if { (eval echo configure:13431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13431 rm -rf conftest*
13432 glibcpp_cv_func_frexpl_use=yes
13433 else
13434 echo "configure: failed program was:" >&5
13435 cat conftest.$ac_ext >&5
13436 rm -rf conftest*
13437 glibcpp_cv_func_frexpl_use=no
13439 rm -f conftest*
13440 ac_ext=c
13441 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13442 ac_cpp='$CPP $CPPFLAGS'
13443 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13444 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13445 cross_compiling=$ac_cv_prog_cc_cross
13451 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
13453 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
13454 for ac_func in frexpl
13456 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13457 echo "configure:13458: checking for $ac_func" >&5
13458 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13459 echo $ac_n "(cached) $ac_c" 1>&6
13460 else
13461 cat > conftest.$ac_ext <<EOF
13462 #line 13463 "configure"
13463 #include "confdefs.h"
13464 /* System header to define __stub macros and hopefully few prototypes,
13465 which can conflict with char $ac_func(); below. */
13466 #include <assert.h>
13467 /* Override any gcc2 internal prototype to avoid an error. */
13468 /* We use char because int might match the return type of a gcc2
13469 builtin and then its argument prototype would still apply. */
13470 char $ac_func();
13472 int main() {
13474 /* The GNU C library defines this for functions which it implements
13475 to always fail with ENOSYS. Some functions are actually named
13476 something starting with __ and the normal name is an alias. */
13477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13478 choke me
13479 #else
13480 $ac_func();
13481 #endif
13483 ; return 0; }
13485 if { (eval echo configure:13486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13486 rm -rf conftest*
13487 eval "ac_cv_func_$ac_func=yes"
13488 else
13489 echo "configure: failed program was:" >&5
13490 cat conftest.$ac_ext >&5
13491 rm -rf conftest*
13492 eval "ac_cv_func_$ac_func=no"
13494 rm -f conftest*
13497 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13498 echo "$ac_t""yes" 1>&6
13499 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13500 cat >> confdefs.h <<EOF
13501 #define $ac_tr_func 1
13504 else
13505 echo "$ac_t""no" 1>&6
13507 done
13509 else
13511 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
13512 echo "configure:13513: checking for _frexpl declaration" >&5
13513 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
13514 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
13515 echo $ac_n "(cached) $ac_c" 1>&6
13516 else
13519 ac_ext=C
13520 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13521 ac_cpp='$CXXCPP $CPPFLAGS'
13522 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13523 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13524 cross_compiling=$ac_cv_prog_cxx_cross
13526 cat > conftest.$ac_ext <<EOF
13527 #line 13528 "configure"
13528 #include "confdefs.h"
13529 #include <math.h>
13530 int main() {
13531 _frexpl(0, 0);
13532 ; return 0; }
13534 if { (eval echo configure:13535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13535 rm -rf conftest*
13536 glibcpp_cv_func__frexpl_use=yes
13537 else
13538 echo "configure: failed program was:" >&5
13539 cat conftest.$ac_ext >&5
13540 rm -rf conftest*
13541 glibcpp_cv_func__frexpl_use=no
13543 rm -f conftest*
13544 ac_ext=c
13545 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13546 ac_cpp='$CPP $CPPFLAGS'
13547 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13548 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13549 cross_compiling=$ac_cv_prog_cc_cross
13555 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
13557 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
13558 for ac_func in _frexpl
13560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13561 echo "configure:13562: checking for $ac_func" >&5
13562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13563 echo $ac_n "(cached) $ac_c" 1>&6
13564 else
13565 cat > conftest.$ac_ext <<EOF
13566 #line 13567 "configure"
13567 #include "confdefs.h"
13568 /* System header to define __stub macros and hopefully few prototypes,
13569 which can conflict with char $ac_func(); below. */
13570 #include <assert.h>
13571 /* Override any gcc2 internal prototype to avoid an error. */
13572 /* We use char because int might match the return type of a gcc2
13573 builtin and then its argument prototype would still apply. */
13574 char $ac_func();
13576 int main() {
13578 /* The GNU C library defines this for functions which it implements
13579 to always fail with ENOSYS. Some functions are actually named
13580 something starting with __ and the normal name is an alias. */
13581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13582 choke me
13583 #else
13584 $ac_func();
13585 #endif
13587 ; return 0; }
13589 if { (eval echo configure:13590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13590 rm -rf conftest*
13591 eval "ac_cv_func_$ac_func=yes"
13592 else
13593 echo "configure: failed program was:" >&5
13594 cat conftest.$ac_ext >&5
13595 rm -rf conftest*
13596 eval "ac_cv_func_$ac_func=no"
13598 rm -f conftest*
13601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13602 echo "$ac_t""yes" 1>&6
13603 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13604 cat >> confdefs.h <<EOF
13605 #define $ac_tr_func 1
13608 else
13609 echo "$ac_t""no" 1>&6
13611 done
13618 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
13619 echo "configure:13620: checking for hypotl declaration" >&5
13620 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
13621 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
13622 echo $ac_n "(cached) $ac_c" 1>&6
13623 else
13626 ac_ext=C
13627 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13628 ac_cpp='$CXXCPP $CPPFLAGS'
13629 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13630 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13631 cross_compiling=$ac_cv_prog_cxx_cross
13633 cat > conftest.$ac_ext <<EOF
13634 #line 13635 "configure"
13635 #include "confdefs.h"
13636 #include <math.h>
13637 int main() {
13638 hypotl(0, 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_hypotl_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_hypotl_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_hypotl_use" 1>&6
13664 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
13665 for ac_func in hypotl
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
13720 else
13722 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
13723 echo "configure:13724: checking for _hypotl declaration" >&5
13724 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
13725 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
13726 echo $ac_n "(cached) $ac_c" 1>&6
13727 else
13730 ac_ext=C
13731 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13732 ac_cpp='$CXXCPP $CPPFLAGS'
13733 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13734 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13735 cross_compiling=$ac_cv_prog_cxx_cross
13737 cat > conftest.$ac_ext <<EOF
13738 #line 13739 "configure"
13739 #include "confdefs.h"
13740 #include <math.h>
13741 int main() {
13742 _hypotl(0, 0);
13743 ; return 0; }
13745 if { (eval echo configure:13746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13746 rm -rf conftest*
13747 glibcpp_cv_func__hypotl_use=yes
13748 else
13749 echo "configure: failed program was:" >&5
13750 cat conftest.$ac_ext >&5
13751 rm -rf conftest*
13752 glibcpp_cv_func__hypotl_use=no
13754 rm -f conftest*
13755 ac_ext=c
13756 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13757 ac_cpp='$CPP $CPPFLAGS'
13758 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13759 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13760 cross_compiling=$ac_cv_prog_cc_cross
13766 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
13768 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
13769 for ac_func in _hypotl
13771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13772 echo "configure:13773: checking for $ac_func" >&5
13773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13774 echo $ac_n "(cached) $ac_c" 1>&6
13775 else
13776 cat > conftest.$ac_ext <<EOF
13777 #line 13778 "configure"
13778 #include "confdefs.h"
13779 /* System header to define __stub macros and hopefully few prototypes,
13780 which can conflict with char $ac_func(); below. */
13781 #include <assert.h>
13782 /* Override any gcc2 internal prototype to avoid an error. */
13783 /* We use char because int might match the return type of a gcc2
13784 builtin and then its argument prototype would still apply. */
13785 char $ac_func();
13787 int main() {
13789 /* The GNU C library defines this for functions which it implements
13790 to always fail with ENOSYS. Some functions are actually named
13791 something starting with __ and the normal name is an alias. */
13792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13793 choke me
13794 #else
13795 $ac_func();
13796 #endif
13798 ; return 0; }
13800 if { (eval echo configure:13801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13801 rm -rf conftest*
13802 eval "ac_cv_func_$ac_func=yes"
13803 else
13804 echo "configure: failed program was:" >&5
13805 cat conftest.$ac_ext >&5
13806 rm -rf conftest*
13807 eval "ac_cv_func_$ac_func=no"
13809 rm -f conftest*
13812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13813 echo "$ac_t""yes" 1>&6
13814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13815 cat >> confdefs.h <<EOF
13816 #define $ac_tr_func 1
13819 else
13820 echo "$ac_t""no" 1>&6
13822 done
13829 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
13830 echo "configure:13831: checking for ldexpl declaration" >&5
13831 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
13832 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_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 ldexpl(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_ldexpl_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_ldexpl_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_ldexpl_use" 1>&6
13875 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
13876 for ac_func in ldexpl
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
13931 else
13933 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
13934 echo "configure:13935: checking for _ldexpl declaration" >&5
13935 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
13936 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
13937 echo $ac_n "(cached) $ac_c" 1>&6
13938 else
13941 ac_ext=C
13942 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13943 ac_cpp='$CXXCPP $CPPFLAGS'
13944 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13945 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13946 cross_compiling=$ac_cv_prog_cxx_cross
13948 cat > conftest.$ac_ext <<EOF
13949 #line 13950 "configure"
13950 #include "confdefs.h"
13951 #include <math.h>
13952 int main() {
13953 _ldexpl(0, 0);
13954 ; return 0; }
13956 if { (eval echo configure:13957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13957 rm -rf conftest*
13958 glibcpp_cv_func__ldexpl_use=yes
13959 else
13960 echo "configure: failed program was:" >&5
13961 cat conftest.$ac_ext >&5
13962 rm -rf conftest*
13963 glibcpp_cv_func__ldexpl_use=no
13965 rm -f conftest*
13966 ac_ext=c
13967 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13968 ac_cpp='$CPP $CPPFLAGS'
13969 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13970 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13971 cross_compiling=$ac_cv_prog_cc_cross
13977 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
13979 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
13980 for ac_func in _ldexpl
13982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13983 echo "configure:13984: checking for $ac_func" >&5
13984 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13985 echo $ac_n "(cached) $ac_c" 1>&6
13986 else
13987 cat > conftest.$ac_ext <<EOF
13988 #line 13989 "configure"
13989 #include "confdefs.h"
13990 /* System header to define __stub macros and hopefully few prototypes,
13991 which can conflict with char $ac_func(); below. */
13992 #include <assert.h>
13993 /* Override any gcc2 internal prototype to avoid an error. */
13994 /* We use char because int might match the return type of a gcc2
13995 builtin and then its argument prototype would still apply. */
13996 char $ac_func();
13998 int main() {
14000 /* The GNU C library defines this for functions which it implements
14001 to always fail with ENOSYS. Some functions are actually named
14002 something starting with __ and the normal name is an alias. */
14003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14004 choke me
14005 #else
14006 $ac_func();
14007 #endif
14009 ; return 0; }
14011 if { (eval echo configure:14012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14012 rm -rf conftest*
14013 eval "ac_cv_func_$ac_func=yes"
14014 else
14015 echo "configure: failed program was:" >&5
14016 cat conftest.$ac_ext >&5
14017 rm -rf conftest*
14018 eval "ac_cv_func_$ac_func=no"
14020 rm -f conftest*
14023 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14024 echo "$ac_t""yes" 1>&6
14025 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14026 cat >> confdefs.h <<EOF
14027 #define $ac_tr_func 1
14030 else
14031 echo "$ac_t""no" 1>&6
14033 done
14040 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
14041 echo "configure:14042: checking for logl declaration" >&5
14042 if test x${glibcpp_cv_func_logl_use+set} != xset; then
14043 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
14044 echo $ac_n "(cached) $ac_c" 1>&6
14045 else
14048 ac_ext=C
14049 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14050 ac_cpp='$CXXCPP $CPPFLAGS'
14051 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14052 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14053 cross_compiling=$ac_cv_prog_cxx_cross
14055 cat > conftest.$ac_ext <<EOF
14056 #line 14057 "configure"
14057 #include "confdefs.h"
14058 #include <math.h>
14059 #ifdef HAVE_IEEEFP_H
14060 #include <ieeefp.h>
14061 #endif
14063 int main() {
14064 logl(0);
14065 ; return 0; }
14067 if { (eval echo configure:14068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14068 rm -rf conftest*
14069 glibcpp_cv_func_logl_use=yes
14070 else
14071 echo "configure: failed program was:" >&5
14072 cat conftest.$ac_ext >&5
14073 rm -rf conftest*
14074 glibcpp_cv_func_logl_use=no
14076 rm -f conftest*
14077 ac_ext=c
14078 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14079 ac_cpp='$CPP $CPPFLAGS'
14080 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14081 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14082 cross_compiling=$ac_cv_prog_cc_cross
14088 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
14090 if test x$glibcpp_cv_func_logl_use = x"yes"; then
14091 for ac_func in logl
14093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14094 echo "configure:14095: checking for $ac_func" >&5
14095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14096 echo $ac_n "(cached) $ac_c" 1>&6
14097 else
14098 cat > conftest.$ac_ext <<EOF
14099 #line 14100 "configure"
14100 #include "confdefs.h"
14101 /* System header to define __stub macros and hopefully few prototypes,
14102 which can conflict with char $ac_func(); below. */
14103 #include <assert.h>
14104 /* Override any gcc2 internal prototype to avoid an error. */
14105 /* We use char because int might match the return type of a gcc2
14106 builtin and then its argument prototype would still apply. */
14107 char $ac_func();
14109 int main() {
14111 /* The GNU C library defines this for functions which it implements
14112 to always fail with ENOSYS. Some functions are actually named
14113 something starting with __ and the normal name is an alias. */
14114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14115 choke me
14116 #else
14117 $ac_func();
14118 #endif
14120 ; return 0; }
14122 if { (eval echo configure:14123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14123 rm -rf conftest*
14124 eval "ac_cv_func_$ac_func=yes"
14125 else
14126 echo "configure: failed program was:" >&5
14127 cat conftest.$ac_ext >&5
14128 rm -rf conftest*
14129 eval "ac_cv_func_$ac_func=no"
14131 rm -f conftest*
14134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14135 echo "$ac_t""yes" 1>&6
14136 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14137 cat >> confdefs.h <<EOF
14138 #define $ac_tr_func 1
14141 else
14142 echo "$ac_t""no" 1>&6
14144 done
14146 else
14148 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
14149 echo "configure:14150: checking for _logl declaration" >&5
14150 if test x${glibcpp_cv_func__logl_use+set} != xset; then
14151 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
14152 echo $ac_n "(cached) $ac_c" 1>&6
14153 else
14156 ac_ext=C
14157 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14158 ac_cpp='$CXXCPP $CPPFLAGS'
14159 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14160 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14161 cross_compiling=$ac_cv_prog_cxx_cross
14163 cat > conftest.$ac_ext <<EOF
14164 #line 14165 "configure"
14165 #include "confdefs.h"
14166 #include <math.h>
14167 #ifdef HAVE_IEEEFP_H
14168 #include <ieeefp.h>
14169 #endif
14171 int main() {
14172 _logl(0);
14173 ; return 0; }
14175 if { (eval echo configure:14176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14176 rm -rf conftest*
14177 glibcpp_cv_func__logl_use=yes
14178 else
14179 echo "configure: failed program was:" >&5
14180 cat conftest.$ac_ext >&5
14181 rm -rf conftest*
14182 glibcpp_cv_func__logl_use=no
14184 rm -f conftest*
14185 ac_ext=c
14186 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14187 ac_cpp='$CPP $CPPFLAGS'
14188 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14189 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14190 cross_compiling=$ac_cv_prog_cc_cross
14196 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
14198 if test x$glibcpp_cv_func__logl_use = x"yes"; then
14199 for ac_func in _logl
14201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14202 echo "configure:14203: checking for $ac_func" >&5
14203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14204 echo $ac_n "(cached) $ac_c" 1>&6
14205 else
14206 cat > conftest.$ac_ext <<EOF
14207 #line 14208 "configure"
14208 #include "confdefs.h"
14209 /* System header to define __stub macros and hopefully few prototypes,
14210 which can conflict with char $ac_func(); below. */
14211 #include <assert.h>
14212 /* Override any gcc2 internal prototype to avoid an error. */
14213 /* We use char because int might match the return type of a gcc2
14214 builtin and then its argument prototype would still apply. */
14215 char $ac_func();
14217 int main() {
14219 /* The GNU C library defines this for functions which it implements
14220 to always fail with ENOSYS. Some functions are actually named
14221 something starting with __ and the normal name is an alias. */
14222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14223 choke me
14224 #else
14225 $ac_func();
14226 #endif
14228 ; return 0; }
14230 if { (eval echo configure:14231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14231 rm -rf conftest*
14232 eval "ac_cv_func_$ac_func=yes"
14233 else
14234 echo "configure: failed program was:" >&5
14235 cat conftest.$ac_ext >&5
14236 rm -rf conftest*
14237 eval "ac_cv_func_$ac_func=no"
14239 rm -f conftest*
14242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14243 echo "$ac_t""yes" 1>&6
14244 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14245 cat >> confdefs.h <<EOF
14246 #define $ac_tr_func 1
14249 else
14250 echo "$ac_t""no" 1>&6
14252 done
14259 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
14260 echo "configure:14261: checking for log10l declaration" >&5
14261 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
14262 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
14263 echo $ac_n "(cached) $ac_c" 1>&6
14264 else
14267 ac_ext=C
14268 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14269 ac_cpp='$CXXCPP $CPPFLAGS'
14270 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14271 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14272 cross_compiling=$ac_cv_prog_cxx_cross
14274 cat > conftest.$ac_ext <<EOF
14275 #line 14276 "configure"
14276 #include "confdefs.h"
14277 #include <math.h>
14278 #ifdef HAVE_IEEEFP_H
14279 #include <ieeefp.h>
14280 #endif
14282 int main() {
14283 log10l(0);
14284 ; return 0; }
14286 if { (eval echo configure:14287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14287 rm -rf conftest*
14288 glibcpp_cv_func_log10l_use=yes
14289 else
14290 echo "configure: failed program was:" >&5
14291 cat conftest.$ac_ext >&5
14292 rm -rf conftest*
14293 glibcpp_cv_func_log10l_use=no
14295 rm -f conftest*
14296 ac_ext=c
14297 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14298 ac_cpp='$CPP $CPPFLAGS'
14299 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14300 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14301 cross_compiling=$ac_cv_prog_cc_cross
14307 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
14309 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
14310 for ac_func in log10l
14312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14313 echo "configure:14314: checking for $ac_func" >&5
14314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14315 echo $ac_n "(cached) $ac_c" 1>&6
14316 else
14317 cat > conftest.$ac_ext <<EOF
14318 #line 14319 "configure"
14319 #include "confdefs.h"
14320 /* System header to define __stub macros and hopefully few prototypes,
14321 which can conflict with char $ac_func(); below. */
14322 #include <assert.h>
14323 /* Override any gcc2 internal prototype to avoid an error. */
14324 /* We use char because int might match the return type of a gcc2
14325 builtin and then its argument prototype would still apply. */
14326 char $ac_func();
14328 int main() {
14330 /* The GNU C library defines this for functions which it implements
14331 to always fail with ENOSYS. Some functions are actually named
14332 something starting with __ and the normal name is an alias. */
14333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14334 choke me
14335 #else
14336 $ac_func();
14337 #endif
14339 ; return 0; }
14341 if { (eval echo configure:14342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14342 rm -rf conftest*
14343 eval "ac_cv_func_$ac_func=yes"
14344 else
14345 echo "configure: failed program was:" >&5
14346 cat conftest.$ac_ext >&5
14347 rm -rf conftest*
14348 eval "ac_cv_func_$ac_func=no"
14350 rm -f conftest*
14353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14354 echo "$ac_t""yes" 1>&6
14355 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14356 cat >> confdefs.h <<EOF
14357 #define $ac_tr_func 1
14360 else
14361 echo "$ac_t""no" 1>&6
14363 done
14365 else
14367 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
14368 echo "configure:14369: checking for _log10l declaration" >&5
14369 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
14370 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
14371 echo $ac_n "(cached) $ac_c" 1>&6
14372 else
14375 ac_ext=C
14376 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14377 ac_cpp='$CXXCPP $CPPFLAGS'
14378 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14379 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14380 cross_compiling=$ac_cv_prog_cxx_cross
14382 cat > conftest.$ac_ext <<EOF
14383 #line 14384 "configure"
14384 #include "confdefs.h"
14385 #include <math.h>
14386 #ifdef HAVE_IEEEFP_H
14387 #include <ieeefp.h>
14388 #endif
14390 int main() {
14391 _log10l(0);
14392 ; return 0; }
14394 if { (eval echo configure:14395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14395 rm -rf conftest*
14396 glibcpp_cv_func__log10l_use=yes
14397 else
14398 echo "configure: failed program was:" >&5
14399 cat conftest.$ac_ext >&5
14400 rm -rf conftest*
14401 glibcpp_cv_func__log10l_use=no
14403 rm -f conftest*
14404 ac_ext=c
14405 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14406 ac_cpp='$CPP $CPPFLAGS'
14407 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14408 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14409 cross_compiling=$ac_cv_prog_cc_cross
14415 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
14417 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
14418 for ac_func in _log10l
14420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14421 echo "configure:14422: checking for $ac_func" >&5
14422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14423 echo $ac_n "(cached) $ac_c" 1>&6
14424 else
14425 cat > conftest.$ac_ext <<EOF
14426 #line 14427 "configure"
14427 #include "confdefs.h"
14428 /* System header to define __stub macros and hopefully few prototypes,
14429 which can conflict with char $ac_func(); below. */
14430 #include <assert.h>
14431 /* Override any gcc2 internal prototype to avoid an error. */
14432 /* We use char because int might match the return type of a gcc2
14433 builtin and then its argument prototype would still apply. */
14434 char $ac_func();
14436 int main() {
14438 /* The GNU C library defines this for functions which it implements
14439 to always fail with ENOSYS. Some functions are actually named
14440 something starting with __ and the normal name is an alias. */
14441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14442 choke me
14443 #else
14444 $ac_func();
14445 #endif
14447 ; return 0; }
14449 if { (eval echo configure:14450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14450 rm -rf conftest*
14451 eval "ac_cv_func_$ac_func=yes"
14452 else
14453 echo "configure: failed program was:" >&5
14454 cat conftest.$ac_ext >&5
14455 rm -rf conftest*
14456 eval "ac_cv_func_$ac_func=no"
14458 rm -f conftest*
14461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14462 echo "$ac_t""yes" 1>&6
14463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14464 cat >> confdefs.h <<EOF
14465 #define $ac_tr_func 1
14468 else
14469 echo "$ac_t""no" 1>&6
14471 done
14478 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
14479 echo "configure:14480: checking for modfl declaration" >&5
14480 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
14481 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
14482 echo $ac_n "(cached) $ac_c" 1>&6
14483 else
14486 ac_ext=C
14487 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14488 ac_cpp='$CXXCPP $CPPFLAGS'
14489 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14490 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14491 cross_compiling=$ac_cv_prog_cxx_cross
14493 cat > conftest.$ac_ext <<EOF
14494 #line 14495 "configure"
14495 #include "confdefs.h"
14496 #include <math.h>
14497 int main() {
14498 modfl(0, 0);
14499 ; return 0; }
14501 if { (eval echo configure:14502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14502 rm -rf conftest*
14503 glibcpp_cv_func_modfl_use=yes
14504 else
14505 echo "configure: failed program was:" >&5
14506 cat conftest.$ac_ext >&5
14507 rm -rf conftest*
14508 glibcpp_cv_func_modfl_use=no
14510 rm -f conftest*
14511 ac_ext=c
14512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14513 ac_cpp='$CPP $CPPFLAGS'
14514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14515 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14516 cross_compiling=$ac_cv_prog_cc_cross
14522 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
14524 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
14525 for ac_func in modfl
14527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14528 echo "configure:14529: checking for $ac_func" >&5
14529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14530 echo $ac_n "(cached) $ac_c" 1>&6
14531 else
14532 cat > conftest.$ac_ext <<EOF
14533 #line 14534 "configure"
14534 #include "confdefs.h"
14535 /* System header to define __stub macros and hopefully few prototypes,
14536 which can conflict with char $ac_func(); below. */
14537 #include <assert.h>
14538 /* Override any gcc2 internal prototype to avoid an error. */
14539 /* We use char because int might match the return type of a gcc2
14540 builtin and then its argument prototype would still apply. */
14541 char $ac_func();
14543 int main() {
14545 /* The GNU C library defines this for functions which it implements
14546 to always fail with ENOSYS. Some functions are actually named
14547 something starting with __ and the normal name is an alias. */
14548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14549 choke me
14550 #else
14551 $ac_func();
14552 #endif
14554 ; return 0; }
14556 if { (eval echo configure:14557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14557 rm -rf conftest*
14558 eval "ac_cv_func_$ac_func=yes"
14559 else
14560 echo "configure: failed program was:" >&5
14561 cat conftest.$ac_ext >&5
14562 rm -rf conftest*
14563 eval "ac_cv_func_$ac_func=no"
14565 rm -f conftest*
14568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14569 echo "$ac_t""yes" 1>&6
14570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14571 cat >> confdefs.h <<EOF
14572 #define $ac_tr_func 1
14575 else
14576 echo "$ac_t""no" 1>&6
14578 done
14580 else
14582 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
14583 echo "configure:14584: checking for _modfl declaration" >&5
14584 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
14585 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
14586 echo $ac_n "(cached) $ac_c" 1>&6
14587 else
14590 ac_ext=C
14591 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14592 ac_cpp='$CXXCPP $CPPFLAGS'
14593 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14594 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14595 cross_compiling=$ac_cv_prog_cxx_cross
14597 cat > conftest.$ac_ext <<EOF
14598 #line 14599 "configure"
14599 #include "confdefs.h"
14600 #include <math.h>
14601 int main() {
14602 _modfl(0, 0);
14603 ; return 0; }
14605 if { (eval echo configure:14606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14606 rm -rf conftest*
14607 glibcpp_cv_func__modfl_use=yes
14608 else
14609 echo "configure: failed program was:" >&5
14610 cat conftest.$ac_ext >&5
14611 rm -rf conftest*
14612 glibcpp_cv_func__modfl_use=no
14614 rm -f conftest*
14615 ac_ext=c
14616 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14617 ac_cpp='$CPP $CPPFLAGS'
14618 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14619 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14620 cross_compiling=$ac_cv_prog_cc_cross
14626 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
14628 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
14629 for ac_func in _modfl
14631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14632 echo "configure:14633: checking for $ac_func" >&5
14633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14634 echo $ac_n "(cached) $ac_c" 1>&6
14635 else
14636 cat > conftest.$ac_ext <<EOF
14637 #line 14638 "configure"
14638 #include "confdefs.h"
14639 /* System header to define __stub macros and hopefully few prototypes,
14640 which can conflict with char $ac_func(); below. */
14641 #include <assert.h>
14642 /* Override any gcc2 internal prototype to avoid an error. */
14643 /* We use char because int might match the return type of a gcc2
14644 builtin and then its argument prototype would still apply. */
14645 char $ac_func();
14647 int main() {
14649 /* The GNU C library defines this for functions which it implements
14650 to always fail with ENOSYS. Some functions are actually named
14651 something starting with __ and the normal name is an alias. */
14652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14653 choke me
14654 #else
14655 $ac_func();
14656 #endif
14658 ; return 0; }
14660 if { (eval echo configure:14661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14661 rm -rf conftest*
14662 eval "ac_cv_func_$ac_func=yes"
14663 else
14664 echo "configure: failed program was:" >&5
14665 cat conftest.$ac_ext >&5
14666 rm -rf conftest*
14667 eval "ac_cv_func_$ac_func=no"
14669 rm -f conftest*
14672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14673 echo "$ac_t""yes" 1>&6
14674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14675 cat >> confdefs.h <<EOF
14676 #define $ac_tr_func 1
14679 else
14680 echo "$ac_t""no" 1>&6
14682 done
14689 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
14690 echo "configure:14691: checking for powl declaration" >&5
14691 if test x${glibcpp_cv_func_powl_use+set} != xset; then
14692 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
14693 echo $ac_n "(cached) $ac_c" 1>&6
14694 else
14697 ac_ext=C
14698 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14699 ac_cpp='$CXXCPP $CPPFLAGS'
14700 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14701 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14702 cross_compiling=$ac_cv_prog_cxx_cross
14704 cat > conftest.$ac_ext <<EOF
14705 #line 14706 "configure"
14706 #include "confdefs.h"
14707 #include <math.h>
14708 int main() {
14709 powl(0, 0);
14710 ; return 0; }
14712 if { (eval echo configure:14713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14713 rm -rf conftest*
14714 glibcpp_cv_func_powl_use=yes
14715 else
14716 echo "configure: failed program was:" >&5
14717 cat conftest.$ac_ext >&5
14718 rm -rf conftest*
14719 glibcpp_cv_func_powl_use=no
14721 rm -f conftest*
14722 ac_ext=c
14723 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14724 ac_cpp='$CPP $CPPFLAGS'
14725 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14726 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14727 cross_compiling=$ac_cv_prog_cc_cross
14733 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
14735 if test x$glibcpp_cv_func_powl_use = x"yes"; then
14736 for ac_func in powl
14738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14739 echo "configure:14740: checking for $ac_func" >&5
14740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14741 echo $ac_n "(cached) $ac_c" 1>&6
14742 else
14743 cat > conftest.$ac_ext <<EOF
14744 #line 14745 "configure"
14745 #include "confdefs.h"
14746 /* System header to define __stub macros and hopefully few prototypes,
14747 which can conflict with char $ac_func(); below. */
14748 #include <assert.h>
14749 /* Override any gcc2 internal prototype to avoid an error. */
14750 /* We use char because int might match the return type of a gcc2
14751 builtin and then its argument prototype would still apply. */
14752 char $ac_func();
14754 int main() {
14756 /* The GNU C library defines this for functions which it implements
14757 to always fail with ENOSYS. Some functions are actually named
14758 something starting with __ and the normal name is an alias. */
14759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14760 choke me
14761 #else
14762 $ac_func();
14763 #endif
14765 ; return 0; }
14767 if { (eval echo configure:14768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14768 rm -rf conftest*
14769 eval "ac_cv_func_$ac_func=yes"
14770 else
14771 echo "configure: failed program was:" >&5
14772 cat conftest.$ac_ext >&5
14773 rm -rf conftest*
14774 eval "ac_cv_func_$ac_func=no"
14776 rm -f conftest*
14779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14780 echo "$ac_t""yes" 1>&6
14781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14782 cat >> confdefs.h <<EOF
14783 #define $ac_tr_func 1
14786 else
14787 echo "$ac_t""no" 1>&6
14789 done
14791 else
14793 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
14794 echo "configure:14795: checking for _powl declaration" >&5
14795 if test x${glibcpp_cv_func__powl_use+set} != xset; then
14796 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
14797 echo $ac_n "(cached) $ac_c" 1>&6
14798 else
14801 ac_ext=C
14802 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14803 ac_cpp='$CXXCPP $CPPFLAGS'
14804 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14805 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14806 cross_compiling=$ac_cv_prog_cxx_cross
14808 cat > conftest.$ac_ext <<EOF
14809 #line 14810 "configure"
14810 #include "confdefs.h"
14811 #include <math.h>
14812 int main() {
14813 _powl(0, 0);
14814 ; return 0; }
14816 if { (eval echo configure:14817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14817 rm -rf conftest*
14818 glibcpp_cv_func__powl_use=yes
14819 else
14820 echo "configure: failed program was:" >&5
14821 cat conftest.$ac_ext >&5
14822 rm -rf conftest*
14823 glibcpp_cv_func__powl_use=no
14825 rm -f conftest*
14826 ac_ext=c
14827 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14828 ac_cpp='$CPP $CPPFLAGS'
14829 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14830 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14831 cross_compiling=$ac_cv_prog_cc_cross
14837 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
14839 if test x$glibcpp_cv_func__powl_use = x"yes"; then
14840 for ac_func in _powl
14842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14843 echo "configure:14844: checking for $ac_func" >&5
14844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14845 echo $ac_n "(cached) $ac_c" 1>&6
14846 else
14847 cat > conftest.$ac_ext <<EOF
14848 #line 14849 "configure"
14849 #include "confdefs.h"
14850 /* System header to define __stub macros and hopefully few prototypes,
14851 which can conflict with char $ac_func(); below. */
14852 #include <assert.h>
14853 /* Override any gcc2 internal prototype to avoid an error. */
14854 /* We use char because int might match the return type of a gcc2
14855 builtin and then its argument prototype would still apply. */
14856 char $ac_func();
14858 int main() {
14860 /* The GNU C library defines this for functions which it implements
14861 to always fail with ENOSYS. Some functions are actually named
14862 something starting with __ and the normal name is an alias. */
14863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14864 choke me
14865 #else
14866 $ac_func();
14867 #endif
14869 ; return 0; }
14871 if { (eval echo configure:14872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14872 rm -rf conftest*
14873 eval "ac_cv_func_$ac_func=yes"
14874 else
14875 echo "configure: failed program was:" >&5
14876 cat conftest.$ac_ext >&5
14877 rm -rf conftest*
14878 eval "ac_cv_func_$ac_func=no"
14880 rm -f conftest*
14883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14884 echo "$ac_t""yes" 1>&6
14885 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14886 cat >> confdefs.h <<EOF
14887 #define $ac_tr_func 1
14890 else
14891 echo "$ac_t""no" 1>&6
14893 done
14900 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
14901 echo "configure:14902: checking for sqrtl declaration" >&5
14902 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
14903 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
14904 echo $ac_n "(cached) $ac_c" 1>&6
14905 else
14908 ac_ext=C
14909 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14910 ac_cpp='$CXXCPP $CPPFLAGS'
14911 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14912 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14913 cross_compiling=$ac_cv_prog_cxx_cross
14915 cat > conftest.$ac_ext <<EOF
14916 #line 14917 "configure"
14917 #include "confdefs.h"
14918 #include <math.h>
14919 #ifdef HAVE_IEEEFP_H
14920 #include <ieeefp.h>
14921 #endif
14923 int main() {
14924 sqrtl(0);
14925 ; return 0; }
14927 if { (eval echo configure:14928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14928 rm -rf conftest*
14929 glibcpp_cv_func_sqrtl_use=yes
14930 else
14931 echo "configure: failed program was:" >&5
14932 cat conftest.$ac_ext >&5
14933 rm -rf conftest*
14934 glibcpp_cv_func_sqrtl_use=no
14936 rm -f conftest*
14937 ac_ext=c
14938 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14939 ac_cpp='$CPP $CPPFLAGS'
14940 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14941 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14942 cross_compiling=$ac_cv_prog_cc_cross
14948 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
14950 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
14951 for ac_func in sqrtl
14953 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14954 echo "configure:14955: checking for $ac_func" >&5
14955 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14956 echo $ac_n "(cached) $ac_c" 1>&6
14957 else
14958 cat > conftest.$ac_ext <<EOF
14959 #line 14960 "configure"
14960 #include "confdefs.h"
14961 /* System header to define __stub macros and hopefully few prototypes,
14962 which can conflict with char $ac_func(); below. */
14963 #include <assert.h>
14964 /* Override any gcc2 internal prototype to avoid an error. */
14965 /* We use char because int might match the return type of a gcc2
14966 builtin and then its argument prototype would still apply. */
14967 char $ac_func();
14969 int main() {
14971 /* The GNU C library defines this for functions which it implements
14972 to always fail with ENOSYS. Some functions are actually named
14973 something starting with __ and the normal name is an alias. */
14974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14975 choke me
14976 #else
14977 $ac_func();
14978 #endif
14980 ; return 0; }
14982 if { (eval echo configure:14983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14983 rm -rf conftest*
14984 eval "ac_cv_func_$ac_func=yes"
14985 else
14986 echo "configure: failed program was:" >&5
14987 cat conftest.$ac_ext >&5
14988 rm -rf conftest*
14989 eval "ac_cv_func_$ac_func=no"
14991 rm -f conftest*
14994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14995 echo "$ac_t""yes" 1>&6
14996 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14997 cat >> confdefs.h <<EOF
14998 #define $ac_tr_func 1
15001 else
15002 echo "$ac_t""no" 1>&6
15004 done
15006 else
15008 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
15009 echo "configure:15010: checking for _sqrtl declaration" >&5
15010 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
15011 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
15012 echo $ac_n "(cached) $ac_c" 1>&6
15013 else
15016 ac_ext=C
15017 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15018 ac_cpp='$CXXCPP $CPPFLAGS'
15019 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15020 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15021 cross_compiling=$ac_cv_prog_cxx_cross
15023 cat > conftest.$ac_ext <<EOF
15024 #line 15025 "configure"
15025 #include "confdefs.h"
15026 #include <math.h>
15027 #ifdef HAVE_IEEEFP_H
15028 #include <ieeefp.h>
15029 #endif
15031 int main() {
15032 _sqrtl(0);
15033 ; return 0; }
15035 if { (eval echo configure:15036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15036 rm -rf conftest*
15037 glibcpp_cv_func__sqrtl_use=yes
15038 else
15039 echo "configure: failed program was:" >&5
15040 cat conftest.$ac_ext >&5
15041 rm -rf conftest*
15042 glibcpp_cv_func__sqrtl_use=no
15044 rm -f conftest*
15045 ac_ext=c
15046 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15047 ac_cpp='$CPP $CPPFLAGS'
15048 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15049 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15050 cross_compiling=$ac_cv_prog_cc_cross
15056 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
15058 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
15059 for ac_func in _sqrtl
15061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15062 echo "configure:15063: checking for $ac_func" >&5
15063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15064 echo $ac_n "(cached) $ac_c" 1>&6
15065 else
15066 cat > conftest.$ac_ext <<EOF
15067 #line 15068 "configure"
15068 #include "confdefs.h"
15069 /* System header to define __stub macros and hopefully few prototypes,
15070 which can conflict with char $ac_func(); below. */
15071 #include <assert.h>
15072 /* Override any gcc2 internal prototype to avoid an error. */
15073 /* We use char because int might match the return type of a gcc2
15074 builtin and then its argument prototype would still apply. */
15075 char $ac_func();
15077 int main() {
15079 /* The GNU C library defines this for functions which it implements
15080 to always fail with ENOSYS. Some functions are actually named
15081 something starting with __ and the normal name is an alias. */
15082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15083 choke me
15084 #else
15085 $ac_func();
15086 #endif
15088 ; return 0; }
15090 if { (eval echo configure:15091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15091 rm -rf conftest*
15092 eval "ac_cv_func_$ac_func=yes"
15093 else
15094 echo "configure: failed program was:" >&5
15095 cat conftest.$ac_ext >&5
15096 rm -rf conftest*
15097 eval "ac_cv_func_$ac_func=no"
15099 rm -f conftest*
15102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15103 echo "$ac_t""yes" 1>&6
15104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15105 cat >> confdefs.h <<EOF
15106 #define $ac_tr_func 1
15109 else
15110 echo "$ac_t""no" 1>&6
15112 done
15119 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
15120 echo "configure:15121: checking for sincosl declaration" >&5
15121 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
15122 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
15123 echo $ac_n "(cached) $ac_c" 1>&6
15124 else
15127 ac_ext=C
15128 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15129 ac_cpp='$CXXCPP $CPPFLAGS'
15130 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15131 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15132 cross_compiling=$ac_cv_prog_cxx_cross
15134 cat > conftest.$ac_ext <<EOF
15135 #line 15136 "configure"
15136 #include "confdefs.h"
15137 #include <math.h>
15138 int main() {
15139 sincosl(0, 0, 0);
15140 ; return 0; }
15142 if { (eval echo configure:15143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15143 rm -rf conftest*
15144 glibcpp_cv_func_sincosl_use=yes
15145 else
15146 echo "configure: failed program was:" >&5
15147 cat conftest.$ac_ext >&5
15148 rm -rf conftest*
15149 glibcpp_cv_func_sincosl_use=no
15151 rm -f conftest*
15152 ac_ext=c
15153 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15154 ac_cpp='$CPP $CPPFLAGS'
15155 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15156 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15157 cross_compiling=$ac_cv_prog_cc_cross
15163 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
15165 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
15166 for ac_func in sincosl
15168 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15169 echo "configure:15170: checking for $ac_func" >&5
15170 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15171 echo $ac_n "(cached) $ac_c" 1>&6
15172 else
15173 cat > conftest.$ac_ext <<EOF
15174 #line 15175 "configure"
15175 #include "confdefs.h"
15176 /* System header to define __stub macros and hopefully few prototypes,
15177 which can conflict with char $ac_func(); below. */
15178 #include <assert.h>
15179 /* Override any gcc2 internal prototype to avoid an error. */
15180 /* We use char because int might match the return type of a gcc2
15181 builtin and then its argument prototype would still apply. */
15182 char $ac_func();
15184 int main() {
15186 /* The GNU C library defines this for functions which it implements
15187 to always fail with ENOSYS. Some functions are actually named
15188 something starting with __ and the normal name is an alias. */
15189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15190 choke me
15191 #else
15192 $ac_func();
15193 #endif
15195 ; return 0; }
15197 if { (eval echo configure:15198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15198 rm -rf conftest*
15199 eval "ac_cv_func_$ac_func=yes"
15200 else
15201 echo "configure: failed program was:" >&5
15202 cat conftest.$ac_ext >&5
15203 rm -rf conftest*
15204 eval "ac_cv_func_$ac_func=no"
15206 rm -f conftest*
15209 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15210 echo "$ac_t""yes" 1>&6
15211 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15212 cat >> confdefs.h <<EOF
15213 #define $ac_tr_func 1
15216 else
15217 echo "$ac_t""no" 1>&6
15219 done
15221 else
15223 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
15224 echo "configure:15225: checking for _sincosl declaration" >&5
15225 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
15226 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
15227 echo $ac_n "(cached) $ac_c" 1>&6
15228 else
15231 ac_ext=C
15232 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15233 ac_cpp='$CXXCPP $CPPFLAGS'
15234 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15235 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15236 cross_compiling=$ac_cv_prog_cxx_cross
15238 cat > conftest.$ac_ext <<EOF
15239 #line 15240 "configure"
15240 #include "confdefs.h"
15241 #include <math.h>
15242 int main() {
15243 _sincosl(0, 0, 0);
15244 ; return 0; }
15246 if { (eval echo configure:15247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15247 rm -rf conftest*
15248 glibcpp_cv_func__sincosl_use=yes
15249 else
15250 echo "configure: failed program was:" >&5
15251 cat conftest.$ac_ext >&5
15252 rm -rf conftest*
15253 glibcpp_cv_func__sincosl_use=no
15255 rm -f conftest*
15256 ac_ext=c
15257 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15258 ac_cpp='$CPP $CPPFLAGS'
15259 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15260 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15261 cross_compiling=$ac_cv_prog_cc_cross
15267 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
15269 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
15270 for ac_func in _sincosl
15272 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15273 echo "configure:15274: checking for $ac_func" >&5
15274 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15275 echo $ac_n "(cached) $ac_c" 1>&6
15276 else
15277 cat > conftest.$ac_ext <<EOF
15278 #line 15279 "configure"
15279 #include "confdefs.h"
15280 /* System header to define __stub macros and hopefully few prototypes,
15281 which can conflict with char $ac_func(); below. */
15282 #include <assert.h>
15283 /* Override any gcc2 internal prototype to avoid an error. */
15284 /* We use char because int might match the return type of a gcc2
15285 builtin and then its argument prototype would still apply. */
15286 char $ac_func();
15288 int main() {
15290 /* The GNU C library defines this for functions which it implements
15291 to always fail with ENOSYS. Some functions are actually named
15292 something starting with __ and the normal name is an alias. */
15293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15294 choke me
15295 #else
15296 $ac_func();
15297 #endif
15299 ; return 0; }
15301 if { (eval echo configure:15302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15302 rm -rf conftest*
15303 eval "ac_cv_func_$ac_func=yes"
15304 else
15305 echo "configure: failed program was:" >&5
15306 cat conftest.$ac_ext >&5
15307 rm -rf conftest*
15308 eval "ac_cv_func_$ac_func=no"
15310 rm -f conftest*
15313 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15314 echo "$ac_t""yes" 1>&6
15315 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15316 cat >> confdefs.h <<EOF
15317 #define $ac_tr_func 1
15320 else
15321 echo "$ac_t""no" 1>&6
15323 done
15330 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
15331 echo "configure:15332: checking for finitel declaration" >&5
15332 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
15333 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
15334 echo $ac_n "(cached) $ac_c" 1>&6
15335 else
15338 ac_ext=C
15339 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15340 ac_cpp='$CXXCPP $CPPFLAGS'
15341 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15342 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15343 cross_compiling=$ac_cv_prog_cxx_cross
15345 cat > conftest.$ac_ext <<EOF
15346 #line 15347 "configure"
15347 #include "confdefs.h"
15348 #include <math.h>
15349 #ifdef HAVE_IEEEFP_H
15350 #include <ieeefp.h>
15351 #endif
15353 int main() {
15354 finitel(0);
15355 ; return 0; }
15357 if { (eval echo configure:15358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15358 rm -rf conftest*
15359 glibcpp_cv_func_finitel_use=yes
15360 else
15361 echo "configure: failed program was:" >&5
15362 cat conftest.$ac_ext >&5
15363 rm -rf conftest*
15364 glibcpp_cv_func_finitel_use=no
15366 rm -f conftest*
15367 ac_ext=c
15368 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15369 ac_cpp='$CPP $CPPFLAGS'
15370 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15371 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15372 cross_compiling=$ac_cv_prog_cc_cross
15378 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
15380 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
15381 for ac_func in finitel
15383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15384 echo "configure:15385: checking for $ac_func" >&5
15385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15386 echo $ac_n "(cached) $ac_c" 1>&6
15387 else
15388 cat > conftest.$ac_ext <<EOF
15389 #line 15390 "configure"
15390 #include "confdefs.h"
15391 /* System header to define __stub macros and hopefully few prototypes,
15392 which can conflict with char $ac_func(); below. */
15393 #include <assert.h>
15394 /* Override any gcc2 internal prototype to avoid an error. */
15395 /* We use char because int might match the return type of a gcc2
15396 builtin and then its argument prototype would still apply. */
15397 char $ac_func();
15399 int main() {
15401 /* The GNU C library defines this for functions which it implements
15402 to always fail with ENOSYS. Some functions are actually named
15403 something starting with __ and the normal name is an alias. */
15404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15405 choke me
15406 #else
15407 $ac_func();
15408 #endif
15410 ; return 0; }
15412 if { (eval echo configure:15413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15413 rm -rf conftest*
15414 eval "ac_cv_func_$ac_func=yes"
15415 else
15416 echo "configure: failed program was:" >&5
15417 cat conftest.$ac_ext >&5
15418 rm -rf conftest*
15419 eval "ac_cv_func_$ac_func=no"
15421 rm -f conftest*
15424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15425 echo "$ac_t""yes" 1>&6
15426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15427 cat >> confdefs.h <<EOF
15428 #define $ac_tr_func 1
15431 else
15432 echo "$ac_t""no" 1>&6
15434 done
15436 else
15438 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
15439 echo "configure:15440: checking for _finitel declaration" >&5
15440 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
15441 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
15442 echo $ac_n "(cached) $ac_c" 1>&6
15443 else
15446 ac_ext=C
15447 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15448 ac_cpp='$CXXCPP $CPPFLAGS'
15449 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15450 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15451 cross_compiling=$ac_cv_prog_cxx_cross
15453 cat > conftest.$ac_ext <<EOF
15454 #line 15455 "configure"
15455 #include "confdefs.h"
15456 #include <math.h>
15457 #ifdef HAVE_IEEEFP_H
15458 #include <ieeefp.h>
15459 #endif
15461 int main() {
15462 _finitel(0);
15463 ; return 0; }
15465 if { (eval echo configure:15466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15466 rm -rf conftest*
15467 glibcpp_cv_func__finitel_use=yes
15468 else
15469 echo "configure: failed program was:" >&5
15470 cat conftest.$ac_ext >&5
15471 rm -rf conftest*
15472 glibcpp_cv_func__finitel_use=no
15474 rm -f conftest*
15475 ac_ext=c
15476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15477 ac_cpp='$CPP $CPPFLAGS'
15478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15480 cross_compiling=$ac_cv_prog_cc_cross
15486 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
15488 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
15489 for ac_func in _finitel
15491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15492 echo "configure:15493: checking for $ac_func" >&5
15493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15494 echo $ac_n "(cached) $ac_c" 1>&6
15495 else
15496 cat > conftest.$ac_ext <<EOF
15497 #line 15498 "configure"
15498 #include "confdefs.h"
15499 /* System header to define __stub macros and hopefully few prototypes,
15500 which can conflict with char $ac_func(); below. */
15501 #include <assert.h>
15502 /* Override any gcc2 internal prototype to avoid an error. */
15503 /* We use char because int might match the return type of a gcc2
15504 builtin and then its argument prototype would still apply. */
15505 char $ac_func();
15507 int main() {
15509 /* The GNU C library defines this for functions which it implements
15510 to always fail with ENOSYS. Some functions are actually named
15511 something starting with __ and the normal name is an alias. */
15512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15513 choke me
15514 #else
15515 $ac_func();
15516 #endif
15518 ; return 0; }
15520 if { (eval echo configure:15521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15521 rm -rf conftest*
15522 eval "ac_cv_func_$ac_func=yes"
15523 else
15524 echo "configure: failed program was:" >&5
15525 cat conftest.$ac_ext >&5
15526 rm -rf conftest*
15527 eval "ac_cv_func_$ac_func=no"
15529 rm -f conftest*
15532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15533 echo "$ac_t""yes" 1>&6
15534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15535 cat >> confdefs.h <<EOF
15536 #define $ac_tr_func 1
15539 else
15540 echo "$ac_t""no" 1>&6
15542 done
15550 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
15551 echo "configure:15552: checking for _float trig functions" >&5
15552 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
15553 echo $ac_n "(cached) $ac_c" 1>&6
15554 else
15557 ac_ext=C
15558 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15559 ac_cpp='$CXXCPP $CPPFLAGS'
15560 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15561 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15562 cross_compiling=$ac_cv_prog_cxx_cross
15564 cat > conftest.$ac_ext <<EOF
15565 #line 15566 "configure"
15566 #include "confdefs.h"
15567 #include <math.h>
15568 int main() {
15569 `for x in _acosf _asinf _atanf \
15570 _cosf _sinf _tanf \
15571 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
15572 ; return 0; }
15574 if { (eval echo configure:15575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15575 rm -rf conftest*
15576 glibcpp_cv_func__float_trig_use=yes
15577 else
15578 echo "configure: failed program was:" >&5
15579 cat conftest.$ac_ext >&5
15580 rm -rf conftest*
15581 glibcpp_cv_func__float_trig_use=no
15583 rm -f conftest*
15584 ac_ext=c
15585 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15586 ac_cpp='$CPP $CPPFLAGS'
15587 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15588 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15589 cross_compiling=$ac_cv_prog_cc_cross
15593 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
15594 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
15595 for ac_func in _acosf _asinf _atanf \
15596 _cosf _sinf _tanf \
15597 _coshf _sinhf _tanhf
15599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15600 echo "configure:15601: checking for $ac_func" >&5
15601 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15602 echo $ac_n "(cached) $ac_c" 1>&6
15603 else
15604 cat > conftest.$ac_ext <<EOF
15605 #line 15606 "configure"
15606 #include "confdefs.h"
15607 /* System header to define __stub macros and hopefully few prototypes,
15608 which can conflict with char $ac_func(); below. */
15609 #include <assert.h>
15610 /* Override any gcc2 internal prototype to avoid an error. */
15611 /* We use char because int might match the return type of a gcc2
15612 builtin and then its argument prototype would still apply. */
15613 char $ac_func();
15615 int main() {
15617 /* The GNU C library defines this for functions which it implements
15618 to always fail with ENOSYS. Some functions are actually named
15619 something starting with __ and the normal name is an alias. */
15620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15621 choke me
15622 #else
15623 $ac_func();
15624 #endif
15626 ; return 0; }
15628 if { (eval echo configure:15629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15629 rm -rf conftest*
15630 eval "ac_cv_func_$ac_func=yes"
15631 else
15632 echo "configure: failed program was:" >&5
15633 cat conftest.$ac_ext >&5
15634 rm -rf conftest*
15635 eval "ac_cv_func_$ac_func=no"
15637 rm -f conftest*
15640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15641 echo "$ac_t""yes" 1>&6
15642 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15643 cat >> confdefs.h <<EOF
15644 #define $ac_tr_func 1
15647 else
15648 echo "$ac_t""no" 1>&6
15650 done
15655 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
15656 echo "configure:15657: checking for _float round functions" >&5
15657 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
15658 echo $ac_n "(cached) $ac_c" 1>&6
15659 else
15662 ac_ext=C
15663 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15664 ac_cpp='$CXXCPP $CPPFLAGS'
15665 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15666 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15667 cross_compiling=$ac_cv_prog_cxx_cross
15669 cat > conftest.$ac_ext <<EOF
15670 #line 15671 "configure"
15671 #include "confdefs.h"
15672 #include <math.h>
15673 int main() {
15674 `for x in _ceilf _floorf; do echo "$x (0);"; done`
15675 ; return 0; }
15677 if { (eval echo configure:15678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15678 rm -rf conftest*
15679 glibcpp_cv_func__float_round_use=yes
15680 else
15681 echo "configure: failed program was:" >&5
15682 cat conftest.$ac_ext >&5
15683 rm -rf conftest*
15684 glibcpp_cv_func__float_round_use=no
15686 rm -f conftest*
15687 ac_ext=c
15688 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15689 ac_cpp='$CPP $CPPFLAGS'
15690 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15691 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15692 cross_compiling=$ac_cv_prog_cc_cross
15696 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
15697 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
15698 for ac_func in _ceilf _floorf
15700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15701 echo "configure:15702: checking for $ac_func" >&5
15702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15703 echo $ac_n "(cached) $ac_c" 1>&6
15704 else
15705 cat > conftest.$ac_ext <<EOF
15706 #line 15707 "configure"
15707 #include "confdefs.h"
15708 /* System header to define __stub macros and hopefully few prototypes,
15709 which can conflict with char $ac_func(); below. */
15710 #include <assert.h>
15711 /* Override any gcc2 internal prototype to avoid an error. */
15712 /* We use char because int might match the return type of a gcc2
15713 builtin and then its argument prototype would still apply. */
15714 char $ac_func();
15716 int main() {
15718 /* The GNU C library defines this for functions which it implements
15719 to always fail with ENOSYS. Some functions are actually named
15720 something starting with __ and the normal name is an alias. */
15721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15722 choke me
15723 #else
15724 $ac_func();
15725 #endif
15727 ; return 0; }
15729 if { (eval echo configure:15730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15730 rm -rf conftest*
15731 eval "ac_cv_func_$ac_func=yes"
15732 else
15733 echo "configure: failed program was:" >&5
15734 cat conftest.$ac_ext >&5
15735 rm -rf conftest*
15736 eval "ac_cv_func_$ac_func=no"
15738 rm -f conftest*
15741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15742 echo "$ac_t""yes" 1>&6
15743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15744 cat >> confdefs.h <<EOF
15745 #define $ac_tr_func 1
15748 else
15749 echo "$ac_t""no" 1>&6
15751 done
15757 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
15758 echo "configure:15759: checking for _long double trig functions" >&5
15759 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
15760 echo $ac_n "(cached) $ac_c" 1>&6
15761 else
15764 ac_ext=C
15765 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15766 ac_cpp='$CXXCPP $CPPFLAGS'
15767 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15768 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15769 cross_compiling=$ac_cv_prog_cxx_cross
15771 cat > conftest.$ac_ext <<EOF
15772 #line 15773 "configure"
15773 #include "confdefs.h"
15774 #include <math.h>
15775 int main() {
15776 `for x in _acosl _asinl _atanl \
15777 _cosl _sinl _tanl \
15778 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
15779 ; return 0; }
15781 if { (eval echo configure:15782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15782 rm -rf conftest*
15783 glibcpp_cv_func__long_double_trig_use=yes
15784 else
15785 echo "configure: failed program was:" >&5
15786 cat conftest.$ac_ext >&5
15787 rm -rf conftest*
15788 glibcpp_cv_func__long_double_trig_use=no
15790 rm -f conftest*
15791 ac_ext=c
15792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15793 ac_cpp='$CPP $CPPFLAGS'
15794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15796 cross_compiling=$ac_cv_prog_cc_cross
15800 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
15801 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
15802 for ac_func in _acosl _asinl _atanl \
15803 _cosl _sinl _tanl \
15804 _coshl _sinhl _tanhl
15806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15807 echo "configure:15808: checking for $ac_func" >&5
15808 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15809 echo $ac_n "(cached) $ac_c" 1>&6
15810 else
15811 cat > conftest.$ac_ext <<EOF
15812 #line 15813 "configure"
15813 #include "confdefs.h"
15814 /* System header to define __stub macros and hopefully few prototypes,
15815 which can conflict with char $ac_func(); below. */
15816 #include <assert.h>
15817 /* Override any gcc2 internal prototype to avoid an error. */
15818 /* We use char because int might match the return type of a gcc2
15819 builtin and then its argument prototype would still apply. */
15820 char $ac_func();
15822 int main() {
15824 /* The GNU C library defines this for functions which it implements
15825 to always fail with ENOSYS. Some functions are actually named
15826 something starting with __ and the normal name is an alias. */
15827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15828 choke me
15829 #else
15830 $ac_func();
15831 #endif
15833 ; return 0; }
15835 if { (eval echo configure:15836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15836 rm -rf conftest*
15837 eval "ac_cv_func_$ac_func=yes"
15838 else
15839 echo "configure: failed program was:" >&5
15840 cat conftest.$ac_ext >&5
15841 rm -rf conftest*
15842 eval "ac_cv_func_$ac_func=no"
15844 rm -f conftest*
15847 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15848 echo "$ac_t""yes" 1>&6
15849 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15850 cat >> confdefs.h <<EOF
15851 #define $ac_tr_func 1
15854 else
15855 echo "$ac_t""no" 1>&6
15857 done
15862 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
15863 echo "configure:15864: checking for _long double round functions" >&5
15864 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
15865 echo $ac_n "(cached) $ac_c" 1>&6
15866 else
15869 ac_ext=C
15870 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15871 ac_cpp='$CXXCPP $CPPFLAGS'
15872 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15873 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15874 cross_compiling=$ac_cv_prog_cxx_cross
15876 cat > conftest.$ac_ext <<EOF
15877 #line 15878 "configure"
15878 #include "confdefs.h"
15879 #include <math.h>
15880 int main() {
15881 `for x in _ceill _floorl; do echo "$x (0);"; done`
15882 ; return 0; }
15884 if { (eval echo configure:15885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15885 rm -rf conftest*
15886 glibcpp_cv_func__long_double_round_use=yes
15887 else
15888 echo "configure: failed program was:" >&5
15889 cat conftest.$ac_ext >&5
15890 rm -rf conftest*
15891 glibcpp_cv_func__long_double_round_use=no
15893 rm -f conftest*
15894 ac_ext=c
15895 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15896 ac_cpp='$CPP $CPPFLAGS'
15897 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15898 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15899 cross_compiling=$ac_cv_prog_cc_cross
15903 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
15904 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
15905 for ac_func in _ceill _floorl
15907 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15908 echo "configure:15909: checking for $ac_func" >&5
15909 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15910 echo $ac_n "(cached) $ac_c" 1>&6
15911 else
15912 cat > conftest.$ac_ext <<EOF
15913 #line 15914 "configure"
15914 #include "confdefs.h"
15915 /* System header to define __stub macros and hopefully few prototypes,
15916 which can conflict with char $ac_func(); below. */
15917 #include <assert.h>
15918 /* Override any gcc2 internal prototype to avoid an error. */
15919 /* We use char because int might match the return type of a gcc2
15920 builtin and then its argument prototype would still apply. */
15921 char $ac_func();
15923 int main() {
15925 /* The GNU C library defines this for functions which it implements
15926 to always fail with ENOSYS. Some functions are actually named
15927 something starting with __ and the normal name is an alias. */
15928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15929 choke me
15930 #else
15931 $ac_func();
15932 #endif
15934 ; return 0; }
15936 if { (eval echo configure:15937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15937 rm -rf conftest*
15938 eval "ac_cv_func_$ac_func=yes"
15939 else
15940 echo "configure: failed program was:" >&5
15941 cat conftest.$ac_ext >&5
15942 rm -rf conftest*
15943 eval "ac_cv_func_$ac_func=no"
15945 rm -f conftest*
15948 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15949 echo "$ac_t""yes" 1>&6
15950 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15951 cat >> confdefs.h <<EOF
15952 #define $ac_tr_func 1
15955 else
15956 echo "$ac_t""no" 1>&6
15958 done
15963 LIBS="$ac_save_LIBS"
15964 CXXFLAGS="$ac_save_CXXFLAGS"
15967 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
15968 echo "configure:15969: checking for main in -lm" >&5
15969 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
15970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15971 echo $ac_n "(cached) $ac_c" 1>&6
15972 else
15973 ac_save_LIBS="$LIBS"
15974 LIBS="-lm $LIBS"
15975 cat > conftest.$ac_ext <<EOF
15976 #line 15977 "configure"
15977 #include "confdefs.h"
15979 int main() {
15980 main()
15981 ; return 0; }
15983 if { (eval echo configure:15984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15984 rm -rf conftest*
15985 eval "ac_cv_lib_$ac_lib_var=yes"
15986 else
15987 echo "configure: failed program was:" >&5
15988 cat conftest.$ac_ext >&5
15989 rm -rf conftest*
15990 eval "ac_cv_lib_$ac_lib_var=no"
15992 rm -f conftest*
15993 LIBS="$ac_save_LIBS"
15996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15997 echo "$ac_t""yes" 1>&6
15998 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
15999 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
16000 cat >> confdefs.h <<EOF
16001 #define $ac_tr_lib 1
16004 LIBS="-lm $LIBS"
16006 else
16007 echo "$ac_t""no" 1>&6
16010 for ac_func in nan copysignf
16012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16013 echo "configure:16014: checking for $ac_func" >&5
16014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16015 echo $ac_n "(cached) $ac_c" 1>&6
16016 else
16017 cat > conftest.$ac_ext <<EOF
16018 #line 16019 "configure"
16019 #include "confdefs.h"
16020 /* System header to define __stub macros and hopefully few prototypes,
16021 which can conflict with char $ac_func(); below. */
16022 #include <assert.h>
16023 /* Override any gcc2 internal prototype to avoid an error. */
16024 /* We use char because int might match the return type of a gcc2
16025 builtin and then its argument prototype would still apply. */
16026 char $ac_func();
16028 int main() {
16030 /* The GNU C library defines this for functions which it implements
16031 to always fail with ENOSYS. Some functions are actually named
16032 something starting with __ and the normal name is an alias. */
16033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16034 choke me
16035 #else
16036 $ac_func();
16037 #endif
16039 ; return 0; }
16041 if { (eval echo configure:16042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16042 rm -rf conftest*
16043 eval "ac_cv_func_$ac_func=yes"
16044 else
16045 echo "configure: failed program was:" >&5
16046 cat conftest.$ac_ext >&5
16047 rm -rf conftest*
16048 eval "ac_cv_func_$ac_func=no"
16050 rm -f conftest*
16053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16054 echo "$ac_t""yes" 1>&6
16055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16056 cat >> confdefs.h <<EOF
16057 #define $ac_tr_func 1
16060 else
16061 echo "$ac_t""no" 1>&6
16062 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
16064 done
16068 USE_COMPLEX_LONG_DOUBLE=no
16069 if test x$ac_cv_func_copysignl = x"yes"; then
16070 USE_COMPLEX_LONG_DOUBLE=yes
16071 for ac_func in signbitl
16073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16074 echo "configure:16075: checking for $ac_func" >&5
16075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16076 echo $ac_n "(cached) $ac_c" 1>&6
16077 else
16078 cat > conftest.$ac_ext <<EOF
16079 #line 16080 "configure"
16080 #include "confdefs.h"
16081 /* System header to define __stub macros and hopefully few prototypes,
16082 which can conflict with char $ac_func(); below. */
16083 #include <assert.h>
16084 /* Override any gcc2 internal prototype to avoid an error. */
16085 /* We use char because int might match the return type of a gcc2
16086 builtin and then its argument prototype would still apply. */
16087 char $ac_func();
16089 int main() {
16091 /* The GNU C library defines this for functions which it implements
16092 to always fail with ENOSYS. Some functions are actually named
16093 something starting with __ and the normal name is an alias. */
16094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16095 choke me
16096 #else
16097 $ac_func();
16098 #endif
16100 ; return 0; }
16102 if { (eval echo configure:16103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16103 rm -rf conftest*
16104 eval "ac_cv_func_$ac_func=yes"
16105 else
16106 echo "configure: failed program was:" >&5
16107 cat conftest.$ac_ext >&5
16108 rm -rf conftest*
16109 eval "ac_cv_func_$ac_func=no"
16111 rm -f conftest*
16114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16115 echo "$ac_t""yes" 1>&6
16116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16117 cat >> confdefs.h <<EOF
16118 #define $ac_tr_func 1
16121 else
16122 echo "$ac_t""no" 1>&6
16123 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
16125 done
16134 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
16135 echo "configure:16136: checking for mbstate_t" >&5
16136 cat > conftest.$ac_ext <<EOF
16137 #line 16138 "configure"
16138 #include "confdefs.h"
16139 #include <wchar.h>
16140 int main() {
16141 mbstate_t teststate;
16142 ; return 0; }
16144 if { (eval echo configure:16145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16145 rm -rf conftest*
16146 have_mbstate_t=yes
16147 else
16148 echo "configure: failed program was:" >&5
16149 cat conftest.$ac_ext >&5
16150 rm -rf conftest*
16151 have_mbstate_t=no
16153 rm -f conftest*
16154 echo "$ac_t""$have_mbstate_t" 1>&6
16155 if test x"$have_mbstate_t" = xyes; then
16156 cat >> confdefs.h <<\EOF
16157 #define HAVE_MBSTATE_T 1
16162 for ac_hdr in wchar.h
16164 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16165 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16166 echo "configure:16167: checking for $ac_hdr" >&5
16167 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16168 echo $ac_n "(cached) $ac_c" 1>&6
16169 else
16170 cat > conftest.$ac_ext <<EOF
16171 #line 16172 "configure"
16172 #include "confdefs.h"
16173 #include <$ac_hdr>
16175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16176 { (eval echo configure:16177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16178 if test -z "$ac_err"; then
16179 rm -rf conftest*
16180 eval "ac_cv_header_$ac_safe=yes"
16181 else
16182 echo "$ac_err" >&5
16183 echo "configure: failed program was:" >&5
16184 cat conftest.$ac_ext >&5
16185 rm -rf conftest*
16186 eval "ac_cv_header_$ac_safe=no"
16188 rm -f conftest*
16190 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16191 echo "$ac_t""yes" 1>&6
16192 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16193 cat >> confdefs.h <<EOF
16194 #define $ac_tr_hdr 1
16196 ac_has_wchar_h=yes
16197 else
16198 echo "$ac_t""no" 1>&6
16199 ac_has_wchar_h=no
16201 done
16203 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
16204 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
16205 echo "configure:16206: checking for wctype.h" >&5
16206 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16207 echo $ac_n "(cached) $ac_c" 1>&6
16208 else
16209 cat > conftest.$ac_ext <<EOF
16210 #line 16211 "configure"
16211 #include "confdefs.h"
16212 #include <wctype.h>
16214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16215 { (eval echo configure:16216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16217 if test -z "$ac_err"; then
16218 rm -rf conftest*
16219 eval "ac_cv_header_$ac_safe=yes"
16220 else
16221 echo "$ac_err" >&5
16222 echo "configure: failed program was:" >&5
16223 cat conftest.$ac_ext >&5
16224 rm -rf conftest*
16225 eval "ac_cv_header_$ac_safe=no"
16227 rm -f conftest*
16229 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16230 echo "$ac_t""yes" 1>&6
16231 ac_has_wctype_h=yes
16232 else
16233 echo "$ac_t""no" 1>&6
16234 ac_has_wctype_h=no
16238 if test x"$ac_has_wchar_h" = xyes &&
16239 test x"$ac_has_wctype_h" = xyes &&
16240 test x"$enable_c_mbchar" != xno; then
16242 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
16243 echo "configure:16244: checking for WCHAR_MIN and WCHAR_MAX" >&5
16244 cat > conftest.$ac_ext <<EOF
16245 #line 16246 "configure"
16246 #include "confdefs.h"
16247 #include <wchar.h>
16248 int main() {
16249 int i = WCHAR_MIN; int j = WCHAR_MAX;
16250 ; return 0; }
16252 if { (eval echo configure:16253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16253 rm -rf conftest*
16254 has_wchar_minmax=yes
16255 else
16256 echo "configure: failed program was:" >&5
16257 cat conftest.$ac_ext >&5
16258 rm -rf conftest*
16259 has_wchar_minmax=no
16261 rm -f conftest*
16262 echo "$ac_t""$has_wchar_minmax" 1>&6
16264 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
16265 echo "configure:16266: checking for WEOF" >&5
16266 cat > conftest.$ac_ext <<EOF
16267 #line 16268 "configure"
16268 #include "confdefs.h"
16270 #include <wchar.h>
16271 #include <stddef.h>
16272 int main() {
16273 wint_t i = WEOF;
16274 ; return 0; }
16276 if { (eval echo configure:16277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16277 rm -rf conftest*
16278 has_weof=yes
16279 else
16280 echo "configure: failed program was:" >&5
16281 cat conftest.$ac_ext >&5
16282 rm -rf conftest*
16283 has_weof=no
16285 rm -f conftest*
16286 echo "$ac_t""$has_weof" 1>&6
16288 ac_wfuncs=yes
16289 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
16291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16292 echo "configure:16293: checking for $ac_func" >&5
16293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16294 echo $ac_n "(cached) $ac_c" 1>&6
16295 else
16296 cat > conftest.$ac_ext <<EOF
16297 #line 16298 "configure"
16298 #include "confdefs.h"
16299 /* System header to define __stub macros and hopefully few prototypes,
16300 which can conflict with char $ac_func(); below. */
16301 #include <assert.h>
16302 /* Override any gcc2 internal prototype to avoid an error. */
16303 /* We use char because int might match the return type of a gcc2
16304 builtin and then its argument prototype would still apply. */
16305 char $ac_func();
16307 int main() {
16309 /* The GNU C library defines this for functions which it implements
16310 to always fail with ENOSYS. Some functions are actually named
16311 something starting with __ and the normal name is an alias. */
16312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16313 choke me
16314 #else
16315 $ac_func();
16316 #endif
16318 ; return 0; }
16320 if { (eval echo configure:16321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16321 rm -rf conftest*
16322 eval "ac_cv_func_$ac_func=yes"
16323 else
16324 echo "configure: failed program was:" >&5
16325 cat conftest.$ac_ext >&5
16326 rm -rf conftest*
16327 eval "ac_cv_func_$ac_func=no"
16329 rm -f conftest*
16332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16333 echo "$ac_t""yes" 1>&6
16334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16335 cat >> confdefs.h <<EOF
16336 #define $ac_tr_func 1
16339 else
16340 echo "$ac_t""no" 1>&6
16342 ac_wfuncs=no
16344 done
16347 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
16348 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
16349 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
16350 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
16351 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
16352 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
16354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16355 echo "configure:16356: checking for $ac_func" >&5
16356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16357 echo $ac_n "(cached) $ac_c" 1>&6
16358 else
16359 cat > conftest.$ac_ext <<EOF
16360 #line 16361 "configure"
16361 #include "confdefs.h"
16362 /* System header to define __stub macros and hopefully few prototypes,
16363 which can conflict with char $ac_func(); below. */
16364 #include <assert.h>
16365 /* Override any gcc2 internal prototype to avoid an error. */
16366 /* We use char because int might match the return type of a gcc2
16367 builtin and then its argument prototype would still apply. */
16368 char $ac_func();
16370 int main() {
16372 /* The GNU C library defines this for functions which it implements
16373 to always fail with ENOSYS. Some functions are actually named
16374 something starting with __ and the normal name is an alias. */
16375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16376 choke me
16377 #else
16378 $ac_func();
16379 #endif
16381 ; return 0; }
16383 if { (eval echo configure:16384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16384 rm -rf conftest*
16385 eval "ac_cv_func_$ac_func=yes"
16386 else
16387 echo "configure: failed program was:" >&5
16388 cat conftest.$ac_ext >&5
16389 rm -rf conftest*
16390 eval "ac_cv_func_$ac_func=no"
16392 rm -f conftest*
16395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16396 echo "$ac_t""yes" 1>&6
16397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16398 cat >> confdefs.h <<EOF
16399 #define $ac_tr_func 1
16402 else
16403 echo "$ac_t""no" 1>&6
16405 ac_wfuncs=no
16407 done
16410 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
16411 echo "configure:16412: checking for ISO C99 wchar_t support" >&5
16412 if test x"$has_weof" = xyes &&
16413 test x"$has_wchar_minmax" = xyes &&
16414 test x"$ac_wfuncs" = xyes; then
16415 ac_isoC99_wchar_t=yes
16416 else
16417 ac_isoC99_wchar_t=no
16419 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
16421 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
16422 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
16423 echo "configure:16424: checking for iconv.h" >&5
16424 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16425 echo $ac_n "(cached) $ac_c" 1>&6
16426 else
16427 cat > conftest.$ac_ext <<EOF
16428 #line 16429 "configure"
16429 #include "confdefs.h"
16430 #include <iconv.h>
16432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16433 { (eval echo configure:16434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16435 if test -z "$ac_err"; then
16436 rm -rf conftest*
16437 eval "ac_cv_header_$ac_safe=yes"
16438 else
16439 echo "$ac_err" >&5
16440 echo "configure: failed program was:" >&5
16441 cat conftest.$ac_ext >&5
16442 rm -rf conftest*
16443 eval "ac_cv_header_$ac_safe=no"
16445 rm -f conftest*
16447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16448 echo "$ac_t""yes" 1>&6
16449 ac_has_iconv_h=yes
16450 else
16451 echo "$ac_t""no" 1>&6
16452 ac_has_iconv_h=no
16455 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
16456 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
16457 echo "configure:16458: checking for langinfo.h" >&5
16458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16459 echo $ac_n "(cached) $ac_c" 1>&6
16460 else
16461 cat > conftest.$ac_ext <<EOF
16462 #line 16463 "configure"
16463 #include "confdefs.h"
16464 #include <langinfo.h>
16466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16467 { (eval echo configure:16468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16469 if test -z "$ac_err"; then
16470 rm -rf conftest*
16471 eval "ac_cv_header_$ac_safe=yes"
16472 else
16473 echo "$ac_err" >&5
16474 echo "configure: failed program was:" >&5
16475 cat conftest.$ac_ext >&5
16476 rm -rf conftest*
16477 eval "ac_cv_header_$ac_safe=no"
16479 rm -f conftest*
16481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16482 echo "$ac_t""yes" 1>&6
16483 ac_has_langinfo_h=yes
16484 else
16485 echo "$ac_t""no" 1>&6
16486 ac_has_langinfo_h=no
16490 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
16491 echo "configure:16492: checking for iconv in -liconv" >&5
16492 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
16493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16494 echo $ac_n "(cached) $ac_c" 1>&6
16495 else
16496 ac_save_LIBS="$LIBS"
16497 LIBS="-liconv $LIBS"
16498 cat > conftest.$ac_ext <<EOF
16499 #line 16500 "configure"
16500 #include "confdefs.h"
16501 /* Override any gcc2 internal prototype to avoid an error. */
16502 /* We use char because int might match the return type of a gcc2
16503 builtin and then its argument prototype would still apply. */
16504 char iconv();
16506 int main() {
16507 iconv()
16508 ; return 0; }
16510 if { (eval echo configure:16511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16511 rm -rf conftest*
16512 eval "ac_cv_lib_$ac_lib_var=yes"
16513 else
16514 echo "configure: failed program was:" >&5
16515 cat conftest.$ac_ext >&5
16516 rm -rf conftest*
16517 eval "ac_cv_lib_$ac_lib_var=no"
16519 rm -f conftest*
16520 LIBS="$ac_save_LIBS"
16523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16524 echo "$ac_t""yes" 1>&6
16525 libiconv="-liconv"
16526 else
16527 echo "$ac_t""no" 1>&6
16530 ac_save_LIBS="$LIBS"
16531 LIBS="$LIBS $libiconv"
16533 for ac_func in iconv_open iconv_close iconv nl_langinfo
16535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16536 echo "configure:16537: checking for $ac_func" >&5
16537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16538 echo $ac_n "(cached) $ac_c" 1>&6
16539 else
16540 cat > conftest.$ac_ext <<EOF
16541 #line 16542 "configure"
16542 #include "confdefs.h"
16543 /* System header to define __stub macros and hopefully few prototypes,
16544 which can conflict with char $ac_func(); below. */
16545 #include <assert.h>
16546 /* Override any gcc2 internal prototype to avoid an error. */
16547 /* We use char because int might match the return type of a gcc2
16548 builtin and then its argument prototype would still apply. */
16549 char $ac_func();
16551 int main() {
16553 /* The GNU C library defines this for functions which it implements
16554 to always fail with ENOSYS. Some functions are actually named
16555 something starting with __ and the normal name is an alias. */
16556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16557 choke me
16558 #else
16559 $ac_func();
16560 #endif
16562 ; return 0; }
16564 if { (eval echo configure:16565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16565 rm -rf conftest*
16566 eval "ac_cv_func_$ac_func=yes"
16567 else
16568 echo "configure: failed program was:" >&5
16569 cat conftest.$ac_ext >&5
16570 rm -rf conftest*
16571 eval "ac_cv_func_$ac_func=no"
16573 rm -f conftest*
16576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16577 echo "$ac_t""yes" 1>&6
16578 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16579 cat >> confdefs.h <<EOF
16580 #define $ac_tr_func 1
16583 ac_XPG2funcs=yes
16584 else
16585 echo "$ac_t""no" 1>&6
16586 ac_XPG2funcs=no
16588 done
16591 LIBS="$ac_save_LIBS"
16593 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
16594 echo "configure:16595: checking for XPG2 wchar_t support" >&5
16595 if test x"$ac_has_iconv_h" = xyes &&
16596 test x"$ac_has_langinfo_h" = xyes &&
16597 test x"$ac_XPG2funcs" = xyes; then
16598 ac_XPG2_wchar_t=yes
16599 else
16600 ac_XPG2_wchar_t=no
16602 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
16604 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
16605 echo "configure:16606: checking for enabled wchar_t specializations" >&5
16606 if test x"$ac_isoC99_wchar_t" = xyes &&
16607 test x"$ac_XPG2_wchar_t" = xyes; then
16608 cat >> confdefs.h <<\EOF
16609 #define _GLIBCPP_USE_WCHAR_T 1
16612 echo "$ac_t"""yes"" 1>&6
16613 else
16614 echo "$ac_t"""no"" 1>&6
16616 else
16617 echo "configure: warning: wchar_t support disabled." 1>&2
16621 ac_test_CXXFLAGS="${CXXFLAGS+set}"
16622 ac_save_CXXFLAGS="$CXXFLAGS"
16623 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
16626 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
16627 echo "configure:16628: checking for strtold declaration" >&5
16628 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
16629 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
16630 echo $ac_n "(cached) $ac_c" 1>&6
16631 else
16634 ac_ext=C
16635 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16636 ac_cpp='$CXXCPP $CPPFLAGS'
16637 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16638 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16639 cross_compiling=$ac_cv_prog_cxx_cross
16641 cat > conftest.$ac_ext <<EOF
16642 #line 16643 "configure"
16643 #include "confdefs.h"
16644 #include <stdlib.h>
16645 int main() {
16646 strtold(0, 0);
16647 ; return 0; }
16649 if { (eval echo configure:16650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16650 rm -rf conftest*
16651 glibcpp_cv_func_strtold_use=yes
16652 else
16653 echo "configure: failed program was:" >&5
16654 cat conftest.$ac_ext >&5
16655 rm -rf conftest*
16656 glibcpp_cv_func_strtold_use=no
16658 rm -f conftest*
16659 ac_ext=c
16660 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16661 ac_cpp='$CPP $CPPFLAGS'
16662 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16663 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16664 cross_compiling=$ac_cv_prog_cc_cross
16670 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
16671 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
16672 for ac_func in strtold
16674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16675 echo "configure:16676: checking for $ac_func" >&5
16676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16677 echo $ac_n "(cached) $ac_c" 1>&6
16678 else
16679 cat > conftest.$ac_ext <<EOF
16680 #line 16681 "configure"
16681 #include "confdefs.h"
16682 /* System header to define __stub macros and hopefully few prototypes,
16683 which can conflict with char $ac_func(); below. */
16684 #include <assert.h>
16685 /* Override any gcc2 internal prototype to avoid an error. */
16686 /* We use char because int might match the return type of a gcc2
16687 builtin and then its argument prototype would still apply. */
16688 char $ac_func();
16690 int main() {
16692 /* The GNU C library defines this for functions which it implements
16693 to always fail with ENOSYS. Some functions are actually named
16694 something starting with __ and the normal name is an alias. */
16695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16696 choke me
16697 #else
16698 $ac_func();
16699 #endif
16701 ; return 0; }
16703 if { (eval echo configure:16704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16704 rm -rf conftest*
16705 eval "ac_cv_func_$ac_func=yes"
16706 else
16707 echo "configure: failed program was:" >&5
16708 cat conftest.$ac_ext >&5
16709 rm -rf conftest*
16710 eval "ac_cv_func_$ac_func=no"
16712 rm -f conftest*
16715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16716 echo "$ac_t""yes" 1>&6
16717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16718 cat >> confdefs.h <<EOF
16719 #define $ac_tr_func 1
16722 else
16723 echo "$ac_t""no" 1>&6
16725 done
16729 for ac_func in drand48
16731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16732 echo "configure:16733: checking for $ac_func" >&5
16733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16734 echo $ac_n "(cached) $ac_c" 1>&6
16735 else
16736 cat > conftest.$ac_ext <<EOF
16737 #line 16738 "configure"
16738 #include "confdefs.h"
16739 /* System header to define __stub macros and hopefully few prototypes,
16740 which can conflict with char $ac_func(); below. */
16741 #include <assert.h>
16742 /* Override any gcc2 internal prototype to avoid an error. */
16743 /* We use char because int might match the return type of a gcc2
16744 builtin and then its argument prototype would still apply. */
16745 char $ac_func();
16747 int main() {
16749 /* The GNU C library defines this for functions which it implements
16750 to always fail with ENOSYS. Some functions are actually named
16751 something starting with __ and the normal name is an alias. */
16752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16753 choke me
16754 #else
16755 $ac_func();
16756 #endif
16758 ; return 0; }
16760 if { (eval echo configure:16761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16761 rm -rf conftest*
16762 eval "ac_cv_func_$ac_func=yes"
16763 else
16764 echo "configure: failed program was:" >&5
16765 cat conftest.$ac_ext >&5
16766 rm -rf conftest*
16767 eval "ac_cv_func_$ac_func=no"
16769 rm -f conftest*
16772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16773 echo "$ac_t""yes" 1>&6
16774 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16775 cat >> confdefs.h <<EOF
16776 #define $ac_tr_func 1
16779 else
16780 echo "$ac_t""no" 1>&6
16782 done
16785 CXXFLAGS="$ac_save_CXXFLAGS"
16788 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
16789 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
16790 echo "configure:16791: checking for locale.h" >&5
16791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16792 echo $ac_n "(cached) $ac_c" 1>&6
16793 else
16794 cat > conftest.$ac_ext <<EOF
16795 #line 16796 "configure"
16796 #include "confdefs.h"
16797 #include <locale.h>
16799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16800 { (eval echo configure:16801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16802 if test -z "$ac_err"; then
16803 rm -rf conftest*
16804 eval "ac_cv_header_$ac_safe=yes"
16805 else
16806 echo "$ac_err" >&5
16807 echo "configure: failed program was:" >&5
16808 cat conftest.$ac_ext >&5
16809 rm -rf conftest*
16810 eval "ac_cv_header_$ac_safe=no"
16812 rm -f conftest*
16814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16815 echo "$ac_t""yes" 1>&6
16817 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16818 echo "configure:16819: checking for LC_MESSAGES" >&5
16819 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16820 echo $ac_n "(cached) $ac_c" 1>&6
16821 else
16822 cat > conftest.$ac_ext <<EOF
16823 #line 16824 "configure"
16824 #include "confdefs.h"
16825 #include <locale.h>
16826 int main() {
16827 return LC_MESSAGES
16828 ; return 0; }
16830 if { (eval echo configure:16831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16831 rm -rf conftest*
16832 ac_cv_val_LC_MESSAGES=yes
16833 else
16834 echo "configure: failed program was:" >&5
16835 cat conftest.$ac_ext >&5
16836 rm -rf conftest*
16837 ac_cv_val_LC_MESSAGES=no
16839 rm -f conftest*
16842 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16843 if test $ac_cv_val_LC_MESSAGES = yes; then
16844 cat >> confdefs.h <<\EOF
16845 #define HAVE_LC_MESSAGES 1
16850 else
16851 echo "$ac_t""no" 1>&6
16856 cat > conftest.$ac_ext <<EOF
16857 #line 16858 "configure"
16858 #include "confdefs.h"
16860 #include <setjmp.h>
16862 int main() {
16863 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16864 ; return 0; }
16866 if { (eval echo configure:16867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16867 rm -rf conftest*
16868 cat >> confdefs.h <<\EOF
16869 #define HAVE_SIGSETJMP 1
16872 else
16873 echo "configure: failed program was:" >&5
16874 cat conftest.$ac_ext >&5
16876 rm -f conftest*
16878 for ac_hdr in unistd.h
16880 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16881 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16882 echo "configure:16883: checking for $ac_hdr" >&5
16883 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16884 echo $ac_n "(cached) $ac_c" 1>&6
16885 else
16886 cat > conftest.$ac_ext <<EOF
16887 #line 16888 "configure"
16888 #include "confdefs.h"
16889 #include <$ac_hdr>
16891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16892 { (eval echo configure:16893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16894 if test -z "$ac_err"; then
16895 rm -rf conftest*
16896 eval "ac_cv_header_$ac_safe=yes"
16897 else
16898 echo "$ac_err" >&5
16899 echo "configure: failed program was:" >&5
16900 cat conftest.$ac_ext >&5
16901 rm -rf conftest*
16902 eval "ac_cv_header_$ac_safe=no"
16904 rm -f conftest*
16906 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16907 echo "$ac_t""yes" 1>&6
16908 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16909 cat >> confdefs.h <<EOF
16910 #define $ac_tr_hdr 1
16913 else
16914 echo "$ac_t""no" 1>&6
16916 done
16918 for ac_func in getpagesize
16920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16921 echo "configure:16922: checking for $ac_func" >&5
16922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16923 echo $ac_n "(cached) $ac_c" 1>&6
16924 else
16925 cat > conftest.$ac_ext <<EOF
16926 #line 16927 "configure"
16927 #include "confdefs.h"
16928 /* System header to define __stub macros and hopefully few prototypes,
16929 which can conflict with char $ac_func(); below. */
16930 #include <assert.h>
16931 /* Override any gcc2 internal prototype to avoid an error. */
16932 /* We use char because int might match the return type of a gcc2
16933 builtin and then its argument prototype would still apply. */
16934 char $ac_func();
16936 int main() {
16938 /* The GNU C library defines this for functions which it implements
16939 to always fail with ENOSYS. Some functions are actually named
16940 something starting with __ and the normal name is an alias. */
16941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16942 choke me
16943 #else
16944 $ac_func();
16945 #endif
16947 ; return 0; }
16949 if { (eval echo configure:16950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16950 rm -rf conftest*
16951 eval "ac_cv_func_$ac_func=yes"
16952 else
16953 echo "configure: failed program was:" >&5
16954 cat conftest.$ac_ext >&5
16955 rm -rf conftest*
16956 eval "ac_cv_func_$ac_func=no"
16958 rm -f conftest*
16961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16962 echo "$ac_t""yes" 1>&6
16963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16964 cat >> confdefs.h <<EOF
16965 #define $ac_tr_func 1
16968 else
16969 echo "$ac_t""no" 1>&6
16971 done
16973 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
16974 echo "configure:16975: checking for working mmap" >&5
16975 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
16976 echo $ac_n "(cached) $ac_c" 1>&6
16977 else
16978 if test "$cross_compiling" = yes; then
16979 ac_cv_func_mmap_fixed_mapped=no
16980 else
16981 cat > conftest.$ac_ext <<EOF
16982 #line 16983 "configure"
16983 #include "confdefs.h"
16985 /* Thanks to Mike Haertel and Jim Avera for this test.
16986 Here is a matrix of mmap possibilities:
16987 mmap private not fixed
16988 mmap private fixed at somewhere currently unmapped
16989 mmap private fixed at somewhere already mapped
16990 mmap shared not fixed
16991 mmap shared fixed at somewhere currently unmapped
16992 mmap shared fixed at somewhere already mapped
16993 For private mappings, we should verify that changes cannot be read()
16994 back from the file, nor mmap's back from the file at a different
16995 address. (There have been systems where private was not correctly
16996 implemented like the infamous i386 svr4.0, and systems where the
16997 VM page cache was not coherent with the filesystem buffer cache
16998 like early versions of FreeBSD and possibly contemporary NetBSD.)
16999 For shared mappings, we should conversely verify that changes get
17000 propogated back to all the places they're supposed to be.
17002 Grep wants private fixed already mapped.
17003 The main things grep needs to know about mmap are:
17004 * does it exist and is it safe to write into the mmap'd area
17005 * how to use it (BSD variants) */
17006 #include <sys/types.h>
17007 #include <fcntl.h>
17008 #include <sys/mman.h>
17010 /* This mess was copied from the GNU getpagesize.h. */
17011 #ifndef HAVE_GETPAGESIZE
17012 # ifdef HAVE_UNISTD_H
17013 # include <unistd.h>
17014 # endif
17016 /* Assume that all systems that can run configure have sys/param.h. */
17017 # ifndef HAVE_SYS_PARAM_H
17018 # define HAVE_SYS_PARAM_H 1
17019 # endif
17021 # ifdef _SC_PAGESIZE
17022 # define getpagesize() sysconf(_SC_PAGESIZE)
17023 # else /* no _SC_PAGESIZE */
17024 # ifdef HAVE_SYS_PARAM_H
17025 # include <sys/param.h>
17026 # ifdef EXEC_PAGESIZE
17027 # define getpagesize() EXEC_PAGESIZE
17028 # else /* no EXEC_PAGESIZE */
17029 # ifdef NBPG
17030 # define getpagesize() NBPG * CLSIZE
17031 # ifndef CLSIZE
17032 # define CLSIZE 1
17033 # endif /* no CLSIZE */
17034 # else /* no NBPG */
17035 # ifdef NBPC
17036 # define getpagesize() NBPC
17037 # else /* no NBPC */
17038 # ifdef PAGESIZE
17039 # define getpagesize() PAGESIZE
17040 # endif /* PAGESIZE */
17041 # endif /* no NBPC */
17042 # endif /* no NBPG */
17043 # endif /* no EXEC_PAGESIZE */
17044 # else /* no HAVE_SYS_PARAM_H */
17045 # define getpagesize() 8192 /* punt totally */
17046 # endif /* no HAVE_SYS_PARAM_H */
17047 # endif /* no _SC_PAGESIZE */
17049 #endif /* no HAVE_GETPAGESIZE */
17051 #ifdef __cplusplus
17052 extern "C" { void *malloc(unsigned); }
17053 #else
17054 char *malloc();
17055 #endif
17058 main()
17060 char *data, *data2, *data3;
17061 int i, pagesize;
17062 int fd;
17064 pagesize = getpagesize();
17067 * First, make a file with some known garbage in it.
17069 data = malloc(pagesize);
17070 if (!data)
17071 exit(1);
17072 for (i = 0; i < pagesize; ++i)
17073 *(data + i) = rand();
17074 umask(0);
17075 fd = creat("conftestmmap", 0600);
17076 if (fd < 0)
17077 exit(1);
17078 if (write(fd, data, pagesize) != pagesize)
17079 exit(1);
17080 close(fd);
17083 * Next, try to mmap the file at a fixed address which
17084 * already has something else allocated at it. If we can,
17085 * also make sure that we see the same garbage.
17087 fd = open("conftestmmap", O_RDWR);
17088 if (fd < 0)
17089 exit(1);
17090 data2 = malloc(2 * pagesize);
17091 if (!data2)
17092 exit(1);
17093 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
17094 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
17095 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17096 exit(1);
17097 for (i = 0; i < pagesize; ++i)
17098 if (*(data + i) != *(data2 + i))
17099 exit(1);
17102 * Finally, make sure that changes to the mapped area
17103 * do not percolate back to the file as seen by read().
17104 * (This is a bug on some variants of i386 svr4.0.)
17106 for (i = 0; i < pagesize; ++i)
17107 *(data2 + i) = *(data2 + i) + 1;
17108 data3 = malloc(pagesize);
17109 if (!data3)
17110 exit(1);
17111 if (read(fd, data3, pagesize) != pagesize)
17112 exit(1);
17113 for (i = 0; i < pagesize; ++i)
17114 if (*(data + i) != *(data3 + i))
17115 exit(1);
17116 close(fd);
17117 unlink("conftestmmap");
17118 exit(0);
17122 if { (eval echo configure:17123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
17123 then
17124 ac_cv_func_mmap_fixed_mapped=yes
17125 else
17126 echo "configure: failed program was:" >&5
17127 cat conftest.$ac_ext >&5
17128 rm -fr conftest*
17129 ac_cv_func_mmap_fixed_mapped=no
17131 rm -fr conftest*
17136 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
17137 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17138 cat >> confdefs.h <<\EOF
17139 #define HAVE_MMAP 1
17145 # Establish limits on memory usage during 'make check'
17148 setrlimit_have_headers=yes
17149 for ac_hdr in sys/resource.h unistd.h
17151 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17152 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17153 echo "configure:17154: checking for $ac_hdr" >&5
17154 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17155 echo $ac_n "(cached) $ac_c" 1>&6
17156 else
17157 cat > conftest.$ac_ext <<EOF
17158 #line 17159 "configure"
17159 #include "confdefs.h"
17160 #include <$ac_hdr>
17162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17163 { (eval echo configure:17164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17165 if test -z "$ac_err"; then
17166 rm -rf conftest*
17167 eval "ac_cv_header_$ac_safe=yes"
17168 else
17169 echo "$ac_err" >&5
17170 echo "configure: failed program was:" >&5
17171 cat conftest.$ac_ext >&5
17172 rm -rf conftest*
17173 eval "ac_cv_header_$ac_safe=no"
17175 rm -f conftest*
17177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17178 echo "$ac_t""yes" 1>&6
17179 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17180 cat >> confdefs.h <<EOF
17181 #define $ac_tr_hdr 1
17184 else
17185 echo "$ac_t""no" 1>&6
17186 setrlimit_have_headers=no
17188 done
17190 # If don't have the headers, then we can't run the tests now, and we
17191 # won't be seeing any of these during testsuite compilation.
17192 if test $setrlimit_have_headers = yes; then
17193 # Can't do these in a loop, else the resulting syntax is wrong.
17195 cat > conftest.$ac_ext <<EOF
17196 #line 17197 "configure"
17197 #include "confdefs.h"
17198 #include <sys/resource.h>
17199 #include <unistd.h>
17201 int main() {
17202 int f = RLIMIT_DATA ;
17203 ; return 0; }
17205 if { (eval echo configure:17206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17206 rm -rf conftest*
17207 glibcpp_mresult=1
17208 else
17209 echo "configure: failed program was:" >&5
17210 cat conftest.$ac_ext >&5
17211 rm -rf conftest*
17212 glibcpp_mresult=0
17214 rm -f conftest*
17215 cat >> confdefs.h <<EOF
17216 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
17221 cat > conftest.$ac_ext <<EOF
17222 #line 17223 "configure"
17223 #include "confdefs.h"
17224 #include <sys/resource.h>
17225 #include <unistd.h>
17227 int main() {
17228 int f = RLIMIT_RSS ;
17229 ; return 0; }
17231 if { (eval echo configure:17232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17232 rm -rf conftest*
17233 glibcpp_mresult=1
17234 else
17235 echo "configure: failed program was:" >&5
17236 cat conftest.$ac_ext >&5
17237 rm -rf conftest*
17238 glibcpp_mresult=0
17240 rm -f conftest*
17241 cat >> confdefs.h <<EOF
17242 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
17247 cat > conftest.$ac_ext <<EOF
17248 #line 17249 "configure"
17249 #include "confdefs.h"
17250 #include <sys/resource.h>
17251 #include <unistd.h>
17253 int main() {
17254 int f = RLIMIT_VMEM ;
17255 ; return 0; }
17257 if { (eval echo configure:17258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17258 rm -rf conftest*
17259 glibcpp_mresult=1
17260 else
17261 echo "configure: failed program was:" >&5
17262 cat conftest.$ac_ext >&5
17263 rm -rf conftest*
17264 glibcpp_mresult=0
17266 rm -f conftest*
17267 cat >> confdefs.h <<EOF
17268 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
17273 cat > conftest.$ac_ext <<EOF
17274 #line 17275 "configure"
17275 #include "confdefs.h"
17276 #include <sys/resource.h>
17277 #include <unistd.h>
17279 int main() {
17280 int f = RLIMIT_AS ;
17281 ; return 0; }
17283 if { (eval echo configure:17284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17284 rm -rf conftest*
17285 glibcpp_mresult=1
17286 else
17287 echo "configure: failed program was:" >&5
17288 cat conftest.$ac_ext >&5
17289 rm -rf conftest*
17290 glibcpp_mresult=0
17292 rm -f conftest*
17293 cat >> confdefs.h <<EOF
17294 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
17299 # Check for rlimit, setrlimit.
17300 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
17301 echo $ac_n "(cached) $ac_c" 1>&6
17302 else
17304 cat > conftest.$ac_ext <<EOF
17305 #line 17306 "configure"
17306 #include "confdefs.h"
17307 #include <sys/resource.h>
17308 #include <unistd.h>
17310 int main() {
17311 struct rlimit r; setrlimit(0, &r);
17312 ; return 0; }
17314 if { (eval echo configure:17315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17315 rm -rf conftest*
17316 ac_setrlimit=yes
17317 else
17318 echo "configure: failed program was:" >&5
17319 cat conftest.$ac_ext >&5
17320 rm -rf conftest*
17321 ac_setrlimit=no
17323 rm -f conftest*
17329 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
17330 echo "configure:17331: checking for testsuite memory limit support" >&5
17331 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
17332 ac_mem_limits=yes
17333 cat >> confdefs.h <<\EOF
17334 #define _GLIBCPP_MEM_LIMITS 1
17337 else
17338 ac_mem_limits=no
17340 echo "$ac_t""$ac_mem_limits" 1>&6
17346 # Propagate the target-specific source directories through the build chain.
17347 OS_INC_SRCDIR=$os_include_dir/bits
17348 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
17349 LIMITS_INC_SRCDIR=$LIMITSH/bits
17354 # Set up cross-compile flags
17358 if test "$CANADIAN" = yes; then
17359 CANADIAN_TRUE=
17360 CANADIAN_FALSE='#'
17361 else
17362 CANADIAN_TRUE='#'
17363 CANADIAN_FALSE=
17366 cat > confcache <<\EOF
17367 # This file is a shell script that caches the results of configure
17368 # tests run on this system so they can be shared between configure
17369 # scripts and configure runs. It is not useful on other systems.
17370 # If it contains results you don't want to keep, you may remove or edit it.
17372 # By default, configure uses ./config.cache as the cache file,
17373 # creating it if it does not exist already. You can give configure
17374 # the --cache-file=FILE option to use a different cache file; that is
17375 # what configure does when it calls configure scripts in
17376 # subdirectories, so they share the cache.
17377 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17378 # config.status only pays attention to the cache file if you give it the
17379 # --recheck option to rerun configure.
17382 # The following way of writing the cache mishandles newlines in values,
17383 # but we know of no workaround that is simple, portable, and efficient.
17384 # So, don't put newlines in cache variables' values.
17385 # Ultrix sh set writes to stderr and can't be redirected directly,
17386 # and sets the high bit in the cache file unless we assign to the vars.
17387 (set) 2>&1 |
17388 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17389 *ac_space=\ *)
17390 # `set' does not quote correctly, so add quotes (double-quote substitution
17391 # turns \\\\ into \\, and sed turns \\ into \).
17392 sed -n \
17393 -e "s/'/'\\\\''/g" \
17394 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17397 # `set' quotes correctly as required by POSIX, so do not add quotes.
17398 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17400 esac >> confcache
17401 if cmp -s $cache_file confcache; then
17403 else
17404 if test -w $cache_file; then
17405 echo "updating cache $cache_file"
17406 cat confcache > $cache_file
17407 else
17408 echo "not updating unwritable cache $cache_file"
17411 rm -f confcache
17414 if test "${multilib}" = "yes"; then
17415 multilib_arg="--enable-multilib"
17416 else
17417 multilib_arg=
17420 # Needed so that g++ can find the correct include subdir automatically.
17421 INTERFACE=v3
17423 # Export all the install information
17425 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
17426 # exported correctly in GLIBCPP_CONFIGURE.
17427 glibcpp_toolexecdir=no
17428 glibcpp_toolexeclibdir=no
17429 glibcpp_prefixdir=${prefix}
17431 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
17432 echo "configure:17433: checking for interface version number" >&5
17433 libstdcxx_interface=$INTERFACE
17434 echo "$ac_t""$libstdcxx_interface" 1>&6
17436 # Process the option --with-gxx-include-dir=<path to include-files directory>
17437 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
17438 echo "configure:17439: checking for --with-gxx-include-dir" >&5
17439 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
17440 if test "${with_gxx_include_dir+set}" = set; then
17441 withval="$with_gxx_include_dir"
17442 case "${withval}" in
17443 yes)
17444 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
17445 gxx_include_dir=no
17448 gxx_include_dir=no
17451 gxx_include_dir=${withval}
17453 esac
17454 else
17455 gxx_include_dir=no
17458 echo "$ac_t""$gxx_include_dir" 1>&6
17460 # Process the option "--enable-version-specific-runtime-libs"
17461 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
17462 echo "configure:17463: checking for --enable-version-specific-runtime-libs" >&5
17463 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
17464 if test "${enable_version_specific_runtime_libs+set}" = set; then
17465 enableval="$enable_version_specific_runtime_libs"
17466 case "$enableval" in
17467 yes) version_specific_libs=yes ;;
17468 no) version_specific_libs=no ;;
17469 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
17470 esac
17471 else
17472 version_specific_libs=no
17474 # Option set, now we can test it.
17475 echo "$ac_t""$version_specific_libs" 1>&6
17477 if test $version_specific_libs = yes; then
17478 # Need the gcc compiler version to know where to install libraries
17479 # and header files if --enable-version-specific-runtime-libs option
17480 # is selected.
17481 gcc_version_trigger=${srcdir}/../gcc/version.c
17482 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
17483 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
17484 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
17485 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
17486 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
17489 # Default case for install directory for include files.
17490 if test $version_specific_libs = no &&
17491 test $gxx_include_dir = no; then
17492 gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
17495 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
17496 # Install a library built with a cross compiler in tooldir, not libdir.
17497 if test x"$glibcpp_toolexecdir" = x"no"; then
17498 if test -n "$with_cross_host" &&
17499 test x"$with_cross_host" != x"no"; then
17500 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
17501 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
17502 else
17503 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
17504 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
17508 echo $ac_n "checking for install location""... $ac_c" 1>&6
17509 echo "configure:17510: checking for install location" >&5
17510 echo "$ac_t""$gxx_include_dir" 1>&6
17518 # Export all the include and flag information to makefiles.
17520 # Root level of the build directory include sources.
17521 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
17523 # Passed down for canadian crosses.
17524 if test x"$CANADIAN" = xyes; then
17525 TOPLEVEL_INCLUDES='-I$(includedir)'
17528 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
17530 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
17532 if test x"$need_libio" = xyes; then
17533 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
17537 # Now, export this to all the little Makefiles....
17544 # Optimization flags that are probably a good idea for thrill-seekers. Just
17545 # uncomment the lines below and make, everything else is ready to go...
17546 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
17547 OPTIMIZE_CXXFLAGS=
17550 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
17554 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
17555 grep "enable shared" > /dev/null; then
17556 LIBSUPCXX_PICFLAGS=-prefer-pic
17557 else
17558 LIBSUPCXX_PICFLAGS=
17562 # Generate the various Makefiles, include files, and scripts.
17563 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
17564 # and libsupc++/Makefile.am so that multilib installs will end up
17565 # installed in the correct place. To work around this not being passed
17566 # down from config-ml.in -> top_srcdir/Makefile.am ->
17567 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
17568 trap '' 1 2 15
17569 cat > confcache <<\EOF
17570 # This file is a shell script that caches the results of configure
17571 # tests run on this system so they can be shared between configure
17572 # scripts and configure runs. It is not useful on other systems.
17573 # If it contains results you don't want to keep, you may remove or edit it.
17575 # By default, configure uses ./config.cache as the cache file,
17576 # creating it if it does not exist already. You can give configure
17577 # the --cache-file=FILE option to use a different cache file; that is
17578 # what configure does when it calls configure scripts in
17579 # subdirectories, so they share the cache.
17580 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17581 # config.status only pays attention to the cache file if you give it the
17582 # --recheck option to rerun configure.
17585 # The following way of writing the cache mishandles newlines in values,
17586 # but we know of no workaround that is simple, portable, and efficient.
17587 # So, don't put newlines in cache variables' values.
17588 # Ultrix sh set writes to stderr and can't be redirected directly,
17589 # and sets the high bit in the cache file unless we assign to the vars.
17590 (set) 2>&1 |
17591 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17592 *ac_space=\ *)
17593 # `set' does not quote correctly, so add quotes (double-quote substitution
17594 # turns \\\\ into \\, and sed turns \\ into \).
17595 sed -n \
17596 -e "s/'/'\\\\''/g" \
17597 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17600 # `set' quotes correctly as required by POSIX, so do not add quotes.
17601 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17603 esac >> confcache
17604 if cmp -s $cache_file confcache; then
17606 else
17607 if test -w $cache_file; then
17608 echo "updating cache $cache_file"
17609 cat confcache > $cache_file
17610 else
17611 echo "not updating unwritable cache $cache_file"
17614 rm -f confcache
17616 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17618 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17619 # Let make expand exec_prefix.
17620 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17622 # Any assignment to VPATH causes Sun make to only execute
17623 # the first set of double-colon rules, so remove it if not needed.
17624 # If there is a colon in the path, we need to keep it.
17625 if test "x$srcdir" = x.; then
17626 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17629 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17631 DEFS=-DHAVE_CONFIG_H
17633 # Without the "./", some shells look in PATH for config.status.
17634 : ${CONFIG_STATUS=./config.status}
17636 echo creating $CONFIG_STATUS
17637 rm -f $CONFIG_STATUS
17638 cat > $CONFIG_STATUS <<EOF
17639 #! /bin/sh
17640 # Generated automatically by configure.
17641 # Run this file to recreate the current configuration.
17642 # This directory was configured as follows,
17643 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17645 # $0 $ac_configure_args
17647 # Compiler output produced by configure, useful for debugging
17648 # configure, is in ./config.log if it exists.
17650 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17651 for ac_option
17653 case "\$ac_option" in
17654 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17655 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17656 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17657 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17658 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17659 exit 0 ;;
17660 -help | --help | --hel | --he | --h)
17661 echo "\$ac_cs_usage"; exit 0 ;;
17662 *) echo "\$ac_cs_usage"; exit 1 ;;
17663 esac
17664 done
17666 ac_given_srcdir=$srcdir
17667 ac_given_INSTALL="$INSTALL"
17669 trap 'rm -fr `echo "Makefile \
17670 include/Makefile src/Makefile \
17671 libmath/Makefile libio/Makefile libsupc++/Makefile \
17672 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17674 cat >> $CONFIG_STATUS <<EOF
17676 # Protect against being on the right side of a sed subst in config.status.
17677 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17678 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17679 $ac_vpsub
17680 $extrasub
17681 s%@SHELL@%$SHELL%g
17682 s%@CFLAGS@%$CFLAGS%g
17683 s%@CPPFLAGS@%$CPPFLAGS%g
17684 s%@CXXFLAGS@%$CXXFLAGS%g
17685 s%@FFLAGS@%$FFLAGS%g
17686 s%@DEFS@%$DEFS%g
17687 s%@LDFLAGS@%$LDFLAGS%g
17688 s%@LIBS@%$LIBS%g
17689 s%@exec_prefix@%$exec_prefix%g
17690 s%@prefix@%$prefix%g
17691 s%@program_transform_name@%$program_transform_name%g
17692 s%@bindir@%$bindir%g
17693 s%@sbindir@%$sbindir%g
17694 s%@libexecdir@%$libexecdir%g
17695 s%@datadir@%$datadir%g
17696 s%@sysconfdir@%$sysconfdir%g
17697 s%@sharedstatedir@%$sharedstatedir%g
17698 s%@localstatedir@%$localstatedir%g
17699 s%@libdir@%$libdir%g
17700 s%@includedir@%$includedir%g
17701 s%@oldincludedir@%$oldincludedir%g
17702 s%@infodir@%$infodir%g
17703 s%@mandir@%$mandir%g
17704 s%@PACKAGE@%$PACKAGE%g
17705 s%@release_VERSION@%$release_VERSION%g
17706 s%@libtool_VERSION@%$libtool_VERSION%g
17707 s%@host@%$host%g
17708 s%@host_alias@%$host_alias%g
17709 s%@host_cpu@%$host_cpu%g
17710 s%@host_vendor@%$host_vendor%g
17711 s%@host_os@%$host_os%g
17712 s%@target@%$target%g
17713 s%@target_alias@%$target_alias%g
17714 s%@target_cpu@%$target_cpu%g
17715 s%@target_vendor@%$target_vendor%g
17716 s%@target_os@%$target_os%g
17717 s%@build@%$build%g
17718 s%@build_alias@%$build_alias%g
17719 s%@build_cpu@%$build_cpu%g
17720 s%@build_vendor@%$build_vendor%g
17721 s%@build_os@%$build_os%g
17722 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17723 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17724 s%@INSTALL_DATA@%$INSTALL_DATA%g
17725 s%@VERSION@%$VERSION%g
17726 s%@ACLOCAL@%$ACLOCAL%g
17727 s%@AUTOCONF@%$AUTOCONF%g
17728 s%@AUTOMAKE@%$AUTOMAKE%g
17729 s%@AUTOHEADER@%$AUTOHEADER%g
17730 s%@MAKEINFO@%$MAKEINFO%g
17731 s%@SET_MAKE@%$SET_MAKE%g
17732 s%@toplevel_srcdir@%$toplevel_srcdir%g
17733 s%@glibcpp_builddir@%$glibcpp_builddir%g
17734 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
17735 s%@LN_S@%$LN_S%g
17736 s%@glibcpp_basedir@%$glibcpp_basedir%g
17737 s%@CC@%$CC%g
17738 s%@glibcpp_CXX@%$glibcpp_CXX%g
17739 s%@AS@%$AS%g
17740 s%@AR@%$AR%g
17741 s%@RANLIB@%$RANLIB%g
17742 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
17743 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
17744 s%@MAINT@%$MAINT%g
17745 s%@EXEEXT@%$EXEEXT%g
17746 s%@OBJEXT@%$OBJEXT%g
17747 s%@STRIP@%$STRIP%g
17748 s%@LIBTOOL@%$LIBTOOL%g
17749 s%@CXXCPP@%$CXXCPP%g
17750 s%@enable_shared@%$enable_shared%g
17751 s%@enable_static@%$enable_static%g
17752 s%@ifGNUmake@%$ifGNUmake%g
17753 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
17754 s%@CPP@%$CPP%g
17755 s%@CSTDIO_H@%$CSTDIO_H%g
17756 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
17757 s%@CCODECVT_C@%$CCODECVT_C%g
17758 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
17759 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
17760 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
17761 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
17762 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
17763 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
17764 s%@libio_la@%$libio_la%g
17765 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
17766 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
17767 s%@glibcpp_localedir@%$glibcpp_localedir%g
17768 s%@USE_NLS@%$USE_NLS%g
17769 s%@CLOCALE_H@%$CLOCALE_H%g
17770 s%@CCODECVT_H@%$CCODECVT_H%g
17771 s%@CMESSAGES_H@%$CMESSAGES_H%g
17772 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
17773 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
17774 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
17775 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
17776 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
17777 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
17778 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
17779 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
17780 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
17781 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
17782 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
17783 s%@WERROR@%$WERROR%g
17784 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
17785 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
17786 s%@LIMITS_INC_SRCDIR@%$LIMITS_INC_SRCDIR%g
17787 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
17788 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
17789 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
17790 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
17791 s%@gxx_include_dir@%$gxx_include_dir%g
17792 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
17793 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
17794 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
17795 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
17796 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
17797 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
17798 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
17799 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
17800 s%@WARN_FLAGS@%$WARN_FLAGS%g
17801 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
17803 CEOF
17806 cat >> $CONFIG_STATUS <<\EOF
17808 # Split the substitutions into bite-sized pieces for seds with
17809 # small command number limits, like on Digital OSF/1 and HP-UX.
17810 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17811 ac_file=1 # Number of current file.
17812 ac_beg=1 # First line for current file.
17813 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17814 ac_more_lines=:
17815 ac_sed_cmds=""
17816 while $ac_more_lines; do
17817 if test $ac_beg -gt 1; then
17818 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17819 else
17820 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17822 if test ! -s conftest.s$ac_file; then
17823 ac_more_lines=false
17824 rm -f conftest.s$ac_file
17825 else
17826 if test -z "$ac_sed_cmds"; then
17827 ac_sed_cmds="sed -f conftest.s$ac_file"
17828 else
17829 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17831 ac_file=`expr $ac_file + 1`
17832 ac_beg=$ac_end
17833 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17835 done
17836 if test -z "$ac_sed_cmds"; then
17837 ac_sed_cmds=cat
17841 cat >> $CONFIG_STATUS <<EOF
17843 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
17844 include/Makefile src/Makefile \
17845 libmath/Makefile libio/Makefile libsupc++/Makefile \
17846 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
17848 cat >> $CONFIG_STATUS <<\EOF
17849 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17850 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17851 case "$ac_file" in
17852 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17853 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17854 *) ac_file_in="${ac_file}.in" ;;
17855 esac
17857 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17859 # Remove last slash and all that follows it. Not all systems have dirname.
17860 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17861 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17862 # The file is in a subdirectory.
17863 test ! -d "$ac_dir" && mkdir "$ac_dir"
17864 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17865 # A "../" for each directory in $ac_dir_suffix.
17866 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17867 else
17868 ac_dir_suffix= ac_dots=
17871 case "$ac_given_srcdir" in
17872 .) srcdir=.
17873 if test -z "$ac_dots"; then top_srcdir=.
17874 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17875 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17876 *) # Relative path.
17877 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17878 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17879 esac
17881 case "$ac_given_INSTALL" in
17882 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17883 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17884 esac
17886 echo creating "$ac_file"
17887 rm -f "$ac_file"
17888 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17889 case "$ac_file" in
17890 *Makefile*) ac_comsub="1i\\
17891 # $configure_input" ;;
17892 *) ac_comsub= ;;
17893 esac
17895 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17896 sed -e "$ac_comsub
17897 s%@configure_input@%$configure_input%g
17898 s%@srcdir@%$srcdir%g
17899 s%@top_srcdir@%$top_srcdir%g
17900 s%@INSTALL@%$INSTALL%g
17901 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17902 fi; done
17903 rm -f conftest.s*
17905 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17906 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17908 # ac_d sets the value in "#define NAME VALUE" lines.
17909 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17910 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17911 ac_dC='\3'
17912 ac_dD='%g'
17913 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17914 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17915 ac_uB='\([ ]\)%\1#\2define\3'
17916 ac_uC=' '
17917 ac_uD='\4%g'
17918 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17919 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17920 ac_eB='$%\1#\2define\3'
17921 ac_eC=' '
17922 ac_eD='%g'
17924 if test "${CONFIG_HEADERS+set}" != set; then
17926 cat >> $CONFIG_STATUS <<EOF
17927 CONFIG_HEADERS="config.h"
17929 cat >> $CONFIG_STATUS <<\EOF
17931 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17932 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17933 case "$ac_file" in
17934 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17935 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17936 *) ac_file_in="${ac_file}.in" ;;
17937 esac
17939 echo creating $ac_file
17941 rm -f conftest.frag conftest.in conftest.out
17942 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17943 cat $ac_file_inputs > conftest.in
17947 # Transform confdefs.h into a sed script conftest.vals that substitutes
17948 # the proper values into config.h.in to produce config.h. And first:
17949 # Protect against being on the right side of a sed subst in config.status.
17950 # Protect against being in an unquoted here document in config.status.
17951 rm -f conftest.vals
17952 cat > conftest.hdr <<\EOF
17953 s/[\\&%]/\\&/g
17954 s%[\\$`]%\\&%g
17955 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17956 s%ac_d%ac_u%gp
17957 s%ac_u%ac_e%gp
17959 sed -n -f conftest.hdr confdefs.h > conftest.vals
17960 rm -f conftest.hdr
17962 # This sed command replaces #undef with comments. This is necessary, for
17963 # example, in the case of _POSIX_SOURCE, which is predefined and required
17964 # on some systems where configure will not decide to define it.
17965 cat >> conftest.vals <<\EOF
17966 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17969 # Break up conftest.vals because some shells have a limit on
17970 # the size of here documents, and old seds have small limits too.
17972 rm -f conftest.tail
17973 while :
17975 ac_lines=`grep -c . conftest.vals`
17976 # grep -c gives empty output for an empty file on some AIX systems.
17977 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17978 # Write a limited-size here document to conftest.frag.
17979 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17980 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17981 echo 'CEOF
17982 sed -f conftest.frag conftest.in > conftest.out
17983 rm -f conftest.in
17984 mv conftest.out conftest.in
17985 ' >> $CONFIG_STATUS
17986 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17987 rm -f conftest.vals
17988 mv conftest.tail conftest.vals
17989 done
17990 rm -f conftest.vals
17992 cat >> $CONFIG_STATUS <<\EOF
17993 rm -f conftest.frag conftest.h
17994 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17995 cat conftest.in >> conftest.h
17996 rm -f conftest.in
17997 if cmp -s $ac_file conftest.h 2>/dev/null; then
17998 echo "$ac_file is unchanged"
17999 rm -f conftest.h
18000 else
18001 # Remove last slash and all that follows it. Not all systems have dirname.
18002 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18003 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18004 # The file is in a subdirectory.
18005 test ! -d "$ac_dir" && mkdir "$ac_dir"
18007 rm -f $ac_file
18008 mv conftest.h $ac_file
18010 fi; done
18014 cat >> $CONFIG_STATUS <<EOF
18015 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC"
18016 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/messages.cc src/moneypunct.cc src/numpunct.cc"
18019 cat >> $CONFIG_STATUS <<\EOF
18020 srcdir=$ac_given_srcdir
18021 while test -n "$ac_sources"; do
18022 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
18023 set $ac_sources; ac_source=$1; shift; ac_sources=$*
18025 echo "linking $srcdir/$ac_source to $ac_dest"
18027 if test ! -r $srcdir/$ac_source; then
18028 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
18030 rm -f $ac_dest
18032 # Make relative symlinks.
18033 # Remove last slash and all that follows it. Not all systems have dirname.
18034 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
18035 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
18036 # The dest file is in a subdirectory.
18037 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
18038 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
18039 # A "../" for each directory in $ac_dest_dir_suffix.
18040 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
18041 else
18042 ac_dest_dir_suffix= ac_dots=
18045 case "$srcdir" in
18046 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
18047 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
18048 esac
18050 # Make a symlink if possible; otherwise try a hard link.
18051 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18052 ln $srcdir/$ac_source $ac_dest; then :
18053 else
18054 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
18056 done
18058 cat >> $CONFIG_STATUS <<EOF
18060 srcdir=${srcdir}
18061 host=${host}
18062 target=${target}
18063 with_multisubdir=${with_multisubdir}
18064 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18065 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18066 glibcpp_basedir=${glibcpp_basedir}
18067 CC="${CC}"
18068 CXX="${CXX}"
18071 cat >> $CONFIG_STATUS <<\EOF
18072 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
18073 if test -n "$CONFIG_FILES"; then
18074 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
18075 grep '^MULTISUBDIR =' Makefile >> src/Makefile
18076 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
18078 chmod +x mkcheck
18079 chmod +x testsuite_flags
18081 exit 0
18083 chmod +x $CONFIG_STATUS
18084 rm -fr confdefs* $ac_clean_files
18085 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18089 # Sanity checking & User-visible messages.
18090 # Checks down here, otherwise they get scrolled off before
18091 # the user will notice.
18093 # Trying to get more people to read documentation. Possibly remove
18094 # check and warn all the time. There is no "informational" AC_MSG_
18095 # macro, so these are going to be printed even when --quiet/--silent
18096 # is given.
18097 if test ! -f stamp-sanity-warned; then
18098 touch stamp-sanity-warned
18099 echo ""
18100 echo "Please make certain that you read the installation information here:"
18101 echo " faster => ${srcdir}/docs/install.html"
18102 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
18103 echo ""
18104 echo "and the configuration information here:"
18105 echo " faster => ${srcdir}/docs/configopts.html"
18106 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
18107 echo ""
18108 echo "before proceeding with ${_cv_gnu_make_command}."
18109 echo ""