OSDN Git Service

2001-12-14 Roger Sayle <roger@eyesopen.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
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]
41   "
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]
45   "
46 ac_help="$ac_help
47   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49   --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
50 ac_help="$ac_help
51   --enable-long-long      turns on 'long long' [default=yes]"
52 ac_help="$ac_help
53   --enable-cheaders       construct "C" header files for g++ [default=c_std]"
54 ac_help="$ac_help
55   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
56                                 [default=none]"
57 ac_help="$ac_help
58   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
59 ac_help="$ac_help
60   --enable-concept-checks use Boost-derived template checks [default=no]"
61 ac_help="$ac_help
62   --with-gxx-include-dir  the installation directory for include files"
63 ac_help="$ac_help
64   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
65
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
69 build=NONE
70 cache_file=./config.cache
71 exec_prefix=NONE
72 host=NONE
73 no_create=
74 nonopt=NONE
75 no_recursion=
76 prefix=NONE
77 program_prefix=NONE
78 program_suffix=NONE
79 program_transform_name=s,x,x,
80 silent=
81 site=
82 srcdir=
83 target=NONE
84 verbose=
85 x_includes=NONE
86 x_libraries=NONE
87 bindir='${exec_prefix}/bin'
88 sbindir='${exec_prefix}/sbin'
89 libexecdir='${exec_prefix}/libexec'
90 datadir='${prefix}/share'
91 sysconfdir='${prefix}/etc'
92 sharedstatedir='${prefix}/com'
93 localstatedir='${prefix}/var'
94 libdir='${exec_prefix}/lib'
95 includedir='${prefix}/include'
96 oldincludedir='/usr/include'
97 infodir='${prefix}/info'
98 mandir='${prefix}/man'
99
100 # Initialize some other variables.
101 subdirs=
102 MFLAGS= MAKEFLAGS=
103 SHELL=${CONFIG_SHELL-/bin/sh}
104 # Maximum number of lines to put in a shell here document.
105 ac_max_here_lines=12
106
107 ac_prev=
108 for ac_option
109 do
110
111   # If the previous option needs an argument, assign it.
112   if test -n "$ac_prev"; then
113     eval "$ac_prev=\$ac_option"
114     ac_prev=
115     continue
116   fi
117
118   case "$ac_option" in
119   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
120   *) ac_optarg= ;;
121   esac
122
123   # Accept the important Cygnus configure options, so we can diagnose typos.
124
125   case "$ac_option" in
126
127   -bindir | --bindir | --bindi | --bind | --bin | --bi)
128     ac_prev=bindir ;;
129   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
130     bindir="$ac_optarg" ;;
131
132   -build | --build | --buil | --bui | --bu)
133     ac_prev=build ;;
134   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
135     build="$ac_optarg" ;;
136
137   -cache-file | --cache-file | --cache-fil | --cache-fi \
138   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
139     ac_prev=cache_file ;;
140   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
141   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
142     cache_file="$ac_optarg" ;;
143
144   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
145     ac_prev=datadir ;;
146   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
147   | --da=*)
148     datadir="$ac_optarg" ;;
149
150   -disable-* | --disable-*)
151     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
152     # Reject names that are not valid shell variable names.
153     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
154       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155     fi
156     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157     eval "enable_${ac_feature}=no" ;;
158
159   -enable-* | --enable-*)
160     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
161     # Reject names that are not valid shell variable names.
162     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
163       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164     fi
165     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166     case "$ac_option" in
167       *=*) ;;
168       *) ac_optarg=yes ;;
169     esac
170     eval "enable_${ac_feature}='$ac_optarg'" ;;
171
172   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
173   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
174   | --exec | --exe | --ex)
175     ac_prev=exec_prefix ;;
176   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
177   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
178   | --exec=* | --exe=* | --ex=*)
179     exec_prefix="$ac_optarg" ;;
180
181   -gas | --gas | --ga | --g)
182     # Obsolete; use --with-gas.
183     with_gas=yes ;;
184
185   -help | --help | --hel | --he)
186     # Omit some internal or obsolete options to make the list less imposing.
187     # This message is too long to be a string in the A/UX 3.1 sh.
188     cat << EOF
189 Usage: configure [options] [host]
190 Options: [defaults in brackets after descriptions]
191 Configuration:
192   --cache-file=FILE       cache test results in FILE
193   --help                  print this message
194   --no-create             do not create output files
195   --quiet, --silent       do not print \`checking...' messages
196   --version               print the version of autoconf that created configure
197 Directory and file names:
198   --prefix=PREFIX         install architecture-independent files in PREFIX
199                           [$ac_default_prefix]
200   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
201                           [same as prefix]
202   --bindir=DIR            user executables in DIR [EPREFIX/bin]
203   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
204   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
205   --datadir=DIR           read-only architecture-independent data in DIR
206                           [PREFIX/share]
207   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
208   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
209                           [PREFIX/com]
210   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
211   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
212   --includedir=DIR        C header files in DIR [PREFIX/include]
213   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
214   --infodir=DIR           info documentation in DIR [PREFIX/info]
215   --mandir=DIR            man documentation in DIR [PREFIX/man]
216   --srcdir=DIR            find the sources in DIR [configure dir or ..]
217   --program-prefix=PREFIX prepend PREFIX to installed program names
218   --program-suffix=SUFFIX append SUFFIX to installed program names
219   --program-transform-name=PROGRAM
220                           run sed PROGRAM on installed program names
221 EOF
222     cat << EOF
223 Host type:
224   --build=BUILD           configure for building on BUILD [BUILD=HOST]
225   --host=HOST             configure for HOST [guessed]
226   --target=TARGET         configure for TARGET [TARGET=HOST]
227 Features and packages:
228   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
229   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
230   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
231   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
232   --x-includes=DIR        X include files are in DIR
233   --x-libraries=DIR       X library files are in DIR
234 EOF
235     if test -n "$ac_help"; then
236       echo "--enable and --with options recognized:$ac_help"
237     fi
238     exit 0 ;;
239
240   -host | --host | --hos | --ho)
241     ac_prev=host ;;
242   -host=* | --host=* | --hos=* | --ho=*)
243     host="$ac_optarg" ;;
244
245   -includedir | --includedir | --includedi | --included | --include \
246   | --includ | --inclu | --incl | --inc)
247     ac_prev=includedir ;;
248   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
249   | --includ=* | --inclu=* | --incl=* | --inc=*)
250     includedir="$ac_optarg" ;;
251
252   -infodir | --infodir | --infodi | --infod | --info | --inf)
253     ac_prev=infodir ;;
254   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
255     infodir="$ac_optarg" ;;
256
257   -libdir | --libdir | --libdi | --libd)
258     ac_prev=libdir ;;
259   -libdir=* | --libdir=* | --libdi=* | --libd=*)
260     libdir="$ac_optarg" ;;
261
262   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
263   | --libexe | --libex | --libe)
264     ac_prev=libexecdir ;;
265   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
266   | --libexe=* | --libex=* | --libe=*)
267     libexecdir="$ac_optarg" ;;
268
269   -localstatedir | --localstatedir | --localstatedi | --localstated \
270   | --localstate | --localstat | --localsta | --localst \
271   | --locals | --local | --loca | --loc | --lo)
272     ac_prev=localstatedir ;;
273   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
274   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
275   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
276     localstatedir="$ac_optarg" ;;
277
278   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279     ac_prev=mandir ;;
280   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
281     mandir="$ac_optarg" ;;
282
283   -nfp | --nfp | --nf)
284     # Obsolete; use --without-fp.
285     with_fp=no ;;
286
287   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
288   | --no-cr | --no-c)
289     no_create=yes ;;
290
291   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
292   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293     no_recursion=yes ;;
294
295   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
296   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
297   | --oldin | --oldi | --old | --ol | --o)
298     ac_prev=oldincludedir ;;
299   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
300   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
301   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
302     oldincludedir="$ac_optarg" ;;
303
304   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305     ac_prev=prefix ;;
306   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307     prefix="$ac_optarg" ;;
308
309   -program-prefix | --program-prefix | --program-prefi | --program-pref \
310   | --program-pre | --program-pr | --program-p)
311     ac_prev=program_prefix ;;
312   -program-prefix=* | --program-prefix=* | --program-prefi=* \
313   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
314     program_prefix="$ac_optarg" ;;
315
316   -program-suffix | --program-suffix | --program-suffi | --program-suff \
317   | --program-suf | --program-su | --program-s)
318     ac_prev=program_suffix ;;
319   -program-suffix=* | --program-suffix=* | --program-suffi=* \
320   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
321     program_suffix="$ac_optarg" ;;
322
323   -program-transform-name | --program-transform-name \
324   | --program-transform-nam | --program-transform-na \
325   | --program-transform-n | --program-transform- \
326   | --program-transform | --program-transfor \
327   | --program-transfo | --program-transf \
328   | --program-trans | --program-tran \
329   | --progr-tra | --program-tr | --program-t)
330     ac_prev=program_transform_name ;;
331   -program-transform-name=* | --program-transform-name=* \
332   | --program-transform-nam=* | --program-transform-na=* \
333   | --program-transform-n=* | --program-transform-=* \
334   | --program-transform=* | --program-transfor=* \
335   | --program-transfo=* | --program-transf=* \
336   | --program-trans=* | --program-tran=* \
337   | --progr-tra=* | --program-tr=* | --program-t=*)
338     program_transform_name="$ac_optarg" ;;
339
340   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
341   | -silent | --silent | --silen | --sile | --sil)
342     silent=yes ;;
343
344   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345     ac_prev=sbindir ;;
346   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347   | --sbi=* | --sb=*)
348     sbindir="$ac_optarg" ;;
349
350   -sharedstatedir | --sharedstatedir | --sharedstatedi \
351   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
352   | --sharedst | --shareds | --shared | --share | --shar \
353   | --sha | --sh)
354     ac_prev=sharedstatedir ;;
355   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
356   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
357   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358   | --sha=* | --sh=*)
359     sharedstatedir="$ac_optarg" ;;
360
361   -site | --site | --sit)
362     ac_prev=site ;;
363   -site=* | --site=* | --sit=*)
364     site="$ac_optarg" ;;
365
366   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367     ac_prev=srcdir ;;
368   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
369     srcdir="$ac_optarg" ;;
370
371   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
372   | --syscon | --sysco | --sysc | --sys | --sy)
373     ac_prev=sysconfdir ;;
374   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
375   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
376     sysconfdir="$ac_optarg" ;;
377
378   -target | --target | --targe | --targ | --tar | --ta | --t)
379     ac_prev=target ;;
380   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
381     target="$ac_optarg" ;;
382
383   -v | -verbose | --verbose | --verbos | --verbo | --verb)
384     verbose=yes ;;
385
386   -version | --version | --versio | --versi | --vers)
387     echo "configure generated by autoconf version 2.13"
388     exit 0 ;;
389
390   -with-* | --with-*)
391     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
392     # Reject names that are not valid shell variable names.
393     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
394       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395     fi
396     ac_package=`echo $ac_package| sed 's/-/_/g'`
397     case "$ac_option" in
398       *=*) ;;
399       *) ac_optarg=yes ;;
400     esac
401     eval "with_${ac_package}='$ac_optarg'" ;;
402
403   -without-* | --without-*)
404     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
405     # Reject names that are not valid shell variable names.
406     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
407       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408     fi
409     ac_package=`echo $ac_package| sed 's/-/_/g'`
410     eval "with_${ac_package}=no" ;;
411
412   --x)
413     # Obsolete; use --with-x.
414     with_x=yes ;;
415
416   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
417   | --x-incl | --x-inc | --x-in | --x-i)
418     ac_prev=x_includes ;;
419   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
420   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
421     x_includes="$ac_optarg" ;;
422
423   -x-libraries | --x-libraries | --x-librarie | --x-librari \
424   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
425     ac_prev=x_libraries ;;
426   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
427   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
428     x_libraries="$ac_optarg" ;;
429
430   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
431     ;;
432
433   *)
434     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
435       echo "configure: warning: $ac_option: invalid host type" 1>&2
436     fi
437     if test "x$nonopt" != xNONE; then
438       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
439     fi
440     nonopt="$ac_option"
441     ;;
442
443   esac
444 done
445
446 if test -n "$ac_prev"; then
447   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
448 fi
449
450 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
451
452 # File descriptor usage:
453 # 0 standard input
454 # 1 file creation
455 # 2 errors and warnings
456 # 3 some systems may open it to /dev/tty
457 # 4 used on the Kubota Titan
458 # 6 checking for... messages and results
459 # 5 compiler messages saved in config.log
460 if test "$silent" = yes; then
461   exec 6>/dev/null
462 else
463   exec 6>&1
464 fi
465 exec 5>./config.log
466
467 echo "\
468 This file contains any messages produced by compilers while
469 running configure, to aid debugging if configure makes a mistake.
470 " 1>&5
471
472 # Strip out --no-create and --no-recursion so they do not pile up.
473 # Also quote any args containing shell metacharacters.
474 ac_configure_args=
475 for ac_arg
476 do
477   case "$ac_arg" in
478   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
479   | --no-cr | --no-c) ;;
480   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
481   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
482   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
483   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
484   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
485   esac
486 done
487
488 # NLS nuisances.
489 # Only set these to C if already set.  These must not be set unconditionally
490 # because not all systems understand e.g. LANG=C (notably SCO).
491 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
492 # Non-C LC_CTYPE values break the ctype check.
493 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
494 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
495 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
496 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
497
498 # confdefs.h avoids OS command line length limits that DEFS can exceed.
499 rm -rf conftest* confdefs.h
500 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
501 echo > confdefs.h
502
503 # A filename unique to this package, relative to the directory that
504 # configure is in, which we can look for to find out if srcdir is correct.
505 ac_unique_file=src/ios.cc
506
507 # Find the source files, if location was not specified.
508 if test -z "$srcdir"; then
509   ac_srcdir_defaulted=yes
510   # Try the directory containing this script, then its parent.
511   ac_prog=$0
512   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
513   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
514   srcdir=$ac_confdir
515   if test ! -r $srcdir/$ac_unique_file; then
516     srcdir=..
517   fi
518 else
519   ac_srcdir_defaulted=no
520 fi
521 if test ! -r $srcdir/$ac_unique_file; then
522   if test "$ac_srcdir_defaulted" = yes; then
523     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
524   else
525     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
526   fi
527 fi
528 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
529
530 # Prefer explicitly selected file to automatically selected ones.
531 if test -z "$CONFIG_SITE"; then
532   if test "x$prefix" != xNONE; then
533     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
534   else
535     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
536   fi
537 fi
538 for ac_site_file in $CONFIG_SITE; do
539   if test -r "$ac_site_file"; then
540     echo "loading site script $ac_site_file"
541     . "$ac_site_file"
542   fi
543 done
544
545 if test -r "$cache_file"; then
546   echo "loading cache $cache_file"
547   . $cache_file
548 else
549   echo "creating cache $cache_file"
550   > $cache_file
551 fi
552
553 ac_ext=c
554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
555 ac_cpp='$CPP $CPPFLAGS'
556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
558 cross_compiling=$ac_cv_prog_cc_cross
559
560 ac_exeext=
561 ac_objext=o
562 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
563   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
564   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
565     ac_n= ac_c='
566 ' ac_t='        '
567   else
568     ac_n=-n ac_c= ac_t=
569   fi
570 else
571   ac_n= ac_c='\c' ac_t=
572 fi
573
574
575
576 PACKAGE=libstdc++
577
578 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
579 release_VERSION=3.1.0
580
581 # For libtool versioning info, format is CURRENT:REVISION:AGE
582 libtool_VERSION=4:0:0
583
584
585 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
586 # AC 2.50 sets target_alias iff the user specified --target, but we use it
587 # everywhere, so we set it here just to be sure.
588 ac_aux_dir=
589 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
590   if test -f $ac_dir/install-sh; then
591     ac_aux_dir=$ac_dir
592     ac_install_sh="$ac_aux_dir/install-sh -c"
593     break
594   elif test -f $ac_dir/install.sh; then
595     ac_aux_dir=$ac_dir
596     ac_install_sh="$ac_aux_dir/install.sh -c"
597     break
598   fi
599 done
600 if test -z "$ac_aux_dir"; then
601   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
602 fi
603 ac_config_guess=$ac_aux_dir/config.guess
604 ac_config_sub=$ac_aux_dir/config.sub
605 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
606
607
608 # Do some error checking and defaulting for the host and target type.
609 # The inputs are:
610 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
611 #
612 # The rules are:
613 # 1. You are not allowed to specify --host, --target, and nonopt at the
614 #    same time.
615 # 2. Host defaults to nonopt.
616 # 3. If nonopt is not specified, then host defaults to the current host,
617 #    as determined by config.guess.
618 # 4. Target and build default to nonopt.
619 # 5. If nonopt is not specified, then target and build default to host.
620
621 # The aliases save the names the user supplied, while $host etc.
622 # will get canonicalized.
623 case $host---$target---$nonopt in
624 NONE---*---* | *---NONE---* | *---*---NONE) ;;
625 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
626 esac
627
628
629 # Make sure we can run config.sub.
630 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
631 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
632 fi
633
634 echo $ac_n "checking host system type""... $ac_c" 1>&6
635 echo "configure:636: checking host system type" >&5
636
637 host_alias=$host
638 case "$host_alias" in
639 NONE)
640   case $nonopt in
641   NONE)
642     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
643     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
644     fi ;;
645   *) host_alias=$nonopt ;;
646   esac ;;
647 esac
648
649 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
650 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
651 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
652 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
653 echo "$ac_t""$host" 1>&6
654
655 echo $ac_n "checking target system type""... $ac_c" 1>&6
656 echo "configure:657: checking target system type" >&5
657
658 target_alias=$target
659 case "$target_alias" in
660 NONE)
661   case $nonopt in
662   NONE) target_alias=$host_alias ;;
663   *) target_alias=$nonopt ;;
664   esac ;;
665 esac
666
667 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
668 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
669 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
670 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671 echo "$ac_t""$target" 1>&6
672
673 echo $ac_n "checking build system type""... $ac_c" 1>&6
674 echo "configure:675: checking build system type" >&5
675
676 build_alias=$build
677 case "$build_alias" in
678 NONE)
679   case $nonopt in
680   NONE) build_alias=$host_alias ;;
681   *) build_alias=$nonopt ;;
682   esac ;;
683 esac
684
685 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
686 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
687 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
688 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
689 echo "$ac_t""$build" 1>&6
690
691 test "$host_alias" != "$target_alias" &&
692   test "$program_prefix$program_suffix$program_transform_name" = \
693     NONENONEs,x,x, &&
694   program_prefix=${target_alias}-
695
696 target_alias=${target_alias-$target}
697
698
699 # Find a good install program.  We prefer a C program (faster),
700 # so one script is as good as another.  But avoid the broken or
701 # incompatible versions:
702 # SysV /etc/install, /usr/sbin/install
703 # SunOS /usr/etc/install
704 # IRIX /sbin/install
705 # AIX /bin/install
706 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
707 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
708 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
709 # ./install, which can be erroneously created by make from ./install.sh.
710 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
711 echo "configure:712: checking for a BSD compatible install" >&5
712 if test -z "$INSTALL"; then
713 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
714   echo $ac_n "(cached) $ac_c" 1>&6
715 else
716     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
717   for ac_dir in $PATH; do
718     # Account for people who put trailing slashes in PATH elements.
719     case "$ac_dir/" in
720     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
721     *)
722       # OSF1 and SCO ODT 3.0 have their own names for install.
723       # Don't use installbsd from OSF since it installs stuff as root
724       # by default.
725       for ac_prog in ginstall scoinst install; do
726         if test -f $ac_dir/$ac_prog; then
727           if test $ac_prog = install &&
728             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
729             # AIX install.  It has an incompatible calling convention.
730             :
731           else
732             ac_cv_path_install="$ac_dir/$ac_prog -c"
733             break 2
734           fi
735         fi
736       done
737       ;;
738     esac
739   done
740   IFS="$ac_save_IFS"
741
742 fi
743   if test "${ac_cv_path_install+set}" = set; then
744     INSTALL="$ac_cv_path_install"
745   else
746     # As a last resort, use the slow shell script.  We don't cache a
747     # path for INSTALL within a source directory, because that will
748     # break other packages using the cache if that directory is
749     # removed, or if the path is relative.
750     INSTALL="$ac_install_sh"
751   fi
752 fi
753 echo "$ac_t""$INSTALL" 1>&6
754
755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
756 # It thinks the first close brace ends the variable substitution.
757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
758
759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
760
761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
762
763 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
764 echo "configure:765: checking whether build environment is sane" >&5
765 # Just in case
766 sleep 1
767 echo timestamp > conftestfile
768 # Do `set' in a subshell so we don't clobber the current shell's
769 # arguments.  Must try -L first in case configure is actually a
770 # symlink; some systems play weird games with the mod time of symlinks
771 # (eg FreeBSD returns the mod time of the symlink's containing
772 # directory).
773 if (
774    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
775    if test "$*" = "X"; then
776       # -L didn't work.
777       set X `ls -t $srcdir/configure conftestfile`
778    fi
779    if test "$*" != "X $srcdir/configure conftestfile" \
780       && test "$*" != "X conftestfile $srcdir/configure"; then
781
782       # If neither matched, then we have a broken ls.  This can happen
783       # if, for instance, CONFIG_SHELL is bash and it inherits a
784       # broken ls alias from the environment.  This has actually
785       # happened.  Such a system could not be considered "sane".
786       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
787 alias in your environment" 1>&2; exit 1; }
788    fi
789
790    test "$2" = conftestfile
791    )
792 then
793    # Ok.
794    :
795 else
796    { echo "configure: error: newly created file is older than distributed files!
797 Check your system clock" 1>&2; exit 1; }
798 fi
799 rm -f conftest*
800 echo "$ac_t""yes" 1>&6
801 if test "$program_transform_name" = s,x,x,; then
802   program_transform_name=
803 else
804   # Double any \ or $.  echo might interpret backslashes.
805   cat <<\EOF_SED > conftestsed
806 s,\\,\\\\,g; s,\$,$$,g
807 EOF_SED
808   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
809   rm -f conftestsed
810 fi
811 test "$program_prefix" != NONE &&
812   program_transform_name="s,^,${program_prefix},; $program_transform_name"
813 # Use a double $ so make ignores it.
814 test "$program_suffix" != NONE &&
815   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
816
817 # sed with no file args requires a program.
818 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
819
820 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
821 echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
822 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
823 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
824   echo $ac_n "(cached) $ac_c" 1>&6
825 else
826   cat > conftestmake <<\EOF
827 all:
828         @echo 'ac_maketemp="${MAKE}"'
829 EOF
830 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
831 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
832 if test -n "$ac_maketemp"; then
833   eval ac_cv_prog_make_${ac_make}_set=yes
834 else
835   eval ac_cv_prog_make_${ac_make}_set=no
836 fi
837 rm -f conftestmake
838 fi
839 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
840   echo "$ac_t""yes" 1>&6
841   SET_MAKE=
842 else
843   echo "$ac_t""no" 1>&6
844   SET_MAKE="MAKE=${MAKE-make}"
845 fi
846
847
848 PACKAGE=$PACKAGE
849
850 VERSION=$release_VERSION
851
852 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
853   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
854 fi
855 cat >> confdefs.h <<EOF
856 #define PACKAGE "$PACKAGE"
857 EOF
858
859 cat >> confdefs.h <<EOF
860 #define VERSION "$VERSION"
861 EOF
862
863
864
865 missing_dir=`cd $ac_aux_dir && pwd`
866 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
867 echo "configure:868: checking for working aclocal" >&5
868 # Run test in a subshell; some versions of sh will print an error if
869 # an executable is not found, even if stderr is redirected.
870 # Redirect stdin to placate older versions of autoconf.  Sigh.
871 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
872    ACLOCAL=aclocal
873    echo "$ac_t""found" 1>&6
874 else
875    ACLOCAL="$missing_dir/missing aclocal"
876    echo "$ac_t""missing" 1>&6
877 fi
878
879 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
880 echo "configure:881: checking for working autoconf" >&5
881 # Run test in a subshell; some versions of sh will print an error if
882 # an executable is not found, even if stderr is redirected.
883 # Redirect stdin to placate older versions of autoconf.  Sigh.
884 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
885    AUTOCONF=autoconf
886    echo "$ac_t""found" 1>&6
887 else
888    AUTOCONF="$missing_dir/missing autoconf"
889    echo "$ac_t""missing" 1>&6
890 fi
891
892 echo $ac_n "checking for working automake""... $ac_c" 1>&6
893 echo "configure:894: checking for working automake" >&5
894 # Run test in a subshell; some versions of sh will print an error if
895 # an executable is not found, even if stderr is redirected.
896 # Redirect stdin to placate older versions of autoconf.  Sigh.
897 if (automake --version) < /dev/null > /dev/null 2>&1; then
898    AUTOMAKE=automake
899    echo "$ac_t""found" 1>&6
900 else
901    AUTOMAKE="$missing_dir/missing automake"
902    echo "$ac_t""missing" 1>&6
903 fi
904
905 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
906 echo "configure:907: checking for working autoheader" >&5
907 # Run test in a subshell; some versions of sh will print an error if
908 # an executable is not found, even if stderr is redirected.
909 # Redirect stdin to placate older versions of autoconf.  Sigh.
910 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
911    AUTOHEADER=autoheader
912    echo "$ac_t""found" 1>&6
913 else
914    AUTOHEADER="$missing_dir/missing autoheader"
915    echo "$ac_t""missing" 1>&6
916 fi
917
918 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
919 echo "configure:920: checking for working makeinfo" >&5
920 # Run test in a subshell; some versions of sh will print an error if
921 # an executable is not found, even if stderr is redirected.
922 # Redirect stdin to placate older versions of autoconf.  Sigh.
923 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
924    MAKEINFO=makeinfo
925    echo "$ac_t""found" 1>&6
926 else
927    MAKEINFO="$missing_dir/missing makeinfo"
928    echo "$ac_t""missing" 1>&6
929 fi
930
931
932
933
934
935
936 # Runs configure.host and configure.target, as well as finds CC, CXX
937 # and assorted other critical bits. Have to run this before the
938 # GLIBCPP_ENABLE_* macros below.
939 if test $host != $build; then
940   ac_tool_prefix=${host_alias}-
941 else
942   ac_tool_prefix=
943 fi
944
945 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
946 echo "configure:947: checking for Cygwin environment" >&5
947 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
948   echo $ac_n "(cached) $ac_c" 1>&6
949 else
950   cat > conftest.$ac_ext <<EOF
951 #line 952 "configure"
952 #include "confdefs.h"
953
954 int main() {
955
956 #ifndef __CYGWIN__
957 #define __CYGWIN__ __CYGWIN32__
958 #endif
959 return __CYGWIN__;
960 ; return 0; }
961 EOF
962 if { (eval echo configure:963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
963   rm -rf conftest*
964   ac_cv_cygwin=yes
965 else
966   echo "configure: failed program was:" >&5
967   cat conftest.$ac_ext >&5
968   rm -rf conftest*
969   ac_cv_cygwin=no
970 fi
971 rm -f conftest*
972 rm -f conftest*
973 fi
974
975 echo "$ac_t""$ac_cv_cygwin" 1>&6
976 CYGWIN=
977 test "$ac_cv_cygwin" = yes && CYGWIN=yes
978 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
979 echo "configure:980: checking for mingw32 environment" >&5
980 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
981   echo $ac_n "(cached) $ac_c" 1>&6
982 else
983   cat > conftest.$ac_ext <<EOF
984 #line 985 "configure"
985 #include "confdefs.h"
986
987 int main() {
988 return __MINGW32__;
989 ; return 0; }
990 EOF
991 if { (eval echo configure:992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
992   rm -rf conftest*
993   ac_cv_mingw32=yes
994 else
995   echo "configure: failed program was:" >&5
996   cat conftest.$ac_ext >&5
997   rm -rf conftest*
998   ac_cv_mingw32=no
999 fi
1000 rm -f conftest*
1001 rm -f conftest*
1002 fi
1003
1004 echo "$ac_t""$ac_cv_mingw32" 1>&6
1005 MINGW32=
1006 test "$ac_cv_mingw32" = yes && MINGW32=yes
1007
1008     # Check whether --enable-multilib or --disable-multilib was given.
1009 if test "${enable_multilib+set}" = set; then
1010   enableval="$enable_multilib"
1011   case "${enableval}" in
1012     yes) multilib=yes ;;
1013     no)  multilib=no ;;
1014     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1015    esac
1016 else
1017   multilib=yes
1018 fi
1019
1020 # When building with srcdir == objdir, links to the source files will
1021 # be created in directories within the target_subdir.  We have to
1022 # adjust toplevel_srcdir accordingly, so that configure finds
1023 # install-sh and other auxiliary files that live in the top-level
1024 # source directory.
1025 if test "${srcdir}" = "."; then
1026   if test -z "${with_target_subdir}"; then
1027     toprel=".."
1028   else
1029     if test "${with_target_subdir}" != "."; then
1030       toprel="${with_multisrctop}../.."
1031     else
1032       toprel="${with_multisrctop}.."
1033     fi
1034   fi
1035 else
1036   toprel=".."
1037 fi
1038 ac_aux_dir=
1039 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1040   if test -f $ac_dir/install-sh; then
1041     ac_aux_dir=$ac_dir
1042     ac_install_sh="$ac_aux_dir/install-sh -c"
1043     break
1044   elif test -f $ac_dir/install.sh; then
1045     ac_aux_dir=$ac_dir
1046     ac_install_sh="$ac_aux_dir/install.sh -c"
1047     break
1048   fi
1049 done
1050 if test -z "$ac_aux_dir"; then
1051   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1052 fi
1053 ac_config_guess=$ac_aux_dir/config.guess
1054 ac_config_sub=$ac_aux_dir/config.sub
1055 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1056
1057 toplevel_srcdir=\${top_srcdir}/$toprel
1058
1059
1060 # Export build and source directories.
1061 # These need to be absolute paths, yet at the same time need to
1062 # canonicalize only relative paths, because then amd will not unmount
1063 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1064 glibcpp_builddir=`pwd`
1065 case $srcdir in
1066 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1067 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1068 esac
1069
1070
1071
1072
1073
1074 # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.50+, can also
1075 # be 'cp -p' if linking isn't available.
1076 #ac_cv_prog_LN_S='cp -p'
1077 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1078 echo "configure:1079: checking whether ln -s works" >&5
1079 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1080   echo $ac_n "(cached) $ac_c" 1>&6
1081 else
1082   rm -f conftestdata
1083 if ln -s X conftestdata 2>/dev/null
1084 then
1085   rm -f conftestdata
1086   ac_cv_prog_LN_S="ln -s"
1087 else
1088   ac_cv_prog_LN_S=ln
1089 fi
1090 fi
1091 LN_S="$ac_cv_prog_LN_S"
1092 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1093   echo "$ac_t""yes" 1>&6
1094 else
1095   echo "$ac_t""no" 1>&6
1096 fi
1097
1098
1099 # We use these options to decide which functions to include.
1100 # Check whether --with-target-subdir or --without-target-subdir was given.
1101 if test "${with_target_subdir+set}" = set; then
1102   withval="$with_target_subdir"
1103   :
1104 fi
1105
1106 # Check whether --with-cross-host or --without-cross-host was given.
1107 if test "${with_cross_host+set}" = set; then
1108   withval="$with_cross_host"
1109   :
1110 fi
1111
1112
1113   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1114   
1115
1116   # Never versions of autoconf add an underscore to these functions.
1117   # Prevent future problems ...
1118   
1119   
1120   
1121   
1122
1123 #  AC_PROG_CC
1124
1125 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1126 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1127 # are probably using a cross compiler, which will not be able to fully
1128 # link an executable.  This should really be fixed in autoconf
1129 # itself.
1130
1131
1132
1133
1134 # Extract the first word of "gcc", so it can be a program name with args.
1135 set dummy gcc; ac_word=$2
1136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1137 echo "configure:1138: checking for $ac_word" >&5
1138 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1139   echo $ac_n "(cached) $ac_c" 1>&6
1140 else
1141   if test -n "$CC"; then
1142   ac_cv_prog_CC="$CC" # Let the user override the test.
1143 else
1144   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1145   ac_dummy="$PATH"
1146   for ac_dir in $ac_dummy; do
1147     test -z "$ac_dir" && ac_dir=.
1148     if test -f $ac_dir/$ac_word; then
1149       ac_cv_prog_CC="gcc"
1150       break
1151     fi
1152   done
1153   IFS="$ac_save_ifs"
1154 fi
1155 fi
1156 CC="$ac_cv_prog_CC"
1157 if test -n "$CC"; then
1158   echo "$ac_t""$CC" 1>&6
1159 else
1160   echo "$ac_t""no" 1>&6
1161 fi
1162
1163 if test -z "$CC"; then
1164   # Extract the first word of "cc", so it can be a program name with args.
1165 set dummy cc; ac_word=$2
1166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1167 echo "configure:1168: checking for $ac_word" >&5
1168 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1169   echo $ac_n "(cached) $ac_c" 1>&6
1170 else
1171   if test -n "$CC"; then
1172   ac_cv_prog_CC="$CC" # Let the user override the test.
1173 else
1174   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1175   ac_prog_rejected=no
1176   ac_dummy="$PATH"
1177   for ac_dir in $ac_dummy; do
1178     test -z "$ac_dir" && ac_dir=.
1179     if test -f $ac_dir/$ac_word; then
1180       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1181         ac_prog_rejected=yes
1182         continue
1183       fi
1184       ac_cv_prog_CC="cc"
1185       break
1186     fi
1187   done
1188   IFS="$ac_save_ifs"
1189 if test $ac_prog_rejected = yes; then
1190   # We found a bogon in the path, so make sure we never use it.
1191   set dummy $ac_cv_prog_CC
1192   shift
1193   if test $# -gt 0; then
1194     # We chose a different compiler from the bogus one.
1195     # However, it has the same basename, so the bogon will be chosen
1196     # first if we set CC to just the basename; use the full file name.
1197     shift
1198     set dummy "$ac_dir/$ac_word" "$@"
1199     shift
1200     ac_cv_prog_CC="$@"
1201   fi
1202 fi
1203 fi
1204 fi
1205 CC="$ac_cv_prog_CC"
1206 if test -n "$CC"; then
1207   echo "$ac_t""$CC" 1>&6
1208 else
1209   echo "$ac_t""no" 1>&6
1210 fi
1211
1212   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1213 fi
1214
1215 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1216 echo "configure:1217: checking whether we are using GNU C" >&5
1217 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1218   echo $ac_n "(cached) $ac_c" 1>&6
1219 else
1220   cat > conftest.c <<EOF
1221 #ifdef __GNUC__
1222   yes;
1223 #endif
1224 EOF
1225 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1226   ac_cv_prog_gcc=yes
1227 else
1228   ac_cv_prog_gcc=no
1229 fi
1230 fi
1231
1232 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1233
1234 if test $ac_cv_prog_gcc = yes; then
1235   GCC=yes
1236   ac_test_CFLAGS="${CFLAGS+set}"
1237   ac_save_CFLAGS="$CFLAGS"
1238   CFLAGS=
1239   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1240 echo "configure:1241: checking whether ${CC-cc} accepts -g" >&5
1241 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1242   echo $ac_n "(cached) $ac_c" 1>&6
1243 else
1244   echo 'void f(){}' > conftest.c
1245 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1246   ac_cv_prog_cc_g=yes
1247 else
1248   ac_cv_prog_cc_g=no
1249 fi
1250 rm -f conftest*
1251
1252 fi
1253
1254 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1255   if test "$ac_test_CFLAGS" = set; then
1256     CFLAGS="$ac_save_CFLAGS"
1257   elif test $ac_cv_prog_cc_g = yes; then
1258     CFLAGS="-g -O2"
1259   else
1260     CFLAGS="-O2"
1261   fi
1262 else
1263   GCC=
1264   test "${CFLAGS+set}" = set || CFLAGS="-g"
1265 fi
1266
1267
1268 # Can't just call these here as g++ requires libstc++ to be built....
1269 #  AC_PROG_CXX
1270
1271 # Likewise for AC_PROG_CXX.
1272
1273
1274
1275 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1276 # flags that come in CXX while configuring libstdc++.  They're different
1277 # from those used for all other target libraries.  If CXX is set in
1278 # the environment, respect that here.
1279 glibcpp_CXX=$CXX
1280 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1281 do
1282 # Extract the first word of "$ac_prog", so it can be a program name with args.
1283 set dummy $ac_prog; ac_word=$2
1284 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1285 echo "configure:1286: checking for $ac_word" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1287   echo $ac_n "(cached) $ac_c" 1>&6
1288 else
1289   if test -n "$glibcpp_CXX"; then
1290   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1291 else
1292   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1293   ac_dummy="$PATH"
1294   for ac_dir in $ac_dummy; do
1295     test -z "$ac_dir" && ac_dir=.
1296     if test -f $ac_dir/$ac_word; then
1297       ac_cv_prog_glibcpp_CXX="$ac_prog"
1298       break
1299     fi
1300   done
1301   IFS="$ac_save_ifs"
1302 fi
1303 fi
1304 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1305 if test -n "$glibcpp_CXX"; then
1306   echo "$ac_t""$glibcpp_CXX" 1>&6
1307 else
1308   echo "$ac_t""no" 1>&6
1309 fi
1310
1311 test -n "$glibcpp_CXX" && break
1312 done
1313 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1314
1315
1316 CXX=$glibcpp_CXX
1317 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1318
1319 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1320 echo "configure:1321: checking whether we are using GNU C++" >&5
1321 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1322   echo $ac_n "(cached) $ac_c" 1>&6
1323 else
1324   cat > conftest.C <<EOF
1325 #ifdef __GNUC__
1326   yes;
1327 #endif
1328 EOF
1329 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1330   ac_cv_prog_gxx=yes
1331 else
1332   ac_cv_prog_gxx=no
1333 fi
1334 fi
1335
1336 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1337
1338 if test $ac_cv_prog_gxx = yes; then
1339   GXX=yes
1340   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1341   ac_save_CXXFLAGS="$CXXFLAGS"
1342   CXXFLAGS=
1343   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1344 echo "configure:1345: checking whether ${CXX-g++} accepts -g" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1346   echo $ac_n "(cached) $ac_c" 1>&6
1347 else
1348   echo 'void f(){}' > conftest.cc
1349 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1350   ac_cv_prog_cxx_g=yes
1351 else
1352   ac_cv_prog_cxx_g=no
1353 fi
1354 rm -f conftest*
1355
1356 fi
1357
1358 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1359   if test "$ac_test_CXXFLAGS" = set; then
1360     CXXFLAGS="$ac_save_CXXFLAGS"
1361   elif test $ac_cv_prog_cxx_g = yes; then
1362     CXXFLAGS="-g -O2"
1363   else
1364     CXXFLAGS="-O2"
1365   fi
1366 else
1367   GXX=
1368   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1369 fi
1370
1371
1372    # For some reason, gettext needs this.
1373    
1374         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1375 echo "configure:1376: checking for strerror in -lcposix" >&5
1376 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1378   echo $ac_n "(cached) $ac_c" 1>&6
1379 else
1380   ac_save_LIBS="$LIBS"
1381 LIBS="-lcposix  $LIBS"
1382 cat > conftest.$ac_ext <<EOF
1383 #line 1384 "configure"
1384 #include "confdefs.h"
1385 /* Override any gcc2 internal prototype to avoid an error.  */
1386 /* We use char because int might match the return type of a gcc2
1387     builtin and then its argument prototype would still apply.  */
1388 char strerror();
1389
1390 int main() {
1391 strerror()
1392 ; return 0; }
1393 EOF
1394 if { (eval echo configure:1395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1395   rm -rf conftest*
1396   eval "ac_cv_lib_$ac_lib_var=yes"
1397 else
1398   echo "configure: failed program was:" >&5
1399   cat conftest.$ac_ext >&5
1400   rm -rf conftest*
1401   eval "ac_cv_lib_$ac_lib_var=no"
1402 fi
1403 rm -f conftest*
1404 LIBS="$ac_save_LIBS"
1405
1406 fi
1407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1408   echo "$ac_t""yes" 1>&6
1409   LIBS="$LIBS -lcposix"
1410 else
1411   echo "$ac_t""no" 1>&6
1412 fi
1413
1414   
1415
1416
1417   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1418 set dummy ${ac_tool_prefix}as; ac_word=$2
1419 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1420 echo "configure:1421: checking for $ac_word" >&5
1421 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1422   echo $ac_n "(cached) $ac_c" 1>&6
1423 else
1424   if test -n "$AS"; then
1425   ac_cv_prog_AS="$AS" # Let the user override the test.
1426 else
1427   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1428   ac_dummy="$PATH"
1429   for ac_dir in $ac_dummy; do
1430     test -z "$ac_dir" && ac_dir=.
1431     if test -f $ac_dir/$ac_word; then
1432       ac_cv_prog_AS="${ac_tool_prefix}as"
1433       break
1434     fi
1435   done
1436   IFS="$ac_save_ifs"
1437   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1438 fi
1439 fi
1440 AS="$ac_cv_prog_AS"
1441 if test -n "$AS"; then
1442   echo "$ac_t""$AS" 1>&6
1443 else
1444   echo "$ac_t""no" 1>&6
1445 fi
1446
1447
1448
1449   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1450 set dummy ${ac_tool_prefix}ar; ac_word=$2
1451 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1452 echo "configure:1453: checking for $ac_word" >&5
1453 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1454   echo $ac_n "(cached) $ac_c" 1>&6
1455 else
1456   if test -n "$AR"; then
1457   ac_cv_prog_AR="$AR" # Let the user override the test.
1458 else
1459   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1460   ac_dummy="$PATH"
1461   for ac_dir in $ac_dummy; do
1462     test -z "$ac_dir" && ac_dir=.
1463     if test -f $ac_dir/$ac_word; then
1464       ac_cv_prog_AR="${ac_tool_prefix}ar"
1465       break
1466     fi
1467   done
1468   IFS="$ac_save_ifs"
1469   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1470 fi
1471 fi
1472 AR="$ac_cv_prog_AR"
1473 if test -n "$AR"; then
1474   echo "$ac_t""$AR" 1>&6
1475 else
1476   echo "$ac_t""no" 1>&6
1477 fi
1478
1479
1480
1481   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1482 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1484 echo "configure:1485: checking for $ac_word" >&5
1485 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1486   echo $ac_n "(cached) $ac_c" 1>&6
1487 else
1488   if test -n "$RANLIB"; then
1489   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1490 else
1491   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1492   ac_dummy="$PATH"
1493   for ac_dir in $ac_dummy; do
1494     test -z "$ac_dir" && ac_dir=.
1495     if test -f $ac_dir/$ac_word; then
1496       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1497       break
1498     fi
1499   done
1500   IFS="$ac_save_ifs"
1501 fi
1502 fi
1503 RANLIB="$ac_cv_prog_RANLIB"
1504 if test -n "$RANLIB"; then
1505   echo "$ac_t""$RANLIB" 1>&6
1506 else
1507   echo "$ac_t""no" 1>&6
1508 fi
1509
1510
1511 if test -z "$ac_cv_prog_RANLIB"; then
1512 if test -n "$ac_tool_prefix"; then
1513   # Extract the first word of "ranlib", so it can be a program name with args.
1514 set dummy ranlib; ac_word=$2
1515 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1516 echo "configure:1517: checking for $ac_word" >&5
1517 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1518   echo $ac_n "(cached) $ac_c" 1>&6
1519 else
1520   if test -n "$RANLIB"; then
1521   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1522 else
1523   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1524   ac_dummy="$PATH"
1525   for ac_dir in $ac_dummy; do
1526     test -z "$ac_dir" && ac_dir=.
1527     if test -f $ac_dir/$ac_word; then
1528       ac_cv_prog_RANLIB="ranlib"
1529       break
1530     fi
1531   done
1532   IFS="$ac_save_ifs"
1533   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1534 fi
1535 fi
1536 RANLIB="$ac_cv_prog_RANLIB"
1537 if test -n "$RANLIB"; then
1538   echo "$ac_t""$RANLIB" 1>&6
1539 else
1540   echo "$ac_t""no" 1>&6
1541 fi
1542
1543 else
1544   RANLIB="ranlib-not-found-in-path-error"
1545 fi
1546 fi
1547
1548   # Find a good install program.  We prefer a C program (faster),
1549 # so one script is as good as another.  But avoid the broken or
1550 # incompatible versions:
1551 # SysV /etc/install, /usr/sbin/install
1552 # SunOS /usr/etc/install
1553 # IRIX /sbin/install
1554 # AIX /bin/install
1555 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1556 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1557 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1558 # ./install, which can be erroneously created by make from ./install.sh.
1559 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1560 echo "configure:1561: checking for a BSD compatible install" >&5
1561 if test -z "$INSTALL"; then
1562 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1563   echo $ac_n "(cached) $ac_c" 1>&6
1564 else
1565     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1566   for ac_dir in $PATH; do
1567     # Account for people who put trailing slashes in PATH elements.
1568     case "$ac_dir/" in
1569     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1570     *)
1571       # OSF1 and SCO ODT 3.0 have their own names for install.
1572       # Don't use installbsd from OSF since it installs stuff as root
1573       # by default.
1574       for ac_prog in ginstall scoinst install; do
1575         if test -f $ac_dir/$ac_prog; then
1576           if test $ac_prog = install &&
1577             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1578             # AIX install.  It has an incompatible calling convention.
1579             :
1580           else
1581             ac_cv_path_install="$ac_dir/$ac_prog -c"
1582             break 2
1583           fi
1584         fi
1585       done
1586       ;;
1587     esac
1588   done
1589   IFS="$ac_save_IFS"
1590
1591 fi
1592   if test "${ac_cv_path_install+set}" = set; then
1593     INSTALL="$ac_cv_path_install"
1594   else
1595     # As a last resort, use the slow shell script.  We don't cache a
1596     # path for INSTALL within a source directory, because that will
1597     # break other packages using the cache if that directory is
1598     # removed, or if the path is relative.
1599     INSTALL="$ac_install_sh"
1600   fi
1601 fi
1602 echo "$ac_t""$INSTALL" 1>&6
1603
1604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1605 # It thinks the first close brace ends the variable substitution.
1606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1607
1608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1609
1610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1611
1612
1613   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1614 echo "configure:1615: checking whether to enable maintainer-specific portions of Makefiles" >&5
1615     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1616 if test "${enable_maintainer_mode+set}" = set; then
1617   enableval="$enable_maintainer_mode"
1618   USE_MAINTAINER_MODE=$enableval
1619 else
1620   USE_MAINTAINER_MODE=no
1621 fi
1622
1623   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1624   
1625
1626 if test $USE_MAINTAINER_MODE = yes; then
1627   MAINTAINER_MODE_TRUE=
1628   MAINTAINER_MODE_FALSE='#'
1629 else
1630   MAINTAINER_MODE_TRUE='#'
1631   MAINTAINER_MODE_FALSE=
1632 fi
1633   MAINT=$MAINTAINER_MODE_TRUE
1634   
1635
1636
1637   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1638   # at least currently, we never actually build a program, so we never
1639   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1640   # fails, because we are probably configuring with a cross compiler
1641   # which can't create executables.  So we include AC_EXEEXT to keep
1642   # automake happy, but we don't execute it, since we don't care about
1643   # the result.
1644   if false; then
1645     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1646     # to nothing, so nothing would remain between `then' and `fi' if it
1647     # were not for the `:' below.
1648     :
1649     
1650
1651 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1652 echo "configure:1653: checking for executable suffix" >&5
1653 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1654   echo $ac_n "(cached) $ac_c" 1>&6
1655 else
1656   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1657   ac_cv_exeext=.exe
1658 else
1659   rm -f conftest*
1660   echo 'int main () { return 0; }' > conftest.$ac_ext
1661   ac_cv_exeext=
1662   if { (eval echo configure:1663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1663     for file in conftest.*; do
1664       case $file in
1665       *.c | *.o | *.obj) ;;
1666       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1667       esac
1668     done
1669   else
1670     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1671   fi
1672   rm -f conftest*
1673   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1674 fi
1675 fi
1676
1677 EXEEXT=""
1678 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1679 echo "$ac_t""${ac_cv_exeext}" 1>&6
1680 ac_exeext=$EXEEXT
1681
1682   fi
1683
1684   . ${glibcpp_basedir}/configure.host
1685
1686   case ${glibcpp_basedir} in
1687     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1688     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1689   esac
1690
1691   # This does for the target what configure.host does for the host.  In
1692   # addition to possibly modifying the same flags, it also sets up symlinks.
1693   
1694     . ${glibcpp_basedir}/configure.target
1695     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1696     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1697
1698
1699   # 
1700
1701
1702
1703 # Check whether --enable-shared or --disable-shared was given.
1704 if test "${enable_shared+set}" = set; then
1705   enableval="$enable_shared"
1706   p=${PACKAGE-default}
1707 case $enableval in
1708 yes) enable_shared=yes ;;
1709 no) enable_shared=no ;;
1710 *)
1711   enable_shared=no
1712   # Look at the argument we got.  We use all the common list separators.
1713   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1714   for pkg in $enableval; do
1715     if test "X$pkg" = "X$p"; then
1716       enable_shared=yes
1717     fi
1718   done
1719   IFS="$ac_save_ifs"
1720   ;;
1721 esac
1722 else
1723   enable_shared=yes
1724 fi
1725
1726 # Check whether --enable-static or --disable-static was given.
1727 if test "${enable_static+set}" = set; then
1728   enableval="$enable_static"
1729   p=${PACKAGE-default}
1730 case $enableval in
1731 yes) enable_static=yes ;;
1732 no) enable_static=no ;;
1733 *)
1734   enable_static=no
1735   # Look at the argument we got.  We use all the common list separators.
1736   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1737   for pkg in $enableval; do
1738     if test "X$pkg" = "X$p"; then
1739       enable_static=yes
1740     fi
1741   done
1742   IFS="$ac_save_ifs"
1743   ;;
1744 esac
1745 else
1746   enable_static=yes
1747 fi
1748
1749 # Check whether --enable-fast-install or --disable-fast-install was given.
1750 if test "${enable_fast_install+set}" = set; then
1751   enableval="$enable_fast_install"
1752   p=${PACKAGE-default}
1753 case $enableval in
1754 yes) enable_fast_install=yes ;;
1755 no) enable_fast_install=no ;;
1756 *)
1757   enable_fast_install=no
1758   # Look at the argument we got.  We use all the common list separators.
1759   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1760   for pkg in $enableval; do
1761     if test "X$pkg" = "X$p"; then
1762       enable_fast_install=yes
1763     fi
1764   done
1765   IFS="$ac_save_ifs"
1766   ;;
1767 esac
1768 else
1769   enable_fast_install=yes
1770 fi
1771
1772 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1773 if test "${with_gnu_ld+set}" = set; then
1774   withval="$with_gnu_ld"
1775   test "$withval" = no || with_gnu_ld=yes
1776 else
1777   with_gnu_ld=no
1778 fi
1779
1780 ac_prog=ld
1781 if test "$GCC" = yes; then
1782   # Check if gcc -print-prog-name=ld gives a path.
1783   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1784 echo "configure:1785: checking for ld used by GCC" >&5
1785   case $host in
1786   *-*-mingw*)
1787     # gcc leaves a trailing carriage return which upsets mingw
1788     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1789   *)
1790     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1791   esac
1792   case $ac_prog in
1793     # Accept absolute paths.
1794     [\\/]* | [A-Za-z]:[\\/]*)
1795       re_direlt='/[^/][^/]*/\.\./'
1796       # Canonicalize the path of ld
1797       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1798       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1799         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1800       done
1801       test -z "$LD" && LD="$ac_prog"
1802       ;;
1803   "")
1804     # If it fails, then pretend we aren't using GCC.
1805     ac_prog=ld
1806     ;;
1807   *)
1808     # If it is relative, then search for the first ld in PATH.
1809     with_gnu_ld=unknown
1810     ;;
1811   esac
1812 elif test "$with_gnu_ld" = yes; then
1813   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1814 echo "configure:1815: checking for GNU ld" >&5
1815 else
1816   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1817 echo "configure:1818: checking for non-GNU ld" >&5
1818 fi
1819 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1820   echo $ac_n "(cached) $ac_c" 1>&6
1821 else
1822   if test -z "$LD"; then
1823   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1824   for ac_dir in $PATH; do
1825     test -z "$ac_dir" && ac_dir=.
1826     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1827       lt_cv_path_LD="$ac_dir/$ac_prog"
1828       # Check to see if the program is GNU ld.  I'd rather use --version,
1829       # but apparently some GNU ld's only accept -v.
1830       # Break only if it was the GNU/non-GNU ld that we prefer.
1831       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1832         test "$with_gnu_ld" != no && break
1833       else
1834         test "$with_gnu_ld" != yes && break
1835       fi
1836     fi
1837   done
1838   IFS="$ac_save_ifs"
1839 else
1840   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1841 fi
1842 fi
1843
1844 LD="$lt_cv_path_LD"
1845 if test -n "$LD"; then
1846   echo "$ac_t""$LD" 1>&6
1847 else
1848   echo "$ac_t""no" 1>&6
1849 fi
1850 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1851 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1852 echo "configure:1853: checking if the linker ($LD) is GNU ld" >&5
1853 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1854   echo $ac_n "(cached) $ac_c" 1>&6
1855 else
1856   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1857 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1858   lt_cv_prog_gnu_ld=yes
1859 else
1860   lt_cv_prog_gnu_ld=no
1861 fi
1862 fi
1863
1864 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1865 with_gnu_ld=$lt_cv_prog_gnu_ld
1866
1867
1868 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1869 echo "configure:1870: checking for $LD option to reload object files" >&5
1870 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1871   echo $ac_n "(cached) $ac_c" 1>&6
1872 else
1873   lt_cv_ld_reload_flag='-r'
1874 fi
1875
1876 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1877 reload_flag=$lt_cv_ld_reload_flag
1878 test -n "$reload_flag" && reload_flag=" $reload_flag"
1879
1880 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1881 echo "configure:1882: checking for BSD-compatible nm" >&5
1882 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1883   echo $ac_n "(cached) $ac_c" 1>&6
1884 else
1885   if test -n "$NM"; then
1886   # Let the user override the test.
1887   lt_cv_path_NM="$NM"
1888 else
1889   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1890   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1891     test -z "$ac_dir" && ac_dir=.
1892     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1893     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1894       # Check to see if the nm accepts a BSD-compat flag.
1895       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1896       #   nm: unknown option "B" ignored
1897       # Tru64's nm complains that /dev/null is an invalid object file
1898       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1899         lt_cv_path_NM="$tmp_nm -B"
1900         break
1901       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1902         lt_cv_path_NM="$tmp_nm -p"
1903         break
1904       else
1905         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1906         continue # so that we can try to find one that supports BSD flags
1907       fi
1908     fi
1909   done
1910   IFS="$ac_save_ifs"
1911   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1912 fi
1913 fi
1914
1915 NM="$lt_cv_path_NM"
1916 echo "$ac_t""$NM" 1>&6
1917
1918 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1919 echo "configure:1920: checking how to recognise dependant libraries" >&5
1920 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1921   echo $ac_n "(cached) $ac_c" 1>&6
1922 else
1923   lt_cv_file_magic_cmd='$MAGIC_CMD'
1924 lt_cv_file_magic_test_file=
1925 lt_cv_deplibs_check_method='unknown'
1926 # Need to set the preceding variable on all platforms that support
1927 # interlibrary dependencies.
1928 # 'none' -- dependencies not supported.
1929 # `unknown' -- same as none, but documents that we really don't know.
1930 # 'pass_all' -- all dependencies passed with no checks.
1931 # 'test_compile' -- check by making test program.
1932 # 'file_magic [regex]' -- check by looking for files in library path
1933 # which responds to the $file_magic_cmd with a given egrep regex.
1934 # If you have `file' or equivalent on your system and you're not sure
1935 # whether `pass_all' will *always* work, you probably want this one.
1936
1937 case $host_os in
1938 aix*)
1939   lt_cv_deplibs_check_method=pass_all
1940   ;;
1941
1942 beos*)
1943   lt_cv_deplibs_check_method=pass_all
1944   ;;
1945
1946 bsdi4*)
1947   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1948   lt_cv_file_magic_cmd='/usr/bin/file -L'
1949   lt_cv_file_magic_test_file=/shlib/libc.so
1950   ;;
1951
1952 cygwin* | mingw* |pw32*)
1953   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1954   lt_cv_file_magic_cmd='$OBJDUMP -f'
1955   ;;
1956
1957 darwin* | rhapsody*)
1958   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1959   lt_cv_file_magic_cmd='/usr/bin/file -L'
1960   case "$host_os" in
1961   rhapsody* | darwin1.012)
1962     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1963     ;;
1964   *) # Darwin 1.3 on
1965     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1966     ;;
1967   esac
1968   ;;
1969
1970 freebsd* )
1971   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1972     case $host_cpu in
1973     i*86 )
1974       # Not sure whether the presence of OpenBSD here was a mistake.
1975       # Let's accept both of them until this is cleared up.
1976       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1977       lt_cv_file_magic_cmd=/usr/bin/file
1978       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1979       ;;
1980     esac
1981   else
1982     lt_cv_deplibs_check_method=pass_all
1983   fi
1984   ;;
1985
1986 gnu*)
1987   lt_cv_deplibs_check_method=pass_all
1988   ;;
1989
1990 hpux10.20*|hpux11*)
1991   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1992   lt_cv_file_magic_cmd=/usr/bin/file
1993   lt_cv_file_magic_test_file=/usr/lib/libc.sl
1994   ;;
1995
1996 irix5* | irix6*)
1997   case $host_os in
1998   irix5*)
1999     # this will be overridden with pass_all, but let us keep it just in case
2000     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2001     ;;
2002   *)
2003     case $LD in
2004     *-32|*"-32 ") libmagic=32-bit;;
2005     *-n32|*"-n32 ") libmagic=N32;;
2006     *-64|*"-64 ") libmagic=64-bit;;
2007     *) libmagic=never-match;;
2008     esac
2009     # this will be overridden with pass_all, but let us keep it just in case
2010     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2011     ;;
2012   esac
2013   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2014   lt_cv_deplibs_check_method=pass_all
2015   ;;
2016
2017 # This must be Linux ELF.
2018 linux-gnu*)
2019   case $host_cpu in
2020   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2021     lt_cv_deplibs_check_method=pass_all ;;
2022   *)
2023     # glibc up to 2.1.1 does not perform some relocations on ARM
2024     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2025   esac
2026   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2027   ;;
2028
2029 netbsd*)
2030   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2031     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2032   else
2033     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2034   fi
2035   ;;
2036
2037 newsos6)
2038   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2039   lt_cv_file_magic_cmd=/usr/bin/file
2040   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2041   ;;
2042
2043 osf3* | osf4* | osf5*)
2044   # this will be overridden with pass_all, but let us keep it just in case
2045   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2046   lt_cv_file_magic_test_file=/shlib/libc.so
2047   lt_cv_deplibs_check_method=pass_all
2048   ;;
2049
2050 sco3.2v5*)
2051   lt_cv_deplibs_check_method=pass_all
2052   ;;
2053
2054 solaris*)
2055   lt_cv_deplibs_check_method=pass_all
2056   lt_cv_file_magic_test_file=/lib/libc.so
2057   ;;
2058
2059 sysv5uw[78]* | sysv4*uw2*)
2060   lt_cv_deplibs_check_method=pass_all
2061   ;;
2062
2063 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2064   case $host_vendor in
2065   ncr)
2066     lt_cv_deplibs_check_method=pass_all
2067     ;;
2068   motorola)
2069     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]'
2070     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2071     ;;
2072   esac
2073   ;;
2074 esac
2075
2076 fi
2077
2078 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2079 file_magic_cmd=$lt_cv_file_magic_cmd
2080 deplibs_check_method=$lt_cv_deplibs_check_method
2081
2082 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2083 echo "configure:2084: checking for object suffix" >&5
2084 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2085   echo $ac_n "(cached) $ac_c" 1>&6
2086 else
2087   rm -f conftest*
2088 echo 'int i = 1;' > conftest.$ac_ext
2089 if { (eval echo configure:2090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2090   for ac_file in conftest.*; do
2091     case $ac_file in
2092     *.c) ;;
2093     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2094     esac
2095   done
2096 else
2097   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2098 fi
2099 rm -f conftest*
2100 fi
2101
2102 echo "$ac_t""$ac_cv_objext" 1>&6
2103 OBJEXT=$ac_cv_objext
2104 ac_objext=$ac_cv_objext
2105
2106 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2107
2108 # Only perform the check for file, if the check method requires it
2109 case $deplibs_check_method in
2110 file_magic*)
2111   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2112     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2113 echo "configure:2114: checking for ${ac_tool_prefix}file" >&5
2114 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2115   echo $ac_n "(cached) $ac_c" 1>&6
2116 else
2117   case $MAGIC_CMD in
2118   /*)
2119   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2120   ;;
2121   ?:/*)
2122   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2123   ;;
2124   *)
2125   ac_save_MAGIC_CMD="$MAGIC_CMD"
2126   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2127   ac_dummy="/usr/bin:$PATH"
2128   for ac_dir in $ac_dummy; do
2129     test -z "$ac_dir" && ac_dir=.
2130     if test -f $ac_dir/${ac_tool_prefix}file; then
2131       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2132       if test -n "$file_magic_test_file"; then
2133         case $deplibs_check_method in
2134         "file_magic "*)
2135           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2136           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2137           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2138             egrep "$file_magic_regex" > /dev/null; then
2139             :
2140           else
2141             cat <<EOF 1>&2
2142
2143 *** Warning: the command libtool uses to detect shared libraries,
2144 *** $file_magic_cmd, produces output that libtool cannot recognize.
2145 *** The result is that libtool may fail to recognize shared libraries
2146 *** as such.  This will affect the creation of libtool libraries that
2147 *** depend on shared libraries, but programs linked with such libtool
2148 *** libraries will work regardless of this problem.  Nevertheless, you
2149 *** may want to report the problem to your system manager and/or to
2150 *** bug-libtool@gnu.org
2151
2152 EOF
2153           fi ;;
2154         esac
2155       fi
2156       break
2157     fi
2158   done
2159   IFS="$ac_save_ifs"
2160   MAGIC_CMD="$ac_save_MAGIC_CMD"
2161   ;;
2162 esac
2163 fi
2164
2165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2166 if test -n "$MAGIC_CMD"; then
2167   echo "$ac_t""$MAGIC_CMD" 1>&6
2168 else
2169   echo "$ac_t""no" 1>&6
2170 fi
2171
2172 if test -z "$lt_cv_path_MAGIC_CMD"; then
2173   if test -n "$ac_tool_prefix"; then
2174     echo $ac_n "checking for file""... $ac_c" 1>&6
2175 echo "configure:2176: checking for file" >&5
2176 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2177   echo $ac_n "(cached) $ac_c" 1>&6
2178 else
2179   case $MAGIC_CMD in
2180   /*)
2181   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2182   ;;
2183   ?:/*)
2184   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2185   ;;
2186   *)
2187   ac_save_MAGIC_CMD="$MAGIC_CMD"
2188   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2189   ac_dummy="/usr/bin:$PATH"
2190   for ac_dir in $ac_dummy; do
2191     test -z "$ac_dir" && ac_dir=.
2192     if test -f $ac_dir/file; then
2193       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2194       if test -n "$file_magic_test_file"; then
2195         case $deplibs_check_method in
2196         "file_magic "*)
2197           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2198           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2199           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2200             egrep "$file_magic_regex" > /dev/null; then
2201             :
2202           else
2203             cat <<EOF 1>&2
2204
2205 *** Warning: the command libtool uses to detect shared libraries,
2206 *** $file_magic_cmd, produces output that libtool cannot recognize.
2207 *** The result is that libtool may fail to recognize shared libraries
2208 *** as such.  This will affect the creation of libtool libraries that
2209 *** depend on shared libraries, but programs linked with such libtool
2210 *** libraries will work regardless of this problem.  Nevertheless, you
2211 *** may want to report the problem to your system manager and/or to
2212 *** bug-libtool@gnu.org
2213
2214 EOF
2215           fi ;;
2216         esac
2217       fi
2218       break
2219     fi
2220   done
2221   IFS="$ac_save_ifs"
2222   MAGIC_CMD="$ac_save_MAGIC_CMD"
2223   ;;
2224 esac
2225 fi
2226
2227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2228 if test -n "$MAGIC_CMD"; then
2229   echo "$ac_t""$MAGIC_CMD" 1>&6
2230 else
2231   echo "$ac_t""no" 1>&6
2232 fi
2233
2234   else
2235     MAGIC_CMD=:
2236   fi
2237 fi
2238
2239   fi
2240   ;;
2241 esac
2242
2243 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2244 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2246 echo "configure:2247: checking for $ac_word" >&5
2247 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2248   echo $ac_n "(cached) $ac_c" 1>&6
2249 else
2250   if test -n "$RANLIB"; then
2251   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2252 else
2253   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2254   ac_dummy="$PATH"
2255   for ac_dir in $ac_dummy; do
2256     test -z "$ac_dir" && ac_dir=.
2257     if test -f $ac_dir/$ac_word; then
2258       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2259       break
2260     fi
2261   done
2262   IFS="$ac_save_ifs"
2263 fi
2264 fi
2265 RANLIB="$ac_cv_prog_RANLIB"
2266 if test -n "$RANLIB"; then
2267   echo "$ac_t""$RANLIB" 1>&6
2268 else
2269   echo "$ac_t""no" 1>&6
2270 fi
2271
2272
2273 if test -z "$ac_cv_prog_RANLIB"; then
2274 if test -n "$ac_tool_prefix"; then
2275   # Extract the first word of "ranlib", so it can be a program name with args.
2276 set dummy ranlib; ac_word=$2
2277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2278 echo "configure:2279: checking for $ac_word" >&5
2279 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2280   echo $ac_n "(cached) $ac_c" 1>&6
2281 else
2282   if test -n "$RANLIB"; then
2283   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2284 else
2285   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2286   ac_dummy="$PATH"
2287   for ac_dir in $ac_dummy; do
2288     test -z "$ac_dir" && ac_dir=.
2289     if test -f $ac_dir/$ac_word; then
2290       ac_cv_prog_RANLIB="ranlib"
2291       break
2292     fi
2293   done
2294   IFS="$ac_save_ifs"
2295   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2296 fi
2297 fi
2298 RANLIB="$ac_cv_prog_RANLIB"
2299 if test -n "$RANLIB"; then
2300   echo "$ac_t""$RANLIB" 1>&6
2301 else
2302   echo "$ac_t""no" 1>&6
2303 fi
2304
2305 else
2306   RANLIB=":"
2307 fi
2308 fi
2309
2310 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2311 set dummy ${ac_tool_prefix}strip; ac_word=$2
2312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2313 echo "configure:2314: checking for $ac_word" >&5
2314 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2315   echo $ac_n "(cached) $ac_c" 1>&6
2316 else
2317   if test -n "$STRIP"; then
2318   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2319 else
2320   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2321   ac_dummy="$PATH"
2322   for ac_dir in $ac_dummy; do
2323     test -z "$ac_dir" && ac_dir=.
2324     if test -f $ac_dir/$ac_word; then
2325       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2326       break
2327     fi
2328   done
2329   IFS="$ac_save_ifs"
2330 fi
2331 fi
2332 STRIP="$ac_cv_prog_STRIP"
2333 if test -n "$STRIP"; then
2334   echo "$ac_t""$STRIP" 1>&6
2335 else
2336   echo "$ac_t""no" 1>&6
2337 fi
2338
2339
2340 if test -z "$ac_cv_prog_STRIP"; then
2341 if test -n "$ac_tool_prefix"; then
2342   # Extract the first word of "strip", so it can be a program name with args.
2343 set dummy strip; ac_word=$2
2344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2345 echo "configure:2346: checking for $ac_word" >&5
2346 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2347   echo $ac_n "(cached) $ac_c" 1>&6
2348 else
2349   if test -n "$STRIP"; then
2350   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2351 else
2352   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2353   ac_dummy="$PATH"
2354   for ac_dir in $ac_dummy; do
2355     test -z "$ac_dir" && ac_dir=.
2356     if test -f $ac_dir/$ac_word; then
2357       ac_cv_prog_STRIP="strip"
2358       break
2359     fi
2360   done
2361   IFS="$ac_save_ifs"
2362   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2363 fi
2364 fi
2365 STRIP="$ac_cv_prog_STRIP"
2366 if test -n "$STRIP"; then
2367   echo "$ac_t""$STRIP" 1>&6
2368 else
2369   echo "$ac_t""no" 1>&6
2370 fi
2371
2372 else
2373   STRIP=":"
2374 fi
2375 fi
2376
2377
2378 # Check for any special flags to pass to ltconfig.
2379 libtool_flags="--cache-file=$cache_file"
2380 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2381 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2382 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2383 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2384 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2385 libtool_flags="$libtool_flags --enable-dlopen"
2386
2387 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2388 if test "${enable_libtool_lock+set}" = set; then
2389   enableval="$enable_libtool_lock"
2390   :
2391 fi
2392
2393 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2394 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2395
2396 # Check whether --with-pic or --without-pic was given.
2397 if test "${with_pic+set}" = set; then
2398   withval="$with_pic"
2399   pic_mode="$withval"
2400 else
2401   pic_mode=default
2402 fi
2403
2404 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2405 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2406
2407 # Some flags need to be propagated to the compiler or linker for good
2408 # libtool support.
2409 case $host in
2410 *-*-irix6*)
2411   # Find out which ABI we are using.
2412   echo '#line 2413 "configure"' > conftest.$ac_ext
2413   if { (eval echo configure:2414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2414     case `/usr/bin/file conftest.$ac_objext` in
2415     *32-bit*)
2416       LD="${LD-ld} -32"
2417       ;;
2418     *N32*)
2419       LD="${LD-ld} -n32"
2420       ;;
2421     *64-bit*)
2422       LD="${LD-ld} -64"
2423       ;;
2424     esac
2425   fi
2426   rm -rf conftest*
2427   ;;
2428
2429 *-*-sco3.2v5*)
2430   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2431   SAVE_CFLAGS="$CFLAGS"
2432   CFLAGS="$CFLAGS -belf"
2433   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2434 echo "configure:2435: checking whether the C compiler needs -belf" >&5
2435 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2436   echo $ac_n "(cached) $ac_c" 1>&6
2437 else
2438   
2439      ac_ext=c
2440 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2441 ac_cpp='$CPP $CPPFLAGS'
2442 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2443 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2444 cross_compiling=$ac_cv_prog_cc_cross
2445
2446      cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2449
2450 int main() {
2451
2452 ; return 0; }
2453 EOF
2454 if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2455   rm -rf conftest*
2456   lt_cv_cc_needs_belf=yes
2457 else
2458   echo "configure: failed program was:" >&5
2459   cat conftest.$ac_ext >&5
2460   rm -rf conftest*
2461   lt_cv_cc_needs_belf=no
2462 fi
2463 rm -f conftest*
2464      ac_ext=c
2465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2469 cross_compiling=$ac_cv_prog_cc_cross
2470
2471 fi
2472
2473 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2474   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2475     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2476     CFLAGS="$SAVE_CFLAGS"
2477   fi
2478   ;;
2479
2480
2481 esac
2482
2483 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2484 echo "configure:2485: checking how to run the C++ preprocessor" >&5
2485 if test -z "$CXXCPP"; then
2486 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2487   echo $ac_n "(cached) $ac_c" 1>&6
2488 else
2489   ac_ext=C
2490 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2491 ac_cpp='$CXXCPP $CPPFLAGS'
2492 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2493 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2494 cross_compiling=$ac_cv_prog_cxx_cross
2495   CXXCPP="${CXX-g++} -E"
2496   cat > conftest.$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2499 #include <stdlib.h>
2500 EOF
2501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2502 { (eval echo configure:2503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2504 if test -z "$ac_err"; then
2505   :
2506 else
2507   echo "$ac_err" >&5
2508   echo "configure: failed program was:" >&5
2509   cat conftest.$ac_ext >&5
2510   rm -rf conftest*
2511   CXXCPP=/lib/cpp
2512 fi
2513 rm -f conftest*
2514   ac_cv_prog_CXXCPP="$CXXCPP"
2515 ac_ext=c
2516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2517 ac_cpp='$CPP $CPPFLAGS'
2518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2520 cross_compiling=$ac_cv_prog_cc_cross
2521 fi
2522 fi
2523 CXXCPP="$ac_cv_prog_CXXCPP"
2524 echo "$ac_t""$CXXCPP" 1>&6
2525
2526
2527 # Save cache, so that ltconfig can load it
2528 cat > confcache <<\EOF
2529 # This file is a shell script that caches the results of configure
2530 # tests run on this system so they can be shared between configure
2531 # scripts and configure runs.  It is not useful on other systems.
2532 # If it contains results you don't want to keep, you may remove or edit it.
2533 #
2534 # By default, configure uses ./config.cache as the cache file,
2535 # creating it if it does not exist already.  You can give configure
2536 # the --cache-file=FILE option to use a different cache file; that is
2537 # what configure does when it calls configure scripts in
2538 # subdirectories, so they share the cache.
2539 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2540 # config.status only pays attention to the cache file if you give it the
2541 # --recheck option to rerun configure.
2542 #
2543 EOF
2544 # The following way of writing the cache mishandles newlines in values,
2545 # but we know of no workaround that is simple, portable, and efficient.
2546 # So, don't put newlines in cache variables' values.
2547 # Ultrix sh set writes to stderr and can't be redirected directly,
2548 # and sets the high bit in the cache file unless we assign to the vars.
2549 (set) 2>&1 |
2550   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2551   *ac_space=\ *)
2552     # `set' does not quote correctly, so add quotes (double-quote substitution
2553     # turns \\\\ into \\, and sed turns \\ into \).
2554     sed -n \
2555       -e "s/'/'\\\\''/g" \
2556       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2557     ;;
2558   *)
2559     # `set' quotes correctly as required by POSIX, so do not add quotes.
2560     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2561     ;;
2562   esac >> confcache
2563 if cmp -s $cache_file confcache; then
2564   :
2565 else
2566   if test -w $cache_file; then
2567     echo "updating cache $cache_file"
2568     cat confcache > $cache_file
2569   else
2570     echo "not updating unwritable cache $cache_file"
2571   fi
2572 fi
2573 rm -f confcache
2574
2575
2576 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2577 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2578 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2579 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2580 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2581 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2582 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2583 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2584 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2585 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2586
2587 # Reload cache, that may have been modified by ltconfig
2588 if test -r "$cache_file"; then
2589   echo "loading cache $cache_file"
2590   . $cache_file
2591 else
2592   echo "creating cache $cache_file"
2593   > $cache_file
2594 fi
2595
2596
2597 # This can be used to rebuild libtool when needed
2598 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2599
2600 # Always use our own libtool.
2601 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2602
2603 # Redirect the config.log output again, so that the ltconfig log is not
2604 # clobbered by the next message.
2605 exec 5>>./config.log
2606
2607
2608
2609 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2610 lt_save_CC="$CC"
2611 lt_save_CFLAGS="$CFLAGS"
2612 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2613 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2614 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2615 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2616 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2617 deplibs_check_method="$deplibs_check_method" \
2618 file_magic_cmd="$file_magic_cmd" \
2619 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2620 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2621 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2622 CC="$lt_save_CC"
2623 CFLAGS="$lt_save_CFLAGS"
2624
2625 # Redirect the config.log output again, so that the ltconfig log is not
2626 # clobbered by the next message.
2627 exec 5>>./config.log
2628
2629   
2630
2631   
2632          
2633          
2634
2635
2636
2637 # Check for c++ or library specific bits that don't require linking.
2638 #GLIBCPP_CHECK_COMPILER_VERSION
2639 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2640 echo "configure:2641: checking for GNU make" >&5
2641 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2642   echo $ac_n "(cached) $ac_c" 1>&6
2643 else
2644   _cv_gnu_make_command='' ;
2645           for a in "${MAKE-make}" make gmake gnumake ; do
2646                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2647                   then
2648                           _cv_gnu_make_command=$a ;
2649                           break;
2650                   fi
2651           done ;
2652   
2653 fi
2654
2655 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2656   if test  "x$_cv_gnu_make_command" != "x"  ; then
2657           ifGNUmake='' ;
2658   else
2659           ifGNUmake='#' ;
2660   fi
2661   
2662
2663
2664 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2665 # Check whether --enable-debug or --disable-debug was given.
2666 if test "${enable_debug+set}" = set; then
2667   enableval="$enable_debug"
2668   case "${enableval}" in
2669  yes) enable_debug=yes ;;
2670  no)  enable_debug=no ;;
2671  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2672  esac
2673 else
2674   enable_debug=no
2675 fi
2676
2677 case "${enable_debug}" in
2678     yes) 
2679         DEBUG_FLAGS='-O0 -ggdb3'                        
2680         ;; 
2681     no)   
2682         DEBUG_FLAGS='-g'
2683         ;;
2684 esac
2685
2686
2687 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2688 echo "configure:2689: checking how to run the C preprocessor" >&5
2689 # On Suns, sometimes $CPP names a directory.
2690 if test -n "$CPP" && test -d "$CPP"; then
2691   CPP=
2692 fi
2693 if test -z "$CPP"; then
2694 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2695   echo $ac_n "(cached) $ac_c" 1>&6
2696 else
2697     # This must be in double quotes, not single quotes, because CPP may get
2698   # substituted into the Makefile and "${CC-cc}" will confuse make.
2699   CPP="${CC-cc} -E"
2700   # On the NeXT, cc -E runs the code through the compiler's parser,
2701   # not just through cpp.
2702   cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 #include <assert.h>
2706 Syntax Error
2707 EOF
2708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2709 { (eval echo configure:2710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2711 if test -z "$ac_err"; then
2712   :
2713 else
2714   echo "$ac_err" >&5
2715   echo "configure: failed program was:" >&5
2716   cat conftest.$ac_ext >&5
2717   rm -rf conftest*
2718   CPP="${CC-cc} -E -traditional-cpp"
2719   cat > conftest.$ac_ext <<EOF
2720 #line 2721 "configure"
2721 #include "confdefs.h"
2722 #include <assert.h>
2723 Syntax Error
2724 EOF
2725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2726 { (eval echo configure:2727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2728 if test -z "$ac_err"; then
2729   :
2730 else
2731   echo "$ac_err" >&5
2732   echo "configure: failed program was:" >&5
2733   cat conftest.$ac_ext >&5
2734   rm -rf conftest*
2735   CPP="${CC-cc} -nologo -E"
2736   cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2739 #include <assert.h>
2740 Syntax Error
2741 EOF
2742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2743 { (eval echo configure:2744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2745 if test -z "$ac_err"; then
2746   :
2747 else
2748   echo "$ac_err" >&5
2749   echo "configure: failed program was:" >&5
2750   cat conftest.$ac_ext >&5
2751   rm -rf conftest*
2752   CPP=/lib/cpp
2753 fi
2754 rm -f conftest*
2755 fi
2756 rm -f conftest*
2757 fi
2758 rm -f conftest*
2759   ac_cv_prog_CPP="$CPP"
2760 fi
2761   CPP="$ac_cv_prog_CPP"
2762 else
2763   ac_cv_prog_CPP="$CPP"
2764 fi
2765 echo "$ac_t""$CPP" 1>&6
2766
2767
2768   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2769 echo "configure:2770: checking for cstdio to use" >&5
2770   # Check whether --enable-cstdio or --disable-cstdio was given.
2771 if test "${enable_cstdio+set}" = set; then
2772   enableval="$enable_cstdio"
2773   if test x$enable_cstdio = xno; then
2774      enable_cstdio=stdio
2775   fi
2776 else
2777   enable_cstdio=stdio
2778 fi
2779
2780
2781   enable_cstdio_flag=$enable_cstdio
2782
2783     case x${enable_cstdio_flag} in
2784     xlibio)
2785       CSTDIO_H=config/io/c_io_libio.h
2786       BASIC_FILE_H=config/io/basic_file_libio.h
2787       BASIC_FILE_CC=config/io/basic_file_libio.cc
2788       echo "$ac_t""libio" 1>&6
2789
2790       # see if we are on a system with libio native (ie, linux)
2791       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2792 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2793 echo "configure:2794: checking for libio.h" >&5
2794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2795   echo $ac_n "(cached) $ac_c" 1>&6
2796 else
2797   cat > conftest.$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2800 #include <libio.h>
2801 EOF
2802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2803 { (eval echo configure:2804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2805 if test -z "$ac_err"; then
2806   rm -rf conftest*
2807   eval "ac_cv_header_$ac_safe=yes"
2808 else
2809   echo "$ac_err" >&5
2810   echo "configure: failed program was:" >&5
2811   cat conftest.$ac_ext >&5
2812   rm -rf conftest*
2813   eval "ac_cv_header_$ac_safe=no"
2814 fi
2815 rm -f conftest*
2816 fi
2817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2818   echo "$ac_t""yes" 1>&6
2819   has_libio=yes
2820 else
2821   echo "$ac_t""no" 1>&6
2822 has_libio=no
2823 fi
2824
2825
2826       # Need to check and see what version of glibc is being used. If
2827       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2828       # compile most of libio for linux systems.
2829       if test x$has_libio = x"yes"; then
2830         case "$target" in
2831           *-*-linux*)
2832               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2833 echo "configure:2834: checking for glibc version >= 2.2" >&5
2834               cat > conftest.$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2837
2838             #include <features.h>
2839               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2840                     ok
2841               #endif
2842               
2843 EOF
2844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2845   egrep "ok" >/dev/null 2>&1; then
2846   rm -rf conftest*
2847   glibc_satisfactory=yes
2848 else
2849   rm -rf conftest*
2850   glibc_satisfactory=no
2851 fi
2852 rm -f conftest*
2853
2854               echo "$ac_t""$glibc_satisfactory" 1>&6
2855             ;;
2856         esac
2857
2858         # XXX at the moment, admit defeat and force the recompilation
2859         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2860         glibc_satisfactory=no        
2861
2862         if test x$glibc_satisfactory = x"yes"; then
2863            need_libio=no
2864            need_wlibio=no        
2865         else
2866            need_libio=yes
2867            # bkoz XXX need to add checks to enable this
2868            # pme XXX here's a first pass at such a check
2869            if test x$enable_c_mbchar != xno; then
2870               need_wlibio=yes
2871            else
2872               need_wlibio=no
2873            fi
2874         fi
2875
2876       else
2877          # Using libio, but <libio.h> doesn't exist on the target system. . .
2878          need_libio=yes
2879          # bkoz XXX need to add checks to enable this
2880          # pme XXX here's a first pass at such a check
2881          if test x$enable_c_mbchar != xno; then
2882              need_wlibio=yes
2883          else
2884              need_wlibio=no
2885          fi
2886       fi
2887       ;;
2888     xstdio | x | xno | xnone | xyes)
2889       # default
2890       CSTDIO_H=config/io/c_io_stdio.h
2891       BASIC_FILE_H=config/io/basic_file_stdio.h
2892       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2893       echo "$ac_t""stdio" 1>&6
2894
2895       # We're not using stdio.
2896       need_libio=no
2897       need_wlibio=no
2898       ;;
2899     *)
2900       echo "$enable_cstdio is an unknown io package" 1>&2
2901       exit 1
2902       ;;
2903   esac
2904   
2905   
2906   
2907
2908   # 2000-08-04 bkoz hack
2909   CCODECVT_C=config/io/c_io_libio_codecvt.c
2910   
2911   # 2000-08-04 bkoz hack
2912
2913   
2914
2915 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2916   GLIBCPP_BUILD_LIBIO_TRUE=
2917   GLIBCPP_BUILD_LIBIO_FALSE='#'
2918 else
2919   GLIBCPP_BUILD_LIBIO_TRUE='#'
2920   GLIBCPP_BUILD_LIBIO_FALSE=
2921 fi
2922   
2923
2924 if test "$need_libio" = yes; then
2925   GLIBCPP_NEED_LIBIO_TRUE=
2926   GLIBCPP_NEED_LIBIO_FALSE='#'
2927 else
2928   GLIBCPP_NEED_LIBIO_TRUE='#'
2929   GLIBCPP_NEED_LIBIO_FALSE=
2930 fi
2931   
2932
2933 if test "$need_wlibio" = yes; then
2934   GLIBCPP_NEED_WLIBIO_TRUE=
2935   GLIBCPP_NEED_WLIBIO_FALSE='#'
2936 else
2937   GLIBCPP_NEED_WLIBIO_TRUE='#'
2938   GLIBCPP_NEED_WLIBIO_FALSE=
2939 fi
2940   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2941     libio_la=../libio/libio.la
2942   else
2943     libio_la=
2944   fi
2945   
2946
2947
2948   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2949 echo "configure:2950: checking for clocale to use" >&5
2950   # Check whether --enable-clocale or --disable-clocale was given.
2951 if test "${enable_clocale+set}" = set; then
2952   enableval="$enable_clocale"
2953   if test x$enable_clocale = xno; then
2954      enable_clocale=generic
2955   fi
2956 else
2957   enable_clocale=generic
2958 fi
2959
2960
2961   enable_clocale_flag=$enable_clocale
2962
2963     case x${enable_clocale_flag} in
2964     xgeneric)
2965       echo "$ac_t""generic" 1>&6
2966
2967       # Don't use gettext.
2968       USE_NLS=no
2969
2970       CLOCALE_H=config/locale/c_locale_generic.h
2971       CLOCALE_CC=config/locale/c_locale_generic.cc
2972       CCODECVT_H=config/locale/codecvt_specializations_generic.h
2973       CCOLLATE_CC=config/locale/collate_members_generic.cc
2974       CMESSAGES_H=config/locale/messages_members_generic.h
2975       CMESSAGES_CC=config/locale/messages_members_generic.cc
2976       CMONEY_CC=config/locale/moneypunct_members_generic.cc
2977       CNUMERIC_CC=config/locale/numpunct_members_generic.cc
2978       CTIME_CC=config/locale/time_members_generic.cc
2979       ;;
2980     xgnu)
2981       echo "$ac_t""gnu" 1>&6
2982
2983       # Declare intention to use gettext, and add support for specific
2984       # languages.
2985       # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
2986       ALL_LINGUAS="de fr"
2987       # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
2988       # Need to deal with MSGFMT, USE_NLS, and glibcpp_[P,M]OFILES
2989       USE_NLS=yes
2990
2991       # Export the build objects.
2992       for ling in $ALL_LINGUAS; do \
2993         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
2994         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
2995       done
2996       
2997       
2998
2999       CLOCALE_H=config/locale/c_locale_gnu.h
3000       CLOCALE_CC=config/locale/c_locale_gnu.cc
3001       CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3002       CCOLLATE_CC=config/locale/collate_members_gnu.cc
3003       CMESSAGES_H=config/locale/messages_members_gnu.h
3004       CMESSAGES_CC=config/locale/messages_members_gnu.cc
3005       CMONEY_CC=config/locale/moneypunct_members_gnu.cc
3006       CNUMERIC_CC=config/locale/numpunct_members_gnu.cc
3007       CTIME_CC=config/locale/time_members_gnu.cc
3008       ;;
3009     xieee_1003.1)
3010       echo "$ac_t""generic" 1>&6
3011
3012       # Don't use gettext.
3013       USE_NLS=no
3014
3015       CLOCALE_H=config/locale/c_locale_ieee_1003.1-200x.h
3016       CLOCALE_CC=config/locale/c_locale_ieee_1003.1-200x.cc
3017       CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3018       CCOLLATE_CC=config/locale/collate_members_generic.cc
3019       CMESSAGES_H=config/locale/messages_members_ieee_1003.1-200x.h
3020       CMESSAGES_CC=config/locale/messages_members_ieee_1003.1-200x.cc
3021       CMONEY_CC=config/locale/moneypunct_members_generic.cc
3022       CNUMERIC_CC=config/locale/numpunct_members_generic.cc
3023       CTIME_CC=config/locale/time_members_generic.cc
3024       ;;
3025     *)
3026       echo "$enable_clocale is an unknown locale package" 1>&2
3027       exit 1
3028       ;;
3029   esac
3030
3031   # This is where the testsuite looks for locale catalogs, using the
3032   # -DLOCALEDIR define during testsuite compilation.
3033   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3034   
3035
3036   
3037   
3038   
3039   
3040   
3041   
3042   
3043   
3044   
3045   
3046
3047 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3048 if test "${enable_c_mbchar+set}" = set; then
3049   enableval="$enable_c_mbchar"
3050   case "$enableval" in
3051  yes) enable_c_mbchar=yes ;;
3052  no)  enable_c_mbchar=no ;;
3053  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3054  esac
3055 else
3056   enable_c_mbchar=yes
3057 fi
3058
3059   
3060   # Check whether --enable-c99 or --disable-c99 was given.
3061 if test "${enable_c99+set}" = set; then
3062   enableval="$enable_c99"
3063     case "$enableval" in
3064    yes) enable_c99=yes ;;
3065    no)  enable_c99=no ;;
3066    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3067    esac
3068 else
3069   enable_c99=yes
3070 fi
3071  
3072   
3073   ac_ext=C
3074 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3075 ac_cpp='$CXXCPP $CPPFLAGS'
3076 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3077 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3078 cross_compiling=$ac_cv_prog_cxx_cross
3079
3080
3081   # Check for the existence of <math.h> functions used if C99 is enabled.
3082   ac_c99_math=yes;
3083   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3084 echo "configure:3085: checking for ISO C99 support in <math.h>" >&5
3085   cat > conftest.$ac_ext <<EOF
3086 #line 3087 "configure"
3087 #include "confdefs.h"
3088 #include <math.h>
3089 int main() {
3090 fpclassify(0.0);
3091 ; return 0; }
3092 EOF
3093 if { (eval echo configure:3094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3094   :
3095 else
3096   echo "configure: failed program was:" >&5
3097   cat conftest.$ac_ext >&5
3098   rm -rf conftest*
3099   ac_c99_math=no
3100 fi
3101 rm -f conftest*
3102   cat > conftest.$ac_ext <<EOF
3103 #line 3104 "configure"
3104 #include "confdefs.h"
3105 #include <math.h>
3106 int main() {
3107 isfinite(0.0);
3108 ; return 0; }
3109 EOF
3110 if { (eval echo configure:3111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3111   :
3112 else
3113   echo "configure: failed program was:" >&5
3114   cat conftest.$ac_ext >&5
3115   rm -rf conftest*
3116   ac_c99_math=no
3117 fi
3118 rm -f conftest*
3119   cat > conftest.$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3122 #include <math.h>
3123 int main() {
3124 isinf(0.0);
3125 ; return 0; }
3126 EOF
3127 if { (eval echo configure:3128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3128   :
3129 else
3130   echo "configure: failed program was:" >&5
3131   cat conftest.$ac_ext >&5
3132   rm -rf conftest*
3133   ac_c99_math=no
3134 fi
3135 rm -f conftest*
3136   cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3139 #include <math.h>
3140 int main() {
3141 isnan(0.0);
3142 ; return 0; }
3143 EOF
3144 if { (eval echo configure:3145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3145   :
3146 else
3147   echo "configure: failed program was:" >&5
3148   cat conftest.$ac_ext >&5
3149   rm -rf conftest*
3150   ac_c99_math=no
3151 fi
3152 rm -f conftest*
3153   cat > conftest.$ac_ext <<EOF
3154 #line 3155 "configure"
3155 #include "confdefs.h"
3156 #include <math.h>
3157 int main() {
3158 isnormal(0.0);
3159 ; return 0; }
3160 EOF
3161 if { (eval echo configure:3162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3162   :
3163 else
3164   echo "configure: failed program was:" >&5
3165   cat conftest.$ac_ext >&5
3166   rm -rf conftest*
3167   ac_c99_math=no
3168 fi
3169 rm -f conftest*
3170   cat > conftest.$ac_ext <<EOF
3171 #line 3172 "configure"
3172 #include "confdefs.h"
3173 #include <math.h>
3174 int main() {
3175 signbit(0.0);
3176 ; return 0; }
3177 EOF
3178 if { (eval echo configure:3179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3179   :
3180 else
3181   echo "configure: failed program was:" >&5
3182   cat conftest.$ac_ext >&5
3183   rm -rf conftest*
3184   ac_c99_math=no
3185 fi
3186 rm -f conftest*
3187   cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3190 #include <math.h>
3191 int main() {
3192 isgreater(0.0,0.0);
3193 ; return 0; }
3194 EOF
3195 if { (eval echo configure:3196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3196   :
3197 else
3198   echo "configure: failed program was:" >&5
3199   cat conftest.$ac_ext >&5
3200   rm -rf conftest*
3201   ac_c99_math=no
3202 fi
3203 rm -f conftest*
3204   cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3207 #include <math.h>
3208 int main() {
3209 isgreaterequal(0.0,0.0);
3210 ; return 0; }
3211 EOF
3212 if { (eval echo configure:3213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3213   :
3214 else
3215   echo "configure: failed program was:" >&5
3216   cat conftest.$ac_ext >&5
3217   rm -rf conftest*
3218   ac_c99_math=no
3219 fi
3220 rm -f conftest*
3221   cat > conftest.$ac_ext <<EOF
3222 #line 3223 "configure"
3223 #include "confdefs.h"
3224 #include <math.h>
3225 int main() {
3226 isless(0.0,0.0);
3227 ; return 0; }
3228 EOF
3229 if { (eval echo configure:3230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3230   :
3231 else
3232   echo "configure: failed program was:" >&5
3233   cat conftest.$ac_ext >&5
3234   rm -rf conftest*
3235   ac_c99_math=no
3236 fi
3237 rm -f conftest*
3238   cat > conftest.$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 #include <math.h>
3242 int main() {
3243 islessequal(0.0,0.0);
3244 ; return 0; }
3245 EOF
3246 if { (eval echo configure:3247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3247   :
3248 else
3249   echo "configure: failed program was:" >&5
3250   cat conftest.$ac_ext >&5
3251   rm -rf conftest*
3252   ac_c99_math=no
3253 fi
3254 rm -f conftest*
3255   cat > conftest.$ac_ext <<EOF
3256 #line 3257 "configure"
3257 #include "confdefs.h"
3258 #include <math.h>
3259 int main() {
3260 islessgreater(0.0,0.0);
3261 ; return 0; }
3262 EOF
3263 if { (eval echo configure:3264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3264   :
3265 else
3266   echo "configure: failed program was:" >&5
3267   cat conftest.$ac_ext >&5
3268   rm -rf conftest*
3269   ac_c99_math=no
3270 fi
3271 rm -f conftest*
3272   cat > conftest.$ac_ext <<EOF
3273 #line 3274 "configure"
3274 #include "confdefs.h"
3275 #include <math.h>
3276 int main() {
3277 isunordered(0.0,0.0);
3278 ; return 0; }
3279 EOF
3280 if { (eval echo configure:3281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3281   :
3282 else
3283   echo "configure: failed program was:" >&5
3284   cat conftest.$ac_ext >&5
3285   rm -rf conftest*
3286   ac_c99_math=no
3287 fi
3288 rm -f conftest*
3289   echo "$ac_t""$ac_c99_math" 1>&6
3290
3291   # Check for the existence in <stdio.h> of vscanf, et. al.
3292   ac_c99_stdio=yes;
3293   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3294 echo "configure:3295: checking for ISO C99 support in <stdio.h>" >&5
3295   cat > conftest.$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3298 #include <stdio.h>
3299 int main() {
3300 snprintf("12", 0, "%i");
3301 ; return 0; }
3302 EOF
3303 if { (eval echo configure:3304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3304   :
3305 else
3306   echo "configure: failed program was:" >&5
3307   cat conftest.$ac_ext >&5
3308   rm -rf conftest*
3309   ac_c99_stdio=no
3310 fi
3311 rm -f conftest*
3312   cat > conftest.$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3315 #include <stdio.h>
3316                   #include <stdarg.h>
3317                   void foo(char* fmt, ...)
3318                   {va_list args; va_start(args, fmt);
3319                   vfscanf(stderr, "%i", args);}
3320 int main() {
3321
3322 ; return 0; }
3323 EOF
3324 if { (eval echo configure:3325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3325   :
3326 else
3327   echo "configure: failed program was:" >&5
3328   cat conftest.$ac_ext >&5
3329   rm -rf conftest*
3330   ac_c99_stdio=no
3331 fi
3332 rm -f conftest*
3333   cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 #include <stdio.h>
3337                   #include <stdarg.h>
3338                   void foo(char* fmt, ...)
3339                   {va_list args; va_start(args, fmt);
3340                   vscanf("%i", args);}
3341 int main() {
3342
3343 ; return 0; }
3344 EOF
3345 if { (eval echo configure:3346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3346   :
3347 else
3348   echo "configure: failed program was:" >&5
3349   cat conftest.$ac_ext >&5
3350   rm -rf conftest*
3351   ac_c99_stdio=no
3352 fi
3353 rm -f conftest*
3354   cat > conftest.$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3357 #include <stdio.h>
3358                   #include <stdarg.h>
3359                   void foo(char* fmt, ...)
3360                   {va_list args; va_start(args, fmt);
3361                   vsnprintf(fmt, 0, "%i", args);}
3362 int main() {
3363
3364 ; return 0; }
3365 EOF
3366 if { (eval echo configure:3367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3367   :
3368 else
3369   echo "configure: failed program was:" >&5
3370   cat conftest.$ac_ext >&5
3371   rm -rf conftest*
3372   ac_c99_stdio=no
3373 fi
3374 rm -f conftest*
3375   cat > conftest.$ac_ext <<EOF
3376 #line 3377 "configure"
3377 #include "confdefs.h"
3378 #include <stdio.h>
3379                   #include <stdarg.h>
3380                   void foo(char* fmt, ...)
3381                   {va_list args; va_start(args, fmt);
3382                   vsscanf(fmt, "%i", args);}
3383 int main() {
3384
3385 ; return 0; }
3386 EOF
3387 if { (eval echo configure:3388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3388   :
3389 else
3390   echo "configure: failed program was:" >&5
3391   cat conftest.$ac_ext >&5
3392   rm -rf conftest*
3393   ac_c99_stdio=no
3394 fi
3395 rm -f conftest*
3396   echo "$ac_t""$ac_c99_stdio" 1>&6
3397
3398   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3399   ac_c99_stdlib=yes;
3400   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3401 echo "configure:3402: checking for lldiv_t declaration" >&5
3402   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3403   echo $ac_n "(cached) $ac_c" 1>&6
3404 else
3405   
3406   cat > conftest.$ac_ext <<EOF
3407 #line 3408 "configure"
3408 #include "confdefs.h"
3409 #include <stdlib.h>
3410 int main() {
3411  lldiv_t mydivt;
3412 ; return 0; }
3413 EOF
3414 if { (eval echo configure:3415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3415   rm -rf conftest*
3416   ac_c99_lldiv_t=yes
3417 else
3418   echo "configure: failed program was:" >&5
3419   cat conftest.$ac_ext >&5
3420   rm -rf conftest*
3421   ac_c99_lldiv_t=no
3422 fi
3423 rm -f conftest*
3424   
3425 fi
3426
3427   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3428
3429   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3430 echo "configure:3431: checking for ISO C99 support in <stdlib.h>" >&5
3431   cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3434 #include <stdlib.h>
3435 int main() {
3436 char* tmp; strtof("gnu", &tmp);
3437 ; return 0; }
3438 EOF
3439 if { (eval echo configure:3440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3440   :
3441 else
3442   echo "configure: failed program was:" >&5
3443   cat conftest.$ac_ext >&5
3444   rm -rf conftest*
3445   ac_c99_stdlib=no
3446 fi
3447 rm -f conftest*
3448   cat > conftest.$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3451 #include <stdlib.h>
3452 int main() {
3453 char* tmp; strtold("gnu", &tmp);
3454 ; return 0; }
3455 EOF
3456 if { (eval echo configure:3457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3457   :
3458 else
3459   echo "configure: failed program was:" >&5
3460   cat conftest.$ac_ext >&5
3461   rm -rf conftest*
3462   ac_c99_stdlib=no
3463 fi
3464 rm -f conftest*
3465   cat > conftest.$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 #include <stdlib.h>
3469 int main() {
3470 llabs(10);
3471 ; return 0; }
3472 EOF
3473 if { (eval echo configure:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3474   :
3475 else
3476   echo "configure: failed program was:" >&5
3477   cat conftest.$ac_ext >&5
3478   rm -rf conftest*
3479   ac_c99_stdlib=no
3480 fi
3481 rm -f conftest*
3482   cat > conftest.$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3485 #include <stdlib.h>
3486 int main() {
3487 lldiv(10,1);
3488 ; return 0; }
3489 EOF
3490 if { (eval echo configure:3491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3491   :
3492 else
3493   echo "configure: failed program was:" >&5
3494   cat conftest.$ac_ext >&5
3495   rm -rf conftest*
3496   ac_c99_stdlib=no
3497 fi
3498 rm -f conftest*
3499   cat > conftest.$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3502 #include <stdlib.h>
3503 int main() {
3504 atoll("10");
3505 ; return 0; }
3506 EOF
3507 if { (eval echo configure:3508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3508   :
3509 else
3510   echo "configure: failed program was:" >&5
3511   cat conftest.$ac_ext >&5
3512   rm -rf conftest*
3513   ac_c99_stdlib=no
3514 fi
3515 rm -f conftest*
3516   cat > conftest.$ac_ext <<EOF
3517 #line 3518 "configure"
3518 #include "confdefs.h"
3519 #include <stdlib.h>
3520 int main() {
3521 _Exit(0);
3522 ; return 0; }
3523 EOF
3524 if { (eval echo configure:3525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3525   :
3526 else
3527   echo "configure: failed program was:" >&5
3528   cat conftest.$ac_ext >&5
3529   rm -rf conftest*
3530   ac_c99_stdlib=no
3531 fi
3532 rm -f conftest*
3533   if test x"$ac_c99_lldiv_t" = x"no"; then
3534     ac_c99_stdlib=no; 
3535   fi; 
3536   echo "$ac_t""$ac_c99_stdlib" 1>&6
3537
3538   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3539   # XXX the wchar.h checks should be rolled into the general C99 bits.
3540   ac_c99_wchar=yes;
3541   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3542 echo "configure:3543: checking for additional ISO C99 support in <wchar.h>" >&5
3543   cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 #include <wchar.h>
3547 int main() {
3548 wcstold(L"10.0", NULL);
3549 ; return 0; }
3550 EOF
3551 if { (eval echo configure:3552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3552   :
3553 else
3554   echo "configure: failed program was:" >&5
3555   cat conftest.$ac_ext >&5
3556   rm -rf conftest*
3557   ac_c99_wchar=no
3558 fi
3559 rm -f conftest*
3560   cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 #include <wchar.h>
3564 int main() {
3565 wcstoll(L"10", NULL, 10);
3566 ; return 0; }
3567 EOF
3568 if { (eval echo configure:3569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3569   :
3570 else
3571   echo "configure: failed program was:" >&5
3572   cat conftest.$ac_ext >&5
3573   rm -rf conftest*
3574   ac_c99_wchar=no
3575 fi
3576 rm -f conftest*
3577   cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3580 #include <wchar.h>
3581 int main() {
3582 wcstoull(L"10", NULL, 10);
3583 ; return 0; }
3584 EOF
3585 if { (eval echo configure:3586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3586   :
3587 else
3588   echo "configure: failed program was:" >&5
3589   cat conftest.$ac_ext >&5
3590   rm -rf conftest*
3591   ac_c99_wchar=no
3592 fi
3593 rm -f conftest*
3594   echo "$ac_t""$ac_c99_wchar" 1>&6
3595
3596   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3597 echo "configure:3598: checking for enabled ISO C99 support" >&5
3598   if test x"$ac_c99_math" = x"no" ||
3599      test x"$ac_c99_stdio" = x"no" ||
3600      test x"$ac_c99_stdlib" = x"no" ||
3601      test x"$ac_c99_wchar" = x"no"; then
3602     enable_c99=no; 
3603   fi; 
3604   echo "$ac_t""$enable_c99" 1>&6
3605
3606   # Option parsed, now set things appropriately
3607   if test x"$enable_c99" = x"yes"; then
3608     cat >> confdefs.h <<\EOF
3609 #define _GLIBCPP_USE_C99 1
3610 EOF
3611
3612   fi
3613
3614   ac_ext=c
3615 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3616 ac_cpp='$CPP $CPPFLAGS'
3617 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3618 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3619 cross_compiling=$ac_cv_prog_cc_cross
3620
3621
3622   
3623   # Check whether --enable-long-long or --disable-long-long was given.
3624 if test "${enable_long_long+set}" = set; then
3625   enableval="$enable_long_long"
3626     case "$enableval" in
3627    yes) enable_long_long=yes ;;
3628    no)  enable_long_long=no ;;
3629    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3630    esac
3631 else
3632   enable_long_long=yes
3633 fi
3634
3635   
3636   ac_ext=C
3637 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3638 ac_cpp='$CXXCPP $CPPFLAGS'
3639 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3640 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3641 cross_compiling=$ac_cv_prog_cxx_cross
3642
3643
3644   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3645 echo "configure:3646: checking for enabled long long I/O support" >&5
3646   # iostreams require strtoll, strtoull to compile
3647   cat > conftest.$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3650 #include <stdlib.h>
3651 int main() {
3652 char* tmp; strtoll("gnu", &tmp, 10);
3653 ; return 0; }
3654 EOF
3655 if { (eval echo configure:3656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3656   :
3657 else
3658   echo "configure: failed program was:" >&5
3659   cat conftest.$ac_ext >&5
3660   rm -rf conftest*
3661   enable_long_long=no
3662 fi
3663 rm -f conftest*
3664   cat > conftest.$ac_ext <<EOF
3665 #line 3666 "configure"
3666 #include "confdefs.h"
3667 #include <stdlib.h>
3668 int main() {
3669 char* tmp; strtoull("gnu", &tmp, 10);
3670 ; return 0; }
3671 EOF
3672 if { (eval echo configure:3673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3673   :
3674 else
3675   echo "configure: failed program was:" >&5
3676   cat conftest.$ac_ext >&5
3677   rm -rf conftest*
3678   enable_long_long=no
3679 fi
3680 rm -f conftest*
3681
3682   # Option parsed, now set things appropriately
3683   if test x"$enable_long_long" = xyes; then
3684     cat >> confdefs.h <<\EOF
3685 #define _GLIBCPP_USE_LONG_LONG 1
3686 EOF
3687
3688   fi
3689   echo "$ac_t""$enable_long_long" 1>&6
3690
3691   ac_ext=c
3692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3693 ac_cpp='$CPP $CPPFLAGS'
3694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3695 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3696 cross_compiling=$ac_cv_prog_cc_cross
3697
3698
3699 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3700 echo "configure:3701: checking for c header strategy to use" >&5
3701 # Check whether --enable-cheaders or --disable-cheaders was given.
3702 if test "${enable_cheaders+set}" = set; then
3703   enableval="$enable_cheaders"
3704   
3705   case "$enableval" in
3706    c) 
3707         enable_cheaders=c 
3708         ;;
3709    c_std)  
3710         enable_cheaders=c_std 
3711         ;;
3712    c_shadow)  
3713         enable_cheaders=c_shadow 
3714         ;;
3715    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3716         ;;
3717   esac
3718 else
3719   enable_cheaders=c_std
3720 fi
3721
3722   echo "$ac_t""$enable_cheaders" 1>&6
3723
3724     case "$enable_cheaders" in
3725     c_shadow) 
3726         CSHADOW_FLAGS="-fno-builtin"
3727         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3728         cat >> confdefs.h <<\EOF
3729 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3730 EOF
3731
3732         ;;
3733     c_std)   
3734         CSHADOW_FLAGS=""
3735         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3736         ;;
3737     c)   
3738         CSHADOW_FLAGS=""
3739         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3740         ;;
3741   esac
3742
3743   
3744   
3745   
3746
3747 if test "$enable_cheaders" = c_shadow; then
3748   GLIBCPP_USE_CSHADOW_TRUE=
3749   GLIBCPP_USE_CSHADOW_FALSE='#'
3750 else
3751   GLIBCPP_USE_CSHADOW_TRUE='#'
3752   GLIBCPP_USE_CSHADOW_FALSE=
3753 fi
3754
3755
3756   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3757 echo "configure:3758: checking for thread model used by GCC" >&5
3758   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3759   echo "$ac_t""$target_thread_file" 1>&6
3760
3761   if test $target_thread_file != single; then
3762     cat >> confdefs.h <<\EOF
3763 #define HAVE_GTHR_DEFAULT 1
3764 EOF
3765
3766     cat >> confdefs.h <<\EOF
3767 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3768 EOF
3769
3770   fi
3771
3772   glibcpp_thread_h=gthr-$target_thread_file.h
3773   
3774
3775 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3776 if test "${enable_cxx_flags+set}" = set; then
3777   enableval="$enable_cxx_flags"
3778   case "x$enableval" in
3779  xyes)   
3780         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3781  xno|x)  
3782         enable_cxx_flags='' ;;
3783  *)      
3784         enable_cxx_flags="$enableval" ;;
3785  esac
3786 else
3787   enable_cxx_flags='none'
3788 fi
3789
3790
3791 if test "$enable_cxx_flags" = "none"; then 
3792   enable_cxx_flags=''; 
3793 fi
3794
3795 if test -n "$enable_cxx_flags"; then
3796     for f in $enable_cxx_flags; do
3797         case "$f" in
3798             -fhonor-std)  ;;
3799             -*)  ;;
3800             *)   # and we're trying to pass /what/ exactly?
3801                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3802         esac
3803     done
3804 fi
3805 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3806
3807
3808
3809   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3810 echo "configure:3811: checking for exception model to use" >&5
3811   
3812   ac_ext=C
3813 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3814 ac_cpp='$CXXCPP $CPPFLAGS'
3815 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3816 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3817 cross_compiling=$ac_cv_prog_cxx_cross
3818
3819   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3820 if test "${enable_sjlj_exceptions+set}" = set; then
3821   enableval="$enable_sjlj_exceptions"
3822   :
3823 else
3824                        cat > conftest.$ac_ext << EOF
3825 #line 3826 "configure"
3826 struct S { ~S(); };
3827 void bar();
3828 void foo()
3829 {
3830   S s;
3831   bar();
3832 }
3833 EOF
3834    old_CXXFLAGS="$CXXFLAGS"  
3835    CXXFLAGS=-S
3836    if { (eval echo configure:3837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3837      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3838        enable_sjlj_exceptions=yes
3839      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3840        enable_sjlj_exceptions=no
3841      fi
3842    fi
3843    CXXFLAGS="$old_CXXFLAGS"
3844    rm -f conftest*
3845 fi
3846
3847    if test x$enable_sjlj_exceptions = xyes; then
3848      cat >> confdefs.h <<\EOF
3849 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3850 EOF
3851
3852      ac_exception_model_name=sjlj
3853    elif test x$enable_sjlj_exceptions = xno; then
3854      ac_exception_model_name="call frame"
3855    else
3856      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3857    fi
3858    ac_ext=c
3859 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3860 ac_cpp='$CPP $CPPFLAGS'
3861 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3862 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3863 cross_compiling=$ac_cv_prog_cc_cross
3864
3865    echo "$ac_t""$ac_exception_model_name" 1>&6
3866
3867 # Check whether --enable-concept-checks or --disable-concept-checks was given.
3868 if test "${enable_concept_checks+set}" = set; then
3869   enableval="$enable_concept_checks"
3870   case "$enableval" in
3871  yes) enable_concept_checks=yes ;;
3872  no)  enable_concept_checks=no ;;
3873  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
3874  esac
3875 else
3876   enable_concept_checks=no
3877 fi
3878 if test x"$enable_concept_checks" = xyes; then
3879   cat >> confdefs.h <<\EOF
3880 #define _GLIBCPP_CONCEPT_CHECKS 1
3881 EOF
3882
3883 fi
3884
3885
3886
3887 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
3888
3889   # This lets us hard-code the functionality we know
3890   # we'll have in the cross target environment. "Let" is a
3891   # sugar-coated word placed on an especially dull and tedious hack, actually.
3892   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
3893   # that involve linking can't be used:
3894   # "cannot open sim-crt0.o"
3895   # "cannot open crt0.o"
3896   # etc. All this is because there currently exists no unified,
3897   # consistent way for top level CC information to be passed down
3898   # to target directories: newlib includes, newlib linking info,
3899   # libgloss versus newlib crt0.o, etc. When all of this is done, all
3900   # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
3901
3902   # We are being configured with some form of cross compiler.
3903   GLIBCPP_IS_CROSS_COMPILING=1
3904
3905   # If Canadian cross, then don't pick up tools from the build
3906   # directory.
3907   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
3908     CANADIAN=yes
3909   else
3910     CANADIAN=no
3911   fi
3912
3913   # Construct crosses by hand, eliminating bits that need ld...
3914   # GLIBCPP_CHECK_COMPILER_FEATURES
3915   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3916   # GLIBCPP_CHECK_MATH_SUPPORT
3917
3918   case "$target_alias" in
3919     *-linux*)
3920       # Check for available headers.
3921       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3922         machine/endian.h machine/param.h sys/machine.h sys/types.h \
3923         fp.h locale.h float.h inttypes.h
3924 do
3925 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3927 echo "configure:3928: checking for $ac_hdr" >&5
3928 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3929   echo $ac_n "(cached) $ac_c" 1>&6
3930 else
3931   cat > conftest.$ac_ext <<EOF
3932 #line 3933 "configure"
3933 #include "confdefs.h"
3934 #include <$ac_hdr>
3935 EOF
3936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3937 { (eval echo configure:3938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3939 if test -z "$ac_err"; then
3940   rm -rf conftest*
3941   eval "ac_cv_header_$ac_safe=yes"
3942 else
3943   echo "$ac_err" >&5
3944   echo "configure: failed program was:" >&5
3945   cat conftest.$ac_ext >&5
3946   rm -rf conftest*
3947   eval "ac_cv_header_$ac_safe=no"
3948 fi
3949 rm -f conftest*
3950 fi
3951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3952   echo "$ac_t""yes" 1>&6
3953     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3954   cat >> confdefs.h <<EOF
3955 #define $ac_tr_hdr 1
3956 EOF
3957  
3958 else
3959   echo "$ac_t""no" 1>&6
3960 fi
3961 done
3962
3963       SECTION_FLAGS='-ffunction-sections -fdata-sections'
3964       
3965       
3966   # If we're not using GNU ld, then there's no point in even trying these
3967   # tests.  Check for that first.  We should have already tested for gld
3968   # by now (in libtool), but require it now just to be safe...
3969   SECTION_LDFLAGS=''
3970   OPT_LDFLAGS=''
3971   
3972
3973   # Set --gc-sections.
3974   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3975     # GNU ld it is!  Joy and bunny rabbits!
3976
3977     # All these tests are for C++; save the language and the compiler flags.
3978     # Need to do this so that g++ won't try to link in libstdc++
3979     ac_test_CFLAGS="${CFLAGS+set}"
3980     ac_save_CFLAGS="$CFLAGS"
3981     CFLAGS='-x c++  -Wl,--gc-sections'
3982
3983     # Check for -Wl,--gc-sections
3984     # XXX This test is broken at the moment, as symbols required for
3985     # linking are now in libsupc++ (not built yet.....). In addition, 
3986     # this test has cored on solaris in the past. In addition,
3987     # --gc-sections doesn't really work at the moment (keeps on discarding
3988     # used sections, first .eh_frame and now some of the glibc sections for
3989     # iconv). Bzzzzt. Thanks for playing, maybe next time.
3990     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3991 echo "configure:3992: checking for ld that supports -Wl,--gc-sections" >&5
3992     if test "$cross_compiling" = yes; then
3993   ac_sectionLDflags=yes
3994 else
3995   cat > conftest.$ac_ext <<EOF
3996 #line 3997 "configure"
3997 #include "confdefs.h"
3998
3999      int main(void) 
4000      {
4001        try { throw 1; }
4002        catch (...) { };
4003        return 0;
4004      }
4005     
4006 EOF
4007 if { (eval echo configure:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4008 then
4009   ac_sectionLDflags=yes
4010 else
4011   echo "configure: failed program was:" >&5
4012   cat conftest.$ac_ext >&5
4013   rm -fr conftest*
4014   ac_sectionLFflags=no
4015 fi
4016 rm -fr conftest*
4017 fi
4018
4019     if test "$ac_test_CFLAGS" = set; then
4020       CFLAGS="$ac_save_CFLAGS"
4021     else
4022       # this is the suspicious part
4023       CFLAGS=''
4024     fi
4025     if test "$ac_sectionLDflags" = "yes"; then
4026       SECTION_LDFLAGS='-Wl,--gc-sections'
4027     fi
4028     echo "$ac_t""$ac_sectionLDflags" 1>&6
4029   fi
4030
4031   # Set linker optimization flags.
4032   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
4033      test x"$enable_debug" = x"no"; then
4034     OPT_LDFLAGS='-Wl,-O1'
4035   fi
4036
4037   
4038   
4039
4040       
4041     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4042 echo "configure:4043: checking for main in -lm" >&5
4043 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4045   echo $ac_n "(cached) $ac_c" 1>&6
4046 else
4047   ac_save_LIBS="$LIBS"
4048 LIBS="-lm  $LIBS"
4049 cat > conftest.$ac_ext <<EOF
4050 #line 4051 "configure"
4051 #include "confdefs.h"
4052
4053 int main() {
4054 main()
4055 ; return 0; }
4056 EOF
4057 if { (eval echo configure:4058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4058   rm -rf conftest*
4059   eval "ac_cv_lib_$ac_lib_var=yes"
4060 else
4061   echo "configure: failed program was:" >&5
4062   cat conftest.$ac_ext >&5
4063   rm -rf conftest*
4064   eval "ac_cv_lib_$ac_lib_var=no"
4065 fi
4066 rm -f conftest*
4067 LIBS="$ac_save_LIBS"
4068
4069 fi
4070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4071   echo "$ac_t""yes" 1>&6
4072     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4073     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4074   cat >> confdefs.h <<EOF
4075 #define $ac_tr_lib 1
4076 EOF
4077
4078   LIBS="-lm $LIBS"
4079
4080 else
4081   echo "$ac_t""no" 1>&6
4082 fi
4083
4084   for ac_func in nan copysignf
4085 do
4086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4087 echo "configure:4088: checking for $ac_func" >&5
4088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4089   echo $ac_n "(cached) $ac_c" 1>&6
4090 else
4091   cat > conftest.$ac_ext <<EOF
4092 #line 4093 "configure"
4093 #include "confdefs.h"
4094 /* System header to define __stub macros and hopefully few prototypes,
4095     which can conflict with char $ac_func(); below.  */
4096 #include <assert.h>
4097 /* Override any gcc2 internal prototype to avoid an error.  */
4098 /* We use char because int might match the return type of a gcc2
4099     builtin and then its argument prototype would still apply.  */
4100 char $ac_func();
4101
4102 int main() {
4103
4104 /* The GNU C library defines this for functions which it implements
4105     to always fail with ENOSYS.  Some functions are actually named
4106     something starting with __ and the normal name is an alias.  */
4107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4108 choke me
4109 #else
4110 $ac_func();
4111 #endif
4112
4113 ; return 0; }
4114 EOF
4115 if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4116   rm -rf conftest*
4117   eval "ac_cv_func_$ac_func=yes"
4118 else
4119   echo "configure: failed program was:" >&5
4120   cat conftest.$ac_ext >&5
4121   rm -rf conftest*
4122   eval "ac_cv_func_$ac_func=no"
4123 fi
4124 rm -f conftest*
4125 fi
4126
4127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4128   echo "$ac_t""yes" 1>&6
4129     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4130   cat >> confdefs.h <<EOF
4131 #define $ac_tr_func 1
4132 EOF
4133  
4134 else
4135   echo "$ac_t""no" 1>&6
4136 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4137 fi
4138 done
4139
4140
4141
4142           USE_COMPLEX_LONG_DOUBLE=no
4143   if test x$ac_cv_func_copysignl = x"yes"; then
4144     USE_COMPLEX_LONG_DOUBLE=yes
4145     for ac_func in signbitl
4146 do
4147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4148 echo "configure:4149: checking for $ac_func" >&5
4149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4150   echo $ac_n "(cached) $ac_c" 1>&6
4151 else
4152   cat > conftest.$ac_ext <<EOF
4153 #line 4154 "configure"
4154 #include "confdefs.h"
4155 /* System header to define __stub macros and hopefully few prototypes,
4156     which can conflict with char $ac_func(); below.  */
4157 #include <assert.h>
4158 /* Override any gcc2 internal prototype to avoid an error.  */
4159 /* We use char because int might match the return type of a gcc2
4160     builtin and then its argument prototype would still apply.  */
4161 char $ac_func();
4162
4163 int main() {
4164
4165 /* The GNU C library defines this for functions which it implements
4166     to always fail with ENOSYS.  Some functions are actually named
4167     something starting with __ and the normal name is an alias.  */
4168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4169 choke me
4170 #else
4171 $ac_func();
4172 #endif
4173
4174 ; return 0; }
4175 EOF
4176 if { (eval echo configure:4177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4177   rm -rf conftest*
4178   eval "ac_cv_func_$ac_func=yes"
4179 else
4180   echo "configure: failed program was:" >&5
4181   cat conftest.$ac_ext >&5
4182   rm -rf conftest*
4183   eval "ac_cv_func_$ac_func=no"
4184 fi
4185 rm -f conftest*
4186 fi
4187
4188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4189   echo "$ac_t""yes" 1>&6
4190     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4191   cat >> confdefs.h <<EOF
4192 #define $ac_tr_func 1
4193 EOF
4194  
4195 else
4196   echo "$ac_t""no" 1>&6
4197 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4198 fi
4199 done
4200
4201
4202   fi
4203
4204   
4205
4206       
4207
4208       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4209 echo "configure:4210: checking for mbstate_t" >&5
4210   cat > conftest.$ac_ext <<EOF
4211 #line 4212 "configure"
4212 #include "confdefs.h"
4213 #include <wchar.h>
4214 int main() {
4215 mbstate_t teststate;
4216 ; return 0; }
4217 EOF
4218 if { (eval echo configure:4219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4219   rm -rf conftest*
4220   have_mbstate_t=yes
4221 else
4222   echo "configure: failed program was:" >&5
4223   cat conftest.$ac_ext >&5
4224   rm -rf conftest*
4225   have_mbstate_t=no
4226 fi
4227 rm -f conftest*
4228   echo "$ac_t""$have_mbstate_t" 1>&6
4229   if test x"$have_mbstate_t" = xyes; then
4230     cat >> confdefs.h <<\EOF
4231 #define HAVE_MBSTATE_T 1
4232 EOF
4233
4234   fi
4235
4236     for ac_hdr in wchar.h
4237 do
4238 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4239 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4240 echo "configure:4241: checking for $ac_hdr" >&5
4241 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4242   echo $ac_n "(cached) $ac_c" 1>&6
4243 else
4244   cat > conftest.$ac_ext <<EOF
4245 #line 4246 "configure"
4246 #include "confdefs.h"
4247 #include <$ac_hdr>
4248 EOF
4249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4250 { (eval echo configure:4251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4252 if test -z "$ac_err"; then
4253   rm -rf conftest*
4254   eval "ac_cv_header_$ac_safe=yes"
4255 else
4256   echo "$ac_err" >&5
4257   echo "configure: failed program was:" >&5
4258   cat conftest.$ac_ext >&5
4259   rm -rf conftest*
4260   eval "ac_cv_header_$ac_safe=no"
4261 fi
4262 rm -f conftest*
4263 fi
4264 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4265   echo "$ac_t""yes" 1>&6
4266     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4267   cat >> confdefs.h <<EOF
4268 #define $ac_tr_hdr 1
4269 EOF
4270  ac_has_wchar_h=yes
4271 else
4272   echo "$ac_t""no" 1>&6
4273 ac_has_wchar_h=no
4274 fi
4275 done
4276
4277   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4278 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4279 echo "configure:4280: checking for wctype.h" >&5
4280 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 #include <wctype.h>
4287 EOF
4288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4289 { (eval echo configure:4290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4291 if test -z "$ac_err"; then
4292   rm -rf conftest*
4293   eval "ac_cv_header_$ac_safe=yes"
4294 else
4295   echo "$ac_err" >&5
4296   echo "configure: failed program was:" >&5
4297   cat conftest.$ac_ext >&5
4298   rm -rf conftest*
4299   eval "ac_cv_header_$ac_safe=no"
4300 fi
4301 rm -f conftest*
4302 fi
4303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4304   echo "$ac_t""yes" 1>&6
4305   ac_has_wctype_h=yes
4306 else
4307   echo "$ac_t""no" 1>&6
4308 ac_has_wctype_h=no
4309 fi
4310
4311   
4312     if test x"$ac_has_wchar_h" = xyes &&
4313      test x"$ac_has_wctype_h" = xyes &&
4314      test x"$enable_c_mbchar" != xno; then
4315       
4316             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4317 echo "configure:4318: checking for WCHAR_MIN and WCHAR_MAX" >&5
4318     cat > conftest.$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4321 #include <wchar.h>
4322 int main() {
4323 int i = WCHAR_MIN; int j = WCHAR_MAX;
4324 ; return 0; }
4325 EOF
4326 if { (eval echo configure:4327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4327   rm -rf conftest*
4328   has_wchar_minmax=yes
4329 else
4330   echo "configure: failed program was:" >&5
4331   cat conftest.$ac_ext >&5
4332   rm -rf conftest*
4333   has_wchar_minmax=no
4334 fi
4335 rm -f conftest*
4336     echo "$ac_t""$has_wchar_minmax" 1>&6
4337     
4338             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4339 echo "configure:4340: checking for WEOF" >&5
4340     cat > conftest.$ac_ext <<EOF
4341 #line 4342 "configure"
4342 #include "confdefs.h"
4343
4344       #include <wchar.h>
4345       #include <stddef.h>
4346 int main() {
4347 wint_t i = WEOF;
4348 ; return 0; }
4349 EOF
4350 if { (eval echo configure:4351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4351   rm -rf conftest*
4352   has_weof=yes
4353 else
4354   echo "configure: failed program was:" >&5
4355   cat conftest.$ac_ext >&5
4356   rm -rf conftest*
4357   has_weof=no
4358 fi
4359 rm -f conftest*
4360     echo "$ac_t""$has_weof" 1>&6
4361   
4362         ac_wfuncs=yes
4363     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4364 do
4365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4366 echo "configure:4367: checking for $ac_func" >&5
4367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4368   echo $ac_n "(cached) $ac_c" 1>&6
4369 else
4370   cat > conftest.$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4373 /* System header to define __stub macros and hopefully few prototypes,
4374     which can conflict with char $ac_func(); below.  */
4375 #include <assert.h>
4376 /* Override any gcc2 internal prototype to avoid an error.  */
4377 /* We use char because int might match the return type of a gcc2
4378     builtin and then its argument prototype would still apply.  */
4379 char $ac_func();
4380
4381 int main() {
4382
4383 /* The GNU C library defines this for functions which it implements
4384     to always fail with ENOSYS.  Some functions are actually named
4385     something starting with __ and the normal name is an alias.  */
4386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4387 choke me
4388 #else
4389 $ac_func();
4390 #endif
4391
4392 ; return 0; }
4393 EOF
4394 if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4395   rm -rf conftest*
4396   eval "ac_cv_func_$ac_func=yes"
4397 else
4398   echo "configure: failed program was:" >&5
4399   cat conftest.$ac_ext >&5
4400   rm -rf conftest*
4401   eval "ac_cv_func_$ac_func=no"
4402 fi
4403 rm -f conftest*
4404 fi
4405
4406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4407   echo "$ac_t""yes" 1>&6
4408     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4409   cat >> confdefs.h <<EOF
4410 #define $ac_tr_func 1
4411 EOF
4412  
4413 else
4414   echo "$ac_t""no" 1>&6
4415 \
4416     ac_wfuncs=no
4417 fi
4418 done
4419
4420   
4421         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4422     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4423     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4424     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4425     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4426     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4427 do
4428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4429 echo "configure:4430: checking for $ac_func" >&5
4430 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4431   echo $ac_n "(cached) $ac_c" 1>&6
4432 else
4433   cat > conftest.$ac_ext <<EOF
4434 #line 4435 "configure"
4435 #include "confdefs.h"
4436 /* System header to define __stub macros and hopefully few prototypes,
4437     which can conflict with char $ac_func(); below.  */
4438 #include <assert.h>
4439 /* Override any gcc2 internal prototype to avoid an error.  */
4440 /* We use char because int might match the return type of a gcc2
4441     builtin and then its argument prototype would still apply.  */
4442 char $ac_func();
4443
4444 int main() {
4445
4446 /* The GNU C library defines this for functions which it implements
4447     to always fail with ENOSYS.  Some functions are actually named
4448     something starting with __ and the normal name is an alias.  */
4449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4450 choke me
4451 #else
4452 $ac_func();
4453 #endif
4454
4455 ; return 0; }
4456 EOF
4457 if { (eval echo configure:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4458   rm -rf conftest*
4459   eval "ac_cv_func_$ac_func=yes"
4460 else
4461   echo "configure: failed program was:" >&5
4462   cat conftest.$ac_ext >&5
4463   rm -rf conftest*
4464   eval "ac_cv_func_$ac_func=no"
4465 fi
4466 rm -f conftest*
4467 fi
4468
4469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4470   echo "$ac_t""yes" 1>&6
4471     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4472   cat >> confdefs.h <<EOF
4473 #define $ac_tr_func 1
4474 EOF
4475  
4476 else
4477   echo "$ac_t""no" 1>&6
4478 \
4479     ac_wfuncs=no
4480 fi
4481 done
4482
4483
4484     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4485 echo "configure:4486: checking for ISO C99 wchar_t support" >&5
4486     if test x"$has_weof" = xyes &&
4487        test x"$has_wchar_minmax" = xyes &&
4488        test x"$ac_wfuncs" = xyes; then
4489       ac_isoC99_wchar_t=yes
4490     else
4491       ac_isoC99_wchar_t=no
4492     fi
4493     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4494   
4495             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4496 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4497 echo "configure:4498: checking for iconv.h" >&5
4498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4499   echo $ac_n "(cached) $ac_c" 1>&6
4500 else
4501   cat > conftest.$ac_ext <<EOF
4502 #line 4503 "configure"
4503 #include "confdefs.h"
4504 #include <iconv.h>
4505 EOF
4506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4507 { (eval echo configure:4508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4509 if test -z "$ac_err"; then
4510   rm -rf conftest*
4511   eval "ac_cv_header_$ac_safe=yes"
4512 else
4513   echo "$ac_err" >&5
4514   echo "configure: failed program was:" >&5
4515   cat conftest.$ac_ext >&5
4516   rm -rf conftest*
4517   eval "ac_cv_header_$ac_safe=no"
4518 fi
4519 rm -f conftest*
4520 fi
4521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4522   echo "$ac_t""yes" 1>&6
4523   ac_has_iconv_h=yes
4524 else
4525   echo "$ac_t""no" 1>&6
4526 ac_has_iconv_h=no
4527 fi
4528
4529     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4530 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4531 echo "configure:4532: checking for langinfo.h" >&5
4532 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4533   echo $ac_n "(cached) $ac_c" 1>&6
4534 else
4535   cat > conftest.$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4538 #include <langinfo.h>
4539 EOF
4540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4541 { (eval echo configure:4542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4543 if test -z "$ac_err"; then
4544   rm -rf conftest*
4545   eval "ac_cv_header_$ac_safe=yes"
4546 else
4547   echo "$ac_err" >&5
4548   echo "configure: failed program was:" >&5
4549   cat conftest.$ac_ext >&5
4550   rm -rf conftest*
4551   eval "ac_cv_header_$ac_safe=no"
4552 fi
4553 rm -f conftest*
4554 fi
4555 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4556   echo "$ac_t""yes" 1>&6
4557   ac_has_langinfo_h=yes
4558 else
4559   echo "$ac_t""no" 1>&6
4560 ac_has_langinfo_h=no
4561 fi
4562
4563
4564         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4565 echo "configure:4566: checking for iconv in -liconv" >&5
4566 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4568   echo $ac_n "(cached) $ac_c" 1>&6
4569 else
4570   ac_save_LIBS="$LIBS"
4571 LIBS="-liconv  $LIBS"
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4575 /* Override any gcc2 internal prototype to avoid an error.  */
4576 /* We use char because int might match the return type of a gcc2
4577     builtin and then its argument prototype would still apply.  */
4578 char iconv();
4579
4580 int main() {
4581 iconv()
4582 ; return 0; }
4583 EOF
4584 if { (eval echo configure:4585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4585   rm -rf conftest*
4586   eval "ac_cv_lib_$ac_lib_var=yes"
4587 else
4588   echo "configure: failed program was:" >&5
4589   cat conftest.$ac_ext >&5
4590   rm -rf conftest*
4591   eval "ac_cv_lib_$ac_lib_var=no"
4592 fi
4593 rm -f conftest*
4594 LIBS="$ac_save_LIBS"
4595
4596 fi
4597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4598   echo "$ac_t""yes" 1>&6
4599   libiconv="-liconv"
4600 else
4601   echo "$ac_t""no" 1>&6
4602 fi
4603
4604     ac_save_LIBS="$LIBS"
4605     LIBS="$LIBS $libiconv"
4606
4607     for ac_func in iconv_open iconv_close iconv nl_langinfo
4608 do
4609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4610 echo "configure:4611: checking for $ac_func" >&5
4611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4612   echo $ac_n "(cached) $ac_c" 1>&6
4613 else
4614   cat > conftest.$ac_ext <<EOF
4615 #line 4616 "configure"
4616 #include "confdefs.h"
4617 /* System header to define __stub macros and hopefully few prototypes,
4618     which can conflict with char $ac_func(); below.  */
4619 #include <assert.h>
4620 /* Override any gcc2 internal prototype to avoid an error.  */
4621 /* We use char because int might match the return type of a gcc2
4622     builtin and then its argument prototype would still apply.  */
4623 char $ac_func();
4624
4625 int main() {
4626
4627 /* The GNU C library defines this for functions which it implements
4628     to always fail with ENOSYS.  Some functions are actually named
4629     something starting with __ and the normal name is an alias.  */
4630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4631 choke me
4632 #else
4633 $ac_func();
4634 #endif
4635
4636 ; return 0; }
4637 EOF
4638 if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4639   rm -rf conftest*
4640   eval "ac_cv_func_$ac_func=yes"
4641 else
4642   echo "configure: failed program was:" >&5
4643   cat conftest.$ac_ext >&5
4644   rm -rf conftest*
4645   eval "ac_cv_func_$ac_func=no"
4646 fi
4647 rm -f conftest*
4648 fi
4649
4650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4651   echo "$ac_t""yes" 1>&6
4652     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4653   cat >> confdefs.h <<EOF
4654 #define $ac_tr_func 1
4655 EOF
4656  \
4657     ac_XPG2funcs=yes
4658 else
4659   echo "$ac_t""no" 1>&6
4660 ac_XPG2funcs=no
4661 fi
4662 done
4663
4664   
4665     LIBS="$ac_save_LIBS"
4666
4667     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4668 echo "configure:4669: checking for XPG2 wchar_t support" >&5
4669     if test x"$ac_has_iconv_h" = xyes &&
4670        test x"$ac_has_langinfo_h" = xyes &&
4671        test x"$ac_XPG2funcs" = xyes; then
4672       ac_XPG2_wchar_t=yes
4673     else
4674       ac_XPG2_wchar_t=no
4675     fi
4676     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4677   
4678             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4679 echo "configure:4680: checking for enabled wchar_t specializations" >&5
4680     if test x"$ac_isoC99_wchar_t" = xyes &&
4681        test x"$ac_XPG2_wchar_t" = xyes; then
4682       cat >> confdefs.h <<\EOF
4683 #define _GLIBCPP_USE_WCHAR_T 1
4684 EOF
4685
4686       echo "$ac_t"""yes"" 1>&6
4687     else
4688       echo "$ac_t"""no"" 1>&6
4689     fi
4690   else
4691         echo "configure: warning: wchar_t support disabled." 1>&2
4692   fi
4693
4694       os_include_dir="config/os/gnu-linux"
4695       cat >> confdefs.h <<\EOF
4696 #define HAVE_COPYSIGN 1
4697 EOF
4698
4699       cat >> confdefs.h <<\EOF
4700 #define HAVE_COPYSIGNF 1
4701 EOF
4702
4703       cat >> confdefs.h <<\EOF
4704 #define HAVE_FINITEF 1
4705 EOF
4706
4707       cat >> confdefs.h <<\EOF
4708 #define HAVE_FREXPF 1
4709 EOF
4710
4711       cat >> confdefs.h <<\EOF
4712 #define HAVE_HYPOTF 1
4713 EOF
4714
4715       cat >> confdefs.h <<\EOF
4716 #define HAVE_SINCOS 1
4717 EOF
4718
4719       cat >> confdefs.h <<\EOF
4720 #define HAVE_SINCOSF 1
4721 EOF
4722
4723       if test x"long_double_math_on_this_cpu" = x"yes"; then
4724         cat >> confdefs.h <<\EOF
4725 #define HAVE_HYPOTL 1
4726 EOF
4727
4728       fi
4729       ;;
4730     *-hpux*)
4731       # Check for available headers.
4732       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4733         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4734         fp.h locale.h float.h inttypes.h
4735 do
4736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4738 echo "configure:4739: checking for $ac_hdr" >&5
4739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4740   echo $ac_n "(cached) $ac_c" 1>&6
4741 else
4742   cat > conftest.$ac_ext <<EOF
4743 #line 4744 "configure"
4744 #include "confdefs.h"
4745 #include <$ac_hdr>
4746 EOF
4747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4748 { (eval echo configure:4749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4750 if test -z "$ac_err"; then
4751   rm -rf conftest*
4752   eval "ac_cv_header_$ac_safe=yes"
4753 else
4754   echo "$ac_err" >&5
4755   echo "configure: failed program was:" >&5
4756   cat conftest.$ac_ext >&5
4757   rm -rf conftest*
4758   eval "ac_cv_header_$ac_safe=no"
4759 fi
4760 rm -f conftest*
4761 fi
4762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4763   echo "$ac_t""yes" 1>&6
4764     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4765   cat >> confdefs.h <<EOF
4766 #define $ac_tr_hdr 1
4767 EOF
4768  
4769 else
4770   echo "$ac_t""no" 1>&6
4771 fi
4772 done
4773
4774       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4775       
4776       
4777   # If we're not using GNU ld, then there's no point in even trying these
4778   # tests.  Check for that first.  We should have already tested for gld
4779   # by now (in libtool), but require it now just to be safe...
4780   SECTION_LDFLAGS=''
4781   OPT_LDFLAGS=''
4782   
4783
4784   # Set --gc-sections.
4785   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4786     # GNU ld it is!  Joy and bunny rabbits!
4787
4788     # All these tests are for C++; save the language and the compiler flags.
4789     # Need to do this so that g++ won't try to link in libstdc++
4790     ac_test_CFLAGS="${CFLAGS+set}"
4791     ac_save_CFLAGS="$CFLAGS"
4792     CFLAGS='-x c++  -Wl,--gc-sections'
4793
4794     # Check for -Wl,--gc-sections
4795     # XXX This test is broken at the moment, as symbols required for
4796     # linking are now in libsupc++ (not built yet.....). In addition, 
4797     # this test has cored on solaris in the past. In addition,
4798     # --gc-sections doesn't really work at the moment (keeps on discarding
4799     # used sections, first .eh_frame and now some of the glibc sections for
4800     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4801     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4802 echo "configure:4803: checking for ld that supports -Wl,--gc-sections" >&5
4803     if test "$cross_compiling" = yes; then
4804   ac_sectionLDflags=yes
4805 else
4806   cat > conftest.$ac_ext <<EOF
4807 #line 4808 "configure"
4808 #include "confdefs.h"
4809
4810      int main(void) 
4811      {
4812        try { throw 1; }
4813        catch (...) { };
4814        return 0;
4815      }
4816     
4817 EOF
4818 if { (eval echo configure:4819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4819 then
4820   ac_sectionLDflags=yes
4821 else
4822   echo "configure: failed program was:" >&5
4823   cat conftest.$ac_ext >&5
4824   rm -fr conftest*
4825   ac_sectionLFflags=no
4826 fi
4827 rm -fr conftest*
4828 fi
4829
4830     if test "$ac_test_CFLAGS" = set; then
4831       CFLAGS="$ac_save_CFLAGS"
4832     else
4833       # this is the suspicious part
4834       CFLAGS=''
4835     fi
4836     if test "$ac_sectionLDflags" = "yes"; then
4837       SECTION_LDFLAGS='-Wl,--gc-sections'
4838     fi
4839     echo "$ac_t""$ac_sectionLDflags" 1>&6
4840   fi
4841
4842   # Set linker optimization flags.
4843   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
4844      test x"$enable_debug" = x"no"; then
4845     OPT_LDFLAGS='-Wl,-O1'
4846   fi
4847
4848   
4849   
4850
4851       
4852     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4853 echo "configure:4854: checking for main in -lm" >&5
4854 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4856   echo $ac_n "(cached) $ac_c" 1>&6
4857 else
4858   ac_save_LIBS="$LIBS"
4859 LIBS="-lm  $LIBS"
4860 cat > conftest.$ac_ext <<EOF
4861 #line 4862 "configure"
4862 #include "confdefs.h"
4863
4864 int main() {
4865 main()
4866 ; return 0; }
4867 EOF
4868 if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4869   rm -rf conftest*
4870   eval "ac_cv_lib_$ac_lib_var=yes"
4871 else
4872   echo "configure: failed program was:" >&5
4873   cat conftest.$ac_ext >&5
4874   rm -rf conftest*
4875   eval "ac_cv_lib_$ac_lib_var=no"
4876 fi
4877 rm -f conftest*
4878 LIBS="$ac_save_LIBS"
4879
4880 fi
4881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4882   echo "$ac_t""yes" 1>&6
4883     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4884     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4885   cat >> confdefs.h <<EOF
4886 #define $ac_tr_lib 1
4887 EOF
4888
4889   LIBS="-lm $LIBS"
4890
4891 else
4892   echo "$ac_t""no" 1>&6
4893 fi
4894
4895   for ac_func in nan copysignf
4896 do
4897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4898 echo "configure:4899: checking for $ac_func" >&5
4899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4900   echo $ac_n "(cached) $ac_c" 1>&6
4901 else
4902   cat > conftest.$ac_ext <<EOF
4903 #line 4904 "configure"
4904 #include "confdefs.h"
4905 /* System header to define __stub macros and hopefully few prototypes,
4906     which can conflict with char $ac_func(); below.  */
4907 #include <assert.h>
4908 /* Override any gcc2 internal prototype to avoid an error.  */
4909 /* We use char because int might match the return type of a gcc2
4910     builtin and then its argument prototype would still apply.  */
4911 char $ac_func();
4912
4913 int main() {
4914
4915 /* The GNU C library defines this for functions which it implements
4916     to always fail with ENOSYS.  Some functions are actually named
4917     something starting with __ and the normal name is an alias.  */
4918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4919 choke me
4920 #else
4921 $ac_func();
4922 #endif
4923
4924 ; return 0; }
4925 EOF
4926 if { (eval echo configure:4927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4927   rm -rf conftest*
4928   eval "ac_cv_func_$ac_func=yes"
4929 else
4930   echo "configure: failed program was:" >&5
4931   cat conftest.$ac_ext >&5
4932   rm -rf conftest*
4933   eval "ac_cv_func_$ac_func=no"
4934 fi
4935 rm -f conftest*
4936 fi
4937
4938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4939   echo "$ac_t""yes" 1>&6
4940     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4941   cat >> confdefs.h <<EOF
4942 #define $ac_tr_func 1
4943 EOF
4944  
4945 else
4946   echo "$ac_t""no" 1>&6
4947 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4948 fi
4949 done
4950
4951
4952
4953           USE_COMPLEX_LONG_DOUBLE=no
4954   if test x$ac_cv_func_copysignl = x"yes"; then
4955     USE_COMPLEX_LONG_DOUBLE=yes
4956     for ac_func in signbitl
4957 do
4958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4959 echo "configure:4960: checking for $ac_func" >&5
4960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4961   echo $ac_n "(cached) $ac_c" 1>&6
4962 else
4963   cat > conftest.$ac_ext <<EOF
4964 #line 4965 "configure"
4965 #include "confdefs.h"
4966 /* System header to define __stub macros and hopefully few prototypes,
4967     which can conflict with char $ac_func(); below.  */
4968 #include <assert.h>
4969 /* Override any gcc2 internal prototype to avoid an error.  */
4970 /* We use char because int might match the return type of a gcc2
4971     builtin and then its argument prototype would still apply.  */
4972 char $ac_func();
4973
4974 int main() {
4975
4976 /* The GNU C library defines this for functions which it implements
4977     to always fail with ENOSYS.  Some functions are actually named
4978     something starting with __ and the normal name is an alias.  */
4979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4980 choke me
4981 #else
4982 $ac_func();
4983 #endif
4984
4985 ; return 0; }
4986 EOF
4987 if { (eval echo configure:4988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4988   rm -rf conftest*
4989   eval "ac_cv_func_$ac_func=yes"
4990 else
4991   echo "configure: failed program was:" >&5
4992   cat conftest.$ac_ext >&5
4993   rm -rf conftest*
4994   eval "ac_cv_func_$ac_func=no"
4995 fi
4996 rm -f conftest*
4997 fi
4998
4999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5000   echo "$ac_t""yes" 1>&6
5001     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5002   cat >> confdefs.h <<EOF
5003 #define $ac_tr_func 1
5004 EOF
5005  
5006 else
5007   echo "$ac_t""no" 1>&6
5008 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5009 fi
5010 done
5011
5012
5013   fi
5014
5015   
5016
5017       
5018
5019       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5020 echo "configure:5021: checking for mbstate_t" >&5
5021   cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5024 #include <wchar.h>
5025 int main() {
5026 mbstate_t teststate;
5027 ; return 0; }
5028 EOF
5029 if { (eval echo configure:5030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5030   rm -rf conftest*
5031   have_mbstate_t=yes
5032 else
5033   echo "configure: failed program was:" >&5
5034   cat conftest.$ac_ext >&5
5035   rm -rf conftest*
5036   have_mbstate_t=no
5037 fi
5038 rm -f conftest*
5039   echo "$ac_t""$have_mbstate_t" 1>&6
5040   if test x"$have_mbstate_t" = xyes; then
5041     cat >> confdefs.h <<\EOF
5042 #define HAVE_MBSTATE_T 1
5043 EOF
5044
5045   fi
5046
5047     for ac_hdr in wchar.h
5048 do
5049 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5050 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5051 echo "configure:5052: checking for $ac_hdr" >&5
5052 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5053   echo $ac_n "(cached) $ac_c" 1>&6
5054 else
5055   cat > conftest.$ac_ext <<EOF
5056 #line 5057 "configure"
5057 #include "confdefs.h"
5058 #include <$ac_hdr>
5059 EOF
5060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5061 { (eval echo configure:5062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5063 if test -z "$ac_err"; then
5064   rm -rf conftest*
5065   eval "ac_cv_header_$ac_safe=yes"
5066 else
5067   echo "$ac_err" >&5
5068   echo "configure: failed program was:" >&5
5069   cat conftest.$ac_ext >&5
5070   rm -rf conftest*
5071   eval "ac_cv_header_$ac_safe=no"
5072 fi
5073 rm -f conftest*
5074 fi
5075 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5076   echo "$ac_t""yes" 1>&6
5077     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5078   cat >> confdefs.h <<EOF
5079 #define $ac_tr_hdr 1
5080 EOF
5081  ac_has_wchar_h=yes
5082 else
5083   echo "$ac_t""no" 1>&6
5084 ac_has_wchar_h=no
5085 fi
5086 done
5087
5088   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
5089 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
5090 echo "configure:5091: checking for wctype.h" >&5
5091 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5092   echo $ac_n "(cached) $ac_c" 1>&6
5093 else
5094   cat > conftest.$ac_ext <<EOF
5095 #line 5096 "configure"
5096 #include "confdefs.h"
5097 #include <wctype.h>
5098 EOF
5099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5100 { (eval echo configure:5101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5102 if test -z "$ac_err"; then
5103   rm -rf conftest*
5104   eval "ac_cv_header_$ac_safe=yes"
5105 else
5106   echo "$ac_err" >&5
5107   echo "configure: failed program was:" >&5
5108   cat conftest.$ac_ext >&5
5109   rm -rf conftest*
5110   eval "ac_cv_header_$ac_safe=no"
5111 fi
5112 rm -f conftest*
5113 fi
5114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5115   echo "$ac_t""yes" 1>&6
5116   ac_has_wctype_h=yes
5117 else
5118   echo "$ac_t""no" 1>&6
5119 ac_has_wctype_h=no
5120 fi
5121
5122   
5123     if test x"$ac_has_wchar_h" = xyes &&
5124      test x"$ac_has_wctype_h" = xyes &&
5125      test x"$enable_c_mbchar" != xno; then
5126       
5127             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5128 echo "configure:5129: checking for WCHAR_MIN and WCHAR_MAX" >&5
5129     cat > conftest.$ac_ext <<EOF
5130 #line 5131 "configure"
5131 #include "confdefs.h"
5132 #include <wchar.h>
5133 int main() {
5134 int i = WCHAR_MIN; int j = WCHAR_MAX;
5135 ; return 0; }
5136 EOF
5137 if { (eval echo configure:5138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5138   rm -rf conftest*
5139   has_wchar_minmax=yes
5140 else
5141   echo "configure: failed program was:" >&5
5142   cat conftest.$ac_ext >&5
5143   rm -rf conftest*
5144   has_wchar_minmax=no
5145 fi
5146 rm -f conftest*
5147     echo "$ac_t""$has_wchar_minmax" 1>&6
5148     
5149             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5150 echo "configure:5151: checking for WEOF" >&5
5151     cat > conftest.$ac_ext <<EOF
5152 #line 5153 "configure"
5153 #include "confdefs.h"
5154
5155       #include <wchar.h>
5156       #include <stddef.h>
5157 int main() {
5158 wint_t i = WEOF;
5159 ; return 0; }
5160 EOF
5161 if { (eval echo configure:5162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5162   rm -rf conftest*
5163   has_weof=yes
5164 else
5165   echo "configure: failed program was:" >&5
5166   cat conftest.$ac_ext >&5
5167   rm -rf conftest*
5168   has_weof=no
5169 fi
5170 rm -f conftest*
5171     echo "$ac_t""$has_weof" 1>&6
5172   
5173         ac_wfuncs=yes
5174     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5175 do
5176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5177 echo "configure:5178: checking for $ac_func" >&5
5178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5179   echo $ac_n "(cached) $ac_c" 1>&6
5180 else
5181   cat > conftest.$ac_ext <<EOF
5182 #line 5183 "configure"
5183 #include "confdefs.h"
5184 /* System header to define __stub macros and hopefully few prototypes,
5185     which can conflict with char $ac_func(); below.  */
5186 #include <assert.h>
5187 /* Override any gcc2 internal prototype to avoid an error.  */
5188 /* We use char because int might match the return type of a gcc2
5189     builtin and then its argument prototype would still apply.  */
5190 char $ac_func();
5191
5192 int main() {
5193
5194 /* The GNU C library defines this for functions which it implements
5195     to always fail with ENOSYS.  Some functions are actually named
5196     something starting with __ and the normal name is an alias.  */
5197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5198 choke me
5199 #else
5200 $ac_func();
5201 #endif
5202
5203 ; return 0; }
5204 EOF
5205 if { (eval echo configure:5206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5206   rm -rf conftest*
5207   eval "ac_cv_func_$ac_func=yes"
5208 else
5209   echo "configure: failed program was:" >&5
5210   cat conftest.$ac_ext >&5
5211   rm -rf conftest*
5212   eval "ac_cv_func_$ac_func=no"
5213 fi
5214 rm -f conftest*
5215 fi
5216
5217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5218   echo "$ac_t""yes" 1>&6
5219     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5220   cat >> confdefs.h <<EOF
5221 #define $ac_tr_func 1
5222 EOF
5223  
5224 else
5225   echo "$ac_t""no" 1>&6
5226 \
5227     ac_wfuncs=no
5228 fi
5229 done
5230
5231   
5232         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5233     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5234     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5235     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5236     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5237     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5238 do
5239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5240 echo "configure:5241: checking for $ac_func" >&5
5241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5242   echo $ac_n "(cached) $ac_c" 1>&6
5243 else
5244   cat > conftest.$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5247 /* System header to define __stub macros and hopefully few prototypes,
5248     which can conflict with char $ac_func(); below.  */
5249 #include <assert.h>
5250 /* Override any gcc2 internal prototype to avoid an error.  */
5251 /* We use char because int might match the return type of a gcc2
5252     builtin and then its argument prototype would still apply.  */
5253 char $ac_func();
5254
5255 int main() {
5256
5257 /* The GNU C library defines this for functions which it implements
5258     to always fail with ENOSYS.  Some functions are actually named
5259     something starting with __ and the normal name is an alias.  */
5260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5261 choke me
5262 #else
5263 $ac_func();
5264 #endif
5265
5266 ; return 0; }
5267 EOF
5268 if { (eval echo configure:5269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5269   rm -rf conftest*
5270   eval "ac_cv_func_$ac_func=yes"
5271 else
5272   echo "configure: failed program was:" >&5
5273   cat conftest.$ac_ext >&5
5274   rm -rf conftest*
5275   eval "ac_cv_func_$ac_func=no"
5276 fi
5277 rm -f conftest*
5278 fi
5279
5280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5281   echo "$ac_t""yes" 1>&6
5282     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5283   cat >> confdefs.h <<EOF
5284 #define $ac_tr_func 1
5285 EOF
5286  
5287 else
5288   echo "$ac_t""no" 1>&6
5289 \
5290     ac_wfuncs=no
5291 fi
5292 done
5293
5294
5295     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5296 echo "configure:5297: checking for ISO C99 wchar_t support" >&5
5297     if test x"$has_weof" = xyes &&
5298        test x"$has_wchar_minmax" = xyes &&
5299        test x"$ac_wfuncs" = xyes; then
5300       ac_isoC99_wchar_t=yes
5301     else
5302       ac_isoC99_wchar_t=no
5303     fi
5304     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5305   
5306             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5307 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5308 echo "configure:5309: checking for iconv.h" >&5
5309 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5310   echo $ac_n "(cached) $ac_c" 1>&6
5311 else
5312   cat > conftest.$ac_ext <<EOF
5313 #line 5314 "configure"
5314 #include "confdefs.h"
5315 #include <iconv.h>
5316 EOF
5317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5318 { (eval echo configure:5319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5320 if test -z "$ac_err"; then
5321   rm -rf conftest*
5322   eval "ac_cv_header_$ac_safe=yes"
5323 else
5324   echo "$ac_err" >&5
5325   echo "configure: failed program was:" >&5
5326   cat conftest.$ac_ext >&5
5327   rm -rf conftest*
5328   eval "ac_cv_header_$ac_safe=no"
5329 fi
5330 rm -f conftest*
5331 fi
5332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5333   echo "$ac_t""yes" 1>&6
5334   ac_has_iconv_h=yes
5335 else
5336   echo "$ac_t""no" 1>&6
5337 ac_has_iconv_h=no
5338 fi
5339
5340     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5341 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5342 echo "configure:5343: checking for langinfo.h" >&5
5343 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5344   echo $ac_n "(cached) $ac_c" 1>&6
5345 else
5346   cat > conftest.$ac_ext <<EOF
5347 #line 5348 "configure"
5348 #include "confdefs.h"
5349 #include <langinfo.h>
5350 EOF
5351 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5352 { (eval echo configure:5353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5353 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5354 if test -z "$ac_err"; then
5355   rm -rf conftest*
5356   eval "ac_cv_header_$ac_safe=yes"
5357 else
5358   echo "$ac_err" >&5
5359   echo "configure: failed program was:" >&5
5360   cat conftest.$ac_ext >&5
5361   rm -rf conftest*
5362   eval "ac_cv_header_$ac_safe=no"
5363 fi
5364 rm -f conftest*
5365 fi
5366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5367   echo "$ac_t""yes" 1>&6
5368   ac_has_langinfo_h=yes
5369 else
5370   echo "$ac_t""no" 1>&6
5371 ac_has_langinfo_h=no
5372 fi
5373
5374
5375         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5376 echo "configure:5377: checking for iconv in -liconv" >&5
5377 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5379   echo $ac_n "(cached) $ac_c" 1>&6
5380 else
5381   ac_save_LIBS="$LIBS"
5382 LIBS="-liconv  $LIBS"
5383 cat > conftest.$ac_ext <<EOF
5384 #line 5385 "configure"
5385 #include "confdefs.h"
5386 /* Override any gcc2 internal prototype to avoid an error.  */
5387 /* We use char because int might match the return type of a gcc2
5388     builtin and then its argument prototype would still apply.  */
5389 char iconv();
5390
5391 int main() {
5392 iconv()
5393 ; return 0; }
5394 EOF
5395 if { (eval echo configure:5396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5396   rm -rf conftest*
5397   eval "ac_cv_lib_$ac_lib_var=yes"
5398 else
5399   echo "configure: failed program was:" >&5
5400   cat conftest.$ac_ext >&5
5401   rm -rf conftest*
5402   eval "ac_cv_lib_$ac_lib_var=no"
5403 fi
5404 rm -f conftest*
5405 LIBS="$ac_save_LIBS"
5406
5407 fi
5408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5409   echo "$ac_t""yes" 1>&6
5410   libiconv="-liconv"
5411 else
5412   echo "$ac_t""no" 1>&6
5413 fi
5414
5415     ac_save_LIBS="$LIBS"
5416     LIBS="$LIBS $libiconv"
5417
5418     for ac_func in iconv_open iconv_close iconv nl_langinfo
5419 do
5420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5421 echo "configure:5422: checking for $ac_func" >&5
5422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5423   echo $ac_n "(cached) $ac_c" 1>&6
5424 else
5425   cat > conftest.$ac_ext <<EOF
5426 #line 5427 "configure"
5427 #include "confdefs.h"
5428 /* System header to define __stub macros and hopefully few prototypes,
5429     which can conflict with char $ac_func(); below.  */
5430 #include <assert.h>
5431 /* Override any gcc2 internal prototype to avoid an error.  */
5432 /* We use char because int might match the return type of a gcc2
5433     builtin and then its argument prototype would still apply.  */
5434 char $ac_func();
5435
5436 int main() {
5437
5438 /* The GNU C library defines this for functions which it implements
5439     to always fail with ENOSYS.  Some functions are actually named
5440     something starting with __ and the normal name is an alias.  */
5441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5442 choke me
5443 #else
5444 $ac_func();
5445 #endif
5446
5447 ; return 0; }
5448 EOF
5449 if { (eval echo configure:5450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5450   rm -rf conftest*
5451   eval "ac_cv_func_$ac_func=yes"
5452 else
5453   echo "configure: failed program was:" >&5
5454   cat conftest.$ac_ext >&5
5455   rm -rf conftest*
5456   eval "ac_cv_func_$ac_func=no"
5457 fi
5458 rm -f conftest*
5459 fi
5460
5461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5462   echo "$ac_t""yes" 1>&6
5463     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5464   cat >> confdefs.h <<EOF
5465 #define $ac_tr_func 1
5466 EOF
5467  \
5468     ac_XPG2funcs=yes
5469 else
5470   echo "$ac_t""no" 1>&6
5471 ac_XPG2funcs=no
5472 fi
5473 done
5474
5475   
5476     LIBS="$ac_save_LIBS"
5477
5478     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5479 echo "configure:5480: checking for XPG2 wchar_t support" >&5
5480     if test x"$ac_has_iconv_h" = xyes &&
5481        test x"$ac_has_langinfo_h" = xyes &&
5482        test x"$ac_XPG2funcs" = xyes; then
5483       ac_XPG2_wchar_t=yes
5484     else
5485       ac_XPG2_wchar_t=no
5486     fi
5487     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5488   
5489             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5490 echo "configure:5491: checking for enabled wchar_t specializations" >&5
5491     if test x"$ac_isoC99_wchar_t" = xyes &&
5492        test x"$ac_XPG2_wchar_t" = xyes; then
5493       cat >> confdefs.h <<\EOF
5494 #define _GLIBCPP_USE_WCHAR_T 1
5495 EOF
5496
5497       echo "$ac_t"""yes"" 1>&6
5498     else
5499       echo "$ac_t"""no"" 1>&6
5500     fi
5501   else
5502         echo "configure: warning: wchar_t support disabled." 1>&2
5503   fi
5504
5505       os_include_dir="config/os/hpux"
5506       cat >> confdefs.h <<\EOF
5507 #define HAVE_COPYSIGN 1
5508 EOF
5509
5510       cat >> confdefs.h <<\EOF
5511 #define HAVE_COPYSIGNF 1
5512 EOF
5513
5514       cat >> confdefs.h <<\EOF
5515 #define HAVE_FINITEF 1
5516 EOF
5517
5518       cat >> confdefs.h <<\EOF
5519 #define HAVE_FREXPF 1
5520 EOF
5521
5522       cat >> confdefs.h <<\EOF
5523 #define HAVE_HYPOT 1
5524 EOF
5525
5526       cat >> confdefs.h <<\EOF
5527 #define HAVE_SINCOS 1
5528 EOF
5529
5530       cat >> confdefs.h <<\EOF
5531 #define HAVE_SINCOSF 1
5532 EOF
5533
5534       ;;
5535     *)
5536       os_include_dir="config/os/newlib"
5537       cat >> confdefs.h <<\EOF
5538 #define HAVE_HYPOT 1
5539 EOF
5540
5541       ;;
5542   esac
5543
5544   # GLIBCPP_CHECK_STDLIB_SUPPORT
5545   cat >> confdefs.h <<\EOF
5546 #define HAVE_STRTOF 1
5547 EOF
5548         
5549   cat >> confdefs.h <<\EOF
5550 #define HAVE_STRTOLD 1
5551 EOF
5552         
5553   # AC_FUNC_MMAP
5554   cat >> confdefs.h <<\EOF
5555 #define HAVE_MMAP 1
5556 EOF
5557
5558
5559   cat >> confdefs.h <<\EOF
5560 #define HAVE_ACOSF 1
5561 EOF
5562
5563   cat >> confdefs.h <<\EOF
5564 #define HAVE_ASINF 1
5565 EOF
5566
5567   cat >> confdefs.h <<\EOF
5568 #define HAVE_ATAN2F 1
5569 EOF
5570
5571   cat >> confdefs.h <<\EOF
5572 #define HAVE_ATANF 1
5573 EOF
5574
5575   cat >> confdefs.h <<\EOF
5576 #define HAVE_CEILF 1
5577 EOF
5578
5579   cat >> confdefs.h <<\EOF
5580 #define HAVE_COPYSIGN 1
5581 EOF
5582
5583   cat >> confdefs.h <<\EOF
5584 #define HAVE_COPYSIGNF 1
5585 EOF
5586
5587   cat >> confdefs.h <<\EOF
5588 #define HAVE_COSF 1
5589 EOF
5590
5591   cat >> confdefs.h <<\EOF
5592 #define HAVE_COSHF 1
5593 EOF
5594
5595   cat >> confdefs.h <<\EOF
5596 #define HAVE_EXPF 1
5597 EOF
5598
5599   cat >> confdefs.h <<\EOF
5600 #define HAVE_FABSF 1
5601 EOF
5602
5603   cat >> confdefs.h <<\EOF
5604 #define HAVE_FINITE 1
5605 EOF
5606
5607   cat >> confdefs.h <<\EOF
5608 #define HAVE_FINITEF 1
5609 EOF
5610
5611   cat >> confdefs.h <<\EOF
5612 #define HAVE_FLOORF 1
5613 EOF
5614
5615   cat >> confdefs.h <<\EOF
5616 #define HAVE_FMODF 1
5617 EOF
5618
5619   cat >> confdefs.h <<\EOF
5620 #define HAVE_FREXPF 1
5621 EOF
5622
5623   cat >> confdefs.h <<\EOF
5624 #define HAVE_ISINF 1
5625 EOF
5626
5627   cat >> confdefs.h <<\EOF
5628 #define HAVE_ISINFF 1
5629 EOF
5630
5631   cat >> confdefs.h <<\EOF
5632 #define HAVE_ISNAN 1
5633 EOF
5634
5635   cat >> confdefs.h <<\EOF
5636 #define HAVE_ISNANF 1
5637 EOF
5638
5639   cat >> confdefs.h <<\EOF
5640 #define HAVE_LDEXPF 1
5641 EOF
5642
5643   cat >> confdefs.h <<\EOF
5644 #define HAVE_LOG10F 1
5645 EOF
5646
5647   cat >> confdefs.h <<\EOF
5648 #define HAVE_LOGF 1
5649 EOF
5650
5651   cat >> confdefs.h <<\EOF
5652 #define HAVE_MODFF 1
5653 EOF
5654
5655   cat >> confdefs.h <<\EOF
5656 #define HAVE_POWF 1
5657 EOF
5658
5659   cat >> confdefs.h <<\EOF
5660 #define HAVE_SINF 1
5661 EOF
5662
5663   cat >> confdefs.h <<\EOF
5664 #define HAVE_SINHF 1
5665 EOF
5666
5667   cat >> confdefs.h <<\EOF
5668 #define HAVE_SQRTF 1
5669 EOF
5670
5671   cat >> confdefs.h <<\EOF
5672 #define HAVE_TANF 1
5673 EOF
5674
5675   cat >> confdefs.h <<\EOF
5676 #define HAVE_TANHF 1
5677 EOF
5678
5679
5680   # At some point, we should differentiate between architectures
5681   # like x86, which have long double versions, and alpha/powerpc/etc.,
5682   # which don't. For the time being, punt.
5683   if test x"long_double_math_on_this_cpu" = x"yes"; then
5684     cat >> confdefs.h <<\EOF
5685 #define HAVE_ACOSL 1
5686 EOF
5687
5688     cat >> confdefs.h <<\EOF
5689 #define HAVE_ASINL 1
5690 EOF
5691
5692     cat >> confdefs.h <<\EOF
5693 #define HAVE_ATAN2L 1
5694 EOF
5695
5696     cat >> confdefs.h <<\EOF
5697 #define HAVE_ATANL 1
5698 EOF
5699
5700     cat >> confdefs.h <<\EOF
5701 #define HAVE_CEILL 1
5702 EOF
5703
5704     cat >> confdefs.h <<\EOF
5705 #define HAVE_COPYSIGNL 1
5706 EOF
5707
5708     cat >> confdefs.h <<\EOF
5709 #define HAVE_COSL 1
5710 EOF
5711
5712     cat >> confdefs.h <<\EOF
5713 #define HAVE_COSHL 1
5714 EOF
5715
5716     cat >> confdefs.h <<\EOF
5717 #define HAVE_EXPL 1
5718 EOF
5719
5720     cat >> confdefs.h <<\EOF
5721 #define HAVE_FABSL 1
5722 EOF
5723
5724     cat >> confdefs.h <<\EOF
5725 #define HAVE_FINITEL 1
5726 EOF
5727
5728     cat >> confdefs.h <<\EOF
5729 #define HAVE_FLOORL 1
5730 EOF
5731
5732     cat >> confdefs.h <<\EOF
5733 #define HAVE_FMODL 1
5734 EOF
5735
5736     cat >> confdefs.h <<\EOF
5737 #define HAVE_FREXPL 1
5738 EOF
5739
5740     cat >> confdefs.h <<\EOF
5741 #define HAVE_ISINFL 1
5742 EOF
5743
5744     cat >> confdefs.h <<\EOF
5745 #define HAVE_ISNANL 1
5746 EOF
5747
5748     cat >> confdefs.h <<\EOF
5749 #define HAVE_LDEXPL 1
5750 EOF
5751
5752     cat >> confdefs.h <<\EOF
5753 #define HAVE_LOG10L 1
5754 EOF
5755
5756     cat >> confdefs.h <<\EOF
5757 #define HAVE_LOGL 1
5758 EOF
5759
5760     cat >> confdefs.h <<\EOF
5761 #define HAVE_MODFL 1
5762 EOF
5763
5764     cat >> confdefs.h <<\EOF
5765 #define HAVE_POWL 1
5766 EOF
5767
5768     cat >> confdefs.h <<\EOF
5769 #define HAVE_SINCOSL 1
5770 EOF
5771
5772     cat >> confdefs.h <<\EOF
5773 #define HAVE_SINL 1
5774 EOF
5775
5776     cat >> confdefs.h <<\EOF
5777 #define HAVE_SINHL 1
5778 EOF
5779
5780     cat >> confdefs.h <<\EOF
5781 #define HAVE_SQRTL 1
5782 EOF
5783
5784     cat >> confdefs.h <<\EOF
5785 #define HAVE_TANL 1
5786 EOF
5787
5788     cat >> confdefs.h <<\EOF
5789 #define HAVE_TANHL 1
5790 EOF
5791
5792   fi
5793 else
5794
5795   # We are being configured natively. We can do more elaborate tests
5796   # that include AC_TRY_COMPILE now, as the linker is assumed to be
5797   # working.
5798   GLIBCPP_IS_CROSS_COMPILING=0
5799   CANADIAN=no
5800
5801   # Check for available headers.
5802   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
5803   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
5804 do
5805 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5806 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5807 echo "configure:5808: checking for $ac_hdr" >&5
5808 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5809   echo $ac_n "(cached) $ac_c" 1>&6
5810 else
5811   cat > conftest.$ac_ext <<EOF
5812 #line 5813 "configure"
5813 #include "confdefs.h"
5814 #include <$ac_hdr>
5815 EOF
5816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5817 { (eval echo configure:5818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5818 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5819 if test -z "$ac_err"; then
5820   rm -rf conftest*
5821   eval "ac_cv_header_$ac_safe=yes"
5822 else
5823   echo "$ac_err" >&5
5824   echo "configure: failed program was:" >&5
5825   cat conftest.$ac_ext >&5
5826   rm -rf conftest*
5827   eval "ac_cv_header_$ac_safe=no"
5828 fi
5829 rm -f conftest*
5830 fi
5831 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5832   echo "$ac_t""yes" 1>&6
5833     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5834   cat >> confdefs.h <<EOF
5835 #define $ac_tr_hdr 1
5836 EOF
5837  
5838 else
5839   echo "$ac_t""no" 1>&6
5840 fi
5841 done
5842
5843
5844   
5845   # All these tests are for C++; save the language and the compiler flags.
5846   # The CXXFLAGS thing is suspicious, but based on similar bits previously
5847   # found in GLIBCPP_CONFIGURE.
5848   
5849   ac_ext=C
5850 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5851 ac_cpp='$CXXCPP $CPPFLAGS'
5852 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5853 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5854 cross_compiling=$ac_cv_prog_cxx_cross
5855
5856   ac_test_CXXFLAGS="${CXXFLAGS+set}"
5857   ac_save_CXXFLAGS="$CXXFLAGS"
5858
5859   # Check for maintainer-mode bits.
5860   if test x"$USE_MAINTAINER_MODE" = xno; then
5861     WERROR=''
5862   else
5863     WERROR='-Werror'
5864   fi
5865
5866   # Check for -ffunction-sections -fdata-sections
5867   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
5868 echo "configure:5869: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
5869   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
5870   cat > conftest.$ac_ext <<EOF
5871 #line 5872 "configure"
5872 #include "confdefs.h"
5873
5874 int main() {
5875 int foo;
5876   
5877 ; return 0; }
5878 EOF
5879 if { (eval echo configure:5880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5880   rm -rf conftest*
5881   ac_fdsections=yes
5882 else
5883   echo "configure: failed program was:" >&5
5884   cat conftest.$ac_ext >&5
5885   rm -rf conftest*
5886   ac_fdsections=no
5887 fi
5888 rm -f conftest*
5889   if test "$ac_test_CXXFLAGS" = set; then
5890     CXXFLAGS="$ac_save_CXXFLAGS"
5891   else
5892     # this is the suspicious part
5893     CXXFLAGS=''
5894   fi
5895   if test x"$ac_fdsections" = x"yes" &&
5896      test x"$enable_debug" = x"no"; then
5897     SECTION_FLAGS='-ffunction-sections -fdata-sections'
5898   fi
5899   echo "$ac_t""$ac_fdsections" 1>&6
5900
5901   ac_ext=c
5902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5903 ac_cpp='$CPP $CPPFLAGS'
5904 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5905 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5906 cross_compiling=$ac_cv_prog_cc_cross
5907
5908   
5909   
5910
5911   
5912   # If we're not using GNU ld, then there's no point in even trying these
5913   # tests.  Check for that first.  We should have already tested for gld
5914   # by now (in libtool), but require it now just to be safe...
5915   SECTION_LDFLAGS=''
5916   OPT_LDFLAGS=''
5917   
5918
5919   # Set --gc-sections.
5920   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
5921     # GNU ld it is!  Joy and bunny rabbits!
5922
5923     # All these tests are for C++; save the language and the compiler flags.
5924     # Need to do this so that g++ won't try to link in libstdc++
5925     ac_test_CFLAGS="${CFLAGS+set}"
5926     ac_save_CFLAGS="$CFLAGS"
5927     CFLAGS='-x c++  -Wl,--gc-sections'
5928
5929     # Check for -Wl,--gc-sections
5930     # XXX This test is broken at the moment, as symbols required for
5931     # linking are now in libsupc++ (not built yet.....). In addition, 
5932     # this test has cored on solaris in the past. In addition,
5933     # --gc-sections doesn't really work at the moment (keeps on discarding
5934     # used sections, first .eh_frame and now some of the glibc sections for
5935     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5936     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5937 echo "configure:5938: checking for ld that supports -Wl,--gc-sections" >&5
5938     if test "$cross_compiling" = yes; then
5939   ac_sectionLDflags=yes
5940 else
5941   cat > conftest.$ac_ext <<EOF
5942 #line 5943 "configure"
5943 #include "confdefs.h"
5944
5945      int main(void) 
5946      {
5947        try { throw 1; }
5948        catch (...) { };
5949        return 0;
5950      }
5951     
5952 EOF
5953 if { (eval echo configure:5954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5954 then
5955   ac_sectionLDflags=yes
5956 else
5957   echo "configure: failed program was:" >&5
5958   cat conftest.$ac_ext >&5
5959   rm -fr conftest*
5960   ac_sectionLFflags=no
5961 fi
5962 rm -fr conftest*
5963 fi
5964
5965     if test "$ac_test_CFLAGS" = set; then
5966       CFLAGS="$ac_save_CFLAGS"
5967     else
5968       # this is the suspicious part
5969       CFLAGS=''
5970     fi
5971     if test "$ac_sectionLDflags" = "yes"; then
5972       SECTION_LDFLAGS='-Wl,--gc-sections'
5973     fi
5974     echo "$ac_t""$ac_sectionLDflags" 1>&6
5975   fi
5976
5977   # Set linker optimization flags.
5978   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
5979      test x"$enable_debug" = x"no"; then
5980     OPT_LDFLAGS='-Wl,-O1'
5981   fi
5982
5983   
5984   
5985
5986   
5987       
5988   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5989 echo "configure:5990: checking for __builtin_abs declaration" >&5
5990   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5991     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5992   echo $ac_n "(cached) $ac_c" 1>&6
5993 else
5994   
5995       
5996       ac_ext=C
5997 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5998 ac_cpp='$CXXCPP $CPPFLAGS'
5999 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6000 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6001 cross_compiling=$ac_cv_prog_cxx_cross
6002
6003       cat > conftest.$ac_ext <<EOF
6004 #line 6005 "configure"
6005 #include "confdefs.h"
6006 #include <math.h>
6007 int main() {
6008  __builtin_abs(0);
6009 ; return 0; }
6010 EOF
6011 if { (eval echo configure:6012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6012   rm -rf conftest*
6013   glibcpp_cv_func___builtin_abs_use=yes
6014 else
6015   echo "configure: failed program was:" >&5
6016   cat conftest.$ac_ext >&5
6017   rm -rf conftest*
6018   glibcpp_cv_func___builtin_abs_use=no
6019 fi
6020 rm -f conftest*
6021       ac_ext=c
6022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6023 ac_cpp='$CPP $CPPFLAGS'
6024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6026 cross_compiling=$ac_cv_prog_cc_cross
6027
6028     
6029 fi
6030
6031   fi
6032   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
6033   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
6034     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
6035 echo "configure:6036: checking for __builtin_abs linkage" >&5
6036     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
6037       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
6038   echo $ac_n "(cached) $ac_c" 1>&6
6039 else
6040   
6041         cat > conftest.$ac_ext <<EOF
6042 #line 6043 "configure"
6043 #include "confdefs.h"
6044 #include <math.h>
6045 int main() {
6046  __builtin_abs(0);
6047 ; return 0; }
6048 EOF
6049 if { (eval echo configure:6050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6050   rm -rf conftest*
6051   glibcpp_cv_func___builtin_abs_link=yes
6052 else
6053   echo "configure: failed program was:" >&5
6054   cat conftest.$ac_ext >&5
6055   rm -rf conftest*
6056   glibcpp_cv_func___builtin_abs_link=no
6057 fi
6058 rm -f conftest*
6059       
6060 fi
6061
6062     fi
6063     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
6064     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
6065       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6066       cat >> confdefs.h <<EOF
6067 #define ${ac_tr_func} 1
6068 EOF
6069
6070     fi
6071   fi
6072
6073   
6074   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
6075 echo "configure:6076: checking for __builtin_fabsf declaration" >&5
6076   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
6077     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
6078   echo $ac_n "(cached) $ac_c" 1>&6
6079 else
6080   
6081       
6082       ac_ext=C
6083 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6084 ac_cpp='$CXXCPP $CPPFLAGS'
6085 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6086 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6087 cross_compiling=$ac_cv_prog_cxx_cross
6088
6089       cat > conftest.$ac_ext <<EOF
6090 #line 6091 "configure"
6091 #include "confdefs.h"
6092 #include <math.h>
6093 int main() {
6094  __builtin_fabsf(0);
6095 ; return 0; }
6096 EOF
6097 if { (eval echo configure:6098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6098   rm -rf conftest*
6099   glibcpp_cv_func___builtin_fabsf_use=yes
6100 else
6101   echo "configure: failed program was:" >&5
6102   cat conftest.$ac_ext >&5
6103   rm -rf conftest*
6104   glibcpp_cv_func___builtin_fabsf_use=no
6105 fi
6106 rm -f conftest*
6107       ac_ext=c
6108 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6109 ac_cpp='$CPP $CPPFLAGS'
6110 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6111 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6112 cross_compiling=$ac_cv_prog_cc_cross
6113
6114     
6115 fi
6116
6117   fi
6118   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
6119   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
6120     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
6121 echo "configure:6122: checking for __builtin_fabsf linkage" >&5
6122     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
6123       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
6124   echo $ac_n "(cached) $ac_c" 1>&6
6125 else
6126   
6127         cat > conftest.$ac_ext <<EOF
6128 #line 6129 "configure"
6129 #include "confdefs.h"
6130 #include <math.h>
6131 int main() {
6132  __builtin_fabsf(0);
6133 ; return 0; }
6134 EOF
6135 if { (eval echo configure:6136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6136   rm -rf conftest*
6137   glibcpp_cv_func___builtin_fabsf_link=yes
6138 else
6139   echo "configure: failed program was:" >&5
6140   cat conftest.$ac_ext >&5
6141   rm -rf conftest*
6142   glibcpp_cv_func___builtin_fabsf_link=no
6143 fi
6144 rm -f conftest*
6145       
6146 fi
6147
6148     fi
6149     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
6150     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
6151       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6152       cat >> confdefs.h <<EOF
6153 #define ${ac_tr_func} 1
6154 EOF
6155
6156     fi
6157   fi
6158
6159   
6160   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
6161 echo "configure:6162: checking for __builtin_fabs declaration" >&5
6162   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
6163     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
6164   echo $ac_n "(cached) $ac_c" 1>&6
6165 else
6166   
6167       
6168       ac_ext=C
6169 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6170 ac_cpp='$CXXCPP $CPPFLAGS'
6171 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6172 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6173 cross_compiling=$ac_cv_prog_cxx_cross
6174
6175       cat > conftest.$ac_ext <<EOF
6176 #line 6177 "configure"
6177 #include "confdefs.h"
6178 #include <math.h>
6179 int main() {
6180  __builtin_fabs(0);
6181 ; return 0; }
6182 EOF
6183 if { (eval echo configure:6184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6184   rm -rf conftest*
6185   glibcpp_cv_func___builtin_fabs_use=yes
6186 else
6187   echo "configure: failed program was:" >&5
6188   cat conftest.$ac_ext >&5
6189   rm -rf conftest*
6190   glibcpp_cv_func___builtin_fabs_use=no
6191 fi
6192 rm -f conftest*
6193       ac_ext=c
6194 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6195 ac_cpp='$CPP $CPPFLAGS'
6196 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6197 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6198 cross_compiling=$ac_cv_prog_cc_cross
6199
6200     
6201 fi
6202
6203   fi
6204   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
6205   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
6206     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
6207 echo "configure:6208: checking for __builtin_fabs linkage" >&5
6208     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
6209       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
6210   echo $ac_n "(cached) $ac_c" 1>&6
6211 else
6212   
6213         cat > conftest.$ac_ext <<EOF
6214 #line 6215 "configure"
6215 #include "confdefs.h"
6216 #include <math.h>
6217 int main() {
6218  __builtin_fabs(0);
6219 ; return 0; }
6220 EOF
6221 if { (eval echo configure:6222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6222   rm -rf conftest*
6223   glibcpp_cv_func___builtin_fabs_link=yes
6224 else
6225   echo "configure: failed program was:" >&5
6226   cat conftest.$ac_ext >&5
6227   rm -rf conftest*
6228   glibcpp_cv_func___builtin_fabs_link=no
6229 fi
6230 rm -f conftest*
6231       
6232 fi
6233
6234     fi
6235     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
6236     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
6237       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6238       cat >> confdefs.h <<EOF
6239 #define ${ac_tr_func} 1
6240 EOF
6241
6242     fi
6243   fi
6244
6245   
6246   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
6247 echo "configure:6248: checking for __builtin_fabsl declaration" >&5
6248   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
6249     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
6250   echo $ac_n "(cached) $ac_c" 1>&6
6251 else
6252   
6253       
6254       ac_ext=C
6255 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6256 ac_cpp='$CXXCPP $CPPFLAGS'
6257 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6258 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6259 cross_compiling=$ac_cv_prog_cxx_cross
6260
6261       cat > conftest.$ac_ext <<EOF
6262 #line 6263 "configure"
6263 #include "confdefs.h"
6264 #include <math.h>
6265 int main() {
6266  __builtin_fabsl(0);
6267 ; return 0; }
6268 EOF
6269 if { (eval echo configure:6270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6270   rm -rf conftest*
6271   glibcpp_cv_func___builtin_fabsl_use=yes
6272 else
6273   echo "configure: failed program was:" >&5
6274   cat conftest.$ac_ext >&5
6275   rm -rf conftest*
6276   glibcpp_cv_func___builtin_fabsl_use=no
6277 fi
6278 rm -f conftest*
6279       ac_ext=c
6280 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6281 ac_cpp='$CPP $CPPFLAGS'
6282 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6283 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6284 cross_compiling=$ac_cv_prog_cc_cross
6285
6286     
6287 fi
6288
6289   fi
6290   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
6291   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
6292     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
6293 echo "configure:6294: checking for __builtin_fabsl linkage" >&5
6294     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
6295       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
6296   echo $ac_n "(cached) $ac_c" 1>&6
6297 else
6298   
6299         cat > conftest.$ac_ext <<EOF
6300 #line 6301 "configure"
6301 #include "confdefs.h"
6302 #include <math.h>
6303 int main() {
6304  __builtin_fabsl(0);
6305 ; return 0; }
6306 EOF
6307 if { (eval echo configure:6308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6308   rm -rf conftest*
6309   glibcpp_cv_func___builtin_fabsl_link=yes
6310 else
6311   echo "configure: failed program was:" >&5
6312   cat conftest.$ac_ext >&5
6313   rm -rf conftest*
6314   glibcpp_cv_func___builtin_fabsl_link=no
6315 fi
6316 rm -f conftest*
6317       
6318 fi
6319
6320     fi
6321     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
6322     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
6323       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6324       cat >> confdefs.h <<EOF
6325 #define ${ac_tr_func} 1
6326 EOF
6327
6328     fi
6329   fi
6330
6331   
6332   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
6333 echo "configure:6334: checking for __builtin_labs declaration" >&5
6334   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
6335     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
6336   echo $ac_n "(cached) $ac_c" 1>&6
6337 else
6338   
6339       
6340       ac_ext=C
6341 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6342 ac_cpp='$CXXCPP $CPPFLAGS'
6343 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6344 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6345 cross_compiling=$ac_cv_prog_cxx_cross
6346
6347       cat > conftest.$ac_ext <<EOF
6348 #line 6349 "configure"
6349 #include "confdefs.h"
6350 #include <math.h>
6351 int main() {
6352  __builtin_labs(0);
6353 ; return 0; }
6354 EOF
6355 if { (eval echo configure:6356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6356   rm -rf conftest*
6357   glibcpp_cv_func___builtin_labs_use=yes
6358 else
6359   echo "configure: failed program was:" >&5
6360   cat conftest.$ac_ext >&5
6361   rm -rf conftest*
6362   glibcpp_cv_func___builtin_labs_use=no
6363 fi
6364 rm -f conftest*
6365       ac_ext=c
6366 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6367 ac_cpp='$CPP $CPPFLAGS'
6368 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6369 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6370 cross_compiling=$ac_cv_prog_cc_cross
6371
6372     
6373 fi
6374
6375   fi
6376   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
6377   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
6378     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
6379 echo "configure:6380: checking for __builtin_labs linkage" >&5
6380     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
6381       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
6382   echo $ac_n "(cached) $ac_c" 1>&6
6383 else
6384   
6385         cat > conftest.$ac_ext <<EOF
6386 #line 6387 "configure"
6387 #include "confdefs.h"
6388 #include <math.h>
6389 int main() {
6390  __builtin_labs(0);
6391 ; return 0; }
6392 EOF
6393 if { (eval echo configure:6394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6394   rm -rf conftest*
6395   glibcpp_cv_func___builtin_labs_link=yes
6396 else
6397   echo "configure: failed program was:" >&5
6398   cat conftest.$ac_ext >&5
6399   rm -rf conftest*
6400   glibcpp_cv_func___builtin_labs_link=no
6401 fi
6402 rm -f conftest*
6403       
6404 fi
6405
6406     fi
6407     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
6408     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
6409       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6410       cat >> confdefs.h <<EOF
6411 #define ${ac_tr_func} 1
6412 EOF
6413
6414     fi
6415   fi
6416
6417
6418   
6419   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
6420 echo "configure:6421: checking for __builtin_sqrtf declaration" >&5
6421   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
6422     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
6423   echo $ac_n "(cached) $ac_c" 1>&6
6424 else
6425   
6426       
6427       ac_ext=C
6428 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6429 ac_cpp='$CXXCPP $CPPFLAGS'
6430 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6431 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6432 cross_compiling=$ac_cv_prog_cxx_cross
6433
6434       cat > conftest.$ac_ext <<EOF
6435 #line 6436 "configure"
6436 #include "confdefs.h"
6437 #include <math.h>
6438 int main() {
6439  __builtin_sqrtf(0);
6440 ; return 0; }
6441 EOF
6442 if { (eval echo configure:6443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6443   rm -rf conftest*
6444   glibcpp_cv_func___builtin_sqrtf_use=yes
6445 else
6446   echo "configure: failed program was:" >&5
6447   cat conftest.$ac_ext >&5
6448   rm -rf conftest*
6449   glibcpp_cv_func___builtin_sqrtf_use=no
6450 fi
6451 rm -f conftest*
6452       ac_ext=c
6453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6454 ac_cpp='$CPP $CPPFLAGS'
6455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6457 cross_compiling=$ac_cv_prog_cc_cross
6458
6459     
6460 fi
6461
6462   fi
6463   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
6464   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
6465     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
6466 echo "configure:6467: checking for __builtin_sqrtf linkage" >&5
6467     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
6468       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
6469   echo $ac_n "(cached) $ac_c" 1>&6
6470 else
6471   
6472         cat > conftest.$ac_ext <<EOF
6473 #line 6474 "configure"
6474 #include "confdefs.h"
6475 #include <math.h>
6476 int main() {
6477  __builtin_sqrtf(0);
6478 ; return 0; }
6479 EOF
6480 if { (eval echo configure:6481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6481   rm -rf conftest*
6482   glibcpp_cv_func___builtin_sqrtf_link=yes
6483 else
6484   echo "configure: failed program was:" >&5
6485   cat conftest.$ac_ext >&5
6486   rm -rf conftest*
6487   glibcpp_cv_func___builtin_sqrtf_link=no
6488 fi
6489 rm -f conftest*
6490       
6491 fi
6492
6493     fi
6494     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
6495     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
6496       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6497       cat >> confdefs.h <<EOF
6498 #define ${ac_tr_func} 1
6499 EOF
6500
6501     fi
6502   fi
6503
6504   
6505   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
6506 echo "configure:6507: checking for __builtin_sqrt declaration" >&5
6507   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
6508     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
6509   echo $ac_n "(cached) $ac_c" 1>&6
6510 else
6511   
6512       
6513       ac_ext=C
6514 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6515 ac_cpp='$CXXCPP $CPPFLAGS'
6516 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6517 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6518 cross_compiling=$ac_cv_prog_cxx_cross
6519
6520       cat > conftest.$ac_ext <<EOF
6521 #line 6522 "configure"
6522 #include "confdefs.h"
6523 #include <math.h>
6524 int main() {
6525  __builtin_sqrt(0);
6526 ; return 0; }
6527 EOF
6528 if { (eval echo configure:6529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6529   rm -rf conftest*
6530   glibcpp_cv_func___builtin_sqrt_use=yes
6531 else
6532   echo "configure: failed program was:" >&5
6533   cat conftest.$ac_ext >&5
6534   rm -rf conftest*
6535   glibcpp_cv_func___builtin_sqrt_use=no
6536 fi
6537 rm -f conftest*
6538       ac_ext=c
6539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6540 ac_cpp='$CPP $CPPFLAGS'
6541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6543 cross_compiling=$ac_cv_prog_cc_cross
6544
6545     
6546 fi
6547
6548   fi
6549   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
6550   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
6551     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
6552 echo "configure:6553: checking for __builtin_sqrt linkage" >&5
6553     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
6554       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
6555   echo $ac_n "(cached) $ac_c" 1>&6
6556 else
6557   
6558         cat > conftest.$ac_ext <<EOF
6559 #line 6560 "configure"
6560 #include "confdefs.h"
6561 #include <math.h>
6562 int main() {
6563  __builtin_sqrt(0);
6564 ; return 0; }
6565 EOF
6566 if { (eval echo configure:6567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6567   rm -rf conftest*
6568   glibcpp_cv_func___builtin_sqrt_link=yes
6569 else
6570   echo "configure: failed program was:" >&5
6571   cat conftest.$ac_ext >&5
6572   rm -rf conftest*
6573   glibcpp_cv_func___builtin_sqrt_link=no
6574 fi
6575 rm -f conftest*
6576       
6577 fi
6578
6579     fi
6580     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
6581     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
6582       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6583       cat >> confdefs.h <<EOF
6584 #define ${ac_tr_func} 1
6585 EOF
6586
6587     fi
6588   fi
6589
6590   
6591   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
6592 echo "configure:6593: checking for __builtin_sqrtl declaration" >&5
6593   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
6594     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
6595   echo $ac_n "(cached) $ac_c" 1>&6
6596 else
6597   
6598       
6599       ac_ext=C
6600 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6601 ac_cpp='$CXXCPP $CPPFLAGS'
6602 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6603 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6604 cross_compiling=$ac_cv_prog_cxx_cross
6605
6606       cat > conftest.$ac_ext <<EOF
6607 #line 6608 "configure"
6608 #include "confdefs.h"
6609 #include <math.h>
6610 int main() {
6611  __builtin_sqrtl(0);
6612 ; return 0; }
6613 EOF
6614 if { (eval echo configure:6615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6615   rm -rf conftest*
6616   glibcpp_cv_func___builtin_sqrtl_use=yes
6617 else
6618   echo "configure: failed program was:" >&5
6619   cat conftest.$ac_ext >&5
6620   rm -rf conftest*
6621   glibcpp_cv_func___builtin_sqrtl_use=no
6622 fi
6623 rm -f conftest*
6624       ac_ext=c
6625 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6626 ac_cpp='$CPP $CPPFLAGS'
6627 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6628 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6629 cross_compiling=$ac_cv_prog_cc_cross
6630
6631     
6632 fi
6633
6634   fi
6635   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
6636   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
6637     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
6638 echo "configure:6639: checking for __builtin_sqrtl linkage" >&5
6639     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
6640       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
6641   echo $ac_n "(cached) $ac_c" 1>&6
6642 else
6643   
6644         cat > conftest.$ac_ext <<EOF
6645 #line 6646 "configure"
6646 #include "confdefs.h"
6647 #include <math.h>
6648 int main() {
6649  __builtin_sqrtl(0);
6650 ; return 0; }
6651 EOF
6652 if { (eval echo configure:6653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6653   rm -rf conftest*
6654   glibcpp_cv_func___builtin_sqrtl_link=yes
6655 else
6656   echo "configure: failed program was:" >&5
6657   cat conftest.$ac_ext >&5
6658   rm -rf conftest*
6659   glibcpp_cv_func___builtin_sqrtl_link=no
6660 fi
6661 rm -f conftest*
6662       
6663 fi
6664
6665     fi
6666     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
6667     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
6668       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6669       cat >> confdefs.h <<EOF
6670 #define ${ac_tr_func} 1
6671 EOF
6672
6673     fi
6674   fi
6675
6676
6677   
6678   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
6679 echo "configure:6680: checking for __builtin_sinf declaration" >&5
6680   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
6681     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
6682   echo $ac_n "(cached) $ac_c" 1>&6
6683 else
6684   
6685       
6686       ac_ext=C
6687 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6688 ac_cpp='$CXXCPP $CPPFLAGS'
6689 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6690 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6691 cross_compiling=$ac_cv_prog_cxx_cross
6692
6693       cat > conftest.$ac_ext <<EOF
6694 #line 6695 "configure"
6695 #include "confdefs.h"
6696 #include <math.h>
6697 int main() {
6698  __builtin_sinf(0);
6699 ; return 0; }
6700 EOF
6701 if { (eval echo configure:6702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6702   rm -rf conftest*
6703   glibcpp_cv_func___builtin_sinf_use=yes
6704 else
6705   echo "configure: failed program was:" >&5
6706   cat conftest.$ac_ext >&5
6707   rm -rf conftest*
6708   glibcpp_cv_func___builtin_sinf_use=no
6709 fi
6710 rm -f conftest*
6711       ac_ext=c
6712 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6713 ac_cpp='$CPP $CPPFLAGS'
6714 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6715 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6716 cross_compiling=$ac_cv_prog_cc_cross
6717
6718     
6719 fi
6720
6721   fi
6722   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
6723   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
6724     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
6725 echo "configure:6726: checking for __builtin_sinf linkage" >&5
6726     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
6727       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
6728   echo $ac_n "(cached) $ac_c" 1>&6
6729 else
6730   
6731         cat > conftest.$ac_ext <<EOF
6732 #line 6733 "configure"
6733 #include "confdefs.h"
6734 #include <math.h>
6735 int main() {
6736  __builtin_sinf(0);
6737 ; return 0; }
6738 EOF
6739 if { (eval echo configure:6740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6740   rm -rf conftest*
6741   glibcpp_cv_func___builtin_sinf_link=yes
6742 else
6743   echo "configure: failed program was:" >&5
6744   cat conftest.$ac_ext >&5
6745   rm -rf conftest*
6746   glibcpp_cv_func___builtin_sinf_link=no
6747 fi
6748 rm -f conftest*
6749       
6750 fi
6751
6752     fi
6753     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
6754     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
6755       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6756       cat >> confdefs.h <<EOF
6757 #define ${ac_tr_func} 1
6758 EOF
6759
6760     fi
6761   fi
6762
6763   
6764   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
6765 echo "configure:6766: checking for __builtin_sin declaration" >&5
6766   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
6767     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
6768   echo $ac_n "(cached) $ac_c" 1>&6
6769 else
6770   
6771       
6772       ac_ext=C
6773 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6774 ac_cpp='$CXXCPP $CPPFLAGS'
6775 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6776 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6777 cross_compiling=$ac_cv_prog_cxx_cross
6778
6779       cat > conftest.$ac_ext <<EOF
6780 #line 6781 "configure"
6781 #include "confdefs.h"
6782 #include <math.h>
6783 int main() {
6784  __builtin_sin(0);
6785 ; return 0; }
6786 EOF
6787 if { (eval echo configure:6788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6788   rm -rf conftest*
6789   glibcpp_cv_func___builtin_sin_use=yes
6790 else
6791   echo "configure: failed program was:" >&5
6792   cat conftest.$ac_ext >&5
6793   rm -rf conftest*
6794   glibcpp_cv_func___builtin_sin_use=no
6795 fi
6796 rm -f conftest*
6797       ac_ext=c
6798 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6799 ac_cpp='$CPP $CPPFLAGS'
6800 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6801 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6802 cross_compiling=$ac_cv_prog_cc_cross
6803
6804     
6805 fi
6806
6807   fi
6808   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
6809   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
6810     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
6811 echo "configure:6812: checking for __builtin_sin linkage" >&5
6812     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
6813       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
6814   echo $ac_n "(cached) $ac_c" 1>&6
6815 else
6816   
6817         cat > conftest.$ac_ext <<EOF
6818 #line 6819 "configure"
6819 #include "confdefs.h"
6820 #include <math.h>
6821 int main() {
6822  __builtin_sin(0);
6823 ; return 0; }
6824 EOF
6825 if { (eval echo configure:6826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6826   rm -rf conftest*
6827   glibcpp_cv_func___builtin_sin_link=yes
6828 else
6829   echo "configure: failed program was:" >&5
6830   cat conftest.$ac_ext >&5
6831   rm -rf conftest*
6832   glibcpp_cv_func___builtin_sin_link=no
6833 fi
6834 rm -f conftest*
6835       
6836 fi
6837
6838     fi
6839     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
6840     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
6841       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6842       cat >> confdefs.h <<EOF
6843 #define ${ac_tr_func} 1
6844 EOF
6845
6846     fi
6847   fi
6848
6849   
6850   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
6851 echo "configure:6852: checking for __builtin_sinl declaration" >&5
6852   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
6853     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
6854   echo $ac_n "(cached) $ac_c" 1>&6
6855 else
6856   
6857       
6858       ac_ext=C
6859 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6860 ac_cpp='$CXXCPP $CPPFLAGS'
6861 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6862 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6863 cross_compiling=$ac_cv_prog_cxx_cross
6864
6865       cat > conftest.$ac_ext <<EOF
6866 #line 6867 "configure"
6867 #include "confdefs.h"
6868 #include <math.h>
6869 int main() {
6870  __builtin_sinl(0);
6871 ; return 0; }
6872 EOF
6873 if { (eval echo configure:6874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6874   rm -rf conftest*
6875   glibcpp_cv_func___builtin_sinl_use=yes
6876 else
6877   echo "configure: failed program was:" >&5
6878   cat conftest.$ac_ext >&5
6879   rm -rf conftest*
6880   glibcpp_cv_func___builtin_sinl_use=no
6881 fi
6882 rm -f conftest*
6883       ac_ext=c
6884 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6885 ac_cpp='$CPP $CPPFLAGS'
6886 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6887 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6888 cross_compiling=$ac_cv_prog_cc_cross
6889
6890     
6891 fi
6892
6893   fi
6894   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
6895   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
6896     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
6897 echo "configure:6898: checking for __builtin_sinl linkage" >&5
6898     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
6899       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
6900   echo $ac_n "(cached) $ac_c" 1>&6
6901 else
6902   
6903         cat > conftest.$ac_ext <<EOF
6904 #line 6905 "configure"
6905 #include "confdefs.h"
6906 #include <math.h>
6907 int main() {
6908  __builtin_sinl(0);
6909 ; return 0; }
6910 EOF
6911 if { (eval echo configure:6912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6912   rm -rf conftest*
6913   glibcpp_cv_func___builtin_sinl_link=yes
6914 else
6915   echo "configure: failed program was:" >&5
6916   cat conftest.$ac_ext >&5
6917   rm -rf conftest*
6918   glibcpp_cv_func___builtin_sinl_link=no
6919 fi
6920 rm -f conftest*
6921       
6922 fi
6923
6924     fi
6925     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
6926     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
6927       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6928       cat >> confdefs.h <<EOF
6929 #define ${ac_tr_func} 1
6930 EOF
6931
6932     fi
6933   fi
6934
6935
6936   
6937   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
6938 echo "configure:6939: checking for __builtin_cosf declaration" >&5
6939   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
6940     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
6941   echo $ac_n "(cached) $ac_c" 1>&6
6942 else
6943   
6944       
6945       ac_ext=C
6946 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6947 ac_cpp='$CXXCPP $CPPFLAGS'
6948 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6949 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6950 cross_compiling=$ac_cv_prog_cxx_cross
6951
6952       cat > conftest.$ac_ext <<EOF
6953 #line 6954 "configure"
6954 #include "confdefs.h"
6955 #include <math.h>
6956 int main() {
6957  __builtin_cosf(0);
6958 ; return 0; }
6959 EOF
6960 if { (eval echo configure:6961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6961   rm -rf conftest*
6962   glibcpp_cv_func___builtin_cosf_use=yes
6963 else
6964   echo "configure: failed program was:" >&5
6965   cat conftest.$ac_ext >&5
6966   rm -rf conftest*
6967   glibcpp_cv_func___builtin_cosf_use=no
6968 fi
6969 rm -f conftest*
6970       ac_ext=c
6971 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6972 ac_cpp='$CPP $CPPFLAGS'
6973 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6974 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6975 cross_compiling=$ac_cv_prog_cc_cross
6976
6977     
6978 fi
6979
6980   fi
6981   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6982   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6983     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6984 echo "configure:6985: checking for __builtin_cosf linkage" >&5
6985     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6986       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6987   echo $ac_n "(cached) $ac_c" 1>&6
6988 else
6989   
6990         cat > conftest.$ac_ext <<EOF
6991 #line 6992 "configure"
6992 #include "confdefs.h"
6993 #include <math.h>
6994 int main() {
6995  __builtin_cosf(0);
6996 ; return 0; }
6997 EOF
6998 if { (eval echo configure:6999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6999   rm -rf conftest*
7000   glibcpp_cv_func___builtin_cosf_link=yes
7001 else
7002   echo "configure: failed program was:" >&5
7003   cat conftest.$ac_ext >&5
7004   rm -rf conftest*
7005   glibcpp_cv_func___builtin_cosf_link=no
7006 fi
7007 rm -f conftest*
7008       
7009 fi
7010
7011     fi
7012     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
7013     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
7014       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7015       cat >> confdefs.h <<EOF
7016 #define ${ac_tr_func} 1
7017 EOF
7018
7019     fi
7020   fi
7021
7022   
7023   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
7024 echo "configure:7025: checking for __builtin_cos declaration" >&5
7025   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
7026     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
7027   echo $ac_n "(cached) $ac_c" 1>&6
7028 else
7029   
7030       
7031       ac_ext=C
7032 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7033 ac_cpp='$CXXCPP $CPPFLAGS'
7034 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7035 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7036 cross_compiling=$ac_cv_prog_cxx_cross
7037
7038       cat > conftest.$ac_ext <<EOF
7039 #line 7040 "configure"
7040 #include "confdefs.h"
7041 #include <math.h>
7042 int main() {
7043  __builtin_cos(0);
7044 ; return 0; }
7045 EOF
7046 if { (eval echo configure:7047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7047   rm -rf conftest*
7048   glibcpp_cv_func___builtin_cos_use=yes
7049 else
7050   echo "configure: failed program was:" >&5
7051   cat conftest.$ac_ext >&5
7052   rm -rf conftest*
7053   glibcpp_cv_func___builtin_cos_use=no
7054 fi
7055 rm -f conftest*
7056       ac_ext=c
7057 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7058 ac_cpp='$CPP $CPPFLAGS'
7059 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7060 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7061 cross_compiling=$ac_cv_prog_cc_cross
7062
7063     
7064 fi
7065
7066   fi
7067   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
7068   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
7069     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
7070 echo "configure:7071: checking for __builtin_cos linkage" >&5
7071     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
7072       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
7073   echo $ac_n "(cached) $ac_c" 1>&6
7074 else
7075   
7076         cat > conftest.$ac_ext <<EOF
7077 #line 7078 "configure"
7078 #include "confdefs.h"
7079 #include <math.h>
7080 int main() {
7081  __builtin_cos(0);
7082 ; return 0; }
7083 EOF
7084 if { (eval echo configure:7085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7085   rm -rf conftest*
7086   glibcpp_cv_func___builtin_cos_link=yes
7087 else
7088   echo "configure: failed program was:" >&5
7089   cat conftest.$ac_ext >&5
7090   rm -rf conftest*
7091   glibcpp_cv_func___builtin_cos_link=no
7092 fi
7093 rm -f conftest*
7094       
7095 fi
7096
7097     fi
7098     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
7099     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
7100       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7101       cat >> confdefs.h <<EOF
7102 #define ${ac_tr_func} 1
7103 EOF
7104
7105     fi
7106   fi
7107
7108   
7109   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
7110 echo "configure:7111: checking for __builtin_cosl declaration" >&5
7111   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
7112     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
7113   echo $ac_n "(cached) $ac_c" 1>&6
7114 else
7115   
7116       
7117       ac_ext=C
7118 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7119 ac_cpp='$CXXCPP $CPPFLAGS'
7120 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7121 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7122 cross_compiling=$ac_cv_prog_cxx_cross
7123
7124       cat > conftest.$ac_ext <<EOF
7125 #line 7126 "configure"
7126 #include "confdefs.h"
7127 #include <math.h>
7128 int main() {
7129  __builtin_cosl(0);
7130 ; return 0; }
7131 EOF
7132 if { (eval echo configure:7133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7133   rm -rf conftest*
7134   glibcpp_cv_func___builtin_cosl_use=yes
7135 else
7136   echo "configure: failed program was:" >&5
7137   cat conftest.$ac_ext >&5
7138   rm -rf conftest*
7139   glibcpp_cv_func___builtin_cosl_use=no
7140 fi
7141 rm -f conftest*
7142       ac_ext=c
7143 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7144 ac_cpp='$CPP $CPPFLAGS'
7145 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7146 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7147 cross_compiling=$ac_cv_prog_cc_cross
7148
7149     
7150 fi
7151
7152   fi
7153   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
7154   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
7155     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
7156 echo "configure:7157: checking for __builtin_cosl linkage" >&5
7157     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
7158       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
7159   echo $ac_n "(cached) $ac_c" 1>&6
7160 else
7161   
7162         cat > conftest.$ac_ext <<EOF
7163 #line 7164 "configure"
7164 #include "confdefs.h"
7165 #include <math.h>
7166 int main() {
7167  __builtin_cosl(0);
7168 ; return 0; }
7169 EOF
7170 if { (eval echo configure:7171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7171   rm -rf conftest*
7172   glibcpp_cv_func___builtin_cosl_link=yes
7173 else
7174   echo "configure: failed program was:" >&5
7175   cat conftest.$ac_ext >&5
7176   rm -rf conftest*
7177   glibcpp_cv_func___builtin_cosl_link=no
7178 fi
7179 rm -f conftest*
7180       
7181 fi
7182
7183     fi
7184     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
7185     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
7186       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7187       cat >> confdefs.h <<EOF
7188 #define ${ac_tr_func} 1
7189 EOF
7190
7191     fi
7192   fi
7193
7194
7195               dummyvar=no
7196   if test x$dummyvar = x"yes"; then
7197     cat >> confdefs.h <<\EOF
7198 #define HAVE___BUILTIN_ABS 1
7199 EOF
7200
7201     cat >> confdefs.h <<\EOF
7202 #define HAVE___BUILTIN_LABS 1
7203 EOF
7204
7205     cat >> confdefs.h <<\EOF
7206 #define HAVE___BUILTIN_COS 1
7207 EOF
7208
7209     cat >> confdefs.h <<\EOF
7210 #define HAVE___BUILTIN_COSF 1
7211 EOF
7212
7213     cat >> confdefs.h <<\EOF
7214 #define HAVE___BUILTIN_COSL 1
7215 EOF
7216
7217     cat >> confdefs.h <<\EOF
7218 #define HAVE___BUILTIN_FABS 1
7219 EOF
7220
7221     cat >> confdefs.h <<\EOF
7222 #define HAVE___BUILTIN_FABSF 1
7223 EOF
7224
7225     cat >> confdefs.h <<\EOF
7226 #define HAVE___BUILTIN_FABSL 1
7227 EOF
7228
7229     cat >> confdefs.h <<\EOF
7230 #define HAVE___BUILTIN_SIN 1
7231 EOF
7232
7233     cat >> confdefs.h <<\EOF
7234 #define HAVE___BUILTIN_SINF 1
7235 EOF
7236
7237     cat >> confdefs.h <<\EOF
7238 #define HAVE___BUILTIN_SINL 1
7239 EOF
7240
7241     cat >> confdefs.h <<\EOF
7242 #define HAVE___BUILTIN_SQRT 1
7243 EOF
7244
7245     cat >> confdefs.h <<\EOF
7246 #define HAVE___BUILTIN_SQRTF 1
7247 EOF
7248
7249     cat >> confdefs.h <<\EOF
7250 #define HAVE___BUILTIN_SQRTL 1
7251 EOF
7252
7253   fi
7254
7255   
7256   ac_test_CXXFLAGS="${CXXFLAGS+set}"
7257   ac_save_CXXFLAGS="$CXXFLAGS"
7258   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
7259
7260     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
7261 echo "configure:7262: checking for sin in -lm" >&5
7262 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
7263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7264   echo $ac_n "(cached) $ac_c" 1>&6
7265 else
7266   ac_save_LIBS="$LIBS"
7267 LIBS="-lm  $LIBS"
7268 cat > conftest.$ac_ext <<EOF
7269 #line 7270 "configure"
7270 #include "confdefs.h"
7271 /* Override any gcc2 internal prototype to avoid an error.  */
7272 /* We use char because int might match the return type of a gcc2
7273     builtin and then its argument prototype would still apply.  */
7274 char sin();
7275
7276 int main() {
7277 sin()
7278 ; return 0; }
7279 EOF
7280 if { (eval echo configure:7281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7281   rm -rf conftest*
7282   eval "ac_cv_lib_$ac_lib_var=yes"
7283 else
7284   echo "configure: failed program was:" >&5
7285   cat conftest.$ac_ext >&5
7286   rm -rf conftest*
7287   eval "ac_cv_lib_$ac_lib_var=no"
7288 fi
7289 rm -f conftest*
7290 LIBS="$ac_save_LIBS"
7291
7292 fi
7293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7294   echo "$ac_t""yes" 1>&6
7295   libm="-lm"
7296 else
7297   echo "$ac_t""no" 1>&6
7298 fi
7299
7300   ac_save_LIBS="$LIBS"
7301   LIBS="$LIBS $libm"
7302
7303     
7304   
7305   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
7306 echo "configure:7307: checking for isinf declaration" >&5
7307   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
7308     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
7309   echo $ac_n "(cached) $ac_c" 1>&6
7310 else
7311   
7312       
7313       ac_ext=C
7314 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7315 ac_cpp='$CXXCPP $CPPFLAGS'
7316 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7317 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7318 cross_compiling=$ac_cv_prog_cxx_cross
7319
7320       cat > conftest.$ac_ext <<EOF
7321 #line 7322 "configure"
7322 #include "confdefs.h"
7323 #include <math.h>
7324                       #ifdef HAVE_IEEEFP_H
7325                       #include <ieeefp.h>
7326                       #endif
7327                      
7328 int main() {
7329  isinf(0);
7330 ; return 0; }
7331 EOF
7332 if { (eval echo configure:7333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7333   rm -rf conftest*
7334   glibcpp_cv_func_isinf_use=yes
7335 else
7336   echo "configure: failed program was:" >&5
7337   cat conftest.$ac_ext >&5
7338   rm -rf conftest*
7339   glibcpp_cv_func_isinf_use=no
7340 fi
7341 rm -f conftest*
7342       ac_ext=c
7343 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7344 ac_cpp='$CPP $CPPFLAGS'
7345 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7346 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7347 cross_compiling=$ac_cv_prog_cc_cross
7348
7349     
7350 fi
7351
7352   fi
7353   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
7354
7355   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
7356     for ac_func in isinf
7357 do
7358 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7359 echo "configure:7360: checking for $ac_func" >&5
7360 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7361   echo $ac_n "(cached) $ac_c" 1>&6
7362 else
7363   cat > conftest.$ac_ext <<EOF
7364 #line 7365 "configure"
7365 #include "confdefs.h"
7366 /* System header to define __stub macros and hopefully few prototypes,
7367     which can conflict with char $ac_func(); below.  */
7368 #include <assert.h>
7369 /* Override any gcc2 internal prototype to avoid an error.  */
7370 /* We use char because int might match the return type of a gcc2
7371     builtin and then its argument prototype would still apply.  */
7372 char $ac_func();
7373
7374 int main() {
7375
7376 /* The GNU C library defines this for functions which it implements
7377     to always fail with ENOSYS.  Some functions are actually named
7378     something starting with __ and the normal name is an alias.  */
7379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7380 choke me
7381 #else
7382 $ac_func();
7383 #endif
7384
7385 ; return 0; }
7386 EOF
7387 if { (eval echo configure:7388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7388   rm -rf conftest*
7389   eval "ac_cv_func_$ac_func=yes"
7390 else
7391   echo "configure: failed program was:" >&5
7392   cat conftest.$ac_ext >&5
7393   rm -rf conftest*
7394   eval "ac_cv_func_$ac_func=no"
7395 fi
7396 rm -f conftest*
7397 fi
7398
7399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7400   echo "$ac_t""yes" 1>&6
7401     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7402   cat >> confdefs.h <<EOF
7403 #define $ac_tr_func 1
7404 EOF
7405  
7406 else
7407   echo "$ac_t""no" 1>&6
7408 fi
7409 done
7410     
7411   else
7412     
7413   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
7414 echo "configure:7415: checking for _isinf declaration" >&5
7415   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
7416     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
7417   echo $ac_n "(cached) $ac_c" 1>&6
7418 else
7419   
7420       
7421       ac_ext=C
7422 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7423 ac_cpp='$CXXCPP $CPPFLAGS'
7424 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7425 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7426 cross_compiling=$ac_cv_prog_cxx_cross
7427
7428       cat > conftest.$ac_ext <<EOF
7429 #line 7430 "configure"
7430 #include "confdefs.h"
7431 #include <math.h>
7432                       #ifdef HAVE_IEEEFP_H
7433                       #include <ieeefp.h>
7434                       #endif
7435                      
7436 int main() {
7437  _isinf(0);
7438 ; return 0; }
7439 EOF
7440 if { (eval echo configure:7441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7441   rm -rf conftest*
7442   glibcpp_cv_func__isinf_use=yes
7443 else
7444   echo "configure: failed program was:" >&5
7445   cat conftest.$ac_ext >&5
7446   rm -rf conftest*
7447   glibcpp_cv_func__isinf_use=no
7448 fi
7449 rm -f conftest*
7450       ac_ext=c
7451 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7452 ac_cpp='$CPP $CPPFLAGS'
7453 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7454 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7455 cross_compiling=$ac_cv_prog_cc_cross
7456
7457     
7458 fi
7459
7460   fi
7461   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
7462
7463     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
7464       for ac_func in _isinf
7465 do
7466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7467 echo "configure:7468: checking for $ac_func" >&5
7468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7469   echo $ac_n "(cached) $ac_c" 1>&6
7470 else
7471   cat > conftest.$ac_ext <<EOF
7472 #line 7473 "configure"
7473 #include "confdefs.h"
7474 /* System header to define __stub macros and hopefully few prototypes,
7475     which can conflict with char $ac_func(); below.  */
7476 #include <assert.h>
7477 /* Override any gcc2 internal prototype to avoid an error.  */
7478 /* We use char because int might match the return type of a gcc2
7479     builtin and then its argument prototype would still apply.  */
7480 char $ac_func();
7481
7482 int main() {
7483
7484 /* The GNU C library defines this for functions which it implements
7485     to always fail with ENOSYS.  Some functions are actually named
7486     something starting with __ and the normal name is an alias.  */
7487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7488 choke me
7489 #else
7490 $ac_func();
7491 #endif
7492
7493 ; return 0; }
7494 EOF
7495 if { (eval echo configure:7496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7496   rm -rf conftest*
7497   eval "ac_cv_func_$ac_func=yes"
7498 else
7499   echo "configure: failed program was:" >&5
7500   cat conftest.$ac_ext >&5
7501   rm -rf conftest*
7502   eval "ac_cv_func_$ac_func=no"
7503 fi
7504 rm -f conftest*
7505 fi
7506
7507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7508   echo "$ac_t""yes" 1>&6
7509     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7510   cat >> confdefs.h <<EOF
7511 #define $ac_tr_func 1
7512 EOF
7513  
7514 else
7515   echo "$ac_t""no" 1>&6
7516 fi
7517 done
7518     
7519     fi
7520   fi
7521
7522   
7523   
7524   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
7525 echo "configure:7526: checking for isnan declaration" >&5
7526   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
7527     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
7528   echo $ac_n "(cached) $ac_c" 1>&6
7529 else
7530   
7531       
7532       ac_ext=C
7533 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7534 ac_cpp='$CXXCPP $CPPFLAGS'
7535 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7536 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7537 cross_compiling=$ac_cv_prog_cxx_cross
7538
7539       cat > conftest.$ac_ext <<EOF
7540 #line 7541 "configure"
7541 #include "confdefs.h"
7542 #include <math.h>
7543                       #ifdef HAVE_IEEEFP_H
7544                       #include <ieeefp.h>
7545                       #endif
7546                      
7547 int main() {
7548  isnan(0);
7549 ; return 0; }
7550 EOF
7551 if { (eval echo configure:7552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7552   rm -rf conftest*
7553   glibcpp_cv_func_isnan_use=yes
7554 else
7555   echo "configure: failed program was:" >&5
7556   cat conftest.$ac_ext >&5
7557   rm -rf conftest*
7558   glibcpp_cv_func_isnan_use=no
7559 fi
7560 rm -f conftest*
7561       ac_ext=c
7562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7563 ac_cpp='$CPP $CPPFLAGS'
7564 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7565 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7566 cross_compiling=$ac_cv_prog_cc_cross
7567
7568     
7569 fi
7570
7571   fi
7572   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
7573
7574   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
7575     for ac_func in isnan
7576 do
7577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7578 echo "configure:7579: checking for $ac_func" >&5
7579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7580   echo $ac_n "(cached) $ac_c" 1>&6
7581 else
7582   cat > conftest.$ac_ext <<EOF
7583 #line 7584 "configure"
7584 #include "confdefs.h"
7585 /* System header to define __stub macros and hopefully few prototypes,
7586     which can conflict with char $ac_func(); below.  */
7587 #include <assert.h>
7588 /* Override any gcc2 internal prototype to avoid an error.  */
7589 /* We use char because int might match the return type of a gcc2
7590     builtin and then its argument prototype would still apply.  */
7591 char $ac_func();
7592
7593 int main() {
7594
7595 /* The GNU C library defines this for functions which it implements
7596     to always fail with ENOSYS.  Some functions are actually named
7597     something starting with __ and the normal name is an alias.  */
7598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7599 choke me
7600 #else
7601 $ac_func();
7602 #endif
7603
7604 ; return 0; }
7605 EOF
7606 if { (eval echo configure:7607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7607   rm -rf conftest*
7608   eval "ac_cv_func_$ac_func=yes"
7609 else
7610   echo "configure: failed program was:" >&5
7611   cat conftest.$ac_ext >&5
7612   rm -rf conftest*
7613   eval "ac_cv_func_$ac_func=no"
7614 fi
7615 rm -f conftest*
7616 fi
7617
7618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7619   echo "$ac_t""yes" 1>&6
7620     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7621   cat >> confdefs.h <<EOF
7622 #define $ac_tr_func 1
7623 EOF
7624  
7625 else
7626   echo "$ac_t""no" 1>&6
7627 fi
7628 done
7629     
7630   else
7631     
7632   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
7633 echo "configure:7634: checking for _isnan declaration" >&5
7634   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
7635     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
7636   echo $ac_n "(cached) $ac_c" 1>&6
7637 else
7638   
7639       
7640       ac_ext=C
7641 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7642 ac_cpp='$CXXCPP $CPPFLAGS'
7643 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7644 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7645 cross_compiling=$ac_cv_prog_cxx_cross
7646
7647       cat > conftest.$ac_ext <<EOF
7648 #line 7649 "configure"
7649 #include "confdefs.h"
7650 #include <math.h>
7651                       #ifdef HAVE_IEEEFP_H
7652                       #include <ieeefp.h>
7653                       #endif
7654                      
7655 int main() {
7656  _isnan(0);
7657 ; return 0; }
7658 EOF
7659 if { (eval echo configure:7660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7660   rm -rf conftest*
7661   glibcpp_cv_func__isnan_use=yes
7662 else
7663   echo "configure: failed program was:" >&5
7664   cat conftest.$ac_ext >&5
7665   rm -rf conftest*
7666   glibcpp_cv_func__isnan_use=no
7667 fi
7668 rm -f conftest*
7669       ac_ext=c
7670 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7671 ac_cpp='$CPP $CPPFLAGS'
7672 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7673 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7674 cross_compiling=$ac_cv_prog_cc_cross
7675
7676     
7677 fi
7678
7679   fi
7680   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
7681
7682     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
7683       for ac_func in _isnan
7684 do
7685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7686 echo "configure:7687: checking for $ac_func" >&5
7687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7688   echo $ac_n "(cached) $ac_c" 1>&6
7689 else
7690   cat > conftest.$ac_ext <<EOF
7691 #line 7692 "configure"
7692 #include "confdefs.h"
7693 /* System header to define __stub macros and hopefully few prototypes,
7694     which can conflict with char $ac_func(); below.  */
7695 #include <assert.h>
7696 /* Override any gcc2 internal prototype to avoid an error.  */
7697 /* We use char because int might match the return type of a gcc2
7698     builtin and then its argument prototype would still apply.  */
7699 char $ac_func();
7700
7701 int main() {
7702
7703 /* The GNU C library defines this for functions which it implements
7704     to always fail with ENOSYS.  Some functions are actually named
7705     something starting with __ and the normal name is an alias.  */
7706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7707 choke me
7708 #else
7709 $ac_func();
7710 #endif
7711
7712 ; return 0; }
7713 EOF
7714 if { (eval echo configure:7715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7715   rm -rf conftest*
7716   eval "ac_cv_func_$ac_func=yes"
7717 else
7718   echo "configure: failed program was:" >&5
7719   cat conftest.$ac_ext >&5
7720   rm -rf conftest*
7721   eval "ac_cv_func_$ac_func=no"
7722 fi
7723 rm -f conftest*
7724 fi
7725
7726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7727   echo "$ac_t""yes" 1>&6
7728     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7729   cat >> confdefs.h <<EOF
7730 #define $ac_tr_func 1
7731 EOF
7732  
7733 else
7734   echo "$ac_t""no" 1>&6
7735 fi
7736 done
7737     
7738     fi
7739   fi
7740
7741   
7742   
7743   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
7744 echo "configure:7745: checking for finite declaration" >&5
7745   if test x${glibcpp_cv_func_finite_use+set} != xset; then
7746     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
7747   echo $ac_n "(cached) $ac_c" 1>&6
7748 else
7749   
7750       
7751       ac_ext=C
7752 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7753 ac_cpp='$CXXCPP $CPPFLAGS'
7754 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7755 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7756 cross_compiling=$ac_cv_prog_cxx_cross
7757
7758       cat > conftest.$ac_ext <<EOF
7759 #line 7760 "configure"
7760 #include "confdefs.h"
7761 #include <math.h>
7762                       #ifdef HAVE_IEEEFP_H
7763                       #include <ieeefp.h>
7764                       #endif
7765                      
7766 int main() {
7767  finite(0);
7768 ; return 0; }
7769 EOF
7770 if { (eval echo configure:7771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7771   rm -rf conftest*
7772   glibcpp_cv_func_finite_use=yes
7773 else
7774   echo "configure: failed program was:" >&5
7775   cat conftest.$ac_ext >&5
7776   rm -rf conftest*
7777   glibcpp_cv_func_finite_use=no
7778 fi
7779 rm -f conftest*
7780       ac_ext=c
7781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7782 ac_cpp='$CPP $CPPFLAGS'
7783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7784 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7785 cross_compiling=$ac_cv_prog_cc_cross
7786
7787     
7788 fi
7789
7790   fi
7791   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
7792
7793   if test x$glibcpp_cv_func_finite_use = x"yes"; then
7794     for ac_func in finite
7795 do
7796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7797 echo "configure:7798: checking for $ac_func" >&5
7798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7799   echo $ac_n "(cached) $ac_c" 1>&6
7800 else
7801   cat > conftest.$ac_ext <<EOF
7802 #line 7803 "configure"
7803 #include "confdefs.h"
7804 /* System header to define __stub macros and hopefully few prototypes,
7805     which can conflict with char $ac_func(); below.  */
7806 #include <assert.h>
7807 /* Override any gcc2 internal prototype to avoid an error.  */
7808 /* We use char because int might match the return type of a gcc2
7809     builtin and then its argument prototype would still apply.  */
7810 char $ac_func();
7811
7812 int main() {
7813
7814 /* The GNU C library defines this for functions which it implements
7815     to always fail with ENOSYS.  Some functions are actually named
7816     something starting with __ and the normal name is an alias.  */
7817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7818 choke me
7819 #else
7820 $ac_func();
7821 #endif
7822
7823 ; return 0; }
7824 EOF
7825 if { (eval echo configure:7826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7826   rm -rf conftest*
7827   eval "ac_cv_func_$ac_func=yes"
7828 else
7829   echo "configure: failed program was:" >&5
7830   cat conftest.$ac_ext >&5
7831   rm -rf conftest*
7832   eval "ac_cv_func_$ac_func=no"
7833 fi
7834 rm -f conftest*
7835 fi
7836
7837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7838   echo "$ac_t""yes" 1>&6
7839     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7840   cat >> confdefs.h <<EOF
7841 #define $ac_tr_func 1
7842 EOF
7843  
7844 else
7845   echo "$ac_t""no" 1>&6
7846 fi
7847 done
7848     
7849   else
7850     
7851   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
7852 echo "configure:7853: checking for _finite declaration" >&5
7853   if test x${glibcpp_cv_func__finite_use+set} != xset; then
7854     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
7855   echo $ac_n "(cached) $ac_c" 1>&6
7856 else
7857   
7858       
7859       ac_ext=C
7860 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7861 ac_cpp='$CXXCPP $CPPFLAGS'
7862 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7863 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7864 cross_compiling=$ac_cv_prog_cxx_cross
7865
7866       cat > conftest.$ac_ext <<EOF
7867 #line 7868 "configure"
7868 #include "confdefs.h"
7869 #include <math.h>
7870                       #ifdef HAVE_IEEEFP_H
7871                       #include <ieeefp.h>
7872                       #endif
7873                      
7874 int main() {
7875  _finite(0);
7876 ; return 0; }
7877 EOF
7878 if { (eval echo configure:7879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7879   rm -rf conftest*
7880   glibcpp_cv_func__finite_use=yes
7881 else
7882   echo "configure: failed program was:" >&5
7883   cat conftest.$ac_ext >&5
7884   rm -rf conftest*
7885   glibcpp_cv_func__finite_use=no
7886 fi
7887 rm -f conftest*
7888       ac_ext=c
7889 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7890 ac_cpp='$CPP $CPPFLAGS'
7891 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7892 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7893 cross_compiling=$ac_cv_prog_cc_cross
7894
7895     
7896 fi
7897
7898   fi
7899   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
7900
7901     if test x$glibcpp_cv_func__finite_use = x"yes"; then
7902       for ac_func in _finite
7903 do
7904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7905 echo "configure:7906: checking for $ac_func" >&5
7906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7907   echo $ac_n "(cached) $ac_c" 1>&6
7908 else
7909   cat > conftest.$ac_ext <<EOF
7910 #line 7911 "configure"
7911 #include "confdefs.h"
7912 /* System header to define __stub macros and hopefully few prototypes,
7913     which can conflict with char $ac_func(); below.  */
7914 #include <assert.h>
7915 /* Override any gcc2 internal prototype to avoid an error.  */
7916 /* We use char because int might match the return type of a gcc2
7917     builtin and then its argument prototype would still apply.  */
7918 char $ac_func();
7919
7920 int main() {
7921
7922 /* The GNU C library defines this for functions which it implements
7923     to always fail with ENOSYS.  Some functions are actually named
7924     something starting with __ and the normal name is an alias.  */
7925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7926 choke me
7927 #else
7928 $ac_func();
7929 #endif
7930
7931 ; return 0; }
7932 EOF
7933 if { (eval echo configure:7934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7934   rm -rf conftest*
7935   eval "ac_cv_func_$ac_func=yes"
7936 else
7937   echo "configure: failed program was:" >&5
7938   cat conftest.$ac_ext >&5
7939   rm -rf conftest*
7940   eval "ac_cv_func_$ac_func=no"
7941 fi
7942 rm -f conftest*
7943 fi
7944
7945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7946   echo "$ac_t""yes" 1>&6
7947     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7948   cat >> confdefs.h <<EOF
7949 #define $ac_tr_func 1
7950 EOF
7951  
7952 else
7953   echo "$ac_t""no" 1>&6
7954 fi
7955 done
7956     
7957     fi
7958   fi
7959
7960   
7961   
7962   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7963 echo "configure:7964: checking for copysign declaration" >&5
7964   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7965     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7966   echo $ac_n "(cached) $ac_c" 1>&6
7967 else
7968   
7969       
7970       ac_ext=C
7971 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7972 ac_cpp='$CXXCPP $CPPFLAGS'
7973 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7974 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7975 cross_compiling=$ac_cv_prog_cxx_cross
7976
7977       cat > conftest.$ac_ext <<EOF
7978 #line 7979 "configure"
7979 #include "confdefs.h"
7980 #include <math.h>
7981 int main() {
7982  copysign(0, 0);
7983 ; return 0; }
7984 EOF
7985 if { (eval echo configure:7986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7986   rm -rf conftest*
7987   glibcpp_cv_func_copysign_use=yes
7988 else
7989   echo "configure: failed program was:" >&5
7990   cat conftest.$ac_ext >&5
7991   rm -rf conftest*
7992   glibcpp_cv_func_copysign_use=no
7993 fi
7994 rm -f conftest*
7995       ac_ext=c
7996 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7997 ac_cpp='$CPP $CPPFLAGS'
7998 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7999 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8000 cross_compiling=$ac_cv_prog_cc_cross
8001
8002     
8003 fi
8004
8005   fi
8006   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
8007
8008   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
8009     for ac_func in copysign
8010 do
8011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8012 echo "configure:8013: checking for $ac_func" >&5
8013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8014   echo $ac_n "(cached) $ac_c" 1>&6
8015 else
8016   cat > conftest.$ac_ext <<EOF
8017 #line 8018 "configure"
8018 #include "confdefs.h"
8019 /* System header to define __stub macros and hopefully few prototypes,
8020     which can conflict with char $ac_func(); below.  */
8021 #include <assert.h>
8022 /* Override any gcc2 internal prototype to avoid an error.  */
8023 /* We use char because int might match the return type of a gcc2
8024     builtin and then its argument prototype would still apply.  */
8025 char $ac_func();
8026
8027 int main() {
8028
8029 /* The GNU C library defines this for functions which it implements
8030     to always fail with ENOSYS.  Some functions are actually named
8031     something starting with __ and the normal name is an alias.  */
8032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8033 choke me
8034 #else
8035 $ac_func();
8036 #endif
8037
8038 ; return 0; }
8039 EOF
8040 if { (eval echo configure:8041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8041   rm -rf conftest*
8042   eval "ac_cv_func_$ac_func=yes"
8043 else
8044   echo "configure: failed program was:" >&5
8045   cat conftest.$ac_ext >&5
8046   rm -rf conftest*
8047   eval "ac_cv_func_$ac_func=no"
8048 fi
8049 rm -f conftest*
8050 fi
8051
8052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8053   echo "$ac_t""yes" 1>&6
8054     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8055   cat >> confdefs.h <<EOF
8056 #define $ac_tr_func 1
8057 EOF
8058  
8059 else
8060   echo "$ac_t""no" 1>&6
8061 fi
8062 done
8063     
8064   else
8065     
8066   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
8067 echo "configure:8068: checking for _copysign declaration" >&5
8068   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
8069     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
8070   echo $ac_n "(cached) $ac_c" 1>&6
8071 else
8072   
8073       
8074       ac_ext=C
8075 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8076 ac_cpp='$CXXCPP $CPPFLAGS'
8077 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8078 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8079 cross_compiling=$ac_cv_prog_cxx_cross
8080
8081       cat > conftest.$ac_ext <<EOF
8082 #line 8083 "configure"
8083 #include "confdefs.h"
8084 #include <math.h>
8085 int main() {
8086  _copysign(0, 0);
8087 ; return 0; }
8088 EOF
8089 if { (eval echo configure:8090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8090   rm -rf conftest*
8091   glibcpp_cv_func__copysign_use=yes
8092 else
8093   echo "configure: failed program was:" >&5
8094   cat conftest.$ac_ext >&5
8095   rm -rf conftest*
8096   glibcpp_cv_func__copysign_use=no
8097 fi
8098 rm -f conftest*
8099       ac_ext=c
8100 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8101 ac_cpp='$CPP $CPPFLAGS'
8102 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8103 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8104 cross_compiling=$ac_cv_prog_cc_cross
8105
8106     
8107 fi
8108
8109   fi
8110   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
8111
8112     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
8113       for ac_func in _copysign
8114 do
8115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8116 echo "configure:8117: checking for $ac_func" >&5
8117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8118   echo $ac_n "(cached) $ac_c" 1>&6
8119 else
8120   cat > conftest.$ac_ext <<EOF
8121 #line 8122 "configure"
8122 #include "confdefs.h"
8123 /* System header to define __stub macros and hopefully few prototypes,
8124     which can conflict with char $ac_func(); below.  */
8125 #include <assert.h>
8126 /* Override any gcc2 internal prototype to avoid an error.  */
8127 /* We use char because int might match the return type of a gcc2
8128     builtin and then its argument prototype would still apply.  */
8129 char $ac_func();
8130
8131 int main() {
8132
8133 /* The GNU C library defines this for functions which it implements
8134     to always fail with ENOSYS.  Some functions are actually named
8135     something starting with __ and the normal name is an alias.  */
8136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8137 choke me
8138 #else
8139 $ac_func();
8140 #endif
8141
8142 ; return 0; }
8143 EOF
8144 if { (eval echo configure:8145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8145   rm -rf conftest*
8146   eval "ac_cv_func_$ac_func=yes"
8147 else
8148   echo "configure: failed program was:" >&5
8149   cat conftest.$ac_ext >&5
8150   rm -rf conftest*
8151   eval "ac_cv_func_$ac_func=no"
8152 fi
8153 rm -f conftest*
8154 fi
8155
8156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8157   echo "$ac_t""yes" 1>&6
8158     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8159   cat >> confdefs.h <<EOF
8160 #define $ac_tr_func 1
8161 EOF
8162  
8163 else
8164   echo "$ac_t""no" 1>&6
8165 fi
8166 done
8167     
8168     fi
8169   fi
8170
8171   
8172   
8173   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
8174 echo "configure:8175: checking for sincos declaration" >&5
8175   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
8176     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
8177   echo $ac_n "(cached) $ac_c" 1>&6
8178 else
8179   
8180       
8181       ac_ext=C
8182 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8183 ac_cpp='$CXXCPP $CPPFLAGS'
8184 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8185 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8186 cross_compiling=$ac_cv_prog_cxx_cross
8187
8188       cat > conftest.$ac_ext <<EOF
8189 #line 8190 "configure"
8190 #include "confdefs.h"
8191 #include <math.h>
8192 int main() {
8193  sincos(0, 0, 0);
8194 ; return 0; }
8195 EOF
8196 if { (eval echo configure:8197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8197   rm -rf conftest*
8198   glibcpp_cv_func_sincos_use=yes
8199 else
8200   echo "configure: failed program was:" >&5
8201   cat conftest.$ac_ext >&5
8202   rm -rf conftest*
8203   glibcpp_cv_func_sincos_use=no
8204 fi
8205 rm -f conftest*
8206       ac_ext=c
8207 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8208 ac_cpp='$CPP $CPPFLAGS'
8209 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8210 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8211 cross_compiling=$ac_cv_prog_cc_cross
8212
8213     
8214 fi
8215
8216   fi
8217   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
8218
8219   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
8220     for ac_func in sincos
8221 do
8222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8223 echo "configure:8224: checking for $ac_func" >&5
8224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8225   echo $ac_n "(cached) $ac_c" 1>&6
8226 else
8227   cat > conftest.$ac_ext <<EOF
8228 #line 8229 "configure"
8229 #include "confdefs.h"
8230 /* System header to define __stub macros and hopefully few prototypes,
8231     which can conflict with char $ac_func(); below.  */
8232 #include <assert.h>
8233 /* Override any gcc2 internal prototype to avoid an error.  */
8234 /* We use char because int might match the return type of a gcc2
8235     builtin and then its argument prototype would still apply.  */
8236 char $ac_func();
8237
8238 int main() {
8239
8240 /* The GNU C library defines this for functions which it implements
8241     to always fail with ENOSYS.  Some functions are actually named
8242     something starting with __ and the normal name is an alias.  */
8243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8244 choke me
8245 #else
8246 $ac_func();
8247 #endif
8248
8249 ; return 0; }
8250 EOF
8251 if { (eval echo configure:8252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8252   rm -rf conftest*
8253   eval "ac_cv_func_$ac_func=yes"
8254 else
8255   echo "configure: failed program was:" >&5
8256   cat conftest.$ac_ext >&5
8257   rm -rf conftest*
8258   eval "ac_cv_func_$ac_func=no"
8259 fi
8260 rm -f conftest*
8261 fi
8262
8263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8264   echo "$ac_t""yes" 1>&6
8265     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8266   cat >> confdefs.h <<EOF
8267 #define $ac_tr_func 1
8268 EOF
8269  
8270 else
8271   echo "$ac_t""no" 1>&6
8272 fi
8273 done
8274     
8275   else
8276     
8277   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
8278 echo "configure:8279: checking for _sincos declaration" >&5
8279   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
8280     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
8281   echo $ac_n "(cached) $ac_c" 1>&6
8282 else
8283   
8284       
8285       ac_ext=C
8286 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8287 ac_cpp='$CXXCPP $CPPFLAGS'
8288 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8289 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8290 cross_compiling=$ac_cv_prog_cxx_cross
8291
8292       cat > conftest.$ac_ext <<EOF
8293 #line 8294 "configure"
8294 #include "confdefs.h"
8295 #include <math.h>
8296 int main() {
8297  _sincos(0, 0, 0);
8298 ; return 0; }
8299 EOF
8300 if { (eval echo configure:8301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8301   rm -rf conftest*
8302   glibcpp_cv_func__sincos_use=yes
8303 else
8304   echo "configure: failed program was:" >&5
8305   cat conftest.$ac_ext >&5
8306   rm -rf conftest*
8307   glibcpp_cv_func__sincos_use=no
8308 fi
8309 rm -f conftest*
8310       ac_ext=c
8311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8312 ac_cpp='$CPP $CPPFLAGS'
8313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8315 cross_compiling=$ac_cv_prog_cc_cross
8316
8317     
8318 fi
8319
8320   fi
8321   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
8322
8323     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
8324       for ac_func in _sincos
8325 do
8326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8327 echo "configure:8328: checking for $ac_func" >&5
8328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8329   echo $ac_n "(cached) $ac_c" 1>&6
8330 else
8331   cat > conftest.$ac_ext <<EOF
8332 #line 8333 "configure"
8333 #include "confdefs.h"
8334 /* System header to define __stub macros and hopefully few prototypes,
8335     which can conflict with char $ac_func(); below.  */
8336 #include <assert.h>
8337 /* Override any gcc2 internal prototype to avoid an error.  */
8338 /* We use char because int might match the return type of a gcc2
8339     builtin and then its argument prototype would still apply.  */
8340 char $ac_func();
8341
8342 int main() {
8343
8344 /* The GNU C library defines this for functions which it implements
8345     to always fail with ENOSYS.  Some functions are actually named
8346     something starting with __ and the normal name is an alias.  */
8347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8348 choke me
8349 #else
8350 $ac_func();
8351 #endif
8352
8353 ; return 0; }
8354 EOF
8355 if { (eval echo configure:8356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8356   rm -rf conftest*
8357   eval "ac_cv_func_$ac_func=yes"
8358 else
8359   echo "configure: failed program was:" >&5
8360   cat conftest.$ac_ext >&5
8361   rm -rf conftest*
8362   eval "ac_cv_func_$ac_func=no"
8363 fi
8364 rm -f conftest*
8365 fi
8366
8367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8368   echo "$ac_t""yes" 1>&6
8369     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8370   cat >> confdefs.h <<EOF
8371 #define $ac_tr_func 1
8372 EOF
8373  
8374 else
8375   echo "$ac_t""no" 1>&6
8376 fi
8377 done
8378     
8379     fi
8380   fi
8381
8382   
8383   
8384   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
8385 echo "configure:8386: checking for fpclass declaration" >&5
8386   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
8387     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
8388   echo $ac_n "(cached) $ac_c" 1>&6
8389 else
8390   
8391       
8392       ac_ext=C
8393 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8394 ac_cpp='$CXXCPP $CPPFLAGS'
8395 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8396 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8397 cross_compiling=$ac_cv_prog_cxx_cross
8398
8399       cat > conftest.$ac_ext <<EOF
8400 #line 8401 "configure"
8401 #include "confdefs.h"
8402 #include <math.h>
8403                       #ifdef HAVE_IEEEFP_H
8404                       #include <ieeefp.h>
8405                       #endif
8406                      
8407 int main() {
8408  fpclass(0);
8409 ; return 0; }
8410 EOF
8411 if { (eval echo configure:8412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8412   rm -rf conftest*
8413   glibcpp_cv_func_fpclass_use=yes
8414 else
8415   echo "configure: failed program was:" >&5
8416   cat conftest.$ac_ext >&5
8417   rm -rf conftest*
8418   glibcpp_cv_func_fpclass_use=no
8419 fi
8420 rm -f conftest*
8421       ac_ext=c
8422 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8423 ac_cpp='$CPP $CPPFLAGS'
8424 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8425 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8426 cross_compiling=$ac_cv_prog_cc_cross
8427
8428     
8429 fi
8430
8431   fi
8432   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
8433
8434   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
8435     for ac_func in fpclass
8436 do
8437 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8438 echo "configure:8439: checking for $ac_func" >&5
8439 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8440   echo $ac_n "(cached) $ac_c" 1>&6
8441 else
8442   cat > conftest.$ac_ext <<EOF
8443 #line 8444 "configure"
8444 #include "confdefs.h"
8445 /* System header to define __stub macros and hopefully few prototypes,
8446     which can conflict with char $ac_func(); below.  */
8447 #include <assert.h>
8448 /* Override any gcc2 internal prototype to avoid an error.  */
8449 /* We use char because int might match the return type of a gcc2
8450     builtin and then its argument prototype would still apply.  */
8451 char $ac_func();
8452
8453 int main() {
8454
8455 /* The GNU C library defines this for functions which it implements
8456     to always fail with ENOSYS.  Some functions are actually named
8457     something starting with __ and the normal name is an alias.  */
8458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8459 choke me
8460 #else
8461 $ac_func();
8462 #endif
8463
8464 ; return 0; }
8465 EOF
8466 if { (eval echo configure:8467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8467   rm -rf conftest*
8468   eval "ac_cv_func_$ac_func=yes"
8469 else
8470   echo "configure: failed program was:" >&5
8471   cat conftest.$ac_ext >&5
8472   rm -rf conftest*
8473   eval "ac_cv_func_$ac_func=no"
8474 fi
8475 rm -f conftest*
8476 fi
8477
8478 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8479   echo "$ac_t""yes" 1>&6
8480     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8481   cat >> confdefs.h <<EOF
8482 #define $ac_tr_func 1
8483 EOF
8484  
8485 else
8486   echo "$ac_t""no" 1>&6
8487 fi
8488 done
8489     
8490   else
8491     
8492   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
8493 echo "configure:8494: checking for _fpclass declaration" >&5
8494   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
8495     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
8496   echo $ac_n "(cached) $ac_c" 1>&6
8497 else
8498   
8499       
8500       ac_ext=C
8501 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8502 ac_cpp='$CXXCPP $CPPFLAGS'
8503 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8504 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8505 cross_compiling=$ac_cv_prog_cxx_cross
8506
8507       cat > conftest.$ac_ext <<EOF
8508 #line 8509 "configure"
8509 #include "confdefs.h"
8510 #include <math.h>
8511                       #ifdef HAVE_IEEEFP_H
8512                       #include <ieeefp.h>
8513                       #endif
8514                      
8515 int main() {
8516  _fpclass(0);
8517 ; return 0; }
8518 EOF
8519 if { (eval echo configure:8520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8520   rm -rf conftest*
8521   glibcpp_cv_func__fpclass_use=yes
8522 else
8523   echo "configure: failed program was:" >&5
8524   cat conftest.$ac_ext >&5
8525   rm -rf conftest*
8526   glibcpp_cv_func__fpclass_use=no
8527 fi
8528 rm -f conftest*
8529       ac_ext=c
8530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8531 ac_cpp='$CPP $CPPFLAGS'
8532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8534 cross_compiling=$ac_cv_prog_cc_cross
8535
8536     
8537 fi
8538
8539   fi
8540   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
8541
8542     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
8543       for ac_func in _fpclass
8544 do
8545 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8546 echo "configure:8547: checking for $ac_func" >&5
8547 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8548   echo $ac_n "(cached) $ac_c" 1>&6
8549 else
8550   cat > conftest.$ac_ext <<EOF
8551 #line 8552 "configure"
8552 #include "confdefs.h"
8553 /* System header to define __stub macros and hopefully few prototypes,
8554     which can conflict with char $ac_func(); below.  */
8555 #include <assert.h>
8556 /* Override any gcc2 internal prototype to avoid an error.  */
8557 /* We use char because int might match the return type of a gcc2
8558     builtin and then its argument prototype would still apply.  */
8559 char $ac_func();
8560
8561 int main() {
8562
8563 /* The GNU C library defines this for functions which it implements
8564     to always fail with ENOSYS.  Some functions are actually named
8565     something starting with __ and the normal name is an alias.  */
8566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8567 choke me
8568 #else
8569 $ac_func();
8570 #endif
8571
8572 ; return 0; }
8573 EOF
8574 if { (eval echo configure:8575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8575   rm -rf conftest*
8576   eval "ac_cv_func_$ac_func=yes"
8577 else
8578   echo "configure: failed program was:" >&5
8579   cat conftest.$ac_ext >&5
8580   rm -rf conftest*
8581   eval "ac_cv_func_$ac_func=no"
8582 fi
8583 rm -f conftest*
8584 fi
8585
8586 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8587   echo "$ac_t""yes" 1>&6
8588     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8589   cat >> confdefs.h <<EOF
8590 #define $ac_tr_func 1
8591 EOF
8592  
8593 else
8594   echo "$ac_t""no" 1>&6
8595 fi
8596 done
8597     
8598     fi
8599   fi
8600
8601   
8602   
8603   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
8604 echo "configure:8605: checking for qfpclass declaration" >&5
8605   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
8606     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
8607   echo $ac_n "(cached) $ac_c" 1>&6
8608 else
8609   
8610       
8611       ac_ext=C
8612 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8613 ac_cpp='$CXXCPP $CPPFLAGS'
8614 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8615 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8616 cross_compiling=$ac_cv_prog_cxx_cross
8617
8618       cat > conftest.$ac_ext <<EOF
8619 #line 8620 "configure"
8620 #include "confdefs.h"
8621 #include <math.h>
8622                       #ifdef HAVE_IEEEFP_H
8623                       #include <ieeefp.h>
8624                       #endif
8625                      
8626 int main() {
8627  qfpclass(0);
8628 ; return 0; }
8629 EOF
8630 if { (eval echo configure:8631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8631   rm -rf conftest*
8632   glibcpp_cv_func_qfpclass_use=yes
8633 else
8634   echo "configure: failed program was:" >&5
8635   cat conftest.$ac_ext >&5
8636   rm -rf conftest*
8637   glibcpp_cv_func_qfpclass_use=no
8638 fi
8639 rm -f conftest*
8640       ac_ext=c
8641 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8642 ac_cpp='$CPP $CPPFLAGS'
8643 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8644 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8645 cross_compiling=$ac_cv_prog_cc_cross
8646
8647     
8648 fi
8649
8650   fi
8651   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
8652
8653   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
8654     for ac_func in qfpclass
8655 do
8656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8657 echo "configure:8658: checking for $ac_func" >&5
8658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8659   echo $ac_n "(cached) $ac_c" 1>&6
8660 else
8661   cat > conftest.$ac_ext <<EOF
8662 #line 8663 "configure"
8663 #include "confdefs.h"
8664 /* System header to define __stub macros and hopefully few prototypes,
8665     which can conflict with char $ac_func(); below.  */
8666 #include <assert.h>
8667 /* Override any gcc2 internal prototype to avoid an error.  */
8668 /* We use char because int might match the return type of a gcc2
8669     builtin and then its argument prototype would still apply.  */
8670 char $ac_func();
8671
8672 int main() {
8673
8674 /* The GNU C library defines this for functions which it implements
8675     to always fail with ENOSYS.  Some functions are actually named
8676     something starting with __ and the normal name is an alias.  */
8677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8678 choke me
8679 #else
8680 $ac_func();
8681 #endif
8682
8683 ; return 0; }
8684 EOF
8685 if { (eval echo configure:8686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8686   rm -rf conftest*
8687   eval "ac_cv_func_$ac_func=yes"
8688 else
8689   echo "configure: failed program was:" >&5
8690   cat conftest.$ac_ext >&5
8691   rm -rf conftest*
8692   eval "ac_cv_func_$ac_func=no"
8693 fi
8694 rm -f conftest*
8695 fi
8696
8697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8698   echo "$ac_t""yes" 1>&6
8699     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8700   cat >> confdefs.h <<EOF
8701 #define $ac_tr_func 1
8702 EOF
8703  
8704 else
8705   echo "$ac_t""no" 1>&6
8706 fi
8707 done
8708     
8709   else
8710     
8711   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
8712 echo "configure:8713: checking for _qfpclass declaration" >&5
8713   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
8714     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
8715   echo $ac_n "(cached) $ac_c" 1>&6
8716 else
8717   
8718       
8719       ac_ext=C
8720 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8721 ac_cpp='$CXXCPP $CPPFLAGS'
8722 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8723 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8724 cross_compiling=$ac_cv_prog_cxx_cross
8725
8726       cat > conftest.$ac_ext <<EOF
8727 #line 8728 "configure"
8728 #include "confdefs.h"
8729 #include <math.h>
8730                       #ifdef HAVE_IEEEFP_H
8731                       #include <ieeefp.h>
8732                       #endif
8733                      
8734 int main() {
8735  _qfpclass(0);
8736 ; return 0; }
8737 EOF
8738 if { (eval echo configure:8739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8739   rm -rf conftest*
8740   glibcpp_cv_func__qfpclass_use=yes
8741 else
8742   echo "configure: failed program was:" >&5
8743   cat conftest.$ac_ext >&5
8744   rm -rf conftest*
8745   glibcpp_cv_func__qfpclass_use=no
8746 fi
8747 rm -f conftest*
8748       ac_ext=c
8749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8750 ac_cpp='$CPP $CPPFLAGS'
8751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8752 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8753 cross_compiling=$ac_cv_prog_cc_cross
8754
8755     
8756 fi
8757
8758   fi
8759   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
8760
8761     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
8762       for ac_func in _qfpclass
8763 do
8764 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8765 echo "configure:8766: checking for $ac_func" >&5
8766 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8767   echo $ac_n "(cached) $ac_c" 1>&6
8768 else
8769   cat > conftest.$ac_ext <<EOF
8770 #line 8771 "configure"
8771 #include "confdefs.h"
8772 /* System header to define __stub macros and hopefully few prototypes,
8773     which can conflict with char $ac_func(); below.  */
8774 #include <assert.h>
8775 /* Override any gcc2 internal prototype to avoid an error.  */
8776 /* We use char because int might match the return type of a gcc2
8777     builtin and then its argument prototype would still apply.  */
8778 char $ac_func();
8779
8780 int main() {
8781
8782 /* The GNU C library defines this for functions which it implements
8783     to always fail with ENOSYS.  Some functions are actually named
8784     something starting with __ and the normal name is an alias.  */
8785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8786 choke me
8787 #else
8788 $ac_func();
8789 #endif
8790
8791 ; return 0; }
8792 EOF
8793 if { (eval echo configure:8794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8794   rm -rf conftest*
8795   eval "ac_cv_func_$ac_func=yes"
8796 else
8797   echo "configure: failed program was:" >&5
8798   cat conftest.$ac_ext >&5
8799   rm -rf conftest*
8800   eval "ac_cv_func_$ac_func=no"
8801 fi
8802 rm -f conftest*
8803 fi
8804
8805 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8806   echo "$ac_t""yes" 1>&6
8807     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8808   cat >> confdefs.h <<EOF
8809 #define $ac_tr_func 1
8810 EOF
8811  
8812 else
8813   echo "$ac_t""no" 1>&6
8814 fi
8815 done
8816     
8817     fi
8818   fi
8819
8820   
8821   
8822   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
8823 echo "configure:8824: checking for hypot declaration" >&5
8824   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
8825     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
8826   echo $ac_n "(cached) $ac_c" 1>&6
8827 else
8828   
8829       
8830       ac_ext=C
8831 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8832 ac_cpp='$CXXCPP $CPPFLAGS'
8833 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8834 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8835 cross_compiling=$ac_cv_prog_cxx_cross
8836
8837       cat > conftest.$ac_ext <<EOF
8838 #line 8839 "configure"
8839 #include "confdefs.h"
8840 #include <math.h>
8841 int main() {
8842  hypot(0, 0);
8843 ; return 0; }
8844 EOF
8845 if { (eval echo configure:8846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8846   rm -rf conftest*
8847   glibcpp_cv_func_hypot_use=yes
8848 else
8849   echo "configure: failed program was:" >&5
8850   cat conftest.$ac_ext >&5
8851   rm -rf conftest*
8852   glibcpp_cv_func_hypot_use=no
8853 fi
8854 rm -f conftest*
8855       ac_ext=c
8856 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8857 ac_cpp='$CPP $CPPFLAGS'
8858 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8859 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8860 cross_compiling=$ac_cv_prog_cc_cross
8861
8862     
8863 fi
8864
8865   fi
8866   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
8867
8868   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
8869     for ac_func in hypot
8870 do
8871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8872 echo "configure:8873: checking for $ac_func" >&5
8873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8874   echo $ac_n "(cached) $ac_c" 1>&6
8875 else
8876   cat > conftest.$ac_ext <<EOF
8877 #line 8878 "configure"
8878 #include "confdefs.h"
8879 /* System header to define __stub macros and hopefully few prototypes,
8880     which can conflict with char $ac_func(); below.  */
8881 #include <assert.h>
8882 /* Override any gcc2 internal prototype to avoid an error.  */
8883 /* We use char because int might match the return type of a gcc2
8884     builtin and then its argument prototype would still apply.  */
8885 char $ac_func();
8886
8887 int main() {
8888
8889 /* The GNU C library defines this for functions which it implements
8890     to always fail with ENOSYS.  Some functions are actually named
8891     something starting with __ and the normal name is an alias.  */
8892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8893 choke me
8894 #else
8895 $ac_func();
8896 #endif
8897
8898 ; return 0; }
8899 EOF
8900 if { (eval echo configure:8901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8901   rm -rf conftest*
8902   eval "ac_cv_func_$ac_func=yes"
8903 else
8904   echo "configure: failed program was:" >&5
8905   cat conftest.$ac_ext >&5
8906   rm -rf conftest*
8907   eval "ac_cv_func_$ac_func=no"
8908 fi
8909 rm -f conftest*
8910 fi
8911
8912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8913   echo "$ac_t""yes" 1>&6
8914     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8915   cat >> confdefs.h <<EOF
8916 #define $ac_tr_func 1
8917 EOF
8918  
8919 else
8920   echo "$ac_t""no" 1>&6
8921 fi
8922 done
8923     
8924   else
8925     
8926   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
8927 echo "configure:8928: checking for _hypot declaration" >&5
8928   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
8929     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
8930   echo $ac_n "(cached) $ac_c" 1>&6
8931 else
8932   
8933       
8934       ac_ext=C
8935 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8936 ac_cpp='$CXXCPP $CPPFLAGS'
8937 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8938 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8939 cross_compiling=$ac_cv_prog_cxx_cross
8940
8941       cat > conftest.$ac_ext <<EOF
8942 #line 8943 "configure"
8943 #include "confdefs.h"
8944 #include <math.h>
8945 int main() {
8946  _hypot(0, 0);
8947 ; return 0; }
8948 EOF
8949 if { (eval echo configure:8950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8950   rm -rf conftest*
8951   glibcpp_cv_func__hypot_use=yes
8952 else
8953   echo "configure: failed program was:" >&5
8954   cat conftest.$ac_ext >&5
8955   rm -rf conftest*
8956   glibcpp_cv_func__hypot_use=no
8957 fi
8958 rm -f conftest*
8959       ac_ext=c
8960 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8961 ac_cpp='$CPP $CPPFLAGS'
8962 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8963 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8964 cross_compiling=$ac_cv_prog_cc_cross
8965
8966     
8967 fi
8968
8969   fi
8970   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
8971
8972     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
8973       for ac_func in _hypot
8974 do
8975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8976 echo "configure:8977: checking for $ac_func" >&5
8977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8978   echo $ac_n "(cached) $ac_c" 1>&6
8979 else
8980   cat > conftest.$ac_ext <<EOF
8981 #line 8982 "configure"
8982 #include "confdefs.h"
8983 /* System header to define __stub macros and hopefully few prototypes,
8984     which can conflict with char $ac_func(); below.  */
8985 #include <assert.h>
8986 /* Override any gcc2 internal prototype to avoid an error.  */
8987 /* We use char because int might match the return type of a gcc2
8988     builtin and then its argument prototype would still apply.  */
8989 char $ac_func();
8990
8991 int main() {
8992
8993 /* The GNU C library defines this for functions which it implements
8994     to always fail with ENOSYS.  Some functions are actually named
8995     something starting with __ and the normal name is an alias.  */
8996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8997 choke me
8998 #else
8999 $ac_func();
9000 #endif
9001
9002 ; return 0; }
9003 EOF
9004 if { (eval echo configure:9005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9005   rm -rf conftest*
9006   eval "ac_cv_func_$ac_func=yes"
9007 else
9008   echo "configure: failed program was:" >&5
9009   cat conftest.$ac_ext >&5
9010   rm -rf conftest*
9011   eval "ac_cv_func_$ac_func=no"
9012 fi
9013 rm -f conftest*
9014 fi
9015
9016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9017   echo "$ac_t""yes" 1>&6
9018     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9019   cat >> confdefs.h <<EOF
9020 #define $ac_tr_func 1
9021 EOF
9022  
9023 else
9024   echo "$ac_t""no" 1>&6
9025 fi
9026 done
9027     
9028     fi
9029   fi
9030
9031
9032     
9033   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
9034 echo "configure:9035: checking for float trig functions" >&5
9035   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
9036   echo $ac_n "(cached) $ac_c" 1>&6
9037 else
9038   
9039     
9040     ac_ext=C
9041 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9042 ac_cpp='$CXXCPP $CPPFLAGS'
9043 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9044 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9045 cross_compiling=$ac_cv_prog_cxx_cross
9046
9047     cat > conftest.$ac_ext <<EOF
9048 #line 9049 "configure"
9049 #include "confdefs.h"
9050 #include <math.h>
9051 int main() {
9052  `for x in acosf asinf atanf \
9053                                           cosf sinf tanf \
9054                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
9055 ; return 0; }
9056 EOF
9057 if { (eval echo configure:9058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9058   rm -rf conftest*
9059   glibcpp_cv_func_float_trig_use=yes
9060 else
9061   echo "configure: failed program was:" >&5
9062   cat conftest.$ac_ext >&5
9063   rm -rf conftest*
9064   glibcpp_cv_func_float_trig_use=no
9065 fi
9066 rm -f conftest*
9067     ac_ext=c
9068 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9069 ac_cpp='$CPP $CPPFLAGS'
9070 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9071 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9072 cross_compiling=$ac_cv_prog_cc_cross
9073
9074 fi
9075
9076   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
9077   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
9078     for ac_func in acosf asinf atanf \
9079                                           cosf sinf tanf \
9080                                           coshf sinhf tanhf
9081 do
9082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9083 echo "configure:9084: checking for $ac_func" >&5
9084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9085   echo $ac_n "(cached) $ac_c" 1>&6
9086 else
9087   cat > conftest.$ac_ext <<EOF
9088 #line 9089 "configure"
9089 #include "confdefs.h"
9090 /* System header to define __stub macros and hopefully few prototypes,
9091     which can conflict with char $ac_func(); below.  */
9092 #include <assert.h>
9093 /* Override any gcc2 internal prototype to avoid an error.  */
9094 /* We use char because int might match the return type of a gcc2
9095     builtin and then its argument prototype would still apply.  */
9096 char $ac_func();
9097
9098 int main() {
9099
9100 /* The GNU C library defines this for functions which it implements
9101     to always fail with ENOSYS.  Some functions are actually named
9102     something starting with __ and the normal name is an alias.  */
9103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9104 choke me
9105 #else
9106 $ac_func();
9107 #endif
9108
9109 ; return 0; }
9110 EOF
9111 if { (eval echo configure:9112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9112   rm -rf conftest*
9113   eval "ac_cv_func_$ac_func=yes"
9114 else
9115   echo "configure: failed program was:" >&5
9116   cat conftest.$ac_ext >&5
9117   rm -rf conftest*
9118   eval "ac_cv_func_$ac_func=no"
9119 fi
9120 rm -f conftest*
9121 fi
9122
9123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9124   echo "$ac_t""yes" 1>&6
9125     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9126   cat >> confdefs.h <<EOF
9127 #define $ac_tr_func 1
9128 EOF
9129  
9130 else
9131   echo "$ac_t""no" 1>&6
9132 fi
9133 done
9134
9135   fi
9136
9137   
9138   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
9139 echo "configure:9140: checking for float round functions" >&5
9140   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
9141   echo $ac_n "(cached) $ac_c" 1>&6
9142 else
9143   
9144     
9145     ac_ext=C
9146 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9147 ac_cpp='$CXXCPP $CPPFLAGS'
9148 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9149 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9150 cross_compiling=$ac_cv_prog_cxx_cross
9151
9152     cat > conftest.$ac_ext <<EOF
9153 #line 9154 "configure"
9154 #include "confdefs.h"
9155 #include <math.h>
9156 int main() {
9157  `for x in ceilf floorf; do echo "$x (0);"; done` 
9158 ; return 0; }
9159 EOF
9160 if { (eval echo configure:9161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9161   rm -rf conftest*
9162   glibcpp_cv_func_float_round_use=yes
9163 else
9164   echo "configure: failed program was:" >&5
9165   cat conftest.$ac_ext >&5
9166   rm -rf conftest*
9167   glibcpp_cv_func_float_round_use=no
9168 fi
9169 rm -f conftest*
9170     ac_ext=c
9171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9172 ac_cpp='$CPP $CPPFLAGS'
9173 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9174 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9175 cross_compiling=$ac_cv_prog_cc_cross
9176
9177 fi
9178
9179   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
9180   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
9181     for ac_func in ceilf floorf
9182 do
9183 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9184 echo "configure:9185: checking for $ac_func" >&5
9185 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9186   echo $ac_n "(cached) $ac_c" 1>&6
9187 else
9188   cat > conftest.$ac_ext <<EOF
9189 #line 9190 "configure"
9190 #include "confdefs.h"
9191 /* System header to define __stub macros and hopefully few prototypes,
9192     which can conflict with char $ac_func(); below.  */
9193 #include <assert.h>
9194 /* Override any gcc2 internal prototype to avoid an error.  */
9195 /* We use char because int might match the return type of a gcc2
9196     builtin and then its argument prototype would still apply.  */
9197 char $ac_func();
9198
9199 int main() {
9200
9201 /* The GNU C library defines this for functions which it implements
9202     to always fail with ENOSYS.  Some functions are actually named
9203     something starting with __ and the normal name is an alias.  */
9204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9205 choke me
9206 #else
9207 $ac_func();
9208 #endif
9209
9210 ; return 0; }
9211 EOF
9212 if { (eval echo configure:9213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9213   rm -rf conftest*
9214   eval "ac_cv_func_$ac_func=yes"
9215 else
9216   echo "configure: failed program was:" >&5
9217   cat conftest.$ac_ext >&5
9218   rm -rf conftest*
9219   eval "ac_cv_func_$ac_func=no"
9220 fi
9221 rm -f conftest*
9222 fi
9223
9224 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9225   echo "$ac_t""yes" 1>&6
9226     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9227   cat >> confdefs.h <<EOF
9228 #define $ac_tr_func 1
9229 EOF
9230  
9231 else
9232   echo "$ac_t""no" 1>&6
9233 fi
9234 done
9235
9236   fi
9237
9238   
9239   
9240   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
9241 echo "configure:9242: checking for isnanf declaration" >&5
9242   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
9243     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
9244   echo $ac_n "(cached) $ac_c" 1>&6
9245 else
9246   
9247       
9248       ac_ext=C
9249 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9250 ac_cpp='$CXXCPP $CPPFLAGS'
9251 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9252 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9253 cross_compiling=$ac_cv_prog_cxx_cross
9254
9255       cat > conftest.$ac_ext <<EOF
9256 #line 9257 "configure"
9257 #include "confdefs.h"
9258 #include <math.h>
9259                       #ifdef HAVE_IEEEFP_H
9260                       #include <ieeefp.h>
9261                       #endif
9262                      
9263 int main() {
9264  isnanf(0);
9265 ; return 0; }
9266 EOF
9267 if { (eval echo configure:9268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9268   rm -rf conftest*
9269   glibcpp_cv_func_isnanf_use=yes
9270 else
9271   echo "configure: failed program was:" >&5
9272   cat conftest.$ac_ext >&5
9273   rm -rf conftest*
9274   glibcpp_cv_func_isnanf_use=no
9275 fi
9276 rm -f conftest*
9277       ac_ext=c
9278 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9279 ac_cpp='$CPP $CPPFLAGS'
9280 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9281 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9282 cross_compiling=$ac_cv_prog_cc_cross
9283
9284     
9285 fi
9286
9287   fi
9288   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
9289
9290   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
9291     for ac_func in isnanf
9292 do
9293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9294 echo "configure:9295: checking for $ac_func" >&5
9295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9296   echo $ac_n "(cached) $ac_c" 1>&6
9297 else
9298   cat > conftest.$ac_ext <<EOF
9299 #line 9300 "configure"
9300 #include "confdefs.h"
9301 /* System header to define __stub macros and hopefully few prototypes,
9302     which can conflict with char $ac_func(); below.  */
9303 #include <assert.h>
9304 /* Override any gcc2 internal prototype to avoid an error.  */
9305 /* We use char because int might match the return type of a gcc2
9306     builtin and then its argument prototype would still apply.  */
9307 char $ac_func();
9308
9309 int main() {
9310
9311 /* The GNU C library defines this for functions which it implements
9312     to always fail with ENOSYS.  Some functions are actually named
9313     something starting with __ and the normal name is an alias.  */
9314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9315 choke me
9316 #else
9317 $ac_func();
9318 #endif
9319
9320 ; return 0; }
9321 EOF
9322 if { (eval echo configure:9323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9323   rm -rf conftest*
9324   eval "ac_cv_func_$ac_func=yes"
9325 else
9326   echo "configure: failed program was:" >&5
9327   cat conftest.$ac_ext >&5
9328   rm -rf conftest*
9329   eval "ac_cv_func_$ac_func=no"
9330 fi
9331 rm -f conftest*
9332 fi
9333
9334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9335   echo "$ac_t""yes" 1>&6
9336     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9337   cat >> confdefs.h <<EOF
9338 #define $ac_tr_func 1
9339 EOF
9340  
9341 else
9342   echo "$ac_t""no" 1>&6
9343 fi
9344 done
9345     
9346   else
9347     
9348   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
9349 echo "configure:9350: checking for _isnanf declaration" >&5
9350   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
9351     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
9352   echo $ac_n "(cached) $ac_c" 1>&6
9353 else
9354   
9355       
9356       ac_ext=C
9357 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9358 ac_cpp='$CXXCPP $CPPFLAGS'
9359 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9360 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9361 cross_compiling=$ac_cv_prog_cxx_cross
9362
9363       cat > conftest.$ac_ext <<EOF
9364 #line 9365 "configure"
9365 #include "confdefs.h"
9366 #include <math.h>
9367                       #ifdef HAVE_IEEEFP_H
9368                       #include <ieeefp.h>
9369                       #endif
9370                      
9371 int main() {
9372  _isnanf(0);
9373 ; return 0; }
9374 EOF
9375 if { (eval echo configure:9376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9376   rm -rf conftest*
9377   glibcpp_cv_func__isnanf_use=yes
9378 else
9379   echo "configure: failed program was:" >&5
9380   cat conftest.$ac_ext >&5
9381   rm -rf conftest*
9382   glibcpp_cv_func__isnanf_use=no
9383 fi
9384 rm -f conftest*
9385       ac_ext=c
9386 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9387 ac_cpp='$CPP $CPPFLAGS'
9388 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9389 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9390 cross_compiling=$ac_cv_prog_cc_cross
9391
9392     
9393 fi
9394
9395   fi
9396   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
9397
9398     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
9399       for ac_func in _isnanf
9400 do
9401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9402 echo "configure:9403: checking for $ac_func" >&5
9403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9404   echo $ac_n "(cached) $ac_c" 1>&6
9405 else
9406   cat > conftest.$ac_ext <<EOF
9407 #line 9408 "configure"
9408 #include "confdefs.h"
9409 /* System header to define __stub macros and hopefully few prototypes,
9410     which can conflict with char $ac_func(); below.  */
9411 #include <assert.h>
9412 /* Override any gcc2 internal prototype to avoid an error.  */
9413 /* We use char because int might match the return type of a gcc2
9414     builtin and then its argument prototype would still apply.  */
9415 char $ac_func();
9416
9417 int main() {
9418
9419 /* The GNU C library defines this for functions which it implements
9420     to always fail with ENOSYS.  Some functions are actually named
9421     something starting with __ and the normal name is an alias.  */
9422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9423 choke me
9424 #else
9425 $ac_func();
9426 #endif
9427
9428 ; return 0; }
9429 EOF
9430 if { (eval echo configure:9431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9431   rm -rf conftest*
9432   eval "ac_cv_func_$ac_func=yes"
9433 else
9434   echo "configure: failed program was:" >&5
9435   cat conftest.$ac_ext >&5
9436   rm -rf conftest*
9437   eval "ac_cv_func_$ac_func=no"
9438 fi
9439 rm -f conftest*
9440 fi
9441
9442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9443   echo "$ac_t""yes" 1>&6
9444     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9445   cat >> confdefs.h <<EOF
9446 #define $ac_tr_func 1
9447 EOF
9448  
9449 else
9450   echo "$ac_t""no" 1>&6
9451 fi
9452 done
9453     
9454     fi
9455   fi
9456
9457   
9458   
9459   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
9460 echo "configure:9461: checking for isinff declaration" >&5
9461   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
9462     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
9463   echo $ac_n "(cached) $ac_c" 1>&6
9464 else
9465   
9466       
9467       ac_ext=C
9468 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9469 ac_cpp='$CXXCPP $CPPFLAGS'
9470 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9471 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9472 cross_compiling=$ac_cv_prog_cxx_cross
9473
9474       cat > conftest.$ac_ext <<EOF
9475 #line 9476 "configure"
9476 #include "confdefs.h"
9477 #include <math.h>
9478                       #ifdef HAVE_IEEEFP_H
9479                       #include <ieeefp.h>
9480                       #endif
9481                      
9482 int main() {
9483  isinff(0);
9484 ; return 0; }
9485 EOF
9486 if { (eval echo configure:9487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9487   rm -rf conftest*
9488   glibcpp_cv_func_isinff_use=yes
9489 else
9490   echo "configure: failed program was:" >&5
9491   cat conftest.$ac_ext >&5
9492   rm -rf conftest*
9493   glibcpp_cv_func_isinff_use=no
9494 fi
9495 rm -f conftest*
9496       ac_ext=c
9497 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9498 ac_cpp='$CPP $CPPFLAGS'
9499 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9500 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9501 cross_compiling=$ac_cv_prog_cc_cross
9502
9503     
9504 fi
9505
9506   fi
9507   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
9508
9509   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
9510     for ac_func in isinff
9511 do
9512 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9513 echo "configure:9514: checking for $ac_func" >&5
9514 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9515   echo $ac_n "(cached) $ac_c" 1>&6
9516 else
9517   cat > conftest.$ac_ext <<EOF
9518 #line 9519 "configure"
9519 #include "confdefs.h"
9520 /* System header to define __stub macros and hopefully few prototypes,
9521     which can conflict with char $ac_func(); below.  */
9522 #include <assert.h>
9523 /* Override any gcc2 internal prototype to avoid an error.  */
9524 /* We use char because int might match the return type of a gcc2
9525     builtin and then its argument prototype would still apply.  */
9526 char $ac_func();
9527
9528 int main() {
9529
9530 /* The GNU C library defines this for functions which it implements
9531     to always fail with ENOSYS.  Some functions are actually named
9532     something starting with __ and the normal name is an alias.  */
9533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9534 choke me
9535 #else
9536 $ac_func();
9537 #endif
9538
9539 ; return 0; }
9540 EOF
9541 if { (eval echo configure:9542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9542   rm -rf conftest*
9543   eval "ac_cv_func_$ac_func=yes"
9544 else
9545   echo "configure: failed program was:" >&5
9546   cat conftest.$ac_ext >&5
9547   rm -rf conftest*
9548   eval "ac_cv_func_$ac_func=no"
9549 fi
9550 rm -f conftest*
9551 fi
9552
9553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9554   echo "$ac_t""yes" 1>&6
9555     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9556   cat >> confdefs.h <<EOF
9557 #define $ac_tr_func 1
9558 EOF
9559  
9560 else
9561   echo "$ac_t""no" 1>&6
9562 fi
9563 done
9564     
9565   else
9566     
9567   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
9568 echo "configure:9569: checking for _isinff declaration" >&5
9569   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
9570     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
9571   echo $ac_n "(cached) $ac_c" 1>&6
9572 else
9573   
9574       
9575       ac_ext=C
9576 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9577 ac_cpp='$CXXCPP $CPPFLAGS'
9578 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9579 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9580 cross_compiling=$ac_cv_prog_cxx_cross
9581
9582       cat > conftest.$ac_ext <<EOF
9583 #line 9584 "configure"
9584 #include "confdefs.h"
9585 #include <math.h>
9586                       #ifdef HAVE_IEEEFP_H
9587                       #include <ieeefp.h>
9588                       #endif
9589                      
9590 int main() {
9591  _isinff(0);
9592 ; return 0; }
9593 EOF
9594 if { (eval echo configure:9595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9595   rm -rf conftest*
9596   glibcpp_cv_func__isinff_use=yes
9597 else
9598   echo "configure: failed program was:" >&5
9599   cat conftest.$ac_ext >&5
9600   rm -rf conftest*
9601   glibcpp_cv_func__isinff_use=no
9602 fi
9603 rm -f conftest*
9604       ac_ext=c
9605 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9606 ac_cpp='$CPP $CPPFLAGS'
9607 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9608 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9609 cross_compiling=$ac_cv_prog_cc_cross
9610
9611     
9612 fi
9613
9614   fi
9615   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
9616
9617     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
9618       for ac_func in _isinff
9619 do
9620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9621 echo "configure:9622: checking for $ac_func" >&5
9622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9623   echo $ac_n "(cached) $ac_c" 1>&6
9624 else
9625   cat > conftest.$ac_ext <<EOF
9626 #line 9627 "configure"
9627 #include "confdefs.h"
9628 /* System header to define __stub macros and hopefully few prototypes,
9629     which can conflict with char $ac_func(); below.  */
9630 #include <assert.h>
9631 /* Override any gcc2 internal prototype to avoid an error.  */
9632 /* We use char because int might match the return type of a gcc2
9633     builtin and then its argument prototype would still apply.  */
9634 char $ac_func();
9635
9636 int main() {
9637
9638 /* The GNU C library defines this for functions which it implements
9639     to always fail with ENOSYS.  Some functions are actually named
9640     something starting with __ and the normal name is an alias.  */
9641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9642 choke me
9643 #else
9644 $ac_func();
9645 #endif
9646
9647 ; return 0; }
9648 EOF
9649 if { (eval echo configure:9650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9650   rm -rf conftest*
9651   eval "ac_cv_func_$ac_func=yes"
9652 else
9653   echo "configure: failed program was:" >&5
9654   cat conftest.$ac_ext >&5
9655   rm -rf conftest*
9656   eval "ac_cv_func_$ac_func=no"
9657 fi
9658 rm -f conftest*
9659 fi
9660
9661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9662   echo "$ac_t""yes" 1>&6
9663     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9664   cat >> confdefs.h <<EOF
9665 #define $ac_tr_func 1
9666 EOF
9667  
9668 else
9669   echo "$ac_t""no" 1>&6
9670 fi
9671 done
9672     
9673     fi
9674   fi
9675
9676   
9677   
9678   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
9679 echo "configure:9680: checking for atan2f declaration" >&5
9680   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
9681     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
9682   echo $ac_n "(cached) $ac_c" 1>&6
9683 else
9684   
9685       
9686       ac_ext=C
9687 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9688 ac_cpp='$CXXCPP $CPPFLAGS'
9689 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9690 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9691 cross_compiling=$ac_cv_prog_cxx_cross
9692
9693       cat > conftest.$ac_ext <<EOF
9694 #line 9695 "configure"
9695 #include "confdefs.h"
9696 #include <math.h>
9697 int main() {
9698  atan2f(0, 0);
9699 ; return 0; }
9700 EOF
9701 if { (eval echo configure:9702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9702   rm -rf conftest*
9703   glibcpp_cv_func_atan2f_use=yes
9704 else
9705   echo "configure: failed program was:" >&5
9706   cat conftest.$ac_ext >&5
9707   rm -rf conftest*
9708   glibcpp_cv_func_atan2f_use=no
9709 fi
9710 rm -f conftest*
9711       ac_ext=c
9712 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9713 ac_cpp='$CPP $CPPFLAGS'
9714 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9715 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9716 cross_compiling=$ac_cv_prog_cc_cross
9717
9718     
9719 fi
9720
9721   fi
9722   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
9723
9724   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
9725     for ac_func in atan2f
9726 do
9727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9728 echo "configure:9729: checking for $ac_func" >&5
9729 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9730   echo $ac_n "(cached) $ac_c" 1>&6
9731 else
9732   cat > conftest.$ac_ext <<EOF
9733 #line 9734 "configure"
9734 #include "confdefs.h"
9735 /* System header to define __stub macros and hopefully few prototypes,
9736     which can conflict with char $ac_func(); below.  */
9737 #include <assert.h>
9738 /* Override any gcc2 internal prototype to avoid an error.  */
9739 /* We use char because int might match the return type of a gcc2
9740     builtin and then its argument prototype would still apply.  */
9741 char $ac_func();
9742
9743 int main() {
9744
9745 /* The GNU C library defines this for functions which it implements
9746     to always fail with ENOSYS.  Some functions are actually named
9747     something starting with __ and the normal name is an alias.  */
9748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9749 choke me
9750 #else
9751 $ac_func();
9752 #endif
9753
9754 ; return 0; }
9755 EOF
9756 if { (eval echo configure:9757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9757   rm -rf conftest*
9758   eval "ac_cv_func_$ac_func=yes"
9759 else
9760   echo "configure: failed program was:" >&5
9761   cat conftest.$ac_ext >&5
9762   rm -rf conftest*
9763   eval "ac_cv_func_$ac_func=no"
9764 fi
9765 rm -f conftest*
9766 fi
9767
9768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9769   echo "$ac_t""yes" 1>&6
9770     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9771   cat >> confdefs.h <<EOF
9772 #define $ac_tr_func 1
9773 EOF
9774  
9775 else
9776   echo "$ac_t""no" 1>&6
9777 fi
9778 done
9779     
9780   else
9781     
9782   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
9783 echo "configure:9784: checking for _atan2f declaration" >&5
9784   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
9785     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
9786   echo $ac_n "(cached) $ac_c" 1>&6
9787 else
9788   
9789       
9790       ac_ext=C
9791 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9792 ac_cpp='$CXXCPP $CPPFLAGS'
9793 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9794 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9795 cross_compiling=$ac_cv_prog_cxx_cross
9796
9797       cat > conftest.$ac_ext <<EOF
9798 #line 9799 "configure"
9799 #include "confdefs.h"
9800 #include <math.h>
9801 int main() {
9802  _atan2f(0, 0);
9803 ; return 0; }
9804 EOF
9805 if { (eval echo configure:9806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9806   rm -rf conftest*
9807   glibcpp_cv_func__atan2f_use=yes
9808 else
9809   echo "configure: failed program was:" >&5
9810   cat conftest.$ac_ext >&5
9811   rm -rf conftest*
9812   glibcpp_cv_func__atan2f_use=no
9813 fi
9814 rm -f conftest*
9815       ac_ext=c
9816 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9817 ac_cpp='$CPP $CPPFLAGS'
9818 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9819 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9820 cross_compiling=$ac_cv_prog_cc_cross
9821
9822     
9823 fi
9824
9825   fi
9826   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
9827
9828     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
9829       for ac_func in _atan2f
9830 do
9831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9832 echo "configure:9833: checking for $ac_func" >&5
9833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9834   echo $ac_n "(cached) $ac_c" 1>&6
9835 else
9836   cat > conftest.$ac_ext <<EOF
9837 #line 9838 "configure"
9838 #include "confdefs.h"
9839 /* System header to define __stub macros and hopefully few prototypes,
9840     which can conflict with char $ac_func(); below.  */
9841 #include <assert.h>
9842 /* Override any gcc2 internal prototype to avoid an error.  */
9843 /* We use char because int might match the return type of a gcc2
9844     builtin and then its argument prototype would still apply.  */
9845 char $ac_func();
9846
9847 int main() {
9848
9849 /* The GNU C library defines this for functions which it implements
9850     to always fail with ENOSYS.  Some functions are actually named
9851     something starting with __ and the normal name is an alias.  */
9852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9853 choke me
9854 #else
9855 $ac_func();
9856 #endif
9857
9858 ; return 0; }
9859 EOF
9860 if { (eval echo configure:9861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9861   rm -rf conftest*
9862   eval "ac_cv_func_$ac_func=yes"
9863 else
9864   echo "configure: failed program was:" >&5
9865   cat conftest.$ac_ext >&5
9866   rm -rf conftest*
9867   eval "ac_cv_func_$ac_func=no"
9868 fi
9869 rm -f conftest*
9870 fi
9871
9872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9873   echo "$ac_t""yes" 1>&6
9874     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9875   cat >> confdefs.h <<EOF
9876 #define $ac_tr_func 1
9877 EOF
9878  
9879 else
9880   echo "$ac_t""no" 1>&6
9881 fi
9882 done
9883     
9884     fi
9885   fi
9886
9887   
9888   
9889   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
9890 echo "configure:9891: checking for fabsf declaration" >&5
9891   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
9892     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
9893   echo $ac_n "(cached) $ac_c" 1>&6
9894 else
9895   
9896       
9897       ac_ext=C
9898 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9899 ac_cpp='$CXXCPP $CPPFLAGS'
9900 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9901 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9902 cross_compiling=$ac_cv_prog_cxx_cross
9903
9904       cat > conftest.$ac_ext <<EOF
9905 #line 9906 "configure"
9906 #include "confdefs.h"
9907 #include <math.h>
9908                       #ifdef HAVE_IEEEFP_H
9909                       #include <ieeefp.h>
9910                       #endif
9911                      
9912 int main() {
9913  fabsf(0);
9914 ; return 0; }
9915 EOF
9916 if { (eval echo configure:9917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9917   rm -rf conftest*
9918   glibcpp_cv_func_fabsf_use=yes
9919 else
9920   echo "configure: failed program was:" >&5
9921   cat conftest.$ac_ext >&5
9922   rm -rf conftest*
9923   glibcpp_cv_func_fabsf_use=no
9924 fi
9925 rm -f conftest*
9926       ac_ext=c
9927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9928 ac_cpp='$CPP $CPPFLAGS'
9929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9931 cross_compiling=$ac_cv_prog_cc_cross
9932
9933     
9934 fi
9935
9936   fi
9937   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
9938
9939   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
9940     for ac_func in fabsf
9941 do
9942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9943 echo "configure:9944: checking for $ac_func" >&5
9944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9945   echo $ac_n "(cached) $ac_c" 1>&6
9946 else
9947   cat > conftest.$ac_ext <<EOF
9948 #line 9949 "configure"
9949 #include "confdefs.h"
9950 /* System header to define __stub macros and hopefully few prototypes,
9951     which can conflict with char $ac_func(); below.  */
9952 #include <assert.h>
9953 /* Override any gcc2 internal prototype to avoid an error.  */
9954 /* We use char because int might match the return type of a gcc2
9955     builtin and then its argument prototype would still apply.  */
9956 char $ac_func();
9957
9958 int main() {
9959
9960 /* The GNU C library defines this for functions which it implements
9961     to always fail with ENOSYS.  Some functions are actually named
9962     something starting with __ and the normal name is an alias.  */
9963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9964 choke me
9965 #else
9966 $ac_func();
9967 #endif
9968
9969 ; return 0; }
9970 EOF
9971 if { (eval echo configure:9972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9972   rm -rf conftest*
9973   eval "ac_cv_func_$ac_func=yes"
9974 else
9975   echo "configure: failed program was:" >&5
9976   cat conftest.$ac_ext >&5
9977   rm -rf conftest*
9978   eval "ac_cv_func_$ac_func=no"
9979 fi
9980 rm -f conftest*
9981 fi
9982
9983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9984   echo "$ac_t""yes" 1>&6
9985     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9986   cat >> confdefs.h <<EOF
9987 #define $ac_tr_func 1
9988 EOF
9989  
9990 else
9991   echo "$ac_t""no" 1>&6
9992 fi
9993 done
9994     
9995   else
9996     
9997   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
9998 echo "configure:9999: checking for _fabsf declaration" >&5
9999   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
10000     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
10001   echo $ac_n "(cached) $ac_c" 1>&6
10002 else
10003   
10004       
10005       ac_ext=C
10006 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10007 ac_cpp='$CXXCPP $CPPFLAGS'
10008 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10009 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10010 cross_compiling=$ac_cv_prog_cxx_cross
10011
10012       cat > conftest.$ac_ext <<EOF
10013 #line 10014 "configure"
10014 #include "confdefs.h"
10015 #include <math.h>
10016                       #ifdef HAVE_IEEEFP_H
10017                       #include <ieeefp.h>
10018                       #endif
10019                      
10020 int main() {
10021  _fabsf(0);
10022 ; return 0; }
10023 EOF
10024 if { (eval echo configure:10025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10025   rm -rf conftest*
10026   glibcpp_cv_func__fabsf_use=yes
10027 else
10028   echo "configure: failed program was:" >&5
10029   cat conftest.$ac_ext >&5
10030   rm -rf conftest*
10031   glibcpp_cv_func__fabsf_use=no
10032 fi
10033 rm -f conftest*
10034       ac_ext=c
10035 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10036 ac_cpp='$CPP $CPPFLAGS'
10037 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10038 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10039 cross_compiling=$ac_cv_prog_cc_cross
10040
10041     
10042 fi
10043
10044   fi
10045   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
10046
10047     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
10048       for ac_func in _fabsf
10049 do
10050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10051 echo "configure:10052: checking for $ac_func" >&5
10052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10053   echo $ac_n "(cached) $ac_c" 1>&6
10054 else
10055   cat > conftest.$ac_ext <<EOF
10056 #line 10057 "configure"
10057 #include "confdefs.h"
10058 /* System header to define __stub macros and hopefully few prototypes,
10059     which can conflict with char $ac_func(); below.  */
10060 #include <assert.h>
10061 /* Override any gcc2 internal prototype to avoid an error.  */
10062 /* We use char because int might match the return type of a gcc2
10063     builtin and then its argument prototype would still apply.  */
10064 char $ac_func();
10065
10066 int main() {
10067
10068 /* The GNU C library defines this for functions which it implements
10069     to always fail with ENOSYS.  Some functions are actually named
10070     something starting with __ and the normal name is an alias.  */
10071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10072 choke me
10073 #else
10074 $ac_func();
10075 #endif
10076
10077 ; return 0; }
10078 EOF
10079 if { (eval echo configure:10080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10080   rm -rf conftest*
10081   eval "ac_cv_func_$ac_func=yes"
10082 else
10083   echo "configure: failed program was:" >&5
10084   cat conftest.$ac_ext >&5
10085   rm -rf conftest*
10086   eval "ac_cv_func_$ac_func=no"
10087 fi
10088 rm -f conftest*
10089 fi
10090
10091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10092   echo "$ac_t""yes" 1>&6
10093     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10094   cat >> confdefs.h <<EOF
10095 #define $ac_tr_func 1
10096 EOF
10097  
10098 else
10099   echo "$ac_t""no" 1>&6
10100 fi
10101 done
10102     
10103     fi
10104   fi
10105
10106   
10107   
10108   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
10109 echo "configure:10110: checking for fmodf declaration" >&5
10110   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
10111     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
10112   echo $ac_n "(cached) $ac_c" 1>&6
10113 else
10114   
10115       
10116       ac_ext=C
10117 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10118 ac_cpp='$CXXCPP $CPPFLAGS'
10119 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10120 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10121 cross_compiling=$ac_cv_prog_cxx_cross
10122
10123       cat > conftest.$ac_ext <<EOF
10124 #line 10125 "configure"
10125 #include "confdefs.h"
10126 #include <math.h>
10127 int main() {
10128  fmodf(0, 0);
10129 ; return 0; }
10130 EOF
10131 if { (eval echo configure:10132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10132   rm -rf conftest*
10133   glibcpp_cv_func_fmodf_use=yes
10134 else
10135   echo "configure: failed program was:" >&5
10136   cat conftest.$ac_ext >&5
10137   rm -rf conftest*
10138   glibcpp_cv_func_fmodf_use=no
10139 fi
10140 rm -f conftest*
10141       ac_ext=c
10142 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10143 ac_cpp='$CPP $CPPFLAGS'
10144 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10145 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10146 cross_compiling=$ac_cv_prog_cc_cross
10147
10148     
10149 fi
10150
10151   fi
10152   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
10153
10154   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
10155     for ac_func in fmodf
10156 do
10157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10158 echo "configure:10159: checking for $ac_func" >&5
10159 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10160   echo $ac_n "(cached) $ac_c" 1>&6
10161 else
10162   cat > conftest.$ac_ext <<EOF
10163 #line 10164 "configure"
10164 #include "confdefs.h"
10165 /* System header to define __stub macros and hopefully few prototypes,
10166     which can conflict with char $ac_func(); below.  */
10167 #include <assert.h>
10168 /* Override any gcc2 internal prototype to avoid an error.  */
10169 /* We use char because int might match the return type of a gcc2
10170     builtin and then its argument prototype would still apply.  */
10171 char $ac_func();
10172
10173 int main() {
10174
10175 /* The GNU C library defines this for functions which it implements
10176     to always fail with ENOSYS.  Some functions are actually named
10177     something starting with __ and the normal name is an alias.  */
10178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10179 choke me
10180 #else
10181 $ac_func();
10182 #endif
10183
10184 ; return 0; }
10185 EOF
10186 if { (eval echo configure:10187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10187   rm -rf conftest*
10188   eval "ac_cv_func_$ac_func=yes"
10189 else
10190   echo "configure: failed program was:" >&5
10191   cat conftest.$ac_ext >&5
10192   rm -rf conftest*
10193   eval "ac_cv_func_$ac_func=no"
10194 fi
10195 rm -f conftest*
10196 fi
10197
10198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10199   echo "$ac_t""yes" 1>&6
10200     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10201   cat >> confdefs.h <<EOF
10202 #define $ac_tr_func 1
10203 EOF
10204  
10205 else
10206   echo "$ac_t""no" 1>&6
10207 fi
10208 done
10209     
10210   else
10211     
10212   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
10213 echo "configure:10214: checking for _fmodf declaration" >&5
10214   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
10215     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
10216   echo $ac_n "(cached) $ac_c" 1>&6
10217 else
10218   
10219       
10220       ac_ext=C
10221 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10222 ac_cpp='$CXXCPP $CPPFLAGS'
10223 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10224 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10225 cross_compiling=$ac_cv_prog_cxx_cross
10226
10227       cat > conftest.$ac_ext <<EOF
10228 #line 10229 "configure"
10229 #include "confdefs.h"
10230 #include <math.h>
10231 int main() {
10232  _fmodf(0, 0);
10233 ; return 0; }
10234 EOF
10235 if { (eval echo configure:10236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10236   rm -rf conftest*
10237   glibcpp_cv_func__fmodf_use=yes
10238 else
10239   echo "configure: failed program was:" >&5
10240   cat conftest.$ac_ext >&5
10241   rm -rf conftest*
10242   glibcpp_cv_func__fmodf_use=no
10243 fi
10244 rm -f conftest*
10245       ac_ext=c
10246 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10247 ac_cpp='$CPP $CPPFLAGS'
10248 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10249 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10250 cross_compiling=$ac_cv_prog_cc_cross
10251
10252     
10253 fi
10254
10255   fi
10256   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
10257
10258     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
10259       for ac_func in _fmodf
10260 do
10261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10262 echo "configure:10263: checking for $ac_func" >&5
10263 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10264   echo $ac_n "(cached) $ac_c" 1>&6
10265 else
10266   cat > conftest.$ac_ext <<EOF
10267 #line 10268 "configure"
10268 #include "confdefs.h"
10269 /* System header to define __stub macros and hopefully few prototypes,
10270     which can conflict with char $ac_func(); below.  */
10271 #include <assert.h>
10272 /* Override any gcc2 internal prototype to avoid an error.  */
10273 /* We use char because int might match the return type of a gcc2
10274     builtin and then its argument prototype would still apply.  */
10275 char $ac_func();
10276
10277 int main() {
10278
10279 /* The GNU C library defines this for functions which it implements
10280     to always fail with ENOSYS.  Some functions are actually named
10281     something starting with __ and the normal name is an alias.  */
10282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10283 choke me
10284 #else
10285 $ac_func();
10286 #endif
10287
10288 ; return 0; }
10289 EOF
10290 if { (eval echo configure:10291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10291   rm -rf conftest*
10292   eval "ac_cv_func_$ac_func=yes"
10293 else
10294   echo "configure: failed program was:" >&5
10295   cat conftest.$ac_ext >&5
10296   rm -rf conftest*
10297   eval "ac_cv_func_$ac_func=no"
10298 fi
10299 rm -f conftest*
10300 fi
10301
10302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10303   echo "$ac_t""yes" 1>&6
10304     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10305   cat >> confdefs.h <<EOF
10306 #define $ac_tr_func 1
10307 EOF
10308  
10309 else
10310   echo "$ac_t""no" 1>&6
10311 fi
10312 done
10313     
10314     fi
10315   fi
10316
10317   
10318   
10319   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
10320 echo "configure:10321: checking for frexpf declaration" >&5
10321   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
10322     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
10323   echo $ac_n "(cached) $ac_c" 1>&6
10324 else
10325   
10326       
10327       ac_ext=C
10328 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10329 ac_cpp='$CXXCPP $CPPFLAGS'
10330 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10331 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10332 cross_compiling=$ac_cv_prog_cxx_cross
10333
10334       cat > conftest.$ac_ext <<EOF
10335 #line 10336 "configure"
10336 #include "confdefs.h"
10337 #include <math.h>
10338 int main() {
10339  frexpf(0, 0);
10340 ; return 0; }
10341 EOF
10342 if { (eval echo configure:10343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10343   rm -rf conftest*
10344   glibcpp_cv_func_frexpf_use=yes
10345 else
10346   echo "configure: failed program was:" >&5
10347   cat conftest.$ac_ext >&5
10348   rm -rf conftest*
10349   glibcpp_cv_func_frexpf_use=no
10350 fi
10351 rm -f conftest*
10352       ac_ext=c
10353 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10354 ac_cpp='$CPP $CPPFLAGS'
10355 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10356 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10357 cross_compiling=$ac_cv_prog_cc_cross
10358
10359     
10360 fi
10361
10362   fi
10363   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
10364
10365   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
10366     for ac_func in frexpf
10367 do
10368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10369 echo "configure:10370: checking for $ac_func" >&5
10370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10371   echo $ac_n "(cached) $ac_c" 1>&6
10372 else
10373   cat > conftest.$ac_ext <<EOF
10374 #line 10375 "configure"
10375 #include "confdefs.h"
10376 /* System header to define __stub macros and hopefully few prototypes,
10377     which can conflict with char $ac_func(); below.  */
10378 #include <assert.h>
10379 /* Override any gcc2 internal prototype to avoid an error.  */
10380 /* We use char because int might match the return type of a gcc2
10381     builtin and then its argument prototype would still apply.  */
10382 char $ac_func();
10383
10384 int main() {
10385
10386 /* The GNU C library defines this for functions which it implements
10387     to always fail with ENOSYS.  Some functions are actually named
10388     something starting with __ and the normal name is an alias.  */
10389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10390 choke me
10391 #else
10392 $ac_func();
10393 #endif
10394
10395 ; return 0; }
10396 EOF
10397 if { (eval echo configure:10398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10398   rm -rf conftest*
10399   eval "ac_cv_func_$ac_func=yes"
10400 else
10401   echo "configure: failed program was:" >&5
10402   cat conftest.$ac_ext >&5
10403   rm -rf conftest*
10404   eval "ac_cv_func_$ac_func=no"
10405 fi
10406 rm -f conftest*
10407 fi
10408
10409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10410   echo "$ac_t""yes" 1>&6
10411     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10412   cat >> confdefs.h <<EOF
10413 #define $ac_tr_func 1
10414 EOF
10415  
10416 else
10417   echo "$ac_t""no" 1>&6
10418 fi
10419 done
10420     
10421   else
10422     
10423   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
10424 echo "configure:10425: checking for _frexpf declaration" >&5
10425   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
10426     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
10427   echo $ac_n "(cached) $ac_c" 1>&6
10428 else
10429   
10430       
10431       ac_ext=C
10432 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10433 ac_cpp='$CXXCPP $CPPFLAGS'
10434 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10435 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10436 cross_compiling=$ac_cv_prog_cxx_cross
10437
10438       cat > conftest.$ac_ext <<EOF
10439 #line 10440 "configure"
10440 #include "confdefs.h"
10441 #include <math.h>
10442 int main() {
10443  _frexpf(0, 0);
10444 ; return 0; }
10445 EOF
10446 if { (eval echo configure:10447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10447   rm -rf conftest*
10448   glibcpp_cv_func__frexpf_use=yes
10449 else
10450   echo "configure: failed program was:" >&5
10451   cat conftest.$ac_ext >&5
10452   rm -rf conftest*
10453   glibcpp_cv_func__frexpf_use=no
10454 fi
10455 rm -f conftest*
10456       ac_ext=c
10457 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10458 ac_cpp='$CPP $CPPFLAGS'
10459 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10460 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10461 cross_compiling=$ac_cv_prog_cc_cross
10462
10463     
10464 fi
10465
10466   fi
10467   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
10468
10469     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
10470       for ac_func in _frexpf
10471 do
10472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10473 echo "configure:10474: checking for $ac_func" >&5
10474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10475   echo $ac_n "(cached) $ac_c" 1>&6
10476 else
10477   cat > conftest.$ac_ext <<EOF
10478 #line 10479 "configure"
10479 #include "confdefs.h"
10480 /* System header to define __stub macros and hopefully few prototypes,
10481     which can conflict with char $ac_func(); below.  */
10482 #include <assert.h>
10483 /* Override any gcc2 internal prototype to avoid an error.  */
10484 /* We use char because int might match the return type of a gcc2
10485     builtin and then its argument prototype would still apply.  */
10486 char $ac_func();
10487
10488 int main() {
10489
10490 /* The GNU C library defines this for functions which it implements
10491     to always fail with ENOSYS.  Some functions are actually named
10492     something starting with __ and the normal name is an alias.  */
10493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10494 choke me
10495 #else
10496 $ac_func();
10497 #endif
10498
10499 ; return 0; }
10500 EOF
10501 if { (eval echo configure:10502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10502   rm -rf conftest*
10503   eval "ac_cv_func_$ac_func=yes"
10504 else
10505   echo "configure: failed program was:" >&5
10506   cat conftest.$ac_ext >&5
10507   rm -rf conftest*
10508   eval "ac_cv_func_$ac_func=no"
10509 fi
10510 rm -f conftest*
10511 fi
10512
10513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10514   echo "$ac_t""yes" 1>&6
10515     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10516   cat >> confdefs.h <<EOF
10517 #define $ac_tr_func 1
10518 EOF
10519  
10520 else
10521   echo "$ac_t""no" 1>&6
10522 fi
10523 done
10524     
10525     fi
10526   fi
10527
10528   
10529   
10530   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
10531 echo "configure:10532: checking for hypotf declaration" >&5
10532   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
10533     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
10534   echo $ac_n "(cached) $ac_c" 1>&6
10535 else
10536   
10537       
10538       ac_ext=C
10539 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10540 ac_cpp='$CXXCPP $CPPFLAGS'
10541 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10542 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10543 cross_compiling=$ac_cv_prog_cxx_cross
10544
10545       cat > conftest.$ac_ext <<EOF
10546 #line 10547 "configure"
10547 #include "confdefs.h"
10548 #include <math.h>
10549 int main() {
10550  hypotf(0, 0);
10551 ; return 0; }
10552 EOF
10553 if { (eval echo configure:10554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10554   rm -rf conftest*
10555   glibcpp_cv_func_hypotf_use=yes
10556 else
10557   echo "configure: failed program was:" >&5
10558   cat conftest.$ac_ext >&5
10559   rm -rf conftest*
10560   glibcpp_cv_func_hypotf_use=no
10561 fi
10562 rm -f conftest*
10563       ac_ext=c
10564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10565 ac_cpp='$CPP $CPPFLAGS'
10566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10568 cross_compiling=$ac_cv_prog_cc_cross
10569
10570     
10571 fi
10572
10573   fi
10574   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
10575
10576   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
10577     for ac_func in hypotf
10578 do
10579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10580 echo "configure:10581: checking for $ac_func" >&5
10581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10582   echo $ac_n "(cached) $ac_c" 1>&6
10583 else
10584   cat > conftest.$ac_ext <<EOF
10585 #line 10586 "configure"
10586 #include "confdefs.h"
10587 /* System header to define __stub macros and hopefully few prototypes,
10588     which can conflict with char $ac_func(); below.  */
10589 #include <assert.h>
10590 /* Override any gcc2 internal prototype to avoid an error.  */
10591 /* We use char because int might match the return type of a gcc2
10592     builtin and then its argument prototype would still apply.  */
10593 char $ac_func();
10594
10595 int main() {
10596
10597 /* The GNU C library defines this for functions which it implements
10598     to always fail with ENOSYS.  Some functions are actually named
10599     something starting with __ and the normal name is an alias.  */
10600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10601 choke me
10602 #else
10603 $ac_func();
10604 #endif
10605
10606 ; return 0; }
10607 EOF
10608 if { (eval echo configure:10609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10609   rm -rf conftest*
10610   eval "ac_cv_func_$ac_func=yes"
10611 else
10612   echo "configure: failed program was:" >&5
10613   cat conftest.$ac_ext >&5
10614   rm -rf conftest*
10615   eval "ac_cv_func_$ac_func=no"
10616 fi
10617 rm -f conftest*
10618 fi
10619
10620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10621   echo "$ac_t""yes" 1>&6
10622     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10623   cat >> confdefs.h <<EOF
10624 #define $ac_tr_func 1
10625 EOF
10626  
10627 else
10628   echo "$ac_t""no" 1>&6
10629 fi
10630 done
10631     
10632   else
10633     
10634   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
10635 echo "configure:10636: checking for _hypotf declaration" >&5
10636   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
10637     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
10638   echo $ac_n "(cached) $ac_c" 1>&6
10639 else
10640   
10641       
10642       ac_ext=C
10643 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10644 ac_cpp='$CXXCPP $CPPFLAGS'
10645 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10646 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10647 cross_compiling=$ac_cv_prog_cxx_cross
10648
10649       cat > conftest.$ac_ext <<EOF
10650 #line 10651 "configure"
10651 #include "confdefs.h"
10652 #include <math.h>
10653 int main() {
10654  _hypotf(0, 0);
10655 ; return 0; }
10656 EOF
10657 if { (eval echo configure:10658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10658   rm -rf conftest*
10659   glibcpp_cv_func__hypotf_use=yes
10660 else
10661   echo "configure: failed program was:" >&5
10662   cat conftest.$ac_ext >&5
10663   rm -rf conftest*
10664   glibcpp_cv_func__hypotf_use=no
10665 fi
10666 rm -f conftest*
10667       ac_ext=c
10668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10669 ac_cpp='$CPP $CPPFLAGS'
10670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10672 cross_compiling=$ac_cv_prog_cc_cross
10673
10674     
10675 fi
10676
10677   fi
10678   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
10679
10680     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
10681       for ac_func in _hypotf
10682 do
10683 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10684 echo "configure:10685: checking for $ac_func" >&5
10685 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10686   echo $ac_n "(cached) $ac_c" 1>&6
10687 else
10688   cat > conftest.$ac_ext <<EOF
10689 #line 10690 "configure"
10690 #include "confdefs.h"
10691 /* System header to define __stub macros and hopefully few prototypes,
10692     which can conflict with char $ac_func(); below.  */
10693 #include <assert.h>
10694 /* Override any gcc2 internal prototype to avoid an error.  */
10695 /* We use char because int might match the return type of a gcc2
10696     builtin and then its argument prototype would still apply.  */
10697 char $ac_func();
10698
10699 int main() {
10700
10701 /* The GNU C library defines this for functions which it implements
10702     to always fail with ENOSYS.  Some functions are actually named
10703     something starting with __ and the normal name is an alias.  */
10704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10705 choke me
10706 #else
10707 $ac_func();
10708 #endif
10709
10710 ; return 0; }
10711 EOF
10712 if { (eval echo configure:10713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10713   rm -rf conftest*
10714   eval "ac_cv_func_$ac_func=yes"
10715 else
10716   echo "configure: failed program was:" >&5
10717   cat conftest.$ac_ext >&5
10718   rm -rf conftest*
10719   eval "ac_cv_func_$ac_func=no"
10720 fi
10721 rm -f conftest*
10722 fi
10723
10724 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10725   echo "$ac_t""yes" 1>&6
10726     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10727   cat >> confdefs.h <<EOF
10728 #define $ac_tr_func 1
10729 EOF
10730  
10731 else
10732   echo "$ac_t""no" 1>&6
10733 fi
10734 done
10735     
10736     fi
10737   fi
10738
10739   
10740   
10741   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
10742 echo "configure:10743: checking for ldexpf declaration" >&5
10743   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
10744     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
10745   echo $ac_n "(cached) $ac_c" 1>&6
10746 else
10747   
10748       
10749       ac_ext=C
10750 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10751 ac_cpp='$CXXCPP $CPPFLAGS'
10752 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10753 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10754 cross_compiling=$ac_cv_prog_cxx_cross
10755
10756       cat > conftest.$ac_ext <<EOF
10757 #line 10758 "configure"
10758 #include "confdefs.h"
10759 #include <math.h>
10760 int main() {
10761  ldexpf(0, 0);
10762 ; return 0; }
10763 EOF
10764 if { (eval echo configure:10765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10765   rm -rf conftest*
10766   glibcpp_cv_func_ldexpf_use=yes
10767 else
10768   echo "configure: failed program was:" >&5
10769   cat conftest.$ac_ext >&5
10770   rm -rf conftest*
10771   glibcpp_cv_func_ldexpf_use=no
10772 fi
10773 rm -f conftest*
10774       ac_ext=c
10775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10776 ac_cpp='$CPP $CPPFLAGS'
10777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10779 cross_compiling=$ac_cv_prog_cc_cross
10780
10781     
10782 fi
10783
10784   fi
10785   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
10786
10787   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
10788     for ac_func in ldexpf
10789 do
10790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10791 echo "configure:10792: checking for $ac_func" >&5
10792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10793   echo $ac_n "(cached) $ac_c" 1>&6
10794 else
10795   cat > conftest.$ac_ext <<EOF
10796 #line 10797 "configure"
10797 #include "confdefs.h"
10798 /* System header to define __stub macros and hopefully few prototypes,
10799     which can conflict with char $ac_func(); below.  */
10800 #include <assert.h>
10801 /* Override any gcc2 internal prototype to avoid an error.  */
10802 /* We use char because int might match the return type of a gcc2
10803     builtin and then its argument prototype would still apply.  */
10804 char $ac_func();
10805
10806 int main() {
10807
10808 /* The GNU C library defines this for functions which it implements
10809     to always fail with ENOSYS.  Some functions are actually named
10810     something starting with __ and the normal name is an alias.  */
10811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10812 choke me
10813 #else
10814 $ac_func();
10815 #endif
10816
10817 ; return 0; }
10818 EOF
10819 if { (eval echo configure:10820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10820   rm -rf conftest*
10821   eval "ac_cv_func_$ac_func=yes"
10822 else
10823   echo "configure: failed program was:" >&5
10824   cat conftest.$ac_ext >&5
10825   rm -rf conftest*
10826   eval "ac_cv_func_$ac_func=no"
10827 fi
10828 rm -f conftest*
10829 fi
10830
10831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10832   echo "$ac_t""yes" 1>&6
10833     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10834   cat >> confdefs.h <<EOF
10835 #define $ac_tr_func 1
10836 EOF
10837  
10838 else
10839   echo "$ac_t""no" 1>&6
10840 fi
10841 done
10842     
10843   else
10844     
10845   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
10846 echo "configure:10847: checking for _ldexpf declaration" >&5
10847   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
10848     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
10849   echo $ac_n "(cached) $ac_c" 1>&6
10850 else
10851   
10852       
10853       ac_ext=C
10854 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10855 ac_cpp='$CXXCPP $CPPFLAGS'
10856 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10857 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10858 cross_compiling=$ac_cv_prog_cxx_cross
10859
10860       cat > conftest.$ac_ext <<EOF
10861 #line 10862 "configure"
10862 #include "confdefs.h"
10863 #include <math.h>
10864 int main() {
10865  _ldexpf(0, 0);
10866 ; return 0; }
10867 EOF
10868 if { (eval echo configure:10869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10869   rm -rf conftest*
10870   glibcpp_cv_func__ldexpf_use=yes
10871 else
10872   echo "configure: failed program was:" >&5
10873   cat conftest.$ac_ext >&5
10874   rm -rf conftest*
10875   glibcpp_cv_func__ldexpf_use=no
10876 fi
10877 rm -f conftest*
10878       ac_ext=c
10879 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10880 ac_cpp='$CPP $CPPFLAGS'
10881 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10882 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10883 cross_compiling=$ac_cv_prog_cc_cross
10884
10885     
10886 fi
10887
10888   fi
10889   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
10890
10891     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
10892       for ac_func in _ldexpf
10893 do
10894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10895 echo "configure:10896: checking for $ac_func" >&5
10896 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10897   echo $ac_n "(cached) $ac_c" 1>&6
10898 else
10899   cat > conftest.$ac_ext <<EOF
10900 #line 10901 "configure"
10901 #include "confdefs.h"
10902 /* System header to define __stub macros and hopefully few prototypes,
10903     which can conflict with char $ac_func(); below.  */
10904 #include <assert.h>
10905 /* Override any gcc2 internal prototype to avoid an error.  */
10906 /* We use char because int might match the return type of a gcc2
10907     builtin and then its argument prototype would still apply.  */
10908 char $ac_func();
10909
10910 int main() {
10911
10912 /* The GNU C library defines this for functions which it implements
10913     to always fail with ENOSYS.  Some functions are actually named
10914     something starting with __ and the normal name is an alias.  */
10915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10916 choke me
10917 #else
10918 $ac_func();
10919 #endif
10920
10921 ; return 0; }
10922 EOF
10923 if { (eval echo configure:10924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10924   rm -rf conftest*
10925   eval "ac_cv_func_$ac_func=yes"
10926 else
10927   echo "configure: failed program was:" >&5
10928   cat conftest.$ac_ext >&5
10929   rm -rf conftest*
10930   eval "ac_cv_func_$ac_func=no"
10931 fi
10932 rm -f conftest*
10933 fi
10934
10935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10936   echo "$ac_t""yes" 1>&6
10937     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10938   cat >> confdefs.h <<EOF
10939 #define $ac_tr_func 1
10940 EOF
10941  
10942 else
10943   echo "$ac_t""no" 1>&6
10944 fi
10945 done
10946     
10947     fi
10948   fi
10949
10950   
10951   
10952   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
10953 echo "configure:10954: checking for logf declaration" >&5
10954   if test x${glibcpp_cv_func_logf_use+set} != xset; then
10955     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
10956   echo $ac_n "(cached) $ac_c" 1>&6
10957 else
10958   
10959       
10960       ac_ext=C
10961 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10962 ac_cpp='$CXXCPP $CPPFLAGS'
10963 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10964 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10965 cross_compiling=$ac_cv_prog_cxx_cross
10966
10967       cat > conftest.$ac_ext <<EOF
10968 #line 10969 "configure"
10969 #include "confdefs.h"
10970 #include <math.h>
10971                       #ifdef HAVE_IEEEFP_H
10972                       #include <ieeefp.h>
10973                       #endif
10974                      
10975 int main() {
10976  logf(0);
10977 ; return 0; }
10978 EOF
10979 if { (eval echo configure:10980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10980   rm -rf conftest*
10981   glibcpp_cv_func_logf_use=yes
10982 else
10983   echo "configure: failed program was:" >&5
10984   cat conftest.$ac_ext >&5
10985   rm -rf conftest*
10986   glibcpp_cv_func_logf_use=no
10987 fi
10988 rm -f conftest*
10989       ac_ext=c
10990 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10991 ac_cpp='$CPP $CPPFLAGS'
10992 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10993 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10994 cross_compiling=$ac_cv_prog_cc_cross
10995
10996     
10997 fi
10998
10999   fi
11000   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
11001
11002   if test x$glibcpp_cv_func_logf_use = x"yes"; then
11003     for ac_func in logf
11004 do
11005 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11006 echo "configure:11007: checking for $ac_func" >&5
11007 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11008   echo $ac_n "(cached) $ac_c" 1>&6
11009 else
11010   cat > conftest.$ac_ext <<EOF
11011 #line 11012 "configure"
11012 #include "confdefs.h"
11013 /* System header to define __stub macros and hopefully few prototypes,
11014     which can conflict with char $ac_func(); below.  */
11015 #include <assert.h>
11016 /* Override any gcc2 internal prototype to avoid an error.  */
11017 /* We use char because int might match the return type of a gcc2
11018     builtin and then its argument prototype would still apply.  */
11019 char $ac_func();
11020
11021 int main() {
11022
11023 /* The GNU C library defines this for functions which it implements
11024     to always fail with ENOSYS.  Some functions are actually named
11025     something starting with __ and the normal name is an alias.  */
11026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11027 choke me
11028 #else
11029 $ac_func();
11030 #endif
11031
11032 ; return 0; }
11033 EOF
11034 if { (eval echo configure:11035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11035   rm -rf conftest*
11036   eval "ac_cv_func_$ac_func=yes"
11037 else
11038   echo "configure: failed program was:" >&5
11039   cat conftest.$ac_ext >&5
11040   rm -rf conftest*
11041   eval "ac_cv_func_$ac_func=no"
11042 fi
11043 rm -f conftest*
11044 fi
11045
11046 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11047   echo "$ac_t""yes" 1>&6
11048     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11049   cat >> confdefs.h <<EOF
11050 #define $ac_tr_func 1
11051 EOF
11052  
11053 else
11054   echo "$ac_t""no" 1>&6
11055 fi
11056 done
11057     
11058   else
11059     
11060   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
11061 echo "configure:11062: checking for _logf declaration" >&5
11062   if test x${glibcpp_cv_func__logf_use+set} != xset; then
11063     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
11064   echo $ac_n "(cached) $ac_c" 1>&6
11065 else
11066   
11067       
11068       ac_ext=C
11069 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11070 ac_cpp='$CXXCPP $CPPFLAGS'
11071 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11072 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11073 cross_compiling=$ac_cv_prog_cxx_cross
11074
11075       cat > conftest.$ac_ext <<EOF
11076 #line 11077 "configure"
11077 #include "confdefs.h"
11078 #include <math.h>
11079                       #ifdef HAVE_IEEEFP_H
11080                       #include <ieeefp.h>
11081                       #endif
11082                      
11083 int main() {
11084  _logf(0);
11085 ; return 0; }
11086 EOF
11087 if { (eval echo configure:11088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11088   rm -rf conftest*
11089   glibcpp_cv_func__logf_use=yes
11090 else
11091   echo "configure: failed program was:" >&5
11092   cat conftest.$ac_ext >&5
11093   rm -rf conftest*
11094   glibcpp_cv_func__logf_use=no
11095 fi
11096 rm -f conftest*
11097       ac_ext=c
11098 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11099 ac_cpp='$CPP $CPPFLAGS'
11100 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11101 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11102 cross_compiling=$ac_cv_prog_cc_cross
11103
11104     
11105 fi
11106
11107   fi
11108   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
11109
11110     if test x$glibcpp_cv_func__logf_use = x"yes"; then
11111       for ac_func in _logf
11112 do
11113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11114 echo "configure:11115: checking for $ac_func" >&5
11115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11116   echo $ac_n "(cached) $ac_c" 1>&6
11117 else
11118   cat > conftest.$ac_ext <<EOF
11119 #line 11120 "configure"
11120 #include "confdefs.h"
11121 /* System header to define __stub macros and hopefully few prototypes,
11122     which can conflict with char $ac_func(); below.  */
11123 #include <assert.h>
11124 /* Override any gcc2 internal prototype to avoid an error.  */
11125 /* We use char because int might match the return type of a gcc2
11126     builtin and then its argument prototype would still apply.  */
11127 char $ac_func();
11128
11129 int main() {
11130
11131 /* The GNU C library defines this for functions which it implements
11132     to always fail with ENOSYS.  Some functions are actually named
11133     something starting with __ and the normal name is an alias.  */
11134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11135 choke me
11136 #else
11137 $ac_func();
11138 #endif
11139
11140 ; return 0; }
11141 EOF
11142 if { (eval echo configure:11143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11143   rm -rf conftest*
11144   eval "ac_cv_func_$ac_func=yes"
11145 else
11146   echo "configure: failed program was:" >&5
11147   cat conftest.$ac_ext >&5
11148   rm -rf conftest*
11149   eval "ac_cv_func_$ac_func=no"
11150 fi
11151 rm -f conftest*
11152 fi
11153
11154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11155   echo "$ac_t""yes" 1>&6
11156     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11157   cat >> confdefs.h <<EOF
11158 #define $ac_tr_func 1
11159 EOF
11160  
11161 else
11162   echo "$ac_t""no" 1>&6
11163 fi
11164 done
11165     
11166     fi
11167   fi
11168
11169   
11170   
11171   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
11172 echo "configure:11173: checking for log10f declaration" >&5
11173   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
11174     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
11175   echo $ac_n "(cached) $ac_c" 1>&6
11176 else
11177   
11178       
11179       ac_ext=C
11180 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11181 ac_cpp='$CXXCPP $CPPFLAGS'
11182 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11183 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11184 cross_compiling=$ac_cv_prog_cxx_cross
11185
11186       cat > conftest.$ac_ext <<EOF
11187 #line 11188 "configure"
11188 #include "confdefs.h"
11189 #include <math.h>
11190                       #ifdef HAVE_IEEEFP_H
11191                       #include <ieeefp.h>
11192                       #endif
11193                      
11194 int main() {
11195  log10f(0);
11196 ; return 0; }
11197 EOF
11198 if { (eval echo configure:11199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11199   rm -rf conftest*
11200   glibcpp_cv_func_log10f_use=yes
11201 else
11202   echo "configure: failed program was:" >&5
11203   cat conftest.$ac_ext >&5
11204   rm -rf conftest*
11205   glibcpp_cv_func_log10f_use=no
11206 fi
11207 rm -f conftest*
11208       ac_ext=c
11209 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11210 ac_cpp='$CPP $CPPFLAGS'
11211 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11212 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11213 cross_compiling=$ac_cv_prog_cc_cross
11214
11215     
11216 fi
11217
11218   fi
11219   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
11220
11221   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
11222     for ac_func in log10f
11223 do
11224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11225 echo "configure:11226: checking for $ac_func" >&5
11226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11227   echo $ac_n "(cached) $ac_c" 1>&6
11228 else
11229   cat > conftest.$ac_ext <<EOF
11230 #line 11231 "configure"
11231 #include "confdefs.h"
11232 /* System header to define __stub macros and hopefully few prototypes,
11233     which can conflict with char $ac_func(); below.  */
11234 #include <assert.h>
11235 /* Override any gcc2 internal prototype to avoid an error.  */
11236 /* We use char because int might match the return type of a gcc2
11237     builtin and then its argument prototype would still apply.  */
11238 char $ac_func();
11239
11240 int main() {
11241
11242 /* The GNU C library defines this for functions which it implements
11243     to always fail with ENOSYS.  Some functions are actually named
11244     something starting with __ and the normal name is an alias.  */
11245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11246 choke me
11247 #else
11248 $ac_func();
11249 #endif
11250
11251 ; return 0; }
11252 EOF
11253 if { (eval echo configure:11254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11254   rm -rf conftest*
11255   eval "ac_cv_func_$ac_func=yes"
11256 else
11257   echo "configure: failed program was:" >&5
11258   cat conftest.$ac_ext >&5
11259   rm -rf conftest*
11260   eval "ac_cv_func_$ac_func=no"
11261 fi
11262 rm -f conftest*
11263 fi
11264
11265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11266   echo "$ac_t""yes" 1>&6
11267     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11268   cat >> confdefs.h <<EOF
11269 #define $ac_tr_func 1
11270 EOF
11271  
11272 else
11273   echo "$ac_t""no" 1>&6
11274 fi
11275 done
11276     
11277   else
11278     
11279   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
11280 echo "configure:11281: checking for _log10f declaration" >&5
11281   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
11282     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
11283   echo $ac_n "(cached) $ac_c" 1>&6
11284 else
11285   
11286       
11287       ac_ext=C
11288 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11289 ac_cpp='$CXXCPP $CPPFLAGS'
11290 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11291 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11292 cross_compiling=$ac_cv_prog_cxx_cross
11293
11294       cat > conftest.$ac_ext <<EOF
11295 #line 11296 "configure"
11296 #include "confdefs.h"
11297 #include <math.h>
11298                       #ifdef HAVE_IEEEFP_H
11299                       #include <ieeefp.h>
11300                       #endif
11301                      
11302 int main() {
11303  _log10f(0);
11304 ; return 0; }
11305 EOF
11306 if { (eval echo configure:11307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11307   rm -rf conftest*
11308   glibcpp_cv_func__log10f_use=yes
11309 else
11310   echo "configure: failed program was:" >&5
11311   cat conftest.$ac_ext >&5
11312   rm -rf conftest*
11313   glibcpp_cv_func__log10f_use=no
11314 fi
11315 rm -f conftest*
11316       ac_ext=c
11317 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11318 ac_cpp='$CPP $CPPFLAGS'
11319 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11320 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11321 cross_compiling=$ac_cv_prog_cc_cross
11322
11323     
11324 fi
11325
11326   fi
11327   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
11328
11329     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
11330       for ac_func in _log10f
11331 do
11332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11333 echo "configure:11334: checking for $ac_func" >&5
11334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11335   echo $ac_n "(cached) $ac_c" 1>&6
11336 else
11337   cat > conftest.$ac_ext <<EOF
11338 #line 11339 "configure"
11339 #include "confdefs.h"
11340 /* System header to define __stub macros and hopefully few prototypes,
11341     which can conflict with char $ac_func(); below.  */
11342 #include <assert.h>
11343 /* Override any gcc2 internal prototype to avoid an error.  */
11344 /* We use char because int might match the return type of a gcc2
11345     builtin and then its argument prototype would still apply.  */
11346 char $ac_func();
11347
11348 int main() {
11349
11350 /* The GNU C library defines this for functions which it implements
11351     to always fail with ENOSYS.  Some functions are actually named
11352     something starting with __ and the normal name is an alias.  */
11353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11354 choke me
11355 #else
11356 $ac_func();
11357 #endif
11358
11359 ; return 0; }
11360 EOF
11361 if { (eval echo configure:11362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11362   rm -rf conftest*
11363   eval "ac_cv_func_$ac_func=yes"
11364 else
11365   echo "configure: failed program was:" >&5
11366   cat conftest.$ac_ext >&5
11367   rm -rf conftest*
11368   eval "ac_cv_func_$ac_func=no"
11369 fi
11370 rm -f conftest*
11371 fi
11372
11373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11374   echo "$ac_t""yes" 1>&6
11375     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11376   cat >> confdefs.h <<EOF
11377 #define $ac_tr_func 1
11378 EOF
11379  
11380 else
11381   echo "$ac_t""no" 1>&6
11382 fi
11383 done
11384     
11385     fi
11386   fi
11387
11388   
11389   
11390   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
11391 echo "configure:11392: checking for modff declaration" >&5
11392   if test x${glibcpp_cv_func_modff_use+set} != xset; then
11393     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
11394   echo $ac_n "(cached) $ac_c" 1>&6
11395 else
11396   
11397       
11398       ac_ext=C
11399 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11400 ac_cpp='$CXXCPP $CPPFLAGS'
11401 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11402 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11403 cross_compiling=$ac_cv_prog_cxx_cross
11404
11405       cat > conftest.$ac_ext <<EOF
11406 #line 11407 "configure"
11407 #include "confdefs.h"
11408 #include <math.h>
11409 int main() {
11410  modff(0, 0);
11411 ; return 0; }
11412 EOF
11413 if { (eval echo configure:11414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11414   rm -rf conftest*
11415   glibcpp_cv_func_modff_use=yes
11416 else
11417   echo "configure: failed program was:" >&5
11418   cat conftest.$ac_ext >&5
11419   rm -rf conftest*
11420   glibcpp_cv_func_modff_use=no
11421 fi
11422 rm -f conftest*
11423       ac_ext=c
11424 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11425 ac_cpp='$CPP $CPPFLAGS'
11426 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11427 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11428 cross_compiling=$ac_cv_prog_cc_cross
11429
11430     
11431 fi
11432
11433   fi
11434   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
11435
11436   if test x$glibcpp_cv_func_modff_use = x"yes"; then
11437     for ac_func in modff
11438 do
11439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11440 echo "configure:11441: checking for $ac_func" >&5
11441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11442   echo $ac_n "(cached) $ac_c" 1>&6
11443 else
11444   cat > conftest.$ac_ext <<EOF
11445 #line 11446 "configure"
11446 #include "confdefs.h"
11447 /* System header to define __stub macros and hopefully few prototypes,
11448     which can conflict with char $ac_func(); below.  */
11449 #include <assert.h>
11450 /* Override any gcc2 internal prototype to avoid an error.  */
11451 /* We use char because int might match the return type of a gcc2
11452     builtin and then its argument prototype would still apply.  */
11453 char $ac_func();
11454
11455 int main() {
11456
11457 /* The GNU C library defines this for functions which it implements
11458     to always fail with ENOSYS.  Some functions are actually named
11459     something starting with __ and the normal name is an alias.  */
11460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11461 choke me
11462 #else
11463 $ac_func();
11464 #endif
11465
11466 ; return 0; }
11467 EOF
11468 if { (eval echo configure:11469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11469   rm -rf conftest*
11470   eval "ac_cv_func_$ac_func=yes"
11471 else
11472   echo "configure: failed program was:" >&5
11473   cat conftest.$ac_ext >&5
11474   rm -rf conftest*
11475   eval "ac_cv_func_$ac_func=no"
11476 fi
11477 rm -f conftest*
11478 fi
11479
11480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11481   echo "$ac_t""yes" 1>&6
11482     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11483   cat >> confdefs.h <<EOF
11484 #define $ac_tr_func 1
11485 EOF
11486  
11487 else
11488   echo "$ac_t""no" 1>&6
11489 fi
11490 done
11491     
11492   else
11493     
11494   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
11495 echo "configure:11496: checking for _modff declaration" >&5
11496   if test x${glibcpp_cv_func__modff_use+set} != xset; then
11497     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
11498   echo $ac_n "(cached) $ac_c" 1>&6
11499 else
11500   
11501       
11502       ac_ext=C
11503 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11504 ac_cpp='$CXXCPP $CPPFLAGS'
11505 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11506 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11507 cross_compiling=$ac_cv_prog_cxx_cross
11508
11509       cat > conftest.$ac_ext <<EOF
11510 #line 11511 "configure"
11511 #include "confdefs.h"
11512 #include <math.h>
11513 int main() {
11514  _modff(0, 0);
11515 ; return 0; }
11516 EOF
11517 if { (eval echo configure:11518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11518   rm -rf conftest*
11519   glibcpp_cv_func__modff_use=yes
11520 else
11521   echo "configure: failed program was:" >&5
11522   cat conftest.$ac_ext >&5
11523   rm -rf conftest*
11524   glibcpp_cv_func__modff_use=no
11525 fi
11526 rm -f conftest*
11527       ac_ext=c
11528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11529 ac_cpp='$CPP $CPPFLAGS'
11530 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11531 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11532 cross_compiling=$ac_cv_prog_cc_cross
11533
11534     
11535 fi
11536
11537   fi
11538   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
11539
11540     if test x$glibcpp_cv_func__modff_use = x"yes"; then
11541       for ac_func in _modff
11542 do
11543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11544 echo "configure:11545: checking for $ac_func" >&5
11545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11546   echo $ac_n "(cached) $ac_c" 1>&6
11547 else
11548   cat > conftest.$ac_ext <<EOF
11549 #line 11550 "configure"
11550 #include "confdefs.h"
11551 /* System header to define __stub macros and hopefully few prototypes,
11552     which can conflict with char $ac_func(); below.  */
11553 #include <assert.h>
11554 /* Override any gcc2 internal prototype to avoid an error.  */
11555 /* We use char because int might match the return type of a gcc2
11556     builtin and then its argument prototype would still apply.  */
11557 char $ac_func();
11558
11559 int main() {
11560
11561 /* The GNU C library defines this for functions which it implements
11562     to always fail with ENOSYS.  Some functions are actually named
11563     something starting with __ and the normal name is an alias.  */
11564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11565 choke me
11566 #else
11567 $ac_func();
11568 #endif
11569
11570 ; return 0; }
11571 EOF
11572 if { (eval echo configure:11573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11573   rm -rf conftest*
11574   eval "ac_cv_func_$ac_func=yes"
11575 else
11576   echo "configure: failed program was:" >&5
11577   cat conftest.$ac_ext >&5
11578   rm -rf conftest*
11579   eval "ac_cv_func_$ac_func=no"
11580 fi
11581 rm -f conftest*
11582 fi
11583
11584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11585   echo "$ac_t""yes" 1>&6
11586     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11587   cat >> confdefs.h <<EOF
11588 #define $ac_tr_func 1
11589 EOF
11590  
11591 else
11592   echo "$ac_t""no" 1>&6
11593 fi
11594 done
11595     
11596     fi
11597   fi
11598
11599   
11600   
11601   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
11602 echo "configure:11603: checking for powf declaration" >&5
11603   if test x${glibcpp_cv_func_powf_use+set} != xset; then
11604     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
11605   echo $ac_n "(cached) $ac_c" 1>&6
11606 else
11607   
11608       
11609       ac_ext=C
11610 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11611 ac_cpp='$CXXCPP $CPPFLAGS'
11612 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11613 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11614 cross_compiling=$ac_cv_prog_cxx_cross
11615
11616       cat > conftest.$ac_ext <<EOF
11617 #line 11618 "configure"
11618 #include "confdefs.h"
11619 #include <math.h>
11620 int main() {
11621  powf(0, 0);
11622 ; return 0; }
11623 EOF
11624 if { (eval echo configure:11625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11625   rm -rf conftest*
11626   glibcpp_cv_func_powf_use=yes
11627 else
11628   echo "configure: failed program was:" >&5
11629   cat conftest.$ac_ext >&5
11630   rm -rf conftest*
11631   glibcpp_cv_func_powf_use=no
11632 fi
11633 rm -f conftest*
11634       ac_ext=c
11635 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11636 ac_cpp='$CPP $CPPFLAGS'
11637 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11638 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11639 cross_compiling=$ac_cv_prog_cc_cross
11640
11641     
11642 fi
11643
11644   fi
11645   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
11646
11647   if test x$glibcpp_cv_func_powf_use = x"yes"; then
11648     for ac_func in powf
11649 do
11650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11651 echo "configure:11652: checking for $ac_func" >&5
11652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11653   echo $ac_n "(cached) $ac_c" 1>&6
11654 else
11655   cat > conftest.$ac_ext <<EOF
11656 #line 11657 "configure"
11657 #include "confdefs.h"
11658 /* System header to define __stub macros and hopefully few prototypes,
11659     which can conflict with char $ac_func(); below.  */
11660 #include <assert.h>
11661 /* Override any gcc2 internal prototype to avoid an error.  */
11662 /* We use char because int might match the return type of a gcc2
11663     builtin and then its argument prototype would still apply.  */
11664 char $ac_func();
11665
11666 int main() {
11667
11668 /* The GNU C library defines this for functions which it implements
11669     to always fail with ENOSYS.  Some functions are actually named
11670     something starting with __ and the normal name is an alias.  */
11671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11672 choke me
11673 #else
11674 $ac_func();
11675 #endif
11676
11677 ; return 0; }
11678 EOF
11679 if { (eval echo configure:11680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11680   rm -rf conftest*
11681   eval "ac_cv_func_$ac_func=yes"
11682 else
11683   echo "configure: failed program was:" >&5
11684   cat conftest.$ac_ext >&5
11685   rm -rf conftest*
11686   eval "ac_cv_func_$ac_func=no"
11687 fi
11688 rm -f conftest*
11689 fi
11690
11691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11692   echo "$ac_t""yes" 1>&6
11693     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11694   cat >> confdefs.h <<EOF
11695 #define $ac_tr_func 1
11696 EOF
11697  
11698 else
11699   echo "$ac_t""no" 1>&6
11700 fi
11701 done
11702     
11703   else
11704     
11705   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
11706 echo "configure:11707: checking for _powf declaration" >&5
11707   if test x${glibcpp_cv_func__powf_use+set} != xset; then
11708     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
11709   echo $ac_n "(cached) $ac_c" 1>&6
11710 else
11711   
11712       
11713       ac_ext=C
11714 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11715 ac_cpp='$CXXCPP $CPPFLAGS'
11716 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11717 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11718 cross_compiling=$ac_cv_prog_cxx_cross
11719
11720       cat > conftest.$ac_ext <<EOF
11721 #line 11722 "configure"
11722 #include "confdefs.h"
11723 #include <math.h>
11724 int main() {
11725  _powf(0, 0);
11726 ; return 0; }
11727 EOF
11728 if { (eval echo configure:11729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11729   rm -rf conftest*
11730   glibcpp_cv_func__powf_use=yes
11731 else
11732   echo "configure: failed program was:" >&5
11733   cat conftest.$ac_ext >&5
11734   rm -rf conftest*
11735   glibcpp_cv_func__powf_use=no
11736 fi
11737 rm -f conftest*
11738       ac_ext=c
11739 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11740 ac_cpp='$CPP $CPPFLAGS'
11741 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11742 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11743 cross_compiling=$ac_cv_prog_cc_cross
11744
11745     
11746 fi
11747
11748   fi
11749   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
11750
11751     if test x$glibcpp_cv_func__powf_use = x"yes"; then
11752       for ac_func in _powf
11753 do
11754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11755 echo "configure:11756: checking for $ac_func" >&5
11756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11757   echo $ac_n "(cached) $ac_c" 1>&6
11758 else
11759   cat > conftest.$ac_ext <<EOF
11760 #line 11761 "configure"
11761 #include "confdefs.h"
11762 /* System header to define __stub macros and hopefully few prototypes,
11763     which can conflict with char $ac_func(); below.  */
11764 #include <assert.h>
11765 /* Override any gcc2 internal prototype to avoid an error.  */
11766 /* We use char because int might match the return type of a gcc2
11767     builtin and then its argument prototype would still apply.  */
11768 char $ac_func();
11769
11770 int main() {
11771
11772 /* The GNU C library defines this for functions which it implements
11773     to always fail with ENOSYS.  Some functions are actually named
11774     something starting with __ and the normal name is an alias.  */
11775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11776 choke me
11777 #else
11778 $ac_func();
11779 #endif
11780
11781 ; return 0; }
11782 EOF
11783 if { (eval echo configure:11784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11784   rm -rf conftest*
11785   eval "ac_cv_func_$ac_func=yes"
11786 else
11787   echo "configure: failed program was:" >&5
11788   cat conftest.$ac_ext >&5
11789   rm -rf conftest*
11790   eval "ac_cv_func_$ac_func=no"
11791 fi
11792 rm -f conftest*
11793 fi
11794
11795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11796   echo "$ac_t""yes" 1>&6
11797     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11798   cat >> confdefs.h <<EOF
11799 #define $ac_tr_func 1
11800 EOF
11801  
11802 else
11803   echo "$ac_t""no" 1>&6
11804 fi
11805 done
11806     
11807     fi
11808   fi
11809
11810   
11811   
11812   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
11813 echo "configure:11814: checking for sqrtf declaration" >&5
11814   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
11815     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
11816   echo $ac_n "(cached) $ac_c" 1>&6
11817 else
11818   
11819       
11820       ac_ext=C
11821 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11822 ac_cpp='$CXXCPP $CPPFLAGS'
11823 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11824 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11825 cross_compiling=$ac_cv_prog_cxx_cross
11826
11827       cat > conftest.$ac_ext <<EOF
11828 #line 11829 "configure"
11829 #include "confdefs.h"
11830 #include <math.h>
11831                       #ifdef HAVE_IEEEFP_H
11832                       #include <ieeefp.h>
11833                       #endif
11834                      
11835 int main() {
11836  sqrtf(0);
11837 ; return 0; }
11838 EOF
11839 if { (eval echo configure:11840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11840   rm -rf conftest*
11841   glibcpp_cv_func_sqrtf_use=yes
11842 else
11843   echo "configure: failed program was:" >&5
11844   cat conftest.$ac_ext >&5
11845   rm -rf conftest*
11846   glibcpp_cv_func_sqrtf_use=no
11847 fi
11848 rm -f conftest*
11849       ac_ext=c
11850 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11851 ac_cpp='$CPP $CPPFLAGS'
11852 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11853 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11854 cross_compiling=$ac_cv_prog_cc_cross
11855
11856     
11857 fi
11858
11859   fi
11860   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
11861
11862   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
11863     for ac_func in sqrtf
11864 do
11865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11866 echo "configure:11867: checking for $ac_func" >&5
11867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11868   echo $ac_n "(cached) $ac_c" 1>&6
11869 else
11870   cat > conftest.$ac_ext <<EOF
11871 #line 11872 "configure"
11872 #include "confdefs.h"
11873 /* System header to define __stub macros and hopefully few prototypes,
11874     which can conflict with char $ac_func(); below.  */
11875 #include <assert.h>
11876 /* Override any gcc2 internal prototype to avoid an error.  */
11877 /* We use char because int might match the return type of a gcc2
11878     builtin and then its argument prototype would still apply.  */
11879 char $ac_func();
11880
11881 int main() {
11882
11883 /* The GNU C library defines this for functions which it implements
11884     to always fail with ENOSYS.  Some functions are actually named
11885     something starting with __ and the normal name is an alias.  */
11886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11887 choke me
11888 #else
11889 $ac_func();
11890 #endif
11891
11892 ; return 0; }
11893 EOF
11894 if { (eval echo configure:11895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11895   rm -rf conftest*
11896   eval "ac_cv_func_$ac_func=yes"
11897 else
11898   echo "configure: failed program was:" >&5
11899   cat conftest.$ac_ext >&5
11900   rm -rf conftest*
11901   eval "ac_cv_func_$ac_func=no"
11902 fi
11903 rm -f conftest*
11904 fi
11905
11906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11907   echo "$ac_t""yes" 1>&6
11908     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11909   cat >> confdefs.h <<EOF
11910 #define $ac_tr_func 1
11911 EOF
11912  
11913 else
11914   echo "$ac_t""no" 1>&6
11915 fi
11916 done
11917     
11918   else
11919     
11920   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
11921 echo "configure:11922: checking for _sqrtf declaration" >&5
11922   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
11923     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
11924   echo $ac_n "(cached) $ac_c" 1>&6
11925 else
11926   
11927       
11928       ac_ext=C
11929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11930 ac_cpp='$CXXCPP $CPPFLAGS'
11931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11933 cross_compiling=$ac_cv_prog_cxx_cross
11934
11935       cat > conftest.$ac_ext <<EOF
11936 #line 11937 "configure"
11937 #include "confdefs.h"
11938 #include <math.h>
11939                       #ifdef HAVE_IEEEFP_H
11940                       #include <ieeefp.h>
11941                       #endif
11942                      
11943 int main() {
11944  _sqrtf(0);
11945 ; return 0; }
11946 EOF
11947 if { (eval echo configure:11948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11948   rm -rf conftest*
11949   glibcpp_cv_func__sqrtf_use=yes
11950 else
11951   echo "configure: failed program was:" >&5
11952   cat conftest.$ac_ext >&5
11953   rm -rf conftest*
11954   glibcpp_cv_func__sqrtf_use=no
11955 fi
11956 rm -f conftest*
11957       ac_ext=c
11958 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11959 ac_cpp='$CPP $CPPFLAGS'
11960 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11961 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11962 cross_compiling=$ac_cv_prog_cc_cross
11963
11964     
11965 fi
11966
11967   fi
11968   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
11969
11970     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
11971       for ac_func in _sqrtf
11972 do
11973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11974 echo "configure:11975: checking for $ac_func" >&5
11975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11976   echo $ac_n "(cached) $ac_c" 1>&6
11977 else
11978   cat > conftest.$ac_ext <<EOF
11979 #line 11980 "configure"
11980 #include "confdefs.h"
11981 /* System header to define __stub macros and hopefully few prototypes,
11982     which can conflict with char $ac_func(); below.  */
11983 #include <assert.h>
11984 /* Override any gcc2 internal prototype to avoid an error.  */
11985 /* We use char because int might match the return type of a gcc2
11986     builtin and then its argument prototype would still apply.  */
11987 char $ac_func();
11988
11989 int main() {
11990
11991 /* The GNU C library defines this for functions which it implements
11992     to always fail with ENOSYS.  Some functions are actually named
11993     something starting with __ and the normal name is an alias.  */
11994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11995 choke me
11996 #else
11997 $ac_func();
11998 #endif
11999
12000 ; return 0; }
12001 EOF
12002 if { (eval echo configure:12003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12003   rm -rf conftest*
12004   eval "ac_cv_func_$ac_func=yes"
12005 else
12006   echo "configure: failed program was:" >&5
12007   cat conftest.$ac_ext >&5
12008   rm -rf conftest*
12009   eval "ac_cv_func_$ac_func=no"
12010 fi
12011 rm -f conftest*
12012 fi
12013
12014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12015   echo "$ac_t""yes" 1>&6
12016     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12017   cat >> confdefs.h <<EOF
12018 #define $ac_tr_func 1
12019 EOF
12020  
12021 else
12022   echo "$ac_t""no" 1>&6
12023 fi
12024 done
12025     
12026     fi
12027   fi
12028
12029   
12030   
12031   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
12032 echo "configure:12033: checking for sincosf declaration" >&5
12033   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
12034     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
12035   echo $ac_n "(cached) $ac_c" 1>&6
12036 else
12037   
12038       
12039       ac_ext=C
12040 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12041 ac_cpp='$CXXCPP $CPPFLAGS'
12042 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12043 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12044 cross_compiling=$ac_cv_prog_cxx_cross
12045
12046       cat > conftest.$ac_ext <<EOF
12047 #line 12048 "configure"
12048 #include "confdefs.h"
12049 #include <math.h>
12050 int main() {
12051  sincosf(0, 0, 0);
12052 ; return 0; }
12053 EOF
12054 if { (eval echo configure:12055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12055   rm -rf conftest*
12056   glibcpp_cv_func_sincosf_use=yes
12057 else
12058   echo "configure: failed program was:" >&5
12059   cat conftest.$ac_ext >&5
12060   rm -rf conftest*
12061   glibcpp_cv_func_sincosf_use=no
12062 fi
12063 rm -f conftest*
12064       ac_ext=c
12065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12066 ac_cpp='$CPP $CPPFLAGS'
12067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12069 cross_compiling=$ac_cv_prog_cc_cross
12070
12071     
12072 fi
12073
12074   fi
12075   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
12076
12077   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
12078     for ac_func in sincosf
12079 do
12080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12081 echo "configure:12082: checking for $ac_func" >&5
12082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12083   echo $ac_n "(cached) $ac_c" 1>&6
12084 else
12085   cat > conftest.$ac_ext <<EOF
12086 #line 12087 "configure"
12087 #include "confdefs.h"
12088 /* System header to define __stub macros and hopefully few prototypes,
12089     which can conflict with char $ac_func(); below.  */
12090 #include <assert.h>
12091 /* Override any gcc2 internal prototype to avoid an error.  */
12092 /* We use char because int might match the return type of a gcc2
12093     builtin and then its argument prototype would still apply.  */
12094 char $ac_func();
12095
12096 int main() {
12097
12098 /* The GNU C library defines this for functions which it implements
12099     to always fail with ENOSYS.  Some functions are actually named
12100     something starting with __ and the normal name is an alias.  */
12101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12102 choke me
12103 #else
12104 $ac_func();
12105 #endif
12106
12107 ; return 0; }
12108 EOF
12109 if { (eval echo configure:12110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12110   rm -rf conftest*
12111   eval "ac_cv_func_$ac_func=yes"
12112 else
12113   echo "configure: failed program was:" >&5
12114   cat conftest.$ac_ext >&5
12115   rm -rf conftest*
12116   eval "ac_cv_func_$ac_func=no"
12117 fi
12118 rm -f conftest*
12119 fi
12120
12121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12122   echo "$ac_t""yes" 1>&6
12123     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12124   cat >> confdefs.h <<EOF
12125 #define $ac_tr_func 1
12126 EOF
12127  
12128 else
12129   echo "$ac_t""no" 1>&6
12130 fi
12131 done
12132     
12133   else
12134     
12135   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
12136 echo "configure:12137: checking for _sincosf declaration" >&5
12137   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
12138     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
12139   echo $ac_n "(cached) $ac_c" 1>&6
12140 else
12141   
12142       
12143       ac_ext=C
12144 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12145 ac_cpp='$CXXCPP $CPPFLAGS'
12146 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12147 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12148 cross_compiling=$ac_cv_prog_cxx_cross
12149
12150       cat > conftest.$ac_ext <<EOF
12151 #line 12152 "configure"
12152 #include "confdefs.h"
12153 #include <math.h>
12154 int main() {
12155  _sincosf(0, 0, 0);
12156 ; return 0; }
12157 EOF
12158 if { (eval echo configure:12159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12159   rm -rf conftest*
12160   glibcpp_cv_func__sincosf_use=yes
12161 else
12162   echo "configure: failed program was:" >&5
12163   cat conftest.$ac_ext >&5
12164   rm -rf conftest*
12165   glibcpp_cv_func__sincosf_use=no
12166 fi
12167 rm -f conftest*
12168       ac_ext=c
12169 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12170 ac_cpp='$CPP $CPPFLAGS'
12171 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12172 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12173 cross_compiling=$ac_cv_prog_cc_cross
12174
12175     
12176 fi
12177
12178   fi
12179   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
12180
12181     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
12182       for ac_func in _sincosf
12183 do
12184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12185 echo "configure:12186: checking for $ac_func" >&5
12186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12187   echo $ac_n "(cached) $ac_c" 1>&6
12188 else
12189   cat > conftest.$ac_ext <<EOF
12190 #line 12191 "configure"
12191 #include "confdefs.h"
12192 /* System header to define __stub macros and hopefully few prototypes,
12193     which can conflict with char $ac_func(); below.  */
12194 #include <assert.h>
12195 /* Override any gcc2 internal prototype to avoid an error.  */
12196 /* We use char because int might match the return type of a gcc2
12197     builtin and then its argument prototype would still apply.  */
12198 char $ac_func();
12199
12200 int main() {
12201
12202 /* The GNU C library defines this for functions which it implements
12203     to always fail with ENOSYS.  Some functions are actually named
12204     something starting with __ and the normal name is an alias.  */
12205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12206 choke me
12207 #else
12208 $ac_func();
12209 #endif
12210
12211 ; return 0; }
12212 EOF
12213 if { (eval echo configure:12214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12214   rm -rf conftest*
12215   eval "ac_cv_func_$ac_func=yes"
12216 else
12217   echo "configure: failed program was:" >&5
12218   cat conftest.$ac_ext >&5
12219   rm -rf conftest*
12220   eval "ac_cv_func_$ac_func=no"
12221 fi
12222 rm -f conftest*
12223 fi
12224
12225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12226   echo "$ac_t""yes" 1>&6
12227     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12228   cat >> confdefs.h <<EOF
12229 #define $ac_tr_func 1
12230 EOF
12231  
12232 else
12233   echo "$ac_t""no" 1>&6
12234 fi
12235 done
12236     
12237     fi
12238   fi
12239
12240   
12241   
12242   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
12243 echo "configure:12244: checking for finitef declaration" >&5
12244   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
12245     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
12246   echo $ac_n "(cached) $ac_c" 1>&6
12247 else
12248   
12249       
12250       ac_ext=C
12251 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12252 ac_cpp='$CXXCPP $CPPFLAGS'
12253 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12254 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12255 cross_compiling=$ac_cv_prog_cxx_cross
12256
12257       cat > conftest.$ac_ext <<EOF
12258 #line 12259 "configure"
12259 #include "confdefs.h"
12260 #include <math.h>
12261                       #ifdef HAVE_IEEEFP_H
12262                       #include <ieeefp.h>
12263                       #endif
12264                      
12265 int main() {
12266  finitef(0);
12267 ; return 0; }
12268 EOF
12269 if { (eval echo configure:12270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12270   rm -rf conftest*
12271   glibcpp_cv_func_finitef_use=yes
12272 else
12273   echo "configure: failed program was:" >&5
12274   cat conftest.$ac_ext >&5
12275   rm -rf conftest*
12276   glibcpp_cv_func_finitef_use=no
12277 fi
12278 rm -f conftest*
12279       ac_ext=c
12280 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12281 ac_cpp='$CPP $CPPFLAGS'
12282 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12283 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12284 cross_compiling=$ac_cv_prog_cc_cross
12285
12286     
12287 fi
12288
12289   fi
12290   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
12291
12292   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
12293     for ac_func in finitef
12294 do
12295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12296 echo "configure:12297: checking for $ac_func" >&5
12297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12298   echo $ac_n "(cached) $ac_c" 1>&6
12299 else
12300   cat > conftest.$ac_ext <<EOF
12301 #line 12302 "configure"
12302 #include "confdefs.h"
12303 /* System header to define __stub macros and hopefully few prototypes,
12304     which can conflict with char $ac_func(); below.  */
12305 #include <assert.h>
12306 /* Override any gcc2 internal prototype to avoid an error.  */
12307 /* We use char because int might match the return type of a gcc2
12308     builtin and then its argument prototype would still apply.  */
12309 char $ac_func();
12310
12311 int main() {
12312
12313 /* The GNU C library defines this for functions which it implements
12314     to always fail with ENOSYS.  Some functions are actually named
12315     something starting with __ and the normal name is an alias.  */
12316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12317 choke me
12318 #else
12319 $ac_func();
12320 #endif
12321
12322 ; return 0; }
12323 EOF
12324 if { (eval echo configure:12325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12325   rm -rf conftest*
12326   eval "ac_cv_func_$ac_func=yes"
12327 else
12328   echo "configure: failed program was:" >&5
12329   cat conftest.$ac_ext >&5
12330   rm -rf conftest*
12331   eval "ac_cv_func_$ac_func=no"
12332 fi
12333 rm -f conftest*
12334 fi
12335
12336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12337   echo "$ac_t""yes" 1>&6
12338     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12339   cat >> confdefs.h <<EOF
12340 #define $ac_tr_func 1
12341 EOF
12342  
12343 else
12344   echo "$ac_t""no" 1>&6
12345 fi
12346 done
12347     
12348   else
12349     
12350   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
12351 echo "configure:12352: checking for _finitef declaration" >&5
12352   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
12353     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
12354   echo $ac_n "(cached) $ac_c" 1>&6
12355 else
12356   
12357       
12358       ac_ext=C
12359 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12360 ac_cpp='$CXXCPP $CPPFLAGS'
12361 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12362 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12363 cross_compiling=$ac_cv_prog_cxx_cross
12364
12365       cat > conftest.$ac_ext <<EOF
12366 #line 12367 "configure"
12367 #include "confdefs.h"
12368 #include <math.h>
12369                       #ifdef HAVE_IEEEFP_H
12370                       #include <ieeefp.h>
12371                       #endif
12372                      
12373 int main() {
12374  _finitef(0);
12375 ; return 0; }
12376 EOF
12377 if { (eval echo configure:12378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12378   rm -rf conftest*
12379   glibcpp_cv_func__finitef_use=yes
12380 else
12381   echo "configure: failed program was:" >&5
12382   cat conftest.$ac_ext >&5
12383   rm -rf conftest*
12384   glibcpp_cv_func__finitef_use=no
12385 fi
12386 rm -f conftest*
12387       ac_ext=c
12388 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12389 ac_cpp='$CPP $CPPFLAGS'
12390 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12391 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12392 cross_compiling=$ac_cv_prog_cc_cross
12393
12394     
12395 fi
12396
12397   fi
12398   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
12399
12400     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
12401       for ac_func in _finitef
12402 do
12403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12404 echo "configure:12405: checking for $ac_func" >&5
12405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12406   echo $ac_n "(cached) $ac_c" 1>&6
12407 else
12408   cat > conftest.$ac_ext <<EOF
12409 #line 12410 "configure"
12410 #include "confdefs.h"
12411 /* System header to define __stub macros and hopefully few prototypes,
12412     which can conflict with char $ac_func(); below.  */
12413 #include <assert.h>
12414 /* Override any gcc2 internal prototype to avoid an error.  */
12415 /* We use char because int might match the return type of a gcc2
12416     builtin and then its argument prototype would still apply.  */
12417 char $ac_func();
12418
12419 int main() {
12420
12421 /* The GNU C library defines this for functions which it implements
12422     to always fail with ENOSYS.  Some functions are actually named
12423     something starting with __ and the normal name is an alias.  */
12424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12425 choke me
12426 #else
12427 $ac_func();
12428 #endif
12429
12430 ; return 0; }
12431 EOF
12432 if { (eval echo configure:12433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12433   rm -rf conftest*
12434   eval "ac_cv_func_$ac_func=yes"
12435 else
12436   echo "configure: failed program was:" >&5
12437   cat conftest.$ac_ext >&5
12438   rm -rf conftest*
12439   eval "ac_cv_func_$ac_func=no"
12440 fi
12441 rm -f conftest*
12442 fi
12443
12444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12445   echo "$ac_t""yes" 1>&6
12446     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12447   cat >> confdefs.h <<EOF
12448 #define $ac_tr_func 1
12449 EOF
12450  
12451 else
12452   echo "$ac_t""no" 1>&6
12453 fi
12454 done
12455     
12456     fi
12457   fi
12458
12459
12460     
12461   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
12462 echo "configure:12463: checking for long double trig functions" >&5
12463   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
12464   echo $ac_n "(cached) $ac_c" 1>&6
12465 else
12466   
12467     
12468     ac_ext=C
12469 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12470 ac_cpp='$CXXCPP $CPPFLAGS'
12471 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12472 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12473 cross_compiling=$ac_cv_prog_cxx_cross
12474
12475     cat > conftest.$ac_ext <<EOF
12476 #line 12477 "configure"
12477 #include "confdefs.h"
12478 #include <math.h>
12479 int main() {
12480  `for x in acosl asinl atanl \
12481                                           cosl sinl tanl \
12482                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
12483 ; return 0; }
12484 EOF
12485 if { (eval echo configure:12486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12486   rm -rf conftest*
12487   glibcpp_cv_func_long_double_trig_use=yes
12488 else
12489   echo "configure: failed program was:" >&5
12490   cat conftest.$ac_ext >&5
12491   rm -rf conftest*
12492   glibcpp_cv_func_long_double_trig_use=no
12493 fi
12494 rm -f conftest*
12495     ac_ext=c
12496 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12497 ac_cpp='$CPP $CPPFLAGS'
12498 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12499 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12500 cross_compiling=$ac_cv_prog_cc_cross
12501
12502 fi
12503
12504   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
12505   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
12506     for ac_func in acosl asinl atanl \
12507                                           cosl sinl tanl \
12508                                           coshl sinhl tanhl
12509 do
12510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12511 echo "configure:12512: checking for $ac_func" >&5
12512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12513   echo $ac_n "(cached) $ac_c" 1>&6
12514 else
12515   cat > conftest.$ac_ext <<EOF
12516 #line 12517 "configure"
12517 #include "confdefs.h"
12518 /* System header to define __stub macros and hopefully few prototypes,
12519     which can conflict with char $ac_func(); below.  */
12520 #include <assert.h>
12521 /* Override any gcc2 internal prototype to avoid an error.  */
12522 /* We use char because int might match the return type of a gcc2
12523     builtin and then its argument prototype would still apply.  */
12524 char $ac_func();
12525
12526 int main() {
12527
12528 /* The GNU C library defines this for functions which it implements
12529     to always fail with ENOSYS.  Some functions are actually named
12530     something starting with __ and the normal name is an alias.  */
12531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12532 choke me
12533 #else
12534 $ac_func();
12535 #endif
12536
12537 ; return 0; }
12538 EOF
12539 if { (eval echo configure:12540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12540   rm -rf conftest*
12541   eval "ac_cv_func_$ac_func=yes"
12542 else
12543   echo "configure: failed program was:" >&5
12544   cat conftest.$ac_ext >&5
12545   rm -rf conftest*
12546   eval "ac_cv_func_$ac_func=no"
12547 fi
12548 rm -f conftest*
12549 fi
12550
12551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12552   echo "$ac_t""yes" 1>&6
12553     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12554   cat >> confdefs.h <<EOF
12555 #define $ac_tr_func 1
12556 EOF
12557  
12558 else
12559   echo "$ac_t""no" 1>&6
12560 fi
12561 done
12562
12563   fi
12564
12565   
12566   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
12567 echo "configure:12568: checking for long double round functions" >&5
12568   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
12569   echo $ac_n "(cached) $ac_c" 1>&6
12570 else
12571   
12572     
12573     ac_ext=C
12574 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12575 ac_cpp='$CXXCPP $CPPFLAGS'
12576 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12577 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12578 cross_compiling=$ac_cv_prog_cxx_cross
12579
12580     cat > conftest.$ac_ext <<EOF
12581 #line 12582 "configure"
12582 #include "confdefs.h"
12583 #include <math.h>
12584 int main() {
12585  `for x in ceill floorl; do echo "$x (0);"; done` 
12586 ; return 0; }
12587 EOF
12588 if { (eval echo configure:12589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12589   rm -rf conftest*
12590   glibcpp_cv_func_long_double_round_use=yes
12591 else
12592   echo "configure: failed program was:" >&5
12593   cat conftest.$ac_ext >&5
12594   rm -rf conftest*
12595   glibcpp_cv_func_long_double_round_use=no
12596 fi
12597 rm -f conftest*
12598     ac_ext=c
12599 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12600 ac_cpp='$CPP $CPPFLAGS'
12601 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12602 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12603 cross_compiling=$ac_cv_prog_cc_cross
12604
12605 fi
12606
12607   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
12608   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
12609     for ac_func in ceill floorl
12610 do
12611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12612 echo "configure:12613: checking for $ac_func" >&5
12613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12614   echo $ac_n "(cached) $ac_c" 1>&6
12615 else
12616   cat > conftest.$ac_ext <<EOF
12617 #line 12618 "configure"
12618 #include "confdefs.h"
12619 /* System header to define __stub macros and hopefully few prototypes,
12620     which can conflict with char $ac_func(); below.  */
12621 #include <assert.h>
12622 /* Override any gcc2 internal prototype to avoid an error.  */
12623 /* We use char because int might match the return type of a gcc2
12624     builtin and then its argument prototype would still apply.  */
12625 char $ac_func();
12626
12627 int main() {
12628
12629 /* The GNU C library defines this for functions which it implements
12630     to always fail with ENOSYS.  Some functions are actually named
12631     something starting with __ and the normal name is an alias.  */
12632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12633 choke me
12634 #else
12635 $ac_func();
12636 #endif
12637
12638 ; return 0; }
12639 EOF
12640 if { (eval echo configure:12641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12641   rm -rf conftest*
12642   eval "ac_cv_func_$ac_func=yes"
12643 else
12644   echo "configure: failed program was:" >&5
12645   cat conftest.$ac_ext >&5
12646   rm -rf conftest*
12647   eval "ac_cv_func_$ac_func=no"
12648 fi
12649 rm -f conftest*
12650 fi
12651
12652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12653   echo "$ac_t""yes" 1>&6
12654     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12655   cat >> confdefs.h <<EOF
12656 #define $ac_tr_func 1
12657 EOF
12658  
12659 else
12660   echo "$ac_t""no" 1>&6
12661 fi
12662 done
12663
12664   fi
12665
12666   
12667   
12668   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
12669 echo "configure:12670: checking for isnanl declaration" >&5
12670   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
12671     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
12672   echo $ac_n "(cached) $ac_c" 1>&6
12673 else
12674   
12675       
12676       ac_ext=C
12677 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12678 ac_cpp='$CXXCPP $CPPFLAGS'
12679 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12680 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12681 cross_compiling=$ac_cv_prog_cxx_cross
12682
12683       cat > conftest.$ac_ext <<EOF
12684 #line 12685 "configure"
12685 #include "confdefs.h"
12686 #include <math.h>
12687                       #ifdef HAVE_IEEEFP_H
12688                       #include <ieeefp.h>
12689                       #endif
12690                      
12691 int main() {
12692  isnanl(0);
12693 ; return 0; }
12694 EOF
12695 if { (eval echo configure:12696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12696   rm -rf conftest*
12697   glibcpp_cv_func_isnanl_use=yes
12698 else
12699   echo "configure: failed program was:" >&5
12700   cat conftest.$ac_ext >&5
12701   rm -rf conftest*
12702   glibcpp_cv_func_isnanl_use=no
12703 fi
12704 rm -f conftest*
12705       ac_ext=c
12706 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12707 ac_cpp='$CPP $CPPFLAGS'
12708 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12709 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12710 cross_compiling=$ac_cv_prog_cc_cross
12711
12712     
12713 fi
12714
12715   fi
12716   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
12717
12718   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
12719     for ac_func in isnanl
12720 do
12721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12722 echo "configure:12723: checking for $ac_func" >&5
12723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12724   echo $ac_n "(cached) $ac_c" 1>&6
12725 else
12726   cat > conftest.$ac_ext <<EOF
12727 #line 12728 "configure"
12728 #include "confdefs.h"
12729 /* System header to define __stub macros and hopefully few prototypes,
12730     which can conflict with char $ac_func(); below.  */
12731 #include <assert.h>
12732 /* Override any gcc2 internal prototype to avoid an error.  */
12733 /* We use char because int might match the return type of a gcc2
12734     builtin and then its argument prototype would still apply.  */
12735 char $ac_func();
12736
12737 int main() {
12738
12739 /* The GNU C library defines this for functions which it implements
12740     to always fail with ENOSYS.  Some functions are actually named
12741     something starting with __ and the normal name is an alias.  */
12742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12743 choke me
12744 #else
12745 $ac_func();
12746 #endif
12747
12748 ; return 0; }
12749 EOF
12750 if { (eval echo configure:12751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12751   rm -rf conftest*
12752   eval "ac_cv_func_$ac_func=yes"
12753 else
12754   echo "configure: failed program was:" >&5
12755   cat conftest.$ac_ext >&5
12756   rm -rf conftest*
12757   eval "ac_cv_func_$ac_func=no"
12758 fi
12759 rm -f conftest*
12760 fi
12761
12762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12763   echo "$ac_t""yes" 1>&6
12764     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12765   cat >> confdefs.h <<EOF
12766 #define $ac_tr_func 1
12767 EOF
12768  
12769 else
12770   echo "$ac_t""no" 1>&6
12771 fi
12772 done
12773     
12774   else
12775     
12776   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
12777 echo "configure:12778: checking for _isnanl declaration" >&5
12778   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
12779     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
12780   echo $ac_n "(cached) $ac_c" 1>&6
12781 else
12782   
12783       
12784       ac_ext=C
12785 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12786 ac_cpp='$CXXCPP $CPPFLAGS'
12787 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12788 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12789 cross_compiling=$ac_cv_prog_cxx_cross
12790
12791       cat > conftest.$ac_ext <<EOF
12792 #line 12793 "configure"
12793 #include "confdefs.h"
12794 #include <math.h>
12795                       #ifdef HAVE_IEEEFP_H
12796                       #include <ieeefp.h>
12797                       #endif
12798                      
12799 int main() {
12800  _isnanl(0);
12801 ; return 0; }
12802 EOF
12803 if { (eval echo configure:12804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12804   rm -rf conftest*
12805   glibcpp_cv_func__isnanl_use=yes
12806 else
12807   echo "configure: failed program was:" >&5
12808   cat conftest.$ac_ext >&5
12809   rm -rf conftest*
12810   glibcpp_cv_func__isnanl_use=no
12811 fi
12812 rm -f conftest*
12813       ac_ext=c
12814 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12815 ac_cpp='$CPP $CPPFLAGS'
12816 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12817 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12818 cross_compiling=$ac_cv_prog_cc_cross
12819
12820     
12821 fi
12822
12823   fi
12824   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
12825
12826     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
12827       for ac_func in _isnanl
12828 do
12829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12830 echo "configure:12831: checking for $ac_func" >&5
12831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12832   echo $ac_n "(cached) $ac_c" 1>&6
12833 else
12834   cat > conftest.$ac_ext <<EOF
12835 #line 12836 "configure"
12836 #include "confdefs.h"
12837 /* System header to define __stub macros and hopefully few prototypes,
12838     which can conflict with char $ac_func(); below.  */
12839 #include <assert.h>
12840 /* Override any gcc2 internal prototype to avoid an error.  */
12841 /* We use char because int might match the return type of a gcc2
12842     builtin and then its argument prototype would still apply.  */
12843 char $ac_func();
12844
12845 int main() {
12846
12847 /* The GNU C library defines this for functions which it implements
12848     to always fail with ENOSYS.  Some functions are actually named
12849     something starting with __ and the normal name is an alias.  */
12850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12851 choke me
12852 #else
12853 $ac_func();
12854 #endif
12855
12856 ; return 0; }
12857 EOF
12858 if { (eval echo configure:12859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12859   rm -rf conftest*
12860   eval "ac_cv_func_$ac_func=yes"
12861 else
12862   echo "configure: failed program was:" >&5
12863   cat conftest.$ac_ext >&5
12864   rm -rf conftest*
12865   eval "ac_cv_func_$ac_func=no"
12866 fi
12867 rm -f conftest*
12868 fi
12869
12870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12871   echo "$ac_t""yes" 1>&6
12872     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12873   cat >> confdefs.h <<EOF
12874 #define $ac_tr_func 1
12875 EOF
12876  
12877 else
12878   echo "$ac_t""no" 1>&6
12879 fi
12880 done
12881     
12882     fi
12883   fi
12884
12885   
12886   
12887   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
12888 echo "configure:12889: checking for isinfl declaration" >&5
12889   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
12890     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
12891   echo $ac_n "(cached) $ac_c" 1>&6
12892 else
12893   
12894       
12895       ac_ext=C
12896 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12897 ac_cpp='$CXXCPP $CPPFLAGS'
12898 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12899 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12900 cross_compiling=$ac_cv_prog_cxx_cross
12901
12902       cat > conftest.$ac_ext <<EOF
12903 #line 12904 "configure"
12904 #include "confdefs.h"
12905 #include <math.h>
12906                       #ifdef HAVE_IEEEFP_H
12907                       #include <ieeefp.h>
12908                       #endif
12909                      
12910 int main() {
12911  isinfl(0);
12912 ; return 0; }
12913 EOF
12914 if { (eval echo configure:12915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12915   rm -rf conftest*
12916   glibcpp_cv_func_isinfl_use=yes
12917 else
12918   echo "configure: failed program was:" >&5
12919   cat conftest.$ac_ext >&5
12920   rm -rf conftest*
12921   glibcpp_cv_func_isinfl_use=no
12922 fi
12923 rm -f conftest*
12924       ac_ext=c
12925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12926 ac_cpp='$CPP $CPPFLAGS'
12927 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12928 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12929 cross_compiling=$ac_cv_prog_cc_cross
12930
12931     
12932 fi
12933
12934   fi
12935   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
12936
12937   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
12938     for ac_func in isinfl
12939 do
12940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12941 echo "configure:12942: checking for $ac_func" >&5
12942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12943   echo $ac_n "(cached) $ac_c" 1>&6
12944 else
12945   cat > conftest.$ac_ext <<EOF
12946 #line 12947 "configure"
12947 #include "confdefs.h"
12948 /* System header to define __stub macros and hopefully few prototypes,
12949     which can conflict with char $ac_func(); below.  */
12950 #include <assert.h>
12951 /* Override any gcc2 internal prototype to avoid an error.  */
12952 /* We use char because int might match the return type of a gcc2
12953     builtin and then its argument prototype would still apply.  */
12954 char $ac_func();
12955
12956 int main() {
12957
12958 /* The GNU C library defines this for functions which it implements
12959     to always fail with ENOSYS.  Some functions are actually named
12960     something starting with __ and the normal name is an alias.  */
12961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12962 choke me
12963 #else
12964 $ac_func();
12965 #endif
12966
12967 ; return 0; }
12968 EOF
12969 if { (eval echo configure:12970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12970   rm -rf conftest*
12971   eval "ac_cv_func_$ac_func=yes"
12972 else
12973   echo "configure: failed program was:" >&5
12974   cat conftest.$ac_ext >&5
12975   rm -rf conftest*
12976   eval "ac_cv_func_$ac_func=no"
12977 fi
12978 rm -f conftest*
12979 fi
12980
12981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12982   echo "$ac_t""yes" 1>&6
12983     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12984   cat >> confdefs.h <<EOF
12985 #define $ac_tr_func 1
12986 EOF
12987  
12988 else
12989   echo "$ac_t""no" 1>&6
12990 fi
12991 done
12992     
12993   else
12994     
12995   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
12996 echo "configure:12997: checking for _isinfl declaration" >&5
12997   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
12998     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
12999   echo $ac_n "(cached) $ac_c" 1>&6
13000 else
13001   
13002       
13003       ac_ext=C
13004 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13005 ac_cpp='$CXXCPP $CPPFLAGS'
13006 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13007 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13008 cross_compiling=$ac_cv_prog_cxx_cross
13009
13010       cat > conftest.$ac_ext <<EOF
13011 #line 13012 "configure"
13012 #include "confdefs.h"
13013 #include <math.h>
13014                       #ifdef HAVE_IEEEFP_H
13015                       #include <ieeefp.h>
13016                       #endif
13017                      
13018 int main() {
13019  _isinfl(0);
13020 ; return 0; }
13021 EOF
13022 if { (eval echo configure:13023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13023   rm -rf conftest*
13024   glibcpp_cv_func__isinfl_use=yes
13025 else
13026   echo "configure: failed program was:" >&5
13027   cat conftest.$ac_ext >&5
13028   rm -rf conftest*
13029   glibcpp_cv_func__isinfl_use=no
13030 fi
13031 rm -f conftest*
13032       ac_ext=c
13033 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13034 ac_cpp='$CPP $CPPFLAGS'
13035 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13036 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13037 cross_compiling=$ac_cv_prog_cc_cross
13038
13039     
13040 fi
13041
13042   fi
13043   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
13044
13045     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
13046       for ac_func in _isinfl
13047 do
13048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13049 echo "configure:13050: checking for $ac_func" >&5
13050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13051   echo $ac_n "(cached) $ac_c" 1>&6
13052 else
13053   cat > conftest.$ac_ext <<EOF
13054 #line 13055 "configure"
13055 #include "confdefs.h"
13056 /* System header to define __stub macros and hopefully few prototypes,
13057     which can conflict with char $ac_func(); below.  */
13058 #include <assert.h>
13059 /* Override any gcc2 internal prototype to avoid an error.  */
13060 /* We use char because int might match the return type of a gcc2
13061     builtin and then its argument prototype would still apply.  */
13062 char $ac_func();
13063
13064 int main() {
13065
13066 /* The GNU C library defines this for functions which it implements
13067     to always fail with ENOSYS.  Some functions are actually named
13068     something starting with __ and the normal name is an alias.  */
13069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13070 choke me
13071 #else
13072 $ac_func();
13073 #endif
13074
13075 ; return 0; }
13076 EOF
13077 if { (eval echo configure:13078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13078   rm -rf conftest*
13079   eval "ac_cv_func_$ac_func=yes"
13080 else
13081   echo "configure: failed program was:" >&5
13082   cat conftest.$ac_ext >&5
13083   rm -rf conftest*
13084   eval "ac_cv_func_$ac_func=no"
13085 fi
13086 rm -f conftest*
13087 fi
13088
13089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13090   echo "$ac_t""yes" 1>&6
13091     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13092   cat >> confdefs.h <<EOF
13093 #define $ac_tr_func 1
13094 EOF
13095  
13096 else
13097   echo "$ac_t""no" 1>&6
13098 fi
13099 done
13100     
13101     fi
13102   fi
13103
13104   
13105   
13106   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
13107 echo "configure:13108: checking for copysignl declaration" >&5
13108   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
13109     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
13110   echo $ac_n "(cached) $ac_c" 1>&6
13111 else
13112   
13113       
13114       ac_ext=C
13115 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13116 ac_cpp='$CXXCPP $CPPFLAGS'
13117 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13118 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13119 cross_compiling=$ac_cv_prog_cxx_cross
13120
13121       cat > conftest.$ac_ext <<EOF
13122 #line 13123 "configure"
13123 #include "confdefs.h"
13124 #include <math.h>
13125 int main() {
13126  copysignl(0, 0);
13127 ; return 0; }
13128 EOF
13129 if { (eval echo configure:13130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13130   rm -rf conftest*
13131   glibcpp_cv_func_copysignl_use=yes
13132 else
13133   echo "configure: failed program was:" >&5
13134   cat conftest.$ac_ext >&5
13135   rm -rf conftest*
13136   glibcpp_cv_func_copysignl_use=no
13137 fi
13138 rm -f conftest*
13139       ac_ext=c
13140 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13141 ac_cpp='$CPP $CPPFLAGS'
13142 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13143 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13144 cross_compiling=$ac_cv_prog_cc_cross
13145
13146     
13147 fi
13148
13149   fi
13150   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
13151
13152   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
13153     for ac_func in copysignl
13154 do
13155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13156 echo "configure:13157: checking for $ac_func" >&5
13157 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13158   echo $ac_n "(cached) $ac_c" 1>&6
13159 else
13160   cat > conftest.$ac_ext <<EOF
13161 #line 13162 "configure"
13162 #include "confdefs.h"
13163 /* System header to define __stub macros and hopefully few prototypes,
13164     which can conflict with char $ac_func(); below.  */
13165 #include <assert.h>
13166 /* Override any gcc2 internal prototype to avoid an error.  */
13167 /* We use char because int might match the return type of a gcc2
13168     builtin and then its argument prototype would still apply.  */
13169 char $ac_func();
13170
13171 int main() {
13172
13173 /* The GNU C library defines this for functions which it implements
13174     to always fail with ENOSYS.  Some functions are actually named
13175     something starting with __ and the normal name is an alias.  */
13176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13177 choke me
13178 #else
13179 $ac_func();
13180 #endif
13181
13182 ; return 0; }
13183 EOF
13184 if { (eval echo configure:13185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13185   rm -rf conftest*
13186   eval "ac_cv_func_$ac_func=yes"
13187 else
13188   echo "configure: failed program was:" >&5
13189   cat conftest.$ac_ext >&5
13190   rm -rf conftest*
13191   eval "ac_cv_func_$ac_func=no"
13192 fi
13193 rm -f conftest*
13194 fi
13195
13196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13197   echo "$ac_t""yes" 1>&6
13198     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13199   cat >> confdefs.h <<EOF
13200 #define $ac_tr_func 1
13201 EOF
13202  
13203 else
13204   echo "$ac_t""no" 1>&6
13205 fi
13206 done
13207     
13208   else
13209     
13210   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
13211 echo "configure:13212: checking for _copysignl declaration" >&5
13212   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
13213     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
13214   echo $ac_n "(cached) $ac_c" 1>&6
13215 else
13216   
13217       
13218       ac_ext=C
13219 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13220 ac_cpp='$CXXCPP $CPPFLAGS'
13221 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13222 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13223 cross_compiling=$ac_cv_prog_cxx_cross
13224
13225       cat > conftest.$ac_ext <<EOF
13226 #line 13227 "configure"
13227 #include "confdefs.h"
13228 #include <math.h>
13229 int main() {
13230  _copysignl(0, 0);
13231 ; return 0; }
13232 EOF
13233 if { (eval echo configure:13234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13234   rm -rf conftest*
13235   glibcpp_cv_func__copysignl_use=yes
13236 else
13237   echo "configure: failed program was:" >&5
13238   cat conftest.$ac_ext >&5
13239   rm -rf conftest*
13240   glibcpp_cv_func__copysignl_use=no
13241 fi
13242 rm -f conftest*
13243       ac_ext=c
13244 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13245 ac_cpp='$CPP $CPPFLAGS'
13246 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13247 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13248 cross_compiling=$ac_cv_prog_cc_cross
13249
13250     
13251 fi
13252
13253   fi
13254   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
13255
13256     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
13257       for ac_func in _copysignl
13258 do
13259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13260 echo "configure:13261: checking for $ac_func" >&5
13261 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13262   echo $ac_n "(cached) $ac_c" 1>&6
13263 else
13264   cat > conftest.$ac_ext <<EOF
13265 #line 13266 "configure"
13266 #include "confdefs.h"
13267 /* System header to define __stub macros and hopefully few prototypes,
13268     which can conflict with char $ac_func(); below.  */
13269 #include <assert.h>
13270 /* Override any gcc2 internal prototype to avoid an error.  */
13271 /* We use char because int might match the return type of a gcc2
13272     builtin and then its argument prototype would still apply.  */
13273 char $ac_func();
13274
13275 int main() {
13276
13277 /* The GNU C library defines this for functions which it implements
13278     to always fail with ENOSYS.  Some functions are actually named
13279     something starting with __ and the normal name is an alias.  */
13280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13281 choke me
13282 #else
13283 $ac_func();
13284 #endif
13285
13286 ; return 0; }
13287 EOF
13288 if { (eval echo configure:13289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13289   rm -rf conftest*
13290   eval "ac_cv_func_$ac_func=yes"
13291 else
13292   echo "configure: failed program was:" >&5
13293   cat conftest.$ac_ext >&5
13294   rm -rf conftest*
13295   eval "ac_cv_func_$ac_func=no"
13296 fi
13297 rm -f conftest*
13298 fi
13299
13300 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13301   echo "$ac_t""yes" 1>&6
13302     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13303   cat >> confdefs.h <<EOF
13304 #define $ac_tr_func 1
13305 EOF
13306  
13307 else
13308   echo "$ac_t""no" 1>&6
13309 fi
13310 done
13311     
13312     fi
13313   fi
13314
13315   
13316   
13317   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
13318 echo "configure:13319: checking for atan2l declaration" >&5
13319   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
13320     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
13321   echo $ac_n "(cached) $ac_c" 1>&6
13322 else
13323   
13324       
13325       ac_ext=C
13326 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13327 ac_cpp='$CXXCPP $CPPFLAGS'
13328 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13329 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13330 cross_compiling=$ac_cv_prog_cxx_cross
13331
13332       cat > conftest.$ac_ext <<EOF
13333 #line 13334 "configure"
13334 #include "confdefs.h"
13335 #include <math.h>
13336 int main() {
13337  atan2l(0, 0);
13338 ; return 0; }
13339 EOF
13340 if { (eval echo configure:13341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13341   rm -rf conftest*
13342   glibcpp_cv_func_atan2l_use=yes
13343 else
13344   echo "configure: failed program was:" >&5
13345   cat conftest.$ac_ext >&5
13346   rm -rf conftest*
13347   glibcpp_cv_func_atan2l_use=no
13348 fi
13349 rm -f conftest*
13350       ac_ext=c
13351 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13352 ac_cpp='$CPP $CPPFLAGS'
13353 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13354 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13355 cross_compiling=$ac_cv_prog_cc_cross
13356
13357     
13358 fi
13359
13360   fi
13361   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
13362
13363   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
13364     for ac_func in atan2l
13365 do
13366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13367 echo "configure:13368: checking for $ac_func" >&5
13368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13369   echo $ac_n "(cached) $ac_c" 1>&6
13370 else
13371   cat > conftest.$ac_ext <<EOF
13372 #line 13373 "configure"
13373 #include "confdefs.h"
13374 /* System header to define __stub macros and hopefully few prototypes,
13375     which can conflict with char $ac_func(); below.  */
13376 #include <assert.h>
13377 /* Override any gcc2 internal prototype to avoid an error.  */
13378 /* We use char because int might match the return type of a gcc2
13379     builtin and then its argument prototype would still apply.  */
13380 char $ac_func();
13381
13382 int main() {
13383
13384 /* The GNU C library defines this for functions which it implements
13385     to always fail with ENOSYS.  Some functions are actually named
13386     something starting with __ and the normal name is an alias.  */
13387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13388 choke me
13389 #else
13390 $ac_func();
13391 #endif
13392
13393 ; return 0; }
13394 EOF
13395 if { (eval echo configure:13396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13396   rm -rf conftest*
13397   eval "ac_cv_func_$ac_func=yes"
13398 else
13399   echo "configure: failed program was:" >&5
13400   cat conftest.$ac_ext >&5
13401   rm -rf conftest*
13402   eval "ac_cv_func_$ac_func=no"
13403 fi
13404 rm -f conftest*
13405 fi
13406
13407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13408   echo "$ac_t""yes" 1>&6
13409     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13410   cat >> confdefs.h <<EOF
13411 #define $ac_tr_func 1
13412 EOF
13413  
13414 else
13415   echo "$ac_t""no" 1>&6
13416 fi
13417 done
13418     
13419   else
13420     
13421   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
13422 echo "configure:13423: checking for _atan2l declaration" >&5
13423   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
13424     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
13425   echo $ac_n "(cached) $ac_c" 1>&6
13426 else
13427   
13428       
13429       ac_ext=C
13430 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13431 ac_cpp='$CXXCPP $CPPFLAGS'
13432 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13433 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13434 cross_compiling=$ac_cv_prog_cxx_cross
13435
13436       cat > conftest.$ac_ext <<EOF
13437 #line 13438 "configure"
13438 #include "confdefs.h"
13439 #include <math.h>
13440 int main() {
13441  _atan2l(0, 0);
13442 ; return 0; }
13443 EOF
13444 if { (eval echo configure:13445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13445   rm -rf conftest*
13446   glibcpp_cv_func__atan2l_use=yes
13447 else
13448   echo "configure: failed program was:" >&5
13449   cat conftest.$ac_ext >&5
13450   rm -rf conftest*
13451   glibcpp_cv_func__atan2l_use=no
13452 fi
13453 rm -f conftest*
13454       ac_ext=c
13455 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13456 ac_cpp='$CPP $CPPFLAGS'
13457 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13458 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13459 cross_compiling=$ac_cv_prog_cc_cross
13460
13461     
13462 fi
13463
13464   fi
13465   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
13466
13467     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
13468       for ac_func in _atan2l
13469 do
13470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13471 echo "configure:13472: checking for $ac_func" >&5
13472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13473   echo $ac_n "(cached) $ac_c" 1>&6
13474 else
13475   cat > conftest.$ac_ext <<EOF
13476 #line 13477 "configure"
13477 #include "confdefs.h"
13478 /* System header to define __stub macros and hopefully few prototypes,
13479     which can conflict with char $ac_func(); below.  */
13480 #include <assert.h>
13481 /* Override any gcc2 internal prototype to avoid an error.  */
13482 /* We use char because int might match the return type of a gcc2
13483     builtin and then its argument prototype would still apply.  */
13484 char $ac_func();
13485
13486 int main() {
13487
13488 /* The GNU C library defines this for functions which it implements
13489     to always fail with ENOSYS.  Some functions are actually named
13490     something starting with __ and the normal name is an alias.  */
13491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13492 choke me
13493 #else
13494 $ac_func();
13495 #endif
13496
13497 ; return 0; }
13498 EOF
13499 if { (eval echo configure:13500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13500   rm -rf conftest*
13501   eval "ac_cv_func_$ac_func=yes"
13502 else
13503   echo "configure: failed program was:" >&5
13504   cat conftest.$ac_ext >&5
13505   rm -rf conftest*
13506   eval "ac_cv_func_$ac_func=no"
13507 fi
13508 rm -f conftest*
13509 fi
13510
13511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13512   echo "$ac_t""yes" 1>&6
13513     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13514   cat >> confdefs.h <<EOF
13515 #define $ac_tr_func 1
13516 EOF
13517  
13518 else
13519   echo "$ac_t""no" 1>&6
13520 fi
13521 done
13522     
13523     fi
13524   fi
13525
13526   
13527   
13528   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
13529 echo "configure:13530: checking for expl declaration" >&5
13530   if test x${glibcpp_cv_func_expl_use+set} != xset; then
13531     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
13532   echo $ac_n "(cached) $ac_c" 1>&6
13533 else
13534   
13535       
13536       ac_ext=C
13537 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13538 ac_cpp='$CXXCPP $CPPFLAGS'
13539 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13540 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13541 cross_compiling=$ac_cv_prog_cxx_cross
13542
13543       cat > conftest.$ac_ext <<EOF
13544 #line 13545 "configure"
13545 #include "confdefs.h"
13546 #include <math.h>
13547                       #ifdef HAVE_IEEEFP_H
13548                       #include <ieeefp.h>
13549                       #endif
13550                      
13551 int main() {
13552  expl(0);
13553 ; return 0; }
13554 EOF
13555 if { (eval echo configure:13556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13556   rm -rf conftest*
13557   glibcpp_cv_func_expl_use=yes
13558 else
13559   echo "configure: failed program was:" >&5
13560   cat conftest.$ac_ext >&5
13561   rm -rf conftest*
13562   glibcpp_cv_func_expl_use=no
13563 fi
13564 rm -f conftest*
13565       ac_ext=c
13566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13567 ac_cpp='$CPP $CPPFLAGS'
13568 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13569 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13570 cross_compiling=$ac_cv_prog_cc_cross
13571
13572     
13573 fi
13574
13575   fi
13576   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
13577
13578   if test x$glibcpp_cv_func_expl_use = x"yes"; then
13579     for ac_func in expl
13580 do
13581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13582 echo "configure:13583: checking for $ac_func" >&5
13583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13584   echo $ac_n "(cached) $ac_c" 1>&6
13585 else
13586   cat > conftest.$ac_ext <<EOF
13587 #line 13588 "configure"
13588 #include "confdefs.h"
13589 /* System header to define __stub macros and hopefully few prototypes,
13590     which can conflict with char $ac_func(); below.  */
13591 #include <assert.h>
13592 /* Override any gcc2 internal prototype to avoid an error.  */
13593 /* We use char because int might match the return type of a gcc2
13594     builtin and then its argument prototype would still apply.  */
13595 char $ac_func();
13596
13597 int main() {
13598
13599 /* The GNU C library defines this for functions which it implements
13600     to always fail with ENOSYS.  Some functions are actually named
13601     something starting with __ and the normal name is an alias.  */
13602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13603 choke me
13604 #else
13605 $ac_func();
13606 #endif
13607
13608 ; return 0; }
13609 EOF
13610 if { (eval echo configure:13611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13611   rm -rf conftest*
13612   eval "ac_cv_func_$ac_func=yes"
13613 else
13614   echo "configure: failed program was:" >&5
13615   cat conftest.$ac_ext >&5
13616   rm -rf conftest*
13617   eval "ac_cv_func_$ac_func=no"
13618 fi
13619 rm -f conftest*
13620 fi
13621
13622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13623   echo "$ac_t""yes" 1>&6
13624     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13625   cat >> confdefs.h <<EOF
13626 #define $ac_tr_func 1
13627 EOF
13628  
13629 else
13630   echo "$ac_t""no" 1>&6
13631 fi
13632 done
13633     
13634   else
13635     
13636   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
13637 echo "configure:13638: checking for _expl declaration" >&5
13638   if test x${glibcpp_cv_func__expl_use+set} != xset; then
13639     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
13640   echo $ac_n "(cached) $ac_c" 1>&6
13641 else
13642   
13643       
13644       ac_ext=C
13645 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13646 ac_cpp='$CXXCPP $CPPFLAGS'
13647 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13648 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13649 cross_compiling=$ac_cv_prog_cxx_cross
13650
13651       cat > conftest.$ac_ext <<EOF
13652 #line 13653 "configure"
13653 #include "confdefs.h"
13654 #include <math.h>
13655                       #ifdef HAVE_IEEEFP_H
13656                       #include <ieeefp.h>
13657                       #endif
13658                      
13659 int main() {
13660  _expl(0);
13661 ; return 0; }
13662 EOF
13663 if { (eval echo configure:13664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13664   rm -rf conftest*
13665   glibcpp_cv_func__expl_use=yes
13666 else
13667   echo "configure: failed program was:" >&5
13668   cat conftest.$ac_ext >&5
13669   rm -rf conftest*
13670   glibcpp_cv_func__expl_use=no
13671 fi
13672 rm -f conftest*
13673       ac_ext=c
13674 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13675 ac_cpp='$CPP $CPPFLAGS'
13676 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13677 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13678 cross_compiling=$ac_cv_prog_cc_cross
13679
13680     
13681 fi
13682
13683   fi
13684   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
13685
13686     if test x$glibcpp_cv_func__expl_use = x"yes"; then
13687       for ac_func in _expl
13688 do
13689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13690 echo "configure:13691: checking for $ac_func" >&5
13691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13692   echo $ac_n "(cached) $ac_c" 1>&6
13693 else
13694   cat > conftest.$ac_ext <<EOF
13695 #line 13696 "configure"
13696 #include "confdefs.h"
13697 /* System header to define __stub macros and hopefully few prototypes,
13698     which can conflict with char $ac_func(); below.  */
13699 #include <assert.h>
13700 /* Override any gcc2 internal prototype to avoid an error.  */
13701 /* We use char because int might match the return type of a gcc2
13702     builtin and then its argument prototype would still apply.  */
13703 char $ac_func();
13704
13705 int main() {
13706
13707 /* The GNU C library defines this for functions which it implements
13708     to always fail with ENOSYS.  Some functions are actually named
13709     something starting with __ and the normal name is an alias.  */
13710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13711 choke me
13712 #else
13713 $ac_func();
13714 #endif
13715
13716 ; return 0; }
13717 EOF
13718 if { (eval echo configure:13719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13719   rm -rf conftest*
13720   eval "ac_cv_func_$ac_func=yes"
13721 else
13722   echo "configure: failed program was:" >&5
13723   cat conftest.$ac_ext >&5
13724   rm -rf conftest*
13725   eval "ac_cv_func_$ac_func=no"
13726 fi
13727 rm -f conftest*
13728 fi
13729
13730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13731   echo "$ac_t""yes" 1>&6
13732     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13733   cat >> confdefs.h <<EOF
13734 #define $ac_tr_func 1
13735 EOF
13736  
13737 else
13738   echo "$ac_t""no" 1>&6
13739 fi
13740 done
13741     
13742     fi
13743   fi
13744
13745   
13746   
13747   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
13748 echo "configure:13749: checking for fabsl declaration" >&5
13749   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
13750     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
13751   echo $ac_n "(cached) $ac_c" 1>&6
13752 else
13753   
13754       
13755       ac_ext=C
13756 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13757 ac_cpp='$CXXCPP $CPPFLAGS'
13758 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13759 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13760 cross_compiling=$ac_cv_prog_cxx_cross
13761
13762       cat > conftest.$ac_ext <<EOF
13763 #line 13764 "configure"
13764 #include "confdefs.h"
13765 #include <math.h>
13766                       #ifdef HAVE_IEEEFP_H
13767                       #include <ieeefp.h>
13768                       #endif
13769                      
13770 int main() {
13771  fabsl(0);
13772 ; return 0; }
13773 EOF
13774 if { (eval echo configure:13775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13775   rm -rf conftest*
13776   glibcpp_cv_func_fabsl_use=yes
13777 else
13778   echo "configure: failed program was:" >&5
13779   cat conftest.$ac_ext >&5
13780   rm -rf conftest*
13781   glibcpp_cv_func_fabsl_use=no
13782 fi
13783 rm -f conftest*
13784       ac_ext=c
13785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13786 ac_cpp='$CPP $CPPFLAGS'
13787 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13788 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13789 cross_compiling=$ac_cv_prog_cc_cross
13790
13791     
13792 fi
13793
13794   fi
13795   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
13796
13797   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
13798     for ac_func in fabsl
13799 do
13800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13801 echo "configure:13802: checking for $ac_func" >&5
13802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13803   echo $ac_n "(cached) $ac_c" 1>&6
13804 else
13805   cat > conftest.$ac_ext <<EOF
13806 #line 13807 "configure"
13807 #include "confdefs.h"
13808 /* System header to define __stub macros and hopefully few prototypes,
13809     which can conflict with char $ac_func(); below.  */
13810 #include <assert.h>
13811 /* Override any gcc2 internal prototype to avoid an error.  */
13812 /* We use char because int might match the return type of a gcc2
13813     builtin and then its argument prototype would still apply.  */
13814 char $ac_func();
13815
13816 int main() {
13817
13818 /* The GNU C library defines this for functions which it implements
13819     to always fail with ENOSYS.  Some functions are actually named
13820     something starting with __ and the normal name is an alias.  */
13821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13822 choke me
13823 #else
13824 $ac_func();
13825 #endif
13826
13827 ; return 0; }
13828 EOF
13829 if { (eval echo configure:13830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13830   rm -rf conftest*
13831   eval "ac_cv_func_$ac_func=yes"
13832 else
13833   echo "configure: failed program was:" >&5
13834   cat conftest.$ac_ext >&5
13835   rm -rf conftest*
13836   eval "ac_cv_func_$ac_func=no"
13837 fi
13838 rm -f conftest*
13839 fi
13840
13841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13842   echo "$ac_t""yes" 1>&6
13843     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13844   cat >> confdefs.h <<EOF
13845 #define $ac_tr_func 1
13846 EOF
13847  
13848 else
13849   echo "$ac_t""no" 1>&6
13850 fi
13851 done
13852     
13853   else
13854     
13855   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
13856 echo "configure:13857: checking for _fabsl declaration" >&5
13857   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
13858     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
13859   echo $ac_n "(cached) $ac_c" 1>&6
13860 else
13861   
13862       
13863       ac_ext=C
13864 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13865 ac_cpp='$CXXCPP $CPPFLAGS'
13866 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13867 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13868 cross_compiling=$ac_cv_prog_cxx_cross
13869
13870       cat > conftest.$ac_ext <<EOF
13871 #line 13872 "configure"
13872 #include "confdefs.h"
13873 #include <math.h>
13874                       #ifdef HAVE_IEEEFP_H
13875                       #include <ieeefp.h>
13876                       #endif
13877                      
13878 int main() {
13879  _fabsl(0);
13880 ; return 0; }
13881 EOF
13882 if { (eval echo configure:13883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13883   rm -rf conftest*
13884   glibcpp_cv_func__fabsl_use=yes
13885 else
13886   echo "configure: failed program was:" >&5
13887   cat conftest.$ac_ext >&5
13888   rm -rf conftest*
13889   glibcpp_cv_func__fabsl_use=no
13890 fi
13891 rm -f conftest*
13892       ac_ext=c
13893 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13894 ac_cpp='$CPP $CPPFLAGS'
13895 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13896 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13897 cross_compiling=$ac_cv_prog_cc_cross
13898
13899     
13900 fi
13901
13902   fi
13903   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
13904
13905     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
13906       for ac_func in _fabsl
13907 do
13908 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13909 echo "configure:13910: checking for $ac_func" >&5
13910 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13911   echo $ac_n "(cached) $ac_c" 1>&6
13912 else
13913   cat > conftest.$ac_ext <<EOF
13914 #line 13915 "configure"
13915 #include "confdefs.h"
13916 /* System header to define __stub macros and hopefully few prototypes,
13917     which can conflict with char $ac_func(); below.  */
13918 #include <assert.h>
13919 /* Override any gcc2 internal prototype to avoid an error.  */
13920 /* We use char because int might match the return type of a gcc2
13921     builtin and then its argument prototype would still apply.  */
13922 char $ac_func();
13923
13924 int main() {
13925
13926 /* The GNU C library defines this for functions which it implements
13927     to always fail with ENOSYS.  Some functions are actually named
13928     something starting with __ and the normal name is an alias.  */
13929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13930 choke me
13931 #else
13932 $ac_func();
13933 #endif
13934
13935 ; return 0; }
13936 EOF
13937 if { (eval echo configure:13938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13938   rm -rf conftest*
13939   eval "ac_cv_func_$ac_func=yes"
13940 else
13941   echo "configure: failed program was:" >&5
13942   cat conftest.$ac_ext >&5
13943   rm -rf conftest*
13944   eval "ac_cv_func_$ac_func=no"
13945 fi
13946 rm -f conftest*
13947 fi
13948
13949 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13950   echo "$ac_t""yes" 1>&6
13951     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13952   cat >> confdefs.h <<EOF
13953 #define $ac_tr_func 1
13954 EOF
13955  
13956 else
13957   echo "$ac_t""no" 1>&6
13958 fi
13959 done
13960     
13961     fi
13962   fi
13963
13964   
13965   
13966   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
13967 echo "configure:13968: checking for fmodl declaration" >&5
13968   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
13969     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
13970   echo $ac_n "(cached) $ac_c" 1>&6
13971 else
13972   
13973       
13974       ac_ext=C
13975 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13976 ac_cpp='$CXXCPP $CPPFLAGS'
13977 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13978 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13979 cross_compiling=$ac_cv_prog_cxx_cross
13980
13981       cat > conftest.$ac_ext <<EOF
13982 #line 13983 "configure"
13983 #include "confdefs.h"
13984 #include <math.h>
13985 int main() {
13986  fmodl(0, 0);
13987 ; return 0; }
13988 EOF
13989 if { (eval echo configure:13990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13990   rm -rf conftest*
13991   glibcpp_cv_func_fmodl_use=yes
13992 else
13993   echo "configure: failed program was:" >&5
13994   cat conftest.$ac_ext >&5
13995   rm -rf conftest*
13996   glibcpp_cv_func_fmodl_use=no
13997 fi
13998 rm -f conftest*
13999       ac_ext=c
14000 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14001 ac_cpp='$CPP $CPPFLAGS'
14002 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14003 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14004 cross_compiling=$ac_cv_prog_cc_cross
14005
14006     
14007 fi
14008
14009   fi
14010   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
14011
14012   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
14013     for ac_func in fmodl
14014 do
14015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14016 echo "configure:14017: checking for $ac_func" >&5
14017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14018   echo $ac_n "(cached) $ac_c" 1>&6
14019 else
14020   cat > conftest.$ac_ext <<EOF
14021 #line 14022 "configure"
14022 #include "confdefs.h"
14023 /* System header to define __stub macros and hopefully few prototypes,
14024     which can conflict with char $ac_func(); below.  */
14025 #include <assert.h>
14026 /* Override any gcc2 internal prototype to avoid an error.  */
14027 /* We use char because int might match the return type of a gcc2
14028     builtin and then its argument prototype would still apply.  */
14029 char $ac_func();
14030
14031 int main() {
14032
14033 /* The GNU C library defines this for functions which it implements
14034     to always fail with ENOSYS.  Some functions are actually named
14035     something starting with __ and the normal name is an alias.  */
14036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14037 choke me
14038 #else
14039 $ac_func();
14040 #endif
14041
14042 ; return 0; }
14043 EOF
14044 if { (eval echo configure:14045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14045   rm -rf conftest*
14046   eval "ac_cv_func_$ac_func=yes"
14047 else
14048   echo "configure: failed program was:" >&5
14049   cat conftest.$ac_ext >&5
14050   rm -rf conftest*
14051   eval "ac_cv_func_$ac_func=no"
14052 fi
14053 rm -f conftest*
14054 fi
14055
14056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14057   echo "$ac_t""yes" 1>&6
14058     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14059   cat >> confdefs.h <<EOF
14060 #define $ac_tr_func 1
14061 EOF
14062  
14063 else
14064   echo "$ac_t""no" 1>&6
14065 fi
14066 done
14067     
14068   else
14069     
14070   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
14071 echo "configure:14072: checking for _fmodl declaration" >&5
14072   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
14073     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
14074   echo $ac_n "(cached) $ac_c" 1>&6
14075 else
14076   
14077       
14078       ac_ext=C
14079 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14080 ac_cpp='$CXXCPP $CPPFLAGS'
14081 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14082 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14083 cross_compiling=$ac_cv_prog_cxx_cross
14084
14085       cat > conftest.$ac_ext <<EOF
14086 #line 14087 "configure"
14087 #include "confdefs.h"
14088 #include <math.h>
14089 int main() {
14090  _fmodl(0, 0);
14091 ; return 0; }
14092 EOF
14093 if { (eval echo configure:14094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14094   rm -rf conftest*
14095   glibcpp_cv_func__fmodl_use=yes
14096 else
14097   echo "configure: failed program was:" >&5
14098   cat conftest.$ac_ext >&5
14099   rm -rf conftest*
14100   glibcpp_cv_func__fmodl_use=no
14101 fi
14102 rm -f conftest*
14103       ac_ext=c
14104 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14105 ac_cpp='$CPP $CPPFLAGS'
14106 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14107 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14108 cross_compiling=$ac_cv_prog_cc_cross
14109
14110     
14111 fi
14112
14113   fi
14114   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
14115
14116     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
14117       for ac_func in _fmodl
14118 do
14119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14120 echo "configure:14121: checking for $ac_func" >&5
14121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14122   echo $ac_n "(cached) $ac_c" 1>&6
14123 else
14124   cat > conftest.$ac_ext <<EOF
14125 #line 14126 "configure"
14126 #include "confdefs.h"
14127 /* System header to define __stub macros and hopefully few prototypes,
14128     which can conflict with char $ac_func(); below.  */
14129 #include <assert.h>
14130 /* Override any gcc2 internal prototype to avoid an error.  */
14131 /* We use char because int might match the return type of a gcc2
14132     builtin and then its argument prototype would still apply.  */
14133 char $ac_func();
14134
14135 int main() {
14136
14137 /* The GNU C library defines this for functions which it implements
14138     to always fail with ENOSYS.  Some functions are actually named
14139     something starting with __ and the normal name is an alias.  */
14140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14141 choke me
14142 #else
14143 $ac_func();
14144 #endif
14145
14146 ; return 0; }
14147 EOF
14148 if { (eval echo configure:14149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14149   rm -rf conftest*
14150   eval "ac_cv_func_$ac_func=yes"
14151 else
14152   echo "configure: failed program was:" >&5
14153   cat conftest.$ac_ext >&5
14154   rm -rf conftest*
14155   eval "ac_cv_func_$ac_func=no"
14156 fi
14157 rm -f conftest*
14158 fi
14159
14160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14161   echo "$ac_t""yes" 1>&6
14162     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14163   cat >> confdefs.h <<EOF
14164 #define $ac_tr_func 1
14165 EOF
14166  
14167 else
14168   echo "$ac_t""no" 1>&6
14169 fi
14170 done
14171     
14172     fi
14173   fi
14174
14175   
14176   
14177   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
14178 echo "configure:14179: checking for frexpl declaration" >&5
14179   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
14180     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
14181   echo $ac_n "(cached) $ac_c" 1>&6
14182 else
14183   
14184       
14185       ac_ext=C
14186 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14187 ac_cpp='$CXXCPP $CPPFLAGS'
14188 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14189 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14190 cross_compiling=$ac_cv_prog_cxx_cross
14191
14192       cat > conftest.$ac_ext <<EOF
14193 #line 14194 "configure"
14194 #include "confdefs.h"
14195 #include <math.h>
14196 int main() {
14197  frexpl(0, 0);
14198 ; return 0; }
14199 EOF
14200 if { (eval echo configure:14201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14201   rm -rf conftest*
14202   glibcpp_cv_func_frexpl_use=yes
14203 else
14204   echo "configure: failed program was:" >&5
14205   cat conftest.$ac_ext >&5
14206   rm -rf conftest*
14207   glibcpp_cv_func_frexpl_use=no
14208 fi
14209 rm -f conftest*
14210       ac_ext=c
14211 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14212 ac_cpp='$CPP $CPPFLAGS'
14213 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14214 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14215 cross_compiling=$ac_cv_prog_cc_cross
14216
14217     
14218 fi
14219
14220   fi
14221   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
14222
14223   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
14224     for ac_func in frexpl
14225 do
14226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14227 echo "configure:14228: checking for $ac_func" >&5
14228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14229   echo $ac_n "(cached) $ac_c" 1>&6
14230 else
14231   cat > conftest.$ac_ext <<EOF
14232 #line 14233 "configure"
14233 #include "confdefs.h"
14234 /* System header to define __stub macros and hopefully few prototypes,
14235     which can conflict with char $ac_func(); below.  */
14236 #include <assert.h>
14237 /* Override any gcc2 internal prototype to avoid an error.  */
14238 /* We use char because int might match the return type of a gcc2
14239     builtin and then its argument prototype would still apply.  */
14240 char $ac_func();
14241
14242 int main() {
14243
14244 /* The GNU C library defines this for functions which it implements
14245     to always fail with ENOSYS.  Some functions are actually named
14246     something starting with __ and the normal name is an alias.  */
14247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14248 choke me
14249 #else
14250 $ac_func();
14251 #endif
14252
14253 ; return 0; }
14254 EOF
14255 if { (eval echo configure:14256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14256   rm -rf conftest*
14257   eval "ac_cv_func_$ac_func=yes"
14258 else
14259   echo "configure: failed program was:" >&5
14260   cat conftest.$ac_ext >&5
14261   rm -rf conftest*
14262   eval "ac_cv_func_$ac_func=no"
14263 fi
14264 rm -f conftest*
14265 fi
14266
14267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14268   echo "$ac_t""yes" 1>&6
14269     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14270   cat >> confdefs.h <<EOF
14271 #define $ac_tr_func 1
14272 EOF
14273  
14274 else
14275   echo "$ac_t""no" 1>&6
14276 fi
14277 done
14278     
14279   else
14280     
14281   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
14282 echo "configure:14283: checking for _frexpl declaration" >&5
14283   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
14284     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
14285   echo $ac_n "(cached) $ac_c" 1>&6
14286 else
14287   
14288       
14289       ac_ext=C
14290 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14291 ac_cpp='$CXXCPP $CPPFLAGS'
14292 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14293 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14294 cross_compiling=$ac_cv_prog_cxx_cross
14295
14296       cat > conftest.$ac_ext <<EOF
14297 #line 14298 "configure"
14298 #include "confdefs.h"
14299 #include <math.h>
14300 int main() {
14301  _frexpl(0, 0);
14302 ; return 0; }
14303 EOF
14304 if { (eval echo configure:14305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14305   rm -rf conftest*
14306   glibcpp_cv_func__frexpl_use=yes
14307 else
14308   echo "configure: failed program was:" >&5
14309   cat conftest.$ac_ext >&5
14310   rm -rf conftest*
14311   glibcpp_cv_func__frexpl_use=no
14312 fi
14313 rm -f conftest*
14314       ac_ext=c
14315 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14316 ac_cpp='$CPP $CPPFLAGS'
14317 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14318 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14319 cross_compiling=$ac_cv_prog_cc_cross
14320
14321     
14322 fi
14323
14324   fi
14325   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
14326
14327     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
14328       for ac_func in _frexpl
14329 do
14330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14331 echo "configure:14332: checking for $ac_func" >&5
14332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14333   echo $ac_n "(cached) $ac_c" 1>&6
14334 else
14335   cat > conftest.$ac_ext <<EOF
14336 #line 14337 "configure"
14337 #include "confdefs.h"
14338 /* System header to define __stub macros and hopefully few prototypes,
14339     which can conflict with char $ac_func(); below.  */
14340 #include <assert.h>
14341 /* Override any gcc2 internal prototype to avoid an error.  */
14342 /* We use char because int might match the return type of a gcc2
14343     builtin and then its argument prototype would still apply.  */
14344 char $ac_func();
14345
14346 int main() {
14347
14348 /* The GNU C library defines this for functions which it implements
14349     to always fail with ENOSYS.  Some functions are actually named
14350     something starting with __ and the normal name is an alias.  */
14351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14352 choke me
14353 #else
14354 $ac_func();
14355 #endif
14356
14357 ; return 0; }
14358 EOF
14359 if { (eval echo configure:14360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14360   rm -rf conftest*
14361   eval "ac_cv_func_$ac_func=yes"
14362 else
14363   echo "configure: failed program was:" >&5
14364   cat conftest.$ac_ext >&5
14365   rm -rf conftest*
14366   eval "ac_cv_func_$ac_func=no"
14367 fi
14368 rm -f conftest*
14369 fi
14370
14371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14372   echo "$ac_t""yes" 1>&6
14373     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14374   cat >> confdefs.h <<EOF
14375 #define $ac_tr_func 1
14376 EOF
14377  
14378 else
14379   echo "$ac_t""no" 1>&6
14380 fi
14381 done
14382     
14383     fi
14384   fi
14385
14386   
14387   
14388   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
14389 echo "configure:14390: checking for hypotl declaration" >&5
14390   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
14391     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
14392   echo $ac_n "(cached) $ac_c" 1>&6
14393 else
14394   
14395       
14396       ac_ext=C
14397 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14398 ac_cpp='$CXXCPP $CPPFLAGS'
14399 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14400 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14401 cross_compiling=$ac_cv_prog_cxx_cross
14402
14403       cat > conftest.$ac_ext <<EOF
14404 #line 14405 "configure"
14405 #include "confdefs.h"
14406 #include <math.h>
14407 int main() {
14408  hypotl(0, 0);
14409 ; return 0; }
14410 EOF
14411 if { (eval echo configure:14412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14412   rm -rf conftest*
14413   glibcpp_cv_func_hypotl_use=yes
14414 else
14415   echo "configure: failed program was:" >&5
14416   cat conftest.$ac_ext >&5
14417   rm -rf conftest*
14418   glibcpp_cv_func_hypotl_use=no
14419 fi
14420 rm -f conftest*
14421       ac_ext=c
14422 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14423 ac_cpp='$CPP $CPPFLAGS'
14424 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14425 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14426 cross_compiling=$ac_cv_prog_cc_cross
14427
14428     
14429 fi
14430
14431   fi
14432   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
14433
14434   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
14435     for ac_func in hypotl
14436 do
14437 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14438 echo "configure:14439: checking for $ac_func" >&5
14439 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14440   echo $ac_n "(cached) $ac_c" 1>&6
14441 else
14442   cat > conftest.$ac_ext <<EOF
14443 #line 14444 "configure"
14444 #include "confdefs.h"
14445 /* System header to define __stub macros and hopefully few prototypes,
14446     which can conflict with char $ac_func(); below.  */
14447 #include <assert.h>
14448 /* Override any gcc2 internal prototype to avoid an error.  */
14449 /* We use char because int might match the return type of a gcc2
14450     builtin and then its argument prototype would still apply.  */
14451 char $ac_func();
14452
14453 int main() {
14454
14455 /* The GNU C library defines this for functions which it implements
14456     to always fail with ENOSYS.  Some functions are actually named
14457     something starting with __ and the normal name is an alias.  */
14458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14459 choke me
14460 #else
14461 $ac_func();
14462 #endif
14463
14464 ; return 0; }
14465 EOF
14466 if { (eval echo configure:14467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14467   rm -rf conftest*
14468   eval "ac_cv_func_$ac_func=yes"
14469 else
14470   echo "configure: failed program was:" >&5
14471   cat conftest.$ac_ext >&5
14472   rm -rf conftest*
14473   eval "ac_cv_func_$ac_func=no"
14474 fi
14475 rm -f conftest*
14476 fi
14477
14478 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14479   echo "$ac_t""yes" 1>&6
14480     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14481   cat >> confdefs.h <<EOF
14482 #define $ac_tr_func 1
14483 EOF
14484  
14485 else
14486   echo "$ac_t""no" 1>&6
14487 fi
14488 done
14489     
14490   else
14491     
14492   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
14493 echo "configure:14494: checking for _hypotl declaration" >&5
14494   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
14495     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
14496   echo $ac_n "(cached) $ac_c" 1>&6
14497 else
14498   
14499       
14500       ac_ext=C
14501 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14502 ac_cpp='$CXXCPP $CPPFLAGS'
14503 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14504 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14505 cross_compiling=$ac_cv_prog_cxx_cross
14506
14507       cat > conftest.$ac_ext <<EOF
14508 #line 14509 "configure"
14509 #include "confdefs.h"
14510 #include <math.h>
14511 int main() {
14512  _hypotl(0, 0);
14513 ; return 0; }
14514 EOF
14515 if { (eval echo configure:14516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14516   rm -rf conftest*
14517   glibcpp_cv_func__hypotl_use=yes
14518 else
14519   echo "configure: failed program was:" >&5
14520   cat conftest.$ac_ext >&5
14521   rm -rf conftest*
14522   glibcpp_cv_func__hypotl_use=no
14523 fi
14524 rm -f conftest*
14525       ac_ext=c
14526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14527 ac_cpp='$CPP $CPPFLAGS'
14528 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14529 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14530 cross_compiling=$ac_cv_prog_cc_cross
14531
14532     
14533 fi
14534
14535   fi
14536   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
14537
14538     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
14539       for ac_func in _hypotl
14540 do
14541 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14542 echo "configure:14543: checking for $ac_func" >&5
14543 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14544   echo $ac_n "(cached) $ac_c" 1>&6
14545 else
14546   cat > conftest.$ac_ext <<EOF
14547 #line 14548 "configure"
14548 #include "confdefs.h"
14549 /* System header to define __stub macros and hopefully few prototypes,
14550     which can conflict with char $ac_func(); below.  */
14551 #include <assert.h>
14552 /* Override any gcc2 internal prototype to avoid an error.  */
14553 /* We use char because int might match the return type of a gcc2
14554     builtin and then its argument prototype would still apply.  */
14555 char $ac_func();
14556
14557 int main() {
14558
14559 /* The GNU C library defines this for functions which it implements
14560     to always fail with ENOSYS.  Some functions are actually named
14561     something starting with __ and the normal name is an alias.  */
14562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14563 choke me
14564 #else
14565 $ac_func();
14566 #endif
14567
14568 ; return 0; }
14569 EOF
14570 if { (eval echo configure:14571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14571   rm -rf conftest*
14572   eval "ac_cv_func_$ac_func=yes"
14573 else
14574   echo "configure: failed program was:" >&5
14575   cat conftest.$ac_ext >&5
14576   rm -rf conftest*
14577   eval "ac_cv_func_$ac_func=no"
14578 fi
14579 rm -f conftest*
14580 fi
14581
14582 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14583   echo "$ac_t""yes" 1>&6
14584     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14585   cat >> confdefs.h <<EOF
14586 #define $ac_tr_func 1
14587 EOF
14588  
14589 else
14590   echo "$ac_t""no" 1>&6
14591 fi
14592 done
14593     
14594     fi
14595   fi
14596
14597   
14598   
14599   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
14600 echo "configure:14601: checking for ldexpl declaration" >&5
14601   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
14602     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
14603   echo $ac_n "(cached) $ac_c" 1>&6
14604 else
14605   
14606       
14607       ac_ext=C
14608 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14609 ac_cpp='$CXXCPP $CPPFLAGS'
14610 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14611 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14612 cross_compiling=$ac_cv_prog_cxx_cross
14613
14614       cat > conftest.$ac_ext <<EOF
14615 #line 14616 "configure"
14616 #include "confdefs.h"
14617 #include <math.h>
14618 int main() {
14619  ldexpl(0, 0);
14620 ; return 0; }
14621 EOF
14622 if { (eval echo configure:14623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14623   rm -rf conftest*
14624   glibcpp_cv_func_ldexpl_use=yes
14625 else
14626   echo "configure: failed program was:" >&5
14627   cat conftest.$ac_ext >&5
14628   rm -rf conftest*
14629   glibcpp_cv_func_ldexpl_use=no
14630 fi
14631 rm -f conftest*
14632       ac_ext=c
14633 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14634 ac_cpp='$CPP $CPPFLAGS'
14635 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14636 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14637 cross_compiling=$ac_cv_prog_cc_cross
14638
14639     
14640 fi
14641
14642   fi
14643   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
14644
14645   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
14646     for ac_func in ldexpl
14647 do
14648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14649 echo "configure:14650: checking for $ac_func" >&5
14650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14651   echo $ac_n "(cached) $ac_c" 1>&6
14652 else
14653   cat > conftest.$ac_ext <<EOF
14654 #line 14655 "configure"
14655 #include "confdefs.h"
14656 /* System header to define __stub macros and hopefully few prototypes,
14657     which can conflict with char $ac_func(); below.  */
14658 #include <assert.h>
14659 /* Override any gcc2 internal prototype to avoid an error.  */
14660 /* We use char because int might match the return type of a gcc2
14661     builtin and then its argument prototype would still apply.  */
14662 char $ac_func();
14663
14664 int main() {
14665
14666 /* The GNU C library defines this for functions which it implements
14667     to always fail with ENOSYS.  Some functions are actually named
14668     something starting with __ and the normal name is an alias.  */
14669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14670 choke me
14671 #else
14672 $ac_func();
14673 #endif
14674
14675 ; return 0; }
14676 EOF
14677 if { (eval echo configure:14678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14678   rm -rf conftest*
14679   eval "ac_cv_func_$ac_func=yes"
14680 else
14681   echo "configure: failed program was:" >&5
14682   cat conftest.$ac_ext >&5
14683   rm -rf conftest*
14684   eval "ac_cv_func_$ac_func=no"
14685 fi
14686 rm -f conftest*
14687 fi
14688
14689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14690   echo "$ac_t""yes" 1>&6
14691     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14692   cat >> confdefs.h <<EOF
14693 #define $ac_tr_func 1
14694 EOF
14695  
14696 else
14697   echo "$ac_t""no" 1>&6
14698 fi
14699 done
14700     
14701   else
14702     
14703   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
14704 echo "configure:14705: checking for _ldexpl declaration" >&5
14705   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
14706     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
14707   echo $ac_n "(cached) $ac_c" 1>&6
14708 else
14709   
14710       
14711       ac_ext=C
14712 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14713 ac_cpp='$CXXCPP $CPPFLAGS'
14714 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14715 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14716 cross_compiling=$ac_cv_prog_cxx_cross
14717
14718       cat > conftest.$ac_ext <<EOF
14719 #line 14720 "configure"
14720 #include "confdefs.h"
14721 #include <math.h>
14722 int main() {
14723  _ldexpl(0, 0);
14724 ; return 0; }
14725 EOF
14726 if { (eval echo configure:14727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14727   rm -rf conftest*
14728   glibcpp_cv_func__ldexpl_use=yes
14729 else
14730   echo "configure: failed program was:" >&5
14731   cat conftest.$ac_ext >&5
14732   rm -rf conftest*
14733   glibcpp_cv_func__ldexpl_use=no
14734 fi
14735 rm -f conftest*
14736       ac_ext=c
14737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14738 ac_cpp='$CPP $CPPFLAGS'
14739 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14740 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14741 cross_compiling=$ac_cv_prog_cc_cross
14742
14743     
14744 fi
14745
14746   fi
14747   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
14748
14749     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
14750       for ac_func in _ldexpl
14751 do
14752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14753 echo "configure:14754: checking for $ac_func" >&5
14754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14755   echo $ac_n "(cached) $ac_c" 1>&6
14756 else
14757   cat > conftest.$ac_ext <<EOF
14758 #line 14759 "configure"
14759 #include "confdefs.h"
14760 /* System header to define __stub macros and hopefully few prototypes,
14761     which can conflict with char $ac_func(); below.  */
14762 #include <assert.h>
14763 /* Override any gcc2 internal prototype to avoid an error.  */
14764 /* We use char because int might match the return type of a gcc2
14765     builtin and then its argument prototype would still apply.  */
14766 char $ac_func();
14767
14768 int main() {
14769
14770 /* The GNU C library defines this for functions which it implements
14771     to always fail with ENOSYS.  Some functions are actually named
14772     something starting with __ and the normal name is an alias.  */
14773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14774 choke me
14775 #else
14776 $ac_func();
14777 #endif
14778
14779 ; return 0; }
14780 EOF
14781 if { (eval echo configure:14782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14782   rm -rf conftest*
14783   eval "ac_cv_func_$ac_func=yes"
14784 else
14785   echo "configure: failed program was:" >&5
14786   cat conftest.$ac_ext >&5
14787   rm -rf conftest*
14788   eval "ac_cv_func_$ac_func=no"
14789 fi
14790 rm -f conftest*
14791 fi
14792
14793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14794   echo "$ac_t""yes" 1>&6
14795     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14796   cat >> confdefs.h <<EOF
14797 #define $ac_tr_func 1
14798 EOF
14799  
14800 else
14801   echo "$ac_t""no" 1>&6
14802 fi
14803 done
14804     
14805     fi
14806   fi
14807
14808   
14809   
14810   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
14811 echo "configure:14812: checking for logl declaration" >&5
14812   if test x${glibcpp_cv_func_logl_use+set} != xset; then
14813     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
14814   echo $ac_n "(cached) $ac_c" 1>&6
14815 else
14816   
14817       
14818       ac_ext=C
14819 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14820 ac_cpp='$CXXCPP $CPPFLAGS'
14821 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14822 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14823 cross_compiling=$ac_cv_prog_cxx_cross
14824
14825       cat > conftest.$ac_ext <<EOF
14826 #line 14827 "configure"
14827 #include "confdefs.h"
14828 #include <math.h>
14829                       #ifdef HAVE_IEEEFP_H
14830                       #include <ieeefp.h>
14831                       #endif
14832                      
14833 int main() {
14834  logl(0);
14835 ; return 0; }
14836 EOF
14837 if { (eval echo configure:14838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14838   rm -rf conftest*
14839   glibcpp_cv_func_logl_use=yes
14840 else
14841   echo "configure: failed program was:" >&5
14842   cat conftest.$ac_ext >&5
14843   rm -rf conftest*
14844   glibcpp_cv_func_logl_use=no
14845 fi
14846 rm -f conftest*
14847       ac_ext=c
14848 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14849 ac_cpp='$CPP $CPPFLAGS'
14850 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14851 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14852 cross_compiling=$ac_cv_prog_cc_cross
14853
14854     
14855 fi
14856
14857   fi
14858   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
14859
14860   if test x$glibcpp_cv_func_logl_use = x"yes"; then
14861     for ac_func in logl
14862 do
14863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14864 echo "configure:14865: checking for $ac_func" >&5
14865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14866   echo $ac_n "(cached) $ac_c" 1>&6
14867 else
14868   cat > conftest.$ac_ext <<EOF
14869 #line 14870 "configure"
14870 #include "confdefs.h"
14871 /* System header to define __stub macros and hopefully few prototypes,
14872     which can conflict with char $ac_func(); below.  */
14873 #include <assert.h>
14874 /* Override any gcc2 internal prototype to avoid an error.  */
14875 /* We use char because int might match the return type of a gcc2
14876     builtin and then its argument prototype would still apply.  */
14877 char $ac_func();
14878
14879 int main() {
14880
14881 /* The GNU C library defines this for functions which it implements
14882     to always fail with ENOSYS.  Some functions are actually named
14883     something starting with __ and the normal name is an alias.  */
14884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14885 choke me
14886 #else
14887 $ac_func();
14888 #endif
14889
14890 ; return 0; }
14891 EOF
14892 if { (eval echo configure:14893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14893   rm -rf conftest*
14894   eval "ac_cv_func_$ac_func=yes"
14895 else
14896   echo "configure: failed program was:" >&5
14897   cat conftest.$ac_ext >&5
14898   rm -rf conftest*
14899   eval "ac_cv_func_$ac_func=no"
14900 fi
14901 rm -f conftest*
14902 fi
14903
14904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14905   echo "$ac_t""yes" 1>&6
14906     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14907   cat >> confdefs.h <<EOF
14908 #define $ac_tr_func 1
14909 EOF
14910  
14911 else
14912   echo "$ac_t""no" 1>&6
14913 fi
14914 done
14915     
14916   else
14917     
14918   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
14919 echo "configure:14920: checking for _logl declaration" >&5
14920   if test x${glibcpp_cv_func__logl_use+set} != xset; then
14921     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
14922   echo $ac_n "(cached) $ac_c" 1>&6
14923 else
14924   
14925       
14926       ac_ext=C
14927 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14928 ac_cpp='$CXXCPP $CPPFLAGS'
14929 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14930 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14931 cross_compiling=$ac_cv_prog_cxx_cross
14932
14933       cat > conftest.$ac_ext <<EOF
14934 #line 14935 "configure"
14935 #include "confdefs.h"
14936 #include <math.h>
14937                       #ifdef HAVE_IEEEFP_H
14938                       #include <ieeefp.h>
14939                       #endif
14940                      
14941 int main() {
14942  _logl(0);
14943 ; return 0; }
14944 EOF
14945 if { (eval echo configure:14946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14946   rm -rf conftest*
14947   glibcpp_cv_func__logl_use=yes
14948 else
14949   echo "configure: failed program was:" >&5
14950   cat conftest.$ac_ext >&5
14951   rm -rf conftest*
14952   glibcpp_cv_func__logl_use=no
14953 fi
14954 rm -f conftest*
14955       ac_ext=c
14956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14957 ac_cpp='$CPP $CPPFLAGS'
14958 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14959 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14960 cross_compiling=$ac_cv_prog_cc_cross
14961
14962     
14963 fi
14964
14965   fi
14966   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
14967
14968     if test x$glibcpp_cv_func__logl_use = x"yes"; then
14969       for ac_func in _logl
14970 do
14971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14972 echo "configure:14973: checking for $ac_func" >&5
14973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14974   echo $ac_n "(cached) $ac_c" 1>&6
14975 else
14976   cat > conftest.$ac_ext <<EOF
14977 #line 14978 "configure"
14978 #include "confdefs.h"
14979 /* System header to define __stub macros and hopefully few prototypes,
14980     which can conflict with char $ac_func(); below.  */
14981 #include <assert.h>
14982 /* Override any gcc2 internal prototype to avoid an error.  */
14983 /* We use char because int might match the return type of a gcc2
14984     builtin and then its argument prototype would still apply.  */
14985 char $ac_func();
14986
14987 int main() {
14988
14989 /* The GNU C library defines this for functions which it implements
14990     to always fail with ENOSYS.  Some functions are actually named
14991     something starting with __ and the normal name is an alias.  */
14992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14993 choke me
14994 #else
14995 $ac_func();
14996 #endif
14997
14998 ; return 0; }
14999 EOF
15000 if { (eval echo configure:15001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15001   rm -rf conftest*
15002   eval "ac_cv_func_$ac_func=yes"
15003 else
15004   echo "configure: failed program was:" >&5
15005   cat conftest.$ac_ext >&5
15006   rm -rf conftest*
15007   eval "ac_cv_func_$ac_func=no"
15008 fi
15009 rm -f conftest*
15010 fi
15011
15012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15013   echo "$ac_t""yes" 1>&6
15014     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15015   cat >> confdefs.h <<EOF
15016 #define $ac_tr_func 1
15017 EOF
15018  
15019 else
15020   echo "$ac_t""no" 1>&6
15021 fi
15022 done
15023     
15024     fi
15025   fi
15026
15027   
15028   
15029   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
15030 echo "configure:15031: checking for log10l declaration" >&5
15031   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
15032     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
15033   echo $ac_n "(cached) $ac_c" 1>&6
15034 else
15035   
15036       
15037       ac_ext=C
15038 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15039 ac_cpp='$CXXCPP $CPPFLAGS'
15040 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15041 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15042 cross_compiling=$ac_cv_prog_cxx_cross
15043
15044       cat > conftest.$ac_ext <<EOF
15045 #line 15046 "configure"
15046 #include "confdefs.h"
15047 #include <math.h>
15048                       #ifdef HAVE_IEEEFP_H
15049                       #include <ieeefp.h>
15050                       #endif
15051                      
15052 int main() {
15053  log10l(0);
15054 ; return 0; }
15055 EOF
15056 if { (eval echo configure:15057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15057   rm -rf conftest*
15058   glibcpp_cv_func_log10l_use=yes
15059 else
15060   echo "configure: failed program was:" >&5
15061   cat conftest.$ac_ext >&5
15062   rm -rf conftest*
15063   glibcpp_cv_func_log10l_use=no
15064 fi
15065 rm -f conftest*
15066       ac_ext=c
15067 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15068 ac_cpp='$CPP $CPPFLAGS'
15069 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15070 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15071 cross_compiling=$ac_cv_prog_cc_cross
15072
15073     
15074 fi
15075
15076   fi
15077   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
15078
15079   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
15080     for ac_func in log10l
15081 do
15082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15083 echo "configure:15084: checking for $ac_func" >&5
15084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15085   echo $ac_n "(cached) $ac_c" 1>&6
15086 else
15087   cat > conftest.$ac_ext <<EOF
15088 #line 15089 "configure"
15089 #include "confdefs.h"
15090 /* System header to define __stub macros and hopefully few prototypes,
15091     which can conflict with char $ac_func(); below.  */
15092 #include <assert.h>
15093 /* Override any gcc2 internal prototype to avoid an error.  */
15094 /* We use char because int might match the return type of a gcc2
15095     builtin and then its argument prototype would still apply.  */
15096 char $ac_func();
15097
15098 int main() {
15099
15100 /* The GNU C library defines this for functions which it implements
15101     to always fail with ENOSYS.  Some functions are actually named
15102     something starting with __ and the normal name is an alias.  */
15103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15104 choke me
15105 #else
15106 $ac_func();
15107 #endif
15108
15109 ; return 0; }
15110 EOF
15111 if { (eval echo configure:15112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15112   rm -rf conftest*
15113   eval "ac_cv_func_$ac_func=yes"
15114 else
15115   echo "configure: failed program was:" >&5
15116   cat conftest.$ac_ext >&5
15117   rm -rf conftest*
15118   eval "ac_cv_func_$ac_func=no"
15119 fi
15120 rm -f conftest*
15121 fi
15122
15123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15124   echo "$ac_t""yes" 1>&6
15125     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15126   cat >> confdefs.h <<EOF
15127 #define $ac_tr_func 1
15128 EOF
15129  
15130 else
15131   echo "$ac_t""no" 1>&6
15132 fi
15133 done
15134     
15135   else
15136     
15137   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
15138 echo "configure:15139: checking for _log10l declaration" >&5
15139   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
15140     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
15141   echo $ac_n "(cached) $ac_c" 1>&6
15142 else
15143   
15144       
15145       ac_ext=C
15146 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15147 ac_cpp='$CXXCPP $CPPFLAGS'
15148 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15149 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15150 cross_compiling=$ac_cv_prog_cxx_cross
15151
15152       cat > conftest.$ac_ext <<EOF
15153 #line 15154 "configure"
15154 #include "confdefs.h"
15155 #include <math.h>
15156                       #ifdef HAVE_IEEEFP_H
15157                       #include <ieeefp.h>
15158                       #endif
15159                      
15160 int main() {
15161  _log10l(0);
15162 ; return 0; }
15163 EOF
15164 if { (eval echo configure:15165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15165   rm -rf conftest*
15166   glibcpp_cv_func__log10l_use=yes
15167 else
15168   echo "configure: failed program was:" >&5
15169   cat conftest.$ac_ext >&5
15170   rm -rf conftest*
15171   glibcpp_cv_func__log10l_use=no
15172 fi
15173 rm -f conftest*
15174       ac_ext=c
15175 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15176 ac_cpp='$CPP $CPPFLAGS'
15177 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15178 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15179 cross_compiling=$ac_cv_prog_cc_cross
15180
15181     
15182 fi
15183
15184   fi
15185   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
15186
15187     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
15188       for ac_func in _log10l
15189 do
15190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15191 echo "configure:15192: checking for $ac_func" >&5
15192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15193   echo $ac_n "(cached) $ac_c" 1>&6
15194 else
15195   cat > conftest.$ac_ext <<EOF
15196 #line 15197 "configure"
15197 #include "confdefs.h"
15198 /* System header to define __stub macros and hopefully few prototypes,
15199     which can conflict with char $ac_func(); below.  */
15200 #include <assert.h>
15201 /* Override any gcc2 internal prototype to avoid an error.  */
15202 /* We use char because int might match the return type of a gcc2
15203     builtin and then its argument prototype would still apply.  */
15204 char $ac_func();
15205
15206 int main() {
15207
15208 /* The GNU C library defines this for functions which it implements
15209     to always fail with ENOSYS.  Some functions are actually named
15210     something starting with __ and the normal name is an alias.  */
15211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15212 choke me
15213 #else
15214 $ac_func();
15215 #endif
15216
15217 ; return 0; }
15218 EOF
15219 if { (eval echo configure:15220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15220   rm -rf conftest*
15221   eval "ac_cv_func_$ac_func=yes"
15222 else
15223   echo "configure: failed program was:" >&5
15224   cat conftest.$ac_ext >&5
15225   rm -rf conftest*
15226   eval "ac_cv_func_$ac_func=no"
15227 fi
15228 rm -f conftest*
15229 fi
15230
15231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15232   echo "$ac_t""yes" 1>&6
15233     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15234   cat >> confdefs.h <<EOF
15235 #define $ac_tr_func 1
15236 EOF
15237  
15238 else
15239   echo "$ac_t""no" 1>&6
15240 fi
15241 done
15242     
15243     fi
15244   fi
15245
15246   
15247   
15248   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
15249 echo "configure:15250: checking for modfl declaration" >&5
15250   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
15251     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
15252   echo $ac_n "(cached) $ac_c" 1>&6
15253 else
15254   
15255       
15256       ac_ext=C
15257 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15258 ac_cpp='$CXXCPP $CPPFLAGS'
15259 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15260 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15261 cross_compiling=$ac_cv_prog_cxx_cross
15262
15263       cat > conftest.$ac_ext <<EOF
15264 #line 15265 "configure"
15265 #include "confdefs.h"
15266 #include <math.h>
15267 int main() {
15268  modfl(0, 0);
15269 ; return 0; }
15270 EOF
15271 if { (eval echo configure:15272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15272   rm -rf conftest*
15273   glibcpp_cv_func_modfl_use=yes
15274 else
15275   echo "configure: failed program was:" >&5
15276   cat conftest.$ac_ext >&5
15277   rm -rf conftest*
15278   glibcpp_cv_func_modfl_use=no
15279 fi
15280 rm -f conftest*
15281       ac_ext=c
15282 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15283 ac_cpp='$CPP $CPPFLAGS'
15284 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15285 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15286 cross_compiling=$ac_cv_prog_cc_cross
15287
15288     
15289 fi
15290
15291   fi
15292   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
15293
15294   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
15295     for ac_func in modfl
15296 do
15297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15298 echo "configure:15299: checking for $ac_func" >&5
15299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15300   echo $ac_n "(cached) $ac_c" 1>&6
15301 else
15302   cat > conftest.$ac_ext <<EOF
15303 #line 15304 "configure"
15304 #include "confdefs.h"
15305 /* System header to define __stub macros and hopefully few prototypes,
15306     which can conflict with char $ac_func(); below.  */
15307 #include <assert.h>
15308 /* Override any gcc2 internal prototype to avoid an error.  */
15309 /* We use char because int might match the return type of a gcc2
15310     builtin and then its argument prototype would still apply.  */
15311 char $ac_func();
15312
15313 int main() {
15314
15315 /* The GNU C library defines this for functions which it implements
15316     to always fail with ENOSYS.  Some functions are actually named
15317     something starting with __ and the normal name is an alias.  */
15318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15319 choke me
15320 #else
15321 $ac_func();
15322 #endif
15323
15324 ; return 0; }
15325 EOF
15326 if { (eval echo configure:15327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15327   rm -rf conftest*
15328   eval "ac_cv_func_$ac_func=yes"
15329 else
15330   echo "configure: failed program was:" >&5
15331   cat conftest.$ac_ext >&5
15332   rm -rf conftest*
15333   eval "ac_cv_func_$ac_func=no"
15334 fi
15335 rm -f conftest*
15336 fi
15337
15338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15339   echo "$ac_t""yes" 1>&6
15340     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15341   cat >> confdefs.h <<EOF
15342 #define $ac_tr_func 1
15343 EOF
15344  
15345 else
15346   echo "$ac_t""no" 1>&6
15347 fi
15348 done
15349     
15350   else
15351     
15352   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
15353 echo "configure:15354: checking for _modfl declaration" >&5
15354   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
15355     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
15356   echo $ac_n "(cached) $ac_c" 1>&6
15357 else
15358   
15359       
15360       ac_ext=C
15361 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15362 ac_cpp='$CXXCPP $CPPFLAGS'
15363 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15364 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15365 cross_compiling=$ac_cv_prog_cxx_cross
15366
15367       cat > conftest.$ac_ext <<EOF
15368 #line 15369 "configure"
15369 #include "confdefs.h"
15370 #include <math.h>
15371 int main() {
15372  _modfl(0, 0);
15373 ; return 0; }
15374 EOF
15375 if { (eval echo configure:15376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15376   rm -rf conftest*
15377   glibcpp_cv_func__modfl_use=yes
15378 else
15379   echo "configure: failed program was:" >&5
15380   cat conftest.$ac_ext >&5
15381   rm -rf conftest*
15382   glibcpp_cv_func__modfl_use=no
15383 fi
15384 rm -f conftest*
15385       ac_ext=c
15386 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15387 ac_cpp='$CPP $CPPFLAGS'
15388 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15389 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15390 cross_compiling=$ac_cv_prog_cc_cross
15391
15392     
15393 fi
15394
15395   fi
15396   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
15397
15398     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
15399       for ac_func in _modfl
15400 do
15401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15402 echo "configure:15403: checking for $ac_func" >&5
15403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15404   echo $ac_n "(cached) $ac_c" 1>&6
15405 else
15406   cat > conftest.$ac_ext <<EOF
15407 #line 15408 "configure"
15408 #include "confdefs.h"
15409 /* System header to define __stub macros and hopefully few prototypes,
15410     which can conflict with char $ac_func(); below.  */
15411 #include <assert.h>
15412 /* Override any gcc2 internal prototype to avoid an error.  */
15413 /* We use char because int might match the return type of a gcc2
15414     builtin and then its argument prototype would still apply.  */
15415 char $ac_func();
15416
15417 int main() {
15418
15419 /* The GNU C library defines this for functions which it implements
15420     to always fail with ENOSYS.  Some functions are actually named
15421     something starting with __ and the normal name is an alias.  */
15422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15423 choke me
15424 #else
15425 $ac_func();
15426 #endif
15427
15428 ; return 0; }
15429 EOF
15430 if { (eval echo configure:15431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15431   rm -rf conftest*
15432   eval "ac_cv_func_$ac_func=yes"
15433 else
15434   echo "configure: failed program was:" >&5
15435   cat conftest.$ac_ext >&5
15436   rm -rf conftest*
15437   eval "ac_cv_func_$ac_func=no"
15438 fi
15439 rm -f conftest*
15440 fi
15441
15442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15443   echo "$ac_t""yes" 1>&6
15444     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15445   cat >> confdefs.h <<EOF
15446 #define $ac_tr_func 1
15447 EOF
15448  
15449 else
15450   echo "$ac_t""no" 1>&6
15451 fi
15452 done
15453     
15454     fi
15455   fi
15456
15457   
15458   
15459   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
15460 echo "configure:15461: checking for powl declaration" >&5
15461   if test x${glibcpp_cv_func_powl_use+set} != xset; then
15462     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
15463   echo $ac_n "(cached) $ac_c" 1>&6
15464 else
15465   
15466       
15467       ac_ext=C
15468 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15469 ac_cpp='$CXXCPP $CPPFLAGS'
15470 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15471 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15472 cross_compiling=$ac_cv_prog_cxx_cross
15473
15474       cat > conftest.$ac_ext <<EOF
15475 #line 15476 "configure"
15476 #include "confdefs.h"
15477 #include <math.h>
15478 int main() {
15479  powl(0, 0);
15480 ; return 0; }
15481 EOF
15482 if { (eval echo configure:15483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15483   rm -rf conftest*
15484   glibcpp_cv_func_powl_use=yes
15485 else
15486   echo "configure: failed program was:" >&5
15487   cat conftest.$ac_ext >&5
15488   rm -rf conftest*
15489   glibcpp_cv_func_powl_use=no
15490 fi
15491 rm -f conftest*
15492       ac_ext=c
15493 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15494 ac_cpp='$CPP $CPPFLAGS'
15495 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15496 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15497 cross_compiling=$ac_cv_prog_cc_cross
15498
15499     
15500 fi
15501
15502   fi
15503   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
15504
15505   if test x$glibcpp_cv_func_powl_use = x"yes"; then
15506     for ac_func in powl
15507 do
15508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15509 echo "configure:15510: checking for $ac_func" >&5
15510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15511   echo $ac_n "(cached) $ac_c" 1>&6
15512 else
15513   cat > conftest.$ac_ext <<EOF
15514 #line 15515 "configure"
15515 #include "confdefs.h"
15516 /* System header to define __stub macros and hopefully few prototypes,
15517     which can conflict with char $ac_func(); below.  */
15518 #include <assert.h>
15519 /* Override any gcc2 internal prototype to avoid an error.  */
15520 /* We use char because int might match the return type of a gcc2
15521     builtin and then its argument prototype would still apply.  */
15522 char $ac_func();
15523
15524 int main() {
15525
15526 /* The GNU C library defines this for functions which it implements
15527     to always fail with ENOSYS.  Some functions are actually named
15528     something starting with __ and the normal name is an alias.  */
15529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15530 choke me
15531 #else
15532 $ac_func();
15533 #endif
15534
15535 ; return 0; }
15536 EOF
15537 if { (eval echo configure:15538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15538   rm -rf conftest*
15539   eval "ac_cv_func_$ac_func=yes"
15540 else
15541   echo "configure: failed program was:" >&5
15542   cat conftest.$ac_ext >&5
15543   rm -rf conftest*
15544   eval "ac_cv_func_$ac_func=no"
15545 fi
15546 rm -f conftest*
15547 fi
15548
15549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15550   echo "$ac_t""yes" 1>&6
15551     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15552   cat >> confdefs.h <<EOF
15553 #define $ac_tr_func 1
15554 EOF
15555  
15556 else
15557   echo "$ac_t""no" 1>&6
15558 fi
15559 done
15560     
15561   else
15562     
15563   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
15564 echo "configure:15565: checking for _powl declaration" >&5
15565   if test x${glibcpp_cv_func__powl_use+set} != xset; then
15566     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
15567   echo $ac_n "(cached) $ac_c" 1>&6
15568 else
15569   
15570       
15571       ac_ext=C
15572 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15573 ac_cpp='$CXXCPP $CPPFLAGS'
15574 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15575 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15576 cross_compiling=$ac_cv_prog_cxx_cross
15577
15578       cat > conftest.$ac_ext <<EOF
15579 #line 15580 "configure"
15580 #include "confdefs.h"
15581 #include <math.h>
15582 int main() {
15583  _powl(0, 0);
15584 ; return 0; }
15585 EOF
15586 if { (eval echo configure:15587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15587   rm -rf conftest*
15588   glibcpp_cv_func__powl_use=yes
15589 else
15590   echo "configure: failed program was:" >&5
15591   cat conftest.$ac_ext >&5
15592   rm -rf conftest*
15593   glibcpp_cv_func__powl_use=no
15594 fi
15595 rm -f conftest*
15596       ac_ext=c
15597 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15598 ac_cpp='$CPP $CPPFLAGS'
15599 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15600 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15601 cross_compiling=$ac_cv_prog_cc_cross
15602
15603     
15604 fi
15605
15606   fi
15607   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
15608
15609     if test x$glibcpp_cv_func__powl_use = x"yes"; then
15610       for ac_func in _powl
15611 do
15612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15613 echo "configure:15614: checking for $ac_func" >&5
15614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15615   echo $ac_n "(cached) $ac_c" 1>&6
15616 else
15617   cat > conftest.$ac_ext <<EOF
15618 #line 15619 "configure"
15619 #include "confdefs.h"
15620 /* System header to define __stub macros and hopefully few prototypes,
15621     which can conflict with char $ac_func(); below.  */
15622 #include <assert.h>
15623 /* Override any gcc2 internal prototype to avoid an error.  */
15624 /* We use char because int might match the return type of a gcc2
15625     builtin and then its argument prototype would still apply.  */
15626 char $ac_func();
15627
15628 int main() {
15629
15630 /* The GNU C library defines this for functions which it implements
15631     to always fail with ENOSYS.  Some functions are actually named
15632     something starting with __ and the normal name is an alias.  */
15633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15634 choke me
15635 #else
15636 $ac_func();
15637 #endif
15638
15639 ; return 0; }
15640 EOF
15641 if { (eval echo configure:15642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15642   rm -rf conftest*
15643   eval "ac_cv_func_$ac_func=yes"
15644 else
15645   echo "configure: failed program was:" >&5
15646   cat conftest.$ac_ext >&5
15647   rm -rf conftest*
15648   eval "ac_cv_func_$ac_func=no"
15649 fi
15650 rm -f conftest*
15651 fi
15652
15653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15654   echo "$ac_t""yes" 1>&6
15655     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15656   cat >> confdefs.h <<EOF
15657 #define $ac_tr_func 1
15658 EOF
15659  
15660 else
15661   echo "$ac_t""no" 1>&6
15662 fi
15663 done
15664     
15665     fi
15666   fi
15667
15668   
15669   
15670   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
15671 echo "configure:15672: checking for sqrtl declaration" >&5
15672   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
15673     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
15674   echo $ac_n "(cached) $ac_c" 1>&6
15675 else
15676   
15677       
15678       ac_ext=C
15679 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15680 ac_cpp='$CXXCPP $CPPFLAGS'
15681 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15682 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15683 cross_compiling=$ac_cv_prog_cxx_cross
15684
15685       cat > conftest.$ac_ext <<EOF
15686 #line 15687 "configure"
15687 #include "confdefs.h"
15688 #include <math.h>
15689                       #ifdef HAVE_IEEEFP_H
15690                       #include <ieeefp.h>
15691                       #endif
15692                      
15693 int main() {
15694  sqrtl(0);
15695 ; return 0; }
15696 EOF
15697 if { (eval echo configure:15698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15698   rm -rf conftest*
15699   glibcpp_cv_func_sqrtl_use=yes
15700 else
15701   echo "configure: failed program was:" >&5
15702   cat conftest.$ac_ext >&5
15703   rm -rf conftest*
15704   glibcpp_cv_func_sqrtl_use=no
15705 fi
15706 rm -f conftest*
15707       ac_ext=c
15708 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15709 ac_cpp='$CPP $CPPFLAGS'
15710 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15711 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15712 cross_compiling=$ac_cv_prog_cc_cross
15713
15714     
15715 fi
15716
15717   fi
15718   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
15719
15720   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
15721     for ac_func in sqrtl
15722 do
15723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15724 echo "configure:15725: checking for $ac_func" >&5
15725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15726   echo $ac_n "(cached) $ac_c" 1>&6
15727 else
15728   cat > conftest.$ac_ext <<EOF
15729 #line 15730 "configure"
15730 #include "confdefs.h"
15731 /* System header to define __stub macros and hopefully few prototypes,
15732     which can conflict with char $ac_func(); below.  */
15733 #include <assert.h>
15734 /* Override any gcc2 internal prototype to avoid an error.  */
15735 /* We use char because int might match the return type of a gcc2
15736     builtin and then its argument prototype would still apply.  */
15737 char $ac_func();
15738
15739 int main() {
15740
15741 /* The GNU C library defines this for functions which it implements
15742     to always fail with ENOSYS.  Some functions are actually named
15743     something starting with __ and the normal name is an alias.  */
15744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15745 choke me
15746 #else
15747 $ac_func();
15748 #endif
15749
15750 ; return 0; }
15751 EOF
15752 if { (eval echo configure:15753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15753   rm -rf conftest*
15754   eval "ac_cv_func_$ac_func=yes"
15755 else
15756   echo "configure: failed program was:" >&5
15757   cat conftest.$ac_ext >&5
15758   rm -rf conftest*
15759   eval "ac_cv_func_$ac_func=no"
15760 fi
15761 rm -f conftest*
15762 fi
15763
15764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15765   echo "$ac_t""yes" 1>&6
15766     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15767   cat >> confdefs.h <<EOF
15768 #define $ac_tr_func 1
15769 EOF
15770  
15771 else
15772   echo "$ac_t""no" 1>&6
15773 fi
15774 done
15775     
15776   else
15777     
15778   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
15779 echo "configure:15780: checking for _sqrtl declaration" >&5
15780   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
15781     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
15782   echo $ac_n "(cached) $ac_c" 1>&6
15783 else
15784   
15785       
15786       ac_ext=C
15787 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15788 ac_cpp='$CXXCPP $CPPFLAGS'
15789 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15790 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15791 cross_compiling=$ac_cv_prog_cxx_cross
15792
15793       cat > conftest.$ac_ext <<EOF
15794 #line 15795 "configure"
15795 #include "confdefs.h"
15796 #include <math.h>
15797                       #ifdef HAVE_IEEEFP_H
15798                       #include <ieeefp.h>
15799                       #endif
15800                      
15801 int main() {
15802  _sqrtl(0);
15803 ; return 0; }
15804 EOF
15805 if { (eval echo configure:15806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15806   rm -rf conftest*
15807   glibcpp_cv_func__sqrtl_use=yes
15808 else
15809   echo "configure: failed program was:" >&5
15810   cat conftest.$ac_ext >&5
15811   rm -rf conftest*
15812   glibcpp_cv_func__sqrtl_use=no
15813 fi
15814 rm -f conftest*
15815       ac_ext=c
15816 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15817 ac_cpp='$CPP $CPPFLAGS'
15818 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15819 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15820 cross_compiling=$ac_cv_prog_cc_cross
15821
15822     
15823 fi
15824
15825   fi
15826   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
15827
15828     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
15829       for ac_func in _sqrtl
15830 do
15831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15832 echo "configure:15833: checking for $ac_func" >&5
15833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15834   echo $ac_n "(cached) $ac_c" 1>&6
15835 else
15836   cat > conftest.$ac_ext <<EOF
15837 #line 15838 "configure"
15838 #include "confdefs.h"
15839 /* System header to define __stub macros and hopefully few prototypes,
15840     which can conflict with char $ac_func(); below.  */
15841 #include <assert.h>
15842 /* Override any gcc2 internal prototype to avoid an error.  */
15843 /* We use char because int might match the return type of a gcc2
15844     builtin and then its argument prototype would still apply.  */
15845 char $ac_func();
15846
15847 int main() {
15848
15849 /* The GNU C library defines this for functions which it implements
15850     to always fail with ENOSYS.  Some functions are actually named
15851     something starting with __ and the normal name is an alias.  */
15852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15853 choke me
15854 #else
15855 $ac_func();
15856 #endif
15857
15858 ; return 0; }
15859 EOF
15860 if { (eval echo configure:15861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15861   rm -rf conftest*
15862   eval "ac_cv_func_$ac_func=yes"
15863 else
15864   echo "configure: failed program was:" >&5
15865   cat conftest.$ac_ext >&5
15866   rm -rf conftest*
15867   eval "ac_cv_func_$ac_func=no"
15868 fi
15869 rm -f conftest*
15870 fi
15871
15872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15873   echo "$ac_t""yes" 1>&6
15874     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15875   cat >> confdefs.h <<EOF
15876 #define $ac_tr_func 1
15877 EOF
15878  
15879 else
15880   echo "$ac_t""no" 1>&6
15881 fi
15882 done
15883     
15884     fi
15885   fi
15886
15887   
15888   
15889   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
15890 echo "configure:15891: checking for sincosl declaration" >&5
15891   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
15892     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
15893   echo $ac_n "(cached) $ac_c" 1>&6
15894 else
15895   
15896       
15897       ac_ext=C
15898 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15899 ac_cpp='$CXXCPP $CPPFLAGS'
15900 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15901 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15902 cross_compiling=$ac_cv_prog_cxx_cross
15903
15904       cat > conftest.$ac_ext <<EOF
15905 #line 15906 "configure"
15906 #include "confdefs.h"
15907 #include <math.h>
15908 int main() {
15909  sincosl(0, 0, 0);
15910 ; return 0; }
15911 EOF
15912 if { (eval echo configure:15913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15913   rm -rf conftest*
15914   glibcpp_cv_func_sincosl_use=yes
15915 else
15916   echo "configure: failed program was:" >&5
15917   cat conftest.$ac_ext >&5
15918   rm -rf conftest*
15919   glibcpp_cv_func_sincosl_use=no
15920 fi
15921 rm -f conftest*
15922       ac_ext=c
15923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15924 ac_cpp='$CPP $CPPFLAGS'
15925 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15926 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15927 cross_compiling=$ac_cv_prog_cc_cross
15928
15929     
15930 fi
15931
15932   fi
15933   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
15934
15935   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
15936     for ac_func in sincosl
15937 do
15938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15939 echo "configure:15940: checking for $ac_func" >&5
15940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15941   echo $ac_n "(cached) $ac_c" 1>&6
15942 else
15943   cat > conftest.$ac_ext <<EOF
15944 #line 15945 "configure"
15945 #include "confdefs.h"
15946 /* System header to define __stub macros and hopefully few prototypes,
15947     which can conflict with char $ac_func(); below.  */
15948 #include <assert.h>
15949 /* Override any gcc2 internal prototype to avoid an error.  */
15950 /* We use char because int might match the return type of a gcc2
15951     builtin and then its argument prototype would still apply.  */
15952 char $ac_func();
15953
15954 int main() {
15955
15956 /* The GNU C library defines this for functions which it implements
15957     to always fail with ENOSYS.  Some functions are actually named
15958     something starting with __ and the normal name is an alias.  */
15959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15960 choke me
15961 #else
15962 $ac_func();
15963 #endif
15964
15965 ; return 0; }
15966 EOF
15967 if { (eval echo configure:15968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15968   rm -rf conftest*
15969   eval "ac_cv_func_$ac_func=yes"
15970 else
15971   echo "configure: failed program was:" >&5
15972   cat conftest.$ac_ext >&5
15973   rm -rf conftest*
15974   eval "ac_cv_func_$ac_func=no"
15975 fi
15976 rm -f conftest*
15977 fi
15978
15979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15980   echo "$ac_t""yes" 1>&6
15981     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15982   cat >> confdefs.h <<EOF
15983 #define $ac_tr_func 1
15984 EOF
15985  
15986 else
15987   echo "$ac_t""no" 1>&6
15988 fi
15989 done
15990     
15991   else
15992     
15993   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
15994 echo "configure:15995: checking for _sincosl declaration" >&5
15995   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
15996     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
15997   echo $ac_n "(cached) $ac_c" 1>&6
15998 else
15999   
16000       
16001       ac_ext=C
16002 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16003 ac_cpp='$CXXCPP $CPPFLAGS'
16004 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16005 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16006 cross_compiling=$ac_cv_prog_cxx_cross
16007
16008       cat > conftest.$ac_ext <<EOF
16009 #line 16010 "configure"
16010 #include "confdefs.h"
16011 #include <math.h>
16012 int main() {
16013  _sincosl(0, 0, 0);
16014 ; return 0; }
16015 EOF
16016 if { (eval echo configure:16017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16017   rm -rf conftest*
16018   glibcpp_cv_func__sincosl_use=yes
16019 else
16020   echo "configure: failed program was:" >&5
16021   cat conftest.$ac_ext >&5
16022   rm -rf conftest*
16023   glibcpp_cv_func__sincosl_use=no
16024 fi
16025 rm -f conftest*
16026       ac_ext=c
16027 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16028 ac_cpp='$CPP $CPPFLAGS'
16029 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16030 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16031 cross_compiling=$ac_cv_prog_cc_cross
16032
16033     
16034 fi
16035
16036   fi
16037   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
16038
16039     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
16040       for ac_func in _sincosl
16041 do
16042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16043 echo "configure:16044: checking for $ac_func" >&5
16044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16045   echo $ac_n "(cached) $ac_c" 1>&6
16046 else
16047   cat > conftest.$ac_ext <<EOF
16048 #line 16049 "configure"
16049 #include "confdefs.h"
16050 /* System header to define __stub macros and hopefully few prototypes,
16051     which can conflict with char $ac_func(); below.  */
16052 #include <assert.h>
16053 /* Override any gcc2 internal prototype to avoid an error.  */
16054 /* We use char because int might match the return type of a gcc2
16055     builtin and then its argument prototype would still apply.  */
16056 char $ac_func();
16057
16058 int main() {
16059
16060 /* The GNU C library defines this for functions which it implements
16061     to always fail with ENOSYS.  Some functions are actually named
16062     something starting with __ and the normal name is an alias.  */
16063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16064 choke me
16065 #else
16066 $ac_func();
16067 #endif
16068
16069 ; return 0; }
16070 EOF
16071 if { (eval echo configure:16072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16072   rm -rf conftest*
16073   eval "ac_cv_func_$ac_func=yes"
16074 else
16075   echo "configure: failed program was:" >&5
16076   cat conftest.$ac_ext >&5
16077   rm -rf conftest*
16078   eval "ac_cv_func_$ac_func=no"
16079 fi
16080 rm -f conftest*
16081 fi
16082
16083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16084   echo "$ac_t""yes" 1>&6
16085     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16086   cat >> confdefs.h <<EOF
16087 #define $ac_tr_func 1
16088 EOF
16089  
16090 else
16091   echo "$ac_t""no" 1>&6
16092 fi
16093 done
16094     
16095     fi
16096   fi
16097
16098   
16099   
16100   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
16101 echo "configure:16102: checking for finitel declaration" >&5
16102   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
16103     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
16104   echo $ac_n "(cached) $ac_c" 1>&6
16105 else
16106   
16107       
16108       ac_ext=C
16109 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16110 ac_cpp='$CXXCPP $CPPFLAGS'
16111 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16112 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16113 cross_compiling=$ac_cv_prog_cxx_cross
16114
16115       cat > conftest.$ac_ext <<EOF
16116 #line 16117 "configure"
16117 #include "confdefs.h"
16118 #include <math.h>
16119                       #ifdef HAVE_IEEEFP_H
16120                       #include <ieeefp.h>
16121                       #endif
16122                      
16123 int main() {
16124  finitel(0);
16125 ; return 0; }
16126 EOF
16127 if { (eval echo configure:16128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16128   rm -rf conftest*
16129   glibcpp_cv_func_finitel_use=yes
16130 else
16131   echo "configure: failed program was:" >&5
16132   cat conftest.$ac_ext >&5
16133   rm -rf conftest*
16134   glibcpp_cv_func_finitel_use=no
16135 fi
16136 rm -f conftest*
16137       ac_ext=c
16138 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16139 ac_cpp='$CPP $CPPFLAGS'
16140 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16141 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16142 cross_compiling=$ac_cv_prog_cc_cross
16143
16144     
16145 fi
16146
16147   fi
16148   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
16149
16150   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
16151     for ac_func in finitel
16152 do
16153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16154 echo "configure:16155: checking for $ac_func" >&5
16155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16156   echo $ac_n "(cached) $ac_c" 1>&6
16157 else
16158   cat > conftest.$ac_ext <<EOF
16159 #line 16160 "configure"
16160 #include "confdefs.h"
16161 /* System header to define __stub macros and hopefully few prototypes,
16162     which can conflict with char $ac_func(); below.  */
16163 #include <assert.h>
16164 /* Override any gcc2 internal prototype to avoid an error.  */
16165 /* We use char because int might match the return type of a gcc2
16166     builtin and then its argument prototype would still apply.  */
16167 char $ac_func();
16168
16169 int main() {
16170
16171 /* The GNU C library defines this for functions which it implements
16172     to always fail with ENOSYS.  Some functions are actually named
16173     something starting with __ and the normal name is an alias.  */
16174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16175 choke me
16176 #else
16177 $ac_func();
16178 #endif
16179
16180 ; return 0; }
16181 EOF
16182 if { (eval echo configure:16183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16183   rm -rf conftest*
16184   eval "ac_cv_func_$ac_func=yes"
16185 else
16186   echo "configure: failed program was:" >&5
16187   cat conftest.$ac_ext >&5
16188   rm -rf conftest*
16189   eval "ac_cv_func_$ac_func=no"
16190 fi
16191 rm -f conftest*
16192 fi
16193
16194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16195   echo "$ac_t""yes" 1>&6
16196     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16197   cat >> confdefs.h <<EOF
16198 #define $ac_tr_func 1
16199 EOF
16200  
16201 else
16202   echo "$ac_t""no" 1>&6
16203 fi
16204 done
16205     
16206   else
16207     
16208   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
16209 echo "configure:16210: checking for _finitel declaration" >&5
16210   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
16211     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
16212   echo $ac_n "(cached) $ac_c" 1>&6
16213 else
16214   
16215       
16216       ac_ext=C
16217 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16218 ac_cpp='$CXXCPP $CPPFLAGS'
16219 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16220 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16221 cross_compiling=$ac_cv_prog_cxx_cross
16222
16223       cat > conftest.$ac_ext <<EOF
16224 #line 16225 "configure"
16225 #include "confdefs.h"
16226 #include <math.h>
16227                       #ifdef HAVE_IEEEFP_H
16228                       #include <ieeefp.h>
16229                       #endif
16230                      
16231 int main() {
16232  _finitel(0);
16233 ; return 0; }
16234 EOF
16235 if { (eval echo configure:16236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16236   rm -rf conftest*
16237   glibcpp_cv_func__finitel_use=yes
16238 else
16239   echo "configure: failed program was:" >&5
16240   cat conftest.$ac_ext >&5
16241   rm -rf conftest*
16242   glibcpp_cv_func__finitel_use=no
16243 fi
16244 rm -f conftest*
16245       ac_ext=c
16246 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16247 ac_cpp='$CPP $CPPFLAGS'
16248 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16249 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16250 cross_compiling=$ac_cv_prog_cc_cross
16251
16252     
16253 fi
16254
16255   fi
16256   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
16257
16258     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
16259       for ac_func in _finitel
16260 do
16261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16262 echo "configure:16263: checking for $ac_func" >&5
16263 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16264   echo $ac_n "(cached) $ac_c" 1>&6
16265 else
16266   cat > conftest.$ac_ext <<EOF
16267 #line 16268 "configure"
16268 #include "confdefs.h"
16269 /* System header to define __stub macros and hopefully few prototypes,
16270     which can conflict with char $ac_func(); below.  */
16271 #include <assert.h>
16272 /* Override any gcc2 internal prototype to avoid an error.  */
16273 /* We use char because int might match the return type of a gcc2
16274     builtin and then its argument prototype would still apply.  */
16275 char $ac_func();
16276
16277 int main() {
16278
16279 /* The GNU C library defines this for functions which it implements
16280     to always fail with ENOSYS.  Some functions are actually named
16281     something starting with __ and the normal name is an alias.  */
16282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16283 choke me
16284 #else
16285 $ac_func();
16286 #endif
16287
16288 ; return 0; }
16289 EOF
16290 if { (eval echo configure:16291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16291   rm -rf conftest*
16292   eval "ac_cv_func_$ac_func=yes"
16293 else
16294   echo "configure: failed program was:" >&5
16295   cat conftest.$ac_ext >&5
16296   rm -rf conftest*
16297   eval "ac_cv_func_$ac_func=no"
16298 fi
16299 rm -f conftest*
16300 fi
16301
16302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16303   echo "$ac_t""yes" 1>&6
16304     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16305   cat >> confdefs.h <<EOF
16306 #define $ac_tr_func 1
16307 EOF
16308  
16309 else
16310   echo "$ac_t""no" 1>&6
16311 fi
16312 done
16313     
16314     fi
16315   fi
16316
16317
16318         
16319     
16320   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
16321 echo "configure:16322: checking for _float trig functions" >&5
16322   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
16323   echo $ac_n "(cached) $ac_c" 1>&6
16324 else
16325   
16326     
16327     ac_ext=C
16328 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16329 ac_cpp='$CXXCPP $CPPFLAGS'
16330 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16331 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16332 cross_compiling=$ac_cv_prog_cxx_cross
16333
16334     cat > conftest.$ac_ext <<EOF
16335 #line 16336 "configure"
16336 #include "confdefs.h"
16337 #include <math.h>
16338 int main() {
16339  `for x in _acosf _asinf _atanf \
16340                                           _cosf _sinf _tanf \
16341                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
16342 ; return 0; }
16343 EOF
16344 if { (eval echo configure:16345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16345   rm -rf conftest*
16346   glibcpp_cv_func__float_trig_use=yes
16347 else
16348   echo "configure: failed program was:" >&5
16349   cat conftest.$ac_ext >&5
16350   rm -rf conftest*
16351   glibcpp_cv_func__float_trig_use=no
16352 fi
16353 rm -f conftest*
16354     ac_ext=c
16355 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16356 ac_cpp='$CPP $CPPFLAGS'
16357 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16358 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16359 cross_compiling=$ac_cv_prog_cc_cross
16360
16361 fi
16362
16363   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
16364   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
16365     for ac_func in _acosf _asinf _atanf \
16366                                           _cosf _sinf _tanf \
16367                                           _coshf _sinhf _tanhf
16368 do
16369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16370 echo "configure:16371: checking for $ac_func" >&5
16371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16372   echo $ac_n "(cached) $ac_c" 1>&6
16373 else
16374   cat > conftest.$ac_ext <<EOF
16375 #line 16376 "configure"
16376 #include "confdefs.h"
16377 /* System header to define __stub macros and hopefully few prototypes,
16378     which can conflict with char $ac_func(); below.  */
16379 #include <assert.h>
16380 /* Override any gcc2 internal prototype to avoid an error.  */
16381 /* We use char because int might match the return type of a gcc2
16382     builtin and then its argument prototype would still apply.  */
16383 char $ac_func();
16384
16385 int main() {
16386
16387 /* The GNU C library defines this for functions which it implements
16388     to always fail with ENOSYS.  Some functions are actually named
16389     something starting with __ and the normal name is an alias.  */
16390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16391 choke me
16392 #else
16393 $ac_func();
16394 #endif
16395
16396 ; return 0; }
16397 EOF
16398 if { (eval echo configure:16399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16399   rm -rf conftest*
16400   eval "ac_cv_func_$ac_func=yes"
16401 else
16402   echo "configure: failed program was:" >&5
16403   cat conftest.$ac_ext >&5
16404   rm -rf conftest*
16405   eval "ac_cv_func_$ac_func=no"
16406 fi
16407 rm -f conftest*
16408 fi
16409
16410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16411   echo "$ac_t""yes" 1>&6
16412     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16413   cat >> confdefs.h <<EOF
16414 #define $ac_tr_func 1
16415 EOF
16416  
16417 else
16418   echo "$ac_t""no" 1>&6
16419 fi
16420 done
16421
16422   fi
16423
16424   
16425   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
16426 echo "configure:16427: checking for _float round functions" >&5
16427   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
16428   echo $ac_n "(cached) $ac_c" 1>&6
16429 else
16430   
16431     
16432     ac_ext=C
16433 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16434 ac_cpp='$CXXCPP $CPPFLAGS'
16435 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16436 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16437 cross_compiling=$ac_cv_prog_cxx_cross
16438
16439     cat > conftest.$ac_ext <<EOF
16440 #line 16441 "configure"
16441 #include "confdefs.h"
16442 #include <math.h>
16443 int main() {
16444  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
16445 ; return 0; }
16446 EOF
16447 if { (eval echo configure:16448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16448   rm -rf conftest*
16449   glibcpp_cv_func__float_round_use=yes
16450 else
16451   echo "configure: failed program was:" >&5
16452   cat conftest.$ac_ext >&5
16453   rm -rf conftest*
16454   glibcpp_cv_func__float_round_use=no
16455 fi
16456 rm -f conftest*
16457     ac_ext=c
16458 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16459 ac_cpp='$CPP $CPPFLAGS'
16460 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16461 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16462 cross_compiling=$ac_cv_prog_cc_cross
16463
16464 fi
16465
16466   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
16467   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
16468     for ac_func in _ceilf _floorf
16469 do
16470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16471 echo "configure:16472: checking for $ac_func" >&5
16472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16473   echo $ac_n "(cached) $ac_c" 1>&6
16474 else
16475   cat > conftest.$ac_ext <<EOF
16476 #line 16477 "configure"
16477 #include "confdefs.h"
16478 /* System header to define __stub macros and hopefully few prototypes,
16479     which can conflict with char $ac_func(); below.  */
16480 #include <assert.h>
16481 /* Override any gcc2 internal prototype to avoid an error.  */
16482 /* We use char because int might match the return type of a gcc2
16483     builtin and then its argument prototype would still apply.  */
16484 char $ac_func();
16485
16486 int main() {
16487
16488 /* The GNU C library defines this for functions which it implements
16489     to always fail with ENOSYS.  Some functions are actually named
16490     something starting with __ and the normal name is an alias.  */
16491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16492 choke me
16493 #else
16494 $ac_func();
16495 #endif
16496
16497 ; return 0; }
16498 EOF
16499 if { (eval echo configure:16500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16500   rm -rf conftest*
16501   eval "ac_cv_func_$ac_func=yes"
16502 else
16503   echo "configure: failed program was:" >&5
16504   cat conftest.$ac_ext >&5
16505   rm -rf conftest*
16506   eval "ac_cv_func_$ac_func=no"
16507 fi
16508 rm -f conftest*
16509 fi
16510
16511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16512   echo "$ac_t""yes" 1>&6
16513     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16514   cat >> confdefs.h <<EOF
16515 #define $ac_tr_func 1
16516 EOF
16517  
16518 else
16519   echo "$ac_t""no" 1>&6
16520 fi
16521 done
16522
16523   fi
16524
16525
16526     
16527   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
16528 echo "configure:16529: checking for _long double trig functions" >&5
16529   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
16530   echo $ac_n "(cached) $ac_c" 1>&6
16531 else
16532   
16533     
16534     ac_ext=C
16535 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16536 ac_cpp='$CXXCPP $CPPFLAGS'
16537 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16538 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16539 cross_compiling=$ac_cv_prog_cxx_cross
16540
16541     cat > conftest.$ac_ext <<EOF
16542 #line 16543 "configure"
16543 #include "confdefs.h"
16544 #include <math.h>
16545 int main() {
16546  `for x in _acosl _asinl _atanl \
16547                                           _cosl _sinl _tanl \
16548                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
16549 ; return 0; }
16550 EOF
16551 if { (eval echo configure:16552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16552   rm -rf conftest*
16553   glibcpp_cv_func__long_double_trig_use=yes
16554 else
16555   echo "configure: failed program was:" >&5
16556   cat conftest.$ac_ext >&5
16557   rm -rf conftest*
16558   glibcpp_cv_func__long_double_trig_use=no
16559 fi
16560 rm -f conftest*
16561     ac_ext=c
16562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16563 ac_cpp='$CPP $CPPFLAGS'
16564 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16565 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16566 cross_compiling=$ac_cv_prog_cc_cross
16567
16568 fi
16569
16570   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
16571   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
16572     for ac_func in _acosl _asinl _atanl \
16573                                           _cosl _sinl _tanl \
16574                                           _coshl _sinhl _tanhl
16575 do
16576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16577 echo "configure:16578: checking for $ac_func" >&5
16578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16579   echo $ac_n "(cached) $ac_c" 1>&6
16580 else
16581   cat > conftest.$ac_ext <<EOF
16582 #line 16583 "configure"
16583 #include "confdefs.h"
16584 /* System header to define __stub macros and hopefully few prototypes,
16585     which can conflict with char $ac_func(); below.  */
16586 #include <assert.h>
16587 /* Override any gcc2 internal prototype to avoid an error.  */
16588 /* We use char because int might match the return type of a gcc2
16589     builtin and then its argument prototype would still apply.  */
16590 char $ac_func();
16591
16592 int main() {
16593
16594 /* The GNU C library defines this for functions which it implements
16595     to always fail with ENOSYS.  Some functions are actually named
16596     something starting with __ and the normal name is an alias.  */
16597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16598 choke me
16599 #else
16600 $ac_func();
16601 #endif
16602
16603 ; return 0; }
16604 EOF
16605 if { (eval echo configure:16606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16606   rm -rf conftest*
16607   eval "ac_cv_func_$ac_func=yes"
16608 else
16609   echo "configure: failed program was:" >&5
16610   cat conftest.$ac_ext >&5
16611   rm -rf conftest*
16612   eval "ac_cv_func_$ac_func=no"
16613 fi
16614 rm -f conftest*
16615 fi
16616
16617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16618   echo "$ac_t""yes" 1>&6
16619     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16620   cat >> confdefs.h <<EOF
16621 #define $ac_tr_func 1
16622 EOF
16623  
16624 else
16625   echo "$ac_t""no" 1>&6
16626 fi
16627 done
16628
16629   fi
16630
16631   
16632   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
16633 echo "configure:16634: checking for _long double round functions" >&5
16634   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
16635   echo $ac_n "(cached) $ac_c" 1>&6
16636 else
16637   
16638     
16639     ac_ext=C
16640 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16641 ac_cpp='$CXXCPP $CPPFLAGS'
16642 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16643 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16644 cross_compiling=$ac_cv_prog_cxx_cross
16645
16646     cat > conftest.$ac_ext <<EOF
16647 #line 16648 "configure"
16648 #include "confdefs.h"
16649 #include <math.h>
16650 int main() {
16651  `for x in _ceill _floorl; do echo "$x (0);"; done` 
16652 ; return 0; }
16653 EOF
16654 if { (eval echo configure:16655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16655   rm -rf conftest*
16656   glibcpp_cv_func__long_double_round_use=yes
16657 else
16658   echo "configure: failed program was:" >&5
16659   cat conftest.$ac_ext >&5
16660   rm -rf conftest*
16661   glibcpp_cv_func__long_double_round_use=no
16662 fi
16663 rm -f conftest*
16664     ac_ext=c
16665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16666 ac_cpp='$CPP $CPPFLAGS'
16667 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16668 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16669 cross_compiling=$ac_cv_prog_cc_cross
16670
16671 fi
16672
16673   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
16674   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
16675     for ac_func in _ceill _floorl
16676 do
16677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16678 echo "configure:16679: checking for $ac_func" >&5
16679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16680   echo $ac_n "(cached) $ac_c" 1>&6
16681 else
16682   cat > conftest.$ac_ext <<EOF
16683 #line 16684 "configure"
16684 #include "confdefs.h"
16685 /* System header to define __stub macros and hopefully few prototypes,
16686     which can conflict with char $ac_func(); below.  */
16687 #include <assert.h>
16688 /* Override any gcc2 internal prototype to avoid an error.  */
16689 /* We use char because int might match the return type of a gcc2
16690     builtin and then its argument prototype would still apply.  */
16691 char $ac_func();
16692
16693 int main() {
16694
16695 /* The GNU C library defines this for functions which it implements
16696     to always fail with ENOSYS.  Some functions are actually named
16697     something starting with __ and the normal name is an alias.  */
16698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16699 choke me
16700 #else
16701 $ac_func();
16702 #endif
16703
16704 ; return 0; }
16705 EOF
16706 if { (eval echo configure:16707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16707   rm -rf conftest*
16708   eval "ac_cv_func_$ac_func=yes"
16709 else
16710   echo "configure: failed program was:" >&5
16711   cat conftest.$ac_ext >&5
16712   rm -rf conftest*
16713   eval "ac_cv_func_$ac_func=no"
16714 fi
16715 rm -f conftest*
16716 fi
16717
16718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16719   echo "$ac_t""yes" 1>&6
16720     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16721   cat >> confdefs.h <<EOF
16722 #define $ac_tr_func 1
16723 EOF
16724  
16725 else
16726   echo "$ac_t""no" 1>&6
16727 fi
16728 done
16729
16730   fi
16731
16732
16733   LIBS="$ac_save_LIBS"
16734   CXXFLAGS="$ac_save_CXXFLAGS"
16735
16736   
16737     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
16738 echo "configure:16739: checking for main in -lm" >&5
16739 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
16740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16741   echo $ac_n "(cached) $ac_c" 1>&6
16742 else
16743   ac_save_LIBS="$LIBS"
16744 LIBS="-lm  $LIBS"
16745 cat > conftest.$ac_ext <<EOF
16746 #line 16747 "configure"
16747 #include "confdefs.h"
16748
16749 int main() {
16750 main()
16751 ; return 0; }
16752 EOF
16753 if { (eval echo configure:16754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16754   rm -rf conftest*
16755   eval "ac_cv_lib_$ac_lib_var=yes"
16756 else
16757   echo "configure: failed program was:" >&5
16758   cat conftest.$ac_ext >&5
16759   rm -rf conftest*
16760   eval "ac_cv_lib_$ac_lib_var=no"
16761 fi
16762 rm -f conftest*
16763 LIBS="$ac_save_LIBS"
16764
16765 fi
16766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16767   echo "$ac_t""yes" 1>&6
16768     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
16769     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
16770   cat >> confdefs.h <<EOF
16771 #define $ac_tr_lib 1
16772 EOF
16773
16774   LIBS="-lm $LIBS"
16775
16776 else
16777   echo "$ac_t""no" 1>&6
16778 fi
16779
16780   for ac_func in nan copysignf
16781 do
16782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16783 echo "configure:16784: checking for $ac_func" >&5
16784 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16785   echo $ac_n "(cached) $ac_c" 1>&6
16786 else
16787   cat > conftest.$ac_ext <<EOF
16788 #line 16789 "configure"
16789 #include "confdefs.h"
16790 /* System header to define __stub macros and hopefully few prototypes,
16791     which can conflict with char $ac_func(); below.  */
16792 #include <assert.h>
16793 /* Override any gcc2 internal prototype to avoid an error.  */
16794 /* We use char because int might match the return type of a gcc2
16795     builtin and then its argument prototype would still apply.  */
16796 char $ac_func();
16797
16798 int main() {
16799
16800 /* The GNU C library defines this for functions which it implements
16801     to always fail with ENOSYS.  Some functions are actually named
16802     something starting with __ and the normal name is an alias.  */
16803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16804 choke me
16805 #else
16806 $ac_func();
16807 #endif
16808
16809 ; return 0; }
16810 EOF
16811 if { (eval echo configure:16812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16812   rm -rf conftest*
16813   eval "ac_cv_func_$ac_func=yes"
16814 else
16815   echo "configure: failed program was:" >&5
16816   cat conftest.$ac_ext >&5
16817   rm -rf conftest*
16818   eval "ac_cv_func_$ac_func=no"
16819 fi
16820 rm -f conftest*
16821 fi
16822
16823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16824   echo "$ac_t""yes" 1>&6
16825     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16826   cat >> confdefs.h <<EOF
16827 #define $ac_tr_func 1
16828 EOF
16829  
16830 else
16831   echo "$ac_t""no" 1>&6
16832 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
16833 fi
16834 done
16835
16836
16837
16838           USE_COMPLEX_LONG_DOUBLE=no
16839   if test x$ac_cv_func_copysignl = x"yes"; then
16840     USE_COMPLEX_LONG_DOUBLE=yes
16841     for ac_func in signbitl
16842 do
16843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16844 echo "configure:16845: checking for $ac_func" >&5
16845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16846   echo $ac_n "(cached) $ac_c" 1>&6
16847 else
16848   cat > conftest.$ac_ext <<EOF
16849 #line 16850 "configure"
16850 #include "confdefs.h"
16851 /* System header to define __stub macros and hopefully few prototypes,
16852     which can conflict with char $ac_func(); below.  */
16853 #include <assert.h>
16854 /* Override any gcc2 internal prototype to avoid an error.  */
16855 /* We use char because int might match the return type of a gcc2
16856     builtin and then its argument prototype would still apply.  */
16857 char $ac_func();
16858
16859 int main() {
16860
16861 /* The GNU C library defines this for functions which it implements
16862     to always fail with ENOSYS.  Some functions are actually named
16863     something starting with __ and the normal name is an alias.  */
16864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16865 choke me
16866 #else
16867 $ac_func();
16868 #endif
16869
16870 ; return 0; }
16871 EOF
16872 if { (eval echo configure:16873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16873   rm -rf conftest*
16874   eval "ac_cv_func_$ac_func=yes"
16875 else
16876   echo "configure: failed program was:" >&5
16877   cat conftest.$ac_ext >&5
16878   rm -rf conftest*
16879   eval "ac_cv_func_$ac_func=no"
16880 fi
16881 rm -f conftest*
16882 fi
16883
16884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16885   echo "$ac_t""yes" 1>&6
16886     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16887   cat >> confdefs.h <<EOF
16888 #define $ac_tr_func 1
16889 EOF
16890  
16891 else
16892   echo "$ac_t""no" 1>&6
16893 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
16894 fi
16895 done
16896
16897
16898   fi
16899
16900   
16901
16902   
16903
16904       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
16905 echo "configure:16906: checking for mbstate_t" >&5
16906   cat > conftest.$ac_ext <<EOF
16907 #line 16908 "configure"
16908 #include "confdefs.h"
16909 #include <wchar.h>
16910 int main() {
16911 mbstate_t teststate;
16912 ; return 0; }
16913 EOF
16914 if { (eval echo configure:16915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16915   rm -rf conftest*
16916   have_mbstate_t=yes
16917 else
16918   echo "configure: failed program was:" >&5
16919   cat conftest.$ac_ext >&5
16920   rm -rf conftest*
16921   have_mbstate_t=no
16922 fi
16923 rm -f conftest*
16924   echo "$ac_t""$have_mbstate_t" 1>&6
16925   if test x"$have_mbstate_t" = xyes; then
16926     cat >> confdefs.h <<\EOF
16927 #define HAVE_MBSTATE_T 1
16928 EOF
16929
16930   fi
16931
16932     for ac_hdr in wchar.h
16933 do
16934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16936 echo "configure:16937: checking for $ac_hdr" >&5
16937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16938   echo $ac_n "(cached) $ac_c" 1>&6
16939 else
16940   cat > conftest.$ac_ext <<EOF
16941 #line 16942 "configure"
16942 #include "confdefs.h"
16943 #include <$ac_hdr>
16944 EOF
16945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16946 { (eval echo configure:16947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16948 if test -z "$ac_err"; then
16949   rm -rf conftest*
16950   eval "ac_cv_header_$ac_safe=yes"
16951 else
16952   echo "$ac_err" >&5
16953   echo "configure: failed program was:" >&5
16954   cat conftest.$ac_ext >&5
16955   rm -rf conftest*
16956   eval "ac_cv_header_$ac_safe=no"
16957 fi
16958 rm -f conftest*
16959 fi
16960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16961   echo "$ac_t""yes" 1>&6
16962     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16963   cat >> confdefs.h <<EOF
16964 #define $ac_tr_hdr 1
16965 EOF
16966  ac_has_wchar_h=yes
16967 else
16968   echo "$ac_t""no" 1>&6
16969 ac_has_wchar_h=no
16970 fi
16971 done
16972
16973   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
16974 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
16975 echo "configure:16976: checking for wctype.h" >&5
16976 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16977   echo $ac_n "(cached) $ac_c" 1>&6
16978 else
16979   cat > conftest.$ac_ext <<EOF
16980 #line 16981 "configure"
16981 #include "confdefs.h"
16982 #include <wctype.h>
16983 EOF
16984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16985 { (eval echo configure:16986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16987 if test -z "$ac_err"; then
16988   rm -rf conftest*
16989   eval "ac_cv_header_$ac_safe=yes"
16990 else
16991   echo "$ac_err" >&5
16992   echo "configure: failed program was:" >&5
16993   cat conftest.$ac_ext >&5
16994   rm -rf conftest*
16995   eval "ac_cv_header_$ac_safe=no"
16996 fi
16997 rm -f conftest*
16998 fi
16999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17000   echo "$ac_t""yes" 1>&6
17001   ac_has_wctype_h=yes
17002 else
17003   echo "$ac_t""no" 1>&6
17004 ac_has_wctype_h=no
17005 fi
17006
17007   
17008     if test x"$ac_has_wchar_h" = xyes &&
17009      test x"$ac_has_wctype_h" = xyes &&
17010      test x"$enable_c_mbchar" != xno; then
17011       
17012             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
17013 echo "configure:17014: checking for WCHAR_MIN and WCHAR_MAX" >&5
17014     cat > conftest.$ac_ext <<EOF
17015 #line 17016 "configure"
17016 #include "confdefs.h"
17017 #include <wchar.h>
17018 int main() {
17019 int i = WCHAR_MIN; int j = WCHAR_MAX;
17020 ; return 0; }
17021 EOF
17022 if { (eval echo configure:17023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17023   rm -rf conftest*
17024   has_wchar_minmax=yes
17025 else
17026   echo "configure: failed program was:" >&5
17027   cat conftest.$ac_ext >&5
17028   rm -rf conftest*
17029   has_wchar_minmax=no
17030 fi
17031 rm -f conftest*
17032     echo "$ac_t""$has_wchar_minmax" 1>&6
17033     
17034             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
17035 echo "configure:17036: checking for WEOF" >&5
17036     cat > conftest.$ac_ext <<EOF
17037 #line 17038 "configure"
17038 #include "confdefs.h"
17039
17040       #include <wchar.h>
17041       #include <stddef.h>
17042 int main() {
17043 wint_t i = WEOF;
17044 ; return 0; }
17045 EOF
17046 if { (eval echo configure:17047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17047   rm -rf conftest*
17048   has_weof=yes
17049 else
17050   echo "configure: failed program was:" >&5
17051   cat conftest.$ac_ext >&5
17052   rm -rf conftest*
17053   has_weof=no
17054 fi
17055 rm -f conftest*
17056     echo "$ac_t""$has_weof" 1>&6
17057   
17058         ac_wfuncs=yes
17059     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
17060 do
17061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17062 echo "configure:17063: checking for $ac_func" >&5
17063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17064   echo $ac_n "(cached) $ac_c" 1>&6
17065 else
17066   cat > conftest.$ac_ext <<EOF
17067 #line 17068 "configure"
17068 #include "confdefs.h"
17069 /* System header to define __stub macros and hopefully few prototypes,
17070     which can conflict with char $ac_func(); below.  */
17071 #include <assert.h>
17072 /* Override any gcc2 internal prototype to avoid an error.  */
17073 /* We use char because int might match the return type of a gcc2
17074     builtin and then its argument prototype would still apply.  */
17075 char $ac_func();
17076
17077 int main() {
17078
17079 /* The GNU C library defines this for functions which it implements
17080     to always fail with ENOSYS.  Some functions are actually named
17081     something starting with __ and the normal name is an alias.  */
17082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17083 choke me
17084 #else
17085 $ac_func();
17086 #endif
17087
17088 ; return 0; }
17089 EOF
17090 if { (eval echo configure:17091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17091   rm -rf conftest*
17092   eval "ac_cv_func_$ac_func=yes"
17093 else
17094   echo "configure: failed program was:" >&5
17095   cat conftest.$ac_ext >&5
17096   rm -rf conftest*
17097   eval "ac_cv_func_$ac_func=no"
17098 fi
17099 rm -f conftest*
17100 fi
17101
17102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17103   echo "$ac_t""yes" 1>&6
17104     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17105   cat >> confdefs.h <<EOF
17106 #define $ac_tr_func 1
17107 EOF
17108  
17109 else
17110   echo "$ac_t""no" 1>&6
17111 \
17112     ac_wfuncs=no
17113 fi
17114 done
17115
17116   
17117         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
17118     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
17119     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
17120     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
17121     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
17122     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
17123 do
17124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17125 echo "configure:17126: checking for $ac_func" >&5
17126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17127   echo $ac_n "(cached) $ac_c" 1>&6
17128 else
17129   cat > conftest.$ac_ext <<EOF
17130 #line 17131 "configure"
17131 #include "confdefs.h"
17132 /* System header to define __stub macros and hopefully few prototypes,
17133     which can conflict with char $ac_func(); below.  */
17134 #include <assert.h>
17135 /* Override any gcc2 internal prototype to avoid an error.  */
17136 /* We use char because int might match the return type of a gcc2
17137     builtin and then its argument prototype would still apply.  */
17138 char $ac_func();
17139
17140 int main() {
17141
17142 /* The GNU C library defines this for functions which it implements
17143     to always fail with ENOSYS.  Some functions are actually named
17144     something starting with __ and the normal name is an alias.  */
17145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17146 choke me
17147 #else
17148 $ac_func();
17149 #endif
17150
17151 ; return 0; }
17152 EOF
17153 if { (eval echo configure:17154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17154   rm -rf conftest*
17155   eval "ac_cv_func_$ac_func=yes"
17156 else
17157   echo "configure: failed program was:" >&5
17158   cat conftest.$ac_ext >&5
17159   rm -rf conftest*
17160   eval "ac_cv_func_$ac_func=no"
17161 fi
17162 rm -f conftest*
17163 fi
17164
17165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17166   echo "$ac_t""yes" 1>&6
17167     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17168   cat >> confdefs.h <<EOF
17169 #define $ac_tr_func 1
17170 EOF
17171  
17172 else
17173   echo "$ac_t""no" 1>&6
17174 \
17175     ac_wfuncs=no
17176 fi
17177 done
17178
17179
17180     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
17181 echo "configure:17182: checking for ISO C99 wchar_t support" >&5
17182     if test x"$has_weof" = xyes &&
17183        test x"$has_wchar_minmax" = xyes &&
17184        test x"$ac_wfuncs" = xyes; then
17185       ac_isoC99_wchar_t=yes
17186     else
17187       ac_isoC99_wchar_t=no
17188     fi
17189     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
17190   
17191             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
17192 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
17193 echo "configure:17194: checking for iconv.h" >&5
17194 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17195   echo $ac_n "(cached) $ac_c" 1>&6
17196 else
17197   cat > conftest.$ac_ext <<EOF
17198 #line 17199 "configure"
17199 #include "confdefs.h"
17200 #include <iconv.h>
17201 EOF
17202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17203 { (eval echo configure:17204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17205 if test -z "$ac_err"; then
17206   rm -rf conftest*
17207   eval "ac_cv_header_$ac_safe=yes"
17208 else
17209   echo "$ac_err" >&5
17210   echo "configure: failed program was:" >&5
17211   cat conftest.$ac_ext >&5
17212   rm -rf conftest*
17213   eval "ac_cv_header_$ac_safe=no"
17214 fi
17215 rm -f conftest*
17216 fi
17217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17218   echo "$ac_t""yes" 1>&6
17219   ac_has_iconv_h=yes
17220 else
17221   echo "$ac_t""no" 1>&6
17222 ac_has_iconv_h=no
17223 fi
17224
17225     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
17226 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
17227 echo "configure:17228: checking for langinfo.h" >&5
17228 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17229   echo $ac_n "(cached) $ac_c" 1>&6
17230 else
17231   cat > conftest.$ac_ext <<EOF
17232 #line 17233 "configure"
17233 #include "confdefs.h"
17234 #include <langinfo.h>
17235 EOF
17236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17237 { (eval echo configure:17238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17239 if test -z "$ac_err"; then
17240   rm -rf conftest*
17241   eval "ac_cv_header_$ac_safe=yes"
17242 else
17243   echo "$ac_err" >&5
17244   echo "configure: failed program was:" >&5
17245   cat conftest.$ac_ext >&5
17246   rm -rf conftest*
17247   eval "ac_cv_header_$ac_safe=no"
17248 fi
17249 rm -f conftest*
17250 fi
17251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17252   echo "$ac_t""yes" 1>&6
17253   ac_has_langinfo_h=yes
17254 else
17255   echo "$ac_t""no" 1>&6
17256 ac_has_langinfo_h=no
17257 fi
17258
17259
17260         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
17261 echo "configure:17262: checking for iconv in -liconv" >&5
17262 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
17263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17264   echo $ac_n "(cached) $ac_c" 1>&6
17265 else
17266   ac_save_LIBS="$LIBS"
17267 LIBS="-liconv  $LIBS"
17268 cat > conftest.$ac_ext <<EOF
17269 #line 17270 "configure"
17270 #include "confdefs.h"
17271 /* Override any gcc2 internal prototype to avoid an error.  */
17272 /* We use char because int might match the return type of a gcc2
17273     builtin and then its argument prototype would still apply.  */
17274 char iconv();
17275
17276 int main() {
17277 iconv()
17278 ; return 0; }
17279 EOF
17280 if { (eval echo configure:17281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17281   rm -rf conftest*
17282   eval "ac_cv_lib_$ac_lib_var=yes"
17283 else
17284   echo "configure: failed program was:" >&5
17285   cat conftest.$ac_ext >&5
17286   rm -rf conftest*
17287   eval "ac_cv_lib_$ac_lib_var=no"
17288 fi
17289 rm -f conftest*
17290 LIBS="$ac_save_LIBS"
17291
17292 fi
17293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17294   echo "$ac_t""yes" 1>&6
17295   libiconv="-liconv"
17296 else
17297   echo "$ac_t""no" 1>&6
17298 fi
17299
17300     ac_save_LIBS="$LIBS"
17301     LIBS="$LIBS $libiconv"
17302
17303     for ac_func in iconv_open iconv_close iconv nl_langinfo
17304 do
17305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17306 echo "configure:17307: checking for $ac_func" >&5
17307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17308   echo $ac_n "(cached) $ac_c" 1>&6
17309 else
17310   cat > conftest.$ac_ext <<EOF
17311 #line 17312 "configure"
17312 #include "confdefs.h"
17313 /* System header to define __stub macros and hopefully few prototypes,
17314     which can conflict with char $ac_func(); below.  */
17315 #include <assert.h>
17316 /* Override any gcc2 internal prototype to avoid an error.  */
17317 /* We use char because int might match the return type of a gcc2
17318     builtin and then its argument prototype would still apply.  */
17319 char $ac_func();
17320
17321 int main() {
17322
17323 /* The GNU C library defines this for functions which it implements
17324     to always fail with ENOSYS.  Some functions are actually named
17325     something starting with __ and the normal name is an alias.  */
17326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17327 choke me
17328 #else
17329 $ac_func();
17330 #endif
17331
17332 ; return 0; }
17333 EOF
17334 if { (eval echo configure:17335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17335   rm -rf conftest*
17336   eval "ac_cv_func_$ac_func=yes"
17337 else
17338   echo "configure: failed program was:" >&5
17339   cat conftest.$ac_ext >&5
17340   rm -rf conftest*
17341   eval "ac_cv_func_$ac_func=no"
17342 fi
17343 rm -f conftest*
17344 fi
17345
17346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17347   echo "$ac_t""yes" 1>&6
17348     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17349   cat >> confdefs.h <<EOF
17350 #define $ac_tr_func 1
17351 EOF
17352  \
17353     ac_XPG2funcs=yes
17354 else
17355   echo "$ac_t""no" 1>&6
17356 ac_XPG2funcs=no
17357 fi
17358 done
17359
17360   
17361     LIBS="$ac_save_LIBS"
17362
17363     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
17364 echo "configure:17365: checking for XPG2 wchar_t support" >&5
17365     if test x"$ac_has_iconv_h" = xyes &&
17366        test x"$ac_has_langinfo_h" = xyes &&
17367        test x"$ac_XPG2funcs" = xyes; then
17368       ac_XPG2_wchar_t=yes
17369     else
17370       ac_XPG2_wchar_t=no
17371     fi
17372     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
17373   
17374             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
17375 echo "configure:17376: checking for enabled wchar_t specializations" >&5
17376     if test x"$ac_isoC99_wchar_t" = xyes &&
17377        test x"$ac_XPG2_wchar_t" = xyes; then
17378       cat >> confdefs.h <<\EOF
17379 #define _GLIBCPP_USE_WCHAR_T 1
17380 EOF
17381
17382       echo "$ac_t"""yes"" 1>&6
17383     else
17384       echo "$ac_t"""no"" 1>&6
17385     fi
17386   else
17387         echo "configure: warning: wchar_t support disabled." 1>&2
17388   fi
17389
17390   
17391   ac_test_CXXFLAGS="${CXXFLAGS+set}"
17392   ac_save_CXXFLAGS="$CXXFLAGS"
17393   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
17394
17395   
17396   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
17397 echo "configure:17398: checking for strtold declaration" >&5
17398   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
17399     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
17400   echo $ac_n "(cached) $ac_c" 1>&6
17401 else
17402   
17403       
17404       ac_ext=C
17405 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17406 ac_cpp='$CXXCPP $CPPFLAGS'
17407 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17408 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17409 cross_compiling=$ac_cv_prog_cxx_cross
17410
17411       cat > conftest.$ac_ext <<EOF
17412 #line 17413 "configure"
17413 #include "confdefs.h"
17414 #include <stdlib.h>
17415 int main() {
17416  strtold(0, 0);
17417 ; return 0; }
17418 EOF
17419 if { (eval echo configure:17420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17420   rm -rf conftest*
17421   glibcpp_cv_func_strtold_use=yes
17422 else
17423   echo "configure: failed program was:" >&5
17424   cat conftest.$ac_ext >&5
17425   rm -rf conftest*
17426   glibcpp_cv_func_strtold_use=no
17427 fi
17428 rm -f conftest*
17429       ac_ext=c
17430 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17431 ac_cpp='$CPP $CPPFLAGS'
17432 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17433 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17434 cross_compiling=$ac_cv_prog_cc_cross
17435
17436     
17437 fi
17438
17439   fi
17440   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
17441   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
17442     for ac_func in strtold
17443 do
17444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17445 echo "configure:17446: checking for $ac_func" >&5
17446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17447   echo $ac_n "(cached) $ac_c" 1>&6
17448 else
17449   cat > conftest.$ac_ext <<EOF
17450 #line 17451 "configure"
17451 #include "confdefs.h"
17452 /* System header to define __stub macros and hopefully few prototypes,
17453     which can conflict with char $ac_func(); below.  */
17454 #include <assert.h>
17455 /* Override any gcc2 internal prototype to avoid an error.  */
17456 /* We use char because int might match the return type of a gcc2
17457     builtin and then its argument prototype would still apply.  */
17458 char $ac_func();
17459
17460 int main() {
17461
17462 /* The GNU C library defines this for functions which it implements
17463     to always fail with ENOSYS.  Some functions are actually named
17464     something starting with __ and the normal name is an alias.  */
17465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17466 choke me
17467 #else
17468 $ac_func();
17469 #endif
17470
17471 ; return 0; }
17472 EOF
17473 if { (eval echo configure:17474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17474   rm -rf conftest*
17475   eval "ac_cv_func_$ac_func=yes"
17476 else
17477   echo "configure: failed program was:" >&5
17478   cat conftest.$ac_ext >&5
17479   rm -rf conftest*
17480   eval "ac_cv_func_$ac_func=no"
17481 fi
17482 rm -f conftest*
17483 fi
17484
17485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17486   echo "$ac_t""yes" 1>&6
17487     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17488   cat >> confdefs.h <<EOF
17489 #define $ac_tr_func 1
17490 EOF
17491  
17492 else
17493   echo "$ac_t""no" 1>&6
17494 fi
17495 done
17496     
17497   fi
17498
17499   for ac_func in drand48
17500 do
17501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17502 echo "configure:17503: checking for $ac_func" >&5
17503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17504   echo $ac_n "(cached) $ac_c" 1>&6
17505 else
17506   cat > conftest.$ac_ext <<EOF
17507 #line 17508 "configure"
17508 #include "confdefs.h"
17509 /* System header to define __stub macros and hopefully few prototypes,
17510     which can conflict with char $ac_func(); below.  */
17511 #include <assert.h>
17512 /* Override any gcc2 internal prototype to avoid an error.  */
17513 /* We use char because int might match the return type of a gcc2
17514     builtin and then its argument prototype would still apply.  */
17515 char $ac_func();
17516
17517 int main() {
17518
17519 /* The GNU C library defines this for functions which it implements
17520     to always fail with ENOSYS.  Some functions are actually named
17521     something starting with __ and the normal name is an alias.  */
17522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17523 choke me
17524 #else
17525 $ac_func();
17526 #endif
17527
17528 ; return 0; }
17529 EOF
17530 if { (eval echo configure:17531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17531   rm -rf conftest*
17532   eval "ac_cv_func_$ac_func=yes"
17533 else
17534   echo "configure: failed program was:" >&5
17535   cat conftest.$ac_ext >&5
17536   rm -rf conftest*
17537   eval "ac_cv_func_$ac_func=no"
17538 fi
17539 rm -f conftest*
17540 fi
17541
17542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17543   echo "$ac_t""yes" 1>&6
17544     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17545   cat >> confdefs.h <<EOF
17546 #define $ac_tr_func 1
17547 EOF
17548  
17549 else
17550   echo "$ac_t""no" 1>&6
17551 fi
17552 done
17553
17554
17555   CXXFLAGS="$ac_save_CXXFLAGS"
17556
17557   
17558   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
17559 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
17560 echo "configure:17561: checking for locale.h" >&5
17561 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17562   echo $ac_n "(cached) $ac_c" 1>&6
17563 else
17564   cat > conftest.$ac_ext <<EOF
17565 #line 17566 "configure"
17566 #include "confdefs.h"
17567 #include <locale.h>
17568 EOF
17569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17570 { (eval echo configure:17571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17572 if test -z "$ac_err"; then
17573   rm -rf conftest*
17574   eval "ac_cv_header_$ac_safe=yes"
17575 else
17576   echo "$ac_err" >&5
17577   echo "configure: failed program was:" >&5
17578   cat conftest.$ac_ext >&5
17579   rm -rf conftest*
17580   eval "ac_cv_header_$ac_safe=no"
17581 fi
17582 rm -f conftest*
17583 fi
17584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17585   echo "$ac_t""yes" 1>&6
17586   
17587     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
17588 echo "configure:17589: checking for LC_MESSAGES" >&5
17589 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
17590   echo $ac_n "(cached) $ac_c" 1>&6
17591 else
17592   cat > conftest.$ac_ext <<EOF
17593 #line 17594 "configure"
17594 #include "confdefs.h"
17595 #include <locale.h>
17596 int main() {
17597 return LC_MESSAGES
17598 ; return 0; }
17599 EOF
17600 if { (eval echo configure:17601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17601   rm -rf conftest*
17602   ac_cv_val_LC_MESSAGES=yes
17603 else
17604   echo "configure: failed program was:" >&5
17605   cat conftest.$ac_ext >&5
17606   rm -rf conftest*
17607   ac_cv_val_LC_MESSAGES=no
17608 fi
17609 rm -f conftest*
17610 fi
17611
17612 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
17613     if test $ac_cv_val_LC_MESSAGES = yes; then
17614       cat >> confdefs.h <<\EOF
17615 #define HAVE_LC_MESSAGES 1
17616 EOF
17617
17618     fi
17619   
17620 else
17621   echo "$ac_t""no" 1>&6
17622 fi
17623
17624
17625
17626   cat > conftest.$ac_ext <<EOF
17627 #line 17628 "configure"
17628 #include "confdefs.h"
17629
17630   #include <setjmp.h>
17631   
17632 int main() {
17633 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
17634 ; return 0; }
17635 EOF
17636 if { (eval echo configure:17637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17637   rm -rf conftest*
17638   cat >> confdefs.h <<\EOF
17639 #define HAVE_SIGSETJMP 1
17640 EOF
17641
17642   
17643 else
17644   echo "configure: failed program was:" >&5
17645   cat conftest.$ac_ext >&5
17646 fi
17647 rm -f conftest*
17648
17649   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
17650 do
17651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17653 echo "configure:17654: checking for $ac_hdr" >&5
17654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17655   echo $ac_n "(cached) $ac_c" 1>&6
17656 else
17657   cat > conftest.$ac_ext <<EOF
17658 #line 17659 "configure"
17659 #include "confdefs.h"
17660 #include <$ac_hdr>
17661 EOF
17662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17663 { (eval echo configure:17664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17665 if test -z "$ac_err"; then
17666   rm -rf conftest*
17667   eval "ac_cv_header_$ac_safe=yes"
17668 else
17669   echo "$ac_err" >&5
17670   echo "configure: failed program was:" >&5
17671   cat conftest.$ac_ext >&5
17672   rm -rf conftest*
17673   eval "ac_cv_header_$ac_safe=no"
17674 fi
17675 rm -f conftest*
17676 fi
17677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17678   echo "$ac_t""yes" 1>&6
17679     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17680   cat >> confdefs.h <<EOF
17681 #define $ac_tr_hdr 1
17682 EOF
17683  
17684 else
17685   echo "$ac_t""no" 1>&6
17686 fi
17687 done
17688
17689 for ac_func in getpagesize
17690 do
17691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17692 echo "configure:17693: checking for $ac_func" >&5
17693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17694   echo $ac_n "(cached) $ac_c" 1>&6
17695 else
17696   cat > conftest.$ac_ext <<EOF
17697 #line 17698 "configure"
17698 #include "confdefs.h"
17699 /* System header to define __stub macros and hopefully few prototypes,
17700     which can conflict with char $ac_func(); below.  */
17701 #include <assert.h>
17702 /* Override any gcc2 internal prototype to avoid an error.  */
17703 /* We use char because int might match the return type of a gcc2
17704     builtin and then its argument prototype would still apply.  */
17705 char $ac_func();
17706
17707 int main() {
17708
17709 /* The GNU C library defines this for functions which it implements
17710     to always fail with ENOSYS.  Some functions are actually named
17711     something starting with __ and the normal name is an alias.  */
17712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17713 choke me
17714 #else
17715 $ac_func();
17716 #endif
17717
17718 ; return 0; }
17719 EOF
17720 if { (eval echo configure:17721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17721   rm -rf conftest*
17722   eval "ac_cv_func_$ac_func=yes"
17723 else
17724   echo "configure: failed program was:" >&5
17725   cat conftest.$ac_ext >&5
17726   rm -rf conftest*
17727   eval "ac_cv_func_$ac_func=no"
17728 fi
17729 rm -f conftest*
17730 fi
17731
17732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17733   echo "$ac_t""yes" 1>&6
17734     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17735   cat >> confdefs.h <<EOF
17736 #define $ac_tr_func 1
17737 EOF
17738  
17739 else
17740   echo "$ac_t""no" 1>&6
17741 fi
17742 done
17743
17744 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
17745 echo "configure:17746: checking for working mmap" >&5
17746 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
17747   echo $ac_n "(cached) $ac_c" 1>&6
17748 else
17749   if test "$cross_compiling" = yes; then
17750   ac_cv_func_mmap_fixed_mapped=no
17751 else
17752   cat > conftest.$ac_ext <<EOF
17753 #line 17754 "configure"
17754 #include "confdefs.h"
17755
17756 /* Thanks to Mike Haertel and Jim Avera for this test.
17757    Here is a matrix of mmap possibilities:
17758         mmap private not fixed
17759         mmap private fixed at somewhere currently unmapped
17760         mmap private fixed at somewhere already mapped
17761         mmap shared not fixed
17762         mmap shared fixed at somewhere currently unmapped
17763         mmap shared fixed at somewhere already mapped
17764    For private mappings, we should verify that changes cannot be read()
17765    back from the file, nor mmap's back from the file at a different
17766    address.  (There have been systems where private was not correctly
17767    implemented like the infamous i386 svr4.0, and systems where the
17768    VM page cache was not coherent with the filesystem buffer cache
17769    like early versions of FreeBSD and possibly contemporary NetBSD.)
17770    For shared mappings, we should conversely verify that changes get
17771    propogated back to all the places they're supposed to be.
17772
17773    Grep wants private fixed already mapped.
17774    The main things grep needs to know about mmap are:
17775    * does it exist and is it safe to write into the mmap'd area
17776    * how to use it (BSD variants)  */
17777 #include <sys/types.h>
17778 #include <fcntl.h>
17779 #include <sys/mman.h>
17780
17781 #if HAVE_SYS_TYPES_H
17782 # include <sys/types.h>
17783 #endif
17784
17785 #if HAVE_STDLIB_H
17786 # include <stdlib.h>
17787 #endif
17788
17789 #if HAVE_SYS_STAT_H
17790 # include <sys/stat.h>
17791 #endif
17792
17793 #if HAVE_UNISTD_H
17794 # include <unistd.h>
17795 #endif
17796
17797 /* This mess was copied from the GNU getpagesize.h.  */
17798 #ifndef HAVE_GETPAGESIZE
17799
17800 /* Assume that all systems that can run configure have sys/param.h.  */
17801 # ifndef HAVE_SYS_PARAM_H
17802 #  define HAVE_SYS_PARAM_H 1
17803 # endif
17804
17805 # ifdef _SC_PAGESIZE
17806 #  define getpagesize() sysconf(_SC_PAGESIZE)
17807 # else /* no _SC_PAGESIZE */
17808 #  ifdef HAVE_SYS_PARAM_H
17809 #   include <sys/param.h>
17810 #   ifdef EXEC_PAGESIZE
17811 #    define getpagesize() EXEC_PAGESIZE
17812 #   else /* no EXEC_PAGESIZE */
17813 #    ifdef NBPG
17814 #     define getpagesize() NBPG * CLSIZE
17815 #     ifndef CLSIZE
17816 #      define CLSIZE 1
17817 #     endif /* no CLSIZE */
17818 #    else /* no NBPG */
17819 #     ifdef NBPC
17820 #      define getpagesize() NBPC
17821 #     else /* no NBPC */
17822 #      ifdef PAGESIZE
17823 #       define getpagesize() PAGESIZE
17824 #      endif /* PAGESIZE */
17825 #     endif /* no NBPC */
17826 #    endif /* no NBPG */
17827 #   endif /* no EXEC_PAGESIZE */
17828 #  else /* no HAVE_SYS_PARAM_H */
17829 #   define getpagesize() 8192   /* punt totally */
17830 #  endif /* no HAVE_SYS_PARAM_H */
17831 # endif /* no _SC_PAGESIZE */
17832
17833 #endif /* no HAVE_GETPAGESIZE */
17834
17835 #ifdef __cplusplus
17836 extern "C" { void *malloc(unsigned); }
17837 #else
17838 char *malloc();
17839 #endif
17840
17841 int
17842 main()
17843 {
17844         char *data, *data2, *data3;
17845         int i, pagesize;
17846         int fd;
17847
17848         pagesize = getpagesize();
17849
17850         /*
17851          * First, make a file with some known garbage in it.
17852          */
17853         data = malloc(pagesize);
17854         if (!data)
17855                 exit(1);
17856         for (i = 0; i < pagesize; ++i)
17857                 *(data + i) = rand();
17858         umask(0);
17859         fd = creat("conftestmmap", 0600);
17860         if (fd < 0)
17861                 exit(1);
17862         if (write(fd, data, pagesize) != pagesize)
17863                 exit(1);
17864         close(fd);
17865
17866         /*
17867          * Next, try to mmap the file at a fixed address which
17868          * already has something else allocated at it.  If we can,
17869          * also make sure that we see the same garbage.
17870          */
17871         fd = open("conftestmmap", O_RDWR);
17872         if (fd < 0)
17873                 exit(1);
17874         data2 = malloc(2 * pagesize);
17875         if (!data2)
17876                 exit(1);
17877         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
17878         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
17879             MAP_PRIVATE | MAP_FIXED, fd, 0L))
17880                 exit(1);
17881         for (i = 0; i < pagesize; ++i)
17882                 if (*(data + i) != *(data2 + i))
17883                         exit(1);
17884
17885         /*
17886          * Finally, make sure that changes to the mapped area
17887          * do not percolate back to the file as seen by read().
17888          * (This is a bug on some variants of i386 svr4.0.)
17889          */
17890         for (i = 0; i < pagesize; ++i)
17891                 *(data2 + i) = *(data2 + i) + 1;
17892         data3 = malloc(pagesize);
17893         if (!data3)
17894                 exit(1);
17895         if (read(fd, data3, pagesize) != pagesize)
17896                 exit(1);
17897         for (i = 0; i < pagesize; ++i)
17898                 if (*(data + i) != *(data3 + i))
17899                         exit(1);
17900         close(fd);
17901         unlink("conftestmmap");
17902         exit(0);
17903 }
17904
17905 EOF
17906 if { (eval echo configure:17907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
17907 then
17908   ac_cv_func_mmap_fixed_mapped=yes
17909 else
17910   echo "configure: failed program was:" >&5
17911   cat conftest.$ac_ext >&5
17912   rm -fr conftest*
17913   ac_cv_func_mmap_fixed_mapped=no
17914 fi
17915 rm -fr conftest*
17916 fi
17917
17918 fi
17919
17920 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
17921 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17922   cat >> confdefs.h <<\EOF
17923 #define HAVE_MMAP 1
17924 EOF
17925
17926 fi
17927
17928
17929   # Establish limits on memory usage during 'make check'
17930   
17931   
17932   setrlimit_have_headers=yes
17933   for ac_hdr in sys/resource.h unistd.h
17934 do
17935 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17936 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17937 echo "configure:17938: checking for $ac_hdr" >&5
17938 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17939   echo $ac_n "(cached) $ac_c" 1>&6
17940 else
17941   cat > conftest.$ac_ext <<EOF
17942 #line 17943 "configure"
17943 #include "confdefs.h"
17944 #include <$ac_hdr>
17945 EOF
17946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17947 { (eval echo configure:17948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17949 if test -z "$ac_err"; then
17950   rm -rf conftest*
17951   eval "ac_cv_header_$ac_safe=yes"
17952 else
17953   echo "$ac_err" >&5
17954   echo "configure: failed program was:" >&5
17955   cat conftest.$ac_ext >&5
17956   rm -rf conftest*
17957   eval "ac_cv_header_$ac_safe=no"
17958 fi
17959 rm -f conftest*
17960 fi
17961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17962   echo "$ac_t""yes" 1>&6
17963     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17964   cat >> confdefs.h <<EOF
17965 #define $ac_tr_hdr 1
17966 EOF
17967  
17968 else
17969   echo "$ac_t""no" 1>&6
17970 setrlimit_have_headers=no
17971 fi
17972 done
17973
17974   # If don't have the headers, then we can't run the tests now, and we
17975   # won't be seeing any of these during testsuite compilation.
17976   if test $setrlimit_have_headers = yes; then
17977     # Can't do these in a loop, else the resulting syntax is wrong.
17978     
17979   cat > conftest.$ac_ext <<EOF
17980 #line 17981 "configure"
17981 #include "confdefs.h"
17982 #include <sys/resource.h>
17983                   #include <unistd.h>
17984                  
17985 int main() {
17986  int f = RLIMIT_DATA ; 
17987 ; return 0; }
17988 EOF
17989 if { (eval echo configure:17990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17990   rm -rf conftest*
17991   glibcpp_mresult=1
17992 else
17993   echo "configure: failed program was:" >&5
17994   cat conftest.$ac_ext >&5
17995   rm -rf conftest*
17996   glibcpp_mresult=0
17997 fi
17998 rm -f conftest*
17999   cat >> confdefs.h <<EOF
18000 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
18001 EOF
18002
18003
18004     
18005   cat > conftest.$ac_ext <<EOF
18006 #line 18007 "configure"
18007 #include "confdefs.h"
18008 #include <sys/resource.h>
18009                   #include <unistd.h>
18010                  
18011 int main() {
18012  int f = RLIMIT_RSS ; 
18013 ; return 0; }
18014 EOF
18015 if { (eval echo configure:18016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18016   rm -rf conftest*
18017   glibcpp_mresult=1
18018 else
18019   echo "configure: failed program was:" >&5
18020   cat conftest.$ac_ext >&5
18021   rm -rf conftest*
18022   glibcpp_mresult=0
18023 fi
18024 rm -f conftest*
18025   cat >> confdefs.h <<EOF
18026 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
18027 EOF
18028
18029
18030     
18031   cat > conftest.$ac_ext <<EOF
18032 #line 18033 "configure"
18033 #include "confdefs.h"
18034 #include <sys/resource.h>
18035                   #include <unistd.h>
18036                  
18037 int main() {
18038  int f = RLIMIT_VMEM ; 
18039 ; return 0; }
18040 EOF
18041 if { (eval echo configure:18042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18042   rm -rf conftest*
18043   glibcpp_mresult=1
18044 else
18045   echo "configure: failed program was:" >&5
18046   cat conftest.$ac_ext >&5
18047   rm -rf conftest*
18048   glibcpp_mresult=0
18049 fi
18050 rm -f conftest*
18051   cat >> confdefs.h <<EOF
18052 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
18053 EOF
18054
18055
18056     
18057   cat > conftest.$ac_ext <<EOF
18058 #line 18059 "configure"
18059 #include "confdefs.h"
18060 #include <sys/resource.h>
18061                   #include <unistd.h>
18062                  
18063 int main() {
18064  int f = RLIMIT_AS ; 
18065 ; return 0; }
18066 EOF
18067 if { (eval echo configure:18068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18068   rm -rf conftest*
18069   glibcpp_mresult=1
18070 else
18071   echo "configure: failed program was:" >&5
18072   cat conftest.$ac_ext >&5
18073   rm -rf conftest*
18074   glibcpp_mresult=0
18075 fi
18076 rm -f conftest*
18077   cat >> confdefs.h <<EOF
18078 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
18079 EOF
18080
18081
18082
18083     # Check for rlimit, setrlimit.
18084     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
18085   echo $ac_n "(cached) $ac_c" 1>&6
18086 else
18087   
18088       cat > conftest.$ac_ext <<EOF
18089 #line 18090 "configure"
18090 #include "confdefs.h"
18091 #include <sys/resource.h>
18092                       #include <unistd.h>
18093                      
18094 int main() {
18095  struct rlimit r; setrlimit(0, &r);
18096 ; return 0; }
18097 EOF
18098 if { (eval echo configure:18099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18099   rm -rf conftest*
18100   ac_setrlimit=yes
18101 else
18102   echo "configure: failed program was:" >&5
18103   cat conftest.$ac_ext >&5
18104   rm -rf conftest*
18105   ac_setrlimit=no
18106 fi
18107 rm -f conftest*
18108     
18109 fi
18110
18111   fi
18112
18113   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
18114 echo "configure:18115: checking for testsuite memory limit support" >&5
18115   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
18116     ac_mem_limits=yes
18117     cat >> confdefs.h <<\EOF
18118 #define _GLIBCPP_MEM_LIMITS 1
18119 EOF
18120
18121   else
18122     ac_mem_limits=no
18123   fi
18124   echo "$ac_t""$ac_mem_limits" 1>&6
18125
18126
18127 fi
18128
18129
18130 # Propagate the target-specific source directories through the build chain.
18131 OS_INC_SRCDIR=$os_include_dir/bits
18132 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
18133 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
18134
18135
18136
18137
18138 # Set up cross-compile flags
18139
18140
18141
18142 if test "$CANADIAN" = yes; then
18143   CANADIAN_TRUE=
18144   CANADIAN_FALSE='#'
18145 else
18146   CANADIAN_TRUE='#'
18147   CANADIAN_FALSE=
18148 fi
18149  
18150 cat > confcache <<\EOF
18151 # This file is a shell script that caches the results of configure
18152 # tests run on this system so they can be shared between configure
18153 # scripts and configure runs.  It is not useful on other systems.
18154 # If it contains results you don't want to keep, you may remove or edit it.
18155 #
18156 # By default, configure uses ./config.cache as the cache file,
18157 # creating it if it does not exist already.  You can give configure
18158 # the --cache-file=FILE option to use a different cache file; that is
18159 # what configure does when it calls configure scripts in
18160 # subdirectories, so they share the cache.
18161 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18162 # config.status only pays attention to the cache file if you give it the
18163 # --recheck option to rerun configure.
18164 #
18165 EOF
18166 # The following way of writing the cache mishandles newlines in values,
18167 # but we know of no workaround that is simple, portable, and efficient.
18168 # So, don't put newlines in cache variables' values.
18169 # Ultrix sh set writes to stderr and can't be redirected directly,
18170 # and sets the high bit in the cache file unless we assign to the vars.
18171 (set) 2>&1 |
18172   case `(ac_space=' '; set | grep ac_space) 2>&1` in
18173   *ac_space=\ *)
18174     # `set' does not quote correctly, so add quotes (double-quote substitution
18175     # turns \\\\ into \\, and sed turns \\ into \).
18176     sed -n \
18177       -e "s/'/'\\\\''/g" \
18178       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18179     ;;
18180   *)
18181     # `set' quotes correctly as required by POSIX, so do not add quotes.
18182     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18183     ;;
18184   esac >> confcache
18185 if cmp -s $cache_file confcache; then
18186   :
18187 else
18188   if test -w $cache_file; then
18189     echo "updating cache $cache_file"
18190     cat confcache > $cache_file
18191   else
18192     echo "not updating unwritable cache $cache_file"
18193   fi
18194 fi
18195 rm -f confcache
18196
18197
18198 if test "${multilib}" = "yes"; then
18199   multilib_arg="--enable-multilib"
18200 else
18201   multilib_arg=
18202 fi
18203
18204 # Needed so that g++ can find the correct include subdir automatically.
18205 INTERFACE=v3
18206
18207 # Export all the install information
18208
18209 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
18210 # exported correctly in GLIBCPP_CONFIGURE.
18211 glibcpp_toolexecdir=no
18212 glibcpp_toolexeclibdir=no
18213 glibcpp_prefixdir=${prefix}
18214
18215 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
18216 echo "configure:18217: checking for interface version number" >&5
18217 libstdcxx_interface=$INTERFACE
18218 echo "$ac_t""$libstdcxx_interface" 1>&6
18219
18220 # Process the option --with-gxx-include-dir=<path to include-files directory>
18221 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
18222 echo "configure:18223: checking for --with-gxx-include-dir" >&5
18223 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
18224 if test "${with_gxx_include_dir+set}" = set; then
18225   withval="$with_gxx_include_dir"
18226   case "${withval}" in
18227   yes)
18228     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
18229     gxx_include_dir=no
18230     ;;
18231   no)
18232     gxx_include_dir=no
18233     ;;
18234   *)
18235     gxx_include_dir=${withval}
18236     ;;
18237 esac
18238 else
18239   gxx_include_dir=no
18240 fi
18241
18242 echo "$ac_t""$gxx_include_dir" 1>&6
18243
18244 # Process the option "--enable-version-specific-runtime-libs"
18245 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
18246 echo "configure:18247: checking for --enable-version-specific-runtime-libs" >&5
18247 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
18248 if test "${enable_version_specific_runtime_libs+set}" = set; then
18249   enableval="$enable_version_specific_runtime_libs"
18250   case "$enableval" in
18251  yes) version_specific_libs=yes ;;
18252  no)  version_specific_libs=no ;;
18253  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
18254  esac
18255 else
18256   version_specific_libs=no
18257 fi
18258 # Option set, now we can test it.
18259 echo "$ac_t""$version_specific_libs" 1>&6
18260
18261 if test $version_specific_libs = yes; then
18262   # Need the gcc compiler version to know where to install libraries
18263   # and header files if --enable-version-specific-runtime-libs option
18264   # is selected.
18265     gcc_version_trigger=${srcdir}/../gcc/version.c
18266   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
18267   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
18268   gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
18269   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
18270   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
18271   fi
18272
18273 # Default case for install directory for include files.
18274 if test $version_specific_libs = no &&
18275    test $gxx_include_dir = no; then
18276   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
18277 fi
18278
18279 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
18280 # Install a library built with a cross compiler in tooldir, not libdir.
18281 if test x"$glibcpp_toolexecdir" = x"no"; then 
18282   if test -n "$with_cross_host" &&
18283      test x"$with_cross_host" != x"no"; then
18284     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
18285     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
18286   else
18287     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
18288     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
18289   fi
18290 fi
18291
18292 echo $ac_n "checking for install location""... $ac_c" 1>&6
18293 echo "configure:18294: checking for install location" >&5
18294 echo "$ac_t""$gxx_include_dir" 1>&6
18295
18296
18297
18298
18299
18300
18301
18302 # Export all the include and flag information to makefiles.
18303
18304   # Root level of the build directory include sources.
18305   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
18306
18307   # Passed down for canadian crosses.
18308   if test x"$CANADIAN" = xyes; then
18309     TOPLEVEL_INCLUDES='-I$(includedir)'
18310   fi
18311
18312   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
18313
18314   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
18315
18316   if test x"$need_libio" = xyes; then
18317     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
18318     
18319   fi
18320
18321   # Now, export this to all the little Makefiles....
18322   
18323   
18324   
18325   
18326
18327
18328   # Optimization flags that are probably a good idea for thrill-seekers. Just
18329   # uncomment the lines below and make, everything else is ready to go... 
18330   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
18331   OPTIMIZE_CXXFLAGS=
18332   
18333
18334   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
18335   
18336
18337
18338 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
18339    grep "enable shared" > /dev/null; then
18340   LIBSUPCXX_PICFLAGS=-prefer-pic
18341 else
18342   LIBSUPCXX_PICFLAGS=
18343 fi
18344
18345
18346 # Generate the various Makefiles, include files, and scripts.
18347 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
18348 # and libsupc++/Makefile.am so that multilib installs will end up
18349 # installed in the correct place. To work around this not being passed
18350 # down from config-ml.in -> top_srcdir/Makefile.am ->
18351 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
18352 trap '' 1 2 15
18353 cat > confcache <<\EOF
18354 # This file is a shell script that caches the results of configure
18355 # tests run on this system so they can be shared between configure
18356 # scripts and configure runs.  It is not useful on other systems.
18357 # If it contains results you don't want to keep, you may remove or edit it.
18358 #
18359 # By default, configure uses ./config.cache as the cache file,
18360 # creating it if it does not exist already.  You can give configure
18361 # the --cache-file=FILE option to use a different cache file; that is
18362 # what configure does when it calls configure scripts in
18363 # subdirectories, so they share the cache.
18364 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18365 # config.status only pays attention to the cache file if you give it the
18366 # --recheck option to rerun configure.
18367 #
18368 EOF
18369 # The following way of writing the cache mishandles newlines in values,
18370 # but we know of no workaround that is simple, portable, and efficient.
18371 # So, don't put newlines in cache variables' values.
18372 # Ultrix sh set writes to stderr and can't be redirected directly,
18373 # and sets the high bit in the cache file unless we assign to the vars.
18374 (set) 2>&1 |
18375   case `(ac_space=' '; set | grep ac_space) 2>&1` in
18376   *ac_space=\ *)
18377     # `set' does not quote correctly, so add quotes (double-quote substitution
18378     # turns \\\\ into \\, and sed turns \\ into \).
18379     sed -n \
18380       -e "s/'/'\\\\''/g" \
18381       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18382     ;;
18383   *)
18384     # `set' quotes correctly as required by POSIX, so do not add quotes.
18385     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18386     ;;
18387   esac >> confcache
18388 if cmp -s $cache_file confcache; then
18389   :
18390 else
18391   if test -w $cache_file; then
18392     echo "updating cache $cache_file"
18393     cat confcache > $cache_file
18394   else
18395     echo "not updating unwritable cache $cache_file"
18396   fi
18397 fi
18398 rm -f confcache
18399
18400 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18401
18402 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18403 # Let make expand exec_prefix.
18404 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18405
18406 # Any assignment to VPATH causes Sun make to only execute
18407 # the first set of double-colon rules, so remove it if not needed.
18408 # If there is a colon in the path, we need to keep it.
18409 if test "x$srcdir" = x.; then
18410   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
18411 fi
18412
18413 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18414
18415 DEFS=-DHAVE_CONFIG_H
18416
18417 # Without the "./", some shells look in PATH for config.status.
18418 : ${CONFIG_STATUS=./config.status}
18419
18420 echo creating $CONFIG_STATUS
18421 rm -f $CONFIG_STATUS
18422 cat > $CONFIG_STATUS <<EOF
18423 #! /bin/sh
18424 # Generated automatically by configure.
18425 # Run this file to recreate the current configuration.
18426 # This directory was configured as follows,
18427 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18428 #
18429 # $0 $ac_configure_args
18430 #
18431 # Compiler output produced by configure, useful for debugging
18432 # configure, is in ./config.log if it exists.
18433
18434 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18435 for ac_option
18436 do
18437   case "\$ac_option" in
18438   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18439     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18440     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18441   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18442     echo "$CONFIG_STATUS generated by autoconf version 2.13"
18443     exit 0 ;;
18444   -help | --help | --hel | --he | --h)
18445     echo "\$ac_cs_usage"; exit 0 ;;
18446   *) echo "\$ac_cs_usage"; exit 1 ;;
18447   esac
18448 done
18449
18450 ac_given_srcdir=$srcdir
18451 ac_given_INSTALL="$INSTALL"
18452
18453 trap 'rm -fr `echo "Makefile \
18454     include/Makefile src/Makefile \
18455     libmath/Makefile libio/Makefile libsupc++/Makefile \
18456     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18457 EOF
18458 cat >> $CONFIG_STATUS <<EOF
18459
18460 # Protect against being on the right side of a sed subst in config.status.
18461 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18462  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18463 $ac_vpsub
18464 $extrasub
18465 s%@SHELL@%$SHELL%g
18466 s%@CFLAGS@%$CFLAGS%g
18467 s%@CPPFLAGS@%$CPPFLAGS%g
18468 s%@CXXFLAGS@%$CXXFLAGS%g
18469 s%@FFLAGS@%$FFLAGS%g
18470 s%@DEFS@%$DEFS%g
18471 s%@LDFLAGS@%$LDFLAGS%g
18472 s%@LIBS@%$LIBS%g
18473 s%@exec_prefix@%$exec_prefix%g
18474 s%@prefix@%$prefix%g
18475 s%@program_transform_name@%$program_transform_name%g
18476 s%@bindir@%$bindir%g
18477 s%@sbindir@%$sbindir%g
18478 s%@libexecdir@%$libexecdir%g
18479 s%@datadir@%$datadir%g
18480 s%@sysconfdir@%$sysconfdir%g
18481 s%@sharedstatedir@%$sharedstatedir%g
18482 s%@localstatedir@%$localstatedir%g
18483 s%@libdir@%$libdir%g
18484 s%@includedir@%$includedir%g
18485 s%@oldincludedir@%$oldincludedir%g
18486 s%@infodir@%$infodir%g
18487 s%@mandir@%$mandir%g
18488 s%@PACKAGE@%$PACKAGE%g
18489 s%@release_VERSION@%$release_VERSION%g
18490 s%@libtool_VERSION@%$libtool_VERSION%g
18491 s%@host@%$host%g
18492 s%@host_alias@%$host_alias%g
18493 s%@host_cpu@%$host_cpu%g
18494 s%@host_vendor@%$host_vendor%g
18495 s%@host_os@%$host_os%g
18496 s%@target@%$target%g
18497 s%@target_alias@%$target_alias%g
18498 s%@target_cpu@%$target_cpu%g
18499 s%@target_vendor@%$target_vendor%g
18500 s%@target_os@%$target_os%g
18501 s%@build@%$build%g
18502 s%@build_alias@%$build_alias%g
18503 s%@build_cpu@%$build_cpu%g
18504 s%@build_vendor@%$build_vendor%g
18505 s%@build_os@%$build_os%g
18506 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18507 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18508 s%@INSTALL_DATA@%$INSTALL_DATA%g
18509 s%@VERSION@%$VERSION%g
18510 s%@ACLOCAL@%$ACLOCAL%g
18511 s%@AUTOCONF@%$AUTOCONF%g
18512 s%@AUTOMAKE@%$AUTOMAKE%g
18513 s%@AUTOHEADER@%$AUTOHEADER%g
18514 s%@MAKEINFO@%$MAKEINFO%g
18515 s%@SET_MAKE@%$SET_MAKE%g
18516 s%@toplevel_srcdir@%$toplevel_srcdir%g
18517 s%@glibcpp_builddir@%$glibcpp_builddir%g
18518 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
18519 s%@LN_S@%$LN_S%g
18520 s%@glibcpp_basedir@%$glibcpp_basedir%g
18521 s%@CC@%$CC%g
18522 s%@glibcpp_CXX@%$glibcpp_CXX%g
18523 s%@AS@%$AS%g
18524 s%@AR@%$AR%g
18525 s%@RANLIB@%$RANLIB%g
18526 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
18527 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
18528 s%@MAINT@%$MAINT%g
18529 s%@EXEEXT@%$EXEEXT%g
18530 s%@OBJEXT@%$OBJEXT%g
18531 s%@STRIP@%$STRIP%g
18532 s%@LIBTOOL@%$LIBTOOL%g
18533 s%@CXXCPP@%$CXXCPP%g
18534 s%@enable_shared@%$enable_shared%g
18535 s%@enable_static@%$enable_static%g
18536 s%@ifGNUmake@%$ifGNUmake%g
18537 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
18538 s%@CPP@%$CPP%g
18539 s%@CSTDIO_H@%$CSTDIO_H%g
18540 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
18541 s%@CCODECVT_C@%$CCODECVT_C%g
18542 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
18543 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
18544 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
18545 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
18546 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
18547 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
18548 s%@libio_la@%$libio_la%g
18549 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
18550 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
18551 s%@glibcpp_localedir@%$glibcpp_localedir%g
18552 s%@USE_NLS@%$USE_NLS%g
18553 s%@CLOCALE_H@%$CLOCALE_H%g
18554 s%@CCODECVT_H@%$CCODECVT_H%g
18555 s%@CMESSAGES_H@%$CMESSAGES_H%g
18556 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
18557 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
18558 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
18559 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
18560 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
18561 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
18562 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
18563 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
18564 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
18565 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
18566 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
18567 s%@WERROR@%$WERROR%g
18568 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
18569 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
18570 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
18571 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
18572 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
18573 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
18574 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
18575 s%@gxx_include_dir@%$gxx_include_dir%g
18576 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
18577 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
18578 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
18579 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
18580 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
18581 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
18582 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
18583 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
18584 s%@WARN_FLAGS@%$WARN_FLAGS%g
18585 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
18586
18587 CEOF
18588 EOF
18589
18590 cat >> $CONFIG_STATUS <<\EOF
18591
18592 # Split the substitutions into bite-sized pieces for seds with
18593 # small command number limits, like on Digital OSF/1 and HP-UX.
18594 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18595 ac_file=1 # Number of current file.
18596 ac_beg=1 # First line for current file.
18597 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18598 ac_more_lines=:
18599 ac_sed_cmds=""
18600 while $ac_more_lines; do
18601   if test $ac_beg -gt 1; then
18602     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18603   else
18604     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18605   fi
18606   if test ! -s conftest.s$ac_file; then
18607     ac_more_lines=false
18608     rm -f conftest.s$ac_file
18609   else
18610     if test -z "$ac_sed_cmds"; then
18611       ac_sed_cmds="sed -f conftest.s$ac_file"
18612     else
18613       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18614     fi
18615     ac_file=`expr $ac_file + 1`
18616     ac_beg=$ac_end
18617     ac_end=`expr $ac_end + $ac_max_sed_cmds`
18618   fi
18619 done
18620 if test -z "$ac_sed_cmds"; then
18621   ac_sed_cmds=cat
18622 fi
18623 EOF
18624
18625 cat >> $CONFIG_STATUS <<EOF
18626
18627 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
18628     include/Makefile src/Makefile \
18629     libmath/Makefile libio/Makefile libsupc++/Makefile \
18630     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
18631 EOF
18632 cat >> $CONFIG_STATUS <<\EOF
18633 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18634   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18635   case "$ac_file" in
18636   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18637        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18638   *) ac_file_in="${ac_file}.in" ;;
18639   esac
18640
18641   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18642
18643   # Remove last slash and all that follows it.  Not all systems have dirname.
18644   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18645   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18646     # The file is in a subdirectory.
18647     test ! -d "$ac_dir" && mkdir "$ac_dir"
18648     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18649     # A "../" for each directory in $ac_dir_suffix.
18650     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18651   else
18652     ac_dir_suffix= ac_dots=
18653   fi
18654
18655   case "$ac_given_srcdir" in
18656   .)  srcdir=.
18657       if test -z "$ac_dots"; then top_srcdir=.
18658       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18659   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18660   *) # Relative path.
18661     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18662     top_srcdir="$ac_dots$ac_given_srcdir" ;;
18663   esac
18664
18665   case "$ac_given_INSTALL" in
18666   [/$]*) INSTALL="$ac_given_INSTALL" ;;
18667   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18668   esac
18669
18670   echo creating "$ac_file"
18671   rm -f "$ac_file"
18672   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18673   case "$ac_file" in
18674   *Makefile*) ac_comsub="1i\\
18675 # $configure_input" ;;
18676   *) ac_comsub= ;;
18677   esac
18678
18679   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18680   sed -e "$ac_comsub
18681 s%@configure_input@%$configure_input%g
18682 s%@srcdir@%$srcdir%g
18683 s%@top_srcdir@%$top_srcdir%g
18684 s%@INSTALL@%$INSTALL%g
18685 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18686 fi; done
18687 rm -f conftest.s*
18688
18689 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18690 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18691 #
18692 # ac_d sets the value in "#define NAME VALUE" lines.
18693 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18694 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
18695 ac_dC='\3'
18696 ac_dD='%g'
18697 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18698 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18699 ac_uB='\([      ]\)%\1#\2define\3'
18700 ac_uC=' '
18701 ac_uD='\4%g'
18702 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18703 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18704 ac_eB='$%\1#\2define\3'
18705 ac_eC=' '
18706 ac_eD='%g'
18707
18708 if test "${CONFIG_HEADERS+set}" != set; then
18709 EOF
18710 cat >> $CONFIG_STATUS <<EOF
18711   CONFIG_HEADERS="config.h"
18712 EOF
18713 cat >> $CONFIG_STATUS <<\EOF
18714 fi
18715 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18716   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18717   case "$ac_file" in
18718   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18719        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18720   *) ac_file_in="${ac_file}.in" ;;
18721   esac
18722
18723   echo creating $ac_file
18724
18725   rm -f conftest.frag conftest.in conftest.out
18726   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18727   cat $ac_file_inputs > conftest.in
18728
18729 EOF
18730
18731 # Transform confdefs.h into a sed script conftest.vals that substitutes
18732 # the proper values into config.h.in to produce config.h.  And first:
18733 # Protect against being on the right side of a sed subst in config.status.
18734 # Protect against being in an unquoted here document in config.status.
18735 rm -f conftest.vals
18736 cat > conftest.hdr <<\EOF
18737 s/[\\&%]/\\&/g
18738 s%[\\$`]%\\&%g
18739 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18740 s%ac_d%ac_u%gp
18741 s%ac_u%ac_e%gp
18742 EOF
18743 sed -n -f conftest.hdr confdefs.h > conftest.vals
18744 rm -f conftest.hdr
18745
18746 # This sed command replaces #undef with comments.  This is necessary, for
18747 # example, in the case of _POSIX_SOURCE, which is predefined and required
18748 # on some systems where configure will not decide to define it.
18749 cat >> conftest.vals <<\EOF
18750 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18751 EOF
18752
18753 # Break up conftest.vals because some shells have a limit on
18754 # the size of here documents, and old seds have small limits too.
18755
18756 rm -f conftest.tail
18757 while :
18758 do
18759   ac_lines=`grep -c . conftest.vals`
18760   # grep -c gives empty output for an empty file on some AIX systems.
18761   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18762   # Write a limited-size here document to conftest.frag.
18763   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18764   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18765   echo 'CEOF
18766   sed -f conftest.frag conftest.in > conftest.out
18767   rm -f conftest.in
18768   mv conftest.out conftest.in
18769 ' >> $CONFIG_STATUS
18770   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18771   rm -f conftest.vals
18772   mv conftest.tail conftest.vals
18773 done
18774 rm -f conftest.vals
18775
18776 cat >> $CONFIG_STATUS <<\EOF
18777   rm -f conftest.frag conftest.h
18778   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
18779   cat conftest.in >> conftest.h
18780   rm -f conftest.in
18781   if cmp -s $ac_file conftest.h 2>/dev/null; then
18782     echo "$ac_file is unchanged"
18783     rm -f conftest.h
18784   else
18785     # Remove last slash and all that follows it.  Not all systems have dirname.
18786       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18787       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18788       # The file is in a subdirectory.
18789       test ! -d "$ac_dir" && mkdir "$ac_dir"
18790     fi
18791     rm -f $ac_file
18792     mv conftest.h $ac_file
18793   fi
18794 fi; done
18795
18796 EOF
18797
18798 cat >> $CONFIG_STATUS <<EOF
18799 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC"
18800 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/messages.cc src/moneypunct.cc src/numpunct.cc src/time.cc"
18801 EOF
18802
18803 cat >> $CONFIG_STATUS <<\EOF
18804 srcdir=$ac_given_srcdir
18805 while test -n "$ac_sources"; do
18806   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
18807   set $ac_sources; ac_source=$1; shift; ac_sources=$*
18808
18809   echo "linking $srcdir/$ac_source to $ac_dest"
18810
18811   if test ! -r $srcdir/$ac_source; then
18812     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
18813   fi
18814   rm -f $ac_dest
18815
18816   # Make relative symlinks.
18817   # Remove last slash and all that follows it.  Not all systems have dirname.
18818   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
18819   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
18820     # The dest file is in a subdirectory.
18821     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
18822     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
18823     # A "../" for each directory in $ac_dest_dir_suffix.
18824     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
18825   else
18826     ac_dest_dir_suffix= ac_dots=
18827   fi
18828
18829   case "$srcdir" in
18830   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
18831   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
18832   esac
18833
18834   # Make a symlink if possible; otherwise try a hard link.
18835   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18836     ln $srcdir/$ac_source $ac_dest; then :
18837   else
18838     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
18839   fi
18840 done
18841 EOF
18842 cat >> $CONFIG_STATUS <<EOF
18843
18844 srcdir=${srcdir}
18845 host=${host}
18846 target=${target}
18847 with_multisubdir=${with_multisubdir}
18848 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18849 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18850 glibcpp_basedir=${glibcpp_basedir}
18851 CC="${CC}"
18852 CXX="${CXX}"
18853
18854 EOF
18855 cat >> $CONFIG_STATUS <<\EOF
18856 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
18857 if test -n "$CONFIG_FILES"; then
18858   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
18859   grep '^MULTISUBDIR =' Makefile >> src/Makefile
18860   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
18861 fi
18862 chmod +x mkcheck
18863 chmod +x testsuite_flags
18864
18865 exit 0
18866 EOF
18867 chmod +x $CONFIG_STATUS
18868 rm -fr confdefs* $ac_clean_files
18869 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18870
18871
18872
18873 # Sanity checking & User-visible messages.
18874 # Checks down here, otherwise they get scrolled off before
18875 # the user will notice.
18876
18877 # Trying to get more people to read documentation.  Possibly remove
18878 # check and warn all the time. There is no "informational" AC_MSG_
18879 # macro, so these are going to be printed even when --quiet/--silent
18880 # is given.
18881 if test ! -f stamp-sanity-warned; then
18882   touch stamp-sanity-warned
18883   echo ""
18884   echo "Please make certain that you read the installation information here:"
18885   echo "  faster => ${srcdir}/docs/install.html"
18886   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
18887   echo ""
18888   echo "and the configuration information here:"
18889   echo "  faster => ${srcdir}/docs/configopts.html"
18890   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
18891   echo ""
18892   echo "before proceeding with ${_cv_gnu_make_command}."
18893   echo ""
18894 fi